hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT DISTINCT NULLIF ( COUNT( ALL + - 17 ), - MAX( - - 65 ) + + 74 / 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-0
SELECT DISTINCT NULLIF ( COUNT ( ALL + - 17 ), - MAX ( - - 65 ) + + 74 / 78 ) AS col0
----
1

query I rowsort
SELECT ALL + 68 + - 68 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT ALL 86 + - - COUNT( * ) + 17 - + + 51 * MAX( ALL 46 ) + 78 * 50
----
1658

skipif mysql # not compatible
query I rowsort label-2
SELECT ALL 86 + - - COUNT ( * ) + 17 - + + 51 * MAX ( ALL 46 ) + 78 * 50
----
1658

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT + 57 DIV - - ( - ( + + 5 ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4
SELECT + 57 / - - ( - ( + + 5 ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT 45 + - 25 * - MIN( + 47 ) + ( - 39 ) AS col2
----
1181

skipif mysql # not compatible
query I rowsort label-5
SELECT 45 + - 25 * - MIN ( + 47 ) + ( - 39 ) AS col2
----
1181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6
SELECT - + CASE - 67 WHEN - + 22 THEN - ( + 54 ) * 96 - + CAST( NULL AS SIGNED ) + - - 26 + - - 10 WHEN 23 THEN 57 + - 0 * 5 - + 93 + + 39 WHEN - - 50 * + 24 + - 91 THEN + 61 WHEN + + 41 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6
SELECT - + CASE - 67 WHEN - + 22 THEN - ( + 54 ) * 96 - + CAST ( NULL AS INTEGER ) + - - 26 + - - 10 WHEN 23 THEN 57 + - 0 * 5 - + 93 + + 39 WHEN - - 50 * + 24 + - 91 THEN + 61 WHEN + + 41 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - ( + - 58 ) * + - 58 + 52 AS col1
----
-3312

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT + 10 DIV + + 81 + - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-8
SELECT + 10 / + + 81 + - + 29
----
-29

query I rowsort
SELECT ALL + - 93 + + - 4 AS col0
----
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT + 10 * - - COUNT( - - 63 ) + - - 30 + + + MIN( 87 ) * + 42 + - 52
----
3642

skipif mysql # not compatible
query I rowsort label-11
SELECT + 10 * - - COUNT ( - - 63 ) + - - 30 + + + MIN ( 87 ) * + 42 + - 52
----
3642

query I rowsort
SELECT ALL + 48 - 38
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT + + NULLIF ( COUNT( * ), + - ( - 14 ) * + - 97 * 9 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-13
SELECT + + NULLIF ( COUNT ( * ), + - ( - 14 ) * + - 97 * 9 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT MIN( CASE - 6 WHEN + 54 - 4 * - 4 THEN 62 / + - ( + 67 ) END ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT MIN ( CASE - 6 WHEN + 54 - 4 * - 4 THEN 62 / + - ( + 67 ) END ) + - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT CASE - 94 WHEN - 36 * + - MIN( DISTINCT 93 ) + - - COALESCE ( - - 45, + + ( 77 ) / COUNT( * ) ) THEN + - 68 ELSE NULL END / - 51 * COUNT( * ) - - 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT CASE - 94 WHEN - 36 * + - MIN ( DISTINCT 93 ) + - - COALESCE ( - - 45, + + ( 77 ) / COUNT ( * ) ) THEN + - 68 ELSE NULL END / - 51 * COUNT ( * ) - - 65 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-16
SELECT + - 61 * + ( + CAST( NULL AS SIGNED ) ) + - CASE - + 5 WHEN + COUNT( * ) THEN - 45 * - 55 + + 81 WHEN - + 3 THEN NULL END + - + 58 + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-16
SELECT + - 61 * + ( + CAST ( NULL AS INTEGER ) ) + - CASE - + 5 WHEN + COUNT ( * ) THEN - 45 * - 55 + + 81 WHEN - + 3 THEN NULL END + - + 58 + 94
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT + 73 + 55 + 22 + + 85 * - 62 + + + 0 DIV 97 AS col2
----
-5120

skipif mysql # not compatible
query I rowsort label-17
SELECT + 73 + 55 + 22 + + 85 * - 62 + + + 0 / 97 AS col2
----
-5120

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT 72 * COUNT( * ) * 49
----
3528

skipif mysql # not compatible
query I rowsort label-18
SELECT 72 * COUNT ( * ) * 49
----
3528

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT 24 + + 58 * - 94 DIV 93 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-19
SELECT 24 + + 58 * - 94 / 93 AS col2
----
-34

query I rowsort
SELECT 34 + NULLIF ( + - ( - 77 ), 38 - 48 )
----
111

query I rowsort
SELECT 40 * + - 39 * + 58
----
-90480

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-22
SELECT DISTINCT - CAST( + - 69 AS SIGNED ) DIV 50 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT - CAST ( + - 69 AS INTEGER ) / 50 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT 62 * 42 + - 66 + + 15 * + + CAST( NULL AS SIGNED ) * 94 * - + 43 + + 91 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT 62 * 42 + - 66 + + 15 * + + CAST ( NULL AS INTEGER ) * 94 * - + 43 + + 91 * + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-24
SELECT 30 + - 86 * + 0 * - 83 AS col2, CAST( NULL AS SIGNED ) AS col2
----
30
NULL

skipif mysql # not compatible
query II rowsort label-24
SELECT 30 + - 86 * + 0 * - 83 AS col2, CAST ( NULL AS INTEGER ) AS col2
----
30
NULL

query I rowsort
SELECT DISTINCT + 26 + + + 51 AS col0
----
77

query I rowsort
SELECT ALL 23 + - ( 67 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT ALL + CAST( NULL AS SIGNED ) * NULLIF ( + 62, + ( + CAST( - - 35 AS SIGNED ) ) ) * - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + CAST ( NULL AS INTEGER ) * NULLIF ( + 62, + ( + CAST ( - - 35 AS INTEGER ) ) ) * - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT 16 / + CASE + - COUNT( * ) WHEN + 8 THEN NULL WHEN + + 64 THEN 11 * - - 23 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT 16 / + CASE + - COUNT ( * ) WHEN + 8 THEN NULL WHEN + + 64 THEN 11 * - - 23 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL - 63 + - CASE MAX( DISTINCT + 4 ) WHEN + 65 * - + COUNT( * ) THEN + 76 END / - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - 63 + - CASE MAX ( DISTINCT + 4 ) WHEN + 65 * - + COUNT ( * ) THEN + 76 END / - 26 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-30
SELECT 90 + CASE + + 47 WHEN + 41 THEN + COUNT( * ) * - - NULLIF ( - 68, + SUM( + 46 ) * + 29 ) WHEN - - NULLIF ( - COUNT( DISTINCT - 11 ), - 21 ) THEN NULL END AS col2, + 32 * + 32 * + COUNT( ALL 48 ) * - 16 + + + ( CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-30
SELECT 90 + CASE + + 47 WHEN + 41 THEN + COUNT ( * ) * - - NULLIF ( - 68, + SUM ( + 46 ) * + 29 ) WHEN - - NULLIF ( - COUNT ( DISTINCT - 11 ), - 21 ) THEN NULL END AS col2, + 32 * + 32 * + COUNT ( ALL 48 ) * - 16 + + + ( CAST ( NULL AS INTEGER ) )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-31
SELECT DISTINCT CASE - 61 WHEN - 88 THEN + COUNT( DISTINCT + 0 ) WHEN - - CAST( + 38 AS SIGNED ) THEN - COUNT( * ) * 29 - - + 70 + - 47 ELSE MAX( DISTINCT + 71 ) * 82 * + COUNT( * ) END
----
5822

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT CASE - 61 WHEN - 88 THEN + COUNT ( DISTINCT + 0 ) WHEN - - CAST ( + 38 AS INTEGER ) THEN - COUNT ( * ) * 29 - - + 70 + - 47 ELSE MAX ( DISTINCT + 71 ) * 82 * + COUNT ( * ) END
----
5822

query I rowsort
SELECT ALL 11 - CASE NULLIF ( - 89, - 96 * + - 15 ) WHEN + 59 THEN NULL WHEN - 30 THEN + 94 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 80 * - 74
----
-5920

query I rowsort
SELECT DISTINCT + 21 * 11 AS col1
----
231

query I rowsort
SELECT DISTINCT 59 * - 47
----
-2773

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT 8 * + - COUNT( 79 )
----
-8

skipif mysql # not compatible
query I rowsort label-36
SELECT 8 * + - COUNT ( 79 )
----
-8

query I rowsort
SELECT ALL - ( - + 16 ) - - 91 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT COUNT( ALL 6 )
----
1

skipif mysql # not compatible
query I rowsort label-38
SELECT COUNT ( ALL 6 )
----
1

query I rowsort
SELECT 87 * - 1 * + 71
----
-6177

query I rowsort
SELECT 31 * 93 AS col1
----
2883

query I rowsort
SELECT - - 57 * 9 + + - 55
----
458

onlyif mysql # DIV for integer division: 
query II rowsort label-42
SELECT 10 * - 25, + ( COALESCE ( - 41, 77 ) ) * ( 55 ) DIV 34 + + 86 DIV + 21 + + 0 AS col1
----
-250
-62

skipif mysql # not compatible
query II rowsort label-42
SELECT 10 * - 25, + ( COALESCE ( - 41, 77 ) ) * ( 55 ) / 34 + + 86 / + 21 + + 0 AS col1
----
-250
-62

query I rowsort
SELECT DISTINCT + 45 * - + 25 * - COALESCE ( + 50, - + 84 )
----
56250

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT DISTINCT 89 DIV + 84 + 97 + - - 54 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT 89 / + 84 + 97 + - - 54 AS col1
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-45
SELECT ALL + + 11 * - - 66 AS col0, + CAST( 19 AS SIGNED )
----
726
19

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL + + 11 * - - 66 AS col0, + CAST ( 19 AS INTEGER )
----
726
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-46
SELECT + COUNT( * ) * - 9 DIV + COALESCE ( COUNT( * ), 58 DIV ( 46 ) + - - 7, + 30 )
----
-9

skipif mysql # not compatible
query I rowsort label-46
SELECT + COUNT ( * ) * - 9 / + COALESCE ( COUNT ( * ), 58 / ( 46 ) + - - 7, + 30 )
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT ALL + 0 * + 79 + - 80 DIV + COUNT( * ) - + - COUNT( * ) * - 98 * + 25 + - + COUNT( * ) AS col2
----
-2531

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL + 0 * + 79 + - 80 / + COUNT ( * ) - + - COUNT ( * ) * - 98 * + 25 + - + COUNT ( * ) AS col2
----
-2531

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-49
SELECT ALL COUNT( * ) + - - 67 + + 54 DIV - 68 * COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-49
SELECT ALL COUNT ( * ) + - - 67 + + 54 / - 68 * COUNT ( * ) AS col1
----
68

query I rowsort
SELECT DISTINCT - 95 + 55
----
-40

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

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

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

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

query I rowsort
SELECT 13 * - + 58 - 88
----
-842

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

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

query I rowsort
SELECT ALL + 4 * 13 AS col1
----
52

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-56
SELECT - 4 + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-56
SELECT - 4 + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL + MAX( - 93 ) * - 57
----
5301

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL + MAX ( - 93 ) * - 57
----
5301

query I rowsort
SELECT - ( + - 50 ) * 70 * - + 7
----
-24500

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT ALL + 17 DIV + 77 + - + 5
----
-5

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL + 17 / + 77 + - + 5
----
-5

query I rowsort
SELECT ALL 31 - - 93
----
124

query I rowsort
SELECT + ( 11 ) * - - 36 * - + 19 + - ( - - 92 ) * 31 + + 53 AS col1
----
-10323

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT - 58 + + + CASE 56 WHEN COUNT( * ) + - 12 THEN + - 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-63
SELECT - 58 + + + CASE 56 WHEN COUNT ( * ) + - 12 THEN + - 50 END
----
NULL

query I rowsort
SELECT - 72 + 70 + - 82 * + 49
----
-4020

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT - + CASE - 57 WHEN + 41 THEN NULL WHEN - ( + 78 ) + - + 9 THEN + 0 + SUM( ALL - 82 ) * - - 2 ELSE NULL END * - 23 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT - + CASE - 57 WHEN + 41 THEN NULL WHEN - ( + 78 ) + - + 9 THEN + 0 + SUM ( ALL - 82 ) * - - 2 ELSE NULL END * - 23 * - COUNT ( * )
----
NULL

query I rowsort
SELECT + 99 * 43
----
4257

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL + 24 * - 31 * + - COUNT( * ) * 75 - + 88 - + + 62 + - 15 + + + NULLIF ( MAX( DISTINCT + 70 ), + 37 ) + - ( - + 96 ) + + - 30 col0
----
55771

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL + 24 * - 31 * + - COUNT ( * ) * 75 - + 88 - + + 62 + - 15 + + + NULLIF ( MAX ( DISTINCT + 70 ), + 37 ) + - ( - + 96 ) + + - 30 col0
----
55771

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT + + 10 + - 14 - - COUNT( * ) * COUNT( * ) * - 59 * COALESCE ( 11, - 95 DIV + 53 * - + 33 + - COUNT( * ) + - + 65 )
----
-653

skipif mysql # not compatible
query I rowsort label-68
SELECT + + 10 + - 14 - - COUNT ( * ) * COUNT ( * ) * - 59 * COALESCE ( 11, - 95 / + 53 * - + 33 + - COUNT ( * ) + - + 65 )
----
-653

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

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

query I rowsort
SELECT 35 * + + 9 * 76 + - - 18
----
23958

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

skipif mysql # not compatible
query I rowsort label-71
SELECT DISTINCT + ( 79 ) * COUNT ( ALL - 66 ) AS col0
----
79

query I rowsort
SELECT + 18 + + 45 + + + 68 + - - 90 + 19 * - + 14
----
-45

query I rowsort
SELECT + 24 + - - ( + 83 ) + - 54 AS col1
----
53

query I rowsort
SELECT - ( + 29 ) + - 30 + + CASE - + 49 WHEN - 38 + - 18 * - 19 + - 28 * - - 53 * 88 THEN NULL ELSE + 64 END
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-75
SELECT ALL 6 DIV + 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-75
SELECT ALL 6 / + 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-76
SELECT ALL + 75, 4 * 16 + - NULLIF ( - + ( 51 ), - ( - COUNT( * ) ) ) AS col2
----
75
115

skipif mysql # not compatible
query II rowsort label-76
SELECT ALL + 75, 4 * 16 + - NULLIF ( - + ( 51 ), - ( - COUNT ( * ) ) ) AS col2
----
75
115

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

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL 70 / ( - COUNT ( * ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-78
SELECT CASE 20 WHEN - + 40 THEN - + COUNT( * ) * - 3 / + MIN( DISTINCT 27 ) / - 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-78
SELECT CASE 20 WHEN - + 40 THEN - + COUNT ( * ) * - 3 / + MIN ( DISTINCT 27 ) / - 71 END
----
NULL

query I rowsort
SELECT 18 * + 43 + - 55 AS col2
----
719

onlyif mysql # aggregate syntax: 
query II rowsort label-80
SELECT - 17 AS col1, + ( - - 84 ) + COUNT( * ) + - - 48
----
-17
133

skipif mysql # not compatible
query II rowsort label-80
SELECT - 17 AS col1, + ( - - 84 ) + COUNT ( * ) + - - 48
----
-17
133

query I rowsort
SELECT 36 * - + 39 * 95 + ( + 93 ) AS col0
----
-133287

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

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

query I rowsort
SELECT + COALESCE ( - + 56, + 86, 68 ) + - + 89
----
-145

query II rowsort
SELECT - 86 + 18 * - 69 * + 26 AS col1, + 56 + - 1 * - 15 + + NULLIF ( + + 85, + 65 + + - 88 ) + + 47 col2
----
-32378
203

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL NULLIF ( - 35, COUNT( * ) + 70 * - 93 )
----
-35

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL NULLIF ( - 35, COUNT ( * ) + 70 * - 93 )
----
-35

query I rowsort
SELECT DISTINCT CASE - + 68 WHEN + - 75 THEN - - 19 END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 63 * 45, - 46 * + - 47 * - 45 AS col2
----
2835
-97290

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

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

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

skipif mysql # not compatible
query I rowsort label-89
SELECT - MIN ( ALL - 81 ) + + - COUNT ( * ) AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-90
SELECT DISTINCT - AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-90
SELECT DISTINCT - AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT ALL + 65 col2, 87
----
65
87

query I rowsort
SELECT - + 74 + - + 26 * 90
----
-2414

query I rowsort
SELECT ALL + - 32 * 50 + 77
----
-1523

query I rowsort
SELECT - - COALESCE ( 37, - 13 * ( 85 ) * + 37 * - 70 * 54 ) AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-95
SELECT - - CAST( + 82 AS SIGNED ) DIV + + 34
----
2

skipif mysql # not compatible
query I rowsort label-95
SELECT - - CAST ( + 82 AS INTEGER ) / + + 34
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-96
SELECT ALL - + 2 * - - 42 AS col2, ( - 28 ) * - - CAST( NULL AS SIGNED )
----
-84
NULL

skipif mysql # not compatible
query II rowsort label-96
SELECT ALL - + 2 * - - 42 AS col2, ( - 28 ) * - - CAST ( NULL AS INTEGER )
----
-84
NULL

query II rowsort
SELECT + 39 AS col1, 20 + 49 * + 97
----
39
4773

onlyif mysql # DIV for integer division: 
query I rowsort label-98
SELECT ALL - + 34 DIV + 30 + + 83
----
82

skipif mysql # not compatible
query I rowsort label-98
SELECT ALL - + 34 / + 30 + + 83
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-99
SELECT + 0 AS col1, 89 + + - COUNT( * )
----
0
88

skipif mysql # not compatible
query II rowsort label-99
SELECT + 0 AS col1, 89 + + - COUNT ( * )
----
0
88

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

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

query I rowsort
SELECT + COALESCE ( 75, - 69 )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-102
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col1, - ( - + ( + SUM( DISTINCT 43 ) ) ) + COUNT( * )
----
1
44

skipif mysql # not compatible
query II rowsort label-102
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col1, - ( - + ( + SUM ( DISTINCT 43 ) ) ) + COUNT ( * )
----
1
44

query I rowsort
SELECT DISTINCT 65 * + 19 AS col2
----
1235

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT ALL + COUNT( * ) DIV + - 46 + 75 * + + 91 col0
----
6825

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + COUNT ( * ) / + - 46 + 75 * + + 91 col0
----
6825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT ALL COUNT( * ) DIV + 10 + + 25
----
25

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

query I rowsort
SELECT + COALESCE ( + 55, - 76 ) col1
----
55

query I rowsort
SELECT ALL + CASE WHEN NOT ( NOT ( 28 ) IS NOT NULL ) THEN NULL ELSE + - 25 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-109
SELECT DISTINCT - COUNT( * ) * - + MAX( ALL 21 ) DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT DISTINCT - COUNT ( * ) * - + MAX ( ALL 21 ) / - 78 AS col1
----
0

query I rowsort
SELECT 39 * + + 65 * + 20
----
50700

query I rowsort
SELECT ALL 64 * - 67 AS col0
----
-4288

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT ALL 23 - ( 31 ), - 15 * SUM( DISTINCT 92 ) * + 90 AS col1
----
-8
-124200

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL 23 - ( 31 ), - 15 * SUM ( DISTINCT 92 ) * + 90 AS col1
----
-8
-124200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-113
SELECT - 49 * + COUNT( * ) + - + COALESCE ( COALESCE ( + 57, - CAST( - + 43 AS SIGNED ) ), + 27 + - 16, 82 * + 7 + + 8 DIV - 49 ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-113
SELECT - 49 * + COUNT ( * ) + - + COALESCE ( COALESCE ( + 57, - CAST ( - + 43 AS INTEGER ) ), + 27 + - 16, 82 * + 7 + + 8 / - 49 ) AS col1
----
-106

query I rowsort
SELECT 14 * + + 70 - + 89
----
891

query I rowsort
SELECT 0 + 9 col2
----
9

query I rowsort
SELECT DISTINCT 22 - 74
----
-52

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

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

query I rowsort
SELECT - 65 + ( - - 29 ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-119
SELECT 47 DIV + COUNT( * ) col1, COALESCE ( 80, - 98 DIV - + 3 )
----
47
80

skipif mysql # not compatible
query II rowsort label-119
SELECT 47 / + COUNT ( * ) col1, COALESCE ( 80, - 98 / - + 3 )
----
47
80

query II rowsort
SELECT ALL + 89 * - + 61 AS col0, 33
----
-5429
33

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ( 59 ) * + 96 - COALESCE ( COUNT( * ), + COUNT( + 84 ), + COUNT( * ) ) * 92 AS col2
----
5572

skipif mysql # not compatible
query I rowsort label-121
SELECT ( 59 ) * + 96 - COALESCE ( COUNT ( * ), + COUNT ( + 84 ), + COUNT ( * ) ) * 92 AS col2
----
5572

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

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

query I rowsort
SELECT 16 * + 98 AS col1
----
1568

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

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

query I rowsort
SELECT DISTINCT ( - 96 ) * + 21
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT DISTINCT - 15 + - MAX( 34 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-126
SELECT DISTINCT - 15 + - MAX ( 34 ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT + COUNT( * ) + 72
----
73

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + COUNT ( * ) + 72
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-128
SELECT NULLIF ( COUNT( ALL + - 62 ), + AVG ( ALL + 55 ) ) + + 27 + + 60 DIV - COALESCE ( + 66, CAST( NULL AS SIGNED ) + 23 ) * - 58 + - ( - 95 ) col1
----
123

skipif mysql # not compatible
query I rowsort label-128
SELECT NULLIF ( COUNT ( ALL + - 62 ), + AVG ( ALL + 55 ) ) + + 27 + + 60 / - COALESCE ( + 66, CAST ( NULL AS INTEGER ) + 23 ) * - 58 + - ( - 95 ) col1
----
123

query I rowsort
SELECT + 56 + + 50 AS col0
----
106

query I rowsort
SELECT 64 + - 84 + + - 87 * - - NULLIF ( + 16, 79 ) + - 26 * - 85
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT 43 + + 84 - - + 54 * SUM( DISTINCT - + 70 ) AS col1
----
-3653

skipif mysql # not compatible
query I rowsort label-131
SELECT 43 + + 84 - - + 54 * SUM ( DISTINCT - + 70 ) AS col1
----
-3653

onlyif mysql # DIV for integer division: 
query I rowsort label-132
SELECT ALL - 81 + - - 9 - 72 DIV 99 + + 57 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - 81 + - - 9 - 72 / 99 + + 57 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-133
SELECT NULLIF ( + 70, MIN( - 56 ) * - COUNT( * ) * - MAX( DISTINCT - + 42 ) ) / + CASE - 11 WHEN 7 THEN 48 ELSE NULL END + + 51 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT NULLIF ( + 70, MIN ( - 56 ) * - COUNT ( * ) * - MAX ( DISTINCT - + 42 ) ) / + CASE - 11 WHEN 7 THEN 48 ELSE NULL END + + 51 AS col1
----
NULL

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

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

query I rowsort
SELECT 59 + - + 13 * - ( + 59 ) AS col2
----
826

query I rowsort
SELECT DISTINCT + 36 * - 8 * - 98 * 25
----
705600

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT 54 DIV + 24 + 82 - - - NULLIF ( - 73, - 66 )
----
157

skipif mysql # not compatible
query I rowsort label-137
SELECT 54 / + 24 + 82 - - - NULLIF ( - 73, - 66 )
----
157

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT 49 * 14 * - + 45 col1, - COUNT( 36 )
----
-30870
-1

skipif mysql # not compatible
query II rowsort label-138
SELECT 49 * 14 * - + 45 col1, - COUNT ( 36 )
----
-30870
-1

query I rowsort
SELECT 84 * 42 AS col0
----
3528

query II rowsort
SELECT + 12 AS col2, - 88 AS col0
----
12
-88

query I rowsort
SELECT 74 * - - 24
----
1776

query I rowsort
SELECT DISTINCT 10 * + + 5
----
50

query I rowsort
SELECT ALL - COALESCE ( - - 95, + 61 * 35 + ( - 68 ) ) AS col1
----
-95

query I rowsort
SELECT DISTINCT - 74 * + - 34 col1
----
2516

query I rowsort
SELECT 92 + 64 AS col0
----
156

query II rowsort
SELECT 94, - 75 AS col2
----
94
-75

query II rowsort
SELECT DISTINCT - 11 + - - NULLIF ( + + 51, 17 / + NULLIF ( + 31, + - 17 * 43 / 72 ) + + 5 ) + - 19 + 45 * + 31 AS col1, 14 AS col0
----
1416
14

query II rowsort
SELECT - + 84, - 76 AS col1
----
-84
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT ALL 77 + + COALESCE ( + NULLIF ( - 3, - - 93 ), 30 + + ( + 37 ) DIV 7 )
----
74

skipif mysql # not compatible
query I rowsort label-149
SELECT ALL 77 + + COALESCE ( + NULLIF ( - 3, - - 93 ), 30 + + ( + 37 ) / 7 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-150
SELECT SUM( ALL + CAST( + - CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - CASE + + 28 WHEN + 7 * + - 92 THEN + 65 WHEN - - COUNT( ALL 60 ) THEN NULL ELSE NULL END + 66 * - ( + + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-150
SELECT SUM ( ALL + CAST ( + - CAST ( NULL AS INTEGER ) AS REAL ) ) + - CASE + + 28 WHEN + 7 * + - 92 THEN + 65 WHEN - - COUNT ( ALL 60 ) THEN NULL ELSE NULL END + 66 * - ( + + COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - 28 * + - 65
----
1820

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT 7 + SUM( ALL - 26 ) - + 73 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-152
SELECT 7 + SUM ( ALL - 26 ) - + 73 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT ALL - 17 + + 37 + - ( - MIN( DISTINCT + + 92 ) )
----
112

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL - 17 + + 37 + - ( - MIN ( DISTINCT + + 92 ) )
----
112

query II rowsort
SELECT 80 AS col1, 66 AS col1
----
80
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-155
SELECT 41 * 68 * 89 DIV - SUM( ALL - 25 )
----
9925

skipif mysql # not compatible
query I rowsort label-155
SELECT 41 * 68 * 89 / - SUM ( ALL - 25 )
----
9925

query I rowsort
SELECT DISTINCT 66 * - 4 col0
----
-264

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-158
SELECT + CASE CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN NULL WHEN - 59 THEN + COUNT( * ) WHEN ( - COALESCE ( - - 79, + 9, - CAST( NULL AS SIGNED ) ) ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-158
SELECT + CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN NULL WHEN - 59 THEN + COUNT ( * ) WHEN ( - COALESCE ( - - 79, + 9, - CAST ( NULL AS INTEGER ) ) ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL ( + MAX( - 88 ) ) * - - 9 * - 5
----
3960

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL ( + MAX ( - 88 ) ) * - - 9 * - 5
----
3960

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-161
SELECT ALL + ( CASE + - 51 WHEN + 17 THEN NULL WHEN 15 THEN + CAST( + ( + 14 ) AS SIGNED ) * 89 + + 9 ELSE + COUNT( * ) + MAX( - - 43 ) END )
----
44

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + ( CASE + - 51 WHEN + 17 THEN NULL WHEN 15 THEN + CAST ( + ( + 14 ) AS INTEGER ) * 89 + + 9 ELSE + COUNT ( * ) + MAX ( - - 43 ) END )
----
44

query I rowsort
SELECT + 65 * - 17 * + 59
----
-65195

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT ALL MAX( + - 61 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-163
SELECT ALL MAX ( + - 61 ) AS col2
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT COALESCE ( 71, - - CAST( NULL AS SIGNED ) * + 55 * - COUNT( * ), - - 45 )
----
71

skipif mysql # not compatible
query I rowsort label-164
SELECT COALESCE ( 71, - - CAST ( NULL AS INTEGER ) * + 55 * - COUNT ( * ), - - 45 )
----
71

query I rowsort
SELECT NULLIF ( 22, - - 35 * + 4 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT CASE + + CAST( NULL AS SIGNED ) WHEN - 84 * + - 92 + - 86 + 24 THEN + 63 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT CASE + + CAST ( NULL AS INTEGER ) WHEN - 84 * + - 92 + - 86 + 24 THEN + 63 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT + COALESCE ( + + COUNT( DISTINCT 66 ), + 48 * - 4 + - 1, - - 55 * + COALESCE ( - + 68, - NULLIF ( 76, 5 ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-167
SELECT + COALESCE ( + + COUNT ( DISTINCT 66 ), + 48 * - 4 + - 1, - - 55 * + COALESCE ( - + 68, - NULLIF ( 76, 5 ) ) ) col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT CASE - 59 WHEN - COALESCE ( - 99, COUNT( * ) / + 59 + + 70 * + 3 ) THEN - + ( + + 23 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT CASE - 59 WHEN - COALESCE ( - 99, COUNT ( * ) / + 59 + + 70 * + 3 ) THEN - + ( + + 23 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-169
SELECT ALL 87 DIV - + 75
----
-1

skipif mysql # not compatible
query I rowsort label-169
SELECT ALL 87 / - + 75
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT ALL 5 DIV + + 92 * + ( ( 84 ) )
----
0

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 5 / + + 92 * + ( ( 84 ) )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-171
SELECT ALL 40 * - COUNT( * ) * - + SUM( - + 1 ) * + 7 AS col2, - 16 + CAST( NULL AS SIGNED ) AS col1
----
-280
NULL

skipif mysql # not compatible
query II rowsort label-171
SELECT ALL 40 * - COUNT ( * ) * - + SUM ( - + 1 ) * + 7 AS col2, - 16 + CAST ( NULL AS INTEGER ) AS col1
----
-280
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-172
SELECT - ( MAX( ALL - + 9 ) ) * - 14 + - ( - COUNT( * ) ) + 21 + + 70 - + 46 + + 98 DIV 86
----
-79

skipif mysql # not compatible
query I rowsort label-172
SELECT - ( MAX ( ALL - + 9 ) ) * - 14 + - ( - COUNT ( * ) ) + 21 + + 70 - + 46 + + 98 / 86
----
-79

query I rowsort
SELECT DISTINCT + COALESCE ( 50, - 99 ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-174
SELECT - 4 * + - COUNT( * ) * - - ( - 80 ) AS col0, 14 - 42
----
-320
-28

skipif mysql # not compatible
query II rowsort label-174
SELECT - 4 * + - COUNT ( * ) * - - ( - 80 ) AS col0, 14 - 42
----
-320
-28

query I rowsort
SELECT + 2 * - + 51 + - - 3 AS col0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-176
SELECT ALL + 15 / - CASE - 21 WHEN + 46 * 30 * 33 * - 3 + + + MIN( - + 22 ) - + 69 * + CASE WHEN - 13 IS NULL THEN NULL ELSE + - 60 END * + 38 + 1 / + COUNT( * ) + + ( - - 57 ) THEN - 61 * 77 + 85 ELSE NULL END, 57 * - + ( 10 ) AS col2
----
NULL
-570

skipif mysql # not compatible
query II rowsort label-176
SELECT ALL + 15 / - CASE - 21 WHEN + 46 * 30 * 33 * - 3 + + + MIN ( - + 22 ) - + 69 * + CASE WHEN - 13 IS NULL THEN NULL ELSE + - 60 END * + 38 + 1 / + COUNT ( * ) + + ( - - 57 ) THEN - 61 * 77 + 85 ELSE NULL END, 57 * - + ( 10 ) AS col2
----
NULL
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-177
SELECT - CAST( NULL AS SIGNED ) / - 94 * - - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-177
SELECT - CAST ( NULL AS INTEGER ) / - 94 * - - 7
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT CASE + 16 WHEN - AVG ( + - ( + - 27 ) ) THEN + 76 WHEN - COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-180
SELECT CASE + 16 WHEN - AVG ( + - ( + - 27 ) ) THEN + 76 WHEN - COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 72 * 50 + + 14 AS col1
----
3614

query I rowsort
SELECT DISTINCT + 79 + - - 73
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT 68 * 30 * 73 + - COALESCE ( 61, - + 70 * + 11 + - 99 + COUNT( - + 38 ) ) * - 69 + - 42 AS col2
----
153087

skipif mysql # not compatible
query I rowsort label-183
SELECT 68 * 30 * 73 + - COALESCE ( 61, - + 70 * + 11 + - 99 + COUNT ( - + 38 ) ) * - 69 + - 42 AS col2
----
153087

query I rowsort
SELECT ALL CASE 6 WHEN - COALESCE ( 83, + + 70 ) THEN - 86 WHEN - ( - 79 ) THEN NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT - 11 - 92
----
-103

query I rowsort
SELECT DISTINCT + + 83 * 50
----
4150

query I rowsort
SELECT + 99 * 87
----
8613

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-189
SELECT ALL + ( COUNT( * ) ) - + 34 + - 34 - + - 3 DIV 55 * - MAX( ALL - 25 ) + + - ( + 68 )
----
-135

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + ( COUNT ( * ) ) - + 34 + - 34 - + - 3 / 55 * - MAX ( ALL - 25 ) + + - ( + 68 )
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-190
SELECT + - NULLIF ( 22, + ( ( + MIN( - 71 ) ) ) * - 68 * + COALESCE ( + COUNT( * ), - ( 5 ) * - - CAST( NULL AS SIGNED ) * 83 ) * + 51 / + 34 ) - - 39 + + 70 + - COALESCE ( - + 72, COUNT( * ), + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) - MAX( - - 93 ) * + + 35 * + 54 * 67 col1
----
-11776575

skipif mysql # not compatible
query I rowsort label-190
SELECT + - NULLIF ( 22, + ( ( + MIN ( - 71 ) ) ) * - 68 * + COALESCE ( + COUNT ( * ), - ( 5 ) * - - CAST ( NULL AS INTEGER ) * 83 ) * + 51 / + 34 ) - - 39 + + 70 + - COALESCE ( - + 72, COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) - MAX ( - - 93 ) * + + 35 * + 54 * 67 col1
----
-11776575

query I rowsort
SELECT + - ( 66 ) * - 98
----
6468

query I rowsort
SELECT + + 50 - - - 90 AS col2
----
-40

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

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

query II rowsort
SELECT + ( 41 ) * + 19 AS col0, 14
----
779
14

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

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT + 6 + - MAX( DISTINCT - + 22 ) AS col1, - 7 AS col0
----
28
-7

skipif mysql # not compatible
query II rowsort label-196
SELECT + 6 + - MAX ( DISTINCT - + 22 ) AS col1, - 7 AS col0
----
28
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-197
SELECT + NULLIF ( + ( - - 40 ), 67 + + - CAST( NULL AS SIGNED ) + - + 87 * - + 55 ) - 8 * 51 + + - ( 90 ), - CASE - 57 WHEN 84 THEN - 77 * 91 END * - CAST( NULL AS SIGNED ) col2
----
-458
NULL

skipif mysql # not compatible
query II rowsort label-197
SELECT + NULLIF ( + ( - - 40 ), 67 + + - CAST ( NULL AS INTEGER ) + - + 87 * - + 55 ) - 8 * 51 + + - ( 90 ), - CASE - 57 WHEN 84 THEN - 77 * 91 END * - CAST ( NULL AS INTEGER ) col2
----
-458
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT + 82 + - 81 + + + 43 * - 55 * + COUNT( DISTINCT - - 73 ) AS col2
----
-2364

skipif mysql # not compatible
query I rowsort label-198
SELECT + 82 + - 81 + + + 43 * - 55 * + COUNT ( DISTINCT - - 73 ) AS col2
----
-2364

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-200
SELECT + MAX( - - 57 ) * - 46 + + - AVG ( - CASE - 88 WHEN - + 86 THEN - 87 * - 45 END ) + 13 AS col1, + 99
----
NULL
99

skipif mysql # not compatible
query II rowsort label-200
SELECT + MAX ( - - 57 ) * - 46 + + - AVG ( - CASE - 88 WHEN - + 86 THEN - 87 * - 45 END ) + 13 AS col1, + 99
----
NULL
99

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

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

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

query I rowsort
SELECT DISTINCT 99 * - CASE + 58 WHEN + 26 * 58 - 83 THEN + 84 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-204
SELECT + NULLIF ( - - 42, + ( CAST( NULL AS SIGNED ) ) ) * + - 6 AS col1, + CAST( + 23 AS SIGNED )
----
-252
23

skipif mysql # not compatible
query II rowsort label-204
SELECT + NULLIF ( - - 42, + ( CAST ( NULL AS INTEGER ) ) ) * + - 6 AS col1, + CAST ( + 23 AS INTEGER )
----
-252
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-205
SELECT 28 / + 66 + - - MAX( DISTINCT + + 75 ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT 28 / + 66 + - - MAX ( DISTINCT + + 75 ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ( + + 45 ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - 98 + SUM( DISTINCT + 12 ) + + - 29
----
-115

skipif mysql # not compatible
query I rowsort label-207
SELECT - 98 + SUM ( DISTINCT + 12 ) + + - 29
----
-115

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

query I rowsort
SELECT - - 72 * + 77 AS col2
----
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-210
SELECT ALL + - SUM( DISTINCT - + CAST( - + 89 AS SIGNED ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL + - SUM ( DISTINCT - + CAST ( - + 89 AS INTEGER ) ) AS col2
----
-89

query I rowsort
SELECT DISTINCT + + 23 * 79 + + NULLIF ( - 23, - + 81 - - 73 ) + - 24
----
1770

query I rowsort
SELECT NULLIF ( - 28, - 50 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT ALL - 96 * - + 11 + ( - MAX( ALL 27 ) ) * 83
----
-1185

skipif mysql # not compatible
query I rowsort label-213
SELECT ALL - 96 * - + 11 + ( - MAX ( ALL 27 ) ) * 83
----
-1185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-214
SELECT + 0 - + - 13 + + - 60 + + 20 * 81 * - - NULLIF ( + CASE - - COUNT( * ) WHEN COALESCE ( + - 55, CASE - - 61 WHEN + 2 - 23 + - + 84 THEN - 40 END ) THEN + - ( - 16 ) + + NULLIF ( 35, - CAST( NULL AS SIGNED ) * 42 + + ( + 8 ) ) * - + COUNT( 24 ) WHEN - + SUM( ALL 73 ) - 70 THEN 17 + - - ( 11 ) + - - COUNT( * ) END, ( - 9 ) ) + NULLIF ( + 25 + COUNT( * ) * 50, 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT + 0 - + - 13 + + - 60 + + 20 * 81 * - - NULLIF ( + CASE - - COUNT ( * ) WHEN COALESCE ( + - 55, CASE - - 61 WHEN + 2 - 23 + - + 84 THEN - 40 END ) THEN + - ( - 16 ) + + NULLIF ( 35, - CAST ( NULL AS INTEGER ) * 42 + + ( + 8 ) ) * - + COUNT ( 24 ) WHEN - + SUM ( ALL 73 ) - 70 THEN 17 + - - ( 11 ) + - - COUNT ( * ) END, ( - 9 ) ) + NULLIF ( + 25 + COUNT ( * ) * 50, 46 )
----
NULL

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

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

query I rowsort
SELECT ALL + 38 * - 76 - + 16 AS col1
----
-2904

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-217
SELECT - + COUNT( * ), 5 DIV + 49 AS col2, - ( - 60 ) + 37 AS col2
----
-1
0
97

skipif mysql # not compatible
query III rowsort label-217
SELECT - + COUNT ( * ), 5 / + 49 AS col2, - ( - 60 ) + 37 AS col2
----
-1
0
97

query I rowsort
SELECT ALL - CASE + 83 WHEN + + 16 THEN 62 * 62 WHEN - + 99 THEN - - 98 END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-219
SELECT DISTINCT + COUNT ( * ) * + + 46 / - 24 col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-220
SELECT - SUM( DISTINCT - + 6 ) + 86 DIV - COALESCE ( 79, - 53 ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-220
SELECT - SUM ( DISTINCT - + 6 ) + 86 / - COALESCE ( 79, - 53 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT - ( - CASE 87 WHEN - + COUNT( * ) * + 43 THEN 57 WHEN - AVG ( ALL - 81 ) + - 96 THEN NULL END ) * + + COALESCE ( - AVG ( ALL - 11 ), - COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-221
SELECT - ( - CASE 87 WHEN - + COUNT ( * ) * + 43 THEN 57 WHEN - AVG ( ALL - 81 ) + - 96 THEN NULL END ) * + + COALESCE ( - AVG ( ALL - 11 ), - COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-222
SELECT - 34, MAX( 58 ) col0
----
-34
58

skipif mysql # not compatible
query II rowsort label-222
SELECT - 34, MAX ( 58 ) col0
----
-34
58

query I rowsort
SELECT 84 + + + 29 AS col1
----
113

query II rowsort
SELECT ALL + 59 * + + 81, 24 * + CASE 79 WHEN 9 THEN NULL WHEN 48 THEN 17 WHEN - - 24 THEN NULL END AS col1
----
4779
NULL

query I rowsort
SELECT ( - ( - 62 ) ) + 9
----
71

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

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

query I rowsort
SELECT DISTINCT + 77 * - 60 AS col2
----
-4620

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-229
SELECT DISTINCT 87 DIV + 98 AS col1, 41
----
0
41

skipif mysql # not compatible
query II rowsort label-229
SELECT DISTINCT 87 / + 98 AS col1, 41
----
0
41

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT ALL COUNT( * ) + - NULLIF ( - COUNT( * ), + - 41 )
----
2

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL COUNT ( * ) + - NULLIF ( - COUNT ( * ), + - 41 )
----
2

query II rowsort
SELECT - 55 AS col0, - 0
----
-55
0

query II rowsort
SELECT ALL 56, - 41 AS col1
----
56
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT 67 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT 67 / 86 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-234
SELECT + 57 DIV 17 - 75 * - 57 * - SUM( - + 59 ) * 23, MAX( + 98 ) + 20 AS col0
----
5801178
118

skipif mysql # not compatible
query II rowsort label-234
SELECT + 57 / 17 - 75 * - 57 * - SUM ( - + 59 ) * 23, MAX ( + 98 ) + 20 AS col0
----
5801178
118

query I rowsort
SELECT 28 * - - 80
----
2240

query II rowsort
SELECT + 24 AS col0, - 39
----
24
-39

query I rowsort
SELECT ALL 48 + - 15
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-238
SELECT - - 6 DIV - - 43 - - ( - 61 ) * - + 18 AS col1
----
1098

skipif mysql # not compatible
query I rowsort label-238
SELECT - - 6 / - - 43 - - ( - 61 ) * - + 18 AS col1
----
1098

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT ALL - 26 AS col1, - SUM( - 8 )
----
-26
8

skipif mysql # not compatible
query II rowsort label-239
SELECT ALL - 26 AS col1, - SUM ( - 8 )
----
-26
8

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

skipif mysql # not compatible
query II rowsort label-240
SELECT 25 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
25
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-241
SELECT - + SUM( DISTINCT 4 ) * + 17 + - COUNT( * ) - - 36 + - ( - 73 ) * + - 97 + - 62 - - - 6 DIV 30 * 23 * + 98 + + - 34 AS col0, 72
----
-7210
72

skipif mysql # not compatible
query II rowsort label-241
SELECT - + SUM ( DISTINCT 4 ) * + 17 + - COUNT ( * ) - - 36 + - ( - 73 ) * + - 97 + - 62 - - - 6 / 30 * 23 * + 98 + + - 34 AS col0, 72
----
-7210
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT + COALESCE ( + + CASE + - CAST( NULL AS SIGNED ) WHEN 66 * - + 86 THEN - - CASE - 9 WHEN + - 22 THEN 5 END ELSE NULL END, - 64 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-242
SELECT + COALESCE ( + + CASE + - CAST ( NULL AS INTEGER ) WHEN 66 * - + 86 THEN - - CASE - 9 WHEN + - 22 THEN 5 END ELSE NULL END, - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-243
SELECT + + COALESCE ( + + 76, - 98 ) * - + 74 * 27 - + 12 + + NULLIF ( + COUNT( * ), + 26 - 0 ) * + 64, NULLIF ( + + 81, - 75 ) * + ( + 4 ) + ( 88 ) + - - ( - + 56 ) - - 85 col1
----
-151796
441

skipif mysql # not compatible
query II rowsort label-243
SELECT + + COALESCE ( + + 76, - 98 ) * - + 74 * 27 - + 12 + + NULLIF ( + COUNT ( * ), + 26 - 0 ) * + 64, NULLIF ( + + 81, - 75 ) * + ( + 4 ) + ( 88 ) + - - ( - + 56 ) - - 85 col1
----
-151796
441

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-244
SELECT DISTINCT - 67 AS col2, - CAST( NULL AS SIGNED ) + - 87
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-244
SELECT DISTINCT - 67 AS col2, - CAST ( NULL AS INTEGER ) + - 87
----
-67
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-245
SELECT ALL - - 66 * CAST( + 73 AS SIGNED ) AS col2
----
4818

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL - - 66 * CAST ( + 73 AS INTEGER ) AS col2
----
4818

query I rowsort
SELECT 85 * + 16 * - 83 AS col2
----
-112880

onlyif mysql # DIV for integer division: 
query I rowsort label-247
SELECT ALL 90 DIV - - 45
----
2

skipif mysql # not compatible
query I rowsort label-247
SELECT ALL 90 / - - 45
----
2

query II rowsort
SELECT DISTINCT - 44 AS col2, + 87
----
-44
87

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

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

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

skipif mysql # not compatible
query I rowsort label-250
SELECT + 56 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 9 + + 29
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-252
SELECT + 84 / + 42 / - - CASE - COUNT( * ) WHEN - 35 THEN + - 75 WHEN - + 64 THEN NULL END AS col0, 37 + - 90 - + 88
----
NULL
-141

skipif mysql # not compatible
query II rowsort label-252
SELECT + 84 / + 42 / - - CASE - COUNT ( * ) WHEN - 35 THEN + - 75 WHEN - + 64 THEN NULL END AS col0, 37 + - 90 - + 88
----
NULL
-141

query II rowsort
SELECT 94 * + 79 col0, 50 * + 95
----
7426
4750

query I rowsort
SELECT 68 * - + ( - 15 )
----
1020

query I rowsort
SELECT ALL 88 + 46
----
134

query I rowsort
SELECT 74 - + 6
----
68

query I rowsort
SELECT ALL 64 + - - 75
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-258
SELECT DISTINCT + 73 + - 40 DIV + - 49, 42 * - 55 AS col1
----
73
-2310

skipif mysql # not compatible
query II rowsort label-258
SELECT DISTINCT + 73 + - 40 / + - 49, 42 * - 55 AS col1
----
73
-2310

query I rowsort
SELECT ALL + 28 + + 10
----
38

query I rowsort
SELECT ALL - 55 + 50 * + ( + 52 ) AS col1
----
2545

onlyif mysql # DIV for integer division: 
query I rowsort label-261
SELECT DISTINCT - 46 + - 4 DIV 96
----
-46

skipif mysql # not compatible
query I rowsort label-261
SELECT DISTINCT - 46 + - 4 / 96
----
-46

query I rowsort
SELECT 74 + - - 97 AS col1
----
171

query I rowsort
SELECT ALL - 28 + + ( + - 81 ) * - - 12 AS col0
----
-1000

query I rowsort
SELECT 19 - + - 50
----
69

query I rowsort
SELECT 93 + - + 54 + + 68
----
107

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-266
SELECT COUNT( * ) - 2 DIV + - COALESCE ( ( 48 ), + - 32 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( * ) - 2 / + - COALESCE ( ( 48 ), + - 32 ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 38 * - + 53 AS col1
----
2014

query I rowsort
SELECT 9 * + - ( - - 79 ) * - 85
----
60435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-269
SELECT ALL - COALESCE ( - 98, 27 * + + 50 * 65 + 55 * - CAST( NULL AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL - COALESCE ( - 98, 27 * + + 50 * 65 + 55 * - CAST ( NULL AS INTEGER ) )
----
98

query I rowsort
SELECT 29 * 5 + 53 AS col2
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-271
SELECT ALL - + 2 * + + 60 + + 5 * COUNT( * ) - CAST( NULL AS SIGNED ) * - 89 * + - 4 * 99 + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-271
SELECT ALL - + 2 * + + 60 + + 5 * COUNT ( * ) - CAST ( NULL AS INTEGER ) * - 89 * + - 4 * 99 + 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + 41 * + 85 * + + 92 * - - COUNT( * ) + + 46 + + 10 AS col2
----
320676

skipif mysql # not compatible
query I rowsort label-272
SELECT + 41 * + 85 * + + 92 * - - COUNT ( * ) + + 46 + + 10 AS col2
----
320676

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-273
SELECT DISTINCT - 34 DIV - + COUNT( * ) + 55
----
89

skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT - 34 / - + COUNT ( * ) + 55
----
89

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

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

query I rowsort
SELECT 43 + + 1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-276
SELECT 31 DIV + + 71 * + 7 * + + COUNT( ALL + - ( - + CAST( - 42 AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-276
SELECT 31 / + + 71 * + 7 * + + COUNT ( ALL + - ( - + CAST ( - 42 AS INTEGER ) ) )
----
0

query II rowsort
SELECT + + ( + 59 ), - 63 AS col1
----
59
-63

query I rowsort
SELECT NULLIF ( + - 71, + 10 ) AS col2
----
-71

query I rowsort
SELECT ALL + NULLIF ( + + 67, 72 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT ALL - COUNT( * ) * - 0 + - ( - AVG ( + 33 ) ) * CASE - 44 WHEN + ( 5 ) * - - 3 + + + 66 THEN - ( + COUNT( * ) ) ELSE NULL END + - MIN( ALL 12 ) + COALESCE ( + 36, 32 + + + 93 + 59 + - 40 * - NULLIF ( - MAX( 36 ), + 19 - COUNT( * ) ) / + CASE - COUNT( * ) WHEN - 62 THEN COUNT( * ) + + ( SUM( 30 ) ) + + - NULLIF ( + 4, - 42 ) * - 93 * 73 ELSE 1 + + ( MIN( COALESCE ( - CAST( 25 AS SIGNED ), + 31 ) ) + + 57 / + 99 ) END * 64 ) / - 48 / - ( 45 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT ALL - COUNT ( * ) * - 0 + - ( - AVG ( + 33 ) ) * CASE - 44 WHEN + ( 5 ) * - - 3 + + + 66 THEN - ( + COUNT ( * ) ) ELSE NULL END + - MIN ( ALL 12 ) + COALESCE ( + 36, 32 + + + 93 + 59 + - 40 * - NULLIF ( - MAX ( 36 ), + 19 - COUNT ( * ) ) / + CASE - COUNT ( * ) WHEN - 62 THEN COUNT ( * ) + + ( SUM ( 30 ) ) + + - NULLIF ( + 4, - 42 ) * - 93 * 73 ELSE 1 + + ( MIN ( COALESCE ( - CAST ( 25 AS INTEGER ), + 31 ) ) + + 57 / + 99 ) END * 64 ) / - 48 / - ( 45 ) AS col1
----
NULL

query II rowsort
SELECT 37 * 76 + 19 + + + 72 + 0 * - + 31 * - + 36 AS col2, + 12
----
2903
12

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT - MIN( + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-282
SELECT - MIN ( + 55 ) AS col0
----
-55

query I rowsort
SELECT + - 88 * 94 * + 85 * + 86 AS col0
----
-60468320

query I rowsort
SELECT + 7 + 75
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-285
SELECT + CAST( NULL AS SIGNED ) * + 43 - 65 + - + MAX( DISTINCT + NULLIF ( - - 99, - - 83 ) ) AS col2, + COUNT( * ) * 92 + - 39
----
NULL
53

skipif mysql # not compatible
query II rowsort label-285
SELECT + CAST ( NULL AS INTEGER ) * + 43 - 65 + - + MAX ( DISTINCT + NULLIF ( - - 99, - - 83 ) ) AS col2, + COUNT ( * ) * 92 + - 39
----
NULL
53

query I rowsort
SELECT + 21 * 90
----
1890

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-288
SELECT - CASE + + 36 WHEN + 53 * CAST( NULL AS SIGNED ) THEN NULL ELSE 4 * + + 98 END
----
-392

skipif mysql # not compatible
query I rowsort label-288
SELECT - CASE + + 36 WHEN + 53 * CAST ( NULL AS INTEGER ) THEN NULL ELSE 4 * + + 98 END
----
-392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-289
SELECT + CAST( + 80 AS SIGNED ) + + 13
----
93

skipif mysql # not compatible
query I rowsort label-289
SELECT + CAST ( + 80 AS INTEGER ) + + 13
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-290
SELECT DISTINCT 82 + - 48 / + + ( + 29 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT DISTINCT 82 + - 48 / + + ( + 29 ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 41 * + 89
----
3649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-292
SELECT - 22 + 67 + 72 * + 16 AS col1, + COALESCE ( + NULLIF ( + 68, + 80 * + + 91 * + + COALESCE ( + + COUNT( * ), 67 * - - 39 ) ), CAST( NULL AS SIGNED ) ) col0
----
1197
68

skipif mysql # not compatible
query II rowsort label-292
SELECT - 22 + 67 + 72 * + 16 AS col1, + COALESCE ( + NULLIF ( + 68, + 80 * + + 91 * + + COALESCE ( + + COUNT ( * ), 67 * - - 39 ) ), CAST ( NULL AS INTEGER ) ) col0
----
1197
68

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - 24 + 60 * + + MIN( DISTINCT + + 28 )
----
1656

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - 24 + 60 * + + MIN ( DISTINCT + + 28 )
----
1656

query I rowsort
SELECT ALL 75 + ( - 29 ) * + 93
----
-2622

query I rowsort
SELECT DISTINCT 34 + + - 7 AS col1
----
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-297
SELECT - 74, - CASE + - MIN( DISTINCT 79 ) WHEN - 99 THEN - COUNT( * ) + 36 + - COALESCE ( - ( - - 18 ), + 91 ) + + 28 ELSE + COUNT( * ) END * - 56 AS col0
----
-74
56

skipif mysql # not compatible
query II rowsort label-297
SELECT - 74, - CASE + - MIN ( DISTINCT 79 ) WHEN - 99 THEN - COUNT ( * ) + 36 + - COALESCE ( - ( - - 18 ), + 91 ) + + 28 ELSE + COUNT ( * ) END * - 56 AS col0
----
-74
56

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT 91 col0, - 90 + + COUNT( * )
----
91
-89

skipif mysql # not compatible
query II rowsort label-298
SELECT 91 col0, - 90 + + COUNT ( * )
----
91
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT - COUNT( * ) * + CASE + - 92 WHEN 78 - 3 THEN NULL WHEN - 42 THEN + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT - COUNT ( * ) * + CASE + - 92 WHEN 78 - 3 THEN NULL WHEN - 42 THEN + 83 END
----
NULL

query I rowsort
SELECT + + NULLIF ( + CASE - 81 WHEN 91 * - 35 + + + 12 THEN 20 + + 68 / - - 94 * - 25 / + 76 + + 36 * 49 ELSE NULL END, + + 39 ) AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( 58, 81 )
----
58

query I rowsort
SELECT - 66 - 94 * - 59 AS col2
----
5480

query I rowsort
SELECT ALL - - 57 * + 29
----
1653

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

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT 8 DIV 92 + 51 * + 0 * + + 65 * + 57 DIV 88 DIV + 49 - + 14
----
-14

skipif mysql # not compatible
query I rowsort label-305
SELECT 8 / 92 + 51 * + 0 * + + 65 * + 57 / 88 / + 49 - + 14
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-306
SELECT ALL + - 7 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-306
SELECT ALL + - 7 / - 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT - 78 * 85 + - COUNT( * ) DIV - 49 + - COUNT( * ) - + ( - 4 ) AS col0
----
-6627

skipif mysql # not compatible
query I rowsort label-307
SELECT - 78 * 85 + - COUNT ( * ) / - 49 + - COUNT ( * ) - + ( - 4 ) AS col0
----
-6627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-308
SELECT CAST( NULL AS SIGNED ) * + 10 + + - NULLIF ( + 52, + - 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-308
SELECT CAST ( NULL AS INTEGER ) * + 10 + + - NULLIF ( + 52, + - 54 )
----
NULL

query I rowsort
SELECT - 91 * + ( 91 ) + - 19
----
-8300

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

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

query I rowsort
SELECT ALL 35 * - 55
----
-1925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-312
SELECT ALL CAST( NULL AS SIGNED ) * - + 22 + + 11, 63 / - CASE 82 WHEN + 31 THEN - + 50 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-312
SELECT ALL CAST ( NULL AS INTEGER ) * - + 22 + + 11, 63 / - CASE 82 WHEN + 31 THEN - + 50 END AS col2
----
NULL
NULL

query II rowsort
SELECT DISTINCT + 45 AS col0, 10
----
45
10

query I rowsort
SELECT + 77 * + + 72 AS col0
----
5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-315
SELECT DISTINCT NULLIF ( + COUNT( * ), NULLIF ( - + 69, + 57 + - 72 + - CAST( NULL AS SIGNED ) * + + 8 ) + + 51 + + 12 * CAST( - 74 AS SIGNED ) ) * + NULLIF ( + - 33, - - 56 + + 48 * + - COALESCE ( COUNT( * ), - MIN( ALL + CAST( 32 AS SIGNED ) ) * - + 50 * + 75 ) * - COUNT( 64 ) + + + ( 55 ) + - 25 ) + 93, NULLIF ( + COUNT( * ), + 84 ) + + + 36 AS col1
----
60
37

skipif mysql # not compatible
query II rowsort label-315
SELECT DISTINCT NULLIF ( + COUNT ( * ), NULLIF ( - + 69, + 57 + - 72 + - CAST ( NULL AS INTEGER ) * + + 8 ) + + 51 + + 12 * CAST ( - 74 AS INTEGER ) ) * + NULLIF ( + - 33, - - 56 + + 48 * + - COALESCE ( COUNT ( * ), - MIN ( ALL + CAST ( 32 AS INTEGER ) ) * - + 50 * + 75 ) * - COUNT ( 64 ) + + + ( 55 ) + - 25 ) + 93, NULLIF ( + COUNT ( * ), + 84 ) + + + 36 AS col1
----
60
37

query I rowsort
SELECT 73 * + 52 + 12 col1
----
3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-317
SELECT ALL 21 * CAST( - + COUNT( * ) AS SIGNED ) + 64 * 29
----
1835

skipif mysql # not compatible
query I rowsort label-317
SELECT ALL 21 * CAST ( - + COUNT ( * ) AS INTEGER ) + 64 * 29
----
1835

onlyif mysql # aggregate syntax: 
query II rowsort label-318
SELECT - COUNT( * ) - + 3 AS col1, + 47 AS col1
----
-4
47

skipif mysql # not compatible
query II rowsort label-318
SELECT - COUNT ( * ) - + 3 AS col1, + 47 AS col1
----
-4
47

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT - SUM( ALL + 27 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-319
SELECT - SUM ( ALL + 27 ) AS col2
----
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-321
SELECT + CAST( NULL AS SIGNED ) + 20 + COUNT( * ) * + 44 * NULLIF ( 48, - 98 ) + 60 + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-321
SELECT + CAST ( NULL AS INTEGER ) + 20 + COUNT ( * ) * + 44 * NULLIF ( 48, - 98 ) + 60 + + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT COUNT( - 34 )
----
1

skipif mysql # not compatible
query I rowsort label-322
SELECT COUNT ( - 34 )
----
1

query I rowsort
SELECT + 99 * + 8 * - 65 AS col0
----
-51480

onlyif mysql # aggregate syntax: 
query II rowsort label-324
SELECT DISTINCT COUNT( * ) * - + COUNT( * ), - 7 * + 87 AS col0
----
-1
-609

skipif mysql # not compatible
query II rowsort label-324
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ), - 7 * + 87 AS col0
----
-1
-609

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-325
SELECT + 87 - - 3 DIV SUM( DISTINCT - 15 ) * COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-325
SELECT + 87 - - 3 / SUM ( DISTINCT - 15 ) * COUNT ( * )
----
87

query II rowsort
SELECT + 46 * 90 AS col2, 62
----
4140
62

query I rowsort
SELECT + 63 - - 62 + 40 * 34 AS col2
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL COUNT( - - 45 ) * - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL COUNT ( - - 45 ) * - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT - ( SUM( DISTINCT + 10 ) ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-329
SELECT - ( SUM ( DISTINCT + 10 ) ) col0
----
-10

query I rowsort
SELECT + 15 + - 82 + - 71
----
-138

query I rowsort
SELECT + 27 + - 21
----
6

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

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

query I rowsort
SELECT + 3 + 50 AS col2
----
53

query I rowsort
SELECT - 9 - - ( + 46 ) AS col0
----
37

query I rowsort
SELECT + 51 + - 99 * - 63 AS col0
----
6288

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT + - COUNT( * ) + 6
----
5

skipif mysql # not compatible
query I rowsort label-336
SELECT + - COUNT ( * ) + 6
----
5

query I rowsort
SELECT + - ( - NULLIF ( ( 53 ), 71 ) )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT + 87 + MIN( + 40 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-338
SELECT + 87 + MIN ( + 40 ) AS col1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT + - 14 * COUNT( * ) + - 61 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-339
SELECT + - 14 * COUNT ( * ) + - 61 AS col0
----
-75

query I rowsort
SELECT - 9 * + ( 19 )
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT + NULLIF ( 76, 45 ) + + - ( + 6 ) DIV - - 63 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT + NULLIF ( 76, 45 ) + + - ( + 6 ) / - - 63 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * + 92 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * + 92 AS col2
----
-92

query II rowsort
SELECT DISTINCT - - 17 + + 29, + 59 AS col0
----
46
59

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

skipif mysql # not compatible
query I rowsort label-344
SELECT + 76 + 16 + + COUNT ( * ) AS col1
----
93

query I rowsort
SELECT ALL + 96 + - + 70 AS col2
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-347
SELECT DISTINCT - 74 + + 62 * - ( + - COUNT( * ) ) + + 80 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-347
SELECT DISTINCT - 74 + + 62 * - ( + - COUNT ( * ) ) + + 80 AS col0
----
68

query I rowsort
SELECT ALL + 5 * - + 67 AS col0
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-349
SELECT DISTINCT - 59 + MAX( - - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-349
SELECT DISTINCT - 59 + MAX ( - - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT ALL - COUNT( * ) + - + CASE + 91 WHEN 94 * - 23 + - 72 THEN + 44 ELSE + 3 END AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-350
SELECT ALL - COUNT ( * ) + - + CASE + 91 WHEN 94 * - 23 + - 72 THEN + 44 ELSE + 3 END AS col2
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-351
SELECT DISTINCT + 87 DIV - + COUNT( * ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT + 87 / - + COUNT ( * ) AS col2
----
-87

query I rowsort
SELECT 86 - 25 AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-353
SELECT ALL + CASE CASE - CAST( NULL AS SIGNED ) WHEN - 4 * - COUNT( * ) * ( + + 55 ) + + CAST( NULL AS SIGNED ) / 95 + - + 56 + + + 38 + - - CASE - 97 WHEN + + 60 THEN + 36 * CAST( - - 37 AS SIGNED ) ELSE - ( - - 30 ) END THEN - 75 ELSE NULL END WHEN COUNT( * ) + - + ( - 16 ) + - COUNT( * ) + 94 THEN + 64 - + 18 END * + 94 * 16 * + + 53 AS col2, 43 AS col0
----
NULL
43

skipif mysql # not compatible
query II rowsort label-353
SELECT ALL + CASE CASE - CAST ( NULL AS INTEGER ) WHEN - 4 * - COUNT ( * ) * ( + + 55 ) + + CAST ( NULL AS INTEGER ) / 95 + - + 56 + + + 38 + - - CASE - 97 WHEN + + 60 THEN + 36 * CAST ( - - 37 AS INTEGER ) ELSE - ( - - 30 ) END THEN - 75 ELSE NULL END WHEN COUNT ( * ) + - + ( - 16 ) + - COUNT ( * ) + 94 THEN + 64 - + 18 END * + 94 * 16 * + + 53 AS col2, 43 AS col0
----
NULL
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-354
SELECT ALL + COUNT( ALL + 71 ) DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-354
SELECT ALL + COUNT ( ALL + 71 ) / 62 AS col0
----
0

query II rowsort
SELECT DISTINCT 23 * - CASE 84 WHEN 79 THEN 15 ELSE NULL END AS col1, 50 AS col1
----
NULL
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT 18 + - 40 * + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-357
SELECT 18 + - 40 * + COUNT ( * )
----
-22

query II rowsort
SELECT DISTINCT 11 AS col2, 18
----
11
18

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL + MIN( ALL 86 ) * - 16 col1
----
-1376

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL + MIN ( ALL 86 ) * - 16 col1
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT 11 * - - MIN( ALL 64 )
----
704

skipif mysql # not compatible
query I rowsort label-360
SELECT 11 * - - MIN ( ALL 64 )
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ( + + MAX( DISTINCT - 73 ) ) + - COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-361
SELECT ( + + MAX ( DISTINCT - 73 ) ) + - COUNT ( * )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT CAST( NULL AS SIGNED ) * - CASE - + 71 WHEN 60 + - 80 + - 17 THEN + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-362
SELECT CAST ( NULL AS INTEGER ) * - CASE - + 71 WHEN 60 + - 80 + - 17 THEN + 39 END
----
NULL

query I rowsort
SELECT ALL 88 * + 13 AS col0
----
1144

query I rowsort
SELECT DISTINCT + 89 * + 24 * + 67 AS col2
----
143112

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

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT - COUNT ( * ) + + + 57 AS col1
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-366
SELECT ALL SUM( 24 ) * 74 + + SUM( + CASE + CAST( + 3 AS SIGNED ) WHEN - 60 THEN + - 80 + - 87 ELSE NULL END ) * + 27 + - 17 * SUM( + ( + 19 ) ) * 0 + 85 + - - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-366
SELECT ALL SUM ( 24 ) * 74 + + SUM ( + CASE + CAST ( + 3 AS INTEGER ) WHEN - 60 THEN + - 80 + - 87 ELSE NULL END ) * + 27 + - 17 * SUM ( + ( + 19 ) ) * 0 + 85 + - - 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL COUNT( 81 ) + + 27 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL COUNT ( 81 ) + + 27 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-368
SELECT 85 - COALESCE ( - + 88, 25 * 49 * + - COUNT( * ) - - - 32 DIV CAST( + COALESCE ( + 89, + 77 * - 1 + - ( + 35 ) * + 39 - + - ( - 30 ) ) AS SIGNED ) + - COUNT( * ) + + COALESCE ( + 74, - CAST( NULL AS SIGNED ) * + SUM( - 22 ) + - + 29 * COUNT( * ) DIV AVG ( 65 ) ) + + + COUNT( * ) * + COUNT( * ) + 27, + + 53 ) AS col2
----
173

skipif mysql # not compatible
query I rowsort label-368
SELECT 85 - COALESCE ( - + 88, 25 * 49 * + - COUNT ( * ) - - - 32 / CAST ( + COALESCE ( + 89, + 77 * - 1 + - ( + 35 ) * + 39 - + - ( - 30 ) ) AS INTEGER ) + - COUNT ( * ) + + COALESCE ( + 74, - CAST ( NULL AS INTEGER ) * + SUM ( - 22 ) + - + 29 * COUNT ( * ) / AVG ( 65 ) ) + + + COUNT ( * ) * + COUNT ( * ) + 27, + + 53 ) AS col2
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT - 31 DIV COUNT( ALL 21 ) - 15 col1
----
-46

skipif mysql # not compatible
query I rowsort label-369
SELECT - 31 / COUNT ( ALL 21 ) - 15 col1
----
-46

query I rowsort
SELECT ALL - 26 + ( 83 )
----
57

query I rowsort
SELECT ALL - - 39 + - - 86 AS col1
----
125

query I rowsort
SELECT ALL - 76 + 30 AS col0
----
-46

query II rowsort
SELECT 3 + + - 66 * 26 AS col2, 58 AS col1
----
-1713
58

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

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL + COUNT ( * ) - - MAX ( DISTINCT - 81 ) col1
----
-80

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

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

skipif mysql # not compatible
query II rowsort label-376
SELECT 91 AS col1, MAX ( DISTINCT - 52 ) AS col2
----
91
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT ( - 84 ) * - CASE - 33 WHEN COUNT( * ) * - 7 THEN - - 40 WHEN COUNT( * ) THEN NULL ELSE + 21 END + + 74 + + COUNT( * ) - + - 79 * - 52 * - + 37 AS col1
----
153835

skipif mysql # not compatible
query I rowsort label-377
SELECT ( - 84 ) * - CASE - 33 WHEN COUNT ( * ) * - 7 THEN - - 40 WHEN COUNT ( * ) THEN NULL ELSE + 21 END + + 74 + + COUNT ( * ) - + - 79 * - 52 * - + 37 AS col1
----
153835

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT DISTINCT + MIN( - 52 ) * COALESCE ( 90, + 19 ) * + 99 * - + 49 + - 79 - 12 * 53
----
22701965

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT + MIN ( - 52 ) * COALESCE ( 90, + 19 ) * + 99 * - + 49 + - 79 - 12 * 53
----
22701965

query I rowsort
SELECT DISTINCT - 28 - 15 AS col1
----
-43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL - COUNT( * ) - COALESCE ( - 73, - COUNT( + 86 ) )
----
72

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL - COUNT ( * ) - COALESCE ( - 73, - COUNT ( + 86 ) )
----
72

query II rowsort
SELECT ALL - 47 AS col1, 23 * 67 AS col1
----
-47
1541

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

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

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

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

query II rowsort
SELECT 1 AS col2, + 73
----
1
73

query I rowsort
SELECT 8 + + - 47 + 24 + - - 43 AS col2
----
28

query II rowsort
SELECT 47 * + 6, 93 AS col2
----
282
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL - CAST( NULL AS SIGNED ) / - + 96 * + 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 96 * + 72 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-389
SELECT 18 + - COALESCE ( + - 54, + 79 * + 83 DIV - 46 )
----
72

skipif mysql # not compatible
query I rowsort label-389
SELECT 18 + - COALESCE ( + - 54, + 79 * + 83 / - 46 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT SUM( - 47 ) * + 34 AS col0
----
-1598

skipif mysql # not compatible
query I rowsort label-390
SELECT SUM ( - 47 ) * + 34 AS col0
----
-1598

query I rowsort
SELECT 27 + + + 31
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT ALL SUM( ALL - + 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-392
SELECT ALL SUM ( ALL - + 79 ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT DISTINCT SUM( 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT SUM ( 64 ) AS col0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-394
SELECT - 74 - - + CAST( + - 64 AS SIGNED )
----
-138

skipif mysql # not compatible
query I rowsort label-394
SELECT - 74 - - + CAST ( + - 64 AS INTEGER )
----
-138

query I rowsort
SELECT DISTINCT - 23 + - ( + 34 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT DISTINCT - COUNT( DISTINCT - - 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT - COUNT ( DISTINCT - - 27 ) AS col1
----
-1

query I rowsort
SELECT + + 96 + + + 98 + - 57
----
137

onlyif mysql # aggregate syntax: 
query II rowsort label-398
SELECT ALL - + MIN( - 84 ) + + ( + 39 ), - 95 col2
----
123
-95

skipif mysql # not compatible
query II rowsort label-398
SELECT ALL - + MIN ( - 84 ) + + ( + 39 ), - 95 col2
----
123
-95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT + - COALESCE ( - MAX( DISTINCT + + 6 ), - 31 ) + + 90 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-400
SELECT + - COALESCE ( - MAX ( DISTINCT + + 6 ), - 31 ) + + 90 AS col1
----
96

query II rowsort
SELECT DISTINCT 78, ( ( 73 ) ) AS col1
----
78
73

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL + COUNT( * ) + 20 + 92 + - + 77 col1
----
36

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL + COUNT ( * ) + 20 + 92 + - + 77 col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-403
SELECT - - 35 + + 11 DIV - COALESCE ( + + 53, - 73 - - + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-403
SELECT - - 35 + + 11 / - COALESCE ( + + 53, - 73 - - + COUNT ( * ) )
----
35

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

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

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

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL - COUNT ( * ) AS col0, 83 AS col0
----
-1
83

query I rowsort
SELECT - + 60 + 15
----
-45

query III rowsort
SELECT ALL - + 96 + - - 66, ( 19 ) AS col2, + 41 AS col0
----
-30
19
41

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

skipif mysql # not compatible
query I rowsort label-408
SELECT - + MIN ( + - 58 )
----
58

query II rowsort
SELECT ALL - 20, 42 * - 49 - ( 52 ) AS col1
----
-20
-2110

query I rowsort
SELECT ALL 2 + + 68
----
70

query II rowsort
SELECT DISTINCT - 16 * + 65 col0, 79 + 69
----
-1040
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-412
SELECT DISTINCT - 72 * + CAST( NULL AS SIGNED ) * - 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT - 72 * + CAST ( NULL AS INTEGER ) * - 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL + 19 * - 67 - - CASE + 17 WHEN + 72 THEN NULL WHEN + - 79 THEN NULL WHEN - 21 THEN - - 61 + + + MIN( ALL + 78 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL + 19 * - 67 - - CASE + 17 WHEN + 72 THEN NULL WHEN + - 79 THEN NULL WHEN - 21 THEN - - 61 + + + MIN ( ALL + 78 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + - 33 * 4 * + 27 + - 72 - 22 * + + 62 AS col1
----
-5000

query I rowsort
SELECT + - 28 * 56 - + 42 AS col1
----
-1610

query II rowsort
SELECT ALL + - 91, + 20 AS col0
----
-91
20

onlyif mysql # aggregate syntax: 
query II rowsort label-417
SELECT + ( + - COUNT( * ) ) * + + 16 + + COUNT( * ) + 76 AS col2, ( + + ( + 36 ) )
----
61
36

skipif mysql # not compatible
query II rowsort label-417
SELECT + ( + - COUNT ( * ) ) * + + 16 + + COUNT ( * ) + 76 AS col2, ( + + ( + 36 ) )
----
61
36

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-418
SELECT CASE 13 WHEN + - 89 * - 99 + COALESCE ( - CAST( + 97 AS SIGNED ), - ( 87 ) DIV 92 + - 6 DIV + - 53 ) + 2 THEN + 51 ELSE 79 DIV + 46 - - 22 + - + 57 END
----
-34

skipif mysql # not compatible
query I rowsort label-418
SELECT CASE 13 WHEN + - 89 * - 99 + COALESCE ( - CAST ( + 97 AS INTEGER ), - ( 87 ) / 92 + - 6 / + - 53 ) + 2 THEN + 51 ELSE 79 / + 46 - - 22 + - + 57 END
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT + CAST( 43 AS SIGNED ) + + 44 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-419
SELECT + CAST ( 43 AS INTEGER ) + + 44 AS col1
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-420
SELECT DISTINCT COUNT( * ) * 65 * 88 * + - CAST( + 56 AS SIGNED ) col2
----
-320320

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT COUNT ( * ) * 65 * 88 * + - CAST ( + 56 AS INTEGER ) col2
----
-320320

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT CASE - NULLIF ( - COUNT( * ), - - 6 ) WHEN - + 76 + - 62 THEN - - 32 END, 47 AS col0
----
NULL
47

skipif mysql # not compatible
query II rowsort label-421
SELECT CASE - NULLIF ( - COUNT ( * ), - - 6 ) WHEN - + 76 + - 62 THEN - - 32 END, 47 AS col0
----
NULL
47

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT + 40 + + SUM( ALL + 94 ) * - 42 * + 22 AS col0
----
-86816

skipif mysql # not compatible
query I rowsort label-422
SELECT + 40 + + SUM ( ALL + 94 ) * - 42 * + 22 AS col0
----
-86816

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + 11 * 45 * MAX( + 24 )
----
11880

skipif mysql # not compatible
query I rowsort label-423
SELECT + 11 * 45 * MAX ( + 24 )
----
11880

query III rowsort
SELECT - 16 + - 28, 67 AS col0, + 3 * + - 14 AS col2
----
-44
67
-42

query I rowsort
SELECT + NULLIF ( - 4, + 35 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-426
SELECT ALL + COUNT( + 87 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-426
SELECT ALL + COUNT ( + 87 ) col0
----
1

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

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

query I rowsort
SELECT + 32 * + 82 + 29 * - 81 * 90
----
-208786

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

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

query I rowsort
SELECT ALL + - 35 + + + 88 * + - 8 AS col2
----
-739

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

onlyif mysql # DIV for integer division: 
query I rowsort label-432
SELECT - + 50 DIV - 27 + + ( - 29 ) + 26 col1
----
-2

skipif mysql # not compatible
query I rowsort label-432
SELECT - + 50 / - 27 + + ( - 29 ) + 26 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT - 6 * + CASE + 56 WHEN - + 23 * + CASE 99 WHEN ( + 51 ) * - 82 * + 27 THEN - - 42 * 34 + 73 + 38 * + 96 END + + 33 THEN + - 63 + + 78 * + COUNT( * ) + - 99 + - 51 WHEN - 31 * + 10 THEN NULL END * + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-433
SELECT - 6 * + CASE + 56 WHEN - + 23 * + CASE 99 WHEN ( + 51 ) * - 82 * + 27 THEN - - 42 * 34 + 73 + 38 * + 96 END + + 33 THEN + - 63 + + 78 * + COUNT ( * ) + - 99 + - 51 WHEN - 31 * + 10 THEN NULL END * + 48 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-434
SELECT - 76 * 10 col2, 52 DIV - COALESCE ( 31, - + 76 ) AS col0
----
-760
-1

skipif mysql # not compatible
query II rowsort label-434
SELECT - 76 * 10 col2, 52 / - COALESCE ( 31, - + 76 ) AS col0
----
-760
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-435
SELECT DISTINCT - 28 DIV 14, + COUNT( * ) AS col1
----
-2
1

skipif mysql # not compatible
query II rowsort label-435
SELECT DISTINCT - 28 / 14, + COUNT ( * ) AS col1
----
-2
1

query I rowsort
SELECT DISTINCT - - 98 + - 8
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-437
SELECT - 33 DIV + - 25 AS col0, - 38 AS col2
----
1
-38

skipif mysql # not compatible
query II rowsort label-437
SELECT - 33 / + - 25 AS col0, - 38 AS col2
----
1
-38

query I rowsort
SELECT ALL - 78 + + 68 AS col1
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-439
SELECT - - 73 * - CAST( NULL AS SIGNED ) AS col1, 9, NULLIF ( COALESCE ( - 14, - 51 ), - - 54 * - MAX( - 9 ) ) AS col1
----
NULL
9
-14

skipif mysql # not compatible
query III rowsort label-439
SELECT - - 73 * - CAST ( NULL AS INTEGER ) AS col1, 9, NULLIF ( COALESCE ( - 14, - 51 ), - - 54 * - MAX ( - 9 ) ) AS col1
----
NULL
9
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-440
SELECT DISTINCT - CAST( - 97 AS SIGNED ) * MAX( 70 ) AS col2
----
6790

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT - CAST ( - 97 AS INTEGER ) * MAX ( 70 ) AS col2
----
6790

query I rowsort
SELECT DISTINCT - 76 - + - 86
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT - + 54 + - + 72 DIV - - 96 AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-442
SELECT - + 54 + - + 72 / - - 96 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - COUNT( ALL - 85 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-443
SELECT - COUNT ( ALL - 85 ) AS col1
----
-1

query I rowsort
SELECT ALL - 43 - - 69 * + 15 AS col0
----
992

query I rowsort
SELECT DISTINCT 23 * - 0 AS col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-446
SELECT CAST( NULL AS DECIMAL ), + 84 DIV + 16 AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-446
SELECT CAST ( NULL AS REAL ), + 84 / + 16 AS col1
----
NULL
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-447
SELECT + 99 - + COUNT( * ) DIV 3 + - - 95
----
194

skipif mysql # not compatible
query I rowsort label-447
SELECT + 99 - + COUNT ( * ) / 3 + - - 95
----
194

onlyif mysql # DIV for integer division: 
query I rowsort label-448
SELECT - 11 DIV + 30 * - 16 col1
----
0

skipif mysql # not compatible
query I rowsort label-448
SELECT - 11 / + 30 * - 16 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT + 17 * - - MAX( ALL - 74 ), - COUNT( * ) AS col0
----
-1258
-1

skipif mysql # not compatible
query II rowsort label-449
SELECT + 17 * - - MAX ( ALL - 74 ), - COUNT ( * ) AS col0
----
-1258
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-450
SELECT + NULLIF ( + CAST( NULL AS SIGNED ), + 78 - - COALESCE ( 60, CASE 31 WHEN + 96 / + 78 THEN - + 44 + + + 81 WHEN - + CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) THEN NULL ELSE + 82 + - SUM( ALL + 40 ) END ) ), 93 + + CAST( - + 27 AS SIGNED ) * - CASE - CASE - SUM( DISTINCT + 45 ) WHEN + + 3 - - 73 THEN MAX( - - 52 ) * - 32 END WHEN 59 * + CAST( + 31 AS DECIMAL ) THEN + + 43 * - + 9 WHEN + 33 THEN NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-450
SELECT + NULLIF ( + CAST ( NULL AS INTEGER ), + 78 - - COALESCE ( 60, CASE 31 WHEN + 96 / + 78 THEN - + 44 + + + 81 WHEN - + CAST ( NULL AS INTEGER ) / - + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 82 + - SUM ( ALL + 40 ) END ) ), 93 + + CAST ( - + 27 AS INTEGER ) * - CASE - CASE - SUM ( DISTINCT + 45 ) WHEN + + 3 - - 73 THEN MAX ( - - 52 ) * - 32 END WHEN 59 * + CAST ( + 31 AS REAL ) THEN + + 43 * - + 9 WHEN + 33 THEN NULL END
----
NULL
NULL

query I rowsort
SELECT + NULLIF ( + ( + 13 ), + - 38 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT - COALESCE ( - 94, - COALESCE ( + - ( + 35 ), + 13 ) ) * + 84 + - COUNT( * )
----
7895

skipif mysql # not compatible
query I rowsort label-452
SELECT - COALESCE ( - 94, - COALESCE ( + - ( + 35 ), + 13 ) ) * + 84 + - COUNT ( * )
----
7895

query I rowsort
SELECT DISTINCT ( + 31 ) + + 80
----
111

query I rowsort
SELECT DISTINCT 10 + - + 56
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT ALL 45 + - 50 DIV - 39 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL 45 + - 50 / - 39 AS col2
----
46

query I rowsort
SELECT ( 44 ) * + 94 * - + 55
----
-227480

query I rowsort
SELECT 27 + + - 96 AS col2
----
-69

query I rowsort
SELECT ALL 20 + - 35
----
-15

query I rowsort
SELECT 80 * + - 88 * 19
----
-133760

query I rowsort
SELECT ALL - 82 * + + 73 col0
----
-5986

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

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

query I rowsort
SELECT ALL - NULLIF ( 7, 25 ) * + + 44 AS col1
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT + 31 + + + NULLIF ( - 67, ( - + COUNT( * ) ) ) + - 28 - 70
----
-134

skipif mysql # not compatible
query I rowsort label-463
SELECT + 31 + + + NULLIF ( - 67, ( - + COUNT ( * ) ) ) + - 28 - 70
----
-134

onlyif mysql # aggregate syntax: 
query II rowsort label-464
SELECT ALL - 38 * 53 - COUNT( * ) col0, + 98 * + 19
----
-2015
1862

skipif mysql # not compatible
query II rowsort label-464
SELECT ALL - 38 * 53 - COUNT ( * ) col0, + 98 * + 19
----
-2015
1862

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT DISTINCT COUNT( * ) - + ( - + 78 ) * + 30
----
2341

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT COUNT ( * ) - + ( - + 78 ) * + 30
----
2341

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-466
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-466
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) + + 16 AS col2
----
NULL

query I rowsort
SELECT ALL 23 - + 91
----
-68

query I rowsort
SELECT - NULLIF ( - 45, 83 / 23 * - + 84 + + 5 - + + 35 )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT SUM( ALL + + 58 ) * + 75 + + + 78 + - 0 AS col2
----
4428

skipif mysql # not compatible
query I rowsort label-469
SELECT SUM ( ALL + + 58 ) * + 75 + + + 78 + - 0 AS col2
----
4428

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT MAX( - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT MAX ( - 81 )
----
-81

query I rowsort
SELECT - 20 + 83
----
63

query II rowsort
SELECT - 36, 56 * + 9 AS col2
----
-36
504

query I rowsort
SELECT - 94 * - 40
----
3760

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT ALL + + 53 DIV - + 48
----
-1

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + + 53 / - + 48
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT COUNT( * ) + ( 75 ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-475
SELECT COUNT ( * ) + ( 75 ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT + ( + 52 ) - - + COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-476
SELECT + ( + 52 ) - - + COUNT ( * ) AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT ALL + - 28 DIV 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL + - 28 / 22 AS col0
----
-1

query I rowsort
SELECT 62 * 63 AS col2
----
3906

onlyif mysql # aggregate syntax: 
query II rowsort label-479
SELECT DISTINCT ( SUM( 14 ) ), CASE + - 57 WHEN + - 30 + - + 74 THEN + - 97 + + + 79 ELSE NULL END AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-479
SELECT DISTINCT ( SUM ( 14 ) ), CASE + - 57 WHEN + - 30 + - + 74 THEN + - 97 + + + 79 ELSE NULL END AS col1
----
14
NULL

query I rowsort
SELECT + 60 * + 41
----
2460

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT ALL - 79 * - 47 * + - MIN( - - 47 ) AS col0, + 25 AS col2
----
-174511
25

skipif mysql # not compatible
query II rowsort label-483
SELECT ALL - 79 * - 47 * + - MIN ( - - 47 ) AS col0, + 25 AS col2
----
-174511
25

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT 93 * 87 DIV + 75
----
107

skipif mysql # not compatible
query I rowsort label-484
SELECT 93 * 87 / + 75
----
107

query I rowsort
SELECT 28 * + 72 col2
----
2016

query I rowsort
SELECT ALL + 6 + - 34 + 74 * - + 50 * - - 98
----
-362628

query I rowsort
SELECT DISTINCT - 34 + - + 56 * - + 21 + 85 col1
----
1227

query I rowsort
SELECT ALL + COALESCE ( - 67, 43, + 2 ) + - 40 col2
----
-107

query I rowsort
SELECT ALL 69 + 32 AS col1
----
101

query I rowsort
SELECT ALL 45 + - 46 AS col2
----
-1

query II rowsort
SELECT 8 * + 48 + COALESCE ( + - 37, + 69 ) AS col1, ( + - 92 ) + + 33 AS col2
----
347
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT MAX( - 8 ) + COUNT( + + 19 )
----
-7

skipif mysql # not compatible
query I rowsort label-492
SELECT MAX ( - 8 ) + COUNT ( + + 19 )
----
-7

query I rowsort
SELECT DISTINCT 50 * + 85 AS col2
----
4250

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT COUNT( * ) * + - COUNT( * ) * COUNT( * ) * - - MIN( DISTINCT 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-495
SELECT COUNT ( * ) * + - COUNT ( * ) * COUNT ( * ) * - - MIN ( DISTINCT 6 )
----
-6

query I rowsort
SELECT DISTINCT + 11 + + + 23
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT ALL - SUM( - - CASE + - 47 WHEN - 75 THEN NULL WHEN - 38 THEN + + 75 - - + 44 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL - SUM ( - - CASE + - 47 WHEN - 75 THEN NULL WHEN - 38 THEN + + 75 - - + 44 END )
----
NULL

query I rowsort
SELECT ( + 29 ) * - 13 * ( + 91 ) * - 99 * + 42 AS col2
----
142648506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-499
SELECT ALL CAST( - - COUNT( * ) AS SIGNED ) DIV + NULLIF ( + 3, COALESCE ( - ( - - COUNT( * ) ), 51, + + 92 * - 25 + + AVG ( DISTINCT - 92 ) ) * + + NULLIF ( - 70, 26 ) * 47 + + 84 * + AVG ( ALL + - 88 ) * + 40 DIV SUM( DISTINCT - + 85 ) * + MAX( - + 18 ) - + + 79 - + - 29 + + COUNT( + 39 ) - 61 )
----
0

skipif mysql # not compatible
query I rowsort label-499
SELECT ALL CAST ( - - COUNT ( * ) AS INTEGER ) / + NULLIF ( + 3, COALESCE ( - ( - - COUNT ( * ) ), 51, + + 92 * - 25 + + AVG ( DISTINCT - 92 ) ) * + + NULLIF ( - 70, 26 ) * 47 + + 84 * + AVG ( ALL + - 88 ) * + 40 / SUM ( DISTINCT - + 85 ) * + MAX ( - + 18 ) - + + 79 - + - 29 + + COUNT ( + 39 ) - 61 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-500
SELECT 28 DIV 41 + - 51 * 95 + 5 AS col1
----
-4840

skipif mysql # not compatible
query I rowsort label-500
SELECT 28 / 41 + - 51 * 95 + 5 AS col1
----
-4840

query I rowsort
SELECT - NULLIF ( - + 10, NULLIF ( - - 80, - - 28 ) * + 12 * + 18 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT + COUNT( * ) - - 85
----
86

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + COUNT ( * ) - - 85
----
86

query I rowsort
SELECT 77 * - - 87
----
6699

query I rowsort
SELECT - 95 * + 70 AS col1
----
-6650

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-506
SELECT ALL - CASE NULLIF ( 4, 90 * - - 99 + + 1 ) WHEN + 93 + - - 59 * + 37 - + CAST( - ( NULLIF ( 17, - 26 ) ) AS DECIMAL ) * + 72 THEN - 39 * - 40 + - 5 + - - MIN( DISTINCT 62 ) * 99 + + ( + - COUNT( * ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL - CASE NULLIF ( 4, 90 * - - 99 + + 1 ) WHEN + 93 + - - 59 * + 37 - + CAST ( - ( NULLIF ( 17, - 26 ) ) AS REAL ) * + 72 THEN - 39 * - 40 + - 5 + - - MIN ( DISTINCT 62 ) * 99 + + ( + - COUNT ( * ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 77 * + 89 * 49
----
335797

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-508
SELECT ALL + CAST( - - 16 AS SIGNED ) AS col1, 84 * 48 AS col2
----
16
4032

skipif mysql # not compatible
query II rowsort label-508
SELECT ALL + CAST ( - - 16 AS INTEGER ) AS col1, 84 * 48 AS col2
----
16
4032

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT - COALESCE ( - 44, - + 52, - + 3 * - + COUNT( * ) ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-510
SELECT - COALESCE ( - 44, - + 52, - + 3 * - + COUNT ( * ) ) AS col2
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-511
SELECT CAST( NULL AS DECIMAL ) - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT CAST ( NULL AS REAL ) - 89
----
NULL

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

skipif mysql # not compatible
query I rowsort label-512
SELECT CAST ( NULL AS INTEGER ) / ( + - CAST ( - 68 AS INTEGER ) ) AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT - 77 * + ( MAX( ALL 36 ) ) * - - 84 + - 44 + + 13
----
-232879

skipif mysql # not compatible
query I rowsort label-514
SELECT - 77 * + ( MAX ( ALL 36 ) ) * - - 84 + - 44 + + 13
----
-232879

query I rowsort
SELECT ALL 8 * 18 + + 24 AS col2
----
168

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-516
SELECT - SUM( DISTINCT + 18 ) * + COUNT( * ) AS col2, 16 DIV + 67 + 31 AS col0
----
-18
31

skipif mysql # not compatible
query II rowsort label-516
SELECT - SUM ( DISTINCT + 18 ) * + COUNT ( * ) AS col2, 16 / + 67 + 31 AS col0
----
-18
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-517
SELECT 21 / + CAST( NULL AS SIGNED ) - - - 38 / + COUNT( * ) * - 79, 58 AS col1
----
NULL
58

skipif mysql # not compatible
query II rowsort label-517
SELECT 21 / + CAST ( NULL AS INTEGER ) - - - 38 / + COUNT ( * ) * - 79, 58 AS col1
----
NULL
58

query I rowsort
SELECT ALL - 85 * 58 AS col0
----
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT ALL - ( NULLIF ( - + ( - 11 ), 16 ) ) * - 90 * 45 + - COUNT( * ) * + - 6 AS col1
----
44556

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL - ( NULLIF ( - + ( - 11 ), 16 ) ) * - 90 * 45 + - COUNT ( * ) * + - 6 AS col1
----
44556

query I rowsort
SELECT ALL + 13 * + 39 AS col1
----
507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT MAX( DISTINCT - 70 )
----
-70

skipif mysql # not compatible
query I rowsort label-522
SELECT MAX ( DISTINCT - 70 )
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-523
SELECT DISTINCT 25 * + 9 - - 55 * 63 DIV - ( - 21 ) + + 39 DIV - COUNT( * ) + - 8
----
343

skipif mysql # not compatible
query I rowsort label-523
SELECT DISTINCT 25 * + 9 - - 55 * 63 / - ( - 21 ) + + 39 / - COUNT ( * ) + - 8
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT - + 85 - - + COUNT( * ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-524
SELECT - + 85 - - + COUNT ( * ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-525
SELECT ALL + - CASE 60 WHEN 12 THEN - - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-525
SELECT ALL + - CASE 60 WHEN 12 THEN - - COUNT ( * ) ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT DISTINCT + - 57 col1, 92
----
-57
92

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + COUNT( - - 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-527
SELECT + COUNT ( - - 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-528
SELECT + - 61 * + 54 * - COUNT( * ) * + COUNT( + 7 ) AS col2, - 72, 49 * 30 + - 8 - + 45 + + 93 * + 83 + 52 * + + 76 + + + 45 col0
----
3294
-72
13133

skipif mysql # not compatible
query III rowsort label-528
SELECT + - 61 * + 54 * - COUNT ( * ) * + COUNT ( + 7 ) AS col2, - 72, 49 * 30 + - 8 - + 45 + + 93 * + 83 + 52 * + + 76 + + + 45 col0
----
3294
-72
13133

query I rowsort
SELECT ALL + 56 * + - 26
----
-1456

query I rowsort
SELECT - - 50 + + + 9
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-531
SELECT COUNT( * ) * + 25 DIV - 36 + 97 * - - 23 + - + 3 - ( - 55 ) + - 55 AS col2
----
2228

skipif mysql # not compatible
query I rowsort label-531
SELECT COUNT ( * ) * + 25 / - 36 + 97 * - - 23 + - + 3 - ( - 55 ) + - 55 AS col2
----
2228

query II rowsort
SELECT ALL 26 AS col2, + 68
----
26
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-533
SELECT 0 * - + NULLIF ( - - 68, - + COUNT( * ) ) * CAST( AVG ( - 78 ) AS SIGNED ) - + 92 * + 2 * + 62 + CAST( NULL AS SIGNED ) + + + 21 + + 18 * 65
----
NULL

skipif mysql # not compatible
query I rowsort label-533
SELECT 0 * - + NULLIF ( - - 68, - + COUNT ( * ) ) * CAST ( AVG ( - 78 ) AS INTEGER ) - + 92 * + 2 * + 62 + CAST ( NULL AS INTEGER ) + + + 21 + + 18 * 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-534
SELECT DISTINCT + + COUNT( * ) * COALESCE ( - 92, + MIN( DISTINCT + 90 ) * + CAST( - 24 AS SIGNED ) + - 23 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT + + COUNT ( * ) * COALESCE ( - 92, + MIN ( DISTINCT + 90 ) * + CAST ( - 24 AS INTEGER ) + - 23 ) AS col1
----
-92

query I rowsort
SELECT + NULLIF ( + 93, 4 ) + - + 71 AS col0
----
22

query I rowsort
SELECT ALL 68 + + 29
----
97

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

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

query I rowsort
SELECT - 95 * + - 14 + 21 AS col0
----
1351

query I rowsort
SELECT + - CASE - 50 WHEN - 96 THEN 88 * - - ( + - 95 ) END + 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT ALL - 54 + - - 56 * - COUNT( * ) AS col0
----
-110

skipif mysql # not compatible
query I rowsort label-540
SELECT ALL - 54 + - - 56 * - COUNT ( * ) AS col0
----
-110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-541
SELECT ALL 82 + - 65 - + ( + 47 ) DIV + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-541
SELECT ALL 82 + - 65 - + ( + 47 ) / + COUNT ( * )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-542
SELECT DISTINCT ( - - 51 ) + - - 75 * 25 DIV - + 33
----
-5

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT ( - - 51 ) + - - 75 * 25 / - + 33
----
-5

query I rowsort
SELECT + 64 * + - 78
----
-4992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-544
SELECT ALL CAST( + 61 AS SIGNED ) * 70
----
4270

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL CAST ( + 61 AS INTEGER ) * 70
----
4270

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - NULLIF ( + COUNT( * ), - 80 + - COUNT( * ) / - 48 + 87 * + 57 / - - 83 * + 86 / - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-545
SELECT - NULLIF ( + COUNT ( * ), - 80 + - COUNT ( * ) / - 48 + 87 * + 57 / - - 83 * + 86 / - 63 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-546
SELECT DISTINCT ( CASE - 6 WHEN ( + 94 ) THEN 63 + + + 89 - 96 + 94 DIV CAST( + 77 AS SIGNED ) ELSE - 88 END ) * - + 85 * 39, + 71 DIV + - 96 * - 3 * + NULLIF ( - 50, ( COUNT( * ) ) * 2 + + 55 + - 6 * + - 93 + - 38 + 13 + - 57 * - 37 * - - 56 ) AS col0
----
291720
0

skipif mysql # not compatible
query II rowsort label-546
SELECT DISTINCT ( CASE - 6 WHEN ( + 94 ) THEN 63 + + + 89 - 96 + 94 / CAST ( + 77 AS INTEGER ) ELSE - 88 END ) * - + 85 * 39, + 71 / + - 96 * - 3 * + NULLIF ( - 50, ( COUNT ( * ) ) * 2 + + 55 + - 6 * + - 93 + - 38 + 13 + - 57 * - 37 * - - 56 ) AS col0
----
291720
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-547
SELECT DISTINCT COUNT( * ), - COUNT( + ( 9 ) ) DIV - NULLIF ( - ( - 62 ), - + 71 + + 82 ) AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-547
SELECT DISTINCT COUNT ( * ), - COUNT ( + ( 9 ) ) / - NULLIF ( - ( - 62 ), - + 71 + + 82 ) AS col2
----
1
0

query I rowsort
SELECT ALL + 89 + 50 + - + 85
----
54

query I rowsort
SELECT + 53 * 23 + 18
----
1237

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-551
SELECT ALL CAST( 13 AS SIGNED ) DIV COUNT( * ) + - COUNT( * ) * + 10 - + - COUNT( * ) * + 53 * 34
----
1805

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL CAST ( 13 AS INTEGER ) / COUNT ( * ) + - COUNT ( * ) * + 10 - + - COUNT ( * ) * + 53 * 34
----
1805

query I rowsort
SELECT + 98 * + ( + 55 ) AS col0
----
5390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-553
SELECT ALL 78 DIV COUNT( * ) - - + COUNT( * ) + - COUNT( * ) + - - 31 * 76 AS col0
----
2434

skipif mysql # not compatible
query I rowsort label-553
SELECT ALL 78 / COUNT ( * ) - - + COUNT ( * ) + - COUNT ( * ) + - - 31 * 76 AS col0
----
2434

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

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

query II rowsort
SELECT + 64 AS col0, - 38 * - + 29 AS col1
----
64
1102

onlyif mysql # aggregate syntax: 
query II rowsort label-556
SELECT ALL + COUNT( * ) AS col2, + 28 + - 20
----
1
8

skipif mysql # not compatible
query II rowsort label-556
SELECT ALL + COUNT ( * ) AS col2, + 28 + - 20
----
1
8

onlyif mysql # DIV for integer division: 
query I rowsort label-557
SELECT + 50 DIV + 62 * 83
----
0

skipif mysql # not compatible
query I rowsort label-557
SELECT + 50 / + 62 * 83
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT ALL - 54 DIV COUNT( ALL - 47 )
----
-54

skipif mysql # not compatible
query I rowsort label-558
SELECT ALL - 54 / COUNT ( ALL - 47 )
----
-54

query I rowsort
SELECT ALL - 62 * 71 * + 90
----
-396180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-560
SELECT - MIN( 34 ) DIV 11 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-560
SELECT - MIN ( 34 ) / 11 AS col0
----
-3

query I rowsort
SELECT - - 65 + + 82
----
147

query I rowsort
SELECT ALL + 59 * 86
----
5074

query II rowsort
SELECT + 42, 76 AS col0
----
42
76

query I rowsort
SELECT DISTINCT + + 59 * ( 30 )
----
1770

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-565
SELECT DISTINCT - ( + + 44 ) * COUNT( * ) * + MIN( ALL CAST( NULL AS SIGNED ) ) + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT - ( + + 44 ) * COUNT ( * ) * + MIN ( ALL CAST ( NULL AS INTEGER ) ) + 6
----
NULL

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

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

query I rowsort
SELECT ALL - - 83 * + 13 + - 14
----
1065

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-568
SELECT 45 AS col2, - 35 + + 31 DIV 94 * - NULLIF ( 19, - COUNT( * ) ) AS col0
----
45
-35

skipif mysql # not compatible
query II rowsort label-568
SELECT 45 AS col2, - 35 + + 31 / 94 * - NULLIF ( 19, - COUNT ( * ) ) AS col0
----
45
-35

query I rowsort
SELECT DISTINCT + 61 * 54 + + 3 + - - 23 AS col0
----
3320

query II rowsort
SELECT - 50 AS col0, 25 AS col0
----
-50
25

query I rowsort
SELECT - 89 - + 85
----
-174

query II rowsort
SELECT - + 99 AS col2, - 86 AS col2
----
-99
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL - COUNT( * ) + + CASE - - 7 WHEN + + 17 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL - COUNT ( * ) + + CASE - - 7 WHEN + + 17 THEN + - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT DISTINCT SUM( DISTINCT - 16 ) + 46
----
30

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT SUM ( DISTINCT - 16 ) + 46
----
30

query I rowsort
SELECT 47 - - - 54 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-576
SELECT ALL 46 DIV 89 * + 43, CAST( 82 AS SIGNED ) * 72 AS col2
----
0
5904

skipif mysql # not compatible
query II rowsort label-576
SELECT ALL 46 / 89 * + 43, CAST ( 82 AS INTEGER ) * 72 AS col2
----
0
5904

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT 37 DIV - 4 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-577
SELECT 37 / - 4 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-578
SELECT 46 + - - 61 * - - ( - ( - + 5 ) ) + - 76 + + CASE - + ( + 59 ) WHEN 85 THEN - COUNT( ALL - 74 ) * 50 + + - 84 END
----
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT 46 + - - 61 * - - ( - ( - + 5 ) ) + - 76 + + CASE - + ( + 59 ) WHEN 85 THEN - COUNT ( ALL - 74 ) * 50 + + - 84 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-579
SELECT 82 * - CASE - + ( - + 59 ) WHEN + 80 THEN 17 WHEN - 7 THEN NULL ELSE + - CASE COALESCE ( - 60, + 72 / - - 70, - 79 ) WHEN + - CAST( NULL AS DECIMAL ) THEN + 8 - + 16 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-579
SELECT 82 * - CASE - + ( - + 59 ) WHEN + 80 THEN 17 WHEN - 7 THEN NULL ELSE + - CASE COALESCE ( - 60, + 72 / - - 70, - 79 ) WHEN + - CAST ( NULL AS REAL ) THEN + 8 - + 16 ELSE NULL END END
----
NULL

query II rowsort
SELECT ALL 39 - 71 + - 39, - 84 AS col0
----
-71
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL - MAX( DISTINCT ( - 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL - MAX ( DISTINCT ( - 34 ) )
----
34

query II rowsort
SELECT ALL - - ( + 67 ) AS col1, ( - - 82 )
----
67
82

onlyif mysql # aggregate syntax: 
query II rowsort label-583
SELECT + COUNT( * ) * + 9 + - + 23 AS col1, 9
----
-14
9

skipif mysql # not compatible
query II rowsort label-583
SELECT + COUNT ( * ) * + 9 + - + 23 AS col1, 9
----
-14
9

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT ALL - 28 + - 61 * - COUNT( * ) * - - COUNT( * ) - + 48
----
-15

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL - 28 + - 61 * - COUNT ( * ) * - - COUNT ( * ) - + 48
----
-15

query I rowsort
SELECT ALL - + 19 * - - 4 + + + 41 AS col2
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL - - COALESCE ( 45, + - 35 + + - 40 + + - 35, + + CASE MIN( DISTINCT - 26 ) WHEN 21 THEN NULL ELSE - 94 * + 29 * - 2 + 64 - - 34 + - CASE - 87 WHEN 69 THEN - - CASE + 93 WHEN + 9 / + COUNT( * ) - 78 - - CASE 76 WHEN + 25 THEN - + 45 WHEN - + 59 THEN NULL ELSE + - CAST( - - COALESCE ( 29, - 17 + - 7 - + 55 ) AS SIGNED ) + + + 73 END THEN COUNT( * ) ELSE + 11 * - 41 END WHEN + COUNT( * ) THEN + 34 - MIN( ALL + - 35 ) ELSE NULL END + - CAST( NULL AS SIGNED ) END ) + 16 col0
----
61

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - - COALESCE ( 45, + - 35 + + - 40 + + - 35, + + CASE MIN ( DISTINCT - 26 ) WHEN 21 THEN NULL ELSE - 94 * + 29 * - 2 + 64 - - 34 + - CASE - 87 WHEN 69 THEN - - CASE + 93 WHEN + 9 / + COUNT ( * ) - 78 - - CASE 76 WHEN + 25 THEN - + 45 WHEN - + 59 THEN NULL ELSE + - CAST ( - - COALESCE ( 29, - 17 + - 7 - + 55 ) AS INTEGER ) + + + 73 END THEN COUNT ( * ) ELSE + 11 * - 41 END WHEN + COUNT ( * ) THEN + 34 - MIN ( ALL + - 35 ) ELSE NULL END + - CAST ( NULL AS INTEGER ) END ) + 16 col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-587
SELECT ALL 90 + + 71 - - 39 / - - 63 * + CAST( NULL AS SIGNED ) + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL 90 + + 71 - - 39 / - - 63 * + CAST ( NULL AS INTEGER ) + - 7
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT 21 DIV - 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT 21 / - 29 AS col1
----
0

query I rowsort
SELECT - 73 + 96
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ( - MIN( ALL - 49 ) ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-590
SELECT ( - MIN ( ALL - 49 ) ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-591
SELECT COALESCE ( + - 9, - ( + CAST( 12 AS SIGNED ) ) )
----
-9

skipif mysql # not compatible
query I rowsort label-591
SELECT COALESCE ( + - 9, - ( + CAST ( 12 AS INTEGER ) ) )
----
-9

query I rowsort
SELECT - 86 + 77
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL + AVG ( 6 ) + + - 8 * - CAST( 38 AS SIGNED ) * + CASE - COUNT( * ) WHEN - 90 THEN + - COUNT( * ) - - - 18 END * - 36 + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + AVG ( 6 ) + + - 8 * - CAST ( 38 AS INTEGER ) * + CASE - COUNT ( * ) WHEN - 90 THEN + - COUNT ( * ) - - - 18 END * - 36 + 17 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 29 * - ( + 54 ) * + 89 AS col2
----
-139374

query I rowsort
SELECT 61 * - + 2 + + 64 - 79 * - 62 * - 32
----
-156794

query I rowsort
SELECT ALL - 89 - 6 + - 68 AS col2
----
-163

query I rowsort
SELECT 37 * + - 19
----
-703

query II rowsort
SELECT 19 AS col2, - 18 * + 6 * - - 58
----
19
-6264

query I rowsort
SELECT 47 + 22
----
69

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

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

query I rowsort
SELECT 27 * 61 * - + 85 AS col1
----
-139995

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT DISTINCT - 71 * - - 21 * COUNT( + COALESCE ( 85, - 6, - + 55 ) )
----
-1491

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT - 71 * - - 21 * COUNT ( + COALESCE ( 85, - 6, - + 55 ) )
----
-1491

query I rowsort
SELECT ALL + 54 * + - 16 AS col1
----
-864

query I rowsort
SELECT 52 * - 96 AS col1
----
-4992

query I rowsort
SELECT DISTINCT + 45 * + 85
----
3825

query I rowsort
SELECT DISTINCT + 72 * + 45
----
3240

query I rowsort
SELECT 65 * 55
----
3575

query I rowsort
SELECT ALL - 0 * - - 73
----
0

query II rowsort
SELECT DISTINCT - 23, 69 + - - 61 AS col1
----
-23
130

onlyif mysql # DIV for integer division: 
query I rowsort label-610
SELECT 61 DIV 54 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-610
SELECT 61 / 54 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-611
SELECT CASE 29 WHEN - CASE - - NULLIF ( - 71, - + ( + NULLIF ( 90, - + 87 + - 25 ) ) ) WHEN + 1 + + COUNT( - 8 ) THEN - - COALESCE ( - + CAST( NULL AS SIGNED ), + + NULLIF ( + 81, 37 * - COALESCE ( + AVG ( - 64 ), + COUNT( * ) ) ) ) * ( + 21 ) / + 57 WHEN - + 5 THEN NULL END - 52 THEN + 34 WHEN - + NULLIF ( + - 63, - 88 ) * - CAST( NULL AS SIGNED ) * - NULLIF ( - - 12, 67 ) THEN CAST( - + MAX( DISTINCT ( + NULLIF ( + 89, + - 67 ) ) ) AS SIGNED ) - + 34 END / + 2 + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT CASE 29 WHEN - CASE - - NULLIF ( - 71, - + ( + NULLIF ( 90, - + 87 + - 25 ) ) ) WHEN + 1 + + COUNT ( - 8 ) THEN - - COALESCE ( - + CAST ( NULL AS INTEGER ), + + NULLIF ( + 81, 37 * - COALESCE ( + AVG ( - 64 ), + COUNT ( * ) ) ) ) * ( + 21 ) / + 57 WHEN - + 5 THEN NULL END - 52 THEN + 34 WHEN - + NULLIF ( + - 63, - 88 ) * - CAST ( NULL AS INTEGER ) * - NULLIF ( - - 12, 67 ) THEN CAST ( - + MAX ( DISTINCT ( + NULLIF ( + 89, + - 67 ) ) ) AS INTEGER ) - + 34 END / + 2 + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT ALL - - MIN( ALL + 49 ) col2
----
49

skipif mysql # not compatible
query I rowsort label-612
SELECT ALL - - MIN ( ALL + 49 ) col2
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-613
SELECT + 71 AS col1, COUNT( * ) + + 4 + - 54 + 37
----
71
-12

skipif mysql # not compatible
query II rowsort label-613
SELECT + 71 AS col1, COUNT ( * ) + + 4 + - 54 + 37
----
71
-12

query II rowsort
SELECT + - 87, ( - CASE - - 36 WHEN 68 * - 1 THEN + + 21 ELSE NULL END ) col1
----
-87
NULL

query II rowsort
SELECT ALL - + 85 AS col1, 25 col1
----
-85
25

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT + SUM( + - 87 ) + - NULLIF ( - 47, COUNT( * ) + + 94 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-616
SELECT + SUM ( + - 87 ) + - NULLIF ( - 47, COUNT ( * ) + + 94 ) AS col1
----
-40

query I rowsort
SELECT + 68 * + + 1 col2
----
68

query I rowsort
SELECT DISTINCT 0 * + 77 + - 51
----
-51

query I rowsort
SELECT - 4 + - 2 AS col1
----
-6

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

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

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

skipif mysql # not compatible
query II rowsort label-621
SELECT + 12 AS col1, + NULLIF ( - + COUNT ( * ), - + CAST ( + COUNT ( * ) AS INTEGER ) )
----
12
NULL

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

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

query I rowsort
SELECT DISTINCT 19 + - 63 AS col1
----
-44

query I rowsort
SELECT ALL + - 74 - ( + - 14 ) AS col1
----
-60

query I rowsort
SELECT DISTINCT - 85 * + 70 AS col2
----
-5950

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

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL CAST ( NULL AS INTEGER ) - 37 + + ( 0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-627
SELECT + 23 DIV 49
----
0

skipif mysql # not compatible
query I rowsort label-627
SELECT + 23 / 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT + 99 - + COUNT( * ) * - 75 AS col1
----
174

skipif mysql # not compatible
query I rowsort label-628
SELECT + 99 - + COUNT ( * ) * - 75 AS col1
----
174

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-630
SELECT DISTINCT CASE - CAST( + 90 AS SIGNED ) WHEN 31 THEN + - ( + 39 ) WHEN - 88 THEN NULL END * + 62 + - - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT CASE - CAST ( + 90 AS INTEGER ) WHEN 31 THEN + - ( + 39 ) WHEN - 88 THEN NULL END * + 62 + - - 23
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT ALL NULLIF ( - - NULLIF ( - MAX( ALL + 83 ), - 37 + 10 ), - ( - 33 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL NULLIF ( - - NULLIF ( - MAX ( ALL + 83 ), - 37 + 10 ), - ( - 33 ) ) AS col2
----
-83

query I rowsort
SELECT DISTINCT NULLIF ( - 18, + 82 )
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT + COUNT( * ) * 31 DIV + 16 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-633
SELECT + COUNT ( * ) * 31 / + 16 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT + 92 + - 65 - + 10 DIV - + 53 * + 24 col1
----
27

skipif mysql # not compatible
query I rowsort label-634
SELECT + 92 + - 65 - + 10 / - + 53 * + 24 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT MAX( ALL - - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT MAX ( ALL - - 57 )
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-636
SELECT - 74 * - COUNT( 28 ) DIV 80 * - COUNT( - 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-636
SELECT - 74 * - COUNT ( 28 ) / 80 * - COUNT ( - 76 ) AS col2
----
0

query II rowsort
SELECT - + 8 + - 40 col2, 96
----
-48
96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT ALL 10 * + 97 - - 74 DIV + - 20 + + 41 AS col1
----
1008

skipif mysql # not compatible
query I rowsort label-639
SELECT ALL 10 * + 97 - - 74 / + - 20 + + 41 AS col1
----
1008

query I rowsort
SELECT ALL - - 84 * - 68 + 62 + - 38
----
-5688

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT 98 * - - 36 + + 1 + - 96 DIV + 72 + + 49 AS col0
----
3577

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT 98 * - - 36 + + 1 + - 96 / + 72 + + 49 AS col0
----
3577

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-644
SELECT - + 51 DIV + NULLIF ( + + COUNT( DISTINCT - 83 ), - 79 )
----
-51

skipif mysql # not compatible
query I rowsort label-644
SELECT - + 51 / + NULLIF ( + + COUNT ( DISTINCT - 83 ), - 79 )
----
-51

query I rowsort
SELECT + 93 + - 50 * - + 17
----
943

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-646
SELECT + NULLIF ( + - SUM( + - 5 ), 78 / - CAST( 63 AS SIGNED ) - + - 84 - - - 98 + + 83 - + 5 - - 63 + 24 * + 29 )
----
5

skipif mysql # not compatible
query I rowsort label-646
SELECT + NULLIF ( + - SUM ( + - 5 ), 78 / - CAST ( 63 AS INTEGER ) - + - 84 - - - 98 + + 83 - + 5 - - 63 + 24 * + 29 )
----
5

query I rowsort
SELECT + COALESCE ( 8, - 56 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT - + 65 - + 55 + - - ( 41 ) + + + ( - - ( - 44 ) ) * COUNT( * ) AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-648
SELECT - + 65 - + 55 + - - ( 41 ) + + + ( - - ( - 44 ) ) * COUNT ( * ) AS col2
----
-123

onlyif mysql # aggregate syntax: 
query II rowsort label-649
SELECT - + 7 * + COUNT( * ) * + 86 + + - COUNT( * ) AS col1, - ( SUM( DISTINCT 42 ) ) * - COALESCE ( 40, - - 59 * + + 83 * 76 + - + 58 ) - - + 3 - + 64 - + - 8 col1
----
-603
1627

skipif mysql # not compatible
query II rowsort label-649
SELECT - + 7 * + COUNT ( * ) * + 86 + + - COUNT ( * ) AS col1, - ( SUM ( DISTINCT 42 ) ) * - COALESCE ( 40, - - 59 * + + 83 * 76 + - + 58 ) - - + 3 - + 64 - + - 8 col1
----
-603
1627

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-651
SELECT ALL - MAX( - 68 ) DIV NULLIF ( - 57, + 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL - MAX ( - 68 ) / NULLIF ( - 57, + 45 )
----
-1

query I rowsort
SELECT - 55 + - + 19 + + + ( + 70 ) col1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT + 25 DIV - 84 col2
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT + 25 / - 84 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-654
SELECT DISTINCT + NULLIF ( 19, + + CAST( NULL AS SIGNED ) ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT + NULLIF ( 19, + + CAST ( NULL AS INTEGER ) ) AS col0
----
19

query I rowsort
SELECT ALL + 70 * + 49 - - ( + 96 ) * + - 33 AS col2
----
262

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT ALL 35 * - + COUNT( DISTINCT + 33 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-656
SELECT ALL 35 * - + COUNT ( DISTINCT + 33 ) AS col0
----
-35

query I rowsort
SELECT + ( - + 21 ) AS col1
----
-21

query I rowsort
SELECT + ( + ( - ( - 24 ) ) ) AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT - MAX( ALL - - 54 ) + 50 + - 35 col2
----
-39

skipif mysql # not compatible
query I rowsort label-659
SELECT - MAX ( ALL - - 54 ) + 50 + - 35 col2
----
-39

query I rowsort
SELECT + 75 + + - 92
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-661
SELECT ALL + COUNT( + - 11 ) * + 95 * - CAST( - 93 AS SIGNED ), 1 AS col1
----
8835
1

skipif mysql # not compatible
query II rowsort label-661
SELECT ALL + COUNT ( + - 11 ) * + 95 * - CAST ( - 93 AS INTEGER ), 1 AS col1
----
8835
1

onlyif mysql # DIV for integer division: 
query I rowsort label-662
SELECT ALL 63 DIV 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL 63 / 53 AS col2
----
1

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

skipif mysql # not compatible
query I rowsort label-663
SELECT + ( ( 46 ) ) / - COUNT ( * ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT + COUNT( * ) + + - 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-664
SELECT + COUNT ( * ) + + - 40 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT DISTINCT 98 * + MIN( DISTINCT + 70 ) * - - 39 AS col2
----
267540

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT 98 * + MIN ( DISTINCT + 70 ) * - - 39 AS col2
----
267540

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-666
SELECT + 4 DIV - - SUM( + 95 ) col2, - 54 * - 1
----
0
54

skipif mysql # not compatible
query II rowsort label-666
SELECT + 4 / - - SUM ( + 95 ) col2, - 54 * - 1
----
0
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-667
SELECT ALL - 0 + MAX( ALL 28 ) + - 3 * - 38 - - + MIN( DISTINCT - CAST( - 45 AS SIGNED ) ) * + 44 + 15
----
2137

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL - 0 + MAX ( ALL 28 ) + - 3 * - 38 - - + MIN ( DISTINCT - CAST ( - 45 AS INTEGER ) ) * + 44 + 15
----
2137

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL 27 DIV + 7 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 27 / + 7 AS col0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-669
SELECT + 33 DIV + 81 * 8 * + 90 DIV - + 15, 18 AS col1
----
0
18

skipif mysql # not compatible
query II rowsort label-669
SELECT + 33 / + 81 * 8 * + 90 / - + 15, 18 AS col1
----
0
18

query I rowsort
SELECT DISTINCT 62 * 68
----
4216

onlyif mysql # DIV for integer division: 
query I rowsort label-671
SELECT + 68 DIV + 79
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT + 68 / + 79
----
0

query II rowsort
SELECT 73, - 92 AS col1
----
73
-92

query I rowsort
SELECT ALL 97 + 52 AS col2
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT ALL MAX( ALL - 18 ) + + 73
----
55

skipif mysql # not compatible
query I rowsort label-674
SELECT ALL MAX ( ALL - 18 ) + + 73
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT DISTINCT 15 + SUM( - - 31 ) * + + 92
----
2867

skipif mysql # not compatible
query I rowsort label-675
SELECT DISTINCT 15 + SUM ( - - 31 ) * + + 92
----
2867

query I rowsort
SELECT DISTINCT 26 * 3 * + + 82 AS col1
----
6396

onlyif mysql # DIV for integer division: 
query I rowsort label-677
SELECT DISTINCT + COALESCE ( 28, 91 ) + + 57 DIV 22 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT + COALESCE ( 28, 91 ) + + 57 / 22 AS col0
----
30

query I rowsort
SELECT ALL COALESCE ( + 5, + 53 ) AS col2
----
5

query I rowsort
SELECT + 14 * - 41 AS col0
----
-574

query I rowsort
SELECT ALL 20 + 82
----
102

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

query I rowsort
SELECT ALL ( + CASE - 19 WHEN 37 + 12 * 37 THEN - 57 END )
----
NULL

query I rowsort
SELECT ALL - 37 + 12 AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT - 84 * SUM( - 25 )
----
2100

skipif mysql # not compatible
query I rowsort label-684
SELECT - 84 * SUM ( - 25 )
----
2100

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT ALL - COUNT( + NULLIF ( ( 14 ), + 61 * ( - 7 * + 96 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL - COUNT ( + NULLIF ( ( 14 ), + 61 * ( - 7 * + 96 ) ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT 93 DIV NULLIF ( 96, - 44 ) + 68 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-686
SELECT 93 / NULLIF ( 96, - 44 ) + 68 AS col0
----
68

query I rowsort
SELECT 21 + 53
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-688
SELECT DISTINCT - CAST( - 90 AS SIGNED ) - + 2
----
88

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT - CAST ( - 90 AS INTEGER ) - + 2
----
88

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

skipif mysql # not compatible
query I rowsort label-689
SELECT ALL - MIN ( 19 )
----
-19

query I rowsort
SELECT DISTINCT - 75 * 40
----
-3000

query I rowsort
SELECT 40 * 25 col0
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT DISTINCT - COUNT( DISTINCT 71 ) - 98
----
-99

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT - COUNT ( DISTINCT 71 ) - 98
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - CASE 27 WHEN 68 + + 65 THEN NULL WHEN + 56 THEN NULL ELSE COUNT( * ) * + 45 END AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - CASE 27 WHEN 68 + + 65 THEN NULL WHEN + 56 THEN NULL ELSE COUNT ( * ) * + 45 END AS col0
----
-45

query I rowsort
SELECT AVG ( 62 ) + - CASE 13 WHEN - 89 THEN 83 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT 30 * - MIN( + 11 ) AS col1
----
-330

skipif mysql # not compatible
query I rowsort label-695
SELECT 30 * - MIN ( + 11 ) AS col1
----
-330

query I rowsort
SELECT 66 + 24 * 61 AS col1
----
1530

onlyif mysql # DIV for integer division: 
query I rowsort label-697
SELECT DISTINCT - 12 DIV - 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT - 12 / - 90 AS col1
----
0

query I rowsort
SELECT 56 * + 1 AS col0
----
56

query I rowsort
SELECT ALL 22 * 4
----
88

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

skipif mysql # not compatible
query I rowsort label-700
SELECT ALL + 67 + + COUNT ( * ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT MAX( 27 ) * 39 AS col2
----
1053

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT MAX ( 27 ) * 39 AS col2
----
1053

query I rowsort
SELECT ALL 16 + 71 * + 1
----
87

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

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

query I rowsort
SELECT 91 * + ( - 36 )
----
-3276

query I rowsort
SELECT DISTINCT 21 + 5
----
26

query I rowsort
SELECT 71 - 85
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT 81 - + MIN( DISTINCT - 57 ) * - 45
----
-2484

skipif mysql # not compatible
query I rowsort label-707
SELECT 81 - + MIN ( DISTINCT - 57 ) * - 45
----
-2484

query I rowsort
SELECT 16 * - 93 AS col0
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-709
SELECT DISTINCT 9 DIV - CAST( CASE 79 WHEN - 76 * + 52 THEN 59 ELSE - 9 * + 61 + ( + NULLIF ( + COUNT( * ), - 60 ) - + 51 * - 68 ) END AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT 9 / - CAST ( CASE 79 WHEN - 76 * + 52 THEN 59 ELSE - 9 * + 61 + ( + NULLIF ( + COUNT ( * ), - 60 ) - + 51 * - 68 ) END AS INTEGER )
----
0

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

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

skipif mysql # not compatible
query I rowsort label-711
SELECT ALL 74 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + ( - 52 ) + 51 AS col1
----
-1

query I rowsort
SELECT + 48 - - 1
----
49

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT DISTINCT - 62 DIV + 39 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - 62 / + 39 AS col0
----
-1

query I rowsort
SELECT 21 + 53 * 87 AS col2
----
4632

query I rowsort
SELECT 65 - + 99 col1
----
-34

query I rowsort
SELECT 52 * 62 AS col1
----
3224

query I rowsort
SELECT ALL 40 * 77 AS col0
----
3080

query I rowsort
SELECT 44 + - 30 AS col1
----
14

query I rowsort
SELECT + ( 42 ) * 26
----
1092

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT ( - COALESCE ( 7, MIN( + 17 ) * + 71, 99 ) ) + 88 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-723
SELECT ( - COALESCE ( 7, MIN ( + 17 ) * + 71, 99 ) ) + 88 AS col1
----
81

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

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

query I rowsort
SELECT - 14 * + 48
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-726
SELECT MIN( ALL + + 32 ) * ( - 38 ) + - 68 AS col0
----
-1284

skipif mysql # not compatible
query I rowsort label-726
SELECT MIN ( ALL + + 32 ) * ( - 38 ) + - 68 AS col0
----
-1284

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-728
SELECT ALL CAST( + + 80 AS SIGNED ) + MAX( 16 ) DIV 34
----
80

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL CAST ( + + 80 AS INTEGER ) + MAX ( 16 ) / 34
----
80

query I rowsort
SELECT ALL - 8 * + - 31
----
248

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT 65 DIV - 21 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-730
SELECT 65 / - 21 AS col2
----
-3

query I rowsort
SELECT ALL - 99 + 33 AS col2
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-732
SELECT 72 - + CAST( - COUNT( + 52 ) AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-732
SELECT 72 - + CAST ( - COUNT ( + 52 ) AS INTEGER )
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT DISTINCT - 27 * - CASE 69 WHEN 49 * + COALESCE ( + 47, 41 + + 61, - 31 ) + + CAST( 35 AS SIGNED ) THEN 31 * - 13 - - 80 ELSE 4 END
----
108

skipif mysql # not compatible
query I rowsort label-733
SELECT DISTINCT - 27 * - CASE 69 WHEN 49 * + COALESCE ( + 47, 41 + + 61, - 31 ) + + CAST ( 35 AS INTEGER ) THEN 31 * - 13 - - 80 ELSE 4 END
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT ALL + 36 + CASE WHEN NOT + 82 = ( NULL ) THEN NULL ELSE + 86 * + COUNT( - 7 ) + - 29 END * 67 col1
----
3855

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL + 36 + CASE WHEN NOT + 82 = ( NULL ) THEN NULL ELSE + 86 * + COUNT ( - 7 ) + - 29 END * 67 col1
----
3855

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-737
SELECT ALL - COUNT( * ) + COUNT( * ) - - ( 4 ) / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT ALL - COUNT ( * ) + COUNT ( * ) - - ( 4 ) / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 71 + - ( 86 ) - 42 * 8
----
-351

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT DISTINCT 68 * - CAST( NULL AS SIGNED ) * - COUNT( ALL + ( - 42 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT 68 * - CAST ( NULL AS INTEGER ) * - COUNT ( ALL + ( - 42 ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-741
SELECT ALL NULLIF ( - 17, COUNT( * ) * CAST( + 2 AS SIGNED ) + - 77 ) - 15 * - 12 AS col1
----
163

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL NULLIF ( - 17, COUNT ( * ) * CAST ( + 2 AS INTEGER ) + - 77 ) - 15 * - 12 AS col1
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT ALL 3 - + - 83 DIV - 48
----
2

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL 3 - + - 83 / - 48
----
2

query I rowsort
SELECT 87 + ( 28 )
----
115

query I rowsort
SELECT DISTINCT - NULLIF ( 13, 29 * + 77 + 76 * 0 )
----
-13

query I rowsort
SELECT DISTINCT - + 91 * ( 35 )
----
-3185

query I rowsort
SELECT + 59 + 88 AS col2
----
147

query I rowsort
SELECT ALL 29 * 28 AS col0
----
812

query I rowsort
SELECT + + 89 * - 17 * 35 col1
----
-52955

query I rowsort
SELECT - - 3 + - 38
----
-35

query I rowsort
SELECT ALL CASE 14 WHEN + ( ( + ( - 64 ) ) ) * 79 THEN NULL ELSE + 43 - + ( 78 ) END AS col1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT DISTINCT 74 DIV - 60 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT 74 / - 60 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL + SUM( ALL - 23 ) * 68
----
-1564

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL + SUM ( ALL - 23 ) * 68
----
-1564

query I rowsort
SELECT - 1 * - 79 + + ( - 48 )
----
31

query I rowsort
SELECT + 71 + 42 AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-755
SELECT DISTINCT - 56 DIV + MAX( 98 ) + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - 56 / + MAX ( 98 ) + 78 AS col2
----
78

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

skipif mysql # not compatible
query I rowsort label-756
SELECT + 15 * + - ( 95 ) + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT ALL 59 * 45 DIV - 76
----
-34

skipif mysql # not compatible
query I rowsort label-757
SELECT ALL 59 * 45 / - 76
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-758
SELECT + - 12 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-758
SELECT + - 12 / - + 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT + - COUNT( * ) + - + 27 * - 70
----
1889

skipif mysql # not compatible
query I rowsort label-759
SELECT + - COUNT ( * ) + - + 27 * - 70
----
1889

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL + CAST( NULL AS SIGNED ) * + - SUM( + 4 ) + 26 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + CAST ( NULL AS INTEGER ) * + - SUM ( + 4 ) + 26 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT ALL + 5 * - 18 + + COUNT( * ) * 18
----
-72

skipif mysql # not compatible
query I rowsort label-761
SELECT ALL + 5 * - 18 + + COUNT ( * ) * 18
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-762
SELECT ALL CAST( NULL AS SIGNED ) * COUNT( * ) * + - MIN( 60 ) * - 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL CAST ( NULL AS INTEGER ) * COUNT ( * ) * + - MIN ( 60 ) * - 32 AS col2
----
NULL

query I rowsort
SELECT ALL 19 * + 76 * + 55 + 69
----
79489

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT ALL 11 * 73 * + COALESCE ( 79, + 7 + - CASE COALESCE ( + 24, COUNT( * ) + - 1 ) + 69 WHEN - 98 THEN NULL WHEN 20 THEN NULL ELSE 64 END )
----
63437

skipif mysql # not compatible
query I rowsort label-765
SELECT ALL 11 * 73 * + COALESCE ( 79, + 7 + - CASE COALESCE ( + 24, COUNT ( * ) + - 1 ) + 69 WHEN - 98 THEN NULL WHEN 20 THEN NULL ELSE 64 END )
----
63437

query I rowsort
SELECT 68 * 89 * + 52 + 34 * 33 AS col2
----
315826

query I rowsort
SELECT ALL 56 * + 42 + - 61
----
2291

query I rowsort
SELECT + COALESCE ( ( + 76 ), + 68 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT + SUM( DISTINCT - 71 ) * - 65 + COUNT( * )
----
4616

skipif mysql # not compatible
query I rowsort label-769
SELECT + SUM ( DISTINCT - 71 ) * - 65 + COUNT ( * )
----
4616

query I rowsort
SELECT - 92 * + 85 AS col1
----
-7820

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT DISTINCT - COUNT( ALL - - 30 ) * - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT - COUNT ( ALL - - 30 ) * - - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 78 * - - 24 * - 39 * - 54
----
3942432

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT MIN( ALL + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-773
SELECT MIN ( ALL + 13 ) AS col2
----
13

query I rowsort
SELECT ALL 99 * + + 70 + + 35
----
6965

onlyif mysql # aggregate syntax: 
query II rowsort label-775
SELECT DISTINCT + 29, + COUNT( - 47 ) + 40 AS col1
----
29
41

skipif mysql # not compatible
query II rowsort label-775
SELECT DISTINCT + 29, + COUNT ( - 47 ) + 40 AS col1
----
29
41

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT DISTINCT + CASE - 69 WHEN + + 99 THEN - COUNT( * ) * - 90 WHEN + SUM( 19 ) + + 57 THEN + 51 END * ( 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-776
SELECT DISTINCT + CASE - 69 WHEN + + 99 THEN - COUNT ( * ) * - 90 WHEN + SUM ( 19 ) + + 57 THEN + 51 END * ( 57 )
----
NULL

query I rowsort
SELECT ALL - 24 * - + 58 - - 14
----
1406

query I rowsort
SELECT - 91 * 97
----
-8827

query I rowsort
SELECT + ( + - ( + + 30 ) ) * 17 AS col2
----
-510

query II rowsort
SELECT 80 AS col2, - 79 * 75 * - 32 + 27 * 71 AS col2
----
80
191517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-781
SELECT COALESCE ( - + CAST( NULL AS SIGNED ), + - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-781
SELECT COALESCE ( - + CAST ( NULL AS INTEGER ), + - 92 )
----
-92

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT ALL + 12 DIV - MAX( 33 )
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL + 12 / - MAX ( 33 )
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-785
SELECT ALL + + COUNT( * ) DIV + COALESCE ( + - ( ( + 98 ) ), - MIN( + 34 ) * + 87, COUNT( * ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-785
SELECT ALL + + COUNT ( * ) / + COALESCE ( + - ( ( + 98 ) ), - MIN ( + 34 ) * + 87, COUNT ( * ) ) AS col0
----
0

query II rowsort
SELECT DISTINCT + 87 AS col1, 94
----
87
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-787
SELECT ALL CASE - COUNT( * ) WHEN + 27 THEN NULL WHEN CAST( NULL AS SIGNED ) - 19 THEN - 8 DIV 86 ELSE 3 END * + 61
----
183

skipif mysql # not compatible
query I rowsort label-787
SELECT ALL CASE - COUNT ( * ) WHEN + 27 THEN NULL WHEN CAST ( NULL AS INTEGER ) - 19 THEN - 8 / 86 ELSE 3 END * + 61
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT + CAST( 63 AS SIGNED ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT + CAST ( 63 AS INTEGER ) AS col1
----
63

query I rowsort
SELECT - 76 + 18 AS col0
----
-58

query I rowsort
SELECT - 46 - - 44 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-791
SELECT - 76 col2, + ( + + 77 ) DIV - COUNT( * ) AS col0
----
-76
-77

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

query I rowsort
SELECT DISTINCT - - 84 + + + 85 AS col0
----
169

query I rowsort
SELECT ALL + 27 * 12 * - + 41
----
-13284

query II rowsort
SELECT 66, + 85 AS col1
----
66
85

query II rowsort
SELECT + 77 AS col0, + 21 col1
----
77
21

query I rowsort
SELECT ALL - - 9 + - 38
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-797
SELECT DISTINCT - 25 + - 96 DIV - 77 + 79 col0
----
55

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - 25 + - 96 / - 77 + 79 col0
----
55

query I rowsort
SELECT - 35 * - - 33
----
-1155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT DISTINCT + NULLIF ( + - 14, + 12 ) DIV - 33 + SUM( ALL - 91 - + 11 )
----
-102

skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT + NULLIF ( + - 14, + 12 ) / - 33 + SUM ( ALL - 91 - + 11 )
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-800
SELECT ALL 46 DIV COUNT( * ) + + SUM( + 75 ) + - ( - ( 51 ) ) AS col2
----
172

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL 46 / COUNT ( * ) + + SUM ( + 75 ) + - ( - ( 51 ) ) AS col2
----
172

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-801
SELECT ALL CAST( NULL AS SIGNED ) / - 65 * + COUNT( * ) + - + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL CAST ( NULL AS INTEGER ) / - 65 * + COUNT ( * ) + - + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-802
SELECT DISTINCT COUNT( * ) DIV + - 22 + + 57 + MIN( ALL 76 ) * + 28 AS col2
----
2185

skipif mysql # not compatible
query I rowsort label-802
SELECT DISTINCT COUNT ( * ) / + - 22 + + 57 + MIN ( ALL 76 ) * + 28 AS col2
----
2185

onlyif mysql # DIV for integer division: 
query I rowsort label-803
SELECT ( 5 ) DIV + 97 + - - ( 93 ) + 74 * 10
----
833

skipif mysql # not compatible
query I rowsort label-803
SELECT ( 5 ) / + 97 + - - ( 93 ) + 74 * 10
----
833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-804
SELECT ALL 83 DIV - 45 + + - NULLIF ( + 12, 83 + + COUNT( * ) )
----
-13

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL 83 / - 45 + + - NULLIF ( + 12, 83 + + COUNT ( * ) )
----
-13

query I rowsort
SELECT ALL 64 * + + 34 col0
----
2176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-806
SELECT CAST( - ( + 72 ) AS SIGNED ) col2
----
-72

skipif mysql # not compatible
query I rowsort label-806
SELECT CAST ( - ( + 72 ) AS INTEGER ) col2
----
-72

query I rowsort
SELECT + ( + 87 ) + - 79
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT + COALESCE ( - 73, SUM( - 69 ) * - 43 + MAX( 9 ), + COUNT( * ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-808
SELECT + COALESCE ( - 73, SUM ( - 69 ) * - 43 + MAX ( 9 ), + COUNT ( * ) ) AS col2
----
-73

query I rowsort
SELECT ALL 57 * - 32
----
-1824

query I rowsort
SELECT ALL 20 / + CASE - 13 WHEN - 20 THEN + 91 ELSE NULL END - - 90 AS col0
----
NULL

query I rowsort
SELECT ALL + 29 / - CASE 98 WHEN - 87 THEN + 58 + - 70 ELSE NULL END / COALESCE ( 36 * CASE 23 WHEN 91 THEN + 54 * 98 WHEN - 12 + 94 THEN - 55 / + 42 END, - ( 36 ) ) - - AVG ( DISTINCT - 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT DISTINCT 63 * + ( - MIN( - 5 ) )
----
315

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT 63 * + ( - MIN ( - 5 ) )
----
315

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

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

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

query I rowsort
SELECT 10 * - + 9 + - + 99 * + 55
----
-5535

query I rowsort
SELECT + 9 - 5 * - 11
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-817
SELECT CASE - 48 WHEN + 21 * 30 * 77 THEN NULL ELSE ( 26 ) DIV COUNT( * ) - 1 END * 98 AS col0
----
2450

skipif mysql # not compatible
query I rowsort label-817
SELECT CASE - 48 WHEN + 21 * 30 * 77 THEN NULL ELSE ( 26 ) / COUNT ( * ) - 1 END * 98 AS col0
----
2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT 6 + 68 + - 86 * - CASE CAST( NULL AS SIGNED ) WHEN 77 THEN + 39 END * + 47 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-818
SELECT 6 + 68 + - 86 * - CASE CAST ( NULL AS INTEGER ) WHEN 77 THEN + 39 END * + 47 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-819
SELECT + ( 21 ) * - + 18 + ( 66 ) + + COUNT( * ) DIV 64 col2
----
-312

skipif mysql # not compatible
query I rowsort label-819
SELECT + ( 21 ) * - + 18 + ( 66 ) + + COUNT ( * ) / 64 col2
----
-312

onlyif mysql # aggregate syntax: 
query I rowsort label-820
SELECT 50 + + 35 * + COUNT( * ) * + 36 AS col1
----
1310

skipif mysql # not compatible
query I rowsort label-820
SELECT 50 + + 35 * + COUNT ( * ) * + 36 AS col1
----
1310

query II rowsort
SELECT 81 * + + 2 AS col2, 41 * 52 AS col0
----
162
2132

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT ALL COUNT( 76 ), 51 AS col2
----
1
51

skipif mysql # not compatible
query II rowsort label-822
SELECT ALL COUNT ( 76 ), 51 AS col2
----
1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT ALL + 17 * + NULLIF ( + COUNT( * ), - 44 ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-823
SELECT ALL + 17 * + NULLIF ( + COUNT ( * ), - 44 ) AS col2
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT MIN( DISTINCT 79 ) + + 13 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-825
SELECT MIN ( DISTINCT 79 ) + + 13 AS col0
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-826
SELECT 96 DIV - 14 AS col0, + 83 AS col0
----
-6
83

skipif mysql # not compatible
query II rowsort label-826
SELECT 96 / - 14 AS col0, + 83 AS col0
----
-6
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-827
SELECT 29 + + 44 AS col1, - 41 * CAST( NULL AS SIGNED ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-827
SELECT 29 + + 44 AS col1, - 41 * CAST ( NULL AS INTEGER ) AS col0
----
73
NULL

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

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

query I rowsort
SELECT 76 + + + 52
----
128

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT + 22 + COALESCE ( CASE - - 13 WHEN - COUNT( * ) * 10 THEN + COALESCE ( - COUNT( * ), - 28 + SUM( 29 + - 58 ) ) WHEN ( COUNT( * ) ) THEN 5 - 37 END, COUNT( * ) - COUNT( * ), 96 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + 22 + COALESCE ( CASE - - 13 WHEN - COUNT ( * ) * 10 THEN + COALESCE ( - COUNT ( * ), - 28 + SUM ( 29 + - 58 ) ) WHEN ( COUNT ( * ) ) THEN 5 - 37 END, COUNT ( * ) - COUNT ( * ), 96 ) AS col2
----
22

query I rowsort
SELECT 49 - + + 38 * 71 col0
----
-2649

query I rowsort
SELECT 85 * - - ( - ( - 81 ) )
----
6885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL - 50 + NULLIF ( - CASE AVG ( - - 73 ) WHEN 51 + + 61 * + 75 THEN + COUNT( * ) + - 7 / COUNT( * ) WHEN + 55 * NULLIF ( - 1, + MAX( DISTINCT + 16 ) + 1 ) THEN NULL WHEN - 7 * 31 THEN CAST( + COALESCE ( 33, + 2 ) AS SIGNED ) - 69 END, - 5 ) + 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL - 50 + NULLIF ( - CASE AVG ( - - 73 ) WHEN 51 + + 61 * + 75 THEN + COUNT ( * ) + - 7 / COUNT ( * ) WHEN + 55 * NULLIF ( - 1, + MAX ( DISTINCT + 16 ) + 1 ) THEN NULL WHEN - 7 * 31 THEN CAST ( + COALESCE ( 33, + 2 ) AS INTEGER ) - 69 END, - 5 ) + 20 col1
----
NULL

query I rowsort
SELECT DISTINCT + 95 * + 19
----
1805

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

skipif mysql # not compatible
query I rowsort label-836
SELECT ( + COUNT ( * ) ) / - + 45 + - 97 AS col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT 75 * 76 DIV - 6 AS col1
----
-950

skipif mysql # not compatible
query I rowsort label-837
SELECT 75 * 76 / - 6 AS col1
----
-950

query I rowsort
SELECT ALL + 5 - - - 1 + - 73 col0
----
-69

query I rowsort
SELECT ALL 51 - + - 11 - - + 90
----
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-840
SELECT NULLIF ( 24, - COALESCE ( - CAST( NULL AS DECIMAL ), - 29, + NULLIF ( 36, 13 ) * + 37 + 66 ) ) * + 54
----
1296

skipif mysql # not compatible
query I rowsort label-840
SELECT NULLIF ( 24, - COALESCE ( - CAST ( NULL AS REAL ), - 29, + NULLIF ( 36, 13 ) * + 37 + 66 ) ) * + 54
----
1296

query II rowsort
SELECT 22 AS col2, 7
----
22
7

onlyif mysql # DIV for integer division: 
query I rowsort label-842
SELECT - 91 DIV + ( - - 6 ) + + - 20
----
-35

skipif mysql # not compatible
query I rowsort label-842
SELECT - 91 / + ( - - 6 ) + + - 20
----
-35

query I rowsort
SELECT ALL + 6 - + 29 AS col2
----
-23

query I rowsort
SELECT 90 * - - 28
----
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-845
SELECT 25 + + 77 - + 47 + - 1 + + - 49 * 78 DIV + 85
----
10

skipif mysql # not compatible
query I rowsort label-845
SELECT 25 + + 77 - + 47 + - 1 + + - 49 * 78 / + 85
----
10

query I rowsort
SELECT DISTINCT 9 * 68 col2
----
612

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT 44 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-847
SELECT 44 / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT ALL 44 * - CASE - COUNT( * ) WHEN 59 + + - 19 THEN ( - 50 ) ELSE NULL END / + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-848
SELECT ALL 44 * - CASE - COUNT ( * ) WHEN 59 + + - 19 THEN ( - 50 ) ELSE NULL END / + 10 AS col2
----
NULL

query I rowsort
SELECT 15 * + 92
----
1380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-851
SELECT DISTINCT + 10 * COUNT( * ) + - + 28 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT + 10 * COUNT ( * ) + - + 28 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL + MIN( DISTINCT + 39 ) + + 61 * - 74
----
-4475

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + MIN ( DISTINCT + 39 ) + + 61 * - 74
----
-4475

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT COUNT( * ) + 29 - + 30
----
0

skipif mysql # not compatible
query I rowsort label-853
SELECT COUNT ( * ) + 29 - + 30
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT - NULLIF ( + 21, - 23 * + ( + 18 ) / + NULLIF ( - ( COALESCE ( NULLIF ( 3, SUM( 11 ) ), - 22 + + COUNT( * ) * 90 ) ), - 71 * + CAST( - 84 AS SIGNED ) + 11 / COUNT( * ) ) + 7 - - 77 ) * + 59
----
-1239

skipif mysql # not compatible
query I rowsort label-855
SELECT - NULLIF ( + 21, - 23 * + ( + 18 ) / + NULLIF ( - ( COALESCE ( NULLIF ( 3, SUM ( 11 ) ), - 22 + + COUNT ( * ) * 90 ) ), - 71 * + CAST ( - 84 AS INTEGER ) + 11 / COUNT ( * ) ) + 7 - - 77 ) * + 59
----
-1239

query I rowsort
SELECT ALL 25 + + 47
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-857
SELECT ALL 64 + CAST( - 33 AS SIGNED ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL 64 + CAST ( - 33 AS INTEGER ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-858
SELECT ALL - COUNT( * ) * 55 * 3 AS col0, 24 + - 32
----
-165
-8

skipif mysql # not compatible
query II rowsort label-858
SELECT ALL - COUNT ( * ) * 55 * 3 AS col0, 24 + - 32
----
-165
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-859
SELECT ALL - CASE 8 WHEN - MIN( + 63 ) DIV + + 4 + - COUNT( * ) THEN + 18 + + ( 75 ) WHEN 98 * - 42 + 86 THEN NULL ELSE + 23 DIV + 81 END + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-859
SELECT ALL - CASE 8 WHEN - MIN ( + 63 ) / + + 4 + - COUNT ( * ) THEN + 18 + + ( 75 ) WHEN 98 * - 42 + 86 THEN NULL ELSE + 23 / + 81 END + - 27
----
-27

query II rowsort
SELECT - ( + ( - - 98 ) ), - 35 AS col0
----
-98
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT 83 - COUNT( * ) * - + 12
----
95

skipif mysql # not compatible
query I rowsort label-861
SELECT 83 - COUNT ( * ) * - + 12
----
95

query I rowsort
SELECT ALL 14 * + 85 AS col1
----
1190

query I rowsort
SELECT 94 - + 84
----
10

query II rowsort
SELECT 19 AS col1, 4 + + + 82 AS col2
----
19
86

query I rowsort
SELECT 10 * + 84
----
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-866
SELECT - COALESCE ( - 62, CASE - - 66 WHEN + - CAST( NULL AS SIGNED ) THEN + 44 + - 58 END + 39, + 39 )
----
62

skipif mysql # not compatible
query I rowsort label-866
SELECT - COALESCE ( - 62, CASE - - 66 WHEN + - CAST ( NULL AS INTEGER ) THEN + 44 + - 58 END + 39, + 39 )
----
62

query I rowsort
SELECT 84 + + NULLIF ( - 10, 76 * - 35 + + + 83 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-868
SELECT ALL 22 DIV + 32
----
0

skipif mysql # not compatible
query I rowsort label-868
SELECT ALL 22 / + 32
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( - 34, + + 25 )
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT 55 / + + CASE - 6 WHEN - 62 THEN NULL WHEN - + CAST( 80 AS SIGNED ) THEN NULLIF ( 18, - 22 - - 86 ) ELSE NULL END + CAST( CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT 55 / + + CASE - 6 WHEN - 62 THEN NULL WHEN - + CAST ( 80 AS INTEGER ) THEN NULLIF ( 18, - 22 - - 86 ) ELSE NULL END + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL + SUM( - - 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL + SUM ( - - 41 ) AS col0
----
41

query I rowsort
SELECT - CASE - + 20 WHEN - + 80 - + 15 THEN 94 WHEN 68 + 83 THEN + 3 * 76 ELSE 93 END + 27
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-873
SELECT + 52, + 75 DIV COUNT( * ) AS col2
----
52
75

skipif mysql # not compatible
query II rowsort label-873
SELECT + 52, + 75 / COUNT ( * ) AS col2
----
52
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-874
SELECT - CASE - 81 WHEN + CAST( NULL AS SIGNED ) / 57 THEN NULL ELSE - MIN( + + 13 ) * + 77 + - 41 END + COUNT( * )
----
1043

skipif mysql # not compatible
query I rowsort label-874
SELECT - CASE - 81 WHEN + CAST ( NULL AS INTEGER ) / 57 THEN NULL ELSE - MIN ( + + 13 ) * + 77 + - 41 END + COUNT ( * )
----
1043

query I rowsort
SELECT - 56 * NULLIF ( + 4, + - ( + 9 ) )
----
-224

query I rowsort
SELECT - 62 * - + 36
----
2232

query I rowsort
SELECT - 74 + - 22
----
-96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-878
SELECT - 61 * - 74 + - ( 91 ) * - NULLIF ( CAST( CAST( NULL AS DECIMAL ) AS SIGNED ), 20 * 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT - 61 * - 74 + - ( 91 ) * - NULLIF ( CAST ( CAST ( NULL AS REAL ) AS INTEGER ), 20 * 46 )
----
NULL

query I rowsort
SELECT DISTINCT + - 39 * + - 66 + - 43 AS col2
----
2531

query I rowsort
SELECT ALL - + 74 * + 19 + - - 41 + - + 91
----
-1456

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT + COUNT( * ), 8 + - 74 AS col2
----
1
-66

skipif mysql # not compatible
query II rowsort label-881
SELECT + COUNT ( * ), 8 + - 74 AS col2
----
1
-66

query I rowsort
SELECT + 11 * + 97 * + + 31 + - + ( + + 98 ) + + 90 + 33 * 36
----
34257

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

skipif mysql # not compatible
query I rowsort label-883
SELECT + + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col1
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT + - 29 * + CASE 57 WHEN + CAST( + 88 AS SIGNED ) THEN + 69 END * - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-885
SELECT + - 29 * + CASE 57 WHEN + CAST ( + 88 AS INTEGER ) THEN + 69 END * - COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-886
SELECT ALL 61 AS col1, 63 * + + 63 * + - CAST( NULL AS SIGNED ) * + + 65 AS col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-886
SELECT ALL 61 AS col1, 63 * + + 63 * + - CAST ( NULL AS INTEGER ) * + + 65 AS col0
----
61
NULL

query I rowsort
SELECT - + ( 88 ) + - ( - + 45 ) AS col1
----
-43

query I rowsort
SELECT ALL - 48 * + 78
----
-3744

query II rowsort
SELECT - + 13 AS col2, 76
----
-13
76

query I rowsort
SELECT 85 * 78 + + ( + 80 ) + 49 AS col0
----
6759

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + COUNT( * ) * - COALESCE ( - 39, + - 68 - - COALESCE ( 8, - 99 ), 3 )
----
39

skipif mysql # not compatible
query I rowsort label-891
SELECT + COUNT ( * ) * - COALESCE ( - 39, + - 68 - - COALESCE ( 8, - 99 ), 3 )
----
39

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-892
SELECT ALL - - 35 * + 70 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - - 35 * + 70 * - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 46 + + 32
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-894
SELECT + COUNT( * ) + - 73 - - - 12 * + COALESCE ( + + COUNT( ALL + + 97 ), 5, - 71 - 31 ) + - NULLIF ( + NULLIF ( 31, COALESCE ( + 86, 76 ) + 23 ) + - CAST( NULL AS DECIMAL ), 38 ) * + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT + COUNT ( * ) + - 73 - - - 12 * + COALESCE ( + + COUNT ( ALL + + 97 ), 5, - 71 - 31 ) + - NULLIF ( + NULLIF ( 31, COALESCE ( + 86, 76 ) + 23 ) + - CAST ( NULL AS REAL ), 38 ) * + 52 AS col0
----
NULL

query I rowsort
SELECT + 42 + - 60 + - 81
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT + MAX( 77 ) * + - 31 AS col0
----
-2387

skipif mysql # not compatible
query I rowsort label-896
SELECT + MAX ( 77 ) * + - 31 AS col0
----
-2387

query II rowsort
SELECT DISTINCT ( 45 ), + 52 AS col1
----
45
52

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - COALESCE ( 81, + COUNT( * ) + - 77 * - 30 * 74, + - 54, - 3 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-898
SELECT - COALESCE ( 81, + COUNT ( * ) + - 77 * - 30 * 74, + - 54, - 3 ) AS col0
----
-81

query I rowsort
SELECT ALL 34 * + + 3 * - 32 * 23 AS col1
----
-75072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-900
SELECT + COUNT( * ) * NULLIF ( ( - 8 ), 66 + COUNT( * ) + + - 90 * 87 ) DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-900
SELECT + COUNT ( * ) * NULLIF ( ( - 8 ), 66 + COUNT ( * ) + + - 90 * 87 ) / + 21 AS col2
----
0

query I rowsort
SELECT + 10 + - - ( - 3 ) * - + ( + + 57 )
----
181

query I rowsort
SELECT + 74 * + 91 AS col1
----
6734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-903
SELECT DISTINCT COUNT( * ) DIV + + 11 + - COUNT( ALL + 23 )
----
-1

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT COUNT ( * ) / + + 11 + - COUNT ( ALL + 23 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT + 26 DIV + ( - + 60 ) * 49
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT + 26 / + ( - + 60 ) * 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-905
SELECT ALL - 44 DIV ( 60 ) + 38 AS col2
----
38

skipif mysql # not compatible
query I rowsort label-905
SELECT ALL - 44 / ( 60 ) + 38 AS col2
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-906
SELECT ALL 26 DIV - 83 + 74
----
74

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL 26 / - 83 + 74
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-907
SELECT 79 * 84 DIV + + 2 + - 71 + 36
----
3283

skipif mysql # not compatible
query I rowsort label-907
SELECT 79 * 84 / + + 2 + - 71 + 36
----
3283

onlyif mysql # DIV for integer division: 
query I rowsort label-908
SELECT + NULLIF ( 70, + + 30 ) DIV + 60
----
1

skipif mysql # not compatible
query I rowsort label-908
SELECT + NULLIF ( 70, + + 30 ) / + 60
----
1

query I rowsort
SELECT DISTINCT - - 64 * - + 95 + + + 52 + + 71 AS col0
----
-5957

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

skipif mysql # not compatible
query I rowsort label-910
SELECT + + MAX ( - 61 )
----
-61

query I rowsort
SELECT + CASE - - 92 WHEN - + 88 + - + 67 THEN - - 80 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 22 * + 69 * 6 + + - 83
----
9025

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-913
SELECT ALL - 0 * - + 98 DIV - - 74 AS col2, CAST( NULL AS DECIMAL ) + 24, + CAST( NULL AS SIGNED )
----
0
NULL
NULL

skipif mysql # not compatible
query III rowsort label-913
SELECT ALL - 0 * - + 98 / - - 74 AS col2, CAST ( NULL AS REAL ) + 24, + CAST ( NULL AS INTEGER )
----
0
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT - CAST( + CAST( - ( - + 47 ) AS SIGNED ) AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-915
SELECT - CAST ( + CAST ( - ( - + 47 ) AS INTEGER ) AS INTEGER ) AS col2
----
-47

query I rowsort
SELECT + NULLIF ( + COALESCE ( - - 55, - 26 ), - ( 8 ) * + + ( 34 ) * - 15 + 87 * 91 ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-917
SELECT - MIN( + - 19 ) AS col0, COUNT( * ) + - 9 + - - 59 + 13
----
19
64

skipif mysql # not compatible
query II rowsort label-917
SELECT - MIN ( + - 19 ) AS col0, COUNT ( * ) + - 9 + - - 59 + 13
----
19
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-918
SELECT + CASE - + ( - 7 ) WHEN - + 38 * - NULLIF ( - + CASE ( 28 ) WHEN + COUNT( * ) THEN NULL WHEN + 52 THEN NULL WHEN 41 THEN + 77 ELSE NULL END, - 61 ) + - 39 THEN - 65 WHEN - CASE 98 WHEN 29 + + MIN( DISTINCT - 40 ) * 15 THEN NULL ELSE - 12 END * - CASE COUNT( * ) WHEN + AVG ( DISTINCT 8 ) THEN CAST( NULL AS SIGNED ) WHEN - 28 + 75 THEN + 90 * 46 ELSE NULL END THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT + CASE - + ( - 7 ) WHEN - + 38 * - NULLIF ( - + CASE ( 28 ) WHEN + COUNT ( * ) THEN NULL WHEN + 52 THEN NULL WHEN 41 THEN + 77 ELSE NULL END, - 61 ) + - 39 THEN - 65 WHEN - CASE 98 WHEN 29 + + MIN ( DISTINCT - 40 ) * 15 THEN NULL ELSE - 12 END * - CASE COUNT ( * ) WHEN + AVG ( DISTINCT 8 ) THEN CAST ( NULL AS INTEGER ) WHEN - 28 + 75 THEN + 90 * 46 ELSE NULL END THEN NULL END AS col2
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT - - CAST( + + 51 AS SIGNED ) - - 58 AS col2
----
109

skipif mysql # not compatible
query I rowsort label-921
SELECT - - CAST ( + + 51 AS INTEGER ) - - 58 AS col2
----
109

onlyif mysql # DIV for integer division: 
query II rowsort label-922
SELECT DISTINCT + + 28 DIV + ( - - 34 ) col0, 62
----
0
62

skipif mysql # not compatible
query II rowsort label-922
SELECT DISTINCT + + 28 / + ( - - 34 ) col0, 62
----
0
62

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - ( - - COUNT( * ) ) + + + 70 + 41
----
110

skipif mysql # not compatible
query I rowsort label-923
SELECT - ( - - COUNT ( * ) ) + + + 70 + 41
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-924
SELECT - ( 28 ) * MIN( ALL + 94 ) * + CAST( + 73 AS SIGNED )
----
-192136

skipif mysql # not compatible
query I rowsort label-924
SELECT - ( 28 ) * MIN ( ALL + 94 ) * + CAST ( + 73 AS INTEGER )
----
-192136

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT NULLIF ( 31, + 6 * - 50 - + + 64 + - + 86 ) * + COALESCE ( + - 37, - COALESCE ( 10, COUNT( * ) * 85 + 82 ) + + 50, 49 ) + COALESCE ( - 95 + 0, 27 ) AS col2
----
-1242

skipif mysql # not compatible
query I rowsort label-926
SELECT NULLIF ( 31, + 6 * - 50 - + + 64 + - + 86 ) * + COALESCE ( + - 37, - COALESCE ( 10, COUNT ( * ) * 85 + 82 ) + + 50, 49 ) + COALESCE ( - 95 + 0, 27 ) AS col2
----
-1242

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT 19 - 72 * - - 17, MIN( - 78 ) * 21 AS col0
----
-1205
-1638

skipif mysql # not compatible
query II rowsort label-927
SELECT 19 - 72 * - - 17, MIN ( - 78 ) * 21 AS col0
----
-1205
-1638

query I rowsort
SELECT ALL 92 + + 84 + - + 4 * - 90 * + + 52 AS col2
----
18896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-929
SELECT 82 AS col0, 52 DIV 45 * - 34 * COUNT( * ) AS col0
----
82
-34

skipif mysql # not compatible
query II rowsort label-929
SELECT 82 AS col0, 52 / 45 * - 34 * COUNT ( * ) AS col0
----
82
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL COUNT( * ) + + 78 col1
----
79

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL COUNT ( * ) + + 78 col1
----
79

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-932
SELECT ALL + COUNT( * ) + + + CAST( NULL AS SIGNED ) - + - 30 AS col1, 40 * - 44 AS col0
----
NULL
-1760

skipif mysql # not compatible
query II rowsort label-932
SELECT ALL + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) - + - 30 AS col1, 40 * - 44 AS col0
----
NULL
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT NULLIF ( COUNT( - - 79 ), + ( + 48 ) ) * CASE - + 9 WHEN 2 + 51 / 36 THEN 33 * 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-933
SELECT NULLIF ( COUNT ( - - 79 ), + ( + 48 ) ) * CASE - + 9 WHEN 2 + 51 / 36 THEN 33 * 54 END
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( - + 22, - - 2 ) * + 33
----
-726

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-935
SELECT 20 DIV - 78 + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-935
SELECT 20 / - 78 + + COUNT ( * ) AS col1
----
1

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

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

query I rowsort
SELECT 27 + - 42 col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-938
SELECT - COALESCE ( + + COUNT( * ), + 7, + 42, - 2 * + - 82 )
----
-1

skipif mysql # not compatible
query I rowsort label-938
SELECT - COALESCE ( + + COUNT ( * ), + 7, + 42, - 2 * + - 82 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT - COUNT( * ) + + 55 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-939
SELECT - COUNT ( * ) + + 55 AS col0
----
54

query II rowsort
SELECT DISTINCT - 60 AS col0, 93
----
-60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-941
SELECT DISTINCT - NULLIF ( - - ( + - 44 ), - COALESCE ( - + COUNT( * ), + 37 + 31, + + 41 * - 43 ) + - 72 )
----
44

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT - NULLIF ( - - ( + - 44 ), - COALESCE ( - + COUNT ( * ), + 37 + 31, + + 41 * - 43 ) + - 72 )
----
44

query I rowsort
SELECT ALL 17 - - + 53
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-943
SELECT - 74 * + - 9 * - NULLIF ( - 30, - 12 * + 34 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT - 74 * + - 9 * - NULLIF ( - 30, - 12 * + 34 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-944
SELECT ALL - NULLIF ( + 31, + SUM( ALL CAST( - - 80 AS SIGNED ) ) - - 80 ) DIV - - 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-944
SELECT ALL - NULLIF ( + 31, + SUM ( ALL CAST ( - - 80 AS INTEGER ) ) - - 80 ) / - - 40 AS col0
----
0

query I rowsort
SELECT 76 * - COALESCE ( + 99, 86, - 52 ) AS col0
----
-7524

query II rowsort
SELECT - 50 + - + 87 * 80 AS col0, + 81
----
-7010
81

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT + ( - - 67 ) + COUNT( * ) * - 48 + + 0
----
19

skipif mysql # not compatible
query I rowsort label-947
SELECT + ( - - 67 ) + COUNT ( * ) * - 48 + + 0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-948
SELECT 68 + - + 17 + - CAST( + 77 AS SIGNED ) + - 36 + - - 96 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-948
SELECT 68 + - + 17 + - CAST ( + 77 AS INTEGER ) + - 36 + - - 96 AS col1
----
34

query I rowsort
SELECT ALL + 5 * + 8
----
40

query I rowsort
SELECT DISTINCT - 94 * + 66
----
-6204

query I rowsort
SELECT ALL + 59 * + 44 * + 51
----
132396

query I rowsort
SELECT 10 + + 47
----
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT COUNT( * ) + - 15 * - 86 * - - 57 + + COALESCE ( - ( - + 33 ), - - 42, - 95 )
----
73564

skipif mysql # not compatible
query I rowsort label-954
SELECT COUNT ( * ) + - 15 * - 86 * - - 57 + + COALESCE ( - ( - + 33 ), - - 42, - 95 )
----
73564

onlyif mysql # aggregate syntax: 
query II rowsort label-955
SELECT COUNT( * ) * + + 10, - 9 AS col0
----
10
-9

skipif mysql # not compatible
query II rowsort label-955
SELECT COUNT ( * ) * + + 10, - 9 AS col0
----
10
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT + ( + + 76 ) + + SUM( ALL 33 ) col1
----
109

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + ( + + 76 ) + + SUM ( ALL 33 ) col1
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT + COUNT( * ) + - ( - - ( 68 ) )
----
-67

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT + COUNT ( * ) + - ( - - ( 68 ) )
----
-67

query I rowsort
SELECT ALL - 61 + + 48 + - 47 + - 52 * + + 15
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT 41 + - COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-959
SELECT 41 + - COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT COUNT( DISTINCT + 55 ) + + 97 DIV 62 + MAX( ALL + 56 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-960
SELECT COUNT ( DISTINCT + 55 ) + + 97 / 62 + MAX ( ALL + 56 ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT 54 * + + ( - - 91 ) * 59 * + 11 * - - SUM( DISTINCT + 88 ) * - COUNT( * ) + 60 - + COUNT( * ) * 49 AS col1
----
-280648357

skipif mysql # not compatible
query I rowsort label-961
SELECT 54 * + + ( - - 91 ) * 59 * + 11 * - - SUM ( DISTINCT + 88 ) * - COUNT ( * ) + 60 - + COUNT ( * ) * 49 AS col1
----
-280648357

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-962
SELECT 60 + + CAST( + 40 AS SIGNED ) * + 81, - 8 - - - 94 - 20 * - - 91 * 38 AS col1
----
3300
-69262

skipif mysql # not compatible
query II rowsort label-962
SELECT 60 + + CAST ( + 40 AS INTEGER ) * + 81, - 8 - - - 94 - 20 * - - 91 * 38 AS col1
----
3300
-69262

query I rowsort
SELECT ALL 79 + - 95
----
-16

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-964
SELECT ALL - CAST( - CASE 22 WHEN + ( - - SUM( DISTINCT + - 78 ) ) THEN - 42 ELSE NULL END AS DECIMAL ) * + ( + 32 ) * + 2 + 53 / + COUNT( * ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT ALL - CAST ( - CASE 22 WHEN + ( - - SUM ( DISTINCT + - 78 ) ) THEN - 42 ELSE NULL END AS REAL ) * + ( + 32 ) * + 2 + 53 / + COUNT ( * ) + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-965
SELECT 63 * 42 * + CASE - 40 WHEN + 77 * + 58 - 77 - - + 45 * 58 * 46 - + 96 THEN + MIN( + CAST( NULL AS SIGNED ) ) * + 23 WHEN ( ( + 29 ) ) THEN + 33 + COUNT( * ) WHEN 42 * - 72 THEN NULL END + CASE 15 + 70 WHEN + 97 THEN - 75 ELSE NULL END - + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-965
SELECT 63 * 42 * + CASE - 40 WHEN + 77 * + 58 - 77 - - + 45 * 58 * 46 - + 96 THEN + MIN ( + CAST ( NULL AS INTEGER ) ) * + 23 WHEN ( ( + 29 ) ) THEN + 33 + COUNT ( * ) WHEN 42 * - 72 THEN NULL END + CASE 15 + 70 WHEN + 97 THEN - 75 ELSE NULL END - + 80 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-966
SELECT ALL - COUNT( * ) * CASE + - 97 WHEN + 19 THEN NULL WHEN + 30 / COUNT( DISTINCT 62 ) THEN 83 ELSE NULL END + + 81 + - MAX( DISTINCT 30 ) * - 60 - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT ALL - COUNT ( * ) * CASE + - 97 WHEN + 19 THEN NULL WHEN + 30 / COUNT ( DISTINCT 62 ) THEN 83 ELSE NULL END + + 81 + - MAX ( DISTINCT 30 ) * - 60 - 40 AS col1
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-969
SELECT 44 * - 81 - + 17 + - CAST( + - 93 AS SIGNED ) col2
----
-3488

skipif mysql # not compatible
query I rowsort label-969
SELECT 44 * - 81 - + 17 + - CAST ( + - 93 AS INTEGER ) col2
----
-3488

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT + + ( + CASE - - COUNT( * ) WHEN - 16 THEN - CASE + 75 WHEN - + 89 THEN - + 10 ELSE - 89 * + 3 + 47 END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-970
SELECT + + ( + CASE - - COUNT ( * ) WHEN - 16 THEN - CASE + 75 WHEN - + 89 THEN - + 10 ELSE - 89 * + 3 + 47 END END )
----
NULL

query I rowsort
SELECT 6 * - 47
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT - 8 * - + MIN( - 42 )
----
-336

skipif mysql # not compatible
query I rowsort label-972
SELECT - 8 * - + MIN ( - 42 )
----
-336

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL - - SUM( - 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - - SUM ( - 26 )
----
-26

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

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

query I rowsort
SELECT ALL - 15 + - 69 * - + 25
----
1710

query I rowsort
SELECT + - 10 + - - 20 AS col1
----
10

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

skipif mysql # not compatible
query I rowsort label-979
SELECT + 64 + CAST ( NULL AS INTEGER ) * 95
----
NULL

query I rowsort
SELECT - 70 * 58 AS col2
----
-4060

query II rowsort
SELECT 77, 21 AS col2
----
77
21

onlyif mysql # DIV for integer division: 
query I rowsort label-982
SELECT - 87 DIV 25 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-982
SELECT - 87 / 25 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT - 46 * - + NULLIF ( - - COUNT( * ), + - 52 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-983
SELECT - 46 * - + NULLIF ( - - COUNT ( * ), + - 52 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT ALL + COUNT( * ) + 17 + + CASE + SUM( - 80 ) WHEN + + 58 THEN + - 97 + + + CAST( + + 27 AS SIGNED ) - - - 17 WHEN - 25 THEN NULL END * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + COUNT ( * ) + 17 + + CASE + SUM ( - 80 ) WHEN + + 58 THEN + - 97 + + + CAST ( + + 27 AS INTEGER ) - - - 17 WHEN - 25 THEN NULL END * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-985
SELECT ALL NULLIF ( + + ( + CAST( NULL AS SIGNED ) ), - + 31 * + - CAST( NULL AS DECIMAL ) ) + + 85 + - - 49 * + 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL NULLIF ( + + ( + CAST ( NULL AS INTEGER ) ), - + 31 * + - CAST ( NULL AS REAL ) ) + + 85 + - - 49 * + 16 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-986
SELECT ALL COUNT( * ) AS col2, 11 * - SUM( DISTINCT + - 22 ) * - 54 + 27
----
1
-13041

skipif mysql # not compatible
query II rowsort label-986
SELECT ALL COUNT ( * ) AS col2, 11 * - SUM ( DISTINCT + - 22 ) * - 54 + 27
----
1
-13041

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT + 74 + - - CASE - 25 WHEN - MAX( + - 88 ) THEN NULL WHEN - - 74 THEN - 36 + + - 6 ELSE - 38 END - + 6 * + 74 * - 78 col1
----
34668

skipif mysql # not compatible
query I rowsort label-987
SELECT + 74 + - - CASE - 25 WHEN - MAX ( + - 88 ) THEN NULL WHEN - - 74 THEN - 36 + + - 6 ELSE - 38 END - + 6 * + 74 * - 78 col1
----
34668

query I rowsort
SELECT - 80 * 9
----
-720

query I rowsort
SELECT - NULLIF ( - - 17, - 35 ) col1
----
-17

query I rowsort
SELECT DISTINCT - 84 + - 0 AS col2
----
-84

query II rowsort
SELECT - 58 AS col0, 66 * - + 36
----
-58
-2376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-992
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) - NULLIF ( - 86, 25 + - 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) - NULLIF ( - 86, 25 + - 81 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-993
SELECT - 44 * CAST( NULL AS SIGNED ) / 72 * - 78 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-993
SELECT - 44 * CAST ( NULL AS INTEGER ) / 72 * - 78 col2
----
NULL

query I rowsort
SELECT ALL CASE - 53 WHEN + - 48 THEN NULL ELSE + 27 END
----
27

query I rowsort
SELECT DISTINCT - 23 * - 50 AS col1
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT ALL - 12 - 64 * - COUNT( 20 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-996
SELECT ALL - 12 - 64 * - COUNT ( 20 ) AS col0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-997
SELECT ALL + + 73, - COALESCE ( + 24, + 45 * + 65 * - 27 ) * + + COALESCE ( - 27, + COUNT( * ) ) * + 30 - 79 * 89 AS col2
----
73
12409

skipif mysql # not compatible
query II rowsort label-997
SELECT ALL + + 73, - COALESCE ( + 24, + 45 * + 65 * - 27 ) * + + COALESCE ( - 27, + COUNT ( * ) ) * + 30 - 79 * 89 AS col2
----
73
12409

query I rowsort
SELECT DISTINCT - 63 * + 69 AS col1
----
-4347

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT - + CASE - 62 WHEN + 96 - + - 7 * COALESCE ( CASE + 90 WHEN + 25 THEN AVG ( - 55 ) * 28 ELSE + 76 + - 35 END, - 79 + ( - 68 ) ) THEN NULL WHEN 52 THEN - 71 + - 96 ELSE 95 END DIV 77
----
-1

skipif mysql # not compatible
query I rowsort label-999
SELECT - + CASE - 62 WHEN + 96 - + - 7 * COALESCE ( CASE + 90 WHEN + 25 THEN AVG ( - 55 ) * 28 ELSE + 76 + - 35 END, - 79 + ( - 68 ) ) THEN NULL WHEN 52 THEN - 71 + - 96 ELSE 95 END / 77
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT + COUNT( 18 ) DIV - 4 + 83 + 39 DIV - 43 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-1000
SELECT + COUNT ( 18 ) / - 4 + 83 + 39 / - 43 AS col1
----
83

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1002
SELECT DISTINCT + COUNT( * ) * 4 + - 47 + - 59 + + CAST( NULL AS SIGNED ) + 36 + + + CAST( NULL AS SIGNED ) / 21 / + + 17 * - - 21 * + 1 + 21 * + COUNT( 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT + COUNT ( * ) * 4 + - 47 + - 59 + + CAST ( NULL AS INTEGER ) + 36 + + + CAST ( NULL AS INTEGER ) / 21 / + + 17 * - - 21 * + 1 + 21 * + COUNT ( 6 )
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( + 66, - 88 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT + - ( + COUNT( ALL + 55 ) ) + + ( + SUM( ALL - 93 ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1004
SELECT + - ( + COUNT ( ALL + 55 ) ) + + ( + SUM ( ALL - 93 ) ) AS col1
----
-94

query I rowsort
SELECT DISTINCT + 55 * 51
----
2805

onlyif mysql # DIV for integer division: 
query I rowsort label-1006
SELECT - 12 * 33 DIV - + 58
----
6

skipif mysql # not compatible
query I rowsort label-1006
SELECT - 12 * 33 / - + 58
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1007
SELECT + CAST( - COUNT( - - 36 ) AS SIGNED ) + - 6
----
-7

skipif mysql # not compatible
query I rowsort label-1007
SELECT + CAST ( - COUNT ( - - 36 ) AS INTEGER ) + - 6
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT + COUNT( ALL + - 2 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1008
SELECT + COUNT ( ALL + - 2 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT 33 * 68 + CASE 95 WHEN 9 - - MAX( + 67 ) THEN + 71 WHEN + COUNT( * ) * + 72 * - COUNT( * ) THEN NULL END + 35 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT 33 * 68 + CASE 95 WHEN 9 - - MAX ( + 67 ) THEN + 71 WHEN + COUNT ( * ) * + 72 * - COUNT ( * ) THEN NULL END + 35 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT + ( MAX ( + 9 ) )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1011
SELECT + 10 DIV + 39 * - 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1011
SELECT + 10 / + 39 * - 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT COUNT( - ( - 58 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-1012
SELECT COUNT ( - ( - 58 ) ) col1
----
1

query II rowsort
SELECT ALL 42 AS col2, + 0 + 76 AS col1
----
42
76

onlyif mysql # DIV for integer division: 
query II rowsort label-1014
SELECT + 74 DIV - 53 AS col2, 52 * 60 AS col1
----
-1
3120

skipif mysql # not compatible
query II rowsort label-1014
SELECT + 74 / - 53 AS col2, 52 * 60 AS col1
----
-1
3120

query I rowsort
SELECT + 80 + + 46
----
126

query I rowsort
SELECT - NULLIF ( - - 47, 45 ) col2
----
-47

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

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

query II rowsort
SELECT 5, 27 AS col1
----
5
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1019
SELECT 78 AS col2, - CASE - + 3 WHEN 36 + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) THEN + 85 / - 41 + 42 / - 93 END
----
78
NULL

skipif mysql # not compatible
query II rowsort label-1019
SELECT 78 AS col2, - CASE - + 3 WHEN 36 + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) THEN + 85 / - 41 + 42 / - 93 END
----
78
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1020
SELECT + 62 + + SUM( DISTINCT - ( + 35 ) ) DIV - 46
----
62

skipif mysql # not compatible
query I rowsort label-1020
SELECT + 62 + + SUM ( DISTINCT - ( + 35 ) ) / - 46
----
62

query I rowsort
SELECT + 38 + - + 48
----
-10

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1023
SELECT ALL ( - 25 ) - + ( + NULLIF ( - 61, + CASE + 24 WHEN - - ( 97 ) * COUNT( * ) + + ( + COUNT( * ) ) + - 85 * + 12 THEN 94 ELSE NULL END ) ) DIV ( 79 + COUNT( * ) )
----
-25

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL ( - 25 ) - + ( + NULLIF ( - 61, + CASE + 24 WHEN - - ( 97 ) * COUNT ( * ) + + ( + COUNT ( * ) ) + - 85 * + 12 THEN 94 ELSE NULL END ) ) / ( 79 + COUNT ( * ) )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1024
SELECT DISTINCT 61 * - 9 * - - COUNT( * )
----
-549

skipif mysql # not compatible
query I rowsort label-1024
SELECT DISTINCT 61 * - 9 * - - COUNT ( * )
----
-549

query I rowsort
SELECT - 27 * - 9 + + 78 AS col0
----
321

query II rowsort
SELECT + 14 AS col1, ( - ( - 71 ) ) + + 67 AS col1
----
14
138

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT DISTINCT - 67 DIV 8
----
-8

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT - 67 / 8
----
-8

onlyif mysql # aggregate syntax: 
query III rowsort label-1028
SELECT DISTINCT + 2 col0, COUNT( DISTINCT 76 ) - - - 59 AS col2, - COUNT( * ) + + 57 AS col0
----
2
-58
56

skipif mysql # not compatible
query III rowsort label-1028
SELECT DISTINCT + 2 col0, COUNT ( DISTINCT 76 ) - - - 59 AS col2, - COUNT ( * ) + + 57 AS col0
----
2
-58
56

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

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

query I rowsort
SELECT ALL - 18 * 72 AS col2
----
-1296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1031
SELECT DISTINCT - + 19 / 90 * - ( - 45 ) - - 20 - + 67 * + 65 * - 19 * - 88 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT - + 19 / 90 * - ( - 45 ) - - 20 - + 67 * + 65 * - 19 * - 88 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1032
SELECT ALL 57 DIV - - 85 + + - 5 * + - ( - 15 ) + - - 3 + 43 + - + 39 + 8 DIV 49 * + 6 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL 57 / - - 85 + + - 5 * + - ( - 15 ) + - - 3 + 43 + - + 39 + 8 / 49 * + 6 AS col1
----
-68

query II rowsort
SELECT DISTINCT - + 87 col1, - 58 * + 63 - 15 * - ( - 72 ) AS col1
----
-87
-4734

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

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 85 * + 5
----
NULL

query I rowsort
SELECT 43 * + 88 AS col0
----
3784

query I rowsort
SELECT ALL + + 44 * - ( + - COALESCE ( + 36, - - 15 + COALESCE ( 58, + 28, - 45 ) * - 1, - 42 ) ) AS col0
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT COUNT( * ) * 82 * + 6 * + 82 * 21 - + + 12 AS col0
----
847212

skipif mysql # not compatible
query I rowsort label-1037
SELECT COUNT ( * ) * 82 * + 6 * + 82 * 21 - + + 12 AS col0
----
847212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1038
SELECT CASE 12 WHEN - COUNT( * ) + 52 THEN NULL ELSE + - 95 + + + 37 + 86 + 37 - - ( - CAST( 62 AS SIGNED ) ) END AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1038
SELECT CASE 12 WHEN - COUNT ( * ) + 52 THEN NULL ELSE + - 95 + + + 37 + 86 + 37 - - ( - CAST ( 62 AS INTEGER ) ) END AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT + ( CAST( + 57 AS SIGNED ) ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-1039
SELECT + ( CAST ( + 57 AS INTEGER ) ) AS col2
----
57

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

skipif mysql # not compatible
query I rowsort label-1040
SELECT COUNT ( * ) / - - 50 + + 38
----
38

query I rowsort
SELECT - 82 * - + 3 - - 34
----
280

onlyif mysql # aggregate syntax: 
query II rowsort label-1042
SELECT ALL - 1 + - 16 AS col0, - CASE - 16 WHEN - 87 THEN 75 ELSE MAX( ALL - 46 ) + + 59 + COUNT( * ) + + - 80 END
----
-17
66

skipif mysql # not compatible
query II rowsort label-1042
SELECT ALL - 1 + - 16 AS col0, - CASE - 16 WHEN - 87 THEN 75 ELSE MAX ( ALL - 46 ) + + 59 + COUNT ( * ) + + - 80 END
----
-17
66

query I rowsort
SELECT 9 * 24 AS col2
----
216

query I rowsort
SELECT ALL - 29 + + ( + 77 )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT DISTINCT - COALESCE ( - 85, - + ( 13 ) DIV + COUNT( * ) ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-1045
SELECT DISTINCT - COALESCE ( - 85, - + ( 13 ) / + COUNT ( * ) ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT 63 + - + COUNT( * ) * - 86 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT 63 + - + COUNT ( * ) * - 86 AS col1
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1047
SELECT DISTINCT - ( - - CASE - + COUNT( * ) WHEN 37 * CAST( NULL AS SIGNED ) THEN AVG ( DISTINCT 79 ) WHEN 59 THEN - 80 / - NULLIF ( + CASE + - COUNT( * ) WHEN + 99 * 74 THEN 57 ELSE 21 END, - 36 ) + - 59 * 96 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT - ( - - CASE - + COUNT ( * ) WHEN 37 * CAST ( NULL AS INTEGER ) THEN AVG ( DISTINCT 79 ) WHEN 59 THEN - 80 / - NULLIF ( + CASE + - COUNT ( * ) WHEN + 99 * 74 THEN 57 ELSE 21 END, - 36 ) + - 59 * 96 END )
----
NULL

query I rowsort
SELECT ALL - ( + + 43 ) + 47
----
4

query I rowsort
SELECT 9 + + 50
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT ALL SUM( DISTINCT - ( 11 ) ) - COUNT( * ) * COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL SUM ( DISTINCT - ( 11 ) ) - COUNT ( * ) * COUNT ( * )
----
-12

query I rowsort
SELECT 25 * - 25 * - 52
----
32500

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

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

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

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

query I rowsort
SELECT ALL + 66 * + 90 * 43
----
255420

onlyif mysql # aggregate syntax: 
query II rowsort label-1055
SELECT + SUM( DISTINCT 29 ) * - + 86 col0, + 4
----
-2494
4

skipif mysql # not compatible
query II rowsort label-1055
SELECT + SUM ( DISTINCT 29 ) * - + 86 col0, + 4
----
-2494
4

query I rowsort
SELECT ALL + CASE + 85 WHEN + 72 * 77 + - - 31 THEN + - 52 * 4 END AS col1
----
NULL

query I rowsort
SELECT 78 + 10 AS col2
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT ALL - 29 DIV 94 + - + 22 - 29 * + 72 AS col1
----
-2110

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL - 29 / 94 + - + 22 - 29 * + 72 AS col1
----
-2110

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1059
SELECT + 78 DIV COUNT( * ) DIV + NULLIF ( + SUM( DISTINCT + - 80 ), 58 ) * COALESCE ( 33, - 63 ) * + 6 - 38 DIV ( + COUNT( * ) ) + 64 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-1059
SELECT + 78 / COUNT ( * ) / + NULLIF ( + SUM ( DISTINCT + - 80 ), 58 ) * COALESCE ( 33, - 63 ) * + 6 - 38 / ( + COUNT ( * ) ) + 64 AS col0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT - CAST( - 31 AS SIGNED ) - - 31 + - + 10 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-1060
SELECT - CAST ( - 31 AS INTEGER ) - - 31 + - + 10 AS col0
----
52

query I rowsort
SELECT + 61 * - 47 * - 2 AS col2
----
5734

query I rowsort
SELECT ALL 31 + + + 93
----
124

query II rowsort
SELECT DISTINCT - 80 + - + 76 AS col1, 47 AS col1
----
-156
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1064
SELECT ALL + + 96 + MAX( + 3 ), 13 AS col1
----
99
13

skipif mysql # not compatible
query II rowsort label-1064
SELECT ALL + + 96 + MAX ( + 3 ), 13 AS col1
----
99
13

query I rowsort
SELECT DISTINCT NULLIF ( + 92, + 59 ) + + 65 + + 22 + + 75 * + + 76 + - + 84 + - 96 * - + 80 + + - 29 AS col1
----
13446

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT DISTINCT - + CASE COUNT( * ) WHEN - 50 THEN - - 51 * 24 * + + 18 + 38 / + 55 * + 69 WHEN - - 67 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT - + CASE COUNT ( * ) WHEN - 50 THEN - - 51 * 24 * + + 18 + 38 / + 55 * + 69 WHEN - - 67 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1067
SELECT 92 * CASE - + 50 WHEN - MAX( DISTINCT 18 ) THEN + - 56 * + ( - - COUNT( * ) ) * CAST( NULL AS SIGNED ) + - CASE + CAST( NULL AS SIGNED ) WHEN - + 25 - 72 THEN 79 + 32 ELSE + 12 - + COUNT( * ) END * - 36 WHEN 93 - 75 THEN COUNT( 80 ) + 92 ELSE + 60 * + 71 END - - 58 AS col0
----
391978

skipif mysql # not compatible
query I rowsort label-1067
SELECT 92 * CASE - + 50 WHEN - MAX ( DISTINCT 18 ) THEN + - 56 * + ( - - COUNT ( * ) ) * CAST ( NULL AS INTEGER ) + - CASE + CAST ( NULL AS INTEGER ) WHEN - + 25 - 72 THEN 79 + 32 ELSE + 12 - + COUNT ( * ) END * - 36 WHEN 93 - 75 THEN COUNT ( 80 ) + 92 ELSE + 60 * + 71 END - - 58 AS col0
----
391978

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1068
SELECT + 94 + - - CAST( NULL AS DECIMAL ) + + + CAST( 15 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1068
SELECT + 94 + - - CAST ( NULL AS REAL ) + + + CAST ( 15 AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT ALL - NULLIF ( 65, + + 62 ), 90 AS col2
----
-65
90

query I rowsort
SELECT + ( - + 53 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT - 33 * - 85 * 33 + - COUNT( * ) + - + ( - + ( COUNT( + 43 ) ) ) * 34 - + 77 + + + 40 AS col0
----
92561

skipif mysql # not compatible
query I rowsort label-1071
SELECT - 33 * - 85 * 33 + - COUNT ( * ) + - + ( - + ( COUNT ( + 43 ) ) ) * 34 - + 77 + + + 40 AS col0
----
92561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1072
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) + - AVG ( + 82 ) * - + 64 * - 37 + COUNT( * ) * ( ( 6 ) ) / + + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1072
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) + - AVG ( + 82 ) * - + 64 * - 37 + COUNT ( * ) * ( ( 6 ) ) / + + 80 AS col2
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1075
SELECT ALL + CAST( NULL AS SIGNED ) * + ( - ( - CASE - 51 WHEN + + COUNT( * ) THEN - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + COUNT( * ) + 42 + + 36 WHEN - 93 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( - ( - CASE - 51 WHEN + + COUNT ( * ) THEN - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) + 42 + + 36 WHEN - 93 THEN NULL END ) )
----
NULL

query I rowsort
SELECT 28 + + 95 col1
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1077
SELECT DISTINCT - COUNT( * ) - - 81 + - 78 + + CAST( - 36 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT - COUNT ( * ) - - 81 + - 78 + + CAST ( - 36 AS INTEGER )
----
-34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1079
SELECT 44 + + + CASE 86 WHEN ( 14 ) * 47 * + + COUNT( * ) - - COUNT( * ) THEN NULL ELSE 59 END col2
----
103

skipif mysql # not compatible
query I rowsort label-1079
SELECT 44 + + + CASE 86 WHEN ( 14 ) * 47 * + + COUNT ( * ) - - COUNT ( * ) THEN NULL ELSE 59 END col2
----
103

query II rowsort
SELECT + 33, + 53 AS col0
----
33
53

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

skipif mysql # not compatible
query I rowsort label-1081
SELECT 25 / + 56
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1082
SELECT DISTINCT - CAST( - - COALESCE ( - 54, 31, 18 ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT - CAST ( - - COALESCE ( - 54, 31, 18 ) AS INTEGER )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1083
SELECT DISTINCT - COALESCE ( + 66, + + 46 * + - 33 * - 77 + - 40 - + NULLIF ( - - 20, 31 + - 53 ), + COALESCE ( - NULLIF ( 86, CAST( + 5 AS SIGNED ) ), COUNT( * ) DIV SUM( + 81 ) - 29 ) * ( + 2 ) - + ( + 0 ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - COALESCE ( + 66, + + 46 * + - 33 * - 77 + - 40 - + NULLIF ( - - 20, 31 + - 53 ), + COALESCE ( - NULLIF ( 86, CAST ( + 5 AS INTEGER ) ), COUNT ( * ) / SUM ( + 81 ) - 29 ) * ( + 2 ) - + ( + 0 ) ) col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT DISTINCT - COUNT( DISTINCT 95 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT - COUNT ( DISTINCT 95 ) AS col1
----
-1

query II rowsort
SELECT - 51 AS col0, + 39 AS col1
----
-51
39

query II rowsort
SELECT DISTINCT 5, - 51 * 48 AS col0
----
5
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-1087
SELECT ALL COUNT( * ) AS col1, 62 + - 5 - 14
----
1
43

skipif mysql # not compatible
query II rowsort label-1087
SELECT ALL COUNT ( * ) AS col1, 62 + - 5 - 14
----
1
43

query I rowsort
SELECT ALL + 35 * - - 70 AS col0
----
2450

query I rowsort
SELECT 50 * + 92 * - 83 AS col2
----
-381800

onlyif mysql # aggregate syntax: 
query II rowsort label-1090
SELECT - 18 * + 17 + + ( + + 6 ) * + - 60 * COUNT( * ) AS col1, + 22
----
-666
22

skipif mysql # not compatible
query II rowsort label-1090
SELECT - 18 * + 17 + + ( + + 6 ) * + - 60 * COUNT ( * ) AS col1, + 22
----
-666
22

query I rowsort
SELECT DISTINCT - 0 * - ( + 93 )
----
0

query I rowsort
SELECT ALL 1 + 97 AS col2
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT ALL - 84 + - 63 DIV + + 90 * + 9 + - 83 AS col1
----
-167

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - 84 + - 63 / + + 90 * + 9 + - 83 AS col1
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ALL + - SUM( ALL 10 ) * - 89 - - 42 * 60 AS col1
----
3410

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + - SUM ( ALL 10 ) * - 89 - - 42 * 60 AS col1
----
3410

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL + MIN( - 34 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL + MIN ( - 34 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT 86 + + 30 AS col2
----
116

query I rowsort
SELECT - + 26 * - + 70
----
1820

query I rowsort
SELECT DISTINCT 4 + - 40
----
-36

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1100
SELECT ALL 31 + + 16 * - 91, CASE COUNT( * ) WHEN - 8 + - NULLIF ( - 1, - COUNT( * ) * + 58 + - 31 ) THEN NULL WHEN 32 * - COUNT( * ) / 25 THEN MIN( + 85 ) ELSE NULL END AS col0
----
-1425
NULL

skipif mysql # not compatible
query II rowsort label-1100
SELECT ALL 31 + + 16 * - 91, CASE COUNT ( * ) WHEN - 8 + - NULLIF ( - 1, - COUNT ( * ) * + 58 + - 31 ) THEN NULL WHEN 32 * - COUNT ( * ) / 25 THEN MIN ( + 85 ) ELSE NULL END AS col0
----
-1425
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + COALESCE ( - 78, - 60 * + COUNT( * ) + - COUNT( * ) ) * MAX( + + ( 34 ) ) * 90 * + + COUNT( * ) AS col2
----
-238680

skipif mysql # not compatible
query I rowsort label-1101
SELECT + COALESCE ( - 78, - 60 * + COUNT ( * ) + - COUNT ( * ) ) * MAX ( + + ( 34 ) ) * 90 * + + COUNT ( * ) AS col2
----
-238680

query I rowsort
SELECT + 5 * 59
----
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1103
SELECT ALL 75 / - + CASE + + 86 WHEN - CAST( NULL AS SIGNED ) THEN - - 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL 75 / - + CASE + + 86 WHEN - CAST ( NULL AS INTEGER ) THEN - - 86 END AS col2
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1105
SELECT CASE + 61 WHEN CAST( NULL AS DECIMAL ) + 73 - - 13 THEN - - 89 + - 11 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT CASE + 61 WHEN CAST ( NULL AS REAL ) + 73 - - 13 THEN - - 89 + - 11 END
----
NULL

query I rowsort
SELECT + NULLIF ( - 21, 60 * + - 19 ) AS col1
----
-21

query I rowsort
SELECT NULLIF ( 7, 7 + - CASE + 19 WHEN 0 * - + 71 THEN - 8 WHEN + 65 + - 35 * + 42 THEN NULL ELSE NULL END + 42 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT NULLIF ( + - 18, - + MAX( + - 63 ) ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-1108
SELECT NULLIF ( + - 18, - + MAX ( + - 63 ) ) AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1109
SELECT - ( - 78 ) * + 51 DIV + COUNT( * )
----
3978

skipif mysql # not compatible
query I rowsort label-1109
SELECT - ( - 78 ) * + 51 / + COUNT ( * )
----
3978

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

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

query I rowsort
SELECT DISTINCT - 94 * + 12 AS col1
----
-1128

query II rowsort
SELECT DISTINCT 38 * + 78 AS col1, + 57
----
2964
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT + ( - NULLIF ( - 7, + COUNT( * ) ) ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-1113
SELECT + ( - NULLIF ( - 7, + COUNT ( * ) ) ) AS col2
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT + 79 DIV - 51 col0
----
-1

skipif mysql # not compatible
query I rowsort label-1114
SELECT + 79 / - 51 col0
----
-1

query I rowsort
SELECT - ( 20 ) * 68 * + + 69 * + 2
----
-187680

query I rowsort
SELECT ALL + 31 + - 45 * - ( + 5 ) + + 94
----
350

query I rowsort
SELECT ALL - - 55 + - - 55 + + 20
----
130

query I rowsort
SELECT ALL 30 * + ( + + 24 ) AS col2
----
720

query I rowsort
SELECT DISTINCT 34 + 40 * - 22 AS col2
----
-846

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + COUNT ( * ) + - 82 AS col1
----
-81

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

skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL COUNT ( * ) + + - 45 AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT - 19 * - - 9 - 10 + - - 12 + + + COUNT( DISTINCT + - 47 ) * ( + 34 ) + 68 + + 13
----
-54

skipif mysql # not compatible
query I rowsort label-1122
SELECT - 19 * - - 9 - 10 + - - 12 + + + COUNT ( DISTINCT + - 47 ) * ( + 34 ) + 68 + + 13
----
-54

query I rowsort
SELECT - - 92 + + 22 * 83 AS col2
----
1918

query II rowsort
SELECT DISTINCT + - 0 * - - 37 AS col0, + 4
----
0
4

query I rowsort
SELECT ALL - - 37 + 72 col0
----
109

query I rowsort
SELECT ALL + 95 * - 78 * - 73 AS col0
----
540930

query II rowsort
SELECT - - 89 - - - 51, + 87 AS col2
----
38
87

query I rowsort
SELECT DISTINCT + 78 * + 49 * - - 6 AS col1
----
22932

query I rowsort
SELECT - 3 * + CASE + + 44 WHEN - 62 THEN + 19 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT + COUNT( * ) - - + 26
----
27

skipif mysql # not compatible
query I rowsort label-1130
SELECT + COUNT ( * ) - - + 26
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1131
SELECT 6 DIV 57 * - 55 + + - 57
----
-57

skipif mysql # not compatible
query I rowsort label-1131
SELECT 6 / 57 * - 55 + + - 57
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT MAX( ALL 32 ) * + 45 - + 13
----
1427

skipif mysql # not compatible
query I rowsort label-1132
SELECT MAX ( ALL 32 ) * + 45 - + 13
----
1427

query I rowsort
SELECT - 52 + - 79 + ( - - 39 )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1134
SELECT + 28 DIV - - 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1134
SELECT + 28 / - - 91 AS col2
----
0

query I rowsort
SELECT + 34 * NULLIF ( 94, - 7 ) AS col0
----
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT + 45 + + COUNT( * ) * 42 * + + 4 + 62 * + 79 AS col2
----
5111

skipif mysql # not compatible
query I rowsort label-1136
SELECT + 45 + + COUNT ( * ) * 42 * + + 4 + 62 * + 79 AS col2
----
5111

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

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

query I rowsort
SELECT DISTINCT 57 * + - 42 AS col2
----
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1139
SELECT DISTINCT - NULLIF ( - 87, - COUNT( * ) ) DIV 53 * - MAX( + + ( - 79 ) )
----
79

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - NULLIF ( - 87, - COUNT ( * ) ) / 53 * - MAX ( + + ( - 79 ) )
----
79

query II rowsort
SELECT ALL + 18 col2, - 6
----
18
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1141
SELECT COALESCE ( - 12, - 7 ) DIV + 17 + - 10, COUNT( * ) * + + COUNT( + 83 ) + 40 DIV + COALESCE ( + MAX( DISTINCT + 92 ), 76 + + ( COUNT( * ) ) + - 71, 72 ) AS col2
----
-10
1

skipif mysql # not compatible
query II rowsort label-1141
SELECT COALESCE ( - 12, - 7 ) / + 17 + - 10, COUNT ( * ) * + + COUNT ( + 83 ) + 40 / + COALESCE ( + MAX ( DISTINCT + 92 ), 76 + + ( COUNT ( * ) ) + - 71, 72 ) AS col2
----
-10
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1142
SELECT DISTINCT CAST( - 47 AS SIGNED ) * + 59 AS col2, - 5 AS col1
----
-2773
-5

skipif mysql # not compatible
query II rowsort label-1142
SELECT DISTINCT CAST ( - 47 AS INTEGER ) * + 59 AS col2, - 5 AS col1
----
-2773
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1143
SELECT + ( + 91 ) + + - 9 + - + CAST( + 14 AS SIGNED ) col0, - 60 * + 50 * + + 75 + + 31 * CASE + - 45 WHEN + 78 + + 87 THEN NULL WHEN + 22 THEN 25 ELSE NULL END
----
68
NULL

skipif mysql # not compatible
query II rowsort label-1143
SELECT + ( + 91 ) + + - 9 + - + CAST ( + 14 AS INTEGER ) col0, - 60 * + 50 * + + 75 + + 31 * CASE + - 45 WHEN + 78 + + 87 THEN NULL WHEN + 22 THEN 25 ELSE NULL END
----
68
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1144
SELECT ALL + COALESCE ( + COUNT( * ), - - 65 + 76, + - 91 ), 60 * - - COUNT( 57 ) AS col0
----
1
60

skipif mysql # not compatible
query II rowsort label-1144
SELECT ALL + COALESCE ( + COUNT ( * ), - - 65 + 76, + - 91 ), 60 * - - COUNT ( 57 ) AS col0
----
1
60

query II rowsort
SELECT + ( + 65 ) + 54 + 16 + - + 93 AS col0, - 50 AS col2
----
42
-50

query I rowsort
SELECT ALL 97 * + CASE + 73 WHEN - - 12 THEN NULL WHEN + 13 * 46 - - + 95 THEN - - 93 ELSE + 38 END
----
3686

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

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

query I rowsort
SELECT + ( - - COALESCE ( ( 68 ), + 29 + - 2 ) )
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1150
SELECT COUNT( * ) * 98 + + ( - COALESCE ( - + NULLIF ( + 25, - 21 * + 15 + AVG ( 9 ) + + + 14 * - 54 * + 48 * - + 0 - - 40 - + COALESCE ( 83 + - 65 * 96, COUNT( * ) ) * - 29 + + 47 ), CAST( NULL AS SIGNED ) DIV 36 + + 82, CAST( + 90 AS SIGNED ) + + 83 * - 81 ) ) AS col2
----
123

skipif mysql # not compatible
query I rowsort label-1150
SELECT COUNT ( * ) * 98 + + ( - COALESCE ( - + NULLIF ( + 25, - 21 * + 15 + AVG ( 9 ) + + + 14 * - 54 * + 48 * - + 0 - - 40 - + COALESCE ( 83 + - 65 * 96, COUNT ( * ) ) * - 29 + + 47 ), CAST ( NULL AS INTEGER ) / 36 + + 82, CAST ( + 90 AS INTEGER ) + + 83 * - 81 ) ) AS col2
----
123

query I rowsort
SELECT ALL 43 * - + 62 + - - 53
----
-2613

query I rowsort
SELECT - ( ( + + 59 ) ) + - 16
----
-75

query I rowsort
SELECT ALL 49 * + + 37 + + 80
----
1893

query I rowsort
SELECT DISTINCT - 80 * 10 * - COALESCE ( - 52, + 82 ) * + + 97 + - ( + 50 ) * + + 94 - 61
----
-4039961

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT ALL - CASE + MAX( - - 27 ) WHEN + 73 * + + COUNT( * ) * 90 THEN 20 / - + 1 * + + 91 WHEN - - ( + 38 ) * + ( - + COUNT( * ) ) * - 64 + - - 70 + - AVG ( DISTINCT + 52 ) * 98 THEN 12 WHEN - 38 * COUNT( * ) THEN NULL ELSE NULL END * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL - CASE + MAX ( - - 27 ) WHEN + 73 * + + COUNT ( * ) * 90 THEN 20 / - + 1 * + + 91 WHEN - - ( + 38 ) * + ( - + COUNT ( * ) ) * - 64 + - - 70 + - AVG ( DISTINCT + 52 ) * 98 THEN 12 WHEN - 38 * COUNT ( * ) THEN NULL ELSE NULL END * + 34
----
NULL

query I rowsort
SELECT ALL + 81 + 18 AS col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1157
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) AS col0
----
1

query I rowsort
SELECT ALL - 1 + 54 + 33
----
86

query I rowsort
SELECT 86 * + - 24
----
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1160
SELECT DISTINCT - CAST( + 62 AS SIGNED ) * + 85 * - 88 + - - 36 * + COALESCE ( - 23, - CAST( NULL AS SIGNED ) )
----
462932

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - CAST ( + 62 AS INTEGER ) * + 85 * - 88 + - - 36 * + COALESCE ( - 23, - CAST ( NULL AS INTEGER ) )
----
462932

onlyif mysql # DIV for integer division: 
query I rowsort label-1161
SELECT DISTINCT + 99 - + - 81 DIV 75 + 4 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + 99 - + - 81 / 75 + 4 AS col1
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL - - COUNT( * ) - 13 + COALESCE ( - COUNT( * ), + - CAST( COUNT( * ) AS SIGNED ), + COUNT( * ) + + + ( + 49 ) ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL - - COUNT ( * ) - 13 + COALESCE ( - COUNT ( * ), + - CAST ( COUNT ( * ) AS INTEGER ), + COUNT ( * ) + + + ( + 49 ) ) AS col1
----
-13

query II rowsort
SELECT + 30 * 79 * + - 86 AS col1, 42 AS col1
----
-203820
42

query I rowsort
SELECT 12 * + 75
----
900

query I rowsort
SELECT ALL - 55 * 26 AS col1
----
-1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1166
SELECT COALESCE ( - NULLIF ( CAST( + 80 AS SIGNED ), + 1 ), 48, + - MIN( - - 32 ) ) + 69
----
-11

skipif mysql # not compatible
query I rowsort label-1166
SELECT COALESCE ( - NULLIF ( CAST ( + 80 AS INTEGER ), + 1 ), 48, + - MIN ( - - 32 ) ) + 69
----
-11

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

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

query II rowsort
SELECT ALL - 25 AS col0, + 88 col0
----
-25
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1169
SELECT DISTINCT NULLIF ( + - CAST( NULL AS SIGNED ), - 6 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT NULLIF ( + - CAST ( NULL AS INTEGER ), - 6 ) AS col1
----
NULL

query I rowsort
SELECT 54 + - 13 * - + 53 AS col1
----
743

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL - ( - ( + 93 ) ) * COUNT( ALL 62 )
----
93

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL - ( - ( + 93 ) ) * COUNT ( ALL 62 )
----
93

query I rowsort
SELECT DISTINCT - 21 * - ( + 56 )
----
1176

query I rowsort
SELECT ALL - 12 * + - 5 * + 4
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT 44 * MAX( DISTINCT + 46 )
----
2024

skipif mysql # not compatible
query I rowsort label-1174
SELECT 44 * MAX ( DISTINCT + 46 )
----
2024

query I rowsort
SELECT ALL - 39 * 20 * - 14 * 6 * - 78 AS col2
----
-5110560

onlyif mysql # aggregate syntax: 
query I rowsort label-1176
SELECT DISTINCT 51 + - 51 * COUNT( * ) - - - 24 col2
----
-24

skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT 51 + - 51 * COUNT ( * ) - - - 24 col2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT DISTINCT - ( - 77 ) * 70 + + 77 + + MIN( 65 )
----
5532

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT - ( - 77 ) * 70 + + 77 + + MIN ( 65 )
----
5532

query II rowsort
SELECT ALL 86 + 88, 65 AS col1
----
174
65

onlyif mysql # DIV for integer division: 
query II rowsort label-1179
SELECT + 39 AS col1, 94 + - 63 DIV + - 32
----
39
95

skipif mysql # not compatible
query II rowsort label-1179
SELECT + 39 AS col1, 94 + - 63 / + - 32
----
39
95

query II rowsort
SELECT ALL + 49 + 77 AS col0, - 11
----
126
-11

query II rowsort
SELECT 27 AS col0, ( - 8 ) AS col0
----
27
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1182
SELECT 53 DIV NULLIF ( COALESCE ( - CAST( + COUNT( * ) AS SIGNED ), ( - 58 ) - - MAX( ALL 55 ) * + 99 + AVG ( DISTINCT - 38 ) - - + 32 ), + + 75 ) col1
----
-53

skipif mysql # not compatible
query I rowsort label-1182
SELECT 53 / NULLIF ( COALESCE ( - CAST ( + COUNT ( * ) AS INTEGER ), ( - 58 ) - - MAX ( ALL 55 ) * + 99 + AVG ( DISTINCT - 38 ) - - + 32 ), + + 75 ) col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT MIN( + - 50 ) * - 12 col0
----
600

skipif mysql # not compatible
query I rowsort label-1183
SELECT MIN ( + - 50 ) * - 12 col0
----
600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1184
SELECT ALL 50 + 26 * + CASE 41 WHEN + 11 THEN 56 * 82 + + 6 * 71 - 94 * - 35 WHEN - CAST( NULL AS SIGNED ) THEN COUNT( 80 ) ELSE - 42 + COUNT( ALL 66 ) + - NULLIF ( - COUNT( * ), SUM( ALL - 22 ) ) * SUM( 42 ) * 34 END AS col0
----
36112

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 50 + 26 * + CASE 41 WHEN + 11 THEN 56 * 82 + + 6 * 71 - 94 * - 35 WHEN - CAST ( NULL AS INTEGER ) THEN COUNT ( 80 ) ELSE - 42 + COUNT ( ALL 66 ) + - NULLIF ( - COUNT ( * ), SUM ( ALL - 22 ) ) * SUM ( 42 ) * 34 END AS col0
----
36112

query II rowsort
SELECT 76 col0, + 15 AS col2
----
76
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT 77 * - MIN( DISTINCT 57 ) * + 48 + + - 17 - + + 21
----
-210710

skipif mysql # not compatible
query I rowsort label-1186
SELECT 77 * - MIN ( DISTINCT 57 ) * + 48 + + - 17 - + + 21
----
-210710

onlyif mysql # DIV for integer division: 
query I rowsort label-1187
SELECT ALL + 86 DIV - - NULLIF ( - - ( 87 ), - 8 * 6 * 94 * - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL + 86 / - - NULLIF ( - - ( 87 ), - 8 * 6 * 94 * - 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL 2 + + - ( + 8 ) * - COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL 2 + + - ( + 8 ) * - COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1189
SELECT DISTINCT - + 30 AS col0, + COUNT( * ) + + NULLIF ( - ( 87 ), + - 45 ) AS col1
----
-30
-86

skipif mysql # not compatible
query II rowsort label-1189
SELECT DISTINCT - + 30 AS col0, + COUNT ( * ) + + NULLIF ( - ( 87 ), + - 45 ) AS col1
----
-30
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT COUNT( * ) + - 49 + - ( + + ( + 31 ) ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-1190
SELECT COUNT ( * ) + - 49 + - ( + + ( + 31 ) ) AS col0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT 52 * - 18 + - 80 * + COUNT( * ) * + + 92 AS col0
----
-8296

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT 52 * - 18 + - 80 * + COUNT ( * ) * + + 92 AS col0
----
-8296

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT - 22 + 56 + 98 - + CASE ( + - ( AVG ( DISTINCT + 17 ) ) ) WHEN COUNT( * ) + - 10 THEN + - 39 / - 57 WHEN + 14 * + 5 + + 7 / 88 * 16 + COUNT( DISTINCT 64 ) THEN NULL END + - 45 / 31
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT - 22 + 56 + 98 - + CASE ( + - ( AVG ( DISTINCT + 17 ) ) ) WHEN COUNT ( * ) + - 10 THEN + - 39 / - 57 WHEN + 14 * + 5 + + 7 / 88 * 16 + COUNT ( DISTINCT 64 ) THEN NULL END + - 45 / 31
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1194
SELECT ALL - ( - + MAX( ALL - - CAST( NULL AS SIGNED ) ) ) - CAST( - 27 AS DECIMAL ) + ( 62 ) + - 87 + - 6 * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL - ( - + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) ) - CAST ( - 27 AS REAL ) + ( 62 ) + - 87 + - 6 * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1195
SELECT DISTINCT 19 AS col1, CASE 41 WHEN SUM( DISTINCT - 90 ) + - 75 * + + CASE - + ( 65 ) WHEN + 84 + - - COUNT( * ) + 51 THEN NULL WHEN + 32 THEN - 22 END + + - 67 THEN - 55 WHEN - 63 + - 28 THEN NULL ELSE + 25 END
----
19
25

skipif mysql # not compatible
query II rowsort label-1195
SELECT DISTINCT 19 AS col1, CASE 41 WHEN SUM ( DISTINCT - 90 ) + - 75 * + + CASE - + ( 65 ) WHEN + 84 + - - COUNT ( * ) + 51 THEN NULL WHEN + 32 THEN - 22 END + + - 67 THEN - 55 WHEN - 63 + - 28 THEN NULL ELSE + 25 END
----
19
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1196
SELECT DISTINCT MIN( 94 ), - 43 - - 35 AS col2
----
94
-8

skipif mysql # not compatible
query II rowsort label-1196
SELECT DISTINCT MIN ( 94 ), - 43 - - 35 AS col2
----
94
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1197
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, 99 AS col2
----
NULL
99

skipif mysql # not compatible
query II rowsort label-1197
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, 99 AS col2
----
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1198
SELECT - - NULLIF ( MIN( ALL + 0 ), - 72 ) AS col0, + 47
----
0
47

skipif mysql # not compatible
query II rowsort label-1198
SELECT - - NULLIF ( MIN ( ALL + 0 ), - 72 ) AS col0, + 47
----
0
47

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

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

query II rowsort
SELECT DISTINCT + 24 AS col0, 67 * - 90 * + 98 + - + 89 AS col2
----
24
-591029

query I rowsort
SELECT + 61 * - 60 AS col1
----
-3660

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT COUNT( * ) * 79 + + 95
----
174

skipif mysql # not compatible
query I rowsort label-1202
SELECT COUNT ( * ) * 79 + + 95
----
174

query I rowsort
SELECT 34 + - 62 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query III rowsort label-1204
SELECT - MAX( - 25 ) AS col0, + COUNT( * ) AS col2, + 3 + - 34 AS col1
----
25
1
-31

skipif mysql # not compatible
query III rowsort label-1204
SELECT - MAX ( - 25 ) AS col0, + COUNT ( * ) AS col2, + 3 + - 34 AS col1
----
25
1
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT 69 + - + 71 * + + 95 * - 89 * + COUNT( * ) + - 79 + + + 55 AS col2
----
600350

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT 69 + - + 71 * + + 95 * - 89 * + COUNT ( * ) + - 79 + + + 55 AS col2
----
600350

query I rowsort
SELECT DISTINCT - 25 + ( + 18 ) * + - 2
----
-61

query I rowsort
SELECT ALL 87 * - 6 AS col2
----
-522

query II rowsort
SELECT 53 * + 50, + 35 * + 24 AS col2
----
2650
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1209
SELECT ALL - 7 + CAST( + 26 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL - 7 + CAST ( + 26 AS INTEGER )
----
19

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

skipif mysql # not compatible
query I rowsort label-1210
SELECT CAST ( NULL AS INTEGER ) + - 82 * - ( - 23 )
----
NULL

query I rowsort
SELECT ALL 91 * - 82 + + 21 - 30 AS col0
----
-7471

query I rowsort
SELECT 59 + 90
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL + 72 * - CAST( NULL AS SIGNED ) * 61 * - - 32 * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL + 72 * - CAST ( NULL AS INTEGER ) * 61 * - - 32 * 13
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT DISTINCT 66 * - ( + + CAST( NULL AS SIGNED ) ) / - - 81 * - + 81 + - 72 + COALESCE ( 91, + + COUNT( * ), 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT DISTINCT 66 * - ( + + CAST ( NULL AS INTEGER ) ) / - - 81 * - + 81 + - 72 + COALESCE ( 91, + + COUNT ( * ), 71 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT - CASE - 3 WHEN + + 23 THEN NULL WHEN - + 97 THEN - COUNT( * ) WHEN - SUM( 1 ) * - AVG ( DISTINCT + 67 ) * 35 THEN - 24 END + - COALESCE ( - + 67, 68 * + 60 / + - COUNT( * ), 29 - 40 / COUNT( * ), ( - 87 ) ) + 50 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1215
SELECT - CASE - 3 WHEN + + 23 THEN NULL WHEN - + 97 THEN - COUNT ( * ) WHEN - SUM ( 1 ) * - AVG ( DISTINCT + 67 ) * 35 THEN - 24 END + - COALESCE ( - + 67, 68 * + 60 / + - COUNT ( * ), 29 - 40 / COUNT ( * ), ( - 87 ) ) + 50 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1216
SELECT - ( CAST( CASE - 13 WHEN ( - ( - + 13 ) ) THEN - 19 END AS SIGNED ) ) * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1216
SELECT - ( CAST ( CASE - 13 WHEN ( - ( - + 13 ) ) THEN - 19 END AS INTEGER ) ) * 93
----
NULL

query I rowsort
SELECT ALL + 73 * - + 95
----
-6935

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1218
SELECT - + 54 + - - 15 AS col0, + MAX( + CAST( NULL AS SIGNED ) )
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-1218
SELECT - + 54 + - - 15 AS col0, + MAX ( + CAST ( NULL AS INTEGER ) )
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT - 15 * - - CASE 80 WHEN - 90 * + 0 + - 91 + NULLIF ( + 20, 75 ) THEN 61 + + 10 ELSE NULL END + - - COUNT( * ) + - CASE - 73 WHEN - 70 - + 33 + + 98 + MIN( + 82 ) THEN NULL ELSE + 71 - + 43 END * - 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1219
SELECT - 15 * - - CASE 80 WHEN - 90 * + 0 + - 91 + NULLIF ( + 20, 75 ) THEN 61 + + 10 ELSE NULL END + - - COUNT ( * ) + - CASE - 73 WHEN - 70 - + 33 + + 98 + MIN ( + 82 ) THEN NULL ELSE + 71 - + 43 END * - 72 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1220
SELECT + 85 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT - 64 * + - CASE 65 WHEN - - COUNT( - 99 ) THEN - 97 * + 54 * CAST( 17 AS SIGNED ) * - COUNT( DISTINCT - 42 ) + - ( SUM( DISTINCT ( + + 99 ) ) ) ELSE NULL END * NULLIF ( CASE 23 WHEN + COUNT( * ) THEN 90 END, 47 ) + - 2 * - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT - 64 * + - CASE 65 WHEN - - COUNT ( - 99 ) THEN - 97 * + 54 * CAST ( 17 AS INTEGER ) * - COUNT ( DISTINCT - 42 ) + - ( SUM ( DISTINCT ( + + 99 ) ) ) ELSE NULL END * NULLIF ( CASE 23 WHEN + COUNT ( * ) THEN 90 END, 47 ) + - 2 * - 51
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1222
SELECT - 42 DIV + 59 + + COUNT( * ) DIV + - 56 * COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1222
SELECT - 42 / + 59 + + COUNT ( * ) / + - 56 * COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL 82 * 39
----
3198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT + - 26 DIV COUNT( * ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT + - 26 / COUNT ( * ) AS col0
----
-26

query I rowsort
SELECT DISTINCT + ( + 1 ) * - 79 col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT DISTINCT + 80 DIV + 73 + COALESCE ( - - 80, + + 52 ) * 63
----
5041

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + 80 / + 73 + COALESCE ( - - 80, + + 52 ) * 63
----
5041

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL COUNT( DISTINCT - 57 ) * - 24 + - 39 + CASE + 58 WHEN 66 * - COUNT( * ) * - 29 THEN NULL WHEN + 95 * - - 92 THEN - 72 END * - + NULLIF ( 25, - 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL COUNT ( DISTINCT - 57 ) * - 24 + - 39 + CASE + 58 WHEN 66 * - COUNT ( * ) * - 29 THEN NULL WHEN + 95 * - - 92 THEN - 72 END * - + NULLIF ( 25, - 77 )
----
NULL

query I rowsort
SELECT - - 83 - 76
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT - - 66 * + 78 * + - NULLIF ( + 42, + COUNT( * ) ) * - 1 AS col2
----
216216

skipif mysql # not compatible
query I rowsort label-1229
SELECT - - 66 * + 78 * + - NULLIF ( + 42, + COUNT ( * ) ) * - 1 AS col2
----
216216

query I rowsort
SELECT + 1 + 35 + - + ( + 61 ) AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1231
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2, - COALESCE ( CASE - - 75 WHEN + 92 THEN NULL WHEN 76 THEN + 3 DIV - CAST( + 92 AS SIGNED ) + ( - 75 ) END, - COUNT( * ) ) + - ( + - ( - + NULLIF ( + 79, - 25 * - 96 + CAST( NULL AS SIGNED ) ) ) )
----
1
-78

skipif mysql # not compatible
query II rowsort label-1231
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2, - COALESCE ( CASE - - 75 WHEN + 92 THEN NULL WHEN 76 THEN + 3 / - CAST ( + 92 AS INTEGER ) + ( - 75 ) END, - COUNT ( * ) ) + - ( + - ( - + NULLIF ( + 79, - 25 * - 96 + CAST ( NULL AS INTEGER ) ) ) )
----
1
-78

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

query I rowsort
SELECT + 67 + + - 62 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1234
SELECT DISTINCT + + COUNT( * ) * COUNT( * ) + 78, - 66 DIV - + COUNT( * ) + + 90 * - 9 col0
----
79
-744

skipif mysql # not compatible
query II rowsort label-1234
SELECT DISTINCT + + COUNT ( * ) * COUNT ( * ) + 78, - 66 / - + COUNT ( * ) + + 90 * - 9 col0
----
79
-744

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL 17 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL 17 + COUNT ( * )
----
18

query I rowsort
SELECT + 22 + 12 + - 79 col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT ALL 28 + - - COALESCE ( + ( CAST( + + 68 AS SIGNED ) ), + + ( - 97 ), + 39 ) * ( - + 38 ) AS col1
----
-2556

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL 28 + - - COALESCE ( + ( CAST ( + + 68 AS INTEGER ) ), + + ( - 97 ), + 39 ) * ( - + 38 ) AS col1
----
-2556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1238
SELECT + MIN( DISTINCT - - 67 ) DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-1238
SELECT + MIN ( DISTINCT - - 67 ) / - 99
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT ALL + 76 + + 30 DIV + 14 - + 33 col0
----
45

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + 76 + + 30 / + 14 - + 33 col0
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT DISTINCT 39 + - 76 * - COUNT( * )
----
115

skipif mysql # not compatible
query I rowsort label-1241
SELECT DISTINCT 39 + - 76 * - COUNT ( * )
----
115

query II rowsort
SELECT 96 AS col0, - 70 * + 74
----
96
-5180

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

skipif mysql # not compatible
query I rowsort label-1243
SELECT + MIN ( DISTINCT + - 57 ) / ( + COUNT ( * ) )
----
-57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1245
SELECT - COALESCE ( - 33, + + 27, - + 49 DIV - CASE + - 94 WHEN + 38 THEN NULL WHEN 23 THEN 83 ELSE NULL END * + - 78 )
----
33

skipif mysql # not compatible
query I rowsort label-1245
SELECT - COALESCE ( - 33, + + 27, - + 49 / - CASE + - 94 WHEN + 38 THEN NULL WHEN 23 THEN 83 ELSE NULL END * + - 78 )
----
33

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1247
SELECT DISTINCT 9 * + COALESCE ( + COUNT( * ), - 29 + - 98, 83 + - 75 + + 37 * - 62 * SUM( 73 ) ) col0, - CASE + 59 WHEN - + 64 THEN 4 ELSE NULL END
----
9
NULL

skipif mysql # not compatible
query II rowsort label-1247
SELECT DISTINCT 9 * + COALESCE ( + COUNT ( * ), - 29 + - 98, 83 + - 75 + + 37 * - 62 * SUM ( 73 ) ) col0, - CASE + 59 WHEN - + 64 THEN 4 ELSE NULL END
----
9
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1248
SELECT DISTINCT - 4 * - COUNT( * ) * + - 63 DIV + 51
----
-4

skipif mysql # not compatible
query I rowsort label-1248
SELECT DISTINCT - 4 * - COUNT ( * ) * + - 63 / + 51
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1249
SELECT DISTINCT 80 + MIN( ALL 11 ) AS col0, CAST( + SUM( - 3 ) AS SIGNED )
----
91
-3

skipif mysql # not compatible
query II rowsort label-1249
SELECT DISTINCT 80 + MIN ( ALL 11 ) AS col0, CAST ( + SUM ( - 3 ) AS INTEGER )
----
91
-3

query I rowsort
SELECT ALL 38 + - + 58 - 25 * + + 10 * 29
----
-7270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1251
SELECT CAST( + 43 AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1251
SELECT CAST ( + 43 AS INTEGER ) AS col2
----
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT DISTINCT 32 * COUNT( * ) * + 36 * + + 1
----
1152

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT 32 * COUNT ( * ) * + 36 * + + 1
----
1152

onlyif mysql # DIV for integer division: 
query I rowsort label-1254
SELECT ALL + 52 DIV 96 - 6 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-1254
SELECT ALL + 52 / 96 - 6 AS col0
----
-6

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

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

query II rowsort
SELECT + 55 AS col1, - 62
----
55
-62

query I rowsort
SELECT - 79 * + CASE - 42 WHEN 92 * + 97 * - 64 THEN + 72 WHEN + 96 THEN NULL END * - + 38
----
NULL

query I rowsort
SELECT ALL - 89 * + 38 - - 54
----
-3328

query I rowsort
SELECT - 13 * + ( 38 )
----
-494

query I rowsort
SELECT - 83 * 53 - + 85 + - 89 * - 27 * + 7
----
12337

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1261
SELECT DISTINCT + + 91 * + 48 + 94 + - 63 + + + 93 DIV COUNT( + - 65 ) AS col0
----
4492

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + + 91 * + 48 + 94 + - 63 + + + 93 / COUNT ( + - 65 ) AS col0
----
4492

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL + - CASE - 91 WHEN + + 54 THEN + COUNT( ALL - 58 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + - CASE - 91 WHEN + + 54 THEN + COUNT ( ALL - 58 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL + 78 * + CASE + - 43 WHEN + 0 * + COUNT( * ) * + COUNT( * ) + - CAST( + + 57 AS SIGNED ) * - COUNT( * ) THEN - 18 + 79 END + - + MAX( DISTINCT - 48 ) + - MAX( DISTINCT - 99 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL + 78 * + CASE + - 43 WHEN + 0 * + COUNT ( * ) * + COUNT ( * ) + - CAST ( + + 57 AS INTEGER ) * - COUNT ( * ) THEN - 18 + 79 END + - + MAX ( DISTINCT - 48 ) + - MAX ( DISTINCT - 99 ) col1
----
NULL

query I rowsort
SELECT - 40 - 85 AS col1
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1265
SELECT ALL + 67 * NULLIF ( - ( 0 ), - 66 * ( + - 2 ) ) * - 27 * + - 68 DIV 62 + 1 + - NULLIF ( 68, 62 * - 50 ) + - 1 * - + MAX( - 2 ) DIV + COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-1265
SELECT ALL + 67 * NULLIF ( - ( 0 ), - 66 * ( + - 2 ) ) * - 27 * + - 68 / 62 + 1 + - NULLIF ( 68, 62 * - 50 ) + - 1 * - + MAX ( - 2 ) / + COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + + COALESCE ( - 74, - - 81 * + - 89, + 18 ) * + - COALESCE ( 31, - COUNT( * ) + + - 94 - - 93 ) * + - 60 AS col2
----
-137640

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + + COALESCE ( - 74, - - 81 * + - 89, + 18 ) * + - COALESCE ( 31, - COUNT ( * ) + + - 94 - - 93 ) * + - 60 AS col2
----
-137640

query II rowsort
SELECT DISTINCT + - 99 * - 39 * 25, 89 * + 11 AS col1
----
96525
979

query II rowsort
SELECT DISTINCT + - 98, 70 col0
----
-98
70

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT ALL + 18 * - MAX( DISTINCT + 36 ) AS col1, 56 AS col2
----
-648
56

skipif mysql # not compatible
query II rowsort label-1269
SELECT ALL + 18 * - MAX ( DISTINCT + 36 ) AS col1, 56 AS col2
----
-648
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1270
SELECT - + 12 + + MAX( ALL + 57 ) + + - CAST( 47 AS SIGNED ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1270
SELECT - + 12 + + MAX ( ALL + 57 ) + + - CAST ( 47 AS INTEGER ) AS col1
----
-2

query I rowsort
SELECT + + ( 97 ) AS col1
----
97

query II rowsort
SELECT - ( + + 28 ) * - + 10 * + - 6 AS col1, ( + 59 ) AS col1
----
-1680
59

onlyif mysql # DIV for integer division: 
query I rowsort label-1273
SELECT - - 37 + - - 77 * 29 DIV + - 58
----
-1

skipif mysql # not compatible
query I rowsort label-1273
SELECT - - 37 + - - 77 * 29 / + - 58
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1274
SELECT - 90 - COALESCE ( - MAX( 70 ), 24 + SUM( - - 66 ) * - 1 - 35 + - 22 + 61 DIV 22 DIV 74 DIV - 98 DIV - + 59, 90 + CAST( NULL AS SIGNED ), + 5 )
----
-20

skipif mysql # not compatible
query I rowsort label-1274
SELECT - 90 - COALESCE ( - MAX ( 70 ), 24 + SUM ( - - 66 ) * - 1 - 35 + - 22 + 61 / 22 / 74 / - 98 / - + 59, 90 + CAST ( NULL AS INTEGER ), + 5 )
----
-20

query I rowsort
SELECT - 29 * - 22 AS col0
----
638

query II rowsort
SELECT + ( + + 71 ) - 48, - 51 AS col2
----
23
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT - + MAX( ( - + 67 ) ) * - 32
----
-2144

skipif mysql # not compatible
query I rowsort label-1277
SELECT - + MAX ( ( - + 67 ) ) * - 32
----
-2144

query I rowsort
SELECT ALL + NULLIF ( - - 88, - - 2 ) * - 17 + + 62 AS col0
----
-1434

query I rowsort
SELECT ALL - 85 * + 71 AS col1
----
-6035

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

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

query II rowsort
SELECT ALL 69 * + + 69, + 60 AS col2
----
4761
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT SUM( DISTINCT - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-1282
SELECT SUM ( DISTINCT - 7 ) AS col2
----
-7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT DISTINCT + 8 + 20 + - 26 / - CASE 51 WHEN - + 35 * COUNT( * ) THEN 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT + 8 + 20 + - 26 / - CASE 51 WHEN - + 35 * COUNT ( * ) THEN 53 END
----
NULL

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

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

query I rowsort
SELECT ALL 75 + + + 43 AS col1
----
118

query I rowsort
SELECT ALL 33 * - + 34 * + - 9 * + ( 66 ) AS col0
----
666468

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - COALESCE ( + ( + + 68 ), - 43 * ( - COUNT( * ) ), + 44 )
----
-68

skipif mysql # not compatible
query I rowsort label-1288
SELECT - COALESCE ( + ( + + 68 ), - 43 * ( - COUNT ( * ) ), + 44 )
----
-68

query I rowsort
SELECT ALL NULLIF ( 65, - 78 ) - - + 94
----
159

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1291
SELECT CAST( + COUNT( * ) AS SIGNED ) * - MIN( DISTINCT + + 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-1291
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - MIN ( DISTINCT + + 30 )
----
-30

query I rowsort
SELECT 68 + + 21 col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1293
SELECT ALL 85 DIV 6, 58 * + MAX( + 49 ) AS col1
----
14
2842

skipif mysql # not compatible
query II rowsort label-1293
SELECT ALL 85 / 6, 58 * + MAX ( + 49 ) AS col1
----
14
2842

query I rowsort
SELECT - 32 * - 5 + 55 - + - 78 * - 95
----
-7195

onlyif mysql # aggregate syntax: 
query II rowsort label-1295
SELECT ALL 61 - 94 * - 50 * - COUNT( * ) AS col2, + 35 AS col0
----
-4639
35

skipif mysql # not compatible
query II rowsort label-1295
SELECT ALL 61 - 94 * - 50 * - COUNT ( * ) AS col2, + 35 AS col0
----
-4639
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1296
SELECT ALL 20 * - COUNT( * ) AS col1, + 43
----
-20
43

skipif mysql # not compatible
query II rowsort label-1296
SELECT ALL 20 * - COUNT ( * ) AS col1, + 43
----
-20
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1297
SELECT 55 DIV 57 * - 99 * 79 + + - 72 * MIN( ALL + 66 ), - 69 AS col0
----
-4752
-69

skipif mysql # not compatible
query II rowsort label-1297
SELECT 55 / 57 * - 99 * 79 + + - 72 * MIN ( ALL + 66 ), - 69 AS col0
----
-4752
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT + MIN( DISTINCT + NULLIF ( 11, + 9 ) ) + - 91
----
-80

skipif mysql # not compatible
query I rowsort label-1298
SELECT + MIN ( DISTINCT + NULLIF ( 11, + 9 ) ) + - 91
----
-80

query I rowsort
SELECT DISTINCT - 40 * + + ( + - 46 ) AS col2
----
1840

query I rowsort
SELECT ALL - + 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT - - ( 12 ) * - + 89 + - 78 + + 15 - COALESCE ( + + 26, + COUNT( * ) ) + - 83 - + MAX( + 94 ) + 82 * - 40
----
-4614

skipif mysql # not compatible
query I rowsort label-1301
SELECT - - ( 12 ) * - + 89 + - 78 + + 15 - COALESCE ( + + 26, + COUNT ( * ) ) + - 83 - + MAX ( + 94 ) + 82 * - 40
----
-4614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1302
SELECT ALL + COUNT( * ) * 41 DIV CAST( - MAX( + 98 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL + COUNT ( * ) * 41 / CAST ( - MAX ( + 98 ) AS INTEGER )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1303
SELECT - 93 * + - 77 * - COUNT( * ) * + + COUNT( * ) + + + CAST( 39 AS SIGNED )
----
-7122

skipif mysql # not compatible
query I rowsort label-1303
SELECT - 93 * + - 77 * - COUNT ( * ) * + + COUNT ( * ) + + + CAST ( 39 AS INTEGER )
----
-7122

onlyif mysql # DIV for integer division: 
query I rowsort label-1304
SELECT DISTINCT - + COALESCE ( + 83, 84, 41, + 19 ) DIV - - 17
----
-4

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT - + COALESCE ( + 83, 84, 41, + 19 ) / - - 17
----
-4

query I rowsort
SELECT 56 + + 25
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1306
SELECT - COUNT( * ) * - + 82 * + CAST( + ( + COUNT( * ) ) AS SIGNED ) * + + 33
----
2706

skipif mysql # not compatible
query I rowsort label-1306
SELECT - COUNT ( * ) * - + 82 * + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * + + 33
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT - COALESCE ( COUNT( * ), + 58 ) * 56 * + 3 + + - 64 AS col1
----
-232

skipif mysql # not compatible
query I rowsort label-1307
SELECT - COALESCE ( COUNT ( * ), + 58 ) * 56 * + 3 + + - 64 AS col1
----
-232

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT + + CASE + 0 WHEN - 29 + - + 3 THEN + 83 + 19 WHEN - - 11 * CASE WHEN NOT - ( + 18 ) IS NOT NULL THEN - COUNT( * ) END THEN + 42 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1308
SELECT + + CASE + 0 WHEN - 29 + - + 3 THEN + 83 + 19 WHEN - - 11 * CASE WHEN NOT - ( + 18 ) IS NOT NULL THEN - COUNT ( * ) END THEN + 42 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 32 * - + ( - + 61 ) - 6, - 66 AS col1
----
1946
-66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT ALL + - 21 + 54 + - 32 - + 59 + - 30 * - + CAST( - 70 AS SIGNED )
----
-2158

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL + - 21 + 54 + - 32 - + 59 + - 30 * - + CAST ( - 70 AS INTEGER )
----
-2158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1312
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) - - 63 * CASE CAST( + 31 AS SIGNED ) WHEN - COUNT( * ) THEN COUNT( * ) * + 4 WHEN + NULLIF ( + 98, + CAST( NULL AS SIGNED ) / - - AVG ( - 42 ) ) THEN NULL ELSE NULL END * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1312
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) - - 63 * CASE CAST ( + 31 AS INTEGER ) WHEN - COUNT ( * ) THEN COUNT ( * ) * + 4 WHEN + NULLIF ( + 98, + CAST ( NULL AS INTEGER ) / - - AVG ( - 42 ) ) THEN NULL ELSE NULL END * - 60
----
NULL

query I rowsort
SELECT 12 + + 37 * - 18
----
-654

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT DISTINCT - + ( + 76 ) + 53 * + 71 + + SUM( ALL + 59 ) col2
----
3746

skipif mysql # not compatible
query I rowsort label-1314
SELECT DISTINCT - + ( + 76 ) + 53 * + 71 + + SUM ( ALL + 59 ) col2
----
3746

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

query II rowsort
SELECT ALL + - 92 + - 28 AS col1, 38
----
-120
38

query II rowsort
SELECT ALL - 45 + 0, + 33 AS col0
----
-45
33

query II rowsort
SELECT ( 88 ) - 61 AS col0, + 10
----
27
10

query II rowsort
SELECT - 67, 35 col1
----
-67
35

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1321
SELECT 88 + + 20 * + - COUNT( * ), - 72 + + COALESCE ( 66, - - 83 ) AS col0
----
68
-6

skipif mysql # not compatible
query II rowsort label-1321
SELECT 88 + + 20 * + - COUNT ( * ), - 72 + + COALESCE ( 66, - - 83 ) AS col0
----
68
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT 21 - COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 21 - COUNT ( * ) AS col2
----
20

query I rowsort
SELECT DISTINCT 39 * + 71
----
2769

query I rowsort
SELECT DISTINCT - 32 - + - 43 * 25
----
1043

query I rowsort
SELECT 97 * + - 41 AS col1
----
-3977

query I rowsort
SELECT 4 + 55 * - 10 * 48 * 18 AS col1
----
-475196

query I rowsort
SELECT DISTINCT 79 * 97
----
7663

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1330
SELECT SUM( DISTINCT 92 ) + 78 AS col2, 98
----
170
98

skipif mysql # not compatible
query II rowsort label-1330
SELECT SUM ( DISTINCT 92 ) + 78 AS col2, 98
----
170
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1331
SELECT + + NULLIF ( CASE 48 WHEN + COUNT( * ) + + CAST( + SUM( DISTINCT - - 38 ) AS DECIMAL ) - COUNT( * ) + - SUM( + 76 ) - COALESCE ( + 85, - ( - 59 ) - + 17 ) + - 27 THEN + 73 END, COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1331
SELECT + + NULLIF ( CASE 48 WHEN + COUNT ( * ) + + CAST ( + SUM ( DISTINCT - - 38 ) AS REAL ) - COUNT ( * ) + - SUM ( + 76 ) - COALESCE ( + 85, - ( - 59 ) - + 17 ) + - 27 THEN + 73 END, COUNT ( * ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 19 + 38 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT 96 * + + 65 + - SUM( - 20 )
----
6260

skipif mysql # not compatible
query I rowsort label-1333
SELECT 96 * + + 65 + - SUM ( - 20 )
----
6260

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

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

query I rowsort
SELECT + - ( - 44 ) col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT DISTINCT COUNT( * ) + - - 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT COUNT ( * ) + - - 1 AS col1
----
2

query I rowsort
SELECT ALL + 10 + + 37
----
47

query I rowsort
SELECT ALL - 35 + + 43
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1339
SELECT + 73 DIV + 85 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1339
SELECT + 73 / + 85 - + + COUNT ( * )
----
-1

query I rowsort
SELECT DISTINCT 3 + - 25
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT + SUM( DISTINCT + - 99 ) * + - 26 + + + 1
----
2575

skipif mysql # not compatible
query I rowsort label-1341
SELECT + SUM ( DISTINCT + - 99 ) * + - 26 + + + 1
----
2575

query I rowsort
SELECT ALL ( 70 ) + 93
----
163

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1343
SELECT DISTINCT - CAST( NULL AS SIGNED ), CAST( NULL AS DECIMAL ) * - - 67
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1343
SELECT DISTINCT - CAST ( NULL AS INTEGER ), CAST ( NULL AS REAL ) * - - 67
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT - 5 + - 93 + + 38 + - 4 DIV - 10 + - 53 AS col0
----
-113

skipif mysql # not compatible
query I rowsort label-1344
SELECT - 5 + - 93 + + 38 + - 4 / - 10 + - 53 AS col0
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT 88 * + - CAST( NULL AS SIGNED ) * 65 * 1 - + - ( + + 66 ) - 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT 88 * + - CAST ( NULL AS INTEGER ) * 65 * 1 - + - ( + + 66 ) - 70 AS col1
----
NULL

query II rowsort
SELECT + 12 AS col2, + 6
----
12
6

query I rowsort
SELECT 82 - + + 58 + + + 95 AS col0
----
119

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

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

query I rowsort
SELECT ALL - 63 - + 34 * 87
----
-3021

query I rowsort
SELECT 63 * + 96 * + 44
----
266112

query II rowsort
SELECT ALL 21 AS col0, + ( 39 ) - - 15 AS col2
----
21
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT - COALESCE ( - + COUNT( * ), ( - 71 ) * - 64, MIN( ALL 71 ) - - 55 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1352
SELECT - COALESCE ( - + COUNT ( * ), ( - 71 ) * - 64, MIN ( ALL 71 ) - - 55 ) AS col0
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT - 68 + + - COUNT( * ) + - COUNT( * ) - + 84 * + COUNT( * ) * + COUNT( * ) AS col0
----
-154

skipif mysql # not compatible
query I rowsort label-1354
SELECT - 68 + + - COUNT ( * ) + - COUNT ( * ) - + 84 * + COUNT ( * ) * + COUNT ( * ) AS col0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT - COUNT( + + 1 ) * - ( + + 96 ) - - + 15 + - - 87 + + + 20 + + 34 * COUNT( * ) + - 4 AS col2
----
248

skipif mysql # not compatible
query I rowsort label-1355
SELECT - COUNT ( + + 1 ) * - ( + + 96 ) - - + 15 + - - 87 + + + 20 + + 34 * COUNT ( * ) + - 4 AS col2
----
248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1356
SELECT ALL COALESCE ( - 8, - 85, - + 10 + 37 DIV COUNT( * ) DIV - + 6 + 67 - + 12 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL COALESCE ( - 8, - 85, - + 10 + 37 / COUNT ( * ) / - + 6 + 67 - + 12 ) AS col2
----
-8

query I rowsort
SELECT + ( - 68 ) + - 64 * 35 * 80 AS col2
----
-179268

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1358
SELECT 25 AS col0, + 79 + + - 84 * 5 + + + CASE WHEN NOT 42 = NULL THEN + + 42 END * - 46 + + 91 * - NULLIF ( - CAST( NULL AS SIGNED ), + - 92 ) * - - 4 - + ( - + CASE - 25 WHEN + 38 THEN + 41 ELSE + ( + - 9 ) END ) - ( 85 ) * + 72 AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-1358
SELECT 25 AS col0, + 79 + + - 84 * 5 + + + CASE WHEN NOT 42 = NULL THEN + + 42 END * - 46 + + 91 * - NULLIF ( - CAST ( NULL AS INTEGER ), + - 92 ) * - - 4 - + ( - + CASE - 25 WHEN + 38 THEN + 41 ELSE + ( + - 9 ) END ) - ( 85 ) * + 72 AS col1
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT MAX( DISTINCT - 8 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT MAX ( DISTINCT - 8 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT + COUNT( ALL + - 99 ) + - 46
----
-45

skipif mysql # not compatible
query I rowsort label-1360
SELECT + COUNT ( ALL + - 99 ) + - 46
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-1361
SELECT - 44, 61 DIV + - 65 col2
----
-44
0

skipif mysql # not compatible
query II rowsort label-1361
SELECT - 44, 61 / + - 65 col2
----
-44
0

query II rowsort
SELECT DISTINCT 1, 92 AS col0
----
1
92

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

skipif mysql # not compatible
query I rowsort label-1363
SELECT ALL MAX ( - 57 )
----
-57

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT DISTINCT + 83 DIV - 8
----
-10

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + 83 / - 8
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1366
SELECT ALL COALESCE ( 45, - 95 + 11 DIV 6 * - COUNT( * ) ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-1366
SELECT ALL COALESCE ( 45, - 95 + 11 / 6 * - COUNT ( * ) ) AS col0
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1367
SELECT - 96 + - 81 + - ( + CAST( NULL AS DECIMAL ) ) * + SUM( DISTINCT + 33 ) * - 68 + - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1367
SELECT - 96 + - 81 + - ( + CAST ( NULL AS REAL ) ) * + SUM ( DISTINCT + 33 ) * - 68 + - 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1368
SELECT ALL - 56 + + 94 + CAST( NULL AS SIGNED ) * - + 29 * + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - 56 + + 94 + CAST ( NULL AS INTEGER ) * - + 29 * + 8
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL COUNT( * ) * - 79 + 58 * + 73 * + 38
----
160813

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL COUNT ( * ) * - 79 + 58 * + 73 * + 38
----
160813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT - 6 + - 72 + + - 32 + + CAST( + 66 AS SIGNED ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 6 + - 72 + + - 32 + + CAST ( + 66 AS INTEGER ) AS col2
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - - COUNT( * ) + + 44 AS col1
----
45

skipif mysql # not compatible
query I rowsort label-1372
SELECT - - COUNT ( * ) + + 44 AS col1
----
45

onlyif mysql # aggregate syntax: 
query III rowsort label-1373
SELECT 79, - COUNT( * ) AS col2, + 36 * - COUNT( * ) AS col2
----
79
-1
-36

skipif mysql # not compatible
query III rowsort label-1373
SELECT 79, - COUNT ( * ) AS col2, + 36 * - COUNT ( * ) AS col2
----
79
-1
-36

query II rowsort
SELECT ALL + + 70 AS col0, 59 AS col2
----
70
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT - 33 * - 20 + - COUNT( * )
----
659

skipif mysql # not compatible
query I rowsort label-1375
SELECT - 33 * - 20 + - COUNT ( * )
----
659

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1377
SELECT + 95 AS col0, + 47 * + 33 + + - NULLIF ( - - 99, - + 69 + + MAX( ALL + 24 ) ) AS col1
----
95
1452

skipif mysql # not compatible
query II rowsort label-1377
SELECT + 95 AS col0, + 47 * + 33 + + - NULLIF ( - - 99, - + 69 + + MAX ( ALL + 24 ) ) AS col1
----
95
1452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT DISTINCT - ( 89 ) * - NULLIF ( - + 60, - + 23 * 74 * - CAST( + 0 AS SIGNED ) ) AS col0
----
-5340

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - ( 89 ) * - NULLIF ( - + 60, - + 23 * 74 * - CAST ( + 0 AS INTEGER ) ) AS col0
----
-5340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1379
SELECT - + COUNT( * ) / + - 38 + - 43 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1379
SELECT - + COUNT ( * ) / + - 38 + - 43 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT + - 75 AS col0, - COALESCE ( - 65, - 44 )
----
-75
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1381
SELECT DISTINCT 37 * - - SUM( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT 37 * - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1382
SELECT ALL 3 * 0 * 94 DIV 76 * - 53 * MIN( DISTINCT - CAST( + 52 AS SIGNED ) ) - + 12 AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL 3 * 0 * 94 / 76 * - 53 * MIN ( DISTINCT - CAST ( + 52 AS INTEGER ) ) - + 12 AS col0
----
-12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1383
SELECT ALL + 58 DIV 1 * - 4 * - COALESCE ( + - 1, + CAST( - 49 AS SIGNED ) + - 36 )
----
-232

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL + 58 / 1 * - 4 * - COALESCE ( + - 1, + CAST ( - 49 AS INTEGER ) + - 36 )
----
-232

query I rowsort
SELECT + 10 + 61 AS col0
----
71

query I rowsort
SELECT + ( - NULLIF ( 76, - + 18 ) ) AS col1
----
-76

query II rowsort
SELECT ALL 75 * 38 AS col2, + 10 AS col2
----
2850
10

query I rowsort
SELECT + ( + 17 ) * 14
----
238

onlyif mysql # DIV for integer division: 
query III rowsort label-1388
SELECT ALL + ( - 40 ) DIV - + 24 AS col2, ( + 31 ) AS col1, + + 25
----
1
31
25

skipif mysql # not compatible
query III rowsort label-1388
SELECT ALL + ( - 40 ) / - + 24 AS col2, ( + 31 ) AS col1, + + 25
----
1
31
25

query II rowsort
SELECT + 57 - + 59, 63 AS col1
----
-2
63

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

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

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

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

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

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

query I rowsort
SELECT - 56 + - - 25
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT + COUNT( * ) * - + SUM( - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-1394
SELECT + COUNT ( * ) * - + SUM ( - 27 )
----
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1396
SELECT + 79 - - 71 AS col1, - 77 + + SUM( DISTINCT - + 14 ) * 75 col2
----
150
-1127

skipif mysql # not compatible
query II rowsort label-1396
SELECT + 79 - - 71 AS col1, - 77 + + SUM ( DISTINCT - + 14 ) * 75 col2
----
150
-1127

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL 2 + + + 25 + SUM( - + 23 )
----
4

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL 2 + + + 25 + SUM ( - + 23 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1399
SELECT ALL - CAST( NULL AS SIGNED ) + - 70 + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - CAST ( NULL AS INTEGER ) + - 70 + 32 AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( + - 62, - CASE 8 WHEN + - 55 THEN - 29 + 97 + + 91 WHEN 16 * + 10 THEN NULL END + + + 80, + 65 * 51 ) + - 1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1401
SELECT + + 29 * + AVG ( DISTINCT + 53 ) + + + CASE + COUNT( * ) WHEN - 8 THEN NULL WHEN + + CASE + 17 WHEN + - 59 * COUNT( * ) + - + COUNT( * ) * - MAX( ALL + - CAST( - 95 AS DECIMAL ) ) THEN + CAST( - + 0 AS SIGNED ) / 24 ELSE NULL END * - ( + - CAST( - + 92 AS SIGNED ) ) THEN 45 END * + + SUM( ALL 90 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1401
SELECT + + 29 * + AVG ( DISTINCT + 53 ) + + + CASE + COUNT ( * ) WHEN - 8 THEN NULL WHEN + + CASE + 17 WHEN + - 59 * COUNT ( * ) + - + COUNT ( * ) * - MAX ( ALL + - CAST ( - 95 AS REAL ) ) THEN + CAST ( - + 0 AS INTEGER ) / 24 ELSE NULL END * - ( + - CAST ( - + 92 AS INTEGER ) ) THEN 45 END * + + SUM ( ALL 90 ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT - ( + - 88 ) + 56 - + COUNT( * ) - CAST( NULL AS SIGNED ) * AVG ( DISTINCT - - 55 ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1402
SELECT - ( + - 88 ) + 56 - + COUNT ( * ) - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - - 55 ) - COUNT ( * ) AS col0
----
NULL

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

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

query I rowsort
SELECT - 80 * + + 18 AS col2
----
-1440

query I rowsort
SELECT ( CASE + 57 WHEN + 36 THEN NULL ELSE - 13 END )
----
-13

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-1407
SELECT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col2, COUNT( * ) DIV + 58
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1407
SELECT CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col2, COUNT ( * ) / + 58
----
NULL
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT ALL + - 9 DIV - 39 - 76 + 28 + - 64 - - 71 * + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + - 9 / - 39 - 76 + 28 + - 64 - - 71 * + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1409
SELECT - + 96 * + ( + 57 ) / + CASE - + 70 WHEN SUM( + - ( - - 89 ) ) THEN + 83 * - 56 / - 51 + + 98 + - 37 WHEN - + 7 * + - 54 THEN NULL WHEN 66 THEN + 51 + + 31 END * ( 82 ) * + - 66 / - COUNT( * ) + + CASE - 78 WHEN COALESCE ( 68, + 69 ) THEN - CAST( 90 AS SIGNED ) * 76 ELSE + ( ( - 49 ) ) END / 36
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT - + 96 * + ( + 57 ) / + CASE - + 70 WHEN SUM ( + - ( - - 89 ) ) THEN + 83 * - 56 / - 51 + + 98 + - 37 WHEN - + 7 * + - 54 THEN NULL WHEN 66 THEN + 51 + + 31 END * ( 82 ) * + - 66 / - COUNT ( * ) + + CASE - 78 WHEN COALESCE ( 68, + 69 ) THEN - CAST ( 90 AS INTEGER ) * 76 ELSE + ( ( - 49 ) ) END / 36
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1410
SELECT + 2 DIV 95 + - 57 * + 92 * + 16 + + + COUNT( * )
----
-83903

skipif mysql # not compatible
query I rowsort label-1410
SELECT + 2 / 95 + - 57 * + 92 * + 16 + + + COUNT ( * )
----
-83903

query II rowsort
SELECT - - 63 * + 40, - 31 AS col2
----
2520
-31

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

skipif mysql # not compatible
query I rowsort label-1412
SELECT - - 52 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT - COUNT( * ) DIV NULLIF ( + + COUNT( * ), - 29 * + - ( - 63 ) + 34 - + - COUNT( 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1413
SELECT - COUNT ( * ) / NULLIF ( + + COUNT ( * ), - 29 * + - ( - 63 ) + 34 - + - COUNT ( 2 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT - MAX( DISTINCT - 68 ) * - COALESCE ( 9, + ( ( - - CAST( NULL AS SIGNED ) ) ) )
----
-612

skipif mysql # not compatible
query I rowsort label-1414
SELECT - MAX ( DISTINCT - 68 ) * - COALESCE ( 9, + ( ( - - CAST ( NULL AS INTEGER ) ) ) )
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT - + 27 * + 1 * + COUNT( * ) + 14 * + + MIN( DISTINCT 7 )
----
71

skipif mysql # not compatible
query I rowsort label-1415
SELECT - + 27 * + 1 * + COUNT ( * ) + 14 * + + MIN ( DISTINCT 7 )
----
71

query I rowsort
SELECT - 96 * - 11 + 8 * 27 col2
----
1272

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT - NULLIF ( + SUM( ALL - 6 ), 98 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1417
SELECT - NULLIF ( + SUM ( ALL - 6 ), 98 ) AS col2
----
6

query I rowsort
SELECT 79 * 69
----
5451

query I rowsort
SELECT DISTINCT - ( - NULLIF ( 90, + - 32 ) )
----
90

query II rowsort
SELECT DISTINCT - 59 AS col0, 71 col2
----
-59
71

query I rowsort
SELECT 72 + + 78
----
150

query I rowsort
SELECT 0 * 15 * + 13 * - - 17 - + 84
----
-84

query II rowsort
SELECT 37, 15 AS col1
----
37
15

query II rowsort
SELECT + 31, + 68 - ( 63 ) col1
----
31
5

query I rowsort
SELECT DISTINCT 62 + - + 49 col0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT ( CAST( - 33 AS SIGNED ) ) * ( - 94 ) AS col2
----
3102

skipif mysql # not compatible
query I rowsort label-1426
SELECT ( CAST ( - 33 AS INTEGER ) ) * ( - 94 ) AS col2
----
3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1427
SELECT DISTINCT ( + 25 ) * 99 DIV + ( - COALESCE ( 29, - - 99, SUM( DISTINCT + 19 ) ) )
----
-85

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT ( + 25 ) * 99 / + ( - COALESCE ( 29, - - 99, SUM ( DISTINCT + 19 ) ) )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1428
SELECT ( - 34 ) DIV - 24
----
1

skipif mysql # not compatible
query I rowsort label-1428
SELECT ( - 34 ) / - 24
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT 20 * - SUM( ALL - 44 ) * + - 57 - - 62 + 9 col0
----
-50089

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT 20 * - SUM ( ALL - 44 ) * + - 57 - - 62 + 9 col0
----
-50089

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

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

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

skipif mysql # not compatible
query I rowsort label-1431
SELECT 38 / + - COUNT ( * ) col2
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT - COUNT( * ) + - 15 * - + 45 / + 24 / CAST( NULL AS SIGNED ) / 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT - COUNT ( * ) + - 15 * - + 45 / + 24 / CAST ( NULL AS INTEGER ) / 80 AS col0
----
NULL

query I rowsort
SELECT 76 * 40 + - + 2 - 80 * - 65 AS col0
----
8238

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT ALL - 72 + - 80 * 34 DIV + 46 AS col0
----
-131

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - 72 + - 80 * 34 / + 46 AS col0
----
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT - MAX( - 52 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-1435
SELECT - MAX ( - 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1436
SELECT + 64 + - 27 * + COUNT( * ) DIV + - 38 col0
----
64

skipif mysql # not compatible
query I rowsort label-1436
SELECT + 64 + - 27 * + COUNT ( * ) / + - 38 col0
----
64

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

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

query I rowsort
SELECT ALL - 22 * + + 5
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1439
SELECT 56 + - CAST( NULL AS SIGNED ) + - + 36, + 54 AS col0
----
NULL
54

skipif mysql # not compatible
query II rowsort label-1439
SELECT 56 + - CAST ( NULL AS INTEGER ) + - + 36, + 54 AS col0
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL - NULLIF ( - ( + + COUNT( * ) ), + 34 ) - 71 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL - NULLIF ( - ( + + COUNT ( * ) ), + 34 ) - 71 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT ALL - CASE - + 94 WHEN 13 * + 45 / + 28 THEN NULL WHEN 81 THEN 55 ELSE COUNT( * ) * - - 16 * - 56 + + 27 + + ( + - MIN( - - 45 ) ) + - - 41 + - - 20 + + 38 END AS col2
----
815

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL - CASE - + 94 WHEN 13 * + 45 / + 28 THEN NULL WHEN 81 THEN 55 ELSE COUNT ( * ) * - - 16 * - 56 + + 27 + + ( + - MIN ( - - 45 ) ) + - - 41 + - - 20 + + 38 END AS col2
----
815

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1442
SELECT + 91 + NULLIF ( CAST( NULL AS SIGNED ), - 57 ) + + + ( + 56 ) + + 76 * + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1442
SELECT + 91 + NULLIF ( CAST ( NULL AS INTEGER ), - 57 ) + + + ( + 56 ) + + 76 * + + 26
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1443
SELECT DISTINCT 18 AS col1, 63 DIV 17 * 39
----
18
117

skipif mysql # not compatible
query II rowsort label-1443
SELECT DISTINCT 18 AS col1, 63 / 17 * 39
----
18
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT - COALESCE ( 2, + 70 ) + + ( - + COUNT( * ) ) - - 85 * - 75 * - 73 - - + 27 + + NULLIF ( - 38, + + 94 * + 50 / + + 41 + - - 44 ) + 79 + + 90 * 10 + - + 10
----
466330

skipif mysql # not compatible
query I rowsort label-1444
SELECT - COALESCE ( 2, + 70 ) + + ( - + COUNT ( * ) ) - - 85 * - 75 * - 73 - - + 27 + + NULLIF ( - 38, + + 94 * + 50 / + + 41 + - - 44 ) + 79 + + 90 * 10 + - + 10
----
466330

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT + 50 * + - 5 * - 29 + - + CAST( - - 48 AS SIGNED ) AS col0
----
7202

skipif mysql # not compatible
query I rowsort label-1446
SELECT + 50 * + - 5 * - 29 + - + CAST ( - - 48 AS INTEGER ) AS col0
----
7202

query I rowsort
SELECT 17 + - + 59
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-1448
SELECT ALL - - 95 DIV 89
----
1

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL - - 95 / 89
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT + 87 * + 77 * + 31 + - 93 * + + 35 * - COUNT( * ) AS col2
----
210924

skipif mysql # not compatible
query I rowsort label-1449
SELECT + 87 * + 77 * + 31 + - 93 * + + 35 * - COUNT ( * ) AS col2
----
210924

query I rowsort
SELECT - 16 * 73 AS col2
----
-1168

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT + - ( 14 ) DIV - - 18 + - ( + 68 )
----
-68

skipif mysql # not compatible
query I rowsort label-1451
SELECT + - ( 14 ) / - - 18 + - ( + 68 )
----
-68

query I rowsort
SELECT 88 * + 62 AS col0
----
5456

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1453
SELECT 91 * ( + - 17 ) * 21 * - - 69, + CAST( 43 AS SIGNED ) AS col1
----
-2241603
43

skipif mysql # not compatible
query II rowsort label-1453
SELECT 91 * ( + - 17 ) * 21 * - - 69, + CAST ( 43 AS INTEGER ) AS col1
----
-2241603
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT 69 + + - COUNT( * ) + - - 41 * - 14 * 39 * + CASE 48 WHEN + - 85 * - 15 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 2 - - NULLIF ( + + ( 70 ), 71 ) + + ( - 67 ) * - 87 END AS col0
----
-132010174

skipif mysql # not compatible
query I rowsort label-1454
SELECT 69 + + - COUNT ( * ) + - - 41 * - 14 * 39 * + CASE 48 WHEN + - 85 * - 15 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 2 - - NULLIF ( + + ( 70 ), 71 ) + + ( - 67 ) * - 87 END AS col0
----
-132010174

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT DISTINCT - SUM( ALL ( + ( + 45 ) ) ) * + - 53 AS col0
----
2385

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT - SUM ( ALL ( + ( + 45 ) ) ) * + - 53 AS col0
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT 78 * + + MIN( 87 )
----
6786

skipif mysql # not compatible
query I rowsort label-1456
SELECT 78 * + + MIN ( 87 )
----
6786

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT DISTINCT + NULLIF ( + COUNT( * ), 5 ) * - COALESCE ( 55, + - 50 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1458
SELECT DISTINCT + NULLIF ( + COUNT ( * ), 5 ) * - COALESCE ( 55, + - 50 ) AS col0
----
-55

query I rowsort
SELECT ALL + 41 + - 95 + - 49 AS col1
----
-103

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

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

query II rowsort
SELECT ALL + 96 + + 62 AS col0, 24 AS col2
----
158
24

query I rowsort
SELECT 3 + + 19
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT COUNT( * ) * - 99 * 45
----
-4455

skipif mysql # not compatible
query I rowsort label-1463
SELECT COUNT ( * ) * - 99 * 45
----
-4455

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT DISTINCT - MAX( DISTINCT + - 48 ) AS col0, + 13 AS col1
----
48
13

skipif mysql # not compatible
query II rowsort label-1464
SELECT DISTINCT - MAX ( DISTINCT + - 48 ) AS col0, + 13 AS col1
----
48
13

query I rowsort
SELECT DISTINCT - 79 + 34 col0
----
-45

query I rowsort
SELECT 42 * - 16
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT 48 + - 4 * 48 + SUM( ALL 10 )
----
-134

skipif mysql # not compatible
query I rowsort label-1467
SELECT 48 + - 4 * 48 + SUM ( ALL 10 )
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT - CASE COALESCE ( - 62, + + 40 ) WHEN COUNT( * ) THEN + 37 WHEN 64 + + 59 THEN - COUNT( ALL 8 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1468
SELECT - CASE COALESCE ( - 62, + + 40 ) WHEN COUNT ( * ) THEN + 37 WHEN 64 + + 59 THEN - COUNT ( ALL 8 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT 91 + + COUNT( * ) - + - COALESCE ( 50, - COUNT( DISTINCT + 25 ) DIV + 80 ) + 47
----
189

skipif mysql # not compatible
query I rowsort label-1469
SELECT 91 + + COUNT ( * ) - + - COALESCE ( 50, - COUNT ( DISTINCT + 25 ) / + 80 ) + 47
----
189

query II rowsort
SELECT DISTINCT - 74 - + 53 col2, 66
----
-127
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1471
SELECT ALL + CAST( 43 AS SIGNED ) * + 17 + + 45 + - COUNT( * ) * + COALESCE ( + 8, + 12 ) + + + ( - - 61 ) * 39 * - + 50 + - + 37 + - CASE - + 98 WHEN + + CAST( 85 AS SIGNED ) - - - 80 THEN NULL WHEN + + COUNT( * ) + + 29 THEN + COUNT( * ) + - - 71 / - + 68 * CASE 41 WHEN COUNT( * ) THEN 92 + 75 ELSE NULL END WHEN - CASE COUNT( DISTINCT - 55 ) WHEN - 83 THEN ( + CASE - 60 WHEN ( + 67 ) THEN - COUNT( * ) + CAST( NULL AS SIGNED ) WHEN + 87 * + 98 + + 61 THEN 28 + 95 WHEN - 29 * 87 THEN NULL ELSE + 90 * + 72 + SUM( ALL COALESCE ( 66, 29 ) ) END ) + 26 END * 94 + 45 THEN + 85 * - 7 - 55 END * - CAST( 39 + + COALESCE ( 54, MIN( 43 ) + 84 * 67 ) * 10 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + CAST ( 43 AS INTEGER ) * + 17 + + 45 + - COUNT ( * ) * + COALESCE ( + 8, + 12 ) + + + ( - - 61 ) * 39 * - + 50 + - + 37 + - CASE - + 98 WHEN + + CAST ( 85 AS INTEGER ) - - - 80 THEN NULL WHEN + + COUNT ( * ) + + 29 THEN + COUNT ( * ) + - - 71 / - + 68 * CASE 41 WHEN COUNT ( * ) THEN 92 + 75 ELSE NULL END WHEN - CASE COUNT ( DISTINCT - 55 ) WHEN - 83 THEN ( + CASE - 60 WHEN ( + 67 ) THEN - COUNT ( * ) + CAST ( NULL AS INTEGER ) WHEN + 87 * + 98 + + 61 THEN 28 + 95 WHEN - 29 * 87 THEN NULL ELSE + 90 * + 72 + SUM ( ALL COALESCE ( 66, 29 ) ) END ) + 26 END * 94 + 45 THEN + 85 * - 7 - 55 END * - CAST ( 39 + + COALESCE ( 54, MIN ( 43 ) + 84 * 67 ) * 10 AS INTEGER ) AS col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL COUNT ( * ) - + 78 AS col0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1473
SELECT + 98 DIV - - ( + + 17 )
----
5

skipif mysql # not compatible
query I rowsort label-1473
SELECT + 98 / - - ( + + 17 )
----
5

query I rowsort
SELECT + 55 * + ( + 20 )
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT + + SUM( - 18 ) * COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-1475
SELECT + + SUM ( - 18 ) * COUNT ( * ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - CASE - - 62 WHEN - + 41 THEN + + 24 WHEN - + 38 THEN NULL WHEN 84 + - - SUM( + - 87 ) THEN NULL ELSE + + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1476
SELECT - CASE - - 62 WHEN - + 41 THEN + + 24 WHEN - + 38 THEN NULL WHEN 84 + - - SUM ( + - 87 ) THEN NULL ELSE + + COUNT ( * ) END
----
-1

query I rowsort
SELECT + ( 67 ) * - 32 * - 60 * 85
----
10934400

query I rowsort
SELECT COALESCE ( - COALESCE ( - 15, 89 * 10 - - 1 + - 80 ), - 50 * + 19 )
----
15

query I rowsort
SELECT DISTINCT 40 * - 76 + + - 66 + 53 AS col0
----
-3053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1480
SELECT ALL + 83 * + - 8 * - - 41 + - 60 * + - NULLIF ( + COUNT( DISTINCT + + 16 ), - + NULLIF ( - 29, - + 25 ) ) * 74 - - 64 + - - 42 - 62 + 34 * + 44 * + MAX( - + 0 ) DIV + 26
----
-22740

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + 83 * + - 8 * - - 41 + - 60 * + - NULLIF ( + COUNT ( DISTINCT + + 16 ), - + NULLIF ( - 29, - + 25 ) ) * 74 - - 64 + - - 42 - 62 + 34 * + 44 * + MAX ( - + 0 ) / + 26
----
-22740

query I rowsort
SELECT + 80 + - + 78
----
2

query II rowsort
SELECT DISTINCT + 45, + 31 col2
----
45
31

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT + COUNT( * ) * - 85 + COALESCE ( - 27, - 24, - 81 )
----
-112

skipif mysql # not compatible
query I rowsort label-1485
SELECT + COUNT ( * ) * - 85 + COALESCE ( - 27, - 24, - 81 )
----
-112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1486
SELECT DISTINCT + 73 * + 38 * + 63 / - - CAST( NULL AS DECIMAL ) - + 71 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT + 73 * + 38 * + 63 / - - CAST ( NULL AS REAL ) - + 71 * 29 AS col0
----
NULL

query I rowsort
SELECT - 2 + 35 AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-1488
SELECT DISTINCT + SUM( 75 ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-1488
SELECT DISTINCT + SUM ( 75 ) AS col0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1489
SELECT - 31 - - - CAST( - - 71 AS SIGNED ) AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-1489
SELECT - 31 - - - CAST ( - - 71 AS INTEGER ) AS col0
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1490
SELECT DISTINCT - COUNT( 88 ) * - 44 * - - 40 - + - 58 - - + CAST( 40 AS SIGNED )
----
1858

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT - COUNT ( 88 ) * - 44 * - - 40 - + - 58 - - + CAST ( 40 AS INTEGER )
----
1858

onlyif mysql # aggregate syntax: 
query II rowsort label-1491
SELECT ALL 24, - 58 - ( + CASE COUNT( 81 ) WHEN - + 18 THEN - 77 WHEN 22 - - + 48 THEN NULL WHEN - - 65 + 18 THEN NULL END ) AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-1491
SELECT ALL 24, - 58 - ( + CASE COUNT ( 81 ) WHEN - + 18 THEN - 77 WHEN 22 - - + 48 THEN NULL WHEN - - 65 + 18 THEN NULL END ) AS col1
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT DISTINCT - COUNT( + - 26 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - COUNT ( + - 26 ) col1
----
-1

query I rowsort
SELECT - 51 + - 88
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-1494
SELECT ALL - + 4 * ( + 81 ) DIV 12
----
-27

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - + 4 * ( + 81 ) / 12
----
-27

onlyif mysql # aggregate syntax: 
query III rowsort label-1495
SELECT ALL - 26 col2, ( - 68 ), COUNT( DISTINCT + 17 ) AS col2
----
-26
-68
1

skipif mysql # not compatible
query III rowsort label-1495
SELECT ALL - 26 col2, ( - 68 ), COUNT ( DISTINCT + 17 ) AS col2
----
-26
-68
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1496
SELECT + 36 AS col2, - COUNT( * ) + 21
----
36
20

skipif mysql # not compatible
query II rowsort label-1496
SELECT + 36 AS col2, - COUNT ( * ) + 21
----
36
20

query I rowsort
SELECT - + 9 - + 55 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT - + 51 * 9 - + + MAX( 77 ) AS col2
----
-536

skipif mysql # not compatible
query I rowsort label-1498
SELECT - + 51 * 9 - + + MAX ( 77 ) AS col2
----
-536

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1499
SELECT - - 40 + - 79 + - - 13 DIV - + 76 + + MAX( ALL + 5 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1499
SELECT - - 40 + - 79 + - - 13 / - + 76 + + MAX ( ALL + 5 ) AS col0
----
-34

query I rowsort
SELECT + ( 1 ) AS col1
----
1

query II rowsort
SELECT - 36 AS col0, + 26 col1
----
-36
26

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

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

query I rowsort
SELECT - + 65 + + - 78 + + + 27
----
-116

query I rowsort
SELECT - - 90 * + 18 + 7
----
1627

onlyif mysql # DIV for integer division: 
query I rowsort label-1505
SELECT ALL - + 86 DIV + 84
----
-1

skipif mysql # not compatible
query I rowsort label-1505
SELECT ALL - + 86 / + 84
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1506
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 87 + + + 83 * - 64 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1506
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 87 + + + 83 * - 64 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1507
SELECT DISTINCT + SUM( + CAST( 69 AS SIGNED ) ) + - - COUNT( * ) * - 24 * + + 46 * 1 + - 96
----
-1131

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT + SUM ( + CAST ( 69 AS INTEGER ) ) + - - COUNT ( * ) * - 24 * + + 46 * 1 + - 96
----
-1131

query I rowsort
SELECT - - ( 19 ) AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT DISTINCT + SUM( DISTINCT 90 ) + + + 35 + 6 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT + SUM ( DISTINCT 90 ) + + + 35 + 6 AS col2
----
131

query I rowsort
SELECT - + 63 * 73
----
-4599

query II rowsort
SELECT + 40 + + 23 col0, 49 AS col0
----
63
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1512
SELECT ALL 60, CAST( NULL AS SIGNED ) AS col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-1512
SELECT ALL 60, CAST ( NULL AS INTEGER ) AS col2
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - SUM( ALL 28 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-1513
SELECT - SUM ( ALL 28 ) col0
----
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1514
SELECT 41 / - - 76 + - + CAST( NULL AS DECIMAL ) + + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT 41 / - - 76 + - + CAST ( NULL AS REAL ) + + - 98 AS col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1516
SELECT ALL + 89 DIV - + 12 + + 9 + + 84 + 27
----
113

skipif mysql # not compatible
query I rowsort label-1516
SELECT ALL + 89 / - + 12 + + 9 + + 84 + 27
----
113

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

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

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

query II rowsort
SELECT + 80 * 91 col1, NULLIF ( + 59, - 88 * - 4 * + 37 ) AS col2
----
7280
59

query I rowsort
SELECT ALL 92 * + 97 col1
----
8924

query II rowsort
SELECT DISTINCT + 49, 84 AS col1
----
49
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL + SUM( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + SUM ( 94 ) AS col2
----
94

query II rowsort
SELECT ( 7 ), 54 AS col0
----
7
54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT MIN( DISTINCT - 1 ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT MIN ( DISTINCT - 1 ) * COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1526
SELECT ALL + 96 AS col1, + 78 + - COUNT( * )
----
96
77

skipif mysql # not compatible
query II rowsort label-1526
SELECT ALL + 96 AS col1, + 78 + - COUNT ( * )
----
96
77

query I rowsort
SELECT + 8 + + 49
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1528
SELECT ALL + 7 DIV - 17
----
0

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL + 7 / - 17
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + - 29 + - COUNT( * ) col1
----
-30

skipif mysql # not compatible
query I rowsort label-1529
SELECT + - 29 + - COUNT ( * ) col1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1530
SELECT ALL + COALESCE ( + COUNT( * ), 68 DIV - - 13 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1530
SELECT ALL + COALESCE ( + COUNT ( * ), 68 / - - 13 ) col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1531
SELECT - - 80 DIV - ( - + 23 )
----
3

skipif mysql # not compatible
query I rowsort label-1531
SELECT - - 80 / - ( - + 23 )
----
3

query I rowsort
SELECT DISTINCT + 41 * 10
----
410

onlyif mysql # DIV for integer division: 
query I rowsort label-1533
SELECT 79 DIV - 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1533
SELECT 79 / - 40 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1534
SELECT DISTINCT - ( + 81 ) * - + CAST( + 92 AS SIGNED )
----
7452

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - ( + 81 ) * - + CAST ( + 92 AS INTEGER )
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL 20 * 34 * 93 * - MIN( + 69 ) AS col0
----
-4363560

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL 20 * 34 * 93 * - MIN ( + 69 ) AS col0
----
-4363560

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

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

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

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

query I rowsort
SELECT + 26 * + 52 + + 3
----
1355

onlyif mysql # aggregate syntax: 
query II rowsort label-1539
SELECT - - 79 AS col1, + COUNT( * ) + - + 98 * 83
----
79
-8133

skipif mysql # not compatible
query II rowsort label-1539
SELECT - - 79 AS col1, + COUNT ( * ) + - + 98 * 83
----
79
-8133

query II rowsort
SELECT - 22 AS col2, - 23
----
-22
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1541
SELECT + 56, + CASE 82 WHEN - + 33 THEN + CAST( COUNT( ALL + - 12 ) AS SIGNED ) END col0
----
56
NULL

skipif mysql # not compatible
query II rowsort label-1541
SELECT + 56, + CASE 82 WHEN - + 33 THEN + CAST ( COUNT ( ALL + - 12 ) AS INTEGER ) END col0
----
56
NULL

query I rowsort
SELECT 88 * - 11
----
-968

query I rowsort
SELECT ALL - ( - NULLIF ( + + 86, + 64 ) ) + + + 97
----
183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1544
SELECT ALL CASE + COUNT( * ) WHEN + 83 * 47 + + + 70 THEN ( CASE - 18 WHEN + NULLIF ( 19, - 85 ) THEN + CAST( + + ( - CASE - 56 WHEN + 80 + + 62 - 70 + 35 * + CAST( NULL AS SIGNED ) THEN - + 83 * + NULLIF ( - 97, CASE + - 92 WHEN 31 THEN + - 34 + 40 WHEN + CAST( NULL AS SIGNED ) / 41 THEN - MAX( ALL - 6 ) * + 89 END ) + + MIN( DISTINCT + COALESCE ( 13, 45 * - 64 ) ) WHEN - 33 THEN NULL END ) AS DECIMAL ) / 58 END ) * + 72 WHEN - 41 THEN NULL WHEN 72 THEN NULL END * 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL CASE + COUNT ( * ) WHEN + 83 * 47 + + + 70 THEN ( CASE - 18 WHEN + NULLIF ( 19, - 85 ) THEN + CAST ( + + ( - CASE - 56 WHEN + 80 + + 62 - 70 + 35 * + CAST ( NULL AS INTEGER ) THEN - + 83 * + NULLIF ( - 97, CASE + - 92 WHEN 31 THEN + - 34 + 40 WHEN + CAST ( NULL AS INTEGER ) / 41 THEN - MAX ( ALL - 6 ) * + 89 END ) + + MIN ( DISTINCT + COALESCE ( 13, 45 * - 64 ) ) WHEN - 33 THEN NULL END ) AS REAL ) / 58 END ) * + 72 WHEN - 41 THEN NULL WHEN 72 THEN NULL END * 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT ALL - COUNT( * ) - - 7 * + COALESCE ( + CASE - + 42 WHEN + + 4 THEN 37 ELSE + 70 END, + 31 + COUNT( * ) * - 29, - 81 * + 53 )
----
489

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL - COUNT ( * ) - - 7 * + COALESCE ( + CASE - + 42 WHEN + + 4 THEN 37 ELSE + 70 END, + 31 + COUNT ( * ) * - 29, - 81 * + 53 )
----
489

query II rowsort
SELECT 97 + - + 91 AS col1, 42 AS col0
----
6
42

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

skipif mysql # not compatible
query I rowsort label-1547
SELECT - COUNT ( * ) * COUNT ( * ) - + 5 * 60 AS col1
----
-301

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

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

query I rowsort
SELECT 3 * - + 93 * + ( 83 ) AS col0
----
-23157

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1552
SELECT ALL - COUNT( DISTINCT 97 ) AS col1, 33 * - + NULLIF ( + 62, 4 ) AS col2
----
-1
-2046

skipif mysql # not compatible
query II rowsort label-1552
SELECT ALL - COUNT ( DISTINCT 97 ) AS col1, 33 * - + NULLIF ( + 62, 4 ) AS col2
----
-1
-2046

onlyif mysql # aggregate syntax: 
query II rowsort label-1553
SELECT 41 + + + 3 AS col1, COUNT( 84 ) * + 86 * 75 AS col2
----
44
6450

skipif mysql # not compatible
query II rowsort label-1553
SELECT 41 + + + 3 AS col1, COUNT ( 84 ) * + 86 * 75 AS col2
----
44
6450

query I rowsort
SELECT DISTINCT 37 * 78
----
2886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1555
SELECT 15 + + CAST( + + CAST( + 2 AS SIGNED ) AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-1555
SELECT 15 + + CAST ( + + CAST ( + 2 AS INTEGER ) AS INTEGER )
----
17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT - - MAX( DISTINCT + 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1557
SELECT - - MAX ( DISTINCT + 88 ) AS col0
----
88

query II rowsort
SELECT ALL + 68 * + 25 AS col0, - 20
----
1700
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1559
SELECT DISTINCT NULLIF ( 89, 62 + - 1 ) + + + CASE + 91 WHEN - CAST( - - COUNT( DISTINCT - - 84 ) AS SIGNED ) THEN 81 / + + 28 WHEN - + 85 + + ( + 21 ) + + 15 THEN + - 58 / + CAST( NULL AS SIGNED ) * - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT NULLIF ( 89, 62 + - 1 ) + + + CASE + 91 WHEN - CAST ( - - COUNT ( DISTINCT - - 84 ) AS INTEGER ) THEN 81 / + + 28 WHEN - + 85 + + ( + 21 ) + + 15 THEN + - 58 / + CAST ( NULL AS INTEGER ) * - 68 END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL 27 + - NULLIF ( SUM( DISTINCT - 97 ), - ( + AVG ( - 83 ) ) + + 84 * 0 * + + 34 ) AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL 27 + - NULLIF ( SUM ( DISTINCT - 97 ), - ( + AVG ( - 83 ) ) + + 84 * 0 * + + 34 ) AS col0
----
124

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

skipif mysql # not compatible
query I rowsort label-1562
SELECT - SUM ( + 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT 4 + + COALESCE ( - + 61, - 49 + + - 82 DIV - - ( + - ( + 50 ) ), - 53 DIV - 29 ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-1563
SELECT 4 + + COALESCE ( - + 61, - 49 + + - 82 / - - ( + - ( + 50 ) ), - 53 / - 29 ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1564
SELECT DISTINCT CASE CAST( - 17 AS SIGNED ) WHEN 49 THEN + 46 WHEN + + COUNT( * ) + + 6 THEN 9 * + + 84 * + 93 ELSE NULL END / - + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT CASE CAST ( - 17 AS INTEGER ) WHEN 49 THEN + 46 WHEN + + COUNT ( * ) + + 6 THEN 9 * + + 84 * + 93 ELSE NULL END / - + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT - COUNT( * ) + + COUNT( DISTINCT 52 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1565
SELECT - COUNT ( * ) + + COUNT ( DISTINCT 52 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT DISTINCT + 25 DIV + 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + 25 / + 79 AS col2
----
0

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

skipif mysql # not compatible
query I rowsort label-1567
SELECT 73 + + 80 * + COUNT ( * ) AS col1
----
153

query I rowsort
SELECT DISTINCT + 69 * 50 AS col0
----
3450

query I rowsort
SELECT DISTINCT 28 * - 85
----
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL COUNT( DISTINCT + - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL COUNT ( DISTINCT + - 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1571
SELECT 16 + - 44 + + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-1571
SELECT 16 + - 44 + + + COUNT ( * )
----
-27

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

skipif mysql # not compatible
query II rowsort label-1572
SELECT - COUNT ( * ) AS col0, MAX ( 43 )
----
-1
43

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT 32 + 95 + + + 51 - - 95 - 47 DIV + ( 9 )
----
268

skipif mysql # not compatible
query I rowsort label-1573
SELECT 32 + 95 + + + 51 - - 95 - 47 / + ( 9 )
----
268

onlyif mysql # aggregate syntax: 
query II rowsort label-1574
SELECT COUNT( * ) + 47 + + 53 * 52 * - 37 + 76, - COUNT( * ) - 0 AS col1
----
-101848
-1

skipif mysql # not compatible
query II rowsort label-1574
SELECT COUNT ( * ) + 47 + + 53 * 52 * - 37 + 76, - COUNT ( * ) - 0 AS col1
----
-101848
-1

query I rowsort
SELECT 13 * - ( - + 60 ) * + 14 AS col2
----
10920

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

query I rowsort
SELECT ALL + 6 * - 12 col2
----
-72

query I rowsort
SELECT DISTINCT 37 * + 15 AS col0
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT MIN( DISTINCT + 77 ) * 58 * + - 21
----
-93786

skipif mysql # not compatible
query I rowsort label-1579
SELECT MIN ( DISTINCT + 77 ) * 58 * + - 21
----
-93786

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1581
SELECT - SUM( - - CAST( + - 29 AS SIGNED ) ) * + + 41
----
1189

skipif mysql # not compatible
query I rowsort label-1581
SELECT - SUM ( - - CAST ( + - 29 AS INTEGER ) ) * + + 41
----
1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1582
SELECT - - ( 10 ) DIV - 19 * + 16 * SUM( + 92 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1582
SELECT - - ( 10 ) / - 19 * + 16 * SUM ( + 92 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL + MAX( ALL - + 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL + MAX ( ALL - + 55 ) AS col1
----
-55

query I rowsort
SELECT - CASE 97 WHEN + - 9 THEN NULL ELSE - + 37 - 50 END
----
87

query I rowsort
SELECT + 76 * 94 + + 91 AS col0
----
7235

query I rowsort
SELECT - - 3 - 32
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT ALL - - CAST( - 13 AS SIGNED ) + 31
----
18

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL - - CAST ( - 13 AS INTEGER ) + 31
----
18

query I rowsort
SELECT ALL 81 + + 12 + 49 * + 13 * - 1 * + 27 * + 35 col0
----
-601872

query II rowsort
SELECT - 50, 54 * + 41 AS col1
----
-50
2214

onlyif mysql # aggregate syntax: 
query II rowsort label-1590
SELECT + 84 AS col2, COUNT( * ) + 6 AS col0
----
84
7

skipif mysql # not compatible
query II rowsort label-1590
SELECT + 84 AS col2, COUNT ( * ) + 6 AS col0
----
84
7

query I rowsort
SELECT ALL 39 * - - 74 + - 6 + 62 + - 70 AS col1
----
2872

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT DISTINCT COUNT( * ) + 92 - + 39 * + + 73 * ( + + 56 )
----
-159339

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT COUNT ( * ) + 92 - + 39 * + + 73 * ( + + 56 )
----
-159339

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

query I rowsort
SELECT ALL + 96 * 49 AS col2
----
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + COUNT( * ) * - 26 + - 39 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1595
SELECT + COUNT ( * ) * - 26 + - 39 AS col2
----
-65

query I rowsort
SELECT DISTINCT - 62 * + 38 AS col2
----
-2356

query I rowsort
SELECT ALL 28 - + 93 AS col0
----
-65

query I rowsort
SELECT - NULLIF ( - - 51, + 92 ) AS col1
----
-51

query I rowsort
SELECT ALL - ( 78 ) - - + 5 * - 77 + 65 col2
----
-398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT - 10 * - - 57 DIV COUNT( * ) AS col0
----
-570

skipif mysql # not compatible
query I rowsort label-1600
SELECT - 10 * - - 57 / COUNT ( * ) AS col0
----
-570

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1601
SELECT ALL 15 DIV MIN( 86 ) * - 27 col0
----
0

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL 15 / MIN ( 86 ) * - 27 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1603
SELECT ALL COUNT( - 71 ), + 87 col0
----
1
87

skipif mysql # not compatible
query II rowsort label-1603
SELECT ALL COUNT ( - 71 ), + 87 col0
----
1
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + 15 - + - 89 + + - 95 * + COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 15 - + - 89 + + - 95 * + COUNT ( * )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1605
SELECT + 74 DIV + - 52 AS col0, COUNT( * ) * - 81 + - - 37 + 33 * + - 88 + CASE 46 WHEN - 71 THEN + + 18 END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1605
SELECT + 74 / + - 52 AS col0, COUNT ( * ) * - 81 + - - 37 + 33 * + - 88 + CASE 46 WHEN - 71 THEN + + 18 END
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1606
SELECT ALL 80 DIV NULLIF ( + 80, + 9 * + 98 * COUNT( * ) + 96 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL 80 / NULLIF ( + 80, + 9 * + 98 * COUNT ( * ) + 96 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL CASE - 36 WHEN - + 12 / + 24 * + COUNT( DISTINCT + 71 ) + - - 18 + 15 * + 4 + 14 THEN - - MAX( ALL - + 88 ) / - 35 * 82 * COUNT( * ) WHEN + AVG ( DISTINCT + - 11 ) THEN NULL ELSE NULL END AS col2, 25 + + 6 * 16 AS col2
----
NULL
121

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL CASE - 36 WHEN - + 12 / + 24 * + COUNT ( DISTINCT + 71 ) + - - 18 + 15 * + 4 + 14 THEN - - MAX ( ALL - + 88 ) / - 35 * 82 * COUNT ( * ) WHEN + AVG ( DISTINCT + - 11 ) THEN NULL ELSE NULL END AS col2, 25 + + 6 * 16 AS col2
----
NULL
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1608
SELECT - CASE + 84 WHEN 52 THEN + 59 * + + ( 20 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - 54 * - 61 THEN + 18 + + - ( + 71 ) END * - 31 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1608
SELECT - CASE + 84 WHEN 52 THEN + 59 * + + ( 20 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - 54 * - 61 THEN + 18 + + - ( + 71 ) END * - 31 col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1610
SELECT 48 DIV SUM( DISTINCT 40 ) + - 4 + SUM( 47 ) DIV - - COUNT( * ) - 1 * - 50 * 52 col2
----
2644

skipif mysql # not compatible
query I rowsort label-1610
SELECT 48 / SUM ( DISTINCT 40 ) + - 4 + SUM ( 47 ) / - - COUNT ( * ) - 1 * - 50 * 52 col2
----
2644

query II rowsort
SELECT ( + + 63 ), - ( - 29 ) * + 66 + - + CASE - 85 WHEN - 62 + + ( - 69 ) THEN NULL ELSE ( 72 ) END AS col2
----
63
1842

onlyif mysql # aggregate syntax: 
query II rowsort label-1612
SELECT + COUNT( * ) + + - 56 * + + ( + - 74 ) col1, 8
----
4145
8

skipif mysql # not compatible
query II rowsort label-1612
SELECT + COUNT ( * ) + + - 56 * + + ( + - 74 ) col1, 8
----
4145
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1613
SELECT + 49 * + - 39 * - + COUNT( * ) col1
----
1911

skipif mysql # not compatible
query I rowsort label-1613
SELECT + 49 * + - 39 * - + COUNT ( * ) col1
----
1911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1614
SELECT - 53 * COUNT( * ) DIV - + 23 + 17 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-1614
SELECT - 53 * COUNT ( * ) / - + 23 + 17 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT - COUNT( * ) - + 59 + 35 - + + 69 * - COALESCE ( - NULLIF ( + 89, - 24 ), 49 + - NULLIF ( - + 69, 75 * - 77 + + + 69 + + 48 * + 48 ), - + 11 - - ( 70 ) * - CASE - 81 WHEN 89 THEN - 7 END ) AS col2
----
-6166

skipif mysql # not compatible
query I rowsort label-1615
SELECT - COUNT ( * ) - + 59 + 35 - + + 69 * - COALESCE ( - NULLIF ( + 89, - 24 ), 49 + - NULLIF ( - + 69, 75 * - 77 + + + 69 + + 48 * + 48 ), - + 11 - - ( 70 ) * - CASE - 81 WHEN 89 THEN - 7 END ) AS col2
----
-6166

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT + COALESCE ( + NULLIF ( + + 7, - 91 ), - COUNT( - + 72 ), - 25 * - + ( 21 ) - + 59 + + 77 )
----
7

skipif mysql # not compatible
query I rowsort label-1616
SELECT + COALESCE ( + NULLIF ( + + 7, - 91 ), - COUNT ( - + 72 ), - 25 * - + ( 21 ) - + 59 + + 77 )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1617
SELECT DISTINCT + - CASE - + 0 WHEN - SUM( ( 27 ) ) * + + 60 THEN 74 WHEN - NULLIF ( + + ( - COUNT( * ) ), - 86 ) + + ( MAX( - + 25 ) ) + + - 10 - - 5 * CASE 99 WHEN - 73 THEN 48 + - 49 * - COUNT( DISTINCT + + 63 ) + + + 67 ELSE - - 48 END * - COUNT( DISTINCT - 92 ) * + 47 * CAST( NULL AS SIGNED ) * + 68 THEN + 6 * 1 END * - COUNT( * ) + + SUM( DISTINCT 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT + - CASE - + 0 WHEN - SUM ( ( 27 ) ) * + + 60 THEN 74 WHEN - NULLIF ( + + ( - COUNT ( * ) ), - 86 ) + + ( MAX ( - + 25 ) ) + + - 10 - - 5 * CASE 99 WHEN - 73 THEN 48 + - 49 * - COUNT ( DISTINCT + + 63 ) + + + 67 ELSE - - 48 END * - COUNT ( DISTINCT - 92 ) * + 47 * CAST ( NULL AS INTEGER ) * + 68 THEN + 6 * 1 END * - COUNT ( * ) + + SUM ( DISTINCT 69 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT - 17 + COUNT( + 21 ) * 10 + - COUNT( * ) + 75 * + - 9 / CAST( NULL AS SIGNED ) * - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1618
SELECT - 17 + COUNT ( + 21 ) * 10 + - COUNT ( * ) + 75 * + - 9 / CAST ( NULL AS INTEGER ) * - - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1619
SELECT DISTINCT + - 9 * - COUNT( * ) + - 39 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + - 9 * - COUNT ( * ) + - 39 AS col2
----
-30

query II rowsort
SELECT DISTINCT - 18 * 69 AS col1, - 67 AS col1
----
-1242
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT + CASE - 56 WHEN + 3 THEN - 95 END * - ( - + 25 ) + + 63 + - + 99 - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT + CASE - 56 WHEN + 3 THEN - 95 END * - ( - + 25 ) + + 63 + - + 99 - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1622
SELECT - COUNT( DISTINCT + 83 ) * - CASE + - COALESCE ( - 43, CASE - + 52 WHEN - MIN( ( + 92 ) ) THEN NULL ELSE 20 END, + - SUM( - - 55 ) * + - 57 * - + 59 * + 59, - + 1 + + + NULLIF ( 52, COUNT( * ) DIV - CASE + 23 WHEN - COALESCE ( + + 12, + COUNT( * ) ) * - 14 * 13 DIV 85 * - - CAST( NULL AS SIGNED ) THEN 73 * - NULLIF ( + 96, - NULLIF ( - COALESCE ( COUNT( * ), 56 ), COUNT( * ) ) ) WHEN 50 THEN + COUNT( * ) WHEN + 28 THEN 28 ELSE NULL END ) ) WHEN 90 * 79 THEN ( COUNT( * ) ) DIV 14 ELSE 61 * 35 END
----
2135

skipif mysql # not compatible
query I rowsort label-1622
SELECT - COUNT ( DISTINCT + 83 ) * - CASE + - COALESCE ( - 43, CASE - + 52 WHEN - MIN ( ( + 92 ) ) THEN NULL ELSE 20 END, + - SUM ( - - 55 ) * + - 57 * - + 59 * + 59, - + 1 + + + NULLIF ( 52, COUNT ( * ) / - CASE + 23 WHEN - COALESCE ( + + 12, + COUNT ( * ) ) * - 14 * 13 / 85 * - - CAST ( NULL AS INTEGER ) THEN 73 * - NULLIF ( + 96, - NULLIF ( - COALESCE ( COUNT ( * ), 56 ), COUNT ( * ) ) ) WHEN 50 THEN + COUNT ( * ) WHEN + 28 THEN 28 ELSE NULL END ) ) WHEN 90 * 79 THEN ( COUNT ( * ) ) / 14 ELSE 61 * 35 END
----
2135

query I rowsort
SELECT - + 91 * - - 70 AS col1
----
-6370

onlyif mysql # aggregate syntax: 
query I rowsort label-1624
SELECT DISTINCT + - ( + MAX( DISTINCT 55 ) ) col0
----
-55

skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + - ( + MAX ( DISTINCT 55 ) ) col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT DISTINCT - COUNT( * ) * + 79 + + 56
----
-23

skipif mysql # not compatible
query I rowsort label-1625
SELECT DISTINCT - COUNT ( * ) * + 79 + + 56
----
-23

query I rowsort
SELECT ALL + - 24 * 67 * + CASE + 52 WHEN + + 66 - - - 18 + - + 50 + - - 62 + + 20 * + 57 THEN COALESCE ( 8, + 44, 21 ) * + 61 * 57 END - + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1627
SELECT - + 30 * - ( + + CASE + 68 WHEN + 41 + - - 88 / + SUM( ALL 58 ) THEN NULL ELSE + 54 END ) AS col2, MAX( ALL - - 18 )
----
1620
18

skipif mysql # not compatible
query II rowsort label-1627
SELECT - + 30 * - ( + + CASE + 68 WHEN + 41 + - - 88 / + SUM ( ALL 58 ) THEN NULL ELSE + 54 END ) AS col2, MAX ( ALL - - 18 )
----
1620
18

query I rowsort
SELECT - 29 - 49 + 9 AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT - 33 * - - 85 * - COUNT( * ) AS col1
----
2805

skipif mysql # not compatible
query I rowsort label-1629
SELECT - 33 * - - 85 * - COUNT ( * ) AS col1
----
2805

query I rowsort
SELECT - 45 + - - 68 AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT + 51 - + 42 + - - 6 DIV - ( + - 45 ) * - - 1 - - ( COUNT( * ) )
----
10

skipif mysql # not compatible
query I rowsort label-1631
SELECT + 51 - + 42 + - - 6 / - ( + - 45 ) * - - 1 - - ( COUNT ( * ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT + 27 - - 80 - COUNT( * ) + SUM( + 60 ) + + 9
----
175

skipif mysql # not compatible
query I rowsort label-1632
SELECT + 27 - - 80 - COUNT ( * ) + SUM ( + 60 ) + + 9
----
175

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT - CASE - + MAX( - - 36 ) WHEN + COALESCE ( + ( - 59 ), CAST( - 27 AS SIGNED ), - 48 / - CAST( NULL AS SIGNED ) - - 43 + 45 ) THEN + ( - 35 ) WHEN + 58 THEN - 34 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1634
SELECT - CASE - + MAX ( - - 36 ) WHEN + COALESCE ( + ( - 59 ), CAST ( - 27 AS INTEGER ), - 48 / - CAST ( NULL AS INTEGER ) - - 43 + 45 ) THEN + ( - 35 ) WHEN + 58 THEN - 34 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT - 34 * + + 87 * + COUNT( * ) AS col2
----
-2958

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT - 34 * + + 87 * + COUNT ( * ) AS col2
----
-2958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT + COALESCE ( - NULLIF ( 48, + COUNT( DISTINCT COALESCE ( - - 49, 71 ) ) + + + 25 ), - COUNT( * ) * + 80 * - CAST( + 14 AS SIGNED ) - + 93 + 12 - - 78 + + 52 + 49 - - 78 * + - 40 * + - 4 * 80 * - - 32 ) + + 96 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1636
SELECT + COALESCE ( - NULLIF ( 48, + COUNT ( DISTINCT COALESCE ( - - 49, 71 ) ) + + + 25 ), - COUNT ( * ) * + 80 * - CAST ( + 14 AS INTEGER ) - + 93 + 12 - - 78 + + 52 + 49 - - 78 * + - 40 * + - 4 * 80 * - - 32 ) + + 96 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT ALL COUNT( * ) + - 53 * - 27
----
1432

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL COUNT ( * ) + - 53 * - 27
----
1432

query I rowsort
SELECT + 32 * + 78
----
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-1639
SELECT 38 DIV - ( - 97 ) * 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1639
SELECT 38 / - ( - 97 ) * 98 AS col1
----
0

query I rowsort
SELECT DISTINCT 61 + 25 + - + 90 - 85 * - 20 + - - 86 + + ( + - 23 ) AS col1
----
1759

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1641
SELECT + CAST( 31 AS SIGNED ) DIV COUNT( * ) + - ( + + MIN( DISTINCT - 1 ) )
----
32

skipif mysql # not compatible
query I rowsort label-1641
SELECT + CAST ( 31 AS INTEGER ) / COUNT ( * ) + - ( + + MIN ( DISTINCT - 1 ) )
----
32

query I rowsort
SELECT ALL 13 * 62
----
806

query I rowsort
SELECT DISTINCT - 14 + 83 * 14 * + 83
----
96432

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT COALESCE ( + + ( COUNT( - + 91 ) ), + 44 * + MIN( ALL - ( + + 60 ) ) * + 69 ) + 92 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1644
SELECT COALESCE ( + + ( COUNT ( - + 91 ) ), + 44 * + MIN ( ALL - ( + + 60 ) ) * + 69 ) + 92 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT DISTINCT 76 * - 98 + + 51 - + MAX( ALL + 35 ) DIV 31 * 0 + MIN( ALL + 76 ) DIV - 27
----
-7399

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT 76 * - 98 + + 51 - + MAX ( ALL + 35 ) / 31 * 0 + MIN ( ALL + 76 ) / - 27
----
-7399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1646
SELECT 92 * + 31 * - CAST( 53 AS SIGNED ) AS col0
----
-151156

skipif mysql # not compatible
query I rowsort label-1646
SELECT 92 * + 31 * - CAST ( 53 AS INTEGER ) AS col0
----
-151156

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT ALL + ( + 12 ) * - - NULLIF ( - 90, + COUNT( * ) ) * - - 28
----
-30240

skipif mysql # not compatible
query I rowsort label-1647
SELECT ALL + ( + 12 ) * - - NULLIF ( - 90, + COUNT ( * ) ) * - - 28
----
-30240

query I rowsort
SELECT 10 + - ( + - 34 ) * + - 80 col1
----
-2710

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + 54 * + NULLIF ( + COUNT( * ), + 76 + + + 3 ) - - ( - - 24 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 54 * + NULLIF ( + COUNT ( * ), + 76 + + + 3 ) - - ( - - 24 ) AS col2
----
78

query I rowsort
SELECT 0 + 46 AS col1
----
46

query I rowsort
SELECT DISTINCT + - 12 - + 55 col1
----
-67

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

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL - - NULLIF ( + 96, - ( COUNT ( * ) ) )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1653
SELECT DISTINCT - - 0 DIV + 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT - - 0 / + 83 col2
----
0

query I rowsort
SELECT DISTINCT - - 78 col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT DISTINCT + 37 - - - COUNT( * ) + - - 52 + + 96 * 51 * + - 0 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + 37 - - - COUNT ( * ) + - - 52 + + 96 * 51 * + - 0 AS col2
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-1656
SELECT + 26 + - - ( - + 84 ) col1, 81 + + CASE + + ( + 35 ) WHEN - 88 THEN NULL WHEN - - 97 + - CASE - - 69 WHEN 90 THEN NULL WHEN + 4 THEN 25 ELSE + 53 END THEN - - COUNT( * ) + 6 END / + 37 * - 53
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-1656
SELECT + 26 + - - ( - + 84 ) col1, 81 + + CASE + + ( + 35 ) WHEN - 88 THEN NULL WHEN - - 97 + - CASE - - 69 WHEN 90 THEN NULL WHEN + 4 THEN 25 ELSE + 53 END THEN - - COUNT ( * ) + 6 END / + 37 * - 53
----
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT DISTINCT - - COUNT( * ) - + 84 * - - 28
----
-2351

skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT - - COUNT ( * ) - + 84 * - - 28
----
-2351

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT DISTINCT - - 8 * 18 DIV - COUNT( * ) AS col1
----
-144

skipif mysql # not compatible
query I rowsort label-1658
SELECT DISTINCT - - 8 * 18 / - COUNT ( * ) AS col1
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-1659
SELECT + - 58 AS col1, COUNT( * ) + - 98 * + 0 AS col0
----
-58
1

skipif mysql # not compatible
query II rowsort label-1659
SELECT + - 58 AS col1, COUNT ( * ) + - 98 * + 0 AS col0
----
-58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT + 54 * 46 + + NULLIF ( + - MAX( + ( + - 44 ) ), COUNT( * ) ) AS col0
----
2528

skipif mysql # not compatible
query I rowsort label-1660
SELECT + 54 * 46 + + NULLIF ( + - MAX ( + ( + - 44 ) ), COUNT ( * ) ) AS col0
----
2528

query I rowsort
SELECT ALL + 13 * - - 29 AS col2
----
377

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

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - + COALESCE ( + + 44, COUNT ( * ) )
----
-44

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

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

query I rowsort
SELECT 25 * + + 8
----
200

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

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

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

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

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

query II rowsort
SELECT DISTINCT 78 col0, 64 AS col1
----
78
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT 22 - - + 75 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-1669
SELECT 22 - - + 75 * COUNT ( * )
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1670
SELECT ALL + 57 + 3 - + - 36 * 72 * COUNT( * ) + + 71 + 8 + + COUNT( * ) * - 28 DIV 68 * CAST( + + COUNT( * ) AS SIGNED ) AS col1
----
2731

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL + 57 + 3 - + - 36 * 72 * COUNT ( * ) + + 71 + 8 + + COUNT ( * ) * - 28 / 68 * CAST ( + + COUNT ( * ) AS INTEGER ) AS col1
----
2731

query I rowsort
SELECT 31 - - 39
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT ALL 20 + - + COUNT( * ) + 83 * + MIN( - - ( + 91 ) )
----
7572

skipif mysql # not compatible
query I rowsort label-1672
SELECT ALL 20 + - + COUNT ( * ) + 83 * + MIN ( - - ( + 91 ) )
----
7572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1673
SELECT ALL + CAST( - + 85 AS SIGNED ) + - 33
----
-118

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL + CAST ( - + 85 AS INTEGER ) + - 33
----
-118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1674
SELECT DISTINCT - COALESCE ( + 13, + - CASE - CAST( NULL AS SIGNED ) WHEN + + 68 THEN NULL WHEN + 89 THEN + MIN( + - 18 ) END ) + 53 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - COALESCE ( + 13, + - CASE - CAST ( NULL AS INTEGER ) WHEN + + 68 THEN NULL WHEN + 89 THEN + MIN ( + - 18 ) END ) + 53 AS col0
----
40

query I rowsort
SELECT ALL 72 + - 79
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT SUM( - + 38 ) - - - 83
----
-121

skipif mysql # not compatible
query I rowsort label-1676
SELECT SUM ( - + 38 ) - - - 83
----
-121

query I rowsort
SELECT + 86 - - 20
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT DISTINCT SUM( DISTINCT - 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-1678
SELECT DISTINCT SUM ( DISTINCT - 93 )
----
-93

query II rowsort
SELECT DISTINCT - 89 col2, + 69 * - - 46
----
-89
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT + 2 / + + MIN( ALL - 48 ) * + 98 * + 57 + + 72 + CASE + + 79 WHEN - + 82 THEN - - 21 * + + 95 END / + ( CAST( NULL AS SIGNED ) ) * - CAST( COUNT( * ) AS SIGNED ) * 87 * + - 33 - - + 65 * + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT + 2 / + + MIN ( ALL - 48 ) * + 98 * + 57 + + 72 + CASE + + 79 WHEN - + 82 THEN - - 21 * + + 95 END / + ( CAST ( NULL AS INTEGER ) ) * - CAST ( COUNT ( * ) AS INTEGER ) * 87 * + - 33 - - + 65 * + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT - 8 * 14 * + 17 * - COUNT( ALL - + ( - 57 ) ) + 91 AS col2
----
1995

skipif mysql # not compatible
query I rowsort label-1681
SELECT - 8 * 14 * + 17 * - COUNT ( ALL - + ( - 57 ) ) + 91 AS col2
----
1995

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1682
SELECT - ( MIN( - 94 ) ) + - - CAST( NULL AS SIGNED ) + - 48 * + 91 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT - ( MIN ( - 94 ) ) + - - CAST ( NULL AS INTEGER ) + - 48 * + 91 * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT - 35 - 26 - - 43
----
-18

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

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

query I rowsort
SELECT + 15 + + ( 37 )
----
52

query II rowsort
SELECT ALL - 96 AS col2, 42 AS col0
----
-96
42

query I rowsort
SELECT + CASE - + 45 WHEN - ( + 64 ) THEN NULL WHEN + + 19 THEN + 87 ELSE NULL END
----
NULL

query II rowsort
SELECT 99, + ( - ( 12 ) ) * + 55 AS col0
----
99
-660

query I rowsort
SELECT - 91 * - - 57 * + 79
----
-409773

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

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

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

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

query I rowsort
SELECT 32 + + 2 * + ( - - 99 )
----
230

query I rowsort
SELECT DISTINCT NULLIF ( + 40, - 84 + - 76 ) + + - 52 AS col0
----
-12

query I rowsort
SELECT ALL - 16 + + 98 col0
----
82

query I rowsort
SELECT ALL + 61 * + 54 col0
----
3294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1696
SELECT 51 DIV - COUNT( DISTINCT - CAST( + 21 AS SIGNED ) ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-1696
SELECT 51 / - COUNT ( DISTINCT - CAST ( + 21 AS INTEGER ) ) col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + CASE + 11 WHEN + - MIN( + - 1 ) / 58 - - 9 THEN - 73 WHEN - 11 THEN NULL END + - - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + CASE + 11 WHEN + - MIN ( + - 1 ) / 58 - - 9 THEN - 73 WHEN - 11 THEN NULL END + - - 28
----
NULL

query II rowsort
SELECT 57 - 99 AS col1, 96
----
-42
96

query I rowsort
SELECT + 32 + + - 47 AS col2
----
-15

query I rowsort
SELECT - 38 - - - 67 + 61
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT - COUNT( * ) + + 76
----
75

skipif mysql # not compatible
query I rowsort label-1701
SELECT - COUNT ( * ) + + 76
----
75

query I rowsort
SELECT - ( + ( + 86 ) ) + 64
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 7 + 33 * - + 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 7 + 33 * - + 45 AS col2
----
NULL

query I rowsort
SELECT ALL - 17 * - 20
----
340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1705
SELECT ALL + 26 + + - CAST( NULL AS SIGNED ) AS col2, + 71 DIV + 71 * COUNT( * ) + + 6 * + + 33
----
NULL
199

skipif mysql # not compatible
query II rowsort label-1705
SELECT ALL + 26 + + - CAST ( NULL AS INTEGER ) AS col2, + 71 / + 71 * COUNT ( * ) + + 6 * + + 33
----
NULL
199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1706
SELECT DISTINCT - 31 - - 60 + - 97 DIV - - 57 + + - COUNT( * ) * - 69
----
97

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - 31 - - 60 + - 97 / - - 57 + + - COUNT ( * ) * - 69
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT DISTINCT 94 * COUNT( DISTINCT 59 ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT 94 * COUNT ( DISTINCT 59 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT ALL + COUNT( * ) * + 67 * + 23 * + + ( + + 71 ) AS col1
----
109411

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + COUNT ( * ) * + 67 * + 23 * + + ( + + 71 ) AS col1
----
109411

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT DISTINCT 29 * 3 DIV - 73 - 55 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT 29 * 3 / - 73 - 55 AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT + CASE 24 WHEN COUNT( * ) THEN COUNT( * ) WHEN - NULLIF ( - - 1, + NULLIF ( + 25, - 37 ) * - COUNT( * ) - - - 78 ) + 41 THEN NULL END * - 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT + CASE 24 WHEN COUNT ( * ) THEN COUNT ( * ) WHEN - NULLIF ( - - 1, + NULLIF ( + 25, - 37 ) * - COUNT ( * ) - - - 78 ) + 41 THEN NULL END * - 21 AS col1
----
NULL

query II rowsort
SELECT + ( + 76 ) AS col1, + 21
----
76
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + 9 * + + NULLIF ( + + COUNT( * ), 90 + - 91 )
----
9

skipif mysql # not compatible
query I rowsort label-1712
SELECT + 9 * + + NULLIF ( + + COUNT ( * ), 90 + - 91 )
----
9

query I rowsort
SELECT 82 * - + 29 - - 54
----
-2324

query I rowsort
SELECT - + 4 * + 21 - - 85 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT ALL - 96 DIV + - COUNT( * ) + + - 49 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL - 96 / + - COUNT ( * ) + + - 49 AS col2
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1716
SELECT ALL - 11 * 7 * + NULLIF ( - ( - 3 ), - 82 ) * - - CAST( 68 AS SIGNED ) * 29 + + - COUNT( * ) - - 47 + + + 32 * + - 94 + + 61 * 63 + - 9
----
-454660

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL - 11 * 7 * + NULLIF ( - ( - 3 ), - 82 ) * - - CAST ( 68 AS INTEGER ) * 29 + + - COUNT ( * ) - - 47 + + + 32 * + - 94 + + 61 * 63 + - 9
----
-454660

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT ALL 81 DIV + + 44 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL 81 / + + 44 AS col1
----
1

query I rowsort
SELECT + 92 + 4 AS col2
----
96

query II rowsort
SELECT ALL + 71 AS col2, 41
----
71
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT DISTINCT - 78 * - 67 + + + 44 - + 40 + + 7 + - COUNT( * ) * - 51 - + 3
----
5285

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - 78 * - 67 + + + 44 - + 40 + + 7 + - COUNT ( * ) * - 51 - + 3
----
5285

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT SUM( ALL - 43 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-1721
SELECT SUM ( ALL - 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT + 33 * + - 11 DIV + + COUNT( * ) AS col1
----
-363

skipif mysql # not compatible
query I rowsort label-1722
SELECT + 33 * + - 11 / + + COUNT ( * ) AS col1
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT + 69 * + 75 / - - CASE + + 85 WHEN 13 THEN - - COUNT( * ) END + + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT + 69 * + 75 / - - CASE + + 85 WHEN 13 THEN - - COUNT ( * ) END + + 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT DISTINCT MIN( NULLIF ( - + 83, - 83 * + 67 ) ) * - - 75 + + + 70 + + SUM( - 9 ) + - 4 * - COUNT( * )
----
-6160

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT MIN ( NULLIF ( - + 83, - 83 * + 67 ) ) * - - 75 + + + 70 + + SUM ( - 9 ) + - 4 * - COUNT ( * )
----
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT - 15 + - COUNT( * ) * - 93 + + SUM( - 63 ) + + 8 * 63 * ( 46 ) + + 79 + + 59 * - 13
----
22511

skipif mysql # not compatible
query I rowsort label-1725
SELECT - 15 + - COUNT ( * ) * - 93 + + SUM ( - 63 ) + + 8 * 63 * ( 46 ) + + 79 + + 59 * - 13
----
22511

onlyif mysql # aggregate syntax: 
query II rowsort label-1726
SELECT + NULLIF ( 99, - MIN( DISTINCT - 30 ) ) * - MAX( - 1 ) AS col1, 44 AS col1
----
99
44

skipif mysql # not compatible
query II rowsort label-1726
SELECT + NULLIF ( 99, - MIN ( DISTINCT - 30 ) ) * - MAX ( - 1 ) AS col1, 44 AS col1
----
99
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT MAX( DISTINCT - - 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-1727
SELECT MAX ( DISTINCT - - 57 ) AS col1
----
57

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

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

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

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

query I rowsort
SELECT + 43 - - ( - 67 ) AS col1
----
-24

query I rowsort
SELECT - 7 * - + 22
----
154

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

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

query I rowsort
SELECT ALL - 2 * ( + 90 )
----
-180

query I rowsort
SELECT + - 96 * 81 * 42
----
-326592

query I rowsort
SELECT - + 63 * + 4 AS col0
----
-252

query I rowsort
SELECT DISTINCT 22 * + + 37 + + 66 + + 26
----
906

query I rowsort
SELECT ALL 26 * + 31 * - + 66 AS col1
----
-53196

query I rowsort
SELECT ALL - 83 * - 14 AS col2
----
1162

query I rowsort
SELECT - 70 - - - 67 * - - 0 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT - + COALESCE ( + 43, - 6, - MAX( DISTINCT 8 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-1740
SELECT - + COALESCE ( + 43, - 6, - MAX ( DISTINCT 8 ) )
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1741
SELECT - - CAST( - + 33 AS SIGNED ) DIV - 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT - - CAST ( - + 33 AS INTEGER ) / - 53 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1742
SELECT + - 58 DIV - + SUM( + 37 ) + - 71 + - 53 + + + COALESCE ( 53, 82 ) + + - 84
----
-154

skipif mysql # not compatible
query I rowsort label-1742
SELECT + - 58 / - + SUM ( + 37 ) + - 71 + - 53 + + + COALESCE ( 53, 82 ) + + - 84
----
-154

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

skipif mysql # not compatible
query I rowsort label-1743
SELECT + MAX ( - 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT - - 95 * 19 + + + 52 - - CAST( + - 43 AS SIGNED ) + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1744
SELECT - - 95 * 19 + + + 52 - - CAST ( + - 43 AS INTEGER ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1746
SELECT 31 / + - 64 * COALESCE ( + 16, - 53 ) * - COUNT( * ) * + 58 * + CAST( NULL AS SIGNED ) * - AVG ( DISTINCT + 38 ) + 34 - - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT 31 / + - 64 * COALESCE ( + 16, - 53 ) * - COUNT ( * ) * + 58 * + CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT + 38 ) + 34 - - 25 AS col0
----
NULL

query I rowsort
SELECT - + COALESCE ( 67, - NULLIF ( + 26, + 82 * + 44 + + 99 * + + 16 * - + 12 * - 88 ) * 67 * + 7 * + 58 + - ( 98 ) * 82 ) * + 12 * - 74 + 91 + 70 AS col2
----
59657

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1748
SELECT ALL + ( + 19 ) DIV COALESCE ( - 90, - + ( - ( + 61 ) ) ) + + CAST( 52 AS SIGNED ) + - 17
----
35

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + ( + 19 ) / COALESCE ( - 90, - + ( - ( + 61 ) ) ) + + CAST ( 52 AS INTEGER ) + - 17
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT DISTINCT - - ( 12 ) DIV 37 + 77 * + NULLIF ( - 84, + 77 * 61 + 87 + 99 ) col1
----
-6468

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - - ( 12 ) / 37 + 77 * + NULLIF ( - 84, + 77 * 61 + 87 + 99 ) col1
----
-6468

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT - 69 DIV + 50 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1751
SELECT - 69 / + 50 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT CAST( - SUM( 33 ) AS SIGNED )
----
-33

skipif mysql # not compatible
query I rowsort label-1752
SELECT CAST ( - SUM ( 33 ) AS INTEGER )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 25 * - COUNT( * ) * + 18 AS col0
----
-450

skipif mysql # not compatible
query I rowsort label-1753
SELECT 25 * - COUNT ( * ) * + 18 AS col0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT COUNT( * ) + - + COUNT( ALL + 39 ) + - 23 + + COALESCE ( - COUNT( * ), + 99 - 89 ) * COUNT( * ) * + - COUNT( * ) * + + COUNT( * ) * 43 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1754
SELECT COUNT ( * ) + - + COUNT ( ALL + 39 ) + - 23 + + COALESCE ( - COUNT ( * ), + 99 - 89 ) * COUNT ( * ) * + - COUNT ( * ) * + + COUNT ( * ) * 43 AS col1
----
20

query II rowsort
SELECT DISTINCT - ( + 93 ) AS col1, - 68 * - - 72
----
-93
-4896

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL 97 * COUNT( * ) * + 94 AS col1
----
9118

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL 97 * COUNT ( * ) * + 94 AS col1
----
9118

query I rowsort
SELECT 57 + + 71
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT DISTINCT - 53 DIV + 68 * 25 * + 47
----
0

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT - 53 / + 68 * 25 * + 47
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1759
SELECT DISTINCT - 44 DIV + 91, 45 * - MIN( - 67 ) AS col0
----
0
3015

skipif mysql # not compatible
query II rowsort label-1759
SELECT DISTINCT - 44 / + 91, 45 * - MIN ( - 67 ) AS col0
----
0
3015

onlyif mysql # aggregate syntax: 
query II rowsort label-1760
SELECT DISTINCT MIN( DISTINCT - 47 ) * - 42 - 70 AS col2, + 65 + 20
----
1904
85

skipif mysql # not compatible
query II rowsort label-1760
SELECT DISTINCT MIN ( DISTINCT - 47 ) * - 42 - 70 AS col2, + 65 + 20
----
1904
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT MIN( - - 29 ) * - ( 2 ) * - ( + 49 ) + - 59
----
2783

skipif mysql # not compatible
query I rowsort label-1761
SELECT MIN ( - - 29 ) * - ( 2 ) * - ( + 49 ) + - 59
----
2783

query I rowsort
SELECT ALL 61 * + ( 9 )
----
549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT CAST( - 54 AS SIGNED ) - + 92
----
-146

skipif mysql # not compatible
query I rowsort label-1763
SELECT CAST ( - 54 AS INTEGER ) - + 92
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT DISTINCT 55 * - - COUNT( * ) col1
----
55

skipif mysql # not compatible
query I rowsort label-1764
SELECT DISTINCT 55 * - - COUNT ( * ) col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT 66 + - MIN( - ( - ( 46 ) ) )
----
20

skipif mysql # not compatible
query I rowsort label-1765
SELECT 66 + - MIN ( - ( - ( 46 ) ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT NULLIF ( COUNT( * ), 34 ) - 50 + + + 8 * - 94 AS col2
----
-801

skipif mysql # not compatible
query I rowsort label-1766
SELECT NULLIF ( COUNT ( * ), 34 ) - 50 + + + 8 * - 94 AS col2
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT 11 + 0 - - 67 * + 34 + + COUNT( DISTINCT + 91 ) col1
----
2290

skipif mysql # not compatible
query I rowsort label-1767
SELECT 11 + 0 - - 67 * + 34 + + COUNT ( DISTINCT + 91 ) col1
----
2290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1768
SELECT - 27 * + 34, 1 DIV NULLIF ( 83, + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2
----
-918
0

skipif mysql # not compatible
query II rowsort label-1768
SELECT - 27 * + 34, 1 / NULLIF ( 83, + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2
----
-918
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1769
SELECT DISTINCT 97 * 31 - - 4 + + 2 * + 92 + + 45 + + 84 DIV - 74
----
3239

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT 97 * 31 - - 4 + + 2 * + 92 + + 45 + + 84 / - 74
----
3239

query I rowsort
SELECT 23 + - + 81 AS col0
----
-58

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

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

skipif mysql # not compatible
query I rowsort label-1772
SELECT - NULLIF ( CAST ( + + CAST ( + - ( - - 23 ) AS INTEGER ) AS INTEGER ), - - 45 ) AS col1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1773
SELECT ALL 60 * 40 - COUNT( * ) DIV - + 46 + + 98
----
2498

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL 60 * 40 - COUNT ( * ) / - + 46 + + 98
----
2498

query I rowsort
SELECT + 4 + ( - 99 ) - 61
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT COUNT( * ) * 65 + + + NULLIF ( - + 88, 21 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1775
SELECT COUNT ( * ) * 65 + + + NULLIF ( - + 88, 21 ) AS col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT ALL 27 * - 5 + COUNT( * ) AS col0
----
-134

skipif mysql # not compatible
query I rowsort label-1776
SELECT ALL 27 * - 5 + COUNT ( * ) AS col0
----
-134

query I rowsort
SELECT ALL + 5 + + 89 + - + COALESCE ( - 68, + - 33 )
----
162

query I rowsort
SELECT NULLIF ( - 73, - + 26 )
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1779
SELECT ALL 40 * - 89 * - 5 + - - 88, COALESCE ( - 92, 98 * - 47 + + COUNT( * ), - CASE + 51 WHEN 58 THEN 69 + COUNT( * ) + - 43 DIV + 68 * - 36 WHEN - 22 THEN NULL ELSE NULL END DIV - 27 + - 48 ) col0
----
17888
-92

skipif mysql # not compatible
query II rowsort label-1779
SELECT ALL 40 * - 89 * - 5 + - - 88, COALESCE ( - 92, 98 * - 47 + + COUNT ( * ), - CASE + 51 WHEN 58 THEN 69 + COUNT ( * ) + - 43 / + 68 * - 36 WHEN - 22 THEN NULL ELSE NULL END / - 27 + - 48 ) col0
----
17888
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1780
SELECT ALL - 14 DIV - 93 + - 99 + + MIN( - 16 ), MIN( ALL 7 ) * - + 45 AS col0
----
-115
-315

skipif mysql # not compatible
query II rowsort label-1780
SELECT ALL - 14 / - 93 + - 99 + + MIN ( - 16 ), MIN ( ALL 7 ) * - + 45 AS col0
----
-115
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT 10 * + + ( + - 66 ) * - 81 + + + COUNT( * ) + + 97 col0
----
53558

skipif mysql # not compatible
query I rowsort label-1781
SELECT 10 * + + ( + - 66 ) * - 81 + + + COUNT ( * ) + + 97 col0
----
53558

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ALL - COUNT( * ) + + - 35 - + 4 + + COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL - COUNT ( * ) + + - 35 - + 4 + + COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT 67 + 38
----
105

query I rowsort
SELECT 70 * - + 39
----
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT - COALESCE ( - COUNT( * ), + + 40, - + 32 * ( - - 48 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT - COALESCE ( - COUNT ( * ), + + 40, - + 32 * ( - - 48 ) ) AS col0
----
1

query I rowsort
SELECT ALL - 57 - 86
----
-143

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1787
SELECT + 61 * + + 71 + + + CAST( NULL AS DECIMAL ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT + 61 * + + 71 + + + CAST ( NULL AS REAL ) * 63
----
NULL

query I rowsort
SELECT ALL - ( + 7 ) * - - 56
----
-392

query I rowsort
SELECT ALL - 58 - + + 44 AS col0
----
-102

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1791
SELECT ALL - 40 - + + ( + 73 ) * - COALESCE ( + COUNT( * ), + 89 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - 40 - + + ( + 73 ) * - COALESCE ( + COUNT ( * ), + 89 ) AS col0
----
33

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

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

query II rowsort
SELECT 57 AS col0, ( - - ( - 24 ) ) + 82
----
57
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT - 22 * ( + + 68 ) + COUNT( * )
----
-1495

skipif mysql # not compatible
query I rowsort label-1794
SELECT - 22 * ( + + 68 ) + COUNT ( * )
----
-1495

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT 75 * + + NULLIF ( - - 43, COUNT( * ) * + + 43 * + - 25 ) AS col0
----
3225

skipif mysql # not compatible
query I rowsort label-1796
SELECT 75 * + + NULLIF ( - - 43, COUNT ( * ) * + + 43 * + - 25 ) AS col0
----
3225

onlyif mysql # DIV for integer division: 
query I rowsort label-1797
SELECT ALL 7 DIV - + 87 * - 11
----
0

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL 7 / - + 87 * - 11
----
0

query II rowsort
SELECT - 0 AS col0, ( + 73 ) + - + 4 AS col0
----
0
69

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

skipif mysql # not compatible
query II rowsort label-1799
SELECT ALL COUNT ( * ), 63 AS col0
----
1
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT DISTINCT 60 * - 59 * + + COUNT( * ) * - 83
----
293820

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT 60 * - 59 * + + COUNT ( * ) * - 83
----
293820

onlyif mysql # DIV for integer division: 
query I rowsort label-1801
SELECT 7 DIV 74 + 60
----
60

skipif mysql # not compatible
query I rowsort label-1801
SELECT 7 / 74 + 60
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1802
SELECT ALL + + COUNT( ALL - 86 ) DIV - ( + + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL + + COUNT ( ALL - 86 ) / - ( + + 84 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT MAX( DISTINCT + + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1804
SELECT MAX ( DISTINCT + + 6 ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + MIN( DISTINCT 32 ) - + 55 * + - COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-1805
SELECT + MIN ( DISTINCT 32 ) - + 55 * + - COUNT ( * ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT COUNT( * ) * 58 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT COUNT ( * ) * 58 AS col0
----
58

query I rowsort
SELECT 17 + - + 35
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1808
SELECT ALL - 0 + + 22 DIV - ( 87 )
----
0

skipif mysql # not compatible
query I rowsort label-1808
SELECT ALL - 0 + + 22 / - ( 87 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1809
SELECT - COUNT( * ) + - - 14 DIV + 45 * + + COUNT( * ) * - 52, MAX( 56 ) col2
----
-1
56

skipif mysql # not compatible
query II rowsort label-1809
SELECT - COUNT ( * ) + - - 14 / + 45 * + + COUNT ( * ) * - 52, MAX ( 56 ) col2
----
-1
56

onlyif mysql # aggregate syntax: 
query II rowsort label-1810
SELECT - 61, 81 * + COUNT( * ) * - + 67 col1
----
-61
-5427

skipif mysql # not compatible
query II rowsort label-1810
SELECT - 61, 81 * + COUNT ( * ) * - + 67 col1
----
-61
-5427

query I rowsort
SELECT ALL 72 + 93 AS col1
----
165

query I rowsort
SELECT - NULLIF ( - 20, - + 54 ) AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT DISTINCT 34 + 35 + - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - 39 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT 34 + 35 + - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - 39 col2
----
NULL

query I rowsort
SELECT COALESCE ( - + ( 60 ), + + 85, + - 48 + + 42, + - ( + 40 ) + + 72 * - + 69 + 2 )
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1815
SELECT + - 68 * - - 33 * 60 * + + 79 + + COUNT( * ), 11 * + - CAST( NULL AS SIGNED ) AS col0
----
-10636559
NULL

skipif mysql # not compatible
query II rowsort label-1815
SELECT + - 68 * - - 33 * 60 * + + 79 + + COUNT ( * ), 11 * + - CAST ( NULL AS INTEGER ) AS col0
----
-10636559
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1816
SELECT + 35 + 41 + + COUNT( * ) DIV + + ( + 55 ) DIV + COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-1816
SELECT + 35 + 41 + + COUNT ( * ) / + + ( + 55 ) / + COUNT ( * )
----
76

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1818
SELECT DISTINCT CASE + + SUM( ALL - + 32 ) WHEN + 38 THEN 40 WHEN + 36 + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 21 THEN 89 * - + 2 ELSE - 99 + - 75 - 54 END * + + 85
----
-19380

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT CASE + + SUM ( ALL - + 32 ) WHEN + 38 THEN 40 WHEN + 36 + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 21 THEN 89 * - + 2 ELSE - 99 + - 75 - 54 END * + + 85
----
-19380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1819
SELECT + ( + 11 ) DIV 30 - 30 DIV ( - 13 ) + + + COUNT( * ) + - 99 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-1819
SELECT + ( + 11 ) / 30 - 30 / ( - 13 ) + + + COUNT ( * ) + - 99 AS col0
----
-96

query II rowsort
SELECT + 10 * - - 76 col1, - 27
----
760
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + COALESCE ( - - 37, + - 53 - - 6, + + COUNT( * ) )
----
37

skipif mysql # not compatible
query I rowsort label-1821
SELECT + COALESCE ( - - 37, + - 53 - - 6, + + COUNT ( * ) )
----
37

query II rowsort
SELECT ALL + 86 col0, 55 col2
----
86
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1823
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * + + 59 * 66 * - 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1823
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * + + 59 * 66 * - 3 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 2 AS col2, + 47 AS col0
----
2
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1825
SELECT ALL + 5, - NULLIF ( 28, 2 ) + + CAST( NULL AS SIGNED ) AS col0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-1825
SELECT ALL + 5, - NULLIF ( 28, 2 ) + + CAST ( NULL AS INTEGER ) AS col0
----
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1826
SELECT + COUNT( * ) / + 99 * + CASE - 79 WHEN + AVG ( + 37 ) * + 0 * + 72 THEN - - AVG ( DISTINCT - 3 ) - + 0 * + ( + ( + - CASE - 97 WHEN - COUNT( * ) * - COUNT( * ) * - 81 + CAST( 25 AS SIGNED ) + + NULLIF ( 88, - 80 * - COUNT( * ) + + 59 * - 90 ) THEN NULL ELSE + + 91 END ) ) + COUNT( * ) - - - 56 - + 40 END * + - MAX( ALL 92 ) + - 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT + COUNT ( * ) / + 99 * + CASE - 79 WHEN + AVG ( + 37 ) * + 0 * + 72 THEN - - AVG ( DISTINCT - 3 ) - + 0 * + ( + ( + - CASE - 97 WHEN - COUNT ( * ) * - COUNT ( * ) * - 81 + CAST ( 25 AS INTEGER ) + + NULLIF ( 88, - 80 * - COUNT ( * ) + + 59 * - 90 ) THEN NULL ELSE + + 91 END ) ) + COUNT ( * ) - - - 56 - + 40 END * + - MAX ( ALL 92 ) + - 52 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT 99 * 9 + - - 70 AS col1
----
961

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

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

query II rowsort
SELECT + 98 AS col1, + 79 + 42
----
98
121

query I rowsort
SELECT 0 * - 99 + + - 94 AS col2
----
-94

query I rowsort
SELECT ALL NULLIF ( + + 66, - - 82 ) * - 20 + - ( - ( 68 ) )
----
-1252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1834
SELECT - + 84 + - 39 + - - 65 * + SUM( - 76 ) * + 34 + - 86 + CAST( NULL AS SIGNED ) + + + 23 + SUM( DISTINCT 78 ) * 5 * 49 * - 29 * - + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-1834
SELECT - + 84 + - 39 + - - 65 * + SUM ( - 76 ) * + 34 + - 86 + CAST ( NULL AS INTEGER ) + + + 23 + SUM ( DISTINCT 78 ) * 5 * 49 * - 29 * - + 91
----
NULL

query I rowsort
SELECT - 76 + + ( + 86 )
----
10

query II rowsort
SELECT - 21 AS col1, - 11
----
-21
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1837
SELECT ALL - 4 + + MIN( DISTINCT 67 )
----
63

skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL - 4 + + MIN ( DISTINCT 67 )
----
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1838
SELECT - 59 - + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT - 59 - + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) AS col2
----
NULL

query II rowsort
SELECT - - 44 AS col0, - 5
----
44
-5

query I rowsort
SELECT + 73 + - NULLIF ( + 36, + - 83 * - - 47 )
----
37

query I rowsort
SELECT ALL + 13 + 22 AS col1
----
35

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

query I rowsort
SELECT + + 44 + - 21
----
23

query I rowsort
SELECT ALL - + 44 + + 39 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1845
SELECT DISTINCT - 10 + - - 80 AS col2, NULLIF ( + 2, 19 + + - COUNT( * ) ) AS col1
----
70
2

skipif mysql # not compatible
query II rowsort label-1845
SELECT DISTINCT - 10 + - - 80 AS col2, NULLIF ( + 2, 19 + + - COUNT ( * ) ) AS col1
----
70
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT ALL 78 * NULLIF ( - 95, 8 / CAST( - - 44 AS SIGNED ) + - COUNT( * ) + - SUM( + - 49 ) ) AS col1
----
-7410

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL 78 * NULLIF ( - 95, 8 / CAST ( - - 44 AS INTEGER ) + - COUNT ( * ) + - SUM ( + - 49 ) ) AS col1
----
-7410

query II rowsort
SELECT ALL ( - 70 ) AS col0, 65
----
-70
65

query I rowsort
SELECT + + 83 + - - 37 * - 42 col2
----
-1471

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT ALL - 77 + 29 + + MIN( - 24 ) AS col2, - NULLIF ( - + COUNT( * ), + 12 + + + 17 + NULLIF ( 39, 84 ) ) AS col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-1849
SELECT ALL - 77 + 29 + + MIN ( - 24 ) AS col2, - NULLIF ( - + COUNT ( * ), + 12 + + + 17 + NULLIF ( 39, 84 ) ) AS col1
----
-72
1

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT + ( - 32 ) * - - 20 DIV - 20 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-1852
SELECT + ( - 32 ) * - - 20 / - 20 AS col1
----
32

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

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

query I rowsort
SELECT ALL 49 * - 30 AS col0
----
-1470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1855
SELECT - 19 * CAST( + - 97 AS SIGNED ) * + 12 + + - 10
----
22106

skipif mysql # not compatible
query I rowsort label-1855
SELECT - 19 * CAST ( + - 97 AS INTEGER ) * + 12 + + - 10
----
22106

query I rowsort
SELECT - - 6 + - 21 + + + 4 * 83
----
317

query I rowsort
SELECT ALL 80 - - 77 + - 17 col0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1858
SELECT ALL + CAST( - - ( + 71 ) AS SIGNED ) * + 4 AS col1
----
284

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL + CAST ( - - ( + 71 ) AS INTEGER ) * + 4 AS col1
----
284

query I rowsort
SELECT DISTINCT + 57 * 5 AS col2
----
285

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1860
SELECT + 80 + 73 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT + 80 + 73 + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + ( + 48 ) AS col0, + 26
----
48
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1862
SELECT CAST( - - 39 AS SIGNED ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-1862
SELECT CAST ( - - 39 AS INTEGER ) AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1863
SELECT CAST( CASE - 25 WHEN - 85 * CAST( - 38 AS SIGNED ) + - 83 THEN + ( 75 ) * MAX( ALL 25 ) + - - NULLIF ( - MAX( ALL 93 ), 95 + + ( - 18 ) * - 71 ) END AS SIGNED ) AS col2, COALESCE ( 74, + COUNT( * ) )
----
NULL
74

skipif mysql # not compatible
query II rowsort label-1863
SELECT CAST ( CASE - 25 WHEN - 85 * CAST ( - 38 AS INTEGER ) + - 83 THEN + ( 75 ) * MAX ( ALL 25 ) + - - NULLIF ( - MAX ( ALL 93 ), 95 + + ( - 18 ) * - 71 ) END AS INTEGER ) AS col2, COALESCE ( 74, + COUNT ( * ) )
----
NULL
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT + 27 * + + COUNT( * ) - - 17 col2
----
44

skipif mysql # not compatible
query I rowsort label-1864
SELECT + 27 * + + COUNT ( * ) - - 17 col2
----
44

query I rowsort
SELECT - 26 + 73 col0
----
47

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1867
SELECT + ( + 8 ) AS col2, - MAX( ALL + 21 ) * - - ( + CAST( NULL AS SIGNED ) ) + 5
----
8
NULL

skipif mysql # not compatible
query II rowsort label-1867
SELECT + ( + 8 ) AS col2, - MAX ( ALL + 21 ) * - - ( + CAST ( NULL AS INTEGER ) ) + 5
----
8
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT - 2 + 90 + + NULLIF ( - 33, 62 + 33 * 28 + - 50 + - + CASE + 55 WHEN 20 THEN 90 WHEN + 87 THEN - COUNT( * ) ELSE NULL END ) * 1 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-1868
SELECT - 2 + 90 + + NULLIF ( - 33, 62 + 33 * 28 + - 50 + - + CASE + 55 WHEN 20 THEN 90 WHEN + 87 THEN - COUNT ( * ) ELSE NULL END ) * 1 AS col2
----
55

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

query I rowsort
SELECT ALL 78 * + 62
----
4836

query I rowsort
SELECT DISTINCT 96 * - + 11 * - ( - 25 )
----
-26400

query I rowsort
SELECT ALL + 77 * 14 + - 99 * 99
----
-8723

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1873
SELECT DISTINCT - MIN( + 7 ) * + CAST( NULL AS DECIMAL ) + + + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1873
SELECT DISTINCT - MIN ( + 7 ) * + CAST ( NULL AS REAL ) + + + 98 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 70 * - 14 * + - 99 + + 58
----
97078

query I rowsort
SELECT ALL - 98 * + - 66 + 7
----
6475

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

skipif mysql # not compatible
query I rowsort label-1876
SELECT + + 53 / + COUNT ( * ) col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT - + 47 DIV + COALESCE ( + 64, + 60 ) + 16
----
16

skipif mysql # not compatible
query I rowsort label-1877
SELECT - + 47 / + COALESCE ( + 64, + 60 ) + 16
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1878
SELECT - - ( MIN( ALL 69 ) ) * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT - - ( MIN ( ALL 69 ) ) * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT - COUNT( * ) - + 73 * ( + + 62 )
----
-4527

skipif mysql # not compatible
query I rowsort label-1879
SELECT - COUNT ( * ) - + 73 * ( + + 62 )
----
-4527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1880
SELECT DISTINCT - - 3 * + 60 * 9 DIV - - 77 + + + COUNT( DISTINCT 34 ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-1880
SELECT DISTINCT - - 3 * + 60 * 9 / - - 77 + + + COUNT ( DISTINCT 34 ) AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1881
SELECT - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
1

query I rowsort
SELECT + 90 + - 43
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-1883
SELECT DISTINCT + MAX( + COALESCE ( + 99, 3, 22 ) ) AS col0, 7 AS col2
----
99
7

skipif mysql # not compatible
query II rowsort label-1883
SELECT DISTINCT + MAX ( + COALESCE ( + 99, 3, 22 ) ) AS col0, 7 AS col2
----
99
7

query I rowsort
SELECT ALL + - 37 * - - 72 * 65 AS col2
----
-173160

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT COUNT( * ) + COUNT( + - 4 )
----
2

skipif mysql # not compatible
query I rowsort label-1885
SELECT COUNT ( * ) + COUNT ( + - 4 )
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT DISTINCT - SUM( 99 ) AS col0, - 20 * - 39 * + 0 col1
----
-99
0

skipif mysql # not compatible
query II rowsort label-1887
SELECT DISTINCT - SUM ( 99 ) AS col0, - 20 * - 39 * + 0 col1
----
-99
0

query I rowsort
SELECT 60 - 17
----
43

query I rowsort
SELECT 70 + - 13 AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1890
SELECT DISTINCT - 99 * - + SUM( ALL - 72 ) AS col1, - 89 * + CAST( - - ( + COUNT( + 34 ) ) AS SIGNED ) AS col0
----
-7128
-89

skipif mysql # not compatible
query II rowsort label-1890
SELECT DISTINCT - 99 * - + SUM ( ALL - 72 ) AS col1, - 89 * + CAST ( - - ( + COUNT ( + 34 ) ) AS INTEGER ) AS col0
----
-7128
-89

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1892
SELECT MAX( DISTINCT - 49 ) * - CASE 21 WHEN - MAX( - 17 ) THEN 14 DIV + 3 ELSE - 76 END
----
-3724

skipif mysql # not compatible
query I rowsort label-1892
SELECT MAX ( DISTINCT - 49 ) * - CASE 21 WHEN - MAX ( - 17 ) THEN 14 / + 3 ELSE - 76 END
----
-3724

query I rowsort
SELECT 60 + - + 57 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1894
SELECT 66 DIV 66 * 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-1894
SELECT 66 / 66 * 25 AS col1
----
25

query I rowsort
SELECT COALESCE ( + 66, + 81 + + 68 ) - + 41
----
25

query I rowsort
SELECT ( - 17 ) * - 96 * - 40 AS col1
----
-65280

query I rowsort
SELECT ALL - 81 + - 9 AS col2
----
-90

query I rowsort
SELECT DISTINCT - 63 + COALESCE ( + + 86, + + 90 ) + 89 AS col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT ( ( - 69 ) ) * COUNT( * ) * - 34 * - 29 AS col2
----
-68034

skipif mysql # not compatible
query I rowsort label-1899
SELECT ( ( - 69 ) ) * COUNT ( * ) * - 34 * - 29 AS col2
----
-68034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT 4 + + CASE 75 WHEN + ( 12 ) THEN 25 END + - CAST( NULL AS SIGNED ) + + 7 * - 85 * - + 84 + + 7 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT 4 + + CASE 75 WHEN + ( 12 ) THEN 25 END + - CAST ( NULL AS INTEGER ) + + 7 * - 85 * - + 84 + + 7 col1
----
NULL

query II rowsort
SELECT ALL - 55, - 5 + + + 87 AS col1
----
-55
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + 84 * - 42 * - 13 + MAX( DISTINCT + 84 ) + + MAX( DISTINCT 75 )
----
46023

skipif mysql # not compatible
query I rowsort label-1902
SELECT + 84 * - 42 * - 13 + MAX ( DISTINCT + 84 ) + + MAX ( DISTINCT 75 )
----
46023

query I rowsort
SELECT 26 * 90 * - 51 AS col2
----
-119340

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT DISTINCT 42 * - + 81 * + MAX( ALL 2 )
----
-6804

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT 42 * - + 81 * + MAX ( ALL 2 )
----
-6804

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT - + ( 2 ) DIV - - COUNT( * ) + COUNT( - 67 ) + NULLIF ( 47, - - NULLIF ( 17, - 32 * - 93 * - 59 + + 84 ) ) + 38
----
84

skipif mysql # not compatible
query I rowsort label-1905
SELECT - + ( 2 ) / - - COUNT ( * ) + COUNT ( - 67 ) + NULLIF ( 47, - - NULLIF ( 17, - 32 * - 93 * - 59 + + 84 ) ) + 38
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1906
SELECT ALL 11 + + 27 + + - 91 + 52 / CAST( NULL AS SIGNED ) * + + 36, 23 col2
----
NULL
23

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL 11 + + 27 + + - 91 + 52 / CAST ( NULL AS INTEGER ) * + + 36, 23 col2
----
NULL
23

query I rowsort
SELECT ALL + 13 * - 80
----
-1040

query II rowsort
SELECT ( + 33 ) + - 12 * - 74, + 39 AS col0
----
921
39

query I rowsort
SELECT DISTINCT + NULLIF ( + ( - 38 ), ( + 42 ) + - - 6 ) + + ( + - 38 ) AS col2
----
-76

query II rowsort
SELECT ALL - - 38, 53 AS col2
----
38
53

query I rowsort
SELECT 92 + + + 43
----
135

query I rowsort
SELECT 41 * + 57 + + + 83 AS col1
----
2420

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1914
SELECT - CAST( - COUNT( * ) AS SIGNED ) * - 55 AS col1, - 18 AS col1
----
-55
-18

skipif mysql # not compatible
query II rowsort label-1914
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * - 55 AS col1, - 18 AS col1
----
-55
-18

query I rowsort
SELECT 30 + - - 48 * 13 * - COALESCE ( 28, - + 57, + + 70 - - 62 ) AS col0
----
-17442

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT MIN( DISTINCT - + 43 ) + + 91 + 27 AS col2, ( - + COUNT( * ) )
----
75
-1

skipif mysql # not compatible
query II rowsort label-1916
SELECT MIN ( DISTINCT - + 43 ) + + 91 + 27 AS col2, ( - + COUNT ( * ) )
----
75
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT ALL 27 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL 27 / + 46
----
0

query I rowsort
SELECT - - ( + + 51 ) AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT - 71 + - - 55 + + 91 - - - NULLIF ( - + 45, + + COUNT( * ) ) + - 35 + - + 7 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-1919
SELECT - 71 + - - 55 + + 91 - - - NULLIF ( - + 45, + + COUNT ( * ) ) + - 35 + - + 7 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT ALL + + MAX( 97 ) - + 75 - - + MIN( ALL - 89 )
----
-67

skipif mysql # not compatible
query I rowsort label-1920
SELECT ALL + + MAX ( 97 ) - + 75 - - + MIN ( ALL - 89 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT DISTINCT + COALESCE ( + - ( - ( + COUNT( * ) ) ), - 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT + COALESCE ( + - ( - ( + COUNT ( * ) ) ), - 36 ) AS col1
----
1

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

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

query I rowsort
SELECT - 37 + - - 34 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1924
SELECT 70 + 99, 16 + + + COUNT( ALL + ( + 28 ) ) * - 76 * + 13 * + 98 AS col0
----
169
-96808

skipif mysql # not compatible
query II rowsort label-1924
SELECT 70 + 99, 16 + + + COUNT ( ALL + ( + 28 ) ) * - 76 * + 13 * + 98 AS col0
----
169
-96808

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT DISTINCT - 21 * MAX( + 92 ) AS col1
----
-1932

skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - 21 * MAX ( + 92 ) AS col1
----
-1932

query I rowsort
SELECT 79 * + 24
----
1896

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

query I rowsort
SELECT 69 * - 5
----
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT - 68 + - MAX( DISTINCT - + 50 ) * + NULLIF ( - - 78, - + 69 + SUM( - 25 ) ) AS col1
----
3832

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT - 68 + - MAX ( DISTINCT - + 50 ) * + NULLIF ( - - 78, - + 69 + SUM ( - 25 ) ) AS col1
----
3832

query I rowsort
SELECT ALL + COALESCE ( 10, 57 ) + - 89
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT DISTINCT - NULLIF ( + - COUNT( + - 59 ), + COUNT( * ) * COUNT( - 63 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1931
SELECT DISTINCT - NULLIF ( + - COUNT ( + - 59 ), + COUNT ( * ) * COUNT ( - 63 ) )
----
1

query I rowsort
SELECT ALL 93 * - 74 + - - 34
----
-6848

query I rowsort
SELECT ALL 62 * - - 79 + - 27 AS col2
----
4871

query I rowsort
SELECT 85 * 98 * - 19 AS col1
----
-158270

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT 91 DIV 33
----
2

skipif mysql # not compatible
query I rowsort label-1935
SELECT 91 / 33
----
2

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

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

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

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

query I rowsort
SELECT - 69 * - 19
----
1311

query I rowsort
SELECT ALL + 4 * + 81 - + 77
----
247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1940
SELECT DISTINCT - CASE + MIN( 59 ) WHEN + - 8 * - + 94 THEN NULL WHEN 90 * + ( COUNT( * ) ) THEN NULL ELSE + MIN( - - ( CAST( NULL AS SIGNED ) ) ) / + + 19 + + COALESCE ( + AVG ( + + 80 ), - 85 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT - CASE + MIN ( 59 ) WHEN + - 8 * - + 94 THEN NULL WHEN 90 * + ( COUNT ( * ) ) THEN NULL ELSE + MIN ( - - ( CAST ( NULL AS INTEGER ) ) ) / + + 19 + + COALESCE ( + AVG ( + + 80 ), - 85 ) END AS col0
----
NULL

query I rowsort
SELECT + ( + 44 ) col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT DISTINCT - 32 - + COUNT( + 26 ) + + 13 + 55 + - 85
----
-50

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT - 32 - + COUNT ( + 26 ) + + 13 + 55 + - 85
----
-50

query II rowsort
SELECT DISTINCT + ( 39 ) AS col1, - 20
----
39
-20

query I rowsort
SELECT ALL 16 * - 94 + 40
----
-1464

query I rowsort
SELECT + + ( 2 ) * - 0 * - - 88 + 1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT + 7 * COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + 7 * COUNT ( * ) AS col0
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT DISTINCT - 96 DIV 74 - + 40
----
-41

skipif mysql # not compatible
query I rowsort label-1947
SELECT DISTINCT - 96 / 74 - + 40
----
-41

query I rowsort
SELECT + 12 * + + 97 + + ( + - 46 ) AS col1
----
1118

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT + MIN( + NULLIF ( - 25, - 99 ) ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-1949
SELECT + MIN ( + NULLIF ( - 25, - 99 ) ) AS col1
----
-25

query I rowsort
SELECT DISTINCT 0 + - 39 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - SUM( DISTINCT - + 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - SUM ( DISTINCT - + 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1952
SELECT DISTINCT COALESCE ( + COUNT( * ), - 37 ) + - 10 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-1952
SELECT DISTINCT COALESCE ( + COUNT ( * ), - 37 ) + - 10 AS col1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT ALL 22 + 91 DIV - + 18 + + 17 + - 37 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL 22 + 91 / - + 18 + + 17 + - 37 AS col1
----
-3

query I rowsort
SELECT + 27 + - 10 AS col0
----
17

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

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 92 * + + SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 4 + - 63
----
-59

query I rowsort
SELECT - 9 - 54 col1
----
-63

query I rowsort
SELECT + 21 * - - 14 AS col2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - 86 * - COUNT( * ) * - 49 * + + 82
----
-345548

skipif mysql # not compatible
query I rowsort label-1959
SELECT - 86 * - COUNT ( * ) * - 49 * + + 82
----
-345548

query I rowsort
SELECT + 56 + - 68 col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL 62 + - 7 - + 64 + - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL 62 + - 7 - + 64 + - COUNT ( * )
----
-10

query I rowsort
SELECT ALL + 18 + 92 - 4 AS col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT + ( + - 29 ) + - + CASE + + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - - 28 WHEN + 22 * + 61 THEN NULL WHEN + - ( - 96 ) + 68 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT + ( + - 29 ) + - + CASE + + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 28 WHEN + 22 * + 61 THEN NULL WHEN + - ( - 96 ) + 68 THEN NULL END col2
----
NULL

query I rowsort
SELECT DISTINCT 73 + - - 77
----
150

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

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

query I rowsort
SELECT ALL 49 * - - ( 71 ) * - 90
----
-313110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT ALL COUNT( * ) + 43 + - 43 + + - CASE - 9 WHEN + + ( - - NULLIF ( - CAST( NULL AS SIGNED ), + MIN( NULLIF ( 95, - 66 ) ) ) ) THEN - 21 * + 39 + 64 * + - 61 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL COUNT ( * ) + 43 + - 43 + + - CASE - 9 WHEN + + ( - - NULLIF ( - CAST ( NULL AS INTEGER ), + MIN ( NULLIF ( 95, - 66 ) ) ) ) THEN - 21 * + 39 + 64 * + - 61 END col2
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT ( + - NULLIF ( ( 50 ), + - CASE - 70 WHEN NULLIF ( - CAST( + - 70 AS SIGNED ), + - 94 ) THEN NULL ELSE - + ( - 27 ) END * + 70 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-1971
SELECT ( + - NULLIF ( ( 50 ), + - CASE - 70 WHEN NULLIF ( - CAST ( + - 70 AS INTEGER ), + - 94 ) THEN NULL ELSE - + ( - 27 ) END * + 70 ) ) AS col0
----
-50

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

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

query I rowsort
SELECT ALL + 18 * + 49 - - 55 + + 21 AS col1
----
958

query I rowsort
SELECT + + ( COALESCE ( 47, 5 ) ) col1
----
47

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

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

query I rowsort
SELECT - + 30 * + 91 AS col0
----
-2730

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT - 47 * - COUNT( * ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 47 * - COUNT ( * ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT COUNT( * ) * COUNT( * ) + - + COALESCE ( - 75, - - 35 + + - 69 * + - 9 ) + + + 51 + + 69
----
196

skipif mysql # not compatible
query I rowsort label-1980
SELECT COUNT ( * ) * COUNT ( * ) + - + COALESCE ( - 75, - - 35 + + - 69 * + - 9 ) + + + 51 + + 69
----
196

query I rowsort
SELECT - - 33 - - 64 + 15 AS col0
----
112

query I rowsort
SELECT DISTINCT - - 93 * 56 * + 59 + 42
----
307314

query I rowsort
SELECT ALL + + 30 * - - 62 AS col0
----
1860

query I rowsort
SELECT - 70 + - 4 + 16 AS col2
----
-58

query I rowsort
SELECT ALL + NULLIF ( + - 56, + 69 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1986
SELECT - + CAST( + - NULLIF ( + COALESCE ( + - 67, - 41, - 14 * + 79 ), 41 + - - COUNT( * ) DIV - - 73 ) AS SIGNED ) + + + MAX( DISTINCT - ( + ( 9 ) ) ) DIV 11 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-1986
SELECT - + CAST ( + - NULLIF ( + COALESCE ( + - 67, - 41, - 14 * + 79 ), 41 + - - COUNT ( * ) / - - 73 ) AS INTEGER ) + + + MAX ( DISTINCT - ( + ( 9 ) ) ) / 11 AS col1
----
-67

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

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

query I rowsort
SELECT - - 98 + + + 2
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL - ( CASE + + CAST( NULL AS SIGNED ) WHEN - 72 THEN + 49 - 70 + - CAST( NULL AS SIGNED ) * + 80 * COUNT( * ) + 0 + + - COUNT( * ) * - 86 + + CAST( NULL AS SIGNED ) + - 50 END ) * + + 54 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL - ( CASE + + CAST ( NULL AS INTEGER ) WHEN - 72 THEN + 49 - 70 + - CAST ( NULL AS INTEGER ) * + 80 * COUNT ( * ) + 0 + + - COUNT ( * ) * - 86 + + CAST ( NULL AS INTEGER ) + - 50 END ) * + + 54 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL 43 * 52 - - - COUNT( * ) + + 10 + - COUNT( * ) * - 31 + + 3
----
2279

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL 43 * 52 - - - COUNT ( * ) + + 10 + - COUNT ( * ) * - 31 + + 3
----
2279

onlyif mysql # aggregate syntax: 
query II rowsort label-1991
SELECT ALL 26 * + - ( - + 22 ) * - 85 + - + COALESCE ( 37, + CASE + 12 WHEN - COUNT( * ) + + 13 - CASE - 72 WHEN 57 * + COALESCE ( + 65, COUNT( + 64 ), - 3 / - - NULLIF ( - + 0, - - 48 ) - + 70 * + - MAX( - 41 ) + + 80 ) / 85 THEN + 41 + - 44 * - - 98 * 86 ELSE NULL END THEN + + 25 ELSE + 57 END + + + 30, - + 93, 55 ), - 22 * + + 43 AS col0
----
-48657
-946

skipif mysql # not compatible
query II rowsort label-1991
SELECT ALL 26 * + - ( - + 22 ) * - 85 + - + COALESCE ( 37, + CASE + 12 WHEN - COUNT ( * ) + + 13 - CASE - 72 WHEN 57 * + COALESCE ( + 65, COUNT ( + 64 ), - 3 / - - NULLIF ( - + 0, - - 48 ) - + 70 * + - MAX ( - 41 ) + + 80 ) / 85 THEN + 41 + - 44 * - - 98 * 86 ELSE NULL END THEN + + 25 ELSE + 57 END + + + 30, - + 93, 55 ), - 22 * + + 43 AS col0
----
-48657
-946

query II rowsort
SELECT + 10 AS col1, 68 AS col2
----
10
68

query I rowsort
SELECT ALL - 84 * - + ( - + 20 ) + - 4
----
-1684

onlyif mysql # aggregate syntax: 
query I rowsort label-1994
SELECT + NULLIF ( + COUNT( * ), - 42 - 64 - - + 65 ) + - 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1994
SELECT + NULLIF ( + COUNT ( * ), - 42 - 64 - - + 65 ) + - 2 AS col1
----
-1

query I rowsort
SELECT ALL 16 * + 34 AS col2
----
544

query I rowsort
SELECT + 86 + - 5 + + 10 + - 59 + + 74 * - 22 * - - ( 20 ) + + 80 AS col2
----
-32448

query I rowsort
SELECT - COALESCE ( 47, - 92 * - 15 * - 46 ) AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT DISTINCT 9 + MAX( ALL - 60 )
----
-51

skipif mysql # not compatible
query I rowsort label-1998
SELECT DISTINCT 9 + MAX ( ALL - 60 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT ALL MIN( ALL + 62 ) + - CASE SUM( 71 ) WHEN - MAX( DISTINCT + 93 ) THEN - + 78 / + COUNT( * ) END + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1999
SELECT ALL MIN ( ALL + 62 ) + - CASE SUM ( 71 ) WHEN - MAX ( DISTINCT + 93 ) THEN - + 78 / + COUNT ( * ) END + + 96
----
NULL

query I rowsort
SELECT ALL + 77 * - - 73 AS col1
----
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT DISTINCT 15 * + - SUM( 89 )
----
-1335

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT 15 * + - SUM ( 89 )
----
-1335

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT ALL SUM( + - 67 ) AS col1, - 40
----
-67
-40

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL SUM ( + - 67 ) AS col1, - 40
----
-67
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT + 26 DIV + - 46 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT + 26 / + - 46 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL COUNT( * ) + - ( 93 )
----
-92

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL COUNT ( * ) + - ( 93 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT - NULLIF ( - + NULLIF ( 78, - - CAST( NULL AS SIGNED ) ), - - 32 ) * + 10 * + - 21 AS col0
----
-16380

skipif mysql # not compatible
query I rowsort label-2005
SELECT - NULLIF ( - + NULLIF ( 78, - - CAST ( NULL AS INTEGER ) ), - - 32 ) * + 10 * + - 21 AS col0
----
-16380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT - CAST( + AVG ( DISTINCT - 98 ) AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2006
SELECT - CAST ( + AVG ( DISTINCT - 98 ) AS INTEGER ) AS col1
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2007
SELECT + 14 - - COALESCE ( + + COUNT( * ), - - 62 DIV 98 * + SUM( + 84 ) * - COUNT( * ) * + - 21 + + - 98 * + - 42 + 59 )
----
15

skipif mysql # not compatible
query I rowsort label-2007
SELECT + 14 - - COALESCE ( + + COUNT ( * ), - - 62 / 98 * + SUM ( + 84 ) * - COUNT ( * ) * + - 21 + + - 98 * + - 42 + 59 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT + 8 * + - COUNT( - ( - 43 ) )
----
-8

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2009
SELECT 2 AS col1, + 31 * COUNT( * ) AS col0
----
2
31

skipif mysql # not compatible
query II rowsort label-2009
SELECT 2 AS col1, + 31 * COUNT ( * ) AS col0
----
2
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2010
SELECT DISTINCT ( + COUNT( * ) ) DIV - 77 + + COUNT( * ) AS col2, 4 - - 40 + + 62 + 5 * 47
----
1
341

skipif mysql # not compatible
query II rowsort label-2010
SELECT DISTINCT ( + COUNT ( * ) ) / - 77 + + COUNT ( * ) AS col2, 4 - - 40 + + 62 + 5 * 47
----
1
341

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2011
SELECT ALL COALESCE ( + 84, 94 * + - COUNT( * ) + + CAST( NULL AS SIGNED ) + + 66, + - 51 DIV + 94 + + 17 + + 30 )
----
84

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL COALESCE ( + 84, 94 * + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + 66, + - 51 / + 94 + + 17 + + 30 )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL CAST( 71 AS SIGNED ) - - 66 + 36 AS col0
----
173

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL CAST ( 71 AS INTEGER ) - - 66 + 36 AS col0
----
173

query II rowsort
SELECT 83 AS col1, - ( + 26 )
----
83
-26

query I rowsort
SELECT + 36 * + + NULLIF ( 66, + 15 ) AS col2
----
2376

query I rowsort
SELECT ALL + - 70 * + 46 AS col1
----
-3220

query I rowsort
SELECT - 62 * 31 + + 96 AS col0
----
-1826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2017
SELECT ALL 48 - 77 + + MAX( + - COALESCE ( - + 52, 11 DIV - 29 * - NULLIF ( COALESCE ( 23, - 0, + 51 ), 30 * 2 + - ( - 43 ) + - 80 + + 63 + + 89 ) ) ) * - 45 - + + ( - 47 )
----
-2322

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL 48 - 77 + + MAX ( + - COALESCE ( - + 52, 11 / - 29 * - NULLIF ( COALESCE ( 23, - 0, + 51 ), 30 * 2 + - ( - 43 ) + - 80 + + 63 + + 89 ) ) ) * - 45 - + + ( - 47 )
----
-2322

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT - 1 * + ( + - COUNT( * ) ) / - - 69 * - NULLIF ( COUNT( * ), + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2019
SELECT - 1 * + ( + - COUNT ( * ) ) / - - 69 * - NULLIF ( COUNT ( * ), + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL + CASE + COUNT( * ) WHEN 19 * + 8 / + + 58 + 24 THEN + + COUNT( * ) + - - 14 + 99 * - 14 * 69 ELSE + COUNT( + 93 ) END * CAST( COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL + CASE + COUNT ( * ) WHEN 19 * + 8 / + + 58 + 24 THEN + + COUNT ( * ) + - - 14 + 99 * - 14 * 69 ELSE + COUNT ( + 93 ) END * CAST ( COUNT ( * ) AS INTEGER )
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT DISTINCT - - COUNT( * ) AS col2, 76 * - 75 col2
----
1
-5700

skipif mysql # not compatible
query II rowsort label-2023
SELECT DISTINCT - - COUNT ( * ) AS col2, 76 * - 75 col2
----
1
-5700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL + 7 + + 44 + CASE - 6 WHEN COUNT( * ) * - - 81 - - COALESCE ( 11, - + 23 * 17 ) - - 52 - - + COUNT( * ) THEN + + 29 ELSE NULL END * - 59 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL + 7 + + 44 + CASE - 6 WHEN COUNT ( * ) * - - 81 - - COALESCE ( 11, - + 23 * 17 ) - - 52 - - + COUNT ( * ) THEN + + 29 ELSE NULL END * - 59 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + - 46 AS col0, - 54
----
-46
-54

query II rowsort
SELECT DISTINCT + 80 + + 58 AS col1, + 0
----
138
0

query I rowsort
SELECT 38 * + 59 + + 27 AS col1
----
2269

query I rowsort
SELECT ALL + ( - 30 ) + + + 56 * - 20 - - - 31
----
-1181

query I rowsort
SELECT ALL + 97 + - 58 + - 9
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2030
SELECT COUNT( * ) DIV + + ( - - MIN( DISTINCT 87 ) ) * - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT COUNT ( * ) / + + ( - - MIN ( DISTINCT 87 ) ) * - 64 AS col2
----
0

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

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

query II rowsort
SELECT + 78 AS col0, 77
----
78
77

query I rowsort
SELECT ALL - - 23 * - 85
----
-1955

query I rowsort
SELECT 8 * - 63 AS col1
----
-504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2035
SELECT ALL + COUNT( - 90 ) + - COALESCE ( + MIN( ALL + 30 ), + - 93 + + 46 + + 54 DIV 31 + + + 33 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL + COUNT ( - 90 ) + - COALESCE ( + MIN ( ALL + 30 ), + - 93 + + 46 + + 54 / 31 + + + 33 ) AS col0
----
-29

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

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT - 36 + + ( - COUNT ( * ) ) AS col1
----
-37

query I rowsort
SELECT 85 + + 31 + + 87 AS col2
----
203

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT 94 + 86 * - 27 * + 85 + + 26 - - ( - NULLIF ( + + 3, - CAST( + 73 AS SIGNED ) * + 5 - - - ( CASE 97 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE 56 END ) + - ( 39 ) + + 31 ) ) AS col1
----
-197253

skipif mysql # not compatible
query I rowsort label-2039
SELECT 94 + 86 * - 27 * + 85 + + 26 - - ( - NULLIF ( + + 3, - CAST ( + 73 AS INTEGER ) * + 5 - - - ( CASE 97 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE 56 END ) + - ( 39 ) + + 31 ) ) AS col1
----
-197253

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

skipif mysql # not compatible
query I rowsort label-2040
SELECT COUNT ( * ) + - 80 * - COUNT ( * ) + 36 AS col0
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL ( - 69 ) - - CASE + 33 WHEN + COUNT( * ) + + + 80 THEN NULL WHEN COUNT( * ) THEN 60 + - 3 ELSE CAST( NULL AS SIGNED ) END * - 98 * - COUNT( * ) * - - 18 * 0 * - 2 + - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL ( - 69 ) - - CASE + 33 WHEN + COUNT ( * ) + + + 80 THEN NULL WHEN COUNT ( * ) THEN 60 + - 3 ELSE CAST ( NULL AS INTEGER ) END * - 98 * - COUNT ( * ) * - - 18 * 0 * - 2 + - 98 AS col0
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 28 * + 90 * - + 21 AS col2
----
-52920

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2044
SELECT NULLIF ( - 77, 15 ) + - 53 + + COALESCE ( 72, 77 ), + CAST( NULL AS SIGNED ) * - + 65 + + - 5 AS col2
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-2044
SELECT NULLIF ( - 77, 15 ) + - 53 + + COALESCE ( 72, 77 ), + CAST ( NULL AS INTEGER ) * - + 65 + + - 5 AS col2
----
-58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ( + 95 ) * - + ( - 34 ) * + ( + CAST( - 50 AS SIGNED ) )
----
-161500

skipif mysql # not compatible
query I rowsort label-2045
SELECT ( + 95 ) * - + ( - 34 ) * + ( + CAST ( - 50 AS INTEGER ) )
----
-161500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2046
SELECT DISTINCT ( 56 ) * - COALESCE ( + - 42, NULLIF ( + 94, + + 63 ) * + - MAX( DISTINCT - + ( 62 ) ) * + - 86 + + COUNT( * ) + 90 * - COUNT( * ) - - 16 + + - 87 - - 29 * - 54 + + COUNT( * ) * + 31 + 58 + 61 DIV + 40, - + 64 )
----
2352

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT ( 56 ) * - COALESCE ( + - 42, NULLIF ( + 94, + + 63 ) * + - MAX ( DISTINCT - + ( 62 ) ) * + - 86 + + COUNT ( * ) + 90 * - COUNT ( * ) - - 16 + + - 87 - - 29 * - 54 + + COUNT ( * ) * + 31 + 58 + 61 / + 40, - + 64 )
----
2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2047
SELECT DISTINCT CAST( 84 AS SIGNED ) * 45 col0
----
3780

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT CAST ( 84 AS INTEGER ) * 45 col0
----
3780

query II rowsort
SELECT ALL ( + 17 ), - 59 AS col2
----
17
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - + CASE COUNT( * ) WHEN - 18 + + 38 THEN - + COUNT( * ) / - 18 + + 61 * + 46 + + + 1 * + + MAX( + 21 ) - COUNT( * ) + + + 86 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT - + CASE COUNT ( * ) WHEN - 18 + + 38 THEN - + COUNT ( * ) / - 18 + + 61 * + 46 + + + 1 * + + MAX ( + 21 ) - COUNT ( * ) + + + 86 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2050
SELECT + 12 + - - ( 51 ) + + - 61 + - - ( + 3 ) * 75 + ( 85 ) * 46 * 32 * SUM( DISTINCT - NULLIF ( - 5, ( - 61 ) ) )
----
625827

skipif mysql # not compatible
query I rowsort label-2050
SELECT + 12 + - - ( 51 ) + + - 61 + - - ( + 3 ) * 75 + ( 85 ) * 46 * 32 * SUM ( DISTINCT - NULLIF ( - 5, ( - 61 ) ) )
----
625827

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2051
SELECT ALL - SUM( DISTINCT + + 69 ) DIV COUNT( * ) col1, + 24
----
-69
24

skipif mysql # not compatible
query II rowsort label-2051
SELECT ALL - SUM ( DISTINCT + + 69 ) / COUNT ( * ) col1, + 24
----
-69
24

onlyif mysql # DIV for integer division: 
query II rowsort label-2052
SELECT 84 DIV - 75 AS col2, + 37 AS col2
----
-1
37

skipif mysql # not compatible
query II rowsort label-2052
SELECT 84 / - 75 AS col2, + 37 AS col2
----
-1
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2053
SELECT ALL 21 + - - 51 AS col1, + COUNT( * ) + - 33 AS col1
----
72
-32

skipif mysql # not compatible
query II rowsort label-2053
SELECT ALL 21 + - - 51 AS col1, + COUNT ( * ) + - 33 AS col1
----
72
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2054
SELECT DISTINCT - 20 * + CASE COUNT( * ) WHEN + - 53 THEN - MIN( - - 37 ) * COUNT( * ) ELSE NULL END + - CAST( NULL AS SIGNED ) col2, 59 * COUNT( * )
----
NULL
59

skipif mysql # not compatible
query II rowsort label-2054
SELECT DISTINCT - 20 * + CASE COUNT ( * ) WHEN + - 53 THEN - MIN ( - - 37 ) * COUNT ( * ) ELSE NULL END + - CAST ( NULL AS INTEGER ) col2, 59 * COUNT ( * )
----
NULL
59

query I rowsort
SELECT ALL 5 + 41
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT + + 47 * 5 - - - ( COUNT( * ) ) * - - COUNT( * )
----
234

skipif mysql # not compatible
query I rowsort label-2056
SELECT + + 47 * 5 - - - ( COUNT ( * ) ) * - - COUNT ( * )
----
234

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT DISTINCT - 51 + CASE + 16 WHEN 84 THEN NULL WHEN - + MIN( + - 72 ) / - 32 THEN - ( + 44 ) ELSE 10 END AS col0, 85 AS col2
----
-41
85

skipif mysql # not compatible
query II rowsort label-2057
SELECT DISTINCT - 51 + CASE + 16 WHEN 84 THEN NULL WHEN - + MIN ( + - 72 ) / - 32 THEN - ( + 44 ) ELSE 10 END AS col0, 85 AS col2
----
-41
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + CASE + + SUM( DISTINCT - 27 ) WHEN 99 THEN NULL WHEN - SUM( DISTINCT 25 ) THEN 77 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + CASE + + SUM ( DISTINCT - 27 ) WHEN 99 THEN NULL WHEN - SUM ( DISTINCT 25 ) THEN 77 END AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2059
SELECT + + MIN ( - 53 )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT 30 - + + COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-2060
SELECT 30 - + + COUNT ( * ) AS col0
----
29

query I rowsort
SELECT COALESCE ( - 49, + 15 * - ( - ( + 58 ) ) ) + - 53 * + 88 * - 21
----
97895

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT - NULLIF ( + 60, + ( - COALESCE ( + + 70, 31 * + COUNT( DISTINCT - + 87 ) ) ) ) * - + 39
----
2340

skipif mysql # not compatible
query I rowsort label-2062
SELECT - NULLIF ( + 60, + ( - COALESCE ( + + 70, 31 * + COUNT ( DISTINCT - + 87 ) ) ) ) * - + 39
----
2340

onlyif mysql # DIV for integer division: 
query I rowsort label-2063
SELECT ALL + - 59 + - 73 DIV 48 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + - 59 + - 73 / 48 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2064
SELECT SUM( + 85 ) * + CAST( NULL AS SIGNED ) - - - 7 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2064
SELECT SUM ( + 85 ) * + CAST ( NULL AS INTEGER ) - - - 7 col0
----
NULL

query I rowsort
SELECT DISTINCT 46 * 94 AS col1
----
4324

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT CASE - 17 WHEN + CASE WHEN NULL IS NOT NULL THEN COUNT( * ) ELSE - SUM( 60 ) + + 84 + - - MAX( ALL 64 ) * MAX( ALL 20 ) * + + 10 * 70 + + + 6 * - 72 END + - + MAX( ALL + 27 ) THEN + + SUM( - 12 ) ELSE NULL END + - 99 / + COUNT( * ) + + 96 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2066
SELECT CASE - 17 WHEN + CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) ELSE - SUM ( 60 ) + + 84 + - - MAX ( ALL 64 ) * MAX ( ALL 20 ) * + + 10 * 70 + + + 6 * - 72 END + - + MAX ( ALL + 27 ) THEN + + SUM ( - 12 ) ELSE NULL END + - 99 / + COUNT ( * ) + + 96 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT DISTINCT - COUNT( DISTINCT + ( + 99 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2067
SELECT DISTINCT - COUNT ( DISTINCT + ( + 99 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT ALL - 22 DIV + 11
----
-2

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL - 22 / + 11
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT ALL 56 - 85 - COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2069
SELECT ALL 56 - 85 - COUNT ( * ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2070
SELECT ALL - CASE + 49 WHEN - 89 THEN - + 66 + - 1 WHEN - CAST( NULL AS SIGNED ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2070
SELECT ALL - CASE + 49 WHEN - 89 THEN - + 66 + - 1 WHEN - CAST ( NULL AS INTEGER ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT - 53 * COALESCE ( - 2, + + COUNT( * ) ) + - - 78
----
184

skipif mysql # not compatible
query I rowsort label-2071
SELECT - 53 * COALESCE ( - 2, + + COUNT ( * ) ) + - - 78
----
184

query I rowsort
SELECT ALL 33 - + + 93 + 13 * ( + 30 )
----
330

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

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

query I rowsort
SELECT 78 * + 78
----
6084

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT 14 + + NULLIF ( + 87, - - MIN( DISTINCT 62 ) ) AS col0
----
101

skipif mysql # not compatible
query I rowsort label-2075
SELECT 14 + + NULLIF ( + 87, - - MIN ( DISTINCT 62 ) ) AS col0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2076
SELECT 85 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2076
SELECT 85 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 20 * 31
----
620

query I rowsort
SELECT ALL - 14 * + 32
----
-448

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2079
SELECT - 69 AS col2, COALESCE ( + 21, - COUNT( DISTINCT + 37 ) ) * 42 - + CAST( NULL AS SIGNED ) AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-2079
SELECT - 69 AS col2, COALESCE ( + 21, - COUNT ( DISTINCT + 37 ) ) * 42 - + CAST ( NULL AS INTEGER ) AS col1
----
-69
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2080
SELECT 30 + CAST( - + COUNT( * ) AS SIGNED ) DIV CASE + + CASE + 50 WHEN - + 82 + - 69 THEN COUNT( * ) END WHEN + COUNT( * ) + - 48 + COUNT( * ) THEN - + 3 DIV + 46 ELSE - 23 END * + 47 * + + COUNT( * ) * - 61, - 20 * + - 55 AS col1
----
30
1100

skipif mysql # not compatible
query II rowsort label-2080
SELECT 30 + CAST ( - + COUNT ( * ) AS INTEGER ) / CASE + + CASE + 50 WHEN - + 82 + - 69 THEN COUNT ( * ) END WHEN + COUNT ( * ) + - 48 + COUNT ( * ) THEN - + 3 / + 46 ELSE - 23 END * + 47 * + + COUNT ( * ) * - 61, - 20 * + - 55 AS col1
----
30
1100

query I rowsort
SELECT DISTINCT + 41 * - + 92 AS col1
----
-3772

query I rowsort
SELECT ALL - ( + 25 ) - + - 38 * ( + 4 ) AS col0
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT 10 DIV + + 22
----
0

skipif mysql # not compatible
query I rowsort label-2083
SELECT 10 / + + 22
----
0

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

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

query II rowsort
SELECT 21 AS col2, - 46 - - 85 AS col2
----
21
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL COUNT( 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL COUNT ( 28 ) AS col1
----
1

query I rowsort
SELECT - 1 - - + 47
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL COALESCE ( CASE - - 48 WHEN - 51 THEN NULL WHEN + 83 THEN + 79 - + - ( + MIN( + 61 ) ) ELSE NULL END, + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL COALESCE ( CASE - - 48 WHEN - 51 THEN NULL WHEN + 83 THEN + 79 - + - ( + MIN ( + 61 ) ) ELSE NULL END, + 62 ) AS col2
----
62

query I rowsort
SELECT - 9 + + 37
----
28

query I rowsort
SELECT - 22 * - - 22 + 47 * 47
----
1725

query II rowsort
SELECT DISTINCT + ( - - 57 ) + + + 18, + 85 AS col0
----
75
85

query I rowsort
SELECT ALL - 13 + 40 * - 17 AS col0
----
-693

query II rowsort
SELECT - 55 AS col0, + 71
----
-55
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2095
SELECT + + 85 + - 47 + COALESCE ( + 63, + - 26 / 6 * + 4 + + 41 / - - 76 / - 21, 51 + - 92 + - ( + + 29 ) * 44 ) / + 77 * + CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT + + 85 + - 47 + COALESCE ( + 63, + - 26 / 6 * + 4 + + 41 / - - 76 / - 21, 51 + - 92 + - ( + + 29 ) * 44 ) / + 77 * + CAST ( NULL AS INTEGER ) * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT DISTINCT - 80 + - COALESCE ( 34, 14, + + 61 ) * 61 AS col2, + ( + COALESCE ( + 49, + COUNT( * ) * + - 19 + 28 - - 3 * - COUNT( + - 21 ) ) ) * 19
----
-2154
931

skipif mysql # not compatible
query II rowsort label-2096
SELECT DISTINCT - 80 + - COALESCE ( 34, 14, + + 61 ) * 61 AS col2, + ( + COALESCE ( + 49, + COUNT ( * ) * + - 19 + 28 - - 3 * - COUNT ( + - 21 ) ) ) * 19
----
-2154
931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT + + 86 * 68 + - - 44 + + COALESCE ( - 52, CAST( - - 99 AS SIGNED ) ) AS col2
----
5840

skipif mysql # not compatible
query I rowsort label-2097
SELECT + + 86 * 68 + - - 44 + + COALESCE ( - 52, CAST ( - - 99 AS INTEGER ) ) AS col2
----
5840

query II rowsort
SELECT DISTINCT + 50 col1, - 89 AS col0
----
50
-89

query I rowsort
SELECT - 25 * 34 col0
----
-850

query I rowsort
SELECT + NULLIF ( + 34, - - 92 )
----
34

query II rowsort
SELECT ALL + - 69 AS col0, + 97 AS col1
----
-69
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT COUNT( * ) * - 75 - 87 + + 87 + + + 86 + + - 39
----
-28

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT COUNT ( * ) * - 75 - 87 + + 87 + + + 86 + + - 39
----
-28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL + 35 * + + 62 - COUNT( * ) * NULLIF ( 60, - - 47 )
----
2110

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + 35 * + + 62 - COUNT ( * ) * NULLIF ( 60, - - 47 )
----
2110

query II rowsort
SELECT ALL + - 96, 57 * - 19 AS col1
----
-96
-1083

query I rowsort
SELECT DISTINCT 77 * - 36 - 95 AS col0
----
-2867

query I rowsort
SELECT + 79 * 74 AS col1
----
5846

query I rowsort
SELECT ALL - 14 * 34 col1
----
-476

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT COUNT( * ) * 87 - - - 53 DIV + 35 col0
----
86

skipif mysql # not compatible
query I rowsort label-2109
SELECT COUNT ( * ) * 87 - - - 53 / + 35 col0
----
86

query I rowsort
SELECT + CASE + 19 WHEN + CASE WHEN NOT + NULLIF ( - 13, ( + - 12 ) ) IS NOT NULL THEN + 91 END THEN - 97 * 65 WHEN 24 + - 17 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2111
SELECT ALL + SUM( ALL NULLIF ( + 74, - 51 ) ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL + SUM ( ALL NULLIF ( + 74, - 51 ) ) AS col1
----
74

query I rowsort
SELECT + 44 * - - 18 col0
----
792

onlyif mysql # aggregate syntax: 
query II rowsort label-2113
SELECT ALL 49 * + MIN( - + 16 ) * + - 19 AS col0, - 61 + - - 92 - - 1 * 61
----
14896
92

skipif mysql # not compatible
query II rowsort label-2113
SELECT ALL 49 * + MIN ( - + 16 ) * + - 19 AS col0, - 61 + - - 92 - - 1 * 61
----
14896
92

query I rowsort
SELECT 55 * + 8 - NULLIF ( CASE + CASE 44 WHEN + + 8 THEN - + 79 ELSE NULL END WHEN + 98 / + + 19 * + 14 THEN - + 79 WHEN 64 THEN - 12 END, - + 46 / 61 ) + - NULLIF ( + - 2, 51 + + 24 ) + - 18 * 40 + + 73 * + - 7
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( 87, 61 + + - 83 )
----
87

query I rowsort
SELECT - 13 * + 12 AS col2
----
-156

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

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

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

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

query I rowsort
SELECT + 78 + - 57 - - 83 - - + 35
----
139

query I rowsort
SELECT ALL - 56 * + 70
----
-3920

query II rowsort
SELECT DISTINCT 99 + 90 * COALESCE ( 17, + + 36 * + 15 + + - 52 ) col2, - 35 AS col1
----
1629
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL - SUM( + 55 ) col2
----
-55

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL - SUM ( + 55 ) col2
----
-55

query I rowsort
SELECT - + 56 + + CASE 34 WHEN - + 43 * + 44 THEN - + 29 - 23 + - 73 - ( 13 ) + + - 38 END + + 65 * 77 + - ( - 35 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2124
SELECT ALL - + 92 * ( + CAST( NULL AS SIGNED ) ) * + 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT ALL - + 92 * ( + CAST ( NULL AS INTEGER ) ) * + 77 AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2125
SELECT - CAST ( NULL AS INTEGER ) * + - 82 * 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT DISTINCT - 68 - - COUNT( * ) + - + 74 * - 60 AS col1
----
4373

skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT - 68 - - COUNT ( * ) + - + 74 * - 60 AS col1
----
4373

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

skipif mysql # not compatible
query I rowsort label-2127
SELECT + SUM ( - + 19 )
----
-19

query I rowsort
SELECT ALL + NULLIF ( - - 32, + - 69 * - - 21 * - 93 ) AS col2
----
32

query I rowsort
SELECT ALL - ( + 93 ) * - 37 AS col1
----
3441

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2130
SELECT ALL - 18 * + 71, 3 * + 87 + - CASE - 40 WHEN + COUNT( * ) THEN NULL ELSE 46 - + 82 END + + COUNT( * ) * - + 3 + - 52 DIV 54 * + + COUNT( * ) * + - 9 col2
----
-1278
294

skipif mysql # not compatible
query II rowsort label-2130
SELECT ALL - 18 * + 71, 3 * + 87 + - CASE - 40 WHEN + COUNT ( * ) THEN NULL ELSE 46 - + 82 END + + COUNT ( * ) * - + 3 + - 52 / 54 * + + COUNT ( * ) * + - 9 col2
----
-1278
294

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2131
SELECT ALL + + NULLIF ( 33, - + 0 + + CAST( + 67 AS SIGNED ) + - ( 44 ) * + CAST( - - 71 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL + + NULLIF ( 33, - + 0 + + CAST ( + 67 AS INTEGER ) + - ( 44 ) * + CAST ( - - 71 AS INTEGER ) )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT + + COUNT( * ) * ( + 23 ) + + 33
----
56

skipif mysql # not compatible
query I rowsort label-2132
SELECT + + COUNT ( * ) * ( + 23 ) + + 33
----
56

query I rowsort
SELECT - - 80 * - 74
----
-5920

query I rowsort
SELECT ALL - 74 * 8 * - - 68 * + - 46
----
1851776

query I rowsort
SELECT DISTINCT - 14 * + + 91 AS col2
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2136
SELECT 23 * CAST( 95 AS SIGNED ) + NULLIF ( ( - + 65 ), - + 78 ) AS col2
----
2120

skipif mysql # not compatible
query I rowsort label-2136
SELECT 23 * CAST ( 95 AS INTEGER ) + NULLIF ( ( - + 65 ), - + 78 ) AS col2
----
2120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2137
SELECT + 21 - CAST( NULL AS SIGNED ) - 65 * + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2137
SELECT + 21 - CAST ( NULL AS INTEGER ) - 65 * + 28 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2138
SELECT + COALESCE ( + + 48, - + 69, + + 2 ) * 57 / - 82 / 55 + - CAST( NULL AS SIGNED ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2138
SELECT + COALESCE ( + + 48, - + 69, + + 2 ) * 57 / - 82 / 55 + - CAST ( NULL AS INTEGER ) * - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2139
SELECT - 57 * + - ( + - 7 ) - - COUNT( * ) + + 82 * + NULLIF ( + 15, + - CASE 75 WHEN - NULLIF ( 3, + 75 ) THEN + - 74 * + - SUM( 86 ) + + - ( - 35 ) ELSE NULL END * + 83 ) + - 6 + + CASE + COUNT( * ) WHEN - 60 THEN COALESCE ( 3, + COUNT( * ), 68 ) ELSE 4 END + - COUNT( * ) * + - COUNT( * ) * + ( - + COUNT( * ) ) * NULLIF ( 80, - 80 + 82 * + 12 ) DIV + + 47
----
829

skipif mysql # not compatible
query I rowsort label-2139
SELECT - 57 * + - ( + - 7 ) - - COUNT ( * ) + + 82 * + NULLIF ( + 15, + - CASE 75 WHEN - NULLIF ( 3, + 75 ) THEN + - 74 * + - SUM ( 86 ) + + - ( - 35 ) ELSE NULL END * + 83 ) + - 6 + + CASE + COUNT ( * ) WHEN - 60 THEN COALESCE ( 3, + COUNT ( * ), 68 ) ELSE 4 END + - COUNT ( * ) * + - COUNT ( * ) * + ( - + COUNT ( * ) ) * NULLIF ( 80, - 80 + 82 * + 12 ) / + + 47
----
829

query II rowsort
SELECT ALL + 65, + 4 - 83 + 13 AS col0
----
65
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT ALL COALESCE ( 14, + 63, + 94 * - ( - - COUNT( * ) ) + - - 27 ) DIV + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL COALESCE ( 14, + 63, + 94 * - ( - - COUNT ( * ) ) + - - 27 ) / + 90 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2142
SELECT + 44 DIV - CASE MIN( - + 84 ) WHEN 23 THEN + + 3 ELSE 67 - + 89 END
----
2

skipif mysql # not compatible
query I rowsort label-2142
SELECT + 44 / - CASE MIN ( - + 84 ) WHEN 23 THEN + + 3 ELSE 67 - + 89 END
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT ALL ( 68 ) DIV COUNT( * ) - - 65 + 23 * - 69 - 60
----
-1514

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL ( 68 ) / COUNT ( * ) - - 65 + 23 * - 69 - 60
----
-1514

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2144
SELECT ALL 32 + COUNT( * ) DIV + + MIN( - + 59 )
----
32

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL 32 + COUNT ( * ) / + + MIN ( - + 59 )
----
32

query I rowsort
SELECT ALL 49 * - 22
----
-1078

query II rowsort
SELECT DISTINCT 61 + - 84 + - 45 col0, 37 AS col1
----
-68
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL 96 + - + NULLIF ( + + COUNT( * ), + 81 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL 96 + - + NULLIF ( + + COUNT ( * ), + 81 ) AS col2
----
95

query I rowsort
SELECT ALL + 91 + 53 AS col1
----
144

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT DISTINCT COUNT( * ) + + 78
----
79

skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT COUNT ( * ) + + 78
----
79

query II rowsort
SELECT - 1 col1, ( + 19 ) AS col1
----
-1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT ALL NULLIF ( 44, - - COUNT( * ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-2153
SELECT ALL NULLIF ( 44, - - COUNT ( * ) ) AS col1
----
44

query I rowsort
SELECT ALL 28 - - 88 AS col2
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT - 98 - + 87 - COUNT( * ) AS col1
----
-186

skipif mysql # not compatible
query I rowsort label-2155
SELECT - 98 - + 87 - COUNT ( * ) AS col1
----
-186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT - 68 * + ( - 82 ) + + - MIN( - 16 ) * CAST( COUNT( * ) AS SIGNED ) AS col2
----
5592

skipif mysql # not compatible
query I rowsort label-2156
SELECT - 68 * + ( - 82 ) + + - MIN ( - 16 ) * CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
5592

query I rowsort
SELECT DISTINCT + 81 * - 88 AS col1
----
-7128

onlyif mysql # DIV for integer division: 
query II rowsort label-2158
SELECT + 8, + 84 DIV + 93 * + - 23 col2
----
8
0

skipif mysql # not compatible
query II rowsort label-2158
SELECT + 8, + 84 / + 93 * + - 23 col2
----
8
0

query I rowsort
SELECT ALL - - 40 col0
----
40

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

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

query II rowsort
SELECT 8, - 28 col2
----
8
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT 30 + 99 DIV + 18
----
35

skipif mysql # not compatible
query I rowsort label-2162
SELECT 30 + 99 / + 18
----
35

query I rowsort
SELECT 4 * + + 55
----
220

query II rowsort
SELECT DISTINCT - 43, 2 AS col2
----
-43
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT ALL + 1 DIV 30
----
0

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL + 1 / 30
----
0

query I rowsort
SELECT 29 * + 86 AS col2
----
2494

query I rowsort
SELECT ALL 50 * + - 34 col1
----
-1700

query I rowsort
SELECT 92 * + 20 - - 34
----
1874

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

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

query I rowsort
SELECT 19 - - + 63
----
82

query II rowsort
SELECT + 78 AS col2, - 72 + 76 AS col1
----
78
4

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

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

query I rowsort
SELECT 29 + + 12 * + + 12 AS col1
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2174
SELECT COUNT( * ) DIV - - COALESCE ( + SUM( DISTINCT - + 31 ), - + ( 57 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2174
SELECT COUNT ( * ) / - - COALESCE ( + SUM ( DISTINCT - + 31 ), - + ( 57 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2175
SELECT DISTINCT - 11 + 3 + + COUNT( * ) - - COUNT( * ) * + 22 * - 64 * + 56 + - 82 * 79 AS col2, 19 + + 84 col0
----
-85333
103

skipif mysql # not compatible
query II rowsort label-2175
SELECT DISTINCT - 11 + 3 + + COUNT ( * ) - - COUNT ( * ) * + 22 * - 64 * + 56 + - 82 * 79 AS col2, 19 + + 84 col0
----
-85333
103

query I rowsort
SELECT ALL 42 + - 22 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT 30 * 21 - COUNT( * )
----
629

skipif mysql # not compatible
query I rowsort label-2177
SELECT 30 * 21 - COUNT ( * )
----
629

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT ALL + 3 * - MAX( + 12 ) * - 13 * 91
----
42588

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL + 3 * - MAX ( + 12 ) * - 13 * 91
----
42588

query I rowsort
SELECT - + 45 * + + ( + 39 ) + + - 33 + 48 * + 52 * + + 10
----
23172

query II rowsort
SELECT - 23 AS col1, - 60 * + + 65 AS col0
----
-23
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL 99 - - COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL 99 - - COUNT ( * )
----
100

query I rowsort
SELECT 84 * - - 6 AS col0
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-2185
SELECT ALL - CASE - 84 WHEN - 14 * - + CASE + 41 WHEN - 46 THEN - - COUNT( * ) ELSE NULL END THEN - + NULLIF ( + 82, + 94 - - 11 ) ELSE 36 END, - 17 * - + 94 - 29 AS col0
----
-36
1569

skipif mysql # not compatible
query II rowsort label-2185
SELECT ALL - CASE - 84 WHEN - 14 * - + CASE + 41 WHEN - 46 THEN - - COUNT ( * ) ELSE NULL END THEN - + NULLIF ( + 82, + 94 - - 11 ) ELSE 36 END, - 17 * - + 94 - 29 AS col0
----
-36
1569

query II rowsort
SELECT - 29 AS col0, 34 + - 64 AS col0
----
-29
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + 65 - ( + COUNT( * ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 65 - ( + COUNT ( * ) ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL + 68 * 61 + 9 + - 90 * + COUNT( ALL 84 ) + 36 + + + 99 AS col0
----
4202

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + 68 * 61 + 9 + - 90 * + COUNT ( ALL 84 ) + 36 + + + 99 AS col0
----
4202

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT CASE + 90 WHEN + - CASE WHEN NOT - 68 IS NULL THEN NULL ELSE + + 52 * + 82 * COUNT( * ) END * + - 13 * + 82 THEN NULL WHEN - + 64 + + - 2 + + - 76 THEN COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2189
SELECT DISTINCT CASE + 90 WHEN + - CASE WHEN NOT - 68 IS NULL THEN NULL ELSE + + 52 * + 82 * COUNT ( * ) END * + - 13 * + 82 THEN NULL WHEN - + 64 + + - 2 + + - 76 THEN COUNT ( * ) ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT DISTINCT - ( - + COUNT( * ) ) * + COUNT( * ) + + 20 + 57 + + 83 + - - 55 + - 54 + - COUNT( * ) * + COUNT( * )
----
161

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - ( - + COUNT ( * ) ) * + COUNT ( * ) + + 20 + 57 + + 83 + - - 55 + - 54 + - COUNT ( * ) * + COUNT ( * )
----
161

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL COUNT( * ) * + 96 * CASE - + 49 WHEN 95 + - + 26 THEN + 2 ELSE + SUM( - 79 ) + + 71 END col0
----
-768

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL COUNT ( * ) * + 96 * CASE - + 49 WHEN 95 + - + 26 THEN + 2 ELSE + SUM ( - 79 ) + + 71 END col0
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT 45 + + + ( - 35 ) - 94 * - COUNT( * ) AS col0
----
104

skipif mysql # not compatible
query I rowsort label-2194
SELECT 45 + + + ( - 35 ) - 94 * - COUNT ( * ) AS col0
----
104

query II rowsort
SELECT 62 AS col0, 60 - + 84
----
62
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2196
SELECT + 98 DIV - 92 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2196
SELECT + 98 / - 92 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT 22 * - 44 * - 72 * - + 44 + - + 39 + + 79 + 64 * - 4 * - 93 * + NULLIF ( - + 86, 54 * + 78 * COUNT( * ) ) + 55 * + + 58 AS col2
----
-5110882

skipif mysql # not compatible
query I rowsort label-2197
SELECT 22 * - 44 * - 72 * - + 44 + - + 39 + + 79 + 64 * - 4 * - 93 * + NULLIF ( - + 86, 54 * + 78 * COUNT ( * ) ) + 55 * + + 58 AS col2
----
-5110882

query I rowsort
SELECT + 7 + - - 58
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT DISTINCT ( + COALESCE ( ( - 13 ), + 70, + - 92 + - 74 ) ) DIV - 45
----
0

skipif mysql # not compatible
query I rowsort label-2199
SELECT DISTINCT ( + COALESCE ( ( - 13 ), + 70, + - 92 + - 74 ) ) / - 45
----
0

query II rowsort
SELECT ALL - ( 99 ), 55 * + + 30 AS col2
----
-99
1650

onlyif mysql # aggregate syntax: 
query II rowsort label-2201
SELECT - + 99 AS col0, COUNT( * ) + + 99 + - 45 - + + 76
----
-99
-21

skipif mysql # not compatible
query II rowsort label-2201
SELECT - + 99 AS col0, COUNT ( * ) + + 99 + - 45 - + + 76
----
-99
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2202
SELECT CAST( NULL AS SIGNED ) / 34, 49 * + 17 AS col0
----
NULL
833

skipif mysql # not compatible
query II rowsort label-2202
SELECT CAST ( NULL AS INTEGER ) / 34, 49 * + 17 AS col0
----
NULL
833

onlyif mysql # DIV for integer division: 
query I rowsort label-2203
SELECT DISTINCT 92 DIV + 4
----
23

skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT 92 / + 4
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2204
SELECT - COUNT( * ) * 56 * ( - 80 ) - CAST( NULL AS SIGNED ) * + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT - COUNT ( * ) * 56 * ( - 80 ) - CAST ( NULL AS INTEGER ) * + 26 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 66 * - 0 + - 65 + + 22 AS col1
----
-43

query I rowsort
SELECT CASE - 37 WHEN + ( + + 90 ) THEN 57 + - - 15 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2207
SELECT - 14 + 5 + + 59 + - 14 + 5 DIV COUNT( * ) DIV + ( - 2 ) + - - 71
----
105

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 14 + 5 + + 59 + - 14 + 5 / COUNT ( * ) / + ( - 2 ) + - - 71
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2208
SELECT + NULLIF ( - 97, - - AVG ( - CAST( NULL AS SIGNED ) ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-2208
SELECT + NULLIF ( - 97, - - AVG ( - CAST ( NULL AS INTEGER ) ) ) AS col1
----
-97

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

skipif mysql # not compatible
query I rowsort label-2209
SELECT NULLIF ( 65, + - COALESCE ( - 97, + COUNT ( * ) ) )
----
65

query I rowsort
SELECT - 8 - + 67 AS col1
----
-75

query I rowsort
SELECT DISTINCT 60 * 31 + - - 94 col0
----
1954

query I rowsort
SELECT ALL 35 * - - 47 + - 54
----
1591

query I rowsort
SELECT DISTINCT + 25 * - 1
----
-25

query I rowsort
SELECT DISTINCT + ( - 8 ) * + 29
----
-232

onlyif mysql # aggregate syntax: 
query II rowsort label-2215
SELECT - ( 57 ) + 37 - + MAX( ALL 18 ) AS col1, 94
----
-38
94

skipif mysql # not compatible
query II rowsort label-2215
SELECT - ( 57 ) + 37 - + MAX ( ALL 18 ) AS col1, 94
----
-38
94

query I rowsort
SELECT - - 58 * - + 61 AS col0
----
-3538

query II rowsort
SELECT - - 52 * + 87, 81 * 93 col1
----
4524
7533

query II rowsort
SELECT + 50 + - 11 AS col1, 33 - - 27 + + 91 AS col2
----
39
151

query II rowsort
SELECT - 89 * + 56, 80 AS col1
----
-4984
80

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT ALL + CASE - COUNT( * ) WHEN + 15 * 49 THEN NULL WHEN 20 THEN CASE - + 91 WHEN + - 31 THEN - + 34 ELSE 20 * + + COUNT( 86 ) + - 45 END END, 40 * 91 AS col2
----
NULL
3640

skipif mysql # not compatible
query II rowsort label-2221
SELECT ALL + CASE - COUNT ( * ) WHEN + 15 * 49 THEN NULL WHEN 20 THEN CASE - + 91 WHEN + - 31 THEN - + 34 ELSE 20 * + + COUNT ( 86 ) + - 45 END END, 40 * 91 AS col2
----
NULL
3640

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

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL 46 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT + + 25 + - - 41 + + COUNT( * ) + + + 77 * 12 AS col1
----
991

skipif mysql # not compatible
query I rowsort label-2223
SELECT + + 25 + - - 41 + + COUNT ( * ) + + + 77 * 12 AS col1
----
991

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2224
SELECT DISTINCT - - 68 DIV + CAST( + + 97 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT - - 68 / + CAST ( + + 97 AS INTEGER ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT - - 56 * + 15 - - COUNT( * ) AS col1
----
841

skipif mysql # not compatible
query I rowsort label-2225
SELECT - - 56 * + 15 - - COUNT ( * ) AS col1
----
841

query I rowsort
SELECT + - 92 * 12 * 44 AS col2
----
-48576

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL 35 * - - 42 + COUNT( * ) AS col0
----
1471

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL 35 * - - 42 + COUNT ( * ) AS col0
----
1471

query I rowsort
SELECT - 5 * + 60 AS col0
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2231
SELECT ALL - COUNT( * ) + + - 3 / + CAST( NULL AS SIGNED ) / + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2231
SELECT ALL - COUNT ( * ) + + - 3 / + CAST ( NULL AS INTEGER ) / + 22
----
NULL

query I rowsort
SELECT ALL + 1 + - - 51
----
52

query I rowsort
SELECT + 62 + - 10
----
52

query III rowsort
SELECT 71 AS col2, - 96 * - 94 * - 37 AS col2, 24 AS col1
----
71
-333888
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT ALL NULLIF ( - 54, 51 ) + - CAST( + MIN( 5 ) AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL NULLIF ( - 54, 51 ) + - CAST ( + MIN ( 5 ) AS INTEGER ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2236
SELECT + 38 + - + CASE 64 WHEN - 16 / 91 THEN + 10 WHEN COUNT( * ) * + + COUNT( * ) + 11 THEN NULL END * 99 - - 83 * + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT + 38 + - + CASE 64 WHEN - 16 / 91 THEN + 10 WHEN COUNT ( * ) * + + COUNT ( * ) + 11 THEN NULL END * 99 - - 83 * + 10 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL COUNT( * ) + - CAST( - 81 AS SIGNED ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL COUNT ( * ) + - CAST ( - 81 AS INTEGER ) AS col1
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2238
SELECT + 15 DIV - 26
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT + 15 / - 26
----
0

query I rowsort
SELECT + 26 * - 61
----
-1586

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2241
SELECT CAST( - NULLIF ( - 0, - 39 ) AS SIGNED ) col0, 93 AS col2
----
0
93

skipif mysql # not compatible
query II rowsort label-2241
SELECT CAST ( - NULLIF ( - 0, - 39 ) AS INTEGER ) col0, 93 AS col2
----
0
93

query I rowsort
SELECT - 85 + 1
----
-84

query I rowsort
SELECT ALL 37 * - 43 AS col0
----
-1591

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-2244
SELECT + 49 DIV + + 72 * + + 87 col0, - 85 + - - 72 + 2 * 27 * - 85 + - ( + 70 ) * 29 AS col2, - ( - 9 ) * - COALESCE ( + + COUNT( * ), - 10 ) + - + ( - + 42 ) * - - COUNT( * ) DIV CAST( + AVG ( ALL - 94 ) AS SIGNED ) AS col1
----
0
-6633
-9

skipif mysql # not compatible
query III rowsort label-2244
SELECT + 49 / + + 72 * + + 87 col0, - 85 + - - 72 + 2 * 27 * - 85 + - ( + 70 ) * 29 AS col2, - ( - 9 ) * - COALESCE ( + + COUNT ( * ), - 10 ) + - + ( - + 42 ) * - - COUNT ( * ) / CAST ( + AVG ( ALL - 94 ) AS INTEGER ) AS col1
----
0
-6633
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-2245
SELECT ALL - ( NULLIF ( + 46, + ( 68 ) * + 35 ) ) * + 13 * + - SUM( DISTINCT 99 ) * + 3 + - 20 - - SUM( + 62 ) AS col0, 5
----
177648
5

skipif mysql # not compatible
query II rowsort label-2245
SELECT ALL - ( NULLIF ( + 46, + ( 68 ) * + 35 ) ) * + 13 * + - SUM ( DISTINCT 99 ) * + 3 + - 20 - - SUM ( + 62 ) AS col0, 5
----
177648
5

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

query I rowsort
SELECT + 95 * + - 72
----
-6840

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

skipif mysql # not compatible
query I rowsort label-2248
SELECT - COUNT ( * ) / - 88 AS col2
----
0

query II rowsort
SELECT DISTINCT + 15, 98 + - 99 + + 99 AS col2
----
15
98

query I rowsort
SELECT + 51 - + 79
----
-28

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

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

query I rowsort
SELECT + 64 + + - 45 AS col1
----
19

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

skipif mysql # not compatible
query I rowsort label-2253
SELECT - - CAST ( NULL AS INTEGER ) * + 30 * 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL + COALESCE ( ( - COUNT( ALL + - 65 ) ), - + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL + COALESCE ( ( - COUNT ( ALL + - 65 ) ), - + 78 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT ALL + - COUNT( DISTINCT 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL + - COUNT ( DISTINCT 96 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT + 62 * - + 93 + - ( - ( + + 91 ) ) - - 15 * - + 94 * - CASE MAX( + 90 ) WHEN - - 19 * + 93 THEN - 55 END - - - 85 * + CAST( NULL AS SIGNED ) + + 49 * - + 58 * + 88 * ( 55 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT + 62 * - + 93 + - ( - ( + + 91 ) ) - - 15 * - + 94 * - CASE MAX ( + 90 ) WHEN - - 19 * + 93 THEN - 55 END - - - 85 * + CAST ( NULL AS INTEGER ) + + 49 * - + 58 * + 88 * ( 55 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2257
SELECT ALL - - CAST( - 22 AS SIGNED ) * - COUNT( * ) + + 19 AS col0, + ( - 56 ) AS col0
----
41
-56

skipif mysql # not compatible
query II rowsort label-2257
SELECT ALL - - CAST ( - 22 AS INTEGER ) * - COUNT ( * ) + + 19 AS col0, + ( - 56 ) AS col0
----
41
-56

query I rowsort
SELECT - + 21 + + 14 + - + 55 * - + 83 AS col2
----
4558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2259
SELECT + 70 * - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2, - NULLIF ( + 76, + CASE - + COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN - - 48 * 84 WHEN - MIN( ALL + 28 ) * - - 3 * + 30 * + + 93 * - - 17 * + 5 THEN 89 + - - 17 ELSE NULL END )
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-2259
SELECT + 70 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2, - NULLIF ( + 76, + CASE - + COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN - - 48 * 84 WHEN - MIN ( ALL + 28 ) * - - 3 * + 30 * + + 93 * - - 17 * + 5 THEN 89 + - - 17 ELSE NULL END )
----
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - MAX( ALL - + 4 ) + - - 7 + + - 66 + - CASE 83 WHEN - + 90 / 41 - + 29 + - - 41 THEN NULL WHEN 65 THEN - 9 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2260
SELECT - MAX ( ALL - + 4 ) + - - 7 + + - 66 + - CASE 83 WHEN - + 90 / 41 - + 29 + - - 41 THEN NULL WHEN 65 THEN - 9 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2261
SELECT - + CAST( NULL AS SIGNED ) / + - 7 * 75 AS col0, - 75 AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-2261
SELECT - + CAST ( NULL AS INTEGER ) / + - 7 * 75 AS col0, - 75 AS col1
----
NULL
-75

query I rowsort
SELECT DISTINCT + - 53 + 54 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT ALL - - COUNT( ALL - - 19 ) + - 60 + 51 * - 98 + + 34 + MIN( + 61 ) * - 39 AS col0
----
-7402

skipif mysql # not compatible
query I rowsort label-2263
SELECT ALL - - COUNT ( ALL - - 19 ) + - 60 + 51 * - 98 + + 34 + MIN ( + 61 ) * - 39 AS col0
----
-7402

query II rowsort
SELECT - 99 AS col2, 20 * + 20
----
-99
400

query II rowsort
SELECT ALL + 29 AS col2, 63
----
29
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT DISTINCT + COUNT( * ) + 98 + - 65 AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + COUNT ( * ) + 98 + - 65 AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT COUNT( * ) + - 52 - - + COUNT( * ) AS col2, MAX( DISTINCT - 10 ) + 16
----
-50
6

skipif mysql # not compatible
query II rowsort label-2267
SELECT COUNT ( * ) + - 52 - - + COUNT ( * ) AS col2, MAX ( DISTINCT - 10 ) + 16
----
-50
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2268
SELECT NULLIF ( + + 74, + CAST( + ( COUNT( * ) ) AS SIGNED ) ) * + ( ( 29 ) ) AS col1
----
2146

skipif mysql # not compatible
query I rowsort label-2268
SELECT NULLIF ( + + 74, + CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) * + ( ( 29 ) ) AS col1
----
2146

onlyif mysql # DIV for integer division: 
query I rowsort label-2269
SELECT ALL - 42 DIV - + NULLIF ( 97, - 33 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - 42 / - + NULLIF ( 97, - 33 ) AS col1
----
0

query II rowsort
SELECT 19 + - 76 AS col2, + 37 AS col2
----
-57
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT 91 - - 95 DIV - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT 91 - - 95 / - COUNT ( * )
----
-4

query I rowsort
SELECT ALL 67 - 7 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2273
SELECT DISTINCT - CAST( - ( - + 37 ) AS SIGNED ) * + 42, + COUNT( * ) AS col0
----
-1554
1

skipif mysql # not compatible
query II rowsort label-2273
SELECT DISTINCT - CAST ( - ( - + 37 ) AS INTEGER ) * + 42, + COUNT ( * ) AS col0
----
-1554
1

query I rowsort
SELECT 58 * - 39 AS col0
----
-2262

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL COUNT( * ) - - ( + 8 ) + - 10 * + 85 - COUNT( * )
----
-842

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL COUNT ( * ) - - ( + 8 ) + - 10 * + 85 - COUNT ( * )
----
-842

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2276
SELECT 35 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2276
SELECT 35 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2277
SELECT ( ( + + COUNT( * ) ) ) + + 76 DIV - - 40 + - - 6 - + 40 + + 33 DIV 17 * 17 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2277
SELECT ( ( + + COUNT ( * ) ) ) + + 76 / - - 40 + - - 6 - + 40 + + 33 / 17 * 17 AS col1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2278
SELECT COUNT( * ) + - CAST( COALESCE ( + COALESCE ( 9, 1 - + + 43, - COUNT( * ) ), + 72 ) AS SIGNED ) col1, + 87 - + 18 AS col0
----
-8
69

skipif mysql # not compatible
query II rowsort label-2278
SELECT COUNT ( * ) + - CAST ( COALESCE ( + COALESCE ( 9, 1 - + + 43, - COUNT ( * ) ), + 72 ) AS INTEGER ) col1, + 87 - + 18 AS col0
----
-8
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT SUM( + 63 ) * 26 + + + 0 AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-2279
SELECT SUM ( + 63 ) * 26 + + + 0 AS col1
----
1638

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT COUNT( * ) * + MIN( DISTINCT + 36 ) col1
----
36

skipif mysql # not compatible
query I rowsort label-2280
SELECT COUNT ( * ) * + MIN ( DISTINCT + 36 ) col1
----
36

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2282
SELECT ALL - - ( - ( - + CAST( - - 79 AS SIGNED ) ) ) AS col2, 76
----
79
76

skipif mysql # not compatible
query II rowsort label-2282
SELECT ALL - - ( - ( - + CAST ( - - 79 AS INTEGER ) ) ) AS col2, 76
----
79
76

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

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + - 43 + 1 * COUNT ( * ) col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + + 3 * - + ( - 98 ) * MIN( + + 12 ) * - - 38 + + 81 - + 93 + + 60 + + 42
----
134154

skipif mysql # not compatible
query I rowsort label-2284
SELECT + + 3 * - + ( - 98 ) * MIN ( + + 12 ) * - - 38 + + 81 - + 93 + + 60 + + 42
----
134154

query I rowsort
SELECT ALL 68 * 59 * - + 80
----
-320960

query I rowsort
SELECT DISTINCT - 62 * - 62 - - 10
----
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - 42 * + + 65 * - - 51 / + CASE - 86 WHEN - CASE + - 78 WHEN + NULLIF ( + 18, + - COUNT( * ) / + 84 * MIN( DISTINCT + ( - 43 ) ) ) THEN NULL WHEN 74 THEN + 7 / 85 + - + 71 WHEN - 23 / + - 45 THEN 3 * + 6 END THEN - 20 ELSE NULL END + + 28 + - ( + + 93 ) + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-2287
SELECT - 42 * + + 65 * - - 51 / + CASE - 86 WHEN - CASE + - 78 WHEN + NULLIF ( + 18, + - COUNT ( * ) / + 84 * MIN ( DISTINCT + ( - 43 ) ) ) THEN NULL WHEN 74 THEN + 7 / 85 + - + 71 WHEN - 23 / + - 45 THEN 3 * + 6 END THEN - 20 ELSE NULL END + + 28 + - ( + + 93 ) + 10
----
NULL

query I rowsort
SELECT ALL 95 + + 47 * - 10 col2
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT + 34 + + ( + COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-2289
SELECT + 34 + + ( + COUNT ( * ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2290
SELECT ALL + ( + CAST( NULL AS SIGNED ) ), 12 DIV + 97 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2290
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ), 12 / + 97 AS col2
----
NULL
0

query I rowsort
SELECT ALL 57 + 31 + + 58
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2292
SELECT MIN( ALL - + 6 ) AS col2, - COALESCE ( - + CAST( NULL AS SIGNED ), - + 34 ) AS col1
----
-6
34

skipif mysql # not compatible
query II rowsort label-2292
SELECT MIN ( ALL - + 6 ) AS col2, - COALESCE ( - + CAST ( NULL AS INTEGER ), - + 34 ) AS col1
----
-6
34

query I rowsort
SELECT DISTINCT 79 + + 87 + + NULLIF ( + + 87, 29 ) * + 19
----
1819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2294
SELECT ALL - NULLIF ( + + CAST( + CAST( 27 AS SIGNED ) AS SIGNED ), - - 38 ) * + - 13 * - 94, 40 * - 81 * 23 col1
----
-32994
-74520

skipif mysql # not compatible
query II rowsort label-2294
SELECT ALL - NULLIF ( + + CAST ( + CAST ( 27 AS INTEGER ) AS INTEGER ), - - 38 ) * + - 13 * - 94, 40 * - 81 * 23 col1
----
-32994
-74520

query I rowsort
SELECT 31 + - 65 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT DISTINCT - - 96 * - - CAST( NULL AS SIGNED ) * - 94 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT - - 96 * - - CAST ( NULL AS INTEGER ) * - 94 col1
----
NULL

query I rowsort
SELECT 23 - - 62
----
85

query I rowsort
SELECT DISTINCT - 65 - 28 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL - 47 - + COUNT( DISTINCT + 64 )
----
-48

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - 47 - + COUNT ( DISTINCT + 64 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2300
SELECT DISTINCT + 93 DIV ( - 48 ) * + 35 + - COUNT( * ) + - 16 + + 28 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-2300
SELECT DISTINCT + 93 / ( - 48 ) * + 35 + - COUNT ( * ) + - 16 + + 28 AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-2301
SELECT DISTINCT + 93 DIV - + 89
----
-1

skipif mysql # not compatible
query I rowsort label-2301
SELECT DISTINCT + 93 / - + 89
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT 48 DIV - + 79
----
0

skipif mysql # not compatible
query I rowsort label-2302
SELECT 48 / - + 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2303
SELECT 93 * - - 44 * - + CASE + - 98 WHEN 79 * + - 19 + 26 / CAST( NULL AS SIGNED ) + + 1 * COALESCE ( + CASE - 22 WHEN - 3 THEN NULL ELSE 59 * - + COUNT( * ) + + 39 END, - 20 * - 32 * + + 34 * 12 ) * - CAST( NULL AS SIGNED ) THEN NULL WHEN CAST( + + 8 AS SIGNED ) THEN NULL WHEN + + MAX( + ( - 26 ) ) THEN + 52 ELSE + NULLIF ( - 6, 89 + - 62 + - - 74 + + 5 + + 94 * + + 9 ) END AS col2
----
24552

skipif mysql # not compatible
query I rowsort label-2303
SELECT 93 * - - 44 * - + CASE + - 98 WHEN 79 * + - 19 + 26 / CAST ( NULL AS INTEGER ) + + 1 * COALESCE ( + CASE - 22 WHEN - 3 THEN NULL ELSE 59 * - + COUNT ( * ) + + 39 END, - 20 * - 32 * + + 34 * 12 ) * - CAST ( NULL AS INTEGER ) THEN NULL WHEN CAST ( + + 8 AS INTEGER ) THEN NULL WHEN + + MAX ( + ( - 26 ) ) THEN + 52 ELSE + NULLIF ( - 6, 89 + - 62 + - - 74 + + 5 + + 94 * + + 9 ) END AS col2
----
24552

query I rowsort
SELECT 99 + + + 46 AS col0
----
145

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT ALL - 93 * AVG ( ALL CAST( NULL AS SIGNED ) * 45 ) + 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL - 93 * AVG ( ALL CAST ( NULL AS INTEGER ) * 45 ) + 40 AS col2
----
NULL

query I rowsort
SELECT ALL - 43 * - 6 + 13 AS col1
----
271

query I rowsort
SELECT 72 * - 22
----
-1584

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

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

query I rowsort
SELECT + 65 * 69 - - 22
----
4507

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

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

query I rowsort
SELECT 88 + - 20 * - 96
----
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + 77 * COUNT( * ) + - CASE WHEN NOT ( COUNT( * ) ) IS NOT NULL THEN NULL WHEN NOT 62 NOT IN ( 52 ) THEN 43 - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT + 77 * COUNT ( * ) + - CASE WHEN NOT ( COUNT ( * ) ) IS NOT NULL THEN NULL WHEN NOT 62 NOT IN ( 52 ) THEN 43 - 10 END
----
NULL

query I rowsort
SELECT ALL 34 + - 19
----
15

query I rowsort
SELECT DISTINCT 57 * - 24
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT ALL ( 83 ) + COUNT( * ) * + 35
----
118

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL ( 83 ) + COUNT ( * ) * + 35
----
118

query I rowsort
SELECT + 98 + 78
----
176

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

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

query I rowsort
SELECT - ( 98 ) * + 1 + 86
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - CASE 97 WHEN - 10 THEN - COUNT( ALL 46 ) + COUNT( * ) * NULLIF ( - 45 - + 83, 83 + + AVG ( + 66 ) ) END * + AVG ( + 23 * + 52 - - 92 * 60 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2320
SELECT - CASE 97 WHEN - 10 THEN - COUNT ( ALL 46 ) + COUNT ( * ) * NULLIF ( - 45 - + 83, 83 + + AVG ( + 66 ) ) END * + AVG ( + 23 * + 52 - - 92 * 60 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT + 38 + - COUNT( * ) * COUNT( * )
----
37

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

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

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

query I rowsort
SELECT ALL + 7 * 54
----
378

query I rowsort
SELECT - 8 + 77
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT - CASE + 40 WHEN + 93 + + 9 THEN ( + 35 ) WHEN 6 THEN NULL ELSE COUNT( * ) * 76 END + 74 * ( - 63 ) AS col2
----
-4738

skipif mysql # not compatible
query I rowsort label-2327
SELECT - CASE + 40 WHEN + 93 + + 9 THEN ( + 35 ) WHEN 6 THEN NULL ELSE COUNT ( * ) * 76 END + 74 * ( - 63 ) AS col2
----
-4738

query I rowsort
SELECT - NULLIF ( 21, - 87 ) * 2 AS col0
----
-42

query I rowsort
SELECT ALL + 7 * - 80
----
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2330
SELECT + COUNT( * ) + + 31 DIV - 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2330
SELECT + COUNT ( * ) + + 31 / - 23 AS col1
----
0

query I rowsort
SELECT + 90 + + 31 AS col0
----
121

query I rowsort
SELECT ALL NULLIF ( + 45, + 25 / 17 )
----
45

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

query I rowsort
SELECT DISTINCT 7 * + 5 col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + 55 * - COUNT( * ) + + 36
----
-19

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 55 * - COUNT ( * ) + + 36
----
-19

query I rowsort
SELECT DISTINCT - 66 * - 33 + 51
----
2229

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT ALL + 30 * - COUNT( * ) + 13
----
-17

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + 30 * - COUNT ( * ) + 13
----
-17

query I rowsort
SELECT - 51 * + 61 + 59
----
-3052

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

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

query I rowsort
SELECT + - 65 * - 60 + 8 AS col1
----
3908

query I rowsort
SELECT + 3 + ( + 68 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT + 79 * - ( 27 * + COUNT( * ) ) col1
----
-2133

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + 79 * - ( 27 * + COUNT ( * ) ) col1
----
-2133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2343
SELECT DISTINCT 17 * - CAST( + 70 * - 80 + - 66 AS SIGNED ) + - COALESCE ( 34, - 16 ) AS col0
----
96288

skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT 17 * - CAST ( + 70 * - 80 + - 66 AS INTEGER ) + - COALESCE ( 34, - 16 ) AS col0
----
96288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2344
SELECT ALL - CAST( NULL AS SIGNED ) * + 12 + + 25 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL - CAST ( NULL AS INTEGER ) * + 12 + + 25 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT SUM( DISTINCT 55 ) * - 16 + + 16 AS col1
----
-864

skipif mysql # not compatible
query I rowsort label-2345
SELECT SUM ( DISTINCT 55 ) * - 16 + + 16 AS col1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT DISTINCT + NULLIF ( 83, ( - 88 ) ) * COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT + NULLIF ( 83, ( - 88 ) ) * COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT - + 65 * - 41 + CASE + SUM( ALL - 11 ) + 20 WHEN 65 + + 32 * - 9 THEN NULL WHEN - 11 THEN + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT - + 65 * - 41 + CASE + SUM ( ALL - 11 ) + 20 WHEN 65 + + 32 * - 9 THEN NULL WHEN - 11 THEN + 36 END
----
NULL

query I rowsort
SELECT - + 96 * + 72
----
-6912

query I rowsort
SELECT ALL + - 46 * 76 - + 62 AS col2
----
-3558

query I rowsort
SELECT DISTINCT - + 81 * 42 - NULLIF ( 1, 33 )
----
-3403

query I rowsort
SELECT - NULLIF ( + ( + 58 ), - 91 + - 46 ) AS col1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2352
SELECT - ( - CAST( + AVG ( DISTINCT 51 ) AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-2352
SELECT - ( - CAST ( + AVG ( DISTINCT 51 ) AS INTEGER ) )
----
51

query I rowsort
SELECT DISTINCT 73 * - 42 * - 41 AS col2
----
125706

onlyif mysql # DIV for integer division: 
query I rowsort label-2354
SELECT + 96 DIV 34 * 36
----
72

skipif mysql # not compatible
query I rowsort label-2354
SELECT + 96 / 34 * 36
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT + 2 * ( MIN( ALL - 78 ) ) AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-2355
SELECT + 2 * ( MIN ( ALL - 78 ) ) AS col2
----
-156

query I rowsort
SELECT ALL 67 * - ( ( - 52 ) )
----
3484

query I rowsort
SELECT + 49 - 64 + - 59
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT - ( + - NULLIF ( 27, - ( + COUNT( - 22 ) ) ) )
----
27

skipif mysql # not compatible
query I rowsort label-2358
SELECT - ( + - NULLIF ( 27, - ( + COUNT ( - 22 ) ) ) )
----
27

query I rowsort
SELECT ALL + 76 + + 75 * 62 AS col0
----
4726

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

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL MAX ( - 21 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2361
SELECT DISTINCT - COUNT( * ) DIV - - 2 + + 35 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - COUNT ( * ) / - - 2 + + 35 AS col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2362
SELECT + COUNT( * ) * - 40 DIV 12
----
-3

skipif mysql # not compatible
query I rowsort label-2362
SELECT + COUNT ( * ) * - 40 / 12
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT - 87 * - COUNT( * ) * - 5
----
-435

skipif mysql # not compatible
query I rowsort label-2363
SELECT - 87 * - COUNT ( * ) * - 5
----
-435

query I rowsort
SELECT ALL - 41 * + 14 - - 71 * + 75
----
4751

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT DISTINCT - 30 * + COUNT( * ) + CASE 47 WHEN COUNT( * ) * + 78 THEN ( COUNT( DISTINCT - 70 ) ) ELSE COUNT( * ) - + 96 END * 12
----
-1170

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT - 30 * + COUNT ( * ) + CASE 47 WHEN COUNT ( * ) * + 78 THEN ( COUNT ( DISTINCT - 70 ) ) ELSE COUNT ( * ) - + 96 END * 12
----
-1170

query I rowsort
SELECT ALL 1 + - 30 - 37 * + 75 AS col2
----
-2804

query I rowsort
SELECT ALL - 92 + - - 25
----
-67

query I rowsort
SELECT + 53 * - 79 col1
----
-4187

query I rowsort
SELECT ALL - 80 * 46 + 59
----
-3621

query I rowsort
SELECT DISTINCT - + 81 - - ( - 28 ) col0
----
-109

query I rowsort
SELECT 42 * + 39 + - 11 * - 4 + 93 * - 35 AS col1
----
-1573

query I rowsort
SELECT - 20 * - 81 AS col0
----
1620

query I rowsort
SELECT 83 * - - 99
----
8217

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2374
SELECT 44 * COUNT( * ) + + 83 DIV - 82
----
43

skipif mysql # not compatible
query I rowsort label-2374
SELECT 44 * COUNT ( * ) + + 83 / - 82
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2375
SELECT - 47 + - + 54 * CAST( COUNT( * ) AS SIGNED )
----
-101

skipif mysql # not compatible
query I rowsort label-2375
SELECT - 47 + - + 54 * CAST ( COUNT ( * ) AS INTEGER )
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT ALL - - COALESCE ( + 46, - COALESCE ( 97, - 37, 13 - ( 51 - + 88 * 77 ) DIV + 10 ) ) * + 79 AS col0
----
3634

skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL - - COALESCE ( + 46, - COALESCE ( 97, - 37, 13 - ( 51 - + 88 * 77 ) / + 10 ) ) * + 79 AS col0
----
3634

onlyif mysql # DIV for integer division: 
query I rowsort label-2377
SELECT DISTINCT - - 23 DIV - 1 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT - - 23 / - 1 AS col1
----
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT 26 * + 36 + 86 * 53 + COUNT( * ) AS col1
----
5495

skipif mysql # not compatible
query I rowsort label-2379
SELECT 26 * + 36 + 86 * 53 + COUNT ( * ) AS col1
----
5495

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL - MAX( DISTINCT - 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - MAX ( DISTINCT - 66 ) AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2382
SELECT 58 + - - ( - - CASE 17 WHEN - 36 + 55 THEN - 78 WHEN CAST( NULL AS SIGNED ) THEN 62 DIV - MAX( - 39 ) ELSE + MAX( ALL 10 ) DIV + 1 END )
----
68

skipif mysql # not compatible
query I rowsort label-2382
SELECT 58 + - - ( - - CASE 17 WHEN - 36 + 55 THEN - 78 WHEN CAST ( NULL AS INTEGER ) THEN 62 / - MAX ( - 39 ) ELSE + MAX ( ALL 10 ) / + 1 END )
----
68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2383
SELECT DISTINCT 53 AS col1, ( + - CAST( - 68 AS SIGNED ) ) - 85 DIV 7 AS col0
----
53
56

skipif mysql # not compatible
query II rowsort label-2383
SELECT DISTINCT 53 AS col1, ( + - CAST ( - 68 AS INTEGER ) ) - 85 / 7 AS col0
----
53
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT DISTINCT - 7 * COALESCE ( 51, - COUNT( ALL - 74 ), 57 ) AS col0
----
-357

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT - 7 * COALESCE ( 51, - COUNT ( ALL - 74 ), 57 ) AS col0
----
-357

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT 77 + - - MAX( ALL - 50 ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-2385
SELECT 77 + - - MAX ( ALL - 50 ) AS col0
----
27

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

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

query I rowsort
SELECT 57 + + 32 - - + 20 + 38 * - 68 * 80 AS col2
----
-206611

query I rowsort
SELECT DISTINCT 20 + 50
----
70

query I rowsort
SELECT 67 + 5 + 70 + 89 AS col2
----
231

query I rowsort
SELECT ALL - 89 + 5 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2391
SELECT ALL 54 + 6 + + 23 * CAST( + 73 AS SIGNED )
----
1739

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL 54 + 6 + + 23 * CAST ( + 73 AS INTEGER )
----
1739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL COUNT( * ) + + 99 + - - COUNT( * ) + 80 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL COUNT ( * ) + + 99 + - - COUNT ( * ) + 80 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 80 AS col0, 15 + + 38
----
-80
53

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT 92 + - 34 DIV 44
----
92

skipif mysql # not compatible
query I rowsort label-2394
SELECT 92 + - 34 / 44
----
92

query II rowsort
SELECT DISTINCT 84, - 63 AS col0
----
84
-63

query I rowsort
SELECT ALL 19 + 61
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT CASE + 34 WHEN + - SUM( 24 ) * 43 + 63 / - 35 THEN NULL WHEN 23 THEN NULL ELSE 40 END + - 25 * - 30 col2
----
790

skipif mysql # not compatible
query I rowsort label-2397
SELECT CASE + 34 WHEN + - SUM ( 24 ) * 43 + 63 / - 35 THEN NULL WHEN 23 THEN NULL ELSE 40 END + - 25 * - 30 col2
----
790

query I rowsort
SELECT - 93 * - 20 * - + 88 AS col2
----
-163680

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT + 2 + + 61 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-2399
SELECT + 2 + + 61 / 16
----
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT - SUM( ALL - 29 )
----
29

skipif mysql # not compatible
query I rowsort label-2401
SELECT - SUM ( ALL - 29 )
----
29

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2403
SELECT ALL - CAST( NULL AS DECIMAL ) + + COALESCE ( + 77, - 65 - + 52 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL - CAST ( NULL AS REAL ) + + COALESCE ( + 77, - 65 - + 52 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT DISTINCT 89 + + 19 + ( - ( + 64 ) ) DIV - 22 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT 89 + + 19 + ( - ( + 64 ) ) / - 22 AS col0
----
110

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2406
SELECT COUNT( * ) * + - MAX( - 79 ) + + 48
----
127

skipif mysql # not compatible
query I rowsort label-2406
SELECT COUNT ( * ) * + - MAX ( - 79 ) + + 48
----
127

query I rowsort
SELECT DISTINCT - + 79 * 38 * + 21
----
-63042

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

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT - NULLIF ( - MIN ( + 57 ), COUNT ( * ) )
----
57

query I rowsort
SELECT - 9 * - + 75 AS col1
----
675

query I rowsort
SELECT DISTINCT 53 - - - 29 AS col1
----
24

query I rowsort
SELECT + 8 * + + ( + - 60 ) + - 87 AS col1
----
-567

query I rowsort
SELECT ALL - 36 * + 61 * 89 * + 54 - 43
----
-10554019

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2413
SELECT 64, - 70 * - - 87 DIV COUNT( * ) AS col2
----
64
-6090

skipif mysql # not compatible
query II rowsort label-2413
SELECT 64, - 70 * - - 87 / COUNT ( * ) AS col2
----
64
-6090

query II rowsort
SELECT ALL - 79 AS col2, 3 * - 22
----
-79
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT DISTINCT - + COUNT( * ) AS col2, + 89 * 11
----
-1
979

skipif mysql # not compatible
query II rowsort label-2415
SELECT DISTINCT - + COUNT ( * ) AS col2, + 89 * 11
----
-1
979

query I rowsort
SELECT ALL - + COALESCE ( - ( - 26 ), 77 ) col1
----
-26

query I rowsort
SELECT 20 * + ( - 38 ) * 21 + 3 + - 96
----
-16053

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT ALL - COALESCE ( - + CAST( 7 AS SIGNED ), 41, + 98 )
----
7

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL - COALESCE ( - + CAST ( 7 AS INTEGER ), 41, + 98 )
----
7

query I rowsort
SELECT 77 * + 54 AS col2
----
4158

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2422
SELECT ALL + 48 DIV - - 4
----
12

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + 48 / - - 4
----
12

query I rowsort
SELECT 54 + - + 56 + - + 3 col2
----
-5

query I rowsort
SELECT 93 + + 15 AS col2
----
108

query I rowsort
SELECT 64 * - 1 AS col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2426
SELECT 67 DIV + NULLIF ( - 92, - 60 DIV - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2426
SELECT 67 / + NULLIF ( - 92, - 60 / - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT DISTINCT CASE 98 WHEN - 22 THEN NULL WHEN COUNT( * ) THEN - 16 * 72 - ( + 86 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2427
SELECT DISTINCT CASE 98 WHEN - 22 THEN NULL WHEN COUNT ( * ) THEN - 16 * 72 - ( + 86 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT + 31 + + COUNT( * ) - + - 79
----
111

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT + 31 + + COUNT ( * ) - + - 79
----
111

query I rowsort
SELECT 79 * + 51 AS col2
----
4029

query I rowsort
SELECT 82 - + 69 * + + ( + + 97 ) * 6
----
-40076

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL CASE 13 WHEN + - 86 * - + 87 THEN 69 WHEN - COUNT( * ) / 46 THEN NULL WHEN - 27 / + COUNT( * ) + - 50 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL CASE 13 WHEN + - 86 * - + 87 THEN 69 WHEN - COUNT ( * ) / 46 THEN NULL WHEN - 27 / + COUNT ( * ) + - 50 THEN NULL END
----
NULL

query I rowsort
SELECT + 83 + 82
----
165

query I rowsort
SELECT + 42 * + - 77 AS col2
----
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2434
SELECT - + COALESCE ( + NULLIF ( - - COALESCE ( SUM( ALL 54 ), - 65 * + 43 ), - CAST( NULL AS SIGNED ) / + 67 ), - COUNT( * ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-2434
SELECT - + COALESCE ( + NULLIF ( - - COALESCE ( SUM ( ALL 54 ), - 65 * + 43 ), - CAST ( NULL AS INTEGER ) / + 67 ), - COUNT ( * ) ) AS col1
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2435
SELECT ALL 39 - - CASE 87 WHEN + 34 / - 56 - - 4 THEN MIN( 69 ) ELSE - ( CASE 49 WHEN 41 THEN NULL WHEN 38 THEN - CAST( + 26 AS SIGNED ) + 6 WHEN - 99 / 96 - CASE + 33 WHEN 66 - - COUNT( * ) * + COUNT( * ) THEN NULL ELSE 77 END THEN NULL ELSE NULL END ) END - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL 39 - - CASE 87 WHEN + 34 / - 56 - - 4 THEN MIN ( 69 ) ELSE - ( CASE 49 WHEN 41 THEN NULL WHEN 38 THEN - CAST ( + 26 AS INTEGER ) + 6 WHEN - 99 / 96 - CASE + 33 WHEN 66 - - COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE 77 END THEN NULL ELSE NULL END ) END - + 79
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2436
SELECT + + 86 * + - COALESCE ( + 52, + 86 * + 80 + - 52, 67, - 12 ) + COUNT( * ) DIV - 99
----
-4472

skipif mysql # not compatible
query I rowsort label-2436
SELECT + + 86 * + - COALESCE ( + 52, + 86 * + 80 + - 52, 67, - 12 ) + COUNT ( * ) / - 99
----
-4472

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2437
SELECT ALL + + CAST( AVG ( ALL - + 48 ) AS SIGNED ) DIV - 27 + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL + + CAST ( AVG ( ALL - + 48 ) AS INTEGER ) / - 27 + 99 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT + 40 - + COUNT( * ) + 23 col0
----
62

skipif mysql # not compatible
query I rowsort label-2438
SELECT + 40 - + COUNT ( * ) + 23 col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT - + ( + ( COALESCE ( + 16, 68, 44 * - 36 ) ) ) - 93 * - SUM( DISTINCT + CASE - 64 WHEN 22 THEN ( COALESCE ( - CASE 97 WHEN 37 THEN NULL WHEN 81 + 83 THEN 47 ELSE 97 END, 0, - ( ( 4 ) ) ) ) + 44 / + ( - 46 ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT - + ( + ( COALESCE ( + 16, 68, 44 * - 36 ) ) ) - 93 * - SUM ( DISTINCT + CASE - 64 WHEN 22 THEN ( COALESCE ( - CASE 97 WHEN 37 THEN NULL WHEN 81 + 83 THEN 47 ELSE 97 END, 0, - ( ( 4 ) ) ) ) + 44 / + ( - 46 ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + MAX( DISTINCT 33 ) * - 25
----
-825

skipif mysql # not compatible
query I rowsort label-2440
SELECT + MAX ( DISTINCT 33 ) * - 25
----
-825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT CASE 85 WHEN COUNT( * ) THEN COUNT( * ) + - 52 * COUNT( * ) WHEN MAX( + 77 ) * - 64 THEN NULL ELSE CASE - 14 WHEN CAST( NULL AS SIGNED ) * 85 THEN NULL ELSE 73 END + - 74 END col1
----
-1

skipif mysql # not compatible
query I rowsort label-2441
SELECT CASE 85 WHEN COUNT ( * ) THEN COUNT ( * ) + - 52 * COUNT ( * ) WHEN MAX ( + 77 ) * - 64 THEN NULL ELSE CASE - 14 WHEN CAST ( NULL AS INTEGER ) * 85 THEN NULL ELSE 73 END + - 74 END col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT CASE 92 WHEN - ( - - 22 ) + + 71 THEN NULL WHEN + 84 THEN NULL ELSE + CASE + 40 WHEN 80 * 14 THEN - CAST( NULL AS SIGNED ) / - 73 + 80 * - 16 WHEN + 31 THEN NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT CASE 92 WHEN - ( - - 22 ) + + 71 THEN NULL WHEN + 84 THEN NULL ELSE + CASE + 40 WHEN 80 * 14 THEN - CAST ( NULL AS INTEGER ) / - 73 + 80 * - 16 WHEN + 31 THEN NULL END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT + CASE - COUNT( * ) WHEN - + 85 + + 88 + + 39 THEN + 40 + 72 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2443
SELECT + CASE - COUNT ( * ) WHEN - + 85 + + 88 + + 39 THEN + 40 + 72 END AS col0
----
NULL

query I rowsort
SELECT ALL + - ( + - 85 ) * 74 + - + 24 - + 0 * 51
----
6266

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT ALL 68 DIV ( + - 78 ) * 70 + 98 AS col2
----
98

skipif mysql # not compatible
query I rowsort label-2445
SELECT ALL 68 / ( + - 78 ) * 70 + 98 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT DISTINCT + - NULLIF ( - COUNT( 2 ), 20 )
----
1

skipif mysql # not compatible
query I rowsort label-2446
SELECT DISTINCT + - NULLIF ( - COUNT ( 2 ), 20 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2447
SELECT + COUNT( ALL + - 29 ) / + CAST( NULL AS SIGNED ) - - - COUNT( * ) + AVG ( 5 ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT + COUNT ( ALL + - 29 ) / + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + AVG ( 5 ) * 0
----
NULL

query I rowsort
SELECT DISTINCT + 58 * + 96 - 2 + + 75 AS col2
----
5641

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT - 9 DIV - 15 + - 74 + - + 1 * + 46
----
-120

skipif mysql # not compatible
query I rowsort label-2449
SELECT - 9 / - 15 + - 74 + - + 1 * + 46
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2450
SELECT CASE - COUNT( * ) WHEN - 45 THEN CAST( NULL AS SIGNED ) ELSE - 12 END
----
-12

skipif mysql # not compatible
query I rowsort label-2450
SELECT CASE - COUNT ( * ) WHEN - 45 THEN CAST ( NULL AS INTEGER ) ELSE - 12 END
----
-12

query I rowsort
SELECT + ( + 4 ) col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT + MAX( ALL + + 13 ) + - + 41 * - 91 AS col0
----
3744

skipif mysql # not compatible
query I rowsort label-2452
SELECT + MAX ( ALL + + 13 ) + - + 41 * - 91 AS col0
----
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT COALESCE ( 59, 84 * 89 - 73 + - 34, CAST( NULL AS SIGNED ) )
----
59

skipif mysql # not compatible
query I rowsort label-2453
SELECT COALESCE ( 59, 84 * 89 - 73 + - 34, CAST ( NULL AS INTEGER ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT CASE - + 48 WHEN - + MIN( - 29 ) THEN NULL WHEN 36 THEN - ( 11 ) * + 49 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT CASE - + 48 WHEN - + MIN ( - 29 ) THEN NULL WHEN 36 THEN - ( 11 ) * + 49 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT 62 * + CASE 5 WHEN - ( 95 ) * + 17 + + AVG ( + 55 ) THEN + 62 + - MIN( + 53 + + 1 * - 83 ) WHEN - 21 * + COUNT( * ) THEN NULL WHEN 97 + 90 THEN + 21 * 17 ELSE 44 * COUNT( * ) END + 31
----
2759

skipif mysql # not compatible
query I rowsort label-2455
SELECT 62 * + CASE 5 WHEN - ( 95 ) * + 17 + + AVG ( + 55 ) THEN + 62 + - MIN ( + 53 + + 1 * - 83 ) WHEN - 21 * + COUNT ( * ) THEN NULL WHEN 97 + 90 THEN + 21 * 17 ELSE 44 * COUNT ( * ) END + 31
----
2759

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2456
SELECT ALL COUNT( * ) * + 12 + ( + NULLIF ( - - ( COALESCE ( COUNT( * ), + 10 * 33, + 78 DIV - 38 + + 67 ) ), - 15 DIV - 3 ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL COUNT ( * ) * + 12 + ( + NULLIF ( - - ( COALESCE ( COUNT ( * ), + 10 * 33, + 78 / - 38 + + 67 ) ), - 15 / - 3 ) ) AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL 3 * - SUM( - 81 ) + + 73 * - + CASE 60 WHEN 58 THEN NULL ELSE + COUNT( * ) * - 19 END * + 98 AS col0
----
136169

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL 3 * - SUM ( - 81 ) + + 73 * - + CASE 60 WHEN 58 THEN NULL ELSE + COUNT ( * ) * - 19 END * + 98 AS col0
----
136169

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT + COALESCE ( + 11, 13 ) * - + SUM( DISTINCT NULLIF ( 94, + 27 ) )
----
-1034

skipif mysql # not compatible
query I rowsort label-2458
SELECT + COALESCE ( + 11, 13 ) * - + SUM ( DISTINCT NULLIF ( 94, + 27 ) )
----
-1034

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT DISTINCT 77 * + + COUNT( * ) + COUNT( * ) DIV 16 + 85 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT 77 * + + COUNT ( * ) + COUNT ( * ) / 16 + 85 AS col2
----
162

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

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

query I rowsort
SELECT ALL 52 * - 70 + - 28 + + + 19 + + + 73 * NULLIF ( + 61 * 19 + 90, + 94 ) AS col2
----
87528

query I rowsort
SELECT + 60 + 52
----
112

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT + CAST( NULL AS SIGNED ) + - ( - 44 ) * + 70 / + 71 * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT + CAST ( NULL AS INTEGER ) + - ( - 44 ) * + 70 / + 71 * - 30
----
NULL

query II rowsort
SELECT ALL 42 - - + 98 + + + 64, + 68 - + + CASE WHEN 89 BETWEEN - 80 + 5 AND 21 THEN 74 END AS col0
----
204
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT ALL - 27 * CAST( + COUNT( * ) AS SIGNED ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL - 27 * CAST ( + COUNT ( * ) AS INTEGER ) AS col2
----
-27

query II rowsort
SELECT ALL 69 col0, + ( 7 )
----
69
7

query I rowsort
SELECT DISTINCT - 62 * - - 36
----
-2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2469
SELECT - 24 + - 62 + 0 DIV CASE - MIN( - 11 ) WHEN 85 - + ( 83 ) * - 17 THEN COALESCE ( 59, + ( + 23 ) ) + - 64 ELSE - 69 * - COUNT( * ) END
----
-86

skipif mysql # not compatible
query I rowsort label-2469
SELECT - 24 + - 62 + 0 / CASE - MIN ( - 11 ) WHEN 85 - + ( 83 ) * - 17 THEN COALESCE ( 59, + ( + 23 ) ) + - 64 ELSE - 69 * - COUNT ( * ) END
----
-86

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

skipif mysql # not compatible
query II rowsort label-2470
SELECT - - 60 AS col2, COUNT ( * ) AS col0
----
60
1

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

query I rowsort
SELECT - 0 + + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + 69 - - COUNT( DISTINCT - - 51 )
----
70

skipif mysql # not compatible
query I rowsort label-2473
SELECT + 69 - - COUNT ( DISTINCT - - 51 )
----
70

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

skipif mysql # not compatible
query II rowsort label-2474
SELECT DISTINCT - COUNT ( * ) AS col2, 30
----
-1
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT ALL + ( 59 ) + + - 54 - NULLIF ( + 93, 31 * - COALESCE ( 90, 91, 19 + COUNT( * ) ) ) DIV - 13
----
12

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL + ( 59 ) + + - 54 - NULLIF ( + 93, 31 * - COALESCE ( 90, 91, 19 + COUNT ( * ) ) ) / - 13
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2477
SELECT - - COUNT( * ) * - - COALESCE ( - 94, + - 13 DIV + 88 ) DIV NULLIF ( MIN( ALL 33 ) + 34, 16 ) + + 3 * - SUM( - 74 )
----
221

skipif mysql # not compatible
query I rowsort label-2477
SELECT - - COUNT ( * ) * - - COALESCE ( - 94, + - 13 / + 88 ) / NULLIF ( MIN ( ALL 33 ) + 34, 16 ) + + 3 * - SUM ( - 74 )
----
221

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT DISTINCT + MAX( - 4 ) * - 49 AS col1
----
196

skipif mysql # not compatible
query I rowsort label-2478
SELECT DISTINCT + MAX ( - 4 ) * - 49 AS col1
----
196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2479
SELECT ALL + 83 DIV 85 + + 83 + - - COUNT( * ) * + + MIN( 8 ) * + 72 + 49
----
708

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + 83 / 85 + + 83 + - - COUNT ( * ) * + + MIN ( 8 ) * + 72 + 49
----
708

onlyif mysql # DIV for integer division: 
query I rowsort label-2480
SELECT - 49 DIV - 70 + 77 + - + 85 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2480
SELECT - 49 / - 70 + 77 + - + 85 AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT - - 53 DIV + + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2481
SELECT - - 53 / + + 67 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2482
SELECT + + CAST( 56 AS DECIMAL ) + + ( - - CAST( NULL AS DECIMAL ) ) + NULLIF ( COUNT( * ), - 35 / + 39 - COUNT( * ) * - NULLIF ( + CASE AVG ( + 67 ) WHEN ( 16 ) THEN + 81 + ( ( + 85 ) ) ELSE NULL END + 33, - COUNT( * ) - - 6 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT + + CAST ( 56 AS REAL ) + + ( - - CAST ( NULL AS REAL ) ) + NULLIF ( COUNT ( * ), - 35 / + 39 - COUNT ( * ) * - NULLIF ( + CASE AVG ( + 67 ) WHEN ( 16 ) THEN + 81 + ( ( + 85 ) ) ELSE NULL END + 33, - COUNT ( * ) - - 6 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT + COUNT( * ) * + - ( 65 ) + 14 - - 10
----
-41

skipif mysql # not compatible
query I rowsort label-2483
SELECT + COUNT ( * ) * + - ( 65 ) + 14 - - 10
----
-41

query I rowsort
SELECT DISTINCT - 3 * - - 12 AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2485
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 63 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL 36 DIV + 15 + + 34 + 68 + + ( + + ( - 81 ) ) + - 65 col0
----
-42

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL 36 / + 15 + + 34 + 68 + + ( + + ( - 81 ) ) + - 65 col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL + 85 * + 37 * - COUNT( * )
----
-3145

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL + 85 * + 37 * - COUNT ( * )
----
-3145

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT DISTINCT CASE 54 WHEN - + AVG ( 92 ) THEN + SUM( + ( + 50 ) ) * 50 ELSE NULL END / + 54 + 79 / 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT CASE 54 WHEN - + AVG ( 92 ) THEN + SUM ( + ( + 50 ) ) * 50 ELSE NULL END / + 54 + 79 / 49
----
NULL

query II rowsort
SELECT ALL + 54, + 81 * + 72 * + 24 AS col1
----
54
139968

query I rowsort
SELECT ALL + 45 * - 64 + - 80 AS col2
----
-2960

query I rowsort
SELECT + ( - 11 ) * + 90 * + 89 - - 35 AS col1
----
-88075

query I rowsort
SELECT ALL 73 * - 21 + + 41 AS col1
----
-1492

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT DISTINCT 1 DIV 54 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT 1 / 54 AS col0
----
0

query II rowsort
SELECT ALL 32, - 37 * + 60 col2
----
32
-2220

query I rowsort
SELECT ALL ( + 48 ) - + + 36 AS col2
----
12

query II rowsort
SELECT ( 33 ) * + 53 + - 94 col0, + 16
----
1655
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2500
SELECT ALL COUNT( * ) * 89 AS col2, 74 * 83
----
89
6142

skipif mysql # not compatible
query II rowsort label-2500
SELECT ALL COUNT ( * ) * 89 AS col2, 74 * 83
----
89
6142

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT DISTINCT CASE + - ( 56 ) WHEN - 11 + 45 + + 24 * - 95 THEN + 27 * ( - COUNT( * ) ) END - + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT DISTINCT CASE + - ( 56 ) WHEN - 11 + 45 + + 24 * - 95 THEN + 27 * ( - COUNT ( * ) ) END - + 64
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2502
SELECT + CAST ( NULL AS INTEGER ) + - 62 - - 51
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT + COUNT( * ) * + + 95 * + 64 + - + 36
----
6044

skipif mysql # not compatible
query I rowsort label-2504
SELECT + COUNT ( * ) * + + 95 * + 64 + - + 36
----
6044

query I rowsort
SELECT NULLIF ( - - 19, - ( - ( + 97 ) ) / - 58 * + 57 - - 31 * 77 ) + - 62
----
-43

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2507
SELECT CAST( NULL AS SIGNED ) col2, 82 + + 49 col1
----
NULL
131

skipif mysql # not compatible
query II rowsort label-2507
SELECT CAST ( NULL AS INTEGER ) col2, 82 + + 49 col1
----
NULL
131

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT SUM( ( - 55 ) ) + - 53 AS col0
----
-108

skipif mysql # not compatible
query I rowsort label-2508
SELECT SUM ( ( - 55 ) ) + - 53 AS col0
----
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT - 45 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT - 45 / 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT 6 * + - 3 * + CAST( + 77 AS SIGNED ) + - - 81 AS col2
----
-1305

skipif mysql # not compatible
query I rowsort label-2510
SELECT 6 * + - 3 * + CAST ( + 77 AS INTEGER ) + - - 81 AS col2
----
-1305

query I rowsort
SELECT ALL - ( 98 ) + - 94
----
-192

query I rowsort
SELECT ALL - + 30 * 49 AS col1
----
-1470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2513
SELECT - ( + + COALESCE ( + 50, COALESCE ( - COUNT( * ), + - 55 * 84 ) * - 84, 68 ) ) DIV COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-2513
SELECT - ( + + COALESCE ( + 50, COALESCE ( - COUNT ( * ), + - 55 * 84 ) * - 84, 68 ) ) / COUNT ( * ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL + COUNT( * ) + 85 + - CASE + ( - + 68 ) WHEN - - 79 / 76 THEN - 40 ELSE NULL END + - 52 / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL + COUNT ( * ) + 85 + - CASE + ( - + 68 ) WHEN - - 79 / 76 THEN - 40 ELSE NULL END + - 52 / 3
----
NULL

query I rowsort
SELECT DISTINCT COALESCE ( + - 93, + + 22, + 16 ) AS col2
----
-93

query II rowsort
SELECT ALL + 57 + + 93 AS col1, ( - + 27 ) * ( + CASE - 41 WHEN - 84 + 56 THEN + 73 END ) + 8 AS col0
----
150
NULL

query I rowsort
SELECT ALL + - 1 + + + 57 AS col2
----
56

query II rowsort
SELECT ALL - ( - 43 ) AS col1, 43 * 73 AS col0
----
43
3139

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

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

query II rowsort
SELECT DISTINCT 50 AS col2, - ( + - ( - 34 ) ) + + 1
----
50
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT ALL + - COUNT( * ) + - 71 col2
----
-72

skipif mysql # not compatible
query I rowsort label-2521
SELECT ALL + - COUNT ( * ) + - 71 col2
----
-72

query I rowsort
SELECT 54 - 73 AS col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT + + SUM( ALL + + 51 ) col0
----
51

skipif mysql # not compatible
query I rowsort label-2523
SELECT + + SUM ( ALL + + 51 ) col0
----
51

query I rowsort
SELECT DISTINCT + 44 + - 64 + - ( - 53 )
----
33

query I rowsort
SELECT DISTINCT + 71 * 15 * - 39
----
-41535

query I rowsort
SELECT 73 * 56 AS col0
----
4088

query I rowsort
SELECT DISTINCT - 17 * 74 AS col2
----
-1258

query I rowsort
SELECT DISTINCT - 44 + - 84
----
-128

query I rowsort
SELECT ALL - 26 - - 50 AS col0
----
24

query I rowsort
SELECT 63 * 27 col0
----
1701

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

query I rowsort
SELECT ALL - 99 * + 3
----
-297

query I rowsort
SELECT 82 + + 60 * 98 + 52
----
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT 92 + + 34 - 36 * + MAX( + 73 )
----
-2502

skipif mysql # not compatible
query I rowsort label-2534
SELECT 92 + + 34 - 36 * + MAX ( + 73 )
----
-2502

query I rowsort
SELECT DISTINCT - 9 * - NULLIF ( - - NULLIF ( - 73, + 79 ), - 30 / - 16 + 48 ) AS col2
----
-657

query I rowsort
SELECT ALL - 0 * - - 82 * 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2537
SELECT 8 DIV - 93 * + 54
----
0

skipif mysql # not compatible
query I rowsort label-2537
SELECT 8 / - 93 * + 54
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT ALL 42 DIV - 34 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL 42 / - 34 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT - 81 * ( - COALESCE ( - 70, + CAST( + 15 AS SIGNED ) + 95 ) ) * - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT - 81 * ( - COALESCE ( - 70, + CAST ( + 15 AS INTEGER ) + 95 ) ) * - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2540
SELECT 27 + + 41 + 41 + - ( + NULLIF ( + CAST( NULL AS SIGNED ), + - COUNT( * ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2540
SELECT 27 + + 41 + 41 + - ( + NULLIF ( + CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) )
----
NULL

query I rowsort
SELECT 10 + - 83
----
-73

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

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

query II rowsort
SELECT ( - + 37 ) AS col1, 80 - + 75 + - - 91
----
-37
96

query I rowsort
SELECT ALL + 52 * + + 8 - 75
----
341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT COALESCE ( - 98, + + 4 * + - 92 * - - CAST( NULL AS SIGNED ) ) * 23 AS col2
----
-2254

skipif mysql # not compatible
query I rowsort label-2545
SELECT COALESCE ( - 98, + + 4 * + - 92 * - - CAST ( NULL AS INTEGER ) ) * 23 AS col2
----
-2254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2546
SELECT ALL 56 + CAST( 51 AS SIGNED ) + - SUM( DISTINCT + 0 ) DIV + + COUNT( * ) * - 33
----
107

skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL 56 + CAST ( 51 AS INTEGER ) + - SUM ( DISTINCT + 0 ) / + + COUNT ( * ) * - 33
----
107

query I rowsort
SELECT - COALESCE ( + - 61, - 34 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT ALL - 61 + 80 + COUNT( * ) * + 80
----
99

skipif mysql # not compatible
query I rowsort label-2548
SELECT ALL - 61 + 80 + COUNT ( * ) * + 80
----
99

query I rowsort
SELECT - ( - + 37 ) - 46 * + 61 AS col2
----
-2769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2550
SELECT 59 + 67 + + 7 + - CAST( - MAX( 36 ) AS SIGNED )
----
169

skipif mysql # not compatible
query I rowsort label-2550
SELECT 59 + 67 + + 7 + - CAST ( - MAX ( 36 ) AS INTEGER )
----
169

query I rowsort
SELECT COALESCE ( - + 94, + - 40 * - ( - 54 ) * - COALESCE ( + 0, - 12, 28 ) + 69 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2552
SELECT ALL 15 + CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) + - + 55 AS col2
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-2552
SELECT ALL 15 + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) + - + 55 AS col2
----
NULL
-56

query I rowsort
SELECT + 84 + - 75
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT ALL + 34 + 69 + + 99 * - - 2 + + 64 + CAST( - 33 AS SIGNED ) + 66 * + 62 AS col1
----
4424

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL + 34 + 69 + + 99 * - - 2 + + 64 + CAST ( - 33 AS INTEGER ) + 66 * + 62 AS col1
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT 91 - - + COUNT( * ) * 75 AS col0
----
166

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT 91 - - + COUNT ( * ) * 75 AS col0
----
166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL + 30 * - + 42 / + + 91 / + COUNT( * ) * - 30 * CASE - 14 WHEN + 43 THEN 21 - 96 * 77 WHEN 42 + + 58 / - 6 THEN NULL WHEN - 86 THEN NULL ELSE NULL END * - CAST( 82 + - 7 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL + 30 * - + 42 / + + 91 / + COUNT ( * ) * - 30 * CASE - 14 WHEN + 43 THEN 21 - 96 * 77 WHEN 42 + + 58 / - 6 THEN NULL WHEN - 86 THEN NULL ELSE NULL END * - CAST ( 82 + - 7 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT + 9 * 78 DIV - + 51 + MIN( DISTINCT 15 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2557
SELECT + 9 * 78 / - + 51 + MIN ( DISTINCT 15 ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT 2 + + ( - ( 63 ) ) * - ( - NULLIF ( - - ( - COUNT( * ) ), + 71 / 10 ) ) col2
----
65

skipif mysql # not compatible
query I rowsort label-2558
SELECT 2 + + ( - ( 63 ) ) * - ( - NULLIF ( - - ( - COUNT ( * ) ), + 71 / 10 ) ) col2
----
65

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2560
SELECT 73 * + ( + 32 ) col0, - ( + 65 ) + - 39 + - - 99 * - - COUNT( * ) * 21 * + 18 col1
----
2336
37318

skipif mysql # not compatible
query II rowsort label-2560
SELECT 73 * + ( + 32 ) col0, - ( + 65 ) + - 39 + - - 99 * - - COUNT ( * ) * 21 * + 18 col1
----
2336
37318

query I rowsort
SELECT - 90 * + - 68 AS col0
----
6120

query I rowsort
SELECT - 28 * - - 2 + + 72
----
16

query I rowsort
SELECT - 67 + - - 8 * + 22 - 18 + + 41 + - ( - + 73 )
----
205

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2564
SELECT COUNT( * ) AS col0, 61 DIV 67 + - 77 * + 37 * - 70 + - 82 + + 35 + 78 col1
----
1
199461

skipif mysql # not compatible
query II rowsort label-2564
SELECT COUNT ( * ) AS col0, 61 / 67 + - 77 * + 37 * - 70 + - 82 + + 35 + 78 col1
----
1
199461

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

query I rowsort
SELECT ALL - 68 * + 39 AS col2
----
-2652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT DISTINCT - COUNT( DISTINCT + 11 ) DIV + - 50 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT DISTINCT - COUNT ( DISTINCT + 11 ) / + - 50 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT - 70 * COUNT( * ) + - 82
----
-152

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - 70 * COUNT ( * ) + - 82
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL - CASE + 94 WHEN - AVG ( 16 ) THEN - MIN( 99 ) ELSE 45 END * - 31
----
1395

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - CASE + 94 WHEN - AVG ( 16 ) THEN - MIN ( 99 ) ELSE 45 END * - 31
----
1395

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT - 77 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT - 77 / + 91
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL - + COALESCE ( - 5, + - 34 ) * - COUNT( * ) + + 40 + - 10 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - + COALESCE ( - 5, + - 34 ) * - COUNT ( * ) + + 40 + - 10 AS col0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT - COUNT( * ) * - 31 * + 82 - COUNT( * ) - + 24 DIV - 85 AS col2
----
2541

skipif mysql # not compatible
query I rowsort label-2572
SELECT - COUNT ( * ) * - 31 * + 82 - COUNT ( * ) - + 24 / - 85 AS col2
----
2541

query I rowsort
SELECT ALL + 70 + - 92 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT ALL - - 59 + - 16 + 69 + - 90 + - 63 + - 32 * COUNT( * ) * - 94 * - 13
----
-39145

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL - - 59 + - 16 + 69 + - 90 + - 63 + - 32 * COUNT ( * ) * - 94 * - 13
----
-39145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT ALL - 32 + COUNT( * ) * + + 25 - + ( 40 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL - 32 + COUNT ( * ) * + + 25 - + ( 40 ) AS col2
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2577
SELECT DISTINCT - - MIN( 84 ) + - COUNT( - 93 ) + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT - - MIN ( 84 ) + - COUNT ( - 93 ) + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - - 27, 4 * - 97 AS col0
----
27
-388

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2579
SELECT ALL 90 + - 99 * - - 49 AS col1, 81 * + - CAST( NULL AS DECIMAL ) * - ( - NULLIF ( + 77, - ( - NULLIF ( CAST( 71 AS SIGNED ), 50 * CAST( + 68 * + 45 AS SIGNED ) ) ) ) ) * 99 col0
----
-4761
NULL

skipif mysql # not compatible
query II rowsort label-2579
SELECT ALL 90 + - 99 * - - 49 AS col1, 81 * + - CAST ( NULL AS REAL ) * - ( - NULLIF ( + 77, - ( - NULLIF ( CAST ( 71 AS INTEGER ), 50 * CAST ( + 68 * + 45 AS INTEGER ) ) ) ) ) * 99 col0
----
-4761
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL - + COUNT( * ) + + 42 + + - 62 * + 8 AS col1
----
-455

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - + COUNT ( * ) + + 42 + + - 62 * + 8 AS col1
----
-455

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

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL ( + + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - COUNT( DISTINCT + 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2583
SELECT - COUNT ( DISTINCT + 86 ) AS col0
----
-1

query II rowsort
SELECT ALL 1, 37 AS col2
----
1
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT - COUNT( * ) - + + COUNT( * ) + + SUM( DISTINCT - + 83 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - COUNT ( * ) - + + COUNT ( * ) + + SUM ( DISTINCT - + 83 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT - MIN( ALL + + 11 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-2586
SELECT - MIN ( ALL + + 11 ) col0
----
-11

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

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

query II rowsort
SELECT - ( + 81 ) AS col1, + 22 + + 0 AS col2
----
-81
22

query I rowsort
SELECT + 91 * + 83 * - 16
----
-120848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT + 61 - + MAX( ALL - + 65 ) DIV 38 DIV 3 * + + 98 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 61 - + MAX ( ALL - + 65 ) / 38 / 3 * + + 98 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT + NULLIF ( + - 14, + 21 + + 8 ) * + + COUNT( * ) * + 25 AS col2
----
-350

skipif mysql # not compatible
query I rowsort label-2591
SELECT + NULLIF ( + - 14, + 21 + + 8 ) * + + COUNT ( * ) * + 25 AS col2
----
-350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT + ( + MIN( 22 ) ) DIV - + 53 * + MAX( + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT + ( + MIN ( 22 ) ) / - + 53 * + MAX ( + 40 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2594
SELECT DISTINCT 78 DIV + 91 * + 69
----
0

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT 78 / + 91 * + 69
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2595
SELECT + 90 DIV 2 col0
----
45

skipif mysql # not compatible
query I rowsort label-2595
SELECT + 90 / 2 col0
----
45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT + 7 - COUNT( ALL + 68 )
----
6

skipif mysql # not compatible
query I rowsort label-2597
SELECT + 7 - COUNT ( ALL + 68 )
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT CAST( 87 AS SIGNED ) * - ( + MAX( DISTINCT - - 83 ) ) + - 35 + + + MAX( - + 25 ) * - 32 + - 77
----
-6533

skipif mysql # not compatible
query I rowsort label-2599
SELECT CAST ( 87 AS INTEGER ) * - ( + MAX ( DISTINCT - - 83 ) ) + - 35 + + + MAX ( - + 25 ) * - 32 + - 77
----
-6533

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT + ( - 48 ) AS col1, 16 * - ( + COALESCE ( ( - COALESCE ( + 29, - + COUNT( ALL + 12 ) + + 71 ) ), ( 44 ), 57, 98 * 49 + COUNT( * ) ) )
----
-48
464

skipif mysql # not compatible
query II rowsort label-2600
SELECT + ( - 48 ) AS col1, 16 * - ( + COALESCE ( ( - COALESCE ( + 29, - + COUNT ( ALL + 12 ) + + 71 ) ), ( 44 ), 57, 98 * 49 + COUNT ( * ) ) )
----
-48
464

query I rowsort
SELECT - 1 * 38 AS col1
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2602
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 79 + - + COUNT( * ) - - - 52 * 81 + + 57 * - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 79 + - + COUNT ( * ) - - - 52 * 81 + + 57 * - - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL + 43 * - 4 + + MIN( DISTINCT - 75 )
----
-247

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL + 43 * - 4 + + MIN ( DISTINCT - 75 )
----
-247

query II rowsort
SELECT + 37 * + - 91, 96 AS col2
----
-3367
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT DISTINCT + NULLIF ( - 95, + + 74 ) * 6 DIV + 93 + - + 13 + COUNT( * ) + 41 * - 23
----
-961

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT + NULLIF ( - 95, + + 74 ) * 6 / + 93 + - + 13 + COUNT ( * ) + 41 * - 23
----
-961

query I rowsort
SELECT ALL - 10 * 53 - + 97 * - + 7 + + 89
----
238

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT - COUNT( - 34 ) + 19 - + 55 col0, - 22 * + COUNT( * ) * + COUNT( * ) * + 2 * + - 37 * - 97 - - 6 AS col0
----
-37
-157910

skipif mysql # not compatible
query II rowsort label-2607
SELECT - COUNT ( - 34 ) + 19 - + 55 col0, - 22 * + COUNT ( * ) * + COUNT ( * ) * + 2 * + - 37 * - 97 - - 6 AS col0
----
-37
-157910

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2609
SELECT + CASE + + 77 WHEN COUNT( * ) THEN + 33 ELSE - - COALESCE ( + - 20, CAST( NULL AS SIGNED ) * 48 ) * - + 59 * CASE + 54 WHEN CASE 42 WHEN 59 THEN NULL ELSE + 99 * + COUNT( * ) END * + COUNT( * ) THEN 91 END + ( - 42 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2609
SELECT + CASE + + 77 WHEN COUNT ( * ) THEN + 33 ELSE - - COALESCE ( + - 20, CAST ( NULL AS INTEGER ) * 48 ) * - + 59 * CASE + 54 WHEN CASE 42 WHEN 59 THEN NULL ELSE + 99 * + COUNT ( * ) END * + COUNT ( * ) THEN 91 END + ( - 42 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 9 * 5 + - 99 AS col1
----
-54

query I rowsort
SELECT DISTINCT + 42 * + 88 + 72
----
3768

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2612
SELECT - 53 + - COUNT( ALL - 49 ) DIV 78 AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-2612
SELECT - 53 + - COUNT ( ALL - 49 ) / 78 AS col0
----
-53

query I rowsort
SELECT + + 14 * + 64 * - 35 - + + 96
----
-31456

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

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

query I rowsort
SELECT ALL + 98 * - 48
----
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT ALL - 80 * - - COUNT( * ) - 98 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL - 80 * - - COUNT ( * ) - 98 AS col2
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT DISTINCT + - SUM( ALL ( + ( + 74 ) ) ) - - CASE + 13 WHEN - + 43 THEN NULL ELSE NULLIF ( - - COUNT( * ), 87 * + COUNT( * ) ) END AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + - SUM ( ALL ( + ( + 74 ) ) ) - - CASE + 13 WHEN - + 43 THEN NULL ELSE NULLIF ( - - COUNT ( * ), 87 * + COUNT ( * ) ) END AS col0
----
-73

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

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

query I rowsort
SELECT 73 + 20
----
93

query I rowsort
SELECT 76 * - 54
----
-4104

query I rowsort
SELECT 82 + + 51 * - 6 + - - ( - 3 ) * 77 * - + 57
----
12943

query I rowsort
SELECT 92 + 28 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT COUNT( * ) + - + 45 AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-2623
SELECT COUNT ( * ) + - + 45 AS col0
----
-44

query I rowsort
SELECT DISTINCT + 95 * - 95
----
-9025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2625
SELECT 68 * + + 97 + + 75 * + + CASE 21 WHEN - + 59 * 84 THEN NULL WHEN 39 - CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2625
SELECT 68 * + + 97 + + 75 * + + CASE 21 WHEN - + 59 * 84 THEN NULL WHEN 39 - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2626
SELECT DISTINCT - 88, - NULLIF ( + COALESCE ( + 60, + 68 * + 24 + - COUNT( * ) + + 94 * + 24 ), + + CAST( 11 AS SIGNED ) ) * - ( MAX( - NULLIF ( + 79, 61 ) ) * 11 ) + - 56 * 86 AS col1
----
-88
-56956

skipif mysql # not compatible
query II rowsort label-2626
SELECT DISTINCT - 88, - NULLIF ( + COALESCE ( + 60, + 68 * + 24 + - COUNT ( * ) + + 94 * + 24 ), + + CAST ( 11 AS INTEGER ) ) * - ( MAX ( - NULLIF ( + 79, 61 ) ) * 11 ) + - 56 * 86 AS col1
----
-88
-56956

query I rowsort
SELECT 91 * - + 74
----
-6734

query II rowsort
SELECT 45 col0, + 72 AS col0
----
45
72

query I rowsort
SELECT ALL 66 + + - 67
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT ( + 81 ) DIV + 79 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2630
SELECT ( + 81 ) / + 79 AS col1
----
1

query I rowsort
SELECT NULLIF ( + 38, - 45 * - 0 ) * + - 10 + - 13 + + + 13 AS col1
----
-380

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2632
SELECT CAST( - + 56 AS SIGNED ) + + 18 DIV + 9 + - + ( - 46 )
----
-8

skipif mysql # not compatible
query I rowsort label-2632
SELECT CAST ( - + 56 AS INTEGER ) + + 18 / + 9 + - + ( - 46 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL COUNT( * ) + + 8
----
9

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL COUNT ( * ) + + 8
----
9

query I rowsort
SELECT ALL 30 + + 76 + + + 89 AS col2
----
195

onlyif mysql # DIV for integer division: 
query II rowsort label-2635
SELECT - 39 DIV + 53 * + 55 AS col1, 39
----
0
39

skipif mysql # not compatible
query II rowsort label-2635
SELECT - 39 / + 53 * + 55 AS col1, 39
----
0
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT + ( - 83 ) * - - 31 + - 28 * + COUNT( * )
----
-2601

skipif mysql # not compatible
query I rowsort label-2636
SELECT + ( - 83 ) * - - 31 + - 28 * + COUNT ( * )
----
-2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2637
SELECT DISTINCT NULLIF ( + 0, 35 ) * NULLIF ( + - 97, + ( + + 68 ) * - - 45 + - - COUNT( * ) * 79 ) DIV 31 - 95 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT NULLIF ( + 0, 35 ) * NULLIF ( + - 97, + ( + + 68 ) * - - 45 + - - COUNT ( * ) * 79 ) / 31 - 95 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT CASE ( + 88 ) WHEN + + 49 THEN - - 34 WHEN 24 THEN 12 WHEN + 82 THEN + 1 * 27 + CASE COALESCE ( 33, ( 15 ) + 81 ) - 1 * - 29 WHEN 58 THEN COUNT( * ) ELSE NULL END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT CASE ( + 88 ) WHEN + + 49 THEN - - 34 WHEN 24 THEN 12 WHEN + 82 THEN + 1 * 27 + CASE COALESCE ( 33, ( 15 ) + 81 ) - 1 * - 29 WHEN 58 THEN COUNT ( * ) ELSE NULL END ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2639
SELECT ( 73 ) / MAX( - CAST( NULL AS SIGNED ) ) + + 36 + + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT ( 73 ) / MAX ( - CAST ( NULL AS INTEGER ) ) + + 36 + + 89 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT ALL - 4 + CASE 63 WHEN 2 THEN + MIN( 68 ) ELSE NULL END * - + 26 / 47 AS col0, - 70 * 6 * COUNT( * ) AS col0
----
NULL
-420

skipif mysql # not compatible
query II rowsort label-2640
SELECT ALL - 4 + CASE 63 WHEN 2 THEN + MIN ( 68 ) ELSE NULL END * - + 26 / 47 AS col0, - 70 * 6 * COUNT ( * ) AS col0
----
NULL
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ( - MIN( - 29 ) ) col2
----
29

skipif mysql # not compatible
query I rowsort label-2641
SELECT ( - MIN ( - 29 ) ) col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL + COUNT( * ) - MIN( DISTINCT + + 71 ) * + COUNT( * )
----
-70

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL + COUNT ( * ) - MIN ( DISTINCT + + 71 ) * + COUNT ( * )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2643
SELECT ALL CAST( CASE CASE - - 75 WHEN - ( - + 83 ) / 58 / COUNT( * ) THEN 16 END WHEN + 34 * 84 THEN 16 ELSE - 1 - + 76 END AS SIGNED ) * 14 AS col2
----
-1078

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL CAST ( CASE CASE - - 75 WHEN - ( - + 83 ) / 58 / COUNT ( * ) THEN 16 END WHEN + 34 * 84 THEN 16 ELSE - 1 - + 76 END AS INTEGER ) * 14 AS col2
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT - 37 + - 85 + CASE - - 40 WHEN - - COUNT( * ) - 62 THEN + COUNT( * ) ELSE NULL END + + 87 * + - 88 + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT - 37 + - 85 + CASE - - 40 WHEN - - COUNT ( * ) - 62 THEN + COUNT ( * ) ELSE NULL END + + 87 * + - 88 + 88 AS col0
----
NULL

query I rowsort
SELECT 49 * + + 8 - + 1 col1
----
391

query I rowsort
SELECT DISTINCT - COALESCE ( - 80, - 28 )
----
80

query I rowsort
SELECT ALL 25 - + 76
----
-51

query I rowsort
SELECT DISTINCT - + NULLIF ( + 51, - 0 ) AS col0
----
-51

query I rowsort
SELECT ALL CASE 54 WHEN 27 * - 55 / 92 * + 43 + 97 + 8 THEN - - 7 ELSE + + 41 * + 43 END
----
1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT + CAST( + - ( 2 ) AS SIGNED ) + - - ( - 55 ) + - + 82 * + 31 + - 57
----
-2656

skipif mysql # not compatible
query I rowsort label-2650
SELECT + CAST ( + - ( 2 ) AS INTEGER ) + - - ( - 55 ) + - + 82 * + 31 + - 57
----
-2656

query I rowsort
SELECT 13 - 11 - + - ( + 92 ) AS col1
----
94

query I rowsort
SELECT + 31 * + + 54 + + 52
----
1726

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT COUNT( * ) + - - 57 + + - 90
----
-32

skipif mysql # not compatible
query I rowsort label-2653
SELECT COUNT ( * ) + - - 57 + + - 90
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2654
SELECT ALL - COALESCE ( + - 39, - 42 + + 89 + + 32, + + 85 * 42 * 53 + 81 DIV - COUNT( * ) + 38 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-2654
SELECT ALL - COALESCE ( + - 39, - 42 + + 89 + + 32, + + 85 * 42 * 53 + 81 / - COUNT ( * ) + 38 ) AS col1
----
39

query I rowsort
SELECT ALL + 72 * - 54 * 7 AS col1
----
-27216

query I rowsort
SELECT ALL - 9 * 39 AS col0
----
-351

onlyif mysql # aggregate syntax: 
query II rowsort label-2657
SELECT ALL + 81 * + 42 * ( MAX( DISTINCT + 72 ) ) * 28 + - - COUNT( * ), + 40 AS col2
----
6858433
40

skipif mysql # not compatible
query II rowsort label-2657
SELECT ALL + 81 * + 42 * ( MAX ( DISTINCT + 72 ) ) * 28 + - - COUNT ( * ), + 40 AS col2
----
6858433
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2658
SELECT 2 DIV + 46
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT 2 / + 46
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2659
SELECT ALL - 36 + + SUM( - - 2 ) * + + ( - 32 ) DIV - 93 * + 92 * - COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - 36 + + SUM ( - - 2 ) * + + ( - 32 ) / - 93 * + 92 * - COUNT ( * )
----
-36

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

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

query I rowsort
SELECT ALL + COALESCE ( + 35, - - 78, + + 37, - 96 ) + + 71
----
106

query I rowsort
SELECT 27 * + 16
----
432

query II rowsort
SELECT 17 AS col1, + 17
----
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT COUNT( * ) * - - 5 * - COUNT( * ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2664
SELECT COUNT ( * ) * - - 5 * - COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2665
SELECT 7 - + 92 + - + 14 + - 10 DIV - - 43 + + ( ( + 90 ) ) * + COUNT( * ) + - 75 + + 40 + + 40 col1
----
-4

skipif mysql # not compatible
query I rowsort label-2665
SELECT 7 - + 92 + - + 14 + - 10 / - - 43 + + ( ( + 90 ) ) * + COUNT ( * ) + - 75 + + 40 + + 40 col1
----
-4

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL ( - 85 ) * + MIN( 67 ) AS col0
----
-5695

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL ( - 85 ) * + MIN ( 67 ) AS col0
----
-5695

onlyif mysql # aggregate syntax: 
query II rowsort label-2668
SELECT COUNT( * ) * ( + 36 ) * 20 AS col0, + 85 + - 34 - - 87 * + COUNT( * )
----
720
138

skipif mysql # not compatible
query II rowsort label-2668
SELECT COUNT ( * ) * ( + 36 ) * 20 AS col0, + 85 + - 34 - - 87 * + COUNT ( * )
----
720
138

query I rowsort
SELECT ALL 70 * 87 + 81 AS col2
----
6171

query I rowsort
SELECT DISTINCT 71 * 10
----
710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2671
SELECT ALL + - 52 * + - COUNT( * ) AS col2, - SUM( + - 91 ) * + 96 - - - ( - CAST( + + 70 AS SIGNED ) ) AS col1
----
52
8806

skipif mysql # not compatible
query II rowsort label-2671
SELECT ALL + - 52 * + - COUNT ( * ) AS col2, - SUM ( + - 91 ) * + 96 - - - ( - CAST ( + + 70 AS INTEGER ) ) AS col1
----
52
8806

query II rowsort
SELECT 14, COALESCE ( 79, 85 ) AS col2
----
14
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT CAST( NULL AS SIGNED ) * - 41 + CASE + 66 WHEN 30 THEN NULL WHEN - 20 THEN - 78 + 96 END + + - 88 + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT CAST ( NULL AS INTEGER ) * - 41 + CASE + 66 WHEN 30 THEN NULL WHEN - 20 THEN - 78 + 96 END + + - 88 + - 22 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2674
SELECT COALESCE ( + NULLIF ( - COUNT( CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) ), 30 * - + 35 * - 23 * SUM( - 25 ) + + ( CASE - 46 WHEN 39 * - 92 + - 62 * - MIN( 42 ) THEN NULL WHEN 14 * - 69 THEN - 55 DIV 28 + + 40 END ) ), + 45 DIV - 64 + + 8 * + CAST( - 42 + 83 AS SIGNED ) ) - + COUNT( * ) DIV 12 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2674
SELECT COALESCE ( + NULLIF ( - COUNT ( CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) ), 30 * - + 35 * - 23 * SUM ( - 25 ) + + ( CASE - 46 WHEN 39 * - 92 + - 62 * - MIN ( 42 ) THEN NULL WHEN 14 * - 69 THEN - 55 / 28 + + 40 END ) ), + 45 / - 64 + + 8 * + CAST ( - 42 + 83 AS INTEGER ) ) - + COUNT ( * ) / 12 AS col0
----
0

query I rowsort
SELECT ALL + 8 * - - 91 - - 84
----
812

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2676
SELECT 53 DIV MAX( DISTINCT - 22 ) + + + 66 * + - COALESCE ( + 14, 3 )
----
-926

skipif mysql # not compatible
query I rowsort label-2676
SELECT 53 / MAX ( DISTINCT - 22 ) + + + 66 * + - COALESCE ( + 14, 3 )
----
-926

query I rowsort
SELECT 10 * - - 91 AS col2
----
910

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2679
SELECT DISTINCT 70 DIV 66 - - - 72
----
-71

skipif mysql # not compatible
query I rowsort label-2679
SELECT DISTINCT 70 / 66 - - - 72
----
-71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2680
SELECT 3 * - + COUNT( * ) + - 58 - - - 7 * COUNT( * ) * AVG ( - CAST( NULL AS DECIMAL ) ) * - ( + 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT 3 * - + COUNT ( * ) + - 58 - - - 7 * COUNT ( * ) * AVG ( - CAST ( NULL AS REAL ) ) * - ( + 21 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT CASE + CAST( NULL AS SIGNED ) WHEN - - 67 THEN 61 * - + 57 WHEN + + 10 THEN - + ( - 18 ) * - + 48 + - 89 + + + 9 * COUNT( * ) ELSE + COUNT( * ) + + 19 END * - ( 24 + - COUNT( * ) )
----
-460

skipif mysql # not compatible
query I rowsort label-2681
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN - - 67 THEN 61 * - + 57 WHEN + + 10 THEN - + ( - 18 ) * - + 48 + - 89 + + + 9 * COUNT ( * ) ELSE + COUNT ( * ) + + 19 END * - ( 24 + - COUNT ( * ) )
----
-460

query I rowsort
SELECT + 62 * + 75 AS col2
----
4650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT DISTINCT - COUNT( * ) DIV + 85 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2683
SELECT DISTINCT - COUNT ( * ) / + 85 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2684
SELECT CASE COALESCE ( - - CAST( NULL AS SIGNED ), + 87 ) WHEN - 54 THEN - MAX( DISTINCT - 79 ) END + - - 78 + - + 53 - + + 71 + 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT CASE COALESCE ( - - CAST ( NULL AS INTEGER ), + 87 ) WHEN - 54 THEN - MAX ( DISTINCT - 79 ) END + - - 78 + - + 53 - + + 71 + 25 AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2685
SELECT 13 * - 30 * 47 / - + 21 * + 59 * + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT 13 * - 30 * 47 / - + 21 * + 59 * + + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 54 * - COALESCE ( - 29, + ( + NULLIF ( + 32, + + ( + 38 ) ) ) )
----
1566

query I rowsort
SELECT DISTINCT + 24 * - 27
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT ALL 27 * + CASE - - 90 WHEN + - 35 + - 21 THEN + 85 * + + 41 * 66 - + COUNT( * ) ELSE + - 20 + 80 END col0
----
1620

skipif mysql # not compatible
query I rowsort label-2688
SELECT ALL 27 * + CASE - - 90 WHEN + - 35 + - 21 THEN + 85 * + + 41 * 66 - + COUNT ( * ) ELSE + - 20 + 80 END col0
----
1620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT + CAST( NULL AS SIGNED ) + + + CASE ( - COUNT( * ) ) WHEN + 46 / COUNT( * ) + MIN( ALL + 26 ) THEN + - 82 WHEN 35 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT + CAST ( NULL AS INTEGER ) + + + CASE ( - COUNT ( * ) ) WHEN + 46 / COUNT ( * ) + MIN ( ALL + 26 ) THEN + - 82 WHEN 35 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT DISTINCT SUM( DISTINCT + 88 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT SUM ( DISTINCT + 88 ) col1
----
88

query I rowsort
SELECT ALL 20 + + CASE 32 WHEN + 0 THEN ( - 74 ) END * 94 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT + ( - + CAST( NULL AS SIGNED ) ) + 37 + + 55 * 28 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2693
SELECT + ( - + CAST ( NULL AS INTEGER ) ) + 37 + + 55 * 28 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT - NULLIF ( + - CASE + 23 WHEN - 11 + CAST( + + 2 AS SIGNED ) - + + CAST( NULL AS SIGNED ) THEN 31 END, - - 48 * - 31 * 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT - NULLIF ( + - CASE + 23 WHEN - 11 + CAST ( + + 2 AS INTEGER ) - + + CAST ( NULL AS INTEGER ) THEN 31 END, - - 48 * - 31 * 92 )
----
NULL

query I rowsort
SELECT - 78 * + + 91
----
-7098

query I rowsort
SELECT DISTINCT - ( 97 ) * + 52 * 53
----
-267332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2697
SELECT ALL + MIN( ALL - 29 ) + + + NULLIF ( - + 4, - COUNT( - - 66 ) * - - 42 * + - ( - + 2 ) * + 59 * + + 4 + - + 65 + NULLIF ( + 8, 37 - - CAST( COUNT( * ) + - CASE - SUM( - 74 ) WHEN NULLIF ( CAST( NULL AS SIGNED ), COUNT( * ) ) THEN 84 * - 65 + 85 ELSE 38 END * 38 AS SIGNED ) ) ) + 49 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL + MIN ( ALL - 29 ) + + + NULLIF ( - + 4, - COUNT ( - - 66 ) * - - 42 * + - ( - + 2 ) * + 59 * + + 4 + - + 65 + NULLIF ( + 8, 37 - - CAST ( COUNT ( * ) + - CASE - SUM ( - 74 ) WHEN NULLIF ( CAST ( NULL AS INTEGER ), COUNT ( * ) ) THEN 84 * - 65 + 85 ELSE 38 END * 38 AS INTEGER ) ) ) + 49 AS col0
----
16

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

skipif mysql # not compatible
query I rowsort label-2698
SELECT + 48 + + 8 - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2699
SELECT ALL 13 DIV - 10 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL 13 / - 10 AS col0
----
-1

query I rowsort
SELECT - 25 + - 67 * + - 64 AS col2
----
4263

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT 48 * + ( + MIN( ALL + 93 ) )
----
4464

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT 48 * + ( + MIN ( ALL + 93 ) )
----
4464

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

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

query I rowsort
SELECT - 77 * + 52
----
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL - ( - 65 ) * 9 + 18 + + MAX( DISTINCT + + 6 ) AS col2
----
609

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - ( - 65 ) * 9 + 18 + + MAX ( DISTINCT + + 6 ) AS col2
----
609

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT DISTINCT + SUM( DISTINCT - 68 ) - + SUM( DISTINCT - - 54 )
----
-122

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + SUM ( DISTINCT - 68 ) - + SUM ( DISTINCT - - 54 )
----
-122

query I rowsort
SELECT + 6 * - - ( - - 22 )
----
132

query I rowsort
SELECT ALL + 54 * - 49 - + 57 AS col2
----
-2703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2708
SELECT - 83 * + - 6 - - CASE CAST( 90 AS SIGNED ) WHEN - 27 THEN 41 * - 49 * + NULLIF ( - 88, COUNT( * ) ) + + 81 + - 80 / - ( + 3 ) WHEN - 20 + 34 THEN - ( - 99 ) + - 61 END + 49 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT - 83 * + - 6 - - CASE CAST ( 90 AS INTEGER ) WHEN - 27 THEN 41 * - 49 * + NULLIF ( - 88, COUNT ( * ) ) + + 81 + - 80 / - ( + 3 ) WHEN - 20 + 34 THEN - ( - 99 ) + - 61 END + 49 AS col0
----
NULL

query I rowsort
SELECT - 88 * - 48
----
4224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2710
SELECT - 57 + + 96 + - 94 + COUNT( * ) + 80 AS col0, 88 * + - CAST( COUNT( * ) AS SIGNED )
----
26
-88

skipif mysql # not compatible
query II rowsort label-2710
SELECT - 57 + + 96 + - 94 + COUNT ( * ) + 80 AS col0, 88 * + - CAST ( COUNT ( * ) AS INTEGER )
----
26
-88

query I rowsort
SELECT ALL + + 36 col1
----
36

query I rowsort
SELECT + COALESCE ( - 0, + 45 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL - - 60 * - - COUNT( * ) + + 9 - + 99
----
-30

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL - - 60 * - - COUNT ( * ) + + 9 - + 99
----
-30

query I rowsort
SELECT DISTINCT - 63 * - + 35 * - + 39 + ( 46 ) col2
----
-85949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT ALL CAST( 15 AS SIGNED ) * - 2 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL CAST ( 15 AS INTEGER ) * - 2 AS col1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2716
SELECT DISTINCT - 19 * + 51 * + ( + 24 ) - + 90 - + + ( + CAST( NULL AS DECIMAL ) ) AS col0, + 84
----
NULL
84

skipif mysql # not compatible
query II rowsort label-2716
SELECT DISTINCT - 19 * + 51 * + ( + 24 ) - + 90 - + + ( + CAST ( NULL AS REAL ) ) AS col0, + 84
----
NULL
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2717
SELECT - CAST( NULL AS SIGNED ) / - - 94 / - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2717
SELECT - CAST ( NULL AS INTEGER ) / - - 94 / - 50 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2718
SELECT - - 6 - - 58 + + CASE + 55 WHEN - COUNT( * ) THEN + + CAST( NULL AS SIGNED ) + - - 68 ELSE + COALESCE ( - 26, + COUNT( * ), + 80 * + 90 * - 26 + + COUNT( * ) ) + 13 * + 6 END + - 2 AS col1
----
114

skipif mysql # not compatible
query I rowsort label-2718
SELECT - - 6 - - 58 + + CASE + 55 WHEN - COUNT ( * ) THEN + + CAST ( NULL AS INTEGER ) + - - 68 ELSE + COALESCE ( - 26, + COUNT ( * ), + 80 * + 90 * - 26 + + COUNT ( * ) ) + 13 * + 6 END + - 2 AS col1
----
114

query I rowsort
SELECT DISTINCT - - 34 * - + 15 - - 12 * + 53 * 45 + - + 3 * + 35 * - - ( + 98 ) * 46 AS col0
----
-445230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2720
SELECT + 49 * - 36 * - - 11 + + - COALESCE ( CAST( NULL AS SIGNED ), - - 19 ) * - 87 + 10 - + 19 * 0 AS col2
----
-17741

skipif mysql # not compatible
query I rowsort label-2720
SELECT + 49 * - 36 * - - 11 + + - COALESCE ( CAST ( NULL AS INTEGER ), - - 19 ) * - 87 + 10 - + 19 * 0 AS col2
----
-17741

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT + - 14 / 55 - + CASE + 71 WHEN ( + + 88 ) + 10 + + - 2 THEN + 64 WHEN - 4 + - 80 * - COUNT( * ) * COUNT( * ) THEN NULL ELSE NULL END + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT + - 14 / 55 - + CASE + 71 WHEN ( + + 88 ) + 10 + + - 2 THEN + 64 WHEN - 4 + - 80 * - COUNT ( * ) * COUNT ( * ) THEN NULL ELSE NULL END + - 8
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2722
SELECT + CASE NULLIF ( 82, + 72 ) WHEN 56 THEN + + 68 * - + 49 WHEN + 43 - 41 + MIN( 92 ) - 48 + 56 + 28 * 96 THEN NULL ELSE + CAST( + 76 AS SIGNED ) END AS col2
----
76

skipif mysql # not compatible
query I rowsort label-2722
SELECT + CASE NULLIF ( 82, + 72 ) WHEN 56 THEN + + 68 * - + 49 WHEN + 43 - 41 + MIN ( 92 ) - 48 + 56 + 28 * 96 THEN NULL ELSE + CAST ( + 76 AS INTEGER ) END AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL 14 * + - MAX( 97 ) + + + ( - CASE + 58 WHEN + + 70 THEN - 91 WHEN 69 + 67 THEN 86 WHEN - - 43 THEN NULL ELSE NULL END ) * 46 + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL 14 * + - MAX ( 97 ) + + + ( - CASE + 58 WHEN + + 70 THEN - 91 WHEN 69 + 67 THEN 86 WHEN - - 43 THEN NULL ELSE NULL END ) * 46 + 71
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT MIN( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2724
SELECT MIN ( + 64 ) AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL - 44 * - 28 * ( COUNT( * ) ) + 66 + - - 38
----
1336

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - 44 * - 28 * ( COUNT ( * ) ) + 66 + - - 38
----
1336

onlyif mysql # aggregate syntax: 
query I rowsort label-2726
SELECT + 8 + - 37 + + MIN( 97 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-2726
SELECT + 8 + - 37 + + MIN ( 97 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 66 * + 10 + + + 21 + + - 26 * 60 AS col0
----
-2199

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

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

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

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

query I rowsort
SELECT DISTINCT 8 * - 60 * + 60 AS col1
----
-28800

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

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

query I rowsort
SELECT ALL 43 * 53 AS col1
----
2279

query I rowsort
SELECT + 49 * - 64 * + + 58
----
-181888

onlyif mysql # aggregate syntax: 
query II rowsort label-2734
SELECT ALL 54 + + MIN( DISTINCT + 12 ) + + + 66 AS col0, + COUNT( * ) col1
----
132
1

skipif mysql # not compatible
query II rowsort label-2734
SELECT ALL 54 + + MIN ( DISTINCT + 12 ) + + + 66 AS col0, + COUNT ( * ) col1
----
132
1

query I rowsort
SELECT DISTINCT 60 * 20 col0
----
1200

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2737
SELECT ALL NULLIF ( + ( 0 ), CAST( NULL AS DECIMAL ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL NULLIF ( + ( 0 ), CAST ( NULL AS REAL ) ) AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2739
SELECT ALL COUNT( * ) AS col0, - 8 + 54
----
1
46

skipif mysql # not compatible
query II rowsort label-2739
SELECT ALL COUNT ( * ) AS col0, - 8 + 54
----
1
46

onlyif mysql # DIV for integer division: 
query II rowsort label-2740
SELECT + 83 * + + 97 * + 1 col2, + 0 * + 15 * + - 81 DIV + ( - 42 ) col2
----
8051
0

skipif mysql # not compatible
query II rowsort label-2740
SELECT + 83 * + + 97 * + 1 col2, + 0 * + 15 * + - 81 / + ( - 42 ) col2
----
8051
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT DISTINCT 94 DIV - 7 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT 94 / - 7 AS col2
----
-13

query I rowsort
SELECT + - 11 - + 46
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT - + COALESCE ( 47, + 47 DIV + 27 + ( 44 ), 84 )
----
-47

skipif mysql # not compatible
query I rowsort label-2743
SELECT - + COALESCE ( 47, + 47 / + 27 + ( 44 ), 84 )
----
-47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT DISTINCT + + CAST( 92 AS SIGNED ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + + CAST ( 92 AS INTEGER ) AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT ALL CAST( + - 46 AS SIGNED ) * - 1 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL CAST ( + - 46 AS INTEGER ) * - 1 AS col0
----
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2747
SELECT + 10 DIV + - CAST( - 49 AS SIGNED ) * - 27 + 94 col2
----
94

skipif mysql # not compatible
query I rowsort label-2747
SELECT + 10 / + - CAST ( - 49 AS INTEGER ) * - 27 + 94 col2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT + - COUNT( - - 38 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2748
SELECT + - COUNT ( - - 38 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2749
SELECT ALL + - COUNT( - 41 ) + ( + 66 ) + + 97 + + 7, + COUNT( * ) AS col0
----
169
1

skipif mysql # not compatible
query II rowsort label-2749
SELECT ALL + - COUNT ( - 41 ) + ( + 66 ) + + 97 + + 7, + COUNT ( * ) AS col0
----
169
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2750
SELECT ALL - + 5 + - 53 * + 16, + COUNT( * ) AS col0
----
-853
1

skipif mysql # not compatible
query II rowsort label-2750
SELECT ALL - + 5 + - 53 * + 16, + COUNT ( * ) AS col0
----
-853
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2751
SELECT CAST( 70 AS SIGNED ) + 34 AS col2, + 17 * 29 + 66 * - + 66 * + MIN( ALL + 0 ) AS col2
----
104
493

skipif mysql # not compatible
query II rowsort label-2751
SELECT CAST ( 70 AS INTEGER ) + 34 AS col2, + 17 * 29 + 66 * - + 66 * + MIN ( ALL + 0 ) AS col2
----
104
493

query I rowsort
SELECT ALL + 65 + + + 81 AS col0
----
146

query I rowsort
SELECT + 24 + - 35 col0
----
-11

query I rowsort
SELECT ALL + - 76 + - 22
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2755
SELECT ALL CAST( NULL AS SIGNED ) + + + 25 - COUNT( * ) + 61 AS col1, 36 * - + ( 48 ) * + CASE + 38 WHEN 79 THEN NULL WHEN + 10 / + 40 THEN - 37 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2755
SELECT ALL CAST ( NULL AS INTEGER ) + + + 25 - COUNT ( * ) + 61 AS col1, 36 * - + ( 48 ) * + CASE + 38 WHEN 79 THEN NULL WHEN + 10 / + 40 THEN - 37 END AS col2
----
NULL
NULL

query II rowsort
SELECT 85 * - 27 AS col1, + 93 AS col2
----
-2295
93

query I rowsort
SELECT 21 + 59 * + 67
----
3974

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT DISTINCT - CAST( 56 AS SIGNED ) AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT - CAST ( 56 AS INTEGER ) AS col1
----
-56

query I rowsort
SELECT DISTINCT - 32 * 63 * - 52
----
104832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2760
SELECT 11 * CAST( + - 33 AS SIGNED ) * - - 64 * - 45
----
1045440

skipif mysql # not compatible
query I rowsort label-2760
SELECT 11 * CAST ( + - 33 AS INTEGER ) * - - 64 * - 45
----
1045440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2761
SELECT - COUNT( * ) * - + 58 + - 36 + - 90 - + COUNT( * ) DIV + - 62
----
-68

skipif mysql # not compatible
query I rowsort label-2761
SELECT - COUNT ( * ) * - + 58 + - 36 + - 90 - + COUNT ( * ) / + - 62
----
-68

query I rowsort
SELECT DISTINCT CASE - + 78 WHEN + + 37 THEN + 46 ELSE NULL END - - ( + + 28 )
----
NULL

query I rowsort
SELECT 27 + ( + 56 )
----
83

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

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL 96 / - COUNT ( * ) AS col0
----
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2766
SELECT 52 + + 64 DIV + 47 * - 1 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-2766
SELECT 52 + + 64 / + 47 * - 1 AS col1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2767
SELECT ALL 1 - + 0 * - + 68 * 29 * 28 DIV - 26 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2767
SELECT ALL 1 - + 0 * - + 68 * 29 * 28 / - 26 AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2768
SELECT ALL ( - + 9 ) DIV 54
----
0

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL ( - + 9 ) / 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT COUNT( * ) * + - 78 * - - 58
----
-4524

skipif mysql # not compatible
query I rowsort label-2769
SELECT COUNT ( * ) * + - 78 * - - 58
----
-4524

onlyif mysql # aggregate syntax: 
query II rowsort label-2770
SELECT ( 79 ) + ( - + 41 ), COUNT( * ) AS col0
----
38
1

skipif mysql # not compatible
query II rowsort label-2770
SELECT ( 79 ) + ( - + 41 ), COUNT ( * ) AS col0
----
38
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT COUNT( * ) + 80 * + + COUNT( * ) * 11 * - 71
----
-62479

skipif mysql # not compatible
query I rowsort label-2771
SELECT COUNT ( * ) + 80 * + + COUNT ( * ) * 11 * - 71
----
-62479

query I rowsort
SELECT ALL 53 * 26 AS col2
----
1378

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2773
SELECT 42 + + - 45 * - - CAST( + - NULLIF ( 32, + COALESCE ( - + 56, - - 17 ) * + CAST( 81 AS DECIMAL ) + + - 72 ) AS SIGNED ) + - 28 / COUNT( * ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2773
SELECT 42 + + - 45 * - - CAST ( + - NULLIF ( 32, + COALESCE ( - + 56, - - 17 ) * + CAST ( 81 AS REAL ) + + - 72 ) AS INTEGER ) + - 28 / COUNT ( * ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT 95 * 85 DIV + 30
----
269

skipif mysql # not compatible
query I rowsort label-2776
SELECT 95 * 85 / + 30
----
269

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT + COUNT( * ) + + + COUNT( * ) + + 86 + - 20 * + - 40 + 33 AS col1
----
921

skipif mysql # not compatible
query I rowsort label-2778
SELECT + COUNT ( * ) + + + COUNT ( * ) + + 86 + - 20 * + - 40 + 33 AS col1
----
921

query II rowsort
SELECT + ( 69 ) AS col2, + 87 AS col0
----
69
87

onlyif mysql # aggregate syntax: 
query II rowsort label-2780
SELECT + 42 + + COUNT( * ) AS col2, - 0 AS col0
----
43
0

skipif mysql # not compatible
query II rowsort label-2780
SELECT + 42 + + COUNT ( * ) AS col2, - 0 AS col0
----
43
0

query I rowsort
SELECT DISTINCT 21 + 14 AS col1
----
35

query I rowsort
SELECT ALL - 69 + - 47
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT DISTINCT + COUNT( * ) + COUNT( * ) col0
----
2

skipif mysql # not compatible
query I rowsort label-2783
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2784
SELECT DISTINCT - ( + - ( 60 ) ) DIV - 11 AS col0, MAX( DISTINCT - ( + 15 ) ) AS col2
----
-5
-15

skipif mysql # not compatible
query II rowsort label-2784
SELECT DISTINCT - ( + - ( 60 ) ) / - 11 AS col0, MAX ( DISTINCT - ( + 15 ) ) AS col2
----
-5
-15

query I rowsort
SELECT ALL 91 + + 11 + + 96 * + 78 AS col2
----
7590

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT - COUNT( * ) * - MIN( 33 ) + - CASE - 75 WHEN + - MIN( 81 ) / - 87 + 95 THEN COUNT( DISTINCT + - 58 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2788
SELECT - COUNT ( * ) * - MIN ( 33 ) + - CASE - 75 WHEN + - MIN ( 81 ) / - 87 + 95 THEN COUNT ( DISTINCT + - 58 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( 37 ) + + 76
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT COUNT( * ) * + NULLIF ( + + 3, 18 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2790
SELECT COUNT ( * ) * + NULLIF ( + + 3, 18 ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2791
SELECT - 11 * - 21 - + CASE COUNT( * ) WHEN + + 48 * - - NULLIF ( + ( - - COALESCE ( - NULLIF ( - 82, + - 68 ), + 18 ) ), - 74 - - COUNT( * ) ) THEN NULL WHEN + - 17 + - AVG ( 55 ) THEN NULL ELSE 6 - - 97 DIV + CASE + 70 WHEN + 59 THEN NULL ELSE - 96 * + COALESCE ( CAST( NULL AS SIGNED ) * 18, 36 ) END END + 89
----
314

skipif mysql # not compatible
query I rowsort label-2791
SELECT - 11 * - 21 - + CASE COUNT ( * ) WHEN + + 48 * - - NULLIF ( + ( - - COALESCE ( - NULLIF ( - 82, + - 68 ), + 18 ) ), - 74 - - COUNT ( * ) ) THEN NULL WHEN + - 17 + - AVG ( 55 ) THEN NULL ELSE 6 - - 97 / + CASE + 70 WHEN + 59 THEN NULL ELSE - 96 * + COALESCE ( CAST ( NULL AS INTEGER ) * 18, 36 ) END END + 89
----
314

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT DISTINCT + 1 * 25 * - 38 * 70 * MIN( DISTINCT - 30 ) AS col2
----
1995000

skipif mysql # not compatible
query I rowsort label-2792
SELECT DISTINCT + 1 * 25 * - 38 * 70 * MIN ( DISTINCT - 30 ) AS col2
----
1995000

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL + 92 - - COUNT( * ) * - 3 * - 42 + - 75
----
143

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + 92 - - COUNT ( * ) * - 3 * - 42 + - 75
----
143

query I rowsort
SELECT 46 * + 90 AS col1
----
4140

query I rowsort
SELECT DISTINCT + 2 * 60 AS col0
----
120

query I rowsort
SELECT 36 * 99 AS col1
----
3564

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

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + 84 * COUNT ( * ) * + 40 AS col1
----
3360

query I rowsort
SELECT DISTINCT + ( 0 ) * - + 93 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT + SUM( ALL - 5 ) col1
----
-5

skipif mysql # not compatible
query I rowsort label-2800
SELECT + SUM ( ALL - 5 ) col1
----
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2802
SELECT ALL + + NULLIF ( - + 76, COUNT( * ) ) DIV - 46 - ( + 84 ) + + 1
----
-82

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL + + NULLIF ( - + 76, COUNT ( * ) ) / - 46 - ( + 84 ) + + 1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2803
SELECT - + 59 + - COUNT( DISTINCT - 58 ) - - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT - + 59 + - COUNT ( DISTINCT - 58 ) - - + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 54 * 81
----
4374

query I rowsort
SELECT ALL 96 + - 55 AS col2
----
41

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

skipif mysql # not compatible
query I rowsort label-2806
SELECT + COUNT ( * ) / + 45 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT + 49 * - 7 * + SUM( + 25 )
----
-8575

skipif mysql # not compatible
query I rowsort label-2807
SELECT + 49 * - 7 * + SUM ( + 25 )
----
-8575

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT DISTINCT - - SUM( - - 31 ) + + + COUNT( * ) + + 37
----
69

skipif mysql # not compatible
query I rowsort label-2808
SELECT DISTINCT - - SUM ( - - 31 ) + + + COUNT ( * ) + + 37
----
69

query I rowsort
SELECT ALL + 7 * - CASE 9 WHEN - 80 THEN NULL ELSE CASE 13 WHEN - 24 / + - 30 * + 70 * + + 39 THEN 87 + - 17 WHEN 32 THEN NULL ELSE NULL END END + 6
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2810
SELECT - 30 DIV - NULLIF ( 7, - + CAST( 70 AS SIGNED ) + - 75 * ( + - 43 ) * - - COUNT( 50 ) * - - 16 ) - - + 73 + - 90 * + COUNT( * ) * - 75
----
6827

skipif mysql # not compatible
query I rowsort label-2810
SELECT - 30 / - NULLIF ( 7, - + CAST ( 70 AS INTEGER ) + - 75 * ( + - 43 ) * - - COUNT ( 50 ) * - - 16 ) - - + 73 + - 90 * + COUNT ( * ) * - 75
----
6827

onlyif mysql # aggregate syntax: 
query II rowsort label-2811
SELECT 83 * + 78 * 10 * - 69 * - 19 + - COUNT( * ) * COUNT( * ) + - + 28, 72 AS col1
----
84874111
72

skipif mysql # not compatible
query II rowsort label-2811
SELECT 83 * + 78 * 10 * - 69 * - 19 + - COUNT ( * ) * COUNT ( * ) + - + 28, 72 AS col1
----
84874111
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT + - 77 - + 96 * - 64 + COUNT( * ) AS col1
----
6068

skipif mysql # not compatible
query I rowsort label-2812
SELECT + - 77 - + 96 * - 64 + COUNT ( * ) AS col1
----
6068

query I rowsort
SELECT - + 89 * - 41 + - 88 AS col0
----
3561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL + COALESCE ( - - 17, - 48 + + 18 DIV + 92 + + - NULLIF ( - + 12, 11 ) * - - 62 DIV - MAX( DISTINCT + + 88 ), - - NULLIF ( + 64, + - 53 ) ) * 18 * + COUNT( * ) + COUNT( * ) * + 16 - 75
----
247

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + COALESCE ( - - 17, - 48 + + 18 / + 92 + + - NULLIF ( - + 12, 11 ) * - - 62 / - MAX ( DISTINCT + + 88 ), - - NULLIF ( + 64, + - 53 ) ) * 18 * + COUNT ( * ) + COUNT ( * ) * + 16 - 75
----
247

query I rowsort
SELECT + 95 * - 86 AS col0
----
-8170

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL - 51 * - + COUNT( * ) - - - ( - 27 )
----
78

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - 51 * - + COUNT ( * ) - - - ( - 27 )
----
78

query I rowsort
SELECT + 32 + - 71
----
-39

query I rowsort
SELECT + 8 + - 24 AS col1
----
-16

query I rowsort
SELECT + 26 * + 59 AS col2
----
1534

query I rowsort
SELECT DISTINCT 49 * 67
----
3283

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT ALL + 10 AS col1, + COUNT( ALL + 94 ) * + 76 AS col1
----
10
76

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL + 10 AS col1, + COUNT ( ALL + 94 ) * + 76 AS col1
----
10
76

query I rowsort
SELECT ALL 84 * - - 94
----
7896

query I rowsort
SELECT + 90 + + 67 + 95 AS col0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL + SUM( - 81 ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + SUM ( - 81 ) AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT - 48 DIV - + ( - 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-2825
SELECT - 48 / - + ( - 45 )
----
-1

query I rowsort
SELECT + 60 + + 38 AS col2
----
98

query I rowsort
SELECT - ( - 71 ) * - 76 * - 6 * + + 53 AS col0
----
1715928

query I rowsort
SELECT + 69 * + + 9 * - + 83 + NULLIF ( + 77, + + 6 * 96 * 76 / + 74 ) AS col2
----
-51466

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

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL NULLIF ( + 55, - COUNT ( * ) )
----
55

query I rowsort
SELECT ALL + 53 + 97
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT - ( 39 ) + COUNT( - 42 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-2831
SELECT - ( 39 ) + COUNT ( - 42 ) AS col0
----
-38

query II rowsort
SELECT DISTINCT 99, 96 * 64 AS col1
----
99
6144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT + 47 * + 53 * COUNT( * ) * + - 0 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + 47 * + 53 * COUNT ( * ) * + - 0 / + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT 16 )
----
17

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT 16 )
----
17

query I rowsort
SELECT - 41 * - 76 AS col2
----
3116

query I rowsort
SELECT - ( + 78 ) + 15 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2837
SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST( NULL AS SIGNED ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-2837
SELECT ALL + - 74 + 9 AS col0, CASE - 77 WHEN + - 95 THEN NULL WHEN 82 + + + 62 THEN - 13 - - COALESCE ( - 6, + 64 / - CASE + - 66 WHEN 9 + - CAST ( NULL AS INTEGER ) + - 50 * 82 THEN NULL ELSE 62 END, 92 ) END AS col0
----
-65
NULL

query I rowsort
SELECT - 24 + - + CASE + 55 WHEN 4 * + ( + 26 ) THEN 37 + - 48 WHEN + - 20 * 31 + - + 53 + - 87 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2839
SELECT + + 17 + + + 72 + + CAST( - + COUNT( * ) AS SIGNED ) - + 30 * + 20 - 29 + 34 * 6
----
-337

skipif mysql # not compatible
query I rowsort label-2839
SELECT + + 17 + + + 72 + + CAST ( - + COUNT ( * ) AS INTEGER ) - + 30 * + 20 - 29 + 34 * 6
----
-337

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2840
SELECT DISTINCT + CAST( + 98 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + CAST ( + 98 AS INTEGER ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT + COUNT( * ) + - - 73 + ( - 21 ) col0
----
53

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + COUNT ( * ) + - - 73 + ( - 21 ) col0
----
53

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2843
SELECT DISTINCT NULLIF ( + 42, COUNT( * ) ) + - 37 AS col2, 53 AS col1
----
5
53

skipif mysql # not compatible
query II rowsort label-2843
SELECT DISTINCT NULLIF ( + 42, COUNT ( * ) ) + - 37 AS col2, 53 AS col1
----
5
53

query I rowsort
SELECT ALL + 62 + - + 61 + 96 AS col2
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2845
SELECT 11 AS col1, CASE + + CAST( + - COUNT( * ) AS SIGNED ) WHEN - 99 * + - COALESCE ( 40, 0 + 94 + - CAST( CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) * - 53 ) + - ( - - ( + - COUNT( * ) ) ) THEN 11 + 82 WHEN - 8 THEN 40 END AS col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-2845
SELECT 11 AS col1, CASE + + CAST ( + - COUNT ( * ) AS INTEGER ) WHEN - 99 * + - COALESCE ( 40, 0 + 94 + - CAST ( CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) * - 53 ) + - ( - - ( + - COUNT ( * ) ) ) THEN 11 + 82 WHEN - 8 THEN 40 END AS col2
----
11
NULL

query II rowsort
SELECT ALL - 17 col2, 61
----
-17
61

query II rowsort
SELECT + 84 AS col0, + 41 AS col0
----
84
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT + 26 + - MAX( ALL + CASE + 94 WHEN - + 58 THEN + + 58 WHEN + 11 THEN NULL WHEN 66 THEN - + 17 - - ( + 20 ) END ) - - 79 - + 71 * - + 40 + - + CAST( 17 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT + 26 + - MAX ( ALL + CASE + 94 WHEN - + 58 THEN + + 58 WHEN + 11 THEN NULL WHEN 66 THEN - + 17 - - ( + 20 ) END ) - - 79 - + 71 * - + 40 + - + CAST ( 17 AS INTEGER )
----
NULL

query II rowsort
SELECT - 35, CASE - 75 WHEN + 30 THEN - 43 ELSE NULL END AS col2
----
-35
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2850
SELECT - + COUNT( * ) DIV - + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2850
SELECT - + COUNT ( * ) / - + 96 AS col2
----
0

query I rowsort
SELECT + - 40 * 64 * + 62 col2
----
-158720

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT - MIN( - 69 ) * - 4 + - + 59 AS col0
----
-335

skipif mysql # not compatible
query I rowsort label-2852
SELECT - MIN ( - 69 ) * - 4 + - + 59 AS col0
----
-335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2853
SELECT ALL - CAST( - 59 AS SIGNED ) DIV - - 15 + + COUNT( * ) DIV 95 * + 20 DIV + 16 - + 43 + 74 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL - CAST ( - 59 AS INTEGER ) / - - 15 + + COUNT ( * ) / 95 * + 20 / + 16 - + 43 + 74 AS col2
----
34

query I rowsort
SELECT + NULLIF ( 24, + - ( + + 19 ) )
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT CAST( + AVG ( - - CAST( 49 AS SIGNED ) ) AS SIGNED ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-2855
SELECT CAST ( + AVG ( - - CAST ( 49 AS INTEGER ) ) AS INTEGER ) AS col1
----
49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2857
SELECT ALL + 19 * 81 DIV - - COUNT( * ) AS col2
----
1539

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + 19 * 81 / - - COUNT ( * ) AS col2
----
1539

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2859
SELECT + 96 + + - COUNT( * ) + + - 11 - + 65 * ( - COUNT( * ) ) DIV - 67 col2, 23 + 90 AS col1
----
84
113

skipif mysql # not compatible
query II rowsort label-2859
SELECT + 96 + + - COUNT ( * ) + + - 11 - + 65 * ( - COUNT ( * ) ) / - 67 col2, 23 + 90 AS col1
----
84
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT COALESCE ( 43, + 49, - 25 / MIN( DISTINCT - 22 ) * + + 99 + + 86 ) * - - CAST( NULL AS SIGNED ) + 89 + 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2860
SELECT COALESCE ( 43, + 49, - 25 / MIN ( DISTINCT - 22 ) * + + 99 + + 86 ) * - - CAST ( NULL AS INTEGER ) + 89 + 58 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2861
SELECT ( + CAST( + - NULLIF ( 90, + COUNT( * ) ) AS SIGNED ) )
----
-90

skipif mysql # not compatible
query I rowsort label-2861
SELECT ( + CAST ( + - NULLIF ( 90, + COUNT ( * ) ) AS INTEGER ) )
----
-90

query I rowsort
SELECT 29 * + - ( - 40 ) - 16 AS col0
----
1144

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT + 36 * - 93 AS col2, 58 * + ( COUNT( * ) ) col0
----
-3348
58

skipif mysql # not compatible
query II rowsort label-2864
SELECT + 36 * - 93 AS col2, 58 * + ( COUNT ( * ) ) col0
----
-3348
58

query I rowsort
SELECT DISTINCT 58 * - 97 + 56 AS col0
----
-5570

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ALL 27 * + - 97 + - 29 * - + 13 * ( + COUNT( * ) )
----
-2242

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL 27 * + - 97 + - 29 * - + 13 * ( + COUNT ( * ) )
----
-2242

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

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

query I rowsort
SELECT 77 * + 54
----
4158

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

skipif mysql # not compatible
query I rowsort label-2869
SELECT + 95 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2870
SELECT ALL + NULLIF ( 39, - 33 ) + NULLIF ( 39, 60 / + - SUM( - + 96 ) ), 3 * ( - + MIN( DISTINCT + - 98 ) ) AS col1
----
78
294

skipif mysql # not compatible
query II rowsort label-2870
SELECT ALL + NULLIF ( 39, - 33 ) + NULLIF ( 39, 60 / + - SUM ( - + 96 ) ), 3 * ( - + MIN ( DISTINCT + - 98 ) ) AS col1
----
78
294

query I rowsort
SELECT - 26 * - 10 - + 30
----
230

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT + + 96 + + - ( - 20 ) + COUNT( * ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT + + 96 + + - ( - 20 ) + COUNT ( * ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT ALL - 91 - 98 + + - COUNT( ALL 50 ) AS col2
----
-190

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL - 91 - 98 + + - COUNT ( ALL 50 ) AS col2
----
-190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT - CASE - 80 WHEN 86 THEN + 28 - - 44 * - 21 - + AVG ( DISTINCT - 90 ) END * - - CAST( + 82 AS SIGNED ) - - 26 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT - CASE - 80 WHEN 86 THEN + 28 - - 44 * - 21 - + AVG ( DISTINCT - 90 ) END * - - CAST ( + 82 AS INTEGER ) - - 26 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2876
SELECT ALL - - 54 - + CASE + 61 WHEN - COALESCE ( - 6, + CAST( - - COALESCE ( + 49, + + ( 57 ) / - 1 + + + 8 - + 48, CAST( NULL AS SIGNED ) * + 89 * + + 24 + + - 54 - + ( + 22 ) ) AS SIGNED ), + CAST( - 22 AS SIGNED ) ) THEN + COUNT( 31 ) + + CAST( - NULLIF ( - COUNT( * ), 44 ) AS SIGNED ) ELSE NULL END - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL - - 54 - + CASE + 61 WHEN - COALESCE ( - 6, + CAST ( - - COALESCE ( + 49, + + ( 57 ) / - 1 + + + 8 - + 48, CAST ( NULL AS INTEGER ) * + 89 * + + 24 + + - 54 - + ( + 22 ) ) AS INTEGER ), + CAST ( - 22 AS INTEGER ) ) THEN + COUNT ( 31 ) + + CAST ( - NULLIF ( - COUNT ( * ), 44 ) AS INTEGER ) ELSE NULL END - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT MIN( DISTINCT - - 70 ) + - 59 * - 70 AS col1
----
4200

skipif mysql # not compatible
query I rowsort label-2877
SELECT MIN ( DISTINCT - - 70 ) + - 59 * - 70 AS col1
----
4200

query I rowsort
SELECT 21 + + - 31
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2879
SELECT 11 * + 67 + 43 DIV + + 8 + + + 42 AS col1, 89 DIV + ( + CAST( - MIN( ALL + 28 ) AS SIGNED ) ) AS col0
----
784
-3

skipif mysql # not compatible
query II rowsort label-2879
SELECT 11 * + 67 + 43 / + + 8 + + + 42 AS col1, 89 / + ( + CAST ( - MIN ( ALL + 28 ) AS INTEGER ) ) AS col0
----
784
-3

query I rowsort
SELECT DISTINCT - + 12 * - 28 * - 90 * NULLIF ( + ( - 54 ), - 38 ) * - 47 - - 86 AS col0
----
-76749034

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2881
SELECT 33 DIV + 69 + + 87 * 98 AS col2, COUNT( * ) * - + 2 + + - CAST( NULL AS SIGNED ) * + 11 - + + COUNT( * ) AS col1
----
8526
NULL

skipif mysql # not compatible
query II rowsort label-2881
SELECT 33 / + 69 + + 87 * 98 AS col2, COUNT ( * ) * - + 2 + + - CAST ( NULL AS INTEGER ) * + 11 - + + COUNT ( * ) AS col1
----
8526
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2882
SELECT 36 DIV 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2882
SELECT 36 / 73 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2883
SELECT - COALESCE ( - 20, 53 * 76 + + - 67 * 21 * COALESCE ( - NULLIF ( 58, - - CAST( + 28 AS SIGNED ) ), + COUNT( + + ( - - 99 ) ) ) ) DIV COUNT( * ) - 50 - + 85
----
-115

skipif mysql # not compatible
query I rowsort label-2883
SELECT - COALESCE ( - 20, 53 * 76 + + - 67 * 21 * COALESCE ( - NULLIF ( 58, - - CAST ( + 28 AS INTEGER ) ), + COUNT ( + + ( - - 99 ) ) ) ) / COUNT ( * ) - 50 - + 85
----
-115

query II rowsort
SELECT 10 AS col2, - 83 AS col1
----
10
-83

query II rowsort
SELECT 33 * + 50 * + 39 + - 96, + 4 col2
----
64254
4

query I rowsort
SELECT 55 + - - 48 + 29 * - - 4 col0
----
219

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2887
SELECT 62 DIV + ( + - 91 ), + CASE 72 WHEN - 64 * - + 95 THEN + + 66 ELSE 1 * + COUNT( * ) END + + - COUNT( * )
----
0
0

skipif mysql # not compatible
query II rowsort label-2887
SELECT 62 / + ( + - 91 ), + CASE 72 WHEN - 64 * - + 95 THEN + + 66 ELSE 1 * + COUNT ( * ) END + + - COUNT ( * )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT 33 * + + 41 + - + 14 * + CASE COUNT( 95 ) WHEN 39 THEN + SUM( ALL + 0 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2888
SELECT 33 * + + 41 + - + 14 * + CASE COUNT ( 95 ) WHEN 39 THEN + SUM ( ALL + 0 ) END
----
NULL

query I rowsort
SELECT ALL - 88 + 44
----
-44

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

query I rowsort
SELECT ALL 31 * + 4
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT COALESCE ( - COALESCE ( - 51, + + MIN( 38 ) * - 30 * COUNT( * ) * - 39 + - 40 + - 81 - - 87 + + 49 * + 71 ), - 69 ) * 38 + - 36 + - - 12 AS col0
----
1914

skipif mysql # not compatible
query I rowsort label-2892
SELECT COALESCE ( - COALESCE ( - 51, + + MIN ( 38 ) * - 30 * COUNT ( * ) * - 39 + - 40 + - 81 - - 87 + + 49 * + 71 ), - 69 ) * 38 + - 36 + - - 12 AS col0
----
1914

query I rowsort
SELECT DISTINCT 24 + 96 AS col2
----
120

query II rowsort
SELECT + 70 col1, 55
----
70
55

query I rowsort
SELECT DISTINCT - 71 + 53 col1
----
-18

query I rowsort
SELECT 51 + - 67 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT 88 + - 13 * - COUNT( * ) + + + 31 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT 88 + - 13 * - COUNT ( * ) + + + 31 AS col1
----
132

query II rowsort
SELECT + 80 AS col2, - 37
----
80
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2899
SELECT ALL - 98 AS col2, ( + 69 ) * + COUNT( ALL + 95 ) + + 76 + 9 - + 39 + - 54 AS col0
----
-98
61

skipif mysql # not compatible
query II rowsort label-2899
SELECT ALL - 98 AS col2, ( + 69 ) * + COUNT ( ALL + 95 ) + + 76 + 9 - + 39 + - 54 AS col0
----
-98
61

query I rowsort
SELECT 88 + 57 AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT DISTINCT ( - SUM( ALL 39 ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT ( - SUM ( ALL 39 ) ) AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL + 20 - COALESCE ( - 46, - - COUNT( * ) + 88 ) + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL + 20 - COALESCE ( - 46, - - COUNT ( * ) + 88 ) + COUNT ( * )
----
67

query I rowsort
SELECT + 68 + + NULLIF ( + + 21, - + 86 * 81 ) AS col2
----
89

query I rowsort
SELECT DISTINCT - 3 * - 39 * - 90
----
-10530

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

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

query I rowsort
SELECT - 34 * - - 69 AS col2
----
-2346

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2907
SELECT - 46 AS col1, - CAST( + - 96 AS SIGNED )
----
-46
96

skipif mysql # not compatible
query II rowsort label-2907
SELECT - 46 AS col1, - CAST ( + - 96 AS INTEGER )
----
-46
96

query I rowsort
SELECT 49 + + 72 AS col0
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2909
SELECT 21 col0, ( - 96 ) DIV COUNT( * ) DIV NULLIF ( - 3, + 65 )
----
21
32

skipif mysql # not compatible
query II rowsort label-2909
SELECT 21 col0, ( - 96 ) / COUNT ( * ) / NULLIF ( - 3, + 65 )
----
21
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT ALL COUNT( * ) AS col0, - CASE + 43 WHEN 89 THEN + 71 WHEN + COUNT( * ) - 85 - - - COUNT( - 86 ) * + 10 THEN - COUNT( * ) * - 10 END * - 98
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2910
SELECT ALL COUNT ( * ) AS col0, - CASE + 43 WHEN 89 THEN + 71 WHEN + COUNT ( * ) - 85 - - - COUNT ( - 86 ) * + 10 THEN - COUNT ( * ) * - 10 END * - 98
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2911
SELECT DISTINCT 25 AS col0, CAST( NULL AS SIGNED ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2911
SELECT DISTINCT 25 AS col0, CAST ( NULL AS INTEGER ) AS col0
----
25
NULL

query II rowsort
SELECT DISTINCT + 31, + 27 AS col2
----
31
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT COUNT( * ) * - MIN( ALL 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-2914
SELECT COUNT ( * ) * - MIN ( ALL 97 ) AS col0
----
-97

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

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

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

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

query I rowsort
SELECT 57 * - 41 + - 99
----
-2436

query I rowsort
SELECT 55 * - + CASE - + 30 WHEN 44 - AVG ( ALL - 20 ) THEN NULL ELSE 36 * - 31 END
----
61380

query I rowsort
SELECT ALL - NULLIF ( + 66, + 68 )
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT ALL CASE + - 68 WHEN + 98 THEN - - 44 END * - 53 / + + 96 * + 98 * COUNT( * ) + + 45 + + 12 + - 79 / + AVG ( ALL - 98 ) + + 48 + - 32 * SUM( CAST( NULL AS SIGNED ) ) * - MAX( - 67 ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL CASE + - 68 WHEN + 98 THEN - - 44 END * - 53 / + + 96 * + 98 * COUNT ( * ) + + 45 + + 12 + - 79 / + AVG ( ALL - 98 ) + + 48 + - 32 * SUM ( CAST ( NULL AS INTEGER ) ) * - MAX ( - 67 ) + + 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL 88 * - ( + 19 ) + - - COUNT( ALL - 19 ) * - - ( SUM( ALL + + 38 ) ) AS col2
----
-1634

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL 88 * - ( + 19 ) + - - COUNT ( ALL - 19 ) * - - ( SUM ( ALL + + 38 ) ) AS col2
----
-1634

query I rowsort
SELECT DISTINCT 13 * - - 21 + - 11
----
262

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2924
SELECT DISTINCT + 12 DIV + + 61 AS col2, + 47 - ( COUNT( * ) ) + + 8 + + - 48 + - 3 + COUNT( * ) + - 8 * + + 58 + + 28
----
0
-432

skipif mysql # not compatible
query II rowsort label-2924
SELECT DISTINCT + 12 / + + 61 AS col2, + 47 - ( COUNT ( * ) ) + + 8 + + - 48 + - 3 + COUNT ( * ) + - 8 * + + 58 + + 28
----
0
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT - COALESCE ( + 6, + 78, - 40 ) * - - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-2925
SELECT - COALESCE ( + 6, + 78, - 40 ) * - - COUNT ( * )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT ALL + 94 * - SUM( - 29 ) AS col0
----
2726

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL + 94 * - SUM ( - 29 ) AS col0
----
2726

query I rowsort
SELECT DISTINCT 0 * 83 - - 81
----
81

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2929
SELECT DISTINCT - COUNT( * ) - - 96 AS col0, - ( - 92 ) AS col1
----
95
92

skipif mysql # not compatible
query II rowsort label-2929
SELECT DISTINCT - COUNT ( * ) - - 96 AS col0, - ( - 92 ) AS col1
----
95
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2930
SELECT ALL + 54 * - + 43 + - + 63 + + - 36 + + - CAST( - 68 AS SIGNED ) * + 23, + 71 AS col0
----
-857
71

skipif mysql # not compatible
query II rowsort label-2930
SELECT ALL + 54 * - + 43 + - + 63 + + - 36 + + - CAST ( - 68 AS INTEGER ) * + 23, + 71 AS col0
----
-857
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT CASE - 21 WHEN - - COALESCE ( - 45, SUM( DISTINCT - 51 ) * ( - 93 ) - - 5 - - COUNT( * ), 17 * - MAX( + 11 ) * - + NULLIF ( + 26, 36 ) + 21 * - COALESCE ( - + 21, 61 * - 97, + COUNT( * ) * - 26 ) * - 79 ) THEN - 37 * + 98 - + 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT CASE - 21 WHEN - - COALESCE ( - 45, SUM ( DISTINCT - 51 ) * ( - 93 ) - - 5 - - COUNT ( * ), 17 * - MAX ( + 11 ) * - + NULLIF ( + 26, 36 ) + 21 * - COALESCE ( - + 21, 61 * - 97, + COUNT ( * ) * - 26 ) * - 79 ) THEN - 37 * + 98 - + 15 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 63 - + 69 - + - ( 97 )
----
-35

query I rowsort
SELECT - - CASE - 31 WHEN - 64 / - 53 + + - 33 THEN - 51 * + - 13 ELSE NULL END
----
NULL

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

query I rowsort
SELECT - - 25 * 54 AS col0
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2936
SELECT - - 58 * 36 + - + 74 + 54 + - 12 * - ( 61 ) - + 41 + - - CAST( NULL AS SIGNED ) * - + 89 / - COUNT( * ) * + - 67 AS col0, 23 + CASE + 31 WHEN ( + - MAX( 31 ) ) THEN NULL WHEN - 15 + - 19 * 6 THEN 35 END col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2936
SELECT - - 58 * 36 + - + 74 + 54 + - 12 * - ( 61 ) - + 41 + - - CAST ( NULL AS INTEGER ) * - + 89 / - COUNT ( * ) * + - 67 AS col0, 23 + CASE + 31 WHEN ( + - MAX ( 31 ) ) THEN NULL WHEN - 15 + - 19 * 6 THEN 35 END col0
----
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL + 98 + 2
----
100

query I rowsort
SELECT ALL 65 * + 12 AS col0
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2941
SELECT + 50 + CAST( + + CASE + 59 WHEN 86 * ( - 31 ) THEN NULL ELSE - 41 END AS SIGNED ) * - 49 col1
----
2059

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 50 + CAST ( + + CASE + 59 WHEN 86 * ( - 31 ) THEN NULL ELSE - 41 END AS INTEGER ) * - 49 col1
----
2059

query I rowsort
SELECT + 26 + - 47 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + ( + 69 ) * - + SUM( ALL 0 ) * 37 + + CASE 37 WHEN - - 44 THEN + + 94 WHEN - - 25 THEN + + COUNT( * ) WHEN MAX( ALL - 76 ) - - ( 65 ) THEN NULL ELSE NULL END + 29 / 24
----
NULL

skipif mysql # not compatible
query I rowsort label-2943
SELECT + ( + 69 ) * - + SUM ( ALL 0 ) * 37 + + CASE 37 WHEN - - 44 THEN + + 94 WHEN - - 25 THEN + + COUNT ( * ) WHEN MAX ( ALL - 76 ) - - ( 65 ) THEN NULL ELSE NULL END + 29 / 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + COUNT( * ) + - - 95 * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-2944
SELECT + COUNT ( * ) + - - 95 * - COUNT ( * ) AS col0
----
-94

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

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

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

query I rowsort
SELECT + 20 + 9 - 67 - + 36 * + - 57 + 24 - + + 89 * - - 0 * + 66 + - 45
----
1993

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL COUNT( * ) * + CASE + 32 WHEN - + 69 THEN - + 40 WHEN + 4 THEN - 67 + - ( - 25 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL COUNT ( * ) * + CASE + 32 WHEN - + 69 THEN - + 40 WHEN + 4 THEN - 67 + - ( - 25 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT + CASE - 88 WHEN - 8 / + 33 * COUNT( * ) THEN NULL WHEN + 50 THEN + CAST( NULL AS SIGNED ) * 32 + + NULLIF ( 0, - SUM( DISTINCT - - 77 ) ) + + 77 + - 91 WHEN 35 THEN NULL ELSE NULL END + + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2949
SELECT + CASE - 88 WHEN - 8 / + 33 * COUNT ( * ) THEN NULL WHEN + 50 THEN + CAST ( NULL AS INTEGER ) * 32 + + NULLIF ( 0, - SUM ( DISTINCT - - 77 ) ) + + 77 + - 91 WHEN 35 THEN NULL ELSE NULL END + + + 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2950
SELECT ALL - 98 DIV - + ( - 11 ), + MIN( - 57 ) DIV - - 7
----
-8
-8

skipif mysql # not compatible
query II rowsort label-2950
SELECT ALL - 98 / - + ( - 11 ), + MIN ( - 57 ) / - - 7
----
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2951
SELECT + 53 DIV COUNT( * ) + - NULLIF ( + 17, 47 * + COUNT( * ) - + COUNT( * ) ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2951
SELECT + 53 / COUNT ( * ) + - NULLIF ( + 17, 47 * + COUNT ( * ) - + COUNT ( * ) ) AS col1
----
36

query II rowsort
SELECT + 14 AS col1, + 35 col2
----
14
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT - ( 90 ) + 9 * + COUNT( ALL - ( 63 ) ) + - 75 AS col2
----
-156

skipif mysql # not compatible
query I rowsort label-2953
SELECT - ( 90 ) + 9 * + COUNT ( ALL - ( 63 ) ) + - 75 AS col2
----
-156

query I rowsort
SELECT ALL + 26 * - - 15
----
390

query I rowsort
SELECT ALL 12 * - 54
----
-648

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2957
SELECT ALL + - 39 DIV + 16
----
-2

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + - 39 / + 16
----
-2

query I rowsort
SELECT + 94 + + - ( - - 5 ) AS col2
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-2959
SELECT - 68 + 42 * - 94, 3 DIV + + ( - ( + 88 ) ) * 35 AS col2
----
-4016
0

skipif mysql # not compatible
query II rowsort label-2959
SELECT - 68 + 42 * - 94, 3 / + + ( - ( + 88 ) ) * 35 AS col2
----
-4016
0

query I rowsort
SELECT - 77 * 45
----
-3465

query I rowsort
SELECT - + 37 + - 27 AS col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2962
SELECT - 21 * + + 62 + - CAST( NULL AS SIGNED ), + 81 - 95 * + 41 col1
----
NULL
-3814

skipif mysql # not compatible
query II rowsort label-2962
SELECT - 21 * + + 62 + - CAST ( NULL AS INTEGER ), + 81 - 95 * + 41 col1
----
NULL
-3814

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT ALL + 30 AS col1, MIN( + 38 )
----
30
38

skipif mysql # not compatible
query II rowsort label-2963
SELECT ALL + 30 AS col1, MIN ( + 38 )
----
30
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - - MIN( - 97 ) * + 13 + - COALESCE ( 13, + - 96 * + 45 + + 66 + + 25 ) * 69 * 49 AS col0
----
-45214

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - MIN ( - 97 ) * + 13 + - COALESCE ( 13, + - 96 * + 45 + + 66 + + 25 ) * 69 * 49 AS col0
----
-45214

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2966
SELECT ALL - - 81 DIV - 20 * + - 1 AS col1, COUNT( * ) * NULLIF ( - 24, + + 62 + - + 96 * + - COALESCE ( - 91, + + 69, 22 ) + + 25 + 77 + 58 * + + 15 ) * 70 - + - 86
----
4
-1594

skipif mysql # not compatible
query II rowsort label-2966
SELECT ALL - - 81 / - 20 * + - 1 AS col1, COUNT ( * ) * NULLIF ( - 24, + + 62 + - + 96 * + - COALESCE ( - 91, + + 69, 22 ) + + 25 + 77 + 58 * + + 15 ) * 70 - + - 86
----
4
-1594

onlyif mysql # aggregate syntax: 
query II rowsort label-2967
SELECT - + 87 + - 52 * + COUNT( * ), 21 * 39 * 36 AS col1
----
-139
29484

skipif mysql # not compatible
query II rowsort label-2967
SELECT - + 87 + - 52 * + COUNT ( * ), 21 * 39 * 36 AS col1
----
-139
29484

query I rowsort
SELECT ALL - 76 * 42 AS col1
----
-3192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT ALL + 25 * - 3 + + + 81 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL + 25 * - 3 + + + 81 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 79 + 41
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2971
SELECT ALL + - AVG ( ALL - 1 ) * + CAST( NULL AS DECIMAL ) / NULLIF ( + COUNT( * ), + 96 ) * CAST( NULL AS SIGNED ) * + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + - AVG ( ALL - 1 ) * + CAST ( NULL AS REAL ) / NULLIF ( + COUNT ( * ), + 96 ) * CAST ( NULL AS INTEGER ) * + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2972
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) / - 91 * - COUNT( * ) * + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2972
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) / - 91 * - COUNT ( * ) * + 38 AS col2
----
NULL

query I rowsort
SELECT + ( - 22 ) + + 69 + + + 89
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2974
SELECT ALL - 1 + + - 31 + 83 DIV - COUNT( - - 19 )
----
-115

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL - 1 + + - 31 + 83 / - COUNT ( - - 19 )
----
-115

query I rowsort
SELECT ALL 14 + - 11 - + + 82 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - COUNT( * ) * - 4 * - 95 AS col0
----
-380

skipif mysql # not compatible
query I rowsort label-2976
SELECT - COUNT ( * ) * - 4 * - 95 AS col0
----
-380

query I rowsort
SELECT - COALESCE ( + 69, + 4 * - - 73 * - - 68 + - 2 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT DISTINCT 25 + + MIN( + + 11 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT 25 + + MIN ( + + 11 ) AS col0
----
36

query I rowsort
SELECT DISTINCT 1 * - + 53
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2980
SELECT - 55 AS col0, COUNT( * ) * + 31 * + 56 - - + 10 * - 34 * - - CAST( + AVG ( + 13 ) AS SIGNED ) + 30 AS col0
----
-55
-2654

skipif mysql # not compatible
query II rowsort label-2980
SELECT - 55 AS col0, COUNT ( * ) * + 31 * + 56 - - + 10 * - 34 * - - CAST ( + AVG ( + 13 ) AS INTEGER ) + 30 AS col0
----
-55
-2654

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT 90 DIV 66 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2981
SELECT 90 / 66 AS col0
----
1

query I rowsort
SELECT 61 * + + 17 * + - 19 * - + 94
----
1852082

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT ALL 24 - + + CASE 64 WHEN 92 THEN NULL WHEN - ( + COUNT( * ) ) THEN CAST( NULL AS SIGNED ) ELSE 53 * + 61 * 24 END
----
-77568

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL 24 - + + CASE 64 WHEN 92 THEN NULL WHEN - ( + COUNT ( * ) ) THEN CAST ( NULL AS INTEGER ) ELSE 53 * + 61 * 24 END
----
-77568

query II rowsort
SELECT ALL - 44, + 64 AS col2
----
-44
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL - COUNT( - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL - COUNT ( - 7 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 53 DIV + ( 15 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 53 / + ( 15 ) AS col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT 86 DIV + 10
----
8

skipif mysql # not compatible
query I rowsort label-2987
SELECT 86 / + 10
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2988
SELECT + + 0 DIV + 45 * + + 55 + - + ( - COUNT( DISTINCT - - 44 ) )
----
1

skipif mysql # not compatible
query I rowsort label-2988
SELECT + + 0 / + 45 * + + 55 + - + ( - COUNT ( DISTINCT - - 44 ) )
----
1

query I rowsort
SELECT - - 71 * + + 86 + - 56 - + + 72 + - 51 AS col1
----
5927

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT + NULLIF ( - - SUM( DISTINCT + 89 ), - 28 + + 16 ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-2990
SELECT + NULLIF ( - - SUM ( DISTINCT + 89 ), - 28 + + 16 ) AS col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT - - 7 * + CAST( NULL AS SIGNED ) + + - NULLIF ( 28, + SUM( - + COALESCE ( + 32, 74, + 26 + + 59 ) ) * + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT - - 7 * + CAST ( NULL AS INTEGER ) + + - NULLIF ( 28, + SUM ( - + COALESCE ( + 32, 74, + 26 + + 59 ) ) * + 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2992
SELECT ALL - COUNT( * ) AS col2, + 42 + - 31
----
-1
11

skipif mysql # not compatible
query II rowsort label-2992
SELECT ALL - COUNT ( * ) AS col2, + 42 + - 31
----
-1
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2993
SELECT + 48 AS col0, - CASE 21 WHEN 68 / - MIN( - NULLIF ( - 45, - - 61 ) ) + 32 * + - 50 THEN 99 + 82 + + 87 * + - 29 + + + SUM( DISTINCT - + 12 ) + - + 55 * - 46 END AS col2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-2993
SELECT + 48 AS col0, - CASE 21 WHEN 68 / - MIN ( - NULLIF ( - 45, - - 61 ) ) + 32 * + - 50 THEN 99 + 82 + + 87 * + - 29 + + + SUM ( DISTINCT - + 12 ) + - + 55 * - 46 END AS col2
----
48
NULL

query I rowsort
SELECT ALL 97 + + 71 - + 38 - - 63 * 13
----
949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2995
SELECT ALL - CAST( - 42 AS SIGNED ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - CAST ( - 42 AS INTEGER ) AS col2
----
42

query I rowsort
SELECT ALL - 31 + + + 91 - + 32
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2997
SELECT + COALESCE ( + MAX( + NULLIF ( + 64, - ( + 71 ) ) ), + 67 ) AS col2, + 0 * 16 DIV - 19
----
64
0

skipif mysql # not compatible
query II rowsort label-2997
SELECT + COALESCE ( + MAX ( + NULLIF ( + 64, - ( + 71 ) ) ), + 67 ) AS col2, + 0 * 16 / - 19
----
64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT + + COUNT( ALL NULLIF ( + - 74, + - 59 * 39 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2998
SELECT + + COUNT ( ALL NULLIF ( + - 74, + - 59 * 39 ) ) col2
----
1

query II rowsort
SELECT - 99, + 85 AS col2
----
-99
85

query II rowsort
SELECT ALL 10 AS col1, + 42 * - 66 * + 21 + - ( 78 )
----
10
-58290

onlyif mysql # DIV for integer division: 
query II rowsort label-3001
SELECT 14 DIV 55 * 32 + - 2 AS col0, - 87 AS col1
----
-2
-87

skipif mysql # not compatible
query II rowsort label-3001
SELECT 14 / 55 * 32 + - 2 AS col0, - 87 AS col1
----
-2
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + 77 * - 40 * - - MAX( - 83 ) AS col2
----
255640

skipif mysql # not compatible
query I rowsort label-3002
SELECT + 77 * - 40 * - - MAX ( - 83 ) AS col2
----
255640

query I rowsort
SELECT ALL + - ( - 85 ) + + + 80
----
165

query I rowsort
SELECT 90 - + 51 AS col0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT 45 DIV 12
----
3

skipif mysql # not compatible
query I rowsort label-3005
SELECT 45 / 12
----
3

query II rowsort
SELECT ALL - 97 * 19 AS col1, 78 * 49
----
-1843
3822

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3007
SELECT DISTINCT - COUNT( * ) DIV CAST( 79 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3007
SELECT DISTINCT - COUNT ( * ) / CAST ( 79 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT ALL + 70 + 60 AS col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL - MAX( ALL 17 ) - - + SUM( DISTINCT + 15 )
----
-2

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - MAX ( ALL 17 ) - - + SUM ( DISTINCT + 15 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3010
SELECT 71 - CAST( NULL AS DECIMAL ) + 16 * - 60 / - SUM( + - ( - CAST( NULL AS SIGNED ) ) ) + + ( 17 ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-3010
SELECT 71 - CAST ( NULL AS REAL ) + 16 * - 60 / - SUM ( + - ( - CAST ( NULL AS INTEGER ) ) ) + + ( 17 ) + 47
----
NULL

query I rowsort
SELECT ALL - 98 * - + 14
----
1372

query II rowsort
SELECT 45 + + 38 AS col0, + 46 * - 47 AS col2
----
83
-2162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT 70 + + CAST( NULL AS SIGNED ) + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT 70 + + CAST ( NULL AS INTEGER ) + 14
----
NULL

query II rowsort
SELECT 6 * 33 AS col2, 17 + + - 80
----
198
-63

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3016
SELECT 89 + + + 41 + + - CAST( 33 AS SIGNED ) * - COUNT( + 67 ) * - 95 AS col1
----
-3005

skipif mysql # not compatible
query I rowsort label-3016
SELECT 89 + + + 41 + + - CAST ( 33 AS INTEGER ) * - COUNT ( + 67 ) * - 95 AS col1
----
-3005

query I rowsort
SELECT 96 * - 52 AS col1
----
-4992

query I rowsort
SELECT 15 + + + 84 AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3019
SELECT 31 * + 76 + 16 - - 8 + + 38 * - 30 / 77 / - + 5 * - CASE + 7 WHEN + - ( - 15 ) THEN + 13 + - 53 + - - COALESCE ( + 19, - + 82 * + CAST( + 18 AS SIGNED ) + - 85 ) END + - CASE MAX( DISTINCT + 99 ) WHEN + COUNT( * ) * 27 THEN 45 + + COUNT( * ) END + + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3019
SELECT 31 * + 76 + 16 - - 8 + + 38 * - 30 / 77 / - + 5 * - CASE + 7 WHEN + - ( - 15 ) THEN + 13 + - 53 + - - COALESCE ( + 19, - + 82 * + CAST ( + 18 AS INTEGER ) + - 85 ) END + - CASE MAX ( DISTINCT + 99 ) WHEN + COUNT ( * ) * 27 THEN 45 + + COUNT ( * ) END + + 86 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT DISTINCT - 76 * + 32 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3020
SELECT DISTINCT - 76 * + 32 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT CASE 37 WHEN + COUNT( * ) THEN NULL WHEN 67 THEN 95 * COUNT( * ) * - NULLIF ( - 28, 71 ) + + MIN( 99 ) - + 8 - - 9 * 4 + + - 52 * 69 + + CAST( + ( + 65 ) AS SIGNED ) + - 26 * + + 39 WHEN - + CAST( NULL AS SIGNED ) * 16 THEN CAST( + 83 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT CASE 37 WHEN + COUNT ( * ) THEN NULL WHEN 67 THEN 95 * COUNT ( * ) * - NULLIF ( - 28, 71 ) + + MIN ( 99 ) - + 8 - - 9 * 4 + + - 52 * 69 + + CAST ( + ( + 65 ) AS INTEGER ) + - 26 * + + 39 WHEN - + CAST ( NULL AS INTEGER ) * 16 THEN CAST ( + 83 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT 57 * 67 + - SUM( - 69 ) - - 53 * - 63
----
549

skipif mysql # not compatible
query I rowsort label-3022
SELECT 57 * 67 + - SUM ( - 69 ) - - 53 * - 63
----
549

query I rowsort
SELECT ALL 86 + - + 4 + + + 52
----
134

query II rowsort
SELECT ALL 69 + 8 AS col1, 31
----
77
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT SUM( DISTINCT - - ( - + 40 ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3025
SELECT SUM ( DISTINCT - - ( - + 40 ) ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL - 99 + + - COUNT( - ( - - 85 ) )
----
-100

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - 99 + + - COUNT ( - ( - - 85 ) )
----
-100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT - COUNT( * ) + + SUM( DISTINCT + NULLIF ( - - 28, 83 ) ) + + 71
----
98

skipif mysql # not compatible
query I rowsort label-3028
SELECT - COUNT ( * ) + + SUM ( DISTINCT + NULLIF ( - - 28, 83 ) ) + + 71
----
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL + COUNT( * ) - + 71
----
-70

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL + COUNT ( * ) - + 71
----
-70

query I rowsort
SELECT - ( + - 90 ) + 79
----
169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3032
SELECT DISTINCT 46, CASE + + 52 WHEN + MIN( ALL 12 ) THEN + + 46 WHEN + 95 THEN 6 / + - 16 END / - COUNT( * ) / + 14 * + CAST( NULL AS SIGNED ) AS col2
----
46
NULL

skipif mysql # not compatible
query II rowsort label-3032
SELECT DISTINCT 46, CASE + + 52 WHEN + MIN ( ALL 12 ) THEN + + 46 WHEN + 95 THEN 6 / + - 16 END / - COUNT ( * ) / + 14 * + CAST ( NULL AS INTEGER ) AS col2
----
46
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL + 39 - - SUM( DISTINCT + 83 ) * + + 92 * + + 84 - + 87 AS col1
----
641376

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL + 39 - - SUM ( DISTINCT + 83 ) * + + 92 * + + 84 - + 87 AS col1
----
641376

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT + COUNT( * ) * + 16 col2
----
16

skipif mysql # not compatible
query I rowsort label-3034
SELECT + COUNT ( * ) * + 16 col2
----
16

query I rowsort
SELECT - NULLIF ( + 13, - - 69 * - + 48 ) + 83 AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT - 37 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 37 / 94 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3037
SELECT DISTINCT + 67 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT + 67 / 53
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT - CASE COUNT( * ) WHEN + 12 THEN + 68 END * 87 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT - CASE COUNT ( * ) WHEN + 12 THEN + 68 END * 87 col0
----
NULL

query II rowsort
SELECT 21, 32 + + 24 AS col0
----
21
56

query I rowsort
SELECT + 88 * + 67 AS col2
----
5896

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

skipif mysql # not compatible
query I rowsort label-3042
SELECT + ( + CAST ( COUNT ( * ) AS INTEGER ) ) * ( 63 ) AS col0
----
63

query II rowsort
SELECT - 74, 20 col1
----
-74
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3044
SELECT - 76 AS col0, - COUNT( * ) * - - 63 DIV - NULLIF ( 79, + 41 - + 52 ) AS col1
----
-76
0

skipif mysql # not compatible
query II rowsort label-3044
SELECT - 76 AS col0, - COUNT ( * ) * - - 63 / - NULLIF ( 79, + 41 - + 52 ) AS col1
----
-76
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT DISTINCT + NULLIF ( 96, - - 88 / 33 + CASE COUNT( * ) WHEN - 11 + + COUNT( * ) - + - 31 + 60 * + - 85 THEN + COUNT( * ) ELSE NULL END + - 1 * 99 * + - 54 ) + - 13
----
83

skipif mysql # not compatible
query I rowsort label-3045
SELECT DISTINCT + NULLIF ( 96, - - 88 / 33 + CASE COUNT ( * ) WHEN - 11 + + COUNT ( * ) - + - 31 + 60 * + - 85 THEN + COUNT ( * ) ELSE NULL END + - 1 * 99 * + - 54 ) + - 13
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL COALESCE ( - SUM( ALL - - 21 ), + - 8 + + 32 + - - 32 + - + MIN( - 79 ) * - - 22 * CAST( NULL AS SIGNED ) + - 51 * + 54 ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL COALESCE ( - SUM ( ALL - - 21 ), + - 8 + + 32 + - - 32 + - + MIN ( - 79 ) * - - 22 * CAST ( NULL AS INTEGER ) + - 51 * + 54 ) AS col1
----
-21

query II rowsort
SELECT 12, 74 AS col2
----
12
74

query I rowsort
SELECT - 30 * - 96
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT - CASE + - 77 WHEN + 65 - 93 + 91 THEN + COALESCE ( + - COUNT( * ), + - 21 - CASE - 83 WHEN - 70 * 20 + + 34 THEN + + COUNT( * ) ELSE NULL END - + - COUNT( * ) + + - 78 + + 13 * - 63 * - - COUNT( DISTINCT + 69 ) ) + - - 51 - + MIN( DISTINCT 24 ) WHEN 11 * - COUNT( * ) THEN NULL WHEN - 4 + 7 THEN 83 END * - COUNT( * ) - - 65 / CASE + NULLIF ( 55, 26 ) * NULLIF ( + 33 + 13, - 53 / + 3 ) + - 62 * - COUNT( * ) WHEN + 88 + + 79 THEN NULL WHEN 39 THEN + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3049
SELECT - CASE + - 77 WHEN + 65 - 93 + 91 THEN + COALESCE ( + - COUNT ( * ), + - 21 - CASE - 83 WHEN - 70 * 20 + + 34 THEN + + COUNT ( * ) ELSE NULL END - + - COUNT ( * ) + + - 78 + + 13 * - 63 * - - COUNT ( DISTINCT + 69 ) ) + - - 51 - + MIN ( DISTINCT 24 ) WHEN 11 * - COUNT ( * ) THEN NULL WHEN - 4 + 7 THEN 83 END * - COUNT ( * ) - - 65 / CASE + NULLIF ( 55, 26 ) * NULLIF ( + 33 + 13, - 53 / + 3 ) + - 62 * - COUNT ( * ) WHEN + 88 + + 79 THEN NULL WHEN 39 THEN + 21 END
----
NULL

query I rowsort
SELECT DISTINCT 24 * - 37 + + - 4 + + - 47 + + 7 + 12 + 23 * - 67 / + 44 - - 81 * - CASE - 15 WHEN - ( - + 53 ) THEN + 71 WHEN - 74 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3051
SELECT - + 75 * CAST( + ( AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT - + 75 * CAST ( + ( AVG ( DISTINCT CAST ( NULL AS REAL ) ) ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT COUNT( * ) AS col0, ( 50 ) * + + COUNT( - 95 ) + + - 23 * - 96 AS col1
----
1
2258

skipif mysql # not compatible
query II rowsort label-3052
SELECT COUNT ( * ) AS col0, ( 50 ) * + + COUNT ( - 95 ) + + - 23 * - 96 AS col1
----
1
2258

onlyif mysql # aggregate syntax: 
query I rowsort label-3053
SELECT ALL + - 48 * + COUNT( * ) + - 77 + - 54 - + 25
----
-204

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + - 48 * + COUNT ( * ) + - 77 + - 54 - + 25
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT ALL + 69 * + CAST( + ( + + 1 ) AS SIGNED ) * - + 95 + + - 32 * + - ( ( - 82 ) ) + + 24
----
-9155

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL + 69 * + CAST ( + ( + + 1 ) AS INTEGER ) * - + 95 + + - 32 * + - ( ( - 82 ) ) + + 24
----
-9155

onlyif mysql # DIV for integer division: 
query I rowsort label-3055
SELECT ALL + + 61 DIV - + 79 * - 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL + + 61 / - + 79 * - 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + NULLIF ( - 31, - - 85 ) + ( + + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3056
SELECT + NULLIF ( - 31, - - 85 ) + ( + + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT 50 * - COUNT( * ) - + - 25 * - COUNT( * ) * + 19
----
-525

skipif mysql # not compatible
query I rowsort label-3057
SELECT 50 * - COUNT ( * ) - + - 25 * - COUNT ( * ) * + 19
----
-525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3058
SELECT ALL + 76 * + + 0 * + CAST( + 74 AS SIGNED ) * + - ( + + 98 ) + - CAST( + - 80 AS SIGNED ) + + + CASE 13 WHEN - COUNT( * ) THEN CASE WHEN NOT ( CAST( NULL AS SIGNED ) ) BETWEEN + 54 AND + 22 THEN + 81 END WHEN 79 + - + 35 THEN 42 + + 49 * + + 9 + + 97 WHEN 56 THEN 16 * - 52 END * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + 76 * + + 0 * + CAST ( + 74 AS INTEGER ) * + - ( + + 98 ) + - CAST ( + - 80 AS INTEGER ) + + + CASE 13 WHEN - COUNT ( * ) THEN CASE WHEN NOT ( CAST ( NULL AS INTEGER ) ) BETWEEN + 54 AND + 22 THEN + 81 END WHEN 79 + - + 35 THEN 42 + + 49 * + + 9 + + 97 WHEN 56 THEN 16 * - 52 END * 11
----
NULL

query I rowsort
SELECT ALL + 70 * - 25 * - 38
----
66500

query II rowsort
SELECT 7 col1, - 80 AS col0
----
7
-80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3061
SELECT - 99 DIV NULLIF ( + - 94, - + CAST( NULL AS SIGNED ) * - 66 + ( 26 ) + - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-3061
SELECT - 99 / NULLIF ( + - 94, - + CAST ( NULL AS INTEGER ) * - 66 + ( 26 ) + - 84 )
----
1

query II rowsort
SELECT ALL - + 66 * 16 - COALESCE ( - - 67, - 57, - + 31 ) AS col0, + 80
----
-1123
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT + - 20, + 44 * + 94 * 52 * 3 + - 35 + + CAST( NULL AS SIGNED ) AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-3063
SELECT + - 20, + 44 * + 94 * 52 * 3 + - 35 + + CAST ( NULL AS INTEGER ) AS col2
----
-20
NULL

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

query I rowsort
SELECT + 91 * - - 64
----
5824

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3066
SELECT + ( - + CAST( NULL AS DECIMAL ) ) * + 76 / - + 28 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT + ( - + CAST ( NULL AS REAL ) ) * + 76 / - + 28 col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3067
SELECT ALL 55 DIV + - 89 AS col2, - 86 AS col2
----
0
-86

skipif mysql # not compatible
query II rowsort label-3067
SELECT ALL 55 / + - 89 AS col2, - 86 AS col2
----
0
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT + COUNT( * ) * + + 62 * + 9 * - + 35 * - 1 AS col1
----
19530

skipif mysql # not compatible
query I rowsort label-3068
SELECT + COUNT ( * ) * + + 62 * + 9 * - + 35 * - 1 AS col1
----
19530

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT MAX( - 70 ) * + + MIN( DISTINCT 76 ) - - 11 AS col1
----
-5309

skipif mysql # not compatible
query I rowsort label-3069
SELECT MAX ( - 70 ) * + + MIN ( DISTINCT 76 ) - - 11 AS col1
----
-5309

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + ( + COUNT( * ) ) - + + SUM( ALL - 76 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3071
SELECT + ( + COUNT ( * ) ) - + + SUM ( ALL - 76 ) AS col0
----
77

query I rowsort
SELECT ALL 1 * - 33
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL COALESCE ( - 99, + 63, - 93, + - 99 - + - 8 * + CAST( NULL AS SIGNED ) )
----
-99

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL COALESCE ( - 99, + 63, - 93, + - 99 - + - 8 * + CAST ( NULL AS INTEGER ) )
----
-99

query I rowsort
SELECT + ( - 10 ) * - ( 14 )
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT + ( + 79 ) + - - COUNT( * )
----
80

skipif mysql # not compatible
query I rowsort label-3075
SELECT + ( + 79 ) + - - COUNT ( * )
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3076
SELECT ALL NULLIF ( 90, + COUNT( * ) ) + + 18 AS col2, - 67 * + 57
----
108
-3819

skipif mysql # not compatible
query II rowsort label-3076
SELECT ALL NULLIF ( 90, + COUNT ( * ) ) + + 18 AS col2, - 67 * + 57
----
108
-3819

query I rowsort
SELECT + 17 + + 96 AS col2
----
113

query I rowsort
SELECT ALL + - 38 + + 9
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3079
SELECT + CASE + 13 WHEN - 57 * - + 31 - + 46 * + CAST( NULL AS DECIMAL ) * ( + - 29 ) + + - 87 THEN - + 53 WHEN + - COUNT( * ) THEN NULL ELSE + CASE + - 12 WHEN - MAX( DISTINCT - 50 ) THEN - + MIN( ALL - 88 ) + - + 64 END END + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT + CASE + 13 WHEN - 57 * - + 31 - + 46 * + CAST ( NULL AS REAL ) * ( + - 29 ) + + - 87 THEN - + 53 WHEN + - COUNT ( * ) THEN NULL ELSE + CASE + - 12 WHEN - MAX ( DISTINCT - 50 ) THEN - + MIN ( ALL - 88 ) + - + 64 END END + + 87
----
NULL

query I rowsort
SELECT ALL + 15 + - - NULLIF ( 28, + 59 * 77 ) AS col1
----
43

query I rowsort
SELECT - - 46 + + + 5 col1
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3082
SELECT ALL - + 26 * 68 * + 37 + 14 AS col0, 36 DIV - 77 col2
----
-65402
0

skipif mysql # not compatible
query II rowsort label-3082
SELECT ALL - + 26 * 68 * + 37 + 14 AS col0, 36 / - 77 col2
----
-65402
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3083
SELECT ALL 38 DIV MAX( 37 ) + 36 + - + 45 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL 38 / MAX ( 37 ) + 36 + - + 45 AS col0
----
-8

query I rowsort
SELECT - - 54 * + 90 * - 58 AS col2
----
-281880

query I rowsort
SELECT NULLIF ( 78, 70 )
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT - 87 * 93 AS col0, - COALESCE ( + - COUNT( * ), - + 55, + + 21, - 10 )
----
-8091
1

skipif mysql # not compatible
query II rowsort label-3086
SELECT - 87 * 93 AS col0, - COALESCE ( + - COUNT ( * ), - + 55, + + 21, - 10 )
----
-8091
1

query I rowsort
SELECT DISTINCT - + 21 - - 22
----
1

query I rowsort
SELECT 35 * 77 col1
----
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT 65 - + 77 + + - MIN( DISTINCT - 85 ) + - SUM( ALL 59 )
----
14

skipif mysql # not compatible
query I rowsort label-3089
SELECT 65 - + 77 + + - MIN ( DISTINCT - 85 ) + - SUM ( ALL 59 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT 68 + + 27 * - COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3090
SELECT 68 + + 27 * - COUNT ( * ) AS col1
----
41

query I rowsort
SELECT 61 * 84 + COALESCE ( - 92, - 50 * + NULLIF ( - 56, + 51 * 45 ) + - + 59 ) + - 20 col2
----
5012

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3092
SELECT MAX( - 28 ) DIV + 32 AS col1, COALESCE ( 82, + COUNT( * ) ) AS col1
----
0
82

skipif mysql # not compatible
query II rowsort label-3092
SELECT MAX ( - 28 ) / + 32 AS col1, COALESCE ( 82, + COUNT ( * ) ) AS col1
----
0
82

query I rowsort
SELECT 61 + + + 28 + 87 * - 98 * + + 73 * - 85 AS col1
----
52903919

query II rowsort
SELECT + 37 AS col0, + 70 * - 10 - - 47
----
37
-653

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT COUNT( * ) - - - 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3095
SELECT COUNT ( * ) - - - 81 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3096
SELECT + 76 * - + 80 + 41 AS col2, + MIN( 40 )
----
-6039
40

skipif mysql # not compatible
query II rowsort label-3096
SELECT + 76 * - + 80 + 41 AS col2, + MIN ( 40 )
----
-6039
40

query I rowsort
SELECT 89 + - + 15 + + 36 * + 13
----
542

onlyif mysql # DIV for integer division: 
query I rowsort label-3098
SELECT 99 DIV + + 86
----
1

skipif mysql # not compatible
query I rowsort label-3098
SELECT 99 / + + 86
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3099
SELECT ALL - 49 + - CAST( NULL AS SIGNED ) + - - 54 * + - 57 * + + 1 * 65 AS col1, 33
----
NULL
33

skipif mysql # not compatible
query II rowsort label-3099
SELECT ALL - 49 + - CAST ( NULL AS INTEGER ) + - - 54 * + - 57 * + + 1 * 65 AS col1, 33
----
NULL
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT 5 + + 38 + - 85 * - COUNT( * ) * - 97 * 63 * + - 21
----
10908178

skipif mysql # not compatible
query I rowsort label-3100
SELECT 5 + + 38 + - 85 * - COUNT ( * ) * - 97 * 63 * + - 21
----
10908178

query I rowsort
SELECT DISTINCT 1 + - + 56
----
-55

query II rowsort
SELECT - 63 AS col1, + 57
----
-63
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3103
SELECT 89 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-3103
SELECT 89 / 76
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT 53 + - 58 + - 93 * NULLIF ( 38, 14 + - ( - 13 ) - + - COALESCE ( 3, 21 * ( 79 ) * NULLIF ( + - 98, 29 ), 55 ) + COUNT( * ) * + - COALESCE ( 93, - - 28 + + - SUM( ALL - 5 ) ) * - 74 ) * COUNT( * ) + - 40 AS col0
----
-3579

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 53 + - 58 + - 93 * NULLIF ( 38, 14 + - ( - 13 ) - + - COALESCE ( 3, 21 * ( 79 ) * NULLIF ( + - 98, 29 ), 55 ) + COUNT ( * ) * + - COALESCE ( 93, - - 28 + + - SUM ( ALL - 5 ) ) * - 74 ) * COUNT ( * ) + - 40 AS col0
----
-3579

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL 88 + + - COUNT( * ) + - - 83 * + 91 AS col1
----
7640

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 88 + + - COUNT ( * ) + - - 83 * + 91 AS col1
----
7640

query III rowsort
SELECT ALL 9 + + NULLIF ( + + 23, + + 89 ) * + 65 AS col0, + 67 AS col0, - + 39
----
1504
67
-39

query I rowsort
SELECT DISTINCT COALESCE ( + - 92, 7 ) AS col2
----
-92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - - NULLIF ( - 43, - MIN( DISTINCT - 75 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - NULLIF ( - 43, - MIN ( DISTINCT - 75 ) )
----
-43

query I rowsort
SELECT - 5 * 91 * - 91 AS col2
----
41405

onlyif mysql # aggregate syntax: 
query II rowsort label-3112
SELECT COUNT( * ) + - COUNT( + + 95 ) AS col1, + 34 * + - 70 AS col2
----
0
-2380

skipif mysql # not compatible
query II rowsort label-3112
SELECT COUNT ( * ) + - COUNT ( + + 95 ) AS col1, + 34 * + - 70 AS col2
----
0
-2380

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT - MIN( - 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3113
SELECT - MIN ( - 87 ) AS col1
----
87

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

query II rowsort
SELECT 5 AS col0, + 45
----
5
45

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

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

query I rowsort
SELECT 3 * 41
----
123

query I rowsort
SELECT - 21 * 4
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3119
SELECT MAX( DISTINCT + 28 ) + + + CAST( - 14 AS SIGNED ) * - ( + 68 )
----
980

skipif mysql # not compatible
query I rowsort label-3119
SELECT MAX ( DISTINCT + 28 ) + + + CAST ( - 14 AS INTEGER ) * - ( + 68 )
----
980

query I rowsort
SELECT ALL - - 27 * + 31
----
837

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT 83 DIV - - 29 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3121
SELECT 83 / - - 29 AS col0
----
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT 0 * CAST( NULL AS SIGNED ) * 15 / - 76 / + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT 0 * CAST ( NULL AS INTEGER ) * 15 / - 76 / + 92
----
NULL

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

skipif mysql # not compatible
query II rowsort label-3124
SELECT 4 AS col1, + COUNT ( * ) * - - 60
----
4
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT 90 * - - CASE + + 15 WHEN - - 54 * - + COUNT( * ) + 18 + - COUNT( * ) THEN - AVG ( 49 ) + 40 * + - 14 + + 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3125
SELECT 90 * - - CASE + + 15 WHEN - - 54 * - + COUNT ( * ) + 18 + - COUNT ( * ) THEN - AVG ( 49 ) + 40 * + - 14 + + 16 END
----
NULL

query I rowsort
SELECT ALL - CASE - 57 WHEN + 3 * 18 - - 70 THEN - - 50 END AS col0
----
NULL

query I rowsort
SELECT ALL - 17 + - 54 AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT DISTINCT - 63 + 9 + + - ( - COUNT( * ) ) + + 91 * - - 95 AS col1
----
8592

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT - 63 + 9 + + - ( - COUNT ( * ) ) + + 91 * - - 95 AS col1
----
8592

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT COUNT( * ) * 4 + 30 * 71 AS col1
----
2134

skipif mysql # not compatible
query I rowsort label-3129
SELECT COUNT ( * ) * 4 + 30 * 71 AS col1
----
2134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3130
SELECT 15 * + - ( MIN( ALL + - 19 ) ) * CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3130
SELECT 15 * + - ( MIN ( ALL + - 19 ) ) * CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3131
SELECT ALL - COUNT( * ) + 96, + 54 AS col0
----
95
54

skipif mysql # not compatible
query II rowsort label-3131
SELECT ALL - COUNT ( * ) + 96, + 54 AS col0
----
95
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT ALL MIN( + 97 ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL MIN ( + 97 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT SUM( DISTINCT + 51 ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT SUM ( DISTINCT + 51 ) AS col1
----
51

query I rowsort
SELECT 5 - - 22
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3135
SELECT ALL - 45 * COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ), + + COUNT( * ) ) * 85
----
-3825

skipif mysql # not compatible
query I rowsort label-3135
SELECT ALL - 45 * COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ), + + COUNT ( * ) ) * 85
----
-3825

query I rowsort
SELECT 14 + - 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT DISTINCT - COUNT( * ) * - NULLIF ( - 98, + 73 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT - COUNT ( * ) * - NULLIF ( - 98, + 73 ) AS col0
----
-98

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

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

query I rowsort
SELECT 30 * - + 8 * - - 81 * 98 * + 84 AS col2
----
-160030080

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3140
SELECT DISTINCT - 76 DIV COALESCE ( + 69, + 55 * 12, - 80 * 36 DIV - - COUNT( * ) + - + 12 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT - 76 / COALESCE ( + 69, + 55 * 12, - 80 * 36 / - - COUNT ( * ) + - + 12 ) col1
----
-1

query I rowsort
SELECT DISTINCT - 65 - + 80
----
-145

query II rowsort
SELECT - 20 + 53 AS col2, - 82 * + 63
----
33
-5166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3143
SELECT CASE + COUNT( * ) WHEN + NULLIF ( COALESCE ( ( - ( - 95 ) ), + CAST( - 80 AS SIGNED ) ), - 13 ) * CAST( 55 AS SIGNED ) THEN NULL ELSE NULLIF ( + 46, - + 22 DIV - 53 + + + 46 * - - 75 + + 96 * 58 - - 18 ) END - 69 DIV + + CAST( + 88 AS SIGNED ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3143
SELECT CASE + COUNT ( * ) WHEN + NULLIF ( COALESCE ( ( - ( - 95 ) ), + CAST ( - 80 AS INTEGER ) ), - 13 ) * CAST ( 55 AS INTEGER ) THEN NULL ELSE NULLIF ( + 46, - + 22 / - 53 + + + 46 * - - 75 + + 96 * 58 - - 18 ) END - 69 / + + CAST ( + 88 AS INTEGER ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT ALL + 32 DIV + 51 * + 3 - - 8 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + 32 / + 51 * + 3 - - 8 AS col0
----
8

query I rowsort
SELECT 57 * - 89 AS col2
----
-5073

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

query I rowsort
SELECT + 3 + 71 * 38 * + - 52
----
-140293

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3148
SELECT 49 + + 91 * + CAST( NULL AS DECIMAL ) * + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT 49 + + 91 * + CAST ( NULL AS REAL ) * + 65
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3149
SELECT ALL 13 AS col1, SUM( DISTINCT - - 97 )
----
13
97

skipif mysql # not compatible
query II rowsort label-3149
SELECT ALL 13 AS col1, SUM ( DISTINCT - - 97 )
----
13
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3150
SELECT + CASE - 67 WHEN COUNT( * ) / 59 + + COALESCE ( - 31, ( + CAST( + 73 AS SIGNED ) ) ) + - - 66 + + 40 + - 96 * - COUNT( * ) * MAX( ALL + 72 ) + + + 19 THEN + 7 ELSE NULL END + 24 - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT + CASE - 67 WHEN COUNT ( * ) / 59 + + COALESCE ( - 31, ( + CAST ( + 73 AS INTEGER ) ) ) + - - 66 + + 40 + - 96 * - COUNT ( * ) * MAX ( ALL + 72 ) + + + 19 THEN + 7 ELSE NULL END + 24 - + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3151
SELECT - + 72 AS col0, COUNT( DISTINCT + 90 ) AS col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-3151
SELECT - + 72 AS col0, COUNT ( DISTINCT + 90 ) AS col1
----
-72
1

query II rowsort
SELECT 38 AS col1, 25
----
38
25

query I rowsort
SELECT + + 36 * - + 52 * - 85 + + 64
----
159184

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

query I rowsort
SELECT + - 61 + 82 AS col0
----
21

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT - COUNT( * ) * ( - 45 ) + - 1 + + 82 + + 59 col1, - 53 + - COUNT( * ) + SUM( 87 )
----
185
33

skipif mysql # not compatible
query II rowsort label-3157
SELECT - COUNT ( * ) * ( - 45 ) + - 1 + + 82 + + 59 col1, - 53 + - COUNT ( * ) + SUM ( 87 )
----
185
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3158
SELECT + 9 col2, 90 + CASE 10 WHEN - 4 + - 22 THEN + CASE + 97 WHEN + 48 - COUNT( DISTINCT + 55 ) THEN - 1 / ( + CASE MIN( DISTINCT - 86 ) WHEN ( - 72 ) * - + COALESCE ( - - 39, 1 * ( - - 63 ) / - - 46, + 94 ) + - + 48 + 95 THEN 57 END ) / ( 19 ) - 2 * 18 END END
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3158
SELECT + 9 col2, 90 + CASE 10 WHEN - 4 + - 22 THEN + CASE + 97 WHEN + 48 - COUNT ( DISTINCT + 55 ) THEN - 1 / ( + CASE MIN ( DISTINCT - 86 ) WHEN ( - 72 ) * - + COALESCE ( - - 39, 1 * ( - - 63 ) / - - 46, + 94 ) + - + 48 + 95 THEN 57 END ) / ( 19 ) - 2 * 18 END END
----
9
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT DISTINCT COUNT( + 80 ) * + - 79 + + + 32 col0
----
-47

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT COUNT ( + 80 ) * + - 79 + + + 32 col0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL COALESCE ( - - 29, - 38 + + 80 / + + 11 ) * - 3 + + 1 + - - ( + + 84 ) + + - CAST( NULL AS SIGNED ) * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL COALESCE ( - - 29, - 38 + + 80 / + + 11 ) * - 3 + + 1 + - - ( + + 84 ) + + - CAST ( NULL AS INTEGER ) * - - 62
----
NULL

query I rowsort
SELECT + ( + - 56 ) AS col1
----
-56

query I rowsort
SELECT 49 * + + 16 * - + ( 31 ) + + 60
----
-24244

onlyif mysql # DIV for integer division: 
query II rowsort label-3165
SELECT ALL 19 * + 18, 7 + + 35 DIV - + 92 AS col0
----
342
7

skipif mysql # not compatible
query II rowsort label-3165
SELECT ALL 19 * + 18, 7 + + 35 / - + 92 AS col0
----
342
7

query I rowsort
SELECT + COALESCE ( + 52, + - ( - + 29 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3167
SELECT - 30 + + + ( + 26 ) DIV + 39 * 91 - + 18 * COALESCE ( + - COUNT( * ), COALESCE ( - 80, - + 11 + + - AVG ( 97 ) ), - - 22 * - COUNT( * ) * - 61 + 24 * + 62 DIV + - 36 ) DIV - 69, + 93 * - 52 AS col0
----
-30
-4836

skipif mysql # not compatible
query II rowsort label-3167
SELECT - 30 + + + ( + 26 ) / + 39 * 91 - + 18 * COALESCE ( + - COUNT ( * ), COALESCE ( - 80, - + 11 + + - AVG ( 97 ) ), - - 22 * - COUNT ( * ) * - 61 + 24 * + 62 / + - 36 ) / - 69, + 93 * - 52 AS col0
----
-30
-4836

query I rowsort
SELECT + 42 + + 25 + 87 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL - 89 * - 24 + - COUNT( * ) * + 36 + 85 AS col0
----
2185

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 89 * - 24 + - COUNT ( * ) * + 36 + 85 AS col0
----
2185

query I rowsort
SELECT ALL 83 * - ( 77 )
----
-6391

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT - 64 + - + COUNT( + + 95 ) * - COUNT( * ) * - 54 AS col0
----
-118

skipif mysql # not compatible
query I rowsort label-3172
SELECT - 64 + - + COUNT ( + + 95 ) * - COUNT ( * ) * - 54 AS col0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - - MAX( ALL + + 58 ) + - 99 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-3173
SELECT - - MAX ( ALL + + 58 ) + - 99 AS col1
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT - + 52 * - - CASE + ( 30 ) WHEN + COUNT( + 50 ) THEN NULL WHEN - ( + NULLIF ( 98, - 6 ) ) + AVG ( 38 ) * - ( 23 ) THEN COUNT( * ) ELSE NULL END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - + 52 * - - CASE + ( 30 ) WHEN + COUNT ( + 50 ) THEN NULL WHEN - ( + NULLIF ( 98, - 6 ) ) + AVG ( 38 ) * - ( 23 ) THEN COUNT ( * ) ELSE NULL END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT - CASE + - COUNT( * ) WHEN 78 / ( - 50 ) + + + 45 THEN NULL WHEN - 11 / 55 + 27 * - ( - - 94 ) THEN + - 86 + ( - + 94 ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3175
SELECT - CASE + - COUNT ( * ) WHEN 78 / ( - 50 ) + + + 45 THEN NULL WHEN - 11 / 55 + 27 * - ( - - 94 ) THEN + - 86 + ( - + 94 ) END col1
----
NULL

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

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

query I rowsort
SELECT + - 17 + 56 * 21
----
1159

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT DISTINCT - + COUNT( + 61 ) - - 62
----
61

skipif mysql # not compatible
query I rowsort label-3178
SELECT DISTINCT - + COUNT ( + 61 ) - - 62
----
61

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

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

query I rowsort
SELECT DISTINCT - - 10 * CASE 4 WHEN + + 65 THEN 56 ELSE NULL END * - - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + MIN( ALL - 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3181
SELECT + MIN ( ALL - 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3182
SELECT - - 71 - + MAX( ALL - 5 ) - + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3182
SELECT - - 71 - + MAX ( ALL - 5 ) - + CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 43 * - 91 AS col1
----
3913

query I rowsort
SELECT DISTINCT 82 + + 57 AS col1
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-3185
SELECT + 26 DIV - ( + 90 ) * 8 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3185
SELECT + 26 / - ( + 90 ) * 8 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3186
SELECT ALL - 87 DIV - ( - 63 ) + 28
----
27

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - 87 / - ( - 63 ) + 28
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT ALL + 72 DIV COUNT( * ) + ( - + COUNT( * ) ) * 9
----
63

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + 72 / COUNT ( * ) + ( - + COUNT ( * ) ) * 9
----
63

query I rowsort
SELECT + 55 + + 1 AS col1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT 63 * + 67 - - NULLIF ( - COALESCE ( + 63, - - ( + ( + 76 ) ), + 87 ), + 56 ) * + 6 * + 38 + - ( + CAST( NULL AS SIGNED ) ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT 63 * + 67 - - NULLIF ( - COALESCE ( + 63, - - ( + ( + 76 ) ), + 87 ), + 56 ) * + 6 * + 38 + - ( + CAST ( NULL AS INTEGER ) ) * 46
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3191
SELECT ALL - 95 DIV + COALESCE ( 3, - + 70 * - 37 * + 50 * CASE - 96 WHEN - 1 THEN - - ( ( - + 90 ) ) DIV + + COUNT( * ) * - 93 + + 62 END + + 20 + - 9 ) + + + ( + + 33 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL - 95 / + COALESCE ( 3, - + 70 * - 37 * + 50 * CASE - 96 WHEN - 1 THEN - - ( ( - + 90 ) ) / + + COUNT ( * ) * - 93 + + 62 END + + 20 + - 9 ) + + + ( + + 33 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + COALESCE ( + 75, 7 ) * - + 9 - - + 59 * + COUNT( + + 86 ) * 86 + - - 51 + + COUNT( * ) AS col0
----
4451

skipif mysql # not compatible
query I rowsort label-3192
SELECT + COALESCE ( + 75, 7 ) * - + 9 - - + 59 * + COUNT ( + + 86 ) * 86 + - - 51 + + COUNT ( * ) AS col0
----
4451

query I rowsort
SELECT ( + NULLIF ( ( + 59 ), + ( CASE - - 63 WHEN 93 / - 95 THEN + 83 + + + COALESCE ( + + 21, + 33 ) / - 37 - + - 49 * 7 WHEN 61 THEN NULL END ) ) ) AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT + 77 * - ( + + ( - COUNT( * ) ) ) * - 4 * - CAST( COUNT( * ) AS SIGNED )
----
308

skipif mysql # not compatible
query I rowsort label-3194
SELECT + 77 * - ( + + ( - COUNT ( * ) ) ) * - 4 * - CAST ( COUNT ( * ) AS INTEGER )
----
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT + ( CASE COALESCE ( + - ( - - 94 ), - 64 ) WHEN - - SUM( + - 90 ) + ( CASE - 89 WHEN + COUNT( * ) * + COUNT( * ) + + - 7 + CAST( NULL AS SIGNED ) THEN + 94 WHEN 69 * + CASE - 45 WHEN - MIN( DISTINCT 10 ) THEN - COUNT( DISTINCT + - ( - 16 ) ) - COUNT( DISTINCT 6 ) + + 92 + - 72 ELSE - COUNT( * ) * - 25 - ( + 23 ) / - 30 END + 7 * 20 THEN NULL ELSE - 42 END ) THEN - 63 * 95 ELSE 63 END ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-3195
SELECT + ( CASE COALESCE ( + - ( - - 94 ), - 64 ) WHEN - - SUM ( + - 90 ) + ( CASE - 89 WHEN + COUNT ( * ) * + COUNT ( * ) + + - 7 + CAST ( NULL AS INTEGER ) THEN + 94 WHEN 69 * + CASE - 45 WHEN - MIN ( DISTINCT 10 ) THEN - COUNT ( DISTINCT + - ( - 16 ) ) - COUNT ( DISTINCT 6 ) + + 92 + - 72 ELSE - COUNT ( * ) * - 25 - ( + 23 ) / - 30 END + 7 * 20 THEN NULL ELSE - 42 END ) THEN - 63 * 95 ELSE 63 END ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT ALL - 17 * + + 65 * + COUNT( * ) * - - 54 - 63 AS col0
----
-59733

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL - 17 * + + 65 * + COUNT ( * ) * - - 54 - 63 AS col0
----
-59733

query I rowsort
SELECT + 47 * + 82 AS col0
----
3854

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT + 65 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT + 65 / + 84
----
0

query II rowsort
SELECT 92 * + 4 + 71, ( - 49 ) AS col1
----
439
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3200
SELECT NULLIF ( COUNT( * ), + 58 + + - 52 ), 20 AS col0
----
1
20

skipif mysql # not compatible
query II rowsort label-3200
SELECT NULLIF ( COUNT ( * ), + 58 + + - 52 ), 20 AS col0
----
1
20

query I rowsort
SELECT + 11 * 54
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT - 79 * 54 * - COUNT( * ) - - + COALESCE ( - 94, + + 67 * - + 44 )
----
4172

skipif mysql # not compatible
query I rowsort label-3202
SELECT - 79 * 54 * - COUNT ( * ) - - + COALESCE ( - 94, + + 67 * - + 44 )
----
4172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT - + ( 20 ) DIV + 34 * + - COUNT( * ) + - - 62
----
62

skipif mysql # not compatible
query I rowsort label-3203
SELECT - + ( 20 ) / + 34 * + - COUNT ( * ) + - - 62
----
62

query I rowsort
SELECT - 24 - 84 col1
----
-108

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

query I rowsort
SELECT DISTINCT + 13 * + 0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT + 4 + - + CAST( NULL AS SIGNED ) + - CASE - 41 WHEN 46 + 46 THEN - + AVG ( ALL 39 ) END / + - 4 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT + 4 + - + CAST ( NULL AS INTEGER ) + - CASE - 41 WHEN 46 + 46 THEN - + AVG ( ALL 39 ) END / + - 4 + - 96
----
NULL

query I rowsort
SELECT NULLIF ( + 64, 99 + - 23 * - ( + COALESCE ( - + 23, - - 0, - - 52 ) ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT - 88 - + SUM( ALL 27 ) + + 55 + + 67 col0
----
7

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 88 - + SUM ( ALL 27 ) + + 55 + + 67 col0
----
7

query II rowsort
SELECT - 71 AS col2, - ( 78 )
----
-71
-78

query I rowsort
SELECT - 97 * - 40 AS col2
----
3880

query I rowsort
SELECT DISTINCT + + ( + 30 ) + - 30 col1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3214
SELECT - ( - CAST( - 59 AS SIGNED ) ) + 28 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3214
SELECT - ( - CAST ( - 59 AS INTEGER ) ) + 28 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + + COALESCE ( - - 13, MAX( - - 93 ) * - 86, 68 ) * + + 76 AS col2
----
988

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + + COALESCE ( - - 13, MAX ( - - 93 ) * - 86, 68 ) * + + 76 AS col2
----
988

query I rowsort
SELECT ALL - 79 + + - 87 + 38
----
-128

query II rowsort
SELECT + 55 col0, - NULLIF ( + + 38, + 78 )
----
55
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-3218
SELECT DISTINCT - - 95 + + 37 + - 13 AS col2, NULLIF ( ( - + ( + 69 ) ), + 6 * MAX( + ( 0 ) ) + COALESCE ( + 62, 7 ) + 56 ) + - - ( - + 7 )
----
119
-76

skipif mysql # not compatible
query II rowsort label-3218
SELECT DISTINCT - - 95 + + 37 + - 13 AS col2, NULLIF ( ( - + ( + 69 ) ), + 6 * MAX ( + ( 0 ) ) + COALESCE ( + 62, 7 ) + 56 ) + - - ( - + 7 )
----
119
-76

query I rowsort
SELECT 80 + 39
----
119

query I rowsort
SELECT 15 * + 13
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL + 86 + + + NULLIF ( 79, 5 * + COALESCE ( CASE - 87 WHEN - 13 / - 73 * + ( SUM( DISTINCT - 49 ) ) + + 38 + + - 82 THEN NULL WHEN + + 77 + - COUNT( * ) * - 70 THEN 24 END, + 87 ) + + 11 - - 54 / COUNT( * ) )
----
165

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + 86 + + + NULLIF ( 79, 5 * + COALESCE ( CASE - 87 WHEN - 13 / - 73 * + ( SUM ( DISTINCT - 49 ) ) + + 38 + + - 82 THEN NULL WHEN + + 77 + - COUNT ( * ) * - 70 THEN 24 END, + 87 ) + + 11 - - 54 / COUNT ( * ) )
----
165

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT 15 + + + COUNT( ALL + 56 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3223
SELECT 15 + + + COUNT ( ALL + 56 ) AS col2
----
16

onlyif mysql # DIV for integer division: 
query II rowsort label-3224
SELECT ALL CASE + - 98 WHEN + 68 * 9 * 10 + - + 95 THEN 23 * + + 3 + 63 DIV + 0 ELSE 37 END * + 50 AS col2, + 48 * - 3
----
1850
-144

skipif mysql # not compatible
query II rowsort label-3224
SELECT ALL CASE + - 98 WHEN + 68 * 9 * 10 + - + 95 THEN 23 * + + 3 + 63 / + 0 ELSE 37 END * + 50 AS col2, + 48 * - 3
----
1850
-144

query I rowsort
SELECT DISTINCT + ( - 84 ) * + NULLIF ( 53, 95 ) col0
----
-4452

query I rowsort
SELECT 87 * CASE - - AVG ( DISTINCT + 70 ) WHEN + ( 44 ) THEN + 59 ELSE NULL END + - 37 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT NULLIF ( 40, - CASE + 68 WHEN 20 THEN 50 * - - ( 1 ) + + CAST( - NULLIF ( + - AVG ( + 64 ), - ( - - CAST( + COUNT( * ) AS SIGNED ) ) * + 14 ) AS SIGNED ) * + CAST( - - 71 AS SIGNED ) WHEN - 51 - + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - + 74 THEN - 26 + - - 87 / - 25 * 55 * - + COUNT( * ) END ) * - 24
----
-960

skipif mysql # not compatible
query I rowsort label-3227
SELECT NULLIF ( 40, - CASE + 68 WHEN 20 THEN 50 * - - ( 1 ) + + CAST ( - NULLIF ( + - AVG ( + 64 ), - ( - - CAST ( + COUNT ( * ) AS INTEGER ) ) * + 14 ) AS INTEGER ) * + CAST ( - - 71 AS INTEGER ) WHEN - 51 - + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - + 74 THEN - 26 + - - 87 / - 25 * 55 * - + COUNT ( * ) END ) * - 24
----
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT - 40 * + 22 + COUNT( * ) + - - COUNT( * ) + COUNT( - 50 )
----
-877

skipif mysql # not compatible
query I rowsort label-3228
SELECT - 40 * + 22 + COUNT ( * ) + - - COUNT ( * ) + COUNT ( - 50 )
----
-877

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT 59 + + COALESCE ( - + 37, 60 * + MAX( ALL 16 ), - 57 ) col1
----
22

skipif mysql # not compatible
query I rowsort label-3229
SELECT 59 + + COALESCE ( - + 37, 60 * + MAX ( ALL 16 ), - 57 ) col1
----
22

query I rowsort
SELECT 30 + - - 75 AS col2
----
105

query I rowsort
SELECT ( + + 33 ) * - + 55 col1
----
-1815

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - - MIN( - + 94 ) * + MIN( DISTINCT 16 ) * - 68 + ( - 76 ) + - COUNT( * ) AS col2
----
102195

skipif mysql # not compatible
query I rowsort label-3232
SELECT - - MIN ( - + 94 ) * + MIN ( DISTINCT 16 ) * - 68 + ( - 76 ) + - COUNT ( * ) AS col2
----
102195

query I rowsort
SELECT + 22 + NULLIF ( 68, + + ( + 4 ) - 92 ) * 76 AS col0
----
5190

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

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

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

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 15 / - + 35 * + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 24 + + - 5 AS col0
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL ( - 82 ) * CASE 35 WHEN 70 + + 71 THEN - 31 * + 32 * + - CAST( NULL AS SIGNED ) + - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL ( - 82 ) * CASE 35 WHEN 70 + + 71 THEN - 31 * + 32 * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT - 2 * + + 34 * - 50 AS col1
----
3400

query I rowsort
SELECT - 72 + + 66 + 98 * + - 34 * - ( + - 93 ) AS col1
----
-309882

onlyif mysql # aggregate syntax: 
query II rowsort label-3240
SELECT + 81 / CASE - + 75 WHEN - - 58 THEN NULL WHEN + ( - 67 ) THEN - 78 * - + ( - COALESCE ( - 96, + 36 ) ) + + 1 WHEN 9 * + ( + COUNT( * ) ) + - + 18 THEN - 4 * + 27 ELSE NULL END + - + 73 + + + COUNT( + 39 ) + + 89 * - ( - 93 ) AS col0, 44 * - - 3 + - - COUNT( * ) AS col0
----
NULL
133

skipif mysql # not compatible
query II rowsort label-3240
SELECT + 81 / CASE - + 75 WHEN - - 58 THEN NULL WHEN + ( - 67 ) THEN - 78 * - + ( - COALESCE ( - 96, + 36 ) ) + + 1 WHEN 9 * + ( + COUNT ( * ) ) + - + 18 THEN - 4 * + 27 ELSE NULL END + - + 73 + + + COUNT ( + 39 ) + + 89 * - ( - 93 ) AS col0, 44 * - - 3 + - - COUNT ( * ) AS col0
----
NULL
133

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

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

query I rowsort
SELECT ALL - ( - - 79 ) + + + 2 AS col0
----
-77

query I rowsort
SELECT DISTINCT 4 + - 80
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3244
SELECT - COALESCE ( + 42, + 52 DIV + - 50 * + 13 ) + 64 DIV COALESCE ( - 48, + ( - + 28 ) )
----
-43

skipif mysql # not compatible
query I rowsort label-3244
SELECT - COALESCE ( + 42, + 52 / + - 50 * + 13 ) + 64 / COALESCE ( - 48, + ( - + 28 ) )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT DISTINCT 17 + - COUNT( * ) * + - 55 + + NULLIF ( 80, + + 22 )
----
152

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT 17 + - COUNT ( * ) * + - 55 + + NULLIF ( 80, + + 22 )
----
152

query I rowsort
SELECT DISTINCT + 86 + 30
----
116

onlyif mysql # DIV for integer division: 
query I rowsort label-3247
SELECT ALL - - 92 + + 42 DIV + - 56
----
92

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - - 92 + + 42 / + - 56
----
92

query I rowsort
SELECT - 18 - + - 51 col0
----
33

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT + COUNT( * ) + - CASE - + 41 WHEN + + 93 + + CAST( - 12 AS SIGNED ) * - 49 * ( + ( + 67 ) ) + + 56 THEN - - CASE + 7 WHEN 93 THEN - 41 - COUNT( * ) / - - NULLIF ( MIN( ALL - - 59 ), - 20 * - - 76 + 27 * 46 / + 57 + + 32 * - 16 ) END * - ( COUNT( * ) ) END + + 43 - + 78 + 90 / 48 * + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT + COUNT ( * ) + - CASE - + 41 WHEN + + 93 + + CAST ( - 12 AS INTEGER ) * - 49 * ( + ( + 67 ) ) + + 56 THEN - - CASE + 7 WHEN 93 THEN - 41 - COUNT ( * ) / - - NULLIF ( MIN ( ALL - - 59 ), - 20 * - - 76 + 27 * 46 / + 57 + + 32 * - 16 ) END * - ( COUNT ( * ) ) END + + 43 - + 78 + 90 / 48 * + 35
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3252
SELECT 28 DIV - - 90
----
0

skipif mysql # not compatible
query I rowsort label-3252
SELECT 28 / - - 90
----
0

query I rowsort
SELECT ALL + ( - 3 ) - + - 75
----
72

query I rowsort
SELECT 99 * COALESCE ( - 43, - 78 ) * - + CASE + + 19 WHEN ( + 62 ) THEN - - 58 WHEN - - 73 THEN + + 35 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 18 * + 83 * + - 36 * + 81 - + + 98 - - + 68
----
-4356534

query I rowsort
SELECT 18 - - 42 - + 98 AS col2
----
-38

query I rowsort
SELECT ALL + 46 * 17 - COALESCE ( 58, - 78 )
----
724

query I rowsort
SELECT 24 * - 18
----
-432

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3259
SELECT ALL - CASE - 51 WHEN + - NULLIF ( 83, - CAST( NULL AS DECIMAL ) + + 85 ) THEN + + 63 * - + 20 WHEN + 58 + - 73 THEN NULL END AS col0, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3259
SELECT ALL - CASE - 51 WHEN + - NULLIF ( 83, - CAST ( NULL AS REAL ) + + 85 ) THEN + + 63 * - + 20 WHEN + 58 + - 73 THEN NULL END AS col0, COUNT ( * )
----
NULL
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3261
SELECT 37 / CAST( NULL AS SIGNED ) * - 26 + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3261
SELECT 37 / CAST ( NULL AS INTEGER ) * - 26 + 93 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT 43 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-3262
SELECT 43 / 98
----
0

query I rowsort
SELECT 14 * + 99 AS col2
----
1386

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3264
SELECT + 36 DIV 48 * + + COUNT( * ) - + 79 + - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3264
SELECT + 36 / 48 * + + COUNT ( * ) - + 79 + - + COUNT ( * )
----
-80

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

skipif mysql # not compatible
query I rowsort label-3265
SELECT ALL - CAST ( NULL AS INTEGER ) / 29 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3266
SELECT ALL - 56 DIV + 89 * + 62 * - + 12 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT ALL - 56 / + 89 * + 62 * - + 12 AS col2
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( - - ( - + ( + 70 ) ), - 18 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3268
SELECT DISTINCT + 28 AS col2, NULLIF ( - - 45, 97 ) * CASE - - 56 WHEN + 58 THEN + CAST( NULL AS SIGNED ) - - 44 WHEN - + 15 / 75 - COUNT( * ) + - 33 THEN + - 47 END + COALESCE ( - + 7, - COUNT( * ) + AVG ( + 84 ), - + 52 ) AS col2
----
28
NULL

skipif mysql # not compatible
query II rowsort label-3268
SELECT DISTINCT + 28 AS col2, NULLIF ( - - 45, 97 ) * CASE - - 56 WHEN + 58 THEN + CAST ( NULL AS INTEGER ) - - 44 WHEN - + 15 / 75 - COUNT ( * ) + - 33 THEN + - 47 END + COALESCE ( - + 7, - COUNT ( * ) + AVG ( + 84 ), - + 52 ) AS col2
----
28
NULL

query I rowsort
SELECT ALL + - 41 + - 21 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT + COALESCE ( + 38, + COUNT( * ) + + 14 + + 19 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-3270
SELECT + COALESCE ( + 38, + COUNT ( * ) + + 14 + + 19 ) AS col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3271
SELECT CAST( 53 AS SIGNED ) * + + 49 + MIN( ALL + ( + 8 ) ) AS col0
----
2605

skipif mysql # not compatible
query I rowsort label-3271
SELECT CAST ( 53 AS INTEGER ) * + + 49 + MIN ( ALL + ( + 8 ) ) AS col0
----
2605

query I rowsort
SELECT ALL + 72 + + 82
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - CASE COUNT( * ) WHEN + 75 THEN - 64 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT - CASE COUNT ( * ) WHEN + 75 THEN - 64 ELSE NULL END
----
NULL

query I rowsort
SELECT + - ( + 9 ) * - NULLIF ( + 89, + 90 * 40 )
----
801

query II rowsort
SELECT - 44, - 36 * - NULLIF ( 1, - 8 / - 16 + 12 + - 1 ) AS col1
----
-44
36

query II rowsort
SELECT DISTINCT 55 AS col0, - 76 AS col2
----
55
-76

query I rowsort
SELECT ALL + + 36 + - 23
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL - 48 DIV - + 55
----
0

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - 48 / - + 55
----
0

query I rowsort
SELECT + 36 + - - 20 + - 15 + + - 80 + 1
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT DISTINCT ( - + CASE WHEN - NULLIF ( COALESCE ( + - COUNT( + 76 ), - - 10 * - COALESCE ( - + 96, - + 42 ) ), + 83 ) >= - - 23 THEN NULL ELSE 94 END ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT ( - + CASE WHEN - NULLIF ( COALESCE ( + - COUNT ( + 76 ), - - 10 * - COALESCE ( - + 96, - + 42 ) ), + 83 ) >= - - 23 THEN NULL ELSE 94 END ) AS col2
----
-94

query I rowsort
SELECT ALL 89 + + 93 AS col0
----
182

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT ALL 33 DIV + 14 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL 33 / + 14 AS col2
----
2

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

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

query I rowsort
SELECT + + ( - - 97 ) - 73
----
24

query I rowsort
SELECT + - 7 + 58 col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3288
SELECT + - COUNT( * ) + CAST( 30 AS SIGNED ) + - 29 * 96 AS col2, 98 AS col2
----
-2755
98

skipif mysql # not compatible
query II rowsort label-3288
SELECT + - COUNT ( * ) + CAST ( 30 AS INTEGER ) + - 29 * 96 AS col2, 98 AS col2
----
-2755
98

query I rowsort
SELECT + 90 + + + 35 AS col0
----
125

query I rowsort
SELECT DISTINCT 25 * - 74
----
-1850

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT ALL MAX( + 64 ) * COUNT( * ) - 4 AS col1, - 66 + + ( - COUNT( * ) ) * - CASE - - 73 WHEN 44 THEN - 21 * + 52 WHEN + + 14 THEN - ( + + 38 ) END col2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-3291
SELECT ALL MAX ( + 64 ) * COUNT ( * ) - 4 AS col1, - 66 + + ( - COUNT ( * ) ) * - CASE - - 73 WHEN 44 THEN - 21 * + 52 WHEN + + 14 THEN - ( + + 38 ) END col2
----
60
NULL

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

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

query I rowsort
SELECT + 54 + + - 17 + + 19
----
56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + MAX( DISTINCT - 68 ) - 14 col0
----
-82

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + MAX ( DISTINCT - 68 ) - 14 col0
----
-82

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3297
SELECT ALL 98 col1, - 85 * + - 3 / CASE - + COUNT( * ) WHEN 76 - 94 * + CAST( - + 14 AS SIGNED ) THEN + 98 * 53 END + 10 col1, 63 * 4 AS col1
----
98
NULL
252

skipif mysql # not compatible
query III rowsort label-3297
SELECT ALL 98 col1, - 85 * + - 3 / CASE - + COUNT ( * ) WHEN 76 - 94 * + CAST ( - + 14 AS INTEGER ) THEN + 98 * 53 END + 10 col1, 63 * 4 AS col1
----
98
NULL
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3298
SELECT + 60 + + COUNT( * ) + + - 44 * + + 16 * - - 70 * + ( CAST( + 20 AS SIGNED ) ) * + 52 + - 86 - + 99 AS col1
----
-51251324

skipif mysql # not compatible
query I rowsort label-3298
SELECT + 60 + + COUNT ( * ) + + - 44 * + + 16 * - - 70 * + ( CAST ( + 20 AS INTEGER ) ) * + 52 + - 86 - + 99 AS col1
----
-51251324

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3299
SELECT CAST( MAX( ALL + - 77 ) AS SIGNED ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3299
SELECT CAST ( MAX ( ALL + - 77 ) AS INTEGER ) AS col2
----
-77

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

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

query I rowsort
SELECT + 12 * 23 AS col1
----
276

query I rowsort
SELECT - 18 * - + 90 col2
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT 24 * + COUNT( * ) * COUNT( * ) * + SUM( ALL - 29 ) + 27
----
-669

skipif mysql # not compatible
query I rowsort label-3303
SELECT 24 * + COUNT ( * ) * COUNT ( * ) * + SUM ( ALL - 29 ) + 27
----
-669

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT - 51 * + - MIN( + 94 ) * - + 36 + + 61
----
-172523

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - 51 * + - MIN ( + 94 ) * - + 36 + + 61
----
-172523

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT ALL 70 DIV - 35 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3305
SELECT ALL 70 / - 35 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT - 82 + - ( - + COUNT( * ) ) * - + 22 AS col1
----
-104

skipif mysql # not compatible
query I rowsort label-3306
SELECT - 82 + - ( - + COUNT ( * ) ) * - + 22 AS col1
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT ALL + MIN( 22 ) AS col1, 64
----
22
64

skipif mysql # not compatible
query II rowsort label-3307
SELECT ALL + MIN ( 22 ) AS col1, 64
----
22
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3308
SELECT DISTINCT 5 * + - 41 AS col1, 8 - + - 95 DIV - 89
----
-205
7

skipif mysql # not compatible
query II rowsort label-3308
SELECT DISTINCT 5 * + - 41 AS col1, 8 - + - 95 / - 89
----
-205
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT - - 57 + - - COUNT( * ) * 53 col1
----
110

skipif mysql # not compatible
query I rowsort label-3309
SELECT - - 57 + - - COUNT ( * ) * 53 col1
----
110

query I rowsort
SELECT ALL + 64 * - - 48 + + + 33 AS col1
----
3105

onlyif mysql # DIV for integer division: 
query I rowsort label-3311
SELECT + 84 * + 81 * 16 + 32 + + + 65 DIV - 58 + 31
----
108926

skipif mysql # not compatible
query I rowsort label-3311
SELECT + 84 * + 81 * 16 + 32 + + + 65 / - 58 + 31
----
108926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT - - NULLIF ( COUNT( * ), + CAST( NULL AS SIGNED ) / + COALESCE ( + 83, - - 22, - 96 / + + ( + 26 ), CAST( NULL AS SIGNED ) ) - + 79 - + + COUNT( + 84 ) ) * + 73
----
73

skipif mysql # not compatible
query I rowsort label-3312
SELECT - - NULLIF ( COUNT ( * ), + CAST ( NULL AS INTEGER ) / + COALESCE ( + 83, - - 22, - 96 / + + ( + 26 ), CAST ( NULL AS INTEGER ) ) - + 79 - + + COUNT ( + 84 ) ) * + 73
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3313
SELECT + + COALESCE ( 30, - 78 * + 71 * CASE + - 82 WHEN + SUM( + 69 ) * 99 * COALESCE ( + ( - + 92 ), - 21 ) / - - COALESCE ( + 88, - 64 ) - - 11 THEN + - 26 WHEN - + 70 THEN - 31 ELSE 65 * 88 * - SUM( - 86 ) END ) AS col0, + ( + - 98 ) AS col2
----
30
-98

skipif mysql # not compatible
query II rowsort label-3313
SELECT + + COALESCE ( 30, - 78 * + 71 * CASE + - 82 WHEN + SUM ( + 69 ) * 99 * COALESCE ( + ( - + 92 ), - 21 ) / - - COALESCE ( + 88, - 64 ) - - 11 THEN + - 26 WHEN - + 70 THEN - 31 ELSE 65 * 88 * - SUM ( - 86 ) END ) AS col0, + ( + - 98 ) AS col2
----
30
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3314
SELECT - MAX( ALL - 34 ) * - - CAST( NULL AS SIGNED ) / + COUNT( * ), - 61 AS col2
----
NULL
-61

skipif mysql # not compatible
query II rowsort label-3314
SELECT - MAX ( ALL - 34 ) * - - CAST ( NULL AS INTEGER ) / + COUNT ( * ), - 61 AS col2
----
NULL
-61

query I rowsort
SELECT + 63 * 35 + + 50 * 64
----
5405

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT - 10 DIV - + 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT - 10 / - + 80 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT ALL 13 * + 63 * - 93 + + - 59 + 12 * + - 90 + - + 45 DIV + 87
----
-77306

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL 13 * + 63 * - 93 + + - 59 + 12 * + - 90 + - + 45 / + 87
----
-77306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT + - 13 * + CAST( 33 AS SIGNED ) + - MAX( 44 ) + + ( - - 22 ) * + + 55 AS col2
----
737

skipif mysql # not compatible
query I rowsort label-3318
SELECT + - 13 * + CAST ( 33 AS INTEGER ) + - MAX ( 44 ) + + ( - - 22 ) * + + 55 AS col2
----
737

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL MIN( - - ( + 45 ) ) * 97 + - 86 + - 61
----
4218

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL MIN ( - - ( + 45 ) ) * 97 + - 86 + - 61
----
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT ALL + - ( 72 ) DIV + 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3320
SELECT ALL + - ( 72 ) / + 67 AS col1
----
-1

query I rowsort
SELECT DISTINCT - - 89 * - 82 + 24
----
-7274

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT - COUNT( * ) AS col0, - 70 + + - 53 AS col0
----
-1
-123

skipif mysql # not compatible
query II rowsort label-3322
SELECT - COUNT ( * ) AS col0, - 70 + + - 53 AS col0
----
-1
-123

query I rowsort
SELECT ALL 21 * + 23 * + 61 + + + 15 * + + 67 * - 60
----
-30837

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

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

query I rowsort
SELECT ALL COALESCE ( 62, + 54 ) AS col2
----
62

query I rowsort
SELECT - ( - - ( 69 ) ) AS col1
----
-69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3327
SELECT ALL - 55 * 22 * 92 - CAST( NULL AS SIGNED ) + + CAST( + 9 AS DECIMAL ) + + 16 * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL - 55 * 22 * 92 - CAST ( NULL AS INTEGER ) + + CAST ( + 9 AS REAL ) + + 16 * 71
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3328
SELECT ( COALESCE ( + 67, CAST( NULL AS SIGNED ) + - 70 DIV CASE - COALESCE ( - + 10, + 65 ) WHEN AVG ( ALL - 72 ) THEN 85 ELSE NULL END, + - 43 ) ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-3328
SELECT ( COALESCE ( + 67, CAST ( NULL AS INTEGER ) + - 70 / CASE - COALESCE ( - + 10, + 65 ) WHEN AVG ( ALL - 72 ) THEN 85 ELSE NULL END, + - 43 ) ) AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3329
SELECT DISTINCT CAST( NULLIF ( - + MIN( - 8 ), 51 ) AS SIGNED ) AS col1, 26 AS col2
----
8
26

skipif mysql # not compatible
query II rowsort label-3329
SELECT DISTINCT CAST ( NULLIF ( - + MIN ( - 8 ), 51 ) AS INTEGER ) AS col1, 26 AS col2
----
8
26

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

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT COUNT ( * ) / + 72 * - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3331
SELECT + 48 DIV COUNT( + 81 )
----
48

skipif mysql # not compatible
query I rowsort label-3331
SELECT + 48 / COUNT ( + 81 )
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - 19 + 40 * + + COUNT( * ) * + NULLIF ( - 68, + ( - NULLIF ( + 27, + 31 + + 82 + + - 86 * COUNT( * ) * 15 + 15 + + 33 * 11 ) ) ) * - - 46
----
-125139

skipif mysql # not compatible
query I rowsort label-3333
SELECT - 19 + 40 * + + COUNT ( * ) * + NULLIF ( - 68, + ( - NULLIF ( + 27, + 31 + + 82 + + - 86 * COUNT ( * ) * 15 + 15 + + 33 * 11 ) ) ) * - - 46
----
-125139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3334
SELECT - CASE - 5 WHEN - 21 THEN + + COUNT( * ) * + CAST( NULL AS SIGNED ) ELSE ( CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3334
SELECT - CASE - 5 WHEN - 21 THEN + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ELSE ( CAST ( NULL AS INTEGER ) ) END
----
NULL

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

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

query I rowsort
SELECT ALL NULLIF ( - ( - 63 ), 86 * - ( - 43 ) / - - ( - 34 ) ) * - 91
----
-5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT - COALESCE ( 35, + 76 + + + 62 + - 80, - 97 ) DIV + COALESCE ( - ( - COUNT( * ) ), 83, - 35 + - 46 DIV 99 * - 44 ) + + 32 - - - 31 col2
----
-34

skipif mysql # not compatible
query I rowsort label-3337
SELECT - COALESCE ( 35, + 76 + + + 62 + - 80, - 97 ) / + COALESCE ( - ( - COUNT ( * ) ), 83, - 35 + - 46 / 99 * - 44 ) + + 32 - - - 31 col2
----
-34

query I rowsort
SELECT DISTINCT 29 + - - 99 col1
----
128

query I rowsort
SELECT ALL 64 + + 99 * + 27 * - 85 AS col1
----
-227141

query I rowsort
SELECT DISTINCT 99 + 31 + + 29
----
159

query II rowsort
SELECT DISTINCT 81 + 7 AS col1, 7 AS col0
----
88
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3342
SELECT ALL - CASE COALESCE ( - - CAST( NULL AS SIGNED ), - - SUM( + - 83 ), - 59 * - 38 + 72 + + ( - 20 ) ) WHEN 64 / + - 52 * - + 3 + + 80 THEN 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL - CASE COALESCE ( - - CAST ( NULL AS INTEGER ), - - SUM ( + - 83 ), - 59 * - 38 + 72 + + ( - 20 ) ) WHEN 64 / + - 52 * - + 3 + + 80 THEN 24 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT - NULLIF ( + 23, + 67 ) * + + 57 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3343
SELECT - NULLIF ( + 23, + 67 ) * + + 57 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - ( 76 ) + - 38 + SUM( DISTINCT 19 ) + + - ( 95 )
----
-190

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - ( 76 ) + - 38 + SUM ( DISTINCT 19 ) + + - ( 95 )
----
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT 70 * - + SUM( - COALESCE ( - + 11, 38, - + 60 ) ) AS col0
----
-770

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT 70 * - + SUM ( - COALESCE ( - + 11, 38, - + 60 ) ) AS col0
----
-770

query I rowsort
SELECT DISTINCT - 62 - + 26
----
-88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3348
SELECT 58 DIV - + 32, 92 * ( - SUM( DISTINCT 26 ) ) col0
----
-1
-2392

skipif mysql # not compatible
query II rowsort label-3348
SELECT 58 / - + 32, 92 * ( - SUM ( DISTINCT 26 ) ) col0
----
-1
-2392

query II rowsort
SELECT + 7 + + 44 * 89, - 75 col2
----
3923
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3350
SELECT ALL + 5 DIV + CAST( + - 9 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + 5 / + CAST ( + - 9 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT ALL + + CAST( 75 AS SIGNED ) - + 37 * 39 + 57
----
-1311

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + + CAST ( 75 AS INTEGER ) - + 37 * 39 + 57
----
-1311

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT 15 * + + CASE + 66 WHEN - COUNT( * ) THEN NULL WHEN - - 90 THEN - ( - 62 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT 15 * + + CASE + 66 WHEN - COUNT ( * ) THEN NULL WHEN - - 90 THEN - ( - 62 ) END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 16 ) * 50 AS col0
----
800

query II rowsort
SELECT ALL 31 col0, + 72 - - - 52 * 20 AS col2
----
31
-968

query I rowsort
SELECT 8 + - - 31
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT 43 + COUNT( - 22 ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3356
SELECT 43 + COUNT ( - 22 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL - 69 * ( MIN( ALL + - 20 ) ) col2
----
1380

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - 69 * ( MIN ( ALL + - 20 ) ) col2
----
1380

query I rowsort
SELECT 14 * COALESCE ( 12, 21 )
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT DISTINCT - ( COUNT( * ) ) * + 87 AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-3359
SELECT DISTINCT - ( COUNT ( * ) ) * + 87 AS col0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT ALL + 96 + CAST( NULL AS SIGNED ) + + 96 + 16 * - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + 96 + CAST ( NULL AS INTEGER ) + + 96 + 16 * - 2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT ALL + ( - ( 96 ) ) * + COUNT( DISTINCT + 85 ) + + COUNT( DISTINCT - 77 ) + + - CAST( - + SUM( ALL 3 ) AS SIGNED )
----
-92

skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL + ( - ( 96 ) ) * + COUNT ( DISTINCT + 85 ) + + COUNT ( DISTINCT - 77 ) + + - CAST ( - + SUM ( ALL 3 ) AS INTEGER )
----
-92

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

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

query I rowsort
SELECT 43 + - + 90
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3364
SELECT ALL - CAST( + + 10 AS SIGNED ) + - - 25 AS col0, - COUNT( DISTINCT + 77 )
----
15
-1

skipif mysql # not compatible
query II rowsort label-3364
SELECT ALL - CAST ( + + 10 AS INTEGER ) + - - 25 AS col0, - COUNT ( DISTINCT + 77 )
----
15
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3365
SELECT ALL 53 DIV 49 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL 53 / 49 AS col0
----
1

query II rowsort
SELECT ALL + ( 57 ) + - 93 AS col2, 0 * - - 6 * + - 39 * 57 AS col1
----
-36
0

query I rowsort
SELECT ALL - 79 + - - 44 AS col1
----
-35

query II rowsort
SELECT + 19 col1, + 58 AS col0
----
19
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3369
SELECT DISTINCT 58 + - + CAST( NULL AS SIGNED ) - + 7 * + + 22 - - ( - ( - 21 ) ) * - 4 - AVG ( - 32 ) + COUNT( + 15 ) * - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT 58 + - + CAST ( NULL AS INTEGER ) - + 7 * + + 22 - - ( - ( - 21 ) ) * - 4 - AVG ( - 32 ) + COUNT ( + 15 ) * - 65
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT ALL 17 DIV 88 * + + 20 * + 73 * - + 40 col0
----
0

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL 17 / 88 * + + 20 * + 73 * - + 40 col0
----
0

query II rowsort
SELECT DISTINCT - 16 AS col0, COALESCE ( - 85, - + 65 + + 78 )
----
-16
-85

query I rowsort
SELECT DISTINCT - 74 + - - 15 AS col1
----
-59

query I rowsort
SELECT ALL + 16 * - 11 AS col2
----
-176

query I rowsort
SELECT ALL - + 55 * 91 AS col1
----
-5005

query I rowsort
SELECT DISTINCT - + NULLIF ( - 66, - COALESCE ( + 1, - 59 ) )
----
66

query II rowsort
SELECT - 24, 68 col1
----
-24
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT - - 11 * + - 54 * - 86 + MAX( DISTINCT + 33 )
----
51117

skipif mysql # not compatible
query I rowsort label-3377
SELECT - - 11 * + - 54 * - 86 + MAX ( DISTINCT + 33 )
----
51117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3378
SELECT ALL - MAX( ALL - + 81 ) - COUNT( * ) AS col1, + 46 * CASE - - 42 WHEN - CAST( NULL AS SIGNED ) + 75 THEN COALESCE ( - 63, + 6 * + 85 ) END
----
80
NULL

skipif mysql # not compatible
query II rowsort label-3378
SELECT ALL - MAX ( ALL - + 81 ) - COUNT ( * ) AS col1, + 46 * CASE - - 42 WHEN - CAST ( NULL AS INTEGER ) + 75 THEN COALESCE ( - 63, + 6 * + 85 ) END
----
80
NULL

query II rowsort
SELECT ALL - 52 AS col0, - 85 col2
----
-52
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT - COUNT( * ) + SUM( ALL + - 1 ) * 12 - + 39 * + - 68 - + - 26
----
2665

skipif mysql # not compatible
query I rowsort label-3380
SELECT - COUNT ( * ) + SUM ( ALL + - 1 ) * 12 - + 39 * + - 68 - + - 26
----
2665

query I rowsort
SELECT 42 * - - 46 + + + 64
----
1996

query I rowsort
SELECT 85 + + 58
----
143

query II rowsort
SELECT DISTINCT - 44, - 38 * - 24 AS col0
----
-44
912

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT DISTINCT - ( - + 80 ) DIV - - 2 + - - 67 AS col2
----
107

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - ( - + 80 ) / - - 2 + - - 67 AS col2
----
107

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

skipif mysql # not compatible
query I rowsort label-3385
SELECT 95 / 80
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3386
SELECT ( COALESCE ( - ( ( - 90 ) ), - + 7 ) ) * + 81 * + 23 * 2 * + - COALESCE ( - ( - + 13 ), + ( + COALESCE ( 15, - CAST( NULL AS SIGNED ) * - COUNT( * ) * - + 23 ) ) DIV + 41, ( - 79 ) DIV 57 )
----
-4359420

skipif mysql # not compatible
query I rowsort label-3386
SELECT ( COALESCE ( - ( ( - 90 ) ), - + 7 ) ) * + 81 * + 23 * 2 * + - COALESCE ( - ( - + 13 ), + ( + COALESCE ( 15, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - + 23 ) ) / + 41, ( - 79 ) / 57 )
----
-4359420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3387
SELECT CAST( NULL AS SIGNED ) / - - 78 * + - 48 * 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3387
SELECT CAST ( NULL AS INTEGER ) / - - 78 * + - 48 * 91 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3388
SELECT DISTINCT - 64 + - - CAST( NULL AS SIGNED ) / - 99 * - COUNT( * ) + + 45 + - 78 * 98 + - CASE 13 WHEN 71 - 92 * - 40 THEN + + 11 END * 62 * + 30 * SUM( DISTINCT - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT - 64 + - - CAST ( NULL AS INTEGER ) / - 99 * - COUNT ( * ) + + 45 + - 78 * 98 + - CASE 13 WHEN 71 - 92 * - 40 THEN + + 11 END * 62 * + 30 * SUM ( DISTINCT - 33 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT DISTINCT COUNT( * ) + + ( + + 35 ) - + 58 + + 46 + - + 23 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3389
SELECT DISTINCT COUNT ( * ) + + ( + + 35 ) - + 58 + + 46 + - + 23 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3390
SELECT DISTINCT + 92 + + 23 + CASE 69 WHEN + - 47 THEN + COUNT( * ) * + ( + NULLIF ( - NULLIF ( - ( + 71 ), - - 18 + - - 85 ), + 81 + - 80 ) ) WHEN + 44 THEN NULL END + + + 89 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT + 92 + + 23 + CASE 69 WHEN + - 47 THEN + COUNT ( * ) * + ( + NULLIF ( - NULLIF ( - ( + 71 ), - - 18 + - - 85 ), + 81 + - 80 ) ) WHEN + 44 THEN NULL END + + + 89 * CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT ALL CASE + 50 WHEN + 13 THEN - COUNT( * ) WHEN - 1 / - + ( 93 ) + 23 * + COUNT( * ) - - 60 + + 17 THEN - + SUM( + 4 ) - + - 73 - + 26 * - + 97 WHEN 15 - - - 18 THEN + 58 ELSE + + MAX( 53 ) + + COUNT( * ) + - COALESCE ( - CAST( NULL AS SIGNED ), - 2 + - MIN( - 27 ), + COUNT( * ) - + COUNT( * ) + CASE + 82 WHEN - 76 THEN NULL WHEN - CASE 65 WHEN + 5 * ( + 67 * + 64 ) THEN NULL WHEN + 90 / + 50 THEN COALESCE ( - 9, + 20 ) END * 92 THEN 82 END ) * - 24 END AS col1
----
654

skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL CASE + 50 WHEN + 13 THEN - COUNT ( * ) WHEN - 1 / - + ( 93 ) + 23 * + COUNT ( * ) - - 60 + + 17 THEN - + SUM ( + 4 ) - + - 73 - + 26 * - + 97 WHEN 15 - - - 18 THEN + 58 ELSE + + MAX ( 53 ) + + COUNT ( * ) + - COALESCE ( - CAST ( NULL AS INTEGER ), - 2 + - MIN ( - 27 ), + COUNT ( * ) - + COUNT ( * ) + CASE + 82 WHEN - 76 THEN NULL WHEN - CASE 65 WHEN + 5 * ( + 67 * + 64 ) THEN NULL WHEN + 90 / + 50 THEN COALESCE ( - 9, + 20 ) END * 92 THEN 82 END ) * - 24 END AS col1
----
654

query II rowsort
SELECT DISTINCT + 20 * + - 98 AS col1, 48
----
-1960
48

query I rowsort
SELECT DISTINCT - 65 + + 88 * - + 3 * 15 * + 29 + - 55 AS col1
----
-114960

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

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

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

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 6 + COUNT ( * ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3396
SELECT ALL NULLIF ( - + 34, - 0 + + 22 ) AS col2, 15 * + COUNT( * ) * COALESCE ( 37, - 21 ) AS col2
----
-34
555

skipif mysql # not compatible
query II rowsort label-3396
SELECT ALL NULLIF ( - + 34, - 0 + + 22 ) AS col2, 15 * + COUNT ( * ) * COALESCE ( 37, - 21 ) AS col2
----
-34
555

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT DISTINCT - 66 + + - 70 DIV - COUNT( * ) col1
----
4

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT - 66 + + - 70 / - COUNT ( * ) col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT - - CASE + 95 WHEN + COUNT( * ) THEN NULL ELSE SUM( ALL 99 ) + - 18 END col2
----
81

skipif mysql # not compatible
query I rowsort label-3398
SELECT - - CASE + 95 WHEN + COUNT ( * ) THEN NULL ELSE SUM ( ALL 99 ) + - 18 END col2
----
81

query I rowsort
SELECT DISTINCT + 87 * 63 AS col2
----
5481

query I rowsort
SELECT + - 39 col1
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT + - 86 DIV 61 + 48 * 78 * 45 * - 95
----
-16005601

skipif mysql # not compatible
query I rowsort label-3401
SELECT + - 86 / 61 + 48 * 78 * 45 * - 95
----
-16005601

query I rowsort
SELECT + 0 * 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COALESCE ( COUNT( * ), - 33 * + 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COALESCE ( COUNT ( * ), - 33 * + 53 ) AS col2
----
1

query I rowsort
SELECT - + 49 * 21
----
-1029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3405
SELECT ALL - 38 * CASE + + 71 WHEN + 29 THEN NULL WHEN + - COALESCE ( + 70, - + COUNT( * ) / + - ( + CASE - 35 WHEN + - 55 / CAST( + 13 AS SIGNED ) THEN NULL ELSE + + 24 * + ( CASE - 61 WHEN - 42 THEN NULL ELSE 96 / 73 END ) * + 9 - - 76 END ) ) + AVG ( ALL + 80 ) * + + CAST( 21 AS SIGNED ) THEN 88 ELSE NULL END + + 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - 38 * CASE + + 71 WHEN + 29 THEN NULL WHEN + - COALESCE ( + 70, - + COUNT ( * ) / + - ( + CASE - 35 WHEN + - 55 / CAST ( + 13 AS INTEGER ) THEN NULL ELSE + + 24 * + ( CASE - 61 WHEN - 42 THEN NULL ELSE 96 / 73 END ) * + 9 - - 76 END ) ) + AVG ( ALL + 80 ) * + + CAST ( 21 AS INTEGER ) THEN 88 ELSE NULL END + + 10 AS col2
----
NULL

query I rowsort
SELECT - 76 - NULLIF ( + + 32, + 68 ) AS col0
----
-108

query I rowsort
SELECT DISTINCT 15 * 22
----
330

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

query I rowsort
SELECT ALL - 26 * - 71 + + 60 + 63 * + 76
----
6694

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3410
SELECT 78 * - - COUNT( * ) + 11 AS col2, SUM( + + CAST( NULL AS DECIMAL ) ) AS col2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-3410
SELECT 78 * - - COUNT ( * ) + 11 AS col2, SUM ( + + CAST ( NULL AS REAL ) ) AS col2
----
89
NULL

query I rowsort
SELECT - 60 * + 22 * + 8 + - 60
----
-10620

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT + COALESCE ( + 97, SUM( + 20 ) - + 33 ) * - + ( + 77 )
----
-7469

skipif mysql # not compatible
query I rowsort label-3412
SELECT + COALESCE ( + 97, SUM ( + 20 ) - + 33 ) * - + ( + 77 )
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ALL - COUNT( * ) * 90 + - - 2 + - 9
----
-97

skipif mysql # not compatible
query I rowsort label-3413
SELECT ALL - COUNT ( * ) * 90 + - - 2 + - 9
----
-97

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3415
SELECT ALL + CAST( 72 AS SIGNED ) * 88 DIV CASE + - 85 WHEN 76 THEN NULL WHEN + 88 THEN NULL ELSE + 67 END + + 23 * + 8 + + + 7 + 30 * + 9
----
555

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL + CAST ( 72 AS INTEGER ) * 88 / CASE + - 85 WHEN 76 THEN NULL WHEN + 88 THEN NULL ELSE + 67 END + + 23 * + 8 + + + 7 + 30 * + 9
----
555

query I rowsort
SELECT + 90 + - 44 AS col1
----
46

query II rowsort
SELECT ALL 38 AS col0, 80 AS col2
----
38
80

query II rowsort
SELECT ALL 90 AS col2, 66
----
90
66

query I rowsort
SELECT ALL 77 * + 97 * + + 28 AS col0
----
209132

query I rowsort
SELECT + 18 + + 35 + - 78 AS col2
----
-25

query I rowsort
SELECT + 30 * - + 23
----
-690

query I rowsort
SELECT - 36 * 85 AS col2
----
-3060

query I rowsort
SELECT ALL 41 * 74 AS col0
----
3034

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

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

query I rowsort
SELECT - 6 * 55
----
-330

onlyif mysql # DIV for integer division: 
query I rowsort label-3426
SELECT ALL + 16 - + + 35 - - - 98 DIV 88 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3426
SELECT ALL + 16 - + + 35 - - - 98 / 88 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3427
SELECT DISTINCT - 62 DIV - - 12
----
-5

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT - 62 / - - 12
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3428
SELECT ALL CASE + - CAST( NULL AS SIGNED ) WHEN + CASE - SUM( ALL + 18 ) WHEN + + COUNT( * ) THEN - - 15 * + 31 WHEN - - COUNT( * ) THEN - 83 * - - COALESCE ( + - CAST( NULL AS SIGNED ), 26, AVG ( + + 81 ) ) ELSE NULL END * 58 - COUNT( * ) / + 31 * - 27 * COUNT( * ) THEN MIN( + 48 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL CASE + - CAST ( NULL AS INTEGER ) WHEN + CASE - SUM ( ALL + 18 ) WHEN + + COUNT ( * ) THEN - - 15 * + 31 WHEN - - COUNT ( * ) THEN - 83 * - - COALESCE ( + - CAST ( NULL AS INTEGER ), 26, AVG ( + + 81 ) ) ELSE NULL END * 58 - COUNT ( * ) / + 31 * - 27 * COUNT ( * ) THEN MIN ( + 48 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 52 + + - 90 AS col1
----
-142

onlyif mysql # DIV for integer division: 
query I rowsort label-3430
SELECT ALL - 83 DIV - 61
----
1

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL - 83 / - 61
----
1

query I rowsort
SELECT ALL 32 - + - 22
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3432
SELECT DISTINCT + MAX( DISTINCT - ( + 74 ) ) / + 60 - + COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT DISTINCT + MAX ( DISTINCT - ( + 74 ) ) / + 60 - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT + + 2 + + 1 + - - 71 + - + 91 * SUM( ALL + - 82 ) AS col2
----
7536

skipif mysql # not compatible
query I rowsort label-3433
SELECT + + 2 + + 1 + - - 71 + - + 91 * SUM ( ALL + - 82 ) AS col2
----
7536

query I rowsort
SELECT - COALESCE ( - + 27, - + COALESCE ( 19, + - 91 * - - 98 * + + 42 ) + - 41 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + - 28 + - + 13 * + NULLIF ( - MIN( - 94 ), + + MAX( + - 37 ) + - 34 - 63 / 46 + - 32 + + - 50 )
----
-1250

skipif mysql # not compatible
query I rowsort label-3435
SELECT + - 28 + - + 13 * + NULLIF ( - MIN ( - 94 ), + + MAX ( + - 37 ) + - 34 - 63 / 46 + - 32 + + - 50 )
----
-1250

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

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

query I rowsort
SELECT ALL + 42 * - 89
----
-3738

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3439
SELECT ALL - + COUNT( - + 61 ) * COALESCE ( 44, - + MIN( - - 7 ) DIV + - 94 - + - COUNT( 31 ) * - + 78 * COUNT( * ) + + 23 * 4, COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL - + COUNT ( - + 61 ) * COALESCE ( 44, - + MIN ( - - 7 ) / + - 94 - + - COUNT ( 31 ) * - + 78 * COUNT ( * ) + + 23 * 4, COUNT ( * ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT SUM( DISTINCT + 12 ) DIV - 59 + + - ( - - 45 ) + + - 32 + + 41 * + COUNT( * ) + 58
----
22

skipif mysql # not compatible
query I rowsort label-3440
SELECT SUM ( DISTINCT + 12 ) / - 59 + + - ( - - 45 ) + + - 32 + + 41 * + COUNT ( * ) + 58
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT ALL - CASE 39 WHEN MIN( 60 ) * - + 79 THEN NULL WHEN + 27 THEN ( + 75 ) WHEN 40 / NULLIF ( + 96, + 70 * + 41 ) THEN - 69 ELSE - - 88 END * 12
----
-1056

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL - CASE 39 WHEN MIN ( 60 ) * - + 79 THEN NULL WHEN + 27 THEN ( + 75 ) WHEN 40 / NULLIF ( + 96, + 70 * + 41 ) THEN - 69 ELSE - - 88 END * 12
----
-1056

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3443
SELECT - - 37 DIV 84 DIV 52 + - 26 + 59 * - + SUM( 79 ) AS col2
----
-4687

skipif mysql # not compatible
query I rowsort label-3443
SELECT - - 37 / 84 / 52 + - 26 + 59 * - + SUM ( 79 ) AS col2
----
-4687

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT - - 26 * - + ( 5 ) * COUNT( * ) AS col2
----
-130

skipif mysql # not compatible
query I rowsort label-3444
SELECT - - 26 * - + ( 5 ) * COUNT ( * ) AS col2
----
-130

query I rowsort
SELECT ALL - 10 + ( - 81 ) AS col0
----
-91

query I rowsort
SELECT 24 * + 12 * + + 76 AS col2
----
21888

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT ALL + CASE - + 69 WHEN - 85 THEN - + MAX( 44 ) WHEN - SUM( - 23 ) THEN + 73 * + 69 ELSE NULL END + 57 * - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT ALL + CASE - + 69 WHEN - 85 THEN - + MAX ( 44 ) WHEN - SUM ( - 23 ) THEN + 73 * + 69 ELSE NULL END + 57 * - - 62
----
NULL

query I rowsort
SELECT DISTINCT 43 + + CASE - + 77 WHEN - 44 + 68 * 22 THEN + + 91 END / 42 * - 89 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 2 * + 91 AS col1
----
182

onlyif mysql # DIV for integer division: 
query II rowsort label-3450
SELECT 43 DIV - 38 col0, + 99 + ( - ( 95 ) )
----
-1
4

skipif mysql # not compatible
query II rowsort label-3450
SELECT 43 / - 38 col0, + 99 + ( - ( 95 ) )
----
-1
4

query II rowsort
SELECT ALL - NULLIF ( - + 27, + 88 ) + 59 AS col1, + 10
----
86
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3452
SELECT DISTINCT 95 + + ( - + 4 ) + + + 58 DIV - NULLIF ( + 42, - MAX( ALL 4 ) ) + - + 88 * - 70 * + ( + + 35 ) AS col2, - 35 + + 11, + 36 AS col1
----
215690
-24
36

skipif mysql # not compatible
query III rowsort label-3452
SELECT DISTINCT 95 + + ( - + 4 ) + + + 58 / - NULLIF ( + 42, - MAX ( ALL 4 ) ) + - + 88 * - 70 * + ( + + 35 ) AS col2, - 35 + + 11, + 36 AS col1
----
215690
-24
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT DISTINCT - 92 * - 29 * 61 * - NULLIF ( + - 16, + ( 49 ) / - 28 ) * + + SUM( - 21 ) AS col2
----
-54683328

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - 92 * - 29 * 61 * - NULLIF ( + - 16, + ( 49 ) / - 28 ) * + + SUM ( - 21 ) AS col2
----
-54683328

query I rowsort
SELECT ALL + ( + 31 ) * - NULLIF ( - + 13, 96 ) * - 84 + + 14 + + COALESCE ( 60, - 13 ) * + - 26 * - + 7 col2
----
-22918

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT 33 DIV + 19
----
1

skipif mysql # not compatible
query I rowsort label-3455
SELECT 33 / + 19
----
1

query II rowsort
SELECT 70, 70
----
70
70

query II rowsort
SELECT ALL 48, + 6 AS col2
----
48
6

query I rowsort
SELECT DISTINCT 59 - - - 78 col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-3459
SELECT - 4 AS col0, + 33 - + SUM( ALL - + ( - 58 ) )
----
-4
-25

skipif mysql # not compatible
query II rowsort label-3459
SELECT - 4 AS col0, + 33 - + SUM ( ALL - + ( - 58 ) )
----
-4
-25

query I rowsort
SELECT ALL 94 - + 11
----
83

query II rowsort
SELECT DISTINCT 8, 39 AS col0
----
8
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT 68 - - COUNT( DISTINCT + 6 ) * - 60
----
8

skipif mysql # not compatible
query I rowsort label-3462
SELECT 68 - - COUNT ( DISTINCT + 6 ) * - 60
----
8

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

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

query I rowsort
SELECT ALL 58 - + ( + 25 )
----
33

query II rowsort
SELECT - 70 col2, 27
----
-70
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3466
SELECT 80, 14 * ( - 5 ) - - 63 * + + COUNT( * ) AS col0
----
80
-7

skipif mysql # not compatible
query II rowsort label-3466
SELECT 80, 14 * ( - 5 ) - - 63 * + + COUNT ( * ) AS col0
----
80
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3467
SELECT DISTINCT - 50, CAST( - SUM( ALL + 89 ) AS SIGNED ) + - + NULLIF ( - + COUNT( * ), 38 * 74 ) col1
----
-50
-88

skipif mysql # not compatible
query II rowsort label-3467
SELECT DISTINCT - 50, CAST ( - SUM ( ALL + 89 ) AS INTEGER ) + - + NULLIF ( - + COUNT ( * ), 38 * 74 ) col1
----
-50
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3468
SELECT ALL - 37 * 55 * - COUNT( * ) + + 23 + + 33 AS col2
----
2091

skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL - 37 * 55 * - COUNT ( * ) + + 23 + + 33 AS col2
----
2091

query I rowsort
SELECT DISTINCT + 4 * - 69 - 97
----
-373

query I rowsort
SELECT 1 * + 23 * + 33
----
759

query I rowsort
SELECT - 91 + 52 AS col0
----
-39

query I rowsort
SELECT 47 * 83 * 6
----
23406

query I rowsort
SELECT ALL 5 * - 1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT DISTINCT ( - COUNT( ALL - 69 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT ( - COUNT ( ALL - 69 ) ) AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - + 47 / - 28 * + COUNT ( * ) AS col0
----
1

query I rowsort
SELECT 70 * - - 3 col0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + MIN( - 39 ) + 89
----
50

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + MIN ( - 39 ) + 89
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT 47 * + 19 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT 47 * + 19 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - ( + ( 23 ) ) * - 58 + - 71
----
1263

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL - - COALESCE ( 7, 39 * - 17 + - 11 - + + NULLIF ( - CASE + - 95 WHEN + 18 - - - ( - SUM( + 47 ) ) THEN NULL WHEN 91 + + 81 THEN + COUNT( * ) END, - 42 * 81 + - COUNT( * ) ) - + + 44 ) + - - 69
----
76

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - - COALESCE ( 7, 39 * - 17 + - 11 - + + NULLIF ( - CASE + - 95 WHEN + 18 - - - ( - SUM ( + 47 ) ) THEN NULL WHEN 91 + + 81 THEN + COUNT ( * ) END, - 42 * 81 + - COUNT ( * ) ) - + + 44 ) + - - 69
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT COALESCE ( + 54, + 96 + + - 59 + - 69 DIV COUNT( * ) * 48 + 98 + - 4, + 70 ) + - 55 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT COALESCE ( + 54, + 96 + + - 59 + - 69 / COUNT ( * ) * 48 + 98 + - 4, + 70 ) + - 55 AS col2
----
-1

query II rowsort
SELECT ALL - ( - - 6 ) AS col1, 76 AS col2
----
-6
76

query I rowsort
SELECT DISTINCT - 24 * - NULLIF ( - 5, 12 ) * 96 * 98 AS col1
----
-1128960

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL - 79 - - + 38 + SUM( ALL 76 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL - 79 - - + 38 + SUM ( ALL 76 ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT 33 + 8 + CASE - COUNT( * ) WHEN 97 + - 40 - + 92 THEN + + 42 WHEN + 23 * + - 65 THEN + COUNT( * ) * MIN( ALL - ( + 90 ) ) + 78 - + 73 END * - - 63 * ( 98 ) * + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3485
SELECT 33 + 8 + CASE - COUNT ( * ) WHEN 97 + - 40 - + 92 THEN + + 42 WHEN + 23 * + - 65 THEN + COUNT ( * ) * MIN ( ALL - ( + 90 ) ) + 78 - + 73 END * - - 63 * ( 98 ) * + - 34
----
NULL

query I rowsort
SELECT 78 - + 19 col0
----
59

query I rowsort
SELECT ALL - 79 - 62
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT 52 + + + 19 DIV + 48 * - 86
----
52

skipif mysql # not compatible
query I rowsort label-3488
SELECT 52 + + + 19 / + 48 * - 86
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-3489
SELECT ALL - 16 - - 7 AS col2, ( - 79 ) * - + 58 + - + 33 * - COUNT( * ) + + + 27 * - 33 * + - 75 - - ( 72 )
----
-9
71512

skipif mysql # not compatible
query II rowsort label-3489
SELECT ALL - 16 - - 7 AS col2, ( - 79 ) * - + 58 + - + 33 * - COUNT ( * ) + + + 27 * - 33 * + - 75 - - ( 72 )
----
-9
71512

query II rowsort
SELECT DISTINCT + 61 * NULLIF ( - ( 0 ), - + 47 ) AS col0, - 57
----
0
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL + ( + 73 ) DIV + ( 96 )
----
0

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + ( + 73 ) / + ( 96 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT ALL 88 * MAX( + 29 )
----
2552

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL 88 * MAX ( + 29 )
----
2552

query I rowsort
SELECT ALL 47 * + 31
----
1457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3494
SELECT DISTINCT + 62 * SUM( - 86 ) DIV 53
----
-100

skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT + 62 * SUM ( - 86 ) / 53
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT MAX( DISTINCT + 14 ) + + - 96 + + 21 * + + 77
----
1535

skipif mysql # not compatible
query I rowsort label-3495
SELECT MAX ( DISTINCT + 14 ) + + - 96 + + 21 * + + 77
----
1535

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

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

query II rowsort
SELECT ALL - 89 * - - 25, + 69 + - ( 55 ) * + - 87 * + ( - - 68 ) AS col0
----
-2225
325449

query I rowsort
SELECT 24 * + + 22 + + 9
----
537

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT ALL + 25 + + MAX( ALL - + 10 ) - + - 90 + - 65 + - 72 * + 45 - ( + ( - 52 ) ) * - 97 * + 59
----
-300796

skipif mysql # not compatible
query I rowsort label-3499
SELECT ALL + 25 + + MAX ( ALL - + 10 ) - + - 90 + - 65 + - 72 * + 45 - ( + ( - 52 ) ) * - 97 * + 59
----
-300796

query I rowsort
SELECT DISTINCT - + 78 + - 84 AS col0
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-3501
SELECT MAX( ALL - 50 ) AS col0, - 97
----
-50
-97

skipif mysql # not compatible
query II rowsort label-3501
SELECT MAX ( ALL - 50 ) AS col0, - 97
----
-50
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT + SUM( + - 26 ) * + - 49 AS col2
----
1274

skipif mysql # not compatible
query I rowsort label-3502
SELECT + SUM ( + - 26 ) * + - 49 AS col2
----
1274

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL 95 + - 66 * + COUNT( * ) - - 58 * - 0 * - - 2 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL 95 + - 66 * + COUNT ( * ) - - 58 * - 0 * - - 2 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-3504
SELECT ALL NULLIF ( - - 85, - 92 * + 95 * + 21 ) col1, + COUNT( * ) AS col0
----
85
1

skipif mysql # not compatible
query II rowsort label-3504
SELECT ALL NULLIF ( - - 85, - 92 * + 95 * + 21 ) col1, + COUNT ( * ) AS col0
----
85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT ALL 39 + - - MIN( ALL - 22 )
----
17

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL 39 + - - MIN ( ALL - 22 )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT 72 + - SUM( - 61 )
----
133

skipif mysql # not compatible
query I rowsort label-3506
SELECT 72 + - SUM ( - 61 )
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-3507
SELECT 16 - CASE - + 90 WHEN + 63 THEN NULL WHEN + 30 * + + 57 * + 83 / + - 32 * + + CASE - COUNT( * ) WHEN - 34 THEN 72 * + 75 - - 72 / - 49 WHEN MIN( + 38 ) * 58 THEN - + 88 + NULLIF ( - 95, - - COUNT( * ) ) + COUNT( * ) * + 61 ELSE 67 END THEN COUNT( * ) END + + 75 * + 47 AS col0, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-3507
SELECT 16 - CASE - + 90 WHEN + 63 THEN NULL WHEN + 30 * + + 57 * + 83 / + - 32 * + + CASE - COUNT ( * ) WHEN - 34 THEN 72 * + 75 - - 72 / - 49 WHEN MIN ( + 38 ) * 58 THEN - + 88 + NULLIF ( - 95, - - COUNT ( * ) ) + COUNT ( * ) * + 61 ELSE 67 END THEN COUNT ( * ) END + + 75 * + 47 AS col0, 2
----
NULL
2

query I rowsort
SELECT + 22 + 62
----
84

query I rowsort
SELECT + 92 + - - 17 + - 26 AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3510
SELECT ALL - + 91 * COUNT( * ) + + 83 + - 73 - - + 92 + + 62 DIV + + 68 * - 14 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - + 91 * COUNT ( * ) + + 83 + - 73 - - + 92 + + 62 / + + 68 * - 14 AS col0
----
11

query I rowsort
SELECT + 7 * + 80 + + ( + 77 ) AS col1
----
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3512
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 84 + + - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 84 + + - 26 AS col1
----
NULL

query II rowsort
SELECT ALL + 1 * + 90 - 44, + 21 col1
----
46
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3514
SELECT ALL + 82, CAST( - 2 AS SIGNED ) AS col0
----
82
-2

skipif mysql # not compatible
query II rowsort label-3514
SELECT ALL + 82, CAST ( - 2 AS INTEGER ) AS col0
----
82
-2

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

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

query I rowsort
SELECT ALL 22 * - + 26 - - 78 * - 86 AS col1
----
-7280

query II rowsort
SELECT - ( 53 ) * + 64 * COALESCE ( - 14, - 69 * - 72 * - - 43 + 78, 70 ) * - 6, - 99 AS col0
----
-284928
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3518
SELECT ALL 59 * - COUNT( DISTINCT + 96 ) - 53 + + 29 + + 64 * ( + 15 ) AS col0, MIN( + COALESCE ( + 1, 74 + 0, + 12 ) )
----
877
1

skipif mysql # not compatible
query II rowsort label-3518
SELECT ALL 59 * - COUNT ( DISTINCT + 96 ) - 53 + + 29 + + 64 * ( + 15 ) AS col0, MIN ( + COALESCE ( + 1, 74 + 0, + 12 ) )
----
877
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT + COALESCE ( + - COUNT( * ), + 93 * + 3 * + + 68 + - + 30 + + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-3519
SELECT + COALESCE ( + - COUNT ( * ), + 93 * + 3 * + + 68 + - + 30 + + 18 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3520
SELECT + 1 * 55 DIV 30 * 5
----
5

skipif mysql # not compatible
query I rowsort label-3520
SELECT + 1 * 55 / 30 * 5
----
5

query I rowsort
SELECT DISTINCT - 75 * 4
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT 24 * + COUNT( * ) * - 64 col1
----
-1536

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT 24 * + COUNT ( * ) * - 64 col1
----
-1536

query II rowsort
SELECT ALL + 3 AS col0, + 67 AS col1
----
3
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3525
SELECT ALL - COUNT( - 30 ) + + + CAST( + - ( ( - + 24 ) ) AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL - COUNT ( - 30 ) + + + CAST ( + - ( ( - + 24 ) ) AS INTEGER )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3526
SELECT - - 16 * + MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) * + - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3526
SELECT - - 16 * + MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + - 23
----
NULL

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

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

query II rowsort
SELECT - + 8, 43 AS col1
----
-8
43

query I rowsort
SELECT ALL + 94 + NULLIF ( 0, - + 20 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT - - COUNT( * ) * + 73 col2
----
73

skipif mysql # not compatible
query I rowsort label-3530
SELECT - - COUNT ( * ) * + 73 col2
----
73

query I rowsort
SELECT - 97 + 12 + - 69 + - 51 * + 41 * 63
----
-131887

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3532
SELECT DISTINCT - + 63 + CAST( NULL AS DECIMAL ) + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT DISTINCT - + 63 + CAST ( NULL AS REAL ) + 6 AS col0
----
NULL

query II rowsort
SELECT DISTINCT 67 AS col1, + ( + - NULLIF ( - 55, ( 65 ) - 9 ) )
----
67
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3534
SELECT 13 AS col2, + COUNT( * ) + COUNT( * ) + + CASE + 24 WHEN + CASE - 13 WHEN 44 THEN 93 + - + COUNT( * ) END - 49 - 25 THEN NULL ELSE - CAST( NULL AS SIGNED ) END
----
13
NULL

skipif mysql # not compatible
query II rowsort label-3534
SELECT 13 AS col2, + COUNT ( * ) + COUNT ( * ) + + CASE + 24 WHEN + CASE - 13 WHEN 44 THEN 93 + - + COUNT ( * ) END - 49 - 25 THEN NULL ELSE - CAST ( NULL AS INTEGER ) END
----
13
NULL

query I rowsort
SELECT - 14 * - 35 AS col1
----
490

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

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

query I rowsort
SELECT - 56 * - - 64 + 1 AS col2
----
-3583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3538
SELECT + CASE 62 WHEN - + 56 / 71 + + COUNT( * ) THEN NULLIF ( + 42, - ( 92 ) + - + CAST( NULL AS SIGNED ) ) WHEN + 79 THEN NULL END * + + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT + CASE 62 WHEN - + 56 / 71 + + COUNT ( * ) THEN NULLIF ( + 42, - ( 92 ) + - + CAST ( NULL AS INTEGER ) ) WHEN + 79 THEN NULL END * + + 82 col0
----
NULL

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

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

query I rowsort
SELECT ( - COALESCE ( 46, + 63 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + MIN( + + 90 ) - + 42 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3541
SELECT + MIN ( + + 90 ) - + 42 AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3542
SELECT ALL - COUNT( * ) DIV 90 AS col2, + 86
----
0
86

skipif mysql # not compatible
query II rowsort label-3542
SELECT ALL - COUNT ( * ) / 90 AS col2, + 86
----
0
86

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3544
SELECT + CAST( CASE + SUM( DISTINCT - 7 ) WHEN - 67 * - - 20 * + 71 + - 25 THEN + 43 * - 1 END AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3544
SELECT + CAST ( CASE + SUM ( DISTINCT - 7 ) WHEN - 67 * - - 20 * + 71 + - 25 THEN + 43 * - 1 END AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3545
SELECT + 6 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3545
SELECT + 6 / - 63 AS col1
----
0

query I rowsort
SELECT ALL 42 * + 31 + + 27 - 89 * - 80 + 16 col0
----
8465

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3547
SELECT + 17 + + 96 * - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1, + 7 * + 85
----
NULL
595

skipif mysql # not compatible
query II rowsort label-3547
SELECT + 17 + + 96 * - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1, + 7 * + 85
----
NULL
595

query I rowsort
SELECT - 23 - + 20 * + NULLIF ( - 9, + 16 )
----
157

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

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL 29 / - 33
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT - 99 - + CASE + 51 WHEN 47 THEN - ( + - 83 ) * - COUNT( * ) + - ( + + 42 ) + - 43 END * + 68 + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT - 99 - + CASE + 51 WHEN 47 THEN - ( + - 83 ) * - COUNT ( * ) + - ( + + 42 ) + - 43 END * + 68 + 59 AS col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3552
SELECT - 17 * - CAST( 33 AS SIGNED )
----
561

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 17 * - CAST ( 33 AS INTEGER )
----
561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT DISTINCT - 32 * - CAST( + 25 AS SIGNED ) + + COALESCE ( - 58, + 44 + 5 ) AS col0
----
742

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT - 32 * - CAST ( + 25 AS INTEGER ) + + COALESCE ( - 58, + 44 + 5 ) AS col0
----
742

query I rowsort
SELECT ALL + 15 * - 21 + + 75
----
-240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3555
SELECT ALL + 79 * MIN( - 42 ) * 15 * + 64 + - 53 + + 59 + 58 * - - COUNT( * ) DIV + 96 + - 23
----
-3185297

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + 79 * MIN ( - 42 ) * 15 * + 64 + - 53 + + 59 + 58 * - - COUNT ( * ) / + 96 + - 23
----
-3185297

query I rowsort
SELECT - 15 + - 23
----
-38

query I rowsort
SELECT DISTINCT + 81 * - 61
----
-4941

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT - - NULLIF ( - 69, + CAST( NULL AS SIGNED ) + + 94 * - - 17 ) * - + 62 + - - 84 - - COUNT( + 95 ) * + 52 * - - 32 + 88 AS col1
----
6114

skipif mysql # not compatible
query I rowsort label-3558
SELECT - - NULLIF ( - 69, + CAST ( NULL AS INTEGER ) + + 94 * - - 17 ) * - + 62 + - - 84 - - COUNT ( + 95 ) * + 52 * - - 32 + 88 AS col1
----
6114

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL - + COUNT( * ) * + + COUNT( * ) * - + 6 + - 40 + - 2 + + - COALESCE ( - ( 8 ), + 19, + + 24 + COUNT( * ) ) - 41 + - + 99 * - COUNT( * ) * 90 AS col2
----
8841

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - + COUNT ( * ) * + + COUNT ( * ) * - + 6 + - 40 + - 2 + + - COALESCE ( - ( 8 ), + 19, + + 24 + COUNT ( * ) ) - 41 + - + 99 * - COUNT ( * ) * 90 AS col2
----
8841

query I rowsort
SELECT + + 43 + + 11
----
54

query I rowsort
SELECT DISTINCT + + 11 + + 22
----
33

query I rowsort
SELECT ALL NULLIF ( + 84, + + 14 * + + 87 )
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3563
SELECT + 95 DIV 38 + + - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3563
SELECT + 95 / 38 + + - COUNT ( * ) AS col2
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT DISTINCT MIN( + - 58 ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT MIN ( + - 58 ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - 16 - - 21 AS col1
----
5

query I rowsort
SELECT ALL - - 94 * + 11
----
1034

query I rowsort
SELECT + 67 * + 64
----
4288

query I rowsort
SELECT 4 + + 92 AS col2
----
96

query I rowsort
SELECT DISTINCT - 47 - - - 21
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3572
SELECT 20 AS col1, - 73 - - 25 + CAST( NULL AS SIGNED ) AS col2
----
20
NULL

skipif mysql # not compatible
query II rowsort label-3572
SELECT 20 AS col1, - 73 - - 25 + CAST ( NULL AS INTEGER ) AS col2
----
20
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3573
SELECT 84 * - 36 + - + 69 AS col1, - COALESCE ( - - COUNT( * ), - COUNT( * ) ) AS col2, + 93 AS col2
----
-3093
-1
93

skipif mysql # not compatible
query III rowsort label-3573
SELECT 84 * - 36 + - + 69 AS col1, - COALESCE ( - - COUNT ( * ), - COUNT ( * ) ) AS col2, + 93 AS col2
----
-3093
-1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3574
SELECT SUM( + + 99 ) * - CAST( NULL AS SIGNED ) + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT SUM ( + + 99 ) * - CAST ( NULL AS INTEGER ) + 89 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3575
SELECT + 39 DIV + 76 + 46
----
46

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 39 / + 76 + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT CASE + - NULLIF ( 6, 12 ) WHEN - - 43 THEN NULLIF ( + + 29, - COUNT( * ) ) ELSE NULL END * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3576
SELECT CASE + - NULLIF ( 6, 12 ) WHEN - - 43 THEN NULLIF ( + + 29, - COUNT ( * ) ) ELSE NULL END * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL + 57 + COUNT( 87 ) + - + 96 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + 57 + COUNT ( 87 ) + - + 96 AS col0
----
-38

query II rowsort
SELECT DISTINCT - COALESCE ( 56, + 70, - - 38 * - 36, 99 ) AS col1, 91 AS col2
----
-56
91

query I rowsort
SELECT ALL 88 + 92 col1
----
180

query I rowsort
SELECT 77 * + 63 AS col1
----
4851

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT 58 DIV + 52 + NULLIF ( + 10, - - 36 * - + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-3581
SELECT 58 / + 52 + NULLIF ( + 10, - - 36 * - + COUNT ( * ) )
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3582
SELECT COALESCE ( SUM( 81 ), + + 1 DIV CAST( NULL AS SIGNED ) ) + + 35 * 98
----
3511

skipif mysql # not compatible
query I rowsort label-3582
SELECT COALESCE ( SUM ( 81 ), + + 1 / CAST ( NULL AS INTEGER ) ) + + 35 * 98
----
3511

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT ALL - ( - - MAX( DISTINCT + ( + 90 ) ) ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-3583
SELECT ALL - ( - - MAX ( DISTINCT + ( + 90 ) ) ) AS col2
----
-90

query I rowsort
SELECT ALL 58 + - 93
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT 2 * + - CAST( ( 15 ) AS SIGNED ) * + 25 * + + 86 * + 83 AS col0
----
-5353500

skipif mysql # not compatible
query I rowsort label-3585
SELECT 2 * + - CAST ( ( 15 ) AS INTEGER ) * + 25 * + + 86 * + 83 AS col0
----
-5353500

query I rowsort
SELECT DISTINCT - 27 + + + 50 col1
----
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT - + 31 * CAST( - 5 AS SIGNED ) + 41 + - 69 + - - 28 - 31
----
124

skipif mysql # not compatible
query I rowsort label-3588
SELECT - + 31 * CAST ( - 5 AS INTEGER ) + 41 + - 69 + - - 28 - 31
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - CASE + 49 WHEN + COUNT( - 75 ) * - - 87 - 74 THEN NULL WHEN + + 59 + 62 * + + COUNT( * ) THEN - - ( + ( 60 ) ) WHEN + COUNT( * ) * + - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3589
SELECT - CASE + 49 WHEN + COUNT ( - 75 ) * - - 87 - 74 THEN NULL WHEN + + 59 + 62 * + + COUNT ( * ) THEN - - ( + ( 60 ) ) WHEN + COUNT ( * ) * + - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT - 73, 52 * + 41 AS col2
----
-73
2132

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT + 49 DIV 20 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 49 / 20 AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3592
SELECT 70 * - + 31 * - CAST( NULL AS SIGNED ) / AVG ( - 54 ) * + 17 - 97 - - 32 * 90 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3592
SELECT 70 * - + 31 * - CAST ( NULL AS INTEGER ) / AVG ( - 54 ) * + 17 - 97 - - 32 * 90 * + - COUNT ( * )
----
NULL

query I rowsort
SELECT - 58 + + - 15
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL COALESCE ( - ( + 53 ), - COUNT( * ) ) - + + 35 AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL COALESCE ( - ( + 53 ), - COUNT ( * ) ) - + + 35 AS col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT ALL - SUM( - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-3595
SELECT ALL - SUM ( - 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3596
SELECT - + MAX( ALL 50 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3596
SELECT - + MAX ( ALL 50 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT ALL COUNT( DISTINCT - + ( + COALESCE ( 29, 33 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3597
SELECT ALL COUNT ( DISTINCT - + ( + COALESCE ( 29, 33 ) ) )
----
1

query I rowsort
SELECT ALL - 76 * + 74
----
-5624

query II rowsort
SELECT ALL 36 AS col1, - 43
----
36
-43

query I rowsort
SELECT - 60 + - 3 + + ( 5 ) AS col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3601
SELECT + 65 DIV COUNT( * ) * + + 74
----
4810

skipif mysql # not compatible
query I rowsort label-3601
SELECT + 65 / COUNT ( * ) * + + 74
----
4810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3602
SELECT 81 - + + 1 + + + 85 + + - 62 + + 68 + 43 * - COALESCE ( - 37, - MAX( ALL 49 ) ) * - + COUNT( * ) + + - 2 * COALESCE ( + 30, 3 DIV - 7 ) + - + CAST( - - 38 AS SIGNED ) * 59 * - COUNT( * )
----
762

skipif mysql # not compatible
query I rowsort label-3602
SELECT 81 - + + 1 + + + 85 + + - 62 + + 68 + 43 * - COALESCE ( - 37, - MAX ( ALL 49 ) ) * - + COUNT ( * ) + + - 2 * COALESCE ( + 30, 3 / - 7 ) + - + CAST ( - - 38 AS INTEGER ) * 59 * - COUNT ( * )
----
762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3603
SELECT ALL - 34 * MIN( DISTINCT + CAST( + + 89 AS SIGNED ) ) * 44
----
-133144

skipif mysql # not compatible
query I rowsort label-3603
SELECT ALL - 34 * MIN ( DISTINCT + CAST ( + + 89 AS INTEGER ) ) * 44
----
-133144

query II rowsort
SELECT 5, - 21 AS col2
----
5
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3605
SELECT 68 * + - 9, + 89 * + COUNT( * ) * + - 88 * - + COUNT( ALL + 1 ) col1
----
-612
7832

skipif mysql # not compatible
query II rowsort label-3605
SELECT 68 * + - 9, + 89 * + COUNT ( * ) * + - 88 * - + COUNT ( ALL + 1 ) col1
----
-612
7832

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ALL MIN( + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL MIN ( + 98 ) AS col1
----
98

query I rowsort
SELECT ALL + 89 + + 33 AS col1
----
122

query II rowsort
SELECT + 42 AS col0, + 53 AS col2
----
42
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + 9 * NULLIF ( + + MIN( ALL + - 40 ), 61 - + 91 ) + 35 AS col0
----
-325

skipif mysql # not compatible
query I rowsort label-3609
SELECT + 9 * NULLIF ( + + MIN ( ALL + - 40 ), 61 - + 91 ) + 35 AS col0
----
-325

onlyif mysql # aggregate syntax: 
query I rowsort label-3610
SELECT ALL + 53 * ( + SUM( DISTINCT + - ( - 15 ) ) )
----
795

skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL + 53 * ( + SUM ( DISTINCT + - ( - 15 ) ) )
----
795

onlyif mysql # aggregate syntax: 
query II rowsort label-3611
SELECT ALL - COUNT( * ) AS col2, - 24 * 94 * + + 14 + - 25
----
-1
-31609

skipif mysql # not compatible
query II rowsort label-3611
SELECT ALL - COUNT ( * ) AS col2, - 24 * 94 * + + 14 + - 25
----
-1
-31609

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT 77 DIV + 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3612
SELECT 77 / + 86 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT 12 DIV - 43 * + + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3613
SELECT 12 / - 43 * + + 32 AS col1
----
0

query I rowsort
SELECT 83 * 28 AS col2
----
2324

query I rowsort
SELECT 22 * + + 30
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT ALL + 61 * - 19 * 84 + SUM( DISTINCT - - 28 )
----
-97328

skipif mysql # not compatible
query I rowsort label-3616
SELECT ALL + 61 * - 19 * 84 + SUM ( DISTINCT - - 28 )
----
-97328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3617
SELECT 93 - + + COUNT( * ) DIV + 31 * + ( - - 21 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-3617
SELECT 93 - + + COUNT ( * ) / + 31 * + ( - - 21 ) AS col0
----
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT 2 - - COUNT( DISTINCT + 38 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-3619
SELECT 2 - - COUNT ( DISTINCT + 38 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3620
SELECT ALL - 77, COUNT( * ) * + SUM( ALL 81 ) AS col0
----
-77
81

skipif mysql # not compatible
query II rowsort label-3620
SELECT ALL - 77, COUNT ( * ) * + SUM ( ALL 81 ) AS col0
----
-77
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL 83 * - + COUNT( * ) * + + COUNT( * ) * - MAX( - - 91 ) * + 98 + + 33 + - COUNT( * ) AS col1
----
740226

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL 83 * - + COUNT ( * ) * + + COUNT ( * ) * - MAX ( - - 91 ) * + 98 + + 33 + - COUNT ( * ) AS col1
----
740226

query II rowsort
SELECT + 20, - 98 * - + 58 col0
----
20
5684

query I rowsort
SELECT 16 + + 59
----
75

query II rowsort
SELECT ALL + - 76, 14 * - - 59 AS col0
----
-76
826

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + 86 * - 21 * + - 61 + COUNT( * ) col2
----
110167

skipif mysql # not compatible
query I rowsort label-3625
SELECT + 86 * - 21 * + - 61 + COUNT ( * ) col2
----
110167

query I rowsort
SELECT + 20 - - 13 AS col0
----
33

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3628
SELECT - COUNT( - - 98 ) AS col2, - 26 AS col2
----
-1
-26

skipif mysql # not compatible
query II rowsort label-3628
SELECT - COUNT ( - - 98 ) AS col2, - 26 AS col2
----
-1
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3629
SELECT + - CAST( - - COUNT( * ) AS SIGNED ) * - ( - + ( + MIN( ALL - 85 ) ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-3629
SELECT + - CAST ( - - COUNT ( * ) AS INTEGER ) * - ( - + ( + MIN ( ALL - 85 ) ) ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT + + 2 + - 60 DIV - ( 5 ) + - 95 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3630
SELECT + + 2 + - 60 / - ( 5 ) + - 95 AS col1
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3631
SELECT DISTINCT - 6 col1, 57 DIV + + ( + 22 )
----
-6
2

skipif mysql # not compatible
query II rowsort label-3631
SELECT DISTINCT - 6 col1, 57 / + + ( + 22 )
----
-6
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3632
SELECT ALL NULLIF ( CAST( - ( - 79 ) AS SIGNED ), SUM( ALL 15 ) )
----
79

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL NULLIF ( CAST ( - ( - 79 ) AS INTEGER ), SUM ( ALL 15 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT + 22 * MIN( - 33 ) AS col0
----
-726

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 22 * MIN ( - 33 ) AS col0
----
-726

query II rowsort
SELECT ALL 25 AS col2, 13 AS col1
----
25
13

query II rowsort
SELECT - - 57 AS col1, - 9 + - 84 col1
----
57
-93

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3637
SELECT + CAST( - 10 AS SIGNED ) + COUNT( * ) * - COUNT( * ) * + 61 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-3637
SELECT + CAST ( - 10 AS INTEGER ) + COUNT ( * ) * - COUNT ( * ) * + 61 AS col0
----
-71

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

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

query I rowsort
SELECT DISTINCT - 39 * + + 74
----
-2886

query I rowsort
SELECT DISTINCT 25 + - 79 + - 3
----
-57

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3642
SELECT + 54 + + 1 DIV MAX( - 66 ) DIV - 41 AS col2, CASE + COALESCE ( - - 47, + ( 69 ) * + COUNT( * ) + - + 5 - 25 * + + 1, - NULLIF ( + NULLIF ( - 65, + 92 ), - 22 ) * + + 19 + - 90 ) WHEN 76 + + 5 THEN - 87 WHEN + - 41 THEN + 5 + + + CASE - - ( - 41 ) WHEN 81 THEN - 92 WHEN COUNT( DISTINCT - 4 ) THEN NULL ELSE NULL END END * + - CAST( 91 AS SIGNED ) + CAST( - - MIN( ALL 43 ) AS SIGNED ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-3642
SELECT + 54 + + 1 / MAX ( - 66 ) / - 41 AS col2, CASE + COALESCE ( - - 47, + ( 69 ) * + COUNT ( * ) + - + 5 - 25 * + + 1, - NULLIF ( + NULLIF ( - 65, + 92 ), - 22 ) * + + 19 + - 90 ) WHEN 76 + + 5 THEN - 87 WHEN + - 41 THEN + 5 + + + CASE - - ( - 41 ) WHEN 81 THEN - 92 WHEN COUNT ( DISTINCT - 4 ) THEN NULL ELSE NULL END END * + - CAST ( 91 AS INTEGER ) + CAST ( - - MIN ( ALL 43 ) AS INTEGER ) AS col0
----
54
NULL

query II rowsort
SELECT ALL 60 + - 35 AS col0, - 59 AS col2
----
25
-59

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

skipif mysql # not compatible
query I rowsort label-3644
SELECT - ( - ( - - MIN ( ALL - 43 ) ) )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-3645
SELECT ALL MIN( DISTINCT - 55 ), 84 + 28 - CASE - COUNT( * ) WHEN 50 + - AVG ( 62 ) + - 82 + 45 + MAX( DISTINCT + - NULLIF ( - - 36, - 76 + - 89 ) ) * 77 THEN NULL ELSE + COUNT( * ) * - 43 END - + - 23 * 0 col0
----
-55
155

skipif mysql # not compatible
query II rowsort label-3645
SELECT ALL MIN ( DISTINCT - 55 ), 84 + 28 - CASE - COUNT ( * ) WHEN 50 + - AVG ( 62 ) + - 82 + 45 + MAX ( DISTINCT + - NULLIF ( - - 36, - 76 + - 89 ) ) * 77 THEN NULL ELSE + COUNT ( * ) * - 43 END - + - 23 * 0 col0
----
-55
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT DISTINCT - 12 + COUNT( * ) + + 20 * - - NULLIF ( + 40, - + 11 * - + 60 + - 20 + + + 32 / - CASE - 66 WHEN + 30 + 32 * + + ( 25 ) - + + 95 THEN - + 61 WHEN 65 * + 59 THEN + 43 + ( + 5 ) + - ( 65 ) * + 13 ELSE - 21 + 35 END * SUM( ALL + 3 ) + - 54 + + 41 - 35 / - ( 61 ) + + ( - CAST( ( + 69 ) AS SIGNED ) ) )
----
789

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - 12 + COUNT ( * ) + + 20 * - - NULLIF ( + 40, - + 11 * - + 60 + - 20 + + + 32 / - CASE - 66 WHEN + 30 + 32 * + + ( 25 ) - + + 95 THEN - + 61 WHEN 65 * + 59 THEN + 43 + ( + 5 ) + - ( 65 ) * + 13 ELSE - 21 + 35 END * SUM ( ALL + 3 ) + - 54 + + 41 - 35 / - ( 61 ) + + ( - CAST ( ( + 69 ) AS INTEGER ) ) )
----
789

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT + CASE + 83 WHEN - 82 + - 86 + + 51 + 96 + - 6 * + 18 THEN NULL WHEN NULLIF ( - 64, - 33 ) THEN 34 / - + 68 END * + MIN( DISTINCT - 90 ) + + 35 + + COUNT( * ) + - 37 * + 84 * + 99 * - COUNT( * ) / SUM( + + 34 ) + + NULLIF ( - + 59, + 13 + 89 ) + - - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-3648
SELECT + CASE + 83 WHEN - 82 + - 86 + + 51 + 96 + - 6 * + 18 THEN NULL WHEN NULLIF ( - 64, - 33 ) THEN 34 / - + 68 END * + MIN ( DISTINCT - 90 ) + + 35 + + COUNT ( * ) + - 37 * + 84 * + 99 * - COUNT ( * ) / SUM ( + + 34 ) + + NULLIF ( - + 59, + 13 + 89 ) + - - 86
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3649
SELECT ( - 73 ) AS col2, + SUM( ALL + 74 ) + - + 88 AS col1
----
-73
-14

skipif mysql # not compatible
query II rowsort label-3649
SELECT ( - 73 ) AS col2, + SUM ( ALL + 74 ) + - + 88 AS col1
----
-73
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3650
SELECT ALL + 67 * - CAST( NULL AS SIGNED ) AS col1, ( - 85 ) AS col0
----
NULL
-85

skipif mysql # not compatible
query II rowsort label-3650
SELECT ALL + 67 * - CAST ( NULL AS INTEGER ) AS col1, ( - 85 ) AS col0
----
NULL
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT - 41 + - CASE 48 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN - ( - ( + + 28 ) ) / - 8 + - 33 THEN - + COALESCE ( + 94, + 3 ) / + 34 WHEN + 85 THEN - - 99 * + + AVG ( 91 ) ELSE NULL END + - 23 * 10 - - 62
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT - 41 + - CASE 48 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN - ( - ( + + 28 ) ) / - 8 + - 33 THEN - + COALESCE ( + 94, + 3 ) / + 34 WHEN + 85 THEN - - 99 * + + AVG ( 91 ) ELSE NULL END + - 23 * 10 - - 62
----
NULL

query II rowsort
SELECT + 28 * - 90 AS col2, + 72 + - 37 AS col0
----
-2520
35

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

skipif mysql # not compatible
query I rowsort label-3653
SELECT ( MAX ( + 59 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - - 66 * + COUNT( * ) + - 82
----
-16

skipif mysql # not compatible
query I rowsort label-3654
SELECT - - 66 * + COUNT ( * ) + - 82
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT - + 55 * 19 DIV 74 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3655
SELECT - + 55 * 19 / 74 AS col2
----
-14

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT - - 80 * + 27 * + - 28 * - CAST( + 52 AS SIGNED ) AS col2
----
3144960

skipif mysql # not compatible
query I rowsort label-3657
SELECT - - 80 * + 27 * + - 28 * - CAST ( + 52 AS INTEGER ) AS col2
----
3144960

onlyif mysql # aggregate syntax: 
query II rowsort label-3658
SELECT - 61 * + 99 AS col0, 9 + 87 + COUNT( * ) + - 28 + + - COUNT( * ) AS col1
----
-6039
68

skipif mysql # not compatible
query II rowsort label-3658
SELECT - 61 * + 99 AS col0, 9 + 87 + COUNT ( * ) + - 28 + + - COUNT ( * ) AS col1
----
-6039
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3659
SELECT ALL + - 54 DIV - 99 AS col0, MIN( - - 4 )
----
0
4

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL + - 54 / - 99 AS col0, MIN ( - - 4 )
----
0
4

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

skipif mysql # not compatible
query I rowsort label-3660
SELECT + + CAST ( + 46 AS INTEGER )
----
46

query I rowsort
SELECT ALL + - NULLIF ( 80, - 93 * - 84 + - ( - + 17 ) ) AS col0
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT + AVG ( 24 ) * - CAST( NULL AS SIGNED ) - + COUNT( - 44 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT + AVG ( 24 ) * - CAST ( NULL AS INTEGER ) - + COUNT ( - 44 ) AS col1
----
NULL

query II rowsort
SELECT - + 54 * 93 AS col1, + 58
----
-5022
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT DISTINCT 37 * 57 + - MIN( - - 25 ) + + 55 * - 33 AS col1
----
269

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT 37 * 57 + - MIN ( - - 25 ) + + 55 * - 33 AS col1
----
269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT + CAST( + - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-3665
SELECT + CAST ( + - 22 AS INTEGER )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3666
SELECT + CASE + - ( ( + 2 ) ) WHEN + 47 * - + 23 THEN NULL WHEN + - ( - 69 ) THEN NULL ELSE 22 END * + 92 + + 26 + - + COUNT( * ) + - + COUNT( * ) + + - CAST( + CAST( - 84 AS SIGNED ) AS SIGNED ) DIV + - 30, 71 col0
----
2046
71

skipif mysql # not compatible
query II rowsort label-3666
SELECT + CASE + - ( ( + 2 ) ) WHEN + 47 * - + 23 THEN NULL WHEN + - ( - 69 ) THEN NULL ELSE 22 END * + 92 + + 26 + - + COUNT ( * ) + - + COUNT ( * ) + + - CAST ( + CAST ( - 84 AS INTEGER ) AS INTEGER ) / + - 30, 71 col0
----
2046
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL 87 * + - 82 - - 72 + COUNT( + 91 ) + SUM( DISTINCT - + 81 ) - - 15 - 92 * - 36 * + ( + - COUNT( 56 ) ) + 7
----
-10432

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL 87 * + - 82 - - 72 + COUNT ( + 91 ) + SUM ( DISTINCT - + 81 ) - - 15 - 92 * - 36 * + ( + - COUNT ( 56 ) ) + 7
----
-10432

query I rowsort
SELECT ALL 39 + + + 58 + 78 * + - 43 AS col1
----
-3257

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3669
SELECT ALL 71, 60 * COUNT( * ) + + 65 DIV 22 AS col0
----
71
62

skipif mysql # not compatible
query II rowsort label-3669
SELECT ALL 71, 60 * COUNT ( * ) + + 65 / 22 AS col0
----
71
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT ALL - 71 + + + 98 - + - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-3670
SELECT ALL - 71 + + + 98 - + - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT - COALESCE ( + + 23, + 38 ) + CASE - NULLIF ( + 20, - + 1 * + COUNT( * ) * 73 + ( - 8 ) ) WHEN - 53 THEN 92 + - - 72 END, COUNT( * ) + + 30 + + 28 AS col0
----
NULL
59

skipif mysql # not compatible
query II rowsort label-3671
SELECT - COALESCE ( + + 23, + 38 ) + CASE - NULLIF ( + 20, - + 1 * + COUNT ( * ) * 73 + ( - 8 ) ) WHEN - 53 THEN 92 + - - 72 END, COUNT ( * ) + + 30 + + 28 AS col0
----
NULL
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT ALL 13 DIV + + 78
----
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL 13 / + + 78
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3673
SELECT + 1 * + 96 DIV 30, 9 col0
----
3
9

skipif mysql # not compatible
query II rowsort label-3673
SELECT + 1 * + 96 / 30, 9 col0
----
3
9

query I rowsort
SELECT ALL 6 + - 97 AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL CASE - 58 WHEN + - COUNT( * ) THEN - - 17 * - 50 WHEN 28 THEN - 34 * COALESCE ( + 13, + - COUNT( * ) ) + - 85 + - 2 + 34 * 25 WHEN + 48 + - + 5 THEN NULL END * + - NULLIF ( - 8, 16 * + NULLIF ( - 34, 38 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL CASE - 58 WHEN + - COUNT ( * ) THEN - - 17 * - 50 WHEN 28 THEN - 34 * COALESCE ( + 13, + - COUNT ( * ) ) + - 85 + - 2 + 34 * 25 WHEN + 48 + - + 5 THEN NULL END * + - NULLIF ( - 8, 16 * + NULLIF ( - 34, 38 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3676
SELECT 60 col1, COUNT( * )
----
60
1

skipif mysql # not compatible
query II rowsort label-3676
SELECT 60 col1, COUNT ( * )
----
60
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT ALL + 99 DIV + 9
----
11

skipif mysql # not compatible
query I rowsort label-3677
SELECT ALL + 99 / + 9
----
11

query I rowsort
SELECT + 65 * - - 54
----
3510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3679
SELECT ALL 70 - CAST( - + 39 AS SIGNED )
----
109

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL 70 - CAST ( - + 39 AS INTEGER )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3680
SELECT ALL COALESCE ( + NULLIF ( + SUM( 7 ), + 45 ), COALESCE ( 87, 87 * - - 7, 45 * + ( 77 ) + - - 23 - - 15 + ( 81 ) DIV + 13, - + 79 ) + - + 98 * - ( + 35 ), + COUNT( * ), + COUNT( * ) * - + 7 )
----
7

skipif mysql # not compatible
query I rowsort label-3680
SELECT ALL COALESCE ( + NULLIF ( + SUM ( 7 ), + 45 ), COALESCE ( 87, 87 * - - 7, 45 * + ( 77 ) + - - 23 - - 15 + ( 81 ) / + 13, - + 79 ) + - + 98 * - ( + 35 ), + COUNT ( * ), + COUNT ( * ) * - + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL - COALESCE ( + - 71, - 72 + + COUNT( * ) + SUM( - 53 ) ) - 22 col2
----
49

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL - COALESCE ( + - 71, - 72 + + COUNT ( * ) + SUM ( - 53 ) ) - 22 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT ( + 9 ) * - - SUM( ALL + - 26 ) AS col1
----
-234

skipif mysql # not compatible
query I rowsort label-3682
SELECT ( + 9 ) * - - SUM ( ALL + - 26 ) AS col1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT 0 * - + CASE + 59 WHEN - ( 20 ) * + 49 + - 24 * + 89 + + COUNT( * ) + + 19 + - 99 * + 76 / + 5 + - + 65 THEN - + 8 + - - 92 + - + 39 WHEN + 82 THEN NULL ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT 0 * - + CASE + 59 WHEN - ( 20 ) * + 49 + - 24 * + 89 + + COUNT ( * ) + + 19 + - 99 * + 76 / + 5 + - + 65 THEN - + 8 + - - 92 + - + 39 WHEN + 82 THEN NULL ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT 76 * COUNT( * ) * - - 6 AS col2
----
456

skipif mysql # not compatible
query I rowsort label-3684
SELECT 76 * COUNT ( * ) * - - 6 AS col2
----
456

query II rowsort
SELECT - 55 - + ( 30 ) AS col0, 81
----
-85
81

query I rowsort
SELECT ALL + - ( 40 ) * - 90 AS col2
----
3600

query I rowsort
SELECT 69 + + + 59 * 93 * + 51 AS col0
----
279906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3688
SELECT DISTINCT - + CAST( 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT - + CAST ( 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + COALESCE ( + - COUNT( * ), + COUNT( * ) * + 58 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3689
SELECT + COALESCE ( + - COUNT ( * ), + COUNT ( * ) * + 58 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3690
SELECT + 39 * + 20 + - 39 AS col1, + 29 * - COUNT( * ) AS col2
----
741
-29

skipif mysql # not compatible
query II rowsort label-3690
SELECT + 39 * + 20 + - 39 AS col1, + 29 * - COUNT ( * ) AS col2
----
741
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT NULLIF ( + SUM( ALL + + 98 ), 18 ) - 78 + - 64 + - + ( - 84 ) * + 65, 26 AS col0
----
5416
26

skipif mysql # not compatible
query II rowsort label-3691
SELECT NULLIF ( + SUM ( ALL + + 98 ), 18 ) - 78 + - 64 + - + ( - 84 ) * + 65, 26 AS col0
----
5416
26

query I rowsort
SELECT 50 * - 31 + + 23 AS col0
----
-1527

query I rowsort
SELECT 84 + 52 col0
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3694
SELECT DISTINCT - COUNT( * ), - 68 DIV 46 * - COUNT( * ) + + - 73 + 88 * 65 + 2 col1
----
-1
5650

skipif mysql # not compatible
query II rowsort label-3694
SELECT DISTINCT - COUNT ( * ), - 68 / 46 * - COUNT ( * ) + + - 73 + 88 * 65 + 2 col1
----
-1
5650

onlyif mysql # aggregate syntax: 
query II rowsort label-3695
SELECT ALL + 47 + + 94 + + 47, COUNT( * ) AS col2
----
188
1

skipif mysql # not compatible
query II rowsort label-3695
SELECT ALL + 47 + + 94 + + 47, COUNT ( * ) AS col2
----
188
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3696
SELECT ALL - 89 + - 82 + - COUNT( * ) * - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - 89 + - 82 + - COUNT ( * ) * - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-3697
SELECT + 83 AS col0, + COUNT( * )
----
83
1

skipif mysql # not compatible
query II rowsort label-3697
SELECT + 83 AS col0, + COUNT ( * )
----
83
1

query I rowsort
SELECT ALL + 2 * + 77 * + 34 AS col1
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT COUNT( * ) + + 87 * + NULLIF ( - ( + 87 ), - 77 ) AS col0
----
-7568

skipif mysql # not compatible
query I rowsort label-3699
SELECT COUNT ( * ) + + 87 * + NULLIF ( - ( + 87 ), - 77 ) AS col0
----
-7568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT 77 + + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT 77 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL + 94 + 0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-3702
SELECT DISTINCT + 85 * - - 1, ( + MIN( - 93 ) ) + 51 AS col0
----
85
-42

skipif mysql # not compatible
query II rowsort label-3702
SELECT DISTINCT + 85 * - - 1, ( + MIN ( - 93 ) ) + 51 AS col0
----
85
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3703
SELECT MIN( - + 61 ) * + 0 + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3703
SELECT MIN ( - + 61 ) * + 0 + + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT COUNT( * ) + 5 + 5
----
11

skipif mysql # not compatible
query I rowsort label-3704
SELECT COUNT ( * ) + 5 + 5
----
11

query I rowsort
SELECT ALL + 95 - + + 62
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3706
SELECT ALL COUNT( DISTINCT 69 ) - - CAST( NULL AS SIGNED ) + - - 1 AS col2, - 84 AS col1
----
NULL
-84

skipif mysql # not compatible
query II rowsort label-3706
SELECT ALL COUNT ( DISTINCT 69 ) - - CAST ( NULL AS INTEGER ) + - - 1 AS col2, - 84 AS col1
----
NULL
-84

query I rowsort
SELECT 93 + - 75
----
18

query I rowsort
SELECT 28 + + 32 + - - 64 * - 28 AS col1
----
-1732

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT DISTINCT 58 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT 58 / - 84
----
0

query I rowsort
SELECT 12 * - + 54
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT 47 + + 97 + + + 48 * + - COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-3711
SELECT 47 + + 97 + + + 48 * + - COUNT ( * ) AS col1
----
96

query I rowsort
SELECT ALL 93 * ( - 19 )
----
-1767

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3713
SELECT 18 DIV + 73 AS col1, COUNT( * ) AS col2
----
0
1

skipif mysql # not compatible
query II rowsort label-3713
SELECT 18 / + 73 AS col1, COUNT ( * ) AS col2
----
0
1

query II rowsort
SELECT DISTINCT 11 * 52 AS col1, 35 AS col0
----
572
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT DISTINCT - - 21 DIV + 12
----
1

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT - - 21 / + 12
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3716
SELECT - 43 DIV 46, 57 AS col0
----
0
57

skipif mysql # not compatible
query II rowsort label-3716
SELECT - 43 / 46, 57 AS col0
----
0
57

onlyif mysql # aggregate syntax: 
query II rowsort label-3717
SELECT ALL - MAX( DISTINCT - + NULLIF ( 96, - 65 + - + 58 ) ) AS col0, 6 + + - 84 + - 61 + COUNT( + 18 ) + + + 84 * 35 * + - 6 + - - COUNT( * ) AS col0
----
96
-17777

skipif mysql # not compatible
query II rowsort label-3717
SELECT ALL - MAX ( DISTINCT - + NULLIF ( 96, - 65 + - + 58 ) ) AS col0, 6 + + - 84 + - 61 + COUNT ( + 18 ) + + + 84 * 35 * + - 6 + - - COUNT ( * ) AS col0
----
96
-17777

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT DISTINCT 45 * + - COUNT( * ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT 45 * + - COUNT ( * ) AS col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3719
SELECT + CAST( + - 24 AS SIGNED ) * + 9
----
-216

skipif mysql # not compatible
query I rowsort label-3719
SELECT + CAST ( + - 24 AS INTEGER ) * + 9
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT 63 * - COUNT( * ) + - 4 + + - 23 + + - 75
----
-165

skipif mysql # not compatible
query I rowsort label-3720
SELECT 63 * - COUNT ( * ) + - 4 + + - 23 + + - 75
----
-165

query I rowsort
SELECT 52 + 83 AS col1
----
135

query I rowsort
SELECT DISTINCT - 51 + - - ( + + 43 ) * 55 AS col1
----
2314

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3723
SELECT DISTINCT - 40 + 7 * + 51 * + 21 AS col1, CAST( NULL AS DECIMAL )
----
7457
NULL

skipif mysql # not compatible
query II rowsort label-3723
SELECT DISTINCT - 40 + 7 * + 51 * + 21 AS col1, CAST ( NULL AS REAL )
----
7457
NULL

query I rowsort
SELECT DISTINCT - 60 + + - 3
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + + COUNT( DISTINCT ( + 22 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3725
SELECT + + COUNT ( DISTINCT ( + 22 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3726
SELECT 78 DIV - + 67 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3726
SELECT 78 / - + 67 AS col1
----
-1

query I rowsort
SELECT ALL - + 7 * - 52 * - - 70 AS col1
----
25480

query I rowsort
SELECT 71 + + + 29 * + NULLIF ( + - 41, + 27 ) + - 9 + - ( - + 39 )
----
-1088

query II rowsort
SELECT 90, + 73 * + 10 AS col2
----
90
730

query I rowsort
SELECT 13 + - 4
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL MIN( DISTINCT + 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-3731
SELECT ALL MIN ( DISTINCT + 96 ) AS col0
----
96

query I rowsort
SELECT DISTINCT 95 - 80 col2
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT ALL - COUNT( * ) DIV - + 8
----
0

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL - COUNT ( * ) / - + 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT DISTINCT SUM( DISTINCT + 89 )
----
89

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT SUM ( DISTINCT + 89 )
----
89

query I rowsort
SELECT DISTINCT - 63 * 64
----
-4032

query I rowsort
SELECT - 58 * 30
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - ( - - 24 ) * - 45 * + COUNT( * ) AS col1
----
1080

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - ( - - 24 ) * - 45 * + COUNT ( * ) AS col1
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-3738
SELECT DISTINCT + 93 AS col1, ( + 75 ) * + 22 * MIN( + 85 )
----
93
140250

skipif mysql # not compatible
query II rowsort label-3738
SELECT DISTINCT + 93 AS col1, ( + 75 ) * + 22 * MIN ( + 85 )
----
93
140250

query I rowsort
SELECT DISTINCT + 96 + - 70
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT ALL - COUNT( - 70 ) * COUNT( * ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL - COUNT ( - 70 ) * COUNT ( * ) + - 92
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT - - 38 * + 69 + - + COALESCE ( 62, - ( - 99 ) DIV + + 19 ) + - 0
----
2560

skipif mysql # not compatible
query I rowsort label-3741
SELECT - - 38 * + 69 + - + COALESCE ( 62, - ( - 99 ) / + + 19 ) + - 0
----
2560

query I rowsort
SELECT DISTINCT + ( + ( + 96 ) ) AS col0
----
96

query I rowsort
SELECT ALL 68 * 2 * + - 43 + + - 53
----
-5901

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL - 11 DIV + - 95
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - 11 / + - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + SUM( 84 ) * + 39 + COUNT( * ) AS col1
----
3277

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + SUM ( 84 ) * + 39 + COUNT ( * ) AS col1
----
3277

onlyif mysql # aggregate syntax: 
query I rowsort label-3746
SELECT - 72 * 62 + - ( - COUNT( + 13 ) ) * - + 10 + - - 13 col1
----
-4461

skipif mysql # not compatible
query I rowsort label-3746
SELECT - 72 * 62 + - ( - COUNT ( + 13 ) ) * - + 10 + - - 13 col1
----
-4461

query I rowsort
SELECT ALL + 31 * - 20 col0
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT 45 * - SUM( - 25 ) AS col0
----
1125

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT 45 * - SUM ( - 25 ) AS col0
----
1125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3749
SELECT - ( 92 ) + 27 * + 83 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3749
SELECT - ( 92 ) + 27 * + 83 + + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 * + - 10
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT + COUNT( * ) - 91 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3751
SELECT + COUNT ( * ) - 91 AS col0
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3752
SELECT CASE 97 WHEN - 11 / 90 + - 79 THEN - 30 * 42 * CAST( 63 AS DECIMAL ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT CASE 97 WHEN - 11 / 90 + - 79 THEN - 30 * 42 * CAST ( 63 AS REAL ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 72 * 0 AS col0
----
0

query II rowsort
SELECT ALL + 32 AS col2, 16 + 59 AS col0
----
32
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT + 24 + - COUNT( * ) - CAST( NULL AS SIGNED ) + 20
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT + 24 + - COUNT ( * ) - CAST ( NULL AS INTEGER ) + 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - 40 * - + CASE + + 41 WHEN - 59 + + 0 THEN + 98 * - 34 - + 79 * - ( + + COUNT( * ) ) * - - 5 + + 12 * + 79 * - MIN( DISTINCT NULLIF ( - 98, 75 * + + 25 - + 67 * 32 * + + 16 ) ) WHEN - 84 THEN + - ( 36 ) END * + SUM( + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - 40 * - + CASE + + 41 WHEN - 59 + + 0 THEN + 98 * - 34 - + 79 * - ( + + COUNT ( * ) ) * - - 5 + + 12 * + 79 * - MIN ( DISTINCT NULLIF ( - 98, 75 * + + 25 - + 67 * 32 * + + 16 ) ) WHEN - 84 THEN + - ( 36 ) END * + SUM ( + 61 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT ALL 48 DIV - + 41 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL 48 / - + 41 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - CAST( - + 73 AS SIGNED ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3758
SELECT - CAST ( - + 73 AS INTEGER ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 39 * 39 * - 94 + + - ( + COUNT( * ) ) AS col2
----
-142975

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 39 * 39 * - 94 + + - ( + COUNT ( * ) ) AS col2
----
-142975

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT MIN( DISTINCT + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-3760
SELECT MIN ( DISTINCT + 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT - 94 DIV - 72 col1
----
1

skipif mysql # not compatible
query I rowsort label-3761
SELECT - 94 / - 72 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT + 6 + - 82 + + 88 * - + COUNT( * )
----
-164

skipif mysql # not compatible
query I rowsort label-3762
SELECT + 6 + - 82 + + 88 * - + COUNT ( * )
----
-164

query II rowsort
SELECT - ( + 22 ) AS col2, - 33 + 75 * + 72
----
-22
5367

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT - 47 + - + COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-3764
SELECT - 47 + - + COUNT ( * ) AS col2
----
-48

query I rowsort
SELECT + 76 + 46 * + 65 * - + 57 * 4
----
-681644

query I rowsort
SELECT ALL 40 * + 28 * + 11
----
12320

query I rowsort
SELECT - 52 + + 29
----
-23

query I rowsort
SELECT - 11 * + COALESCE ( 35, - 52 * + + 4 )
----
-385

query I rowsort
SELECT DISTINCT 75 + + 31 AS col1
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - - COUNT( * ) + - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-3770
SELECT - - COUNT ( * ) + - + 24
----
-23

query I rowsort
SELECT ALL - - 41 * + 23 col1
----
943

query I rowsort
SELECT DISTINCT 89 + - 73 * - - 59 col2
----
-4218

onlyif mysql # DIV for integer division: 
query I rowsort label-3773
SELECT ALL + 48 DIV - 37 + + + 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + 48 / - 37 + + + 21 AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3774
SELECT + - ( + + NULLIF ( - 71, + 61 * + 36 * - + 74 ) ), COUNT( - 66 ) AS col2
----
71
1

skipif mysql # not compatible
query II rowsort label-3774
SELECT + - ( + + NULLIF ( - 71, + 61 * + 36 * - + 74 ) ), COUNT ( - 66 ) AS col2
----
71
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3775
SELECT ALL + - NULLIF ( + - 58, + + 55 + - COUNT( * ) ) AS col0, 67
----
58
67

skipif mysql # not compatible
query II rowsort label-3775
SELECT ALL + - NULLIF ( + - 58, + + 55 + - COUNT ( * ) ) AS col0, 67
----
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL - + 49 * + + CAST( + 45 AS SIGNED ) + + 44 col2
----
-2161

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL - + 49 * + + CAST ( + 45 AS INTEGER ) + + 44 col2
----
-2161

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3777
SELECT ALL - COUNT( * ) / + ( + 14 ) - + + 89 * CAST( NULL AS DECIMAL ) + + + COALESCE ( - - 59, - + 62 ) - - COUNT( * ) * + - 58 - + 0 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL - COUNT ( * ) / + ( + 14 ) - + + 89 * CAST ( NULL AS REAL ) + + + COALESCE ( - - 59, - + 62 ) - - COUNT ( * ) * + - 58 - + 0 * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT - COUNT( * ), - NULLIF ( - 84, - 37 ) + - + COUNT( * ) col1
----
-1
83

skipif mysql # not compatible
query II rowsort label-3778
SELECT - COUNT ( * ), - NULLIF ( - 84, - 37 ) + - + COUNT ( * ) col1
----
-1
83

query II rowsort
SELECT + - 61 AS col2, - 41
----
-61
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3780
SELECT - 17 DIV + COUNT( * ) AS col2, 16
----
-17
16

skipif mysql # not compatible
query II rowsort label-3780
SELECT - 17 / + COUNT ( * ) AS col2, 16
----
-17
16

query I rowsort
SELECT + + 97 * 48 + + - 70
----
4586

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3782
SELECT + + 55 + + CAST( NULL AS SIGNED ) * - - AVG ( - 18 ) * CASE 79 WHEN - 58 THEN - ( + COUNT( * ) ) END * + 45 * + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT + + 55 + + CAST ( NULL AS INTEGER ) * - - AVG ( - 18 ) * CASE 79 WHEN - 58 THEN - ( + COUNT ( * ) ) END * + 45 * + 1 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT DISTINCT 94 DIV 56 - + 82
----
-81

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT 94 / 56 - + 82
----
-81

query I rowsort
SELECT - 48 * + 37
----
-1776

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3785
SELECT DISTINCT + 53 DIV + - 64, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-3785
SELECT DISTINCT + 53 / + - 64, - COUNT ( * ) AS col0
----
0
-1

query II rowsort
SELECT ( + - 65 ), 19 AS col0
----
-65
19

query II rowsort
SELECT 22 * 74 AS col0, - 42 * + 9 * + - 82 * + + 67 AS col1
----
1628
2076732

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3788
SELECT 5 + 23 + 40 + - 97 * + CAST( - NULLIF ( - ( - - 55 ), - - CASE - 75 WHEN + CAST( - CASE - 4 WHEN 30 THEN NULL WHEN 41 + 91 - + - 24 + - - ( 8 ) THEN - 70 END AS SIGNED ) THEN - 34 * + 54 * + - CAST( NULL AS SIGNED ) + - COUNT( * ) WHEN + 84 THEN - 5 * MIN( ALL 24 ) + - - ( - - ( + COUNT( DISTINCT - - 20 ) ) ) ELSE NULL END ) AS SIGNED ) AS col2, 2 AS col1
----
-5267
2

skipif mysql # not compatible
query II rowsort label-3788
SELECT 5 + 23 + 40 + - 97 * + CAST ( - NULLIF ( - ( - - 55 ), - - CASE - 75 WHEN + CAST ( - CASE - 4 WHEN 30 THEN NULL WHEN 41 + 91 - + - 24 + - - ( 8 ) THEN - 70 END AS INTEGER ) THEN - 34 * + 54 * + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) WHEN + 84 THEN - 5 * MIN ( ALL 24 ) + - - ( - - ( + COUNT ( DISTINCT - - 20 ) ) ) ELSE NULL END ) AS INTEGER ) AS col2, 2 AS col1
----
-5267
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3789
SELECT COUNT( * ) + - - 24 * + 65 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT COUNT ( * ) + - - 24 * + 65 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 0, 52 ) + + 35
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT DISTINCT 99 + - COALESCE ( + ( CAST( + 90 AS SIGNED ) ), 66 + 65 * + ( 28 ) ) * + ( 5 )
----
-351

skipif mysql # not compatible
query I rowsort label-3791
SELECT DISTINCT 99 + - COALESCE ( + ( CAST ( + 90 AS INTEGER ) ), 66 + 65 * + ( 28 ) ) * + ( 5 )
----
-351

query I rowsort
SELECT 40 - - 73 col0
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3793
SELECT DISTINCT + 92 + COUNT( * ) * + 1 * - 78 + - COALESCE ( - 59, 11 * + 1, - ( + ( 35 ) ) + - 81 * + COUNT( * ) DIV - COUNT( * ) ) - 38 * + 74 - - 38 AS col1
----
-2701

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT + 92 + COUNT ( * ) * + 1 * - 78 + - COALESCE ( - 59, 11 * + 1, - ( + ( 35 ) ) + - 81 * + COUNT ( * ) / - COUNT ( * ) ) - 38 * + 74 - - 38 AS col1
----
-2701

query II rowsort
SELECT DISTINCT + 5 * - - 48 col2, 19 AS col2
----
240
19

query I rowsort
SELECT ALL - NULLIF ( + + 94, - 11 ) AS col1
----
-94

query I rowsort
SELECT - - ( 60 )
----
60

query I rowsort
SELECT 27 - 73 * ( - 76 ) AS col0
----
5575

onlyif mysql # aggregate syntax: 
query II rowsort label-3798
SELECT MAX( + 29 ), - 86 + - COUNT( * ) + 20 col1
----
29
-67

skipif mysql # not compatible
query II rowsort label-3798
SELECT MAX ( + 29 ), - 86 + - COUNT ( * ) + 20 col1
----
29
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT CASE 7 WHEN - COALESCE ( 19, ( - 32 ) ) * 88 / + + 74 - 77 * + ( - MAX( DISTINCT - 44 ) ) + SUM( + + 21 ) + + + 89 / - 24 THEN 0 END / - + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-3799
SELECT CASE 7 WHEN - COALESCE ( 19, ( - 32 ) ) * 88 / + + 74 - 77 * + ( - MAX ( DISTINCT - 44 ) ) + SUM ( + + 21 ) + + + 89 / - 24 THEN 0 END / - + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL 38 + - - COUNT( + 9 ) * - + 65 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-3800
SELECT ALL 38 + - - COUNT ( + 9 ) * - + 65 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT 45 - - CAST( NULL AS SIGNED ) + + CAST( 70 AS SIGNED ) + + + 5 + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT 45 - - CAST ( NULL AS INTEGER ) + + CAST ( 70 AS INTEGER ) + + + 5 + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3802
SELECT DISTINCT CAST( - + COALESCE ( 9, + 73, + - 83, 21 + - - SUM( - CAST( NULL AS DECIMAL ) ) ) AS SIGNED ) * ( + - 19 )
----
171

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT CAST ( - + COALESCE ( 9, + 73, + - 83, 21 + - - SUM ( - CAST ( NULL AS REAL ) ) ) AS INTEGER ) * ( + - 19 )
----
171

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3803
SELECT + AVG ( ALL + + CAST( NULL AS DECIMAL ) ) + - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT + AVG ( ALL + + CAST ( NULL AS REAL ) ) + - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT COUNT( * ) * - - 1 + - - 25
----
26

skipif mysql # not compatible
query I rowsort label-3804
SELECT COUNT ( * ) * - - 1 + - - 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT + MAX( DISTINCT + 27 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-3805
SELECT + MAX ( DISTINCT + 27 ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + 0 * + ( - - 28 ) * - COUNT( * ) + + - NULLIF ( - COUNT( * ), 30 )
----
1

skipif mysql # not compatible
query I rowsort label-3806
SELECT + 0 * + ( - - 28 ) * - COUNT ( * ) + + - NULLIF ( - COUNT ( * ), 30 )
----
1

query I rowsort
SELECT + 71 - + 26 + ( - 94 ) col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3808
SELECT + - 93 DIV - - COALESCE ( + MIN( DISTINCT + 33 ), 67, 98 ) + - 83 AS col1, 75 - + COALESCE ( + 44, - + 78 )
----
-85
31

skipif mysql # not compatible
query II rowsort label-3808
SELECT + - 93 / - - COALESCE ( + MIN ( DISTINCT + 33 ), 67, 98 ) + - 83 AS col1, 75 - + COALESCE ( + 44, - + 78 )
----
-85
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT + 28 + + - 74 AS col0, ( 53 ) + COUNT( * ) AS col1
----
-46
54

skipif mysql # not compatible
query II rowsort label-3809
SELECT + 28 + + - 74 AS col0, ( 53 ) + COUNT ( * ) AS col1
----
-46
54

query I rowsort
SELECT DISTINCT - 26 - - + 96 * 90 + + 71 + 69 + + ( + + 30 ) * + 52
----
10314

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT 86 + + 51 * ( - COUNT( * ) ) * 20 + - NULLIF ( + 74, COUNT( * ) ) AS col1
----
-1008

skipif mysql # not compatible
query I rowsort label-3811
SELECT 86 + + 51 * ( - COUNT ( * ) ) * 20 + - NULLIF ( + 74, COUNT ( * ) ) AS col1
----
-1008

query I rowsort
SELECT ALL + ( - + 84 ) * 87
----
-7308

query I rowsort
SELECT DISTINCT + 67 * - - 93 * - ( - ( + 96 ) ) AS col2
----
598176

query I rowsort
SELECT - 31 * + - 46 * + - 81 + 94
----
-115412

query I rowsort
SELECT ALL + 49 * 91
----
4459

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT 22 DIV - 17
----
-1

skipif mysql # not compatible
query I rowsort label-3816
SELECT 22 / - 17
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT ALL - 67, + ( + - ( 79 ) ) + + COUNT( * ) * - 31 AS col2
----
-67
-110

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL - 67, + ( + - ( 79 ) ) + + COUNT ( * ) * - 31 AS col2
----
-67
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT + COUNT( * ) + + NULLIF ( + 41, 99 ) * 74 AS col2
----
3035

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT + COUNT ( * ) + + NULLIF ( + 41, 99 ) * 74 AS col2
----
3035

query I rowsort
SELECT COALESCE ( - 66, - - ( ( - + 84 ) ) ) + 65 - - 86 col2
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3820
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 27 / - MIN( - 38 ) - + - MIN( + 36 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 27 / - MIN ( - 38 ) - + - MIN ( + 36 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3821
SELECT COUNT( * ) + CAST( - 1 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3821
SELECT COUNT ( * ) + CAST ( - 1 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL 47 * - NULLIF ( + MIN( - 17 ), + 68 )
----
799

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL 47 * - NULLIF ( + MIN ( - 17 ), + 68 )
----
799

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - COALESCE ( COUNT( * ), + 43 * + 83, + 99 + 22 + + - 49 ) + 59
----
58

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - COALESCE ( COUNT ( * ), + 43 * + 83, + 99 + 22 + + - 49 ) + 59
----
58

query I rowsort
SELECT ALL 23 * 78
----
1794

query I rowsort
SELECT DISTINCT 82 + 18
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3826
SELECT 30 * + + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3826
SELECT 30 * + + COUNT ( * ) AS col0
----
30

query I rowsort
SELECT ALL 87 * - 57 AS col1
----
-4959

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT 37 + + CAST( NULL AS SIGNED ) + + + 63 * + + 54 / 65 * 75 * 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT 37 + + CAST ( NULL AS INTEGER ) + + + 63 * + + 54 / 65 * 75 * 40 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT CASE + 36 WHEN 20 THEN + - 59 END * + 31 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT CASE + 36 WHEN 20 THEN + - 59 END * + 31 * + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT + 6, 42 + - + 2 AS col0
----
6
40

query I rowsort
SELECT ALL 22 + + 48 AS col2
----
70

query I rowsort
SELECT ALL - 26 + + - 34
----
-60

query I rowsort
SELECT ALL + + 57 * - - 7 - - 35
----
434

query I rowsort
SELECT + 19 + - 98 AS col2
----
-79

query I rowsort
SELECT ALL - NULLIF ( + - 86, + AVG ( DISTINCT - 21 ) ) - + 74
----
12

query I rowsort
SELECT CASE + 56 WHEN + + 94 * + 98 + - + AVG ( + - 52 ) * - 23 THEN - 61 END + - + 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT 40 / - - 51 / + CASE MIN( + + 12 ) WHEN ( - 44 ) + + MAX( + - 78 ) THEN + - 92 - 23 * - + 69 + - - 47 WHEN + + 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT 40 / - - 51 / + CASE MIN ( + + 12 ) WHEN ( - 44 ) + + MAX ( + - 78 ) THEN + - 92 - 23 * - + 69 + - - 47 WHEN + + 44 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + COALESCE ( + + 89, - 5, + 48 ) AS col0
----
89

query I rowsort
SELECT 29 + - 57 + - - 56 * - - 32
----
1764

query I rowsort
SELECT ALL + 99 * + - 31
----
-3069

query II rowsort
SELECT + 2, NULLIF ( - + ( - 34 ), 85 ) col1
----
2
34

query I rowsort
SELECT - 69 + + - 21 * + ( - 24 )
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL 96 * - 67 + - COUNT( * ) AS col1
----
-6433

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL 96 * - 67 + - COUNT ( * ) AS col1
----
-6433

onlyif mysql # aggregate syntax: 
query II rowsort label-3844
SELECT 52 AS col1, 5 * - - COUNT( * ) * + - 24 + - - 7 + + 34 * 46 AS col1
----
52
1451

skipif mysql # not compatible
query II rowsort label-3844
SELECT 52 AS col1, 5 * - - COUNT ( * ) * + - 24 + - - 7 + + 34 * 46 AS col1
----
52
1451

query I rowsort
SELECT - 1 * + - 26 * + + ( - 43 ) AS col1
----
-1118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT 81 * + 48 * COUNT( * ) - 44 + - + 78 DIV + - 6 AS col2
----
3857

skipif mysql # not compatible
query I rowsort label-3846
SELECT 81 * + 48 * COUNT ( * ) - 44 + - + 78 / + - 6 AS col2
----
3857

query I rowsort
SELECT NULLIF ( + 9, - 33 * + 97 * - - NULLIF ( + + 81, 85 / - + ( + - 33 ) * + 28 * + 88 ) ) AS col0
----
9

query I rowsort
SELECT - 78 * + 5 AS col0
----
-390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3849
SELECT + COUNT( ALL - CAST( + 68 AS SIGNED ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3849
SELECT + COUNT ( ALL - CAST ( + 68 AS INTEGER ) ) AS col1
----
1

query I rowsort
SELECT + 7 * + 43
----
301

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT CASE 97 WHEN + 22 / 48 THEN NULL WHEN - COALESCE ( + CASE + 18 WHEN + SUM( ALL 43 ) THEN NULL WHEN 38 THEN - - 75 / - 46 + + - 14 + + 3 WHEN - + 29 THEN NULL ELSE - 33 END, + 86 ) THEN + NULLIF ( COUNT( * ), + 17 + + - 1 * - 91 ) + + + 53 - + 23 / - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3851
SELECT CASE 97 WHEN + 22 / 48 THEN NULL WHEN - COALESCE ( + CASE + 18 WHEN + SUM ( ALL 43 ) THEN NULL WHEN 38 THEN - - 75 / - 46 + + - 14 + + 3 WHEN - + 29 THEN NULL ELSE - 33 END, + 86 ) THEN + NULLIF ( COUNT ( * ), + 17 + + - 1 * - 91 ) + + + 53 - + 23 / - 80 END AS col0
----
NULL

query I rowsort
SELECT + 42 * - 48 col0
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT 9 * - + COUNT( * ) + + + 8
----
-1

skipif mysql # not compatible
query I rowsort label-3853
SELECT 9 * - + COUNT ( * ) + + + 8
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + ( + + SUM( ALL - 13 ) )
----
-13

skipif mysql # not compatible
query I rowsort label-3854
SELECT + ( + + SUM ( ALL - 13 ) )
----
-13

query I rowsort
SELECT - 81 * 93 AS col1
----
-7533

onlyif mysql # DIV for integer division: 
query I rowsort label-3856
SELECT - 52 + - - 64 DIV + + 92 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3856
SELECT - 52 + - - 64 / + + 92 AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT - SUM( DISTINCT 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-3857
SELECT - SUM ( DISTINCT 83 )
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-3858
SELECT ALL - + 34 - SUM( + - 59 ) * - + 24 AS col2, - 59 AS col1
----
-1450
-59

skipif mysql # not compatible
query II rowsort label-3858
SELECT ALL - + 34 - SUM ( + - 59 ) * - + 24 AS col2, - 59 AS col1
----
-1450
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL ( + - COALESCE ( - + 59, - 39 + COALESCE ( + - CAST( NULL AS SIGNED ), + 85 + COUNT( * ), + NULLIF ( COUNT( * ), - SUM( ALL + 96 ) + - - 57 ) ) + - ( + + 54 ) - 69 + - + 94 ) )
----
59

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL ( + - COALESCE ( - + 59, - 39 + COALESCE ( + - CAST ( NULL AS INTEGER ), + 85 + COUNT ( * ), + NULLIF ( COUNT ( * ), - SUM ( ALL + 96 ) + - - 57 ) ) + - ( + + 54 ) - 69 + - + 94 ) )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT - SUM( 80 ) AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3860
SELECT - SUM ( 80 ) AS col2
----
-80

query I rowsort
SELECT - - 0 + 43 * - + 43
----
-1849

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT ALL - 94 DIV COALESCE ( 53, - 14 * + 23 * + 10 + - 14 ) * - 53 DIV + + 12
----
4

skipif mysql # not compatible
query I rowsort label-3862
SELECT ALL - 94 / COALESCE ( 53, - 14 * + 23 * + 10 + - 14 ) * - 53 / + + 12
----
4

query I rowsort
SELECT - - 83 * 22
----
1826

query I rowsort
SELECT - 56 - - + 38 + - ( - - ( + 21 ) ) * + + 95
----
-2013

query I rowsort
SELECT - + 14 * + 59 + + 12
----
-814

query II rowsort
SELECT ALL + - 29 * - 84 AS col0, - 85 + - - 12
----
2436
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT - 97 * + 34 + 46 + - + 80 + - + COUNT( * ) + + COUNT( * )
----
-3332

skipif mysql # not compatible
query I rowsort label-3867
SELECT - 97 * + 34 + 46 + - + 80 + - + COUNT ( * ) + + COUNT ( * )
----
-3332

onlyif mysql # aggregate syntax: 
query II rowsort label-3868
SELECT ALL + ( + NULLIF ( - 67, + + ( 56 ) ) ) * + 17 + - 47, + COUNT( * ) col0
----
-1186
1

skipif mysql # not compatible
query II rowsort label-3868
SELECT ALL + ( + NULLIF ( - 67, + + ( 56 ) ) ) * + 17 + - 47, + COUNT ( * ) col0
----
-1186
1

query I rowsort
SELECT DISTINCT - + 87 * - 29
----
2523

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + - 82 * - COUNT( * ) - + - 61
----
143

skipif mysql # not compatible
query I rowsort label-3870
SELECT + - 82 * - COUNT ( * ) - + - 61
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-3871
SELECT DISTINCT + NULLIF ( + 11, 22 * - 19 * + NULLIF ( - COUNT( * ), + - 22 ) ) AS col0, + 23 - - - 52 + + COUNT( * ) + 34 * - 34 col0
----
11
-1184

skipif mysql # not compatible
query II rowsort label-3871
SELECT DISTINCT + NULLIF ( + 11, 22 * - 19 * + NULLIF ( - COUNT ( * ), + - 22 ) ) AS col0, + 23 - - - 52 + + COUNT ( * ) + 34 * - 34 col0
----
11
-1184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3872
SELECT + - COUNT( * ) DIV + 59 * - 5 - - 97 + - 16
----
81

skipif mysql # not compatible
query I rowsort label-3872
SELECT + - COUNT ( * ) / + 59 * - 5 - - 97 + - 16
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT + 95 - + + COUNT( * ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 95 - + + COUNT ( * ) AS col2
----
94

query I rowsort
SELECT + 42 + - - ( - 42 ) AS col0
----
0

query I rowsort
SELECT + 59 * + + 73 AS col1
----
4307

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3876
SELECT ALL 66 DIV - + 6 + + 50 - COUNT( * ) DIV 1, 91 AS col2
----
38
91

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL 66 / - + 6 + + 50 - COUNT ( * ) / 1, 91 AS col2
----
38
91

query I rowsort
SELECT 23 * - - 91 + - + 69 * - + 78
----
7475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT ALL - CAST( NULL AS SIGNED ) * + 30 + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL - CAST ( NULL AS INTEGER ) * + 30 + 60 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3879
SELECT - COUNT( - 96 ) + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3879
SELECT - COUNT ( - 96 ) + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( + + CASE + 23 WHEN + 16 * 31 THEN + 90 WHEN 12 THEN NULL END )
----
NULL

query II rowsort
SELECT ALL + 11 AS col2, - 41 AS col0
----
11
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT + CAST( + - 14 AS SIGNED )
----
-14

skipif mysql # not compatible
query I rowsort label-3882
SELECT + CAST ( + - 14 AS INTEGER )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT DISTINCT + 2 * + 13 - + MIN( ALL - 21 ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT + 2 * + 13 - + MIN ( ALL - 21 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT NULLIF ( CAST( COUNT( * ) AS SIGNED ), + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-3884
SELECT NULLIF ( CAST ( COUNT ( * ) AS INTEGER ), + 89 )
----
1

query I rowsort
SELECT DISTINCT 63 * + 66 AS col0
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + 39 * COUNT( * ) + 12
----
51

skipif mysql # not compatible
query I rowsort label-3886
SELECT + 39 * COUNT ( * ) + 12
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT + 86 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT + 86 / 92
----
0

query I rowsort
SELECT - 92 * - 15
----
1380

query I rowsort
SELECT + 4 + - 81
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT - COUNT( * ) - 80 * 65 AS col2
----
-5201

skipif mysql # not compatible
query I rowsort label-3890
SELECT - COUNT ( * ) - 80 * 65 AS col2
----
-5201

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - COUNT( DISTINCT 70 ) * 99 col1
----
-99

skipif mysql # not compatible
query I rowsort label-3891
SELECT - COUNT ( DISTINCT 70 ) * 99 col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT - CAST( NULL AS SIGNED ) * ( - 19 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3892
SELECT - CAST ( NULL AS INTEGER ) * ( - 19 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 35 + 48
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT DISTINCT - ( + MAX( 79 ) ) + - MIN( + 47 + - 85 * + 76 ) col1
----
6334

skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - ( + MAX ( 79 ) ) + - MIN ( + 47 + - 85 * + 76 ) col1
----
6334

onlyif mysql # aggregate syntax: 
query I rowsort label-3895
SELECT ALL COUNT( * ) * - 57
----
-57

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL COUNT ( * ) * - 57
----
-57

query I rowsort
SELECT DISTINCT + 8 * - 89 AS col0
----
-712

query I rowsort
SELECT DISTINCT - 36 + - ( + 67 ) AS col0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT 6 * + COUNT( ALL 46 )
----
6

skipif mysql # not compatible
query I rowsort label-3898
SELECT 6 * + COUNT ( ALL 46 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT 41 + NULLIF ( + ( - 64 ), MAX( 69 ) - - 0 * + 90 ) * 15
----
-919

skipif mysql # not compatible
query I rowsort label-3899
SELECT 41 + NULLIF ( + ( - 64 ), MAX ( 69 ) - - 0 * + 90 ) * 15
----
-919

query I rowsort
SELECT ALL - ( - ( - 64 ) ) + 17
----
-47

query I rowsort
SELECT DISTINCT - NULLIF ( + 37, 17 ) * 7
----
-259

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL + 91 + + COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + 91 + + COUNT ( * ) AS col2
----
92

query I rowsort
SELECT DISTINCT - 36 + + 0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT ALL 30 + - 78 DIV 95
----
30

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL 30 + - 78 / 95
----
30

query I rowsort
SELECT 31 * COALESCE ( 56, 51, ( 10 ) ) col1
----
1736

query I rowsort
SELECT ALL - 18 + 18 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3907
SELECT DISTINCT - SUM( - CAST( 89 AS SIGNED ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT - SUM ( - CAST ( 89 AS INTEGER ) ) AS col2
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3908
SELECT DISTINCT - CAST( 78 AS SIGNED ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT - CAST ( 78 AS INTEGER ) col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 55 * 0 - - NULLIF ( COUNT( * ), - AVG ( 8 ) / 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3909
SELECT 55 * 0 - - NULLIF ( COUNT ( * ), - AVG ( 8 ) / 1 ) AS col2
----
1

query I rowsort
SELECT 56 * 40
----
2240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3911
SELECT MIN( DISTINCT 80 ) DIV - 4
----
-20

skipif mysql # not compatible
query I rowsort label-3911
SELECT MIN ( DISTINCT 80 ) / - 4
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-3912
SELECT ALL + ( - 31 ) DIV + 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + ( - 31 ) / + 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT + CAST( COALESCE ( 27, 6 * + COUNT( * ) ) AS SIGNED ) - - 14 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3913
SELECT DISTINCT + CAST ( COALESCE ( 27, 6 * + COUNT ( * ) ) AS INTEGER ) - - 14 AS col0
----
41

query I rowsort
SELECT + 98 * + 58 - - 32
----
5716

query I rowsort
SELECT ALL 28 * - 32
----
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT CASE 73 WHEN - COUNT( * ) THEN - 38 - + 98 * + 71 WHEN 56 + + COUNT( * ) THEN - 43 END * 23 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT CASE 73 WHEN - COUNT ( * ) THEN - 38 - + 98 * + 71 WHEN 56 + + COUNT ( * ) THEN - 43 END * 23 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT DISTINCT 51 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT 51 / 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT DISTINCT - MIN( ALL 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - MIN ( ALL 26 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT + 38 * - NULLIF ( - CAST( NULL AS SIGNED ) * MIN( 90 ) + + MAX( ALL 86 - CAST( NULL AS SIGNED ) ) * + 20, - 65 / - 91 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT + 38 * - NULLIF ( - CAST ( NULL AS INTEGER ) * MIN ( 90 ) + + MAX ( ALL 86 - CAST ( NULL AS INTEGER ) ) * + 20, - 65 / - 91 ) AS col0
----
NULL

query I rowsort
SELECT 7 + 18 * + 67
----
1213

query I rowsort
SELECT COALESCE ( 33, 10 ) * 45
----
1485

query I rowsort
SELECT + ( - 58 ) + 29 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT + COALESCE ( 11, COUNT( - 48 ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-3923
SELECT + COALESCE ( 11, COUNT ( - 48 ) ) AS col0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT DISTINCT - 42 + 4 DIV 4 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT - 42 + 4 / 4 AS col2
----
-41

query I rowsort
SELECT ALL - - 62 + - 2 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT - 88 * NULLIF ( - 40, + COUNT( ALL - 28 ) * SUM( 11 ) ) col0
----
3520

skipif mysql # not compatible
query I rowsort label-3926
SELECT - 88 * NULLIF ( - 40, + COUNT ( ALL - 28 ) * SUM ( 11 ) ) col0
----
3520

query I rowsort
SELECT DISTINCT 58 + 7
----
65

query I rowsort
SELECT DISTINCT + + 49 + - NULLIF ( - 17, + 7 * 22 + - 34 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3929
SELECT - 15 DIV + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-3929
SELECT - 15 / + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT + 54 - - 95 * ( - CASE COUNT( ALL + 2 ) WHEN + 81 THEN + 40 WHEN 78 THEN NULL ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3930
SELECT + 54 - - 95 * ( - CASE COUNT ( ALL + 2 ) WHEN + 81 THEN + 40 WHEN 78 THEN NULL ELSE NULL END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT CASE + 25 WHEN COUNT( * ) THEN + 65 / 82 + 95 ELSE 79 END AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT CASE + 25 WHEN COUNT ( * ) THEN + 65 / 82 + 95 ELSE 79 END AS col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT + 81 DIV COUNT( * ) AS col2
----
81

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 81 / COUNT ( * ) AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT COUNT( * ) + 89
----
90

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT COUNT ( * ) + 89
----
90

query I rowsort
SELECT 31 - + 20 + + 81
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + 86 + + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + 86 + + + COUNT ( * )
----
87

query I rowsort
SELECT ALL - 87 - + - 24 + - 25
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT CAST( NULL AS SIGNED ) * 49 / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT CAST ( NULL AS INTEGER ) * 49 / 18
----
NULL

query I rowsort
SELECT 21 + + 70 col2
----
91

query I rowsort
SELECT 60 * - 55 + ( + 26 ) AS col1
----
-3274

query I rowsort
SELECT 66 - - + 4
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT 50 + - COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-3941
SELECT 50 + - COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ALL - COUNT( - + 32 ) * - 62 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-3942
SELECT ALL - COUNT ( - + 32 ) * - 62 AS col0
----
62

query I rowsort
SELECT 65 + 49
----
114

query I rowsort
SELECT DISTINCT - COALESCE ( - 23, 90 )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT 46 * 88 DIV 98 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3945
SELECT 46 * 88 / 98 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT + - COUNT( ALL 55 )
----
-1

skipif mysql # not compatible
query I rowsort label-3946
SELECT + - COUNT ( ALL 55 )
----
-1

query I rowsort
SELECT - COALESCE ( - 80, - 76 + - 70 ) + 4
----
84

query I rowsort
SELECT + + ( 2 ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - COUNT( * ) * 97 col0
----
-97

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - COUNT ( * ) * 97 col0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3950
SELECT - 36 * 1 DIV - 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT - 36 * 1 / - 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT - 6 * - 42 * - COUNT( ALL + 77 ) AS col1
----
-252

skipif mysql # not compatible
query I rowsort label-3951
SELECT - 6 * - 42 * - COUNT ( ALL + 77 ) AS col1
----
-252

query I rowsort
SELECT DISTINCT + 83 * - 46 AS col0
----
-3818

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT ALL MAX( - 34 ) + 4 * + 79
----
282

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL MAX ( - 34 ) + 4 * + 79
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + COUNT( * ) * COUNT( * ) + ( 69 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3954
SELECT + COUNT ( * ) * COUNT ( * ) + ( 69 ) AS col2
----
70

query I rowsort
SELECT DISTINCT 51 + + 17 AS col1
----
68

query I rowsort
SELECT ALL - 64 + + 32 - 52
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT + COUNT( * ) * 49 * 12 + 72 AS col0
----
660

skipif mysql # not compatible
query I rowsort label-3957
SELECT + COUNT ( * ) * 49 * 12 + 72 AS col0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT + ( + COUNT( * ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3958
SELECT + ( + COUNT ( * ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3959
SELECT + NULLIF ( - 94, COUNT( * ) / + ( + ( - 70 ) ) ) - 48 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3959
SELECT + NULLIF ( - 94, COUNT ( * ) / + ( + ( - 70 ) ) ) - 48 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT 91 + - NULLIF ( + 69, - 1 ) + 31 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + COUNT( * ) + 58 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-3961
SELECT + COUNT ( * ) + 58 AS col0
----
59

query I rowsort
SELECT ALL 19 + - - 83
----
102

query I rowsort
SELECT DISTINCT - COALESCE ( + 46, 59 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3964
SELECT + 37 + - MAX( DISTINCT + 22 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + 37 + - MAX ( DISTINCT + 22 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL NULLIF ( - NULLIF ( - - CASE NULLIF ( - 37, 41 ) WHEN COUNT( - 79 ) * ( + COALESCE ( - 28, 89 ) * 80 ) THEN NULL WHEN 65 THEN NULL WHEN 66 - MIN( DISTINCT + 46 ) THEN - CASE 99 WHEN 79 * - 7 THEN NULL WHEN 76 THEN + 18 * COALESCE ( - 25, 65 - COUNT( - 67 ) ) - 68 END + 92 ELSE NULL END, - 65 ), - 50 * 18 ) * + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL NULLIF ( - NULLIF ( - - CASE NULLIF ( - 37, 41 ) WHEN COUNT ( - 79 ) * ( + COALESCE ( - 28, 89 ) * 80 ) THEN NULL WHEN 65 THEN NULL WHEN 66 - MIN ( DISTINCT + 46 ) THEN - CASE 99 WHEN 79 * - 7 THEN NULL WHEN 76 THEN + 18 * COALESCE ( - 25, 65 - COUNT ( - 67 ) ) - 68 END + 92 ELSE NULL END, - 65 ), - 50 * 18 ) * + 69 AS col1
----
NULL

query II rowsort
SELECT DISTINCT 18 AS col0, + 95 AS col0
----
18
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT ALL COALESCE ( - 87, - + 8 * - 24 + + 57 ) - + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL COALESCE ( - 87, - + 8 * - 24 + + 57 ) - + COUNT ( * )
----
-88

query I rowsort
SELECT + 24 * + - 80 * - + 22 AS col1
----
42240

query I rowsort
SELECT - NULLIF ( - + 23, 67 ) AS col1
----
23

query I rowsort
SELECT - CASE - 1 WHEN - ( 60 ) + + 78 THEN NULL WHEN + 6 THEN 9 WHEN 32 + + 91 * - ( - 23 * + 52 + - 41 ) THEN NULL ELSE NULL END + + 18 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT ( + - COUNT( * ) ) - - 74 col0
----
73

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT ( + - COUNT ( * ) ) - - 74 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + NULLIF ( + - 81, - NULLIF ( + 46, + 34 / AVG ( ALL 63 ) - 61 ) ) * + MIN( ALL 6 )
----
-486

skipif mysql # not compatible
query I rowsort label-3972
SELECT + NULLIF ( + - 81, - NULLIF ( + 46, + 34 / AVG ( ALL 63 ) - 61 ) ) * + MIN ( ALL 6 )
----
-486

query I rowsort
SELECT DISTINCT + 11 * 62 AS col0
----
682

onlyif mysql # aggregate syntax: 
query II rowsort label-3974
SELECT ALL + COUNT( * ), + COALESCE ( + 30, 86 + COUNT( * ), + 31, + 54 * COUNT( * ), - COUNT( * ) * + COUNT( 8 ) ) + 36 * + 40 AS col1
----
1
1470

skipif mysql # not compatible
query II rowsort label-3974
SELECT ALL + COUNT ( * ), + COALESCE ( + 30, 86 + COUNT ( * ), + 31, + 54 * COUNT ( * ), - COUNT ( * ) * + COUNT ( 8 ) ) + 36 * + 40 AS col1
----
1
1470

query I rowsort
SELECT - 99 * + + 77
----
-7623

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3976
SELECT ALL - 29 DIV - NULLIF ( 66, + NULLIF ( 8, - CAST( NULLIF ( - 90, + 67 ) AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL - 29 / - NULLIF ( 66, + NULLIF ( 8, - CAST ( NULLIF ( - 90, + 67 ) AS INTEGER ) ) ) AS col2
----
0

query I rowsort
SELECT ( - - 19 )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3978
SELECT - 17 DIV + + 67
----
0

skipif mysql # not compatible
query I rowsort label-3978
SELECT - 17 / + + 67
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3979
SELECT + 90 DIV + 16 * + COUNT( * ) * - COUNT( ALL 91 ) - 4 * - 19 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-3979
SELECT + 90 / + 16 * + COUNT ( * ) * - COUNT ( ALL 91 ) - 4 * - 19 AS col2
----
71

query I rowsort
SELECT - 63 * + 74
----
-4662

query I rowsort
SELECT ALL - - 83 * 63
----
5229

query II rowsort
SELECT DISTINCT + 49 AS col1, 77 AS col2
----
49
77

query I rowsort
SELECT ALL - + 27 * - 29 + - 68 AS col2
----
715

query I rowsort
SELECT DISTINCT 28 * - - 43 * - 67 + - 74 + 54
----
-80688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT DISTINCT + - COALESCE ( + CAST( NULL AS SIGNED ), + 71 * 43 )
----
-3053

skipif mysql # not compatible
query I rowsort label-3985
SELECT DISTINCT + - COALESCE ( + CAST ( NULL AS INTEGER ), + 71 * 43 )
----
-3053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT ALL - CAST( NULL AS SIGNED ) * + + 85 * 10 + CAST( AVG ( - 83 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - CAST ( NULL AS INTEGER ) * + + 85 * 10 + CAST ( AVG ( - 83 ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3987
SELECT - 39 AS col2, - NULLIF ( 18, + 6 * + 27 - + CAST( - 81 AS SIGNED ) ) AS col2
----
-39
-18

skipif mysql # not compatible
query II rowsort label-3987
SELECT - 39 AS col2, - NULLIF ( 18, + 6 * + 27 - + CAST ( - 81 AS INTEGER ) ) AS col2
----
-39
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT + - 17 * - 28 * + - 82 * COALESCE ( - 60 * - MIN( DISTINCT 15 ), + 62 ) - - 46 + - 3
----
-35128757

skipif mysql # not compatible
query I rowsort label-3988
SELECT + - 17 * - 28 * + - 82 * COALESCE ( - 60 * - MIN ( DISTINCT 15 ), + 62 ) - - 46 + - 3
----
-35128757

query I rowsort
SELECT + 6 + + + 47
----
53

query II rowsort
SELECT ALL + 26 AS col2, 59
----
26
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3991
SELECT DISTINCT - COUNT( * ) * + MIN( DISTINCT + 33 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT - COUNT ( * ) * + MIN ( DISTINCT + 33 ) AS col0
----
-33

query I rowsort
SELECT - 63 * - + 1 AS col0
----
63

query I rowsort
SELECT ALL - 77 * - 59 AS col2
----
4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3994
SELECT - - COUNT( ALL + 23 ) DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-3994
SELECT - - COUNT ( ALL + 23 ) / + 97
----
0

query I rowsort
SELECT DISTINCT - - 61 * 4 AS col1
----
244

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - COUNT( * ) * + 87 + - 62 * ( COUNT( * ) ) + MAX( 41 )
----
-108

skipif mysql # not compatible
query I rowsort label-3996
SELECT - COUNT ( * ) * + 87 + - 62 * ( COUNT ( * ) ) + MAX ( 41 )
----
-108

query I rowsort
SELECT DISTINCT + CASE - 38 WHEN + - 99 THEN - 2 * - 79 WHEN + COALESCE ( 84, 73, 71 ) THEN NULL END * 12
----
NULL

query I rowsort
SELECT ALL - 59 * 18
----
-1062

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL CASE + + 79 WHEN + + 88 * + ( + 1 ) THEN NULL WHEN COUNT( - 70 ) * 60 + 81 * NULLIF ( + COUNT( * ), + 8 ) THEN COALESCE ( + 38, + 63 + + 7, - 87 * - 24 ) ELSE COUNT( * ) END - + 56 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL CASE + + 79 WHEN + + 88 * + ( + 1 ) THEN NULL WHEN COUNT ( - 70 ) * 60 + 81 * NULLIF ( + COUNT ( * ), + 8 ) THEN COALESCE ( + 38, + 63 + + 7, - 87 * - 24 ) ELSE COUNT ( * ) END - + 56 AS col1
----
-55

query I rowsort
SELECT + 65 * - 58 AS col0
----
-3770

query II rowsort
SELECT - 77 + 36, + 53 AS col1
----
-41
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4002
SELECT + NULLIF ( - CASE - 44 WHEN + - 15 THEN NULL WHEN 96 * - COUNT( * ) THEN + 54 * + 94 END, 96 ) * + 89 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT + NULLIF ( - CASE - 44 WHEN + - 15 THEN NULL WHEN 96 * - COUNT ( * ) THEN + 54 * + 94 END, 96 ) * + 89 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT - CAST( MAX( - 87 ) AS SIGNED )
----
87

skipif mysql # not compatible
query I rowsort label-4003
SELECT - CAST ( MAX ( - 87 ) AS INTEGER )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4004
SELECT + MAX( ALL + - CAST( NULL AS SIGNED ) ) * + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT + MAX ( ALL + - CAST ( NULL AS INTEGER ) ) * + - 40 AS col1
----
NULL

query I rowsort
SELECT + NULLIF ( + 10, - - 83 ) * - 63 col2
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT ALL COUNT( * ) * 42 * - 1 AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-4006
SELECT ALL COUNT ( * ) * 42 * - 1 AS col1
----
-42

query I rowsort
SELECT ALL NULLIF ( + 40, 28 * 68 ) AS col2
----
40

query I rowsort
SELECT DISTINCT 64 * + 79 AS col2
----
5056

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT + CASE - 35 WHEN + 64 - 52 * NULLIF ( - 95, + COUNT( * ) ) THEN NULL WHEN - 87 * 61 THEN + 34 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT + CASE - 35 WHEN + 64 - 52 * NULLIF ( - 95, + COUNT ( * ) ) THEN NULL WHEN - 87 * 61 THEN + 34 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 99 * 46 col2
----
4554

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + 23 * + 33 * + 88 + - 57 + 28 * COUNT( * ) AS col1
----
66763

skipif mysql # not compatible
query I rowsort label-4011
SELECT + 23 * + 33 * + 88 + - 57 + 28 * COUNT ( * ) AS col1
----
66763

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4012
SELECT MAX( DISTINCT + + 33 ) DIV + 98 - - 92 + + COUNT( * )
----
93

skipif mysql # not compatible
query I rowsort label-4012
SELECT MAX ( DISTINCT + + 33 ) / + 98 - - 92 + + COUNT ( * )
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT ALL 42 DIV - - 80 + 91 AS col2
----
91

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL 42 / - - 80 + 91 AS col2
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4014
SELECT ALL + MAX( + 91 ) * - 39 + + MIN( ALL 11 ) + - 29 DIV + 38 * - 54 AS col2
----
-3538

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL + MAX ( + 91 ) * - 39 + + MIN ( ALL 11 ) + - 29 / + 38 * - 54 AS col2
----
-3538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4015
SELECT + 32 + - 64 + CAST( NULL AS SIGNED ) + + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT + 32 + - 64 + CAST ( NULL AS INTEGER ) + + - 77
----
NULL

query I rowsort
SELECT DISTINCT 24 + + + 55 AS col1
----
79

query II rowsort
SELECT ALL + 64 + - 90, 54 AS col0
----
-26
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4018
SELECT DISTINCT + COUNT( * ) DIV 8 DIV + COUNT( 44 ) * - COUNT( * ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4018
SELECT DISTINCT + COUNT ( * ) / 8 / + COUNT ( 44 ) * - COUNT ( * ) + COUNT ( * )
----
1

query I rowsort
SELECT 61 * - 44 - 55
----
-2739

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL - 72 * - - CASE + - 75 WHEN + 26 * + 93 THEN - ( 96 ) ELSE NULL END + + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL - 72 * - - CASE + - 75 WHEN + 26 * + 93 THEN - ( 96 ) ELSE NULL END + + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 92 + + 31 AS col0, 85
----
123
85

query I rowsort
SELECT - 25 * - 93 + 53 - 37 AS col1
----
2341

query I rowsort
SELECT 51 + + - 78
----
-27

query I rowsort
SELECT + + ( - - 53 ) AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT + 81 - - MAX( + + 94 ) * - - 50
----
4781

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT + 81 - - MAX ( + + 94 ) * - - 50
----
4781

query I rowsort
SELECT ALL + + NULLIF ( - 55, + 99 ) - - - 46 AS col0
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4027
SELECT ( - 44 ) * ( + MAX( - 87 ) ) DIV + 82 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4027
SELECT ( - 44 ) * ( + MAX ( - 87 ) ) / + 82 AS col1
----
46

query I rowsort
SELECT ALL - 37 * - 1 - ( - + 22 ) AS col1
----
59

query I rowsort
SELECT 61 + + ( - 95 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4030
SELECT DISTINCT - 20 * - CASE 73 WHEN + + NULLIF ( + SUM( - ( + 39 ) ), MAX( 45 ) + ( 21 ) ) + - 36 THEN - 57 / - COALESCE ( + 50 / 55, 58 * + 38, 21 ) WHEN - 28 + + 80 THEN NULL WHEN + NULLIF ( + 91, CASE + ( + 54 ) WHEN NULLIF ( + SUM( 11 ), MAX( DISTINCT + 11 ) ) + + 41 THEN + CAST( + ( ( 11 ) ) AS SIGNED ) ELSE NULL END * 26 ) * ( + COUNT( * ) ) THEN NULL ELSE NULL END + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT - 20 * - CASE 73 WHEN + + NULLIF ( + SUM ( - ( + 39 ) ), MAX ( 45 ) + ( 21 ) ) + - 36 THEN - 57 / - COALESCE ( + 50 / 55, 58 * + 38, 21 ) WHEN - 28 + + 80 THEN NULL WHEN + NULLIF ( + 91, CASE + ( + 54 ) WHEN NULLIF ( + SUM ( 11 ), MAX ( DISTINCT + 11 ) ) + + 41 THEN + CAST ( + ( ( 11 ) ) AS INTEGER ) ELSE NULL END * 26 ) * ( + COUNT ( * ) ) THEN NULL ELSE NULL END + 94
----
NULL

query I rowsort
SELECT 10 * + ( 75 )
----
750

query I rowsort
SELECT 53 * + 27 * - COALESCE ( - 81, - 39 ) - + 38
----
115873

onlyif mysql # aggregate syntax: 
query II rowsort label-4033
SELECT 24 - - - 36 * - 66 AS col2, + 68 + - - MIN( ALL 49 )
----
2400
117

skipif mysql # not compatible
query II rowsort label-4033
SELECT 24 - - - 36 * - 66 AS col2, + 68 + - - MIN ( ALL 49 )
----
2400
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT 31 + + 67 - + 23 * + CAST( 73 AS SIGNED ) * - COALESCE ( + 10, 63 + + 59 )
----
16888

skipif mysql # not compatible
query I rowsort label-4034
SELECT 31 + + 67 - + 23 * + CAST ( 73 AS INTEGER ) * - COALESCE ( + 10, 63 + + 59 )
----
16888

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4035
SELECT + 64 * 17 DIV COUNT( * ) + - + 54
----
1034

skipif mysql # not compatible
query I rowsort label-4035
SELECT + 64 * 17 / COUNT ( * ) + - + 54
----
1034

onlyif mysql # DIV for integer division: 
query I rowsort label-4036
SELECT 69 DIV 68 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4036
SELECT 69 / 68 AS col1
----
1

query I rowsort
SELECT 40 * - 41 AS col0
----
-1640

query I rowsort
SELECT 76 + - 92 * + 46 + 53 AS col1
----
-4103

query I rowsort
SELECT ALL - 28 * + 72 AS col2
----
-2016

onlyif mysql # aggregate syntax: 
query II rowsort label-4040
SELECT MIN( + - 7 ) + - - 23 AS col0, + 70 AS col0
----
16
70

skipif mysql # not compatible
query II rowsort label-4040
SELECT MIN ( + - 7 ) + - - 23 AS col0, + 70 AS col0
----
16
70

query I rowsort
SELECT ALL - 38 * + - 70
----
2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4042
SELECT DISTINCT + ( 0 ) + CAST( NULL AS SIGNED ) + - 90 + 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4042
SELECT DISTINCT + ( 0 ) + CAST ( NULL AS INTEGER ) + - 90 + 21 AS col0
----
NULL

query I rowsort
SELECT ALL - 29 * - 2 AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4044
SELECT CASE 52 WHEN + 15 THEN NULL WHEN + + COALESCE ( 29, + COUNT( DISTINCT 7 ), - SUM( + 27 ) * + COUNT( * ) + 45 ) + + 9 THEN NULL ELSE 11 + NULLIF ( 34 + 44, + CAST( ( 13 ) AS DECIMAL ) ) END + 21
----
110

skipif mysql # not compatible
query I rowsort label-4044
SELECT CASE 52 WHEN + 15 THEN NULL WHEN + + COALESCE ( 29, + COUNT ( DISTINCT 7 ), - SUM ( + 27 ) * + COUNT ( * ) + 45 ) + + 9 THEN NULL ELSE 11 + NULLIF ( 34 + 44, + CAST ( ( 13 ) AS REAL ) ) END + 21
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT DISTINCT - 11 * + - CASE + + 6 WHEN + - 42 THEN 93 WHEN 33 + - COUNT( 47 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT - 11 * + - CASE + + 6 WHEN + - 42 THEN 93 WHEN 33 + - COUNT ( 47 ) THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT 85 DIV - 13 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4046
SELECT 85 / - 13 AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT 55 * + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4047
SELECT 55 * + - COUNT ( * )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT ALL MAX( - - 14 ) + 89 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL MAX ( - - 14 ) + 89 AS col1
----
103

query I rowsort
SELECT 0 + + 69 * ( 54 ) col0
----
3726

onlyif mysql # DIV for integer division: 
query I rowsort label-4050
SELECT 75 DIV - 93
----
0

skipif mysql # not compatible
query I rowsort label-4050
SELECT 75 / - 93
----
0

query I rowsort
SELECT ALL 52 + - 0 * - + 45 + + 67
----
119

query I rowsort
SELECT ALL 55 * 33
----
1815

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - - 66 / 2 / NULLIF ( + 37, + 37 ) + - ( + 80 + MAX( - ( + 53 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT - - 66 / 2 / NULLIF ( + 37, + 37 ) + - ( + 80 + MAX ( - ( + 53 ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4054
SELECT 97 * 38 + 30 DIV - COUNT( * ) AS col1
----
3656

skipif mysql # not compatible
query I rowsort label-4054
SELECT 97 * 38 + 30 / - COUNT ( * ) AS col1
----
3656

query I rowsort
SELECT ALL 13 + - 72 * 6
----
-419

query I rowsort
SELECT ALL - 76 * 11
----
-836

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT CASE WHEN ( + COALESCE ( + 21, + COUNT( DISTINCT - NULLIF ( 33, - 94 + 2 ) ) ) ) IN ( 81 + SUM( 81 ) ) THEN COUNT( * ) + 93 * 17 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4057
SELECT CASE WHEN ( + COALESCE ( + 21, + COUNT ( DISTINCT - NULLIF ( 33, - 94 + 2 ) ) ) ) IN ( 81 + SUM ( 81 ) ) THEN COUNT ( * ) + 93 * 17 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 40 * - 43 + - 69 AS col0
----
-1789

query I rowsort
SELECT 20 * - - 58
----
1160

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT DISTINCT - - ( COUNT( - + ( 27 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4060
SELECT DISTINCT - - ( COUNT ( - + ( 27 ) ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4061
SELECT ALL + 52 - - + 71 + 82 * + + 78 + - + 12 + CASE ( + 67 ) WHEN 98 THEN - 51 / CAST( 27 AS SIGNED ) + COALESCE ( 42, 82 / - CAST( NULL AS DECIMAL ) ) WHEN 69 + - 14 * + 13 THEN NULL WHEN 72 * - CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL + 52 - - + 71 + 82 * + + 78 + - + 12 + CASE ( + 67 ) WHEN 98 THEN - 51 / CAST ( 27 AS INTEGER ) + COALESCE ( 42, 82 / - CAST ( NULL AS REAL ) ) WHEN 69 + - 14 * + 13 THEN NULL WHEN 72 * - CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 83 * - - 79 AS col2
----
-6557

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4063
SELECT - ( COUNT( * ) ) / + + 11 + 38 + + COUNT( * ) / - 8 - CASE - 69 WHEN 30 / ( + 29 ) THEN NULL WHEN + COUNT( * ) + 88 THEN 90 / CAST( + 32 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4063
SELECT - ( COUNT ( * ) ) / + + 11 + 38 + + COUNT ( * ) / - 8 - CASE - 69 WHEN 30 / ( + 29 ) THEN NULL WHEN + COUNT ( * ) + 88 THEN 90 / CAST ( + 32 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT COALESCE ( - 91, + ( 19 ), 13 + - 6 ) AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT ALL 42 DIV 10
----
4

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL 42 / 10
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4066
SELECT ALL + COUNT( * ) DIV 60 * 65 + - - 8
----
8

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + COUNT ( * ) / 60 * 65 + - - 8
----
8

query I rowsort
SELECT 68 * - - 62 AS col1
----
4216

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT + ( 39 ) + + + 89 - 67 * + + ( 43 ) * + 48 * + MAX( + 3 ) col1
----
-414736

skipif mysql # not compatible
query I rowsort label-4068
SELECT + ( 39 ) + + + 89 - 67 * + + ( 43 ) * + 48 * + MAX ( + 3 ) col1
----
-414736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4069
SELECT + 60 * - - 73 - - + ( + 3 ) + + 70 + + CASE COALESCE ( 36, MAX( ALL NULLIF ( 35, - 27 ) ) + 19 ) WHEN 0 THEN + 68 WHEN 59 + + 47 THEN - CAST( NULL AS SIGNED ) * + 14 WHEN - CAST( NULL AS SIGNED ) * - 46 THEN 51 ELSE NULL END * + 75 * + CAST( COUNT( * ) - - 17 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT + 60 * - - 73 - - + ( + 3 ) + + 70 + + CASE COALESCE ( 36, MAX ( ALL NULLIF ( 35, - 27 ) ) + 19 ) WHEN 0 THEN + 68 WHEN 59 + + 47 THEN - CAST ( NULL AS INTEGER ) * + 14 WHEN - CAST ( NULL AS INTEGER ) * - 46 THEN 51 ELSE NULL END * + 75 * + CAST ( COUNT ( * ) - - 17 AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4070
SELECT ( + 95 ) DIV ( - 48 ) AS col1, + 61 * - - 39 * 95
----
-1
226005

skipif mysql # not compatible
query II rowsort label-4070
SELECT ( + 95 ) / ( - 48 ) AS col1, + 61 * - - 39 * 95
----
-1
226005

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL - COALESCE ( + 17, - ( MIN( DISTINCT + 75 ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL - COALESCE ( + 17, - ( MIN ( DISTINCT + 75 ) ) )
----
-17

query I rowsort
SELECT ALL - 42 * - + 63 * 65 AS col1
----
171990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4073
SELECT 50 * + ( + CASE COUNT( * ) WHEN - 74 * - COUNT( * ) THEN NULL WHEN 9 THEN + CAST( 81 AS SIGNED ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT 50 * + ( + CASE COUNT ( * ) WHEN - 74 * - COUNT ( * ) THEN NULL WHEN 9 THEN + CAST ( 81 AS INTEGER ) END )
----
NULL

query I rowsort
SELECT ALL 36 * - - 17
----
612

query I rowsort
SELECT DISTINCT ( 22 ) + + COALESCE ( - 34, - 22 ) AS col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4076
SELECT ALL + 70 + - + CAST( + 45 AS SIGNED ) + 36 AS col0, - 29 * + SUM( DISTINCT - 85 )
----
61
2465

skipif mysql # not compatible
query II rowsort label-4076
SELECT ALL + 70 + - + CAST ( + 45 AS INTEGER ) + 36 AS col0, - 29 * + SUM ( DISTINCT - 85 )
----
61
2465

query I rowsort
SELECT ALL + 97 + + + 8 + 5 + 86 - + 76
----
120

query I rowsort
SELECT ALL - 42 * - 88
----
3696

onlyif mysql # aggregate syntax: 
query II rowsort label-4079
SELECT 75 * - 48 * 87 * - COUNT( * ), 24 AS col1
----
313200
24

skipif mysql # not compatible
query II rowsort label-4079
SELECT 75 * - 48 * 87 * - COUNT ( * ), 24 AS col1
----
313200
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( * ) - - - 28
----
-27

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( * ) - - - 28
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT ALL + 70 + + COALESCE ( + 40, COUNT( + 60 ) )
----
110

skipif mysql # not compatible
query I rowsort label-4081
SELECT ALL + 70 + + COALESCE ( + 40, COUNT ( + 60 ) )
----
110

query II rowsort
SELECT 56 + + - 80 AS col2, - 55
----
-24
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4083
SELECT 65 + + SUM( CAST( NULL AS SIGNED ) ) + - 30 + + 28 / + 79 * + ( + 88 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4083
SELECT 65 + + SUM ( CAST ( NULL AS INTEGER ) ) + - 30 + + 28 / + 79 * + ( + 88 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 98 + - 94 AS col0
----
-192

query II rowsort
SELECT 19 AS col0, - 60 + 95 col0
----
19
35

query I rowsort
SELECT ALL + 34 + - + 18 + - 7
----
9

query I rowsort
SELECT DISTINCT + 80 * - 19
----
-1520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4088
SELECT ALL + 7 DIV ( + NULLIF ( + - NULLIF ( + + COUNT( * ), - - MIN( DISTINCT 93 ) ), 76 * + 23 ) ) * 90
----
-630

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL + 7 / ( + NULLIF ( + - NULLIF ( + + COUNT ( * ), - - MIN ( DISTINCT 93 ) ), 76 * + 23 ) ) * 90
----
-630

query I rowsort
SELECT DISTINCT - 53 + ( + 88 )
----
35

query I rowsort
SELECT - 10 + + 92 AS col0
----
82

query I rowsort
SELECT ALL - 35 + + - 37 - - 43 col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - COUNT( * ) + + + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4092
SELECT - COUNT ( * ) + + + 2 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4093
SELECT - - CAST( NULL AS SIGNED ) + 4 + 85 * + COUNT( * ) * 80 + + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT - - CAST ( NULL AS INTEGER ) + 4 + 85 * + COUNT ( * ) * 80 + + 55
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4094
SELECT - + 90 * - CAST( 42 AS DECIMAL ) + + + 26 - + MIN( 94 ) + + CAST( NULL AS SIGNED ) / 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT - + 90 * - CAST ( 42 AS REAL ) + + + 26 - + MIN ( 94 ) + + CAST ( NULL AS INTEGER ) / 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT ALL COUNT( * ) DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-4095
SELECT ALL COUNT ( * ) / + - 65
----
0

query I rowsort
SELECT - 3 * + - 94
----
282

query I rowsort
SELECT - - 92 + + + 68
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT ALL - 26 * COUNT( * ) - 56 * - 16 + - COUNT( * ) + - 9 AS col0
----
860

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL - 26 * COUNT ( * ) - 56 * - 16 + - COUNT ( * ) + - 9 AS col0
----
860

query I rowsort
SELECT - 16 * - COALESCE ( - 46, - 85 )
----
-736

query II rowsort
SELECT ALL + 80 AS col2, - 10 * 49
----
80
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT + 30 + - CASE 68 WHEN - - 95 * + 60 * - 21 / 20 - - COUNT( * ) THEN + 8 + CASE + ( COUNT( * ) ) WHEN 97 THEN NULL WHEN - 82 THEN + COUNT( * ) ELSE - 28 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + 30 + - CASE 68 WHEN - - 95 * + 60 * - 21 / 20 - - COUNT ( * ) THEN + 8 + CASE + ( COUNT ( * ) ) WHEN 97 THEN NULL WHEN - 82 THEN + COUNT ( * ) ELSE - 28 END END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4102
SELECT ALL MAX( + + 63 ) * CAST( - 85 AS SIGNED ) AS col2, - 58 * - 69 + 60
----
-5355
4062

skipif mysql # not compatible
query II rowsort label-4102
SELECT ALL MAX ( + + 63 ) * CAST ( - 85 AS INTEGER ) AS col2, - 58 * - 69 + 60
----
-5355
4062

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4103
SELECT - 25 * - MIN( DISTINCT - 42 ) * - 5 - + + CASE + 59 WHEN CAST( + 81 AS SIGNED ) DIV - COUNT( * ) + ( CAST( COUNT( * ) AS SIGNED ) ) THEN NULL ELSE MAX( 86 ) END DIV - 83 + - 90 AS col0
----
5161

skipif mysql # not compatible
query I rowsort label-4103
SELECT - 25 * - MIN ( DISTINCT - 42 ) * - 5 - + + CASE + 59 WHEN CAST ( + 81 AS INTEGER ) / - COUNT ( * ) + ( CAST ( COUNT ( * ) AS INTEGER ) ) THEN NULL ELSE MAX ( 86 ) END / - 83 + - 90 AS col0
----
5161

onlyif mysql # DIV for integer division: 
query I rowsort label-4104
SELECT - + 46 DIV 53 + 47 + + 94 DIV - + 19 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4104
SELECT - + 46 / 53 + 47 + + 94 / - + 19 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4105
SELECT ( - CAST( + + 92 AS SIGNED ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4105
SELECT ( - CAST ( + + 92 AS INTEGER ) ) AS col0
----
-92

query I rowsort
SELECT ALL + NULLIF ( + + ( + 13 ), - ( + 28 ) ) AS col0
----
13

query I rowsort
SELECT + 19 + + 57
----
76

query II rowsort
SELECT + + 67 AS col2, - 10 * - ( - 22 ) AS col2
----
67
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT 58 * NULLIF ( 93, - CASE + 2 WHEN + + 39 THEN - 82 / + 18 END + + COUNT( * ) ) + - 65
----
5329

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT 58 * NULLIF ( 93, - CASE + 2 WHEN + + 39 THEN - 82 / + 18 END + + COUNT ( * ) ) + - 65
----
5329

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4110
SELECT + CASE - 94 WHEN + 46 + ( + CAST( - 98 AS DECIMAL ) ) / + - 75 THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4110
SELECT + CASE - 94 WHEN + 46 + ( + CAST ( - 98 AS REAL ) ) / + - 75 THEN + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4111
SELECT ALL NULLIF ( ( + + 52 ), - - 34 + - COALESCE ( 28, - NULLIF ( + 66, + 35 + 86 ) ) * 84 ) * COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL NULLIF ( ( + + 52 ), - - 34 + - COALESCE ( 28, - NULLIF ( + 66, + 35 + 86 ) ) * 84 ) * COUNT ( * )
----
52

query I rowsort
SELECT DISTINCT + 43 * - 85 + + 59
----
-3596

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4113
SELECT ALL 50 * - + 29 + COUNT( - 80 ) + 77 AS col0, + 61 + + + COALESCE ( 18, + 52 - - 31 * ( + 61 ) ) + 90 DIV + ( - MIN( ALL 55 ) )
----
-1372
78

skipif mysql # not compatible
query II rowsort label-4113
SELECT ALL 50 * - + 29 + COUNT ( - 80 ) + 77 AS col0, + 61 + + + COALESCE ( 18, + 52 - - 31 * ( + 61 ) ) + 90 / + ( - MIN ( ALL 55 ) )
----
-1372
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT + 24 + + - SUM( - 21 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-4114
SELECT + 24 + + - SUM ( - 21 ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL 75 * 83 + ( - ( - + MIN( 88 ) ) ) * - - 31 + 66
----
9019

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL 75 * 83 + ( - ( - + MIN ( 88 ) ) ) * - - 31 + 66
----
9019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT DISTINCT 12 * ( + 81 ) DIV - COUNT( * ) + + + 67 AS col0
----
-905

skipif mysql # not compatible
query I rowsort label-4116
SELECT DISTINCT 12 * ( + 81 ) / - COUNT ( * ) + + + 67 AS col0
----
-905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4117
SELECT + COUNT( * ) + + 87 * - 35 * - 1 * + - CAST( + 13 AS SIGNED ) AS col1
----
-39584

skipif mysql # not compatible
query I rowsort label-4117
SELECT + COUNT ( * ) + + 87 * - 35 * - 1 * + - CAST ( + 13 AS INTEGER ) AS col1
----
-39584

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT COALESCE ( - MAX( ALL ( 56 ) ), 18 ) * - 26 + + + 33 AS col1
----
1489

skipif mysql # not compatible
query I rowsort label-4118
SELECT COALESCE ( - MAX ( ALL ( 56 ) ), 18 ) * - 26 + + + 33 AS col1
----
1489

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT - SUM( - + 90 ) - - 55 col0
----
145

skipif mysql # not compatible
query I rowsort label-4119
SELECT - SUM ( - + 90 ) - - 55 col0
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4120
SELECT + CASE 70 WHEN + - 38 DIV + 18 THEN NULL ELSE - - COUNT( * ) END DIV - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4120
SELECT + CASE 70 WHEN + - 38 / + 18 THEN NULL ELSE - - COUNT ( * ) END / - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT - 18 * + COALESCE ( + + 57, + + MAX( DISTINCT - 15 ) + 46, + 86 * 76 + - COALESCE ( - 66 + 31, 10 * + 25 ) ) + ( - 60 )
----
-1086

skipif mysql # not compatible
query I rowsort label-4121
SELECT - 18 * + COALESCE ( + + 57, + + MAX ( DISTINCT - 15 ) + 46, + 86 * 76 + - COALESCE ( - 66 + 31, 10 * + 25 ) ) + ( - 60 )
----
-1086

query I rowsort
SELECT ALL + 66 + 55 + - 72
----
49

query III rowsort
SELECT ALL - 11 * - - 88, 64 * - 28 * - - 54 col0, - 80 AS col2
----
-968
-96768
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - ( COUNT( - 35 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4124
SELECT - ( COUNT ( - 35 ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT - SUM( DISTINCT + 72 ) * - COUNT( * ) + - SUM( ALL - - 24 ) + + - 7 * - MIN( DISTINCT + 72 ) * 34 AS col0
----
17184

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT - SUM ( DISTINCT + 72 ) * - COUNT ( * ) + - SUM ( ALL - - 24 ) + + - 7 * - MIN ( DISTINCT + 72 ) * 34 AS col0
----
17184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4126
SELECT ALL MAX( - 53 ), SUM( DISTINCT - 92 ) - + + 40 - 28 + - CAST( COUNT( * ) AS SIGNED ) * - 86 * SUM( 55 ) col2
----
-53
4570

skipif mysql # not compatible
query II rowsort label-4126
SELECT ALL MAX ( - 53 ), SUM ( DISTINCT - 92 ) - + + 40 - 28 + - CAST ( COUNT ( * ) AS INTEGER ) * - 86 * SUM ( 55 ) col2
----
-53
4570

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL ( - COUNT( - + 9 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL ( - COUNT ( - + 9 ) )
----
-1

query I rowsort
SELECT - 10 + + 95
----
85

query I rowsort
SELECT ALL 16 - - + COALESCE ( + 55, - 33 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4130
SELECT - ( + 47 ) col1, - COUNT( DISTINCT + - 39 ) + - - CAST( NULL AS SIGNED )
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-4130
SELECT - ( + 47 ) col1, - COUNT ( DISTINCT + - 39 ) + - - CAST ( NULL AS INTEGER )
----
-47
NULL

query I rowsort
SELECT - 87 + 0 + + COALESCE ( 96, - 22 * - + 64 ) + + - 60 + + 61 * 12 * + 14 AS col2
----
10197

onlyif mysql # aggregate syntax: 
query I rowsort label-4132
SELECT - ( MIN( - 40 ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-4132
SELECT - ( MIN ( - 40 ) ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT ALL + ( + 0 ), COUNT( * ) col0
----
0
1

skipif mysql # not compatible
query II rowsort label-4133
SELECT ALL + ( + 0 ), COUNT ( * ) col0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT - - CAST( 57 AS SIGNED ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-4134
SELECT - - CAST ( 57 AS INTEGER ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT - 34 + 14 * 20 + - MAX( + 86 )
----
160

skipif mysql # not compatible
query I rowsort label-4135
SELECT - 34 + 14 * 20 + - MAX ( + 86 )
----
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT - 48 + - 42 + - 24 * + - ( - + ( + 17 ) ) / - - 70 * CAST( NULL AS SIGNED ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT - 48 + - 42 + - 24 * + - ( - + ( + 17 ) ) / - - 70 * CAST ( NULL AS INTEGER ) * + 97
----
NULL

query I rowsort
SELECT COALESCE ( + + 32, - 71 * - 91 )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT - MIN( ALL - ( - + 54 ) ) AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT - MIN ( ALL - ( - + 54 ) ) AS col0
----
-54

query I rowsort
SELECT - 0 * 21
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT DISTINCT + + ( + 74 ) / CASE + 68 WHEN 28 * + 75 THEN - + 66 * - CAST( NULL AS SIGNED ) - - 47 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT + + ( + 74 ) / CASE + 68 WHEN 28 * + 75 THEN - + 66 * - CAST ( NULL AS INTEGER ) - - 47 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 61 * + + 85 - - 79 AS col0
----
5264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4142
SELECT CAST( - 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4142
SELECT CAST ( - 2 AS INTEGER ) AS col0
----
-2

query I rowsort
SELECT ALL + 50 * - + 87
----
-4350

query I rowsort
SELECT - - 39 * - - 57
----
2223

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT DISTINCT + + 52 * - COUNT( * ) AS col2, + 74 - + 70 AS col1
----
-52
4

skipif mysql # not compatible
query II rowsort label-4145
SELECT DISTINCT + + 52 * - COUNT ( * ) AS col2, + 74 - + 70 AS col1
----
-52
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - CASE 14 WHEN + + CASE - 18 WHEN 56 THEN 37 + - - 30 - 63 * - 30 END * - ( - ( 9 ) - COUNT( * ) ) THEN + ( - 96 ) * + COUNT( * ) END * + 17 - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT - CASE 14 WHEN + + CASE - 18 WHEN 56 THEN 37 + - - 30 - 63 * - 30 END * - ( - ( 9 ) - COUNT ( * ) ) THEN + ( - 96 ) * + COUNT ( * ) END * + 17 - 92 AS col2
----
NULL

query I rowsort
SELECT + - 5 col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT - ( - COALESCE ( 24, - COUNT( ( + 19 ) ) ) ) DIV + 98 + + 94 col0
----
94

skipif mysql # not compatible
query I rowsort label-4148
SELECT - ( - COALESCE ( 24, - COUNT ( ( + 19 ) ) ) ) / + 98 + + 94 col0
----
94

query I rowsort
SELECT - 8 + - + 86 AS col1
----
-94

query I rowsort
SELECT - 17 * 57 * - + 28 * + 29 - - + CASE + 20 WHEN - AVG ( 48 ) THEN 55 + 92 END - 86 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4151
SELECT ALL + + 98 / - 81 + + + 49 + COUNT( * ) + + 70 * CAST( NULL AS SIGNED ) * - - 60 + - ( COUNT( + 43 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL + + 98 / - 81 + + + 49 + COUNT ( * ) + + 70 * CAST ( NULL AS INTEGER ) * - - 60 + - ( COUNT ( + 43 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT ALL + 70 DIV - + 98 + + - 48 + + 26 + 98 * 88 AS col1
----
8602

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL + 70 / - + 98 + + - 48 + + 26 + 98 * 88 AS col1
----
8602

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT + COALESCE ( - - MIN( ALL 97 ), 54 ) * - - 36
----
3492

skipif mysql # not compatible
query I rowsort label-4153
SELECT + COALESCE ( - - MIN ( ALL 97 ), 54 ) * - - 36
----
3492

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT + 83 - + 22 + - 8 * + 45 + - COUNT( * )
----
-300

skipif mysql # not compatible
query I rowsort label-4154
SELECT + 83 - + 22 + - 8 * + 45 + - COUNT ( * )
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL 8 * + COUNT( * ) * + 99 / - - CAST( + 68 AS SIGNED ) * + NULLIF ( CAST( 21 AS SIGNED ), - NULLIF ( COUNT( * ), 15 ) + NULLIF ( NULLIF ( + 47, CAST( + 47 AS SIGNED ) * CAST( NULL AS SIGNED ) ) + - 77, - 39 + 69 ) ) * - CAST( NULL AS SIGNED ) + - COALESCE ( 85, + 77 ) * + COUNT( * ) + + COALESCE ( + ( + 85 ), 32 * ( 72 ) ) * 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL 8 * + COUNT ( * ) * + 99 / - - CAST ( + 68 AS INTEGER ) * + NULLIF ( CAST ( 21 AS INTEGER ), - NULLIF ( COUNT ( * ), 15 ) + NULLIF ( NULLIF ( + 47, CAST ( + 47 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) + - 77, - 39 + 69 ) ) * - CAST ( NULL AS INTEGER ) + - COALESCE ( 85, + 77 ) * + COUNT ( * ) + + COALESCE ( + ( + 85 ), 32 * ( 72 ) ) * 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + MIN( DISTINCT - 94 ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-4156
SELECT + MIN ( DISTINCT - 94 ) col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL 83 * ( - 5 ) * + - COUNT( * ) + + 79 AS col0
----
494

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL 83 * ( - 5 ) * + - COUNT ( * ) + + 79 AS col0
----
494

query I rowsort
SELECT 16 * + ( + 92 ) + - 59
----
1413

query I rowsort
SELECT + 71 + 89
----
160

query I rowsort
SELECT ALL + 7 * + 75 AS col1
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT - 52 - - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4161
SELECT DISTINCT - 52 - - COUNT ( * )
----
-51

query II rowsort
SELECT ALL 41 AS col2, - 48 AS col1
----
41
-48

query I rowsort
SELECT DISTINCT 40 - + 46 col1
----
-6

query II rowsort
SELECT ALL 94, + 97 AS col0
----
94
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4165
SELECT DISTINCT + 35 DIV + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT DISTINCT + 35 / + 65 AS col2
----
0

query II rowsort
SELECT 52, 17 AS col1
----
52
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4167
SELECT - 50, - CAST( - + 67 AS SIGNED ) AS col0
----
-50
67

skipif mysql # not compatible
query II rowsort label-4167
SELECT - 50, - CAST ( - + 67 AS INTEGER ) AS col0
----
-50
67

query I rowsort
SELECT 84 * - 44
----
-3696

query I rowsort
SELECT 19 * + 33 AS col1
----
627

query I rowsort
SELECT 90 + 23
----
113

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT 25 DIV + - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT 25 / + - 90 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL 86 * - COUNT( 81 )
----
-86

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL 86 * - COUNT ( 81 )
----
-86

query I rowsort
SELECT 82 + + 90
----
172

query II rowsort
SELECT ALL - 14 - + 39 + + 98 AS col1, 14 AS col1
----
45
14

query I rowsort
SELECT 13 * - 19 col2
----
-247

query I rowsort
SELECT - 76 + 70
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT COUNT( DISTINCT 28 ) * + COUNT( * ) * - 10 + 6
----
-4

skipif mysql # not compatible
query I rowsort label-4177
SELECT COUNT ( DISTINCT 28 ) * + COUNT ( * ) * - 10 + 6
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT 5 - - + 66 + 94 + - 34 * COUNT( + 15 ) col2
----
131

skipif mysql # not compatible
query I rowsort label-4178
SELECT 5 - - + 66 + 94 + - 34 * COUNT ( + 15 ) col2
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4179
SELECT ALL - MAX( DISTINCT + - CAST( 16 AS SIGNED ) ) * + + SUM( ALL - + ( 50 ) ) + 63
----
-737

skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL - MAX ( DISTINCT + - CAST ( 16 AS INTEGER ) ) * + + SUM ( ALL - + ( 50 ) ) + 63
----
-737

query I rowsort
SELECT ( - 87 ) + 89
----
2

query II rowsort
SELECT - 92, 6 * - 25 + 18 + - - 20 AS col2
----
-92
-112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4182
SELECT + 25 + 94 + - CASE - ( - - NULLIF ( - 64, - 69 ) ) WHEN + + 38 - + 86 THEN 77 / + MIN( - CAST( NULL AS SIGNED ) ) WHEN 50 THEN NULL ELSE NULL END + NULLIF ( 65 + + MAX( DISTINCT - 49 ), + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 25 + 94 + - CASE - ( - - NULLIF ( - 64, - 69 ) ) WHEN + + 38 - + 86 THEN 77 / + MIN ( - CAST ( NULL AS INTEGER ) ) WHEN 50 THEN NULL ELSE NULL END + NULLIF ( 65 + + MAX ( DISTINCT - 49 ), + 92 )
----
NULL

query I rowsort
SELECT 84 + + + 23 * - - 99 + - 44 AS col0
----
2317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4184
SELECT 30 + - 14 + + + CASE + 89 WHEN - 69 THEN + + 56 ELSE 34 END - MAX( CAST( 11 AS SIGNED ) ) * CAST( 0 - 47 DIV 73 AS SIGNED )
----
50

skipif mysql # not compatible
query I rowsort label-4184
SELECT 30 + - 14 + + + CASE + 89 WHEN - 69 THEN + + 56 ELSE 34 END - MAX ( CAST ( 11 AS INTEGER ) ) * CAST ( 0 - 47 / 73 AS INTEGER )
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-4185
SELECT + 58 * + COUNT( * ) * - 82 * + 93 - 95 * + 46, 15 * + COALESCE ( - 99, + 31, + 24 ) * MIN( 81 ) AS col0
----
-446678
-120285

skipif mysql # not compatible
query II rowsort label-4185
SELECT + 58 * + COUNT ( * ) * - 82 * + 93 - 95 * + 46, 15 * + COALESCE ( - 99, + 31, + 24 ) * MIN ( 81 ) AS col0
----
-446678
-120285

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL - MAX( - 42 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - MAX ( - 42 ) AS col1
----
42

query I rowsort
SELECT + + NULLIF ( + 72, - + 35 - + AVG ( DISTINCT + 96 ) ) col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL - + CASE 14 WHEN - + 73 THEN NULL WHEN 2 THEN 14 - - 99 / 52 * + CAST( + 7 AS SIGNED ) WHEN + 49 THEN NULL WHEN + 77 THEN 24 ELSE NULL END + NULLIF ( 32, + 88 + + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL - + CASE 14 WHEN - + 73 THEN NULL WHEN 2 THEN 14 - - 99 / 52 * + CAST ( + 7 AS INTEGER ) WHEN + 49 THEN NULL WHEN + 77 THEN 24 ELSE NULL END + NULLIF ( 32, + 88 + + 97 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4189
SELECT ( 75 ) + + 52, + COUNT( * ) DIV + + 41 * - 1 AS col0
----
127
0

skipif mysql # not compatible
query II rowsort label-4189
SELECT ( 75 ) + + 52, + COUNT ( * ) / + + 41 * - 1 AS col0
----
127
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4190
SELECT 30 DIV - 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4190
SELECT 30 / - 94 AS col2
----
0

query II rowsort
SELECT + 78 * 47 + + + 70, - 32 AS col1
----
3736
-32

query I rowsort
SELECT ALL + 38 + + 53 col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL - 83 + MIN( ALL + 76 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - 83 + MIN ( ALL + 76 ) AS col2
----
-7

query I rowsort
SELECT DISTINCT - 66 + - - 30 * - 61 * + 73 AS col0
----
-133656

onlyif mysql # DIV for integer division: 
query II rowsort label-4195
SELECT ALL - ( + 2 ) AS col1, + COALESCE ( - 80, - 35 + - 59, - 79 + - 73 - 0 DIV 16 ) AS col2
----
-2
-80

skipif mysql # not compatible
query II rowsort label-4195
SELECT ALL - ( + 2 ) AS col1, + COALESCE ( - 80, - 35 + - 59, - 79 + - 73 - 0 / 16 ) AS col2
----
-2
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4196
SELECT COUNT( * ) * - + 42 DIV - 62 col0
----
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT COUNT ( * ) * - + 42 / - 62 col0
----
0

query II rowsort
SELECT 4 + - 75 AS col0, + 41 AS col0
----
-71
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT 75 * COUNT( * ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4198
SELECT 75 * COUNT ( * ) AS col2
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4199
SELECT ALL - 39 / + + CAST( CASE 54 WHEN 80 * + 42 + - + 52 + 27 THEN - 83 END AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - 39 / + + CAST ( CASE 54 WHEN 80 * + 42 + - + 52 + 27 THEN - 83 END AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 3 - 49 AS col0
----
-46

query I rowsort
SELECT 74 * - ( + 18 )
----
-1332

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT + COUNT( * ) * COUNT( * ) + + 83 * - + 60 col0
----
-4979

skipif mysql # not compatible
query I rowsort label-4202
SELECT + COUNT ( * ) * COUNT ( * ) + + 83 * - + 60 col0
----
-4979

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4203
SELECT 29 * 99 AS col1, + CAST( NULL AS SIGNED )
----
2871
NULL

skipif mysql # not compatible
query II rowsort label-4203
SELECT 29 * 99 AS col1, + CAST ( NULL AS INTEGER )
----
2871
NULL

query I rowsort
SELECT ALL 46 * - 38 AS col2
----
-1748

query I rowsort
SELECT DISTINCT - 16 * + NULLIF ( - 23, + + 77 + + - 57 ) + + 60 col2
----
428

query I rowsort
SELECT + 74 * + 28
----
2072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4207
SELECT - 40 DIV 92, - COUNT( * ) AS col0
----
0
-1

skipif mysql # not compatible
query II rowsort label-4207
SELECT - 40 / 92, - COUNT ( * ) AS col0
----
0
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4208
SELECT - NULLIF ( + 64, + + COUNT( ALL + 17 ) ) * - COALESCE ( + - COUNT( * ), + 24 + 80 + - + 1 DIV + 1, 98 - - 52 * - MIN( - ( + 78 ) ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-4208
SELECT - NULLIF ( + 64, + + COUNT ( ALL + 17 ) ) * - COALESCE ( + - COUNT ( * ), + 24 + 80 + - + 1 / + 1, 98 - - 52 * - MIN ( - ( + 78 ) ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL 79 + - COUNT( * ) - + + 45
----
33

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL 79 + - COUNT ( * ) - + + 45
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4210
SELECT ALL - CASE + 71 WHEN - - 44 * 16 * 63 * + - 37 + - 99 - + AVG ( DISTINCT + 4 ) + COUNT( * ) THEN - ( + 98 ) / 90 WHEN + SUM( - 83 ) + 4 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - CASE + 71 WHEN - - 44 * 16 * 63 * + - 37 + - 99 - + AVG ( DISTINCT + 4 ) + COUNT ( * ) THEN - ( + 98 ) / 90 WHEN + SUM ( - 83 ) + 4 THEN 98 END
----
NULL

query I rowsort
SELECT ALL 6 + 98 - - - 36 AS col2
----
68

query I rowsort
SELECT 89 + - - 31 * - 56
----
-1647

query I rowsort
SELECT ALL + 98 + - - 18 col0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL + 92 + - - COUNT( * ) col0
----
93

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + 92 + - - COUNT ( * ) col0
----
93

query I rowsort
SELECT ALL - 17 + - - 13
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4216
SELECT 68 * + CASE COALESCE ( - + 52, + CAST( + 84 AS SIGNED ) / 51 ) WHEN 11 * + 8 * - 64 THEN 22 - COUNT( * ) * 17 WHEN + 59 THEN NULL WHEN 3 THEN - 89 * 73 + + 18 ELSE - 78 * + 62 END * - 31
----
10194288

skipif mysql # not compatible
query I rowsort label-4216
SELECT 68 * + CASE COALESCE ( - + 52, + CAST ( + 84 AS INTEGER ) / 51 ) WHEN 11 * + 8 * - 64 THEN 22 - COUNT ( * ) * 17 WHEN + 59 THEN NULL WHEN 3 THEN - 89 * 73 + + 18 ELSE - 78 * + 62 END * - 31
----
10194288

query I rowsort
SELECT ALL 82 * + 87 col0
----
7134

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + COUNT( - 95 ) + + ( NULLIF ( 43, - 83 * - 83 * - 94 ) ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + COUNT ( - 95 ) + + ( NULLIF ( 43, - 83 * - 83 * - 94 ) ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL 43 * - 61 + + + CASE + + COUNT( * ) WHEN + - 36 THEN NULL ELSE + 7 END + CASE + 52 WHEN - 85 * - 93 + - COUNT( * ) THEN - 56 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 43 * - 61 + + + CASE + + COUNT ( * ) WHEN + - 36 THEN NULL ELSE + 7 END + CASE + 52 WHEN - 85 * - 93 + - COUNT ( * ) THEN - 56 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - COUNT( * ) * + COUNT( * ) * + 87 - 70 - 88 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4220
SELECT - COUNT ( * ) * + COUNT ( * ) * + 87 - 70 - 88 * - COUNT ( * )
----
-69

query I rowsort
SELECT COALESCE ( - + 71, 99, 50 ) AS col0
----
-71

query I rowsort
SELECT 59 - - 44 - - - 2 - 72
----
29

query I rowsort
SELECT 94 * - - 89 AS col0
----
8366

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4224
SELECT ALL 68 * + + CAST( 37 AS SIGNED ) * 71 * 90 - - ( - 29 ) * + 11 - + - 96 + - + 90 - + 44 DIV 76 DIV 9 * + 29
----
16076927

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL 68 * + + CAST ( 37 AS INTEGER ) * 71 * 90 - - ( - 29 ) * + 11 - + - 96 + - + 90 - + 44 / 76 / 9 * + 29
----
16076927

query I rowsort
SELECT ALL + COALESCE ( - - 83, + 34 )
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4226
SELECT ALL 87 * 81 - + 80 + - 80 + - + 47, 62 + + 76 * - SUM( - 65 ) AS col0
----
6840
5002

skipif mysql # not compatible
query II rowsort label-4226
SELECT ALL 87 * 81 - + 80 + - 80 + - + 47, 62 + + 76 * - SUM ( - 65 ) AS col0
----
6840
5002

query I rowsort
SELECT - 18 * 8
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4228
SELECT ALL + ( COALESCE ( + + CAST( + - 11 AS SIGNED ), COUNT( * ) ) ) col2, + 88
----
-11
88

skipif mysql # not compatible
query II rowsort label-4228
SELECT ALL + ( COALESCE ( + + CAST ( + - 11 AS INTEGER ), COUNT ( * ) ) ) col2, + 88
----
-11
88

query I rowsort
SELECT ALL + ( + + 8 ) AS col2
----
8

query I rowsort
SELECT ALL + NULLIF ( 57, ( 79 ) )
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT + 82 * ( 30 ) DIV 38
----
64

skipif mysql # not compatible
query I rowsort label-4231
SELECT + 82 * ( 30 ) / 38
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT - 88 * - COALESCE ( - + 59, - 87 + 92, - SUM( ALL + 57 ) + + + 39 ) AS col2
----
-5192

skipif mysql # not compatible
query I rowsort label-4232
SELECT - 88 * - COALESCE ( - + 59, - 87 + 92, - SUM ( ALL + 57 ) + + + 39 ) AS col2
----
-5192

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL - COUNT( * ) * + 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL - COUNT ( * ) * + 1 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT MIN( DISTINCT 41 )
----
41

skipif mysql # not compatible
query I rowsort label-4234
SELECT MIN ( DISTINCT 41 )
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-4235
SELECT COUNT( * ) AS col0, 30 * CASE - 37 WHEN + 89 + + - COUNT( * ) THEN NULL WHEN + 12 + 2 + 7 THEN - 83 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4235
SELECT COUNT ( * ) AS col0, 30 * CASE - 37 WHEN + 89 + + - COUNT ( * ) THEN NULL WHEN + 12 + 2 + 7 THEN - 83 END
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT DISTINCT + CAST( - - 48 AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + CAST ( - - 48 AS INTEGER ) AS col1
----
48

query I rowsort
SELECT - 52 * + - COALESCE ( + + CASE - 45 WHEN - 82 + + 63 - - 35 + 77 + - - 43 THEN + 75 WHEN 81 THEN NULL ELSE - 18 + + 49 END, 86 ) AS col1
----
1612

query I rowsort
SELECT ALL - 90 * - NULLIF ( + 15, - + 25 )
----
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT ALL MIN( ( - 21 ) ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-4239
SELECT ALL MIN ( ( - 21 ) ) AS col1
----
-21

query I rowsort
SELECT - 67 * + 14
----
-938

query II rowsort
SELECT - + 57 col0, + 56 AS col2
----
-57
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT ALL COUNT( * ) + + 64 * + 13 AS col0
----
833

skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL COUNT ( * ) + + 64 * + 13 AS col0
----
833

query I rowsort
SELECT ALL - - 58 + + 80 AS col2
----
138

query I rowsort
SELECT - - 34 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT ALL + CASE WHEN ( NULL ) BETWEEN NULL AND - 51 THEN COUNT( * ) * - - 30 + + 11 END + + 53 / CASE - 67 WHEN - 78 - COUNT( - 78 + 95 ) THEN NULL ELSE + 66 + 5 END + + ( 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4245
SELECT ALL + CASE WHEN ( NULL ) BETWEEN NULL AND - 51 THEN COUNT ( * ) * - - 30 + + 11 END + + 53 / CASE - 67 WHEN - 78 - COUNT ( - 78 + 95 ) THEN NULL ELSE + 66 + 5 END + + ( 59 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - - CASE - MIN( ALL 50 ) WHEN - 61 THEN - 8 WHEN + COUNT( * ) + AVG ( 98 ) + - 60 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT - - CASE - MIN ( ALL 50 ) WHEN - 61 THEN - 8 WHEN + COUNT ( * ) + AVG ( 98 ) + - 60 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT - - SUM( + 63 ) + 53 + - ( + 56 ) + 1 + + 1 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-4247
SELECT - - SUM ( + 63 ) + 53 + - ( + 56 ) + 1 + + 1 AS col2
----
62

query I rowsort
SELECT - + 7 + 25 AS col2
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT - CAST( - - 58 AS SIGNED ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-4249
SELECT - CAST ( - - 58 AS INTEGER ) AS col2
----
-58

query I rowsort
SELECT DISTINCT - + 16 * + 38 AS col0
----
-608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT - - COALESCE ( - 89, COUNT( * ), - 41 * - + 68 ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT - - COALESCE ( - 89, COUNT ( * ), - 41 * - + 68 ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT ALL 13 + + + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL 13 + + + COUNT ( * ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL - - 66 * + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - - 66 * + COUNT ( * )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + MIN( ALL 16 ) + + 38
----
54

skipif mysql # not compatible
query I rowsort label-4254
SELECT + MIN ( ALL 16 ) + + 38
----
54

query I rowsort
SELECT DISTINCT + 19 + + 40 * + - NULLIF ( + + 75, - 60 )
----
-2981

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - + COUNT( DISTINCT 6 ) * - - 6 * 25
----
-150

skipif mysql # not compatible
query I rowsort label-4256
SELECT - + COUNT ( DISTINCT 6 ) * - - 6 * 25
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT ALL - ( COUNT( * ) ) - + + 69 + + 33 * - 81 * + 17 + - 52 + + - 89 DIV 82 AS col0
----
-45564

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - ( COUNT ( * ) ) - + + 69 + + 33 * - 81 * + 17 + - 52 + + - 89 / 82 AS col0
----
-45564

query II rowsort
SELECT - - 60, + 75 + + + 43 + - 65 * - + 74 AS col1
----
60
4928

query I rowsort
SELECT + + NULLIF ( 33, 62 / - 80 + + 9 + - ( + - 90 ) + - 37 + - 12 - 16 ) + + 12
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT + + 0 - + MAX( - 36 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4260
SELECT + + 0 - + MAX ( - 36 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4261
SELECT ALL 60 DIV + 35
----
1

skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL 60 / + 35
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT + 24 + - CAST( NULL AS SIGNED ) * + 86 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 24 + - CAST ( NULL AS INTEGER ) * + 86 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4263
SELECT DISTINCT + 66 DIV - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT + 66 / - + COUNT ( * )
----
-66

query I rowsort
SELECT DISTINCT 53 * - + 76
----
-4028

onlyif mysql # DIV for integer division: 
query I rowsort label-4265
SELECT + ( 40 ) DIV - ( + 87 ) * - + 46 * 25 * 11 - 68 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-4265
SELECT + ( 40 ) / - ( + 87 ) * - + 46 * 25 * 11 - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ALL 24 * COUNT( * ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL 24 * COUNT ( * ) AS col0
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4267
SELECT DISTINCT + 23 AS col0, - 82 + COALESCE ( - - 27, 91, + - 90 * + MAX( ALL 41 ) - - 71 ) AS col2, 59 * + - ( 47 ) * + CAST( 83 + 74 AS SIGNED ) + 63
----
23
-55
-435298

skipif mysql # not compatible
query III rowsort label-4267
SELECT DISTINCT + 23 AS col0, - 82 + COALESCE ( - - 27, 91, + - 90 * + MAX ( ALL 41 ) - - 71 ) AS col2, 59 * + - ( 47 ) * + CAST ( 83 + 74 AS INTEGER ) + 63
----
23
-55
-435298

query I rowsort
SELECT + 94 + - 5
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT ALL + 65, 66 + + NULLIF ( - + 36, + + COUNT( * ) + - 54 - 63 * - - 22 ) AS col1
----
65
30

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL + 65, 66 + + NULLIF ( - + 36, + + COUNT ( * ) + - 54 - 63 * - - 22 ) AS col1
----
65
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4270
SELECT DISTINCT 18 * + + CAST( NULL AS SIGNED ), - COUNT( * ) + - - SUM( 87 ) - - 96 AS col0
----
NULL
182

skipif mysql # not compatible
query II rowsort label-4270
SELECT DISTINCT 18 * + + CAST ( NULL AS INTEGER ), - COUNT ( * ) + - - SUM ( 87 ) - - 96 AS col0
----
NULL
182

query I rowsort
SELECT ALL 52 * + 88 AS col1
----
4576

query I rowsort
SELECT ( + - 11 ) col2
----
-11

query I rowsort
SELECT - 64 * + 11 * - 90 AS col2
----
63360

onlyif mysql # aggregate syntax: 
query II rowsort label-4274
SELECT ALL + 55 AS col2, 72 + COUNT( * ) AS col2
----
55
73

skipif mysql # not compatible
query II rowsort label-4274
SELECT ALL + 55 AS col2, 72 + COUNT ( * ) AS col2
----
55
73

query II rowsort
SELECT + ( 2 ) AS col2, 54 * - - 57
----
2
3078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4276
SELECT ALL + CASE + 35 WHEN + - 17 * + - CAST( 17 AS SIGNED ) + + 68 THEN NULL WHEN + 12 THEN + + COUNT( * ) * - - 16 WHEN - - 25 * + + 97 + - 34 THEN 85 + + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL + CASE + 35 WHEN + - 17 * + - CAST ( 17 AS INTEGER ) + + 68 THEN NULL WHEN + 12 THEN + + COUNT ( * ) * - - 16 WHEN - - 25 * + + 97 + - 34 THEN 85 + + CAST ( NULL AS REAL ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4277
SELECT + 52 + + + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT + 52 + + + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT + 41 AS col2, + 80 AS col0
----
41
80

query I rowsort
SELECT ALL - 26 * - 39 + + 47
----
1061

query II rowsort
SELECT ALL + 83 AS col1, - 96
----
83
-96

query I rowsort
SELECT CASE + ( + 24 ) WHEN + 55 THEN NULL ELSE + 3 END AS col2
----
3

query I rowsort
SELECT ALL - 26 * - 47 + + + 74 AS col2
----
1296

query I rowsort
SELECT - + 97 + + 97 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4284
SELECT + - COUNT( * ) AS col2, + ( - 56 ) - - 20 AS col1
----
-1
-36

skipif mysql # not compatible
query II rowsort label-4284
SELECT + - COUNT ( * ) AS col2, + ( - 56 ) - - 20 AS col1
----
-1
-36

query II rowsort
SELECT ALL + - 42 * - + NULLIF ( + 49, - 16 / + 18 + 76 ) + - 44, 87 AS col1
----
2014
87

onlyif mysql # DIV for integer division: 
query II rowsort label-4286
SELECT - CASE + - 49 WHEN 16 THEN 59 DIV + 97 ELSE + - 34 END, 6 AS col0
----
34
6

skipif mysql # not compatible
query II rowsort label-4286
SELECT - CASE + - 49 WHEN 16 THEN 59 / + 97 ELSE + - 34 END, 6 AS col0
----
34
6

query I rowsort
SELECT - 45 * + 11 AS col2
----
-495

query I rowsort
SELECT ALL + 32 * 30 + + 69 * 45 + - 7 AS col2
----
4058

query I rowsort
SELECT NULLIF ( + 94, ( + 67 ) ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - + COUNT( * ) * 48 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4290
SELECT - + COUNT ( * ) * 48 AS col2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT ALL NULLIF ( + + COALESCE ( ( + + CASE - + 33 WHEN 72 THEN + 96 END ), 17 * - + 67 - - + 61 + 20 * CAST( 28 AS SIGNED ) ), 46 )
----
-518

skipif mysql # not compatible
query I rowsort label-4291
SELECT ALL NULLIF ( + + COALESCE ( ( + + CASE - + 33 WHEN 72 THEN + 96 END ), 17 * - + 67 - - + 61 + 20 * CAST ( 28 AS INTEGER ) ), 46 )
----
-518

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT DISTINCT + 34 DIV + 15 + + - 14 - - + 26 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + 34 / + 15 + + - 14 - - + 26 AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT DISTINCT + 23 + + COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + 23 + + COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL ( MIN( - 81 ) )
----
-81

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL ( MIN ( - 81 ) )
----
-81

query II rowsort
SELECT ALL + 1 * - 92 AS col2, + 71
----
-92
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4296
SELECT + ( - - 14 ) col2, + 17 * CAST( + COUNT( * ) AS SIGNED ) AS col1
----
14
17

skipif mysql # not compatible
query II rowsort label-4296
SELECT + ( - - 14 ) col2, + 17 * CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
14
17

query I rowsort
SELECT DISTINCT NULLIF ( - 32, 12 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT - + COUNT( * ) * - 19 * - - 44 + + + 45
----
881

skipif mysql # not compatible
query I rowsort label-4298
SELECT - + COUNT ( * ) * - 19 * - - 44 + + + 45
----
881

query I rowsort
SELECT - 30 + + 84 AS col0
----
54

query I rowsort
SELECT DISTINCT - NULLIF ( + 42, 80 )
----
-42

query II rowsort
SELECT 75 * - 52 AS col0, 41 AS col0
----
-3900
41

query I rowsort
SELECT ALL + 79 * - - 3 col1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT COUNT( * ) + - - ( - COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT COUNT ( * ) + - - ( - COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT NULLIF ( 95, - ( - 47 ) ) * - + 46 * + COUNT( DISTINCT - 80 )
----
-4370

skipif mysql # not compatible
query I rowsort label-4304
SELECT NULLIF ( 95, - ( - 47 ) ) * - + 46 * + COUNT ( DISTINCT - 80 )
----
-4370

onlyif mysql # DIV for integer division: 
query I rowsort label-4305
SELECT ( 14 ) DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4305
SELECT ( 14 ) / 76 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT SUM( ALL 74 ) * - + 58 AS col2
----
-4292

skipif mysql # not compatible
query I rowsort label-4306
SELECT SUM ( ALL 74 ) * - + 58 AS col2
----
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT 93 + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-4307
SELECT 93 + COUNT ( * ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT DISTINCT ( - 39 ) + + MIN( ALL + 32 )
----
-7

skipif mysql # not compatible
query I rowsort label-4308
SELECT DISTINCT ( - 39 ) + + MIN ( ALL + 32 )
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4309
SELECT - 9 * - COUNT( * ) + 94 * + 27 * 34 AS col0, COALESCE ( 63, - 80, COUNT( * ) ) col1
----
86301
63

skipif mysql # not compatible
query II rowsort label-4309
SELECT - 9 * - COUNT ( * ) + 94 * + 27 * 34 AS col0, COALESCE ( 63, - 80, COUNT ( * ) ) col1
----
86301
63

query I rowsort
SELECT ALL ( - 12 ) * - 97 AS col2
----
1164

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL + 17 + + + 98 + - 59 * + 79 * + COUNT( * )
----
-4546

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + 17 + + + 98 + - 59 * + 79 * + COUNT ( * )
----
-4546

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4312
SELECT DISTINCT CAST( 59 AS SIGNED ) * - 87
----
-5133

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT CAST ( 59 AS INTEGER ) * - 87
----
-5133

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL COUNT( * ) + + 74 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL COUNT ( * ) + + 74 AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT 35 DIV - 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4314
SELECT 35 / - 74 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4315
SELECT ALL 4 + + 28 AS col0, - CAST( + 49 AS SIGNED ) - - - 28 + - + 47 * + 86
----
32
-4119

skipif mysql # not compatible
query II rowsort label-4315
SELECT ALL 4 + + 28 AS col0, - CAST ( + 49 AS INTEGER ) - - - 28 + - + 47 * + 86
----
32
-4119

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT - COUNT( * ) * COUNT( * ) * 86 col0
----
-86

skipif mysql # not compatible
query I rowsort label-4316
SELECT - COUNT ( * ) * COUNT ( * ) * 86 col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4317
SELECT DISTINCT - NULLIF ( - 98, + 50 * + 63 * + 18 / - - 4 / CAST( + + COUNT( * ) AS DECIMAL ) ) AS col0, 62 - - + 58 * - 1 * - + COUNT( 13 )
----
98
120

skipif mysql # not compatible
query II rowsort label-4317
SELECT DISTINCT - NULLIF ( - 98, + 50 * + 63 * + 18 / - - 4 / CAST ( + + COUNT ( * ) AS REAL ) ) AS col0, 62 - - + 58 * - 1 * - + COUNT ( 13 )
----
98
120

query I rowsort
SELECT DISTINCT + 13 + 38
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-4319
SELECT + 51 - + 14 DIV + + 55 AS col1
----
51

skipif mysql # not compatible
query I rowsort label-4319
SELECT + 51 - + 14 / + + 55 AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4320
SELECT ALL + CASE + CASE - + COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( 93 ) + - - 45 / 78 * 32 ) WHEN - MAX( - + 95 ) THEN + + MIN( 49 ) * + 41 ELSE AVG ( ALL CAST( NULL AS SIGNED ) ) + 24 END WHEN 3 + + 91 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL + CASE + CASE - + COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( 93 ) + - - 45 / 78 * 32 ) WHEN - MAX ( - + 95 ) THEN + + MIN ( 49 ) * + 41 ELSE AVG ( ALL CAST ( NULL AS INTEGER ) ) + 24 END WHEN 3 + + 91 THEN COUNT ( * ) END AS col2
----
NULL

query I rowsort
SELECT ALL + - 15 * - 31 AS col2
----
465

onlyif mysql # DIV for integer division: 
query I rowsort label-4322
SELECT ALL 35 - - - 81 + + - 38 + + 55 DIV + + 31
----
-83

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL 35 - - - 81 + + - 38 + + 55 / + + 31
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT ALL + AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL + AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT - + COALESCE ( - - 66, + CAST( NULL AS SIGNED ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-4324
SELECT - + COALESCE ( - - 66, + CAST ( NULL AS INTEGER ) ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4325
SELECT ALL COUNT( * ) - 41 AS col0, 32 * 21
----
-40
672

skipif mysql # not compatible
query II rowsort label-4325
SELECT ALL COUNT ( * ) - 41 AS col0, 32 * 21
----
-40
672

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT - 18 + - + CASE + COALESCE ( + 75, + CASE - 43 WHEN + + 80 THEN - AVG ( ALL - 37 ) * - 75 WHEN + 97 THEN NULL WHEN + - COUNT( ALL - 99 ) + 43 THEN NULL ELSE NULL END, + 12 * + 94 - - 8 ) WHEN NULLIF ( 47, + ( + 83 ) * + 91 ) THEN NULL WHEN 32 THEN NULL WHEN - 11 * - 4 THEN - ( + 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4326
SELECT - 18 + - + CASE + COALESCE ( + 75, + CASE - 43 WHEN + + 80 THEN - AVG ( ALL - 37 ) * - 75 WHEN + 97 THEN NULL WHEN + - COUNT ( ALL - 99 ) + 43 THEN NULL ELSE NULL END, + 12 * + 94 - - 8 ) WHEN NULLIF ( 47, + ( + 83 ) * + 91 ) THEN NULL WHEN 32 THEN NULL WHEN - 11 * - 4 THEN - ( + 75 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4327
SELECT CAST( NULL AS SIGNED ) * + 63 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4327
SELECT CAST ( NULL AS INTEGER ) * + 63 col2
----
NULL

query I rowsort
SELECT 53 + + 50 col1
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4329
SELECT - COUNT( * ) * + 82 AS col2, - 99 AS col0
----
-82
-99

skipif mysql # not compatible
query II rowsort label-4329
SELECT - COUNT ( * ) * + 82 AS col2, - 99 AS col0
----
-82
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT DISTINCT + COUNT( * ) * + 39 * + 54 - - ( + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) * 86 / + + 46
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + COUNT ( * ) * + 39 * + 54 - - ( + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) * 86 / + + 46
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT - CAST( NULL AS SIGNED ) + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT - CAST ( NULL AS INTEGER ) + - 78
----
NULL

query I rowsort
SELECT - 58 + - 65 * + - ( + 99 ) + + COALESCE ( 8, - - 37 + + 55 )
----
6385

query I rowsort
SELECT DISTINCT + 67 * 1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4334
SELECT ALL + 9 * 84 - + ( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + 9 * 84 - + ( + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4335
SELECT 94 + + + 33 * - 60 * + + 95 AS col0, CAST( 88 AS SIGNED ) DIV - 34 + 47 + 81 + + 1 DIV - 50 AS col0, + + 26 * - COUNT( DISTINCT - 34 )
----
-188006
126
-26

skipif mysql # not compatible
query III rowsort label-4335
SELECT 94 + + + 33 * - 60 * + + 95 AS col0, CAST ( 88 AS INTEGER ) / - 34 + 47 + 81 + + 1 / - 50 AS col0, + + 26 * - COUNT ( DISTINCT - 34 )
----
-188006
126
-26

query II rowsort
SELECT 94 AS col0, 55 AS col1
----
94
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4337
SELECT 3 + + COUNT( * ) DIV - 94 * + 93 col2
----
3

skipif mysql # not compatible
query I rowsort label-4337
SELECT 3 + + COUNT ( * ) / - 94 * + 93 col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4338
SELECT ALL 67, CASE - - COUNT( * ) WHEN + - ( - - NULLIF ( - - COUNT( * ), + 42 + + 63 + 79 - + - 70 ) ) THEN - + 17 WHEN CASE 75 WHEN 91 / ( COUNT( * ) * + 42 ) + - ( - COUNT( * ) ) THEN 25 WHEN - COUNT( * ) * 45 THEN NULL WHEN 45 + 7 THEN 51 * + 71 END - 25 THEN + 62 END + 81 AS col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-4338
SELECT ALL 67, CASE - - COUNT ( * ) WHEN + - ( - - NULLIF ( - - COUNT ( * ), + 42 + + 63 + 79 - + - 70 ) ) THEN - + 17 WHEN CASE 75 WHEN 91 / ( COUNT ( * ) * + 42 ) + - ( - COUNT ( * ) ) THEN 25 WHEN - COUNT ( * ) * 45 THEN NULL WHEN 45 + 7 THEN 51 * + 71 END - 25 THEN + 62 END + 81 AS col2
----
67
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - SUM( ALL - 98 ) col1
----
98

skipif mysql # not compatible
query I rowsort label-4339
SELECT - SUM ( ALL - 98 ) col1
----
98

query I rowsort
SELECT 10 * + 46 AS col2
----
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT ALL + 31 + - - 30 + + CAST( 77 AS SIGNED ) + 62 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-4341
SELECT ALL + 31 + - - 30 + + CAST ( 77 AS INTEGER ) + 62 AS col0
----
200

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT 93 + + + 59 + + ( - - CASE 93 WHEN - - 72 * - COUNT( * ) THEN NULL WHEN 49 THEN NULL ELSE 47 + + 54 + - CASE 66 WHEN + - 96 THEN CASE + 98 WHEN - 57 * - 13 THEN 88 + - 95 END * 48 END END ) * ( 80 * + 62 + 95 ) * - ( 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4342
SELECT 93 + + + 59 + + ( - - CASE 93 WHEN - - 72 * - COUNT ( * ) THEN NULL WHEN 49 THEN NULL ELSE 47 + + 54 + - CASE 66 WHEN + - 96 THEN CASE + 98 WHEN - 57 * - 13 THEN 88 + - 95 END * 48 END END ) * ( 80 * + 62 + 95 ) * - ( 98 )
----
NULL

query I rowsort
SELECT 0 * + - 19 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4344
SELECT DISTINCT + COALESCE ( - - 83, SUM( DISTINCT 67 ) * + ( + 20 ) + - CASE AVG ( + 52 ) WHEN - COUNT( * ) THEN NULL WHEN + 42 + - 24 * - 32 THEN + CAST( NULL AS SIGNED ) WHEN 60 THEN NULL ELSE 70 END + 16 ) + - 86 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4344
SELECT DISTINCT + COALESCE ( - - 83, SUM ( DISTINCT 67 ) * + ( + 20 ) + - CASE AVG ( + 52 ) WHEN - COUNT ( * ) THEN NULL WHEN + 42 + - 24 * - 32 THEN + CAST ( NULL AS INTEGER ) WHEN 60 THEN NULL ELSE 70 END + 16 ) + - 86 AS col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL - MAX( DISTINCT + NULLIF ( 0, - CAST( NULL AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - MAX ( DISTINCT + NULLIF ( 0, - CAST ( NULL AS INTEGER ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4346
SELECT COUNT( * ) AS col1, COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-4346
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col2
----
1
1

query I rowsort
SELECT ALL - 88 * 77 + + 8 + 65
----
-6703

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4348
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4348
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4349
SELECT DISTINCT - 10 * + + CASE + 73 WHEN + 97 THEN NULL WHEN + 53 THEN ( - COALESCE ( 35, 74, + + ( + + CAST( NULL AS SIGNED ) ) ) ) + - - CASE 66 WHEN + 49 THEN 1 / + 48 END WHEN 95 THEN NULL END + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - 10 * + + CASE + 73 WHEN + 97 THEN NULL WHEN + 53 THEN ( - COALESCE ( 35, 74, + + ( + + CAST ( NULL AS INTEGER ) ) ) ) + - - CASE 66 WHEN + 49 THEN 1 / + 48 END WHEN 95 THEN NULL END + 87
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - COUNT( DISTINCT - 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - COUNT ( DISTINCT - 43 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT MIN( 76 ) col0
----
76

skipif mysql # not compatible
query I rowsort label-4351
SELECT MIN ( 76 ) col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL + 77 * - COUNT( * ) + - COUNT( * ) - 70 * + CASE - 70 WHEN + 86 THEN NULL ELSE - - 77 END * - MIN( ALL + + 84 ) + - COUNT( ( - 34 ) ) + - COUNT( * ) AS col1
----
452680

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL + 77 * - COUNT ( * ) + - COUNT ( * ) - 70 * + CASE - 70 WHEN + 86 THEN NULL ELSE - - 77 END * - MIN ( ALL + + 84 ) + - COUNT ( ( - 34 ) ) + - COUNT ( * ) AS col1
----
452680

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT ALL + COUNT( * ) * - COUNT( * ) + 45 * - 27 + 32
----
-1184

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + 45 * - 27 + 32
----
-1184

query II rowsort
SELECT + 55 AS col1, 36 + - 33 * + - 61 AS col1
----
55
2049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4355
SELECT + COALESCE ( - 14, + CAST( NULL AS SIGNED ) + + 11 ) * - - 43 - - + 81 + COUNT( * ) + 88 DIV + COALESCE ( + 71, + + COUNT( * ) + - 32 ) DIV - COALESCE ( - COUNT( * ), - 76 )
----
-519

skipif mysql # not compatible
query I rowsort label-4355
SELECT + COALESCE ( - 14, + CAST ( NULL AS INTEGER ) + + 11 ) * - - 43 - - + 81 + COUNT ( * ) + 88 / + COALESCE ( + 71, + + COUNT ( * ) + - 32 ) / - COALESCE ( - COUNT ( * ), - 76 )
----
-519

query I rowsort
SELECT DISTINCT + 58 + - 0 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4357
SELECT 94 * - + COUNT( * ) + + 64 * - 63 + + - 38
----
-4164

skipif mysql # not compatible
query I rowsort label-4357
SELECT 94 * - + COUNT ( * ) + + 64 * - 63 + + - 38
----
-4164

query I rowsort
SELECT ALL - 83 - - 61 - + 38 + + 91 * - + CASE 60 WHEN - 69 THEN NULL WHEN - 37 THEN + 13 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 56 - - 91 AS col2
----
35

query I rowsort
SELECT ALL ( - - 72 ) - + 73
----
-1

query I rowsort
SELECT ALL - + 23 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT 89 + 14 - + - COUNT( * ) + 89 * COUNT( * ) * - + 12 AS col2
----
-964

skipif mysql # not compatible
query I rowsort label-4362
SELECT 89 + 14 - + - COUNT ( * ) + 89 * COUNT ( * ) * - + 12 AS col2
----
-964

query I rowsort
SELECT - 2 * 18
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4364
SELECT - 76 + + - 7 DIV 88 + COUNT( * ) AS col1, ( + 42 ) AS col0
----
-75
42

skipif mysql # not compatible
query II rowsort label-4364
SELECT - 76 + + - 7 / 88 + COUNT ( * ) AS col1, ( + 42 ) AS col0
----
-75
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT + + NULLIF ( 17, - COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-4365
SELECT + + NULLIF ( 17, - COUNT ( * ) )
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4366
SELECT + 90 * + ( + 50 ), + MAX( + - 53 ) * + CASE - - AVG ( + 3 ) WHEN - CASE - 21 WHEN - 37 + + 66 + + + 32 * CASE 39 WHEN 61 THEN - 19 ELSE + 32 END THEN NULL WHEN 88 THEN 97 END * 60 THEN NULL WHEN + 64 * 67 THEN NULL ELSE - MAX( ALL - 72 ) END AS col2
----
4500
-3816

skipif mysql # not compatible
query II rowsort label-4366
SELECT + 90 * + ( + 50 ), + MAX ( + - 53 ) * + CASE - - AVG ( + 3 ) WHEN - CASE - 21 WHEN - 37 + + 66 + + + 32 * CASE 39 WHEN 61 THEN - 19 ELSE + 32 END THEN NULL WHEN 88 THEN 97 END * 60 THEN NULL WHEN + 64 * 67 THEN NULL ELSE - MAX ( ALL - 72 ) END AS col2
----
4500
-3816

onlyif mysql # aggregate syntax: 
query II rowsort label-4367
SELECT ALL COUNT( * ), + CASE 22 WHEN ( - - 83 ) THEN COUNT( DISTINCT - - 74 ) WHEN + 61 * 27 * - 53 * 92 + + 65 THEN NULL ELSE NULL END * + CASE WHEN NOT ( NULLIF ( + NULLIF ( + 50, + 39 ), + COUNT( DISTINCT 75 ) / - COUNT( * ) ) ) >= 44 + 14 * + 49 THEN 24 END / 96 + + COUNT( * ) * 61 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-4367
SELECT ALL COUNT ( * ), + CASE 22 WHEN ( - - 83 ) THEN COUNT ( DISTINCT - - 74 ) WHEN + 61 * 27 * - 53 * 92 + + 65 THEN NULL ELSE NULL END * + CASE WHEN NOT ( NULLIF ( + NULLIF ( + 50, + 39 ), + COUNT ( DISTINCT 75 ) / - COUNT ( * ) ) ) >= 44 + 14 * + 49 THEN 24 END / 96 + + COUNT ( * ) * 61 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT + - COUNT( * ) * - COUNT( * ) * + + 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-4368
SELECT + - COUNT ( * ) * - COUNT ( * ) * + + 16 AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL NULLIF ( - 87, + + 25 ) AS col2, - COUNT( * ) col1
----
-87
-1

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL NULLIF ( - 87, + + 25 ) AS col2, - COUNT ( * ) col1
----
-87
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT DISTINCT - 99 * - NULLIF ( - 74, CASE COUNT( * ) WHEN CAST( NULL AS SIGNED ) + - + 81 THEN + 20 ELSE NULL END + 22 * ( ( - 43 ) ) + + - 28 + 93 ) col0
----
-7326

skipif mysql # not compatible
query I rowsort label-4370
SELECT DISTINCT - 99 * - NULLIF ( - 74, CASE COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + - + 81 THEN + 20 ELSE NULL END + 22 * ( ( - 43 ) ) + + - 28 + 93 ) col0
----
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT ALL - MIN( ALL - - 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - MIN ( ALL - - 12 )
----
-12

query I rowsort
SELECT + 66 * - 85
----
-5610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT - SUM( - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT ALL SUM( + 22 ) + - + 78 + - - 16 * 28
----
392

skipif mysql # not compatible
query I rowsort label-4374
SELECT ALL SUM ( + 22 ) + - + 78 + - - 16 * 28
----
392

onlyif mysql # aggregate syntax: 
query II rowsort label-4375
SELECT ALL 30 + - ( - - COUNT( * ) ) * + 30 + 19 + + 54 * + 90 AS col0, 42 * + - 8
----
4879
-336

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL 30 + - ( - - COUNT ( * ) ) * + 30 + 19 + + 54 * + 90 AS col0, 42 * + - 8
----
4879
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT + 35 * + ( + + MAX( DISTINCT + 14 ) )
----
490

skipif mysql # not compatible
query I rowsort label-4376
SELECT + 35 * + ( + + MAX ( DISTINCT + 14 ) )
----
490

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT DISTINCT 59 + - ( + COUNT( * ) )
----
58

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT 59 + - ( + COUNT ( * ) )
----
58

query I rowsort
SELECT ALL + 26 + 28 * + + 28
----
810

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT DISTINCT + COUNT( * ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + COUNT ( * ) + 27
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT MIN( ALL + 38 ) + 84
----
122

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT MIN ( ALL + 38 ) + 84
----
122

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT ALL - 54 DIV 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - 54 / 40 AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT ALL + ( - COALESCE ( - 53, + + 48 ) ) + + - 87 DIV + - 69 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + ( - COALESCE ( - 53, + + 48 ) ) + + - 87 / + - 69 AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT + 69 * - MIN( DISTINCT + + 88 ) * - 51 * - 33 * + + 21 AS col2
----
-214602696

skipif mysql # not compatible
query I rowsort label-4383
SELECT + 69 * - MIN ( DISTINCT + + 88 ) * - 51 * - 33 * + + 21 AS col2
----
-214602696

onlyif mysql # DIV for integer division: 
query I rowsort label-4384
SELECT ALL - ( - + 76 ) DIV 35 + - + 35 col2
----
-33

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - ( - + 76 ) / 35 + - + 35 col2
----
-33

query I rowsort
SELECT ALL - 83 * - - 16 + 64 * - - 7 AS col0
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL - MIN( ( + 7 ) ) * - 24
----
168

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - MIN ( ( + 7 ) ) * - 24
----
168

query I rowsort
SELECT ALL - - 24 * + 58 - 87
----
1305

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4388
SELECT 99 DIV + - 16 * COUNT( * ) + 96, + COUNT( * ) * - 76 col1
----
90
-76

skipif mysql # not compatible
query II rowsort label-4388
SELECT 99 / + - 16 * COUNT ( * ) + 96, + COUNT ( * ) * - 76 col1
----
90
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - 94 * - - 13 * + COUNT( * ) * - 27 + - - ( + COUNT( * ) ) AS col0
----
32995

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - 94 * - - 13 * + COUNT ( * ) * - 27 + - - ( + COUNT ( * ) ) AS col0
----
32995

query I rowsort
SELECT - 77 * - ( + + 19 ) + - - 97 * + + 10 AS col2
----
2433

query I rowsort
SELECT - - 97 - - 37
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4392
SELECT + + COUNT( * ) * + + 14 + 91 + + 75 AS col0, 11 DIV + 14 col2
----
180
0

skipif mysql # not compatible
query II rowsort label-4392
SELECT + + COUNT ( * ) * + + 14 + 91 + + 75 AS col0, 11 / + 14 col2
----
180
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4393
SELECT + CAST( - 43 AS SIGNED ) AS col2, - MAX( + + 51 )
----
-43
-51

skipif mysql # not compatible
query II rowsort label-4393
SELECT + CAST ( - 43 AS INTEGER ) AS col2, - MAX ( + + 51 )
----
-43
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4394
SELECT DISTINCT 53 DIV + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT 53 / + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT ALL 80 * + - 33
----
-2640

query I rowsort
SELECT + 49 - - - 27
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4397
SELECT ALL - 50 / COUNT( * ) / - CAST( NULL AS SIGNED ) * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL - 50 / COUNT ( * ) / - CAST ( NULL AS INTEGER ) * + 47 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4398
SELECT DISTINCT CAST( + 12 AS SIGNED ) col0
----
12

skipif mysql # not compatible
query I rowsort label-4398
SELECT DISTINCT CAST ( + 12 AS INTEGER ) col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT ALL + + 89 * - COUNT( * ) * + 34 - COUNT( * ) * 1 col2
----
-3027

skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL + + 89 * - COUNT ( * ) * + 34 - COUNT ( * ) * 1 col2
----
-3027

query I rowsort
SELECT - 7 + + ( 3 ) AS col0
----
-4

query I rowsort
SELECT - - 95 + + 5 + 81 + + 85 * 11
----
1116

query I rowsort
SELECT ALL 54 + - 22 col0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4403
SELECT - 59 + + 17 DIV - ( SUM( ALL 45 ) ) AS col0, 74 * 84 + 8 + - 81 * - - ( + + 47 )
----
-59
2417

skipif mysql # not compatible
query II rowsort label-4403
SELECT - 59 + + 17 / - ( SUM ( ALL 45 ) ) AS col0, 74 * 84 + 8 + - 81 * - - ( + + 47 )
----
-59
2417

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT SUM( 93 )
----
93

skipif mysql # not compatible
query I rowsort label-4404
SELECT SUM ( 93 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4405
SELECT + ( + 77 ) + - - 66 + 29 + + NULLIF ( COUNT( * ), - 54 ) * 93 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4405
SELECT + ( + 77 ) + - - 66 + 29 + + NULLIF ( COUNT ( * ), - 54 ) * 93 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4406
SELECT + 42 - CAST( CAST( 7 AS SIGNED ) AS SIGNED ) DIV + + MAX( DISTINCT - 10 )
----
42

skipif mysql # not compatible
query I rowsort label-4406
SELECT + 42 - CAST ( CAST ( 7 AS INTEGER ) AS INTEGER ) / + + MAX ( DISTINCT - 10 )
----
42

query I rowsort
SELECT DISTINCT + 85 + - ( - + 33 ) AS col1
----
118

query I rowsort
SELECT ALL - 31 + - 50 AS col2
----
-81

query I rowsort
SELECT + 88 + 34 col1
----
122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT + 6 + + 90 + - 41 * - 37 + + CAST( NULL AS SIGNED ) * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT + 6 + + 90 + - 41 * - 37 + + CAST ( NULL AS INTEGER ) * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4411
SELECT ALL 77 AS col1, 7 * - COUNT( * ) + + - 43 AS col2
----
77
-50

skipif mysql # not compatible
query II rowsort label-4411
SELECT ALL 77 AS col1, 7 * - COUNT ( * ) + + - 43 AS col2
----
77
-50

query I rowsort
SELECT ALL 76 + + 34 AS col1
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - COALESCE ( 43, 97 - + 93, 19 + COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-4413
SELECT - COALESCE ( 43, 97 - + 93, 19 + COUNT ( * ) )
----
-43

query II rowsort
SELECT DISTINCT 34 AS col2, 27 col2
----
34
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT ALL COUNT( * ) - + 74 * + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL COUNT ( * ) - + 74 * + COUNT ( * )
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - 52 * + + CASE - AVG ( DISTINCT - 98 ) WHEN - 20 * 93 * - COUNT( * ) THEN + + 51 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT - 52 * + + CASE - AVG ( DISTINCT - 98 ) WHEN - 20 * 93 * - COUNT ( * ) THEN + + 51 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4417
SELECT ALL CASE + + 28 WHEN + MIN( DISTINCT 51 ) * + 57 / + 64 * + 47 THEN 74 - + - 73 + + 99 + - - NULLIF ( + + 92, CASE - 38 WHEN + - ( AVG ( ALL - 85 ) ) * 23 + - COUNT( 51 ) THEN NULL WHEN ( ( + 96 ) ) * 34 + - CAST( + 70 - - 96 AS SIGNED ) THEN NULL WHEN + 53 + 70 THEN NULL ELSE - 35 END ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL CASE + + 28 WHEN + MIN ( DISTINCT 51 ) * + 57 / + 64 * + 47 THEN 74 - + - 73 + + 99 + - - NULLIF ( + + 92, CASE - 38 WHEN + - ( AVG ( ALL - 85 ) ) * 23 + - COUNT ( 51 ) THEN NULL WHEN ( ( + 96 ) ) * 34 + - CAST ( + 70 - - 96 AS INTEGER ) THEN NULL WHEN + 53 + 70 THEN NULL ELSE - 35 END ) ELSE NULL END col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT - CAST( + 49 AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-4418
SELECT - CAST ( + 49 AS INTEGER ) AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT - CAST( + 41 AS SIGNED ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4419
SELECT - CAST ( + 41 AS INTEGER ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL COUNT( * ) - - 42 + - + COUNT( * ) + - 15 * - 13
----
237

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL COUNT ( * ) - - 42 + - + COUNT ( * ) + - 15 * - 13
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT + 16 * - 47 DIV + 45
----
-16

skipif mysql # not compatible
query I rowsort label-4421
SELECT + 16 * - 47 / + 45
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4422
SELECT DISTINCT - + ( + - 55 ) DIV + 46 - - 82 col0
----
83

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - + ( + - 55 ) / + 46 - - 82 col0
----
83

query II rowsort
SELECT - - 12 * - 51 + 54, + 85 + - 81 col2
----
-558
4

query I rowsort
SELECT + + 42 * 1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4425
SELECT + + ( + ( - + 63 ) ) AS col0, AVG ( DISTINCT - + NULLIF ( + - CAST( NULL AS SIGNED ), - + 66 / + 29 ) ) + - 87 * + - 78 / - MIN( - 74 ) AS col0
----
-63
NULL

skipif mysql # not compatible
query II rowsort label-4425
SELECT + + ( + ( - + 63 ) ) AS col0, AVG ( DISTINCT - + NULLIF ( + - CAST ( NULL AS INTEGER ), - + 66 / + 29 ) ) + - 87 * + - 78 / - MIN ( - 74 ) AS col0
----
-63
NULL

query I rowsort
SELECT + 89 - - + 7
----
96

query I rowsort
SELECT - 98 + 78 - + 64 AS col1
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4428
SELECT + COUNT( * ) DIV + 65 * + 1 * - + 80 - - + COUNT( * ) + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-4428
SELECT + COUNT ( * ) / + 65 * + 1 * - + 80 - - + COUNT ( * ) + + 20 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - - COUNT( * ) * + - 27
----
-27

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - - COUNT ( * ) * + - 27
----
-27

query II rowsort
SELECT DISTINCT - 10 AS col0, 71
----
-10
71

query I rowsort
SELECT DISTINCT - + ( + - 22 )
----
22

query I rowsort
SELECT + 47 + 34
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT + - COUNT( - 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-4433
SELECT + - COUNT ( - 13 )
----
-1

query I rowsort
SELECT + 61 + 14
----
75

query I rowsort
SELECT ALL + + 24 + + 38 + 66 AS col2
----
128

query II rowsort
SELECT - NULLIF ( + 9, - 38 ) AS col0, 94 AS col1
----
-9
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT 67 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-4437
SELECT 67 / + 26
----
2

query I rowsort
SELECT ALL + 55 + - 38
----
17

query II rowsort
SELECT 23, 52 col1
----
23
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4440
SELECT ALL + 72 DIV - COUNT( * ), + 4 * - + 13 col0
----
-72
-52

skipif mysql # not compatible
query II rowsort label-4440
SELECT ALL + 72 / - COUNT ( * ), + 4 * - + 13 col0
----
-72
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4441
SELECT DISTINCT - COALESCE ( + - ( - + 52 ), - 50 ) + + 6 DIV - + COUNT( * ) - - 76 AS col0, 34 + - 62
----
18
-28

skipif mysql # not compatible
query II rowsort label-4441
SELECT DISTINCT - COALESCE ( + - ( - + 52 ), - 50 ) + + 6 / - + COUNT ( * ) - - 76 AS col0, 34 + - 62
----
18
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4442
SELECT COUNT( * ) DIV + + 37 * + - 20 * + - 13
----
0

skipif mysql # not compatible
query I rowsort label-4442
SELECT COUNT ( * ) / + + 37 * + - 20 * + - 13
----
0

query I rowsort
SELECT 99 * - 76
----
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT 9 - - COUNT( + + 67 ) * - 43
----
-34

skipif mysql # not compatible
query I rowsort label-4444
SELECT 9 - - COUNT ( + + 67 ) * - 43
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT 66, + ( - + COUNT( * ) ) * - - 21 * - ( + - 4 ) AS col1
----
66
-84

skipif mysql # not compatible
query II rowsort label-4445
SELECT 66, + ( - + COUNT ( * ) ) * - - 21 * - ( + - 4 ) AS col1
----
66
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( ALL 41 ) - - 56 * 4 * - + 3 AS col1
----
-671

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( ALL 41 ) - - 56 * 4 * - + 3 AS col1
----
-671

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT ALL 41 AS col1, + COUNT( * )
----
41
1

skipif mysql # not compatible
query II rowsort label-4447
SELECT ALL 41 AS col1, + COUNT ( * )
----
41
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4448
SELECT DISTINCT - CASE - NULLIF ( + COUNT( * ), + COALESCE ( 78, - 71, + 23 ) ) WHEN + 24 * - + 48 * - CAST( NULL AS DECIMAL ) * + + COUNT( * ) + CAST( + + 73 AS SIGNED ) * + - 89 + 75 THEN SUM( ALL 66 ) END * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT - CASE - NULLIF ( + COUNT ( * ), + COALESCE ( 78, - 71, + 23 ) ) WHEN + 24 * - + 48 * - CAST ( NULL AS REAL ) * + + COUNT ( * ) + CAST ( + + 73 AS INTEGER ) * + - 89 + 75 THEN SUM ( ALL 66 ) END * - 47
----
NULL

query II rowsort
SELECT DISTINCT 99, + 98 * + - 94 AS col2
----
99
-9212

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT COUNT( + - 1 ) - - SUM( + 45 )
----
46

skipif mysql # not compatible
query I rowsort label-4450
SELECT COUNT ( + - 1 ) - - SUM ( + 45 )
----
46

query III rowsort
SELECT 77, + 62 AS col0, + 5 + 40 AS col0
----
77
62
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT CASE - 85 WHEN 76 * CAST( NULL AS SIGNED ) THEN NULL WHEN + 43 * 63 * + CASE + - 69 WHEN + 70 + 44 * - NULLIF ( - 87, + 48 * 3 ) + + 5 THEN NULL WHEN 25 * + 39 THEN NULL ELSE + COUNT( * ) END THEN 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4452
SELECT CASE - 85 WHEN 76 * CAST ( NULL AS INTEGER ) THEN NULL WHEN + 43 * 63 * + CASE + - 69 WHEN + 70 + 44 * - NULLIF ( - 87, + 48 * 3 ) + + 5 THEN NULL WHEN 25 * + 39 THEN NULL ELSE + COUNT ( * ) END THEN 72 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT - - 95, COALESCE ( MAX( ALL 9 ), - COUNT( * ) + 39, - 56 * - COUNT( * ) * 95 ) AS col0
----
95
9

skipif mysql # not compatible
query II rowsort label-4453
SELECT - - 95, COALESCE ( MAX ( ALL 9 ), - COUNT ( * ) + 39, - 56 * - COUNT ( * ) * 95 ) AS col0
----
95
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT 97 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-4454
SELECT 97 / + 78
----
1

query I rowsort
SELECT - 29 * + 50 AS col2
----
-1450

onlyif mysql # aggregate syntax: 
query II rowsort label-4456
SELECT + COUNT( * ), - 97 + + 93 AS col1
----
1
-4

skipif mysql # not compatible
query II rowsort label-4456
SELECT + COUNT ( * ), - 97 + + 93 AS col1
----
1
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4457
SELECT - ( - NULLIF ( 51, + - AVG ( - 20 ) - - COUNT( * ) * + 22 ) ) / 88 + - 22 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT - ( - NULLIF ( 51, + - AVG ( - 20 ) - - COUNT ( * ) * + 22 ) ) / 88 + - 22 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + - COUNT( DISTINCT - + 4 )
----
-1

skipif mysql # not compatible
query I rowsort label-4458
SELECT + - COUNT ( DISTINCT - + 4 )
----
-1

query I rowsort
SELECT ALL + 94 + - - 87
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4460
SELECT DISTINCT + ( - - 54 ) * - - CAST( + 67 AS SIGNED ) + + 92 * 89 * - 7 * - - 66 - - 4 * - + 53 col1
----
-3779450

skipif mysql # not compatible
query I rowsort label-4460
SELECT DISTINCT + ( - - 54 ) * - - CAST ( + 67 AS INTEGER ) + + 92 * 89 * - 7 * - - 66 - - 4 * - + 53 col1
----
-3779450

query I rowsort
SELECT ALL - 20 + - - 74 col0
----
54

query I rowsort
SELECT + ( - 32 ) + - 95
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT + 21, ( - - 32 ) * SUM( + 79 ) * - NULLIF ( + - 60, + + 45 / + 66 + - 88 - - 85 ) AS col2
----
21
151680

skipif mysql # not compatible
query II rowsort label-4463
SELECT + 21, ( - - 32 ) * SUM ( + 79 ) * - NULLIF ( + - 60, + + 45 / + 66 + - 88 - - 85 ) AS col2
----
21
151680

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT ALL 15 + - COUNT( + 83 ) * 48 * - - 34 AS col1
----
-1617

skipif mysql # not compatible
query I rowsort label-4464
SELECT ALL 15 + - COUNT ( + 83 ) * 48 * - - 34 AS col1
----
-1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT 22 - COUNT( * ) DIV 45 * - + 69 * - 76 col2
----
22

skipif mysql # not compatible
query I rowsort label-4465
SELECT 22 - COUNT ( * ) / 45 * - + 69 * - 76 col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4466
SELECT DISTINCT + 68 DIV - + 83
----
0

skipif mysql # not compatible
query I rowsort label-4466
SELECT DISTINCT + 68 / - + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4467
SELECT COUNT( * ) * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 37 * - + CAST( 67 AS SIGNED ) + - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-4467
SELECT COUNT ( * ) * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 37 * - + CAST ( 67 AS INTEGER ) + - 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4468
SELECT DISTINCT + CASE + 20 WHEN 78 THEN + + CAST( 28 AS DECIMAL ) - - 8 + - COUNT( * ) / 23 + CASE - COUNT( * ) WHEN - 62 THEN - 34 * + 71 * + 95 + ( COUNT( * ) ) - + COUNT( * ) END * + 44 * - 58 WHEN + COUNT( * ) THEN NULL END * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT + CASE + 20 WHEN 78 THEN + + CAST ( 28 AS REAL ) - - 8 + - COUNT ( * ) / 23 + CASE - COUNT ( * ) WHEN - 62 THEN - 34 * + 71 * + 95 + ( COUNT ( * ) ) - + COUNT ( * ) END * + 44 * - 58 WHEN + COUNT ( * ) THEN NULL END * - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 31 + ( + 99 )
----
68

query I rowsort
SELECT ALL + 67 + + 57 * - 70 AS col1
----
-3923

query I rowsort
SELECT 19 - + 74 + 68 * + - 43
----
-2979

query II rowsort
SELECT DISTINCT + 86 * - 25 AS col1, - 18 + + 95 AS col1
----
-2150
77

query I rowsort
SELECT 18 + 87
----
105

query I rowsort
SELECT 54 - + 80 + 42 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT 34 * 93 * - 51 * - - 63 * - + CASE - + 93 WHEN - 12 * COUNT( * ) THEN 35 + - 71 / - ( + ( 48 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT 34 * 93 * - 51 * - - 63 * - + CASE - + 93 WHEN - 12 * COUNT ( * ) THEN 35 + - 71 / - ( + ( 48 ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT ALL NULLIF ( - + CAST( 96 AS SIGNED ), 59 )
----
-96

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL NULLIF ( - + CAST ( 96 AS INTEGER ), 59 )
----
-96

query I rowsort
SELECT ALL 87 * - NULLIF ( + 71, 62 )
----
-6177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4478
SELECT ALL 4 * - NULLIF ( + 81, + + 7 * 33 * 38 + - + 70 / - + 94 / - + 65 * + - CASE + + 54 WHEN + + 40 * 11 THEN NULL WHEN + CAST( 57 AS SIGNED ) - - 98 THEN + - CAST( - 12 AS SIGNED ) * CAST( ( + 78 ) * MAX( DISTINCT - 80 ) AS SIGNED ) WHEN - COUNT( * ) * CAST( NULL AS SIGNED ) THEN 63 * ( COUNT( * ) ) END + + 54 )
----
-324

skipif mysql # not compatible
query I rowsort label-4478
SELECT ALL 4 * - NULLIF ( + 81, + + 7 * 33 * 38 + - + 70 / - + 94 / - + 65 * + - CASE + + 54 WHEN + + 40 * 11 THEN NULL WHEN + CAST ( 57 AS INTEGER ) - - 98 THEN + - CAST ( - 12 AS INTEGER ) * CAST ( ( + 78 ) * MAX ( DISTINCT - 80 ) AS INTEGER ) WHEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) THEN 63 * ( COUNT ( * ) ) END + + 54 )
----
-324

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT DISTINCT + 24 DIV 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + 24 / 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT 34 * - - NULLIF ( + COUNT( * ), 17 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-4480
SELECT 34 * - - NULLIF ( + COUNT ( * ), 17 ) AS col0
----
34

query I rowsort
SELECT + 45 + + 10 AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL - 6 * - CASE + - CASE + 65 WHEN 10 THEN 84 WHEN - 9 * 78 THEN NULL ELSE + + 53 - + 54 + - CAST( NULL AS SIGNED ) + + + COUNT( * ) END WHEN 86 * + 17 THEN - MAX( 9 ) / + 42 WHEN 75 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - 6 * - CASE + - CASE + 65 WHEN 10 THEN 84 WHEN - 9 * 78 THEN NULL ELSE + + 53 - + 54 + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) END WHEN 86 * + 17 THEN - MAX ( 9 ) / + 42 WHEN 75 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 19 + + - 67
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT + ( - + COUNT( 39 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4484
SELECT + ( - + COUNT ( 39 ) ) AS col0
----
-1

query I rowsort
SELECT ALL 82 * + 8 + - 60
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT + - COUNT( * ) + 73 * 66
----
4817

skipif mysql # not compatible
query I rowsort label-4486
SELECT + - COUNT ( * ) + 73 * 66
----
4817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4487
SELECT ALL - 48 * - CASE WHEN NOT - 18 IS NULL THEN 70 DIV - 85 ELSE + 36 + - COALESCE ( - - COUNT( * ), - COUNT( ALL + 70 ) * - 75 * + - 0, + - 74, + 10 * + + 98 - 0 + - 29 DIV + COUNT( * ) * - 44 ) * - 30 END - COUNT( * ) * - COALESCE ( + CASE - MAX( + 94 ) WHEN CAST( NULL AS SIGNED ) THEN CAST( NULL AS SIGNED ) ELSE COALESCE ( + COUNT( * ), 98 * 73 + 55, 1 ) * - 33 END + CAST( - 81 AS SIGNED ), + 49, 15 + + 44 )
----
-114

skipif mysql # not compatible
query I rowsort label-4487
SELECT ALL - 48 * - CASE WHEN NOT - 18 IS NULL THEN 70 / - 85 ELSE + 36 + - COALESCE ( - - COUNT ( * ), - COUNT ( ALL + 70 ) * - 75 * + - 0, + - 74, + 10 * + + 98 - 0 + - 29 / + COUNT ( * ) * - 44 ) * - 30 END - COUNT ( * ) * - COALESCE ( + CASE - MAX ( + 94 ) WHEN CAST ( NULL AS INTEGER ) THEN CAST ( NULL AS INTEGER ) ELSE COALESCE ( + COUNT ( * ), 98 * 73 + 55, 1 ) * - 33 END + CAST ( - 81 AS INTEGER ), + 49, 15 + + 44 )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT + - 83 * + + COUNT( ( - 66 ) ) AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-4488
SELECT + - 83 * + + COUNT ( ( - 66 ) ) AS col2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL + SUM( ALL + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL + SUM ( ALL + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT SUM( DISTINCT + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-4490
SELECT SUM ( DISTINCT + 25 )
----
25

query I rowsort
SELECT + 53 * 55 AS col0
----
2915

query I rowsort
SELECT + 59 + - 95 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT + 71 / - 96 * - COUNT( * ) / - CASE + + ( + 72 ) WHEN - COUNT( + + 92 ) THEN - 33 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT + 71 / - 96 * - COUNT ( * ) / - CASE + + ( + 72 ) WHEN - COUNT ( + + 92 ) THEN - 33 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT - 76 DIV + + 56 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4494
SELECT - 76 / + + 56 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT DISTINCT 82 DIV + 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT 82 / + 97 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT - 11 * - 0 * - 31 DIV + - 39 * + 58 col0
----
0

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 11 * - 0 * - 31 / + - 39 * + 58 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4497
SELECT ALL - 9 DIV + - 1 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL - 9 / + - 1 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT MAX( + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-4498
SELECT MAX ( + 31 ) AS col2
----
31

query II rowsort
SELECT DISTINCT 79 col1, 42
----
79
42

query I rowsort
SELECT - ( 82 ) AS col1
----
-82

query I rowsort
SELECT ALL + 37 * - 54 * 35
----
-69930

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT + COUNT( * ) * + ( 43 ) AS col1, + 43 * - 99 * + 58
----
43
-246906

skipif mysql # not compatible
query II rowsort label-4502
SELECT + COUNT ( * ) * + ( 43 ) AS col1, + 43 * - 99 * + 58
----
43
-246906

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT ALL 85 AS col0, + 74 * - MIN( DISTINCT + ( + 32 ) )
----
85
-2368

skipif mysql # not compatible
query II rowsort label-4503
SELECT ALL 85 AS col0, + 74 * - MIN ( DISTINCT + ( + 32 ) )
----
85
-2368

query II rowsort
SELECT ALL 36 AS col2, - CASE + 46 WHEN + - 85 THEN NULL ELSE + - 84 END
----
36
84

query I rowsort
SELECT DISTINCT + 19 * - - 58
----
1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT ALL + CAST( NULL AS SIGNED ) * + 93 / + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + CAST ( NULL AS INTEGER ) * + 93 / + 97
----
NULL

query II rowsort
SELECT 23, + 38 * 99 * + + 67 AS col1
----
23
252054

query I rowsort
SELECT + 57 - 88
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL CASE 42 WHEN + 63 * - 0 + - 12 + COUNT( * ) * - + COUNT( * ) THEN - COUNT( * ) WHEN + + ( - NULLIF ( + 94, 70 ) ) + - COUNT( * ) THEN + 92 + + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL CASE 42 WHEN + 63 * - 0 + - 12 + COUNT ( * ) * - + COUNT ( * ) THEN - COUNT ( * ) WHEN + + ( - NULLIF ( + 94, 70 ) ) + - COUNT ( * ) THEN + 92 + + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT - - 38 * - MAX( + 6 ) * + + 40 + - COUNT( * )
----
-9121

skipif mysql # not compatible
query I rowsort label-4510
SELECT - - 38 * - MAX ( + 6 ) * + + 40 + - COUNT ( * )
----
-9121

query II rowsort
SELECT - 26, 72 AS col0
----
-26
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT ALL - 75 + + - COUNT( * )
----
-76

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL - 75 + + - COUNT ( * )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - + NULLIF ( + + MIN( + 48 ), - 89 * + 33 + 12 - + + 78 + + - 73 + + 52 ) * + + ( - 95 ) AS col1
----
4560

skipif mysql # not compatible
query I rowsort label-4513
SELECT - + NULLIF ( + + MIN ( + 48 ), - 89 * + 33 + 12 - + + 78 + + - 73 + + 52 ) * + + ( - 95 ) AS col1
----
4560

onlyif mysql # aggregate syntax: 
query II rowsort label-4514
SELECT - 10, - COUNT( * ) AS col0
----
-10
-1

skipif mysql # not compatible
query II rowsort label-4514
SELECT - 10, - COUNT ( * ) AS col0
----
-10
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL + COUNT( * ) + - 86 AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL + COUNT ( * ) + - 86 AS col2
----
-85

query I rowsort
SELECT - + 98 * 33
----
-3234

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT DISTINCT + 92 + 30 DIV - 66 * - 30 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4517
SELECT DISTINCT + 92 + 30 / - 66 * - 30 AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4518
SELECT ALL - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT - MAX( DISTINCT 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-4519
SELECT - MAX ( DISTINCT 37 )
----
-37

query I rowsort
SELECT ALL + 42 * 16 AS col0
----
672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT ALL - 94 DIV - 24 - COUNT( * ) + + 82 col0
----
84

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 94 / - 24 - COUNT ( * ) + + 82 col0
----
84

query I rowsort
SELECT DISTINCT + + COALESCE ( + 39, + 10 * - 98 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-4523
SELECT ( + COUNT( * ) ) col2, + 65
----
1
65

skipif mysql # not compatible
query II rowsort label-4523
SELECT ( + COUNT ( * ) ) col2, + 65
----
1
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4524
SELECT - 71 - - CAST( - SUM( - CAST( - 39 AS SIGNED ) ) AS SIGNED ) * 7 * - - COUNT( ALL + 10 )
----
-344

skipif mysql # not compatible
query I rowsort label-4524
SELECT - 71 - - CAST ( - SUM ( - CAST ( - 39 AS INTEGER ) ) AS INTEGER ) * 7 * - - COUNT ( ALL + 10 )
----
-344

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4525
SELECT - 30 * + NULLIF ( + 92, CAST( NULL AS DECIMAL ) ) AS col1, - 51 * 32
----
-2760
-1632

skipif mysql # not compatible
query II rowsort label-4525
SELECT - 30 * + NULLIF ( + 92, CAST ( NULL AS REAL ) ) AS col1, - 51 * 32
----
-2760
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT + 35 * + - 25 * + - MIN( DISTINCT 50 )
----
43750

skipif mysql # not compatible
query I rowsort label-4526
SELECT + 35 * + - 25 * + - MIN ( DISTINCT 50 )
----
43750

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT ALL 41 * + SUM( DISTINCT + 59 ) AS col1
----
2419

skipif mysql # not compatible
query I rowsort label-4527
SELECT ALL 41 * + SUM ( DISTINCT + 59 ) AS col1
----
2419

query I rowsort
SELECT 4 * + - 52 + + 0
----
-208

query II rowsort
SELECT DISTINCT + ( + 65 ) AS col0, - 6 * 19 AS col0
----
65
-114

query I rowsort
SELECT + 17 - 63 AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4531
SELECT DISTINCT 40 * - COALESCE ( - + 25, + + ( MIN( DISTINCT + - CAST( 85 AS SIGNED ) ) ) ) col1
----
1000

skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT 40 * - COALESCE ( - + 25, + + ( MIN ( DISTINCT + - CAST ( 85 AS INTEGER ) ) ) ) col1
----
1000

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT + 69 + - 42 + - 30 + COALESCE ( + 32, 85 + - - 42 + - 25 + - 48 ) DIV 33 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4532
SELECT + 69 + - 42 + - 30 + COALESCE ( + 32, 85 + - - 42 + - 25 + - 48 ) / 33 AS col1
----
-3

query I rowsort
SELECT ( - 24 ) + 15 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4534
SELECT 82 DIV + ( + 87 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4534
SELECT 82 / + ( + 87 ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4535
SELECT ALL 28 + + 86 * + - 35 * CAST( - + 11 AS SIGNED ) * - + 74 + - 93 + 84
----
-2450121

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL 28 + + 86 * + - 35 * CAST ( - + 11 AS INTEGER ) * - + 74 + - 93 + 84
----
-2450121

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT MAX( + - 25 ) + + + 50 + - 75 col1
----
-50

skipif mysql # not compatible
query I rowsort label-4536
SELECT MAX ( + - 25 ) + + + 50 + - 75 col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT 88 - - + COUNT( * ) - + 13
----
76

skipif mysql # not compatible
query I rowsort label-4537
SELECT 88 - - + COUNT ( * ) - + 13
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT 62 + + 73 + - COUNT( * ) * 34 + - 17
----
84

skipif mysql # not compatible
query I rowsort label-4538
SELECT 62 + + 73 + - COUNT ( * ) * 34 + - 17
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT COUNT( * ) + - 44 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-4539
SELECT COUNT ( * ) + - 44 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4540
SELECT ALL + - 83 + + 5 - + COUNT( * ) * - 54 + - - 59 col2, - 78 col1
----
35
-78

skipif mysql # not compatible
query II rowsort label-4540
SELECT ALL + - 83 + + 5 - + COUNT ( * ) * - 54 + - - 59 col2, - 78 col1
----
35
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL COUNT( * ) + + + 79 + - 19 * + - 53 * - 77
----
-77459

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL COUNT ( * ) + + + 79 + - 19 * + - 53 * - 77
----
-77459

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT DISTINCT - 96 + CASE - 34 WHEN - 7 + MIN( DISTINCT - 19 ) THEN COUNT( * ) WHEN - 32 THEN - + MAX( DISTINCT - 90 ) + - 5 + COUNT( * ) ELSE + + 73 END + + - ( ( + + 3 ) ) AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT - 96 + CASE - 34 WHEN - 7 + MIN ( DISTINCT - 19 ) THEN COUNT ( * ) WHEN - 32 THEN - + MAX ( DISTINCT - 90 ) + - 5 + COUNT ( * ) ELSE + + 73 END + + - ( ( + + 3 ) ) AS col0
----
-26

query I rowsort
SELECT ALL - 32 * + 70 AS col1
----
-2240

query I rowsort
SELECT ALL + 63 + + 98
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT - - ( - MAX( + - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-4545
SELECT - - ( - MAX ( + - 59 ) )
----
59

query II rowsort
SELECT 10 + + ( + - 21 ) + 98 AS col2, 7 AS col0
----
87
7

query I rowsort
SELECT 28 + 18 * - 5 AS col1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-4548
SELECT - 64 + - - 13 DIV 15 DIV - 31 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-4548
SELECT - 64 + - - 13 / 15 / - 31 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT - - SUM( ( + 50 ) )
----
50

skipif mysql # not compatible
query I rowsort label-4549
SELECT - - SUM ( ( + 50 ) )
----
50

query I rowsort
SELECT DISTINCT - NULLIF ( 59, - + 78 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT ALL SUM( 21 ) AS col2, - 71
----
21
-71

skipif mysql # not compatible
query II rowsort label-4551
SELECT ALL SUM ( 21 ) AS col2, - 71
----
21
-71

query I rowsort
SELECT ALL + 47 - + 94 AS col2
----
-47

query I rowsort
SELECT DISTINCT - 89 * + 24
----
-2136

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4554
SELECT DISTINCT + - 73 - + 33, + CASE ( - 72 ) WHEN + CAST( + 0 AS SIGNED ) THEN + 35 + - + 60 WHEN - 45 + CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) THEN NULL END col1
----
-106
NULL

skipif mysql # not compatible
query II rowsort label-4554
SELECT DISTINCT + - 73 - + 33, + CASE ( - 72 ) WHEN + CAST ( + 0 AS INTEGER ) THEN + 35 + - + 60 WHEN - 45 + CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) THEN NULL END col1
----
-106
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4555
SELECT ALL - - 3 * + COUNT( * ) AS col0, SUM( - 10 )
----
3
-10

skipif mysql # not compatible
query II rowsort label-4555
SELECT ALL - - 3 * + COUNT ( * ) AS col0, SUM ( - 10 )
----
3
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT + 14 + + 11 * - + 95 - COUNT( * ) + - 7 DIV 89
----
-1032

skipif mysql # not compatible
query I rowsort label-4556
SELECT + 14 + + 11 * - + 95 - COUNT ( * ) + - 7 / 89
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + - 61 * 56 * COUNT( - - 80 )
----
-3416

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + - 61 * 56 * COUNT ( - - 80 )
----
-3416

query I rowsort
SELECT 36 * - 36 * 22 + - 83 * - - 95
----
-36397

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT 12 DIV 20 DIV + ( + + 20 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT 12 / 20 / + ( + + 20 ) col2
----
0

query I rowsort
SELECT 48 * 53 AS col1
----
2544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4561
SELECT ALL + COUNT( * ) * CAST( 52 AS SIGNED ) AS col1, 99 AS col0
----
52
99

skipif mysql # not compatible
query II rowsort label-4561
SELECT ALL + COUNT ( * ) * CAST ( 52 AS INTEGER ) AS col1, 99 AS col0
----
52
99

query II rowsort
SELECT 19 + + 52 - - - 53 + - - 45 * 56 AS col0, 50 col1
----
2538
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT + 27 * - COUNT( * ) DIV + + 46 - + + 66 AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-4563
SELECT + 27 * - COUNT ( * ) / + + 46 - + + 66 AS col0
----
-66

query I rowsort
SELECT ALL - ( - - ( - ( - - 76 ) ) )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL - CASE - 36 WHEN - + NULLIF ( + COUNT( * ), - - 35 ) THEN + - 18 + + - COUNT( * ) / + - 55 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - CASE - 36 WHEN - + NULLIF ( + COUNT ( * ), - - 35 ) THEN + - 18 + + - COUNT ( * ) / + - 55 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT - 64 * - 61 + - ( 77 ) * CAST( + COUNT( * ) AS SIGNED ) * - 14 AS col1
----
4982

skipif mysql # not compatible
query I rowsort label-4566
SELECT - 64 * - 61 + - ( 77 ) * CAST ( + COUNT ( * ) AS INTEGER ) * - 14 AS col1
----
4982

query I rowsort
SELECT 47 * + - 34
----
-1598

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL 88 + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL 88 + COUNT ( * )
----
89

query I rowsort
SELECT CASE + 55 WHEN - 44 * + 58 * 74 THEN + 5 - - 63 END + - AVG ( + 75 ) + + 46
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT 37 * - SUM( ALL + 74 ) AS col1
----
-2738

skipif mysql # not compatible
query I rowsort label-4570
SELECT 37 * - SUM ( ALL + 74 ) AS col1
----
-2738

query I rowsort
SELECT ALL 28 + + 72
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT 87 + COUNT( * ) + - + 83 * + + 11 - - 2 AS col2
----
-823

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT 87 + COUNT ( * ) + - + 83 * + + 11 - - 2 AS col2
----
-823

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4573
SELECT 78, COUNT( * ) * ( 64 ) DIV 67 * + 37 * + 50 AS col0
----
78
0

skipif mysql # not compatible
query II rowsort label-4573
SELECT 78, COUNT ( * ) * ( 64 ) / 67 * + 37 * + 50 AS col0
----
78
0

query I rowsort
SELECT 63 * 1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT DISTINCT - 2 * + + COUNT( * ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - 2 * + + COUNT ( * ) AS col2
----
-2

query I rowsort
SELECT ALL + 67 * 48 + + - 43 AS col1
----
3173

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT 66 - + COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4577
SELECT 66 - + COUNT ( * ) AS col0
----
65

query I rowsort
SELECT - 96 * - 60 AS col1
----
5760

query I rowsort
SELECT 12 - + 3 AS col2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT ALL - 40 DIV 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - 40 / 80 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT 81 - CAST( NULL AS SIGNED ) + 21 + - CASE + 61 WHEN - 96 THEN + 50 ELSE NULL END + 22 * - - AVG ( ALL - - 80 ) * - + 62 / 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT 81 - CAST ( NULL AS INTEGER ) + 21 + - CASE + 61 WHEN - 96 THEN + 50 ELSE NULL END + 22 * - - AVG ( ALL - - 80 ) * - + 62 / 9 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT + CAST( + NULLIF ( COUNT( * ), + 27 + - 30 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT + CAST ( + NULLIF ( COUNT ( * ), + 27 + - 30 ) AS INTEGER )
----
1

query I rowsort
SELECT + 3 - - - 98
----
-95

query I rowsort
SELECT 15 * - 12
----
-180

query I rowsort
SELECT - 12 * 36 AS col2
----
-432

query I rowsort
SELECT ALL 81 * + 82
----
6642

query II rowsort
SELECT 17 AS col0, 43 * 78 AS col1
----
17
3354

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT + 86 AS col1, - 89 + - COUNT( * ) - - 47 - 32 * 70 * 18
----
86
-40363

skipif mysql # not compatible
query II rowsort label-4588
SELECT + 86 AS col1, - 89 + - COUNT ( * ) - - 47 - 32 * 70 * 18
----
86
-40363

query I rowsort
SELECT NULLIF ( - 10, - 25 ) + 14
----
4

query II rowsort
SELECT DISTINCT - 60 col0, - 53
----
-60
-53

query II rowsort
SELECT DISTINCT - 76 AS col0, + 95 * - 67
----
-76
-6365

query II rowsort
SELECT + 66, + 15 AS col2
----
66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT 54 * - + ( + ( COUNT( 50 ) ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-4593
SELECT 54 * - + ( + ( COUNT ( 50 ) ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4594
SELECT - ( 30 ) DIV - 44 * + + COUNT( * ) * + 77
----
0

skipif mysql # not compatible
query I rowsort label-4594
SELECT - ( 30 ) / - 44 * + + COUNT ( * ) * + 77
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4595
SELECT ALL COUNT( * ) * + + 91 + - - CAST( NULL AS DECIMAL ) + - - 55 AS col1, 0 - - COUNT( * ) + + - CASE SUM( DISTINCT 18 ) WHEN + 11 THEN - 79 ELSE NULL END + + CAST( NULL AS SIGNED ) col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4595
SELECT ALL COUNT ( * ) * + + 91 + - - CAST ( NULL AS REAL ) + - - 55 AS col1, 0 - - COUNT ( * ) + + - CASE SUM ( DISTINCT 18 ) WHEN + 11 THEN - 79 ELSE NULL END + + CAST ( NULL AS INTEGER ) col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - MIN( - + 6 ) - + ( - 58 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4596
SELECT - MIN ( - + 6 ) - + ( - 58 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - ( - - 5 ) * COUNT( 45 ) * - COUNT( * ) + - MIN( DISTINCT + + 83 )
----
-78

skipif mysql # not compatible
query I rowsort label-4597
SELECT - ( - - 5 ) * COUNT ( 45 ) * - COUNT ( * ) + - MIN ( DISTINCT + + 83 )
----
-78

query I rowsort
SELECT ALL - 6 * + 5 AS col0
----
-30

query II rowsort
SELECT DISTINCT + 95 AS col2, + 82
----
95
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - ( - 59 ) * COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4600
SELECT - ( - 59 ) * COUNT ( * ) AS col1
----
59

query I rowsort
SELECT DISTINCT + 61 + - 28 AS col2
----
33

query I rowsort
SELECT ALL 74 + 60
----
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT + 20 * - + 98 + 44 + + 39 + 13 * + 78 + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT + 20 * - + 98 + 44 + + 39 + 13 * + 78 + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 97 * 88 AS col0, 26 AS col0
----
-8536
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT - - 49 * + 85 * + + 94 + - 2 * - COUNT( * ) + 91 + - 52 + + 64 * - ( 52 ) * - CASE 88 WHEN - 64 * - 59 * + 33 + + 56 + - - 65 THEN NULL WHEN - AVG ( DISTINCT - 3 ) * - + 71 + COALESCE ( + NULLIF ( + 20, 74 + 87 ), 13 ) * 7 THEN 70 ELSE NULL END * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT - - 49 * + 85 * + + 94 + - 2 * - COUNT ( * ) + 91 + - 52 + + 64 * - ( 52 ) * - CASE 88 WHEN - 64 * - 59 * + 33 + + 56 + - - 65 THEN NULL WHEN - AVG ( DISTINCT - 3 ) * - + 71 + COALESCE ( + NULLIF ( + 20, 74 + 87 ), 13 ) * 7 THEN 70 ELSE NULL END * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( + 56 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL + ( + MAX( ALL - 66 ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL + ( + MAX ( ALL - 66 ) ) col0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT + + COUNT( * ) + - - 39 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-4608
SELECT + + COUNT ( * ) + - - 39 AS col2
----
40

query I rowsort
SELECT DISTINCT - 61 * - 45
----
2745

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + MIN( ALL 87 ) + 40 AS col2
----
127

skipif mysql # not compatible
query I rowsort label-4610
SELECT + MIN ( ALL 87 ) + 40 AS col2
----
127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4611
SELECT - NULLIF ( - 28, COUNT( - - 30 ) ) DIV + - 49 + + 63 + + COUNT( * ) DIV + - 72
----
63

skipif mysql # not compatible
query I rowsort label-4611
SELECT - NULLIF ( - 28, COUNT ( - - 30 ) ) / + - 49 + + 63 + + COUNT ( * ) / + - 72
----
63

query I rowsort
SELECT + 96 * 94 col0
----
9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4613
SELECT + COUNT( * ) + ( - CAST( NULL AS SIGNED ) ) * + + 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4613
SELECT + COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) ) * + + 56 AS col1
----
NULL

query II rowsort
SELECT ALL 97 AS col1, - ( 80 ) + + 15 AS col1
----
97
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4615
SELECT + - COUNT( * ) + 54 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT + - COUNT ( * ) + 54 + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 59 AS col1, - 6 * - 16
----
-59
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4617
SELECT + + 73 + 41 + + + 88 + + 9 + - - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT + + 73 + 41 + + + 88 + + 9 + - - ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 12 + - - 9 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4619
SELECT NULLIF ( 57, - ( 36 ) ) DIV - 40 + 19 + CASE - COALESCE ( - 94, - - 31 * + AVG ( ALL + - 51 ) * + 50 * + 79 ) WHEN + 86 DIV + + 22 THEN NULL WHEN SUM( - 22 ) THEN NULL WHEN + + 32 THEN NULL ELSE - 10 END - - 8 DIV 47 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4619
SELECT NULLIF ( 57, - ( 36 ) ) / - 40 + 19 + CASE - COALESCE ( - 94, - - 31 * + AVG ( ALL + - 51 ) * + 50 * + 79 ) WHEN + 86 / + + 22 THEN NULL WHEN SUM ( - 22 ) THEN NULL WHEN + + 32 THEN NULL ELSE - 10 END - - 8 / 47 AS col0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT + NULLIF ( + - 62, + - 31 + - CAST( + 9 AS SIGNED ) * + ( 66 ) * + 7 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-4620
SELECT + NULLIF ( + - 62, + - 31 + - CAST ( + 9 AS INTEGER ) * + ( 66 ) * + 7 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT MAX( - - 14 ) * - 10 + + - 74
----
-214

skipif mysql # not compatible
query I rowsort label-4621
SELECT MAX ( - - 14 ) * - 10 + + - 74
----
-214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4622
SELECT ALL 49 DIV + 25 + - COALESCE ( - - CAST( 0 AS SIGNED ), + + 4, - 20 * 75 - + 49 ) + + + SUM( + 76 ) col0
----
77

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 49 / + 25 + - COALESCE ( - - CAST ( 0 AS INTEGER ), + + 4, - 20 * 75 - + 49 ) + + + SUM ( + 76 ) col0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT 10 DIV - 50 + 77
----
77

skipif mysql # not compatible
query I rowsort label-4623
SELECT 10 / - 50 + 77
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT ( + COUNT( * ) ) AS col1, COALESCE ( + - 26, + + 7 * + 78 * - 63, + NULLIF ( - MIN( 49 ), + + 21 ) + + 8 )
----
1
-26

skipif mysql # not compatible
query II rowsort label-4624
SELECT ( + COUNT ( * ) ) AS col1, COALESCE ( + - 26, + + 7 * + 78 * - 63, + NULLIF ( - MIN ( 49 ), + + 21 ) + + 8 )
----
1
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT + COUNT( * ) + 90 + - + 9 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4625
SELECT + COUNT ( * ) + 90 + - + 9 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT + 80 * 65 + - COUNT( * ) * 50 * - - 2 * + SUM( ALL - 45 )
----
9700

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 80 * 65 + - COUNT ( * ) * 50 * - - 2 * + SUM ( ALL - 45 )
----
9700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4627
SELECT + CAST( - 39 AS SIGNED ), - CASE + 67 WHEN 84 THEN + 6 + + + COUNT( * ) WHEN - + 96 THEN + - ( 51 ) END AS col0
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-4627
SELECT + CAST ( - 39 AS INTEGER ), - CASE + 67 WHEN 84 THEN + 6 + + + COUNT ( * ) WHEN - + 96 THEN + - ( 51 ) END AS col0
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + 18 * 96 + - COUNT( * )
----
1727

skipif mysql # not compatible
query I rowsort label-4628
SELECT + 18 * 96 + - COUNT ( * )
----
1727

query I rowsort
SELECT ( + + NULLIF ( + - 10, - + 36 ) ) col2
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4630
SELECT CAST( NULL AS SIGNED ) * COALESCE ( - 57, + 57, 84 + - - 93 ) + + 39 + 81 * + + CASE - 86 WHEN + - 45 - 64 + - + CASE + 19 WHEN 51 THEN + - 14 WHEN 0 * - + 78 * - 66 THEN NULL WHEN + + 36 THEN NULL ELSE + 34 + AVG ( ( 3 ) ) + - 7 * COUNT( ALL CAST( ( 31 ) AS SIGNED ) ) END THEN + CAST( + COUNT( * ) AS DECIMAL ) * - 76 END + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4630
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( - 57, + 57, 84 + - - 93 ) + + 39 + 81 * + + CASE - 86 WHEN + - 45 - 64 + - + CASE + 19 WHEN 51 THEN + - 14 WHEN 0 * - + 78 * - 66 THEN NULL WHEN + + 36 THEN NULL ELSE + 34 + AVG ( ( 3 ) ) + - 7 * COUNT ( ALL CAST ( ( 31 ) AS INTEGER ) ) END THEN + CAST ( + COUNT ( * ) AS REAL ) * - 76 END + 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT + 68 * - 91 * - 50 * CASE - 19 WHEN - - 87 * 13 THEN - 52 * - + CASE + 60 WHEN - 41 + 45 + 44 THEN - + 34 / 75 * - + 55 ELSE NULL END + + COUNT( * ) - 85 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT + 68 * - 91 * - 50 * CASE - 19 WHEN - - 87 * 13 THEN - 52 * - + CASE + 60 WHEN - 41 + 45 + 44 THEN - + 34 / 75 * - + 55 ELSE NULL END + + COUNT ( * ) - 85 - - COUNT ( * ) END
----
NULL

query II rowsort
SELECT ALL + - ( + 85 ) AS col0, - 76
----
-85
-76

query I rowsort
SELECT + - 70 * + - 69 col2
----
4830

query I rowsort
SELECT - 69 * 17
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT + ( - COUNT( * ) ) * 72 + + 93
----
21

skipif mysql # not compatible
query I rowsort label-4635
SELECT + ( - COUNT ( * ) ) * 72 + + 93
----
21

query I rowsort
SELECT ALL + + 9 * - 49
----
-441

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - 85 * ( - SUM( DISTINCT + + 11 ) ) AS col0
----
935

skipif mysql # not compatible
query I rowsort label-4637
SELECT - 85 * ( - SUM ( DISTINCT + + 11 ) ) AS col0
----
935

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - + 94 - + + 71 + - - CASE - COUNT( * ) WHEN + 72 THEN CASE + + 94 WHEN + - 2 THEN - MAX( ALL - 66 ) ELSE NULL END WHEN + 98 THEN + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT - + 94 - + + 71 + - - CASE - COUNT ( * ) WHEN + 72 THEN CASE + + 94 WHEN + - 2 THEN - MAX ( ALL - 66 ) ELSE NULL END WHEN + 98 THEN + COUNT ( * ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT - - 19 - + - ( 19 ) AS col2
----
38

query I rowsort
SELECT ALL NULLIF ( - - 71, 68 )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4641
SELECT DISTINCT + COUNT( * ) + + 58 * + 19 / + NULLIF ( - ( + + CAST( NULL AS SIGNED ) ), - 39 ), - 21 AS col0
----
NULL
-21

skipif mysql # not compatible
query II rowsort label-4641
SELECT DISTINCT + COUNT ( * ) + + 58 * + 19 / + NULLIF ( - ( + + CAST ( NULL AS INTEGER ) ), - 39 ), - 21 AS col0
----
NULL
-21

query I rowsort
SELECT ALL 0 + - 80 AS col1
----
-80

query I rowsort
SELECT ALL 71 + 89
----
160

query I rowsort
SELECT 57 - 73
----
-16

query II rowsort
SELECT 35 AS col2, 96
----
35
96

query II rowsort
SELECT 70 AS col1, + 33
----
70
33

query I rowsort
SELECT ALL 11 + 10 + - ( + + 42 ) AS col2
----
-21

query I rowsort
SELECT 47 * - 22
----
-1034

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT 53 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT 53 / - 89
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4650
SELECT DISTINCT 64 DIV + 55 col1
----
1

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT 64 / + 55 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - 61 - COUNT( + - 16 ) col1
----
-62

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - 61 - COUNT ( + - 16 ) col1
----
-62

query I rowsort
SELECT ALL 99 * 70 AS col0
----
6930

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4653
SELECT 79 DIV COUNT( * ) * + 46 * - 49
----
-178066

skipif mysql # not compatible
query I rowsort label-4653
SELECT 79 / COUNT ( * ) * + 46 * - 49
----
-178066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4654
SELECT DISTINCT 10 / COALESCE ( - 25, + 93 * - - COUNT( * ), ( + - 82 ) * - 88 + 68 / 66 * + - ( + 62 ) + + 55 * - - 4 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 10 / COALESCE ( - 25, + 93 * - - COUNT ( * ), ( + - 82 ) * - 88 + 68 / 66 * + - ( + 62 ) + + 55 * - - 4 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT 62 + + + COUNT( * ) + 27 + + 44 * - 76 + + 80 AS col2
----
-3174

skipif mysql # not compatible
query I rowsort label-4655
SELECT 62 + + + COUNT ( * ) + 27 + + 44 * - 76 + + 80 AS col2
----
-3174

query II rowsort
SELECT + 43 AS col1, + 15 AS col0
----
43
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4657
SELECT ALL - 33 AS col0, - 62 DIV + + COUNT( * ) + 0 AS col2
----
-33
-62

skipif mysql # not compatible
query II rowsort label-4657
SELECT ALL - 33 AS col0, - 62 / + + COUNT ( * ) + 0 AS col2
----
-33
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT 69 - COALESCE ( + 61, 64 + - SUM( ALL + 57 ) ) + + 67 * - 41 AS col1
----
-2739

skipif mysql # not compatible
query I rowsort label-4658
SELECT 69 - COALESCE ( + 61, 64 + - SUM ( ALL + 57 ) ) + + 67 * - 41 AS col1
----
-2739

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4659
SELECT CASE + CAST( NULL AS SIGNED ) WHEN + 41 - 35 / - COUNT( + 33 ) + + - COUNT( * ) / 2 * + 20 * 38 + - + 55 * - CAST( - 84 AS SIGNED ) + + - 72 THEN + 99 / COUNT( * ) WHEN + - 60 / + 90 THEN 67 END * + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4659
SELECT CASE + CAST ( NULL AS INTEGER ) WHEN + 41 - 35 / - COUNT ( + 33 ) + + - COUNT ( * ) / 2 * + 20 * 38 + - + 55 * - CAST ( - 84 AS INTEGER ) + + - 72 THEN + 99 / COUNT ( * ) WHEN + - 60 / + 90 THEN 67 END * + 8 AS col1
----
NULL

query I rowsort
SELECT ( + - 63 ) + 0 * + + 52 col2
----
-63

query I rowsort
SELECT 13 * + - 42
----
-546

query I rowsort
SELECT DISTINCT 56 * - 9 AS col0
----
-504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4663
SELECT + 48 * ( 20 ) / - + 57 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4663
SELECT + 48 * ( 20 ) / - + 57 + - - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 76 * 7
----
532

query II rowsort
SELECT DISTINCT - + 80 AS col1, 98 + 66
----
-80
164

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT ALL - - SUM( DISTINCT - - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-4666
SELECT ALL - - SUM ( DISTINCT - - 59 )
----
59

query I rowsort
SELECT 41 - 36
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4668
SELECT + 81 DIV - - 63 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4668
SELECT + 81 / - - 63 AS col0
----
1

query I rowsort
SELECT DISTINCT - 61 + + - 25
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT - + CAST( - - 88 AS SIGNED ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-4670
SELECT - + CAST ( - - 88 AS INTEGER ) col1
----
-88

query I rowsort
SELECT + 8 + + 25
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT DISTINCT - 79 + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 79 + COUNT ( * ) AS col1
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4673
SELECT ALL + + CAST( + 6 AS SIGNED ) + + - 24
----
-18

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + + CAST ( + 6 AS INTEGER ) + + - 24
----
-18

query II rowsort
SELECT NULLIF ( - 12, + 92 ) AS col1, 0 AS col1
----
-12
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT DISTINCT + COUNT( * ) + - + 39
----
-38

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + COUNT ( * ) + - + 39
----
-38

query I rowsort
SELECT ALL - 92 + + 99
----
7

query I rowsort
SELECT 53 + + 16 AS col1
----
69

query I rowsort
SELECT 56 * - - 98
----
5488

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT DISTINCT - 47 - 78 + - + MAX( 20 ) + - 79 * - 84 * - 19
----
-126229

skipif mysql # not compatible
query I rowsort label-4679
SELECT DISTINCT - 47 - 78 + - + MAX ( 20 ) + - 79 * - 84 * - 19
----
-126229

query II rowsort
SELECT ALL 58 - + 41 col1, 99 + + 52 * - 29 * + + ( 61 ) * - 79 AS col2
----
17
7267151

query I rowsort
SELECT ALL - 56 * + 1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT CASE + 49 WHEN + - COALESCE ( 49, + 72 ) THEN 88 END + - 14 / + AVG ( DISTINCT - 21 ) + - COUNT( * ) + + COALESCE ( + + CASE + - ( - ( + 24 ) ) WHEN 95 THEN NULL ELSE 61 + 2 END, - - COUNT( * ) + + 79 / 41, ( - COUNT( * ) ) ) + - 78 + - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT CASE + 49 WHEN + - COALESCE ( 49, + 72 ) THEN 88 END + - 14 / + AVG ( DISTINCT - 21 ) + - COUNT ( * ) + + COALESCE ( + + CASE + - ( - ( + 24 ) ) WHEN 95 THEN NULL ELSE 61 + 2 END, - - COUNT ( * ) + + 79 / 41, ( - COUNT ( * ) ) ) + - 78 + - 13
----
NULL

query I rowsort
SELECT 72 * - 96 AS col0
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT 57 * + + 48 + - - COUNT( + 85 ) * + 58 AS col2
----
2794

skipif mysql # not compatible
query I rowsort label-4684
SELECT 57 * + + 48 + - - COUNT ( + 85 ) * + 58 AS col2
----
2794

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4685
SELECT - 90 * - 4 + + ( 44 ) + ( + 80 ) * - COUNT( * ) * + - NULLIF ( + - CAST( NULL AS DECIMAL ), - - 51 + - 70 ) - - + 5 * - - AVG ( + 0 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4685
SELECT - 90 * - 4 + + ( 44 ) + ( + 80 ) * - COUNT ( * ) * + - NULLIF ( + - CAST ( NULL AS REAL ), - - 51 + - 70 ) - - + 5 * - - AVG ( + 0 ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT ALL - 68 DIV + ( + + 26 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - 68 / + ( + + 26 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT 87 * 67 + - NULLIF ( + - 97, COUNT( * ) * ( - 23 ) + - 36 * 25 + - - 66 + + 33 + + - SUM( DISTINCT - 61 ) / - 94 )
----
5926

skipif mysql # not compatible
query I rowsort label-4687
SELECT 87 * 67 + - NULLIF ( + - 97, COUNT ( * ) * ( - 23 ) + - 36 * 25 + - - 66 + + 33 + + - SUM ( DISTINCT - 61 ) / - 94 )
----
5926

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4688
SELECT 25 / - CASE 92 WHEN CAST( - 26 AS SIGNED ) + - - 34 - + 44 THEN + + COUNT( * ) / - 71 + + 62 * - 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4688
SELECT 25 / - CASE 92 WHEN CAST ( - 26 AS INTEGER ) + - - 34 - + 44 THEN + + COUNT ( * ) / - 71 + + 62 * - 38 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4689
SELECT ALL - ( + - 79 ) DIV SUM( + 64 ) AS col2, 99 AS col0
----
1
99

skipif mysql # not compatible
query II rowsort label-4689
SELECT ALL - ( + - 79 ) / SUM ( + 64 ) AS col2, 99 AS col0
----
1
99

query I rowsort
SELECT + 40 * 94
----
3760

query I rowsort
SELECT ALL - 32 + 92 AS col2
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4692
SELECT + CAST( - COALESCE ( + + 76, + COUNT( * ) * + ( - 89 ) - - COUNT( * ) * 50 ) AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4692
SELECT + CAST ( - COALESCE ( + + 76, + COUNT ( * ) * + ( - 89 ) - - COUNT ( * ) * 50 ) AS INTEGER ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL 36 + COUNT( * ) * + - SUM( DISTINCT - ( - - 8 ) ) - ( - 87 ) col1
----
131

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL 36 + COUNT ( * ) * + - SUM ( DISTINCT - ( - - 8 ) ) - ( - 87 ) col1
----
131

query II rowsort
SELECT - 6 * - 34 AS col2, + 28 * - - 12
----
204
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL 76 + - 4 + + - 66 + COUNT( * ) + - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL 76 + - 4 + + - 66 + COUNT ( * ) + - COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL + 91 + + + 80 + - + 24 AS col0
----
147

query I rowsort
SELECT ALL 3 + - + 78 + - 98 AS col1
----
-173

query I rowsort
SELECT + + 11 * + 46 + + - 99 - + + 29 * + - 44
----
1683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4699
SELECT ALL - + 24 DIV - 11 + + 69 * - + NULLIF ( + + COUNT( * ), - - CASE + 20 WHEN + + 40 + + 32 THEN - 27 END + - 75 ) * - COUNT( * ) + - 54 + - 46 + 51 + - - 75 AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - + 24 / - 11 + + 69 * - + NULLIF ( + + COUNT ( * ), - - CASE + 20 WHEN + + 40 + + 32 THEN - 27 END + - 75 ) * - COUNT ( * ) + - 54 + - 46 + 51 + - - 75 AS col0
----
97

query I rowsort
SELECT + 42 * - 69
----
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT - COALESCE ( - CAST( - 65 AS SIGNED ), + + 65 )
----
-65

skipif mysql # not compatible
query I rowsort label-4701
SELECT - COALESCE ( - CAST ( - 65 AS INTEGER ), + + 65 )
----
-65

query I rowsort
SELECT DISTINCT 35 * - 49
----
-1715

query II rowsort
SELECT ALL 19, - 93 AS col0
----
19
-93

query I rowsort
SELECT ALL 52 * 60 AS col2
----
3120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4705
SELECT ALL + COUNT( + 83 ) DIV + 18
----
0

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL + COUNT ( + 83 ) / + 18
----
0

query I rowsort
SELECT + 34 + - - 18 AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4707
SELECT - 40 - + CAST( - + 82 AS SIGNED ) DIV 29 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4707
SELECT - 40 - + CAST ( - + 82 AS INTEGER ) / 29 AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT ALL MAX( + - 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-4708
SELECT ALL MAX ( + - 63 )
----
-63

query I rowsort
SELECT - 10 * - - 8
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT - 74 * + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-4710
SELECT - 74 * + + COUNT ( * )
----
-74

query I rowsort
SELECT ALL + 36 * - 73 * 95 + + 95 * + + NULLIF ( 13, - 15 * 94 * 76 ) AS col2
----
-248425

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4712
SELECT ALL + SUM( DISTINCT - 18 ) * - 10 * 2 + - 14 AS col2, + CAST( NULL AS DECIMAL ) * 0 * - + COUNT( 74 ) * + - 84 * - 61 + + 80 AS col1
----
346
NULL

skipif mysql # not compatible
query II rowsort label-4712
SELECT ALL + SUM ( DISTINCT - 18 ) * - 10 * 2 + - 14 AS col2, + CAST ( NULL AS REAL ) * 0 * - + COUNT ( 74 ) * + - 84 * - 61 + + 80 AS col1
----
346
NULL

query I rowsort
SELECT - - 72 + + 13
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4714
SELECT - COUNT( * ) * + + MAX( ALL + 46 ) * - COUNT( * ) * + + 61 + + - 67 + + NULLIF ( - 32, + + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col0, + 71 + CASE - 30 WHEN + - 68 * 15 * + - 14 THEN + 60 END * 51 * 18 + - - 17 * + CAST( NULL AS SIGNED )
----
2707
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT - COUNT ( * ) * + + MAX ( ALL + 46 ) * - COUNT ( * ) * + + 61 + + - 67 + + NULLIF ( - 32, + + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col0, + 71 + CASE - 30 WHEN + - 68 * 15 * + - 14 THEN + 60 END * 51 * 18 + - - 17 * + CAST ( NULL AS INTEGER )
----
2707
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT + - 75 - COUNT( * ) + + - 64 + + 86 + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-4715
SELECT + - 75 - COUNT ( * ) + + - 64 + + 86 + - COUNT ( * )
----
-55

query II rowsort
SELECT + 60 AS col0, 6
----
60
6

query I rowsort
SELECT - + 78 * ( + 71 ) + - 78 AS col0
----
-5616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL - - 28 * + - CAST( - - 66 AS SIGNED ) * - - COUNT( * ) + - 11 AS col2
----
-1859

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL - - 28 * + - CAST ( - - 66 AS INTEGER ) * - - COUNT ( * ) + - 11 AS col2
----
-1859

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT - - 31 + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4719
SELECT - - 31 + - COUNT ( * )
----
30

query I rowsort
SELECT + CASE - 34 WHEN + - 30 THEN - 37 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 70 AS col1, 26 AS col2
----
70
26

query I rowsort
SELECT ALL + + 30 * - - 14 + + - 89
----
331

query I rowsort
SELECT DISTINCT 66 * 94 + - 52 * - 37 * + 11 AS col2
----
27368

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ALL + 28 * + - 4 * - 84 + - - ( COUNT( * ) )
----
9409

skipif mysql # not compatible
query I rowsort label-4724
SELECT ALL + 28 * + - 4 * - 84 + - - ( COUNT ( * ) )
----
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT + COUNT( * ) * + - COUNT( * ) DIV + - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4725
SELECT + COUNT ( * ) * + - COUNT ( * ) / + - COUNT ( * )
----
1

query I rowsort
SELECT ALL - 28 - + 98
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT + CASE COUNT( * ) WHEN + - CAST( + 72 AS SIGNED ) THEN + 84 WHEN - 64 + + 30 THEN - - COUNT( * ) * - COUNT( * ) * - 32 WHEN + - 63 * + 32 THEN + - 63 * + + NULLIF ( + COUNT( * ), MIN( DISTINCT - 99 ) ) + - 15 + - - 89 WHEN + + 34 * - - AVG ( - CAST( + - 5 AS SIGNED ) ) * - 35 * + - 36 + 6 * + 77 + + 77 / - 53 THEN NULL ELSE NULL END * + 77 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT + CASE COUNT ( * ) WHEN + - CAST ( + 72 AS INTEGER ) THEN + 84 WHEN - 64 + + 30 THEN - - COUNT ( * ) * - COUNT ( * ) * - 32 WHEN + - 63 * + 32 THEN + - 63 * + + NULLIF ( + COUNT ( * ), MIN ( DISTINCT - 99 ) ) + - 15 + - - 89 WHEN + + 34 * - - AVG ( - CAST ( + - 5 AS INTEGER ) ) * - 35 * + - 36 + 6 * + 77 + + 77 / - 53 THEN NULL ELSE NULL END * + 77 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4728
SELECT ALL CAST( NULL AS SIGNED ), 80 AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-4728
SELECT ALL CAST ( NULL AS INTEGER ), 80 AS col1
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL 82 - - COUNT( * ) + + - MAX( DISTINCT - 99 ) + - ( + 77 ) * 21 AS col1
----
-1435

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL 82 - - COUNT ( * ) + + - MAX ( DISTINCT - 99 ) + - ( + 77 ) * 21 AS col1
----
-1435

query I rowsort
SELECT ALL 94 * - 28 col1
----
-2632

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4731
SELECT 80, + 68 + + CASE 29 WHEN + + ( + + NULLIF ( COUNT( * ), - + 60 ) ) THEN + 45 ELSE - 92 END + CASE 44 WHEN 46 * - - 25 DIV 16 THEN 41 ELSE 14 END DIV 81 * - + 38 * + 47 AS col2
----
80
-24

skipif mysql # not compatible
query II rowsort label-4731
SELECT 80, + 68 + + CASE 29 WHEN + + ( + + NULLIF ( COUNT ( * ), - + 60 ) ) THEN + 45 ELSE - 92 END + CASE 44 WHEN 46 * - - 25 / 16 THEN 41 ELSE 14 END / 81 * - + 38 * + 47 AS col2
----
80
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT ALL COALESCE ( + NULLIF ( - 43, + - 10 * CAST( + 65 AS SIGNED ) + + + 6 ), + - 41, + 93 )
----
-43

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL COALESCE ( + NULLIF ( - 43, + - 10 * CAST ( + 65 AS INTEGER ) + + + 6 ), + - 41, + 93 )
----
-43

query II rowsort
SELECT DISTINCT 20, 72 AS col1
----
20
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4734
SELECT + CAST( - 8 AS SIGNED ) * + - 15
----
120

skipif mysql # not compatible
query I rowsort label-4734
SELECT + CAST ( - 8 AS INTEGER ) * + - 15
----
120

query I rowsort
SELECT + 17 + + + 17
----
34

query I rowsort
SELECT + 46 + - 55
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT - 10 DIV COUNT( * ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-4737
SELECT - 10 / COUNT ( * ) AS col2
----
-10

query II rowsort
SELECT ALL 37, - ( + 40 ) AS col2
----
37
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4739
SELECT DISTINCT 45 DIV + 83 AS col2, MAX( DISTINCT - + 83 )
----
0
-83

skipif mysql # not compatible
query II rowsort label-4739
SELECT DISTINCT 45 / + 83 AS col2, MAX ( DISTINCT - + 83 )
----
0
-83

query I rowsort
SELECT ALL 4 + + 81 * ( + 93 ) + - 93 AS col1
----
7444

query I rowsort
SELECT DISTINCT ( + + ( - - 72 ) )
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-4742
SELECT DISTINCT 39 + + ( ( + SUM( ALL 78 ) ) ) + - 4 col2, + 16 - - 99
----
113
115

skipif mysql # not compatible
query II rowsort label-4742
SELECT DISTINCT 39 + + ( ( + SUM ( ALL 78 ) ) ) + - 4 col2, + 16 - - 99
----
113
115

query I rowsort
SELECT ALL + - CASE + 75 WHEN - - 41 THEN NULL ELSE 82 + + + 26 END
----
-108

query II rowsort
SELECT + - 26, - 18 AS col0
----
-26
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT + COALESCE ( - COUNT( ALL - + 75 ), + 24 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT + COALESCE ( - COUNT ( ALL - + 75 ), + 24 ) AS col2
----
-1

query I rowsort
SELECT + + NULLIF ( - + 94, + + 9 ) * - 84
----
7896

query I rowsort
SELECT - 41 * + 15 + - ( + 18 ) * + 28 AS col2
----
-1119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4748
SELECT ALL - 10 DIV 83 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL - 10 / 83 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT DISTINCT + - CAST( + CASE + ( - COUNT( * ) ) WHEN - + 90 / - 4 + + + 6 + + + 82 / 63 + 15 * + + 40 * - - 37 * + 4 + - CASE WHEN 6 IS NULL THEN + NULLIF ( 60, - 47 * 86 / COUNT( * ) ) WHEN + 82 * - COALESCE ( 52, 75 * 71 ) * - 33 IS NOT NULL THEN NULL END * 33 THEN NULL ELSE 61 END AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + - CAST ( + CASE + ( - COUNT ( * ) ) WHEN - + 90 / - 4 + + + 6 + + + 82 / 63 + 15 * + + 40 * - - 37 * + 4 + - CASE WHEN 6 IS NULL THEN + NULLIF ( 60, - 47 * 86 / COUNT ( * ) ) WHEN + 82 * - COALESCE ( 52, 75 * 71 ) * - 33 IS NOT NULL THEN NULL END * 33 THEN NULL ELSE 61 END AS INTEGER )
----
-61

query I rowsort
SELECT - 97 * + 33
----
-3201

query I rowsort
SELECT DISTINCT + + 16 - ( - 90 )
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT ALL - COUNT( DISTINCT + 47 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4752
SELECT ALL - COUNT ( DISTINCT + 47 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT ALL + SUM( ALL + 0 ) - - + 3
----
3

skipif mysql # not compatible
query I rowsort label-4753
SELECT ALL + SUM ( ALL + 0 ) - - + 3
----
3

query I rowsort
SELECT 75 * + ( + 87 )
----
6525

query II rowsort
SELECT + 62 AS col2, - 31 * - + 75
----
62
2325

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4756
SELECT - 69 * - 68 - - MIN( ALL 32 ) + ( NULLIF ( + NULLIF ( - - SUM( - - 78 ), - 65 * + + 15 - - + 61 + + CAST( NULL AS DECIMAL ) ), 63 * - + 38 ) ) * 43
----
8078

skipif mysql # not compatible
query I rowsort label-4756
SELECT - 69 * - 68 - - MIN ( ALL 32 ) + ( NULLIF ( + NULLIF ( - - SUM ( - - 78 ), - 65 * + + 15 - - + 61 + + CAST ( NULL AS REAL ) ), 63 * - + 38 ) ) * 43
----
8078

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4757
SELECT DISTINCT - + 17 col2, COUNT( * ) + - COUNT( * ) + - 85 - + - CAST( NULL AS SIGNED )
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-4757
SELECT DISTINCT - + 17 col2, COUNT ( * ) + - COUNT ( * ) + - 85 - + - CAST ( NULL AS INTEGER )
----
-17
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4758
SELECT + 60 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT + 60 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT 72 DIV + + 39 col2
----
1

skipif mysql # not compatible
query I rowsort label-4759
SELECT 72 / + + 39 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4760
SELECT 62 / + + CAST( NULL AS SIGNED ) * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4760
SELECT 62 / + + CAST ( NULL AS INTEGER ) * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT NULLIF ( COUNT( * ), + - 88 ) * - - 5 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-4761
SELECT NULLIF ( COUNT ( * ), + - 88 ) * - - 5 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4762
SELECT COUNT( DISTINCT + 55 ) + - 5 * - CASE 44 WHEN + + AVG ( + - 85 ) + - 14 - - 29 * - CAST( + CAST( - ( 21 ) AS SIGNED ) AS SIGNED ) * - - 5 THEN - ( 25 ) * + + 50 END * + 58 + 27 + - COUNT( * ) * - MIN( ALL - 36 ) + + 64 + - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT COUNT ( DISTINCT + 55 ) + - 5 * - CASE 44 WHEN + + AVG ( + - 85 ) + - 14 - - 29 * - CAST ( + CAST ( - ( 21 ) AS INTEGER ) AS INTEGER ) * - - 5 THEN - ( 25 ) * + + 50 END * + 58 + 27 + - COUNT ( * ) * - MIN ( ALL - 36 ) + + 64 + - 16
----
NULL

query I rowsort
SELECT ALL + 26 + - + 51 + + 48
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL MAX( - 62 ) + SUM( - 66 ) - + 74
----
-202

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL MAX ( - 62 ) + SUM ( - 66 ) - + 74
----
-202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT 98 + AVG ( CAST( NULL AS SIGNED ) ) + + 93 * - 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT 98 + AVG ( CAST ( NULL AS INTEGER ) ) + + 93 * - 65 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT SUM( ALL - - 75 ) DIV - 51 + + 15 * - 98 AS col2
----
-1471

skipif mysql # not compatible
query I rowsort label-4766
SELECT SUM ( ALL - - 75 ) / - 51 + + 15 * - 98 AS col2
----
-1471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4767
SELECT CAST( NULL AS SIGNED ) * - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT CAST ( NULL AS INTEGER ) * - 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4768
SELECT COUNT( * ) - 7 AS col2, + 0 * 32 + + CASE - 7 WHEN + ( + 54 ) * + 65 * - + 90 + 21 * + - COUNT( * ) THEN ( 23 ) ELSE 73 END + - - 66 * 86
----
-6
5749

skipif mysql # not compatible
query II rowsort label-4768
SELECT COUNT ( * ) - 7 AS col2, + 0 * 32 + + CASE - 7 WHEN + ( + 54 ) * + 65 * - + 90 + 21 * + - COUNT ( * ) THEN ( 23 ) ELSE 73 END + - - 66 * 86
----
-6
5749

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT + COUNT( + 2 ) + - + 9 * + 46
----
-413

skipif mysql # not compatible
query I rowsort label-4769
SELECT + COUNT ( + 2 ) + - + 9 * + 46
----
-413

query I rowsort
SELECT ALL - 95 * + 15 * - - 66
----
-94050

query I rowsort
SELECT DISTINCT - 51 - - 74 * 56 * - 4 AS col2
----
-16627

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT COUNT( * ) + + 70 col1
----
71

skipif mysql # not compatible
query I rowsort label-4772
SELECT COUNT ( * ) + + 70 col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4773
SELECT + 48 DIV COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-4773
SELECT + 48 / COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4774
SELECT - 31 * COUNT( * ) col0, 8 * - 53
----
-31
-424

skipif mysql # not compatible
query II rowsort label-4774
SELECT - 31 * COUNT ( * ) col0, 8 * - 53
----
-31
-424

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT 79 - + COUNT( * ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4775
SELECT 79 - + COUNT ( * ) AS col1
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4776
SELECT + + NULLIF ( 55, + 72 + - 69 * CAST( COUNT( * ) AS DECIMAL ) + - COUNT( * ) ) * - 66 + + 97
----
-3533

skipif mysql # not compatible
query I rowsort label-4776
SELECT + + NULLIF ( 55, + 72 + - 69 * CAST ( COUNT ( * ) AS REAL ) + - COUNT ( * ) ) * - 66 + + 97
----
-3533

query I rowsort
SELECT 76 * - 43 * - 70 AS col0
----
228760

query I rowsort
SELECT ALL - 2 * - 3 AS col0
----
6

query I rowsort
SELECT 82 + 53 * - 67 * - 44
----
156326

query I rowsort
SELECT + 56 * 18 + - + 15 AS col1
----
993

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + SUM( ALL - - COALESCE ( - 49, + 79 + - 50 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-4781
SELECT + SUM ( ALL - - COALESCE ( - 49, + 79 + - 50 ) )
----
-49

query II rowsort
SELECT 32 col2, 70 * 80 AS col2
----
32
5600

query I rowsort
SELECT DISTINCT + 57 + + 14 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT COUNT( * ) + - 79 + + 30 DIV + 53 + - - COALESCE ( - CASE 54 WHEN + - 92 + 60 THEN NULL WHEN + 27 * + COALESCE ( + + 5, - 34 * + 3, + 73 * - 78 + - + 14 + ( - + 23 ) * - 67 + + 33 + ( - NULLIF ( - 61, - - 26 DIV - 23 ) ) DIV + 16 + - + 3, - COUNT( * ) * + 1 + 61 ) + 37 THEN - 99 END, + 59 ) * + 50
----
2872

skipif mysql # not compatible
query I rowsort label-4784
SELECT COUNT ( * ) + - 79 + + 30 / + 53 + - - COALESCE ( - CASE 54 WHEN + - 92 + 60 THEN NULL WHEN + 27 * + COALESCE ( + + 5, - 34 * + 3, + 73 * - 78 + - + 14 + ( - + 23 ) * - 67 + + 33 + ( - NULLIF ( - 61, - - 26 / - 23 ) ) / + 16 + - + 3, - COUNT ( * ) * + 1 + 61 ) + 37 THEN - 99 END, + 59 ) * + 50
----
2872

onlyif mysql # aggregate syntax: 
query II rowsort label-4785
SELECT 13 AS col0, 7 * 5 + + CASE 32 WHEN + + 7 THEN + SUM( ALL + 65 ) ELSE NULL END * - 0
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4785
SELECT 13 AS col0, 7 * 5 + + CASE 32 WHEN + + 7 THEN + SUM ( ALL + 65 ) ELSE NULL END * - 0
----
13
NULL

query I rowsort
SELECT DISTINCT - 12 * + 74 AS col1
----
-888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4787
SELECT DISTINCT + COUNT( * ) + - 63 * + 27 * + + 34 * + CAST( NULL AS SIGNED ) + + CASE - 43 WHEN COUNT( * ) THEN NULL ELSE + ( + 78 ) END - + - 91 / 74 + + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT + COUNT ( * ) + - 63 * + 27 * + + 34 * + CAST ( NULL AS INTEGER ) + + CASE - 43 WHEN COUNT ( * ) THEN NULL ELSE + ( + 78 ) END - + - 91 / 74 + + 98 AS col2
----
NULL

query I rowsort
SELECT ALL + 39 + - 51 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4789
SELECT ALL ( - - CAST( + 6 AS SIGNED ) ) + - 60 AS col2, 70
----
-54
70

skipif mysql # not compatible
query II rowsort label-4789
SELECT ALL ( - - CAST ( + 6 AS INTEGER ) ) + - 60 AS col2, 70
----
-54
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4790
SELECT ALL - SUM( ALL 52 ) DIV - 11
----
4

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - SUM ( ALL 52 ) / - 11
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4791
SELECT 23 DIV + COUNT( * ) col0
----
23

skipif mysql # not compatible
query I rowsort label-4791
SELECT 23 / + COUNT ( * ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT NULLIF ( + 1, + + 90 ) + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4792
SELECT NULLIF ( + 1, + + 90 ) + + COUNT ( * ) AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - ( CASE + - MIN( - 52 ) WHEN - - 40 * + + 49 * - - 26 THEN NULL WHEN COUNT( ALL - 63 ) THEN - + COALESCE ( - + 92, - 28 ) ELSE - 87 END ) * - - 97 * - + NULLIF ( - + 13, + 48 * - 71 - COUNT( * ) + 3 + + 70 )
----
109707

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - ( CASE + - MIN ( - 52 ) WHEN - - 40 * + + 49 * - - 26 THEN NULL WHEN COUNT ( ALL - 63 ) THEN - + COALESCE ( - + 92, - 28 ) ELSE - 87 END ) * - - 97 * - + NULLIF ( - + 13, + 48 * - 71 - COUNT ( * ) + 3 + + 70 )
----
109707

query I rowsort
SELECT 13 + - 16 AS col2
----
-3

query I rowsort
SELECT 25 * 2 * - - COALESCE ( 44, + 7 ) AS col0
----
2200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4796
SELECT ALL - + 74 - + 54 * 68 AS col1, CASE - + 67 WHEN + - COUNT( * ) / + 31 THEN + COUNT( * ) ELSE + 39 / + COALESCE ( + 12, + 26 - - - 40 ) / + 98 * - + 50 * + ( - CAST( NULL AS SIGNED ) ) + 11 * + 7 + - 34 END * - NULLIF ( - 96, 97 ) AS col2
----
-3746
NULL

skipif mysql # not compatible
query II rowsort label-4796
SELECT ALL - + 74 - + 54 * 68 AS col1, CASE - + 67 WHEN + - COUNT ( * ) / + 31 THEN + COUNT ( * ) ELSE + 39 / + COALESCE ( + 12, + 26 - - - 40 ) / + 98 * - + 50 * + ( - CAST ( NULL AS INTEGER ) ) + 11 * + 7 + - 34 END * - NULLIF ( - 96, 97 ) AS col2
----
-3746
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT DISTINCT COALESCE ( + 43, MAX( ALL 23 ), + + 25, - + 34 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT COALESCE ( + 43, MAX ( ALL 23 ), + + 25, - + 34 ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT DISTINCT 45 AS col1, 48 - COUNT( * ) AS col2
----
45
47

skipif mysql # not compatible
query II rowsort label-4798
SELECT DISTINCT 45 AS col1, 48 - COUNT ( * ) AS col2
----
45
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL - NULLIF ( - 14, + 8 * + COUNT( * ) )
----
14

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL - NULLIF ( - 14, + 8 * + COUNT ( * ) )
----
14

query I rowsort
SELECT DISTINCT - - 74 - - 4 * 82 + + - 50 * 47 * - - 4 + - - 64
----
-8934

onlyif mysql # DIV for integer division: 
query II rowsort label-4801
SELECT ALL 12, 76 DIV + - 1 AS col0
----
12
-76

skipif mysql # not compatible
query II rowsort label-4801
SELECT ALL 12, 76 / + - 1 AS col0
----
12
-76

query I rowsort
SELECT + - 53 + - + ( ( 49 ) ) + + 14
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4803
SELECT + 7 * CASE - COALESCE ( - - 76, - 9 + - CASE - 64 WHEN - AVG ( DISTINCT + + 9 ) THEN - MAX( + + 35 ) * + 14 ELSE - MIN( + 91 ) END ) WHEN - CASE WHEN ( - - 41 ) IS NULL THEN + 93 END THEN - COUNT( DISTINCT - 75 ) WHEN - ( + COUNT( * ) ) THEN - + 52 WHEN COUNT( * ) + - 72 THEN - + 48 + - + SUM( - 82 ) ELSE CAST( NULL AS SIGNED ) + 84 * - COUNT( * ) END + 63 / 36 + + 39 / COALESCE ( 70 * 18, 25 / + 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4803
SELECT + 7 * CASE - COALESCE ( - - 76, - 9 + - CASE - 64 WHEN - AVG ( DISTINCT + + 9 ) THEN - MAX ( + + 35 ) * + 14 ELSE - MIN ( + 91 ) END ) WHEN - CASE WHEN ( - - 41 ) IS NULL THEN + 93 END THEN - COUNT ( DISTINCT - 75 ) WHEN - ( + COUNT ( * ) ) THEN - + 52 WHEN COUNT ( * ) + - 72 THEN - + 48 + - + SUM ( - 82 ) ELSE CAST ( NULL AS INTEGER ) + 84 * - COUNT ( * ) END + 63 / 36 + + 39 / COALESCE ( 70 * 18, 25 / + 42 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4804
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( DISTINCT - + 26 ) * 63 + - + 4 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( DISTINCT - + 26 ) * 63 + - + 4 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4805
SELECT DISTINCT + - CAST( + AVG ( - + 27 ) AS SIGNED )
----
27

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT + - CAST ( + AVG ( - + 27 ) AS INTEGER )
----
27

query II rowsort
SELECT DISTINCT + + 38 AS col0, 37 col2
----
38
37

query II rowsort
SELECT + - 97 AS col2, - 99 AS col1
----
-97
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4808
SELECT DISTINCT CASE - 0 WHEN - 20 + + + 50 + 47 * - + 53 * - 22 * 5 THEN - 29 * 89 END * CAST( ( - - COUNT( * ) ) AS SIGNED ) * - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT CASE - 0 WHEN - 20 + + + 50 + 47 * - + 53 * - 22 * 5 THEN - 29 * 89 END * CAST ( ( - - COUNT ( * ) ) AS INTEGER ) * - 83 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + + 65, + 84 AS col1
----
65
84

query I rowsort
SELECT ALL + 46 * + 63 * - ( + + NULLIF ( - 99, - 56 + - 4 ) )
----
286902

query I rowsort
SELECT ALL 30 * - 69
----
-2070

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT - 17 * COUNT( * ), 69 AS col0
----
-17
69

skipif mysql # not compatible
query II rowsort label-4812
SELECT - 17 * COUNT ( * ), 69 AS col0
----
-17
69

query I rowsort
SELECT ALL 2 * - 62 + - 24 AS col1
----
-148

query I rowsort
SELECT + 15 * + 62 - + 80 AS col0
----
850

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT - 94 * COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4815
SELECT - 94 * COUNT ( * )
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4816
SELECT DISTINCT 71 * + - 49 + + 31 + + 84, COUNT( * ) * + MIN( DISTINCT - 68 ) AS col1
----
-3364
-68

skipif mysql # not compatible
query II rowsort label-4816
SELECT DISTINCT 71 * + - 49 + + 31 + + 84, COUNT ( * ) * + MIN ( DISTINCT - 68 ) AS col1
----
-3364
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4817
SELECT ALL ( - COUNT( * ) ) * 60 * - - 98 + + 96 + 72 - + 51 + - 47 * - - 67 AS col1, MIN( ALL - COALESCE ( - - 77, 46 ) ) AS col0
----
-8912
-77

skipif mysql # not compatible
query II rowsort label-4817
SELECT ALL ( - COUNT ( * ) ) * 60 * - - 98 + + 96 + 72 - + 51 + - 47 * - - 67 AS col1, MIN ( ALL - COALESCE ( - - 77, 46 ) ) AS col0
----
-8912
-77

query I rowsort
SELECT + 58 * + 54
----
3132

query I rowsort
SELECT ALL 45 * - 20 + 44 AS col1
----
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL + COUNT( * ) + + + 37 * + + NULLIF ( + 14, + SUM( 31 ) ) col1
----
519

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL + COUNT ( * ) + + + 37 * + + NULLIF ( + 14, + SUM ( 31 ) ) col1
----
519

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT COUNT( DISTINCT - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4821
SELECT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4822
SELECT - 69 + + CAST( NULL AS SIGNED ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4822
SELECT - 69 + + CAST ( NULL AS INTEGER ) + + 42
----
NULL

query I rowsort
SELECT DISTINCT + NULLIF ( - 85, + 21 + + + 13 ) + - - 5 AS col0
----
-80

query I rowsort
SELECT ALL + 8 + - ( - - 73 )
----
-65

query II rowsort
SELECT - ( 16 ) AS col1, 76
----
-16
76

query I rowsort
SELECT - 92 + + - 57 AS col1
----
-149

query I rowsort
SELECT ALL COALESCE ( - - 70, ( + 13 ) )
----
70

query I rowsort
SELECT ALL 15 * + 76
----
1140

query I rowsort
SELECT ALL + 59 - 58 - - ( + 21 ) * 65 AS col1
----
1366

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT MIN( ALL + 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4830
SELECT MIN ( ALL + 3 ) AS col0
----
3

query I rowsort
SELECT ALL + ( - ( 46 ) )
----
-46

query I rowsort
SELECT - - 73 * - + 84
----
-6132

query I rowsort
SELECT NULLIF ( - 17, 71 + + + 46 ) AS col0
----
-17

query I rowsort
SELECT ALL ( - + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT - - 23 + - SUM( DISTINCT + + 35 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-4835
SELECT - - 23 + - SUM ( DISTINCT + + 35 ) col0
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4836
SELECT + 91 * CASE 43 WHEN - + 53 THEN + CAST( CAST( - - 12 AS SIGNED ) AS SIGNED ) * - - 35 + + - 89 * - SUM( + 58 ) WHEN + 3 THEN NULL END + - + 88 * + COUNT( * ) AS col2, 72 AS col1
----
NULL
72

skipif mysql # not compatible
query II rowsort label-4836
SELECT + 91 * CASE 43 WHEN - + 53 THEN + CAST ( CAST ( - - 12 AS INTEGER ) AS INTEGER ) * - - 35 + + - 89 * - SUM ( + 58 ) WHEN + 3 THEN NULL END + - + 88 * + COUNT ( * ) AS col2, 72 AS col1
----
NULL
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT - 30 - + COUNT( * ) * - 28 * + + 61 * 86 + + 19 DIV + + 26 + + + 50 AS col2
----
146908

skipif mysql # not compatible
query I rowsort label-4837
SELECT - 30 - + COUNT ( * ) * - 28 * + + 61 * 86 + + 19 / + + 26 + + + 50 AS col2
----
146908

query I rowsort
SELECT DISTINCT + - ( 37 ) * + 53 col1
----
-1961

onlyif mysql # aggregate syntax: 
query II rowsort label-4839
SELECT - 48 + 94 col0, COUNT( * ) AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-4839
SELECT - 48 + 94 col0, COUNT ( * ) AS col1
----
46
1

query I rowsort
SELECT ALL - + 4 * 3 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT - - CAST( - 23 AS SIGNED ) - + 81
----
-104

skipif mysql # not compatible
query I rowsort label-4841
SELECT - - CAST ( - 23 AS INTEGER ) - + 81
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL + + COUNT( DISTINCT + 17 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL + + COUNT ( DISTINCT + 17 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4843
SELECT ALL 79 DIV - COUNT( * ) + 80 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL 79 / - COUNT ( * ) + 80 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT ALL 30 DIV - 65 + - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL 30 / - 65 + - 31 AS col0
----
-31

query I rowsort
SELECT - 29 + 44 col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT + ( - ( - SUM( ALL + - 4 ) ) )
----
-4

skipif mysql # not compatible
query I rowsort label-4846
SELECT + ( - ( - SUM ( ALL + - 4 ) ) )
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4847
SELECT + 94 DIV - 90 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4847
SELECT + 94 / - 90 AS col0
----
-1

query I rowsort
SELECT + 48 * + 18 + + - 46 + + ( + 59 ) * + ( + 22 ) AS col0
----
2116

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT ALL COUNT( * ) * + + 90
----
90

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL COUNT ( * ) * + + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT ALL + 10 * - + ( 10 ) + + + 23 + + - COUNT( * ) - 75
----
-153

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL + 10 * - + ( 10 ) + + + 23 + + - COUNT ( * ) - 75
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT DISTINCT + 84 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT + 84 / 97
----
0

query I rowsort
SELECT DISTINCT - 77 * + NULLIF ( + 38, + 44 + 22 ) + - 90 * 32 AS col2
----
-5806

query I rowsort
SELECT + 75 * + 35 AS col1
----
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL SUM( + - 15 ) * + - 27 * + - 72 AS col0
----
-29160

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL SUM ( + - 15 ) * + - 27 * + - 72 AS col0
----
-29160

onlyif mysql # aggregate syntax: 
query II rowsort label-4855
SELECT + 52 + - SUM( - COALESCE ( + 8, - + 30 ) ) col0, COUNT( * )
----
60
1

skipif mysql # not compatible
query II rowsort label-4855
SELECT + 52 + - SUM ( - COALESCE ( + 8, - + 30 ) ) col0, COUNT ( * )
----
60
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT + COALESCE ( + CAST( + AVG ( - 34 ) AS SIGNED ), - 29 + - - 49 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4856
SELECT + COALESCE ( + CAST ( + AVG ( - 34 ) AS INTEGER ), - 29 + - - 49 ) AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4857
SELECT ALL - 17 * - 11 + 11 + 47 + - - SUM( 65 ) * CASE + - 9 WHEN - - 12 - 8 * 40 THEN NULL WHEN + 75 * SUM( DISTINCT + 63 ) - - MAX( ALL - CAST( 44 AS SIGNED ) ) * - 40 THEN NULL ELSE + - CAST( - 40 AS SIGNED ) END DIV - - 13 + 59 DIV - + 44 AS col0, 23 AS col1
----
444
23

skipif mysql # not compatible
query II rowsort label-4857
SELECT ALL - 17 * - 11 + 11 + 47 + - - SUM ( 65 ) * CASE + - 9 WHEN - - 12 - 8 * 40 THEN NULL WHEN + 75 * SUM ( DISTINCT + 63 ) - - MAX ( ALL - CAST ( 44 AS INTEGER ) ) * - 40 THEN NULL ELSE + - CAST ( - 40 AS INTEGER ) END / - - 13 + 59 / - + 44 AS col0, 23 AS col1
----
444
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4858
SELECT + CAST( NULL AS SIGNED ) * + 30 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT + CAST ( NULL AS INTEGER ) * + 30 AS col2
----
NULL

query I rowsort
SELECT + 4 + - 82
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - 67 * - + COUNT( * ) * COALESCE ( + + 84, - + 42 ) - - COUNT( * ) AS col2
----
5629

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - 67 * - + COUNT ( * ) * COALESCE ( + + 84, - + 42 ) - - COUNT ( * ) AS col2
----
5629

query I rowsort
SELECT + 16 * 84 AS col1
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT - CAST( - + 36 AS SIGNED ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4862
SELECT - CAST ( - + 36 AS INTEGER ) AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT ALL + CASE + 55 WHEN + + 62 THEN - 74 + + COUNT( * ) WHEN COUNT( * ) THEN MAX( ALL - 90 ) WHEN COUNT( * ) * 34 + + 12 + + + 95 THEN - 1 * - 7 END * - - 60 * 61 / + + 64 - MIN( 64 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL + CASE + 55 WHEN + + 62 THEN - 74 + + COUNT ( * ) WHEN COUNT ( * ) THEN MAX ( ALL - 90 ) WHEN COUNT ( * ) * 34 + + 12 + + + 95 THEN - 1 * - 7 END * - - 60 * 61 / + + 64 - MIN ( 64 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 32 * 91 * + 68 AS col0
----
-198016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4865
SELECT ALL + - 36 - 11 * + 23 AS col1, COALESCE ( 53, + COUNT( * ), - + 93 / + 9 + + - 3, - 86 ) * + - 50 + - CAST( NULL AS SIGNED ) + 17 * - 68 + + 50 AS col0
----
-289
NULL

skipif mysql # not compatible
query II rowsort label-4865
SELECT ALL + - 36 - 11 * + 23 AS col1, COALESCE ( 53, + COUNT ( * ), - + 93 / + 9 + + - 3, - 86 ) * + - 50 + - CAST ( NULL AS INTEGER ) + 17 * - 68 + + 50 AS col0
----
-289
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4866
SELECT DISTINCT MIN( + CAST( 21 AS SIGNED ) ) AS col0, 54 AS col1
----
21
54

skipif mysql # not compatible
query II rowsort label-4866
SELECT DISTINCT MIN ( + CAST ( 21 AS INTEGER ) ) AS col0, 54 AS col1
----
21
54

query I rowsort
SELECT - 52 * + 15 * + + 88 + + - 23
----
-68663

query I rowsort
SELECT 19 * - + 3
----
-57

query I rowsort
SELECT DISTINCT + 5 * - 15 * - 0 * - 58
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT - 19 / - CASE - - 42 WHEN - - 40 THEN + ( - 17 ) * 8 * - 42 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 19 / - CASE - - 42 WHEN - - 40 THEN + ( - 17 ) * 8 * - 42 * COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + + COUNT( * ) * 63
----
63

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + + COUNT ( * ) * 63
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT + COUNT( * ) + - 92 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-4872
SELECT + COUNT ( * ) + - 92 AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4873
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 42
----
NULL

query I rowsort
SELECT 88 + + 72 AS col0
----
160

query I rowsort
SELECT ALL - 12 * + 95 col2
----
-1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL + - CAST( NULL AS SIGNED ) + - + 84 / - 39 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + - CAST ( NULL AS INTEGER ) + - + 84 / - 39 * 98
----
NULL

query I rowsort
SELECT ALL - 20 + - + 99
----
-119

query I rowsort
SELECT DISTINCT + 62 + + ( + - 53 ) * + - 51 * + 54 - - 86 + - - 61 AS col1
----
146171

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT 57 + 77 + - - COUNT( + - 54 ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-4879
SELECT 57 + 77 + - - COUNT ( + - 54 ) AS col2
----
135

query I rowsort
SELECT ALL + 29 + - 38
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4881
SELECT - 60 * + + CAST( NULL AS SIGNED ) + - MIN( ALL NULLIF ( + 89, + 51 ) ) * - 41 + - - 69 * 20 / 40 AS col0, 0 col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4881
SELECT - 60 * + + CAST ( NULL AS INTEGER ) + - MIN ( ALL NULLIF ( + 89, + 51 ) ) * - 41 + - - 69 * 20 / 40 AS col0, 0 col1
----
NULL
0

query I rowsort
SELECT + CASE 6 WHEN + 62 THEN - ( - 14 ) END AS col2
----
NULL

query II rowsort
SELECT + 97, + 63 * + 31 col2
----
97
1953

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT ALL - 70 + - 98 + + - 5 + + - 19 + + ( COUNT( * ) ) * 98 * + COUNT( * )
----
-94

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL - 70 + - 98 + + - 5 + + - 19 + + ( COUNT ( * ) ) * 98 * + COUNT ( * )
----
-94

query I rowsort
SELECT 91 * - 5 * - COALESCE ( - + 88, - + 50 ) AS col2
----
-40040

query I rowsort
SELECT DISTINCT + 98 * 75 * + 4 AS col2
----
29400

query I rowsort
SELECT ALL 70 + - 27
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT + 11, 65 + - 58 - + - MIN( + - 65 ) AS col1
----
11
-58

skipif mysql # not compatible
query II rowsort label-4888
SELECT + 11, 65 + - 58 - + - MIN ( + - 65 ) AS col1
----
11
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT ALL + 80 * + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL + 80 * + COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT DISTINCT - COALESCE ( 84, - + 41 + ( COUNT( * ) ) + + 5 ) + - ( 2 )
----
-86

skipif mysql # not compatible
query I rowsort label-4890
SELECT DISTINCT - COALESCE ( 84, - + 41 + ( COUNT ( * ) ) + + 5 ) + - ( 2 )
----
-86

query I rowsort
SELECT DISTINCT - ( + + ( + 76 ) ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - 8 - + COUNT( * ) * + + MIN( DISTINCT - + 4 ) + - - 17
----
13

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - 8 - + COUNT ( * ) * + + MIN ( DISTINCT - + 4 ) + - - 17
----
13

query I rowsort
SELECT - 68 * + 33 * - 56 - - 91 + 64
----
125819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4894
SELECT NULLIF ( + + 97, - CAST( 16 AS SIGNED ) + 27 + - - MIN( DISTINCT - 7 ) + + 56 + - 23 + - 61 * - + 91 ) * MIN( DISTINCT - + 41 ) AS col1
----
-3977

skipif mysql # not compatible
query I rowsort label-4894
SELECT NULLIF ( + + 97, - CAST ( 16 AS INTEGER ) + 27 + - - MIN ( DISTINCT - 7 ) + + 56 + - 23 + - 61 * - + 91 ) * MIN ( DISTINCT - + 41 ) AS col1
----
-3977

query II rowsort
SELECT ALL - 77, + COALESCE ( - + 52, 86, + + NULLIF ( - 28, - 15 * 4 * 22 / - - 39 + - 65 + - 33 ) ) AS col1
----
-77
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4896
SELECT 16 - - CAST( + COALESCE ( 29, - + 23 ) AS SIGNED ) - - COUNT( * ) * - COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4896
SELECT 16 - - CAST ( + COALESCE ( 29, - + 23 ) AS INTEGER ) - - COUNT ( * ) * - COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT 53 AS col2, + CASE 72 WHEN - ( - - 22 ) + 10 * 26 + + + MAX( 56 ) THEN COUNT( * ) * - 13 - + 10 + 89 WHEN - 39 THEN + + 49 ELSE NULL END col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-4897
SELECT 53 AS col2, + CASE 72 WHEN - ( - - 22 ) + 10 * 26 + + + MAX ( 56 ) THEN COUNT ( * ) * - 13 - + 10 + 89 WHEN - 39 THEN + + 49 ELSE NULL END col0
----
53
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT ALL - CAST( - + 96 AS SIGNED ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-4898
SELECT ALL - CAST ( - + 96 AS INTEGER ) AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4899
SELECT DISTINCT - MAX( DISTINCT 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT - MAX ( DISTINCT 51 )
----
-51

query I rowsort
SELECT DISTINCT 15 * + 95 * 91 * + + ( + + 47 ) AS col2
----
6094725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT ALL CAST( NULL AS SIGNED ) * 68 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL CAST ( NULL AS INTEGER ) * 68 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + 0 * 3 * - 6 + - - 57 - 94 * - + COALESCE ( - ( - ( 14 ) ), + COALESCE ( + 47, COUNT( * ) ) )
----
1373

skipif mysql # not compatible
query I rowsort label-4902
SELECT + 0 * 3 * - 6 + - - 57 - 94 * - + COALESCE ( - ( - ( 14 ) ), + COALESCE ( + 47, COUNT ( * ) ) )
----
1373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4903
SELECT + CAST( + 86 AS SIGNED ) * - - 26 * - - COALESCE ( - - 94, + - SUM( ALL 74 ) * - 81 ) * - 46
----
-9668464

skipif mysql # not compatible
query I rowsort label-4903
SELECT + CAST ( + 86 AS INTEGER ) * - - 26 * - - COALESCE ( - - 94, + - SUM ( ALL 74 ) * - 81 ) * - 46
----
-9668464

onlyif mysql # aggregate syntax: 
query I rowsort label-4904
SELECT DISTINCT - 34 * - SUM( DISTINCT 83 ) AS col2
----
2822

skipif mysql # not compatible
query I rowsort label-4904
SELECT DISTINCT - 34 * - SUM ( DISTINCT 83 ) AS col2
----
2822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4905
SELECT ALL 20 * - CAST( NULL AS SIGNED ) + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL 20 * - CAST ( NULL AS INTEGER ) + - 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT 33 * + + NULLIF ( + - CASE + - MAX( DISTINCT + + 39 ) WHEN - 6 * - 75 THEN - 48 / + 59 * 99 / 6 - 29 + 79 + - - 9 WHEN ( + 78 ) THEN 81 WHEN + 24 THEN NULL ELSE NULL END, + + COUNT( * ) + - COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4906
SELECT 33 * + + NULLIF ( + - CASE + - MAX ( DISTINCT + + 39 ) WHEN - 6 * - 75 THEN - 48 / + 59 * 99 / 6 - 29 + 79 + - - 9 WHEN ( + 78 ) THEN 81 WHEN + 24 THEN NULL ELSE NULL END, + + COUNT ( * ) + - COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT SUM( 30 ) * + 35 * COUNT( * )
----
1050

skipif mysql # not compatible
query I rowsort label-4907
SELECT SUM ( 30 ) * + 35 * COUNT ( * )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - SUM( - - 6 ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-4908
SELECT - SUM ( - - 6 ) AS col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT 23 / + 25 * - CASE - CAST( NULL AS SIGNED ) WHEN + 4 + - COUNT( ALL CAST( - CAST( - + 25 AS SIGNED ) AS SIGNED ) ) * COALESCE ( 30, NULLIF ( 81, - + COUNT( * ) + + 58 ) + - 61 + - COUNT( * ) + 91 * + SUM( - 76 ) / - - 20 + - 89 * 24 ) THEN - 81 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT 23 / + 25 * - CASE - CAST ( NULL AS INTEGER ) WHEN + 4 + - COUNT ( ALL CAST ( - CAST ( - + 25 AS INTEGER ) AS INTEGER ) ) * COALESCE ( 30, NULLIF ( 81, - + COUNT ( * ) + + 58 ) + - 61 + - COUNT ( * ) + 91 * + SUM ( - 76 ) / - - 20 + - 89 * 24 ) THEN - 81 END AS col2
----
NULL

query I rowsort
SELECT ALL ( - - 62 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT 10 * COUNT( + 21 ) - 10
----
0

skipif mysql # not compatible
query I rowsort label-4911
SELECT 10 * COUNT ( + 21 ) - 10
----
0

query I rowsort
SELECT ALL + ( + 69 ) * - + 46 col0
----
-3174

query I rowsort
SELECT - NULLIF ( - 0, - 94 ) * - 6 + 3 + - 97 + + 80
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL CAST( NULL AS SIGNED ) + MAX( ALL + - 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL CAST ( NULL AS INTEGER ) + MAX ( ALL + - 34 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT DISTINCT 27 + COUNT( * ) * + - 43 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-4915
SELECT DISTINCT 27 + COUNT ( * ) * + - 43 AS col1
----
-16

query I rowsort
SELECT - CASE - 20 WHEN - 43 THEN + 62 + - ( - 61 ) + - 83 / 66 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT ALL + COUNT( DISTINCT - 96 ) + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4917
SELECT ALL + COUNT ( DISTINCT - 96 ) + - COUNT ( * ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4918
SELECT ALL CAST( NULL AS SIGNED ) * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-4918
SELECT ALL CAST ( NULL AS INTEGER ) * - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - MAX( 8 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4919
SELECT - MAX ( 8 ) AS col2
----
-8

query II rowsort
SELECT 72, - 73 AS col2
----
72
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT MAX( ALL 89 ) - - + 31
----
120

skipif mysql # not compatible
query I rowsort label-4921
SELECT MAX ( ALL 89 ) - - + 31
----
120

query II rowsort
SELECT ALL 72 AS col0, + 39
----
72
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT ALL COALESCE ( 23, + - MAX( ALL - + 69 ) ) + + 72 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL COALESCE ( 23, + - MAX ( ALL - + 69 ) ) + + 72 AS col2
----
95

query I rowsort
SELECT ALL - 39 * - ( + + ( - - 12 ) )
----
468

query I rowsort
SELECT DISTINCT 6 * + + 16 AS col2
----
96

query I rowsort
SELECT 7 - - CASE 46 WHEN + - 73 THEN - 87 + - 87 - + ( + 32 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT 10 * + COUNT( DISTINCT + - NULLIF ( - 66, 6 * - 47 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4927
SELECT 10 * + COUNT ( DISTINCT + - NULLIF ( - 66, 6 * - 47 ) )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4928
SELECT COUNT( * ) DIV COUNT( * ) + + 79
----
80

skipif mysql # not compatible
query I rowsort label-4928
SELECT COUNT ( * ) / COUNT ( * ) + + 79
----
80

query I rowsort
SELECT ( - 16 ) + - 98 - - - 14 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL - ( 49 ) * 91 - - - COUNT( * ) + + + 51 * - 85
----
-8795

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - ( 49 ) * 91 - - - COUNT ( * ) + + + 51 * - 85
----
-8795

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT 0 * + MAX( DISTINCT + + 59 )
----
0

skipif mysql # not compatible
query I rowsort label-4931
SELECT 0 * + MAX ( DISTINCT + + 59 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT 42 DIV 21
----
2

skipif mysql # not compatible
query I rowsort label-4932
SELECT 42 / 21
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4933
SELECT 49 DIV 94 * + 33 + - MAX( + 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-4933
SELECT 49 / 94 * + 33 + - MAX ( + 41 ) AS col0
----
-41

query I rowsort
SELECT ALL + 13 * 95 - 64 AS col1
----
1171

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT DISTINCT + 22 * - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-4935
SELECT DISTINCT + 22 * - COUNT ( * )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - COUNT( * ) + 97 - + 99 + + + 70 * 21 col2
----
1467

skipif mysql # not compatible
query I rowsort label-4936
SELECT - COUNT ( * ) + 97 - + 99 + + + 70 * 21 col2
----
1467

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT ALL + MAX( ALL 36 ) * + 55 - - 86 AS col1
----
2066

skipif mysql # not compatible
query I rowsort label-4937
SELECT ALL + MAX ( ALL 36 ) * + 55 - - 86 AS col1
----
2066

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT ALL + MAX( ALL - + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4938
SELECT ALL + MAX ( ALL - + 42 ) AS col2
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL + MIN( DISTINCT 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL + MIN ( DISTINCT 97 ) AS col0
----
97

query I rowsort
SELECT - 9 * + - 73 AS col2
----
657

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + 63 * - 64 * NULLIF ( + + COUNT( + 17 ), + 25 ) * + 39 + ( + + 92 )
----
-157156

skipif mysql # not compatible
query I rowsort label-4942
SELECT + 63 * - 64 * NULLIF ( + + COUNT ( + 17 ), + 25 ) * + 39 + ( + + 92 )
----
-157156

query II rowsort
SELECT DISTINCT + - 35 + + 91, + 96 AS col0
----
56
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT DISTINCT COALESCE ( + - 93, + + CAST( + 76 AS SIGNED ) * + + 23 * 38 )
----
-93

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT COALESCE ( + - 93, + + CAST ( + 76 AS INTEGER ) * + + 23 * 38 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4945
SELECT DISTINCT CAST( COUNT( 42 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT CAST ( COUNT ( 42 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL - COUNT( DISTINCT + + 28 ) + 59 + + CASE + 32 WHEN 48 / + 78 THEN + 68 WHEN + COALESCE ( + AVG ( + ( CASE ( 54 ) WHEN + 88 THEN + - 73 ELSE + 24 END ) ), + - 22 + + + 36 + 55, + 60 + + COUNT( * ) - COUNT( * ) * - 35 + SUM( - - 74 ) ) + + + 37 + - + CASE - 5 WHEN - + MAX( ALL 12 ) THEN + COUNT( * ) + - AVG ( 28 ) ELSE - 39 + + 30 END THEN + 26 ELSE - 17 END AS col0
----
41

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - COUNT ( DISTINCT + + 28 ) + 59 + + CASE + 32 WHEN 48 / + 78 THEN + 68 WHEN + COALESCE ( + AVG ( + ( CASE ( 54 ) WHEN + 88 THEN + - 73 ELSE + 24 END ) ), + - 22 + + + 36 + 55, + 60 + + COUNT ( * ) - COUNT ( * ) * - 35 + SUM ( - - 74 ) ) + + + 37 + - + CASE - 5 WHEN - + MAX ( ALL 12 ) THEN + COUNT ( * ) + - AVG ( 28 ) ELSE - 39 + + 30 END THEN + 26 ELSE - 17 END AS col0
----
41

query I rowsort
SELECT ALL + 73 + + ( - + 25 ) AS col0
----
48

query I rowsort
SELECT + + 68 + + - ( + 78 ) * - + 87 * - 69 * - 7
----
3277706

query II rowsort
SELECT - ( 54 ) AS col1, ( + + 69 ) - + - 25 + + - 90
----
-54
4

query I rowsort
SELECT ALL ( + - 11 ) + + - 72 + + 22 * - 19
----
-501

query I rowsort
SELECT + 12 + - + 70 AS col0
----
-58

query I rowsort
SELECT + NULLIF ( - 21, - 15 * - 82 ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + COUNT( * ) + - 83 AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-4953
SELECT + COUNT ( * ) + - 83 AS col0
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT ALL + - 68 + - COUNT( * ) DIV + + NULLIF ( 45, 7 )
----
-68

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL + - 68 + - COUNT ( * ) / + + NULLIF ( 45, 7 )
----
-68

query I rowsort
SELECT DISTINCT + 10 * 44
----
440

onlyif mysql # DIV for integer division: 
query II rowsort label-4956
SELECT ALL 97, 70 DIV + + 5 col1
----
97
14

skipif mysql # not compatible
query II rowsort label-4956
SELECT ALL 97, 70 / + + 5 col1
----
97
14

query II rowsort
SELECT 84 AS col1, + ( + 2 )
----
84
2

query I rowsort
SELECT + 53 + + + 86 + 30 * + 86 + + + 2 * + 48 * + ( + 74 ) * + 23 - + 71
----
166040

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - COALESCE ( 80, - + 21, CASE 53 WHEN - 86 THEN NULL WHEN - - COUNT( * ) * - COUNT( * ) THEN + 45 END + - 43 * + - 62 )
----
-80

skipif mysql # not compatible
query I rowsort label-4959
SELECT - COALESCE ( 80, - + 21, CASE 53 WHEN - 86 THEN NULL WHEN - - COUNT ( * ) * - COUNT ( * ) THEN + 45 END + - 43 * + - 62 )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4960
SELECT + 29 + - 40 DIV - 8 + - + MAX( ALL + 1 )
----
33

skipif mysql # not compatible
query I rowsort label-4960
SELECT + 29 + - 40 / - 8 + - + MAX ( ALL + 1 )
----
33

query I rowsort
SELECT + 40 * 51
----
2040

query I rowsort
SELECT - 81 * - 85
----
6885

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL 87 * - CASE + 94 WHEN + + 85 THEN + MAX( DISTINCT - + 51 ) + 15 / SUM( DISTINCT + 11 ) * - - 98 WHEN + + 3 THEN - 40 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL 87 * - CASE + 94 WHEN + + 85 THEN + MAX ( DISTINCT - + 51 ) + 15 / SUM ( DISTINCT + 11 ) * - - 98 WHEN + + 3 THEN - 40 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT + MIN( DISTINCT CASE + 8 WHEN - 10 THEN + 4 + 88 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + MIN ( DISTINCT CASE + 8 WHEN - 10 THEN + 4 + 88 END ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 16 * ( ( - - 47 ) ) AS col1
----
752

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT ALL + CASE - 69 WHEN - SUM( DISTINCT - 32 ) THEN - COUNT( * ) - - COUNT( * ) ELSE - 88 END
----
-88

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL + CASE - 69 WHEN - SUM ( DISTINCT - 32 ) THEN - COUNT ( * ) - - COUNT ( * ) ELSE - 88 END
----
-88

query I rowsort
SELECT ( + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4968
SELECT DISTINCT + 67 col2, - 34 * COUNT( * ) * 26 AS col1
----
67
-884

skipif mysql # not compatible
query II rowsort label-4968
SELECT DISTINCT + 67 col2, - 34 * COUNT ( * ) * 26 AS col1
----
67
-884

query I rowsort
SELECT DISTINCT + COALESCE ( + + 56, 86 * - 44, 21 + - 15 - - 57 ) col2
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4970
SELECT DISTINCT - 73 DIV - 83 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT - 73 / - 83 AS col0
----
0

query I rowsort
SELECT ( + - COALESCE ( + - 16, - + 11 * + 66, 83 ) )
----
16

query I rowsort
SELECT + 51 * 2 AS col1
----
102

query I rowsort
SELECT + 9 * + 70 AS col2
----
630

query I rowsort
SELECT - 15 * 25
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT DISTINCT COUNT( * ) * + - 37 + - 35
----
-72

skipif mysql # not compatible
query I rowsort label-4975
SELECT DISTINCT COUNT ( * ) * + - 37 + - 35
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT ALL 9 * + 9 + + MAX( ALL - + 62 )
----
19

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL 9 * + 9 + + MAX ( ALL - + 62 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - 21 * - COUNT( * ) - + - COUNT( * ) AS col2
----
22

skipif mysql # not compatible
query I rowsort label-4977
SELECT - 21 * - COUNT ( * ) - + - COUNT ( * ) AS col2
----
22

query II rowsort
SELECT - 15 AS col0, + ( + 33 ) * + - 25
----
-15
-825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4979
SELECT - SUM( + - 18 ) - - CAST( 59 AS SIGNED ), - CASE - COUNT( * ) WHEN - + COALESCE ( + - MAX( + + 95 ), - 1 + - 8 + - + COUNT( * ) / - ( 51 ) * CASE + NULLIF ( + + 90, CAST( + 85 AS SIGNED ) * COUNT( * ) + - + 45 ) WHEN + - 69 THEN - 70 - + - MAX( DISTINCT + - 41 ) - ( + 47 ) * - 36 WHEN + 40 * COUNT( * ) + - + 41 + + 46 + 71 / 15 THEN NULL ELSE NULL END + + AVG ( - 78 ) / + 72 ) * - 64 + 11 * + 46 THEN 1 WHEN 53 THEN NULL END + - 51 AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-4979
SELECT - SUM ( + - 18 ) - - CAST ( 59 AS INTEGER ), - CASE - COUNT ( * ) WHEN - + COALESCE ( + - MAX ( + + 95 ), - 1 + - 8 + - + COUNT ( * ) / - ( 51 ) * CASE + NULLIF ( + + 90, CAST ( + 85 AS INTEGER ) * COUNT ( * ) + - + 45 ) WHEN + - 69 THEN - 70 - + - MAX ( DISTINCT + - 41 ) - ( + 47 ) * - 36 WHEN + 40 * COUNT ( * ) + - + 41 + + 46 + 71 / 15 THEN NULL ELSE NULL END + + AVG ( - 78 ) / + 72 ) * - 64 + 11 * + 46 THEN 1 WHEN 53 THEN NULL END + - 51 AS col2
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL + + 95 * - 46 * 71 + + 92 + COUNT( * ) * + COUNT( * ) * + COUNT( * )
----
-310177

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + + 95 * - 46 * 71 + + 92 + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * )
----
-310177

onlyif mysql # aggregate syntax: 
query II rowsort label-4981
SELECT ALL - MAX( DISTINCT + 38 ) * - 81 AS col1, 43
----
3078
43

skipif mysql # not compatible
query II rowsort label-4981
SELECT ALL - MAX ( DISTINCT + 38 ) * - 81 AS col1, 43
----
3078
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT COUNT( * ) * + - 15 + - + 77 col0
----
-92

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT COUNT ( * ) * + - 15 + - + 77 col0
----
-92

query I rowsort
SELECT - - ( - 24 ) + - - 39
----
15

query I rowsort
SELECT ALL - + 45 * - 66 + - - 14 col0
----
2984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4985
SELECT DISTINCT - CASE - 72 WHEN + 77 * CAST( + COUNT( - 22 ) AS SIGNED ) * + - 69 - 92 THEN + - ( + COUNT( - 16 ) ) + + 37 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT DISTINCT - CASE - 72 WHEN + 77 * CAST ( + COUNT ( - 22 ) AS INTEGER ) * + - 69 - 92 THEN + - ( + COUNT ( - 16 ) ) + + 37 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT - + SUM( DISTINCT + 37 ) - 69 AS col2, 90 AS col2
----
-106
90

skipif mysql # not compatible
query II rowsort label-4986
SELECT - + SUM ( DISTINCT + 37 ) - 69 AS col2, 90 AS col2
----
-106
90

onlyif mysql # aggregate syntax: 
query II rowsort label-4987
SELECT - 11 AS col1, COUNT( * ) + - 86 AS col2
----
-11
-85

skipif mysql # not compatible
query II rowsort label-4987
SELECT - 11 AS col1, COUNT ( * ) + - 86 AS col2
----
-11
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4988
SELECT ALL - ( + 33 ) * - 11 * 26 + - CASE CAST( NULL AS SIGNED ) WHEN + 63 THEN - MAX( ( + 27 ) ) END - + + 86 + + 80 - 61 + + 43 AS col1, - 13 AS col0
----
NULL
-13

skipif mysql # not compatible
query II rowsort label-4988
SELECT ALL - ( + 33 ) * - 11 * 26 + - CASE CAST ( NULL AS INTEGER ) WHEN + 63 THEN - MAX ( ( + 27 ) ) END - + + 86 + + 80 - 61 + + 43 AS col1, - 13 AS col0
----
NULL
-13

query II rowsort
SELECT - 1 * + 63 + + 77 col1, 66 AS col2
----
14
66

query II rowsort
SELECT - 15 + + - 91 + + 43, 97 col2
----
-63
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4991
SELECT ALL - 6 DIV - 84 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4991
SELECT ALL - 6 / - 84 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4992
SELECT DISTINCT - 90 DIV COUNT( * ) + - 72 + + 65 + - 75 * 7 - + 14 * 79 * 56
----
-62558

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT - 90 / COUNT ( * ) + - 72 + + 65 + - 75 * 7 - + 14 * 79 * 56
----
-62558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4993
SELECT - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT DISTINCT + MAX( DISTINCT 58 ) - - CASE + - 41 WHEN + - MIN( DISTINCT - 35 ) THEN - ( + - ( - 1 ) ) ELSE - COUNT( * ) + + 16 END * - + SUM( + + 44 ) AS col0
----
-602

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + MAX ( DISTINCT 58 ) - - CASE + - 41 WHEN + - MIN ( DISTINCT - 35 ) THEN - ( + - ( - 1 ) ) ELSE - COUNT ( * ) + + 16 END * - + SUM ( + + 44 ) AS col0
----
-602

query I rowsort
SELECT ALL - 21 * - 83 * 54
----
94122

query II rowsort
SELECT - ( + 41 ), 39 AS col1
----
-41
39

query I rowsort
SELECT - 17 - + ( - 46 )
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4998
SELECT + 82 DIV + CAST( + - 4 AS SIGNED ) col2
----
-20

skipif mysql # not compatible
query I rowsort label-4998
SELECT + 82 / + CAST ( + - 4 AS INTEGER ) col2
----
-20

query I rowsort
SELECT 45 * + 79
----
3555

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT 50 * 6 * - 17 - - 68, + COUNT( * ) AS col2
----
-5032
1

skipif mysql # not compatible
query II rowsort label-5000
SELECT 50 * 6 * - 17 - - 68, + COUNT ( * ) AS col2
----
-5032
1

query I rowsort
SELECT 35 * + 60 AS col2
----
2100

query I rowsort
SELECT 41 + 12 + + 53 * - 63 + - 4
----
-3290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5003
SELECT DISTINCT COUNT( * ) * 59, + 9 + - 61 + CAST( - 53 AS SIGNED ) col2
----
59
-105

skipif mysql # not compatible
query II rowsort label-5003
SELECT DISTINCT COUNT ( * ) * 59, + 9 + - 61 + CAST ( - 53 AS INTEGER ) col2
----
59
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT 48 + 86 * 43 + - + MAX( DISTINCT + 72 ) * - 69 AS col2
----
8714

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT 48 + 86 * 43 + - + MAX ( DISTINCT + 72 ) * - 69 AS col2
----
8714

onlyif mysql # aggregate syntax: 
query I rowsort label-5005
SELECT ALL + 28 + NULLIF ( + COUNT( * ), + 98 )
----
29

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL + 28 + NULLIF ( + COUNT ( * ), + 98 )
----
29

query I rowsort
SELECT + 96 + + 25 AS col0
----
121

onlyif mysql # aggregate syntax: 
query II rowsort label-5007
SELECT - 45 + + 50 AS col2, 29 * + 86 + - COALESCE ( + - COUNT( * ), + + 27 * - - 6 - + 27 + - 63 )
----
5
2495

skipif mysql # not compatible
query II rowsort label-5007
SELECT - 45 + + 50 AS col2, 29 * + 86 + - COALESCE ( + - COUNT ( * ), + + 27 * - - 6 - + 27 + - 63 )
----
5
2495

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - 19 + + MIN( + 3 ) - + 47 col2
----
-63

skipif mysql # not compatible
query I rowsort label-5008
SELECT - 19 + + MIN ( + 3 ) - + 47 col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5009
SELECT ALL + 12 - - + 66 AS col0, - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL + 12 - - + 66 AS col0, - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) AS col1
----
78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5010
SELECT - 85 DIV - 77 col2, COUNT( DISTINCT CAST( - 49 AS SIGNED ) ) col0
----
1
1

skipif mysql # not compatible
query II rowsort label-5010
SELECT - 85 / - 77 col2, COUNT ( DISTINCT CAST ( - 49 AS INTEGER ) ) col0
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5011
SELECT + 94 + COALESCE ( + COUNT( * ), - ( - - 12 ) * + COUNT( * ), COUNT( * ) ) DIV - 24
----
94

skipif mysql # not compatible
query I rowsort label-5011
SELECT + 94 + COALESCE ( + COUNT ( * ), - ( - - 12 ) * + COUNT ( * ), COUNT ( * ) ) / - 24
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT COUNT( * ) * - + 60 col1
----
-60

skipif mysql # not compatible
query I rowsort label-5012
SELECT COUNT ( * ) * - + 60 col1
----
-60

query I rowsort
SELECT ALL - - 17 * + + 95 AS col1
----
1615

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT ALL - 52 - + 82 + COUNT( * ) * - - 98 + 71 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL - 52 - + 82 + COUNT ( * ) * - - 98 + 71 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT - + NULLIF ( - CASE - 1 WHEN + 20 THEN COALESCE ( - + 10, - + NULLIF ( 54, + 89 * COUNT( * ) + 79 - + - 65 + + COUNT( * ) + - 9 * - 46 * + 93 + - 16 + - 30 * - 42 ) + ( + 78 ), 96 / - 91 ) * 73 + 36 - - 58 * 91 + - 30 * - - 46 * 10 + - + 63 * + - COUNT( * ) WHEN - 58 * + ( CASE 47 WHEN 14 THEN NULL WHEN + 60 THEN + SUM( - 58 ) * + COALESCE ( ( 67 ), 22 + 87, - 22 ) ELSE 4 END ) + 35 THEN - 24 END, + COUNT( * ) + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT - + NULLIF ( - CASE - 1 WHEN + 20 THEN COALESCE ( - + 10, - + NULLIF ( 54, + 89 * COUNT ( * ) + 79 - + - 65 + + COUNT ( * ) + - 9 * - 46 * + 93 + - 16 + - 30 * - 42 ) + ( + 78 ), 96 / - 91 ) * 73 + 36 - - 58 * 91 + - 30 * - - 46 * 10 + - + 63 * + - COUNT ( * ) WHEN - 58 * + ( CASE 47 WHEN 14 THEN NULL WHEN + 60 THEN + SUM ( - 58 ) * + COALESCE ( ( 67 ), 22 + 87, - 22 ) ELSE 4 END ) + 35 THEN - 24 END, + COUNT ( * ) + 85 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - + CAST( + 18 AS SIGNED ) * - 89
----
1602

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - + CAST ( + 18 AS INTEGER ) * - 89
----
1602

query I rowsort
SELECT - 44 + + 56
----
12

query II rowsort
SELECT ALL 96 AS col1, 80
----
96
80

query I rowsort
SELECT 0 * 88
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT 7 + + CAST( + + 3 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-5020
SELECT 7 + + CAST ( + + 3 AS INTEGER )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5021
SELECT 16 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT 16 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 26 * + 0 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5023
SELECT ALL 61 AS col0, - 42 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
61
NULL

skipif mysql # not compatible
query II rowsort label-5023
SELECT ALL 61 AS col0, - 42 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
61
NULL

query I rowsort
SELECT DISTINCT 99 * + 19 AS col0
----
1881

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL 58 + COUNT( * ) - 36 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL 58 + COUNT ( * ) - 36 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT 42 + + 71 * - COUNT( * ) * 66 AS col1
----
-4644

skipif mysql # not compatible
query I rowsort label-5026
SELECT 42 + + 71 * - COUNT ( * ) * 66 AS col1
----
-4644

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5027
SELECT ALL + 91 * - NULLIF ( 76, - ( - 73 ) * - COUNT( * ) * - + 13 / 81 / - 60 + - + CAST( - - 84 AS SIGNED ) + ( - COUNT( * ) ) * - 4 ) col2
----
-6916

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + 91 * - NULLIF ( 76, - ( - 73 ) * - COUNT ( * ) * - + 13 / 81 / - 60 + - + CAST ( - - 84 AS INTEGER ) + ( - COUNT ( * ) ) * - 4 ) col2
----
-6916

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT DISTINCT + ( - ( CAST( NULL AS SIGNED ) ) ) + + 78 * - + COUNT( ALL - - 99 ) + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT + ( - ( CAST ( NULL AS INTEGER ) ) ) + + 78 * - + COUNT ( ALL - - 99 ) + 43
----
NULL

query I rowsort
SELECT ALL 98 + - - 4 * 90 AS col2
----
458

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT COUNT( * ) * 86 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5030
SELECT COUNT ( * ) * 86 AS col0
----
86

query I rowsort
SELECT ( - 78 ) * - 61 - - 9 AS col1
----
4767

query I rowsort
SELECT DISTINCT + 73 + 18 AS col2
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5033
SELECT ALL - 21 AS col2, - 6 * - MAX( + 0 ) * 66 + - MAX( + 20 ) + - 0 AS col0
----
-21
-20

skipif mysql # not compatible
query II rowsort label-5033
SELECT ALL - 21 AS col2, - 6 * - MAX ( + 0 ) * 66 + - MAX ( + 20 ) + - 0 AS col0
----
-21
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT ALL 50 DIV + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL 50 / + 73 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT DISTINCT - MAX( - 45 ) col1
----
45

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT - MAX ( - 45 ) col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT ALL ( - - 33 ) + COUNT( * ) - COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL ( - - 33 ) + COUNT ( * ) - COUNT ( * ) AS col1
----
33

query I rowsort
SELECT 23 * + 76 * + 9 + 14
----
15746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5038
SELECT 2 * - 2 DIV - 45 + 13 + + 44 * + 75 * - 2 + 83 * - - 57 * + COUNT( * ) * + NULLIF ( - 36, 8 + + 25 + 89 + - + 49 + + - 81 * ( + 87 ) + + COUNT( DISTINCT + 57 ) * + - 74 DIV COUNT( * ) ) * 20 AS col1
----
-3412907

skipif mysql # not compatible
query I rowsort label-5038
SELECT 2 * - 2 / - 45 + 13 + + 44 * + 75 * - 2 + 83 * - - 57 * + COUNT ( * ) * + NULLIF ( - 36, 8 + + 25 + 89 + - + 49 + + - 81 * ( + 87 ) + + COUNT ( DISTINCT + 57 ) * + - 74 / COUNT ( * ) ) * 20 AS col1
----
-3412907

query I rowsort
SELECT - 82 * - - 99 - + 10 * + - 63 - - 23 * - 84
----
-9420

onlyif mysql # DIV for integer division: 
query I rowsort label-5040
SELECT DISTINCT - 72 DIV - 12
----
6

skipif mysql # not compatible
query I rowsort label-5040
SELECT DISTINCT - 72 / - 12
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL CASE + 8 WHEN - - 99 THEN 33 * + 45 + + 88 + COUNT( 4 ) WHEN - 31 THEN - 33 END * + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL CASE + 8 WHEN - - 99 THEN 33 * + 45 + + 88 + COUNT ( 4 ) WHEN - 31 THEN - 33 END * + 43 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT ALL - + CAST( - + 76 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL - + CAST ( - + 76 AS INTEGER ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + 59 * + COUNT( * ) * 92 * + NULLIF ( - ( - + 75 ), + - 45 ) AS col0
----
407100

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 59 * + COUNT ( * ) * 92 * + NULLIF ( - ( - + 75 ), + - 45 ) AS col0
----
407100

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - ( - SUM( ALL 16 ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-5044
SELECT - ( - SUM ( ALL 16 ) ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL MAX( 6 ) col2
----
6

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL MAX ( 6 ) col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT ALL + 40 / ( + 47 ) / - ( + 96 ) + - + CASE 16 WHEN 95 THEN - 78 + ( - - CASE - - COUNT( * ) WHEN + + 4 * 11 + - - COALESCE ( - 63, - 77 ) THEN 22 ELSE + COUNT( * ) END ) END + - 95 + 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL + 40 / ( + 47 ) / - ( + 96 ) + - + CASE 16 WHEN 95 THEN - 78 + ( - - CASE - - COUNT ( * ) WHEN + + 4 * 11 + - - COALESCE ( - 63, - 77 ) THEN 22 ELSE + COUNT ( * ) END ) END + - 95 + 41 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-5047
SELECT CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT NULLIF ( 40, + - SUM( DISTINCT - NULLIF ( 73, - 68 DIV 54 ) ) ) DIV - 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT NULLIF ( 40, + - SUM ( DISTINCT - NULLIF ( 73, - 68 / 54 ) ) ) / - 87 col0
----
0

query I rowsort
SELECT + 52 + + + 95 col1
----
147

onlyif mysql # DIV for integer division: 
query I rowsort label-5050
SELECT - 70 DIV - 60
----
1

skipif mysql # not compatible
query I rowsort label-5050
SELECT - 70 / - 60
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL - CAST( NULL AS SIGNED ) + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - CAST ( NULL AS INTEGER ) + + 68
----
NULL

query I rowsort
SELECT DISTINCT 93 * + - 39
----
-3627

query I rowsort
SELECT ALL + 86 + + + 24 * 71 col0
----
1790

query I rowsort
SELECT + 34 + 50
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - MAX( 27 ) + 17
----
-10

skipif mysql # not compatible
query I rowsort label-5055
SELECT - MAX ( 27 ) + 17
----
-10

query II rowsort
SELECT 94 AS col1, 23 AS col0
----
94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT - NULLIF ( + COUNT( * ), - COUNT( ALL - - 78 ) ) * 37 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5057
SELECT - NULLIF ( + COUNT ( * ), - COUNT ( ALL - - 78 ) ) * 37 AS col1
----
-37

query I rowsort
SELECT ALL + 86 + - ( + 93 )
----
-7

query I rowsort
SELECT - 4 + - - 80
----
76

query I rowsort
SELECT DISTINCT NULLIF ( - - 90, + 80 * 24 / 67 )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT - MAX( + 30 ) + + - ( - 33 ) + - 58 + + ( + 71 )
----
16

skipif mysql # not compatible
query I rowsort label-5061
SELECT - MAX ( + 30 ) + + - ( - 33 ) + - 58 + + ( + 71 )
----
16

query I rowsort
SELECT ALL NULLIF ( + - ( 42 ), 5 )
----
-42

query I rowsort
SELECT - 56 + - - 18 + - 67
----
-105

query II rowsort
SELECT DISTINCT + 2 AS col0, 91
----
2
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT ALL 46 * + 77 + 9 + + 62 + + + 39 DIV + 23 + + + 6 col0
----
3620

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL 46 * + 77 + 9 + + 62 + + + 39 / + 23 + + + 6 col0
----
3620

query II rowsort
SELECT ALL + - NULLIF ( - 73, - 38 * + 5 * + 9 + 57 ) AS col1, 46
----
73
46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5067
SELECT + 43 DIV + - 59 + + NULLIF ( - ( - 32 ), + + 91 * + 92 + - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) + - 68
----
-36

skipif mysql # not compatible
query I rowsort label-5067
SELECT + 43 / + - 59 + + NULLIF ( - ( - 32 ), + + 91 * + 92 + - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - 68
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT COUNT( * ) * 38 + 56 AS col2
----
94

skipif mysql # not compatible
query I rowsort label-5068
SELECT COUNT ( * ) * 38 + 56 AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5069
SELECT + NULLIF ( - 53, + CAST( + + 85 AS SIGNED ) ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-5069
SELECT + NULLIF ( - 53, + CAST ( + + 85 AS INTEGER ) ) AS col1
----
-53

query I rowsort
SELECT + ( + - 66 )
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5071
SELECT + 47 DIV 42 + ( + COUNT( * ) ) + COALESCE ( 29, - 77 - + 68 )
----
31

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 47 / 42 + ( + COUNT ( * ) ) + COALESCE ( 29, - 77 - + 68 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT - + COUNT( * ) * 86 * + 17
----
-1462

skipif mysql # not compatible
query I rowsort label-5072
SELECT - + COUNT ( * ) * 86 * + 17
----
-1462

query I rowsort
SELECT + 10 * 50 AS col2
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + COUNT( * ) * SUM( - ( 70 ) ) + 15 AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5074
SELECT + COUNT ( * ) * SUM ( - ( 70 ) ) + 15 AS col2
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5075
SELECT ALL COUNT( * ) * COUNT( * ) DIV ( SUM( DISTINCT - + 84 ) ) - + 28 col2
----
-28

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL COUNT ( * ) * COUNT ( * ) / ( SUM ( DISTINCT - + 84 ) ) - + 28 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT - 76 * - COUNT( * ) * 68
----
5168

skipif mysql # not compatible
query I rowsort label-5076
SELECT - 76 * - COUNT ( * ) * 68
----
5168

query I rowsort
SELECT - 81 + - 1 + - 29
----
-111

query I rowsort
SELECT ALL + + ( + ( + 68 ) )
----
68

query I rowsort
SELECT + - 24 + + 33
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT COUNT( * ) * - 86 * - + 99 - - + 16 * - 34 * COALESCE ( 27, + + 34 + - 57 * - 1 ) + 35 + + - COUNT( * ) AS col1
----
-6140

skipif mysql # not compatible
query I rowsort label-5080
SELECT COUNT ( * ) * - 86 * - + 99 - - + 16 * - 34 * COALESCE ( 27, + + 34 + - 57 * - 1 ) + 35 + + - COUNT ( * ) AS col1
----
-6140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5081
SELECT + CASE - + ( + MIN( 48 ) ) WHEN + 85 * - ( - COUNT( * ) ) * 31 / + - SUM( ALL 30 ) * + 35 + 78 THEN NULL ELSE + 74 + - 17 END col2, + 46 + + CAST( - 26 AS SIGNED ) AS col0
----
57
20

skipif mysql # not compatible
query II rowsort label-5081
SELECT + CASE - + ( + MIN ( 48 ) ) WHEN + 85 * - ( - COUNT ( * ) ) * 31 / + - SUM ( ALL 30 ) * + 35 + 78 THEN NULL ELSE + 74 + - 17 END col2, + 46 + + CAST ( - 26 AS INTEGER ) AS col0
----
57
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT - + 38 * + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-5082
SELECT - + 38 * + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5083
SELECT + ( + - 41 ) * + COUNT( * ) * COUNT( * ) - - 66 col0
----
25

skipif mysql # not compatible
query I rowsort label-5083
SELECT + ( + - 41 ) * + COUNT ( * ) * COUNT ( * ) - - 66 col0
----
25

query II rowsort
SELECT 95, 7 + 43 - + - 66 * 69 col2
----
95
4604

query I rowsort
SELECT COALESCE ( - 66, + 3 * - 34 - 43, + - 73 ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT ALL 23 * + COUNT( - - 3 ) * + + COUNT( * ) * + ( - 45 ) * + + MIN( + ( 9 ) )
----
-9315

skipif mysql # not compatible
query I rowsort label-5086
SELECT ALL 23 * + COUNT ( - - 3 ) * + + COUNT ( * ) * + ( - 45 ) * + + MIN ( + ( 9 ) )
----
-9315

query I rowsort
SELECT + 93 + + 14 * + 10
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT DISTINCT - 31 * + COUNT( * ) + - 25 + + - 44 * + 48
----
-2168

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT - 31 * + COUNT ( * ) + - 25 + + - 44 * + 48
----
-2168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5089
SELECT + 70 + 63 + 76 * - 72 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5089
SELECT + 70 + 63 + 76 * - 72 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT DISTINCT + 93 * - + 48 + 87 * 7 + CAST( NULL AS SIGNED ) * + NULLIF ( - + SUM( 85 ), - ( 35 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + 93 * - + 48 + 87 * 7 + CAST ( NULL AS INTEGER ) * + NULLIF ( - + SUM ( 85 ), - ( 35 ) )
----
NULL

query I rowsort
SELECT + 17 - - - 9 + - 47 + 85 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT MIN( 90 )
----
90

skipif mysql # not compatible
query I rowsort label-5092
SELECT MIN ( 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5093
SELECT DISTINCT NULLIF ( + 54, + - 97 ) + 71 + + 6 col0, - COUNT( * ) * - + CAST( NULL AS SIGNED )
----
131
NULL

skipif mysql # not compatible
query II rowsort label-5093
SELECT DISTINCT NULLIF ( + 54, + - 97 ) + 71 + + 6 col0, - COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
131
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + 16 + + MIN( DISTINCT + 74 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 16 + + MIN ( DISTINCT + 74 ) col1
----
90

query II rowsort
SELECT ALL 22 + - 68, - ( COALESCE ( + 14, + 87, - NULLIF ( 28, CASE - 61 WHEN + 55 THEN - + 82 + 4 END ) ) ) - + 63 AS col0
----
-46
-77

query I rowsort
SELECT ALL ( 0 ) + + 30
----
30

query I rowsort
SELECT + 63 * 29 col1
----
1827

query II rowsort
SELECT ALL - 28 * - 56 col1, + 80 AS col2
----
1568
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL 86 + + ( + - 5 ) - - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL 86 + + ( + - 5 ) - - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - 50 + - - ( - + COUNT( * ) ) - 88 * 84
----
-7443

skipif mysql # not compatible
query I rowsort label-5100
SELECT - 50 + - - ( - + COUNT ( * ) ) - 88 * 84
----
-7443

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL 15 * + CAST( + + 16 AS SIGNED ) AS col1
----
240

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL 15 * + CAST ( + + 16 AS INTEGER ) AS col1
----
240

query II rowsort
SELECT - ( + - 64 ) AS col2, 73 AS col1
----
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5103
SELECT ALL + 56 - - CAST( - 5 AS SIGNED ) + 57 * - CAST( - ( + + 36 ) AS SIGNED ) * 7 AS col0
----
14415

skipif mysql # not compatible
query I rowsort label-5103
SELECT ALL + 56 - - CAST ( - 5 AS INTEGER ) + 57 * - CAST ( - ( + + 36 ) AS INTEGER ) * 7 AS col0
----
14415

query I rowsort
SELECT + NULLIF ( + 11, 84 + - 68 ) * + 17 AS col1
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT + + 11 * - COUNT( * ) * + 17
----
-187

skipif mysql # not compatible
query I rowsort label-5105
SELECT + + 11 * - COUNT ( * ) * + 17
----
-187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5106
SELECT ALL - 34 * ( + - COUNT( * ) ) DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL - 34 * ( + - COUNT ( * ) ) / 77
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5107
SELECT - - 28 DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5107
SELECT - - 28 / 90
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT + CAST( + 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5108
SELECT + CAST ( + 68 AS INTEGER )
----
68

query I rowsort
SELECT 84 * - 52 + 68 AS col0
----
-4300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL - AVG ( ALL - - 36 ) * 4 / - CASE + - 12 WHEN - 39 * - 99 - - - CAST( NULL AS SIGNED ) THEN + COUNT( * ) * 70 * - 57 * 51 WHEN + 23 THEN NULL END * + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - AVG ( ALL - - 36 ) * 4 / - CASE + - 12 WHEN - 39 * - 99 - - - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * 70 * - 57 * 51 WHEN + 23 THEN NULL END * + 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5111
SELECT - COUNT( * ) DIV - + 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT - COUNT ( * ) / - + 39 AS col2
----
0

query I rowsort
SELECT - 10 + + - 78 + - 71 AS col2
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT ALL + COUNT( * ) + + - ( + - COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-5113
SELECT ALL + COUNT ( * ) + + - ( + - COUNT ( * ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ( + - COUNT( * ) ) * - 4 * + 7 - - + ( - + COUNT( * ) ) + + 87 col2
----
114

skipif mysql # not compatible
query I rowsort label-5114
SELECT ( + - COUNT ( * ) ) * - 4 * + 7 - - + ( - + COUNT ( * ) ) + + 87 col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL 41 + + + COUNT( * ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL 41 + + + COUNT ( * ) AS col1
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5116
SELECT ALL - MIN( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL + 4 + + 22 + - + 15 * + + COUNT( + 77 )
----
11

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL + 4 + + 22 + - + 15 * + + COUNT ( + 77 )
----
11

query I rowsort
SELECT 9 + - + 16 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5119
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 4 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5120
SELECT DISTINCT - MAX( ALL + 35 ) + - ( 14 ) - - - 90 * CAST( NULL AS DECIMAL ), 30 AS col1
----
NULL
30

skipif mysql # not compatible
query II rowsort label-5120
SELECT DISTINCT - MAX ( ALL + 35 ) + - ( 14 ) - - - 90 * CAST ( NULL AS REAL ), 30 AS col1
----
NULL
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5121
SELECT ALL 55 AS col0, + 95 * + 64 * - + COUNT( * )
----
55
-6080

skipif mysql # not compatible
query II rowsort label-5121
SELECT ALL 55 AS col0, + 95 * + 64 * - + COUNT ( * )
----
55
-6080

query I rowsort
SELECT ALL 81 + + ( + - 97 ) AS col0
----
-16

query I rowsort
SELECT ALL 99 * - 2 AS col2
----
-198

query I rowsort
SELECT 41 * 69 * - 66
----
-186714

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5125
SELECT DISTINCT - 87 + - COUNT( * ) DIV - - 22 AS col1, 87 + + 42 * + 58
----
-87
2523

skipif mysql # not compatible
query II rowsort label-5125
SELECT DISTINCT - 87 + - COUNT ( * ) / - - 22 AS col1, 87 + + 42 * + 58
----
-87
2523

query I rowsort
SELECT DISTINCT 34 * + 7
----
238

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5127
SELECT DISTINCT 92 - COUNT( * ) DIV 43 AS col2, - 84 * - 32 DIV + 8 + 72 + - 4
----
92
404

skipif mysql # not compatible
query II rowsort label-5127
SELECT DISTINCT 92 - COUNT ( * ) / 43 AS col2, - 84 * - 32 / + 8 + 72 + - 4
----
92
404

query II rowsort
SELECT DISTINCT 72 AS col0, + 71
----
72
71

query I rowsort
SELECT ALL 69 - + 30 AS col1
----
39

query I rowsort
SELECT DISTINCT 98 * 44
----
4312

query I rowsort
SELECT 79 * + 32 * 21
----
53088

query I rowsort
SELECT 50 + + 92
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT ALL 33 - + COUNT( * ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5133
SELECT ALL 33 - + COUNT ( * ) AS col2
----
32

query II rowsort
SELECT ALL 87, 47 AS col1
----
87
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT 69 * + ( - 8 ) AS col0, + NULLIF ( + 43, + COUNT( * ) )
----
-552
43

skipif mysql # not compatible
query II rowsort label-5135
SELECT 69 * + ( - 8 ) AS col0, + NULLIF ( + 43, + COUNT ( * ) )
----
-552
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5136
SELECT ALL 53 DIV + MIN( ALL 26 ) + 67, NULLIF ( - 58, - 36 - 48 ) col2
----
69
-58

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL 53 / + MIN ( ALL 26 ) + 67, NULLIF ( - 58, - 36 - 48 ) col2
----
69
-58

query I rowsort
SELECT + 22 + + 39
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT COUNT( * ) + - - 54 * 8 AS col0
----
433

skipif mysql # not compatible
query I rowsort label-5138
SELECT COUNT ( * ) + - - 54 * 8 AS col0
----
433

query I rowsort
SELECT DISTINCT - - 8 * 74 + - COALESCE ( - NULLIF ( + 86, ( + 40 ) ), 94 ) col0
----
678

query II rowsort
SELECT ALL - 36, 72 AS col2
----
-36
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT 88 / + + 57 + - 32 - + 41 + + CASE + - 82 WHEN + COUNT( * ) THEN 26 ELSE NULL END + + 14 * 49 * - 41 + + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT 88 / + + 57 + - 32 - + 41 + + CASE + - 82 WHEN + COUNT ( * ) THEN 26 ELSE NULL END + + 14 * 49 * - 41 + + 95
----
NULL

query I rowsort
SELECT DISTINCT 60 * 24
----
1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5143
SELECT 33 / + 15 + + AVG ( DISTINCT - - 37 ) + 53 - - 61 / + + 84 + - CAST( NULL AS SIGNED ) * - CASE - - COALESCE ( - + 74, - 70 + 93 * CASE + 44 WHEN 5 * - 29 + - COUNT( * ) THEN NULL WHEN 35 THEN NULL WHEN + 69 THEN NULL ELSE - + CASE ( - 59 ) WHEN - 73 / + SUM( + 93 ) - - COUNT( 0 ) * + + 16 * 65 THEN + 16 END END * + 25 ) WHEN + AVG ( ALL + + 49 ) + + COUNT( * ) THEN CAST( NULL AS SIGNED ) * + + 93 - - - 79 + 2 WHEN + 67 THEN 5 * - 80 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5143
SELECT 33 / + 15 + + AVG ( DISTINCT - - 37 ) + 53 - - 61 / + + 84 + - CAST ( NULL AS INTEGER ) * - CASE - - COALESCE ( - + 74, - 70 + 93 * CASE + 44 WHEN 5 * - 29 + - COUNT ( * ) THEN NULL WHEN 35 THEN NULL WHEN + 69 THEN NULL ELSE - + CASE ( - 59 ) WHEN - 73 / + SUM ( + 93 ) - - COUNT ( 0 ) * + + 16 * 65 THEN + 16 END END * + 25 ) WHEN + AVG ( ALL + + 49 ) + + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * + + 93 - - - 79 + 2 WHEN + 67 THEN 5 * - 80 END AS col1
----
NULL

query I rowsort
SELECT - 38 + - 77
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-5145
SELECT DISTINCT - + 66 + COUNT( * ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-5145
SELECT DISTINCT - + 66 + COUNT ( * ) col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5146
SELECT ( - 13 ) * - 89 DIV + COUNT( * ) + NULLIF ( 96, COALESCE ( - - 48, 79 - + 48 + + 8 ) ) AS col2, 22
----
1253
22

skipif mysql # not compatible
query II rowsort label-5146
SELECT ( - 13 ) * - 89 / + COUNT ( * ) + NULLIF ( 96, COALESCE ( - - 48, 79 - + 48 + + 8 ) ) AS col2, 22
----
1253
22

query I rowsort
SELECT ALL - + ( 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5148
SELECT ALL ( - + CASE - CAST( + ( 99 ) AS SIGNED ) WHEN + 71 THEN + COUNT( * ) + + 84 + 48 END ) + + 33 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL ( - + CASE - CAST ( + ( 99 ) AS INTEGER ) WHEN + 71 THEN + COUNT ( * ) + + 84 + 48 END ) + + 33 AS col0
----
NULL

query I rowsort
SELECT ALL + 86 + + 62
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-5150
SELECT COUNT( * ), - COUNT( * ) - - CASE - ( + 25 ) WHEN - 65 THEN + + COUNT( * ) ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5150
SELECT COUNT ( * ), - COUNT ( * ) - - CASE - ( + 25 ) WHEN - 65 THEN + + COUNT ( * ) ELSE NULL END AS col2
----
1
NULL

query I rowsort
SELECT ALL + + 79 + + 85 * ( - + 34 ) + + 74 + + 60 + - - 54 AS col0
----
-2623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5152
SELECT CAST( + NULLIF ( - 49, + - 34 ) AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT CAST ( + NULLIF ( - 49, + - 34 ) AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 45 + ( - 1 )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5154
SELECT 51 DIV CAST( + COUNT( * ) AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-5154
SELECT 51 / CAST ( + COUNT ( * ) AS INTEGER )
----
51

query I rowsort
SELECT ALL - ( + CASE + 3 WHEN - + 48 THEN NULL ELSE + 16 END )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5156
SELECT DISTINCT + ( - 18 ) * CAST( + - 9 AS SIGNED ) * - + 31
----
-5022

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT + ( - 18 ) * CAST ( + - 9 AS INTEGER ) * - + 31
----
-5022

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT + COALESCE ( - + 2, + + 75 * - 91 * 30 * - 61 - - - 67 + + - 3 ) * + 27 + - CAST( - 74 AS SIGNED ) + + + 91 * 50 + - 78
----
4492

skipif mysql # not compatible
query I rowsort label-5157
SELECT + COALESCE ( - + 2, + + 75 * - 91 * 30 * - 61 - - - 67 + + - 3 ) * + 27 + - CAST ( - 74 AS INTEGER ) + + + 91 * 50 + - 78
----
4492

query I rowsort
SELECT ALL + 27 * - + 52 * 11
----
-15444

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT 41 + - - COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5159
SELECT 41 + - - COUNT ( * ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT 51 + + + COUNT( * ) - + 51
----
1

skipif mysql # not compatible
query I rowsort label-5160
SELECT 51 + + + COUNT ( * ) - + 51
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT 54 DIV + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT 54 / + 76 AS col1
----
0

query I rowsort
SELECT 60 * + - 55 AS col2
----
-3300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT DISTINCT 86 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT DISTINCT 86 / + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 60 * - 68 * + + 37
----
-150960

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT 95 + - + 49 + COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-5165
SELECT 95 + - + 49 + COUNT ( * )
----
47

query I rowsort
SELECT DISTINCT 44 * - 95 * - - 47 AS col2
----
-196460

query I rowsort
SELECT 79 - 96 * + 88 AS col1
----
-8369

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL SUM( - ( + 40 ) ) * MAX( 89 ) col2
----
-3560

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL SUM ( - ( + 40 ) ) * MAX ( 89 ) col2
----
-3560

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL SUM( ALL - ( + 64 ) )
----
-64

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL SUM ( ALL - ( + 64 ) )
----
-64

query I rowsort
SELECT ALL + 6 * 62 + 32
----
404

query I rowsort
SELECT - 70 + 64 AS col2
----
-6

query II rowsort
SELECT - ( 22 ), - 20 + + 2 + 22 - - 1 AS col2
----
-22
5

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT 41 DIV 81 + + + 64
----
64

skipif mysql # not compatible
query I rowsort label-5173
SELECT 41 / 81 + + + 64
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5174
SELECT CASE WHEN 24 NOT IN ( - + 94, + 61, + + 51, + + 44 + - + 50 + 5 + - 14 ) THEN CAST( CAST( + - 12 AS SIGNED ) AS SIGNED ) WHEN NOT ( NULL ) IS NOT NULL THEN NULL END * ( + COUNT( * ) )
----
-12

skipif mysql # not compatible
query I rowsort label-5174
SELECT CASE WHEN 24 NOT IN ( - + 94, + 61, + + 51, + + 44 + - + 50 + 5 + - 14 ) THEN CAST ( CAST ( + - 12 AS INTEGER ) AS INTEGER ) WHEN NOT ( NULL ) IS NOT NULL THEN NULL END * ( + COUNT ( * ) )
----
-12

query I rowsort
SELECT DISTINCT + + ( - 40 ) AS col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT DISTINCT + + MAX( DISTINCT 3 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT + + MAX ( DISTINCT 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5177
SELECT + MAX( ALL - - 7 ) * - ( + 54 ) * - 59
----
22302

skipif mysql # not compatible
query I rowsort label-5177
SELECT + MAX ( ALL - - 7 ) * - ( + 54 ) * - 59
----
22302

query I rowsort
SELECT ALL + 30 * + 40 AS col1
----
1200

onlyif mysql # aggregate syntax: 
query II rowsort label-5179
SELECT SUM( ALL + NULLIF ( + 67, + 31 ) ), + 84 AS col0
----
67
84

skipif mysql # not compatible
query II rowsort label-5179
SELECT SUM ( ALL + NULLIF ( + 67, + 31 ) ), + 84 AS col0
----
67
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5180
SELECT + 89 * - + 23 DIV + COUNT( * ) + + 60 * - COUNT( * ) * - 72 AS col0
----
2273

skipif mysql # not compatible
query I rowsort label-5180
SELECT + 89 * - + 23 / + COUNT ( * ) + + 60 * - COUNT ( * ) * - 72 AS col0
----
2273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT CASE CAST( + 81 AS SIGNED ) WHEN - 41 THEN 2 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT CASE CAST ( + 81 AS INTEGER ) WHEN - 41 THEN 2 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT NULLIF ( - - COUNT( * ), + - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT NULLIF ( - - COUNT ( * ), + - 27 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT DISTINCT COALESCE ( - COUNT( * ), - MAX( + 79 ) ) * 68, + 48 AS col1
----
-68
48

skipif mysql # not compatible
query II rowsort label-5183
SELECT DISTINCT COALESCE ( - COUNT ( * ), - MAX ( + 79 ) ) * 68, + 48 AS col1
----
-68
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5184
SELECT COUNT( * ) col0, 40 + ( - MAX( ALL - 18 ) )
----
1
58

skipif mysql # not compatible
query II rowsort label-5184
SELECT COUNT ( * ) col0, 40 + ( - MAX ( ALL - 18 ) )
----
1
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5185
SELECT ALL + 9 AS col0, + CAST( + 64 AS SIGNED ) AS col0
----
9
64

skipif mysql # not compatible
query II rowsort label-5185
SELECT ALL + 9 AS col0, + CAST ( + 64 AS INTEGER ) AS col0
----
9
64

query I rowsort
SELECT + 64 - + 81
----
-17

query I rowsort
SELECT + ( 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5188
SELECT + 4 + - + MIN( ALL - 59 ) AS col2, - ( + + COUNT( * ) ) * - 55 col1
----
63
55

skipif mysql # not compatible
query II rowsort label-5188
SELECT + 4 + - + MIN ( ALL - 59 ) AS col2, - ( + + COUNT ( * ) ) * - 55 col1
----
63
55

query II rowsort
SELECT + 19 AS col1, 74
----
19
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT MAX( ALL - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-5190
SELECT MAX ( ALL - 43 ) col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT - CAST( NULL AS SIGNED ) * + COUNT( 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( 88 )
----
NULL

query I rowsort
SELECT ALL + 97 * + 52 * 95
----
479180

query I rowsort
SELECT ALL NULLIF ( 26, - 6 )
----
26

query I rowsort
SELECT DISTINCT + 79 * + 99 AS col2
----
7821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT - ( - CAST( NULL AS SIGNED ) ) + + + 54 - 95 - + - 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT - ( - CAST ( NULL AS INTEGER ) ) + + + 54 - 95 - + - 74 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5196
SELECT - CAST( 76 AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT - CAST ( 76 AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT - COUNT( * ) * - 93
----
93

skipif mysql # not compatible
query I rowsort label-5197
SELECT - COUNT ( * ) * - 93
----
93

query II rowsort
SELECT DISTINCT 81, - 87 col0
----
81
-87

query I rowsort
SELECT - - 46 + - 14
----
32

query I rowsort
SELECT - - 41 * + + COALESCE ( - - 73, - 83 )
----
2993

query I rowsort
SELECT ALL NULLIF ( - 26, - 10 )
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5202
SELECT - + 66 * + 10 * MIN( - COALESCE ( + 78, - + 98, + CAST( - + 33 AS SIGNED ) ) ) - ( 98 ) AS col0, - 42 AS col0
----
51382
-42

skipif mysql # not compatible
query II rowsort label-5202
SELECT - + 66 * + 10 * MIN ( - COALESCE ( + 78, - + 98, + CAST ( - + 33 AS INTEGER ) ) ) - ( 98 ) AS col0, - 42 AS col0
----
51382
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT + 26, - ( - 4 ) * COUNT( * ) + 60 + + + COUNT( * ) * - 89 + - 42 AS col0
----
26
-67

skipif mysql # not compatible
query II rowsort label-5203
SELECT + 26, - ( - 4 ) * COUNT ( * ) + 60 + + + COUNT ( * ) * - 89 + - 42 AS col0
----
26
-67

query II rowsort
SELECT - 7 + + ( - - 81 ) AS col2, + 31 col1
----
74
31

query I rowsort
SELECT ALL 60 * + 0 * 73 AS col2
----
0

query I rowsort
SELECT ALL 73 + - 99 + - 84 * 3 AS col1
----
-278

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT ALL + 50 + - + COUNT( * ) - - 26 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + 50 + - + COUNT ( * ) - - 26 AS col2
----
75

query I rowsort
SELECT DISTINCT - 92 + - 28 * - 92 * - + 40 * - - 35 * 19 * + 4 - 39 AS col2
----
-274086531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT + CAST( NULL AS SIGNED ) / - - 51 + COUNT( * ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT + CAST ( NULL AS INTEGER ) / - - 51 + COUNT ( * ) * 30
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5210
SELECT - + 79 * + COUNT( * ) DIV - COUNT( + 14 )
----
79

skipif mysql # not compatible
query I rowsort label-5210
SELECT - + 79 * + COUNT ( * ) / - COUNT ( + 14 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5211
SELECT + 78, CAST( 44 AS SIGNED ) AS col2
----
78
44

skipif mysql # not compatible
query II rowsort label-5211
SELECT + 78, CAST ( 44 AS INTEGER ) AS col2
----
78
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5212
SELECT ALL + 90 DIV - CAST( - COUNT( * ) AS SIGNED ) - + 7
----
83

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + 90 / - CAST ( - COUNT ( * ) AS INTEGER ) - + 7
----
83

query I rowsort
SELECT - 88 + 72
----
-16

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5214
SELECT ALL 58 DIV NULLIF ( + 94, - - CAST( - 28 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL 58 / NULLIF ( + 94, - - CAST ( - 28 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5215
SELECT ALL 76 DIV COUNT( * ) * - COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL 76 / COUNT ( * ) * - COUNT ( * ) AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT + 15 DIV 65 * 74 + - - 71 + - + 59 * - + ( 38 ) - - 18 AS col0
----
2331

skipif mysql # not compatible
query I rowsort label-5216
SELECT + 15 / 65 * 74 + - - 71 + - + 59 * - + ( 38 ) - - 18 AS col0
----
2331

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT ALL 22 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL 22 / + 81 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5218
SELECT + 34 DIV - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-5218
SELECT + 34 / - COUNT ( * )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + COALESCE ( - - 54, + + 64 - - 20 ) + + 62 + - 3 * COUNT( * ) * - COUNT( * ) * + 95 * + - 50 + - 91 * 26
----
-16500

skipif mysql # not compatible
query I rowsort label-5219
SELECT + COALESCE ( - - 54, + + 64 - - 20 ) + + 62 + - 3 * COUNT ( * ) * - COUNT ( * ) * + 95 * + - 50 + - 91 * 26
----
-16500

query I rowsort
SELECT + 81 * ( - 22 ) AS col1
----
-1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5221
SELECT CAST( NULL AS SIGNED ) * - CAST( MIN( - 74 ) AS SIGNED ) + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT CAST ( NULL AS INTEGER ) * - CAST ( MIN ( - 74 ) AS INTEGER ) + 85 AS col1
----
NULL

query I rowsort
SELECT ALL 80 * 60
----
4800

query II rowsort
SELECT DISTINCT 15 * - 34, - 39 + - 53 + ( 37 ) AS col1
----
-510
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5224
SELECT + CAST( NULL AS SIGNED ) * + 93 * + + MIN( + 20 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT + CAST ( NULL AS INTEGER ) * + 93 * + + MIN ( + 20 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT ALL + NULLIF ( + COUNT( * ), + 33 ) * + + ( ( - 80 ) ) + ( - ( + COUNT( * ) ) )
----
-81

skipif mysql # not compatible
query I rowsort label-5225
SELECT ALL + NULLIF ( + COUNT ( * ), + 33 ) * + + ( ( - 80 ) ) + ( - ( + COUNT ( * ) ) )
----
-81

query I rowsort
SELECT - 56 * - ( - 12 ) + + 44
----
-628

onlyif mysql # DIV for integer division: 
query I rowsort label-5227
SELECT + - 1 DIV + + 45 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5227
SELECT + - 1 / + + 45 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5228
SELECT - + CAST( 61 AS SIGNED ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-5228
SELECT - + CAST ( 61 AS INTEGER ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-5229
SELECT ALL + 15 + - 58 + 94 * + 82, + COALESCE ( + - 78, + + 6 + - COUNT( * ), + 54, + + 38 ) AS col2
----
7665
-78

skipif mysql # not compatible
query II rowsort label-5229
SELECT ALL + 15 + - 58 + 94 * + 82, + COALESCE ( + - 78, + + 6 + - COUNT ( * ), + 54, + + 38 ) AS col2
----
7665
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT DISTINCT - 56 + 89 + + - 75 - - MIN( 86 )
----
44

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT - 56 + 89 + + - 75 - - MIN ( 86 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5231
SELECT 55 DIV ( 33 )
----
1

skipif mysql # not compatible
query I rowsort label-5231
SELECT 55 / ( 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT - 12 * - COUNT( * ) * 70 + + - 40 - 40 AS col1
----
760

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT - 12 * - COUNT ( * ) * 70 + + - 40 - 40 AS col1
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT ALL - COUNT( 77 ) + + CASE + - COUNT( * ) WHEN + 1 THEN 6 - + + 29 WHEN 34 - - - 42 * - + COUNT( * ) THEN NULL WHEN 19 + - 78 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5233
SELECT ALL - COUNT ( 77 ) + + CASE + - COUNT ( * ) WHEN + 1 THEN 6 - + + 29 WHEN 34 - - - 42 * - + COUNT ( * ) THEN NULL WHEN 19 + - 78 THEN NULL END
----
NULL

query II rowsort
SELECT ALL 56, + 46 col2
----
56
46

query I rowsort
SELECT + 41 * + - 14 AS col1
----
-574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5236
SELECT - + CAST( NULL AS SIGNED ), CASE - COUNT( * ) WHEN 55 THEN 3 ELSE - + ( + + 37 ) END AS col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-5236
SELECT - + CAST ( NULL AS INTEGER ), CASE - COUNT ( * ) WHEN 55 THEN 3 ELSE - + ( + + 37 ) END AS col1
----
NULL
-37

query II rowsort
SELECT - 23 AS col2, 11 AS col1
----
-23
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT - + 16 AS col2, COUNT( 62 ) AS col1
----
-16
1

skipif mysql # not compatible
query II rowsort label-5238
SELECT - + 16 AS col2, COUNT ( 62 ) AS col1
----
-16
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5239
SELECT - MAX( ALL 97 ) * ( - - 57 ) DIV + 32 + + 92 + + COUNT( - 99 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-5239
SELECT - MAX ( ALL 97 ) * ( - - 57 ) / + 32 + + 92 + + COUNT ( - 99 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-5240
SELECT ALL - 62 AS col2, COUNT( * )
----
-62
1

skipif mysql # not compatible
query II rowsort label-5240
SELECT ALL - 62 AS col2, COUNT ( * )
----
-62
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT ALL + 14 * - 68 DIV - - 67 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-5241
SELECT ALL + 14 * - 68 / - - 67 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT COUNT( + 94 ) * - 83 * - + NULLIF ( 63, + MIN( + - 9 ) + 8 + - 58 + + - 79 / + 89 ) * - 39 * - COUNT( * ) + + 40 + 51 col2
----
204022

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT COUNT ( + 94 ) * - 83 * - + NULLIF ( 63, + MIN ( + - 9 ) + 8 + - 58 + + - 79 / + 89 ) * - 39 * - COUNT ( * ) + + 40 + 51 col2
----
204022

query I rowsort
SELECT ALL - NULLIF ( - - 71, + 94 )
----
-71

query I rowsort
SELECT 44 + + 64
----
108

query I rowsort
SELECT 33 * - 84 + - 49
----
-2821

query I rowsort
SELECT DISTINCT - 97 * + 5 * - 77
----
37345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL - 6 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL - 6 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT + 52 + - ( - 41 ) + - 64 DIV - ( - 87 ) + - 7 + + MIN( ALL + 45 )
----
131

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + 52 + - ( - 41 ) + - 64 / - ( - 87 ) + - 7 + + MIN ( ALL + 45 )
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT MIN( ALL 22 ) + 58 col1
----
80

skipif mysql # not compatible
query I rowsort label-5249
SELECT MIN ( ALL 22 ) + 58 col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT 88 + - CASE - 96 WHEN + COUNT( * ) THEN NULL WHEN + + 22 THEN 42 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT 88 + - CASE - 96 WHEN + COUNT ( * ) THEN NULL WHEN + + 22 THEN 42 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 79 + - 42
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5252
SELECT MAX( ALL + 98 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT MAX ( ALL + 98 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT 78 + + ( + MIN( ALL + 55 ) )
----
133

skipif mysql # not compatible
query I rowsort label-5253
SELECT 78 + + ( + MIN ( ALL + 55 ) )
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT DISTINCT + 27 * 88 + + 97 + - 35 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + 27 * 88 + + 97 + - 35 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 39 + - - 28
----
67

query I rowsort
SELECT ALL + 83 - - - 21 * - - ( 57 )
----
-1114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5257
SELECT ALL - 25 - + 93 - - COALESCE ( + CAST( NULL AS SIGNED ), - + SUM( + - 40 ) + ( + COUNT( DISTINCT - - 4 ) ) + - - 50 * - 1, + 17 * + 5 ) * - 84 AS col1
----
638

skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL - 25 - + 93 - - COALESCE ( + CAST ( NULL AS INTEGER ), - + SUM ( + - 40 ) + ( + COUNT ( DISTINCT - - 4 ) ) + - - 50 * - 1, + 17 * + 5 ) * - 84 AS col1
----
638

query I rowsort
SELECT ALL + 3 - - 99
----
102

query I rowsort
SELECT + NULLIF ( 84, + 70 ) * - - 69
----
5796

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT - 39 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT - 39 / 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT 95 + + 32 + + 88 * - ( CASE + COUNT( * ) WHEN - + 87 + COUNT( * ) + 21 + - - 23 - - 77 THEN - 84 ELSE - 27 * - 80 END ) * - 98 - + 4
----
18627963

skipif mysql # not compatible
query I rowsort label-5261
SELECT 95 + + 32 + + 88 * - ( CASE + COUNT ( * ) WHEN - + 87 + COUNT ( * ) + 21 + - - 23 - - 77 THEN - 84 ELSE - 27 * - 80 END ) * - 98 - + 4
----
18627963

onlyif mysql # aggregate syntax: 
query II rowsort label-5262
SELECT ALL COUNT( + 16 ), - ( - 15 ) * 11 * + + ( + + 61 ) + ( + 80 ) AS col2
----
1
10145

skipif mysql # not compatible
query II rowsort label-5262
SELECT ALL COUNT ( + 16 ), - ( - 15 ) * 11 * + + ( + + 61 ) + ( + 80 ) AS col2
----
1
10145

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT - SUM( DISTINCT + + 68 ) * - 19 col2
----
1292

skipif mysql # not compatible
query I rowsort label-5263
SELECT - SUM ( DISTINCT + + 68 ) * - 19 col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT + 5 + + COUNT( * ) * + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 5 + + COUNT ( * ) * + COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - + 40 * 55 * 72 + 76 AS col0
----
-158324

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5266
SELECT DISTINCT MIN( - - 31 ) DIV - - MAX( DISTINCT + NULLIF ( 38, + - 95 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5266
SELECT DISTINCT MIN ( - - 31 ) / - - MAX ( DISTINCT + NULLIF ( 38, + - 95 ) ) col1
----
0

query I rowsort
SELECT ALL NULLIF ( + 90, + 39 - + 22 * + + 42 + - ( - - 92 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT 64 + - + 98 + + NULLIF ( - 52, - 8 * COUNT( * ) ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-5268
SELECT 64 + - + 98 + + NULLIF ( - 52, - 8 * COUNT ( * ) ) AS col0
----
-86

query I rowsort
SELECT + 19 * + ( - COALESCE ( 50, 39 * 99 + + 38 - + 78 * - - 76 ) ) + - 72 AS col1
----
-1022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5270
SELECT CAST( NULL AS SIGNED ) / COALESCE ( + SUM( ALL - 92 ), - 64 ) + + - COUNT( * ) AS col1, 10 * - + 93 + - 18 + + - 47
----
NULL
-995

skipif mysql # not compatible
query II rowsort label-5270
SELECT CAST ( NULL AS INTEGER ) / COALESCE ( + SUM ( ALL - 92 ), - 64 ) + + - COUNT ( * ) AS col1, 10 * - + 93 + - 18 + + - 47
----
NULL
-995

query II rowsort
SELECT ALL - 24 AS col0, 92 * + 57 col1
----
-24
5244

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT 95 * + COUNT( * ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5272
SELECT 95 * + COUNT ( * ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT 99 + + + SUM( DISTINCT + - 69 ) * + - 88 * 99 AS col2
----
601227

skipif mysql # not compatible
query I rowsort label-5273
SELECT 99 + + + SUM ( DISTINCT + - 69 ) * + - 88 * 99 AS col2
----
601227

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT COUNT( * ) col0, + 33 - - + 43 - 92
----
1
-16

skipif mysql # not compatible
query II rowsort label-5274
SELECT COUNT ( * ) col0, + 33 - - + 43 - 92
----
1
-16

query I rowsort
SELECT 85 * - + 25 AS col1
----
-2125

query II rowsort
SELECT + 70 AS col2, + 65 AS col1
----
70
65

query I rowsort
SELECT ALL - 75 * - 91
----
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 75 + + NULLIF ( 60, - 58 + + - MAX( + 94 ) )
----
135

skipif mysql # not compatible
query I rowsort label-5278
SELECT 75 + + NULLIF ( 60, - 58 + + - MAX ( + 94 ) )
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT MIN( DISTINCT + - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT MIN ( DISTINCT + - 0 )
----
0

query I rowsort
SELECT DISTINCT - - 51 * + 93
----
4743

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5281
SELECT DISTINCT 26 - - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5281
SELECT DISTINCT 26 - - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5282
SELECT DISTINCT - COUNT( * ) col1, + 29 * + 10
----
-1
290

skipif mysql # not compatible
query II rowsort label-5282
SELECT DISTINCT - COUNT ( * ) col1, + 29 * + 10
----
-1
290

query I rowsort
SELECT + 9 + + ( + 83 )
----
92

query I rowsort
SELECT + 14 * - 89 AS col1
----
-1246

query I rowsort
SELECT + ( - + 84 ) * - - 90 AS col2
----
-7560

query I rowsort
SELECT + - 77 + - 60 - + + 87 AS col0
----
-224

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5287
SELECT - - CAST( - 26 AS SIGNED ) * + - 58 DIV - COUNT( * ), 2 - + 11 - - 90 col1
----
-1508
81

skipif mysql # not compatible
query II rowsort label-5287
SELECT - - CAST ( - 26 AS INTEGER ) * + - 58 / - COUNT ( * ), 2 - + 11 - - 90 col1
----
-1508
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT + 80 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT + 80 / - 90
----
0

query I rowsort
SELECT + + 2 + 4
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT + - COALESCE ( + 21, 70 + + + ( + COUNT( * ) ) ) * - 86 AS col2
----
1806

skipif mysql # not compatible
query I rowsort label-5290
SELECT + - COALESCE ( + 21, 70 + + + ( + COUNT ( * ) ) ) * - 86 AS col2
----
1806

onlyif mysql # aggregate syntax: 
query II rowsort label-5291
SELECT DISTINCT COUNT( * ), + 14 col0
----
1
14

skipif mysql # not compatible
query II rowsort label-5291
SELECT DISTINCT COUNT ( * ), + 14 col0
----
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + COUNT( * ) * + + 43 + - + COUNT( * ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COUNT ( * ) * + + 43 + - + COUNT ( * ) AS col0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT 58 + 58 DIV - 33 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT 58 + 58 / - 33 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - CASE + - COUNT( * ) WHEN 63 THEN NULL WHEN + 47 * + 30 + 32 THEN + + ( 5 ) END * + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5294
SELECT - CASE + - COUNT ( * ) WHEN 63 THEN NULL WHEN + 47 * + 30 + 32 THEN + + ( 5 ) END * + 32
----
NULL

query I rowsort
SELECT ALL 93 + 31 + - 45 * + 18 AS col1
----
-686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5296
SELECT + ( 76 ) AS col2, - ( 37 ) / - CAST( NULL AS SIGNED ) - + COUNT( * ) - + 70
----
76
NULL

skipif mysql # not compatible
query II rowsort label-5296
SELECT + ( 76 ) AS col2, - ( 37 ) / - CAST ( NULL AS INTEGER ) - + COUNT ( * ) - + 70
----
76
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5297
SELECT + NULLIF ( - 24, 94 * 30 - - - 0 ) + + CASE - - 72 WHEN - 8 + + 10 THEN NULL ELSE COUNT( * ) * + - SUM( + CAST( NULL AS SIGNED ) ) END + + 45 * + - 66 AS col0, - 42 * + + COUNT( ALL 74 )
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-5297
SELECT + NULLIF ( - 24, 94 * 30 - - - 0 ) + + CASE - - 72 WHEN - 8 + + 10 THEN NULL ELSE COUNT ( * ) * + - SUM ( + CAST ( NULL AS INTEGER ) ) END + + 45 * + - 66 AS col0, - 42 * + + COUNT ( ALL 74 )
----
NULL
-42

query I rowsort
SELECT - 21 * - 17 * - - 31 * 89 * - + 77
----
-75842151

query I rowsort
SELECT + ( + - 88 ) AS col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5300
SELECT CAST( + + 96 AS DECIMAL ) * - - CAST( NULL AS DECIMAL ) + - CAST( - COUNT( * ) AS SIGNED ) + - + ( 34 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5300
SELECT CAST ( + + 96 AS REAL ) * - - CAST ( NULL AS REAL ) + - CAST ( - COUNT ( * ) AS INTEGER ) + - + ( 34 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5301
SELECT ( - CASE + CAST( NULL AS SIGNED ) WHEN + 89 THEN + + 36 + - - 29 - - 79 DIV - COUNT( * ) * 55 ELSE + - 26 END ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5301
SELECT ( - CASE + CAST ( NULL AS INTEGER ) WHEN + 89 THEN + + 36 + - - 29 - - 79 / - COUNT ( * ) * 55 ELSE + - 26 END ) AS col1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT - 74 DIV + - 22
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT - 74 / + - 22
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5303
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + CASE - 49 WHEN COUNT( * ) THEN - 25 * + CAST( NULL AS SIGNED ) WHEN COALESCE ( + 88, - 63 * - - 13 + - 62 * + NULLIF ( + COUNT( * ), - 74 * + 93 ), - 34 * - COALESCE ( - 51, 1, - 84 + + 26 * - 51 * - 57 ) ) THEN CASE ( 82 ) WHEN + 88 * + 23 THEN + + 81 ELSE NULL END END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + CASE - 49 WHEN COUNT ( * ) THEN - 25 * + CAST ( NULL AS INTEGER ) WHEN COALESCE ( + 88, - 63 * - - 13 + - 62 * + NULLIF ( + COUNT ( * ), - 74 * + 93 ), - 34 * - COALESCE ( - 51, 1, - 84 + + 26 * - 51 * - 57 ) ) THEN CASE ( 82 ) WHEN + 88 * + 23 THEN + + 81 ELSE NULL END END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT 17 * - CASE + - 72 WHEN - CASE - 4 WHEN - 94 * + + 53 + 53 THEN + 88 WHEN + 40 THEN NULL ELSE ( 4 ) + COUNT( * ) + - 32 END * 59 * + COALESCE ( + 14, - 18 ) + - 47 THEN NULL WHEN 71 * ( - - 77 ) THEN - 34 ELSE NULL END + + + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT 17 * - CASE + - 72 WHEN - CASE - 4 WHEN - 94 * + + 53 + 53 THEN + 88 WHEN + 40 THEN NULL ELSE ( 4 ) + COUNT ( * ) + - 32 END * 59 * + COALESCE ( + 14, - 18 ) + - 47 THEN NULL WHEN 71 * ( - - 77 ) THEN - 34 ELSE NULL END + + + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL + SUM( + 10 ) col2
----
10

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + SUM ( + 10 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT ALL - 78 * + SUM( + ( 44 ) ) / CASE COUNT( * ) WHEN + 20 THEN - + 27 WHEN ( 44 ) * - 97 + - - 62 THEN + - 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - 78 * + SUM ( + ( 44 ) ) / CASE COUNT ( * ) WHEN + 20 THEN - + 27 WHEN ( 44 ) * - 97 + - - 62 THEN + - 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT DISTINCT + COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT + COUNT ( * ) * + 3
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + SUM( + - ( 73 ) ) AS col2
----
-73

skipif mysql # not compatible
query I rowsort label-5308
SELECT + SUM ( + - ( 73 ) ) AS col2
----
-73

query I rowsort
SELECT - 74 - + ( - ( + + 14 ) )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL NULLIF ( - - 87, + AVG ( - 90 ) * + 24 - COALESCE ( + CASE + + 0 WHEN 91 THEN 92 END, 85 + + COUNT( DISTINCT - 93 ) ) )
----
87

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL NULLIF ( - - 87, + AVG ( - 90 ) * + 24 - COALESCE ( + CASE + + 0 WHEN 91 THEN 92 END, 85 + + COUNT ( DISTINCT - 93 ) ) )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT ALL - MIN( DISTINCT + 5 )
----
-5

skipif mysql # not compatible
query I rowsort label-5311
SELECT ALL - MIN ( DISTINCT + 5 )
----
-5

query I rowsort
SELECT ALL 45 * + 5
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-5313
SELECT + COALESCE ( + 38, + - CASE + 92 WHEN + 46 THEN - - 69 * + - NULLIF ( + ( 37 ), 74 ) + - 4 ELSE NULL END * - 4 + + + AVG ( + - 68 ), - ( + 24 ) - + 5 ) DIV + 30
----
1

skipif mysql # not compatible
query I rowsort label-5313
SELECT + COALESCE ( + 38, + - CASE + 92 WHEN + 46 THEN - - 69 * + - NULLIF ( + ( 37 ), 74 ) + - 4 ELSE NULL END * - 4 + + + AVG ( + - 68 ), - ( + 24 ) - + 5 ) / + 30
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5314
SELECT - - 85 + - COALESCE ( 66, 29, - ( - 94 ) * 78 - 20 * + 25 + - + 21, + 61 ) DIV 27 * - 39 AS col2
----
163

skipif mysql # not compatible
query I rowsort label-5314
SELECT - - 85 + - COALESCE ( 66, 29, - ( - 94 ) * 78 - 20 * + 25 + - + 21, + 61 ) / 27 * - 39 AS col2
----
163

onlyif mysql # aggregate syntax: 
query II rowsort label-5315
SELECT - + NULLIF ( - 57, + 5 + - COUNT( * ) ) + + 49 AS col2, 84 AS col2
----
106
84

skipif mysql # not compatible
query II rowsort label-5315
SELECT - + NULLIF ( - 57, + 5 + - COUNT ( * ) ) + + 49 AS col2, 84 AS col2
----
106
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT + + 4 - - + COUNT( * ) + 61 * + + 82 AS col0
----
5007

skipif mysql # not compatible
query I rowsort label-5316
SELECT + + 4 - - + COUNT ( * ) + 61 * + + 82 AS col0
----
5007

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - CASE + - NULLIF ( - - 51, - COUNT( * ) ) WHEN 35 THEN NULL WHEN + 98 THEN - 24 END + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5317
SELECT - CASE + - NULLIF ( - - 51, - COUNT ( * ) ) WHEN 35 THEN NULL WHEN + 98 THEN - 24 END + + 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT DISTINCT COUNT( * ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-5318
SELECT DISTINCT COUNT ( * ) + - 9 AS col2
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5319
SELECT DISTINCT + 65 + + ( + 3 ) * CASE - COUNT( * ) WHEN 12 - 57 THEN NULL WHEN + CASE + CAST( 59 AS SIGNED ) WHEN CASE + COUNT( * ) WHEN + 36 + + 13 / 80 * + SUM( + + 45 ) THEN - 50 ELSE - + COUNT( - - 38 ) END + - 27 * - 95 THEN NULL ELSE - 3 / + + 61 END * ( - 88 ) THEN NULL WHEN - - CAST( + 32 AS SIGNED ) THEN + 66 + 28 ELSE - - MAX( - 34 ) + COALESCE ( - + 66, + - 83 + - - 6 ) END AS col0
----
-235

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT + 65 + + ( + 3 ) * CASE - COUNT ( * ) WHEN 12 - 57 THEN NULL WHEN + CASE + CAST ( 59 AS INTEGER ) WHEN CASE + COUNT ( * ) WHEN + 36 + + 13 / 80 * + SUM ( + + 45 ) THEN - 50 ELSE - + COUNT ( - - 38 ) END + - 27 * - 95 THEN NULL ELSE - 3 / + + 61 END * ( - 88 ) THEN NULL WHEN - - CAST ( + 32 AS INTEGER ) THEN + 66 + 28 ELSE - - MAX ( - 34 ) + COALESCE ( - + 66, + - 83 + - - 6 ) END AS col0
----
-235

query I rowsort
SELECT ALL 46 + 51
----
97

query I rowsort
SELECT + 52 + + ( 13 )
----
65

query I rowsort
SELECT ALL - 47 + + 59
----
12

query I rowsort
SELECT DISTINCT + 93 * + + 64 AS col0
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + NULLIF ( + 76, COUNT( ALL + 18 ) ) + - 64 col0
----
12

skipif mysql # not compatible
query I rowsort label-5324
SELECT + NULLIF ( + 76, COUNT ( ALL + 18 ) ) + - 64 col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT ALL COUNT( * ) + 94 + 16 AS col2
----
111

skipif mysql # not compatible
query I rowsort label-5325
SELECT ALL COUNT ( * ) + 94 + 16 AS col2
----
111

query I rowsort
SELECT DISTINCT 51 * + 53 AS col1
----
2703

query I rowsort
SELECT ALL 10 + + + 7
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT COUNT( - 96 ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-5328
SELECT COUNT ( - 96 ) * 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5329
SELECT - CAST( - 16 AS SIGNED ) * COUNT( * ) * + + 87 + - 73 AS col0, + 26
----
1319
26

skipif mysql # not compatible
query II rowsort label-5329
SELECT - CAST ( - 16 AS INTEGER ) * COUNT ( * ) * + + 87 + - 73 AS col0, + 26
----
1319
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT 21 DIV + - 25 + + 15
----
15

skipif mysql # not compatible
query I rowsort label-5330
SELECT 21 / + - 25 + + 15
----
15

query II rowsort
SELECT 66, 32 AS col1
----
66
32

query I rowsort
SELECT 33 + - - 77 AS col2
----
110

query I rowsort
SELECT DISTINCT 9 - - - 44 AS col0
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5334
SELECT DISTINCT + CAST( NULL AS SIGNED ) - ( 37 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5334
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - ( 37 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 96 * + 21 AS col0
----
-2016

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5336
SELECT ALL 43 * - 84 + 12 - + 95 + 91 / + 99 * + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) + + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 43 * - 84 + 12 - + 95 + 91 / + 99 * + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) + + 76
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT - CAST( - 68 AS SIGNED ) + - ( - 9 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-5337
SELECT - CAST ( - 68 AS INTEGER ) + - ( - 9 ) AS col0
----
77

query I rowsort
SELECT + - ( + 1 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT 1 * - CAST( + 87 AS SIGNED ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-5339
SELECT 1 * - CAST ( + 87 AS INTEGER ) AS col2
----
-87

query I rowsort
SELECT 24 + + 99 * - - 67 AS col0
----
6657

query I rowsort
SELECT DISTINCT - NULLIF ( + - 36, + 10 )
----
36

query I rowsort
SELECT - NULLIF ( - 64, - + 83 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL - + 67 + - CASE - + 39 WHEN 44 THEN NULL WHEN 48 - - - COALESCE ( + - MAX( ALL + 82 ), 36 ) * - 79 THEN NULL WHEN - 40 * + 23 THEN - 64 * - COUNT( * ) WHEN ( 81 ) - - 76 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL - + 67 + - CASE - + 39 WHEN 44 THEN NULL WHEN 48 - - - COALESCE ( + - MAX ( ALL + 82 ), 36 ) * - 79 THEN NULL WHEN - 40 * + 23 THEN - 64 * - COUNT ( * ) WHEN ( 81 ) - - 76 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + + NULLIF ( - + 35, - 2 ) + + 60
----
25

query I rowsort
SELECT + 42 + ( - 99 ) * - 20 * + + 38
----
75282

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT + 51 * SUM( ALL 97 ) AS col2
----
4947

skipif mysql # not compatible
query I rowsort label-5346
SELECT + 51 * SUM ( ALL 97 ) AS col2
----
4947

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL + COUNT( * ) + + COUNT( * ) + + + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + + + COUNT ( * )
----
3

query I rowsort
SELECT - + ( + 38 ) col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT - COUNT( * ) + + 63 * + 96 * + + 30
----
181439

skipif mysql # not compatible
query I rowsort label-5349
SELECT - COUNT ( * ) + + 63 * + 96 * + + 30
----
181439

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + 51 + + COUNT( * ) col2
----
52

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + 51 + + COUNT ( * ) col2
----
52

query II rowsort
SELECT - 0 AS col1, 68 * 95 * - 38 * + 1
----
0
-245480

onlyif mysql # aggregate syntax: 
query I rowsort label-5352
SELECT DISTINCT 57 * COUNT( * ) * - 31
----
-1767

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT 57 * COUNT ( * ) * - 31
----
-1767

query I rowsort
SELECT ALL - 16 - 76
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5354
SELECT - 66 AS col2, - COUNT( * ) AS col0
----
-66
-1

skipif mysql # not compatible
query II rowsort label-5354
SELECT - 66 AS col2, - COUNT ( * ) AS col0
----
-66
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5355
SELECT 94 * - + 11 AS col0, COUNT( * ) + 47 AS col1
----
-1034
48

skipif mysql # not compatible
query II rowsort label-5355
SELECT 94 * - + 11 AS col0, COUNT ( * ) + 47 AS col1
----
-1034
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT 4 - - COUNT( * ) * + + 79 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5356
SELECT 4 - - COUNT ( * ) * + + 79 AS col1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5357
SELECT ALL - 17 * ( + - NULLIF ( 48, + - 4 ) ) DIV - COUNT( * ) + 38 + - - COUNT( * ) + - - 61 DIV + + 60
----
-776

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL - 17 * ( + - NULLIF ( 48, + - 4 ) ) / - COUNT ( * ) + 38 + - - COUNT ( * ) + - - 61 / + + 60
----
-776

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5358
SELECT DISTINCT - 81 col2, + 24 * - SUM( DISTINCT + - 50 ) * - - 66 - + CAST( 2 AS SIGNED )
----
-81
79198

skipif mysql # not compatible
query II rowsort label-5358
SELECT DISTINCT - 81 col2, + 24 * - SUM ( DISTINCT + - 50 ) * - - 66 - + CAST ( 2 AS INTEGER )
----
-81
79198

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT DISTINCT + COUNT( * ) * - + COALESCE ( 91, + MIN( ALL + 46 ), 83 + COUNT( * ) ) AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5359
SELECT DISTINCT + COUNT ( * ) * - + COALESCE ( 91, + MIN ( ALL + 46 ), 83 + COUNT ( * ) ) AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5360
SELECT + CAST( - 37 AS SIGNED ) + + ( - 18 ) AS col2, 74
----
-55
74

skipif mysql # not compatible
query II rowsort label-5360
SELECT + CAST ( - 37 AS INTEGER ) + + ( - 18 ) AS col2, 74
----
-55
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + MIN( 64 ) * NULLIF ( - + 50, + 35 * - + 50 ) - - 91 + + 22
----
-3087

skipif mysql # not compatible
query I rowsort label-5361
SELECT + MIN ( 64 ) * NULLIF ( - + 50, + 35 * - + 50 ) - - 91 + + 22
----
-3087

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT + COUNT( 21 ) - 87 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5362
SELECT + COUNT ( 21 ) - 87 AS col2
----
-86

query I rowsort
SELECT 59 * 77
----
4543

query I rowsort
SELECT ALL - 84 * 95 + 1
----
-7979

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT - CASE + 52 WHEN 16 THEN + - 47 * - 94 + + 10 + + - COUNT( * ) * 76 * 75 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT - CASE + 52 WHEN 16 THEN + - 47 * - 94 + + 10 + + - COUNT ( * ) * 76 * 75 END AS col1
----
NULL

query II rowsort
SELECT + + 93 AS col0, - 96
----
93
-96

query I rowsort
SELECT 8 + 90 + + 37 * - + ( - 44 )
----
1726

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT COALESCE ( + 43, 19 + + 24 ) DIV + 51 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT COALESCE ( + 43, 19 + + 24 ) / + 51 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL + COUNT( * ) + 30 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL + COUNT ( * ) + 30 AS col1
----
31

query I rowsort
SELECT - COALESCE ( + 91, - + 71, ( + - 23 ) ) AS col2
----
-91

query I rowsort
SELECT - - 72 * - ( - 17 ) + + 26
----
1250

onlyif mysql # DIV for integer division: 
query II rowsort label-5372
SELECT 18 DIV 19 AS col2, + 66 AS col1
----
0
66

skipif mysql # not compatible
query II rowsort label-5372
SELECT 18 / 19 AS col2, + 66 AS col1
----
0
66

query I rowsort
SELECT - COALESCE ( + 3, - 29 ) * + ( - 97 ) AS col1
----
291

query II rowsort
SELECT ALL - - 79 AS col1, 40 + + 11
----
79
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5375
SELECT DISTINCT - 36 AS col2, 57 DIV - + 75 * - COUNT( * ), COUNT( * ) * - + 43 + + - 10 + + - ( + 56 ) * - 7 * 34 * - 20 * + 34 + - - 56 AS col2
----
-36
0
-9063037

skipif mysql # not compatible
query III rowsort label-5375
SELECT DISTINCT - 36 AS col2, 57 / - + 75 * - COUNT ( * ), COUNT ( * ) * - + 43 + + - 10 + + - ( + 56 ) * - 7 * 34 * - 20 * + 34 + - - 56 AS col2
----
-36
0
-9063037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5376
SELECT MIN( ALL + CAST( + - 93 AS SIGNED ) ) - - + 92 * COALESCE ( - 72, - 26 + 76 + + 74 - + COUNT( * ) )
----
-6717

skipif mysql # not compatible
query I rowsort label-5376
SELECT MIN ( ALL + CAST ( + - 93 AS INTEGER ) ) - - + 92 * COALESCE ( - 72, - 26 + 76 + + 74 - + COUNT ( * ) )
----
-6717

query I rowsort
SELECT ALL - 8 + 15 col0
----
7

query I rowsort
SELECT + 72 - - 0 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL - MAX( - 6 ) + - + 39 * - 3 - + 39 + + 31 * - + 57 * - 33 AS col2
----
58395

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - MAX ( - 6 ) + - + 39 * - 3 - + 39 + + 31 * - + 57 * - 33 AS col2
----
58395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5380
SELECT + 72 * + 19 + 56 + + - 22 DIV + MAX( + 68 )
----
1424

skipif mysql # not compatible
query I rowsort label-5380
SELECT + 72 * + 19 + 56 + + - 22 / + MAX ( + 68 )
----
1424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5381
SELECT ALL 34 + CASE + COUNT( * ) WHEN - 66 THEN + + 44 WHEN + 10 THEN + + COUNT( * ) * - NULLIF ( + 41, + - 50 ) + + + 27 ELSE + + CAST( NULL AS SIGNED ) END + + + COALESCE ( - - 32, + + 7 / + - 52 - MIN( - 97 ), - COUNT( * ) + + 75 / + 53 * + - 19 ) AS col1, - 76
----
NULL
-76

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL 34 + CASE + COUNT ( * ) WHEN - 66 THEN + + 44 WHEN + 10 THEN + + COUNT ( * ) * - NULLIF ( + 41, + - 50 ) + + + 27 ELSE + + CAST ( NULL AS INTEGER ) END + + + COALESCE ( - - 32, + + 7 / + - 52 - MIN ( - 97 ), - COUNT ( * ) + + 75 / + 53 * + - 19 ) AS col1, - 76
----
NULL
-76

query I rowsort
SELECT 5 - ( 39 )
----
-34

query I rowsort
SELECT - 98 - + 78
----
-176

query I rowsort
SELECT - 86 + - - 28 * - 40 AS col1
----
-1206

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT - 62 + - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-5385
SELECT - 62 + - + COUNT ( * )
----
-63

query I rowsort
SELECT ALL - 30 * + 55 * ( - + 65 ) AS col0
----
107250

onlyif mysql # aggregate syntax: 
query II rowsort label-5387
SELECT DISTINCT MIN( DISTINCT - 42 ) AS col1, 72 + + - 14 AS col2
----
-42
58

skipif mysql # not compatible
query II rowsort label-5387
SELECT DISTINCT MIN ( DISTINCT - 42 ) AS col1, 72 + + - 14 AS col2
----
-42
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5388
SELECT - 56 * COUNT( * ) AS col1, + ( - 30 ) + + + ( - + COALESCE ( + 25, 15 DIV - - 53 ) )
----
-56
-55

skipif mysql # not compatible
query II rowsort label-5388
SELECT - 56 * COUNT ( * ) AS col1, + ( - 30 ) + + + ( - + COALESCE ( + 25, 15 / - - 53 ) )
----
-56
-55

query II rowsort
SELECT - 91 * 63, 30 + + + 33 AS col2
----
-5733
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5390
SELECT ALL - 85 DIV + 14
----
-6

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - 85 / + 14
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-5391
SELECT - 20 * 44 DIV + 75 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5391
SELECT - 20 * 44 / + 75 AS col0
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5392
SELECT - + 48 * 28 DIV 35 + NULLIF ( - COUNT( * ), + 35 ) * - - MIN( + ( - 98 ) )
----
60

skipif mysql # not compatible
query I rowsort label-5392
SELECT - + 48 * 28 / 35 + NULLIF ( - COUNT ( * ), + 35 ) * - - MIN ( + ( - 98 ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT - - 99 * - SUM( ALL + 89 ) AS col2
----
-8811

skipif mysql # not compatible
query I rowsort label-5393
SELECT - - 99 * - SUM ( ALL + 89 ) AS col2
----
-8811

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT + 0 DIV - 90 + + - 48 + 91 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-5394
SELECT + 0 / - 90 + + - 48 + 91 AS col2
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT + + 19 DIV + 3
----
6

skipif mysql # not compatible
query I rowsort label-5395
SELECT + + 19 / + 3
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL + 76 * 32 / CASE MAX( + + 68 ) WHEN - COUNT( * ) THEN + 46 WHEN 66 THEN NULL END + + 59 + 60 * + 26 + - 99 + + - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + 76 * 32 / CASE MAX ( + + 68 ) WHEN - COUNT ( * ) THEN + 46 WHEN 66 THEN NULL END + + 59 + 60 * + 26 + - 99 + + - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT DISTINCT - 26 * COUNT( ALL + - 7 ) + - 30 AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5397
SELECT DISTINCT - 26 * COUNT ( ALL + - 7 ) + - 30 AS col2
----
-56

query I rowsort
SELECT DISTINCT + 90 * - + 51 + 48 + + + 53
----
-4489

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5399
SELECT DISTINCT + 61 * - CASE + 30 WHEN 92 THEN - - 38 WHEN + COALESCE ( - - 6, ( 89 ) * + 30 + 9, - 36 * + 80, + 5 + - MIN( + 43 ) ) THEN NULL ELSE - - 15 END + - + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT + 61 * - CASE + 30 WHEN 92 THEN - - 38 WHEN + COALESCE ( - - 6, ( 89 ) * + 30 + 9, - 36 * + 80, + 5 + - MIN ( + 43 ) ) THEN NULL ELSE - - 15 END + - + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5400
SELECT - COUNT( * ) + - - COUNT( * ) * + 21 AS col1, + 81 + - COUNT( * ) - - 91
----
20
171

skipif mysql # not compatible
query II rowsort label-5400
SELECT - COUNT ( * ) + - - COUNT ( * ) * + 21 AS col1, + 81 + - COUNT ( * ) - - 91
----
20
171

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - - 82 * + + 96 - - COUNT( * )
----
7873

skipif mysql # not compatible
query I rowsort label-5401
SELECT - - 82 * + + 96 - - COUNT ( * )
----
7873

query I rowsort
SELECT + - 92 + - 82 * - + 95
----
7698

query I rowsort
SELECT + 94 * 64 * 49 AS col2
----
294784

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + + 31 + COALESCE ( - ( - 22 ), - + COUNT( * ) * + - 51 - - 97 )
----
53

skipif mysql # not compatible
query I rowsort label-5404
SELECT + + 31 + COALESCE ( - ( - 22 ), - + COUNT ( * ) * + - 51 - - 97 )
----
53

query I rowsort
SELECT + + 73 - - + 81 AS col1
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT + COUNT( * ) * - 23
----
-23

skipif mysql # not compatible
query I rowsort label-5406
SELECT + COUNT ( * ) * - 23
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT MIN( ALL - 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-5407
SELECT MIN ( ALL - 39 ) AS col2
----
-39

query II rowsort
SELECT 52 * 25 + - 39 + 80, - 78 AS col1
----
1341
-78

query II rowsort
SELECT ALL 98, 38 col0
----
98
38

query I rowsort
SELECT - CASE WHEN NOT ( 78 ) IS NULL THEN 35 * - 31 * + 78 END
----
84630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT + 99 + CAST( - + CAST( + 32 AS SIGNED ) AS SIGNED ) * + + 38 AS col2
----
-1117

skipif mysql # not compatible
query I rowsort label-5411
SELECT + 99 + CAST ( - + CAST ( + 32 AS INTEGER ) AS INTEGER ) * + + 38 AS col2
----
-1117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5412
SELECT + CASE - - 30 WHEN 43 * - 68 * 54 THEN NULL WHEN - AVG ( + NULLIF ( - 63, - - CASE + 12 WHEN - + CAST( - + 80 AS SIGNED ) THEN - 70 ELSE 97 END * 49 + + 93 + + 34 / 9 + + 1 - - 84 * + 25 * - - 92 ) ) THEN + 30 - + + 73 ELSE NULL END * + ( + 54 ) / + 70
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT + CASE - - 30 WHEN 43 * - 68 * 54 THEN NULL WHEN - AVG ( + NULLIF ( - 63, - - CASE + 12 WHEN - + CAST ( - + 80 AS INTEGER ) THEN - 70 ELSE 97 END * 49 + + 93 + + 34 / 9 + + 1 - - 84 * + 25 * - - 92 ) ) THEN + 30 - + + 73 ELSE NULL END * + ( + 54 ) / + 70
----
NULL

query I rowsort
SELECT - 75 + + 33 AS col2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL MIN( DISTINCT 40 )
----
40

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL MIN ( DISTINCT 40 )
----
40

query II rowsort
SELECT 77, 85 - - + 54 AS col0
----
77
139

query I rowsort
SELECT ALL 51 * + 36 AS col1
----
1836

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT DISTINCT + 71 DIV - 94
----
0

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT + 71 / - 94
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5418
SELECT DISTINCT COUNT( * ) AS col0, + SUM( - - 34 )
----
1
34

skipif mysql # not compatible
query II rowsort label-5418
SELECT DISTINCT COUNT ( * ) AS col0, + SUM ( - - 34 )
----
1
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT DISTINCT SUM( DISTINCT + - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT SUM ( DISTINCT + - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-5420
SELECT - 74, + ( COUNT( ALL + 79 ) ) AS col0
----
-74
1

skipif mysql # not compatible
query II rowsort label-5420
SELECT - 74, + ( COUNT ( ALL + 79 ) ) AS col0
----
-74
1

query I rowsort
SELECT + 3 - - - 12
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL 73 * - - COUNT( * ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL 73 * - - COUNT ( * ) AS col2
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5423
SELECT - 3 + + NULLIF ( - COUNT( * ), + CAST( NULL AS SIGNED ) - CAST( + 3 AS SIGNED ) - - 22 - + + SUM( 3 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-5423
SELECT - 3 + + NULLIF ( - COUNT ( * ), + CAST ( NULL AS INTEGER ) - CAST ( + 3 AS INTEGER ) - - 22 - + + SUM ( 3 ) )
----
-4

query I rowsort
SELECT DISTINCT - 81 + - + 97 AS col0
----
-178

query I rowsort
SELECT ALL + ( + + 36 ) + - 32 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL + SUM( - + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL + SUM ( - + 84 )
----
-84

query I rowsort
SELECT ALL + 90 + - 92 * + 8 * + 62
----
-45542

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT - + 78 - - - COUNT( * ) * - - 47 + - 46 + 5 * - - COUNT( * ) * 7
----
-136

skipif mysql # not compatible
query I rowsort label-5428
SELECT - + 78 - - - COUNT ( * ) * - - 47 + - 46 + 5 * - - COUNT ( * ) * 7
----
-136

onlyif mysql # DIV for integer division: 
query I rowsort label-5429
SELECT - 24 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 24 / - 82
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5430
SELECT DISTINCT + + 91 DIV COALESCE ( + 76, + ( + + CAST( NULL AS SIGNED ) ) ) * - COUNT( * ) + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT + + 91 / COALESCE ( + 76, + ( + + CAST ( NULL AS INTEGER ) ) ) * - COUNT ( * ) + + COUNT ( * ) AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5431
SELECT ALL - + 25 DIV 94 + - + 14 + + + 28
----
14

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - + 25 / 94 + - + 14 + + + 28
----
14

query I rowsort
SELECT DISTINCT + ( + CASE + 50 WHEN + 28 THEN - - 21 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5433
SELECT - CAST( NULL AS SIGNED ) * - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5433
SELECT - CAST ( NULL AS INTEGER ) * - + 43
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT ALL - 93 DIV 28 + + 79
----
76

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL - 93 / 28 + + 79
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5435
SELECT + - 1 / CASE 87 WHEN - - 75 * - + COUNT( * ) THEN + NULLIF ( - COUNT( * ), - - CAST( + ( - - 97 ) AS SIGNED ) ) + 76 ELSE NULL END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT + - 1 / CASE 87 WHEN - - 75 * - + COUNT ( * ) THEN + NULLIF ( - COUNT ( * ), - - CAST ( + ( - - 97 ) AS INTEGER ) ) + 76 ELSE NULL END + - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 95 + - - 71 + + 82 * + 50 * - 73
----
-299324

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + - SUM( - 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5437
SELECT + - SUM ( - 37 ) AS col2
----
37

query I rowsort
SELECT - - 63 - + 6 * - 23 * - 22 AS col2
----
-2973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5439
SELECT + CASE 42 WHEN + + 75 * - 9 * 24 * - CAST( 24 AS SIGNED ) + + 10 - - 77 * - + 66 THEN 89 + 43 + - ( 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5439
SELECT + CASE 42 WHEN + + 75 * - 9 * 24 * - CAST ( 24 AS INTEGER ) + + 10 - - 77 * - + 66 THEN 89 + 43 + - ( 83 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5440
SELECT + - CAST( NULL AS SIGNED ) AS col2, SUM( ALL 28 ) AS col1
----
NULL
28

skipif mysql # not compatible
query II rowsort label-5440
SELECT + - CAST ( NULL AS INTEGER ) AS col2, SUM ( ALL 28 ) AS col1
----
NULL
28

query II rowsort
SELECT ALL + + 1 col2, 88 AS col0
----
1
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT - - COUNT( * ) + + CAST( 52 AS SIGNED ) col0
----
53

skipif mysql # not compatible
query I rowsort label-5442
SELECT - - COUNT ( * ) + + CAST ( 52 AS INTEGER ) col0
----
53

query II rowsort
SELECT + + 25 col1, ( - 43 ) * 47
----
25
-2021

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT ALL - 70 DIV + - 1 + COUNT( * ) + + + ( 5 ) - - - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL - 70 / + - 1 + COUNT ( * ) + + + ( 5 ) - - - 76 AS col1
----
0

query I rowsort
SELECT 72 * - - ( + 73 )
----
5256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT 8 * + 98 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT 8 * + 98 * + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 95 - - 34, - 83 AS col0
----
129
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT 4 + + - COUNT( * ) - - 96 + 36 * 37 * 81 AS col1
----
107991

skipif mysql # not compatible
query I rowsort label-5448
SELECT 4 + + - COUNT ( * ) - - 96 + 36 * 37 * 81 AS col1
----
107991

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT COUNT( + 62 ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT COUNT ( + 62 ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5450
SELECT 94 * - 4 + + COUNT( * ) + + 27, 40 AS col1
----
-348
40

skipif mysql # not compatible
query II rowsort label-5450
SELECT 94 * - 4 + + COUNT ( * ) + + 27, 40 AS col1
----
-348
40

onlyif mysql # DIV for integer division: 
query II rowsort label-5451
SELECT ALL + 3 DIV 22, 50 AS col0
----
0
50

skipif mysql # not compatible
query II rowsort label-5451
SELECT ALL + 3 / 22, 50 AS col0
----
0
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT ALL ( + 12 ) * - - 2 DIV + 36 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5452
SELECT ALL ( + 12 ) * - - 2 / + 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT COALESCE ( + 86, - 32 + 85, - + ( + 2 ) + - + CASE 41 WHEN + + COUNT( ALL + - 48 ) THEN 6 + 84 END * + ( + 13 ) * 5 ) * 32 AS col2
----
2752

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT COALESCE ( + 86, - 32 + 85, - + ( + 2 ) + - + CASE 41 WHEN + + COUNT ( ALL + - 48 ) THEN 6 + 84 END * + ( + 13 ) * 5 ) * 32 AS col2
----
2752

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT 4 + + - MIN( + - 82 ) + - ( - + COUNT( * ) ) * + - 87 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5454
SELECT 4 + + - MIN ( + - 82 ) + - ( - + COUNT ( * ) ) * + - 87 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL ( + - 20 ) * - + COUNT( * ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL ( + - 20 ) * - + COUNT ( * ) AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5456
SELECT COUNT( * ) + - + 1 AS col2, - 11 + + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5456
SELECT COUNT ( * ) + - + 1 AS col2, - 11 + + CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ( - + 57 ) - - COUNT( * ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5457
SELECT ( - + 57 ) - - COUNT ( * ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT SUM( + 99 ) + + ( - 72 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-5458
SELECT SUM ( + 99 ) + + ( - 72 ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5459
SELECT ALL COUNT( DISTINCT - - 76 ) + + 51 + + - 70 AS col1, - CAST( NULL AS SIGNED ) * + CASE + - 29 WHEN - - 16 THEN + 92 END AS col1
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-5459
SELECT ALL COUNT ( DISTINCT - - 76 ) + + 51 + + - 70 AS col1, - CAST ( NULL AS INTEGER ) * + CASE + - 29 WHEN - - 16 THEN + 92 END AS col1
----
-18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT 29 + + 76 - + 14 * + + 24 * COUNT( * ) AS col0
----
-231

skipif mysql # not compatible
query I rowsort label-5460
SELECT 29 + + 76 - + 14 * + + 24 * COUNT ( * ) AS col0
----
-231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5461
SELECT DISTINCT 96 + - MIN( DISTINCT - 97 ) + + 70 + - + 38 DIV 71 AS col2
----
263

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT 96 + - MIN ( DISTINCT - 97 ) + + 70 + - + 38 / 71 AS col2
----
263

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5462
SELECT ALL COUNT( * ) DIV - + CAST( + 97 AS SIGNED ) + + + 48 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL COUNT ( * ) / - + CAST ( + 97 AS INTEGER ) + + + 48 / 95 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT ALL NULLIF ( + SUM( ( 46 ) ), CAST( NULL AS SIGNED ) * + + 92 ) + - 69 + + ( - + 78 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL NULLIF ( + SUM ( ( 46 ) ), CAST ( NULL AS INTEGER ) * + + 92 ) + - 69 + + ( - + 78 ) AS col0
----
-101

query I rowsort
SELECT ALL ( + 66 ) + + - 22 * - 98 AS col2
----
2222

query I rowsort
SELECT - 27 + + 78 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL + - COUNT( * ) + - - ( 33 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + - COUNT ( * ) + - - ( 33 ) AS col0
----
32

query I rowsort
SELECT 93 * + + 42
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT + 49 + + COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5468
SELECT + 49 + + COUNT ( * ) AS col0
----
50

query I rowsort
SELECT - NULLIF ( + 66, 50 ) * - 50 + - 60 + + - 83 + - 95 AS col0
----
3062

onlyif mysql # aggregate syntax: 
query II rowsort label-5470
SELECT + 76 + 27 AS col0, + CASE - 99 WHEN + ( 97 ) THEN NULL WHEN AVG ( DISTINCT + 95 ) + - 26 THEN + 36 WHEN - COUNT( * ) - + 74 * - 5 THEN NULL END - 4
----
103
NULL

skipif mysql # not compatible
query II rowsort label-5470
SELECT + 76 + 27 AS col0, + CASE - 99 WHEN + ( 97 ) THEN NULL WHEN AVG ( DISTINCT + 95 ) + - 26 THEN + 36 WHEN - COUNT ( * ) - + 74 * - 5 THEN NULL END - 4
----
103
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT ALL + COUNT( * ) - 66, 41 AS col0
----
-65
41

skipif mysql # not compatible
query II rowsort label-5471
SELECT ALL + COUNT ( * ) - 66, 41 AS col0
----
-65
41

query II rowsort
SELECT DISTINCT - ( - 74 ), 30 * + 94 * + + 19 AS col2
----
74
53580

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT COUNT( * ) * 99 + + 51 + - 41 * + 9 AS col0
----
-219

skipif mysql # not compatible
query I rowsort label-5473
SELECT COUNT ( * ) * 99 + + 51 + - 41 * + 9 AS col0
----
-219

onlyif mysql # aggregate syntax: 
query II rowsort label-5474
SELECT ALL COUNT( * ) - + COUNT( * ) AS col2, + NULLIF ( + - COUNT( * ), + 87 ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-5474
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col2, + NULLIF ( + - COUNT ( * ), + 87 ) AS col1
----
0
-1

query I rowsort
SELECT + - ( - 34 ) * + - 5 + CASE WHEN 33 NOT BETWEEN NULL AND - NULLIF ( COALESCE ( - COALESCE ( - 30, 86 ), - - 63, - 16 * + 46 ), 19 ) THEN - 47 END * - 98 - + + ( + - 3 ) - 58 AS col2
----
4381

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT + 18 * - - COUNT( * ) * + 9 + - 64
----
98

skipif mysql # not compatible
query I rowsort label-5476
SELECT + 18 * - - COUNT ( * ) * + 9 + - 64
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT COUNT( * ) + 86 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5477
SELECT COUNT ( * ) + 86 AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5478
SELECT DISTINCT + 89 DIV 87 * + + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5478
SELECT DISTINCT + 89 / 87 * + + COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 61 * 90 + + 48 + + 2
----
5540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5480
SELECT CAST( 20 AS SIGNED ) * - - COALESCE ( + ( + - 9 ), - - 91 + + 41 * - 38 ) + - + COUNT( * ) - - 93 AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5480
SELECT CAST ( 20 AS INTEGER ) * - - COALESCE ( + ( + - 9 ), - - 91 + + 41 * - 38 ) + - + COUNT ( * ) - - 93 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT 98 DIV 58 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5481
SELECT 98 / 58 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5482
SELECT ALL + 98 DIV - COALESCE ( - + 25, + COUNT( DISTINCT - - 29 ) * 79 * - 93 * + 19 - 35 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL + 98 / - COALESCE ( - + 25, + COUNT ( DISTINCT - - 29 ) * 79 * - 93 * + 19 - 35 ) AS col1
----
3

query I rowsort
SELECT 4 + 28
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT ALL + 89 DIV - 39 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL + 89 / - 39 AS col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-5485
SELECT ALL + 98 * COUNT( * ) * 44 col1, - COALESCE ( 94, 55, - 41 + - 78 ) AS col0
----
4312
-94

skipif mysql # not compatible
query II rowsort label-5485
SELECT ALL + 98 * COUNT ( * ) * 44 col1, - COALESCE ( 94, 55, - 41 + - 78 ) AS col0
----
4312
-94

query I rowsort
SELECT ALL - 71 * + 20 AS col0
----
-1420

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL 27 + - SUM( ALL + 74 )
----
-47

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL 27 + - SUM ( ALL + 74 )
----
-47

query I rowsort
SELECT 30 + + ( - - 88 ) + 84 * - 66
----
-5426

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - 2 * COUNT( * ) * - - COUNT( * ) + - + 51 + - 79 * - 49 * + 26 AS col2
----
100593

skipif mysql # not compatible
query I rowsort label-5489
SELECT - 2 * COUNT ( * ) * - - COUNT ( * ) + - + 51 + - 79 * - 49 * + 26 AS col2
----
100593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5490
SELECT 49 + - 87 - - + CAST( - + 97 AS SIGNED ) * ( 95 ) + 87
----
-9166

skipif mysql # not compatible
query I rowsort label-5490
SELECT 49 + - 87 - - + CAST ( - + 97 AS INTEGER ) * ( 95 ) + 87
----
-9166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT ALL - CAST( NULL AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - CAST ( NULL AS INTEGER ) + + 6
----
NULL

query II rowsort
SELECT - 21, - 63 * 38 col0
----
-21
-2394

onlyif mysql # aggregate syntax: 
query I rowsort label-5493
SELECT DISTINCT + ( - - 64 ) + + 82 + + COUNT( * )
----
147

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT + ( - - 64 ) + + 82 + + COUNT ( * )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL - COUNT( * ) + + - 7
----
-8

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL - COUNT ( * ) + + - 7
----
-8

query I rowsort
SELECT ALL 20 * + 25
----
500

query I rowsort
SELECT ALL 14 + + 60 * 16 AS col2
----
974

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL 84 * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL 84 * COUNT ( * ) AS col2
----
84

query I rowsort
SELECT 48 + - 27
----
21

query I rowsort
SELECT ALL 78 - 15 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT 63 - - COUNT( * ) * 76
----
139

skipif mysql # not compatible
query I rowsort label-5500
SELECT 63 - - COUNT ( * ) * 76
----
139

query I rowsort
SELECT ALL + 74 * 74 AS col1
----
5476

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT + SUM( DISTINCT + 23 )
----
23

skipif mysql # not compatible
query I rowsort label-5502
SELECT + SUM ( DISTINCT + 23 )
----
23

query I rowsort
SELECT 38 * - 86 - 81 AS col1
----
-3349

query I rowsort
SELECT ALL 62 * 80 - 82
----
4878

query I rowsort
SELECT 89 * 35
----
3115

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT ALL 36 DIV + 6 col2
----
6

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL 36 / + 6 col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT + 81 DIV - 17 + + 33 AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5507
SELECT + 81 / - 17 + + 33 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT + SUM( + 93 ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-5508
SELECT + SUM ( + 93 ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT + 76 + - 14 * - MIN( DISTINCT ( - 40 ) ) AS col2
----
-484

skipif mysql # not compatible
query I rowsort label-5509
SELECT + 76 + - 14 * - MIN ( DISTINCT ( - 40 ) ) AS col2
----
-484

query I rowsort
SELECT 2 / - 19 - CASE 75 + - 2 WHEN 51 THEN 17 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT CASE 18 WHEN 62 THEN NULL WHEN 68 * CAST( 89 * - 86 AS SIGNED ) + - 10 THEN NULL ELSE - 34 END AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-5511
SELECT CASE 18 WHEN 62 THEN NULL WHEN 68 * CAST ( 89 * - 86 AS INTEGER ) + - 10 THEN NULL ELSE - 34 END AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - 58 - - COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-5512
SELECT - 58 - - COUNT ( * )
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT + CAST( 82 AS SIGNED ) * 96
----
7872

skipif mysql # not compatible
query I rowsort label-5513
SELECT + CAST ( 82 AS INTEGER ) * 96
----
7872

query I rowsort
SELECT - 76 * 77 AS col1
----
-5852

query I rowsort
SELECT + COALESCE ( 4, 48 - 13 ) AS col2
----
4

query I rowsort
SELECT DISTINCT 17 * - 58 + - 97
----
-1083

query I rowsort
SELECT + 22 + 84
----
106

query I rowsort
SELECT DISTINCT 63 * - 31
----
-1953

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - COUNT( * ) * COUNT( * ) + - 4
----
-5

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - 4
----
-5

query I rowsort
SELECT + COALESCE ( 67, 14 )
----
67

query I rowsort
SELECT 31 * 18 + - 54
----
504

query I rowsort
SELECT - 10 * - ( 64 )
----
640

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - 88 * COALESCE ( 50, 85, COUNT( * ) ) + SUM( + 88 ) AS col2
----
-4312

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - 88 * COALESCE ( 50, 85, COUNT ( * ) ) + SUM ( + 88 ) AS col2
----
-4312

query I rowsort
SELECT + 80 + 32
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT - 62 DIV - COALESCE ( - 81, 52, + 7 + 61, 39 + - 33 )
----
0

skipif mysql # not compatible
query I rowsort label-5525
SELECT - 62 / - COALESCE ( - 81, 52, + 7 + 61, 39 + - 33 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT COUNT( * ) + + 79 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT COUNT ( * ) + + 79 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5527
SELECT DISTINCT - 22 * - NULLIF ( - CAST( - 28 AS SIGNED ), + COUNT( * ) + - 86 * 90 ) AS col0
----
616

skipif mysql # not compatible
query I rowsort label-5527
SELECT DISTINCT - 22 * - NULLIF ( - CAST ( - 28 AS INTEGER ), + COUNT ( * ) + - 86 * 90 ) AS col0
----
616

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL CASE WHEN ( 37 ) >= ( - 49 * + 44 ) THEN - COALESCE ( - CASE MIN( DISTINCT 82 ) WHEN + 52 THEN + 38 + - 38 WHEN COALESCE ( 92, - 50 ) / COUNT( * ) THEN + COALESCE ( 3, - 46, + 45 * - 67 ) ELSE - 66 * + 19 END, 15 ) END + - 54
----
-1308

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL CASE WHEN ( 37 ) >= ( - 49 * + 44 ) THEN - COALESCE ( - CASE MIN ( DISTINCT 82 ) WHEN + 52 THEN + 38 + - 38 WHEN COALESCE ( 92, - 50 ) / COUNT ( * ) THEN + COALESCE ( 3, - 46, + 45 * - 67 ) ELSE - 66 * + 19 END, 15 ) END + - 54
----
-1308

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT ALL - 41 DIV + 2 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - 41 / + 2 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT 68 * - MIN( ALL 40 ) + 24
----
-2696

skipif mysql # not compatible
query I rowsort label-5530
SELECT 68 * - MIN ( ALL 40 ) + 24
----
-2696

query I rowsort
SELECT ALL - 95 + 33 AS col0
----
-62

query I rowsort
SELECT ALL + 68 * + 11 AS col1
----
748

query I rowsort
SELECT - 14 + + 45 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - COALESCE ( 77, 38, 19 ) * - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-5534
SELECT - COALESCE ( 77, 38, 19 ) * - COUNT ( * )
----
77

query I rowsort
SELECT - 48 + + 72 AS col0
----
24

query I rowsort
SELECT - 18 - ( 10 ) AS col2
----
-28

query I rowsort
SELECT + 31 + ( 97 )
----
128

query I rowsort
SELECT ALL + + 53 - - 78
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5539
SELECT - - 39 * COALESCE ( CAST( 16 AS SIGNED ) * + 60, 29 + - COUNT( * ) * 99, 92 DIV ( AVG ( ALL + 97 ) DIV + 38 ) )
----
37440

skipif mysql # not compatible
query I rowsort label-5539
SELECT - - 39 * COALESCE ( CAST ( 16 AS INTEGER ) * + 60, 29 + - COUNT ( * ) * 99, 92 / ( AVG ( ALL + 97 ) / + 38 ) )
----
37440

query I rowsort
SELECT DISTINCT - + 11 - + 0
----
-11

query I rowsort
SELECT - - 90 + 22 * 57 AS col0
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL - SUM( 89 ) - 53 AS col2
----
-142

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - SUM ( 89 ) - 53 AS col2
----
-142

query I rowsort
SELECT - 7 * - 29
----
203

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT - COALESCE ( MAX( DISTINCT 25 ), - 40, 35 * 48 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - COALESCE ( MAX ( DISTINCT 25 ), - 40, 35 * 48 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + - 40 + - 71 * CASE - COUNT( * ) WHEN + 33 * 71 THEN NULL WHEN + ( + COUNT( * ) ) THEN NULL WHEN COUNT( * ) THEN - 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT + - 40 + - 71 * CASE - COUNT ( * ) WHEN + 33 * 71 THEN NULL WHEN + ( + COUNT ( * ) ) THEN NULL WHEN COUNT ( * ) THEN - 87 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5546
SELECT ALL - COUNT( * ) DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-5546
SELECT ALL - COUNT ( * ) / - 24
----
0

query I rowsort
SELECT DISTINCT + 1 * NULLIF ( + 89, + CASE 77 WHEN 31 / 9 THEN NULL WHEN - 49 THEN 47 END * 68 ) AS col2
----
89

query I rowsort
SELECT - 91 * - 77
----
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-5549
SELECT - + 63 DIV + 15
----
-4

skipif mysql # not compatible
query I rowsort label-5549
SELECT - + 63 / + 15
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5550
SELECT + + SUM( 45 ) DIV 90
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT + + SUM ( 45 ) / 90
----
0

query I rowsort
SELECT DISTINCT - ( 82 ) * 95
----
-7790

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL + + 84 DIV ( + 51 DIV 75 + + 13 ) + + 24 DIV - ( 19 * 43 )
----
6

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + + 84 / ( + 51 / 75 + + 13 ) + + 24 / - ( 19 * 43 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5553
SELECT + COUNT( * ) + + 17 * + CASE WHEN NOT - 47 NOT BETWEEN NULL AND + COUNT( * ) THEN SUM( ALL 60 ) WHEN NOT + 10 * + 14 < + COUNT( * ) - 11 THEN NULL WHEN NOT - CAST( NULL AS DECIMAL ) NOT BETWEEN 25 * + 77 + 69 AND SUM( + 38 ) * COUNT( * ) THEN 86 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5553
SELECT + COUNT ( * ) + + 17 * + CASE WHEN NOT - 47 NOT BETWEEN NULL AND + COUNT ( * ) THEN SUM ( ALL 60 ) WHEN NOT + 10 * + 14 < + COUNT ( * ) - 11 THEN NULL WHEN NOT - CAST ( NULL AS REAL ) NOT BETWEEN 25 * + 77 + 69 AND SUM ( + 38 ) * COUNT ( * ) THEN 86 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT 13 DIV - + 82 + ( + 81 ) * 48
----
3888

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT 13 / - + 82 + ( + 81 ) * 48
----
3888

query I rowsort
SELECT + ( + COALESCE ( - 29, - 99 ) ) AS col2
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT ALL - 60 DIV + 31 + - 98 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5556
SELECT ALL - 60 / + 31 + - 98 AS col2
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL + MAX( + + 16 ) * CASE ( 43 ) WHEN - 47 + - CASE + ( + 31 ) WHEN 68 + ( - 4 + ( - ( 88 ) ) ) THEN - 58 + + COUNT( DISTINCT - 36 ) / + 78 END THEN - CAST( 85 AS SIGNED ) + - 34 * 67 WHEN 13 THEN NULL END + 17 * MAX( 66 - + 56 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + MAX ( + + 16 ) * CASE ( 43 ) WHEN - 47 + - CASE + ( + 31 ) WHEN 68 + ( - 4 + ( - ( 88 ) ) ) THEN - 58 + + COUNT ( DISTINCT - 36 ) / + 78 END THEN - CAST ( 85 AS INTEGER ) + - 34 * 67 WHEN 13 THEN NULL END + 17 * MAX ( 66 - + 56 ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT CAST( NULL AS SIGNED ) * + 84 - COUNT( * ) / 62
----
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT CAST ( NULL AS INTEGER ) * + 84 - COUNT ( * ) / 62
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT ( CASE - MIN( DISTINCT + ( 14 ) ) WHEN - 20 * 98 + 45 THEN 51 * 36 WHEN - 43 / - COUNT( * ) THEN + 84 * ( 51 ) + + 93 WHEN + 53 + - 74 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5559
SELECT ( CASE - MIN ( DISTINCT + ( 14 ) ) WHEN - 20 * 98 + 45 THEN 51 * 36 WHEN - 43 / - COUNT ( * ) THEN + 84 * ( 51 ) + + 93 WHEN + 53 + - 74 THEN NULL ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT DISTINCT + 27 * - 58 * COUNT( * ) + 60 * + 21
----
-306

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + 27 * - 58 * COUNT ( * ) + 60 * + 21
----
-306

query I rowsort
SELECT 44 * 33 - - ( + 11 ) AS col0
----
1463

query I rowsort
SELECT + NULLIF ( 41, 21 / 54 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT + 86 + + 92 - 76 * 30 * COUNT( * )
----
-2102

skipif mysql # not compatible
query I rowsort label-5563
SELECT + 86 + + 92 - 76 * 30 * COUNT ( * )
----
-2102

query I rowsort
SELECT DISTINCT 10 * - - 42
----
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT DISTINCT - MIN( + 60 ) * 7 + 50 * - 97 AS col2
----
-5270

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT - MIN ( + 60 ) * 7 + 50 * - 97 AS col2
----
-5270

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT CASE 90 WHEN - COUNT( * ) + - 6 THEN + ( 86 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5566
SELECT CASE 90 WHEN - COUNT ( * ) + - 6 THEN + ( 86 ) END
----
NULL

query I rowsort
SELECT ALL 44 * 36 AS col0
----
1584

query I rowsort
SELECT DISTINCT 74 * - - 72
----
5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5569
SELECT ALL 30 * - CAST( + MIN( 39 ) AS SIGNED ) - NULLIF ( - NULLIF ( - 56, - 89 + - COUNT( * ) * 77 ) + - 81, 80 ) AS col0
----
-1145

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL 30 * - CAST ( + MIN ( 39 ) AS INTEGER ) - NULLIF ( - NULLIF ( - 56, - 89 + - COUNT ( * ) * 77 ) + - 81, 80 ) AS col0
----
-1145

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT + 14 DIV 6 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5570
SELECT + 14 / 6 AS col1
----
2

query I rowsort
SELECT 64 * + NULLIF ( - 43, + 22 ) + 72
----
-2680

query I rowsort
SELECT COALESCE ( 74, - 56 + + 22, 74 + 56 ) AS col2
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT - ( + ( ( - 89 ) ) ) + - ( NULLIF ( SUM( - 10 ), + COUNT( * ) / 94 ) + 84 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5573
SELECT - ( + ( ( - 89 ) ) ) + - ( NULLIF ( SUM ( - 10 ), + COUNT ( * ) / 94 ) + 84 ) AS col0
----
15

query I rowsort
SELECT - - 79 + + 64
----
143

query I rowsort
SELECT ALL - - 38 * + - 34
----
-1292

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT - SUM( ALL 61 ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-5576
SELECT - SUM ( ALL 61 ) AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT DISTINCT MAX( DISTINCT + + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT MAX ( DISTINCT + + 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5578
SELECT ALL - 33 * + CAST( NULL AS SIGNED ) + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL - 33 * + CAST ( NULL AS INTEGER ) + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT DISTINCT - NULLIF ( - SUM( DISTINCT 23 ), + 39 )
----
23

skipif mysql # not compatible
query I rowsort label-5579
SELECT DISTINCT - NULLIF ( - SUM ( DISTINCT 23 ), + 39 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5580
SELECT 60 * 2 + CAST( 85 AS SIGNED ) col0
----
205

skipif mysql # not compatible
query I rowsort label-5580
SELECT 60 * 2 + CAST ( 85 AS INTEGER ) col0
----
205

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + - NULLIF ( + 46, COUNT( * ) ) * 7
----
-322

skipif mysql # not compatible
query I rowsort label-5581
SELECT ALL + - NULLIF ( + 46, COUNT ( * ) ) * 7
----
-322

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT COUNT( * ) - 74 + - 51
----
-124

skipif mysql # not compatible
query I rowsort label-5582
SELECT COUNT ( * ) - 74 + - 51
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT - COUNT( DISTINCT - 0 ) + + CASE 39 WHEN COUNT( * ) + - 42 THEN - 13 - 88 ELSE 53 + 19 END AS col2
----
71

skipif mysql # not compatible
query I rowsort label-5583
SELECT - COUNT ( DISTINCT - 0 ) + + CASE 39 WHEN COUNT ( * ) + - 42 THEN - 13 - 88 ELSE 53 + 19 END AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5584
SELECT ALL - + 34 * - 94 * + 77 - + CASE - 9 + - 91 WHEN 99 / 71 THEN + NULLIF ( COUNT( * ), ( ( NULLIF ( + 88, 82 ) ) ) * 5 ) * + 66 WHEN - 70 - CAST( + ( + 89 ) AS SIGNED ) * + 62 THEN + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL - + 34 * - 94 * + 77 - + CASE - 9 + - 91 WHEN 99 / 71 THEN + NULLIF ( COUNT ( * ), ( ( NULLIF ( + 88, 82 ) ) ) * 5 ) * + 66 WHEN - 70 - CAST ( + ( + 89 ) AS INTEGER ) * + 62 THEN + CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT COUNT( * ) + + 31 + 47
----
79

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( * ) + + 31 + 47
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT + 81 + + 59 + - COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + 81 + + 59 + - COUNT ( * ) AS col0
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT ALL + 48 + CASE + 21 WHEN + 65 * 80 THEN + 6 + + 56 WHEN - 17 * 49 THEN COUNT( * ) ELSE - 29 END + 80
----
99

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL + 48 + CASE + 21 WHEN + 65 * 80 THEN + 6 + + 56 WHEN - 17 * 49 THEN COUNT ( * ) ELSE - 29 END + 80
----
99

query I rowsort
SELECT + 11 - - + 3 + COALESCE ( + 76 + 90, - 8, - 62 ) * 10
----
1674

query I rowsort
SELECT DISTINCT + - 29 + - - 29 + 61 * 86 AS col1
----
5246

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT ALL COUNT( * ) * - 6 * + + 42 AS col2
----
-252

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL COUNT ( * ) * - 6 * + + 42 AS col2
----
-252

query I rowsort
SELECT ALL - 67 + - 95
----
-162

query I rowsort
SELECT ALL + NULLIF ( - 10, - 67 ) + 57 col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT 97 + 30 + - - 82 DIV - COUNT( * ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-5593
SELECT 97 + 30 + - - 82 / - COUNT ( * ) AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT 7 + 11 - + SUM( - 3 ) + CASE 48 WHEN - COUNT( * ) + 24 * - 33 THEN NULL ELSE 19 END AS col1
----
40

skipif mysql # not compatible
query I rowsort label-5594
SELECT 7 + 11 - + SUM ( - 3 ) + CASE 48 WHEN - COUNT ( * ) + 24 * - 33 THEN NULL ELSE 19 END AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5595
SELECT MIN( 63 ) DIV + ( 34 ) + 40 - 98 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-5595
SELECT MIN ( 63 ) / + ( 34 ) + 40 - 98 AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5596
SELECT ALL - ( + 44 ) * + COALESCE ( 58, - 35 * - ( + 95 ) - CAST( + 93 AS SIGNED ), COALESCE ( - 87, CASE + COUNT( * ) WHEN 42 * - 56 THEN - 51 ELSE - 95 + 39 END, NULLIF ( COUNT( * ), + 48 ) DIV + COUNT( * ) ), 70 ) * + 31 AS col0
----
-79112

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - ( + 44 ) * + COALESCE ( 58, - 35 * - ( + 95 ) - CAST ( + 93 AS INTEGER ), COALESCE ( - 87, CASE + COUNT ( * ) WHEN 42 * - 56 THEN - 51 ELSE - 95 + 39 END, NULLIF ( COUNT ( * ), + 48 ) / + COUNT ( * ) ), 70 ) * + 31 AS col0
----
-79112

query I rowsort
SELECT DISTINCT + 49 + - 90 + 65 + + 3 AS col1
----
27

query I rowsort
SELECT DISTINCT 4 - + COALESCE ( + + 93, + 70 ) * + 18 AS col0
----
-1670

query I rowsort
SELECT 42 + + + 70
----
112

query I rowsort
SELECT DISTINCT - ( ( - 41 ) )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-5601
SELECT ALL ( - 0 ) DIV + - 40 * 63
----
0

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL ( - 0 ) / + - 40 * 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - 64 * - - 83 * MIN( ALL - 18 ) * MAX( 65 ) + 93 AS col2
----
6215133

skipif mysql # not compatible
query I rowsort label-5602
SELECT - 64 * - - 83 * MIN ( ALL - 18 ) * MAX ( 65 ) + 93 AS col2
----
6215133

query I rowsort
SELECT CASE - - 74 WHEN 57 THEN - 72 / - 10 ELSE NULL END / + 90 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5604
SELECT DISTINCT 26 DIV + 1
----
26

skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT 26 / + 1
----
26

query II rowsort
SELECT ALL - 12 col2, 30 col1
----
-12
30

onlyif mysql # aggregate syntax: 
query II rowsort label-5606
SELECT + 81 AS col2, NULLIF ( MIN( ALL 22 ), 81 ) - + 72 AS col1
----
81
-50

skipif mysql # not compatible
query II rowsort label-5606
SELECT + 81 AS col2, NULLIF ( MIN ( ALL 22 ), 81 ) - + 72 AS col1
----
81
-50

query I rowsort
SELECT + 44 * 5
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-5608
SELECT ALL 83 * + MAX( - 54 ) AS col1
----
-4482

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL 83 * + MAX ( - 54 ) AS col1
----
-4482

query I rowsort
SELECT - ( - + 34 ) + - 11
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5610
SELECT + SUM( - - 23 ) * COALESCE ( - 0, + 21 * COUNT( * ) - ( 25 ) * - CAST( NULL AS SIGNED ) ) * - CAST( + 15 * 36 AS SIGNED ) + - 15 + 76
----
61

skipif mysql # not compatible
query I rowsort label-5610
SELECT + SUM ( - - 23 ) * COALESCE ( - 0, + 21 * COUNT ( * ) - ( 25 ) * - CAST ( NULL AS INTEGER ) ) * - CAST ( + 15 * 36 AS INTEGER ) + - 15 + 76
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL COALESCE ( - 91, - COALESCE ( 35, 40 * 66, 46 ), - 66 ) * + COUNT( * ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL COALESCE ( - 91, - COALESCE ( 35, 40 * 66, 46 ), - 66 ) * + COUNT ( * ) AS col2
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT DISTINCT + NULLIF ( 73, - CAST( 29 AS SIGNED ) )
----
73

skipif mysql # not compatible
query I rowsort label-5612
SELECT DISTINCT + NULLIF ( 73, - CAST ( 29 AS INTEGER ) )
----
73

query I rowsort
SELECT ALL 49 * + - 40
----
-1960

query I rowsort
SELECT - 93 + 92
----
-1

query II rowsort
SELECT ALL - 73 AS col2, 39 - + 23
----
-73
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT 16 + - - COUNT( * ) AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5616
SELECT 16 + - - COUNT ( * ) AS col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT + COUNT( * ) - + + 0 DIV + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5617
SELECT + COUNT ( * ) - + + 0 / + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT ( - - COALESCE ( 80, 40 ) ) + CAST( NULL AS SIGNED ) / - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT ( - - COALESCE ( 80, 40 ) ) + CAST ( NULL AS INTEGER ) / - 3
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5619
SELECT 6 + + NULLIF ( + 18, 52 ) + - 7 DIV + 93 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5619
SELECT 6 + + NULLIF ( + 18, 52 ) + - 7 / + 93 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5620
SELECT ALL + 50 AS col0, CASE + 96 WHEN - 9 THEN MIN( DISTINCT - 21 ) WHEN + CAST( NULL AS SIGNED ) - 87 THEN - 26 * 63 ELSE 41 + 58 END DIV + COUNT( * ) AS col2
----
50
99

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL + 50 AS col0, CASE + 96 WHEN - 9 THEN MIN ( DISTINCT - 21 ) WHEN + CAST ( NULL AS INTEGER ) - 87 THEN - 26 * 63 ELSE 41 + 58 END / + COUNT ( * ) AS col2
----
50
99

query II rowsort
SELECT ALL 31 AS col0, + 44 AS col2
----
31
44

query I rowsort
SELECT + ( 11 ) AS col1
----
11

query I rowsort
SELECT ALL + 52 + + - 7 AS col1
----
45

query I rowsort
SELECT 85 + - + 16 * - - 41 * - 78 AS col2
----
51253

query I rowsort
SELECT ALL + 82 + - 35 AS col0
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5626
SELECT 31 + - - 62 + 98 DIV 56
----
94

skipif mysql # not compatible
query I rowsort label-5626
SELECT 31 + - - 62 + 98 / 56
----
94

query I rowsort
SELECT ALL - - 6 * + 65 AS col2
----
390

query I rowsort
SELECT DISTINCT - 49 + 35 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT 24 * - NULLIF ( - ( COUNT( * ) ), 54 - - 35 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-5629
SELECT 24 * - NULLIF ( - ( COUNT ( * ) ), 54 - - 35 ) AS col2
----
24

query I rowsort
SELECT ALL - + 39 + 58 + + + 81
----
100

query I rowsort
SELECT DISTINCT + 26 + + 65 + - 79 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT ALL - ( + 92 ) * COUNT( * ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - ( + 92 ) * COUNT ( * ) AS col2
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5633
SELECT COUNT( * ) + - 87 col0, - COUNT( * ) * + - 89
----
-86
89

skipif mysql # not compatible
query II rowsort label-5633
SELECT COUNT ( * ) + - 87 col0, - COUNT ( * ) * + - 89
----
-86
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5634
SELECT 42 + + 12, - COALESCE ( + + ( 64 ), + 4 + CAST( NULL AS SIGNED ) ) * NULLIF ( + MIN( + 28 ) * 64, 4 + MAX( DISTINCT + ( 58 ) ) ) + 9 AS col0
----
54
-114679

skipif mysql # not compatible
query II rowsort label-5634
SELECT 42 + + 12, - COALESCE ( + + ( 64 ), + 4 + CAST ( NULL AS INTEGER ) ) * NULLIF ( + MIN ( + 28 ) * 64, 4 + MAX ( DISTINCT + ( 58 ) ) ) + 9 AS col0
----
54
-114679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5635
SELECT DISTINCT + COUNT( * ) * - 91 + ( + - CAST( MIN( + 28 ) AS SIGNED ) )
----
-119

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + COUNT ( * ) * - 91 + ( + - CAST ( MIN ( + 28 ) AS INTEGER ) )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT ALL - SUM( + 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-5636
SELECT ALL - SUM ( + 84 )
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL - 73 * 16 * CAST( NULL AS SIGNED ) - - - 18 * 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL - 73 * 16 * CAST ( NULL AS INTEGER ) - - - 18 * 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT DISTINCT - COUNT( DISTINCT + 46 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5638
SELECT DISTINCT - COUNT ( DISTINCT + 46 ) AS col1
----
-1

query I rowsort
SELECT ALL + 9 * - ( + + 90 ) * ( 20 )
----
-16200

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - 60 * + - 75 + + 61 + + 60 - + ( CASE + 47 WHEN - 90 THEN - COUNT( * ) + - COUNT( * ) * 39 WHEN NULLIF ( 87, 98 ) * + 50 THEN ( 97 ) + - 47 ELSE 70 END ) * + COUNT( * ) * 63 / - NULLIF ( 1, + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5640
SELECT - 60 * + - 75 + + 61 + + 60 - + ( CASE + 47 WHEN - 90 THEN - COUNT ( * ) + - COUNT ( * ) * 39 WHEN NULLIF ( 87, 98 ) * + 50 THEN ( 97 ) + - 47 ELSE 70 END ) * + COUNT ( * ) * 63 / - NULLIF ( 1, + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT ALL - MAX( - 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL - MAX ( - 3 ) AS col1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5642
SELECT DISTINCT + ( 45 ) DIV COUNT( DISTINCT + 42 ) DIV 51 + + 69
----
69

skipif mysql # not compatible
query I rowsort label-5642
SELECT DISTINCT + ( 45 ) / COUNT ( DISTINCT + 42 ) / 51 + + 69
----
69

query I rowsort
SELECT - ( + + 51 ) * + - ( 51 ) - 20 * 44
----
1721

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT COUNT( - NULLIF ( + 14, - - ( 98 ) ) ) * + 40 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-5644
SELECT COUNT ( - NULLIF ( + 14, - - ( 98 ) ) ) * + 40 AS col2
----
40

query I rowsort
SELECT ALL + 9 * + + 80 AS col1
----
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5646
SELECT DISTINCT + 91 * - + CASE 12 WHEN + - CAST( 42 AS SIGNED ) THEN NULL WHEN - 40 THEN NULLIF ( - 83, 80 ) + + 59 END / + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT DISTINCT + 91 * - + CASE 12 WHEN + - CAST ( 42 AS INTEGER ) THEN NULL WHEN - 40 THEN NULLIF ( - 83, 80 ) + + 59 END / + 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5647
SELECT + - COUNT( * ) * - - ( 29 ) DIV + 87 * 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5647
SELECT + - COUNT ( * ) * - - ( 29 ) / + 87 * 71 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5648
SELECT + + CAST( NULL AS DECIMAL ) * + MIN( 88 ) + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT + + CAST ( NULL AS REAL ) * + MIN ( 88 ) + + 91
----
NULL

query II rowsort
SELECT - ( - - 87 ) AS col0, + ( 65 ) + - 81 AS col1
----
-87
-16

query I rowsort
SELECT ALL - COALESCE ( 28, + - 66 ) + - 80 AS col0
----
-108

onlyif mysql # aggregate syntax: 
query II rowsort label-5651
SELECT - - 41 * + - 27 AS col1, - SUM( 61 ) AS col2
----
-1107
-61

skipif mysql # not compatible
query II rowsort label-5651
SELECT - - 41 * + - 27 AS col1, - SUM ( 61 ) AS col2
----
-1107
-61

query I rowsort
SELECT + NULLIF ( + + 73, - NULLIF ( + - 61, - 37 ) + + 43 * - 75 ) + + 7 AS col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT ALL CAST( - 42 AS SIGNED ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL CAST ( - 42 AS INTEGER ) col0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5654
SELECT - CAST( NULL AS DECIMAL ) * - 30 * + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT - CAST ( NULL AS REAL ) * - 30 * + - 51
----
NULL

query I rowsort
SELECT + 13 * + - 31 AS col1
----
-403

query I rowsort
SELECT ALL 83 + NULLIF ( - 94, 50 ) * 63
----
-5839

query I rowsort
SELECT ALL 97 + - 34 * 68 AS col2
----
-2215

query I rowsort
SELECT DISTINCT 1 + + 90 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - 53 + + 79 - 81 - ( + CASE - 94 WHEN 22 * CASE + 62 WHEN 59 THEN 71 * 26 + + 58 END THEN + 3 WHEN + 64 / 27 THEN + 52 * + COUNT( * ) ELSE 59 END )
----
-114

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - 53 + + 79 - 81 - ( + CASE - 94 WHEN 22 * CASE + 62 WHEN 59 THEN 71 * 26 + + 58 END THEN + 3 WHEN + 64 / 27 THEN + 52 * + COUNT ( * ) ELSE 59 END )
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT ALL COUNT( 45 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5660
SELECT ALL COUNT ( 45 ) AS col2
----
1

query I rowsort
SELECT DISTINCT ( + + 43 ) * - ( 85 )
----
-3655

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT 68 * - 25 - - 43 DIV - 63 AS col2
----
-1700

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT 68 * - 25 - - 43 / - 63 AS col2
----
-1700

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT + 16 * 98 - + - MAX( ALL - 12 ) + + 66 * - 50
----
-1744

skipif mysql # not compatible
query I rowsort label-5663
SELECT + 16 * 98 - + - MAX ( ALL - 12 ) + + 66 * - 50
----
-1744

query I rowsort
SELECT + - 65 + + + 6 AS col2
----
-59

query I rowsort
SELECT + 40 + + + 51 - 75
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5666
SELECT - NULLIF ( + ( - 45 ), - 17 * + 85 DIV + 15 ) DIV - 2
----
-22

skipif mysql # not compatible
query I rowsort label-5666
SELECT - NULLIF ( + ( - 45 ), - 17 * + 85 / + 15 ) / - 2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL CAST( + - 88 AS SIGNED ) - + 47
----
-135

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL CAST ( + - 88 AS INTEGER ) - + 47
----
-135

query I rowsort
SELECT ALL - 49 - 23
----
-72

query I rowsort
SELECT - ( + + 64 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT + COUNT( * ) + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5670
SELECT + COUNT ( * ) + + 76 AS col2
----
77

query I rowsort
SELECT ALL - 77 * - 78 AS col0
----
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5672
SELECT + 27 * CAST( + 50 AS SIGNED )
----
1350

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 27 * CAST ( + 50 AS INTEGER )
----
1350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5673
SELECT ALL 33 DIV COALESCE ( 29, + 49 + - - CAST( NULL AS SIGNED ) ) * + 28
----
28

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL 33 / COALESCE ( 29, + 49 + - - CAST ( NULL AS INTEGER ) ) * + 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT + CASE - 45 WHEN SUM( DISTINCT 82 ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5674
SELECT + CASE - 45 WHEN SUM ( DISTINCT 82 ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT - 80 DIV - ( - - MIN( ALL 64 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5675
SELECT - 80 / - ( - - MIN ( ALL 64 ) )
----
1

query I rowsort
SELECT ALL - 77 * 60
----
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + 91 * CASE 50 WHEN + 95 THEN NULL WHEN ( AVG ( - 38 ) ) THEN NULL WHEN + 52 + - COUNT( * ) THEN + MIN( DISTINCT 84 ) + 30 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT + 91 * CASE 50 WHEN + 95 THEN NULL WHEN ( AVG ( - 38 ) ) THEN NULL WHEN + 52 + - COUNT ( * ) THEN + MIN ( DISTINCT 84 ) + 30 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT + SUM( + 24 ) * 23 + + 93
----
645

skipif mysql # not compatible
query I rowsort label-5678
SELECT + SUM ( + 24 ) * 23 + + 93
----
645

query I rowsort
SELECT ALL + COALESCE ( + 46, - COALESCE ( + 32, 68 * + 49 ), ( 31 ) * 41 + - 10 * + 40, 2 * - 75 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT ALL + NULLIF ( - COUNT( - 47 ), - - 59 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + NULLIF ( - COUNT ( - 47 ), - - 59 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5681
SELECT DISTINCT NULLIF ( - 16, COUNT( * ) * + CAST( NULL AS SIGNED ) * 58 ) * 58 + - 71
----
-999

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT NULLIF ( - 16, COUNT ( * ) * + CAST ( NULL AS INTEGER ) * 58 ) * 58 + - 71
----
-999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5682
SELECT - 96 + CAST( NULL AS SIGNED ) * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT - 96 + CAST ( NULL AS INTEGER ) * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT DISTINCT + + CASE + 84 WHEN 68 * + 77 THEN + + 47 WHEN - 23 THEN 64 ELSE NULL END * COUNT( * ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT + + CASE + 84 WHEN 68 * + 77 THEN + + 47 WHEN - 23 THEN 64 ELSE NULL END * COUNT ( * ) + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT + - 27 * 83 * + MIN( ( + 5 ) ) + + 82
----
-11123

skipif mysql # not compatible
query I rowsort label-5684
SELECT + - 27 * 83 * + MIN ( ( + 5 ) ) + + 82
----
-11123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT - ( - + CAST( + 32 AS SIGNED ) ) - + + COUNT( * ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5685
SELECT - ( - + CAST ( + 32 AS INTEGER ) ) - + + COUNT ( * ) AS col2
----
31

query I rowsort
SELECT DISTINCT + - 2 * + 99 * + 89
----
-17622

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5687
SELECT ALL - MAX( + + ( - - COALESCE ( + 84, - CAST( NULL AS SIGNED ) / 75 + + CAST( NULL AS SIGNED ), + 16 ) ) ) * 45 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5687
SELECT ALL - MAX ( + + ( - - COALESCE ( + 84, - CAST ( NULL AS INTEGER ) / 75 + + CAST ( NULL AS INTEGER ), + 16 ) ) ) * 45 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 71 * NULLIF ( - 13, + + 68 ) + + 55 AS col1
----
-868

onlyif mysql # aggregate syntax: 
query II rowsort label-5689
SELECT COUNT( * ), - COALESCE ( + + 2, + 10 ) AS col2
----
1
-2

skipif mysql # not compatible
query II rowsort label-5689
SELECT COUNT ( * ), - COALESCE ( + + 2, + 10 ) AS col2
----
1
-2

query I rowsort
SELECT + ( - 65 ) * 72 + + - ( - + 13 ) AS col0
----
-4667

onlyif mysql # aggregate syntax: 
query I rowsort label-5691
SELECT - - 4 + + COALESCE ( 0, NULLIF ( 36, + 73 ) + 69 * - MAX( + 30 ), 99 * + 46 )
----
4

skipif mysql # not compatible
query I rowsort label-5691
SELECT - - 4 + + COALESCE ( 0, NULLIF ( 36, + 73 ) + 69 * - MAX ( + 30 ), 99 * + 46 )
----
4

query I rowsort
SELECT DISTINCT + ( - - 85 )
----
85

query I rowsort
SELECT - - 55 + - - 42 AS col0
----
97

query I rowsort
SELECT ALL - 61 * + 81 + - 19 * - 41
----
-4162

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT DISTINCT 83 AS col0, + 68 * + MIN( - + 18 ) * COUNT( * ) col1
----
83
-1224

skipif mysql # not compatible
query II rowsort label-5695
SELECT DISTINCT 83 AS col0, + 68 * + MIN ( - + 18 ) * COUNT ( * ) col1
----
83
-1224

onlyif mysql # DIV for integer division: 
query I rowsort label-5696
SELECT - 31 DIV + 1 - 34 + - + 95 col2
----
-160

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 31 / + 1 - 34 + - + 95 col2
----
-160

query I rowsort
SELECT + 0 + 90 AS col0
----
90

query II rowsort
SELECT ALL + 51 AS col1, + 15 AS col0
----
51
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5699
SELECT + 14 + NULLIF ( - 62, - 31 ) * + COALESCE ( COUNT( * ), CAST( NULL AS SIGNED ) + - ( 7 - - 76 ) ) - + 11
----
-59

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 14 + NULLIF ( - 62, - 31 ) * + COALESCE ( COUNT ( * ), CAST ( NULL AS INTEGER ) + - ( 7 - - 76 ) ) - + 11
----
-59

query I rowsort
SELECT - - ( 38 )
----
38

query I rowsort
SELECT + 27 + 51 AS col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 1 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 1 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT + COUNT( * ) + - 56 * + COUNT( * ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5703
SELECT + COUNT ( * ) + - 56 * + COUNT ( * ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT ALL 46 * COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5704
SELECT ALL 46 * COUNT ( * ) AS col2
----
46

query I rowsort
SELECT DISTINCT + NULLIF ( - + 62, - 64 * + + 64 + + 5 ) * + 35 * - 57
----
123690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL - 81 - ( SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) ) * - 0 / - + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - 81 - ( SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) ) * - 0 / - + 39
----
NULL

query I rowsort
SELECT - ( + ( + 92 ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT + CASE + + COUNT( * ) WHEN + 11 THEN NULL WHEN 85 THEN 40 ELSE - COUNT( * ) END + 0 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5708
SELECT + CASE + + COUNT ( * ) WHEN + 11 THEN NULL WHEN 85 THEN 40 ELSE - COUNT ( * ) END + 0 AS col0
----
-1

query I rowsort
SELECT + 4 * + 67 AS col1
----
268

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT ALL 10 * - 33 DIV - COUNT( * )
----
330

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL 10 * - 33 / - COUNT ( * )
----
330

query II rowsort
SELECT + 92 + 73 + + 8 * + 74 AS col0, - NULLIF ( + 23, - 89 )
----
757
-23

query I rowsort
SELECT - NULLIF ( - 45, 87 / - + 93 ) AS col0
----
45

query I rowsort
SELECT + 56 + 55
----
111

query I rowsort
SELECT + 68 * ( 75 ) AS col2
----
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5715
SELECT DISTINCT + 90 AS col2, - AVG ( CAST( NULL AS SIGNED ) ) * + 68 + - 15 * 8 * - COUNT( ALL - 64 ) AS col2
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5715
SELECT DISTINCT + 90 AS col2, - AVG ( CAST ( NULL AS INTEGER ) ) * + 68 + - 15 * 8 * - COUNT ( ALL - 64 ) AS col2
----
90
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT DISTINCT 97 DIV - 47 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5716
SELECT DISTINCT 97 / - 47 AS col1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5717
SELECT DISTINCT - COUNT( * ) DIV 43 + - 34 + 65 DIV ( + + 46 ) + 63
----
30

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT - COUNT ( * ) / 43 + - 34 + 65 / ( + + 46 ) + 63
----
30

query I rowsort
SELECT DISTINCT 44 + + + 41
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT + 14 * ( - ( + 64 ) ) * - 54 + - - ( - COALESCE ( - 89, - 28 + MAX( NULLIF ( + 65, 68 ) + 51 * 51 ) * 36 ) )
----
48473

skipif mysql # not compatible
query I rowsort label-5719
SELECT + 14 * ( - ( + 64 ) ) * - 54 + - - ( - COALESCE ( - 89, - 28 + MAX ( NULLIF ( + 65, 68 ) + 51 * 51 ) * 36 ) )
----
48473

query I rowsort
SELECT ALL + 74 + + + 43 + 10 + + 15 * - 77
----
-1028

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT 65, + 68 - - MAX( DISTINCT - - 66 ) + - 52 AS col2
----
65
82

skipif mysql # not compatible
query II rowsort label-5721
SELECT 65, + 68 - - MAX ( DISTINCT - - 66 ) + - 52 AS col2
----
65
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5722
SELECT ALL CAST( NULL AS DECIMAL ) + + - 12 + - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL CAST ( NULL AS REAL ) + + - 12 + - 77
----
NULL

query I rowsort
SELECT 22 * + + 15 + 61 + 21
----
412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5724
SELECT SUM( 79 ) DIV - 65 + 94 * - + 50 * + + 87 + 15 AS col0
----
-408886

skipif mysql # not compatible
query I rowsort label-5724
SELECT SUM ( 79 ) / - 65 + 94 * - + 50 * + + 87 + 15 AS col0
----
-408886

onlyif mysql # DIV for integer division: 
query II rowsort label-5725
SELECT 26, - 48 + 67 DIV + ( + 75 ) AS col2
----
26
-48

skipif mysql # not compatible
query II rowsort label-5725
SELECT 26, - 48 + 67 / + ( + 75 ) AS col2
----
26
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5726
SELECT COUNT( + CAST( NULL AS SIGNED ) ) * 65
----
0

skipif mysql # not compatible
query I rowsort label-5726
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) * 65
----
0

query I rowsort
SELECT COALESCE ( 4, - + ( - 12 ) - + - 63 ) + - 80 + 13 AS col2
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT COALESCE ( - - 18, 1 DIV - 87 * 62 * - COUNT( * ) ) * - 60 + + COALESCE ( 45, + 34 ) * - 23
----
-2115

skipif mysql # not compatible
query I rowsort label-5728
SELECT COALESCE ( - - 18, 1 / - 87 * 62 * - COUNT ( * ) ) * - 60 + + COALESCE ( 45, + 34 ) * - 23
----
-2115

onlyif mysql # aggregate syntax: 
query II rowsort label-5729
SELECT - 60 AS col0, + NULLIF ( + 91, - MIN( DISTINCT - 41 ) )
----
-60
91

skipif mysql # not compatible
query II rowsort label-5729
SELECT - 60 AS col0, + NULLIF ( + 91, - MIN ( DISTINCT - 41 ) )
----
-60
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5730
SELECT DISTINCT 0 + + MAX( DISTINCT NULLIF ( + + ( + - 55 ), CAST( NULL AS SIGNED ) * 78 ) ) + - COALESCE ( - CASE CASE - COUNT( * ) WHEN - COALESCE ( - 66, 11 ) THEN + COUNT( * ) WHEN + 87 THEN NULL END WHEN - 85 * + 66 + + 29 THEN + ( COUNT( * ) ) ELSE 45 - + 33 END, - 65 - ( - COUNT( * ) + - 79 ) ) * + MIN( ALL + 56 )
----
617

skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT 0 + + MAX ( DISTINCT NULLIF ( + + ( + - 55 ), CAST ( NULL AS INTEGER ) * 78 ) ) + - COALESCE ( - CASE CASE - COUNT ( * ) WHEN - COALESCE ( - 66, 11 ) THEN + COUNT ( * ) WHEN + 87 THEN NULL END WHEN - 85 * + 66 + + 29 THEN + ( COUNT ( * ) ) ELSE 45 - + 33 END, - 65 - ( - COUNT ( * ) + - 79 ) ) * + MIN ( ALL + 56 )
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ALL - + SUM( + + 97 ) AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - + SUM ( + + 97 ) AS col0
----
-97

query I rowsort
SELECT DISTINCT - - 49 + 91 + - 76 * 68 * 13 * + 8 * 79
----
-42460148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5733
SELECT ALL - 73 - - + CAST( NULL AS SIGNED ) * + - 40 * 9, 95 AS col2
----
NULL
95

skipif mysql # not compatible
query II rowsort label-5733
SELECT ALL - 73 - - + CAST ( NULL AS INTEGER ) * + - 40 * 9, 95 AS col2
----
NULL
95

query I rowsort
SELECT + 71 * + 38 - - 6 AS col1
----
2704

query I rowsort
SELECT ALL - 29 * 12
----
-348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5736
SELECT DISTINCT - 79 * + - CASE 58 WHEN - + CAST( 41 AS SIGNED ) * + 60 THEN NULL WHEN 59 THEN NULL WHEN COUNT( * ) THEN + 10 * + COUNT( * ) - 40 WHEN COALESCE ( + 95, SUM( + ( 24 ) ), - 82 ) THEN + COUNT( * ) * 15 ELSE - 62 END
----
-4898

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - 79 * + - CASE 58 WHEN - + CAST ( 41 AS INTEGER ) * + 60 THEN NULL WHEN 59 THEN NULL WHEN COUNT ( * ) THEN + 10 * + COUNT ( * ) - 40 WHEN COALESCE ( + 95, SUM ( + ( 24 ) ), - 82 ) THEN + COUNT ( * ) * 15 ELSE - 62 END
----
-4898

query I rowsort
SELECT + 55 * - 95 col1
----
-5225

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT - NULLIF ( - 79, + - SUM( - + 32 ) - + ( CASE COUNT( * ) WHEN - 65 * 52 THEN 37 * - 81 WHEN - 78 * 15 THEN NULL ELSE + COUNT( - 42 ) END ) * 52 ) * + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT - NULLIF ( - 79, + - SUM ( - + 32 ) - + ( CASE COUNT ( * ) WHEN - 65 * 52 THEN 37 * - 81 WHEN - 78 * 15 THEN NULL ELSE + COUNT ( - 42 ) END ) * 52 ) * + COUNT ( * ) AS col1
----
79

query I rowsort
SELECT 32 + + 54 * 40
----
2192

query I rowsort
SELECT 42 + + 29 + - 86 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5741
SELECT ALL + 50 DIV + - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL + 50 / + - 41 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5742
SELECT SUM( DISTINCT - ( + + 53 ) ) DIV - 48 + + 10 col2
----
11

skipif mysql # not compatible
query I rowsort label-5742
SELECT SUM ( DISTINCT - ( + + 53 ) ) / - 48 + + 10 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT - ( COUNT( * ) ) + + 39
----
38

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - ( COUNT ( * ) ) + + 39
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT DISTINCT 91 + MAX( - 99 ) * 72 * 27
----
-192365

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT 91 + MAX ( - 99 ) * 72 * 27
----
-192365

query II rowsort
SELECT 76 + - 61 AS col0, - 7
----
15
-7

query I rowsort
SELECT ALL - 87 + + + 80
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT 83 * COUNT( * ) * - 44 * - 39
----
142428

skipif mysql # not compatible
query I rowsort label-5747
SELECT 83 * COUNT ( * ) * - 44 * - 39
----
142428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5748
SELECT DISTINCT 38 * + COALESCE ( + + 9, - - 2 + + MAX( DISTINCT - 15 ) * + 29, - 86 DIV 34 + - ( 19 ) ) * 88 AS col0
----
30096

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT 38 * + COALESCE ( + + 9, - - 2 + + MAX ( DISTINCT - 15 ) * + 29, - 86 / 34 + - ( 19 ) ) * 88 AS col0
----
30096

query I rowsort
SELECT DISTINCT 55 + + NULLIF ( - + 54, - 9 ) AS col2
----
1

query I rowsort
SELECT 66 + + 91
----
157

query II rowsort
SELECT DISTINCT 22 + + - 0 + - 82 AS col1, 78 - + + 26
----
-60
52

query I rowsort
SELECT + CASE WHEN ( + 26 ) IS NULL THEN + - 1 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5753
SELECT ALL 49 DIV + + 23 + 80 col0, 75
----
82
75

skipif mysql # not compatible
query II rowsort label-5753
SELECT ALL 49 / + + 23 + 80 col0, 75
----
82
75

query I rowsort
SELECT DISTINCT 89 + - 38
----
51

query I rowsort
SELECT DISTINCT - ( + 67 ) - - 26 AS col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5757
SELECT + - COUNT( + 5 ), 27 AS col1
----
-1
27

skipif mysql # not compatible
query II rowsort label-5757
SELECT + - COUNT ( + 5 ), 27 AS col1
----
-1
27

query II rowsort
SELECT 44 * + - 25 AS col2, 21 - - - 36 * + + 33 AS col1
----
-1100
-1167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT + - CAST( + - CAST( + 93 AS SIGNED ) AS SIGNED )
----
93

skipif mysql # not compatible
query I rowsort label-5759
SELECT + - CAST ( + - CAST ( + 93 AS INTEGER ) AS INTEGER )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT ALL 52 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL 52 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5761
SELECT + 26 + 26 DIV - ( - 27 )
----
26

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 26 + 26 / - ( - 27 )
----
26

query I rowsort
SELECT - NULLIF ( + 81, 85 + - 0 * - 50 ) AS col1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT - SUM( DISTINCT 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT - SUM ( DISTINCT 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT - 39 * 30 * - - 14 + COUNT( * ) * - - 27 AS col2
----
-16353

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT - 39 * 30 * - - 14 + COUNT ( * ) * - - 27 AS col2
----
-16353

query I rowsort
SELECT - 96 * + + 25 * 93 + 50 AS col2
----
-223150

onlyif mysql # aggregate syntax: 
query II rowsort label-5766
SELECT DISTINCT 82 AS col0, COUNT( * )
----
82
1

skipif mysql # not compatible
query II rowsort label-5766
SELECT DISTINCT 82 AS col0, COUNT ( * )
----
82
1

query I rowsort
SELECT 68 + + 50 AS col2
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT COUNT( * ) * - ( - ( 1 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5768
SELECT COUNT ( * ) * - ( - ( 1 ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 73 + + + 22 AS col0
----
-51

query I rowsort
SELECT 87 + + + 96
----
183

query I rowsort
SELECT ALL + 46 + - + 77 + - + CASE + 75 WHEN - ( - 24 ) THEN + 76 WHEN + 66 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 92 + - 63
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL + COUNT( * ) + - 38 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL + COUNT ( * ) + - 38 AS col2
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5774
SELECT - CASE - MAX( 93 ) WHEN + ( - - 47 ) * - CAST( NULL AS DECIMAL ) + + COUNT( * ) / + CAST( NULL AS SIGNED ) - - SUM( - 86 ) / 34 THEN NULL WHEN - 36 THEN NULL ELSE - 52 + 12 END * 41 AS col2
----
1640

skipif mysql # not compatible
query I rowsort label-5774
SELECT - CASE - MAX ( 93 ) WHEN + ( - - 47 ) * - CAST ( NULL AS REAL ) + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) - - SUM ( - 86 ) / 34 THEN NULL WHEN - 36 THEN NULL ELSE - 52 + 12 END * 41 AS col2
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT ALL + 56 + COUNT( * ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5775
SELECT ALL + 56 + COUNT ( * ) AS col0
----
57

query I rowsort
SELECT ALL + 47 + - 23 * - - 90 + - ( - 95 )
----
-1928

query II rowsort
SELECT 39, 57 - - 81 col1
----
39
138

onlyif mysql # aggregate syntax: 
query II rowsort label-5778
SELECT ALL COUNT( * ), 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-5778
SELECT ALL COUNT ( * ), 57 AS col0
----
1
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5779
SELECT - 3 + - + CAST( NULL AS SIGNED ) * - 66 + SUM( - 70 ) + + MAX( DISTINCT + 3 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5779
SELECT - 3 + - + CAST ( NULL AS INTEGER ) * - 66 + SUM ( - 70 ) + + MAX ( DISTINCT + 3 ) AS col1
----
NULL

query I rowsort
SELECT - 67 * + 88
----
-5896

onlyif mysql # DIV for integer division: 
query I rowsort label-5781
SELECT + 85 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-5781
SELECT + 85 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT + COUNT( * ) + - 43 + 76
----
34

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT + COUNT ( * ) + - 43 + 76
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL NULLIF ( - SUM( - 45 ), - 15 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL NULLIF ( - SUM ( - 45 ), - 15 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5784
SELECT DISTINCT + 2 DIV - - 13 col0
----
0

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT + 2 / - - 13 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5785
SELECT ALL 53 * - + 96 - + 72 + + 78 + - 6 + - 72 * CAST( NULL AS SIGNED ) + + ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL 53 * - + 96 - + 72 + + 78 + - 6 + - 72 * CAST ( NULL AS INTEGER ) + + ( - COUNT ( * ) )
----
NULL

query II rowsort
SELECT - 72 AS col1, 96 * - 43 AS col0
----
-72
-4128

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - - 92 + - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-5787
SELECT - - 92 + - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT ALL + - MAX( 65 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5788
SELECT ALL + - MAX ( 65 ) AS col2
----
-65

query II rowsort
SELECT + - 90, - 56 AS col1
----
-90
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT ALL + - MIN( DISTINCT 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + - MIN ( DISTINCT 40 ) AS col0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5791
SELECT ALL + + CAST( - + 34 AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL + + CAST ( - + 34 AS INTEGER )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + NULLIF ( + - 67, - 30 - - NULLIF ( + 17, - + NULLIF ( 99, - + COUNT( * ) * + COUNT( * ) ) ) * + 1 )
----
-67

skipif mysql # not compatible
query I rowsort label-5792
SELECT + NULLIF ( + - 67, - 30 - - NULLIF ( + 17, - + NULLIF ( 99, - + COUNT ( * ) * + COUNT ( * ) ) ) * + 1 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5793
SELECT - - 73 * - - COUNT( * ) + - - COUNT( * ) * + 92 * - 98 * + - 53 AS col2, 47
----
477921
47

skipif mysql # not compatible
query II rowsort label-5793
SELECT - - 73 * - - COUNT ( * ) + - - COUNT ( * ) * + 92 * - 98 * + - 53 AS col2, 47
----
477921
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT + + MIN( 83 ) * - 83 * - COUNT( * ) AS col1
----
6889

skipif mysql # not compatible
query I rowsort label-5794
SELECT + + MIN ( 83 ) * - 83 * - COUNT ( * ) AS col1
----
6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT + CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-5795
SELECT + CAST ( - 47 AS INTEGER )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5796
SELECT - + 77 / + 22 + CASE + 56 WHEN - - 79 / 9 + - - 96 / 77 * 9 - - MAX( - CAST( NULL AS SIGNED ) ) * - 55 + 73 THEN 11 END + + 84 * + ( COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5796
SELECT - + 77 / + 22 + CASE + 56 WHEN - - 79 / 9 + - - 96 / 77 * 9 - - MAX ( - CAST ( NULL AS INTEGER ) ) * - 55 + 73 THEN 11 END + + 84 * + ( COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5797
SELECT DISTINCT 23 * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT 23 * COUNT ( * )
----
23

query II rowsort
SELECT + - 0 AS col0, + 85
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT + 67 + - - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-5799
SELECT + 67 + - - COUNT ( * )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5800
SELECT + + COUNT( * ) DIV - 46 + + 44 * 72 * + 47 * - 48
----
-7147008

skipif mysql # not compatible
query I rowsort label-5800
SELECT + + COUNT ( * ) / - 46 + + 44 * 72 * + 47 * - 48
----
-7147008

query I rowsort
SELECT + + 63 * 57 + + + 15 - 38 * + 5 * 0 * 87 - - 13 AS col1
----
3619

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT SUM( + - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-5802
SELECT SUM ( + - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5803
SELECT ALL + CASE + 48 WHEN + CASE + COUNT( * ) WHEN - + 51 THEN - - 78 * - 89 / 57 + 2 END THEN CAST( NULL AS SIGNED ) * + 61 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + CASE + 48 WHEN + CASE + COUNT ( * ) WHEN - + 51 THEN - - 78 * - 89 / 57 + 2 END THEN CAST ( NULL AS INTEGER ) * + 61 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5804
SELECT + - COUNT( * ) * - - SUM( ALL + 2 ) / - + 55 + + + ( AVG ( ALL CAST( NULL AS SIGNED ) ) ) * + CAST( NULL AS SIGNED ) * - CAST( - 31 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT + - COUNT ( * ) * - - SUM ( ALL + 2 ) / - + 55 + + + ( AVG ( ALL CAST ( NULL AS INTEGER ) ) ) * + CAST ( NULL AS INTEGER ) * - CAST ( - 31 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - 71, + 60 * + + 46 * - 16 / - 82 / + + 75 ) * + COALESCE ( 38, 55 ) * 10 AS col2
----
26980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5806
SELECT ALL + NULLIF ( + 80, + 29 * + CAST( 43 AS SIGNED ) ) * - + 50 + COUNT( * )
----
-3999

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL + NULLIF ( + 80, + 29 * + CAST ( 43 AS INTEGER ) ) * - + 50 + COUNT ( * )
----
-3999

query I rowsort
SELECT ALL 87 * - + ( - 53 ) * 93 + + 77
----
428900

onlyif mysql # DIV for integer division: 
query I rowsort label-5808
SELECT + COALESCE ( + COALESCE ( - - 4, 86 DIV - 93 ), - 78, + - 76 + 52 ) DIV 8 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5808
SELECT + COALESCE ( + COALESCE ( - - 4, 86 / - 93 ), - 78, + - 76 + 52 ) / 8 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT DISTINCT MAX( ALL 52 ) AS col0
----
52

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT MAX ( ALL 52 ) AS col0
----
52

query II rowsort
SELECT ALL + 60 + + - ( 10 ) + - - 10, - ( + 75 ) + - ( 57 ) AS col2
----
60
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT + COUNT( * ) - MIN( ALL - 25 ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-5811
SELECT + COUNT ( * ) - MIN ( ALL - 25 ) AS col1
----
26

query I rowsort
SELECT ALL 27 * + + 86 AS col0
----
2322

query I rowsort
SELECT DISTINCT + 42 + 56 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT ALL NULLIF ( - 20, - COUNT( ALL - + 59 ) * + 93 * 48 - AVG ( 72 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL NULLIF ( - 20, - COUNT ( ALL - + 59 ) * + 93 * 48 - AVG ( 72 ) )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT - CASE WHEN NULL IS NOT NULL THEN + 99 ELSE + 83 END * - 27 + + 21 * ( + 65 ) * - + CASE 45 WHEN - COALESCE ( + 74, + 0 ) THEN - COUNT( * ) END + 53 + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT - CASE WHEN NULL IS NOT NULL THEN + 99 ELSE + 83 END * - 27 + + 21 * ( + 65 ) * - + CASE 45 WHEN - COALESCE ( + 74, + 0 ) THEN - COUNT ( * ) END + 53 + - 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5816
SELECT ALL 80 + + + ( ( ( + COUNT( * ) ) ) ) + - 3 * + COUNT( * ) DIV 63 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL 80 + + + ( ( ( + COUNT ( * ) ) ) ) + - 3 * + COUNT ( * ) / 63 AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT + MAX( ALL + 87 ) + - NULLIF ( + ( - + 77 ), + COUNT( * ) * + 21 ) col1
----
164

skipif mysql # not compatible
query I rowsort label-5817
SELECT + MAX ( ALL + 87 ) + - NULLIF ( + ( - + 77 ), + COUNT ( * ) * + 21 ) col1
----
164

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT ALL 56 + - 15 DIV + 25 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5818
SELECT ALL 56 + - 15 / + 25 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5819
SELECT + 62 + + 39 * + CAST( NULL AS SIGNED ) + + 65, - 80 AS col0
----
NULL
-80

skipif mysql # not compatible
query II rowsort label-5819
SELECT + 62 + + 39 * + CAST ( NULL AS INTEGER ) + + 65, - 80 AS col0
----
NULL
-80

query II rowsort
SELECT - 67 - 2, 36 AS col2
----
-69
36

query I rowsort
SELECT - 44 * - 70 AS col0
----
3080

query I rowsort
SELECT ALL + 24 * + 18 AS col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT DISTINCT COALESCE ( 21, + 90, 76 * - - NULLIF ( + 54, + ( - COUNT( * ) ) ) - + - 61 )
----
21

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT COALESCE ( 21, + 90, 76 * - - NULLIF ( + 54, + ( - COUNT ( * ) ) ) - + - 61 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT DISTINCT + COUNT( * ) * - + 67
----
-67

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + COUNT ( * ) * - + 67
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5825
SELECT DISTINCT 79 - - ( + 50 ) + + - 21 + + COUNT( DISTINCT + 13 ) - + + 81 + + - MIN( 46 ) * - 63 DIV COUNT( * ) * - 27 AS col2
----
-78218

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT 79 - - ( + 50 ) + + - 21 + + COUNT ( DISTINCT + 13 ) - + + 81 + + - MIN ( 46 ) * - 63 / COUNT ( * ) * - 27 AS col2
----
-78218

query I rowsort
SELECT ALL + + 18 * + 28 * - 90 col1
----
-45360

query I rowsort
SELECT - + 63 + + 84
----
21

query II rowsort
SELECT - - 88 + + 90, - 4 AS col1
----
178
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5829
SELECT + - NULLIF ( 76, + 69 * + ( - NULLIF ( + 43, - 30 ) ) - + + 16 - - 69 * 92 ) DIV - CAST( 34 * 87 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5829
SELECT + - NULLIF ( 76, + 69 * + ( - NULLIF ( + 43, - 30 ) ) - + + 16 - - 69 * 92 ) / - CAST ( 34 * 87 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT - 28 * - + 83 * + + CAST( NULL AS SIGNED ) - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5830
SELECT - 28 * - + 83 * + + CAST ( NULL AS INTEGER ) - + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT CASE - 14 WHEN + 78 + + COALESCE ( - + 41, 64 ) + NULLIF ( + 5, + 46 ) THEN CASE 66 WHEN + 87 THEN + 68 + 48 * COUNT( * ) ELSE - 34 + - COUNT( * ) END ELSE 3 DIV 60 + 0 DIV 32 END col1
----
0

skipif mysql # not compatible
query I rowsort label-5831
SELECT CASE - 14 WHEN + 78 + + COALESCE ( - + 41, 64 ) + NULLIF ( + 5, + 46 ) THEN CASE 66 WHEN + 87 THEN + 68 + 48 * COUNT ( * ) ELSE - 34 + - COUNT ( * ) END ELSE 3 / 60 + 0 / 32 END col1
----
0

query I rowsort
SELECT - NULLIF ( + 45, + 20 ) * + 16 AS col0
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-5833
SELECT ( ( MAX( ALL 15 ) ) ) AS col2, + COUNT( * )
----
15
1

skipif mysql # not compatible
query II rowsort label-5833
SELECT ( ( MAX ( ALL 15 ) ) ) AS col2, + COUNT ( * )
----
15
1

query I rowsort
SELECT + + COALESCE ( - 22, 88 )
----
-22

query I rowsort
SELECT - 55 + + 37 AS col0
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT ALL - 41 DIV NULLIF ( 4, - 10 ) DIV 36
----
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - 41 / NULLIF ( 4, - 10 ) / 36
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + - COUNT( * ) * - 16 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-5837
SELECT + - COUNT ( * ) * - 16 AS col2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-5838
SELECT ALL - - 1 DIV + 42 * + + 76 * + 18
----
0

skipif mysql # not compatible
query I rowsort label-5838
SELECT ALL - - 1 / + 42 * + + 76 * + 18
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5839
SELECT DISTINCT - + 84 DIV + 47, 41 col2
----
-1
41

skipif mysql # not compatible
query II rowsort label-5839
SELECT DISTINCT - + 84 / + 47, 41 col2
----
-1
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT - - 87 * - 19 * - 90 + + + ( - - 97 ) + 76 - + + COALESCE ( - 56, - - 79 * - 98 - 39, - 38 * NULLIF ( - 85, - ( + COUNT( * ) ) * + 7 ) ) * 11
----
149559

skipif mysql # not compatible
query I rowsort label-5840
SELECT - - 87 * - 19 * - 90 + + + ( - - 97 ) + 76 - + + COALESCE ( - 56, - - 79 * - 98 - 39, - 38 * NULLIF ( - 85, - ( + COUNT ( * ) ) * + 7 ) ) * 11
----
149559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5841
SELECT + CAST( 27 AS SIGNED ) col1
----
27

skipif mysql # not compatible
query I rowsort label-5841
SELECT + CAST ( 27 AS INTEGER ) col1
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT ALL + 15 DIV COUNT( * ) + + 37 + - - 90 * + - 2
----
-128

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + 15 / COUNT ( * ) + + 37 + - - 90 * + - 2
----
-128

query I rowsort
SELECT - + 58 * - ( 55 ) + + + 22 + - ( 1 ) AS col0
----
3211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5844
SELECT - 25 * - + 8 * - CASE - 16 WHEN + - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 46 THEN - - 65 ELSE NULL END + + SUM( DISTINCT + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5844
SELECT - 25 * - + 8 * - CASE - 16 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 46 THEN - - 65 ELSE NULL END + + SUM ( DISTINCT + 84 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT + 67 - - COUNT( * ) AS col0, + 23 AS col2
----
68
23

skipif mysql # not compatible
query II rowsort label-5845
SELECT + 67 - - COUNT ( * ) AS col0, + 23 AS col2
----
68
23

onlyif mysql # aggregate syntax: 
query II rowsort label-5846
SELECT ALL COUNT( * ) * 56 + + + 17 AS col0, + 97
----
73
97

skipif mysql # not compatible
query II rowsort label-5846
SELECT ALL COUNT ( * ) * 56 + + + 17 AS col0, + 97
----
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT - MAX( 34 ) + + 57 + - + 43
----
-20

skipif mysql # not compatible
query I rowsort label-5847
SELECT - MAX ( 34 ) + + 57 + - + 43
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + ( - COUNT( * ) ) * + 27
----
-27

skipif mysql # not compatible
query I rowsort label-5848
SELECT + ( - COUNT ( * ) ) * + 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT - 45 + 77 * - CAST( NULL AS SIGNED ) / + COALESCE ( + 39, - 0 - - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT - 45 + 77 * - CAST ( NULL AS INTEGER ) / + COALESCE ( + 39, - 0 - - 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL + MIN( 65 )
----
65

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL + MIN ( 65 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL COUNT( * ) + - NULLIF ( + 89, MIN( DISTINCT - 2 ) ) + - - 70
----
-18

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL COUNT ( * ) + - NULLIF ( + 89, MIN ( DISTINCT - 2 ) ) + - - 70
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT CASE + 83 WHEN + 75 THEN + COUNT( * ) ELSE NULL END + - 2 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT CASE + 83 WHEN + 75 THEN + COUNT ( * ) ELSE NULL END + - 2 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT DISTINCT + 46 + - SUM( - - 2 )
----
44

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT + 46 + - SUM ( - - 2 )
----
44

query I rowsort
SELECT ALL 68 * ( + 35 ) AS col2
----
2380

query I rowsort
SELECT 86 + + 1 * + 63
----
149

query I rowsort
SELECT 57 * + 73 AS col0
----
4161

query I rowsort
SELECT 92 * + 62
----
5704

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT ALL 32 * + ( - + MIN( ALL - + 14 ) )
----
448

skipif mysql # not compatible
query I rowsort label-5858
SELECT ALL 32 * + ( - + MIN ( ALL - + 14 ) )
----
448

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT 12 + + SUM( - + 9 ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-5859
SELECT 12 + + SUM ( - + 9 ) AS col0
----
3

query I rowsort
SELECT ALL 38 * + 55 AS col0
----
2090

query I rowsort
SELECT 60 - + - 22
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5862
SELECT CASE + 0 WHEN + 89 / - 83 + - + NULLIF ( + 88, + - 36 * - 56 * + 61 ) THEN NULL ELSE + - SUM( DISTINCT - 20 ) * - 90 END + - 24 * - 68
----
-168

skipif mysql # not compatible
query I rowsort label-5862
SELECT CASE + 0 WHEN + 89 / - 83 + - + NULLIF ( + 88, + - 36 * - 56 * + 61 ) THEN NULL ELSE + - SUM ( DISTINCT - 20 ) * - 90 END + - 24 * - 68
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT + + 23 * COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT + + 23 * COUNT ( * ) AS col0
----
23

query I rowsort
SELECT ALL - 96 * + 30
----
-2880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5865
SELECT - 77 * - 50 + + - 51 + - CASE - 38 WHEN CAST( NULL AS SIGNED ) THEN - 64 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5865
SELECT - 77 * - 50 + + - 51 + - CASE - 38 WHEN CAST ( NULL AS INTEGER ) THEN - 64 ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL 85 + COUNT( * ) - - 25 * - 92 + - + COUNT( - 57 ) * - 82
----
-2132

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 85 + COUNT ( * ) - - 25 * - 92 + - + COUNT ( - 57 ) * - 82
----
-2132

query II rowsort
SELECT ALL - 9 AS col2, + 7 AS col1
----
-9
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5868
SELECT - COUNT( * ) DIV 7 * - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5868
SELECT - COUNT ( * ) / 7 * - 80 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT COALESCE ( - 80, - - 37 ) * + + 45 + COUNT( * )
----
-3599

skipif mysql # not compatible
query I rowsort label-5869
SELECT COALESCE ( - 80, - - 37 ) * + + 45 + COUNT ( * )
----
-3599

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5870
SELECT + 77 DIV + ( - 43 ) + - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5870
SELECT + 77 / + ( - 43 ) + - COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL - MAX( ALL - 96 ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL - MAX ( ALL - 96 ) AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5872
SELECT + SUM( DISTINCT 80 ) / 88 * - 53 * + + CAST( NULL AS SIGNED ) / - + NULLIF ( - 92, 51 * + + 55 ) * 86 * CASE 95 WHEN + 47 THEN NULL WHEN 43 * 14 + - 57 THEN 86 END + - COUNT( * ) + + ( - ( COUNT( * ) ) ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5872
SELECT + SUM ( DISTINCT 80 ) / 88 * - 53 * + + CAST ( NULL AS INTEGER ) / - + NULLIF ( - 92, 51 * + + 55 ) * 86 * CASE 95 WHEN + 47 THEN NULL WHEN 43 * 14 + - 57 THEN 86 END + - COUNT ( * ) + + ( - ( COUNT ( * ) ) ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT + 65 + - + 99 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT + 65 + - + 99 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5874
SELECT + 81 AS col1, - NULLIF ( - 86, + - 90 / NULLIF ( - ( + MAX( - 93 ) ), + CAST( NULL AS SIGNED ) - 76 ) )
----
81
86

skipif mysql # not compatible
query II rowsort label-5874
SELECT + 81 AS col1, - NULLIF ( - 86, + - 90 / NULLIF ( - ( + MAX ( - 93 ) ), + CAST ( NULL AS INTEGER ) - 76 ) )
----
81
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT ALL + 59 + + SUM( - 9 ) * CASE - + 84 WHEN + CASE MAX( - 1 ) WHEN - NULLIF ( - + 85, 24 ) - + 56 THEN - 66 WHEN - COUNT( * ) THEN NULL END THEN NULL ELSE 94 * + 59 END * - 83 AS col0
----
4142921

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + 59 + + SUM ( - 9 ) * CASE - + 84 WHEN + CASE MAX ( - 1 ) WHEN - NULLIF ( - + 85, 24 ) - + 56 THEN - 66 WHEN - COUNT ( * ) THEN NULL END THEN NULL ELSE 94 * + 59 END * - 83 AS col0
----
4142921

onlyif mysql # DIV for integer division: 
query I rowsort label-5876
SELECT ALL - 32 DIV - 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL - 32 / - 77 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( * ) * 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + COUNT ( * ) * 46 AS col1
----
46

query I rowsort
SELECT ALL + 60 + COALESCE ( 7, - CASE 77 WHEN + 37 THEN + 79 END ) AS col2
----
67

query I rowsort
SELECT ALL - 97 + - - 71
----
-26

query II rowsort
SELECT + 50 AS col1, + 80
----
50
80

query II rowsort
SELECT 50, 16 - 30 AS col1
----
50
-14

query I rowsort
SELECT 2 * + - 23 AS col2
----
-46

query II rowsort
SELECT ALL - 24 * - + 18 AS col0, 11 AS col0
----
432
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT 63 AS col2, CASE - ( + - 76 ) WHEN MAX( DISTINCT - 61 ) * + + ( 66 ) - - - 84 / - + 43 THEN - 40 - - 52 END
----
63
NULL

skipif mysql # not compatible
query II rowsort label-5884
SELECT 63 AS col2, CASE - ( + - 76 ) WHEN MAX ( DISTINCT - 61 ) * + + ( 66 ) - - - 84 / - + 43 THEN - 40 - - 52 END
----
63
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5885
SELECT - 61 AS col2, CAST( NULL AS SIGNED ) * COUNT( * )
----
-61
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT - 61 AS col2, CAST ( NULL AS INTEGER ) * COUNT ( * )
----
-61
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5886
SELECT COUNT( + - 2 ) * + - 96 * + 16 - ( + COUNT( * ) ) * - NULLIF ( - + COUNT( * ), NULLIF ( + + 45, 58 ) * - 59 ) DIV - COUNT( * ) + + 31 * 41
----
-264

skipif mysql # not compatible
query I rowsort label-5886
SELECT COUNT ( + - 2 ) * + - 96 * + 16 - ( + COUNT ( * ) ) * - NULLIF ( - + COUNT ( * ), NULLIF ( + + 45, 58 ) * - 59 ) / - COUNT ( * ) + + 31 * 41
----
-264

query I rowsort
SELECT ALL - 25 * 33
----
-825

query I rowsort
SELECT ALL 79 * + - 54
----
-4266

query I rowsort
SELECT 17 * - 35 AS col0
----
-595

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT ALL - 85 AS col0, + COUNT( * ) + + + COUNT( * ) * + 96 * COUNT( * ) * + MAX( DISTINCT 55 ) * - COUNT( DISTINCT 46 )
----
-85
-5279

skipif mysql # not compatible
query II rowsort label-5890
SELECT ALL - 85 AS col0, + COUNT ( * ) + + + COUNT ( * ) * + 96 * COUNT ( * ) * + MAX ( DISTINCT 55 ) * - COUNT ( DISTINCT 46 )
----
-85
-5279

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT - 27 + COUNT( * ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-5891
SELECT - 27 + COUNT ( * ) col1
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5892
SELECT - + 73 AS col2, + SUM( ALL CAST( 60 AS SIGNED ) ) * + 85 * 59 AS col1
----
-73
300900

skipif mysql # not compatible
query II rowsort label-5892
SELECT - + 73 AS col2, + SUM ( ALL CAST ( 60 AS INTEGER ) ) * + 85 * 59 AS col1
----
-73
300900

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT MIN( DISTINCT + 48 ) + 95 * MAX( - 57 ) + + 43 * + 56 * COUNT( * ) + + + 20
----
-2939

skipif mysql # not compatible
query I rowsort label-5893
SELECT MIN ( DISTINCT + 48 ) + 95 * MAX ( - 57 ) + + 43 * + 56 * COUNT ( * ) + + + 20
----
-2939

query I rowsort
SELECT + 10 - - 75 * + 41 col0
----
3085

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5895
SELECT ALL + CASE + 36 WHEN 42 * - COALESCE ( 11, - + 40 * + 11 * - ( + + CASE + + 13 WHEN 31 THEN - 93 * + 11 + + 2 WHEN 15 THEN 67 WHEN + COALESCE ( 98, + CAST( - COALESCE ( NULLIF ( - COUNT( * ), - 26 ), ( 58 ) / 25 - 89 ) AS DECIMAL ), + 95 + - 66 ) THEN NULL ELSE NULL END ) * + 23, - 80 ) THEN NULL ELSE + COUNT( * ) - 4 END * - 17
----
51

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL + CASE + 36 WHEN 42 * - COALESCE ( 11, - + 40 * + 11 * - ( + + CASE + + 13 WHEN 31 THEN - 93 * + 11 + + 2 WHEN 15 THEN 67 WHEN + COALESCE ( 98, + CAST ( - COALESCE ( NULLIF ( - COUNT ( * ), - 26 ), ( 58 ) / 25 - 89 ) AS REAL ), + 95 + - 66 ) THEN NULL ELSE NULL END ) * + 23, - 80 ) THEN NULL ELSE + COUNT ( * ) - 4 END * - 17
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5896
SELECT CAST( NULL AS SIGNED ) / 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT CAST ( NULL AS INTEGER ) / 85 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL 3 + 77 + 39 * + SUM( DISTINCT - ( - + ( - 60 ) ) )
----
-2260

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL 3 + 77 + 39 * + SUM ( DISTINCT - ( - + ( - 60 ) ) )
----
-2260

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL MIN( 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL MIN ( 57 )
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-5899
SELECT DISTINCT + 70, 19 DIV 40 col1
----
70
0

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT + 70, 19 / 40 col1
----
70
0

query I rowsort
SELECT 44 + - 76 * + + 24 col2
----
-1780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT ALL + 23 + + - CASE - CAST( COUNT( * ) AS SIGNED ) WHEN - 25 * + 65 THEN + 11 - + COUNT( * ) * 89 * - - 36 * 2 + + 28 END - - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL + 23 + + - CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN - 25 * + 65 THEN + 11 - + COUNT ( * ) * 89 * - - 36 * 2 + + 28 END - - 3
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT DISTINCT - CAST( 81 AS SIGNED ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT - CAST ( 81 AS INTEGER ) col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5903
SELECT MIN( + CAST( NULL AS SIGNED ) ) / COUNT( * ) + + 76 + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) + + 76 + + 15
----
NULL

query I rowsort
SELECT + 35 * - - 30 + + 40 * + - ( + + 11 ) * 68 - + 44 * + 9 * 50 * - - 46
----
-939670

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL - COUNT( * ) * + ( + COUNT( * ) ) * + 61 + - 12 * + 7 AS col1
----
-145

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - COUNT ( * ) * + ( + COUNT ( * ) ) * + 61 + - 12 * + 7 AS col1
----
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT ALL 54 * 56 + + + SUM( - 66 )
----
2958

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL 54 * 56 + + + SUM ( - 66 )
----
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + COUNT( + 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT + COUNT ( + 71 ) AS col2
----
1

query I rowsort
SELECT + 81 * - - ( + - 78 )
----
-6318

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT DISTINCT + ( - CASE + - 99 WHEN - 12 + 2 - + CASE 90 WHEN + COUNT( * ) * + 5 * + 40 THEN + - COUNT( * ) * + 24 * + 8 END * 67 THEN + 59 WHEN + 80 + 25 THEN 40 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + ( - CASE + - 99 WHEN - 12 + 2 - + CASE 90 WHEN + COUNT ( * ) * + 5 * + 40 THEN + - COUNT ( * ) * + 24 * + 8 END * 67 THEN + 59 WHEN + 80 + 25 THEN 40 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT + 71 * MIN( DISTINCT - + 56 ) * 48 * - 97 + + + 48
----
18512304

skipif mysql # not compatible
query I rowsort label-5910
SELECT + 71 * MIN ( DISTINCT - + 56 ) * 48 * - 97 + + + 48
----
18512304

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT DISTINCT + COALESCE ( - + 42, - + CASE - - COALESCE ( + 51, - 5 / - AVG ( DISTINCT + - ( 36 ) ), + - 88 ) WHEN - + 65 * - - ( - 85 ) THEN NULL WHEN - SUM( ALL - 95 ) * + 81 + 38 THEN - 78 END * COUNT( * ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + COALESCE ( - + 42, - + CASE - - COALESCE ( + 51, - 5 / - AVG ( DISTINCT + - ( 36 ) ), + - 88 ) WHEN - + 65 * - - ( - 85 ) THEN NULL WHEN - SUM ( ALL - 95 ) * + 81 + 38 THEN - 78 END * COUNT ( * ) ) AS col0
----
-42

query I rowsort
SELECT 29 * + 86 * 51 - - 67
----
127261

query I rowsort
SELECT + 39 + 29 col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5914
SELECT 65 * - 59 - - 27 * + - 76 / - - 56 * - ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5914
SELECT 65 * - 59 - - 27 * + - 76 / - - 56 * - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL 8 * + ( 22 ) - 94 + - 64 AS col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT - NULLIF ( 40, + 46 ) * COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-5916
SELECT - NULLIF ( 40, + 46 ) * COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5917
SELECT ALL + 65 DIV + 74, COUNT( * ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-5917
SELECT ALL + 65 / + 74, COUNT ( * ) col2
----
0
1

query I rowsort
SELECT - NULLIF ( - - 74, + + 94 ) + - 78 * - - 56 + - 18
----
-4460

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT + 57 * - CASE + COUNT( * ) WHEN + 20 * - + 48 + AVG ( ALL - 52 ) / + 59 THEN - 14 + - 82 * - MIN( DISTINCT + ( ( 94 ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT + 57 * - CASE + COUNT ( * ) WHEN + 20 * - + 48 + AVG ( ALL - 52 ) / + 59 THEN - 14 + - 82 * - MIN ( DISTINCT + ( ( 94 ) ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5920
SELECT DISTINCT + 84 DIV - - 29
----
2

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + 84 / - - 29
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT - 85 + + - 59 + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5921
SELECT - 85 + + - 59 + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL MIN( DISTINCT + + 24 ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL MIN ( DISTINCT + + 24 ) AS col1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5923
SELECT ALL CASE - 43 WHEN - CAST( - 27 AS SIGNED ) + + COUNT( * ) THEN - 9 * 10 WHEN + - COALESCE ( 43, - - 80 + - 33 - + + NULLIF ( 82, 91 ) ) THEN 15 ELSE NULL END
----
15

skipif mysql # not compatible
query I rowsort label-5923
SELECT ALL CASE - 43 WHEN - CAST ( - 27 AS INTEGER ) + + COUNT ( * ) THEN - 9 * 10 WHEN + - COALESCE ( 43, - - 80 + - 33 - + + NULLIF ( 82, 91 ) ) THEN 15 ELSE NULL END
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT - - CAST( NULL AS SIGNED ) + - 23 * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5924
SELECT - - CAST ( NULL AS INTEGER ) + - 23 * 77
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT DISTINCT - - COUNT( * ) * SUM( + 13 ) * 78
----
1014

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT - - COUNT ( * ) * SUM ( + 13 ) * 78
----
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - + COUNT( * ) * + 26 * + 74 + + - 53 AS col2
----
-1977

skipif mysql # not compatible
query I rowsort label-5926
SELECT - + COUNT ( * ) * + 26 * + 74 + + - 53 AS col2
----
-1977

query II rowsort
SELECT ALL - 18 * - + 97 AS col2, - 8 col2
----
1746
-8

query I rowsort
SELECT ALL 91 + + + 47 AS col1
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5929
SELECT DISTINCT - COALESCE ( COUNT( * ), + SUM( ALL 15 ) + - + CAST( + 15 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - COALESCE ( COUNT ( * ), + SUM ( ALL 15 ) + - + CAST ( + 15 AS INTEGER ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT ALL - 63 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - 63 / - 80
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT - - COUNT( 68 ) + - COALESCE ( - COUNT( * ), 85 ) AS col0, 78
----
2
78

skipif mysql # not compatible
query II rowsort label-5931
SELECT - - COUNT ( 68 ) + - COALESCE ( - COUNT ( * ), 85 ) AS col0, 78
----
2
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - - COUNT( * ) - 69 + - 88 - - ( - 81 ) AS col0
----
-237

skipif mysql # not compatible
query I rowsort label-5932
SELECT - - COUNT ( * ) - 69 + - 88 - - ( - 81 ) AS col0
----
-237

onlyif mysql # DIV for integer division: 
query II rowsort label-5933
SELECT - 50 DIV - - 8 - + + 5 AS col1, 19 * - - 96 DIV 2 AS col2
----
-11
912

skipif mysql # not compatible
query II rowsort label-5933
SELECT - 50 / - - 8 - + + 5 AS col1, 19 * - - 96 / 2 AS col2
----
-11
912

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT DISTINCT - SUM( 4 ) * + ( - 70 ) AS col1
----
280

skipif mysql # not compatible
query I rowsort label-5934
SELECT DISTINCT - SUM ( 4 ) * + ( - 70 ) AS col1
----
280

query I rowsort
SELECT ALL 3 + + - 28 AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5936
SELECT ALL + + 22 * 18, MIN( 29 ) DIV ( - + COUNT( * ) ) AS col2
----
396
-29

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL + + 22 * 18, MIN ( 29 ) / ( - + COUNT ( * ) ) AS col2
----
396
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5937
SELECT + + COUNT( * ) + + ( + 73 ) col0, + 87 DIV 69 + ( + + ( - - 98 ) ) AS col2
----
74
99

skipif mysql # not compatible
query II rowsort label-5937
SELECT + + COUNT ( * ) + + ( + 73 ) col0, + 87 / 69 + ( + + ( - - 98 ) ) AS col2
----
74
99

query I rowsort
SELECT DISTINCT + 8 * + 92
----
736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5939
SELECT ALL COUNT( * ) DIV 86 - + - 18 + + - COUNT( * ) * - 46 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL COUNT ( * ) / 86 - + - 18 + + - COUNT ( * ) * - 46 AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT ALL 93 DIV - 18 - 16
----
-21

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL 93 / - 18 - 16
----
-21

query I rowsort
SELECT + 69 + 64
----
133

onlyif mysql # aggregate syntax: 
query II rowsort label-5942
SELECT - 45 + - MAX( ALL + 3 ) AS col0, + 29 - 38
----
-48
-9

skipif mysql # not compatible
query II rowsort label-5942
SELECT - 45 + - MAX ( ALL + 3 ) AS col0, + 29 - 38
----
-48
-9

query I rowsort
SELECT ALL 51 * - 51 col2
----
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT + SUM( - 27 ) * 87 + 34
----
-2315

skipif mysql # not compatible
query I rowsort label-5944
SELECT + SUM ( - 27 ) * 87 + 34
----
-2315

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT DISTINCT SUM( + 52 ) * - - 67
----
3484

skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT SUM ( + 52 ) * - - 67
----
3484

query I rowsort
SELECT + CASE 98 WHEN - - 69 * - 8 * - - 97 * - 11 + + 41 THEN + + 26 + - 46 + - - 88 * - + 87 END * + 81
----
NULL

query II rowsort
SELECT ALL + 76 AS col1, 72
----
76
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5948
SELECT CAST( COUNT( * ) AS SIGNED ) * + 29 * + 22 - 67 AS col2
----
571

skipif mysql # not compatible
query I rowsort label-5948
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + 29 * + 22 - 67 AS col2
----
571

query I rowsort
SELECT NULLIF ( + 52, + + 44 )
----
52

query I rowsort
SELECT - 61 * - 87 * 94 AS col1
----
498858

query II rowsort
SELECT + ( - ( 92 ) ) - + - 19 - + 61 - + + 52 AS col1, 89 col2
----
-186
89

query I rowsort
SELECT ALL - 64 * - 79 + - 20 AS col1
----
5036

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT + 49 + - + COUNT( * ) col0
----
48

skipif mysql # not compatible
query I rowsort label-5953
SELECT + 49 + - + COUNT ( * ) col0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5954
SELECT NULLIF ( + 1, 96 ), - 49 + COUNT( * ) + - ( + NULLIF ( - ( - 77 ), + 94 ) ) + - ( 91 ) - 93 AS col1
----
1
-309

skipif mysql # not compatible
query II rowsort label-5954
SELECT NULLIF ( + 1, 96 ), - 49 + COUNT ( * ) + - ( + NULLIF ( - ( - 77 ), + 94 ) ) + - ( 91 ) - 93 AS col1
----
1
-309

query I rowsort
SELECT + 25 * + 76 AS col0
----
1900

onlyif mysql # aggregate syntax: 
query II rowsort label-5956
SELECT - COUNT( * ) * - - 76 * 90, 44 + + 57 AS col2
----
-6840
101

skipif mysql # not compatible
query II rowsort label-5956
SELECT - COUNT ( * ) * - - 76 * 90, 44 + + 57 AS col2
----
-6840
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT ALL - + 73 * + 57 + - AVG ( DISTINCT + 66 ) + + + 73 + - - 9 / - 91 * + 91 + 9 + + 5 + + 20 + - 34 / - COUNT( * ) * CAST( NULL AS SIGNED ) + AVG ( - 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - + 73 * + 57 + - AVG ( DISTINCT + 66 ) + + + 73 + - - 9 / - 91 * + 91 + 9 + + 5 + + 20 + - 34 / - COUNT ( * ) * CAST ( NULL AS INTEGER ) + AVG ( - 20 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT - CASE + 38 WHEN + ( - + 67 ) + - + 99 THEN 83 WHEN + 17 THEN NULL WHEN - 29 * CAST( + 26 AS SIGNED ) * 39 - - 25 + - ( 48 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT - CASE + 38 WHEN + ( - + 67 ) + - + 99 THEN 83 WHEN + 17 THEN NULL WHEN - 29 * CAST ( + 26 AS INTEGER ) * 39 - - 25 + - ( 48 ) THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5959
SELECT ALL - CAST( + 42 AS SIGNED ) * 33 + + CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5959
SELECT ALL - CAST ( + 42 AS INTEGER ) * 33 + + CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5960
SELECT 78 * - 38 + 45 - + COALESCE ( - 75, - 79 + - 22 * - CAST( + + 15 AS SIGNED ) DIV 13 + CASE AVG ( - - 39 ) WHEN 40 * - 86 THEN COALESCE ( ( + 66 ), MAX( DISTINCT - 17 ), + CAST( NULL AS SIGNED ) ) ELSE NULL END ) * 15
----
-1794

skipif mysql # not compatible
query I rowsort label-5960
SELECT 78 * - 38 + 45 - + COALESCE ( - 75, - 79 + - 22 * - CAST ( + + 15 AS INTEGER ) / 13 + CASE AVG ( - - 39 ) WHEN 40 * - 86 THEN COALESCE ( ( + 66 ), MAX ( DISTINCT - 17 ), + CAST ( NULL AS INTEGER ) ) ELSE NULL END ) * 15
----
-1794

query I rowsort
SELECT ALL NULLIF ( 52, - 96 + 23 ) AS col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-5962
SELECT ALL 92 * + + 87 + - 32 DIV + - 79 AS col0
----
8004

skipif mysql # not compatible
query I rowsort label-5962
SELECT ALL 92 * + + 87 + - 32 / + - 79 AS col0
----
8004

query I rowsort
SELECT - + COALESCE ( 83, - + 45 ) - 78
----
-161

onlyif mysql # DIV for integer division: 
query I rowsort label-5964
SELECT ALL + 97 DIV + 42 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL + 97 / + 42 AS col1
----
2

query II rowsort
SELECT 96 AS col2, 15
----
96
15

query I rowsort
SELECT + + 42 + + 71 AS col0
----
113

query I rowsort
SELECT - 39 + - 31 AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT - 8 - COUNT( * ) + 7 DIV 87 * ( - 8 ) * + + 47 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-5968
SELECT - 8 - COUNT ( * ) + 7 / 87 * ( - 8 ) * + + 47 AS col0
----
-9

query II rowsort
SELECT DISTINCT - 56 AS col1, 75 col2
----
-56
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT + 12 * - COALESCE ( NULLIF ( + 52, COUNT( * ) ), + 33 )
----
-624

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT + 12 * - COALESCE ( NULLIF ( + 52, COUNT ( * ) ), + 33 )
----
-624

query I rowsort
SELECT + 75 * 26 AS col1
----
1950

query I rowsort
SELECT DISTINCT + 79 - - 39 + + 55 - 15 + 68 * - - 38 - + 93
----
2649

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT DISTINCT + 57 DIV COUNT( * ) * 73 AS col2
----
4161

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + 57 / COUNT ( * ) * 73 AS col2
----
4161

query I rowsort
SELECT DISTINCT ( + + 66 ) - 94 * + 23 AS col0
----
-2096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5975
SELECT 57 + + SUM( DISTINCT + - CAST( 42 AS SIGNED ) ) * 32 * ( COUNT( * ) ), - 46 AS col0
----
-1287
-46

skipif mysql # not compatible
query II rowsort label-5975
SELECT 57 + + SUM ( DISTINCT + - CAST ( 42 AS INTEGER ) ) * 32 * ( COUNT ( * ) ), - 46 AS col0
----
-1287
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5976
SELECT COUNT( * ) DIV - ( + 98 ) + + - 55 * + + 24 AS col2
----
-1320

skipif mysql # not compatible
query I rowsort label-5976
SELECT COUNT ( * ) / - ( + 98 ) + + - 55 * + + 24 AS col2
----
-1320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-5977
SELECT ( + COUNT( * ) ) DIV + 7 * - NULLIF ( - + COUNT( * ), 14 + - - 87 + + AVG ( + - CAST( NULL AS DECIMAL ) ) * - 81 * - 45 ) + - + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5977
SELECT ( + COUNT ( * ) ) / + 7 * - NULLIF ( - + COUNT ( * ), 14 + - - 87 + + AVG ( + - CAST ( NULL AS REAL ) ) * - 81 * - 45 ) + - + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5978
SELECT MAX( - 28 ) * + 38 + - COALESCE ( + 80, 95 * 80 DIV 24 + - 56 ) - + + 84
----
-1228

skipif mysql # not compatible
query I rowsort label-5978
SELECT MAX ( - 28 ) * + 38 + - COALESCE ( + 80, 95 * 80 / 24 + - 56 ) - + + 84
----
-1228

query I rowsort
SELECT ALL 10 * 78
----
780

query I rowsort
SELECT DISTINCT + 84 * + ( 47 )
----
3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT CASE + 89 WHEN - - 54 / + 22 THEN + CASE 81 WHEN - + CAST( NULL AS SIGNED ) * 43 * - - 33 * + 85 + 63 THEN + 1 WHEN - - 76 + - 6 + 73 THEN NULL END WHEN CAST( NULL AS SIGNED ) THEN + 85 END / + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5981
SELECT CASE + 89 WHEN - - 54 / + 22 THEN + CASE 81 WHEN - + CAST ( NULL AS INTEGER ) * 43 * - - 33 * + 85 + 63 THEN + 1 WHEN - - 76 + - 6 + 73 THEN NULL END WHEN CAST ( NULL AS INTEGER ) THEN + 85 END / + 75
----
NULL

query I rowsort
SELECT ALL - 66 * 72
----
-4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5983
SELECT ALL + COUNT( * ) * + CASE - 40 WHEN - 10 * - 23 THEN 27 + + - MIN( + 62 ) WHEN + + CAST( - 27 AS SIGNED ) THEN - CASE 46 WHEN - COUNT( * ) * 63 + + 11 * + 65 THEN 79 * + 64 ELSE NULL END ELSE + 44 DIV COALESCE ( COALESCE ( - 4, 91 ) * 23, - 37 - - 77 * ( 25 ) ) + ( COALESCE ( 25, - ( 14 ) + - 7 ) ) END AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL + COUNT ( * ) * + CASE - 40 WHEN - 10 * - 23 THEN 27 + + - MIN ( + 62 ) WHEN + + CAST ( - 27 AS INTEGER ) THEN - CASE 46 WHEN - COUNT ( * ) * 63 + + 11 * + 65 THEN 79 * + 64 ELSE NULL END ELSE + 44 / COALESCE ( COALESCE ( - 4, 91 ) * 23, - 37 - - 77 * ( 25 ) ) + ( COALESCE ( 25, - ( 14 ) + - 7 ) ) END AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT COUNT( * ) + 38 * + 3 col0
----
115

skipif mysql # not compatible
query I rowsort label-5984
SELECT COUNT ( * ) + 38 * + 3 col0
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5985
SELECT ALL 67 + + ( - + ( 51 ) ) col2, 41 + + 39 + + COUNT( * ) + 53 - + 77 * 95 * MIN( - 36 ) - ( - 50 ) + + COUNT( * ) AS col1
----
16
263525

skipif mysql # not compatible
query II rowsort label-5985
SELECT ALL 67 + + ( - + ( 51 ) ) col2, 41 + + 39 + + COUNT ( * ) + 53 - + 77 * 95 * MIN ( - 36 ) - ( - 50 ) + + COUNT ( * ) AS col1
----
16
263525

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT 27 - + SUM( ALL + 76 ) * + NULLIF ( 35, - 48 ) AS col0
----
-2633

skipif mysql # not compatible
query I rowsort label-5986
SELECT 27 - + SUM ( ALL + 76 ) * + NULLIF ( 35, - 48 ) AS col0
----
-2633

query I rowsort
SELECT - 43 * 16 - - 31
----
-657

query I rowsort
SELECT 11 + 55 col2
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT 39 * 97 DIV - 81 + - - 1 * - 75
----
-121

skipif mysql # not compatible
query I rowsort label-5989
SELECT 39 * 97 / - 81 + - - 1 * - 75
----
-121

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5990
SELECT DISTINCT 55 + + CAST( + 26 AS SIGNED ) / + - 76 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT 55 + + CAST ( + 26 AS INTEGER ) / + - 76 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 32 * - 79 - + 93 + ( + 80 ) + 44 * 38 + + 67 - + 26 * 48 * - 14 col1
----
16670

onlyif mysql # DIV for integer division: 
query II rowsort label-5992
SELECT ALL - 26 + - 36, 75 DIV - 20 col0
----
-62
-3

skipif mysql # not compatible
query II rowsort label-5992
SELECT ALL - 26 + - 36, 75 / - 20 col0
----
-62
-3

query I rowsort
SELECT DISTINCT - 68 * + + 60 AS col0
----
-4080

query I rowsort
SELECT + ( - - 65 ) + - 50
----
15

query I rowsort
SELECT 83 * - + 44
----
-3652

query I rowsort
SELECT ALL 35 * 20 AS col0
----
700

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT - ( 12 ) DIV + 37 + - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5997
SELECT - ( 12 ) / + 37 + - 70 AS col0
----
-70

query I rowsort
SELECT ALL + - 60 - + 12
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5999
SELECT DISTINCT - - COUNT( DISTINCT + 34 ) DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - - COUNT ( DISTINCT + 34 ) / - 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT 24 - COUNT( * ) - 17 * 50 + COUNT( * ) AS col2
----
-826

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT 24 - COUNT ( * ) - 17 * 50 + COUNT ( * ) AS col2
----
-826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6001
SELECT ALL - CAST( NULL AS SIGNED ) * 24 + + 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL - CAST ( NULL AS INTEGER ) * 24 + + 61 AS col0
----
NULL

query I rowsort
SELECT 29 + + NULLIF ( - ( - - 75 ), 79 ) AS col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6003
SELECT ALL - CAST( - + 35 AS SIGNED ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6003
SELECT ALL - CAST ( - + 35 AS INTEGER ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6004
SELECT 68 * COUNT( * ) - 24 DIV + 7 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-6004
SELECT 68 * COUNT ( * ) - 24 / + 7 AS col0
----
65

query I rowsort
SELECT 2 + - + 29 AS col2
----
-27

query I rowsort
SELECT 12 + + + 82 AS col1
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6007
SELECT 86 * - SUM( ALL 55 ), + 88 + - - 21 AS col1
----
-4730
109

skipif mysql # not compatible
query II rowsort label-6007
SELECT 86 * - SUM ( ALL 55 ), + 88 + - - 21 AS col1
----
-4730
109

query I rowsort
SELECT DISTINCT + 97 * - 5
----
-485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT 2 + + CASE + 29 WHEN 34 THEN NULL ELSE CAST( + + 32 AS SIGNED ) END
----
34

skipif mysql # not compatible
query I rowsort label-6009
SELECT 2 + + CASE + 29 WHEN 34 THEN NULL ELSE CAST ( + + 32 AS INTEGER ) END
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6010
SELECT - 84 / CAST( - - 88 AS SIGNED ) - - - ( - CASE - + 42 WHEN - 89 / 79 + 6 THEN + 10 * 35 * + - 73 WHEN - COUNT( * ) + + - 58 - - 44 * - ( 75 ) THEN - 47 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT - 84 / CAST ( - - 88 AS INTEGER ) - - - ( - CASE - + 42 WHEN - 89 / 79 + 6 THEN + 10 * 35 * + - 73 WHEN - COUNT ( * ) + + - 58 - - 44 * - ( 75 ) THEN - 47 END )
----
NULL

query II rowsort
SELECT + 1 AS col1, 48 AS col0
----
1
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6012
SELECT ALL - ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6012
SELECT ALL - ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT DISTINCT 96 * + 51 * + NULLIF ( - - 92, - COUNT( * ) * COUNT( * ) - + 13 * 62 ) * - 13
----
-5855616

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT 96 * + 51 * + NULLIF ( - - 92, - COUNT ( * ) * COUNT ( * ) - + 13 * 62 ) * - 13
----
-5855616

query I rowsort
SELECT ALL 14 + - 53
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT 27 * COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-6015
SELECT 27 * COUNT ( * )
----
27

query I rowsort
SELECT ALL - 35 * + 67 col2
----
-2345

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL 90 + + - 37 + - MIN( - 16 ) * - + 79 * - MAX( - 51 )
----
-64411

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL 90 + + - 37 + - MIN ( - 16 ) * - + 79 * - MAX ( - 51 )
----
-64411

query I rowsort
SELECT DISTINCT 49 + - + 65 * - 72 col1
----
4729

query I rowsort
SELECT DISTINCT + 39 * + 12
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT COUNT( + 87 ) * - 94 - - 8
----
-86

skipif mysql # not compatible
query I rowsort label-6020
SELECT COUNT ( + 87 ) * - 94 - - 8
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6021
SELECT 44 + COUNT( * ) - - COALESCE ( - + CAST( - 52 AS SIGNED ), + SUM( ALL + 21 ) * - 64, - 40 * 77 ) + - - CASE - + CASE - 58 WHEN - 92 THEN NULL WHEN - - 81 THEN NULLIF ( + COUNT( * ), + MAX( ALL - 48 ) ) WHEN + 87 + - 28 THEN NULL END WHEN + 57 THEN + 32 * + 94 WHEN - 8 THEN 94 + + 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6021
SELECT 44 + COUNT ( * ) - - COALESCE ( - + CAST ( - 52 AS INTEGER ), + SUM ( ALL + 21 ) * - 64, - 40 * 77 ) + - - CASE - + CASE - 58 WHEN - 92 THEN NULL WHEN - - 81 THEN NULLIF ( + COUNT ( * ), + MAX ( ALL - 48 ) ) WHEN + 87 + - 28 THEN NULL END WHEN + 57 THEN + 32 * + 94 WHEN - 8 THEN 94 + + 90 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT DISTINCT 69 * - 9 - COALESCE ( - 54, + 93 * + 79 + - 50 ) + + 7 * 2 * COALESCE ( 29, - 67, ( + COUNT( * ) ) * CAST( NULL AS SIGNED ) ) AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-6022
SELECT DISTINCT 69 * - 9 - COALESCE ( - 54, + 93 * + 79 + - 50 ) + + 7 * 2 * COALESCE ( 29, - 67, ( + COUNT ( * ) ) * CAST ( NULL AS INTEGER ) ) AS col2
----
-161

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL 87 * - - 79 + SUM( ALL 59 ) + + + 28 + - 94 - 51
----
6815

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 87 * - - 79 + SUM ( ALL 59 ) + + + 28 + - 94 - 51
----
6815

query I rowsort
SELECT + 57 - + 4
----
53

query I rowsort
SELECT ALL 96 * - + ( + 40 ) + + - 63
----
-3903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT ALL 54 * 14 * - + COUNT( * ) DIV + COUNT( * )
----
-756

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL 54 * 14 * - + COUNT ( * ) / + COUNT ( * )
----
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT + NULLIF ( 90, COUNT( * ) * + 13 * + 30 ) + - 87
----
3

skipif mysql # not compatible
query I rowsort label-6027
SELECT + NULLIF ( 90, COUNT ( * ) * + 13 * + 30 ) + - 87
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT + - 49 + + 57 + 68 * + COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6028
SELECT + - 49 + + 57 + 68 * + COUNT ( * ) AS col1
----
76

query I rowsort
SELECT - - 44 - - 26
----
70

query I rowsort
SELECT ALL 4 * + + 15
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6031
SELECT + 16 DIV - 56 AS col1, - 26 * + 65, - ( - COUNT( DISTINCT + 85 ) ) AS col2
----
0
-1690
1

skipif mysql # not compatible
query III rowsort label-6031
SELECT + 16 / - 56 AS col1, - 26 * + 65, - ( - COUNT ( DISTINCT + 85 ) ) AS col2
----
0
-1690
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT ALL - 38 + 12 + + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-6032
SELECT ALL - 38 + 12 + + COUNT ( * )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + COUNT( * ) * 80 AS col0
----
80

skipif mysql # not compatible
query I rowsort label-6033
SELECT + COUNT ( * ) * 80 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT - ( + + CASE - 87 WHEN - 37 * AVG ( + - CAST( + 73 AS SIGNED ) ) * - MAX( ALL + 93 ) - + - 89 + - - 83 THEN + - 26 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT - ( + + CASE - 87 WHEN - 37 * AVG ( + - CAST ( + 73 AS INTEGER ) ) * - MAX ( ALL + 93 ) - + - 89 + - - 83 THEN + - 26 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT + 68 + - COUNT( * ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-6035
SELECT + 68 + - COUNT ( * ) AS col1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT ALL - ( + 65 ) * - 14 - - + COALESCE ( - 30, 92 * - 72 ) DIV - 86
----
910

skipif mysql # not compatible
query I rowsort label-6036
SELECT ALL - ( + 65 ) * - 14 - - + COALESCE ( - 30, 92 * - 72 ) / - 86
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL 92 + COUNT( * ) + + - 65 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL 92 + COUNT ( * ) + + - 65 AS col1
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-6038
SELECT 12 AS col0, - 20 DIV - 26
----
12
0

skipif mysql # not compatible
query II rowsort label-6038
SELECT 12 AS col0, - 20 / - 26
----
12
0

query I rowsort
SELECT DISTINCT - CASE 3 WHEN - - 97 THEN - - 44 ELSE NULL END * + 64 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6040
SELECT + 50 + - 58 + - + COUNT( 32 ) * + + CAST( - - 44 AS SIGNED ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6040
SELECT + 50 + - 58 + - + COUNT ( 32 ) * + + CAST ( - - 44 AS INTEGER ) AS col1
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT ALL - 48 * + 45 * - + CAST( + 61 AS SIGNED ) AS col0
----
131760

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL - 48 * + 45 * - + CAST ( + 61 AS INTEGER ) AS col0
----
131760

query I rowsort
SELECT + 26 + + - 67 + + - 44 * - 99 * - - 61 * - 70 col0
----
-18600161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT DISTINCT 73 * + AVG ( ALL + - 0 ) / - 73 + + CASE + - 83 WHEN - 93 THEN + 70 WHEN + CAST( NULL AS SIGNED ) THEN + 39 * - 15 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT DISTINCT 73 * + AVG ( ALL + - 0 ) / - 73 + + CASE + - 83 WHEN - 93 THEN + 70 WHEN + CAST ( NULL AS INTEGER ) THEN + 39 * - 15 ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT ALL - 66 * - + 94 + - 21 DIV 99 AS col1
----
6204

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - 66 * - + 94 + - 21 / 99 AS col1
----
6204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6045
SELECT - 35 * - COUNT( * ) * 19 * 62 + - 25 DIV + 74 * 57 AS col0
----
41230

skipif mysql # not compatible
query I rowsort label-6045
SELECT - 35 * - COUNT ( * ) * 19 * 62 + - 25 / + 74 * 57 AS col0
----
41230

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL + MAX( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + MAX ( - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT + 84 + - MAX( ALL + 46 )
----
38

skipif mysql # not compatible
query I rowsort label-6047
SELECT + 84 + - MAX ( ALL + 46 )
----
38

query I rowsort
SELECT - 69 * - 33
----
2277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6049
SELECT + 72 * COUNT( * ) + - + 10 * CAST( - 21 AS SIGNED ) - 25 - + + 58
----
199

skipif mysql # not compatible
query I rowsort label-6049
SELECT + 72 * COUNT ( * ) + - + 10 * CAST ( - 21 AS INTEGER ) - 25 - + + 58
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL - 86 * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - 86 * COUNT ( * )
----
-86

query I rowsort
SELECT DISTINCT + - 38 * + 19 - + COALESCE ( - 41, - ( 12 ) )
----
-681

query II rowsort
SELECT ALL + 79 col2, 43 AS col2
----
79
43

query II rowsort
SELECT ALL - + 13 * - 69 AS col0, + 15 AS col2
----
897
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6054
SELECT + - 42 * + COUNT( * ) * SUM( ALL + 66 ) + - COUNT( * ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6054
SELECT + - 42 * + COUNT ( * ) * SUM ( ALL + 66 ) + - COUNT ( * ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6055
SELECT + - 97 * + 42 + + COUNT( * ) * + COUNT( * )
----
-4073

skipif mysql # not compatible
query I rowsort label-6055
SELECT + - 97 * + 42 + + COUNT ( * ) * + COUNT ( * )
----
-4073

onlyif mysql # aggregate syntax: 
query II rowsort label-6056
SELECT DISTINCT ( 31 ) col2, CASE - 61 WHEN - COUNT( * ) * 54 + + 48 THEN + CASE + MAX( ALL - - 65 ) WHEN + + AVG ( + 30 ) + + 90 * 99 THEN - + 68 - + 21 + - 63 ELSE NULL END * 49 END
----
31
NULL

skipif mysql # not compatible
query II rowsort label-6056
SELECT DISTINCT ( 31 ) col2, CASE - 61 WHEN - COUNT ( * ) * 54 + + 48 THEN + CASE + MAX ( ALL - - 65 ) WHEN + + AVG ( + 30 ) + + 90 * 99 THEN - + 68 - + 21 + - 63 ELSE NULL END * 49 END
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT + + COUNT( * ) * + - COUNT( * ) * + 19 + 69 - + ( - 75 ) * SUM( ALL - CASE + COALESCE ( - 45, + 21 + + + 63 ) WHEN + 30 + 96 THEN - 38 END ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6057
SELECT + + COUNT ( * ) * + - COUNT ( * ) * + 19 + 69 - + ( - 75 ) * SUM ( ALL - CASE + COALESCE ( - 45, + 21 + + + 63 ) WHEN + 30 + 96 THEN - 38 END ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + ( + + MIN( + 87 ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6058
SELECT + ( + + MIN ( + 87 ) ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - COUNT( * ) * + - 2
----
2

skipif mysql # not compatible
query I rowsort label-6059
SELECT - COUNT ( * ) * + - 2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6060
SELECT DISTINCT 70 + - + CASE + - 97 WHEN - ( - ( + + 15 ) ) * - 60 THEN CASE 19 WHEN - + 0 THEN NULL WHEN - + 30 THEN + - ( - - 51 ) + - 50 WHEN - NULLIF ( + - NULLIF ( CAST( + CAST( 7 AS SIGNED ) AS SIGNED ), + 38 ), 46 / + SUM( ALL + CAST( 3 AS DECIMAL ) ) ) + 20 * - 24 THEN 50 END ELSE NULL END + COUNT( * ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT 70 + - + CASE + - 97 WHEN - ( - ( + + 15 ) ) * - 60 THEN CASE 19 WHEN - + 0 THEN NULL WHEN - + 30 THEN + - ( - - 51 ) + - 50 WHEN - NULLIF ( + - NULLIF ( CAST ( + CAST ( 7 AS INTEGER ) AS INTEGER ), + 38 ), 46 / + SUM ( ALL + CAST ( 3 AS REAL ) ) ) + 20 * - 24 THEN 50 END ELSE NULL END + COUNT ( * ) * 25
----
NULL

query II rowsort
SELECT ALL 87 + + 91, + 49 col2
----
178
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6062
SELECT DISTINCT + 25 + - COUNT( * ) AS col2, 22 + + NULLIF ( - 77, + + COUNT( * ) - 99 ) + + 13 * - 73
----
24
-1004

skipif mysql # not compatible
query II rowsort label-6062
SELECT DISTINCT + 25 + - COUNT ( * ) AS col2, 22 + + NULLIF ( - 77, + + COUNT ( * ) - 99 ) + + 13 * - 73
----
24
-1004

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT 22 + ( SUM( DISTINCT 6 ) ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT 22 + ( SUM ( DISTINCT 6 ) ) AS col2
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6064
SELECT ALL SUM( DISTINCT ( - 61 ) ) col0, CAST( - - ( - + ( 82 ) ) AS SIGNED ) DIV + COUNT( * ) AS col2
----
-61
-82

skipif mysql # not compatible
query II rowsort label-6064
SELECT ALL SUM ( DISTINCT ( - 61 ) ) col0, CAST ( - - ( - + ( 82 ) ) AS INTEGER ) / + COUNT ( * ) AS col2
----
-61
-82

query II rowsort
SELECT + 15 * + 55 AS col2, - 76 AS col1
----
825
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), + 31 ) + 91 + 51 + + 53 * - 86 + 83 / + 8 * - 50 * - - ( - - ( + - NULLIF ( 9, - 72 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), + 31 ) + 91 + 51 + + 53 * - 86 + 83 / + 8 * - 50 * - - ( - - ( + - NULLIF ( 9, - 72 ) ) )
----
NULL

query I rowsort
SELECT DISTINCT + 72 * - 63
----
-4536

query I rowsort
SELECT + 84 * - 65 * - 15 col1
----
81900

onlyif mysql # aggregate syntax: 
query II rowsort label-6069
SELECT - COUNT( * ) * - 8 AS col1, 0
----
8
0

skipif mysql # not compatible
query II rowsort label-6069
SELECT - COUNT ( * ) * - 8 AS col1, 0
----
8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6070
SELECT + 18 DIV 64 + 75
----
75

skipif mysql # not compatible
query I rowsort label-6070
SELECT + 18 / 64 + 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT - COALESCE ( - 71, - CASE + CASE ( + - 18 ) WHEN CASE - 38 WHEN - COUNT( * ) THEN + - 84 ELSE - - 43 END THEN - 9 WHEN - - 74 THEN + + 74 * - + 78 END WHEN ( - 51 ) * + 98 + 0 THEN NULL ELSE - 96 * 11 END )
----
71

skipif mysql # not compatible
query I rowsort label-6071
SELECT - COALESCE ( - 71, - CASE + CASE ( + - 18 ) WHEN CASE - 38 WHEN - COUNT ( * ) THEN + - 84 ELSE - - 43 END THEN - 9 WHEN - - 74 THEN + + 74 * - + 78 END WHEN ( - 51 ) * + 98 + 0 THEN NULL ELSE - 96 * 11 END )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6072
SELECT ALL - 89 * - + CAST( NULL AS DECIMAL ) * COALESCE ( - 38, - - 64, + - COUNT( * ) + COUNT( DISTINCT 86 ) / - CAST( NULL AS SIGNED ) ) + - 2 AS col1, + 8 + 31 AS col1
----
NULL
39

skipif mysql # not compatible
query II rowsort label-6072
SELECT ALL - 89 * - + CAST ( NULL AS REAL ) * COALESCE ( - 38, - - 64, + - COUNT ( * ) + COUNT ( DISTINCT 86 ) / - CAST ( NULL AS INTEGER ) ) + - 2 AS col1, + 8 + 31 AS col1
----
NULL
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT 25 + - 72 * + MAX( DISTINCT + 24 ) AS col2
----
-1703

skipif mysql # not compatible
query I rowsort label-6073
SELECT 25 + - 72 * + MAX ( DISTINCT + 24 ) AS col2
----
-1703

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT DISTINCT - COALESCE ( - 52, + - COUNT( * ) + - 58 ) * + - MIN( DISTINCT - 99 ) + + 91 AS col0, + 31 + - 14 AS col0
----
5239
17

skipif mysql # not compatible
query II rowsort label-6074
SELECT DISTINCT - COALESCE ( - 52, + - COUNT ( * ) + - 58 ) * + - MIN ( DISTINCT - 99 ) + + 91 AS col0, + 31 + - 14 AS col0
----
5239
17

query I rowsort
SELECT - NULLIF ( + 33, - + 56 + - - 13 ) * - 79
----
2607

query I rowsort
SELECT DISTINCT 91 * - + 26 + 62
----
-2304

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6077
SELECT ALL - ( + COUNT( * ) ) AS col0, 68 * - - 0 DIV MAX( DISTINCT + 77 ) AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-6077
SELECT ALL - ( + COUNT ( * ) ) AS col0, 68 * - - 0 / MAX ( DISTINCT + 77 ) AS col0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT 27 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT 27 / - 50
----
0

query I rowsort
SELECT - 92 + 62 + NULLIF ( 67, - - 22 ) * - NULLIF ( + 19, + 71 ) * - 60 * - 33
----
-2520570

query I rowsort
SELECT 76 + + - 92
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT - 90 * - ( 43 ) + + COALESCE ( - + 0, 25 ) - + - 57 * - 17 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT - 90 * - ( 43 ) + + COALESCE ( - + 0, 25 ) - + - 57 * - 17 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL - - 73 + 58 AS col2, + 15 col2
----
131
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT + NULLIF ( - 72, - COUNT( * ) + 74 ) - + CASE - 98 WHEN CAST( - 74 AS SIGNED ) + 31 * + 35 * + 48 THEN + 48 * - - 56 WHEN - 35 * + CAST( NULL AS SIGNED ) + 44 THEN NULL END / - + 43 + - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6083
SELECT + NULLIF ( - 72, - COUNT ( * ) + 74 ) - + CASE - 98 WHEN CAST ( - 74 AS INTEGER ) + 31 * + 35 * + 48 THEN + 48 * - - 56 WHEN - 35 * + CAST ( NULL AS INTEGER ) + 44 THEN NULL END / - + 43 + - 81 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6084
SELECT DISTINCT + 38 + - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT + 38 + - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT 85 * + + 59 AS col0
----
5015

onlyif mysql # DIV for integer division: 
query I rowsort label-6086
SELECT 92 DIV + + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6086
SELECT 92 / + + 61 AS col2
----
1

query I rowsort
SELECT 95 + - 57 col2
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6088
SELECT - 39, COALESCE ( + CAST( + COUNT( * ) AS SIGNED ), - - 19 * - + 86, 1 ) + - + 19 AS col1
----
-39
-18

skipif mysql # not compatible
query II rowsort label-6088
SELECT - 39, COALESCE ( + CAST ( + COUNT ( * ) AS INTEGER ), - - 19 * - + 86, 1 ) + - + 19 AS col1
----
-39
-18

query I rowsort
SELECT 37 * + + 33 AS col1
----
1221

onlyif mysql # aggregate syntax: 
query II rowsort label-6090
SELECT ( 7 ) - + COUNT( * ), - COUNT( * ) AS col0
----
6
-1

skipif mysql # not compatible
query II rowsort label-6090
SELECT ( 7 ) - + COUNT ( * ), - COUNT ( * ) AS col0
----
6
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6091
SELECT ALL CAST( NULL AS DECIMAL ) + - - 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL CAST ( NULL AS REAL ) + - - 65 AS col1
----
NULL

query II rowsort
SELECT ALL 50 AS col1, + 36 - - - 45 AS col0
----
50
-9

query I rowsort
SELECT DISTINCT NULLIF ( + 47, + - 74 * - 8 + 60 / + - 30 * + 15 ) * - 63 + 48 * 36
----
-1233

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ALL - 76 - + 67 + 73 DIV 70 * + 80 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 76 - + 67 + 73 / 70 * + 80 AS col2
----
-63

query I rowsort
SELECT 10 * + - 15
----
-150

query I rowsort
SELECT 26 + - 24
----
2

query I rowsort
SELECT ( - - ( - - 60 ) ) * - 69 * + + 73
----
-302220

query I rowsort
SELECT ALL 31 * - ( ( + 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + COUNT( * ) * + 89 + + 8 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-6099
SELECT + COUNT ( * ) * + 89 + + 8 AS col2
----
97

query I rowsort
SELECT ALL - ( 59 ) AS col2
----
-59

query I rowsort
SELECT + 83 + + 44
----
127

query I rowsort
SELECT 42 * + + 97
----
4074

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT + + 41 * 13 * SUM( + 97 ) + COALESCE ( + 83, + 17 )
----
51784

skipif mysql # not compatible
query I rowsort label-6103
SELECT + + 41 * 13 * SUM ( + 97 ) + COALESCE ( + 83, + 17 )
----
51784

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT - 17 DIV 98 + + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6104
SELECT - 17 / 98 + + 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT - COUNT( * ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-6105
SELECT - COUNT ( * ) + - 92
----
-93

query I rowsort
SELECT + + 12 * + 60 + + - 81
----
639

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT + COUNT( - 27 )
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT + COUNT ( - 27 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6108
SELECT + + 5 * COUNT( DISTINCT + 46 ) - - CAST( NULL AS SIGNED ) + - CASE - - 25 WHEN - 88 THEN NULL ELSE + 82 END / 12 AS col2, - 9 * 76
----
NULL
-684

skipif mysql # not compatible
query II rowsort label-6108
SELECT + + 5 * COUNT ( DISTINCT + 46 ) - - CAST ( NULL AS INTEGER ) + - CASE - - 25 WHEN - 88 THEN NULL ELSE + 82 END / 12 AS col2, - 9 * 76
----
NULL
-684

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT 42 - MIN( - - 0 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-6109
SELECT 42 - MIN ( - - 0 ) AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT ALL 20 + - - COUNT( * ) col1
----
21

skipif mysql # not compatible
query I rowsort label-6110
SELECT ALL 20 + - - COUNT ( * ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT - MIN( ALL + + 30 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-6111
SELECT - MIN ( ALL + + 30 ) AS col1
----
-30

query I rowsort
SELECT 91 * + 63
----
5733

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT ALL + MAX( DISTINCT ( + 15 ) ) + - ( + + 10 ) * - - 94 AS col2
----
-925

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL + MAX ( DISTINCT ( + 15 ) ) + - ( + + 10 ) * - - 94 AS col2
----
-925

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT ALL + ( + - COALESCE ( - 50, COUNT( * ) ) ) + + COUNT( * ) + + ( + + 3 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-6114
SELECT ALL + ( + - COALESCE ( - 50, COUNT ( * ) ) ) + + COUNT ( * ) + + ( + + 3 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT 71 * + COUNT( * ) + + COALESCE ( + + 83, + 24 ) AS col0
----
154

skipif mysql # not compatible
query I rowsort label-6115
SELECT 71 * + COUNT ( * ) + + COALESCE ( + + 83, + 24 ) AS col0
----
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT ALL + COALESCE ( 2, + 55 ) + - COUNT( * ) + 33
----
34

skipif mysql # not compatible
query I rowsort label-6116
SELECT ALL + COALESCE ( 2, + 55 ) + - COUNT ( * ) + 33
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL COUNT( * ) + - - 21 * CAST( + - 46 AS SIGNED ) + 40
----
-925

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL COUNT ( * ) + - - 21 * CAST ( + - 46 AS INTEGER ) + 40
----
-925

query I rowsort
SELECT 60 + + 7
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT CAST( 40 AS SIGNED ) * 87 + 5 * - 2 * + 92 AS col1
----
2560

skipif mysql # not compatible
query I rowsort label-6119
SELECT CAST ( 40 AS INTEGER ) * 87 + 5 * - 2 * + 92 AS col1
----
2560

query I rowsort
SELECT 30 * 9 * + - 65
----
-17550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6121
SELECT DISTINCT + COALESCE ( - 91, 43, + 96 DIV + ( - 49 ) ) - - - CASE - + 74 WHEN 81 THEN - + 57 WHEN + - CAST( NULL AS SIGNED ) THEN 22 ELSE - 9 + - 48 + + 25 * - COUNT( * ) + 14 * + - COUNT( * ) * - - COUNT( * ) END + + COUNT( ALL ( + 36 ) ) * 83 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT + COALESCE ( - 91, 43, + 96 / + ( - 49 ) ) - - - CASE - + 74 WHEN 81 THEN - + 57 WHEN + - CAST ( NULL AS INTEGER ) THEN 22 ELSE - 9 + - 48 + + 25 * - COUNT ( * ) + 14 * + - COUNT ( * ) * - - COUNT ( * ) END + + COUNT ( ALL ( + 36 ) ) * 83 AS col2
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT ALL + CAST( - 64 AS SIGNED ) - - - NULLIF ( - 39, - + 77 ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + CAST ( - 64 AS INTEGER ) - - - NULLIF ( - 39, - + 77 ) AS col2
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT 20 * MAX( ALL + - 75 )
----
-1500

skipif mysql # not compatible
query I rowsort label-6123
SELECT 20 * MAX ( ALL + - 75 )
----
-1500

onlyif mysql # DIV for integer division: 
query I rowsort label-6124
SELECT ALL + 17 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL + 17 / - 39 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL SUM( - ( - 92 ) )
----
92

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL SUM ( - ( - 92 ) )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6126
SELECT 10 * + COUNT( * ) AS col1, 43 AS col2
----
10
43

skipif mysql # not compatible
query II rowsort label-6126
SELECT 10 * + COUNT ( * ) AS col1, 43 AS col2
----
10
43

query I rowsort
SELECT 46 + - 69 AS col1
----
-23

query I rowsort
SELECT 20 * + 24 * 17 AS col1
----
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT ALL COUNT( ALL - ( 27 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL COUNT ( ALL - ( 27 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT SUM( 99 ) + 88 + + 19 - COUNT( * ) * 81
----
125

skipif mysql # not compatible
query I rowsort label-6130
SELECT SUM ( 99 ) + 88 + + 19 - COUNT ( * ) * 81
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-6131
SELECT + 26 DIV - + 40 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6131
SELECT + 26 / - + 40 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT DISTINCT CASE - 72 WHEN + - COUNT( * ) + + 30 THEN - ( + + 78 ) * 90 * - - 97 + - 89 * + + 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6132
SELECT DISTINCT CASE - 72 WHEN + - COUNT ( * ) + + 30 THEN - ( + + 78 ) * 90 * - - 97 + - 89 * + + 58 END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 0, 90 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) * + - 49 * 25
----
1225

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) * + - 49 * 25
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL COUNT( + 64 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6135
SELECT ALL COUNT ( + 64 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6136
SELECT ALL + CAST( - + 76 AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6136
SELECT ALL + CAST ( - + 76 AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT - ( COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - ( COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT COALESCE ( + 23, + 70 * + 66, 74 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT - + COUNT( * ) * + - 80
----
80

skipif mysql # not compatible
query I rowsort label-6139
SELECT - + COUNT ( * ) * + - 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT + + ( MIN( + 97 ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6140
SELECT + + ( MIN ( + 97 ) ) AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT DISTINCT - 65 * + + 58 + - - 49 DIV - 57
----
-3770

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT - 65 * + + 58 + - - 49 / - 57
----
-3770

query I rowsort
SELECT ALL 81 * 47 + 54
----
3861

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT ALL COALESCE ( + CASE COUNT( + 99 ) WHEN + NULLIF ( 54, SUM( ALL + - 14 ) ) THEN + - 96 * MIN( DISTINCT - ( + + 36 ) ) + - + 58 WHEN 94 THEN NULL END, - 62 ) * - 65 + - COUNT( DISTINCT 91 ) + COUNT( - 56 )
----
4030

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL COALESCE ( + CASE COUNT ( + 99 ) WHEN + NULLIF ( 54, SUM ( ALL + - 14 ) ) THEN + - 96 * MIN ( DISTINCT - ( + + 36 ) ) + - + 58 WHEN 94 THEN NULL END, - 62 ) * - 65 + - COUNT ( DISTINCT 91 ) + COUNT ( - 56 )
----
4030

query I rowsort
SELECT DISTINCT + 36 * - + 48 + - - 64 + + 38 col1
----
-1626

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6145
SELECT ALL MAX( + + 31 ) DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL MAX ( + + 31 ) / - 22
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6146
SELECT + 24 DIV 14 AS col2, 12
----
1
12

skipif mysql # not compatible
query II rowsort label-6146
SELECT + 24 / 14 AS col2, 12
----
1
12

query I rowsort
SELECT ALL 2 * + 97 * - 53 + + 32 - 57
----
-10307

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT - 63 * + 5 * 91 + + - COUNT( * ) AS col1, 76
----
-28666
76

skipif mysql # not compatible
query II rowsort label-6148
SELECT - 63 * + 5 * 91 + + - COUNT ( * ) AS col1, 76
----
-28666
76

onlyif mysql # DIV for integer division: 
query II rowsort label-6149
SELECT ALL 20 DIV - - 67 - 10 - + 64 * + 66 AS col2, + 28
----
-4234
28

skipif mysql # not compatible
query II rowsort label-6149
SELECT ALL 20 / - - 67 - 10 - + 64 * + 66 AS col2, + 28
----
-4234
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT + 34 + 4 + + 3 + - - 10 + + 21 * + - NULLIF ( + - MIN( DISTINCT 79 ), + 40 + - 42 + + + 48 + 27 / COUNT( * ) * 12 + - 43 ) col2
----
1710

skipif mysql # not compatible
query I rowsort label-6150
SELECT + 34 + 4 + + 3 + - - 10 + + 21 * + - NULLIF ( + - MIN ( DISTINCT 79 ), + 40 + - 42 + + + 48 + 27 / COUNT ( * ) * 12 + - 43 ) col2
----
1710

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + 40 / - CASE + CASE + 98 WHEN + 67 + + COUNT( * ) THEN 11 - - 43 - + - 44 + + + 38 * - 36 + + 69 WHEN + NULLIF ( + - 5, + COUNT( ALL 36 ) ) THEN NULL ELSE - 87 END WHEN - 96 THEN NULL WHEN - COUNT( + + 8 ) * COUNT( * ) THEN + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT + 40 / - CASE + CASE + 98 WHEN + 67 + + COUNT ( * ) THEN 11 - - 43 - + - 44 + + + 38 * - 36 + + 69 WHEN + NULLIF ( + - 5, + COUNT ( ALL 36 ) ) THEN NULL ELSE - 87 END WHEN - 96 THEN NULL WHEN - COUNT ( + + 8 ) * COUNT ( * ) THEN + 45 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6152
SELECT + 51 * 28 DIV + - MIN( + + 79 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6152
SELECT + 51 * 28 / + - MIN ( + + 79 ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT - COUNT( * ) * + + 39 * + - COUNT( * ) * 83
----
3237

skipif mysql # not compatible
query I rowsort label-6153
SELECT - COUNT ( * ) * + + 39 * + - COUNT ( * ) * 83
----
3237

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT ALL ( + 92 ) * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-6154
SELECT ALL ( + 92 ) * + COUNT ( * )
----
92

query I rowsort
SELECT - ( + - ( 94 ) ) col2
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6156
SELECT ALL COUNT( * ) AS col0, + 9
----
1
9

skipif mysql # not compatible
query II rowsort label-6156
SELECT ALL COUNT ( * ) AS col0, + 9
----
1
9

query I rowsort
SELECT + 80 - 84
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-6158
SELECT DISTINCT NULLIF ( + 71, - 3 ), - 8 + - COUNT( * ) * + COUNT( * ) + 76 AS col2
----
71
67

skipif mysql # not compatible
query II rowsort label-6158
SELECT DISTINCT NULLIF ( + 71, - 3 ), - 8 + - COUNT ( * ) * + COUNT ( * ) + 76 AS col2
----
71
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT - 56 + + - CASE 18 WHEN - AVG ( + - 89 ) * - ( ( + 15 ) ) + + COUNT( - 27 ) THEN - 75 WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT - 56 + + - CASE 18 WHEN - AVG ( + - 89 ) * - ( ( + 15 ) ) + + COUNT ( - 27 ) THEN - 75 WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( - 45, - 48 )
----
45

query I rowsort
SELECT - 50 * 45 * ( - 94 ) AS col0
----
211500

onlyif mysql # aggregate syntax: 
query II rowsort label-6162
SELECT ALL COUNT( * ) AS col2, - 93
----
1
-93

skipif mysql # not compatible
query II rowsort label-6162
SELECT ALL COUNT ( * ) AS col2, - 93
----
1
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT DISTINCT COUNT( + + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-6163
SELECT DISTINCT COUNT ( + + 36 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT DISTINCT CASE - + 10 WHEN + 5 THEN + ( CASE 67 WHEN CASE - + 19 WHEN - 16 + 57 * + - CAST( 4 AS SIGNED ) THEN + 41 + 67 * - COALESCE ( 92, - 66 + 31, + 50 ) ELSE NULL END THEN - - 95 ELSE 17 + 81 END ) - 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT CASE - + 10 WHEN + 5 THEN + ( CASE 67 WHEN CASE - + 19 WHEN - 16 + 57 * + - CAST ( 4 AS INTEGER ) THEN + 41 + 67 * - COALESCE ( 92, - 66 + 31, + 50 ) ELSE NULL END THEN - - 95 ELSE 17 + 81 END ) - 93 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6165
SELECT ALL - 59 DIV + - 31 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL - 59 / + - 31 AS col0
----
1

query I rowsort
SELECT - 14 * - 86 AS col2
----
1204

onlyif mysql # aggregate syntax: 
query II rowsort label-6167
SELECT ALL 15 AS col0, - ( COUNT( * ) ) * - 56
----
15
56

skipif mysql # not compatible
query II rowsort label-6167
SELECT ALL 15 AS col0, - ( COUNT ( * ) ) * - 56
----
15
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT COUNT( ALL - - 72 )
----
1

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT COUNT ( ALL - - 72 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6169
SELECT DISTINCT - 41 * - 18 DIV - COUNT( * )
----
-738

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT - 41 * - 18 / - COUNT ( * )
----
-738

query I rowsort
SELECT ALL + 86 + + 9
----
95

query I rowsort
SELECT - 66 + - COALESCE ( 54, 21 * + - 87 * - + 78 + + 69, - + 43 + - 20 + + 28 )
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6172
SELECT - + 45 + - 7 - - - COUNT( * ) * - - 26 + + + 10 - AVG ( DISTINCT 52 ) + CAST( NULL AS SIGNED ) AS col2, 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-6172
SELECT - + 45 + - 7 - - - COUNT ( * ) * - - 26 + + + 10 - AVG ( DISTINCT 52 ) + CAST ( NULL AS INTEGER ) AS col2, 29
----
NULL
29

query I rowsort
SELECT - CASE - + 85 WHEN + + 27 * 64 THEN NULL ELSE NULLIF ( + + 21, - 43 ) END
----
-21

query I rowsort
SELECT ALL - ( - 79 ) + - + 97
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - - 70 + - 71 * ( + CASE - 46 WHEN - - 83 * - 71 * + + 28 * - AVG ( DISTINCT - 17 ) + + - 4 * - 49 + - - 76 THEN NULL ELSE + 32 END ) * - + MAX( ALL 28 )
----
63686

skipif mysql # not compatible
query I rowsort label-6175
SELECT - - 70 + - 71 * ( + CASE - 46 WHEN - - 83 * - 71 * + + 28 * - AVG ( DISTINCT - 17 ) + + - 4 * - 49 + - - 76 THEN NULL ELSE + 32 END ) * - + MAX ( ALL 28 )
----
63686

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT - - 64 * ( - COUNT( * ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-6176
SELECT - - 64 * ( - COUNT ( * ) ) AS col1
----
-64

query I rowsort
SELECT DISTINCT + 73 * - 96
----
-7008

query I rowsort
SELECT 29 * - 28 + 31 col1
----
-781

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6179
SELECT ALL 50 DIV - 3 + + 54 + - COUNT( + 73 )
----
37

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL 50 / - 3 + + 54 + - COUNT ( + 73 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT + MAX( + - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6180
SELECT + MAX ( + - 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT + + 63 * - COUNT( * ) + - + 50
----
-113

skipif mysql # not compatible
query I rowsort label-6181
SELECT + + 63 * - COUNT ( * ) + - + 50
----
-113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT - 95 * - 99 * - 77 + 49 + 18 + 40 / 63 * - + CAST( NULL AS SIGNED ) + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT - 95 * - 99 * - 77 + 49 + 18 + 40 / 63 * - + CAST ( NULL AS INTEGER ) + 35 AS col2
----
NULL

query I rowsort
SELECT ALL + + ( + 98 )
----
98

query II rowsort
SELECT + 89, - 36 AS col0
----
89
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT - 82 * - 1 - + 55 * MIN( + 86 ) + + + 37
----
-4611

skipif mysql # not compatible
query I rowsort label-6185
SELECT - 82 * - 1 - + 55 * MIN ( + 86 ) + + + 37
----
-4611

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT ALL - 62 * - COUNT( * ) * + + 92 - - 37
----
5741

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL - 62 * - COUNT ( * ) * + + 92 - - 37
----
5741

query I rowsort
SELECT - 28 * - + 4
----
112

query I rowsort
SELECT ALL - 16 * + 86 * - 45
----
61920

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT + 18 * + - 71 - - COUNT( * )
----
-1277

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT + 18 * + - 71 - - COUNT ( * )
----
-1277

query II rowsort
SELECT ALL + 95 AS col1, 68
----
95
68

onlyif mysql # DIV for integer division: 
query II rowsort label-6191
SELECT 26 * + 75 + + - ( + 12 ), - 88 + + 27 + - + 99 DIV - 71 AS col2
----
1938
-60

skipif mysql # not compatible
query II rowsort label-6191
SELECT 26 * + 75 + + - ( + 12 ), - 88 + + 27 + - + 99 / - 71 AS col2
----
1938
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + COUNT( DISTINCT 85 )
----
1

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + COUNT ( DISTINCT 85 )
----
1

query I rowsort
SELECT + 98 * 47
----
4606

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT - COUNT( * ) * + 74 + - + 97 AS col2
----
-171

skipif mysql # not compatible
query I rowsort label-6194
SELECT - COUNT ( * ) * + 74 + - + 97 AS col2
----
-171

query I rowsort
SELECT - 68 * + + 70 * 25 * + 54
----
-6426000

query I rowsort
SELECT + 33 * + NULLIF ( 74, + 43 ) AS col2
----
2442

query I rowsort
SELECT 26 + + 95
----
121

query I rowsort
SELECT 36 * + 81 * - + 31 AS col1
----
-90396

query I rowsort
SELECT DISTINCT 67 * + + 7 * 49
----
22981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT ALL 79 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL 79 + + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT 62 AS col2, - 81
----
62
-81

query I rowsort
SELECT ALL 2 + 11 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ( + 8 ) + - - COUNT( ALL - 62 ) + - CASE + 70 WHEN 0 THEN NULL ELSE MIN( DISTINCT 90 ) END AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6203
SELECT ( + 8 ) + - - COUNT ( ALL - 62 ) + - CASE + 70 WHEN 0 THEN NULL ELSE MIN ( DISTINCT 90 ) END AS col1
----
-81

query II rowsort
SELECT - 21 AS col1, 35 AS col2
----
-21
35

query I rowsort
SELECT + 76 * - + 52 AS col1
----
-3952

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL - 79 + - - COUNT( * ) + - 54
----
-132

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL - 79 + - - COUNT ( * ) + - 54
----
-132

query II rowsort
SELECT - 88, - 50 AS col0
----
-88
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - NULLIF ( 62, MIN( ALL + 5 ) ) + - 85 col0
----
-147

skipif mysql # not compatible
query I rowsort label-6208
SELECT - NULLIF ( 62, MIN ( ALL + 5 ) ) + - 85 col0
----
-147

query I rowsort
SELECT DISTINCT 30 + + - 14 * + ( 84 ) AS col1
----
-1146

query II rowsort
SELECT ALL - - 27 * ( + 60 ) + 99, ( - - 66 ) * + 57 AS col1
----
1719
3762

onlyif mysql # aggregate syntax: 
query I rowsort label-6211
SELECT + CASE + + 15 WHEN + 18 * - + COUNT( * ) THEN - 89 ELSE NULL END / + 76 + - + COUNT( * ) * - 20 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT + CASE + + 15 WHEN + 18 * - + COUNT ( * ) THEN - 89 ELSE NULL END / + 76 + - + COUNT ( * ) * - 20 AS col2
----
NULL

query I rowsort
SELECT ALL + 52 + - 16 AS col2
----
36

query II rowsort
SELECT ALL - + 53 AS col2, - 48 + 80 * - 59 * - - 27 * + + 99
----
-53
-12616608

query I rowsort
SELECT ALL + - 35 * - 4
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6215
SELECT - COALESCE ( + MAX( + 48 ), - 85 * + 73 * - CAST( + 93 AS SIGNED ) + ( - 72 ) + + ( 8 ) * + 73 ) DIV - - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT - COALESCE ( + MAX ( + 48 ), - 85 * + 73 * - CAST ( + 93 AS INTEGER ) + ( - 72 ) + + ( 8 ) * + 73 ) / - - 87 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT 97 DIV 18 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-6216
SELECT 97 / 18 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT DISTINCT - + SUM( ALL - 62 ) AS col0, + 56 AS col0
----
62
56

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT - + SUM ( ALL - 62 ) AS col0, + 56 AS col0
----
62
56

query II rowsort
SELECT + 96, ( + + 83 ) AS col1
----
96
83

query I rowsort
SELECT ALL 42 * 83
----
3486

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT 76 DIV - - 52 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6220
SELECT 76 / - - 52 AS col1
----
1

query I rowsort
SELECT ( + - ( - 64 ) )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL - - MIN( - 15 ) * - + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL - - MIN ( - 15 ) * - + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6223
SELECT DISTINCT - MIN( ALL 3 ), COUNT( * ) + - 6 AS col0
----
-3
-5

skipif mysql # not compatible
query II rowsort label-6223
SELECT DISTINCT - MIN ( ALL 3 ), COUNT ( * ) + - 6 AS col0
----
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT - MAX( ALL - 17 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT - MAX ( ALL - 17 ) AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6225
SELECT ALL - CAST( + 95 AS SIGNED )
----
-95

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - CAST ( + 95 AS INTEGER )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT 30 + + COUNT( DISTINCT - - 69 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-6226
SELECT 30 + + COUNT ( DISTINCT - - 69 ) AS col0
----
31

query II rowsort
SELECT 65 - - 11 AS col0, - 71 * + 96 AS col1
----
76
-6816

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6228
SELECT ALL - 58 * + COALESCE ( - 55, + COUNT( * ) DIV + - 45 ) AS col0, 76 * 60 AS col0
----
3190
4560

skipif mysql # not compatible
query II rowsort label-6228
SELECT ALL - 58 * + COALESCE ( - 55, + COUNT ( * ) / + - 45 ) AS col0, 76 * 60 AS col0
----
3190
4560

query II rowsort
SELECT 36 * - 51, 93 * 79 * + 7 AS col0
----
-1836
51429

query I rowsort
SELECT - ( + - 75 ) * 31 * + 22 + + 32 + 32
----
51214

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT ALL - ( + COUNT( * ) ) AS col1, - COALESCE ( + COUNT( * ), - 4 ) AS col2
----
-1
-1

skipif mysql # not compatible
query II rowsort label-6231
SELECT ALL - ( + COUNT ( * ) ) AS col1, - COALESCE ( + COUNT ( * ), - 4 ) AS col2
----
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6232
SELECT DISTINCT 26 + - + NULLIF ( - COUNT( * ), + 5 ) + + - 9 DIV + - 64
----
27

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT 26 + - + NULLIF ( - COUNT ( * ), + 5 ) + + - 9 / + - 64
----
27

query I rowsort
SELECT ALL 61 + - 47 + + + 5 * + - 3
----
-1

query I rowsort
SELECT 64 + + + 42 AS col2
----
106

query II rowsort
SELECT ALL 66 + + 97, - 78 col1
----
163
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT 51 - ( COUNT( * ) ) * - 95
----
146

skipif mysql # not compatible
query I rowsort label-6236
SELECT 51 - ( COUNT ( * ) ) * - 95
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT 54 + + MIN( ALL + 85 ) AS col2
----
139

skipif mysql # not compatible
query I rowsort label-6237
SELECT 54 + + MIN ( ALL + 85 ) AS col2
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6238
SELECT - COALESCE ( 31, - COUNT( ALL + 60 ), + 44 + + - 84, - CASE 55 WHEN - 26 - - CAST( NULL AS SIGNED ) THEN - 18 + 62 + - - ( - 67 ) + - 12 END * CAST( + NULLIF ( CASE + - CAST( NULL AS SIGNED ) WHEN COALESCE ( - + 46, ( + 85 ) ) * 90 + + 81 THEN + COUNT( * ) ELSE NULL END, + 68 ) AS SIGNED ) + + 63 ) + COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-6238
SELECT - COALESCE ( 31, - COUNT ( ALL + 60 ), + 44 + + - 84, - CASE 55 WHEN - 26 - - CAST ( NULL AS INTEGER ) THEN - 18 + 62 + - - ( - 67 ) + - 12 END * CAST ( + NULLIF ( CASE + - CAST ( NULL AS INTEGER ) WHEN COALESCE ( - + 46, ( + 85 ) ) * 90 + + 81 THEN + COUNT ( * ) ELSE NULL END, + 68 ) AS INTEGER ) + + 63 ) + COUNT ( * ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT 32 * + + 98 - 62 * - - COUNT( * ) + - 42
----
3032

skipif mysql # not compatible
query I rowsort label-6239
SELECT 32 * + + 98 - 62 * - - COUNT ( * ) + - 42
----
3032

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT ALL ( 53 ) * - - COUNT( * ) col0, + 76 AS col1
----
53
76

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL ( 53 ) * - - COUNT ( * ) col0, + 76 AS col1
----
53
76

query I rowsort
SELECT ALL - 89 + + 86 + + CASE 24 WHEN 30 THEN 21 * - 61 * 29 ELSE NULL END + - 61 * + 13 / + 93
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT - COALESCE ( 16, + - COUNT( DISTINCT + CAST( - 21 AS SIGNED ) ) ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6242
SELECT - COALESCE ( 16, + - COUNT ( DISTINCT + CAST ( - 21 AS INTEGER ) ) ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT + CAST( NULL AS SIGNED ) - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT + CAST ( NULL AS INTEGER ) - - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT - - COALESCE ( 57, + + 58 + - + MIN( ALL + - 36 ) )
----
57

skipif mysql # not compatible
query I rowsort label-6244
SELECT - - COALESCE ( 57, + + 58 + - + MIN ( ALL + - 36 ) )
----
57

query I rowsort
SELECT DISTINCT - 34 - + 72
----
-106

query II rowsort
SELECT ALL + 23 * - 33, 15 AS col2
----
-759
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT NULLIF ( - COUNT( * ), - 90 )
----
-1

skipif mysql # not compatible
query I rowsort label-6247
SELECT NULLIF ( - COUNT ( * ), - 90 )
----
-1

query I rowsort
SELECT 22 + + ( - ( - + 18 ) ) AS col0
----
40

query I rowsort
SELECT 81 * + 52 * 56
----
235872

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - 43 + - CASE WHEN - 26 < + 21 * + - 13 * - - 88 + - + ( + AVG ( ALL + 35 ) ) * - MIN( - 32 ) THEN - 19 * + - 79 + - 70 WHEN NOT - 30 * - 58 >= + - 71 + - 72 THEN + 74 ELSE 78 * - 34 - - 35 / - 32 END + CASE ( - 45 ) WHEN - COUNT( * ) THEN NULLIF ( + 13, - 12 ) END * - 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 43 + - CASE WHEN - 26 < + 21 * + - 13 * - - 88 + - + ( + AVG ( ALL + 35 ) ) * - MIN ( - 32 ) THEN - 19 * + - 79 + - 70 WHEN NOT - 30 * - 58 >= + - 71 + - 72 THEN + 74 ELSE 78 * - 34 - - 35 / - 32 END + CASE ( - 45 ) WHEN - COUNT ( * ) THEN NULLIF ( + 13, - 12 ) END * - 22 AS col2
----
NULL

query I rowsort
SELECT 11 - - + 91 col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT ( MAX( - + 26 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6252
SELECT ( MAX ( - + 26 ) ) AS col1
----
-26

query I rowsort
SELECT 60 * - 71 * - 83 AS col0
----
353580

query I rowsort
SELECT ALL + 91 * 42 * - + 47 AS col1
----
-179634

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6255
SELECT ALL COALESCE ( + 62, - COUNT( * ), + + 83 * - 12 - - + 45 * - 96 + - 60 ) DIV 14 - + + 37
----
-33

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL COALESCE ( + 62, - COUNT ( * ), + + 83 * - 12 - - + 45 * - 96 + - 60 ) / 14 - + + 37
----
-33

query I rowsort
SELECT 40 + - - ( 97 ) * - 67
----
-6459

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT SUM( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-6257
SELECT SUM ( 98 )
----
98

query I rowsort
SELECT 49 + 76
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL - MAX( DISTINCT 86 ) * 1
----
-86

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL - MAX ( DISTINCT 86 ) * 1
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT + NULLIF ( + - COALESCE ( + 84, + MIN( DISTINCT + 5 ) + COUNT( * ) + 54 ), 12 * - ( COUNT( * ) ) + 17 + - COALESCE ( 23, 52 - 7 + 77 ) - CAST( NULL AS SIGNED ) * - 78 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6260
SELECT + NULLIF ( + - COALESCE ( + 84, + MIN ( DISTINCT + 5 ) + COUNT ( * ) + 54 ), 12 * - ( COUNT ( * ) ) + 17 + - COALESCE ( 23, 52 - 7 + 77 ) - CAST ( NULL AS INTEGER ) * - 78 ) AS col1
----
-84

query I rowsort
SELECT + 21 * - 86 * - 63 AS col1
----
113778

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6262
SELECT + 51 * - + 8 + - 79 AS col0, - CAST( NULL AS DECIMAL ) * 40 + + 50
----
-487
NULL

skipif mysql # not compatible
query II rowsort label-6262
SELECT + 51 * - + 8 + - 79 AS col0, - CAST ( NULL AS REAL ) * 40 + + 50
----
-487
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT ALL + ( - - ( COALESCE ( - COUNT( * ), 19 + 32 + MIN( - + ( 51 ) ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL + ( - - ( COALESCE ( - COUNT ( * ), 19 + 32 + MIN ( - + ( 51 ) ) ) ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6264
SELECT COUNT( * ), 19 AS col2
----
1
19

skipif mysql # not compatible
query II rowsort label-6264
SELECT COUNT ( * ), 19 AS col2
----
1
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT ALL - COALESCE ( + 17, - CAST( NULL AS SIGNED ) ) * - - 26 + - 46 + + - 95 AS col0
----
-583

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL - COALESCE ( + 17, - CAST ( NULL AS INTEGER ) ) * - - 26 + - 46 + + - 95 AS col0
----
-583

onlyif mysql # aggregate syntax: 
query I rowsort label-6266
SELECT DISTINCT + SUM( - - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT + SUM ( - - 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6267
SELECT - CASE + 92 WHEN 84 THEN + ( + 9 ) / CAST( NULL AS SIGNED ) END / - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - CASE + 92 WHEN 84 THEN + ( + 9 ) / CAST ( NULL AS INTEGER ) END / - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 75 * - + 18 + + + 97, 52 * - 95 col1
----
-1253
-4940

onlyif mysql # aggregate syntax: 
query II rowsort label-6269
SELECT COUNT( * ) col1, MAX( DISTINCT - + 23 ) col2
----
1
-23

skipif mysql # not compatible
query II rowsort label-6269
SELECT COUNT ( * ) col1, MAX ( DISTINCT - + 23 ) col2
----
1
-23

query I rowsort
SELECT DISTINCT - 82 + + NULLIF ( + 69, - 66 - 41 - + - 94 ) + - 78 AS col1
----
-91

query I rowsort
SELECT ALL + 27 * 64 AS col1
----
1728

query II rowsort
SELECT + 57 col0, 64 AS col0
----
57
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6273
SELECT ALL - 0 + - SUM( - 48 ) AS col1, - 64 AS col2
----
48
-64

skipif mysql # not compatible
query II rowsort label-6273
SELECT ALL - 0 + - SUM ( - 48 ) AS col1, - 64 AS col2
----
48
-64

query I rowsort
SELECT ALL + 37 + - + 57 + - + 39
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT - COUNT( * ) - - 59 + + - 25
----
33

skipif mysql # not compatible
query I rowsort label-6275
SELECT - COUNT ( * ) - - 59 + + - 25
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6276
SELECT 46 AS col1, COUNT( ALL 17 ) AS col1
----
46
1

skipif mysql # not compatible
query II rowsort label-6276
SELECT 46 AS col1, COUNT ( ALL 17 ) AS col1
----
46
1

query I rowsort
SELECT ALL NULLIF ( 20, 48 )
----
20

query II rowsort
SELECT - 22 AS col2, 92 AS col1
----
-22
92

query I rowsort
SELECT ALL + - 68 - 36 AS col2
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT DISTINCT + - 93 * - MIN( DISTINCT + - 8 )
----
-744

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT + - 93 * - MIN ( DISTINCT + - 8 )
----
-744

query I rowsort
SELECT + 61 + + 95 - - - ( 54 ) AS col1
----
102

query I rowsort
SELECT ALL - - 80 - + 65 col2
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6283
SELECT + COALESCE ( - MIN( + 85 ), + - 85, + CAST( - + 13 AS SIGNED ), + - 51 )
----
-85

skipif mysql # not compatible
query I rowsort label-6283
SELECT + COALESCE ( - MIN ( + 85 ), + - 85, + CAST ( - + 13 AS INTEGER ), + - 51 )
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT - 18 DIV + + 15 col1
----
-1

skipif mysql # not compatible
query I rowsort label-6284
SELECT - 18 / + + 15 col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6285
SELECT + CAST( NULL AS SIGNED ) * 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6285
SELECT + CAST ( NULL AS INTEGER ) * 24 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6286
SELECT DISTINCT - 42 DIV + 5
----
-8

skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT - 42 / + 5
----
-8

query I rowsort
SELECT ALL 93 * ( + 44 ) + + 92 AS col2
----
4184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT 54 / + + ( CAST( NULL AS SIGNED ) ) / - 84 + 24 + + 31 - + SUM( + 96 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT 54 / + + ( CAST ( NULL AS INTEGER ) ) / - 84 + 24 + + 31 - + SUM ( + 96 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT + 28 * - COUNT( 52 ) col0
----
-28

skipif mysql # not compatible
query I rowsort label-6289
SELECT + 28 * - COUNT ( 52 ) col0
----
-28

query I rowsort
SELECT + ( - 37 ) col2
----
-37

query I rowsort
SELECT ( - - ( + 27 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT DISTINCT + 93 * + ( - COUNT( * ) ) + + 60 * - 46
----
-2853

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT + 93 * + ( - COUNT ( * ) ) + + 60 * - 46
----
-2853

query I rowsort
SELECT ( - - 94 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT NULLIF ( + + ( - 26 ), + - ( 61 ) * + - NULLIF ( - 23, - - 45 * + + 2 ) ) / + 89 + - 10 - - CAST( NULL AS SIGNED ) + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT NULLIF ( + + ( - 26 ), + - ( 61 ) * + - NULLIF ( - 23, - - 45 * + + 2 ) ) / + 89 + - 10 - - CAST ( NULL AS INTEGER ) + + 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6295
SELECT DISTINCT - CASE - CAST( NULL AS DECIMAL ) WHEN + 62 - - COUNT( * ) + 13 * 39 THEN NULL WHEN + COUNT( * ) THEN + - 89 ELSE NULL END * + - 69 + - + 84 * - 35 * + 71 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6295
SELECT DISTINCT - CASE - CAST ( NULL AS REAL ) WHEN + 62 - - COUNT ( * ) + 13 * 39 THEN NULL WHEN + COUNT ( * ) THEN + - 89 ELSE NULL END * + - 69 + - + 84 * - 35 * + 71 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL + MIN( - 88 ) * - 27 AS col2
----
2376

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + MIN ( - 88 ) * - 27 AS col2
----
2376

onlyif mysql # DIV for integer division: 
query I rowsort label-6297
SELECT - 15 DIV 63 + - 84
----
-84

skipif mysql # not compatible
query I rowsort label-6297
SELECT - 15 / 63 + - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL COUNT( * ) * + + 52 + - - NULLIF ( 30, - 71 * + 24 * 99 )
----
82

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL COUNT ( * ) * + + 52 + - - NULLIF ( 30, - 71 * + 24 * 99 )
----
82

query I rowsort
SELECT COALESCE ( - 74, + 72 )
----
-74

query I rowsort
SELECT + 31 + - COALESCE ( - 32, + 72 ) * - 53 col1
----
-1665

query I rowsort
SELECT - 37 * - ( - 11 ) AS col2
----
-407

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6302
SELECT CASE + MAX( DISTINCT - - 21 ) WHEN CASE COUNT( * ) WHEN 73 THEN + COUNT( 54 ) + - CAST( NULL AS SIGNED ) + + 97 ELSE NULL END THEN - ( + + ( - - 20 ) ) + - 2 WHEN - + ( + + 33 ) / 49 + - + 31 * COUNT( * ) * 43 + - 95 - + 6 * + 34 THEN + COUNT( * ) ELSE COUNT( * ) * + 16 + + 27 END AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6302
SELECT CASE + MAX ( DISTINCT - - 21 ) WHEN CASE COUNT ( * ) WHEN 73 THEN + COUNT ( 54 ) + - CAST ( NULL AS INTEGER ) + + 97 ELSE NULL END THEN - ( + + ( - - 20 ) ) + - 2 WHEN - + ( + + 33 ) / 49 + - + 31 * COUNT ( * ) * 43 + - 95 - + 6 * + 34 THEN + COUNT ( * ) ELSE COUNT ( * ) * + 16 + + 27 END AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + COUNT( * ) + - + 62 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-6303
SELECT + COUNT ( * ) + - + 62 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT CASE - 50 WHEN - + 41 THEN - - MAX( 83 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6304
SELECT CASE - 50 WHEN - + 41 THEN - - MAX ( 83 ) END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6305
SELECT ( - - 39 ) * - CAST( - - COUNT( * ) AS SIGNED ) + - MIN( + 87 ) + - 57 AS col1
----
-183

skipif mysql # not compatible
query I rowsort label-6305
SELECT ( - - 39 ) * - CAST ( - - COUNT ( * ) AS INTEGER ) + - MIN ( + 87 ) + - 57 AS col1
----
-183

query I rowsort
SELECT ALL 83 * + 60 - + - 3 * + 57 AS col2
----
5151

query I rowsort
SELECT ALL + + 61 * + - 14 - - 99 AS col0
----
-755

query I rowsort
SELECT - 22 * - + 91 * + 65
----
130130

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL - SUM( ALL + 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL - SUM ( ALL + 71 )
----
-71

query I rowsort
SELECT + - 1 * 70
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT - - MAX( ALL + - 22 ) * MIN( 69 ) + - 7 AS col1
----
-1525

skipif mysql # not compatible
query I rowsort label-6311
SELECT - - MAX ( ALL + - 22 ) * MIN ( 69 ) + - 7 AS col1
----
-1525

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT + - 90 * - COUNT( * ) * - + 71 + - + 32 + 58 AS col0
----
-6364

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + - 90 * - COUNT ( * ) * - + 71 + - + 32 + 58 AS col0
----
-6364

query I rowsort
SELECT ALL + - 15 * 16 + + ( + - 56 ) AS col1
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT DISTINCT - 13 * - + COUNT( * ) + - 32 * 33
----
-1043

skipif mysql # not compatible
query I rowsort label-6314
SELECT DISTINCT - 13 * - + COUNT ( * ) + - 32 * 33
----
-1043

query I rowsort
SELECT DISTINCT ( - ( 70 ) )
----
-70

query I rowsort
SELECT DISTINCT + - 86 + + 67 - - + 62
----
43

query I rowsort
SELECT ALL - 63 * 65 * - 7 AS col2
----
28665

query I rowsort
SELECT + 27 + 12 + ( 31 ) AS col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT DISTINCT - NULLIF ( 99, 64 ) DIV - COUNT( DISTINCT + 9 )
----
99

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT - NULLIF ( 99, 64 ) / - COUNT ( DISTINCT + 9 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT CASE - 50 WHEN - 65 - - 94 * 96 THEN NULL WHEN + ( COUNT( * ) ) THEN - 10 * - 23 - + + 71 END - 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT CASE - 50 WHEN - 65 - - 94 * 96 THEN NULL WHEN + ( COUNT ( * ) ) THEN - 10 * - 23 - + + 71 END - 14 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT 39 + + 49 DIV + 92 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-6321
SELECT 39 + + 49 / + 92 AS col1
----
39

query I rowsort
SELECT ALL 9 + - 45 AS col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT 46 * 78 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6323
SELECT 46 * 78 * - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT DISTINCT - 27 DIV 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - 27 / 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6325
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) + + + 59 + + + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) + + + 59 + + + 93
----
NULL

query I rowsort
SELECT + 42 * - 46 * 1 + - 68
----
-2000

query I rowsort
SELECT DISTINCT 3 * - 17 AS col2
----
-51

query I rowsort
SELECT DISTINCT + 54 + 44 * + + 47
----
2122

query I rowsort
SELECT ALL - 0 + + - 79 * + 30 + - 12 AS col0
----
-2382

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT ( CAST( NULL AS SIGNED ) ) + - - 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6330
SELECT ( CAST ( NULL AS INTEGER ) ) + - - 78 AS col0
----
NULL

query I rowsort
SELECT ALL 50 + - 90 + - + NULLIF ( 80, + 57 ) + + 34 * 72
----
2328

query II rowsort
SELECT 84 AS col0, - 98 * 83
----
84
-8134

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL 96 - + MAX( + - 80 )
----
176

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL 96 - + MAX ( + - 80 )
----
176

query I rowsort
SELECT 90 * - + 42 AS col0
----
-3780

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT ALL 89 * + + 80 * - COUNT( ALL - + 21 )
----
-7120

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL 89 * + + 80 * - COUNT ( ALL - + 21 )
----
-7120

onlyif mysql # DIV for integer division: 
query I rowsort label-6336
SELECT ( + 52 ) DIV - 79 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6336
SELECT ( + 52 ) / - 79 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6337
SELECT ALL 12 * - COUNT( * ) + COALESCE ( + + 22, + ( 38 ) * + 37 + - - COUNT( * ) ), 63 DIV - 41 AS col2
----
10
-1

skipif mysql # not compatible
query II rowsort label-6337
SELECT ALL 12 * - COUNT ( * ) + COALESCE ( + + 22, + ( 38 ) * + 37 + - - COUNT ( * ) ), 63 / - 41 AS col2
----
10
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6338
SELECT ALL 26 * 73 * COUNT( * ) DIV - 65 + - 35, 83 AS col2
----
-64
83

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL 26 * 73 * COUNT ( * ) / - 65 + - 35, 83 AS col2
----
-64
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6339
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL 92 * + - CASE + - CASE - 79 WHEN 91 THEN + COALESCE ( - + 88, - 61 ) * + 36 * + + 47 + - 90 ELSE + COUNT( * ) END WHEN + - ( - - ( + + 43 ) ) THEN 22 WHEN - + 32 - + 23 THEN + - 58 * + - COUNT( * ) WHEN - 61 THEN 83 - 44 END * - 94 - NULLIF ( + 11, 82 / ( - 52 * 30 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL 92 * + - CASE + - CASE - 79 WHEN 91 THEN + COALESCE ( - + 88, - 61 ) * + 36 * + + 47 + - 90 ELSE + COUNT ( * ) END WHEN + - ( - - ( + + 43 ) ) THEN 22 WHEN - + 32 - + 23 THEN + - 58 * + - COUNT ( * ) WHEN - 61 THEN 83 - 44 END * - 94 - NULLIF ( + 11, 82 / ( - 52 * 30 ) )
----
NULL

query II rowsort
SELECT NULLIF ( 60, 88 - - 37 + + 98 + + 29 ) AS col1, + 41 AS col2
----
60
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT ALL + CAST( NULL AS SIGNED ) + - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL + CAST ( NULL AS INTEGER ) + - 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6343
SELECT + 45 + 20 DIV + 45 + - - 6 * NULLIF ( 39, 94 ) + 37 + - 46 AS col2
----
270

skipif mysql # not compatible
query I rowsort label-6343
SELECT + 45 + 20 / + 45 + - - 6 * NULLIF ( 39, 94 ) + 37 + - 46 AS col2
----
270

onlyif mysql # aggregate syntax: 
query II rowsort label-6344
SELECT ALL + 93 + - 51 * - + 74, + 21 * COUNT( * ) AS col1
----
3867
21

skipif mysql # not compatible
query II rowsort label-6344
SELECT ALL + 93 + - 51 * - + 74, + 21 * COUNT ( * ) AS col1
----
3867
21

query I rowsort
SELECT 89 + 97 - 44
----
142

query I rowsort
SELECT ALL + 59 + + 18 AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6347
SELECT - MAX( ALL - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6347
SELECT - MAX ( ALL - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) ) col1
----
NULL

query I rowsort
SELECT ALL + + 8 + - ( + - 26 ) AS col0
----
34

query I rowsort
SELECT ALL - 68 * + 84
----
-5712

query I rowsort
SELECT 68 * - 13 * 49 col2
----
-43316

query I rowsort
SELECT - 95 + - 18
----
-113

query II rowsort
SELECT DISTINCT 22 AS col2, + 98
----
22
98

query I rowsort
SELECT ALL + 68 + - 44 * + + 32 AS col0
----
-1340

query I rowsort
SELECT ALL - 13 * 91 AS col0
----
-1183

query I rowsort
SELECT ALL - ( 55 ) * + ( + 28 )
----
-1540

query II rowsort
SELECT 27 AS col0, + ( - 27 ) * - - 58 AS col2
----
27
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT ALL MAX( ALL + 12 ) col0
----
12

skipif mysql # not compatible
query I rowsort label-6357
SELECT ALL MAX ( ALL + 12 ) col0
----
12

query I rowsort
SELECT ALL + 68 + - 5 AS col0
----
63

query II rowsort
SELECT + 39 AS col2, - 9
----
39
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT 68 DIV 3 - 50 + 53
----
25

skipif mysql # not compatible
query I rowsort label-6360
SELECT 68 / 3 - 50 + 53
----
25

query II rowsort
SELECT 81 * - 13 AS col0, ( 73 ) AS col1
----
-1053
73

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT DISTINCT - COUNT( * ) AS col0, SUM( ( - ( + 53 ) ) ) * 94 AS col0
----
-1
-4982

skipif mysql # not compatible
query II rowsort label-6362
SELECT DISTINCT - COUNT ( * ) AS col0, SUM ( ( - ( + 53 ) ) ) * 94 AS col0
----
-1
-4982

query I rowsort
SELECT 55 - 7
----
48

query I rowsort
SELECT 93 * - + 76
----
-7068

query II rowsort
SELECT + 50 AS col0, 92
----
50
92

query I rowsort
SELECT 70 * + 94
----
6580

onlyif mysql # aggregate syntax: 
query II rowsort label-6367
SELECT DISTINCT - COUNT( * ), + 34 AS col2
----
-1
34

skipif mysql # not compatible
query II rowsort label-6367
SELECT DISTINCT - COUNT ( * ), + 34 AS col2
----
-1
34

query I rowsort
SELECT ALL 96 - + 66 AS col2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL + 78 DIV + 5
----
15

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + 78 / + 5
----
15

query I rowsort
SELECT ALL 49 * + - 20 AS col2
----
-980

query I rowsort
SELECT 99 - + 50 AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT ALL - 6 * + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - 6 * + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 70 * + 75 AS col0
----
5250

query I rowsort
SELECT ALL + 90 * + + 31 - + + 43 * - + 80
----
6230

onlyif mysql # aggregate syntax: 
query II rowsort label-6375
SELECT + 3 AS col1, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-6375
SELECT + 3 AS col1, COUNT ( * )
----
3
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6376
SELECT - 84 + + CAST( NULL AS SIGNED ) + + 90 / + 51 + + 93 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6376
SELECT - 84 + + CAST ( NULL AS INTEGER ) + + 90 / + 51 + + 93 AS col2
----
NULL

query I rowsort
SELECT 1 - - 98 AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6378
SELECT DISTINCT - - 7 * CAST( 49 AS SIGNED ) DIV - 62 + 32 * + + 33
----
1051

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT - - 7 * CAST ( 49 AS INTEGER ) / - 62 + 32 * + + 33
----
1051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6379
SELECT ALL + - COALESCE ( + - 1, - ( - + CAST( NULL AS SIGNED ) ) ) + - - SUM( ALL - 98 ) + 23 * 36
----
731

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL + - COALESCE ( + - 1, - ( - + CAST ( NULL AS INTEGER ) ) ) + - - SUM ( ALL - 98 ) + 23 * 36
----
731

query I rowsort
SELECT DISTINCT 86 + - 52
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL + COUNT( * ) + COUNT( - 29 )
----
2

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL + COUNT ( * ) + COUNT ( - 29 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT - - COALESCE ( + 67, 76, - + ( - + 33 ) + + COUNT( * ) ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6382
SELECT - - COALESCE ( + 67, 76, - + ( - + 33 ) + + COUNT ( * ) ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6383
SELECT + COUNT( * ) DIV + - 85
----
0

skipif mysql # not compatible
query I rowsort label-6383
SELECT + COUNT ( * ) / + - 85
----
0

query II rowsort
SELECT - 99 col2, 15
----
-99
15

query III rowsort
SELECT - 10, 67 * - 88 * CASE + - 83 WHEN 19 THEN - 64 END AS col1, - - 50 AS col0
----
-10
NULL
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6386
SELECT + SUM( ALL 52 ) + + CAST( + CAST( + ( 54 ) AS SIGNED ) AS SIGNED ), - COUNT( - 48 ) + - CASE + CAST( NULL AS SIGNED ) WHEN - + 32 THEN NULL WHEN - - ( - 1 ) THEN 8 END + - 29 * - 48 AS col1
----
106
NULL

skipif mysql # not compatible
query II rowsort label-6386
SELECT + SUM ( ALL 52 ) + + CAST ( + CAST ( + ( 54 ) AS INTEGER ) AS INTEGER ), - COUNT ( - 48 ) + - CASE + CAST ( NULL AS INTEGER ) WHEN - + 32 THEN NULL WHEN - - ( - 1 ) THEN 8 END + - 29 * - 48 AS col1
----
106
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT + 0 * 16 * 22 * - COUNT( * ) * + COUNT( * ) - - - 99
----
-99

skipif mysql # not compatible
query I rowsort label-6387
SELECT + 0 * 16 * 22 * - COUNT ( * ) * + COUNT ( * ) - - - 99
----
-99

query II rowsort
SELECT DISTINCT 44 + 68, 10 * + + 5 + + 86 AS col1
----
112
136

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT - 81 + + 54 * + - ( COUNT( * ) )
----
-135

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT - 81 + + 54 * + - ( COUNT ( * ) )
----
-135

query I rowsort
SELECT DISTINCT - 70 * - 15 + + ( - 94 ) + + - 11
----
945

query I rowsort
SELECT ALL - 11 + 22 * ( 55 )
----
1199

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + MIN( DISTINCT - 0 ) * - 82 + 89 + 35 * COUNT( * ) AS col2
----
124

skipif mysql # not compatible
query I rowsort label-6392
SELECT + MIN ( DISTINCT - 0 ) * - 82 + 89 + 35 * COUNT ( * ) AS col2
----
124

query II rowsort
SELECT DISTINCT 39 + 28 AS col1, 90 + + 96 - - + 51 + 57 AS col0
----
67
294

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6394
SELECT DISTINCT ( 95 ) + 70 DIV - 84 * + CAST( - 86 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT ( 95 ) + 70 / - 84 * + CAST ( - 86 AS INTEGER )
----
95

query I rowsort
SELECT - 68 + - - NULLIF ( - 65, 65 )
----
-133

query I rowsort
SELECT + 32 + + 63 col1
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-6397
SELECT - COUNT( * ) - 39 AS col2, + 87 + 49
----
-40
136

skipif mysql # not compatible
query II rowsort label-6397
SELECT - COUNT ( * ) - 39 AS col2, + 87 + 49
----
-40
136

query II rowsort
SELECT + ( + 50 ) + - 34 AS col1, 62
----
16
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT - 14 - - 74 * + SUM( ALL - 29 ) * + 37 * - 83 + - 90 + 48 + - 71
----
6590239

skipif mysql # not compatible
query I rowsort label-6399
SELECT - 14 - - 74 * + SUM ( ALL - 29 ) * + 37 * - 83 + - 90 + 48 + - 71
----
6590239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6400
SELECT ALL - MIN( ALL CAST( - COALESCE ( 56, 2 ) AS SIGNED ) ) * + + 56 + - MAX( + 46 )
----
3090

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL - MIN ( ALL CAST ( - COALESCE ( 56, 2 ) AS INTEGER ) ) * + + 56 + - MAX ( + 46 )
----
3090

onlyif mysql # aggregate syntax: 
query II rowsort label-6401
SELECT - COUNT( * ) * 18 AS col0, 71
----
-18
71

skipif mysql # not compatible
query II rowsort label-6401
SELECT - COUNT ( * ) * 18 AS col0, 71
----
-18
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6402
SELECT DISTINCT + 65 * + COUNT( * ) AS col0, 42
----
65
42

skipif mysql # not compatible
query II rowsort label-6402
SELECT DISTINCT + 65 * + COUNT ( * ) AS col0, 42
----
65
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6403
SELECT DISTINCT + 92 * + CASE + 64 WHEN - - 92 DIV + 3 THEN NULL ELSE - 70 * + 8 - 54 + ( COUNT( * ) ) + 17 * - 8 + + 53 DIV - + 40 END AS col1
----
-69000

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT + 92 * + CASE + 64 WHEN - - 92 / + 3 THEN NULL ELSE - 70 * + 8 - 54 + ( COUNT ( * ) ) + 17 * - 8 + + 53 / - + 40 END AS col1
----
-69000

query I rowsort
SELECT ALL + CASE + 32 WHEN + 21 / 2 THEN - + 7 WHEN 86 THEN - - ( + 19 ) END AS col0
----
NULL

query I rowsort
SELECT - 31 + - 27
----
-58

query I rowsort
SELECT NULLIF ( - 17, - - 8 )
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-6407
SELECT - 14 * - 80 + 55, 13 + + COUNT( ALL - + 50 ) + COUNT( * ) * 4 col0
----
1175
18

skipif mysql # not compatible
query II rowsort label-6407
SELECT - 14 * - 80 + 55, 13 + + COUNT ( ALL - + 50 ) + COUNT ( * ) * 4 col0
----
1175
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT + ( - + 46 ) * - 76 * 89 + - COUNT( * ) + + 20 AS col0
----
311163

skipif mysql # not compatible
query I rowsort label-6408
SELECT + ( - + 46 ) * - 76 * 89 + - COUNT ( * ) + + 20 AS col0
----
311163

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6409
SELECT DISTINCT - CAST( - 51 AS SIGNED ) * + + COALESCE ( + NULLIF ( + - 43, - 25 + + 47 ), COUNT( * ) + 12, - + 71 * - - 77 * 55 * + + MAX( DISTINCT 52 ) DIV + MAX( + 57 ) DIV - - 96 * 17 - NULLIF ( + 80, NULLIF ( - ( + - COUNT( * ) ), 69 ) ) + + 61 * - 68 ) + - MIN( ALL + 57 ) * 24 + 13 * 26 AS col2
----
-3223

skipif mysql # not compatible
query I rowsort label-6409
SELECT DISTINCT - CAST ( - 51 AS INTEGER ) * + + COALESCE ( + NULLIF ( + - 43, - 25 + + 47 ), COUNT ( * ) + 12, - + 71 * - - 77 * 55 * + + MAX ( DISTINCT 52 ) / + MAX ( + 57 ) / - - 96 * 17 - NULLIF ( + 80, NULLIF ( - ( + - COUNT ( * ) ), 69 ) ) + + 61 * - 68 ) + - MIN ( ALL + 57 ) * 24 + 13 * 26 AS col2
----
-3223

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT DISTINCT + 70 DIV - ( + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-6410
SELECT DISTINCT + 70 / - ( + 97 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - - ( COUNT( * ) ) * + 48 + - 30 * 48
----
-1392

skipif mysql # not compatible
query I rowsort label-6411
SELECT - - ( COUNT ( * ) ) * + 48 + - 30 * 48
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL COUNT( * ) * + + NULLIF ( - 1, 83 * - - COUNT( * ) ) * 90 + - 83 * - 97
----
7961

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL COUNT ( * ) * + + NULLIF ( - 1, 83 * - - COUNT ( * ) ) * 90 + - 83 * - 97
----
7961

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT - - COUNT( * ) * - ( + 83 ) + 49 + CASE COUNT( * ) WHEN + 32 * - - 16 THEN 49 ELSE - 65 END + + 53 + 87 col2
----
41

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - - COUNT ( * ) * - ( + 83 ) + 49 + CASE COUNT ( * ) WHEN + 32 * - - 16 THEN 49 ELSE - 65 END + + 53 + 87 col2
----
41

query I rowsort
SELECT - COALESCE ( + 31, COALESCE ( + NULLIF ( + 11, + 58 ), + 54 ) * + - ( + 42 ) + - 90, + + COALESCE ( + 8, - + 27 ) ) + 49
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT - CAST( NULL AS SIGNED ) * + - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT - CAST ( NULL AS INTEGER ) * + - 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT ALL + - CAST( NULL AS SIGNED ) * 81
----
NULL

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + - CAST ( NULL AS INTEGER ) * 81
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL + + 28 * + ( + - COUNT( * ) ) * + 39 + - 7 AS col0
----
-1099

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL + + 28 * + ( + - COUNT ( * ) ) * + 39 + - 7 AS col0
----
-1099

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL + - 29 * MAX( DISTINCT 77 ) col1
----
-2233

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + - 29 * MAX ( DISTINCT 77 ) col1
----
-2233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6419
SELECT + + COUNT( * ) + ( + 97 ) + - - 93 + + 67 * COUNT( * ) DIV + + 79 * CAST( - CASE - 1 WHEN 27 * - 70 DIV + ( - 75 ) * 12 * + - 54 - 53 DIV - - 11 THEN NULL WHEN + 90 THEN NULL ELSE + - 50 * ( COUNT( * ) ) * - - 97 * ( 66 ) * + 10 - + 83 END AS SIGNED ) AS col1
----
191

skipif mysql # not compatible
query I rowsort label-6419
SELECT + + COUNT ( * ) + ( + 97 ) + - - 93 + + 67 * COUNT ( * ) / + + 79 * CAST ( - CASE - 1 WHEN 27 * - 70 / + ( - 75 ) * 12 * + - 54 - 53 / - - 11 THEN NULL WHEN + 90 THEN NULL ELSE + - 50 * ( COUNT ( * ) ) * - - 97 * ( 66 ) * + 10 - + 83 END AS INTEGER ) AS col1
----
191

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6420
SELECT DISTINCT - 44 * - - ( 96 ) * - - 96 * COUNT( * ) * + - MAX( DISTINCT - + 41 ) + + 4 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT - 44 * - - ( 96 ) * - - 96 * COUNT ( * ) * + - MAX ( DISTINCT - + 41 ) + + 4 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + 78, 95 * + - 35 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT ALL - 82 - + 49 * COALESCE ( + - 87, 78 + + 67 * - MAX( DISTINCT - 11 ) )
----
4181

skipif mysql # not compatible
query I rowsort label-6422
SELECT ALL - 82 - + 49 * COALESCE ( + - 87, 78 + + 67 * - MAX ( DISTINCT - 11 ) )
----
4181

query I rowsort
SELECT + 30 + + 23
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6424
SELECT DISTINCT 92 DIV + 91 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6424
SELECT DISTINCT 92 / + 91 AS col2
----
1

query II rowsort
SELECT + ( - 99 ) * + 72 AS col2, + ( 81 )
----
-7128
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6426
SELECT ALL 27 * + + CAST( + 32 AS SIGNED ) col2
----
864

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL 27 * + + CAST ( + 32 AS INTEGER ) col2
----
864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6427
SELECT + CAST( NULL AS SIGNED ) + - 95 + + - 23 * + + SUM( 12 ) + + 79 * - 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6427
SELECT + CAST ( NULL AS INTEGER ) + - 95 + + - 23 * + + SUM ( 12 ) + + 79 * - 85 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 44 * + 99 AS col2
----
4356

query I rowsort
SELECT + ( + ( - 11 ) ) * 60 AS col2
----
-660

query I rowsort
SELECT ALL 91 * + + 0 AS col2
----
0

query I rowsort
SELECT DISTINCT 50 * 96
----
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT ALL COALESCE ( + 76, + 97 * - COUNT( * ) + + 35 * - 96 )
----
76

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL COALESCE ( + 76, + 97 * - COUNT ( * ) + + 35 * - 96 )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6433
SELECT 87, COUNT( * ) * 77 AS col2
----
87
77

skipif mysql # not compatible
query II rowsort label-6433
SELECT 87, COUNT ( * ) * 77 AS col2
----
87
77

query I rowsort
SELECT ALL 85 * + 45 AS col0
----
3825

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT + 55 * - - COUNT( * ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-6435
SELECT + 55 * - - COUNT ( * ) AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT DISTINCT MAX( - COALESCE ( - 25, - + 46 * + 40 ) ) col1
----
25

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT MAX ( - COALESCE ( - 25, - + 46 * + 40 ) ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT + COUNT( * ) * - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-6437
SELECT + COUNT ( * ) * - + 86
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6438
SELECT ALL - 92 DIV 5 * - - 96 + + COUNT( * ) + + 59 - - 1 + - - ( - + COUNT( * ) ) AS col1
----
-1668

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL - 92 / 5 * - - 96 + + COUNT ( * ) + + 59 - - 1 + - - ( - + COUNT ( * ) ) AS col1
----
-1668

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL + + CASE - - 59 WHEN 44 THEN + 7 ELSE - + 37 + COUNT( * ) + ( + 15 ) + + 42 * COUNT( * ) + 40 * + + COALESCE ( - 34, 3 * - 89, 67 * - 56 ) * - + 85 END * + 72
----
8324712

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL + + CASE - - 59 WHEN 44 THEN + 7 ELSE - + 37 + COUNT ( * ) + ( + 15 ) + + 42 * COUNT ( * ) + 40 * + + COALESCE ( - 34, 3 * - 89, 67 * - 56 ) * - + 85 END * + 72
----
8324712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6440
SELECT DISTINCT - 12 DIV + CASE - - 86 WHEN - 81 * + ( + 70 ) THEN NULL ELSE - COUNT( ALL - CAST( NULL AS SIGNED ) ) + + 61 END * + 67 + 52 + + COUNT( * ) + + 12 + ( - MAX( ALL + NULLIF ( - 5, + + 6 ) ) ) + 92 + COUNT( * ) AS col2
----
163

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - 12 / + CASE - - 86 WHEN - 81 * + ( + 70 ) THEN NULL ELSE - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + 61 END * + 67 + 52 + + COUNT ( * ) + + 12 + ( - MAX ( ALL + NULLIF ( - 5, + + 6 ) ) ) + 92 + COUNT ( * ) AS col2
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT DISTINCT - COALESCE ( 43, ( + 10 ) ) DIV 11 + + 65 DIV 9 - 38 * - + 54 + - + 76 col1
----
1980

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT - COALESCE ( 43, ( + 10 ) ) / 11 + + 65 / 9 - 38 * - + 54 + - + 76 col1
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-6442
SELECT - 89 - - COUNT( DISTINCT + 74 ) + COUNT( * ) * + NULLIF ( 40, 17 )
----
-48

skipif mysql # not compatible
query I rowsort label-6442
SELECT - 89 - - COUNT ( DISTINCT + 74 ) + COUNT ( * ) * + NULLIF ( 40, 17 )
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT ALL ( - 86 ) * + - CAST( 11 AS SIGNED )
----
946

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL ( - 86 ) * + - CAST ( 11 AS INTEGER )
----
946

query I rowsort
SELECT 64 - + 80
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + - MIN( + + 7 ) AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-6445
SELECT + - MIN ( + + 7 ) AS col0
----
-7

query I rowsort
SELECT DISTINCT - - 77 + - + 74 * - + 34 AS col0
----
2593

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT ALL + + COUNT( * ) + 11 * + 17 AS col2
----
188

skipif mysql # not compatible
query I rowsort label-6447
SELECT ALL + + COUNT ( * ) + 11 * + 17 AS col2
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6448
SELECT + 55 * + 1 * + + CAST( NULL AS SIGNED ) AS col0, ( + 1 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6448
SELECT + 55 * + 1 * + + CAST ( NULL AS INTEGER ) AS col0, ( + 1 )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6449
SELECT ALL - - CAST( NULL AS SIGNED ) + CASE - + ( - - 23 ) WHEN - ( + + NULLIF ( + 35, + 3 ) ) - CASE WHEN NULL IS NULL THEN + 47 WHEN ( NULL ) IS NULL THEN NULL END * - + 76 THEN + 44 WHEN 90 * + 50 * 10 + 71 THEN NULL WHEN 39 + - COUNT( * ) THEN NULL ELSE + COALESCE ( - 6, - COUNT( * ) + + + 52 + + 67 / 9 * - 79 / + 84 ) + + 67 END - 99 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - - CAST ( NULL AS INTEGER ) + CASE - + ( - - 23 ) WHEN - ( + + NULLIF ( + 35, + 3 ) ) - CASE WHEN NULL IS NULL THEN + 47 WHEN ( NULL ) IS NULL THEN NULL END * - + 76 THEN + 44 WHEN 90 * + 50 * 10 + 71 THEN NULL WHEN 39 + - COUNT ( * ) THEN NULL ELSE + COALESCE ( - 6, - COUNT ( * ) + + + 52 + + 67 / 9 * - 79 / + 84 ) + + 67 END - 99 * 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6450
SELECT COUNT( * ) + + + ( + COUNT( * ) ) * + 3 + + + 84 * - + 46 AS col0, 31 AS col0
----
-3860
31

skipif mysql # not compatible
query II rowsort label-6450
SELECT COUNT ( * ) + + + ( + COUNT ( * ) ) * + 3 + + + 84 * - + 46 AS col0, 31 AS col0
----
-3860
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6451
SELECT CAST( - - 35 AS SIGNED ) * 85 + - 34 AS col1
----
2941

skipif mysql # not compatible
query I rowsort label-6451
SELECT CAST ( - - 35 AS INTEGER ) * 85 + - 34 AS col1
----
2941

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL - 81 DIV - 38
----
2

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - 81 / - 38
----
2

query I rowsort
SELECT 20 * + 67 * + 24
----
32160

query I rowsort
SELECT ALL - - 89 * - - 76 col1
----
6764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT DISTINCT + COUNT( ALL + + CAST( NULL AS SIGNED ) ) - CAST( - ( - 70 ) AS SIGNED ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT + COUNT ( ALL + + CAST ( NULL AS INTEGER ) ) - CAST ( - ( - 70 ) AS INTEGER ) AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT ALL - + 22 DIV + 49 * 19 col2
----
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - + 22 / + 49 * 19 col2
----
0

query II rowsort
SELECT DISTINCT 73 col1, + 13
----
73
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT - COALESCE ( + 37, 82 * COUNT( * ), 70 ) + - ( + ( - 64 ) )
----
27

skipif mysql # not compatible
query I rowsort label-6458
SELECT - COALESCE ( + 37, 82 * COUNT ( * ), 70 ) + - ( + ( - 64 ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - 64 * + CASE WHEN + COUNT( * ) <= - 58 THEN - + 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - 64 * + CASE WHEN + COUNT ( * ) <= - 58 THEN - + 62 END
----
NULL

query I rowsort
SELECT ALL + 9 * - 75
----
-675

query I rowsort
SELECT 45 + + 32 * 41 * - ( 38 ) AS col1
----
-49811

query I rowsort
SELECT DISTINCT + 92 * - - 25
----
2300

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6463
SELECT CASE + ( - 8 ) WHEN - 57 * + 16 * + + 44 + + - ( - 10 ) * ( + - 16 ) + + COUNT( * ) - + NULLIF ( - 40, + 68 / - 38 + - - 54 - CAST( - COUNT( * ) AS DECIMAL ) * - + 32 ) * + 55 / - + COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + MIN( DISTINCT 59 ) + + 49 ELSE NULL END * ( + 77 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6463
SELECT CASE + ( - 8 ) WHEN - 57 * + 16 * + + 44 + + - ( - 10 ) * ( + - 16 ) + + COUNT ( * ) - + NULLIF ( - 40, + 68 / - 38 + - - 54 - CAST ( - COUNT ( * ) AS REAL ) * - + 32 ) * + 55 / - + COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + MIN ( DISTINCT 59 ) + + 49 ELSE NULL END * ( + 77 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6464
SELECT 73 DIV COUNT( * ) col0
----
73

skipif mysql # not compatible
query I rowsort label-6464
SELECT 73 / COUNT ( * ) col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6465
SELECT 9 * + COUNT( * ) DIV 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6465
SELECT 9 * + COUNT ( * ) / 14 AS col2
----
0

query I rowsort
SELECT ALL 37 + 23 * 19
----
474

query I rowsort
SELECT 80 + - - ( 36 )
----
116

query I rowsort
SELECT NULLIF ( - - 91, - 30 * - + 59 * - 83 ) - - 97 * - - 94
----
9209

query I rowsort
SELECT ALL 90 + - - 72
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT COALESCE ( 7, - 40 * + - 17 - COUNT( * ) + - MIN( DISTINCT 19 ) ) * + - 45 * + 21 * 15 AS col1
----
-99225

skipif mysql # not compatible
query I rowsort label-6470
SELECT COALESCE ( 7, - 40 * + - 17 - COUNT ( * ) + - MIN ( DISTINCT 19 ) ) * + - 45 * + 21 * 15 AS col1
----
-99225

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT ALL COUNT( - COALESCE ( - 66, - + ( - + 19 ) ) ) + + 82
----
83

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL COUNT ( - COALESCE ( - 66, - + ( - + 19 ) ) ) + + 82
----
83

query I rowsort
SELECT ALL - 0 * 3 * + 4
----
0

query I rowsort
SELECT ALL 4 + 62
----
66

query I rowsort
SELECT ( - 28 ) * + - 7 * 61 + 41 + + + 21 * + 82 AS col0
----
13719

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT + COUNT( * ) + + - 37 AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + COUNT ( * ) + + - 37 AS col1
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6476
SELECT ALL + 76 + + - CAST( NULL AS SIGNED ) + + - ( 56 ) * - - 70 + ( + NULLIF ( + 85, + 80 + + COUNT( * ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6476
SELECT ALL + 76 + + - CAST ( NULL AS INTEGER ) + + - ( 56 ) * - - 70 + ( + NULLIF ( + 85, + 80 + + COUNT ( * ) ) ) AS col2
----
NULL

query I rowsort
SELECT + 53 * + 93 AS col2
----
4929

query I rowsort
SELECT + - ( + + 15 ) * - 68 + + 91 AS col2
----
1111

query I rowsort
SELECT ALL 36 - + + 82 AS col0
----
-46

query I rowsort
SELECT DISTINCT + 52 * ( 77 ) AS col1
----
4004

query I rowsort
SELECT 35 * - 39 * - ( + - 40 )
----
-54600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT ALL + COALESCE ( + 36, CAST( NULL AS SIGNED ) ) * - 32 + - 42
----
-1194

skipif mysql # not compatible
query I rowsort label-6482
SELECT ALL + COALESCE ( + 36, CAST ( NULL AS INTEGER ) ) * - 32 + - 42
----
-1194

query I rowsort
SELECT DISTINCT 77 * - 34 * + 15 * + 86 * + 68
----
-229650960

query I rowsort
SELECT + 56 * + 14 AS col2
----
784

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT + 78 * + COUNT( ALL - + 77 ) + - 70 AS col1, 67 AS col0
----
8
67

skipif mysql # not compatible
query II rowsort label-6485
SELECT + 78 * + COUNT ( ALL - + 77 ) + - 70 AS col1, 67 AS col0
----
8
67

query I rowsort
SELECT - NULLIF ( - - ( 38 ), + 91 ) col1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-6487
SELECT COALESCE ( + + 42, + 40 DIV + - 37 - + - 0 ) * 54 - + 84 AS col0
----
2184

skipif mysql # not compatible
query I rowsort label-6487
SELECT COALESCE ( + + 42, + 40 / + - 37 - + - 0 ) * 54 - + 84 AS col0
----
2184

onlyif mysql # DIV for integer division: 
query I rowsort label-6488
SELECT 93 DIV + 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6488
SELECT 93 / + 39 AS col0
----
2

query I rowsort
SELECT 64 * - 17
----
-1088

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT DISTINCT - 33 DIV + - 45 * + 19
----
0

skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT - 33 / + - 45 * + 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL MIN( DISTINCT + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL MIN ( DISTINCT + 45 )
----
45

query I rowsort
SELECT ALL - 24 * 65
----
-1560

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT 83 DIV + - 32
----
-2

skipif mysql # not compatible
query I rowsort label-6493
SELECT 83 / + - 32
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT ALL - 51 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL - 51 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT 90 + - 77 * - COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-6495
SELECT 90 + - 77 * - COUNT ( * )
----
167

query I rowsort
SELECT DISTINCT - NULLIF ( + 85, - - 25 ) * + 3 AS col1
----
-255

query I rowsort
SELECT DISTINCT - 33 + 33
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6498
SELECT ALL + 79 + - - 64 + COUNT( DISTINCT - - 99 ) * + + 6 AS col1, + CAST( NULL AS SIGNED ) / + + 63
----
149
NULL

skipif mysql # not compatible
query II rowsort label-6498
SELECT ALL + 79 + - - 64 + COUNT ( DISTINCT - - 99 ) * + + 6 AS col1, + CAST ( NULL AS INTEGER ) / + + 63
----
149
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6499
SELECT 9 DIV + 89
----
0

skipif mysql # not compatible
query I rowsort label-6499
SELECT 9 / + 89
----
0

query I rowsort
SELECT ALL - 15 + - 87 AS col1
----
-102

query I rowsort
SELECT 89 * 97 AS col2
----
8633

query I rowsort
SELECT 25 + - 72 col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6503
SELECT DISTINCT - COUNT( * ) + + - 99 * - COUNT( 96 ) + 3 AS col1, + 15 DIV + 81
----
101
0

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT - COUNT ( * ) + + - 99 * - COUNT ( 96 ) + 3 AS col1, + 15 / + 81
----
101
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6504
SELECT ALL 84 + ( - + 53 ) + + CAST( NULL AS SIGNED ) * + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL 84 + ( - + 53 ) + + CAST ( NULL AS INTEGER ) * + - 92
----
NULL

query I rowsort
SELECT 15 * + 38 AS col1
----
570

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT ALL MIN( DISTINCT 4 )
----
4

skipif mysql # not compatible
query I rowsort label-6506
SELECT ALL MIN ( DISTINCT 4 )
----
4

query II rowsort
SELECT 49 AS col0, + 98
----
49
98

query I rowsort
SELECT + + 85 * - 27 + 33 AS col2
----
-2262

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6509
SELECT ALL - - 30 * + + 83 - - NULLIF ( CASE - 36 WHEN - 36 THEN - 66 WHEN + 1 THEN ( - 8 ) END, 71 / 74 + + - ( 94 ) + COUNT( * ) + + 30 + + - CAST( NULL AS SIGNED ) * + + 66 ) * 95 * 62 AS col2
----
-386250

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - - 30 * + + 83 - - NULLIF ( CASE - 36 WHEN - 36 THEN - 66 WHEN + 1 THEN ( - 8 ) END, 71 / 74 + + - ( 94 ) + COUNT ( * ) + + 30 + + - CAST ( NULL AS INTEGER ) * + + 66 ) * 95 * 62 AS col2
----
-386250

query I rowsort
SELECT - 24 - - - 47
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-6511
SELECT ALL + 22 AS col1, 32 * + COALESCE ( - 77, COUNT( + COALESCE ( 49, + ( + 65 ) * + - 3, 77 + - 72 ) ), - 23 ) AS col1
----
22
-2464

skipif mysql # not compatible
query II rowsort label-6511
SELECT ALL + 22 AS col1, 32 * + COALESCE ( - 77, COUNT ( + COALESCE ( 49, + ( + 65 ) * + - 3, 77 + - 72 ) ), - 23 ) AS col1
----
22
-2464

query I rowsort
SELECT + 39 * - 54 - + 99
----
-2205

query I rowsort
SELECT + 7 * 51
----
357

query I rowsort
SELECT ALL ( + 24 ) * + 29
----
696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6515
SELECT - - 8 * + 24 - + COUNT( * ) AS col2, 2 * - CAST( NULL AS SIGNED )
----
191
NULL

skipif mysql # not compatible
query II rowsort label-6515
SELECT - - 8 * + 24 - + COUNT ( * ) AS col2, 2 * - CAST ( NULL AS INTEGER )
----
191
NULL

query I rowsort
SELECT ALL + 3 * 21 - - + 84
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT DISTINCT - + 80 * - + SUM( ALL + - 87 )
----
-6960

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT - + 80 * - + SUM ( ALL + - 87 )
----
-6960

query I rowsort
SELECT DISTINCT + ( + - 36 ) AS col2
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT ALL + + ( - CAST( 55 AS SIGNED ) )
----
-55

skipif mysql # not compatible
query I rowsort label-6519
SELECT ALL + + ( - CAST ( 55 AS INTEGER ) )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6520
SELECT + - 59 DIV 74 - + COUNT( * ) + - CASE - 95 WHEN - 72 THEN NULL WHEN - ( + 54 ) * 98 THEN CAST( NULL AS SIGNED ) * - + 60 * + - 63 ELSE + ( + - 30 ) END * + 74
----
2219

skipif mysql # not compatible
query I rowsort label-6520
SELECT + - 59 / 74 - + COUNT ( * ) + - CASE - 95 WHEN - 72 THEN NULL WHEN - ( + 54 ) * 98 THEN CAST ( NULL AS INTEGER ) * - + 60 * + - 63 ELSE + ( + - 30 ) END * + 74
----
2219

onlyif mysql # aggregate syntax: 
query II rowsort label-6521
SELECT ALL - 53 * MIN( DISTINCT + 7 ) AS col1, - COUNT( * )
----
-371
-1

skipif mysql # not compatible
query II rowsort label-6521
SELECT ALL - 53 * MIN ( DISTINCT + 7 ) AS col1, - COUNT ( * )
----
-371
-1

query II rowsort
SELECT DISTINCT + + 61, - 64 AS col1
----
61
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + - 67 * + COUNT( ALL - 94 ) - - MIN( ALL - ( 49 ) ) + - 83 * 6 AS col1
----
-614

skipif mysql # not compatible
query I rowsort label-6523
SELECT + - 67 * + COUNT ( ALL - 94 ) - - MIN ( ALL - ( 49 ) ) + - 83 * 6 AS col1
----
-614

query I rowsort
SELECT - 76 * + + 56 + + 40 AS col2
----
-4216

query I rowsort
SELECT + 53 + 70 - - - 37 + 47 AS col0
----
133

query I rowsort
SELECT + ( - + 8 ) * 77
----
-616

onlyif mysql # DIV for integer division: 
query II rowsort label-6527
SELECT ALL + 3 AS col2, 66 * + 99 DIV - 99 + + 4 AS col1
----
3
-62

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL + 3 AS col2, 66 * + 99 / - 99 + + 4 AS col1
----
3
-62

query I rowsort
SELECT + 86 * - 79 * - - 32 AS col2
----
-217408

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT DISTINCT 49 * + + NULLIF ( - - COUNT( * ), COUNT( * ) ) + + + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT DISTINCT 49 * + + NULLIF ( - - COUNT ( * ), COUNT ( * ) ) + + + 60 AS col2
----
NULL

query I rowsort
SELECT + 50 + 72 AS col1
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - COUNT( - 32 ) * 60 * + 71 AS col1
----
-4260

skipif mysql # not compatible
query I rowsort label-6531
SELECT - COUNT ( - 32 ) * 60 * + 71 AS col1
----
-4260

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL 62 + - ( - 36 ) - + 55 - + COUNT( DISTINCT - - 13 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL 62 + - ( - 36 ) - + 55 - + COUNT ( DISTINCT - - 13 ) AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT - CASE - 31 WHEN - 29 * + - 34 + 3 + + - AVG ( ALL 86 ) THEN NULL WHEN + 20 THEN - 77 - COUNT( - 45 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6533
SELECT - CASE - 31 WHEN - 29 * + - 34 + 3 + + - AVG ( ALL 86 ) THEN NULL WHEN + 20 THEN - 77 - COUNT ( - 45 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6534
SELECT + CAST( NULL AS SIGNED ) + - 43 col1, + 85 * + - 5
----
NULL
-425

skipif mysql # not compatible
query II rowsort label-6534
SELECT + CAST ( NULL AS INTEGER ) + - 43 col1, + 85 * + - 5
----
NULL
-425

query I rowsort
SELECT ALL - 20 + 92
----
72

query I rowsort
SELECT - 26 * + 93 * 3 * - 82 * 85
----
50560380

query I rowsort
SELECT + 96 + ( - 34 )
----
62

query II rowsort
SELECT ALL - 48 + - 88 * - 57 + + 88 AS col0, - COALESCE ( - - 48, 20 + + 6 * + 32 * 16 ) * - 71 AS col2
----
5056
3408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6539
SELECT - 90 - - CAST( - CASE 70 WHEN - - SUM( DISTINCT - 70 ) THEN + ( - 0 ) * SUM( ALL 60 ) ELSE NULL END AS SIGNED ) + + - 89 * - 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT - 90 - - CAST ( - CASE 70 WHEN - - SUM ( DISTINCT - 70 ) THEN + ( - 0 ) * SUM ( ALL 60 ) ELSE NULL END AS INTEGER ) + + - 89 * - 4 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT DISTINCT MIN( ALL - - 73 )
----
73

skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT MIN ( ALL - - 73 )
----
73

query I rowsort
SELECT DISTINCT + 75 * 0 * + 29 AS col2
----
0

query I rowsort
SELECT DISTINCT + 3 + - 62 AS col0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 53
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 53
----
NULL

query II rowsort
SELECT 91 AS col1, 6 AS col2
----
91
6

query I rowsort
SELECT - 42 + + 15 + + - 32 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6546
SELECT ALL + MAX( - + 52 ) - + 29 + + 45, + COALESCE ( + COUNT( * ), - 6 ) AS col1
----
-36
1

skipif mysql # not compatible
query II rowsort label-6546
SELECT ALL + MAX ( - + 52 ) - + 29 + + 45, + COALESCE ( + COUNT ( * ), - 6 ) AS col1
----
-36
1

query I rowsort
SELECT + 95 * 64 AS col2
----
6080

onlyif mysql # aggregate syntax: 
query II rowsort label-6548
SELECT - 45 AS col0, 36 + CASE - - COUNT( * ) WHEN - - 25 + + - 94 * + 62 THEN - - 57 WHEN - 30 THEN 57 WHEN - + ( + 86 ) * AVG ( - 11 ) THEN + 68 END col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-6548
SELECT - 45 AS col0, 36 + CASE - - COUNT ( * ) WHEN - - 25 + + - 94 * + 62 THEN - - 57 WHEN - 30 THEN 57 WHEN - + ( + 86 ) * AVG ( - 11 ) THEN + 68 END col0
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6549
SELECT - 69 + 67 + 2 - + 36 + - + 83 DIV - + 76 - - CAST( - 26 AS SIGNED ) AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-6549
SELECT - 69 + 67 + 2 - + 36 + - + 83 / - + 76 - - CAST ( - 26 AS INTEGER ) AS col1
----
-61

query I rowsort
SELECT - 8 + - ( - + 37 )
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT - 22 + + CAST( NULL AS SIGNED ) * - 91 * + 34 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT - 22 + + CAST ( NULL AS INTEGER ) * - 91 * + 34 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6552
SELECT - - CAST( NULL AS DECIMAL ) - COUNT( * ) AS col2, - 93 AS col1
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-6552
SELECT - - CAST ( NULL AS REAL ) - COUNT ( * ) AS col2, - 93 AS col1
----
NULL
-93

query II rowsort
SELECT ALL + 52 AS col1, - 74
----
52
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6554
SELECT ALL - ( 38 ) - + 11 + - + 45 * ( + CAST( NULL AS SIGNED ) ) - + - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6554
SELECT ALL - ( 38 ) - + 11 + - + 45 * ( + CAST ( NULL AS INTEGER ) ) - + - 51
----
NULL

query I rowsort
SELECT DISTINCT - 57 * + - 11
----
627

query II rowsort
SELECT ALL + COALESCE ( - 86, - - 27 * - ( + 52 ) * 48 ) AS col1, 52 AS col0
----
-86
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6557
SELECT DISTINCT + 59 col0, + COUNT( * )
----
59
1

skipif mysql # not compatible
query II rowsort label-6557
SELECT DISTINCT + 59 col0, + COUNT ( * )
----
59
1

query II rowsort
SELECT DISTINCT + 47, + 68 * 4 - - + ( + 95 ) AS col1
----
47
367

onlyif mysql # DIV for integer division: 
query II rowsort label-6559
SELECT + 97 AS col2, - 36 DIV - 67
----
97
0

skipif mysql # not compatible
query II rowsort label-6559
SELECT + 97 AS col2, - 36 / - 67
----
97
0

query II rowsort
SELECT + 98 + + 57 col1, + 92 AS col0
----
155
92

query II rowsort
SELECT + 36 AS col0, 10 AS col1
----
36
10

onlyif mysql # DIV for integer division: 
query I rowsort label-6562
SELECT + - 47 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-6562
SELECT + - 47 / + 50
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6563
SELECT + + COUNT( * ) AS col2, - 64 + - 72 AS col1
----
1
-136

skipif mysql # not compatible
query II rowsort label-6563
SELECT + + COUNT ( * ) AS col2, - 64 + - 72 AS col1
----
1
-136

query I rowsort
SELECT + 80 + + 32 - + - 29 col1
----
141

query I rowsort
SELECT ALL 51 * - 90 + + 21
----
-4569

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL 20 * COUNT( * ) + - 79
----
-59

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL 20 * COUNT ( * ) + - 79
----
-59

query I rowsort
SELECT NULLIF ( 41, 5 * + - 50 ) AS col2
----
41

query I rowsort
SELECT 88 * 99 + + 14 - + + 39
----
8687

query I rowsort
SELECT + 44 * - 43 * - 75 AS col1
----
141900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT + CAST( NULL AS SIGNED ) * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6570
SELECT + CAST ( NULL AS INTEGER ) * + 93 AS col1
----
NULL

query II rowsort
SELECT + 26 + 53 AS col0, 41 AS col1
----
79
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL - 0 * - COUNT( * ) * + + 80 + - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - 0 * - COUNT ( * ) * + + 80 + - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL SUM( DISTINCT - 68 ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL SUM ( DISTINCT - 68 ) AS col0
----
-68

query I rowsort
SELECT COALESCE ( + 2, + + 60 ) * - + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6575
SELECT ALL 48 - + - 91 AS col2, 29 * + CASE + 25 WHEN COUNT( ALL 67 ) * + 88 * - 67 * 65 THEN + ( 25 ) ELSE NULL END AS col2
----
139
NULL

skipif mysql # not compatible
query II rowsort label-6575
SELECT ALL 48 - + - 91 AS col2, 29 * + CASE + 25 WHEN COUNT ( ALL 67 ) * + 88 * - 67 * 65 THEN + ( 25 ) ELSE NULL END AS col2
----
139
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL COALESCE ( + + 1, + 80 * - + 4 ) * 49 + - 44 - + + COALESCE ( - 7, - - 67, CAST( + + 9 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL COALESCE ( + + 1, + 80 * - + 4 ) * 49 + - 44 - + + COALESCE ( - 7, - - 67, CAST ( + + 9 AS INTEGER ) )
----
12

query I rowsort
SELECT 50 * + 54 AS col2
----
2700

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + MAX( DISTINCT - 91 ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-6578
SELECT + MAX ( DISTINCT - 91 ) AS col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6579
SELECT + ( - - NULLIF ( - 78, ( + + 44 ) + + COUNT( * ) + - ( + + MAX( 48 ) ) + + 2 + + ( COALESCE ( + ( 88 ), 72 ) ) + - + 74 DIV 42 ) ) + + COUNT( * ) - + 17 - - 7 * CAST( - 38 AS SIGNED ), 19 DIV 35 * + + 24 AS col1
----
-360
0

skipif mysql # not compatible
query II rowsort label-6579
SELECT + ( - - NULLIF ( - 78, ( + + 44 ) + + COUNT ( * ) + - ( + + MAX ( 48 ) ) + + 2 + + ( COALESCE ( + ( 88 ), 72 ) ) + - + 74 / 42 ) ) + + COUNT ( * ) - + 17 - - 7 * CAST ( - 38 AS INTEGER ), 19 / 35 * + + 24 AS col1
----
-360
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT 95 / + 32 + + CAST( NULL AS SIGNED ) * - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6580
SELECT 95 / + 32 + + CAST ( NULL AS INTEGER ) * - 10
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6581
SELECT + 47 DIV + - 6 AS col0, - COUNT( * ) AS col0
----
-7
-1

skipif mysql # not compatible
query II rowsort label-6581
SELECT + 47 / + - 6 AS col0, - COUNT ( * ) AS col0
----
-7
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL + - MAX( + 89 ) * CAST( + - 16 AS SIGNED )
----
1424

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + - MAX ( + 89 ) * CAST ( + - 16 AS INTEGER )
----
1424

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT ALL 25 DIV + 6
----
4

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL 25 / + 6
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6584
SELECT ALL COALESCE ( - CAST( NULL AS SIGNED ), + 6 * - + 76 * - 25 ) AS col2
----
11400

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL COALESCE ( - CAST ( NULL AS INTEGER ), + 6 * - + 76 * - 25 ) AS col2
----
11400

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6585
SELECT 36 DIV + CAST( - ( + 36 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6585
SELECT 36 / + CAST ( - ( + 36 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT + ( + 37 ) - + - ( - + COUNT( - - 27 ) ) * - 52 - 68 + + SUM( ALL 62 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-6586
SELECT + ( + 37 ) - + - ( - + COUNT ( - - 27 ) ) * - 52 - 68 + + SUM ( ALL 62 ) AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6587
SELECT ALL - SUM( + CAST( NULL AS SIGNED ) ) * + - 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL - SUM ( + CAST ( NULL AS INTEGER ) ) * + - 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6588
SELECT ALL + NULLIF ( + 12, - + CASE WHEN 79 IS NULL THEN + MIN( DISTINCT 32 ) ELSE - + 44 * + 4 END ) + - 3 col2, COUNT( DISTINCT - - 52 ) AS col2
----
9
1

skipif mysql # not compatible
query II rowsort label-6588
SELECT ALL + NULLIF ( + 12, - + CASE WHEN 79 IS NULL THEN + MIN ( DISTINCT 32 ) ELSE - + 44 * + 4 END ) + - 3 col2, COUNT ( DISTINCT - - 52 ) AS col2
----
9
1

query I rowsort
SELECT + 92 * - ( - 80 ) + + ( + 96 ) AS col1
----
7456

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT + 4 / CASE 85 WHEN + ( - - 89 ) - 35 THEN NULL WHEN - - CASE - 50 WHEN + COUNT( * ) + - COALESCE ( + ( - 93 ), + - 87 ) THEN + 92 + - 30 ELSE + 63 END THEN 1 * + ( - 52 ) / - + SUM( - 94 ) * + 97 + - 67 + - + 77 * - 60 ELSE NULL END + + - 50
----
NULL

skipif mysql # not compatible
query I rowsort label-6590
SELECT + 4 / CASE 85 WHEN + ( - - 89 ) - 35 THEN NULL WHEN - - CASE - 50 WHEN + COUNT ( * ) + - COALESCE ( + ( - 93 ), + - 87 ) THEN + 92 + - 30 ELSE + 63 END THEN 1 * + ( - 52 ) / - + SUM ( - 94 ) * + 97 + - 67 + - + 77 * - 60 ELSE NULL END + + - 50
----
NULL

query I rowsort
SELECT ALL + - 8 + + 6 AS col2
----
-2

query I rowsort
SELECT ALL 33 + - 90 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6593
SELECT ALL - 28, 1 + + 67 * + COUNT( * ) + CASE - - 89 WHEN + 93 + + NULLIF ( + ( - 11 ), + - 91 + MAX( DISTINCT 87 ) - + + 84 ) THEN + 20 / + 25 END * + 31 * + - COUNT( * ) - - 70 + - COUNT( * ) AS col1
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6593
SELECT ALL - 28, 1 + + 67 * + COUNT ( * ) + CASE - - 89 WHEN + 93 + + NULLIF ( + ( - 11 ), + - 91 + MAX ( DISTINCT 87 ) - + + 84 ) THEN + 20 / + 25 END * + 31 * + - COUNT ( * ) - - 70 + - COUNT ( * ) AS col1
----
-28
NULL

query II rowsort
SELECT + 21 AS col1, + 11 AS col0
----
21
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6595
SELECT 41, + CAST( NULL AS SIGNED ) * - MAX( - 99 ) AS col1
----
41
NULL

skipif mysql # not compatible
query II rowsort label-6595
SELECT 41, + CAST ( NULL AS INTEGER ) * - MAX ( - 99 ) AS col1
----
41
NULL

query II rowsort
SELECT ALL + 29 + - + 99 + - 6 * + COALESCE ( + 5, 11, + + NULLIF ( - 8, - 59 ) * 65 + 14 ) AS col2, 55 + + 40 + 73 * + + 51 col0
----
-100
3818

query II rowsort
SELECT DISTINCT - 41 AS col0, + 25
----
-41
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6598
SELECT ALL - ( COALESCE ( - 37, - - CAST( 13 AS SIGNED ), + 71 ) )
----
37

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL - ( COALESCE ( - 37, - - CAST ( 13 AS INTEGER ), + 71 ) )
----
37

query I rowsort
SELECT 83 + - 23 AS col2
----
60

query II rowsort
SELECT + 33 AS col0, 18
----
33
18

query I rowsort
SELECT 93 + - 5 * ( - 48 ) * 8
----
2013

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT ( + 27 ) - 73 + 54 * - COUNT( * ) * - COUNT( ALL + - 73 ) + COUNT( * ) col2
----
9

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT ( + 27 ) - 73 + 54 * - COUNT ( * ) * - COUNT ( ALL + - 73 ) + COUNT ( * ) col2
----
9

query I rowsort
SELECT DISTINCT + 2 - 49 + 41 AS col1
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6604
SELECT ALL + 30 * CAST( NULL AS DECIMAL ) / + - 70 * - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6604
SELECT ALL + 30 * CAST ( NULL AS REAL ) / + - 70 * - 69
----
NULL

query I rowsort
SELECT 8 * - 20 AS col0
----
-160

query II rowsort
SELECT ALL 9 AS col2, + 16
----
9
16

query I rowsort
SELECT 14 + + ( + 60 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT COUNT( * ) * + - ( + MIN( DISTINCT 40 ) ) * 34 AS col0
----
-1360

skipif mysql # not compatible
query I rowsort label-6608
SELECT COUNT ( * ) * + - ( + MIN ( DISTINCT 40 ) ) * 34 AS col0
----
-1360

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - 1 * ( + 38 ) + - + COUNT( * ) - + 0 * - COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-6609
SELECT - 1 * ( + 38 ) + - + COUNT ( * ) - + 0 * - COUNT ( * )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6610
SELECT 79 * 82 DIV COUNT( * ) * + + 6 AS col2
----
38868

skipif mysql # not compatible
query I rowsort label-6610
SELECT 79 * 82 / COUNT ( * ) * + + 6 AS col2
----
38868

query II rowsort
SELECT ALL + 22 AS col1, 66
----
22
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT DISTINCT MAX( DISTINCT + - 75 ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-6612
SELECT DISTINCT MAX ( DISTINCT + - 75 ) col2
----
-75

query I rowsort
SELECT DISTINCT + ( - 34 ) * + - 48
----
1632

query I rowsort
SELECT ALL NULLIF ( CASE - + 8 WHEN - 16 THEN 12 ELSE NULL END, - 89 / - 98 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + 53 + - - SUM( ALL 99 ) * - + 64 AS col1
----
-6283

skipif mysql # not compatible
query I rowsort label-6615
SELECT + 53 + - - SUM ( ALL 99 ) * - + 64 AS col1
----
-6283

query I rowsort
SELECT DISTINCT 32 * - 75 col2
----
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL - COUNT( * ) + + 16 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - COUNT ( * ) + + 16 AS col0
----
15

query I rowsort
SELECT + 6 + - 97 AS col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6619
SELECT + CAST( - 4 AS SIGNED ) DIV + 48 - - 4 + - 69 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6619
SELECT + CAST ( - 4 AS INTEGER ) / + 48 - - 4 + - 69 AS col2
----
-65

query I rowsort
SELECT ALL + 41 + + + 42 AS col0
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT - CAST( NULL AS SIGNED ) + ( CASE - 13 WHEN - - NULLIF ( + 40, + - 58 * - COUNT( * ) ) * - 46 - 7 + - - CASE + 5 WHEN 42 * - + 36 THEN + + 4 END THEN NULL WHEN - + 22 THEN + ( - 12 ) ELSE - + CASE + + 31 WHEN + NULLIF ( - - 85, 30 / + + 70 * + 58 + - + COUNT( * ) + + 25 + + 89 + 95 / NULLIF ( 40, + + COUNT( * ) * - COUNT( * ) + 66 ) ) / - COUNT( * ) THEN 78 * ( + 80 ) + 49 END + + 26 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT - CAST ( NULL AS INTEGER ) + ( CASE - 13 WHEN - - NULLIF ( + 40, + - 58 * - COUNT ( * ) ) * - 46 - 7 + - - CASE + 5 WHEN 42 * - + 36 THEN + + 4 END THEN NULL WHEN - + 22 THEN + ( - 12 ) ELSE - + CASE + + 31 WHEN + NULLIF ( - - 85, 30 / + + 70 * + 58 + - + COUNT ( * ) + + 25 + + 89 + 95 / NULLIF ( 40, + + COUNT ( * ) * - COUNT ( * ) + 66 ) ) / - COUNT ( * ) THEN 78 * ( + 80 ) + 49 END + + 26 END ) AS col0
----
NULL

query I rowsort
SELECT - 89 + - 65
----
-154

query I rowsort
SELECT DISTINCT - NULLIF ( + + 58, + ( 89 ) ) + 88 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT ALL + - COUNT( * ) + + 53
----
52

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL + - COUNT ( * ) + + 53
----
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT - - CAST( 4 AS SIGNED ) DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT - - CAST ( 4 AS INTEGER ) / 88 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6626
SELECT - CAST( NULL AS DECIMAL ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT - CAST ( NULL AS REAL ) / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT ALL 17 + + 32 * 76, + COUNT( * ) AS col0
----
2449
1

skipif mysql # not compatible
query II rowsort label-6627
SELECT ALL 17 + + 32 * 76, + COUNT ( * ) AS col0
----
2449
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6628
SELECT DISTINCT 6 * + 58 + 44 DIV + - 28 AS col1
----
347

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT 6 * + 58 + 44 / + - 28 AS col1
----
347

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT ALL - 39 * + 63 + + 58 DIV 52 * - + 71 + - - 9 + + 5 AS col2
----
-2514

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - 39 * + 63 + + 58 / 52 * - + 71 + - - 9 + + 5 AS col2
----
-2514

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6630
SELECT 74 * + CAST( NULL AS SIGNED ) * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT 74 * + CAST ( NULL AS INTEGER ) * 7 AS col1
----
NULL

query I rowsort
SELECT ALL - 88 * - COALESCE ( - + 32, - + 17 + + + ( - 76 ) ) * - 84 AS col2
----
236544

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT DISTINCT - MAX( + 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT - MAX ( + 44 ) AS col1
----
-44

query I rowsort
SELECT DISTINCT + 84 * ( - - NULLIF ( + 13, + - 5 ) ) - + 79
----
1013

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + SUM( - 19 ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + SUM ( - 19 ) AS col0
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6635
SELECT - 67 + + - MIN( - 98 ) + 19 DIV - - COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-6635
SELECT - 67 + + - MIN ( - 98 ) + 19 / - - COUNT ( * ) AS col2
----
50

query I rowsort
SELECT - 26 * + 11 * - + 2 AS col1
----
572

query II rowsort
SELECT ALL + ( + + 40 ), 57 AS col1
----
40
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6638
SELECT - 92 * + 89 * + CAST( NULL AS SIGNED ) + + MIN( ALL 82 ) + + CAST( - + 30 AS SIGNED ) + - - 78 * + CAST( NULL AS SIGNED ) * + + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6638
SELECT - 92 * + 89 * + CAST ( NULL AS INTEGER ) + + MIN ( ALL 82 ) + + CAST ( - + 30 AS INTEGER ) + - - 78 * + CAST ( NULL AS INTEGER ) * + + 96
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + MAX( - + 27 )
----
-27

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + MAX ( - + 27 )
----
-27

query I rowsort
SELECT 35 * + 76 - + 9 AS col1
----
2651

query I rowsort
SELECT + 96 * - + 6
----
-576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT - 53 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT - 53 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL SUM( ALL + - 62 ) AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL SUM ( ALL + - 62 ) AS col1
----
-62

query I rowsort
SELECT ALL 54 * - 95
----
-5130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6645
SELECT - COALESCE ( - 1, + COUNT( * ) * 87 * + 68 ) * - SUM( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT - COALESCE ( - 1, + COUNT ( * ) * 87 * + 68 ) * - SUM ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT DISTINCT - 70 * - ( + COUNT( * ) )
----
70

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT - 70 * - ( + COUNT ( * ) )
----
70

query I rowsort
SELECT ALL + NULLIF ( + + 26, + AVG ( DISTINCT + + 55 ) * - - 7 + + 5 ) + + 70 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6648
SELECT - - 31 DIV 14
----
2

skipif mysql # not compatible
query I rowsort label-6648
SELECT - - 31 / 14
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6649
SELECT + - 26 * - CASE - 74 WHEN + COUNT( * ) * 89 * - 49 + 18 + + - ( COUNT( * ) ) THEN NULL WHEN + 71 * + - 43 - + + 38 * 84 + - - 77 THEN - + 21 + + + 44 * 20 * - 57 * - + CAST( NULL AS SIGNED ) ELSE + 32 END + + 54 AS col0
----
886

skipif mysql # not compatible
query I rowsort label-6649
SELECT + - 26 * - CASE - 74 WHEN + COUNT ( * ) * 89 * - 49 + 18 + + - ( COUNT ( * ) ) THEN NULL WHEN + 71 * + - 43 - + + 38 * 84 + - - 77 THEN - + 21 + + + 44 * 20 * - 57 * - + CAST ( NULL AS INTEGER ) ELSE + 32 END + + 54 AS col0
----
886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) - 93
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL NULLIF ( - + 18, - + SUM( - 60 ) ) + - - 26 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL NULLIF ( - + 18, - + SUM ( - 60 ) ) + - - 26 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT - 87 + COUNT( + 90 )
----
-86

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - 87 + COUNT ( + 90 )
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6653
SELECT - 4 DIV - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6653
SELECT - 4 / - COUNT ( * ) AS col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6654
SELECT ALL + 54 DIV - - 93 * + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL + 54 / - - 93 * + 86 AS col1
----
0

query I rowsort
SELECT + 18 * - + 56 AS col2
----
-1008

query I rowsort
SELECT DISTINCT + 63 * - 5 * 48 * - 80
----
1209600

query I rowsort
SELECT ALL - ( - 99 ) + - 76 * - + 51
----
3975

query I rowsort
SELECT - + 55 + - 63 * 56
----
-3583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6659
SELECT ALL 8 / + 2 - + CASE + - 99 WHEN 48 + 97 - + + MAX( - 44 ) THEN - ( + 53 ) + - 51 WHEN - 8 * - + COALESCE ( + 2, 59 * + + 63 * 89 + + - 3 + + + 26 - - + 30 * - 54 ) + - 61 * + 38 * - 82 * + + MIN( - 16 ) + + - 57 * + 76 THEN NULL ELSE NULL END * - 88 * - COALESCE ( + COUNT( * ), NULLIF ( + 40, - 96 ) * 6 * CAST( + COUNT( * ) AS SIGNED ) + + 41 / + SUM( ALL ( 32 ) + 95 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL 8 / + 2 - + CASE + - 99 WHEN 48 + 97 - + + MAX ( - 44 ) THEN - ( + 53 ) + - 51 WHEN - 8 * - + COALESCE ( + 2, 59 * + + 63 * 89 + + - 3 + + + 26 - - + 30 * - 54 ) + - 61 * + 38 * - 82 * + + MIN ( - 16 ) + + - 57 * + 76 THEN NULL ELSE NULL END * - 88 * - COALESCE ( + COUNT ( * ), NULLIF ( + 40, - 96 ) * 6 * CAST ( + COUNT ( * ) AS INTEGER ) + + 41 / + SUM ( ALL ( 32 ) + 95 ) )
----
NULL

query I rowsort
SELECT + 4 + + 2 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + 9 * 34 * CASE - + 45 WHEN - - COUNT( * ) * - 89 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6661
SELECT + 9 * 34 * CASE - + 45 WHEN - - COUNT ( * ) * - 89 THEN + COUNT ( * ) END AS col0
----
NULL

query II rowsort
SELECT ( - ( + 20 ) ) AS col2, 32
----
-20
32

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT 38 DIV + 75 + - 7
----
-7

skipif mysql # not compatible
query I rowsort label-6663
SELECT 38 / + 75 + - 7
----
-7

query I rowsort
SELECT ALL 62 * 6
----
372

query I rowsort
SELECT + 74 * - 81 AS col1
----
-5994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6666
SELECT ( - CAST( - 3 AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-6666
SELECT ( - CAST ( - 3 AS INTEGER ) )
----
3

query I rowsort
SELECT ALL - 39 * + 78 * - 57 * - + ( + + 5 )
----
-866970

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT + 26 + - 73 + SUM( - 13 )
----
-60

skipif mysql # not compatible
query I rowsort label-6668
SELECT + 26 + - 73 + SUM ( - 13 )
----
-60

query I rowsort
SELECT - 43 * - 91
----
3913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6670
SELECT ALL COUNT( * ) DIV - MIN( + 2 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL COUNT ( * ) / - MIN ( + 2 ) col2
----
0

query I rowsort
SELECT + 14 * - + 81 AS col1
----
-1134

query I rowsort
SELECT ALL - ( + 5 ) * 1 - + + 79
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT - MIN( 87 ) - 18 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-6673
SELECT - MIN ( 87 ) - 18 AS col2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT DISTINCT + COUNT( 17 )
----
1

skipif mysql # not compatible
query I rowsort label-6674
SELECT DISTINCT + COUNT ( 17 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT DISTINCT + 75 * - + MIN( - + 50 ) + + + 17 AS col2
----
3767

skipif mysql # not compatible
query I rowsort label-6675
SELECT DISTINCT + 75 * - + MIN ( - + 50 ) + + + 17 AS col2
----
3767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT + 61 + + COUNT( * ) + CAST( + - 83 AS SIGNED ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6676
SELECT + 61 + + COUNT ( * ) + CAST ( + - 83 AS INTEGER ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT - COUNT( * ) * + - 28 * - + ( - 91 ) AS col0
----
2548

skipif mysql # not compatible
query I rowsort label-6677
SELECT - COUNT ( * ) * + - 28 * - + ( - 91 ) AS col0
----
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6678
SELECT ALL 69 * 57 + + COALESCE ( + 45, + AVG ( - CAST( NULL AS SIGNED ) ), 1 * + + 91 - + SUM( DISTINCT + 17 ) ) DIV + COUNT( * ) - + 41 + - 35 AS col1
----
3902

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL 69 * 57 + + COALESCE ( + 45, + AVG ( - CAST ( NULL AS INTEGER ) ), 1 * + + 91 - + SUM ( DISTINCT + 17 ) ) / + COUNT ( * ) - + 41 + - 35 AS col1
----
3902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6679
SELECT - CASE - 93 WHEN 71 THEN NULL ELSE + 92 * - 92 - - 17 END + + - 35 + - 30 / - 67 * - + CASE 66 WHEN + - 95 * 72 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN + 33 - 75 ELSE NULL END * + - 9 * + + COUNT( * ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6679
SELECT - CASE - 93 WHEN 71 THEN NULL ELSE + 92 * - 92 - - 17 END + + - 35 + - 30 / - 67 * - + CASE 66 WHEN + - 95 * 72 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN + 33 - 75 ELSE NULL END * + - 9 * + + COUNT ( * ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6680
SELECT - + 63 - + + 31 + COUNT( * ) AS col1, 51 AS col2
----
-93
51

skipif mysql # not compatible
query II rowsort label-6680
SELECT - + 63 - + + 31 + COUNT ( * ) AS col1, 51 AS col2
----
-93
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6681
SELECT DISTINCT - + 44 DIV + 32 DIV - - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT - + 44 / + 32 / - - COUNT ( * )
----
-1

query I rowsort
SELECT - - 94 + + 60 * + + 49
----
3034

query I rowsort
SELECT - + 19 + 90 * - 30 * + 24
----
-64819

query I rowsort
SELECT ALL - - 77 + - 44 - 17 - - 0 col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT DISTINCT - MIN( ALL + ( + ( + + 50 ) ) ) * COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT - MIN ( ALL + ( + ( + + 50 ) ) ) * COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT ALL - COALESCE ( + 87, MAX( DISTINCT ( 20 ) ), + COALESCE ( + - 94, + 52 + - 39 + + + 65 * + 77 * + 39 ) ) + + - 46 + - + 72 + - - MAX( - + 0 )
----
-205

skipif mysql # not compatible
query I rowsort label-6686
SELECT ALL - COALESCE ( + 87, MAX ( DISTINCT ( 20 ) ), + COALESCE ( + - 94, + 52 + - 39 + + + 65 * + 77 * + 39 ) ) + + - 46 + - + 72 + - - MAX ( - + 0 )
----
-205

query I rowsort
SELECT - 24 + + + 32
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6688
SELECT ALL - - ( - SUM( + - 38 ) ) * - 63 * 24 * CAST( 41 AS SIGNED ) * COUNT( * ) AS col0, 8 * ( - MIN( - 61 ) ) + 35 AS col0
----
-2355696
523

skipif mysql # not compatible
query II rowsort label-6688
SELECT ALL - - ( - SUM ( + - 38 ) ) * - 63 * 24 * CAST ( 41 AS INTEGER ) * COUNT ( * ) AS col0, 8 * ( - MIN ( - 61 ) ) + 35 AS col0
----
-2355696
523

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6689
SELECT - CAST( NULL AS SIGNED ) + + MAX( 85 ) + - NULLIF ( 1, + 24 ) * + - 52 / + + 69 * + MIN( ALL 18 ) AS col2, 2 + + - 83 col1
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-6689
SELECT - CAST ( NULL AS INTEGER ) + + MAX ( 85 ) + - NULLIF ( 1, + 24 ) * + - 52 / + + 69 * + MIN ( ALL 18 ) AS col2, 2 + + - 83 col1
----
NULL
-81

query I rowsort
SELECT - 77 * + 23 + 80 col2
----
-1691

query I rowsort
SELECT ALL - + 89 - + ( - - 64 ) + 99 AS col1
----
-54

query II rowsort
SELECT 54 AS col1, ( - + 56 ) AS col2
----
54
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6693
SELECT + CAST( - COUNT( ALL - 96 ) AS SIGNED ) + + 32 AS col1
----
31

skipif mysql # not compatible
query I rowsort label-6693
SELECT + CAST ( - COUNT ( ALL - 96 ) AS INTEGER ) + + 32 AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6694
SELECT - 4 / + 89 * + - NULLIF ( - 9, - - 8 * - 86 * ( + - 86 ) * - COUNT( - - 88 ) * - 21 ) * + CASE + + 98 WHEN - 78 - + MIN( ALL + ( - 11 ) ) + + 5 * + CAST( - ( 27 ) AS SIGNED ) * 79 THEN + 77 WHEN + 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6694
SELECT - 4 / + 89 * + - NULLIF ( - 9, - - 8 * - 86 * ( + - 86 ) * - COUNT ( - - 88 ) * - 21 ) * + CASE + + 98 WHEN - 78 - + MIN ( ALL + ( - 11 ) ) + + 5 * + CAST ( - ( 27 ) AS INTEGER ) * 79 THEN + 77 WHEN + 86 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6695
SELECT + - 87 DIV + - MAX( ALL - - 94 )
----
0

skipif mysql # not compatible
query I rowsort label-6695
SELECT + - 87 / + - MAX ( ALL - - 94 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6696
SELECT ALL - 81 DIV - 72 col0
----
1

skipif mysql # not compatible
query I rowsort label-6696
SELECT ALL - 81 / - 72 col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL CAST( 11 AS SIGNED ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL CAST ( 11 AS INTEGER ) AS col1
----
11

query II rowsort
SELECT 52 AS col2, + 11 AS col1
----
52
11

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT DISTINCT 74 AS col0, + 79 + - ( - + 61 ) * + 82 + - COUNT( * ) + - 0 * - COUNT( * ) * - + SUM( + + 25 ) * + + 91
----
74
5080

skipif mysql # not compatible
query II rowsort label-6699
SELECT DISTINCT 74 AS col0, + 79 + - ( - + 61 ) * + 82 + - COUNT ( * ) + - 0 * - COUNT ( * ) * - + SUM ( + + 25 ) * + + 91
----
74
5080

query I rowsort
SELECT ALL 44 * + 64 * - - 30 AS col0
----
84480

query I rowsort
SELECT 18 * - - 63
----
1134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6702
SELECT - 9 DIV + 17 + - + 14 + - - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6702
SELECT - 9 / + 17 + - + 14 + - - COUNT ( * ) AS col1
----
-13

query II rowsort
SELECT 38 AS col2, 24 col1
----
38
24

query II rowsort
SELECT + 84, - 4 * 68 AS col2
----
84
-272

query II rowsort
SELECT DISTINCT - 69 AS col2, 26
----
-69
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL 8 * - - COUNT( * ) * 78
----
624

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL 8 * - - COUNT ( * ) * 78
----
624

onlyif mysql # aggregate syntax: 
query II rowsort label-6707
SELECT COUNT( * ) * + 78 AS col1, 36
----
78
36

skipif mysql # not compatible
query II rowsort label-6707
SELECT COUNT ( * ) * + 78 AS col1, 36
----
78
36

query II rowsort
SELECT 89 col1, 73 * + 13 AS col2
----
89
949

query I rowsort
SELECT - 83 * 46 + - + ( - 44 ) AS col0
----
-3774

query II rowsort
SELECT 76, - 5 * + + 58 AS col0
----
76
-290

query I rowsort
SELECT ALL 72 + 77
----
149

query II rowsort
SELECT 39 AS col0, + 18 AS col1
----
39
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6713
SELECT + 59 DIV - - 78
----
0

skipif mysql # not compatible
query I rowsort label-6713
SELECT + 59 / - - 78
----
0

query I rowsort
SELECT ALL + 29 * 77
----
2233

query I rowsort
SELECT ALL + 18 + - ( + 98 ) AS col2
----
-80

query I rowsort
SELECT DISTINCT - 96 * - ( 69 )
----
6624

query I rowsort
SELECT ALL + 37 + - 44 + + COALESCE ( 14, 43 ) AS col2
----
7

query II rowsort
SELECT DISTINCT + 7 AS col2, 28 AS col2
----
7
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT ALL - + 41 + 8 DIV + + 36 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-6719
SELECT ALL - + 41 + 8 / + + 36 AS col1
----
-41

query I rowsort
SELECT - 9 * - 6 * - + 65 AS col0
----
-3510

query II rowsort
SELECT - 39, + NULLIF ( + 8, 54 ) AS col1
----
-39
8

query II rowsort
SELECT - 89 AS col1, 94
----
-89
94

query I rowsort
SELECT + 75 - 93 * - 1
----
168

query II rowsort
SELECT + 40, 19 AS col2
----
40
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6725
SELECT ( - - COUNT( DISTINCT + ( + 50 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-6725
SELECT ( - - COUNT ( DISTINCT + ( + 50 ) ) )
----
1

query I rowsort
SELECT DISTINCT + - 99 - + + CASE - 21 WHEN + 46 THEN - + 60 + - 71 ELSE - - 57 END AS col1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT 94 * + COUNT( * ) - + 99 * + - 83 AS col2
----
8311

skipif mysql # not compatible
query I rowsort label-6727
SELECT 94 * + COUNT ( * ) - + 99 * + - 83 AS col2
----
8311

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT ALL + 52 DIV - + 84 + - 93
----
-93

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + 52 / - + 84 + - 93
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-6729
SELECT ALL - COUNT( * ) AS col0, + 75
----
-1
75

skipif mysql # not compatible
query II rowsort label-6729
SELECT ALL - COUNT ( * ) AS col0, + 75
----
-1
75

query I rowsort
SELECT - + ( - + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL + COUNT( * ) * 67 * COUNT( * ) col0
----
67

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL + COUNT ( * ) * 67 * COUNT ( * ) col0
----
67

query I rowsort
SELECT 18 - + 31 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT 2 + - SUM( ALL - + 61 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6733
SELECT 2 + - SUM ( ALL - + 61 ) AS col1
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6734
SELECT COUNT( * ) * + 1 * - - COALESCE ( + 63, - 98 * 90 * 22 + - COUNT( * ), + MAX( ALL + 17 ) ) DIV + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6734
SELECT COUNT ( * ) * + 1 * - - COALESCE ( + 63, - 98 * 90 * 22 + - COUNT ( * ), + MAX ( ALL + 17 ) ) / + COUNT ( * ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6735
SELECT 18 + COUNT( * ) * 32 + 74 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-6735
SELECT 18 + COUNT ( * ) * 32 + 74 AS col2
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT 24 * + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6736
SELECT 24 * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 94 + + 81 AS col2
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT ALL - ( SUM( + 70 ) ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-6738
SELECT ALL - ( SUM ( + 70 ) ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6739
SELECT COUNT( * ) DIV + + ( - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-6739
SELECT COUNT ( * ) / + + ( - 16 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT 12 DIV - 17 + + 84 col2
----
84

skipif mysql # not compatible
query I rowsort label-6740
SELECT 12 / - 17 + + 84 col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL - SUM( ALL 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL - SUM ( ALL 11 ) AS col0
----
-11

query II rowsort
SELECT 53 + + 93 AS col2, 23
----
146
23

query I rowsort
SELECT ( - + 24 ) * - 73 + + 91 AS col1
----
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT ALL 95 + - + MIN( DISTINCT - + 24 ) * + + COUNT( * )
----
119

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL 95 + - + MIN ( DISTINCT - + 24 ) * + + COUNT ( * )
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT DISTINCT 54 * - ( - NULLIF ( - - 81, - 21 * - 33 ) ) * NULLIF ( - NULLIF ( - 15, - + COUNT( * ) / - ( ( + 3 ) ) ), - 41 )
----
65610

skipif mysql # not compatible
query I rowsort label-6745
SELECT DISTINCT 54 * - ( - NULLIF ( - - 81, - 21 * - 33 ) ) * NULLIF ( - NULLIF ( - 15, - + COUNT ( * ) / - ( ( + 3 ) ) ), - 41 )
----
65610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6746
SELECT + - CAST( + 39 AS SIGNED ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-6746
SELECT + - CAST ( + 39 AS INTEGER ) AS col2
----
-39

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6747
SELECT ALL - - 23 + - 78 * + + CAST( NULL AS SIGNED ) + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6747
SELECT ALL - - 23 + - 78 * + + CAST ( NULL AS INTEGER ) + CAST ( - CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6748
SELECT 48 * - + 91, COUNT( * ) col1
----
-4368
1

skipif mysql # not compatible
query II rowsort label-6748
SELECT 48 * - + 91, COUNT ( * ) col1
----
-4368
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT DISTINCT + 75 DIV + + 71 - ( + 21 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6749
SELECT DISTINCT + 75 / + + 71 - ( + 21 ) AS col2
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6750
SELECT CASE 7 WHEN - 92 - COUNT( * ) THEN NULL ELSE CASE + + 18 WHEN + + 90 * 19 THEN 81 * - 91 - + - 30 WHEN + ( + 84 ) / + 32 THEN NULL END + + - NULLIF ( - - COUNT( * ), + - 2 ) + - - CAST( - ( 4 ) AS SIGNED ) END + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT CASE 7 WHEN - 92 - COUNT ( * ) THEN NULL ELSE CASE + + 18 WHEN + + 90 * 19 THEN 81 * - 91 - + - 30 WHEN + ( + 84 ) / + 32 THEN NULL END + + - NULLIF ( - - COUNT ( * ), + - 2 ) + - - CAST ( - ( 4 ) AS INTEGER ) END + - 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6751
SELECT CAST( 27 AS SIGNED ) + + SUM( DISTINCT + 22 )
----
49

skipif mysql # not compatible
query I rowsort label-6751
SELECT CAST ( 27 AS INTEGER ) + + SUM ( DISTINCT + 22 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT DISTINCT 99 DIV + 84 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6752
SELECT DISTINCT 99 / + 84 AS col1
----
1

query I rowsort
SELECT 51 * 30 + - 20 + + + 98 * - 28
----
-1234

query I rowsort
SELECT 48 - - 91 + 41 AS col2
----
180

query I rowsort
SELECT 50 + - 74 + - 74 * + 94 AS col2
----
-6980

onlyif mysql # aggregate syntax: 
query I rowsort label-6756
SELECT ALL + + COUNT( * ) * 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + + COUNT ( * ) * 16 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT DISTINCT + CASE + 42 WHEN + 69 THEN - 46 WHEN + - CAST( NULL AS SIGNED ) THEN NULL END * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT DISTINCT + CASE + 42 WHEN + 69 THEN - 46 WHEN + - CAST ( NULL AS INTEGER ) THEN NULL END * + 19
----
NULL

query I rowsort
SELECT + 51 + 56 * - + 56
----
-3085

query I rowsort
SELECT - 27 + - - 30
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT - NULLIF ( + + MIN( + NULLIF ( 65, ( 80 ) + + COALESCE ( - 30, 67 ) ) ), + 54 * + + CASE + + 98 WHEN 38 * - ( + 20 ) THEN NULL WHEN - 11 + 5 THEN NULL WHEN + - 78 THEN NULL ELSE - + COALESCE ( - 3, + 89 ) END )
----
-65

skipif mysql # not compatible
query I rowsort label-6760
SELECT - NULLIF ( + + MIN ( + NULLIF ( 65, ( 80 ) + + COALESCE ( - 30, 67 ) ) ), + 54 * + + CASE + + 98 WHEN 38 * - ( + 20 ) THEN NULL WHEN - 11 + 5 THEN NULL WHEN + - 78 THEN NULL ELSE - + COALESCE ( - 3, + 89 ) END )
----
-65

query I rowsort
SELECT - 3 + 92 AS col2
----
89

query I rowsort
SELECT DISTINCT + 26 + - 6
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT - COUNT( * ) * - + 8
----
8

skipif mysql # not compatible
query I rowsort label-6763
SELECT - COUNT ( * ) * - + 8
----
8

query I rowsort
SELECT ALL + 8 + + 72 AS col0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6765
SELECT DISTINCT NULLIF ( + + NULLIF ( - 16, - CAST( NULL AS SIGNED ) * 89 * 24 ), - 6 + - 13 * - 29 ) AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT NULLIF ( + + NULLIF ( - 16, - CAST ( NULL AS INTEGER ) * 89 * 24 ), - 6 + - 13 * - 29 ) AS col1
----
-16

query II rowsort
SELECT + 46 AS col1, + 18 AS col2
----
46
18

query I rowsort
SELECT - 13 * + 84 AS col0
----
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT COALESCE ( + - MAX( + ( ( - - 99 ) ) ), 38 )
----
-99

skipif mysql # not compatible
query I rowsort label-6768
SELECT COALESCE ( + - MAX ( + ( ( - - 99 ) ) ), 38 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT - COUNT( * ) + 4 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6769
SELECT - COUNT ( * ) + 4 AS col2
----
3

query I rowsort
SELECT + 83 * + 94
----
7802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6771
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) / + 91 / + 81 * + - 34 + + COALESCE ( - CAST( + 19 AS SIGNED ), + COUNT( ALL - 10 ) ) * + + 96 / + - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) / + 91 / + 81 * + - 34 + + COALESCE ( - CAST ( + 19 AS INTEGER ), + COUNT ( ALL - 10 ) ) * + + 96 / + - 2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6772
SELECT ALL + 12 * + - 63 DIV - 63 - + - 56, 51 AS col1
----
68
51

skipif mysql # not compatible
query II rowsort label-6772
SELECT ALL + 12 * + - 63 / - 63 - + - 56, 51 AS col1
----
68
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL + COUNT( ALL + 85 )
----
1

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL + COUNT ( ALL + 85 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT ALL + COUNT( * ) * + 7 - 52 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-6774
SELECT ALL + COUNT ( * ) * + 7 - 52 AS col0
----
-45

query I rowsort
SELECT - 68 * + 21 - - + ( + - 76 ) * + 95
----
-8648

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-6776
SELECT ALL - + 70 DIV 21 * + 72 col0, 86 - 21 + + - COUNT( * ) * CASE - 17 WHEN + - COUNT( * ) * - 6 THEN 33 + + 63 * - AVG ( ALL - + 97 ) END * 77 * 1 AS col1, + SUM( - + 76 ) AS col1
----
-216
NULL
-76

skipif mysql # not compatible
query III rowsort label-6776
SELECT ALL - + 70 / 21 * + 72 col0, 86 - 21 + + - COUNT ( * ) * CASE - 17 WHEN + - COUNT ( * ) * - 6 THEN 33 + + 63 * - AVG ( ALL - + 97 ) END * 77 * 1 AS col1, + SUM ( - + 76 ) AS col1
----
-216
NULL
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT - - COUNT( * ) + + ( + 33 )
----
34

skipif mysql # not compatible
query I rowsort label-6777
SELECT - - COUNT ( * ) + + ( + 33 )
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-6778
SELECT + ( - - MIN( - 12 ) ) AS col2, 97 + 2 * + + 99 + - NULLIF ( 18, + 11 ) + - + 70
----
-12
207

skipif mysql # not compatible
query II rowsort label-6778
SELECT + ( - - MIN ( - 12 ) ) AS col2, 97 + 2 * + + 99 + - NULLIF ( 18, + 11 ) + - + 70
----
-12
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6779
SELECT + + CAST( NULL AS SIGNED ) + + 35
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT + + CAST ( NULL AS INTEGER ) + + 35
----
NULL

query I rowsort
SELECT - + 96 * + 1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT ALL 87 * + COUNT( * ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6781
SELECT ALL 87 * + COUNT ( * ) AS col1
----
87

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6782
SELECT - 66 * - 66 + 77 * - - 66 * + CAST( NULL AS SIGNED ) + - - 42 - + + 23 * + 39 / + + 26 + - 18 + - - ( CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6782
SELECT - 66 * - 66 + 77 * - - 66 * + CAST ( NULL AS INTEGER ) + - - 42 - + + 23 * + 39 / + + 26 + - 18 + - - ( CAST ( NULL AS REAL ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT ALL + COUNT( * ), 47 col1
----
1
47

skipif mysql # not compatible
query II rowsort label-6783
SELECT ALL + COUNT ( * ), 47 col1
----
1
47

query I rowsort
SELECT DISTINCT + ( + 2 ) col1
----
2

query II rowsort
SELECT - - 96 AS col2, - 56 + 54
----
96
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6786
SELECT 85 AS col1, - ( + - MAX( ALL + - 74 ) ) col2
----
85
-74

skipif mysql # not compatible
query II rowsort label-6786
SELECT 85 AS col1, - ( + - MAX ( ALL + - 74 ) ) col2
----
85
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6787
SELECT - CASE 6 WHEN SUM( - - 0 ) THEN 5 DIV + 40 - + - 18 * + - 55 WHEN - NULLIF ( - + 44, + 55 * + MIN( ALL + 23 ) + + + 54 + - SUM( - 15 ) * - + 6 ) THEN NULL ELSE COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-6787
SELECT - CASE 6 WHEN SUM ( - - 0 ) THEN 5 / + 40 - + - 18 * + - 55 WHEN - NULLIF ( - + 44, + 55 * + MIN ( ALL + 23 ) + + + 54 + - SUM ( - 15 ) * - + 6 ) THEN NULL ELSE COUNT ( * ) END
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6788
SELECT - - 70 * - ( + - CASE COUNT( * ) WHEN 7 THEN 79 + + CAST( NULL AS DECIMAL ) END ) + + + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6788
SELECT - - 70 * - ( + - CASE COUNT ( * ) WHEN 7 THEN 79 + + CAST ( NULL AS REAL ) END ) + + + 5 AS col0
----
NULL

query I rowsort
SELECT - ( - - ( - - ( - + 43 ) ) ) AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT + 15 - - CAST( NULL AS SIGNED ) + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT + 15 - - CAST ( NULL AS INTEGER ) + - 90 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6791
SELECT - CAST( - ( 9 ) AS SIGNED ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-6791
SELECT - CAST ( - ( 9 ) AS INTEGER ) AS col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT + 91 - 65 + - + 67 - 42 * + CAST( - COUNT( * ) AS SIGNED ) * 11 * + 96 AS col1
----
44311

skipif mysql # not compatible
query I rowsort label-6792
SELECT + 91 - 65 + - + 67 - 42 * + CAST ( - COUNT ( * ) AS INTEGER ) * 11 * + 96 AS col1
----
44311

query I rowsort
SELECT - ( - - 39 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6794
SELECT ALL CAST( + CASE + COUNT( * ) WHEN - - 35 THEN - + 51 WHEN + 35 THEN + 34 * + 35 END AS DECIMAL ) + - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL CAST ( + CASE + COUNT ( * ) WHEN - - 35 THEN - + 51 WHEN + 35 THEN + 34 * + 35 END AS REAL ) + - 78 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT + 44 DIV - 52 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6795
SELECT + 44 / - 52 AS col2
----
0

query I rowsort
SELECT ALL 55 + - - 49 * 22
----
1133

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT + 61 * 27 AS col2, COUNT( * )
----
1647
1

skipif mysql # not compatible
query II rowsort label-6797
SELECT + 61 * 27 AS col2, COUNT ( * )
----
1647
1

query I rowsort
SELECT ALL COALESCE ( 50, 76 ) + + 96
----
146

onlyif mysql # DIV for integer division: 
query I rowsort label-6799
SELECT - ( - 45 ) * 54 DIV 22
----
110

skipif mysql # not compatible
query I rowsort label-6799
SELECT - ( - 45 ) * 54 / 22
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-6800
SELECT ALL NULLIF ( ( 19 ), + 79 + 90 * - SUM( DISTINCT 41 ) ) AS col2, 98
----
19
98

skipif mysql # not compatible
query II rowsort label-6800
SELECT ALL NULLIF ( ( 19 ), + 79 + 90 * - SUM ( DISTINCT 41 ) ) AS col2, 98
----
19
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT ALL CASE - 15 WHEN - 80 / - 32 * + ( - 84 ) / COUNT( * ) THEN - - 98 - - COUNT( * ) - COALESCE ( + COUNT( * ), + NULLIF ( - - ( - - 50 ), - 4 ), + CASE 34 WHEN - + 32 / + - 15 + 86 THEN - 73 WHEN + + 9 * CAST( NULLIF ( - 23, - - 25 ) AS SIGNED ) * - CASE WHEN NOT 39 IS NULL THEN + 28 END THEN NULL ELSE COUNT( * ) END * NULLIF ( + 49, 12 * - 56 + - 87 * 70 + - 67 ) + 92 + + COUNT( DISTINCT 84 ) ) * - 19 WHEN 81 THEN + 96 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT ALL CASE - 15 WHEN - 80 / - 32 * + ( - 84 ) / COUNT ( * ) THEN - - 98 - - COUNT ( * ) - COALESCE ( + COUNT ( * ), + NULLIF ( - - ( - - 50 ), - 4 ), + CASE 34 WHEN - + 32 / + - 15 + 86 THEN - 73 WHEN + + 9 * CAST ( NULLIF ( - 23, - - 25 ) AS INTEGER ) * - CASE WHEN NOT 39 IS NULL THEN + 28 END THEN NULL ELSE COUNT ( * ) END * NULLIF ( + 49, 12 * - 56 + - 87 * 70 + - 67 ) + 92 + + COUNT ( DISTINCT 84 ) ) * - 19 WHEN 81 THEN + 96 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT MAX( ALL 21 ) * + - 73 + + SUM( ALL 6 ) AS col0
----
-1527

skipif mysql # not compatible
query I rowsort label-6802
SELECT MAX ( ALL 21 ) * + - 73 + + SUM ( ALL 6 ) AS col0
----
-1527

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - 77 * + COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - 77 * + COUNT ( * )
----
-77

query I rowsort
SELECT + 71 * 78
----
5538

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6805
SELECT ALL COALESCE ( - 16, - COUNT( * ) ) / + + 54 - + + CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL COALESCE ( - 16, - COUNT ( * ) ) / + + 54 - + + CAST ( NULL AS REAL ) col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT + 97 DIV - ( + + 14 )
----
-6

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + 97 / - ( + + 14 )
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6807
SELECT DISTINCT - 7 DIV 15 + - MAX( ALL - 12 ) + + - 35 - + 74 + + + MAX( + 45 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-6807
SELECT DISTINCT - 7 / 15 + - MAX ( ALL - 12 ) + + - 35 - + 74 + + + MAX ( + 45 ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-6808
SELECT + 5 * - + 19 * + COUNT( DISTINCT - 10 ) AS col1, + 49
----
-95
49

skipif mysql # not compatible
query II rowsort label-6808
SELECT + 5 * - + 19 * + COUNT ( DISTINCT - 10 ) AS col1, + 49
----
-95
49

query I rowsort
SELECT DISTINCT - - 93 * + NULLIF ( - + 55, + 34 )
----
-5115

query II rowsort
SELECT - 2 * - 55, - 34 AS col1
----
110
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6811
SELECT 9 * CAST( NULL AS SIGNED ) * + + 23 * - + CAST( - 23 AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6811
SELECT 9 * CAST ( NULL AS INTEGER ) * + + 23 * - + CAST ( - 23 AS INTEGER ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL - CASE + 88 WHEN + 22 THEN 60 * - - AVG ( - 95 ) * - CASE 29 WHEN COUNT( * ) THEN NULL ELSE - 42 * - 42 * + - 48 END * - + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - CASE + 88 WHEN + 22 THEN 60 * - - AVG ( - 95 ) * - CASE 29 WHEN COUNT ( * ) THEN NULL ELSE - 42 * - 42 * + - 48 END * - + 90 END
----
NULL

query I rowsort
SELECT DISTINCT + 71 + + - 90 AS col1
----
-19

query II rowsort
SELECT 90 + - + 68, + 92 AS col2
----
22
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6815
SELECT CASE - + COUNT( * ) WHEN + + 78 * COUNT( * ) + + - CAST( + 96 AS SIGNED ) THEN - + 30 * 23 ELSE AVG ( ALL + CAST( NULL AS SIGNED ) ) END - + + ( - 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT CASE - + COUNT ( * ) WHEN + + 78 * COUNT ( * ) + + - CAST ( + 96 AS INTEGER ) THEN - + 30 * 23 ELSE AVG ( ALL + CAST ( NULL AS INTEGER ) ) END - + + ( - 89 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6816
SELECT ALL - MAX( 63 ) * CASE - 60 WHEN + 89 THEN + + 4 * 23 + - 37 - + - ( + + MAX( ALL 1 ) ) END col2, - 25 + + 63
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6816
SELECT ALL - MAX ( 63 ) * CASE - 60 WHEN + 89 THEN + + 4 * 23 + - 37 - + - ( + + MAX ( ALL 1 ) ) END col2, - 25 + + 63
----
NULL
38

query I rowsort
SELECT ALL 79 + + + NULLIF ( - 92, - + 71 ) col0
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6818
SELECT DISTINCT - ( MAX( 59 ) ) * NULLIF ( - - COUNT( ALL + - 19 ), - - COUNT( * ) * + + 67 ) DIV MAX( - 17 ) * - - 81 AS col2
----
243

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - ( MAX ( 59 ) ) * NULLIF ( - - COUNT ( ALL + - 19 ), - - COUNT ( * ) * + + 67 ) / MAX ( - 17 ) * - - 81 AS col2
----
243

query I rowsort
SELECT 53 + - 64 AS col2
----
-11

query I rowsort
SELECT ( - 9 ) + 80 AS col0
----
71

query II rowsort
SELECT DISTINCT 40, 74 AS col0
----
40
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6822
SELECT COUNT( + 98 ) + CASE - CAST( + 42 AS SIGNED ) WHEN - 65 * - COUNT( * ) + ( + + 48 ) - + + 24 * + + CAST( NULL AS SIGNED ) - - 34 + + 84 * + 83 THEN COALESCE ( 94, 72 + - - COUNT( * ), - + 23 ) * + - 61 + + 60 WHEN 80 * - 51 THEN - 19 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT COUNT ( + 98 ) + CASE - CAST ( + 42 AS INTEGER ) WHEN - 65 * - COUNT ( * ) + ( + + 48 ) - + + 24 * + + CAST ( NULL AS INTEGER ) - - 34 + + 84 * + 83 THEN COALESCE ( 94, 72 + - - COUNT ( * ), - + 23 ) * + - 61 + + 60 WHEN 80 * - 51 THEN - 19 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6823
SELECT CAST( + MAX( ALL + + 20 ) AS SIGNED ) + + 37 * + CAST( NULL AS SIGNED ) / + + 8 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT CAST ( + MAX ( ALL + + 20 ) AS INTEGER ) + + 37 * + CAST ( NULL AS INTEGER ) / + + 8 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6824
SELECT ALL + CAST( NULL AS SIGNED ) - MIN( COALESCE ( CAST( NULL AS SIGNED ), + 15 ) ) * COALESCE ( - + 12, + 45 * + - 40 - - 24, + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + CAST ( NULL AS INTEGER ) - MIN ( COALESCE ( CAST ( NULL AS INTEGER ), + 15 ) ) * COALESCE ( - + 12, + 45 * + - 40 - - 24, + 67 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6825
SELECT ALL 66 * 25 * 16 * MIN( ALL - 29 ) AS col1, 20 * - COUNT( * ) * + ( - + 53 )
----
-765600
1060

skipif mysql # not compatible
query II rowsort label-6825
SELECT ALL 66 * 25 * 16 * MIN ( ALL - 29 ) AS col1, 20 * - COUNT ( * ) * + ( - + 53 )
----
-765600
1060

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT SUM( + 4 ) * ( + 55 ) AS col1
----
220

skipif mysql # not compatible
query I rowsort label-6826
SELECT SUM ( + 4 ) * ( + 55 ) AS col1
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT ALL 77 * - + 99 * - + CAST( + - 4 AS SIGNED )
----
-30492

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL 77 * - + 99 * - + CAST ( + - 4 AS INTEGER )
----
-30492

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT + ( 7 ) * - 81 + - + CASE 49 WHEN + - 18 + - - MAX( - - 97 ) + + 45 THEN + 27 * 25 * + 67 + - 16 WHEN + + 66 * - CAST( - 14 AS SIGNED ) * - 36 + + 47 * - 96 THEN MIN( + ( + 67 ) ) * + 93 END / 73 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT + ( 7 ) * - 81 + - + CASE 49 WHEN + - 18 + - - MAX ( - - 97 ) + + 45 THEN + 27 * 25 * + 67 + - 16 WHEN + + 66 * - CAST ( - 14 AS INTEGER ) * - 36 + + 47 * - 96 THEN MIN ( + ( + 67 ) ) * + 93 END / 73 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6829
SELECT NULLIF ( - 52, + COALESCE ( - 2, + MAX( DISTINCT 1 ) * + + ( + 30 ) ) + + NULLIF ( + - 24, - - 9 * 99 + - + ( - 27 ) ) * - 38 / + - 48 - + + ( + 9 ) ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-6829
SELECT NULLIF ( - 52, + COALESCE ( - 2, + MAX ( DISTINCT 1 ) * + + ( + 30 ) ) + + NULLIF ( + - 24, - - 9 * 99 + - + ( - 27 ) ) * - 38 / + - 48 - + + ( + 9 ) ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT CASE - 94 WHEN + 16 / + 15 THEN + + 67 / - 69 / 30 - - + 67 + MIN( ( 63 ) ) * 15 / + - MAX( DISTINCT + 55 ) WHEN + 86 THEN 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6830
SELECT CASE - 94 WHEN + 16 / + 15 THEN + + 67 / - 69 / 30 - - + 67 + MIN ( ( 63 ) ) * 15 / + - MAX ( DISTINCT + 55 ) WHEN + 86 THEN 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + 95 * + 64 + + COUNT( * )
----
6081

skipif mysql # not compatible
query I rowsort label-6831
SELECT + 95 * + 64 + + COUNT ( * )
----
6081

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6832
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 34 * - 94 + + 81 THEN - - 3 WHEN + 8 THEN + + 60 - + 67 ELSE NULL END * - 37, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-6832
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 34 * - 94 + + 81 THEN - - 3 WHEN + 8 THEN + + 60 - + 67 ELSE NULL END * - 37, 18 AS col0
----
NULL
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6833
SELECT - SUM( ( + ( + COALESCE ( - - 89, - 60 + + 72, - 3 DIV - - 90 ) ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-6833
SELECT - SUM ( ( + ( + COALESCE ( - - 89, - 60 + + 72, - 3 / - - 90 ) ) ) )
----
-89

query I rowsort
SELECT ALL - + CASE + 88 WHEN - - 88 * + 31 THEN NULL WHEN - AVG ( ALL CASE + 13 WHEN 47 / 50 THEN 56 ELSE + + 60 + 62 * + + 42 END ) THEN - + ( 33 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 25 + - 42 AS col2
----
-67

query II rowsort
SELECT DISTINCT - + 1 col2, 94 + 66
----
-1
160

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL - - 15 + + + COUNT( * ) - CASE + - ( 17 ) WHEN - 91 THEN + 67 END + + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL - - 15 + + + COUNT ( * ) - CASE + - ( 17 ) WHEN - 91 THEN + 67 END + + + 6 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 92 + - 84
----
8

query I rowsort
SELECT - 19 * - + 49 + - - 91 + 71 + + + 68 AS col1
----
1161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT DISTINCT - + CAST( - + 62 AS SIGNED )
----
62

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT - + CAST ( - + 62 AS INTEGER )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT ALL + - COUNT( * ) + CAST( NULL AS SIGNED ) - - + SUM( + ( + 50 ) ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL + - COUNT ( * ) + CAST ( NULL AS INTEGER ) - - + SUM ( + ( + 50 ) ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + 42 * 28
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT + + 73 + 56 + COUNT( - + 62 ) AS col2
----
130

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT + + 73 + 56 + COUNT ( - + 62 ) AS col2
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL MAX( DISTINCT + 52 ) * - 81
----
-4212

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL MAX ( DISTINCT + 52 ) * - 81
----
-4212

query II rowsort
SELECT 46 * - 7, 20 AS col2
----
-322
20

query I rowsort
SELECT ALL + 49 * 48
----
2352

onlyif mysql # DIV for integer division: 
query I rowsort label-6847
SELECT 53 DIV 50 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6847
SELECT 53 / 50 AS col2
----
1

query I rowsort
SELECT 33 * - 53 AS col2
----
-1749

query II rowsort
SELECT - 86 col1, 61 AS col1
----
-86
61

query II rowsort
SELECT - 89 AS col2, 34
----
-89
34

query I rowsort
SELECT ALL - 77 * 97
----
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT - 4 * COUNT( DISTINCT 54 ) * NULLIF ( + - 85, - 66 ) AS col0
----
340

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT - 4 * COUNT ( DISTINCT 54 ) * NULLIF ( + - 85, - 66 ) AS col0
----
340

query II rowsort
SELECT - 0 col0, 3
----
0
3

query I rowsort
SELECT ALL + 87 * - 71 AS col2
----
-6177

query II rowsort
SELECT DISTINCT 56, 91 AS col1
----
56
91

query I rowsort
SELECT 87 - 14 + + - 81
----
-8

query I rowsort
SELECT 61 + + 71 AS col1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6858
SELECT - 48 - - CAST( NULL AS SIGNED ) * 86 + - + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT - 48 - - CAST ( NULL AS INTEGER ) * 86 + - + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT DISTINCT COUNT( - 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6859
SELECT DISTINCT COUNT ( - 99 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT + 1 + + 12 DIV + 67 * 96 + + 48 * 67 - - + 57 + 21
----
3295

skipif mysql # not compatible
query I rowsort label-6860
SELECT + 1 + + 12 / + 67 * 96 + + 48 * 67 - - + 57 + 21
----
3295

query II rowsort
SELECT - - 91 col1, 71
----
91
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6862
SELECT + ( + 99 ) + + 35 + + ( 47 ) - + + COUNT( * ) * 94 + + - CAST( - + 36 AS SIGNED ) DIV - 52 * + - 25 col2, - 68
----
87
-68

skipif mysql # not compatible
query II rowsort label-6862
SELECT + ( + 99 ) + + 35 + + ( 47 ) - + + COUNT ( * ) * 94 + + - CAST ( - + 36 AS INTEGER ) / - 52 * + - 25 col2, - 68
----
87
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6863
SELECT ALL CAST( + - 78 AS SIGNED ) * + - 38
----
2964

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL CAST ( + - 78 AS INTEGER ) * + - 38
----
2964

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT DISTINCT + MAX( + 9 ) * + - NULLIF ( + 49, - 2 ) * - - 33 + - + 25 - - NULLIF ( + - NULLIF ( + MAX( 27 ), - SUM( ALL 72 ) ), + 44 ) DIV + 46
----
-14578

skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT + MAX ( + 9 ) * + - NULLIF ( + 49, - 2 ) * - - 33 + - + 25 - - NULLIF ( + - NULLIF ( + MAX ( 27 ), - SUM ( ALL 72 ) ), + 44 ) / + 46
----
-14578

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT DISTINCT + + COALESCE ( 50, - + CAST( - 3 AS SIGNED ) + - ( + - ( + 88 ) ) )
----
50

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + + COALESCE ( 50, - + CAST ( - 3 AS INTEGER ) + - ( + - ( + 88 ) ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT + SUM( + 14 ) + - 35 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6866
SELECT + SUM ( + 14 ) + - 35 AS col2
----
-21

query I rowsort
SELECT ALL 34 * + 2
----
68

query II rowsort
SELECT - 76 AS col2, 1 col0
----
-76
1

query I rowsort
SELECT + + ( - + 98 ) * - 55
----
5390

query II rowsort
SELECT 79, + 52 col1
----
79
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6871
SELECT - - CAST( MAX( 15 ) AS SIGNED ) DIV 4 + - - 41 AS col1
----
44

skipif mysql # not compatible
query I rowsort label-6871
SELECT - - CAST ( MAX ( 15 ) AS INTEGER ) / 4 + - - 41 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT ALL + - MAX( + + ( 33 ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + - MAX ( + + ( 33 ) ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT 81 * + + SUM( ALL + 17 ) - - 2 col0
----
1379

skipif mysql # not compatible
query I rowsort label-6873
SELECT 81 * + + SUM ( ALL + 17 ) - - 2 col0
----
1379

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT ALL ( + + 88 ) * + ( + + COUNT( * ) )
----
88

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL ( + + 88 ) * + ( + + COUNT ( * ) )
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6875
SELECT + NULLIF ( 50, 90 * + - CAST( NULL AS SIGNED ) + - 77 * - COUNT( * ) * + 47 - - CAST( - 87 AS DECIMAL ) * + + 30 * + 34 ) col2
----
50

skipif mysql # not compatible
query I rowsort label-6875
SELECT + NULLIF ( 50, 90 * + - CAST ( NULL AS INTEGER ) + - 77 * - COUNT ( * ) * + 47 - - CAST ( - 87 AS REAL ) * + + 30 * + 34 ) col2
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT + 2 + + 6, - 59 * - COUNT( * ) AS col2
----
8
59

skipif mysql # not compatible
query II rowsort label-6876
SELECT + 2 + + 6, - 59 * - COUNT ( * ) AS col2
----
8
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT + MAX( ALL + 47 ) * 99 AS col2
----
4653

skipif mysql # not compatible
query I rowsort label-6877
SELECT + MAX ( ALL + 47 ) * 99 AS col2
----
4653

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + 9 * + - COUNT( * ) + 99 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-6878
SELECT + 9 * + - COUNT ( * ) + 99 AS col0
----
90

query I rowsort
SELECT ALL NULLIF ( - 63, - 66 ) col1
----
-63

query I rowsort
SELECT - 55 + + 11 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6881
SELECT - ( + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT - ( + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT ALL + 18 DIV 83 col2
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT ALL + 18 / 83 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6883
SELECT - NULLIF ( 28, + COUNT( * ) ) + ( + NULLIF ( 65, 8 ) ) col2, MIN( DISTINCT + - 79 ) AS col2
----
37
-79

skipif mysql # not compatible
query II rowsort label-6883
SELECT - NULLIF ( 28, + COUNT ( * ) ) + ( + NULLIF ( 65, 8 ) ) col2, MIN ( DISTINCT + - 79 ) AS col2
----
37
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT - 77 + + 0 DIV - + 57
----
-77

skipif mysql # not compatible
query I rowsort label-6884
SELECT - 77 + + 0 / - + 57
----
-77

query II rowsort
SELECT ALL + ( 95 ) AS col2, 65
----
95
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT + + COUNT( + - 6 ) + - 93 + - 22 AS col1
----
-114

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT + + COUNT ( + - 6 ) + - 93 + - 22 AS col1
----
-114

query I rowsort
SELECT - 12 * + 94
----
-1128

query I rowsort
SELECT DISTINCT - 36 + - + 54
----
-90

query I rowsort
SELECT ALL ( + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT - + ( ( ( + 36 ) ) ) - - COUNT( * ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6890
SELECT - + ( ( ( + 36 ) ) ) - - COUNT ( * ) AS col1
----
-35

query I rowsort
SELECT - - 97 * - + 65
----
-6305

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - + SUM( - + 0 ) * 61 + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6892
SELECT - + SUM ( - + 0 ) * 61 + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6893
SELECT ALL + COUNT( DISTINCT 90 ) DIV - 26 + - 75 + + 8 DIV + 98 + + 11 + 62 + + ( 53 ) * + 10 - - + MIN( DISTINCT + - 25 )
----
503

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL + COUNT ( DISTINCT 90 ) / - 26 + - 75 + + 8 / + 98 + + 11 + 62 + + ( 53 ) * + 10 - - + MIN ( DISTINCT + - 25 )
----
503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6894
SELECT DISTINCT + - COUNT( * ) DIV - COUNT( * ) + - 34 + 62
----
29

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + - COUNT ( * ) / - COUNT ( * ) + - 34 + 62
----
29

query I rowsort
SELECT DISTINCT 72 * - 81 + + - 52
----
-5884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6896
SELECT ALL - CAST( NULL AS SIGNED ) / - + 75 + + 51 + + 81 + + 85 - - 64 * - 55 - + COUNT( * ) + - 81 * 7 + + 23 + - - 54 + + - 34 + + MIN( ALL 76 ) * 69 + + CAST( 36 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL - CAST ( NULL AS INTEGER ) / - + 75 + + 51 + + 81 + + 85 - - 64 * - 55 - + COUNT ( * ) + - 81 * 7 + + 23 + - - 54 + + - 34 + + MIN ( ALL 76 ) * 69 + + CAST ( 36 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 93 * + - 91 - - + 65 AS col0
----
-8398

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + COUNT( * ) + + 57 * - 52 AS col0
----
-2963

skipif mysql # not compatible
query I rowsort label-6898
SELECT + COUNT ( * ) + + 57 * - 52 AS col0
----
-2963

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT - 9 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT - 9 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6900
SELECT DISTINCT + 10 AS col2, - CAST( + 42 AS SIGNED )
----
10
-42

skipif mysql # not compatible
query II rowsort label-6900
SELECT DISTINCT + 10 AS col2, - CAST ( + 42 AS INTEGER )
----
10
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6901
SELECT ALL + COUNT( ALL 39 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + COUNT ( ALL 39 ) AS col1
----
1

query I rowsort
SELECT + ( + 18 ) * + ( - - ( 82 ) ) col2
----
1476

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6903
SELECT - CAST( NULL AS SIGNED ) col1, ( - + 28 ) AS col2
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-6903
SELECT - CAST ( NULL AS INTEGER ) col1, ( - + 28 ) AS col2
----
NULL
-28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6904
SELECT + CAST( NULL AS DECIMAL ) * + 19 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT + CAST ( NULL AS REAL ) * + 19 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT + ( + 87 ) DIV + + 14 col1
----
6

skipif mysql # not compatible
query I rowsort label-6905
SELECT + ( + 87 ) / + + 14 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT ALL MAX( 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL MAX ( 22 ) AS col0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT - ( - + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT - ( - + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6908
SELECT - 77 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT - 77 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6909
SELECT + 89 - - 7 + + + CASE - 89 WHEN + NULLIF ( + - CAST( NULL AS DECIMAL ), - 15 ) * 52 THEN + + 25 END * - 76 * + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT + 89 - - 7 + + + CASE - 89 WHEN + NULLIF ( + - CAST ( NULL AS REAL ), - 15 ) * 52 THEN + + 25 END * - 76 * + 74 AS col2
----
NULL

query II rowsort
SELECT - 8, 10 * - 70 col2
----
-8
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6911
SELECT ALL 1 * ( + 98 ), + CAST( NULL AS SIGNED ) AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-6911
SELECT ALL 1 * ( + 98 ), + CAST ( NULL AS INTEGER ) AS col1
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT DISTINCT 12 + 93 * COUNT( * ) * - 73 * + 18
----
-122190

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT 12 + 93 * COUNT ( * ) * - 73 * + 18
----
-122190

query II rowsort
SELECT ALL ( + 60 ) + + 3 AS col2, 5
----
63
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT ALL - 87 + - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-6914
SELECT ALL - 87 + - COUNT ( * )
----
-88

query I rowsort
SELECT - 10 * + 63 * - - 95
----
-59850

query I rowsort
SELECT ALL + 7 + 33
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT ALL - 37 + - 98 * 45 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL - 37 + - 98 * 45 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + MAX( + 13 ) + + 1 + ( - + 4 ) * + + ( + 89 ) col2
----
-342

skipif mysql # not compatible
query I rowsort label-6918
SELECT + MAX ( + 13 ) + + 1 + ( - + 4 ) * + + ( + 89 ) col2
----
-342

query I rowsort
SELECT + 76 + 19 AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT + 46 - - ( NULLIF ( - 6, + + 19 ) ) + COUNT( * ) + + + 34
----
75

skipif mysql # not compatible
query I rowsort label-6920
SELECT + 46 - - ( NULLIF ( - 6, + + 19 ) ) + COUNT ( * ) + + + 34
----
75

query II rowsort
SELECT 34, + 43 * - 34 AS col2
----
34
-1462

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT DISTINCT - COUNT( * ) - - 20 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6922
SELECT DISTINCT - COUNT ( * ) - - 20 AS col1
----
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6923
SELECT ALL COUNT( - 74 ) - - COUNT( * ) DIV COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL COUNT ( - 74 ) - - COUNT ( * ) / COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT SUM( ALL + + 64 )
----
64

skipif mysql # not compatible
query I rowsort label-6924
SELECT SUM ( ALL + + 64 )
----
64

query I rowsort
SELECT DISTINCT - 52 * - 70
----
3640

query I rowsort
SELECT ALL - - 53 - - + 67 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ( - 82 ) * + COUNT( * ) + + 89 + - - COUNT( ALL - - 2 ) + - + 84 AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6927
SELECT ( - 82 ) * + COUNT ( * ) + + 89 + - - COUNT ( ALL - - 2 ) + - + 84 AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT ALL - + 37 * + COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-6928
SELECT ALL - + 37 * + COUNT ( * )
----
-37

query II rowsort
SELECT + 6 AS col0, NULLIF ( 73, - 38 + 25 - - - 95 ) col1
----
6
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT + 62 + + COUNT( * ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6930
SELECT + 62 + + COUNT ( * ) AS col1
----
63

query I rowsort
SELECT ALL - 63 - - 32 + + 70
----
39

query I rowsort
SELECT 36 * - + 91 AS col0
----
-3276

query I rowsort
SELECT 72 * + - NULLIF ( + 65, - 28 - - - 40 + 99 ) * + ( + 12 )
----
-56160

onlyif mysql # DIV for integer division: 
query I rowsort label-6934
SELECT DISTINCT - 45 DIV + 16
----
-2

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - 45 / + 16
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT 52 + MAX( 59 ) * - 33 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT 52 + MAX ( 59 ) * - 33 / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 67 * 87 * - 90 col2
----
-524610

onlyif mysql # DIV for integer division: 
query I rowsort label-6937
SELECT DISTINCT - 45 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-6937
SELECT DISTINCT - 45 / 71
----
0

query I rowsort
SELECT + 13 * + 71 - 50 AS col1
----
873

query I rowsort
SELECT ALL - 28 * - - 22
----
-616

query I rowsort
SELECT 55 * + 87 + + - 22
----
4763

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ( - COALESCE ( 54, - 83 ) ) + - COUNT( * ) * 5 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6941
SELECT ( - COALESCE ( 54, - 83 ) ) + - COUNT ( * ) * 5 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL COUNT( * ) + - ( - COUNT( * ) ) + + + MIN( + 75 )
----
77

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL COUNT ( * ) + - ( - COUNT ( * ) ) + + + MIN ( + 75 )
----
77

query I rowsort
SELECT ALL 60 + + 0 + 18 + - ( + 83 ) + - 51
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT 87 + CAST( NULL AS SIGNED ) + + - MAX( ALL + 1 ) * 66
----
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT 87 + CAST ( NULL AS INTEGER ) + + - MAX ( ALL + 1 ) * 66
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6945
SELECT ALL - 56 + + COALESCE ( - CAST( NULL AS SIGNED ), ( 46 ) ) + + COUNT( * ) * + 51 * - ( - + 45 ) col2, COALESCE ( - - ( + 93 ), 62 * + ( - 75 ) )
----
2285
93

skipif mysql # not compatible
query II rowsort label-6945
SELECT ALL - 56 + + COALESCE ( - CAST ( NULL AS INTEGER ), ( 46 ) ) + + COUNT ( * ) * + 51 * - ( - + 45 ) col2, COALESCE ( - - ( + 93 ), 62 * + ( - 75 ) )
----
2285
93

query I rowsort
SELECT ALL - 11 + + + 82 AS col2
----
71

query I rowsort
SELECT - COALESCE ( + + 78, - + 0 ) AS col2
----
-78

query I rowsort
SELECT - 3 + 78 col1
----
75

query I rowsort
SELECT ALL ( - 66 ) AS col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6950
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 11
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6951
SELECT - 70 * + + CAST( - 86 AS SIGNED ) AS col1
----
6020

skipif mysql # not compatible
query I rowsort label-6951
SELECT - 70 * + + CAST ( - 86 AS INTEGER ) AS col1
----
6020

query I rowsort
SELECT - 44 + 12 + - 59
----
-91

query I rowsort
SELECT - + 48 col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL - NULLIF ( 71, - 36 + + + MIN( + - 35 ) ) col2
----
-71

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL - NULLIF ( 71, - 36 + + + MIN ( + - 35 ) ) col2
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6955
SELECT ( MAX( 47 ) ) DIV 7 AS col0, - 83 AS col2
----
6
-83

skipif mysql # not compatible
query II rowsort label-6955
SELECT ( MAX ( 47 ) ) / 7 AS col0, - 83 AS col2
----
6
-83

query I rowsort
SELECT 25 * 22 AS col0
----
550

query II rowsort
SELECT ALL + - 1 - - - 40 AS col2, - 89 AS col0
----
-41
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT - 33 DIV - ( + + 61 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6958
SELECT - 33 / - ( + + 61 ) AS col2
----
0

query I rowsort
SELECT - 77 - - + 67 + - 41
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT 72 DIV + - 37 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6960
SELECT 72 / + - 37 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ( COUNT( * ) ) + - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6961
SELECT ( COUNT ( * ) ) + - 71 AS col2
----
-70

query I rowsort
SELECT ALL - 59 * - + 66
----
3894

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT - NULLIF ( - 28, - 27 - + 22 + 81 + - - COUNT( * ) * + + 20 / 39 ) col2
----
28

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT - NULLIF ( - 28, - 27 - + 22 + 81 + - - COUNT ( * ) * + + 20 / 39 ) col2
----
28

query I rowsort
SELECT 56 - + + 18 AS col2
----
38

query I rowsort
SELECT ALL - ( 20 ) AS col0
----
-20

query I rowsort
SELECT ALL - 32 * - 72 col1
----
2304

query I rowsort
SELECT ALL 15 * 32 + 64
----
544

query I rowsort
SELECT 78 + + + 94 * 91 AS col1
----
8632

onlyif mysql # aggregate syntax: 
query II rowsort label-6969
SELECT DISTINCT - COUNT( * ) AS col2, - 32 * + - 43 - - 50 * + 80 * + ( + 82 ) AS col0
----
-1
329376

skipif mysql # not compatible
query II rowsort label-6969
SELECT DISTINCT - COUNT ( * ) AS col2, - 32 * + - 43 - - 50 * + 80 * + ( + 82 ) AS col0
----
-1
329376

query I rowsort
SELECT + CASE - 2 WHEN + + ( + ( - 4 ) ) THEN - + 82 * ( - - 39 ) WHEN + 68 THEN NULL WHEN - 39 THEN NULL END col2
----
NULL

query I rowsort
SELECT 87 + 89 AS col1
----
176

query II rowsort
SELECT ALL 59 * 8 + - 44 col1, + 60
----
428
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT 61 DIV + - 26
----
-2

skipif mysql # not compatible
query I rowsort label-6973
SELECT 61 / + - 26
----
-2

query I rowsort
SELECT 97 * 93 * + 76 AS col2
----
685596

query II rowsort
SELECT + 39 AS col2, 62
----
39
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6976
SELECT - SUM( DISTINCT - 44 ) * + COUNT( * ) DIV COUNT( ALL + - 59 ) - + 28, + 85 + + ( - CAST( 91 AS SIGNED ) ) * - 99 col1
----
16
9094

skipif mysql # not compatible
query II rowsort label-6976
SELECT - SUM ( DISTINCT - 44 ) * + COUNT ( * ) / COUNT ( ALL + - 59 ) - + 28, + 85 + + ( - CAST ( 91 AS INTEGER ) ) * - 99 col1
----
16
9094

query I rowsort
SELECT ALL - 24 + - 12
----
-36

query I rowsort
SELECT ALL 54 + - + 47 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT - COUNT( * ) + 41 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - COUNT ( * ) + 41 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + COUNT( * ) * - 71 + - - 51 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-6980
SELECT + COUNT ( * ) * - 71 + - - 51 AS col0
----
-20

query I rowsort
SELECT ALL - + NULLIF ( - 39, - 97 * - 80 * - 52 + 84 ) + - + 48 * - - 53 AS col0
----
-2505

query I rowsort
SELECT + + 93 * - 11 + - + 94
----
-1117

query I rowsort
SELECT + - 18 * + 57 * + - 75 + + + 12 AS col2
----
76962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6984
SELECT + + COALESCE ( + 73, COUNT( * ) ) + - - ( + ( - 99 ) ) DIV + NULLIF ( - - 75, CAST( NULL AS DECIMAL ) )
----
72

skipif mysql # not compatible
query I rowsort label-6984
SELECT + + COALESCE ( + 73, COUNT ( * ) ) + - - ( + ( - 99 ) ) / + NULLIF ( - - 75, CAST ( NULL AS REAL ) )
----
72

query I rowsort
SELECT ALL + - 58 - + + 20
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-6986
SELECT DISTINCT - - CASE 14 WHEN + 26 - - + 71 * 16 THEN 47 WHEN - + 75 THEN COUNT( * ) WHEN + 78 * - 74 THEN NULL END * + 34 * + + MIN( - 87 ) col2, - CASE + 85 WHEN - 66 THEN - + 78 WHEN + 1 + 11 THEN NULL END AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6986
SELECT DISTINCT - - CASE 14 WHEN + 26 - - + 71 * 16 THEN 47 WHEN - + 75 THEN COUNT ( * ) WHEN + 78 * - 74 THEN NULL END * + 34 * + + MIN ( - 87 ) col2, - CASE + 85 WHEN - 66 THEN - + 78 WHEN + 1 + 11 THEN NULL END AS col1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL 34 - SUM( DISTINCT + - 45 ) * - + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL 34 - SUM ( DISTINCT + - 45 ) * - + COUNT ( * ) AS col2
----
-11

query I rowsort
SELECT + 4 * + + 17
----
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6989
SELECT + CAST( NULL AS DECIMAL ) - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT + CAST ( NULL AS REAL ) - 51 AS col2
----
NULL

query I rowsort
SELECT - 61 + ( + 38 )
----
-23

query I rowsort
SELECT + 31 - 78 AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT ALL - 3 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL - 3 / + - 77
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6993
SELECT + + 97 * - 71 * + - 68 * MIN( - 66 ) * - COALESCE ( + 29, - 60 DIV + 63 + - + ( - 87 ) ) AS col0
----
896356824

skipif mysql # not compatible
query I rowsort label-6993
SELECT + + 97 * - 71 * + - 68 * MIN ( - 66 ) * - COALESCE ( + 29, - 60 / + 63 + - + ( - 87 ) ) AS col0
----
896356824

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + + 92 * + COUNT( * ) * + 82 AS col2
----
7544

skipif mysql # not compatible
query I rowsort label-6994
SELECT + + 92 * + COUNT ( * ) * + 82 AS col2
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + + COUNT( * ) + - COUNT( * ) + 21 * 48 * - 20 AS col2
----
-20160

skipif mysql # not compatible
query I rowsort label-6995
SELECT + + COUNT ( * ) + - COUNT ( * ) + 21 * 48 * - 20 AS col2
----
-20160

query I rowsort
SELECT DISTINCT 18 * - - 81 AS col1
----
1458

query I rowsort
SELECT + + 48 + + 84
----
132

query I rowsort
SELECT - + ( - 41 ) col1
----
41

query I rowsort
SELECT + 38 + 17
----
55

query I rowsort
SELECT DISTINCT ( - 56 ) * 8
----
-448

query I rowsort
SELECT + ( - + ( - 77 ) )
----
77

query I rowsort
SELECT ( - CASE - 43 WHEN ( - + 84 ) THEN 22 / 60 + + - 33 * + ( + 7 ) END )
----
NULL

query I rowsort
SELECT + 20 + + 87 - + 95 + + - 83 + - 19
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT 86 * + - 70 * ( + + 32 ) + - COUNT( * )
----
-192641

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT 86 * + - 70 * ( + + 32 ) + - COUNT ( * )
----
-192641

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7005
SELECT ALL 90 DIV 63, 73 + + COUNT( + 98 ) AS col2
----
1
74

skipif mysql # not compatible
query II rowsort label-7005
SELECT ALL 90 / 63, 73 + + COUNT ( + 98 ) AS col2
----
1
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7006
SELECT - CAST( NULL AS SIGNED ) / COUNT( + 13 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT - CAST ( NULL AS INTEGER ) / COUNT ( + 13 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7007
SELECT DISTINCT COUNT( * ) DIV - - ( + 80 ) * + 42
----
0

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT COUNT ( * ) / - - ( + 80 ) * + 42
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7008
SELECT + CAST( + - 12 AS SIGNED ) + + COUNT( * ) - - 65
----
54

skipif mysql # not compatible
query I rowsort label-7008
SELECT + CAST ( + - 12 AS INTEGER ) + + COUNT ( * ) - - 65
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT ALL 35 * + 24 / + 92 + CASE - COUNT( * ) WHEN + 75 THEN - ( 4 ) END + + ( COUNT( + - 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT ALL 35 * + 24 / + 92 + CASE - COUNT ( * ) WHEN + 75 THEN - ( 4 ) END + + ( COUNT ( + - 48 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT DISTINCT + SUM( DISTINCT - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT + SUM ( DISTINCT - 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT DISTINCT 10 * + CAST( NULL AS SIGNED ) - - - 43 * + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7011
SELECT DISTINCT 10 * + CAST ( NULL AS INTEGER ) - - - 43 * + - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT ALL - - ( 53 ) * + - MAX( ALL + - 55 ) * - 96 - + 8 - - 37 AS col1
----
-279811

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL - - ( 53 ) * + - MAX ( ALL + - 55 ) * - 96 - + 8 - - 37 AS col1
----
-279811

query I rowsort
SELECT + + 3 * - + ( ( + 21 ) ) + - + 42 AS col2
----
-105

query I rowsort
SELECT + - NULLIF ( + 61, ( 57 ) ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-7015
SELECT - 38 + + + 37 + MAX( DISTINCT + 10 ) + - 28 + - 27 AS col2, 42
----
-46
42

skipif mysql # not compatible
query II rowsort label-7015
SELECT - 38 + + + 37 + MAX ( DISTINCT + 10 ) + - 28 + - 27 AS col2, 42
----
-46
42

query I rowsort
SELECT - - 64 + - 81 AS col0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - + 91 * + 1 * - MIN( - + 15 ) + + + 67
----
-1298

skipif mysql # not compatible
query I rowsort label-7017
SELECT - + 91 * + 1 * - MIN ( - + 15 ) + + + 67
----
-1298

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT - 21 - + COALESCE ( + SUM( ALL 48 ), 32 )
----
-69

skipif mysql # not compatible
query I rowsort label-7018
SELECT - 21 - + COALESCE ( + SUM ( ALL 48 ), 32 )
----
-69

query II rowsort
SELECT - 65 + + 94 + - - ( - 35 ) * - - 4 * - 24 AS col2, 62 + + - 85
----
3389
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7020
SELECT DISTINCT CAST( NULL AS SIGNED ), - 55 * - 41 * - 58 + - 35 AS col2
----
NULL
-130825

skipif mysql # not compatible
query II rowsort label-7020
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 55 * - 41 * - 58 + - 35 AS col2
----
NULL
-130825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7021
SELECT DISTINCT - COUNT( * ), CASE + 11 WHEN - ( - + COALESCE ( - 36, - CAST( - - CAST( 45 AS SIGNED ) AS SIGNED ) ) ) - + - 87 THEN - + 59 + - 42 - - ( + NULLIF ( + - CASE - 23 WHEN - 13 THEN - COUNT( * ) WHEN - MIN( DISTINCT + - 67 ) THEN - + 75 / 5 + + COUNT( * ) + + 7 ELSE - - 90 END, + 56 + + ( 86 ) - - 89 ) ) / 94 END AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7021
SELECT DISTINCT - COUNT ( * ), CASE + 11 WHEN - ( - + COALESCE ( - 36, - CAST ( - - CAST ( 45 AS INTEGER ) AS INTEGER ) ) ) - + - 87 THEN - + 59 + - 42 - - ( + NULLIF ( + - CASE - 23 WHEN - 13 THEN - COUNT ( * ) WHEN - MIN ( DISTINCT + - 67 ) THEN - + 75 / 5 + + COUNT ( * ) + + 7 ELSE - - 90 END, + 56 + + ( 86 ) - - 89 ) ) / 94 END AS col2
----
-1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7022
SELECT - + 87 DIV - COUNT( * ) AS col0, - COALESCE ( - + 5, + - MAX( DISTINCT ( - - 0 ) ) + + MAX( DISTINCT - 36 ), + - 5 + - COUNT( * ) * - 89 * - 30 )
----
87
5

skipif mysql # not compatible
query II rowsort label-7022
SELECT - + 87 / - COUNT ( * ) AS col0, - COALESCE ( - + 5, + - MAX ( DISTINCT ( - - 0 ) ) + + MAX ( DISTINCT - 36 ), + - 5 + - COUNT ( * ) * - 89 * - 30 )
----
87
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7023
SELECT ALL CAST( 29 AS SIGNED ) AS col1, + 38 + - 32 * + 88 * + 86
----
29
-242138

skipif mysql # not compatible
query II rowsort label-7023
SELECT ALL CAST ( 29 AS INTEGER ) AS col1, + 38 + - 32 * + 88 * + 86
----
29
-242138

query I rowsort
SELECT - + 43 * - 40
----
1720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7025
SELECT - - NULLIF ( - - 2, - + 99 + + + 48 * 24 ) DIV - 91 AS col2, - CASE - CASE - + 47 WHEN - + 76 THEN NULL WHEN 33 THEN NULL ELSE - 20 + + 52 + + 6 END WHEN COUNT( * ) * + + 34 + + COUNT( * ) * 18 + + 55 THEN - 35 WHEN + 64 THEN - - 5 END + + 55 AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7025
SELECT - - NULLIF ( - - 2, - + 99 + + + 48 * 24 ) / - 91 AS col2, - CASE - CASE - + 47 WHEN - + 76 THEN NULL WHEN 33 THEN NULL ELSE - 20 + + 52 + + 6 END WHEN COUNT ( * ) * + + 34 + + COUNT ( * ) * 18 + + 55 THEN - 35 WHEN + 64 THEN - - 5 END + + 55 AS col1
----
0
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7026
SELECT + 24 DIV + 79 col0
----
0

skipif mysql # not compatible
query I rowsort label-7026
SELECT + 24 / + 79 col0
----
0

query I rowsort
SELECT + - 63 + - ( 46 ) * + - ( + - 60 )
----
-2823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT ALL - - 17 * - + 62 + + 10 + COUNT( * ) + + 74 * - COALESCE ( - NULLIF ( + + 47, + 27 * - 14 ), 98 + - 4 + - 72 + 42 * - 83 DIV - 11 ) * + 6 * - COUNT( * )
----
-21911

skipif mysql # not compatible
query I rowsort label-7028
SELECT ALL - - 17 * - + 62 + + 10 + COUNT ( * ) + + 74 * - COALESCE ( - NULLIF ( + + 47, + 27 * - 14 ), 98 + - 4 + - 72 + 42 * - 83 / - 11 ) * + 6 * - COUNT ( * )
----
-21911

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT + COUNT( * ) + + - 91 + 37 DIV ( + 87 )
----
-90

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT + COUNT ( * ) + + - 91 + 37 / ( + 87 )
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7030
SELECT ALL + ( - 81 ) + - 70 + 30 DIV + COUNT( * ) + 40
----
-81

skipif mysql # not compatible
query I rowsort label-7030
SELECT ALL + ( - 81 ) + - 70 + 30 / + COUNT ( * ) + 40
----
-81

query I rowsort
SELECT ALL - 4 + 76 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7032
SELECT ALL 44 + - CAST( 32 AS SIGNED ) * - + 93
----
3020

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL 44 + - CAST ( 32 AS INTEGER ) * - + 93
----
3020

query I rowsort
SELECT DISTINCT - 86 + + 19
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT - COUNT( * ) * + MAX( + 88 ) col1
----
-88

skipif mysql # not compatible
query I rowsort label-7034
SELECT - COUNT ( * ) * + MAX ( + 88 ) col1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + ( 33 ) + + 6 + COUNT( * ) * + - 72 * - - COUNT( ALL + - 14 ) - + 13
----
-46

skipif mysql # not compatible
query I rowsort label-7035
SELECT + ( 33 ) + + 6 + COUNT ( * ) * + - 72 * - - COUNT ( ALL + - 14 ) - + 13
----
-46

query I rowsort
SELECT DISTINCT 49 * - 16 AS col2
----
-784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT COUNT( * ) DIV - ( 30 ) - - COALESCE ( - 64, + 31 * + COUNT( * ) + + 0 + + ( + 99 ) - - - 50 DIV + 53 - 56 DIV - + 6 - 81 + + 88 - 65 DIV ( + - ( - 33 ) ) + + 79 )
----
-64

skipif mysql # not compatible
query I rowsort label-7037
SELECT COUNT ( * ) / - ( 30 ) - - COALESCE ( - 64, + 31 * + COUNT ( * ) + + 0 + + ( + 99 ) - - - 50 / + 53 - 56 / - + 6 - 81 + + 88 - 65 / ( + - ( - 33 ) ) + + 79 )
----
-64

query I rowsort
SELECT DISTINCT + 15 * + ( - 35 ) col0
----
-525

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT DISTINCT 78 + COUNT( * ) + - + 23
----
56

skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT 78 + COUNT ( * ) + - + 23
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT ALL - MAX( ALL - 36 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - MAX ( ALL - 36 ) AS col0
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7041
SELECT DISTINCT 7 - - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT 7 - - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT 36 DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT 36 / + 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT CAST( NULL AS SIGNED ) * - 58 * 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT CAST ( NULL AS INTEGER ) * - 58 * 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - ( 15 ) * + 11 + + COUNT( * ) - - - 84 col2
----
-248

skipif mysql # not compatible
query I rowsort label-7044
SELECT - ( 15 ) * + 11 + + COUNT ( * ) - - - 84 col2
----
-248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7045
SELECT ALL 66 DIV + + COALESCE ( + 50, - - COUNT( * ), - + 83 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL 66 / + + COALESCE ( + 50, - - COUNT ( * ), - + 83 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT SUM( ALL + - 78 ) * - + 67 + 7 + CAST( NULL AS SIGNED ) / 36 / + 48 * SUM( - ( 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT SUM ( ALL + - 78 ) * - + 67 + 7 + CAST ( NULL AS INTEGER ) / 36 / + 48 * SUM ( - ( 77 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT DISTINCT - MIN( ALL 13 ), + 81 * + + 14 AS col2
----
-13
1134

skipif mysql # not compatible
query II rowsort label-7047
SELECT DISTINCT - MIN ( ALL 13 ), + 81 * + + 14 AS col2
----
-13
1134

onlyif mysql # aggregate syntax: 
query II rowsort label-7048
SELECT DISTINCT + - 28 * - 75, - COUNT( * ) * + NULLIF ( 92, + 10 ) * + 24 * + MAX( DISTINCT + + 66 ) AS col2
----
2100
-145728

skipif mysql # not compatible
query II rowsort label-7048
SELECT DISTINCT + - 28 * - 75, - COUNT ( * ) * + NULLIF ( 92, + 10 ) * + 24 * + MAX ( DISTINCT + + 66 ) AS col2
----
2100
-145728

onlyif mysql # aggregate syntax: 
query II rowsort label-7049
SELECT - 13 * - - 32 * - + 85, + 0 + + 46 - - SUM( ALL + + 62 ) * - COUNT( - 15 ) * + + 1 * - 28 + + - COUNT( * ) AS col2
----
35360
1781

skipif mysql # not compatible
query II rowsort label-7049
SELECT - 13 * - - 32 * - + 85, + 0 + + 46 - - SUM ( ALL + + 62 ) * - COUNT ( - 15 ) * + + 1 * - 28 + + - COUNT ( * ) AS col2
----
35360
1781

query I rowsort
SELECT ALL - - 15 + - + 68 * - 80 AS col2
----
5455

query I rowsort
SELECT 49 + - 80 col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT ALL + MAX( + 27 )
----
27

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + MAX ( + 27 )
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-7053
SELECT ALL - 20 DIV 75, + 11 * - + 56 - - - 54 AS col0
----
0
-670

skipif mysql # not compatible
query II rowsort label-7053
SELECT ALL - 20 / 75, + 11 * - + 56 - - - 54 AS col0
----
0
-670

query I rowsort
SELECT DISTINCT - + 86 + - - 9
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT + 27 + - - NULLIF ( - - 59, - + MAX( ALL 96 ) + - 84 * + 26 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT + 27 + - - NULLIF ( - - 59, - + MAX ( ALL 96 ) + - 84 * + 26 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL - 73 + - 40 * - COUNT( * ) + 67
----
34

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL - 73 + - 40 * - COUNT ( * ) + 67
----
34

query I rowsort
SELECT 81 - + 59
----
22

query I rowsort
SELECT 55 + + - 85
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT - 82 * - MAX( - ( - 45 ) )
----
3690

skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT - 82 * - MAX ( - ( - 45 ) )
----
3690

onlyif mysql # aggregate syntax: 
query II rowsort label-7060
SELECT ALL + 28 + + NULLIF ( - + 78, + COUNT( * ) ), 63 AS col1
----
-50
63

skipif mysql # not compatible
query II rowsort label-7060
SELECT ALL + 28 + + NULLIF ( - + 78, + COUNT ( * ) ), 63 AS col1
----
-50
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT 77 DIV - - 67 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7061
SELECT 77 / - - 67 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7062
SELECT 81 + + ( + COALESCE ( - 27, + - 26 ) ) * - 22 DIV ( + 22 )
----
108

skipif mysql # not compatible
query I rowsort label-7062
SELECT 81 + + ( + COALESCE ( - 27, + - 26 ) ) * - 22 / ( + 22 )
----
108

query I rowsort
SELECT ALL + 37 * 36
----
1332

onlyif mysql # aggregate syntax: 
query II rowsort label-7064
SELECT 34 col1, + COUNT( DISTINCT - - 7 ) AS col0
----
34
1

skipif mysql # not compatible
query II rowsort label-7064
SELECT 34 col1, + COUNT ( DISTINCT - - 7 ) AS col0
----
34
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL + 28 + + 16 * 86 DIV - 82 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL + 28 + + 16 * 86 / - 82 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT ALL - 32, - MIN( ALL - ( 20 ) ) AS col2
----
-32
20

skipif mysql # not compatible
query II rowsort label-7066
SELECT ALL - 32, - MIN ( ALL - ( 20 ) ) AS col2
----
-32
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7067
SELECT DISTINCT - COUNT( * ) AS col1, 53 col0
----
-1
53

skipif mysql # not compatible
query II rowsort label-7067
SELECT DISTINCT - COUNT ( * ) AS col1, 53 col0
----
-1
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT 86 + COUNT( * ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-7068
SELECT 86 + COUNT ( * ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT - 96 * + 95 * + ( - ( - + 49 ) ) + - - CASE + + COUNT( * ) WHEN - 6 * 43 THEN 94 / + AVG ( + 60 ) WHEN - 39 / + COUNT( * ) * - 2 + 7 THEN - 58 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7069
SELECT - 96 * + 95 * + ( - ( - + 49 ) ) + - - CASE + + COUNT ( * ) WHEN - 6 * 43 THEN 94 / + AVG ( + 60 ) WHEN - 39 / + COUNT ( * ) * - 2 + 7 THEN - 58 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT COUNT( 64 ) * + 67 + + - 9
----
58

skipif mysql # not compatible
query I rowsort label-7070
SELECT COUNT ( 64 ) * + 67 + + - 9
----
58

query I rowsort
SELECT ALL 95 * - 6 * + - 88
----
50160

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT 29 * - - 6 + COUNT( * ) AS col0
----
175

skipif mysql # not compatible
query I rowsort label-7072
SELECT 29 * - - 6 + COUNT ( * ) AS col0
----
175

query I rowsort
SELECT - CASE 64 WHEN 76 THEN NULL WHEN - 75 + + + 82 THEN NULL WHEN + + 86 THEN - - 6 * + 65 ELSE NULL END / - 85 * - 73 + - ( 35 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7074
SELECT 15 DIV COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7074
SELECT 15 / COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT ALL - 31 * - COUNT( * ) * - + 54
----
-1674

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - 31 * - COUNT ( * ) * - + 54
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT - SUM( - 13 ) * + 0 + - 42 + + - 38 + + ( 80 ) - - - MAX( ALL - - 90 ) * 72 * - 3 * + 52 AS col0
----
1010880

skipif mysql # not compatible
query I rowsort label-7076
SELECT - SUM ( - 13 ) * + 0 + - 42 + + - 38 + + ( 80 ) - - - MAX ( ALL - - 90 ) * 72 * - 3 * + 52 AS col0
----
1010880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7077
SELECT ALL - CAST( - 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL - CAST ( - 42 AS INTEGER )
----
42

query I rowsort
SELECT DISTINCT + 98 * + 26 AS col2
----
2548

onlyif mysql # aggregate syntax: 
query II rowsort label-7079
SELECT ALL - 48, COUNT( * ) + - 33 * + 2 AS col0
----
-48
-65

skipif mysql # not compatible
query II rowsort label-7079
SELECT ALL - 48, COUNT ( * ) + - 33 * + 2 AS col0
----
-48
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT + COALESCE ( 48, - 60, 70 * - - 34 + - + COUNT( * ) - SUM( DISTINCT + - 45 ) ) * + 17 + - 11
----
805

skipif mysql # not compatible
query I rowsort label-7080
SELECT + COALESCE ( 48, - 60, 70 * - - 34 + - + COUNT ( * ) - SUM ( DISTINCT + - 45 ) ) * + 17 + - 11
----
805

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT DISTINCT + COUNT( * ) + ( - + SUM( 61 ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-7081
SELECT DISTINCT + COUNT ( * ) + ( - + SUM ( 61 ) ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-7082
SELECT - 27 DIV 25 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7082
SELECT - 27 / 25 AS col0
----
-1

query I rowsort
SELECT ALL 67 + ( - 60 )
----
7

query II rowsort
SELECT - 67 * + - 14 * 98 * 1 + ( 32 ) AS col0, + 22 AS col0
----
91956
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL - COALESCE ( + 98, - ( COUNT( * ) ) + + + COUNT( * ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-7085
SELECT ALL - COALESCE ( + 98, - ( COUNT ( * ) ) + + + COUNT ( * ) ) AS col0
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7086
SELECT DISTINCT ( - + 82 ) + - COUNT( * ) + - 31 * AVG ( - - ( + CAST( NULL AS SIGNED ) ) ) * + 26 + 73, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7086
SELECT DISTINCT ( - + 82 ) + - COUNT ( * ) + - 31 * AVG ( - - ( + CAST ( NULL AS INTEGER ) ) ) * + 26 + 73, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT DISTINCT + 91 * 89 * - + 48 - + ( + 45 ) * + 47 AS col1
----
-390867

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT DISTINCT + COUNT( * ) + + + 68
----
69

skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT + COUNT ( * ) + + + 68
----
69

query I rowsort
SELECT 86 + + - 36 AS col0
----
50

query I rowsort
SELECT - 62 + 20
----
-42

query II rowsort
SELECT + 49 * - 47 AS col1, - 82 + + 61 + - 62 + - 4 - 74 + + - 41 AS col1
----
-2303
-202

query I rowsort
SELECT - 67 + + 13 + - 50 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT CASE + - 25 WHEN - - 1 THEN 55 WHEN + COUNT( * ) THEN + 55 * - 97 - - - 75 * - COUNT( * ) * 31 WHEN - CASE + 71 WHEN - COUNT( * ) THEN - + 95 ELSE NULL END + - COUNT( * ) THEN - 61 ELSE + + 88 END AS col0
----
88

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT CASE + - 25 WHEN - - 1 THEN 55 WHEN + COUNT ( * ) THEN + 55 * - 97 - - - 75 * - COUNT ( * ) * 31 WHEN - CASE + 71 WHEN - COUNT ( * ) THEN - + 95 ELSE NULL END + - COUNT ( * ) THEN - 61 ELSE + + 88 END AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT DISTINCT MAX( ALL - ( 5 ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT MAX ( ALL - ( 5 ) ) AS col0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7095
SELECT - CASE + 12 WHEN - 28 THEN 88 WHEN CAST( NULL AS SIGNED ) THEN COALESCE ( - + 79, + 85 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7095
SELECT - CASE + 12 WHEN - 28 THEN 88 WHEN CAST ( NULL AS INTEGER ) THEN COALESCE ( - + 79, + 85 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 13 + + 55
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7097
SELECT - AVG ( 66 ) * 55 * + 87 / - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT - AVG ( 66 ) * 55 * + 87 / - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7098
SELECT SUM( DISTINCT + + ( - - CAST( 64 AS SIGNED ) ) ) DIV + 93 + - 26 + + 0 AS col0
----
-26

skipif mysql # not compatible
query I rowsort label-7098
SELECT SUM ( DISTINCT + + ( - - CAST ( 64 AS INTEGER ) ) ) / + 93 + - 26 + + 0 AS col0
----
-26

query I rowsort
SELECT ALL - ( 50 ) * - 21 AS col1
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL + MIN( ALL - 54 ) * + 30
----
-1620

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL + MIN ( ALL - 54 ) * + 30
----
-1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7101
SELECT - 60 * 41 * - 99 * + 23 AS col0, - 71 - + ( + + 49 ) * - + COUNT( * ) DIV + 68 * + 47 - - 38 col1
----
5601420
-33

skipif mysql # not compatible
query II rowsort label-7101
SELECT - 60 * 41 * - 99 * + 23 AS col0, - 71 - + ( + + 49 ) * - + COUNT ( * ) / + 68 * + 47 - - 38 col1
----
5601420
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7102
SELECT NULLIF ( - 83, + + NULLIF ( + - 95, - + 18 ) * - 36 + + MAX( + CAST( NULL AS SIGNED ) ) )
----
-83

skipif mysql # not compatible
query I rowsort label-7102
SELECT NULLIF ( - 83, + + NULLIF ( + - 95, - + 18 ) * - 36 + + MAX ( + CAST ( NULL AS INTEGER ) ) )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT - MIN( - 49 ) DIV - 63 - + - 59 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7103
SELECT - MIN ( - 49 ) / - 63 - + - 59 AS col0
----
59

query I rowsort
SELECT - 53 * + 10
----
-530

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL + COUNT( * ) * COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + COUNT ( * ) * COUNT ( * ) * + COUNT ( * )
----
1

query I rowsort
SELECT ALL - 80 * - COALESCE ( - 29, - 28 * + 1 * + + 48 )
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT + NULLIF ( 31, + MAX( ALL 48 ) ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + NULLIF ( 31, + MAX ( ALL 48 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - MAX( 35 ) * + 73 AS col2
----
-2555

skipif mysql # not compatible
query I rowsort label-7108
SELECT - MAX ( 35 ) * + 73 AS col2
----
-2555

query II rowsort
SELECT + + 25 * + 43, + 12 AS col2
----
1075
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7110
SELECT + CAST( + - 76 AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-7110
SELECT + CAST ( + - 76 AS INTEGER ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL + 63 * - AVG ( ALL CAST( NULL AS SIGNED ) ) - - - 7 * - + 40 / + 47 + CASE + ( - 54 ) WHEN - 73 THEN + ( - COUNT( * ) ) WHEN - 9 - + 20 THEN NULL ELSE NULL END + + 91
----
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL + 63 * - AVG ( ALL CAST ( NULL AS INTEGER ) ) - - - 7 * - + 40 / + 47 + CASE + ( - 54 ) WHEN - 73 THEN + ( - COUNT ( * ) ) WHEN - 9 - + 20 THEN NULL ELSE NULL END + + 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT MAX( - + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-7112
SELECT MAX ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-7113
SELECT + COUNT( DISTINCT - 60 ) AS col2, COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7113
SELECT + COUNT ( DISTINCT - 60 ) AS col2, COUNT ( * )
----
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT - - ( - + ( 23 ) ) * + - 40 - - COUNT( * ) DIV + 90 + - 48 * - - ( 48 ) AS col2
----
-1384

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT - - ( - + ( 23 ) ) * + - 40 - - COUNT ( * ) / + 90 + - 48 * - - ( 48 ) AS col2
----
-1384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7115
SELECT DISTINCT + MIN( - + 12 ) * - CAST( NULL AS SIGNED ) * + 68 * 73 + NULLIF ( + - 83, 53 * + ( - COUNT( * ) ) ) AS col2, - 86 * + COUNT( * ) * 52 + - + 70 - 71 * - 62 AS col0
----
NULL
-140

skipif mysql # not compatible
query II rowsort label-7115
SELECT DISTINCT + MIN ( - + 12 ) * - CAST ( NULL AS INTEGER ) * + 68 * 73 + NULLIF ( + - 83, 53 * + ( - COUNT ( * ) ) ) AS col2, - 86 * + COUNT ( * ) * 52 + - + 70 - 71 * - 62 AS col0
----
NULL
-140

query I rowsort
SELECT ALL - 34 * - 85 + + 8 AS col1
----
2898

query II rowsort
SELECT ALL - 69 * - 48 + 84 + 9 AS col2, ( 74 )
----
3405
74

query I rowsort
SELECT + 70 * - 88 * 39
----
-240240

query I rowsort
SELECT ALL - 92 * 73 * + 48 col0
----
-322368

query I rowsort
SELECT - 14 + + 86 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-7121
SELECT - MIN( ALL - 92 ), + 84 AS col0
----
92
84

skipif mysql # not compatible
query II rowsort label-7121
SELECT - MIN ( ALL - 92 ), + 84 AS col0
----
92
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7122
SELECT + - 48 DIV + COUNT( * ) + 63 + 95 * - - COUNT( * )
----
110

skipif mysql # not compatible
query I rowsort label-7122
SELECT + - 48 / + COUNT ( * ) + 63 + 95 * - - COUNT ( * )
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + - COUNT( * ) * 38 * + - 8 + + + 32 * + COUNT( * ) * + - SUM( 10 )
----
-16

skipif mysql # not compatible
query I rowsort label-7123
SELECT + - COUNT ( * ) * 38 * + - 8 + + + 32 * + COUNT ( * ) * + - SUM ( 10 )
----
-16

query I rowsort
SELECT ALL 68 - + 13 + 40
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT SUM( + ( - ( - 7 ) ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7125
SELECT SUM ( + ( - ( - 7 ) ) ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL MAX( - 59 ) * - - 89 AS col2
----
-5251

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL MAX ( - 59 ) * - - 89 AS col2
----
-5251

query I rowsort
SELECT + ( + ( 64 ) ) * + 39 AS col2
----
2496

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT DISTINCT 73 DIV - 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT 73 / - 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT + 2 + 36 - + 78 + - + COUNT( * ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-7129
SELECT + 2 + 36 - + 78 + - + COUNT ( * ) col1
----
-41

query I rowsort
SELECT ALL + 10 - - + 66
----
76

query I rowsort
SELECT ALL 84 * - 55 * - + 77
----
355740

query I rowsort
SELECT + 90 + 71 AS col2
----
161

query I rowsort
SELECT + 96 - - 57 AS col0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + 8 * SUM( DISTINCT + 57 )
----
456

skipif mysql # not compatible
query I rowsort label-7134
SELECT + 8 * SUM ( DISTINCT + 57 )
----
456

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - 72 + + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7135
SELECT - 72 + + COUNT ( * ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT ALL SUM( ALL - 29 ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-7136
SELECT ALL SUM ( ALL - 29 ) col0
----
-29

query I rowsort
SELECT - ( + + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT ALL COALESCE ( ( - + MIN( DISTINCT 29 ) ), 75, 67 )
----
-29

skipif mysql # not compatible
query I rowsort label-7138
SELECT ALL COALESCE ( ( - + MIN ( DISTINCT 29 ) ), 75, 67 )
----
-29

query II rowsort
SELECT + 77 * + 64 * 70 AS col1, 61 AS col2
----
344960
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT 83 * - + COUNT( * ) * - CASE + + 39 WHEN + 49 THEN NULL WHEN + - 64 + COUNT( * ) + + - 31 + 35 * - 54 * - 63 THEN - ( + COUNT( * ) ) WHEN - ( + - 45 ) THEN - - 95 + - 98 + - - 8 * - 46 ELSE + + 72 END * - 76
----
-454176

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT 83 * - + COUNT ( * ) * - CASE + + 39 WHEN + 49 THEN NULL WHEN + - 64 + COUNT ( * ) + + - 31 + 35 * - 54 * - 63 THEN - ( + COUNT ( * ) ) WHEN - ( + - 45 ) THEN - - 95 + - 98 + - - 8 * - 46 ELSE + + 72 END * - 76
----
-454176

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT ALL CASE - 27 WHEN 68 THEN NULL WHEN - - 49 THEN - - COUNT( * ) - + 0 ELSE + 74 * - 27 END col0
----
-1998

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL CASE - 27 WHEN 68 THEN NULL WHEN - - 49 THEN - - COUNT ( * ) - + 0 ELSE + 74 * - 27 END col0
----
-1998

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT COALESCE ( CASE + 84 WHEN - CASE 82 WHEN 46 THEN - 42 WHEN - AVG ( ALL - 89 ) THEN NULL END THEN 4 + - + COUNT( * ) END, 39 )
----
39

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT COALESCE ( CASE + 84 WHEN - CASE 82 WHEN 46 THEN - 42 WHEN - AVG ( ALL - 89 ) THEN NULL END THEN 4 + - + COUNT ( * ) END, 39 )
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT DISTINCT COUNT( * ) col2, 50
----
1
50

skipif mysql # not compatible
query II rowsort label-7143
SELECT DISTINCT COUNT ( * ) col2, 50
----
1
50

onlyif mysql # DIV for integer division: 
query II rowsort label-7144
SELECT ALL 56 DIV 53 + + - 37, 29 AS col1
----
-36
29

skipif mysql # not compatible
query II rowsort label-7144
SELECT ALL 56 / 53 + + - 37, 29 AS col1
----
-36
29

query I rowsort
SELECT + 18 + + 75
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT - COUNT( * ) * 75 AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7146
SELECT - COUNT ( * ) * 75 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT ALL - 26 DIV 71 + + ( COUNT( * ) + 32 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL - 26 / 71 + + ( COUNT ( * ) + 32 ) AS col1
----
33

query I rowsort
SELECT - 76 * + 66 col1
----
-5016

query I rowsort
SELECT DISTINCT - 31 * 44 AS col2
----
-1364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7150
SELECT - 18 / 93 + + CAST( NULL AS SIGNED ) * + ( COALESCE ( CAST( NULL AS SIGNED ), 8 ) * 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT - 18 / 93 + + CAST ( NULL AS INTEGER ) * + ( COALESCE ( CAST ( NULL AS INTEGER ), 8 ) * 44 )
----
NULL

query I rowsort
SELECT - 40 + - 0
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7152
SELECT ALL - 99 DIV 92 + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - 99 / 92 + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT DISTINCT + CASE 17 WHEN 14 + COUNT( * ) * MIN( - 81 ) THEN 80 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT + CASE 17 WHEN 14 + COUNT ( * ) * MIN ( - 81 ) THEN 80 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - ( + 18 ) * - 5 AS col2
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-7155
SELECT ALL 55 DIV - 96 + - ( 0 + - 74 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7155
SELECT ALL 55 / - 96 + - ( 0 + - 74 ) AS col0
----
74

query I rowsort
SELECT - 4 * + 98 AS col2
----
-392

query I rowsort
SELECT 41 * - 52 + + 5
----
-2127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7158
SELECT ALL + 41 - - ( - 47 + COUNT( * ) ) DIV + 5
----
32

skipif mysql # not compatible
query I rowsort label-7158
SELECT ALL + 41 - - ( - 47 + COUNT ( * ) ) / + 5
----
32

query I rowsort
SELECT 71 * - 3
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT DISTINCT + MAX( DISTINCT 98 ) * COALESCE ( 33 * - MIN( - ( - 12 ) ), 80, + 12 + 24 * + 36 )
----
-38808

skipif mysql # not compatible
query I rowsort label-7160
SELECT DISTINCT + MAX ( DISTINCT 98 ) * COALESCE ( 33 * - MIN ( - ( - 12 ) ), 80, + 12 + 24 * + 36 )
----
-38808

query I rowsort
SELECT ALL - 42 - - 57 col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT ALL COUNT( * ) * - 92
----
-92

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL COUNT ( * ) * - 92
----
-92

query I rowsort
SELECT ALL + 78 * 31
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT MIN( 10 ) * 88 AS col1
----
880

skipif mysql # not compatible
query I rowsort label-7164
SELECT MIN ( 10 ) * 88 AS col1
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT + 69 * + COUNT( * ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + 69 * + COUNT ( * ) AS col2
----
69

query I rowsort
SELECT 86 * 2
----
172

query I rowsort
SELECT 96 * - 52 AS col2
----
-4992

query I rowsort
SELECT ( 57 ) * 62 AS col0
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT COALESCE ( COUNT( * ), + 18, + 72 ) - COUNT( ALL - 13 ) * - 96 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-7169
SELECT COALESCE ( COUNT ( * ), + 18, + 72 ) - COUNT ( ALL - 13 ) * - 96 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7170
SELECT CAST( NULL AS SIGNED ) / 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7170
SELECT CAST ( NULL AS INTEGER ) / 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT COALESCE ( - 63, + COUNT( * ) + - 95 ) + - 58
----
-121

skipif mysql # not compatible
query I rowsort label-7171
SELECT COALESCE ( - 63, + COUNT ( * ) + - 95 ) + - 58
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7172
SELECT 21 * - CASE CAST( NULL AS SIGNED ) * 91 WHEN 31 * + 11 + - ( - ( COUNT( * ) ) + 44 ) THEN 3 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT 21 * - CASE CAST ( NULL AS INTEGER ) * 91 WHEN 31 * + 11 + - ( - ( COUNT ( * ) ) + 44 ) THEN 3 END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7173
SELECT ( + CASE - 33 WHEN 8 + + 2 THEN + 89 * CAST( 41 / + 27 AS SIGNED ) WHEN MIN( + 41 ) * 45 THEN NULL END ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT ( + CASE - 33 WHEN 8 + + 2 THEN + 89 * CAST ( 41 / + 27 AS INTEGER ) WHEN MIN ( + 41 ) * 45 THEN NULL END ) * COUNT ( * ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT ALL ( + 10 ) DIV 38
----
0

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL ( + 10 ) / 38
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7175
SELECT CAST( NULL AS SIGNED ) / - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7175
SELECT CAST ( NULL AS INTEGER ) / - 49
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL ( - 77 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL ( - 77 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT ALL 0 + - MIN( 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-7177
SELECT ALL 0 + - MIN ( 29 ) AS col2
----
-29

query I rowsort
SELECT 11 * 9 AS col1
----
99

query I rowsort
SELECT NULLIF ( - 77, 25 ) + 96
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT NULLIF ( COUNT( * ), - 40 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT NULLIF ( COUNT ( * ), - 40 ) + - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT - - ( - 30 )
----
-30

query I rowsort
SELECT 44 + 80
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7183
SELECT ALL CAST( NULL AS SIGNED ) + ( 80 - SUM( - 2 ) * - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL CAST ( NULL AS INTEGER ) + ( 80 - SUM ( - 2 ) * - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + 19 * - MAX( + 22 )
----
-418

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + 19 * - MAX ( + 22 )
----
-418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7185
SELECT + + 12 DIV + 66 + ( + COALESCE ( + COALESCE ( - CAST( - 42 AS SIGNED ), 84 ), 74 ) + SUM( 0 ) )
----
42

skipif mysql # not compatible
query I rowsort label-7185
SELECT + + 12 / + 66 + ( + COALESCE ( + COALESCE ( - CAST ( - 42 AS INTEGER ), 84 ), 74 ) + SUM ( 0 ) )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT - COUNT( + ( 40 ) ) * + 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7186
SELECT - COUNT ( + ( 40 ) ) * + 15 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7187
SELECT - 85 DIV + 36 - 25 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-7187
SELECT - 85 / + 36 - 25 AS col1
----
-27

query I rowsort
SELECT ALL 77 * + ( + 88 + 25 ) AS col0
----
8701

query I rowsort
SELECT DISTINCT - 95 + + 67 col1
----
-28

query I rowsort
SELECT ALL + + 44 + - 40 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - CASE 51 WHEN + COUNT( * ) * 65 THEN NULL WHEN 18 * - 48 THEN + 25 * + ( 37 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7191
SELECT - CASE 51 WHEN + COUNT ( * ) * 65 THEN NULL WHEN 18 * - 48 THEN + 25 * + ( 37 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7192
SELECT 62 * CAST( + 13 * 44 AS SIGNED )
----
35464

skipif mysql # not compatible
query I rowsort label-7192
SELECT 62 * CAST ( + 13 * 44 AS INTEGER )
----
35464

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT + MIN( DISTINCT 64 )
----
64

skipif mysql # not compatible
query I rowsort label-7193
SELECT + MIN ( DISTINCT 64 )
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7194
SELECT 92 DIV + ( + COUNT( DISTINCT - 62 ) ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-7194
SELECT 92 / + ( + COUNT ( DISTINCT - 62 ) ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT ALL COUNT( * ) - 30 * 26
----
-779

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL COUNT ( * ) - 30 * 26
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT ALL - COUNT( * ) - - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - COUNT ( * ) - - COUNT ( * ) col0
----
0

query I rowsort
SELECT ALL + + 2 * - 48 AS col2
----
-96

query I rowsort
SELECT 72 - + ( + 0 )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT + 88 DIV 78
----
1

skipif mysql # not compatible
query I rowsort label-7199
SELECT + 88 / 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT + COUNT( * ) * + 11 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + COUNT ( * ) * + 11 AS col0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT ALL + CASE - MIN( ALL - NULLIF ( 21, - 94 ) ) WHEN 83 / - 37 THEN - COUNT( * ) * + 16 END * 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT ALL + CASE - MIN ( ALL - NULLIF ( 21, - 94 ) ) WHEN 83 / - 37 THEN - COUNT ( * ) * + 16 END * 60 AS col1
----
NULL

query I rowsort
SELECT ALL + 40 - + 75
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7203
SELECT ALL ( + COUNT( * ) ) * ( SUM( 3 ) DIV 46 )
----
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL ( + COUNT ( * ) ) * ( SUM ( 3 ) / 46 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7204
SELECT + 46 * + CASE 79 + 7 WHEN + 54 + + 76 THEN + 46 ELSE CAST( NULL AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7204
SELECT + 46 * + CASE 79 + 7 WHEN + 54 + + 76 THEN + 46 ELSE CAST ( NULL AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 92 * 55
----
5060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7206
SELECT 80 + - MIN( DISTINCT + 41 ) DIV + COALESCE ( 46 + 53 * 78, + 2 * 20 )
----
80

skipif mysql # not compatible
query I rowsort label-7206
SELECT 80 + - MIN ( DISTINCT + 41 ) / + COALESCE ( 46 + 53 * 78, + 2 * 20 )
----
80

query I rowsort
SELECT + 93 * + - 34 + + 2
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT COUNT( * ) * + ( - 81 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7208
SELECT COUNT ( * ) * + ( - 81 ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT SUM( ALL - 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT SUM ( ALL - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT 6 + 69 + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7210
SELECT 6 + 69 + - COUNT ( * )
----
74

query I rowsort
SELECT ALL + 20 + + + 70
----
90

query I rowsort
SELECT 15 + 43 AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT COUNT( * ) * + + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7213
SELECT COUNT ( * ) * + + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT 25 + MIN( ALL 74 ) + + 92 AS col1
----
191

skipif mysql # not compatible
query I rowsort label-7214
SELECT 25 + MIN ( ALL 74 ) + + 92 AS col1
----
191

query I rowsort
SELECT DISTINCT + NULLIF ( + 75, + 75 + 14 ) * 34
----
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-7216
SELECT ALL - 75 + ( 70 ) + + 63 DIV - 29
----
-7

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - 75 + ( 70 ) + + 63 / - 29
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL + ( - COUNT( * ) ) + 85 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL + ( - COUNT ( * ) ) + 85 AS col1
----
84

query I rowsort
SELECT 60 + 60
----
120

query I rowsort
SELECT ALL 65 + + - 55 + - 97 AS col0
----
-87

query I rowsort
SELECT ALL + 32 + - 61
----
-29

query I rowsort
SELECT DISTINCT + - 0 + + - 90 * 2 AS col2
----
-180

query I rowsort
SELECT DISTINCT + 40 + NULLIF ( 4, 1 * - 82 ) AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - COUNT( - 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7223
SELECT - COUNT ( - 86 ) AS col0
----
-1

query I rowsort
SELECT ALL - ( + - 11 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT - 14 * - + COALESCE ( - 66, SUM( 17 ) ) - MIN( - 14 + 44 )
----
-954

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT - 14 * - + COALESCE ( - 66, SUM ( 17 ) ) - MIN ( - 14 + 44 )
----
-954

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - 28 * 84 + COUNT( * ) AS col1
----
-2351

skipif mysql # not compatible
query I rowsort label-7226
SELECT - 28 * 84 + COUNT ( * ) AS col1
----
-2351

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT SUM( DISTINCT + + 0 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-7227
SELECT SUM ( DISTINCT + + 0 ) col2
----
0

query I rowsort
SELECT + - 75 + + ( + 71 ) col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL + MIN( ALL - ( 92 ) ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + MIN ( ALL - ( 92 ) ) AS col1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT MIN( - ( 97 ) ) * 16
----
-1552

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT MIN ( - ( 97 ) ) * 16
----
-1552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7231
SELECT + - COUNT( * ) * + COALESCE ( 36, + 95 DIV 50 )
----
-36

skipif mysql # not compatible
query I rowsort label-7231
SELECT + - COUNT ( * ) * + COALESCE ( 36, + 95 / 50 )
----
-36

query I rowsort
SELECT 78 * 71 + 95 AS col0
----
5633

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT SUM( DISTINCT 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-7233
SELECT SUM ( DISTINCT 99 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7234
SELECT ALL 61 DIV + 44 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7234
SELECT ALL 61 / + 44 AS col1
----
1

query I rowsort
SELECT + 67 * - + 28
----
-1876

query I rowsort
SELECT - 73 + ( + 71 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT - 90 DIV 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7237
SELECT - 90 / 52 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT + 86 * + 3 + + - 57 + 81 * ( + 43 + COUNT( * ) ) AS col1
----
3765

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT + 86 * + 3 + + - 57 + 81 * ( + 43 + COUNT ( * ) ) AS col1
----
3765

query I rowsort
SELECT ALL - 88 + + 69
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT + 37 * + - 30 * + + 13 * - COUNT( * )
----
14430

skipif mysql # not compatible
query I rowsort label-7240
SELECT + 37 * + - 30 * + + 13 * - COUNT ( * )
----
14430

query I rowsort
SELECT ALL 43 + - + 91 AS col0
----
-48

query I rowsort
SELECT ALL COALESCE ( + 1, + 42 + + 80 )
----
1

query I rowsort
SELECT DISTINCT 60 + 9
----
69

query I rowsort
SELECT ALL + 16 + 78
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7245
SELECT DISTINCT - CAST( 30 AS SIGNED ) DIV NULLIF ( + 13, 47 )
----
-2

skipif mysql # not compatible
query I rowsort label-7245
SELECT DISTINCT - CAST ( 30 AS INTEGER ) / NULLIF ( + 13, 47 )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT + COUNT( * ) + - + CAST( + - MIN( ALL + 34 ) AS SIGNED ) + - CASE COALESCE ( 94, - 33 ) WHEN + 57 THEN 39 + 53 WHEN + MIN( - 71 ) - 18 / - SUM( DISTINCT 91 + - 29 ) THEN NULL ELSE NULL END * CASE CASE 90 WHEN + 86 * 25 THEN - 70 ELSE NULL END WHEN + 82 * - 30 + - 26 * + 41 THEN 21 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + COUNT ( * ) + - + CAST ( + - MIN ( ALL + 34 ) AS INTEGER ) + - CASE COALESCE ( 94, - 33 ) WHEN + 57 THEN 39 + 53 WHEN + MIN ( - 71 ) - 18 / - SUM ( DISTINCT 91 + - 29 ) THEN NULL ELSE NULL END * CASE CASE 90 WHEN + 86 * 25 THEN - 70 ELSE NULL END WHEN + 82 * - 30 + - 26 * + 41 THEN 21 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( - 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT + 77 * - - COUNT( * ) col2
----
77

skipif mysql # not compatible
query I rowsort label-7248
SELECT + 77 * - - COUNT ( * ) col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT ALL CASE WHEN ( 78 ) >= + 42 THEN NULL ELSE 59 * + CAST( 22 * - 20 AS SIGNED ) + + 83 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL CASE WHEN ( 78 ) >= + 42 THEN NULL ELSE 59 * + CAST ( 22 * - 20 AS INTEGER ) + + 83 END AS col1
----
NULL

query II rowsort
SELECT - 95 AS col1, 78
----
-95
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL - 90 + + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - 90 + + COUNT ( * )
----
-89

query I rowsort
SELECT - 47 - + ( - + 93 ) + 80 * - 52 * - 46 AS col2
----
191406

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7253
SELECT ALL COUNT( * ) AS col2, 45 DIV COUNT( * ) - 86 AS col1
----
1
-41

skipif mysql # not compatible
query II rowsort label-7253
SELECT ALL COUNT ( * ) AS col2, 45 / COUNT ( * ) - 86 AS col1
----
1
-41

query I rowsort
SELECT - 71 + + + 98 - + 75 * 70
----
-5223

query II rowsort
SELECT - 72, - 4 * ( - 58 ) AS col0
----
-72
232

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT ALL + 37 * + COUNT( - 48 ) col0
----
37

skipif mysql # not compatible
query I rowsort label-7256
SELECT ALL + 37 * + COUNT ( - 48 ) col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL - ( + - 54 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL - ( + - 54 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - - 60 * - 62 * + 42 AS col2
----
-156240

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT - COUNT( ALL - - 92 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7259
SELECT - COUNT ( ALL - - 92 ) col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7260
SELECT + + 40 + 35 + 48 + - 81 DIV 13
----
117

skipif mysql # not compatible
query I rowsort label-7260
SELECT + + 40 + 35 + 48 + - 81 / 13
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT DISTINCT + ( + 53 ) - COUNT( * ) + + 19 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-7261
SELECT DISTINCT + ( + 53 ) - COUNT ( * ) + + 19 AS col1
----
71

query I rowsort
SELECT - 65 * - 8
----
520

query I rowsort
SELECT - - ( - 61 )
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7264
SELECT - - 21 DIV SUM( ALL + 98 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7264
SELECT - - 21 / SUM ( ALL + 98 ) col0
----
0

query I rowsort
SELECT - + 4 * 28 AS col0
----
-112

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7266
SELECT DISTINCT COUNT( * ) DIV + + 96 * + 9 * - 38
----
0

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT COUNT ( * ) / + + 96 * + 9 * - 38
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT + COUNT( * ) DIV - 95 * + + 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7267
SELECT + COUNT ( * ) / - 95 * + + 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL MIN( 68 ) * - ( COUNT( * ) ) / - 40 + 73 * CASE COALESCE ( 90, 84, 32 / + COUNT( * ) ) + COUNT( * ) WHEN 17 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL MIN ( 68 ) * - ( COUNT ( * ) ) / - 40 + 73 * CASE COALESCE ( 90, 84, 32 / + COUNT ( * ) ) + COUNT ( * ) WHEN 17 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7269
SELECT DISTINCT - 33 DIV - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - 33 / - COUNT ( * )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7270
SELECT CAST( - - 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-7270
SELECT CAST ( - - 72 AS INTEGER )
----
72

query I rowsort
SELECT ALL 3 * - 21 AS col0
----
-63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7272
SELECT DISTINCT - 92 * - ( 91 ) + - 78 + + NULLIF ( + 22, - 8 DIV - 46 + COUNT( * ) * - COUNT( * ) ) DIV + 29 AS col0
----
8294

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - 92 * - ( 91 ) + - 78 + + NULLIF ( + 22, - 8 / - 46 + COUNT ( * ) * - COUNT ( * ) ) / + 29 AS col0
----
8294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7273
SELECT DISTINCT + 42 * - 66 + MAX( ALL + - ( 77 ) ) * + CAST( COUNT( * ) AS SIGNED ) AS col1
----
-2849

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT + 42 * - 66 + MAX ( ALL + - ( 77 ) ) * + CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-2849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT ALL + 59 * - + 74 / - - MAX( ALL 58 ) * - 80 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + 59 * - + 74 / - - MAX ( ALL 58 ) * - 80 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT + 61 - + 50 / - COALESCE ( - 88, + 45 * 40 + 13 * 90, 33, - 27 ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT + 61 - + 50 / - COALESCE ( - 88, + 45 * 40 + 13 * 90, 33, - 27 ) / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7276
SELECT ALL - 47 * + 80 DIV + NULLIF ( 79, + 19 ) col0
----
-47

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL - 47 * + 80 / + NULLIF ( 79, + 19 ) col0
----
-47

query II rowsort
SELECT ALL + ( + - 61 ) AS col2, + 62 * - 43
----
-61
-2666

onlyif mysql # aggregate syntax: 
query II rowsort label-7278
SELECT DISTINCT 2 * + 68, - 37 * - COUNT( ALL 46 ) AS col0
----
136
37

skipif mysql # not compatible
query II rowsort label-7278
SELECT DISTINCT 2 * + 68, - 37 * - COUNT ( ALL 46 ) AS col0
----
136
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT DISTINCT + MAX( - - 82 ) * - 19 * 41 * 53 + + COUNT( * ) DIV ( - 10 )
----
-3385534

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + MAX ( - - 82 ) * - 19 * 41 * 53 + + COUNT ( * ) / ( - 10 )
----
-3385534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7280
SELECT ALL - 82 * + CAST( NULL AS SIGNED ) + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - 82 * + CAST ( NULL AS INTEGER ) + + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT + COUNT( + - 30 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT + COUNT ( + - 30 ) AS col0
----
1

query I rowsort
SELECT CASE + 30 WHEN + - 30 THEN + 45 * 89 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 32 * - 97 * - + 44 * - 37 * 64 + 78
----
-323411890

query I rowsort
SELECT ALL 34 * + 33 + - - 74 + 44 * - 14
----
580

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7285
SELECT + COUNT( * ) - + 3 * 76 DIV 44
----
-4

skipif mysql # not compatible
query I rowsort label-7285
SELECT + COUNT ( * ) - + 3 * 76 / 44
----
-4

query I rowsort
SELECT + 83 - 25 AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7287
SELECT ALL COUNT( ALL - 52 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL COUNT ( ALL - 52 ) / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT + 54 + + 98 * + - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-7288
SELECT + 54 + + 98 * + - COUNT ( * )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT - CAST( - + MAX( ALL - + 16 ) AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-7289
SELECT - CAST ( - + MAX ( ALL - + 16 ) AS INTEGER )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT CASE - 72 WHEN - COUNT( * ) + - + ( MIN( ALL - 53 ) ) THEN + ( + 26 ) * - 78 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT CASE - 72 WHEN - COUNT ( * ) + - + ( MIN ( ALL - 53 ) ) THEN + ( + 26 ) * - 78 END
----
NULL

query I rowsort
SELECT ALL 77 * + 92 - - + 3
----
7087

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7292
SELECT ALL COUNT( 61 ) DIV + 24
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL COUNT ( 61 ) / + 24
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7293
SELECT + 24 + + 12 + ( + COALESCE ( - CAST( NULL AS SIGNED ), + COUNT( * ) ) ) * 80
----
116

skipif mysql # not compatible
query I rowsort label-7293
SELECT + 24 + + 12 + ( + COALESCE ( - CAST ( NULL AS INTEGER ), + COUNT ( * ) ) ) * 80
----
116

query I rowsort
SELECT ALL ( - 46 ) AS col2
----
-46

query I rowsort
SELECT - 74 + - + 82 * + + 43
----
-3600

query I rowsort
SELECT - 83 * + - 80
----
6640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7297
SELECT ALL + - 37 DIV + + COUNT( * ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + - 37 / + + COUNT ( * ) AS col0
----
-37

query I rowsort
SELECT + 26 * + - 31
----
-806

query I rowsort
SELECT - 96 * + + 60 AS col0
----
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT + 10 + - 29 + + 23 - - CAST( NULL AS SIGNED ) * - 76 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT + 10 + - 29 + + 23 - - CAST ( NULL AS INTEGER ) * - 76 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT - + ( - NULLIF ( + - COUNT( * ), + 42 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-7301
SELECT - + ( - NULLIF ( + - COUNT ( * ), + 42 ) ) col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT + 23 + - 16 + + 15 + 74 + - 96 DIV 11 * 32
----
-160

skipif mysql # not compatible
query I rowsort label-7302
SELECT + 23 + - 16 + + 15 + 74 + - 96 / 11 * 32
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT COUNT( * ) * - 79 + + 63
----
-16

skipif mysql # not compatible
query I rowsort label-7303
SELECT COUNT ( * ) * - 79 + + 63
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + COUNT( * ) * COUNT( * ) * 53 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-7304
SELECT + COUNT ( * ) * COUNT ( * ) * 53 AS col1
----
53

query II rowsort
SELECT 78 + - 66 AS col0, 81 * + - 57 * - 10 AS col2
----
12
46170

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT - 85 + + + COUNT( * )
----
-84

skipif mysql # not compatible
query I rowsort label-7306
SELECT - 85 + + + COUNT ( * )
----
-84

query I rowsort
SELECT ALL - - 82 * ( + + ( 14 ) ) + 86 AS col2
----
1234

query I rowsort
SELECT ALL - 73 + - 83 * + 16 * - 99 - 89
----
131310

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - 61 * ( + - COALESCE ( 38, CASE 81 WHEN 4 + - CASE + 48 + COUNT( * ) * + 16 WHEN - AVG ( 13 ) / 90 THEN NULL WHEN 84 + 2 THEN COUNT( * ) WHEN + 45 THEN - 81 WHEN + COUNT( 49 ) * - MIN( - 40 + 20 ) THEN NULL END THEN NULL WHEN 39 + 70 THEN 84 ELSE NULL END ) ) - CASE 95 WHEN + 10 THEN - COUNT( * ) + 12 END * - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 61 * ( + - COALESCE ( 38, CASE 81 WHEN 4 + - CASE + 48 + COUNT ( * ) * + 16 WHEN - AVG ( 13 ) / 90 THEN NULL WHEN 84 + 2 THEN COUNT ( * ) WHEN + 45 THEN - 81 WHEN + COUNT ( 49 ) * - MIN ( - 40 + 20 ) THEN NULL END THEN NULL WHEN 39 + 70 THEN 84 ELSE NULL END ) ) - CASE 95 WHEN + 10 THEN - COUNT ( * ) + 12 END * - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT CASE + MAX( - + 89 ) WHEN - - CASE 16 WHEN 66 * 16 THEN NULL ELSE - 95 - 74 END THEN + 0 / 59 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT CASE + MAX ( - + 89 ) WHEN - - CASE 16 WHEN 66 * 16 THEN NULL ELSE - 95 - 74 END THEN + 0 / 59 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT + - SUM( + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-7311
SELECT + - SUM ( + 67 )
----
-67

query I rowsort
SELECT ALL - + 77 + + 25 col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7313
SELECT COUNT( * ) DIV - - 76 * + 91 col2
----
0

skipif mysql # not compatible
query I rowsort label-7313
SELECT COUNT ( * ) / - - 76 * + 91 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7314
SELECT - COUNT( * ) * - ( - CAST( + - 68 AS SIGNED ) ) + + - 70 DIV + CAST( 27 + + 39 * + 14 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-7314
SELECT - COUNT ( * ) * - ( - CAST ( + - 68 AS INTEGER ) ) + + - 70 / + CAST ( 27 + + 39 * + 14 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT DISTINCT + COUNT( * ) + 5 * 57, + 4 * + + 54 * ( - ( NULLIF ( 9, - 70 + ( 42 ) ) ) * 82 ) col2
----
286
-159408

skipif mysql # not compatible
query II rowsort label-7315
SELECT DISTINCT + COUNT ( * ) + 5 * 57, + 4 * + + 54 * ( - ( NULLIF ( 9, - 70 + ( 42 ) ) ) * 82 ) col2
----
286
-159408

query I rowsort
SELECT DISTINCT 67 + + 32 AS col0
----
99

query I rowsort
SELECT DISTINCT - NULLIF ( - ( + 6 ), 2 ) + + - 14 - - 38 col0
----
30

query I rowsort
SELECT 60 + - + 41
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7319
SELECT 81, + CASE - 87 WHEN - COALESCE ( + - 41, + 82, 46 + + SUM( 21 ) ) + COALESCE ( 96, CAST( 3 AS DECIMAL ) ) THEN 48 * 44 WHEN ( AVG ( ALL 4 ) ) * - 80 - - CAST( + 2 AS SIGNED ) THEN 76 END AS col0
----
81
NULL

skipif mysql # not compatible
query II rowsort label-7319
SELECT 81, + CASE - 87 WHEN - COALESCE ( + - 41, + 82, 46 + + SUM ( 21 ) ) + COALESCE ( 96, CAST ( 3 AS REAL ) ) THEN 48 * 44 WHEN ( AVG ( ALL 4 ) ) * - 80 - - CAST ( + 2 AS INTEGER ) THEN 76 END AS col0
----
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7320
SELECT CAST( + + 12 AS SIGNED ) + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-7320
SELECT CAST ( + + 12 AS INTEGER ) + COUNT ( * )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7321
SELECT DISTINCT 1 - - + CASE + 66 WHEN + + 50 / - + COUNT( * ) + ( 43 ) THEN 73 + - CAST( 42 + 75 AS SIGNED ) WHEN 48 THEN NULL ELSE - 81 + + 92 END + + CASE - NULLIF ( 56, 52 - - ( - 36 ) ) WHEN + COUNT( * ) THEN 69 ELSE NULL END * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT 1 - - + CASE + 66 WHEN + + 50 / - + COUNT ( * ) + ( 43 ) THEN 73 + - CAST ( 42 + 75 AS INTEGER ) WHEN 48 THEN NULL ELSE - 81 + + 92 END + + CASE - NULLIF ( 56, 52 - - ( - 36 ) ) WHEN + COUNT ( * ) THEN 69 ELSE NULL END * 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT MIN( 86 ) * + - ( + 19 ) col2
----
-1634

skipif mysql # not compatible
query I rowsort label-7322
SELECT MIN ( 86 ) * + - ( + 19 ) col2
----
-1634

query I rowsort
SELECT DISTINCT COALESCE ( - - 46, + ( + 24 ), + ( 89 ) ) * - 53
----
-2438

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7324
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + MAX( - ( + 5 ) )
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-7324
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + MAX ( - ( + 5 ) )
----
NULL
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT + 80 DIV + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7325
SELECT + 80 / + 51 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL CASE - 50 WHEN + ( 31 ) THEN NULL ELSE - + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL CASE - 50 WHEN + ( 31 ) THEN NULL ELSE - + COUNT ( * ) END
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT DISTINCT - 76 DIV + - NULLIF ( - + 35, - 37 )
----
-2

skipif mysql # not compatible
query I rowsort label-7327
SELECT DISTINCT - 76 / + - NULLIF ( - + 35, - 37 )
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7328
SELECT - 47 DIV - - 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7328
SELECT - 47 / - - 71 AS col2
----
0

query I rowsort
SELECT - 16 * + 71
----
-1136

query II rowsort
SELECT ALL 30, 22 AS col1
----
30
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7331
SELECT 62 - - 80 * CASE - 16 WHEN 44 * 65 THEN - 44 WHEN 74 THEN CAST( NULL AS DECIMAL ) * 31 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7331
SELECT 62 - - 80 * CASE - 16 WHEN 44 * 65 THEN - 44 WHEN 74 THEN CAST ( NULL AS REAL ) * 31 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT DISTINCT + 15 DIV - ( - 87 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT + 15 / - ( - 87 ) AS col1
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + 0, 57 ) AS col1
----
0

query I rowsort
SELECT ALL COALESCE ( + 49, + 66 )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT + 83 DIV - - 19 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7335
SELECT + 83 / - - 19 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT DISTINCT + 77 + - SUM( DISTINCT - 34 )
----
111

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT + 77 + - SUM ( DISTINCT - 34 )
----
111

query I rowsort
SELECT DISTINCT 62 * - + 35
----
-2170

query I rowsort
SELECT ALL - + 30 + + 61
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT + 40 + + - COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-7339
SELECT + 40 + + - COUNT ( * )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT + 49 DIV 72 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT + 49 / 72 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + ( 76 ) - + MAX( + 73 )
----
3

skipif mysql # not compatible
query I rowsort label-7341
SELECT + ( 76 ) - + MAX ( + 73 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT DISTINCT + COUNT( * ) + - ( COUNT( * ) ) + + + 36 + - 79 * - 27
----
2169

skipif mysql # not compatible
query I rowsort label-7342
SELECT DISTINCT + COUNT ( * ) + - ( COUNT ( * ) ) + + + 36 + - 79 * - 27
----
2169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7343
SELECT ALL - 41 + + 30 + - CASE + + AVG ( 86 ) WHEN 79 * CAST( - NULLIF ( 99, 23 ) AS SIGNED ) + - 62 / 16 THEN - COALESCE ( 64, 65, - 73 ) * 44 END + - 84 / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7343
SELECT ALL - 41 + + 30 + - CASE + + AVG ( 86 ) WHEN 79 * CAST ( - NULLIF ( 99, 23 ) AS INTEGER ) + - 62 / 16 THEN - COALESCE ( 64, 65, - 73 ) * 44 END + - 84 / + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT COALESCE ( - - COUNT( * ), - 30, 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7344
SELECT COALESCE ( - - COUNT ( * ), - 30, 37 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT DISTINCT - 43 * + COUNT( * ) + + - 99 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - 43 * + COUNT ( * ) + + - 99 AS col1
----
-142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7346
SELECT DISTINCT ( + COUNT( * ) ) * + + 89 + - + 24 * - + 65 - 86 + - 88 * SUM( ALL - CAST( 62 AS SIGNED ) ) + - 11 * - 64
----
7723

skipif mysql # not compatible
query I rowsort label-7346
SELECT DISTINCT ( + COUNT ( * ) ) * + + 89 + - + 24 * - + 65 - 86 + - 88 * SUM ( ALL - CAST ( 62 AS INTEGER ) ) + - 11 * - 64
----
7723

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT ALL - 44 * 33 + 75 * + ( + COUNT( * ) )
----
-1377

skipif mysql # not compatible
query I rowsort label-7347
SELECT ALL - 44 * 33 + 75 * + ( + COUNT ( * ) )
----
-1377

query I rowsort
SELECT DISTINCT + ( - 67 ) * - 55
----
3685

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL - 5 * 34 * - - MAX( DISTINCT + 80 ) * 71 + + 57 + 73 * 59
----
-961236

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - 5 * 34 * - - MAX ( DISTINCT + 80 ) * 71 + + 57 + 73 * 59
----
-961236

query I rowsort
SELECT 41 * 28
----
1148

query I rowsort
SELECT ALL + 84 * ( 76 ) AS col2
----
6384

query II rowsort
SELECT + 22, ( 14 ) * 84 AS col2
----
22
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL + 78 * SUM( - ( + 53 ) ) * - - 26 - - 81 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL + 78 * SUM ( - ( + 53 ) ) * - - 26 - - 81 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT SUM( DISTINCT - 61 ) * + CASE COALESCE ( + 10, + + 43 ) WHEN - 29 THEN + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7354
SELECT SUM ( DISTINCT - 61 ) * + CASE COALESCE ( + 10, + + 43 ) WHEN - 29 THEN + 27 END
----
NULL

query I rowsort
SELECT 40 - + 36 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7356
SELECT ALL + 31 / - CASE + 98 WHEN + 72 - - - CAST( - MAX( + 28 ) AS SIGNED ) THEN NULL WHEN + AVG ( - 26 ) * - 10 THEN - 79 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL + 31 / - CASE + 98 WHEN + 72 - - - CAST ( - MAX ( + 28 ) AS INTEGER ) THEN NULL WHEN + AVG ( - 26 ) * - 10 THEN - 79 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT MIN( DISTINCT + 97 ) * - 72 * 17 * 1
----
-118728

skipif mysql # not compatible
query I rowsort label-7357
SELECT MIN ( DISTINCT + 97 ) * - 72 * 17 * 1
----
-118728

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT DISTINCT 53 * - SUM( DISTINCT + 54 )
----
-2862

skipif mysql # not compatible
query I rowsort label-7358
SELECT DISTINCT 53 * - SUM ( DISTINCT + 54 )
----
-2862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7359
SELECT - 88 + - COALESCE ( COALESCE ( - ( COUNT( * ) ), - 41, 41 ), - 58 ) + + 21 * + ( - 99 ) DIV COUNT( * )
----
-2166

skipif mysql # not compatible
query I rowsort label-7359
SELECT - 88 + - COALESCE ( COALESCE ( - ( COUNT ( * ) ), - 41, 41 ), - 58 ) + + 21 * + ( - 99 ) / COUNT ( * )
----
-2166

query I rowsort
SELECT + 94 - + 57
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7361
SELECT ALL - 22 DIV - COUNT( * ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL - 22 / - COUNT ( * ) AS col0
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7362
SELECT - 6 DIV - + 42 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7362
SELECT - 6 / - + 42 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT - 7 * COALESCE ( 57, ( 29 ) - - COUNT( ALL 34 ) + CASE 82 WHEN 63 THEN 22 + - 43 * - 21 END ) + 1 + + COUNT( * )
----
-397

skipif mysql # not compatible
query I rowsort label-7363
SELECT - 7 * COALESCE ( 57, ( 29 ) - - COUNT ( ALL 34 ) + CASE 82 WHEN 63 THEN 22 + - 43 * - 21 END ) + 1 + + COUNT ( * )
----
-397

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT - COUNT( * ) * + 1 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7364
SELECT - COUNT ( * ) * + 1 AS col2
----
-1

query I rowsort
SELECT + 87 * + 19
----
1653

query I rowsort
SELECT DISTINCT - 47 * + 39 AS col0
----
-1833

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7367
SELECT - - COUNT( * ), - CAST( + 30 AS SIGNED ) AS col2
----
1
-30

skipif mysql # not compatible
query II rowsort label-7367
SELECT - - COUNT ( * ), - CAST ( + 30 AS INTEGER ) AS col2
----
1
-30

query I rowsort
SELECT DISTINCT + 86 + - 42
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT ( CASE - + 35 WHEN CASE - 48 WHEN 13 - 49 THEN NULL WHEN ( COUNT( * ) ) * 88 THEN - 53 * CASE + COUNT( * ) WHEN + 80 THEN NULL WHEN MAX( ALL 66 ) THEN + 9 ELSE NULL END WHEN ( 22 ) + COUNT( * ) THEN NULL ELSE + 91 * 29 END + - 59 THEN ( - COUNT( * ) ) * 73 WHEN 84 THEN NULL ELSE NULL END ) + NULLIF ( 92, - 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT ( CASE - + 35 WHEN CASE - 48 WHEN 13 - 49 THEN NULL WHEN ( COUNT ( * ) ) * 88 THEN - 53 * CASE + COUNT ( * ) WHEN + 80 THEN NULL WHEN MAX ( ALL 66 ) THEN + 9 ELSE NULL END WHEN ( 22 ) + COUNT ( * ) THEN NULL ELSE + 91 * 29 END + - 59 THEN ( - COUNT ( * ) ) * 73 WHEN 84 THEN NULL ELSE NULL END ) + NULLIF ( 92, - 45 )
----
NULL

query I rowsort
SELECT + + 59 + 46 + ( + 38 ) * + 77 col1
----
3031

onlyif mysql # aggregate syntax: 
query II rowsort label-7371
SELECT DISTINCT + 81, 94 * + COUNT( * ) * + 38 + - - 39 AS col1
----
81
3611

skipif mysql # not compatible
query II rowsort label-7371
SELECT DISTINCT + 81, 94 * + COUNT ( * ) * + 38 + - - 39 AS col1
----
81
3611

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT ALL MAX( ALL + 39 ) + + 17 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL MAX ( ALL + 39 ) + + 17 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT - 20 + + - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7373
SELECT - 20 + + - COUNT ( * ) AS col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7374
SELECT CAST( - + ( COUNT( * ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7374
SELECT CAST ( - + ( COUNT ( * ) ) AS INTEGER ) AS col1
----
-1

query III rowsort
SELECT ALL + 43 AS col0, + 69 col2, 24 col1
----
43
69
24

query II rowsort
SELECT + 4 AS col0, 81 + - - 22 * + 95
----
4
2171

query II rowsort
SELECT - + 30, - 75 AS col0
----
-30
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7378
SELECT DISTINCT 73 + + - COUNT( * ) * 1 * + + 71, 71 * - COALESCE ( 43, - COUNT( - 37 ) - - COALESCE ( 84, + COUNT( * ) ), - NULLIF ( + 2, + CAST( NULL AS SIGNED ) ) DIV - 54 ) * 59 col0
----
2
-180127

skipif mysql # not compatible
query II rowsort label-7378
SELECT DISTINCT 73 + + - COUNT ( * ) * 1 * + + 71, 71 * - COALESCE ( 43, - COUNT ( - 37 ) - - COALESCE ( 84, + COUNT ( * ) ), - NULLIF ( + 2, + CAST ( NULL AS INTEGER ) ) / - 54 ) * 59 col0
----
2
-180127

query I rowsort
SELECT ALL + 70 + + 38 AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-7380
SELECT - COUNT( * ) AS col0, 94 * - + 97
----
-1
-9118

skipif mysql # not compatible
query II rowsort label-7380
SELECT - COUNT ( * ) AS col0, 94 * - + 97
----
-1
-9118

query I rowsort
SELECT DISTINCT 35 + + 31
----
66

query I rowsort
SELECT + 74 * - 52 AS col1
----
-3848

query I rowsort
SELECT ALL + 21 * 88
----
1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7384
SELECT ALL + 89 - - + CAST( + 63 AS SIGNED ) AS col1
----
152

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL + 89 - - + CAST ( + 63 AS INTEGER ) AS col1
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT COUNT( * ) * 55 * - 91 * 16 * + 46
----
-3683680

skipif mysql # not compatible
query I rowsort label-7385
SELECT DISTINCT COUNT ( * ) * 55 * - 91 * 16 * + 46
----
-3683680

query I rowsort
SELECT ALL 96 * - 41 * - 51
----
200736

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + 2 + MIN( DISTINCT - 81 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-7387
SELECT + 2 + MIN ( DISTINCT - 81 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT 89 * 45 - + COUNT( * ) AS col0
----
4004

skipif mysql # not compatible
query I rowsort label-7388
SELECT 89 * 45 - + COUNT ( * ) AS col0
----
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7389
SELECT ALL CASE - + 84 WHEN - - 89 THEN NULL ELSE - NULLIF ( + + COUNT( + 50 ), ( - 10 ) ) + + 43 DIV - ( 75 ) END * - 23
----
23

skipif mysql # not compatible
query I rowsort label-7389
SELECT ALL CASE - + 84 WHEN - - 89 THEN NULL ELSE - NULLIF ( + + COUNT ( + 50 ), ( - 10 ) ) + + 43 / - ( 75 ) END * - 23
----
23

query I rowsort
SELECT + 79 + + + 90 + + - 41 * + 71 AS col1
----
-2742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7391
SELECT + 34 / - CASE + - 43 WHEN - + CAST( + 89 AS SIGNED ) * - - 70 THEN - 45 / 88 ELSE NULL END + 3 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7391
SELECT + 34 / - CASE + - 43 WHEN - + CAST ( + 89 AS INTEGER ) * - - 70 THEN - 45 / 88 ELSE NULL END + 3 * - 79
----
NULL

query I rowsort
SELECT + NULLIF ( - - 73, 16 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - 61 + + COUNT( ALL 35 ) + 27 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-7393
SELECT - 61 + + COUNT ( ALL 35 ) + 27 AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7394
SELECT 89 * - 41 + - 86 * + - 27 * + - 51 + - COUNT( * ) + + COUNT( + ( 6 ) ) DIV - 24
----
-122072

skipif mysql # not compatible
query I rowsort label-7394
SELECT 89 * - 41 + - 86 * + - 27 * + - 51 + - COUNT ( * ) + + COUNT ( + ( 6 ) ) / - 24
----
-122072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7395
SELECT + 31 * COUNT( * ) DIV + - CAST( - 92 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7395
SELECT + 31 * COUNT ( * ) / + - CAST ( - 92 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7396
SELECT - 72 DIV - 1 + - 75 AS col0, - 92
----
-3
-92

skipif mysql # not compatible
query II rowsort label-7396
SELECT - 72 / - 1 + - 75 AS col0, - 92
----
-3
-92

query I rowsort
SELECT - 25 + - 65 * + + 40 AS col2
----
-2625

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT + COUNT( DISTINCT + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT + COUNT ( DISTINCT + 89 )
----
1

query I rowsort
SELECT ALL + 27 * - 33 * - + 81
----
72171

query I rowsort
SELECT - ( 94 ) * - + 36
----
3384

query I rowsort
SELECT ALL + 36 * + 98
----
3528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7402
SELECT DISTINCT CAST( NULL AS SIGNED ) * + NULLIF ( - - COALESCE ( - 67, + 84 - ( 99 ) - 75 ), - ( - 78 ) + 81 ) + 80 * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + NULLIF ( - - COALESCE ( - 67, + 84 - ( 99 ) - 75 ), - ( - 78 ) + 81 ) + 80 * + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7403
SELECT ALL + + ( - + 89 ) AS col1, CAST( NULL AS SIGNED ) + - MAX( 19 )
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-7403
SELECT ALL + + ( - + 89 ) AS col1, CAST ( NULL AS INTEGER ) + - MAX ( 19 )
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + + ( + 24 ) * CASE - 16 WHEN - - 34 THEN - 28 WHEN 46 THEN NULL WHEN 70 + COUNT( * ) THEN NULL END * - 83 + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + + ( + 24 ) * CASE - 16 WHEN - - 34 THEN - 28 WHEN 46 THEN NULL WHEN 70 + COUNT ( * ) THEN NULL END * - 83 + 4
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7405
SELECT ALL - + 59 DIV - 20 AS col2, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-7405
SELECT ALL - + 59 / - 20 AS col2, COUNT ( * )
----
2
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7406
SELECT - 4 DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-7406
SELECT - 4 / + 53
----
0

query II rowsort
SELECT - 9 - - 33 col0, - 77
----
24
-77

query II rowsort
SELECT + - 5 + + 16 AS col2, - 55
----
11
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT + 6 * ( + + COUNT( DISTINCT - 77 ) ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7409
SELECT + 6 * ( + + COUNT ( DISTINCT - 77 ) ) AS col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT - MIN( + + ( + 38 ) )
----
-38

skipif mysql # not compatible
query I rowsort label-7410
SELECT - MIN ( + + ( + 38 ) )
----
-38

query I rowsort
SELECT DISTINCT + 14 + + + 30 - - ( - 76 ) + + + 59
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT ALL + + COUNT( * ) - + - 2
----
3

skipif mysql # not compatible
query I rowsort label-7412
SELECT ALL + + COUNT ( * ) - + - 2
----
3

query I rowsort
SELECT + 67 * 82
----
5494

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT + COUNT( * ) - + 48
----
-47

skipif mysql # not compatible
query I rowsort label-7414
SELECT + COUNT ( * ) - + 48
----
-47

query II rowsort
SELECT 48 AS col2, + 29 * + + 95
----
48
2755

query I rowsort
SELECT ALL 25 - 97
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + 31 * - MAX( - 80 ) AS col2
----
2480

skipif mysql # not compatible
query I rowsort label-7417
SELECT + 31 * - MAX ( - 80 ) AS col2
----
2480

query I rowsort
SELECT ALL 43 * 41
----
1763

query I rowsort
SELECT ALL 37 * - + 62 AS col1
----
-2294

query II rowsort
SELECT + 33 AS col1, + 50 - 2
----
33
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7421
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 82 AS col2, - 17 * NULLIF ( - + CASE - 38 WHEN - + 57 THEN - 38 WHEN 41 * 20 THEN NULL ELSE MAX( 92 ) END, - 5 + 45 * + 89 ) + - 96 * COALESCE ( 52, 52 ) AS col1
----
82
-3428

skipif mysql # not compatible
query II rowsort label-7421
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 82 AS col2, - 17 * NULLIF ( - + CASE - 38 WHEN - + 57 THEN - 38 WHEN 41 * 20 THEN NULL ELSE MAX ( 92 ) END, - 5 + 45 * + 89 ) + - 96 * COALESCE ( 52, 52 ) AS col1
----
82
-3428

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7422
SELECT MIN( ALL 99 ) DIV + 10 + - 5 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-7422
SELECT MIN ( ALL 99 ) / + 10 + - 5 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT SUM( 26 ) * + 78 AS col1
----
2028

skipif mysql # not compatible
query I rowsort label-7423
SELECT SUM ( 26 ) * + 78 AS col1
----
2028

query I rowsort
SELECT 94 * + 3 AS col2
----
282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT CAST( ( - - 80 ) AS SIGNED ) - - 39
----
119

skipif mysql # not compatible
query I rowsort label-7425
SELECT CAST ( ( - - 80 ) AS INTEGER ) - - 39
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL + - COUNT( * ) + - + 49
----
-50

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + - COUNT ( * ) + - + 49
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT 67 - 50 + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-7427
SELECT 67 - 50 + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT - 40 * 89 * - COUNT( * ) * + - 10 + - 29 AS col0
----
-35629

skipif mysql # not compatible
query I rowsort label-7428
SELECT - 40 * 89 * - COUNT ( * ) * + - 10 + - 29 AS col0
----
-35629

query I rowsort
SELECT ALL - - NULLIF ( - - 3, 42 + 13 ) * + 12 + - 77 + - - 27
----
-14

query I rowsort
SELECT DISTINCT - 70 + 73
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT + COALESCE ( CASE 13 WHEN + - 78 * + COUNT( * ) THEN + - CASE + 86 WHEN ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - 49 END * + 16 + 86 * + CAST( 32 * 76 AS SIGNED ) WHEN COUNT( * ) * 97 + 13 THEN NULL END, + 83 * - 79, 20 )
----
-6557

skipif mysql # not compatible
query I rowsort label-7431
SELECT + COALESCE ( CASE 13 WHEN + - 78 * + COUNT ( * ) THEN + - CASE + 86 WHEN ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - 49 END * + 16 + 86 * + CAST ( 32 * 76 AS INTEGER ) WHEN COUNT ( * ) * 97 + 13 THEN NULL END, + 83 * - 79, 20 )
----
-6557

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7432
SELECT - CAST( + - 15 AS DECIMAL ) + - 71 - - + 32 + + - 51 * - CASE - 29 WHEN MIN( 78 ) * + 46 THEN + ( ( - 84 ) ) ELSE NULL END / - 29 + 72 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7432
SELECT - CAST ( + - 15 AS REAL ) + - 71 - - + 32 + + - 51 * - CASE - 29 WHEN MIN ( 78 ) * + 46 THEN + ( ( - 84 ) ) ELSE NULL END / - 29 + 72 col2
----
NULL

query I rowsort
SELECT COALESCE ( + 8, - 44 * 89 * + 40 ) - - - 53
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7434
SELECT + NULLIF ( + 27, - - CAST( NULL AS DECIMAL ) * CASE WHEN NOT ( + 36 ) = 53 + - - 97 THEN NULL WHEN NULL NOT BETWEEN + 79 AND ( COUNT( * ) ) THEN 45 END * 91 )
----
27

skipif mysql # not compatible
query I rowsort label-7434
SELECT + NULLIF ( + 27, - - CAST ( NULL AS REAL ) * CASE WHEN NOT ( + 36 ) = 53 + - - 97 THEN NULL WHEN NULL NOT BETWEEN + 79 AND ( COUNT ( * ) ) THEN 45 END * 91 )
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-7435
SELECT + 60 * - 90 + 75 * 12 DIV - + 74 + - 9 AS col2
----
-5421

skipif mysql # not compatible
query I rowsort label-7435
SELECT + 60 * - 90 + 75 * 12 / - + 74 + - 9 AS col2
----
-5421

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - + CASE 55 WHEN - 71 * - MIN( ALL + 70 ) + + 8 THEN 48 * - - 68 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT - + CASE 55 WHEN - 71 * - MIN ( ALL + 70 ) + + 8 THEN 48 * - - 68 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7437
SELECT - ( - + 4 ) * + - ( - + 26 ) + - 71 + - COUNT( * ) * - - 43 * + + 53 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT - ( - + 4 ) * + - ( - + 26 ) + - 71 + - COUNT ( * ) * - - 43 * + + 53 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) - + + 23 + - 21 * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) - + + 23 + - 21 * 1 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT + COUNT( * ) + - + 82 * 9 col1, 92 AS col2
----
-737
92

skipif mysql # not compatible
query II rowsort label-7439
SELECT + COUNT ( * ) + - + 82 * 9 col1, 92 AS col2
----
-737
92

query I rowsort
SELECT 8 + - - 75 + - 27 * + + 69 + - ( + + 58 )
----
-1838

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT - 65 * - + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-7441
SELECT - 65 * - + COUNT ( * )
----
65

query I rowsort
SELECT ALL + - 68 - 33 col1
----
-101

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7443
SELECT - - 88, + 57 DIV ( - - NULLIF ( 35, + 91 ) ) * + ( 27 ) - SUM( 88 ) AS col2
----
88
-61

skipif mysql # not compatible
query II rowsort label-7443
SELECT - - 88, + 57 / ( - - NULLIF ( 35, + 91 ) ) * + ( 27 ) - SUM ( 88 ) AS col2
----
88
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7444
SELECT + 92 DIV + 16 col2
----
5

skipif mysql # not compatible
query I rowsort label-7444
SELECT + 92 / + 16 col2
----
5

query I rowsort
SELECT 15 + - 58 / - CASE 41 WHEN + ( - - 4 ) THEN - 24 / + - 65 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7446
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 80 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7446
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 80 col0
----
NULL

query II rowsort
SELECT DISTINCT + 17 * 76 AS col1, 30 AS col2
----
1292
30

query I rowsort
SELECT 40 + - 7
----
33

query I rowsort
SELECT ALL - 72 * - 32 AS col0
----
2304

query I rowsort
SELECT 69 * + 56 AS col0
----
3864

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT 40 + - - 49 DIV + + 28 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7451
SELECT 40 + - - 49 / + + 28 AS col0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7452
SELECT 59 DIV COUNT( * ) * + 38
----
2242

skipif mysql # not compatible
query I rowsort label-7452
SELECT 59 / COUNT ( * ) * + 38
----
2242

onlyif mysql # aggregate syntax: 
query II rowsort label-7453
SELECT DISTINCT 71 * - + COUNT( * ) col0, 10 - - MIN( ALL - + 68 ) col2
----
-71
-58

skipif mysql # not compatible
query II rowsort label-7453
SELECT DISTINCT 71 * - + COUNT ( * ) col0, 10 - - MIN ( ALL - + 68 ) col2
----
-71
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT ALL COUNT( * ) + + 24 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL COUNT ( * ) + + 24 AS col2
----
25

query I rowsort
SELECT ALL + 64 + + 76 - + 49 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT ALL - 9 DIV 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-7456
SELECT ALL - 9 / 77 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT ALL - COUNT( * ) * + + 55 + + COUNT( * )
----
-54

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL - COUNT ( * ) * + + 55 + + COUNT ( * )
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT DISTINCT + CASE - 36 WHEN 42 + 9 THEN NULL WHEN - 75 THEN COUNT( * ) WHEN COUNT( ( + CAST( 49 AS SIGNED ) ) ) * + 83 THEN NULL ELSE 22 END * + 69
----
1518

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + CASE - 36 WHEN 42 + 9 THEN NULL WHEN - 75 THEN COUNT ( * ) WHEN COUNT ( ( + CAST ( 49 AS INTEGER ) ) ) * + 83 THEN NULL ELSE 22 END * + 69
----
1518

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7459
SELECT 62 DIV + - 3 * - COUNT( * ) col2
----
20

skipif mysql # not compatible
query I rowsort label-7459
SELECT 62 / + - 3 * - COUNT ( * ) col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - 0 * COUNT( * ) + + 54 col2
----
54

skipif mysql # not compatible
query I rowsort label-7460
SELECT - 0 * COUNT ( * ) + + 54 col2
----
54

query I rowsort
SELECT 51 + - 13 * 27 AS col2
----
-300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7462
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) + - 39 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7462
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) + - 39 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT + CASE + 95 WHEN - COUNT( DISTINCT - - 31 ) THEN - 80 WHEN 84 THEN NULL END + + 41 + - 58 + + 50 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7463
SELECT + CASE + 95 WHEN - COUNT ( DISTINCT - - 31 ) THEN - 80 WHEN 84 THEN NULL END + + 41 + - 58 + + 50 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - MIN( DISTINCT 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - MIN ( DISTINCT 77 )
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT 31 * CAST( NULL AS SIGNED ) * - NULLIF ( - 91, + + 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT 31 * CAST ( NULL AS INTEGER ) * - NULLIF ( - 91, + + 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT + 95 * - 39 * - - COUNT( * ) * + COUNT( * ) + + + 55 + 77 + - - 92 * NULLIF ( + COUNT( * ), 94 ) + + 33 AS col2
----
-3448

skipif mysql # not compatible
query I rowsort label-7466
SELECT + 95 * - 39 * - - COUNT ( * ) * + COUNT ( * ) + + + 55 + 77 + - - 92 * NULLIF ( + COUNT ( * ), 94 ) + + 33 AS col2
----
-3448

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT - ( - + NULLIF ( + COUNT( * ), 63 ) ) * + 45 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT - ( - + NULLIF ( + COUNT ( * ), 63 ) ) * + 45 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT SUM( ALL 59 ) * - 90 AS col0
----
-5310

skipif mysql # not compatible
query I rowsort label-7468
SELECT SUM ( ALL 59 ) * - 90 AS col0
----
-5310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT + COALESCE ( ( + 21 ), 7 * + 62 DIV 3 + 14 * + - 46 * - 25, MAX( DISTINCT 39 ) * 71 + 65 DIV ( 12 ), + 13 ) - + 13
----
8

skipif mysql # not compatible
query I rowsort label-7469
SELECT + COALESCE ( ( + 21 ), 7 * + 62 / 3 + 14 * + - 46 * - 25, MAX ( DISTINCT 39 ) * 71 + 65 / ( 12 ), + 13 ) - + 13
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT 31 + + COUNT( * ) * + 13
----
44

skipif mysql # not compatible
query I rowsort label-7470
SELECT 31 + + COUNT ( * ) * + 13
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - ( - - COALESCE ( - + 97, - COUNT( * ) + + 18 * 82 * - 28 + + 63 + - + 29 * - 17 * + 52 ) ) AS col1
----
97

skipif mysql # not compatible
query I rowsort label-7471
SELECT - ( - - COALESCE ( - + 97, - COUNT ( * ) + + 18 * 82 * - 28 + + 63 + - + 29 * - 17 * + 52 ) ) AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7472
SELECT 60 + + + COUNT( + 5 ) * ( 7 ) AS col2, + CASE 46 WHEN - - 58 * - - 37 DIV + 66 * CASE CAST( NULL AS SIGNED ) * - 86 WHEN 28 THEN 52 * - 13 WHEN + 46 THEN 3 + - 54 END THEN - 47 ELSE - 98 DIV COUNT( * ) END col1
----
67
-98

skipif mysql # not compatible
query II rowsort label-7472
SELECT 60 + + + COUNT ( + 5 ) * ( 7 ) AS col2, + CASE 46 WHEN - - 58 * - - 37 / + 66 * CASE CAST ( NULL AS INTEGER ) * - 86 WHEN 28 THEN 52 * - 13 WHEN + 46 THEN 3 + - 54 END THEN - 47 ELSE - 98 / COUNT ( * ) END col1
----
67
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT ALL + ( - - 70 ) * CAST( + ( + 69 ) AS SIGNED ) AS col1
----
4830

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL + ( - - 70 ) * CAST ( + ( + 69 ) AS INTEGER ) AS col1
----
4830

query I rowsort
SELECT - NULLIF ( 70, - 36 / + 52 * - 37 + 19 + + + AVG ( DISTINCT - 79 ) + - 42 - + - 49 * - 46 * 43 ) AS col2
----
-70

query I rowsort
SELECT 44 - - 93 AS col0
----
137

query I rowsort
SELECT ALL NULLIF ( - NULLIF ( ( - 67 ), 63 ), 46 ) * 20 AS col2
----
1340

query I rowsort
SELECT DISTINCT + ( + + 63 ) + + - 9
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - CASE + - 92 WHEN - 91 * + ( COALESCE ( 39, - 96 ) ) + + - 42 + + + 15 + - + 8 + - 76 * - 30 * 43 + 60 THEN - COUNT( * ) * 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7478
SELECT - CASE + - 92 WHEN - 91 * + ( COALESCE ( 39, - 96 ) ) + + - 42 + + + 15 + - + 8 + - 76 * - 30 * 43 + 60 THEN - COUNT ( * ) * 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - ( MAX( + 24 ) ) + + ( + 29 ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-7479
SELECT - ( MAX ( + 24 ) ) + + ( + 29 ) AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT DISTINCT + 95 DIV 69 * - 46
----
-46

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT + 95 / 69 * - 46
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT - 66 * CASE - CAST( - 58 AS SIGNED ) WHEN + 77 + - 88 * 94 / + + ( - 14 ) THEN NULL WHEN + COUNT( * ) THEN 26 - - 34 * COUNT( * ) ELSE NULL END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7481
SELECT - 66 * CASE - CAST ( - 58 AS INTEGER ) WHEN + 77 + - 88 * 94 / + + ( - 14 ) THEN NULL WHEN + COUNT ( * ) THEN 26 - - 34 * COUNT ( * ) ELSE NULL END * 9
----
NULL

query I rowsort
SELECT - 72 + - 21
----
-93

query I rowsort
SELECT DISTINCT - 23 + 88 + - 4 AS col2
----
61

query I rowsort
SELECT ALL + 68 + 74 col2
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT - CASE - - 45 WHEN - - COUNT( * ) THEN - - 98 + 19 END * + + ( 55 ) * 73 * 74 * - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT - CASE - - 45 WHEN - - COUNT ( * ) THEN - - 98 + 19 END * + + ( 55 ) * 73 * 74 * - - 84
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT DISTINCT + 95 DIV + - 75 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT + 95 / + - 75 AS col1
----
-1

query I rowsort
SELECT ALL - 5 + - 44
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - COUNT( * ) * + 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7488
SELECT - COUNT ( * ) * + 87 AS col1
----
-87

query I rowsort
SELECT DISTINCT - 96 * - 20
----
1920

query I rowsort
SELECT DISTINCT - 23 * 57 AS col1
----
-1311

query I rowsort
SELECT ALL - 94 * 81 + 33 + - - ( 60 ) * + 97 + + 5 AS col0
----
-1756

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT NULLIF ( - - 79, + 54 + COUNT( * ) ) col0
----
79

skipif mysql # not compatible
query I rowsort label-7492
SELECT NULLIF ( - - 79, + 54 + COUNT ( * ) ) col0
----
79

query I rowsort
SELECT ALL 77 * + 4 * + 9 + 29 AS col2
----
2801

query I rowsort
SELECT CASE - NULLIF ( 55, + 57 ) WHEN + 59 THEN 83 ELSE + 80 END
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-7495
SELECT + 45 DIV - ( + 82 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7495
SELECT + 45 / - ( + 82 ) AS col0
----
0

query I rowsort
SELECT - 84 * + 10 AS col2
----
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT ALL COUNT( * ) * + 33 * + 32 + 55 + 4 AS col1
----
1115

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL COUNT ( * ) * + 33 * + 32 + 55 + 4 AS col1
----
1115

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - + 48 - - - COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7498
SELECT - + 48 - - - COUNT ( * ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT ALL + + 64 col1, - NULLIF ( COUNT( * ), 1 ) * - 22 + + 47 / + + 33 + - MIN( + 13 ) AS col1
----
64
NULL

skipif mysql # not compatible
query II rowsort label-7499
SELECT ALL + + 64 col1, - NULLIF ( COUNT ( * ), 1 ) * - 22 + + 47 / + + 33 + - MIN ( + 13 ) AS col1
----
64
NULL

query I rowsort
SELECT ALL + - 97 * + 92
----
-8924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT - 87 * + - 72 * - CAST( 89 AS SIGNED ) AS col2
----
-557496

skipif mysql # not compatible
query I rowsort label-7501
SELECT - 87 * + - 72 * - CAST ( 89 AS INTEGER ) AS col2
----
-557496

query I rowsort
SELECT ALL 31 * 94 + - 40 AS col2
----
2874

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT + 74 - - 13 + + - MAX( ALL - 63 ) * CAST( - 88 AS SIGNED ) - + 84
----
-5541

skipif mysql # not compatible
query I rowsort label-7503
SELECT + 74 - - 13 + + - MAX ( ALL - 63 ) * CAST ( - 88 AS INTEGER ) - + 84
----
-5541

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7504
SELECT + 14 DIV COUNT( * ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-7504
SELECT + 14 / COUNT ( * ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7505
SELECT + - COUNT( * ) DIV - 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT + - COUNT ( * ) / - 32 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT ALL + MIN( + - 17 )
----
-17

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL + MIN ( + - 17 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT ALL + + MAX( - - 59 ) * + - 11
----
-649

skipif mysql # not compatible
query I rowsort label-7507
SELECT ALL + + MAX ( - - 59 ) * + - 11
----
-649

query I rowsort
SELECT + 8 + NULLIF ( + 27, - ( + 86 ) + + + 71 ) + - 12 * + - 58
----
731

onlyif mysql # DIV for integer division: 
query II rowsort label-7509
SELECT DISTINCT 56 AS col0, - 75 + - 82 DIV + 31 + - 74 + + 46 AS col1
----
56
-105

skipif mysql # not compatible
query II rowsort label-7509
SELECT DISTINCT 56 AS col0, - 75 + - 82 / + 31 + - 74 + + 46 AS col1
----
56
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT ALL 32 + + 80 + 4 DIV + 77 col1
----
112

skipif mysql # not compatible
query I rowsort label-7510
SELECT ALL 32 + + 80 + 4 / + 77 col1
----
112

query I rowsort
SELECT ALL + 8 * - - 17
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT + COUNT( * ) * + 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-7512
SELECT + COUNT ( * ) * + 17 * + COUNT ( * )
----
17

query I rowsort
SELECT ALL + 99 + - 35 + - 20 * - + 33
----
724

query I rowsort
SELECT + 90 + - + 62 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7515
SELECT - CAST( NULL AS DECIMAL ) AS col1, MAX( ALL + 78 ) AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-7515
SELECT - CAST ( NULL AS REAL ) AS col1, MAX ( ALL + 78 ) AS col2
----
NULL
78

query I rowsort
SELECT ALL 60 * 92 AS col2
----
5520

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT + SUM( + 35 ) + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-7517
SELECT + SUM ( + 35 ) + COUNT ( * ) AS col1
----
36

query I rowsort
SELECT - ( - 48 ) * 73 AS col2
----
3504

query I rowsort
SELECT - 31 + - 75 AS col2
----
-106

query I rowsort
SELECT - ( + + ( + 64 ) ) AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT + 60 + - COUNT( ALL 18 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7521
SELECT + 60 + - COUNT ( ALL 18 ) AS col0
----
59

query II rowsort
SELECT DISTINCT 31, 95 AS col1
----
31
95

query I rowsort
SELECT ALL 24 * - 30 AS col2
----
-720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7524
SELECT 96, + AVG ( + 90 ) - - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
96
NULL

skipif mysql # not compatible
query II rowsort label-7524
SELECT 96, + AVG ( + 90 ) - - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
96
NULL

query I rowsort
SELECT ALL NULLIF ( 82, + 95 + 76 + + + 67 )
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7526
SELECT ALL + COALESCE ( - 36, - 16, - 68 * - 23 ) DIV + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL + COALESCE ( - 36, - 16, - 68 * - 23 ) / + COUNT ( * )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL + 37 - - COUNT( * ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + 37 - - COUNT ( * ) AS col2
----
38

query II rowsort
SELECT 82, - 76 AS col1
----
82
-76

query II rowsort
SELECT - 47, + 88 col1
----
-47
88

onlyif mysql # aggregate syntax: 
query II rowsort label-7530
SELECT + 0, - ( + COUNT( * ) ) AS col1
----
0
-1

skipif mysql # not compatible
query II rowsort label-7530
SELECT + 0, - ( + COUNT ( * ) ) AS col1
----
0
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT - 29 + - SUM( 67 ) - + + 85 AS col1, - 63 AS col2
----
-181
-63

skipif mysql # not compatible
query II rowsort label-7531
SELECT - 29 + - SUM ( 67 ) - + + 85 AS col1, - 63 AS col2
----
-181
-63

query I rowsort
SELECT ALL + + ( + 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT - COALESCE ( - 49, - ( - - 70 ) * + 42 * - 96 * + - 60 - + COUNT( ALL - 98 ), - - 53 * + + 36 ) * - 17 + 75
----
-758

skipif mysql # not compatible
query I rowsort label-7533
SELECT - COALESCE ( - 49, - ( - - 70 ) * + 42 * - 96 * + - 60 - + COUNT ( ALL - 98 ), - - 53 * + + 36 ) * - 17 + 75
----
-758

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7534
SELECT ALL - CASE + COUNT( * ) WHEN 57 THEN NULL ELSE MAX( ALL - - 4 ) END DIV + 96 + - + 40 AS col0, 30 DIV - COUNT( * ) col1
----
-40
-30

skipif mysql # not compatible
query II rowsort label-7534
SELECT ALL - CASE + COUNT ( * ) WHEN 57 THEN NULL ELSE MAX ( ALL - - 4 ) END / + 96 + - + 40 AS col0, 30 / - COUNT ( * ) col1
----
-40
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-7535
SELECT ( 67 ) DIV + 16 + - - 50 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7535
SELECT ( 67 ) / + 16 + - - 50 AS col1
----
54

query I rowsort
SELECT ALL + + 62 * 79 AS col1
----
4898

query I rowsort
SELECT - + 3 + + 15 AS col2
----
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7538
SELECT ALL + + CAST( NULL AS DECIMAL ) * - MIN( - ( + 23 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + + CAST ( NULL AS REAL ) * - MIN ( - ( + 23 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + - MAX( + 92 ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-7539
SELECT + - MAX ( + 92 ) AS col2
----
-92

query II rowsort
SELECT + + 47 AS col0, - 82 + + 73 AS col0
----
47
-9

query I rowsort
SELECT - - 25 * 45
----
1125

query I rowsort
SELECT DISTINCT + NULLIF ( - 25, 46 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT + 72 + - 27 DIV + 50 * 49 + COUNT( * ) + 94 * - 21 * - + COUNT( * ) * - - CASE 46 WHEN - 97 + - 71 THEN COUNT( * ) ELSE - 81 * + 30 + - 62 END
----
-4919135

skipif mysql # not compatible
query I rowsort label-7543
SELECT + 72 + - 27 / + 50 * 49 + COUNT ( * ) + 94 * - 21 * - + COUNT ( * ) * - - CASE 46 WHEN - 97 + - 71 THEN COUNT ( * ) ELSE - 81 * + 30 + - 62 END
----
-4919135

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + NULLIF ( + - 68, + 76 * - COUNT( * ) * + COUNT( * ) * - + COALESCE ( - - ( - 11 ), - COUNT( * ) * - 41 + - 5 + - COALESCE ( + 34, + 34 * - 57 + + COUNT( * ) * + 37 ) * 55 / ( - COUNT( * ) + COUNT( * ) * - 17 ), 89 ) * - 27 )
----
-68

skipif mysql # not compatible
query I rowsort label-7544
SELECT + NULLIF ( + - 68, + 76 * - COUNT ( * ) * + COUNT ( * ) * - + COALESCE ( - - ( - 11 ), - COUNT ( * ) * - 41 + - 5 + - COALESCE ( + 34, + 34 * - 57 + + COUNT ( * ) * + 37 ) * 55 / ( - COUNT ( * ) + COUNT ( * ) * - 17 ), 89 ) * - 27 )
----
-68

query I rowsort
SELECT ALL + CASE WHEN 94 > 64 THEN NULL WHEN + 78 NOT BETWEEN NULL AND + + 23 THEN + 53 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT DISTINCT MIN( 87 ) * + 34 * - + ( 45 ) * 21 DIV - 45
----
62118

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT MIN ( 87 ) * + 34 * - + ( 45 ) * 21 / - 45
----
62118

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7547
SELECT ALL - CAST( NULL AS DECIMAL ) + ( + 82 ) + + 99 - - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - CAST ( NULL AS REAL ) + ( + 82 ) + + 99 - - + 43
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7548
SELECT - 14 * 43 * 11 - COUNT( * ) + + 15 DIV - 5 * COUNT( * ) AS col0, - 77 AS col2
----
-6626
-77

skipif mysql # not compatible
query II rowsort label-7548
SELECT - 14 * 43 * 11 - COUNT ( * ) + + 15 / - 5 * COUNT ( * ) AS col0, - 77 AS col2
----
-6626
-77

query III rowsort
SELECT 40 * - 2, 62 col1, + 40 AS col1
----
-80
62
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT 43 - COUNT( * ) + + + 85
----
127

skipif mysql # not compatible
query I rowsort label-7550
SELECT 43 - COUNT ( * ) + + + 85
----
127

query I rowsort
SELECT 79 * - + 99
----
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT 19 * COUNT( * ) * - ( + + 54 )
----
-1026

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT 19 * COUNT ( * ) * - ( + + 54 )
----
-1026

query I rowsort
SELECT DISTINCT 78 + - 31 * - 20 AS col2
----
698

query I rowsort
SELECT + 76 * - + 32 * - - 88 + + 38 + - 17 + 72
----
-213923

query II rowsort
SELECT ALL 13 + + 31 col2, 34
----
44
34

query I rowsort
SELECT DISTINCT + 23 * - 75 AS col1
----
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT CASE - CASE - COUNT( * ) WHEN + 72 THEN - 91 * + + 22 + + 79 WHEN - 6 THEN - + ( - 20 ) + ( - 10 ) * 98 ELSE NULL END WHEN 63 THEN + 32 END - + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT CASE - CASE - COUNT ( * ) WHEN + 72 THEN - 91 * + + 22 + + 79 WHEN - 6 THEN - + ( - 20 ) + ( - 10 ) * 98 ELSE NULL END WHEN 63 THEN + 32 END - + 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT COALESCE ( - 16, + COUNT( * ) ) * 86 * + - 3
----
4128

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT COALESCE ( - 16, + COUNT ( * ) ) * 86 * + - 3
----
4128

query I rowsort
SELECT DISTINCT COALESCE ( + 35, + 47 * 65, + + ( + 55 ) ) * + 43 AS col1
----
1505

query I rowsort
SELECT 60 * + 51 * + + ( + 39 ) * - 27
----
-3222180

onlyif mysql # DIV for integer division: 
query II rowsort label-7561
SELECT - ( - 59 ), 2 DIV NULLIF ( 98, + + 21 ) AS col2
----
59
0

skipif mysql # not compatible
query II rowsort label-7561
SELECT - ( - 59 ), 2 / NULLIF ( 98, + + 21 ) AS col2
----
59
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT - MAX( - + 42 ) * - 25 AS col2
----
-1050

skipif mysql # not compatible
query I rowsort label-7562
SELECT - MAX ( - + 42 ) * - 25 AS col2
----
-1050

query I rowsort
SELECT ALL 63 * 41
----
2583

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT - - 72 DIV - 19
----
-3

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT - - 72 / - 19
----
-3

query I rowsort
SELECT + 9 * - 47 + 75 * + 3
----
-198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7566
SELECT - COUNT( * ) DIV - 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7566
SELECT - COUNT ( * ) / - 84 AS col1
----
0

query I rowsort
SELECT + COALESCE ( - 49, + 73 + - + 33 ) * 94 + - 31 + - + 8 + - + 0 + + + 13 + + 56
----
-4576

onlyif mysql # aggregate syntax: 
query II rowsort label-7568
SELECT SUM( 33 ) col2, 9 * - 44
----
33
-396

skipif mysql # not compatible
query II rowsort label-7568
SELECT SUM ( 33 ) col2, 9 * - 44
----
33
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + COALESCE ( 40, - 24 * COUNT( * ) ) col1
----
40

skipif mysql # not compatible
query I rowsort label-7569
SELECT + COALESCE ( 40, - 24 * COUNT ( * ) ) col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7570
SELECT ALL - 94 * 20 + - + NULLIF ( + COALESCE ( + - ( + + CAST( NULL AS SIGNED ) ), 93 ), - 51 * - COUNT( ALL + 81 ) ) + - COUNT( ALL + - COALESCE ( - 89, - 61 ) ) * 83
----
-2056

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - 94 * 20 + - + NULLIF ( + COALESCE ( + - ( + + CAST ( NULL AS INTEGER ) ), 93 ), - 51 * - COUNT ( ALL + 81 ) ) + - COUNT ( ALL + - COALESCE ( - 89, - 61 ) ) * 83
----
-2056

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7571
SELECT DISTINCT 74 + CAST( + - 79 AS SIGNED ) DIV 14 + - + 5
----
64

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT 74 + CAST ( + - 79 AS INTEGER ) / 14 + - + 5
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7572
SELECT + 46 * + 44 + - CAST( + 89 AS SIGNED ) + - CAST( NULL AS DECIMAL ) + + 91 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT + 46 * + 44 + - CAST ( + 89 AS INTEGER ) + - CAST ( NULL AS REAL ) + + 91 col0
----
NULL

query I rowsort
SELECT ALL - 50 + - 30 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT + SUM( ALL + + 50 ) * - 70 AS col1
----
-3500

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + SUM ( ALL + + 50 ) * - 70 AS col1
----
-3500

query I rowsort
SELECT 63 + + 85 * + + 93
----
7968

onlyif mysql # aggregate syntax: 
query II rowsort label-7576
SELECT 34 + + 25 + - 31 * - 52 * COUNT( + - 40 ), + 94 * + 30 AS col2
----
1671
2820

skipif mysql # not compatible
query II rowsort label-7576
SELECT 34 + + 25 + - 31 * - 52 * COUNT ( + - 40 ), + 94 * + 30 AS col2
----
1671
2820

query I rowsort
SELECT ALL - 8 * + 55 AS col1
----
-440

query II rowsort
SELECT 2, 77 * + + 2 AS col2
----
2
154

query II rowsort
SELECT 46 col2, - 64 col0
----
46
-64

query I rowsort
SELECT DISTINCT + 36 + - 86 col2
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7581
SELECT ALL - 81 + ( COUNT( * ) ) DIV + 60 * - MAX( ALL 60 ) DIV COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-7581
SELECT ALL - 81 + ( COUNT ( * ) ) / + 60 * - MAX ( ALL 60 ) / COUNT ( * )
----
-81

query II rowsort
SELECT 27 AS col2, 13 AS col2
----
27
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL MAX( 8 ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL MAX ( 8 ) AS col2
----
8

query I rowsort
SELECT DISTINCT + 36 - - + 57
----
93

query I rowsort
SELECT ALL 7 * 8 col0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-7586
SELECT DISTINCT - 64 DIV + COALESCE ( + 42, - 56 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7586
SELECT DISTINCT - 64 / + COALESCE ( + 42, - 56 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT 65 + - + COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-7587
SELECT 65 + - + COUNT ( * ) AS col0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT 68 DIV - + 66 col2
----
-1

skipif mysql # not compatible
query I rowsort label-7588
SELECT 68 / - + 66 col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT 3 * + + MAX( - 26 ) * - + 83
----
6474

skipif mysql # not compatible
query I rowsort label-7589
SELECT 3 * + + MAX ( - 26 ) * - + 83
----
6474

query I rowsort
SELECT ALL - 46 * + 81 * 41 AS col0
----
-152766

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT MIN( - 62 ) + - COALESCE ( 81, + NULLIF ( - 92, + - 22 ) ) col0
----
-143

skipif mysql # not compatible
query I rowsort label-7591
SELECT MIN ( - 62 ) + - COALESCE ( 81, + NULLIF ( - 92, + - 22 ) ) col0
----
-143

query I rowsort
SELECT 93 * 32 AS col0
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT COUNT( * ) * + COUNT( * ) * 60 * + 62 * + 38
----
141360

skipif mysql # not compatible
query I rowsort label-7593
SELECT COUNT ( * ) * + COUNT ( * ) * 60 * + 62 * + 38
----
141360

query I rowsort
SELECT 74 * + - 92 * + 30
----
-204240

onlyif mysql # aggregate syntax: 
query II rowsort label-7595
SELECT 5 + + - COUNT( * ) + - COUNT( * ) AS col1, 92 AS col0
----
3
92

skipif mysql # not compatible
query II rowsort label-7595
SELECT 5 + + - COUNT ( * ) + - COUNT ( * ) AS col1, 92 AS col0
----
3
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL - - 53 * - COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - - 53 * - COUNT ( * )
----
-53

query II rowsort
SELECT ALL + 8, - 27 AS col2
----
8
-27

query I rowsort
SELECT ALL NULLIF ( - 24, 51 * - 44 )
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7599
SELECT - - CASE - 89 WHEN - ( - + 66 ) / - 70 THEN - + CAST( + 39 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7599
SELECT - - CASE - 89 WHEN - ( - + 66 ) / - 70 THEN - + CAST ( + 39 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 0 + + - 5 + - ( - 42 ) * 27 AS col0
----
1129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT - - NULLIF ( + CAST( - 16 AS SIGNED ), 58 )
----
-16

skipif mysql # not compatible
query I rowsort label-7601
SELECT - - NULLIF ( + CAST ( - 16 AS INTEGER ), 58 )
----
-16

query I rowsort
SELECT 74 + + + 50 AS col1
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-7603
SELECT + CASE - - 16 WHEN MAX( + - 60 ) + - COUNT( - - 20 ) THEN - 69 END * + ( 25 ) AS col0, 51 - + 59 AS col2
----
NULL
-8

skipif mysql # not compatible
query II rowsort label-7603
SELECT + CASE - - 16 WHEN MAX ( + - 60 ) + - COUNT ( - - 20 ) THEN - 69 END * + ( 25 ) AS col0, 51 - + 59 AS col2
----
NULL
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT CAST( NULL AS SIGNED ) + 93 * - 10 * - - 35 * - - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT CAST ( NULL AS INTEGER ) + 93 * - 10 * - - 35 * - - 81 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7605
SELECT ALL + - CAST( NULL AS SIGNED ) * + - MIN( 82 ) + - 20 + - + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL + - CAST ( NULL AS INTEGER ) * + - MIN ( 82 ) + - 20 + - + 69 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7606
SELECT ALL - + CASE + + 11 WHEN + 81 THEN + 58 ELSE - 40 END * COALESCE ( - - CAST( 36 AS SIGNED ), - MAX( ALL 62 ), 23 ) DIV - 24 + + 37 * 15 AS col0
----
495

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - + CASE + + 11 WHEN + 81 THEN + 58 ELSE - 40 END * COALESCE ( - - CAST ( 36 AS INTEGER ), - MAX ( ALL 62 ), 23 ) / - 24 + + 37 * 15 AS col0
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - COALESCE ( + 47, - 70 ) + - CASE + + 28 WHEN 15 * ( + + 30 ) + + - ( - + 69 ) THEN 79 - + - COUNT( * ) + + 40 ELSE - ( + 32 ) END
----
-15

skipif mysql # not compatible
query I rowsort label-7607
SELECT - COALESCE ( + 47, - 70 ) + - CASE + + 28 WHEN 15 * ( + + 30 ) + + - ( - + 69 ) THEN 79 - + - COUNT ( * ) + + 40 ELSE - ( + 32 ) END
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT + COUNT( * ) * 50 AS col0, + ( - 26 ) col2
----
50
-26

skipif mysql # not compatible
query II rowsort label-7608
SELECT + COUNT ( * ) * 50 AS col0, + ( - 26 ) col2
----
50
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7609
SELECT + COALESCE ( - COUNT( * ), + CAST( + 57 AS SIGNED ) DIV + - AVG ( ALL - ( - + 61 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7609
SELECT + COALESCE ( - COUNT ( * ), + CAST ( + 57 AS INTEGER ) / + - AVG ( ALL - ( - + 61 ) ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT + ( - ( - 92 ) ) col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7611
SELECT - 83 + ( + + CAST( - COUNT( 41 ) AS SIGNED ) ) + 67 - + 43 + 4 DIV - CAST( ( - - NULLIF ( - 84, - 52 * - - 43 - - 64 ) ) AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-7611
SELECT - 83 + ( + + CAST ( - COUNT ( 41 ) AS INTEGER ) ) + 67 - + 43 + 4 / - CAST ( ( - - NULLIF ( - 84, - 52 * - - 43 - - 64 ) ) AS INTEGER ) AS col1
----
-60

query I rowsort
SELECT DISTINCT COALESCE ( - + 71, + 11 + + 83 + + 61, + - 51 )
----
-71

query I rowsort
SELECT - 82 - + 58 + 83 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL + 21 * - COUNT( * ) AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL + 21 * - COUNT ( * ) AS col1
----
-21

query I rowsort
SELECT ALL + 10 + - 18 + + - 68 AS col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT - - 4 * 37 * COUNT( + 23 ) + - COUNT( * )
----
147

skipif mysql # not compatible
query I rowsort label-7616
SELECT - - 4 * 37 * COUNT ( + 23 ) + - COUNT ( * )
----
147

query I rowsort
SELECT - - 46 + - 74 col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7618
SELECT - 42 DIV + - COUNT( ALL + - 62 )
----
42

skipif mysql # not compatible
query I rowsort label-7618
SELECT - 42 / + - COUNT ( ALL + - 62 )
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT + COUNT( * ) * + 68 + + 39
----
107

skipif mysql # not compatible
query I rowsort label-7619
SELECT + COUNT ( * ) * + 68 + + 39
----
107

query I rowsort
SELECT DISTINCT + ( - - 52 ) AS col2
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT ALL - COUNT( * ) DIV + 32 + 14 + 19 * 58 * - - 87
----
95888

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - COUNT ( * ) / + 32 + 14 + 19 * 58 * - - 87
----
95888

query II rowsort
SELECT + - 14 * + 10 AS col0, 67
----
-140
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT ALL 50 DIV + 56 + - - 38
----
38

skipif mysql # not compatible
query I rowsort label-7623
SELECT ALL 50 / + 56 + - - 38
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + ( - + ( MAX( ALL ( + ( - ( - - 67 ) ) ) ) ) )
----
67

skipif mysql # not compatible
query I rowsort label-7624
SELECT + ( - + ( MAX ( ALL ( + ( - ( - - 67 ) ) ) ) ) )
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7625
SELECT ALL + - CASE - ( CASE + 36 WHEN - 61 THEN - COUNT( * ) WHEN + - ( - COUNT( * ) ) THEN NULL END ) WHEN 30 THEN - 26 * - 60 WHEN COUNT( * ) / - 55 + - + 14 THEN + CAST( - COUNT( * ) AS DECIMAL ) * + 12 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + - CASE - ( CASE + 36 WHEN - 61 THEN - COUNT ( * ) WHEN + - ( - COUNT ( * ) ) THEN NULL END ) WHEN 30 THEN - 26 * - 60 WHEN COUNT ( * ) / - 55 + - + 14 THEN + CAST ( - COUNT ( * ) AS REAL ) * + 12 ELSE NULL END col1
----
NULL

query I rowsort
SELECT + ( + - ( + 78 ) ) AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + COALESCE ( + ( + 6 ), COUNT( * ) * + 92 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-7627
SELECT + COALESCE ( + ( + 6 ), COUNT ( * ) * + 92 ) AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT + ( - + 6 ) * + + 23 + - ( + COUNT( * ) ) * 60 + - 58 + - 79 DIV + 9
----
-264

skipif mysql # not compatible
query I rowsort label-7628
SELECT + ( - + 6 ) * + + 23 + - ( + COUNT ( * ) ) * 60 + - 58 + - 79 / + 9
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7629
SELECT CASE - 77 WHEN + 49 + 41 THEN NULL ELSE - CAST( + 31 AS SIGNED ) END AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7629
SELECT CASE - 77 WHEN + 49 + 41 THEN NULL ELSE - CAST ( + 31 AS INTEGER ) END AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT + COUNT( * ) * + - 61 + + 79 * + 15
----
1124

skipif mysql # not compatible
query I rowsort label-7630
SELECT + COUNT ( * ) * + - 61 + + 79 * + 15
----
1124

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT + ( + 37 ) * - ( + + 12 ) + + + 48 - + - 98 * + COUNT( * ) * COUNT( * ) AS col1
----
-298

skipif mysql # not compatible
query I rowsort label-7631
SELECT + ( + 37 ) * - ( + + 12 ) + + + 48 - + - 98 * + COUNT ( * ) * COUNT ( * ) AS col1
----
-298

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7632
SELECT - 59 * - AVG ( ALL + + 17 ) * - + AVG ( - CAST( NULL AS SIGNED ) ), 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-7632
SELECT - 59 * - AVG ( ALL + + 17 ) * - + AVG ( - CAST ( NULL AS INTEGER ) ), 18 AS col0
----
NULL
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7633
SELECT 92 * COUNT( * ) DIV - 91 + + ( - ( - - COUNT( * ) ) ) - 10 DIV + - 17
----
-2

skipif mysql # not compatible
query I rowsort label-7633
SELECT 92 * COUNT ( * ) / - 91 + + ( - ( - - COUNT ( * ) ) ) - 10 / + - 17
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT + COUNT( * ) * + 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-7634
SELECT + COUNT ( * ) * + 33 AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7635
SELECT ALL COALESCE ( + 45, - 37 + 25 + - + 60 + + 31 ) AS col1, - MAX( 68 ) DIV 98 - COALESCE ( + 85, + 22 )
----
45
-85

skipif mysql # not compatible
query II rowsort label-7635
SELECT ALL COALESCE ( + 45, - 37 + 25 + - + 60 + + 31 ) AS col1, - MAX ( 68 ) / 98 - COALESCE ( + 85, + 22 )
----
45
-85

query I rowsort
SELECT + 6 + 83 col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + 23 * + COUNT( * ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-7637
SELECT + 23 * + COUNT ( * ) AS col0
----
23

query I rowsort
SELECT + 82 + 67 * 37 + - 25 AS col0
----
2536

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL + COUNT( ALL - 53 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL + COUNT ( ALL - 53 ) col2
----
1

query I rowsort
SELECT + 99 + 73 + - - 10
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT CASE + 26 WHEN 33 * + 5 + + 7 * - 47 + - COUNT( * ) THEN NULL WHEN 88 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-7641
SELECT CASE + 26 WHEN 33 * + 5 + + 7 * - 47 + - COUNT ( * ) THEN NULL WHEN 88 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT + 12 + MIN( + + 75 ) + - 12
----
75

skipif mysql # not compatible
query I rowsort label-7642
SELECT + 12 + MIN ( + + 75 ) + - 12
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT + + 86 + ( - COUNT( * ) ) * 85
----
1

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT + + 86 + ( - COUNT ( * ) ) * 85
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7644
SELECT ALL 70 col0, 61 DIV + + 70
----
70
0

skipif mysql # not compatible
query II rowsort label-7644
SELECT ALL 70 col0, 61 / + + 70
----
70
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7645
SELECT - - 67 + + COUNT( * ) + - MAX( ALL 25 ) + 84, 73 + + - 71 AS col2
----
127
2

skipif mysql # not compatible
query II rowsort label-7645
SELECT - - 67 + + COUNT ( * ) + - MAX ( ALL 25 ) + 84, 73 + + - 71 AS col2
----
127
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT ALL + - CAST( NULL AS SIGNED ) + - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT ALL + - CAST ( NULL AS INTEGER ) + - 55 AS col2
----
NULL

query I rowsort
SELECT + 62 + 69 + + 87 AS col0
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT COUNT( * ) * - 44 col1
----
-44

skipif mysql # not compatible
query I rowsort label-7648
SELECT COUNT ( * ) * - 44 col1
----
-44

query I rowsort
SELECT - 12 + 49
----
37

query I rowsort
SELECT 52 + - 30
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT - MAX( DISTINCT - - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7651
SELECT - MAX ( DISTINCT - - 77 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - CASE ( 77 ) WHEN + + NULLIF ( + 63, + COUNT( ALL + 42 ) ) THEN 22 WHEN 92 * - + 72 THEN NULL WHEN 44 + - NULLIF ( + 52, - 21 / - COUNT( * ) * 99 ) + 30 / - COUNT( * ) THEN NULL END * + ( 29 / 26 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7652
SELECT - CASE ( 77 ) WHEN + + NULLIF ( + 63, + COUNT ( ALL + 42 ) ) THEN 22 WHEN 92 * - + 72 THEN NULL WHEN 44 + - NULLIF ( + 52, - 21 / - COUNT ( * ) * 99 ) + 30 / - COUNT ( * ) THEN NULL END * + ( 29 / 26 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 4 * + 47 col0
----
-188

query I rowsort
SELECT ALL - 50 * - 42
----
2100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7655
SELECT 43 col0, + 49 DIV + CAST( 89 AS SIGNED )
----
43
0

skipif mysql # not compatible
query II rowsort label-7655
SELECT 43 col0, + 49 / + CAST ( 89 AS INTEGER )
----
43
0

query II rowsort
SELECT DISTINCT - 17 AS col0, 48 col2
----
-17
48

query I rowsort
SELECT DISTINCT - NULLIF ( 90, 72 * + 34 + - ( 97 ) )
----
-90

query II rowsort
SELECT 56, 65 AS col0
----
56
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT 75 * - - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-7659
SELECT 75 * - - COUNT ( * )
----
75

query II rowsort
SELECT 37, - 13 AS col2
----
37
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-7661
SELECT ALL - 49, - COUNT( * ) AS col1
----
-49
-1

skipif mysql # not compatible
query II rowsort label-7661
SELECT ALL - 49, - COUNT ( * ) AS col1
----
-49
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7662
SELECT 42, 56 - + COUNT( * ) AS col2
----
42
55

skipif mysql # not compatible
query II rowsort label-7662
SELECT 42, 56 - + COUNT ( * ) AS col2
----
42
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7663
SELECT ALL NULLIF ( 60, - 48 ) * + NULLIF ( + 73, - + 59 * - 58 ) * - 49 + 56 * CAST( NULL AS DECIMAL ) + MIN( - + 6 ) * + ( + ( - 17 ) ) + NULLIF ( + 62, 7 ) * SUM( CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL NULLIF ( 60, - 48 ) * + NULLIF ( + 73, - + 59 * - 58 ) * - 49 + 56 * CAST ( NULL AS REAL ) + MIN ( - + 6 ) * + ( + ( - 17 ) ) + NULLIF ( + 62, 7 ) * SUM ( CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 68, - 95 col0
----
-68
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT 15 * 18 + + + 51 + + + 49 * - 18 * + 68 * - 3 AS col1, 13 + + COUNT( * ) - 82 - - 6
----
180249
-62

skipif mysql # not compatible
query II rowsort label-7665
SELECT 15 * 18 + + + 51 + + + 49 * - 18 * + 68 * - 3 AS col1, 13 + + COUNT ( * ) - 82 - - 6
----
180249
-62

query II rowsort
SELECT 67 AS col1, 88 + - + 68 * 16
----
67
-1000

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL - COUNT( ALL - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL - COUNT ( ALL - 50 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7668
SELECT ( - 14 ) DIV - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-7668
SELECT ( - 14 ) / - COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-7669
SELECT - 45 AS col1, COUNT( * ) * - + 27 * 81 AS col0
----
-45
-2187

skipif mysql # not compatible
query II rowsort label-7669
SELECT - 45 AS col1, COUNT ( * ) * - + 27 * 81 AS col0
----
-45
-2187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7670
SELECT + COUNT( DISTINCT - 14 ) DIV 73
----
0

skipif mysql # not compatible
query I rowsort label-7670
SELECT + COUNT ( DISTINCT - 14 ) / 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7671
SELECT DISTINCT 45 DIV - COUNT( * ), 22 + - - COUNT( * ) - - SUM( DISTINCT 19 ) + + - 80 * - CAST( NULL AS SIGNED ) AS col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-7671
SELECT DISTINCT 45 / - COUNT ( * ), 22 + - - COUNT ( * ) - - SUM ( DISTINCT 19 ) + + - 80 * - CAST ( NULL AS INTEGER ) AS col0
----
-45
NULL

query II rowsort
SELECT 70 AS col1, 26 AS col0
----
70
26

query I rowsort
SELECT ALL - 27 + - 40 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL - NULLIF ( + COUNT( * ), 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - NULLIF ( + COUNT ( * ), 44 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT + + MIN( + 34 ) + + ( 77 ) AS col0
----
111

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT + + MIN ( + 34 ) + + ( 77 ) AS col0
----
111

query I rowsort
SELECT ALL - 77 * - 64 AS col2
----
4928

onlyif mysql # aggregate syntax: 
query II rowsort label-7677
SELECT - + 52 col1, - MAX( + 78 ) col0
----
-52
-78

skipif mysql # not compatible
query II rowsort label-7677
SELECT - + 52 col1, - MAX ( + 78 ) col0
----
-52
-78

query II rowsort
SELECT + 72 col0, 23 + - 29 AS col1
----
72
-6

query I rowsort
SELECT - + CASE + 48 WHEN - - 23 * + 35 THEN + + 86 + + 98 WHEN + 23 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT DISTINCT - SUM( + 38 ) * 60
----
-2280

skipif mysql # not compatible
query I rowsort label-7680
SELECT DISTINCT - SUM ( + 38 ) * 60
----
-2280

query II rowsort
SELECT DISTINCT - 49 AS col1, 47 AS col1
----
-49
47

query I rowsort
SELECT DISTINCT 19 * - 59 * - 2 + - + 26
----
2216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT ALL + 18 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + 18 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT MIN( DISTINCT - - 65 ) * + 75 * NULLIF ( COUNT( * ), - - NULLIF ( 57, COUNT( + - 40 ) ) - - COALESCE ( + - 29, + 43, + 23 * + - 16 + - 33 ) + + 93 * + 64 ) + 60
----
4935

skipif mysql # not compatible
query I rowsort label-7684
SELECT MIN ( DISTINCT - - 65 ) * + 75 * NULLIF ( COUNT ( * ), - - NULLIF ( 57, COUNT ( + - 40 ) ) - - COALESCE ( + - 29, + 43, + 23 * + - 16 + - 33 ) + + 93 * + 64 ) + 60
----
4935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7685
SELECT ALL - COUNT( * ) * + 36 DIV + 32
----
-1

skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL - COUNT ( * ) * + 36 / + 32
----
-1

query II rowsort
SELECT DISTINCT - 1 * 20 AS col0, 11
----
-20
11

query I rowsort
SELECT 23 * 30 AS col0
----
690

query I rowsort
SELECT ALL + 28 + - 59
----
-31

query II rowsort
SELECT 3 + 94 AS col2, 90 AS col0
----
97
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + 56 * + ( + ( - + MIN( ALL 56 ) ) ) * + 80 AS col1
----
-250880

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + 56 * + ( + ( - + MIN ( ALL 56 ) ) ) * + 80 AS col1
----
-250880

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT DISTINCT - COUNT( * ) + - ( - 73 ) * + 60
----
4379

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT - COUNT ( * ) + - ( - 73 ) * + 60
----
4379

query I rowsort
SELECT 29 * 97 + - + 63 AS col2
----
2750

query I rowsort
SELECT 99 * + 85 * + 32 AS col0
----
269280

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT DISTINCT + 11 + + SUM( + + 25 )
----
36

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT + 11 + + SUM ( + + 25 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT ALL - MIN( DISTINCT - 20 ) col2
----
20

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - MIN ( DISTINCT - 20 ) col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7696
SELECT ( + CAST( NULL AS SIGNED ) ) + + 1 + 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT ( + CAST ( NULL AS INTEGER ) ) + + 1 + 45 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7697
SELECT + CASE + + COUNT( * ) WHEN - - 49 + - 97 - + + 58 THEN + 51 WHEN - - ( - + 60 ) + + 43 + + - CASE - 76 WHEN - MAX( DISTINCT + - 60 ) + - 42 * NULLIF ( - + SUM( 92 ), ( 80 ) ) * + COUNT( * ) THEN NULLIF ( - 40, + 57 + - 8 ) * - CASE - 22 + - 91 * - ( 97 ) WHEN 0 * ( + 80 ) + CAST( 42 + + 33 * + 54 AS DECIMAL ) THEN 53 ELSE NULL END WHEN 25 THEN NULL END THEN NULL ELSE COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7697
SELECT + CASE + + COUNT ( * ) WHEN - - 49 + - 97 - + + 58 THEN + 51 WHEN - - ( - + 60 ) + + 43 + + - CASE - 76 WHEN - MAX ( DISTINCT + - 60 ) + - 42 * NULLIF ( - + SUM ( 92 ), ( 80 ) ) * + COUNT ( * ) THEN NULLIF ( - 40, + 57 + - 8 ) * - CASE - 22 + - 91 * - ( 97 ) WHEN 0 * ( + 80 ) + CAST ( 42 + + 33 * + 54 AS REAL ) THEN 53 ELSE NULL END WHEN 25 THEN NULL END THEN NULL ELSE COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT ALL 34 + - + 68
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT + COUNT( * ) * + + 16 AS col2, 25 * - + 91 AS col0
----
16
-2275

skipif mysql # not compatible
query II rowsort label-7699
SELECT + COUNT ( * ) * + + 16 AS col2, 25 * - + 91 AS col0
----
16
-2275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7700
SELECT + COUNT( * ) + - 36 AS col0, 63 DIV 77 + + 21 + + 54 + - 13 + - 35 + 93 * ( - - COUNT( 38 ) ) * - + 3 * - 27
----
-35
7560

skipif mysql # not compatible
query II rowsort label-7700
SELECT + COUNT ( * ) + - 36 AS col0, 63 / 77 + + 21 + + 54 + - 13 + - 35 + 93 * ( - - COUNT ( 38 ) ) * - + 3 * - 27
----
-35
7560

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT - 88 * MIN( DISTINCT - 81 ) * + 36 + + CASE WHEN NOT 77 IS NULL THEN - - 90 END
----
256698

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 88 * MIN ( DISTINCT - 81 ) * + 36 + + CASE WHEN NOT 77 IS NULL THEN - - 90 END
----
256698

query I rowsort
SELECT + + ( + 51 ) - + + 32 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + - 40 + 66 * ( - CASE 40 WHEN + MAX( DISTINCT + ( + 85 ) ) THEN + 39 END ) * - 37 / - 82 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7703
SELECT + - 40 + 66 * ( - CASE 40 WHEN + MAX ( DISTINCT + ( + 85 ) ) THEN + 39 END ) * - 37 / - 82 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7704
SELECT + + 66 * + - COUNT( * ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7704
SELECT + + 66 * + - COUNT ( * ) AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT + ( + SUM( DISTINCT 20 ) ) + - - 91 - 77 * - 78 col0
----
6117

skipif mysql # not compatible
query I rowsort label-7705
SELECT + ( + SUM ( DISTINCT 20 ) ) + - - 91 - 77 * - 78 col0
----
6117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7706
SELECT + 51 DIV 45 + + + 84 DIV + - SUM( + + ( - 98 ) ) * - + COUNT( * ) * + 1 + + 78 * 78 col2
----
6085

skipif mysql # not compatible
query I rowsort label-7706
SELECT + 51 / 45 + + + 84 / + - SUM ( + + ( - 98 ) ) * - + COUNT ( * ) * + 1 + + 78 * 78 col2
----
6085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7707
SELECT DISTINCT ( + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT ( + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7708
SELECT ALL + 94 DIV - - NULLIF ( 7, + CAST( NULL AS SIGNED ) - + + SUM( 69 ) )
----
13

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL + 94 / - - NULLIF ( 7, + CAST ( NULL AS INTEGER ) - + + SUM ( 69 ) )
----
13

query I rowsort
SELECT ALL + 30 * - 83
----
-2490

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT - MIN( ALL + 70 ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-7710
SELECT - MIN ( ALL + 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7711
SELECT + NULLIF ( + - 95, + COUNT( DISTINCT + - COALESCE ( - - 10, - 19 ) ) ) DIV - 71
----
1

skipif mysql # not compatible
query I rowsort label-7711
SELECT + NULLIF ( + - 95, + COUNT ( DISTINCT + - COALESCE ( - - 10, - 19 ) ) ) / - 71
----
1

query I rowsort
SELECT - 67 + 39 - + 71 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL 31 * - ( - NULLIF ( - + COUNT( * ), + 28 * - ( + SUM( - 78 ) ) ) ) * - CASE + MIN( + 77 ) WHEN - 13 THEN - + ( + + SUM( - 88 ) ) * COUNT( * ) END + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT ALL 31 * - ( - NULLIF ( - + COUNT ( * ), + 28 * - ( + SUM ( - 78 ) ) ) ) * - CASE + MIN ( + 77 ) WHEN - 13 THEN - + ( + + SUM ( - 88 ) ) * COUNT ( * ) END + + 39
----
NULL

query I rowsort
SELECT + 37 * + - 94 AS col1
----
-3478

query I rowsort
SELECT ( + ( 13 ) )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + CASE - 30 WHEN + CAST( NULL AS SIGNED ) * ( 98 ) THEN NULL ELSE - 76 END
----
-76

skipif mysql # not compatible
query I rowsort label-7716
SELECT + CASE - 30 WHEN + CAST ( NULL AS INTEGER ) * ( 98 ) THEN NULL ELSE - 76 END
----
-76

query I rowsort
SELECT - 19 + - 13 AS col1
----
-32

query I rowsort
SELECT ALL - 31 * 14 + + - 20 col0
----
-454

query II rowsort
SELECT ALL + 29, - 70 AS col2
----
29
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7720
SELECT ALL COUNT( * ) * - SUM( ALL 25 ) + + 26 + - COALESCE ( - 19, - - CASE - 13 WHEN + COALESCE ( - 48, - 59 * + 53 * - 28, + + 0 + - 1 * + 40 * - 96, - - 23 ) THEN - SUM( CAST( NULL AS SIGNED ) ) * - 40 WHEN 85 THEN NULL END, 54 + - ( - COUNT( * ) ) ) + CAST( 14 AS SIGNED ) * - 34 * - 68
----
32388

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL COUNT ( * ) * - SUM ( ALL 25 ) + + 26 + - COALESCE ( - 19, - - CASE - 13 WHEN + COALESCE ( - 48, - 59 * + 53 * - 28, + + 0 + - 1 * + 40 * - 96, - - 23 ) THEN - SUM ( CAST ( NULL AS INTEGER ) ) * - 40 WHEN 85 THEN NULL END, 54 + - ( - COUNT ( * ) ) ) + CAST ( 14 AS INTEGER ) * - 34 * - 68
----
32388

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT + ( - + MAX( DISTINCT - 29 ) )
----
29

skipif mysql # not compatible
query I rowsort label-7721
SELECT + ( - + MAX ( DISTINCT - 29 ) )
----
29

query II rowsort
SELECT ALL + 74, - 6 AS col1
----
74
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7723
SELECT DISTINCT 82 * NULLIF ( + 15, 49 ) * - - 37 - - 54 DIV 69 + - 1 col2
----
45509

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT 82 * NULLIF ( + 15, 49 ) * - - 37 - - 54 / 69 + - 1 col2
----
45509

query I rowsort
SELECT - 59 * 96 AS col0
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT NULLIF ( + 16, - - 44 * MAX( + 57 ) * 68 + + ( + - 42 ) + ( 66 ) )
----
16

skipif mysql # not compatible
query I rowsort label-7725
SELECT NULLIF ( + 16, - - 44 * MAX ( + 57 ) * 68 + + ( + - 42 ) + ( 66 ) )
----
16

query I rowsort
SELECT DISTINCT - 70 * - + 77
----
5390

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7727
SELECT - 23 / 55 * - CAST( NULL AS SIGNED ) * + 67 * + + MIN( ALL - 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT - 23 / 55 * - CAST ( NULL AS INTEGER ) * + 67 * + + MIN ( ALL - 14 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT - 29 * + COUNT( DISTINCT + 11 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-7728
SELECT - 29 * + COUNT ( DISTINCT + 11 ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7729
SELECT + COUNT( * ) AS col0, 45 * 24 - + NULLIF ( + 62, - ( - 79 ) - + MIN( + 52 ) ) + - NULLIF ( - + 81, 19 )
----
1
1099

skipif mysql # not compatible
query II rowsort label-7729
SELECT + COUNT ( * ) AS col0, 45 * 24 - + NULLIF ( + 62, - ( - 79 ) - + MIN ( + 52 ) ) + - NULLIF ( - + 81, 19 )
----
1
1099

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT ALL + 10 AS col2, SUM( ALL 60 ) * - COUNT( * ) AS col2
----
10
-60

skipif mysql # not compatible
query II rowsort label-7730
SELECT ALL + 10 AS col2, SUM ( ALL 60 ) * - COUNT ( * ) AS col2
----
10
-60

query I rowsort
SELECT DISTINCT - 33 * - 87 * - 95
----
-272745

query I rowsort
SELECT DISTINCT - + CASE - + 18 WHEN + 38 * - + 80 * 52 THEN - 51 + + 33 ELSE NULL END * + - 74 + - 21 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7733
SELECT DISTINCT 63 DIV + 69 + + 55 AS col2, 58 DIV - + COUNT( * ) AS col1
----
55
-58

skipif mysql # not compatible
query II rowsort label-7733
SELECT DISTINCT 63 / + 69 + + 55 AS col2, 58 / - + COUNT ( * ) AS col1
----
55
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT DISTINCT + + CASE - 73 WHEN COUNT( * ) THEN NULL WHEN + 61 THEN + SUM( DISTINCT 94 ) * 2 * 1 ELSE + + 9 - - 67 * - 20 END
----
-1331

skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT + + CASE - 73 WHEN COUNT ( * ) THEN NULL WHEN + 61 THEN + SUM ( DISTINCT 94 ) * 2 * 1 ELSE + + 9 - - 67 * - 20 END
----
-1331

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT - + ( 81 ) / + 98 - - + 2 - + 17 + - 53 * + 91 * CASE + ( 6 ) WHEN COUNT( * ) THEN NULL WHEN - ( - + 33 ) * - 66 + - 47 THEN - ( + + 75 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7735
SELECT - + ( 81 ) / + 98 - - + 2 - + 17 + - 53 * + 91 * CASE + ( 6 ) WHEN COUNT ( * ) THEN NULL WHEN - ( - + 33 ) * - 66 + - 47 THEN - ( + + 75 ) END AS col0
----
NULL

query I rowsort
SELECT - + 55 * + 56
----
-3080

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7737
SELECT - + 22 AS col0, COUNT( * ) DIV - + 17 + 30 AS col0
----
-22
30

skipif mysql # not compatible
query II rowsort label-7737
SELECT - + 22 AS col0, COUNT ( * ) / - + 17 + 30 AS col0
----
-22
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT - - MIN( ALL - 26 ) + + 26 * - 22 AS col2, + 60 + - + MAX( 56 ) AS col0
----
-598
4

skipif mysql # not compatible
query II rowsort label-7738
SELECT - - MIN ( ALL - 26 ) + + 26 * - 22 AS col2, + 60 + - + MAX ( 56 ) AS col0
----
-598
4

query I rowsort
SELECT ALL ( - + COALESCE ( 73, - - 62 ) ) AS col0
----
-73

query I rowsort
SELECT + 65 + + 47 AS col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT - MAX( ALL - + 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-7741
SELECT - MAX ( ALL - + 33 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT + + 51 * + ( - 49 ) + 4 + - NULLIF ( + - 79, - + 22 + - - 46 * MIN( - + 53 ) ) + - NULLIF ( + 85, + COUNT( * ) + - 18 ) + + 75 * + MAX( - 1 )
----
-2576

skipif mysql # not compatible
query I rowsort label-7742
SELECT + + 51 * + ( - 49 ) + 4 + - NULLIF ( + - 79, - + 22 + - - 46 * MIN ( - + 53 ) ) + - NULLIF ( + 85, + COUNT ( * ) + - 18 ) + + 75 * + MAX ( - 1 )
----
-2576

query I rowsort
SELECT ALL 52 * - 39
----
-2028

query I rowsort
SELECT DISTINCT - 81 * - 58
----
4698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT ALL CAST( + 52 AS SIGNED ) col1
----
52

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL CAST ( + 52 AS INTEGER ) col1
----
52

query I rowsort
SELECT - - ( - 73 ) - 43
----
-116

query II rowsort
SELECT - 30 AS col1, - 61 col1
----
-30
-61

query I rowsort
SELECT - ( + - 94 )
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT 90 + ( - CAST( 12 AS SIGNED ) ) col2
----
78

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT 90 + ( - CAST ( 12 AS INTEGER ) ) col2
----
78

query I rowsort
SELECT ALL 25 + + 16
----
41

query I rowsort
SELECT + 31 - 73 * - 94 AS col2
----
6893

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL + COUNT( * ) + - ( - 20 )
----
21

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL + COUNT ( * ) + - ( - 20 )
----
21

query I rowsort
SELECT DISTINCT - 47 + - 17
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7754
SELECT ALL COALESCE ( + 29, - 40 + COUNT( * ) + 32 + + 26 + - 28 * + 40 * - 70 DIV - + COUNT( * ) ) * + 82 * - - MIN( - CAST( CAST( - - 39 AS SIGNED ) AS SIGNED ) )
----
-92742

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL COALESCE ( + 29, - 40 + COUNT ( * ) + 32 + + 26 + - 28 * + 40 * - 70 / - + COUNT ( * ) ) * + 82 * - - MIN ( - CAST ( CAST ( - - 39 AS INTEGER ) AS INTEGER ) )
----
-92742

query I rowsort
SELECT ALL 78 + + 21 AS col0
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-7756
SELECT - ( - 22 ), + COUNT( * ) * - ( + 31 ) AS col2
----
22
-31

skipif mysql # not compatible
query II rowsort label-7756
SELECT - ( - 22 ), + COUNT ( * ) * - ( + 31 ) AS col2
----
22
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT ALL 89 + 83 + - + 23 + + 28 DIV - 10 + + 38 AS col1
----
185

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL 89 + 83 + - + 23 + + 28 / - 10 + + 38 AS col1
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT DISTINCT COUNT( * ) DIV - 73 * + 83
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT COUNT ( * ) / - 73 * + 83
----
0

query I rowsort
SELECT + ( + 56 ) + 58 AS col2
----
114

query I rowsort
SELECT + 53 - ( - + 28 ) AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT - 9 / + CASE + 76 WHEN - 25 THEN NULL WHEN - ( + + CASE - NULLIF ( + 52, 95 / - 58 * COUNT( * ) ) WHEN ( - 64 ) THEN NULL ELSE - + 3 + - 64 + - 81 * + 13 END ) * - 71 * + 91 THEN 78 * - COUNT( * ) ELSE NULL END * + 71 + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT - 9 / + CASE + 76 WHEN - 25 THEN NULL WHEN - ( + + CASE - NULLIF ( + 52, 95 / - 58 * COUNT ( * ) ) WHEN ( - 64 ) THEN NULL ELSE - + 3 + - 64 + - 81 * + 13 END ) * - 71 * + 91 THEN 78 * - COUNT ( * ) ELSE NULL END * + 71 + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL COUNT( * ) - MAX( DISTINCT + + 83 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL COUNT ( * ) - MAX ( DISTINCT + + 83 ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT COUNT( * ) - 41
----
-40

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT COUNT ( * ) - 41
----
-40

query I rowsort
SELECT ALL - ( - ( - - 78 ) )
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT - 93 * + NULLIF ( 12, - 27 ) + + 61 DIV + 93 - + - COUNT( * )
----
-1115

skipif mysql # not compatible
query I rowsort label-7765
SELECT - 93 * + NULLIF ( 12, - 27 ) + + 61 / + 93 - + - COUNT ( * )
----
-1115

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT - SUM( - ( + + 94 ) ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT - SUM ( - ( + + 94 ) ) AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7767
SELECT 73 + - COALESCE ( + 1, + 99 DIV + CAST( NULL AS SIGNED ) DIV + - MIN( - + 67 ) + + 67 * - 31 * - ( + 82 ) + - ( - 48 ) DIV - - 36 * + + 69 ) + - 76 + 4, COUNT( * ) * + - 74 + - 89 AS col1
----
0
-163

skipif mysql # not compatible
query II rowsort label-7767
SELECT 73 + - COALESCE ( + 1, + 99 / + CAST ( NULL AS INTEGER ) / + - MIN ( - + 67 ) + + 67 * - 31 * - ( + 82 ) + - ( - 48 ) / - - 36 * + + 69 ) + - 76 + 4, COUNT ( * ) * + - 74 + - 89 AS col1
----
0
-163

query I rowsort
SELECT - ( - 32 ) + 88
----
120

query II rowsort
SELECT - 79 * + 23 AS col0, - 9 + + 63 + - 57
----
-1817
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7770
SELECT DISTINCT + 88 * - - COUNT( * ) - + 76 DIV + - 87 + + + 58 * + 58 - + ( + 88 ) * + COUNT( + 20 ) DIV - ( - - COUNT( * ) ) - COALESCE ( - 50, + CASE + 8 WHEN + 34 THEN + COALESCE ( - + 81, + 21 + 17 ) ELSE + 25 END * 57, - 64 - 9 * 56 ) col2
----
3590

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT + 88 * - - COUNT ( * ) - + 76 / + - 87 + + + 58 * + 58 - + ( + 88 ) * + COUNT ( + 20 ) / - ( - - COUNT ( * ) ) - COALESCE ( - 50, + CASE + 8 WHEN + 34 THEN + COALESCE ( - + 81, + 21 + 17 ) ELSE + 25 END * 57, - 64 - 9 * 56 ) col2
----
3590

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT + 6 DIV + ( ( - 73 ) )
----
0

skipif mysql # not compatible
query I rowsort label-7771
SELECT + 6 / + ( ( - 73 ) )
----
0

query I rowsort
SELECT DISTINCT 85 * 88 AS col2
----
7480

onlyif mysql # aggregate syntax: 
query II rowsort label-7773
SELECT ALL - ( - 73 ) AS col0, + COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-7773
SELECT ALL - ( - 73 ) AS col0, + COUNT ( * )
----
73
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7774
SELECT 52 DIV - 95 * - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7774
SELECT 52 / - 95 * - COUNT ( * )
----
0

query I rowsort
SELECT - 82 + 50 * - 79 AS col0
----
-4032

onlyif mysql # aggregate syntax: 
query II rowsort label-7776
SELECT ALL - 3 + - 0 col0, + COUNT( * ) * + + 82 AS col1
----
-3
82

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL - 3 + - 0 col0, + COUNT ( * ) * + + 82 AS col1
----
-3
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7777
SELECT - 95 + 57 DIV + COUNT( * ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-7777
SELECT - 95 + 57 / + COUNT ( * ) AS col2
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-7778
SELECT - 65 - - - 65 DIV + 82
----
-65

skipif mysql # not compatible
query I rowsort label-7778
SELECT - 65 - - - 65 / + 82
----
-65

query I rowsort
SELECT + ( - 90 ) + + 12 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT COUNT( * ) * - 60 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7780
SELECT COUNT ( * ) * - 60 AS col0
----
-60

query I rowsort
SELECT 94 + + - 20
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7782
SELECT ALL 3, + CAST( 82 AS SIGNED ) col0
----
3
82

skipif mysql # not compatible
query II rowsort label-7782
SELECT ALL 3, + CAST ( 82 AS INTEGER ) col0
----
3
82

query I rowsort
SELECT DISTINCT + 15 + - + 83
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL - 60 + - + CASE + - 86 WHEN CASE - + 92 WHEN + - 30 THEN + - 91 * - 94 * + 69 / - CASE + 99 WHEN - COUNT( * ) THEN + 4 END + - 6 WHEN ( - - 88 ) THEN NULL END * + 37 * + CASE 50 WHEN 25 * - COUNT( * ) THEN ( 3 ) * 74 WHEN + 77 * COUNT( * ) THEN NULL WHEN + ( 11 ) THEN NULL ELSE 85 + - 26 END THEN 88 * 91 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - 60 + - + CASE + - 86 WHEN CASE - + 92 WHEN + - 30 THEN + - 91 * - 94 * + 69 / - CASE + 99 WHEN - COUNT ( * ) THEN + 4 END + - 6 WHEN ( - - 88 ) THEN NULL END * + 37 * + CASE 50 WHEN 25 * - COUNT ( * ) THEN ( 3 ) * 74 WHEN + 77 * COUNT ( * ) THEN NULL WHEN + ( 11 ) THEN NULL ELSE 85 + - 26 END THEN 88 * 91 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL CASE WHEN ( NOT NULL IS NULL ) THEN COUNT( * ) END * 88 + + - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL CASE WHEN ( NOT NULL IS NULL ) THEN COUNT ( * ) END * 88 + + - 60
----
NULL

query I rowsort
SELECT DISTINCT + 88 * - 40
----
-3520

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT COALESCE ( - 31, ( + 63 ) ) + - COUNT( * ) + + 53 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-7787
SELECT COALESCE ( - 31, ( + 63 ) ) + - COUNT ( * ) + + 53 AS col2
----
21

query I rowsort
SELECT 48 + 47 col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7789
SELECT DISTINCT CAST( NULL AS SIGNED ) / 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7790
SELECT DISTINCT - CAST( - 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - CAST ( - 64 AS INTEGER )
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT 26 / + CAST( NULL AS SIGNED ) * - 58 + + 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT 26 / + CAST ( NULL AS INTEGER ) * - 58 + + 46 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7792
SELECT ALL CAST( - 16 AS SIGNED ) DIV MIN( COALESCE ( + 52, - 97 - + 51 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7792
SELECT ALL CAST ( - 16 AS INTEGER ) / MIN ( COALESCE ( + 52, - 97 - + 51 ) ) AS col1
----
0

query II rowsort
SELECT DISTINCT - 86, 94 AS col2
----
-86
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7794
SELECT ALL COUNT( + - 93 ) DIV - 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT ALL COUNT ( + - 93 ) / - 86 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7795
SELECT ALL 85 * + CASE - MIN( DISTINCT + 74 ) WHEN + 62 THEN NULLIF ( + 81, + 6 / - - 63 ) END * - COUNT( * ), COALESCE ( + 4, - - 48 ) AS col0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL 85 * + CASE - MIN ( DISTINCT + 74 ) WHEN + 62 THEN NULLIF ( + 81, + 6 / - - 63 ) END * - COUNT ( * ), COALESCE ( + 4, - - 48 ) AS col0
----
NULL
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT - SUM( - 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-7796
SELECT - SUM ( - 11 ) AS col1
----
11

query I rowsort
SELECT ALL - 58 * + 23 + + 16 - - 12
----
-1306

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT DISTINCT + COUNT( * ) + - + 90
----
-89

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT + COUNT ( * ) + - + 90
----
-89

query II rowsort
SELECT + 74 * - 80 - 36 AS col2, 4 + + 66 * + 87
----
-5956
5746

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT - COUNT( * ) * - CAST( + ( + 45 ) AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-7800
SELECT - COUNT ( * ) * - CAST ( + ( + 45 ) AS INTEGER )
----
45

query I rowsort
SELECT DISTINCT - ( - 92 ) AS col0
----
92

query I rowsort
SELECT ALL 96 + - + 28
----
68

query I rowsort
SELECT ALL 10 + 96 AS col0
----
106

onlyif mysql # aggregate syntax: 
query II rowsort label-7804
SELECT + MAX( DISTINCT + 41 ) * + 18, - CASE - 99 WHEN 42 THEN COUNT( * ) ELSE NULL END AS col1
----
738
NULL

skipif mysql # not compatible
query II rowsort label-7804
SELECT + MAX ( DISTINCT + 41 ) * + 18, - CASE - 99 WHEN 42 THEN COUNT ( * ) ELSE NULL END AS col1
----
738
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL - COUNT( * ) + 74 + - - 11 * + - ( 91 ) AS col1
----
-928

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL - COUNT ( * ) + 74 + - - 11 * + - ( 91 ) AS col1
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT ALL + - MAX( ( 74 ) ) * + 14 AS col1
----
-1036

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + - MAX ( ( 74 ) ) * + 14 AS col1
----
-1036

query II rowsort
SELECT - 46 col2, - 18 + - 17 AS col0
----
-46
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL 72 * + + ( + + COUNT( * ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL 72 * + + ( + + COUNT ( * ) ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT DISTINCT + SUM( CASE 31 WHEN + 33 THEN NULL WHEN 52 * - 27 * - 58 * 2 THEN - 96 + + + 85 END ) + - 49 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT + SUM ( CASE 31 WHEN + 33 THEN NULL WHEN 52 * - 27 * - 58 * 2 THEN - 96 + + + 85 END ) + - 49 + 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7810
SELECT ALL - CAST( NULL AS SIGNED ) + - - 23 + + 3 * 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 23 + + 3 * 94
----
NULL

query II rowsort
SELECT ALL 59 AS col1, - 23 * + - 13
----
59
299

query I rowsort
SELECT CASE + CASE 61 WHEN - 88 * + 95 THEN NULL ELSE + 94 END WHEN + 53 * + + 88 / + + 48 + - + 35 THEN + 6 WHEN + 72 - 44 THEN NULL ELSE NULL END - + ( 60 ) * - 12
----
NULL

query I rowsort
SELECT 96 * 27 AS col0
----
2592

query I rowsort
SELECT 32 * + 66
----
2112

query I rowsort
SELECT 3 + - - 34
----
37

query II rowsort
SELECT ALL 24 AS col2, 75
----
24
75

query I rowsort
SELECT - 18 - + 24 + 54 - + ( 58 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT DISTINCT COALESCE ( + - COALESCE ( + 26, 63 ), - MAX( - - 59 ) ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT COALESCE ( + - COALESCE ( + 26, 63 ), - MAX ( - - 59 ) ) AS col1
----
-26

query I rowsort
SELECT ALL + 39 * 0 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7820
SELECT - AVG ( - - CAST( NULL AS SIGNED ) ) - + + MAX( - 38 ) + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT - AVG ( - - CAST ( NULL AS INTEGER ) ) - + + MAX ( - 38 ) + 47
----
NULL

query I rowsort
SELECT ALL + 66 - - 88
----
154

onlyif mysql # aggregate syntax: 
query II rowsort label-7822
SELECT DISTINCT COUNT( * ) AS col2, COUNT( + - 4 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-7822
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( + - 4 ) AS col0
----
1
1

query II rowsort
SELECT - 35, + 44 + - - 60 + - 34 AS col0
----
-35
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT DISTINCT + COUNT( DISTINCT 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + COUNT ( DISTINCT 78 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7825
SELECT ALL + NULLIF ( - 44, - - 0 ) * + + 92 DIV - COUNT( * ) AS col0
----
4048

skipif mysql # not compatible
query I rowsort label-7825
SELECT ALL + NULLIF ( - 44, - - 0 ) * + + 92 / - COUNT ( * ) AS col0
----
4048

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT - 50 * 18 + 98 DIV ( 24 ) col2
----
-896

skipif mysql # not compatible
query I rowsort label-7826
SELECT - 50 * 18 + 98 / ( 24 ) col2
----
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT + ( - 77 ) DIV - + 34
----
2

skipif mysql # not compatible
query I rowsort label-7827
SELECT + ( - 77 ) / - + 34
----
2

query II rowsort
SELECT ALL + - 69 AS col0, - 64
----
-69
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT - COUNT( * ) * - 12 + + - 77
----
-65

skipif mysql # not compatible
query I rowsort label-7829
SELECT - COUNT ( * ) * - 12 + + - 77
----
-65

query I rowsort
SELECT + - 68 - + 94 AS col0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7831
SELECT ALL + + 78 AS col2, - 56 + - 72 + 93 * - CASE - COUNT( * ) WHEN - CAST( 58 AS SIGNED ) THEN - NULLIF ( 14, - + 33 ) / - - CAST( - 5 AS SIGNED ) * + 63 * 11 + + NULLIF ( - CASE 0 WHEN + 7 THEN NULL WHEN + 63 / - 31 * + COUNT( * ) + 45 THEN - 97 ELSE NULL END, - 84 + + 78 ) + 25 / - CAST( NULL AS SIGNED ) END / + MIN( DISTINCT 78 * - 42 ) + + 61
----
78
NULL

skipif mysql # not compatible
query II rowsort label-7831
SELECT ALL + + 78 AS col2, - 56 + - 72 + 93 * - CASE - COUNT ( * ) WHEN - CAST ( 58 AS INTEGER ) THEN - NULLIF ( 14, - + 33 ) / - - CAST ( - 5 AS INTEGER ) * + 63 * 11 + + NULLIF ( - CASE 0 WHEN + 7 THEN NULL WHEN + 63 / - 31 * + COUNT ( * ) + 45 THEN - 97 ELSE NULL END, - 84 + + 78 ) + 25 / - CAST ( NULL AS INTEGER ) END / + MIN ( DISTINCT 78 * - 42 ) + + 61
----
78
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT - 26 * + - CAST( NULL AS SIGNED ) - - - COUNT( ALL - CAST( + 10 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT - 26 * + - CAST ( NULL AS INTEGER ) - - - COUNT ( ALL - CAST ( + 10 AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7833
SELECT + 75, COUNT( * ) AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-7833
SELECT + 75, COUNT ( * ) AS col0
----
75
1

query I rowsort
SELECT ALL - + 1 * + + 72 AS col1
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7835
SELECT DISTINCT + 95, + MAX( 49 ) - 96 DIV - NULLIF ( - + 45, + 40 ) col2
----
95
47

skipif mysql # not compatible
query II rowsort label-7835
SELECT DISTINCT + 95, + MAX ( 49 ) - 96 / - NULLIF ( - + 45, + 40 ) col2
----
95
47

query I rowsort
SELECT ALL - 89 * + 71 + - 71
----
-6390

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT - COUNT( * ) * + 15 + - - 74
----
59

skipif mysql # not compatible
query I rowsort label-7837
SELECT - COUNT ( * ) * + 15 + - - 74
----
59

query II rowsort
SELECT ALL + 56 AS col2, 8 + 0 + + 37 AS col1
----
56
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT - - CAST( 90 AS SIGNED ) / + MAX( DISTINCT ( + + 42 ) ) - 89 - - 49 * - MAX( DISTINCT + 96 ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT - - CAST ( 90 AS INTEGER ) / + MAX ( DISTINCT ( + + 42 ) ) - 89 - - 49 * - MAX ( DISTINCT + 96 ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL ( + 28 ) * + + 63 + + 93 AS col0
----
1857

query I rowsort
SELECT - - 55 + 47 + 92 * 21
----
2034

query I rowsort
SELECT + NULLIF ( + 10, + 40 ) AS col2
----
10

query I rowsort
SELECT ALL + 86 * - 67
----
-5762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT + ( CASE - + 53 WHEN 8 + - MIN( - 56 ) THEN NULL WHEN + COUNT( DISTINCT - - 32 ) * - + 74 THEN NULL ELSE - + COUNT( DISTINCT + - CAST( + + 55 AS SIGNED ) ) + + 61 END )
----
60

skipif mysql # not compatible
query I rowsort label-7844
SELECT + ( CASE - + 53 WHEN 8 + - MIN ( - 56 ) THEN NULL WHEN + COUNT ( DISTINCT - - 32 ) * - + 74 THEN NULL ELSE - + COUNT ( DISTINCT + - CAST ( + + 55 AS INTEGER ) ) + + 61 END )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + 47 * - + 89 * COUNT( * ) col2
----
-4183

skipif mysql # not compatible
query I rowsort label-7845
SELECT + 47 * - + 89 * COUNT ( * ) col2
----
-4183

query I rowsort
SELECT 17 * - + 1 + + 18 + + 7 AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT - 53 * - NULLIF ( 63, + COALESCE ( + 76, + COUNT( * ) * - + 95 * 45 / + 41 + - 62 ) )
----
3339

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT - 53 * - NULLIF ( 63, + COALESCE ( + 76, + COUNT ( * ) * - + 95 * 45 / + 41 + - 62 ) )
----
3339

query I rowsort
SELECT DISTINCT + 87 * + 66 + - 35 + - 75 col2
----
5632

query II rowsort
SELECT ALL + - 44, 20 - - + ( + 98 ) * + - 18 AS col2
----
-44
-1744

query I rowsort
SELECT + 13 + - 33 - - 88
----
68

query I rowsort
SELECT DISTINCT 21 * + - ( + 92 ) + - 67 AS col0
----
-1999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7852
SELECT - ( CAST( - - 92 AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-7852
SELECT - ( CAST ( - - 92 AS INTEGER ) )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT ( - - 64 ) * + 59 + - + COALESCE ( - - 60, MIN( ALL + 45 ) ) + + COUNT( * ) - + 14 * 76 AS col2
----
2653

skipif mysql # not compatible
query I rowsort label-7853
SELECT ( - - 64 ) * + 59 + - + COALESCE ( - - 60, MIN ( ALL + 45 ) ) + + COUNT ( * ) - + 14 * 76 AS col2
----
2653

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7854
SELECT + 78 - + ( - COUNT( * ) ) DIV - MIN( DISTINCT 98 ) col1
----
78

skipif mysql # not compatible
query I rowsort label-7854
SELECT + 78 - + ( - COUNT ( * ) ) / - MIN ( DISTINCT 98 ) col1
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT - CAST( + 62 AS SIGNED ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-7855
SELECT - CAST ( + 62 AS INTEGER ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT ALL 19 * SUM( DISTINCT + + ( + 79 ) ) AS col1
----
1501

skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL 19 * SUM ( DISTINCT + + ( + 79 ) ) AS col1
----
1501

query I rowsort
SELECT - 30 + - 73 - + 28 * 20 + 99 * - 13 AS col0
----
-1950

query II rowsort
SELECT + 42 * - 39, ( + - 62 ) AS col1
----
-1638
-62

query I rowsort
SELECT - ( - - 33 )
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT DISTINCT 65 DIV + - 86 * + 98
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT 65 / + - 86 * + 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT + 77 * - + COUNT( + 36 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7861
SELECT + 77 * - + COUNT ( + 36 ) AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT ALL NULLIF ( - COUNT( * ), - + COUNT( * ) / 76 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL NULLIF ( - COUNT ( * ), - + COUNT ( * ) / 76 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT + 94 + + COUNT( + 12 )
----
95

skipif mysql # not compatible
query I rowsort label-7863
SELECT + 94 + + COUNT ( + 12 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT ALL SUM( DISTINCT - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-7864
SELECT ALL SUM ( DISTINCT - 95 )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7865
SELECT ALL ( - 50 ) AS col0, + MAX( ALL - ( 11 ) ) + - 34 - + - 66 AS col1
----
-50
21

skipif mysql # not compatible
query II rowsort label-7865
SELECT ALL ( - 50 ) AS col0, + MAX ( ALL - ( 11 ) ) + - 34 - + - 66 AS col1
----
-50
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7866
SELECT DISTINCT COUNT( DISTINCT - 69 ) AS col2, + 35 AS col1
----
1
35

skipif mysql # not compatible
query II rowsort label-7866
SELECT DISTINCT COUNT ( DISTINCT - 69 ) AS col2, + 35 AS col1
----
1
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT - ( + 2 ) AS col2, + MAX( DISTINCT - 40 )
----
-2
-40

skipif mysql # not compatible
query II rowsort label-7867
SELECT - ( + 2 ) AS col2, + MAX ( DISTINCT - 40 )
----
-2
-40

query I rowsort
SELECT - ( - 22 ) * - 24 * + + 66
----
-34848

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + COUNT( + 2 ) * - 77 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-7869
SELECT + COUNT ( + 2 ) * - 77 AS col2
----
-77

query II rowsort
SELECT - - 53 * + 34, 98 * + + 66 AS col0
----
1802
6468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7871
SELECT DISTINCT + MIN( DISTINCT + ( NULLIF ( - 27, + 83 ) ) ) / - + 71 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT DISTINCT + MIN ( DISTINCT + ( NULLIF ( - 27, + 83 ) ) ) / - + 71 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT ALL + MAX( - 44 )
----
-44

skipif mysql # not compatible
query I rowsort label-7872
SELECT ALL + MAX ( - 44 )
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT + 49 DIV CAST( 5 AS SIGNED ) + + 0 + + 80 * + 4 + - - 91 + - 12 + - ( - SUM( DISTINCT 16 ) ) AS col0
----
424

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT + 49 / CAST ( 5 AS INTEGER ) + + 0 + + 80 * + 4 + - - 91 + - 12 + - ( - SUM ( DISTINCT 16 ) ) AS col0
----
424

query I rowsort
SELECT ALL - 76 * + - 62 * 88
----
414656

query I rowsort
SELECT ALL - 65 * - + 94 * - CASE WHEN NOT + 36 BETWEEN NULL AND + + 49 THEN + 29 ELSE NULL END + - 33 * ( 11 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7876
SELECT ALL 11 / 14 * - 20 + - 40 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL 11 / 14 * - 20 + - 40 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7877
SELECT + - 48 / - - CAST( NULL AS SIGNED ) - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7877
SELECT + - 48 / - - CAST ( NULL AS INTEGER ) - + 89
----
NULL

query I rowsort
SELECT - - 26 - + + 82 + + 57 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7879
SELECT + - 21 * 44 * + CAST( NULL AS SIGNED ) * - + 97 + + - 52 + - + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT + - 21 * 44 * + CAST ( NULL AS INTEGER ) * - + 97 + + - 52 + - + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + COALESCE ( + - 78, - 32 + + 24, 37 * + + 92 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7881
SELECT DISTINCT COUNT( * ) * + - 88 / - 14 + CAST( NULL AS DECIMAL ) * + + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT COUNT ( * ) * + - 88 / - 14 + CAST ( NULL AS REAL ) * + + 0 AS col2
----
NULL

query I rowsort
SELECT - ( - ( + 39 ) ) - 48
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL + COUNT( DISTINCT 39 )
----
1

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + COUNT ( DISTINCT 39 )
----
1

query I rowsort
SELECT + 61 * + 72 AS col1
----
4392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT ALL - COUNT( * ) DIV + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7885
SELECT ALL - COUNT ( * ) / + COUNT ( * ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7886
SELECT NULLIF ( - COUNT( 65 ), CAST( NULL AS SIGNED ) + - 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-7886
SELECT NULLIF ( - COUNT ( 65 ), CAST ( NULL AS INTEGER ) + - 42 )
----
-1

query I rowsort
SELECT + 55 + - + 9 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT DISTINCT + 68 * - COUNT( - 28 ) - + - COUNT( * ) * ( ( + 83 ) )
----
15

skipif mysql # not compatible
query I rowsort label-7888
SELECT DISTINCT + 68 * - COUNT ( - 28 ) - + - COUNT ( * ) * ( ( + 83 ) )
----
15

query I rowsort
SELECT DISTINCT 78 * + + 72
----
5616

query II rowsort
SELECT ALL 13 AS col1, 55 * - 27
----
13
-1485

query I rowsort
SELECT DISTINCT - 66 * + NULLIF ( - 49, - - 90 + - 90 )
----
3234

query II rowsort
SELECT - 68, + 99 AS col1
----
-68
99

query II rowsort
SELECT - 22, 53 AS col2
----
-22
53

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT ALL 78 AS col2, - MIN( + 40 )
----
78
-40

skipif mysql # not compatible
query II rowsort label-7894
SELECT ALL 78 AS col2, - MIN ( + 40 )
----
78
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT COALESCE ( - 9, - 97, - 38 ) - + 95 + + ( COUNT( * ) ) * + 95
----
-9

skipif mysql # not compatible
query I rowsort label-7895
SELECT COALESCE ( - 9, - 97, - 38 ) - + 95 + + ( COUNT ( * ) ) * + 95
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT MAX( - + 12 ) * + - 40 * + - ( 65 ) + - - ( 96 )
----
-31104

skipif mysql # not compatible
query I rowsort label-7896
SELECT MAX ( - + 12 ) * + - 40 * + - ( 65 ) + - - ( 96 )
----
-31104

query I rowsort
SELECT 37 + 71 AS col0
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-7898
SELECT ALL 47 DIV 20
----
2

skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL 47 / 20
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7899
SELECT DISTINCT 64 + - 50 DIV - 34
----
65

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT 64 + - 50 / - 34
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7900
SELECT - 91 AS col1, - COUNT( * )
----
-91
-1

skipif mysql # not compatible
query II rowsort label-7900
SELECT - 91 AS col1, - COUNT ( * )
----
-91
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7901
SELECT COUNT( - 25 ) DIV - 4 DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT COUNT ( - 25 ) / - 4 / - COUNT ( * ) AS col1
----
0

query I rowsort
SELECT ALL 74 + + 90 * - 29
----
-2536

query I rowsort
SELECT 4 - - 12
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT ALL COUNT( * ) + - 15 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7904
SELECT ALL COUNT ( * ) + - 15 AS col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT DISTINCT 31 * + NULLIF ( + MIN( 28 ), - MAX( + 6 ) )
----
868

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT 31 * + NULLIF ( + MIN ( 28 ), - MAX ( + 6 ) )
----
868

query I rowsort
SELECT DISTINCT 35 + + + 24
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7907
SELECT ALL + COALESCE ( + COALESCE ( MIN( - + 48 ), - 15 * - 48 ), + + 4, - - 48 + CAST( NULL AS SIGNED ) ) + - + 0
----
-48

skipif mysql # not compatible
query I rowsort label-7907
SELECT ALL + COALESCE ( + COALESCE ( MIN ( - + 48 ), - 15 * - 48 ), + + 4, - - 48 + CAST ( NULL AS INTEGER ) ) + - + 0
----
-48

query I rowsort
SELECT 30 * + + 21 + 9
----
639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7909
SELECT DISTINCT - - CAST( 41 AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT - - CAST ( 41 AS INTEGER ) AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7910
SELECT ALL - + 99 AS col1, CAST( + COUNT( * ) AS SIGNED ) + + NULLIF ( + - 5, - ( + MAX( ALL - 18 ) ) * 38 )
----
-99
-4

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL - + 99 AS col1, CAST ( + COUNT ( * ) AS INTEGER ) + + NULLIF ( + - 5, - ( + MAX ( ALL - 18 ) ) * 38 )
----
-99
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT COUNT( * ) * + + 6 + + 94 + ( + 30 )
----
130

skipif mysql # not compatible
query I rowsort label-7911
SELECT COUNT ( * ) * + + 6 + + 94 + ( + 30 )
----
130

query I rowsort
SELECT ALL - - 71 * - + 56 + + 42
----
-3934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7913
SELECT - - 86 * - - 31 - - - SUM( ALL - - CAST( NULL AS SIGNED ) ) * - ( + ( - 70 ) ) + - SUM( - 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7913
SELECT - - 86 * - - 31 - - - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) * - ( + ( - 70 ) ) + - SUM ( - 87 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7914
SELECT + CAST( NULL AS SIGNED ), - 49 * + + AVG ( + + CASE 30 WHEN - - 3 - - - 22 THEN NULL WHEN 16 THEN + 36 END ) / - - 81 + ( + ( - CASE 40 WHEN 82 THEN + + 78 / 70 WHEN 94 THEN NULL ELSE NULL END ) ) * - COUNT( * ) - - - 43 + + 50 + - COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7914
SELECT + CAST ( NULL AS INTEGER ), - 49 * + + AVG ( + + CASE 30 WHEN - - 3 - - - 22 THEN NULL WHEN 16 THEN + 36 END ) / - - 81 + ( + ( - CASE 40 WHEN 82 THEN + + 78 / 70 WHEN 94 THEN NULL ELSE NULL END ) ) * - COUNT ( * ) - - - 43 + + 50 + - COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT 24 * + 40 + 34
----
994

query I rowsort
SELECT 32 * - 52 * 75
----
-124800

onlyif mysql # aggregate syntax: 
query I rowsort label-7917
SELECT ALL - COUNT( * ) * 42 * + + 31
----
-1302

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL - COUNT ( * ) * 42 * + + 31
----
-1302

query I rowsort
SELECT 3 + + 12
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7919
SELECT + COALESCE ( + 16, - 57 ) * - 67 + COUNT( * ) + - + 60 * + CASE - + 47 WHEN COUNT( * ) / + 82 * + + 95 * - - SUM( - 14 ) * - 90 / - 44 + + 95 THEN 0 * 13 WHEN - 50 THEN NULL WHEN - 44 THEN NULL ELSE COALESCE ( - 94, + - 7 - - + 76 ) * + 40 END * - 50 AS col0
----
-11281071

skipif mysql # not compatible
query I rowsort label-7919
SELECT + COALESCE ( + 16, - 57 ) * - 67 + COUNT ( * ) + - + 60 * + CASE - + 47 WHEN COUNT ( * ) / + 82 * + + 95 * - - SUM ( - 14 ) * - 90 / - 44 + + 95 THEN 0 * 13 WHEN - 50 THEN NULL WHEN - 44 THEN NULL ELSE COALESCE ( - 94, + - 7 - - + 76 ) * + 40 END * - 50 AS col0
----
-11281071

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7920
SELECT 22 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7920
SELECT 22 * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT ALL - CASE + + 32 WHEN + 82 / + - CASE CASE + COUNT( * ) WHEN 60 THEN - - 33 + - 33 + - 73 / - + 51 * 14 WHEN + - 85 THEN NULL ELSE NULL END WHEN + ( - - COALESCE ( 85, 93 + - 61, + - 66 ) ) THEN - + COUNT( * ) ELSE - COUNT( * ) END + + + 73 / - 30 THEN - 11 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL - CASE + + 32 WHEN + 82 / + - CASE CASE + COUNT ( * ) WHEN 60 THEN - - 33 + - 33 + - 73 / - + 51 * 14 WHEN + - 85 THEN NULL ELSE NULL END WHEN + ( - - COALESCE ( 85, 93 + - 61, + - 66 ) ) THEN - + COUNT ( * ) ELSE - COUNT ( * ) END + + + 73 / - 30 THEN - 11 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7922
SELECT - 89 * + 98 * + + CAST( NULL AS SIGNED ) * + COUNT( * ) + + + 99 / - 24 + + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT - 89 * + 98 * + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + + 99 / - 24 + + 53 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7923
SELECT DISTINCT - MAX( - 4 ), 47 col2
----
4
47

skipif mysql # not compatible
query II rowsort label-7923
SELECT DISTINCT - MAX ( - 4 ), 47 col2
----
4
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT COUNT( * ) + + 44 AS col0
----
45

skipif mysql # not compatible
query I rowsort label-7924
SELECT COUNT ( * ) + + 44 AS col0
----
45

query I rowsort
SELECT ALL + 80 + + 3 AS col0
----
83

query I rowsort
SELECT CASE - 84 WHEN - 0 + + - 87 THEN + 50 ELSE + 86 END + - 6 AS col2
----
80

query I rowsort
SELECT ALL 6 * - 86
----
-516

query I rowsort
SELECT 47 * 55 AS col0
----
2585

query I rowsort
SELECT 82 + - + 14 AS col1
----
68

query I rowsort
SELECT ALL 23 + - 95 + 19 * + - 13
----
-319

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL COUNT( + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL COUNT ( + + 32 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7932
SELECT ALL - 18 * - + 19, COUNT( * ) AS col0
----
342
1

skipif mysql # not compatible
query II rowsort label-7932
SELECT ALL - 18 * - + 19, COUNT ( * ) AS col0
----
342
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT DISTINCT + 73 + + + MIN( + 29 ) * - 55
----
-1522

skipif mysql # not compatible
query I rowsort label-7933
SELECT DISTINCT + 73 + + + MIN ( + 29 ) * - 55
----
-1522

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7934
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT ALL 24 + 93 AS col0
----
117

query I rowsort
SELECT 98 * 41
----
4018

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT COUNT( * ) + 10 + 61 * - 31 + + - 11
----
-1891

skipif mysql # not compatible
query I rowsort label-7937
SELECT COUNT ( * ) + 10 + 61 * - 31 + + - 11
----
-1891

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT 88 + 97 + + 7 DIV 70
----
185

skipif mysql # not compatible
query I rowsort label-7938
SELECT 88 + 97 + + 7 / 70
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT 21 * 46 * + COUNT( * ) * - 43 AS col2
----
-41538

skipif mysql # not compatible
query I rowsort label-7939
SELECT 21 * 46 * + COUNT ( * ) * - 43 AS col2
----
-41538

query I rowsort
SELECT ALL - ( + 4 ) AS col2
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7941
SELECT DISTINCT COUNT( * ) * - 81 * - - CAST( 7 AS SIGNED ) AS col0, NULLIF ( + 42, - ( 12 ) ) * 45 AS col0
----
-567
1890

skipif mysql # not compatible
query II rowsort label-7941
SELECT DISTINCT COUNT ( * ) * - 81 * - - CAST ( 7 AS INTEGER ) AS col0, NULLIF ( + 42, - ( 12 ) ) * 45 AS col0
----
-567
1890

query I rowsort
SELECT DISTINCT + 5 * - 53 * 46
----
-12190

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT 36 / 31 + - MIN( ALL + + 56 ) * CASE 87 WHEN 31 THEN NULL WHEN 76 THEN NULL WHEN - 29 + 40 + + - 7 THEN - 7 END * - COUNT( * ) + COUNT( - - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT 36 / 31 + - MIN ( ALL + + 56 ) * CASE 87 WHEN 31 THEN NULL WHEN 76 THEN NULL WHEN - 29 + 40 + + - 7 THEN - 7 END * - COUNT ( * ) + COUNT ( - - 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + 46 * - CASE 34 WHEN COALESCE ( 34, - 67 - COUNT( * ), - NULLIF ( - 22, + 81 - - 64 ) ) THEN NULL ELSE + + 50 - - 46 + - + 87 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7944
SELECT + 46 * - CASE 34 WHEN COALESCE ( 34, - 67 - COUNT ( * ), - NULLIF ( - 22, + 81 - - 64 ) ) THEN NULL ELSE + + 50 - - 46 + - + 87 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT + COUNT( 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7945
SELECT + COUNT ( 60 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT MIN( + + 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-7946
SELECT MIN ( + + 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT 75 * - - 99 + - NULLIF ( + COUNT( * ), + - 92 + 80 ) AS col0
----
7424

skipif mysql # not compatible
query I rowsort label-7947
SELECT 75 * - - 99 + - NULLIF ( + COUNT ( * ), + - 92 + 80 ) AS col0
----
7424

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT + 2 DIV 37 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7948
SELECT + 2 / 37 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT ALL + SUM( + 31 ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-7949
SELECT ALL + SUM ( + 31 ) AS col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-7950
SELECT DISTINCT 85 * - - 87 + + 57, - COUNT( * ) * COALESCE ( - - 94, - 91 ) AS col2
----
7452
-94

skipif mysql # not compatible
query II rowsort label-7950
SELECT DISTINCT 85 * - - 87 + + 57, - COUNT ( * ) * COALESCE ( - - 94, - 91 ) AS col2
----
7452
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7951
SELECT ALL + MAX( - CAST( 74 AS SIGNED ) )
----
-74

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL + MAX ( - CAST ( 74 AS INTEGER ) )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + CASE + 16 WHEN COUNT( * ) * + + 75 + + 46 + - - 6 * + COUNT( ALL 78 ) + - 43 * 27 THEN + 0 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT + CASE + 16 WHEN COUNT ( * ) * + + 75 + + 46 + - - 6 * + COUNT ( ALL 78 ) + - 43 * 27 THEN + 0 END
----
NULL

query I rowsort
SELECT + 59 * + - 53 * + 26 * + 34 AS col0
----
-2764268

query I rowsort
SELECT DISTINCT + 94 + - - 6 AS col1
----
100

query I rowsort
SELECT DISTINCT - 31 + 66
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7956
SELECT - COUNT( * ) * 40 DIV + NULLIF ( 32, - 88 )
----
-1

skipif mysql # not compatible
query I rowsort label-7956
SELECT - COUNT ( * ) * 40 / + NULLIF ( 32, - 88 )
----
-1

query I rowsort
SELECT DISTINCT ( - ( + 77 ) )
----
-77

query I rowsort
SELECT ALL ( - + 73 ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT - ( 34 ) DIV + + 36 + - 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7959
SELECT - ( 34 ) / + + 36 + - 92 AS col0
----
-92

query I rowsort
SELECT ALL + 77 + 21 + + 39
----
137

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7961
SELECT DISTINCT NULLIF ( 47, + + CAST( NULL AS DECIMAL ) + - + 80 * - + COUNT( * ) ) + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT NULLIF ( 47, + + CAST ( NULL AS REAL ) + - + 80 * - + COUNT ( * ) ) + COUNT ( * )
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT - + 63 - + MAX( + 47 ) DIV + 7 + + + 85 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-7962
SELECT - + 63 - + MAX ( + 47 ) / + 7 + + + 85 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT - - CASE + 39 WHEN - + CASE 43 WHEN 67 THEN + MIN( DISTINCT - 7 ) END THEN NULL ELSE 40 END
----
40

skipif mysql # not compatible
query I rowsort label-7963
SELECT - - CASE + 39 WHEN - + CASE 43 WHEN 67 THEN + MIN ( DISTINCT - 7 ) END THEN NULL ELSE 40 END
----
40

query I rowsort
SELECT - - ( + 14 ) + + - ( 33 ) + + 19 AS col2
----
0

query I rowsort
SELECT + - 83 * - + 76
----
6308

onlyif mysql # DIV for integer division: 
query I rowsort label-7966
SELECT ALL - 77 DIV + 52 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - 77 / + 52 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7967
SELECT - + 14 + - COUNT( NULLIF ( - 0, ( ( 33 ) ) ) ) + + 99 DIV + + 44 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-7967
SELECT - + 14 + - COUNT ( NULLIF ( - 0, ( ( 33 ) ) ) ) + + 99 / + + 44 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT - - 39 + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-7968
SELECT - - 39 + - COUNT ( * )
----
38

query II rowsort
SELECT ALL - 28 - - 25 * 30, ( - 35 ) + - - 59 AS col2
----
722
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7970
SELECT - NULLIF ( 17, 45 ) DIV - ( - ( COUNT( * ) ) ) - 23
----
-40

skipif mysql # not compatible
query I rowsort label-7970
SELECT - NULLIF ( 17, 45 ) / - ( - ( COUNT ( * ) ) ) - 23
----
-40

query I rowsort
SELECT DISTINCT + - 62 * + 47 * + 22 AS col1
----
-64108

query I rowsort
SELECT ALL - - 99 - - 9
----
108

query I rowsort
SELECT + 68 + - 59 AS col0
----
9

query I rowsort
SELECT - - 87 + - - 4 AS col0
----
91

query I rowsort
SELECT - - 92 * - 78 - - 32 col1
----
-7144

query I rowsort
SELECT + 44 * - 81 AS col0
----
-3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT DISTINCT CAST( + 72 AS SIGNED ) * - 46
----
-3312

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT CAST ( + 72 AS INTEGER ) * - 46
----
-3312

query I rowsort
SELECT DISTINCT + 41 * - 9 * - + 78 + - 48
----
28734

query I rowsort
SELECT ALL 90 * - 93
----
-8370

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT + MIN( DISTINCT - 76 ) * 79 col0
----
-6004

skipif mysql # not compatible
query I rowsort label-7980
SELECT + MIN ( DISTINCT - 76 ) * 79 col0
----
-6004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT ALL + ( - 20 ) * + 68 + - 16 + - COUNT( * ) * - COUNT( * ) / - NULLIF ( - CAST( NULL AS SIGNED ), - ( - 61 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL + ( - 20 ) * + 68 + - 16 + - COUNT ( * ) * - COUNT ( * ) / - NULLIF ( - CAST ( NULL AS INTEGER ), - ( - 61 ) )
----
NULL

query I rowsort
SELECT + 60 + 17 * - 9
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7983
SELECT + 36 + - + 85 DIV 97 * + + 78 * - MIN( ALL 5 ) col0
----
36

skipif mysql # not compatible
query I rowsort label-7983
SELECT + 36 + - + 85 / 97 * + + 78 * - MIN ( ALL 5 ) col0
----
36

query I rowsort
SELECT DISTINCT 18 * + - 13 + + + 4
----
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-7985
SELECT - 18 DIV - 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7985
SELECT - 18 / - 78 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL 24 * COUNT( * ) + - 17
----
7

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL 24 * COUNT ( * ) + - 17
----
7

query II rowsort
SELECT DISTINCT + 89, + 10 AS col0
----
89
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7988
SELECT DISTINCT + CASE - - 68 WHEN - - 77 * - + 65 / - - COUNT( * ) + 85 + + 0 THEN + CAST( MIN( DISTINCT + 52 ) AS SIGNED ) WHEN + 30 + 91 THEN NULL END * + + COALESCE ( - + 36, + - 99 ) + + + ( - 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + CASE - - 68 WHEN - - 77 * - + 65 / - - COUNT ( * ) + 85 + + 0 THEN + CAST ( MIN ( DISTINCT + 52 ) AS INTEGER ) WHEN + 30 + 91 THEN NULL END * + + COALESCE ( - + 36, + - 99 ) + + + ( - 31 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7989
SELECT DISTINCT + 5, CASE + 82 WHEN - 8 THEN - 51 * + 8 + - 29 WHEN 94 + - 95 THEN 83 + - CASE + + 34 WHEN - - COUNT( * ) + - COUNT( * ) THEN 56 WHEN + ( + 59 ) THEN 65 ELSE NULL END ELSE - 70 END * - 40 * + COUNT( * ) AS col0
----
5
2800

skipif mysql # not compatible
query II rowsort label-7989
SELECT DISTINCT + 5, CASE + 82 WHEN - 8 THEN - 51 * + 8 + - 29 WHEN 94 + - 95 THEN 83 + - CASE + + 34 WHEN - - COUNT ( * ) + - COUNT ( * ) THEN 56 WHEN + ( + 59 ) THEN 65 ELSE NULL END ELSE - 70 END * - 40 * + COUNT ( * ) AS col0
----
5
2800

query I rowsort
SELECT - ( ( 67 ) ) + + - 33 * - 69 * 88
----
200309

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7991
SELECT + CASE + 44 WHEN - ( - AVG ( - 76 ) ) * + - 17 / + CAST( - 95 AS DECIMAL ) THEN + 93 END + + 5 * - - 95 + - + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT + CASE + 44 WHEN - ( - AVG ( - 76 ) ) * + - 17 / + CAST ( - 95 AS REAL ) THEN + 93 END + + 5 * - - 95 + - + 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7992
SELECT - 39 AS col1, - MAX( ALL + + 35 )
----
-39
-35

skipif mysql # not compatible
query II rowsort label-7992
SELECT - 39 AS col1, - MAX ( ALL + + 35 )
----
-39
-35

query I rowsort
SELECT ALL NULLIF ( - 99, + COALESCE ( CASE - 63 WHEN + 92 THEN + 22 WHEN + 68 THEN 36 + 2 ELSE NULL END, + 51 ) )
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT + 46 + - 23 DIV + + 86
----
46

skipif mysql # not compatible
query I rowsort label-7994
SELECT + 46 + - 23 / + + 86
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT - + COUNT( * ) + - 83 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-7995
SELECT - + COUNT ( * ) + - 83 AS col2
----
-84

query I rowsort
SELECT ALL + 48 * + 22 * 50 * + 76 * - + 88 - 99 AS col1
----
-353126499

query I rowsort
SELECT - 12 + 33
----
21

query II rowsort
SELECT DISTINCT 23, - 32 AS col0
----
23
-32

query I rowsort
SELECT DISTINCT NULLIF ( 24, + 99 * - + 92 ) AS col1
----
24

query I rowsort
SELECT - 39 + 95
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - + ( MIN( 57 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-8001
SELECT - + ( MIN ( 57 ) ) AS col2
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8002
SELECT ALL - - MIN( - ( 80 ) ) * - - 20 col0, - 74 * + 37 - + + 48 + + 16 * - - 18 * - 48
----
-1600
-16610

skipif mysql # not compatible
query II rowsort label-8002
SELECT ALL - - MIN ( - ( 80 ) ) * - - 20 col0, - 74 * + 37 - + + 48 + + 16 * - - 18 * - 48
----
-1600
-16610

query I rowsort
SELECT + ( + 5 ) * - 32
----
-160

query I rowsort
SELECT 19 + + 13 * + 96
----
1267

onlyif mysql # aggregate syntax: 
query I rowsort label-8005
SELECT ALL - SUM( DISTINCT + - 91 ) * - 79 AS col0
----
-7189

skipif mysql # not compatible
query I rowsort label-8005
SELECT ALL - SUM ( DISTINCT + - 91 ) * - 79 AS col0
----
-7189

onlyif mysql # DIV for integer division: 
query I rowsort label-8006
SELECT 7 DIV 78
----
0

skipif mysql # not compatible
query I rowsort label-8006
SELECT 7 / 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8007
SELECT 50 DIV - 10 + + - COALESCE ( + COUNT( * ), SUM( ALL + 61 ) ) * - 9 + - 12 * - ( - 80 ) AS col0
----
-956

skipif mysql # not compatible
query I rowsort label-8007
SELECT 50 / - 10 + + - COALESCE ( + COUNT ( * ), SUM ( ALL + 61 ) ) * - 9 + - 12 * - ( - 80 ) AS col0
----
-956

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT ALL + - ( + - 89 ) * NULLIF ( - 91, COUNT( * ) + - 10 ) + - SUM( + ( + 41 ) ) - - 7 col0
----
-8133

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + - ( + - 89 ) * NULLIF ( - 91, COUNT ( * ) + - 10 ) + - SUM ( + ( + 41 ) ) - - 7 col0
----
-8133

onlyif mysql # aggregate syntax: 
query I rowsort label-8009
SELECT - MIN( + - 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8009
SELECT - MIN ( + - 21 ) AS col1
----
21

query II rowsort
SELECT ALL 81 AS col2, + 86
----
81
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8011
SELECT COUNT( * ) DIV + 10 * 99 + + 49 + - + 90 + - + 92 col2
----
-133

skipif mysql # not compatible
query I rowsort label-8011
SELECT COUNT ( * ) / + 10 * 99 + + 49 + - + 90 + - + 92 col2
----
-133

onlyif mysql # aggregate syntax: 
query II rowsort label-8012
SELECT ALL - CASE + 19 WHEN + COALESCE ( - - COUNT( * ), - - 63 * + 85 / - 74 + + 17 - COUNT( * ) * + - 3 / + 79 ) THEN - - COUNT( * ) ELSE - 5 END AS col0, - 1
----
5
-1

skipif mysql # not compatible
query II rowsort label-8012
SELECT ALL - CASE + 19 WHEN + COALESCE ( - - COUNT ( * ), - - 63 * + 85 / - 74 + + 17 - COUNT ( * ) * + - 3 / + 79 ) THEN - - COUNT ( * ) ELSE - 5 END AS col0, - 1
----
5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8013
SELECT ALL - 94 + - - 13 * - + 80 * - + 62 * 66 * + COUNT( * ) AS col0
----
4255586

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL - 94 + - - 13 * - + 80 * - + 62 * 66 * + COUNT ( * ) AS col0
----
4255586

query I rowsort
SELECT DISTINCT 89 + 10
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT 41 + - - 46 DIV 39 * 47 col1
----
88

skipif mysql # not compatible
query I rowsort label-8015
SELECT 41 + - - 46 / 39 * 47 col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT + 39 * - COUNT( * ) + - 32 * + - 94 * + COALESCE ( - COUNT( * ), + + 17, - 12, + 64 ) + - ( - 54 ) col2
----
-2993

skipif mysql # not compatible
query I rowsort label-8016
SELECT + 39 * - COUNT ( * ) + - 32 * + - 94 * + COALESCE ( - COUNT ( * ), + + 17, - 12, + 64 ) + - ( - 54 ) col2
----
-2993

query I rowsort
SELECT ALL 83 + 86 AS col1
----
169

query I rowsort
SELECT ALL 0 * + 27 AS col0
----
0

query I rowsort
SELECT DISTINCT - 76 + + + 84 + + 20 * 24
----
488

query I rowsort
SELECT DISTINCT 35 * - 32 col2
----
-1120

query I rowsort
SELECT ALL 47 * + 67
----
3149

query I rowsort
SELECT DISTINCT 82 * + ( + 47 ) * + 14
----
53956

onlyif mysql # aggregate syntax: 
query I rowsort label-8023
SELECT COUNT( * ) * 10 * + ( - CASE - 2 WHEN - 7 * 35 + + AVG ( 49 ) THEN 24 * - 10 WHEN + 42 THEN - 77 / - + 36 END ) * - - ( - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8023
SELECT COUNT ( * ) * 10 * + ( - CASE - 2 WHEN - 7 * 35 + + AVG ( 49 ) THEN 24 * - 10 WHEN + 42 THEN - 77 / - + 36 END ) * - - ( - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL 13 - + 85 + 79 AS col0
----
7

query I rowsort
SELECT ALL 57 * - 2 AS col1
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT - COUNT( * ) DIV + 9 * - 35 col0
----
0

skipif mysql # not compatible
query I rowsort label-8026
SELECT - COUNT ( * ) / + 9 * - 35 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT ALL + 11 DIV 79 * + 86 * 37 * + + 87 * - 20 * - 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL + 11 / 79 * + 86 * 37 * + + 87 * - 20 * - 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL - MIN( - 5 ) AS col0, + 42
----
5
42

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL - MIN ( - 5 ) AS col0, + 42
----
5
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT - + NULLIF ( - COUNT( * ), + 0 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8029
SELECT - + NULLIF ( - COUNT ( * ), + 0 ) AS col2
----
1

query I rowsort
SELECT ALL - - 12 * - 17 AS col1
----
-204

query I rowsort
SELECT - 76 + - 57 - - 82 * 85
----
6837

onlyif mysql # aggregate syntax: 
query II rowsort label-8032
SELECT + 50 * + COUNT( * ) + - 53 AS col2, 7
----
-3
7

skipif mysql # not compatible
query II rowsort label-8032
SELECT + 50 * + COUNT ( * ) + - 53 AS col2, 7
----
-3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL + 76 * - COUNT( + 24 ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL + 76 * - COUNT ( + 24 ) col2
----
-76

query I rowsort
SELECT 44 + 88 col0
----
132

query I rowsort
SELECT DISTINCT - - 70 * - 10 * + 3
----
-2100

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT ALL 87 + - - 47 + - 14 DIV - - 89 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL 87 + - - 47 + - 14 / - - 89 AS col2
----
134

query I rowsort
SELECT DISTINCT - 93 + - - ( - 16 ) AS col1
----
-109

query II rowsort
SELECT ALL + - 57 + - 21, + 6 col0
----
-78
6

query I rowsort
SELECT + NULLIF ( + 63, - 66 ) + - 34 * 37 * + 48 AS col1
----
-60321

query I rowsort
SELECT ALL + ( + NULLIF ( - + 17, - 66 ) ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-8041
SELECT ALL - ( + - 7 ) + - ( - 95 ) + - 99 AS col2, COUNT( * ) AS col2
----
3
1

skipif mysql # not compatible
query II rowsort label-8041
SELECT ALL - ( + - 7 ) + - ( - 95 ) + - 99 AS col2, COUNT ( * ) AS col2
----
3
1

query I rowsort
SELECT 14 + - + 68 AS col0
----
-54

query I rowsort
SELECT ALL - 49 + 25 * - 43 + - 76
----
-1200

query III rowsort
SELECT DISTINCT - ( 73 ) + - 96 AS col2, 47, 30 AS col2
----
-169
47
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT ALL - 62 + + 18 - - - 7 + + 71 + 53 + NULLIF ( 0, SUM( DISTINCT 98 ) + - COUNT( * ) * - ( + 14 ) * + - 49 + + + 92 + - ( + COUNT( * ) ) ) * 82 - 6 + ( 41 ) + + 72 + - 73 * + 8 * + CAST( NULL AS SIGNED ) * + 45 * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - 62 + + 18 - - - 7 + + 71 + 53 + NULLIF ( 0, SUM ( DISTINCT 98 ) + - COUNT ( * ) * - ( + 14 ) * + - 49 + + + 92 + - ( + COUNT ( * ) ) ) * 82 - 6 + ( 41 ) + + 72 + - 73 * + 8 * + CAST ( NULL AS INTEGER ) * + 45 * + 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8046
SELECT 26 * - COALESCE ( 20, + - ( 80 ) DIV + 48 * CASE - - 88 WHEN + + 54 * + 81 * 36 * 66 THEN - - CAST( NULL AS SIGNED ) END * + ( - - 60 ) + + 77, - 41 ) + + 41
----
-479

skipif mysql # not compatible
query I rowsort label-8046
SELECT 26 * - COALESCE ( 20, + - ( 80 ) / + 48 * CASE - - 88 WHEN + + 54 * + 81 * 36 * 66 THEN - - CAST ( NULL AS INTEGER ) END * + ( - - 60 ) + + 77, - 41 ) + + 41
----
-479

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT 67 * + MAX( DISTINCT - + 64 ) AS col1
----
-4288

skipif mysql # not compatible
query I rowsort label-8047
SELECT 67 * + MAX ( DISTINCT - + 64 ) AS col1
----
-4288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8048
SELECT COUNT( * ) AS col0, - 20 + + 0 * + 45 * + - COUNT( * ) * NULLIF ( 4, 87 ) + + 44 + 21 + + CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8048
SELECT COUNT ( * ) AS col0, - 20 + + 0 * + 45 * + - COUNT ( * ) * NULLIF ( 4, 87 ) + + 44 + 21 + + CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8049
SELECT 26 * + 61 - CAST( NULL AS SIGNED ) + + 59 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT 26 * + 61 - CAST ( NULL AS INTEGER ) + + 59 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT ALL + ( SUM( - 1 ) ) + - + 21 + + + 45 * + + 78 + - 7 AS col2
----
3481

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + ( SUM ( - 1 ) ) + - + 21 + + + 45 * + + 78 + - 7 AS col2
----
3481

query I rowsort
SELECT 57 * + 57 AS col2
----
3249

query I rowsort
SELECT ALL - ( 78 ) AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8053
SELECT ALL - 63 - - ( 66 ) + 98 - + 5 * + 27 * - 53 + 68 * 31 * + CASE - + NULLIF ( - COALESCE ( 83, - 93 * + CAST( - CAST( + + 68 AS SIGNED ) AS SIGNED ) + + + 99 - - + 44, - 18, + 25 ), - + CAST( NULL AS SIGNED ) / - COUNT( * ) ) WHEN NULLIF ( 73, COUNT( * ) * 21 ) * - COUNT( * ) THEN + 86 + - COALESCE ( 89 - + 53 * - 87, 20, - 94 * - 56 ) / 4 WHEN - ( + 14 ) THEN NULL END * MIN( 90 + + 30 * 11 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - 63 - - ( 66 ) + 98 - + 5 * + 27 * - 53 + 68 * 31 * + CASE - + NULLIF ( - COALESCE ( 83, - 93 * + CAST ( - CAST ( + + 68 AS INTEGER ) AS INTEGER ) + + + 99 - - + 44, - 18, + 25 ), - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) ) WHEN NULLIF ( 73, COUNT ( * ) * 21 ) * - COUNT ( * ) THEN + 86 + - COALESCE ( 89 - + 53 * - 87, 20, - 94 * - 56 ) / 4 WHEN - ( + 14 ) THEN NULL END * MIN ( 90 + + 30 * 11 ) AS col1
----
NULL

query I rowsort
SELECT 66 + - + 97 + - 42 * + 51
----
-2173

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + 72 * - + ( ( - + COUNT( * ) ) ) + + 41 + + 48 * - + 27
----
-1183

skipif mysql # not compatible
query I rowsort label-8055
SELECT + 72 * - + ( ( - + COUNT ( * ) ) ) + + 41 + + 48 * - + 27
----
-1183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8056
SELECT ALL - NULLIF ( + + CAST( - + 57 AS SIGNED ), + 46 * + - 41 )
----
57

skipif mysql # not compatible
query I rowsort label-8056
SELECT ALL - NULLIF ( + + CAST ( - + 57 AS INTEGER ), + 46 * + - 41 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT DISTINCT - 72 * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-8057
SELECT DISTINCT - 72 * - COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8058
SELECT ALL - ( + CAST( 64 AS SIGNED ) ) AS col1, + 88 + 43 + - 49 DIV + + 35
----
-64
130

skipif mysql # not compatible
query II rowsort label-8058
SELECT ALL - ( + CAST ( 64 AS INTEGER ) ) AS col1, + 88 + 43 + - 49 / + + 35
----
-64
130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8059
SELECT 56 * CAST( + 2 AS SIGNED ) AS col0
----
112

skipif mysql # not compatible
query I rowsort label-8059
SELECT 56 * CAST ( + 2 AS INTEGER ) AS col0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8060
SELECT 91 * - 52 * CAST( NULL AS SIGNED ), ( + 14 ) AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-8060
SELECT 91 * - 52 * CAST ( NULL AS INTEGER ), ( + 14 ) AS col0
----
NULL
14

query I rowsort
SELECT 62 + 37 + + - 68 * 72 AS col0
----
-4797

query I rowsort
SELECT DISTINCT - 45 - + + 87 AS col0
----
-132

query I rowsort
SELECT 72 + - 98 col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8064
SELECT 81 * + 83 * - MAX( - CAST( - 27 AS SIGNED ) ) AS col2
----
-181521

skipif mysql # not compatible
query I rowsort label-8064
SELECT 81 * + 83 * - MAX ( - CAST ( - 27 AS INTEGER ) ) AS col2
----
-181521

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT CAST( NULL AS SIGNED ) * - - 6 + - + 99 + - + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8065
SELECT CAST ( NULL AS INTEGER ) * - - 6 + - + 99 + - + 71 AS col0
----
NULL

query I rowsort
SELECT ALL - + ( - - 97 )
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8067
SELECT + MAX( ALL + - 77 ) * + 35 * - 12 * COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) + - 33 DIV MIN( 95 ) AS col1
----
-32340

skipif mysql # not compatible
query I rowsort label-8067
SELECT + MAX ( ALL + - 77 ) * + 35 * - 12 * COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) + - 33 / MIN ( 95 ) AS col1
----
-32340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8068
SELECT ALL - - CAST( + - 60 AS SIGNED ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - - CAST ( + - 60 AS INTEGER ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT ALL - 71 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - 71 / 98
----
0

query I rowsort
SELECT - 8 + ( + + 86 ) * + 93 * + 38 AS col1
----
303916

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL COUNT( * ) * - 52 * 49
----
-2548

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL COUNT ( * ) * - 52 * 49
----
-2548

onlyif mysql # DIV for integer division: 
query II rowsort label-8072
SELECT ALL 63 AS col0, 48 DIV ( 73 ) col0
----
63
0

skipif mysql # not compatible
query II rowsort label-8072
SELECT ALL 63 AS col0, 48 / ( 73 ) col0
----
63
0

query I rowsort
SELECT - 21 + - 65 AS col1
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8074
SELECT - - COUNT( * ) col0, - ( - MAX( ALL - 67 ) ) + - 30 DIV 58 AS col2
----
1
-67

skipif mysql # not compatible
query II rowsort label-8074
SELECT - - COUNT ( * ) col0, - ( - MAX ( ALL - 67 ) ) + - 30 / 58 AS col2
----
1
-67

query I rowsort
SELECT NULLIF ( + 68, + + 45 * - 42 - - 92 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT 80 DIV 26 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8076
SELECT 80 / 26 AS col1
----
3

query I rowsort
SELECT ALL 4 + + - 61 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT - COUNT( DISTINCT + 80 ) * + + 28 + + ( + ( - 78 ) ) AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-8078
SELECT - COUNT ( DISTINCT + 80 ) * + + 28 + + ( + ( - 78 ) ) AS col1
----
-106

query I rowsort
SELECT + + 94 + 2 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL CASE + 47 WHEN - - ( - COUNT( * ) ) / + 70 + COUNT( * ) + + 85 THEN + + 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL CASE + 47 WHEN - - ( - COUNT ( * ) ) / + 70 + COUNT ( * ) + + 85 THEN + + 24 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8081
SELECT + - COUNT( * ) + ( - - ( 33 ) ) + - + ( + 43 ) - + + ( + 5 ) * + 72 + + 7 - - + 66 / - - CAST( NULL AS SIGNED ) + - ( - + MAX( - + 34 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8081
SELECT + - COUNT ( * ) + ( - - ( 33 ) ) + - + ( + 43 ) - + + ( + 5 ) * + 72 + + 7 - - + 66 / - - CAST ( NULL AS INTEGER ) + - ( - + MAX ( - + 34 ) ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8082
SELECT ALL - 14 + 74 DIV NULLIF ( COUNT( * ), + 2 )
----
60

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - 14 + 74 / NULLIF ( COUNT ( * ), + 2 )
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT + - 50 DIV + 91 * - 44 + 28 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-8083
SELECT + - 50 / + 91 * - 44 + 28 AS col2
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8084
SELECT ALL + 44 + + + CASE WHEN NOT - COUNT( * ) IN ( 45 ) THEN + 8 DIV + 48 END + - + 88 + 73 * - + 83
----
-6103

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + 44 + + + CASE WHEN NOT - COUNT ( * ) IN ( 45 ) THEN + 8 / + 48 END + - + 88 + 73 * - + 83
----
-6103

query I rowsort
SELECT DISTINCT 75 + + + 71 * - - 45
----
3270

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT COUNT( - 31 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8086
SELECT COUNT ( - 31 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8087
SELECT ALL - CASE 47 WHEN - + ( 97 ) + 77 * - - COUNT( ALL - 69 ) + - 67 * + CAST( - - 99 AS SIGNED ) THEN - 34 WHEN - - 60 THEN NULL ELSE + - 98 END + + 29 AS col0
----
127

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - CASE 47 WHEN - + ( 97 ) + 77 * - - COUNT ( ALL - 69 ) + - 67 * + CAST ( - - 99 AS INTEGER ) THEN - 34 WHEN - - 60 THEN NULL ELSE + - 98 END + + 29 AS col0
----
127

query I rowsort
SELECT DISTINCT - 6 + - + 55 + 96 * - 15 + - 18 + - - 40 AS col1
----
-1479

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT + ( - 43 ) DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT + ( - 43 ) / - + 78
----
0

query I rowsort
SELECT ( - 92 ) col2
----
-92

query II rowsort
SELECT DISTINCT - 57, 76 * + - 90 AS col2
----
-57
-6840

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT ALL COUNT( * ) + - 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8092
SELECT ALL COUNT ( * ) + - 71 AS col2
----
-70

query I rowsort
SELECT + 90 * - 40
----
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT CASE WHEN + 38 NOT BETWEEN + COUNT( * ) / - 62 * 11 AND 71 THEN - NULLIF ( 28, - 64 / + 24 * + - 50 ) + 11 + + ( + + CASE 10 WHEN - - COALESCE ( 69, + + 64 ) + + - CAST( - + 17 AS SIGNED ) THEN - CASE - - 8 WHEN - 4 THEN - NULLIF ( + 34, + ( + - 89 ) ) * + CASE - CASE - AVG ( ALL - 40 ) WHEN 66 / 54 THEN + CAST( NULL AS SIGNED ) + - 59 WHEN - COALESCE ( - 47, - COUNT( * ) / - 90 + 79 * + 91, + 40 ) THEN + 6 WHEN 5 * 73 THEN 35 END WHEN - SUM( CAST( + 47 AS SIGNED ) ) THEN - 84 - - 99 ELSE NULL END * 88 ELSE NULL END ELSE NULLIF ( 60, + CAST( NULL AS SIGNED ) ) * 83 END ) END + 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT CASE WHEN + 38 NOT BETWEEN + COUNT ( * ) / - 62 * 11 AND 71 THEN - NULLIF ( 28, - 64 / + 24 * + - 50 ) + 11 + + ( + + CASE 10 WHEN - - COALESCE ( 69, + + 64 ) + + - CAST ( - + 17 AS INTEGER ) THEN - CASE - - 8 WHEN - 4 THEN - NULLIF ( + 34, + ( + - 89 ) ) * + CASE - CASE - AVG ( ALL - 40 ) WHEN 66 / 54 THEN + CAST ( NULL AS INTEGER ) + - 59 WHEN - COALESCE ( - 47, - COUNT ( * ) / - 90 + 79 * + 91, + 40 ) THEN + 6 WHEN 5 * 73 THEN 35 END WHEN - SUM ( CAST ( + 47 AS INTEGER ) ) THEN - 84 - - 99 ELSE NULL END * 88 ELSE NULL END ELSE NULLIF ( 60, + CAST ( NULL AS INTEGER ) ) * 83 END ) END + 28 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8095
SELECT - CASE ( + + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) ) WHEN + + CASE - + ( - 80 ) WHEN + - AVG ( ALL - - 28 ) * - 84 + + 31 + - - 7 THEN NULL ELSE - COUNT( * ) END * MAX( ALL + 14 ) THEN NULL WHEN + + 94 THEN - + 36 END AS col0, 85 AS col1
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8095
SELECT - CASE ( + + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ) WHEN + + CASE - + ( - 80 ) WHEN + - AVG ( ALL - - 28 ) * - 84 + + 31 + - - 7 THEN NULL ELSE - COUNT ( * ) END * MAX ( ALL + 14 ) THEN NULL WHEN + + 94 THEN - + 36 END AS col0, 85 AS col1
----
NULL
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT - COALESCE ( 48, + COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-8096
SELECT - COALESCE ( 48, + COUNT ( * ) )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8097
SELECT DISTINCT COALESCE ( + 8, + + CASE 94 WHEN - + 86 + - + SUM( + + 4 ) + - + COUNT( DISTINCT + 91 ) THEN + + 39 DIV 0 WHEN 43 THEN + 90 * + CAST( NULL AS SIGNED ) * - 11 ELSE + CAST( - + 47 AS SIGNED ) END DIV + 43, + 34 * - COUNT( * ) ) - + 98 + + 1 AS col1, - 57 * + 15 AS col0
----
-89
-855

skipif mysql # not compatible
query II rowsort label-8097
SELECT DISTINCT COALESCE ( + 8, + + CASE 94 WHEN - + 86 + - + SUM ( + + 4 ) + - + COUNT ( DISTINCT + 91 ) THEN + + 39 / 0 WHEN 43 THEN + 90 * + CAST ( NULL AS INTEGER ) * - 11 ELSE + CAST ( - + 47 AS INTEGER ) END / + 43, + 34 * - COUNT ( * ) ) - + 98 + + 1 AS col1, - 57 * + 15 AS col0
----
-89
-855

query I rowsort
SELECT ALL 71 * - 21
----
-1491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT + CAST( NULL AS SIGNED ) / + - 79 + COUNT( * ) + - - 55 + + 19 + ( + ( - + 20 ) ) * COUNT( * ) * - + 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8099
SELECT + CAST ( NULL AS INTEGER ) / + - 79 + COUNT ( * ) + - - 55 + + 19 + ( + ( - + 20 ) ) * COUNT ( * ) * - + 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8100
SELECT + COUNT( * ) DIV ( + 66 ) - + - COALESCE ( - 96, + + CASE + 34 WHEN + 95 - + 27 THEN NULL WHEN - 30 + - 70 THEN + 10 WHEN + - ( MIN( ( - - COALESCE ( 51, + + 22 * + 52 ) ) ) ) THEN + 4 ELSE 54 END + - 9 + - - 56, 42 )
----
-96

skipif mysql # not compatible
query I rowsort label-8100
SELECT + COUNT ( * ) / ( + 66 ) - + - COALESCE ( - 96, + + CASE + 34 WHEN + 95 - + 27 THEN NULL WHEN - 30 + - 70 THEN + 10 WHEN + - ( MIN ( ( - - COALESCE ( 51, + + 22 * + 52 ) ) ) ) THEN + 4 ELSE 54 END + - 9 + - - 56, 42 )
----
-96

query I rowsort
SELECT - ( - 47 ) * - 4 AS col0
----
-188

query I rowsort
SELECT + ( - 40 ) col1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-8103
SELECT 86 * - 18 + + 23 DIV + 74 AS col2
----
-1548

skipif mysql # not compatible
query I rowsort label-8103
SELECT 86 * - 18 + + 23 / + 74 AS col2
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT ALL + 87 * 46 * + COUNT( * ) * + + MAX( + 31 ) AS col1
----
124062

skipif mysql # not compatible
query I rowsort label-8104
SELECT ALL + 87 * 46 * + COUNT ( * ) * + + MAX ( + 31 ) AS col1
----
124062

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT DISTINCT + 14 DIV 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT + 14 / 76 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL - NULLIF ( 59, + - 32 ) * 23 - - MAX( + + 1 )
----
-1356

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL - NULLIF ( 59, + - 32 ) * 23 - - MAX ( + + 1 )
----
-1356

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8107
SELECT NULLIF ( 0, - 39 + - SUM( ALL + CAST( NULL AS DECIMAL ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT NULLIF ( 0, - 39 + - SUM ( ALL + CAST ( NULL AS REAL ) ) ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8108
SELECT - 74 * - 62 - - - CAST( 12 AS SIGNED ) * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT - 74 * - 62 - - - CAST ( 12 AS INTEGER ) * - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8109
SELECT ALL + + 66 * - 90 + + COUNT( DISTINCT 61 ) + CAST( - 73 AS SIGNED )
----
-6012

skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL + + 66 * - 90 + + COUNT ( DISTINCT 61 ) + CAST ( - 73 AS INTEGER )
----
-6012

onlyif mysql # aggregate syntax: 
query II rowsort label-8110
SELECT DISTINCT - + 3 * - COUNT( DISTINCT 36 ) + + - MIN( - 69 ) AS col2, ( - MAX( + 5 ) ) AS col0
----
72
-5

skipif mysql # not compatible
query II rowsort label-8110
SELECT DISTINCT - + 3 * - COUNT ( DISTINCT 36 ) + + - MIN ( - 69 ) AS col2, ( - MAX ( + 5 ) ) AS col0
----
72
-5

query I rowsort
SELECT - 36 * - 30
----
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - 5 * COUNT( * ) + + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8112
SELECT - 5 * COUNT ( * ) + + COUNT ( * ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8113
SELECT + CASE - - 71 WHEN + COUNT( * ) * - COALESCE ( + ( 42 ), + 73 ) * - 56 THEN - + 23 - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8113
SELECT + CASE - - 71 WHEN + COUNT ( * ) * - COALESCE ( + ( 42 ), + 73 ) * - 56 THEN - + 23 - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT + + 26 * - + 96 + + COUNT( * ) AS col0
----
-2495

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + + 26 * - + 96 + + COUNT ( * ) AS col0
----
-2495

query I rowsort
SELECT ALL + + 2 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT + + 48 * + MAX( + 93 )
----
4464

skipif mysql # not compatible
query I rowsort label-8116
SELECT + + 48 * + MAX ( + 93 )
----
4464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8117
SELECT CAST( + 18 AS SIGNED ), 16 * - 54 + + + ( 90 ) col1
----
18
-774

skipif mysql # not compatible
query II rowsort label-8117
SELECT CAST ( + 18 AS INTEGER ), 16 * - 54 + + + ( 90 ) col1
----
18
-774

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT - - CASE COUNT( DISTINCT - ( ( + 71 ) ) ) WHEN - 71 THEN 91 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-8118
SELECT - - CASE COUNT ( DISTINCT - ( ( + 71 ) ) ) WHEN - 71 THEN 91 ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT - 8 * + 69
----
-552

query II rowsort
SELECT DISTINCT - ( - 77 ), 54 + - 88 AS col2
----
77
-34

query I rowsort
SELECT ALL + - 86 + - 65 AS col1
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - - ( ( + - COUNT( - 74 ) ) ) + + 84 AS col2
----
83

skipif mysql # not compatible
query I rowsort label-8122
SELECT - - ( ( + - COUNT ( - 74 ) ) ) + + 84 AS col2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT + - 21 * + - ( CAST( 53 AS SIGNED ) )
----
1113

skipif mysql # not compatible
query I rowsort label-8123
SELECT + - 21 * + - ( CAST ( 53 AS INTEGER ) )
----
1113

query I rowsort
SELECT - + 52 + + 75 AS col0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT + ( + COUNT( * ) ) DIV - - 71 * - 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8125
SELECT + ( + COUNT ( * ) ) / - - 71 * - 80 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8126
SELECT + COALESCE ( - CAST( 98 AS SIGNED ), 63 ) * - 95
----
9310

skipif mysql # not compatible
query I rowsort label-8126
SELECT + COALESCE ( - CAST ( 98 AS INTEGER ), 63 ) * - 95
----
9310

query I rowsort
SELECT + 72 + - 81
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL 84 - - + 55 + SUM( DISTINCT + ( + ( - - 62 ) ) )
----
201

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL 84 - - + 55 + SUM ( DISTINCT + ( + ( - - 62 ) ) )
----
201

query II rowsort
SELECT 63, 83 + + - ( + 79 ) * 27 * + 16 * - 99 AS col1
----
63
3378755

query I rowsort
SELECT + 66 + 70 + - 79 + COALESCE ( - - 61, + 37 ) + 24
----
142

query I rowsort
SELECT + 83 * + - 53 * - + 14
----
61586

onlyif mysql # DIV for integer division: 
query I rowsort label-8132
SELECT DISTINCT 89 DIV + COALESCE ( ( 29 ), 62 )
----
3

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT 89 / + COALESCE ( ( 29 ), 62 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8133
SELECT - CAST( + NULLIF ( 70, ( - - 24 ) * 52 ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8133
SELECT - CAST ( + NULLIF ( 70, ( - - 24 ) * 52 ) AS INTEGER ) AS col2
----
-70

query I rowsort
SELECT + 18 + 19 + 45 AS col2
----
82

query I rowsort
SELECT + 63 * + ( + 60 ) + - - 3 - - 48 * ( - + 9 ) AS col1
----
3351

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + COALESCE ( - - COUNT( * ), 0 * + 22 * - + 65, COUNT( * ), 41 ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COALESCE ( - - COUNT ( * ), 0 * + 22 * - + 65, COUNT ( * ), 41 ) * COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT ( - 22 ) DIV + 42 + 77
----
77

skipif mysql # not compatible
query I rowsort label-8137
SELECT ( - 22 ) / + 42 + 77
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT ALL + SUM( 41 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8138
SELECT ALL + SUM ( 41 ) AS col0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT CAST( - + 47 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-8139
SELECT CAST ( - + 47 AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT ALL 82 * 44 AS col0
----
3608

onlyif mysql # DIV for integer division: 
query II rowsort label-8141
SELECT DISTINCT 0 DIV + 5 * + + 69 + - 65 + + 92, + NULLIF ( - - 57, - + 5 ) AS col1
----
27
57

skipif mysql # not compatible
query II rowsort label-8141
SELECT DISTINCT 0 / + 5 * + + 69 + - 65 + + 92, + NULLIF ( - - 57, - + 5 ) AS col1
----
27
57

onlyif mysql # DIV for integer division: 
query I rowsort label-8142
SELECT ALL + - 14 DIV - 44 * - + 65 + 61 + + + 26 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + - 14 / - 44 * - + 65 + 61 + + + 26 AS col1
----
87

query I rowsort
SELECT + - 93 * - 80 + + + ( - 1 ) col0
----
7439

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8144
SELECT DISTINCT - - 68, + CAST( + 46 AS SIGNED ) AS col1
----
68
46

skipif mysql # not compatible
query II rowsort label-8144
SELECT DISTINCT - - 68, + CAST ( + 46 AS INTEGER ) AS col1
----
68
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8145
SELECT + 43 + - CAST( + + 24 AS SIGNED ) AS col1, 19 AS col0
----
19
19

skipif mysql # not compatible
query II rowsort label-8145
SELECT + 43 + - CAST ( + + 24 AS INTEGER ) AS col1, 19 AS col0
----
19
19

query I rowsort
SELECT - 9 * 43 * 68 - - + 60
----
-26256

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT + + COUNT( * ) + + 38 * - 55 col0
----
-2089

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT + + COUNT ( * ) + + 38 * - 55 col0
----
-2089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8148
SELECT ALL - - CAST( NULL AS SIGNED ) / - 57 * - ( + 26 ) / 78 + + 63 - + + MIN( DISTINCT + 80 ) * 67 * 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - - CAST ( NULL AS INTEGER ) / - 57 * - ( + 26 ) / 78 + + 63 - + + MIN ( DISTINCT + 80 ) * 67 * 76 AS col1
----
NULL

query I rowsort
SELECT - 26 * - 99 AS col0
----
2574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL + + 25 + - 51 * + - 6 + + 61 + - - NULLIF ( - - COUNT( * ), COALESCE ( - + 65, + 68 / - 86 / - - CASE + 62 WHEN - CASE - ( - COUNT( * ) ) WHEN + 23 THEN NULL ELSE - 25 * 0 END + + 44 + - + COALESCE ( - 14, + + 49 / 53 * 95 + + MIN( 52 ) * + + 34, 60 + - CAST( NULL AS SIGNED ) ) + CAST( - 11 AS SIGNED ) * + 89 THEN NULL WHEN + 59 * 16 - + 88 * 80 THEN 95 * 57 WHEN + 84 - 21 THEN ( - CASE 92 WHEN + 66 THEN NULL WHEN + 4 - 36 THEN - 13 ELSE - 75 END ) ELSE NULL END / ( 70 ) + + 21 ) + 38 ) AS col0
----
393

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + + 25 + - 51 * + - 6 + + 61 + - - NULLIF ( - - COUNT ( * ), COALESCE ( - + 65, + 68 / - 86 / - - CASE + 62 WHEN - CASE - ( - COUNT ( * ) ) WHEN + 23 THEN NULL ELSE - 25 * 0 END + + 44 + - + COALESCE ( - 14, + + 49 / 53 * 95 + + MIN ( 52 ) * + + 34, 60 + - CAST ( NULL AS INTEGER ) ) + CAST ( - 11 AS INTEGER ) * + 89 THEN NULL WHEN + 59 * 16 - + 88 * 80 THEN 95 * 57 WHEN + 84 - 21 THEN ( - CASE 92 WHEN + 66 THEN NULL WHEN + 4 - 36 THEN - 13 ELSE - 75 END ) ELSE NULL END / ( 70 ) + + 21 ) + 38 ) AS col0
----
393

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8151
SELECT - CAST( NULL AS DECIMAL ) * 70 + - + 38 + + - 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8151
SELECT - CAST ( NULL AS REAL ) * 70 + - + 38 + + - 48 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8152
SELECT ALL 53 DIV 40 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL 53 / 40 AS col1
----
1

query I rowsort
SELECT ALL - - ( + + 74 ) AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8154
SELECT 22 * + + 71 DIV COUNT( * )
----
1562

skipif mysql # not compatible
query I rowsort label-8154
SELECT 22 * + + 71 / COUNT ( * )
----
1562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT + COUNT( * ) + + + CAST( NULL AS SIGNED ) * + - 96 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8155
SELECT + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) * + - 96 + + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT - CAST( + 3 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-8156
SELECT - CAST ( + 3 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT - 42 + - 94 col0
----
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-8158
SELECT ALL - NULLIF ( - COUNT( * ), - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL - NULLIF ( - COUNT ( * ), - 90 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8159
SELECT ( - CASE - NULLIF ( ( - + MIN( ALL 74 ) ), + + COUNT( * ) + 81 ) WHEN CAST( NULL AS SIGNED ) THEN - 73 + + COUNT( * ) ELSE 12 END ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-8159
SELECT ( - CASE - NULLIF ( ( - + MIN ( ALL 74 ) ), + + COUNT ( * ) + 81 ) WHEN CAST ( NULL AS INTEGER ) THEN - 73 + + COUNT ( * ) ELSE 12 END ) AS col0
----
-12

query I rowsort
SELECT 89 + + - 76 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT DISTINCT + - 91 * + 44 * SUM( ALL 99 )
----
-396396

skipif mysql # not compatible
query I rowsort label-8161
SELECT DISTINCT + - 91 * + 44 * SUM ( ALL 99 )
----
-396396

query I rowsort
SELECT DISTINCT COALESCE ( - 14, + 52 ) AS col1
----
-14

query II rowsort
SELECT ALL 90, 47 col2
----
90
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT COUNT( ALL - 29 ) * + + 78 + + + CAST( - 13 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-8164
SELECT COUNT ( ALL - 29 ) * + + 78 + + + CAST ( - 13 AS INTEGER )
----
65

query II rowsort
SELECT ALL 92 col1, 34
----
92
34

query II rowsort
SELECT ALL 44 AS col0, 78 + - 36 * - NULLIF ( + 60, + 87 ) - - 1 * - 69
----
44
2169

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT COUNT( * ) * - ( - 83 ) col0
----
83

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT COUNT ( * ) * - ( - 83 ) col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT ALL COUNT( * ) * 18 * - 66 AS col1
----
-1188

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL COUNT ( * ) * 18 * - 66 AS col1
----
-1188

query II rowsort
SELECT 49, + 48 AS col2
----
49
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT 47 DIV + + 49
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT 47 / + + 49
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8171
SELECT 56 - - + 38 + + NULLIF ( + 93, + ( - 83 ) * CAST( NULL AS DECIMAL ) ) * - 53 + + CASE + 59 WHEN ( + COALESCE ( + 34, - - 69 * 8 - - 63 ) ) THEN + - ( - 97 ) * 74 + - SUM( - - 61 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT 56 - - + 38 + + NULLIF ( + 93, + ( - 83 ) * CAST ( NULL AS REAL ) ) * - 53 + + CASE + 59 WHEN ( + COALESCE ( + 34, - - 69 * 8 - - 63 ) ) THEN + - ( - 97 ) * 74 + - SUM ( - - 61 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT ALL 18 * - + COUNT( * ) * - 7
----
126

skipif mysql # not compatible
query I rowsort label-8172
SELECT ALL 18 * - + COUNT ( * ) * - 7
----
126

query I rowsort
SELECT DISTINCT - 14 * + 89
----
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT COUNT( * ) + + + 58 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT COUNT ( * ) + + + 58 AS col1
----
59

query II rowsort
SELECT ALL 24, + 4 AS col0
----
24
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8176
SELECT + 77, - CASE - 58 WHEN 99 THEN + MIN( DISTINCT 9 ) ELSE NULL END * - + CAST( NULL AS SIGNED ) + - NULLIF ( NULLIF ( + COUNT( * ), + + 54 ), + 99 * + 60 * - 96 + - 36 ) * 93 / + 75 AS col2
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8176
SELECT + 77, - CASE - 58 WHEN 99 THEN + MIN ( DISTINCT 9 ) ELSE NULL END * - + CAST ( NULL AS INTEGER ) + - NULLIF ( NULLIF ( + COUNT ( * ), + + 54 ), + 99 * + 60 * - 96 + - 36 ) * 93 / + 75 AS col2
----
77
NULL

query II rowsort
SELECT ALL - 72 col2, - 22
----
-72
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8178
SELECT - COUNT( DISTINCT + CASE + 59 WHEN - NULLIF ( + - 74, - 56 ) THEN + 15 END ) DIV + CAST( + 15 AS SIGNED ) * - - 35 - - - 81 + + + 14 + 12 * + - 50 - + 70 - 40 * - 29 AS col2, 47 * + + 39
----
423
1833

skipif mysql # not compatible
query II rowsort label-8178
SELECT - COUNT ( DISTINCT + CASE + 59 WHEN - NULLIF ( + - 74, - 56 ) THEN + 15 END ) / + CAST ( + 15 AS INTEGER ) * - - 35 - - - 81 + + + 14 + 12 * + - 50 - + 70 - 40 * - 29 AS col2, 47 * + + 39
----
423
1833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8179
SELECT + 83 DIV - - MAX( DISTINCT - 55 ) + - 66 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-8179
SELECT + 83 / - - MAX ( DISTINCT - 55 ) + - 66 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8180
SELECT 96 col2, - MIN( 79 ) + + 75 AS col0
----
96
-4

skipif mysql # not compatible
query II rowsort label-8180
SELECT 96 col2, - MIN ( 79 ) + + 75 AS col0
----
96
-4

query I rowsort
SELECT - 27 * + - 70
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT MAX( + 18 ) + - 38
----
-20

skipif mysql # not compatible
query I rowsort label-8182
SELECT MAX ( + 18 ) + - 38
----
-20

query II rowsort
SELECT DISTINCT - + 19 col2, 89 * + - ( - 43 ) + 22
----
-19
3849

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT ALL - COALESCE ( COUNT( * ), SUM( ALL - 28 ) ) + 31
----
30

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL - COALESCE ( COUNT ( * ), SUM ( ALL - 28 ) ) + 31
----
30

query I rowsort
SELECT DISTINCT - + ( + - 59 ) col1
----
59

query I rowsort
SELECT DISTINCT ( - 81 ) * 17 * + 69
----
-95013

onlyif mysql # aggregate syntax: 
query I rowsort label-8187
SELECT CASE - 7 WHEN + ( 94 ) THEN - - 0 WHEN + 82 THEN NULL END / COUNT( * ) * - + 59 + COUNT( * ) - - 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT CASE - 7 WHEN + ( 94 ) THEN - - 0 WHEN + 82 THEN NULL END / COUNT ( * ) * - + 59 + COUNT ( * ) - - 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT - 43 - - 26 DIV - COUNT( * ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8188
SELECT - 43 - - 26 / - COUNT ( * ) AS col0
----
-69

query I rowsort
SELECT DISTINCT - - 82 col1
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8190
SELECT - 26 DIV CASE - + ( - 22 ) WHEN + 33 * + + COALESCE ( + COUNT( * ), + 67 ) THEN NULL ELSE - - 51 END
----
0

skipif mysql # not compatible
query I rowsort label-8190
SELECT - 26 / CASE - + ( - 22 ) WHEN + 33 * + + COALESCE ( + COUNT ( * ), + 67 ) THEN NULL ELSE - - 51 END
----
0

query I rowsort
SELECT DISTINCT ( - ( 36 ) )
----
-36

query I rowsort
SELECT ALL - - 18 * + NULLIF ( - 45, 7 ) * 20
----
-16200

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT + 93 - COUNT( * ) + - - 95 AS col1
----
187

skipif mysql # not compatible
query I rowsort label-8193
SELECT + 93 - COUNT ( * ) + - - 95 AS col1
----
187

query II rowsort
SELECT ALL + 49 AS col0, + 3 + 83 * + 48 * + - 65 * + - 84 col0
----
49
21752643

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL + COUNT( * ) * 24
----
24

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL + COUNT ( * ) * 24
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8196
SELECT 76 * COUNT( * ) AS col2, - COUNT( * ) * 13
----
76
-13

skipif mysql # not compatible
query II rowsort label-8196
SELECT 76 * COUNT ( * ) AS col2, - COUNT ( * ) * 13
----
76
-13

query I rowsort
SELECT ALL - 99 * - 68 AS col0
----
6732

query I rowsort
SELECT 56 + 31 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8199
SELECT ALL MAX( CAST( NULL AS DECIMAL ) ) AS col1, 85 AS col0
----
NULL
85

skipif mysql # not compatible
query II rowsort label-8199
SELECT ALL MAX ( CAST ( NULL AS REAL ) ) AS col1, 85 AS col0
----
NULL
85

query I rowsort
SELECT 66 + 35 AS col1
----
101

query I rowsort
SELECT 1 - 2 AS col2
----
-1

query II rowsort
SELECT 75 + 52 * + 46, + 47 AS col1
----
2467
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8203
SELECT 91 + + - 7 AS col2, - 67 + + - 8 + 46 / + 42 * 40 * + - 48 * - NULLIF ( + CAST( NULL AS SIGNED ), - + COUNT( * ) ) * ( 85 ) + - - SUM( DISTINCT 3 ) + CAST( SUM( DISTINCT + 26 ) AS DECIMAL ) + 26 - - 38 + 67 * COUNT( * ) / + - 57 * + 37 + 81 AS col1
----
84
NULL

skipif mysql # not compatible
query II rowsort label-8203
SELECT 91 + + - 7 AS col2, - 67 + + - 8 + 46 / + 42 * 40 * + - 48 * - NULLIF ( + CAST ( NULL AS INTEGER ), - + COUNT ( * ) ) * ( 85 ) + - - SUM ( DISTINCT 3 ) + CAST ( SUM ( DISTINCT + 26 ) AS REAL ) + 26 - - 38 + 67 * COUNT ( * ) / + - 57 * + 37 + 81 AS col1
----
84
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT ALL + COALESCE ( + + 65, - + 33 + + COUNT( * ) ) + COUNT( * ) + + COALESCE ( + COUNT( * ), - CAST( NULL AS SIGNED ) ) / COUNT( * ) / 52 * - + 22 / + CASE 12 WHEN - 8 * 79 THEN + + 4 + + 25 END * + + 17 * + + 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL + COALESCE ( + + 65, - + 33 + + COUNT ( * ) ) + COUNT ( * ) + + COALESCE ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) / 52 * - + 22 / + CASE 12 WHEN - 8 * 79 THEN + + 4 + + 25 END * + + 17 * + + 80 AS col1
----
NULL

query II rowsort
SELECT DISTINCT + 55 + - 18, 47 AS col2
----
37
47

query I rowsort
SELECT 7 * - - 51
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT COUNT( * ) + + - 69 + + COUNT( * ) + - CASE + 86 WHEN + 21 THEN - 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT COUNT ( * ) + + - 69 + + COUNT ( * ) + - CASE + 86 WHEN + 21 THEN - 82 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8208
SELECT ALL + 37 + 93 DIV + 29 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + 37 + 93 / + 29 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8209
SELECT - COUNT( * ) * COUNT( + 35 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8209
SELECT - COUNT ( * ) * COUNT ( + 35 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8210
SELECT ALL - 65 * 26, 59 DIV - SUM( DISTINCT + ( 64 ) ) AS col0
----
-1690
0

skipif mysql # not compatible
query II rowsort label-8210
SELECT ALL - 65 * 26, 59 / - SUM ( DISTINCT + ( 64 ) ) AS col0
----
-1690
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8211
SELECT - COUNT( * ) DIV COUNT( * ) AS col0, + 53 + + + 8 col0
----
-1
61

skipif mysql # not compatible
query II rowsort label-8211
SELECT - COUNT ( * ) / COUNT ( * ) AS col0, + 53 + + + 8 col0
----
-1
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT + MAX( + - ( 43 ) ) + + - CAST( + 44 AS SIGNED ) + - + 67 * 99 * + 72
----
-477663

skipif mysql # not compatible
query I rowsort label-8212
SELECT + MAX ( + - ( 43 ) ) + + - CAST ( + 44 AS INTEGER ) + - + 67 * 99 * + 72
----
-477663

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT - - 29 * ( - COALESCE ( + + MAX( ( + 93 ) ), - 73 ) ) * 28 * + 37 + - - 8 * + 0
----
-2794092

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT - - 29 * ( - COALESCE ( + + MAX ( ( + 93 ) ), - 73 ) ) * 28 * + 37 + - - 8 * + 0
----
-2794092

query I rowsort
SELECT + - NULLIF ( 50, - AVG ( + 26 ) - 91 )
----
-50

query II rowsort
SELECT ALL + + 63 * + 29 - + - 48 - + ( 70 ) AS col1, + 52 + + 61
----
1805
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT ALL + + COUNT( ALL - + 51 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL + + COUNT ( ALL - + 51 ) AS col0
----
1

query II rowsort
SELECT + 61 + + 62 * + - 86 AS col2, - 84
----
-5271
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-8218
SELECT ALL + 6 DIV - 42 AS col1, 29 col1
----
0
29

skipif mysql # not compatible
query II rowsort label-8218
SELECT ALL + 6 / - 42 AS col1, 29 col1
----
0
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8219
SELECT DISTINCT + 78 DIV - CAST( - - 70 AS SIGNED ) + - 77
----
-78

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT + 78 / - CAST ( - - 70 AS INTEGER ) + - 77
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT + 58 DIV - + 72 + 90 * - 3 col2
----
-270

skipif mysql # not compatible
query I rowsort label-8220
SELECT + 58 / - + 72 + 90 * - 3 col2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT + 41 + - SUM( + - 77 )
----
118

skipif mysql # not compatible
query I rowsort label-8221
SELECT + 41 + - SUM ( + - 77 )
----
118

query I rowsort
SELECT + - 90 * - - 47 - + 86 + + 88 - - - 8 * + - 71 AS col1
----
-3660

onlyif mysql # aggregate syntax: 
query II rowsort label-8223
SELECT + MIN( 65 ) * 73 + - 29 + + 81 * + + COUNT( * ) + COUNT( + - 7 ) AS col0, - 2 AS col0
----
4798
-2

skipif mysql # not compatible
query II rowsort label-8223
SELECT + MIN ( 65 ) * 73 + - 29 + + 81 * + + COUNT ( * ) + COUNT ( + - 7 ) AS col0, - 2 AS col0
----
4798
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - CASE - 5 WHEN + COUNT( * ) + - 72 THEN + + 26 - - 19 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8224
SELECT - CASE - 5 WHEN + COUNT ( * ) + - 72 THEN + + 26 - - 19 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL - ( COUNT( * ) ) * + MIN( DISTINCT - 48 )
----
48

skipif mysql # not compatible
query I rowsort label-8225
SELECT ALL - ( COUNT ( * ) ) * + MIN ( DISTINCT - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL + MAX( DISTINCT + 25 )
----
25

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL + MAX ( DISTINCT + 25 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT + + CASE ( - + 72 ) WHEN + COUNT( * ) / - 30 * 26 THEN + - 73 * - 47 ELSE + COUNT( * ) END * + ( + + 8 ) * + 26 + - ( - 91 ) + 38
----
337

skipif mysql # not compatible
query I rowsort label-8227
SELECT + + CASE ( - + 72 ) WHEN + COUNT ( * ) / - 30 * 26 THEN + - 73 * - 47 ELSE + COUNT ( * ) END * + ( + + 8 ) * + 26 + - ( - 91 ) + 38
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT + + ( - 40 ) * - - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-8228
SELECT + + ( - 40 ) * - - COUNT ( * ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8229
SELECT + 90 + - NULLIF ( - + 47, + COUNT( * ) + + + 25 ) DIV + ( + - CAST( NULLIF ( 62, + COALESCE ( + + 41, 79 DIV 69 + - - 42 ) ) AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 90 + - NULLIF ( - + 47, + COUNT ( * ) + + + 25 ) / + ( + - CAST ( NULLIF ( 62, + COALESCE ( + + 41, 79 / 69 + - - 42 ) ) AS INTEGER ) )
----
90

query I rowsort
SELECT ALL + NULLIF ( + - 37, + 82 + + + 18 ) AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT + COUNT( * ) + ( - 16 ) + + 1 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8231
SELECT + COUNT ( * ) + ( - 16 ) + + 1 AS col0
----
-14

query II rowsort
SELECT DISTINCT 91, 49 AS col0
----
91
49

query II rowsort
SELECT - COALESCE ( - + 50, + 88 ) AS col1, 16
----
50
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT - COUNT( * ) + - 51 col2
----
-52

skipif mysql # not compatible
query I rowsort label-8234
SELECT - COUNT ( * ) + - 51 col2
----
-52

query I rowsort
SELECT DISTINCT 60 + - - 37 AS col1
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT + MIN( ALL - CAST( NULL AS SIGNED ) ) * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT + MIN ( ALL - CAST ( NULL AS INTEGER ) ) * 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL + CASE MAX( - - 88 ) WHEN + 53 + + MAX( DISTINCT 67 ) * + 37 THEN NULL WHEN 1 / + 37 + ( + + 58 ) * + COUNT( * ) + + 50 THEN NULL ELSE - - COUNT( * ) END + + - 62
----
-61

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL + CASE MAX ( - - 88 ) WHEN + 53 + + MAX ( DISTINCT 67 ) * + 37 THEN NULL WHEN 1 / + 37 + ( + + 58 ) * + COUNT ( * ) + + 50 THEN NULL ELSE - - COUNT ( * ) END + + - 62
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8238
SELECT 87 AS col0, + MAX( ALL - + CAST( CAST( - 76 AS SIGNED ) AS SIGNED ) ) + + ( + COUNT( * ) )
----
87
77

skipif mysql # not compatible
query II rowsort label-8238
SELECT 87 AS col0, + MAX ( ALL - + CAST ( CAST ( - 76 AS INTEGER ) AS INTEGER ) ) + + ( + COUNT ( * ) )
----
87
77

query I rowsort
SELECT ALL 65 + + NULLIF ( - + 40, + - 2 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL COALESCE ( + 56, + COALESCE ( + 21, 93 + 51, COUNT( * ) ) * - ( - 23 ) )
----
56

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL COALESCE ( + 56, + COALESCE ( + 21, 93 + 51, COUNT ( * ) ) * - ( - 23 ) )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT ALL + COUNT( * ) + + 16 * + COUNT( * ) * + + 14
----
225

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + COUNT ( * ) + + 16 * + COUNT ( * ) * + + 14
----
225

query I rowsort
SELECT - 53 * 24
----
-1272

query I rowsort
SELECT - 29 * 25
----
-725

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT + ( + ( + - 53 ) ) - + 56 - + + COUNT( * ) * + - 99
----
-10

skipif mysql # not compatible
query I rowsort label-8244
SELECT + ( + ( + - 53 ) ) - + 56 - + + COUNT ( * ) * + - 99
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT - 23 * + COUNT( * ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8245
SELECT - 23 * + COUNT ( * ) AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8246
SELECT - CAST( + 67 AS SIGNED ) col0
----
-67

skipif mysql # not compatible
query I rowsort label-8246
SELECT - CAST ( + 67 AS INTEGER ) col0
----
-67

query I rowsort
SELECT + 93 * - 73
----
-6789

query I rowsort
SELECT ALL + ( + 37 ) - + 18 * + 19
----
-305

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8249
SELECT - + 21 * - COUNT( * ) DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8249
SELECT - + 21 * - COUNT ( * ) / - 57 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8250
SELECT ALL - 10 * COUNT( * ) + - 81, + NULLIF ( + + 59, CAST( NULL AS SIGNED ) DIV - - SUM( 50 ) ) DIV - 95 AS col2
----
-91
0

skipif mysql # not compatible
query II rowsort label-8250
SELECT ALL - 10 * COUNT ( * ) + - 81, + NULLIF ( + + 59, CAST ( NULL AS INTEGER ) / - - SUM ( 50 ) ) / - 95 AS col2
----
-91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT COUNT( * ) * + CAST( - 80 AS SIGNED ) * + + 66 * CAST( NULL AS SIGNED ) + + - AVG ( + ( + 74 ) ) + 50 - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT COUNT ( * ) * + CAST ( - 80 AS INTEGER ) * + + 66 * CAST ( NULL AS INTEGER ) + + - AVG ( + ( + 74 ) ) + 50 - + 68
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8252
SELECT DISTINCT + 72 DIV - 37 - + 90 + - 44
----
-135

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + 72 / - 37 - + 90 + - 44
----
-135

query II rowsort
SELECT + - 25 AS col0, + 73 * + + NULLIF ( + 34, - - 98 )
----
-25
2482

query II rowsort
SELECT 6 AS col2, 21
----
6
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL + 49 * NULLIF ( - 41, + 62 * - 9 - COUNT( * ) ) * CAST( - COUNT( * ) AS SIGNED ) * - 14 + - - NULLIF ( 10, + + 64 ) * + - 13 / + ( - - CAST( NULL AS SIGNED ) ) * AVG ( DISTINCT + 60 ) - + 39 - - + 77 + - - AVG ( 92 ) * 80 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL + 49 * NULLIF ( - 41, + 62 * - 9 - COUNT ( * ) ) * CAST ( - COUNT ( * ) AS INTEGER ) * - 14 + - - NULLIF ( 10, + + 64 ) * + - 13 / + ( - - CAST ( NULL AS INTEGER ) ) * AVG ( DISTINCT + 60 ) - + 39 - - + 77 + - - AVG ( 92 ) * 80 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT + 56 DIV + 59 + 35
----
35

skipif mysql # not compatible
query I rowsort label-8256
SELECT + 56 / + 59 + 35
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8257
SELECT + 62, NULLIF ( - + AVG ( - 53 ), 85 * + + CAST( - MAX( - ( 27 ) ) AS SIGNED ) * ( + 30 ) + - SUM( 13 ) ) * 44 + 57 + CASE 98 WHEN + 2 THEN - ( 41 ) - 35 END AS col2
----
62
NULL

skipif mysql # not compatible
query II rowsort label-8257
SELECT + 62, NULLIF ( - + AVG ( - 53 ), 85 * + + CAST ( - MAX ( - ( 27 ) ) AS INTEGER ) * ( + 30 ) + - SUM ( 13 ) ) * 44 + 57 + CASE 98 WHEN + 2 THEN - ( 41 ) - 35 END AS col2
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - 29 + + - COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-8258
SELECT - 29 + + - COUNT ( * )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8259
SELECT DISTINCT + 55 * + + 10 * - 1 col2, 70 - 95 - 22 - 33 * + + 90 * CAST( NULL AS SIGNED ) / + + ( COUNT( * ) ) * - 74 - - + CAST( NULL AS DECIMAL ) + - 92 + 87 - + 69 / + 99 * + - 30 * + + 23 AS col0
----
-550
NULL

skipif mysql # not compatible
query II rowsort label-8259
SELECT DISTINCT + 55 * + + 10 * - 1 col2, 70 - 95 - 22 - 33 * + + 90 * CAST ( NULL AS INTEGER ) / + + ( COUNT ( * ) ) * - 74 - - + CAST ( NULL AS REAL ) + - 92 + 87 - + 69 / + 99 * + - 30 * + + 23 AS col0
----
-550
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8260
SELECT - - COUNT( * ) DIV + 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8260
SELECT - - COUNT ( * ) / + 23 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8261
SELECT ALL 5 DIV COUNT( * ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL 5 / COUNT ( * ) AS col1
----
5

query I rowsort
SELECT + + ( 13 ) + - 81 + - + NULLIF ( + 35, + 44 + 39 ) * 72 * + - 59
----
148612

query I rowsort
SELECT - - 42 - + - 54
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT DISTINCT + CASE 83 WHEN 68 * - 3 * - 79 * - - 75 + COUNT( * ) + + + SUM( ALL + + 70 ) THEN - ( + 18 ) WHEN COUNT( * ) THEN - + 33 * 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT DISTINCT + CASE 83 WHEN 68 * - 3 * - 79 * - - 75 + COUNT ( * ) + + + SUM ( ALL + + 70 ) THEN - ( + 18 ) WHEN COUNT ( * ) THEN - + 33 * 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL CASE - 27 WHEN MIN( DISTINCT + 71 ) THEN SUM( DISTINCT 14 ) END * 30 + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL CASE - 27 WHEN MIN ( DISTINCT + 71 ) THEN SUM ( DISTINCT 14 ) END * 30 + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT - NULLIF ( + - 52, - 91 ) - - COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-8266
SELECT - NULLIF ( + - 52, - 91 ) - - COUNT ( * )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8267
SELECT + ( + NULLIF ( 86, + - 68 * - COUNT( * ) + - COUNT( * ) * + CASE + + ( - 28 ) WHEN - 82 THEN NULL ELSE + 84 END ) )
----
86

skipif mysql # not compatible
query I rowsort label-8267
SELECT + ( + NULLIF ( 86, + - 68 * - COUNT ( * ) + - COUNT ( * ) * + CASE + + ( - 28 ) WHEN - 82 THEN NULL ELSE + 84 END ) )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT CASE + 96 WHEN - + 99 + + CAST( NULL AS SIGNED ) THEN - 42 + + 9 - + - 65 * - CAST( 15 AS SIGNED ) + - CAST( NULL AS SIGNED ) + - + COALESCE ( 57, 98 * - 90 ) / + 12 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT CASE + 96 WHEN - + 99 + + CAST ( NULL AS INTEGER ) THEN - 42 + + 9 - + - 65 * - CAST ( 15 AS INTEGER ) + - CAST ( NULL AS INTEGER ) + - + COALESCE ( 57, 98 * - 90 ) / + 12 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT ALL COUNT( * ) * 95 + + 47 + - - SUM( 89 ) * 20 AS col0
----
1922

skipif mysql # not compatible
query I rowsort label-8269
SELECT ALL COUNT ( * ) * 95 + + 47 + - - SUM ( 89 ) * 20 AS col0
----
1922

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT DISTINCT 66 * + SUM( - 82 ) + 4 AS col0
----
-5408

skipif mysql # not compatible
query I rowsort label-8270
SELECT DISTINCT 66 * + SUM ( - 82 ) + 4 AS col0
----
-5408

query I rowsort
SELECT + 53 - - 65 AS col1
----
118

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT ALL 41 * 26 + - ( - + COUNT( * ) ) + - 61 col0, 97 * - - COUNT( * )
----
1006
97

skipif mysql # not compatible
query II rowsort label-8272
SELECT ALL 41 * 26 + - ( - + COUNT ( * ) ) + - 61 col0, 97 * - - COUNT ( * )
----
1006
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT NULLIF ( + NULLIF ( ( + COALESCE ( 56, 46 + 58, - ( - COUNT( * ) ) * + - 42 ) ), + 81 * 79 + - NULLIF ( AVG ( - 6 ), + 83 ) ), - - ( + - COUNT( + - 37 ) ) ) * - + 51 AS col0
----
-2856

skipif mysql # not compatible
query I rowsort label-8273
SELECT NULLIF ( + NULLIF ( ( + COALESCE ( 56, 46 + 58, - ( - COUNT ( * ) ) * + - 42 ) ), + 81 * 79 + - NULLIF ( AVG ( - 6 ), + 83 ) ), - - ( + - COUNT ( + - 37 ) ) ) * - + 51 AS col0
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT MIN( - - ( - 44 ) ) + - COUNT( * ) + - + 57 * MIN( DISTINCT + + 32 )
----
-1869

skipif mysql # not compatible
query I rowsort label-8274
SELECT MIN ( - - ( - 44 ) ) + - COUNT ( * ) + - + 57 * MIN ( DISTINCT + + 32 )
----
-1869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT ALL 12 + - CAST( + - 7 AS SIGNED )
----
19

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL 12 + - CAST ( + - 7 AS INTEGER )
----
19

query I rowsort
SELECT 91 + - 47 + - 44 * - 25
----
1144

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8277
SELECT COALESCE ( 53, + - 69 + + 25 + + - 80 * + + 6 DIV - 63 * 46 ) + + 0 AS col0, CAST( NULL AS DECIMAL ) + + COUNT( * ) col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-8277
SELECT COALESCE ( 53, + - 69 + + 25 + + - 80 * + + 6 / - 63 * 46 ) + + 0 AS col0, CAST ( NULL AS REAL ) + + COUNT ( * ) col2
----
53
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT 10 + + + CAST( NULL AS SIGNED ) + - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8278
SELECT 10 + + + CAST ( NULL AS INTEGER ) + - + 57
----
NULL

query I rowsort
SELECT ALL 81 - - CASE - 87 WHEN - + 64 THEN 37 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT ( + 48 ) * + + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT ( + 48 ) * + + COUNT ( * ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT DISTINCT 11 - - 84 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT 11 - - 84 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8282
SELECT ALL + - 79 * 55 DIV + + 55 - - - 98 * - 42
----
4037

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + - 79 * 55 / + + 55 - - - 98 * - 42
----
4037

query I rowsort
SELECT DISTINCT 8 * - 97 AS col1
----
-776

query I rowsort
SELECT 9 + 34
----
43

query I rowsort
SELECT COALESCE ( 88, - 63, + 67 ) * - 13
----
-1144

query I rowsort
SELECT ALL + 78 * - 63 col1
----
-4914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8287
SELECT ALL + COUNT( * ) * - 54 * - COUNT( * ) + - 97 / + + 79 + - 31 - CASE + 40 WHEN + + COUNT( * ) THEN NULL WHEN + 74 * + ( + + 15 ) * - 58 / + + CAST( NULL AS SIGNED ) - 5 * - COUNT( * ) THEN NULL WHEN NULLIF ( + 99, + 65 ) THEN + + 67 + + + 36 + + COUNT( * ) + - 91 * - COUNT( * ) END - + + ( - COUNT( * ) ) + - COUNT( * ) / - CAST( 61 AS SIGNED ) * + 75 / - NULLIF ( + 5, + AVG ( ALL + 88 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT ALL + COUNT ( * ) * - 54 * - COUNT ( * ) + - 97 / + + 79 + - 31 - CASE + 40 WHEN + + COUNT ( * ) THEN NULL WHEN + 74 * + ( + + 15 ) * - 58 / + + CAST ( NULL AS INTEGER ) - 5 * - COUNT ( * ) THEN NULL WHEN NULLIF ( + 99, + 65 ) THEN + + 67 + + + 36 + + COUNT ( * ) + - 91 * - COUNT ( * ) END - + + ( - COUNT ( * ) ) + - COUNT ( * ) / - CAST ( 61 AS INTEGER ) * + 75 / - NULLIF ( + 5, + AVG ( ALL + 88 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8288
SELECT 42 + 52 * NULLIF ( + 62, + - NULLIF ( + 10, + 95 * - 75 + - - CASE 16 WHEN - 46 THEN - 67 + + 7 + ( + 78 ) + + - 40 * - 60 / - 19 END + 36 + - + CASE CASE + - 68 WHEN + - 77 * - + 98 + + CAST( 75 AS DECIMAL ) THEN NULL WHEN 93 * - - ( 22 ) + + 77 THEN + 26 ELSE NULL END WHEN + + ( 21 ) * + 71 THEN + 52 WHEN + ( - 32 ) * - ( CAST( - 2 AS SIGNED ) ) THEN + 29 / ( - 78 ) ELSE + COUNT( * ) END ) / + AVG ( DISTINCT 93 ) ) / 24 - + ( + COUNT( ALL 85 ) + CASE 87 + + CAST( + 21 AS SIGNED ) WHEN 71 THEN - 4 / 18 WHEN - 12 THEN NULL END / 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8288
SELECT 42 + 52 * NULLIF ( + 62, + - NULLIF ( + 10, + 95 * - 75 + - - CASE 16 WHEN - 46 THEN - 67 + + 7 + ( + 78 ) + + - 40 * - 60 / - 19 END + 36 + - + CASE CASE + - 68 WHEN + - 77 * - + 98 + + CAST ( 75 AS REAL ) THEN NULL WHEN 93 * - - ( 22 ) + + 77 THEN + 26 ELSE NULL END WHEN + + ( 21 ) * + 71 THEN + 52 WHEN + ( - 32 ) * - ( CAST ( - 2 AS INTEGER ) ) THEN + 29 / ( - 78 ) ELSE + COUNT ( * ) END ) / + AVG ( DISTINCT 93 ) ) / 24 - + ( + COUNT ( ALL 85 ) + CASE 87 + + CAST ( + 21 AS INTEGER ) WHEN 71 THEN - 4 / 18 WHEN - 12 THEN NULL END / 28 )
----
NULL

query I rowsort
SELECT + NULLIF ( + 51, 78 ) AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8290
SELECT - 15 DIV + - 27 - 24 + 22 * + MAX( - 19 )
----
-442

skipif mysql # not compatible
query I rowsort label-8290
SELECT - 15 / + - 27 - 24 + 22 * + MAX ( - 19 )
----
-442

query I rowsort
SELECT ALL + 68 + + 56 AS col1
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT ALL + COUNT( * ) + - 5 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + COUNT ( * ) + - 5 AS col0
----
-4

query I rowsort
SELECT ALL + 68 * - + 16
----
-1088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8294
SELECT DISTINCT - COALESCE ( - + NULLIF ( + - 85, + - COALESCE ( 54, AVG ( - 91 ) * - COUNT( * ) + - - 36 + + 89 ) ), + 51 + 15 + - 17 DIV + 97 )
----
-85

skipif mysql # not compatible
query I rowsort label-8294
SELECT DISTINCT - COALESCE ( - + NULLIF ( + - 85, + - COALESCE ( 54, AVG ( - 91 ) * - COUNT ( * ) + - - 36 + + 89 ) ), + 51 + 15 + - 17 / + 97 )
----
-85

query I rowsort
SELECT 81 * NULLIF ( + 69, - 35 ) * - - 89 * 44
----
21886524

query I rowsort
SELECT 17 * 37
----
629

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT ALL 62 AS col2, - 23 * 86 * - COUNT( * )
----
62
1978

skipif mysql # not compatible
query II rowsort label-8297
SELECT ALL 62 AS col2, - 23 * 86 * - COUNT ( * )
----
62
1978

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT 91 * - MAX( NULLIF ( - 36, + 55 ) )
----
3276

skipif mysql # not compatible
query I rowsort label-8298
SELECT 91 * - MAX ( NULLIF ( - 36, + 55 ) )
----
3276

onlyif mysql # aggregate syntax: 
query II rowsort label-8299
SELECT ALL 71 AS col2, - MIN( DISTINCT + + 69 ) * + - 73 + - 44
----
71
4993

skipif mysql # not compatible
query II rowsort label-8299
SELECT ALL 71 AS col2, - MIN ( DISTINCT + + 69 ) * + - 73 + - 44
----
71
4993

onlyif mysql # aggregate syntax: 
query II rowsort label-8300
SELECT ALL 73, 21 * + - COALESCE ( + 94, 0 * COUNT( * ) * + 90 * + 66 + - SUM( DISTINCT 39 ), 18 ) AS col0
----
73
-1974

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL 73, 21 * + - COALESCE ( + 94, 0 * COUNT ( * ) * + 90 * + 66 + - SUM ( DISTINCT 39 ), 18 ) AS col0
----
73
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT COUNT( * ) * - 77 * - - 42
----
-3234

skipif mysql # not compatible
query I rowsort label-8301
SELECT COUNT ( * ) * - 77 * - - 42
----
-3234

query II rowsort
SELECT DISTINCT 36 AS col1, 80 - + COALESCE ( - 80, - + 70, + + 86 )
----
36
160

query I rowsort
SELECT DISTINCT 97 * - + 12 + 66
----
-1098

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + 45 * + - COUNT( * ) col2
----
-45

skipif mysql # not compatible
query I rowsort label-8304
SELECT + 45 * + - COUNT ( * ) col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8305
SELECT ALL - AVG ( - + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - AVG ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT 55 DIV - 6 - + 69 AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-8306
SELECT 55 / - 6 - + 69 AS col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT - MAX( DISTINCT 63 ) * + 25 col2
----
-1575

skipif mysql # not compatible
query I rowsort label-8307
SELECT - MAX ( DISTINCT 63 ) * + 25 col2
----
-1575

query I rowsort
SELECT ALL - 66 + - 69 * + + 73 + - + 32
----
-5135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8309
SELECT MIN( + CAST( NULL AS SIGNED ) ) / 26, 3 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8309
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) / 26, 3 AS col0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT ALL 67 * - 55 + SUM( 88 ) - COUNT( * ) * 42 * 0
----
-3597

skipif mysql # not compatible
query I rowsort label-8310
SELECT ALL 67 * - 55 + SUM ( 88 ) - COUNT ( * ) * 42 * 0
----
-3597

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + ( COALESCE ( - COUNT( * ), - 57 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8311
SELECT + ( COALESCE ( - COUNT ( * ), - 57 ) )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8312
SELECT - CASE + + COUNT( DISTINCT + 85 ) WHEN 14 THEN + ( + 73 ) * - + 87 / - + COUNT( 95 ) + + 68 END AS col2, + SUM( + CASE - - ( - 5 ) WHEN - 55 * + + 58 + COALESCE ( 48, + + 84 + 79 * 27 * + 37 - - 79 ) THEN + 80 / - 88 + + 8 + 21 - + 26 ELSE + + NULLIF ( + 54, 65 + + + 79 ) + - + CAST( NULL AS SIGNED ) END ) + + 25 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8312
SELECT - CASE + + COUNT ( DISTINCT + 85 ) WHEN 14 THEN + ( + 73 ) * - + 87 / - + COUNT ( 95 ) + + 68 END AS col2, + SUM ( + CASE - - ( - 5 ) WHEN - 55 * + + 58 + COALESCE ( 48, + + 84 + 79 * 27 * + 37 - - 79 ) THEN + 80 / - 88 + + 8 + 21 - + 26 ELSE + + NULLIF ( + 54, 65 + + + 79 ) + - + CAST ( NULL AS INTEGER ) END ) + + 25 AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 84 * + + 94 * 11 + 50
----
-86806

onlyif mysql # DIV for integer division: 
query I rowsort label-8314
SELECT 67 DIV 70 + + 43
----
43

skipif mysql # not compatible
query I rowsort label-8314
SELECT 67 / 70 + + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT + COUNT( + 98 ) * + 35 + MIN( ALL + 62 )
----
97

skipif mysql # not compatible
query I rowsort label-8315
SELECT + COUNT ( + 98 ) * + 35 + MIN ( ALL + 62 )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT - + 62 DIV + 97 - + COUNT( * ) - + 45 + - 16 * 86 * 15 + - 70 col1
----
-20756

skipif mysql # not compatible
query I rowsort label-8316
SELECT - + 62 / + 97 - + COUNT ( * ) - + 45 + - 16 * 86 * 15 + - 70 col1
----
-20756

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT ALL - - COUNT( + ( - + ( - 2 ) ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - - COUNT ( + ( - + ( - 2 ) ) ) AS col0
----
1

query II rowsort
SELECT DISTINCT - 54 AS col2, 59
----
-54
59

query I rowsort
SELECT DISTINCT 15 * - 15 + + 29 AS col2
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT MAX( DISTINCT 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8320
SELECT MAX ( DISTINCT 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-8321
SELECT COUNT( * ), - 44 * - 34 + + + 14 AS col2
----
1
1510

skipif mysql # not compatible
query II rowsort label-8321
SELECT COUNT ( * ), - 44 * - 34 + + + 14 AS col2
----
1
1510

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT DISTINCT COUNT( + 88 ) * - 92 + + 76
----
-16

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT COUNT ( + 88 ) * - 92 + + 76
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8323
SELECT ALL - COUNT( * ), 69 col1
----
-1
69

skipif mysql # not compatible
query II rowsort label-8323
SELECT ALL - COUNT ( * ), 69 col1
----
-1
69

query I rowsort
SELECT 1 * - ( + 18 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT MIN( ALL 75 ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8325
SELECT MIN ( ALL 75 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL 2 * + COUNT( * ) - 71 AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL 2 * + COUNT ( * ) - 71 AS col0
----
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8327
SELECT + 1 * - 3, - ( + + ( 45 ) ) + - - 0 + - ( - 44 ) + - 76 - - - 33 / - 44 * - + 66 + - 73 + + 29 * ( CAST( NULL AS DECIMAL ) ) AS col1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-8327
SELECT + 1 * - 3, - ( + + ( 45 ) ) + - - 0 + - ( - 44 ) + - 76 - - - 33 / - 44 * - + 66 + - 73 + + 29 * ( CAST ( NULL AS REAL ) ) AS col1
----
-3
NULL

query I rowsort
SELECT 10 * 5 - - + 25 AS col0
----
75

query I rowsort
SELECT DISTINCT - 37 * - 67 col1
----
2479

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8330
SELECT - NULLIF ( - 28, - CAST( + AVG ( + - 59 ) AS DECIMAL ) ) * 52 + CASE + 23 WHEN + 14 THEN - 88 * + - 69 END + - AVG ( - ( + 58 ) ) - + + 65 + + + 81 * - 50 * + NULLIF ( - 63, 81 ) - - + 18 * + - 94 + + NULLIF ( - 98, + - 69 * AVG ( 10 ) * + 10 ) * ( - 80 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8330
SELECT - NULLIF ( - 28, - CAST ( + AVG ( + - 59 ) AS REAL ) ) * 52 + CASE + 23 WHEN + 14 THEN - 88 * + - 69 END + - AVG ( - ( + 58 ) ) - + + 65 + + + 81 * - 50 * + NULLIF ( - 63, 81 ) - - + 18 * + - 94 + + NULLIF ( - 98, + - 69 * AVG ( 10 ) * + 10 ) * ( - 80 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 92 - + 76
----
16

query I rowsort
SELECT - 64 - 81 + - ( + ( 84 ) )
----
-229

query I rowsort
SELECT ALL - 20 * + ( + 59 ) col1
----
-1180

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT - 40 - MAX( + 10 ) * - ( - COUNT( * ) ) + + - 93 + + 2
----
-141

skipif mysql # not compatible
query I rowsort label-8334
SELECT - 40 - MAX ( + 10 ) * - ( - COUNT ( * ) ) + + - 93 + + 2
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT ALL 52 DIV - 58 col2
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL 52 / - 58 col2
----
0

query I rowsort
SELECT ALL CASE - 14 WHEN - ( 15 ) THEN - 99 ELSE - 95 END
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8337
SELECT - 28 + - COALESCE ( - 31, + + 82 DIV CASE - + 60 WHEN + + 10 THEN NULL WHEN - - COUNT( * ) * - 43 - + + COUNT( * ) * ( - SUM( - ( + ( - - ( + + 45 ) ) ) ) ) + + ( - 47 ) THEN NULL ELSE - 71 END + - COUNT( * ) DIV - - 25 + + 96 * - 44 )
----
3

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 28 + - COALESCE ( - 31, + + 82 / CASE - + 60 WHEN + + 10 THEN NULL WHEN - - COUNT ( * ) * - 43 - + + COUNT ( * ) * ( - SUM ( - ( + ( - - ( + + 45 ) ) ) ) ) + + ( - 47 ) THEN NULL ELSE - 71 END + - COUNT ( * ) / - - 25 + + 96 * - 44 )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8338
SELECT - COALESCE ( 50, COUNT( * ), CAST( - 83 AS SIGNED ) DIV + 52 * + SUM( 60 ) DIV 6 ) * + 21 AS col0
----
-1050

skipif mysql # not compatible
query I rowsort label-8338
SELECT - COALESCE ( 50, COUNT ( * ), CAST ( - 83 AS INTEGER ) / + 52 * + SUM ( 60 ) / 6 ) * + 21 AS col0
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT + + 84 * - COUNT( * ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-8339
SELECT + + 84 * - COUNT ( * ) AS col1
----
-84

query I rowsort
SELECT - 69 + 68 AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8341
SELECT ALL - 62 DIV - 26
----
2

skipif mysql # not compatible
query I rowsort label-8341
SELECT ALL - 62 / - 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT - 82 + + 7 * - 56 + + 17 + - 47 + + + 65 * + MAX( - 3 )
----
-699

skipif mysql # not compatible
query I rowsort label-8342
SELECT - 82 + + 7 * - 56 + + 17 + - 47 + + + 65 * + MAX ( - 3 )
----
-699

query I rowsort
SELECT - 96 + - 30 AS col0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT ALL - 17 + ( MIN( + 2 ) )
----
-15

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL - 17 + ( MIN ( + 2 ) )
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8345
SELECT DISTINCT 47, 50 * - COUNT( * ) AS col0
----
47
-50

skipif mysql # not compatible
query II rowsort label-8345
SELECT DISTINCT 47, 50 * - COUNT ( * ) AS col0
----
47
-50

query I rowsort
SELECT + - 32 + + ( - 0 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8347
SELECT ALL - CAST( NULL AS SIGNED ) * - + 11 * - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - CAST ( NULL AS INTEGER ) * - + 11 * - 88 AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 68 + + 27 AS col2
----
95

query II rowsort
SELECT - 76 AS col1, 9
----
-76
9

query I rowsort
SELECT ALL - 77 + + 5 AS col0
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8351
SELECT ALL 99 AS col1, + CAST( NULL AS SIGNED ) AS col0
----
99
NULL

skipif mysql # not compatible
query II rowsort label-8351
SELECT ALL 99 AS col1, + CAST ( NULL AS INTEGER ) AS col0
----
99
NULL

query I rowsort
SELECT + - 80 + NULLIF ( - 47, 79 ) AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8353
SELECT ALL ( + - 69 ) DIV - 10 - + 66 + - 56 + COUNT( * ) DIV - 61 * - - 92
----
-116

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL ( + - 69 ) / - 10 - + 66 + - 56 + COUNT ( * ) / - 61 * - - 92
----
-116

query I rowsort
SELECT DISTINCT + - 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8355
SELECT + 44 DIV - 61 + + 46 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8355
SELECT + 44 / - 61 + + 46 AS col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT + COUNT( * ) * + + 77 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-8356
SELECT + COUNT ( * ) * + + 77 AS col0
----
77

onlyif mysql # DIV for integer division: 
query II rowsort label-8357
SELECT ALL 43 DIV + - 7 AS col0, 62
----
-6
62

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL 43 / + - 7 AS col0, 62
----
-6
62

query I rowsort
SELECT + 54 + + 73 col0
----
127

query II rowsort
SELECT + ( - 24 ) col0, 99
----
-24
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8360
SELECT + SUM( + 22 ) AS col2, + 70 * - CASE + 60 WHEN + ( - 66 ) * + + 5 THEN - CASE - 22 WHEN - 8 THEN - 45 WHEN - 80 THEN NULL ELSE NULL END WHEN + 50 THEN + 78 END * COUNT( DISTINCT + 67 ) + COUNT( ( - 47 ) ) + + ( - 13 ) + + ( 63 ) * - 82 * - + SUM( ALL + 68 ) * MIN( DISTINCT - 78 )
----
22
NULL

skipif mysql # not compatible
query II rowsort label-8360
SELECT + SUM ( + 22 ) AS col2, + 70 * - CASE + 60 WHEN + ( - 66 ) * + + 5 THEN - CASE - 22 WHEN - 8 THEN - 45 WHEN - 80 THEN NULL ELSE NULL END WHEN + 50 THEN + 78 END * COUNT ( DISTINCT + 67 ) + COUNT ( ( - 47 ) ) + + ( - 13 ) + + ( 63 ) * - 82 * - + SUM ( ALL + 68 ) * MIN ( DISTINCT - 78 )
----
22
NULL

query I rowsort
SELECT + 41 * - 6 * + 2 * + 73 + + 64 AS col2
----
-35852

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT + COUNT( * ) * - + 7 col0
----
-7

skipif mysql # not compatible
query I rowsort label-8362
SELECT + COUNT ( * ) * - + 7 col0
----
-7

query I rowsort
SELECT - 60 * - 91 * + - 72 - - 19 AS col1
----
-393101

query I rowsort
SELECT ALL 89 * - - 53
----
4717

query I rowsort
SELECT + 95 + - + 13
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT - 0 + MIN( 91 ) - - - 70 + + 68 * + 66 + + - 34 + 90
----
4565

skipif mysql # not compatible
query I rowsort label-8366
SELECT - 0 + MIN ( 91 ) - - - 70 + + 68 * + 66 + + - 34 + 90
----
4565

query I rowsort
SELECT + ( + ( - 98 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-8368
SELECT ALL + COUNT( DISTINCT 50 ), 94 col0
----
1
94

skipif mysql # not compatible
query II rowsort label-8368
SELECT ALL + COUNT ( DISTINCT 50 ), 94 col0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT - MIN( DISTINCT + - 26 ) * 2 + 13 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8369
SELECT - MIN ( DISTINCT + - 26 ) * 2 + 13 AS col0
----
65

query I rowsort
SELECT + 47 * + + 62 * 50
----
145700

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT 79 * + ( + 94 ) + - COUNT( * ) + - - 75
----
7500

skipif mysql # not compatible
query I rowsort label-8371
SELECT 79 * + ( + 94 ) + - COUNT ( * ) + - - 75
----
7500

query I rowsort
SELECT - 41 + + 79 + + - 5
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8373
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 46 THEN NULL WHEN + ( - 92 ) * + ( - + COUNT( * ) ) * + COUNT( * ) THEN + + 55 * 74 ELSE - 64 DIV 15 END col2
----
-4

skipif mysql # not compatible
query I rowsort label-8373
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 46 THEN NULL WHEN + ( - 92 ) * + ( - + COUNT ( * ) ) * + COUNT ( * ) THEN + + 55 * 74 ELSE - 64 / 15 END col2
----
-4

query I rowsort
SELECT + 11 * - 37 AS col0
----
-407

query II rowsort
SELECT - 17 + + 44 AS col0, + COALESCE ( - 46, - - 74 ) + 12
----
27
-34

query I rowsort
SELECT NULLIF ( 46, - 47 ) AS col0
----
46

query I rowsort
SELECT ALL + - 60 * - 25 + + 28 col0
----
1528

query I rowsort
SELECT + - ( ( + 23 ) ) * ( + 33 )
----
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT ALL 5 * - COUNT( * ) + - 75 col1
----
-80

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL 5 * - COUNT ( * ) + - 75 col1
----
-80

query I rowsort
SELECT - 3 * - + 88
----
264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8381
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( 66 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( 66 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL + + 25 + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + + 25 + COUNT ( * )
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT - CAST( COUNT( * ) AS SIGNED ) - + 26
----
-27

skipif mysql # not compatible
query I rowsort label-8383
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - + 26
----
-27

query I rowsort
SELECT - 83 - 87
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT - SUM( ALL + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8385
SELECT - SUM ( ALL + 16 )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8386
SELECT + + 45 DIV + 51 * - 15 + + 96 col1
----
96

skipif mysql # not compatible
query I rowsort label-8386
SELECT + + 45 / + 51 * - 15 + + 96 col1
----
96

query I rowsort
SELECT DISTINCT + 23 + 28 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL + 65 - - - 16 * + - 35 - COUNT( * ) + - MIN( ALL 72 )
----
552

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL + 65 - - - 16 * + - 35 - COUNT ( * ) + - MIN ( ALL 72 )
----
552

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT DISTINCT - 21 * - - MIN( - - 21 ) - + 89 * + + 21 AS col1
----
-2310

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - 21 * - - MIN ( - - 21 ) - + 89 * + + 21 AS col1
----
-2310

onlyif mysql # DIV for integer division: 
query II rowsort label-8390
SELECT 28, 30 DIV - 38 AS col2
----
28
0

skipif mysql # not compatible
query II rowsort label-8390
SELECT 28, 30 / - 38 AS col2
----
28
0

query I rowsort
SELECT ( + 63 ) + + - 37
----
26

query I rowsort
SELECT 47 * - - 36 + - + 0 + + - 55 AS col0
----
1637

onlyif mysql # aggregate syntax: 
query I rowsort label-8393
SELECT ALL - 92 - + 18 + + - 6 + + SUM( DISTINCT + - 81 )
----
-197

skipif mysql # not compatible
query I rowsort label-8393
SELECT ALL - 92 - + 18 + + - 6 + + SUM ( DISTINCT + - 81 )
----
-197

onlyif mysql # DIV for integer division: 
query I rowsort label-8394
SELECT ALL COALESCE ( + + 77, 26 * - - 93, + - 47 + - 87, 33 ) DIV + 16 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL COALESCE ( + + 77, 26 * - - 93, + - 47 + - 87, 33 ) / + 16 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT COUNT( * ) * NULLIF ( 85, + 30 )
----
85

skipif mysql # not compatible
query I rowsort label-8395
SELECT COUNT ( * ) * NULLIF ( 85, + 30 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT ( + - 97 ) * - + COUNT( * ) * 40 - 24
----
3856

skipif mysql # not compatible
query I rowsort label-8396
SELECT ( + - 97 ) * - + COUNT ( * ) * 40 - 24
----
3856

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT COUNT( * ) - + 65
----
-64

skipif mysql # not compatible
query I rowsort label-8397
SELECT COUNT ( * ) - + 65
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-8398
SELECT + 22, ( COUNT( * ) ) * - 98 AS col0
----
22
-98

skipif mysql # not compatible
query II rowsort label-8398
SELECT + 22, ( COUNT ( * ) ) * - 98 AS col0
----
22
-98

query I rowsort
SELECT 54 * + 92 col0
----
4968

query I rowsort
SELECT 84 * - + 0 + + + 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL CAST( + + 2 AS SIGNED ) + + 64 - - 38 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL CAST ( + + 2 AS INTEGER ) + + 64 - - 38 AS col2
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-8402
SELECT - 80 * + 65 * - 82 + + - COUNT( DISTINCT + + 28 ) + - 29 AS col2, 33 - + 78 * - - 58 col1
----
426370
-4491

skipif mysql # not compatible
query II rowsort label-8402
SELECT - 80 * + 65 * - 82 + + - COUNT ( DISTINCT + + 28 ) + - 29 AS col2, 33 - + 78 * - - 58 col1
----
426370
-4491

query I rowsort
SELECT 70 * + + 93 AS col2
----
6510

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL ( 54 ) * + 13 * - - COUNT( * ) AS col0
----
702

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL ( 54 ) * + 13 * - - COUNT ( * ) AS col0
----
702

query I rowsort
SELECT ALL - + 90 + + 37
----
-53

query I rowsort
SELECT 32 + + 60
----
92

query I rowsort
SELECT ALL ( + 53 ) + 39
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8408
SELECT + 53 + - CAST( + 36 AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) AS col0
----
17
NULL

skipif mysql # not compatible
query II rowsort label-8408
SELECT + 53 + - CAST ( + 36 AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col0
----
17
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8409
SELECT + CASE - - 39 WHEN + - 33 + 52 + + 57 + CAST( + - NULLIF ( 59, - 72 ) AS SIGNED ) + + 51 THEN - + COUNT( * ) + SUM( ALL + - 51 ) + + - 49 + + 62 * 1 * 97 * 9 * + - SUM( ALL - + 45 ) * + 1 * + - COUNT( * ) / + 52 * - + 2 ELSE - MIN( 51 ) END
----
-51

skipif mysql # not compatible
query I rowsort label-8409
SELECT + CASE - - 39 WHEN + - 33 + 52 + + 57 + CAST ( + - NULLIF ( 59, - 72 ) AS INTEGER ) + + 51 THEN - + COUNT ( * ) + SUM ( ALL + - 51 ) + + - 49 + + 62 * 1 * 97 * 9 * + - SUM ( ALL - + 45 ) * + 1 * + - COUNT ( * ) / + 52 * - + 2 ELSE - MIN ( 51 ) END
----
-51

query I rowsort
SELECT ( + NULLIF ( - 38, - 40 * + + 38 ) ) + - - ( + + 16 )
----
-22

query II rowsort
SELECT + 80 + - - 95 - 8 col1, 70
----
167
70

query I rowsort
SELECT ALL + 74 - + 0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT DISTINCT + 16 DIV 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT + 16 / 91 AS col2
----
0

query I rowsort
SELECT ALL 73 * + 0 AS col1
----
0

query I rowsort
SELECT 81 + 59 - + - 64
----
204

query II rowsort
SELECT ALL 95 AS col2, - 82 AS col0
----
95
-82

query II rowsort
SELECT - 30 + + - 62 + + - 68, + 93 AS col2
----
-160
93

query I rowsort
SELECT ALL + 33 - + - 16 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT + 69 * COUNT( * ) + + 9
----
78

skipif mysql # not compatible
query I rowsort label-8419
SELECT + 69 * COUNT ( * ) + + 9
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT + COUNT( * ) * + 97 - + 56 + + 33 + + COUNT( * ) - + - 69 AS col0, 26 AS col1
----
144
26

skipif mysql # not compatible
query II rowsort label-8420
SELECT + COUNT ( * ) * + 97 - + 56 + + 33 + + COUNT ( * ) - + - 69 AS col0, 26 AS col1
----
144
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT 85 * COUNT( * ) * + + 9 AS col1
----
765

skipif mysql # not compatible
query I rowsort label-8421
SELECT 85 * COUNT ( * ) * + + 9 AS col1
----
765

query I rowsort
SELECT 91 + + 78 col0
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8423
SELECT COUNT( * ) DIV - + 37 * 78
----
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT COUNT ( * ) / - + 37 * 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT 0 + COUNT( * ) * 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8424
SELECT 0 + COUNT ( * ) * 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8425
SELECT DISTINCT + 78 DIV - 24, 36 AS col2
----
-3
36

skipif mysql # not compatible
query II rowsort label-8425
SELECT DISTINCT + 78 / - 24, 36 AS col2
----
-3
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8426
SELECT ALL 35 * + 91 col2, SUM( ALL + 82 ) DIV + 84
----
3185
0

skipif mysql # not compatible
query II rowsort label-8426
SELECT ALL 35 * + 91 col2, SUM ( ALL + 82 ) / + 84
----
3185
0

query I rowsort
SELECT 35 + + - 97
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + COUNT( * ) * + 40 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + COUNT ( * ) * + 40 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT COUNT( 70 ) * - 69
----
-69

skipif mysql # not compatible
query I rowsort label-8429
SELECT COUNT ( 70 ) * - 69
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT + 13 * - + 79 + + + NULLIF ( CASE 36 WHEN - ( - CAST( 60 AS SIGNED ) ) - COUNT( * ) * - 92 THEN + 4 END, + 3 * ( - 38 ) + + 71 + - - 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT + 13 * - + 79 + + + NULLIF ( CASE 36 WHEN - ( - CAST ( 60 AS INTEGER ) ) - COUNT ( * ) * - 92 THEN + 4 END, + 3 * ( - 38 ) + + 71 + - - 75 ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8431
SELECT DISTINCT 34 + - CAST( + - 53 AS SIGNED ) + + 5 * - 0 DIV + MIN( 53 ) * - 39 * + 27 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT 34 + - CAST ( + - 53 AS INTEGER ) + + 5 * - 0 / + MIN ( 53 ) * - 39 * + 27 AS col1
----
87

query I rowsort
SELECT ALL 93 + - + 26 + - - 4 AS col1
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT + 50 * + 10 + + 48 - 82, COUNT( DISTINCT 43 ) AS col1
----
466
1

skipif mysql # not compatible
query II rowsort label-8433
SELECT + 50 * + 10 + + 48 - 82, COUNT ( DISTINCT 43 ) AS col1
----
466
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT DISTINCT 87 DIV 61 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT 87 / 61 / - 24
----
0

query I rowsort
SELECT DISTINCT + + 84 + - 31 AS col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8436
SELECT ALL - 50 * + - ( 10 ) + - 14 + - 31 AS col0, - COALESCE ( - + 16, - 90 + - ( 31 ) - 60 / + 74 ) * + - CAST( NULL AS SIGNED ) + 19 + + - AVG ( 58 ) + + SUM( - 50 ) + + CAST( + 73 AS SIGNED ) * + COUNT( * ) AS col2
----
455
NULL

skipif mysql # not compatible
query II rowsort label-8436
SELECT ALL - 50 * + - ( 10 ) + - 14 + - 31 AS col0, - COALESCE ( - + 16, - 90 + - ( 31 ) - 60 / + 74 ) * + - CAST ( NULL AS INTEGER ) + 19 + + - AVG ( 58 ) + + SUM ( - 50 ) + + CAST ( + 73 AS INTEGER ) * + COUNT ( * ) AS col2
----
455
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT ALL - 39 + + COUNT( * ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL - 39 + + COUNT ( * ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL - MIN( DISTINCT - 49 ) * + 18 AS col1
----
882

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL - MIN ( DISTINCT - 49 ) * + 18 AS col1
----
882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8439
SELECT - 42 * - - CAST( NULL AS SIGNED ) + + SUM( ALL + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8439
SELECT - 42 * - - CAST ( NULL AS INTEGER ) + + SUM ( ALL + 69 )
----
NULL

query I rowsort
SELECT ALL 4 - - + 91 + + CASE + - 22 WHEN - - 32 THEN + COALESCE ( + 4, + 8 ) WHEN + - 91 THEN - 98 ELSE NULL END * + - 6
----
NULL

query I rowsort
SELECT ALL - 87 * + 67
----
-5829

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT - 87 DIV - 13
----
6

skipif mysql # not compatible
query I rowsort label-8442
SELECT - 87 / - 13
----
6

query I rowsort
SELECT ALL 61 * + 24 * 13 AS col2
----
19032

query I rowsort
SELECT + - 43 * - + ( 40 ) * 47
----
80840

query I rowsort
SELECT - COALESCE ( 81, + 32 + - 82, 93 ) AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT + + 82 - + COUNT( * ) * - 12
----
94

skipif mysql # not compatible
query I rowsort label-8446
SELECT + + 82 - + COUNT ( * ) * - 12
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT - COALESCE ( - 8, - 16, - - 71 ) * MIN( + 68 ) AS col1
----
544

skipif mysql # not compatible
query I rowsort label-8447
SELECT - COALESCE ( - 8, - 16, - - 71 ) * MIN ( + 68 ) AS col1
----
544

query I rowsort
SELECT + - ( - 9 ) - - ( - 32 )
----
-23

query I rowsort
SELECT + 72 * - - 39 AS col0
----
2808

query I rowsort
SELECT DISTINCT + 74 * ( + + 37 ) * + 7 AS col0
----
19166

query II rowsort
SELECT DISTINCT 48 AS col2, COALESCE ( + COALESCE ( 46, - 78 ), + + 27 ) AS col2
----
48
46

query I rowsort
SELECT - 42 * + 37
----
-1554

query I rowsort
SELECT ( + 45 ) AS col1
----
45

query I rowsort
SELECT + 6 * + 79
----
474

query I rowsort
SELECT - 11 + + - 56 * + - 77 AS col0
----
4301

query I rowsort
SELECT - 82 * - + 16 AS col0
----
1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT ALL CAST( + AVG ( + 61 ) AS SIGNED ) * + - 84 * + + 53 + - 11 * 0 AS col0
----
-271572

skipif mysql # not compatible
query I rowsort label-8457
SELECT ALL CAST ( + AVG ( + 61 ) AS INTEGER ) * + - 84 * + + 53 + - 11 * 0 AS col0
----
-271572

query I rowsort
SELECT ALL - 30 * 19 AS col0
----
-570

onlyif mysql # DIV for integer division: 
query II rowsort label-8459
SELECT DISTINCT - 71 * 63 + + ( + - 60 ) + - 26 * + 13 col2, - 99 - 44 DIV + 89 AS col2
----
-4871
-99

skipif mysql # not compatible
query II rowsort label-8459
SELECT DISTINCT - 71 * 63 + + ( + - 60 ) + - 26 * + 13 col2, - 99 - 44 / + 89 AS col2
----
-4871
-99

query II rowsort
SELECT + 76 AS col1, + 85 AS col2
----
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL 71 * COUNT( * ) * - 17 + + + 69 AS col1
----
-1138

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL 71 * COUNT ( * ) * - 17 + + + 69 AS col1
----
-1138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT - CASE + - 72 WHEN 58 * + - ( - 82 ) + + - CAST( - CASE - 66 WHEN 73 THEN NULL ELSE - COUNT( * ) END AS SIGNED ) THEN NULL WHEN + NULLIF ( - CASE - 36 WHEN - - SUM( 73 ) * - 9 * MAX( + 63 ) THEN - MIN( + 77 ) * + + CAST( NULL AS SIGNED ) + + - 25 * + 32 * 63 * + COUNT( * ) END, + 24 ) THEN + COUNT( * ) + + 37 WHEN + SUM( ALL - 6 ) * - - 92 THEN NULL ELSE 58 END * + 9
----
-522

skipif mysql # not compatible
query I rowsort label-8462
SELECT - CASE + - 72 WHEN 58 * + - ( - 82 ) + + - CAST ( - CASE - 66 WHEN 73 THEN NULL ELSE - COUNT ( * ) END AS INTEGER ) THEN NULL WHEN + NULLIF ( - CASE - 36 WHEN - - SUM ( 73 ) * - 9 * MAX ( + 63 ) THEN - MIN ( + 77 ) * + + CAST ( NULL AS INTEGER ) + + - 25 * + 32 * 63 * + COUNT ( * ) END, + 24 ) THEN + COUNT ( * ) + + 37 WHEN + SUM ( ALL - 6 ) * - - 92 THEN NULL ELSE 58 END * + 9
----
-522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8463
SELECT ALL + CAST( NULL AS SIGNED ) * ( - 11 ) * 29 + 37 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + CAST ( NULL AS INTEGER ) * ( - 11 ) * 29 + 37 * 3
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8464
SELECT + 33 AS col2, - 91 DIV + COUNT( NULLIF ( - 95, + 2 + ( - 53 ) ) )
----
33
-91

skipif mysql # not compatible
query II rowsort label-8464
SELECT + 33 AS col2, - 91 / + COUNT ( NULLIF ( - 95, + 2 + ( - 53 ) ) )
----
33
-91

query I rowsort
SELECT - COALESCE ( + 23, + 14 ) - 35
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT + COUNT( ALL + CASE COALESCE ( 21, + + 17 ) WHEN COALESCE ( - - CASE + 26 WHEN - 51 THEN 75 ELSE - 73 * + - 94 END, + COALESCE ( + + 27, - 3 ) ) THEN + 72 / - CAST( NULL AS SIGNED ) + - 54 WHEN 54 - + CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END ) * + 1 * + COUNT( * ) col2
----
0

skipif mysql # not compatible
query I rowsort label-8466
SELECT + COUNT ( ALL + CASE COALESCE ( 21, + + 17 ) WHEN COALESCE ( - - CASE + 26 WHEN - 51 THEN 75 ELSE - 73 * + - 94 END, + COALESCE ( + + 27, - 3 ) ) THEN + 72 / - CAST ( NULL AS INTEGER ) + - 54 WHEN 54 - + CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END ) * + 1 * + COUNT ( * ) col2
----
0

query II rowsort
SELECT + 78 AS col0, + 73 * + 98 * 85 * + 33
----
78
20066970

query I rowsort
SELECT 13 * 26 + ( + 49 ) + + + 96
----
483

query II rowsort
SELECT + 11 AS col0, - ( 93 )
----
11
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL + 34 * 79 - - COUNT( * ) + + 76 * - ( 77 )
----
-3165

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + 34 * 79 - - COUNT ( * ) + + 76 * - ( 77 )
----
-3165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8471
SELECT DISTINCT + - COUNT( * ), 91 * - 0 * ( - CAST( NULL AS SIGNED ) ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8471
SELECT DISTINCT + - COUNT ( * ), 91 * - 0 * ( - CAST ( NULL AS INTEGER ) ) AS col1
----
-1
NULL

query I rowsort
SELECT ALL + 77 * + 61
----
4697

query I rowsort
SELECT + + 72 - - 95 AS col0
----
167

query I rowsort
SELECT - 51 + 9 AS col2
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8475
SELECT + 21 DIV + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-8475
SELECT + 21 / + COUNT ( * )
----
21

query I rowsort
SELECT DISTINCT + 84 * - 54 AS col1
----
-4536

query I rowsort
SELECT - + ( - + 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT + 78 + 9 + + 99 + 99 * + 19 + - + 4 * + ( + - 63 ) / + CASE + 5 WHEN - - 77 + 99 THEN + + COALESCE ( + - 23, + 37 ) WHEN + AVG ( DISTINCT 40 ) * 46 - - + COUNT( * ) + + 41 + + 2 * - 68 THEN COUNT( * ) ELSE NULL END + + COUNT( * ) - + COALESCE ( 8, 99 ) * - + ( 92 ) - - + 43 + - 46 - + 11 * - 83 - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT + 78 + 9 + + 99 + 99 * + 19 + - + 4 * + ( + - 63 ) / + CASE + 5 WHEN - - 77 + 99 THEN + + COALESCE ( + - 23, + 37 ) WHEN + AVG ( DISTINCT 40 ) * 46 - - + COUNT ( * ) + + 41 + + 2 * - 68 THEN COUNT ( * ) ELSE NULL END + + COUNT ( * ) - + COALESCE ( 8, 99 ) * - + ( 92 ) - - + 43 + - 46 - + 11 * - 83 - - 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8479
SELECT DISTINCT 84 AS col0, - 17 * - 98 + - + SUM( DISTINCT - - 81 )
----
84
1585

skipif mysql # not compatible
query II rowsort label-8479
SELECT DISTINCT 84 AS col0, - 17 * - 98 + - + SUM ( DISTINCT - - 81 )
----
84
1585

query I rowsort
SELECT ALL + 33 + + 93 * + 77 + 6
----
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT 95 * - - COUNT( ALL + - 75 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 95 * - - COUNT ( ALL + - 75 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8482
SELECT ALL CAST( - - 96 AS SIGNED ) + COUNT( * ) + ( - 47 ) + CAST( - - 93 AS SIGNED ) * - + 95 - 91 DIV - 22 AS col1
----
-8781

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL CAST ( - - 96 AS INTEGER ) + COUNT ( * ) + ( - 47 ) + CAST ( - - 93 AS INTEGER ) * - + 95 - 91 / - 22 AS col1
----
-8781

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8483
SELECT ALL 43 AS col2, + 35 + + + CAST( NULL AS SIGNED ) * 4 + - 6
----
43
NULL

skipif mysql # not compatible
query II rowsort label-8483
SELECT ALL 43 AS col2, + 35 + + + CAST ( NULL AS INTEGER ) * 4 + - 6
----
43
NULL

query II rowsort
SELECT ALL 24 + - 56, + 72 AS col1
----
-32
72

query II rowsort
SELECT + 6 + - 79 * - 40 * + + 3, 32 AS col1
----
9486
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8486
SELECT + 65 * + 60 * - SUM( + CAST( NULL AS SIGNED ) ) AS col1, + COUNT( * ) * + 34 AS col1
----
NULL
34

skipif mysql # not compatible
query II rowsort label-8486
SELECT + 65 * + 60 * - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1, + COUNT ( * ) * + 34 AS col1
----
NULL
34

query I rowsort
SELECT + 82 + 6 AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8488
SELECT ALL + COUNT( * ) col2, - 72 + - 52 AS col2
----
1
-124

skipif mysql # not compatible
query II rowsort label-8488
SELECT ALL + COUNT ( * ) col2, - 72 + - 52 AS col2
----
1
-124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8489
SELECT + CAST( ( SUM( - 69 ) ) AS SIGNED ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8489
SELECT + CAST ( ( SUM ( - 69 ) ) AS INTEGER ) AS col2
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT DISTINCT - COUNT( * ) DIV + 47 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - COUNT ( * ) / + 47 + - COUNT ( * )
----
-1

query II rowsort
SELECT DISTINCT + 86 AS col1, - 57 - + + 94 * + 24 AS col1
----
86
-2313

query II rowsort
SELECT ALL + 25, ( 58 ) + + 73 AS col0
----
25
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8493
SELECT - NULLIF ( - NULLIF ( - 74, + 71 + + 76 - + - 73 ), - 33 + + COALESCE ( 37, - 60, + 58 + - + 89 + 49 * CAST( + 59 AS SIGNED ) DIV + - 28 * - + ( + + 95 ) ) - + NULLIF ( - - COALESCE ( 46, COUNT( * ) * + + CAST( NULL AS SIGNED ), + + 25, - 16 ), - CASE + 3 WHEN + - 48 THEN - 9 END - - 10 ) * + + 3 ) + + - 11 + 58 - + + CAST( + 14 AS SIGNED ) + + ( - - SUM( DISTINCT 29 ) ) DIV - 40 * - 26
----
-41

skipif mysql # not compatible
query I rowsort label-8493
SELECT - NULLIF ( - NULLIF ( - 74, + 71 + + 76 - + - 73 ), - 33 + + COALESCE ( 37, - 60, + 58 + - + 89 + 49 * CAST ( + 59 AS INTEGER ) / + - 28 * - + ( + + 95 ) ) - + NULLIF ( - - COALESCE ( 46, COUNT ( * ) * + + CAST ( NULL AS INTEGER ), + + 25, - 16 ), - CASE + 3 WHEN + - 48 THEN - 9 END - - 10 ) * + + 3 ) + + - 11 + 58 - + + CAST ( + 14 AS INTEGER ) + + ( - - SUM ( DISTINCT 29 ) ) / - 40 * - 26
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT + CAST( - 48 AS SIGNED ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8494
SELECT + CAST ( - 48 AS INTEGER ) AS col1
----
-48

query I rowsort
SELECT + 99 * - + 7 AS col0
----
-693

query I rowsort
SELECT + + 45 * + 32 * + ( + 22 ) + + - 52
----
31628

onlyif mysql # DIV for integer division: 
query II rowsort label-8497
SELECT ALL + 7, - 95 - + 49 DIV - 14 AS col0
----
7
-92

skipif mysql # not compatible
query II rowsort label-8497
SELECT ALL + 7, - 95 - + 49 / - 14 AS col0
----
7
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8498
SELECT - - MIN( + - 31 ) DIV - 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8498
SELECT - - MIN ( + - 31 ) / - 25 AS col1
----
1

onlyif mysql # aggregate syntax: 
query III rowsort label-8499
SELECT ALL + + COUNT( * ) AS col2, ( + + MAX( DISTINCT - 21 ) ), + 23 col0
----
1
-21
23

skipif mysql # not compatible
query III rowsort label-8499
SELECT ALL + + COUNT ( * ) AS col2, ( + + MAX ( DISTINCT - 21 ) ), + 23 col0
----
1
-21
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT DISTINCT ( + 59 ) DIV + 2 + - + 37
----
-8

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT ( + 59 ) / + 2 + - + 37
----
-8

query I rowsort
SELECT ALL + 6 * + + 16 * + 73 + 86 * - ( + 35 )
----
3998

query I rowsort
SELECT 87 + - 81 AS col0
----
6

query I rowsort
SELECT ALL - ( - 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT - MAX( ALL - + 74 ) + + + MAX( DISTINCT + - 16 ) + 44
----
102

skipif mysql # not compatible
query I rowsort label-8504
SELECT - MAX ( ALL - + 74 ) + + + MAX ( DISTINCT + - 16 ) + 44
----
102

query I rowsort
SELECT + 92 * 46 AS col0
----
4232

query I rowsort
SELECT DISTINCT - 4 * + 78 AS col1
----
-312

query II rowsort
SELECT ALL - - 66, 99 AS col1
----
66
99

query II rowsort
SELECT + 63 AS col2, + 27 - + ( 50 ) - + 24 + + NULLIF ( - 69, - 79 ) + - - 73 - - 79 - - 0 AS col0
----
63
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT 60 * - - 86 * - + 13 + - 58 + - CAST( NULL AS SIGNED ) + + - 31 * + 56 / - + NULLIF ( + 82, 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT 60 * - - 86 * - + 13 + - 58 + - CAST ( NULL AS INTEGER ) + + - 31 * + 56 / - + NULLIF ( + 82, 46 )
----
NULL

query I rowsort
SELECT + 58 * 15 AS col1
----
870

query I rowsort
SELECT DISTINCT - + 70 + 91
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL + - 7 + - 92 + MIN( ALL + - 51 ) + + + 11 * + - 39 + + 86 * - - COUNT( * ) + 86 * + MAX( + 82 ) + + 8 AS col2
----
6567

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + - 7 + - 92 + MIN ( ALL + - 51 ) + + + 11 * + - 39 + + 86 * - - COUNT ( * ) + 86 * + MAX ( + 82 ) + + 8 AS col2
----
6567

query I rowsort
SELECT ( + ( 10 ) ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8514
SELECT 4 * - + 48 * + - 36 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT 4 * - + 48 * + - 36 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 10 + - 33 AS col1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT MIN( ALL - + 17 ) + - 72
----
-89

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT MIN ( ALL - + 17 ) + - 72
----
-89

query I rowsort
SELECT NULLIF ( - 98, - 15 ) + + + 67
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-8518
SELECT ALL - 56 + + 8 + - 15 DIV + 12 + + 40 * 32
----
1231

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL - 56 + + 8 + - 15 / + 12 + + 40 * 32
----
1231

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + ( - 27 ) + - MIN( ALL - 14 )
----
-13

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + ( - 27 ) + - MIN ( ALL - 14 )
----
-13

query I rowsort
SELECT 25 * + 11 * + 6 AS col0
----
1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT 29 - + COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8521
SELECT 29 - + COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT SUM( DISTINCT + 88 ) * 65
----
5720

skipif mysql # not compatible
query I rowsort label-8522
SELECT SUM ( DISTINCT + 88 ) * 65
----
5720

query II rowsort
SELECT ALL 77 * - 72 AS col2, + 19
----
-5544
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL - COUNT( * ) + + 36
----
35

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - COUNT ( * ) + + 36
----
35

query I rowsort
SELECT DISTINCT + 39 + 99 + + ( + 88 ) * + 91 - 28 - + 77 + + 41 - - 53 + - + 23 * + 20 AS col2
----
7675

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT DISTINCT 5 - + 52 * - MAX( DISTINCT 1 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT 5 - + 52 * - MAX ( DISTINCT 1 ) AS col1
----
57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8527
SELECT 64 - + 7 + MAX( DISTINCT + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT 64 - + 7 + MAX ( DISTINCT + + CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT DISTINCT 69 - - - 17
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT 54 * - CASE + 50 WHEN 95 / + MIN( - 48 ) THEN NULL WHEN - COUNT( * ) THEN + ( AVG ( 42 ) ) * 37 / 83 END * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT 54 * - CASE + 50 WHEN 95 / + MIN ( - 48 ) THEN NULL WHEN - COUNT ( * ) THEN + ( AVG ( 42 ) ) * 37 / 83 END * - 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8530
SELECT 89 * + - 29 * - CAST( - ( + + 76 ) AS SIGNED )
----
-196156

skipif mysql # not compatible
query I rowsort label-8530
SELECT 89 * + - 29 * - CAST ( - ( + + 76 ) AS INTEGER )
----
-196156

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT + NULLIF ( - + 68, + 65 * + 84 + ( COUNT( * ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-8531
SELECT + NULLIF ( - + 68, + 65 * + 84 + ( COUNT ( * ) ) )
----
-68

query I rowsort
SELECT DISTINCT 43 - + 67 AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8533
SELECT ALL - + NULLIF ( + 51, + 90 * + COUNT( * ) ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - + NULLIF ( + 51, + 90 * + COUNT ( * ) ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL - - CASE - 81 WHEN 19 + 46 * - - 38 THEN + 5 WHEN - MIN( ALL 28 ) * + 12 * - + 26 / + 17 THEN NULL WHEN + + 65 + + 21 + + + MIN( DISTINCT + 55 ) THEN + - COUNT( * ) * + ( - 81 ) + - ( + 39 ) * + MAX( - - 30 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - - CASE - 81 WHEN 19 + 46 * - - 38 THEN + 5 WHEN - MIN ( ALL 28 ) * + 12 * - + 26 / + 17 THEN NULL WHEN + + 65 + + 21 + + + MIN ( DISTINCT + 55 ) THEN + - COUNT ( * ) * + ( - 81 ) + - ( + 39 ) * + MAX ( - - 30 ) END
----
NULL

query I rowsort
SELECT + 31 * 38 AS col2
----
1178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT ALL 70 * CAST( - 83 AS SIGNED ) * 81 AS col1
----
-470610

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL 70 * CAST ( - 83 AS INTEGER ) * 81 AS col1
----
-470610

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL - - NULLIF ( - - COALESCE ( 45, - + COUNT( - + 13 ), - 72 ), 49 + 93 + + 57 * 85 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - - NULLIF ( - - COALESCE ( 45, - + COUNT ( - + 13 ), - 72 ), 49 + 93 + + 57 * 85 ) AS col2
----
45

query I rowsort
SELECT ALL 28 * + - 56 * - 91 * - 19 AS col0
----
-2711072

query I rowsort
SELECT + ( 84 ) + - - 97
----
181

query I rowsort
SELECT ( - COALESCE ( - + 34, - 66 ) )
----
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-8541
SELECT 94 DIV - - NULLIF ( NULLIF ( - + COUNT( * ), + 77 * - 47 ), CAST( NULL AS DECIMAL ) ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-8541
SELECT 94 / - - NULLIF ( NULLIF ( - + COUNT ( * ), + 77 * - 47 ), CAST ( NULL AS REAL ) ) AS col1
----
-94

query I rowsort
SELECT + - ( - 94 ) * + 36 + - - 47
----
3431

query I rowsort
SELECT ALL - - ( + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL - 14 + - + COUNT( * ) + + 29 + - - 16 * - 86 * - - 45 AS col0
----
-61906

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - 14 + - + COUNT ( * ) + + 29 + - - 16 * - 86 * - - 45 AS col0
----
-61906

onlyif mysql # DIV for integer division: 
query II rowsort label-8545
SELECT ALL 39 DIV 49 + 10 AS col2, 1 AS col2
----
10
1

skipif mysql # not compatible
query II rowsort label-8545
SELECT ALL 39 / 49 + 10 AS col2, 1 AS col2
----
10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL 44 + 73 * - 19 * - COUNT( * )
----
1431

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL 44 + 73 * - 19 * - COUNT ( * )
----
1431

query I rowsort
SELECT 50 + 90 + - - 79 * - 68
----
-5232

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT - COUNT( ALL 15 ) + - + 25
----
-26

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - COUNT ( ALL 15 ) + - + 25
----
-26

query I rowsort
SELECT 48 + 77 AS col2
----
125

query I rowsort
SELECT 19 + + - 13 AS col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8551
SELECT 37, COUNT( * ) + - + SUM( - 56 ) AS col2
----
37
57

skipif mysql # not compatible
query II rowsort label-8551
SELECT 37, COUNT ( * ) + - + SUM ( - 56 ) AS col2
----
37
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT 29 + + ( 28 ) * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT 29 + + ( 28 ) * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8553
SELECT CASE - 29 WHEN 64 * - 38 THEN - COUNT( * ) * 75 + 28 + - + 29 + + COUNT( * ) * + + 95 WHEN + - 68 * NULLIF ( + 16, + 99 ) THEN NULL END - - - CASE - 3 WHEN + - 30 * + - ( + - 69 ) + - + COUNT( + 73 ) + 50 - - 47 * - 70 + + 11 * 16 / + - CAST( NULL AS SIGNED ) * + 84 + - 20 + + ( + SUM( + + CASE - COALESCE ( + ( - 18 ), + + ( + 25 ) * + 65, + 88 * + 63 ) WHEN - 56 / CAST( - 16 AS SIGNED ) THEN ( + 45 ) ELSE NULL END ) ) THEN NULL ELSE - 96 + + 71 * 69 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT CASE - 29 WHEN 64 * - 38 THEN - COUNT ( * ) * 75 + 28 + - + 29 + + COUNT ( * ) * + + 95 WHEN + - 68 * NULLIF ( + 16, + 99 ) THEN NULL END - - - CASE - 3 WHEN + - 30 * + - ( + - 69 ) + - + COUNT ( + 73 ) + 50 - - 47 * - 70 + + 11 * 16 / + - CAST ( NULL AS INTEGER ) * + 84 + - 20 + + ( + SUM ( + + CASE - COALESCE ( + ( - 18 ), + + ( + 25 ) * + 65, + 88 * + 63 ) WHEN - 56 / CAST ( - 16 AS INTEGER ) THEN ( + 45 ) ELSE NULL END ) ) THEN NULL ELSE - 96 + + 71 * 69 END
----
NULL

query II rowsort
SELECT - 98, 87 AS col0
----
-98
87

query II rowsort
SELECT ALL 99 AS col0, 16 + - - 97 + + 94 * - + 52 AS col0
----
99
-4775

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT ALL + COUNT( DISTINCT - 62 ) - + 29 col2
----
-28

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + COUNT ( DISTINCT - 62 ) - + 29 col2
----
-28

query I rowsort
SELECT ALL - 71 - - - 50 AS col1
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8558
SELECT 64 + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8558
SELECT 64 + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8559
SELECT 35 * + CAST( + 70 AS SIGNED )
----
2450

skipif mysql # not compatible
query I rowsort label-8559
SELECT 35 * + CAST ( + 70 AS INTEGER )
----
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-8560
SELECT 73 + - 45 + ( + 40 ) + 20 * + 26 * + 26 * + SUM( + 14 ) + - COUNT( * )
----
189347

skipif mysql # not compatible
query I rowsort label-8560
SELECT 73 + - 45 + ( + 40 ) + 20 * + 26 * + 26 * + SUM ( + 14 ) + - COUNT ( * )
----
189347

query II rowsort
SELECT 17, + ( - 4 ) + + 57 * + 44 * + - 47 AS col1
----
17
-117880

query I rowsort
SELECT 50 + - 78 AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT 54 DIV + 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8563
SELECT 54 / + 69 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT CASE 80 WHEN COUNT( * ) THEN - 52 * 10 WHEN COUNT( * ) * - 90 THEN NULL ELSE - 66 - - 91 END * - - 98 * 3 + + 80 AS col0
----
7430

skipif mysql # not compatible
query I rowsort label-8564
SELECT CASE 80 WHEN COUNT ( * ) THEN - 52 * 10 WHEN COUNT ( * ) * - 90 THEN NULL ELSE - 66 - - 91 END * - - 98 * 3 + + 80 AS col0
----
7430

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - COUNT( ALL - - 17 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8565
SELECT - COUNT ( ALL - - 17 ) AS col0
----
-1

query I rowsort
SELECT ALL 63 * 48
----
3024

onlyif mysql # aggregate syntax: 
query II rowsort label-8567
SELECT ALL COUNT( * ), 79 AS col0
----
1
79

skipif mysql # not compatible
query II rowsort label-8567
SELECT ALL COUNT ( * ), 79 AS col0
----
1
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT ALL + CASE CASE - + 28 WHEN + 91 THEN - 5 END WHEN AVG ( DISTINCT - 94 ) * + 81 + - - 67 THEN - - COALESCE ( + - 25, + + CAST( NULL AS SIGNED ) ) WHEN + 33 THEN NULL ELSE + 54 END * - 5
----
-270

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + CASE CASE - + 28 WHEN + 91 THEN - 5 END WHEN AVG ( DISTINCT - 94 ) * + 81 + - - 67 THEN - - COALESCE ( + - 25, + + CAST ( NULL AS INTEGER ) ) WHEN + 33 THEN NULL ELSE + 54 END * - 5
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + - MIN( DISTINCT - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + - MIN ( DISTINCT - 9 )
----
9

query I rowsort
SELECT DISTINCT + 28 * + - 74 + + 8 AS col1
----
-2064

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL - MAX( + + 30 ) * 19 * - - 99 * 77 * + - CASE + 64 WHEN + 37 * - 89 + COUNT( * ) THEN - - 61 * - + COUNT( * ) * 82 - - 7 * 59 * SUM( DISTINCT + 30 ) ELSE 58 END
----
252016380

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL - MAX ( + + 30 ) * 19 * - - 99 * 77 * + - CASE + 64 WHEN + 37 * - 89 + COUNT ( * ) THEN - - 61 * - + COUNT ( * ) * 82 - - 7 * 59 * SUM ( DISTINCT + 30 ) ELSE 58 END
----
252016380

query II rowsort
SELECT + 25 col2, 57
----
25
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT ALL MIN( + 77 ) * + - 21
----
-1617

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL MIN ( + 77 ) * + - 21
----
-1617

query II rowsort
SELECT + 26, - 4 + 54 + + 84 AS col0
----
26
134

onlyif mysql # aggregate syntax: 
query II rowsort label-8575
SELECT ALL - + 69 * + + 64 + COUNT( * ) AS col1, + 1 + - 92 + - + 18 - - - 94 AS col1
----
-4415
-203

skipif mysql # not compatible
query II rowsort label-8575
SELECT ALL - + 69 * + + 64 + COUNT ( * ) AS col1, + 1 + - 92 + - + 18 - - - 94 AS col1
----
-4415
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + SUM( DISTINCT - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8576
SELECT + SUM ( DISTINCT - 45 ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT ALL + NULLIF ( COUNT( * ), + 63 + 24 / - + SUM( 91 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8577
SELECT ALL + NULLIF ( COUNT ( * ), + 63 + 24 / - + SUM ( 91 ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - 42 * 96 + + 14 - + - 86 AS col2
----
-3932

query I rowsort
SELECT DISTINCT + 44 * + 95 AS col1
----
4180

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT + 89 * COUNT( * ) * - 39 AS col2
----
-3471

skipif mysql # not compatible
query I rowsort label-8580
SELECT + 89 * COUNT ( * ) * - 39 AS col2
----
-3471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8581
SELECT MAX( + 39 ) col1, - 17 + + + CAST( + 89 AS SIGNED )
----
39
72

skipif mysql # not compatible
query II rowsort label-8581
SELECT MAX ( + 39 ) col1, - 17 + + + CAST ( + 89 AS INTEGER )
----
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT MIN( - + 44 ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8582
SELECT MIN ( - + 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - ( MAX( + 61 ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-8583
SELECT - ( MAX ( + 61 ) ) AS col0
----
-61

query I rowsort
SELECT ALL ( - 23 ) - 31 AS col2
----
-54

query I rowsort
SELECT ALL + 39 - 75 AS col0
----
-36

query I rowsort
SELECT - 35 * 48 * + - 18 * - 97
----
-2933280

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT DISTINCT COUNT( DISTINCT - 56 )
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT COUNT ( DISTINCT - 56 )
----
1

query I rowsort
SELECT + 23 * + - 57 * - 7 AS col0
----
9177

query I rowsort
SELECT - 29 + + 29
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8590
SELECT - COALESCE ( + - 14, 57 + COUNT( * ), + ( + 48 ) ) * + - SUM( - ( 8 ) ) AS col0, ( - 77 ) DIV - - 98 col0
----
112
0

skipif mysql # not compatible
query II rowsort label-8590
SELECT - COALESCE ( + - 14, 57 + COUNT ( * ), + ( + 48 ) ) * + - SUM ( - ( 8 ) ) AS col0, ( - 77 ) / - - 98 col0
----
112
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8591
SELECT DISTINCT 93 * 17, - 62 DIV COUNT( * ) AS col2
----
1581
-62

skipif mysql # not compatible
query II rowsort label-8591
SELECT DISTINCT 93 * 17, - 62 / COUNT ( * ) AS col2
----
1581
-62

query I rowsort
SELECT DISTINCT - 41 + - 54
----
-95

query I rowsort
SELECT - - 30 - + + 4 + 42
----
68

query I rowsort
SELECT - 75 - + ( + 77 )
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-8595
SELECT - 49 DIV - 15
----
3

skipif mysql # not compatible
query I rowsort label-8595
SELECT - 49 / - 15
----
3

query I rowsort
SELECT - 88 * 55 AS col1
----
-4840

onlyif mysql # DIV for integer division: 
query II rowsort label-8597
SELECT - 16 DIV + 16, 9 AS col0
----
-1
9

skipif mysql # not compatible
query II rowsort label-8597
SELECT - 16 / + 16, 9 AS col0
----
-1
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8598
SELECT ALL + + ( - 19 ) DIV - 24 + + COUNT( * ) + + + COUNT( * ) * + NULLIF ( 29, COUNT( * ) * + + ( + 83 ) - + 62 ) DIV + 93 + - SUM( + - 22 ) AS col1
----
23

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + + ( - 19 ) / - 24 + + COUNT ( * ) + + + COUNT ( * ) * + NULLIF ( 29, COUNT ( * ) * + + ( + 83 ) - + 62 ) / + 93 + - SUM ( + - 22 ) AS col1
----
23

query I rowsort
SELECT - + 62 * - - 25
----
-1550

onlyif mysql # DIV for integer division: 
query I rowsort label-8600
SELECT ALL + 38 DIV - 36 + - 91
----
-92

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + 38 / - 36 + - 91
----
-92

query I rowsort
SELECT - - 87 - - 92 + + - 80 - - 32 + - 24 * + 1 * - - 79
----
-1765

query I rowsort
SELECT ALL - 23 * 99
----
-2277

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8603
SELECT DISTINCT + MAX( DISTINCT ( 27 ) ) DIV COUNT( * ) + - 63 + + 13 + - 75 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT + MAX ( DISTINCT ( 27 ) ) / COUNT ( * ) + - 63 + + 13 + - 75 AS col0
----
-98

query I rowsort
SELECT - 4 + + + 76
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT + + NULLIF ( 8, + COUNT( * ) )
----
8

skipif mysql # not compatible
query I rowsort label-8605
SELECT + + NULLIF ( 8, + COUNT ( * ) )
----
8

query I rowsort
SELECT - 34 * + ( 81 ) + - + 7
----
-2761

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT + MAX( 66 )
----
66

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT + MAX ( 66 )
----
66

query I rowsort
SELECT + 42 + + + 66 AS col2
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-8609
SELECT CASE + - 57 WHEN 88 * + COUNT( * ) THEN - - 57 * - - 98 * 48 / - + 26 * 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT CASE + - 57 WHEN 88 * + COUNT ( * ) THEN - - 57 * - - 98 * 48 / - + 26 * 95 END
----
NULL

query I rowsort
SELECT ALL 47 * - 18 AS col1
----
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT - CAST( 32 AS SIGNED ) col1
----
-32

skipif mysql # not compatible
query I rowsort label-8611
SELECT - CAST ( 32 AS INTEGER ) col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ( - + 92 ) * + - AVG ( DISTINCT - + 44 ) + + 64 / - COALESCE ( - 10, + + 18 ) + + + 70 + CASE - 82 WHEN - 53 THEN 50 * - COUNT( * ) END + - + MIN( + 48 ) * + + 61 + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT ( - + 92 ) * + - AVG ( DISTINCT - + 44 ) + + 64 / - COALESCE ( - 10, + + 18 ) + + + 70 + CASE - 82 WHEN - 53 THEN 50 * - COUNT ( * ) END + - + MIN ( + 48 ) * + + 61 + 47
----
NULL

query I rowsort
SELECT ALL 94 * 39 * - 58 AS col2
----
-212628

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT + 0 DIV - 25 col1
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT + 0 / - 25 col1
----
0

query I rowsort
SELECT + 6 * 2 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT SUM( DISTINCT - 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8616
SELECT SUM ( DISTINCT - 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8617
SELECT ALL MAX( ALL ( + 28 ) ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL MAX ( ALL ( + 28 ) ) AS col1
----
28

query I rowsort
SELECT + 52 + - 89
----
-37

query I rowsort
SELECT ALL 58 * - 0 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8620
SELECT + 70 DIV - ( + 92 )
----
0

skipif mysql # not compatible
query I rowsort label-8620
SELECT + 70 / - ( + 92 )
----
0

query I rowsort
SELECT DISTINCT 45 + - 98
----
-53

query I rowsort
SELECT 7 * - 27 * + - 19
----
3591

query I rowsort
SELECT ALL - + 40 + - 88 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query II rowsort label-8624
SELECT - - 56 col0, - COUNT( * )
----
56
-1

skipif mysql # not compatible
query II rowsort label-8624
SELECT - - 56 col0, - COUNT ( * )
----
56
-1

query I rowsort
SELECT ALL + 88 * - 43 * - - 9 AS col0
----
-34056

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT 87 + + 0 DIV - 80 + - 49
----
38

skipif mysql # not compatible
query I rowsort label-8626
SELECT 87 + + 0 / - 80 + - 49
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT COUNT( * ) - + 57 * - 83 + - 65 AS col1
----
4667

skipif mysql # not compatible
query I rowsort label-8627
SELECT COUNT ( * ) - + 57 * - 83 + - 65 AS col1
----
4667

query I rowsort
SELECT ALL + 96 + + ( + - 48 ) AS col0
----
48

query II rowsort
SELECT DISTINCT - 7 AS col0, 57 AS col2
----
-7
57

query I rowsort
SELECT ALL - 27 * + 36 AS col1
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT - SUM( + + 36 ) col2
----
-36

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT - SUM ( + + 36 ) col2
----
-36

query I rowsort
SELECT ALL + 36 + + - 77 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT - MIN( - 64 ) * + COUNT( - 32 ) + - 53 + + - 12 * 80 * - + 52
----
49931

skipif mysql # not compatible
query I rowsort label-8633
SELECT - MIN ( - 64 ) * + COUNT ( - 32 ) + - 53 + + - 12 * 80 * - + 52
----
49931

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT CASE - COUNT( - 54 ) WHEN + - 39 THEN NULL ELSE 90 END * 11
----
990

skipif mysql # not compatible
query I rowsort label-8634
SELECT CASE - COUNT ( - 54 ) WHEN + - 39 THEN NULL ELSE 90 END * 11
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT MIN( + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-8635
SELECT MIN ( + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT 94 * - 16 + 74 + - 98 + + + 30 * + COUNT( * ) * - ( + 97 )
----
-4438

skipif mysql # not compatible
query I rowsort label-8636
SELECT 94 * - 16 + 74 + - 98 + + + 30 * + COUNT ( * ) * - ( + 97 )
----
-4438

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8637
SELECT ALL - - 85 * + COUNT( * ) DIV + 89 AS col1, NULLIF ( COUNT( * ), 3 )
----
0
1

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL - - 85 * + COUNT ( * ) / + 89 AS col1, NULLIF ( COUNT ( * ), 3 )
----
0
1

query I rowsort
SELECT ALL + 39 * + ( COALESCE ( + 93, 41, + 16 ) ) AS col0
----
3627

onlyif mysql # DIV for integer division: 
query I rowsort label-8639
SELECT 48 * 59 DIV 20 col0
----
141

skipif mysql # not compatible
query I rowsort label-8639
SELECT 48 * 59 / 20 col0
----
141

query II rowsort
SELECT DISTINCT - ( 45 ) * COALESCE ( + ( - 7 ), + 56 ), + 0 * - 64 AS col2
----
315
0

query I rowsort
SELECT ALL + 39 * + 44
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT 40 * - 59 - COUNT( * ) + 35 * + 54 AS col1
----
-471

skipif mysql # not compatible
query I rowsort label-8642
SELECT 40 * - 59 - COUNT ( * ) + 35 * + 54 AS col1
----
-471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8643
SELECT 61 AS col0, ( - 29 ) * - 15 - + 63 + + NULLIF ( 58, + CAST( COALESCE ( - + COALESCE ( 35, - 15 * 80, - 22 ), + 16, + + COALESCE ( - - 34, - COUNT( * ) + - ( + + CASE + 83 WHEN - 0 / + - COUNT( * ) + 75 + - - COALESCE ( 46, + + 61, CAST( + + ( - 16 ) AS SIGNED ) ) + 47 * - - 99 THEN + ( - + CAST( NULL AS SIGNED ) ) END ), + 51 * - 55 + CASE - 14 WHEN + COUNT( DISTINCT + + 16 ) THEN + + 40 END + - 50 + - 36 * + - COUNT( * ) ) ) AS SIGNED ) * 73 ) * 76 + + 18 AS col0
----
61
4798

skipif mysql # not compatible
query II rowsort label-8643
SELECT 61 AS col0, ( - 29 ) * - 15 - + 63 + + NULLIF ( 58, + CAST ( COALESCE ( - + COALESCE ( 35, - 15 * 80, - 22 ), + 16, + + COALESCE ( - - 34, - COUNT ( * ) + - ( + + CASE + 83 WHEN - 0 / + - COUNT ( * ) + 75 + - - COALESCE ( 46, + + 61, CAST ( + + ( - 16 ) AS INTEGER ) ) + 47 * - - 99 THEN + ( - + CAST ( NULL AS INTEGER ) ) END ), + 51 * - 55 + CASE - 14 WHEN + COUNT ( DISTINCT + + 16 ) THEN + + 40 END + - 50 + - 36 * + - COUNT ( * ) ) ) AS INTEGER ) * 73 ) * 76 + + 18 AS col0
----
61
4798

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT ALL - 18 AS col2, COUNT( * ) col0
----
-18
1

skipif mysql # not compatible
query II rowsort label-8644
SELECT ALL - 18 AS col2, COUNT ( * ) col0
----
-18
1

query I rowsort
SELECT 60 * + + 10
----
600

query II rowsort
SELECT 42 AS col0, - 3 * - - 38
----
42
-114

query III rowsort
SELECT 47 AS col0, 90, + 77 AS col1
----
47
90
77

query I rowsort
SELECT ALL + 67 + - + NULLIF ( 45, 60 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL 40 * + COUNT( * ) * - 54
----
-2160

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL 40 * + COUNT ( * ) * - 54
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT ALL + 50 + - - 93 * SUM( + + 83 )
----
7769

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + 50 + - - 93 * SUM ( + + 83 )
----
7769

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT ALL NULLIF ( + + 55, + 17 * + 29 + + CAST( 85 AS SIGNED ) / + 73 ) + - 44
----
11

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL NULLIF ( + + 55, + 17 * + 29 + + CAST ( 85 AS INTEGER ) / + 73 ) + - 44
----
11

query I rowsort
SELECT DISTINCT 46 + - 26 + 60 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL 4 * - + 75 * + CASE 35 WHEN - ( - - 8 ) / - + 77 THEN + COUNT( * ) + 82 WHEN + CASE - - COALESCE ( + 84, + + CAST( NULL AS SIGNED ) * + 5, 4 ) WHEN - 27 THEN - 74 WHEN 63 - + - 59 THEN NULL WHEN + 83 THEN 63 * 34 ELSE + 74 END THEN NULL END * - - 25 * - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL 4 * - + 75 * + CASE 35 WHEN - ( - - 8 ) / - + 77 THEN + COUNT ( * ) + 82 WHEN + CASE - - COALESCE ( + 84, + + CAST ( NULL AS INTEGER ) * + 5, 4 ) WHEN - 27 THEN - 74 WHEN 63 - + - 59 THEN NULL WHEN + 83 THEN 63 * 34 ELSE + 74 END THEN NULL END * - - 25 * - 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8654
SELECT 5 DIV - 66 * + 13
----
0

skipif mysql # not compatible
query I rowsort label-8654
SELECT 5 / - 66 * + 13
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8655
SELECT ALL - ( - + 82 ) + 32 * + COUNT( * ) col1, 17 AS col1
----
114
17

skipif mysql # not compatible
query II rowsort label-8655
SELECT ALL - ( - + 82 ) + 32 * + COUNT ( * ) col1, 17 AS col1
----
114
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL MAX( CAST( NULL AS SIGNED ) ) + - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL MAX ( CAST ( NULL AS INTEGER ) ) + - 0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8657
SELECT COUNT( * ) + - 64 + - ( - + 99 ) / + NULLIF ( 1, - ( + - 91 ) ) + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT COUNT ( * ) + - 64 + - ( - + 99 ) / + NULLIF ( 1, - ( + - 91 ) ) + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT - - CAST( + 10 AS SIGNED ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8658
SELECT - - CAST ( + 10 AS INTEGER ) AS col2
----
10

query I rowsort
SELECT + 75 + + ( + - 97 ) + + 9 AS col2
----
-13

query I rowsort
SELECT ALL - 47 + - COALESCE ( - + 11, - 78 * + 28 )
----
-36

query I rowsort
SELECT DISTINCT 49 * + - 53 AS col0
----
-2597

query I rowsort
SELECT DISTINCT - 98 + - + 40 + - 95 * - 52
----
4802

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT DISTINCT - 39 + + + 15 * - COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - 39 + + + 15 * - COUNT ( * ) col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8664
SELECT ALL 66 AS col0, + 53 * + + COUNT( * )
----
66
53

skipif mysql # not compatible
query II rowsort label-8664
SELECT ALL 66 AS col0, + 53 * + + COUNT ( * )
----
66
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL + ( - 20 ) - - COUNT( * ) - - - 70 * - COUNT( * ) + - 9
----
42

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + ( - 20 ) - - COUNT ( * ) - - - 70 * - COUNT ( * ) + - 9
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8666
SELECT ALL 94 DIV + 44 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8666
SELECT ALL 94 / + 44 AS col1
----
2

query I rowsort
SELECT - 64 * + 62
----
-3968

query I rowsort
SELECT ALL + 15 * 81 AS col2
----
1215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT 10 * 99 - 26 + 65 + MIN( - 19 ) DIV + COALESCE ( + 72, + 14 + 8 + - 72 + - ( + + 24 ) DIV - 8, - NULLIF ( 77, + 54 ) * - 43 - - SUM( DISTINCT + - 12 ) + 49 + + 30 ) + 55
----
1084

skipif mysql # not compatible
query I rowsort label-8669
SELECT 10 * 99 - 26 + 65 + MIN ( - 19 ) / + COALESCE ( + 72, + 14 + 8 + - 72 + - ( + + 24 ) / - 8, - NULLIF ( 77, + 54 ) * - 43 - - SUM ( DISTINCT + - 12 ) + 49 + + 30 ) + 55
----
1084

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8670
SELECT + 56 * 14 DIV - COUNT( * ) col0
----
-784

skipif mysql # not compatible
query I rowsort label-8670
SELECT + 56 * 14 / - COUNT ( * ) col0
----
-784

query II rowsort
SELECT + - 63 AS col2, - 58 + + - 35 AS col0
----
-63
-93

query I rowsort
SELECT - 23 * 45
----
-1035

query I rowsort
SELECT ALL - - CASE 78 WHEN - 90 THEN NULL ELSE + 45 * - 90 END
----
-4050

query I rowsort
SELECT DISTINCT 83 * ( 91 )
----
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT ALL - MIN( DISTINCT 43 ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-8675
SELECT ALL - MIN ( DISTINCT 43 ) col2
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT COUNT( * ) DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8676
SELECT COUNT ( * ) / + 58 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT COUNT( * ) * + NULLIF ( - + 46, - 87 ) + 59 - - 2 + - 78 DIV - 3 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-8677
SELECT COUNT ( * ) * + NULLIF ( - + 46, - 87 ) + 59 - - 2 + - 78 / - 3 AS col0
----
41

query I rowsort
SELECT 89 - + + 58 + 80
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT COUNT( + + 35 ) * - 54 + COUNT( * ) * + ( + 76 )
----
22

skipif mysql # not compatible
query I rowsort label-8679
SELECT COUNT ( + + 35 ) * - 54 + COUNT ( * ) * + ( + 76 )
----
22

query I rowsort
SELECT ALL + 81 + + 7 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) + + - 56 + + 80
----
26

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) + + - 56 + + 80
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8682
SELECT DISTINCT + 63 + - - COUNT( * ) col2, CASE 95 WHEN + 53 / + AVG ( DISTINCT + 57 ) THEN + - 24 WHEN 56 * - COALESCE ( + 16, COUNT( * ) * + + COUNT( * ), + 66 * + CAST( NULL AS SIGNED ) / - 42 + - 50 ) + - COUNT( * ) THEN 6 + 0 / 25 WHEN CAST( NULL AS SIGNED ) THEN NULL END AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8682
SELECT DISTINCT + 63 + - - COUNT ( * ) col2, CASE 95 WHEN + 53 / + AVG ( DISTINCT + 57 ) THEN + - 24 WHEN 56 * - COALESCE ( + 16, COUNT ( * ) * + + COUNT ( * ), + 66 * + CAST ( NULL AS INTEGER ) / - 42 + - 50 ) + - COUNT ( * ) THEN 6 + 0 / 25 WHEN CAST ( NULL AS INTEGER ) THEN NULL END AS col2
----
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT - AVG ( 94 ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT - AVG ( 94 ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 45 + - + 71 AS col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT - 91 * COUNT( + + NULLIF ( 1, 31 - - 51 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - 91 * COUNT ( + + NULLIF ( 1, 31 - - 51 ) )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT DISTINCT + 36 + - - 39 * + 45 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT DISTINCT + 36 + - - 39 * + 45 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 64 + + + 77 AS col2
----
13

query I rowsort
SELECT - + 82 * + 4 * + 19
----
-6232

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL + 2 - + COUNT( - + 67 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL + 2 - + COUNT ( - + 67 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 38 * 1 AS col1
----
38

query I rowsort
SELECT - 57 + 96
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + - 50 * CASE - - 95 WHEN + ( - COUNT( * ) ) + + 15 THEN NULL WHEN - 22 THEN + + 13 + - + 38 + 62 + + 34 * + 24 WHEN - 22 + - 34 + + - COUNT( * ) THEN + 60 + 27 + - 0 * + 55 * + 17 * - + 89 * MIN( + + 94 ) * + - COUNT( ALL - 86 ) + - 2 * - 97 ELSE + + 81 + + 85 END
----
-8300

skipif mysql # not compatible
query I rowsort label-8692
SELECT + - 50 * CASE - - 95 WHEN + ( - COUNT ( * ) ) + + 15 THEN NULL WHEN - 22 THEN + + 13 + - + 38 + 62 + + 34 * + 24 WHEN - 22 + - 34 + + - COUNT ( * ) THEN + 60 + 27 + - 0 * + 55 * + 17 * - + 89 * MIN ( + + 94 ) * + - COUNT ( ALL - 86 ) + - 2 * - 97 ELSE + + 81 + + 85 END
----
-8300

query I rowsort
SELECT ALL - 44 * + 47
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT + 40 - - 20 - + + COUNT( * ) + - + 13 * + 55 AS col0
----
-656

skipif mysql # not compatible
query I rowsort label-8694
SELECT + 40 - - 20 - + + COUNT ( * ) + - + 13 * + 55 AS col0
----
-656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8695
SELECT + CAST( + + MIN( + - 38 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-8695
SELECT + CAST ( + + MIN ( + - 38 ) AS INTEGER )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT + + 73 + COUNT( * ) * - 5 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8696
SELECT + + 73 + COUNT ( * ) * - 5 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + COUNT( DISTINCT + 7 )
----
1

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + COUNT ( DISTINCT + 7 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT + + COUNT( * ) * + 25 * - 0 * + 55
----
0

skipif mysql # not compatible
query I rowsort label-8698
SELECT + + COUNT ( * ) * + 25 * - 0 * + 55
----
0

query I rowsort
SELECT ( + - 44 ) AS col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT ALL - 76 * - ( MIN( + 20 ) ) * + 76 * 87 AS col1
----
10050240

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL - 76 * - ( MIN ( + 20 ) ) * + 76 * 87 AS col1
----
10050240

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL + NULLIF ( + MAX( 14 ), + 35 )
----
14

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + NULLIF ( + MAX ( 14 ), + 35 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL - 87 * + 0 * + 22 * COUNT( * ) + - 23 AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - 87 * + 0 * + 22 * COUNT ( * ) + - 23 AS col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - NULLIF ( COUNT( * ), ( - - NULLIF ( + - 67, - 11 * + + 75 * + COUNT( + 94 ) ) ) / 87 + - - 60 ) * - 40
----
40

skipif mysql # not compatible
query I rowsort label-8703
SELECT - NULLIF ( COUNT ( * ), ( - - NULLIF ( + - 67, - 11 * + + 75 * + COUNT ( + 94 ) ) ) / 87 + - - 60 ) * - 40
----
40

query I rowsort
SELECT ALL 29 * + 46
----
1334

query I rowsort
SELECT + ( + 57 ) col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT NULLIF ( MAX( DISTINCT - - 0 ), + 50 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8706
SELECT NULLIF ( MAX ( DISTINCT - - 0 ), + 50 ) AS col2
----
0

query II rowsort
SELECT - 75 * + + 16 * + 36, 29 AS col0
----
-43200
29

query I rowsort
SELECT + 1 * - 11 - 68 + - 17 + + + 62
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT COALESCE ( + - 37, + + ( + 82 ) + + 6 * - COUNT( * ), - 11 ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-8709
SELECT COALESCE ( + - 37, + + ( + 82 ) + + 6 * - COUNT ( * ), - 11 ) AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8710
SELECT ALL + CAST( 88 AS SIGNED ) * + 71 + ( + 20 ) - 5, 67 col0
----
6263
67

skipif mysql # not compatible
query II rowsort label-8710
SELECT ALL + CAST ( 88 AS INTEGER ) * + 71 + ( + 20 ) - 5, 67 col0
----
6263
67

query I rowsort
SELECT + 63 - + 63
----
0

query II rowsort
SELECT ALL + 59 AS col2, - 91
----
59
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT - CAST( NULL AS SIGNED ) / - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT - CAST ( NULL AS INTEGER ) / - 16 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL + COUNT( * ) * 63
----
63

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL + COUNT ( * ) * 63
----
63

query I rowsort
SELECT - + 95 * 40
----
-3800

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8716
SELECT ALL + 89 DIV 96 DIV + 95, - COALESCE ( - COUNT( * ), - - 41 + - - ( + 10 ) ) - + - ( - + 67 ) AS col1
----
0
-66

skipif mysql # not compatible
query II rowsort label-8716
SELECT ALL + 89 / 96 / + 95, - COALESCE ( - COUNT ( * ), - - 41 + - - ( + 10 ) ) - + - ( - + 67 ) AS col1
----
0
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8717
SELECT ALL COUNT( * ) AS col1, 61 + + COUNT( * ) + - - CASE 38 WHEN + + 61 * + + COUNT( * ) * + - 99 - + - NULLIF ( + - 30, + + 96 ) THEN + 76 END + - + NULLIF ( 44, + - 82 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8717
SELECT ALL COUNT ( * ) AS col1, 61 + + COUNT ( * ) + - - CASE 38 WHEN + + 61 * + + COUNT ( * ) * + - 99 - + - NULLIF ( + - 30, + + 96 ) THEN + 76 END + - + NULLIF ( 44, + - 82 )
----
1
NULL

query I rowsort
SELECT ALL + + 54 * + 61 AS col0
----
3294

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - CASE - 18 WHEN 2 THEN + + 43 WHEN - 89 THEN NULL ELSE + 61 END + - - MIN( DISTINCT - 79 ) + - 33 AS col2
----
-173

skipif mysql # not compatible
query I rowsort label-8719
SELECT - CASE - 18 WHEN 2 THEN + + 43 WHEN - 89 THEN NULL ELSE + 61 END + - - MIN ( DISTINCT - 79 ) + - 33 AS col2
----
-173

query I rowsort
SELECT ALL + ( - + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT - COALESCE ( - 43, + + 41, + 27 ) * COALESCE ( 73, + COUNT( * ) + - 74 )
----
3139

skipif mysql # not compatible
query I rowsort label-8721
SELECT - COALESCE ( - 43, + + 41, + 27 ) * COALESCE ( 73, + COUNT ( * ) + - 74 )
----
3139

query II rowsort
SELECT - - 41 AS col2, 37 + + - 15
----
41
22

query I rowsort
SELECT - 60 + + COALESCE ( 21, 48 + 24 * + 47 ) - - + 20 AS col0
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8724
SELECT + 29 * CAST( NULL AS SIGNED ) * - + 33 + 72 - AVG ( ALL - 2 ) * + - 59 * - 48 AS col0, - COUNT( * ) * 38 + 71 * + 61
----
NULL
4293

skipif mysql # not compatible
query II rowsort label-8724
SELECT + 29 * CAST ( NULL AS INTEGER ) * - + 33 + 72 - AVG ( ALL - 2 ) * + - 59 * - 48 AS col0, - COUNT ( * ) * 38 + 71 * + 61
----
NULL
4293

query II rowsort
SELECT - + 87 col1, 75
----
-87
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT DISTINCT + ( + MIN( 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT + ( + MIN ( 5 ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT ALL + 32 * - ( + COUNT( * ) ) * 44 AS col1
----
-1408

skipif mysql # not compatible
query I rowsort label-8727
SELECT ALL + 32 * - ( + COUNT ( * ) ) * 44 AS col1
----
-1408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8728
SELECT - + 25, + COUNT( CAST( NULL AS SIGNED ) ) - - 58 AS col2
----
-25
58

skipif mysql # not compatible
query II rowsort label-8728
SELECT - + 25, + COUNT ( CAST ( NULL AS INTEGER ) ) - - 58 AS col2
----
-25
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8729
SELECT ALL COUNT( * ) col2, 95 AS col0
----
1
95

skipif mysql # not compatible
query II rowsort label-8729
SELECT ALL COUNT ( * ) col2, 95 AS col0
----
1
95

query I rowsort
SELECT + 32 * + - 57
----
-1824

query I rowsort
SELECT ALL + 80 + 95 AS col2
----
175

query I rowsort
SELECT ALL 48 + - NULLIF ( - 70, 75 ) col1
----
118

query I rowsort
SELECT ALL + ( 33 ) + - 38
----
-5

query I rowsort
SELECT ALL 41 + - NULLIF ( 39, - 28 + 43 ) * - + 52 * + 12
----
24377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8735
SELECT DISTINCT - COALESCE ( 66, - + CAST( NULL AS SIGNED ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT - COALESCE ( 66, - + CAST ( NULL AS INTEGER ) ) col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT 63 + 37 + + COUNT( * ) + + 89 * COUNT( * ) AS col2
----
190

skipif mysql # not compatible
query I rowsort label-8736
SELECT 63 + 37 + + COUNT ( * ) + + 89 * COUNT ( * ) AS col2
----
190

query I rowsort
SELECT ALL 81 + - - 41
----
122

query I rowsort
SELECT 14 * - + 67
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT 24 - + - 55 * + - NULLIF ( - + 49, + - SUM( DISTINCT 85 ) ) * + 57 col1
----
153639

skipif mysql # not compatible
query I rowsort label-8739
SELECT 24 - + - 55 * + - NULLIF ( - + 49, + - SUM ( DISTINCT 85 ) ) * + 57 col1
----
153639

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT MIN( DISTINCT 73 ) * + 77 + - COUNT( * ) col1
----
5620

skipif mysql # not compatible
query I rowsort label-8740
SELECT MIN ( DISTINCT 73 ) * + 77 + - COUNT ( * ) col1
----
5620

query I rowsort
SELECT ALL 46 - - - 34 + 45
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ( - COUNT( * ) ) + - - 19 * + + 79 * + COUNT( * ) * + + COUNT( * )
----
1500

skipif mysql # not compatible
query I rowsort label-8742
SELECT ( - COUNT ( * ) ) + - - 19 * + + 79 * + COUNT ( * ) * + + COUNT ( * )
----
1500

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL COUNT( * ) * + 78 col2
----
78

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL COUNT ( * ) * + 78 col2
----
78

query I rowsort
SELECT ALL + 43 * 14 * 20 AS col2
----
12040

query I rowsort
SELECT DISTINCT - 10 * - 41 * ( - 98 ) + 27
----
-40153

query I rowsort
SELECT - 17 * - + ( - 2 ) * + - ( 81 ) AS col0
----
2754

query I rowsort
SELECT - 91 + 14 AS col2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT NULLIF ( - COUNT( * ), - AVG ( - + 27 ) ) + + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8748
SELECT NULLIF ( - COUNT ( * ), - AVG ( - + 27 ) ) + + 2 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT DISTINCT COUNT( DISTINCT + 79 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT COUNT ( DISTINCT + 79 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8750
SELECT ALL + 28 DIV 44 * + 65 + - 29 AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL + 28 / 44 * + 65 + - 29 AS col0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8751
SELECT 56 * - ( + CAST( NULL AS DECIMAL ) ) * + - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-8751
SELECT 56 * - ( + CAST ( NULL AS REAL ) ) * + - 59
----
NULL

query II rowsort
SELECT - ( - 67 ) AS col2, 34 + - 58
----
67
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8753
SELECT ALL - CASE 39 WHEN - - 10 THEN - 66 - + ( + + 79 ) ELSE - COUNT( * ) END * + CAST( NULL AS DECIMAL ) * - + COUNT( ALL + 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL - CASE 39 WHEN - - 10 THEN - 66 - + ( + + 79 ) ELSE - COUNT ( * ) END * + CAST ( NULL AS REAL ) * - + COUNT ( ALL + 36 ) AS col1
----
NULL

query I rowsort
SELECT 4 + + 87
----
91

query I rowsort
SELECT DISTINCT + 3 * + 32 * + 17
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT + 67 + + MAX( ALL 83 )
----
150

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT + 67 + + MAX ( ALL 83 )
----
150

onlyif mysql # aggregate syntax: 
query II rowsort label-8757
SELECT DISTINCT + 94 + 78 + - 15 + - COALESCE ( - SUM( + 55 ), - - 14 + + 61, 38 ) * - 78 AS col2, + 72 + - 68 + + 42
----
-4133
46

skipif mysql # not compatible
query II rowsort label-8757
SELECT DISTINCT + 94 + 78 + - 15 + - COALESCE ( - SUM ( + 55 ), - - 14 + + 61, 38 ) * - 78 AS col2, + 72 + - 68 + + 42
----
-4133
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL + 49 + - - COUNT( 0 )
----
50

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL + 49 + - - COUNT ( 0 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT MIN( - 35 ) + + 95
----
60

skipif mysql # not compatible
query I rowsort label-8759
SELECT MIN ( - 35 ) + + 95
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL + 50 + - - COUNT( * ) + 21 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL + 50 + - - COUNT ( * ) + 21 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT 69 * + SUM( DISTINCT - - 31 ) AS col2
----
2139

skipif mysql # not compatible
query I rowsort label-8761
SELECT 69 * + SUM ( DISTINCT - - 31 ) AS col2
----
2139

query I rowsort
SELECT DISTINCT - 32 - 67 col0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8763
SELECT 50 DIV + + CASE - 39 WHEN + - 23 - 38 THEN NULL ELSE + - MIN( - + 26 ) DIV + - 72 + 78 END + + 33 AS col1, + 18, + + 10 AS col2
----
33
18
10

skipif mysql # not compatible
query III rowsort label-8763
SELECT 50 / + + CASE - 39 WHEN + - 23 - 38 THEN NULL ELSE + - MIN ( - + 26 ) / + - 72 + 78 END + + 33 AS col1, + 18, + + 10 AS col2
----
33
18
10

query I rowsort
SELECT DISTINCT - 41 * 51 col2
----
-2091

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8765
SELECT ALL - NULLIF ( + CASE + - 67 WHEN - 77 / 88 + + + ( + 44 ) * 71 + - - 45 * - 95 THEN NULL WHEN 24 - + CAST( NULL AS SIGNED ) THEN 79 ELSE + + 3 END, + + 57 ) AS col0, - 29 * 11 + COUNT( * ) AS col1
----
-3
-318

skipif mysql # not compatible
query II rowsort label-8765
SELECT ALL - NULLIF ( + CASE + - 67 WHEN - 77 / 88 + + + ( + 44 ) * 71 + - - 45 * - 95 THEN NULL WHEN 24 - + CAST ( NULL AS INTEGER ) THEN 79 ELSE + + 3 END, + + 57 ) AS col0, - 29 * 11 + COUNT ( * ) AS col1
----
-3
-318

query I rowsort
SELECT DISTINCT - 32 * 54 AS col1
----
-1728

query I rowsort
SELECT ALL - ( - + 92 )
----
92

query I rowsort
SELECT DISTINCT 63 - + + 76 * 6 * - 16 + + 20 col0
----
7379

query I rowsort
SELECT 97 * + 71 AS col0
----
6887

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT ALL 92 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL 92 / - 31
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8771
SELECT 4 DIV + 1
----
4

skipif mysql # not compatible
query I rowsort label-8771
SELECT 4 / + 1
----
4

query I rowsort
SELECT 39 * 51
----
1989

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + MIN( DISTINCT 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8773
SELECT + MIN ( DISTINCT 3 ) AS col1
----
3

query I rowsort
SELECT - ( - 45 ) * 68 - 68 * - 4 AS col1
----
3332

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8775
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8775
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 23 - - 68
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT ALL MIN( DISTINCT ( 55 ) ) * - 16 col1
----
-880

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL MIN ( DISTINCT ( 55 ) ) * - 16 col1
----
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT + MAX( - 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-8778
SELECT + MAX ( - 45 )
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT CAST( NULL AS SIGNED ) * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8779
SELECT CAST ( NULL AS INTEGER ) * 51 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT DISTINCT 55 + CASE + 95 + + 96 WHEN + CASE - 34 WHEN 13 - + 77 * - ( 81 ) THEN NULLIF ( + 94, 52 / COUNT( * ) ) WHEN - COUNT( * ) THEN + ( ( + 57 ) ) END / SUM( - 36 + - 28 ) + NULLIF ( 91, - AVG ( DISTINCT + 60 ) * 80 + 78 ) THEN NULL WHEN + 60 * 72 THEN CASE 15 WHEN COUNT( * ) THEN 13 * 49 WHEN - COALESCE ( - 61, - 61 ) * 91 THEN NULL ELSE NULL END ELSE - 19 + 64 * 53 END AS col1
----
3428

skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT 55 + CASE + 95 + + 96 WHEN + CASE - 34 WHEN 13 - + 77 * - ( 81 ) THEN NULLIF ( + 94, 52 / COUNT ( * ) ) WHEN - COUNT ( * ) THEN + ( ( + 57 ) ) END / SUM ( - 36 + - 28 ) + NULLIF ( 91, - AVG ( DISTINCT + 60 ) * 80 + 78 ) THEN NULL WHEN + 60 * 72 THEN CASE 15 WHEN COUNT ( * ) THEN 13 * 49 WHEN - COALESCE ( - 61, - 61 ) * 91 THEN NULL ELSE NULL END ELSE - 19 + 64 * 53 END AS col1
----
3428

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - MIN( 2 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-8781
SELECT - MIN ( 2 ) col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-8782
SELECT DISTINCT 85 + 48 DIV 45 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-8782
SELECT DISTINCT 85 + 48 / 45 AS col0
----
86

query I rowsort
SELECT 58 - 78
----
-20

query I rowsort
SELECT 29 * 48 AS col2
----
1392

query I rowsort
SELECT 64 * 59 AS col2
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT ALL 78 + + COUNT( * ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL 78 + + COUNT ( * ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT - MAX( DISTINCT 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-8787
SELECT - MAX ( DISTINCT 94 )
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL 54 + CAST( - 84 + + COUNT( 92 + 99 ) AS SIGNED ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL 54 + CAST ( - 84 + + COUNT ( 92 + 99 ) AS INTEGER ) AS col0
----
-29

query I rowsort
SELECT - 84 + - 90 AS col0
----
-174

query I rowsort
SELECT DISTINCT - 35 + - 47 AS col1
----
-82

query I rowsort
SELECT ALL + 81 + 94
----
175

query I rowsort
SELECT ALL - 17 + - 3
----
-20

query I rowsort
SELECT - 48 * - 89 AS col0
----
4272

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT DISTINCT 53 DIV 39 col2
----
1

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT 53 / 39 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT DISTINCT - COUNT( * ) * - 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - COUNT ( * ) * - 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT - SUM( 38 ) * + 1 AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8796
SELECT - SUM ( 38 ) * + 1 AS col2
----
-38

query I rowsort
SELECT ALL - 18 - 15 AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + COUNT( * ) - - 1 * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8798
SELECT + COUNT ( * ) - - 1 * + COUNT ( * )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT + CAST( 2 AS SIGNED ) - - 29
----
31

skipif mysql # not compatible
query I rowsort label-8799
SELECT + CAST ( 2 AS INTEGER ) - - 29
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + COUNT( * ) * + 74 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-8800
SELECT + COUNT ( * ) * + 74 AS col1
----
74

query I rowsort
SELECT - 52 * 80
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT ALL + MIN( DISTINCT - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + MIN ( DISTINCT - 71 )
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT + MAX( DISTINCT + 95 ) DIV 17 + - 10 col2
----
-5

skipif mysql # not compatible
query I rowsort label-8803
SELECT + MAX ( DISTINCT + 95 ) / 17 + - 10 col2
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8804
SELECT - 70 DIV 11 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8804
SELECT - 70 / 11 AS col1
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8805
SELECT ALL + 12 * COUNT( * ) - 14 DIV 20
----
12

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL + 12 * COUNT ( * ) - 14 / 20
----
12

query I rowsort
SELECT - 58 * - 5 AS col2
----
290

query I rowsort
SELECT - 34 - + 31
----
-65

query I rowsort
SELECT - 93 * - 23
----
2139

query I rowsort
SELECT - 22 * + 72
----
-1584

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8810
SELECT - CAST( + COALESCE ( + 93, - 21 ) AS SIGNED ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT - CAST ( + COALESCE ( + 93, - 21 ) AS INTEGER ) + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT - CAST( ( 90 ) AS SIGNED ) / 3 + CAST( NULL AS SIGNED ) / + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8811
SELECT - CAST ( ( 90 ) AS INTEGER ) / 3 + CAST ( NULL AS INTEGER ) / + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT COALESCE ( + 87, - 81, 0 + 12 * MIN( DISTINCT + 17 * + 76 ) ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-8812
SELECT COALESCE ( + 87, - 81, 0 + 12 * MIN ( DISTINCT + 17 * + 76 ) ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT + MAX( 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-8813
SELECT + MAX ( 42 ) col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT + - 83 * + ( - SUM( DISTINCT ( 62 ) ) ) col1
----
5146

skipif mysql # not compatible
query I rowsort label-8814
SELECT + - 83 * + ( - SUM ( DISTINCT ( 62 ) ) ) col1
----
5146

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT - - 72 + COUNT( ALL + 56 + + COALESCE ( - 39, + 53 ) ) * - COALESCE ( 34, - 89 * + 25 - + COUNT( * ) * + 81, - 7, + 79 + - 7 * + COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-8815
SELECT - - 72 + COUNT ( ALL + 56 + + COALESCE ( - 39, + 53 ) ) * - COALESCE ( 34, - 89 * + 25 - + COUNT ( * ) * + 81, - 7, + 79 + - 7 * + COUNT ( * ) )
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8816
SELECT ALL - - 35 * - NULLIF ( 7 * + 86, COUNT( DISTINCT - CAST( 94 AS SIGNED ) ) )
----
-21070

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - - 35 * - NULLIF ( 7 * + 86, COUNT ( DISTINCT - CAST ( 94 AS INTEGER ) ) )
----
-21070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8817
SELECT ALL - 30 * + CAST( - 7 AS SIGNED ) + SUM( 39 + 92 )
----
341

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL - 30 * + CAST ( - 7 AS INTEGER ) + SUM ( 39 + 92 )
----
341

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT - - ( - COUNT( * ) ) * + 35 + 25 col0
----
-10

skipif mysql # not compatible
query I rowsort label-8818
SELECT - - ( - COUNT ( * ) ) * + 35 + 25 col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8819
SELECT DISTINCT + CASE + 38 WHEN 36 THEN NULLIF ( 7, 33 ) ELSE CASE - 11 WHEN 39 THEN CAST( NULL AS SIGNED ) ELSE NULL END * - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT + CASE + 38 WHEN 36 THEN NULLIF ( 7, 33 ) ELSE CASE - 11 WHEN 39 THEN CAST ( NULL AS INTEGER ) ELSE NULL END * - COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + 37 * 45 + 39 * - 5 AS col1
----
1470

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT DISTINCT + COUNT( ALL 48 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT + COUNT ( ALL 48 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT ALL + 72 * 98 + COUNT( ALL + 34 )
----
7057

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + 72 * 98 + COUNT ( ALL + 34 )
----
7057

query I rowsort
SELECT DISTINCT - 58 * - 31 + + 78
----
1876

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT + - COALESCE ( 51, 16 + ( + 10 + 69 ) ) DIV 64 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8824
SELECT + - COALESCE ( 51, 16 + ( + 10 + 69 ) ) / 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT DISTINCT - 50 * - COALESCE ( 44 + - MAX( ALL 42 - - 27 ), - 9 ) + 96 AS col0
----
-1154

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT - 50 * - COALESCE ( 44 + - MAX ( ALL 42 - - 27 ), - 9 ) + 96 AS col0
----
-1154

query I rowsort
SELECT - - COALESCE ( 13, 26, + 26 ) col1
----
13

query I rowsort
SELECT - - 95 * + 97 AS col2
----
9215

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT ALL 68 * + COUNT( * ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL 68 * + COUNT ( * ) AS col2
----
68

query I rowsort
SELECT DISTINCT 90 + 12 * 46 AS col0
----
642

query I rowsort
SELECT ALL 1 - - - 78 col1
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8831
SELECT + 24 + - COUNT( 93 ) + COUNT( * ) DIV + 57 * - 35
----
23

skipif mysql # not compatible
query I rowsort label-8831
SELECT + 24 + - COUNT ( 93 ) + COUNT ( * ) / + 57 * - 35
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT 30 - - - 60 * CAST( ( 22 ) / COUNT( * ) AS SIGNED ) AS col1
----
-1290

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT 30 - - - 60 * CAST ( ( 22 ) / COUNT ( * ) AS INTEGER ) AS col1
----
-1290

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT - SUM( DISTINCT - 50 ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8833
SELECT - SUM ( DISTINCT - 50 ) AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8834
SELECT + CAST( NULL AS SIGNED ) + + ( + MAX( DISTINCT 52 ) ) + 20 / - 75 * 10
----
NULL

skipif mysql # not compatible
query I rowsort label-8834
SELECT + CAST ( NULL AS INTEGER ) + + ( + MAX ( DISTINCT 52 ) ) + 20 / - 75 * 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT + COUNT( ALL - - ( + 3 ) ) * 68 col2
----
68

skipif mysql # not compatible
query I rowsort label-8835
SELECT + COUNT ( ALL - - ( + 3 ) ) * 68 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT + COUNT( - 31 ) + + 11 * 32
----
353

skipif mysql # not compatible
query I rowsort label-8836
SELECT + COUNT ( - 31 ) + + 11 * 32
----
353

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL MIN( DISTINCT - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL MIN ( DISTINCT - 69 )
----
-69

query I rowsort
SELECT + 93 * - 50
----
-4650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT ALL COUNT( - ( + CASE - 30 WHEN ( 64 ) THEN 62 ELSE ( 62 ) + + 45 END ) ) DIV 24
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL COUNT ( - ( + CASE - 30 WHEN ( 64 ) THEN 62 ELSE ( 62 ) + + 45 END ) ) / 24
----
0

query I rowsort
SELECT ALL + 60 * + 65
----
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT - 10 + - + MIN( 97 )
----
-107

skipif mysql # not compatible
query I rowsort label-8841
SELECT - 10 + - + MIN ( 97 )
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL COUNT( * ) * + - 35 * - 17
----
595

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL COUNT ( * ) * + - 35 * - 17
----
595

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT CASE - 12 WHEN 58 THEN - COUNT( * ) END * - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT CASE - 12 WHEN 58 THEN - COUNT ( * ) END * - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - ( 93 ) * + 96 + 10 * - COUNT( * ) AS col2
----
-8938

skipif mysql # not compatible
query I rowsort label-8844
SELECT - ( 93 ) * + 96 + 10 * - COUNT ( * ) AS col2
----
-8938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT + CAST( + - 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-8845
SELECT + CAST ( + - 25 AS INTEGER ) AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT + + CAST( MAX( ALL - 70 ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + + CAST ( MAX ( ALL - 70 ) AS INTEGER ) AS col2
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT ALL + 97 DIV - ( - 15 ) + + 85 DIV 56 col0
----
7

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + 97 / - ( - 15 ) + + 85 / 56 col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT MAX( + COALESCE ( - 57, - CASE 25 WHEN + 79 THEN 0 + 20 WHEN 86 * + 76 + + 6 THEN NULL END ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8848
SELECT MAX ( + COALESCE ( - 57, - CASE 25 WHEN + 79 THEN 0 + 20 WHEN 86 * + 76 + + 6 THEN NULL END ) )
----
-57

query I rowsort
SELECT - 24 * - + 87
----
2088

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8850
SELECT ALL + COALESCE ( + COUNT( DISTINCT + 1 ), 14, ( + 50 ) * CAST( NULL AS SIGNED ) ) DIV 29 + 50
----
50

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + COALESCE ( + COUNT ( DISTINCT + 1 ), 14, ( + 50 ) * CAST ( NULL AS INTEGER ) ) / 29 + 50
----
50

query I rowsort
SELECT + NULLIF ( 83, + 57 )
----
83

query I rowsort
SELECT - + 10 * 97
----
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL + 88 * + COUNT( * ) * 14 AS col2
----
1232

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL + 88 * + COUNT ( * ) * 14 AS col2
----
1232

query I rowsort
SELECT + 44 * - + 22 + 25 - 99
----
-1042

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - - CASE 0 WHEN 14 THEN - 30 * 90 WHEN - 92 * + SUM( ALL - 43 ) THEN 89 - - 30 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL - - CASE 0 WHEN 14 THEN - 30 * 90 WHEN - 92 * + SUM ( ALL - 43 ) THEN 89 - - 30 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL + + MIN( - 59 ) + + 28 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + + MIN ( - 59 ) + + 28 AS col0
----
-31

query I rowsort
SELECT - 26 - - + 85 + - 97
----
-38

query I rowsort
SELECT ALL + ( - ( 11 ) ) + - 27
----
-38

query I rowsort
SELECT 72 + + 35
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT ALL + 95 * - - COUNT( * ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL + 95 * - - COUNT ( * ) AS col1
----
95

query I rowsort
SELECT + 62 * + 18
----
1116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8862
SELECT ALL CAST( - + 84 AS SIGNED ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL CAST ( - + 84 AS INTEGER ) col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8863
SELECT CASE - 26 WHEN 43 THEN NULLIF ( COUNT( * ), CAST( 92 AS SIGNED ) ) WHEN - 5 THEN 26 + - 33 END + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT CASE - 26 WHEN 43 THEN NULLIF ( COUNT ( * ), CAST ( 92 AS INTEGER ) ) WHEN - 5 THEN 26 + - 33 END + - 18
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT 92 - + - NULLIF ( - 73, 22 ) DIV + 91 AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8864
SELECT 92 - + - NULLIF ( - 73, 22 ) / + 91 AS col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT ALL 27, COUNT( * ) AS col0
----
27
1

skipif mysql # not compatible
query II rowsort label-8865
SELECT ALL 27, COUNT ( * ) AS col0
----
27
1

query II rowsort
SELECT 21, + 78 col1
----
21
78

query I rowsort
SELECT COALESCE ( 79, + 21, 92 ) - 62 AS col2
----
17

query I rowsort
SELECT ALL + 0 - 4 * 96 * - 38
----
14592

query I rowsort
SELECT 73 * + CASE 91 WHEN 49 * 23 THEN + ( 95 ) / 89 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT 82 * COUNT( + 68 )
----
82

skipif mysql # not compatible
query I rowsort label-8870
SELECT 82 * COUNT ( + 68 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT COALESCE ( - - COUNT( + 71 ), - COUNT( * ) * COUNT( * ), 80 + 17 * COALESCE ( - 33, 80, 37 * 83 + - 98 ) ) * - MAX( 39 ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT COALESCE ( - - COUNT ( + 71 ), - COUNT ( * ) * COUNT ( * ), 80 + 17 * COALESCE ( - 33, 80, 37 * 83 + - 98 ) ) * - MAX ( 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8872
SELECT ALL + 0 DIV - ( NULLIF ( 47, + 24 + - 54 * - COUNT( * ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT ALL + 0 / - ( NULLIF ( 47, + 24 + - 54 * - COUNT ( * ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT ALL COUNT( * ) * + 57 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL COUNT ( * ) * + 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT COUNT( * ) * + 10 * + COUNT( * ) col0
----
10

skipif mysql # not compatible
query I rowsort label-8874
SELECT COUNT ( * ) * + 10 * + COUNT ( * ) col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8875
SELECT 64 AS col1, + COUNT( * ) + - 46 * CASE - 85 * 11 WHEN + 89 THEN + 19 * - 5 ELSE NULL END AS col2
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8875
SELECT 64 AS col1, + COUNT ( * ) + - 46 * CASE - 85 * 11 WHEN + 89 THEN + 19 * - 5 ELSE NULL END AS col2
----
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT DISTINCT AVG ( + + 15 ) * + CASE 7 WHEN COUNT( * ) THEN NULL WHEN + 60 THEN - 1 END * ( 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT AVG ( + + 15 ) * + CASE 7 WHEN COUNT ( * ) THEN NULL WHEN + 60 THEN - 1 END * ( 10 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT 97 * + - 89 * + COALESCE ( COUNT( * ), + COUNT( * ) + + 81 )
----
-8633

skipif mysql # not compatible
query I rowsort label-8877
SELECT 97 * + - 89 * + COALESCE ( COUNT ( * ), + COUNT ( * ) + + 81 )
----
-8633

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8878
SELECT COALESCE ( + 42, + 95 DIV + CAST( - 29 - + 41 * - 50 AS SIGNED ) ) * - 38
----
-1596

skipif mysql # not compatible
query I rowsort label-8878
SELECT COALESCE ( + 42, + 95 / + CAST ( - 29 - + 41 * - 50 AS INTEGER ) ) * - 38
----
-1596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8879
SELECT COUNT( * ) - + 34 * CASE MAX( 35 ) WHEN - 93 THEN NULL WHEN AVG ( 11 ) * + 60 THEN 5 DIV 78 + 33 ELSE + 31 END + + 68
----
-985

skipif mysql # not compatible
query I rowsort label-8879
SELECT COUNT ( * ) - + 34 * CASE MAX ( 35 ) WHEN - 93 THEN NULL WHEN AVG ( 11 ) * + 60 THEN 5 / 78 + 33 ELSE + 31 END + + 68
----
-985

query I rowsort
SELECT ALL 69 + 86
----
155

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT 13 - + - 83 DIV - - 14 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-8881
SELECT 13 - + - 83 / - - 14 AS col2
----
18

query II rowsort
SELECT 94, - 69 - + - 17 + 29 AS col2
----
94
-23

query I rowsort
SELECT ALL + 69 + 97 + - 64 * + 54 * 68 AS col0
----
-234842

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT 82 + - 77 + - - 17 + 3 * - 14 * - COUNT( * ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT 82 + - 77 + - - 17 + 3 * - 14 * - COUNT ( * ) AS col1
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT DISTINCT + - CASE - + 20 WHEN - 61 THEN - CAST( + 33 AS SIGNED ) ELSE NULL END * 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + - CASE - + 20 WHEN - 61 THEN - CAST ( + 33 AS INTEGER ) ELSE NULL END * 46 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT - 5 DIV 17 + + ( ( 75 ) ) * - 55
----
-4125

skipif mysql # not compatible
query I rowsort label-8886
SELECT - 5 / 17 + + ( ( 75 ) ) * - 55
----
-4125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8887
SELECT + 96 * + 22 * + CASE - 56 WHEN COUNT( * ) * 33 THEN + CAST( NULL AS SIGNED ) WHEN - CASE - 94 WHEN + CASE + 76 WHEN + 42 * 15 THEN + 76 WHEN + 23 - - CAST( 26 AS SIGNED ) THEN ( 80 ) + NULLIF ( + 83 + COALESCE ( 43 + 46, - 70 * + COUNT( CAST( NULL AS SIGNED ) ) ), 73 + - 20 ) ELSE NULL END THEN + 74 + - 24 / - 54 ELSE NULL END * 0 THEN - COUNT( * ) * + 56 WHEN COUNT( * ) THEN NULL ELSE NULL END * - SUM( 5 ) + - 48 * 13 - - 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8887
SELECT + 96 * + 22 * + CASE - 56 WHEN COUNT ( * ) * 33 THEN + CAST ( NULL AS INTEGER ) WHEN - CASE - 94 WHEN + CASE + 76 WHEN + 42 * 15 THEN + 76 WHEN + 23 - - CAST ( 26 AS INTEGER ) THEN ( 80 ) + NULLIF ( + 83 + COALESCE ( 43 + 46, - 70 * + COUNT ( CAST ( NULL AS INTEGER ) ) ), 73 + - 20 ) ELSE NULL END THEN + 74 + - 24 / - 54 ELSE NULL END * 0 THEN - COUNT ( * ) * + 56 WHEN COUNT ( * ) THEN NULL ELSE NULL END * - SUM ( 5 ) + - 48 * 13 - - 13
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL 0 + + NULLIF ( - 67, - 96 ) + - CASE COALESCE ( 79, MIN( DISTINCT 94 ) ) WHEN 7 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN 5 * 44 + + COUNT( * ) THEN NULL ELSE 92 * COUNT( * ) END AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL 0 + + NULLIF ( - 67, - 96 ) + - CASE COALESCE ( 79, MIN ( DISTINCT 94 ) ) WHEN 7 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN 5 * 44 + + COUNT ( * ) THEN NULL ELSE 92 * COUNT ( * ) END AS col0
----
-159

query I rowsort
SELECT DISTINCT - 50 * ( 57 ) - - 18
----
-2832

query II rowsort
SELECT 91, 9 AS col2
----
91
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT + 9 DIV + - 24 + + + 39
----
39

skipif mysql # not compatible
query I rowsort label-8891
SELECT + 9 / + - 24 + + + 39
----
39

query I rowsort
SELECT DISTINCT + 17 * - 43 AS col2
----
-731

query I rowsort
SELECT ALL 27 + + 23 AS col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8894
SELECT CASE - + 73 WHEN + COUNT( DISTINCT 99 ) + - 83 THEN 92 + 16 WHEN NULLIF ( 23, 20 * - 4 ) + - CAST( NULL AS SIGNED ) THEN + 19 END * - 27 + 59 * 51 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8894
SELECT CASE - + 73 WHEN + COUNT ( DISTINCT 99 ) + - 83 THEN 92 + 16 WHEN NULLIF ( 23, 20 * - 4 ) + - CAST ( NULL AS INTEGER ) THEN + 19 END * - 27 + 59 * 51 AS col0
----
NULL

query I rowsort
SELECT + 17 * 46 + + 94 * 19 AS col1
----
2568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8896
SELECT ALL - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT + 19 * + 84
----
1596

query I rowsort
SELECT 40 + - 27 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT ALL + 93 - COUNT( * ) col2
----
92

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + 93 - COUNT ( * ) col2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8900
SELECT DISTINCT - - 50 DIV + ( - 79 )
----
0

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT - - 50 / + ( - 79 )
----
0

query II rowsort
SELECT DISTINCT - 58 col1, - 36 AS col2
----
-58
-36

query I rowsort
SELECT DISTINCT COALESCE ( - - 50, - + 27 ) - ( 11 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8903
SELECT + + 41 * - ( - + 5 ) + - COALESCE ( + 27, - 77 + - COUNT( * ) ) * ( + ( - 81 ) * CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT + + 41 * - ( - + 5 ) + - COALESCE ( + 27, - 77 + - COUNT ( * ) ) * ( + ( - 81 ) * CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT - MAX( - + 29 ) * ( 79 )
----
2291

skipif mysql # not compatible
query I rowsort label-8904
SELECT - MAX ( - + 29 ) * ( 79 )
----
2291

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT - 84 AS col0, 62 * + SUM( ALL - 90 ) AS col0
----
-84
-5580

skipif mysql # not compatible
query II rowsort label-8905
SELECT - 84 AS col0, 62 * + SUM ( ALL - 90 ) AS col0
----
-84
-5580

query I rowsort
SELECT 63 * 77 * 9 * 60 + + 93 col2
----
2619633

query I rowsort
SELECT 79 + + ( 54 ) AS col2
----
133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8908
SELECT COUNT( * ) * - + SUM( DISTINCT + NULLIF ( + 26, + 62 * + 62 ) ) DIV - ( 59 )
----
0

skipif mysql # not compatible
query I rowsort label-8908
SELECT COUNT ( * ) * - + SUM ( DISTINCT + NULLIF ( + 26, + 62 * + 62 ) ) / - ( 59 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8909
SELECT 88 + - - CAST( NULL AS DECIMAL ) * - - 0 - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT 88 + - - CAST ( NULL AS REAL ) * - - 0 - 68 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8910
SELECT DISTINCT + CASE - 52 WHEN 96 THEN NULL WHEN + + 13 - ( ( + 41 ) ) THEN + MIN( 19 ) ELSE 89 END * 97 AS col2
----
8633

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT + CASE - 52 WHEN 96 THEN NULL WHEN + + 13 - ( ( + 41 ) ) THEN + MIN ( 19 ) ELSE 89 END * 97 AS col2
----
8633

query I rowsort
SELECT DISTINCT + 14 * - 50 AS col1
----
-700

query I rowsort
SELECT 8 * - 73
----
-584

query I rowsort
SELECT 23 + 40 + - 11 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL MIN( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL MIN ( 96 )
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8915
SELECT 97 DIV - - NULLIF ( + 76, + 20 * - 48 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8915
SELECT 97 / - - NULLIF ( + 76, + 20 * - 48 ) col2
----
1

query I rowsort
SELECT 4 + + 21 col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8917
SELECT DISTINCT - 51 DIV + CAST( COALESCE ( CASE - 1 WHEN - 4 THEN NULL WHEN SUM( + 7 ) THEN 68 END, + ( 58 ) * + 10 ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT - 51 / + CAST ( COALESCE ( CASE - 1 WHEN - 4 THEN NULL WHEN SUM ( + 7 ) THEN 68 END, + ( 58 ) * + 10 ) AS INTEGER )
----
0

query I rowsort
SELECT 13 + 46 * - + 33
----
-1505

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT COUNT( * ) - - - 47
----
-46

skipif mysql # not compatible
query I rowsort label-8919
SELECT COUNT ( * ) - - - 47
----
-46

query I rowsort
SELECT 23 + + - 9 + - 62 * - - 90
----
-5566

query I rowsort
SELECT ALL 63 * - 90 AS col1
----
-5670

query I rowsort
SELECT ALL + 97 + - 82 AS col2
----
15

query I rowsort
SELECT DISTINCT 57 * - 97
----
-5529

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL COUNT( * ) + - + 88
----
-87

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL COUNT ( * ) + - + 88
----
-87

query I rowsort
SELECT 94 * 92
----
8648

