sqllogictest
Artifact Content
Not logged in

Artifact 726e4be7930ef943cb583f6b5e4dfeba7481e4be:


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 T