sqllogictest
Artifact Content
Not logged in

Artifact 6d883f88c5dd74eb7c500772dc11a4d52cc8267c:


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 # DIV for integer division: 
query I rowsort label-0
SELECT - + 31 DIV 46
----
0

skipif mysql # not compatible
query I rowsort label-0
SELECT - + 31 / 46
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1
SELECT DISTINCT - - 13 + COUNT( * ) - + + 88 * + 88 AS col0, 94 AS col1
----
-7730
94

skipif mysql # not compatible
query II rowsort label-1
SELECT DISTINCT - - 13 + COUNT ( * ) - + + 88 * + 88 AS col0, 94 AS col1
----
-7730
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2
SELECT ALL + 67 + + 97, COALESCE ( + CAST( NULL AS SIGNED ), 60 ) AS col1
----
164
60

skipif mysql # not compatible
query II rowsort label-2
SELECT ALL + 67 + + 97, COALESCE ( + CAST ( NULL AS INTEGER ), 60 ) AS col1
----
164
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT - 55 + - 90 DIV 81 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-3
SELECT - 55 + - 90 / 81 AS col1
----
-56

query I rowsort
SELECT ALL - + 63 + + 98
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ALL - - 38 DIV 74 + + + 46 col2
----
46

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL - - 38 / 74 + + + 46 col2
----
46

query I rowsort
SELECT + 42 * + 18 * + 46 + 34 AS col2
----
34810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7
SELECT ALL - - CAST( NULL AS SIGNED ) + - ( - 84 ) + - 65 + - 13 * + 4 + - 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - - CAST ( NULL AS INTEGER ) + - ( - 84 ) + - 65 + - 13 * + 4 + - 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT DISTINCT COALESCE ( + + COUNT( * ), 81 + - - 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT COALESCE ( + + COUNT ( * ), 81 + - - 15 ) AS col0
----
1

query I rowsort
SELECT ALL 70 + + + 93 + + 72
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-10
SELECT ALL 74 + + + COUNT( * ) + + 61 * - 21 + + 25 * + - 34
----
-2056

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL 74 + + + COUNT ( * ) + + 61 * - 21 + + 25 * + - 34
----
-2056

query I rowsort
SELECT + + 29 + - 48 * - 66 col2
----
3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * 18 - + 33 DIV + 26 + ( + - COUNT( * ) ) + - 85 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * 18 - + 33 / + 26 + ( + - COUNT ( * ) ) + - 85 AS col2
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-13
SELECT ALL + NULLIF ( 12, 88 + - COUNT( * ) + CAST( NULL AS DECIMAL ) * + CAST( 27 AS SIGNED ) ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + NULLIF ( 12, 88 + - COUNT ( * ) + CAST ( NULL AS REAL ) * + CAST ( 27 AS INTEGER ) ) AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-14
SELECT - 19 * + - COUNT( DISTINCT + 46 ) AS col0, 88 + COUNT( * ) col2
----
19
89

skipif mysql # not compatible
query II rowsort label-14
SELECT - 19 * + - COUNT ( DISTINCT + 46 ) AS col0, 88 + COUNT ( * ) col2
----
19
89

onlyif mysql # aggregate syntax: 
query I rowsort label-15
SELECT ALL CASE + 52 WHEN - COUNT( * ) THEN - 54 + + + 68 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-15
SELECT ALL CASE + 52 WHEN - COUNT ( * ) THEN - 54 + + + 68 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT - COUNT( * ), - 73 + 1 + - 61 AS col2
----
-1
-133

skipif mysql # not compatible
query II rowsort label-16
SELECT - COUNT ( * ), - 73 + 1 + - 61 AS col2
----
-1
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-17
SELECT ALL - NULLIF ( - - 18, - - CASE - - 6 WHEN - - 54 THEN NULL WHEN + + 10 * + + 9 * CAST( - CASE + 74 WHEN + 90 * 0 THEN - 37 ELSE - 35 END AS SIGNED ) + COUNT( * ) + 63 THEN 78 * 71 WHEN 76 THEN COUNT( * ) + 5 / 8 ELSE NULL END + MAX( 22 ) ) * COUNT( * ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL - NULLIF ( - - 18, - - CASE - - 6 WHEN - - 54 THEN NULL WHEN + + 10 * + + 9 * CAST ( - CASE + 74 WHEN + 90 * 0 THEN - 37 ELSE - 35 END AS INTEGER ) + COUNT ( * ) + 63 THEN 78 * 71 WHEN 76 THEN COUNT ( * ) + 5 / 8 ELSE NULL END + MAX ( 22 ) ) * COUNT ( * ) AS col1
----
-18

query I rowsort
SELECT DISTINCT ( + - 74 ) col2
----
-74

query I rowsort
SELECT + 83 + - - 84 + 94 * + - 27 + NULLIF ( 36, - 47 + - 11 ) * - 31 * 3 col0
----
-5719

query I rowsort
SELECT + 42 * 81 * + + 61 AS col0
----
207522

query I rowsort
SELECT - 53 * + - 41 AS col0
----
2173

query I rowsort
SELECT + 59 + + ( - + 28 )
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-23
SELECT DISTINCT SUM( 41 ) DIV ( - 36 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT SUM ( 41 ) / ( - 36 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT COALESCE ( + 28, - 51 * + + 46 ) * - - 7 col1
----
196

onlyif mysql # DIV for integer division: 
query I rowsort label-25
SELECT + 6 DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-25
SELECT + 6 / 8
----
0

query II rowsort
SELECT DISTINCT + 96 AS col2, - 50 * 29 * 44 * 87
----
96
-5550600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-27
SELECT ALL 94 * + CAST( + CASE + + ( + 29 ) WHEN - 69 THEN - 13 WHEN - 52 THEN NULL ELSE - CASE + 50 WHEN COUNT( * ) THEN - 80 * 69 END * + 66 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL 94 * + CAST ( + CASE + + ( + 29 ) WHEN - 69 THEN - 13 WHEN - 52 THEN NULL ELSE - CASE + 50 WHEN COUNT ( * ) THEN - 80 * 69 END * + 66 END AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( - + 20, - + 93 + 65 ) AS col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-29
SELECT + COUNT( + 67 ) DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-29
SELECT + COUNT ( + 67 ) / - + 65
----
0

query I rowsort
SELECT DISTINCT 40 * - 4 AS col1
----
-160

query I rowsort
SELECT + 52 * - 39 AS col0
----
-2028

query I rowsort
SELECT ALL + 46 * + - 64 * - + 87
----
256128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT ALL ( 47 ) * - - 68 + 28 + + + CAST( NULL AS SIGNED ) - 80 / 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL ( 47 ) * - - 68 + 28 + + + CAST ( NULL AS INTEGER ) - 80 / 59 AS col0
----
NULL

query I rowsort
SELECT - - 96 * + 11 + - 44 AS col1
----
1012

query I rowsort
SELECT - + 2 * + 34 AS col2
----
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT ALL - 60 * 12 DIV 78 + + - 65 AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-37
SELECT ALL - 60 * 12 / 78 + + - 65 AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT ALL + 45 * + 98 + COUNT( DISTINCT - 62 ) + 15 + + 83
----
4509

skipif mysql # not compatible
query I rowsort label-38
SELECT ALL + 45 * + 98 + COUNT ( DISTINCT - 62 ) + 15 + + 83
----
4509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-39
SELECT + - 95 * 7 + - + 90 + + COUNT( - ( 11 ) ) * + CASE - 22 WHEN + 30 THEN 43 * - ( - CAST( NULL AS SIGNED ) * - 19 + + 83 ) WHEN 69 * + CAST( 69 * + 65 AS DECIMAL ) THEN - 50 + 52 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT + - 95 * 7 + - + 90 + + COUNT ( - ( 11 ) ) * + CASE - 22 WHEN + 30 THEN 43 * - ( - CAST ( NULL AS INTEGER ) * - 19 + + 83 ) WHEN 69 * + CAST ( 69 * + 65 AS REAL ) THEN - 50 + 52 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( - + 87, - 34 ) * - 76 + - 96 + + 30 AS col2
----
6546

query I rowsort
SELECT - - 75 * + 1
----
75

query I rowsort
SELECT + + CASE + - ( - 3 ) WHEN + - 53 THEN - 82 * - 51 END AS col2
----
NULL

query II rowsort
SELECT - 87 col0, 19 * + COALESCE ( + 86, + 14 )
----
-87
1634

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT CASE + COUNT( * ) WHEN - - 45 THEN + - 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-44
SELECT CASE + COUNT ( * ) WHEN - - 45 THEN + - 94 END
----
NULL

query I rowsort
SELECT - - 25 + + ( - - 81 )
----
106

query I rowsort
SELECT ALL - 44 * + ( 74 ) - + + 72
----
-3328

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT - - COUNT( * ) * 9 * 1 - - + COALESCE ( 45, 29 )
----
54

skipif mysql # not compatible
query I rowsort label-47
SELECT - - COUNT ( * ) * 9 * 1 - - + COALESCE ( 45, 29 )
----
54

query I rowsort
SELECT - + 40 + 96 * - + 11 * + 51 + - 35 AS col0
----
-53931

query I rowsort
SELECT - 90 * 48 AS col2
----
-4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT ALL + 55 * + - CASE 65 WHEN - - 95 THEN + - COUNT( * ) DIV - + COUNT( * ) ELSE 18 END AS col2
----
-990

skipif mysql # not compatible
query I rowsort label-50
SELECT ALL + 55 * + - CASE 65 WHEN - - 95 THEN + - COUNT ( * ) / - + COUNT ( * ) ELSE 18 END AS col2
----
-990

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-51
SELECT 39 AS col0, - 8 * + CASE + CAST( NULL AS SIGNED ) WHEN - 84 * + COALESCE ( - + 90, - 5, - 59 ) + - 88 THEN - COALESCE ( 20, - ( - ( 14 ) ) * 13 ) - 89 END + CAST( NULL AS SIGNED )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-51
SELECT 39 AS col0, - 8 * + CASE + CAST ( NULL AS INTEGER ) WHEN - 84 * + COALESCE ( - + 90, - 5, - 59 ) + - 88 THEN - COALESCE ( 20, - ( - ( 14 ) ) * 13 ) - 89 END + CAST ( NULL AS INTEGER )
----
39
NULL

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

skipif mysql # not compatible
query I rowsort label-52
SELECT - MAX ( DISTINCT - 16 )
----
16

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

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

query I rowsort
SELECT - 30 * + + 17
----
-510

query I rowsort
SELECT + 36 * 18 AS col0
----
648

query I rowsort
SELECT - 47 + - - 22
----
-25

query I rowsort
SELECT - 24 + + 3 col1
----
-21

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

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

query II rowsort
SELECT ALL 88 + 67 * + 78 + - 4 AS col0, 69 AS col0
----
5310
69

query I rowsort
SELECT DISTINCT 62 + - + 71 + - - 37
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-61
SELECT + 2 AS col2, - 67 + - 78 + 35 * COUNT( * ) DIV + 88
----
2
-145

skipif mysql # not compatible
query II rowsort label-61
SELECT + 2 AS col2, - 67 + - 78 + 35 * COUNT ( * ) / + 88
----
2
-145

query I rowsort
SELECT + 10 + + - 9 AS col1
----
1

query I rowsort
SELECT + 63 * - + 15 + + 1 + - - 48 + - - 37 * 2 * 7
----
-378

query II rowsort
SELECT ALL 7 * + + 15 AS col1, + 6 + 67
----
105
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-65
SELECT ALL + 65 + + - CASE + COUNT( * ) WHEN - 19 THEN + + COALESCE ( - - CASE + 75 WHEN 81 THEN - ( + 33 ) * + CASE - 4 WHEN + CAST( + 85 AS SIGNED ) + + COUNT( * ) THEN + CAST( - 13 AS SIGNED ) + - 16 END * CAST( + 33 AS SIGNED ) - 27 * + CASE + ( - 83 ) - 82 WHEN 80 + + 56 THEN 92 ELSE CAST( NULL AS SIGNED ) END ELSE NULL END, 22 * - COUNT( * ) ) + 65 * + 72 WHEN + 22 * - 77 THEN NULL ELSE COALESCE ( + MIN( ALL 31 ), - CAST( 50 AS SIGNED ), + 8 * + SUM( 33 ) + + CASE - COUNT( * ) WHEN - COUNT( * ) THEN - CASE - 28 WHEN 58 * + COUNT( * ) THEN NULL WHEN + NULLIF ( + ( 74 ), + 75 ) THEN 90 * + 83 WHEN 17 + CAST( 62 AS SIGNED ) DIV 76 THEN 17 ELSE - COUNT( * ) END WHEN 24 THEN CAST( NULL AS SIGNED ) WHEN + 70 * 91 THEN 79 ELSE NULL END ) END + - 97 DIV 8 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-65
SELECT ALL + 65 + + - CASE + COUNT ( * ) WHEN - 19 THEN + + COALESCE ( - - CASE + 75 WHEN 81 THEN - ( + 33 ) * + CASE - 4 WHEN + CAST ( + 85 AS INTEGER ) + + COUNT ( * ) THEN + CAST ( - 13 AS INTEGER ) + - 16 END * CAST ( + 33 AS INTEGER ) - 27 * + CASE + ( - 83 ) - 82 WHEN 80 + + 56 THEN 92 ELSE CAST ( NULL AS INTEGER ) END ELSE NULL END, 22 * - COUNT ( * ) ) + 65 * + 72 WHEN + 22 * - 77 THEN NULL ELSE COALESCE ( + MIN ( ALL 31 ), - CAST ( 50 AS INTEGER ), + 8 * + SUM ( 33 ) + + CASE - COUNT ( * ) WHEN - COUNT ( * ) THEN - CASE - 28 WHEN 58 * + COUNT ( * ) THEN NULL WHEN + NULLIF ( + ( 74 ), + 75 ) THEN 90 * + 83 WHEN 17 + CAST ( 62 AS INTEGER ) / 76 THEN 17 ELSE - COUNT ( * ) END WHEN 24 THEN CAST ( NULL AS INTEGER ) WHEN + 70 * 91 THEN 79 ELSE NULL END ) END + - 97 / 8 AS col1
----
22

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

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

query I rowsort
SELECT + + 13 col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT - - 55 * 80 * SUM( ALL 11 ) - - 31 + - 0 + + 89
----
48520

skipif mysql # not compatible
query I rowsort label-68
SELECT - - 55 * 80 * SUM ( ALL 11 ) - - 31 + - 0 + + 89
----
48520

query I rowsort
SELECT - 65 * - 13 + - 67 AS col2
----
778

query I rowsort
SELECT ( 26 ) + - - 18
----
44

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

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

query I rowsort
SELECT - 93 * - 41 AS col0
----
3813

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL + 58 * - + COUNT( * ) + + MAX( ALL 58 )
----
0

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL + 58 * - + COUNT ( * ) + + MAX ( ALL 58 )
----
0

query I rowsort
SELECT DISTINCT + + 66 * 37
----
2442

onlyif mysql # aggregate syntax: 
query II rowsort label-75
SELECT 22 * - 71, + 49 * + - COUNT( * ) AS col0
----
-1562
-49

skipif mysql # not compatible
query II rowsort label-75
SELECT 22 * - 71, + 49 * + - COUNT ( * ) AS col0
----
-1562
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-76
SELECT DISTINCT ( CASE + + COUNT( * ) WHEN 43 THEN NULL ELSE - CAST( - + 70 AS SIGNED ) END ) * + + 3
----
210

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT ( CASE + + COUNT ( * ) WHEN 43 THEN NULL ELSE - CAST ( - + 70 AS INTEGER ) END ) * + + 3
----
210

query II rowsort
SELECT ALL + 69 * + + 52, 51 * - - 83 col2
----
3588
4233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-78
SELECT CAST( NULL AS SIGNED ) / + 3 * 86, - 0 + + NULLIF ( + COUNT( * ), + + 98 ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-78
SELECT CAST ( NULL AS INTEGER ) / + 3 * 86, - 0 + + NULLIF ( + COUNT ( * ), + + 98 ) AS col1
----
NULL
1

query I rowsort
SELECT 48 + + 64 * COALESCE ( + - 30, + 96 * - - 52 * - - CASE + NULLIF ( - + 0, - 65 * + 87 / - - 77 ) WHEN + 4 + 46 THEN 6 ELSE 23 END + 21 * 98 ) - - 23 AS col1
----
-1849

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT 31 - CASE + - 53 WHEN - 38 THEN - - MAX( + CASE + - 44 WHEN - 56 + - + 21 THEN 8 WHEN 92 THEN - + 53 ELSE 65 * + 75 END ) / ( + 5 / + 88 ) WHEN - 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-80
SELECT 31 - CASE + - 53 WHEN - 38 THEN - - MAX ( + CASE + - 44 WHEN - 56 + - + 21 THEN 8 WHEN 92 THEN - + 53 ELSE 65 * + 75 END ) / ( + 5 / + 88 ) WHEN - 37 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-81
SELECT 38 DIV 24, 57 AS col0
----
1
57

skipif mysql # not compatible
query II rowsort label-81
SELECT 38 / 24, 57 AS col0
----
1
57

query I rowsort
SELECT DISTINCT - 24 + + + 65 * - 63
----
-4119

onlyif mysql # aggregate syntax: 
query II rowsort label-83
SELECT 47 * - 23 AS col0, - 23 + + COUNT( * ) AS col0
----
-1081
-22

skipif mysql # not compatible
query II rowsort label-83
SELECT 47 * - 23 AS col0, - 23 + + COUNT ( * ) AS col0
----
-1081
-22

query I rowsort
SELECT ALL - 6 * - - 63
----
-378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-85
SELECT ALL - COALESCE ( - + 16, 70 / + 87, - + 94 * - ( - + 34 ) ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - COALESCE ( - + 16, 70 / + 87, - + 94 * - ( - + 34 ) ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 79 + + 93 * - ( + + 54 )
----
-4943

onlyif mysql # aggregate syntax: 
query II rowsort label-87
SELECT ALL + 61 + + - 87, COUNT( * ) * 48 * + - ( + 34 ) * - - 24 - + 57 col0
----
-26
-39225

skipif mysql # not compatible
query II rowsort label-87
SELECT ALL + 61 + + - 87, COUNT ( * ) * 48 * + - ( + 34 ) * - - 24 - + 57 col0
----
-26
-39225

onlyif mysql # aggregate syntax: 
query II rowsort label-88
SELECT DISTINCT ( + 80 ) AS col2, - COUNT( - 54 ) col2
----
80
-1

skipif mysql # not compatible
query II rowsort label-88
SELECT DISTINCT ( + 80 ) AS col2, - COUNT ( - 54 ) col2
----
80
-1

query I rowsort
SELECT ALL + ( 77 ) + + 62
----
139

query I rowsort
SELECT + 47 * - 86 col2
----
-4042

query II rowsort
SELECT DISTINCT + 36 * - 58 AS col1, - 96
----
-2088
-96

query I rowsort
SELECT DISTINCT - - 39 AS col0
----
39

query I rowsort
SELECT ALL + 14 - + + 76
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT - 50 * 22 + - - COUNT( - 35 ) * + COUNT( * ) * - - COUNT( * ) + + - COUNT( + 0 ) + COUNT( * ) - - 57 + + + 63 * - NULLIF ( 48, 98 ) * 38
----
-115954

skipif mysql # not compatible
query I rowsort label-95
SELECT - 50 * 22 + - - COUNT ( - 35 ) * + COUNT ( * ) * - - COUNT ( * ) + + - COUNT ( + 0 ) + COUNT ( * ) - - 57 + + + 63 * - NULLIF ( 48, 98 ) * 38
----
-115954

query I rowsort
SELECT 43 + + 9 * + 32
----
331

query I rowsort
SELECT ALL ( + 40 ) * + 56
----
2240

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

skipif mysql # not compatible
query I rowsort label-98
SELECT COUNT ( ALL + 7 ) * 5 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT ALL + 12 * + - 52 * + COALESCE ( + 11, 11, - - MAX( - 39 ) * 56 ) AS col2
----
-6864

skipif mysql # not compatible
query I rowsort label-99
SELECT ALL + 12 * + - 52 * + COALESCE ( + 11, 11, - - MAX ( - 39 ) * 56 ) AS col2
----
-6864

query I rowsort
SELECT 42 / 92 / + CASE - 93 WHEN - 66 THEN - - 24 * - - 13 * - 63 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT MAX( DISTINCT 83 ) + + 79 AS col2
----
162

skipif mysql # not compatible
query I rowsort label-101
SELECT MAX ( DISTINCT 83 ) + + 79 AS col2
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-102
SELECT COUNT( * ) * + + 3 * - 32 / ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( * ) * + + 3 * - 32 / ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 41 - + 38 AS col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-104
SELECT DISTINCT 82 col2, - COUNT( * )
----
82
-1

skipif mysql # not compatible
query II rowsort label-104
SELECT DISTINCT 82 col2, - COUNT ( * )
----
82
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + 20 * + - 19 + - 5 * + COUNT( * ) col0
----
-385

skipif mysql # not compatible
query I rowsort label-105
SELECT + 20 * + - 19 + - 5 * + COUNT ( * ) col0
----
-385

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

skipif mysql # not compatible
query I rowsort label-106
SELECT - MAX ( + 75 )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-107
SELECT ALL CAST( NULL AS SIGNED ) + COALESCE ( - 79, - 9 ) + 23 * + ( + 64 ) + + ( + 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL CAST ( NULL AS INTEGER ) + COALESCE ( - 79, - 9 ) + 23 * + ( + 64 ) + + ( + 32 ) AS col0
----
NULL

query II rowsort
SELECT ALL 41 AS col1, - 20 * - 67 - + 26 + 87 * - 16 * 64 AS col2
----
41
-87774

query I rowsort
SELECT DISTINCT 53 + - - 29
----
82

query I rowsort
SELECT DISTINCT 12 + - 63
----
-51

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

query I rowsort
SELECT ALL 52 + + 22 AS col1
----
74

query I rowsort
SELECT + 93 * - 21
----
-1953

query I rowsort
SELECT + 10 + 76 * - + ( - + 71 ) AS col1
----
5406

onlyif mysql # DIV for integer division: 
query I rowsort label-115
SELECT ALL - 98 - - 42 DIV - 34 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-115
SELECT ALL - 98 - - 42 / - 34 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-116
SELECT ALL - 40 * COALESCE ( - - 2, - + ( 17 ) * - CAST( NULL AS SIGNED ) ) * 39 * - + 19 + + 3 AS col0
----
59283

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL - 40 * COALESCE ( - - 2, - + ( 17 ) * - CAST ( NULL AS INTEGER ) ) * 39 * - + 19 + + 3 AS col0
----
59283

query I rowsort
SELECT - - 28 + - - 99
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-118
SELECT ALL - - COALESCE ( + + 97, + 64 + + 18 * 31 ) DIV + 34 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-118
SELECT ALL - - COALESCE ( + + 97, + 64 + + 18 * 31 ) / + 34 AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT - 68 DIV MIN( ALL - + 6 ) + + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-119
SELECT - 68 / MIN ( ALL - + 6 ) + + COUNT ( * )
----
12

query I rowsort
SELECT DISTINCT - - 79 * 52
----
4108

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT DISTINCT - + 62 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT - + 62 / + 88
----
0

query I rowsort
SELECT ALL + COALESCE ( 6, - 79 )
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-123
SELECT 88 DIV 1 + + 75 + + 63 * - 38 AS col0
----
-2231

skipif mysql # not compatible
query I rowsort label-123
SELECT 88 / 1 + + 75 + + 63 * - 38 AS col0
----
-2231

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

onlyif mysql # aggregate syntax: 
query II rowsort label-125
SELECT + NULLIF ( - + 28, 72 + - COUNT( ALL + + 81 ) + - + 56 + + 20 * + 38 ) AS col2, + 85
----
-28
85

skipif mysql # not compatible
query II rowsort label-125
SELECT + NULLIF ( - + 28, 72 + - COUNT ( ALL + + 81 ) + - + 56 + + 20 * + 38 ) AS col2, + 85
----
-28
85

query I rowsort
SELECT - - 96 * - 23 col0
----
-2208

query I rowsort
SELECT - 84 * + 40
----
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-128
SELECT DISTINCT - - 7 * - MIN( ALL + 23 )
----
-161

skipif mysql # not compatible
query I rowsort label-128
SELECT DISTINCT - - 7 * - MIN ( ALL + 23 )
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-129
SELECT COALESCE ( - 5, - 4 DIV 17, COUNT( * ) * - CASE + + 40 WHEN - 60 DIV - - 25 THEN - - 98 ELSE NULL END - - - COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-129
SELECT COALESCE ( - 5, - 4 / 17, COUNT ( * ) * - CASE + + 40 WHEN - 60 / - - 25 THEN - - 98 ELSE NULL END - - - COUNT ( * ) ) AS col2
----
-5

query I rowsort
SELECT ALL + 17 * - + 90 + + + 94 * 11 + - 17
----
-513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT 86 * 52 * 77 + CASE - + 43 WHEN + 59 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT 86 * 52 * 77 + CASE - + 43 WHEN + 59 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

query II rowsort
SELECT ALL + - 80 AS col0, + 9 col2
----
-80
9

onlyif mysql # DIV for integer division: 
query I rowsort label-133
SELECT - 55 DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-133
SELECT - 55 / - 32
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT - 41 * - 57 + + - NULLIF ( CASE - 96 WHEN - COUNT( DISTINCT 77 ) * 51 THEN + + COALESCE ( + 30, 20 ) WHEN 26 + + 92 THEN NULL ELSE 8 * SUM( 82 DIV - 71 + - 2 * - 31 ) END, + ( + 73 ) * - 11 )
----
1849

skipif mysql # not compatible
query I rowsort label-134
SELECT - 41 * - 57 + + - NULLIF ( CASE - 96 WHEN - COUNT ( DISTINCT 77 ) * 51 THEN + + COALESCE ( + 30, 20 ) WHEN 26 + + 92 THEN NULL ELSE 8 * SUM ( 82 / - 71 + - 2 * - 31 ) END, + ( + 73 ) * - 11 )
----
1849

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

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

query I rowsort
SELECT COALESCE ( + NULLIF ( 28, + ( - 32 ) + - 46 + + 73 ), - 2 ) AS col2
----
28

query I rowsort
SELECT - 24 + + - 88 AS col1
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT + MAX( ALL + + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-138
SELECT + MAX ( ALL + + 70 )
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-139
SELECT ALL + ( - COALESCE ( + COUNT( * ), 74, + NULLIF ( - 47, + - 91 ) ) ) AS col1, + 13 + - + 67 AS col1
----
-1
-54

skipif mysql # not compatible
query II rowsort label-139
SELECT ALL + ( - COALESCE ( + COUNT ( * ), 74, + NULLIF ( - 47, + - 91 ) ) ) AS col1, + 13 + - + 67 AS col1
----
-1
-54

query I rowsort
SELECT + 59 * + + 44
----
2596

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT MIN( - 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-141
SELECT MIN ( - 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT COUNT( DISTINCT + - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-142
SELECT COUNT ( DISTINCT + - 51 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL 53 * + + COUNT( * ) * + COUNT( * ) + - 0 + + - NULLIF ( + NULLIF ( + COUNT( DISTINCT + 26 ), - 31 ), + SUM( DISTINCT + 29 ) - - 41 + - + 5 + - COUNT( * ) * + 8 ) * - 42 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL 53 * + + COUNT ( * ) * + COUNT ( * ) + - 0 + + - NULLIF ( + NULLIF ( + COUNT ( DISTINCT + 26 ), - 31 ), + SUM ( DISTINCT + 29 ) - - 41 + - + 5 + - COUNT ( * ) * + 8 ) * - 42 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + ( - ( - 51 ) ) + - - MAX( DISTINCT 1 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-144
SELECT + ( - ( - 51 ) ) + - - MAX ( DISTINCT 1 ) AS col1
----
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT + COUNT( * ) + + 78 + 92 col1
----
171

skipif mysql # not compatible
query I rowsort label-146
SELECT + COUNT ( * ) + + 78 + 92 col1
----
171

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-147
SELECT + 35 * - 98, - 66 + 81 - + + CAST( + 67 AS SIGNED ) AS col2
----
-3430
-52

skipif mysql # not compatible
query II rowsort label-147
SELECT + 35 * - 98, - 66 + 81 - + + CAST ( + 67 AS INTEGER ) AS col2
----
-3430
-52

query II rowsort
SELECT DISTINCT 64 - - + 57 + 67 - - 72, 10 AS col2
----
260
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-149
SELECT + 70 - - 31 - + 3 * + CAST( + - 66 AS SIGNED ) + + + 76 * - COUNT( * ) * - 74
----
5923

skipif mysql # not compatible
query I rowsort label-149
SELECT + 70 - - 31 - + 3 * + CAST ( + - 66 AS INTEGER ) + + + 76 * - COUNT ( * ) * - 74
----
5923

query I rowsort
SELECT ALL 69 - + + 52
----
17

query I rowsort
SELECT ALL - 11 col1
----
-11

query II rowsort
SELECT DISTINCT + 30 * - 63 AS col0, 84 * + 39
----
-1890
3276

query II rowsort
SELECT DISTINCT 17 - - + 37 AS col0, - 86
----
54
-86

query I rowsort
SELECT - + 88 col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-155
SELECT - - 42 * + 35 * + CASE + + COUNT( + + 42 ) WHEN + + 73 THEN + 65 WHEN NULLIF ( 34, 27 * - + ( + 72 ) - - COUNT( * ) ) + + 75 THEN NULL WHEN + 21 / ( 68 * 60 ) + + CAST( 37 + + 60 * + 19 AS DECIMAL ) * 33 THEN - 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT - - 42 * + 35 * + CASE + + COUNT ( + + 42 ) WHEN + + 73 THEN + 65 WHEN NULLIF ( 34, 27 * - + ( + 72 ) - - COUNT ( * ) ) + + 75 THEN NULL WHEN + 21 / ( 68 * 60 ) + + CAST ( 37 + + 60 * + 19 AS REAL ) * 33 THEN - 88 END AS col0
----
NULL

query I rowsort
SELECT + 32 - + + 49
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-157
SELECT - COUNT( * ) DIV CAST( - - 79 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-157
SELECT - COUNT ( * ) / CAST ( - - 79 AS INTEGER ) AS col1
----
0

query I rowsort
SELECT DISTINCT + 34 * - 82
----
-2788

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

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + + ( 75 ) / + COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-160
SELECT - + 65 DIV + NULLIF ( 65, - 19 ) AS col0, 84 AS col0
----
-1
84

skipif mysql # not compatible
query II rowsort label-160
SELECT - + 65 / + NULLIF ( 65, - 19 ) AS col0, 84 AS col0
----
-1
84

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-162
SELECT DISTINCT + ( - 8 ) DIV + 12 * + COUNT( * ) + + ( - 52 ) * + COUNT( ALL 10 ) + 19 - - 51 * + 4 col0
----
171

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + ( - 8 ) / + 12 * + COUNT ( * ) + + ( - 52 ) * + COUNT ( ALL 10 ) + 19 - - 51 * + 4 col0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + - 27 * - 88 + - - 55 + - SUM( + 66 )
----
2365

skipif mysql # not compatible
query I rowsort label-163
SELECT + - 27 * - 88 + - - 55 + - SUM ( + 66 )
----
2365

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT DISTINCT - + 64 DIV 74 + + + 97 + 57 AS col0
----
154

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - + 64 / 74 + + + 97 + 57 AS col0
----
154

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

skipif mysql # not compatible
query I rowsort label-165
SELECT + MIN ( + ( - 52 ) )
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-166
SELECT DISTINCT - 91 DIV - 16 + - 71 * + 78
----
-5533

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - 91 / - 16 + - 71 * + 78
----
-5533

query I rowsort
SELECT - 7 + 64
----
57

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

skipif mysql # not compatible
query I rowsort label-168
SELECT + MIN ( - 56 )
----
-56

query I rowsort
SELECT ALL - 38 * 57
----
-2166

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-170
SELECT DISTINCT - 65 + + CASE + COALESCE ( 43, 60, + CAST( + NULLIF ( MIN( - 16 ), 1 * + - 48 * - 65 + + 0 ) AS SIGNED ) * 99 ) WHEN + + MAX( DISTINCT + ( + 62 ) ) - + 28 THEN + 31 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-170
SELECT DISTINCT - 65 + + CASE + COALESCE ( 43, 60, + CAST ( + NULLIF ( MIN ( - 16 ), 1 * + - 48 * - 65 + + 0 ) AS INTEGER ) * 99 ) WHEN + + MAX ( DISTINCT + ( + 62 ) ) - + 28 THEN + 31 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT DISTINCT - ( NULLIF ( 21, + - COUNT( DISTINCT + 22 ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - ( NULLIF ( 21, + - COUNT ( DISTINCT + 22 ) ) )
----
-21

query I rowsort
SELECT 31 + 68 AS col1
----
99

query II rowsort
SELECT 11 AS col1, + 12 col2
----
11
12

query II rowsort
SELECT 46 AS col0, 77 * 63
----
46
4851

onlyif mysql # aggregate syntax: 
query II rowsort label-175
SELECT 76 + - SUM( 1 ) AS col2, + COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-175
SELECT 76 + - SUM ( 1 ) AS col2, + COUNT ( * )
----
75
1

query I rowsort
SELECT 47 * + 72 AS col1
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-177
SELECT ALL + 2 DIV 9
----
0

skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + 2 / 9
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-178
SELECT 27, + 20 DIV 4 * + - 35 AS col0
----
27
-175

skipif mysql # not compatible
query II rowsort label-178
SELECT 27, + 20 / 4 * + - 35 AS col0
----
27
-175

query I rowsort
SELECT DISTINCT 64 * + + 81 AS col2
----
5184

query I rowsort
SELECT 66 + + 95 * - ( - 30 )
----
2916

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-181
SELECT ALL 81 * - - ( + 47 ) * - - CAST( - - 34 AS SIGNED ), - 62 AS col1
----
129438
-62

skipif mysql # not compatible
query II rowsort label-181
SELECT ALL 81 * - - ( + 47 ) * - - CAST ( - - 34 AS INTEGER ), - 62 AS col1
----
129438
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-182
SELECT ALL + 3 DIV + - 86
----
0

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL + 3 / + - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT ALL 58 * + 37 * - COUNT( * ) AS col0
----
-2146

skipif mysql # not compatible
query I rowsort label-183
SELECT ALL 58 * + 37 * - COUNT ( * ) AS col0
----
-2146

query I rowsort
SELECT ALL 75 * 21
----
1575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-185
SELECT ( 16 ) + - + 78 * - CAST( NULL AS SIGNED ) * AVG ( DISTINCT + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT ( 16 ) + - + 78 * - CAST ( NULL AS INTEGER ) * AVG ( DISTINCT + 99 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-186
SELECT 15 * + 51 * + 75 * - + CAST( NULL AS SIGNED ) * + 57 * - - 91 * - ( + 98 ), 84 AS col0
----
NULL
84

skipif mysql # not compatible
query II rowsort label-186
SELECT 15 * + 51 * + 75 * - + CAST ( NULL AS INTEGER ) * + 57 * - - 91 * - ( + 98 ), 84 AS col0
----
NULL
84

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT ALL - 57 * + 49 * COUNT( * ) AS col2, 22 * - 38
----
-2793
-836

skipif mysql # not compatible
query II rowsort label-187
SELECT ALL - 57 * + 49 * COUNT ( * ) AS col2, 22 * - 38
----
-2793
-836

query I rowsort
SELECT + 93 + - - 6
----
99

query I rowsort
SELECT 79 + + 77
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT MAX( - 23 ) * + 67 AS col1
----
-1541

skipif mysql # not compatible
query I rowsort label-190
SELECT MAX ( - 23 ) * + 67 AS col1
----
-1541

query I rowsort
SELECT 38 * + 37
----
1406

query I rowsort
SELECT ALL + 5 + - + NULLIF ( + 64, - ( - 45 ) ) col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT COUNT( * ) + + 2 + + - 82
----
-79

skipif mysql # not compatible
query I rowsort label-193
SELECT COUNT ( * ) + + 2 + + - 82
----
-79

query II rowsort
SELECT - 18 AS col2, + 55
----
-18
55

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL + COUNT( - 94 ) * - 41 * + COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + COUNT ( - 94 ) * - 41 * + COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-196
SELECT CAST( + 92 AS SIGNED ) * - COALESCE ( - + COUNT( 0 ), + ( - + COALESCE ( ( - 53 ), + 28 * + ( + CASE - 73 WHEN - - 69 THEN NULL WHEN 61 THEN 0 WHEN COUNT( * ) * - COUNT( 65 ) + + 25 THEN + 17 WHEN ( 45 ) * - 81 + 14 THEN NULL ELSE NULL END ) + NULLIF ( - COALESCE ( + 15, - 81 ), + 80 * - 61 ) * 68 ) ) ) / CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT CAST ( + 92 AS INTEGER ) * - COALESCE ( - + COUNT ( 0 ), + ( - + COALESCE ( ( - 53 ), + 28 * + ( + CASE - 73 WHEN - - 69 THEN NULL WHEN 61 THEN 0 WHEN COUNT ( * ) * - COUNT ( 65 ) + + 25 THEN + 17 WHEN ( 45 ) * - 81 + 14 THEN NULL ELSE NULL END ) + NULLIF ( - COALESCE ( + 15, - 81 ), + 80 * - 61 ) * 68 ) ) ) / CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

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

query I rowsort
SELECT ALL 20 * 99 * - 18 - - - 81
----
-35721

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT ( 69 ) * 58 + - COUNT( * ) + 67 * + 90 + 95 + + 73
----
10199

skipif mysql # not compatible
query I rowsort label-199
SELECT ( 69 ) * 58 + - COUNT ( * ) + 67 * + 90 + 95 + + 73
----
10199

query I rowsort
SELECT ALL 66 + + 52 * + 81 * + + 6 * - + 95 AS col2
----
-2400774

query I rowsort
SELECT ALL + 79 - - 75 + - 24 * + + 18 + - 8
----
-286

query I rowsort
SELECT 57 * - - 75 * + 4 AS col1
----
17100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-203
SELECT ALL - MIN( - CAST( - + 94 AS SIGNED ) ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - MIN ( - CAST ( - + 94 AS INTEGER ) ) AS col0
----
-94

query II rowsort
SELECT 83 AS col1, - 56
----
83
-56

query II rowsort
SELECT 18 AS col0, ( 83 ) AS col0
----
18
83

onlyif mysql # aggregate syntax: 
query II rowsort label-206
SELECT + 95 AS col0, + COUNT( DISTINCT 23 ) AS col2
----
95
1

skipif mysql # not compatible
query II rowsort label-206
SELECT + 95 AS col0, + COUNT ( DISTINCT 23 ) AS col2
----
95
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT ALL - 16 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - 16 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 * 99 AS col1
----
9108

query I rowsort
SELECT 63 + + - 62 - 80 col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-211
SELECT DISTINCT + 98 - + 46 / - ( + CASE - 50 WHEN - + 65 + + COUNT( * ) + + 9 THEN NULL WHEN - 10 / - + 93 - CASE + 11 WHEN + ( 71 ) THEN NULL WHEN - ( - AVG ( DISTINCT - 14 ) ) THEN - CAST( NULL AS SIGNED ) END / 72 THEN COUNT( 99 ) + 42 WHEN + 61 THEN + 77 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + 98 - + 46 / - ( + CASE - 50 WHEN - + 65 + + COUNT ( * ) + + 9 THEN NULL WHEN - 10 / - + 93 - CASE + 11 WHEN + ( 71 ) THEN NULL WHEN - ( - AVG ( DISTINCT - 14 ) ) THEN - CAST ( NULL AS INTEGER ) END / 72 THEN COUNT ( 99 ) + 42 WHEN + 61 THEN + 77 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-212
SELECT ( + 92 ) * 24 + - + COALESCE ( - 56, - 63 - - 73, + + 40, - MIN( ALL 71 ) ) + + + 2 AS col1, 29 + - NULLIF ( + 66, - - COUNT( * ) - 48 + 53 ) * COALESCE ( + 70, 52 )
----
2266
-4591

skipif mysql # not compatible
query II rowsort label-212
SELECT ( + 92 ) * 24 + - + COALESCE ( - 56, - 63 - - 73, + + 40, - MIN ( ALL 71 ) ) + + + 2 AS col1, 29 + - NULLIF ( + 66, - - COUNT ( * ) - 48 + 53 ) * COALESCE ( + 70, 52 )
----
2266
-4591

query II rowsort
SELECT ALL - 8 col0, - 30
----
-8
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-214
SELECT ALL 52 * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 52 * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-215
SELECT ALL MIN( DISTINCT + 39 ) AS col2, 24 AS col0
----
39
24

skipif mysql # not compatible
query II rowsort label-215
SELECT ALL MIN ( DISTINCT + 39 ) AS col2, 24 AS col0
----
39
24

query I rowsort
SELECT DISTINCT + 99 * - 97
----
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT 98 + - + 49 + - + 93 + - 77 + + + 31 * - ( + + COUNT( * ) ) * 0 * - 88 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-217
SELECT 98 + - + 49 + - + 93 + - 77 + + + 31 * - ( + + COUNT ( * ) ) * 0 * - 88 AS col2
----
-121

query II rowsort
SELECT - 67 AS col0, 39
----
-67
39

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT 71 * + SUM( 40 ) AS col2
----
2840

skipif mysql # not compatible
query I rowsort label-219
SELECT 71 * + SUM ( 40 ) AS col2
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-220
SELECT 15 + + 97 * + - CASE + 66 WHEN + + CASE + COALESCE ( + - CASE - COUNT( * ) WHEN - 92 * 62 THEN - 2 + COALESCE ( + - 29, - 66 + 83 + - ( + 45 ) ) WHEN 9 + - 24 * 95 THEN NULL ELSE NULL END, 11 * + 91 ) WHEN 58 * 20 + 49 THEN + COUNT( * ) * 31 WHEN NULLIF ( ( COUNT( DISTINCT - 50 ) ), 50 ) THEN NULL WHEN NULLIF ( 90, - 37 * 39 ) THEN NULL ELSE 89 END + - 0 * 67 THEN NULL WHEN ( 34 ) THEN + 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-220
SELECT 15 + + 97 * + - CASE + 66 WHEN + + CASE + COALESCE ( + - CASE - COUNT ( * ) WHEN - 92 * 62 THEN - 2 + COALESCE ( + - 29, - 66 + 83 + - ( + 45 ) ) WHEN 9 + - 24 * 95 THEN NULL ELSE NULL END, 11 * + 91 ) WHEN 58 * 20 + 49 THEN + COUNT ( * ) * 31 WHEN NULLIF ( ( COUNT ( DISTINCT - 50 ) ), 50 ) THEN NULL WHEN NULLIF ( 90, - 37 * 39 ) THEN NULL ELSE 89 END + - 0 * 67 THEN NULL WHEN ( 34 ) THEN + 98 END
----
NULL

query I rowsort
SELECT 61 + 76
----
137

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT + COALESCE ( ( - 17 ), + 4 ) * - 97 * 91 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + COALESCE ( ( - 17 ), + 4 ) * - 97 * 91 - + CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-226
SELECT DISTINCT + 76 DIV + 23 + - 94
----
-91

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT + 76 / + 23 + - 94
----
-91

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

skipif mysql # not compatible
query I rowsort label-227
SELECT + 41 / - + COUNT ( * )
----
-41

query I rowsort
SELECT ALL - ( + + 85 ) + 53
----
-32

query I rowsort
SELECT ALL - + 38 + + 23 AS col0
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-230
SELECT - COUNT( * ) / 29 / + 38 / + COUNT( * ) * + CASE - 46 WHEN ( - 33 ) + + 65 + - + 88 THEN CAST( NULL AS DECIMAL ) * + 59 - + + 52 + - - SUM( + 11 ) * 80 - + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT - COUNT ( * ) / 29 / + 38 / + COUNT ( * ) * + CASE - 46 WHEN ( - 33 ) + + 65 + - + 88 THEN CAST ( NULL AS REAL ) * + 59 - + + 52 + - - SUM ( + 11 ) * 80 - + 90 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-231
SELECT 9 DIV + + 80 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-231
SELECT 9 / + + 80 AS col0
----
0

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

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

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

query I rowsort
SELECT 42 - ( + 10 )
----
32

query I rowsort
SELECT - COALESCE ( 98, 45 )
----
-98

query I rowsort
SELECT DISTINCT + - 96 + - 63
----
-159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-237
SELECT ALL + COUNT( * ) * - 82 * - + 47 - + + 23 - - + 20 + 77 + + ( + - COALESCE ( - ( + - 19 ), - 13 * + 23 DIV + 7 + MAX( DISTINCT - + 69 ), + 87 + + - 44 ) ) DIV + 75 * ( CASE 36 WHEN - 38 THEN - CAST( 46 AS SIGNED ) + + 88 * COUNT( * ) ELSE + 6 * - 94 END - 28 )
----
3928

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL + COUNT ( * ) * - 82 * - + 47 - + + 23 - - + 20 + 77 + + ( + - COALESCE ( - ( + - 19 ), - 13 * + 23 / + 7 + MAX ( DISTINCT - + 69 ), + 87 + + - 44 ) ) / + 75 * ( CASE 36 WHEN - 38 THEN - CAST ( 46 AS INTEGER ) + + 88 * COUNT ( * ) ELSE + 6 * - 94 END - 28 )
----
3928

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-239
SELECT CASE + 45 WHEN - - 67 + - - 43 THEN - SUM( - CAST( NULL AS DECIMAL ) ) WHEN MIN( ( 2 ) ) * 39 + 9 + - 19 * + COUNT( * ) THEN NULL WHEN - NULLIF ( + + 32, + - CASE - ( - 47 ) WHEN + 91 THEN + COUNT( * ) + 33 WHEN ( + CAST( 92 AS SIGNED ) ) * - COUNT( * ) + + COUNT( ALL + 91 - - 11 ) * + 61 THEN NULL ELSE 37 END ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-239
SELECT CASE + 45 WHEN - - 67 + - - 43 THEN - SUM ( - CAST ( NULL AS REAL ) ) WHEN MIN ( ( 2 ) ) * 39 + 9 + - 19 * + COUNT ( * ) THEN NULL WHEN - NULLIF ( + + 32, + - CASE - ( - 47 ) WHEN + 91 THEN + COUNT ( * ) + 33 WHEN ( + CAST ( 92 AS INTEGER ) ) * - COUNT ( * ) + + COUNT ( ALL + 91 - - 11 ) * + 61 THEN NULL ELSE 37 END ) THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT ALL 97 * COALESCE ( + CAST( 69 AS SIGNED ), + 89 ) * + MIN( ALL + 95 ) + + COUNT( * ) + 71 - - 14 + - 10 * 42
----
635501

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL 97 * COALESCE ( + CAST ( 69 AS INTEGER ), + 89 ) * + MIN ( ALL + 95 ) + + COUNT ( * ) + 71 - - 14 + - 10 * 42
----
635501

query II rowsort
SELECT DISTINCT 7 * + + 55, 91 AS col2
----
385
91

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + NULLIF ( - + 78, + + 2 * - COUNT( * ) * 25 ) - ( + - 42 ) * 74 AS col2
----
3030

skipif mysql # not compatible
query I rowsort label-242
SELECT + NULLIF ( - + 78, + + 2 * - COUNT ( * ) * 25 ) - ( + - 42 ) * 74 AS col2
----
3030

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

skipif mysql # not compatible
query II rowsort label-243
SELECT - COUNT ( * ) * - 28, + 21 AS col1
----
28
21

query I rowsort
SELECT DISTINCT 53 * - 63 AS col2
----
-3339

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

skipif mysql # not compatible
query I rowsort label-245
SELECT + SUM ( - 40 )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-246
SELECT MIN( DISTINCT + 23 ) AS col0, - 49 * + COALESCE ( - 33, 46 * + 51 + - - 62 ) AS col2
----
23
1617

skipif mysql # not compatible
query II rowsort label-246
SELECT MIN ( DISTINCT + 23 ) AS col0, - 49 * + COALESCE ( - 33, 46 * + 51 + - - 62 ) AS col2
----
23
1617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-247
SELECT + 64 DIV MIN( ALL + 71 ) * - 88 * - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-247
SELECT + 64 / MIN ( ALL + 71 ) * - 88 * - 65 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL + MAX( DISTINCT - + 97 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + MAX ( DISTINCT - + 97 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT SUM( DISTINCT + + 11 ) col2
----
11

skipif mysql # not compatible
query I rowsort label-250
SELECT SUM ( DISTINCT + + 11 ) col2
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-251
SELECT + 11 * COALESCE ( 19, ( 89 ) * - 85 + + 74 - - 7 + + 54, - - 81 * + 28 DIV - + 30 ), ( ( - 20 ) ) * 60 * + + 15 + - 55 + + 46 AS col0
----
209
-18009

skipif mysql # not compatible
query II rowsort label-251
SELECT + 11 * COALESCE ( 19, ( 89 ) * - 85 + + 74 - - 7 + + 54, - - 81 * + 28 / - + 30 ), ( ( - 20 ) ) * 60 * + + 15 + - 55 + + 46 AS col0
----
209
-18009

onlyif mysql # DIV for integer division: 
query I rowsort label-252
SELECT + 28 DIV ( - 10 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-252
SELECT + 28 / ( - 10 ) AS col1
----
-2

query I rowsort
SELECT ALL - - 78 + 1 AS col0
----
79

query II rowsort
SELECT ALL 68 + 69 AS col0, 75 * 43
----
137
3225

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

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

query I rowsort
SELECT DISTINCT ( + 0 ) * - 94 AS col1
----
0

query II rowsort
SELECT ALL - 83 + + - 53 + + 6 * + 91 * - + 10 - - - 14 * - 83 col2, 54 AS col0
----
-4434
54

query I rowsort
SELECT - 34 - 42 * - + 97
----
4040

query I rowsort
SELECT ALL + 13 * - - 22
----
286

query I rowsort
SELECT - 48 - + 93
----
-141

query II rowsort
SELECT + 92 + - + 98, 58 col0
----
-6
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-262
SELECT - - 17 + + + 88 + - 99 + + - 9 DIV + + 87 * 99 * - COALESCE ( - ( + + COUNT( * ) ), 14 + - CAST( NULL AS SIGNED ) * + + NULLIF ( ( + 90 ), 44 ) - 5 + - + 29 * 86 )
----
6

skipif mysql # not compatible
query I rowsort label-262
SELECT - - 17 + + + 88 + - 99 + + - 9 / + + 87 * 99 * - COALESCE ( - ( + + COUNT ( * ) ), 14 + - CAST ( NULL AS INTEGER ) * + + NULLIF ( ( + 90 ), 44 ) - 5 + - + 29 * 86 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-263
SELECT + MAX( DISTINCT + 52 ), + COALESCE ( - 37, 66 * + 72 DIV - + 97 + 31 DIV + - ( - 15 ) + - 48 ) AS col0
----
52
-37

skipif mysql # not compatible
query II rowsort label-263
SELECT + MAX ( DISTINCT + 52 ), + COALESCE ( - 37, 66 * + 72 / - + 97 + 31 / + - ( - 15 ) + - 48 ) AS col0
----
52
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-264
SELECT - + 42 + - COALESCE ( + 68, - 78 ) DIV + + 59 col0, - 36 DIV - 43
----
-43
0

skipif mysql # not compatible
query II rowsort label-264
SELECT - + 42 + - COALESCE ( + 68, - 78 ) / + + 59 col0, - 36 / - 43
----
-43
0

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - + COALESCE ( 90, + 9 - + 35, - COUNT( * ) ) * COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-265
SELECT - + COALESCE ( 90, + 9 - + 35, - COUNT ( * ) ) * COUNT ( * ) AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-266
SELECT DISTINCT - COALESCE ( + + 70, 0 ) DIV - + 32 + 9 AS col0
----
11

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT - COALESCE ( + + 70, 0 ) / - + 32 + 9 AS col0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-267
SELECT - - 67 + + 81, CAST( 27 AS SIGNED ) AS col0
----
148
27

skipif mysql # not compatible
query II rowsort label-267
SELECT - - 67 + + 81, CAST ( 27 AS INTEGER ) AS col0
----
148
27

query I rowsort
SELECT ALL - + ( 49 ) * + 42
----
-2058

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT ALL - CAST( - 15 AS SIGNED ) - - 43 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - CAST ( - 15 AS INTEGER ) - - 43 AS col1
----
58

query I rowsort
SELECT - 50 * + 48 + 98 AS col2
----
-2302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT - 70 DIV - - NULLIF ( - - COUNT( * ), + - ( - 81 ) )
----
-70

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - 70 / - - NULLIF ( - - COUNT ( * ), + - ( - 81 ) )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL 48 - - - COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL 48 - - - COUNT ( * ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT - SUM( + - 65 ) + + - COUNT( * ) * - 57
----
122

skipif mysql # not compatible
query I rowsort label-274
SELECT - SUM ( + - 65 ) + + - COUNT ( * ) * - 57
----
122

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

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - 88 * CAST ( NULL AS INTEGER )
----
NULL

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

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

query I rowsort
SELECT ALL + 16 * + 81 AS col0
----
1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-278
SELECT CAST( CASE - 15 WHEN MIN( DISTINCT - 46 ) + - - 93 THEN NULL ELSE + + ( - + 81 ) END AS SIGNED ) * + - 77 + + COALESCE ( + + 76, - + 89 ) col1
----
6313

skipif mysql # not compatible
query I rowsort label-278
SELECT CAST ( CASE - 15 WHEN MIN ( DISTINCT - 46 ) + - - 93 THEN NULL ELSE + + ( - + 81 ) END AS INTEGER ) * + - 77 + + COALESCE ( + + 76, - + 89 ) col1
----
6313

query I rowsort
SELECT ALL + 16 * - - 93
----
1488

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

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL + COALESCE ( - 54, - - ( 6 ), - - 58, - COUNT( * ) )
----
-54

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL + COALESCE ( - 54, - - ( 6 ), - - 58, - COUNT ( * ) )
----
-54

query I rowsort
SELECT ALL 35 * - 60
----
-2100

query I rowsort
SELECT - 52 * 90 AS col1
----
-4680

query I rowsort
SELECT DISTINCT 64 * + 97 AS col1
----
6208

query I rowsort
SELECT ( - ( - COALESCE ( 8, + 58 ) ) )
----
8

query I rowsort
SELECT + 93 * - - 13
----
1209

query I rowsort
SELECT ALL 99 * + 5 * + 93
----
46035

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT DISTINCT + 90 * - 87 * - 88 + - - COUNT( * ) + + NULLIF ( + 38, - + COALESCE ( - MAX( - - 48 ), + - 5 * + COUNT( * ), 56 + - COUNT( * ) ) + + MAX( ALL - + 63 ) * + 35 ) AS col1
----
689079

skipif mysql # not compatible
query I rowsort label-289
SELECT DISTINCT + 90 * - 87 * - 88 + - - COUNT ( * ) + + NULLIF ( + 38, - + COALESCE ( - MAX ( - - 48 ), + - 5 * + COUNT ( * ), 56 + - COUNT ( * ) ) + + MAX ( ALL - + 63 ) * + 35 ) AS col1
----
689079

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-290
SELECT + ( - 94 ) DIV 72 + - 42 * + COUNT( * ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-290
SELECT + ( - 94 ) / 72 + - 42 * + COUNT ( * ) col0
----
-43

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

skipif mysql # not compatible
query I rowsort label-291
SELECT + ( - + 63 ) * - COUNT ( * ) + - 27 AS col2
----
36

query I rowsort
SELECT - COALESCE ( 26, - CASE 48 WHEN - - 12 THEN 6 * 29 * 29 END ) AS col2
----
-26

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

skipif mysql # not compatible
query I rowsort label-293
SELECT + - 32 + - CAST ( NULL AS INTEGER ) - - + 72 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT DISTINCT + 96 * ( + 3 ) + + - COUNT( * ) + 1 + 49 + - COUNT( * ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT + 96 * ( + 3 ) + + - COUNT ( * ) + 1 + 49 + - COUNT ( * ) AS col2
----
336

query II rowsort
SELECT - 92, 98 AS col2
----
-92
98

onlyif mysql # aggregate syntax: 
query II rowsort label-296
SELECT - - 93 col1, + NULLIF ( SUM( + - ( - 92 ) ), 2 / - COUNT( * ) + 5 ) AS col2
----
93
92

skipif mysql # not compatible
query II rowsort label-296
SELECT - - 93 col1, + NULLIF ( SUM ( + - ( - 92 ) ), 2 / - COUNT ( * ) + 5 ) AS col2
----
93
92

query II rowsort
SELECT 9, 61 AS col2
----
9
61

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - + CASE - 82 WHEN 4 / COUNT( * ) * + 68 * MAX( - 13 ) THEN + + 61 WHEN + 87 THEN - 83 / 63 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-298
SELECT - + CASE - 82 WHEN 4 / COUNT ( * ) * + 68 * MAX ( - 13 ) THEN + + 61 WHEN + 87 THEN - 83 / 63 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT ALL - + 71 * - MAX( 58 ) + + - 76 AS col1
----
4042

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - + 71 * - MAX ( 58 ) + + - 76 AS col1
----
4042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-300
SELECT - - NULLIF ( - + NULLIF ( - + 67, - 62 ), COALESCE ( + + 71, - COUNT( * ) * + ( 79 ) + + 85 * + 48 + + 28 + - 35, + + CAST( NULL AS SIGNED ) + + 3 / - COUNT( DISTINCT 28 ) + - 79, COALESCE ( 32, + ( - SUM( ALL 5 ) ), - ( + 84 ) * - 85 ) ) / 74 )
----
67

skipif mysql # not compatible
query I rowsort label-300
SELECT - - NULLIF ( - + NULLIF ( - + 67, - 62 ), COALESCE ( + + 71, - COUNT ( * ) * + ( 79 ) + + 85 * + 48 + + 28 + - 35, + + CAST ( NULL AS INTEGER ) + + 3 / - COUNT ( DISTINCT 28 ) + - 79, COALESCE ( 32, + ( - SUM ( ALL 5 ) ), - ( + 84 ) * - 85 ) ) / 74 )
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-301
SELECT DISTINCT + ( - + MIN( 97 ) ), - 14 * - MAX( ( 83 ) ) col1
----
-97
1162

skipif mysql # not compatible
query II rowsort label-301
SELECT DISTINCT + ( - + MIN ( 97 ) ), - 14 * - MAX ( ( 83 ) ) col1
----
-97
1162

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL 9 * 49 + COUNT( * ) / COUNT( * ) * - - CASE + 0 WHEN + 22 + - COUNT( * ) THEN ( + 92 ) / + ( 32 ) + + + 59 - + + ( 49 ) / COALESCE ( - ( 56 ), ( 41 ) * 40 ) END * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL 9 * 49 + COUNT ( * ) / COUNT ( * ) * - - CASE + 0 WHEN + 22 + - COUNT ( * ) THEN ( + 92 ) / + ( 32 ) + + + 59 - + + ( 49 ) / COALESCE ( - ( 56 ), ( 41 ) * 40 ) END * 68
----
NULL

query I rowsort
SELECT 49 * ( + - NULLIF ( + ( - + 75 ), + + 21 ) ) AS col0
----
3675

query II rowsort
SELECT - 66 col2, + 88
----
-66
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT 41 * CAST( COUNT( * ) AS SIGNED ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-305
SELECT 41 * CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT 82 * - COUNT( * ) * + 52 * ( - 21 )
----
89544

skipif mysql # not compatible
query I rowsort label-306
SELECT 82 * - COUNT ( * ) * + 52 * ( - 21 )
----
89544

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-307
SELECT 56 - - NULLIF ( - - 33, COUNT( * ) + - 62 * 81 * + 62 * 81 + NULLIF ( 67, 29 ) - - ( + COUNT( * ) ) + + COUNT( * ) * - 50 ) - - + COUNT( * ) + 54 DIV + 84 * + 32 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-307
SELECT 56 - - NULLIF ( - - 33, COUNT ( * ) + - 62 * 81 * + 62 * 81 + NULLIF ( 67, 29 ) - - ( + COUNT ( * ) ) + + COUNT ( * ) * - 50 ) - - + COUNT ( * ) + 54 / + 84 * + 32 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-308
SELECT 66 - + ( + ( - + COUNT( DISTINCT + 1 ) ) ) AS col1, 44 + - CAST( NULL AS SIGNED ) * + - 6 AS col0
----
67
NULL

skipif mysql # not compatible
query II rowsort label-308
SELECT 66 - + ( + ( - + COUNT ( DISTINCT + 1 ) ) ) AS col1, 44 + - CAST ( NULL AS INTEGER ) * + - 6 AS col0
----
67
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 75, + 47 ) AS col0
----
75

query I rowsort
SELECT 85 * + 68
----
5780

query I rowsort
SELECT ALL - 57 + - + 66
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-312
SELECT 62 DIV - ( + 66 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-312
SELECT 62 / - ( + 66 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + 57 * - COUNT( ALL 29 ) + - + COALESCE ( - - 49, + 89, 37 )
----
-106

skipif mysql # not compatible
query I rowsort label-313
SELECT + 57 * - COUNT ( ALL 29 ) + - + COALESCE ( - - 49, + 89, 37 )
----
-106

query I rowsort
SELECT 1 - - 56 - 87 AS col2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-315
SELECT ALL - 85 * - - 0 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL - 85 * - - 0 / - 43
----
0

query I rowsort
SELECT 7 * NULLIF ( - + 38, 65 / + 99 ) AS col2
----
-266

query I rowsort
SELECT 10 * + 37
----
370

query I rowsort
SELECT ALL + 13 + 33 - + + 34
----
12

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

skipif mysql # not compatible
query I rowsort label-319
SELECT - COUNT ( * ) * - 13 + - 41 AS col2
----
-28

query I rowsort
SELECT ALL - COALESCE ( - 34, + 77 ) AS col0
----
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT + + CASE + 17 WHEN + - ( + - 48 ) THEN NULL WHEN - 60 * + 68 THEN NULL ELSE + - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-322
SELECT + + CASE + 17 WHEN + - ( + - 48 ) THEN NULL WHEN - 60 * + 68 THEN NULL ELSE + - COUNT ( * ) END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT DISTINCT + MIN( ALL - 92 ) + - + 82 AS col2
----
-174

skipif mysql # not compatible
query I rowsort label-323
SELECT DISTINCT + MIN ( ALL - 92 ) + - + 82 AS col2
----
-174

query I rowsort
SELECT DISTINCT + - CASE - 23 WHEN - 48 + 38 THEN NULL ELSE + 88 END - - 25
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT ALL - 97 * + SUM( 21 )
----
-2037

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL - 97 * + SUM ( 21 )
----
-2037

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT + - ( - COUNT( 48 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-326
SELECT + - ( - COUNT ( 48 ) ) col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-327
SELECT - 10 * - ( + 71 ) - - - CAST( 70 AS SIGNED ) col1, 85 DIV - 31 AS col0
----
640
-2

skipif mysql # not compatible
query II rowsort label-327
SELECT - 10 * - ( + 71 ) - - - CAST ( 70 AS INTEGER ) col1, 85 / - 31 AS col0
----
640
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT DISTINCT + COUNT( * ) - 51 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT + COUNT ( * ) - 51 AS col0
----
-50

query I rowsort
SELECT 87 * - 12 + + - 70
----
-1114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-330
SELECT CAST( NULL AS SIGNED ) - + 34 AS col2, 0 * - 61 - - + 13 AS col2
----
NULL
13

skipif mysql # not compatible
query II rowsort label-330
SELECT CAST ( NULL AS INTEGER ) - + 34 AS col2, 0 * - 61 - - + 13 AS col2
----
NULL
13

query I rowsort
SELECT + 46 - - + ( - 7 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT ALL + 21 DIV + 33 * + 71 * + 63 DIV + 19
----
0

skipif mysql # not compatible
query I rowsort label-332
SELECT ALL + 21 / + 33 * + 71 * + 63 / + 19
----
0

query I rowsort
SELECT ( - 90 ) * + 6
----
-540

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT - 59 * COUNT( * ) AS col1, MAX( ALL + - 95 )
----
-59
-95

skipif mysql # not compatible
query II rowsort label-334
SELECT - 59 * COUNT ( * ) AS col1, MAX ( ALL + - 95 )
----
-59
-95

query I rowsort
SELECT NULLIF ( - + ( + - ( 82 ) ), - - 8 + + + 10 ) + 46
----
128

query I rowsort
SELECT 50 * + 20 AS col1
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT 56 + + COUNT( * ) * + MAX( DISTINCT - 8 ) - 22 + - 33 * 90
----
-2944

skipif mysql # not compatible
query I rowsort label-337
SELECT 56 + + COUNT ( * ) * + MAX ( DISTINCT - 8 ) - 22 + - 33 * 90
----
-2944

query II rowsort
SELECT ALL 24 AS col1, 44 AS col0
----
24
44

query I rowsort
SELECT DISTINCT 88 + 58 AS col2
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-340
SELECT 1 + + - 33 + CAST( + 89 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-340
SELECT 1 + + - 33 + CAST ( + 89 AS INTEGER )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-341
SELECT MIN( ALL + - CAST( - 55 AS SIGNED ) )
----
55

skipif mysql # not compatible
query I rowsort label-341
SELECT MIN ( ALL + - CAST ( - 55 AS INTEGER ) )
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT ALL + 2 * + - MIN( - 43 ) * + 75 + - + ( - 81 )
----
6531

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + 2 * + - MIN ( - 43 ) * + 75 + - + ( - 81 )
----
6531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-344
SELECT + CAST( + 95 AS SIGNED ) * 44 - - COUNT( * ) + + COUNT( * ) + NULLIF ( - 20, + COALESCE ( - COALESCE ( + 91, + - 19, - COALESCE ( - 5, + - 62 + MAX( DISTINCT + 38 ) + 33, + 96 - - - 4 + - 48, 69 * ( 21 * COALESCE ( COUNT( * ) / - 58, 38 + 14 ) ) + COUNT( * ) * 13 ) * 44 - 39 * COUNT( * ) ), + MAX( ALL 1 ) ) ) AS col0
----
4162

skipif mysql # not compatible
query I rowsort label-344
SELECT + CAST ( + 95 AS INTEGER ) * 44 - - COUNT ( * ) + + COUNT ( * ) + NULLIF ( - 20, + COALESCE ( - COALESCE ( + 91, + - 19, - COALESCE ( - 5, + - 62 + MAX ( DISTINCT + 38 ) + 33, + 96 - - - 4 + - 48, 69 * ( 21 * COALESCE ( COUNT ( * ) / - 58, 38 + 14 ) ) + COUNT ( * ) * 13 ) * 44 - 39 * COUNT ( * ) ), + MAX ( ALL 1 ) ) ) AS col0
----
4162

onlyif mysql # aggregate syntax: 
query II rowsort label-345
SELECT ALL - 71 AS col2, CASE + MAX( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT( * ) AS col2
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-345
SELECT ALL - 71 AS col2, CASE + MAX ( ALL 23 ) WHEN + 31 + - + 21 THEN 14 ELSE NULL END * + COUNT ( * ) AS col2
----
-71
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-346
SELECT 10 DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-346
SELECT 10 / + 41
----
0

query I rowsort
SELECT 16 * + 0 * - - 61 * + - 28 * - - 7 * 38 AS col0
----
0

query I rowsort
SELECT ALL + - 58 * 88 + - ( - 84 )
----
-5020

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

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

query I rowsort
SELECT ALL + + 92 * - NULLIF ( 24, + - 75 )
----
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-351
SELECT - COUNT( * ) * + CAST( - 81 AS SIGNED ) - + + COALESCE ( - COALESCE ( 52, 4 * 61 ), + 88 * + ( + 29 ) ) col2, + COUNT( * ) * + ( - COUNT( * ) ) col0
----
133
-1

skipif mysql # not compatible
query II rowsort label-351
SELECT - COUNT ( * ) * + CAST ( - 81 AS INTEGER ) - + + COALESCE ( - COALESCE ( 52, 4 * 61 ), + 88 * + ( + 29 ) ) col2, + COUNT ( * ) * + ( - COUNT ( * ) ) col0
----
133
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-352
SELECT COALESCE ( - 93, + CAST( NULL AS SIGNED ) + + - 48 + MIN( + ( - - 73 ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-352
SELECT COALESCE ( - 93, + CAST ( NULL AS INTEGER ) + + - 48 + MIN ( + ( - - 73 ) ) )
----
-93

query I rowsort
SELECT - + 29 + + 78
----
49

query I rowsort
SELECT DISTINCT - + 62 - - - 14
----
-76

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-356
SELECT - + COALESCE ( + COUNT( * ), + - 45 ) * - - 1 + + 36 DIV + 92 + - 97 + 60 + - NULLIF ( 78, - COALESCE ( + COUNT( * ), + - MAX( ALL + - 29 ) DIV - 51 + + 77 + + + 22 DIV - 91 * - 3 * 62, 31 * - NULLIF ( + 73, 82 ) ) ) AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-356
SELECT - + COALESCE ( + COUNT ( * ), + - 45 ) * - - 1 + + 36 / + 92 + - 97 + 60 + - NULLIF ( 78, - COALESCE ( + COUNT ( * ), + - MAX ( ALL + - 29 ) / - 51 + + 77 + + + 22 / - 91 * - 3 * 62, 31 * - NULLIF ( + 73, 82 ) ) ) AS col2
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT - 85 - + 85 - - + ( + COUNT( * ) )
----
-169

skipif mysql # not compatible
query I rowsort label-357
SELECT - 85 - + 85 - - + ( + COUNT ( * ) )
----
-169

onlyif mysql # aggregate syntax: 
query II rowsort label-358
SELECT + + COUNT( * ) col0, + 47
----
1
47

skipif mysql # not compatible
query II rowsort label-358
SELECT + + COUNT ( * ) col0, + 47
----
1
47

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT + COUNT( * ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-359
SELECT + COUNT ( * ) + 71
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT 55 * - COUNT( * ) + ( - ( + 18 ) ) + + 31 - - 4
----
-38

skipif mysql # not compatible
query I rowsort label-360
SELECT 55 * - COUNT ( * ) + ( - ( + 18 ) ) + + 31 - - 4
----
-38

query I rowsort
SELECT DISTINCT + 91 * + + 41 + - 8
----
3723

onlyif mysql # aggregate syntax: 
query I rowsort label-362
SELECT - ( - COUNT( ALL + 37 ) ) * + - NULLIF ( + 56, 96 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-362
SELECT - ( - COUNT ( ALL + 37 ) ) * + - NULLIF ( + 56, 96 ) AS col0
----
-56

query I rowsort
SELECT + 57 * - 72
----
-4104

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

skipif mysql # not compatible
query I rowsort label-364
SELECT ALL - 58 + + COUNT ( * ) AS col2
----
-57

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-365
SELECT ALL + 84 * - CASE + 66 WHEN + 47 THEN - - 3 WHEN - CAST( NULL AS DECIMAL ) / - - COALESCE ( - + COUNT( * ), - - 90 ) THEN NULL END * + 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL + 84 * - CASE + 66 WHEN + 47 THEN - - 3 WHEN - CAST ( NULL AS REAL ) / - - COALESCE ( - + COUNT ( * ), - - 90 ) THEN NULL END * + 90 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-366
SELECT - COUNT( * ) AS col2, - SUM( + - 23 )
----
-1
23

skipif mysql # not compatible
query II rowsort label-366
SELECT - COUNT ( * ) AS col2, - SUM ( + - 23 )
----
-1
23

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-367
SELECT DISTINCT - 12 + - 64 + - 85 + + 18 + - - 51 DIV - 45 + - CAST( - 60 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - 12 + - 64 + - 85 + + 18 + - - 51 / - 45 + - CAST ( - 60 AS INTEGER )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT - COUNT( DISTINCT - 38 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-368
SELECT - COUNT ( DISTINCT - 38 ) col2
----
-1

query I rowsort
SELECT + 24 * 13 AS col0
----
312

onlyif mysql # aggregate syntax: 
query II rowsort label-370
SELECT 72, + 9 - + 64 + - COUNT( * ) AS col2
----
72
-56

skipif mysql # not compatible
query II rowsort label-370
SELECT 72, + 9 - + 64 + - COUNT ( * ) AS col2
----
72
-56

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

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

query I rowsort
SELECT + 18 * - ( + - 97 ) AS col2
----
1746

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT - SUM( + 30 ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-373
SELECT - SUM ( + 30 ) AS col2
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-375
SELECT + 94 * - + 58 * + + COUNT( * ) AS col2
----
-5452

skipif mysql # not compatible
query I rowsort label-375
SELECT + 94 * - + 58 * + + COUNT ( * ) AS col2
----
-5452

query II rowsort
SELECT DISTINCT 51, + NULLIF ( 4, + ( - - 37 ) ) AS col0
----
51
4

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

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

query I rowsort
SELECT + 4 * 46 + + - 61 AS col1
----
123

query I rowsort
SELECT + 28 - + 26 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT ALL COUNT( * ) * 22 AS col0
----
22

skipif mysql # not compatible
query I rowsort label-381
SELECT ALL COUNT ( * ) * 22 AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT - SUM( 63 ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-382
SELECT - SUM ( 63 ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-383
SELECT + 69 * - ( + 63 ) + - CAST( NULL AS SIGNED ) col1, 20 - 65
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-383
SELECT + 69 * - ( + 63 ) + - CAST ( NULL AS INTEGER ) col1, 20 - 65
----
NULL
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT - 89 - - 1 + - - COUNT( * ) + - + NULLIF ( - + 61, - 5 ) * - 89
----
-5516

skipif mysql # not compatible
query I rowsort label-384
SELECT - 89 - - 1 + - - COUNT ( * ) + - + NULLIF ( - + 61, - 5 ) * - 89
----
-5516

query II rowsort
SELECT DISTINCT + 80 col1, 88 - - 33
----
80
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-386
SELECT + + 75 * - CAST( + 97 AS SIGNED ) AS col0
----
-7275

skipif mysql # not compatible
query I rowsort label-386
SELECT + + 75 * - CAST ( + 97 AS INTEGER ) AS col0
----
-7275

query I rowsort
SELECT + - 0 + NULLIF ( + 44, 80 ) + + 32
----
76

query I rowsort
SELECT ALL + + 25 AS col0
----
25

query II rowsort
SELECT DISTINCT + 60, - 40 AS col0
----
60
-40

query II rowsort
SELECT - 81 * - 79 + 7 - - - 77 AS col2, ( - 76 ) AS col2
----
6329
-76

query I rowsort
SELECT ALL + - 64 * 85
----
-5440

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT ALL + - 48, MIN( - + 44 ) + - 28 + + 89 + + COUNT( * ) * COUNT( * ) * + 48 AS col2
----
-48
65

skipif mysql # not compatible
query II rowsort label-392
SELECT ALL + - 48, MIN ( - + 44 ) + - 28 + + 89 + + COUNT ( * ) * COUNT ( * ) * + 48 AS col2
----
-48
65

query II rowsort
SELECT + 61, 31 - - - 92 AS col1
----
61
-61

query I rowsort
SELECT + 31 + + 86
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-395
SELECT - 11 AS col2, 46 DIV + - COUNT( * )
----
-11
-46

skipif mysql # not compatible
query II rowsort label-395
SELECT - 11 AS col2, 46 / + - COUNT ( * )
----
-11
-46

query I rowsort
SELECT ALL + 54 * + 95 + + - 90
----
5040

query I rowsort
SELECT + 45 + 33 AS col2
----
78

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-398
SELECT - 19 + - CAST( NULL AS SIGNED ) - + CAST( NULL AS DECIMAL ) / 18
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT - 19 + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS REAL ) / 18
----
NULL

query I rowsort
SELECT + 58 * + - 13 AS col1
----
-754

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-400
SELECT - - COUNT( - CAST( NULL AS SIGNED ) ) DIV - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT - - COUNT ( - CAST ( NULL AS INTEGER ) ) / - 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT + ( + 22 ) * 43 + + + SUM( - 8 ) + + 8 AS col1
----
946

skipif mysql # not compatible
query I rowsort label-401
SELECT + ( + 22 ) * 43 + + + SUM ( - 8 ) + + 8 AS col1
----
946

query II rowsort
SELECT + 84 AS col0, - ( 69 )
----
84
-69

query I rowsort
SELECT ALL + - 93 * - 95 + - ( + 71 ) * + 12 AS col0
----
7983

onlyif mysql # aggregate syntax: 
query II rowsort label-404
SELECT DISTINCT - + 89 * + - SUM( DISTINCT + 99 ) + + - ( - MAX( DISTINCT 84 ) ) * - 26, 56 AS col1
----
6627
56

skipif mysql # not compatible
query II rowsort label-404
SELECT DISTINCT - + 89 * + - SUM ( DISTINCT + 99 ) + + - ( - MAX ( DISTINCT 84 ) ) * - 26, 56 AS col1
----
6627
56

query I rowsort
SELECT DISTINCT 58 * - + 46 + 74 AS col1
----
-2594

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-406
SELECT DISTINCT 83 * - - 68 + + 57 * MIN( - - CAST( NULL AS SIGNED ) ) + + 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT 83 * - - 68 + + 57 * MIN ( - - CAST ( NULL AS INTEGER ) ) + + 0 AS col0
----
NULL

query I rowsort
SELECT + 33 * + 64 * - 4 + 75 AS col1
----
-8373

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

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

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

query I rowsort
SELECT - 12 + + + 6 + 53 * + 79
----
4181

query I rowsort
SELECT + 94 + + - 7 * + + 71 * - + 88
----
43830

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-412
SELECT - CAST( NULL AS DECIMAL ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-412
SELECT - CAST ( NULL AS REAL ) + + 57
----
NULL

query I rowsort
SELECT - ( 60 ) col2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT - MAX( ALL + 59 ) + - + 79 + - 30 + - 84 * 5 * - 75 AS col0
----
31332

skipif mysql # not compatible
query I rowsort label-414
SELECT - MAX ( ALL + 59 ) + - + 79 + - 30 + - 84 * 5 * - 75 AS col0
----
31332

query I rowsort
SELECT ALL + 36 * + 45
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT - 58 + - 77 * + 25 - NULLIF ( COUNT( * ), - 6 )
----
-1984

skipif mysql # not compatible
query I rowsort label-416
SELECT - 58 + - 77 * + 25 - NULLIF ( COUNT ( * ), - 6 )
----
-1984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-417
SELECT ALL CAST( + 28 AS SIGNED ) AS col2, ( 10 ) AS col2
----
28
10

skipif mysql # not compatible
query II rowsort label-417
SELECT ALL CAST ( + 28 AS INTEGER ) AS col2, ( 10 ) AS col2
----
28
10

onlyif mysql # aggregate syntax: 
query II rowsort label-418
SELECT - ( - + 42 ) AS col1, + 44 * + SUM( 46 )
----
42
2024

skipif mysql # not compatible
query II rowsort label-418
SELECT - ( - + 42 ) AS col1, + 44 * + SUM ( 46 )
----
42
2024

query I rowsort
SELECT + 28 + 66
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + 4 + + + COUNT( * ) - + 32 + + + 86
----
59

skipif mysql # not compatible
query I rowsort label-420
SELECT + 4 + + + COUNT ( * ) - + 32 + + + 86
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT 36 + + CAST( + 36 AS SIGNED ) + - + 30 + + - 87 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-421
SELECT 36 + + CAST ( + 36 AS INTEGER ) + - + 30 + + - 87 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-422
SELECT DISTINCT - 65 DIV + 60
----
-1

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT - 65 / + 60
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-423
SELECT DISTINCT + 85 * - 17 * - 84 + - + 68 + - 5 * - + 41 + - 24 AS col0, + COUNT( * ) + + 43 DIV + 2
----
121493
22

skipif mysql # not compatible
query II rowsort label-423
SELECT DISTINCT + 85 * - 17 * - 84 + - + 68 + - 5 * - + 41 + - 24 AS col0, + COUNT ( * ) + + 43 / + 2
----
121493
22

query I rowsort
SELECT DISTINCT - NULLIF ( - ( - 31 ), - - 49 )
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT ALL - CASE 41 WHEN + - 32 * - + 62 THEN NULL WHEN - + 70 THEN 80 * + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - CASE 41 WHEN + - 32 * - + 62 THEN NULL WHEN - + 70 THEN 80 * + COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-426
SELECT + 28 * - COUNT( * ) + - CAST( 99 AS SIGNED ) - - 53 * + + 88 + + 89 * 67, 5 AS col2
----
10500
5

skipif mysql # not compatible
query II rowsort label-426
SELECT + 28 * - COUNT ( * ) + - CAST ( 99 AS INTEGER ) - - 53 * + + 88 + + 89 * 67, 5 AS col2
----
10500
5

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL + CASE + MIN( DISTINCT 87 ) WHEN + + 97 THEN - - 20 END + COUNT( * ) * - + 31 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + CASE + MIN ( DISTINCT 87 ) WHEN + + 97 THEN - - 20 END + COUNT ( * ) * - + 31 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT - 64 + - + COUNT( * ) * - - 18
----
-82

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 64 + - + COUNT ( * ) * - - 18
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT DISTINCT + 89 + + - COUNT( * ) - + 52 * + 84
----
-4280

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + 89 + + - COUNT ( * ) - + 52 * + 84
----
-4280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-430
SELECT ALL COUNT( * ) + + COUNT( * ) + - - ( + COALESCE ( - + 75, + ( - CAST( NULL AS SIGNED ) ) ) ) / + CASE - CAST( NULL AS SIGNED ) WHEN - 49 * + COALESCE ( - SUM( DISTINCT - 42 ), + - ( + - ( + 31 ) ) * + + 88 * - 47 + - 25 ) / - MIN( - ( + CAST( NULL AS SIGNED ) ) ) THEN + 90 * + 7 END * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL COUNT ( * ) + + COUNT ( * ) + - - ( + COALESCE ( - + 75, + ( - CAST ( NULL AS INTEGER ) ) ) ) / + CASE - CAST ( NULL AS INTEGER ) WHEN - 49 * + COALESCE ( - SUM ( DISTINCT - 42 ), + - ( + - ( + 31 ) ) * + + 88 * - 47 + - 25 ) / - MIN ( - ( + CAST ( NULL AS INTEGER ) ) ) THEN + 90 * + 7 END * 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-431
SELECT ALL + 50 + + COUNT( * ) + 93 + 45 AS col1
----
189

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + 50 + + COUNT ( * ) + 93 + 45 AS col1
----
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT 56 / 52 / - 30 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT 56 / 52 / - 30 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 92 + - - 14
----
106

query I rowsort
SELECT DISTINCT - 12 + + - 44
----
-56

query I rowsort
SELECT ALL - 94 + - + 90 col0
----
-184

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

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

query I rowsort
SELECT ALL 64 - + 25
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-438
SELECT DISTINCT + 40 * 76 DIV + 92
----
33

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT + 40 * 76 / + 92
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT ALL + MIN( - - 5 ) - - 31 * 35 * + 60
----
65105

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL + MIN ( - - 5 ) - - 31 * 35 * + 60
----
65105

query I rowsort
SELECT 90 + + 28 + 74
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-441
SELECT 0 + - 2 / - + 94 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-441
SELECT 0 + - 2 / - + 94 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 6 * - 57
----
-342

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-443
SELECT ALL 62 AS col2, + 99 - 91 + - 8 DIV - 1 + + 82 + - ( 99 ) + + 84 - + SUM( 57 ) * - + 72 * 31 * 22 * - 16 AS col1
----
62
-44782765

skipif mysql # not compatible
query II rowsort label-443
SELECT ALL 62 AS col2, + 99 - 91 + - 8 / - 1 + + 82 + - ( 99 ) + + 84 - + SUM ( 57 ) * - + 72 * 31 * 22 * - 16 AS col1
----
62
-44782765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT 16 - - COUNT( ALL - 76 ) DIV 67 AS col2
----
16

skipif mysql # not compatible
query I rowsort label-444
SELECT 16 - - COUNT ( ALL - 76 ) / 67 AS col2
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-445
SELECT - 64 col0, 77 + + - 94 * - COUNT( * ) AS col0
----
-64
171

skipif mysql # not compatible
query II rowsort label-445
SELECT - 64 col0, 77 + + - 94 * - COUNT ( * ) AS col0
----
-64
171

query II rowsort
SELECT ALL - 51 AS col0, - 85
----
-51
-85

query I rowsort
SELECT 38 - - 29 AS col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT MAX( - - COALESCE ( - 5, + 0 ) ) * + + 8 - + - 84 col2
----
44

skipif mysql # not compatible
query I rowsort label-448
SELECT MAX ( - - COALESCE ( - 5, + 0 ) ) * + + 8 - + - 84 col2
----
44

query I rowsort
SELECT DISTINCT - - 55 * - 10 - 34 * + 0 AS col1
----
-550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-450
SELECT 30 * - CAST( + 2 AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-450
SELECT 30 * - CAST ( + 2 AS INTEGER )
----
-60

query I rowsort
SELECT ALL - - 80 * - + 57 AS col1
----
-4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT CAST( NULL AS SIGNED ) * - - 92 / COUNT( * ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-452
SELECT CAST ( NULL AS INTEGER ) * - - 92 / COUNT ( * ) * 84
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-453
SELECT - - 82 * COUNT( - 94 ) + ( 24 ) + CAST( NULL AS SIGNED ) col2, + COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-453
SELECT - - 82 * COUNT ( - 94 ) + ( 24 ) + CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 7 - 45 AS col1
----
-38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT + COUNT( * ) * 38 - - 71 AS col0
----
109

skipif mysql # not compatible
query I rowsort label-456
SELECT + COUNT ( * ) * 38 - - 71 AS col0
----
109

query I rowsort
SELECT + 26 * 19 * + 12 + ( + 33 ) + 97
----
6058

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-458
SELECT DISTINCT + COALESCE ( 62, + + COUNT( * ) ) DIV + 59 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT + COALESCE ( 62, + + COUNT ( * ) ) / + 59 AS col1
----
1

query I rowsort
SELECT DISTINCT - - 38 + + - 76 AS col1
----
-38

query I rowsort
SELECT DISTINCT + + 76 + + + 10 * - 80 + 11
----
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-461
SELECT + 63 DIV + 84
----
0

skipif mysql # not compatible
query I rowsort label-461
SELECT + 63 / + 84
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-462
SELECT ALL + 60 + - COALESCE ( - 74, - - 55 + - COUNT( * ) + COALESCE ( + 8, + ( + 11 ) ) * - 29 * - - 65 * - 77 * - 44 * 12 - 50 + 49 DIV + - 68 - - - COUNT( * ) * + 71, - + 81 + - 70 ) * - + 88 AS col2
----
-6452

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL + 60 + - COALESCE ( - 74, - - 55 + - COUNT ( * ) + COALESCE ( + 8, + ( + 11 ) ) * - 29 * - - 65 * - 77 * - 44 * 12 - 50 + 49 / + - 68 - - - COUNT ( * ) * + 71, - + 81 + - 70 ) * - + 88 AS col2
----
-6452

query I rowsort
SELECT ALL - - 26 + - + 15 AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-464
SELECT ALL - 80 + + - NULLIF ( COUNT( * ), - - 32 ) DIV + 56 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL - 80 + + - NULLIF ( COUNT ( * ), - - 32 ) / + 56 AS col0
----
-80

query I rowsort
SELECT DISTINCT - - 55 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT + 29 + + + COALESCE ( + - ( 8 ), COUNT( * ), - 69 )
----
21

skipif mysql # not compatible
query I rowsort label-466
SELECT + 29 + + + COALESCE ( + - ( 8 ), COUNT ( * ), - 69 )
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT MAX( - - 46 ) * - 21 AS col1, - 41
----
-966
-41

skipif mysql # not compatible
query II rowsort label-467
SELECT MAX ( - - 46 ) * - 21 AS col1, - 41
----
-966
-41

query I rowsort
SELECT 66 + - 14 + 65 col0
----
117

query II rowsort
SELECT 1 * 23 AS col2, + 62 AS col2
----
23
62

query I rowsort
SELECT ALL 24 - - 88 + + 64 + - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT CASE NULLIF ( COUNT( * ), - 26 ) WHEN + 51 + + 14 * + COALESCE ( + 78, 24, + COUNT( * ) ) THEN + 93 WHEN - - 74 / + 73 THEN NULL END + + 87 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT CASE NULLIF ( COUNT ( * ), - 26 ) WHEN + 51 + + 14 * + COALESCE ( + 78, 24, + COUNT ( * ) ) THEN + 93 WHEN - - 74 / + 73 THEN NULL END + + 87 + 63
----
NULL

query I rowsort
SELECT 85 * + + 73 * + 48 AS col2
----
297840

query I rowsort
SELECT ALL 71 * - 10
----
-710

query I rowsort
SELECT ALL 89 - 31 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT COUNT( * ) + - - COUNT( DISTINCT 90 )
----
2

skipif mysql # not compatible
query I rowsort label-475
SELECT COUNT ( * ) + - - COUNT ( DISTINCT 90 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL - COUNT( DISTINCT - 31 ) * - 20
----
20

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - COUNT ( DISTINCT - 31 ) * - 20
----
20

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

skipif mysql # not compatible
query I rowsort label-477
SELECT COUNT ( * ) / - - 54 col0
----
0

query I rowsort
SELECT ( 34 ) + + + 14 * 18 * + 52 AS col0
----
13138

query I rowsort
SELECT 36 + 62
----
98

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-481
SELECT + 17 DIV 80 col1
----
0

skipif mysql # not compatible
query I rowsort label-481
SELECT + 17 / 80 col1
----
0

query I rowsort
SELECT - 81 + - 5 + 3 * + - 93
----
-365

onlyif mysql # aggregate syntax: 
query II rowsort label-483
SELECT + 93 + COUNT( * ) + 35 * - 94 AS col1, - 5
----
-3196
-5

skipif mysql # not compatible
query II rowsort label-483
SELECT + 93 + COUNT ( * ) + 35 * - 94 AS col1, - 5
----
-3196
-5

query I rowsort
SELECT DISTINCT - 91 * + + 42
----
-3822

query I rowsort
SELECT + 69 + - - ( - - 54 )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL SUM( ALL + - 12 ) * 30 col1
----
-360

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL SUM ( ALL + - 12 ) * 30 col1
----
-360

query I rowsort
SELECT - 22 + + + 57 AS col1
----
35

query I rowsort
SELECT - + 96 * 39 + + ( + 95 ) + - + 57 AS col0
----
-3706

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

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT - + COALESCE ( 3, COUNT( - 49 ) ) + + 72 AS col1
----
69

skipif mysql # not compatible
query I rowsort label-490
SELECT - + COALESCE ( 3, COUNT ( - 49 ) ) + + 72 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT ALL + 66 + + COUNT( * ) col0
----
67

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL + 66 + + COUNT ( * ) col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT ALL - 75 * - 82 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-492
SELECT ALL - 75 * - 82 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 13 * - 1 * 10 + + 30 + - - 73
----
233

query I rowsort
SELECT - 52 * 55
----
-2860

onlyif mysql # aggregate syntax: 
query II rowsort label-495
SELECT - COALESCE ( - MAX( DISTINCT + 57 ), + + COUNT( - - 80 ) ) col0, 92
----
57
92

skipif mysql # not compatible
query II rowsort label-495
SELECT - COALESCE ( - MAX ( DISTINCT + 57 ), + + COUNT ( - - 80 ) ) col0, 92
----
57
92

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT ALL + 14 * + 27 * + SUM( 88 ) + - 92 + - + 40 * 62 + 66
----
30758

skipif mysql # not compatible
query I rowsort label-496
SELECT ALL + 14 * + 27 * + SUM ( 88 ) + - 92 + - + 40 * 62 + 66
----
30758

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

query I rowsort
SELECT - - 76 - 40
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-499
SELECT NULLIF ( - 52, + - COUNT( * ) / - ( - - 65 ) * - 38 )
----
-52

skipif mysql # not compatible
query I rowsort label-499
SELECT NULLIF ( - 52, + - COUNT ( * ) / - ( - - 65 ) * - 38 )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-500
SELECT ALL SUM( DISTINCT + 5 ) DIV + - 46 * 81 * ( COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-500
SELECT ALL SUM ( DISTINCT + 5 ) / + - 46 * 81 * ( COUNT ( * ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-501
SELECT DISTINCT NULLIF ( - 28, CAST( NULL AS SIGNED ) ) * + 75 AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT NULLIF ( - 28, CAST ( NULL AS INTEGER ) ) * + 75 AS col1
----
-2100

query II rowsort
SELECT ALL + 66 * 32 - + 91 AS col2, 8 col0
----
2021
8

query I rowsort
SELECT + 35 * 62 * + + 29 * + 8 AS col1
----
503440

query I rowsort
SELECT + 12 * - 34
----
-408

query I rowsort
SELECT ALL 17 * - 36 * + 1 AS col1
----
-612

query II rowsort
SELECT DISTINCT 88 AS col2, + ( 18 ) AS col2
----
88
18

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

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

query I rowsort
SELECT + 81 * 26
----
2106

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

skipif mysql # not compatible
query I rowsort label-509
SELECT MIN ( + - 22 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-510
SELECT - NULLIF ( - + CAST( + 6 AS SIGNED ), + MIN( 86 ) + + 9 + - COUNT( * ) * + 43 )
----
6

skipif mysql # not compatible
query I rowsort label-510
SELECT - NULLIF ( - + CAST ( + 6 AS INTEGER ), + MIN ( 86 ) + + 9 + - COUNT ( * ) * + 43 )
----
6

query I rowsort
SELECT ALL 64 + - 95
----
-31

query I rowsort
SELECT + 46 * 6 AS col1
----
276

onlyif mysql # DIV for integer division: 
query I rowsort label-513
SELECT ALL 57 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL 57 / 84
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-515
SELECT + ( - + COALESCE ( + + 60, - - CASE - 10 WHEN - 26 - - - 77 THEN + COUNT( + + 52 ) DIV - 86 END - + + COUNT( * ) + - + 60 ) )
----
-60

skipif mysql # not compatible
query I rowsort label-515
SELECT + ( - + COALESCE ( + + 60, - - CASE - 10 WHEN - 26 - - - 77 THEN + COUNT ( + + 52 ) / - 86 END - + + COUNT ( * ) + - + 60 ) )
----
-60

query I rowsort
SELECT + 73 + + 55
----
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-517
SELECT + AVG ( + - 44 ) + - 5 - + ( 4 ) - + COUNT( * ) * + ( + COUNT( * ) ) / + - 79 * CAST( NULL AS SIGNED ) * + - 6 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-517
SELECT + AVG ( + - 44 ) + - 5 - + ( 4 ) - + COUNT ( * ) * + ( + COUNT ( * ) ) / + - 79 * CAST ( NULL AS INTEGER ) * + - 6 col2
----
NULL

query II rowsort
SELECT - 7 col0, + 5 AS col1
----
-7
5

query II rowsort
SELECT NULLIF ( - + 81, 21 ) AS col1, - 20 * - ( - 75 ) - 12 * + 96
----
-81
-2652

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT - 69 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-520
SELECT - 69 / + 72
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-522
SELECT ALL - - 50 + + MIN( DISTINCT + CAST( - 25 AS SIGNED ) ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL - - 50 + + MIN ( DISTINCT + CAST ( - 25 AS INTEGER ) ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-523
SELECT + - 40 - 93 * NULLIF ( - 61, 81 ) * - COALESCE ( + 26, 39, - - 53 + - 73 ) / + CAST( NULL AS SIGNED ) + + 29 / - COUNT( * ) * NULLIF ( + + NULLIF ( + 34, 9 * + 50 / + 5 + - COUNT( * ) * + + 37 + + 20 - - 85 + 10 ), + COALESCE ( ( 87 ), 5 ) + 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-523
SELECT + - 40 - 93 * NULLIF ( - 61, 81 ) * - COALESCE ( + 26, 39, - - 53 + - 73 ) / + CAST ( NULL AS INTEGER ) + + 29 / - COUNT ( * ) * NULLIF ( + + NULLIF ( + 34, 9 * + 50 / + 5 + - COUNT ( * ) * + + 37 + + 20 - - 85 + 10 ), + COALESCE ( ( 87 ), 5 ) + 73 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-524
SELECT - + 65 + CAST( NULL AS SIGNED ) + + 76 * 56 * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-524
SELECT - + 65 + CAST ( NULL AS INTEGER ) + + 76 * 56 * - 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-525
SELECT - - SUM( DISTINCT - + 58 ) + 90, - 74 col0
----
32
-74

skipif mysql # not compatible
query II rowsort label-525
SELECT - - SUM ( DISTINCT - + 58 ) + 90, - 74 col0
----
32
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-526
SELECT ALL 59 / CAST( NULL AS SIGNED ) - - COUNT( * ) * CASE + 45 WHEN - CASE + 7 WHEN - 73 THEN AVG ( - 67 ) WHEN 21 THEN CAST( NULL AS SIGNED ) + + COUNT( * ) END - 85 * 34 THEN 40 ELSE + 70 * + 54 + - + 72 END + - + COUNT( * ) * CASE - - 40 WHEN + + ( + + 44 ) + 93 THEN + CASE - 24 WHEN - ( + COALESCE ( 10, + 88 / 89 ) ) THEN 0 WHEN + 23 + - 74 THEN NULL ELSE NULL END - ( + 36 + 2 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL 59 / CAST ( NULL AS INTEGER ) - - COUNT ( * ) * CASE + 45 WHEN - CASE + 7 WHEN - 73 THEN AVG ( - 67 ) WHEN 21 THEN CAST ( NULL AS INTEGER ) + + COUNT ( * ) END - 85 * 34 THEN 40 ELSE + 70 * + 54 + - + 72 END + - + COUNT ( * ) * CASE - - 40 WHEN + + ( + + 44 ) + 93 THEN + CASE - 24 WHEN - ( + COALESCE ( 10, + 88 / 89 ) ) THEN 0 WHEN + 23 + - 74 THEN NULL ELSE NULL END - ( + 36 + 2 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT + 89 + - + COUNT( * ) * 5 + - - 15 * - + 52
----
-696

skipif mysql # not compatible
query I rowsort label-527
SELECT + 89 + - + COUNT ( * ) * 5 + - - 15 * - + 52
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT - COUNT( DISTINCT 19 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-528
SELECT - COUNT ( DISTINCT 19 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-529
SELECT - COUNT( DISTINCT + 40 ) - - + NULLIF ( + + 8, 18 ), + 42 * - 95 AS col2
----
7
-3990

skipif mysql # not compatible
query II rowsort label-529
SELECT - COUNT ( DISTINCT + 40 ) - - + NULLIF ( + + 8, 18 ), + 42 * - 95 AS col2
----
7
-3990

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT - + 79 * + 5 - - - 80 + - ( + 12 ) * + 70 * + - ( 91 ) + ( + NULLIF ( + 12, + ( - + COUNT( * ) ) * + 35 ) )
----
75977

skipif mysql # not compatible
query I rowsort label-530
SELECT - + 79 * + 5 - - - 80 + - ( + 12 ) * + 70 * + - ( 91 ) + ( + NULLIF ( + 12, + ( - + COUNT ( * ) ) * + 35 ) )
----
75977

query I rowsort
SELECT - + 13 * + 7
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-532
SELECT SUM( - CAST( + 91 AS SIGNED ) ) AS col0, + COUNT( * )
----
-91
1

skipif mysql # not compatible
query II rowsort label-532
SELECT SUM ( - CAST ( + 91 AS INTEGER ) ) AS col0, + COUNT ( * )
----
-91
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-533
SELECT DISTINCT 16 DIV - 15 + - CAST( CAST( - 84 AS SIGNED ) AS SIGNED ) - 64 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT 16 / - 15 + - CAST ( CAST ( - 84 AS INTEGER ) AS INTEGER ) - 64 AS col2
----
19

query I rowsort
SELECT - ( + - 77 ) + + - ( - - 64 ) * - 68 col2
----
4429

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-535
SELECT DISTINCT + CASE - - 97 WHEN - 90 THEN + - 76 DIV + 85 ELSE 62 END * + COALESCE ( ( - - 4 ), - + 30 * + + 64 + + 90 - 47 * + 55 * + - 68 + - 82 * + - ( + - 42 ) + - - MIN( - 97 ), + COUNT( * ) + + + 78 + + - 13 ) * + 82 + + + 85 AS col0
----
20421

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT + CASE - - 97 WHEN - 90 THEN + - 76 / + 85 ELSE 62 END * + COALESCE ( ( - - 4 ), - + 30 * + + 64 + + 90 - 47 * + 55 * + - 68 + - 82 * + - ( + - 42 ) + - - MIN ( - 97 ), + COUNT ( * ) + + + 78 + + - 13 ) * + 82 + + + 85 AS col0
----
20421

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-536
SELECT DISTINCT + MIN( 74 ) * 27 DIV - 21 * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + MIN ( 74 ) * 27 / - 21 * COUNT ( * )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-537
SELECT - CAST( NULL AS SIGNED ) + 33 + + + 72 + + 39 * - 27
----
NULL

skipif mysql # not compatible
query I rowsort label-537
SELECT - CAST ( NULL AS INTEGER ) + 33 + + + 72 + + 39 * - 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-538
SELECT + CASE - 52 WHEN ( + - 7 ) * + 7 * - AVG ( ALL + 95 ) + + 95 THEN NULL WHEN 76 * - 4 + + + ( + CASE 76 WHEN - 24 * + COUNT( * ) - + - AVG ( - + 17 ) + 64 THEN NULL WHEN 52 * - - 86 THEN + 50 END ) / 49 * + - AVG ( ALL 86 ) * 50 THEN NULL ELSE - + CAST( - SUM( - ( + CASE 75 WHEN 4 * - 14 THEN NULL WHEN - 79 - 73 THEN - 98 * + 60 END ) ) AS SIGNED ) * - 94 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-538
SELECT + CASE - 52 WHEN ( + - 7 ) * + 7 * - AVG ( ALL + 95 ) + + 95 THEN NULL WHEN 76 * - 4 + + + ( + CASE 76 WHEN - 24 * + COUNT ( * ) - + - AVG ( - + 17 ) + 64 THEN NULL WHEN 52 * - - 86 THEN + 50 END ) / 49 * + - AVG ( ALL 86 ) * 50 THEN NULL ELSE - + CAST ( - SUM ( - ( + CASE 75 WHEN 4 * - 14 THEN NULL WHEN - 79 - 73 THEN - 98 * + 60 END ) ) AS INTEGER ) * - 94 END AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT 0 + - COUNT( ALL ( - 89 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-541
SELECT 0 + - COUNT ( ALL ( - 89 ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT ALL - CAST( - 72 AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL - CAST ( - 72 AS INTEGER )
----
72

query II rowsort
SELECT COALESCE ( - 16, - 99 + + 66, - - 28 ) * + 15, + 6 * 77 AS col0
----
-240
462

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

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

query I rowsort
SELECT ALL 57 + + 52
----
109

query I rowsort
SELECT ALL 16 * 41
----
656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 86 / - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 86 / - 22
----
NULL

query II rowsort
SELECT - 11 AS col0, + 83
----
-11
83

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT DISTINCT + - NULLIF ( + ( + COUNT( * ) ), + 48 ) + + - 34
----
-35

skipif mysql # not compatible
query I rowsort label-549
SELECT DISTINCT + - NULLIF ( + ( + COUNT ( * ) ), + 48 ) + + - 34
----
-35

query I rowsort
SELECT ALL 1 * 93 AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-551
SELECT + 40 + + 29 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-551
SELECT + 40 + + 29 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 83 AS col0, + 45
----
83
45

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

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

query I rowsort
SELECT ( 40 ) + + 82 - + 14 * - 98 * + + COALESCE ( - ( - - 19 ), 8 + - - 50 * 41 ) + 40
----
-25906

onlyif mysql # DIV for integer division: 
query II rowsort label-555
SELECT ALL - 36 AS col2, 73 DIV 36 * 62 + - + 65 * - + 44
----
-36
2984

skipif mysql # not compatible
query II rowsort label-555
SELECT ALL - 36 AS col2, 73 / 36 * 62 + - + 65 * - + 44
----
-36
2984

query I rowsort
SELECT + 7 + - 93
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-557
SELECT ALL + + CASE + 21 WHEN - 2 THEN AVG ( - 64 ) + COALESCE ( - + 80, - CAST( SUM( ALL + 79 ) AS SIGNED ) + - ( 98 ) + + 78 + - - ( + 69 ) - + 31 + 37 + + 79 * - + 9 - 17 * - 78 ) * - 35 + 3 WHEN - - 35 - - 27 THEN NULL ELSE NULL END + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-557
SELECT ALL + + CASE + 21 WHEN - 2 THEN AVG ( - 64 ) + COALESCE ( - + 80, - CAST ( SUM ( ALL + 79 ) AS INTEGER ) + - ( 98 ) + + 78 + - - ( + 69 ) - + 31 + 37 + + 79 * - + 9 - 17 * - 78 ) * - 35 + 3 WHEN - - 35 - - 27 THEN NULL ELSE NULL END + - COUNT ( * ) col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-559
SELECT DISTINCT + NULLIF ( - - ( + CAST( NULL AS SIGNED ) ), + ( 56 ) ) / + + 41 + + COUNT( DISTINCT - - 69 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-559
SELECT DISTINCT + NULLIF ( - - ( + CAST ( NULL AS INTEGER ) ), + ( 56 ) ) / + + 41 + + COUNT ( DISTINCT - - 69 ) AS col1
----
NULL

query II rowsort
SELECT ALL 76 AS col0, 1 col0
----
76
1

query I rowsort
SELECT - 73 * 50 * 70 AS col0
----
-255500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-562
SELECT + 82 + - COUNT( * ) DIV - + 62
----
82

skipif mysql # not compatible
query I rowsort label-562
SELECT + 82 + - COUNT ( * ) / - + 62
----
82

query II rowsort
SELECT + 37 AS col0, 96
----
37
96

query I rowsort
SELECT + 56 + + 96
----
152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-565
SELECT ALL 59 AS col0, CAST( NULL AS SIGNED ) / 13 + + CAST( + - ( + 91 ) AS SIGNED ) AS col0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL 59 AS col0, CAST ( NULL AS INTEGER ) / 13 + + CAST ( + - ( + 91 ) AS INTEGER ) AS col0
----
59
NULL

query I rowsort
SELECT 41 * + 73
----
2993

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT ALL 48 * 56 - COUNT( * ) + 70 * 83
----
8497

skipif mysql # not compatible
query I rowsort label-567
SELECT ALL 48 * 56 - COUNT ( * ) + 70 * 83
----
8497

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + 97 * + 20 - + - COUNT( * ) + + 91 + + - 63 * + - 27 AS col2
----
3733

skipif mysql # not compatible
query I rowsort label-568
SELECT + 97 * + 20 - + - COUNT ( * ) + + 91 + + - 63 * + - 27 AS col2
----
3733

onlyif mysql # DIV for integer division: 
query II rowsort label-569
SELECT ALL 6 * - 99 * + 50 DIV 2, + 91 AS col1
----
-14850
91

skipif mysql # not compatible
query II rowsort label-569
SELECT ALL 6 * - 99 * + 50 / 2, + 91 AS col1
----
-14850
91

query I rowsort
SELECT DISTINCT 7 * 55 col2
----
385

query I rowsort
SELECT 13 * 24 - 8 + 10 * + - 88 * - 51 col0
----
45184

onlyif mysql # aggregate syntax: 
query III rowsort label-572
SELECT ALL - COUNT( DISTINCT + 2 ), 75 * - CASE - 85 WHEN 76 * - + MAX( ALL - + 41 ) * - - 86 THEN + SUM( - 99 ) END * + 23 + + + 88 + + 5 - - 75 AS col0, + 96 AS col0
----
-1
NULL
96

skipif mysql # not compatible
query III rowsort label-572
SELECT ALL - COUNT ( DISTINCT + 2 ), 75 * - CASE - 85 WHEN 76 * - + MAX ( ALL - + 41 ) * - - 86 THEN + SUM ( - 99 ) END * + 23 + + + 88 + + 5 - - 75 AS col0, + 96 AS col0
----
-1
NULL
96

query I rowsort
SELECT 26 * - - 40
----
1040

onlyif mysql # aggregate syntax: 
query II rowsort label-574
SELECT 50 * + + 52 - - 6 + + COUNT( * ) * COUNT( * ) * 42 * + 18, - NULLIF ( + 41, COALESCE ( - 60, + - 61 * 64 + - 2 * ( + 38 ), ( - 67 ) ) + - + COUNT( ALL + - COALESCE ( 96, + 89 ) ) - - 47 + - - 95 + 95 / - 40 ) AS col1
----
3362
-41

skipif mysql # not compatible
query II rowsort label-574
SELECT 50 * + + 52 - - 6 + + COUNT ( * ) * COUNT ( * ) * 42 * + 18, - NULLIF ( + 41, COALESCE ( - 60, + - 61 * 64 + - 2 * ( + 38 ), ( - 67 ) ) + - + COUNT ( ALL + - COALESCE ( 96, + 89 ) ) - - 47 + - - 95 + 95 / - 40 ) AS col1
----
3362
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT DISTINCT ( 33 ) + - 66 * - 61 * 8 + - - CASE - 47 WHEN + CASE + MIN( - COALESCE ( 53, - ( - - 62 ) * + ( + + 58 ), 31 ) ) WHEN + - 77 THEN NULL WHEN 88 - + NULLIF ( - - 37, - + AVG ( ALL + - 41 ) ) THEN NULL WHEN + - CAST( + COUNT( * ) AS SIGNED ) + + 96 THEN - 84 * + 11 END THEN 79 / - 18 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT ( 33 ) + - 66 * - 61 * 8 + - - CASE - 47 WHEN + CASE + MIN ( - COALESCE ( 53, - ( - - 62 ) * + ( + + 58 ), 31 ) ) WHEN + - 77 THEN NULL WHEN 88 - + NULLIF ( - - 37, - + AVG ( ALL + - 41 ) ) THEN NULL WHEN + - CAST ( + COUNT ( * ) AS INTEGER ) + + 96 THEN - 84 * + 11 END THEN 79 / - 18 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL - COUNT( * ) + 71 + - 68 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL - COUNT ( * ) + 71 + - 68 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-577
SELECT 16 * 82 DIV - ( - COUNT( * ) ) col1
----
1312

skipif mysql # not compatible
query I rowsort label-577
SELECT 16 * 82 / - ( - COUNT ( * ) ) col1
----
1312

query I rowsort
SELECT 51 * 50 * - + 2 * - - 65 AS col2
----
-331500

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-580
SELECT ALL + 69 + COUNT( DISTINCT + - 87 ) * - 78
----
-9

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL + 69 + COUNT ( DISTINCT + - 87 ) * - 78
----
-9

query I rowsort
SELECT DISTINCT + 60 + + 39
----
99

onlyif mysql # DIV for integer division: 
query II rowsort label-582
SELECT - 64 * 49 AS col1, - 81 DIV + - 20
----
-3136
4

skipif mysql # not compatible
query II rowsort label-582
SELECT - 64 * 49 AS col1, - 81 / + - 20
----
-3136
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT 7 DIV + COUNT( * ) + - 23
----
-16

skipif mysql # not compatible
query I rowsort label-583
SELECT 7 / + COUNT ( * ) + - 23
----
-16

query I rowsort
SELECT DISTINCT 48 * + 99 AS col0
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT 87 + - - 36 + + ( 9 ) + COUNT( * ) + 57 * - 18 * - + 41 * 94 AS col2
----
3954337

skipif mysql # not compatible
query I rowsort label-585
SELECT 87 + - - 36 + + ( 9 ) + COUNT ( * ) + 57 * - 18 * - + 41 * 94 AS col2
----
3954337

query I rowsort
SELECT 76 * - 51 + 21 + + + 42 + + 99 AS col1
----
-3714

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT ALL + 52 * - + 39 + 49 * + 30 * CASE - 40 WHEN + 42 THEN - 80 WHEN + 4 THEN NULL WHEN + 9 + - 40 + 13 + + COUNT( * ) + - 85 * - COUNT( * ) / + 79 THEN - - 46 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-587
SELECT ALL + 52 * - + 39 + 49 * + 30 * CASE - 40 WHEN + 42 THEN - 80 WHEN + 4 THEN NULL WHEN + 9 + - 40 + 13 + + COUNT ( * ) + - 85 * - COUNT ( * ) / + 79 THEN - - 46 END AS col0
----
NULL

query I rowsort
SELECT - + COALESCE ( 18, - - 7 ) col1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-589
SELECT ALL - CAST( + - 96 AS SIGNED ) * + 47 AS col2
----
4512

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - CAST ( + - 96 AS INTEGER ) * + 47 AS col2
----
4512

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT DISTINCT CASE - + ( 53 ) WHEN + 99 + + MIN( ALL 49 ) - 25 THEN - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-590
SELECT DISTINCT CASE - + ( 53 ) WHEN + 99 + + MIN ( ALL 49 ) - 25 THEN - 25 ELSE NULL END
----
NULL

query I rowsort
SELECT - 20 + + 49
----
29

query I rowsort
SELECT 48 + + 31
----
79

query I rowsort
SELECT + 58 * 88 + + 63
----
5167

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT + MAX( + 58 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-594
SELECT + MAX ( + 58 ) col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-595
SELECT COALESCE ( 45, COUNT( * ) )
----
45

skipif mysql # not compatible
query I rowsort label-595
SELECT COALESCE ( 45, COUNT ( * ) )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-596
SELECT CAST( NULL AS SIGNED ) * 96 + + 16 + - 10, + 8 AS col0
----
NULL
8

skipif mysql # not compatible
query II rowsort label-596
SELECT CAST ( NULL AS INTEGER ) * 96 + + 16 + - 10, + 8 AS col0
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT ALL 95 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-597
SELECT ALL 95 / + 41
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-598
SELECT + 0 DIV + 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-598
SELECT + 0 / + 8 AS col1
----
0

query I rowsort
SELECT DISTINCT - 6 * - 43 + + 82
----
340

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-600
SELECT CASE + + 78 WHEN + + MIN( ALL - 68 ) * 52 * 83 THEN + 80 * + 15 END AS col1, + 0 DIV + - 13 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-600
SELECT CASE + + 78 WHEN + + MIN ( ALL - 68 ) * 52 * 83 THEN + 80 * + 15 END AS col1, + 0 / + - 13 AS col2
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-601
SELECT ALL - 74 * 2 + 96 AS col0, 57 - COUNT( * ) - - 5
----
-52
61

skipif mysql # not compatible
query II rowsort label-601
SELECT ALL - 74 * 2 + 96 AS col0, 57 - COUNT ( * ) - - 5
----
-52
61

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT ALL 59 DIV 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-602
SELECT ALL 59 / 95 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL + CASE - 54 WHEN - + 19 THEN 69 END * + 99 * + CASE + 68 WHEN COUNT( * ) THEN - CASE 92 WHEN - ( - - 65 ) + + - COUNT( * ) - + 98 THEN NULL WHEN + 53 THEN + COUNT( * ) - + + 15 * + 94 * - COUNT( * ) + ( 27 ) * 47 ELSE NULL END ELSE NULL END + - ( + 31 ) + + 36 + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + CASE - 54 WHEN - + 19 THEN 69 END * + 99 * + CASE + 68 WHEN COUNT ( * ) THEN - CASE 92 WHEN - ( - - 65 ) + + - COUNT ( * ) - + 98 THEN NULL WHEN + 53 THEN + COUNT ( * ) - + + 15 * + 94 * - COUNT ( * ) + ( 27 ) * 47 ELSE NULL END ELSE NULL END + - ( + 31 ) + + 36 + 51
----
NULL

query I rowsort
SELECT ALL - 96 * - 25 * - 95 + + 40 AS col0
----
-227960

query II rowsort
SELECT + NULLIF ( + - 62, + 92 ) AS col2, - 50 + NULLIF ( - 2, - - 25 )
----
-62
-52

query I rowsort
SELECT 74 * - + 14 * - + 75 + + 16 - + NULLIF ( 72, - 75 * - 46 )
----
77644

query I rowsort
SELECT + 11 + - + 98 col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT + 87 + COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-609
SELECT + 87 + COUNT ( * )
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-610
SELECT ALL CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) + - 99 * + + 70 + - AVG ( ALL - ( + CASE 68 WHEN 75 * 81 * 11 * - - 25 THEN NULL WHEN + 99 THEN + + 71 * - + 2 ELSE NULL END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) + - 99 * + + 70 + - AVG ( ALL - ( + CASE 68 WHEN 75 * 81 * 11 * - - 25 THEN NULL WHEN + 99 THEN + + 71 * - + 2 ELSE NULL END ) ) AS col1
----
NULL

query I rowsort
SELECT + 4 + + 7 + + + 13
----
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL + - NULLIF ( + COUNT( * ), + + 11 * 69 )
----
-1

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + - NULLIF ( + COUNT ( * ), + + 11 * 69 )
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-615
SELECT ALL - CAST( 25 AS SIGNED ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-615
SELECT ALL - CAST ( 25 AS INTEGER ) AS col2
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-616
SELECT - - 53 + - 4 + 9 DIV + + 34 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-616
SELECT - - 53 + - 4 + 9 / + + 34 AS col2
----
49

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

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

query I rowsort
SELECT DISTINCT + 81 col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT - + 78 + - 67 + + SUM( DISTINCT + 26 )
----
-119

skipif mysql # not compatible
query I rowsort label-619
SELECT - + 78 + - 67 + + SUM ( DISTINCT + 26 )
----
-119

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT ALL 21, + 4 * + + 95 + COUNT( * ) AS col2
----
21
381

skipif mysql # not compatible
query II rowsort label-620
SELECT ALL 21, + 4 * + + 95 + COUNT ( * ) AS col2
----
21
381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT + NULLIF ( - COUNT( * ), + - CAST( 29 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-621
SELECT + NULLIF ( - COUNT ( * ), + - CAST ( 29 AS INTEGER ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - 25 + - 58 - + + 11 - - COUNT( + 30 ) * + 9 / + 9 * - MIN( DISTINCT + 16 ) + - - 56 + - 28 + - CASE - 43 WHEN + + MIN( - 7 ) THEN + 30 ELSE NULL END - + AVG ( + 56 ) + 21 * - - MIN( - - 48 ) * NULLIF ( + 30, 50 * - 47 + + 57 ) / + 33 - + SUM( ALL + 18 ) * 25 * - 26 / + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-622
SELECT - 25 + - 58 - + + 11 - - COUNT ( + 30 ) * + 9 / + 9 * - MIN ( DISTINCT + 16 ) + - - 56 + - 28 + - CASE - 43 WHEN + + MIN ( - 7 ) THEN + 30 ELSE NULL END - + AVG ( + 56 ) + 21 * - - MIN ( - - 48 ) * NULLIF ( + 30, 50 * - 47 + + 57 ) / + 33 - + SUM ( ALL + 18 ) * 25 * - 26 / + 83
----
NULL

query I rowsort
SELECT - 64 * - - 0
----
0

query I rowsort
SELECT - 38 + - 44 - + - 52 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT - CASE + 53 WHEN - + 7 THEN NULL ELSE - - ( + COUNT( * ) ) * - 71 * 29 + + - COUNT( * ) * 93 + + 45 END * + 32 + - - COUNT( * )
----
67425

skipif mysql # not compatible
query I rowsort label-625
SELECT - CASE + 53 WHEN - + 7 THEN NULL ELSE - - ( + COUNT ( * ) ) * - 71 * 29 + + - COUNT ( * ) * 93 + + 45 END * + 32 + - - COUNT ( * )
----
67425

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

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

query I rowsort
SELECT - - ( - 5 ) AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - + 76 * + - 22 + + MIN( ALL + COALESCE ( + 78, + 44 ) ) + - COUNT( ALL + 47 ) * - 1 * - 87
----
1663

skipif mysql # not compatible
query I rowsort label-628
SELECT - + 76 * + - 22 + + MIN ( ALL + COALESCE ( + 78, + 44 ) ) + - COUNT ( ALL + 47 ) * - 1 * - 87
----
1663

onlyif mysql # DIV for integer division: 
query I rowsort label-629
SELECT - - 60 DIV - 9
----
-6

skipif mysql # not compatible
query I rowsort label-629
SELECT - - 60 / - 9
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT - 24 + + - 26 + - + 82 + - COUNT( * ) * - 53 + - + 8 - + + COALESCE ( + - 44, - + COUNT( * ), COUNT( * ) ) * 36 + - ( + 48 )
----
1449

skipif mysql # not compatible
query I rowsort label-630
SELECT - 24 + + - 26 + - + 82 + - COUNT ( * ) * - 53 + - + 8 - + + COALESCE ( + - 44, - + COUNT ( * ), COUNT ( * ) ) * 36 + - ( + 48 )
----
1449

query I rowsort
SELECT + 89 + - COALESCE ( - 87, + 21, + 76 * + ( 3 ) + - 1 )
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-632
SELECT DISTINCT - COUNT( - 17 ) + + COALESCE ( - + ( - 39 ), 38 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-632
SELECT DISTINCT - COUNT ( - 17 ) + + COALESCE ( - + ( - 39 ), 38 ) AS col1
----
38

query I rowsort
SELECT - 59 * COALESCE ( + 67, + 74 ) * - ( + 67 )
----
264851

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT ALL - 29 DIV + 73 + - - 19 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - 29 / + 73 + - - 19 AS col2
----
19

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-637
SELECT DISTINCT - 69 / + + 12 * - CASE + - 46 WHEN 95 + ( + + 14 ) * - - CASE 92 WHEN + 57 / COUNT( * ) + + 40 + + 72 * + COUNT( * ) THEN NULL ELSE - 58 + - + 72 + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) - - - 89 END THEN - 79 WHEN + COUNT( * ) THEN NULL ELSE NULL END + COUNT( * ) - 59 + 83 * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT DISTINCT - 69 / + + 12 * - CASE + - 46 WHEN 95 + ( + + 14 ) * - - CASE 92 WHEN + 57 / COUNT ( * ) + + 40 + + 72 * + COUNT ( * ) THEN NULL ELSE - 58 + - + 72 + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) - - - 89 END THEN - 79 WHEN + COUNT ( * ) THEN NULL ELSE NULL END + COUNT ( * ) - 59 + 83 * 43 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-638
SELECT DISTINCT + 85 DIV + - 27 + + + 85
----
82

skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT + 85 / + - 27 + + + 85
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-639
SELECT 78 DIV - 91 * - + 71 + + 5 + + 48 + + 59 * - ( - + 2 )
----
171

skipif mysql # not compatible
query I rowsort label-639
SELECT 78 / - 91 * - + 71 + + 5 + + 48 + + 59 * - ( - + 2 )
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-640
SELECT ALL + COUNT( * ) DIV + 52 + - - 1 AS col1
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-641
SELECT ALL - ( - + ( + 25 ) ) DIV 31 DIV + COUNT( * ) * 23 + 22
----
22

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - ( - + ( + 25 ) ) / 31 / + COUNT ( * ) * 23 + 22
----
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-643
SELECT 87 DIV - 40 - - 2 - - COUNT( 70 ) * - 29 DIV 14 + + SUM( DISTINCT - + ( + 50 ) )
----
-52

skipif mysql # not compatible
query I rowsort label-643
SELECT 87 / - 40 - - 2 - - COUNT ( 70 ) * - 29 / 14 + + SUM ( DISTINCT - + ( + 50 ) )
----
-52

query I rowsort
SELECT + 99 * + + 70 AS col2
----
6930

query I rowsort
SELECT + 17 + - + 30 - 38 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-646
SELECT ( 16 ) * - 45 * - 44 + + CAST( NULL AS SIGNED ) + + COUNT( * ) + - 73 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-646
SELECT ( 16 ) * - 45 * - 44 + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 73 + - 14
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-648
SELECT + MIN( DISTINCT 16 ) DIV 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-648
SELECT + MIN ( DISTINCT 16 ) / 75 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL + COUNT( * ) * 83 - - + ( 10 ) + 39 - + + NULLIF ( + - 36, 96 ) AS col0
----
168

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + COUNT ( * ) * 83 - - + ( 10 ) + 39 - + + NULLIF ( + - 36, 96 ) AS col0
----
168

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-651
SELECT + + 32 DIV + COUNT( * ), 14 AS col2
----
32
14

skipif mysql # not compatible
query II rowsort label-651
SELECT + + 32 / + COUNT ( * ), 14 AS col2
----
32
14

query I rowsort
SELECT + 39 * + 98
----
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT DISTINCT COUNT( DISTINCT - - 10 )
----
1

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT COUNT ( DISTINCT - - 10 )
----
1

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

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

query I rowsort
SELECT + COALESCE ( 62, + 31 ) AS col2
----
62

query II rowsort
SELECT DISTINCT - ( - - 91 ), - 49 + 50 AS col1
----
-91
1

query I rowsort
SELECT DISTINCT + 12 * + 29 * 41 * + + 25 - 25 + + 38
----
356713

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT ALL ( - NULLIF ( 85, COUNT( * ) ) ), COUNT( ALL 17 ) AS col0
----
-85
1

skipif mysql # not compatible
query II rowsort label-658
SELECT ALL ( - NULLIF ( 85, COUNT ( * ) ) ), COUNT ( ALL 17 ) AS col0
----
-85
1

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

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

query I rowsort
SELECT - + 31 * ( + CASE + 71 WHEN + + 0 THEN + + 43 * - 47 ELSE COALESCE ( + - 63, + 61 + + - 93 ) END )
----
1953

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

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

query II rowsort
SELECT - 25 - + 40 AS col2, + 18
----
-65
18

query I rowsort
SELECT ALL + 9 * - 10 + + 2 AS col1
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT 49 DIV - + 57
----
0

skipif mysql # not compatible
query I rowsort label-664
SELECT 49 / - + 57
----
0

query I rowsort
SELECT ( + 40 ) + + 55 * 68 AS col0
----
3780

query I rowsort
SELECT 39 * + - 34 AS col2
----
-1326

query II rowsort
SELECT - 65, - 27 + + - 12 AS col1
----
-65
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT ALL 42 + + - MAX( DISTINCT - + 78 ) * 19 AS col2
----
1524

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL 42 + + - MAX ( DISTINCT - + 78 ) * 19 AS col2
----
1524

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT 29 + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-670
SELECT 29 + - COUNT ( * ) AS col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL + 19 + - - 90 * MIN( - 36 ) AS col1
----
-3221

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + 19 + - - 90 * MIN ( - 36 ) AS col1
----
-3221

query I rowsort
SELECT ALL - 55 + 14
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-673
SELECT - COALESCE ( CAST( + 43 AS SIGNED ), - COUNT( * ) ) * + 90 - + + 51 DIV - 57 + - COALESCE ( 47, - NULLIF ( - 57, - 58 ) ) + + COUNT( * ) - + COUNT( * ) + - + 63 * + + 99 * - 65 AS col1
----
401488

skipif mysql # not compatible
query I rowsort label-673
SELECT - COALESCE ( CAST ( + 43 AS INTEGER ), - COUNT ( * ) ) * + 90 - + + 51 / - 57 + - COALESCE ( 47, - NULLIF ( - 57, - 58 ) ) + + COUNT ( * ) - + COUNT ( * ) + - + 63 * + + 99 * - 65 AS col1
----
401488

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT COUNT( - 10 ) * + 55 * 63 AS col0
----
3465

skipif mysql # not compatible
query I rowsort label-674
SELECT COUNT ( - 10 ) * + 55 * 63 AS col0
----
3465

query I rowsort
SELECT ALL + 83 * 54 AS col1
----
4482

onlyif mysql # aggregate syntax: 
query I rowsort label-676
SELECT DISTINCT - SUM( - + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT - SUM ( - + 73 ) AS col0
----
73

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-678
SELECT ALL + 56 - + - CAST( NULL AS SIGNED ) * 53 * 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-678
SELECT ALL + 56 - + - CAST ( NULL AS INTEGER ) * 53 * 42 col1
----
NULL

query I rowsort
SELECT DISTINCT - 1 * 63 AS col2
----
-63

query I rowsort
SELECT DISTINCT - 29 * + 17
----
-493

query I rowsort
SELECT 54 * + 77 * - 74
----
-307692

query II rowsort
SELECT ALL - 25 col2, 49 + 84
----
-25
133

query I rowsort
SELECT ALL + ( - ( 36 ) ) * NULLIF ( + 39, 62 - - 94 * - 45 ) - - 4 + + ( + 10 ) * + 1 * + - 51 + - + 80 AS col1
----
-1990

query I rowsort
SELECT DISTINCT - NULLIF ( + - 19, 22 * 70 ) col2
----
19

query I rowsort
SELECT ALL - - NULLIF ( + 37, 52 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + 43 * - SUM( - - 70 ) - + 5 + + 59 * 4 + - + 97 * 12 * + + 67 col0
----
-80767

skipif mysql # not compatible
query I rowsort label-686
SELECT + 43 * - SUM ( - - 70 ) - + 5 + + 59 * 4 + - + 97 * 12 * + + 67 col0
----
-80767

onlyif mysql # aggregate syntax: 
query II rowsort label-687
SELECT + 38 col2, + 17 + + COUNT( * )
----
38
18

skipif mysql # not compatible
query II rowsort label-687
SELECT + 38 col2, + 17 + + COUNT ( * )
----
38
18

query I rowsort
SELECT - 24 + + + 87 - 34
----
29

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-690
SELECT + 89 col2, COALESCE ( + 4, - 23 DIV + + COUNT( * ), - 98, + 4 ) * 64
----
89
256

skipif mysql # not compatible
query II rowsort label-690
SELECT + 89 col2, COALESCE ( + 4, - 23 / + + COUNT ( * ), - 98, + 4 ) * 64
----
89
256

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT + - ( - + COUNT( * ) ) * - 15 + + COALESCE ( - 61, - - 86, - + 44 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-691
SELECT + - ( - + COUNT ( * ) ) * - 15 + + COALESCE ( - 61, - - 86, - + 44 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT COUNT( * ) + + 63 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-692
SELECT COUNT ( * ) + + 63 AS col0
----
64

query I rowsort
SELECT DISTINCT 86 * 52
----
4472

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT ALL - 15 + - ( - + 3 ), - COUNT( * ) AS col0
----
-12
-1

skipif mysql # not compatible
query II rowsort label-695
SELECT ALL - 15 + - ( - + 3 ), - COUNT ( * ) AS col0
----
-12
-1

query I rowsort
SELECT - 73 + - 54
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-697
SELECT DISTINCT CAST( COUNT( ALL - 31 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-697
SELECT DISTINCT CAST ( COUNT ( ALL - 31 ) AS INTEGER ) AS col1
----
1

query I rowsort
SELECT 54 + + + 37
----
91

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

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

query II rowsort
SELECT 47, 69 col2
----
47
69

onlyif mysql # aggregate syntax: 
query I rowsort label-701
SELECT DISTINCT - 13 * - - COUNT( * ) + - CASE - - 25 WHEN SUM( DISTINCT 8 ) * 66 * + 7 * + + 72 + + COUNT( ALL 27 ) * + 23 + + 95 THEN NULL WHEN - 87 * - - 94 - 58 THEN - 20 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT - 13 * - - COUNT ( * ) + - CASE - - 25 WHEN SUM ( DISTINCT 8 ) * 66 * + 7 * + + 72 + + COUNT ( ALL 27 ) * + 23 + + 95 THEN NULL WHEN - 87 * - - 94 - 58 THEN - 20 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-702
SELECT ALL 70 + - + MIN( + ( - 47 ) ) + - - COUNT( * ) * - - ( - CAST( NULL AS SIGNED ) ) * + NULLIF ( 6, 84 ) AS col2, + ( + - 16 ) * 70 + 10 + + COUNT( * ) + - - 11 * + 25 AS col0
----
NULL
-834

skipif mysql # not compatible
query II rowsort label-702
SELECT ALL 70 + - + MIN ( + ( - 47 ) ) + - - COUNT ( * ) * - - ( - CAST ( NULL AS INTEGER ) ) * + NULLIF ( 6, 84 ) AS col2, + ( + - 16 ) * 70 + 10 + + COUNT ( * ) + - - 11 * + 25 AS col0
----
NULL
-834

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT COUNT( * ) + + 73 col1
----
74

skipif mysql # not compatible
query I rowsort label-703
SELECT COUNT ( * ) + + 73 col1
----
74

query I rowsort
SELECT ALL - 63 + + + 81
----
18

query II rowsort
SELECT 84 AS col1, - 90
----
84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT NULLIF ( + 84, + + COUNT( * ) ) + + ( + 3 ) * + 37
----
195

skipif mysql # not compatible
query I rowsort label-706
SELECT NULLIF ( + 84, + + COUNT ( * ) ) + + ( + 3 ) * + 37
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT ALL + 88 + + COUNT( DISTINCT 82 ) + + MAX( ALL + 97 ) AS col1
----
186

skipif mysql # not compatible
query I rowsort label-707
SELECT ALL + 88 + + COUNT ( DISTINCT 82 ) + + MAX ( ALL + 97 ) AS col1
----
186

query II rowsort
SELECT ALL - 54, 95 col0
----
-54
95

query I rowsort
SELECT DISTINCT 1 + 31 + - 14
----
18

query II rowsort
SELECT ALL 65 AS col0, + 63 + 32
----
65
95

onlyif mysql # DIV for integer division: 
query II rowsort label-711
SELECT ALL 17 AS col2, + 90 DIV - + 46 col1
----
17
-1

skipif mysql # not compatible
query II rowsort label-711
SELECT ALL 17 AS col2, + 90 / - + 46 col1
----
17
-1

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

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

query I rowsort
SELECT ALL + 87 - + 32
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-714
SELECT ALL ( - - MIN( DISTINCT - 39 ) ) * + - 36 AS col1, 31 + + - 96 DIV - MAX( + ( - ( 29 ) ) ) AS col1
----
1404
28

skipif mysql # not compatible
query II rowsort label-714
SELECT ALL ( - - MIN ( DISTINCT - 39 ) ) * + - 36 AS col1, 31 + + - 96 / - MAX ( + ( - ( 29 ) ) ) AS col1
----
1404
28

query II rowsort
SELECT 81 AS col1, 81
----
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-716
SELECT ALL + CAST( 38 AS SIGNED ) * - 5 * - 75
----
14250

skipif mysql # not compatible
query I rowsort label-716
SELECT ALL + CAST ( 38 AS INTEGER ) * - 5 * - 75
----
14250

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-720
SELECT ALL 41 AS col0, CAST( - 52 AS SIGNED ) col2
----
41
-52

skipif mysql # not compatible
query II rowsort label-720
SELECT ALL 41 AS col0, CAST ( - 52 AS INTEGER ) col2
----
41
-52

query II rowsort
SELECT ALL - 15 AS col2, + 78
----
-15
78

query II rowsort
SELECT DISTINCT - 86 AS col0, + 36 AS col2
----
-86
36

query I rowsort
SELECT + 32 * + 31 + + + 34 AS col0
----
1026

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

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

query II rowsort
SELECT + 52 AS col1, ( 32 ) AS col0
----
52
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-726
SELECT DISTINCT - NULLIF ( CAST( NULL AS SIGNED ), - + 88 / + COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT DISTINCT - NULLIF ( CAST ( NULL AS INTEGER ), - + 88 / + COUNT ( * ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-727
SELECT 79 DIV + 96
----
0

skipif mysql # not compatible
query I rowsort label-727
SELECT 79 / + 96
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT ALL - 52 DIV + + NULLIF ( + 99, + - 25 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL - 52 / + + NULLIF ( + 99, + - 25 ) col0
----
0

query I rowsort
SELECT 50 * 56 * - 60
----
-168000

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT ALL - - COUNT( * ) AS col1, 15 - + - 8 AS col1
----
1
23

skipif mysql # not compatible
query II rowsort label-731
SELECT ALL - - COUNT ( * ) AS col1, 15 - + - 8 AS col1
----
1
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-732
SELECT + COUNT( * ) DIV SUM( ALL - 48 ) * + ( + MAX( ALL - - 94 ) ) DIV 29 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-732
SELECT + COUNT ( * ) / SUM ( ALL - 48 ) * + ( + MAX ( ALL - - 94 ) ) / 29 / - COUNT ( * )
----
0

query I rowsort
SELECT ALL + ( 19 ) + + - 77 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT + CASE + 34 WHEN SUM( 5 ) THEN - + 85 WHEN - 43 + MAX( ( 79 ) ) THEN NULL END + 92 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT + CASE + 34 WHEN SUM ( 5 ) THEN - + 85 WHEN - 43 + MAX ( ( 79 ) ) THEN NULL END + 92 col0
----
NULL

query I rowsort
SELECT ALL + 75 * - 38
----
-2850

query I rowsort
SELECT DISTINCT - 17 + - 65
----
-82

query I rowsort
SELECT ALL + 53 + + 58
----
111

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

skipif mysql # not compatible
query II rowsort label-738
SELECT + + 25, - COUNT ( - 68 ) AS col2
----
25
-1

query I rowsort
SELECT ALL - 84 + 40
----
-44

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-741
SELECT 80, + 21 DIV 80 AS col1
----
80
0

skipif mysql # not compatible
query II rowsort label-741
SELECT 80, + 21 / 80 AS col1
----
80
0

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT + + 15 AS col0, + CASE + + 25 WHEN - - COALESCE ( 33, 85 * MIN( DISTINCT + 24 ) * - ( - 61 ) + - 0 ) * + 28 * + 51 + - 1 THEN ( + + 83 ) * CASE - - 43 WHEN - 37 THEN NULL WHEN 93 THEN NULL ELSE + 56 * + COUNT( * ) * - - 64 END ELSE + + 1 * 38 END + - 52 col1
----
15
-14

skipif mysql # not compatible
query II rowsort label-742
SELECT + + 15 AS col0, + CASE + + 25 WHEN - - COALESCE ( 33, 85 * MIN ( DISTINCT + 24 ) * - ( - 61 ) + - 0 ) * + 28 * + 51 + - 1 THEN ( + + 83 ) * CASE - - 43 WHEN - 37 THEN NULL WHEN 93 THEN NULL ELSE + 56 * + COUNT ( * ) * - - 64 END ELSE + + 1 * 38 END + - 52 col1
----
15
-14

query I rowsort
SELECT - + 3 * + - 8 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT + + 98 * MAX( + 74 ) * + - 66 col1
----
-478632

skipif mysql # not compatible
query I rowsort label-744
SELECT + + 98 * MAX ( + 74 ) * + - 66 col1
----
-478632

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

skipif mysql # not compatible
query I rowsort label-745
SELECT - + MAX ( - 63 )
----
63

query I rowsort
SELECT - + 10 * - + 3 - + 30
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-747
SELECT ALL CAST( NULL AS SIGNED ) + + SUM( + + ( - 40 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL CAST ( NULL AS INTEGER ) + + SUM ( + + ( - 40 ) )
----
NULL

query I rowsort
SELECT - 74 - 64
----
-138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL - COUNT( * ) / CAST( NULL AS SIGNED ) + - 50 * ( + CAST( + 95 AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL - COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 50 * ( + CAST ( + 95 AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + 55 - - 60 AS col2
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT - ( + SUM( + 64 ) ) * MAX( - 44 ) * + ( 13 ) + + 86 * - - COUNT( * ) * + 63
----
42026

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT - ( + SUM ( + 64 ) ) * MAX ( - 44 ) * + ( 13 ) + + 86 * - - COUNT ( * ) * + 63
----
42026

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT DISTINCT CASE MAX( DISTINCT 63 ) WHEN + 65 THEN NULL WHEN 19 - + - 67 THEN 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT CASE MAX ( DISTINCT 63 ) WHEN + 65 THEN NULL WHEN 19 - + - 67 THEN 80 END
----
NULL

query I rowsort
SELECT + 24 * + 40 AS col2
----
960

query I rowsort
SELECT ALL 30 * + - 18 * + 52 AS col0
----
-28080

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT + COUNT( * ) - - MAX( - 6 ) - + - 93 * - + COUNT( * ) * - + 61 + + CASE 75 WHEN + - 90 + - 91 + - 69 + - 62 THEN - 89 + - + 38 WHEN - - 75 - + 74 + + 61 / + + 26 * - 76 + 36 * 56 * + 19 + - - 26 THEN 71 END / + 73 + - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-755
SELECT + COUNT ( * ) - - MAX ( - 6 ) - + - 93 * - + COUNT ( * ) * - + 61 + + CASE 75 WHEN + - 90 + - 91 + - 69 + - 62 THEN - 89 + - + 38 WHEN - - 75 - + 74 + + 61 / + + 26 * - 76 + 36 * 56 * + 19 + - - 26 THEN 71 END / + 73 + - 5
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-756
SELECT + 70 + + 91 + - CASE - ( 55 ) WHEN + 92 THEN NULL WHEN + - 17 + - 12 - + + CAST( CAST( - 38 AS DECIMAL ) AS SIGNED ) THEN - - 14 + CAST( + 82 AS SIGNED ) * - 89 * + 65 ELSE NULL END + ( COUNT( * ) ) + - 71 * + + 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-756
SELECT + 70 + + 91 + - CASE - ( 55 ) WHEN + 92 THEN NULL WHEN + - 17 + - 12 - + + CAST ( CAST ( - 38 AS REAL ) AS INTEGER ) THEN - - 14 + CAST ( + 82 AS INTEGER ) * - 89 * + 65 ELSE NULL END + ( COUNT ( * ) ) + - 71 * + + 20 AS col1
----
NULL

query I rowsort
SELECT + 88 * COALESCE ( 45, - 11 )
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-758
SELECT - ( + + 80 ) AS col2, + CAST( + 83 AS SIGNED )
----
-80
83

skipif mysql # not compatible
query II rowsort label-758
SELECT - ( + + 80 ) AS col2, + CAST ( + 83 AS INTEGER )
----
-80
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-759
SELECT + 40 + - COALESCE ( - - CAST( NULL AS SIGNED ), + - 52 ) col0
----
92

skipif mysql # not compatible
query I rowsort label-759
SELECT + 40 + - COALESCE ( - - CAST ( NULL AS INTEGER ), + - 52 ) col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-760
SELECT ALL 11 * - - 90 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL 11 * - - 90 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-761
SELECT ALL + 56 * - 73 * + + COUNT( * ) * - 60 DIV - 1, ( + 87 ) AS col1
----
-245280
87

skipif mysql # not compatible
query II rowsort label-761
SELECT ALL + 56 * - 73 * + + COUNT ( * ) * - 60 / - 1, ( + 87 ) AS col1
----
-245280
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-762
SELECT + ( - COUNT( * ) ) * + + 20 + 51 * CAST( + - COUNT( * ) AS SIGNED ) * - 35
----
1765

skipif mysql # not compatible
query I rowsort label-762
SELECT + ( - COUNT ( * ) ) * + + 20 + 51 * CAST ( + - COUNT ( * ) AS INTEGER ) * - 35
----
1765

query II rowsort
SELECT - ( - 39 ), 10 AS col0
----
39
10

onlyif mysql # aggregate syntax: 
query II rowsort label-764
SELECT ( + - 91 ) AS col0, - 78 + - SUM( + 42 )
----
-91
-120

skipif mysql # not compatible
query II rowsort label-764
SELECT ( + - 91 ) AS col0, - 78 + - SUM ( + 42 )
----
-91
-120

query I rowsort
SELECT - 4 * - - 94 AS col0
----
-376

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT DISTINCT - MIN( ALL - 58 ) * 70 + + - ( 47 ) - 94
----
3919

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - MIN ( ALL - 58 ) * 70 + + - ( 47 ) - 94
----
3919

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-767
SELECT ALL + - COUNT( DISTINCT 78 ) * + 97 + + - 5 * - + ( - - 90 ) * + 49 * CASE + + CAST( - 79 AS SIGNED ) WHEN + 8 / - 48 THEN + - 22 WHEN - + 90 * 69 + + COUNT( * ) THEN NULL ELSE NULL END - + + CAST( NULL AS DECIMAL ) - + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + - COUNT ( DISTINCT 78 ) * + 97 + + - 5 * - + ( - - 90 ) * + 49 * CASE + + CAST ( - 79 AS INTEGER ) WHEN + 8 / - 48 THEN + - 22 WHEN - + 90 * 69 + + COUNT ( * ) THEN NULL ELSE NULL END - + + CAST ( NULL AS REAL ) - + 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT DISTINCT + + COALESCE ( + 83, 99 ) * + 45 + + 48 + + + ( - 6 ) + - NULLIF ( + + 24, + 31 * - - 36 ) + - CASE - 5 WHEN + COUNT( * ) THEN + 73 + + + 13 + 66 * + + 45 END * - + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + + COALESCE ( + 83, 99 ) * + 45 + + 48 + + + ( - 6 ) + - NULLIF ( + + 24, + 31 * - - 36 ) + - CASE - 5 WHEN + COUNT ( * ) THEN + 73 + + + 13 + 66 * + + 45 END * - + 79
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL - - CAST( NULL AS SIGNED ) / + 29 * 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL - - CAST ( NULL AS INTEGER ) / + 29 * 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL 1 * 17 + COUNT( 72 ) + + 74 * - 11
----
-796

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL 1 * 17 + COUNT ( 72 ) + + 74 * - 11
----
-796

query I rowsort
SELECT ALL + + NULLIF ( - 10, - 83 * - 74 ) AS col2
----
-10

query I rowsort
SELECT + + 7 + ( - 66 ) + 39
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT - - ( - + 54 ) * - SUM( - 30 ) * - 15 * + 39
----
947700

skipif mysql # not compatible
query I rowsort label-773
SELECT - - ( - + 54 ) * - SUM ( - 30 ) * - 15 * + 39
----
947700

query I rowsort
SELECT + 22 + - 18 + 12 AS col1
----
16

query I rowsort
SELECT 27 * + 62 * - 3 - - 76 AS col0
----
-4946

query I rowsort
SELECT ALL + - 28 * 19 + + NULLIF ( 54, - 12 )
----
-478

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

onlyif mysql # aggregate syntax: 
query I rowsort label-778
SELECT DISTINCT - + 75 * + COUNT( * ) * - 75 + + COUNT( + 74 ) * + 14 - + + 16
----
5623

skipif mysql # not compatible
query I rowsort label-778
SELECT DISTINCT - + 75 * + COUNT ( * ) * - 75 + + COUNT ( + 74 ) * + 14 - + + 16
----
5623

query I rowsort
SELECT - 44 + - 80 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT + COUNT( * ) * - - NULLIF ( - 62, + - 58 ) + - + 19 + - COALESCE ( - - COUNT( DISTINCT - 20 ), - ( + 99 ) - + - ( - 75 ) ) * + 92 * - - 48 AS col0
----
-4497

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT + COUNT ( * ) * - - NULLIF ( - 62, + - 58 ) + - + 19 + - COALESCE ( - - COUNT ( DISTINCT - 20 ), - ( + 99 ) - + - ( - 75 ) ) * + 92 * - - 48 AS col0
----
-4497

query I rowsort
SELECT ALL - + 46 * - - ( - 10 ) AS col0
----
460

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT ALL ( - + CASE - + 13 WHEN + 3 * + COUNT( * ) THEN + - 88 * + + 92 + + 93 END ) col0, 12 AS col2
----
NULL
12

skipif mysql # not compatible
query II rowsort label-784
SELECT ALL ( - + CASE - + 13 WHEN + 3 * + COUNT ( * ) THEN + - 88 * + + 92 + + 93 END ) col0, 12 AS col2
----
NULL
12

onlyif mysql # aggregate syntax: 
query II rowsort label-785
SELECT + COALESCE ( - + MAX( DISTINCT - 93 ), + 3 ) * - 91 + + COUNT( * ) AS col1, + 15 + - 45 AS col0
----
-8462
-30

skipif mysql # not compatible
query II rowsort label-785
SELECT + COALESCE ( - + MAX ( DISTINCT - 93 ), + 3 ) * - 91 + + COUNT ( * ) AS col1, + 15 + - 45 AS col0
----
-8462
-30

query I rowsort
SELECT - 47 * + 62 col0
----
-2914

query I rowsort
SELECT + 53 + 3 AS col1
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-788
SELECT - 64 DIV - 65 col2
----
0

skipif mysql # not compatible
query I rowsort label-788
SELECT - 64 / - 65 col2
----
0

query I rowsort
SELECT ALL 76 * + 0
----
0

query II rowsort
SELECT ALL 81, 79 * 92 * + - NULLIF ( + + 98, 69 ) AS col0
----
81
-712264

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT - MIN( - 83 ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-791
SELECT - MIN ( - 83 ) AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-792
SELECT DISTINCT - 70 DIV - COUNT( DISTINCT + 81 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-792
SELECT DISTINCT - 70 / - COUNT ( DISTINCT + 81 ) AS col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT + 34 DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT + 34 / + 75
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-794
SELECT ALL - 52 * 90 DIV + + 61, + 19 AS col1
----
-76
19

skipif mysql # not compatible
query II rowsort label-794
SELECT ALL - 52 * 90 / + + 61, + 19 AS col1
----
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - COUNT( * ) - - 2 + + 5 * + 92 col1
----
461

skipif mysql # not compatible
query I rowsort label-795
SELECT - COUNT ( * ) - - 2 + + 5 * + 92 col1
----
461

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-797
SELECT - COALESCE ( CAST( NULL AS DECIMAL ), - COALESCE ( + 78, - 96 + + 54, SUM( ALL 26 ) ) ) + + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT - COALESCE ( CAST ( NULL AS REAL ), - COALESCE ( + 78, - 96 + + 54, SUM ( ALL 26 ) ) ) + + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-798
SELECT - ( COUNT( - 23 ) ) AS col1, - 55
----
-1
-55

skipif mysql # not compatible
query II rowsort label-798
SELECT - ( COUNT ( - 23 ) ) AS col1, - 55
----
-1
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-799
SELECT - COUNT( - 57 ) DIV - 21 - - 94 + + 19 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-799
SELECT - COUNT ( - 57 ) / - 21 - - 94 + + 19 AS col0
----
113

query I rowsort
SELECT + COALESCE ( - 99, 2 - - - 87 * 84, - 32 ) + 44 * - 77 * + 61
----
-206767

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-801
SELECT - CAST( NULL AS DECIMAL ) AS col0, + 52 + COUNT( * ) + + + 86 DIV + - MAX( ( + 99 ) ) * + 86 AS col2
----
NULL
53

skipif mysql # not compatible
query II rowsort label-801
SELECT - CAST ( NULL AS REAL ) AS col0, + 52 + COUNT ( * ) + + + 86 / + - MAX ( ( + 99 ) ) * + 86 AS col2
----
NULL
53

query II rowsort
SELECT 49, 48 - - 14 AS col0
----
49
62

query I rowsort
SELECT + 80 * - ( ( - 52 ) ) * - 1
----
-4160

query I rowsort
SELECT ALL 86 + - COALESCE ( - + 68, - - 70 )
----
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT DISTINCT COALESCE ( + - 83, + 40, - + 9 * - 69 * + ( - COUNT( * ) ) * - 11 * - + MIN( ALL 66 ) + 4 ) DIV - 57 + 68 - 15 AS col2
----
54

skipif mysql # not compatible
query I rowsort label-805
SELECT DISTINCT COALESCE ( + - 83, + 40, - + 9 * - 69 * + ( - COUNT ( * ) ) * - 11 * - + MIN ( ALL 66 ) + 4 ) / - 57 + 68 - 15 AS col2
----
54

query II rowsort
SELECT DISTINCT + 42 AS col2, 66 col1
----
42
66

query I rowsort
SELECT DISTINCT 74 * - 85 * - + 9 AS col2
----
56610

query I rowsort
SELECT ALL + 58 + + 5
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - MAX( DISTINCT - - 82 ) * + + 84 * ( + 94 ) AS col2
----
-647472

skipif mysql # not compatible
query I rowsort label-809
SELECT - MAX ( DISTINCT - - 82 ) * + + 84 * ( + 94 ) AS col2
----
-647472

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT - + COUNT( * ) * - + 78 * 32 + - + COUNT( * ) + 36 * - 56
----
479

skipif mysql # not compatible
query I rowsort label-811
SELECT - + COUNT ( * ) * - + 78 * 32 + - + COUNT ( * ) + 36 * - 56
----
479

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-812
SELECT CAST( + 97 AS SIGNED ) DIV - 31 + - 19 - - - MIN( ALL COALESCE ( 57, 76, CAST( NULL AS SIGNED ) * - - 8 + - - 34 DIV + + 7 DIV + 48 ) ) * + + 48 - 47 AS col2
----
-2805

skipif mysql # not compatible
query I rowsort label-812
SELECT CAST ( + 97 AS INTEGER ) / - 31 + - 19 - - - MIN ( ALL COALESCE ( 57, 76, CAST ( NULL AS INTEGER ) * - - 8 + - - 34 / + + 7 / + 48 ) ) * + + 48 - 47 AS col2
----
-2805

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT - MIN( 96 )
----
-96

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT - MIN ( 96 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-814
SELECT ALL + CASE AVG ( ALL + + 79 ) WHEN + + 47 THEN CAST( - 72 AS SIGNED ) END - + MAX( - + 80 ) * - + 54 - + COUNT( DISTINCT + 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-814
SELECT ALL + CASE AVG ( ALL + + 79 ) WHEN + + 47 THEN CAST ( - 72 AS INTEGER ) END - + MAX ( - + 80 ) * - + 54 - + COUNT ( DISTINCT + 2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-815
SELECT CASE + 43 WHEN + - 30 + + + 68 THEN 77 * + 40 + - - COUNT( * ) ELSE + 9 END AS col2, ( 27 ) AS col0
----
9
27

skipif mysql # not compatible
query II rowsort label-815
SELECT CASE + 43 WHEN + - 30 + + + 68 THEN 77 * + 40 + - - COUNT ( * ) ELSE + 9 END AS col2, ( 27 ) AS col0
----
9
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-816
SELECT 77 * - 40 * - COALESCE ( - + 92, 57 * + + COUNT( * ) * - - MIN( - 69 ) * - CAST( NULL AS SIGNED ) + - + 73 * + 31 + + - SUM( + 55 ) + + 31 + - + 57 )
----
-283360

skipif mysql # not compatible
query I rowsort label-816
SELECT 77 * - 40 * - COALESCE ( - + 92, 57 * + + COUNT ( * ) * - - MIN ( - 69 ) * - CAST ( NULL AS INTEGER ) + - + 73 * + 31 + + - SUM ( + 55 ) + + 31 + - + 57 )
----
-283360

query I rowsort
SELECT ALL - 32 * - 69
----
2208

query I rowsort
SELECT ALL + + 73 - NULLIF ( 93, + 63 + + 30 )
----
NULL

query II rowsort
SELECT DISTINCT - - 34 AS col0, 33 * 96 + - + 40
----
34
3128

onlyif mysql # DIV for integer division: 
query I rowsort label-820
SELECT DISTINCT + 93 DIV - 72
----
-1

skipif mysql # not compatible
query I rowsort label-820
SELECT DISTINCT + 93 / - 72
----
-1

query I rowsort
SELECT - 8 - - - 50
----
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-823
SELECT COALESCE ( + + 46, + COUNT( * ), + MIN( DISTINCT - + 81 ) + 34 ) - - 79 + - 39 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-823
SELECT COALESCE ( + + 46, + COUNT ( * ), + MIN ( DISTINCT - + 81 ) + 34 ) - - 79 + - 39 AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT ALL + 55 DIV - 52 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 55 / - 52 AS col1
----
-1

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

skipif mysql # not compatible
query I rowsort label-825
SELECT 35 * + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-826
SELECT ALL + 29 * - 23 AS col0, - NULLIF ( - + 19, NULLIF ( - - 6, - + 23 * + 15 * - + COUNT( * ) * - AVG ( - + 15 ) + + 96 + + + 38 ) )
----
-667
19

skipif mysql # not compatible
query II rowsort label-826
SELECT ALL + 29 * - 23 AS col0, - NULLIF ( - + 19, NULLIF ( - - 6, - + 23 * + 15 * - + COUNT ( * ) * - AVG ( - + 15 ) + + 96 + + + 38 ) )
----
-667
19

query I rowsort
SELECT ALL - 65 * + 8
----
-520

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

skipif mysql # not compatible
query I rowsort label-828
SELECT 54 - + 4 + - COUNT ( * ) AS col1
----
49

query I rowsort
SELECT ALL - 56 * + ( 64 )
----
-3584

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT DISTINCT + 20 + + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-830
SELECT DISTINCT + 20 + + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-831
SELECT DISTINCT + 84 + + 27 + COUNT( * ) + 45 * + ( 54 ) AS col0
----
2542

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + 84 + + 27 + COUNT ( * ) + 45 * + ( 54 ) AS col0
----
2542

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

skipif mysql # not compatible
query I rowsort label-832
SELECT COUNT ( * ) + 89 AS col2
----
90

query I rowsort
SELECT DISTINCT - 39 + + 63 AS col1
----
24

query I rowsort
SELECT 63 + 97
----
160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL + 3 + - MIN( DISTINCT - 16 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL + 3 + - MIN ( DISTINCT - 16 ) AS col1
----
19

query I rowsort
SELECT 88 + - 0 AS col0
----
88

query I rowsort
SELECT ALL 41 * + 36 AS col2
----
1476

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-839
SELECT DISTINCT + - 9 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT + - 9 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT - 68 * + - 22 col1, 58
----
1496
58

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT 74 * SUM( + + 49 )
----
3626

skipif mysql # not compatible
query I rowsort label-841
SELECT 74 * SUM ( + + 49 )
----
3626

query I rowsort
SELECT + ( - 84 ) + + 15 + - + 20
----
-89

query I rowsort
SELECT - + 34 * + 66 + - - 99 + - 20
----
-2165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-844
SELECT ( + ( 46 ) ) * NULLIF ( COALESCE ( 13, - + 54 + - 69 + 18 * + - 30 DIV NULLIF ( + 23, - 49 ) ), + 33 * ( 14 ) - + + SUM( ALL - + CAST( + 50 AS SIGNED ) ) + + - NULLIF ( 57, + + CAST( NULL AS SIGNED ) + - - 39 ) * - 74 * + 84 + + 69 ) DIV - 40 + + + 57 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-844
SELECT ( + ( 46 ) ) * NULLIF ( COALESCE ( 13, - + 54 + - 69 + 18 * + - 30 / NULLIF ( + 23, - 49 ) ), + 33 * ( 14 ) - + + SUM ( ALL - + CAST ( + 50 AS INTEGER ) ) + + - NULLIF ( 57, + + CAST ( NULL AS INTEGER ) + - - 39 ) * - 74 * + 84 + + 69 ) / - 40 + + + 57 AS col2
----
43

query I rowsort
SELECT ( - 99 ) AS col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL - - MIN( ALL + + 15 ) * - ( 19 ) col2
----
-285

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL - - MIN ( ALL + + 15 ) * - ( 19 ) col2
----
-285

query I rowsort
SELECT - 40 + 64 + + 44 AS col1
----
68

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

query I rowsort
SELECT - ( - 8 ) * 78 - - + 32 col2
----
656

query I rowsort
SELECT ALL - NULLIF ( - 34, + 19 )
----
34

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

query I rowsort
SELECT DISTINCT 0 * - + 41 * - 71 * 87
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT + COUNT( * ) * 68 * - 6 + - 5 AS col2
----
-413

skipif mysql # not compatible
query I rowsort label-853
SELECT + COUNT ( * ) * 68 * - 6 + - 5 AS col2
----
-413

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT ALL - 70 + + + 17 DIV - 94 * 10
----
-70

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL - 70 + + + 17 / - 94 * 10
----
-70

query I rowsort
SELECT 64 + 93 + + 8
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT ALL 23 + - CASE + - COUNT( * ) WHEN - 68 THEN - + 70 - + - 6 ELSE + 28 END AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL 23 + - CASE + - COUNT ( * ) WHEN - 68 THEN - + 70 - + - 6 ELSE + 28 END AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-857
SELECT ALL + COUNT( * ) DIV 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL + COUNT ( * ) / 65 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-858
SELECT CAST( + - 9 AS SIGNED ) + + 66 AS col2, 67 * - - COALESCE ( + - 21, COUNT( * ) + 68 )
----
57
-1407

skipif mysql # not compatible
query II rowsort label-858
SELECT CAST ( + - 9 AS INTEGER ) + + 66 AS col2, 67 * - - COALESCE ( + - 21, COUNT ( * ) + 68 )
----
57
-1407

query I rowsort
SELECT ALL 99 + 29
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-860
SELECT NULLIF ( + 46, + ( - 1 ) ) * + + 7, 15 * + COUNT( * ) DIV ( + COUNT( * ) ) DIV 46 AS col0
----
322
0

skipif mysql # not compatible
query II rowsort label-860
SELECT NULLIF ( + 46, + ( - 1 ) ) * + + 7, 15 * + COUNT ( * ) / ( + COUNT ( * ) ) / 46 AS col0
----
322
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-861
SELECT CAST( - NULLIF ( + 28, + + MIN( - 94 ) ) AS DECIMAL ) / CAST( + - CASE + - COUNT( * ) WHEN - 32 THEN NULLIF ( - + 13, 30 + COUNT( DISTINCT + CAST( + CASE 96 WHEN 88 THEN 98 + - CAST( 37 AS SIGNED ) END AS SIGNED ) ) ) * - AVG ( DISTINCT 46 ) ELSE NULL END AS SIGNED ) + + 79 - COUNT( * ) * - 5
----
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT CAST ( - NULLIF ( + 28, + + MIN ( - 94 ) ) AS REAL ) / CAST ( + - CASE + - COUNT ( * ) WHEN - 32 THEN NULLIF ( - + 13, 30 + COUNT ( DISTINCT + CAST ( + CASE 96 WHEN 88 THEN 98 + - CAST ( 37 AS INTEGER ) END AS INTEGER ) ) ) * - AVG ( DISTINCT 46 ) ELSE NULL END AS INTEGER ) + + 79 - COUNT ( * ) * - 5
----
NULL

query III rowsort
SELECT 87 col1, + 33 * 19, + 47 AS col1
----
87
627
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-863
SELECT DISTINCT + AVG ( - CAST( NULL AS SIGNED ) ) + 99, - 4 + + ( + MAX( DISTINCT + - ( + 54 ) ) ) - - 79 DIV + ( 94 ) AS col1
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-863
SELECT DISTINCT + AVG ( - CAST ( NULL AS INTEGER ) ) + 99, - 4 + + ( + MAX ( DISTINCT + - ( + 54 ) ) ) - - 79 / + ( 94 ) AS col1
----
NULL
-58

query I rowsort
SELECT ALL - 35 + - 84 AS col0
----
-119

query I rowsort
SELECT DISTINCT + COALESCE ( - 18, + 28 ) + + 98
----
80

query I rowsort
SELECT ALL 10 + - 23 + 52 + 67 * - 25 AS col0
----
-1636

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

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

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

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

skipif mysql # not compatible
query I rowsort label-869
SELECT - + COUNT ( * ) * - 94 + 10 AS col1
----
104

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

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

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

query I rowsort
SELECT - - 14 + + 65
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT MAX( 0 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-873
SELECT MAX ( 0 ) col0
----
0

query I rowsort
SELECT ALL + - 31 - - 63
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT 95 DIV + 22 - - 90 col1
----
94

skipif mysql # not compatible
query I rowsort label-875
SELECT 95 / + 22 - - 90 col1
----
94

query I rowsort
SELECT DISTINCT + 26 * - + ( COALESCE ( - - 75, + + 54 + - + 87 ) )
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL + - COUNT( * ) * 90 - + 77 + 5
----
-162

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL + - COUNT ( * ) * 90 - + 77 + 5
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT - COUNT( * ) * MAX( - 58 ) * - 13 col1
----
-754

skipif mysql # not compatible
query I rowsort label-878
SELECT - COUNT ( * ) * MAX ( - 58 ) * - 13 col1
----
-754

query I rowsort
SELECT DISTINCT + + 89 * + 74
----
6586

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-883
SELECT + + 84 AS col1, 17 + - 67 + + 21 * + AVG ( ALL + + CAST( NULL AS SIGNED ) )
----
84
NULL

skipif mysql # not compatible
query II rowsort label-883
SELECT + + 84 AS col1, 17 + - 67 + + 21 * + AVG ( ALL + + CAST ( NULL AS INTEGER ) )
----
84
NULL

query I rowsort
SELECT - + 43 * 69 * 55
----
-163185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-885
SELECT ALL COUNT( * ) * 4 + 64 DIV - ( 54 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-885
SELECT ALL COUNT ( * ) * 4 + 64 / - ( 54 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT COALESCE ( 91, - MAX( ALL + + 58 ), 14 )
----
91

skipif mysql # not compatible
query I rowsort label-886
SELECT COALESCE ( 91, - MAX ( ALL + + 58 ), 14 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT DISTINCT + ( MIN( 78 ) ) * - - 9 * - + NULLIF ( + 6, + - 14 - 90 ) + + CAST( NULL AS SIGNED ) + 15 - + 31 * 92
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT DISTINCT + ( MIN ( 78 ) ) * - - 9 * - + NULLIF ( + 6, + - 14 - 90 ) + + CAST ( NULL AS INTEGER ) + 15 - + 31 * 92
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-888
SELECT DISTINCT + 25 col0, COUNT( * )
----
25
1

skipif mysql # not compatible
query II rowsort label-888
SELECT DISTINCT + 25 col0, COUNT ( * )
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT + NULLIF ( - COALESCE ( - 63, 98, 20, + - COUNT( * ) ), COUNT( * ) * COUNT( * ) * - 82 ) * + + 80 AS col1
----
5040

skipif mysql # not compatible
query I rowsort label-889
SELECT + NULLIF ( - COALESCE ( - 63, 98, 20, + - COUNT ( * ) ), COUNT ( * ) * COUNT ( * ) * - 82 ) * + + 80 AS col1
----
5040

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-890
SELECT DISTINCT + 2 AS col2, - NULLIF ( 43, - + 50 ) + 67 - + COUNT( ALL 96 ) DIV - + 96 * - 9 * + 74
----
2
24

skipif mysql # not compatible
query II rowsort label-890
SELECT DISTINCT + 2 AS col2, - NULLIF ( 43, - + 50 ) + 67 - + COUNT ( ALL 96 ) / - + 96 * - 9 * + 74
----
2
24

query I rowsort
SELECT - 6 - 3 * + - 73
----
213

query I rowsort
SELECT + COALESCE ( - + 95, - + 52 * 25 )
----
-95

query I rowsort
SELECT + ( - - 78 ) * + - NULLIF ( - 88, - + 7 ) col2
----
6864

query I rowsort
SELECT DISTINCT 37 * ( 97 ) + + 20 + 90 AS col2
----
3699

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-895
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) * MIN( - + CAST( NULL AS SIGNED ) ) AS col0
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-895
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) * MIN ( - + CAST ( NULL AS INTEGER ) ) AS col0
----
-1
NULL

query II rowsort
SELECT ALL 11 * + - 61 * - + 34 + 28, 85 col1
----
22842
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-897
SELECT + CAST( + 79 AS SIGNED ) - 96 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-897
SELECT + CAST ( + 79 AS INTEGER ) - 96 AS col2
----
-17

query I rowsort
SELECT DISTINCT 75 + 16
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT MIN( ALL - + 72 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-899
SELECT MIN ( ALL - + 72 ) AS col2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-900
SELECT ALL 10 - 19 + - COALESCE ( + 17, - - 71 ) * - 84 * 82 * + - 24 - 88 - + AVG ( DISTINCT - + 44 ) + + + 75 * - 17 * - CASE - MIN( ALL 0 ) WHEN 85 THEN - 54 END * 2 - CAST( + COUNT( * ) AS DECIMAL ) AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-900
SELECT ALL 10 - 19 + - COALESCE ( + 17, - - 71 ) * - 84 * 82 * + - 24 - 88 - + AVG ( DISTINCT - + 44 ) + + + 75 * - 17 * - CASE - MIN ( ALL 0 ) WHEN 85 THEN - 54 END * 2 - CAST ( + COUNT ( * ) AS REAL ) AS col2, + COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL + 71 col1, 77 AS col0
----
71
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-902
SELECT + - 65 + - ( + 13 ) DIV MAX( - 64 )
----
-65

skipif mysql # not compatible
query I rowsort label-902
SELECT + - 65 + - ( + 13 ) / MAX ( - 64 )
----
-65

query I rowsort
SELECT - - 60 - + - 7 AS col0
----
67

query I rowsort
SELECT + 59 * - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT + + COUNT( DISTINCT 1 ) + - 1 + + 82 AS col0
----
82

skipif mysql # not compatible
query I rowsort label-905
SELECT + + COUNT ( DISTINCT 1 ) + - 1 + + 82 AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-906
SELECT ALL COALESCE ( - - 95, + - 75 + CAST( NULL AS SIGNED ) * + COUNT( * ), + 88 ) - + COUNT( * ) * - + 36
----
131

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL COALESCE ( - - 95, + - 75 + CAST ( NULL AS INTEGER ) * + COUNT ( * ), + 88 ) - + COUNT ( * ) * - + 36
----
131

query I rowsort
SELECT - + 91 col0
----
-91

query I rowsort
SELECT ALL - 5 * + COALESCE ( + 51, + 35 )
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-909
SELECT + 86 DIV + 65
----
1

skipif mysql # not compatible
query I rowsort label-909
SELECT + 86 / + 65
----
1

query I rowsort
SELECT ALL - - 66 * - - 69
----
4554

query I rowsort
SELECT + + ( 22 ) * 55 AS col2
----
1210

query II rowsort
SELECT DISTINCT + 77 * + 49 AS col1, 37 AS col2
----
3773
37

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT - 13 + - COUNT( * ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-913
SELECT - 13 + - COUNT ( * ) col1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-914
SELECT ALL - COUNT( - CAST( - 7 AS DECIMAL ) )
----
-1

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - COUNT ( - CAST ( - 7 AS REAL ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
SELECT DISTINCT CAST( + 79 AS SIGNED ) * - 50 - + + 41 AS col1
----
-3991

skipif mysql # not compatible
query I rowsort label-915
SELECT DISTINCT CAST ( + 79 AS INTEGER ) * - 50 - + + 41 AS col1
----
-3991

onlyif mysql # aggregate syntax: 
query I rowsort label-916
SELECT - - 58 * - + MIN( ALL + + 37 ) AS col1
----
-2146

skipif mysql # not compatible
query I rowsort label-916
SELECT - - 58 * - + MIN ( ALL + + 37 ) AS col1
----
-2146

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

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

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

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

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

query I rowsort
SELECT ALL + - 28 col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - 78 * COUNT( * ) + - 44 - - COUNT( * ) + + - 55
----
-176

skipif mysql # not compatible
query I rowsort label-921
SELECT - 78 * COUNT ( * ) + - 44 - - COUNT ( * ) + + - 55
----
-176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-922
SELECT ALL 99 DIV + 40 + + 13 DIV + + MAX( - + 98 ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL 99 / + 40 + + 13 / + + MAX ( - + 98 ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT ALL - ( + 10 ) DIV + 84 - - 94 + - 91 + + - 59
----
-56

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - ( + 10 ) / + 84 - - 94 + - 91 + + - 59
----
-56

query I rowsort
SELECT ALL - 6 * + + 99
----
-594

query I rowsort
SELECT - 18 + + ( + - 87 ) * - 76 * + 46 + + 86 + + 3 * - 21
----
304157

query I rowsort
SELECT DISTINCT - 25 * + 15
----
-375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-927
SELECT - 96 * - COUNT( * ) DIV + 99 * 77 + + 6 + + - COUNT( * ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-927
SELECT - 96 * - COUNT ( * ) / + 99 * 77 + + 6 + + - COUNT ( * ) AS col0
----
5

query I rowsort
SELECT - 82 + - 5
----
-87

query I rowsort
SELECT DISTINCT 64 * - - 82 * + + 80 + 38
----
419878

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-932
SELECT COUNT( * ) * + - COUNT( * ) + + 76 + 11 + + 50 + - - COUNT( * ) - - + 60 + - + COALESCE ( 39, + COUNT( * ) ) DIV ( - - 32 ) + + - 63 AS col1, - 72 * + 14
----
133
-1008

skipif mysql # not compatible
query II rowsort label-932
SELECT COUNT ( * ) * + - COUNT ( * ) + + 76 + 11 + + 50 + - - COUNT ( * ) - - + 60 + - + COALESCE ( 39, + COUNT ( * ) ) / ( - - 32 ) + + - 63 AS col1, - 72 * + 14
----
133
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT + 57 * - MIN( DISTINCT - 97 ) + 5 - - 51 + - MAX( ALL - 92 ) AS col1
----
5677

skipif mysql # not compatible
query I rowsort label-933
SELECT + 57 * - MIN ( DISTINCT - 97 ) + 5 - - 51 + - MAX ( ALL - 92 ) AS col1
----
5677

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-934
SELECT ALL 70 * 1 - - COUNT( * ) AS col1, 59 DIV + + 33 + - 66 * + ( - 78 ) * 11 AS col1
----
71
56629

skipif mysql # not compatible
query II rowsort label-934
SELECT ALL 70 * 1 - - COUNT ( * ) AS col1, 59 / + + 33 + - 66 * + ( - 78 ) * 11 AS col1
----
71
56629

query I rowsort
SELECT 98 + + - 17
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-936
SELECT ALL COUNT( * ) - + + 44 AS col2, ( - 32 ) + - 38 + COUNT( * )
----
-43
-69

skipif mysql # not compatible
query II rowsort label-936
SELECT ALL COUNT ( * ) - + + 44 AS col2, ( - 32 ) + - 38 + COUNT ( * )
----
-43
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-937
SELECT COUNT( DISTINCT 96 ) * + - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-937
SELECT COUNT ( DISTINCT 96 ) * + - 31 AS col0
----
-31

query I rowsort
SELECT DISTINCT 21 * + + 52 AS col2
----
1092

query II rowsort
SELECT 73 + + 69 + 65 AS col2, 29 * + 88
----
207
2552

query I rowsort
SELECT ALL 87 - + 16
----
71

query I rowsort
SELECT 60 * - - 1 * - 59 col0
----
-3540

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL - - 23 * ( + 11 ) + - + COUNT( * ) + - COALESCE ( + 50, + + 67 ) AS col1
----
202

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - - 23 * ( + 11 ) + - + COUNT ( * ) + - COALESCE ( + 50, + + 67 ) AS col1
----
202

onlyif mysql # aggregate syntax: 
query II rowsort label-943
SELECT DISTINCT 5 * + + 89, - 53 * 46 * - ( - COUNT( * ) ) + 80 col1
----
445
-2358

skipif mysql # not compatible
query II rowsort label-943
SELECT DISTINCT 5 * + + 89, - 53 * 46 * - ( - COUNT ( * ) ) + 80 col1
----
445
-2358

onlyif mysql # aggregate syntax: 
query II rowsort label-944
SELECT ALL ( - NULLIF ( - + COUNT( DISTINCT 63 ), + 53 * 9 * - 1 ) ) AS col1, - 85 * + + 93
----
1
-7905

skipif mysql # not compatible
query II rowsort label-944
SELECT ALL ( - NULLIF ( - + COUNT ( DISTINCT 63 ), + 53 * 9 * - 1 ) ) AS col1, - 85 * + + 93
----
1
-7905

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT MIN( ALL + 49 ) + + 90
----
139

skipif mysql # not compatible
query I rowsort label-946
SELECT MIN ( ALL + 49 ) + + 90
----
139

query I rowsort
SELECT DISTINCT + 91 + + 6 + - 28 + ( + - 89 ) col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT DISTINCT 60 + SUM( DISTINCT 63 ) * - 82 AS col2
----
-5106

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT 60 + SUM ( DISTINCT 63 ) * - 82 AS col2
----
-5106

query I rowsort
SELECT ALL + + 59 + + 48 + 56 AS col1
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT 35 * - 84 + + 24 + COUNT( * ) AS col2
----
-2915

skipif mysql # not compatible
query I rowsort label-950
SELECT 35 * - 84 + + 24 + COUNT ( * ) AS col2
----
-2915

query I rowsort
SELECT ALL - ( - 17 ) + - 43 * - 41
----
1780

query I rowsort
SELECT ALL + 65 + + 56
----
121

query II rowsort
SELECT DISTINCT - 5, 4 col1
----
-5
4

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

query I rowsort
SELECT 44 * + 66
----
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT 80 + + MIN( ALL 77 )
----
157

skipif mysql # not compatible
query I rowsort label-956
SELECT 80 + + MIN ( ALL 77 )
----
157

query II rowsort
SELECT + 66 AS col0, 59
----
66
59

query II rowsort
SELECT ALL + 66 + + NULLIF ( - 17, - 10 ) + - 90 * + 5 * - ( + + 43 ) AS col1, 27 * - 20 AS col1
----
19399
-540

query II rowsort
SELECT 90, - 1 AS col0
----
90
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL - 2 - - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL - 2 - - COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT 70 * + 35
----
2450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-962
SELECT DISTINCT 99 - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT 99 - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 82 * 90 AS col1
----
7380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-964
SELECT DISTINCT - MIN( + 92 ) * - CAST( NULL AS SIGNED ) * - + 8 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-964
SELECT DISTINCT - MIN ( + 92 ) * - CAST ( NULL AS INTEGER ) * - + 8 AS col1, COUNT ( * )
----
NULL
1

query II rowsort
SELECT ALL + 3 - + 42 + 7, 20 col1
----
-32
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT SUM( + 0 ) * + CAST( 79 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-966
SELECT SUM ( + 0 ) * + CAST ( 79 AS INTEGER ) AS col0
----
0

query I rowsort
SELECT 8 * - 40
----
-320

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT COUNT( + + 16 ) - - - 46 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-968
SELECT COUNT ( + + 16 ) - - - 46 AS col0
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT 14 DIV - 22 * - + 42 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-969
SELECT 14 / - 22 * - + 42 AS col2
----
0

query I rowsort
SELECT + NULLIF ( 99, + 29 ) * 91 + - NULLIF ( + + 65, - + 56 )
----
8944

query I rowsort
SELECT ALL + COALESCE ( + - 54, 24 ) * - 71 AS col2
----
3834

query II rowsort
SELECT + 53, 93 AS col0
----
53
93

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL - CASE + 6 WHEN - 15 + - + ( - 76 ) + + - 78 THEN NULL WHEN 70 - ( 48 ) THEN MIN( DISTINCT + 6 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL - CASE + 6 WHEN - 15 + - + ( - 76 ) + + - 78 THEN NULL WHEN 70 - ( 48 ) THEN MIN ( DISTINCT + 6 ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT 4 DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-974
SELECT 4 / - 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL - 69 * + COUNT( * ) * 94
----
-6486

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL - 69 * + COUNT ( * ) * 94
----
-6486

query I rowsort
SELECT + 68 - + - 30
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT DISTINCT + MIN( 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT + MIN ( 88 ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-978
SELECT ( + + COUNT( * ) ) + - - COUNT( * ) AS col2, + 86 AS col2
----
2
86

skipif mysql # not compatible
query II rowsort label-978
SELECT ( + + COUNT ( * ) ) + - - COUNT ( * ) AS col2, + 86 AS col2
----
2
86

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

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

query I rowsort
SELECT - 34 + + - 57
----
-91

query I rowsort
SELECT - 18 - + 23 + - ( + - 73 ) + + 36 * - - 43 - - + 5 * - 1 * - - 58 * - 47
----
15210

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL - COUNT( * ) * 30 col0
----
-30

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL - COUNT ( * ) * 30 col0
----
-30

query I rowsort
SELECT + 27 * - 67
----
-1809

query I rowsort
SELECT 36 - 87 + - 15 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL + 61 + + + 39 - COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL + 61 + + + 39 - COUNT ( * ) AS col2
----
99

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

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

query I rowsort
SELECT ALL + 45 + 42 + - ( - - 94 ) AS col2
----
-7

query I rowsort
SELECT DISTINCT + COALESCE ( + 67, - 25 ) + - 23 + - 36 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT - 93 * - + COUNT( * ) * + 42 * 32 AS col1
----
124992

skipif mysql # not compatible
query I rowsort label-989
SELECT - 93 * - + COUNT ( * ) * + 42 * 32 AS col1
----
124992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT ( + 53 ) + + CASE - 53 WHEN + + COALESCE ( 17, 17 / - - SUM( 29 ) ) * - ( + 71 ) * + CAST( NULL AS SIGNED ) - 60 - + + 76 + + - 98 * - COUNT( * ) THEN - - CASE + 54 WHEN 19 THEN - MIN( ALL + 33 ) * 90 + - - 49 END + - 14 WHEN + 14 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULLIF ( - - 2, + 71 * + NULLIF ( 78, - 84 / - + 92 ) - + MAX( - 76 ) + 18 * COUNT( * ) * - 68 + - 15 ) + 91 END
----
146

skipif mysql # not compatible
query I rowsort label-990
SELECT ( + 53 ) + + CASE - 53 WHEN + + COALESCE ( 17, 17 / - - SUM ( 29 ) ) * - ( + 71 ) * + CAST ( NULL AS INTEGER ) - 60 - + + 76 + + - 98 * - COUNT ( * ) THEN - - CASE + 54 WHEN 19 THEN - MIN ( ALL + 33 ) * 90 + - - 49 END + - 14 WHEN + 14 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULLIF ( - - 2, + 71 * + NULLIF ( 78, - 84 / - + 92 ) - + MAX ( - 76 ) + 18 * COUNT ( * ) * - 68 + - 15 ) + 91 END
----
146

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

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

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

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

query I rowsort
SELECT - 50 * 84
----
-4200

query II rowsort
SELECT + ( - - 73 ) + - 39 * 73 + + - 72 * 36 AS col2, 6 * + 90
----
-5366
540

query I rowsort
SELECT 54 + - + 11 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-996
SELECT DISTINCT MIN( + NULLIF ( 34, - 65 * + 49 / NULLIF ( + ( 64 ), 76 ) * + 61 - CAST( NULL AS DECIMAL ) * + 77 ) ) * 41 + + 2 - + 15 + + + 44
----
1425

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT MIN ( + NULLIF ( 34, - 65 * + 49 / NULLIF ( + ( 64 ), 76 ) * + 61 - CAST ( NULL AS REAL ) * + 77 ) ) * 41 + + 2 - + 15 + + + 44
----
1425

onlyif mysql # DIV for integer division: 
query I rowsort label-997
SELECT ALL 53 DIV + - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL 53 / + - 61 AS col0
----
0

query I rowsort
SELECT DISTINCT 88 * - 27
----
-2376

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT 0 DIV + + 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT 0 / + + 2 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT CASE - + CAST( + 74 AS SIGNED ) WHEN + 92 THEN - CASE + 43 WHEN 39 - - SUM( - 76 ) THEN NULL WHEN 72 THEN - COUNT( * ) ELSE CASE - CAST( COUNT( * ) AS SIGNED ) WHEN - 85 THEN + 80 - + - 39 WHEN 50 THEN NULL ELSE NULL END END WHEN 83 THEN NULL ELSE NULL END * 86 * + - CASE - + 42 WHEN + + 15 / + 23 THEN + 90 + - + 82 ELSE + - 36 - + 94 + 4 END + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1000
SELECT CASE - + CAST ( + 74 AS INTEGER ) WHEN + 92 THEN - CASE + 43 WHEN 39 - - SUM ( - 76 ) THEN NULL WHEN 72 THEN - COUNT ( * ) ELSE CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN - 85 THEN + 80 - + - 39 WHEN 50 THEN NULL ELSE NULL END END WHEN 83 THEN NULL ELSE NULL END * 86 * + - CASE - + 42 WHEN + + 15 / + 23 THEN + 90 + - + 82 ELSE + - 36 - + 94 + 4 END + - 94
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT DISTINCT + MIN( + 17 ) AS col2, 60
----
17
60

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT + MIN ( + 17 ) AS col2, 60
----
17
60

query I rowsort
SELECT DISTINCT 52 * + 69 AS col2
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL - MAX( ALL + 29 ) * - - 17 - + - 83 + 9
----
-401

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL - MAX ( ALL + 29 ) * - - 17 - + - 83 + 9
----
-401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1005
SELECT - CAST( - + 25 AS SIGNED ) * - ( - + 0 ) - + - SUM( ALL - + 31 ) + 38 + + 95 - - 44 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-1005
SELECT - CAST ( - + 25 AS INTEGER ) * - ( - + 0 ) - + - SUM ( ALL - + 31 ) + 38 + + 95 - - 44 AS col0
----
146

query I rowsort
SELECT - 57 * + 11
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT + MIN( DISTINCT - 74 ) + - - 28 * - 56
----
-1642

skipif mysql # not compatible
query I rowsort label-1007
SELECT + MIN ( DISTINCT - 74 ) + - - 28 * - 56
----
-1642

query I rowsort
SELECT 8 * + - 30 + + - 77
----
-317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT - MIN( DISTINCT - 38 ) + - NULLIF ( 63, 61 + + + COALESCE ( - COUNT( * ), COUNT( * ) - - - CAST( NULL AS SIGNED ) * ( + 40 ) ) ) + - - 5 * - 75
----
-400

skipif mysql # not compatible
query I rowsort label-1009
SELECT - MIN ( DISTINCT - 38 ) + - NULLIF ( 63, 61 + + + COALESCE ( - COUNT ( * ), COUNT ( * ) - - - CAST ( NULL AS INTEGER ) * ( + 40 ) ) ) + - - 5 * - 75
----
-400

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

skipif mysql # not compatible
query I rowsort label-1010
SELECT COUNT ( - ( - 23 ) )
----
1

query I rowsort
SELECT + 21 * 44 AS col2
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT - 4 * - 91 * - 44 * COUNT( * ) * ( + 97 ) + + 42
----
-1553510

skipif mysql # not compatible
query I rowsort label-1012
SELECT - 4 * - 91 * - 44 * COUNT ( * ) * ( + 97 ) + + 42
----
-1553510

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 90 + - 92 AS col1
----
-182

query I rowsort
SELECT ALL - - 93 + ( - 47 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1018
SELECT - - CASE + + COALESCE ( - 36, - 21 + + - 5 - - NULLIF ( 32, - 37 ) + + ( 83 ) / - 49 / + 66 * - COUNT( * ) / - - 12 * + - SUM( ALL - COALESCE ( 39, + 16, - 21 / + 60 - - CAST( NULL AS DECIMAL ) / - - 25 ) ), + + ( - - 19 ) ) WHEN + COUNT( * ) THEN NULL WHEN + 49 THEN - 37 * - 25 + - 18 * - 49 / - - 43 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT - - CASE + + COALESCE ( - 36, - 21 + + - 5 - - NULLIF ( 32, - 37 ) + + ( 83 ) / - 49 / + 66 * - COUNT ( * ) / - - 12 * + - SUM ( ALL - COALESCE ( 39, + 16, - 21 / + 60 - - CAST ( NULL AS REAL ) / - - 25 ) ), + + ( - - 19 ) ) WHEN + COUNT ( * ) THEN NULL WHEN + 49 THEN - 37 * - 25 + - 18 * - 49 / - - 43 END AS col2
----
NULL

query I rowsort
SELECT 35 * - + 78 * + COALESCE ( + + 10, - 37 * - - 19, + 42 * - 64 - + 31 ) * + - 6 + + - 98 col1
----
163702

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT CASE + 65 WHEN - ( 38 ) THEN - 21 WHEN 53 THEN - 49 * - 63 + + - 10 - - 8 + + 94 + + SUM( DISTINCT + 67 ) + + + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1020
SELECT CASE + 65 WHEN - ( 38 ) THEN - 21 WHEN 53 THEN - 49 * - 63 + + - 10 - - 8 + + 94 + + SUM ( DISTINCT + 67 ) + + + 67 END
----
NULL

query I rowsort
SELECT - - 96 + + 61
----
157

query I rowsort
SELECT ALL + + 5 + - 81 * 48
----
-3883

onlyif mysql # aggregate syntax: 
query I rowsort label-1023
SELECT ALL + + 88 * + + 14 * - COUNT( * ) * + 18 col1
----
-22176

skipif mysql # not compatible
query I rowsort label-1023
SELECT ALL + + 88 * + + 14 * - COUNT ( * ) * + 18 col1
----
-22176

query I rowsort
SELECT DISTINCT + 83 + - 66 AS col0
----
17

query I rowsort
SELECT ALL - 80 - + 57
----
-137

query I rowsort
SELECT + + 53 + - 64 * + ( - 67 ) AS col1
----
4341

query I rowsort
SELECT DISTINCT + 93 * - 47
----
-4371

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1028
SELECT ALL + 21 - 46 * 30 DIV - COUNT( * ) AS col0
----
1401

skipif mysql # not compatible
query I rowsort label-1028
SELECT ALL + 21 - 46 * 30 / - COUNT ( * ) AS col0
----
1401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1029
SELECT - NULLIF ( CAST( NULL AS SIGNED ), - 16 * - + 55 * + 24 * + - 21 ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1029
SELECT - NULLIF ( CAST ( NULL AS INTEGER ), - 16 * - + 55 * + 24 * + - 21 ) * + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 47 * - ( - + 10 )
----
470

query I rowsort
SELECT ALL 6 - 22 AS col0
----
-16

query I rowsort
SELECT ALL ( 82 ) AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT + ( - 14 ) - - COUNT( * )
----
-13

skipif mysql # not compatible
query I rowsort label-1033
SELECT + ( - 14 ) - - COUNT ( * )
----
-13

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

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

query I rowsort
SELECT + 99 + - NULLIF ( - 84, 64 ) * 64 * 10 + - 50 - - 80 * + - 36 AS col2
----
50929

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

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

query II rowsort
SELECT ALL + 62, + 97 AS col2
----
62
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + NULLIF ( COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT + NULLIF ( COUNT ( * ), COUNT ( * ) )
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1041
SELECT ALL NULLIF ( NULLIF ( 81, - 85 * - + 51 - ( 32 ) * 3 ), - + 91 ) DIV + 54 AS col0, 48 + + 74 - + + 92 + - 11 + - 24 + - 43 * 59 * + 43 * 70 AS col2
----
1
-7636375

skipif mysql # not compatible
query II rowsort label-1041
SELECT ALL NULLIF ( NULLIF ( 81, - 85 * - + 51 - ( 32 ) * 3 ), - + 91 ) / + 54 AS col0, 48 + + 74 - + + 92 + - 11 + - 24 + - 43 * 59 * + 43 * 70 AS col2
----
1
-7636375

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT ALL + 68 * + + 44 + - 52 + - CAST( NULL AS SIGNED ) + 72 + 30 + + - 84 * 89 + COALESCE ( 72, - 89 * - 61, - CAST( NULL AS SIGNED ) * + + 57 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL + 68 * + + 44 + - 52 + - CAST ( NULL AS INTEGER ) + 72 + 30 + + - 84 * 89 + COALESCE ( 72, - 89 * - 61, - CAST ( NULL AS INTEGER ) * + + 57 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1044
SELECT + - CAST( 28 AS SIGNED ) - + 11 - 81 * + 23 - 59
----
-1961

skipif mysql # not compatible
query I rowsort label-1044
SELECT + - CAST ( 28 AS INTEGER ) - + 11 - 81 * + 23 - 59
----
-1961

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT + - SUM( ALL 52 ) * ( - COUNT( * ) ) * - 63 * - COUNT( * ) + - + ( - 48 )
----
3324

skipif mysql # not compatible
query I rowsort label-1045
SELECT + - SUM ( ALL 52 ) * ( - COUNT ( * ) ) * - 63 * - COUNT ( * ) + - + ( - 48 )
----
3324

query I rowsort
SELECT + + 80 + + 25 col0
----
105

query I rowsort
SELECT ( - 27 ) col2
----
-27

query I rowsort
SELECT 6 * - 78 + + ( + 94 )
----
-374

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT DISTINCT + SUM( + 73 ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + SUM ( + 73 ) AS col0
----
73

query I rowsort
SELECT + + 31 + - COALESCE ( - 13, + - 96 - + 17 * - + 31 - 64 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1051
SELECT DISTINCT + ( - 73 ) * - 65 + ( - 72 ) * - - 54 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + ( - 73 ) * - 65 + ( - 72 ) * - - 54 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT + CASE 36 WHEN - 88 + - 40 * 3 THEN - - 56 WHEN 91 THEN + AVG ( + 21 ) ELSE NULL END + 53, - COALESCE ( + - 37, - - SUM( ALL - 73 ) ) * - COUNT( * ) AS col2
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-1053
SELECT + CASE 36 WHEN - 88 + - 40 * 3 THEN - - 56 WHEN 91 THEN + AVG ( + 21 ) ELSE NULL END + 53, - COALESCE ( + - 37, - - SUM ( ALL - 73 ) ) * - COUNT ( * ) AS col2
----
NULL
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1054
SELECT ALL + 54 * - - ( COUNT( * ) ) AS col1, + 29
----
54
29

skipif mysql # not compatible
query II rowsort label-1054
SELECT ALL + 54 * - - ( COUNT ( * ) ) AS col1, + 29
----
54
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1055
SELECT CAST( - MIN( + 36 ) AS SIGNED ) * - + 1 + + + CAST( + COUNT( * ) AS SIGNED ) DIV - 66 + - COUNT( * ) + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-1055
SELECT CAST ( - MIN ( + 36 ) AS INTEGER ) * - + 1 + + + CAST ( + COUNT ( * ) AS INTEGER ) / - 66 + - COUNT ( * ) + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT ALL COUNT( DISTINCT 86 ) * - 24 - + + 28
----
-52

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL COUNT ( DISTINCT 86 ) * - 24 - + + 28
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-1057
SELECT - + COALESCE ( - ( 19 ), MIN( + 49 ) ) AS col0, - 36 AS col2
----
19
-36

skipif mysql # not compatible
query II rowsort label-1057
SELECT - + COALESCE ( - ( 19 ), MIN ( + 49 ) ) AS col0, - 36 AS col2
----
19
-36

query I rowsort
SELECT + - 4 + - - 43
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1059
SELECT - - 98 * + + NULLIF ( + AVG ( ALL ( - COALESCE ( - 11, + 92, - + 44 * + ( + 58 ) + 41, + - 91 ) ) ), 11 ), CAST( NULL AS SIGNED ) / - + COUNT( * )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1059
SELECT - - 98 * + + NULLIF ( + AVG ( ALL ( - COALESCE ( - 11, + 92, - + 44 * + ( + 58 ) + 41, + - 91 ) ) ), 11 ), CAST ( NULL AS INTEGER ) / - + COUNT ( * )
----
NULL
NULL

query I rowsort
SELECT ALL + 93 * - + ( + - 57 ) + - 33
----
5268

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

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

query I rowsort
SELECT ALL - 49 * - 16 AS col1
----
784

query I rowsort
SELECT 82 * + 38 AS col0
----
3116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1064
SELECT ALL 18 * + 21 col1, CAST( - - 83 AS SIGNED ) * + 21 + - - COUNT( * ) AS col1
----
378
1744

skipif mysql # not compatible
query II rowsort label-1064
SELECT ALL 18 * + 21 col1, CAST ( - - 83 AS INTEGER ) * + 21 + - - COUNT ( * ) AS col1
----
378
1744

query II rowsort
SELECT DISTINCT 12, 72 + - - 83 col0
----
12
155

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT ALL - 17 DIV + + 21 * + - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL - 17 / + + 21 * + - 86 AS col0
----
0

query I rowsort
SELECT 98 * - 18 * - 75 AS col2
----
132300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT 69 + + CAST( - 7 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-1068
SELECT 69 + + CAST ( - 7 AS INTEGER ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1069
SELECT 72 * + - CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) * + - 91
----
6552

skipif mysql # not compatible
query I rowsort label-1069
SELECT 72 * + - CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) * + - 91
----
6552

query I rowsort
SELECT 8 * - + 64
----
-512

query II rowsort
SELECT 9, 0 AS col1
----
9
0

query I rowsort
SELECT 88 + + 48 * 7 AS col1
----
424

onlyif mysql # aggregate syntax: 
query II rowsort label-1073
SELECT - 29, + NULLIF ( - MAX( DISTINCT + 29 ), 53 )
----
-29
-29

skipif mysql # not compatible
query II rowsort label-1073
SELECT - 29, + NULLIF ( - MAX ( DISTINCT + 29 ), 53 )
----
-29
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1074
SELECT - MAX( + - 30 ) * - 19 + - - 37 DIV - 80 AS col2
----
-570

skipif mysql # not compatible
query I rowsort label-1074
SELECT - MAX ( + - 30 ) * - 19 + - - 37 / - 80 AS col2
----
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + 16 * - - COUNT( * ) + 2 * + 19 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-1075
SELECT + 16 * - - COUNT ( * ) + 2 * + 19 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1076
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1, 97 - - + AVG ( - + 50 ) + - + CAST( NULL AS SIGNED ) + - - 36 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1076
SELECT ALL + COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1, 97 - - + AVG ( - + 50 ) + - + CAST ( NULL AS INTEGER ) + - - 36 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT - 53 * - - 5 + COUNT( * ) AS col2
----
-264

skipif mysql # not compatible
query I rowsort label-1077
SELECT - 53 * - - 5 + COUNT ( * ) AS col2
----
-264

query II rowsort
SELECT DISTINCT - 84 col1, + NULLIF ( + - 40, 30 * - 64 + + 48 ) * 37 + - - 64 col0
----
-84
-1416

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1080
SELECT COUNT( * ) * - 80 + + NULLIF ( CAST( + 88 AS SIGNED ), + + COUNT( DISTINCT + 66 ) ) + CASE - - 74 WHEN - 31 THEN + COUNT( * ) + + COUNT( * ) END * - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1080
SELECT COUNT ( * ) * - 80 + + NULLIF ( CAST ( + 88 AS INTEGER ), + + COUNT ( DISTINCT + 66 ) ) + CASE - - 74 WHEN - 31 THEN + COUNT ( * ) + + COUNT ( * ) END * - + 12
----
NULL

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

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

query I rowsort
SELECT - 87 + - 42 AS col1
----
-129

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT 4 * - + 28 + ( 7 ) + - + 20 DIV 42 * 32 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-1083
SELECT 4 * - + 28 + ( 7 ) + - + 20 / 42 * 32 AS col0
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-1084
SELECT + + 32 DIV 10 + - 5 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1084
SELECT + + 32 / 10 + - 5 AS col1
----
-2

query I rowsort
SELECT ALL 54 + - 78 AS col2
----
-24

query I rowsort
SELECT 29 * + 28
----
812

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1088
SELECT ALL - 5 DIV + 42 * + 43 * + 1 * + - NULLIF ( + + SUM( 82 ), - 2 * 1 DIV - + 6 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - 5 / + 42 * + 43 * + 1 * + - NULLIF ( + + SUM ( 82 ), - 2 * 1 / - + 6 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1089
SELECT 52 * + - MAX( + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * - 26 * - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1089
SELECT 52 * + - MAX ( + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * - 26 * - 36 AS col0
----
NULL

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

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

query I rowsort
SELECT + 3 * 57
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT + 77 * + SUM( DISTINCT + 97 ) + + + MIN( DISTINCT - 96 ) + 97 + - 85 * 14 * - + 51 AS col0
----
68160

skipif mysql # not compatible
query I rowsort label-1092
SELECT + 77 * + SUM ( DISTINCT + 97 ) + + + MIN ( DISTINCT - 96 ) + 97 + - 85 * 14 * - + 51 AS col0
----
68160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1093
SELECT 1 AS col1, - CASE - + 27 WHEN - 82 / - ( + CAST( NULL AS SIGNED ) ) THEN NULL WHEN + CASE 99 WHEN - - 75 THEN + 99 ELSE NULL END THEN - 28 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1093
SELECT 1 AS col1, - CASE - + 27 WHEN - 82 / - ( + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + CASE 99 WHEN - - 75 THEN + 99 ELSE NULL END THEN - 28 END
----
1
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1094
SELECT - + 44 AS col0, SUM( DISTINCT + 22 )
----
-44
22

skipif mysql # not compatible
query II rowsort label-1094
SELECT - + 44 AS col0, SUM ( DISTINCT + 22 )
----
-44
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL - 64 * - + MAX( 27 ) col1
----
1728

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - 64 * - + MAX ( 27 ) col1
----
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1096
SELECT + - 2 * + - 65 + - 79 - - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1096
SELECT + - 2 * + - 65 + - 79 - - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT 77 * - 85 * 86 AS col0
----
-562870

onlyif mysql # aggregate syntax: 
query II rowsort label-1098
SELECT - 65 AS col1, - SUM( 32 )
----
-65
-32

skipif mysql # not compatible
query II rowsort label-1098
SELECT - 65 AS col1, - SUM ( 32 )
----
-65
-32

query II rowsort
SELECT - 49 col1, + 54 + + CASE - - 52 WHEN + + 61 THEN + 81 END
----
-49
NULL

query I rowsort
SELECT 89 + + 23 AS col1
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1101
SELECT 8 * + NULLIF ( + - NULLIF ( - 51, 25 ), + 54 + COUNT( * ) ), CAST( NULL AS SIGNED ) + + - 43 AS col0
----
408
NULL

skipif mysql # not compatible
query II rowsort label-1101
SELECT 8 * + NULLIF ( + - NULLIF ( - 51, 25 ), + 54 + COUNT ( * ) ), CAST ( NULL AS INTEGER ) + + - 43 AS col0
----
408
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT DISTINCT - 31 + + MIN( 65 ) + - - 55 / - CASE - 74 WHEN - - MAX( + 39 ) * - 33 + + + COALESCE ( CAST( 46 AS SIGNED ), - + 65 ) - 74 / - 67 THEN + 42 ELSE NULL END * + 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1102
SELECT DISTINCT - 31 + + MIN ( 65 ) + - - 55 / - CASE - 74 WHEN - - MAX ( + 39 ) * - 33 + + + COALESCE ( CAST ( 46 AS INTEGER ), - + 65 ) - 74 / - 67 THEN + 42 ELSE NULL END * + 5 AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1103
SELECT 98 / + COUNT ( * ) AS col2
----
98

query II rowsort
SELECT DISTINCT 69 * 68 AS col0, COALESCE ( 89, - ( - 16 ), - NULLIF ( + + 64, 78 * 7 + + 64 ) ) AS col1
----
4692
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT 33 * + CASE WHEN NULL IS NOT NULL THEN 84 WHEN NOT NULL IS NOT NULL AND NOT ( NULL ) > - 46 * CASE + + 57 WHEN 96 / COUNT( * ) THEN 0 WHEN - - 3 THEN + ( - 63 ) * + SUM( 87 ) * - ( - - COUNT( - 96 ) ) + COUNT( * ) * CASE - 35 WHEN - 41 * + - COALESCE ( - COUNT( * ), - 95 / - 12 + 59 ) / ( ( COUNT( * ) ) ) * - AVG ( ALL 78 ) + + 61 + - ( 25 ) + + - MIN( DISTINCT - 67 ) + 21 + - + 62 * + 32 - 14 THEN NULL WHEN 25 + CASE 62 + AVG ( DISTINCT 48 ) WHEN + 62 THEN ( + 10 ) END THEN NULL ELSE - 44 END ELSE NULL END * + 78 + - COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1105
SELECT 33 * + CASE WHEN NULL IS NOT NULL THEN 84 WHEN NOT NULL IS NOT NULL AND NOT ( NULL ) > - 46 * CASE + + 57 WHEN 96 / COUNT ( * ) THEN 0 WHEN - - 3 THEN + ( - 63 ) * + SUM ( 87 ) * - ( - - COUNT ( - 96 ) ) + COUNT ( * ) * CASE - 35 WHEN - 41 * + - COALESCE ( - COUNT ( * ), - 95 / - 12 + 59 ) / ( ( COUNT ( * ) ) ) * - AVG ( ALL 78 ) + + 61 + - ( 25 ) + + - MIN ( DISTINCT - 67 ) + 21 + - + 62 * + 32 - 14 THEN NULL WHEN 25 + CASE 62 + AVG ( DISTINCT 48 ) WHEN + 62 THEN ( + 10 ) END THEN NULL ELSE - 44 END ELSE NULL END * + 78 + - COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1107
SELECT COALESCE ( 93, + - 14 ) DIV + + MAX( 1 )
----
93

skipif mysql # not compatible
query I rowsort label-1107
SELECT COALESCE ( 93, + - 14 ) / + + MAX ( 1 )
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1108
SELECT DISTINCT - 57 * 74 + + 10 + + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0
----
-4208

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - 57 * 74 + + 10 + + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0
----
-4208

query II rowsort
SELECT + 21 * + + 9 AS col0, 58 AS col2
----
189
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1110
SELECT + CAST( 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-1110
SELECT + CAST ( 63 AS INTEGER ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - + MIN( - + 75 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - + MIN ( - + 75 ) col1
----
75

query I rowsort
SELECT - 87 + - 16
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1113
SELECT MIN( - - 75 ) * - COUNT( * ) + - - 33 * + - 55 * 15 * 93 AS col1
----
-2532000

skipif mysql # not compatible
query I rowsort label-1113
SELECT MIN ( - - 75 ) * - COUNT ( * ) + - - 33 * + - 55 * 15 * 93 AS col1
----
-2532000

query I rowsort
SELECT ALL - - 69 * + 25 * + 34
----
58650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1115
SELECT - 10 * CAST( NULL AS DECIMAL ) * COUNT( * ) + ( - + CAST( NULL AS SIGNED ) ) * - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1115
SELECT - 10 * CAST ( NULL AS REAL ) * COUNT ( * ) + ( - + CAST ( NULL AS INTEGER ) ) * - 34
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT - 28 + - + COALESCE ( COUNT( * ), - 45 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-1117
SELECT - 28 + - + COALESCE ( COUNT ( * ), - 45 ) AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT ALL MIN( + ( + + 37 ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-1118
SELECT ALL MIN ( + ( + + 37 ) ) AS col2
----
37

query I rowsort
SELECT + - 21 + - 7 AS col1
----
-28

query I rowsort
SELECT + 60 * 24 + + + 42 * + - 90
----
-2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1121
SELECT DISTINCT + - COUNT( + NULLIF ( - 17, - - CAST( NULL AS SIGNED ) ) ) DIV - MIN( DISTINCT - + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + - COUNT ( + NULLIF ( - 17, - - CAST ( NULL AS INTEGER ) ) ) / - MIN ( DISTINCT - + 40 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT - COUNT( + - 34 ) + - - 80 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-1122
SELECT - COUNT ( + - 34 ) + - - 80 * COUNT ( * )
----
79

query I rowsort
SELECT - 53 + + + 92 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1124
SELECT + 70 * 30 * - 85 AS col2, COUNT( * )
----
-178500
1

skipif mysql # not compatible
query II rowsort label-1124
SELECT + 70 * 30 * - 85 AS col2, COUNT ( * )
----
-178500
1

query I rowsort
SELECT + 76 * + + 60
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1126
SELECT DISTINCT 82 + + + CAST( NULL AS SIGNED ) - - 55 * + + 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT 82 + + + CAST ( NULL AS INTEGER ) - - 55 * + + 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL 17 + MAX( + + 62 ) + 58
----
137

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL 17 + MAX ( + + 62 ) + 58
----
137

query I rowsort
SELECT ALL 29 * + 35
----
1015

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT COUNT( ALL - - 28 ) + + NULLIF ( - + 31, + + 65 / - ( + 21 ) ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT COUNT ( ALL - - 28 ) + + NULLIF ( - + 31, + + 65 / - ( + 21 ) ) AS col2
----
-30

query I rowsort
SELECT + 99 + - + 9 + 65
----
155

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1132
SELECT DISTINCT - ( + - COUNT( * ) ) + COUNT( * ) - - 6 + + + 13 + - 42 * - 5 AS col1
----
231

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - ( + - COUNT ( * ) ) + COUNT ( * ) - - 6 + + + 13 + - 42 * - 5 AS col1
----
231

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

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

query I rowsort
SELECT + 4 + 78 * + 5 AS col2
----
394

onlyif mysql # aggregate syntax: 
query II rowsort label-1135
SELECT DISTINCT 40 AS col2, 36 * - 69 - + - 36 - + - 27 * + 8 - - + COUNT( * ) + + CASE - + 20 WHEN + 78 + 66 THEN + 21 ELSE NULL END / + - 26 AS col2
----
40
NULL

skipif mysql # not compatible
query II rowsort label-1135
SELECT DISTINCT 40 AS col2, 36 * - 69 - + - 36 - + - 27 * + 8 - - + COUNT ( * ) + + CASE - + 20 WHEN + 78 + 66 THEN + 21 ELSE NULL END / + - 26 AS col2
----
40
NULL

query I rowsort
SELECT + 80 + + 6 AS col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1137
SELECT - CASE WHEN + 15 >= + + CASE + 46 WHEN - 85 THEN + COUNT( * ) * - 84 / - COUNT( * ) + + - ( + 55 ) + + + COUNT( * ) ELSE + CAST( NULL AS SIGNED ) END THEN + 55 WHEN NOT NULL IS NULL THEN NULL ELSE NULL END - + 50, - COUNT( * ) AS col1
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-1137
SELECT - CASE WHEN + 15 >= + + CASE + 46 WHEN - 85 THEN + COUNT ( * ) * - 84 / - COUNT ( * ) + + - ( + 55 ) + + + COUNT ( * ) ELSE + CAST ( NULL AS INTEGER ) END THEN + 55 WHEN NOT NULL IS NULL THEN NULL ELSE NULL END - + 50, - COUNT ( * ) AS col1
----
NULL
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1138
SELECT + 57 + + + 48 * + - COUNT( * ) * - ( - - CAST( - ( 66 ) AS SIGNED ) ) * + - 77
----
243993

skipif mysql # not compatible
query I rowsort label-1138
SELECT + 57 + + + 48 * + - COUNT ( * ) * - ( - - CAST ( - ( 66 ) AS INTEGER ) ) * + - 77
----
243993

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT - 62 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-1139
SELECT - 62 / - 87
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1140
SELECT + NULLIF ( - - 30, 45 ) AS col0, - 44 DIV - 27 AS col1
----
30
1

skipif mysql # not compatible
query II rowsort label-1140
SELECT + NULLIF ( - - 30, 45 ) AS col0, - 44 / - 27 AS col1
----
30
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + 25 * - 33 + + NULLIF ( + 49, - - 23 * - COUNT( * ) * - 70 ) - 71 + 52
----
-795

skipif mysql # not compatible
query I rowsort label-1141
SELECT + 25 * - 33 + + NULLIF ( + 49, - - 23 * - COUNT ( * ) * - 70 ) - 71 + 52
----
-795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT + + CAST( NULL AS SIGNED ) * - - 99 + + COALESCE ( 64, - COUNT( * ) + + - 20, + 31, - 11 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1142
SELECT + + CAST ( NULL AS INTEGER ) * - - 99 + + COALESCE ( 64, - COUNT ( * ) + + - 20, + 31, - 11 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1143
SELECT ALL + 38 * - 5 - + 46 + + - SUM( + + 68 ) + - + COUNT( * ) AS col1, 0 col1
----
-305
0

skipif mysql # not compatible
query II rowsort label-1143
SELECT ALL + 38 * - 5 - + 46 + + - SUM ( + + 68 ) + - + COUNT ( * ) AS col1, 0 col1
----
-305
0

query I rowsort
SELECT DISTINCT + - 93 col2
----
-93

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

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

query I rowsort
SELECT + 62 * + 81 + + NULLIF ( - - 0, - 80 )
----
5022

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

skipif mysql # not compatible
query I rowsort label-1147
SELECT - - 61 / + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1148
SELECT SUM ( + 22 )
----
22

query I rowsort
SELECT - ( - - 58 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1150
SELECT - - 11 + + 97 * + 81 AS col2, - CAST( NULL AS SIGNED ) AS col1
----
7868
NULL

skipif mysql # not compatible
query II rowsort label-1150
SELECT - - 11 + + 97 * + 81 AS col2, - CAST ( NULL AS INTEGER ) AS col1
----
7868
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1151
SELECT ALL + CASE - - 1 WHEN - 42 / COUNT( * ) * - - COUNT( * ) - - COALESCE ( + 16, CAST( + ( + + 29 ) AS DECIMAL ) + + + COUNT( * ) * - - 10 ) THEN NULL ELSE 26 - + SUM( 68 ) END col2
----
-42

skipif mysql # not compatible
query I rowsort label-1151
SELECT ALL + CASE - - 1 WHEN - 42 / COUNT ( * ) * - - COUNT ( * ) - - COALESCE ( + 16, CAST ( + ( + + 29 ) AS REAL ) + + + COUNT ( * ) * - - 10 ) THEN NULL ELSE 26 - + SUM ( 68 ) END col2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-1152
SELECT DISTINCT + 58 AS col0, + COUNT( * ) AS col0
----
58
1

skipif mysql # not compatible
query II rowsort label-1152
SELECT DISTINCT + 58 AS col0, + COUNT ( * ) AS col0
----
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT - COUNT( * ) * - 49 + - 55
----
-6

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT - COUNT ( * ) * - 49 + - 55
----
-6

query I rowsort
SELECT ALL - 70 * - - 3 + - - ( + 69 )
----
-141

query I rowsort
SELECT DISTINCT + 13 + 51
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1156
SELECT + 75 DIV MIN( - + 87 ) * - 45 AS col2, 91 + - 95 AS col2
----
0
-4

skipif mysql # not compatible
query II rowsort label-1156
SELECT + 75 / MIN ( - + 87 ) * - 45 AS col2, 91 + - 95 AS col2
----
0
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT ( - + COUNT( * ) ) + + 62 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT ( - + COUNT ( * ) ) + + 62 AS col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1158
SELECT DISTINCT CAST( + 35 AS SIGNED ) col0
----
35

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT CAST ( + 35 AS INTEGER ) col0
----
35

query I rowsort
SELECT ALL - 23 * ( + 3 )
----
-69

query I rowsort
SELECT + 51 * - - 57
----
2907

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT + CASE + COUNT( * ) WHEN + 24 + ( SUM( 79 ) ) - NULLIF ( - - 65, + 2 ) + 72 THEN - - 75 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1161
SELECT + CASE + COUNT ( * ) WHEN + 24 + ( SUM ( 79 ) ) - NULLIF ( - - 65, + 2 ) + 72 THEN - - 75 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT + SUM( - 1 ) * + 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-1162
SELECT + SUM ( - 1 ) * + 65 AS col2
----
-65

onlyif mysql # DIV for integer division: 
query II rowsort label-1163
SELECT ALL 66 DIV - 66 AS col0, 51
----
-1
51

skipif mysql # not compatible
query II rowsort label-1163
SELECT ALL 66 / - 66 AS col0, 51
----
-1
51

query I rowsort
SELECT ALL - 85 + ( - 50 )
----
-135

query I rowsort
SELECT + COALESCE ( + - 83, - - 36 ) AS col2
----
-83

query II rowsort
SELECT DISTINCT - 83 + - 10 AS col1, 97 AS col1
----
-93
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT COUNT( - 62 ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-1167
SELECT COUNT ( - 62 ) + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1168
SELECT COUNT( * ) DIV + - 20 + - 9 DIV - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-1168
SELECT COUNT ( * ) / + - 20 + - 9 / - COUNT ( * )
----
9

query I rowsort
SELECT ALL + + 59 + 26 + 27
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT ALL + 26 + + ( COUNT( DISTINCT 97 ) ) AS col0
----
27

skipif mysql # not compatible
query I rowsort label-1171
SELECT ALL + 26 + + ( COUNT ( DISTINCT 97 ) ) AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-1172
SELECT + 57 AS col0, 87 / - 94 * - CASE + - 69 WHEN - 75 THEN + + 21 * + - ( - 21 ) - 92 * + 5 / - - 63 - AVG ( 52 ) END + - 93 + - 69 - COUNT( * ) AS col0
----
57
NULL

skipif mysql # not compatible
query II rowsort label-1172
SELECT + 57 AS col0, 87 / - 94 * - CASE + - 69 WHEN - 75 THEN + + 21 * + - ( - 21 ) - 92 * + 5 / - - 63 - AVG ( 52 ) END + - 93 + - 69 - COUNT ( * ) AS col0
----
57
NULL

query I rowsort
SELECT 1 + + - 50 AS col2
----
-49

query I rowsort
SELECT ALL 12 + - 16 + 52 - + - ( + 24 ) * - 18 * - 85 AS col1
----
36768

query I rowsort
SELECT DISTINCT 70 + - 2 * - + 69 col1
----
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1176
SELECT ALL + CAST( - - 8 AS SIGNED ) + + 22 col0
----
30

skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL + CAST ( - - 8 AS INTEGER ) + + 22 col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1177
SELECT 17 + - 26 * SUM( ALL 35 ) DIV - 74 + ( + MIN( ALL - 59 ) ) + - + 93 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-1177
SELECT 17 + - 26 * SUM ( ALL 35 ) / - 74 + ( + MIN ( ALL - 59 ) ) + - + 93 AS col0
----
-123

query I rowsort
SELECT 26 + + 51 AS col1
----
77

query I rowsort
SELECT DISTINCT + 9 * 0 AS col2
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1181
SELECT 7 * + SUM( ALL CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1181
SELECT 7 * + SUM ( ALL CAST ( NULL AS REAL ) )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1182
SELECT COUNT ( * ) * - + 11 / - + 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT 32 * + COALESCE ( 55, SUM( - 8 ) * + + 5 * + + 86 ) AS col2
----
1760

skipif mysql # not compatible
query I rowsort label-1183
SELECT 32 * + COALESCE ( 55, SUM ( - 8 ) * + + 5 * + + 86 ) AS col2
----
1760

query I rowsort
SELECT DISTINCT 80 * 44
----
3520

query I rowsort
SELECT 58 * + 18 * + 65
----
67860

query I rowsort
SELECT DISTINCT + 99 * + - 39
----
-3861

query I rowsort
SELECT - 40 + + - 14 AS col1
----
-54

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

skipif mysql # not compatible
query I rowsort label-1188
SELECT COUNT ( * ) / 49 col1
----
0

query II rowsort
SELECT - ( 20 ) + - 50 AS col2, 54
----
-70
54

query I rowsort
SELECT - 23 - + - 77 AS col0
----
54

query I rowsort
SELECT 21 + - + 62 * + - 11 * + 94
----
64129

onlyif mysql # DIV for integer division: 
query II rowsort label-1192
SELECT - 50 AS col2, + ( - - 87 ) DIV + 92 + - + 6
----
-50
-6

skipif mysql # not compatible
query II rowsort label-1192
SELECT - 50 AS col2, + ( - - 87 ) / + 92 + - + 6
----
-50
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT ALL - 94 + + NULLIF ( 50, 38 - + 74 * + ( - - 6 ) ) DIV - 62 - - 33 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - 94 + + NULLIF ( 50, 38 - + 74 * + ( - - 6 ) ) / - 62 - - 33 AS col1
----
-61

query I rowsort
SELECT DISTINCT + 36 * - 66 AS col0
----
-2376

query I rowsort
SELECT ALL + + 82 * - 92 col0
----
-7544

query I rowsort
SELECT 90 + 98 AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT + - SUM( ALL - 86 ) col2
----
86

skipif mysql # not compatible
query I rowsort label-1197
SELECT + - SUM ( ALL - 86 ) col2
----
86

query I rowsort
SELECT - 16 * + 35 * + 62 + 47 AS col1
----
-34673

query I rowsort
SELECT ALL + 54 + 57 AS col1
----
111

query I rowsort
SELECT - 70 * 69
----
-4830

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT 59 + 93 * 97 * COUNT( * )
----
9080

skipif mysql # not compatible
query I rowsort label-1201
SELECT 59 + 93 * 97 * COUNT ( * )
----
9080

query I rowsort
SELECT DISTINCT 59 * + - 46
----
-2714

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

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - CAST ( 83 AS INTEGER ) + + 92
----
9

query I rowsort
SELECT 17 * 27
----
459

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT ( - 64 ) * ( + MIN( + 76 ) ) AS col0
----
-4864

skipif mysql # not compatible
query I rowsort label-1206
SELECT ( - 64 ) * ( + MIN ( + 76 ) ) AS col0
----
-4864

query I rowsort
SELECT ALL 58 - + 26 * - 45
----
1228

query I rowsort
SELECT 42 * + 17 * 24 col1
----
17136

query I rowsort
SELECT 23 * 51 + 87 AS col2
----
1260

query I rowsort
SELECT DISTINCT 93 - 37
----
56

query II rowsort
SELECT DISTINCT 83, - 6 * 20 AS col0
----
83
-120

query I rowsort
SELECT DISTINCT 57 - - 22
----
79

query I rowsort
SELECT 48 + + 23 AS col1
----
71

query II rowsort
SELECT ALL 42 AS col2, 88
----
42
88

query I rowsort
SELECT 58 + 69
----
127

query II rowsort
SELECT 17 AS col0, - 48 + - - 5 AS col0
----
17
-43

query I rowsort
SELECT 67 * + - 73 col2
----
-4891

query I rowsort
SELECT ALL - 60 * 40
----
-2400

query II rowsort
SELECT 92, 80 - + 81 AS col2
----
92
-1

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

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

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

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

query I rowsort
SELECT 87 + 24 + 3
----
114

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

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

query I rowsort
SELECT + 21 + + - 5 * + 33 AS col1
----
-144

query I rowsort
SELECT DISTINCT - - 10 + + 8 + + 7 AS col2
----
25

query I rowsort
SELECT DISTINCT 27 * 7 AS col1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT DISTINCT - + 18 + - - COUNT( * ) + - 13
----
-30

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT - + 18 + - - COUNT ( * ) + - 13
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT - 40 - + + COUNT( DISTINCT + 6 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-1228
SELECT - 40 - + + COUNT ( DISTINCT + 6 ) AS col0
----
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-1229
SELECT + + 61, 53 DIV + + 87 AS col1
----
61
0

skipif mysql # not compatible
query II rowsort label-1229
SELECT + + 61, 53 / + + 87 AS col1
----
61
0

query I rowsort
SELECT ALL ( - 21 ) * 72 - + - 84 + 41 AS col1
----
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + 24 * + - SUM( + + 15 )
----
-360

skipif mysql # not compatible
query I rowsort label-1231
SELECT + 24 * + - SUM ( + + 15 )
----
-360

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1233
SELECT - 68 * 2 + - + 46 + + - 61 + 74 DIV - - 34 + - - 79 * - 13 DIV COUNT( * ) col0
----
-1268

skipif mysql # not compatible
query I rowsort label-1233
SELECT - 68 * 2 + - + 46 + + - 61 + 74 / - - 34 + - - 79 * - 13 / COUNT ( * ) col0
----
-1268

onlyif mysql # aggregate syntax: 
query II rowsort label-1234
SELECT ALL + 91 * + - COUNT( * ) col0, + 73
----
-91
73

skipif mysql # not compatible
query II rowsort label-1234
SELECT ALL + 91 * + - COUNT ( * ) col0, + 73
----
-91
73

query II rowsort
SELECT - 52 AS col2, - CASE 61 WHEN - + ( 70 ) * + 65 THEN NULLIF ( + 57, + - 63 ) END
----
-52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT + + 22 DIV - + 28
----
0

skipif mysql # not compatible
query I rowsort label-1236
SELECT + + 22 / - + 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT DISTINCT COUNT( * ) * + NULLIF ( 62, 4 ) * COALESCE ( - + 16, 98 ) + - - 21 AS col0
----
-971

skipif mysql # not compatible
query I rowsort label-1237
SELECT DISTINCT COUNT ( * ) * + NULLIF ( 62, 4 ) * COALESCE ( - + 16, 98 ) + - - 21 AS col0
----
-971

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - - 36 - + + 78 + + - ( 41 ) + - 92 + - 86 * - - MIN( + 19 ) AS col2
----
-1809

skipif mysql # not compatible
query I rowsort label-1238
SELECT - - 36 - + + 78 + + - ( 41 ) + - 92 + - 86 * - - MIN ( + 19 ) AS col2
----
-1809

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT ALL - 31 * - + 71 * + + MIN( - 71 )
----
-156271

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL - 31 * - + 71 * + + MIN ( - 71 )
----
-156271

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT ALL + COALESCE ( - SUM( DISTINCT + 76 ), - 43 - + MAX( 37 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL + COALESCE ( - SUM ( DISTINCT + 76 ), - 43 - + MAX ( 37 ) )
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1241
SELECT - 92 * - 40 * - 31 * - ( + - COUNT( * ) ) - 17 + + 13, + 63 DIV + 77 col0
----
-114084
0

skipif mysql # not compatible
query II rowsort label-1241
SELECT - 92 * - 40 * - 31 * - ( + - COUNT ( * ) ) - 17 + + 13, + 63 / + 77 col0
----
-114084
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT DISTINCT + CASE - - 3 WHEN - + 32 THEN - - 66 * - + COUNT( ALL - + 74 ) + + COUNT( * ) + 7 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + CASE - - 3 WHEN - + 32 THEN - - 66 * - + COUNT ( ALL - + 74 ) + + COUNT ( * ) + 7 END AS col1
----
NULL

query I rowsort
SELECT - 88 * - 63 * - - 86 AS col2
----
476784

query I rowsort
SELECT + 94 * + 64 * ( + 15 ) AS col1
----
90240

query II rowsort
SELECT CASE - 60 WHEN 80 THEN + + 9 WHEN + 52 + 95 THEN - COALESCE ( + 18, + 6 * 63 ) ELSE NULL END col0, - 14 col1
----
NULL
-14

query I rowsort
SELECT - 64 + 24 - + 59 + - 44 AS col2
----
-143

query I rowsort
SELECT 36 * 31 + ( + ( 99 ) ) * - 3 AS col1
----
819

query I rowsort
SELECT + 46 - + + ( - 63 ) AS col0
----
109

query I rowsort
SELECT ALL 52 * + - ( + ( - 71 ) )
----
3692

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1251
SELECT + MAX( 2 ) AS col2, + 30
----
2
30

skipif mysql # not compatible
query II rowsort label-1251
SELECT + MAX ( 2 ) AS col2, + 30
----
2
30

query I rowsort
SELECT ALL 4 * - 74 col1
----
-296

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

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

query I rowsort
SELECT ALL 16 * + + 54 col1
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL MAX( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL MAX ( DISTINCT 55 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1256
SELECT COUNT( ALL + CAST( 2 AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-1256
SELECT COUNT ( ALL + CAST ( 2 AS INTEGER ) )
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT + SUM( - + 69 ) DIV 25 DIV - + 82 + + 16 * - 15
----
-240

skipif mysql # not compatible
query I rowsort label-1258
SELECT + SUM ( - + 69 ) / 25 / - + 82 + + 16 * - 15
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-1259
SELECT ALL - 39 DIV 7 * - ( - + 23 ) + - 63 AS col2
----
-178

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - 39 / 7 * - ( - + 23 ) + - 63 AS col2
----
-178

onlyif mysql # DIV for integer division: 
query II rowsort label-1260
SELECT + + 33 DIV - 46 AS col1, - 1
----
0
-1

skipif mysql # not compatible
query II rowsort label-1260
SELECT + + 33 / - 46 AS col1, - 1
----
0
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1261
SELECT - + 28 DIV + MIN( ALL - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-1261
SELECT - + 28 / + MIN ( ALL - 65 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1262
SELECT + 58 - + 25 + + 47 * - - ( MIN( 67 ) ) * CAST( 44 AS SIGNED ) * + + 56 - 50 + + 57 AS col1
----
7759176

skipif mysql # not compatible
query I rowsort label-1262
SELECT + 58 - + 25 + + 47 * - - ( MIN ( 67 ) ) * CAST ( 44 AS INTEGER ) * + + 56 - 50 + + 57 AS col1
----
7759176

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT + MIN( DISTINCT + ( + 2 ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-1263
SELECT + MIN ( DISTINCT + ( + 2 ) ) AS col1
----
2

query I rowsort
SELECT DISTINCT + 20 + + - 59 AS col1
----
-39

query II rowsort
SELECT + ( - 5 ), + 63 AS col2
----
-5
63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - 85 * - + CASE - + 12 WHEN 77 THEN - - 98 END + - - COUNT( * ) + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1267
SELECT - 85 * - + CASE - + 12 WHEN 77 THEN - - 98 END + - - COUNT ( * ) + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT ALL COUNT( 50 ) + - 9
----
-8

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL COUNT ( 50 ) + - 9
----
-8

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

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

query I rowsort
SELECT + - 6 + - - 4 AS col1
----
-2

query I rowsort
SELECT - - 1 - - - ( 90 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT - - MIN( + 10 ) + - 8 + - 18 + - 62 * 75 * + COUNT( * )
----
-4666

skipif mysql # not compatible
query I rowsort label-1272
SELECT - - MIN ( + 10 ) + - 8 + - 18 + - 62 * 75 * + COUNT ( * )
----
-4666

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL - MAX( + 38 ) + - - 34 + 75
----
71

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL - MAX ( + 38 ) + - - 34 + 75
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1274
SELECT ALL - MIN( ALL 36 ) DIV 31 - - COUNT( * ) + ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL - MIN ( ALL 36 ) / 31 - - COUNT ( * ) + ( + + COUNT ( * ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1275
SELECT - ( - + 97 ) / 28 + - + CASE - - CAST( NULL AS SIGNED ) WHEN + - 84 THEN + 54 END + + 0 * + - 83 * - + ( - 40 ) * 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1275
SELECT - ( - + 97 ) / 28 + - + CASE - - CAST ( NULL AS INTEGER ) WHEN + - 84 THEN + 54 END + + 0 * + - 83 * - + ( - 40 ) * 87 AS col0
----
NULL

query I rowsort
SELECT ALL + - 58 AS col1
----
-58

query II rowsort
SELECT ALL + + 65 * + 96 AS col0, 94 AS col1
----
6240
94

query I rowsort
SELECT - 77 + - + 92 AS col2
----
-169

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT ALL + CASE + 66 WHEN - 31 THEN CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( + 50 ) + 43 ELSE NULL END / - 78 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + CASE + 66 WHEN - 31 THEN CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( + 50 ) + 43 ELSE NULL END / - 78 AS col1
----
NULL

query I rowsort
SELECT - 94 * + 70
----
-6580

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT 41 * - COUNT( * ) + - 97
----
-138

skipif mysql # not compatible
query I rowsort label-1281
SELECT 41 * - COUNT ( * ) + - 97
----
-138

query II rowsort
SELECT + 8, 88 + - 47 * 99 AS col2
----
8
-4565

query I rowsort
SELECT - 70 * 98 * + 81 * - 67
----
37229220

query I rowsort
SELECT ( - - 71 ) AS col0
----
71

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

query I rowsort
SELECT - 93 * + + 24 AS col0
----
-2232

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

skipif mysql # not compatible
query I rowsort label-1287
SELECT + MIN ( + + 70 )
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT ALL + CASE - - CAST( NULL AS SIGNED ) WHEN + 11 THEN NULL WHEN 94 + ( CAST( NULL AS SIGNED ) ) THEN 18 * - - 19 + + NULLIF ( - 87, + 50 * CAST( NULL AS SIGNED ) ) WHEN + 69 * - 60 THEN - + 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + CASE - - CAST ( NULL AS INTEGER ) WHEN + 11 THEN NULL WHEN 94 + ( CAST ( NULL AS INTEGER ) ) THEN 18 * - - 19 + + NULLIF ( - 87, + 50 * CAST ( NULL AS INTEGER ) ) WHEN + 69 * - 60 THEN - + 97 END
----
NULL

query II rowsort
SELECT ALL + 22 AS col0, 89 + 74 AS col2
----
22
163

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT + 4 * + - MIN( 71 ) * - 97 AS col0
----
27548

skipif mysql # not compatible
query I rowsort label-1290
SELECT + 4 * + - MIN ( 71 ) * - 97 AS col0
----
27548

onlyif mysql # aggregate syntax: 
query I rowsort label-1291
SELECT DISTINCT - COUNT( * ) * + 13 + + - 26 + - + 73 * + 68
----
-5003

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - COUNT ( * ) * + 13 + + - 26 + - + 73 * + 68
----
-5003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1292
SELECT ALL + CAST( - 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + CAST ( - 63 AS INTEGER ) AS col2
----
-63

query II rowsort
SELECT + 85, + 84 col2
----
85
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT 6 * - - 48 * + COUNT( + + 16 ) - + - MIN( DISTINCT + + 83 ) * 64 AS col2
----
5600

skipif mysql # not compatible
query I rowsort label-1294
SELECT 6 * - - 48 * + COUNT ( + + 16 ) - + - MIN ( DISTINCT + + 83 ) * 64 AS col2
----
5600

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

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

query I rowsort
SELECT COALESCE ( - - 8, 57, ( - + 33 ) ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1297
SELECT - CAST( - MAX( DISTINCT + 76 ) AS SIGNED ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1297
SELECT - CAST ( - MAX ( DISTINCT + 76 ) AS INTEGER ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1298
SELECT DISTINCT 97 + COUNT( * ) + + 11 - 90 * - - 19 - - 99
----
-1502

skipif mysql # not compatible
query I rowsort label-1298
SELECT DISTINCT 97 + COUNT ( * ) + + 11 - 90 * - - 19 - - 99
----
-1502

query I rowsort
SELECT DISTINCT 56 + - 92
----
-36

query II rowsort
SELECT - 57 AS col2, 28
----
-57
28

query I rowsort
SELECT ALL + ( + 20 ) + - + NULLIF ( NULLIF ( 99, + 51 ), - 39 )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT - CAST( 8 AS SIGNED ) * COALESCE ( + - 11, + COUNT( * ), - 90 ) DIV 83
----
1

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT - CAST ( 8 AS INTEGER ) * COALESCE ( + - 11, + COUNT ( * ), - 90 ) / 83
----
1

query I rowsort
SELECT DISTINCT - 49 + - - 86 AS col2
----
37

query I rowsort
SELECT DISTINCT + 91 + ( 64 ) + - 80
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT ALL - 16 + + 44 + - 56 + - SUM( ALL - 25 ) * + COUNT( * ) * + 14 + 33 - + 59
----
296

skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL - 16 + + 44 + - 56 + - SUM ( ALL - 25 ) * + COUNT ( * ) * + 14 + 33 - + 59
----
296

query I rowsort
SELECT ALL 44 + - - 32 + + 70 + - ( + ( + 34 ) ) * 63 * - + ( 0 ) AS col0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ( + 33 ) * - COUNT( DISTINCT + NULLIF ( 66, + 24 * - + 25 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-1307
SELECT ( + 33 ) * - COUNT ( DISTINCT + NULLIF ( 66, + 24 * - + 25 ) )
----
-33

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

query I rowsort
SELECT - 6 + - 25 * + - 50 + + + 91
----
1335

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1311
SELECT ALL 89 - - NULLIF ( 29, - - 48 * 89 + + COALESCE ( - 22, - - NULLIF ( NULLIF ( 69, COUNT( * ) * - 87 + COUNT( * ) ), - 75 ), - CASE + 62 WHEN - - 65 THEN NULL WHEN - 20 + 59 THEN 78 ELSE + 72 DIV NULLIF ( - 54, + 1 ) + - + 72 * MIN( ALL - + 45 ) END + 73 + + 85 + + 22 + + 87 + - + COUNT( * ) DIV 49 DIV - + 54 * COUNT( ALL - 70 ) * - + 73, 20 ) ) * COUNT( * ) DIV - 24
----
88

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL 89 - - NULLIF ( 29, - - 48 * 89 + + COALESCE ( - 22, - - NULLIF ( NULLIF ( 69, COUNT ( * ) * - 87 + COUNT ( * ) ), - 75 ), - CASE + 62 WHEN - - 65 THEN NULL WHEN - 20 + 59 THEN 78 ELSE + 72 / NULLIF ( - 54, + 1 ) + - + 72 * MIN ( ALL - + 45 ) END + 73 + + 85 + + 22 + + 87 + - + COUNT ( * ) / 49 / - + 54 * COUNT ( ALL - 70 ) * - + 73, 20 ) ) * COUNT ( * ) / - 24
----
88

query I rowsort
SELECT 14 * - 82
----
-1148

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1313
SELECT - + 91 AS col1, + 12 DIV - + COALESCE ( + 77, - 44, + 68 * + ( CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) - - 99 ) AS col0
----
-91
0

skipif mysql # not compatible
query II rowsort label-1313
SELECT - + 91 AS col1, + 12 / - + COALESCE ( + 77, - 44, + 68 * + ( CAST ( NULL AS INTEGER ) ) * CAST ( NULL AS INTEGER ) - - 99 ) AS col0
----
-91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT MIN( ALL + + 10 ) * + + 16 - 75 * COALESCE ( 58, + CASE + - 10 WHEN + + 5 THEN NULL WHEN - 1 THEN NULL ELSE - 7 END + - ( MAX( - + 17 ) ) ) AS col0
----
-4190

skipif mysql # not compatible
query I rowsort label-1314
SELECT MIN ( ALL + + 10 ) * + + 16 - 75 * COALESCE ( 58, + CASE + - 10 WHEN + + 5 THEN NULL WHEN - 1 THEN NULL ELSE - 7 END + - ( MAX ( - + 17 ) ) ) AS col0
----
-4190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1315
SELECT - 84 * CASE - - 80 WHEN 86 * + ( - 58 ) THEN NULL WHEN - - 99 THEN + 94 + - NULLIF ( + - 24, COUNT( * ) ) + + COUNT( * ) * - 91 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + + COUNT( * ) END - - + 58 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1315
SELECT - 84 * CASE - - 80 WHEN 86 * + ( - 58 ) THEN NULL WHEN - - 99 THEN + 94 + - NULLIF ( + - 24, COUNT ( * ) ) + + COUNT ( * ) * - 91 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + COUNT ( * ) END - - + 58 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1316
SELECT 43 * - - COUNT( COALESCE ( + - 15, - 3 * + 10 ) )
----
43

skipif mysql # not compatible
query I rowsort label-1316
SELECT 43 * - - COUNT ( COALESCE ( + - 15, - 3 * + 10 ) )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT ( + 1 ) * 31 * - MIN( DISTINCT - 9 ) + + + 4 AS col2
----
283

skipif mysql # not compatible
query I rowsort label-1317
SELECT ( + 1 ) * 31 * - MIN ( DISTINCT - 9 ) + + + 4 AS col2
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT ALL - MAX( 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-1318
SELECT ALL - MAX ( 97 ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT ALL COALESCE ( 34, - 13 * - + 10 DIV 32 ) * + ( + - 55 ) + + + 22 + + 65 + + 82 AS col1
----
-1701

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL COALESCE ( 34, - 13 * - + 10 / 32 ) * + ( + - 55 ) + + + 22 + + 65 + + 82 AS col1
----
-1701

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1321
SELECT 58 / ( 64 ) * - 12 * + CASE + + 27 WHEN - COUNT( * ) + - 55 + + COUNT( * ) THEN + SUM( - 95 ) WHEN + CAST( NULL AS DECIMAL ) THEN + - MIN( ALL + 20 ) * - - 26 / COUNT( * ) + - - CAST( NULL AS SIGNED ) + 81 * + 33 END * - 83 + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-1321
SELECT 58 / ( 64 ) * - 12 * + CASE + + 27 WHEN - COUNT ( * ) + - 55 + + COUNT ( * ) THEN + SUM ( - 95 ) WHEN + CAST ( NULL AS REAL ) THEN + - MIN ( ALL + 20 ) * - - 26 / COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + 81 * + 33 END * - 83 + 67
----
NULL

query I rowsort
SELECT ALL - ( - + 51 ) + - 46 + + - 22 * + ( - 24 )
----
533

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

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

query II rowsort
SELECT 41 + 5 - + 37 * - ( - - 75 ) + - 26 * - 54 * - + 87 + 67, 66 AS col1
----
-119260
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1325
SELECT ALL + 1 * CAST( 94 AS SIGNED ) col0
----
94

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL + 1 * CAST ( 94 AS INTEGER ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT 11 * - - 92 + + MAX( DISTINCT + + 23 ) * 52
----
2208

skipif mysql # not compatible
query I rowsort label-1326
SELECT 11 * - - 92 + + MAX ( DISTINCT + + 23 ) * 52
----
2208

query I rowsort
SELECT 61 + + - COALESCE ( + 21, - 0 * + 60 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + 75 + - + COUNT( ALL + 24 ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + 75 + - + COUNT ( ALL + 24 ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1329
SELECT ALL + 2 * COUNT( * ), 87 * 0 + - CASE 1 WHEN + NULLIF ( - 30, - 44 * - - AVG ( DISTINCT + 16 ) + + + ( - + COUNT( * ) ) * - + ( - 16 ) ) * - 47 THEN NULL ELSE + 99 END AS col0
----
2
-99

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL + 2 * COUNT ( * ), 87 * 0 + - CASE 1 WHEN + NULLIF ( - 30, - 44 * - - AVG ( DISTINCT + 16 ) + + + ( - + COUNT ( * ) ) * - + ( - 16 ) ) * - 47 THEN NULL ELSE + 99 END AS col0
----
2
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT DISTINCT - + COUNT( + 74 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT - + COUNT ( + 74 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + 40 * - COUNT( * ) AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1331
SELECT + 40 * - COUNT ( * ) AS col2
----
-40

query I rowsort
SELECT DISTINCT + 20 + + 5 AS col1
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1333
SELECT ALL + - 73 + + 24 AS col0, MIN( - + ( - 10 ) ) AS col0
----
-49
10

skipif mysql # not compatible
query II rowsort label-1333
SELECT ALL + - 73 + + 24 AS col0, MIN ( - + ( - 10 ) ) AS col0
----
-49
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT + - 11 * SUM( ALL - 3 ) + + + ( - 2 )
----
31

skipif mysql # not compatible
query I rowsort label-1334
SELECT + - 11 * SUM ( ALL - 3 ) + + + ( - 2 )
----
31

query I rowsort
SELECT DISTINCT + CASE - 54 WHEN + 95 THEN NULL ELSE - 64 - - - 84 END
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1336
SELECT DISTINCT + + 6 / - - CAST( NULL AS SIGNED ) + + 40 * - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT DISTINCT + + 6 / - - CAST ( NULL AS INTEGER ) + + 40 * - 94
----
NULL

query I rowsort
SELECT 82 * + - 14 - - 39 AS col0
----
-1109

query I rowsort
SELECT ALL - 54 * + + 84
----
-4536

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT COUNT( * ) + - 71 * 84 + 9
----
-5954

skipif mysql # not compatible
query I rowsort label-1339
SELECT COUNT ( * ) + - 71 * 84 + 9
----
-5954

query II rowsort
SELECT ALL + + 56 * + 37 + - 28 * - 53 * - - 55, + 22 AS col2
----
83692
22

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT - 23 + + 33 * 76 + - NULLIF ( - 61, MIN( - 93 ) ), COALESCE ( + + 58, 74 ) AS col1
----
2546
58

skipif mysql # not compatible
query II rowsort label-1341
SELECT - 23 + + 33 * 76 + - NULLIF ( - 61, MIN ( - 93 ) ), COALESCE ( + + 58, 74 ) AS col1
----
2546
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1342
SELECT MAX( 1 ) DIV - + 31 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1342
SELECT MAX ( 1 ) / - + 31 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT + 97 * + ( - 49 ) - + - COUNT( * ) AS col2
----
-4752

skipif mysql # not compatible
query I rowsort label-1343
SELECT + 97 * + ( - 49 ) - + - COUNT ( * ) AS col2
----
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT 93 + + 98 + + COUNT( * ) col1
----
192

skipif mysql # not compatible
query I rowsort label-1344
SELECT 93 + + 98 + + COUNT ( * ) col1
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - COUNT( * ) - CASE - 12 WHEN - MIN( DISTINCT - 74 ) - - - 19 THEN - - 78 ELSE NULL END * + - 94 / - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT - COUNT ( * ) - CASE - 12 WHEN - MIN ( DISTINCT - 74 ) - - - 19 THEN - - 78 ELSE NULL END * + - 94 / - 25 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1346
SELECT CASE - + 72 WHEN - + CAST( NULL AS SIGNED ) THEN - - 29 ELSE - + COUNT( * ) * + 57 DIV - + ( 34 ) + + 15 + + - 79 END - + + 35 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1346
SELECT CASE - + 72 WHEN - + CAST ( NULL AS INTEGER ) THEN - - 29 ELSE - + COUNT ( * ) * + 57 / - + ( 34 ) + + 15 + + - 79 END - + + 35 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT DISTINCT + SUM( ALL - 39 ) * - 37 - - 46 * + COUNT( * ) * + - 16 AS col2
----
707

skipif mysql # not compatible
query I rowsort label-1347
SELECT DISTINCT + SUM ( ALL - 39 ) * - 37 - - 46 * + COUNT ( * ) * + - 16 AS col2
----
707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1348
SELECT COALESCE ( - - CASE - 94 WHEN + SUM( 7 ) * + 13 THEN NULL WHEN 95 * 58 + - - SUM( DISTINCT - NULLIF ( 51, + + 99 ) ) + - - 37 * + 54 + + 17 * + 92 * + 36 / - NULLIF ( + CASE CASE + + CAST( NULL AS SIGNED ) WHEN + - COUNT( * ) THEN + 91 * 19 * NULLIF ( - + MAX( DISTINCT + - 74 ), COALESCE ( - + 97, - 78 + 76 + + - 70, 64 * - 36, - 72, - 42 / + + 6 + 21 ) ) + AVG ( DISTINCT + 49 ) / - - 5 WHEN - - CAST( NULL AS SIGNED ) THEN - 72 ELSE NULL END WHEN + + 34 * - 35 THEN - 65 END, 92 ) * + 75 - - + CAST( + - COUNT( * ) AS SIGNED ) + - 89 * 78 * 61 THEN 7 * - 1 ELSE NULL END, - COUNT( * ) ) * - 40
----
40

skipif mysql # not compatible
query I rowsort label-1348
SELECT COALESCE ( - - CASE - 94 WHEN + SUM ( 7 ) * + 13 THEN NULL WHEN 95 * 58 + - - SUM ( DISTINCT - NULLIF ( 51, + + 99 ) ) + - - 37 * + 54 + + 17 * + 92 * + 36 / - NULLIF ( + CASE CASE + + CAST ( NULL AS INTEGER ) WHEN + - COUNT ( * ) THEN + 91 * 19 * NULLIF ( - + MAX ( DISTINCT + - 74 ), COALESCE ( - + 97, - 78 + 76 + + - 70, 64 * - 36, - 72, - 42 / + + 6 + 21 ) ) + AVG ( DISTINCT + 49 ) / - - 5 WHEN - - CAST ( NULL AS INTEGER ) THEN - 72 ELSE NULL END WHEN + + 34 * - 35 THEN - 65 END, 92 ) * + 75 - - + CAST ( + - COUNT ( * ) AS INTEGER ) + - 89 * 78 * 61 THEN 7 * - 1 ELSE NULL END, - COUNT ( * ) ) * - 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL ( 93 ) * COUNT( * ) + 90 col2
----
183

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL ( 93 ) * COUNT ( * ) + 90 col2
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1350
SELECT 52 + ( + CAST( NULL AS SIGNED ) ) * + - 25 * 90 + + 80 col1, - 51
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-1350
SELECT 52 + ( + CAST ( NULL AS INTEGER ) ) * + - 25 * 90 + + 80 col1, - 51
----
NULL
-51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + CASE + 79 WHEN 92 THEN - - 71 WHEN 47 THEN ( 65 ) END * - - 28 + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT + CASE + 79 WHEN 92 THEN - - 71 WHEN 47 THEN ( 65 ) END * - - 28 + + COUNT ( * )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT 87 * + 54 AS col1
----
4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1356
SELECT ALL 3 * + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) + - - 37 - - 67 DIV 21
----
40

skipif mysql # not compatible
query I rowsort label-1356
SELECT ALL 3 * + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) + - - 37 - - 67 / 21
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1358
SELECT + 28 / + 95 + CAST( NULL AS SIGNED ) + + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1358
SELECT + 28 / + 95 + CAST ( NULL AS INTEGER ) + + - 67 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1359
SELECT DISTINCT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + 3 * 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + 3 * 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1360
SELECT MAX( ALL - NULLIF ( - 72, + - 80 ) ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-1360
SELECT MAX ( ALL - NULLIF ( - 72, + - 80 ) ) AS col0
----
72

query II rowsort
SELECT ALL + 2, - 60 AS col0
----
2
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1362
SELECT ALL 40 * + 0 + + CASE - 47 WHEN - 27 THEN NULL WHEN 13 / + 98 THEN NULL ELSE 60 END * CAST( NULL AS SIGNED ) + - - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL 40 * + 0 + + CASE - 47 WHEN - 27 THEN NULL WHEN 13 / + 98 THEN NULL ELSE 60 END * CAST ( NULL AS INTEGER ) + - - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT 9 * 91 + - + ( + + COUNT( * ) )
----
818

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT 9 * 91 + - + ( + + COUNT ( * ) )
----
818

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

query I rowsort
SELECT + 62 * 36 AS col0
----
2232

query I rowsort
SELECT - 67 * 79 AS col2
----
-5293

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL - 71 DIV 21 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL - 71 / 21 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + COUNT( * ) * + COUNT( * ) - + 45 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-1368
SELECT + COUNT ( * ) * + COUNT ( * ) - + 45 AS col1
----
-44

query I rowsort
SELECT DISTINCT - 53 * 39 AS col2
----
-2067

query I rowsort
SELECT - 14 - 61 AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1371
SELECT - 20 DIV - MIN( - 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-1371
SELECT - 20 / - MIN ( - 13 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1372
SELECT ALL 37 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL 37 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT ALL + 81 - + SUM( - 36 + 83 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL + 81 - + SUM ( - 36 + 83 ) AS col1
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1374
SELECT DISTINCT COALESCE ( - CASE 58 WHEN 43 * + 16 THEN - 86 WHEN - 68 THEN - 12 + 87 ELSE 18 DIV + 64 END, + 52, + MAX( 36 ), 27 )
----
0

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT COALESCE ( - CASE 58 WHEN 43 * + 16 THEN - 86 WHEN - 68 THEN - 12 + 87 ELSE 18 / + 64 END, + 52, + MAX ( 36 ), 27 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT DISTINCT - MAX( DISTINCT + 49 ) * + 14
----
-686

skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT - MAX ( DISTINCT + 49 ) * + 14
----
-686

query I rowsort
SELECT DISTINCT + 99 - - 6
----
105

query I rowsort
SELECT ALL ( - ( 38 ) ) AS col1
----
-38

query I rowsort
SELECT - 60 - ( 58 ) AS col1
----
-118

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1380
SELECT - CAST( 30 AS SIGNED ) * - 48
----
1440

skipif mysql # not compatible
query I rowsort label-1380
SELECT - CAST ( 30 AS INTEGER ) * - 48
----
1440

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT DISTINCT CASE - 73 WHEN 46 THEN - COUNT( * ) * + 72 WHEN 8 / - 31 + 47 THEN + 70 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT CASE - 73 WHEN 46 THEN - COUNT ( * ) * + 72 WHEN 8 / - 31 + 47 THEN + 70 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL COALESCE ( - COUNT( * ), 81 * 30, 15 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL COALESCE ( - COUNT ( * ), 81 * 30, 15 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT CASE + 75 WHEN 90 * - 2 THEN - 92 ELSE NULL END col0
----
NULL

query I rowsort
SELECT - 24 + + 70 AS col1
----
46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT - 42 * COUNT( * )
----
-42

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1387
SELECT + COALESCE ( COALESCE ( MIN( + 87 ), CAST( + 14 AS SIGNED ) * + 3 ), 94 ) + - 26
----
61

skipif mysql # not compatible
query I rowsort label-1387
SELECT + COALESCE ( COALESCE ( MIN ( + 87 ), CAST ( + 14 AS INTEGER ) * + 3 ), 94 ) + - 26
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT ALL ( ( + MIN( DISTINCT + 58 ) ) ) AS col1
----
58

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL ( ( + MIN ( DISTINCT + 58 ) ) ) AS col1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT CASE 56 WHEN + 75 * 96 - + 62 THEN - COUNT( * ) + 59 WHEN 68 * 52 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT CASE 56 WHEN + 75 * 96 - + 62 THEN - COUNT ( * ) + 59 WHEN 68 * 52 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT ALL - 9 + - COUNT( 28 )
----
-10

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - 9 + - COUNT ( 28 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL 88 * COUNT( DISTINCT - 99 * 25 )
----
88

skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL 88 * COUNT ( DISTINCT - 99 * 25 )
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-1392
SELECT - 94 DIV + 61 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1392
SELECT - 94 / + 61 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT ALL - 46 + + NULLIF ( - 60, + COUNT( * ) ) * 24 AS col0
----
-1486

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL - 46 + + NULLIF ( - 60, + COUNT ( * ) ) * 24 AS col0
----
-1486

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT DISTINCT + CASE 36 WHEN 37 * - COALESCE ( - 89 / 57, + ( 97 ) * + 26 ) THEN ( - 46 ) ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT + CASE 36 WHEN 37 * - COALESCE ( - 89 / 57, + ( 97 ) * + 26 ) THEN ( - 46 ) ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1395
SELECT ALL - 37 DIV 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL - 37 / 40 AS col1
----
0

query I rowsort
SELECT ALL 82 + 83 * + 99
----
8299

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

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

query I rowsort
SELECT ALL - COALESCE ( 95, - 99 + + 95 * 92, ( 77 ) * + 22 ) * 2 AS col1
----
-190

query I rowsort
SELECT DISTINCT + 65 + + 98
----
163

query I rowsort
SELECT - 76 - 16 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1401
SELECT - COALESCE ( 47, 35 DIV 74, - ( CAST( 52 AS SIGNED ) ) - 81 )
----
-47

skipif mysql # not compatible
query I rowsort label-1401
SELECT - COALESCE ( 47, 35 / 74, - ( CAST ( 52 AS INTEGER ) ) - 81 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT DISTINCT 87 * SUM( + 21 )
----
1827

skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT 87 * SUM ( + 21 )
----
1827

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1403
SELECT ALL 25 / - MIN( ALL CAST( NULL AS SIGNED ) ) + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-1403
SELECT ALL 25 / - MIN ( ALL CAST ( NULL AS INTEGER ) ) + 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - 37 * + 65 - 44 * COUNT( * ) AS col2
----
-2449

skipif mysql # not compatible
query I rowsort label-1404
SELECT - 37 * + 65 - 44 * COUNT ( * ) AS col2
----
-2449

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT 47 / 64 + CAST( NULL AS SIGNED ) * 96
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT 47 / 64 + CAST ( NULL AS INTEGER ) * 96
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1408
SELECT ALL - COUNT( * ) DIV - ( 33 ) + + 50
----
50

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - COUNT ( * ) / - ( 33 ) + + 50
----
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT 36 * + COUNT( * ) + - 7 * 25 AS col2
----
-139

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT 36 * + COUNT ( * ) + - 7 * 25 AS col2
----
-139

onlyif mysql # DIV for integer division: 
query I rowsort label-1411
SELECT ALL 4 DIV - ( + 98 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL 4 / - ( + 98 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL + SUM( DISTINCT - 56 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + SUM ( DISTINCT - 56 ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1413
SELECT + MAX( ALL 34 ) * 52 - + 14 DIV - 2
----
1775

skipif mysql # not compatible
query I rowsort label-1413
SELECT + MAX ( ALL 34 ) * 52 - + 14 / - 2
----
1775

query I rowsort
SELECT ALL 11 * 20 - CASE + ( 60 ) WHEN 73 + 60 THEN 66 * 92 + - 80 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1415
SELECT + MIN( DISTINCT + 92 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-1415
SELECT + MIN ( DISTINCT + 92 ) AS col1
----
92

query I rowsort
SELECT ALL 10 * - 94
----
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-1417
SELECT + + 60 * COUNT( * ) + + COUNT( * ) * + 13
----
73

skipif mysql # not compatible
query I rowsort label-1417
SELECT + + 60 * COUNT ( * ) + + COUNT ( * ) * + 13
----
73

query I rowsort
SELECT - - 84 - - 18 AS col1
----
102

query I rowsort
SELECT DISTINCT 68 * 26
----
1768

query I rowsort
SELECT ALL + ( + COALESCE ( 43, + 46 ) ) * 10 col2
----
430

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT + + 98 * + COALESCE ( 33 * - 72 + 37, COUNT( * ) )
----
-229222

skipif mysql # not compatible
query I rowsort label-1421
SELECT + + 98 * + COALESCE ( 33 * - 72 + 37, COUNT ( * ) )
----
-229222

query I rowsort
SELECT DISTINCT 95 * + 41
----
3895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1423
SELECT DISTINCT - ( - COALESCE ( 24, 51 DIV - 70, - COUNT( * ) DIV 41 ) ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - ( - COALESCE ( 24, 51 / - 70, - COUNT ( * ) / 41 ) ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT - + COUNT( * ) + + ( - 62 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1424
SELECT - + COUNT ( * ) + + ( - 62 ) AS col0
----
-63

query I rowsort
SELECT + 82 * 52
----
4264

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

query I rowsort
SELECT - + 66 * - 45 col2
----
2970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT DISTINCT - + MIN( 87 ) * + CASE - CASE - MIN( DISTINCT CAST( 64 AS SIGNED ) ) WHEN 53 THEN NULL ELSE 18 END WHEN ( 59 ) * 44 THEN COUNT( * ) / + 11 - - 36 WHEN 20 * 31 + + 33 * - 65 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT - + MIN ( 87 ) * + CASE - CASE - MIN ( DISTINCT CAST ( 64 AS INTEGER ) ) WHEN 53 THEN NULL ELSE 18 END WHEN ( 59 ) * 44 THEN COUNT ( * ) / + 11 - - 36 WHEN 20 * 31 + + 33 * - 65 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - + 97 * 27
----
-2619

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

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

query I rowsort
SELECT DISTINCT - 33 + 87
----
54

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

skipif mysql # not compatible
query I rowsort label-1432
SELECT - + MIN ( + 48 )
----
-48

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT ALL - + 14 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 12 + + - ( + 33 ) AS col0
----
-45

query I rowsort
SELECT DISTINCT + 5 + - 11 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT ALL - ( 61 ) * NULLIF ( + 4 * - COALESCE ( - 38, 24, + 6 ), COUNT( * ) )
----
-9272

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - ( 61 ) * NULLIF ( + 4 * - COALESCE ( - 38, 24, + 6 ), COUNT ( * ) )
----
-9272

query I rowsort
SELECT - 88 + + 42
----
-46

query I rowsort
SELECT ALL ( - 93 ) AS col1
----
-93

query I rowsort
SELECT DISTINCT - 33 * + 81
----
-2673

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT ALL + ( - + ( + 5 ) ) + - COUNT( 66 + 5 )
----
-6

skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + ( - + ( + 5 ) ) + - COUNT ( 66 + 5 )
----
-6

query I rowsort
SELECT - 76 + + + 21
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL - 15 + + COUNT( * ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL - 15 + + COUNT ( * ) AS col0
----
-14

query I rowsort
SELECT 77 - + + 49 AS col1
----
28

query I rowsort
SELECT 51 + + + 39 + + 22
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT MAX( DISTINCT + + 53 ) + COALESCE ( 42, 8 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-1445
SELECT MAX ( DISTINCT + + 53 ) + COALESCE ( 42, 8 ) AS col2
----
95

query I rowsort
SELECT ALL + 42 + + 91 col1
----
133

query I rowsort
SELECT DISTINCT + ( + 85 ) - + 88
----
-3

query I rowsort
SELECT DISTINCT 34 * - 25
----
-850

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT - 97 - + CASE WHEN + 83 >= NULL THEN COALESCE ( ( - COUNT( * ) ), 40 * 0, + 42 ) + AVG ( 14 ) WHEN NOT - 46 / + 1 NOT BETWEEN MIN( ALL - 40 ) - ( COUNT( * ) ) * - COUNT( * ) AND NULL THEN NULL END + + COALESCE ( - 83, 4 + + 8, COUNT( * ) ) * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - 97 - + CASE WHEN + 83 >= NULL THEN COALESCE ( ( - COUNT ( * ) ), 40 * 0, + 42 ) + AVG ( 14 ) WHEN NOT - 46 / + 1 NOT BETWEEN MIN ( ALL - 40 ) - ( COUNT ( * ) ) * - COUNT ( * ) AND NULL THEN NULL END + + COALESCE ( - 83, 4 + + 8, COUNT ( * ) ) * - 97 AS col0
----
NULL

query I rowsort
SELECT 57 * - 23
----
-1311

query I rowsort
SELECT 92 * - 12
----
-1104

query I rowsort
SELECT DISTINCT - 71 * - 43 AS col0
----
3053

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT COUNT( * ) * 28
----
28

skipif mysql # not compatible
query I rowsort label-1453
SELECT COUNT ( * ) * 28
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT DISTINCT COUNT( - 59 ) - 13 * - 7
----
92

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT COUNT ( - 59 ) - 13 * - 7
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1455
SELECT MAX( 50 ) DIV - 67 + + 5
----
5

skipif mysql # not compatible
query I rowsort label-1455
SELECT MAX ( 50 ) / - 67 + + 5
----
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT - 0 DIV + 36 * + 1
----
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT - 0 / + 36 * + 1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT ALL 40 DIV 69 * 18
----
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 40 / 69 * 18
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT - COALESCE ( 30, 0, + ( + 85 ) * CAST( NULL AS SIGNED ) )
----
-30

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT - COALESCE ( 30, 0, + ( + 85 ) * CAST ( NULL AS INTEGER ) )
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT DISTINCT 88 DIV - - 14
----
6

skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT 88 / - - 14
----
6

query I rowsort
SELECT DISTINCT - 25 * 44 * - 95
----
104500

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT + 50 * + COUNT( * ) * + 79
----
3950

skipif mysql # not compatible
query I rowsort label-1462
SELECT + 50 * + COUNT ( * ) * + 79
----
3950

query I rowsort
SELECT + 94 - + NULLIF ( 15, - 47 * - 22 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT 88 + 77 DIV + 5
----
103

skipif mysql # not compatible
query I rowsort label-1464
SELECT 88 + 77 / + 5
----
103

query I rowsort
SELECT ALL - 31 * + + 90 AS col1
----
-2790

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT + MAX( 39 ) + COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT + MAX ( 39 ) + COUNT ( * )
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1467
SELECT ALL CASE - + ( - 8 ) WHEN - CAST( - 82 AS SIGNED ) THEN - 51 END + 82 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL CASE - + ( - 8 ) WHEN - CAST ( - 82 AS INTEGER ) THEN - 51 END + 82 * + 3
----
NULL

query I rowsort
SELECT DISTINCT + ( - 80 ) * 63 AS col0
----
-5040

query I rowsort
SELECT 68 + - 26
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1470
SELECT ALL 13 * + COUNT( * ) DIV + 33 col0
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL 13 * + COUNT ( * ) / + 33 col0
----
0

query I rowsort
SELECT DISTINCT + 13 + + - 7 - + ( - 4 )
----
10

query I rowsort
SELECT ALL 70 + - 16 + + - 28 * - 39 * + ( ( - 15 ) ) AS col2
----
-16326

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT COUNT( * ) * 56 * - + 13 AS col0
----
-728

skipif mysql # not compatible
query I rowsort label-1473
SELECT COUNT ( * ) * 56 * - + 13 AS col0
----
-728

query II rowsort
SELECT 10 AS col0, 37 AS col1
----
10
37

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT COALESCE ( + + 26, 8 ) DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT COALESCE ( + + 26, 8 ) / 99
----
0

query I rowsort
SELECT 77 + - 12 AS col0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1477
SELECT DISTINCT + 74 DIV + 81 * - ( ( + COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1477
SELECT DISTINCT + 74 / + 81 * - ( ( + COUNT ( * ) ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1478
SELECT 87 + - 94 + 42 - 60 DIV 45 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-1478
SELECT 87 + - 94 + 42 - 60 / 45 AS col0
----
34

query I rowsort
SELECT ALL + 56 * + 22 AS col1
----
1232

onlyif mysql # aggregate syntax: 
query I rowsort label-1480
SELECT ALL + 47 - + - 45 + - 13 * COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL + 47 - + - 45 + - 13 * COUNT ( * )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-1481
SELECT 67 DIV - 65 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1481
SELECT 67 / - 65 AS col2
----
-1

query I rowsort
SELECT DISTINCT 28 * + - 72 AS col1
----
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL - MAX( ALL - 39 ) * - 3 * + 13 AS col1
----
-1521

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - MAX ( ALL - 39 ) * - 3 * + 13 AS col1
----
-1521

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL 63 * - - COUNT( * ) * ( + 66 ) AS col2
----
4158

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL 63 * - - COUNT ( * ) * ( + 66 ) AS col2
----
4158

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

query I rowsort
SELECT ALL - 84 * + 28
----
-2352

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT SUM( 9 ) - - 0 * 72 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1487
SELECT SUM ( 9 ) - - 0 * 72 AS col1
----
9

query I rowsort
SELECT 2 * - + 82 AS col2
----
-164

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT 21 DIV - - 21 + + 46 DIV - 79 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1490
SELECT 21 / - - 21 + + 46 / - 79 AS col2
----
1

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

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

query I rowsort
SELECT DISTINCT - AVG ( - CASE 97 WHEN 88 THEN NULL WHEN - 75 * 30 THEN + 86 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL - - COALESCE ( + - CAST( NULL AS SIGNED ), - + 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL - - COALESCE ( + - CAST ( NULL AS INTEGER ), - + 89 )
----
-89

query I rowsort
SELECT - 98 - - + NULLIF ( + + 11, - 98 / - 81 - 80 ) AS col0
----
-87

query II rowsort
SELECT + - 90 AS col1, 82
----
-90
82

query I rowsort
SELECT ALL + + 47 + + 92 AS col2
----
139

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

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

query II rowsort
SELECT + 1 AS col1, - NULLIF ( - 11, 61 * 93 )
----
1
11

query I rowsort
SELECT DISTINCT - 44 + + 62
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1500
SELECT ALL 44 + CAST( NULL AS DECIMAL ) + + ( 90 ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL 44 + CAST ( NULL AS REAL ) + + ( 90 ) * - 60
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL 58 + + CASE + 54 WHEN - 46 THEN NULL WHEN COUNT( 19 ) / COUNT( * ) THEN 25 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL 58 + + CASE + 54 WHEN - 46 THEN NULL WHEN COUNT ( 19 ) / COUNT ( * ) THEN 25 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT ALL + 83 + 6 + - - 42 + - COUNT( * ) * 85 AS col2
----
46

skipif mysql # not compatible
query I rowsort label-1503
SELECT ALL + 83 + 6 + - - 42 + - COUNT ( * ) * 85 AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1504
SELECT 3 * 54 + - + CAST( NULL AS SIGNED ) - - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1504
SELECT 3 * 54 + - + CAST ( NULL AS INTEGER ) - - 46 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT - SUM( 45 ), 42 col2
----
-45
42

skipif mysql # not compatible
query II rowsort label-1505
SELECT - SUM ( 45 ), 42 col2
----
-45
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT - COALESCE ( - COALESCE ( 21, 74, + 70 - + 15, ( - 6 ) ), COUNT( * ), - 91 - 1, ( 69 ) * 61 )
----
21

skipif mysql # not compatible
query I rowsort label-1506
SELECT - COALESCE ( - COALESCE ( 21, 74, + 70 - + 15, ( - 6 ) ), COUNT ( * ), - 91 - 1, ( 69 ) * 61 )
----
21

query I rowsort
SELECT ALL 23 * - + 27
----
-621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1508
SELECT ALL - CAST( - + 61 AS SIGNED ) - + - 12
----
73

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL - CAST ( - + 61 AS INTEGER ) - + - 12
----
73

query I rowsort
SELECT + 5 + + 59 AS col2
----
64

query I rowsort
SELECT DISTINCT ( 24 ) - + 63
----
-39

query I rowsort
SELECT ALL 87 * + + 58
----
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + CASE 46 WHEN 93 * + 12 + 79 THEN NULL ELSE - 32 END + COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-1512
SELECT + CASE 46 WHEN 93 * + 12 + 79 THEN NULL ELSE - 32 END + COUNT ( * )
----
-31

query I rowsort
SELECT + 75 + - 7 * + 10 * - - 4 col0
----
-205

onlyif mysql # aggregate syntax: 
query I rowsort label-1514
SELECT + 87 + ( - COUNT( * ) )
----
86

skipif mysql # not compatible
query I rowsort label-1514
SELECT + 87 + ( - COUNT ( * ) )
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1515
SELECT + CAST( - NULLIF ( + 72, + - 59 ) AS SIGNED ) + COUNT( * ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-1515
SELECT + CAST ( - NULLIF ( + 72, + - 59 ) AS INTEGER ) + COUNT ( * ) AS col0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT - 69 DIV - + MAX( ALL + 84 )
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT - 69 / - + MAX ( ALL + 84 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1517
SELECT + 39 + ( CAST( + CASE + 58 WHEN - 93 / 39 + 10 THEN 67 * + 73 + - ( + 83 + + COUNT( * ) ) END AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1517
SELECT + 39 + ( CAST ( + CASE + 58 WHEN - 93 / 39 + 10 THEN 67 * + 73 + - ( + 83 + + COUNT ( * ) ) END AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT - 45 - SUM( + + 1 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 45 - SUM ( + + 1 ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query II rowsort label-1519
SELECT - 4 DIV + 65 AS col2, 54 * - + 17 * 70 col0
----
0
-64260

skipif mysql # not compatible
query II rowsort label-1519
SELECT - 4 / + 65 AS col2, 54 * - + 17 * 70 col0
----
0
-64260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1520
SELECT ALL NULLIF ( 87, + - CASE + 88 WHEN ( 55 ) THEN NULL ELSE - NULLIF ( - 54, ( COUNT( DISTINCT 23 ) ) ) END ) DIV + 26
----
3

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL NULLIF ( 87, + - CASE + 88 WHEN ( 55 ) THEN NULL ELSE - NULLIF ( - 54, ( COUNT ( DISTINCT 23 ) ) ) END ) / + 26
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT + CAST( NULL AS SIGNED ) / 32 * - 97 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT + CAST ( NULL AS INTEGER ) / 32 * - 97 AS col0
----
NULL

query I rowsort
SELECT - COALESCE ( - 95, - 49 ) AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1523
SELECT DISTINCT MAX( + 64 ) DIV + 3
----
21

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT MAX ( + 64 ) / + 3
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT + 68 DIV - ( + 23 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-1524
SELECT + 68 / - ( + 23 ) AS col2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT - 91 DIV - 89 + - + 87 AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-1525
SELECT - 91 / - 89 + - + 87 AS col0
----
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1526
SELECT ALL + - COALESCE ( + 47, MAX( + 19 ) DIV + CASE 50 WHEN + 36 THEN 11 * - 11 WHEN 82 * 50 THEN - 7 DIV 43 ELSE CAST( NULL AS SIGNED ) * 10 END, - ( ( - 51 ) ) - 34 ) * - 94 + 41 * - 5
----
4213

skipif mysql # not compatible
query I rowsort label-1526
SELECT ALL + - COALESCE ( + 47, MAX ( + 19 ) / + CASE 50 WHEN + 36 THEN 11 * - 11 WHEN 82 * 50 THEN - 7 / 43 ELSE CAST ( NULL AS INTEGER ) * 10 END, - ( ( - 51 ) ) - 34 ) * - 94 + 41 * - 5
----
4213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1527
SELECT + + MAX( DISTINCT - 29 ) DIV 21 + 2 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1527
SELECT + + MAX ( DISTINCT - 29 ) / 21 + 2 AS col1
----
1

query I rowsort
SELECT ALL - + 33 * + 71 + 56 + + 17
----
-2270

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL + - MAX( DISTINCT 45 )
----
-45

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL + - MAX ( DISTINCT 45 )
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT - - 18 * ( + + 74 ) DIV + 84 + 73 col1
----
88

skipif mysql # not compatible
query I rowsort label-1530
SELECT - - 18 * ( + + 74 ) / + 84 + 73 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1531
SELECT + COALESCE ( + + COUNT( * ), + COUNT( * ), NULLIF ( - CAST( NULL AS SIGNED ), 35 ) )
----
1

skipif mysql # not compatible
query I rowsort label-1531
SELECT + COALESCE ( + + COUNT ( * ), + COUNT ( * ), NULLIF ( - CAST ( NULL AS INTEGER ), 35 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT DISTINCT + SUM( ALL - 71 ) * + - 95 + + 4 + + COALESCE ( COUNT( * ), - 91 * - 71 )
----
6750

skipif mysql # not compatible
query I rowsort label-1532
SELECT DISTINCT + SUM ( ALL - 71 ) * + - 95 + + 4 + + COALESCE ( COUNT ( * ), - 91 * - 71 )
----
6750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1533
SELECT DISTINCT - ( - COUNT( * ) ) * COUNT( * ) + - 37 + + CAST( NULL AS SIGNED ) * + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1533
SELECT DISTINCT - ( - COUNT ( * ) ) * COUNT ( * ) + - 37 + + CAST ( NULL AS INTEGER ) * + 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1534
SELECT ALL 20 * - 43 + + 57 + - - ( NULLIF ( - 77, COUNT( * ) + + 7 * 97 ) )
----
-880

skipif mysql # not compatible
query I rowsort label-1534
SELECT ALL 20 * - 43 + + 57 + - - ( NULLIF ( - 77, COUNT ( * ) + + 7 * 97 ) )
----
-880

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1536
SELECT DISTINCT + + ( ( 0 ) ) DIV - COALESCE ( + 9, 82 )
----
0

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT + + ( ( 0 ) ) / - COALESCE ( + 9, 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT ALL + + 84 * + ( - NULLIF ( 55, + 8 * + 35 ) ) * + COUNT( * ) + 73
----
-4547

skipif mysql # not compatible
query I rowsort label-1537
SELECT ALL + + 84 * + ( - NULLIF ( 55, + 8 * + 35 ) ) * + COUNT ( * ) + 73
----
-4547

query I rowsort
SELECT - 65 * - 30
----
1950

query I rowsort
SELECT DISTINCT + + 77 * - 88
----
-6776

query I rowsort
SELECT - 92 - - 77 * - + 71
----
-5559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1541
SELECT + CAST( NULL AS SIGNED ) * + 63 * 30 / - + 1 * - + 89 * - 76 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1541
SELECT + CAST ( NULL AS INTEGER ) * + 63 * 30 / - + 1 * - + 89 * - 76 AS col1
----
NULL

query II rowsort
SELECT + 99 AS col1, 12 col2
----
99
12

query I rowsort
SELECT DISTINCT 77 * + 10 - - 78 * - - ( + - 24 ) AS col1
----
-1102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1544
SELECT ALL 52 * - + 49 - - CAST( NULL AS SIGNED ) + ( 71 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL 52 * - + 49 - - CAST ( NULL AS INTEGER ) + ( 71 ) AS col2
----
NULL

query I rowsort
SELECT - 82 * + 27
----
-2214

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT + 71 * - 67 - 51 DIV - 87 + 35
----
-4722

skipif mysql # not compatible
query I rowsort label-1547
SELECT + 71 * - 67 - 51 / - 87 + 35
----
-4722

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT + 51 * - COUNT( * ) * - 28 / CASE - MIN( ( + 50 ) ) WHEN CASE CASE 31 WHEN 22 THEN NULL WHEN 10 THEN + 3 - 88 / - ( 97 ) END WHEN 86 THEN + COALESCE ( - 26, + 2, + 98 * + 22, 18 + + 99 * + 44, 72 ) END THEN NULL WHEN - 27 * 22 THEN - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT + 51 * - COUNT ( * ) * - 28 / CASE - MIN ( ( + 50 ) ) WHEN CASE CASE 31 WHEN 22 THEN NULL WHEN 10 THEN + 3 - 88 / - ( 97 ) END WHEN 86 THEN + COALESCE ( - 26, + 2, + 98 * + 22, 18 + + 99 * + 44, 72 ) END THEN NULL WHEN - 27 * 22 THEN - 48 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT - SUM( - - 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-1549
SELECT - SUM ( - - 37 )
----
-37

query I rowsort
SELECT + 45 + + + ( - 70 ) * + COALESCE ( - + 48, 42, 9 ) AS col1
----
3405

query I rowsort
SELECT - ( - 26 ) AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1552
SELECT DISTINCT CAST( 79 AS SIGNED ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT CAST ( 79 AS INTEGER ) AS col0
----
79

query I rowsort
SELECT DISTINCT + 49 * 53
----
2597

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

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT SUM ( CAST ( 6 AS INTEGER ) )
----
6

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

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

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

skipif mysql # not compatible
query II rowsort label-1556
SELECT DISTINCT COUNT ( * ) AS col0, 35 AS col0
----
1
35

query I rowsort
SELECT ALL + 71 + - 55
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1558
SELECT + 80 * + 7 * SUM( 5 )
----
2800

skipif mysql # not compatible
query I rowsort label-1558
SELECT + 80 * + 7 * SUM ( 5 )
----
2800

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

query I rowsort
SELECT + ( + 53 ) + + 69
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL - - ( - - ( CASE 84 WHEN + 2 THEN ( - COUNT( * ) ) WHEN - COALESCE ( 55, MIN( + 93 ), + 23 ) THEN - 11 - 0 WHEN SUM( - ( + 7 ) ) THEN NULL END ) ) / + 38 + 70 / - 39 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL - - ( - - ( CASE 84 WHEN + 2 THEN ( - COUNT ( * ) ) WHEN - COALESCE ( 55, MIN ( + 93 ), + 23 ) THEN - 11 - 0 WHEN SUM ( - ( + 7 ) ) THEN NULL END ) ) / + 38 + 70 / - 39 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1562
SELECT - + 14 DIV - 46 + - + 95 + + CAST( 18 AS SIGNED ) * - CAST( + 48 + 73 AS SIGNED ) AS col2
----
-2273

skipif mysql # not compatible
query I rowsort label-1562
SELECT - + 14 / - 46 + - + 95 + + CAST ( 18 AS INTEGER ) * - CAST ( + 48 + 73 AS INTEGER ) AS col2
----
-2273

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1563
SELECT ALL - 56 DIV - 3 + - + NULLIF ( 68, - CAST( NULL AS SIGNED ) ) + + 71 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - 56 / - 3 + - + NULLIF ( 68, - CAST ( NULL AS INTEGER ) ) + + 71 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1564
SELECT ALL - - ( 87 ) DIV + NULLIF ( COUNT( * ), + 5 ) + + 92 AS col0
----
179

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - - ( 87 ) / + NULLIF ( COUNT ( * ), + 5 ) + + 92 AS col0
----
179

query I rowsort
SELECT + - 55 + 8 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT + + COUNT( * ) * - - 39 * + - 32 AS col0
----
-1248

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

query II rowsort
SELECT ALL - - 55 * + 55 - 38, + 42 * - 57 AS col2
----
2987
-2394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1568
SELECT DISTINCT - - 72 DIV 51 + - - COUNT( * ) * - 89
----
-88

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT - - 72 / 51 + - - COUNT ( * ) * - 89
----
-88

query II rowsort
SELECT ALL + - 35 AS col2, 57 AS col0
----
-35
57

query I rowsort
SELECT - ( - + 87 ) * + COALESCE ( + 51, - 77 ) + 4 * 77 AS col1
----
4745

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - 63 + + COALESCE ( + SUM( - 12 ), 85 ) + 19 * 33 AS col0
----
552

skipif mysql # not compatible
query I rowsort label-1572
SELECT - 63 + + COALESCE ( + SUM ( - 12 ), 85 ) + 19 * 33 AS col0
----
552

query I rowsort
SELECT - 4 * + + 22 + 22 + + ( + 95 )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT - MIN( - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-1574
SELECT - MIN ( - 14 )
----
14

query I rowsort
SELECT ALL - ( - ( - - 99 ) ) AS col2
----
99

query I rowsort
SELECT 61 * - 23 * + 21
----
-29463

onlyif mysql # aggregate syntax: 
query II rowsort label-1577
SELECT ALL - COUNT( * ) col0, - 89 + - - 19
----
-1
-70

skipif mysql # not compatible
query II rowsort label-1577
SELECT ALL - COUNT ( * ) col0, - 89 + - - 19
----
-1
-70

query I rowsort
SELECT DISTINCT - 43 * - 74 AS col1
----
3182

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL - COALESCE ( + COUNT( DISTINCT + 32 ), + + 53 )
----
-1

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - COALESCE ( + COUNT ( DISTINCT + 32 ), + + 53 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT 80 + - ( + 97 ) * - COUNT( * )
----
177

skipif mysql # not compatible
query I rowsort label-1580
SELECT 80 + - ( + 97 ) * - COUNT ( * )
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT ALL - COUNT( * ) * 71 * + CASE + ( 56 ) WHEN + AVG ( DISTINCT + 34 ) THEN NULL WHEN 7 THEN 68 + - 47 * + 34 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL - COUNT ( * ) * 71 * + CASE + ( 56 ) WHEN + AVG ( DISTINCT + 34 ) THEN NULL WHEN 7 THEN 68 + - 47 * + 34 ELSE NULL END
----
NULL

query I rowsort
SELECT 86 * + + 11 AS col0
----
946

onlyif mysql # DIV for integer division: 
query I rowsort label-1583
SELECT ALL - 52 DIV + 14 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL - 52 / + 14 AS col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1584
SELECT ALL 62, NULLIF ( 2, + - 41 + + - COUNT( * ) ) AS col0
----
62
2

skipif mysql # not compatible
query II rowsort label-1584
SELECT ALL 62, NULLIF ( 2, + - 41 + + - COUNT ( * ) ) AS col0
----
62
2

query I rowsort
SELECT DISTINCT - 43 * + + 74 AS col0
----
-3182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL - 25 * - - CAST( + 43 AS SIGNED )
----
-1075

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - 25 * - - CAST ( + 43 AS INTEGER )
----
-1075

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

query I rowsort
SELECT 86 + + - 30 AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT ALL - COUNT( * ) + - - 18 * 51 * + 30
----
27539

skipif mysql # not compatible
query I rowsort label-1589
SELECT ALL - COUNT ( * ) + - - 18 * 51 * + 30
----
27539

query II rowsort
SELECT 36 AS col2, + 71
----
36
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT COUNT( * ) + + + 44 DIV + 85 * + 10 * 28
----
1

skipif mysql # not compatible
query I rowsort label-1591
SELECT COUNT ( * ) + + + 44 / + 85 * + 10 * 28
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT 85 DIV + + 89 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT 85 / + + 89 * + 34
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1593
SELECT DISTINCT - CASE 82 WHEN + 22 * - - 78 * + + 47 + NULLIF ( - 19, 87 * - 72 ) THEN NULL ELSE + MIN( + 27 ) DIV + 89 END DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT - CASE 82 WHEN + 22 * - - 78 * + + 47 + NULLIF ( - 19, 87 * - 72 ) THEN NULL ELSE + MIN ( + 27 ) / + 89 END / 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL MIN( ALL + 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL MIN ( ALL + 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT DISTINCT - COALESCE ( + 53, - + COUNT( + 37 ) )
----
-53

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - COALESCE ( + 53, - + COUNT ( + 37 ) )
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1596
SELECT - - CAST( 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-1596
SELECT - - CAST ( 86 AS INTEGER )
----
86

query I rowsort
SELECT - 67 + - + 57 AS col1
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1598
SELECT ALL - COUNT( * ) * + 50 + - - 81 + - 60 DIV - ( 41 )
----
32

skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - COUNT ( * ) * + 50 + - - 81 + - 60 / - ( 41 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1599
SELECT ALL - - 11 AS col1, - COUNT( * ) * + 8
----
11
-8

skipif mysql # not compatible
query II rowsort label-1599
SELECT ALL - - 11 AS col1, - COUNT ( * ) * + 8
----
11
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-1600
SELECT 57 + ( - 35 ) DIV NULLIF ( - 28, - ( - 94 ) * + 7 ) col0
----
58

skipif mysql # not compatible
query I rowsort label-1600
SELECT 57 + ( - 35 ) / NULLIF ( - 28, - ( - 94 ) * + 7 ) col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL 50 * - + 21 * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL 50 * - + 21 * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT - 94 + - + MAX( + - 21 ) col1
----
-73

skipif mysql # not compatible
query I rowsort label-1602
SELECT - 94 + - + MAX ( + - 21 ) col1
----
-73

query I rowsort
SELECT ALL 64 - - ( + 33 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT - - MIN( DISTINCT - 21 ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - - MIN ( DISTINCT - 21 ) AS col0
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1605
SELECT ( + 90 ) DIV MIN( + + 84 ) + 50
----
51

skipif mysql # not compatible
query I rowsort label-1605
SELECT ( + 90 ) / MIN ( + + 84 ) + 50
----
51

query I rowsort
SELECT + 16 * - 51 * + 83 + + 45 + + 19 * + 59 - ( 59 )
----
-66621

query II rowsort
SELECT 70, 57 col0
----
70
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1608
SELECT + 56 DIV - + 54 + - 64 - - 51 - + 15
----
-29

skipif mysql # not compatible
query I rowsort label-1608
SELECT + 56 / - + 54 + - 64 - - 51 - + 15
----
-29

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

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

query I rowsort
SELECT ALL - COALESCE ( - 78, + 92, - 61 )
----
78

query I rowsort
SELECT ALL - 2 * - 54 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT ALL 40 * - + 47 * + + COUNT( * ) col1
----
-1880

skipif mysql # not compatible
query I rowsort label-1612
SELECT ALL 40 * - + 47 * + + COUNT ( * ) col1
----
-1880

query I rowsort
SELECT 60 * - 70
----
-4200

query I rowsort
SELECT + 62 * - - 83 - 37 * + + 69
----
2593

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT ALL - 21 + - + 58, - 23 * + + COUNT( ALL - 15 ) + + 48 - 95 AS col0
----
-79
-70

skipif mysql # not compatible
query II rowsort label-1615
SELECT ALL - 21 + - + 58, - 23 * + + COUNT ( ALL - 15 ) + + 48 - 95 AS col0
----
-79
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT - COUNT( * ) + 31 * - COUNT( * ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT - COUNT ( * ) + 31 * - COUNT ( * ) AS col0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-1617
SELECT DISTINCT 57 + - 80 * 66 DIV - ( + 60 ) AS col0
----
145

skipif mysql # not compatible
query I rowsort label-1617
SELECT DISTINCT 57 + - 80 * 66 / - ( + 60 ) AS col0
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT DISTINCT SUM( - - ( - 82 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT SUM ( - - ( - 82 ) )
----
-82

query I rowsort
SELECT ALL - ( 77 ) + 45
----
-32

query I rowsort
SELECT 11 * + + 46 AS col0
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT ALL 92 + + - COUNT( * ), 55 AS col1
----
91
55

skipif mysql # not compatible
query II rowsort label-1621
SELECT ALL 92 + + - COUNT ( * ), 55 AS col1
----
91
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1622
SELECT CAST( - + 37 AS SIGNED ) - - 68 + + 11
----
42

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( - + 37 AS INTEGER ) - - 68 + + 11
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT 37 * - + 46 * - NULLIF ( + + 92, - COUNT( * ) ) AS col2
----
156584

skipif mysql # not compatible
query I rowsort label-1623
SELECT 37 * - + 46 * - NULLIF ( + + 92, - COUNT ( * ) ) AS col2
----
156584

query I rowsort
SELECT COALESCE ( + 33, - 34 ) * - 68 + - 61 col2
----
-2305

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 34 * - 85 * - COUNT( * ) + - - 64 AS col0
----
2954

skipif mysql # not compatible
query I rowsort label-1625
SELECT 34 * - 85 * - COUNT ( * ) + - - 64 AS col0
----
2954

query I rowsort
SELECT NULLIF ( - - 67, - 35 * + 85 * - - 96 + + ( + + 83 ) * + AVG ( DISTINCT - 56 ) )
----
67

query I rowsort
SELECT DISTINCT + - 46 - + 37 AS col0
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1628
SELECT ALL 95 DIV + MIN( 6 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL 95 / + MIN ( 6 ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT + 65 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-1629
SELECT + 65 / 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT ALL + 16 - + 88 + + - 1 + AVG ( 53 ) * + 17 / SUM( DISTINCT + CASE - 54 WHEN 82 - + 14 THEN NULL WHEN 91 * 9 THEN 42 WHEN - 21 / + 15 THEN NULL END ) * + ( ( + 42 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL + 16 - + 88 + + - 1 + AVG ( 53 ) * + 17 / SUM ( DISTINCT + CASE - 54 WHEN 82 - + 14 THEN NULL WHEN 91 * 9 THEN 42 WHEN - 21 / + 15 THEN NULL END ) * + ( ( + 42 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT - - 78 * + 54 + + SUM( ALL - 38 ) + + - 96 + + + ( + 4 ) AS col2
----
4082

skipif mysql # not compatible
query I rowsort label-1631
SELECT - - 78 * + 54 + + SUM ( ALL - 38 ) + + - 96 + + + ( + 4 ) AS col2
----
4082

query I rowsort
SELECT + - 72 * + 37 AS col1
----
-2664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1633
SELECT ALL + MAX( - 46 ) DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + MAX ( - 46 ) / 96
----
0

query I rowsort
SELECT - - 61 + - COALESCE ( - 79, 93 + + ( + 29 ), 13, + 78 + 2 ) AS col1
----
140

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

skipif mysql # not compatible
query I rowsort label-1635
SELECT + COUNT ( * ) / - ( - + 10 ) + 17 AS col0
----
17

query I rowsort
SELECT - 54 * - COALESCE ( 33, - 23 * 41, 97 + 54 ) col0
----
1782

query I rowsort
SELECT DISTINCT + - 23 col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT ALL - COUNT( * ) * CASE WHEN NULL NOT IN ( + 55, - 6 ) THEN NULL ELSE + 74 + + 47 END AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-1638
SELECT ALL - COUNT ( * ) * CASE WHEN NULL NOT IN ( + 55, - 6 ) THEN NULL ELSE + 74 + + 47 END AS col2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1639
SELECT + COALESCE ( + 54, + COUNT( - CAST( NULL AS SIGNED ) ) ) col0
----
54

skipif mysql # not compatible
query I rowsort label-1639
SELECT + COALESCE ( + 54, + COUNT ( - CAST ( NULL AS INTEGER ) ) ) col0
----
54

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1641
SELECT ALL + - COALESCE ( - - ( - - 33 ), - + 83 - + CAST( NULL AS SIGNED ) * + COUNT( * ) DIV COUNT( * ) DIV - 83 )
----
-33

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL + - COALESCE ( - - ( - - 33 ), - + 83 - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / COUNT ( * ) / - 83 )
----
-33

query I rowsort
SELECT DISTINCT - 43 * 27 * 37 AS col0
----
-42957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1643
SELECT MIN( ( + + ( - 93 ) ) ) DIV + 97 + + - 3 + - 88
----
-91

skipif mysql # not compatible
query I rowsort label-1643
SELECT MIN ( ( + + ( - 93 ) ) ) / + 97 + + - 3 + - 88
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT COALESCE ( - 72, 13 + + - COALESCE ( - - ( COUNT( 48 ) ), 88 * + 70 + - 99, COUNT( * ) * - 19 ) )
----
-72

skipif mysql # not compatible
query I rowsort label-1644
SELECT COALESCE ( - 72, 13 + + - COALESCE ( - - ( COUNT ( 48 ) ), 88 * + 70 + - 99, COUNT ( * ) * - 19 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT ALL 9 * - - 94 + - COUNT( * ) + - 85
----
760

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL 9 * - - 94 + - COUNT ( * ) + - 85
----
760

query I rowsort
SELECT - 23 + + 82
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT CASE - 58 WHEN + - 25 * + + 32 THEN + NULLIF ( - - 82, 58 ) * + 89 + - MAX( DISTINCT + 70 + + 94 * + 3 ) - + 91 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1647
SELECT CASE - 58 WHEN + - 25 * + + 32 THEN + NULLIF ( - - 82, 58 ) * + 89 + - MAX ( DISTINCT + 70 + + 94 * + 3 ) - + 91 ELSE NULL END col1
----
NULL

query I rowsort
SELECT + 5 - + + 82
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT + COALESCE ( 29, + - 31 ) DIV + 43
----
0

skipif mysql # not compatible
query I rowsort label-1649
SELECT + COALESCE ( 29, + - 31 ) / + 43
----
0

query I rowsort
SELECT ALL 46 * NULLIF ( + 41, + + 53 ) + + 24 AS col0
----
1910

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1652
SELECT ALL - 63 * 89 + - COUNT( * ) AS col0, 88 * - 83 AS col0
----
-5608
-7304

skipif mysql # not compatible
query II rowsort label-1652
SELECT ALL - 63 * 89 + - COUNT ( * ) AS col0, 88 * - 83 AS col0
----
-5608
-7304

query I rowsort
SELECT ALL CASE - 45 WHEN 77 * - + 99 THEN ( + + 96 ) WHEN - - 93 * - - 50 - 71 THEN NULL ELSE 82 * 0 END * 57
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1655
SELECT DISTINCT CAST( + COALESCE ( + + COUNT( * ), + - 43 * - COUNT( * ), - 67 ) AS SIGNED ) * - COUNT( * ) + - 46 * 71
----
-3267

skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT CAST ( + COALESCE ( + + COUNT ( * ), + - 43 * - COUNT ( * ), - 67 ) AS INTEGER ) * - COUNT ( * ) + - 46 * 71
----
-3267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT DISTINCT + COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col2
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-1658
SELECT + CAST ( NULL AS INTEGER ) * + 55 * + + 21
----
NULL

query I rowsort
SELECT - ( - 48 ) AS col0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT - 20 * - NULLIF ( 58, 49 ) + + - 88 + - + CAST( - 33 AS SIGNED ) + + + NULLIF ( 20, - 4 ) + 9 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 20 * - NULLIF ( 58, 49 ) + + - 88 + - + CAST ( - 33 AS INTEGER ) + + + NULLIF ( 20, - 4 ) + 9 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT MAX( - - 77 ) col2
----
77

skipif mysql # not compatible
query I rowsort label-1661
SELECT MAX ( - - 77 ) col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1662
SELECT + 27 + - - CAST( NULL AS SIGNED ) - + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT + 27 + - - CAST ( NULL AS INTEGER ) - + 43 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1663
SELECT - 32 * 87 * CAST( NULL AS SIGNED ) * - 46 AS col1, - 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-1663
SELECT - 32 * 87 * CAST ( NULL AS INTEGER ) * - 46 AS col1, - 86
----
NULL
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1664
SELECT DISTINCT COUNT( * ) - 3 * 79 - + 74 + 92 * 9, + 10 AS col0
----
518
10

skipif mysql # not compatible
query II rowsort label-1664
SELECT DISTINCT COUNT ( * ) - 3 * 79 - + 74 + 92 * 9, + 10 AS col0
----
518
10

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

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

query I rowsort
SELECT + - 26 + + 92 * + 85
----
7794

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

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

query I rowsort
SELECT ALL COALESCE ( - + 36, - 44, + ( - 26 ) )
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1669
SELECT - - 76 + - COUNT( * ) * - 10 AS col0, 18 * + 40 AS col2
----
86
720

skipif mysql # not compatible
query II rowsort label-1669
SELECT - - 76 + - COUNT ( * ) * - 10 AS col0, 18 * + 40 AS col2
----
86
720

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1670
SELECT ALL 93, 75 DIV - 76 + - 86 + COUNT( * ) DIV 40 col0
----
93
-86

skipif mysql # not compatible
query II rowsort label-1670
SELECT ALL 93, 75 / - 76 + - 86 + COUNT ( * ) / 40 col0
----
93
-86

query I rowsort
SELECT DISTINCT + 38 * - 37 * 72
----
-101232

query I rowsort
SELECT ALL + - 69 * - 39 AS col0
----
2691

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT - + 99 * + MAX( - - 30 )
----
-2970

skipif mysql # not compatible
query I rowsort label-1673
SELECT - + 99 * + MAX ( - - 30 )
----
-2970

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

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

query II rowsort
SELECT - 56 * - + 78 * + + 59 AS col2, 28 * 30
----
257712
840

query I rowsort
SELECT ALL - COALESCE ( - ( + - 84 ), 64 ) col1
----
-84

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1679
SELECT ALL 6 DIV - + ( 95 ) * + 34 + - 47 * 9 * - - 66
----
-27918

skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL 6 / - + ( 95 ) * + 34 + - 47 * 9 * - - 66
----
-27918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1680
SELECT DISTINCT + 22 DIV - 34 + - - CAST( + - MIN( ALL - 43 ) AS SIGNED ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT + 22 / - 34 + - - CAST ( + - MIN ( ALL - 43 ) AS INTEGER ) AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1681
SELECT - 88 * + - CAST( 47 AS SIGNED ) AS col1, 56 AS col0
----
4136
56

skipif mysql # not compatible
query II rowsort label-1681
SELECT - 88 * + - CAST ( 47 AS INTEGER ) AS col1, 56 AS col0
----
4136
56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1682
SELECT ALL 5 DIV - 84 + CAST( - - 62 AS SIGNED ) * 5 AS col1
----
310

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL 5 / - 84 + CAST ( - - 62 AS INTEGER ) * 5 AS col1
----
310

query I rowsort
SELECT - 99 * 18 AS col2
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + NULLIF ( - 75, + COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-1684
SELECT + NULLIF ( - 75, + COUNT ( * ) )
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT ( - CAST( 44 AS SIGNED ) )
----
-44

skipif mysql # not compatible
query I rowsort label-1685
SELECT ( - CAST ( 44 AS INTEGER ) )
----
-44

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

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

query I rowsort
SELECT 94 * - 32 + + 54
----
-2954

query I rowsort
SELECT ( ( 52 ) )
----
52

query I rowsort
SELECT ALL + 41 * + - 40 * - 53 + - 68
----
86852

query I rowsort
SELECT ALL - 8 * + 1 - + 55 * + + 73 AS col1
----
-4023

query I rowsort
SELECT - 16 * + 2 - - 77 * + - ( 96 ) + - 97 + + ( + - 46 ) + - - 7 col0
----
-7560

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + COUNT( * ) + - - 81 * + - 90 AS col2
----
-7289

skipif mysql # not compatible
query I rowsort label-1693
SELECT + COUNT ( * ) + - - 81 * + - 90 AS col2
----
-7289

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT CASE - 6 WHEN - 89 THEN NULL WHEN + + 30 + + COUNT( - 13 ) + 1 * + - 56 THEN + + 54 * 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT CASE - 6 WHEN - 89 THEN NULL WHEN + + 30 + + COUNT ( - 13 ) + 1 * + - 56 THEN + + 54 * 24 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT ALL + COUNT( * ) * + 72 - + 63 + - 94
----
-85

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL + COUNT ( * ) * + 72 - + 63 + - 94
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1696
SELECT ALL 91 * - CAST( NULL AS SIGNED ) * - 82
----
NULL

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL 91 * - CAST ( NULL AS INTEGER ) * - 82
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT DISTINCT - 27 * - COUNT( + + 40 ) * 26 * + - COUNT( * ) + - 85 + - ( 86 ) + 2
----
-871

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - 27 * - COUNT ( + + 40 ) * 26 * + - COUNT ( * ) + - 85 + - ( 86 ) + 2
----
-871

query I rowsort
SELECT ALL + 16 * - 81 AS col2
----
-1296

query I rowsort
SELECT 66 * - 34
----
-2244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1700
SELECT ALL NULLIF ( - 44, - COALESCE ( 32, + - COALESCE ( SUM( + + 86 ), ( + - MIN( ALL - 12 ) ) * - ( - 95 ) ) / + COALESCE ( CASE ( COUNT( * ) ) WHEN - MIN( ALL 82 ) * CAST( - COALESCE ( 59, + ( 53 ) ) + + COUNT( * ) AS SIGNED ) THEN NULL WHEN ( CAST( 58 AS SIGNED ) ) + 94 * - ( 89 ) THEN 6 * 14 END, COUNT( * ), + 40 * + 48 + 47 ), + 48 ) * 32 ) * COALESCE ( + 74, 79 ) col0
----
-3256

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL NULLIF ( - 44, - COALESCE ( 32, + - COALESCE ( SUM ( + + 86 ), ( + - MIN ( ALL - 12 ) ) * - ( - 95 ) ) / + COALESCE ( CASE ( COUNT ( * ) ) WHEN - MIN ( ALL 82 ) * CAST ( - COALESCE ( 59, + ( 53 ) ) + + COUNT ( * ) AS INTEGER ) THEN NULL WHEN ( CAST ( 58 AS INTEGER ) ) + 94 * - ( 89 ) THEN 6 * 14 END, COUNT ( * ), + 40 * + 48 + 47 ), + 48 ) * 32 ) * COALESCE ( + 74, 79 ) col0
----
-3256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT - 86 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1701
SELECT - 86 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 1, NULLIF ( ( - 83 ), + 94 ) ) * 73 + + 72
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-1703
SELECT DISTINCT + 9 * 92 + - COUNT( * )
----
827

skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT + 9 * 92 + - COUNT ( * )
----
827

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1705
SELECT ALL + CAST( - - 40 AS SIGNED ) * 57 AS col0
----
2280

skipif mysql # not compatible
query I rowsort label-1705
SELECT ALL + CAST ( - - 40 AS INTEGER ) * 57 AS col0
----
2280

query I rowsort
SELECT 12 - - - 7 * - 73 AS col2
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL SUM( + ( + NULLIF ( 79, + 19 ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL SUM ( + ( + NULLIF ( 79, + 19 ) ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT 60 + - 39 + - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-1708
SELECT 60 + - 39 + - COUNT ( * )
----
20

query I rowsort
SELECT 50 * + - 72 + + 26 AS col2
----
-3574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL 59 + + + CASE 73 WHEN - + CAST( - - 41 AS SIGNED ) THEN - 88 / - + 48 * - 96 + + + 59 - 76 WHEN 62 THEN + COUNT( - 12 ) * + 5 END * 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL 59 + + + CASE 73 WHEN - + CAST ( - - 41 AS INTEGER ) THEN - 88 / - + 48 * - 96 + + + 59 - 76 WHEN 62 THEN + COUNT ( - 12 ) * + 5 END * 1 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1711
SELECT - 29 + - 85 + + CASE - - 84 WHEN + 1 + - ( + 90 ) THEN + + 9 * + 83 + CAST( NULL AS SIGNED ) * AVG ( 71 * + 88 ) WHEN - 34 THEN ( 77 ) + 49 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1711
SELECT - 29 + - 85 + + CASE - - 84 WHEN + 1 + - ( + 90 ) THEN + + 9 * + 83 + CAST ( NULL AS INTEGER ) * AVG ( 71 * + 88 ) WHEN - 34 THEN ( 77 ) + 49 END AS col1
----
NULL

query I rowsort
SELECT ALL + 98 * - 46 col2
----
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT ALL 82 + - COUNT( ALL - 15 ) col0
----
81

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL 82 + - COUNT ( ALL - 15 ) col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1714
SELECT 5 + 47 * - - 12 AS col2, + COALESCE ( + COUNT( * ), - - COUNT( * ) DIV + 68, + + 87 * + SUM( DISTINCT + 38 ) )
----
569
1

skipif mysql # not compatible
query II rowsort label-1714
SELECT 5 + 47 * - - 12 AS col2, + COALESCE ( + COUNT ( * ), - - COUNT ( * ) / + 68, + + 87 * + SUM ( DISTINCT + 38 ) )
----
569
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT 8 * + 17 + - 98 * - 52 * 13 * - ( - + COUNT( * ) ) AS col1
----
66384

skipif mysql # not compatible
query I rowsort label-1715
SELECT 8 * + 17 + - 98 * - 52 * 13 * - ( - + COUNT ( * ) ) AS col1
----
66384

query I rowsort
SELECT 85 * - 90
----
-7650

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT - 12 DIV 3 + 7 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1717
SELECT - 12 / 3 + 7 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT ALL + 8 - NULLIF ( + 12, - CAST( NULL AS SIGNED ) ) + - 30 AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + 8 - NULLIF ( + 12, - CAST ( NULL AS INTEGER ) ) + - 30 AS col0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT 4 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT 4 / + 92
----
0

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

query I rowsort
SELECT ALL + 63 * - 83 AS col0
----
-5229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT DISTINCT - CASE - COUNT( * ) WHEN 95 * - CASE + ( - + 24 ) WHEN - - CAST( NULL AS SIGNED ) THEN 56 + - 65 END + + 43 - 23 * 25 * ( + 88 + - NULLIF ( + 47 + + 82, - 88 ) ) THEN - 72 - + 44 WHEN - 43 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 95 * - CASE + ( - + 24 ) WHEN - - CAST ( NULL AS INTEGER ) THEN 56 + - 65 END + + 43 - 23 * 25 * ( + 88 + - NULLIF ( + 47 + + 82, - 88 ) ) THEN - 72 - + 44 WHEN - 43 THEN NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT - 7, COALESCE ( - - 92, + 27 ) AS col0
----
-7
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1724
SELECT DISTINCT - MAX( CAST( - 31 AS SIGNED ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-1724
SELECT DISTINCT - MAX ( CAST ( - 31 AS INTEGER ) ) AS col0
----
31

query I rowsort
SELECT 47 + 24
----
71

query I rowsort
SELECT + 81 * 89 + + 17
----
7226

query I rowsort
SELECT - 44 * - + COALESCE ( 54, + - 95 ) AS col1
----
2376

query I rowsort
SELECT 11 + ( + - 63 ) * - ( - - 7 )
----
452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1729
SELECT + 54 - - + 80 + + 70 * + - COUNT( * ) + + 68 + + + 72 + + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) / 33 + - - NULLIF ( 24, - 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1729
SELECT + 54 - - + 80 + + 70 * + - COUNT ( * ) + + 68 + + + 72 + + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) / 33 + - - NULLIF ( 24, - 98 ) AS col0
----
NULL

query I rowsort
SELECT ALL CASE - + 43 WHEN - 62 * - + 65 + - 28 THEN NULL WHEN - 59 * - 26 + + 49 THEN 90 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + 11 + COUNT( * )
----
12

skipif mysql # not compatible
query I rowsort label-1731
SELECT + 11 + COUNT ( * )
----
12

query II rowsort
SELECT DISTINCT 62 col2, + 82 + 80 + - NULLIF ( - 99, + 56 / AVG ( + 91 ) + - + 98 ) - + - 67 AS col2
----
62
328

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1733
SELECT 80 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1733
SELECT 80 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1734
SELECT - COALESCE ( + + CASE - 54 WHEN + - 33 / - - 30 * + 69 * CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) - + + 29 / + + 26 THEN 49 WHEN 45 THEN NULL END, - 79 * NULLIF ( 70, - 87 * + 64 ) + 42, + CAST( COALESCE ( - 78, 74 + + 23 ) AS SIGNED ) ) AS col1
----
5488

skipif mysql # not compatible
query I rowsort label-1734
SELECT - COALESCE ( + + CASE - 54 WHEN + - 33 / - - 30 * + 69 * CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) - + + 29 / + + 26 THEN 49 WHEN 45 THEN NULL END, - 79 * NULLIF ( 70, - 87 * + 64 ) + 42, + CAST ( COALESCE ( - 78, 74 + + 23 ) AS INTEGER ) ) AS col1
----
5488

query I rowsort
SELECT DISTINCT + 86 + 67 + 35 * 79 * + ( - 82 ) * + + 11 AS col0
----
-2493877

query I rowsort
SELECT 29 * + + 40 * + 62 * 57 AS col2
----
4099440

query I rowsort
SELECT - 61 + ( 77 )
----
16

query I rowsort
SELECT ALL - 53 + + + 16
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT DISTINCT 35 * + 37 * - COUNT( DISTINCT + 75 )
----
-1295

skipif mysql # not compatible
query I rowsort label-1739
SELECT DISTINCT 35 * + 37 * - COUNT ( DISTINCT + 75 )
----
-1295

query II rowsort
SELECT - 40 AS col1, + 18 + 30 - + 53 + 86 - - 60 * + 10
----
-40
681

query I rowsort
SELECT 19 + - 37 * + 38 AS col2
----
-1387

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT NULLIF ( + + 0, + - 81 * 26 + + 73 + - COUNT( * ) * ( - 15 ) - - - 20 * - 38 - 84 * + 84 ) * 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1742
SELECT NULLIF ( + + 0, + - 81 * 26 + + 73 + - COUNT ( * ) * ( - 15 ) - - - 20 * - 38 - 84 * + 84 ) * 95 AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1743
SELECT CAST( NULL AS DECIMAL ) + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-1743
SELECT CAST ( NULL AS REAL ) + - 8
----
NULL

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

query II rowsort
SELECT ALL - 8 AS col1, - COALESCE ( - 31, + 88 )
----
-8
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + 27 * - + CASE - - MIN( DISTINCT - + 97 ) WHEN + 95 THEN NULL WHEN + + COUNT( * ) THEN - - 45 + + 12 + AVG ( ALL + 70 ) + - ( - 88 + 84 ) WHEN 54 THEN SUM( COALESCE ( + 67, 16 * + 22 ) ) ELSE NULL END + 56 * - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT + 27 * - + CASE - - MIN ( DISTINCT - + 97 ) WHEN + 95 THEN NULL WHEN + + COUNT ( * ) THEN - - 45 + + 12 + AVG ( ALL + 70 ) + - ( - 88 + 84 ) WHEN 54 THEN SUM ( COALESCE ( + 67, 16 * + 22 ) ) ELSE NULL END + 56 * - 56 AS col1
----
NULL

query II rowsort
SELECT ALL 43 AS col2, 30 * - 29 AS col0
----
43
-870

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1748
SELECT ALL 64 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL 64 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT 5 * - 22 * - NULLIF ( 70, 19 * - 78 + - NULLIF ( - 27, + 18 ) + + CAST( NULL AS SIGNED ) ) col0
----
7700

skipif mysql # not compatible
query I rowsort label-1749
SELECT 5 * - 22 * - NULLIF ( 70, 19 * - 78 + - NULLIF ( - 27, + 18 ) + + CAST ( NULL AS INTEGER ) ) col0
----
7700

query II rowsort
SELECT ALL 4 col1, + 23 AS col0
----
4
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT MIN( - - 23 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-1751
SELECT MIN ( - - 23 ) AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT 95 * 0 * + + SUM( ALL - + 39 ) * - COALESCE ( + CAST( - 64 AS SIGNED ), 99, - COUNT( * ) ) * + CAST( + 13 AS SIGNED ) * ( - COUNT( * ) ) - + 40 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-1752
SELECT 95 * 0 * + + SUM ( ALL - + 39 ) * - COALESCE ( + CAST ( - 64 AS INTEGER ), 99, - COUNT ( * ) ) * + CAST ( + 13 AS INTEGER ) * ( - COUNT ( * ) ) - + 40 AS col2
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT 30 * 67 DIV + 50 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-1753
SELECT 30 * 67 / + 50 AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT ALL - MAX( 7 ) col2
----
-7

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL - MAX ( 7 ) col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-1755
SELECT ALL ( - COALESCE ( 33, + - 72, + COUNT( * ) + + 77 ) ) * ( + 94 ) - 29, + 80 - + COUNT( * ) - + COUNT( * ) AS col2
----
-3131
78

skipif mysql # not compatible
query II rowsort label-1755
SELECT ALL ( - COALESCE ( 33, + - 72, + COUNT ( * ) + + 77 ) ) * ( + 94 ) - 29, + 80 - + COUNT ( * ) - + COUNT ( * ) AS col2
----
-3131
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT ALL + 54 * - MIN( - - 84 ) * + + COUNT( * ) + - 63 * - 12 - - 82 col0
----
-3698

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + 54 * - MIN ( - - 84 ) * + + COUNT ( * ) + - 63 * - 12 - - 82 col0
----
-3698

query I rowsort
SELECT + CASE - 90 WHEN 49 THEN NULL ELSE - 70 END AS col0
----
-70

query II rowsort
SELECT ALL - 65 AS col2, 8
----
-65
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1759
SELECT 39 DIV + + 67 * - + 47
----
0

skipif mysql # not compatible
query I rowsort label-1759
SELECT 39 / + + 67 * - + 47
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT + MAX( ALL - - 57 )
----
57

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT + MAX ( ALL - - 57 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT COUNT( - 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-1761
SELECT COUNT ( - 50 ) col2
----
1

query II rowsort
SELECT ALL + 5 AS col0, - 34 AS col0
----
5
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1763
SELECT - + 89 / + - 58 * + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1763
SELECT - + 89 / + - 58 * + + CAST ( NULL AS INTEGER ) col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT - CASE - 39 WHEN + COUNT( * ) - 6 + + 4 * - - COUNT( * ) + + COALESCE ( - 69, NULLIF ( + 24, + ( CASE + 76 WHEN 52 * 24 + - SUM( DISTINCT 92 ) THEN 66 WHEN + 65 THEN + 25 * - COALESCE ( + 87 * - 98, - 92 * + COUNT( * ) ) ELSE NULL END ) ) * 92 + AVG ( DISTINCT + 48 ) * 68 ) THEN 49 WHEN NULLIF ( 4, + 12 ) + - 54 THEN 49 WHEN ( + COALESCE ( + ( + COUNT( * ) ), + COUNT( * ) * + 62, - 72 ) ) THEN ( + 75 ) / 64 WHEN 28 + 29 THEN + 76 ELSE NULL END / 40 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT - CASE - 39 WHEN + COUNT ( * ) - 6 + + 4 * - - COUNT ( * ) + + COALESCE ( - 69, NULLIF ( + 24, + ( CASE + 76 WHEN 52 * 24 + - SUM ( DISTINCT 92 ) THEN 66 WHEN + 65 THEN + 25 * - COALESCE ( + 87 * - 98, - 92 * + COUNT ( * ) ) ELSE NULL END ) ) * 92 + AVG ( DISTINCT + 48 ) * 68 ) THEN 49 WHEN NULLIF ( 4, + 12 ) + - 54 THEN 49 WHEN ( + COALESCE ( + ( + COUNT ( * ) ), + COUNT ( * ) * + 62, - 72 ) ) THEN ( + 75 ) / 64 WHEN 28 + 29 THEN + 76 ELSE NULL END / 40 col1
----
NULL

query I rowsort
SELECT ALL + + 62 + 89 AS col0
----
151

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1768
SELECT DISTINCT - - 49 * + + SUM( + CAST( NULL AS DECIMAL ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - - 49 * + + SUM ( + CAST ( NULL AS REAL ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL + COUNT( + 97 ) + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + COUNT ( + 97 ) + 6 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL + 57 + - - CASE - 67 WHEN - 76 * CASE - - 0 WHEN SUM( 94 ) THEN + + 74 * + 70 - + 10 / 70 WHEN + 12 + + COUNT( * ) / 82 THEN NULL ELSE NULL END THEN - 44 END + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL + 57 + - - CASE - 67 WHEN - 76 * CASE - - 0 WHEN SUM ( 94 ) THEN + + 74 * + 70 - + 10 / 70 WHEN + 12 + + COUNT ( * ) / 82 THEN NULL ELSE NULL END THEN - 44 END + 58 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1771
SELECT - + 87 * + CASE 24 WHEN + CAST( + 60 AS SIGNED ) * NULLIF ( + + 57, + 64 ) THEN NULL WHEN - COUNT( * ) * - 16 / - COALESCE ( COUNT( - 17 ), CASE 14 WHEN + 67 THEN NULLIF ( - 44, + ( 1 ) * 96 ) + MAX( DISTINCT CAST( - 45 AS SIGNED ) ) WHEN 27 + 28 THEN 40 END ) THEN + COUNT( * ) ELSE - 91 END
----
7917

skipif mysql # not compatible
query I rowsort label-1771
SELECT - + 87 * + CASE 24 WHEN + CAST ( + 60 AS INTEGER ) * NULLIF ( + + 57, + 64 ) THEN NULL WHEN - COUNT ( * ) * - 16 / - COALESCE ( COUNT ( - 17 ), CASE 14 WHEN + 67 THEN NULLIF ( - 44, + ( 1 ) * 96 ) + MAX ( DISTINCT CAST ( - 45 AS INTEGER ) ) WHEN 27 + 28 THEN 40 END ) THEN + COUNT ( * ) ELSE - 91 END
----
7917

query II rowsort
SELECT DISTINCT + 16, + 93 AS col1
----
16
93

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

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

query I rowsort
SELECT - - COALESCE ( - 97, + 64 )
----
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1776
SELECT - 11 DIV - ( 85 ) + + NULLIF ( COALESCE ( + - 36, + 49 * 35 ), 43 ) - 39 DIV NULLIF ( COALESCE ( - 19, - 38 * - 69 - - 8 ), - 55 ) - 98 * 63 AS col0
----
-6208

skipif mysql # not compatible
query I rowsort label-1776
SELECT - 11 / - ( 85 ) + + NULLIF ( COALESCE ( + - 36, + 49 * 35 ), 43 ) - 39 / NULLIF ( COALESCE ( - 19, - 38 * - 69 - - 8 ), - 55 ) - 98 * 63 AS col0
----
-6208

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT ALL - + 90 + - 55 * COALESCE ( COUNT( * ), - - 46, + COUNT( - 45 ) * + 10 + + 49 + - 45 * 50 * - 79 ) + - 50 * - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - + 90 + - 55 * COALESCE ( COUNT ( * ), - - 46, + COUNT ( - 45 ) * + 10 + + 49 + - 45 * 50 * - 79 ) + - 50 * - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT ALL MIN( ALL 78 ) - - 74 AS col1
----
152

skipif mysql # not compatible
query I rowsort label-1778
SELECT ALL MIN ( ALL 78 ) - - 74 AS col1
----
152

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

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

query I rowsort
SELECT + 70 - + 52
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL MAX( ALL + ( + 54 ) ) * CASE - 11 WHEN ( + CASE - 26 WHEN + + COUNT( * ) * - 97 THEN 34 * + + 70 ELSE NULL END ) * + 8 THEN 35 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL MAX ( ALL + ( + 54 ) ) * CASE - 11 WHEN ( + CASE - 26 WHEN + + COUNT ( * ) * - 97 THEN 34 * + + 70 ELSE NULL END ) * + 8 THEN 35 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1782
SELECT - CAST( NULL AS SIGNED ) + + - 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1782
SELECT - CAST ( NULL AS INTEGER ) + + - 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT - NULLIF ( + - COUNT( DISTINCT - + 65 ), + 10 )
----
1

skipif mysql # not compatible
query I rowsort label-1783
SELECT - NULLIF ( + - COUNT ( DISTINCT - + 65 ), + 10 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1784
SELECT - CASE + 82 WHEN 8 THEN - NULLIF ( + COUNT( * ), - CAST( NULL AS SIGNED ) + + 41 ) + - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - CASE + 82 WHEN 8 THEN - NULLIF ( + COUNT ( * ), - CAST ( NULL AS INTEGER ) + + 41 ) + - 48 ELSE NULL END
----
NULL

query I rowsort
SELECT - NULLIF ( + 37, - + 68 ) + 10
----
-27

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

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

query I rowsort
SELECT - 10 + - 46 * + 30 AS col0
----
-1390

query I rowsort
SELECT + 16 * 26 AS col0
----
416

query I rowsort
SELECT ALL + NULLIF ( - 1, - 25 * - 0 / 85 ) * - - 3 AS col2
----
-3

query I rowsort
SELECT DISTINCT - 90 * + - 17 * 23
----
35190

query I rowsort
SELECT + 80 * 89 * + ( 20 )
----
142400

query I rowsort
SELECT ALL 86 * + ( + 47 )
----
4042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1793
SELECT + MIN( DISTINCT - 99 ) + - - 3 + + CAST( NULL AS SIGNED ) - + 93 + - 38 * + 57 * - 96 * + 23 + + COALESCE ( - 48, - 74 + - COUNT( * ), - COALESCE ( - 31, 90 + COUNT( * ) ) + 74 * ( MIN( ALL + 51 ) * + 31 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT + MIN ( DISTINCT - 99 ) + - - 3 + + CAST ( NULL AS INTEGER ) - + 93 + - 38 * + 57 * - 96 * + 23 + + COALESCE ( - 48, - 74 + - COUNT ( * ), - COALESCE ( - 31, 90 + COUNT ( * ) ) + 74 * ( MIN ( ALL + 51 ) * + 31 ) )
----
NULL

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

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

query II rowsort
SELECT 82 * - 60 + + + 88 AS col2, - 32 + + 48 AS col0
----
-4832
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT + 65 DIV - 75 + - 35 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-1796
SELECT + 65 / - 75 + - 35 AS col1
----
-35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1798
SELECT + CAST( - 91 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-1798
SELECT + CAST ( - 91 AS INTEGER ) AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT + COUNT( * ) + 95 AS col1
----
96

skipif mysql # not compatible
query I rowsort label-1799
SELECT + COUNT ( * ) + 95 AS col1
----
96

query I rowsort
SELECT + + CASE - ( - + ( + ( 23 ) ) ) WHEN 4 THEN - + CASE 10 WHEN - - 3 / - 42 THEN NULL WHEN - + 10 THEN + 49 END + 16 WHEN 36 THEN 73 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL MAX( ( + - 23 ) ) * + COUNT( ALL 68 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL MAX ( ( + - 23 ) ) * + COUNT ( ALL 68 ) AS col0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1802
SELECT + CAST( - 75 AS SIGNED ) * - 27
----
2025

skipif mysql # not compatible
query I rowsort label-1802
SELECT + CAST ( - 75 AS INTEGER ) * - 27
----
2025

onlyif mysql # aggregate syntax: 
query II rowsort label-1803
SELECT DISTINCT - COUNT( * ) * + 48 AS col1, 40 * + 30 * - 43
----
-48
-51600

skipif mysql # not compatible
query II rowsort label-1803
SELECT DISTINCT - COUNT ( * ) * + 48 AS col1, 40 * + 30 * - 43
----
-48
-51600

query I rowsort
SELECT ALL + 77 * NULLIF ( + 29, + 19 + - 54 * - - 32 ) AS col0
----
2233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT DISTINCT 80 * - 32 / + 56 * + + CAST( NULL AS SIGNED ) + ( - - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT 80 * - 32 / + 56 * + + CAST ( NULL AS INTEGER ) + ( - - 85 )
----
NULL

query II rowsort
SELECT - + 91 + - 93 AS col0, 62
----
-184
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1807
SELECT ALL CAST( NULL AS SIGNED ) * - 94 * 27 + + - 51 * - 40 + + 93 * COUNT( * ) AS col1, - 25 * - MIN( DISTINCT 78 ) AS col2
----
NULL
1950

skipif mysql # not compatible
query II rowsort label-1807
SELECT ALL CAST ( NULL AS INTEGER ) * - 94 * 27 + + - 51 * - 40 + + 93 * COUNT ( * ) AS col1, - 25 * - MIN ( DISTINCT 78 ) AS col2
----
NULL
1950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1808
SELECT - CAST( CAST( - 28 AS SIGNED ) AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-1808
SELECT - CAST ( CAST ( - 28 AS INTEGER ) AS INTEGER )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT + 38 * - 72 - - COUNT( * ) * 83 - ( + 55 ) * - 93 * + + COUNT( * ) + - COALESCE ( - 81, + COUNT( + CAST( NULL AS SIGNED ) ) ) * 84
----
9266

skipif mysql # not compatible
query I rowsort label-1809
SELECT + 38 * - 72 - - COUNT ( * ) * 83 - ( + 55 ) * - 93 * + + COUNT ( * ) + - COALESCE ( - 81, + COUNT ( + CAST ( NULL AS INTEGER ) ) ) * 84
----
9266

query I rowsort
SELECT - 56 * + 60 * 94 AS col2
----
-315840

onlyif mysql # DIV for integer division: 
query II rowsort label-1811
SELECT ALL + 61 DIV - + 46 AS col0, - 79 - - 14 AS col1
----
-1
-65

skipif mysql # not compatible
query II rowsort label-1811
SELECT ALL + 61 / - + 46 AS col0, - 79 - - 14 AS col1
----
-1
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1812
SELECT - MIN( DISTINCT - 0 ) + CASE 57 WHEN + 73 THEN 69 + 17 WHEN 23 + - 6 * + COUNT( - + 65 ) * + + 33 THEN NULL ELSE 16 DIV + 73 + - 40 END
----
-40

skipif mysql # not compatible
query I rowsort label-1812
SELECT - MIN ( DISTINCT - 0 ) + CASE 57 WHEN + 73 THEN 69 + 17 WHEN 23 + - 6 * + COUNT ( - + 65 ) * + + 33 THEN NULL ELSE 16 / + 73 + - 40 END
----
-40

query I rowsort
SELECT ALL - 68 * - - 67 - + 58 AS col1
----
-4614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + NULLIF ( + + NULLIF ( - COUNT( * ), - 73 ), + 37 * + - ( + 18 ) + - 94 + + CAST( + + 55 AS SIGNED ) + - NULLIF ( - 96, - 75 ) ) DIV 44 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + NULLIF ( + + NULLIF ( - COUNT ( * ), - 73 ), + 37 * + - ( + 18 ) + - 94 + + CAST ( + + 55 AS INTEGER ) + - NULLIF ( - 96, - 75 ) ) / 44 AS col1
----
0

query I rowsort
SELECT - - 64 + - - 62 AS col0
----
126

query I rowsort
SELECT - + 90 + 79 + + 90 * - 52
----
-4691

query I rowsort
SELECT - 47 + + 8
----
-39

query I rowsort
SELECT ALL - 76 - + 7 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT - MIN( + + 30 ) * + + 53 + + 52 AS col2
----
-1538

skipif mysql # not compatible
query I rowsort label-1819
SELECT - MIN ( + + 30 ) * + + 53 + + 52 AS col2
----
-1538

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT - 23 + - 70 - - CAST( + 7 AS SIGNED ) + 32 * 45
----
1354

skipif mysql # not compatible
query I rowsort label-1820
SELECT - 23 + - 70 - - CAST ( + 7 AS INTEGER ) + 32 * 45
----
1354

onlyif mysql # aggregate syntax: 
query II rowsort label-1821
SELECT - 0 AS col0, 28 + - COUNT( * )
----
0
27

skipif mysql # not compatible
query II rowsort label-1821
SELECT - 0 AS col0, 28 + - COUNT ( * )
----
0
27

query I rowsort
SELECT - 99 * - - 95 * + 12
----
-112860

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

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

query I rowsort
SELECT DISTINCT ( 25 ) AS col2
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1826
SELECT - MAX( DISTINCT + CASE - - 38 WHEN + + 74 THEN + 4 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1826
SELECT - MAX ( DISTINCT + CASE - - 38 WHEN + + 74 THEN + 4 END )
----
NULL

query I rowsort
SELECT 14 * 16
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT COUNT( * ) * 78 * - - 37 col0
----
2886

skipif mysql # not compatible
query I rowsort label-1828
SELECT COUNT ( * ) * 78 * - - 37 col0
----
2886

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1830
SELECT CASE + + 9 WHEN - 91 THEN - 79 ELSE COUNT( * ) + - 39 END / - ( 84 ) * - - CAST( NULL AS DECIMAL ) * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1830
SELECT CASE + + 9 WHEN - 91 THEN - 79 ELSE COUNT ( * ) + - 39 END / - ( 84 ) * - - CAST ( NULL AS REAL ) * + 93 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1831
SELECT ALL 32 + + + COALESCE ( - + 64, + + CAST( NULL AS SIGNED ) * 9 + - ( 41 ) ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL 32 + + + COALESCE ( - + 64, + + CAST ( NULL AS INTEGER ) * 9 + - ( 41 ) ) AS col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL 91 + + - 0 + - 9 + CASE - + 49 WHEN + 39 + + - ( + 81 ) THEN + - COUNT( DISTINCT + 64 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL 91 + + - 0 + - 9 + CASE - + 49 WHEN + 39 + + - ( + 81 ) THEN + - COUNT ( DISTINCT + 64 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT COUNT( * ) - 32 * + + 45 * - + 29 AS col2
----
41761

skipif mysql # not compatible
query I rowsort label-1833
SELECT COUNT ( * ) - 32 * + + 45 * - + 29 AS col2
----
41761

query II rowsort
SELECT 48, 84 + - ( 32 ) AS col0
----
48
52

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

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

query II rowsort
SELECT ALL - + 91 + + 82 * + 38, 2 AS col0
----
3025
2

query I rowsort
SELECT ALL - 17 + + 93 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1838
SELECT + CAST( + 47 AS SIGNED ) * - - CASE + 33 WHEN - + COUNT( * ) THEN - 84 + + + ( + - ( 95 ) ) WHEN ( + 51 ) * 99 + - COUNT( * ) THEN - 79 * 80 + + 42 ELSE NULL END + - 89 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1838
SELECT + CAST ( + 47 AS INTEGER ) * - - CASE + 33 WHEN - + COUNT ( * ) THEN - 84 + + + ( + - ( 95 ) ) WHEN ( + 51 ) * 99 + - COUNT ( * ) THEN - 79 * 80 + + 42 ELSE NULL END + - 89 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1839
SELECT DISTINCT 56 + 78 DIV + 26 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT 56 + 78 / + 26 AS col2
----
59

query I rowsort
SELECT + 99 * + - 78 * + 73 * + 75 + 32 * - - COALESCE ( - - 57, - 93 + + 93 )
----
-42276126

query I rowsort
SELECT + 4 - + 75 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT MAX( DISTINCT - + 43 ) + COUNT( * ) col2
----
-42

skipif mysql # not compatible
query I rowsort label-1842
SELECT MAX ( DISTINCT - + 43 ) + COUNT ( * ) col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1843
SELECT + + 71, + COUNT( DISTINCT 77 ) + - 76 * + - CAST( - 25 AS SIGNED ) col2
----
71
-1899

skipif mysql # not compatible
query II rowsort label-1843
SELECT + + 71, + COUNT ( DISTINCT 77 ) + - 76 * + - CAST ( - 25 AS INTEGER ) col2
----
71
-1899

query I rowsort
SELECT ALL - 74 - + 74 AS col2
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-1845
SELECT ALL - 16 * - 10 + - - SUM( 98 ) AS col1
----
258

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL - 16 * - 10 + - - SUM ( 98 ) AS col1
----
258

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

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

query I rowsort
SELECT 35 * - 73 AS col1
----
-2555

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

query I rowsort
SELECT ALL 86 - + + 1 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT 83 * + COUNT( DISTINCT + - 50 ) + - + 27 * 96 * + + COUNT( * )
----
-2509

skipif mysql # not compatible
query I rowsort label-1850
SELECT 83 * + COUNT ( DISTINCT + - 50 ) + - + 27 * 96 * + + COUNT ( * )
----
-2509

query II rowsort
SELECT - 15, 32 AS col2
----
-15
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT MAX( - 19 ) - + - 95 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1852
SELECT MAX ( - 19 ) - + - 95 AS col0
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1853
SELECT CAST( - 88 AS SIGNED ) DIV - MIN( - 8 ), CAST( NULL AS SIGNED ) col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-1853
SELECT CAST ( - 88 AS INTEGER ) / - MIN ( - 8 ), CAST ( NULL AS INTEGER ) col1
----
-11
NULL

query I rowsort
SELECT 34 * + + 4
----
136

query I rowsort
SELECT 43 * + 35 * - - 23 AS col2
----
34615

query I rowsort
SELECT NULLIF ( - - 67, + 16 + + - 58 ) * - - 90
----
6030

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1858
SELECT ALL 69 DIV 10 * COUNT( * ) * + + 32 AS col2, 88 * + 59 * - 85 AS col0
----
192
-441320

skipif mysql # not compatible
query II rowsort label-1858
SELECT ALL 69 / 10 * COUNT ( * ) * + + 32 AS col2, 88 * + 59 * - 85 AS col0
----
192
-441320

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT 33 * CASE SUM( NULLIF ( + 12, 73 ) ) WHEN + + 58 * + + NULLIF ( MIN( DISTINCT - 95 ), 95 / - - MIN( - 32 ) ) + + AVG ( - 63 ) THEN - 55 WHEN - MIN( + 30 ) + + 8 / COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT 33 * CASE SUM ( NULLIF ( + 12, 73 ) ) WHEN + + 58 * + + NULLIF ( MIN ( DISTINCT - 95 ), 95 / - - MIN ( - 32 ) ) + + AVG ( - 63 ) THEN - 55 WHEN - MIN ( + 30 ) + + 8 / COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1861
SELECT ALL + 18 + MAX( + 26 ) + + + 16 DIV - - 18 * 81 col0
----
44

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL + 18 + MAX ( + 26 ) + + + 16 / - - 18 * 81 col0
----
44

query I rowsort
SELECT COALESCE ( 63, - - 52 + 69 * - 84 + - 51 + - 57, + ( - 39 ) ) * - - NULLIF ( + 85, 17 )
----
5355

query I rowsort
SELECT 14 + + ( - + 76 ) AS col0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-1864
SELECT 49 - - COUNT( * ), - 11 - - CASE + AVG ( 6 ) WHEN - 22 + + 86 + 34 * + 69 THEN COUNT( + 94 ) END col2
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1864
SELECT 49 - - COUNT ( * ), - 11 - - CASE + AVG ( 6 ) WHEN - 22 + + 86 + 34 * + 69 THEN COUNT ( + 94 ) END col2
----
50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1865
SELECT ( + CAST( - COUNT( * ) AS SIGNED ) ) * + 32 * - 22
----
704

skipif mysql # not compatible
query I rowsort label-1865
SELECT ( + CAST ( - COUNT ( * ) AS INTEGER ) ) * + 32 * - 22
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1866
SELECT 59 * + COUNT( * ) * - COUNT( * ) * + 51 DIV - COUNT( * ), 31 AS col0
----
3009
31

skipif mysql # not compatible
query II rowsort label-1866
SELECT 59 * + COUNT ( * ) * - COUNT ( * ) * + 51 / - COUNT ( * ), 31 AS col0
----
3009
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT 29 + + COUNT( DISTINCT + 76 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-1867
SELECT 29 + + COUNT ( DISTINCT + 76 ) AS col1
----
30

query I rowsort
SELECT ALL - 55 + + 71
----
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1870
SELECT DISTINCT ( + CAST( + + ( CAST( - 83 AS SIGNED ) ) AS SIGNED ) ) * + - 7 * + 69 col0
----
40089

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT ( + CAST ( + + ( CAST ( - 83 AS INTEGER ) ) AS INTEGER ) ) * + - 7 * + 69 col0
----
40089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT ALL - CASE - - 48 WHEN - + 86 + 82 + 24 THEN AVG ( DISTINCT + + 41 ) WHEN - 78 * 67 * CAST( NULL AS SIGNED ) - + - 55 * + 28 * - 97 + 65 + + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - CASE - - 48 WHEN - + 86 + 82 + 24 THEN AVG ( DISTINCT + + 41 ) WHEN - 78 * 67 * CAST ( NULL AS INTEGER ) - + - 55 * + 28 * - 97 + 65 + + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + + CASE - + 22 WHEN + 29 THEN NULL WHEN - 6 - COUNT( * ) THEN NULL ELSE - COUNT( * ) END * + ( 29 ) - + + COUNT( * ) + + + 3 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-1872
SELECT + + CASE - + 22 WHEN + 29 THEN NULL WHEN - 6 - COUNT ( * ) THEN NULL ELSE - COUNT ( * ) END * + ( 29 ) - + + COUNT ( * ) + + + 3 AS col2
----
-27

query I rowsort
SELECT DISTINCT - NULLIF ( + + 60, - - 17 * - ( 0 ) ) * 14
----
-840

query I rowsort
SELECT 50 * 52 * + + 58
----
150800

query I rowsort
SELECT DISTINCT 90 - + 33 * 58
----
-1824

query II rowsort
SELECT DISTINCT - 67 * 81 AS col1, + 64 * ( + + 35 ) AS col1
----
-5427
2240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT + CAST( 91 AS SIGNED ) * - CASE - + NULLIF ( 67, - 3 * - 65 + + 76 ) WHEN + + COUNT( * ) * + + AVG ( + 21 ) / - 63 THEN + CAST( + - 22 AS SIGNED ) + - 13 ELSE NULL END * 79 + - 38 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT + CAST ( 91 AS INTEGER ) * - CASE - + NULLIF ( 67, - 3 * - 65 + + 76 ) WHEN + + COUNT ( * ) * + + AVG ( + 21 ) / - 63 THEN + CAST ( + - 22 AS INTEGER ) + - 13 ELSE NULL END * 79 + - 38 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT ALL - 34 * - CAST( - + 77 AS SIGNED ) col0
----
-2618

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - 34 * - CAST ( - + 77 AS INTEGER ) col0
----
-2618

onlyif mysql # DIV for integer division: 
query II rowsort label-1879
SELECT COALESCE ( + - 13, + - 93 ) * 84, + 4 + + - 63 DIV + NULLIF ( - 93, + 55 ) + - ( - - 22 ) AS col0
----
-1092
-18

skipif mysql # not compatible
query II rowsort label-1879
SELECT COALESCE ( + - 13, + - 93 ) * 84, + 4 + + - 63 / + NULLIF ( - 93, + 55 ) + - ( - - 22 ) AS col0
----
-1092
-18

query I rowsort
SELECT 96 + + + ( - 97 )
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT + MIN( + + 63 ) col2
----
63

skipif mysql # not compatible
query I rowsort label-1882
SELECT + MIN ( + + 63 ) col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1883
SELECT ALL - ( CAST( - 21 AS SIGNED ) ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - ( CAST ( - 21 AS INTEGER ) ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT + ( + 88 ) * ( COUNT( * ) ) + + + 4 * + 47 * - 96 col2
----
-17960

skipif mysql # not compatible
query I rowsort label-1884
SELECT + ( + 88 ) * ( COUNT ( * ) ) + + + 4 * + 47 * - 96 col2
----
-17960

query II rowsort
SELECT 5 + + 44 + - 50 AS col2, 59
----
-1
59

query I rowsort
SELECT 13 * + + 20 - + ( + 31 ) AS col1
----
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT ALL COUNT( + + CAST( ( - 86 ) AS SIGNED ) ) + + 76 + ( + - 84 ) * + - COUNT( ALL + 35 ) + - 69
----
92

skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL COUNT ( + + CAST ( ( - 86 ) AS INTEGER ) ) + + 76 + ( + - 84 ) * + - COUNT ( ALL + 35 ) + - 69
----
92

query I rowsort
SELECT DISTINCT 28 * + 94 AS col1
----
2632

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT + 40 DIV + 29 col2
----
1

skipif mysql # not compatible
query I rowsort label-1889
SELECT + 40 / + 29 col2
----
1

query I rowsort
SELECT + 57 + + 79 col0
----
136

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

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

query I rowsort
SELECT DISTINCT ( 69 ) + + 24 AS col1
----
93

query I rowsort
SELECT + 21 * + 74 AS col1
----
1554

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1894
SELECT - 71 col1, + 90 * - CAST( + ( - 88 ) AS SIGNED ) AS col1
----
-71
7920

skipif mysql # not compatible
query II rowsort label-1894
SELECT - 71 col1, + 90 * - CAST ( + ( - 88 ) AS INTEGER ) AS col1
----
-71
7920

query I rowsort
SELECT DISTINCT 50 + 27 AS col2
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-1896
SELECT 92, MIN( + 25 ) + + + COUNT( * ) AS col2
----
92
26

skipif mysql # not compatible
query II rowsort label-1896
SELECT 92, MIN ( + 25 ) + + + COUNT ( * ) AS col2
----
92
26

query I rowsort
SELECT ALL + 78 * + 83
----
6474

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

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL - 24 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1899
SELECT DISTINCT + COUNT( - - 82 ) + - 78 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT + COUNT ( - - 82 ) + - 78 * + CAST ( NULL AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1900
SELECT + SUM ( + 22 )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL + 56 * + 95 - + SUM( DISTINCT - + ( 97 ) ) + 11 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + 56 * + 95 - + SUM ( DISTINCT - + ( 97 ) ) + 11 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + 52 / - CASE + 18 WHEN 72 * 23 + 13 THEN - - 23 * - 3 WHEN - - MIN( - 35 ) THEN NULL WHEN - 10 * - COUNT( * ) + + 28 / 67 THEN NULL END - - COUNT( DISTINCT + 41 ) + + 97 * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-1902
SELECT + 52 / - CASE + 18 WHEN 72 * 23 + 13 THEN - - 23 * - 3 WHEN - - MIN ( - 35 ) THEN NULL WHEN - 10 * - COUNT ( * ) + + 28 / 67 THEN NULL END - - COUNT ( DISTINCT + 41 ) + + 97 * 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT - COALESCE ( CAST( NULL AS SIGNED ), + - 93 + - 56, + + MAX( + 19 ) + - 34 + - 16 - - - 63 )
----
149

skipif mysql # not compatible
query I rowsort label-1903
SELECT - COALESCE ( CAST ( NULL AS INTEGER ), + - 93 + - 56, + + MAX ( + 19 ) + - 34 + - 16 - - - 63 )
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1904
SELECT - + 60 - NULLIF ( - + SUM( - 79 ), - + 86 + + + COUNT( * ) ) * CASE COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN - 25 WHEN - 40 * + - 14 THEN NULL WHEN + CAST( + 73 AS SIGNED ) THEN + COUNT( * ) ELSE 27 + + 34 END DIV 1 + 27 AS col1
----
-4852

skipif mysql # not compatible
query I rowsort label-1904
SELECT - + 60 - NULLIF ( - + SUM ( - 79 ), - + 86 + + + COUNT ( * ) ) * CASE COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN - 25 WHEN - 40 * + - 14 THEN NULL WHEN + CAST ( + 73 AS INTEGER ) THEN + COUNT ( * ) ELSE 27 + + 34 END / 1 + 27 AS col1
----
-4852

query I rowsort
SELECT ALL + - CASE - 16 WHEN 62 * - 15 / - 89 + - 15 + + + 88 * + 57 THEN - 61 * 84 ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT - 2 - + + CASE + AVG ( + 16 ) WHEN 29 THEN + COUNT( * ) - CAST( ( - ( - ( - 75 ) ) ) AS SIGNED ) * NULLIF ( 31, - 4 ) END * - 30 + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1907
SELECT - 2 - + + CASE + AVG ( + 16 ) WHEN 29 THEN + COUNT ( * ) - CAST ( ( - ( - ( - 75 ) ) ) AS INTEGER ) * NULLIF ( 31, - 4 ) END * - 30 + 55 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1908
SELECT - - 33 DIV + - 94 + + 49
----
49

skipif mysql # not compatible
query I rowsort label-1908
SELECT - - 33 / + - 94 + + 49
----
49

query I rowsort
SELECT - - 27 * - 44
----
-1188

query I rowsort
SELECT ALL - + 56 * - - 47 * - + 85
----
223720

query I rowsort
SELECT + 34 + - 59
----
-25

query I rowsort
SELECT DISTINCT + 31 * 61
----
1891

query I rowsort
SELECT ALL - - 81 * - ( + 61 ) * + 75 AS col1
----
-370575

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT - CASE - + ( + - 47 ) WHEN - 13 / 97 THEN + ( - + COUNT( + - 61 ) ) WHEN + 5 THEN NULL ELSE NULL END * - - 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1914
SELECT - CASE - + ( + - 47 ) WHEN - 13 / 97 THEN + ( - + COUNT ( + - 61 ) ) WHEN + 5 THEN NULL ELSE NULL END * - - 30 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1915
SELECT ALL + 34 * 45 * ( 10 ) DIV 20 + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) + + + 26 * + 46 * + 5 * - 2
----
766
NULL

skipif mysql # not compatible
query II rowsort label-1915
SELECT ALL + 34 * 45 * ( 10 ) / 20 + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) + + + 26 * + 46 * + 5 * - 2
----
766
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1916
SELECT COUNT( * ) AS col2, COUNT( * ) + 82
----
1
83

skipif mysql # not compatible
query II rowsort label-1916
SELECT COUNT ( * ) AS col2, COUNT ( * ) + 82
----
1
83

query I rowsort
SELECT + 58 * 99
----
5742

query I rowsort
SELECT - 28 * + + 91
----
-2548

query I rowsort
SELECT ALL ( - 74 ) + 38 AS col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT - 22 - + CAST( + - 11 AS SIGNED ) - COUNT( 95 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 22 - + CAST ( + - 11 AS INTEGER ) - COUNT ( 95 ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-1921
SELECT SUM( ALL + 46 ) AS col2, - 68
----
46
-68

skipif mysql # not compatible
query II rowsort label-1921
SELECT SUM ( ALL + 46 ) AS col2, - 68
----
46
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT - 98 + - - COUNT( * ) + + 95
----
-2

skipif mysql # not compatible
query I rowsort label-1922
SELECT - 98 + - - COUNT ( * ) + + 95
----
-2

query I rowsort
SELECT ALL 9 * - + NULLIF ( + 33, + 48 + + + 30 )
----
-297

query I rowsort
SELECT ALL + ( + + 20 ) + + - ( - COALESCE ( + ( 64 ), 56 ) )
----
84

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

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

query I rowsort
SELECT + 68 - + 47 AS col1
----
21

query I rowsort
SELECT ALL 74 * + - 43
----
-3182

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL MAX( + 94 )
----
94

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL MAX ( + 94 )
----
94

query I rowsort
SELECT + ( + 11 ) - + 55
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT + 14 + - + COUNT( ALL 12 ) + 35
----
48

skipif mysql # not compatible
query I rowsort label-1930
SELECT + 14 + - + COUNT ( ALL 12 ) + 35
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1931
SELECT + COUNT( * ) - + + MAX( DISTINCT - 7 ) * - 88, + 13 + ( - - 83 ) AS col2
----
-615
96

skipif mysql # not compatible
query II rowsort label-1931
SELECT + COUNT ( * ) - + + MAX ( DISTINCT - 7 ) * - 88, + 13 + ( - - 83 ) AS col2
----
-615
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT + MAX( DISTINCT + 57 ) * - CASE + + SUM( DISTINCT 89 ) WHEN - COUNT( * ) - - - 80 THEN 93 ELSE NULL END * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1933
SELECT + MAX ( DISTINCT + 57 ) * - CASE + + SUM ( DISTINCT 89 ) WHEN - COUNT ( * ) - - - 80 THEN 93 ELSE NULL END * - 53
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1934
SELECT ALL CAST( + 29 AS SIGNED ) AS col2, 92 - - NULLIF ( + 18, + 82 ) AS col1
----
29
110

skipif mysql # not compatible
query II rowsort label-1934
SELECT ALL CAST ( + 29 AS INTEGER ) AS col2, 92 - - NULLIF ( + 18, + 82 ) AS col1
----
29
110

query I rowsort
SELECT + + 64 + - 86
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1937
SELECT ALL 63 / - - CAST( NULL AS SIGNED ) * - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL 63 / - - CAST ( NULL AS INTEGER ) * - 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1938
SELECT DISTINCT + 97 col1, - 46 * COUNT( * ) AS col1
----
97
-46

skipif mysql # not compatible
query II rowsort label-1938
SELECT DISTINCT + 97 col1, - 46 * COUNT ( * ) AS col1
----
97
-46

query I rowsort
SELECT ALL + 28 * + 58 AS col2
----
1624

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1941
SELECT ALL + COUNT( * ) DIV - 33 - - 41 + - - CAST( - + 97 AS SIGNED )
----
-56

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL + COUNT ( * ) / - 33 - - 41 + - - CAST ( - + 97 AS INTEGER )
----
-56

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

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

query I rowsort
SELECT 48 * 99 + - + 32
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - CASE 21 WHEN 47 THEN + + ( 68 ) + COUNT( * ) WHEN + + 2 * COUNT( * ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT - CASE 21 WHEN 47 THEN + + ( 68 ) + COUNT ( * ) WHEN + + 2 * COUNT ( * ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1945
SELECT + 94 col0, - COUNT( * ) + COUNT( * ) AS col0
----
94
0

skipif mysql # not compatible
query II rowsort label-1945
SELECT + 94 col0, - COUNT ( * ) + COUNT ( * ) AS col0
----
94
0

query II rowsort
SELECT + 78 AS col0, 29 * + - 99 col0
----
78
-2871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT - + COUNT( * ) * + + 73 + + - CASE + 81 WHEN + ( + + 70 ) * - - COUNT( * ) + - 59 THEN - COALESCE ( - 11, ( - 76 ) / + 14 + COUNT( * ) * CAST( NULL AS SIGNED ), 29 ) ELSE NULL END * 56 + - 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1947
SELECT - + COUNT ( * ) * + + 73 + + - CASE + 81 WHEN + ( + + 70 ) * - - COUNT ( * ) + - 59 THEN - COALESCE ( - 11, ( - 76 ) / + 14 + COUNT ( * ) * CAST ( NULL AS INTEGER ), 29 ) ELSE NULL END * 56 + - 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1948
SELECT ALL + 79 DIV + 94 + + + 69 * - ( + - 1 ) * NULLIF ( + 11, - COUNT( * ) ) * + COUNT( DISTINCT + 68 ) * + SUM( - 66 ) + COUNT( * ) + + 97 - 2 AS col1
----
-49998

skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL + 79 / + 94 + + + 69 * - ( + - 1 ) * NULLIF ( + 11, - COUNT ( * ) ) * + COUNT ( DISTINCT + 68 ) * + SUM ( - 66 ) + COUNT ( * ) + + 97 - 2 AS col1
----
-49998

onlyif mysql # DIV for integer division: 
query I rowsort label-1949
SELECT ALL + 43 DIV - + 90 + - 98
----
-98

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 43 / - + 90 + - 98
----
-98

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

skipif mysql # not compatible
query II rowsort label-1950
SELECT + + COUNT ( * ) AS col0, + 29
----
1
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1951
SELECT ALL - CAST( 57 AS SIGNED ) + + 85
----
28

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - CAST ( 57 AS INTEGER ) + + 85
----
28

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

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

query I rowsort
SELECT - 21 * 72 + + - 31 AS col1
----
-1543

query I rowsort
SELECT 59 * - 97 + - 45 AS col1
----
-5768

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1955
SELECT 87 * 91 * - 83 + + COUNT( * ) - - + 69, - 46 + + 2 DIV SUM( DISTINCT - 48 ) AS col1
----
-657041
-46

skipif mysql # not compatible
query II rowsort label-1955
SELECT 87 * 91 * - 83 + + COUNT ( * ) - - + 69, - 46 + + 2 / SUM ( DISTINCT - 48 ) AS col1
----
-657041
-46

query I rowsort
SELECT 33 * - - 42 * 80
----
110880

query I rowsort
SELECT 39 + - 42
----
-3

query I rowsort
SELECT ALL - 96 * + 98 AS col0
----
-9408

query I rowsort
SELECT 49 + + 98 * - 53 AS col2
----
-5145

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1961
SELECT DISTINCT + MAX( + 2 ) * - - 6, 99 AS col0
----
12
99

skipif mysql # not compatible
query II rowsort label-1961
SELECT DISTINCT + MAX ( + 2 ) * - - 6, 99 AS col0
----
12
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT ALL 62 - + CASE - + 1 WHEN + COUNT( * ) + 89 * 9 + + 60 THEN NULL WHEN - + 67 THEN NULL WHEN + 77 * - MIN( - 89 ) THEN 92 END + + + SUM( DISTINCT + + 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL 62 - + CASE - + 1 WHEN + COUNT ( * ) + 89 * 9 + + 60 THEN NULL WHEN - + 67 THEN NULL WHEN + 77 * - MIN ( - 89 ) THEN 92 END + + + SUM ( DISTINCT + + 39 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1963
SELECT ALL - 97 * + 8 * 26 * - COUNT( * ) * - 60 * - + 86 * COUNT( * ) DIV + CAST( + COUNT( * ) AS SIGNED )
----
104108160

skipif mysql # not compatible
query I rowsort label-1963
SELECT ALL - 97 * + 8 * 26 * - COUNT ( * ) * - 60 * - + 86 * COUNT ( * ) / + CAST ( + COUNT ( * ) AS INTEGER )
----
104108160

query I rowsort
SELECT ALL + 24 - - + 40 + - + 38 - + 76
----
-50

query I rowsort
SELECT DISTINCT 79 * - 57
----
-4503

query I rowsort
SELECT + 88 + 30 AS col2
----
118

query I rowsort
SELECT - 66 + - 68 * + 66 + + + 0
----
-4554

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT 36 + + + SUM( 5 ) * ( + COUNT( * ) )
----
41

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT 36 + + + SUM ( 5 ) * ( + COUNT ( * ) )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1969
SELECT + - 61 DIV + 99 + - 74 - - MAX( ALL + 88 ) + ( 15 ) DIV 56 * - + 30 * + 75
----
14

skipif mysql # not compatible
query I rowsort label-1969
SELECT + - 61 / + 99 + - 74 - - MAX ( ALL + 88 ) + ( 15 ) / 56 * - + 30 * + 75
----
14

query I rowsort
SELECT DISTINCT + 94 + - 71 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT + 46 * - 46 * - 7 - + - COUNT( ALL + 27 ) * - - 84 AS col2
----
14896

skipif mysql # not compatible
query I rowsort label-1971
SELECT + 46 * - 46 * - 7 - + - COUNT ( ALL + 27 ) * - - 84 AS col2
----
14896

onlyif mysql # aggregate syntax: 
query II rowsort label-1972
SELECT DISTINCT + 14 + MAX( ALL - - 90 ) * 85 - - + 72 + + SUM( ALL - - 83 ) AS col2, 24
----
7819
24

skipif mysql # not compatible
query II rowsort label-1972
SELECT DISTINCT + 14 + MAX ( ALL - - 90 ) * 85 - - + 72 + + SUM ( ALL - - 83 ) AS col2, 24
----
7819
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1973
SELECT ALL - + 26 + + - NULLIF ( + 95, 70 ) - + 42 AS col1, + CAST( NULL AS SIGNED ) AS col1
----
-163
NULL

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL - + 26 + + - NULLIF ( + 95, 70 ) - + 42 AS col1, + CAST ( NULL AS INTEGER ) AS col1
----
-163
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT - COUNT( * ) + - 45 * ( + + 53 )
----
-2386

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - COUNT ( * ) + - 45 * ( + + 53 )
----
-2386

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1976
SELECT COUNT( * ) * 66
----
66

skipif mysql # not compatible
query I rowsort label-1976
SELECT COUNT ( * ) * 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL CASE - - 30 WHEN - 75 THEN NULL WHEN + 93 * + + NULLIF ( + COALESCE ( - 43, - + 38 ), - 57 + - 77 * - + 69 + NULLIF ( - 42, + 5 * - 6 ) ) + + COUNT( * ) * - 12 * 16 * 7 + + 91 THEN 71 + - 78 END * + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL CASE - - 30 WHEN - 75 THEN NULL WHEN + 93 * + + NULLIF ( + COALESCE ( - 43, - + 38 ), - 57 + - 77 * - + 69 + NULLIF ( - 42, + 5 * - 6 ) ) + + COUNT ( * ) * - 12 * 16 * 7 + + 91 THEN 71 + - 78 END * + 5
----
NULL

query I rowsort
SELECT ALL + 55 - - ( + + 77 ) * - + 74 AS col1
----
-5643

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT 68 * NULLIF ( ( COUNT( * ) ), 61 + + 92 * 84 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1980
SELECT 68 * NULLIF ( ( COUNT ( * ) ), 61 + + 92 * 84 ) AS col1
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1981
SELECT ( + 16 ) * - - CAST( MAX( 88 ) AS SIGNED ) col0
----
1408

skipif mysql # not compatible
query I rowsort label-1981
SELECT ( + 16 ) * - - CAST ( MAX ( 88 ) AS INTEGER ) col0
----
1408

query I rowsort
SELECT 48 + 63
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT 55 - MAX( DISTINCT 6 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-1983
SELECT 55 - MAX ( DISTINCT 6 ) AS col1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1984
SELECT CAST( - 22 AS SIGNED ) * 88 * CASE 28 WHEN + 46 THEN - 45 / + 65 * - 49 END * - COUNT( * ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1984
SELECT CAST ( - 22 AS INTEGER ) * 88 * CASE 28 WHEN + 46 THEN - 45 / + 65 * - 49 END * - COUNT ( * ) + - 19
----
NULL

query I rowsort
SELECT 93 * + 99
----
9207

query I rowsort
SELECT 64 - + NULLIF ( + 91, + + 55 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1987
SELECT COUNT( * ) / NULLIF ( - - 10, ( - 62 ) ) / + 32 + CAST( NULL AS SIGNED ) + - CAST( + 76 AS SIGNED ) + + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1987
SELECT COUNT ( * ) / NULLIF ( - - 10, ( - 62 ) ) / + 32 + CAST ( NULL AS INTEGER ) + - CAST ( + 76 AS INTEGER ) + + 37 AS col1
----
NULL

query I rowsort
SELECT ALL + 20 * - 70
----
-1400

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT 74 + - + 55 + + + COUNT( - 18 ) + + 75
----
95

skipif mysql # not compatible
query I rowsort label-1990
SELECT 74 + - + 55 + + + COUNT ( - 18 ) + + 75
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1991
SELECT DISTINCT 49 DIV + 42
----
1

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT 49 / + 42
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT - 15 DIV - + 38 * + + 13 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 15 / - + 38 * + + 13 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT - ( + - MIN( - 29 ) ) - 19
----
-48

skipif mysql # not compatible
query I rowsort label-1993
SELECT - ( + - MIN ( - 29 ) ) - 19
----
-48

query I rowsort
SELECT - 72 + + - 94 AS col0
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT 39 - - + CASE + 33 WHEN - 3 THEN - + COUNT( * ) * + 51 END + - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1995
SELECT 39 - - + CASE + 33 WHEN - 3 THEN - + COUNT ( * ) * + 51 END + - 40 col0
----
NULL

query II rowsort
SELECT - 45, + 60 AS col1
----
-45
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1997
SELECT MIN( ALL 50 ) DIV - 5 + + 65 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1997
SELECT MIN ( ALL 50 ) / - 5 + + 65 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1998
SELECT ALL + - MIN( 29 ) + + + ( 45 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1998
SELECT ALL + - MIN ( 29 ) + + + ( 45 ) AS col0
----
16

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2000
SELECT ALL + 65 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL + 65 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT COUNT( * ) + - 91 * + 53 + - 19 * - 40
----
-4062

skipif mysql # not compatible
query I rowsort label-2001
SELECT COUNT ( * ) + - 91 * + 53 + - 19 * - 40
----
-4062

query II rowsort
SELECT + + 42, + 62 AS col0
----
42
62

query I rowsort
SELECT + 67 * + - 85 AS col2
----
-5695

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-2004
SELECT DISTINCT + MIN( 41 ) * 51 + + - 22 + - COALESCE ( ( - + 40 ), 42, - COUNT( * ) ) + - COUNT( * ) * + COUNT( * ) DIV ( MAX( ALL - 42 ) ) + NULLIF ( + + NULLIF ( - SUM( DISTINCT + 85 ), + 61 ), CAST( NULL AS DECIMAL ) ) AS col1
----
2024

skipif mysql # not compatible
query I rowsort label-2004
SELECT DISTINCT + MIN ( 41 ) * 51 + + - 22 + - COALESCE ( ( - + 40 ), 42, - COUNT ( * ) ) + - COUNT ( * ) * + COUNT ( * ) / ( MAX ( ALL - 42 ) ) + NULLIF ( + + NULLIF ( - SUM ( DISTINCT + 85 ), + 61 ), CAST ( NULL AS REAL ) ) AS col1
----
2024

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2005
SELECT 51, - COALESCE ( - 86, + COUNT( * ) DIV + 44 ) * 11 AS col0
----
51
946

skipif mysql # not compatible
query II rowsort label-2005
SELECT 51, - COALESCE ( - 86, + COUNT ( * ) / + 44 ) * 11 AS col0
----
51
946

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2006
SELECT - 5 * CAST( - - 13 AS SIGNED )
----
-65

skipif mysql # not compatible
query I rowsort label-2006
SELECT - 5 * CAST ( - - 13 AS INTEGER )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT - 23 + + SUM( ALL + 63 )
----
40

skipif mysql # not compatible
query I rowsort label-2007
SELECT - 23 + + SUM ( ALL + 63 )
----
40

query II rowsort
SELECT ALL - 48 * - + 56 - - ( 87 ) AS col0, - 18 AS col1
----
2775
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT DISTINCT + CASE + 1 WHEN + 36 THEN - ( + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT + CASE + 1 WHEN + 36 THEN - ( + COUNT ( * ) ) END AS col2
----
NULL

query I rowsort
SELECT + 37 * + 56 + - 1
----
2071

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2011
SELECT ALL 51 / - CAST( NULL AS SIGNED ) * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL 51 / - CAST ( NULL AS INTEGER ) * 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT + ( COUNT( * ) ) + - CASE + 60 WHEN NULLIF ( + 36, - - COUNT( DISTINCT + + 41 ) ) / + - 71 THEN NULL WHEN 4 THEN - - COUNT( * ) + + 98 * + + 53 / - 54 + + SUM( - 97 ) END + 36 * - - ( 52 ) * 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT + ( COUNT ( * ) ) + - CASE + 60 WHEN NULLIF ( + 36, - - COUNT ( DISTINCT + + 41 ) ) / + - 71 THEN NULL WHEN 4 THEN - - COUNT ( * ) + + 98 * + + 53 / - 54 + + SUM ( - 97 ) END + 36 * - - ( 52 ) * 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2013
SELECT + 9 + + 32 - + 54 * ( - 80 ) * + 32 + - 87 * 57 / - + 40 + + 63 + 71 + + + CAST( NULL AS SIGNED ) * + - 92 * COUNT( * ) * - - CASE + 73 WHEN - - COUNT( ALL + ( - CAST( NULL AS SIGNED ) ) ) THEN 77 * 4 + 55 * 98 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2013
SELECT + 9 + + 32 - + 54 * ( - 80 ) * + 32 + - 87 * 57 / - + 40 + + 63 + 71 + + + CAST ( NULL AS INTEGER ) * + - 92 * COUNT ( * ) * - - CASE + 73 WHEN - - COUNT ( ALL + ( - CAST ( NULL AS INTEGER ) ) ) THEN 77 * 4 + 55 * 98 END AS col1
----
NULL

query I rowsort
SELECT - 15 - - - 90 AS col0
----
-105

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2015
SELECT - 73 * + 17, NULLIF ( - 77, CAST( NULL AS SIGNED ) * 14 - 23 ) DIV + 25 AS col1
----
-1241
-3

skipif mysql # not compatible
query II rowsort label-2015
SELECT - 73 * + 17, NULLIF ( - 77, CAST ( NULL AS INTEGER ) * 14 - 23 ) / + 25 AS col1
----
-1241
-3

query I rowsort
SELECT ALL 91 * + - 15 AS col0
----
-1365

query I rowsort
SELECT DISTINCT 8 * - - 5 AS col1
----
40

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL 73 + COUNT( * ) col0
----
74

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 73 + COUNT ( * ) col0
----
74

query I rowsort
SELECT - 12 + + 42 AS col1
----
30

query I rowsort
SELECT + 70 * - - 93
----
6510

query II rowsort
SELECT - 39 + + 7 AS col1, + 2
----
-32
2

query I rowsort
SELECT DISTINCT - - 97 + 20
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT - ( - - COUNT( ALL 54 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2024
SELECT - ( - - COUNT ( ALL 54 ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2025
SELECT - + 0 * + CAST( NULL AS SIGNED ) AS col2, - 36 AS col0
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-2025
SELECT - + 0 * + CAST ( NULL AS INTEGER ) AS col2, - 36 AS col0
----
NULL
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2026
SELECT ALL + ( + ( CAST( NULL AS SIGNED ) ) ) + - AVG ( DISTINCT 76 ) + CAST( NULL AS SIGNED ) * - - CASE ( - COUNT( * ) ) WHEN 81 THEN NULL ELSE 92 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL + ( + ( CAST ( NULL AS INTEGER ) ) ) + - AVG ( DISTINCT 76 ) + CAST ( NULL AS INTEGER ) * - - CASE ( - COUNT ( * ) ) WHEN 81 THEN NULL ELSE 92 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT DISTINCT COUNT( ALL - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT COUNT ( ALL - 24 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL - + 55 + - + 21 + ( + ( ( MAX( DISTINCT CASE - COALESCE ( - ( 32 ), 62 * + 32 + + + 52 + - 48 ) WHEN 34 THEN + + 41 END ) ) ) ) + - - 47 + + CASE - 47 WHEN 53 * 77 THEN NULL WHEN - COUNT( * ) THEN - 41 ELSE + ( + COUNT( * ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL - + 55 + - + 21 + ( + ( ( MAX ( DISTINCT CASE - COALESCE ( - ( 32 ), 62 * + 32 + + + 52 + - 48 ) WHEN 34 THEN + + 41 END ) ) ) ) + - - 47 + + CASE - 47 WHEN 53 * 77 THEN NULL WHEN - COUNT ( * ) THEN - 41 ELSE + ( + COUNT ( * ) ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT - NULLIF ( + 43, + COUNT( * ) ) * - 91 + + 81
----
3994

skipif mysql # not compatible
query I rowsort label-2029
SELECT - NULLIF ( + 43, + COUNT ( * ) ) * - 91 + + 81
----
3994

query I rowsort
SELECT ALL + 53 * 96 AS col2
----
5088

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT - COALESCE ( SUM( - 61 ), + + 80 )
----
61

skipif mysql # not compatible
query I rowsort label-2032
SELECT - COALESCE ( SUM ( - 61 ), + + 80 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2033
SELECT - MIN( ALL + 12 ) DIV 60 + + 32 - + 94 AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-2033
SELECT - MIN ( ALL + 12 ) / 60 + + 32 - + 94 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-2034
SELECT DISTINCT + COUNT( * ) AS col2, 43
----
1
43

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

query II rowsort
SELECT - 58 - - 76 * + + 89 col2, + 52
----
6706
52

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

query II rowsort
SELECT ALL 46 * + 56 * - 0 AS col1, 34 AS col1
----
0
34

query I rowsort
SELECT - 51 * 74 AS col1
----
-3774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2039
SELECT ALL + COALESCE ( - CASE - 82 WHEN + COUNT( * ) THEN - COUNT( * ) * + 78 + + COUNT( * ) * - MIN( 96 ) DIV 82 WHEN 50 * ( + 47 ) + + 71 THEN + COUNT( * ) + - - 7 DIV - 62 * + + 2 END, CASE WHEN ( NULL ) IS NULL THEN 87 END * 78, + 65 * - 5 )
----
6786

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + COALESCE ( - CASE - 82 WHEN + COUNT ( * ) THEN - COUNT ( * ) * + 78 + + COUNT ( * ) * - MIN ( 96 ) / 82 WHEN 50 * ( + 47 ) + + 71 THEN + COUNT ( * ) + - - 7 / - 62 * + + 2 END, CASE WHEN ( NULL ) IS NULL THEN 87 END * 78, + 65 * - 5 )
----
6786

query I rowsort
SELECT - 15 * + 20
----
-300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT + 21 * + COUNT( + 23 ) * 58 / 74 * - CAST( NULL AS SIGNED ) * - 41 / - 91 * + - 66 * 25 - - 45 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT + 21 * + COUNT ( + 23 ) * 58 / 74 * - CAST ( NULL AS INTEGER ) * - 41 / - 91 * + - 66 * 25 - - 45 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 45 * 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query III rowsort label-2043
SELECT ALL + 29, - 20 - - + ( - - COALESCE ( 52, + 55 ) ) + + 30 DIV 82 AS col2, - 13 + - - 62 * + 76 * - 75 * - + 3 AS col1
----
29
32
1060187

skipif mysql # not compatible
query III rowsort label-2043
SELECT ALL + 29, - 20 - - + ( - - COALESCE ( 52, + 55 ) ) + + 30 / 82 AS col2, - 13 + - - 62 * + 76 * - 75 * - + 3 AS col1
----
29
32
1060187

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

skipif mysql # not compatible
query I rowsort label-2044
SELECT + SUM ( + 38 )
----
38

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

skipif mysql # not compatible
query I rowsort label-2045
SELECT + 74 / COUNT ( * ) AS col1
----
74

query I rowsort
SELECT - 85 * - - 75 AS col0
----
-6375

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

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

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

query I rowsort
SELECT ALL 38 * - + 3 * - 84 + - + 82 + + 52
----
9546

query I rowsort
SELECT DISTINCT 7 * + 26 + 66
----
248

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + 90 + + COUNT( * ) + + 32 * 31
----
1083

skipif mysql # not compatible
query I rowsort label-2052
SELECT + 90 + + COUNT ( * ) + + 32 * 31
----
1083

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT + SUM( + - 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT + SUM ( + - 11 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT 91 - - - 58
----
33

query I rowsort
SELECT - + COALESCE ( + + 54, + ( - 96 ) ) AS col2
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT COALESCE ( - + SUM( ALL + 93 ), 88 DIV + 19 * 12 * + COUNT( * ) ) + - 31
----
-124

skipif mysql # not compatible
query I rowsort label-2056
SELECT COALESCE ( - + SUM ( ALL + 93 ), 88 / + 19 * 12 * + COUNT ( * ) ) + - 31
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT ( 81 ) + - NULLIF ( + 19, + COALESCE ( + - 36, - - 60 ) ) - + + 35 + - 55 * COUNT( * ), + 75 AS col0
----
-28
75

skipif mysql # not compatible
query II rowsort label-2057
SELECT ( 81 ) + - NULLIF ( + 19, + COALESCE ( + - 36, - - 60 ) ) - + + 35 + - 55 * COUNT ( * ), + 75 AS col0
----
-28
75

query I rowsort
SELECT ALL NULLIF ( - + 29, - 85 )
----
-29

query II rowsort
SELECT 58 * + 19 - + 32 AS col2, 14
----
1070
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT COUNT( * ) + + 49 + 84 AS col2
----
134

skipif mysql # not compatible
query I rowsort label-2060
SELECT COUNT ( * ) + + 49 + 84 AS col2
----
134

query I rowsort
SELECT 51 + + 80
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2062
SELECT DISTINCT 43, NULLIF ( - 56, + ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) + - - 10 ) AS col0
----
43
-56

skipif mysql # not compatible
query II rowsort label-2062
SELECT DISTINCT 43, NULLIF ( - 56, + ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) + - - 10 ) AS col0
----
43
-56

query I rowsort
SELECT 97 + 92 col1
----
189

query II rowsort
SELECT ALL 89, + 82 + + 9 - + - 1 AS col2
----
89
92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT 58 * + - CAST( + 73 AS SIGNED )
----
-4234

skipif mysql # not compatible
query I rowsort label-2066
SELECT 58 * + - CAST ( + 73 AS INTEGER )
----
-4234

query I rowsort
SELECT DISTINCT - 24 * + 95 AS col0
----
-2280

query I rowsort
SELECT ALL + 69 * - 90
----
-6210

query II rowsort
SELECT 24, + 85 * + 52 AS col1
----
24
4420

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT + 67 * + SUM( DISTINCT - - 26 ) + 90 AS col1
----
1832

skipif mysql # not compatible
query I rowsort label-2070
SELECT + 67 * + SUM ( DISTINCT - - 26 ) + 90 AS col1
----
1832

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT NULLIF ( ( + 63 ), + 3 ) DIV ( 19 ) * + - 67 AS col2
----
-201

skipif mysql # not compatible
query I rowsort label-2071
SELECT NULLIF ( ( + 63 ), + 3 ) / ( 19 ) * + - 67 AS col2
----
-201

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

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

query I rowsort
SELECT 93 * + + 19 * 81 AS col2
----
143127

query I rowsort
SELECT ALL - 33 + + 95
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT 64 + COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-2075
SELECT 64 + COUNT ( * ) AS col2
----
65

query II rowsort
SELECT + 64 AS col0, + 96
----
64
96

query I rowsort
SELECT DISTINCT - 52 + 23
----
-29

query II rowsort
SELECT DISTINCT - ( + 53 ) AS col1, + 58
----
-53
58

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

skipif mysql # not compatible
query II rowsort label-2079
SELECT ALL - 48 AS col1, COUNT ( * )
----
-48
1

query I rowsort
SELECT ALL - 34 + - 52 * 19
----
-1022

query I rowsort
SELECT DISTINCT 91 + + 28
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT - ( CASE - CASE MAX( + 22 ) WHEN - 53 THEN + - 27 * - 26 / - 7 + + 81 WHEN 43 THEN NULL END WHEN - SUM( + 15 ) THEN + NULLIF ( + 44, - COALESCE ( 22, + + MAX( 16 ) + COUNT( * ) / + + 97 * - COUNT( * ), 2 ) ) * + 54 ELSE NULL END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT - ( CASE - CASE MAX ( + 22 ) WHEN - 53 THEN + - 27 * - 26 / - 7 + + 81 WHEN 43 THEN NULL END WHEN - SUM ( + 15 ) THEN + NULLIF ( + 44, - COALESCE ( 22, + + MAX ( 16 ) + COUNT ( * ) / + + 97 * - COUNT ( * ), 2 ) ) * + 54 ELSE NULL END ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT ALL - 7 * + - NULLIF ( CAST( NULL AS SIGNED ), - - 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL - 7 * + - NULLIF ( CAST ( NULL AS INTEGER ), - - 9 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT 9 + + 37 + - ( - - 68 ) * + COALESCE ( 95, - COUNT( * ) ) - - COUNT( * ) + + MIN( + - 56 ) - - 70 - + - CAST( NULL AS SIGNED ) * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-2084
SELECT 9 + + 37 + - ( - - 68 ) * + COALESCE ( 95, - COUNT ( * ) ) - - COUNT ( * ) + + MIN ( + - 56 ) - - 70 - + - CAST ( NULL AS INTEGER ) * + 9
----
NULL

query I rowsort
SELECT DISTINCT - 72 * ( - 15 ) AS col0
----
1080

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT 40 AS col0, + 56 / MAX( - + COALESCE ( + 75, - 95, NULLIF ( + + ( + 14 ), - 1 ) ) ) / + - 73 / + COUNT( * ) - + 65 / CASE 50 WHEN - - 10 + 79 THEN - + 30 * - + 79 WHEN + 64 THEN + COUNT( * ) - 21 END * 24 AS col0
----
40
NULL

skipif mysql # not compatible
query II rowsort label-2086
SELECT 40 AS col0, + 56 / MAX ( - + COALESCE ( + 75, - 95, NULLIF ( + + ( + 14 ), - 1 ) ) ) / + - 73 / + COUNT ( * ) - + 65 / CASE 50 WHEN - - 10 + 79 THEN - + 30 * - + 79 WHEN + 64 THEN + COUNT ( * ) - 21 END * 24 AS col0
----
40
NULL

query I rowsort
SELECT - 63 * - 60 + + 90 AS col1
----
3870

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

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL - CAST ( NULL AS INTEGER ) + 31 AS col0
----
NULL

query I rowsort
SELECT 25 * - 43 * + 31 AS col2
----
-33325

query I rowsort
SELECT DISTINCT - + 13 * - 70
----
910

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT - 14, + 20 * - 24 * + + COUNT( * ) * - 94 * + COUNT( * ) - + 21 + 59 * 83 * - + 38 col0
----
-14
-140987

skipif mysql # not compatible
query II rowsort label-2091
SELECT - 14, + 20 * - 24 * + + COUNT ( * ) * - 94 * + COUNT ( * ) - + 21 + 59 * 83 * - + 38 col0
----
-14
-140987

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL + SUM( DISTINCT - 82 ) + - CASE - - 64 WHEN + 46 * + 65 - - CAST( - SUM( DISTINCT + 6 ) AS SIGNED ) - + 28 / CASE + 98 WHEN - CASE - 59 WHEN 24 / - MAX( 65 ) THEN - CAST( - - 55 AS SIGNED ) + 10 WHEN + 6 THEN NULL END + + 9 THEN NULL ELSE 19 * - COUNT( * ) END THEN NULL WHEN 59 THEN + 61 END * + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + SUM ( DISTINCT - 82 ) + - CASE - - 64 WHEN + 46 * + 65 - - CAST ( - SUM ( DISTINCT + 6 ) AS INTEGER ) - + 28 / CASE + 98 WHEN - CASE - 59 WHEN 24 / - MAX ( 65 ) THEN - CAST ( - - 55 AS INTEGER ) + 10 WHEN + 6 THEN NULL END + + 9 THEN NULL ELSE 19 * - COUNT ( * ) END THEN NULL WHEN 59 THEN + 61 END * + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT - NULLIF ( + 52, + 9 + - COUNT( * ) ) - - 38
----
-14

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - NULLIF ( + 52, + 9 + - COUNT ( * ) ) - - 38
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2094
SELECT DISTINCT 36 DIV - ( 27 )
----
-1

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT 36 / - ( 27 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT ALL + 98 - - 18 + + MIN( ALL + 12 ) AS col2
----
128

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL + 98 - - 18 + + MIN ( ALL + 12 ) AS col2
----
128

query II rowsort
SELECT + 59 * + - 10 - 63 + - 16 AS col1, - 98 AS col0
----
-669
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-2097
SELECT + 24 + 77 + - 87 + - 77 AS col1, + 78 DIV 16
----
-63
4

skipif mysql # not compatible
query II rowsort label-2097
SELECT + 24 + 77 + - 87 + - 77 AS col1, + 78 / 16
----
-63
4

query I rowsort
SELECT 27 * - 12 AS col2
----
-324

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2100
SELECT DISTINCT 3 * - - COUNT( * ) * 96 * - NULLIF ( + - COUNT( * ), + + 47 ) * 32 + ( 29 )
----
9245

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT 3 * - - COUNT ( * ) * 96 * - NULLIF ( + - COUNT ( * ), + + 47 ) * 32 + ( 29 )
----
9245

query I rowsort
SELECT 73 * - 72 col2
----
-5256

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT - - SUM( DISTINCT - 48 ) AS col1, 53 + - 13
----
-48
40

skipif mysql # not compatible
query II rowsort label-2102
SELECT - - SUM ( DISTINCT - 48 ) AS col1, 53 + - 13
----
-48
40

query I rowsort
SELECT + 99 + 58
----
157

query I rowsort
SELECT ALL - 71 * + - 4
----
284

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT ALL + MIN( ALL + ( - 48 ) ) * - 52 AS col1
----
2496

skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + MIN ( ALL + ( - 48 ) ) * - 52 AS col1
----
2496

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

skipif mysql # not compatible
query I rowsort label-2106
SELECT 39 * - CAST ( NULL AS INTEGER ) * 9 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT 84 + - COUNT( * ) AS col2, 20
----
83
20

skipif mysql # not compatible
query II rowsort label-2107
SELECT 84 + - COUNT ( * ) AS col2, 20
----
83
20

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2109
SELECT 93 DIV - MIN( + 84 )
----
-1

skipif mysql # not compatible
query I rowsort label-2109
SELECT 93 / - MIN ( + 84 )
----
-1

query I rowsort
SELECT 67 - 85 AS col0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT DISTINCT 12 * + - 73 * 95 + + CAST( - + 46 AS SIGNED )
----
-83266

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT 12 * + - 73 * 95 + + CAST ( - + 46 AS INTEGER )
----
-83266

query I rowsort
SELECT ALL + 75 * - + 28
----
-2100

query I rowsort
SELECT DISTINCT 85 * - + 62
----
-5270

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT DISTINCT - COUNT( * ) * - 57 + + 15
----
72

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT - COUNT ( * ) * - 57 + + 15
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT SUM( ALL - 66 ) AS col2, - 99 - + - NULLIF ( 28, SUM( ALL 0 ) )
----
-66
-71

skipif mysql # not compatible
query II rowsort label-2115
SELECT SUM ( ALL - 66 ) AS col2, - 99 - + - NULLIF ( 28, SUM ( ALL 0 ) )
----
-66
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT 9 DIV - 40
----
0

skipif mysql # not compatible
query I rowsort label-2116
SELECT 9 / - 40
----
0

query I rowsort
SELECT ALL - 8 * 88 + - 29 + - 66 + - 48 AS col2
----
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT MAX( DISTINCT - 83 ) - - 72
----
-11

skipif mysql # not compatible
query I rowsort label-2118
SELECT MAX ( DISTINCT - 83 ) - - 72
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2119
SELECT CAST( 89 AS SIGNED ) * - 54 AS col1
----
-4806

skipif mysql # not compatible
query I rowsort label-2119
SELECT CAST ( 89 AS INTEGER ) * - 54 AS col1
----
-4806

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2120
SELECT + COUNT( * ) DIV + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2120
SELECT + COUNT ( * ) / + 4 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2121
SELECT DISTINCT - CAST( + - 63 AS SIGNED ) AS col0, - 52
----
63
-52

skipif mysql # not compatible
query II rowsort label-2121
SELECT DISTINCT - CAST ( + - 63 AS INTEGER ) AS col0, - 52
----
63
-52

query I rowsort
SELECT ALL - 82 - + 78 AS col1
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT SUM( DISTINCT - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-2123
SELECT SUM ( DISTINCT - 7 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - - 61 - + - 72 + 0 + + - 70 + - 74 + 11 * - COUNT( * ) + - 94 / - MIN( DISTINCT 28 ) * - 8 * + + CASE - COUNT( * ) WHEN 90 THEN 59 END / + + 23 * + 26 * 4 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - - 61 - + - 72 + 0 + + - 70 + - 74 + 11 * - COUNT ( * ) + - 94 / - MIN ( DISTINCT 28 ) * - 8 * + + CASE - COUNT ( * ) WHEN 90 THEN 59 END / + + 23 * + 26 * 4 + - 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT - MAX( + - 56 ) * - 53 * - - 25
----
-74200

skipif mysql # not compatible
query I rowsort label-2125
SELECT - MAX ( + - 56 ) * - 53 * - - 25
----
-74200

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT - ( - COUNT( * ) ) + + + 34
----
35

skipif mysql # not compatible
query I rowsort label-2126
SELECT - ( - COUNT ( * ) ) + + + 34
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2127
SELECT ALL + + ( 65 ) * - 5 + CAST( CASE - 56 WHEN ( + 22 ) THEN + 49 + - 0 * - 82 WHEN + ( - + 52 ) THEN NULL ELSE NULL END AS DECIMAL ) + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2127
SELECT ALL + + ( 65 ) * - 5 + CAST ( CASE - 56 WHEN ( + 22 ) THEN + 49 + - 0 * - 82 WHEN + ( - + 52 ) THEN NULL ELSE NULL END AS REAL ) + 78 AS col0
----
NULL

query II rowsort
SELECT - + 61 + - + 42 AS col1, + 59
----
-103
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2129
SELECT - - ( + - 94 ) + + 66 + + COUNT( * ) * + 63
----
35

skipif mysql # not compatible
query I rowsort label-2129
SELECT - - ( + - 94 ) + + 66 + + COUNT ( * ) * + 63
----
35

query II rowsort
SELECT - 97 * - 24 + + 64 - - 53 + - + CASE - 22 WHEN 93 THEN - 98 + - + 45 ELSE NULL END * 39 * + + 5 / - 31 * - 99 AS col0, ( - 99 )
----
NULL
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-2131
SELECT ALL 55 DIV + 56 AS col0, - 95 + + 24
----
0
-71

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL 55 / + 56 AS col0, - 95 + + 24
----
0
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT + 24 + - ( - ( COALESCE ( - - COUNT( * ), - 87, + CAST( - - 50 AS SIGNED ) ) ) )
----
25

skipif mysql # not compatible
query I rowsort label-2132
SELECT + 24 + - ( - ( COALESCE ( - - COUNT ( * ), - 87, + CAST ( - - 50 AS INTEGER ) ) ) )
----
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT + COUNT( * ) + - 71
----
-70

skipif mysql # not compatible
query I rowsort label-2134
SELECT + COUNT ( * ) + - 71
----
-70

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

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

query I rowsort
SELECT DISTINCT 28 + 46 AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT - 10 DIV - ( + 82 )
----
0

skipif mysql # not compatible
query I rowsort label-2137
SELECT - 10 / - ( + 82 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT + SUM( DISTINCT + 62 ) + + + 89 * - + 63 AS col2
----
-5545

skipif mysql # not compatible
query I rowsort label-2138
SELECT + SUM ( DISTINCT + 62 ) + + + 89 * - + 63 AS col2
----
-5545

query I rowsort
SELECT ALL 80 * + 98
----
7840

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT ALL - 79 + COUNT( * ) + - - COUNT( * ) + - 23 * 20 * + ( + COALESCE ( - COUNT( * ), - + 32 * - 62 * - 50 + 89, + - 40 - - - 76 ) ) * - - 86 * + 84 * - 4
----
-13292237

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL - 79 + COUNT ( * ) + - - COUNT ( * ) + - 23 * 20 * + ( + COALESCE ( - COUNT ( * ), - + 32 * - 62 * - 50 + 89, + - 40 - - - 76 ) ) * - - 86 * + 84 * - 4
----
-13292237

query I rowsort
SELECT - COALESCE ( - 4, + - 78 ) col2
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-2142
SELECT ALL 74 + - - MIN( - 55 ) col2, + 28 * + 70 AS col1
----
19
1960

skipif mysql # not compatible
query II rowsort label-2142
SELECT ALL 74 + - - MIN ( - 55 ) col2, + 28 * + 70 AS col1
----
19
1960

query I rowsort
SELECT ( - ( 25 ) ) AS col0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2144
SELECT + 45 / - CAST( NULL AS SIGNED ) * - 44 / - - 7 - + 39 * 50 * + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2144
SELECT + 45 / - CAST ( NULL AS INTEGER ) * - 44 / - - 7 - + 39 * 50 * + 24 AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2145
SELECT ( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2145
SELECT ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL 64 * 23 + COALESCE ( + COALESCE ( - ( - + 68 ), 17 + - 27 + + 57 ), + - 74 + + COALESCE ( + COUNT( * ), ( + 42 ) ), 95 ) col2
----
1540

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL 64 * 23 + COALESCE ( + COALESCE ( - ( - + 68 ), 17 + - 27 + + 57 ), + - 74 + + COALESCE ( + COUNT ( * ), ( + 42 ) ), 95 ) col2
----
1540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT + CASE + + 58 WHEN + + 20 + + + 73 + CAST( NULL AS SIGNED ) + 94 * + - 30 + - COUNT( * ) THEN NULL ELSE - + 78 END
----
-78

skipif mysql # not compatible
query I rowsort label-2147
SELECT + CASE + + 58 WHEN + + 20 + + + 73 + CAST ( NULL AS INTEGER ) + 94 * + - 30 + - COUNT ( * ) THEN NULL ELSE - + 78 END
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL - CASE SUM( - 98 ) WHEN COALESCE ( - 23, 21 * + - COUNT( * ) * - 69 ) THEN NULL WHEN + ( 40 ) THEN NULL ELSE - 91 END * - SUM( ALL - 97 ) + 24 + - COUNT( * ) * 36 - - + 60
----
8875

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL - CASE SUM ( - 98 ) WHEN COALESCE ( - 23, 21 * + - COUNT ( * ) * - 69 ) THEN NULL WHEN + ( 40 ) THEN NULL ELSE - 91 END * - SUM ( ALL - 97 ) + 24 + - COUNT ( * ) * 36 - - + 60
----
8875

onlyif mysql # DIV for integer division: 
query I rowsort label-2149
SELECT + 82 DIV - 91 + - 97 col2
----
-97

skipif mysql # not compatible
query I rowsort label-2149
SELECT + 82 / - 91 + - 97 col2
----
-97

query II rowsort
SELECT + 29, + 17 - - + ( + + 47 ) * 65 AS col2
----
29
3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2151
SELECT + SUM( ALL - 49 ) + + 15, 28 DIV 36 DIV - 4 * + 16 col1
----
-34
0

skipif mysql # not compatible
query II rowsort label-2151
SELECT + SUM ( ALL - 49 ) + + 15, 28 / 36 / - 4 * + 16 col1
----
-34
0

query I rowsort
SELECT + 55 * 76
----
4180

query I rowsort
SELECT ALL ( - + 81 ) * + 2 - + 84 + 85 * + 73 col0
----
5959

query I rowsort
SELECT ALL + - NULLIF ( + ( 28 ), + 73 )
----
-28

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

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

query I rowsort
SELECT DISTINCT + 28 * 92 AS col0
----
2576

query I rowsort
SELECT ALL + 70 * + COALESCE ( - 1, 7 ) * - - 71 * + 13 + + 1
----
-64609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT + + 64 * - CASE - 99 WHEN + 32 + - + NULLIF ( - - 89, 67 ) THEN - 26 - - - COUNT( ( + + ( - + 60 ) ) ) WHEN - 43 - + 3 + + + COUNT( * ) THEN NULL WHEN - 54 THEN NULL ELSE + - 47 END - COALESCE ( + - 87, 62 + + - 3 + - + 12, - CAST( - 68 AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT + + 64 * - CASE - 99 WHEN + 32 + - + NULLIF ( - - 89, 67 ) THEN - 26 - - - COUNT ( ( + + ( - + 60 ) ) ) WHEN - 43 - + 3 + + + COUNT ( * ) THEN NULL WHEN - 54 THEN NULL ELSE + - 47 END - COALESCE ( + - 87, 62 + + - 3 + - + 12, - CAST ( - 68 AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * + 83
----
NULL

query I rowsort
SELECT ALL + 67 col2
----
67

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

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

query I rowsort
SELECT + - 20 * + 73 * + 0 + 50 AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT ALL - 46 DIV 67
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - 46 / 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT SUM( + 0 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT SUM ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - + MAX( DISTINCT - + 53 ) * - 68 AS col0
----
-3604

skipif mysql # not compatible
query I rowsort label-2164
SELECT - + MAX ( DISTINCT - + 53 ) * - 68 AS col0
----
-3604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2165
SELECT ALL - + 87 * + 62 * - - CAST( + - 33 AS SIGNED ) + 57
----
178059

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - + 87 * + 62 * - - CAST ( + - 33 AS INTEGER ) + 57
----
178059

onlyif mysql # aggregate syntax: 
query II rowsort label-2166
SELECT 68 AS col1, MIN( + - 97 )
----
68
-97

skipif mysql # not compatible
query II rowsort label-2166
SELECT 68 AS col1, MIN ( + - 97 )
----
68
-97

query I rowsort
SELECT + 52 * + 69
----
3588

query I rowsort
SELECT ALL + 94 * - 92 AS col2
----
-8648

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

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

query II rowsort
SELECT - 93 - - 27 AS col0, - 2
----
-66
-2

query I rowsort
SELECT DISTINCT - 65 + + 80 - 27
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2172
SELECT ALL CAST( 81 AS SIGNED )
----
81

skipif mysql # not compatible
query I rowsort label-2172
SELECT ALL CAST ( 81 AS INTEGER )
----
81

query I rowsort
SELECT ALL + 47 + - 90 + - - 2 col2
----
-41

query II rowsort
SELECT DISTINCT - 93 * - + 84 AS col2, 16
----
7812
16

query II rowsort
SELECT ALL 33 + - + 90 + ( + - 60 ) AS col1, - 4 * + ( + + 28 ) AS col2
----
-117
-112

query I rowsort
SELECT DISTINCT + 20 + 38
----
58

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2177
SELECT - CASE - AVG ( + CAST( + 34 AS DECIMAL ) ) WHEN + 60 + - 98 - 13 / + - ( - NULLIF ( + + 43, - 48 ) ) THEN + 84 END, CAST( NULL AS SIGNED ) - + 67 + 21
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2177
SELECT - CASE - AVG ( + CAST ( + 34 AS REAL ) ) WHEN + 60 + - 98 - 13 / + - ( - NULLIF ( + + 43, - 48 ) ) THEN + 84 END, CAST ( NULL AS INTEGER ) - + 67 + 21
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT + 33 + + - 46 + - COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-2178
SELECT + 33 + + - 46 + - COUNT ( * ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2179
SELECT ALL - COALESCE ( + 13, + - 41 * - 75 ) DIV - + 64
----
0

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL - COALESCE ( + 13, + - 41 * - 75 ) / - + 64
----
0

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

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

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

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

query I rowsort
SELECT ALL 67 * - 37 AS col1
----
-2479

query I rowsort
SELECT DISTINCT ( + + 39 ) * + 18 + + 53
----
755

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT DISTINCT - COUNT( 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-2184
SELECT DISTINCT - COUNT ( 3 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT + 49 * + MIN( - + 79 )
----
-3871

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT + 49 * + MIN ( - + 79 )
----
-3871

query I rowsort
SELECT + ( - 21 ) col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT 79 - SUM( ALL - - 76 )
----
3

skipif mysql # not compatible
query I rowsort label-2187
SELECT 79 - SUM ( ALL - - 76 )
----
3

query I rowsort
SELECT + - 71 col1
----
-71

query I rowsort
SELECT ALL - - 26 col0
----
26

query I rowsort
SELECT - 70 * + - 6
----
420

query I rowsort
SELECT ALL - - 68 + ( - + 88 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT COALESCE ( + CAST( + 31 AS SIGNED ), - - ( - 56 ) + - 35 * CASE 60 WHEN - + 82 + - + 76 THEN COUNT( + CAST( + + 72 AS SIGNED ) ) WHEN 71 THEN - 44 ELSE - - ( + - COUNT( * ) ) END + NULLIF ( 38, + COUNT( * ) + - MIN( - 60 ) ) * - 33 ) - COUNT( * ) * + 19 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-2192
SELECT COALESCE ( + CAST ( + 31 AS INTEGER ), - - ( - 56 ) + - 35 * CASE 60 WHEN - + 82 + - + 76 THEN COUNT ( + CAST ( + + 72 AS INTEGER ) ) WHEN 71 THEN - 44 ELSE - - ( + - COUNT ( * ) ) END + NULLIF ( 38, + COUNT ( * ) + - MIN ( - 60 ) ) * - 33 ) - COUNT ( * ) * + 19 AS col2
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2193
SELECT ALL 54 + - 90 AS col1, COUNT( * ) AS col2
----
-36
1

skipif mysql # not compatible
query II rowsort label-2193
SELECT ALL 54 + - 90 AS col1, COUNT ( * ) AS col2
----
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT - - 16 * - COUNT( * ) + 86 * 54 AS col0
----
4628

skipif mysql # not compatible
query I rowsort label-2194
SELECT - - 16 * - COUNT ( * ) + 86 * 54 AS col0
----
4628

query I rowsort
SELECT + 93 - + - CASE ( + + 43 ) WHEN + 5 + - 98 + 9 THEN NULL ELSE + - 71 END AS col2
----
22

query I rowsort
SELECT + ( 47 ) + 9 AS col0
----
56

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

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + ( - COUNT ( * ) ) + - 84 AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT - CAST( + 61 AS SIGNED ) * 70 AS col0
----
-4270

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - CAST ( + 61 AS INTEGER ) * 70 AS col0
----
-4270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2199
SELECT + 50 + NULLIF ( + 27, + 75 * - ( + 89 ) + - ( 5 ) + - 43 - 1 - - - CAST( NULL AS SIGNED ) / + 67 )
----
77

skipif mysql # not compatible
query I rowsort label-2199
SELECT + 50 + NULLIF ( + 27, + 75 * - ( + 89 ) + - ( 5 ) + - 43 - 1 - - - CAST ( NULL AS INTEGER ) / + 67 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT - MIN( ALL + 40 ) + + + 85
----
45

skipif mysql # not compatible
query I rowsort label-2200
SELECT - MIN ( ALL + 40 ) + + + 85
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT SUM( - 74 ) + + 63 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-2201
SELECT SUM ( - 74 ) + + 63 AS col1
----
-11

query I rowsort
SELECT ALL 75 + + ( + - 54 )
----
21

query I rowsort
SELECT + 19 * 23 + 85 AS col0
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT ALL 51 + - - 20 + - COUNT( * ) * + - 16
----
87

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL 51 + - - 20 + - COUNT ( * ) * + - 16
----
87

query II rowsort
SELECT - 96 AS col1, - 15 + + 51 AS col2
----
-96
36

query I rowsort
SELECT 87 + 28
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT ALL - 16 + - + ( - MIN( + 90 ) ) col2
----
74

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL - 16 + - + ( - MIN ( + 90 ) ) col2
----
74

query I rowsort
SELECT 67 * - 51 AS col1
----
-3417

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

query I rowsort
SELECT DISTINCT - 71 * - 3
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2211
SELECT ALL + COALESCE ( - 48, - 1 DIV - 10 ) - 83 + + - 10 + + MIN( - 29 ) AS col1
----
-170

skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + COALESCE ( - 48, - 1 / - 10 ) - 83 + + - 10 + + MIN ( - 29 ) AS col1
----
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-2212
SELECT DISTINCT - MIN( DISTINCT - 88 ) * - 1 + 86 - - 2 AS col0, + 49 AS col0
----
0
49

skipif mysql # not compatible
query II rowsort label-2212
SELECT DISTINCT - MIN ( DISTINCT - 88 ) * - 1 + 86 - - 2 AS col0, + 49 AS col0
----
0
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT 22 + + 58 * + COUNT( - 64 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2213
SELECT 22 + + 58 * + COUNT ( - 64 ) AS col1
----
80

query I rowsort
SELECT 92 * - - 48 * - 6
----
-26496

query I rowsort
SELECT 28 * + - 44
----
-1232

query I rowsort
SELECT ALL - ( + 60 ) * + 93 * + 30 AS col2
----
-167400

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

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT 3 * + + COUNT ( * ) AS col2
----
3

query I rowsort
SELECT ALL - 53 - 54 AS col0
----
-107

query I rowsort
SELECT 18 * 86 * + 15 AS col1
----
23220

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

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

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

skipif mysql # not compatible
query II rowsort label-2221
SELECT COUNT ( * ) AS col0, + 61
----
1
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT + 86 * + 8 + - - 5 + - 10 * ( COUNT( * ) ) + - - 2
----
685

skipif mysql # not compatible
query I rowsort label-2223
SELECT + 86 * + 8 + - - 5 + - 10 * ( COUNT ( * ) ) + - - 2
----
685

query I rowsort
SELECT 68 - 81
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT 14 * - ( - 9 ) * - CASE - COUNT( * ) WHEN - 99 THEN - COUNT( * ) WHEN + 59 / 9 THEN - - 91 END * + - 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2225
SELECT 14 * - ( - 9 ) * - CASE - COUNT ( * ) WHEN - 99 THEN - COUNT ( * ) WHEN + 59 / 9 THEN - - 91 END * + - 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2226
SELECT - 8 DIV 56 + 60 + + COUNT( * ) + 56 + + + 46 DIV 62 DIV 88
----
117

skipif mysql # not compatible
query I rowsort label-2226
SELECT - 8 / 56 + 60 + + COUNT ( * ) + 56 + + + 46 / 62 / 88
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT 6 DIV + ( - + NULLIF ( + 30, + 83 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2227
SELECT 6 / + ( - + NULLIF ( + 30, + 83 ) ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL SUM ( - 45 ) * + + CAST ( NULL AS INTEGER ) * + 0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2229
SELECT MAX( ALL 52 ) + - COUNT( * ), 65 AS col2
----
51
65

skipif mysql # not compatible
query II rowsort label-2229
SELECT MAX ( ALL 52 ) + - COUNT ( * ), 65 AS col2
----
51
65

query I rowsort
SELECT ALL + 87 * 84 AS col0
----
7308

query I rowsort
SELECT ALL + 18 + 42
----
60

query I rowsort
SELECT ALL - + 49 + 17 AS col1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT + 7 * - NULLIF ( COALESCE ( + COUNT( * ), + 23 ), + 35 )
----
-7

skipif mysql # not compatible
query I rowsort label-2233
SELECT + 7 * - NULLIF ( COALESCE ( + COUNT ( * ), + 23 ), + 35 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2234
SELECT CAST( - + MIN( + + CAST( NULL AS DECIMAL ) ) AS SIGNED ) + - 89 + - MIN( ALL 19 ) + 47 * + CASE 37 WHEN - 17 THEN + NULLIF ( - 26, + 95 ) * - - 77 * - + 93 END * 4 / - + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2234
SELECT CAST ( - + MIN ( + + CAST ( NULL AS REAL ) ) AS INTEGER ) + - 89 + - MIN ( ALL 19 ) + 47 * + CASE 37 WHEN - 17 THEN + NULLIF ( - 26, + 95 ) * - - 77 * - + 93 END * 4 / - + 48
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2235
SELECT ALL 47 + - CAST( COUNT( * ) AS SIGNED ), + 91 + - 23 AS col1
----
46
68

skipif mysql # not compatible
query II rowsort label-2235
SELECT ALL 47 + - CAST ( COUNT ( * ) AS INTEGER ), + 91 + - 23 AS col1
----
46
68

onlyif mysql # aggregate syntax: 
query II rowsort label-2236
SELECT - 91 + - MIN( 50 ) + - 34 + - + MIN( ALL - 49 ) + + 4 * + + 98 * ( - + 22 ) * - 59 AS col0, 75 + - + 82
----
508690
-7

skipif mysql # not compatible
query II rowsort label-2236
SELECT - 91 + - MIN ( 50 ) + - 34 + - + MIN ( ALL - 49 ) + + 4 * + + 98 * ( - + 22 ) * - 59 AS col0, 75 + - + 82
----
508690
-7

query II rowsort
SELECT + 51 AS col0, 97
----
51
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + 57 * - 68 + - 55 + - + 38 * SUM( ALL + ( + CASE + + 33 WHEN - 92 THEN NULL ELSE - 89 END ) )
----
-549

skipif mysql # not compatible
query I rowsort label-2238
SELECT + 57 * - 68 + - 55 + - + 38 * SUM ( ALL + ( + CASE + + 33 WHEN - 92 THEN NULL ELSE - 89 END ) )
----
-549

query I rowsort
SELECT ALL 87 + 36
----
123

query I rowsort
SELECT ALL + - 45 + + + 62 AS col1
----
17

query I rowsort
SELECT ALL 28 + - + 76 AS col1
----
-48

query I rowsort
SELECT ALL 4 * + + 51 * 11
----
2244

query I rowsort
SELECT ALL 22 * + 80
----
1760

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

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

query I rowsort
SELECT - 86 * - 51 * 11 AS col1
----
48246

onlyif mysql # aggregate syntax: 
query II rowsort label-2246
SELECT ALL 13 AS col0, - 49 - 19 + + - 42 + COUNT( * ) * CASE 16 WHEN ( - - ( + + 56 ) ) + 18 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE + COUNT( * ) + COUNT( * ) END AS col2
----
13
-108

skipif mysql # not compatible
query II rowsort label-2246
SELECT ALL 13 AS col0, - 49 - 19 + + - 42 + COUNT ( * ) * CASE 16 WHEN ( - - ( + + 56 ) ) + 18 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE + COUNT ( * ) + COUNT ( * ) END AS col2
----
13
-108

query I rowsort
SELECT DISTINCT + 3 - - + 88
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL + SUM( ALL - 37 ) DIV - + ( - + 94 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL + SUM ( ALL - 37 ) / - + ( - + 94 ) AS col2
----
0

query I rowsort
SELECT - 26 * + + 50
----
-1300

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

skipif mysql # not compatible
query II rowsort label-2250
SELECT - COUNT ( * ) AS col0, 67 AS col2
----
-1
67

query I rowsort
SELECT - 43 + - + 33 AS col0
----
-76

query II rowsort
SELECT DISTINCT 29 AS col1, - 30 col1
----
29
-30

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

skipif mysql # not compatible
query I rowsort label-2253
SELECT - COUNT ( * ) + - 52 + - 34 AS col0
----
-87

query I rowsort
SELECT NULLIF ( 19, - + 51 )
----
19

query I rowsort
SELECT ALL - - 2 * - - 41
----
82

query I rowsort
SELECT - 59 * + ( + + ( - + 26 ) ) + - 21 col1
----
1513

query I rowsort
SELECT ALL - + 77 + - 39
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2258
SELECT + + 75 AS col1, COALESCE ( - 20, 50 + + 98, - + 8 + + - MAX( DISTINCT - 86 ) * + COUNT( * ) + + + 52 + + + 71 * - 99 ) * + CASE - COALESCE ( + - CAST( NULL AS SIGNED ), 15 + 42 / + 96 ) WHEN + 74 THEN NULL WHEN COUNT( * ) THEN - NULLIF ( + - COUNT( * ), 82 ) END + - 65 * - MAX( 17 )
----
75
NULL

skipif mysql # not compatible
query II rowsort label-2258
SELECT + + 75 AS col1, COALESCE ( - 20, 50 + + 98, - + 8 + + - MAX ( DISTINCT - 86 ) * + COUNT ( * ) + + + 52 + + + 71 * - 99 ) * + CASE - COALESCE ( + - CAST ( NULL AS INTEGER ), 15 + 42 / + 96 ) WHEN + 74 THEN NULL WHEN COUNT ( * ) THEN - NULLIF ( + - COUNT ( * ), 82 ) END + - 65 * - MAX ( 17 )
----
75
NULL

query I rowsort
SELECT ALL + 1 * + + 26 + - 70 AS col2
----
-44

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT - + 20 * + 67 + + - MIN( ALL - 14 )
----
-1326

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT - + 20 * + 67 + + - MIN ( ALL - 14 )
----
-1326

query III rowsort
SELECT ALL + 11 AS col2, 1, + 91 + + 42 * - 67 AS col1
----
11
1
-2723

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

query II rowsort
SELECT + 1, 69 col1
----
1
69

query I rowsort
SELECT - 61 * + ( + 44 ) col0
----
-2684

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2266
SELECT ALL - CASE - - ( + 64 ) WHEN 63 THEN 2 + - 82 ELSE NULL END * 41 * 87 * + COALESCE ( - NULLIF ( ( - COUNT( * ) ), 14 - - 99 * - 11 - 60 ), CAST( NULL AS SIGNED ) + AVG ( DISTINCT 40 ) * + 60 ) - 9 + - 99 + ( - 85 ) / MIN( - 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - CASE - - ( + 64 ) WHEN 63 THEN 2 + - 82 ELSE NULL END * 41 * 87 * + COALESCE ( - NULLIF ( ( - COUNT ( * ) ), 14 - - 99 * - 11 - 60 ), CAST ( NULL AS INTEGER ) + AVG ( DISTINCT 40 ) * + 60 ) - 9 + - 99 + ( - 85 ) / MIN ( - 15 )
----
NULL

query I rowsort
SELECT - - 75 - + 79 + + - 52
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT ALL + 78 * COUNT( * ) * + 94 + + - 67 + 56 * 93 * - 91 AS col1
----
-466663

skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + 78 * COUNT ( * ) * + 94 + + - 67 + 56 * 93 * - 91 AS col1
----
-466663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2269
SELECT 26 * - 56 - 61 + - 44 * - 81 - + + 80 * - + 17 * 62 - + 48 * - + 67 * + + 81 / + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2269
SELECT 26 * - 56 - 61 + - 44 * - 81 - + + 80 * - + 17 * 62 - + 48 * - + 67 * + + 81 / + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 92 * - 19 - 75
----
-1823

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT - MAX( - 18 ) * - + 8 + ( + 92 )
----
-52

skipif mysql # not compatible
query I rowsort label-2271
SELECT - MAX ( - 18 ) * - + 8 + ( + 92 )
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2272
SELECT DISTINCT + 43 * + COUNT( * ), 59 AS col2
----
43
59

skipif mysql # not compatible
query II rowsort label-2272
SELECT DISTINCT + 43 * + COUNT ( * ), 59 AS col2
----
43
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2273
SELECT DISTINCT MAX( - 42 ) * COALESCE ( 57, + - 99 * - 58 * + 99 DIV + ( SUM( DISTINCT - 85 ) ) + 65 ) + + - 40 * - COUNT( * ) - - + SUM( - + 87 ) + - 15 - + COUNT( ( - 95 ) ) + - - 95 * + 60 * + 28 + + 31 + - 93 * + COUNT( * )
----
157081

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT MAX ( - 42 ) * COALESCE ( 57, + - 99 * - 58 * + 99 / + ( SUM ( DISTINCT - 85 ) ) + 65 ) + + - 40 * - COUNT ( * ) - - + SUM ( - + 87 ) + - 15 - + COUNT ( ( - 95 ) ) + - - 95 * + 60 * + 28 + + 31 + - 93 * + COUNT ( * )
----
157081

query I rowsort
SELECT + 11 * + - 76 + + + 80
----
-756

query I rowsort
SELECT + 16 - - - 84 - - - 45 * - 93
----
4117

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT - MAX( + - 38 ) + + - 18
----
20

skipif mysql # not compatible
query I rowsort label-2276
SELECT - MAX ( + - 38 ) + + - 18
----
20

query I rowsort
SELECT - NULLIF ( - 14, 8 / + 27 )
----
14

onlyif mysql # aggregate syntax: 
query III rowsort label-2278
SELECT - COUNT( * ) * - ( 91 ) AS col1, 57 - + 36, + + 98 AS col0
----
91
21
98

skipif mysql # not compatible
query III rowsort label-2278
SELECT - COUNT ( * ) * - ( 91 ) AS col1, 57 - + 36, + + 98 AS col0
----
91
21
98

query I rowsort
SELECT + 10 * + 97
----
970

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT + 56 + - + ( - - 92 ) + + 26 + 70 * - 87 * - COUNT( * )
----
6080

skipif mysql # not compatible
query I rowsort label-2280
SELECT + 56 + - + ( - - 92 ) + + 26 + 70 * - 87 * - COUNT ( * )
----
6080

query I rowsort
SELECT + 74 * - 40 AS col1
----
-2960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT DISTINCT CAST( 9 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT CAST ( 9 AS INTEGER )
----
9

query I rowsort
SELECT - NULLIF ( + + 5, + - 72 * - + 70 * 83 - - 35 * + ( 68 ) ) AS col2
----
-5

query I rowsort
SELECT - ( - 25 ) * 68 + + 97
----
1797

query I rowsort
SELECT - NULLIF ( + + 7, + 50 * + - 24 * + - 65 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT + MAX( - + NULLIF ( - ( + - 67 ), - 17 + + - 79 ) ) + - + 3
----
-70

skipif mysql # not compatible
query I rowsort label-2286
SELECT + MAX ( - + NULLIF ( - ( + - 67 ), - 17 + + - 79 ) ) + - + 3
----
-70

query I rowsort
SELECT DISTINCT 43 * - NULLIF ( - - 61, + + 25 ) AS col0
----
-2623

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2288
SELECT ALL CAST( NULL AS DECIMAL ) + 7 AS col2, + COALESCE ( - + 65, - 48 * + 96 * - ( 65 ) )
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-2288
SELECT ALL CAST ( NULL AS REAL ) + 7 AS col2, + COALESCE ( - + 65, - 48 * + 96 * - ( 65 ) )
----
NULL
-65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT + - COUNT( * ) + 61 * + 78 * 33 AS col1
----
157013

skipif mysql # not compatible
query I rowsort label-2291
SELECT + - COUNT ( * ) + 61 * + 78 * 33 AS col1
----
157013

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

skipif mysql # not compatible
query I rowsort label-2292
SELECT + - 73 * + COUNT ( * ) AS col2
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-2293
SELECT ALL - ( - - 54 ) * 79 + + + COALESCE ( + - 87, ( - ( 94 ) ) ) DIV - 76
----
-4265

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL - ( - - 54 ) * 79 + + + COALESCE ( + - 87, ( - ( 94 ) ) ) / - 76
----
-4265

onlyif mysql # DIV for integer division: 
query I rowsort label-2294
SELECT ALL - 62 DIV - - ( - 41 )
----
1

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - 62 / - - ( - 41 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2295
SELECT + COALESCE ( 65, 2 + + CAST( - 54 AS SIGNED ) * COUNT( * ) * + 22 + + 62 ) / CAST( NULL AS SIGNED ) / - - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2295
SELECT + COALESCE ( 65, 2 + + CAST ( - 54 AS INTEGER ) * COUNT ( * ) * + 22 + + 62 ) / CAST ( NULL AS INTEGER ) / - - 0 AS col0
----
NULL

query I rowsort
SELECT ALL 79 + 73 + + + 76 AS col0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT - + 90 + - - COUNT( * ) * + 73 AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-2297
SELECT - + 90 + - - COUNT ( * ) * + 73 AS col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2298
SELECT DISTINCT 45 / MIN( ALL NULLIF ( + - 53, 40 * - 68 * - + 33 ) ) + - + CASE - ( + + 14 ) WHEN + + 7 THEN NULL WHEN - - 44 * + 53 THEN - - MAX( + COALESCE ( - 16, - 96 ) ) ELSE NULL END + 43 - + COUNT( + 8 ) / CAST( - 34 AS SIGNED ) * ( - 15 ) + - 38 / - + 57 + 62 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT 45 / MIN ( ALL NULLIF ( + - 53, 40 * - 68 * - + 33 ) ) + - + CASE - ( + + 14 ) WHEN + + 7 THEN NULL WHEN - - 44 * + 53 THEN - - MAX ( + COALESCE ( - 16, - 96 ) ) ELSE NULL END + 43 - + COUNT ( + 8 ) / CAST ( - 34 AS INTEGER ) * ( - 15 ) + - 38 / - + 57 + 62 AS col0
----
NULL

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

query I rowsort
SELECT ALL + + 86 col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT + + 55 + 25 - + 23 / - + CAST( NULL AS SIGNED ) * 17 * + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT + + 55 + 25 - + 23 / - + CAST ( NULL AS INTEGER ) * 17 * + 51
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT DISTINCT + - MIN( 45 ) * ( + 56 )
----
-2520

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + - MIN ( 45 ) * ( + 56 )
----
-2520

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2304
SELECT COUNT( ALL - + 0 ) * + 90 + - 86 - - CAST( 39 AS SIGNED ) * - 14 * 21 * + COALESCE ( - COUNT( * ), + COUNT( * ) ) - + + 8 + + - 36 + - + 72 AS col0
----
11354

skipif mysql # not compatible
query I rowsort label-2304
SELECT COUNT ( ALL - + 0 ) * + 90 + - 86 - - CAST ( 39 AS INTEGER ) * - 14 * 21 * + COALESCE ( - COUNT ( * ), + COUNT ( * ) ) - + + 8 + + - 36 + - + 72 AS col0
----
11354

query II rowsort
SELECT DISTINCT + + ( - + 66 ), 11 col0
----
-66
11

query I rowsort
SELECT - 16 + + 12 - - - 11 col1
----
-15

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

query I rowsort
SELECT - 93 + - 72 + + 96 * - 24 * + 22
----
-50853

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2309
SELECT - CAST( NULL AS DECIMAL ) / 0
----
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT - CAST ( NULL AS REAL ) / 0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT - 10 * + 5 DIV - 87 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2310
SELECT - 10 * + 5 / - 87 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL - SUM( DISTINCT - + 93 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL - SUM ( DISTINCT - + 93 ) AS col2
----
93

query II rowsort
SELECT ALL - NULLIF ( - 62, COALESCE ( + - ( 85 ), + + CASE WHEN NOT NULL IS NOT NULL THEN + 56 END, + 88 * + - 26 - + 92 ) ) AS col0, - 77 * 4 AS col0
----
62
-308

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2313
SELECT 8 DIV - + COUNT( * ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-2313
SELECT 8 / - + COUNT ( * ) AS col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT 21 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT 21 / - 92
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( 59, 51 + 91 ) * 22
----
1298

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT ALL 14 AS col1, 53 - + - ( - COUNT( * ) ) + - 19 * 51
----
14
-917

skipif mysql # not compatible
query II rowsort label-2316
SELECT ALL 14 AS col1, 53 - + - ( - COUNT ( * ) ) + - 19 * 51
----
14
-917

onlyif mysql # DIV for integer division: 
query II rowsort label-2317
SELECT 17 AS col2, + ( + 51 ) DIV - 20
----
17
-2

skipif mysql # not compatible
query II rowsort label-2317
SELECT 17 AS col2, + ( + 51 ) / - 20
----
17
-2

query I rowsort
SELECT 8 * 22
----
176

query II rowsort
SELECT - 87 * - 70 + + + 62 AS col0, + 28
----
6152
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + 13 + ( + ( COUNT( * ) ) ) * + 4
----
17

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + 13 + ( + ( COUNT ( * ) ) ) * + 4
----
17

query I rowsort
SELECT ALL 2 + 22
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL CAST( - + MIN( CAST( NULL AS SIGNED ) ) AS SIGNED ) + 89 AS col1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT COUNT( * ) - + - 62 * + 93 * - 52
----
-299831

skipif mysql # not compatible
query I rowsort label-2323
SELECT COUNT ( * ) - + - 62 * + 93 * - 52
----
-299831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT DISTINCT - 68 + - NULLIF ( - 59, + CAST( - + 13 AS SIGNED ) + + - 85 + 91 * + 22 ) * - 67 AS col0
----
-4021

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT - 68 + - NULLIF ( - 59, + CAST ( - + 13 AS INTEGER ) + + - 85 + 91 * + 22 ) * - 67 AS col0
----
-4021

query II rowsort
SELECT 37 - 27 * - - 78, + 93 AS col2
----
-2069
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2326
SELECT NULLIF ( - CAST( + - ( + + 19 ) AS SIGNED ), COALESCE ( - 97, + COUNT( * ) ) )
----
19

skipif mysql # not compatible
query I rowsort label-2326
SELECT NULLIF ( - CAST ( + - ( + + 19 ) AS INTEGER ), COALESCE ( - 97, + COUNT ( * ) ) )
----
19

query I rowsort
SELECT ALL + 22 + 93
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT ALL + COUNT( * ) + - NULLIF ( + + 75, - COUNT( * ) * + 34 * - 37 * + 32 + + - 3 ) + + 26 - - 77
----
29

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + COUNT ( * ) + - NULLIF ( + + 75, - COUNT ( * ) * + 34 * - 37 * + 32 + + - 3 ) + + 26 - - 77
----
29

query I rowsort
SELECT ALL 51 + - + 6
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2330
SELECT + COUNT( * ) + - 73 - + CAST( - - 96 AS SIGNED )
----
-168

skipif mysql # not compatible
query I rowsort label-2330
SELECT + COUNT ( * ) + - 73 - + CAST ( - - 96 AS INTEGER )
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2331
SELECT - COALESCE ( - - COUNT( * ), 92 ) - CAST( NULL AS SIGNED ) + + COUNT( * ) - - + COUNT( * ) + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT - COALESCE ( - - COUNT ( * ), 92 ) - CAST ( NULL AS INTEGER ) + + COUNT ( * ) - - + COUNT ( * ) + 84 AS col0
----
NULL

query I rowsort
SELECT ALL + 56 * + 62
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT ALL - 39 + + + MAX( DISTINCT + - 93 ) - 16
----
-148

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - 39 + + + MAX ( DISTINCT + - 93 ) - 16
----
-148

query I rowsort
SELECT + NULLIF ( + - 23, - - 84 ) * - 60 * - 47 AS col0
----
-64860

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2335
SELECT ALL - - ( - - CAST( NULL AS DECIMAL ) ) * - NULLIF ( 94, 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL - - ( - - CAST ( NULL AS REAL ) ) * - NULLIF ( 94, 78 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT COUNT( * ) - - + CASE + COUNT( * ) WHEN + - COUNT( * ) * + - 10 * AVG ( DISTINCT - 48 ) THEN NULL ELSE + - SUM( - + 58 ) * - - 45 END + SUM( - 95 ) AS col1
----
2516

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT COUNT ( * ) - - + CASE + COUNT ( * ) WHEN + - COUNT ( * ) * + - 10 * AVG ( DISTINCT - 48 ) THEN NULL ELSE + - SUM ( - + 58 ) * - - 45 END + SUM ( - 95 ) AS col1
----
2516

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT - 37 * 80 DIV SUM( 41 ) + + - 27 + + 24 + - 23
----
-98

skipif mysql # not compatible
query I rowsort label-2338
SELECT - 37 * 80 / SUM ( 41 ) + + - 27 + + 24 + - 23
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2339
SELECT + 46 DIV - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2339
SELECT + 46 / - 63 AS col1
----
0

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

query I rowsort
SELECT ALL - + 34 AS col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT 83 - CAST( NULL AS SIGNED ) - + 27 + + 37 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT 83 - CAST ( NULL AS INTEGER ) - + 27 + + 37 col2
----
NULL

query I rowsort
SELECT 22 * + - 58 * - 3
----
3828

query I rowsort
SELECT 26 * + 61 + - 25 AS col2
----
1561

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - SUM( ALL + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - SUM ( ALL + 9 )
----
-9

query I rowsort
SELECT ALL + 99 * - 16 AS col2
----
-1584

query I rowsort
SELECT ALL 39 * 3 col1
----
117

query II rowsort
SELECT 28 - - + 19, 22 AS col0
----
47
22

query I rowsort
SELECT ALL - ( + + 38 ) + + - 71 * 30 * + 2 col0
----
-4298

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2350
SELECT 2 + - CASE CAST( NULL AS DECIMAL ) WHEN - + 48 + + 67 * 13 * - ( - 27 ) THEN 12 END * + - COUNT( * ) / 48 / ( + - 48 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2350
SELECT 2 + - CASE CAST ( NULL AS REAL ) WHEN - + 48 + + 67 * 13 * - ( - 27 ) THEN 12 END * + - COUNT ( * ) / 48 / ( + - 48 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2351
SELECT ALL + ( + 32 ) + + 76 + + - 47 AS col0, ( - 3 ) * + COUNT( * ) col1
----
61
-3

skipif mysql # not compatible
query II rowsort label-2351
SELECT ALL + ( + 32 ) + + 76 + + - 47 AS col0, ( - 3 ) * + COUNT ( * ) col1
----
61
-3

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

skipif mysql # not compatible
query I rowsort label-2352
SELECT 27 + + COUNT ( * ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2353
SELECT ALL - CAST( - CASE - MIN( ALL - 41 ) WHEN - COUNT( * ) THEN - 12 ELSE NULL END AS SIGNED ) * + ( - - 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - CAST ( - CASE - MIN ( ALL - 41 ) WHEN - COUNT ( * ) THEN - 12 ELSE NULL END AS INTEGER ) * + ( - - 53 )
----
NULL

query I rowsort
SELECT DISTINCT 90 + - 31 + 88 * - 87 AS col0
----
-7597

query I rowsort
SELECT 46 + 58
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL - 29 + + - 32 * + 96 * - + NULLIF ( COUNT( * ), + 66 ) + + 78
----
3121

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL - 29 + + - 32 * + 96 * - + NULLIF ( COUNT ( * ), + 66 ) + + 78
----
3121

query I rowsort
SELECT + 19 + - 62 + + - CASE WHEN NOT 16 <= NULL THEN - + 10 WHEN NOT 94 < + 33 / - - 50 * - + 8 * - 81 + + 77 THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT ( - 11 ) + 60 * + 29 + + 24 * NULLIF ( 57, 82 ) / CAST( NULL AS SIGNED ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT ( - 11 ) + 60 * + 29 + + 24 * NULLIF ( 57, 82 ) / CAST ( NULL AS INTEGER ) + - COUNT ( * )
----
NULL

query I rowsort
SELECT 86 * - 42
----
-3612

onlyif mysql # DIV for integer division: 
query II rowsort label-2360
SELECT 17 + - + ( + 93 ) DIV - 98, 96 - + 21 AS col0
----
17
75

skipif mysql # not compatible
query II rowsort label-2360
SELECT 17 + - + ( + 93 ) / - 98, 96 - + 21 AS col0
----
17
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT - + COUNT( * ) * - NULLIF ( + - NULLIF ( 76, + + COUNT( * ) ), MIN( DISTINCT + 65 ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - + COUNT ( * ) * - NULLIF ( + - NULLIF ( 76, + + COUNT ( * ) ), MIN ( DISTINCT + 65 ) ) col2
----
-76

query I rowsort
SELECT - NULLIF ( - 64, - 13 * + 80 ) AS col2
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2363
SELECT ALL - COALESCE ( CASE + COALESCE ( 7, - 18 * + AVG ( + + 8 ) ) WHEN + + 89 THEN 88 * - - 64 + + 20 WHEN 86 THEN 54 ELSE NULL END, 22 DIV 82 + - 63 ) * + + 81 * 45 - + 29 * + - COUNT( * )
----
229664

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - COALESCE ( CASE + COALESCE ( 7, - 18 * + AVG ( + + 8 ) ) WHEN + + 89 THEN 88 * - - 64 + + 20 WHEN 86 THEN 54 ELSE NULL END, 22 / 82 + - 63 ) * + + 81 * 45 - + 29 * + - COUNT ( * )
----
229664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT 86 - + + CAST( - 58 AS SIGNED )
----
144

skipif mysql # not compatible
query I rowsort label-2364
SELECT 86 - + + CAST ( - 58 AS INTEGER )
----
144

query I rowsort
SELECT + 35 * - - 72
----
2520

query I rowsort
SELECT + - ( - NULLIF ( - - 61, + + ( 82 ) + - 11 - + - 2 + + - 58 ) )
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT + 71 * NULLIF ( CASE - SUM( DISTINCT + + 75 ) WHEN 46 THEN - 72 END, - 52 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2368
SELECT + 71 * NULLIF ( CASE - SUM ( DISTINCT + + 75 ) WHEN 46 THEN - 72 END, - 52 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2369
SELECT DISTINCT 92 * COALESCE ( + MIN( DISTINCT 51 ), + 80 ) DIV - 58 + + 96 + - 21 * + 69
----
-1433

skipif mysql # not compatible
query I rowsort label-2369
SELECT DISTINCT 92 * COALESCE ( + MIN ( DISTINCT 51 ), + 80 ) / - 58 + + 96 + - 21 * + 69
----
-1433

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

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

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

skipif mysql # not compatible
query I rowsort label-2371
SELECT 30 * + COUNT ( * ) + 13 AS col1
----
43

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

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL COUNT ( * ) / + 69 * + 80
----
0

query I rowsort
SELECT + 10 * + 20 * 10 AS col1
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT 58 * + 12 + COUNT( * )
----
697

skipif mysql # not compatible
query I rowsort label-2374
SELECT 58 * + 12 + COUNT ( * )
----
697

query I rowsort
SELECT + 3 + 97 AS col1
----
100

query I rowsort
SELECT + 74 * + + 52
----
3848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2377
SELECT + 80 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2377
SELECT + 80 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 79 * + 15 + - + 54 + + - 53 + - 30 * + 13 * + 76 AS col1
----
-28562

onlyif mysql # aggregate syntax: 
query II rowsort label-2379
SELECT COUNT( * ), SUM( - + 13 ) AS col2
----
1
-13

skipif mysql # not compatible
query II rowsort label-2379
SELECT COUNT ( * ), SUM ( - + 13 ) AS col2
----
1
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT + COUNT( * ) * 68 + + 79 AS col1
----
147

skipif mysql # not compatible
query I rowsort label-2380
SELECT + COUNT ( * ) * 68 + + 79 AS col1
----
147

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL 35 * - - 28 * - 47 + + + COUNT( * ) * + 88 + - 49 col1
----
-46021

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL 35 * - - 28 * - 47 + + + COUNT ( * ) * + 88 + - 49 col1
----
-46021

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT MAX( - 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-2385
SELECT MAX ( - 11 )
----
-11

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

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

query II rowsort
SELECT ALL ( 60 ) + + - 60 AS col1, + ( - 27 ) AS col2
----
0
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT ALL + 96 + + 48 + 51 + - + ( - MAX( - + 56 ) ) * 57 col1
----
-2997

skipif mysql # not compatible
query I rowsort label-2388
SELECT ALL + 96 + + 48 + 51 + - + ( - MAX ( - + 56 ) ) * 57 col1
----
-2997

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

skipif mysql # not compatible
query I rowsort label-2389
SELECT + 8 - + COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2390
SELECT - - ( - 1 ) * - - 51 - + 17 - + 78 + + COALESCE ( - COUNT( * ), - + 11 * - - 59 * - + 48 * + NULLIF ( - 23, + 72 ) ) AS col0, + 99 * - + 48
----
-147
-4752

skipif mysql # not compatible
query II rowsort label-2390
SELECT - - ( - 1 ) * - - 51 - + 17 - + 78 + + COALESCE ( - COUNT ( * ), - + 11 * - - 59 * - + 48 * + NULLIF ( - 23, + 72 ) ) AS col0, + 99 * - + 48
----
-147
-4752

query I rowsort
SELECT ALL 59 * + 85 AS col0
----
5015

query I rowsort
SELECT + + 25 + + ( + - 34 ) + + - 5 * - 6 - 59 * 24 * + 8 col1
----
-11307

query I rowsort
SELECT - 12 + 2 AS col1
----
-10

query I rowsort
SELECT DISTINCT COALESCE ( 66, 35 ) col2
----
66

query I rowsort
SELECT ALL - 39 - - 2 AS col1
----
-37

query I rowsort
SELECT - ( - - 3 ) * - 50
----
150

query I rowsort
SELECT - 69 - + 78 * - 58
----
4455

query I rowsort
SELECT DISTINCT + 90 * - 86
----
-7740

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2399
SELECT - 83 - + + 81 + + - 87 + - CAST( - 91 AS SIGNED ) + - 18 DIV 85
----
-160

skipif mysql # not compatible
query I rowsort label-2399
SELECT - 83 - + + 81 + + - 87 + - CAST ( - 91 AS INTEGER ) + - 18 / 85
----
-160

query I rowsort
SELECT DISTINCT + 57 * + - 41 AS col1
----
-2337

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT ALL - COUNT( + 36 ) * - 95
----
95

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL - COUNT ( + 36 ) * - 95
----
95

query I rowsort
SELECT + + 23 + - 98 AS col0
----
-75

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

skipif mysql # not compatible
query I rowsort label-2403
SELECT - + 18 / + 63
----
0

query I rowsort
SELECT ALL + - 83 * + 72 - - 79
----
-5897

query I rowsort
SELECT - 28 + + 92
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2406
SELECT - 72 * 2 + 4 DIV + CAST( COUNT( * ) AS SIGNED )
----
-140

skipif mysql # not compatible
query I rowsort label-2406
SELECT - 72 * 2 + 4 / + CAST ( COUNT ( * ) AS INTEGER )
----
-140

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT ALL - 62 DIV + + 23 + + - 91 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL - 62 / + + 23 + + - 91 AS col0
----
-93

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

skipif mysql # not compatible
query I rowsort label-2410
SELECT ALL COUNT ( * ) * + 91 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT ALL - 1 DIV - 74 * COALESCE ( + 73, - - 12 ) + 29 + + 9 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-2411
SELECT ALL - 1 / - 74 * COALESCE ( + 73, - - 12 ) + 29 + + 9 AS col1
----
38

query I rowsort
SELECT + 27 * ( + 42 )
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT ALL + COUNT( * ) * - 79 + 24 * - 90 * + 42
----
-90799

skipif mysql # not compatible
query I rowsort label-2413
SELECT ALL + COUNT ( * ) * - 79 + 24 * - 90 * + 42
----
-90799

query I rowsort
SELECT - 92 - - 31
----
-61

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

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

query I rowsort
SELECT ( 72 ) col2
----
72

query II rowsort
SELECT ALL + 98 col0, - 90 * + + 77
----
98
-6930

query I rowsort
SELECT - 75 * 3 + + 1
----
-224

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL + CASE 37 WHEN - AVG ( - ( + 36 ) ) * + 18 + + ( NULLIF ( + 95, COUNT( * ) ) ) THEN NULL WHEN 58 * + 1 + + - 47 THEN 13 * - 51 + - + ( + + 85 ) * 97 - 95 + + 62 WHEN + ( + + NULLIF ( + 34, 82 - - 33 ) ) + 33 * + ( - - 88 ) + + 69 THEN COUNT( * ) * - - 44 * 34 - + 5 ELSE NULL END * + 97 + 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + CASE 37 WHEN - AVG ( - ( + 36 ) ) * + 18 + + ( NULLIF ( + 95, COUNT ( * ) ) ) THEN NULL WHEN 58 * + 1 + + - 47 THEN 13 * - 51 + - + ( + + 85 ) * 97 - 95 + + 62 WHEN + ( + + NULLIF ( + 34, 82 - - 33 ) ) + 33 * + ( - - 88 ) + + 69 THEN COUNT ( * ) * - - 44 * 34 - + 5 ELSE NULL END * + 97 + 51 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 9 * + 28 AS col0
----
-252

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

query II rowsort
SELECT ALL + 88, + 7 AS col1
----
88
7

query II rowsort
SELECT ALL + 91, 41 AS col2
----
91
41

query I rowsort
SELECT - 12 * - + 60 + 95 * - 57 * 13
----
-69675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2425
SELECT + COALESCE ( 97, 78 ) - CAST( NULL AS SIGNED ) + - ( + + COALESCE ( 86, + MIN( - 32 ) ) ) + - 55 * - - 18 / COALESCE ( - + AVG ( DISTINCT 33 ), COUNT( * ) + - + MIN( - 46 ) * + NULLIF ( - - 91, + + 20 ), - - 68 / 9 - ( 80 ) + 9 * + 99 + - 44 + + 49, + 32 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2425
SELECT + COALESCE ( 97, 78 ) - CAST ( NULL AS INTEGER ) + - ( + + COALESCE ( 86, + MIN ( - 32 ) ) ) + - 55 * - - 18 / COALESCE ( - + AVG ( DISTINCT 33 ), COUNT ( * ) + - + MIN ( - 46 ) * + NULLIF ( - - 91, + + 20 ), - - 68 / 9 - ( 80 ) + 9 * + 99 + - 44 + + 49, + 32 ) AS col0
----
NULL

query I rowsort
SELECT - 25 * - 56
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2427
SELECT - 84 + COALESCE ( CAST( + 96 AS SIGNED ), + 55 + + - COUNT( * ) + + 75 * 84 - + 35 * - - 61 + + - 21 + - - COUNT( * ) - + 16 * + 74 * + 83 + + - CAST( NULL AS SIGNED ) - + 81 + - - 3 + - 53 * + ( + 13 ) * + 81, + - 24 + 25 )
----
12

skipif mysql # not compatible
query I rowsort label-2427
SELECT - 84 + COALESCE ( CAST ( + 96 AS INTEGER ), + 55 + + - COUNT ( * ) + + 75 * 84 - + 35 * - - 61 + + - 21 + - - COUNT ( * ) - + 16 * + 74 * + 83 + + - CAST ( NULL AS INTEGER ) - + 81 + - - 3 + - 53 * + ( + 13 ) * + 81, + - 24 + 25 )
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + ( - MIN( + 15 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-2429
SELECT + ( - MIN ( + 15 ) ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL + 79 * + - 10 - + + MAX( + ( - 71 ) ) * + COUNT( * ) col2
----
-719

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL + 79 * + - 10 - + + MAX ( + ( - 71 ) ) * + COUNT ( * ) col2
----
-719

query II rowsort
SELECT ALL + 10 AS col0, - 98 AS col1
----
10
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT + + MIN( 96 ) + + 63 * + 12 * + + 9 + + - 22 - - ( + + 33 ) * + - 83 AS col0, - COUNT( * )
----
4139
-1

skipif mysql # not compatible
query II rowsort label-2432
SELECT + + MIN ( 96 ) + + 63 * + 12 * + + 9 + + - 22 - - ( + + 33 ) * + - 83 AS col0, - COUNT ( * )
----
4139
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT ALL + CASE - + 69 WHEN 54 THEN - 81 WHEN - 57 THEN + CASE + 3 WHEN + 97 - - 35 - + - 10 THEN + 68 WHEN COUNT( DISTINCT + 24 ) + + + 81 * + + 17 * - - 31 THEN NULL ELSE + 40 END + + 2 + - 4 * 53 * 15 - + 47 ELSE 45 * - 83 END * 12 + - 62
----
-44882

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL + CASE - + 69 WHEN 54 THEN - 81 WHEN - 57 THEN + CASE + 3 WHEN + 97 - - 35 - + - 10 THEN + 68 WHEN COUNT ( DISTINCT + 24 ) + + + 81 * + + 17 * - - 31 THEN NULL ELSE + 40 END + + 2 + - 4 * 53 * 15 - + 47 ELSE 45 * - 83 END * 12 + - 62
----
-44882

query II rowsort
SELECT ALL 16 AS col1, 0 col0
----
16
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2435
SELECT DISTINCT - COUNT( * ) * - + COUNT( * ) DIV + 81 + - COUNT( * ) + - 75 col0
----
-76

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT - COUNT ( * ) * - + COUNT ( * ) / + 81 + - COUNT ( * ) + - 75 col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT + + COALESCE ( COUNT( * ), - COUNT( * ) * + COALESCE ( 33, CAST( 68 AS SIGNED ) ) ) + SUM( DISTINCT 51 ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-2436
SELECT + + COALESCE ( COUNT ( * ), - COUNT ( * ) * + COALESCE ( 33, CAST ( 68 AS INTEGER ) ) ) + SUM ( DISTINCT 51 ) AS col1
----
52

onlyif mysql # DIV for integer division: 
query II rowsort label-2437
SELECT ALL + 51 AS col1, + 75 * + 20 DIV 2 AS col2
----
51
750

skipif mysql # not compatible
query II rowsort label-2437
SELECT ALL + 51 AS col1, + 75 * + 20 / 2 AS col2
----
51
750

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT - CAST( NULL AS SIGNED ) + - CASE + - 97 WHEN - 67 THEN - - 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT - CAST ( NULL AS INTEGER ) + - CASE + - 97 WHEN - 67 THEN - - 88 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2440
SELECT + 56 DIV - COALESCE ( 93, - COUNT( * ) DIV 67 DIV - COUNT( * ) + - + 64 + MIN( 90 ) ) col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-2440
SELECT + 56 / - COALESCE ( 93, - COUNT ( * ) / 67 / - COUNT ( * ) + - + 64 + MIN ( 90 ) ) col0, COUNT ( * )
----
0
1

query I rowsort
SELECT 15 * - 3
----
-45

query II rowsort
SELECT ALL - 74, 72 * + 75 AS col2
----
-74
5400

query I rowsort
SELECT DISTINCT 48 + + - 57 - + 56 + + 54 + - 44 * - + 21 AS col0
----
913

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL + 1 DIV + 37 + - 24 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL + 1 / + 37 + - 24 AS col0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2445
SELECT 95 + - 94 / - - 81 * + 79 * + CAST( NULL AS SIGNED ) * - 5, COUNT( * ) + - COUNT( 63 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2445
SELECT 95 + - 94 / - - 81 * + 79 * + CAST ( NULL AS INTEGER ) * - 5, COUNT ( * ) + - COUNT ( 63 ) AS col1
----
NULL
0

query I rowsort
SELECT DISTINCT + + 31 + 12 * + - 17
----
-173

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2447
SELECT ALL - MAX( + CAST( NULL AS DECIMAL ) ) + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL - MAX ( + CAST ( NULL AS REAL ) ) + 97 AS col2
----
NULL

query I rowsort
SELECT ALL + 40 * + ( - + 44 )
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT DISTINCT - CASE + MAX( DISTINCT - 85 ) WHEN - + NULLIF ( 98, NULLIF ( + 92, - - ( 93 ) ) ) + ( + - 3 ) + + 15 THEN + + ( + 78 ) END * + 70 + - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT - CASE + MAX ( DISTINCT - 85 ) WHEN - + NULLIF ( 98, NULLIF ( + 92, - - ( 93 ) ) ) + ( + - 3 ) + + 15 THEN + + ( + 78 ) END * + 70 + - COUNT ( * ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2450
SELECT CAST( - - COUNT( * ) AS SIGNED ) + + COALESCE ( - COUNT( * ), - + 1 DIV - ( 78 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2450
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) + + COALESCE ( - COUNT ( * ), - + 1 / - ( 78 ) )
----
0

query I rowsort
SELECT 28 + + 93
----
121

query I rowsort
SELECT ALL - 95 + 81 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL - SUM( DISTINCT 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL - SUM ( DISTINCT 60 ) AS col0
----
-60

query I rowsort
SELECT 27 + + - 86 AS col2
----
-59

query I rowsort
SELECT ALL - 95 - + 74
----
-169

query I rowsort
SELECT ALL 32 - - 92
----
124

query I rowsort
SELECT 53 * - 69 * - + 17 AS col2
----
62169

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT COALESCE ( - + COUNT( * ), + 59 ) * 9 + 93 * - 83 * + - 66 + 5
----
509450

skipif mysql # not compatible
query I rowsort label-2458
SELECT COALESCE ( - + COUNT ( * ), + 59 ) * 9 + 93 * - 83 * + - 66 + 5
----
509450

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2460
SELECT ALL + ( - 55 ) * + CAST( NULL AS SIGNED ), + ( + - ( + - 26 ) ) AS col0
----
NULL
26

skipif mysql # not compatible
query II rowsort label-2460
SELECT ALL + ( - 55 ) * + CAST ( NULL AS INTEGER ), + ( + - ( + - 26 ) ) AS col0
----
NULL
26

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2462
SELECT ALL + 12 * - + 89 AS col0, CASE WHEN 84 IS NOT NULL THEN + + 97 - - - 70 - 68 * - 51 + 47 * - CAST( NULL AS SIGNED ) + - 92 ELSE CASE - - 97 WHEN 24 THEN ( - - COUNT( - CAST( NULL AS SIGNED ) ) ) + + 67 + 61 - - 69 * 46 END / + + ( COUNT( * ) ) + + 98 * 37 + + 97 END AS col2
----
-1068
NULL

skipif mysql # not compatible
query II rowsort label-2462
SELECT ALL + 12 * - + 89 AS col0, CASE WHEN 84 IS NOT NULL THEN + + 97 - - - 70 - 68 * - 51 + 47 * - CAST ( NULL AS INTEGER ) + - 92 ELSE CASE - - 97 WHEN 24 THEN ( - - COUNT ( - CAST ( NULL AS INTEGER ) ) ) + + 67 + 61 - - 69 * 46 END / + + ( COUNT ( * ) ) + + 98 * 37 + + 97 END AS col2
----
-1068
NULL

query I rowsort
SELECT ALL - COALESCE ( - 19, - 76 ) AS col2
----
19

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

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

query II rowsort
SELECT DISTINCT + - 42 * - 99, 65 AS col2
----
4158
65

query II rowsort
SELECT DISTINCT - 20 * - - 51 * - 74, - 4 + - 97 + - + 42 AS col1
----
75480
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2467
SELECT ALL 4 DIV - 13
----
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL 4 / - 13
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2468
SELECT 61 DIV + 68
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT 61 / + 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - ( - - COALESCE ( 67, 89 ) ) * 84 + - 88 + + COUNT( * ) * + + 6
----
-5710

skipif mysql # not compatible
query I rowsort label-2469
SELECT - ( - - COALESCE ( 67, 89 ) ) * 84 + - 88 + + COUNT ( * ) * + + 6
----
-5710

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2470
SELECT DISTINCT MIN( ALL + CAST( + 9 AS SIGNED ) ) + + - COUNT( * ) - COUNT( * ) * - CASE + 50 WHEN - + 24 THEN NULL WHEN + + 11 * - 7 THEN - - 88 ELSE NULL END * 54 / - 43 * - ( + CAST( NULL AS DECIMAL ) ) / - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT MIN ( ALL + CAST ( + 9 AS INTEGER ) ) + + - COUNT ( * ) - COUNT ( * ) * - CASE + 50 WHEN - + 24 THEN NULL WHEN + + 11 * - 7 THEN - - 88 ELSE NULL END * 54 / - 43 * - ( + CAST ( NULL AS REAL ) ) / - 0 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT ALL + ( + 70 ) DIV - - 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2471
SELECT ALL + ( + 70 ) / - - 39 AS col2
----
1

query I rowsort
SELECT + ( + 28 ) + + + 83 AS col2
----
111

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2474
SELECT DISTINCT - 71 + + + COUNT( * ) - 67 + - 81 + - 8 + + 63 * + ( + 77 ) * - SUM( ALL - + 42 ) DIV COUNT( + 5 ) AS col2, 2 * + - ( 45 ) * 38 AS col2
----
203516
-3420

skipif mysql # not compatible
query II rowsort label-2474
SELECT DISTINCT - 71 + + + COUNT ( * ) - 67 + - 81 + - 8 + + 63 * + ( + 77 ) * - SUM ( ALL - + 42 ) / COUNT ( + 5 ) AS col2, 2 * + - ( 45 ) * 38 AS col2
----
203516
-3420

query I rowsort
SELECT ALL 20 * - - ( + 12 ) * 5 AS col0
----
1200

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL MIN( - 69 ) + 99 * - COUNT( * ) + + - ( COUNT( * ) )
----
-169

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL MIN ( - 69 ) + 99 * - COUNT ( * ) + + - ( COUNT ( * ) )
----
-169

query I rowsort
SELECT 28 + - + 30 AS col2
----
-2

query I rowsort
SELECT DISTINCT 34 + NULLIF ( - 89, 96 )
----
-55

query II rowsort
SELECT 63 AS col1, - 58
----
63
-58

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

skipif mysql # not compatible
query I rowsort label-2480
SELECT CAST ( NULL AS INTEGER ) / + + 83 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2481
SELECT ALL ( + + 74 ) + + 84 + - - COUNT( * ) + - - COUNT( * ) * - + 16 DIV - 2 * - COUNT( * ) AS col0
----
151

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL ( + + 74 ) + + 84 + - - COUNT ( * ) + - - COUNT ( * ) * - + 16 / - 2 * - COUNT ( * ) AS col0
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2482
SELECT CAST( NULL AS SIGNED ) * + COALESCE ( + 7, - 62, 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2482
SELECT CAST ( NULL AS INTEGER ) * + COALESCE ( + 7, - 62, 66 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2483
SELECT 14 AS col2, - 22 * - 64 * + - ( + - 72 ) * + + COUNT( * ) + - CAST( NULL AS DECIMAL ) * - + 21 - + + 37 + - + 76
----
14
NULL

skipif mysql # not compatible
query II rowsort label-2483
SELECT 14 AS col2, - 22 * - 64 * + - ( + - 72 ) * + + COUNT ( * ) + - CAST ( NULL AS REAL ) * - + 21 - + + 37 + - + 76
----
14
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT CAST( NULL AS SIGNED ) / 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT CAST ( NULL AS INTEGER ) / 64 AS col1
----
NULL

query II rowsort
SELECT ALL ( - 75 ) - + 29 AS col2, 68 AS col2
----
-104
68

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

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

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

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL - 9 * - COUNT ( * ) * + 81 AS col0
----
729

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 53 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-2488
SELECT 53 / 50
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2489
SELECT - 66 / - 48 + + 94 + + 95 * + 3 * + ( + CAST( + + COUNT( * ) AS SIGNED ) ) + + ( - + 18 ) * - CAST( NULL AS SIGNED ) / + - COUNT( * ) * - + 7 / CAST( + 16 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2489
SELECT - 66 / - 48 + + 94 + + 95 * + 3 * + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) + + ( - + 18 ) * - CAST ( NULL AS INTEGER ) / + - COUNT ( * ) * - + 7 / CAST ( + 16 AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query II rowsort label-2490
SELECT COUNT ( * ) AS col0, - 4 AS col1
----
1
-4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT SUM( COALESCE ( 78, 59 ) ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-2493
SELECT SUM ( COALESCE ( 78, 59 ) ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-2494
SELECT COUNT( * ) col2, - NULLIF ( - 95, - 58 * AVG ( DISTINCT + 26 ) + + + CASE 7 WHEN + + 32 * + - 57 + + 20 THEN + 81 END * - 27 )
----
1
95

skipif mysql # not compatible
query II rowsort label-2494
SELECT COUNT ( * ) col2, - NULLIF ( - 95, - 58 * AVG ( DISTINCT + 26 ) + + + CASE 7 WHEN + + 32 * + - 57 + + 20 THEN + 81 END * - 27 )
----
1
95

query I rowsort
SELECT 52 - 21 AS col2
----
31

query I rowsort
SELECT 88 * + 95 AS col2
----
8360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2497
SELECT DISTINCT - COALESCE ( 21, - + 60 * - + 42 - - 63 + - - 95 * + ( 90 ) ) AS col2, - 21 * - + CAST( COUNT( * ) AS SIGNED ) + - COUNT( ALL - CAST( + ( + - 89 ) AS SIGNED ) ) * 36 * + 19 * - + 63
----
-21
43113

skipif mysql # not compatible
query II rowsort label-2497
SELECT DISTINCT - COALESCE ( 21, - + 60 * - + 42 - - 63 + - - 95 * + ( 90 ) ) AS col2, - 21 * - + CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( ALL - CAST ( + ( + - 89 ) AS INTEGER ) ) * 36 * + 19 * - + 63
----
-21
43113

onlyif mysql # aggregate syntax: 
query II rowsort label-2498
SELECT COUNT( * ) * - 61 + + 52 AS col2, 80
----
-9
80

skipif mysql # not compatible
query II rowsort label-2498
SELECT COUNT ( * ) * - 61 + + 52 AS col2, 80
----
-9
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2499
SELECT ALL - 97 AS col2, + 25 + - + COUNT( * ) * - COUNT( * )
----
-97
26

skipif mysql # not compatible
query II rowsort label-2499
SELECT ALL - 97 AS col2, + 25 + - + COUNT ( * ) * - COUNT ( * )
----
-97
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT DISTINCT ( + COUNT( * ) ) * - - 20 col2
----
20

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT ( + COUNT ( * ) ) * - - 20 col2
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2501
SELECT ALL - 40 AS col2, - 35 / + 15 + - + SUM( + - CASE 54 WHEN 8 THEN NULL WHEN 30 THEN + 55 END ) AS col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-2501
SELECT ALL - 40 AS col2, - 35 / + 15 + - + SUM ( + - CASE 54 WHEN 8 THEN NULL WHEN 30 THEN + 55 END ) AS col1
----
-40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + COUNT( * ) * - + CASE - COUNT( * ) WHEN - 5 / + - 87 THEN + NULLIF ( 60, - 5 + - + COUNT( * ) ) + + 60 * + - 87 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT + COUNT ( * ) * - + CASE - COUNT ( * ) WHEN - 5 / + - 87 THEN + NULLIF ( 60, - 5 + - + COUNT ( * ) ) + + 60 * + - 87 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2503
SELECT ALL - - COUNT( * ) AS col2, 32 DIV 86
----
1
0

skipif mysql # not compatible
query II rowsort label-2503
SELECT ALL - - COUNT ( * ) AS col2, 32 / 86
----
1
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2505
SELECT - + 36 + - 22 * - COALESCE ( + COUNT( * ), + - 75 - + - 89 + 49, - + CAST( + - 4 AS SIGNED ) ) col0
----
-14

skipif mysql # not compatible
query I rowsort label-2505
SELECT - + 36 + - 22 * - COALESCE ( + COUNT ( * ), + - 75 - + - 89 + 49, - + CAST ( + - 4 AS INTEGER ) ) col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT 31 * - 14 * - - 10 + 82 - + - 61 * COUNT( * )
----
-4197

skipif mysql # not compatible
query I rowsort label-2506
SELECT 31 * - 14 * - - 10 + 82 - + - 61 * COUNT ( * )
----
-4197

onlyif mysql # aggregate syntax: 
query II rowsort label-2507
SELECT + 73 AS col2, - 87 * - NULLIF ( + + 81, + 9 * - 93 * - 87 ) + - COALESCE ( COUNT( * ), - + COUNT( * ) ) AS col2
----
73
7046

skipif mysql # not compatible
query II rowsort label-2507
SELECT + 73 AS col2, - 87 * - NULLIF ( + + 81, + 9 * - 93 * - 87 ) + - COALESCE ( COUNT ( * ), - + COUNT ( * ) ) AS col2
----
73
7046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT ALL - - 64 + COALESCE ( 31, + + 52 + - 42 ) - CAST( - 6 AS SIGNED ) + - - 99 AS col0
----
200

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL - - 64 + COALESCE ( 31, + + 52 + - 42 ) - CAST ( - 6 AS INTEGER ) + - - 99 AS col0
----
200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT DISTINCT - + 22 * + + CAST( NULL AS SIGNED ) / - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - + 22 * + + CAST ( NULL AS INTEGER ) / - 86
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2510
SELECT - ( - - COALESCE ( - - COUNT( * ), + 70 - + - 87 ) ) * + 33 + - 4 * + + CAST( NULL AS DECIMAL ) - - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2510
SELECT - ( - - COALESCE ( - - COUNT ( * ), + 70 - + - 87 ) ) * + 33 + - 4 * + + CAST ( NULL AS REAL ) - - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 73 * - + 83
----
6059

query I rowsort
SELECT ALL + 15 + + 61
----
76

query II rowsort
SELECT 70 AS col0, ( + 30 )
----
70
30

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT - + 34 DIV + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2514
SELECT - + 34 / + 36 AS col0
----
0

query I rowsort
SELECT - 41 + - 33 AS col1
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2516
SELECT + 27 * 84 DIV - NULLIF ( + 60, ( - - 18 ) * + CASE AVG ( - 72 ) WHEN - 37 THEN NULL WHEN + 31 THEN NULL WHEN + 66 + - ( - - 79 ) THEN NULL ELSE - + 73 END )
----
-37

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 27 * 84 / - NULLIF ( + 60, ( - - 18 ) * + CASE AVG ( - 72 ) WHEN - 37 THEN NULL WHEN + 31 THEN NULL WHEN + 66 + - ( - - 79 ) THEN NULL ELSE - + 73 END )
----
-37

query II rowsort
SELECT ALL ( - 43 ) AS col2, + 97 * - 42 AS col2
----
-43
-4074

query I rowsort
SELECT DISTINCT ( - 94 ) AS col2
----
-94

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

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

query I rowsort
SELECT + 21 + + + ( + 22 ) AS col0
----
43

query I rowsort
SELECT DISTINCT 21 - + 52 AS col0
----
-31

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

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

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

skipif mysql # not compatible
query I rowsort label-2523
SELECT + MIN ( - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2524
SELECT NULLIF ( + + 82, - 86 ) * - CAST( - 22 AS SIGNED ) + + 38 + - + 40 * - 58 * + 31 * - COUNT( DISTINCT - 8 ) + + 89 AS col1
----
-69989

skipif mysql # not compatible
query I rowsort label-2524
SELECT NULLIF ( + + 82, - 86 ) * - CAST ( - 22 AS INTEGER ) + + 38 + - + 40 * - 58 * + 31 * - COUNT ( DISTINCT - 8 ) + + 89 AS col1
----
-69989

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2525
SELECT + CASE - + 3 WHEN - 70 * CAST( + - CAST( + 35 AS DECIMAL ) AS SIGNED ) * + 69 + - 78 THEN + + 76 END + + 9 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT + CASE - + 3 WHEN - 70 * CAST ( + - CAST ( + 35 AS REAL ) AS INTEGER ) * + 69 + - 78 THEN + + 76 END + + 9 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 3 col2
----
3

query I rowsort
SELECT ALL - 69 * + 96 col2
----
-6624

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2528
SELECT + COALESCE ( 15, 21 * + + 16 DIV + - ( + - 39 ) * COALESCE ( + CAST( - - 71 AS SIGNED ), + 82, + + 79 * + 77 ), - COALESCE ( + - 51, - + 75 - - AVG ( 68 ) DIV - 35, + + CAST( + ( - + 74 ) AS SIGNED ) ) )
----
15

skipif mysql # not compatible
query I rowsort label-2528
SELECT + COALESCE ( 15, 21 * + + 16 / + - ( + - 39 ) * COALESCE ( + CAST ( - - 71 AS INTEGER ), + 82, + + 79 * + 77 ), - COALESCE ( + - 51, - + 75 - - AVG ( 68 ) / - 35, + + CAST ( + ( - + 74 ) AS INTEGER ) ) )
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2529
SELECT DISTINCT 8 / + ( - COUNT( * ) ) * + COUNT( * ) * - 75 * + CASE - 54 WHEN + + 1 THEN + 22 + COUNT( * ) * + 93 + CAST( NULL AS SIGNED ) END + 8 + + + 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2529
SELECT DISTINCT 8 / + ( - COUNT ( * ) ) * + COUNT ( * ) * - 75 * + CASE - 54 WHEN + + 1 THEN + 22 + COUNT ( * ) * + 93 + CAST ( NULL AS INTEGER ) END + 8 + + + 6 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2530
SELECT - + 51 DIV - + 22
----
2

skipif mysql # not compatible
query I rowsort label-2530
SELECT - + 51 / - + 22
----
2

query I rowsort
SELECT + + 40 * ( - 2 ) * - 52 AS col2
----
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT + - 65 * - + MIN( + + 27 )
----
1755

skipif mysql # not compatible
query I rowsort label-2532
SELECT + - 65 * - + MIN ( + + 27 )
----
1755

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT - CASE + 23 WHEN + 31 + + 79 THEN + 44 END + + + COUNT( * ) / - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT - CASE + 23 WHEN + 31 + + 79 THEN + 44 END + + + COUNT ( * ) / - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT MIN( - 6 ) * + - 44 * 84 + - 32 AS col0
----
22144

skipif mysql # not compatible
query I rowsort label-2534
SELECT MIN ( - 6 ) * + - 44 * 84 + - 32 AS col0
----
22144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT - COALESCE ( - MIN( ALL + - 69 ), - ( + + 43 ) + 36, - CAST( - 45 AS SIGNED ), - 13 + + 98 * 58 ) * - 84
----
5796

skipif mysql # not compatible
query I rowsort label-2535
SELECT - COALESCE ( - MIN ( ALL + - 69 ), - ( + + 43 ) + 36, - CAST ( - 45 AS INTEGER ), - 13 + + 98 * 58 ) * - 84
----
5796

query II rowsort
SELECT - - 83 + 50 AS col0, 67 * - 25 * 42 AS col2
----
133
-70350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2537
SELECT + - CASE - 1 WHEN + COALESCE ( + - 88, + CAST( - ( ( 1 ) ) AS DECIMAL ) ) THEN NULL WHEN - COALESCE ( + 4, + 65 ) / ( + CASE - 71 WHEN - 78 THEN + + 74 ELSE + 40 + + 7 + - 55 END ) + CASE + NULLIF ( 73, 57 ) WHEN + 37 THEN NULL WHEN - + AVG ( - 30 ) + 3 + + + NULLIF ( + 31, - 11 ) * + 98 THEN - 8 + + 12 WHEN + 19 THEN + 58 * COUNT( * ) END + - CAST( - 61 - - 0 * - 32 AS SIGNED ) THEN + 58 ELSE - ( - 79 ) - + 83 * - 26 END
----
-2237

skipif mysql # not compatible
query I rowsort label-2537
SELECT + - CASE - 1 WHEN + COALESCE ( + - 88, + CAST ( - ( ( 1 ) ) AS REAL ) ) THEN NULL WHEN - COALESCE ( + 4, + 65 ) / ( + CASE - 71 WHEN - 78 THEN + + 74 ELSE + 40 + + 7 + - 55 END ) + CASE + NULLIF ( 73, 57 ) WHEN + 37 THEN NULL WHEN - + AVG ( - 30 ) + 3 + + + NULLIF ( + 31, - 11 ) * + 98 THEN - 8 + + 12 WHEN + 19 THEN + 58 * COUNT ( * ) END + - CAST ( - 61 - - 0 * - 32 AS INTEGER ) THEN + 58 ELSE - ( - 79 ) - + 83 * - 26 END
----
-2237

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT - - 89 + ( 90 ) DIV - - 95 col1
----
89

skipif mysql # not compatible
query I rowsort label-2539
SELECT - - 89 + ( 90 ) / - - 95 col1
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2540
SELECT - 8 + - COUNT( * ) * + - ( - - 60 ) AS col2, NULLIF ( CAST( NULL AS SIGNED ), - 30 )
----
52
NULL

skipif mysql # not compatible
query II rowsort label-2540
SELECT - 8 + - COUNT ( * ) * + - ( - - 60 ) AS col2, NULLIF ( CAST ( NULL AS INTEGER ), - 30 )
----
52
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT ALL - + COALESCE ( - - 19, 19 DIV 81 + + + 77 ) * + 27 DIV 23 DIV - + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - + COALESCE ( - - 19, 19 / 81 + + + 77 ) * + 27 / 23 / - + 78 AS col2
----
0

query I rowsort
SELECT ALL - 18 * + 45
----
-810

query I rowsort
SELECT ALL - 9 * + - 47 AS col0
----
423

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

skipif mysql # not compatible
query II rowsort label-2544
SELECT DISTINCT 43, COUNT ( * ) AS col2
----
43
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2546
SELECT - 98 DIV + 33
----
-2

skipif mysql # not compatible
query I rowsort label-2546
SELECT - 98 / + 33
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2547
SELECT - 9 * - + CASE + 52 WHEN CAST( NULL AS SIGNED ) * 72 + ( - 61 ) THEN NULL WHEN + 28 * - + 73 + + 4 THEN NULL ELSE + 23 END, COUNT( * ) - + CAST( - 93 AS SIGNED ) * - COUNT( DISTINCT + - 74 ) * + + 75 * - COUNT( * ) * + + 58 AS col1
----
207
404551

skipif mysql # not compatible
query II rowsort label-2547
SELECT - 9 * - + CASE + 52 WHEN CAST ( NULL AS INTEGER ) * 72 + ( - 61 ) THEN NULL WHEN + 28 * - + 73 + + 4 THEN NULL ELSE + 23 END, COUNT ( * ) - + CAST ( - 93 AS INTEGER ) * - COUNT ( DISTINCT + - 74 ) * + + 75 * - COUNT ( * ) * + + 58 AS col1
----
207
404551

query I rowsort
SELECT + 74 * - + 21
----
-1554

query I rowsort
SELECT - COALESCE ( 50, 39 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT - 62 / + CASE 36 WHEN + - AVG ( 11 ) * 8 - + - 6 THEN + 46 / + - COUNT( * ) END * + 57 / - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT - 62 / + CASE 36 WHEN + - AVG ( 11 ) * 8 - + - 6 THEN + 46 / + - COUNT ( * ) END * + 57 / - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2551
SELECT ALL 73 DIV + + 26 col0
----
2

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL 73 / + + 26 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT - COALESCE ( - 48, - - 89 * - 88, - + NULLIF ( + 83, - COUNT( * ) + + + 31 + + + 86 + + + 56 * 89 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-2552
SELECT - COALESCE ( - 48, - - 89 * - 88, - + NULLIF ( + 83, - COUNT ( * ) + + + 31 + + + 86 + + + 56 * 89 ) ) AS col2
----
48

query I rowsort
SELECT DISTINCT 67 * + 16
----
1072

onlyif mysql # DIV for integer division: 
query I rowsort label-2554
SELECT ALL 95 DIV 57 + 88 * - 47 AS col1
----
-4135

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL 95 / 57 + 88 * - 47 AS col1
----
-4135

query I rowsort
SELECT ALL 2 * + 21 AS col1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT + 8 * - CASE + + 89 WHEN 72 THEN NULL WHEN + - SUM( ALL 30 ) - + - 39 THEN - COALESCE ( NULLIF ( + SUM( - - 20 ), 42 ), 46, + 9 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT + 8 * - CASE + + 89 WHEN 72 THEN NULL WHEN + - SUM ( ALL 30 ) - + - 39 THEN - COALESCE ( NULLIF ( + SUM ( - - 20 ), 42 ), 46, + 9 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT ALL - 1 DIV - 6 * MIN( - 72 ) + MAX( ALL - ( - 83 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL - 1 / - 6 * MIN ( - 72 ) + MAX ( ALL - ( - 83 ) ) AS col2
----
83

query I rowsort
SELECT + 25 - 2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT 31 * COUNT( * ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT 31 * COUNT ( * ) AS col0
----
31

query I rowsort
SELECT ALL ( - 66 ) * 49 AS col0
----
-3234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2561
SELECT 15 + COALESCE ( - + COUNT( * ), - 78 * + + ( - CASE + - 77 WHEN + + 41 + 80 * + AVG ( - + 94 ) * - - MIN( DISTINCT - 28 ) THEN + - ( + + COUNT( * ) ) * - 27 * - ( + - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + - + 85 END ) ) DIV 61
----
15

skipif mysql # not compatible
query I rowsort label-2561
SELECT 15 + COALESCE ( - + COUNT ( * ), - 78 * + + ( - CASE + - 77 WHEN + + 41 + 80 * + AVG ( - + 94 ) * - - MIN ( DISTINCT - 28 ) THEN + - ( + + COUNT ( * ) ) * - 27 * - ( + - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + - + 85 END ) ) / 61
----
15

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

query II rowsort
SELECT + 35, 58 AS col2
----
35
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT ALL + 8 + ( - MIN( ALL 92 ) ) + + NULLIF ( ( + + 78 ), + - 2 + - 24 ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-2564
SELECT ALL + 8 + ( - MIN ( ALL 92 ) ) + + NULLIF ( ( + + 78 ), + - 2 + - 24 ) AS col1
----
-6

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-2566
SELECT ALL - COUNT( * ) * SUM( ALL + 16 ), - 56 + - 7 + - CASE - 7 WHEN - - 6 THEN - 15 * - 88 - - + 51 + + 50 * + COUNT( * ) + COUNT( * ) + + 32 / - 92 END AS col0, + 95 AS col1
----
-16
NULL
95

skipif mysql # not compatible
query III rowsort label-2566
SELECT ALL - COUNT ( * ) * SUM ( ALL + 16 ), - 56 + - 7 + - CASE - 7 WHEN - - 6 THEN - 15 * - 88 - - + 51 + + 50 * + COUNT ( * ) + COUNT ( * ) + + 32 / - 92 END AS col0, + 95 AS col1
----
-16
NULL
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2567
SELECT 28 * 91 + + + COUNT( DISTINCT - 63 ) - MIN( ALL - - 42 ) + 38 + + 34 DIV + 55 + - 72 AS col0
----
2473

skipif mysql # not compatible
query I rowsort label-2567
SELECT 28 * 91 + + + COUNT ( DISTINCT - 63 ) - MIN ( ALL - - 42 ) + 38 + + 34 / + 55 + - 72 AS col0
----
2473

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ( + 67 ) + + COUNT( * ) * 11 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-2569
SELECT ( + 67 ) + + COUNT ( * ) * 11 AS col2
----
78

query I rowsort
SELECT ALL + 48 + - - 68 AS col2
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT + ( - 32 ) * - 7 + - + COUNT( * ) DIV + + 12 + COUNT( * ) AS col2
----
225

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + ( - 32 ) * - 7 + - + COUNT ( * ) / + + 12 + COUNT ( * ) AS col2
----
225

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT ALL 26 DIV - COUNT( * ) AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL 26 / - COUNT ( * ) AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT COUNT( * ) * MIN( + 66 ) + + 7
----
73

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT COUNT ( * ) * MIN ( + 66 ) + + 7
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT - 14 + + 38 - - MIN( ALL CASE 51 WHEN ( + - 60 ) THEN 22 ELSE 96 END ) + + 92 + + - 35 * 42 * 80 AS col2
----
-117388

skipif mysql # not compatible
query I rowsort label-2574
SELECT - 14 + + 38 - - MIN ( ALL CASE 51 WHEN ( + - 60 ) THEN 22 ELSE 96 END ) + + 92 + + - 35 * 42 * 80 AS col2
----
-117388

query I rowsort
SELECT - + 68 * + - 46 + - 62 AS col2
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT + COUNT( * ) * + 86 * + + 54 * + + 4 col2
----
18576

skipif mysql # not compatible
query I rowsort label-2576
SELECT + COUNT ( * ) * + 86 * + + 54 * + + 4 col2
----
18576

query I rowsort
SELECT 84 * + 16
----
1344

query I rowsort
SELECT - 97 + + 99 AS col2
----
2

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2580
SELECT CAST( NULL AS SIGNED ) + - 77 DIV 80 + + - 5 * 64 + - + CAST( NULL AS SIGNED ), 84 DIV 10 + + - 85 AS col2
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-2580
SELECT CAST ( NULL AS INTEGER ) + - 77 / 80 + + - 5 * 64 + - + CAST ( NULL AS INTEGER ), 84 / 10 + + - 85 AS col2
----
NULL
-77

query II rowsort
SELECT ALL 81, 25 AS col0
----
81
25

query I rowsort
SELECT 40 + - 99 + - + 10 * - + 41
----
351

query I rowsort
SELECT 46 * + 25
----
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2584
SELECT CAST( NULL AS SIGNED ) + SUM( ALL + 19 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT CAST ( NULL AS INTEGER ) + SUM ( ALL + 19 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 65 + 8 * ( + COUNT( * ) ) + 82 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-2585
SELECT 65 + 8 * ( + COUNT ( * ) ) + 82 AS col1
----
155

query I rowsort
SELECT COALESCE ( - 16, + - 97 + 80 ) * + 64 AS col2
----
-1024

query I rowsort
SELECT 72 * - - ( - 86 ) AS col1
----
-6192

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT MIN( ALL 57 ) + + 63 AS col2
----
120

skipif mysql # not compatible
query I rowsort label-2588
SELECT MIN ( ALL 57 ) + + 63 AS col2
----
120

query II rowsort
SELECT 3, - 56 AS col2
----
3
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT 52 + + - 46 + + - COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-2590
SELECT 52 + + - 46 + + - COUNT ( * )
----
5

query II rowsort
SELECT DISTINCT 6, COALESCE ( + - ( 89 ), + 85 ) AS col0
----
6
-89

query I rowsort
SELECT DISTINCT 3 + 67 AS col0
----
70

query I rowsort
SELECT DISTINCT + 69 * 95 AS col1
----
6555

query I rowsort
SELECT 71 + + 59 + - 10 AS col2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL - 42 + - COUNT( * ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - 42 + - COUNT ( * ) AS col0
----
-43

query I rowsort
SELECT ALL + 88 + 77 + - + 78 * - 65 AS col1
----
5235

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2597
SELECT 81 DIV COALESCE ( 27, - + 36 ), MAX( DISTINCT ( + + 30 ) ) * ( - COUNT( * ) ) + 20 AS col0
----
3
-10

skipif mysql # not compatible
query II rowsort label-2597
SELECT 81 / COALESCE ( 27, - + 36 ), MAX ( DISTINCT ( + + 30 ) ) * ( - COUNT ( * ) ) + 20 AS col0
----
3
-10

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

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL COUNT ( * ) + + - 56 AS col2
----
-55

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

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

query I rowsort
SELECT DISTINCT + 70 * + 23
----
1610

query I rowsort
SELECT 97 + - - ( 50 )
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT COUNT( * ) * + 80 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2602
SELECT COUNT ( * ) * + 80 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT - - SUM( 30 )
----
30

skipif mysql # not compatible
query I rowsort label-2603
SELECT - - SUM ( 30 )
----
30

query I rowsort
SELECT - 66 * 68 + 88 + + 95 * - - 41 AS col1
----
-505

query I rowsort
SELECT ALL + + 57 + 25
----
82

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2607
SELECT COUNT( * ) DIV - 74 + + 82 DIV - - ( - - 81 ) + + - 84 AS col0, - 92
----
-83
-92

skipif mysql # not compatible
query II rowsort label-2607
SELECT COUNT ( * ) / - 74 + + 82 / - - ( - - 81 ) + + - 84 AS col0, - 92
----
-83
-92

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

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

query II rowsort
SELECT ALL - + 65 AS col1, 14 * 39
----
-65
546

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2610
SELECT DISTINCT - - 28 + - 54 DIV + + COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT - - 28 + - 54 / + + COUNT ( * )
----
-26

query I rowsort
SELECT ALL - 88 * + + 78 * - 56 AS col1
----
384384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2612
SELECT DISTINCT - 30 - + CASE - 56 WHEN + 72 THEN 12 + - 89 + 42 ELSE + + CAST( + ( - + COUNT( * ) ) AS SIGNED ) + - 42 END AS col0
----
13

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - 30 - + CASE - 56 WHEN + 72 THEN 12 + - 89 + 42 ELSE + + CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) + - 42 END AS col0
----
13

query I rowsort
SELECT DISTINCT - ( + - ( - 76 ) ) col0
----
-76

query II rowsort
SELECT + 25, + 86 AS col0
----
25
86

query II rowsort
SELECT ALL - 73, + 28 - 9 AS col0
----
-73
19

query I rowsort
SELECT ALL NULLIF ( - + 35, - + 72 + + 75 ) * - 30 AS col2
----
1050

query I rowsort
SELECT + ( 85 ) + - + 71 col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT ALL - 36 - - MAX( DISTINCT + 61 ) * 10 AS col1
----
574

skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL - 36 - - MAX ( DISTINCT + 61 ) * 10 AS col1
----
574

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2619
SELECT + - NULLIF ( - 47, + CAST( NULL AS SIGNED ) ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2619
SELECT + - NULLIF ( - 47, + CAST ( NULL AS INTEGER ) ) AS col0
----
47

query II rowsort
SELECT 2 AS col0, - 97
----
2
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT + SUM( DISTINCT + + 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2621
SELECT + SUM ( DISTINCT + + 53 ) AS col2
----
53

onlyif mysql # DIV for integer division: 
query II rowsort label-2622
SELECT + COALESCE ( - 5, 70 ) DIV - 87 AS col1, 69
----
0
69

skipif mysql # not compatible
query II rowsort label-2622
SELECT + COALESCE ( - 5, 70 ) / - 87 AS col1, 69
----
0
69

onlyif mysql # aggregate syntax: 
query II rowsort label-2623
SELECT DISTINCT - + 95 AS col0, COUNT( * )
----
-95
1

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT - + 95 AS col0, COUNT ( * )
----
-95
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT DISTINCT + 12 DIV 72 col1
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT + 12 / 72 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2626
SELECT DISTINCT 34 * + 7 / + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT 34 * + 7 / + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT 21 + - CASE - + 45 WHEN + 83 THEN + COALESCE ( + - 13, + 65 * + 79 * + 22 * + 89 * - 23, + 96 ) + - - 62 * - ( + 52 ) + - COUNT( * ) ELSE NULL END + - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2627
SELECT 21 + - CASE - + 45 WHEN + 83 THEN + COALESCE ( + - 13, + 65 * + 79 * + 22 * + 89 * - 23, + 96 ) + - - 62 * - ( + 52 ) + - COUNT ( * ) ELSE NULL END + - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT COALESCE ( - MAX( + 69 ), + 79 ) + - 71 AS col0
----
-140

skipif mysql # not compatible
query I rowsort label-2628
SELECT COALESCE ( - MAX ( + 69 ), + 79 ) + - 71 AS col0
----
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2629
SELECT ( - 17 ) DIV - MAX( - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT ( - 17 ) / - MAX ( - 38 )
----
0

query I rowsort
SELECT DISTINCT 98 + - 13
----
85

query I rowsort
SELECT ALL 56 * 17 * - - 30 * - 64 * - - 85
----
-155366400

query I rowsort
SELECT DISTINCT 91 * ( - 47 ) AS col2
----
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - 46 + - COUNT( * ) + + 27 * 19 + + COALESCE ( + - ( - + ( + + 5 ) ), + - 23 ) * + 31
----
621

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - 46 + - COUNT ( * ) + + 27 * 19 + + COALESCE ( + - ( - + ( + + 5 ) ), + - 23 ) * + 31
----
621

query I rowsort
SELECT DISTINCT 62 + 52
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT + 74 + + + 26 + + - 0 * + 98 * + COUNT( * )
----
100

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + 74 + + + 26 + + - 0 * + 98 * + COUNT ( * )
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT DISTINCT 55 * + COUNT( * ), + 77 * - + ( - 63 ) col1
----
55
4851

skipif mysql # not compatible
query II rowsort label-2636
SELECT DISTINCT 55 * + COUNT ( * ), + 77 * - + ( - 63 ) col1
----
55
4851

query I rowsort
SELECT ALL - 10 + - + 32 AS col0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2638
SELECT - CASE - - 34 WHEN + 71 THEN NULL ELSE - 42 * + + ( - - CASE - - 57 WHEN - 66 THEN - 71 * + + COALESCE ( + COUNT( * ), - + CAST( NULL AS SIGNED ) * + 9 + - CAST( COALESCE ( 53, + COALESCE ( - 1, - + 21 + - 40 ), - - 1 * + 27 + + 73 * 85 + - 71 * + CAST( NULL AS SIGNED ) - + 37 ) AS DECIMAL ) ) WHEN + 55 THEN 47 END ) / AVG ( + + 42 ) / - + 33 + 14 + 8 - + 89 END, + ( + CASE 57 WHEN - COUNT( * ) THEN - 57 + + COUNT( * ) * + 12 WHEN + 50 THEN NULL END ) AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2638
SELECT - CASE - - 34 WHEN + 71 THEN NULL ELSE - 42 * + + ( - - CASE - - 57 WHEN - 66 THEN - 71 * + + COALESCE ( + COUNT ( * ), - + CAST ( NULL AS INTEGER ) * + 9 + - CAST ( COALESCE ( 53, + COALESCE ( - 1, - + 21 + - 40 ), - - 1 * + 27 + + 73 * 85 + - 71 * + CAST ( NULL AS INTEGER ) - + 37 ) AS REAL ) ) WHEN + 55 THEN 47 END ) / AVG ( + + 42 ) / - + 33 + 14 + 8 - + 89 END, + ( + CASE 57 WHEN - COUNT ( * ) THEN - 57 + + COUNT ( * ) * + 12 WHEN + 50 THEN NULL END ) AS col0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT - SUM( 89 ) * 61 col0
----
-5429

skipif mysql # not compatible
query I rowsort label-2639
SELECT - SUM ( 89 ) * 61 col0
----
-5429

query I rowsort
SELECT - NULLIF ( + 1, 39 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2641
SELECT DISTINCT - 39 DIV - + 58 col1, MAX( 16 ) * - + NULLIF ( + 45, + 28 DIV + ( - + 23 ) )
----
0
-720

skipif mysql # not compatible
query II rowsort label-2641
SELECT DISTINCT - 39 / - + 58 col1, MAX ( 16 ) * - + NULLIF ( + 45, + 28 / + ( - + 23 ) )
----
0
-720

query II rowsort
SELECT ALL 58 - + 86 AS col1, 44 AS col0
----
-28
44

query I rowsort
SELECT DISTINCT + + 37 col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT + CAST( - - 25 AS SIGNED ) * + - 63 + + MIN( DISTINCT 36 ) * - ( COUNT( * ) ) AS col0
----
-1611

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + CAST ( - - 25 AS INTEGER ) * + - 63 + + MIN ( DISTINCT 36 ) * - ( COUNT ( * ) ) AS col0
----
-1611

query I rowsort
SELECT + 42 * - 36 + + 88 col0
----
-1424

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2647
SELECT 51 DIV - 1 + 20 AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-2647
SELECT 51 / - 1 + 20 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT - + SUM( - CAST( - 30 AS SIGNED ) ) + + 31
----
1

skipif mysql # not compatible
query I rowsort label-2648
SELECT - + SUM ( - CAST ( - 30 AS INTEGER ) ) + + 31
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2649
SELECT + + CAST( 25 AS SIGNED ), + 3 * SUM( - CAST( NULL AS SIGNED ) ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2649
SELECT + + CAST ( 25 AS INTEGER ), + 3 * SUM ( - CAST ( NULL AS INTEGER ) ) AS col1
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT - 91 * - CASE + + 59 WHEN + - 62 THEN - - 80 END * SUM( DISTINCT + - ( - CASE 25 WHEN 43 THEN NULL ELSE - - 10 + + 22 END ) ) * - 66 + + + NULLIF ( - - 64, 97 ) + - - 5 / - 77 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2650
SELECT - 91 * - CASE + + 59 WHEN + - 62 THEN - - 80 END * SUM ( DISTINCT + - ( - CASE 25 WHEN 43 THEN NULL ELSE - - 10 + + 22 END ) ) * - 66 + + + NULLIF ( - - 64, 97 ) + - - 5 / - 77 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2651
SELECT ALL - - COUNT( * ) DIV - 18 - - + 97 + - - CAST( 35 AS SIGNED )
----
132

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - - COUNT ( * ) / - 18 - - + 97 + - - CAST ( 35 AS INTEGER )
----
132

query I rowsort
SELECT - - 94 * 77 + + - 58 + + 25 + + 1
----
7206

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

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

query I rowsort
SELECT - 10 * - - 67 AS col2
----
-670

query I rowsort
SELECT DISTINCT - 84 * - 28 + + 50 AS col1
----
2402

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

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

query I rowsort
SELECT ALL 57 * - - 94 * - 20
----
-107160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2658
SELECT + COUNT( * ) + - - 6 * 49 + 65 + - - 28 DIV - 72
----
360

skipif mysql # not compatible
query I rowsort label-2658
SELECT + COUNT ( * ) + - - 6 * 49 + 65 + - - 28 / - 72
----
360

query I rowsort
SELECT + 39 + 22
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT MIN( DISTINCT + 97 ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2660
SELECT MIN ( DISTINCT + 97 ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT ALL ( - SUM( - 99 ) )
----
99

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL ( - SUM ( - 99 ) )
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2662
SELECT - COALESCE ( - + ( - CAST( NULL AS SIGNED ) ), - NULLIF ( MAX( DISTINCT + CAST( NULL AS SIGNED ) ), - + 92 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT - COALESCE ( - + ( - CAST ( NULL AS INTEGER ) ), - NULLIF ( MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ), - + 92 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2663
SELECT + SUM( + - 82 ) + - 68 AS col2, 25 + - - 14 + + + 24
----
-150
63

skipif mysql # not compatible
query II rowsort label-2663
SELECT + SUM ( + - 82 ) + - 68 AS col2, 25 + - - 14 + + + 24
----
-150
63

query I rowsort
SELECT - 79 * - 61
----
4819

query I rowsort
SELECT + 96 + 28 AS col2
----
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT 8 + + ( - + COUNT( * ) ) + + 55 + - COUNT( * ) * - - 87 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT 8 + + ( - + COUNT ( * ) ) + + 55 + - COUNT ( * ) * - - 87 AS col1
----
-25

query I rowsort
SELECT ALL 43 * 15
----
645

query I rowsort
SELECT + 49 * - 70 AS col2
----
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + 66 + + + COUNT( * ) * - 37
----
29

skipif mysql # not compatible
query I rowsort label-2669
SELECT + 66 + + + COUNT ( * ) * - 37
----
29

query I rowsort
SELECT ALL 3 * 78 AS col0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-2671
SELECT + - COUNT( * ) + + + 52
----
51

skipif mysql # not compatible
query I rowsort label-2671
SELECT + - COUNT ( * ) + + + 52
----
51

query II rowsort
SELECT ALL - + 90 - + + 49 * - 32 AS col1, + ( + + 34 )
----
1478
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL - CASE 41 WHEN + 70 * ( + ( + 87 ) ) - + + 36 THEN MAX( + 82 ) * + - 26 + + COALESCE ( + - CASE NULLIF ( + 70, 68 ) WHEN 45 THEN + 25 WHEN + 6 * - 82 THEN NULL WHEN + 79 * - 16 THEN NULL END, 75 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - CASE 41 WHEN + 70 * ( + ( + 87 ) ) - + + 36 THEN MAX ( + 82 ) * + - 26 + + COALESCE ( + - CASE NULLIF ( + 70, 68 ) WHEN 45 THEN + 25 WHEN + 6 * - 82 THEN NULL WHEN + 79 * - 16 THEN NULL END, 75 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL COALESCE ( + + 25, 7 )
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT - - 5 * 21 + 1 + - ( + - 2 ) - - MIN( DISTINCT + + 20 ) + 13 * 33 * 11 AS col0
----
4847

skipif mysql # not compatible
query I rowsort label-2675
SELECT - - 5 * 21 + 1 + - ( + - 2 ) - - MIN ( DISTINCT + + 20 ) + 13 * 33 * 11 AS col0
----
4847

query I rowsort
SELECT + 76 * - + 60 AS col0
----
-4560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2677
SELECT ALL - COUNT( * ) * + SUM( + 54 ), CAST( - 57 AS SIGNED ) + - COUNT( * ) col1
----
-54
-58

skipif mysql # not compatible
query II rowsort label-2677
SELECT ALL - COUNT ( * ) * + SUM ( + 54 ), CAST ( - 57 AS INTEGER ) + - COUNT ( * ) col1
----
-54
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2678
SELECT + COALESCE ( - COUNT( * ), + - 13 + - 70 + 87, 40, - CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COALESCE ( - COUNT ( * ), + - 13 + - 70 + 87, 40, - CAST ( NULL AS INTEGER ) ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT - + 90 * + - COUNT( * ) col1
----
90

skipif mysql # not compatible
query I rowsort label-2680
SELECT - + 90 * + - COUNT ( * ) col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2681
SELECT ALL + + 16 DIV - 97 + - - 37 * + COUNT( * ) * - 99
----
-3663

skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL + + 16 / - 97 + - - 37 * + COUNT ( * ) * - 99
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + + 79 * + COUNT( * ) * 37 * - COUNT( * ) * 68
----
-198764

skipif mysql # not compatible
query I rowsort label-2682
SELECT + + 79 * + COUNT ( * ) * 37 * - COUNT ( * ) * 68
----
-198764

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT + + COUNT( - 27 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2683
SELECT + + COUNT ( - 27 ) col2
----
1

query II rowsort
SELECT + 45, + NULLIF ( - 83, - 31 - 78 ) + - - 46 AS col2
----
45
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT ( CASE - + ( 60 ) WHEN 42 + + 31 THEN + 48 * 93 + - + 34 - - COUNT( * ) + - - 54 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ( CASE - + ( 60 ) WHEN 42 + + 31 THEN + 48 * 93 + - + 34 - - COUNT ( * ) + - - 54 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT - 45 DIV 8 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2686
SELECT - 45 / 8 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT ( - SUM( DISTINCT - + 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2687
SELECT ( - SUM ( DISTINCT - + 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2688
SELECT + 86 * - 24 + + - MAX( DISTINCT - 50 ) * + 44
----
136

skipif mysql # not compatible
query I rowsort label-2688
SELECT + 86 * - 24 + + - MAX ( DISTINCT - 50 ) * + 44
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT ALL 67 * + 76 + + + CAST( NULL AS SIGNED ) + - 41 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 67 * + 76 + + + CAST ( NULL AS INTEGER ) + - 41 AS col0
----
NULL

query II rowsort
SELECT DISTINCT + ( - - 77 ), 40 + 95 * + + 73 col2
----
77
6975

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

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

query I rowsort
SELECT ALL + 29 + - + ( - 96 )
----
125

query I rowsort
SELECT DISTINCT + 11 - - - 14 * + 40
----
-549

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT 2 * - MIN( - + 21 ) AS col1
----
42

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT 2 * - MIN ( - + 21 ) AS col1
----
42

query I rowsort
SELECT DISTINCT - 66 * - 15
----
990

query I rowsort
SELECT DISTINCT + 11 - - 14
----
25

query I rowsort
SELECT DISTINCT 72 col1
----
72

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT + 84 * + 53 * - CAST( NULL AS SIGNED ) * 75 + + + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2699
SELECT + 84 * + 53 * - CAST ( NULL AS INTEGER ) * 75 + + + 85 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT - ( + 43 ) * + + 7 + 63 AS col2, 66 * + SUM( - 87 )
----
-238
-5742

skipif mysql # not compatible
query II rowsort label-2700
SELECT - ( + 43 ) * + + 7 + 63 AS col2, 66 * + SUM ( - 87 )
----
-238
-5742

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT NULLIF ( + + MIN( ALL 55 ), + + ( + + AVG ( ALL 15 ) ) ) * 95 * + 1
----
5225

skipif mysql # not compatible
query I rowsort label-2701
SELECT NULLIF ( + + MIN ( ALL 55 ), + + ( + + AVG ( ALL 15 ) ) ) * 95 * + 1
----
5225

query I rowsort
SELECT 15 - - 51
----
66

query I rowsort
SELECT - 64 * - 63
----
4032

query I rowsort
SELECT ALL + 49 * + 3
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT + MIN( ALL - ( 3 ) ) - NULLIF ( + + COUNT( * ), - COUNT( * ) ) + 48 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-2705
SELECT + MIN ( ALL - ( 3 ) ) - NULLIF ( + + COUNT ( * ), - COUNT ( * ) ) + 48 AS col2
----
44

query I rowsort
SELECT 7 * + NULLIF ( 41, + 16 )
----
287

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL - COUNT( * ) * - 13 * COUNT( * ) * - 56
----
-728

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - COUNT ( * ) * - 13 * COUNT ( * ) * - 56
----
-728

query I rowsort
SELECT ALL 84 + - + 90
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - MAX( - 64 ) + - + 8 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-2709
SELECT - MAX ( - 64 ) + - + 8 AS col0
----
56

query I rowsort
SELECT 77 * 86 AS col2
----
6622

query I rowsort
SELECT ALL - 22 + + 41 * - 49
----
-2031

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT - MIN( - 39 ) + - - 1
----
40

skipif mysql # not compatible
query I rowsort label-2712
SELECT - MIN ( - 39 ) + - - 1
----
40

query II rowsort
SELECT 80 AS col2, + 80 + 43
----
80
123

query I rowsort
SELECT ALL - 60 + 25 AS col0
----
-35

query I rowsort
SELECT 23 * - + 25 + + 88 * + 60
----
4705

query II rowsort
SELECT ALL - 91, 89 * 47 * 49 + + - 75 * 57 AS col0
----
-91
200692

query I rowsort
SELECT + 82 * - ( 12 ) + 11 AS col0
----
-973

query I rowsort
SELECT 81 * 81 * - - 14 AS col2
----
91854

query II rowsort
SELECT + 96 AS col0, 92 AS col2
----
96
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT - COUNT( * ) * + + 38 + 69 - + 53 DIV 8 + - + 67
----
-42

skipif mysql # not compatible
query I rowsort label-2720
SELECT - COUNT ( * ) * + + 38 + 69 - + 53 / 8 + - + 67
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2721
SELECT 97 * + 12 * + COUNT( * ) * - CAST( NULL AS DECIMAL ) + - - COALESCE ( - 83, - COALESCE ( - 51, - CASE - 8 WHEN + + ( - 1 ) / 23 / 60 * - 44 + 68 * 50 THEN + CAST( NULL AS SIGNED ) END ) / - COUNT( * ) * 14, + + 95 / + 52 ) + 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT 97 * + 12 * + COUNT ( * ) * - CAST ( NULL AS REAL ) + - - COALESCE ( - 83, - COALESCE ( - 51, - CASE - 8 WHEN + + ( - 1 ) / 23 / 60 * - 44 + 68 * 50 THEN + CAST ( NULL AS INTEGER ) END ) / - COUNT ( * ) * 14, + + 95 / + 52 ) + 20 AS col0
----
NULL

query II rowsort
SELECT ALL - 51 AS col1, + 66
----
-51
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2723
SELECT 90 / COUNT( * ) * - - 50 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT 90 / COUNT ( * ) * - - 50 / + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2724
SELECT - 8 + + - CASE + COUNT( * ) WHEN - 13 + + - COUNT( * ) THEN - 82 * - 42 END + - COUNT( * ) + + COALESCE ( - 58, + - COUNT( ALL 94 ) + + - 21 * - 5 * - - CAST( - 70 AS SIGNED ) / - 42 ) - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2724
SELECT - 8 + + - CASE + COUNT ( * ) WHEN - 13 + + - COUNT ( * ) THEN - 82 * - 42 END + - COUNT ( * ) + + COALESCE ( - 58, + - COUNT ( ALL 94 ) + + - 21 * - 5 * - - CAST ( - 70 AS INTEGER ) / - 42 ) - 54
----
NULL

query I rowsort
SELECT DISTINCT ( + COALESCE ( + 32, 88, + + 22 ) ) AS col1
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT + 22 + - - CASE WHEN NOT - 37 IS NOT NULL THEN 64 END + + - COUNT( * ), CASE - - 75 WHEN - 54 THEN 69 WHEN + 7 THEN + - 20 WHEN + 31 + - 90 THEN NULL END * - - SUM( + COALESCE ( + 79, + 52 ) ) + - 46 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2726
SELECT + 22 + - - CASE WHEN NOT - 37 IS NOT NULL THEN 64 END + + - COUNT ( * ), CASE - - 75 WHEN - 54 THEN 69 WHEN + 7 THEN + - 20 WHEN + 31 + - 90 THEN NULL END * - - SUM ( + COALESCE ( + 79, + 52 ) ) + - 46 AS col0
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 11 * + 20
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2728
SELECT ALL - CAST( + NULLIF ( 99, 17 ) AS SIGNED ) + 14 AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - CAST ( + NULLIF ( 99, 17 ) AS INTEGER ) + 14 AS col0
----
-85

query I rowsort
SELECT - 58 + + 44
----
-14

query I rowsort
SELECT DISTINCT - 67 * + 6 * - 97
----
38994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2731
SELECT - CASE + 60 WHEN - COUNT( * ) THEN + MAX( + + 90 ) * - + NULLIF ( + - 1, - - 26 / - 4 * - 13 ) + + CASE - + ( - + 75 ) WHEN - 78 THEN 87 WHEN + 92 THEN NULL END + + CAST( NULL AS DECIMAL ) WHEN + - ( - 83 ) THEN NULL END + NULLIF ( + CAST( NULL AS SIGNED ), - 79 * 4 / - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2731
SELECT - CASE + 60 WHEN - COUNT ( * ) THEN + MAX ( + + 90 ) * - + NULLIF ( + - 1, - - 26 / - 4 * - 13 ) + + CASE - + ( - + 75 ) WHEN - 78 THEN 87 WHEN + 92 THEN NULL END + + CAST ( NULL AS REAL ) WHEN + - ( - 83 ) THEN NULL END + NULLIF ( + CAST ( NULL AS INTEGER ), - 79 * 4 / - 30 )
----
NULL

query I rowsort
SELECT DISTINCT - 75 + - 83
----
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL + COUNT( * ) + + 18 col0
----
19

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL + COUNT ( * ) + + 18 col0
----
19

query I rowsort
SELECT DISTINCT + 84 + + 60
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT 2 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT 2 / + 28
----
0

query I rowsort
SELECT + 21 + 45 * + 64 * + 73 * + - 36 AS col2
----
-7568619

query I rowsort
SELECT 91 + + 13
----
104

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

query I rowsort
SELECT 65 * 38
----
2470

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT CASE + ( - 22 ) WHEN + COUNT( + 21 ) + - 36 THEN - 41 WHEN - + 16 THEN + 36 - + 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT CASE + ( - 22 ) WHEN + COUNT ( + 21 ) + - 36 THEN - 41 WHEN - + 16 THEN + 36 - + 49 END AS col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2741
SELECT DISTINCT 39 * + - CAST( NULL AS DECIMAL ) / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT 39 * + - CAST ( NULL AS REAL ) / + 14
----
NULL

query I rowsort
SELECT ALL 28 * + - 18 * + 6 - + 22 AS col2
----
-3046

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

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

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

skipif mysql # not compatible
query I rowsort label-2744
SELECT MAX ( DISTINCT - - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT + 80 * 9 * + - 14 * + - COUNT( * ) * - 4 * + 14 AS col2
----
-564480

skipif mysql # not compatible
query I rowsort label-2745
SELECT + 80 * 9 * + - 14 * + - COUNT ( * ) * - 4 * + 14 AS col2
----
-564480

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT + COUNT( DISTINCT - 89 ) * - 23 - - + 81 * + - 77 + + - 69 + - 60
----
-6389

skipif mysql # not compatible
query I rowsort label-2748
SELECT + COUNT ( DISTINCT - 89 ) * - 23 - - + 81 * + - 77 + + - 69 + - 60
----
-6389

query II rowsort
SELECT ALL + 55, - 11 AS col0
----
55
-11

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

query II rowsort
SELECT DISTINCT + 29 AS col1, 99 * + + 73
----
29
7227

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

query I rowsort
SELECT + 20 * - - 31
----
620

query I rowsort
SELECT ALL 25 * ( + + 91 ) AS col0
----
2275

query II rowsort
SELECT + 18, 16 AS col1
----
18
16

query I rowsort
SELECT + COALESCE ( - + 78, + - 4 ) AS col1
----
-78

query I rowsort
SELECT + ( + - 5 ) + 64
----
59

query I rowsort
SELECT ALL 3 * - 43 AS col2
----
-129

query III rowsort
SELECT 1 AS col1, 18 AS col0, - 69 AS col0
----
1
18
-69

query I rowsort
SELECT DISTINCT - 79 + 40 * + 22
----
801

query I rowsort
SELECT + + 66 + - - 85 AS col2
----
151

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-2762
SELECT DISTINCT 74, NULLIF ( - COUNT( * ), + CAST( - 72 AS DECIMAL ) * 59 ) DIV + - COUNT( * ) + - 34 * + 62 * + - 79 AS col2
----
74
166533

skipif mysql # not compatible
query II rowsort label-2762
SELECT DISTINCT 74, NULLIF ( - COUNT ( * ), + CAST ( - 72 AS REAL ) * 59 ) / + - COUNT ( * ) + - 34 * + 62 * + - 79 AS col2
----
74
166533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2763
SELECT ALL - ( + ( + COALESCE ( + 33, - CAST( NULL AS SIGNED ) ) ) )
----
-33

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - ( + ( + COALESCE ( + 33, - CAST ( NULL AS INTEGER ) ) ) )
----
-33

query II rowsort
SELECT 87 AS col0, COALESCE ( 78, - + 23 ) col2
----
87
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT - COUNT( * ) * + 48 * + 81
----
-3888

skipif mysql # not compatible
query I rowsort label-2765
SELECT - COUNT ( * ) * + 48 * + 81
----
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT ALL + - 24 + + ( - - MIN( 69 ) ) + + 93 * + MAX( + 46 ) * - 7 + + 38 + + 89
----
-29774

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + - 24 + + ( - - MIN ( 69 ) ) + + 93 * + MAX ( + 46 ) * - 7 + + 38 + + 89
----
-29774

query I rowsort
SELECT DISTINCT + + 7 * - 3 col2
----
-21

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2770
SELECT + CAST( - 18 AS SIGNED ) DIV 9 + + - 82 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-2770
SELECT + CAST ( - 18 AS INTEGER ) / 9 + + - 82 AS col1
----
-84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2771
SELECT + CASE + 56 WHEN + NULLIF ( - - 42, + COUNT( * ) ) - CAST( NULL AS DECIMAL ) THEN NULL ELSE + NULLIF ( - - 8, - - AVG ( 59 ) ) END * 54 + 47 - - MIN( - 33 ) + + 96 + + 39 AS col0
----
581

skipif mysql # not compatible
query I rowsort label-2771
SELECT + CASE + 56 WHEN + NULLIF ( - - 42, + COUNT ( * ) ) - CAST ( NULL AS REAL ) THEN NULL ELSE + NULLIF ( - - 8, - - AVG ( 59 ) ) END * 54 + 47 - - MIN ( - 33 ) + + 96 + + 39 AS col0
----
581

query I rowsort
SELECT - 56 + + ( ( - 42 ) )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2773
SELECT 97 DIV + - 43 - - 91 * + 55 * 54 col1
----
270268

skipif mysql # not compatible
query I rowsort label-2773
SELECT 97 / + - 43 - - 91 * + 55 * 54 col1
----
270268

query I rowsort
SELECT ( - - 95 )
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2775
SELECT - CAST( + 70 AS SIGNED ) DIV 21 * 43 * - + 48 AS col1
----
6192

skipif mysql # not compatible
query I rowsort label-2775
SELECT - CAST ( + 70 AS INTEGER ) / 21 * 43 * - + 48 AS col1
----
6192

onlyif mysql # DIV for integer division: 
query I rowsort label-2776
SELECT ALL + 25 DIV 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2776
SELECT ALL + 25 / 52 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT DISTINCT + COALESCE ( + COALESCE ( - + 30, - 8, - 92 ), + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-2778
SELECT DISTINCT + COALESCE ( + COALESCE ( - + 30, - 8, - 92 ), + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT + 20 DIV - CASE COUNT( * ) WHEN - 11 - + - 93 THEN NULL ELSE + 42 - + - COUNT( * ) * - 70 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 20 / - CASE COUNT ( * ) WHEN - 11 - + - 93 THEN NULL ELSE + 42 - + - COUNT ( * ) * - 70 END AS col2
----
0

query I rowsort
SELECT + 79 + + + 85 AS col2
----
164

query I rowsort
SELECT + 96 * + + ( - ( 57 ) )
----
-5472

query I rowsort
SELECT - COALESCE ( + 77, 2 ) + + + 31 AS col0
----
-46

query I rowsort
SELECT CASE - - 54 WHEN 44 * + + 66 / - + 4 * 89 THEN + - 79 * + - 85 END AS col0
----
NULL

query I rowsort
SELECT - 91 * + 61 + 19 AS col0
----
-5532

query II rowsort
SELECT + 60 * - - 37 AS col2, - 10 AS col0
----
2220
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT + MAX( - ( + ( - 24 ) ) ) * - - CASE 30 WHEN + 84 + - 97 THEN - 67 WHEN 10 * MIN( + 91 ) * + COUNT( * ) - - + 76 - + + 63 THEN NULL WHEN 42 THEN + 73 WHEN - - 25 THEN NULL WHEN + - 85 + - 93 THEN + 73 ELSE 32 END
----
768

skipif mysql # not compatible
query I rowsort label-2786
SELECT + MAX ( - ( + ( - 24 ) ) ) * - - CASE 30 WHEN + 84 + - 97 THEN - 67 WHEN 10 * MIN ( + 91 ) * + COUNT ( * ) - - + 76 - + + 63 THEN NULL WHEN 42 THEN + 73 WHEN - - 25 THEN NULL WHEN + - 85 + - 93 THEN + 73 ELSE 32 END
----
768

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

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

query I rowsort
SELECT DISTINCT - + 70 * - 13 * - ( - - ( - 53 ) ) + 57 - - - ( - 57 ) * + - 26
----
46805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2789
SELECT ALL + CASE + + NULLIF ( - 81, - 77 * - 30 + + 87 ) WHEN + 31 THEN + 0 + - + 88 + 7 + + - 85 WHEN + 97 THEN - + 5 * 30 + + + MIN( - - ( + ( - CAST( 95 AS SIGNED ) ) ) ) * + NULLIF ( 80, 84 ) + - + CASE - 38 WHEN 70 THEN - 98 WHEN 76 THEN NULL WHEN + + 23 THEN NULL ELSE NULL END + - 50 - 95 END * + 55 * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL + CASE + + NULLIF ( - 81, - 77 * - 30 + + 87 ) WHEN + 31 THEN + 0 + - + 88 + 7 + + - 85 WHEN + 97 THEN - + 5 * 30 + + + MIN ( - - ( + ( - CAST ( 95 AS INTEGER ) ) ) ) * + NULLIF ( 80, 84 ) + - + CASE - 38 WHEN 70 THEN - 98 WHEN 76 THEN NULL WHEN + + 23 THEN NULL ELSE NULL END + - 50 - 95 END * + 55 * + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + + 56 + + - 76 * - 87
----
6668

query I rowsort
SELECT - COALESCE ( + + 55, + - 89 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-2792
SELECT + 6 + - 11 DIV + NULLIF ( - 9, 45 ) col2, 18 + 53 AS col2
----
7
71

skipif mysql # not compatible
query II rowsort label-2792
SELECT + 6 + - 11 / + NULLIF ( - 9, 45 ) col2, 18 + 53 AS col2
----
7
71

query I rowsort
SELECT ALL COALESCE ( - ( + + 36 ), + + 37 - - 36 ) * 94 * - + 20
----
67680

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT + + COUNT( + 79 ) + + - 14 col2
----
-13

skipif mysql # not compatible
query I rowsort label-2794
SELECT + + COUNT ( + 79 ) + + - 14 col2
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2795
SELECT + 60 * - - 28 AS col1, 98 DIV + + 85 + MIN( + - 73 ) AS col1
----
1680
-72

skipif mysql # not compatible
query II rowsort label-2795
SELECT + 60 * - - 28 AS col1, 98 / + + 85 + MIN ( + - 73 ) AS col1
----
1680
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT - - 79 + - COUNT( * ) + - NULLIF ( 98, - 49 )
----
-20

skipif mysql # not compatible
query I rowsort label-2796
SELECT - - 79 + - COUNT ( * ) + - NULLIF ( 98, - 49 )
----
-20

query II rowsort
SELECT - 92 * + 17 AS col2, ( + + 36 ) AS col0
----
-1564
36

query I rowsort
SELECT 84 * - 70
----
-5880

query I rowsort
SELECT 91 + 21
----
112

query I rowsort
SELECT 0 + - 29 * + + ( 4 ) AS col2
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2801
SELECT 71 * + 66 * + CAST( NULL AS SIGNED ), + COUNT( * ) * + + 78 * + + 91 + + - 92 AS col0
----
NULL
7006

skipif mysql # not compatible
query II rowsort label-2801
SELECT 71 * + 66 * + CAST ( NULL AS INTEGER ), + COUNT ( * ) * + + 78 * + + 91 + + - 92 AS col0
----
NULL
7006

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

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

query I rowsort
SELECT 10 + 28 AS col0
----
38

query I rowsort
SELECT DISTINCT + 11 * - ( + 58 ) AS col0
----
-638

query I rowsort
SELECT ALL + 38 * 51 * + - 48 * + - 92
----
8558208

query II rowsort
SELECT DISTINCT - 22 AS col1, + 85 + 41 + + CASE + 22 WHEN 96 THEN NULL WHEN - 94 THEN + ( 59 ) * - 42 - + 10 END AS col1
----
-22
NULL

query I rowsort
SELECT DISTINCT - 11 * - 47 AS col0
----
517

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2808
SELECT 9 * - COALESCE ( 32, - CAST( NULL AS SIGNED ), + - COUNT( * ) ) AS col0
----
-288

skipif mysql # not compatible
query I rowsort label-2808
SELECT 9 * - COALESCE ( 32, - CAST ( NULL AS INTEGER ), + - COUNT ( * ) ) AS col0
----
-288

query I rowsort
SELECT 90 - 13 AS col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2810
SELECT + 59, CAST( + 0 AS SIGNED ) AS col1
----
59
0

skipif mysql # not compatible
query II rowsort label-2810
SELECT + 59, CAST ( + 0 AS INTEGER ) AS col1
----
59
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT 35 * 84 * + SUM( ALL 56 ) * + + COUNT( * ) AS col2
----
164640

skipif mysql # not compatible
query I rowsort label-2812
SELECT 35 * 84 * + SUM ( ALL 56 ) * + + COUNT ( * ) AS col2
----
164640

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT 41 DIV + 58 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2813
SELECT 41 / + 58 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT ALL NULLIF ( 68, - + 24 ) + - 23 + + COUNT( - 50 ) AS col1, MAX( + - 17 ) * COUNT( * ) + + 69
----
46
52

skipif mysql # not compatible
query II rowsort label-2814
SELECT ALL NULLIF ( 68, - + 24 ) + - 23 + + COUNT ( - 50 ) AS col1, MAX ( + - 17 ) * COUNT ( * ) + + 69
----
46
52

query I rowsort
SELECT DISTINCT 90 * 15 col0
----
1350

query I rowsort
SELECT DISTINCT - 76 + + - 51
----
-127

query I rowsort
SELECT ALL - 90 * 48 * 9
----
-38880

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2819
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + 80 + CASE + COUNT( 36 ) WHEN - + COUNT( * ) + - 12 THEN + 11 * - 84 WHEN + - 38 * - 97 THEN NULL WHEN + 56 THEN NULL ELSE NULL END + - COALESCE ( + CASE + 46 WHEN - 96 + + 74 * + - 25 THEN ( 18 ) WHEN SUM( ALL + 49 ) * - 19 THEN + 75 ELSE NULL END, COUNT( * ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + 80 + CASE + COUNT ( 36 ) WHEN - + COUNT ( * ) + - 12 THEN + 11 * - 84 WHEN + - 38 * - 97 THEN NULL WHEN + 56 THEN NULL ELSE NULL END + - COALESCE ( + CASE + 46 WHEN - 96 + + 74 * + - 25 THEN ( 18 ) WHEN SUM ( ALL + 49 ) * - 19 THEN + 75 ELSE NULL END, COUNT ( * ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 58 + - 18
----
-76

query I rowsort
SELECT DISTINCT 77 + - - 78 AS col2
----
155

query I rowsort
SELECT 31 + + - 13 * + 38
----
-463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2823
SELECT - MAX( DISTINCT + + 60 ) * COUNT( * ) * - + 61 * + - COALESCE ( + CAST( + ( - 33 ) AS SIGNED ), 72 ) * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2823
SELECT - MAX ( DISTINCT + + 60 ) * COUNT ( * ) * - + 61 * + - COALESCE ( + CAST ( + ( - 33 ) AS INTEGER ), 72 ) * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT CAST( - + 26 AS SIGNED ) + - + 82 + + - COUNT( * ) + - + ( + 44 ) AS col1
----
-153

skipif mysql # not compatible
query I rowsort label-2824
SELECT CAST ( - + 26 AS INTEGER ) + - + 82 + + - COUNT ( * ) + - + ( + 44 ) AS col1
----
-153

query II rowsort
SELECT DISTINCT 19 AS col2, ( + 22 ) AS col0
----
19
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT - COUNT( * ) - - 5
----
4

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - COUNT ( * ) - - 5
----
4

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

skipif mysql # not compatible
query I rowsort label-2827
SELECT - MIN ( + 66 )
----
-66

query I rowsort
SELECT ALL 61 - + 31
----
30

query I rowsort
SELECT 0 * + 21 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2830
SELECT - CAST( NULL AS SIGNED ) AS col2, - 30
----
NULL
-30

skipif mysql # not compatible
query II rowsort label-2830
SELECT - CAST ( NULL AS INTEGER ) AS col2, - 30
----
NULL
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + 78 - + - COUNT( * ) + + COUNT( * ) col2
----
80

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT + 78 - + - COUNT ( * ) + + COUNT ( * ) col2
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2832
SELECT + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2833
SELECT ALL - - 57 * + 14 * + 46 AS col1, CAST( NULL AS SIGNED ) * 45 / + + 44 + - + NULLIF ( + - 1, - CAST( NULL AS SIGNED ) ) + 22
----
36708
NULL

skipif mysql # not compatible
query II rowsort label-2833
SELECT ALL - - 57 * + 14 * + 46 AS col1, CAST ( NULL AS INTEGER ) * 45 / + + 44 + - + NULLIF ( + - 1, - CAST ( NULL AS INTEGER ) ) + 22
----
36708
NULL

query I rowsort
SELECT 56 + - - 89
----
145

query II rowsort
SELECT - + 0 AS col2, + 14
----
0
14

query I rowsort
SELECT 15 * + 48 + + 57 col0
----
777

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

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

query I rowsort
SELECT ALL 69 * + + 54 * 67
----
249642

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ( + 89 ) - - + 79 - 59 * CASE COUNT( * ) WHEN 93 THEN NULL ELSE 52 END
----
-2900

skipif mysql # not compatible
query I rowsort label-2839
SELECT ( + 89 ) - - + 79 - 59 * CASE COUNT ( * ) WHEN 93 THEN NULL ELSE 52 END
----
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL 15 * ( + MAX( DISTINCT + 4 ) ) col2
----
60

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL 15 * ( + MAX ( DISTINCT + 4 ) ) col2
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2841
SELECT MAX( + + 92 ) - - 40 DIV 86 * + - 4 * - COALESCE ( + 4, + COUNT( * ) ) DIV + + 88 * 8 * + + 49 * COALESCE ( + + 13, - 38, + - ( + - ( ( 41 ) ) ) )
----
92

skipif mysql # not compatible
query I rowsort label-2841
SELECT MAX ( + + 92 ) - - 40 / 86 * + - 4 * - COALESCE ( + 4, + COUNT ( * ) ) / + + 88 * 8 * + + 49 * COALESCE ( + + 13, - 38, + - ( + - ( ( 41 ) ) ) )
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-2842
SELECT 9 DIV - - 53 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT 9 / - - 53 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT CAST( NULL AS SIGNED ) * CASE - + 69 WHEN - 51 + + - 73 THEN + 17 ELSE NULL END + + + 8
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT CAST ( NULL AS INTEGER ) * CASE - + 69 WHEN - 51 + + - 73 THEN + 17 ELSE NULL END + + + 8
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL 3 DIV - - 17 col1
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL 3 / - - 17 col1
----
0

query I rowsort
SELECT 35 * + 73 - - 76 col2
----
2631

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT CASE + COALESCE ( - + NULLIF ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ), - 7 * - 21 ), - + 38 + - 96 ) WHEN + - NULLIF ( - 6, + - 64 + + 50 ) THEN - ( + ( - 40 ) ) END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2846
SELECT CASE + COALESCE ( - + NULLIF ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), - 7 * - 21 ), - + 38 + - 96 ) WHEN + - NULLIF ( - 6, + - 64 + + 50 ) THEN - ( + ( - 40 ) ) END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2847
SELECT - COUNT( * ) / - MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) - - 0 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT - COUNT ( * ) / - MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) - - 0 col1
----
NULL

query I rowsort
SELECT ALL + 51 * - ( + - 92 ) + 76 + - - 51 AS col0
----
4819

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT MIN( + NULLIF ( - 3, - 80 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2849
SELECT MIN ( + NULLIF ( - 3, - 80 ) )
----
-3

query I rowsort
SELECT 44 * 99 + - 48 AS col2
----
4308

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT 44 * 66 DIV 28 * + ( - - 50 )
----
5150

skipif mysql # not compatible
query I rowsort label-2851
SELECT 44 * 66 / 28 * + ( - - 50 )
----
5150

query I rowsort
SELECT DISTINCT - CASE + 66 WHEN - 22 * - 81 THEN + + 75 * - - 62 ELSE - + 23 END
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2853
SELECT ALL - AVG ( - + 78 ) * SUM( ALL CAST( NULL AS SIGNED ) ) + 72, COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2853
SELECT ALL - AVG ( - + 78 ) * SUM ( ALL CAST ( NULL AS INTEGER ) ) + 72, COUNT ( * ) AS col2
----
NULL
1

query II rowsort
SELECT DISTINCT 60 + - 95 + - 14 - + + COALESCE ( - + 65, - + 85, - + 65 * - + 42, + 74 ) * 71, - 72 AS col0
----
4566
-72

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

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL - CAST ( NULL AS INTEGER ) + - 64
----
NULL

query I rowsort
SELECT 34 + - 74
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL - 50 + + CAST( + 43 AS SIGNED ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL - 50 + + CAST ( + 43 AS INTEGER ) col0
----
-7

query I rowsort
SELECT 45 * + + ( - 89 ) * 77
----
-308385

query II rowsort
SELECT DISTINCT - + 92 - + 67, 92 * - - 52 - 89 + - - 37 AS col2
----
-159
4732

query II rowsort
SELECT + NULLIF ( - 55, 67 ) * - 98, + 5 AS col1
----
5390
5

query I rowsort
SELECT - 24 + + 6
----
-18

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

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + COUNT ( * ) - + MIN ( - 5 ) AS col0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT DISTINCT 77 * ( + CAST( - 7 AS SIGNED ) )
----
-539

skipif mysql # not compatible
query I rowsort label-2863
SELECT DISTINCT 77 * ( + CAST ( - 7 AS INTEGER ) )
----
-539

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2865
SELECT - - CAST( 52 AS SIGNED ) + - + ( 15 ) * + 94 DIV + - COUNT( * )
----
1462

skipif mysql # not compatible
query I rowsort label-2865
SELECT - - CAST ( 52 AS INTEGER ) + - + ( 15 ) * + 94 / + - COUNT ( * )
----
1462

query I rowsort
SELECT + 65 * - + 58 AS col0
----
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL - + COUNT( * ) * - - 24 * - 56
----
1344

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - + COUNT ( * ) * - - 24 * - 56
----
1344

query I rowsort
SELECT - + 77 + - 16 - - 68 col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2869
SELECT + - 97 + + - 56 + + COALESCE ( - CAST( NULL AS SIGNED ), ( 46 ) ) + + COUNT( * ) * + 51 * - ( - + 45 ) col2
----
2188

skipif mysql # not compatible
query I rowsort label-2869
SELECT + - 97 + + - 56 + + COALESCE ( - CAST ( NULL AS INTEGER ), ( 46 ) ) + + COUNT ( * ) * + 51 * - ( - + 45 ) col2
----
2188

query I rowsort
SELECT - + 27 * + - 89 AS col0
----
2403

query I rowsort
SELECT + 39 + + + 31
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2872
SELECT DISTINCT CASE + - 0 WHEN - 5 THEN - COUNT( * ) / + - MAX( 34 ) / + ( + COUNT( * ) ) + - - CASE + 4 WHEN - CAST( 26 AS DECIMAL ) THEN + + AVG ( 14 ) ELSE NULL END / - 35 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT CASE + - 0 WHEN - 5 THEN - COUNT ( * ) / + - MAX ( 34 ) / + ( + COUNT ( * ) ) + - - CASE + 4 WHEN - CAST ( 26 AS REAL ) THEN + + AVG ( 14 ) ELSE NULL END / - 35 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT ALL NULLIF ( + - 42, 12 ) + COUNT( * ) + - 52 + 67 + + MIN( ALL - 16 ) + 17 * + 18, + ( 69 ) * COALESCE ( + 4, 44 + - COUNT( * ) + 45 * - + 72 * - - 72 - + 74, + MIN( - + 6 ) ) AS col1
----
264
276

skipif mysql # not compatible
query II rowsort label-2873
SELECT ALL NULLIF ( + - 42, 12 ) + COUNT ( * ) + - 52 + 67 + + MIN ( ALL - 16 ) + 17 * + 18, + ( 69 ) * COALESCE ( + 4, 44 + - COUNT ( * ) + 45 * - + 72 * - - 72 - + 74, + MIN ( - + 6 ) ) AS col1
----
264
276

query I rowsort
SELECT ALL NULLIF ( - 45, - - 13 ) AS col0
----
-45

query I rowsort
SELECT + 3 + + 10
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2876
SELECT ALL 15 * - SUM( - 96 ) AS col1, - 35 - - 14 + + COUNT( * ) AS col0
----
1440
-20

skipif mysql # not compatible
query II rowsort label-2876
SELECT ALL 15 * - SUM ( - 96 ) AS col1, - 35 - - 14 + + COUNT ( * ) AS col0
----
1440
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT ALL 62 + 12 + - COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL 62 + 12 + - COUNT ( * )
----
73

query I rowsort
SELECT + 73 + 63
----
136

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

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

query I rowsort
SELECT + 49 + - 69
----
-20

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

query I rowsort
SELECT - 26 + 12 + - + 78 * + 65 + - + ( 51 ) * 94 * - 5 - - 50
----
18936

query I rowsort
SELECT DISTINCT 48 * + - 74 + - 84 * - - 32 AS col2
----
-6240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2884
SELECT ALL - CAST( NULL AS SIGNED ) * + - 44 + + + COUNT( + + 20 ) * COALESCE ( 97, + 16, + ( 51 ) + + + 50 + + 46 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 44 + + + COUNT ( + + 20 ) * COALESCE ( 97, + 16, + ( 51 ) + + + 50 + + 46 ) AS col2
----
NULL

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

query I rowsort
SELECT ALL - 30 * 76 + 78 AS col2
----
-2202

onlyif mysql # DIV for integer division: 
query I rowsort label-2887
SELECT ALL + 4 DIV - 24
----
0

skipif mysql # not compatible
query I rowsort label-2887
SELECT ALL + 4 / - 24
----
0

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

skipif mysql # not compatible
query I rowsort label-2888
SELECT + COUNT ( * ) * + + CAST ( - - 20 AS INTEGER )
----
20

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

skipif mysql # not compatible
query I rowsort label-2889
SELECT + COUNT ( ALL - 58 ) - + + COUNT ( * ) + + 92 AS col1
----
92

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2891
SELECT - 95 * 73 - + - 30 + 57 + + - 93 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2891
SELECT - 95 * 73 - + - 30 + 57 + + - 93 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT CASE + 77 WHEN - 98 THEN - + 30 / SUM( - 97 ) + 25 WHEN + 6 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2892
SELECT CASE + 77 WHEN - 98 THEN - + 30 / SUM ( - 97 ) + 25 WHEN + 6 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - + 44 * + - 33 AS col1
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT - MAX( DISTINCT - ( + - 39 ) ) + - COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-2894
SELECT - MAX ( DISTINCT - ( + - 39 ) ) + - COUNT ( * )
----
-40

query I rowsort
SELECT ALL + + 5 AS col0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT + ( + 29 ) + + + NULLIF ( 69, + CASE 74 WHEN - 23 * + MAX( + 16 ) + + - 29 - 13 * + 2 THEN + - 57 END * CAST( + COUNT( * ) AS SIGNED ) + - 93 + COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-2896
SELECT + ( + 29 ) + + + NULLIF ( 69, + CASE 74 WHEN - 23 * + MAX ( + 16 ) + + - 29 - 13 * + 2 THEN + - 57 END * CAST ( + COUNT ( * ) AS INTEGER ) + - 93 + COUNT ( * ) )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2897
SELECT + - CAST( NULL AS SIGNED ) * CASE + 3 WHEN - 58 THEN NULL WHEN - 96 * 72 + - 99 + 24 + - + 21 THEN NULL WHEN 59 THEN + COUNT( * ) ELSE NULL END + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + - CAST ( NULL AS INTEGER ) * CASE + 3 WHEN - 58 THEN NULL WHEN - 96 * 72 + - 99 + 24 + - + 21 THEN NULL WHEN 59 THEN + COUNT ( * ) ELSE NULL END + 39
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT - - CAST( + 60 AS SIGNED ) - + 61 + - 79 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-2898
SELECT - - CAST ( + 60 AS INTEGER ) - + 61 + - 79 AS col1
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-2899
SELECT ALL + 62 DIV 20
----
3

skipif mysql # not compatible
query I rowsort label-2899
SELECT ALL + 62 / 20
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2900
SELECT - - 56 DIV 38 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2900
SELECT - - 56 / 38 AS col0
----
1

query II rowsort
SELECT + 85 * - + 46 * - 85 AS col1, + 93 + + 55 + + 92 AS col0
----
332350
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2902
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - MAX( DISTINCT - 67 ) * + + 18 + - 95 * - 95 + + ( CAST( + 90 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - MAX ( DISTINCT - 67 ) * + + 18 + - 95 * - 95 + + ( CAST ( + 90 AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 6 + + 57 + - 42
----
9

query I rowsort
SELECT - ( 83 ) + - 95
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-2905
SELECT ALL + 79 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL + 79 / 71
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT + 61 * - - 49 * + COUNT( * ) AS col0
----
2989

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + 61 * - - 49 * + COUNT ( * ) AS col0
----
2989

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

skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - COUNT ( * ) + - - 36 AS col1
----
35

query II rowsort
SELECT 17 AS col0, 54
----
17
54

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

skipif mysql # not compatible
query II rowsort label-2910
SELECT + 74 * + COUNT ( * ) AS col1, CAST ( NULL AS REAL ) * 47
----
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT - NULLIF ( - COUNT( * ), + - 58 ) + + 70 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-2911
SELECT - NULLIF ( - COUNT ( * ), + - 58 ) + + 70 AS col0
----
71

query I rowsort
SELECT + 50 * 59
----
2950

query II rowsort
SELECT DISTINCT 49 AS col1, + 34 col1
----
49
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT + SUM( - - 61 ) + - 2 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT + SUM ( - - 61 ) + - 2 AS col2
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL + 72 + - - CAST( + ( - - 36 ) AS SIGNED ) * COUNT( * ) * - 38 + - 17 col0
----
-1313

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL + 72 + - - CAST ( + ( - - 36 ) AS INTEGER ) * COUNT ( * ) * - 38 + - 17 col0
----
-1313

query I rowsort
SELECT + 90 + 54
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT 68 AS col2, - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-2917
SELECT 68 AS col2, - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
68
-1

query II rowsort
SELECT ALL 65 AS col1, + 45 AS col2
----
65
45

query I rowsort
SELECT - 78 + - 85
----
-163

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2921
SELECT 45 DIV - - 37 + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-2921
SELECT 45 / - - 37 + COUNT ( * ) AS col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2922
SELECT COUNT( * ) * + 15 - - 57 + + CASE CASE WHEN COUNT( * ) = - 64 + + 98 / - + CAST( + 58 AS SIGNED ) THEN COALESCE ( + + 94, 24, - 33 * 50 ) / - 45 * - NULLIF ( + 70, 41 ) * + SUM( ALL - 56 ) + ( - - 96 ) - - 17 ELSE NULL END WHEN + 80 THEN NULL WHEN - 6 THEN COUNT( * ) WHEN + - AVG ( ALL + 40 ) * - 9 + - 88 THEN NULL WHEN - - 25 THEN + + CASE + 92 WHEN 81 THEN + + AVG ( ALL - - 98 ) END END + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT COUNT ( * ) * + 15 - - 57 + + CASE CASE WHEN COUNT ( * ) = - 64 + + 98 / - + CAST ( + 58 AS INTEGER ) THEN COALESCE ( + + 94, 24, - 33 * 50 ) / - 45 * - NULLIF ( + 70, 41 ) * + SUM ( ALL - 56 ) + ( - - 96 ) - - 17 ELSE NULL END WHEN + 80 THEN NULL WHEN - 6 THEN COUNT ( * ) WHEN + - AVG ( ALL + 40 ) * - 9 + - 88 THEN NULL WHEN - - 25 THEN + + CASE + 92 WHEN 81 THEN + + AVG ( ALL - - 98 ) END END + 23
----
NULL

query II rowsort
SELECT + + 79 + + + 50 + - - 67 * + 49, ( - 87 ) AS col2
----
3412
-87

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2925
SELECT + 40 * - - 57 + - 16 * 3 * + 65 + - 42 - - 71 + + ( + 27 ) * - + 47 * - 14 AS col1, NULLIF ( + - COALESCE ( - - MIN( 36 ), - CAST( + - NULLIF ( - + 8, + COUNT( * ) + CAST( + AVG ( + 46 ) AS SIGNED ) ) AS SIGNED ) + 12, - 54 + - 90 + ( - 4 ) ), - 99 + + - 71 )
----
16955
-36

skipif mysql # not compatible
query II rowsort label-2925
SELECT + 40 * - - 57 + - 16 * 3 * + 65 + - 42 - - 71 + + ( + 27 ) * - + 47 * - 14 AS col1, NULLIF ( + - COALESCE ( - - MIN ( 36 ), - CAST ( + - NULLIF ( - + 8, + COUNT ( * ) + CAST ( + AVG ( + 46 ) AS INTEGER ) ) AS INTEGER ) + 12, - 54 + - 90 + ( - 4 ) ), - 99 + + - 71 )
----
16955
-36

query II rowsort
SELECT ALL + - 44 AS col0, + 86
----
-44
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT DISTINCT + 40 * 79 DIV 92 col1
----
34

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT + 40 * 79 / 92 col1
----
34

onlyif mysql # aggregate syntax: 
query III rowsort label-2928
SELECT ALL + - CASE - - 88 WHEN - + ( - 78 ) * + NULLIF ( 5, 32 * + SUM( ALL 36 ) ) + - 21 THEN NULL ELSE - - 29 * + COUNT( * ) + - 40 + - 90 * ( + COUNT( * ) ) END AS col0, 73 AS col1, + + 92 + - COUNT( * )
----
101
73
91

skipif mysql # not compatible
query III rowsort label-2928
SELECT ALL + - CASE - - 88 WHEN - + ( - 78 ) * + NULLIF ( 5, 32 * + SUM ( ALL 36 ) ) + - 21 THEN NULL ELSE - - 29 * + COUNT ( * ) + - 40 + - 90 * ( + COUNT ( * ) ) END AS col0, 73 AS col1, + + 92 + - COUNT ( * )
----
101
73
91

query II rowsort
SELECT ALL + - 28, 56 AS col1
----
-28
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2930
SELECT + + 85 * - 1 * - - SUM( + 31 ) + + + 75 DIV 44 * COALESCE ( + 97, 6 ) AS col2
----
-2538

skipif mysql # not compatible
query I rowsort label-2930
SELECT + + 85 * - 1 * - - SUM ( + 31 ) + + + 75 / 44 * COALESCE ( + 97, 6 ) AS col2
----
-2538

query II rowsort
SELECT DISTINCT - - 71, - 35 AS col1
----
71
-35

query I rowsort
SELECT DISTINCT - ( - 41 ) AS col1
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2933
SELECT DISTINCT + 68 DIV + 69 * 23
----
0

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT + 68 / + 69 * 23
----
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2936
SELECT DISTINCT 12 DIV 45
----
0

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT 12 / 45
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + ( - 46 ) * + COUNT( 57 ) * - + 89 + 24 col2
----
4118

skipif mysql # not compatible
query I rowsort label-2937
SELECT + ( - 46 ) * + COUNT ( 57 ) * - + 89 + 24 col2
----
4118

query II rowsort
SELECT - 89 AS col2, + 15 AS col1
----
-89
15

query II rowsort
SELECT ALL - 75 + - 38 col0, 42 AS col0
----
-113
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT NULLIF ( + - SUM( + - 76 ), + 71 * NULLIF ( 34, + 57 ) + - 89 ) + 23 * + 82
----
1962

skipif mysql # not compatible
query I rowsort label-2941
SELECT NULLIF ( + - SUM ( + - 76 ), + 71 * NULLIF ( 34, + 57 ) + - 89 ) + 23 * + 82
----
1962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2942
SELECT DISTINCT + - COALESCE ( - SUM( - 35 ), + 41, + 49 * CAST( + COUNT( DISTINCT + CAST( + - 39 AS SIGNED ) ) AS SIGNED ) + SUM( 67 ) ) * - 75
----
2625

skipif mysql # not compatible
query I rowsort label-2942
SELECT DISTINCT + - COALESCE ( - SUM ( - 35 ), + 41, + 49 * CAST ( + COUNT ( DISTINCT + CAST ( + - 39 AS INTEGER ) ) AS INTEGER ) + SUM ( 67 ) ) * - 75
----
2625

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2944
SELECT ALL SUM( DISTINCT + 71 ) + 88 * - - 36 + - - 88 AS col1, - MIN( - ( + 71 ) ) DIV - ( - - 53 ) + + + 59
----
3327
58

skipif mysql # not compatible
query II rowsort label-2944
SELECT ALL SUM ( DISTINCT + 71 ) + 88 * - - 36 + - - 88 AS col1, - MIN ( - ( + 71 ) ) / - ( - - 53 ) + + + 59
----
3327
58

query I rowsort
SELECT DISTINCT 38 col2
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-2946
SELECT ALL - 76 + 46 - + 16 + + 40 * + - 28, - 82 DIV - 94 AS col0
----
-1166
0

skipif mysql # not compatible
query II rowsort label-2946
SELECT ALL - 76 + 46 - + 16 + + 40 * + - 28, - 82 / - 94 AS col0
----
-1166
0

query I rowsort
SELECT 15 + + + 29
----
44

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2949
SELECT DISTINCT - 31 DIV - 80 AS col1, - 93 * + + 30 AS col1
----
0
-2790

skipif mysql # not compatible
query II rowsort label-2949
SELECT DISTINCT - 31 / - 80 AS col1, - 93 * + + 30 AS col1
----
0
-2790

query I rowsort
SELECT DISTINCT + 58 - - 3 * 59
----
235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2951
SELECT ALL - CAST( NULL AS SIGNED ) * + NULLIF ( - 44, + 20 * + - ( - - 48 ) * - 47 + - MAX( + + 41 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - CAST ( NULL AS INTEGER ) * + NULLIF ( - 44, + 20 * + - ( - - 48 ) * - 47 + - MAX ( + + 41 ) ) col1
----
NULL

query II rowsort
SELECT ALL + ( + 13 ) * - 74 AS col1, - 79 * - 71 * + + 49
----
-962
274841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2953
SELECT 34 * 91 * + ( - CASE - 65 WHEN + SUM( + 83 ) THEN + + SUM( + + 10 ) * - CASE - 24 WHEN + 51 * + + 42 - 83 - - 25 * + - 82 + - 9 * - CAST( COUNT( * ) AS SIGNED ) * - + 79 THEN - COUNT( * ) + + - 91 WHEN - 95 * 84 - - + 78 * - + 87 THEN - 78 ELSE NULL END * - - 53 * - 64 + - - 87 + MAX( - 91 ) ELSE 79 * + 23 * NULLIF ( - + 69, + 44 + + + 46 ) END ) AS col0
----
387904062

skipif mysql # not compatible
query I rowsort label-2953
SELECT 34 * 91 * + ( - CASE - 65 WHEN + SUM ( + 83 ) THEN + + SUM ( + + 10 ) * - CASE - 24 WHEN + 51 * + + 42 - 83 - - 25 * + - 82 + - 9 * - CAST ( COUNT ( * ) AS INTEGER ) * - + 79 THEN - COUNT ( * ) + + - 91 WHEN - 95 * 84 - - + 78 * - + 87 THEN - 78 ELSE NULL END * - - 53 * - 64 + - - 87 + MAX ( - 91 ) ELSE 79 * + 23 * NULLIF ( - + 69, + 44 + + + 46 ) END ) AS col0
----
387904062

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT 69 + 58 col1, COALESCE ( - - COUNT( * ), + 63, + - 17, - + 73 * - 94 + + + 74 * COALESCE ( - 48, - - 49 + 32 ) * - 20 * COUNT( * ) * 72 + - + 40 )
----
127
1

skipif mysql # not compatible
query II rowsort label-2954
SELECT 69 + 58 col1, COALESCE ( - - COUNT ( * ), + 63, + - 17, - + 73 * - 94 + + + 74 * COALESCE ( - 48, - - 49 + 32 ) * - 20 * COUNT ( * ) * 72 + - + 40 )
----
127
1

query I rowsort
SELECT - COALESCE ( - 4, + + COALESCE ( - 80, 35 + - 98 * + 40 * + 57 * 27, - 40 * 94 ) ) AS col1
----
4

query I rowsort
SELECT ALL + 11 * - 98 * - 55
----
59290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2957
SELECT + 48 * + CASE WHEN - COALESCE ( + 82, + 74, - CAST( NULL AS SIGNED ) ) >= NULL THEN NULL WHEN ( + - SUM( DISTINCT + 39 ) ) * - MAX( - - 27 ) NOT IN ( + + 92 * + 60, 54 * - - 12, + 21 * CAST( - AVG ( 50 ) AS SIGNED ) * + 6 + - 78, + COUNT( * ) ) THEN + 35 WHEN NULL NOT IN ( 47 + - + 65 ) THEN + 18 / - 97 END + ( - 77 ) / CASE - 39 WHEN + 93 + - + COUNT( DISTINCT - NULLIF ( 41, - 91 ) ) / 42 THEN + 96 + ( - COALESCE ( - 0, 47 - 84 ) ) WHEN - + 36 THEN - 64 - + 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT + 48 * + CASE WHEN - COALESCE ( + 82, + 74, - CAST ( NULL AS INTEGER ) ) >= NULL THEN NULL WHEN ( + - SUM ( DISTINCT + 39 ) ) * - MAX ( - - 27 ) NOT IN ( + + 92 * + 60, 54 * - - 12, + 21 * CAST ( - AVG ( 50 ) AS INTEGER ) * + 6 + - 78, + COUNT ( * ) ) THEN + 35 WHEN NULL NOT IN ( 47 + - + 65 ) THEN + 18 / - 97 END + ( - 77 ) / CASE - 39 WHEN + 93 + - + COUNT ( DISTINCT - NULLIF ( 41, - 91 ) ) / 42 THEN + 96 + ( - COALESCE ( - 0, 47 - 84 ) ) WHEN - + 36 THEN - 64 - + 52 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2958
SELECT 84 DIV 97 + - COALESCE ( + 57, + COALESCE ( + - COALESCE ( COUNT( * ), - + 59, - 62 * + 77 + 21 * SUM( - CAST( NULL AS SIGNED ) ) ), 83, 87 * + 81 ) * - - COUNT( * ) DIV + - 82 DIV + + 30 + + - 21 ) + - COUNT( * ) + 0 + - - CAST( COUNT( * ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-2958
SELECT 84 / 97 + - COALESCE ( + 57, + COALESCE ( + - COALESCE ( COUNT ( * ), - + 59, - 62 * + 77 + 21 * SUM ( - CAST ( NULL AS INTEGER ) ) ), 83, 87 * + 81 ) * - - COUNT ( * ) / + - 82 / + + 30 + + - 21 ) + - COUNT ( * ) + 0 + - - CAST ( COUNT ( * ) AS INTEGER )
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-2959
SELECT ALL - 34 * + 61 AS col0, - 81 DIV + 68
----
-2074
-1

skipif mysql # not compatible
query II rowsort label-2959
SELECT ALL - 34 * + 61 AS col0, - 81 / + 68
----
-2074
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT DISTINCT - - CASE - 0 WHEN - SUM( + 88 ) * - 16 - - 39 THEN + + 40 WHEN + 50 * + - 66 * 46 - - 2 + - 65 * - 16 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT - - CASE - 0 WHEN - SUM ( + 88 ) * - 16 - - 39 THEN + + 40 WHEN + 50 * + - 66 * 46 - - 2 + - 65 * - 16 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL CAST( 87 AS SIGNED ) + - 1 + + 80
----
166

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL CAST ( 87 AS INTEGER ) + - 1 + + 80
----
166

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2963
SELECT 69, + COUNT( * ) * - 45 + - - 65 + + SUM( ALL + 64 ) AS col2
----
69
84

skipif mysql # not compatible
query II rowsort label-2963
SELECT 69, + COUNT ( * ) * - 45 + - - 65 + + SUM ( ALL + 64 ) AS col2
----
69
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT ALL 56 - + - MIN( 68 ) col2
----
124

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL 56 - + - MIN ( 68 ) col2
----
124

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

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

query II rowsort
SELECT DISTINCT 89 AS col2, + ( - 9 ) * - 15 AS col1
----
89
135

query II rowsort
SELECT 99 AS col2, 6 + - + 10
----
99
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT DISTINCT COUNT( DISTINCT + 57 ) - + 19 AS col2, 24
----
-18
24

skipif mysql # not compatible
query II rowsort label-2968
SELECT DISTINCT COUNT ( DISTINCT + 57 ) - + 19 AS col2, 24
----
-18
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2969
SELECT COUNT( * ) + - - 66 + + - 68 DIV - 96 * - ( - 27 ) DIV + COUNT( * ) + + COUNT( * ) - + 33 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-2969
SELECT COUNT ( * ) + - - 66 + + - 68 / - 96 * - ( - 27 ) / + COUNT ( * ) + + COUNT ( * ) - + 33 AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT 53 * - CAST( + AVG ( 54 ) AS SIGNED )
----
-2862

skipif mysql # not compatible
query I rowsort label-2970
SELECT 53 * - CAST ( + AVG ( 54 ) AS INTEGER )
----
-2862

onlyif mysql # DIV for integer division: 
query II rowsort label-2971
SELECT ALL 7 AS col0, + 86 DIV - 16 col0
----
7
-5

skipif mysql # not compatible
query II rowsort label-2971
SELECT ALL 7 AS col0, + 86 / - 16 col0
----
7
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT 24 + + COUNT( * ) * 86 * - 61 col1
----
-5222

skipif mysql # not compatible
query I rowsort label-2972
SELECT 24 + + COUNT ( * ) * 86 * - 61 col1
----
-5222

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

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

query I rowsort
SELECT 43 * 56 AS col1
----
2408

query I rowsort
SELECT 50 - + - 50
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT - - ( + 73 ) + + + MAX( ALL + 22 ) AS col0
----
95

skipif mysql # not compatible
query I rowsort label-2976
SELECT - - ( + 73 ) + + + MAX ( ALL + 22 ) AS col0
----
95

query I rowsort
SELECT ALL - + 8 * - 96 * 49 * + 16 AS col2
----
602112

query I rowsort
SELECT - + 96 + + 37 - - 38 col1
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2979
SELECT ALL - COUNT( - 21 ) DIV + - CAST( + 33 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - COUNT ( - 21 ) / + - CAST ( + 33 AS INTEGER ) AS col1
----
0

query II rowsort
SELECT DISTINCT 22 AS col0, + ( + + ( NULLIF ( + - 60, 8 * 25 ) ) ) AS col0
----
22
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2981
SELECT - NULLIF ( 84, + COUNT( * ) ) + + 95 + - 9 DIV - 1
----
20

skipif mysql # not compatible
query I rowsort label-2981
SELECT - NULLIF ( 84, + COUNT ( * ) ) + + 95 + - 9 / - 1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2982
SELECT ALL + + CAST( 17 AS SIGNED ) * - 21 + - 12
----
-369

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL + + CAST ( 17 AS INTEGER ) * - 21 + - 12
----
-369

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL + 98 * + 21 * + + 16 + - 69 - + 82 + + COUNT( * )
----
32778

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL + 98 * + 21 * + + 16 + - 69 - + 82 + + COUNT ( * )
----
32778

query II rowsort
SELECT - 46 + + ( ( - + 94 ) ) AS col0, - 26 AS col0
----
-140
-26

query I rowsort
SELECT 30 * 77 * - 60 - - 71 * - + 92
----
-145132

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT ( + 92 ) * + SUM( DISTINCT - 73 ) + 13 AS col2
----
-6703

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT ( + 92 ) * + SUM ( DISTINCT - 73 ) + 13 AS col2
----
-6703

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - SUM( 5 ) + - 10 col0
----
-15

skipif mysql # not compatible
query I rowsort label-2987
SELECT - SUM ( 5 ) + - 10 col0
----
-15

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

skipif mysql # not compatible
query II rowsort label-2988
SELECT - COUNT ( * ) AS col2, 6 AS col0
----
-1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL + 38 * - 79 * - 58 - - CASE + 67 WHEN 8 THEN NULL WHEN + 37 THEN NULL ELSE - - ( + + 65 ) END * - 60 * + + COUNT( * ) * - COUNT( * ) AS col0
----
178016

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL + 38 * - 79 * - 58 - - CASE + 67 WHEN 8 THEN NULL WHEN + 37 THEN NULL ELSE - - ( + + 65 ) END * - 60 * + + COUNT ( * ) * - COUNT ( * ) AS col0
----
178016

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT DISTINCT + + COUNT( * ), + CASE - - 24 WHEN - - 74 THEN 82 END / - NULLIF ( - 89, 96 ) AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2991
SELECT DISTINCT + + COUNT ( * ), + CASE - - 24 WHEN - - 74 THEN 82 END / - NULLIF ( - 89, 96 ) AS col0
----
1
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT - - 92 + - MAX( ALL + + ( 68 ) ) + - + COUNT( * ) * + - SUM( ALL + 83 ) + 68 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT - - 92 + - MAX ( ALL + + ( 68 ) ) + - + COUNT ( * ) * + - SUM ( ALL + 83 ) + 68 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 62 * 23 * COALESCE ( - 88, + 26 * + 28 )
----
125488

query I rowsort
SELECT + 31 * 44
----
1364

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - 23 * COALESCE ( - 48, - ( - - SUM( 5 ) ) )
----
1104

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - 23 * COALESCE ( - 48, - ( - - SUM ( 5 ) ) )
----
1104

query II rowsort
SELECT + 3 * COALESCE ( - - 90, + 86 + + 88, + 83 - + 97 ) + + 46, 77 AS col1
----
316
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT + 74 DIV + + 24
----
3

skipif mysql # not compatible
query I rowsort label-2998
SELECT + 74 / + + 24
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2999
SELECT DISTINCT 98 * + NULLIF ( + 12, + - 26 + 11 + 42 + 92 + - - 32 / + + 11 * + + 90 * + 19 * + CAST( - 9 AS DECIMAL ) * - 48 + COUNT( * ) ) AS col1
----
1176

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT 98 * + NULLIF ( + 12, + - 26 + 11 + 42 + 92 + - - 32 / + + 11 * + + 90 * + 19 * + CAST ( - 9 AS REAL ) * - 48 + COUNT ( * ) ) AS col1
----
1176

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL 15 * - NULLIF ( + + 69, COUNT( * ) ) col2
----
-1035

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL 15 * - NULLIF ( + + 69, COUNT ( * ) ) col2
----
-1035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL - 48 * + - NULLIF ( - 54, CAST( - 89 AS SIGNED ) * 36 ) col0
----
-2592

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL - 48 * + - NULLIF ( - 54, CAST ( - 89 AS INTEGER ) * 36 ) col0
----
-2592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT ALL + CAST( + + 18 AS SIGNED ) col0, 16 - + 39 AS col2
----
18
-23

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL + CAST ( + + 18 AS INTEGER ) col0, 16 - + 39 AS col2
----
18
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT DISTINCT - COUNT( * ) * - MAX( 21 )
----
21

skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT - COUNT ( * ) * - MAX ( 21 )
----
21

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT COUNT( 83 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3007
SELECT COUNT ( 83 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT + 43 DIV + 9 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3008
SELECT + 43 / + 9 AS col0
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-3009
SELECT ALL COALESCE ( 20, 20 ) DIV 93 * 61, 88 AS col0
----
0
88

skipif mysql # not compatible
query II rowsort label-3009
SELECT ALL COALESCE ( 20, 20 ) / 93 * 61, 88 AS col0
----
0
88

query I rowsort
SELECT + 55 * 89
----
4895

query I rowsort
SELECT + 20 * - 97 * 64
----
-124160

query I rowsort
SELECT + 37 + + + 39 * 71 - 7
----
2799

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT - NULLIF ( - 8, - + SUM( DISTINCT - 71 ) )
----
8

skipif mysql # not compatible
query I rowsort label-3013
SELECT - NULLIF ( - 8, - + SUM ( DISTINCT - 71 ) )
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT + 7 DIV + 51
----
0

skipif mysql # not compatible
query I rowsort label-3014
SELECT + 7 / + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + COUNT( * ) + - + 12 col0
----
-11

skipif mysql # not compatible
query I rowsort label-3015
SELECT + COUNT ( * ) + - + 12 col0
----
-11

query I rowsort
SELECT - ( - + 3 ) col1
----
3

query I rowsort
SELECT DISTINCT ( 56 ) + ( + 36 ) col2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - - 78 * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - - 78 * 41
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3019
SELECT DISTINCT COALESCE ( 53, - 46 ) * + 15 AS col0, - ( + - COUNT( * ) )
----
795
1

skipif mysql # not compatible
query II rowsort label-3019
SELECT DISTINCT COALESCE ( 53, - 46 ) * + 15 AS col0, - ( + - COUNT ( * ) )
----
795
1

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

skipif mysql # not compatible
query I rowsort label-3020
SELECT - 77 * + 75 * + COUNT ( * ) AS col2
----
-5775

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3022
SELECT - - ( - 12 ) + COUNT( * ) + + + COUNT( * ), 98 AS col2
----
-10
98

skipif mysql # not compatible
query II rowsort label-3022
SELECT - - ( - 12 ) + COUNT ( * ) + + + COUNT ( * ), 98 AS col2
----
-10
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3023
SELECT - CASE - 84 WHEN 16 + - 96 THEN - 96 WHEN + - 0 / 20 * - 66 - - + 69 + + + ( - 14 ) THEN - MIN( - + ( + 76 ) ) END, 55 * + COALESCE ( - - ( - 40 ), COUNT( * ), - + 12 ) / - - CAST( COUNT( * ) AS DECIMAL ) + - + CASE - - 19 WHEN - 53 THEN + 44 * + ( - 42 ) + + 86 + - COUNT( * ) * - - 16 + - - 32 END + + NULLIF ( MAX( + + 71 ), - - CAST( NULL AS SIGNED ) ) - - + ( 98 ) + 55 * - - COUNT( * ) * 16 - - - CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3023
SELECT - CASE - 84 WHEN 16 + - 96 THEN - 96 WHEN + - 0 / 20 * - 66 - - + 69 + + + ( - 14 ) THEN - MIN ( - + ( + 76 ) ) END, 55 * + COALESCE ( - - ( - 40 ), COUNT ( * ), - + 12 ) / - - CAST ( COUNT ( * ) AS REAL ) + - + CASE - - 19 WHEN - 53 THEN + 44 * + ( - 42 ) + + 86 + - COUNT ( * ) * - - 16 + - - 32 END + + NULLIF ( MAX ( + + 71 ), - - CAST ( NULL AS INTEGER ) ) - - + ( 98 ) + 55 * - - COUNT ( * ) * 16 - - - CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3024
SELECT - + 59 + - 76 + - 25 * COUNT( * ) AS col2, + CAST( + ( - + 58 ) AS SIGNED ) * + + 24 - + CAST( NULL AS SIGNED ) / - + 42 + + 71 AS col2
----
-160
NULL

skipif mysql # not compatible
query II rowsort label-3024
SELECT - + 59 + - 76 + - 25 * COUNT ( * ) AS col2, + CAST ( + ( - + 58 ) AS INTEGER ) * + + 24 - + CAST ( NULL AS INTEGER ) / - + 42 + + 71 AS col2
----
-160
NULL

query I rowsort
SELECT + - 90 * + 47
----
-4230

query I rowsort
SELECT - - 84 + 95
----
179

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL - 79 + - + 16 * + ( - MAX( + + 25 ) ) AS col0
----
321

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL - 79 + - + 16 * + ( - MAX ( + + 25 ) ) AS col0
----
321

query I rowsort
SELECT ALL + 9 + 78
----
87

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3029
SELECT DISTINCT - 45 DIV 53 AS col2, CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-3029
SELECT DISTINCT - 45 / 53 AS col2, CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT - 71 DIV + + COUNT( * ) - + CAST( + 16 AS SIGNED ) + + - 41 * + SUM( ALL - 23 ) + 96 AS col0
----
952

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - 71 / + + COUNT ( * ) - + CAST ( + 16 AS INTEGER ) + + - 41 * + SUM ( ALL - 23 ) + 96 AS col0
----
952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT DISTINCT - COUNT( * ) / + 24 + - 99 + - - ( - 15 ) + - 11 * + CAST( NULL AS SIGNED ) * + 29 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT - COUNT ( * ) / + 24 + - 99 + - - ( - 15 ) + - 11 * + CAST ( NULL AS INTEGER ) * + 29 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3032
SELECT DISTINCT + MAX( ALL + ( - + 21 ) ) * + - COUNT( * ) col2, ( - + 62 ) * 91 + 63 * - CAST( - + ( + ( + + CAST( NULL AS SIGNED ) ) ) AS SIGNED ) - + + 42 + 41 + + COUNT( + - 49 ) * 83 * ( 61 ) AS col1
----
21
NULL

skipif mysql # not compatible
query II rowsort label-3032
SELECT DISTINCT + MAX ( ALL + ( - + 21 ) ) * + - COUNT ( * ) col2, ( - + 62 ) * 91 + 63 * - CAST ( - + ( + ( + + CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) - + + 42 + 41 + + COUNT ( + - 49 ) * 83 * ( 61 ) AS col1
----
21
NULL

query I rowsort
SELECT + + 63 - - + ( - 37 ) * 66 AS col0
----
-2379

query I rowsort
SELECT - + 57 * - - 51
----
-2907

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL + 52 * - + COUNT( * ) - + - 57 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL + 52 * - + COUNT ( * ) - + - 57 AS col0
----
5

query I rowsort
SELECT - - 82 * + 24
----
1968

onlyif mysql # aggregate syntax: 
query II rowsort label-3037
SELECT - COUNT( * ) + - 17 * + + 28 * ( - 11 ) AS col2, 88 + + MIN( ALL - 53 )
----
5235
35

skipif mysql # not compatible
query II rowsort label-3037
SELECT - COUNT ( * ) + - 17 * + + 28 * ( - 11 ) AS col2, 88 + + MIN ( ALL - 53 )
----
5235
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + CASE WHEN COUNT( * ) IS NULL THEN + 61 + - + 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + CASE WHEN COUNT ( * ) IS NULL THEN + 61 + - + 8 ELSE NULL END
----
NULL

query I rowsort
SELECT - 74 - + 41 AS col0
----
-115

query I rowsort
SELECT ( - - 43 ) AS col0
----
43

query I rowsort
SELECT - 62 * - 95 * + - 79 col2
----
-465310

query I rowsort
SELECT - 67 * + 84
----
-5628

onlyif mysql # DIV for integer division: 
query II rowsort label-3044
SELECT + 41, ( + + 63 ) * 5 DIV - 44 AS col1
----
41
-7

skipif mysql # not compatible
query II rowsort label-3044
SELECT + 41, ( + + 63 ) * 5 / - 44 AS col1
----
41
-7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3046
SELECT + CASE - 33 WHEN + - 46 + - 58 THEN - - 3 ELSE - ( + 88 ) * + 4 - + - 25 DIV + + 50 END
----
-352

skipif mysql # not compatible
query I rowsort label-3046
SELECT + CASE - 33 WHEN + - 46 + - 58 THEN - - 3 ELSE - ( + 88 ) * + 4 - + - 25 / + + 50 END
----
-352

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3050
SELECT ALL 43 * - - CASE - 98 WHEN 1 / ( + 29 ) THEN + - 41 * 26 * + MAX( - 97 ) - + ( 16 ) + ( + 97 ) * COUNT( * ) WHEN - + COUNT( * ) + 81 + + 79 THEN NULL WHEN MAX( ALL - 24 ) * + COALESCE ( - + 66, - - 83 * 64 * - 93 ) - + - 5 THEN + + 25 + + 89 + + CASE 63 WHEN - COALESCE ( - CAST( - + COUNT( + ( - 21 ) ) AS SIGNED ), - 46 * + 13 + + 76 + - - MIN( - COALESCE ( 97, 58 * - 79 ) ) * + 74 ) THEN NULL ELSE 86 END * - 90 * + 5 * - 38 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL 43 * - - CASE - 98 WHEN 1 / ( + 29 ) THEN + - 41 * 26 * + MAX ( - 97 ) - + ( 16 ) + ( + 97 ) * COUNT ( * ) WHEN - + COUNT ( * ) + 81 + + 79 THEN NULL WHEN MAX ( ALL - 24 ) * + COALESCE ( - + 66, - - 83 * 64 * - 93 ) - + - 5 THEN + + 25 + + 89 + + CASE 63 WHEN - COALESCE ( - CAST ( - + COUNT ( + ( - 21 ) ) AS INTEGER ), - 46 * + 13 + + 76 + - - MIN ( - COALESCE ( 97, 58 * - 79 ) ) * + 74 ) THEN NULL ELSE 86 END * - 90 * + 5 * - 38 END AS col2
----
NULL

query I rowsort
SELECT - 49 - - - 1 AS col2
----
-50

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

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + COUNT ( * ) / + 62 * - 26 AS col2
----
0

query I rowsort
SELECT ALL 96 + + 61 + + + 22 + ( + + 33 ) AS col0
----
212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3054
SELECT AVG ( CASE - 87 WHEN - 76 * - CAST( NULL AS SIGNED ) THEN + - 66 + + 73 END ) * + 38 + + 61 / - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT AVG ( CASE - 87 WHEN - 76 * - CAST ( NULL AS INTEGER ) THEN + - 66 + + 73 END ) * + 38 + + 61 / - 7 AS col0
----
NULL

query I rowsort
SELECT ALL + 82 + 10 * + ( - + 21 ) AS col2
----
-128

query II rowsort
SELECT ALL 14 AS col0, 96
----
14
96

query II rowsort
SELECT 67, + 68 AS col0
----
67
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT CASE COALESCE ( 73, AVG ( ALL + 40 ) ) WHEN 89 THEN - ( - 12 ) + + 41 END / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3058
SELECT CASE COALESCE ( 73, AVG ( ALL + 40 ) ) WHEN 89 THEN - ( - 12 ) + + 41 END / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL 60 + 97 * - 60
----
-5760

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

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

query I rowsort
SELECT 59 + - 93
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT CASE 86 WHEN - ( COUNT( 35 ) ) THEN 9 WHEN - 97 THEN NULL ELSE NULL END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT CASE 86 WHEN - ( COUNT ( 35 ) ) THEN 9 WHEN - 97 THEN NULL ELSE NULL END + COUNT ( * )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL COUNT ( * ) + ( - 74 ) AS col1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT ALL + 47 DIV 7 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-3064
SELECT ALL + 47 / 7 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT COUNT( * ) * 16 col1
----
16

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT COUNT ( * ) * 16 col1
----
16

query I rowsort
SELECT DISTINCT 59 + - 82
----
-23

query I rowsort
SELECT DISTINCT 35 + 17 * + ( + 23 )
----
426

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT DISTINCT 52 * - COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT 52 * - COUNT ( * ) AS col1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT COUNT( * ) + + COUNT( * ) * 78 AS col2
----
79

skipif mysql # not compatible
query I rowsort label-3069
SELECT COUNT ( * ) + + COUNT ( * ) * 78 AS col2
----
79

query I rowsort
SELECT 74 + + 67
----
141

query I rowsort
SELECT ALL 87 * 41 AS col0
----
3567

query I rowsort
SELECT 84 + - 92
----
-8

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3073
SELECT CASE - 70 WHEN NULLIF ( - 64, CAST( NULL AS SIGNED ) + ( 52 ) ) + 68 * - 10 THEN NULL WHEN 64 THEN + CAST( NULL AS DECIMAL ) + - 28 WHEN + COALESCE ( + ( + 73 ), 63 / 55 ) THEN + 60 + + 33 WHEN 18 THEN NULL END + AVG ( 91 - + 97 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT CASE - 70 WHEN NULLIF ( - 64, CAST ( NULL AS INTEGER ) + ( 52 ) ) + 68 * - 10 THEN NULL WHEN 64 THEN + CAST ( NULL AS REAL ) + - 28 WHEN + COALESCE ( + ( + 73 ), 63 / 55 ) THEN + 60 + + 33 WHEN 18 THEN NULL END + AVG ( 91 - + 97 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3074
SELECT - 0 DIV + 53 + 8
----
8

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 0 / + 53 + 8
----
8

query I rowsort
SELECT 38 + 27
----
65

query I rowsort
SELECT ALL - 57 - + 80 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3077
SELECT DISTINCT - SUM( - 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3077
SELECT DISTINCT - SUM ( - 11 ) AS col2
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3078
SELECT - ( - COALESCE ( - CASE CAST( NULL AS DECIMAL ) WHEN + 47 * 66 THEN 12 * + 52 + 74 END, + 85 + - 76 ) ) * + 6 + + ( - 13 + - 55 )
----
-14

skipif mysql # not compatible
query I rowsort label-3078
SELECT - ( - COALESCE ( - CASE CAST ( NULL AS REAL ) WHEN + 47 * 66 THEN 12 * + 52 + 74 END, + 85 + - 76 ) ) * + 6 + + ( - 13 + - 55 )
----
-14

query I rowsort
SELECT ALL + 85 * - 40
----
-3400

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT 94 DIV 93 + - 48 * 97 AS col1
----
-4655

skipif mysql # not compatible
query I rowsort label-3081
SELECT 94 / 93 + - 48 * 97 AS col1
----
-4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3082
SELECT DISTINCT NULLIF ( 25, + 46 * 47 ) DIV - COALESCE ( ( 34 ), + CAST( NULL AS SIGNED ) + COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT NULLIF ( 25, + 46 * 47 ) / - COALESCE ( ( 34 ), + CAST ( NULL AS INTEGER ) + COUNT ( * ) ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT 44 / - CASE + 74 * 63 WHEN + 10 + 87 THEN NULL WHEN - 64 + + 96 * 90 THEN 92 * COALESCE ( 22, - COUNT( 48 ) ) WHEN 12 / 32 THEN CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT 44 / - CASE + 74 * 63 WHEN + 10 + 87 THEN NULL WHEN - 64 + + 96 * 90 THEN 92 * COALESCE ( 22, - COUNT ( 48 ) ) WHEN 12 / 32 THEN CAST ( NULL AS INTEGER ) END AS col1
----
NULL

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

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

query I rowsort
SELECT 86 * 69 + 7 * - 95
----
5269

query I rowsort
SELECT DISTINCT - ( - 36 ) * + 37 AS col0
----
1332

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT 34 DIV 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3087
SELECT 34 / 78 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL COUNT( * ) * 61 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL COUNT ( * ) * 61 AS col1
----
61

query I rowsort
SELECT ALL + 86 + 64 AS col2
----
150

query I rowsort
SELECT 50 + + 33 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT + 14 * + ( 98 DIV - 67 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT + 14 * + ( 98 / - 67 ) AS col0
----
-14

query I rowsort
SELECT 59 + - 58 AS col0
----
1

query I rowsort
SELECT DISTINCT - 14 + 84 * - 92
----
-7742

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT + 79 * - 81 + CASE COUNT( * ) + - 96 / 18 WHEN COUNT( 30 ) * + 74 + COUNT( * ) THEN 43 - + 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3095
SELECT + 79 * - 81 + CASE COUNT ( * ) + - 96 / 18 WHEN COUNT ( 30 ) * + 74 + COUNT ( * ) THEN 43 - + 53 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 23 + 85
----
62

query I rowsort
SELECT DISTINCT + 69 + 22
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT 20 * - ( COUNT( * ) * - 43 + - ( 54 ) ) AS col1
----
1940

skipif mysql # not compatible
query I rowsort label-3098
SELECT 20 * - ( COUNT ( * ) * - 43 + - ( 54 ) ) AS col1
----
1940

query I rowsort
SELECT - ( 20 ) + + ( 91 )
----
71

query I rowsort
SELECT ALL + 12 + + 23 * 90
----
2082

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT 10 + - 94 * + SUM( 88 * - 37 )
----
306074

skipif mysql # not compatible
query I rowsort label-3101
SELECT 10 + - 94 * + SUM ( 88 * - 37 )
----
306074

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

skipif mysql # not compatible
query I rowsort label-3102
SELECT - COUNT ( - 24 )
----
-1

query I rowsort
SELECT ALL - 62 + 40 * + 64 AS col0
----
2498

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3104
SELECT + 35 * + CASE CASE + 30 WHEN + 21 THEN 69 / - 6 - - 47 WHEN + 16 + 74 * - ( 63 ) THEN NULL END WHEN + MIN( 7 ) THEN 38 + - MAX( 51 ) WHEN - CAST( NULL AS SIGNED ) * NULLIF ( + COUNT( * ), 26 / - 16 ) THEN 91 * + ( 72 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT + 35 * + CASE CASE + 30 WHEN + 21 THEN 69 / - 6 - - 47 WHEN + 16 + 74 * - ( 63 ) THEN NULL END WHEN + MIN ( 7 ) THEN 38 + - MAX ( 51 ) WHEN - CAST ( NULL AS INTEGER ) * NULLIF ( + COUNT ( * ), 26 / - 16 ) THEN 91 * + ( 72 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 51 * - 90 AS col0
----
-4590

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT - 1 DIV + 13 col1
----
0

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 1 / + 13 col1
----
0

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

skipif mysql # not compatible
query I rowsort label-3107
SELECT - COUNT ( ALL - 85 ) * + 95 AS col1
----
-95

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT DISTINCT + 68 - ( - 67 + 90 ) * - CASE + 61 WHEN 39 * ( 27 * 14 ) THEN COALESCE ( + 71, - NULLIF ( MIN( 64 ), 13 * NULLIF ( + COUNT( * ) * + 91, 98 + 36 ) ) / 7 + + 10 * - COALESCE ( 65, - 97 ), 40 ) WHEN + 17 THEN NULL WHEN - 39 * - 20 + 79 * 25 THEN NULL ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT + 68 - ( - 67 + 90 ) * - CASE + 61 WHEN 39 * ( 27 * 14 ) THEN COALESCE ( + 71, - NULLIF ( MIN ( 64 ), 13 * NULLIF ( + COUNT ( * ) * + 91, 98 + 36 ) ) / 7 + + 10 * - COALESCE ( 65, - 97 ), 40 ) WHEN + 17 THEN NULL WHEN - 39 * - 20 + 79 * 25 THEN NULL ELSE NULL END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT - SUM( DISTINCT 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT - SUM ( DISTINCT 42 ) AS col2
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3112
SELECT ALL 67 DIV 17 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL 67 / 17 AS col0
----
3

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

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

query I rowsort
SELECT + 51 * - 27
----
-1377

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3115
SELECT ALL - + 38 DIV - ( 85 * + CAST( 45 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3115
SELECT ALL - + 38 / - ( 85 * + CAST ( 45 AS INTEGER ) )
----
0

query I rowsort
SELECT 69 + - 26 * 94 AS col2
----
-2375

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3117
SELECT CASE 17 WHEN 42 THEN + 3 WHEN MAX( DISTINCT CAST( NULL AS DECIMAL ) ) * 25 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT CASE 17 WHEN 42 THEN + 3 WHEN MAX ( DISTINCT CAST ( NULL AS REAL ) ) * 25 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT COALESCE ( - 29, NULLIF ( 75, + COUNT( + 44 ) / 98 ) * 94 ) * 30 AS col2
----
-870

skipif mysql # not compatible
query I rowsort label-3118
SELECT COALESCE ( - 29, NULLIF ( 75, + COUNT ( + 44 ) / 98 ) * 94 ) * 30 AS col2
----
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT 9 - MIN( - 71 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-3119
SELECT 9 - MIN ( - 71 ) AS col0
----
80

query I rowsort
SELECT ALL ( + 50 ) * + 5 AS col1
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT NULLIF ( CASE COUNT( * ) WHEN 15 * 21 THEN NULL WHEN - 25 THEN 46 / 73 END, 10 + 9 ) + + 43 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3121
SELECT NULLIF ( CASE COUNT ( * ) WHEN 15 * 21 THEN NULL WHEN - 25 THEN 46 / 73 END, 10 + 9 ) + + 43 AS col1
----
NULL

query I rowsort
SELECT + CASE + CASE 95 WHEN 19 + 20 THEN - 58 ELSE - 45 + 4 END WHEN + 38 THEN NULL ELSE 68 END
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT COALESCE ( COUNT( * ), 87 * + 50 ) * 68 AS col2
----
68

skipif mysql # not compatible
query I rowsort label-3123
SELECT COALESCE ( COUNT ( * ), 87 * + 50 ) * 68 AS col2
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3124
SELECT DISTINCT + COALESCE ( + MAX( 69 ), 35 ) * + 26 + + 10 * ( + 19 DIV - 42 ) col0
----
1794

skipif mysql # not compatible
query I rowsort label-3124
SELECT DISTINCT + COALESCE ( + MAX ( 69 ), 35 ) * + 26 + + 10 * ( + 19 / - 42 ) col0
----
1794

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

skipif mysql # not compatible
query I rowsort label-3125
SELECT MAX ( + 8 )
----
8

query I rowsort
SELECT 69 + - - 8
----
77

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

skipif mysql # not compatible
query I rowsort label-3127
SELECT + MIN ( - - ( 9 ) )
----
9

query I rowsort
SELECT ALL 81 * 58 + 47 AS col0
----
4745

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT DISTINCT - 29 * + - SUM( ALL 46 ) + - COUNT( * )
----
1333

skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - 29 * + - SUM ( ALL 46 ) + - COUNT ( * )
----
1333

query I rowsort
SELECT + COALESCE ( + 1, - 7 ) AS col2
----
1

query I rowsort
SELECT ALL - 28 * - 29 AS col2
----
812

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( * ) * 32 - - MIN( + 22 )
----
54

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( * ) * 32 - - MIN ( + 22 )
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT + MIN( 96 ) col2
----
96

skipif mysql # not compatible
query I rowsort label-3133
SELECT + MIN ( 96 ) col2
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3134
SELECT + CASE 69 WHEN - 44 THEN NULL WHEN 99 THEN NULL WHEN 90 - + 78 * 52 THEN NULL ELSE + 84 + + CAST( NULL AS SIGNED ) * + 3 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT + CASE 69 WHEN - 44 THEN NULL WHEN 99 THEN NULL WHEN 90 - + 78 * 52 THEN NULL ELSE + 84 + + CAST ( NULL AS INTEGER ) * + 3 END AS col0
----
NULL

query I rowsort
SELECT - 31 * - - 29 AS col2
----
-899

onlyif mysql # DIV for integer division: 
query I rowsort label-3136
SELECT - 48 DIV + ( 9 )
----
-5

skipif mysql # not compatible
query I rowsort label-3136
SELECT - 48 / + ( 9 )
----
-5

query I rowsort
SELECT ALL + 65 * + 44
----
2860

query I rowsort
SELECT DISTINCT 71 - - 28 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT - - 2 * - - ( + 77 ) * + COUNT( + 48 - 11 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-3139
SELECT - - 2 * - - ( + 77 ) * + COUNT ( + 48 - 11 ) AS col2
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-3140
SELECT - + 86 DIV + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT - + 86 / + 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL + ( + - MAX( - 37 ) )
----
37

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL + ( + - MAX ( - 37 ) )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - CASE + + 62 WHEN - 51 THEN + MAX( - 57 ) + - 0 WHEN 8 THEN 12 + 66 END - - 43 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT - CASE + + 62 WHEN - 51 THEN + MAX ( - 57 ) + - 0 WHEN 8 THEN 12 + 66 END - - 43 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3143
SELECT - CAST( NULL AS DECIMAL ) + + + COUNT( * ) * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT - CAST ( NULL AS REAL ) + + + COUNT ( * ) * - 98
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - NULLIF ( + - 26, 69 * - COUNT( * ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3144
SELECT - NULLIF ( + - 26, 69 * - COUNT ( * ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT ALL - SUM( ALL 16 ) - 68 AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL - SUM ( ALL 16 ) - 68 AS col0
----
-84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3146
SELECT DISTINCT - NULLIF ( - 34, 20 * 90 ) * + COALESCE ( + 69 + 85 * + 77, + 67 DIV CAST( 13 AS SIGNED ) )
----
224876

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT - NULLIF ( - 34, 20 * 90 ) * + COALESCE ( + 69 + 85 * + 77, + 67 / CAST ( 13 AS INTEGER ) )
----
224876

query I rowsort
SELECT - 26 + + + 82 AS col0
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT DISTINCT - MIN( + - 62 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - MIN ( + - 62 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT DISTINCT MIN( 50 ) * - 8
----
-400

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT MIN ( 50 ) * - 8
----
-400

onlyif mysql # DIV for integer division: 
query I rowsort label-3150
SELECT - 71 DIV + 60 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT - 71 / + 60 AS col2
----
-1

query II rowsort
SELECT - 69, - 72 * - 94 * ( 91 ) AS col0
----
-69
615888

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT ALL - 67 + + + COALESCE ( + MAX( 88 ), 17 )
----
21

skipif mysql # not compatible
query I rowsort label-3152
SELECT ALL - 67 + + + COALESCE ( + MAX ( 88 ), 17 )
----
21

query I rowsort
SELECT - 39 * - 55
----
2145

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

skipif mysql # not compatible
query I rowsort label-3154
SELECT - 56 / + 58
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3155
SELECT + 53 DIV - 9 + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3155
SELECT + 53 / - 9 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-3156
SELECT ALL + 99, 55 DIV - 30 - 53 AS col2
----
99
-54

skipif mysql # not compatible
query II rowsort label-3156
SELECT ALL + 99, 55 / - 30 - 53 AS col2
----
99
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3157
SELECT DISTINCT COUNT( * ) DIV + 14 * - - CAST( 47 AS SIGNED ) + - COUNT( * ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT COUNT ( * ) / + 14 * - - CAST ( 47 AS INTEGER ) + - COUNT ( * ) col0
----
-1

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

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT + 34 / - 53 + + COUNT ( * ) - - COUNT ( * ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT ALL 9 DIV - 74 * - 5 * + 94 + + 64 AS col0
----
64

skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL 9 / - 74 * - 5 * + 94 + + 64 AS col0
----
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3160
SELECT + 90 * - + 58 + + COUNT( * ) - 46 DIV - ( 4 )
----
-5208

skipif mysql # not compatible
query I rowsort label-3160
SELECT + 90 * - + 58 + + COUNT ( * ) - 46 / - ( 4 )
----
-5208

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3162
SELECT DISTINCT - COALESCE ( - + 75, + 19 ) DIV - SUM( 8 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT - COALESCE ( - + 75, + 19 ) / - SUM ( 8 ) AS col0
----
-9

query II rowsort
SELECT DISTINCT + 1, - NULLIF ( + 63, 10 ) + 36 * 89 AS col0
----
1
3141

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL COUNT( * ) * MAX( ALL + - 97 ) + + 73
----
-24

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL COUNT ( * ) * MAX ( ALL + - 97 ) + + 73
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT DISTINCT SUM( DISTINCT - + 46 ) * - - 40 + + 73 AS col1
----
-1767

skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT SUM ( DISTINCT - + 46 ) * - - 40 + + 73 AS col1
----
-1767

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT ALL + 23, + 30 - - COUNT( + 33 ) AS col2
----
23
31

skipif mysql # not compatible
query II rowsort label-3166
SELECT ALL + 23, + 30 - - COUNT ( + 33 ) AS col2
----
23
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT CASE WHEN NULL BETWEEN ( MIN( + 80 ) ) AND NULL THEN + 66 - + 56 ELSE + 98 END AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3167
SELECT CASE WHEN NULL BETWEEN ( MIN ( + 80 ) ) AND NULL THEN + 66 - + 56 ELSE + 98 END AS col1
----
98

query I rowsort
SELECT 69 * - + 27 + + - 28 * - 26 AS col1
----
-1135

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT DISTINCT 58 * + + 76 * 99 * 91 - 55 DIV 59
----
39711672

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT 58 * + + 76 * 99 * 91 - 55 / 59
----
39711672

query I rowsort
SELECT DISTINCT 42 * - + 5 * CASE 37 WHEN 88 * 92 THEN + 40 + 95 * 14 WHEN 36 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 3 + - + ( - 69 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL 1 * - 34 - 26 - - COUNT( 88 ) - 5
----
-64

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL 1 * - 34 - 26 - - COUNT ( 88 ) - 5
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3173
SELECT + 54 AS col0, - 81 - CAST( + 62 AS SIGNED )
----
54
-143

skipif mysql # not compatible
query II rowsort label-3173
SELECT + 54 AS col0, - 81 - CAST ( + 62 AS INTEGER )
----
54
-143

query I rowsort
SELECT - + NULLIF ( 24, + ( - 99 ) + + 91 )
----
-24

query I rowsort
SELECT - 44 * - - 90 * - 10 AS col1
----
39600

query I rowsort
SELECT - - 74 + - + 35 + - 61 col2
----
-22

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

query I rowsort
SELECT - + ( + + ( - - 11 ) ) + 66
----
55

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

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

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

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

query I rowsort
SELECT ALL 2 * 86 AS col1
----
172

query II rowsort
SELECT ALL + 34, - 86 AS col1
----
34
-86

query I rowsort
SELECT DISTINCT - 16 + - 22
----
-38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3184
SELECT DISTINCT + + 21 + - 36 + + - CAST( - CAST( 22 AS DECIMAL ) AS SIGNED )
----
7

skipif mysql # not compatible
query I rowsort label-3184
SELECT DISTINCT + + 21 + - 36 + + - CAST ( - CAST ( 22 AS REAL ) AS INTEGER )
----
7

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

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

query I rowsort
SELECT ALL - 72 + NULLIF ( - ( 9 ), 88 * + 35 ) AS col2
----
-81

query I rowsort
SELECT - 15 * 37
----
-555

query I rowsort
SELECT DISTINCT - 54 + + + 72
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3189
SELECT ALL + 0 + + 63 + + 30 + + 67 DIV - COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL + 0 + + 63 + + 30 + + 67 / - COUNT ( * )
----
26

query I rowsort
SELECT ALL - 36 + 19 + 72
----
55

query I rowsort
SELECT 53 * - 64 * 14
----
-47488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3192
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) * 89 + - COUNT( * ) * 36 AS col2
----
-125

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) * 89 + - COUNT ( * ) * 36 AS col2
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL - ( + NULLIF ( 92, - - ( - CAST( ( ( ( + 20 ) ) ) AS SIGNED ) ) + - ( MIN( ALL + 85 ) ) ) )
----
-92

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - ( + NULLIF ( 92, - - ( - CAST ( ( ( ( + 20 ) ) ) AS INTEGER ) ) + - ( MIN ( ALL + 85 ) ) ) )
----
-92

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3195
SELECT + 60 * + CAST( - COUNT( * ) AS SIGNED ) + ( + 86 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3195
SELECT + 60 * + CAST ( - COUNT ( * ) AS INTEGER ) + ( + 86 ) AS col2
----
26

query I rowsort
SELECT 68 * - 56
----
-3808

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT ALL 31 DIV - + 15
----
-2

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL 31 / - + 15
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3198
SELECT ALL + 64 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL + 64 / + 81 AS col0
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3200
SELECT + - CASE 42 WHEN 67 / + 26 * + 16 THEN 39 WHEN 20 / + 9 THEN - 9 * CASE NULLIF ( - CAST( - ( 39 ) AS SIGNED ), - 67 ) / 57 WHEN + 97 THEN NULL ELSE 70 + + 42 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3200
SELECT + - CASE 42 WHEN 67 / + 26 * + 16 THEN 39 WHEN 20 / + 9 THEN - 9 * CASE NULLIF ( - CAST ( - ( 39 ) AS INTEGER ), - 67 ) / 57 WHEN + 97 THEN NULL ELSE 70 + + 42 END END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - - COALESCE ( 26, + 57 )
----
26

query I rowsort
SELECT ALL + 39 * - 22
----
-858

query I rowsort
SELECT + 81 * 26 AS col1
----
2106

query I rowsort
SELECT 13 * - 46
----
-598

query I rowsort
SELECT ALL 78 * - 48
----
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3206
SELECT 67 * CAST( NULL AS SIGNED ) * + 57 - - 48
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT 67 * CAST ( NULL AS INTEGER ) * + 57 - - 48
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT + 56 DIV + + 15
----
3

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + 56 / + + 15
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL COUNT( + COALESCE ( + - 36, 39 + 91 ) ) + + 89 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL COUNT ( + COALESCE ( + - 36, 39 + 91 ) ) + + 89 * + COUNT ( * )
----
90

query I rowsort
SELECT ALL - 87 + - - 10 col0
----
-77

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

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT 23 / + 50 * - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT + 97 + + ( + 23 ) col0
----
120

query I rowsort
SELECT 13 - - ( - 10 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT ALL + MIN( - + 60 ) * + + 94 AS col0
----
-5640

skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + MIN ( - + 60 ) * + + 94 AS col0
----
-5640

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT - CASE SUM( DISTINCT - + CASE 76 WHEN 81 THEN NULL WHEN - 22 + 57 THEN - 4 / 99 END ) WHEN - 73 + + 37 THEN 58 + + 95 WHEN COALESCE ( - 80, 9 ) THEN NULL END * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-3214
SELECT - CASE SUM ( DISTINCT - + CASE 76 WHEN 81 THEN NULL WHEN - 22 + 57 THEN - 4 / 99 END ) WHEN - 73 + + 37 THEN 58 + + 95 WHEN COALESCE ( - 80, 9 ) THEN NULL END * 77
----
NULL

query I rowsort
SELECT 37 + - - 60 + - 56 * - - 78 AS col2
----
-4271

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL - 68 + COUNT( * ) + + 8 - + 13 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL - 68 + COUNT ( * ) + + 8 - + 13 AS col0
----
-72

query I rowsort
SELECT 44 + 68 + - 32 + 83
----
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT CAST( 86 AS SIGNED ) + + + 26
----
112

skipif mysql # not compatible
query I rowsort label-3218
SELECT CAST ( 86 AS INTEGER ) + + + 26
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT ALL + 95 DIV - - 22
----
4

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + 95 / - - 22
----
4

query I rowsort
SELECT 72 + - - 26
----
98

query I rowsort
SELECT ALL 44 - - 26 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT MAX( - 27 ) * + 99 AS col2
----
-2673

skipif mysql # not compatible
query I rowsort label-3222
SELECT MAX ( - 27 ) * + 99 AS col2
----
-2673

query I rowsort
SELECT 88 + 40
----
128

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT + 6 / 66 * + MAX( DISTINCT - 82 ) + - - CAST( NULL AS SIGNED ) * - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3226
SELECT + 6 / 66 * + MAX ( DISTINCT - 82 ) + - - CAST ( NULL AS INTEGER ) * - 38 AS col2
----
NULL

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

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

query I rowsort
SELECT 78 * + ( - - NULLIF ( - 50, + 0 / + 92 - ( - 20 ) ) ) * + 72 AS col1
----
-280800

query I rowsort
SELECT 84 + - - 88
----
172

query I rowsort
SELECT DISTINCT + 88 * 20 col1
----
1760

query II rowsort
SELECT + 12 col2, 43 * 68 * + - ( 74 )
----
12
-216376

query I rowsort
SELECT ALL + 6 * - + 92 AS col1
----
-552

query I rowsort
SELECT ( - ( - + 51 ) ) * + 90 AS col0
----
4590

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT 38 * - - 77 + - 40 * + 86 * - - 61 + - CAST( 46 AS SIGNED ) col2
----
-206960

skipif mysql # not compatible
query I rowsort label-3235
SELECT 38 * - - 77 + - 40 * + 86 * - - 61 + - CAST ( 46 AS INTEGER ) col2
----
-206960

query I rowsort
SELECT - 21 - - + 70 - + 19
----
30

query I rowsort
SELECT 89 * + ( - 62 )
----
-5518

query I rowsort
SELECT - 35 * + - 71
----
2485

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3241
SELECT ALL - 77 + - CASE + - 64 WHEN + - 72 THEN CAST( NULL AS SIGNED ) + - 54 ELSE 83 END + 94 * + 45
----
4070

skipif mysql # not compatible
query I rowsort label-3241
SELECT ALL - 77 + - CASE + - 64 WHEN + - 72 THEN CAST ( NULL AS INTEGER ) + - 54 ELSE 83 END + 94 * + 45
----
4070

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - - COUNT( * ) + 84 AS col2
----
85

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - - COUNT ( * ) + 84 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT ALL - 27 + 20 DIV - 28 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - 27 + 20 / - 28 AS col0
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3244
SELECT ALL - - 66 + - 70 DIV + + COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3244
SELECT ALL - - 66 + - 70 / + + COUNT ( * ) AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT ALL + - NULLIF ( + 14, 89 ) * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-3245
SELECT ALL + - NULLIF ( + 14, 89 ) * COUNT ( * )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3246
SELECT 73 AS col1, - 1 * - + CASE ( 85 ) WHEN 48 + CAST( NULL AS SIGNED ) THEN 4 / + 68 + 66 END * - 12 AS col1
----
73
NULL

skipif mysql # not compatible
query II rowsort label-3246
SELECT 73 AS col1, - 1 * - + CASE ( 85 ) WHEN 48 + CAST ( NULL AS INTEGER ) THEN 4 / + 68 + 66 END * - 12 AS col1
----
73
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3247
SELECT - 87 * CAST( + + NULLIF ( + + ( - ( - 90 ) ), 10 + 31 ) AS SIGNED ) + - 67 col2
----
-7897

skipif mysql # not compatible
query I rowsort label-3247
SELECT - 87 * CAST ( + + NULLIF ( + + ( - ( - 90 ) ), 10 + 31 ) AS INTEGER ) + - 67 col2
----
-7897

query I rowsort
SELECT DISTINCT + 83 + 57 AS col1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT ALL + + 91 + + 24 - + - 14 - - 49 * + 52 * COUNT( * ) + 74 col0
----
2751

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL + + 91 + + 24 - + - 14 - - 49 * + 52 * COUNT ( * ) + 74 col0
----
2751

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT 38 * + 90 / + + CASE 43 WHEN + COUNT( * ) THEN 35 + + 12 WHEN - 55 THEN + 29 + + 75 WHEN + 25 THEN 15 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3250
SELECT 38 * + 90 / + + CASE 43 WHEN + COUNT ( * ) THEN 35 + + 12 WHEN - 55 THEN + 29 + + 75 WHEN + 25 THEN 15 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT - 34 + COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT - 34 + COUNT ( * ) AS col1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3252
SELECT ALL COUNT( * ) + 16 * 56 + - + 47 + - - 92 DIV + 90
----
851

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL COUNT ( * ) + 16 * 56 + - + 47 + - - 92 / + 90
----
851

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + - 95 * - 79 * COUNT( * ) col0
----
7505

skipif mysql # not compatible
query I rowsort label-3253
SELECT + - 95 * - 79 * COUNT ( * ) col0
----
7505

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL COALESCE ( - - 65, + - 52, NULLIF ( - + ( - - 68 ), ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) ) )
----
65

skipif mysql # not compatible
query I rowsort label-3254
SELECT ALL COALESCE ( - - 65, + - 52, NULLIF ( - + ( - - 68 ), ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) ) )
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT - SUM( DISTINCT - 99 ) col1
----
99

skipif mysql # not compatible
query I rowsort label-3256
SELECT - SUM ( DISTINCT - 99 ) col1
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) - 50 + + 98 * - 51 * 18 AS col0
----
-90013

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) - 50 + + 98 * - 51 * 18 AS col0
----
-90013

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT - 74 * - MIN( ALL - CASE + ( + 0 ) WHEN 44 THEN + 74 END ) * - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-3258
SELECT - 74 * - MIN ( ALL - CASE + ( + 0 ) WHEN 44 THEN + 74 END ) * - 31
----
NULL

query I rowsort
SELECT + 50 - + - 3 + - 71 - + 72 + + + 7
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3260
SELECT + CAST( NULL AS SIGNED ) / 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3260
SELECT + CAST ( NULL AS INTEGER ) / 91 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3262
SELECT + CAST( 80 AS SIGNED ) DIV + ( - 55 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3262
SELECT + CAST ( 80 AS INTEGER ) / + ( - 55 ) AS col0
----
-1

query II rowsort
SELECT DISTINCT 19 * - + 42 col2, 90 AS col2
----
-798
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL MIN( ALL 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL MIN ( ALL 25 )
----
25

query I rowsort
SELECT ( 67 ) AS col0
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3266
SELECT + 60 DIV - COALESCE ( - - 22, + ( + COALESCE ( - - COUNT( * ), CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE CASE 85 WHEN 60 THEN NULL ELSE + 84 * - 20 - + 52 END END + 6 ) ) + COALESCE ( + 30, + 92, COUNT( * ) * + 76 + - 92 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-3266
SELECT + 60 / - COALESCE ( - - 22, + ( + COALESCE ( - - COUNT ( * ), CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL ELSE CASE 85 WHEN 60 THEN NULL ELSE + 84 * - 20 - + 52 END END + 6 ) ) + COALESCE ( + 30, + 92, COUNT ( * ) * + 76 + - 92 ) )
----
-2

query I rowsort
SELECT + COALESCE ( 89, - + 53 * - + 95, + 54 ) + + 87 * - 94 AS col0
----
-8089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3268
SELECT - 42 * - CAST( - - 11 AS SIGNED ) AS col1
----
462

skipif mysql # not compatible
query I rowsort label-3268
SELECT - 42 * - CAST ( - - 11 AS INTEGER ) AS col1
----
462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3269
SELECT - 48 * NULLIF ( 57, COALESCE ( - CAST( 54 AS DECIMAL ), - NULLIF ( MIN( - 24 ), + ( + MIN( + 11 ) ) ) * ( 38 * 94 ) + 47 * 21 ) ) + + 72 AS col2
----
-2664

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 48 * NULLIF ( 57, COALESCE ( - CAST ( 54 AS REAL ), - NULLIF ( MIN ( - 24 ), + ( + MIN ( + 11 ) ) ) * ( 38 * 94 ) + 47 * 21 ) ) + + 72 AS col2
----
-2664

query II rowsort
SELECT - 22 AS col0, 69 AS col0
----
-22
69

query I rowsort
SELECT ALL 27 * 76 + - 37 + + 37 + + 70 * + 94 * 41 + + 73 AS col2
----
271905

query I rowsort
SELECT ALL + 20 * + + NULLIF ( + 48, - 16 + 75 + - - 11 ) + - 54
----
906

query I rowsort
SELECT ALL + + 43 * + 12
----
516

query I rowsort
SELECT - 99 * - - 62 AS col1
----
-6138

query I rowsort
SELECT + 38 - - 68
----
106

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

skipif mysql # not compatible
query II rowsort label-3276
SELECT + 46, COUNT ( * ) AS col0
----
46
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT - - 85 * 53 * 6 - - 5 + - 85 * COUNT( * ) * - SUM( DISTINCT 95 ) * 81
----
681110

skipif mysql # not compatible
query I rowsort label-3278
SELECT - - 85 * 53 * 6 - - 5 + - 85 * COUNT ( * ) * - SUM ( DISTINCT 95 ) * 81
----
681110

query II rowsort
SELECT 50 AS col0, 36
----
50
36

onlyif mysql # aggregate syntax: 
query III rowsort label-3280
SELECT + 91 AS col1, - COUNT( * ) AS col2, + 7
----
91
-1
7

skipif mysql # not compatible
query III rowsort label-3280
SELECT + 91 AS col1, - COUNT ( * ) AS col2, + 7
----
91
-1
7

query I rowsort
SELECT ALL - 33 * - - NULLIF ( + + 12, + 30 ) + 18
----
-378

query II rowsort
SELECT DISTINCT + - 58 AS col1, + 49 * - + 11 AS col2
----
-58
-539

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3284
SELECT - - NULLIF ( COUNT( * ), SUM( ALL + 76 ) ), + 70 AS col1
----
1
70

skipif mysql # not compatible
query II rowsort label-3284
SELECT - - NULLIF ( COUNT ( * ), SUM ( ALL + 76 ) ), + 70 AS col1
----
1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3285
SELECT + - 61 * + 20 - + - COUNT( * ) + + 40 + 46 / 28 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3285
SELECT + - 61 * + 20 - + - COUNT ( * ) + + 40 + 46 / 28 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 63 * + 39 - + + 96 AS col2
----
-2553

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

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

query I rowsort
SELECT DISTINCT - 96 * - 41 AS col2
----
3936

query I rowsort
SELECT ALL + 32 * + - 34 * + + 67 AS col2
----
-72896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3290
SELECT - 26 + - - CASE + + 74 WHEN - 38 / CAST( COUNT( * ) AS SIGNED ) THEN + COUNT( * ) * + ( + 25 * + 48 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3290
SELECT - 26 + - - CASE + + 74 WHEN - 38 / CAST ( COUNT ( * ) AS INTEGER ) THEN + COUNT ( * ) * + ( + 25 * + 48 ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3291
SELECT - COALESCE ( - 90, - + COALESCE ( - 34, + COUNT( * ) + - 45 - + COUNT( DISTINCT 31 ) + 74 DIV 8 * MAX( + 79 ) ), CAST( NULL AS SIGNED ) + - 33 DIV + 15 ) + 12
----
102

skipif mysql # not compatible
query I rowsort label-3291
SELECT - COALESCE ( - 90, - + COALESCE ( - 34, + COUNT ( * ) + - 45 - + COUNT ( DISTINCT 31 ) + 74 / 8 * MAX ( + 79 ) ), CAST ( NULL AS INTEGER ) + - 33 / + 15 ) + 12
----
102

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3293
SELECT - ( 16 ) * + NULLIF ( - - 39, CAST( NULL AS SIGNED ) + ( + 91 ) ) - - 80 col1
----
-544

skipif mysql # not compatible
query I rowsort label-3293
SELECT - ( 16 ) * + NULLIF ( - - 39, CAST ( NULL AS INTEGER ) + ( + 91 ) ) - - 80 col1
----
-544

query II rowsort
SELECT ALL + 33 * + - 40 AS col0, 7 - + 55
----
-1320
-48

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3296
SELECT ALL CAST( 45 AS SIGNED ), 6 AS col2
----
45
6

skipif mysql # not compatible
query II rowsort label-3296
SELECT ALL CAST ( 45 AS INTEGER ), 6 AS col2
----
45
6

query I rowsort
SELECT + COALESCE ( - 19, + 35 ) + + 24 AS col2
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3298
SELECT ALL 48 DIV + + 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL 48 / + + 88 AS col1
----
0

query I rowsort
SELECT - 54 + ( - 99 ) AS col1
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3300
SELECT + CASE 99 WHEN 40 * CASE - + 63 WHEN + 78 THEN 89 WHEN - CASE - 93 WHEN 66 THEN 24 + ( COUNT( * ) ) * - 66 ELSE NULL END - - CASE 63 WHEN 91 THEN CAST( NULL AS SIGNED ) * 79 + + 54 * - SUM( NULLIF ( CASE 77 WHEN + 74 * - CASE - CAST( - 32 AS SIGNED ) * - ( - ( 47 ) * - 34 ) WHEN + 28 - 4 THEN - 40 + 85 ELSE NULL END THEN + COALESCE ( - 30, - ( + 69 ) ) / - 61 ELSE NULL END, 41 - 86 * 67 ) ) WHEN 38 THEN - COALESCE ( 66, 71, 12 * - 72 ) * + 20 ELSE NULL END THEN + 63 + + COALESCE ( 13, 43 + + 4 * ( 3 ), 48 ) / 47 END + - 52 THEN NULL WHEN - COUNT( * ) THEN CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT + CASE 99 WHEN 40 * CASE - + 63 WHEN + 78 THEN 89 WHEN - CASE - 93 WHEN 66 THEN 24 + ( COUNT ( * ) ) * - 66 ELSE NULL END - - CASE 63 WHEN 91 THEN CAST ( NULL AS INTEGER ) * 79 + + 54 * - SUM ( NULLIF ( CASE 77 WHEN + 74 * - CASE - CAST ( - 32 AS INTEGER ) * - ( - ( 47 ) * - 34 ) WHEN + 28 - 4 THEN - 40 + 85 ELSE NULL END THEN + COALESCE ( - 30, - ( + 69 ) ) / - 61 ELSE NULL END, 41 - 86 * 67 ) ) WHEN 38 THEN - COALESCE ( 66, 71, 12 * - 72 ) * + 20 ELSE NULL END THEN + 63 + + COALESCE ( 13, 43 + + 4 * ( 3 ), 48 ) / 47 END + - 52 THEN NULL WHEN - COUNT ( * ) THEN CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3301
SELECT DISTINCT - - 54 DIV + 12 + + 27 + - MAX( DISTINCT 63 ) * + - ( COUNT( * ) ) * 88 AS col0
----
5575

skipif mysql # not compatible
query I rowsort label-3301
SELECT DISTINCT - - 54 / + 12 + + 27 + - MAX ( DISTINCT 63 ) * + - ( COUNT ( * ) ) * 88 AS col0
----
5575

query II rowsort
SELECT DISTINCT 82 * - 49 AS col1, 89
----
-4018
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT 25 / - 53 + + + 26 + + CASE 11 WHEN - + 91 * + - COUNT( * ) + 69 THEN - 43 + 66 WHEN + 37 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT 25 / - 53 + + + 26 + + CASE 11 WHEN - + 91 * + - COUNT ( * ) + 69 THEN - 43 + 66 WHEN + 37 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT + COUNT( + 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + COUNT ( + 41 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + 70 + + 94 * - COUNT( * ) - - 26
----
2

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 70 + + 94 * - COUNT ( * ) - - 26
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3306
SELECT DISTINCT - MAX( DISTINCT - 92 ) DIV - 35 + + + 26 - - + 33 * + 6 + + + 18 + - 24 AS col1
----
216

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT - MAX ( DISTINCT - 92 ) / - 35 + + + 26 - - + 33 * + 6 + + + 18 + - 24 AS col1
----
216

query I rowsort
SELECT ALL 44 * - 63 * + 12
----
-33264

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT + - 94 + + NULLIF ( + 15, - 60 * + SUM( ALL - - 26 ) * - 75 + - 0 ) + 20 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-3309
SELECT + - 94 + + NULLIF ( + 15, - 60 * + SUM ( ALL - - 26 ) * - 75 + - 0 ) + 20 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - 28 * + - NULLIF ( 88, + 2 - + CASE - + COUNT( * ) WHEN MIN( - 26 ) / + 78 THEN NULL WHEN - 79 * - 18 THEN + 55 ELSE + COUNT( * ) END + - MIN( + 20 ) * + 52 ) + 53 * - MIN( 23 ) - + COUNT( * ) AS col2
----
1244

skipif mysql # not compatible
query I rowsort label-3310
SELECT - 28 * + - NULLIF ( 88, + 2 - + CASE - + COUNT ( * ) WHEN MIN ( - 26 ) / + 78 THEN NULL WHEN - 79 * - 18 THEN + 55 ELSE + COUNT ( * ) END + - MIN ( + 20 ) * + 52 ) + 53 * - MIN ( 23 ) - + COUNT ( * ) AS col2
----
1244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3311
SELECT ALL + COALESCE ( + - 54, - 18 + + 83 + 44 + - CAST( NULL AS SIGNED ) * - MAX( ALL 0 ) DIV ( 11 - - 40 ) ) AS col1
----
-54

skipif mysql # not compatible
query I rowsort label-3311
SELECT ALL + COALESCE ( + - 54, - 18 + + 83 + 44 + - CAST ( NULL AS INTEGER ) * - MAX ( ALL 0 ) / ( 11 - - 40 ) ) AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT DISTINCT - COALESCE ( + + CASE 35 WHEN + ( - NULLIF ( + + 71, - 21 ) ) * 23 THEN NULL WHEN 18 * - 53 THEN + 65 END, COALESCE ( - 87, 87 DIV NULLIF ( 94, + 43 ) + - 76, + CASE 37 WHEN - MIN( + 2 ) * 48 THEN 8 END + + 0 ) ) + 61 DIV + 94 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - COALESCE ( + + CASE 35 WHEN + ( - NULLIF ( + + 71, - 21 ) ) * 23 THEN NULL WHEN 18 * - 53 THEN + 65 END, COALESCE ( - 87, 87 / NULLIF ( 94, + 43 ) + - 76, + CASE 37 WHEN - MIN ( + 2 ) * 48 THEN 8 END + + 0 ) ) + 61 / + 94 AS col1
----
87

query I rowsort
SELECT + - 36 * NULLIF ( - 65, ( 44 ) * - 40 ) + + - 52
----
2288

query I rowsort
SELECT ALL + - 99 - - 75
----
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT DISTINCT - 6 - - 53 + + 43 + 40 + + - COUNT( * ) + + 9 * - COUNT( * ) DIV - 70 + 51 * 58 DIV 90 * 85 AS col2
----
2849

skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - 6 - - 53 + + 43 + 40 + + - COUNT ( * ) + + 9 * - COUNT ( * ) / - 70 + 51 * 58 / 90 * 85 AS col2
----
2849

query I rowsort
SELECT + 90 * - 9
----
-810

query I rowsort
SELECT 37 * 2 * - - 74
----
5476

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT 98 + - + 87 + + + MIN( ALL - + 80 )
----
-69

skipif mysql # not compatible
query I rowsort label-3319
SELECT 98 + - + 87 + + + MIN ( ALL - + 80 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT 69 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-3320
SELECT 69 / 92
----
0

query II rowsort
SELECT 13 col2, + 62 + 62 + 42 + 55 col1
----
13
221

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL - COUNT( * ) * - MIN( ALL - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL - COUNT ( * ) * - MIN ( ALL - 10 )
----
-10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - 74 / 48 / + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - 74 / 48 / + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3325
SELECT - 94 AS col0, 10 + + 10 * + NULLIF ( - - SUM( ALL + 54 ), + - COALESCE ( - 60, + ( + 6 ) ) ) AS col2
----
-94
550

skipif mysql # not compatible
query II rowsort label-3325
SELECT - 94 AS col0, 10 + + 10 * + NULLIF ( - - SUM ( ALL + 54 ), + - COALESCE ( - 60, + ( + 6 ) ) ) AS col2
----
-94
550

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

query I rowsort
SELECT 78 - + 18 AS col1
----
60

query I rowsort
SELECT 87 - - 3
----
90

query I rowsort
SELECT ALL - 75 * - 63
----
4725

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3331
SELECT ALL + 11 + + + CASE + 68 WHEN ( + + 68 ) THEN NULL ELSE CAST( NULL AS SIGNED ) * + 85 - 5 END / 78
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL + 11 + + + CASE + 68 WHEN ( + + 68 ) THEN NULL ELSE CAST ( NULL AS INTEGER ) * + 85 - 5 END / 78
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 55, 1 / - AVG ( DISTINCT + - 20 ) ) + ( + 78 ) + + 22 + 23 * - 25
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT DISTINCT + 53 + - - COUNT( * ) + + MIN( ALL 40 ) * - COALESCE ( + 20, - 69 * COUNT( * ) * + 67 )
----
-746

skipif mysql # not compatible
query I rowsort label-3333
SELECT DISTINCT + 53 + - - COUNT ( * ) + + MIN ( ALL 40 ) * - COALESCE ( + 20, - 69 * COUNT ( * ) * + 67 )
----
-746

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT COUNT( * ) * + + 85 + + 4 + - 60
----
29

skipif mysql # not compatible
query I rowsort label-3334
SELECT COUNT ( * ) * + + 85 + + 4 + - 60
----
29

query I rowsort
SELECT 34 - - - 13
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3336
SELECT + + COALESCE ( COUNT( ALL + - 79 ), + 34 * 12 + 92 + ( - 3 ) DIV - 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3336
SELECT + + COALESCE ( COUNT ( ALL + - 79 ), + 34 * 12 + 92 + ( - 3 ) / - 89 ) AS col1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT 13 + - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3338
SELECT 13 + - - COUNT ( * )
----
14

query II rowsort
SELECT + 19 col2, 81
----
19
81

query I rowsort
SELECT DISTINCT 73 - - 73
----
146

query I rowsort
SELECT + - 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT ALL 0 * + - CASE - 84 WHEN + 91 THEN + 36 WHEN COALESCE ( - 62, - + 58, 61 ) + COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL 0 * + - CASE - 84 WHEN + 91 THEN + 36 WHEN COALESCE ( - 62, - + 58, 61 ) + COUNT ( * ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 88 + 86
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL MIN( - + ( + 80 ) ) * + + 53 * + 0 + + 48 + - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL MIN ( - + ( + 80 ) ) * + + 53 * + 0 + + 48 + - 48 AS col1
----
0

query II rowsort
SELECT DISTINCT ( - 16 ) * - ( 79 ) + + + 35 + 30 AS col0, 3 - + - 4 * + 67 AS col1
----
1329
271

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT 5 * MIN( DISTINCT 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3348
SELECT 5 * MIN ( DISTINCT 0 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT - + COUNT( * ) * 74 + - + 74 + + - ( - ( + 5 ) ) AS col2
----
-143

skipif mysql # not compatible
query I rowsort label-3350
SELECT - + COUNT ( * ) * 74 + - + 74 + + - ( - ( + 5 ) ) AS col2
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-3351
SELECT + COUNT( * ) * - 54 * 58, MIN( - ( 65 ) ) AS col2
----
-3132
-65

skipif mysql # not compatible
query II rowsort label-3351
SELECT + COUNT ( * ) * - 54 * 58, MIN ( - ( 65 ) ) AS col2
----
-3132
-65

query I rowsort
SELECT 53 + + 32 col2
----
85

query II rowsort
SELECT 72 * + 4 AS col1, + 4 * - 61 AS col0
----
288
-244

query I rowsort
SELECT 78 - - + 53 * - 5 * - 79 AS col1
----
21013

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

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

query I rowsort
SELECT + ( + 21 ) * 14 - - 91 * - 23 AS col1
----
-1799

query I rowsort
SELECT DISTINCT 38 * - + 45 * 43
----
-73530

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT SUM( 0 ) + - ( 41 ) * 56 AS col0
----
-2296

skipif mysql # not compatible
query I rowsort label-3358
SELECT SUM ( 0 ) + - ( 41 ) * 56 AS col0
----
-2296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT CAST( + COUNT( - ( - CAST( 4 AS SIGNED ) ) ) AS SIGNED ) + + 41 col0
----
42

skipif mysql # not compatible
query I rowsort label-3359
SELECT CAST ( + COUNT ( - ( - CAST ( 4 AS INTEGER ) ) ) AS INTEGER ) + + 41 col0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3360
SELECT CASE 65 WHEN - + 72 THEN + 56 / - 57 * - COUNT( - + 57 ) - ( - ( 88 ) ) - - COUNT( * ) + COUNT( * ) WHEN 82 THEN - 2 / + CASE ( - 99 ) WHEN - 58 / + CAST( 97 AS SIGNED ) THEN - 20 WHEN - COALESCE ( 97, CAST( 0 AS SIGNED ) / + 80 ) - - 0 THEN NULL END + - 30 END + 35 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT CASE 65 WHEN - + 72 THEN + 56 / - 57 * - COUNT ( - + 57 ) - ( - ( 88 ) ) - - COUNT ( * ) + COUNT ( * ) WHEN 82 THEN - 2 / + CASE ( - 99 ) WHEN - 58 / + CAST ( 97 AS INTEGER ) THEN - 20 WHEN - COALESCE ( 97, CAST ( 0 AS INTEGER ) / + 80 ) - - 0 THEN NULL END + - 30 END + 35 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-3361
SELECT - COUNT ( - 19 )
----
-1

query I rowsort
SELECT 97 + - + 2 * - 68
----
233

query I rowsort
SELECT ALL 95 + 9 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT - 71 + + - 46 * - MAX( DISTINCT + - NULLIF ( - + 40, + + 58 * - 13 + - - NULLIF ( + + 32, - 69 / 98 + - 9 / 24 ) + 11 ) ) AS col1
----
1769

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - 71 + + - 46 * - MAX ( DISTINCT + - NULLIF ( - + 40, + + 58 * - 13 + - - NULLIF ( + + 32, - 69 / 98 + - 9 / 24 ) + 11 ) ) AS col1
----
1769

query I rowsort
SELECT ALL + ( 10 ) + + - 65 AS col0
----
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT + 96 * - CAST( NULL AS SIGNED ) / CASE - 14 WHEN + 47 THEN + + NULLIF ( + 81, + 48 + - - 96 * 29 ) / 69 WHEN - 33 THEN NULL ELSE 58 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3367
SELECT + 96 * - CAST ( NULL AS INTEGER ) / CASE - 14 WHEN + 47 THEN + + NULLIF ( + 81, + 48 + - - 96 * 29 ) / 69 WHEN - 33 THEN NULL ELSE 58 END col2
----
NULL

query I rowsort
SELECT 79 * + 17 * - 52
----
-69836

query I rowsort
SELECT ALL - - 57 - - 91 AS col0
----
148

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

query I rowsort
SELECT + 92 + + 95 - + + 48
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-3372
SELECT ALL + 92 * + 8 + 4 + - 56 + - COUNT( * ) - + COUNT( * ) + 67 AS col2, - 49 * + 70 AS col1
----
749
-3430

skipif mysql # not compatible
query II rowsort label-3372
SELECT ALL + 92 * + 8 + 4 + - 56 + - COUNT ( * ) - + COUNT ( * ) + 67 AS col2, - 49 * + 70 AS col1
----
749
-3430

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT - 45 * NULLIF ( + 19, - CASE - 83 WHEN COUNT( * ) THEN - SUM( ALL + 63 ) WHEN - COALESCE ( + SUM( + 61 ), + 61 + + 34 ) + 8 THEN 98 WHEN + 1 + + 89 THEN NULL ELSE COUNT( * ) * - 49 + 80 END * - 70 ) + 45
----
-810

skipif mysql # not compatible
query I rowsort label-3373
SELECT - 45 * NULLIF ( + 19, - CASE - 83 WHEN COUNT ( * ) THEN - SUM ( ALL + 63 ) WHEN - COALESCE ( + SUM ( + 61 ), + 61 + + 34 ) + 8 THEN 98 WHEN + 1 + + 89 THEN NULL ELSE COUNT ( * ) * - 49 + 80 END * - 70 ) + 45
----
-810

query I rowsort
SELECT ALL + + NULLIF ( - COALESCE ( + + ( - 63 ), 9, 37 ), - 34 + - 8 / - 53 * 80 + 63 ) AS col2
----
63

query I rowsort
SELECT DISTINCT - 85 * 26 + + 2 - 42 * + 18
----
-2964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT 71 DIV COUNT( * ) - 69 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3377
SELECT 71 / COUNT ( * ) - 69 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT DISTINCT + 92 DIV + 33 col1
----
2

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + 92 / + 33 col1
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3379
SELECT + CASE - COUNT( * ) WHEN ( - ( 95 ) ) * - + 76 + - NULLIF ( + COALESCE ( 39, - + 52 + + 47 * - 90 ), 26 DIV 96 ) THEN - 9 DIV + 5 ELSE - SUM( + ( - 77 ) ) + + 0 END DIV CAST( + AVG ( CAST( + 82 AS SIGNED ) ) * + COUNT( * ) AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT + CASE - COUNT ( * ) WHEN ( - ( 95 ) ) * - + 76 + - NULLIF ( + COALESCE ( 39, - + 52 + + 47 * - 90 ), 26 / 96 ) THEN - 9 / + 5 ELSE - SUM ( + ( - 77 ) ) + + 0 END / CAST ( + AVG ( CAST ( + 82 AS INTEGER ) ) * + COUNT ( * ) AS INTEGER ) AS col0
----
0

query I rowsort
SELECT + ( - - 29 ) + 71 AS col0
----
100

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

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

query II rowsort
SELECT ALL + 17 AS col0, - 54 AS col2
----
17
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3383
SELECT ALL 99 * + 55 * 25 + 56 + + NULLIF ( + - 83, + + COUNT( * ) * + 34 ) DIV + COALESCE ( MIN( DISTINCT 58 ), ( 38 ) * - 76 + + 44 * 79 ) + - CAST( - 80 AS SIGNED )
----
136260

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL 99 * + 55 * 25 + 56 + + NULLIF ( + - 83, + + COUNT ( * ) * + 34 ) / + COALESCE ( MIN ( DISTINCT 58 ), ( 38 ) * - 76 + + 44 * 79 ) + - CAST ( - 80 AS INTEGER )
----
136260

query I rowsort
SELECT - ( + 80 ) * + 8 * - - 16
----
-10240

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + CASE + 49 WHEN + COUNT( * ) THEN - 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3385
SELECT + CASE + 49 WHEN + COUNT ( * ) THEN - 70 END AS col2
----
NULL

query I rowsort
SELECT + 26 * CASE - ( + 46 ) WHEN - 13 THEN + 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT MAX( ALL + 13 )
----
13

skipif mysql # not compatible
query I rowsort label-3387
SELECT MAX ( ALL + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT 11 * + ( + 75 ) + SUM( - - 4 ) + + - 94 - NULLIF ( 43, + + 55 + + 58 ) + + 62 * 93 AS col1
----
6458

skipif mysql # not compatible
query I rowsort label-3388
SELECT 11 * + ( + 75 ) + SUM ( - - 4 ) + + - 94 - NULLIF ( 43, + + 55 + + 58 ) + + 62 * 93 AS col1
----
6458

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT COUNT( - 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3389
SELECT COUNT ( - 51 ) AS col1
----
1

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

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

query I rowsort
SELECT + 19 + + 12 AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT COUNT( ALL - ( 58 ) ) col1, 70 AS col0
----
1
70

skipif mysql # not compatible
query II rowsort label-3392
SELECT COUNT ( ALL - ( 58 ) ) col1, 70 AS col0
----
1
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT - COALESCE ( + + CASE WHEN ( NULL ) BETWEEN - 72 AND + - CAST( - + 38 AS SIGNED ) THEN 54 END, - 0 * 92 * 80 + - CASE SUM( + 35 ) WHEN 13 - - 40 THEN NULL WHEN - 45 * ( 66 ) THEN NULL ELSE - 6 * - 87 END )
----
522

skipif mysql # not compatible
query I rowsort label-3393
SELECT - COALESCE ( + + CASE WHEN ( NULL ) BETWEEN - 72 AND + - CAST ( - + 38 AS INTEGER ) THEN 54 END, - 0 * 92 * 80 + - CASE SUM ( + 35 ) WHEN 13 - - 40 THEN NULL WHEN - 45 * ( 66 ) THEN NULL ELSE - 6 * - 87 END )
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT DISTINCT MAX( 15 ) + + MIN( DISTINCT - 37 ) * + 64 col0
----
-2353

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT MAX ( 15 ) + + MIN ( DISTINCT - 37 ) * + 64 col0
----
-2353

query II rowsort
SELECT ALL 56 AS col1, + 61 AS col0
----
56
61

query I rowsort
SELECT + 60 * + 39
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT ALL + ( + - 99 ) * + + SUM( + 25 ) + - 93 - 58 * + 84 AS col1
----
-7440

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL + ( + - 99 ) * + + SUM ( + 25 ) + - 93 - 58 * + 84 AS col1
----
-7440

onlyif mysql # DIV for integer division: 
query I rowsort label-3398
SELECT ALL 42 - 43 DIV 39 + - - 73 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL 42 - 43 / 39 + - - 73 AS col0
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3399
SELECT + 80 - + - MAX( + 97 ) DIV + 80 + - ( - 62 ) * 55 * - + 61 + - - 48
----
-207881

skipif mysql # not compatible
query I rowsort label-3399
SELECT + 80 - + - MAX ( + 97 ) / + 80 + - ( - 62 ) * 55 * - + 61 + - - 48
----
-207881

query I rowsort
SELECT - - 48 col1
----
48

query I rowsort
SELECT ALL 33 * 18 - - 71
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + ( - 13 ) - + + COUNT( - - 55 ) * 26 * 59 col0
----
-1547

skipif mysql # not compatible
query I rowsort label-3402
SELECT + ( - 13 ) - + + COUNT ( - - 55 ) * 26 * 59 col0
----
-1547

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT - MIN( ALL + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-3403
SELECT - MIN ( ALL + 55 ) AS col2
----
-55

query I rowsort
SELECT + + 57 * - 8
----
-456

query I rowsort
SELECT - - 82 - + 86
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3406
SELECT ALL + - COUNT( * ) DIV + NULLIF ( + COUNT( * ), + - COUNT( * ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL + - COUNT ( * ) / + NULLIF ( + COUNT ( * ), + - COUNT ( * ) ) col0
----
-1

query I rowsort
SELECT + 10 * 43
----
430

query I rowsort
SELECT - 79 * - 21
----
1659

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

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

query I rowsort
SELECT ALL - 36 * 5 * - - 0 + + 25 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - - 30 * - COUNT( ALL 83 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-3411
SELECT - - 30 * - COUNT ( ALL 83 ) AS col0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT 25 DIV + 4 + 49 * 63 + - - 35
----
3128

skipif mysql # not compatible
query I rowsort label-3412
SELECT 25 / + 4 + 49 * 63 + - - 35
----
3128

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3413
SELECT - 6 - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3413
SELECT - 6 - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3414
SELECT ALL 89 DIV - COUNT( * ) + + ( + 37 ) * - + 69 * - + MAX( - ( - COALESCE ( + + 71, 98 - + 9 * ( - 68 ) ) ) ) col0
----
181174

skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL 89 / - COUNT ( * ) + + ( + 37 ) * - + 69 * - + MAX ( - ( - COALESCE ( + + 71, 98 - + 9 * ( - 68 ) ) ) ) col0
----
181174

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT + 16 col0, - MAX( - 24 ) AS col1
----
16
24

skipif mysql # not compatible
query II rowsort label-3415
SELECT + 16 col0, - MAX ( - 24 ) AS col1
----
16
24

query I rowsort
SELECT ALL + 87 * + 98 col0
----
8526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3417
SELECT + 78 AS col0, - MIN( - + 59 ) * + - CAST( 51 AS SIGNED ) + 24 * 46
----
78
-1905

skipif mysql # not compatible
query II rowsort label-3417
SELECT + 78 AS col0, - MIN ( - + 59 ) * + - CAST ( 51 AS INTEGER ) + 24 * 46
----
78
-1905

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3418
SELECT + CASE COUNT( * ) WHEN + 9 * - CASE + 73 WHEN + + 47 THEN NULL ELSE + 93 END - + NULLIF ( 33, - 75 ) THEN NULL WHEN - 39 * 41 THEN AVG ( + CAST( NULL AS DECIMAL ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3418
SELECT + CASE COUNT ( * ) WHEN + 9 * - CASE + 73 WHEN + + 47 THEN NULL ELSE + 93 END - + NULLIF ( 33, - 75 ) THEN NULL WHEN - 39 * 41 THEN AVG ( + CAST ( NULL AS REAL ) ) END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3419
SELECT + 44 * + 62 + 1 DIV 79
----
2728

skipif mysql # not compatible
query I rowsort label-3419
SELECT + 44 * + 62 + 1 / 79
----
2728

query I rowsort
SELECT + 43 * + 67
----
2881

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

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( * ) + + - COUNT ( * ) + - 15 + - + 42 AS col2
----
-59

query II rowsort
SELECT + ( - + 26 ) AS col0, - 25 - + 33
----
-26
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3423
SELECT COALESCE ( 67, + + 19 * 16 + + 29 - + - ( + 0 ) ) AS col0, - ( - MAX( ALL 93 ) ) AS col2
----
67
93

skipif mysql # not compatible
query II rowsort label-3423
SELECT COALESCE ( 67, + + 19 * 16 + + 29 - + - ( + 0 ) ) AS col0, - ( - MAX ( ALL 93 ) ) AS col2
----
67
93

query I rowsort
SELECT ALL - 41 * - 62 + 92
----
2634

onlyif mysql # DIV for integer division: 
query I rowsort label-3425
SELECT DISTINCT + 43 DIV 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT + 43 / 77 col0
----
0

query I rowsort
SELECT + 84 - 97 - - - 21 - ( + 22 )
----
-56

query I rowsort
SELECT 53 * + 20 + 43 * - 72
----
-2036

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL - 14 * + 7 - - COALESCE ( + COUNT( * ), - - 16 * + 20 + - + 58 ) + + COUNT( * )
----
-96

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - 14 * + 7 - - COALESCE ( + COUNT ( * ), - - 16 * + 20 + - + 58 ) + + COUNT ( * )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3430
SELECT SUM( 29 ), + SUM( + 49 ) + + CAST( + 76 AS SIGNED ) * + - 47 * + CAST( 19 AS SIGNED ) AS col1
----
29
-67819

skipif mysql # not compatible
query II rowsort label-3430
SELECT SUM ( 29 ), + SUM ( + 49 ) + + CAST ( + 76 AS INTEGER ) * + - 47 * + CAST ( 19 AS INTEGER ) AS col1
----
29
-67819

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT 41 * CASE + 49 WHEN + COALESCE ( - COUNT( ALL - 43 ), + 36 ) THEN NULL WHEN 45 / + + 26 + + 19 + + + COALESCE ( 56, + 74 ) - - COALESCE ( 53, + 96 / - COUNT( * ) ) * - CASE WHEN + 89 > + 4 THEN - 5 END THEN - 29 / - 6 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT 41 * CASE + 49 WHEN + COALESCE ( - COUNT ( ALL - 43 ), + 36 ) THEN NULL WHEN 45 / + + 26 + + 19 + + + COALESCE ( 56, + 74 ) - - COALESCE ( 53, + 96 / - COUNT ( * ) ) * - CASE WHEN + 89 > + 4 THEN - 5 END THEN - 29 / - 6 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT 12 + + COUNT( + 98 ) AS col1
----
13

skipif mysql # not compatible
query I rowsort label-3432
SELECT 12 + + COUNT ( + 98 ) AS col1
----
13

query I rowsort
SELECT 50 * - - 77 * 26 + - + 50
----
100050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT - 91 + - 39 * SUM( DISTINCT 49 ) * + - 49 * + ( + 98 ) - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + MIN( DISTINCT + + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT - 91 + - 39 * SUM ( DISTINCT 49 ) * + - 49 * + ( + 98 ) - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + MIN ( DISTINCT + + 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT + 61 - 94 * 10 * + + COUNT( * ) AS col0
----
-879

skipif mysql # not compatible
query I rowsort label-3435
SELECT + 61 - 94 * 10 * + + COUNT ( * ) AS col0
----
-879

query I rowsort
SELECT + ( - 64 ) * 68
----
-4352

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3437
SELECT COUNT( * ) + - - 26 + + 12 - + 19 DIV + - 50 + + 31
----
70

skipif mysql # not compatible
query I rowsort label-3437
SELECT COUNT ( * ) + - - 26 + + 12 - + 19 / + - 50 + + 31
----
70

query I rowsort
SELECT ALL ( - 54 ) * 4
----
-216

query I rowsort
SELECT ALL 24 * + - 90 * 54
----
-116640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3440
SELECT DISTINCT - CAST( NULL AS SIGNED ), COUNT( * ) + - 90 * + 70 - + 50 col0
----
NULL
-6349

skipif mysql # not compatible
query II rowsort label-3440
SELECT DISTINCT - CAST ( NULL AS INTEGER ), COUNT ( * ) + - 90 * + 70 - + 50 col0
----
NULL
-6349

query I rowsort
SELECT 98 + + ( + 58 )
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3442
SELECT - COUNT( * ) col2, 86 + + 37 + + - 60 + - SUM( DISTINCT 12 )
----
-1
51

skipif mysql # not compatible
query II rowsort label-3442
SELECT - COUNT ( * ) col2, 86 + + 37 + + - 60 + - SUM ( DISTINCT 12 )
----
-1
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) + + 40 * - - 41 * - 94 * 34 AS col2
----
-5241439

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) + + 40 * - - 41 * - 94 * 34 AS col2
----
-5241439

query I rowsort
SELECT + 91 + + 42
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT 90 DIV + NULLIF ( - 98, + 37 ) - - 90
----
90

skipif mysql # not compatible
query I rowsort label-3445
SELECT 90 / + NULLIF ( - 98, + 37 ) - - 90
----
90

query I rowsort
SELECT ALL - + CASE - 98 WHEN - + 46 + 77 / - 83 + + - ( - - 22 ) THEN 50 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL ( - + 97 ) + - - 70 AS col0
----
-27

query I rowsort
SELECT 67 + 50 * 4
----
267

query I rowsort
SELECT ALL - ( - 52 ) + 0
----
52

query I rowsort
SELECT ALL 80 + + 59
----
139

onlyif mysql # DIV for integer division: 
query I rowsort label-3451
SELECT + 41 DIV - 11 + + + 56
----
53

skipif mysql # not compatible
query I rowsort label-3451
SELECT + 41 / - 11 + + + 56
----
53

query I rowsort
SELECT ( ( - 41 ) ) + + 18 AS col2
----
-23

query I rowsort
SELECT 78 + + 80 AS col2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT - COUNT( * ) + - 60 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT - COUNT ( * ) + - 60 AS col2
----
-61

query I rowsort
SELECT 26 * - 45 col2
----
-1170

onlyif mysql # DIV for integer division: 
query I rowsort label-3456
SELECT 13 + + - 8 DIV - - 39
----
13

skipif mysql # not compatible
query I rowsort label-3456
SELECT 13 + + - 8 / - - 39
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT DISTINCT - CAST( 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-3457
SELECT DISTINCT - CAST ( 83 AS INTEGER )
----
-83

query I rowsort
SELECT 3 * 34 * - - 30 * 86
----
263160

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT - 83 * 71 + + + 17 * + COUNT( * ) AS col0
----
-5876

skipif mysql # not compatible
query I rowsort label-3459
SELECT - 83 * 71 + + + 17 * + COUNT ( * ) AS col0
----
-5876

query II rowsort
SELECT 57 + + 42 + + - 82, + 39 * + 21 AS col1
----
17
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3461
SELECT 64 * + 70 AS col1, COALESCE ( + 99, 83 DIV - 36 * + - 46, + 31 ) * + NULLIF ( + + COUNT( * ), - 56 * - 80 - 90 ) + - COUNT( * )
----
4480
98

skipif mysql # not compatible
query II rowsort label-3461
SELECT 64 * + 70 AS col1, COALESCE ( + 99, 83 / - 36 * + - 46, + 31 ) * + NULLIF ( + + COUNT ( * ), - 56 * - 80 - 90 ) + - COUNT ( * )
----
4480
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3462
SELECT DISTINCT + 63 * - - COUNT( * ) * - 10 - - - NULLIF ( - + 28, + + 22 + + 24 - + - 90 ) - COUNT( * ) * - + 97 AS col1, - CAST( NULL AS SIGNED ) AS col2
----
-505
NULL

skipif mysql # not compatible
query II rowsort label-3462
SELECT DISTINCT + 63 * - - COUNT ( * ) * - 10 - - - NULLIF ( - + 28, + + 22 + + 24 - + - 90 ) - COUNT ( * ) * - + 97 AS col1, - CAST ( NULL AS INTEGER ) AS col2
----
-505
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3463
SELECT ALL - + MAX( ALL 54 ) DIV - COUNT( * ), 58 * - 55 AS col2, - - 48 col1
----
54
-3190
48

skipif mysql # not compatible
query III rowsort label-3463
SELECT ALL - + MAX ( ALL 54 ) / - COUNT ( * ), 58 * - 55 AS col2, - - 48 col1
----
54
-3190
48

query I rowsort
SELECT ALL - 30 * 62 * + + 83 AS col0
----
-154380

query I rowsort
SELECT DISTINCT - - 9 * - - 83 AS col0
----
747

query I rowsort
SELECT - 39 * + 57 + + 80 AS col1
----
-2143

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3468
SELECT + CAST( - COUNT( * ) AS SIGNED ) - - + 62 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-3468
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - + 62 AS col2
----
61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT DISTINCT + + COALESCE ( + - 4, - + 80 * + - 34 * 0 * - + COUNT( ALL + 2 ) ) * + 47 AS col0
----
-188

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + + COALESCE ( + - 4, - + 80 * + - 34 * 0 * - + COUNT ( ALL + 2 ) ) * + 47 AS col0
----
-188

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT - COUNT( * ) - 78 * 58 AS col1
----
-4525

skipif mysql # not compatible
query I rowsort label-3472
SELECT - COUNT ( * ) - 78 * 58 AS col1
----
-4525

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT ALL + COALESCE ( + COUNT( + ( - ( - 13 ) ) ), 46 )
----
1

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL + COALESCE ( + COUNT ( + ( - ( - 13 ) ) ), 46 )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3474
SELECT - 55 - CAST( + - 6 AS SIGNED ) DIV - 22 * 92 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-3474
SELECT - 55 - CAST ( + - 6 AS INTEGER ) / - 22 * 92 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT SUM( ALL + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-3475
SELECT SUM ( ALL + 51 )
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3476
SELECT 81 + - + 99 DIV + 81
----
80

skipif mysql # not compatible
query I rowsort label-3476
SELECT 81 + - + 99 / + 81
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT 16 * - CAST( - - 32 AS SIGNED )
----
-512

skipif mysql # not compatible
query I rowsort label-3477
SELECT 16 * - CAST ( - - 32 AS INTEGER )
----
-512

onlyif mysql # DIV for integer division: 
query I rowsort label-3478
SELECT 23 DIV - 85 * - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3478
SELECT 23 / - 85 * - 11 AS col0
----
0

query I rowsort
SELECT DISTINCT 38 * - 30 AS col2
----
-1140

query I rowsort
SELECT 6 * + + 68
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL 73 * + COUNT( * ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL 73 * + COUNT ( * ) AS col0
----
73

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

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

query I rowsort
SELECT ALL - CASE - 85 WHEN + 85 * 72 THEN + 72 + - 12 ELSE - 37 END
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-3484
SELECT DISTINCT - 71 DIV ( + 83 ), + 68 * + 59 - 88 AS col0
----
0
3924

skipif mysql # not compatible
query II rowsort label-3484
SELECT DISTINCT - 71 / ( + 83 ), + 68 * + 59 - 88 AS col0
----
0
3924

query I rowsort
SELECT 32 * + ( + + 4 )
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-3486
SELECT - 89 DIV + 85 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3486
SELECT - 89 / + 85 AS col0
----
-1

query I rowsort
SELECT + 1 + 17
----
18

query I rowsort
SELECT DISTINCT - 34 * - 97 * 26 * - + 94
----
-8060312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3489
SELECT DISTINCT + COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3489
SELECT DISTINCT + COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT ALL - 0 + + - 69 col1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL - 89 * ( 19 ) + - MAX( - 27 )
----
-1664

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - 89 * ( 19 ) + - MAX ( - 27 )
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT MIN( ALL 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3492
SELECT MIN ( ALL 94 )
----
94

query I rowsort
SELECT - + 78 * + 67 * + ( - 10 ) * 81 AS col2
----
4233060

query I rowsort
SELECT - + 20 + - - 64
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT - + 9 + CAST( + + 11 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3495
SELECT - + 9 + CAST ( + + 11 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3496
SELECT COUNT( * ) * + 22 DIV + COUNT( - 23 ) + + - 84 * - 2
----
190

skipif mysql # not compatible
query I rowsort label-3496
SELECT COUNT ( * ) * + 22 / + COUNT ( - 23 ) + + - 84 * - 2
----
190

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT - NULLIF ( ( + 69 ), + COUNT( * ) ) - + + 48 + 26 DIV - + 5 DIV + COUNT( * ) AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-3497
SELECT - NULLIF ( ( + 69 ), + COUNT ( * ) ) - + + 48 + 26 / - + 5 / + COUNT ( * ) AS col0
----
-122

query I rowsort
SELECT + 59 - - + 86 AS col0
----
145

query II rowsort
SELECT DISTINCT + 56 col0, 18
----
56
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3500
SELECT - 3 DIV - - 35 * 4 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT - 3 / - - 35 * 4 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3501
SELECT DISTINCT - COALESCE ( + - NULLIF ( - + 46, - ( - 60 ) ), - CAST( - 51 AS SIGNED ) ) + + 96 * + COUNT( * ) - + + 37 + 3 + + 91 - + 38 + - 5
----
64

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - COALESCE ( + - NULLIF ( - + 46, - ( - 60 ) ), - CAST ( - 51 AS INTEGER ) ) + + 96 * + COUNT ( * ) - + + 37 + 3 + + 91 - + 38 + - 5
----
64

query I rowsort
SELECT - + 19 + + 19
----
0

query I rowsort
SELECT ALL + - 39 + + 49 AS col0
----
10

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

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

query II rowsort
SELECT - 52 AS col1, 90 - 69 + ( - 73 ) * + + 82 + 24
----
-52
-5941

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3507
SELECT + 3 * 86 DIV - 59
----
-4

skipif mysql # not compatible
query I rowsort label-3507
SELECT + 3 * 86 / - 59
----
-4

query I rowsort
SELECT - ( 57 ) + - + 4 AS col1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT COUNT( * ) - - 79 * - 11 * - 67
----
58224

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT COUNT ( * ) - - 79 * - 11 * - 67
----
58224

query I rowsort
SELECT + 85 + + 23 + - 44
----
64

query I rowsort
SELECT 57 * - 92 + + 60 * - 29
----
-6984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3512
SELECT - SUM( DISTINCT - 21 ) DIV + 6 + CAST( + 81 AS SIGNED ) + - 35 - + COUNT( * ) * 28 + 8 * 41 + + 18 * + - 73 - - 61 * - 20 - - 90 * + 50 AS col1
----
2315

skipif mysql # not compatible
query I rowsort label-3512
SELECT - SUM ( DISTINCT - 21 ) / + 6 + CAST ( + 81 AS INTEGER ) + - 35 - + COUNT ( * ) * 28 + 8 * 41 + + 18 * + - 73 - - 61 * - 20 - - 90 * + 50 AS col1
----
2315

query I rowsort
SELECT - 7 * + + COALESCE ( - 60, - 94 ) AS col1
----
420

query I rowsort
SELECT + 13 * 62 * - - 58 * 14 * + 39 * + 58
----
1480415664

onlyif mysql # aggregate syntax: 
query II rowsort label-3515
SELECT ALL COUNT( * ) * - + 92 AS col0, 97 col1
----
-92
97

skipif mysql # not compatible
query II rowsort label-3515
SELECT ALL COUNT ( * ) * - + 92 AS col0, 97 col1
----
-92
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT + 31 + + COUNT( ALL - 77 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3517
SELECT + 31 + + COUNT ( ALL - 77 ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT + ( - COUNT( * ) ) + ( 61 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-3518
SELECT + ( - COUNT ( * ) ) + ( 61 ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT ALL COUNT( DISTINCT - 3 ) * - COUNT( * ) + - MAX( - + 22 )
----
21

skipif mysql # not compatible
query I rowsort label-3519
SELECT ALL COUNT ( DISTINCT - 3 ) * - COUNT ( * ) + - MAX ( - + 22 )
----
21

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

skipif mysql # not compatible
query I rowsort label-3520
SELECT + ( - - CAST ( COUNT ( * ) AS INTEGER ) )
----
1

query I rowsort
SELECT + 71 + + - 25 * + + 51
----
-1204

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + ( 18 ) * - 23 * - + 3 + 82 * 70 * - + CASE + - 25 WHEN + - 41 * + 69 - - 66 THEN NULL WHEN - - AVG ( - 44 ) + + 1 + - 60 THEN + 7 + 16 ELSE 25 * + 32 END + - ( - COUNT( + 48 ) + + 88 ) AS col2
----
-4590845

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + ( 18 ) * - 23 * - + 3 + 82 * 70 * - + CASE + - 25 WHEN + - 41 * + 69 - - 66 THEN NULL WHEN - - AVG ( - 44 ) + + 1 + - 60 THEN + 7 + 16 ELSE 25 * + 32 END + - ( - COUNT ( + 48 ) + + 88 ) AS col2
----
-4590845

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3525
SELECT + 60 * + 80 + - + 79 * + 13, + CAST( + ( + - 57 ) AS SIGNED ) * + COUNT( * ) * 46 AS col2
----
3773
-2622

skipif mysql # not compatible
query II rowsort label-3525
SELECT + 60 * + 80 + - + 79 * + 13, + CAST ( + ( + - 57 ) AS INTEGER ) * + COUNT ( * ) * 46 AS col2
----
3773
-2622

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - 30 + NULLIF ( + 87, 12 + + 44 ) * SUM( - 94 ) AS col1
----
-8208

skipif mysql # not compatible
query I rowsort label-3526
SELECT - 30 + NULLIF ( + 87, 12 + + 44 ) * SUM ( - 94 ) AS col1
----
-8208

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

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

query I rowsort
SELECT ALL - ( - + 14 ) * - 23 + + 83 AS col2
----
-239

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT DISTINCT + + 16 * + 60 - + COUNT( * ) + + 93 AS col2, + 3
----
1052
3

skipif mysql # not compatible
query II rowsort label-3529
SELECT DISTINCT + + 16 * + 60 - + COUNT ( * ) + + 93 AS col2, + 3
----
1052
3

query I rowsort
SELECT ALL 3 * ( - 59 ) + + 56 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-3531
SELECT - + 23 * + + 83, + 85 + - - ( - MAX( DISTINCT + 51 ) ) AS col1
----
-1909
34

skipif mysql # not compatible
query II rowsort label-3531
SELECT - + 23 * + + 83, + 85 + - - ( - MAX ( DISTINCT + 51 ) ) AS col1
----
-1909
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3532
SELECT ALL + 17 * - 4 * + + CASE + 49 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 25 THEN NULL ELSE 56 END AS col1, 99 * - 92 * - + 54 + - COUNT( * ) + 4 - 53 DIV - 26 AS col0
----
-3808
491837

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL + 17 * - 4 * + + CASE + 49 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 25 THEN NULL ELSE 56 END AS col1, 99 * - 92 * - + 54 + - COUNT ( * ) + 4 - 53 / - 26 AS col0
----
-3808
491837

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

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

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

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

query I rowsort
SELECT + 76 - + 18 col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3536
SELECT ALL + CASE 54 WHEN 61 THEN - 11 WHEN + CASE - - 39 WHEN 0 THEN - + ( - - 6 ) WHEN 53 + + - 80 / + + CAST( NULL AS DECIMAL ) * - COALESCE ( + 52, + 35 ) + 48 * + 42 THEN NULL WHEN 40 THEN 0 ELSE NULL END THEN COALESCE ( AVG ( DISTINCT 64 ), 45 * 17 ) + 99 WHEN 70 * 34 THEN NULL END / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + CASE 54 WHEN 61 THEN - 11 WHEN + CASE - - 39 WHEN 0 THEN - + ( - - 6 ) WHEN 53 + + - 80 / + + CAST ( NULL AS REAL ) * - COALESCE ( + 52, + 35 ) + 48 * + 42 THEN NULL WHEN 40 THEN 0 ELSE NULL END THEN COALESCE ( AVG ( DISTINCT 64 ), 45 * 17 ) + 99 WHEN 70 * 34 THEN NULL END / - COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - ( 95 ) * + 36
----
-3420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3538
SELECT ALL NULLIF ( - 59, + CAST( NULL AS SIGNED ) * + + 89 + - 99 ) AS col2, 80 * - 73 AS col1
----
-59
-5840

skipif mysql # not compatible
query II rowsort label-3538
SELECT ALL NULLIF ( - 59, + CAST ( NULL AS INTEGER ) * + + 89 + - 99 ) AS col2, 80 * - 73 AS col1
----
-59
-5840

query II rowsort
SELECT - 22, + 33 col0
----
-22
33

query I rowsort
SELECT DISTINCT ( NULLIF ( + + 13, + - ( - + 7 ) ) ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-3541
SELECT ALL + 98 DIV + + 84
----
1

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + 98 / + + 84
----
1

query I rowsort
SELECT - 61 * 61
----
-3721

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

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

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

query I rowsort
SELECT ALL 65 + - 38 * - 29
----
1167

query I rowsort
SELECT DISTINCT 24 + - 25 - 26 + NULLIF ( 62, + 33 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT + COUNT( * ) * COUNT( * ) + 10
----
11

skipif mysql # not compatible
query I rowsort label-3547
SELECT + COUNT ( * ) * COUNT ( * ) + 10
----
11

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3549
SELECT + COUNT( ALL 34 ) * + 37 + COUNT( * ) - + 15 DIV 78 + + 11
----
49

skipif mysql # not compatible
query I rowsort label-3549
SELECT + COUNT ( ALL 34 ) * + 37 + COUNT ( * ) - + 15 / 78 + + 11
----
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT + + COUNT( * ) * - 81 + 33 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-3551
SELECT + + COUNT ( * ) * - 81 + 33 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-3552
SELECT - 60 + + + 24 * - COUNT( * ), 69 col0
----
-84
69

skipif mysql # not compatible
query II rowsort label-3552
SELECT - 60 + + + 24 * - COUNT ( * ), 69 col0
----
-84
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + + 80 * - 88 + - 12 + - ( - + CASE + ( - - MAX( ALL + - COALESCE ( + 69, - ( 86 ) + + + 41 + + - 45 * + 1, - 16 ) ) ) WHEN - COALESCE ( COUNT( * ), + 26 * - 42, + 81 ) * - COUNT( 26 ) THEN 28 - COUNT( - 70 ) END ) + - 93 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT + + 80 * - 88 + - 12 + - ( - + CASE + ( - - MAX ( ALL + - COALESCE ( + 69, - ( 86 ) + + + 41 + + - 45 * + 1, - 16 ) ) ) WHEN - COALESCE ( COUNT ( * ), + 26 * - 42, + 81 ) * - COUNT ( 26 ) THEN 28 - COUNT ( - 70 ) END ) + - 93 * 43
----
NULL

query I rowsort
SELECT + 44 + + 21 col0
----
65

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

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + COUNT ( * ) / - 78 * - + 48
----
0

query I rowsort
SELECT DISTINCT 15 - - 3 * + ( - 90 ) AS col2
----
-255

query I rowsort
SELECT 16 + 87 + - 10
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT DISTINCT COUNT( * ) * 39 AS col1
----
39

skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT COUNT ( * ) * 39 AS col1
----
39

query I rowsort
SELECT 26 + 39 + + CASE + 91 WHEN - 75 + + ( - 79 ) THEN NULL WHEN + 65 THEN 12 * + - 48 + - + 77 END / + 35 col2
----
NULL

query I rowsort
SELECT ( + 4 ) * - 10 AS col1
----
-40

query I rowsort
SELECT 32 * ( + + 38 )
----
1216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3562
SELECT ALL 85 col2, - COUNT( * ) DIV + - 60
----
85
0

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL 85 col2, - COUNT ( * ) / + - 60
----
85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT 22 + - + NULLIF ( - COUNT( * ), + 44 )
----
23

skipif mysql # not compatible
query I rowsort label-3563
SELECT 22 + - + NULLIF ( - COUNT ( * ), + 44 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL COALESCE ( - + 97, - 4 * + - 42 * + COUNT( * ) * COUNT( * ) ) + - 58 * - 87
----
4949

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL COALESCE ( - + 97, - 4 * + - 42 * + COUNT ( * ) * COUNT ( * ) ) + - 58 * - 87
----
4949

onlyif mysql # aggregate syntax: 
query II rowsort label-3565
SELECT 8, + COUNT( + 78 ) AS col2
----
8
1

skipif mysql # not compatible
query II rowsort label-3565
SELECT 8, + COUNT ( + 78 ) AS col2
----
8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL - 94 + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL - 94 + COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-3567
SELECT + 49 AS col0, - 60 * COUNT( * )
----
49
-60

skipif mysql # not compatible
query II rowsort label-3567
SELECT + 49 AS col0, - 60 * COUNT ( * )
----
49
-60

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3569
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 60 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT ALL - 32 + - SUM( ALL + 19 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-3571
SELECT ALL - 32 + - SUM ( ALL + 19 ) AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query III rowsort label-3572
SELECT - 90 AS col0, + 99 AS col1, - - SUM( - CASE - + 58 WHEN + - CAST( + 87 AS DECIMAL ) * - + 30 THEN + 14 * - 1 WHEN 34 THEN NULL END ) - + 24 / CASE + MAX( DISTINCT + 43 ) WHEN 91 + 6 THEN + 36 * 32 END + 56 * 71
----
-90
99
NULL

skipif mysql # not compatible
query III rowsort label-3572
SELECT - 90 AS col0, + 99 AS col1, - - SUM ( - CASE - + 58 WHEN + - CAST ( + 87 AS REAL ) * - + 30 THEN + 14 * - 1 WHEN 34 THEN NULL END ) - + 24 / CASE + MAX ( DISTINCT + 43 ) WHEN 91 + 6 THEN + 36 * 32 END + 56 * 71
----
-90
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT ALL - SUM( ALL - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-3573
SELECT ALL - SUM ( ALL - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT + + NULLIF ( + 46, - ( + 80 ) * - 55 + - - 79 / - 97 * - COALESCE ( - 67, + - 45 + 53 * COUNT( * ) ) + ( 88 ) + - - 98 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3574
SELECT + + NULLIF ( + 46, - ( + 80 ) * - 55 + - - 79 / - 97 * - COALESCE ( - 67, + - 45 + 53 * COUNT ( * ) ) + ( 88 ) + - - 98 ) AS col2
----
46

query I rowsort
SELECT DISTINCT + + 45 + + 5
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3576
SELECT ALL - - 34 AS col2, + COALESCE ( - CAST( NULL AS SIGNED ), COUNT( * ) DIV 61 + SUM( + 50 ) )
----
34
50

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL - - 34 AS col2, + COALESCE ( - CAST ( NULL AS INTEGER ), COUNT ( * ) / 61 + SUM ( + 50 ) )
----
34
50

query II rowsort
SELECT ALL - 38, 16 + + 82 * + 1 + - 54 + 24 AS col1
----
-38
68

query II rowsort
SELECT + 97, 64 AS col1
----
97
64

query II rowsort
SELECT ALL - + 18 AS col1, 34 AS col2
----
-18
34

onlyif mysql # DIV for integer division: 
query II rowsort label-3580
SELECT DISTINCT - + 57 AS col1, 87 DIV + - 99 * 97 * 2 * + + 8
----
-57
0

skipif mysql # not compatible
query II rowsort label-3580
SELECT DISTINCT - + 57 AS col1, 87 / + - 99 * 97 * 2 * + + 8
----
-57
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + COUNT( * ) * - 6 * + 49 * - - 91
----
-26754

skipif mysql # not compatible
query I rowsort label-3581
SELECT + COUNT ( * ) * - 6 * + 49 * - - 91
----
-26754

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

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

query II rowsort
SELECT ALL - + 75, + 15 AS col1
----
-75
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT + + CASE - 3 WHEN + COALESCE ( + 91, 42 ) THEN - 81 WHEN - COUNT( * ) THEN NULL ELSE + + 81 * + ( + COUNT( * ) ) * 42 + 21 / ( + 83 ) / - 16 + + + 90 - AVG ( ALL + 75 ) * CASE MAX( 58 ) WHEN 55 THEN 57 + COUNT( 92 + 49 ) END * ( - 67 * 25 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3584
SELECT + + CASE - 3 WHEN + COALESCE ( + 91, 42 ) THEN - 81 WHEN - COUNT ( * ) THEN NULL ELSE + + 81 * + ( + COUNT ( * ) ) * 42 + 21 / ( + 83 ) / - 16 + + + 90 - AVG ( ALL + 75 ) * CASE MAX ( 58 ) WHEN 55 THEN 57 + COUNT ( 92 + 49 ) END * ( - 67 * 25 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL MAX( + 74 ) * - 30
----
-2220

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL MAX ( + 74 ) * - 30
----
-2220

query I rowsort
SELECT - 67 * 4
----
-268

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT DISTINCT - 7 * - + SUM( DISTINCT + + 65 ) + + - 59
----
396

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT - 7 * - + SUM ( DISTINCT + + 65 ) + + - 59
----
396

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL - 74 * 95, COUNT( * ) + - 78 AS col2
----
-7030
-77

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL - 74 * 95, COUNT ( * ) + - 78 AS col2
----
-7030
-77

query I rowsort
SELECT - 15 + - - 85
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT + 38 DIV + 92
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT + 38 / + 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT + 8 + - SUM( 18 ) * + 6 * - COUNT( * ) + - - 85 AS col1
----
201

skipif mysql # not compatible
query I rowsort label-3592
SELECT + 8 + - SUM ( 18 ) * + 6 * - COUNT ( * ) + - - 85 AS col1
----
201

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3593
SELECT + 85 + NULLIF ( - 65, - 98 ) + + AVG ( - CAST( NULL AS SIGNED ) ) * + - CASE - 71 WHEN + ( - 48 ) THEN - - 63 WHEN - CASE + - 82 WHEN 62 THEN - + MIN( 48 ) * + 5 + SUM( + 14 ) * - 21 ELSE + 80 END THEN NULL END * + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3593
SELECT + 85 + NULLIF ( - 65, - 98 ) + + AVG ( - CAST ( NULL AS INTEGER ) ) * + - CASE - 71 WHEN + ( - 48 ) THEN - - 63 WHEN - CASE + - 82 WHEN 62 THEN - + MIN ( 48 ) * + 5 + SUM ( + 14 ) * - 21 ELSE + 80 END THEN NULL END * + 53 AS col1
----
NULL

query I rowsort
SELECT ALL 8 + - - 61
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3595
SELECT DISTINCT 25 DIV + COUNT( * ) AS col2, 19 * - + 47
----
25
-893

skipif mysql # not compatible
query II rowsort label-3595
SELECT DISTINCT 25 / + COUNT ( * ) AS col2, 19 * - + 47
----
25
-893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3596
SELECT ALL 90 + NULLIF ( - - CAST( NULL AS SIGNED ), - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL 90 + NULLIF ( - - CAST ( NULL AS INTEGER ), - 72 )
----
NULL

query II rowsort
SELECT ALL - 8 + 54 AS col0, 12 + + 57 * - + 88 AS col0
----
46
-5004

query I rowsort
SELECT - NULLIF ( 49, + 99 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3599
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 8 AS col1, - CASE WHEN NOT + 76 = + CASE - - ( - 44 ) WHEN + 62 THEN - + MIN( + - 56 ) * COUNT( + - 27 ) END THEN - - COUNT( - 27 ) + + 21 + + 37 WHEN NOT ( NULL ) > ( - 41 + AVG ( + 18 + 53 ) ) THEN + 93 DIV + ( - NULLIF ( - COUNT( * ), - 46 + + NULLIF ( 11, COUNT( * ) DIV - ( + 42 ) - - 84 ) ) ) ELSE 89 END + - COALESCE ( 75 - - ( + 57 - COUNT( * ) * - 36 ) * 40, - 31 + - 81, 6 + 44 ) * - 51 AS col1
----
NULL
193456

skipif mysql # not compatible
query II rowsort label-3599
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 8 AS col1, - CASE WHEN NOT + 76 = + CASE - - ( - 44 ) WHEN + 62 THEN - + MIN ( + - 56 ) * COUNT ( + - 27 ) END THEN - - COUNT ( - 27 ) + + 21 + + 37 WHEN NOT ( NULL ) > ( - 41 + AVG ( + 18 + 53 ) ) THEN + 93 / + ( - NULLIF ( - COUNT ( * ), - 46 + + NULLIF ( 11, COUNT ( * ) / - ( + 42 ) - - 84 ) ) ) ELSE 89 END + - COALESCE ( 75 - - ( + 57 - COUNT ( * ) * - 36 ) * 40, - 31 + - 81, 6 + 44 ) * - 51 AS col1
----
NULL
193456

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL MAX( - 82 ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL MAX ( - 82 ) col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT + COALESCE ( - 8, 60, + 99 ) * + + COALESCE ( - 58, - ( - + COUNT( * ) ) - + COUNT( * ) + - 60 - + 13 ) AS col2
----
464

skipif mysql # not compatible
query I rowsort label-3601
SELECT + COALESCE ( - 8, 60, + 99 ) * + + COALESCE ( - 58, - ( - + COUNT ( * ) ) - + COUNT ( * ) + - 60 - + 13 ) AS col2
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - NULLIF ( - + 64, COALESCE ( - 43, COUNT( * ) * 53 + + - ( 89 ), - - 68 ) / - 91 + - 39 + - 75 ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-3602
SELECT - NULLIF ( - + 64, COALESCE ( - 43, COUNT ( * ) * 53 + + - ( 89 ), - - 68 ) / - 91 + - 39 + - 75 ) AS col2
----
64

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

query I rowsort
SELECT + 12 * + 91 AS col0
----
1092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT - 18 * - NULLIF ( - 80, - 61 ) * COALESCE ( - CAST( + + 11 AS SIGNED ), + 17 * - 20 ) col1
----
15840

skipif mysql # not compatible
query I rowsort label-3605
SELECT - 18 * - NULLIF ( - 80, - 61 ) * COALESCE ( - CAST ( + + 11 AS INTEGER ), + 17 * - 20 ) col1
----
15840

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT ( + SUM( + 94 ) ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3606
SELECT ( + SUM ( + 94 ) ) AS col0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3607
SELECT ALL - - CAST( + 44 AS SIGNED ) * + - COUNT( * ) + + 30 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL - - CAST ( + 44 AS INTEGER ) * + - COUNT ( * ) + + 30 AS col2
----
-14

query II rowsort
SELECT 85 * - 75 - - 16 AS col2, - 98
----
-6359
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3609
SELECT + - SUM( + + CAST( NULL AS SIGNED ) ), - 25 AS col0
----
NULL
-25

skipif mysql # not compatible
query II rowsort label-3609
SELECT + - SUM ( + + CAST ( NULL AS INTEGER ) ), - 25 AS col0
----
NULL
-25

query II rowsort
SELECT DISTINCT + ( - 64 ) AS col2, 52 AS col1
----
-64
52

query I rowsort
SELECT + 97 * - + 99 + 73 AS col0
----
-9530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3612
SELECT + - 24 + - COALESCE ( ( - + CASE + 27 WHEN 49 * - + 26 * + + 92 THEN NULL ELSE + CASE + CASE - COALESCE ( 65, - 71, - + 84 ) WHEN 93 THEN + 64 END WHEN - 9 * NULLIF ( - COUNT( * ), - 19 * 87 ) THEN NULL WHEN + 95 + COUNT( * ) * 26 THEN + COALESCE ( + 46, 21 + - NULLIF ( + 24, + CAST( 3 AS SIGNED ) - 10 DIV - 42 ), + 43 + + 40 ) + COUNT( * ) DIV + ( - 88 ) END + - 4 END ), 61 - - 74 ) * 87
----
-11769

skipif mysql # not compatible
query I rowsort label-3612
SELECT + - 24 + - COALESCE ( ( - + CASE + 27 WHEN 49 * - + 26 * + + 92 THEN NULL ELSE + CASE + CASE - COALESCE ( 65, - 71, - + 84 ) WHEN 93 THEN + 64 END WHEN - 9 * NULLIF ( - COUNT ( * ), - 19 * 87 ) THEN NULL WHEN + 95 + COUNT ( * ) * 26 THEN + COALESCE ( + 46, 21 + - NULLIF ( + 24, + CAST ( 3 AS INTEGER ) - 10 / - 42 ), + 43 + + 40 ) + COUNT ( * ) / + ( - 88 ) END + - 4 END ), 61 - - 74 ) * 87
----
-11769

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3613
SELECT - 43 + - - COUNT( DISTINCT - 46 ) DIV + 5 col0
----
-43

skipif mysql # not compatible
query I rowsort label-3613
SELECT - 43 + - - COUNT ( DISTINCT - 46 ) / + 5 col0
----
-43

query I rowsort
SELECT 69 * - - 91 - - 97 + 69 AS col2
----
6445

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - CASE - 73 WHEN + + COUNT( * ) * 69 THEN NULL ELSE + ( 15 ) END + - 24 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-3615
SELECT - CASE - 73 WHEN + + COUNT ( * ) * 69 THEN NULL ELSE + ( 15 ) END + - 24 AS col0
----
-39

query I rowsort
SELECT ALL + - 0 * + ( - + ( 73 ) ) AS col2
----
0

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

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

query I rowsort
SELECT DISTINCT + 78 * - 52
----
-4056

query II rowsort
SELECT ALL + + ( 24 ), 12 AS col1
----
24
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3620
SELECT CAST( NULL AS SIGNED ) * + 75 / + 62 + + + 54 / - - COALESCE ( - - NULLIF ( - + CAST( - + 72 AS SIGNED ), - 26 * - + ( 35 ) + 25 ), - - COUNT( * ) ) + + 75 * 86 + + - COUNT( * ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT CAST ( NULL AS INTEGER ) * + 75 / + 62 + + + 54 / - - COALESCE ( - - NULLIF ( - + CAST ( - + 72 AS INTEGER ), - 26 * - + ( 35 ) + 25 ), - - COUNT ( * ) ) + + 75 * 86 + + - COUNT ( * ) + - 99
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3621
SELECT - - 17 * - NULLIF ( 76, - SUM( 97 ) * + COUNT( * ) * + 90 + 58 - - 54 ) * + CAST( + ( 66 ) AS SIGNED )
----
-85272

skipif mysql # not compatible
query I rowsort label-3621
SELECT - - 17 * - NULLIF ( 76, - SUM ( 97 ) * + COUNT ( * ) * + 90 + 58 - - 54 ) * + CAST ( + ( 66 ) AS INTEGER )
----
-85272

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT + - COUNT( * ) * 94 - - 91 + - - COALESCE ( 61, 61 ) + - 95 + - COUNT( * ) * + 75 AS col2
----
-112

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + - COUNT ( * ) * 94 - - 91 + - - COALESCE ( 61, 61 ) + - 95 + - COUNT ( * ) * + 75 AS col2
----
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL ( + - MAX( DISTINCT 70 ) ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL ( + - MAX ( DISTINCT 70 ) ) col1
----
-70

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

skipif mysql # not compatible
query II rowsort label-3624
SELECT COUNT ( * ) AS col0, 32 AS col1
----
1
32

query I rowsort
SELECT + 97 + + 97 AS col1
----
194

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

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

query I rowsort
SELECT ALL - 67 * 0 * 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT + MAX( - + 63 ) + 70 + - - 23
----
30

skipif mysql # not compatible
query I rowsort label-3628
SELECT + MAX ( - + 63 ) + 70 + - - 23
----
30

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

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

query I rowsort
SELECT - 61 * 64 * + 70 * + 21
----
-5738880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3631
SELECT DISTINCT ( - + NULLIF ( 98, - NULLIF ( - 51, COUNT( * ) * + CAST( + - ( 72 ) AS SIGNED ) ) ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3631
SELECT DISTINCT ( - + NULLIF ( 98, - NULLIF ( - 51, COUNT ( * ) * + CAST ( + - ( 72 ) AS INTEGER ) ) ) ) AS col1
----
-98

query I rowsort
SELECT ALL - ( - 29 ) * + + 46 AS col2
----
1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3633
SELECT - CASE 63 WHEN - COALESCE ( - CASE 95 WHEN 94 * - 59 * + COUNT( * ) * - 29 + - - COUNT( * ) THEN NULL WHEN + + 19 THEN - + CASE 41 WHEN 94 * + - 88 THEN NULL WHEN - CAST( - - COALESCE ( 40, 14 ) AS SIGNED ) * 99 + COUNT( * ) THEN - 29 ELSE 32 + CASE - COUNT( * ) WHEN 19 * 16 THEN - 25 / - 61 + - 54 ELSE NULL END * - 80 END / 21 END, + 59 * 47 ) * 30 - - 95 THEN AVG ( ALL - 50 ) * 88 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3633
SELECT - CASE 63 WHEN - COALESCE ( - CASE 95 WHEN 94 * - 59 * + COUNT ( * ) * - 29 + - - COUNT ( * ) THEN NULL WHEN + + 19 THEN - + CASE 41 WHEN 94 * + - 88 THEN NULL WHEN - CAST ( - - COALESCE ( 40, 14 ) AS INTEGER ) * 99 + COUNT ( * ) THEN - 29 ELSE 32 + CASE - COUNT ( * ) WHEN 19 * 16 THEN - 25 / - 61 + - 54 ELSE NULL END * - 80 END / 21 END, + 59 * 47 ) * 30 - - 95 THEN AVG ( ALL - 50 ) * 88 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT ALL CAST( + + CASE - - COUNT( - 24 ) WHEN - + MIN( - 73 ) * - - 47 THEN NULL ELSE + + 82 END AS SIGNED ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-3634
SELECT ALL CAST ( + + CASE - - COUNT ( - 24 ) WHEN - + MIN ( - 73 ) * - - 47 THEN NULL ELSE + + 82 END AS INTEGER ) AS col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT DISTINCT - 49 + + COALESCE ( - - 78, - 29 ) + + + 79 + MAX( DISTINCT 33 ) AS col1
----
141

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT - 49 + + COALESCE ( - - 78, - 29 ) + + + 79 + MAX ( DISTINCT 33 ) AS col1
----
141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3636
SELECT DISTINCT + ( + MIN( ALL - 72 ) ) + 5 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT + ( + MIN ( ALL - 72 ) ) + 5 - CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT ALL MAX( 28 ) + ( 43 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL MAX ( 28 ) + ( 43 ) AS col0
----
71

query II rowsort
SELECT 41 AS col1, + COALESCE ( + 64, - 20 + - 17 + 27 * - ( - - 42 ) ) AS col1
----
41
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT - COUNT( * ) + - + 50 + - MIN( - + 33 )
----
-18

skipif mysql # not compatible
query I rowsort label-3640
SELECT - COUNT ( * ) + - + 50 + - MIN ( - + 33 )
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-3641
SELECT ALL 7 DIV - 2
----
-3

skipif mysql # not compatible
query I rowsort label-3641
SELECT ALL 7 / - 2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT + 12 + - 64 - NULLIF ( - - 33, 76 * - + MIN( + 52 ) + + 66 * 14 ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 12 + - 64 - NULLIF ( - - 33, 76 * - + MIN ( + 52 ) + + 66 * 14 ) AS col2
----
-85

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

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

query I rowsort
SELECT + + 14 + + 78 AS col0
----
92

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

skipif mysql # not compatible
query I rowsort label-3645
SELECT + MAX ( + 46 )
----
46

query I rowsort
SELECT DISTINCT 12 * + 25 AS col0
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT ALL 28 DIV - COUNT( * ) - + 10 * - 71
----
682

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL 28 / - COUNT ( * ) - + 10 * - 71
----
682

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT + COUNT( * ) * 27 + + ( - + ( - + ( 37 ) ) ) AS col1, 9
----
64
9

skipif mysql # not compatible
query II rowsort label-3648
SELECT + COUNT ( * ) * 27 + + ( - + ( - + ( 37 ) ) ) AS col1, 9
----
64
9

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

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

query I rowsort
SELECT + + 95 * + 79
----
7505

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3652
SELECT CAST( + + 96 AS SIGNED ) DIV + 47 + - + 26 DIV + 42 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3652
SELECT CAST ( + + 96 AS INTEGER ) / + 47 + - + 26 / + 42 AS col1
----
2

query II rowsort
SELECT DISTINCT + + 53 AS col2, 43 AS col2
----
53
43

query I rowsort
SELECT + 40 * + 1
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-3655
SELECT ALL + + 80, - MAX( DISTINCT + + 1 ) + + SUM( ALL + - 68 ) AS col1
----
80
-69

skipif mysql # not compatible
query II rowsort label-3655
SELECT ALL + + 80, - MAX ( DISTINCT + + 1 ) + + SUM ( ALL + - 68 ) AS col1
----
80
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3656
SELECT + - CASE + + 15 WHEN + 87 / - + 43 * + 27 THEN NULL WHEN MAX( ALL + - 90 ) * - COUNT( * ) + 76 + - + COUNT( * ) * + 45 + + NULLIF ( - 73, COUNT( * ) - + 17 ) * + + CASE ( + CASE + AVG ( DISTINCT 58 ) WHEN 34 THEN - 60 ELSE NULL END ) WHEN + CAST( NULL AS SIGNED ) * + COUNT( 20 ) THEN 94 * + CAST( COUNT( 52 ) AS SIGNED ) END THEN NULL ELSE 45 END col0
----
-45

skipif mysql # not compatible
query I rowsort label-3656
SELECT + - CASE + + 15 WHEN + 87 / - + 43 * + 27 THEN NULL WHEN MAX ( ALL + - 90 ) * - COUNT ( * ) + 76 + - + COUNT ( * ) * + 45 + + NULLIF ( - 73, COUNT ( * ) - + 17 ) * + + CASE ( + CASE + AVG ( DISTINCT 58 ) WHEN 34 THEN - 60 ELSE NULL END ) WHEN + CAST ( NULL AS INTEGER ) * + COUNT ( 20 ) THEN 94 * + CAST ( COUNT ( 52 ) AS INTEGER ) END THEN NULL ELSE 45 END col0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), 98 * + 66 + + + 72 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), 98 * + 66 + + + 72 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3658
SELECT CASE ( 84 ) WHEN - + 46 * 17 * 48 * - 64 THEN NULL ELSE + CAST( NULL AS SIGNED ) * + + 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3658
SELECT CASE ( 84 ) WHEN - + 46 * 17 * 48 * - 64 THEN NULL ELSE + CAST ( NULL AS INTEGER ) * + + 17 END AS col2
----
NULL

query I rowsort
SELECT DISTINCT NULLIF ( 67, + 21 ) + - - 7 * + 3 AS col2
----
88

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3661
SELECT + COUNT( * ), 26 * COUNT( * ) * - 89 + CAST( - - 53 AS SIGNED ) * COUNT( * ) AS col1
----
1
-2261

skipif mysql # not compatible
query II rowsort label-3661
SELECT + COUNT ( * ), 26 * COUNT ( * ) * - 89 + CAST ( - - 53 AS INTEGER ) * COUNT ( * ) AS col1
----
1
-2261

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT ALL - SUM( DISTINCT 5 ) + NULLIF ( 13, + - 54 + 30 / + COUNT( * ) ) - 34 * - 39
----
1334

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL - SUM ( DISTINCT 5 ) + NULLIF ( 13, + - 54 + 30 / + COUNT ( * ) ) - 34 * - 39
----
1334

query II rowsort
SELECT + 50, - 82 AS col2
----
50
-82

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

skipif mysql # not compatible
query I rowsort label-3664
SELECT 37 - + CAST ( NULL AS INTEGER ) + - + ( - - 56 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT ALL + 35 * 2 DIV - + 15
----
-4

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL + 35 * 2 / - + 15
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3666
SELECT 25 DIV + - CASE 99 WHEN + 76 THEN + + 74 + + COUNT( * ) ELSE + - 5 + - 53 END
----
0

skipif mysql # not compatible
query I rowsort label-3666
SELECT 25 / + - CASE 99 WHEN + 76 THEN + + 74 + + COUNT ( * ) ELSE + - 5 + - 53 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ALL - MIN( ALL + - 56 ) + - 15 + 84 * 39 + - 18 - + 17 * 93 + - 5
----
1713

skipif mysql # not compatible
query I rowsort label-3667
SELECT ALL - MIN ( ALL + - 56 ) + - 15 + 84 * 39 + - 18 - + 17 * 93 + - 5
----
1713

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 41 - + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-3668
SELECT 41 - + COUNT ( * ) AS col0
----
40

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

skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - ( + 98 ) + + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT 22 * ( - 6 )
----
-132

query I rowsort
SELECT ALL - 45 + 66 AS col0
----
21

query I rowsort
SELECT 41 + 19 * - 57 col2
----
-1042

query I rowsort
SELECT DISTINCT - 18 * 81
----
-1458

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT 50 + + 96 * - COUNT( * ) * 46 AS col2
----
-4366

skipif mysql # not compatible
query I rowsort label-3674
SELECT 50 + + 96 * - COUNT ( * ) * 46 AS col2
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT SUM( + 32 ) - + 52 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-3675
SELECT SUM ( + 32 ) - + 52 AS col1
----
-20

query I rowsort
SELECT DISTINCT 1 * + ( - 58 ) * + 4 AS col1
----
-232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + 19 * - 6 * + - COUNT( DISTINCT - - 43 )
----
114

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + 19 * - 6 * + - COUNT ( DISTINCT - - 43 )
----
114

query I rowsort
SELECT 75 * 71 col2
----
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT DISTINCT SUM( ALL 61 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT SUM ( ALL 61 ) AS col1
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT 65 - + 39 DIV 97
----
65

skipif mysql # not compatible
query I rowsort label-3681
SELECT 65 - + 39 / 97
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3682
SELECT 80 * - CAST( + 29 AS SIGNED ) AS col2
----
-2320

skipif mysql # not compatible
query I rowsort label-3682
SELECT 80 * - CAST ( + 29 AS INTEGER ) AS col2
----
-2320

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT 24 * - + COUNT( * ) * + 44
----
-1056

skipif mysql # not compatible
query I rowsort label-3683
SELECT 24 * - + COUNT ( * ) * + 44
----
-1056

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3685
SELECT COALESCE ( + 68, + 70 ) - - 64, + COUNT( * ) AS col1
----
132
1

skipif mysql # not compatible
query II rowsort label-3685
SELECT COALESCE ( + 68, + 70 ) - - 64, + COUNT ( * ) AS col1
----
132
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT ( - 58 ) * + - 39 * - + CAST( NULL AS SIGNED ) / + AVG ( ALL + - 36 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT ( - 58 ) * + - 39 * - + CAST ( NULL AS INTEGER ) / + AVG ( ALL + - 36 ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT 34 - - COUNT( * )
----
35

skipif mysql # not compatible
query I rowsort label-3687
SELECT 34 - - COUNT ( * )
----
35

query I rowsort
SELECT ALL - + 33 + + 71 AS col0
----
38

query I rowsort
SELECT DISTINCT + 19 + + + 5 * + 65 AS col1
----
344

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3691
SELECT ALL 30 + + ( - 72 ) - + SUM( ALL - - ( 56 ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3691
SELECT ALL 30 + + ( - 72 ) - + SUM ( ALL - - ( 56 ) ) AS col1
----
-98

query I rowsort
SELECT 72 * - 16
----
-1152

query I rowsort
SELECT DISTINCT - 95 * 2 * + COALESCE ( - 41, 82 ) AS col1
----
7790

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT ALL 57 + + - 18 + - 98 DIV 13 * - 42
----
333

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 57 + + - 18 + - 98 / 13 * - 42
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT COUNT( * ) - + 25 + 70 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-3695
SELECT COUNT ( * ) - + 25 + 70 AS col1
----
46

query I rowsort
SELECT ALL 71 + 18 * + 31 + - + 44 - 56 * 70 AS col1
----
-3335

query I rowsort
SELECT + - 76 * - + 54 * - 28 + - ( + 27 ) - 28 AS col0
----
-114967

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

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

query I rowsort
SELECT ALL - ( - 55 ) + + ( 36 )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3700
SELECT DISTINCT - MAX( + + CAST( - + 12 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-3700
SELECT DISTINCT - MAX ( + + CAST ( - + 12 AS INTEGER ) )
----
12

query I rowsort
SELECT DISTINCT 2 + 9 * 25 * + 40 AS col1
----
9002

query I rowsort
SELECT ALL + 4 * 12 AS col0
----
48

query I rowsort
SELECT ALL 37 + + 17 AS col0
----
54

query I rowsort
SELECT ALL + 4 * + 11 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT + 86 * + SUM( ALL - NULLIF ( + 30, - 92 ) )
----
-2580

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT + 86 * + SUM ( ALL - NULLIF ( + 30, - 92 ) )
----
-2580

query I rowsort
SELECT DISTINCT - 32 - + 90
----
-122

query I rowsort
SELECT ALL - 14 - - NULLIF ( - 19, + + 54 + + - 96 ) - + - 90
----
57

onlyif mysql # DIV for integer division: 
query II rowsort label-3708
SELECT ALL - 41 DIV - ( 25 ) AS col0, - 92 * - ( - + 34 ) AS col1
----
1
-3128

skipif mysql # not compatible
query II rowsort label-3708
SELECT ALL - 41 / - ( 25 ) AS col0, - 92 * - ( - + 34 ) AS col1
----
1
-3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3709
SELECT 82 + - COUNT( ALL + + CAST( + - 99 AS SIGNED ) )
----
81

skipif mysql # not compatible
query I rowsort label-3709
SELECT 82 + - COUNT ( ALL + + CAST ( + - 99 AS INTEGER ) )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3710
SELECT COUNT( - - 95 ) + - 29 + - + 41 * ( - 72 ) AS col1
----
2924

skipif mysql # not compatible
query I rowsort label-3710
SELECT COUNT ( - - 95 ) + - 29 + - + 41 * ( - 72 ) AS col1
----
2924

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT - ( + 91 ) - CASE 72 WHEN + COUNT( * ) THEN NULL WHEN + 36 THEN 13 END + - COUNT( * ) * - 4 + + MAX( - - 26 ) - + + 98 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT - ( + 91 ) - CASE 72 WHEN + COUNT ( * ) THEN NULL WHEN + 36 THEN 13 END + - COUNT ( * ) * - 4 + + MAX ( - - 26 ) - + + 98 col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3712
SELECT CAST( NULL AS DECIMAL ) + + 68 + - + 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT CAST ( NULL AS REAL ) + + 68 + - + 89 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 51 * + 87 AS col1
----
4437

query I rowsort
SELECT ALL - - ( + 15 ) + - 83
----
-68

query I rowsort
SELECT DISTINCT COALESCE ( + 44, + ( - - ( 75 ) ) )
----
44

query I rowsort
SELECT DISTINCT + 90 * + 27 * - 60 col2
----
-145800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3717
SELECT ALL - - CAST( NULL AS SIGNED ) * - 6 + - 36 + - + 75 + + 94, 24 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-3717
SELECT ALL - - CAST ( NULL AS INTEGER ) * - 6 + - 36 + - + 75 + + 94, 24 AS col2
----
NULL
24

query I rowsort
SELECT ALL + 58 * - 27 + + + 97 + 64 + + 40 + + 12 * 67 * + - 14
----
-12621

query I rowsort
SELECT ALL + 57 * 27 * + - 16
----
-24624

query I rowsort
SELECT - + 35 * + ( 60 ) * 53 * + - 56 * - - 9
----
56095200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3721
SELECT ALL - 44 * + COUNT( * ) + - 16 - + SUM( CAST( NULL AS SIGNED ) ) * - CAST( 49 AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - 44 * + COUNT ( * ) + - 16 - + SUM ( CAST ( NULL AS INTEGER ) ) * - CAST ( 49 AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3722
SELECT DISTINCT + 8 * + - CAST( NULL AS SIGNED ) + + 3 + CAST( - - 79 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3722
SELECT DISTINCT + 8 * + - CAST ( NULL AS INTEGER ) + + 3 + CAST ( - - 79 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT + MAX( ALL - 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-3723
SELECT + MAX ( ALL - 25 ) col1
----
-25

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

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL - COUNT ( * ) / 21 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + COUNT( * ) * - + 78 * + 65 * + 45 AS col1
----
-228150

skipif mysql # not compatible
query I rowsort label-3725
SELECT + COUNT ( * ) * - + 78 * + 65 * + 45 AS col1
----
-228150

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT ALL - 47 * - 39 - - SUM( ALL + 43 ) col0
----
1876

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL - 47 * - 39 - - SUM ( ALL + 43 ) col0
----
1876

query I rowsort
SELECT DISTINCT ( - 93 ) * 40
----
-3720

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

query II rowsort
SELECT ALL + 2, 74 AS col2
----
2
74

query I rowsort
SELECT ALL 90 * - 35 AS col1
----
-3150

query I rowsort
SELECT + ( + 89 ) * - + 99 + - - 96 AS col0
----
-8715

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3734
SELECT ALL MAX( DISTINCT 27 )
----
27

skipif mysql # not compatible
query I rowsort label-3734
SELECT ALL MAX ( DISTINCT 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT + COUNT( * ) - ( - 93 ) + - - 83 + 75 + + NULLIF ( 39, + NULLIF ( CASE ( COALESCE ( + COUNT( * ), COALESCE ( + 24, - 19 / + - MAX( ALL + 91 ) * + + 78 ), - 22 * + - 48 ) ) WHEN + 0 * + 51 + - 6 THEN - 97 + - ( - COUNT( * ) ) * COUNT( + 24 ) END, 63 ) + 29 * + ( + NULLIF ( + 0, MIN( DISTINCT 88 ) * 73 ) ) ) col1
----
291

skipif mysql # not compatible
query I rowsort label-3735
SELECT + COUNT ( * ) - ( - 93 ) + - - 83 + 75 + + NULLIF ( 39, + NULLIF ( CASE ( COALESCE ( + COUNT ( * ), COALESCE ( + 24, - 19 / + - MAX ( ALL + 91 ) * + + 78 ), - 22 * + - 48 ) ) WHEN + 0 * + 51 + - 6 THEN - 97 + - ( - COUNT ( * ) ) * COUNT ( + 24 ) END, 63 ) + 29 * + ( + NULLIF ( + 0, MIN ( DISTINCT 88 ) * 73 ) ) ) col1
----
291

query I rowsort
SELECT + 30 * - 55
----
-1650

query I rowsort
SELECT - 36 * - 22
----
792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3738
SELECT ALL 41 DIV + + SUM( + CAST( 24 AS SIGNED ) ) * + ( - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL 41 / + + SUM ( + CAST ( 24 AS INTEGER ) ) * + ( - COUNT ( * ) ) AS col1
----
-1

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

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

query II rowsort
SELECT - 0, 14 + + 75 - - 3 AS col2
----
0
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT + - COALESCE ( 94, + 10 ) + + COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-3741
SELECT + - COALESCE ( 94, + 10 ) + + COUNT ( * )
----
-93

query I rowsort
SELECT - 49 + + 32 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT - + 21 * 34 + + + MIN( DISTINCT 4 ) * 13
----
-662

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - + 21 * 34 + + + MIN ( DISTINCT 4 ) * 13
----
-662

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3744
SELECT DISTINCT + AVG ( + CAST( NULL AS SIGNED ) ) * 57 / SUM( ALL 82 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT + AVG ( + CAST ( NULL AS INTEGER ) ) * 57 / SUM ( ALL 82 ) AS col2
----
NULL

query I rowsort
SELECT ALL 67 + 48 + - ( - 71 ) * - - 0 * + + 17 + 77
----
192

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT - + 86, - 32 + - - 60 + NULLIF ( - 96, - COUNT( - 71 ) + 23 ) AS col0
----
-86
-68

skipif mysql # not compatible
query II rowsort label-3746
SELECT - + 86, - 32 + - - 60 + NULLIF ( - 96, - COUNT ( - 71 ) + 23 ) AS col0
----
-86
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - + 25 * 67 + + 53 + 42 + + - NULLIF ( + COALESCE ( - 48, - 42 ), - 54 + 70 * COUNT( * ) * + ( + 91 ) + + COUNT( 87 ) )
----
-1532

skipif mysql # not compatible
query I rowsort label-3748
SELECT - + 25 * 67 + + 53 + 42 + + - NULLIF ( + COALESCE ( - 48, - 42 ), - 54 + 70 * COUNT ( * ) * + ( + 91 ) + + COUNT ( 87 ) )
----
-1532

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3750
SELECT - - 50 * + - 39 * - 33 + - 8 DIV + 26 AS col0
----
64350

skipif mysql # not compatible
query I rowsort label-3750
SELECT - - 50 * + - 39 * - 33 + - 8 / + 26 AS col0
----
64350

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - COUNT( * ) + - CASE - 77 WHEN 32 THEN NULL WHEN + MAX( DISTINCT - - 56 ) THEN + 13 / + - 47 / - 80 * + NULLIF ( + 14, + COUNT( * ) ) END + + + 33 / 34 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-3751
SELECT - COUNT ( * ) + - CASE - 77 WHEN 32 THEN NULL WHEN + MAX ( DISTINCT - - 56 ) THEN + 13 / + - 47 / - 80 * + NULLIF ( + 14, + COUNT ( * ) ) END + + + 33 / 34 + - 61
----
NULL

query I rowsort
SELECT ALL - + 54 + - - 99 * 32 AS col2
----
3114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - + MIN( 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-3754
SELECT - + MIN ( 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3755
SELECT ALL COALESCE ( - 10, - - COUNT( * ) * 32 )
----
-10

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL COALESCE ( - 10, - - COUNT ( * ) * 32 )
----
-10

query I rowsort
SELECT - 96 + ( + - 84 ) * + - 93 AS col1
----
7716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT ALL + 11 DIV 21 * - COUNT( * ) + + + 59 * - 24 AS col2
----
-1416

skipif mysql # not compatible
query I rowsort label-3757
SELECT ALL + 11 / 21 * - COUNT ( * ) + + + 59 * - 24 AS col2
----
-1416

query II rowsort
SELECT + + 35, + 50 AS col0
----
35
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3759
SELECT DISTINCT - COUNT( * ) * + NULLIF ( 50, 0 ) * + 9 * + 98 col2, 83
----
-44100
83

skipif mysql # not compatible
query II rowsort label-3759
SELECT DISTINCT - COUNT ( * ) * + NULLIF ( 50, 0 ) * + 9 * + 98 col2, 83
----
-44100
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3760
SELECT DISTINCT - 17 DIV - 49 - + + 16
----
-16

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - 17 / - 49 - + + 16
----
-16

query I rowsort
SELECT ALL - 22 * - 26
----
572

query I rowsort
SELECT - 32 - + - 99 * + 86
----
8482

query II rowsort
SELECT - 44 * + + 64 * ( + - ( - 83 ) ) AS col2, 78
----
-233728
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3764
SELECT ALL + CASE + - 39 WHEN - 22 THEN - MIN( DISTINCT COALESCE ( - + 98, - - 40 ) ) WHEN + 80 + + 14 + + - 10 * + 4 - - ( - + 88 ) * + NULLIF ( 13, - - CASE + + 41 WHEN - 27 THEN + 93 * + 94 + + CAST( NULL AS SIGNED ) + 20 WHEN + ( 92 ) + 89 THEN NULL ELSE 79 END ) * 15 THEN NULL WHEN + ( 52 ) THEN 98 ELSE 49 END
----
49

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL + CASE + - 39 WHEN - 22 THEN - MIN ( DISTINCT COALESCE ( - + 98, - - 40 ) ) WHEN + 80 + + 14 + + - 10 * + 4 - - ( - + 88 ) * + NULLIF ( 13, - - CASE + + 41 WHEN - 27 THEN + 93 * + 94 + + CAST ( NULL AS INTEGER ) + 20 WHEN + ( 92 ) + 89 THEN NULL ELSE 79 END ) * 15 THEN NULL WHEN + ( 52 ) THEN 98 ELSE 49 END
----
49

query I rowsort
SELECT - 99 * + + 38 + 71 AS col0
----
-3691

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + 85 * 57 * COUNT( * ) AS col0
----
4845

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 85 * 57 * COUNT ( * ) AS col0
----
4845

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT 13 * - COUNT( * ) - - 5 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-3768
SELECT 13 * - COUNT ( * ) - - 5 AS col2
----
-8

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

query I rowsort
SELECT DISTINCT 78 * 33
----
2574

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT DISTINCT - 69 DIV + 98
----
0

skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - 69 / + 98
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3772
SELECT DISTINCT - 60 DIV 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - 60 / 63 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT ALL COUNT( * ) * + 69 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-3774
SELECT ALL COUNT ( * ) * + 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL 91 * + COUNT( * ) + + - 74 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 91 * + COUNT ( * ) + + - 74 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT MIN( 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3776
SELECT MIN ( 26 )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT + COALESCE ( - COUNT( * ), + 38 ) + - 68
----
-69

skipif mysql # not compatible
query I rowsort label-3777
SELECT + COALESCE ( - COUNT ( * ), + 38 ) + - 68
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3778
SELECT DISTINCT 89 * - 77 * NULLIF ( - COUNT( * ), + + 91 ) + - ( + - 67 ) AS col1, 21
----
6920
21

skipif mysql # not compatible
query II rowsort label-3778
SELECT DISTINCT 89 * - 77 * NULLIF ( - COUNT ( * ), + + 91 ) + - ( + - 67 ) AS col1, 21
----
6920
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + COUNT( * ) * COUNT( * ) * - COUNT( * ) + + SUM( ALL - + 69 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) + + SUM ( ALL - + 69 ) AS col0
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-3780
SELECT DISTINCT - COALESCE ( - + 93, + 86 - + ( + 97 ) ) * + - 25 * 42 DIV 10 + 96 AS col1
----
-9669

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - COALESCE ( - + 93, + 86 - + ( + 97 ) ) * + - 25 * 42 / 10 + 96 AS col1
----
-9669

query II rowsort
SELECT ALL - 60 + + 81 AS col2, 17
----
21
17

query I rowsort
SELECT ALL 35 + 24
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT - NULLIF ( + + SUM( + + ( + - 28 ) ), + 66 * 83 / - + 21 )
----
28

skipif mysql # not compatible
query I rowsort label-3783
SELECT - NULLIF ( + + SUM ( + + ( + - 28 ) ), + 66 * 83 / - + 21 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3784
SELECT COALESCE ( + 57, - 72 + COUNT( * ) + - - 67 + + 41 * + 51 DIV + - 10, + - 37 )
----
57

skipif mysql # not compatible
query I rowsort label-3784
SELECT COALESCE ( + 57, - 72 + COUNT ( * ) + - - 67 + + 41 * + 51 / + - 10, + - 37 )
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT - 80 + + - COUNT( * ) + 20
----
-61

skipif mysql # not compatible
query I rowsort label-3785
SELECT - 80 + + - COUNT ( * ) + 20
----
-61

query I rowsort
SELECT 55 - 64 AS col1
----
-9

query I rowsort
SELECT 57 + - 78 * 36 col0
----
-2751

query I rowsort
SELECT ALL + 38 - + 74 + + + 2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3789
SELECT ALL - MAX( - 31 ) - - 90 * - - 13 AS col0
----
1201

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL - MAX ( - 31 ) - - 90 * - - 13 AS col0
----
1201

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3791
SELECT + CAST( NULL AS SIGNED ) + 85 - + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT + CAST ( NULL AS INTEGER ) + 85 - + - 90 AS col2
----
NULL

query I rowsort
SELECT + 43 * - 6 + 15 col0
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT 14 DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3793
SELECT 14 / + 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT DISTINCT - MIN( ALL - 46 ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - MIN ( ALL - 46 ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3795
SELECT DISTINCT + CAST( + CASE - 41 WHEN + COUNT( * ) THEN - - 27 WHEN 27 THEN + 30 ELSE + 0 END AS SIGNED ) - + 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + CAST ( + CASE - 41 WHEN + COUNT ( * ) THEN - - 27 WHEN 27 THEN + 30 ELSE + 0 END AS INTEGER ) - + 31 AS col0
----
-31

query I rowsort
SELECT 70 * + + 24
----
1680

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT 76 + - 38 + - COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-3797
SELECT 76 + - 38 + - COUNT ( * )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT ALL - NULLIF ( - MIN( - - 98 ), - - 33 * + - 11 + - 20 ) AS col2
----
98

skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL - NULLIF ( - MIN ( - - 98 ), - - 33 * + - 11 + - 20 ) AS col2
----
98

query II rowsort
SELECT DISTINCT - 83, - 21 AS col2
----
-83
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3800
SELECT ALL - 86 AS col0, - 58 - + CAST( + 88 AS SIGNED ) + + - 2 - + 68 * + 12
----
-86
-964

skipif mysql # not compatible
query II rowsort label-3800
SELECT ALL - 86 AS col0, - 58 - + CAST ( + 88 AS INTEGER ) + + - 2 - + 68 * + 12
----
-86
-964

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

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

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

query I rowsort
SELECT ALL - 55 * - 23 AS col0
----
1265

query I rowsort
SELECT ALL - 82 * + 83 AS col1
----
-6806

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT 95 * + ( - - 77 ) * + SUM( DISTINCT - 10 ) * + 39 - - - 30
----
-2852880

skipif mysql # not compatible
query I rowsort label-3805
SELECT 95 * + ( - - 77 ) * + SUM ( DISTINCT - 10 ) * + 39 - - - 30
----
-2852880

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT 66 - - CAST( - ( - 15 ) AS SIGNED ) + - 51
----
30

skipif mysql # not compatible
query I rowsort label-3806
SELECT 66 - - CAST ( - ( - 15 ) AS INTEGER ) + - 51
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT 75 - - COUNT( * ) * - ( - 83 )
----
158

skipif mysql # not compatible
query I rowsort label-3807
SELECT 75 - - COUNT ( * ) * - ( - 83 )
----
158

query I rowsort
SELECT ALL + 29 + 97 - + 48 * - 29
----
1518

query I rowsort
SELECT 85 * + + 23 AS col0
----
1955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT ALL + 56 + + COUNT( * ) * + 66 * MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) * MIN( - 75 ) * - - 56 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + 56 + + COUNT ( * ) * + 66 * MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) * MIN ( - 75 ) * - - 56 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT ALL + 5 + 4 + - + 84 + - 2 DIV 95
----
-75

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL + 5 + 4 + - + 84 + - 2 / 95
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3812
SELECT ALL - 30 + COUNT( * ) + MIN( ( + 73 ) ) * + - 79 + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) * CAST( - + 28 AS SIGNED ) * - 19 + + 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL - 30 + COUNT ( * ) + MIN ( ( + 73 ) ) * + - 79 + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * CAST ( - + 28 AS INTEGER ) * - 19 + + 4 AS col0
----
NULL

query I rowsort
SELECT + 89 - 45 AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3814
SELECT ALL + 19 DIV + - SUM( DISTINCT + + 14 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL + 19 / + - SUM ( DISTINCT + + 14 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3815
SELECT 30 AS col1, ( - - 43 ) + 60 + - + ( - + ( - SUM( DISTINCT - 13 ) ) ) + - 48 * + 88 * - - 75 + - 42
----
30
-316726

skipif mysql # not compatible
query II rowsort label-3815
SELECT 30 AS col1, ( - - 43 ) + 60 + - + ( - + ( - SUM ( DISTINCT - 13 ) ) ) + - 48 * + 88 * - - 75 + - 42
----
30
-316726

query I rowsort
SELECT ALL 85 + - - 78
----
163

query I rowsort
SELECT ALL - 78 * + 55 * - 65
----
278850

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT ALL - COUNT( DISTINCT + 73 ) * 27 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3818
SELECT ALL - COUNT ( DISTINCT + 73 ) * 27 AS col1
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-3819
SELECT + 5 * 92 DIV - 96 AS col0, + 39 * - COALESCE ( 62, - - 3, - + 65, 17 )
----
-4
-2418

skipif mysql # not compatible
query II rowsort label-3819
SELECT + 5 * 92 / - 96 AS col0, + 39 * - COALESCE ( 62, - - 3, - + 65, 17 )
----
-4
-2418

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT ALL COUNT( + 40 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL COUNT ( + 40 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3822
SELECT DISTINCT 32 * + + 73 AS col0, + NULLIF ( + 39, + + SUM( ALL + - 19 ) - 65 + + + 9 )
----
2336
39

skipif mysql # not compatible
query II rowsort label-3822
SELECT DISTINCT 32 * + + 73 AS col0, + NULLIF ( + 39, + + SUM ( ALL + - 19 ) - 65 + + + 9 )
----
2336
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3823
SELECT 79 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-3823
SELECT 79 / + 53
----
1

query I rowsort
SELECT ALL 67 * + 74 AS col2
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT CASE - CASE + + COUNT( * ) WHEN + 77 THEN + 0 - ( - - 94 ) + 9 END WHEN + + COUNT( * ) + - MAX( DISTINCT + + 15 ) THEN 38 ELSE NULL END + - 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3825
SELECT CASE - CASE + + COUNT ( * ) WHEN + 77 THEN + 0 - ( - - 94 ) + 9 END WHEN + + COUNT ( * ) + - MAX ( DISTINCT + + 15 ) THEN 38 ELSE NULL END + - 82 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3826
SELECT ( 91 ) DIV - + 36 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3826
SELECT ( 91 ) / - + 36 AS col0
----
-2

query I rowsort
SELECT ALL 31 * + 16 AS col1
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT + COUNT( * ) * 44 - + 91 * + 97 * COUNT( * ) + + 79
----
-8704

skipif mysql # not compatible
query I rowsort label-3828
SELECT + COUNT ( * ) * 44 - + 91 * + 97 * COUNT ( * ) + + 79
----
-8704

query I rowsort
SELECT DISTINCT - COALESCE ( ( + 36 ), 54 * - ( - + 99 ) * - 13 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT 85 + 45 + - ( - - COUNT( - 30 ) ) + ( + + 55 ) + - 17 * - COUNT( * ) * - + 38
----
-462

skipif mysql # not compatible
query I rowsort label-3830
SELECT 85 + 45 + - ( - - COUNT ( - 30 ) ) + ( + + 55 ) + - 17 * - COUNT ( * ) * - + 38
----
-462

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3831
SELECT ALL 40 * 44 + - 40 * COUNT( * ) * + 54 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL 40 * 44 + - 40 * COUNT ( * ) * + 54 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT + 52 * + ( 35 ) + - CAST( NULL AS SIGNED ) + + - 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT + 52 * + ( 35 ) + - CAST ( NULL AS INTEGER ) + + - 87 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT + COALESCE ( 75, - COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3833
SELECT + COALESCE ( 75, - COUNT ( * ) ) AS col1
----
75

query I rowsort
SELECT DISTINCT 8 * 80 + 19 AS col0
----
659

query I rowsort
SELECT DISTINCT - 42 + + 97
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3836
SELECT ALL + COUNT( * ) + - CASE - + COUNT( ALL + 92 ) WHEN - 35 * + + 22 - + COUNT( * ) THEN + + COALESCE ( - 12, - + COUNT( * ) + - 12, 88, + 93 - - COUNT( * ) ) * - 32 ELSE + CAST( NULL AS SIGNED ) - - 57 END AS col2, 27 AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL + COUNT ( * ) + - CASE - + COUNT ( ALL + 92 ) WHEN - 35 * + + 22 - + COUNT ( * ) THEN + + COALESCE ( - 12, - + COUNT ( * ) + - 12, 88, + 93 - - COUNT ( * ) ) * - 32 ELSE + CAST ( NULL AS INTEGER ) - - 57 END AS col2, 27 AS col2
----
NULL
27

query I rowsort
SELECT DISTINCT - 32 + - 70
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL + 74 + + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL + 74 + + COUNT ( * ) AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT + COUNT( * ) * + + ( + 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-3839
SELECT + COUNT ( * ) * + + ( + 88 ) AS col2
----
88

query I rowsort
SELECT - 0 + + - ( - 28 )
----
28

query II rowsort
SELECT - - 77 + 91, ( 94 ) * - - 22 AS col0
----
168
2068

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT - + 13 * + + 68 * + CASE + 4 WHEN 20 THEN NULL ELSE - COUNT( DISTINCT - - 69 ) * - 80 * + COUNT( * ) * + 8 END col1
----
-565760

skipif mysql # not compatible
query I rowsort label-3842
SELECT - + 13 * + + 68 * + CASE + 4 WHEN 20 THEN NULL ELSE - COUNT ( DISTINCT - - 69 ) * - 80 * + COUNT ( * ) * + 8 END col1
----
-565760

query II rowsort
SELECT ( + 3 ) AS col0, - ( + 76 ) * - 96 AS col1
----
3
7296

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - 98 + + + 57 + + + COUNT( ALL - 94 ) + - COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-3844
SELECT - 98 + + + 57 + + + COUNT ( ALL - 94 ) + - COUNT ( * ) AS col0
----
-41

query I rowsort
SELECT - 3 * + - 66 * + 46 AS col1
----
9108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3846
SELECT ALL + - CAST( - 94 AS SIGNED ) * - COUNT( * ) - - 47 * + 28
----
1222

skipif mysql # not compatible
query I rowsort label-3846
SELECT ALL + - CAST ( - 94 AS INTEGER ) * - COUNT ( * ) - - 47 * + 28
----
1222

query I rowsort
SELECT + - 86 + 57 * + 33 AS col2
----
1795

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT + + 11 * + 48 * + COUNT( * ) + - 20 + 65 AS col1
----
573

skipif mysql # not compatible
query I rowsort label-3848
SELECT + + 11 * + 48 * + COUNT ( * ) + - 20 + 65 AS col1
----
573

query II rowsort
SELECT ALL + - 80 * + + 6 AS col0, + ( + - 40 ) AS col0
----
-480
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT - + COUNT( * ) + - + 60
----
-61

skipif mysql # not compatible
query I rowsort label-3850
SELECT - + COUNT ( * ) + - + 60
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL COALESCE ( - COUNT( DISTINCT - 58 ), - 60 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL COALESCE ( - COUNT ( DISTINCT - 58 ), - 60 ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3852
SELECT ALL + COUNT( * ) * + ( - + 98 ) AS col2, COALESCE ( 64, - 99, - + 92 + + ( - + 17 ) ) DIV + + COUNT( * ) + - COUNT( * ) * - 66 AS col1
----
-98
130

skipif mysql # not compatible
query II rowsort label-3852
SELECT ALL + COUNT ( * ) * + ( - + 98 ) AS col2, COALESCE ( 64, - 99, - + 92 + + ( - + 17 ) ) / + + COUNT ( * ) + - COUNT ( * ) * - 66 AS col1
----
-98
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT DISTINCT COALESCE ( - + 49, + 5 + + 29, + COALESCE ( - + MAX( 42 ), + 87 + + + COUNT( * ) * - - 50 ) - + 83 * 42 + - + ( + - 31 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT COALESCE ( - + 49, + 5 + + 29, + COALESCE ( - + MAX ( 42 ), + 87 + + + COUNT ( * ) * - - 50 ) - + 83 * 42 + - + ( + - 31 ) ) AS col1
----
-49

query I rowsort
SELECT ALL 61 + 19
----
80

query I rowsort
SELECT + CASE - - 47 WHEN - 1 THEN 62 ELSE - + 1 END + - 81
----
-82

query I rowsort
SELECT DISTINCT + 82 * + 79
----
6478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3857
SELECT DISTINCT + 73 + - ( 25 ) * 1 + + CAST( + - CAST( - 59 AS SIGNED ) AS SIGNED ) AS col0
----
107

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT + 73 + - ( 25 ) * 1 + + CAST ( + - CAST ( - 59 AS INTEGER ) AS INTEGER ) AS col0
----
107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3858
SELECT ALL 61 DIV 46 DIV 41 + - + CAST( - 49 AS SIGNED ) + - ( 67 ) col1
----
-18

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL 61 / 46 / 41 + - + CAST ( - 49 AS INTEGER ) + - ( 67 ) col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT + MIN( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3859
SELECT + MIN ( + 15 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3860
SELECT ( SUM( + 96 ) ) col0, 15 + + 58 AS col2
----
96
73

skipif mysql # not compatible
query II rowsort label-3860
SELECT ( SUM ( + 96 ) ) col0, 15 + + 58 AS col2
----
96
73

query II rowsort
SELECT + COALESCE ( - 68, 72 ), 55 AS col1
----
-68
55

query I rowsort
SELECT ( - 90 ) AS col1
----
-90

query I rowsort
SELECT ALL 73 * - 54 + + 78 * 78 AS col0
----
2142

query I rowsort
SELECT + COALESCE ( - 37, - 1 * + + 76, - 72 ) AS col0
----
-37

query I rowsort
SELECT + COALESCE ( - 10, - 78 ) AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT ALL - 63 * - NULLIF ( + COUNT( * ), + 43 ) + - 38 + + + 19
----
44

skipif mysql # not compatible
query I rowsort label-3866
SELECT ALL - 63 * - NULLIF ( + COUNT ( * ), + 43 ) + - 38 + + + 19
----
44

query I rowsort
SELECT + 53 * - 86
----
-4558

query II rowsort
SELECT DISTINCT 85 * - 63 + + NULLIF ( - - 98, - - 32 / - + 64 * - 98 + ( 36 ) ) - - 56 AS col1, + 1 AS col2
----
-5201
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3869
SELECT + CASE + ( CAST( NULL AS SIGNED ) ) WHEN + - CAST( - 1 AS DECIMAL ) / ( - - MAX( - + 12 ) ) THEN + 54 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - CAST ( - 1 AS REAL ) / ( - - MAX ( - + 12 ) ) THEN + 54 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3870
SELECT + 6 DIV CAST( COALESCE ( + - CAST( 17 AS SIGNED ), - 66 + - + 43 ) AS SIGNED ) * - 5 + + 41
----
41

skipif mysql # not compatible
query I rowsort label-3870
SELECT + 6 / CAST ( COALESCE ( + - CAST ( 17 AS INTEGER ), - 66 + - + 43 ) AS INTEGER ) * - 5 + + 41
----
41

query I rowsort
SELECT ALL - 52 * + - 4 - - 37
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT + + 97 * + 87 * + 5 + + 89 * + COUNT( * )
----
42284

skipif mysql # not compatible
query I rowsort label-3872
SELECT + + 97 * + 87 * + 5 + + 89 * + COUNT ( * )
----
42284

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3873
SELECT - - ( + + 38 ) * + MIN( 75 ) * - CAST( NULL AS DECIMAL ) / - + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3873
SELECT - - ( + + 38 ) * + MIN ( 75 ) * - CAST ( NULL AS REAL ) / - + 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3874
SELECT + + 99 AS col0, + 7 * + MIN( DISTINCT 89 )
----
99
623

skipif mysql # not compatible
query II rowsort label-3874
SELECT + + 99 AS col0, + 7 * + MIN ( DISTINCT 89 )
----
99
623

query I rowsort
SELECT + - 22 - - - 99 col1
----
-121

query I rowsort
SELECT + + COALESCE ( - + 95, - 74 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT ALL + ( + + 26 ) DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + ( + + 26 ) / + - 46
----
0

query I rowsort
SELECT + + 48 - - - 86
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT - - 42 DIV + ( - - 34 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3879
SELECT - - 42 / + ( - - 34 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3880
SELECT + 46 * ( COALESCE ( - + 35, + - COUNT( * ) ) ) AS col1, NULLIF ( - ( - 14 ), 3 )
----
-1610
14

skipif mysql # not compatible
query II rowsort label-3880
SELECT + 46 * ( COALESCE ( - + 35, + - COUNT ( * ) ) ) AS col1, NULLIF ( - ( - 14 ), 3 )
----
-1610
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3881
SELECT ALL + - CASE COALESCE ( + ( ( - CAST( ( - 42 ) AS DECIMAL ) ) ), - + 95, - 98 ) WHEN - - 89 THEN + 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + - CASE COALESCE ( + ( ( - CAST ( ( - 42 ) AS REAL ) ) ), - + 95, - 98 ) WHEN - - 89 THEN + 44 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL + MAX( ALL 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + MAX ( ALL 45 ) AS col0
----
45

query II rowsort
SELECT DISTINCT + 29 * - - 38 + - 39, + 69 * - 15 AS col1
----
1063
-1035

query I rowsort
SELECT DISTINCT - ( - + 17 ) AS col1
----
17

query I rowsort
SELECT + - 96 * 5
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT - - MAX( - + 40 ) * - - 20
----
-800

skipif mysql # not compatible
query I rowsort label-3886
SELECT - - MAX ( - + 40 ) * - - 20
----
-800

query I rowsort
SELECT - - 41 * 88
----
3608

query I rowsort
SELECT ALL + 44 + - 18 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT ALL + 96 + + + CASE + 20 WHEN + COUNT( * ) * - 3 THEN - + 10 + + COUNT( * ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + 96 + + + CASE + 20 WHEN + COUNT ( * ) * - 3 THEN - + 10 + + COUNT ( * ) ELSE NULL END col2
----
NULL

query II rowsort
SELECT ALL + 59 + + 8 + 66 * - 91, - 90 col0
----
-5939
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT - SUM( - + 90 ) col1
----
90

skipif mysql # not compatible
query I rowsort label-3891
SELECT - SUM ( - + 90 ) col1
----
90

query I rowsort
SELECT ALL + 87 + + 45 - 50 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT - 14 + - + MIN( 19 ) * - 25 * - - 93 * + 89
----
3931561

skipif mysql # not compatible
query I rowsort label-3893
SELECT - 14 + - + MIN ( 19 ) * - 25 * - - 93 * + 89
----
3931561

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT - 20 DIV + + 10 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3894
SELECT - 20 / + + 10 AS col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT ALL - 23 + 90 / COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL - 23 + 90 / COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT - 31 - - SUM( - 95 )
----
-126

skipif mysql # not compatible
query I rowsort label-3896
SELECT - 31 - - SUM ( - 95 )
----
-126

query I rowsort
SELECT - 66 * + + 37 * + 52
----
-126984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3898
SELECT - NULLIF ( + + CAST( - + 97 AS SIGNED ), 81 )
----
97

skipif mysql # not compatible
query I rowsort label-3898
SELECT - NULLIF ( + + CAST ( - + 97 AS INTEGER ), 81 )
----
97

query I rowsort
SELECT - 84 + - 35 + - 48
----
-167

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + 90 * NULLIF ( MIN( ALL + 41 ), + 65 * + 47 * + COUNT( * ) - + - 62 )
----
3690

skipif mysql # not compatible
query I rowsort label-3900
SELECT + 90 * NULLIF ( MIN ( ALL + 41 ), + 65 * + 47 * + COUNT ( * ) - + - 62 )
----
3690

query I rowsort
SELECT - ( - 94 ) + 48 + 48 * + + 43 AS col0
----
2206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT ALL + 69 / CAST( NULL AS SIGNED ) + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL + 69 / CAST ( NULL AS INTEGER ) + 23
----
NULL

query I rowsort
SELECT DISTINCT + 51 * + 46
----
2346

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT 24 * - - COUNT( * ) * CASE WHEN - ( + 30 ) NOT IN ( COUNT( * ) * + + 7 + + MIN( + + 91 ) - 43 ) THEN 38 * + 82 END - + COUNT( * ) AS col2
----
74783

skipif mysql # not compatible
query I rowsort label-3904
SELECT 24 * - - COUNT ( * ) * CASE WHEN - ( + 30 ) NOT IN ( COUNT ( * ) * + + 7 + + MIN ( + + 91 ) - 43 ) THEN 38 * + 82 END - + COUNT ( * ) AS col2
----
74783

query I rowsort
SELECT ALL + 33 * + 26
----
858

query II rowsort
SELECT ALL - 75, 16 col2
----
-75
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT ALL + 25 - 12 DIV - 73 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-3907
SELECT ALL + 25 - 12 / - 73 AS col1
----
25

query I rowsort
SELECT ALL 12 - 61 * - 50
----
3062

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT 34 * + 57 + NULLIF ( - 3, - 79 * - 53 ) + + MAX( DISTINCT + + ( + + 54 ) ) + + MAX( + 37 ) AS col1
----
2026

skipif mysql # not compatible
query I rowsort label-3909
SELECT 34 * + 57 + NULLIF ( - 3, - 79 * - 53 ) + + MAX ( DISTINCT + + ( + + 54 ) ) + + MAX ( + 37 ) AS col1
----
2026

query I rowsort
SELECT 52 * - + 6 + + - 85
----
-397

query I rowsort
SELECT 99 * - + 91 + + + 88
----
-8921

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - MIN( ALL - 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - MIN ( ALL - 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3913
SELECT - 21 + - COUNT( * ) DIV - - 6 DIV + COUNT( * ) AS col1, 24 - - - 10
----
-21
14

skipif mysql # not compatible
query II rowsort label-3913
SELECT - 21 + - COUNT ( * ) / - - 6 / + COUNT ( * ) AS col1, 24 - - - 10
----
-21
14

query I rowsort
SELECT + + NULLIF ( + 26, + + AVG ( - + 25 ) ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT 47 + COUNT( DISTINCT 64 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3915
SELECT 47 + COUNT ( DISTINCT 64 ) AS col1
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT ALL 74 - - - 98 DIV 58
----
73

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL 74 - - - 98 / 58
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3917
SELECT 78 * 34 - COALESCE ( - 44, + + CASE WHEN NOT - 48 NOT BETWEEN - + 56 + + - 5 / + 93 * - + CAST( - 47 AS SIGNED ) AND ( - COUNT( * ) + + 6 ) THEN 5 END * - 41 + + + 20 + + - 15 - + 44 ) AS col1
----
2696

skipif mysql # not compatible
query I rowsort label-3917
SELECT 78 * 34 - COALESCE ( - 44, + + CASE WHEN NOT - 48 NOT BETWEEN - + 56 + + - 5 / + 93 * - + CAST ( - 47 AS INTEGER ) AND ( - COUNT ( * ) + + 6 ) THEN 5 END * - 41 + + + 20 + + - 15 - + 44 ) AS col1
----
2696

query II rowsort
SELECT DISTINCT - 99, - 21 - + + 15 AS col0
----
-99
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT CASE - 56 WHEN 25 * + AVG ( + + 25 ) THEN 62 WHEN + COUNT( * ) THEN + COUNT( * ) ELSE NULL END / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3919
SELECT CASE - 56 WHEN 25 * + AVG ( + + 25 ) THEN 62 WHEN + COUNT ( * ) THEN + COUNT ( * ) ELSE NULL END / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3920
SELECT - 80 * - 47 + + MAX( DISTINCT - 67 ) + - MAX( ALL - 99 ) AS col0, 3 / CAST( NULL AS SIGNED ) AS col0
----
3792
NULL

skipif mysql # not compatible
query II rowsort label-3920
SELECT - 80 * - 47 + + MAX ( DISTINCT - 67 ) + - MAX ( ALL - 99 ) AS col0, 3 / CAST ( NULL AS INTEGER ) AS col0
----
3792
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT ( - - COUNT( DISTINCT 87 ) ) + - SUM( + - 47 )
----
48

skipif mysql # not compatible
query I rowsort label-3921
SELECT ( - - COUNT ( DISTINCT 87 ) ) + - SUM ( + - 47 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT 47 * - 14 + + SUM( - 66 )
----
-724

skipif mysql # not compatible
query I rowsort label-3922
SELECT 47 * - 14 + + SUM ( - 66 )
----
-724

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT ALL - - MAX( DISTINCT 26 )
----
26

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - - MAX ( DISTINCT 26 )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3924
SELECT - CAST( NULL AS DECIMAL ) + + + 4, + 70 AS col2
----
NULL
70

skipif mysql # not compatible
query II rowsort label-3924
SELECT - CAST ( NULL AS REAL ) + + + 4, + 70 AS col2
----
NULL
70

query II rowsort
SELECT 11, + 67 * + 82 AS col1
----
11
5494

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3926
SELECT DISTINCT + - CAST( - COALESCE ( + - 34, + - COUNT( * ) * + - MAX( DISTINCT - 43 ) ) AS SIGNED ) + + 52 * - 43
----
-2270

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT + - CAST ( - COALESCE ( + - 34, + - COUNT ( * ) * + - MAX ( DISTINCT - 43 ) ) AS INTEGER ) + + 52 * - 43
----
-2270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT DISTINCT + 56 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + 56 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 48 + 37 AS col0
----
85

query II rowsort
SELECT - 45, + 30 col2
----
-45
30

query I rowsort
SELECT DISTINCT 50 + + + 99 AS col2
----
149

query I rowsort
SELECT 85 + 91
----
176

query I rowsort
SELECT 95 + + 87 * - - 57
----
5054

query II rowsort
SELECT ALL - 28 + + - 8, 67 + + - 19 col0
----
-36
48

query I rowsort
SELECT 66 + 29
----
95

query I rowsort
SELECT DISTINCT - 10 + - 51 * 43 AS col1
----
-2203

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3936
SELECT DISTINCT + CASE SUM( ALL + 76 ) WHEN + 45 THEN + SUM( DISTINCT - CAST( 28 AS DECIMAL ) ) WHEN - CASE 77 WHEN - 20 THEN NULL ELSE - + 72 * - 35 * - + 40 + + - 17 + - 15 END THEN NULL WHEN NULLIF ( + 8, ( + 51 ) + COUNT( DISTINCT 61 ) ) THEN ( - + 51 ) / - COUNT( * ) + - COUNT( * ) * 5 WHEN + 22 * 80 THEN NULL END + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT DISTINCT + CASE SUM ( ALL + 76 ) WHEN + 45 THEN + SUM ( DISTINCT - CAST ( 28 AS REAL ) ) WHEN - CASE 77 WHEN - 20 THEN NULL ELSE - + 72 * - 35 * - + 40 + + - 17 + - 15 END THEN NULL WHEN NULLIF ( + 8, ( + 51 ) + COUNT ( DISTINCT 61 ) ) THEN ( - + 51 ) / - COUNT ( * ) + - COUNT ( * ) * 5 WHEN + 22 * 80 THEN NULL END + 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL - SUM( 56 ) - 52 + + - 74 * - CASE - + COUNT( * ) WHEN - 18 THEN + COUNT( * ) WHEN + 71 THEN - + 58 ELSE 37 END
----
2630

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - SUM ( 56 ) - 52 + + - 74 * - CASE - + COUNT ( * ) WHEN - 18 THEN + COUNT ( * ) WHEN + 71 THEN - + 58 ELSE 37 END
----
2630

query I rowsort
SELECT DISTINCT - 11 - 23 + 31 * - - 85 AS col2
----
2601

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL - 65 * - - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL - 65 * - - COUNT ( * )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3940
SELECT 10 + - 77, 25 AS col1, 8 * CAST( NULL AS SIGNED ) * AVG ( ALL + 40 ) * 14 / 97 + + + 43 + + + 86 + + + 59 AS col2
----
-67
25
NULL

skipif mysql # not compatible
query III rowsort label-3940
SELECT 10 + - 77, 25 AS col1, 8 * CAST ( NULL AS INTEGER ) * AVG ( ALL + 40 ) * 14 / 97 + + + 43 + + + 86 + + + 59 AS col2
----
-67
25
NULL

query I rowsort
SELECT ALL - 93 - + 51 AS col2
----
-144

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3942
SELECT - 2 DIV + SUM( + - 35 ) + - 89 DIV COUNT( + 47 )
----
-89

skipif mysql # not compatible
query I rowsort label-3942
SELECT - 2 / + SUM ( + - 35 ) + - 89 / COUNT ( + 47 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT - COUNT( 1 ) * 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT - COUNT ( 1 ) * 43 AS col2
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-3944
SELECT 94 * - - 24 DIV - 4 AS col1
----
-564

skipif mysql # not compatible
query I rowsort label-3944
SELECT 94 * - - 24 / - 4 AS col1
----
-564

query I rowsort
SELECT 29 * - + 54
----
-1566

query I rowsort
SELECT ALL - ( + 27 ) * 76
----
-2052

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT 36 DIV 57 * - 15 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT 36 / 57 * - 15 AS col2
----
0

query II rowsort
SELECT DISTINCT + 48 * - - 28 AS col2, 68
----
1344
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT ALL - 95 * + CASE - + COUNT( * ) WHEN + 4 THEN - + 45 ELSE NULL END * + 30 + 27 * + MIN( NULLIF ( - ( + 97 ), CAST( 63 AS SIGNED ) ) ) + NULLIF ( + 84, - + MAX( DISTINCT 79 ) + + 3 ) / - - 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - 95 * + CASE - + COUNT ( * ) WHEN + 4 THEN - + 45 ELSE NULL END * + 30 + 27 * + MIN ( NULLIF ( - ( + 97 ), CAST ( 63 AS INTEGER ) ) ) + NULLIF ( + 84, - + MAX ( DISTINCT 79 ) + + 3 ) / - - 98 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3950
SELECT + 15 * - CAST( - COUNT( - + 82 ) AS SIGNED ) DIV + 24 * 1
----
0

skipif mysql # not compatible
query I rowsort label-3950
SELECT + 15 * - CAST ( - COUNT ( - + 82 ) AS INTEGER ) / + 24 * 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - ( - MIN( - - NULLIF ( 46, COALESCE ( + 11, 18 ) * - + 92 ) ) ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - ( - MIN ( - - NULLIF ( 46, COALESCE ( + 11, 18 ) * - + 92 ) ) ) AS col0
----
46

query I rowsort
SELECT DISTINCT - - 63 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3953
SELECT - 64 + 25 AS col0, COUNT( * ) col2
----
-39
1

skipif mysql # not compatible
query II rowsort label-3953
SELECT - 64 + 25 AS col0, COUNT ( * ) col2
----
-39
1

query I rowsort
SELECT + - 85 col2
----
-85

query II rowsort
SELECT DISTINCT - ( + - 82 ) AS col0, + 45
----
82
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL - + COUNT( * ) + - COUNT( * ) + + 75
----
73

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - + COUNT ( * ) + - COUNT ( * ) + + 75
----
73

query I rowsort
SELECT ALL 52 + 38 + - 91 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3958
SELECT - 22 - SUM( ALL + + ( + + 27 ) ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-3958
SELECT - 22 - SUM ( ALL + + ( + + 27 ) ) AS col2
----
-49

query I rowsort
SELECT ALL 66 + - 93 * - 45 AS col0
----
4251

query I rowsort
SELECT 64 - - + 45
----
109

query I rowsort
SELECT ALL - 8 + + NULLIF ( - COALESCE ( 93, 9 - - 23 + - + 65 + + 9 * - 36 * - + 33 ), + - ( 50 ) ) AS col1
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL - + MIN( ALL - + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - + MIN ( ALL - + 0 )
----
0

query I rowsort
SELECT DISTINCT 93 * - + 58 + + + 68 * - 57 + + 24
----
-9246

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL 97 + - CASE AVG ( DISTINCT - + ( + 94 ) ) WHEN + - 2 + + 90 + + COUNT( * ) - + 40 THEN ( + - 90 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL 97 + - CASE AVG ( DISTINCT - + ( + 94 ) ) WHEN + - 2 + + 90 + + COUNT ( * ) - + 40 THEN ( + - 90 ) ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + - 43 + 7
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT - 80 DIV 73 + + 0 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3966
SELECT - 80 / 73 + + 0 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3967
SELECT DISTINCT MIN( ALL 38 ) + + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT MIN ( ALL 38 ) + + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT - COUNT( ALL + - 86 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3968
SELECT - COUNT ( ALL + - 86 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3969
SELECT - NULLIF ( + 1, + SUM( ALL + - CAST( - 46 AS SIGNED ) ) * COUNT( * ) * - + 33 * - - CAST( + 7 AS SIGNED ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-3969
SELECT - NULLIF ( + 1, + SUM ( ALL + - CAST ( - 46 AS INTEGER ) ) * COUNT ( * ) * - + 33 * - - CAST ( + 7 AS INTEGER ) ) col2
----
-1

query II rowsort
SELECT 66, - 21 AS col2
----
66
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3971
SELECT ALL SUM( ALL - 39 ) DIV + - MIN( DISTINCT - 56 )
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL SUM ( ALL - 39 ) / + - MIN ( DISTINCT - 56 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT 74 col1, 55 + + + COUNT( * ) col1
----
74
56

skipif mysql # not compatible
query II rowsort label-3972
SELECT 74 col1, 55 + + + COUNT ( * ) col1
----
74
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT ALL 71, + COUNT( * ) AS col2
----
71
1

skipif mysql # not compatible
query II rowsort label-3973
SELECT ALL 71, + COUNT ( * ) AS col2
----
71
1

query II rowsort
SELECT ALL 23 AS col2, 5 * 58
----
23
290

query II rowsort
SELECT 90 AS col0, 71
----
90
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3976
SELECT ALL COUNT( * ) - + 27 + - COUNT( * ) + + 59 DIV + ( + COUNT( * ) )
----
32

skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL COUNT ( * ) - + 27 + - COUNT ( * ) + + 59 / + ( + COUNT ( * ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT + COUNT( * ) + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3977
SELECT + COUNT ( * ) + COUNT ( * ) AS col1
----
2

query I rowsort
SELECT DISTINCT 30 * + - 73 AS col0
----
-2190

query I rowsort
SELECT - 59 * 47
----
-2773

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT DISTINCT 94 * - + COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT 94 * - + COUNT ( * ) AS col0
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3981
SELECT ALL + - COUNT( * ) DIV - MAX( 95 ) * - + 14
----
0

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + - COUNT ( * ) / - MAX ( 95 ) * - + 14
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3982
SELECT - COUNT( * ) / - 51 - + + 77 + 10 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3982
SELECT - COUNT ( * ) / - 51 - + + 77 + 10 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3983
SELECT DISTINCT + + 58 DIV MAX( ALL + 78 ) * + 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT + + 58 / MAX ( ALL + 78 ) * + 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT - 53 + 9 - + - 95 + - 25 DIV - 67 * - 15 * 86
----
51

skipif mysql # not compatible
query I rowsort label-3984
SELECT - 53 + 9 - + - 95 + - 25 / - 67 * - 15 * 86
----
51

query I rowsort
SELECT DISTINCT - 88 * + 37 + + 54
----
-3202

query I rowsort
SELECT ALL + 52 * + 73 + 97
----
3893

onlyif mysql # aggregate syntax: 
query II rowsort label-3987
SELECT + 37 * + COUNT( * ) * - 12 + - COUNT( * ), + 33 * - 47 AS col0
----
-445
-1551

skipif mysql # not compatible
query II rowsort label-3987
SELECT + 37 * + COUNT ( * ) * - 12 + - COUNT ( * ), + 33 * - 47 AS col0
----
-445
-1551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3988
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3988
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT - - 59 + 97 + - 92 - - + 74 * - COUNT( * ) + + CASE + - 62 WHEN - - COALESCE ( COUNT( * ), - 96 ) THEN 89 END, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3989
SELECT - - 59 + 97 + - 92 - - + 74 * - COUNT ( * ) + + CASE + - 62 WHEN - - COALESCE ( COUNT ( * ), - 96 ) THEN 89 END, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT DISTINCT - - ( + - 85 ) * 25 * + 74 * - - 50 AS col0
----
-7862500

query I rowsort
SELECT DISTINCT + 95 * + 87 + + 86 + - 3
----
8348

query II rowsort
SELECT ALL + 0, 85 AS col1
----
0
85

query I rowsort
SELECT - ( + ( 29 ) ) * + 26 + - 9 - + 95 AS col2
----
-858

query I rowsort
SELECT DISTINCT - 66 * - 54 + + + 70 * - 57 * 33
----
-128106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3995
SELECT ALL 45 * ( + 14 ) * + + 71 - + - COUNT( * ) - 40 * + - CAST( NULL AS SIGNED ), + ( + 47 ) + - 96 + 65 + - 72 * + CAST( NULL AS DECIMAL ) / - + 57 * + 38
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3995
SELECT ALL 45 * ( + 14 ) * + + 71 - + - COUNT ( * ) - 40 * + - CAST ( NULL AS INTEGER ), + ( + 47 ) + - 96 + 65 + - 72 * + CAST ( NULL AS REAL ) / - + 57 * + 38
----
NULL
NULL

query I rowsort
SELECT + 73 * + 55 col1
----
4015

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT DISTINCT COUNT( + - 38 ) - - 16
----
17

skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT COUNT ( + - 38 ) - - 16
----
17

query I rowsort
SELECT ALL + 10 - 67 - + + 43 * - ( 50 ) AS col1
----
2093

query I rowsort
SELECT + ( + + 68 ) * + 75 AS col2
----
5100

query I rowsort
SELECT ALL COALESCE ( + + 9, + - 31, - 7 * - - ( - 37 ) + + 22 + - 1 ) * + - ( - 57 ) AS col1
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + 55 + - + 23 + + COALESCE ( - + 79, - + 65 * + COUNT( * ) + - 65 + - 80 )
----
-47

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 55 + - + 23 + + COALESCE ( - + 79, - + 65 * + COUNT ( * ) + - 65 + - 80 )
----
-47

query I rowsort
SELECT DISTINCT + 92 - + - 25
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT + 31 + - - 6 * + 1 DIV 34 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4003
SELECT + 31 + - - 6 * + 1 / 34 AS col0
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4004
SELECT ALL SUM( + 89 ) * 64 / ( - - CASE - NULLIF ( COALESCE ( ( - - COUNT( * ) ), 44, + - 17 ), ( + 30 ) ) WHEN + ( CASE ( 50 ) WHEN - - CAST( NULL AS DECIMAL ) + COUNT( + + 87 ) THEN + - 80 * - + 60 ELSE + CASE + 27 WHEN + COUNT( + 12 ) / ( - + 63 ) / - 11 THEN + CASE 76 WHEN - 67 THEN + 89 + - 90 WHEN + 33 THEN - 87 + 22 WHEN + 52 THEN 83 END ELSE + 20 END END ) * 95 THEN + 12 END ) + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL SUM ( + 89 ) * 64 / ( - - CASE - NULLIF ( COALESCE ( ( - - COUNT ( * ) ), 44, + - 17 ), ( + 30 ) ) WHEN + ( CASE ( 50 ) WHEN - - CAST ( NULL AS REAL ) + COUNT ( + + 87 ) THEN + - 80 * - + 60 ELSE + CASE + 27 WHEN + COUNT ( + 12 ) / ( - + 63 ) / - 11 THEN + CASE 76 WHEN - 67 THEN + 89 + - 90 WHEN + 33 THEN - 87 + 22 WHEN + 52 THEN 83 END ELSE + 20 END END ) * 95 THEN + 12 END ) + 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - ( 31 ) * + 19 * - COUNT( * ) AS col0
----
589

skipif mysql # not compatible
query I rowsort label-4005
SELECT - ( 31 ) * + 19 * - COUNT ( * ) AS col0
----
589

query I rowsort
SELECT + 83 + + 30 col1
----
113

query I rowsort
SELECT + 1 + - 32
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4008
SELECT + SUM( DISTINCT - - 75 ) / + CAST( NULL AS SIGNED ) + + COUNT( ALL 96 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT + SUM ( DISTINCT - - 75 ) / + CAST ( NULL AS INTEGER ) + + COUNT ( ALL 96 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT + 71 * + SUM( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT + 71 * + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4010
SELECT ALL CAST( + + 50 AS SIGNED ) DIV COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL CAST ( + + 50 AS INTEGER ) / COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4011
SELECT - NULLIF ( + - 72, + 42 * - COUNT( * ) + - 83 + 44 * + 14 - COUNT( * ) + + - CAST( NULL AS DECIMAL ) / - 76 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4011
SELECT - NULLIF ( + - 72, + 42 * - COUNT ( * ) + - 83 + 44 * + 14 - COUNT ( * ) + + - CAST ( NULL AS REAL ) / - 76 ) AS col1
----
72

query I rowsort
SELECT - ( - 38 )
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4013
SELECT + COUNT( * ) DIV - 57
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT + COUNT ( * ) / - 57
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL 35 + - COUNT( 32 ) + - - COUNT( ALL + + 92 )
----
35

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL 35 + - COUNT ( 32 ) + - - COUNT ( ALL + + 92 )
----
35

query I rowsort
SELECT DISTINCT 94 * 62 AS col0
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT + MIN( + 65 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-4016
SELECT + MIN ( + 65 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT ALL + 98 DIV 59 * - 48 * 40 + + 45 * + - 43 AS col0
----
-3855

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + 98 / 59 * - 48 * 40 + + 45 * + - 43 AS col0
----
-3855

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT + + SUM( DISTINCT 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-4018
SELECT + + SUM ( DISTINCT 39 ) AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4019
SELECT ALL 30 * + + 98, 2 + + MIN( + 12 ) + - 15 + - + CAST( NULL AS DECIMAL ) AS col2
----
2940
NULL

skipif mysql # not compatible
query II rowsort label-4019
SELECT ALL 30 * + + 98, 2 + + MIN ( + 12 ) + - 15 + - + CAST ( NULL AS REAL ) AS col2
----
2940
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4020
SELECT + - 13 DIV + 1 AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-4020
SELECT + - 13 / + 1 AS col1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4021
SELECT ALL + 5 DIV + + 21 * - MIN( - + 92 ) * - 30 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL + 5 / + + 21 * - MIN ( - + 92 ) * - 30 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4022
SELECT DISTINCT + CAST( + 40 AS SIGNED ) DIV CASE + 40 WHEN - ( + 43 ) THEN NULL WHEN - 89 THEN NULL ELSE ( 34 ) END AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + CAST ( + 40 AS INTEGER ) / CASE + 40 WHEN - ( + 43 ) THEN NULL WHEN - 89 THEN NULL ELSE ( 34 ) END AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - 76 * + + 35 - 4 + COUNT( * ) * - - 60 * - 48
----
-5544

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - 76 * + + 35 - 4 + COUNT ( * ) * - - 60 * - 48
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + + COALESCE ( - - 84, + + ( MAX( ALL + 7 ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-4024
SELECT + + COALESCE ( - - 84, + + ( MAX ( ALL + 7 ) ) )
----
84

query I rowsort
SELECT + + 86 - + + COALESCE ( 19, - 52 )
----
67

query I rowsort
SELECT ALL - 75 * - 26
----
1950

query I rowsort
SELECT ALL + 6 * 5 AS col0
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT DISTINCT + 24 * - 93 * + COUNT( * ), - 2 * + MAX( DISTINCT - 78 ) AS col0
----
-2232
156

skipif mysql # not compatible
query II rowsort label-4028
SELECT DISTINCT + 24 * - 93 * + COUNT ( * ), - 2 * + MAX ( DISTINCT - 78 ) AS col0
----
-2232
156

query I rowsort
SELECT 4 * - 22 AS col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT ALL + 6 * + - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL + 6 * + - COUNT ( * ) AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4031
SELECT 14 - + + 77 + COUNT( * ) DIV 60 + - - SUM( ALL ( - 55 ) ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-4031
SELECT 14 - + + 77 + COUNT ( * ) / 60 + - - SUM ( ALL ( - 55 ) ) AS col2
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT 94 * - - 33 * - COUNT( ALL 78 ) AS col2
----
-3102

skipif mysql # not compatible
query I rowsort label-4032
SELECT 94 * - - 33 * - COUNT ( ALL 78 ) AS col2
----
-3102

query I rowsort
SELECT 4 + 85 * 10 + 27
----
881

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT ALL CAST( NULL AS SIGNED ) * + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT ALL CAST ( NULL AS INTEGER ) * + 39
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT COUNT( * ) * - 72
----
-72

skipif mysql # not compatible
query I rowsort label-4035
SELECT COUNT ( * ) * - 72
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4036
SELECT ALL CAST( 56 AS SIGNED ) + - 61, - 27 * + 79 AS col2
----
-5
-2133

skipif mysql # not compatible
query II rowsort label-4036
SELECT ALL CAST ( 56 AS INTEGER ) + - 61, - 27 * + 79 AS col2
----
-5
-2133

onlyif mysql # aggregate syntax: 
query I rowsort label-4037
SELECT DISTINCT 94 + ( + COUNT( * ) )
----
95

skipif mysql # not compatible
query I rowsort label-4037
SELECT DISTINCT 94 + ( + COUNT ( * ) )
----
95

query I rowsort
SELECT 9 + + + ( - 23 ) AS col0
----
-14

query I rowsort
SELECT 45 * 16
----
720

query I rowsort
SELECT - - 47 col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL - MIN( ALL 9 ) + + + COALESCE ( + 15, + + 6 - - 93 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL - MIN ( ALL 9 ) + + + COALESCE ( + 15, + + 6 - - 93 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT 78 + + 9 + + COUNT( * ) + COUNT( * ) * - + 60 col2
----
28

skipif mysql # not compatible
query I rowsort label-4042
SELECT 78 + + 9 + + COUNT ( * ) + COUNT ( * ) * - + 60 col2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT - + SUM( - ( - 42 ) ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-4043
SELECT - + SUM ( - ( - 42 ) ) AS col0
----
-42

query I rowsort
SELECT - 75 + - ( - CASE + - 17 WHEN + 90 + 86 / - AVG ( - - 2 ) * - 70 + - 10 * - - 5 THEN - 81 ELSE 80 END ) * - 21 + + 62
----
-1693

query I rowsort
SELECT DISTINCT - CASE + 75 WHEN + COALESCE ( - 77, + 19 * - 17 ) + - 15 THEN + 34 + 71 ELSE NULL END + + 15 * + - 23 * 91 AS col2
----
NULL

query I rowsort
SELECT ALL + 11 + - 62 AS col1
----
-51

query I rowsort
SELECT ALL - 31 + + 84 * - 77 AS col1
----
-6499

query I rowsort
SELECT 47 * - 62
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL - CAST( NULL AS SIGNED ) / + - 75 / - MAX( + 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - CAST ( NULL AS INTEGER ) / + - 75 / - MAX ( + 66 )
----
NULL

query I rowsort
SELECT CASE - 58 WHEN + + 71 THEN 71 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT 76 DIV + 95 * - COUNT( * ) * 90 + + MAX( ALL - ( - + ( 38 ) ) ) - - + COUNT( * ) DIV - 65 * - 75
----
38

skipif mysql # not compatible
query I rowsort label-4051
SELECT 76 / + 95 * - COUNT ( * ) * 90 + + MAX ( ALL - ( - + ( 38 ) ) ) - - + COUNT ( * ) / - 65 * - 75
----
38

query I rowsort
SELECT ( - - 53 ) + + ( + + 62 )
----
115

query I rowsort
SELECT ALL + 96 - + 58 AS col0
----
38

query I rowsort
SELECT - ( 15 ) * + 74 + - 7 AS col0
----
-1117

query I rowsort
SELECT 16 * + 15
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT 26 * 19 - + 1 + COUNT( 91 )
----
494

skipif mysql # not compatible
query I rowsort label-4056
SELECT 26 * 19 - + 1 + COUNT ( 91 )
----
494

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4057
SELECT 15 * + COALESCE ( + 37, 92 * - 23 + ( COUNT( * ) ) DIV COUNT( DISTINCT - + 81 ) * + - 31 + 43 - + 2 + - 61 ) + 85 + MIN( ALL - 53 ) + 56 * - 7 * - 22 AS col1
----
9211

skipif mysql # not compatible
query I rowsort label-4057
SELECT 15 * + COALESCE ( + 37, 92 * - 23 + ( COUNT ( * ) ) / COUNT ( DISTINCT - + 81 ) * + - 31 + 43 - + 2 + - 61 ) + 85 + MIN ( ALL - 53 ) + 56 * - 7 * - 22 AS col1
----
9211

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT COALESCE ( - ( - 79 ), - - 51, + COUNT( * ) + 53 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4058
SELECT COALESCE ( - ( - 79 ), - - 51, + COUNT ( * ) + 53 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT 96 * 48 * + 50 * + + COUNT( 95 ) AS col0
----
230400

skipif mysql # not compatible
query I rowsort label-4059
SELECT 96 * 48 * + 50 * + + COUNT ( 95 ) AS col0
----
230400

query II rowsort
SELECT DISTINCT - 56 col1, 84 AS col2
----
-56
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL - MAX( - 79 )
----
79

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - MAX ( - 79 )
----
79

query II rowsort
SELECT 90 AS col2, 9 * 99 * + COALESCE ( 2, 85, - 26 ) + - 71 AS col1
----
90
1711

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT 11 * - - COUNT( * ) + 95 - - 17
----
123

skipif mysql # not compatible
query I rowsort label-4063
SELECT 11 * - - COUNT ( * ) + 95 - - 17
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT 75 * - 8 * - COUNT( * )
----
600

skipif mysql # not compatible
query I rowsort label-4064
SELECT 75 * - 8 * - COUNT ( * )
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT 10 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT 10 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4066
SELECT 76 AS col2, 44 DIV 48 - - + 87 AS col0
----
76
87

skipif mysql # not compatible
query II rowsort label-4066
SELECT 76 AS col2, 44 / 48 - - + 87 AS col0
----
76
87

query I rowsort
SELECT 23 + + - 23 * - 82 AS col0
----
1909

onlyif mysql # DIV for integer division: 
query I rowsort label-4068
SELECT ALL 72 DIV 36
----
2

skipif mysql # not compatible
query I rowsort label-4068
SELECT ALL 72 / 36
----
2

query II rowsort
SELECT + 20 AS col0, - 14
----
20
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT 29 DIV + 14 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4070
SELECT 29 / + 14 AS col2
----
2

query I rowsort
SELECT 0 + - 16 - + 25
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4072
SELECT ALL 36 DIV - 76 AS col0, COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL 36 / - 76 AS col0, COUNT ( * )
----
0
1

query I rowsort
SELECT DISTINCT 71 * 51 AS col0
----
3621

query I rowsort
SELECT ALL ( + 49 ) + 51
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT 35 + + 22 + - - 58 DIV 50 + + 41 AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4075
SELECT 35 + + 22 + - - 58 / 50 + + 41 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ALL - 3 + + - SUM( - + 23 )
----
20

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL - 3 + + - SUM ( - + 23 )
----
20

query II rowsort
SELECT 0 AS col0, + 93
----
0
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4078
SELECT 25 * 59 * 42 * 38 * ( 69 ) DIV - 76
----
-2137275

skipif mysql # not compatible
query I rowsort label-4078
SELECT 25 * 59 * 42 * 38 * ( 69 ) / - 76
----
-2137275

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT 36 + - COUNT( ALL - + 14 )
----
35

skipif mysql # not compatible
query I rowsort label-4079
SELECT 36 + - COUNT ( ALL - + 14 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ALL - COUNT( * ) + 71 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-4080
SELECT ALL - COUNT ( * ) + 71 AS col2
----
70

query I rowsort
SELECT DISTINCT - 19 * - 48
----
912

query I rowsort
SELECT ALL + 60 - + 59
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4083
SELECT - - ( NULLIF ( - + 0, + CAST( NULL AS DECIMAL ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4083
SELECT - - ( NULLIF ( - + 0, + CAST ( NULL AS REAL ) ) ) AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4084
SELECT - MAX( DISTINCT + CAST( + 97 AS SIGNED ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-4084
SELECT - MAX ( DISTINCT + CAST ( + 97 AS INTEGER ) ) AS col2
----
-97

query I rowsort
SELECT 62 * + 79 AS col0
----
4898

query I rowsort
SELECT - - ( 3 ) AS col1
----
3

query I rowsort
SELECT ALL + + 34 - + 74 + - 65 AS col2
----
-105

query I rowsort
SELECT + 66 * + 86 + ( - - 30 ) + - 55 * 96 AS col0
----
426

query I rowsort
SELECT 41 - 59 AS col2
----
-18

query I rowsort
SELECT 85 * 77 * - - 1 * + + NULLIF ( + 74, 18 ) * + 61 AS col1
----
29544130

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT + COUNT( ALL - + 63 ) AS col1, 0 col1
----
1
0

skipif mysql # not compatible
query II rowsort label-4091
SELECT + COUNT ( ALL - + 63 ) AS col1, 0 col1
----
1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT ALL + - COUNT( * ) AS col0, 43 col2
----
-1
43

skipif mysql # not compatible
query II rowsort label-4092
SELECT ALL + - COUNT ( * ) AS col0, 43 col2
----
-1
43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4093
SELECT - 99 AS col2, + 14 + + + 40 * + 66 + CASE WHEN NOT NULL IS NULL THEN + 9 ELSE + CAST( + - COALESCE ( + 94, 21 + - + AVG ( + 3 ) + + - 68 ) AS SIGNED ) END AS col1
----
-99
2560

skipif mysql # not compatible
query II rowsort label-4093
SELECT - 99 AS col2, + 14 + + + 40 * + 66 + CASE WHEN NOT NULL IS NULL THEN + 9 ELSE + CAST ( + - COALESCE ( + 94, 21 + - + AVG ( + 3 ) + + - 68 ) AS INTEGER ) END AS col1
----
-99
2560

query I rowsort
SELECT + - 78 * - + 82 * + - ( - 30 ) AS col0
----
191880

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT MIN( 26 ) AS col0, 98 AS col0
----
26
98

skipif mysql # not compatible
query II rowsort label-4095
SELECT MIN ( 26 ) AS col0, 98 AS col0
----
26
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4096
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT ( + COUNT( * ) ) * + 75 * - - COUNT( * ) * - 85 + - - 97
----
-6278

skipif mysql # not compatible
query I rowsort label-4097
SELECT ( + COUNT ( * ) ) * + 75 * - - COUNT ( * ) * - 85 + - - 97
----
-6278

query I rowsort
SELECT + 8 * 36
----
288

query I rowsort
SELECT + CASE + ( + 33 ) WHEN + 91 THEN + 72 END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT DISTINCT 31 * + - COUNT( * ) * + 81
----
-2511

skipif mysql # not compatible
query I rowsort label-4100
SELECT DISTINCT 31 * + - COUNT ( * ) * + 81
----
-2511

query I rowsort
SELECT ALL 66 * - 92 * - + 48 AS col1
----
291456

query II rowsort
SELECT + 72 * + 86, + 54 * - 22 AS col1
----
6192
-1188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4103
SELECT - 45 * - 49 / + 94 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4103
SELECT - 45 * - 49 / + 94 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT + 62 * - COUNT( * ) * 70 + - + 84 col1
----
-4424

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT + 62 * - COUNT ( * ) * 70 + - + 84 col1
----
-4424

query I rowsort
SELECT ALL 19 + + 97
----
116

query I rowsort
SELECT + NULLIF ( - 82, + - 79 )
----
-82

query II rowsort
SELECT ALL 30 * + 60, + 63 AS col2
----
1800
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT COUNT( - + 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4108
SELECT COUNT ( - + 84 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL CAST( NULL AS SIGNED ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL CAST ( NULL AS INTEGER ) + - 40
----
NULL

query I rowsort
SELECT - NULLIF ( 74, 37 )
----
-74

query I rowsort
SELECT + 6 - 57 * 79 * 47 * - - 89
----
-18836043

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4112
SELECT DISTINCT COALESCE ( ( + 1 ), - + COUNT( * ) * - - CAST( 25 AS SIGNED ) + - - 39 ) DIV - 74
----
0

skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT COALESCE ( ( + 1 ), - + COUNT ( * ) * - - CAST ( 25 AS INTEGER ) + - - 39 ) / - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL COUNT( ALL - + ( - ( 45 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL COUNT ( ALL - + ( - ( 45 ) ) )
----
1

query I rowsort
SELECT + 41 + 23 + 10 AS col0
----
74

query I rowsort
SELECT ALL - 89 - + + 22 * + 32
----
-793

query I rowsort
SELECT ALL + 20 * 51 AS col0
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT + MIN( DISTINCT + - 3 ) * + 89 AS col0
----
-267

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT + MIN ( DISTINCT + - 3 ) * + 89 AS col0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT + 37 + + 11 + - MIN( + 51 ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4118
SELECT + 37 + + 11 + - MIN ( + 51 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL - 29 - NULLIF ( 56, ( + COUNT( * ) ) + + - 0 ) col2
----
-85

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL - 29 - NULLIF ( 56, ( + COUNT ( * ) ) + + - 0 ) col2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT + + COUNT( * ) * + 81 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-4120
SELECT + + COUNT ( * ) * + 81 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + MAX( 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4121
SELECT + MAX ( 6 )
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4122
SELECT - + 68 - + COUNT( * ), ( - + 48 ) AS col2
----
-69
-48

skipif mysql # not compatible
query II rowsort label-4122
SELECT - + 68 - + COUNT ( * ), ( - + 48 ) AS col2
----
-69
-48

query I rowsort
SELECT - - 99 + 42 AS col1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT + + COALESCE ( MIN( DISTINCT - 73 ), - 4 )
----
-73

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + + COALESCE ( MIN ( DISTINCT - 73 ), - 4 )
----
-73

query I rowsort
SELECT - 91 + + - 64 AS col1
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL + NULLIF ( + ( + COUNT( * ) ), - 25 ) * 78 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + NULLIF ( + ( + COUNT ( * ) ), - 25 ) * 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ( - COUNT( ALL 93 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4127
SELECT ( - COUNT ( ALL 93 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4128
SELECT + 8 DIV + NULLIF ( - 84, - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-4128
SELECT + 8 / + NULLIF ( - 84, - 63 )
----
0

query I rowsort
SELECT + 67 + 99
----
166

query I rowsort
SELECT ( + + 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4131
SELECT ALL + ( - 67 ) DIV - COUNT( * ) + ( - 59 ) * - - NULLIF ( - 92, 55 DIV - 73 - 51 * - 84 ) - 94
----
5401

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL + ( - 67 ) / - COUNT ( * ) + ( - 59 ) * - - NULLIF ( - 92, 55 / - 73 - 51 * - 84 ) - 94
----
5401

query I rowsort
SELECT ALL + 48 * - + 94 col2
----
-4512

onlyif mysql # DIV for integer division: 
query I rowsort label-4133
SELECT - 72 DIV - 64
----
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT - 72 / - 64
----
1

query II rowsort
SELECT ALL + 84, - 77 * 82 * 50 AS col1
----
84
-315700

query I rowsort
SELECT ALL + 7 * + 53 + - 50 + - 4 AS col2
----
317

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT ALL - 34 * - 60 * - 5 + + - COALESCE ( + 49, - ( + CAST( + + 32 AS SIGNED ) ), + 94 * + + 40 ) - + 26 * + + 19 * - 11
----
-4815

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - 34 * - 60 * - 5 + + - COALESCE ( + 49, - ( + CAST ( + + 32 AS INTEGER ) ), + 94 * + + 40 ) - + 26 * + + 19 * - 11
----
-4815

onlyif mysql # aggregate syntax: 
query II rowsort label-4137
SELECT DISTINCT + 97 AS col1, - 26 * COUNT( * ) * + 12 + 30 AS col0
----
97
-282

skipif mysql # not compatible
query II rowsort label-4137
SELECT DISTINCT + 97 AS col1, - 26 * COUNT ( * ) * + 12 + 30 AS col0
----
97
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-4138
SELECT ALL 40 * + 2 + - 58 DIV - - ( - 88 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL 40 * + 2 + - 58 / - - ( - 88 ) AS col1
----
80

query I rowsort
SELECT + ( - ( + 26 ) ) col2
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4140
SELECT COALESCE ( - 38, - 28, - MIN( + + NULLIF ( + + 99, - CAST( NULL AS SIGNED ) + - - 86 ) ) ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-4140
SELECT COALESCE ( - 38, - 28, - MIN ( + + NULLIF ( + + 99, - CAST ( NULL AS INTEGER ) + - - 86 ) ) ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT + ( + COALESCE ( - COUNT( * ), + 60 * - - 58 + - 31, - - COUNT( * ) * - 31 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4141
SELECT + ( + COALESCE ( - COUNT ( * ), + 60 * - - 58 + - 31, - - COUNT ( * ) * - 31 ) )
----
-1

query I rowsort
SELECT CASE + + ( - - 93 ) WHEN + 30 THEN - 7 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4143
SELECT - CASE 28 WHEN 87 * + COUNT( * ) + 55 - - - 78 * - - 17 + - SUM( ALL - 37 ) / + 61 THEN + - 20 * CAST( NULL AS SIGNED ) ELSE 38 END, - 93 AS col1
----
-38
-93

skipif mysql # not compatible
query II rowsort label-4143
SELECT - CASE 28 WHEN 87 * + COUNT ( * ) + 55 - - - 78 * - - 17 + - SUM ( ALL - 37 ) / + 61 THEN + - 20 * CAST ( NULL AS INTEGER ) ELSE 38 END, - 93 AS col1
----
-38
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL CAST( - - 53 AS SIGNED ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL CAST ( - - 53 AS INTEGER ) AS col1
----
53

query I rowsort
SELECT - 2 * 97 + 82 - - + 0 + + 28
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4146
SELECT DISTINCT COUNT( * ) * AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) - - 5 * 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT COUNT ( * ) * AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - 5 * 47
----
NULL

query II rowsort
SELECT ALL 92, + 36 AS col0
----
92
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4148
SELECT + - CAST( NULL AS SIGNED ) + - + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4148
SELECT + - CAST ( NULL AS INTEGER ) + - + 76 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT DISTINCT 43 * + 61 - ( COUNT( * ) ) AS col1, 50 col1
----
2622
50

skipif mysql # not compatible
query II rowsort label-4149
SELECT DISTINCT 43 * + 61 - ( COUNT ( * ) ) AS col1, 50 col1
----
2622
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT + 21 * + CAST( MIN( ALL + CAST( + 70 AS SIGNED ) ) AS SIGNED ) + SUM( - + 6 ) AS col1
----
1464

skipif mysql # not compatible
query I rowsort label-4150
SELECT + 21 * + CAST ( MIN ( ALL + CAST ( + 70 AS INTEGER ) ) AS INTEGER ) + SUM ( - + 6 ) AS col1
----
1464

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + + SUM( - 73 ) + + ( + 87 ) + + - SUM( DISTINCT - 32 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4151
SELECT + + SUM ( - 73 ) + + ( + 87 ) + + - SUM ( DISTINCT - 32 ) AS col1
----
46

query I rowsort
SELECT + NULLIF ( + + 83, + + 27 / - 98 ) AS col0
----
83

query I rowsort
SELECT + - 89 + - + 32 AS col2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-4154
SELECT + + COALESCE ( + 94, + - AVG ( DISTINCT - 30 ) DIV 29 ) DIV - 82 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4154
SELECT + + COALESCE ( + 94, + - AVG ( DISTINCT - 30 ) / 29 ) / - 82 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT + COUNT( * ) * 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4155
SELECT + COUNT ( * ) * 74 AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4156
SELECT - 60 AS col2, 27 DIV + COUNT( - 52 )
----
-60
27

skipif mysql # not compatible
query II rowsort label-4156
SELECT - 60 AS col2, 27 / + COUNT ( - 52 )
----
-60
27

query I rowsort
SELECT ALL + + 5 * 65 AS col1
----
325

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL 54 * + MAX( - - 38 ) AS col2
----
2052

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL 54 * + MAX ( - - 38 ) AS col2
----
2052

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT 63 * + - COUNT( * ) * - COALESCE ( + - 36, + 58 )
----
-2268

skipif mysql # not compatible
query I rowsort label-4159
SELECT 63 * + - COUNT ( * ) * - COALESCE ( + - 36, + 58 )
----
-2268

query I rowsort
SELECT ALL - + 92 + 97 + + 26 + - + 73 + - - 43 AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4161
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ) * + - ( + 26 ) * 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ) * + - ( + 26 ) * 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4162
SELECT - COUNT( * ) AS col2, 38 AS col2
----
-1
38

skipif mysql # not compatible
query II rowsort label-4162
SELECT - COUNT ( * ) AS col2, 38 AS col2
----
-1
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4163
SELECT - COUNT( - 15 ) DIV COUNT( * ) + - 83 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4163
SELECT - COUNT ( - 15 ) / COUNT ( * ) + - 83 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT + 20 * + - COUNT( * ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-4164
SELECT + 20 * + - COUNT ( * ) AS col1
----
-20

query I rowsort
SELECT - ( + - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT COUNT( * ) * - - COUNT( DISTINCT - 68 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4166
SELECT COUNT ( * ) * - - COUNT ( DISTINCT - 68 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT + CAST( NULL AS SIGNED ) * - + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT + CAST ( NULL AS INTEGER ) * - + 27 AS col2
----
NULL

query I rowsort
SELECT CASE + 81 WHEN 4 THEN NULL WHEN + 13 THEN 54 END - - 90 AS col2
----
NULL

query II rowsort
SELECT ALL - 89 + + 8, 16 - 54 col1
----
-81
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT DISTINCT + CAST( - + 78 AS SIGNED ) * - - 65 col0
----
-5070

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT + CAST ( - + 78 AS INTEGER ) * - - 65 col0
----
-5070

query I rowsort
SELECT ALL + 89 + + 73 + + 71
----
233

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT 39 - + COALESCE ( + 16, - - 70 - + + MIN( + - 61 ) ) + ( - - COUNT( * ) ) + 99 * - 67 + 85 + - 20 AS col1
----
-6544

skipif mysql # not compatible
query I rowsort label-4172
SELECT 39 - + COALESCE ( + 16, - - 70 - + + MIN ( + - 61 ) ) + ( - - COUNT ( * ) ) + 99 * - 67 + 85 + - 20 AS col1
----
-6544

query I rowsort
SELECT ALL + 17 * + 11 col0
----
187

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4174
SELECT 45 + + 71 AS col1, CAST( NULL AS SIGNED ) AS col2
----
116
NULL

skipif mysql # not compatible
query II rowsort label-4174
SELECT 45 + + 71 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
116
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT DISTINCT + MAX( - 37 ) * 90 * COUNT( ALL - 35 ) + 41
----
-3289

skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT + MAX ( - 37 ) * 90 * COUNT ( ALL - 35 ) + 41
----
-3289

query I rowsort
SELECT 29 * + 46 AS col2
----
1334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4177
SELECT 38 + 14 * + + 20 - - COUNT( * ) + + CAST( 1 AS SIGNED ) + + 38 DIV 48 * 87 + - 43
----
277

skipif mysql # not compatible
query I rowsort label-4177
SELECT 38 + 14 * + + 20 - - COUNT ( * ) + + CAST ( 1 AS INTEGER ) + + 38 / 48 * 87 + - 43
----
277

query I rowsort
SELECT - 98 * + 67 + + ( 56 ) AS col0
----
-6510

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT MAX( - 57 ) * - - COALESCE ( - 75, + ( + + 38 ) + - 83 )
----
4275

skipif mysql # not compatible
query I rowsort label-4179
SELECT MAX ( - 57 ) * - - COALESCE ( - 75, + ( + + 38 ) + - 83 )
----
4275

query I rowsort
SELECT ALL - ( 69 ) AS col2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT DISTINCT 64 DIV ( 33 )
----
1

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT 64 / ( 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + SUM( DISTINCT 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4182
SELECT + SUM ( DISTINCT 84 ) AS col1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT ALL - 4 DIV + 18 * + 70 * + 93 DIV + 60 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL - 4 / + 18 * + 70 * + 93 / + 60 / 51
----
0

query II rowsort
SELECT 70 * 79 AS col0, - 73 AS col1
----
5530
-73

query I rowsort
SELECT + 75 * - 94 + 68
----
-6982

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT COUNT( * ) + - ( + 30 )
----
-29

skipif mysql # not compatible
query I rowsort label-4186
SELECT COUNT ( * ) + - ( + 30 )
----
-29

query I rowsort
SELECT + 19 * - CASE 55 WHEN + 94 THEN NULL ELSE + 94 END * + 41 AS col1
----
-73226

query I rowsort
SELECT 47 - 51
----
-4

query I rowsort
SELECT 39 * + - 12 * - - 46
----
-21528

query I rowsort
SELECT DISTINCT + 30 + - 50 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT DISTINCT COUNT( * ) * - 44
----
-44

skipif mysql # not compatible
query I rowsort label-4191
SELECT DISTINCT COUNT ( * ) * - 44
----
-44

query I rowsort
SELECT ALL - 96 + 47 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT + COUNT( 64 ) - + ( + - 73 ) + 44 * 58
----
2626

skipif mysql # not compatible
query I rowsort label-4193
SELECT + COUNT ( 64 ) - + ( + - 73 ) + 44 * 58
----
2626

onlyif mysql # aggregate syntax: 
query III rowsort label-4194
SELECT ALL + COALESCE ( - 5, - 14 * - - 84 * + 73 + - COUNT( ALL + + ( - 41 ) ) + 23 ), 2 + 53 + + + 17 AS col1, + 98 AS col0
----
-5
72
98

skipif mysql # not compatible
query III rowsort label-4194
SELECT ALL + COALESCE ( - 5, - 14 * - - 84 * + 73 + - COUNT ( ALL + + ( - 41 ) ) + 23 ), 2 + 53 + + + 17 AS col1, + 98 AS col0
----
-5
72
98

query I rowsort
SELECT + ( 98 ) + 7 AS col0
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-4196
SELECT ALL ( COUNT( * ) ) + - - COUNT( * ) + + 43, 82 + - COALESCE ( - COUNT( * ), ( 74 ) * 38 + + ( - - 39 ) * + 58, 38 * - 71 ) AS col1
----
45
83

skipif mysql # not compatible
query II rowsort label-4196
SELECT ALL ( COUNT ( * ) ) + - - COUNT ( * ) + + 43, 82 + - COALESCE ( - COUNT ( * ), ( 74 ) * 38 + + ( - - 39 ) * + 58, 38 * - 71 ) AS col1
----
45
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT - MAX( ALL 32 ) + ( - 86 ) + - + ( COUNT( * ) )
----
-119

skipif mysql # not compatible
query I rowsort label-4197
SELECT - MAX ( ALL 32 ) + ( - 86 ) + - + ( COUNT ( * ) )
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT 88 + - 82 * - COUNT( * ) col1
----
170

skipif mysql # not compatible
query I rowsort label-4198
SELECT 88 + - 82 * - COUNT ( * ) col1
----
170

query I rowsort
SELECT DISTINCT + 30 * + 66
----
1980

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - 33 * - 5 + - + SUM( + + 18 ) AS col0
----
147

skipif mysql # not compatible
query I rowsort label-4200
SELECT - 33 * - 5 + - + SUM ( + + 18 ) AS col0
----
147

query I rowsort
SELECT DISTINCT + 52 * 56 + 83 + + - 95 * + + 76
----
-4225

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT 3 DIV + ( - + 20 )
----
0

skipif mysql # not compatible
query I rowsort label-4202
SELECT 3 / + ( - + 20 )
----
0

query I rowsort
SELECT ALL 7 * + + 2 AS col1
----
14

query I rowsort
SELECT 10 * - 66 AS col2
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT SUM( - 51 ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-4205
SELECT SUM ( - 51 ) AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT + MAX( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4206
SELECT + MAX ( + 6 ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT ALL - COALESCE ( + COUNT( * ), + 1 * + 49, 40 + CASE - CAST( COALESCE ( + - 99, - 64 * - 39 ) AS SIGNED ) WHEN 60 THEN NULL WHEN - + COUNT( ( - 59 ) ) THEN - 22 END * - NULLIF ( + 59, - CAST( + + ( + 65 ) AS SIGNED ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4207
SELECT ALL - COALESCE ( + COUNT ( * ), + 1 * + 49, 40 + CASE - CAST ( COALESCE ( + - 99, - 64 * - 39 ) AS INTEGER ) WHEN 60 THEN NULL WHEN - + COUNT ( ( - 59 ) ) THEN - 22 END * - NULLIF ( + 59, - CAST ( + + ( + 65 ) AS INTEGER ) ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4208
SELECT DISTINCT - SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT DISTINCT - SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT + 68 * 18
----
1224

query I rowsort
SELECT ALL + 50 * - - 25 col2
----
1250

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT MIN( - CASE WHEN NOT NULL IS NULL THEN + 26 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4211
SELECT MIN ( - CASE WHEN NOT NULL IS NULL THEN + 26 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT MIN( - + 45 ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-4212
SELECT MIN ( - + 45 ) AS col2
----
-45

query I rowsort
SELECT 85 * 17
----
1445

query I rowsort
SELECT - 73 * 30
----
-2190

query I rowsort
SELECT ALL - + 88 * + + 30 AS col2
----
-2640

query I rowsort
SELECT DISTINCT - ( 5 )
----
-5

query I rowsort
SELECT ALL - + 96 + - 84 AS col0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT - - COUNT( * ) * - 6 + + 50
----
44

skipif mysql # not compatible
query I rowsort label-4218
SELECT - - COUNT ( * ) * - 6 + + 50
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL - COUNT( * ) + + 5 - + 42 * - 93
----
3910

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - COUNT ( * ) + + 5 - + 42 * - 93
----
3910

query I rowsort
SELECT ALL + 26 + + 26 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - 75 + + + SUM( ALL - 60 )
----
-135

skipif mysql # not compatible
query I rowsort label-4221
SELECT - 75 + + + SUM ( ALL - 60 )
----
-135

onlyif mysql # aggregate syntax: 
query II rowsort label-4222
SELECT - - 51 * MAX( ALL - - 23 ) * - ( - 64 ) AS col2, 16 - MIN( - 25 ) + 28 * + 79 * - - 76 AS col0
----
75072
168153

skipif mysql # not compatible
query II rowsort label-4222
SELECT - - 51 * MAX ( ALL - - 23 ) * - ( - 64 ) AS col2, 16 - MIN ( - 25 ) + 28 * + 79 * - - 76 AS col0
----
75072
168153

onlyif mysql # aggregate syntax: 
query III rowsort label-4223
SELECT + CASE + - 50 WHEN - - 76 + + ( + - 41 ) THEN NULL WHEN - 4 THEN 23 END + MIN( DISTINCT + 1 ) * + COUNT( * ) AS col2, - 27 AS col2, + + 0 AS col2
----
NULL
-27
0

skipif mysql # not compatible
query III rowsort label-4223
SELECT + CASE + - 50 WHEN - - 76 + + ( + - 41 ) THEN NULL WHEN - 4 THEN 23 END + MIN ( DISTINCT + 1 ) * + COUNT ( * ) AS col2, - 27 AS col2, + + 0 AS col2
----
NULL
-27
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4224
SELECT DISTINCT + ( - 68 ) + NULLIF ( - 0, + COUNT( * ) * + - COUNT( - 5 ) * - 72 ) - 37 * 71 * + COUNT( * ) + - COALESCE ( + 9, - 64 ) + ( - 93 ) DIV + COUNT( * )
----
-2797

skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT + ( - 68 ) + NULLIF ( - 0, + COUNT ( * ) * + - COUNT ( - 5 ) * - 72 ) - 37 * 71 * + COUNT ( * ) + - COALESCE ( + 9, - 64 ) + ( - 93 ) / + COUNT ( * )
----
-2797

query I rowsort
SELECT ALL - 4 + 53 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4226
SELECT ALL 20 - 97 DIV + 64 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL 20 - 97 / + 64 AS col1
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT + 26 * + 7 AS col0, - MAX( + + 44 )
----
182
-44

skipif mysql # not compatible
query II rowsort label-4227
SELECT + 26 * + 7 AS col0, - MAX ( + + 44 )
----
182
-44

query I rowsort
SELECT ALL - 16 * 75
----
-1200

query II rowsort
SELECT - 58, 32 AS col1
----
-58
32

query I rowsort
SELECT - NULLIF ( 7, 51 )
----
-7

query I rowsort
SELECT - 90 * - - 29 * + - 40
----
104400

query I rowsort
SELECT + 95 * - ( - 95 )
----
9025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4233
SELECT + 66 - + + 54 * - - CAST( - 44 AS SIGNED )
----
2442

skipif mysql # not compatible
query I rowsort label-4233
SELECT + 66 - + + 54 * - - CAST ( - 44 AS INTEGER )
----
2442

query I rowsort
SELECT + ( - - 64 ) AS col0
----
64

query I rowsort
SELECT + 30 * - - 18
----
540

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT 26 * - CASE 59 WHEN AVG ( 51 ) THEN NULL WHEN + + ( + 31 ) THEN - COUNT( * ) + AVG ( + - 32 ) * + - 42 / + - 87 + CAST( + - 12 AS SIGNED ) WHEN + - 50 THEN NULL ELSE NULL END - + 97 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT 26 * - CASE 59 WHEN AVG ( 51 ) THEN NULL WHEN + + ( + 31 ) THEN - COUNT ( * ) + AVG ( + - 32 ) * + - 42 / + - 87 + CAST ( + - 12 AS INTEGER ) WHEN + - 50 THEN NULL ELSE NULL END - + 97 col2
----
NULL

query I rowsort
SELECT ALL 54 * + 92
----
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT + CASE + COUNT( * ) WHEN + + 69 THEN - - 78 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT + CASE + COUNT ( * ) WHEN + + 69 THEN - - 78 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + CASE + 74 WHEN + 76 * + + COUNT( * ) THEN + + COUNT( * ) ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4239
SELECT + CASE + 74 WHEN + 76 * + + COUNT ( * ) THEN + + COUNT ( * ) ELSE + COUNT ( * ) END AS col2
----
1

query I rowsort
SELECT DISTINCT 47 * - 98
----
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-4241
SELECT ALL COUNT( * ) * - - 71 * 57
----
4047

skipif mysql # not compatible
query I rowsort label-4241
SELECT ALL COUNT ( * ) * - - 71 * 57
----
4047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4242
SELECT + ( - ( 71 ) ) - + 81 * - MIN( - CAST( - + 67 AS SIGNED ) ) AS col2
----
5356

skipif mysql # not compatible
query I rowsort label-4242
SELECT + ( - ( 71 ) ) - + 81 * - MIN ( - CAST ( - + 67 AS INTEGER ) ) AS col2
----
5356

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT + COUNT( * ) * - 81 * 68 * + - ( CASE + COUNT( * ) WHEN + - 13 THEN - ( + + 81 ) WHEN 68 * + 48 THEN + - 38 / + 35 END ) * AVG ( ALL 87 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT + COUNT ( * ) * - 81 * 68 * + - ( CASE + COUNT ( * ) WHEN + - 13 THEN - ( + + 81 ) WHEN 68 * + 48 THEN + - 38 / + 35 END ) * AVG ( ALL 87 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 11 * + 41
----
451

onlyif mysql # DIV for integer division: 
query II rowsort label-4245
SELECT + 90 * - - 63 + COALESCE ( 2, - - ( + ( - 75 ) ) ), + 35 * 84 DIV - 27 + - + 94 + ( + + 59 ) AS col0
----
5672
-143

skipif mysql # not compatible
query II rowsort label-4245
SELECT + 90 * - - 63 + COALESCE ( 2, - - ( + ( - 75 ) ) ), + 35 * 84 / - 27 + - + 94 + ( + + 59 ) AS col0
----
5672
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT - COALESCE ( + 2, - CASE + 71 WHEN + + ( CASE + + 71 WHEN - 83 + - + 94 - - + 62 THEN - - ( - + CASE - 86 WHEN - 12 THEN - COUNT( * ) * + COUNT( * ) END ) WHEN + 97 THEN NULL END ) * COUNT( * ) + + ( + - 59 ) THEN - + COUNT( * ) * 70 ELSE NULL END, + + NULLIF ( 46, - 17 ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4246
SELECT - COALESCE ( + 2, - CASE + 71 WHEN + + ( CASE + + 71 WHEN - 83 + - + 94 - - + 62 THEN - - ( - + CASE - 86 WHEN - 12 THEN - COUNT ( * ) * + COUNT ( * ) END ) WHEN + 97 THEN NULL END ) * COUNT ( * ) + + ( + - 59 ) THEN - + COUNT ( * ) * 70 ELSE NULL END, + + NULLIF ( 46, - 17 ) ) AS col0
----
-2

query I rowsort
SELECT ALL CASE - 2 WHEN - 57 + 50 THEN + - 93 END * - 43 + - 59 + - + ( AVG ( DISTINCT 72 ) )
----
NULL

query II rowsort
SELECT ALL + - 20 AS col0, 10
----
-20
10

query II rowsort
SELECT - 51 AS col2, + 12 + 6 AS col0
----
-51
18

query II rowsort
SELECT + 62, - 1 * - - 39 AS col0
----
62
-39

query I rowsort
SELECT - 64 + 29
----
-35

query II rowsort
SELECT - 73 * + - 16 AS col1, - 0
----
1168
0

query II rowsort
SELECT - + 92 AS col0, - 16 + ( + + 2 )
----
-92
-14

query I rowsort
SELECT - + 89 - + + 91
----
-180

query I rowsort
SELECT - - 14 + + - 78 AS col2
----
-64

query I rowsort
SELECT ALL + - 89 - - 73
----
-16

query I rowsort
SELECT DISTINCT - 75 - - 50
----
-25

query I rowsort
SELECT DISTINCT ( + COALESCE ( + - ( 61 ), + - 32 ) )
----
-61

query I rowsort
SELECT ALL ( - + ( ( - + 50 ) ) ) AS col1
----
50

query I rowsort
SELECT - 96 + - 64
----
-160

query I rowsort
SELECT - 2 - + ( - + 24 ) - 28
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT - 78 + - 91 * - - COUNT( * )
----
-169

skipif mysql # not compatible
query I rowsort label-4262
SELECT - 78 + - 91 * - - COUNT ( * )
----
-169

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT ALL + ( - 85 ) DIV + 36 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL + ( - 85 ) / + 36 AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4264
SELECT - 90 DIV + 28 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 90 / + 28 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT - COALESCE ( - MIN( 55 ), - ( + + 24 ) + - 12 )
----
55

skipif mysql # not compatible
query I rowsort label-4265
SELECT - COALESCE ( - MIN ( 55 ), - ( + + 24 ) + - 12 )
----
55

query I rowsort
SELECT - 66 + - + ( 82 ) * + + 61
----
-5068

query I rowsort
SELECT + 72 * 3 AS col0
----
216

onlyif mysql # aggregate syntax: 
query II rowsort label-4268
SELECT DISTINCT ( - - 11 ) col2, COUNT( * ) AS col1
----
11
1

skipif mysql # not compatible
query II rowsort label-4268
SELECT DISTINCT ( - - 11 ) col2, COUNT ( * ) AS col1
----
11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT - MIN( DISTINCT - 51 ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-4269
SELECT - MIN ( DISTINCT - 51 ) AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - 19 + COUNT( * ) + - 62
----
-80

skipif mysql # not compatible
query I rowsort label-4270
SELECT - 19 + COUNT ( * ) + - 62
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4271
SELECT DISTINCT CAST( 27 AS SIGNED ) AS col2, + 36
----
27
36

skipif mysql # not compatible
query II rowsort label-4271
SELECT DISTINCT CAST ( 27 AS INTEGER ) AS col2, + 36
----
27
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4272
SELECT + CASE - AVG ( DISTINCT + 40 ) WHEN + 89 THEN - 48 * - COUNT( 98 ) WHEN - - CAST( + MIN( - - NULLIF ( + COALESCE ( + CAST( NULL AS SIGNED ), 91, - 96 ), - - 36 ) ) AS SIGNED ) - + 36 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4272
SELECT + CASE - AVG ( DISTINCT + 40 ) WHEN + 89 THEN - 48 * - COUNT ( 98 ) WHEN - - CAST ( + MIN ( - - NULLIF ( + COALESCE ( + CAST ( NULL AS INTEGER ), 91, - 96 ), - - 36 ) ) AS INTEGER ) - + 36 THEN NULL END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT ALL + CAST( + - 6 AS SIGNED )
----
-6

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL + CAST ( + - 6 AS INTEGER )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4274
SELECT - 48 / + CAST( NULL AS SIGNED ) + 12 + + - ( - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4274
SELECT - 48 / + CAST ( NULL AS INTEGER ) + 12 + + - ( - 30 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4275
SELECT ( - - 92 ) DIV 1 + + 3 * - 31 AS col0, - 53 AS col1
----
-1
-53

skipif mysql # not compatible
query II rowsort label-4275
SELECT ( - - 92 ) / 1 + + 3 * - 31 AS col0, - 53 AS col1
----
-1
-53

query I rowsort
SELECT - 0 * + ( 91 ) * + + 36 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT + COUNT( * ) * + 52, + COUNT( * ) AS col0
----
52
1

skipif mysql # not compatible
query II rowsort label-4277
SELECT + COUNT ( * ) * + 52, + COUNT ( * ) AS col0
----
52
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT 79 / AVG ( + COALESCE ( + 78, + 98 * + - 72 + - - 13 ) ) / + 87 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT 79 / AVG ( + COALESCE ( + 78, + 98 * + - 72 + - - 13 ) ) / + 87 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL 64 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL 64 / 44
----
1

query I rowsort
SELECT DISTINCT - 14 + 50 + + 74
----
110

query I rowsort
SELECT + 12 * + + 73
----
876

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT ALL + 81 + 99 * + COUNT( * ) AS col1
----
180

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL + 81 + 99 * + COUNT ( * ) AS col1
----
180

query II rowsort
SELECT DISTINCT 9 + + 95 AS col0, 94 AS col1
----
104
94

query II rowsort
SELECT 84 * 0 AS col1, + 11 AS col1
----
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT + SUM( ALL 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-4285
SELECT + SUM ( ALL 5 ) AS col0
----
5

query I rowsort
SELECT - 37 * - - 58 + + 19
----
-2127

query I rowsort
SELECT ALL ( + 84 ) + - 76 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + ( - NULLIF ( - + COUNT( * ), 49 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT + ( - NULLIF ( - + COUNT ( * ), 49 ) )
----
1

query I rowsort
SELECT 94 + 56 + - 95 AS col0
----
55

query I rowsort
SELECT ALL 93 - + - 42
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT DISTINCT - NULLIF ( 24, - - COUNT( * ) * + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - NULLIF ( 24, - - COUNT ( * ) * + COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT 32 * - - COUNT( * ) * 38 AS col1
----
1216

skipif mysql # not compatible
query I rowsort label-4292
SELECT 32 * - - COUNT ( * ) * 38 AS col1
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT CASE + + 59 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN + 49 THEN + + CAST( NULL AS SIGNED ) * 17 * - COUNT( * ) + 18 * + 63 END + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT CASE + + 59 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN + 49 THEN + + CAST ( NULL AS INTEGER ) * 17 * - COUNT ( * ) + 18 * + 63 END + COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT 48 + + 34 * - 62 + - - 52
----
-2008

query I rowsort
SELECT 58 * + + 75
----
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-4296
SELECT 94 AS col0, COALESCE ( + + MAX( + 95 ), COUNT( * ) )
----
94
95

skipif mysql # not compatible
query II rowsort label-4296
SELECT 94 AS col0, COALESCE ( + + MAX ( + 95 ), COUNT ( * ) )
----
94
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4297
SELECT 64 DIV + COUNT( * ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4297
SELECT 64 / + COUNT ( * ) AS col2
----
64

query I rowsort
SELECT DISTINCT + 53 * 45
----
2385

query II rowsort
SELECT 48 * - 44 * + 73, + 5 col0
----
-154176
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT + 9 DIV 58 col2
----
0

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + 9 / 58 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4301
SELECT CAST( NULL AS SIGNED ) + CASE 81 WHEN + - 14 THEN NULL WHEN - + COUNT( * ) THEN + COALESCE ( + 44, + 92 * 72 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT CAST ( NULL AS INTEGER ) + CASE 81 WHEN + - 14 THEN NULL WHEN - + COUNT ( * ) THEN + COALESCE ( + 44, + 92 * 72 ) END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT ALL - 64 + 93 + COUNT( * ) - - 1 DIV - COUNT( * ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - 64 + 93 + COUNT ( * ) - - 1 / - COUNT ( * ) AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4303
SELECT DISTINCT + 9 DIV 89 DIV - 44 * + 68 * 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT + 9 / 89 / - 44 * + 68 * 39 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4304
SELECT + 90 AS col0, 82 * - + CASE + COUNT( * ) WHEN - - NULLIF ( COUNT( 97 ), ( - - 30 ) + + 89 ) * + MIN( + 14 ) - + COUNT( * ) THEN NULL WHEN - ( + - MIN( DISTINCT - + 47 ) ) * + 76 THEN - 96 + + 82 - + 82 WHEN + 28 - 90 - - 95 - - + 93 THEN NULL ELSE NULL END + - SUM( DISTINCT 45 ) AS col1
----
90
NULL

skipif mysql # not compatible
query II rowsort label-4304
SELECT + 90 AS col0, 82 * - + CASE + COUNT ( * ) WHEN - - NULLIF ( COUNT ( 97 ), ( - - 30 ) + + 89 ) * + MIN ( + 14 ) - + COUNT ( * ) THEN NULL WHEN - ( + - MIN ( DISTINCT - + 47 ) ) * + 76 THEN - 96 + + 82 - + 82 WHEN + 28 - 90 - - 95 - - + 93 THEN NULL ELSE NULL END + - SUM ( DISTINCT 45 ) AS col1
----
90
NULL

query I rowsort
SELECT ALL + 91 * + 95 AS col1
----
8645

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4306
SELECT 0 * + 57 / + - 13 - CAST( NULL AS SIGNED ), + 85 + + - 12 AS col2
----
NULL
73

skipif mysql # not compatible
query II rowsort label-4306
SELECT 0 * + 57 / + - 13 - CAST ( NULL AS INTEGER ), + 85 + + - 12 AS col2
----
NULL
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL - 64 + - 3 + - - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL - 64 + - 3 + - - COUNT ( * ) AS col2
----
-66

query I rowsort
SELECT DISTINCT + 63 + 23
----
86

query I rowsort
SELECT ALL 36 + + 50 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - ( - MAX( - 16 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-4310
SELECT - ( - MAX ( - 16 ) )
----
-16

query I rowsort
SELECT - - 88 * + + 3 - - ( - - 73 )
----
337

query I rowsort
SELECT ALL + - 26 + + - 63 + + ( - 71 )
----
-160

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT - 94 DIV 34 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4313
SELECT - 94 / 34 AS col0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4314
SELECT 32 + 36 DIV - 60
----
32

skipif mysql # not compatible
query I rowsort label-4314
SELECT 32 + 36 / - 60
----
32

query I rowsort
SELECT - - 58 * + 55 + - 22
----
3168

query I rowsort
SELECT ALL - ( - 91 ) * - 49 * + + 69
----
-307671

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4317
SELECT DISTINCT + 75 DIV + - 51 * - + COUNT( * ) AS col1, + NULLIF ( + - COUNT( * ), - 40 ), + COUNT( * ) AS col0
----
1
-1
1

skipif mysql # not compatible
query III rowsort label-4317
SELECT DISTINCT + 75 / + - 51 * - + COUNT ( * ) AS col1, + NULLIF ( + - COUNT ( * ), - 40 ), + COUNT ( * ) AS col0
----
1
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT 88 + 9 + 62 + COUNT( DISTINCT COALESCE ( 18, - + 31 + - 34 * - ( NULLIF ( + NULLIF ( + 13, - - 62 + + + NULLIF ( - 57, - 65 + - 62 * 57 ) ), + 80 * + 0 ) ) * 87 * + + 37 ) ) * - 12 AS col2
----
147

skipif mysql # not compatible
query I rowsort label-4318
SELECT 88 + 9 + 62 + COUNT ( DISTINCT COALESCE ( 18, - + 31 + - 34 * - ( NULLIF ( + NULLIF ( + 13, - - 62 + + + NULLIF ( - 57, - 65 + - 62 * 57 ) ), + 80 * + 0 ) ) * 87 * + + 37 ) ) * - 12 AS col2
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4319
SELECT - + NULLIF ( - + CAST( + - 87 AS SIGNED ), - - 19 * - 78 ) AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4319
SELECT - + NULLIF ( - + CAST ( + - 87 AS INTEGER ), - - 19 * - 78 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4320
SELECT NULLIF ( + - SUM( DISTINCT - + 28 ), - 41 ) / + - 20 + - - ( - - COUNT( - 26 ) ) + CAST( NULL AS SIGNED ), 17 AS col1
----
NULL
17

skipif mysql # not compatible
query II rowsort label-4320
SELECT NULLIF ( + - SUM ( DISTINCT - + 28 ), - 41 ) / + - 20 + - - ( - - COUNT ( - 26 ) ) + CAST ( NULL AS INTEGER ), 17 AS col1
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT COUNT( * ) + MIN( + 23 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4321
SELECT COUNT ( * ) + MIN ( + 23 ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4322
SELECT ALL COUNT( * ) * - 60 AS col2, 20
----
-60
20

skipif mysql # not compatible
query II rowsort label-4322
SELECT ALL COUNT ( * ) * - 60 AS col2, 20
----
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT ALL ( + 19 ) + - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL ( + 19 ) + - - COUNT ( * )
----
20

query I rowsort
SELECT 73 - + - 88 AS col2
----
161

onlyif mysql # aggregate syntax: 
query II rowsort label-4325
SELECT DISTINCT 88 + - COUNT( ALL - 36 ) + - 67 - - 30, + ( + - 71 ) + + ( + + COUNT( * ) ) col0
----
50
-70

skipif mysql # not compatible
query II rowsort label-4325
SELECT DISTINCT 88 + - COUNT ( ALL - 36 ) + - 67 - - 30, + ( + - 71 ) + + ( + + COUNT ( * ) ) col0
----
50
-70

query II rowsort
SELECT + 53 + 26 AS col1, + 72
----
79
72

query I rowsort
SELECT ALL + 5 + ( 71 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + ( - 56 ) + 28 + COUNT( * ) AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4328
SELECT + ( - 56 ) + 28 + COUNT ( * ) AS col0
----
-27

query I rowsort
SELECT ALL 35 + + 47 AS col0
----
82

query I rowsort
SELECT DISTINCT 53 * - 22
----
-1166

query I rowsort
SELECT ALL - 32 + - + 65
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4332
SELECT + - COUNT( * ) * + + 55 + - 60 + + COUNT( * ) + + - SUM( DISTINCT + - 15 ) + - 89 - + 69 / + 97 + - 34 * - - CAST( NULL AS SIGNED ) + - + 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT + - COUNT ( * ) * + + 55 + - 60 + + COUNT ( * ) + + - SUM ( DISTINCT + - 15 ) + - 89 - + 69 / + 97 + - 34 * - - CAST ( NULL AS INTEGER ) + - + 16 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + - COUNT( DISTINCT 2 ) * + 69
----
-69

skipif mysql # not compatible
query I rowsort label-4333
SELECT + - COUNT ( DISTINCT 2 ) * + 69
----
-69

query I rowsort
SELECT ALL + CASE WHEN NULL BETWEEN ( NULL ) AND + 39 THEN NULL WHEN NOT - 94 NOT BETWEEN + 12 AND 52 * - ( + 78 ) THEN + NULLIF ( - - ( + 35 ), 24 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4335
SELECT - + 4 + + 62, 63 + - 99 * - - COUNT( * ) col2
----
58
-36

skipif mysql # not compatible
query II rowsort label-4335
SELECT - + 4 + + 62, 63 + - 99 * - - COUNT ( * ) col2
----
58
-36

query II rowsort
SELECT - 69 * + - 42 AS col1, + 63 * + 3
----
2898
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - COUNT( * ) * + + 71 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( * ) * + + 71 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL - 81 / - - CASE + SUM( + - 22 ) WHEN + 7 * 98 * + 62 - + + 76 THEN + 27 END * + 20 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 81 / - - CASE + SUM ( + - 22 ) WHEN + 7 * 98 * + 62 - + + 76 THEN + 27 END * + 20 + + 89
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT - 83 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT - 83 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 66 * + 26 + + - 85
----
-1801

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT + NULLIF ( - 10, - 10 * SUM( 15 ) + + - 3 ) * - 37 * + 7 - + 22 AS col2
----
2568

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT + NULLIF ( - 10, - 10 * SUM ( 15 ) + + - 3 ) * - 37 * + 7 - + 22 AS col2
----
2568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4342
SELECT - + 26 + COALESCE ( - COUNT( * ), NULLIF ( - COALESCE ( - 39, + CASE + CASE - ( - - AVG ( - + CAST( NULL AS SIGNED ) ) ) WHEN + 4 - - COUNT( * ) * + 93 THEN + 1 END WHEN + ( - + 99 ) THEN - 11 * + 56 ELSE NULL END, 92 + - 69 ), - + 74 ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4342
SELECT - + 26 + COALESCE ( - COUNT ( * ), NULLIF ( - COALESCE ( - 39, + CASE + CASE - ( - - AVG ( - + CAST ( NULL AS INTEGER ) ) ) WHEN + 4 - - COUNT ( * ) * + 93 THEN + 1 END WHEN + ( - + 99 ) THEN - 11 * + 56 ELSE NULL END, 92 + - 69 ), - + 74 ) ) AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT ALL + + COUNT( 45 ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL + + COUNT ( 45 ) * - 71
----
-71

query I rowsort
SELECT - - 52 * - 70 AS col0
----
-3640

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL + ( - - COUNT( * ) ) * - + 52
----
-52

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL + ( - - COUNT ( * ) ) * - + 52
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - 42 + - 43 * 82 + COUNT( * ) - - COUNT( * )
----
-3566

skipif mysql # not compatible
query I rowsort label-4346
SELECT - 42 + - 43 * 82 + COUNT ( * ) - - COUNT ( * )
----
-3566

query I rowsort
SELECT ALL + 96 * 42 * - 65 AS col1
----
-262080

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT - 86 * + COUNT( * ) * - 83 AS col1
----
7138

skipif mysql # not compatible
query I rowsort label-4348
SELECT - 86 * + COUNT ( * ) * - 83 AS col1
----
7138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4349
SELECT - CASE - - 6 WHEN - - 99 / + 51 * + 27 THEN NULL WHEN + 27 - + - MIN( ALL - 11 ) THEN + 54 WHEN 38 THEN - 48 / - 7 - + 35 END * + 35 + - CAST( - 59 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT - CASE - - 6 WHEN - - 99 / + 51 * + 27 THEN NULL WHEN + 27 - + - MIN ( ALL - 11 ) THEN + 54 WHEN 38 THEN - 48 / - 7 - + 35 END * + 35 + - CAST ( - 59 AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4350
SELECT DISTINCT 55 DIV CAST( + 73 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT 55 / CAST ( + 73 AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT ALL - CAST( NULL AS SIGNED ) * + 61 + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4351
SELECT ALL - CAST ( NULL AS INTEGER ) * + 61 + + 15 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT ALL - 36 + - COUNT( * ) * - 0 + - 7 + - - 85 * + + 99
----
8372

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL - 36 + - COUNT ( * ) * - 0 + - 7 + - - 85 * + + 99
----
8372

query I rowsort
SELECT ALL 95 + - 92
----
3

query I rowsort
SELECT ALL 54 * 77 AS col2
----
4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT + 66 + - + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 66 + - + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4356
SELECT ALL + ( ( 50 ) ) + - 99 + - 58 AS col1, 64 + COUNT( * ) + 7 AS col1
----
-107
72

skipif mysql # not compatible
query II rowsort label-4356
SELECT ALL + ( ( 50 ) ) + - 99 + - 58 AS col1, 64 + COUNT ( * ) + 7 AS col1
----
-107
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT + 30 DIV 35
----
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT + 30 / 35
----
0

query I rowsort
SELECT ALL 12 + - 3
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-4359
SELECT 80, 55 DIV COALESCE ( - + 70, - - 89 ) AS col2
----
80
0

skipif mysql # not compatible
query II rowsort label-4359
SELECT 80, 55 / COALESCE ( - + 70, - - 89 ) AS col2
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT COUNT( * ) - 86 + - - 79
----
-6

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT COUNT ( * ) - 86 + - - 79
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-4361
SELECT + ( - 43 ) + - 92, CASE 53 WHEN 82 THEN - 33 DIV + + 23 WHEN + 12 * - 63 + - + 56 THEN NULL ELSE + 37 END * - 81 * 47 AS col0
----
-135
-140859

skipif mysql # not compatible
query II rowsort label-4361
SELECT + ( - 43 ) + - 92, CASE 53 WHEN 82 THEN - 33 / + + 23 WHEN + 12 * - 63 + - + 56 THEN NULL ELSE + 37 END * - 81 * 47 AS col0
----
-135
-140859

query I rowsort
SELECT ALL 71 - + 56
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT + 40 * - NULLIF ( ( + 37 ), + COALESCE ( + CASE - + 67 WHEN + 48 THEN - MAX( + + 48 ) WHEN + 15 THEN + + ( ( 77 ) ) * - 69 ELSE - 85 END, - + 90, - MAX( ALL NULLIF ( + 52, - + 72 ) ) - - 40 ) ) + + 98 * - - ( + + CASE + 36 WHEN + CAST( - COUNT( + + 4 ) AS SIGNED ) * + + 57 THEN + 43 ELSE 32 + - + ( - 85 ) * - + CAST( + - 86 AS SIGNED ) END ) - MAX( DISTINCT + 91 ) - 58
----
717887

skipif mysql # not compatible
query I rowsort label-4363
SELECT + 40 * - NULLIF ( ( + 37 ), + COALESCE ( + CASE - + 67 WHEN + 48 THEN - MAX ( + + 48 ) WHEN + 15 THEN + + ( ( 77 ) ) * - 69 ELSE - 85 END, - + 90, - MAX ( ALL NULLIF ( + 52, - + 72 ) ) - - 40 ) ) + + 98 * - - ( + + CASE + 36 WHEN + CAST ( - COUNT ( + + 4 ) AS INTEGER ) * + + 57 THEN + 43 ELSE 32 + - + ( - 85 ) * - + CAST ( + - 86 AS INTEGER ) END ) - MAX ( DISTINCT + 91 ) - 58
----
717887

query I rowsort
SELECT + 10 + 61 + ( 5 )
----
76

query I rowsort
SELECT ALL 98 * + 32 AS col1
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT COALESCE ( - - 79, 17 * - COUNT( * ) * + - 27 + + ( - COUNT( * ) ) + - + COUNT( * ) ) * - 10 * - 34 - - 4
----
26864

skipif mysql # not compatible
query I rowsort label-4366
SELECT COALESCE ( - - 79, 17 * - COUNT ( * ) * + - 27 + + ( - COUNT ( * ) ) + - + COUNT ( * ) ) * - 10 * - 34 - - 4
----
26864

onlyif mysql # DIV for integer division: 
query I rowsort label-4367
SELECT ALL - 41 DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-4367
SELECT ALL - 41 / 69
----
0

query I rowsort
SELECT DISTINCT 55 * - 1 + - 69 + + 51 AS col2
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4369
SELECT ALL - 92 * + + 60 * 84 * + - CAST( NULL AS SIGNED ) + + - NULLIF ( + MIN( 90 ), + 43 + - 93 + + + ( - COUNT( * ) ) ) - - - COUNT( * ) + + 84 * + + 88 + + 27 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4369
SELECT ALL - 92 * + + 60 * 84 * + - CAST ( NULL AS INTEGER ) + + - NULLIF ( + MIN ( 90 ), + 43 + - 93 + + + ( - COUNT ( * ) ) ) - - - COUNT ( * ) + + 84 * + + 88 + + 27 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT ALL + ( + MAX( 9 ) ) AS col1, - COUNT( * ) AS col0
----
9
-1

skipif mysql # not compatible
query II rowsort label-4370
SELECT ALL + ( + MAX ( 9 ) ) AS col1, - COUNT ( * ) AS col0
----
9
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4371
SELECT 37 DIV - - 7 + + - 51
----
-46

skipif mysql # not compatible
query I rowsort label-4371
SELECT 37 / - - 7 + + - 51
----
-46

query I rowsort
SELECT + 76 * + 92 - + + 13 + - + 26
----
6953

onlyif mysql # DIV for integer division: 
query I rowsort label-4373
SELECT + ( + 48 ) DIV - 3 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-4373
SELECT + ( + 48 ) / - 3 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT - 39 * 10 + 18 * + - ( COUNT( * ) ) AS col0
----
-408

skipif mysql # not compatible
query I rowsort label-4374
SELECT - 39 * 10 + 18 * + - ( COUNT ( * ) ) AS col0
----
-408

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT + 88 * 20 DIV 19 - + 55 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 88 * 20 / 19 - + 55 AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4376
SELECT - - COUNT( * ) * + + 43 DIV ( + CAST( - + 42 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4376
SELECT - - COUNT ( * ) * + + 43 / ( + CAST ( - + 42 AS INTEGER ) )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT ALL + 21 / 51 * + 50 + - CASE - CAST( - + 98 AS SIGNED ) WHEN + NULLIF ( + + 74, - + 29 + 56 + 82 * + + 96 ) THEN 54 * - 46 + + - 3 / - 97 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL + 21 / 51 * + 50 + - CASE - CAST ( - + 98 AS INTEGER ) WHEN + NULLIF ( + + 74, - + 29 + 56 + 82 * + + 96 ) THEN 54 * - 46 + + - 3 / - 97 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4378
SELECT DISTINCT + + CAST( + + ( - NULLIF ( + 52, COUNT( DISTINCT - 17 ) + 47 ) ) AS SIGNED )
----
-52

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT + + CAST ( + + ( - NULLIF ( + 52, COUNT ( DISTINCT - 17 ) + 47 ) ) AS INTEGER )
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT ALL + 65 DIV + - COUNT( * ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-4379
SELECT ALL + 65 / + - COUNT ( * ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL + 95 * + 24 + - COUNT( * ) AS col2
----
2279

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL + 95 * + 24 + - COUNT ( * ) AS col2
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT + SUM( + 11 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-4381
SELECT + SUM ( + 11 ) AS col1
----
11

query I rowsort
SELECT - 84 + - + NULLIF ( + 66, 62 * - 58 ) AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL - COALESCE ( 54, + COUNT( * ) ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL - COALESCE ( 54, + COUNT ( * ) ) col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT SUM( - + 22 ) * 30 + + ( 57 ) AS col1
----
-603

skipif mysql # not compatible
query I rowsort label-4384
SELECT SUM ( - + 22 ) * 30 + + ( 57 ) AS col1
----
-603

query I rowsort
SELECT ALL - ( 36 ) + 27 AS col1
----
-9

query I rowsort
SELECT 73 + + 92 AS col2
----
165

query I rowsort
SELECT 82 + - 77
----
5

query I rowsort
SELECT ALL - 78 * 88 AS col2
----
-6864

query I rowsort
SELECT 8 + 12 + + + 26 AS col1
----
46

query I rowsort
SELECT 79 * - 7 AS col2
----
-553

onlyif mysql # aggregate syntax: 
query II rowsort label-4391
SELECT - 94 AS col0, + COUNT( * )
----
-94
1

skipif mysql # not compatible
query II rowsort label-4391
SELECT - 94 AS col0, + COUNT ( * )
----
-94
1

query I rowsort
SELECT ( 64 ) + + 89
----
153

onlyif mysql # aggregate syntax: 
query II rowsort label-4393
SELECT + COUNT( * ) + + 64 + 58 * - 39, + 98 * + 25 col1
----
-2197
2450

skipif mysql # not compatible
query II rowsort label-4393
SELECT + COUNT ( * ) + + 64 + 58 * - 39, + 98 * + 25 col1
----
-2197
2450

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + COUNT( * ) * - 45
----
-45

skipif mysql # not compatible
query I rowsort label-4394
SELECT + COUNT ( * ) * - 45
----
-45

query I rowsort
SELECT ( + 51 ) + 33 + 24 + - 82 * - - 20 * + 3
----
-4812

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT ALL + + 3 * - COUNT( * ), 15 AS col2
----
-3
15

skipif mysql # not compatible
query II rowsort label-4396
SELECT ALL + + 3 * - COUNT ( * ), 15 AS col2
----
-3
15

query I rowsort
SELECT DISTINCT - 12 * + 27 AS col1
----
-324

query I rowsort
SELECT DISTINCT + 54 * + + 81 AS col2
----
4374

onlyif mysql # aggregate syntax: 
query II rowsort label-4399
SELECT ALL 54 AS col0, ( + CASE - - 63 WHEN + CASE + COUNT( * ) WHEN 7 THEN NULL WHEN + 87 THEN - 34 / + 92 + 92 END THEN - - 33 WHEN 66 THEN NULL ELSE NULL END )
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4399
SELECT ALL 54 AS col0, ( + CASE - - 63 WHEN + CASE + COUNT ( * ) WHEN 7 THEN NULL WHEN + 87 THEN - 34 / + 92 + 92 END THEN - - 33 WHEN 66 THEN NULL ELSE NULL END )
----
54
NULL

query I rowsort
SELECT 14 * + - 79 * 74 AS col2
----
-81844

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4401
SELECT DISTINCT - + SUM( ALL 16 ) * 53 DIV 48 + 7 + 45 - 77
----
-42

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT - + SUM ( ALL 16 ) * 53 / 48 + 7 + 45 - 77
----
-42

query II rowsort
SELECT + 55 AS col0, + 89 + - 65
----
55
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4403
SELECT - 23 DIV - 71 + + 15 + - 69 - - 19 * + MIN( DISTINCT 75 ) - + MIN( 96 ) + - 0
----
1275

skipif mysql # not compatible
query I rowsort label-4403
SELECT - 23 / - 71 + + 15 + - 69 - - 19 * + MIN ( DISTINCT 75 ) - + MIN ( 96 ) + - 0
----
1275

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT ALL - - MAX( + - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - - MAX ( + - 9 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4405
SELECT NULLIF ( - MIN( - + 21 ), 28 - + ( - - 95 ) / NULLIF ( + 36, + NULLIF ( + 56, CAST( NULL AS DECIMAL ) ) ) * + 51 * + COUNT( * ) * - 38 + + + NULLIF ( - COUNT( * ), + 9 ) + - + 24 * 70 )
----
21

skipif mysql # not compatible
query I rowsort label-4405
SELECT NULLIF ( - MIN ( - + 21 ), 28 - + ( - - 95 ) / NULLIF ( + 36, + NULLIF ( + 56, CAST ( NULL AS REAL ) ) ) * + 51 * + COUNT ( * ) * - 38 + + + NULLIF ( - COUNT ( * ), + 9 ) + - + 24 * 70 )
----
21

query I rowsort
SELECT 53 + 66
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT + - MAX( - ( + + 78 ) ) col1
----
78

skipif mysql # not compatible
query I rowsort label-4407
SELECT + - MAX ( - ( + + 78 ) ) col1
----
78

query I rowsort
SELECT DISTINCT + 38 + 67 col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT + - ( - + CASE - 40 WHEN + - 83 THEN - + COUNT( * ) * MAX( + 0 ) * 30 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4409
SELECT + - ( - + CASE - 40 WHEN + - 83 THEN - + COUNT ( * ) * MAX ( + 0 ) * 30 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4410
SELECT + 37 * - 65 DIV COUNT( * ) * - 96 AS col1, 70 AS col2
----
230880
70

skipif mysql # not compatible
query II rowsort label-4410
SELECT + 37 * - 65 / COUNT ( * ) * - 96 AS col1, 70 AS col2
----
230880
70

query I rowsort
SELECT ALL - 5 + + 18
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4412
SELECT DISTINCT + COALESCE ( - CASE + + 28 WHEN - 53 + - ( 8 ) + + 49 * 56 * 7 THEN 6 * - - CASE - 48 WHEN ( + CAST( NULL AS SIGNED ) ) + - 49 * + 44 * 41 - 26 THEN NULL WHEN - 30 + + NULLIF ( 31, + 78 ) THEN + 52 END END, 44 * - 10 * + COUNT( * ) * + 69 ) + - COUNT( * ) col2
----
-30361

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT + COALESCE ( - CASE + + 28 WHEN - 53 + - ( 8 ) + + 49 * 56 * 7 THEN 6 * - - CASE - 48 WHEN ( + CAST ( NULL AS INTEGER ) ) + - 49 * + 44 * 41 - 26 THEN NULL WHEN - 30 + + NULLIF ( 31, + 78 ) THEN + 52 END END, 44 * - 10 * + COUNT ( * ) * + 69 ) + - COUNT ( * ) col2
----
-30361

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL 60 + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 60 + COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT DISTINCT + SUM( - - 51 ) + - - 72
----
123

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + SUM ( - - 51 ) + - - 72
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT ALL + 36 + - 24 * CASE 96 WHEN - 27 THEN - 57 + - 21 WHEN + - 54 / 64 THEN NULL ELSE + CAST( NULL AS SIGNED ) END * + - MAX( DISTINCT - + 84 ) + - - 95 + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT ALL + 36 + - 24 * CASE 96 WHEN - 27 THEN - 57 + - 21 WHEN + - 54 / 64 THEN NULL ELSE + CAST ( NULL AS INTEGER ) END * + - MAX ( DISTINCT - + 84 ) + - - 95 + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT 64 + - MIN( ALL - - 45 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-4416
SELECT 64 + - MIN ( ALL - - 45 ) AS col0
----
19

query I rowsort
SELECT DISTINCT 37 + + - 36
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4418
SELECT ( + 38 ) DIV - ( + ( - 39 ) ) + + 49
----
49

skipif mysql # not compatible
query I rowsort label-4418
SELECT ( + 38 ) / - ( + ( - 39 ) ) + + 49
----
49

query I rowsort
SELECT 82 * + 92 - + 46 + 68 - + ( - + 76 ) AS col0
----
7642

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL 36 - COUNT( * ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL 36 - COUNT ( * ) AS col0
----
35

query I rowsort
SELECT ALL + 46 * - 37
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT DISTINCT - SUM( DISTINCT ( 21 ) ) * 37 * + COUNT( * )
----
-777

skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT - SUM ( DISTINCT ( 21 ) ) * 37 * + COUNT ( * )
----
-777

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT DISTINCT 71 - - CASE - 38 WHEN + 10 THEN NULL ELSE COUNT( * ) - + 63 END
----
9

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT 71 - - CASE - 38 WHEN + 10 THEN NULL ELSE COUNT ( * ) - + 63 END
----
9

query I rowsort
SELECT 98 + + - 23 + + 63
----
138

query I rowsort
SELECT ALL - 1 * + 73 AS col1
----
-73

query I rowsort
SELECT 8 + 82 + + 29 * + 39 AS col2
----
1221

query I rowsort
SELECT 88 * - + 40 AS col2
----
-3520

query II rowsort
SELECT 24 * - + 8, + 4 + - 45 * - ( + - 63 ) col2
----
-192
-2831

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4429
SELECT ALL - + 1 * + + 78 AS col2, + MIN( - 82 ) DIV ( + 92 ) + + 19
----
-78
19

skipif mysql # not compatible
query II rowsort label-4429
SELECT ALL - + 1 * + + 78 AS col2, + MIN ( - 82 ) / ( + 92 ) + + 19
----
-78
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT NULLIF ( + 99, - + MIN( - 6 ) ) col2
----
99

skipif mysql # not compatible
query I rowsort label-4430
SELECT NULLIF ( + 99, - + MIN ( - 6 ) ) col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT DISTINCT + ( - CASE - - 97 WHEN ( + COUNT( * ) ) THEN NULL WHEN + 44 THEN + 11 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT + ( - CASE - - 97 WHEN ( + COUNT ( * ) ) THEN NULL WHEN + 44 THEN + 11 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT - COUNT( 76 ) * + 36 * - 23 * + COUNT( * ) + + + 52 - + + 88 * - COUNT( * ) AS col1
----
968

skipif mysql # not compatible
query I rowsort label-4432
SELECT - COUNT ( 76 ) * + 36 * - 23 * + COUNT ( * ) + + + 52 - + + 88 * - COUNT ( * ) AS col1
----
968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4433
SELECT 32 + - CAST( + 0 AS SIGNED ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-4433
SELECT 32 + - CAST ( + 0 AS INTEGER ) AS col2
----
32

query I rowsort
SELECT ( + - 80 ) col0
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-4435
SELECT ALL + 59 DIV + - 65
----
0

skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + 59 / + - 65
----
0

query I rowsort
SELECT ALL - 9 + - - 79 AS col0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT MIN( DISTINCT 88 ) AS col0, - 25 col2
----
88
-25

skipif mysql # not compatible
query II rowsort label-4437
SELECT MIN ( DISTINCT 88 ) AS col0, - 25 col2
----
88
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-4438
SELECT - 4 * COUNT( * ) - + 71 AS col1, + 65 AS col1
----
-75
65

skipif mysql # not compatible
query II rowsort label-4438
SELECT - 4 * COUNT ( * ) - + 71 AS col1, + 65 AS col1
----
-75
65

query I rowsort
SELECT DISTINCT + 65 * 10 * 31 AS col2
----
20150

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT DISTINCT - 26 * COUNT( * ) + - + ( + 41 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT - 26 * COUNT ( * ) + - + ( + 41 ) AS col2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4441
SELECT COUNT( * ) * CAST( - - NULLIF ( + 83, - CAST( NULL AS SIGNED ) ) AS SIGNED ) + + - 91 DIV - 58 AS col0, + CASE - 34 WHEN - - 54 * - 2 * + - ( + + 59 ) * - + 76 - + - COUNT( * ) + + + 69 + + 74 THEN + - 25 * + 20 - - + 57 END AS col2
----
84
NULL

skipif mysql # not compatible
query II rowsort label-4441
SELECT COUNT ( * ) * CAST ( - - NULLIF ( + 83, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + - 91 / - 58 AS col0, + CASE - 34 WHEN - - 54 * - 2 * + - ( + + 59 ) * - + 76 - + - COUNT ( * ) + + + 69 + + 74 THEN + - 25 * + 20 - - + 57 END AS col2
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT COUNT( DISTINCT + 55 )
----
1

skipif mysql # not compatible
query I rowsort label-4442
SELECT COUNT ( DISTINCT + 55 )
----
1

query II rowsort
SELECT + 50, 12 AS col0
----
50
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT MIN( DISTINCT - - 21 )
----
21

skipif mysql # not compatible
query I rowsort label-4444
SELECT MIN ( DISTINCT - - 21 )
----
21

query I rowsort
SELECT ALL 81 * - ( + + 19 ) + 3 + + 74 AS col2
----
-1462

query I rowsort
SELECT ALL 25 * - 99
----
-2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT SUM( ALL + ( - + 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-4447
SELECT SUM ( ALL + ( - + 19 ) )
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-4448
SELECT ALL 36 * + 59 * + COUNT( * ) * 38, 10 * + 95 * - 96 col2
----
80712
-91200

skipif mysql # not compatible
query II rowsort label-4448
SELECT ALL 36 * + 59 * + COUNT ( * ) * 38, 10 * + 95 * - 96 col2
----
80712
-91200

query I rowsort
SELECT + COALESCE ( + 47, + - 7, + - 39, - - 59 + + 76 ) col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT DISTINCT ( - COUNT( * ) ) * - 13 - 59
----
-46

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT ( - COUNT ( * ) ) * - 13 - 59
----
-46

query I rowsort
SELECT + ( - 7 ) * + 42
----
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL 89 * + COALESCE ( 2, + - ( + 68 ), CAST( + 44 AS SIGNED ), + SUM( DISTINCT - 58 ) + - COUNT( * ) ) AS col0
----
178

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL 89 * + COALESCE ( 2, + - ( + 68 ), CAST ( + 44 AS INTEGER ), + SUM ( DISTINCT - 58 ) + - COUNT ( * ) ) AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT MAX( - 67 ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-4453
SELECT MAX ( - 67 ) AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4454
SELECT + ( - + CAST( NULL AS SIGNED ) ) * + COUNT( * ) * + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4454
SELECT + ( - + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) * + + 14
----
NULL

query I rowsort
SELECT - 53 * + 84
----
-4452

query I rowsort
SELECT + 17 + + 76
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT ALL COUNT( * ) DIV - 94 col2
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL COUNT ( * ) / - 94 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT - ( COUNT( * ) ) + + 73 AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4458
SELECT - ( COUNT ( * ) ) + + 73 AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4459
SELECT ALL + CASE - - 67 WHEN + 37 THEN NULL ELSE + CASE - 70 WHEN + CAST( + 11 AS SIGNED ) / - 38 + + 68 THEN + 48 END + 75 END * + 46 + - + 46 * CASE + 74 WHEN + 14 * 77 + + 88 THEN 17 ELSE NULL END / - COUNT( * ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + CASE - - 67 WHEN + 37 THEN NULL ELSE + CASE - 70 WHEN + CAST ( + 11 AS INTEGER ) / - 38 + + 68 THEN + 48 END + 75 END * + 46 + - + 46 * CASE + 74 WHEN + 14 * 77 + + 88 THEN 17 ELSE NULL END / - COUNT ( * ) + - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL ( - COALESCE ( - - 57, 21 * + 26 + - 63 + - + COUNT( * ) * - 33, + NULLIF ( - - ( - - ( + 3 ) ), 5 ) + + 17 ) ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL ( - COALESCE ( - - 57, 21 * + 26 + - 63 + - + COUNT ( * ) * - 33, + NULLIF ( - - ( - - ( + 3 ) ), 5 ) + + 17 ) ) AS col2
----
-57

query I rowsort
SELECT ALL + 4 + 45 AS col2
----
49

query I rowsort
SELECT ( + 74 ) AS col2
----
74

query I rowsort
SELECT + - 24 * + + 12 AS col1
----
-288

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4464
SELECT - - CAST( NULL AS DECIMAL ) + - - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT - - CAST ( NULL AS REAL ) + - - 55
----
NULL

query I rowsort
SELECT ALL + 13 + 82 AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL - + 60 + + 25 - - 93 * + COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL - + 60 + + 25 - - 93 * + COUNT ( * )
----
58

query I rowsort
SELECT - 36 + - 50
----
-86

query I rowsort
SELECT ALL 10 + + 84 * + 49 + + ( - - 91 ) + - 45 AS col0
----
4172

query II rowsort
SELECT ALL 73 AS col1, - 74
----
73
-74

query I rowsort
SELECT DISTINCT + - 31 + - COALESCE ( + - 19, + + ( + 52 ) ) AS col2
----
-12

query I rowsort
SELECT ALL - 78 + + 7 AS col0
----
-71

query I rowsort
SELECT ALL + - 73 + 70 AS col2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT COUNT( * ) DIV + 33 - - 95 * 35 + COALESCE ( - 10, + 14 + - 99, - + 1 DIV - 56 - + 16 * + 85 * 58, + MIN( + 89 ) ) + + + 49 + COUNT( * )
----
3365

skipif mysql # not compatible
query I rowsort label-4473
SELECT COUNT ( * ) / + 33 - - 95 * 35 + COALESCE ( - 10, + 14 + - 99, - + 1 / - 56 - + 16 * + 85 * 58, + MIN ( + 89 ) ) + + + 49 + COUNT ( * )
----
3365

query II rowsort
SELECT 8 AS col0, - 3
----
8
-3

query I rowsort
SELECT DISTINCT - 91 * - 35 * + 0 * 7 AS col1
----
0

query II rowsort
SELECT ( - 33 ) col1, 38 AS col2
----
-33
38

query I rowsort
SELECT DISTINCT + ( - 41 ) AS col2
----
-41

query I rowsort
SELECT + 59 * 29 AS col1
----
1711

query I rowsort
SELECT NULLIF ( + + NULLIF ( - 93, + 64 + 22 ), - + 42 ) AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT 47 * + ( - 68 ) + SUM( - - 1 ) - 90 * 8
----
-3915

skipif mysql # not compatible
query I rowsort label-4480
SELECT 47 * + ( - 68 ) + SUM ( - - 1 ) - 90 * 8
----
-3915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4481
SELECT NULLIF ( + + COUNT( * ), - - 68 + CAST( NULL AS SIGNED ) ), - 49 col2
----
1
-49

skipif mysql # not compatible
query II rowsort label-4481
SELECT NULLIF ( + + COUNT ( * ), - - 68 + CAST ( NULL AS INTEGER ) ), - 49 col2
----
1
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT + CAST( NULL AS SIGNED ) * 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT + CAST ( NULL AS INTEGER ) * 49
----
NULL

query I rowsort
SELECT ALL + ( + + 18 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT MIN( 82 ) * - 22
----
-1804

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT MIN ( 82 ) * - 22
----
-1804

query I rowsort
SELECT + 93 * + 9
----
837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4486
SELECT ALL - 72 * - 88 + + + COUNT( * ) + + 21 DIV 74
----
6337

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL - 72 * - 88 + + + COUNT ( * ) + + 21 / 74
----
6337

query I rowsort
SELECT DISTINCT + COALESCE ( + 84, 59 * + 58 + 33 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4488
SELECT ALL + 62 * + COUNT( * ) + + - 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL + 62 * + COUNT ( * ) + + - 62 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT DISTINCT - NULLIF ( - - CASE ( 57 ) WHEN ( + 74 ) - + 96 + COUNT( * ) + - 71 * - 39 THEN NULL WHEN + ( - + 97 ) THEN - 47 / - MIN( ALL - - 38 ) / 35 * + - 55 * 67 - - 64 + + 99 + + 14 END, - - 24 + - + 64 ) * + + 1 * - + 51 + - + 39 * 89 + - - CASE 44 WHEN + + 60 THEN NULL WHEN - 56 / - 26 THEN NULL WHEN 44 THEN - - 13 * - - 16 * + + COUNT( * ) END + - 82 * + 32 / + 88 * + NULLIF ( - 94, AVG ( DISTINCT ( - 52 ) ) * + 80 + 48 ) - ( 93 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT - NULLIF ( - - CASE ( 57 ) WHEN ( + 74 ) - + 96 + COUNT ( * ) + - 71 * - 39 THEN NULL WHEN + ( - + 97 ) THEN - 47 / - MIN ( ALL - - 38 ) / 35 * + - 55 * 67 - - 64 + + 99 + + 14 END, - - 24 + - + 64 ) * + + 1 * - + 51 + - + 39 * 89 + - - CASE 44 WHEN + + 60 THEN NULL WHEN - 56 / - 26 THEN NULL WHEN 44 THEN - - 13 * - - 16 * + + COUNT ( * ) END + - 82 * + 32 / + 88 * + NULLIF ( - 94, AVG ( DISTINCT ( - 52 ) ) * + 80 + 48 ) - ( 93 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT + 98 DIV - - 94 + + 21 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-4490
SELECT + 98 / - - 94 + + 21 AS col1
----
22

query I rowsort
SELECT ALL + 83 * 18 + 70 AS col2
----
1564

query I rowsort
SELECT DISTINCT ( + 45 )
----
45

query I rowsort
SELECT DISTINCT - ( 55 ) AS col1
----
-55

query I rowsort
SELECT DISTINCT - ( 73 ) + - + 27 AS col1
----
-100

query I rowsort
SELECT ALL - 81 + + 35
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT + + COUNT( * ) * COUNT( + - 22 ) * - + COUNT( * ) * - 43
----
43

skipif mysql # not compatible
query I rowsort label-4496
SELECT + + COUNT ( * ) * COUNT ( + - 22 ) * - + COUNT ( * ) * - 43
----
43

query I rowsort
SELECT ALL + 7 + 35
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4498
SELECT DISTINCT COUNT( * ) DIV COALESCE ( - 75, - - 68 + + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT COUNT ( * ) / COALESCE ( - 75, - - 68 + + 74 )
----
0

query I rowsort
SELECT ALL - 26 + 3
----
-23

query I rowsort
SELECT ALL - ( - 54 ) AS col1
----
54

query II rowsort
SELECT + COALESCE ( - 74, - ( + ( + - 58 ) ), + 40 ) + 27, + 54 + 37 + - - 2 - - - 57 col1
----
-47
36

query I rowsort
SELECT 7 * - 1 AS col2
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4503
SELECT ALL - + COALESCE ( + CASE - - COUNT( * ) WHEN - 78 THEN NULL WHEN 46 - + 29 THEN NULL WHEN + 74 + - - NULLIF ( 73, + + COUNT( * ) * + COUNT( * ) * - 87 + - 6 * + 96 + + + 67 ) THEN - COUNT( * ) ELSE 41 * + + 0 END, + - NULLIF ( + COUNT( * ), + COUNT( * ) * + 79 + + 51 + + CAST( 20 AS DECIMAL ) ) * - 42 + + 8, + MAX( DISTINCT + - 56 ) + + 70 ) - + + 54 AS col0
----
-54

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL - + COALESCE ( + CASE - - COUNT ( * ) WHEN - 78 THEN NULL WHEN 46 - + 29 THEN NULL WHEN + 74 + - - NULLIF ( 73, + + COUNT ( * ) * + COUNT ( * ) * - 87 + - 6 * + 96 + + + 67 ) THEN - COUNT ( * ) ELSE 41 * + + 0 END, + - NULLIF ( + COUNT ( * ), + COUNT ( * ) * + 79 + + 51 + + CAST ( 20 AS REAL ) ) * - 42 + + 8, + MAX ( DISTINCT + - 56 ) + + 70 ) - + + 54 AS col0
----
-54

query I rowsort
SELECT DISTINCT + - 78 * ( - 72 ) AS col0
----
5616

query I rowsort
SELECT - 50 - + 3 * 19 col0
----
-107

query I rowsort
SELECT 30 * - 94 col1
----
-2820

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL COALESCE ( - 20, 61 * - 59 * COUNT( - 44 ) * - 52 * - 8 + 18 ) AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL COALESCE ( - 20, 61 * - 59 * COUNT ( - 44 ) * - 52 * - 8 + 18 ) AS col0
----
-20

query I rowsort
SELECT 83 * - 50
----
-4150

onlyif mysql # aggregate syntax: 
query II rowsort label-4509
SELECT ALL - COUNT( * ) AS col0, 94 * 48 * + + 49
----
-1
221088

skipif mysql # not compatible
query II rowsort label-4509
SELECT ALL - COUNT ( * ) AS col0, 94 * 48 * + + 49
----
-1
221088

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT COUNT( * ) * - + 58 * 65 + 36 + + 33 + 46 AS col2
----
-3655

skipif mysql # not compatible
query I rowsort label-4510
SELECT COUNT ( * ) * - + 58 * 65 + 36 + + 33 + 46 AS col2
----
-3655

query I rowsort
SELECT 2 - - 27 * - + 18 + - 18 AS col0
----
-502

query I rowsort
SELECT 8 * + - 37 AS col1
----
-296

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL - COUNT( * ) * + - 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL - COUNT ( * ) * + - 24 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL - NULLIF ( + + MIN( DISTINCT 59 ), + 94 * + - 25 * ( + 40 ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - NULLIF ( + + MIN ( DISTINCT 59 ), + 94 * + - 25 * ( + 40 ) )
----
-59

query I rowsort
SELECT DISTINCT - 33 * - + 26 AS col2
----
858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT ALL - COUNT( * ) * + - 95 * COALESCE ( + 66, 72, 77 - COUNT( * ), - CAST( - + ( + 83 ) AS SIGNED ) ) * - 14 AS col2
----
-87780

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL - COUNT ( * ) * + - 95 * COALESCE ( + 66, 72, 77 - COUNT ( * ), - CAST ( - + ( + 83 ) AS INTEGER ) ) * - 14 AS col2
----
-87780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT ALL - NULLIF ( + COALESCE ( - 93, 41 ), 25 * 4 ) + - 56 * - CAST( NULL AS SIGNED ) / COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL - NULLIF ( + COALESCE ( - 93, 41 ), 25 * 4 ) + - 56 * - CAST ( NULL AS INTEGER ) / COUNT ( * ) col0
----
NULL

query I rowsort
SELECT 43 * - ( 35 ) - + 73 - + - 57 * - + 39 AS col2
----
-3801

query I rowsort
SELECT 97 + + 46 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL + ( NULLIF ( - 82, - 76 ) ) + + MIN( + 92 )
----
10

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL + ( NULLIF ( - 82, - 76 ) ) + + MIN ( + 92 )
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4521
SELECT - 82 + + 55 DIV - - 72 * + - COUNT( * ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-4521
SELECT - 82 + + 55 / - - 72 * + - COUNT ( * ) AS col1
----
-82

query I rowsort
SELECT ALL - + 69 + + 72
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT + MAX( ALL + 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4523
SELECT + MAX ( ALL + 71 )
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT + COUNT( * ), 63 * + COUNT( * ) * + 76 AS col0
----
1
4788

skipif mysql # not compatible
query II rowsort label-4524
SELECT + COUNT ( * ), 63 * + COUNT ( * ) * + 76 AS col0
----
1
4788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT DISTINCT 44 * + - ( 20 ) * ( - 37 ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4525
SELECT DISTINCT 44 * + - ( 20 ) * ( - 37 ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL + COUNT( * ) + + + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL + COUNT ( * ) + + + 45 AS col1
----
46

query I rowsort
SELECT NULLIF ( - 62, - 4 * - 89 ) + + + 1 AS col2
----
-61

query I rowsort
SELECT ALL + + 77 + 69 AS col0
----
146

query I rowsort
SELECT ALL - ( - 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT + 32 + + 41 * - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-4530
SELECT + 32 + + 41 * - COUNT ( * )
----
-9

query I rowsort
SELECT ALL 71 + 37 AS col0
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-4532
SELECT DISTINCT + 1 AS col2, 26 * + COUNT( * ) + + - ( + 98 )
----
1
-72

skipif mysql # not compatible
query II rowsort label-4532
SELECT DISTINCT + 1 AS col2, 26 * + COUNT ( * ) + + - ( + 98 )
----
1
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL 28 * - COUNT( * ) + COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL 28 * - COUNT ( * ) + COUNT ( * ) AS col2
----
-27

query I rowsort
SELECT ALL + 70 * - 56 AS col0
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - SUM( + 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-4535
SELECT - SUM ( + 1 )
----
-1

query I rowsort
SELECT - 81 + - 89
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT CASE + + 76 WHEN - + NULLIF ( 43, + - 35 * + + 56 ) THEN + 28 + + 46 / + - 48 WHEN + 56 + COALESCE ( - COUNT( * ), + + 12 ) THEN + 84 - - - 31 ELSE 70 END AS col1
----
70

skipif mysql # not compatible
query I rowsort label-4537
SELECT CASE + + 76 WHEN - + NULLIF ( 43, + - 35 * + + 56 ) THEN + 28 + + 46 / + - 48 WHEN + 56 + COALESCE ( - COUNT ( * ), + + 12 ) THEN + 84 - - - 31 ELSE 70 END AS col1
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4538
SELECT + COUNT( * ) col2, + 60 * + - 89 + + COUNT( * ) DIV 3 AS col0
----
1
-5340

skipif mysql # not compatible
query II rowsort label-4538
SELECT + COUNT ( * ) col2, + 60 * + - 89 + + COUNT ( * ) / 3 AS col0
----
1
-5340

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT DISTINCT - SUM( DISTINCT - + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT - SUM ( DISTINCT - + 77 )
----
77

query I rowsort
SELECT + 48 + + 24
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT ALL - 34 - + 96 + + 56 DIV + - 35
----
-131

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - 34 - + 96 + + 56 / + - 35
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4542
SELECT 83, 18 + - CAST( NULL AS SIGNED ) col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-4542
SELECT 83, 18 + - CAST ( NULL AS INTEGER ) col0
----
83
NULL

query II rowsort
SELECT ALL - 18 * 38 AS col2, + 10
----
-684
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4544
SELECT ALL 99, + COUNT( - CAST( NULL AS SIGNED ) ) col1
----
99
0

skipif mysql # not compatible
query II rowsort label-4544
SELECT ALL 99, + COUNT ( - CAST ( NULL AS INTEGER ) ) col1
----
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT 92 * - - COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-4545
SELECT 92 * - - COUNT ( * )
----
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT - COUNT( * ) DIV 99 + + 49 + - 47 DIV - + 83 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4546
SELECT - COUNT ( * ) / 99 + + 49 + - 47 / - + 83 AS col2
----
49

query III rowsort
SELECT + 59, - 26 AS col1, + 4 AS col2
----
59
-26
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ALL 42 * + CASE + 3 WHEN + 85 * - 90 THEN - COUNT( * ) WHEN + ( + - 6 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 42 * + CASE + 3 WHEN + 85 * - 90 THEN - COUNT ( * ) WHEN + ( + - 6 ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT 82 * - 54 AS col2
----
-4428

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT + COUNT( 9 ) AS col1, 91
----
1
91

skipif mysql # not compatible
query II rowsort label-4550
SELECT + COUNT ( 9 ) AS col1, 91
----
1
91

query I rowsort
SELECT DISTINCT 24 * - 33 + + - 74
----
-866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT - CASE - - 87 WHEN 18 / - SUM( 89 ) THEN NULL WHEN + 84 THEN + + ( + 29 ) - + 51 + - + CAST( + 89 AS SIGNED ) + 62 * - NULLIF ( - 27, - + 7 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - CASE - - 87 WHEN 18 / - SUM ( 89 ) THEN NULL WHEN + 84 THEN + + ( + 29 ) - + 51 + - + CAST ( + 89 AS INTEGER ) + 62 * - NULLIF ( - 27, - + 7 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 11 + ( - 3 ) AS col2
----
-14

query I rowsort
SELECT ALL - ( ( + 58 ) )
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL COUNT( * ) + - 26 + + COUNT( * ) - - 37
----
13

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL COUNT ( * ) + - 26 + + COUNT ( * ) - - 37
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT - COUNT( * ) + 89
----
88

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - COUNT ( * ) + 89
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT COUNT( DISTINCT - 35 ) * + 57
----
57

skipif mysql # not compatible
query I rowsort label-4557
SELECT COUNT ( DISTINCT - 35 ) * + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT 33 + - + NULLIF ( - - ( - - 91 ), 60 + 99 + + 8 ) * MIN( - NULLIF ( + - 60, + 28 ) )
----
-5427

skipif mysql # not compatible
query I rowsort label-4558
SELECT 33 + - + NULLIF ( - - ( - - 91 ), 60 + 99 + + 8 ) * MIN ( - NULLIF ( + - 60, + 28 ) )
----
-5427

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT - ( - - COUNT( * ) ) + COUNT( DISTINCT + + 23 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT - ( - - COUNT ( * ) ) + COUNT ( DISTINCT + + 23 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT COUNT( - 71 )
----
1

skipif mysql # not compatible
query I rowsort label-4560
SELECT COUNT ( - 71 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4561
SELECT ALL - + 41 + + + SUM( + ( + 49 ) ) * + + 36 + - + 26 AS col2, + 70 AS col0
----
1697
70

skipif mysql # not compatible
query II rowsort label-4561
SELECT ALL - + 41 + + + SUM ( + ( + 49 ) ) * + + 36 + - + 26 AS col2, + 70 AS col0
----
1697
70

query I rowsort
SELECT 29 * - + 39
----
-1131

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4563
SELECT DISTINCT ( - COUNT( * ) ) DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT ( - COUNT ( * ) ) / 22 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT ALL - 51 * + SUM( 90 ) + - 8 AS col1
----
-4598

skipif mysql # not compatible
query I rowsort label-4564
SELECT ALL - 51 * + SUM ( 90 ) + - 8 AS col1
----
-4598

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT - 2 * + ( + ( COUNT( * ) ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4565
SELECT - 2 * + ( + ( COUNT ( * ) ) ) AS col1
----
-2

query I rowsort
SELECT ALL - 40 + + 3 col0
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-4567
SELECT + 19 AS col2, + 74 DIV - - 29 AS col2
----
19
2

skipif mysql # not compatible
query II rowsort label-4567
SELECT + 19 AS col2, + 74 / - - 29 AS col2
----
19
2

query I rowsort
SELECT ALL - 90 * - ( + 33 ) + - 34 AS col2
----
2936

onlyif mysql # DIV for integer division: 
query I rowsort label-4569
SELECT DISTINCT + 32 - - 83 - - 93 + + + ( 19 ) + 23 DIV 21 DIV 99
----
227

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + 32 - - 83 - - 93 + + + ( 19 ) + 23 / 21 / 99
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT - 43 * COUNT( * ) - 95 + + - 39 * - 81 * + - 56
----
-177042

skipif mysql # not compatible
query I rowsort label-4570
SELECT - 43 * COUNT ( * ) - 95 + + - 39 * - 81 * + - 56
----
-177042

onlyif mysql # aggregate syntax: 
query I rowsort label-4571
SELECT - - COALESCE ( - + COUNT( * ), + 14 * + 29 )
----
-1

skipif mysql # not compatible
query I rowsort label-4571
SELECT - - COALESCE ( - + COUNT ( * ), + 14 * + 29 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4572
SELECT + - 4 DIV - 18
----
0

skipif mysql # not compatible
query I rowsort label-4572
SELECT + - 4 / - 18
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL NULLIF ( - 36, AVG ( ( - 66 ) ) * + - 30 + - ( - COALESCE ( + ( - - 6 ), - + 14 - 90 * + MAX( ALL + 40 ), - 20 ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL NULLIF ( - 36, AVG ( ( - 66 ) ) * + - 30 + - ( - COALESCE ( + ( - - 6 ), - + 14 - 90 * + MAX ( ALL + 40 ), - 20 ) ) ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT - - SUM( + 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4574
SELECT - - SUM ( + 14 ) AS col0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4575
SELECT - NULLIF ( + 40, - - 48 * + 25 + - - CAST( NULL AS SIGNED ) + - - 7 * + 37 * 53 / 77 ), 31 AS col0
----
-40
31

skipif mysql # not compatible
query II rowsort label-4575
SELECT - NULLIF ( + 40, - - 48 * + 25 + - - CAST ( NULL AS INTEGER ) + - - 7 * + 37 * 53 / 77 ), 31 AS col0
----
-40
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT ALL + 74 * - - CAST( + 34 AS SIGNED ) AS col2
----
2516

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL + 74 * - - CAST ( + 34 AS INTEGER ) AS col2
----
2516

query I rowsort
SELECT - 41 * + - 5
----
205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4578
SELECT - 60, CAST( NULL AS SIGNED ) - + COUNT( * ) AS col2
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4578
SELECT - 60, CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col2
----
-60
NULL

query II rowsort
SELECT ALL 71 AS col1, 63 AS col1
----
71
63

query I rowsort
SELECT ALL - 59 * - 44 col2
----
2596

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4581
SELECT - COUNT( * ) + MAX( DISTINCT + 84 ) * CAST( NULL AS DECIMAL ) + + + 80 + - + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT - COUNT ( * ) + MAX ( DISTINCT + 84 ) * CAST ( NULL AS REAL ) + + + 80 + - + 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT + 54 DIV - - ( + 33 )
----
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT + 54 / - - ( + 33 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT ALL 19 + + - 93 * - COUNT( * ) AS col2
----
112

skipif mysql # not compatible
query I rowsort label-4583
SELECT ALL 19 + + - 93 * - COUNT ( * ) AS col2
----
112

query I rowsort
SELECT + 24 + - - 25 AS col2
----
49

query I rowsort
SELECT ALL ( + - 86 ) AS col2
----
-86

query I rowsort
SELECT + 1 + 0 + ( - 72 ) - 92
----
-163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4587
SELECT ALL COALESCE ( - 4, 7 DIV + MIN( + 14 ) + + - 74 + - - 73 * + - 55 * - 79 * + 97 + - MAX( + 86 ) + 7 + 88 * 20, + 18 ) DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL COALESCE ( - 4, 7 / + MIN ( + 14 ) + + - 74 + - - 73 * + - 55 * - 79 * + 97 + - MAX ( + 86 ) + 7 + 88 * 20, + 18 ) / - 88 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT + NULLIF ( - - COUNT( * ), 76 )
----
1

skipif mysql # not compatible
query I rowsort label-4588
SELECT + NULLIF ( - - COUNT ( * ), 76 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ALL - COUNT( * ) * + 18 + 31 * 80 - 81 col0
----
2381

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL - COUNT ( * ) * + 18 + 31 * 80 - 81 col0
----
2381

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT + COUNT( * ) * - + COUNT( DISTINCT - + 50 ) + - 59 * + - MIN( DISTINCT + 16 )
----
943

skipif mysql # not compatible
query I rowsort label-4590
SELECT + COUNT ( * ) * - + COUNT ( DISTINCT - + 50 ) + - 59 * + - MIN ( DISTINCT + 16 )
----
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT + CAST( CASE 11 WHEN - - 8 * + + 70 THEN - 6 * + - 3 END AS SIGNED ) / + 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT + CAST ( CASE 11 WHEN - - 8 * + + 70 THEN - 6 * + - 3 END AS INTEGER ) / + 97 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4592
SELECT + 88 / CAST( NULL AS SIGNED ) AS col2, - 89
----
NULL
-89

skipif mysql # not compatible
query II rowsort label-4592
SELECT + 88 / CAST ( NULL AS INTEGER ) AS col2, - 89
----
NULL
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL 52 * - 46 * - COUNT( * ) AS col1
----
2392

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL 52 * - 46 * - COUNT ( * ) AS col1
----
2392

query I rowsort
SELECT + NULLIF ( - 28, + 41 ) AS col0
----
-28

query II rowsort
SELECT ( + 42 ), + 94 AS col1
----
42
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - 69 * + + MAX( DISTINCT - 74 ) + - 71 col2
----
5035

skipif mysql # not compatible
query I rowsort label-4596
SELECT - 69 * + + MAX ( DISTINCT - 74 ) + - 71 col2
----
5035

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT ALL + MIN( ALL 71 )
----
71

skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL + MIN ( ALL 71 )
----
71

query I rowsort
SELECT - 31 * + 61 * - - 61 - - 57
----
-115294

query II rowsort
SELECT ALL + - ( - 72 ) AS col2, 9
----
72
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT - + 23 * + + COUNT( DISTINCT - 82 ) * + 17 - + COUNT( DISTINCT - 71 ) + + - 76 * + 99 AS col1
----
-7916

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT - + 23 * + + COUNT ( DISTINCT - 82 ) * + 17 - + COUNT ( DISTINCT - 71 ) + + - 76 * + 99 AS col1
----
-7916

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT + - NULLIF ( 31, - + 46 ) + + COUNT( * )
----
-30

skipif mysql # not compatible
query I rowsort label-4601
SELECT + - NULLIF ( 31, - + 46 ) + + COUNT ( * )
----
-30

query I rowsort
SELECT ALL - 98 * + - 0 - 66 * + 64
----
-4224

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT + 89 / + CASE CASE 58 WHEN 24 THEN + ( 16 ) * 28 WHEN ( + 6 ) - - 50 + - 43 * + - 6 THEN + - 73 / + - 18 + 33 ELSE NULL END WHEN MAX( ALL 81 ) THEN 74 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4603
SELECT + 89 / + CASE CASE 58 WHEN 24 THEN + ( 16 ) * 28 WHEN ( + 6 ) - - 50 + - 43 * + - 6 THEN + - 73 / + - 18 + 33 ELSE NULL END WHEN MAX ( ALL 81 ) THEN 74 END AS col0
----
NULL

query I rowsort
SELECT + ( + - 27 ) AS col1
----
-27

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4605
SELECT - 16 + - 69 * - - 95 + + CAST( + 98 AS DECIMAL ) + - + CASE - ( 8 ) WHEN 70 THEN NULL WHEN - 31 THEN - - 26 * 48 WHEN 16 THEN NULL ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT - 16 + - 69 * - - 95 + + CAST ( + 98 AS REAL ) + - + CASE - ( 8 ) WHEN 70 THEN NULL WHEN - 31 THEN - - 26 * 48 WHEN 16 THEN NULL ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * 43 + - - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * 43 + - - 61
----
NULL

query I rowsort
SELECT - - 7 * 76 AS col2
----
532

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT - 43 + COUNT( * ) + - COUNT( * ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-4608
SELECT - 43 + COUNT ( * ) + - COUNT ( * ) AS col2
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-4609
SELECT ALL + 43 * - 99, MAX( DISTINCT - + 70 ) AS col1
----
-4257
-70

skipif mysql # not compatible
query II rowsort label-4609
SELECT ALL + 43 * - 99, MAX ( DISTINCT - + 70 ) AS col1
----
-4257
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - + 37 * - 31 * + COUNT( * ) AS col0
----
1147

skipif mysql # not compatible
query I rowsort label-4610
SELECT - + 37 * - 31 * + COUNT ( * ) AS col0
----
1147

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT - + COUNT( * ) + - ( 71 ) + + MIN( DISTINCT + ( + 94 ) )
----
22

skipif mysql # not compatible
query I rowsort label-4611
SELECT - + COUNT ( * ) + - ( 71 ) + + MIN ( DISTINCT + ( + 94 ) )
----
22

query II rowsort
SELECT 8, 30 * - 80 col0
----
8
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-4613
SELECT - 61 + + - 41 DIV 17 - + 55 * - 18
----
927

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 61 + + - 41 / 17 - + 55 * - 18
----
927

query I rowsort
SELECT ALL ( - 31 ) AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT - COUNT( * ) + - 62 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT - COUNT ( * ) + - 62 AS col1
----
-63

query II rowsort
SELECT 21, 84 + + 81 col1
----
21
165

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL + 28 + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL + 28 + COUNT ( * )
----
29

query II rowsort
SELECT - 54 AS col0, - 32 + + + ( 83 ) AS col0
----
-54
51

query I rowsort
SELECT ALL ( - + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT DISTINCT - 1 + MIN( 77 ) AS col0, - COUNT( * ) * - + 83 AS col2
----
76
83

skipif mysql # not compatible
query II rowsort label-4620
SELECT DISTINCT - 1 + MIN ( 77 ) AS col0, - COUNT ( * ) * - + 83 AS col2
----
76
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT CASE - CAST( NULL AS SIGNED ) WHEN - 63 / - 95 * CAST( + 80 AS SIGNED ) - + 4 THEN + - 88 ELSE 75 END + + - ( + COUNT( * ) ) col2
----
74

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT CASE - CAST ( NULL AS INTEGER ) WHEN - 63 / - 95 * CAST ( + 80 AS INTEGER ) - + 4 THEN + - 88 ELSE 75 END + + - ( + COUNT ( * ) ) col2
----
74

query I rowsort
SELECT - 77 * - + 81
----
6237

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT ALL + COUNT( * ) + + 99 AS col2
----
100

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL + COUNT ( * ) + + 99 AS col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4624
SELECT 51 AS col1, COUNT( * )
----
51
1

skipif mysql # not compatible
query II rowsort label-4624
SELECT 51 AS col1, COUNT ( * )
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT ( - 66 ) + - - 75 * + + 41 + 34 + - COUNT( * ) AS col2
----
3042

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT ( - 66 ) + - - 75 * + + 41 + 34 + - COUNT ( * ) AS col2
----
3042

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT DISTINCT + 11 + - + COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT + 11 + - + COUNT ( * )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4627
SELECT + 88 + + CAST( - + 32 AS SIGNED ) + + 86 AS col1
----
142

skipif mysql # not compatible
query I rowsort label-4627
SELECT + 88 + + CAST ( - + 32 AS INTEGER ) + + 86 AS col1
----
142

query I rowsort
SELECT + 47 * + ( - 86 )
----
-4042

query I rowsort
SELECT ALL CASE 95 WHEN 73 + - 48 + + 15 - - 77 THEN NULL ELSE + + 2 END * + - 71 AS col2
----
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4630
SELECT ALL + COUNT( * ) DIV + COUNT( * ) + + - 38 AS col2, - 52 - - + 12 + 41, 91 col0
----
-37
1
91

skipif mysql # not compatible
query III rowsort label-4630
SELECT ALL + COUNT ( * ) / + COUNT ( * ) + + - 38 AS col2, - 52 - - + 12 + 41, 91 col0
----
-37
1
91

query I rowsort
SELECT + 52 + + - 1 * - 83
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT DISTINCT + SUM( 74 )
----
74

skipif mysql # not compatible
query I rowsort label-4632
SELECT DISTINCT + SUM ( 74 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT + 78 DIV - + 34 + - 84 * - - 84 + 17 AS col1
----
-7041

skipif mysql # not compatible
query I rowsort label-4633
SELECT + 78 / - + 34 + - 84 * - - 84 + 17 AS col1
----
-7041

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL NULLIF ( + 60, + ( + COUNT( + 18 ) ) ) * - 82 * 36 AS col2
----
-177120

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL NULLIF ( + 60, + ( + COUNT ( + 18 ) ) ) * - 82 * 36 AS col2
----
-177120

onlyif mysql # aggregate syntax: 
query II rowsort label-4635
SELECT - 7 + 99 - - + COUNT( * ) AS col2, - 61
----
93
-61

skipif mysql # not compatible
query II rowsort label-4635
SELECT - 7 + 99 - - + COUNT ( * ) AS col2, - 61
----
93
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4636
SELECT + COUNT( * ) DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-4636
SELECT + COUNT ( * ) / 19
----
0

query I rowsort
SELECT ALL 95 * - + 23
----
-2185

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT - COUNT( DISTINCT + + 42 ) * + COUNT( + + 76 ) + - - MIN( ( 32 ) ) + - 72 * - 74
----
5359

skipif mysql # not compatible
query I rowsort label-4638
SELECT - COUNT ( DISTINCT + + 42 ) * + COUNT ( + + 76 ) + - - MIN ( ( 32 ) ) + - 72 * - 74
----
5359

query I rowsort
SELECT 30 * - 27
----
-810

query II rowsort
SELECT - 38 AS col2, 9
----
-38
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT ALL - 96 * - 89 + + - COUNT( * ) AS col2
----
8543

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL - 96 * - 89 + + - COUNT ( * ) AS col2
----
8543

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT + 91 * + 46 + + CAST( - 89 AS SIGNED )
----
4097

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT + 91 * + 46 + + CAST ( - 89 AS INTEGER )
----
4097

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT DISTINCT COUNT( ALL + 82 ) * - + 3, + 49 col1
----
-3
49

skipif mysql # not compatible
query II rowsort label-4643
SELECT DISTINCT COUNT ( ALL + 82 ) * - + 3, + 49 col1
----
-3
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT + 14 * - NULLIF ( + + 92, + - COUNT( * ) ) + - 41 AS col2
----
-1329

skipif mysql # not compatible
query I rowsort label-4644
SELECT + 14 * - NULLIF ( + + 92, + - COUNT ( * ) ) + - 41 AS col2
----
-1329

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT ALL - CAST( NULL AS SIGNED ) * - - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 91 AS col1
----
NULL

query II rowsort
SELECT + 72 AS col2, + 51
----
72
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4647
SELECT + 89 AS col0, + COUNT( * )
----
89
1

skipif mysql # not compatible
query II rowsort label-4647
SELECT + 89 AS col0, + COUNT ( * )
----
89
1

query II rowsort
SELECT - + 86 AS col1, + 62 AS col1
----
-86
62

query I rowsort
SELECT - CASE - + 57 WHEN - 53 THEN NULL ELSE + + 4 END * 21 + + 63 * 30
----
1806

onlyif mysql # aggregate syntax: 
query II rowsort label-4650
SELECT - + COUNT( DISTINCT ( - - 44 ) ) AS col2, 49 col2
----
-1
49

skipif mysql # not compatible
query II rowsort label-4650
SELECT - + COUNT ( DISTINCT ( - - 44 ) ) AS col2, 49 col2
----
-1
49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4651
SELECT ALL - 60 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - 60 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4652
SELECT 21 DIV 56 * + 6
----
0

skipif mysql # not compatible
query I rowsort label-4652
SELECT 21 / 56 * + 6
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4653
SELECT ALL + 97 + - CASE - COUNT( * ) WHEN + ( - + COUNT( DISTINCT + 54 ) ) THEN NULL WHEN CAST( NULL AS SIGNED ) - + ( + - 65 ) THEN NULL ELSE 46 + 53 END * - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + 97 + - CASE - COUNT ( * ) WHEN + ( - + COUNT ( DISTINCT + 54 ) ) THEN NULL WHEN CAST ( NULL AS INTEGER ) - + ( + - 65 ) THEN NULL ELSE 46 + 53 END * - 75
----
NULL

query I rowsort
SELECT ALL - 88 * - 61
----
5368

query I rowsort
SELECT DISTINCT 48 + NULLIF ( - - 70, + 56 + - 18 )
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT 11 DIV - - 99 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT 11 / - - 99 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL - COUNT( 18 ) + COUNT( * ) col1
----
0

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL - COUNT ( 18 ) + COUNT ( * ) col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT 17 * - + 46 * + 96 * + COUNT( * ) AS col1
----
-75072

skipif mysql # not compatible
query I rowsort label-4658
SELECT 17 * - + 46 * + 96 * + COUNT ( * ) AS col1
----
-75072

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT ( + 98 ) + + 64 - 49 + 28 + COUNT( * ) * 75 AS col2, - 11 * COUNT( * ) * COUNT( * ) + 66 + + 54 * - - 99 AS col2
----
216
5401

skipif mysql # not compatible
query II rowsort label-4659
SELECT ( + 98 ) + + 64 - 49 + 28 + COUNT ( * ) * 75 AS col2, - 11 * COUNT ( * ) * COUNT ( * ) + 66 + + 54 * - - 99 AS col2
----
216
5401

query I rowsort
SELECT 1 + + 2 col1
----
3

query I rowsort
SELECT 36 - + 34 * + 52 AS col2
----
-1732

query I rowsort
SELECT 7 * - - 44 AS col1
----
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT ALL + 98 - + COUNT( * ) + - + ( + - COUNT( * ) ) * + 52 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-4663
SELECT ALL + 98 - + COUNT ( * ) + - + ( + - COUNT ( * ) ) * + 52 AS col2
----
149

query I rowsort
SELECT ALL - 34 - 39 + - 24 AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT 26 + + MIN( + 97 )
----
123

skipif mysql # not compatible
query I rowsort label-4665
SELECT 26 + + MIN ( + 97 )
----
123

query I rowsort
SELECT 36 + - - 23 + + - ( + 65 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT ALL 99 * + + 1 * + - COUNT( * ) * + - COUNT( * ) * + COUNT( * ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL 99 * + + 1 * + - COUNT ( * ) * + - COUNT ( * ) * + COUNT ( * ) AS col1
----
99

query I rowsort
SELECT ALL - ( - 23 )
----
23

query I rowsort
SELECT DISTINCT 17 * - 92 AS col1
----
-1564

query I rowsort
SELECT - 22 + - 79 AS col1
----
-101

query I rowsort
SELECT - 96 * 16 AS col2
----
-1536

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT ALL + COUNT( * ) * + - 77
----
-77

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL + COUNT ( * ) * + - 77
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-4673
SELECT + CASE - 73 WHEN + 35 * - 58 - + 36 THEN - + 26 WHEN - - COUNT( * ) * 83 THEN COALESCE ( CASE ( - 76 ) WHEN 57 THEN + COALESCE ( 29, - 94, 81 ) * 33 + - - 94 * - COUNT( * ) - + - 28 + - - 43 END, 86 ) + - 79 END AS col0, + 59
----
NULL
59

skipif mysql # not compatible
query II rowsort label-4673
SELECT + CASE - 73 WHEN + 35 * - 58 - + 36 THEN - + 26 WHEN - - COUNT ( * ) * 83 THEN COALESCE ( CASE ( - 76 ) WHEN 57 THEN + COALESCE ( 29, - 94, 81 ) * 33 + - - 94 * - COUNT ( * ) - + - 28 + - - 43 END, 86 ) + - 79 END AS col0, + 59
----
NULL
59

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4674
SELECT - ( - 11 ) DIV + CAST( - - 36 AS SIGNED ), 46 AS col1
----
0
46

skipif mysql # not compatible
query II rowsort label-4674
SELECT - ( - 11 ) / + CAST ( - - 36 AS INTEGER ), 46 AS col1
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT + COUNT( * ) * - 81 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-4675
SELECT + COUNT ( * ) * - 81 AS col0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT - 46 DIV + 82 - + + 71
----
-71

skipif mysql # not compatible
query I rowsort label-4676
SELECT - 46 / + 82 - + + 71
----
-71

query I rowsort
SELECT DISTINCT - 9 + + - 68 AS col0
----
-77

query I rowsort
SELECT ALL - - 54 AS col2
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4679
SELECT ALL + 87 DIV + + MAX( + 72 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL + 87 / + + MAX ( + 72 ) AS col0
----
1

query I rowsort
SELECT + 98 * + 83 AS col0
----
8134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4681
SELECT DISTINCT MIN( + 78 ) DIV + 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT MIN ( + 78 ) / + 87 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT ALL 95 + + CASE SUM( - NULLIF ( 49, 82 - - 19 ) ) WHEN 16 - 69 THEN NULL ELSE - - 67 END - COUNT( * ) AS col1
----
161

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL 95 + + CASE SUM ( - NULLIF ( 49, 82 - - 19 ) ) WHEN 16 - 69 THEN NULL ELSE - - 67 END - COUNT ( * ) AS col1
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT - 65 + + CAST( + 87 AS SIGNED ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-4683
SELECT - 65 + + CAST ( + 87 AS INTEGER ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT + MAX( ALL 98 )
----
98

skipif mysql # not compatible
query I rowsort label-4684
SELECT + MAX ( ALL 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT + SUM( DISTINCT + 18 ) * COUNT( * ) * 54 * - + COUNT( * ) * 17 + MIN( ALL + + 2 )
----
-16522

skipif mysql # not compatible
query I rowsort label-4685
SELECT + SUM ( DISTINCT + 18 ) * COUNT ( * ) * 54 * - + COUNT ( * ) * 17 + MIN ( ALL + + 2 )
----
-16522

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT + CAST( NULL AS SIGNED ) * - SUM( ALL + - 67 ) * + COALESCE ( - NULLIF ( - 47, - - AVG ( - - 97 ) + 58 * - - 73 ), CASE - 57 WHEN COUNT( * ) / + 1 THEN NULL WHEN - 11 - - 7 + + CASE COALESCE ( + 36, - 40 ) WHEN + 84 THEN NULL WHEN + AVG ( - 42 ) THEN NULL ELSE + - 67 END + - 39 THEN 55 + + 88 + 26 * 48 WHEN - 65 THEN NULL ELSE - - 76 * COUNT( * ) END ) * + - 3 / - ( - 62 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT + CAST ( NULL AS INTEGER ) * - SUM ( ALL + - 67 ) * + COALESCE ( - NULLIF ( - 47, - - AVG ( - - 97 ) + 58 * - - 73 ), CASE - 57 WHEN COUNT ( * ) / + 1 THEN NULL WHEN - 11 - - 7 + + CASE COALESCE ( + 36, - 40 ) WHEN + 84 THEN NULL WHEN + AVG ( - 42 ) THEN NULL ELSE + - 67 END + - 39 THEN 55 + + 88 + 26 * 48 WHEN - 65 THEN NULL ELSE - - 76 * COUNT ( * ) END ) * + - 3 / - ( - 62 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4687
SELECT + 87 + - - 83, CAST( NULL AS SIGNED ) AS col2
----
170
NULL

skipif mysql # not compatible
query II rowsort label-4687
SELECT + 87 + - - 83, CAST ( NULL AS INTEGER ) AS col2
----
170
NULL

query I rowsort
SELECT DISTINCT 49 + + 44 AS col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL COUNT( * ) + 7 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL COUNT ( * ) + 7 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT COUNT( * ) + + - COALESCE ( + 29, - 5, - + 15, - 76 + - 60 )
----
-28

skipif mysql # not compatible
query I rowsort label-4690
SELECT COUNT ( * ) + + - COALESCE ( + 29, - 5, - + 15, - 76 + - 60 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL 83 + + COUNT( * )
----
84

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 83 + + COUNT ( * )
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT ALL + CAST( NULL AS SIGNED ) + + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL + CAST ( NULL AS INTEGER ) + + 6 AS col2
----
NULL

query II rowsort
SELECT ALL 54 AS col1, - 42
----
54
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT 91 * + - 1 * + - COUNT( * ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-4694
SELECT 91 * + - 1 * + - COUNT ( * ) AS col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT 27 + COUNT( * ) + + COUNT( DISTINCT + + 88 ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-4695
SELECT 27 + COUNT ( * ) + + COUNT ( DISTINCT + + 88 ) AS col1
----
29

query I rowsort
SELECT 46 + - - 13 - + 23
----
36

query I rowsort
SELECT 17 * + 68 * 3 AS col1
----
3468

query I rowsort
SELECT 52 * - 87 AS col1
----
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL COUNT( + + 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL COUNT ( + + 26 ) AS col1
----
1

query II rowsort
SELECT DISTINCT 77 AS col0, + 64 AS col2
----
77
64

query I rowsort
SELECT ALL 94 - - - 4
----
90

query I rowsort
SELECT - 5 * - - 26 * - - 69 * 31
----
-278070

query I rowsort
SELECT + 52 - - + 14 col1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4704
SELECT - 58 DIV - COALESCE ( 35, - COUNT( * ) * 44 + + + NULLIF ( + COUNT( * ), - 52 * - + 27 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4704
SELECT - 58 / - COALESCE ( 35, - COUNT ( * ) * 44 + + + NULLIF ( + COUNT ( * ), - 52 * - + 27 ) )
----
1

query I rowsort
SELECT + 69 * + 19
----
1311

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - COUNT( * ) * NULLIF ( + 79 * COUNT( * ), - 71 )
----
-79

skipif mysql # not compatible
query I rowsort label-4706
SELECT - COUNT ( * ) * NULLIF ( + 79 * COUNT ( * ), - 71 )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT ALL - 4 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL - 4 / - 82
----
0

query I rowsort
SELECT COALESCE ( 23, 86 )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4709
SELECT DISTINCT + NULLIF ( + CAST( 38 AS SIGNED ), - 92 ) * - 90 + + COUNT( * ) AS col1
----
-3419

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT + NULLIF ( + CAST ( 38 AS INTEGER ), - 92 ) * - 90 + + COUNT ( * ) AS col1
----
-3419

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT ( 51 ) DIV - 3 - 9 DIV + 70
----
-17

skipif mysql # not compatible
query I rowsort label-4710
SELECT ( 51 ) / - 3 - 9 / + 70
----
-17

query I rowsort
SELECT 95 * 69 + - 80
----
6475

query I rowsort
SELECT COALESCE ( + 49, + 48 )
----
49

query I rowsort
SELECT ALL 62 * 93
----
5766

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT NULLIF ( COUNT( * ), - 23 * 30 )
----
1

skipif mysql # not compatible
query I rowsort label-4714
SELECT NULLIF ( COUNT ( * ), - 23 * 30 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL 43 * NULLIF ( 73, + CAST( NULL AS SIGNED ) ) + + 13 * + 87 AS col2
----
4270

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL 43 * NULLIF ( 73, + CAST ( NULL AS INTEGER ) ) + + 13 * + 87 AS col2
----
4270

query I rowsort
SELECT - 79 * + 35
----
-2765

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4717
SELECT - 85 + 70 * - ( - CAST( - SUM( 53 ) AS SIGNED ) * + 28 + 34 )
----
-106345

skipif mysql # not compatible
query I rowsort label-4717
SELECT - 85 + 70 * - ( - CAST ( - SUM ( 53 ) AS INTEGER ) * + 28 + 34 )
----
-106345

onlyif mysql # aggregate syntax: 
query I rowsort label-4718
SELECT ALL + ( COALESCE ( + 83, COUNT( * ) + 73 ) )
----
83

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + ( COALESCE ( + 83, COUNT ( * ) + 73 ) )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT 33 * - 70 + - COUNT( - ( 80 ) )
----
-2311

skipif mysql # not compatible
query I rowsort label-4719
SELECT 33 * - 70 + - COUNT ( - ( 80 ) )
----
-2311

query I rowsort
SELECT - 49 * - 72 AS col2
----
3528

query I rowsort
SELECT DISTINCT 54 * 37 + 95 AS col2
----
2093

onlyif mysql # DIV for integer division: 
query I rowsort label-4722
SELECT - 2 DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4722
SELECT - 2 / 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT ALL 29 * + 43 + - COUNT( * ) * 17
----
1230

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL 29 * + 43 + - COUNT ( * ) * 17
----
1230

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT COUNT( 19 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4724
SELECT COUNT ( 19 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT ALL + COALESCE ( - 66, - CASE + 12 WHEN + 85 * - 29 THEN NULL ELSE - 96 / + ( - COUNT( DISTINCT 55 ) ) END * 25, + 89 + 54 ) * + 89 - + CASE + 23 WHEN 36 THEN + COUNT( * ) + + 30 * 43 ELSE NULL END / 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL + COALESCE ( - 66, - CASE + 12 WHEN + 85 * - 29 THEN NULL ELSE - 96 / + ( - COUNT ( DISTINCT 55 ) ) END * 25, + 89 + 54 ) * + 89 - + CASE + 23 WHEN 36 THEN + COUNT ( * ) + + 30 * 43 ELSE NULL END / 75 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT ALL - MIN( DISTINCT 65 ) DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - MIN ( DISTINCT 65 ) / 71
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4727
SELECT + 72 DIV + ( - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 72 / + ( - 50 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4728
SELECT ALL 54 - MAX( - 84 ) DIV ( - 52 * - 93 )
----
54

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL 54 - MAX ( - 84 ) / ( - 52 * - 93 )
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4729
SELECT - 18 * COALESCE ( - COUNT( CAST( + 54 AS SIGNED ) ), COUNT( * ) ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-4729
SELECT - 18 * COALESCE ( - COUNT ( CAST ( + 54 AS INTEGER ) ), COUNT ( * ) ) AS col2
----
18

query I rowsort
SELECT - ( + ( 2 ) )
----
-2

query I rowsort
SELECT ALL NULLIF ( + 28, + 68 / - 4 - 48 * 76 ) * - 38
----
-1064

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT + 36 DIV - 1 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4732
SELECT + 36 / - 1 AS col0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4733
SELECT + COUNT( * ) DIV - 71 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4733
SELECT + COUNT ( * ) / - 71 AS col0
----
0

query I rowsort
SELECT DISTINCT ( - COALESCE ( 16, 18 ) )
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-4735
SELECT ALL 24 * - ( + 17 DIV 87 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL 24 * - ( + 17 / 87 ) col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4736
SELECT - CASE CAST( NULL AS SIGNED ) WHEN + 67 THEN - 25 DIV 0 ELSE - SUM( ALL + 70 ) * COUNT( * ) END
----
70

skipif mysql # not compatible
query I rowsort label-4736
SELECT - CASE CAST ( NULL AS INTEGER ) WHEN + 67 THEN - 25 / 0 ELSE - SUM ( ALL + 70 ) * COUNT ( * ) END
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT 53 * + COUNT( * ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT 53 * + COUNT ( * ) AS col1
----
53

query I rowsort
SELECT + 82 * + 51
----
4182

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT + 52 + + ( 77 ) * + COUNT( * ) AS col1
----
129

skipif mysql # not compatible
query I rowsort label-4739
SELECT + 52 + + ( 77 ) * + COUNT ( * ) AS col1
----
129

query I rowsort
SELECT + 28 + + 5 AS col1
----
33

query I rowsort
SELECT + 34 - + 93 * COALESCE ( 28, 98 ) col0
----
-2570

query I rowsort
SELECT + 46 * + 17 col2
----
782

query I rowsort
SELECT - 87 * + 28 col1
----
-2436

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL ( CAST( 89 AS SIGNED ) ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL ( CAST ( 89 AS INTEGER ) ) AS col0
----
89

query I rowsort
SELECT DISTINCT + 53 * 98 AS col1
----
5194

query I rowsort
SELECT DISTINCT - 84 + 31 col0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4747
SELECT ALL + ( + 44 ) * MAX( DISTINCT + 88 + COALESCE ( - ( + NULLIF ( 97, ( - 92 ) ) ), - 91, ( + 21 ) ) ) col2
----
-396

skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + ( + 44 ) * MAX ( DISTINCT + 88 + COALESCE ( - ( + NULLIF ( 97, ( - 92 ) ) ), - 91, ( + 21 ) ) ) col2
----
-396

query I rowsort
SELECT + 53 * 41 col2
----
2173

query I rowsort
SELECT + 58 + + ( + 0 ) AS col1
----
58

query I rowsort
SELECT ALL ( 19 ) + - 0
----
19

query I rowsort
SELECT ALL + - 11 AS col1
----
-11

query I rowsort
SELECT ALL + 59 * - 96 col1
----
-5664

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT - + COUNT( * ) * - 56 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-4753
SELECT - + COUNT ( * ) * - 56 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4754
SELECT DISTINCT 46 DIV + MIN( 17 DIV 61 + 16 ) + NULLIF ( 23, ( 91 ) )
----
25

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT 46 / + MIN ( 17 / 61 + 16 ) + NULLIF ( 23, ( 91 ) )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4755
SELECT ALL CASE - 69 WHEN + 63 * 2 THEN + 19 / 32 WHEN - 84 / + ( + CAST( NULL AS SIGNED ) ) THEN NULL ELSE NULL END / + 57 + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL CASE - 69 WHEN + 63 * 2 THEN + 19 / 32 WHEN - 84 / + ( + CAST ( NULL AS INTEGER ) ) THEN NULL ELSE NULL END / + 57 + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT + COUNT( + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4756
SELECT + COUNT ( + 29 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4757
SELECT DISTINCT + 77 DIV + COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + 77 / + COUNT ( * ) AS col0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT DISTINCT - MIN( ALL CAST( NULL AS SIGNED ) ) / - 25 + + 7 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT - MIN ( ALL CAST ( NULL AS INTEGER ) ) / - 25 + + 7 * + 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4759
SELECT ALL 91 / CAST( NULL AS SIGNED ) + NULLIF ( + CAST( NULL AS SIGNED ), + 26 + 67 ) / + COALESCE ( 46, 2 * 42 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL 91 / CAST ( NULL AS INTEGER ) + NULLIF ( + CAST ( NULL AS INTEGER ), + 26 + 67 ) / + COALESCE ( 46, 2 * 42 )
----
NULL

query I rowsort
SELECT - 83 + + 0
----
-83

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4761
SELECT ALL - 58 * + 40 - + 89 * - CAST( - 25 + 84 DIV - 32 AS SIGNED )
----
-4723

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - 58 * + 40 - + 89 * - CAST ( - 25 + 84 / - 32 AS INTEGER )
----
-4723

query I rowsort
SELECT ALL + 51 * + 15 - 41
----
724

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT + MAX( DISTINCT 13 ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4763
SELECT + MAX ( DISTINCT 13 ) AS col0
----
13

query I rowsort
SELECT ALL + ( - 28 ) AS col0
----
-28

query I rowsort
SELECT - 31 * 96
----
-2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT - 42 + - + 32 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4766
SELECT - 42 + - + 32 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 48 - + - 25 AS col1
----
-23

query I rowsort
SELECT ALL + 9 * - 86 - 2 * - 94 col1
----
-586

query I rowsort
SELECT CASE 99 WHEN 60 THEN 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - 36 + - COUNT( * )
----
-37

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 36 + - COUNT ( * )
----
-37

query I rowsort
SELECT - 95 * + 84
----
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT ALL + 66 * SUM( DISTINCT 2 )
----
132

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL + 66 * SUM ( DISTINCT 2 )
----
132

query I rowsort
SELECT 36 + 18 * + 77 AS col2
----
1422

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT COUNT( * ) + 71 * 12 col2
----
853

skipif mysql # not compatible
query I rowsort label-4774
SELECT COUNT ( * ) + 71 * 12 col2
----
853

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT ALL 76 DIV - 29 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL 76 / - 29 AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT DISTINCT + 21 DIV - COALESCE ( - 55, 31 + - ( + 16 ), 2, + COUNT( DISTINCT 4 ) + 20, 72 - - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + 21 / - COALESCE ( - 55, 31 + - ( + 16 ), 2, + COUNT ( DISTINCT 4 ) + 20, 72 - - COUNT ( * ) )
----
0

query I rowsort
SELECT 35 * - 27
----
-945

query I rowsort
SELECT 80 + - 51
----
29

query I rowsort
SELECT DISTINCT 75 * + ( + 79 ) * + 21 AS col2
----
124425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4780
SELECT ALL + NULLIF ( - 82, ( + ( - CASE - 15 WHEN CASE 12 WHEN COUNT( DISTINCT 53 ) THEN NULL WHEN AVG ( + 3 ) * 71 THEN + NULLIF ( 46, COALESCE ( CAST( NULL AS SIGNED ), - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ), - 46 * - AVG ( + 70 * 34 ) + 52, - 48 ) + NULLIF ( COUNT( * ), 48 ) * + 26 ) ELSE NULL END THEN 40 * NULLIF ( 39, CAST( - 89 AS SIGNED ) ) - 40 WHEN NULLIF ( 6, 59 + 81 ) * - 83 THEN NULL END ) ) / - 57 ) + - 51 col1
----
-133

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + NULLIF ( - 82, ( + ( - CASE - 15 WHEN CASE 12 WHEN COUNT ( DISTINCT 53 ) THEN NULL WHEN AVG ( + 3 ) * 71 THEN + NULLIF ( 46, COALESCE ( CAST ( NULL AS INTEGER ), - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ), - 46 * - AVG ( + 70 * 34 ) + 52, - 48 ) + NULLIF ( COUNT ( * ), 48 ) * + 26 ) ELSE NULL END THEN 40 * NULLIF ( 39, CAST ( - 89 AS INTEGER ) ) - 40 WHEN NULLIF ( 6, 59 + 81 ) * - 83 THEN NULL END ) ) / - 57 ) + - 51 col1
----
-133

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4781
SELECT ALL 59 + + ( 87 ) - + 41 DIV COUNT( * ) * 25 AS col2
----
-879

skipif mysql # not compatible
query I rowsort label-4781
SELECT ALL 59 + + ( 87 ) - + 41 / COUNT ( * ) * 25 AS col2
----
-879

query I rowsort
SELECT - 42 * + - ( 0 ) * 40 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - COUNT( DISTINCT 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - COUNT ( DISTINCT 10 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4784
SELECT + CASE - + 23 WHEN - COUNT( * ) THEN - NULLIF ( 22, - 18 + 54 ) * 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT + CASE - + 23 WHEN - COUNT ( * ) THEN - NULLIF ( 22, - 18 + 54 ) * 33 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL + 63 + - COUNT( * ) * 50 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL + 63 + - COUNT ( * ) * 50 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4786
SELECT ALL - COUNT( * ) + + 92 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL - COUNT ( * ) + + 92 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT 61 + - ( MAX( ALL + 51 ) )
----
10

skipif mysql # not compatible
query I rowsort label-4787
SELECT 61 + - ( MAX ( ALL + 51 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + COUNT( * ) - + 33
----
-32

skipif mysql # not compatible
query I rowsort label-4788
SELECT + COUNT ( * ) - + 33
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT - MAX( ALL ( 19 ) )
----
-19

skipif mysql # not compatible
query I rowsort label-4789
SELECT - MAX ( ALL ( 19 ) )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT 51 + + CASE - 47 WHEN + COUNT( * ) + 33 THEN + 15 WHEN COUNT( * ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT 51 + + CASE - 47 WHEN + COUNT ( * ) + 33 THEN + 15 WHEN COUNT ( * ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 57 + 23 * - 49
----
-1070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4792
SELECT 28 DIV - 75 + COALESCE ( 56 - - 76 DIV 5, - 90 * 59, - 69 * SUM( ALL + CAST( NULL AS SIGNED ) ) + + 7 ) * ( 46 ) AS col2
----
3266

skipif mysql # not compatible
query I rowsort label-4792
SELECT 28 / - 75 + COALESCE ( 56 - - 76 / 5, - 90 * 59, - 69 * SUM ( ALL + CAST ( NULL AS INTEGER ) ) + + 7 ) * ( 46 ) AS col2
----
3266

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT 99 * 42 + COUNT( 19 + ( + 48 ) ) AS col0
----
4159

skipif mysql # not compatible
query I rowsort label-4793
SELECT 99 * 42 + COUNT ( 19 + ( + 48 ) ) AS col0
----
4159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4794
SELECT ALL - CAST( NULL AS DECIMAL ) * + 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - CAST ( NULL AS REAL ) * + 35 AS col1
----
NULL

query I rowsort
SELECT + 60 * 13 + - 29 AS col0
----
751

query I rowsort
SELECT DISTINCT - 37 - + - 24 * 40 AS col0
----
923

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4797
SELECT + CASE + - 23 WHEN 38 THEN 3 + 99 * CAST( 7 + 65 AS DECIMAL ) WHEN 54 + CAST( NULL AS SIGNED ) * 43 THEN NULL ELSE NULL END / COUNT( * ) + - 14 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT + CASE + - 23 WHEN 38 THEN 3 + 99 * CAST ( 7 + 65 AS REAL ) WHEN 54 + CAST ( NULL AS INTEGER ) * 43 THEN NULL ELSE NULL END / COUNT ( * ) + - 14 * 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - + 56 - COUNT( * ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - + 56 - COUNT ( * ) col2
----
-57

query I rowsort
SELECT ALL + 98 * + - 89
----
-8722

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - SUM( ALL - 13 ) * - 60
----
-780

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - SUM ( ALL - 13 ) * - 60
----
-780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4801
SELECT - COUNT( * ) * - - ( + 20 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT - COUNT ( * ) * - - ( + 20 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT ALL - CASE + + 79 WHEN 22 + 66 THEN 83 / 50 + - 42 WHEN SUM( 22 ) THEN 24 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - CASE + + 79 WHEN 22 + 66 THEN 83 / 50 + - 42 WHEN SUM ( 22 ) THEN 24 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 39 WHEN + 4 THEN 96 WHEN + 10 / 81 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT DISTINCT - SUM( ALL + 72 ) col0
----
-72

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - SUM ( ALL + 72 ) col0
----
-72

query II rowsort
SELECT ALL - 65 AS col0, 29 AS col0
----
-65
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL - NULLIF ( + 2, + - COUNT( * ) ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL - NULLIF ( + 2, + - COUNT ( * ) ) AS col0
----
-2

query I rowsort
SELECT 42 * ( + 36 )
----
1512

query II rowsort
SELECT ALL - 81 AS col2, + 32 AS col2
----
-81
32

query I rowsort
SELECT 55 * 74 col0
----
4070

query I rowsort
SELECT ( + 5 ) - 79
----
-74

query I rowsort
SELECT ALL + ( 72 ) * 12 AS col1
----
864

query I rowsort
SELECT 32 * + - 29 * + 54
----
-50112

query I rowsort
SELECT DISTINCT + 17 * 51 AS col0
----
867

query I rowsort
SELECT 45 * + 50
----
2250

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT 51 - + 37 - + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-4815
SELECT 51 - + 37 - + COUNT ( * )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4816
SELECT ALL - 45 + - + CASE + + CAST( 64 AS SIGNED ) WHEN - 23 THEN + 12 WHEN 96 - 83 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - 45 + - + CASE + + CAST ( 64 AS INTEGER ) WHEN - 23 THEN + 12 WHEN 96 - 83 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT 61 - - - 87
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT + ( 87 ) * 81 * COUNT( * ) + + 17 * + COALESCE ( 49 - + ( 80 ), 70 * 16 )
----
6520

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + ( 87 ) * 81 * COUNT ( * ) + + 17 * + COALESCE ( 49 - + ( 80 ), 70 * 16 )
----
6520

query I rowsort
SELECT ( 33 ) - - + 69 + ( + 79 + 36 * 41 ) * 73
----
113617

query II rowsort
SELECT ALL + 53 AS col1, 64 AS col1
----
53
64

query I rowsort
SELECT + ( - - 52 ) AS col1
----
52

query I rowsort
SELECT ALL - 34 + + 36 * 22
----
758

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT 45 + SUM( DISTINCT - ( 78 ) ) * 40
----
-3075

skipif mysql # not compatible
query I rowsort label-4823
SELECT 45 + SUM ( DISTINCT - ( 78 ) ) * 40
----
-3075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4824
SELECT ALL - 43 DIV MAX( + 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - 43 / MAX ( + 43 )
----
-1

query I rowsort
SELECT 35 - - + 76 * 40 AS col1
----
3075

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT - MAX( - NULLIF ( + 52, + 75 + - 79 ) )
----
52

skipif mysql # not compatible
query I rowsort label-4826
SELECT - MAX ( - NULLIF ( + 52, + 75 + - 79 ) )
----
52

query II rowsort
SELECT 62, - ( - 15 ) + 83 AS col2
----
62
98

query II rowsort
SELECT - + 81 col1, 11
----
-81
11

query I rowsort
SELECT ALL ( ( + NULLIF ( - 62, - 89 ) ) ) * 98 AS col0
----
-6076

onlyif mysql # aggregate syntax: 
query I rowsort label-4830
SELECT + 56 + CASE - 7 WHEN + 53 * + SUM( ( 59 ) ) THEN + 36 WHEN + ( 97 ) THEN - 18 WHEN - 94 THEN 77 - + COUNT( * ) END + COUNT( * ) * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4830
SELECT + 56 + CASE - 7 WHEN + 53 * + SUM ( ( 59 ) ) THEN + 36 WHEN + ( 97 ) THEN - 18 WHEN - 94 THEN 77 - + COUNT ( * ) END + COUNT ( * ) * 50
----
NULL

query II rowsort
SELECT + + 91 AS col1, + 22 * - - 90
----
91
1980

query I rowsort
SELECT DISTINCT + 58 * + 32 + - 44 * 48 col0
----
-256

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT 93 * 57 + + 17 + COUNT( * )
----
5319

skipif mysql # not compatible
query I rowsort label-4833
SELECT 93 * 57 + + 17 + COUNT ( * )
----
5319

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT 37 * - + MIN( DISTINCT + 27 ) * 20
----
-19980

skipif mysql # not compatible
query I rowsort label-4834
SELECT 37 * - + MIN ( DISTINCT + 27 ) * 20
----
-19980

query I rowsort
SELECT 24 + 12
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT + - COUNT( 37 )
----
-1

skipif mysql # not compatible
query I rowsort label-4836
SELECT + - COUNT ( 37 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT DISTINCT + - 97 * - - CAST( NULL AS SIGNED ) - + + NULLIF ( 0, MIN( DISTINCT ( - 82 ) ) + 1 ) + 34 * 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4837
SELECT DISTINCT + - 97 * - - CAST ( NULL AS INTEGER ) - + + NULLIF ( 0, MIN ( DISTINCT ( - 82 ) ) + 1 ) + 34 * 52 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT NULLIF ( + 77, - + CAST( 97 AS SIGNED ) * 91 ) * 40
----
3080

skipif mysql # not compatible
query I rowsort label-4838
SELECT NULLIF ( + 77, - + CAST ( 97 AS INTEGER ) * 91 ) * 40
----
3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT CAST( NULL AS SIGNED ) * + 27 * + 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT CAST ( NULL AS INTEGER ) * + 27 * + 83 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT - 85 * - - 49 - + - MIN( ALL + 25 ) + 89
----
-4051

skipif mysql # not compatible
query I rowsort label-4840
SELECT - 85 * - - 49 - + - MIN ( ALL + 25 ) + 89
----
-4051

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT COUNT( * ) + - 23 + - 5 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4841
SELECT COUNT ( * ) + - 23 + - 5 AS col1
----
-27

query I rowsort
SELECT ALL 1 * 69 AS col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT ALL + 44 * 96 * - 83 + ( - MIN( 17 ) ) + + 61 * + 49 AS col1
----
-347620

skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL + 44 * 96 * - 83 + ( - MIN ( 17 ) ) + + 61 * + 49 AS col1
----
-347620

query I rowsort
SELECT DISTINCT 30 * - 20
----
-600

onlyif mysql # DIV for integer division: 
query II rowsort label-4845
SELECT + 41 DIV + 55 AS col0, 55 AS col0
----
0
55

skipif mysql # not compatible
query II rowsort label-4845
SELECT + 41 / + 55 AS col0, 55 AS col0
----
0
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4846
SELECT + 53 + ( + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4846
SELECT + 53 + ( + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4847
SELECT COUNT( * ) * - MAX( + 47 ) - CAST( NULL AS SIGNED ) + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-4847
SELECT COUNT ( * ) * - MAX ( + 47 ) - CAST ( NULL AS INTEGER ) + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4848
SELECT ALL 65 * NULLIF ( + + 69, COUNT( DISTINCT - 76 ) )
----
4485

skipif mysql # not compatible
query I rowsort label-4848
SELECT ALL 65 * NULLIF ( + + 69, COUNT ( DISTINCT - 76 ) )
----
4485

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4849
SELECT ALL 28 * CAST( - 36 AS SIGNED ) DIV - 1 + - 85 * ( + 21 + 85 * + 71 ) AS col0
----
-513752

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL 28 * CAST ( - 36 AS INTEGER ) / - 1 + - 85 * ( + 21 + 85 * + 71 ) AS col0
----
-513752

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT + 29 + + COUNT( * ) + + 27 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-4850
SELECT + 29 + + COUNT ( * ) + + 27 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT - COALESCE ( - ( + ( 36 ) ), + 89 + - 45, ( 7 ) ) + - 60 DIV - 65 AS col0
----
36

skipif mysql # not compatible
query I rowsort label-4851
SELECT - COALESCE ( - ( + ( 36 ) ), + 89 + - 45, ( 7 ) ) + - 60 / - 65 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT SUM( + 14 )
----
14

skipif mysql # not compatible
query I rowsort label-4852
SELECT SUM ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT - 11 + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-4853
SELECT - 11 + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4854
SELECT 40 * - COUNT( * ) DIV - - COUNT( * ) + + 32 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-4854
SELECT 40 * - COUNT ( * ) / - - COUNT ( * ) + + 32 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT ALL + 13 + 32 + - 10 + + 19 - + 23 DIV + ( 5 * + 2 + 24 ) * 57 * 6 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + 13 + 32 + - 10 + + 19 - + 23 / + ( 5 * + 2 + 24 ) * 57 * 6 AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4856
SELECT DISTINCT 22 + + 31 + - CAST( NULL AS SIGNED ) * + - NULLIF ( - 70, + 64 * ( - COUNT( * ) * + 11 ) ) * ( MAX( ALL - 69 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT 22 + + 31 + - CAST ( NULL AS INTEGER ) * + - NULLIF ( - 70, + 64 * ( - COUNT ( * ) * + 11 ) ) * ( MAX ( ALL - 69 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT ALL NULLIF ( - COUNT( * ), 18 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4857
SELECT ALL NULLIF ( - COUNT ( * ), 18 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT DISTINCT CASE - + 93 WHEN + COUNT( * ) * - - 34 * 52 THEN + COUNT( * ) / 45 + 74 WHEN + COUNT( * ) THEN - 64 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT DISTINCT CASE - + 93 WHEN + COUNT ( * ) * - - 34 * 52 THEN + COUNT ( * ) / 45 + 74 WHEN + COUNT ( * ) THEN - 64 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT - ( COALESCE ( - + 38, + COUNT( * ) * 36 ) ) + - MAX( ALL 89 - + 41 ) AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-4859
SELECT - ( COALESCE ( - + 38, + COUNT ( * ) * 36 ) ) + - MAX ( ALL 89 - + 41 ) AS col0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT ALL 94 + + NULLIF ( - 12, + MIN( CAST( NULL AS SIGNED ) ) + - 58 * - 80 )
----
82

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL 94 + + NULLIF ( - 12, + MIN ( CAST ( NULL AS INTEGER ) ) + - 58 * - 80 )
----
82

query I rowsort
SELECT + 63 * + - 80
----
-5040

query I rowsort
SELECT - COALESCE ( + 7, + - 99 + - 71 + - 18 * + 82 ) + + 29
----
22

query I rowsort
SELECT DISTINCT + 14 * - 56 * + + 30 * + 44
----
-1034880

query I rowsort
SELECT - - 3 + ( 72 ) AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL - + COUNT( DISTINCT - + 51 ) * - 16
----
16

skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL - + COUNT ( DISTINCT - + 51 ) * - 16
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4866
SELECT ALL + + 14 - - COUNT( * ) + + 49 DIV - - NULLIF ( + 14, CAST( ( 41 ) AS SIGNED ) * + SUM( 55 ) + ( 93 ) ) + 18
----
36

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + + 14 - - COUNT ( * ) + + 49 / - - NULLIF ( + 14, CAST ( ( 41 ) AS INTEGER ) * + SUM ( 55 ) + ( 93 ) ) + 18
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4867
SELECT - - 42 / CAST( NULL AS DECIMAL ) - 3 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT - - 42 / CAST ( NULL AS REAL ) - 3 col2
----
NULL

query I rowsort
SELECT ALL - + 84 * + 46
----
-3864

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4869
SELECT - CASE + - 61 WHEN - - 16 THEN + - COUNT( * ) WHEN + 15 * - 13 THEN 11 ELSE NULL END - 92 / CAST( - 86 * + 93 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4869
SELECT - CASE + - 61 WHEN - - 16 THEN + - COUNT ( * ) WHEN + 15 * - 13 THEN 11 ELSE NULL END - 92 / CAST ( - 86 * + 93 AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT - 63 DIV - 27 + + 77 DIV - 94 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4870
SELECT - 63 / - 27 + + 77 / - 94 AS col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL COALESCE ( COALESCE ( + + CAST( + 13 AS SIGNED ), ( 93 ) ), + MIN( 77 ) + - 29 * MIN( 47 ) ) col1
----
13

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL COALESCE ( COALESCE ( + + CAST ( + 13 AS INTEGER ), ( 93 ) ), + MIN ( 77 ) + - 29 * MIN ( 47 ) ) col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-4872
SELECT DISTINCT - - 59 DIV + - 79
----
0

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - - 59 / + - 79
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT - - 15 DIV 7 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-4873
SELECT - - 15 / 7 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT ALL - NULLIF ( - + 52, + + 65 ) * COUNT( * ) * + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL - NULLIF ( - + 52, + + 65 ) * COUNT ( * ) * + COUNT ( * )
----
52

query I rowsort
SELECT - 38 + - + 78
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT DISTINCT - 93 DIV - + ( 80 )
----
1

skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT - 93 / - + ( 80 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT - 19 * + 75 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4877
SELECT - 19 * + 75 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT 52 DIV - 79 * + 47 - - 50 col2
----
50

skipif mysql # not compatible
query I rowsort label-4878
SELECT 52 / - 79 * + 47 - - 50 col2
----
50

query II rowsort
SELECT ALL + 0 AS col0, 97 * 88 AS col0
----
0
8536

query I rowsort
SELECT + 66 * - 80 * + 34 * + - 18 * + 87
----
281128320

query I rowsort
SELECT ( - + 81 ) AS col1
----
-81

query I rowsort
SELECT + 83 + + + 65 * - - 74 * + 47 + + - 0 col1
----
226153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4883
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( + MAX( ALL - ( 39 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( + MAX ( ALL - ( 39 ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT 44 * - + 86 + - MAX( ALL + - 70 ) AS col1
----
-3714

skipif mysql # not compatible
query I rowsort label-4884
SELECT 44 * - + 86 + - MAX ( ALL + - 70 ) AS col1
----
-3714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4885
SELECT ( + CAST( - + 67 AS SIGNED ) ) AS col0, - 91 + COUNT( * ) - 88 * 55 * 22 AS col0
----
-67
-106570

skipif mysql # not compatible
query II rowsort label-4885
SELECT ( + CAST ( - + 67 AS INTEGER ) ) AS col0, - 91 + COUNT ( * ) - 88 * 55 * 22 AS col0
----
-67
-106570

query II rowsort
SELECT ALL 99 * + - 3 + 98 AS col2, - 4 AS col2
----
-199
-4

query I rowsort
SELECT + COALESCE ( + + 76, + 78, - - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + 99 * + CASE + 10 WHEN + 73 * + + 98 + ( - 26 ) * - 62 + 50 THEN 67 * 13 END * - COALESCE ( ( COUNT( * ) ), + 74 + + 54 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 99 * + CASE + 10 WHEN + 73 * + + 98 + ( - 26 ) * - 62 + 50 THEN 67 * 13 END * - COALESCE ( ( COUNT ( * ) ), + 74 + + 54 )
----
NULL

query I rowsort
SELECT ALL 11 * - 17
----
-187

query I rowsort
SELECT + ( - + 13 ) AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4891
SELECT ALL COUNT( * ) * + MAX( DISTINCT - CAST( 76 AS SIGNED ) ) * - - 1 + 91
----
15

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT - CAST ( 76 AS INTEGER ) ) * - - 1 + 91
----
15

query I rowsort
SELECT ALL 46 * - - 8 AS col2
----
368

query I rowsort
SELECT - 64 - - + 32 + 39 * + + 54 * + 85 + + 41 col1
----
179019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT + + 21 * - 64 * + CAST( NULL AS SIGNED ) + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT + + 21 * - 64 * + CAST ( NULL AS INTEGER ) + - 78
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT - + COALESCE ( + - 18, 81, - NULLIF ( 43, ( - ( 99 ) ) / + 71 ) * 21 + CAST( NULL AS SIGNED ) ) col0
----
18

skipif mysql # not compatible
query I rowsort label-4895
SELECT - + COALESCE ( + - 18, 81, - NULLIF ( 43, ( - ( 99 ) ) / + 71 ) * 21 + CAST ( NULL AS INTEGER ) ) col0
----
18

query I rowsort
SELECT + + 37 + + 47
----
84

query I rowsort
SELECT + 84 * - 52
----
-4368

query I rowsort
SELECT - 54 * COALESCE ( - + 3, - 96 + - 83 * - 4 ) + + ( 95 )
----
257

query I rowsort
SELECT + 97 - 0 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT ALL MIN( DISTINCT 44 ) * + + 2 * - 52
----
-4576

skipif mysql # not compatible
query I rowsort label-4900
SELECT ALL MIN ( DISTINCT 44 ) * + + 2 * - 52
----
-4576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4901
SELECT DISTINCT + CAST( - 2 AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + CAST ( - 2 AS INTEGER ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT + 11 - COUNT( * ) * 90 * - 19
----
1721

skipif mysql # not compatible
query I rowsort label-4902
SELECT + 11 - COUNT ( * ) * 90 * - 19
----
1721

query I rowsort
SELECT + COALESCE ( + 44, ( + - 53 ) ) + 50
----
94

query I rowsort
SELECT - + 80 * - - 30 + + + 26 * 94 + 64 * - 18 AS col1
----
-1108

query I rowsort
SELECT + ( 87 )
----
87

query I rowsort
SELECT + + ( + ( 69 ) ) + + NULLIF ( - - 92, COALESCE ( 80, 78 ) ) AS col0
----
161

query II rowsort
SELECT - + 30 - + 97 + + - 95 AS col0, - 98
----
-222
-98

query I rowsort
SELECT + - 19 * - + 21 + - 83
----
316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT ALL + - 69 + + 1 * + 67 + + - ( + 8 ) + NULLIF ( 22, 46 + ( CASE 49 WHEN CAST( - COUNT( * ) AS SIGNED ) THEN COUNT( * ) WHEN - 52 THEN NULL END - - ( 89 ) ) ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL + - 69 + + 1 * + 67 + + - ( + 8 ) + NULLIF ( 22, 46 + ( CASE 49 WHEN CAST ( - COUNT ( * ) AS INTEGER ) THEN COUNT ( * ) WHEN - 52 THEN NULL END - - ( 89 ) ) ) AS col1
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4910
SELECT CAST( NULL AS SIGNED ), AVG ( + CAST( NULL AS DECIMAL ) ) * - - 9 col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4910
SELECT CAST ( NULL AS INTEGER ), AVG ( + CAST ( NULL AS REAL ) ) * - - 9 col0
----
NULL
NULL

query I rowsort
SELECT ALL 97 * + - 58 AS col0
----
-5626

onlyif mysql # aggregate syntax: 
query II rowsort label-4912
SELECT DISTINCT - 6 + + + COUNT( ALL - 92 ) AS col0, + 93 AS col2
----
-5
93

skipif mysql # not compatible
query II rowsort label-4912
SELECT DISTINCT - 6 + + + COUNT ( ALL - 92 ) AS col0, + 93 AS col2
----
-5
93

query I rowsort
SELECT 46 + - 54 * + 65 AS col0
----
-3464

query II rowsort
SELECT 16 AS col0, 58 - + 77 AS col2
----
16
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL + ( + CASE - 37 WHEN - 5 * - 29 THEN + - COUNT( * ) END ) + - 68 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + ( + CASE - 37 WHEN - 5 * - 29 THEN + - COUNT ( * ) END ) + - 68 * - 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL - COUNT( * ) + + 78
----
77

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL - COUNT ( * ) + + 78
----
77

query II rowsort
SELECT + 44, 66 AS col1
----
44
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4918
SELECT 76 DIV + 22 DIV 1 + - + 24 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-4918
SELECT 76 / + 22 / 1 + - + 24 AS col0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4919
SELECT 97 AS col0, 5 * - CAST( NULL AS SIGNED ) * + 77
----
97
NULL

skipif mysql # not compatible
query II rowsort label-4919
SELECT 97 AS col0, 5 * - CAST ( NULL AS INTEGER ) * + 77
----
97
NULL

query II rowsort
SELECT 32 AS col2, 74
----
32
74

query I rowsort
SELECT ALL - ( ( + - ( + 88 ) ) ) AS col1
----
88

query I rowsort
SELECT 26 + - - 36 col0
----
62

query I rowsort
SELECT 65 * + 39
----
2535

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT - 95 * - CASE COUNT( - + 58 ) WHEN + 43 THEN - + COUNT( * ) + 70 * + 15 END + + 62 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4924
SELECT - 95 * - CASE COUNT ( - + 58 ) WHEN + 43 THEN - + COUNT ( * ) + 70 * + 15 END + + 62 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + 76 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + 76 + + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 10 AS col0, 40
----
10
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT ALL - 13 + SUM( + - ( - + 49 ) ) + - - 36 - 41 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL - 13 + SUM ( + - ( - + 49 ) ) + - - 36 - 41 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT 76 * - CASE + 40 WHEN 72 THEN + + 75 WHEN + 71 THEN 47 - COUNT( * ) * 88 ELSE NULL END + + 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4928
SELECT 76 * - CASE + 40 WHEN 72 THEN + + 75 WHEN + 71 THEN 47 - COUNT ( * ) * 88 ELSE NULL END + + 79 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT 70 + + - COUNT( * ) * SUM( ALL 33 ) * + 13 * + ( + 3 )
----
-1217

skipif mysql # not compatible
query I rowsort label-4929
SELECT 70 + + - COUNT ( * ) * SUM ( ALL 33 ) * + 13 * + ( + 3 )
----
-1217

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT ALL - 13 - - 63 * - COUNT( * ) * 21 * COALESCE ( - 65, - 71 + - CAST( - 73 AS SIGNED ) ) AS col1
----
85982

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL - 13 - - 63 * - COUNT ( * ) * 21 * COALESCE ( - 65, - 71 + - CAST ( - 73 AS INTEGER ) ) AS col1
----
85982

query I rowsort
SELECT DISTINCT - ( 99 )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT + CASE - + 28 WHEN + - 84 THEN NULL WHEN + 49 THEN - COUNT( * ) ELSE NULL END * 49 + + 58 - 47 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT + CASE - + 28 WHEN + - 84 THEN NULL WHEN + 49 THEN - COUNT ( * ) ELSE NULL END * 49 + + 58 - 47 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4933
SELECT ALL - ( + 95 ) AS col1, COUNT( - + 14 )
----
-95
1

skipif mysql # not compatible
query II rowsort label-4933
SELECT ALL - ( + 95 ) AS col1, COUNT ( - + 14 )
----
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - 86 * + COUNT( * ) AS col0
----
-86

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - 86 * + COUNT ( * ) AS col0
----
-86

query I rowsort
SELECT 60 + + + 54
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT NULLIF ( 73, - ( 27 ) / - COUNT( * ) / + - COUNT( * ) ) * 2 + 85 * + 29
----
2611

skipif mysql # not compatible
query I rowsort label-4936
SELECT NULLIF ( 73, - ( 27 ) / - COUNT ( * ) / + - COUNT ( * ) ) * 2 + 85 * + 29
----
2611

query I rowsort
SELECT 67 * - - 56 * ( 51 )
----
191352

query II rowsort
SELECT + 86 AS col2, - 28
----
86
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4939
SELECT - 29 + 38 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4939
SELECT - 29 + 38 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT ALL MIN( + 92 ) - + - 26
----
118

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL MIN ( + 92 ) - + - 26
----
118

query I rowsort
SELECT 43 * + ( + 44 ) AS col1
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ( + COUNT( * ) ) * 42 + - - COUNT( DISTINCT ( + - 22 ) ) + + ( 49 + CASE 25 WHEN 39 THEN NULL WHEN COUNT( * ) THEN ( 39 ) END ) * + ( + 96 ) * - COUNT( DISTINCT + 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4942
SELECT ( + COUNT ( * ) ) * 42 + - - COUNT ( DISTINCT ( + - 22 ) ) + + ( 49 + CASE 25 WHEN 39 THEN NULL WHEN COUNT ( * ) THEN ( 39 ) END ) * + ( + 96 ) * - COUNT ( DISTINCT + 85 )
----
NULL

query II rowsort
SELECT ALL - 33 AS col2, 83
----
-33
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4944
SELECT DISTINCT - + 60 AS col2, + CASE - COUNT( * ) WHEN + + 25 THEN - - 48 * 93 WHEN 12 THEN NULL WHEN + NULLIF ( + 98, - COALESCE ( 31, ( MIN( ALL 10 ) ) ) ) * - 64 - 53 THEN - 38 ELSE NULL END
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-4944
SELECT DISTINCT - + 60 AS col2, + CASE - COUNT ( * ) WHEN + + 25 THEN - - 48 * 93 WHEN 12 THEN NULL WHEN + NULLIF ( + 98, - COALESCE ( 31, ( MIN ( ALL 10 ) ) ) ) * - 64 - 53 THEN - 38 ELSE NULL END
----
-60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL 39 * + NULLIF ( + ( + MIN( ALL 68 ) ), - 47 )
----
2652

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL 39 * + NULLIF ( + ( + MIN ( ALL 68 ) ), - 47 )
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - 9 + - - MAX( + 12 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 9 + - - MAX ( + 12 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4947
SELECT ALL + 10 AS col0, 86 * + - COUNT( * ) AS col0
----
10
-86

skipif mysql # not compatible
query II rowsort label-4947
SELECT ALL + 10 AS col0, 86 * + - COUNT ( * ) AS col0
----
10
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4948
SELECT 30 + - CASE + - 60 WHEN MIN( CAST( NULL AS SIGNED ) ) * + + MAX( ( 53 ) ) / - 87 THEN - 96 ELSE 19 END + 57 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-4948
SELECT 30 + - CASE + - 60 WHEN MIN ( CAST ( NULL AS INTEGER ) ) * + + MAX ( ( 53 ) ) / - 87 THEN - 96 ELSE 19 END + 57 AS col1
----
68

query I rowsort
SELECT + 75 * + - 72 AS col1
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT + COUNT( * ) + - + 55
----
-54

skipif mysql # not compatible
query I rowsort label-4950
SELECT + COUNT ( * ) + - + 55
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4951
SELECT - CASE - 72 WHEN 8 THEN NULL WHEN + 41 + + 57 * + - 12 THEN - 80 * - 22 + - 43 ELSE + COUNT( * ) END DIV + 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4951
SELECT - CASE - 72 WHEN 8 THEN NULL WHEN + 41 + + 57 * + - 12 THEN - 80 * - 22 + - 43 ELSE + COUNT ( * ) END / + 38 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT COUNT( * ) * - + 5 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-4952
SELECT COUNT ( * ) * - + 5 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT DISTINCT NULLIF ( - + 39, - CASE + COUNT( DISTINCT + 94 ) WHEN + 96 * COALESCE ( - COUNT( * ) * 47, 88 * 94 ) THEN - 22 END ) + - 63 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT NULLIF ( - + 39, - CASE + COUNT ( DISTINCT + 94 ) WHEN + 96 * COALESCE ( - COUNT ( * ) * 47, 88 * 94 ) THEN - 22 END ) + - 63 AS col0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT 99 + 70 + - CASE 82 WHEN - 71 + CASE ( 32 ) WHEN 4 * 31 + + 94 THEN NULLIF ( 2, 76 ) * - 35 END + + 72 THEN NULL ELSE MIN( - 4 ) END + 28 * + 95
----
2833

skipif mysql # not compatible
query I rowsort label-4954
SELECT 99 + 70 + - CASE 82 WHEN - 71 + CASE ( 32 ) WHEN 4 * 31 + + 94 THEN NULLIF ( 2, 76 ) * - 35 END + + 72 THEN NULL ELSE MIN ( - 4 ) END + 28 * + 95
----
2833

query I rowsort
SELECT + 34 + + + 83 + ( 6 ) + 76 + + 18 AS col1
----
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL + 44 + + 58 + - 77 * MAX( - 89 )
----
6955

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL + 44 + + 58 + - 77 * MAX ( - 89 )
----
6955

query I rowsort
SELECT 20 - - 77 - 40
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT COUNT( * ) * + 39
----
39

skipif mysql # not compatible
query I rowsort label-4958
SELECT COUNT ( * ) * + 39
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT 61 + COUNT( * ) + + 61 col2
----
123

skipif mysql # not compatible
query I rowsort label-4959
SELECT 61 + COUNT ( * ) + + 61 col2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL - 44 + + - CASE - COUNT( ALL - 26 ) WHEN NULLIF ( NULLIF ( 46, + ( + 40 ) ), - 0 ) * + 85 - + 43 * COUNT( * ) THEN + 23 * + 80 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL - 44 + + - CASE - COUNT ( ALL - 26 ) WHEN NULLIF ( NULLIF ( 46, + ( + 40 ) ), - 0 ) * + 85 - + 43 * COUNT ( * ) THEN + 23 * + 80 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT ALL + 90 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + 90 * + COUNT ( * )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT CASE + - 8 WHEN + 87 * 87 + 36 THEN - NULLIF ( + COALESCE ( - COALESCE ( - 57, 10 * + 65 + + COUNT( * ) / - 60, - 93 ), 2 + + 84 * 76 ), 98 * - 5 ) WHEN 90 THEN COUNT( * ) / 31 + - COUNT( * ) * 92 ELSE NULL END * + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT CASE + - 8 WHEN + 87 * 87 + 36 THEN - NULLIF ( + COALESCE ( - COALESCE ( - 57, 10 * + 65 + + COUNT ( * ) / - 60, - 93 ), 2 + + 84 * 76 ), 98 * - 5 ) WHEN 90 THEN COUNT ( * ) / 31 + - COUNT ( * ) * 92 ELSE NULL END * + 82 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 72 * - ( 77 )
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT ALL 6 - CAST( NULL AS SIGNED ) * + - 37 * + - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL 6 - CAST ( NULL AS INTEGER ) * + - 37 * + - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL - COALESCE ( COUNT( * ), - 22, - 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - COALESCE ( COUNT ( * ), - 22, - 94 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT 86 + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-4966
SELECT 86 + + COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4967
SELECT ALL - NULLIF ( + + 6, + + 83 * + 29 * + 46 + + COUNT( * ) + - CAST( 68 AS DECIMAL ) - - 37 + 36 )
----
-6

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL - NULLIF ( + + 6, + + 83 * + 29 * + 46 + + COUNT ( * ) + - CAST ( 68 AS REAL ) - - 37 + 36 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT + SUM( + - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-4968
SELECT + SUM ( + - 35 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT 18 * - CASE + SUM( + 96 ) WHEN + - 6 * - CASE 22 WHEN - 69 THEN - 53 + + 35 ELSE NULL END + 63 - 94 THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 67 * 76 END + 34
----
91690

skipif mysql # not compatible
query I rowsort label-4969
SELECT 18 * - CASE + SUM ( + 96 ) WHEN + - 6 * - CASE 22 WHEN - 69 THEN - 53 + + 35 ELSE NULL END + 63 - 94 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 67 * 76 END + 34
----
91690

query I rowsort
SELECT 76 * + 60 AS col2
----
4560

query I rowsort
SELECT 79 * + 93 AS col1
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT DISTINCT + - 70 * COUNT( * ) * 43
----
-3010

skipif mysql # not compatible
query I rowsort label-4972
SELECT DISTINCT + - 70 * COUNT ( * ) * 43
----
-3010

query I rowsort
SELECT ALL - 35 * + 42 + + 53
----
-1417

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - + COALESCE ( - COUNT( * ), + 53 * 94 - + 42 * + - NULLIF ( + COALESCE ( + COALESCE ( - 95, 96 * + 68 ), 65 ), + 80 ) * 43 + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - + COALESCE ( - COUNT ( * ), + 53 * 94 - + 42 * + - NULLIF ( + COALESCE ( + COALESCE ( - 95, 96 * + 68 ), 65 ), + 80 ) * 43 + 57 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT + 93 * - + COUNT( * ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-4975
SELECT + 93 * - + COUNT ( * ) AS col1
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT - + ( COUNT( * ) ) * - 76 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - + ( COUNT ( * ) ) * - 76 AS col2
----
76

query I rowsort
SELECT + 7 * - 44
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT 68 + + COUNT( * ) + - + 50 - - 81
----
100

skipif mysql # not compatible
query I rowsort label-4978
SELECT 68 + + COUNT ( * ) + - + 50 - - 81
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-4979
SELECT ALL - + 28 + + COUNT( * ) AS col2, 77 - + 59 col0
----
-27
18

skipif mysql # not compatible
query II rowsort label-4979
SELECT ALL - + 28 + + COUNT ( * ) AS col2, 77 - + 59 col0
----
-27
18

query I rowsort
SELECT - 73 + - - 39
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT - MAX( DISTINCT + 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-4981
SELECT - MAX ( DISTINCT + 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL - 39 + - NULLIF ( + COUNT( * ), NULLIF ( + - NULLIF ( - 0, 23 ), + 58 - - 52 * 71 ) ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL - 39 + - NULLIF ( + COUNT ( * ), NULLIF ( + - NULLIF ( - 0, 23 ), + 58 - - 52 * 71 ) ) AS col1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - - COUNT( * ) - 48 + + 32 + + 36 - + 34 - - NULLIF ( + 87, - 19 ) + 86 col0
----
160

skipif mysql # not compatible
query I rowsort label-4983
SELECT - - COUNT ( * ) - 48 + + 32 + + 36 - + 34 - - NULLIF ( + 87, - 19 ) + 86 col0
----
160

query I rowsort
SELECT ALL + 59 + - 52 + CASE - 53 WHEN 63 THEN - 70 WHEN - + 87 * - 60 THEN NULL ELSE NULL END - 23 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4985
SELECT ALL - ( + 80 ), 26 - COALESCE ( - MIN( COALESCE ( - 8, 26, 70, 15 ) ), 0 DIV + 98 ) * + 50 AS col1
----
-80
-374

skipif mysql # not compatible
query II rowsort label-4985
SELECT ALL - ( + 80 ), 26 - COALESCE ( - MIN ( COALESCE ( - 8, 26, 70, 15 ) ), 0 / + 98 ) * + 50 AS col1
----
-80
-374

query I rowsort
SELECT NULLIF ( + ( - + CASE 86 WHEN 11 THEN + 98 WHEN - 34 THEN NULL ELSE NULL END ), + 53 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT + - 78 + + 7 * ( + 76 ) * + + 92 + + CAST( 10 AS SIGNED ) + + 3
----
48879

skipif mysql # not compatible
query I rowsort label-4987
SELECT + - 78 + + 7 * ( + 76 ) * + + 92 + + CAST ( 10 AS INTEGER ) + + 3
----
48879

onlyif mysql # DIV for integer division: 
query I rowsort label-4988
SELECT DISTINCT + + 73 DIV - - 87 * 14 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT + + 73 / - - 87 * 14 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - ( - COUNT( * ) ) + + 88 * + 67 * + + 31 col0
----
182777

skipif mysql # not compatible
query I rowsort label-4989
SELECT - ( - COUNT ( * ) ) + + 88 * + 67 * + + 31 col0
----
182777

query I rowsort
SELECT + 45 * - 85
----
-3825

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT COUNT( * ) + 57 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT COUNT ( * ) + 57 AS col0
----
58

query I rowsort
SELECT - 13 + + 93
----
80

query I rowsort
SELECT + 19 - + + 76
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT + ( - 83 ) - CASE - - COUNT( * ) WHEN - COUNT( * ) + + ( COUNT( * ) ) + 43 + 84 THEN NULL WHEN - 45 THEN + 96 + - ( 61 ) * - 8 ELSE 44 * - ( + 94 DIV 19 ) END AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4994
SELECT + ( - 83 ) - CASE - - COUNT ( * ) WHEN - COUNT ( * ) + + ( COUNT ( * ) ) + 43 + 84 THEN NULL WHEN - 45 THEN + 96 + - ( 61 ) * - 8 ELSE 44 * - ( + 94 / 19 ) END AS col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL 1 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL 1 + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT + NULLIF ( 86, - COUNT( * ) ) * 39
----
3354

skipif mysql # not compatible
query I rowsort label-4996
SELECT + NULLIF ( 86, - COUNT ( * ) ) * 39
----
3354

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT 65 AS col1, - ( 72 ) * + - 78 * - + COUNT( DISTINCT + + 8 ) + + + 10 - - 61 AS col2
----
65
-5545

skipif mysql # not compatible
query II rowsort label-4997
SELECT 65 AS col1, - ( 72 ) * + - 78 * - + COUNT ( DISTINCT + + 8 ) + + + 10 - - 61 AS col2
----
65
-5545

query II rowsort
SELECT ALL 53, - 1 AS col2
----
53
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4999
SELECT DISTINCT 53 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT 53 / + 51
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 59 + - 20 + + COALESCE ( ( 18 ), - COUNT( * ), - COUNT( + + 93 ), - 77 * COALESCE ( COUNT( * ), - 90 + COUNT( * ) ) - 81 ) + - 67 * + 39
----
-2556

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 59 + - 20 + + COALESCE ( ( 18 ), - COUNT ( * ), - COUNT ( + + 93 ), - 77 * COALESCE ( COUNT ( * ), - 90 + COUNT ( * ) ) - 81 ) + - 67 * + 39
----
-2556

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT ALL 88 - + + 43 + - MIN( ALL - 36 ) * 14 + + COUNT( * )
----
550

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL 88 - + + 43 + - MIN ( ALL - 36 ) * 14 + + COUNT ( * )
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL MIN( + 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL MIN ( + 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - CASE + ( + 52 ) WHEN 64 - 62 THEN - COUNT( DISTINCT - 55 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5003
SELECT - CASE + ( + 52 ) WHEN 64 - 62 THEN - COUNT ( DISTINCT - 55 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + MIN( - 61 ) + + 46 + + - CASE - 76 WHEN - 58 THEN NULL ELSE ( 32 ) END
----
-47

skipif mysql # not compatible
query I rowsort label-5004
SELECT + MIN ( - 61 ) + + 46 + + - CASE - 76 WHEN - 58 THEN NULL ELSE ( 32 ) END
----
-47

query I rowsort
SELECT + 41 + + CASE - 26 WHEN + ( + 55 ) + - 51 / + + 10 THEN 53 ELSE NULL END * 84 AS col2
----
NULL

query II rowsort
SELECT ALL + 31 AS col0, - 56 * + 83 + ( - - 44 ) * - 25 + - + 42 + + - 53
----
31
-5843

query I rowsort
SELECT ( - - 13 )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5008
SELECT + 86 * + + 33 + + + 10, - 82 + - 78 + COUNT( * ) + 0 AS col0
----
2848
-159

skipif mysql # not compatible
query II rowsort label-5008
SELECT + 86 * + + 33 + + + 10, - 82 + - 78 + COUNT ( * ) + 0 AS col0
----
2848
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + COALESCE ( - 13, - NULLIF ( - - 71, + NULLIF ( - COUNT( * ), - - ( + ( - 45 ) ) + - 17 ) ) + 61, NULLIF ( - 74, + 35 ) * 44 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5009
SELECT + COALESCE ( - 13, - NULLIF ( - - 71, + NULLIF ( - COUNT ( * ), - - ( + ( - 45 ) ) + - 17 ) ) + 61, NULLIF ( - 74, + 35 ) * 44 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT + CAST( + CAST( 52 AS SIGNED ) AS SIGNED ) * 67 * + + 65 AS col2
----
226460

skipif mysql # not compatible
query I rowsort label-5010
SELECT + CAST ( + CAST ( 52 AS INTEGER ) AS INTEGER ) * 67 * + + 65 AS col2
----
226460

query I rowsort
SELECT ALL + COALESCE ( 26, + 60 ) * - 47
----
-1222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5012
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + CAST( NULL AS DECIMAL ) * 28 - + 41 + - - 78 * COUNT( * ) * 7 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS REAL ) * 28 - + 41 + - - 78 * COUNT ( * ) * 7 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT ALL 33 * + COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL 33 * + COUNT ( * ) AS col0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT 84 * + - 85 - - 2 + + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT 84 * + - 85 - - 2 + + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT 41 AS col2, - 39 + - 33 AS col1
----
41
-72

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5016
SELECT DISTINCT + + CASE - COUNT( * ) WHEN CAST( NULL AS DECIMAL ) THEN COUNT( * ) * 0 - - COUNT( * ) - SUM( - 57 ) + 33 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + + CASE - COUNT ( * ) WHEN CAST ( NULL AS REAL ) THEN COUNT ( * ) * 0 - - COUNT ( * ) - SUM ( - 57 ) + 33 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL - - ( + + NULLIF ( + 99, - - 6 ) ) * + 11 + - + 0 - 25 + - 79 + COUNT( * ) * - 21
----
964

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - - ( + + NULLIF ( + 99, - - 6 ) ) * + 11 + - + 0 - 25 + - 79 + COUNT ( * ) * - 21
----
964

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT + COUNT( * ) + ( 18 ) * + ( 92 ) * - + 97 + - 72 + - - 27
----
-160676

skipif mysql # not compatible
query I rowsort label-5018
SELECT + COUNT ( * ) + ( 18 ) * + ( 92 ) * - + 97 + - 72 + - - 27
----
-160676

query I rowsort
SELECT DISTINCT + + 11 * + 29 + 4 + ( 94 ) AS col2
----
417

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL + + CASE + ( + 92 ) WHEN + COUNT( * ) / + - 22 * 11 THEN - 96 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + + CASE + ( + 92 ) WHEN + COUNT ( * ) / + - 22 * 11 THEN - 96 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT + 57 DIV 35 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5021
SELECT + 57 / 35 AS col2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5022
SELECT - - 43 + - 69 * NULLIF ( - - 48, 64 + - 39 + CAST( NULL AS DECIMAL ) / 12 )
----
-3269

skipif mysql # not compatible
query I rowsort label-5022
SELECT - - 43 + - 69 * NULLIF ( - - 48, 64 + - 39 + CAST ( NULL AS REAL ) / 12 )
----
-3269

query II rowsort
SELECT + COALESCE ( 44, 16 ) AS col2, 89
----
44
89

query II rowsort
SELECT 34 AS col1, + 86 AS col2
----
34
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL + COUNT( - 93 ) * 90
----
90

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + COUNT ( - 93 ) * 90
----
90

query II rowsort
SELECT ALL + ( + + 53 ) * - 45, 59 AS col0
----
-2385
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT ALL - CAST( NULL AS SIGNED ) + - 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - CAST ( NULL AS INTEGER ) + - 99 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5028
SELECT + 4 * CAST( NULL AS SIGNED ) + + + NULLIF ( + + 88, - 34 * - - AVG ( ALL 51 ) + + MAX( ALL + 55 ) ) + - AVG ( DISTINCT + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5028
SELECT + 4 * CAST ( NULL AS INTEGER ) + + + NULLIF ( + + 88, - 34 * - - AVG ( ALL 51 ) + + MAX ( ALL + 55 ) ) + - AVG ( DISTINCT + 65 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5029
SELECT + SUM( DISTINCT CAST( - - 74 AS SIGNED ) ) + + 66 AS col1
----
140

skipif mysql # not compatible
query I rowsort label-5029
SELECT + SUM ( DISTINCT CAST ( - - 74 AS INTEGER ) ) + + 66 AS col1
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5030
SELECT DISTINCT CAST( 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT CAST ( 0 AS INTEGER )
----
0

query I rowsort
SELECT - ( - 22 ) + - - 61
----
83

query I rowsort
SELECT ALL 47 * + 8 * - 96 AS col0
----
-36096

query I rowsort
SELECT + 53 * - 4 AS col1
----
-212

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT ALL - 54 DIV + - 10
----
5

skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL - 54 / + - 10
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - COUNT( * ) - + 61 col0
----
-62

skipif mysql # not compatible
query I rowsort label-5035
SELECT - COUNT ( * ) - + 61 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT - SUM( 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-5036
SELECT - SUM ( 51 )
----
-51

query I rowsort
SELECT + ( - + 57 ) + 5 col2
----
-52

query I rowsort
SELECT - ( - - 92 ) AS col2
----
-92

query I rowsort
SELECT ALL 11 * - 79
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT + 23 + - - 39 * + COALESCE ( - + 31, ( - - 75 ), - COUNT( * ) - - COUNT( * ) + - 88 + + 74 * - MIN( 40 * + ( + 4 ) ), - 38 )
----
-1186

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 23 + - - 39 * + COALESCE ( - + 31, ( - - 75 ), - COUNT ( * ) - - COUNT ( * ) + - 88 + + 74 * - MIN ( 40 * + ( + 4 ) ), - 38 )
----
-1186

query I rowsort
SELECT - CASE WHEN NOT NULL IS NULL THEN - 81 ELSE + ( COALESCE ( - 89, - ( - 54 ) ) ) END AS col0
----
89

query I rowsort
SELECT DISTINCT + ( - 32 ) col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT + 87 * - NULLIF ( + 51, - 18 ) * - - COUNT( * ) * - + 98 * - + 76 * + NULLIF ( + CASE WHEN NOT 69 > NULL THEN NULL ELSE 13 END, MAX( DISTINCT 41 ) ) + ( 88 ) * 51 AS col0
----
-429603600

skipif mysql # not compatible
query I rowsort label-5043
SELECT + 87 * - NULLIF ( + 51, - 18 ) * - - COUNT ( * ) * - + 98 * - + 76 * + NULLIF ( + CASE WHEN NOT 69 > NULL THEN NULL ELSE 13 END, MAX ( DISTINCT 41 ) ) + ( 88 ) * 51 AS col0
----
-429603600

onlyif mysql # DIV for integer division: 
query I rowsort label-5044
SELECT + 75 DIV - 47 + - 47 + - 97 DIV - - 51 col2
----
-49

skipif mysql # not compatible
query I rowsort label-5044
SELECT + 75 / - 47 + - 47 + - 97 / - - 51 col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT ALL - 39 DIV - 38 + - - 90 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - 39 / - 38 + - - 90 AS col0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5046
SELECT + + 27 * - 95 - - 21 + - 23 DIV + 80
----
-2544

skipif mysql # not compatible
query I rowsort label-5046
SELECT + + 27 * - 95 - - 21 + - 23 / + 80
----
-2544

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT + SUM( DISTINCT + + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-5047
SELECT + SUM ( DISTINCT + + 28 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT + COALESCE ( - + 41, - 40, + COUNT( * ) + COALESCE ( + 40, - 58 * - 80 + + SUM( + 12 ) DIV - 35 - 84 ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5048
SELECT + COALESCE ( - + 41, - 40, + COUNT ( * ) + COALESCE ( + 40, - 58 * - 80 + + SUM ( + 12 ) / - 35 - 84 ) ) AS col0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5049
SELECT ALL - - 67 DIV - 50 + - - 76 + - CAST( COUNT( * ) AS SIGNED )
----
74

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL - - 67 / - 50 + - - 76 + - CAST ( COUNT ( * ) AS INTEGER )
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT + CAST( + COUNT( + + 39 ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-5050
SELECT + CAST ( + COUNT ( + + 39 ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT - 64 * - COUNT( * ) + + COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 64 * - COUNT ( * ) + + COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5052
SELECT DISTINCT - + 98 + - COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - + 98 + - COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT + 44 + - - 27 + + + COUNT( * ) * 55 + + + COUNT( * ) + + 66 - 64 + + 26
----
155

skipif mysql # not compatible
query I rowsort label-5053
SELECT + 44 + - - 27 + + + COUNT ( * ) * 55 + + + COUNT ( * ) + + 66 - 64 + + 26
----
155

query I rowsort
SELECT - NULLIF ( 75, + 37 * + 93 * + 60 )
----
-75

query I rowsort
SELECT CASE + + 3 WHEN 71 THEN NULL WHEN 56 / + 19 THEN - 12 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT + ( 81 ) DIV + 35
----
2

skipif mysql # not compatible
query I rowsort label-5056
SELECT + ( 81 ) / + 35
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT ALL CASE SUM( ALL + 45 ) WHEN COUNT( * ) + - + CASE 98 WHEN - 55 THEN + - 25 END THEN + COUNT( ALL 41 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5057
SELECT ALL CASE SUM ( ALL + 45 ) WHEN COUNT ( * ) + - + CASE 98 WHEN - 55 THEN + - 25 END THEN + COUNT ( ALL 41 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT 77 * + ( - ( - CAST( + 3 AS SIGNED ) ) ) + COALESCE ( 54, + - SUM( ALL 12 ) )
----
285

skipif mysql # not compatible
query I rowsort label-5058
SELECT 77 * + ( - ( - CAST ( + 3 AS INTEGER ) ) ) + COALESCE ( 54, + - SUM ( ALL 12 ) )
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT - 36 + - CAST( - + 10 AS SIGNED )
----
-26

skipif mysql # not compatible
query I rowsort label-5059
SELECT - 36 + - CAST ( - + 10 AS INTEGER )
----
-26

query I rowsort
SELECT DISTINCT - 37 - - 23
----
-14

query I rowsort
SELECT ALL - 31 * - 99
----
3069

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT 55 - + - 7 DIV + 69 col2
----
55

skipif mysql # not compatible
query I rowsort label-5062
SELECT 55 - + - 7 / + 69 col2
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT ALL MIN( 51 ) DIV NULLIF ( - - 39, - + 81 ) + MAX( + 7 )
----
8

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL MIN ( 51 ) / NULLIF ( - - 39, - + 81 ) + MAX ( + 7 )
----
8

query I rowsort
SELECT 64 + + 14 AS col0
----
78

query I rowsort
SELECT ALL + 58 * - 74 AS col1
----
-4292

onlyif mysql # aggregate syntax: 
query II rowsort label-5066
SELECT ALL 96, 93 - - 53 * - 75 - + - COUNT( * ) + - 80 + - 32 col0
----
96
-3993

skipif mysql # not compatible
query II rowsort label-5066
SELECT ALL 96, 93 - - 53 * - 75 - + - COUNT ( * ) + - 80 + - 32 col0
----
96
-3993

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5067
SELECT NULLIF ( - COUNT( * ), - 41 ) DIV - - 9
----
0

skipif mysql # not compatible
query I rowsort label-5067
SELECT NULLIF ( - COUNT ( * ), - 41 ) / - - 9
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT 54 + + COUNT( * ) - + 10 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5068
SELECT 54 + + COUNT ( * ) - + 10 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT 90 * ( + COALESCE ( 42, - 82 - + 68 * - 53 + - COUNT( * ) - - + 55 * + - 28, - 18 + + NULLIF ( 2, 74 + + 71 ) * 61 ) ) AS col0
----
3780

skipif mysql # not compatible
query I rowsort label-5069
SELECT 90 * ( + COALESCE ( 42, - 82 - + 68 * - 53 + - COUNT ( * ) - - + 55 * + - 28, - 18 + + NULLIF ( 2, 74 + + 71 ) * 61 ) ) AS col0
----
3780

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT 64 + - 95 + + 70 DIV - 78 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-5070
SELECT 64 + - 95 + + 70 / - 78 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT 80 * + MAX( - + COALESCE ( - - ( - + 33 ), + 60 ) ) AS col0
----
2640

skipif mysql # not compatible
query I rowsort label-5071
SELECT 80 * + MAX ( - + COALESCE ( - - ( - + 33 ), + 60 ) ) AS col0
----
2640

query I rowsort
SELECT ALL - 23 + + ( - 3 ) + - 2 AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT DISTINCT - 51 * - - ( - 64 ) * - 95 DIV - COUNT( * ) AS col0
----
310080

skipif mysql # not compatible
query I rowsort label-5073
SELECT DISTINCT - 51 * - - ( - 64 ) * - 95 / - COUNT ( * ) AS col0
----
310080

query II rowsort
SELECT ALL 71, + 24 AS col2
----
71
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5075
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5076
SELECT - 0 * - 28 DIV - - 3 + + COUNT( * ) + + 2 * + COUNT( * ) * ( + - 30 ) * + 99
----
-5939

skipif mysql # not compatible
query I rowsort label-5076
SELECT - 0 * - 28 / - - 3 + + COUNT ( * ) + + 2 * + COUNT ( * ) * ( + - 30 ) * + 99
----
-5939

query I rowsort
SELECT 63 * + 66 + 66 AS col2
----
4224

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5078
SELECT - - CAST( NULL AS DECIMAL ) * - - 5 + + 75 + + 84 - + - 94 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - - CAST ( NULL AS REAL ) * - - 5 + + 75 + + 84 - + - 94 + - COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - + 4 col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT ALL CAST( + 97 AS SIGNED ) + - - 58 AS col2
----
155

skipif mysql # not compatible
query I rowsort label-5080
SELECT ALL CAST ( + 97 AS INTEGER ) + - - 58 AS col2
----
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5081
SELECT - 0 DIV - 61 DIV + SUM( 37 ) - + NULLIF ( 20, - ( - 1 ) - 71 ) + + 9 * - 47 + - 40
----
-483

skipif mysql # not compatible
query I rowsort label-5081
SELECT - 0 / - 61 / + SUM ( 37 ) - + NULLIF ( 20, - ( - 1 ) - 71 ) + + 9 * - 47 + - 40
----
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL + 10 * + - C