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 * + - COUNT( * ) + + 32 * - MAX( 22 ) + 99 AS col2
----
-615

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL + 10 * + - COUNT ( * ) + + 32 * - MAX ( 22 ) + 99 AS col2
----
-615

query I rowsort
SELECT ALL - 51 * - 12 * + + 86 AS col0
----
52632

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL CAST( NULL AS SIGNED ) / + 92 / 59 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL CAST ( NULL AS INTEGER ) / + 92 / 59 * + 83
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5086
SELECT - NULLIF ( 39, 58 ) * - CAST( + 12 AS SIGNED ) * + 38 + + 80 AS col2
----
17864

skipif mysql # not compatible
query I rowsort label-5086
SELECT - NULLIF ( 39, 58 ) * - CAST ( + 12 AS INTEGER ) * + 38 + + 80 AS col2
----
17864

query I rowsort
SELECT + 84 * 76 AS col0
----
6384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT CAST( MAX( 9 ) AS SIGNED ) * - COUNT( * ) * 30 + 48 AS col1
----
-222

skipif mysql # not compatible
query I rowsort label-5088
SELECT CAST ( MAX ( 9 ) AS INTEGER ) * - COUNT ( * ) * 30 + 48 AS col1
----
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + COALESCE ( + 56, + - 35 * + - 99 * 35 ) * - ( - 17 ) + + COUNT( * )
----
953

skipif mysql # not compatible
query I rowsort label-5089
SELECT + COALESCE ( + 56, + - 35 * + - 99 * 35 ) * - ( - 17 ) + + COUNT ( * )
----
953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5090
SELECT - CAST( NULL AS SIGNED ) * - 68 * - + COUNT( * ) + - 84 * - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT - CAST ( NULL AS INTEGER ) * - 68 * - + COUNT ( * ) + - 84 * - CAST ( NULL AS INTEGER ) col2
----
NULL

query I rowsort
SELECT - 11 + + ( - 68 ) AS col1
----
-79

query I rowsort
SELECT - 25 + 75
----
50

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

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + - 74 - + COUNT ( * ) / + 75
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5094
SELECT 81, 25 * 87 * + COUNT( * ) * + CAST( NULL AS DECIMAL ) / + 78 - - 60 AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-5094
SELECT 81, 25 * 87 * + COUNT ( * ) * + CAST ( NULL AS REAL ) / + 78 - - 60 AS col2
----
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5095
SELECT SUM( DISTINCT + CAST( NULL AS SIGNED ) ) * + MAX( ALL - 46 ) + + 79 / 77 * + 92 * + MAX( DISTINCT 75 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + MAX ( ALL - 46 ) + + 79 / 77 * + 92 * + MAX ( DISTINCT 75 ) AS col1
----
NULL

query I rowsort
SELECT ALL 83 * - ( + 44 ) AS col2
----
-3652

query II rowsort
SELECT ALL 92, 48 + + 59 AS col0
----
92
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - SUM( + 80 ) * + 61 * - 94 * - ( + 29 ) - + 66 * - COUNT( * ) AS col1
----
-13302814

skipif mysql # not compatible
query I rowsort label-5098
SELECT - SUM ( + 80 ) * + 61 * - 94 * - ( + 29 ) - + 66 * - COUNT ( * ) AS col1
----
-13302814

query II rowsort
SELECT 94 AS col0, + 58 col0
----
94
58

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

query I rowsort
SELECT 96 * 39 AS col2
----
3744

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5103
SELECT ALL - 55 + - 63 AS col0, NULLIF ( - - SUM( DISTINCT - 44 ), + + 31 + + - COALESCE ( 74, + 58 - 37, + 12 / 69 ) ) * 98 AS col1
----
-118
-4312

skipif mysql # not compatible
query II rowsort label-5103
SELECT ALL - 55 + - 63 AS col0, NULLIF ( - - SUM ( DISTINCT - 44 ), + + 31 + + - COALESCE ( 74, + 58 - 37, + 12 / 69 ) ) * 98 AS col1
----
-118
-4312

query II rowsort
SELECT DISTINCT 8, - 23 AS col2
----
8
-23

query I rowsort
SELECT DISTINCT + 82 * - - 76
----
6232

onlyif mysql # aggregate syntax: 
query II rowsort label-5106
SELECT DISTINCT 35 + - COUNT( ALL - ( - ( + 19 ) ) ) - - 80 AS col0, 12 AS col1
----
114
12

skipif mysql # not compatible
query II rowsort label-5106
SELECT DISTINCT 35 + - COUNT ( ALL - ( - ( + 19 ) ) ) - - 80 AS col0, 12 AS col1
----
114
12

query I rowsort
SELECT 99 * + 66 * + - 8 AS col2
----
-52272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL + SUM( DISTINCT + CASE - ( COALESCE ( 77, + + 36 - - 92 * + 9 * + CAST( + 80 AS SIGNED ) * - - 85 * COALESCE ( 9, 92 ) + 72 * ( - 56 ) ) ) WHEN 51 * + 95 THEN NULL ELSE - ( 59 ) * ( 41 * 95 - 63 * + CAST( 7 AS SIGNED ) ) END ) * - ( + 11 * 72 + + COUNT( * ) ) AS col2
----
161602298

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + SUM ( DISTINCT + CASE - ( COALESCE ( 77, + + 36 - - 92 * + 9 * + CAST ( + 80 AS INTEGER ) * - - 85 * COALESCE ( 9, 92 ) + 72 * ( - 56 ) ) ) WHEN 51 * + 95 THEN NULL ELSE - ( 59 ) * ( 41 * 95 - 63 * + CAST ( 7 AS INTEGER ) ) END ) * - ( + 11 * 72 + + COUNT ( * ) ) AS col2
----
161602298

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL COUNT( ALL 20 ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL COUNT ( ALL 20 ) + 27
----
28

query I rowsort
SELECT 85 * + - 34 * - 10 * + 17 * - + 82 AS col0
----
-40286600

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT - COUNT( * ) * 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - COUNT ( * ) * 91 AS col1
----
-91

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

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

query I rowsort
SELECT 30 + - 17 col0
----
13

query II rowsort
SELECT 35, - 71 * - 44 AS col2
----
35
3124

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

skipif mysql # not compatible
query II rowsort label-5115
SELECT 29 AS col1, - COUNT ( * ) AS col0
----
29
-1

query I rowsort
SELECT - ( - 50 ) + - + 94 * - 71 AS col0
----
6724

query I rowsort
SELECT DISTINCT - 14 * 42
----
-588

query I rowsort
SELECT DISTINCT + + 48 * 32 + - - 91
----
1627

query I rowsort
SELECT - 37 * + 34 AS col0
----
-1258

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

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

query II rowsort
SELECT + + 34 AS col2, 28 AS col2
----
34
28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5123
SELECT - 82 * 44 * + SUM( + 27 ) * COALESCE ( 74, + 48 ) + + - ( + 84 ) * + 59 * - - 78 * CAST( NULL AS SIGNED ) + - 11 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT - 82 * 44 * + SUM ( + 27 ) * COALESCE ( 74, + 48 ) + + - ( + 84 ) * + 59 * - - 78 * CAST ( NULL AS INTEGER ) + - 11 AS col1
----
NULL

query I rowsort
SELECT ALL + 98 * - 34 AS col2
----
-3332

query II rowsort
SELECT ALL + 40 AS col2, 71 AS col2
----
40
71

query II rowsort
SELECT + 70 AS col2, + 63 AS col0
----
70
63

query I rowsort
SELECT - 40 * - - COALESCE ( + + 22, 69 * - 37 * - 15 * - 14 + - + NULLIF ( 32, 54 ) )
----
-880

query I rowsort
SELECT ALL + 48 * - + 21 + + + ( 38 ) + + + 22
----
-948

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - + COUNT( * ) - 29 * + 74 - - 44
----
-2103

skipif mysql # not compatible
query I rowsort label-5129
SELECT - + COUNT ( * ) - 29 * + 74 - - 44
----
-2103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT ALL + - 72 * 94 / - CAST( NULL AS SIGNED ) * 98 + + 9 + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + - 72 * 94 / - CAST ( NULL AS INTEGER ) * 98 + + 9 + 44
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5131
SELECT DISTINCT - COUNT( * ) * - 21 AS col1, 29 AS col1
----
21
29

skipif mysql # not compatible
query II rowsort label-5131
SELECT DISTINCT - COUNT ( * ) * - 21 AS col1, 29 AS col1
----
21
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5132
SELECT + CAST( + 5 AS SIGNED ) DIV 15 - 81
----
-81

skipif mysql # not compatible
query I rowsort label-5132
SELECT + CAST ( + 5 AS INTEGER ) / 15 - 81
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5133
SELECT MAX( ALL - 57 ) col2, - 38 - 19 DIV COUNT( * ) AS col2, - + CAST( NULL AS SIGNED ) * + 24 + + - 23 col1
----
-57
-57
NULL

skipif mysql # not compatible
query III rowsort label-5133
SELECT MAX ( ALL - 57 ) col2, - 38 - 19 / COUNT ( * ) AS col2, - + CAST ( NULL AS INTEGER ) * + 24 + + - 23 col1
----
-57
-57
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + COUNT( - 32 ) * - COUNT( * ) - - + COUNT( * ) + MIN( - - 39 ) + CASE + + 96 WHEN + - 97 THEN NULL WHEN - - 81 THEN NULL WHEN 6 THEN + 76 ELSE - 4 + - 50 END + + 77 * 19
----
1448

skipif mysql # not compatible
query I rowsort label-5134
SELECT + COUNT ( - 32 ) * - COUNT ( * ) - - + COUNT ( * ) + MIN ( - - 39 ) + CASE + + 96 WHEN + - 97 THEN NULL WHEN - - 81 THEN NULL WHEN 6 THEN + 76 ELSE - 4 + - 50 END + + 77 * 19
----
1448

query I rowsort
SELECT + 14 * - 70 + - 36 col0
----
-1016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5136
SELECT + CAST( NULL AS SIGNED ) - - CAST( NULL AS SIGNED ) / - CAST( - - COUNT( + 47 ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT + CAST ( NULL AS INTEGER ) - - CAST ( NULL AS INTEGER ) / - CAST ( - - COUNT ( + 47 ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT ALL 36 DIV - - 86 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT ALL 36 / - - 86 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5138
SELECT 4 * 79 + 99, COUNT( DISTINCT + 39 ) AS col0
----
415
1

skipif mysql # not compatible
query II rowsort label-5138
SELECT 4 * 79 + 99, COUNT ( DISTINCT + 39 ) AS col0
----
415
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5139
SELECT + COALESCE ( 83, - - 18 - + 72 DIV + + CAST( NULL AS SIGNED ), 67 + + - 23 * 39 + MAX( 91 ) ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-5139
SELECT + COALESCE ( 83, - - 18 - + 72 / + + CAST ( NULL AS INTEGER ), 67 + + - 23 * 39 + MAX ( 91 ) ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-5140
SELECT ALL 88 + NULLIF ( + SUM( 88 ), + + 95 ) * + - 42 + 27 col0, 55 col0
----
-3581
55

skipif mysql # not compatible
query II rowsort label-5140
SELECT ALL 88 + NULLIF ( + SUM ( 88 ), + + 95 ) * + - 42 + 27 col0, 55 col0
----
-3581
55

query I rowsort
SELECT DISTINCT + 41 + 28
----
69

query I rowsort
SELECT + CASE - 33 WHEN + 52 * - + 29 / - 93 THEN ( 99 ) WHEN - 6 * 82 + ( - + 29 ) THEN - 97 * 14 END + + 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL COUNT( DISTINCT - 14 ) * + 41 - + - 65 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL COUNT ( DISTINCT - 14 ) * + 41 - + - 65 AS col2
----
106

query I rowsort
SELECT + ( + 77 ) * + ( - 58 ) AS col1
----
-4466

query I rowsort
SELECT DISTINCT COALESCE ( + 65, - + 8, ( - 6 ), 29 ) + + ( + + 83 )
----
148

query II rowsort
SELECT - ( - + 86 ) col1, 9 AS col0
----
86
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT + 11 + + COUNT( - + 29 )
----
12

skipif mysql # not compatible
query I rowsort label-5147
SELECT + 11 + + COUNT ( - + 29 )
----
12

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

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

query I rowsort
SELECT ALL 75 + - ( 75 ) + - 5 * - 74 * + 2 AS col1
----
740

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

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

query I rowsort
SELECT ALL + NULLIF ( 77, + 87 ) * ( 62 ) AS col2
----
4774

onlyif mysql # aggregate syntax: 
query II rowsort label-5153
SELECT DISTINCT + COUNT( - + 49 ) * - 16 AS col0, 36 * 33 * + - 78 AS col2
----
-16
-92664

skipif mysql # not compatible
query II rowsort label-5153
SELECT DISTINCT + COUNT ( - + 49 ) * - 16 AS col0, 36 * 33 * + - 78 AS col2
----
-16
-92664

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT + 83 + - + 72 + + - 40 * + 18 * ( + COUNT( * ) ) + - + ( + - 32 ) + + 76 AS col0
----
-601

skipif mysql # not compatible
query I rowsort label-5154
SELECT + 83 + - + 72 + + - 40 * + 18 * ( + COUNT ( * ) ) + - + ( + - 32 ) + + 76 AS col0
----
-601

query II rowsort
SELECT - 53 * NULLIF ( + 60, 34 / + 45 ) * - + 61 - 41 col0, - 68 + - - 47 AS col2
----
193939
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5156
SELECT - 32 DIV 78 + + 68 - 86 + + MIN( DISTINCT + 11 ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-5156
SELECT - 32 / 78 + + 68 - 86 + + MIN ( DISTINCT + 11 ) AS col1
----
-7

query I rowsort
SELECT - 71 * + ( + 94 ) * 53
----
-353722

query II rowsort
SELECT ALL + 69 * - + 41 AS col2, 53
----
-2829
53

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5160
SELECT + + 47 * 58, - COUNT( DISTINCT - 53 ) DIV + ( 94 ) - 65 AS col1
----
2726
-65

skipif mysql # not compatible
query II rowsort label-5160
SELECT + + 47 * 58, - COUNT ( DISTINCT - 53 ) / + ( 94 ) - 65 AS col1
----
2726
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT + + MAX( DISTINCT 40 ), 61 * - 36 col0
----
40
-2196

skipif mysql # not compatible
query II rowsort label-5161
SELECT + + MAX ( DISTINCT 40 ), 61 * - 36 col0
----
40
-2196

query I rowsort
SELECT 72 * + 15 + - + 64 + - 78 AS col2
----
938

query I rowsort
SELECT - - 14 * + - 92
----
-1288

query I rowsort
SELECT ALL - 8 * - 38 AS col0
----
304

query I rowsort
SELECT - 60 + + 29
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT 0 * - MAX( + 59 ) * - COUNT( * ) + 53 + 42 col1
----
95

skipif mysql # not compatible
query I rowsort label-5166
SELECT 0 * - MAX ( + 59 ) * - COUNT ( * ) + 53 + 42 col1
----
95

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

query I rowsort
SELECT - ( - 69 ) * + - 52
----
-3588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5169
SELECT ( - - COALESCE ( - SUM( 69 ), + COUNT( * ), + 13 + CAST( + 56 AS SIGNED ) + - 1 * + - 50 - + + 38 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5169
SELECT ( - - COALESCE ( - SUM ( 69 ), + COUNT ( * ), + 13 + CAST ( + 56 AS INTEGER ) + - 1 * + - 50 - + + 38 ) ) AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT + 24 DIV + 28
----
0

skipif mysql # not compatible
query I rowsort label-5170
SELECT + 24 / + 28
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT ALL 72 * + - 96 + + COUNT( * ) AS col2, + MAX( DISTINCT - 17 ) * + - 40 AS col1
----
-6911
680

skipif mysql # not compatible
query II rowsort label-5171
SELECT ALL 72 * + - 96 + + COUNT ( * ) AS col2, + MAX ( DISTINCT - 17 ) * + - 40 AS col1
----
-6911
680

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT 41 * COUNT( DISTINCT - 40 ) + 68 + 21 + 38 * - 6 AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT 41 * COUNT ( DISTINCT - 40 ) + 68 + 21 + 38 * - 6 AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT ALL - 56 * - 31 + + 27 DIV - 76
----
1736

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL - 56 * - 31 + + 27 / - 76
----
1736

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT + 23 DIV - 75
----
0

skipif mysql # not compatible
query I rowsort label-5174
SELECT + 23 / - 75
----
0

query I rowsort
SELECT + 41 * + 78
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT - ( + + ( COUNT( * ) ) ) * - - 68 * - 16 AS col0
----
1088

skipif mysql # not compatible
query I rowsort label-5176
SELECT - ( + + ( COUNT ( * ) ) ) * - - 68 * - 16 AS col0
----
1088

query I rowsort
SELECT - ( - 91 )
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT DISTINCT 81 DIV 24 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT DISTINCT 81 / 24 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT 98 DIV - 14
----
-7

skipif mysql # not compatible
query I rowsort label-5179
SELECT 98 / - 14
----
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5180
SELECT 34 / + - CAST( NULL AS DECIMAL ) * - 33 * - - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT 34 / + - CAST ( NULL AS REAL ) * - 33 * - - 53 AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5182
SELECT DISTINCT 30 AS col2, - CASE - 49 WHEN 4 THEN + 8 + + 48 + + + 51 + - 83 + - - CASE + + SUM( ALL - - 73 ) WHEN + 39 THEN - - 75 + - CAST( 0 AS SIGNED ) END + SUM( 57 ) / 8 END AS col1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-5182
SELECT DISTINCT 30 AS col2, - CASE - 49 WHEN 4 THEN + 8 + + 48 + + + 51 + - 83 + - - CASE + + SUM ( ALL - - 73 ) WHEN + 39 THEN - - 75 + - CAST ( 0 AS INTEGER ) END + SUM ( 57 ) / 8 END AS col1
----
30
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5183
SELECT DISTINCT + 93 - + - ( 21 ) - + - 25 + 56 / + - COUNT( * ) * + CASE CAST( NULL AS DECIMAL ) WHEN + + COALESCE ( - - 28, - 90 + 22, - - COUNT( * ) + - CAST( NULL AS SIGNED ) ) THEN + AVG ( ALL 20 ) WHEN 82 + 13 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT + 93 - + - ( 21 ) - + - 25 + 56 / + - COUNT ( * ) * + CASE CAST ( NULL AS REAL ) WHEN + + COALESCE ( - - 28, - 90 + 22, - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) THEN + AVG ( ALL 20 ) WHEN 82 + 13 THEN NULL END col1
----
NULL

query I rowsort
SELECT - 15 + + 44
----
29

query II rowsort
SELECT ALL - 38 AS col0, NULLIF ( + 40, + 49 ) * + + 55 * 3
----
-38
6600

query I rowsort
SELECT ALL 89 * - ( + 87 ) + + 64 * - 17
----
-8831

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT COUNT( * ) + + - ( - 57 ), - 96 col2
----
58
-96

skipif mysql # not compatible
query II rowsort label-5187
SELECT COUNT ( * ) + + - ( - 57 ), - 96 col2
----
58
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5188
SELECT + 55 * - CAST( + 40 AS SIGNED ) AS col0
----
-2200

skipif mysql # not compatible
query I rowsort label-5188
SELECT + 55 * - CAST ( + 40 AS INTEGER ) AS col0
----
-2200

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

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

query I rowsort
SELECT + ( + 78 ) + 78 - + + 27 AS col2
----
129

query I rowsort
SELECT DISTINCT - CASE 70 WHEN + 69 - + 1 THEN 55 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT + 22 DIV 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5192
SELECT + 22 / 65 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT - + CAST( 83 AS SIGNED ) + + 38 * - ( + - 98 ) AS col2
----
3641

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - + CAST ( 83 AS INTEGER ) + + 38 * - ( + - 98 ) AS col2
----
3641

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT 36 DIV + - NULLIF ( - - 22, 92 + + - 27 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5194
SELECT 36 / + - NULLIF ( - - 22, 92 + + - 27 ) col1
----
-1

query I rowsort
SELECT 66 * 55 - + 52
----
3578

query II rowsort
SELECT + 50 AS col0, 67
----
50
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5197
SELECT DISTINCT + 55 * + CASE + + 26 WHEN + 44 THEN NULL ELSE 52 * COUNT( * ) END + + - 55 + - 68 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
2737
NULL

skipif mysql # not compatible
query II rowsort label-5197
SELECT DISTINCT + 55 * + CASE + + 26 WHEN + 44 THEN NULL ELSE 52 * COUNT ( * ) END + + - 55 + - 68 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
2737
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT ALL + 96 + + 21 + + + COUNT( * )
----
118

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + 96 + + 21 + + + COUNT ( * )
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5199
SELECT COUNT( * ) DIV 20 DIV + + 7 * - 2 * + NULLIF ( - 40, 39 + + 94 DIV - 76 + + - AVG ( ALL 99 ) + - 29 * + 91 + - 3 * COUNT( * ) ) * - SUM( ALL 95 )
----
0

skipif mysql # not compatible
query I rowsort label-5199
SELECT COUNT ( * ) / 20 / + + 7 * - 2 * + NULLIF ( - 40, 39 + + 94 / - 76 + + - AVG ( ALL 99 ) + - 29 * + 91 + - 3 * COUNT ( * ) ) * - SUM ( ALL 95 )
----
0

query I rowsort
SELECT 99 * - 73
----
-7227

query II rowsort
SELECT ALL - 68 + + 72 AS col1, + 42
----
4
42

query I rowsort
SELECT ALL 83 + 85 * 62 AS col1
----
5353

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

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

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - CAST ( - CAST ( + - ( + - ( 13 ) ) AS REAL ) AS INTEGER ) AS col1
----
13

query I rowsort
SELECT 99 * + 55 AS col1
----
5445

query I rowsort
SELECT ALL 53 + 68 AS col1
----
121

query I rowsort
SELECT DISTINCT - 41 col2
----
-41

query I rowsort
SELECT 24 - + 98 col1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5209
SELECT 31 + + CAST( 18 AS SIGNED ) * + 95
----
1741

skipif mysql # not compatible
query I rowsort label-5209
SELECT 31 + + CAST ( 18 AS INTEGER ) * + 95
----
1741

onlyif mysql # aggregate syntax: 
query II rowsort label-5210
SELECT DISTINCT - 60 - + 32 AS col1, COUNT( * ) AS col1
----
-92
1

skipif mysql # not compatible
query II rowsort label-5210
SELECT DISTINCT - 60 - + 32 AS col1, COUNT ( * ) AS col1
----
-92
1

query I rowsort
SELECT ALL - CASE + 54 WHEN + 77 * - 39 THEN 12 / + + 29 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5212
SELECT 14 * - - 0 DIV - - SUM( ALL + 55 ) * - - 98 - 83 AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-5212
SELECT 14 * - - 0 / - - SUM ( ALL + 55 ) * - - 98 - 83 AS col1
----
-83

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

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

query I rowsort
SELECT 33 + 5 + + 70
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT ALL - 43 - + ( + MAX( DISTINCT + 4 ) ) * + 31, 4 AS col1
----
-167
4

skipif mysql # not compatible
query II rowsort label-5215
SELECT ALL - 43 - + ( + MAX ( DISTINCT + 4 ) ) * + 31, 4 AS col1
----
-167
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT + SUM( - 71 ) + 92 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5216
SELECT + SUM ( - 71 ) + 92 AS col1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT 2 DIV 28 DIV - - 42 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT 2 / 28 / - - 42 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - MAX( DISTINCT + 92 ) * + 28 col2
----
-2576

skipif mysql # not compatible
query I rowsort label-5218
SELECT - MAX ( DISTINCT + 92 ) * + 28 col2
----
-2576

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT 35 * - COUNT( * ) + - 97 AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-5220
SELECT 35 * - COUNT ( * ) + - 97 AS col2
----
-132

query I rowsort
SELECT - 1 - - - 11 + 43 AS col0
----
31

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

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

query I rowsort
SELECT + 28 * + + 86 * - + 73 AS col0
----
-175784

query I rowsort
SELECT DISTINCT - - 52 * + - 5 + + + 36 + - - 16
----
-208

query I rowsort
SELECT ALL + 0 + CASE 4 WHEN 31 THEN - 52 + 49 WHEN + 83 + - 80 - 49 * 77 THEN NULL WHEN 11 + 37 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5226
SELECT - 51 - - 94 * + NULLIF ( - CAST( - + 22 AS SIGNED ), + 46 )
----
2017

skipif mysql # not compatible
query I rowsort label-5226
SELECT - 51 - - 94 * + NULLIF ( - CAST ( - + 22 AS INTEGER ), + 46 )
----
2017

query I rowsort
SELECT ALL - 25 + 50 AS col2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT + 86 DIV + 20 - 94 * - 74 col2
----
6960

skipif mysql # not compatible
query I rowsort label-5228
SELECT + 86 / + 20 - 94 * - 74 col2
----
6960

query II rowsort
SELECT + - 44 * + 19 + + CASE 66 WHEN - - 6 + 52 THEN NULL ELSE + 9 END AS col2, - 83
----
-827
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL - COUNT( * ) * + - COUNT( DISTINCT 14 ) + - CASE - + 48 WHEN 19 - - + 92 * - 69 THEN 90 WHEN - NULLIF ( - 86, - 42 * - + CASE WHEN ( - 0 ) <> ( NULL ) THEN COUNT( * ) * - 94 END / 3 ) * - 19 THEN 20 * + COUNT( * ) ELSE NULL END + ( + NULLIF ( + COUNT( * ), - 11 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL - COUNT ( * ) * + - COUNT ( DISTINCT 14 ) + - CASE - + 48 WHEN 19 - - + 92 * - 69 THEN 90 WHEN - NULLIF ( - 86, - 42 * - + CASE WHEN ( - 0 ) <> ( NULL ) THEN COUNT ( * ) * - 94 END / 3 ) * - 19 THEN 20 * + COUNT ( * ) ELSE NULL END + ( + NULLIF ( + COUNT ( * ), - 11 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT ALL - + SUM( - 87 ) col0, + 29
----
87
29

skipif mysql # not compatible
query II rowsort label-5231
SELECT ALL - + SUM ( - 87 ) col0, + 29
----
87
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5232
SELECT DISTINCT 90 * + CAST( NULL AS SIGNED ) + + COUNT( * ) * + 51 * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT 90 * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 51 * + 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT COUNT( DISTINCT - 16 )
----
1

skipif mysql # not compatible
query I rowsort label-5233
SELECT COUNT ( DISTINCT - 16 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT DISTINCT 71 DIV - - COUNT( * ) AS col0
----
71

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

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

skipif mysql # not compatible
query I rowsort label-5235
SELECT + SUM ( - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + NULLIF ( - COUNT( DISTINCT - 26 ), + 98 * + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-5236
SELECT + NULLIF ( - COUNT ( DISTINCT - 26 ), + 98 * + 25 )
----
-1

query I rowsort
SELECT ALL 6 * + 96 * + 64 * + + 92 AS col0
----
3391488

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-5239
SELECT ALL + 75 * + 87 - - COUNT( * ) AS col2, + COUNT( * ) * + + MIN( + + 20 ) AS col1, 49
----
6526
20
49

skipif mysql # not compatible
query III rowsort label-5239
SELECT ALL + 75 * + 87 - - COUNT ( * ) AS col2, + COUNT ( * ) * + + MIN ( + + 20 ) AS col1, 49
----
6526
20
49

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

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

query I rowsort
SELECT ALL 64 * + 56 * + 84 * - - 15 col0
----
4515840

query I rowsort
SELECT ALL + ( 9 ) col2
----
9

query I rowsort
SELECT 25 * + 41 + - 18 + + - 34
----
973

query I rowsort
SELECT - 33 + + - 87
----
-120

query I rowsort
SELECT DISTINCT CASE - + 28 WHEN - COALESCE ( + 46, + 84 ) THEN - ( - 91 ) END + - 62 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + 90 + COUNT( * ) * 70
----
160

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + 90 + COUNT ( * ) * 70
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5247
SELECT DISTINCT - 79 + - MAX( - + 24 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT - 79 + - MAX ( - + 24 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT DISTINCT - + NULLIF ( + - COUNT( * ), 79 + - COUNT( * ) / - + 65 ) + - 41 * + 60 - - 5 AS col1
----
-2454

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - + NULLIF ( + - COUNT ( * ), 79 + - COUNT ( * ) / - + 65 ) + - 41 * + 60 - - 5 AS col1
----
-2454

query I rowsort
SELECT DISTINCT + 99 + - 34
----
65

query I rowsort
SELECT DISTINCT + 88 * + 66 AS col1
----
5808

query I rowsort
SELECT ALL - 29 + + 84
----
55

query I rowsort
SELECT - 49 + - 55
----
-104

query I rowsort
SELECT ALL + 38 + 40 AS col0
----
78

query I rowsort
SELECT + ( - - 41 ) + + 63 * 1
----
104

query I rowsort
SELECT ALL + 14 * + 69 col1
----
966

query I rowsort
SELECT - + 8 * - 98 AS col1
----
784

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5257
SELECT ALL 92 DIV - + 70 + - COUNT( * ) + + 67 AS col1, 41
----
65
41

skipif mysql # not compatible
query II rowsort label-5257
SELECT ALL 92 / - + 70 + - COUNT ( * ) + + 67 AS col1, 41
----
65
41

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5259
SELECT + COUNT( CAST( 19 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5259
SELECT + COUNT ( CAST ( 19 AS INTEGER ) ) AS col2
----
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT + 42 * 94 * - COALESCE ( + COUNT( * ), + MAX( + 48 ) )
----
-3948

skipif mysql # not compatible
query I rowsort label-5261
SELECT + 42 * 94 * - COALESCE ( + COUNT ( * ), + MAX ( + 48 ) )
----
-3948

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT + 6 * + CASE 39 WHEN + 76 - - 91 * + CAST( - 12 AS SIGNED ) THEN - + 57 - - + 31 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT + 6 * + CASE 39 WHEN + 76 - - 91 * + CAST ( - 12 AS INTEGER ) THEN - + 57 - - + 31 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 61 * 26
----
1586

query I rowsort
SELECT ALL CASE ( + 93 ) WHEN + 98 * 8 * + 30 THEN - + 71 END / 5 col1
----
NULL

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

query I rowsort
SELECT NULLIF ( 12, + + 2 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + ( - NULLIF ( - - COALESCE ( - 89, + 75 + - 10 * COUNT( DISTINCT - 10 ) + - - 76 ), AVG ( 80 ) * + NULLIF ( 34, 59 - + 70 * - 78 ) - + 46 ) ) AS col2
----
89

skipif mysql # not compatible
query I rowsort label-5269
SELECT + ( - NULLIF ( - - COALESCE ( - 89, + 75 + - 10 * COUNT ( DISTINCT - 10 ) + - - 76 ), AVG ( 80 ) * + NULLIF ( 34, 59 - + 70 * - 78 ) - + 46 ) ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT CASE + + 8 WHEN - - 85 / - 50 + 41 THEN - - 57 / - 86 + + 67 + 1 + - MAX( + 98 ) * - CASE 19 WHEN + - 34 THEN SUM( + 61 ) WHEN + 84 * 28 THEN + MAX( - 7 ) ELSE 93 END WHEN 8 * - MIN( ALL 90 ) + - COUNT( * ) THEN NULL ELSE 92 * 23 + 98 END
----
2214

skipif mysql # not compatible
query I rowsort label-5270
SELECT CASE + + 8 WHEN - - 85 / - 50 + 41 THEN - - 57 / - 86 + + 67 + 1 + - MAX ( + 98 ) * - CASE 19 WHEN + - 34 THEN SUM ( + 61 ) WHEN + 84 * 28 THEN + MAX ( - 7 ) ELSE 93 END WHEN 8 * - MIN ( ALL 90 ) + - COUNT ( * ) THEN NULL ELSE 92 * 23 + 98 END
----
2214

query I rowsort
SELECT + 40 * + + 16 AS col1
----
640

query I rowsort
SELECT 16 * 17 * - ( + 81 ) + 49 AS col1
----
-21983

query I rowsort
SELECT + - 80 * + - 67 AS col0
----
5360

query I rowsort
SELECT + - 73 * 80 - - 1 AS col2
----
-5839

query I rowsort
SELECT DISTINCT 96 * + 92 + + 78 * 96
----
16320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5276
SELECT ALL - CAST( NULL AS SIGNED ) * + 47 + + 30 + - ( + 6 ) * NULLIF ( - - 84, - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - CAST ( NULL AS INTEGER ) * + 47 + + 30 + - ( + 6 ) * NULLIF ( - - 84, - 75 )
----
NULL

query I rowsort
SELECT ALL + 25 * - 34 - - + 67
----
-783

query I rowsort
SELECT + - ( + 34 ) + + + 81 AS col2
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5279
SELECT ALL + 8 AS col2, 15 DIV + + COUNT( * )
----
8
15

skipif mysql # not compatible
query II rowsort label-5279
SELECT ALL + 8 AS col2, 15 / + + COUNT ( * )
----
8
15

query I rowsort
SELECT DISTINCT - 92 * + - 28 AS col0
----
2576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5281
SELECT ALL CAST( - 66 AS SIGNED ) + + + 31 * 76 * - - 44 AS col0
----
103598

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL CAST ( - 66 AS INTEGER ) + + + 31 * 76 * - - 44 AS col0
----
103598

query II rowsort
SELECT DISTINCT + 16 AS col1, + 40 AS col2
----
16
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT - CASE + 13 WHEN + + 4 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT - CASE + 13 WHEN + + 4 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - + 98 + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5285
SELECT ALL + CASE 93 WHEN - COALESCE ( - CAST( NULL AS SIGNED ), - + CAST( NULL AS SIGNED ) + - - 25 ) * + 17 THEN + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + CASE 93 WHEN - COALESCE ( - CAST ( NULL AS INTEGER ), - + CAST ( NULL AS INTEGER ) + - - 25 ) * + 17 THEN + COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ALL - + 23 + COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-5286
SELECT ALL - + 23 + COUNT ( * )
----
-22

query I rowsort
SELECT - - 54 * - - 86 + - 21 AS col1
----
4623

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT - 13 + - - 72, SUM( ALL 8 ) * - + 75 * COUNT( * ) + + 49 AS col2
----
59
-551

skipif mysql # not compatible
query II rowsort label-5289
SELECT - 13 + - - 72, SUM ( ALL 8 ) * - + 75 * COUNT ( * ) + + 49 AS col2
----
59
-551

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT + - 93 * 0 + NULLIF ( 52, + + 70 * - 31 * 8 * - 36 + - 8 - NULLIF ( + + 86, - 17 * + COUNT( * ) * + AVG ( DISTINCT + 37 ) ) )
----
52

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + - 93 * 0 + NULLIF ( 52, + + 70 * - 31 * 8 * - 36 + - 8 - NULLIF ( + + 86, - 17 * + COUNT ( * ) * + AVG ( DISTINCT + 37 ) ) )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-5291
SELECT + ( + - CASE + 4 WHEN - ( - 19 ) + - 55 * - + 19 THEN + ( 47 ) ELSE NULL END ) * - 81 - - 6 + + MIN( - - 73 ), 92 * - + 12 AS col2
----
NULL
-1104

skipif mysql # not compatible
query II rowsort label-5291
SELECT + ( + - CASE + 4 WHEN - ( - 19 ) + - 55 * - + 19 THEN + ( 47 ) ELSE NULL END ) * - 81 - - 6 + + MIN ( - - 73 ), 92 * - + 12 AS col2
----
NULL
-1104

query I rowsort
SELECT + ( + - 34 ) + - - 92
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT - 42 - + 86 * - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5293
SELECT - 42 - + 86 * - COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT 89 + - 18 + - - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-5294
SELECT 89 + - 18 + - - COUNT ( * )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5295
SELECT 10 / - + 45 * + CAST( NULL AS SIGNED ) * - + 46 - + + 3 AS col0, + ( + - 50 ) * + 81
----
NULL
-4050

skipif mysql # not compatible
query II rowsort label-5295
SELECT 10 / - + 45 * + CAST ( NULL AS INTEGER ) * - + 46 - + + 3 AS col0, + ( + - 50 ) * + 81
----
NULL
-4050

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL - MAX( DISTINCT + + NULLIF ( - - 90, - 88 + - CAST( NULL AS SIGNED ) * 29 ) ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL - MAX ( DISTINCT + + NULLIF ( - - 90, - 88 + - CAST ( NULL AS INTEGER ) * 29 ) ) AS col0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5297
SELECT ALL - CAST( + 57 AS SIGNED ), + ( + + SUM( + 91 ) ) AS col0
----
-57
91

skipif mysql # not compatible
query II rowsort label-5297
SELECT ALL - CAST ( + 57 AS INTEGER ), + ( + + SUM ( + 91 ) ) AS col0
----
-57
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT DISTINCT - 92 - + COUNT( * ) * - - 54
----
-146

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - 92 - + COUNT ( * ) * - - 54
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5299
SELECT DISTINCT - 1 / + CASE + + COALESCE ( - - MIN( + 26 ), - 98 + + 23 + + + 46 + - + 26 + - CASE + 89 WHEN + 22 * + 96 THEN + + 91 + - 31 / - 28 + + 66 ELSE NULL END * 29 ) WHEN - 63 * 61 THEN NULL WHEN 89 THEN CAST( - ( - 45 ) AS SIGNED ) - 21 END * + 11 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT - 1 / + CASE + + COALESCE ( - - MIN ( + 26 ), - 98 + + 23 + + + 46 + - + 26 + - CASE + 89 WHEN + 22 * + 96 THEN + + 91 + - 31 / - 28 + + 66 ELSE NULL END * 29 ) WHEN - 63 * 61 THEN NULL WHEN 89 THEN CAST ( - ( - 45 ) AS INTEGER ) - 21 END * + 11 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT 20 * - SUM( DISTINCT + + ( - - 47 ) ) + + + ( - - 68 )
----
-872

skipif mysql # not compatible
query I rowsort label-5300
SELECT 20 * - SUM ( DISTINCT + + ( - - 47 ) ) + + + ( - - 68 )
----
-872

query II rowsort
SELECT DISTINCT + ( - 30 ) * 75 AS col1, - 34 AS col2
----
-2250
-34

query I rowsort
SELECT + 61 * - 20 + + 51
----
-1169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5303
SELECT 30 * 12, - 48 DIV + COALESCE ( - 78, 56 DIV + 46 ) + - 43 * + - 6 + COUNT( * ) * - 79 AS col0
----
360
179

skipif mysql # not compatible
query II rowsort label-5303
SELECT 30 * 12, - 48 / + COALESCE ( - 78, 56 / + 46 ) + - 43 * + - 6 + COUNT ( * ) * - 79 AS col0
----
360
179

query I rowsort
SELECT DISTINCT 28 + 75 + + + 55
----
158

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

skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT + COUNT ( * ) * ( 27 ) AS col1
----
27

query I rowsort
SELECT ALL 84 + - + 19 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL + COUNT( ALL 38 ) + - - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + COUNT ( ALL 38 ) + - - COUNT ( * )
----
2

query I rowsort
SELECT DISTINCT + 32 + - 97 col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT 66 * - 39 * 83 * - 12 - + + COUNT( * ) + + - 25
----
2563678

skipif mysql # not compatible
query I rowsort label-5309
SELECT 66 * - 39 * 83 * - 12 - + + COUNT ( * ) + + - 25
----
2563678

query I rowsort
SELECT - 0 * - + 81 + - 35 - + - 21 + + + 8 AS col0
----
-6

query II rowsort
SELECT - ( + + 16 ) AS col2, - 72 - + - 55 AS col0
----
-16
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT 87 + - - ( - + COUNT( ALL - 87 ) ) col2
----
86

skipif mysql # not compatible
query I rowsort label-5312
SELECT 87 + - - ( - + COUNT ( ALL - 87 ) ) col2
----
86

onlyif mysql # aggregate syntax: 
query III rowsort label-5313
SELECT + 22 * - 7 AS col0, - 50 col0, + - ( + + COUNT( 25 ) ) AS col0
----
-154
-50
-1

skipif mysql # not compatible
query III rowsort label-5313
SELECT + 22 * - 7 AS col0, - 50 col0, + - ( + + COUNT ( 25 ) ) AS col0
----
-154
-50
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5314
SELECT ALL + COUNT( * ) * - 65 - 32 - CAST( + 32 AS SIGNED ) AS col2
----
-129

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + COUNT ( * ) * - 65 - 32 - CAST ( + 32 AS INTEGER ) AS col2
----
-129

query I rowsort
SELECT ALL ( - + 5 ) - - - ( - - 57 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT 28 - ( + 92 ) + + ( + 6 ) + + 30 + - 66 + + ( + COUNT( * ) ) + - + 71 + + 14 / - CASE - + 93 WHEN - 55 + - MIN( ALL + 32 ) THEN + 0 WHEN 71 * - 85 + + 95 * + 3 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5316
SELECT 28 - ( + 92 ) + + ( + 6 ) + + 30 + - 66 + + ( + COUNT ( * ) ) + - + 71 + + 14 / - CASE - + 93 WHEN - 55 + - MIN ( ALL + 32 ) THEN + 0 WHEN 71 * - 85 + + 95 * + 3 THEN NULL ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT COALESCE ( - - COUNT( * ), - 30 + - 10 * + COUNT( * ), MAX( ALL 65 ), - 1 * 16 ) * + + CASE 36 WHEN + CAST( NULL AS SIGNED ) + + + MAX( ALL - NULLIF ( 61, + 28 ) ) THEN NULL WHEN + + 93 THEN + 18 * 43 ELSE + 49 END * + ( 17 - 84 ) AS col1
----
-3283

skipif mysql # not compatible
query I rowsort label-5318
SELECT COALESCE ( - - COUNT ( * ), - 30 + - 10 * + COUNT ( * ), MAX ( ALL 65 ), - 1 * 16 ) * + + CASE 36 WHEN + CAST ( NULL AS INTEGER ) + + + MAX ( ALL - NULLIF ( 61, + 28 ) ) THEN NULL WHEN + + 93 THEN + 18 * 43 ELSE + 49 END * + ( 17 - 84 ) AS col1
----
-3283

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT - COALESCE ( - 28, 93 + + - MAX( 23 ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5319
SELECT - COALESCE ( - 28, 93 + + - MAX ( 23 ) ) AS col0
----
28

query I rowsort
SELECT 15 + - 75 AS col2
----
-60

query II rowsort
SELECT DISTINCT 32 AS col2, 58 + 47
----
32
105

query II rowsort
SELECT ALL 83 AS col1, 54
----
83
54

query I rowsort
SELECT 24 + + + 3 + 16
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT ALL + ( - 49 ) * + + COUNT( * ), COALESCE ( + 34, - ( - 10 ) ) + 4 + + 25 AS col0
----
-49
63

skipif mysql # not compatible
query II rowsort label-5324
SELECT ALL + ( - 49 ) * + + COUNT ( * ), COALESCE ( + 34, - ( - 10 ) ) + 4 + + 25 AS col0
----
-49
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT DISTINCT 6 * COUNT( 40 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5325
SELECT DISTINCT 6 * COUNT ( 40 ) AS col2
----
6

query I rowsort
SELECT 33 * 59 AS col0
----
1947

query I rowsort
SELECT ALL 41 * 87 AS col0
----
3567

query II rowsort
SELECT - 70 * + + 59 - 54 AS col0, + 65
----
-4184
65

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5330
SELECT ALL - CAST( 15 AS DECIMAL ) + - CASE 67 WHEN - 65 THEN + 9 END AS col2, COUNT( ALL + 39 ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5330
SELECT ALL - CAST ( 15 AS REAL ) + - CASE 67 WHEN - 65 THEN + 9 END AS col2, COUNT ( ALL + 39 ) AS col2
----
NULL
1

query I rowsort
SELECT 59 * - 67
----
-3953

query I rowsort
SELECT 33 * + + 70 AS col0
----
2310

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

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL + 16 + + COUNT ( * ) AS col1
----
17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5335
SELECT ALL - 53 + 29 - 8 + - 24 * + + 36 * 35 * - - MIN( DISTINCT + 91 ), - 43 + - + 13 - - 71 DIV + 4 AS col2
----
-2751872
-39

skipif mysql # not compatible
query II rowsort label-5335
SELECT ALL - 53 + 29 - 8 + - 24 * + + 36 * 35 * - - MIN ( DISTINCT + 91 ), - 43 + - + 13 - - 71 / + 4 AS col2
----
-2751872
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT 49 - COUNT( * ) + + 55 + - - 11 * 30 * - 60
----
-19697

skipif mysql # not compatible
query I rowsort label-5336
SELECT 49 - COUNT ( * ) + + 55 + - - 11 * 30 * - 60
----
-19697

onlyif mysql # DIV for integer division: 
query I rowsort label-5337
SELECT ALL - ( - 72 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - ( - 72 ) / + 93
----
0

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

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

query I rowsort
SELECT ALL - + 56 + + 58 AS col2
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT + COUNT( * ) + MAX( DISTINCT - 46 ), + 75 * 93 AS col2
----
-45
6975

skipif mysql # not compatible
query II rowsort label-5340
SELECT + COUNT ( * ) + MAX ( DISTINCT - 46 ), + 75 * 93 AS col2
----
-45
6975

query I rowsort
SELECT ALL + + 43 * - 91 AS col0
----
-3913

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5342
SELECT - AVG ( + 66 ) * - + NULLIF ( + 26, - + 33 * - - COUNT( DISTINCT - 90 ) * + ( - 26 ) * + 36 + - ( - 72 ) ) + + 8 * - 61 * - CAST( NULL AS SIGNED ) + - 92 + + + 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5342
SELECT - AVG ( + 66 ) * - + NULLIF ( + 26, - + 33 * - - COUNT ( DISTINCT - 90 ) * + ( - 26 ) * + 36 + - ( - 72 ) ) + + 8 * - 61 * - CAST ( NULL AS INTEGER ) + - 92 + + + 22 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5343
SELECT + ( + + 73 ) - - 3 DIV 33 + + - 13 AS col1
----
60

skipif mysql # not compatible
query I rowsort label-5343
SELECT + ( + + 73 ) - - 3 / 33 + + - 13 AS col1
----
60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT DISTINCT - 45 AS col0, - 6 + MAX( ALL - - 43 ) + - 47 AS col2
----
-45
-10

skipif mysql # not compatible
query II rowsort label-5345
SELECT DISTINCT - 45 AS col0, - 6 + MAX ( ALL - - 43 ) + - 47 AS col2
----
-45
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5346
SELECT 4 * + MIN( 87 )
----
348

skipif mysql # not compatible
query I rowsort label-5346
SELECT 4 * + MIN ( 87 )
----
348

query I rowsort
SELECT ALL - - 52 * + + 20 AS col0
----
1040

query II rowsort
SELECT ALL 3 - - - 92 + + - 74 AS col2, 99 - - 57
----
-163
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT ALL + 26 DIV + - ( - 20 ) + - 87
----
-86

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL + 26 / + - ( - 20 ) + - 87
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT ALL + ( + 3 ) - + + ( + 60 ) - - - 29 * COALESCE ( MIN( + 93 ), 58, - 5, 71 ) DIV + - 8 col1
----
280

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + ( + 3 ) - + + ( + 60 ) - - - 29 * COALESCE ( MIN ( + 93 ), 58, - 5, 71 ) / + - 8 col1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT - + COUNT( * ) + + 67 col2
----
66

skipif mysql # not compatible
query I rowsort label-5351
SELECT - + COUNT ( * ) + + 67 col2
----
66

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

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

query I rowsort
SELECT + 7 - + 70 - - 39
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT + 83 + - - 98 - - 75 + 85 * 98 * + 81 + - COUNT( + CAST( NULL AS SIGNED ) )
----
674986

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 83 + - - 98 - - 75 + 85 * 98 * + 81 + - COUNT ( + CAST ( NULL AS INTEGER ) )
----
674986

query I rowsort
SELECT ALL COALESCE ( - 42, - ( + - 64 ) ) * 45 AS col0
----
-1890

query I rowsort
SELECT DISTINCT 6 + + 17
----
23

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

query I rowsort
SELECT + 35 + - 19
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5359
SELECT ALL COUNT( * ) + - + 67 + - ( - - 47 ) DIV - + 51 + 78 * 89 col1, 58 + + 5 DIV - ( - CAST( NULL AS SIGNED ) )
----
6876
NULL

skipif mysql # not compatible
query II rowsort label-5359
SELECT ALL COUNT ( * ) + - + 67 + - ( - - 47 ) / - + 51 + 78 * 89 col1, 58 + + 5 / - ( - CAST ( NULL AS INTEGER ) )
----
6876
NULL

query I rowsort
SELECT + 11 * + 6
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5361
SELECT + 23 + + NULLIF ( + + 5, - - COUNT( * ) + - 72 ) - + NULLIF ( + 23, + 67 ) DIV ( 30 ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5361
SELECT + 23 + + NULLIF ( + + 5, - - COUNT ( * ) + - 72 ) - + NULLIF ( + 23, + 67 ) / ( 30 ) AS col0
----
28

query I rowsort
SELECT + 29 - 84 + 16 AS col1
----
-39

query I rowsort
SELECT + 99 + - - 65 - - + 43 + + 98 AS col0
----
305

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

skipif mysql # not compatible
query I rowsort label-5364
SELECT - COUNT ( * ) - - 42 + 76 AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT ( - MAX( DISTINCT + - 51 ) ) AS col2
----
51

skipif mysql # not compatible
query I rowsort label-5365
SELECT ( - MAX ( DISTINCT + - 51 ) ) AS col2
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5366
SELECT + NULLIF ( + CASE - - 98 WHEN - 1 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN - 57 ELSE NULL END, + 61 / 51 * - + 30 - - 14 * - + 81 - - 49 + - - 0 ) AS col1, + 29
----
NULL
29

skipif mysql # not compatible
query II rowsort label-5366
SELECT + NULLIF ( + CASE - - 98 WHEN - 1 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN - 57 ELSE NULL END, + 61 / 51 * - + 30 - - 14 * - + 81 - - 49 + - - 0 ) AS col1, + 29
----
NULL
29

query I rowsort
SELECT ( 52 ) AS col1
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5368
SELECT - ( 84 ) DIV - COUNT( * ) + - 85 + - - 21
----
20

skipif mysql # not compatible
query I rowsort label-5368
SELECT - ( 84 ) / - COUNT ( * ) + - 85 + - - 21
----
20

query I rowsort
SELECT DISTINCT + 62 * - 73 + + + 24 AS col2
----
-4502

query I rowsort
SELECT NULLIF ( 87, - + NULLIF ( - - 89, + + 15 ) ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT + + 82 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5371
SELECT + + 82 / + 48 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5372
SELECT - 77 * - + COUNT( ( COALESCE ( + CAST( + 19 AS DECIMAL ), - 47 ) ) ) + 63
----
140

skipif mysql # not compatible
query I rowsort label-5372
SELECT - 77 * - + COUNT ( ( COALESCE ( + CAST ( + 19 AS REAL ), - 47 ) ) ) + 63
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5373
SELECT DISTINCT + CASE + 16 WHEN + COALESCE ( 58, - 96 - + - COUNT( * ) ) THEN NULL ELSE - 59 END * - COUNT( ALL - 61 ) / - - 47 - 64 + - CAST( - 54 AS SIGNED ) + + CASE WHEN ( - 78 ) <> NULL THEN 10 / + 9 END * + - 72 * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + CASE + 16 WHEN + COALESCE ( 58, - 96 - + - COUNT ( * ) ) THEN NULL ELSE - 59 END * - COUNT ( ALL - 61 ) / - - 47 - 64 + - CAST ( - 54 AS INTEGER ) + + CASE WHEN ( - 78 ) <> NULL THEN 10 / + 9 END * + - 72 * + COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + + 69 col2
----
69

query II rowsort
SELECT - 43 * 33 col2, 28 * - - 74 AS col0
----
-1419
2072

query I rowsort
SELECT - + 41 * + ( - 67 ) AS col1
----
2747

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT DISTINCT + 77 DIV + ( - 28 ) + + 72 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + 77 / + ( - 28 ) + + 72 AS col1
----
70

query I rowsort
SELECT - 93 * - + 87 - - 1
----
8092

query I rowsort
SELECT DISTINCT COALESCE ( + 84, - ( - - ( - NULLIF ( + + 10, 49 ) ) ) ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL CASE 39 WHEN 15 + + - 19 THEN NULL WHEN + ( 93 ) THEN NULL WHEN - 64 + + - 65 THEN COUNT( - - 39 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL CASE 39 WHEN 15 + + - 19 THEN NULL WHEN + ( 93 ) THEN NULL WHEN - 64 + + - 65 THEN COUNT ( - - 39 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 33 + 25 + ( - 38 ) AS col2
----
-46

query I rowsort
SELECT ALL ( - - 68 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT - 23 * - 76 * - COUNT( * )
----
-1748

skipif mysql # not compatible
query I rowsort label-5383
SELECT - 23 * - 76 * - COUNT ( * )
----
-1748

query I rowsort
SELECT + 5 + - 29
----
-24

query I rowsort
SELECT ALL 11 + + 30 AS col1
----
41

query I rowsort
SELECT ALL 87 + 18 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT + 93 * 48 * - - COUNT( * ) * - 27 AS col0
----
-120528

skipif mysql # not compatible
query I rowsort label-5387
SELECT + 93 * 48 * - - COUNT ( * ) * - 27 AS col0
----
-120528

query I rowsort
SELECT DISTINCT 5 * 70 AS col1
----
350

query I rowsort
SELECT DISTINCT + 71 + + 6 - - 93 AS col2
----
170

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

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

query I rowsort
SELECT DISTINCT 10 * + 6
----
60

query I rowsort
SELECT - 33 - + - 17 - + 10
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT CAST( CASE - + 78 WHEN + ( + ( - ( + - AVG ( DISTINCT + 27 ) ) ) ) THEN + 66 WHEN + 95 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT CAST ( CASE - + 78 WHEN + ( + ( - ( + - AVG ( DISTINCT + 27 ) ) ) ) THEN + 66 WHEN + 95 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5394
SELECT - 81 * + 77 / CAST( NULL AS DECIMAL ) * - 53 + - - COUNT( * ) * + + COUNT( * ) * - ( 94 ) - - + COUNT( - CAST( - 13 AS SIGNED ) ) + CASE - 6 WHEN + + 44 THEN 69 / - 20 WHEN + 21 + - 93 THEN NULL ELSE NULL END * 51 * - 70 + 61 * - ( AVG ( - 15 ) + - 67 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT - 81 * + 77 / CAST ( NULL AS REAL ) * - 53 + - - COUNT ( * ) * + + COUNT ( * ) * - ( 94 ) - - + COUNT ( - CAST ( - 13 AS INTEGER ) ) + CASE - 6 WHEN + + 44 THEN 69 / - 20 WHEN + 21 + - 93 THEN NULL ELSE NULL END * 51 * - 70 + 61 * - ( AVG ( - 15 ) + - 67 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5395
SELECT + 93 DIV + + 54 + 66 * 79 * - - 54
----
281557

skipif mysql # not compatible
query I rowsort label-5395
SELECT + 93 / + + 54 + 66 * 79 * - - 54
----
281557

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + - 20 * - 25 + - CASE 48 WHEN + - 30 THEN + COUNT( * ) / 67 WHEN - + 57 * - 7 + 74 THEN NULL WHEN - - 57 / + 60 * - 72 * 41 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5396
SELECT + - 20 * - 25 + - CASE 48 WHEN + - 30 THEN + COUNT ( * ) / 67 WHEN - + 57 * - 7 + 74 THEN NULL WHEN - - 57 / + 60 * - 72 * 41 THEN NULL END
----
NULL

query I rowsort
SELECT + 18 + + 56 AS col2
----
74

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

skipif mysql # not compatible
query I rowsort label-5398
SELECT + MIN ( - 93 )
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5399
SELECT + - COUNT( - + CAST( NULL AS DECIMAL ) ) - 25 - - + 58 + + 2
----
35

skipif mysql # not compatible
query I rowsort label-5399
SELECT + - COUNT ( - + CAST ( NULL AS REAL ) ) - 25 - - + 58 + + 2
----
35

query I rowsort
SELECT DISTINCT - 32 * + 71 AS col0
----
-2272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5401
SELECT - - NULLIF ( + + NULLIF ( + 86, - 71 * 93 DIV CAST( - + 76 AS SIGNED ) ), + - 91 ) + + - 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT - - NULLIF ( + + NULLIF ( + 86, - 71 * 93 / CAST ( - + 76 AS INTEGER ) ), + - 91 ) + + - 91 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - + 42 AS col2, - 74 * + 39
----
-42
-2886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT 35 * CAST( + 79 AS SIGNED ) + + - COUNT( * ) AS col2
----
2764

skipif mysql # not compatible
query I rowsort label-5403
SELECT 35 * CAST ( + 79 AS INTEGER ) + + - COUNT ( * ) AS col2
----
2764

query II rowsort
SELECT 34, 4 AS col2
----
34
4

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5406
SELECT + CAST( NULL AS SIGNED ) / + 81 + - 3 + - + ( + - 35 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5406
SELECT + CAST ( NULL AS INTEGER ) / + 81 + - 3 + - + ( + - 35 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 38 + - 5 col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5408
SELECT DISTINCT 36 + - ( - COUNT( * ) ) * - - COUNT( * ) DIV + COUNT( * ) AS col0
----
37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5409
SELECT ALL CASE 12 WHEN NULLIF ( - 64, + CAST( NULL AS SIGNED ) + - 40 * 48 ) / + COUNT( * ) THEN NULL ELSE ( + + 59 ) * 82 + MAX( + - 3 ) END + + 2 + - NULLIF ( + + 73, - + 93 ) + - 35 * 90
----
1614

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL CASE 12 WHEN NULLIF ( - 64, + CAST ( NULL AS INTEGER ) + - 40 * 48 ) / + COUNT ( * ) THEN NULL ELSE ( + + 59 ) * 82 + MAX ( + - 3 ) END + + 2 + - NULLIF ( + + 73, - + 93 ) + - 35 * 90
----
1614

query II rowsort
SELECT ALL 34 AS col2, - 88
----
34
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT 14 + - + MIN( - 3 ) + - - ( + COUNT( * ) ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-5411
SELECT 14 + - + MIN ( - 3 ) + - - ( + COUNT ( * ) ) AS col0
----
18

query II rowsort
SELECT - 93, 8 AS col1
----
-93
8

onlyif mysql # DIV for integer division: 
query II rowsort label-5413
SELECT 38, + 3 + - - 72 + - 27 DIV - 29 + - 6 col2
----
38
69

skipif mysql # not compatible
query II rowsort label-5413
SELECT 38, + 3 + - - 72 + - 27 / - 29 + - 6 col2
----
38
69

query I rowsort
SELECT 23 + + - 31
----
-8

query II rowsort
SELECT 59 * 10, 30 AS col0
----
590
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5416
SELECT ALL - 84 + 32, 44 * - + 41 + COUNT( * ) DIV + - 37 - - + 1 * + + COUNT( * ) AS col0
----
-52
-1803

skipif mysql # not compatible
query II rowsort label-5416
SELECT ALL - 84 + 32, 44 * - + 41 + COUNT ( * ) / + - 37 - - + 1 * + + COUNT ( * ) AS col0
----
-52
-1803

query I rowsort
SELECT 49 + 12
----
61

query I rowsort
SELECT ALL + ( - 64 ) + 15 - - 61 * - 87 AS col2
----
-5356

query II rowsort
SELECT ALL 12, 79 AS col0
----
12
79

query I rowsort
SELECT 58 + 15
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5421
SELECT ALL - NULLIF ( - 76, + CAST( - 79 AS SIGNED ) ) - - - 36 + 81 + + - 78 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - NULLIF ( - 76, + CAST ( - 79 AS INTEGER ) ) - - - 36 + 81 + + - 78 AS col0
----
43

query II rowsort
SELECT ALL 15, + 69 * + 16 + - 96 AS col1
----
15
1008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query III rowsort label-5423
SELECT MAX( ALL - 74 ) + + - 76 + + CAST( NULL AS DECIMAL ) col1, - 31 DIV + 65 * SUM( - + CAST( 14 AS SIGNED ) ) DIV - ( - ( + - COUNT( * ) ) ) + COUNT( DISTINCT 91 ) col1, - COALESCE ( + COUNT( DISTINCT 31 ), - COUNT( * ), - 46 * + NULLIF ( + ( - 60 ), - AVG ( + 83 ) ) )
----
NULL
1
-1

skipif mysql # not compatible
query III rowsort label-5423
SELECT MAX ( ALL - 74 ) + + - 76 + + CAST ( NULL AS REAL ) col1, - 31 / + 65 * SUM ( - + CAST ( 14 AS INTEGER ) ) / - ( - ( + - COUNT ( * ) ) ) + COUNT ( DISTINCT 91 ) col1, - COALESCE ( + COUNT ( DISTINCT 31 ), - COUNT ( * ), - 46 * + NULLIF ( + ( - 60 ), - AVG ( + 83 ) ) )
----
NULL
1
-1

query I rowsort
SELECT 48 + - - 55 - 85
----
18

query I rowsort
SELECT 84 - - + 97 AS col1
----
181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5426
SELECT + CASE 31 WHEN + 70 / 64 * - + 85 THEN - + 37 END + - 86 - + ( COALESCE ( + + 9, - 90, + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5426
SELECT + CASE 31 WHEN + 70 / 64 * - + 85 THEN - + 37 END + - 86 - + ( COALESCE ( + + 9, - 90, + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + 55 - + - 44 + + + 95
----
194

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

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT + - COUNT ( * ) / 27
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5429
SELECT DISTINCT ( - 48 ) * COALESCE ( 49, - COUNT( * ) DIV 29 - - 10 * 14 + 85 + COUNT( * ) ) AS col0
----
-2352

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT ( - 48 ) * COALESCE ( 49, - COUNT ( * ) / 29 - - 10 * 14 + 85 + COUNT ( * ) ) AS col0
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT DISTINCT - + ( CAST( AVG ( + 62 ) AS SIGNED ) ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - + ( CAST ( AVG ( + 62 ) AS INTEGER ) ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - 19 * + COUNT( + + 30 )
----
-19

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 19 * + COUNT ( + + 30 )
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT + 3 * + COUNT( * ) * SUM( - 60 ) * - 67 + - NULLIF ( 13, - 55 ) AS col0
----
12047

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT + 3 * + COUNT ( * ) * SUM ( - 60 ) * - 67 + - NULLIF ( 13, - 55 ) AS col0
----
12047

query II rowsort
SELECT + 10, + 64 AS col0
----
10
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL 36 + + SUM( DISTINCT 77 ) * + + 93 AS col2
----
7197

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 36 + + SUM ( DISTINCT 77 ) * + + 93 AS col2
----
7197

query I rowsort
SELECT + CASE - 67 WHEN - - 66 * + ( + 61 ) / - 59 THEN - 4 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT + MAX( DISTINCT 59 ) col1
----
59

skipif mysql # not compatible
query I rowsort label-5437
SELECT + MAX ( DISTINCT 59 ) col1
----
59

query I rowsort
SELECT + 14 + 46
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT 54 + 90 + - 64 - + 46 * MAX( ALL - - 13 ) AS col2
----
-518

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT 54 + 90 + - 64 - + 46 * MAX ( ALL - - 13 ) AS col2
----
-518

query II rowsort
SELECT ALL - + 58 col0, 46
----
-58
46

query I rowsort
SELECT ALL - - NULLIF ( - + 39, 79 ) AS col2
----
-39

query I rowsort
SELECT 97 * - 49
----
-4753

query I rowsort
SELECT ALL 38 * + 18 + ( 1 ) * + - COALESCE ( + 83, 69 ) AS col1
----
601

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL + MAX( - 16 ) * + 61 + 55 * - - 87 * 40 AS col1
----
190424

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL + MAX ( - 16 ) * + 61 + 55 * - - 87 * 40 AS col1
----
190424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5445
SELECT CAST( NULL AS SIGNED ) + - 18, 25 - + - SUM( 74 ) AS col1
----
NULL
99

skipif mysql # not compatible
query II rowsort label-5445
SELECT CAST ( NULL AS INTEGER ) + - 18, 25 - + - SUM ( 74 ) AS col1
----
NULL
99

query II rowsort
SELECT ALL COALESCE ( + - ( + 94 ), + 77 + 21, - 43 ) + 90, 74 AS col0
----
-4
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT DISTINCT ( + 94 ) + - + 1 + - - ( 53 ) * + + MIN( + 29 )
----
1630

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT ( + 94 ) + - + 1 + - - ( 53 ) * + + MIN ( + 29 )
----
1630

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT ( - + 18 ) - - + MAX( 39 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-5448
SELECT ( - + 18 ) - - + MAX ( 39 ) AS col1
----
21

query I rowsort
SELECT 53 * + + 45 AS col1
----
2385

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT 59 + + + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-5450
SELECT 59 + + + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT DISTINCT ( + 62 ) - 83 * + - 49 col1
----
4129

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5452
SELECT ALL - 26 DIV + 84, COUNT( * ) DIV + 72
----
0
0

skipif mysql # not compatible
query II rowsort label-5452
SELECT ALL - 26 / + 84, COUNT ( * ) / + 72
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT ALL 76 - + COUNT( * ) + + - 5 + - ( - 6 ) + - + 5 - + 65 * + + 99 * - COUNT( - + 28 ) AS col1, + 10 * + + 59
----
6506
590

skipif mysql # not compatible
query II rowsort label-5453
SELECT ALL 76 - + COUNT ( * ) + + - 5 + - ( - 6 ) + - + 5 - + 65 * + + 99 * - COUNT ( - + 28 ) AS col1, + 10 * + + 59
----
6506
590

query I rowsort
SELECT DISTINCT - 8 * - 64
----
512

query I rowsort
SELECT ALL + 53 - + 96 * + 52 AS col0
----
-4939

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT 33 * COUNT( * ) * - 23 col0
----
-759

skipif mysql # not compatible
query I rowsort label-5456
SELECT 33 * COUNT ( * ) * - 23 col0
----
-759

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT ALL - 26 DIV + - 29 * - - 34
----
0

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - 26 / + - 29 * - - 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT ( - MIN( 1 ) ) * 5
----
-5

skipif mysql # not compatible
query I rowsort label-5458
SELECT ( - MIN ( 1 ) ) * 5
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT - MIN( - 61 )
----
61

skipif mysql # not compatible
query I rowsort label-5459
SELECT - MIN ( - 61 )
----
61

query I rowsort
SELECT 84 + + 60
----
144

query I rowsort
SELECT 93 + - 45 AS col1
----
48

query I rowsort
SELECT ALL + 36 * - 70
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT 67 * - - 5 * MIN( ALL 15 )
----
5025

skipif mysql # not compatible
query I rowsort label-5463
SELECT 67 * - - 5 * MIN ( ALL 15 )
----
5025

query I rowsort
SELECT ALL 68 * - 11
----
-748

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL + + NULLIF ( - CAST( NULL AS SIGNED ), - MAX( DISTINCT - 79 ) ) * - + SUM( + NULLIF ( - + CAST( + - NULLIF ( - + 15, - + 76 ) AS SIGNED ), - 92 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + + NULLIF ( - CAST ( NULL AS INTEGER ), - MAX ( DISTINCT - 79 ) ) * - + SUM ( + NULLIF ( - + CAST ( + - NULLIF ( - + 15, - + 76 ) AS INTEGER ), - 92 ) )
----
NULL

query I rowsort
SELECT DISTINCT - - 97 col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT - COALESCE ( SUM( DISTINCT - 31 ), + NULLIF ( + 13, + + 96 ) * ( - + 2 ) * - 47 * - 95 + + 0 - + 6 ) * + 82 - + 52 AS col1
----
2490

skipif mysql # not compatible
query I rowsort label-5467
SELECT - COALESCE ( SUM ( DISTINCT - 31 ), + NULLIF ( + 13, + + 96 ) * ( - + 2 ) * - 47 * - 95 + + 0 - + 6 ) * + 82 - + 52 AS col1
----
2490

query I rowsort
SELECT ALL 42 * + 97 + - 11
----
4063

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5469
SELECT + + SUM( DISTINCT - - 77 ) * - + 64 * - CASE + - 79 WHEN - COUNT( * ) THEN NULL WHEN + - NULLIF ( + 94, - CAST( 31 AS SIGNED ) + + 34 ) THEN ( + 24 ) * - 62 * - COUNT( * ) END + + - ( 19 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT + + SUM ( DISTINCT - - 77 ) * - + 64 * - CASE + - 79 WHEN - COUNT ( * ) THEN NULL WHEN + - NULLIF ( + 94, - CAST ( 31 AS INTEGER ) + + 34 ) THEN ( + 24 ) * - 62 * - COUNT ( * ) END + + - ( 19 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5470
SELECT ALL - 82 DIV 84, 32 AS col2
----
0
32

skipif mysql # not compatible
query II rowsort label-5470
SELECT ALL - 82 / 84, 32 AS col2
----
0
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5471
SELECT + - 53 DIV - - 6 + - 45 + + 67 - COUNT( * ) * + 77 * 40 + - COALESCE ( + - COUNT( * ), - CAST( NULL AS SIGNED ) )
----
-3065

skipif mysql # not compatible
query I rowsort label-5471
SELECT + - 53 / - - 6 + - 45 + + 67 - COUNT ( * ) * + 77 * 40 + - COALESCE ( + - COUNT ( * ), - CAST ( NULL AS INTEGER ) )
----
-3065

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT - COALESCE ( + 37, + 63 * + 20, + 6 ) * + - COUNT( * ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT - COALESCE ( + 37, + 63 * + 20, + 6 ) * + - COUNT ( * ) AS col2
----
37

query I rowsort
SELECT - - 44 + - 53 AS col0
----
-9

query I rowsort
SELECT ALL + 89 * + 10 + - - 16 + 89
----
995

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - 46 * - MAX( - 99 ) - + + COUNT( * ) * - - 25 AS col1
----
-4579

skipif mysql # not compatible
query I rowsort label-5475
SELECT - 46 * - MAX ( - 99 ) - + + COUNT ( * ) * - - 25 AS col1
----
-4579

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL + 63 * 51 * - COUNT( * ) + - + 20 col1
----
-3233

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + 63 * 51 * - COUNT ( * ) + - + 20 col1
----
-3233

query I rowsort
SELECT 2 * + 53 + - 94 AS col2
----
12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT MAX( ALL - 6 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5480
SELECT MAX ( ALL - 6 ) AS col0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-5481
SELECT ALL + 98 AS col1, + 83 DIV + + 55 AS col0
----
98
1

skipif mysql # not compatible
query II rowsort label-5481
SELECT ALL + 98 AS col1, + 83 / + + 55 AS col0
----
98
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT ALL 45, COUNT( * ) + + COUNT( * ) AS col0
----
45
2

skipif mysql # not compatible
query II rowsort label-5483
SELECT ALL 45, COUNT ( * ) + + COUNT ( * ) AS col0
----
45
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5484
SELECT DISTINCT 23 - ( + 75 ) - - 56 + + ( + COUNT( - 97 ) ) DIV MIN( ALL - ( + 76 ) )
----
4

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT 23 - ( + 75 ) - - 56 + + ( + COUNT ( - 97 ) ) / MIN ( ALL - ( + 76 ) )
----
4

query I rowsort
SELECT + NULLIF ( - - 6, + 54 ) + - - 40 AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT ALL 98 AS col1, COUNT( * ) + - - 20
----
98
21

skipif mysql # not compatible
query II rowsort label-5486
SELECT ALL 98 AS col1, COUNT ( * ) + - - 20
----
98
21

query II rowsort
SELECT DISTINCT 50 AS col0, 40 AS col1
----
50
40

query I rowsort
SELECT DISTINCT 58 - - 97 AS col1
----
155

query I rowsort
SELECT DISTINCT 70 * 19
----
1330

query I rowsort
SELECT - 99 * + 50 + 20
----
-4930

query I rowsort
SELECT + 93 * 30 * COALESCE ( + 12, + 76 ) AS col0
----
33480

query I rowsort
SELECT + 11 + 20
----
31

query I rowsort
SELECT DISTINCT 22 * - 50 AS col0
----
-1100

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT + MAX( 93 ) + + 12 - - + 94 - - 18 * 0 * - - 12
----
199

skipif mysql # not compatible
query I rowsort label-5494
SELECT + MAX ( 93 ) + + 12 - - + 94 - - 18 * 0 * - - 12
----
199

query I rowsort
SELECT + 63 + 91
----
154

query II rowsort
SELECT + 80 + 62 + - + 19 AS col2, 36
----
123
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5497
SELECT + ( + + 39 ) * - 60 AS col2, - COUNT( * ) * 95 * - 15 * 25 * - 92 * - + CAST( NULL AS SIGNED ) + - 84 * - 5 col0, - - 60 AS col2
----
-2340
NULL
60

skipif mysql # not compatible
query III rowsort label-5497
SELECT + ( + + 39 ) * - 60 AS col2, - COUNT ( * ) * 95 * - 15 * 25 * - 92 * - + CAST ( NULL AS INTEGER ) + - 84 * - 5 col0, - - 60 AS col2
----
-2340
NULL
60

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5499
SELECT - CASE + NULLIF ( + 33, - COUNT( * ) * - - MAX( - + 93 ) * - 18 / - 64 * 24 / - 54 + - 79 ) WHEN + ( 30 ) THEN + 23 END, - 55 + - - 58 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-5499
SELECT - CASE + NULLIF ( + 33, - COUNT ( * ) * - - MAX ( - + 93 ) * - 18 / - 64 * 24 / - 54 + - 79 ) WHEN + ( 30 ) THEN + 23 END, - 55 + - - 58 AS col0
----
NULL
3

query I rowsort
SELECT + + 14 * - 74 AS col0
----
-1036

query I rowsort
SELECT - - 8 + 65 AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5502
SELECT ALL - 3 + + - CASE + + 31 WHEN + 63 THEN 44 * 33 WHEN + COUNT( * ) + + 33 * - CAST( 80 AS DECIMAL ) THEN NULL END * - COUNT( * ) AS col1, - 35
----
NULL
-35

skipif mysql # not compatible
query II rowsort label-5502
SELECT ALL - 3 + + - CASE + + 31 WHEN + 63 THEN 44 * 33 WHEN + COUNT ( * ) + + 33 * - CAST ( 80 AS REAL ) THEN NULL END * - COUNT ( * ) AS col1, - 35
----
NULL
-35

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

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

query I rowsort
SELECT + 74 + - 48 - - + 84 AS col1
----
110

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT - NULLIF ( 31, CAST( NULL AS SIGNED ) * + 23 ) + + 8 + - - 68 * - 27 AS col2
----
-1859

skipif mysql # not compatible
query I rowsort label-5505
SELECT - NULLIF ( 31, CAST ( NULL AS INTEGER ) * + 23 ) + + 8 + - - 68 * - 27 AS col2
----
-1859

query I rowsort
SELECT ALL + 53 + - 24
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT + 87 * - 0 DIV - - 1
----
0

skipif mysql # not compatible
query I rowsort label-5507
SELECT + 87 * - 0 / - - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT - 57 + - COUNT( * ) - 99 * - 34 - + 74
----
3234

skipif mysql # not compatible
query I rowsort label-5508
SELECT - 57 + - COUNT ( * ) - 99 * - 34 - + 74
----
3234

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5510
SELECT ALL + 77 DIV - + 39 + + 67 * + 76
----
5091

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + 77 / - + 39 + + 67 * + 76
----
5091

query II rowsort
SELECT ALL + + 80 col1, 99
----
80
99

query I rowsort
SELECT - + 81 + + + 34
----
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT - + ( + + 80 ) * - COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-5514
SELECT - + ( + + 80 ) * - COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - 60 * 18 * COUNT( * )
----
-1080

skipif mysql # not compatible
query I rowsort label-5515
SELECT - 60 * 18 * COUNT ( * )
----
-1080

onlyif mysql # aggregate syntax: 
query II rowsort label-5516
SELECT DISTINCT - ( + + COUNT( * ) ) * 43 - + MIN( DISTINCT 4 ) + - 32 AS col2, 21
----
-79
21

skipif mysql # not compatible
query II rowsort label-5516
SELECT DISTINCT - ( + + COUNT ( * ) ) * 43 - + MIN ( DISTINCT 4 ) + - 32 AS col2, 21
----
-79
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT - COALESCE ( 21, + COUNT( * ) * - CASE - 22 WHEN - 70 THEN + 20 END + COUNT( * ), - 23 + - - 25 * + 17 ) DIV + - 35 * + CAST( - 63 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - COALESCE ( 21, + COUNT ( * ) * - CASE - 22 WHEN - 70 THEN + 20 END + COUNT ( * ), - 23 + - - 25 * + 17 ) / + - 35 * + CAST ( - 63 AS INTEGER )
----
0

query I rowsort
SELECT + 65 + - + 65 + - + NULLIF ( - 24, - - 38 * - 66 )
----
24

query II rowsort
SELECT - 77 * - 41, 44 AS col0
----
3157
44

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT + MIN( ALL 84 ), COUNT( * ) AS col0
----
84
1

skipif mysql # not compatible
query II rowsort label-5521
SELECT + MIN ( ALL 84 ), COUNT ( * ) AS col0
----
84
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5522
SELECT - 29 DIV + 48 AS col2, - 94 DIV + 92 + + 24 - - + COUNT( * ) + + + 61 * 41
----
0
2525

skipif mysql # not compatible
query II rowsort label-5522
SELECT - 29 / + 48 AS col2, - 94 / + 92 + + 24 - - + COUNT ( * ) + + + 61 * 41
----
0
2525

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL - COUNT( * ) * - 20 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL - COUNT ( * ) * - 20 AS col2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5524
SELECT DISTINCT + CAST( 92 AS SIGNED ), 34 AS col0
----
92
34

skipif mysql # not compatible
query II rowsort label-5524
SELECT DISTINCT + CAST ( 92 AS INTEGER ), 34 AS col0
----
92
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL - NULLIF ( + - 15, 86 ) * - COUNT( * ) * 50 * - 33 * - + COUNT( * ) AS col2
----
-24750

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL - NULLIF ( + - 15, 86 ) * - COUNT ( * ) * 50 * - 33 * - + COUNT ( * ) AS col2
----
-24750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT NULLIF ( + 19, - + ( + 20 ) * MAX( + ( 96 ) ) * + - 28 )
----
19

skipif mysql # not compatible
query I rowsort label-5527
SELECT NULLIF ( + 19, - + ( + 20 ) * MAX ( + ( 96 ) ) * + - 28 )
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5528
SELECT - 93 / + CASE ( + 1 ) WHEN + - 28 * 30 THEN MAX( 71 ) + + - COUNT( * ) * + 90 WHEN - 98 THEN NULL ELSE SUM( 56 ) * + 19 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 93 / + CASE ( + 1 ) WHEN + - 28 * 30 THEN MAX ( 71 ) + + - COUNT ( * ) * + 90 WHEN - 98 THEN NULL ELSE SUM ( 56 ) * + 19 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + NULLIF ( COUNT( * ), CASE CASE + - 56 WHEN - 35 * - + 53 * - 41 * - COUNT( ALL - 24 ) THEN + 35 ELSE NULL END WHEN - - ( + + 65 ) / - NULLIF ( + COALESCE ( + 97, - COALESCE ( SUM( + + 26 ), - + 54 * + 17 * + 13 + + + 42 ), 74 + - 73 ), 24 + + 43 ) THEN 0 * 77 END ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5529
SELECT + NULLIF ( COUNT ( * ), CASE CASE + - 56 WHEN - 35 * - + 53 * - 41 * - COUNT ( ALL - 24 ) THEN + 35 ELSE NULL END WHEN - - ( + + 65 ) / - NULLIF ( + COALESCE ( + 97, - COALESCE ( SUM ( + + 26 ), - + 54 * + 17 * + 13 + + + 42 ), 74 + - 73 ), 24 + + 43 ) THEN 0 * 77 END ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5530
SELECT + 75 * - + COALESCE ( + - 98, + 19 DIV - 62 DIV COUNT( * ) ) AS col2
----
7350

skipif mysql # not compatible
query I rowsort label-5530
SELECT + 75 * - + COALESCE ( + - 98, + 19 / - 62 / COUNT ( * ) ) AS col2
----
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT NULLIF ( + CASE + 21 WHEN - + 21 THEN 44 + + + 88 WHEN - 15 THEN + + ( - - SUM( DISTINCT + + 10 ) ) END, + COUNT( * ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT NULLIF ( + CASE + 21 WHEN - + 21 THEN 44 + + + 88 WHEN - 15 THEN + + ( - - SUM ( DISTINCT + + 10 ) ) END, + COUNT ( * ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT + 93 + COUNT( * ) AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5532
SELECT + 93 + COUNT ( * ) AS col0
----
94

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT - COALESCE ( - + 70, - COUNT( * ) ) AS col1
----
70

skipif mysql # not compatible
query I rowsort label-5534
SELECT - COALESCE ( - + 70, - COUNT ( * ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT SUM( ALL - ( - ( COALESCE ( 67, ( + 95 ) * 54 - - 0 ) ) ) ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-5535
SELECT SUM ( ALL - ( - ( COALESCE ( 67, ( + 95 ) * 54 - - 0 ) ) ) ) AS col1
----
67

query I rowsort
SELECT ALL 39 + 72
----
111

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5538
SELECT ALL ( + MAX( DISTINCT 80 ) ) + 26 DIV - - 22 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL ( + MAX ( DISTINCT 80 ) ) + 26 / - - 22 AS col0
----
81

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT CASE + + COUNT( * ) WHEN + 59 * - 36 + - + 68 THEN - - 59 WHEN 47 THEN NULL END * - 32 / 92 * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT CASE + + COUNT ( * ) WHEN + 59 * - 36 + - + 68 THEN - - 59 WHEN 47 THEN NULL END * - 32 / 92 * - 96
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT ALL + 91 + + COALESCE ( - 77, CAST( + 39 AS SIGNED ) )
----
14

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL + 91 + + COALESCE ( - 77, CAST ( + 39 AS INTEGER ) )
----
14

query I rowsort
SELECT + 94 - - + ( - 15 ) * 20 + - 45 AS col1
----
-251

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

query I rowsort
SELECT 57 * + 61 * + 58 col1
----
201666

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5547
SELECT ( + - 47 ) * - 92 * + 48 DIV + COUNT( * ) col1
----
207552

skipif mysql # not compatible
query I rowsort label-5547
SELECT ( + - 47 ) * - 92 * + 48 / + COUNT ( * ) col1
----
207552

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT COUNT( * ) * + - 59 + - 6 * + 94 * + - 29 col2
----
16297

skipif mysql # not compatible
query I rowsort label-5549
SELECT COUNT ( * ) * + - 59 + - 6 * + 94 * + - 29 col2
----
16297

query II rowsort
SELECT ALL - 64 * - 46 * - ( - - 47 ) AS col2, 93 AS col2
----
-138368
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT ALL COUNT( DISTINCT + + 87 ) - + 18
----
-17

skipif mysql # not compatible
query I rowsort label-5551
SELECT ALL COUNT ( DISTINCT + + 87 ) - + 18
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL - 39 * - + COUNT( * ) col2
----
39

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - 39 * - + COUNT ( * ) col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5553
SELECT DISTINCT - NULLIF ( - + 73, + 19 - + + NULLIF ( - - CAST( NULL AS SIGNED ), - - 54 ) / 27 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT - NULLIF ( - + 73, + 19 - + + NULLIF ( - - CAST ( NULL AS INTEGER ), - - 54 ) / 27 ) AS col2
----
73

query I rowsort
SELECT ALL - 40 * 98 AS col0
----
-3920

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT COUNT( * ) * - 25 * - 11
----
275

skipif mysql # not compatible
query I rowsort label-5555
SELECT COUNT ( * ) * - 25 * - 11
----
275

query I rowsort
SELECT 68 * - NULLIF ( - 4, 88 ) AS col0
----
272

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

query I rowsort
SELECT ALL - ( - 96 ) AS col2
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT ALL + 4 DIV + - 60 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL + 4 / + - 60 AS col1
----
0

query I rowsort
SELECT 58 * + + 76 AS col1
----
4408

query I rowsort
SELECT 93 * - + 61 * + 29 AS col2
----
-164517

query I rowsort
SELECT ALL + 77 * + - 65
----
-5005

query I rowsort
SELECT DISTINCT - 50 + - 47 + - ( - + 58 ) AS col1
----
-39

query I rowsort
SELECT ALL 28 + - - 77 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5565
SELECT DISTINCT CASE + COUNT( DISTINCT 33 ) WHEN - CAST( + - MAX( ALL 81 ) AS DECIMAL ) + - 27 THEN - 70 * 71 ELSE - 28 - + 63 - + COUNT( * ) END + + - 10
----
-102

skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT CASE + COUNT ( DISTINCT 33 ) WHEN - CAST ( + - MAX ( ALL 81 ) AS REAL ) + - 27 THEN - 70 * 71 ELSE - 28 - + 63 - + COUNT ( * ) END + + - 10
----
-102

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

skipif mysql # not compatible
query I rowsort label-5566
SELECT COUNT ( * ) / + 61 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT + 52 * 77 + 66 AS col1, - 99 * - 85 * - + SUM( ALL - 55 ) AS col2
----
4070
462825

skipif mysql # not compatible
query II rowsort label-5567
SELECT + 52 * 77 + 66 AS col1, - 99 * - 85 * - + SUM ( ALL - 55 ) AS col2
----
4070
462825

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5568
SELECT + 98 - - - 50 - + CAST( NULL AS SIGNED ) + + 71 * CASE + - 96 WHEN 57 * + + 88 * + 35 + + 15 + - 89 THEN NULL ELSE + CAST( NULL AS DECIMAL ) END + - 77 * 46 * + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT + 98 - - - 50 - + CAST ( NULL AS INTEGER ) + + 71 * CASE + - 96 WHEN 57 * + + 88 * + 35 + + 15 + - 89 THEN NULL ELSE + CAST ( NULL AS REAL ) END + - 77 * 46 * + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT + COALESCE ( - 7, + 30, - + 37 ) + 93 + - COUNT( DISTINCT + 15 ) * - 19
----
105

skipif mysql # not compatible
query I rowsort label-5569
SELECT + COALESCE ( - 7, + 30, - + 37 ) + 93 + - COUNT ( DISTINCT + 15 ) * - 19
----
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT ( + COUNT( * ) ) - COALESCE ( + 26, - 90 + + - 81 + COUNT( - 16 ) * - 62 * + - CASE + + 90 WHEN + + MIN( DISTINCT 25 ) * - - 39 * + - COALESCE ( + ( 24 ), 88 ) THEN - 41 DIV + 55 WHEN - 69 THEN + 43 END ) AS col2
----
-25

skipif mysql # not compatible
query I rowsort label-5570
SELECT ( + COUNT ( * ) ) - COALESCE ( + 26, - 90 + + - 81 + COUNT ( - 16 ) * - 62 * + - CASE + + 90 WHEN + + MIN ( DISTINCT 25 ) * - - 39 * + - COALESCE ( + ( 24 ), 88 ) THEN - 41 / + 55 WHEN - 69 THEN + 43 END ) AS col2
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT NULLIF ( - - 72, - 79 * 61 * + + CAST( - 49 AS SIGNED ) * - ( - 13 ) )
----
72

skipif mysql # not compatible
query I rowsort label-5571
SELECT NULLIF ( - - 72, - 79 * 61 * + + CAST ( - 49 AS INTEGER ) * - ( - 13 ) )
----
72

query II rowsort
SELECT + 68, - ( - + 20 ) AS col0
----
68
20

query II rowsort
SELECT DISTINCT + 77, 11 AS col0
----
77
11

query I rowsort
SELECT 79 + 60 AS col0
----
139

query I rowsort
SELECT ALL 36 * - - 82 * + 37
----
109224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT 71 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT 71 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 59 - 58 AS col2
----
1

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

query I rowsort
SELECT ALL 2 * - 8
----
-16

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

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

query I rowsort
SELECT + ( - 89 ) * 77 AS col2
----
-6853

onlyif mysql # aggregate syntax: 
query II rowsort label-5582
SELECT - - ( + MIN( - - 14 ) ) AS col0, ( - 22 ) AS col0
----
14
-22

skipif mysql # not compatible
query II rowsort label-5582
SELECT - - ( + MIN ( - - 14 ) ) AS col0, ( - 22 ) AS col0
----
14
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL - 18 - - + 90 - + + ( - COUNT( * ) ) * 98
----
170

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL - 18 - - + 90 - + + ( - COUNT ( * ) ) * 98
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + 99 * + + 79 + COUNT( * ) + + CASE - - 1 WHEN - - 64 - + 34 * 21 * 87 / - 36 + - + 4 * 21 THEN ( - 10 ) / + 35 + + + 70 / - - ( 38 ) - - 21 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5584
SELECT + 99 * + + 79 + COUNT ( * ) + + CASE - - 1 WHEN - - 64 - + 34 * 21 * 87 / - 36 + - + 4 * 21 THEN ( - 10 ) / + 35 + + + 70 / - - ( 38 ) - - 21 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT ALL - - ( + ( + - 17 ) ) AS col1, ( + 20 ) col1
----
-17
20

query II rowsort
SELECT DISTINCT - 85 AS col0, - 16 col0
----
-85
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5587
SELECT + COUNT( * ) AS col1, - SUM( ALL - - 74 ) AS col2
----
1
-74

skipif mysql # not compatible
query II rowsort label-5587
SELECT + COUNT ( * ) AS col1, - SUM ( ALL - - 74 ) AS col2
----
1
-74

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5589
SELECT NULLIF ( + + 19, - MIN( ALL - 63 ) + 26 + + 64 + - - 81 * - 56 + - CAST( - COALESCE ( + 74, - COUNT( * ) * + 33 * - 14 * 27 * + 9 - - ( - 46 ) + + + 72 + - + ( + CASE 53 WHEN - COUNT( * ) THEN - 17 * + 14 * 27 * 66 - CAST( NULL AS SIGNED ) END ) + + COUNT( * ) * MIN( ALL 51 ), - 30 + NULLIF ( 53, 58 + 86 * - COUNT( * ) ) ) AS SIGNED ) + - COUNT( * ) * 62 ) DIV ( - 69 )
----
0

skipif mysql # not compatible
query I rowsort label-5589
SELECT NULLIF ( + + 19, - MIN ( ALL - 63 ) + 26 + + 64 + - - 81 * - 56 + - CAST ( - COALESCE ( + 74, - COUNT ( * ) * + 33 * - 14 * 27 * + 9 - - ( - 46 ) + + + 72 + - + ( + CASE 53 WHEN - COUNT ( * ) THEN - 17 * + 14 * 27 * 66 - CAST ( NULL AS INTEGER ) END ) + + COUNT ( * ) * MIN ( ALL 51 ), - 30 + NULLIF ( 53, 58 + 86 * - COUNT ( * ) ) ) AS INTEGER ) + - COUNT ( * ) * 62 ) / ( - 69 )
----
0

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

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT 47 / - ( COUNT ( * ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT COUNT( DISTINCT + 67 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5591
SELECT COUNT ( DISTINCT + 67 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5592
SELECT + COUNT( * ) AS col1, - CAST( + 10 AS SIGNED ) AS col2
----
1
-10

skipif mysql # not compatible
query II rowsort label-5592
SELECT + COUNT ( * ) AS col1, - CAST ( + 10 AS INTEGER ) AS col2
----
1
-10

query I rowsort
SELECT ALL + 8 * + 32
----
256

query I rowsort
SELECT ALL 12 * + 17 + + NULLIF ( 41, 7 ) AS col1
----
245

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT ALL - 45 + ( - COUNT( * ) ) + - - SUM( - 89 ) * 17 - 32 - 98 * - 38 AS col0
----
2133

skipif mysql # not compatible
query I rowsort label-5595
SELECT ALL - 45 + ( - COUNT ( * ) ) + - - SUM ( - 89 ) * 17 - 32 - 98 * - 38 AS col0
----
2133

query I rowsort
SELECT ALL 98 + - 74 AS col0
----
24

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT + COALESCE ( CASE WHEN NULL IS NULL THEN - 94 ELSE NULL END, 69 - - - 63 ) col0, + COUNT( * ) AS col0
----
-94
1

skipif mysql # not compatible
query II rowsort label-5598
SELECT + COALESCE ( CASE WHEN NULL IS NULL THEN - 94 ELSE NULL END, 69 - - - 63 ) col0, + COUNT ( * ) AS col0
----
-94
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5599
SELECT + ( 73 ) DIV COALESCE ( + CAST( NULL AS SIGNED ), + SUM( + + CAST( NULL AS SIGNED ) ), + 84 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5599
SELECT + ( 73 ) / COALESCE ( + CAST ( NULL AS INTEGER ), + SUM ( + + CAST ( NULL AS INTEGER ) ), + 84 ) AS col1
----
0

query I rowsort
SELECT - 4 + + + 34 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT + ( CASE - COUNT( * ) WHEN + - COUNT( * ) * - 21 THEN NULL ELSE NULLIF ( - 25, 43 + 29 + - - 76 + - 3 * - - MIN( + - 64 ) ) END ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5601
SELECT + ( CASE - COUNT ( * ) WHEN + - COUNT ( * ) * - 21 THEN NULL ELSE NULLIF ( - 25, 43 + 29 + - - 76 + - 3 * - - MIN ( + - 64 ) ) END ) AS col0
----
-25

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

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + ( - COUNT ( - 85 ) ) * - + 35
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT - MIN( DISTINCT 35 ) * + - 67 AS col2
----
2345

skipif mysql # not compatible
query I rowsort label-5603
SELECT - MIN ( DISTINCT 35 ) * + - 67 AS col2
----
2345

query I rowsort
SELECT DISTINCT + - 58 * 21
----
-1218

onlyif mysql # DIV for integer division: 
query I rowsort label-5605
SELECT DISTINCT + 21 DIV 64 col1
----
0

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + 21 / 64 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT - MIN( DISTINCT 78 ) AS col2
----
-78

skipif mysql # not compatible
query I rowsort label-5606
SELECT - MIN ( DISTINCT 78 ) AS col2
----
-78

query I rowsort
SELECT - + 83 - + ( 7 )
----
-90

query I rowsort
SELECT ALL - ( - 43 ) col0
----
43

query I rowsort
SELECT DISTINCT + - 87 * + - 35
----
3045

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5610
SELECT DISTINCT + COUNT( * ), COUNT( * ) * + + 24 DIV - 9 col1
----
1
-2

skipif mysql # not compatible
query II rowsort label-5610
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) * + + 24 / - 9 col1
----
1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5611
SELECT - COUNT( - ( + + ( CAST( NULL AS SIGNED ) ) ) ), 25 + - + 34 * + 69 * 53 * 82 * + COUNT( * ) + - 0 AS col2
----
0
-10195691

skipif mysql # not compatible
query II rowsort label-5611
SELECT - COUNT ( - ( + + ( CAST ( NULL AS INTEGER ) ) ) ), 25 + - + 34 * + 69 * 53 * 82 * + COUNT ( * ) + - 0 AS col2
----
0
-10195691

query I rowsort
SELECT + ( - 79 ) * - 2
----
158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5613
SELECT - CAST( + CASE ( COUNT( * ) ) WHEN 85 THEN NULL WHEN 76 * - 34 - + 91 + + - 36 + - 60 * + + 94 THEN - 44 * + + CASE + 47 WHEN + 93 THEN - 69 ELSE NULL END + 90 * - 67 END AS SIGNED ) * + + 89 + - 11 + - 70 + + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5613
SELECT - CAST ( + CASE ( COUNT ( * ) ) WHEN 85 THEN NULL WHEN 76 * - 34 - + 91 + + - 36 + - 60 * + + 94 THEN - 44 * + + CASE + 47 WHEN + 93 THEN - 69 ELSE NULL END + 90 * - 67 END AS INTEGER ) * + + 89 + - 11 + - 70 + + 68
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5614
SELECT ( - NULLIF ( + - 93, - COUNT( * ) * + + CAST( NULL AS SIGNED ) / - - 8 * + + 82 * - + 8 + - - 30 + CAST( NULL AS SIGNED ) * 11 / - COUNT( * ) + + 17 * + 92 ) ) col2
----
93

skipif mysql # not compatible
query I rowsort label-5614
SELECT ( - NULLIF ( + - 93, - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) / - - 8 * + + 82 * - + 8 + - - 30 + CAST ( NULL AS INTEGER ) * 11 / - COUNT ( * ) + + 17 * + 92 ) ) col2
----
93

query II rowsort
SELECT ALL 6 * 45 AS col0, + 41 col0
----
270
41

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5617
SELECT COUNT( * ) DIV + + 65 + - + 39 DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5617
SELECT COUNT ( * ) / + + 65 + - + 39 / + 52 AS col0
----
0

query I rowsort
SELECT ( - - 1 ) * + - 58 - + + 36 AS col1
----
-94

query I rowsort
SELECT + NULLIF ( + - 47, + 34 + 19 * + 21 * - 79 / - - 61 ) + - 22
----
-69

query I rowsort
SELECT DISTINCT + 45 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT ALL 58 * - CAST( 47 AS SIGNED ) + + - 82 + + + 37 - - 94 + + 67 * - 37 col2
----
-5156

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL 58 * - CAST ( 47 AS INTEGER ) + + - 82 + + + 37 - - 94 + + 67 * - 37 col2
----
-5156

query I rowsort
SELECT ( - 28 ) col0
----
-28

query I rowsort
SELECT DISTINCT 83 * + 74 + 26 * - - 32
----
6974

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT + COALESCE ( 50, 79 ) / + + 83 * - - 39 + - 43 + - CAST( NULL AS SIGNED ) * - COUNT( * ) * + 34 / + COALESCE ( + + COUNT( DISTINCT + + 39 ), 12 ) * - 24 + + - 84 + 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT + COALESCE ( 50, 79 ) / + + 83 * - - 39 + - 43 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 34 / + COALESCE ( + + COUNT ( DISTINCT + + 39 ), 12 ) * - 24 + + - 84 + 70 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5626
SELECT CASE - + MAX( - 69 ) WHEN - + 76 THEN - 3 - + 98 / + NULLIF ( + 7, 87 / - 5 ) END col2, 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5626
SELECT CASE - + MAX ( - 69 ) WHEN - + 76 THEN - 3 - + 98 / + NULLIF ( + 7, 87 / - 5 ) END col2, 72
----
NULL
72

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5628
SELECT + COALESCE ( + 26, - 35 * 12, COUNT( + 35 ) * - - CASE + 4 WHEN - COUNT( * ) THEN NULL WHEN + COUNT( * ) * - COUNT( * ) - - 49 + + ( 95 ) + + 7 - - CAST( - 58 AS SIGNED ) + + 8 * - 63 + 52 * + - 85 THEN - - COUNT( DISTINCT + - 53 ) DIV + - 65 END ) + - 32 * + ( - 32 )
----
1050

skipif mysql # not compatible
query I rowsort label-5628
SELECT + COALESCE ( + 26, - 35 * 12, COUNT ( + 35 ) * - - CASE + 4 WHEN - COUNT ( * ) THEN NULL WHEN + COUNT ( * ) * - COUNT ( * ) - - 49 + + ( 95 ) + + 7 - - CAST ( - 58 AS INTEGER ) + + 8 * - 63 + 52 * + - 85 THEN - - COUNT ( DISTINCT + - 53 ) / + - 65 END ) + - 32 * + ( - 32 )
----
1050

query I rowsort
SELECT + 81 * + 86 AS col0
----
6966

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL 92 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 92 / 97
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5631
SELECT + 4 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5631
SELECT + 4 / - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - 18 * + 38 * - + 58 + - CASE WHEN NOT NULL IN ( 91, 8 * AVG ( - 82 ), - 96 * + COUNT( * ) ) THEN MIN( DISTINCT + 64 ) * - 26 + - - 44 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - 18 * + 38 * - + 58 + - CASE WHEN NOT NULL IN ( 91, 8 * AVG ( - 82 ), - 96 * + COUNT ( * ) ) THEN MIN ( DISTINCT + 64 ) * - 26 + - - 44 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + MAX( DISTINCT - 60 ) * + - 69 - ( + - NULLIF ( - 36, + COUNT( * ) ) )
----
4104

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + MAX ( DISTINCT - 60 ) * + - 69 - ( + - NULLIF ( - 36, + COUNT ( * ) ) )
----
4104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5634
SELECT DISTINCT - COUNT( * ) * - COALESCE ( + + 76, ( - CAST( NULL AS SIGNED ) ) ), + 59 AS col1
----
76
59

skipif mysql # not compatible
query II rowsort label-5634
SELECT DISTINCT - COUNT ( * ) * - COALESCE ( + + 76, ( - CAST ( NULL AS INTEGER ) ) ), + 59 AS col1
----
76
59

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5635
SELECT DISTINCT 89 * - - 91 * + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) / 36 - + 24 + + 54 + 91 + - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT 89 * - - 91 * + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) / 36 - + 24 + + 54 + 91 + - 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5636
SELECT + 51 * 31 DIV 25 * - 88 + + + 6 + + 18
----
-5520

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 51 * 31 / 25 * - 88 + + + 6 + + 18
----
-5520

query II rowsort
SELECT + NULLIF ( 98, - ( 29 ) ) + 46 AS col0, 59
----
144
59

query I rowsort
SELECT + + 54 * - 67
----
-3618

query I rowsort
SELECT - + ( - + 13 ) col0
----
13

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

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

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

query I rowsort
SELECT - 97 - - 81 AS col1
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5643
SELECT ALL - 77 DIV - + 32 AS col1, + COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-5643
SELECT ALL - 77 / - + 32 AS col1, + COUNT ( * )
----
2
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT - + 39 * + + 48 + - 33 DIV - 22
----
-1871

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - + 39 * + + 48 + - 33 / - 22
----
-1871

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL - 27 * - ( + MAX( 49 ) ) AS col1
----
1323

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL - 27 * - ( + MAX ( 49 ) ) AS col1
----
1323

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - + 47 + COALESCE ( - 40, CASE - 84 WHEN ( + 96 ) THEN NULL WHEN + 70 THEN + - 41 END - + 1 + + + COUNT( DISTINCT - - 19 ) + - 24 ) + - - 40 * 51
----
1953

skipif mysql # not compatible
query I rowsort label-5646
SELECT - + 47 + COALESCE ( - 40, CASE - 84 WHEN ( + 96 ) THEN NULL WHEN + 70 THEN + - 41 END - + 1 + + + COUNT ( DISTINCT - - 19 ) + - 24 ) + - - 40 * 51
----
1953

query I rowsort
SELECT ALL - 81 + + 73 * - + 20 - 93 AS col0
----
-1634

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT - 95 * + COUNT( * ) AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-5648
SELECT - 95 * + COUNT ( * ) AS col2
----
-95

query I rowsort
SELECT ALL + 17 + 67 AS col1
----
84

query I rowsort
SELECT DISTINCT - 63 + - 71
----
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-5651
SELECT ALL - 48 col2, - ( - 57 ) * 15 + - - CASE + 54 WHEN + 76 * + COUNT( * ) / - 30 * + + ( + - 84 ) + + CAST( NULL AS SIGNED ) * - 3 THEN 92 END + - 98 / - 88, - - 58 AS col2
----
-48
NULL
58

skipif mysql # not compatible
query III rowsort label-5651
SELECT ALL - 48 col2, - ( - 57 ) * 15 + - - CASE + 54 WHEN + 76 * + COUNT ( * ) / - 30 * + + ( + - 84 ) + + CAST ( NULL AS INTEGER ) * - 3 THEN 92 END + - 98 / - 88, - - 58 AS col2
----
-48
NULL
58

query I rowsort
SELECT ALL 11 + - + 85 AS col0
----
-74

query I rowsort
SELECT 96 * - - 26 AS col1
----
2496

query II rowsort
SELECT + 4 AS col2, + 95
----
4
95

query I rowsort
SELECT ALL - 73 * - 19 AS col0
----
1387

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT ALL + COUNT( * ) + - - 43 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL + COUNT ( * ) + - - 43 AS col0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT 77 - 67 - + 27 + - 29 DIV - 90
----
-17

skipif mysql # not compatible
query I rowsort label-5657
SELECT 77 - 67 - + 27 + - 29 / - 90
----
-17

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

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

query I rowsort
SELECT 86 * - 43 AS col2
----
-3698

query I rowsort
SELECT 22 * + 32
----
704

query I rowsort
SELECT ALL 69 * - 4 AS col2
----
-276

query I rowsort
SELECT ALL - 73 * - + 88
----
6424

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

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

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT + COUNT ( * ) - - 93 col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5665
SELECT DISTINCT 84 DIV 43 col1
----
1

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT 84 / 43 col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT - MAX( DISTINCT + 15 ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-5666
SELECT - MAX ( DISTINCT + 15 ) AS col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5667
SELECT 23 * + - 62 / CASE + NULLIF ( 44, + + 75 ) WHEN - - ( - COUNT( * ) ) THEN + CAST( NULL AS DECIMAL ) ELSE NULL END * - - 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT 23 * + - 62 / CASE + NULLIF ( 44, + + 75 ) WHEN - - ( - COUNT ( * ) ) THEN + CAST ( NULL AS REAL ) ELSE NULL END * - - 27 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5668
SELECT ALL COUNT( * ) DIV - 47 + 69 AS col0, + 45 AS col1
----
69
45

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL COUNT ( * ) / - 47 + 69 AS col0, + 45 AS col1
----
69
45

onlyif mysql # aggregate syntax: 
query II rowsort label-5669
SELECT DISTINCT - + NULLIF ( - 15, COUNT( * ) ) AS col2, SUM( DISTINCT + - 45 ) * - 33 + 79 AS col2
----
15
1564

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT - + NULLIF ( - 15, COUNT ( * ) ) AS col2, SUM ( DISTINCT + - 45 ) * - 33 + 79 AS col2
----
15
1564

query I rowsort
SELECT 26 + + - 59 AS col0
----
-33

query I rowsort
SELECT - ( - - 77 ) * 92
----
-7084

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT ALL + 11 DIV 19
----
0

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL + 11 / 19
----
0

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

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

query I rowsort
SELECT + 52 * + ( - 76 ) * - + COALESCE ( ( 28 ), + 19, - + 75 ) + - 27 * - 0 AS col2
----
110656

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

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

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

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

query II rowsort
SELECT - 60 AS col1, + 52
----
-60
52

query I rowsort
SELECT ALL + + 49 + - 21
----
28

query II rowsort
SELECT - 94, + 17 AS col2
----
-94
17

query I rowsort
SELECT 72 * + 35
----
2520

query II rowsort
SELECT - 78, 22 AS col2
----
-78
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT ALL 71 + COUNT( * ) * 21 * - ( - CAST( NULL AS SIGNED ) ) + NULLIF ( 52, - ( - - 23 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL 71 + COUNT ( * ) * 21 * - ( - CAST ( NULL AS INTEGER ) ) + NULLIF ( 52, - ( - - 23 ) ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5684
SELECT 5 - + 39 + + 3 * CASE + 48 WHEN 68 + CAST( NULL AS SIGNED ) * + 91 + COUNT( * ) THEN CAST( NULL AS SIGNED ) ELSE CAST( NULL AS SIGNED ) + 23 + - ( + 48 ) / 98 * + + 50 + 68 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5684
SELECT 5 - + 39 + + 3 * CASE + 48 WHEN 68 + CAST ( NULL AS INTEGER ) * + 91 + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) ELSE CAST ( NULL AS INTEGER ) + 23 + - ( + 48 ) / 98 * + + 50 + 68 END AS col1
----
NULL

query I rowsort
SELECT 87 * - 2 col1
----
-174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) + - 35 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) + - 35 AS col2
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT DISTINCT - 58 DIV - 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT - 58 / - 98 col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5688
SELECT ALL + 86 + - 89 + - 85 + + 80 DIV + 38
----
-86

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL + 86 + - 89 + - 85 + + 80 / + 38
----
-86

query I rowsort
SELECT 87 - + + 30
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-5690
SELECT DISTINCT 82 * + 70, 54 * + COALESCE ( 81, 99, MIN( ALL + - 28 ) ) col2
----
5740
4374

skipif mysql # not compatible
query II rowsort label-5690
SELECT DISTINCT 82 * + 70, 54 * + COALESCE ( 81, 99, MIN ( ALL + - 28 ) ) col2
----
5740
4374

onlyif mysql # DIV for integer division: 
query I rowsort label-5691
SELECT 96 DIV + + ( + 30 )
----
3

skipif mysql # not compatible
query I rowsort label-5691
SELECT 96 / + + ( + 30 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT 3 * - 79 * + COALESCE ( - COUNT( * ), - 53 ) * COUNT( DISTINCT + 42 ) AS col1
----
237

skipif mysql # not compatible
query I rowsort label-5692
SELECT 3 * - 79 * + COALESCE ( - COUNT ( * ), - 53 ) * COUNT ( DISTINCT + 42 ) AS col1
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ( COUNT( * ) ) * - 88 + 69 col0
----
-19

skipif mysql # not compatible
query I rowsort label-5693
SELECT ( COUNT ( * ) ) * - 88 + 69 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT - COUNT( * ) * + 89 - 57 AS col1
----
-146

skipif mysql # not compatible
query I rowsort label-5694
SELECT - COUNT ( * ) * + 89 - 57 AS col1
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL - CASE - - 26 WHEN 96 * - + 95 - - + NULLIF ( COALESCE ( + COUNT( * ), + + 75, + 60 * + 2 + COUNT( * ) / - 84 - 90 + - 46 ), - + CAST( NULL AS SIGNED ) - 4 ) - - 43 THEN NULL ELSE - 44 END col0
----
44

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL - CASE - - 26 WHEN 96 * - + 95 - - + NULLIF ( COALESCE ( + COUNT ( * ), + + 75, + 60 * + 2 + COUNT ( * ) / - 84 - 90 + - 46 ), - + CAST ( NULL AS INTEGER ) - 4 ) - - 43 THEN NULL ELSE - 44 END col0
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5696
SELECT ALL 39 * + - 91 * + + 8 * COALESCE ( + 74, + 66 * 34 DIV - - SUM( DISTINCT 84 ) ) * + 24 AS col2
----
-50424192

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL 39 * + - 91 * + + 8 * COALESCE ( + 74, + 66 * 34 / - - SUM ( DISTINCT 84 ) ) * + 24 AS col2
----
-50424192

query II rowsort
SELECT 2 * - COALESCE ( + - 15, + ( 55 ), - 25 + - 38 ) AS col1, ( - + 19 )
----
30
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5698
SELECT ALL - ( CASE - - COUNT( * ) WHEN 35 + MAX( DISTINCT - 16 ) + + 16 * 21 * + NULLIF ( 5, COALESCE ( + 89, CAST( NULL AS SIGNED ), + + 69 ) ) THEN - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL - ( CASE - - COUNT ( * ) WHEN 35 + MAX ( DISTINCT - 16 ) + + 16 * 21 * + NULLIF ( 5, COALESCE ( + 89, CAST ( NULL AS INTEGER ), + + 69 ) ) THEN - COUNT ( * ) END )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 60, - 57 + 79 * - - 83 * 52 * ( + 19 ) ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5700
SELECT 88 * - - COUNT( * ) + - - COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-5700
SELECT 88 * - - COUNT ( * ) + - - COUNT ( * )
----
89

query I rowsort
SELECT 2 * + + 29 + - - 48 + - - 23 + - 49 + + ( 14 ) * - 18 * - CASE + + 47 WHEN - 77 THEN 56 ELSE NULL END AS col2
----
NULL

query II rowsort
SELECT COALESCE ( 12, - 27, + 19 ), 80 AS col0
----
12
80

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

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

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

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

query I rowsort
SELECT DISTINCT 57 * - - 62 AS col1
----
3534

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT + 36 DIV - + 78
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT + 36 / - + 78
----
0

query I rowsort
SELECT ALL 75 + - 60 * 58 - + + 0
----
-3405

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT 41 DIV - ( - ( - 58 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT 41 / - ( - ( - 58 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL 42 + - - COUNT( * ) + - 92
----
-49

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL 42 + - - COUNT ( * ) + - 92
----
-49

query I rowsort
SELECT - 96 * + 59 * 13 + - + ( - 7 ) * - + 53
----
-74003

query II rowsort
SELECT ( 98 ) AS col0, 75
----
98
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT + NULLIF ( - SUM( ALL - 48 ), - + 14 + 58 + + 87 / - - 2 ) + - 16
----
32

skipif mysql # not compatible
query I rowsort label-5713
SELECT + NULLIF ( - SUM ( ALL - 48 ), - + 14 + 58 + + 87 / - - 2 ) + - 16
----
32

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

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

query I rowsort
SELECT 20 + + 45 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT + 8 - - + MIN( 6 )
----
14

skipif mysql # not compatible
query I rowsort label-5716
SELECT + 8 - - + MIN ( 6 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5717
SELECT DISTINCT + 63 + - CASE 76 WHEN - 99 * COUNT( * ) THEN + CASE - COUNT( + - 74 ) WHEN - CAST( NULL AS DECIMAL ) THEN NULL WHEN + 60 THEN + 73 + + 1 + - COUNT( * ) END * + ( - AVG ( ALL + 23 ) ) * + AVG ( 49 ) WHEN + 25 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT + 63 + - CASE 76 WHEN - 99 * COUNT ( * ) THEN + CASE - COUNT ( + - 74 ) WHEN - CAST ( NULL AS REAL ) THEN NULL WHEN + 60 THEN + 73 + + 1 + - COUNT ( * ) END * + ( - AVG ( ALL + 23 ) ) * + AVG ( 49 ) WHEN + 25 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 77 * - - 83
----
6391

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5720
SELECT + ( + CAST( 8 AS SIGNED ) ) + - 18 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-5720
SELECT + ( + CAST ( 8 AS INTEGER ) ) + - 18 AS col0
----
-10

query I rowsort
SELECT ALL 6 * + - 34
----
-204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5722
SELECT + COUNT( * ) + + 14 - - CAST( NULL AS SIGNED ) AS col0, + 74 * COUNT( * ) * - 0 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-5722
SELECT + COUNT ( * ) + + 14 - - CAST ( NULL AS INTEGER ) AS col0, + 74 * COUNT ( * ) * - 0 AS col2
----
NULL
0

query I rowsort
SELECT DISTINCT 41 * + - 18 * + 49
----
-36162

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT 94 AS col1, - COUNT( * ) * - 79 AS col2
----
94
79

skipif mysql # not compatible
query II rowsort label-5724
SELECT 94 AS col1, - COUNT ( * ) * - 79 AS col2
----
94
79

query I rowsort
SELECT + 70 + 64
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT - 87 * + MIN( + 42 ) AS col0, - 94 + + 60 + + COUNT( * )
----
-3654
-33

skipif mysql # not compatible
query II rowsort label-5726
SELECT - 87 * + MIN ( + 42 ) AS col0, - 94 + + 60 + + COUNT ( * )
----
-3654
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT - 64 + + + SUM( - 11 ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 64 + + + SUM ( - 11 ) AS col0
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5728
SELECT DISTINCT + ( MIN( DISTINCT + 8 ) ) * 89 * 87 * - 36 + NULLIF ( 55, 71 ) DIV 86
----
-2229984

skipif mysql # not compatible
query I rowsort label-5728
SELECT DISTINCT + ( MIN ( DISTINCT + 8 ) ) * 89 * 87 * - 36 + NULLIF ( 55, 71 ) / 86
----
-2229984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5729
SELECT COALESCE ( - COUNT( * ), + 36 + - CAST( 68 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5729
SELECT COALESCE ( - COUNT ( * ), + 36 + - CAST ( 68 AS INTEGER ) )
----
-1

query I rowsort
SELECT - 21 * 26
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5731
SELECT CAST( - NULLIF ( + - CASE 99 WHEN + 47 + - 82 THEN - COUNT( * ) END, CAST( - 69 AS DECIMAL ) * - + COUNT( * ) / + 31 + + 2 * + + 76 + - 69 + + 3 + 17 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT CAST ( - NULLIF ( + - CASE 99 WHEN + 47 + - 82 THEN - COUNT ( * ) END, CAST ( - 69 AS REAL ) * - + COUNT ( * ) / + 31 + + 2 * + + 76 + - 69 + + 3 + 17 ) AS INTEGER )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - COUNT( * ) * + + ( + 94 ) * + 80
----
-7520

skipif mysql # not compatible
query I rowsort label-5733
SELECT - COUNT ( * ) * + + ( + 94 ) * + 80
----
-7520

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL + COUNT( 81 ) * 10 + - COUNT( * )
----
9

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL + COUNT ( 81 ) * 10 + - COUNT ( * )
----
9

query I rowsort
SELECT DISTINCT - 53 * - 72 + - 23 + + 47
----
3840

query I rowsort
SELECT DISTINCT + COALESCE ( + - 13, + - 96, 16 ) col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5737
SELECT DISTINCT + 83 * - 4 + - 52 + - 6 - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT + 83 * - 4 + - 52 + - 6 - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT + 6 AS col2, + 27 AS col0
----
6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - - 48 * + + COALESCE ( 9, + COUNT( * ) ) AS col0
----
432

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - 48 * + + COALESCE ( 9, + COUNT ( * ) ) AS col0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT - - ( - 3 ) + - ( - 79 ) * - + MAX( + - 41 ) AS col2
----
3236

skipif mysql # not compatible
query I rowsort label-5740
SELECT - - ( - 3 ) + - ( - 79 ) * - + MAX ( + - 41 ) AS col2
----
3236

query I rowsort
SELECT DISTINCT + - 52 * - 93 col0
----
4836

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL + COALESCE ( 51, 55 * - COALESCE ( - 91, + + COUNT( * ) ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL + COALESCE ( 51, 55 * - COALESCE ( - 91, + + COUNT ( * ) ) ) AS col1
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT + SUM( ALL + 45 ) + + 4 * + - CASE + 43 WHEN + + 15 THEN - 68 ELSE - 82 END AS col2
----
373

skipif mysql # not compatible
query I rowsort label-5744
SELECT + SUM ( ALL + 45 ) + + 4 * + - CASE + 43 WHEN + + 15 THEN - 68 ELSE - 82 END AS col2
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT - COUNT( * ) * + NULLIF ( - 33, 50 )
----
33

skipif mysql # not compatible
query I rowsort label-5745
SELECT - COUNT ( * ) * + NULLIF ( - 33, 50 )
----
33

query I rowsort
SELECT DISTINCT + - 60 * + 28 AS col1
----
-1680

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5749
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + CASE - - 37 WHEN + 8 THEN NULL WHEN + COUNT( * ) THEN - - 37 * SUM( ALL + 30 ) + 25 END col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5749
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + CASE - - 37 WHEN + 8 THEN NULL WHEN + COUNT ( * ) THEN - - 37 * SUM ( ALL + 30 ) + 25 END col0
----
NULL
NULL

query I rowsort
SELECT - NULLIF ( - + 6, - 39 * + + ( - 72 ) / 1 + 93 ) AS col1
----
6

query I rowsort
SELECT - ( 9 ) - - 55
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT + 88 DIV + + ( - 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-5752
SELECT + 88 / + + ( - 50 )
----
-1

query I rowsort
SELECT ALL CASE 43 WHEN 53 THEN - 28 ELSE NULL END / + 53 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5754
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-5754
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER )
----
-1
NULL

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

query I rowsort
SELECT ALL 46 * - 43
----
-1978

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT + 52 DIV - COALESCE ( + ( 69 ), + 73, 31 DIV + 62 * MAX( 33 ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT + 52 / - COALESCE ( + ( 69 ), + 73, 31 / + 62 * MAX ( 33 ) ) col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5758
SELECT ALL - 14 DIV - NULLIF ( 51, + 92 + - + 2 + - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-5758
SELECT ALL - 14 / - NULLIF ( 51, + 92 + - + 2 + - 72 )
----
0

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

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

query I rowsort
SELECT + 28 - - - 72 * - 71
----
5140

onlyif mysql # aggregate syntax: 
query II rowsort label-5761
SELECT ALL NULLIF ( - 71, - - 97 ) * + NULLIF ( - MIN( ALL - + 42 ), 44 + + + 30 + 20 ), COALESCE ( - 16, + 6, + 32 * + 33 ) AS col1
----
-2982
-16

skipif mysql # not compatible
query II rowsort label-5761
SELECT ALL NULLIF ( - 71, - - 97 ) * + NULLIF ( - MIN ( ALL - + 42 ), 44 + + + 30 + 20 ), COALESCE ( - 16, + 6, + 32 * + 33 ) AS col1
----
-2982
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT MIN( ALL - 96 ) * + - 61 AS col2
----
5856

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT MIN ( ALL - 96 ) * + - 61 AS col2
----
5856

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

query II rowsort
SELECT 82 AS col1, 64
----
82
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT ALL CASE + 97 WHEN + 25 THEN NULL WHEN - + 15 THEN - 21 DIV - 13 * + 62 ELSE - ( 91 ) END * - 23 AS col0
----
2093

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL CASE + 97 WHEN + 25 THEN NULL WHEN - + 15 THEN - 21 / - 13 * + 62 ELSE - ( 91 ) END * - 23 AS col0
----
2093

query II rowsort
SELECT 52 AS col2, + 62 AS col2
----
52
62

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5768
SELECT ALL + - 8 AS col1, - 75 - - + COALESCE ( - COUNT( * ), + MAX( - 69 ), 2, + - 66 * 24 * + ( + 1 ) + - - 96 * + COUNT( * ) ) AS col0
----
-8
-76

skipif mysql # not compatible
query II rowsort label-5768
SELECT ALL + - 8 AS col1, - 75 - - + COALESCE ( - COUNT ( * ), + MAX ( - 69 ), 2, + - 66 * 24 * + ( + 1 ) + - - 96 * + COUNT ( * ) ) AS col0
----
-8
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5769
SELECT DISTINCT - 65 / + + NULLIF ( + - 72, + + 92 * - 23 * - COUNT( * ) - - MAX( + 21 ) / + NULLIF ( + + 11, 45 + - 89 / + + 63 ) ) * - 94 * - 77 + - 25 * - 2 * + MAX( ALL - 7 ) + + NULLIF ( + + 5, + CAST( NULL AS SIGNED ) / - + 5 ) * + 4 * - CASE + 60 WHEN + - MAX( ALL + 91 ) - + 66 THEN NULL WHEN COALESCE ( + - 97, + 48 * - COALESCE ( + 10 * + 39, ( 79 ) * - 11, 64 ), - CAST( - 45 AS SIGNED ) / - COUNT( * ) ) + CAST( 50 + 40 * - 94 AS SIGNED ) THEN 43 END * 65 + 79 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT - 65 / + + NULLIF ( + - 72, + + 92 * - 23 * - COUNT ( * ) - - MAX ( + 21 ) / + NULLIF ( + + 11, 45 + - 89 / + + 63 ) ) * - 94 * - 77 + - 25 * - 2 * + MAX ( ALL - 7 ) + + NULLIF ( + + 5, + CAST ( NULL AS INTEGER ) / - + 5 ) * + 4 * - CASE + 60 WHEN + - MAX ( ALL + 91 ) - + 66 THEN NULL WHEN COALESCE ( + - 97, + 48 * - COALESCE ( + 10 * + 39, ( 79 ) * - 11, 64 ), - CAST ( - 45 AS INTEGER ) / - COUNT ( * ) ) + CAST ( 50 + 40 * - 94 AS INTEGER ) THEN 43 END * 65 + 79 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT - + 8 / + COALESCE ( + 3, + - COUNT( * ) / + CAST( NULL AS SIGNED ) + - + 76 ) + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5770
SELECT - + 8 / + COALESCE ( + 3, + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - + 76 ) + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 52 * - 57
----
-2964

onlyif mysql # DIV for integer division: 
query I rowsort label-5772
SELECT + 91 DIV - 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5772
SELECT + 91 / - 94 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5773
SELECT ALL 42 DIV - + 28 + - 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL 42 / - + 28 + - 85 AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5774
SELECT ALL - MIN( - 14 ) DIV NULLIF ( 50, + + 78 ) + + + COUNT( * ) - - 36
----
37

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - MIN ( - 14 ) / NULLIF ( 50, + + 78 ) + + + COUNT ( * ) - - 36
----
37

query I rowsort
SELECT + + 38 * 13
----
494

onlyif mysql # DIV for integer division: 
query I rowsort label-5776
SELECT DISTINCT - - 89 DIV 19 + 42 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-5776
SELECT DISTINCT - - 89 / 19 + 42 AS col0
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5777
SELECT ALL 63 DIV - 18 + 79 * - 57 - CASE WHEN NULL IS NULL THEN + 22 ELSE NULL END DIV + + COALESCE ( - 7, + 79 + + + 79, + + 7 * + COUNT( * ) )
----
-4503

skipif mysql # not compatible
query I rowsort label-5777
SELECT ALL 63 / - 18 + 79 * - 57 - CASE WHEN NULL IS NULL THEN + 22 ELSE NULL END / + + COALESCE ( - 7, + 79 + + + 79, + + 7 * + COUNT ( * ) )
----
-4503

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5778
SELECT + + ( - 72 ) * - NULLIF ( + 87, 61 ) * + + 43 + + COUNT( * ) + + 4 + - 30 DIV - 50
----
269357

skipif mysql # not compatible
query I rowsort label-5778
SELECT + + ( - 72 ) * - NULLIF ( + 87, 61 ) * + + 43 + + COUNT ( * ) + + 4 + - 30 / - 50
----
269357

query I rowsort
SELECT + 94 + 48 col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT - 77 * - - NULLIF ( - - 60, - - 76 ) * COUNT( * ) + - + 91 + - 67 + 64 AS col1
----
-4714

skipif mysql # not compatible
query I rowsort label-5780
SELECT - 77 * - - NULLIF ( - - 60, - - 76 ) * COUNT ( * ) + - + 91 + - 67 + 64 AS col1
----
-4714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5781
SELECT 11 * 35 - - 23 + + 68 + + COUNT( * ) + 7 DIV 54 DIV 95 * 96 * 95 DIV + 93 * + + 33
----
477

skipif mysql # not compatible
query I rowsort label-5781
SELECT 11 * 35 - - 23 + + 68 + + COUNT ( * ) + 7 / 54 / 95 * 96 * 95 / + 93 * + + 33
----
477

query II rowsort
SELECT DISTINCT - 78 AS col2, - 31
----
-78
-31

query II rowsort
SELECT - 86 AS col2, + 2 AS col1
----
-86
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5784
SELECT ALL - + 87 AS col1, NULLIF ( 62, - - CASE + 60 WHEN - + NULLIF ( - CAST( NULL AS SIGNED ), 41 / + 23 ) THEN + + ( + 66 ) / 76 + - 21 * + 15 WHEN + ( - + COUNT( * ) ) * - - COALESCE ( - 70, MAX( + ( - 0 ) ) / + ( 12 ), + + 80 * + 81 + - + ( + + ( + 38 ) ) ) THEN NULL ELSE + + ( + 93 ) END - 52 )
----
-87
62

skipif mysql # not compatible
query II rowsort label-5784
SELECT ALL - + 87 AS col1, NULLIF ( 62, - - CASE + 60 WHEN - + NULLIF ( - CAST ( NULL AS INTEGER ), 41 / + 23 ) THEN + + ( + 66 ) / 76 + - 21 * + 15 WHEN + ( - + COUNT ( * ) ) * - - COALESCE ( - 70, MAX ( + ( - 0 ) ) / + ( 12 ), + + 80 * + 81 + - + ( + + ( + 38 ) ) ) THEN NULL ELSE + + ( + 93 ) END - 52 )
----
-87
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT + 57 + 85 * + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-5785
SELECT + 57 + 85 * + COUNT ( * )
----
142

query II rowsort
SELECT ALL - 18 - - 62 AS col0, - 70 + - ( 47 ) AS col1
----
44
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-5787
SELECT 3 * + 20, 15 * - COUNT( * ) AS col2
----
60
-15

skipif mysql # not compatible
query II rowsort label-5787
SELECT 3 * + 20, 15 * - COUNT ( * ) AS col2
----
60
-15

query II rowsort
SELECT 77 + 45 * + + 26, - 79 + - 18 col0
----
1247
-97

query I rowsort
SELECT 12 - - 35
----
47

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

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

query I rowsort
SELECT ALL + 28 * - 60 AS col1
----
-1680

query I rowsort
SELECT 93 * + 81 * - + 55
----
-414315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5793
SELECT DISTINCT + 1 * 2 / - CASE - - 16 WHEN 80 THEN + + 90 * - + 49 ELSE NULL END * - + COUNT( * ) / + 67 + - COUNT( * ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT + 1 * 2 / - CASE - - 16 WHEN 80 THEN + + 90 * - + 49 ELSE NULL END * - + COUNT ( * ) / + 67 + - COUNT ( * ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 28 * - 91
----
-2548

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5795
SELECT COUNT( * ) + - + 51 + - - CAST( NULL AS DECIMAL ) col0, + 37
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5795
SELECT COUNT ( * ) + - + 51 + - - CAST ( NULL AS REAL ) col0, + 37
----
NULL
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT - 10 * SUM( - ( 72 ) ) AS col0
----
720

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT - 10 * SUM ( - ( 72 ) ) AS col0
----
720

query I rowsort
SELECT 95 * + 16
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-5798
SELECT COUNT( * ) + - ( - 24 ) * + + 65 + - 55
----
1506

skipif mysql # not compatible
query I rowsort label-5798
SELECT COUNT ( * ) + - ( - 24 ) * + + 65 + - 55
----
1506

query I rowsort
SELECT 21 * + 86
----
1806

query I rowsort
SELECT ALL 19 + - 15 + 3
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5801
SELECT DISTINCT COUNT( * ) * - 63 + + ( - 3 ) + + + 20 DIV + 58
----
-66

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT COUNT ( * ) * - 63 + + ( - 3 ) + + + 20 / + 58
----
-66

query I rowsort
SELECT ALL - + ( 13 ) + - 1 col1
----
-14

query II rowsort
SELECT 67 / + 20 + + CASE - 0 WHEN + 34 THEN + 56 END * + + 66 / 16 AS col2, 28
----
NULL
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5804
SELECT ALL - NULLIF ( - 38, 53 ) + - CAST( NULL AS SIGNED ) * + + AVG ( + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT ALL - NULLIF ( - 38, 53 ) + - CAST ( NULL AS INTEGER ) * + + AVG ( + 71 ) AS col0
----
NULL

query I rowsort
SELECT + CASE + - 59 WHEN + 82 * - - ( - + 49 ) / 62 + 29 + - + 54 THEN 36 ELSE - + 51 - - - 10 END AS col1
----
-61

query I rowsort
SELECT 46 + + + 40
----
86

query I rowsort
SELECT DISTINCT - 70 * + 16 AS col0
----
-1120

query I rowsort
SELECT 95 - + 59 * + 2 * - + 69 + 65
----
8302

onlyif mysql # aggregate syntax: 
query I rowsort label-5809
SELECT - 52 * + SUM( - 59 )
----
3068

skipif mysql # not compatible
query I rowsort label-5809
SELECT - 52 * + SUM ( - 59 )
----
3068

query I rowsort
SELECT DISTINCT - 10 * - 57 + + 82 AS col2
----
652

onlyif mysql # aggregate syntax: 
query II rowsort label-5811
SELECT ALL - + COUNT( + 18 ), + 99 * - + 64 AS col2
----
-1
-6336

skipif mysql # not compatible
query II rowsort label-5811
SELECT ALL - + COUNT ( + 18 ), + 99 * - + 64 AS col2
----
-1
-6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5812
SELECT + - 66 * - - 17 * + CASE - CAST( NULL AS SIGNED ) WHEN - 97 THEN - - 89 DIV + + 93 ELSE ( 60 ) * ( - COUNT( * ) ) + - + 32 + - 46 END + - 92 * 32 AS col1, + 59
----
151892
59

skipif mysql # not compatible
query II rowsort label-5812
SELECT + - 66 * - - 17 * + CASE - CAST ( NULL AS INTEGER ) WHEN - 97 THEN - - 89 / + + 93 ELSE ( 60 ) * ( - COUNT ( * ) ) + - + 32 + - 46 END + - 92 * 32 AS col1, + 59
----
151892
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT ALL - 27 DIV + ( + 60 ) - - COUNT( * ) AS col1
----
1

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

query I rowsort
SELECT - 54 * + 13
----
-702

query I rowsort
SELECT DISTINCT 18 * + 89 col1
----
1602

query II rowsort
SELECT + 76 AS col1, - 32 AS col2
----
76
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5817
SELECT 12 + 48 DIV + - ( 26 ) + - NULLIF ( - 99, + + CAST( - 96 AS SIGNED ) - 84 + - - 17 ) AS col1
----
110

skipif mysql # not compatible
query I rowsort label-5817
SELECT 12 + 48 / + - ( 26 ) + - NULLIF ( - 99, + + CAST ( - 96 AS INTEGER ) - 84 + - - 17 ) AS col1
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-5818
SELECT 16 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-5818
SELECT 16 / + 78
----
0

query I rowsort
SELECT 86 * + - 61 AS col0
----
-5246

query I rowsort
SELECT DISTINCT 82 * 13
----
1066

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

skipif mysql # not compatible
query I rowsort label-5821
SELECT COUNT ( * ) / 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5822
SELECT DISTINCT MIN( 31 ) * + 94 AS col1, MAX( DISTINCT 19 ) col0
----
2914
19

skipif mysql # not compatible
query II rowsort label-5822
SELECT DISTINCT MIN ( 31 ) * + 94 AS col1, MAX ( DISTINCT 19 ) col0
----
2914
19

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT 21 + 98 + + 13 * + - 55 AS col0, COUNT( * ) col2
----
-596
1

skipif mysql # not compatible
query II rowsort label-5824
SELECT 21 + 98 + + 13 * + - 55 AS col0, COUNT ( * ) col2
----
-596
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5825
SELECT DISTINCT - MAX( ALL 9 ) + 2 - + + 14 * + 97 * COUNT( * ) * + 88 + 60 + + CAST( 88 AS SIGNED )
----
-119363

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT - MAX ( ALL 9 ) + 2 - + + 14 * + 97 * COUNT ( * ) * + 88 + 60 + + CAST ( 88 AS INTEGER )
----
-119363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5826
SELECT - CAST( NULL AS SIGNED ) - 96 - - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT - CAST ( NULL AS INTEGER ) - 96 - - 76
----
NULL

query I rowsort
SELECT ALL - 32 + 31 * - 52 AS col1
----
-1644

query I rowsort
SELECT - 53 + - ( + 55 ) * + 11 AS col1
----
-658

query I rowsort
SELECT CASE - 51 WHEN + 46 THEN + AVG ( DISTINCT - 15 ) * + 49 * + 76 ELSE + - 45 END
----
-45

query I rowsort
SELECT + 36 * + - 53
----
-1908

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5832
SELECT 10 + + 99 + 95 + - + 11 * + - COUNT( * ) DIV + 70 + - 71 AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5832
SELECT 10 + + 99 + 95 + - + 11 * + - COUNT ( * ) / + 70 + - 71 AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT - - 11 * + CASE - - 1 WHEN + 14 + + 55 + COALESCE ( 97, + - 46 - - 25 + + 28 * - 19 * + - COUNT( * ), 14 * + + CASE - NULLIF ( - 73, - 52 * - 27 + - COALESCE ( + 9, - 20 - + 56 ) ) WHEN - + 62 THEN - 61 + + + 41 * - + 38 - + AVG ( - 98 ) * - 92 WHEN + 69 * - 29 + + COALESCE ( + 59, + 94 ) THEN SUM( ALL 75 ) ELSE NULL END * 61 + 29, 57 * 9 ) - + ( 1 ) THEN + 59 - 42 WHEN - 29 THEN + 52 END / + ( MAX( DISTINCT 86 ) * - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT - - 11 * + CASE - - 1 WHEN + 14 + + 55 + COALESCE ( 97, + - 46 - - 25 + + 28 * - 19 * + - COUNT ( * ), 14 * + + CASE - NULLIF ( - 73, - 52 * - 27 + - COALESCE ( + 9, - 20 - + 56 ) ) WHEN - + 62 THEN - 61 + + + 41 * - + 38 - + AVG ( - 98 ) * - 92 WHEN + 69 * - 29 + + COALESCE ( + 59, + 94 ) THEN SUM ( ALL 75 ) ELSE NULL END * 61 + 29, 57 * 9 ) - + ( 1 ) THEN + 59 - 42 WHEN - 29 THEN + 52 END / + ( MAX ( DISTINCT 86 ) * - 51 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL NULLIF ( + - COUNT ( * ), + COUNT ( * ) ) * + + 24
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5835
SELECT DISTINCT + CASE - 93 WHEN 70 THEN 87 ELSE - + 23 * - 67 * + 19 END * + 42 - 44 + + CAST( NULL AS DECIMAL ) * + 66 - + - 53 / 94 + - 33 AS col1, + 36 AS col2
----
NULL
36

skipif mysql # not compatible
query II rowsort label-5835
SELECT DISTINCT + CASE - 93 WHEN 70 THEN 87 ELSE - + 23 * - 67 * + 19 END * + 42 - 44 + + CAST ( NULL AS REAL ) * + 66 - + - 53 / 94 + - 33 AS col1, + 36 AS col2
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5836
SELECT + - 76 * MAX( + - 89 ) + + NULLIF ( 40, - - 58 * + CAST( NULL AS SIGNED ) / 59 - - 21 + - + 58 * + - 39 - - 12 * + + 12 + 42 * 94 * + CASE + 29 WHEN + CASE 5 WHEN + SUM( ALL + - 21 ) * - - 39 / + COUNT( * ) THEN 59 / + - 74 / - - 18 END THEN NULL WHEN + 4 THEN + 8 - - 28 WHEN - + 61 THEN + - 23 END * + COUNT( + 57 ) + - ( 73 ) * 83 + - 24 ) + 56 * 57
----
9996

skipif mysql # not compatible
query I rowsort label-5836
SELECT + - 76 * MAX ( + - 89 ) + + NULLIF ( 40, - - 58 * + CAST ( NULL AS INTEGER ) / 59 - - 21 + - + 58 * + - 39 - - 12 * + + 12 + 42 * 94 * + CASE + 29 WHEN + CASE 5 WHEN + SUM ( ALL + - 21 ) * - - 39 / + COUNT ( * ) THEN 59 / + - 74 / - - 18 END THEN NULL WHEN + 4 THEN + 8 - - 28 WHEN - + 61 THEN + - 23 END * + COUNT ( + 57 ) + - ( 73 ) * 83 + - 24 ) + 56 * 57
----
9996

query I rowsort
SELECT - 83 * - 8 AS col2
----
664

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT + 52 * + NULLIF ( COUNT( * ), - 18 ) col1
----
52

skipif mysql # not compatible
query I rowsort label-5838
SELECT + 52 * + NULLIF ( COUNT ( * ), - 18 ) col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT - + COUNT( DISTINCT + 21 ) + - - 71
----
70

skipif mysql # not compatible
query I rowsort label-5839
SELECT - + COUNT ( DISTINCT + 21 ) + - - 71
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5840
SELECT + + CASE + 53 WHEN - - 29 / - 35 + - - 62 THEN + + 6 WHEN + 95 * + + CASE + - 13 WHEN + - 58 THEN NULL WHEN + 1 * + 49 * - 21 + + SUM( ALL + + 26 ) THEN - - 53 WHEN + 29 + 50 THEN + 31 - - COUNT( DISTINCT 94 ) ELSE 6 * - + 60 + - AVG ( + 99 ) / + 95 - + + COUNT( * ) * + - 15 + + MIN( 10 ) END * - 36 + COUNT( * ) * 86 THEN NULL ELSE 83 + 28 END AS col2
----
111

skipif mysql # not compatible
query I rowsort label-5840
SELECT + + CASE + 53 WHEN - - 29 / - 35 + - - 62 THEN + + 6 WHEN + 95 * + + CASE + - 13 WHEN + - 58 THEN NULL WHEN + 1 * + 49 * - 21 + + SUM ( ALL + + 26 ) THEN - - 53 WHEN + 29 + 50 THEN + 31 - - COUNT ( DISTINCT 94 ) ELSE 6 * - + 60 + - AVG ( + 99 ) / + 95 - + + COUNT ( * ) * + - 15 + + MIN ( 10 ) END * - 36 + COUNT ( * ) * 86 THEN NULL ELSE 83 + 28 END AS col2
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-5841
SELECT SUM( + 25 ), - 92 AS col2
----
25
-92

skipif mysql # not compatible
query II rowsort label-5841
SELECT SUM ( + 25 ), - 92 AS col2
----
25
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5842
SELECT + 73 * 74 / - CAST( NULL AS DECIMAL ) + - - 50 * + + 27 - - - COUNT( * ) - - 7 / 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5842
SELECT + 73 * 74 / - CAST ( NULL AS REAL ) + - - 50 * + + 27 - - - COUNT ( * ) - - 7 / 82
----
NULL

query I rowsort
SELECT + 35 * + COALESCE ( + 37, - + 89 ) AS col2
----
1295

query I rowsort
SELECT ALL - 28 * + 87 AS col1
----
-2436

onlyif mysql # aggregate syntax: 
query II rowsort label-5845
SELECT 55 * + 47 - ( ( - COUNT( * ) ) ) AS col1, 52 AS col0
----
2586
52

skipif mysql # not compatible
query II rowsort label-5845
SELECT 55 * + 47 - ( ( - COUNT ( * ) ) ) AS col1, 52 AS col0
----
2586
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT ALL - 27 * + - 42 + - COUNT( * ) col0
----
1133

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL - 27 * + - 42 + - COUNT ( * ) col0
----
1133

query II rowsort
SELECT + 29 + - 10, + 12 AS col0
----
19
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - SUM( 39 ) * - COUNT( * ) - - 94 - + 17 + + 43 * + 39
----
1793

skipif mysql # not compatible
query I rowsort label-5849
SELECT - SUM ( 39 ) * - COUNT ( * ) - - 94 - + 17 + + 43 * + 39
----
1793

query I rowsort
SELECT + 5 + + + 81
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT COUNT( DISTINCT - ( - 28 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5851
SELECT COUNT ( DISTINCT - ( - 28 ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5852
SELECT + SUM( + - 84 ) + 16 * - CAST( NULL AS SIGNED ) + + 3 + 49 + - 51 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5852
SELECT + SUM ( + - 84 ) + 16 * - CAST ( NULL AS INTEGER ) + + 3 + 49 + - 51 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5853
SELECT - ( - NULLIF ( - + 89, + 27 * + 0 + + - COALESCE ( 84, - CASE + 79 WHEN + 63 / 47 * + + CASE + 41 WHEN + 45 THEN - + MAX( + 39 ) * + 53 WHEN - - CASE COALESCE ( 63, - - ( - 40 ) * - + 37 + + 76 + - CASE - 27 WHEN - - 86 * + ( 72 ) - + COALESCE ( - - 49, - + 1 * + 87, + 98, - 99 ) THEN NULL WHEN 3 THEN 33 * - ( COUNT( * ) ) ELSE NULL END - AVG ( 89 ) ) WHEN - 82 - 70 THEN 12 WHEN ( + CAST( NULL AS SIGNED ) ) * 58 + 77 THEN CASE - NULLIF ( + 27, - 9 - 71 ) WHEN 4 * 74 THEN - ( 47 ) * ( - COUNT( ALL + 67 ) ) + NULLIF ( - 56, - 29 ) * + 72 END ELSE NULL END THEN 29 ELSE NULL END THEN NULL WHEN ( - ( - CAST( + 25 AS SIGNED ) ) ) * + 26 THEN CAST( NULL AS SIGNED ) + 78 ELSE NULL END / ( - 53 / ( + 80 * COUNT( * ) ) ) + 91 / 70, 76 ) / 13 ) ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-5853
SELECT - ( - NULLIF ( - + 89, + 27 * + 0 + + - COALESCE ( 84, - CASE + 79 WHEN + 63 / 47 * + + CASE + 41 WHEN + 45 THEN - + MAX ( + 39 ) * + 53 WHEN - - CASE COALESCE ( 63, - - ( - 40 ) * - + 37 + + 76 + - CASE - 27 WHEN - - 86 * + ( 72 ) - + COALESCE ( - - 49, - + 1 * + 87, + 98, - 99 ) THEN NULL WHEN 3 THEN 33 * - ( COUNT ( * ) ) ELSE NULL END - AVG ( 89 ) ) WHEN - 82 - 70 THEN 12 WHEN ( + CAST ( NULL AS INTEGER ) ) * 58 + 77 THEN CASE - NULLIF ( + 27, - 9 - 71 ) WHEN 4 * 74 THEN - ( 47 ) * ( - COUNT ( ALL + 67 ) ) + NULLIF ( - 56, - 29 ) * + 72 END ELSE NULL END THEN 29 ELSE NULL END THEN NULL WHEN ( - ( - CAST ( + 25 AS INTEGER ) ) ) * + 26 THEN CAST ( NULL AS INTEGER ) + 78 ELSE NULL END / ( - 53 / ( + 80 * COUNT ( * ) ) ) + 91 / 70, 76 ) / 13 ) ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT DISTINCT COUNT( + 10 ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT COUNT ( + 10 ) + + 51
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5855
SELECT - CASE 15 WHEN - 93 THEN 84 * CASE + - NULLIF ( + 66, - + 14 ) WHEN + 18 THEN COUNT( DISTINCT - CAST( 25 AS SIGNED ) ) DIV + - ( - CAST( NULL AS SIGNED ) ) ELSE NULL END ELSE NULLIF ( + 98, + 72 ) END
----
-98

skipif mysql # not compatible
query I rowsort label-5855
SELECT - CASE 15 WHEN - 93 THEN 84 * CASE + - NULLIF ( + 66, - + 14 ) WHEN + 18 THEN COUNT ( DISTINCT - CAST ( 25 AS INTEGER ) ) / + - ( - CAST ( NULL AS INTEGER ) ) ELSE NULL END ELSE NULLIF ( + 98, + 72 ) END
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT ALL COUNT( * ) + - NULLIF ( - + 11, - + 10 ) * - 20 * - 92 col0
----
20241

skipif mysql # not compatible
query I rowsort label-5856
SELECT ALL COUNT ( * ) + - NULLIF ( - + 11, - + 10 ) * - 20 * - 92 col0
----
20241

query I rowsort
SELECT ALL - 66 + - 97
----
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT + 15 + - 28 AS col0, + 27 * + MAX( DISTINCT + 75 ) * - 53
----
-13
-107325

skipif mysql # not compatible
query II rowsort label-5858
SELECT + 15 + - 28 AS col0, + 27 * + MAX ( DISTINCT + 75 ) * - 53
----
-13
-107325

query I rowsort
SELECT ALL 21 * - 77
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT - CASE - 16 WHEN - 13 THEN - - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT - CASE - 16 WHEN - 13 THEN - - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - COUNT( DISTINCT - + 87 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5861
SELECT - COUNT ( DISTINCT - + 87 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5862
SELECT ALL - COUNT( - - 72 ) AS col0, 82 + ( + COUNT( * ) ) * - 36 + MAX( DISTINCT - 25 ) col0
----
-1
21

skipif mysql # not compatible
query II rowsort label-5862
SELECT ALL - COUNT ( - - 72 ) AS col0, 82 + ( + COUNT ( * ) ) * - 36 + MAX ( DISTINCT - 25 ) col0
----
-1
21

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

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

query I rowsort
SELECT - + 1 + - + 56 + - 74 AS col1
----
-131

query I rowsort
SELECT + 60 + + + 98 AS col0
----
158

query I rowsort
SELECT - 73 * - 72 AS col1
----
5256

query I rowsort
SELECT DISTINCT + 27 * 66
----
1782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5868
SELECT + + CASE + 89 WHEN + + 38 + - + NULLIF ( - + 6, + - MAX( DISTINCT + 27 ) * 90 ) + 13 + CAST( - 27 AS DECIMAL ) / 10 THEN 39 * COUNT( * ) + + 81 WHEN + 64 * + + COALESCE ( + 9, 26 ) THEN + + COALESCE ( + CAST( + 56 AS SIGNED ), 19 + CASE CAST( + + 97 AS SIGNED ) WHEN 35 THEN - 6 ELSE NULL END, - 36 ) * - - 99 * - 39 + 58 ELSE NULL END, - MIN( DISTINCT - + 37 ) * COUNT( * ) AS col0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5868
SELECT + + CASE + 89 WHEN + + 38 + - + NULLIF ( - + 6, + - MAX ( DISTINCT + 27 ) * 90 ) + 13 + CAST ( - 27 AS REAL ) / 10 THEN 39 * COUNT ( * ) + + 81 WHEN + 64 * + + COALESCE ( + 9, 26 ) THEN + + COALESCE ( + CAST ( + 56 AS INTEGER ), 19 + CASE CAST ( + + 97 AS INTEGER ) WHEN 35 THEN - 6 ELSE NULL END, - 36 ) * - - 99 * - 39 + 58 ELSE NULL END, - MIN ( DISTINCT - + 37 ) * COUNT ( * ) AS col0
----
NULL
37

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT - + 99 DIV - 92
----
1

skipif mysql # not compatible
query I rowsort label-5869
SELECT - + 99 / - 92
----
1

query I rowsort
SELECT - - 88 * + ( + ( + + 46 ) )
----
4048

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + COALESCE ( - + 77, + + 10, 95 * - - COUNT( * ) + - 87 * - 56 )
----
-77

skipif mysql # not compatible
query I rowsort label-5871
SELECT + COALESCE ( - + 77, + + 10, 95 * - - COUNT ( * ) + - 87 * - 56 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5872
SELECT - ( 13 ) DIV + 1
----
-13

skipif mysql # not compatible
query I rowsort label-5872
SELECT - ( 13 ) / + 1
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5873
SELECT ALL COUNT( * ) * + ( 91 ) + - ( COUNT( * ) ), 21 DIV + 51 * - SUM( DISTINCT 55 ) AS col2
----
90
0

skipif mysql # not compatible
query II rowsort label-5873
SELECT ALL COUNT ( * ) * + ( 91 ) + - ( COUNT ( * ) ), 21 / + 51 * - SUM ( DISTINCT 55 ) AS col2
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ALL - MAX( DISTINCT 72 ) * 52 * + 11 - - 84 + + 29 AS col1
----
-41071

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - MAX ( DISTINCT 72 ) * 52 * + 11 - - 84 + + 29 AS col1
----
-41071

query I rowsort
SELECT 60 * + 22 + 37 - - + 8 + + - 5 * - 66 * + ( + 6 ) + ( - - 26 ) + - + 19
----
3352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT ALL 63 * + NULLIF ( + CAST( NULL AS SIGNED ), + - COALESCE ( - 20, 38 * - + 89, + + 5 ) * + ( 62 ) * - COUNT( * ) * 2 - + - 70 * + 79 + - - 47 ) + - + CASE + + ( COUNT( * ) ) WHEN + 62 THEN - - MIN( 68 ) * - 42 * - + 95 - 10 * + + 5 + + ( - 37 ) * + 66 ELSE + + 10 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT ALL 63 * + NULLIF ( + CAST ( NULL AS INTEGER ), + - COALESCE ( - 20, 38 * - + 89, + + 5 ) * + ( 62 ) * - COUNT ( * ) * 2 - + - 70 * + 79 + - - 47 ) + - + CASE + + ( COUNT ( * ) ) WHEN + 62 THEN - - MIN ( 68 ) * - 42 * - + 95 - 10 * + + 5 + + ( - 37 ) * + 66 ELSE + + 10 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5877
SELECT ALL + CASE + 98 WHEN + CASE COUNT( * ) WHEN + - 71 DIV - + 44 THEN 67 END - + 61 THEN NULL WHEN + 8 THEN - + 33 * - + 89 ELSE + + 85 END DIV - COUNT( * ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL + CASE + 98 WHEN + CASE COUNT ( * ) WHEN + - 71 / - + 44 THEN 67 END - + 61 THEN NULL WHEN + 8 THEN - + 33 * - + 89 ELSE + + 85 END / - COUNT ( * ) AS col2
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5878
SELECT - CAST( NULL AS SIGNED ) / + CASE - CAST( NULL AS SIGNED ) WHEN - 60 THEN + 23 WHEN - SUM( ALL + 69 ) THEN NULL ELSE 40 * - 20 + - - 89 END * SUM( ALL 53 ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5878
SELECT - CAST ( NULL AS INTEGER ) / + CASE - CAST ( NULL AS INTEGER ) WHEN - 60 THEN + 23 WHEN - SUM ( ALL + 69 ) THEN NULL ELSE 40 * - 20 + - - 89 END * SUM ( ALL 53 ) * 80
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5880
SELECT DISTINCT + CAST( 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5880
SELECT DISTINCT + CAST ( 88 AS INTEGER ) AS col1
----
88

query I rowsort
SELECT + 99 + 83
----
182

onlyif mysql # aggregate syntax: 
query II rowsort label-5882
SELECT + ( SUM( ALL - - 18 ) ) col2, COUNT( * )
----
18
1

skipif mysql # not compatible
query II rowsort label-5882
SELECT + ( SUM ( ALL - - 18 ) ) col2, COUNT ( * )
----
18
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT - CASE 86 WHEN 95 THEN + COUNT( * ) - + 14 END AS col0, 76
----
NULL
76

skipif mysql # not compatible
query II rowsort label-5884
SELECT - CASE 86 WHEN 95 THEN + COUNT ( * ) - + 14 END AS col0, 76
----
NULL
76

onlyif mysql # DIV for integer division: 
query I rowsort label-5885
SELECT ALL 10 DIV + 21 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL 10 / + 21 AS col2
----
0

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

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

query I rowsort
SELECT - 86 + + 82
----
-4

query I rowsort
SELECT + - 36 + 26 col0
----
-10

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5890
SELECT DISTINCT + 22 * + + 11 * + ( - 31 ) * 40 AS col2, CASE 35 WHEN COUNT( + 12 ) * - - 9 + - - ( - COUNT( * ) ) THEN + 82 + + NULLIF ( 41, - + COUNT( * ) + - 40 * + 84 ) + + 91 WHEN + 40 THEN NULL END
----
-300080
NULL

skipif mysql # not compatible
query II rowsort label-5890
SELECT DISTINCT + 22 * + + 11 * + ( - 31 ) * 40 AS col2, CASE 35 WHEN COUNT ( + 12 ) * - - 9 + - - ( - COUNT ( * ) ) THEN + 82 + + NULLIF ( 41, - + COUNT ( * ) + - 40 * + 84 ) + + 91 WHEN + 40 THEN NULL END
----
-300080
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5891
SELECT ALL + - 28 DIV - COUNT( * ) - - 71 AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL + - 28 / - COUNT ( * ) - - 71 AS col2
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5892
SELECT 70 - - - 52 DIV CAST( 21 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5892
SELECT 70 - - - 52 / CAST ( 21 AS INTEGER )
----
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT COUNT( * ) * + MAX( + 42 )
----
42

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

query I rowsort
SELECT + 98 + + 12 AS col2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT 49 + - SUM( ALL - + 85 )
----
134

skipif mysql # not compatible
query I rowsort label-5896
SELECT 49 + - SUM ( ALL - + 85 )
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5897
SELECT + + 39 DIV + - COUNT( * ) + + 66
----
27

skipif mysql # not compatible
query I rowsort label-5897
SELECT + + 39 / + - COUNT ( * ) + + 66
----
27

query II rowsort
SELECT DISTINCT - + 39 AS col2, 3 * - - 16 AS col2
----
-39
48

query I rowsort
SELECT ALL 43 + - 87
----
-44

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

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

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

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

query I rowsort
SELECT 12 * 81 AS col0
----
972

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

query II rowsort
SELECT 93 col1, 22 AS col0
----
93
22

query I rowsort
SELECT ALL + ( 27 ) + - 79 col2
----
-52

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

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

query II rowsort
SELECT DISTINCT - 53 AS col2, - 85 AS col1
----
-53
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL + MAX( DISTINCT 36 ) + - - 10
----
46

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + MAX ( DISTINCT 36 ) + - - 10
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT DISTINCT - 11 + + COUNT( * ) AS col1, - COUNT( * ) * + SUM( + NULLIF ( - 39, - + 49 ) ) + - 97 + ( - + CASE + 84 WHEN + + 96 THEN - 23 * - 33 + 64 * + 57 * + COUNT( DISTINCT + - 64 ) END )
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT - 11 + + COUNT ( * ) AS col1, - COUNT ( * ) * + SUM ( + NULLIF ( - 39, - + 49 ) ) + - 97 + ( - + CASE + 84 WHEN + + 96 THEN - 23 * - 33 + 64 * + 57 * + COUNT ( DISTINCT + - 64 ) END )
----
-10
NULL

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

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / ( + 29 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT ALL + 66 + + + 88 + + - ( 28 ) DIV 3
----
145

skipif mysql # not compatible
query I rowsort label-5911
SELECT ALL + 66 + + + 88 + + - ( 28 ) / 3
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5912
SELECT - 70 * + CASE + + 76 WHEN + MIN( DISTINCT + + 73 ) THEN NULL ELSE - AVG ( - CAST( NULL AS SIGNED ) ) END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5912
SELECT - 70 * + CASE + + 76 WHEN + MIN ( DISTINCT + + 73 ) THEN NULL ELSE - AVG ( - CAST ( NULL AS INTEGER ) ) END + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT - MIN( DISTINCT - 46 )
----
46

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT - MIN ( DISTINCT - 46 )
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5914
SELECT ALL - 39 DIV + + 32 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL - 39 / + + 32 AS col1
----
-1

query II rowsort
SELECT 46 + - - COALESCE ( 68, - 7, + 73 * - 26 ) AS col1, - ( + 89 ) col2
----
114
-89

query I rowsort
SELECT ALL - CASE WHEN NULL <> 15 THEN + + ( - 26 ) - - + 48 * 58 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5917
SELECT + 59, 99 + 14 DIV 53 DIV - 55 AS col2
----
59
99

skipif mysql # not compatible
query II rowsort label-5917
SELECT + 59, 99 + 14 / 53 / - 55 AS col2
----
59
99

query II rowsort
SELECT - 17 AS col0, 57
----
-17
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5919
SELECT 60 AS col2, - 40 + + NULLIF ( - + MAX( + 56 ), 16 ) / - + CASE ( 52 ) WHEN - COUNT( * ) THEN NULL WHEN + - 55 - + 5 - 89 - - COALESCE ( + NULLIF ( + 39, + 10 * + COUNT( * ) + - ( - 46 ) ), - 21 / + 64 + - 8 - + 55 ) THEN + 34 * - - 2 + + COALESCE ( - CASE - 65 WHEN - 38 * - - CAST( - - ( COUNT( * ) ) AS SIGNED ) * - 91 * - 94 * + 89 + COUNT( * ) * CASE 32 WHEN + 81 * 2 THEN - 27 ELSE NULL END - + 0 * 75 THEN NULL WHEN COUNT( * ) THEN NULL ELSE 6 END, COUNT( * ), + 9 * COALESCE ( - 66, COUNT( * ), 95 ) + - ( SUM( DISTINCT 37 ) ) * - COUNT( * ) ) WHEN + 0 + 96 THEN 67 * + NULLIF ( 44, COUNT( * ) ) ELSE NULL END
----
60
NULL

skipif mysql # not compatible
query II rowsort label-5919
SELECT 60 AS col2, - 40 + + NULLIF ( - + MAX ( + 56 ), 16 ) / - + CASE ( 52 ) WHEN - COUNT ( * ) THEN NULL WHEN + - 55 - + 5 - 89 - - COALESCE ( + NULLIF ( + 39, + 10 * + COUNT ( * ) + - ( - 46 ) ), - 21 / + 64 + - 8 - + 55 ) THEN + 34 * - - 2 + + COALESCE ( - CASE - 65 WHEN - 38 * - - CAST ( - - ( COUNT ( * ) ) AS INTEGER ) * - 91 * - 94 * + 89 + COUNT ( * ) * CASE 32 WHEN + 81 * 2 THEN - 27 ELSE NULL END - + 0 * 75 THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 6 END, COUNT ( * ), + 9 * COALESCE ( - 66, COUNT ( * ), 95 ) + - ( SUM ( DISTINCT 37 ) ) * - COUNT ( * ) ) WHEN + 0 + 96 THEN 67 * + NULLIF ( 44, COUNT ( * ) ) ELSE NULL END
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + CASE 8 WHEN - ( - 44 ) - - SUM( ALL 93 ) + - COUNT( * ) THEN NULL WHEN NULLIF ( + 81, - 70 / - COUNT( * ) ) * + 89 + - 53 THEN + 84 + 73 * 94 ELSE + + 82 + 16 END * + 68 * + + 46 + - 49 - + + 25 * 46 AS col1
----
305345

skipif mysql # not compatible
query I rowsort label-5920
SELECT + CASE 8 WHEN - ( - 44 ) - - SUM ( ALL 93 ) + - COUNT ( * ) THEN NULL WHEN NULLIF ( + 81, - 70 / - COUNT ( * ) ) * + 89 + - 53 THEN + 84 + 73 * 94 ELSE + + 82 + 16 END * + 68 * + + 46 + - 49 - + + 25 * 46 AS col1
----
305345

query I rowsort
SELECT ALL 59 * + + 56
----
3304

query II rowsort
SELECT ALL 20 col2, 71 AS col2
----
20
71

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

skipif mysql # not compatible
query II rowsort label-5923
SELECT - 31, + 80 * + COUNT ( * ) AS col1
----
-31
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5924
SELECT DISTINCT + + 10 * + COUNT( * ) * + 8 + - 81 AS col0, 43 AS col1
----
-1
43

skipif mysql # not compatible
query II rowsort label-5924
SELECT DISTINCT + + 10 * + COUNT ( * ) * + 8 + - 81 AS col0, 43 AS col1
----
-1
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5925
SELECT COALESCE ( CASE + + 99 WHEN 79 * CAST( NULL AS DECIMAL ) THEN + + 2 WHEN + 85 / 75 + + 37 THEN NULL ELSE NULL END, - 93 ) + - 55 + - + ( + + 26 ) AS col1
----
-174

skipif mysql # not compatible
query I rowsort label-5925
SELECT COALESCE ( CASE + + 99 WHEN 79 * CAST ( NULL AS REAL ) THEN + + 2 WHEN + 85 / 75 + + 37 THEN NULL ELSE NULL END, - 93 ) + - 55 + - + ( + + 26 ) AS col1
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-5926
SELECT 15 DIV - 78
----
0

skipif mysql # not compatible
query I rowsort label-5926
SELECT 15 / - 78
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5927
SELECT ALL - CAST( - 60 AS SIGNED ) AS col0, 43 AS col0
----
60
43

skipif mysql # not compatible
query II rowsort label-5927
SELECT ALL - CAST ( - 60 AS INTEGER ) AS col0, 43 AS col0
----
60
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5928
SELECT DISTINCT + ( COUNT( * ) ) * + 30 * + COALESCE ( CAST( NULL AS SIGNED ), - + 70 ) + - + 68
----
-2168

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT + ( COUNT ( * ) ) * + 30 * + COALESCE ( CAST ( NULL AS INTEGER ), - + 70 ) + - + 68
----
-2168

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - 44 + - CASE WHEN NOT NULL NOT BETWEEN 10 AND - 54 * + 95 * 26 * 74 + 47 + - + 48 THEN + 59 END + + SUM( DISTINCT + 25 ) * + + 64 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5929
SELECT - 44 + - CASE WHEN NOT NULL NOT BETWEEN 10 AND - 54 * + 95 * 26 * 74 + 47 + - + 48 THEN + 59 END + + SUM ( DISTINCT + 25 ) * + + 64 col2
----
NULL

query I rowsort
SELECT 8 + - 55 AS col1
----
-47

query I rowsort
SELECT ALL - - 67 + - 88
----
-21

query I rowsort
SELECT DISTINCT 37 * - 11
----
-407

query I rowsort
SELECT ALL + 28 + - - 46 AS col2
----
74

query II rowsort
SELECT - 73 AS col0, - 60 AS col2
----
-73
-60

query I rowsort
SELECT ALL + 17 * - + 88 AS col2
----
-1496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT DISTINCT COUNT( * ) * 40 * - COUNT( * ) + + + 86 - - - 16 * + - ( + 3 ) + + + 4 + + COUNT( * ) * + 86 * - 59 * + 51 + CAST( 47 AS SIGNED ) AS col1
----
-258629

skipif mysql # not compatible
query I rowsort label-5936
SELECT DISTINCT COUNT ( * ) * 40 * - COUNT ( * ) + + + 86 - - - 16 * + - ( + 3 ) + + + 4 + + COUNT ( * ) * + 86 * - 59 * + 51 + CAST ( 47 AS INTEGER ) AS col1
----
-258629

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

skipif mysql # not compatible
query I rowsort label-5937
SELECT MAX ( + + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT SUM( ALL + 22 )
----
22

skipif mysql # not compatible
query I rowsort label-5938
SELECT SUM ( ALL + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT ( - + NULLIF ( - 28, + 18 + + - MIN( - 99 ) * - 0 ) ) + 21 + 76
----
125

skipif mysql # not compatible
query I rowsort label-5939
SELECT ( - + NULLIF ( - 28, + 18 + + - MIN ( - 99 ) * - 0 ) ) + 21 + 76
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5940
SELECT 96 * - - 23 * - 30, - CAST( NULL AS DECIMAL ) * - 90 * - CAST( + COUNT( * ) AS SIGNED ) AS col0
----
-66240
NULL

skipif mysql # not compatible
query II rowsort label-5940
SELECT 96 * - - 23 * - 30, - CAST ( NULL AS REAL ) * - 90 * - CAST ( + COUNT ( * ) AS INTEGER ) AS col0
----
-66240
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5942
SELECT COALESCE ( - + CAST( - 47 AS SIGNED ), + - 96 ) - + 63 + - + COUNT( DISTINCT + 23 ) + - + ( + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) ) / - 52 - + 46 + 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT COALESCE ( - + CAST ( - 47 AS INTEGER ), + - 96 ) - + 63 + - + COUNT ( DISTINCT + 23 ) + - + ( + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) / - 52 - + 46 + 50 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT ALL - 57 * ( + COUNT( * ) ) * 95 * + + 12 - + + 55 - + 53 + + ( + ( 24 ) )
----
-65064

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL - 57 * ( + COUNT ( * ) ) * 95 * + + 12 - + + 55 - + 53 + + ( + ( 24 ) )
----
-65064

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

skipif mysql # not compatible
query I rowsort label-5945
SELECT + MAX ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT 50 - 87 * 25 AS col0, - 0
----
-2125
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5947
SELECT 27 DIV - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5947
SELECT 27 / - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT + MAX( ALL 90 ), - 16 AS col2
----
90
-16

skipif mysql # not compatible
query II rowsort label-5948
SELECT + MAX ( ALL 90 ), - 16 AS col2
----
90
-16

query II rowsort
SELECT 40 * - 83 col0, 93 + 92
----
-3320
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT ALL + NULLIF ( 86, NULLIF ( + 67, + 9 ) + 19 + NULLIF ( + 17, 80 ) + 42 + 52 + - 55 * NULLIF ( + - 38, - + COUNT( * ) ) )
----
86

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL + NULLIF ( 86, NULLIF ( + 67, + 9 ) + 19 + NULLIF ( + 17, 80 ) + 42 + 52 + - 55 * NULLIF ( + - 38, - + COUNT ( * ) ) )
----
86

query I rowsort
SELECT - - 44 * - + 93 + + - 33 AS col2
----
-4125

query I rowsort
SELECT ALL - - 37 * - 32 AS col1
----
-1184

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

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

query I rowsort
SELECT - + 84 + + ( + 54 ) + + 49 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT - SUM( DISTINCT - + 25 ) * + + 16 + + COUNT( * )
----
401

skipif mysql # not compatible
query I rowsort label-5955
SELECT - SUM ( DISTINCT - + 25 ) * + + 16 + + COUNT ( * )
----
401

query I rowsort
SELECT - 80 * + 79 * 39 + + 72
----
-246408

onlyif mysql # aggregate syntax: 
query II rowsort label-5957
SELECT - - COUNT( * ) + + 60 AS col2, 27
----
61
27

skipif mysql # not compatible
query II rowsort label-5957
SELECT - - COUNT ( * ) + + 60 AS col2, 27
----
61
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT ALL - + 40 * + COUNT( * ) * COUNT( * ) * - 82
----
3280

skipif mysql # not compatible
query I rowsort label-5958
SELECT ALL - + 40 * + COUNT ( * ) * COUNT ( * ) * - 82
----
3280

query I rowsort
SELECT ALL - 57 + + 80 AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT DISTINCT - - MIN( ALL + 25 ) + - 88
----
-63

skipif mysql # not compatible
query I rowsort label-5960
SELECT DISTINCT - - MIN ( ALL + 25 ) + - 88
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5961
SELECT - 53 + 24 + + MAX( - + CAST( + + 99 AS SIGNED ) ) + - - 77 DIV - 97
----
-128

skipif mysql # not compatible
query I rowsort label-5961
SELECT - 53 + 24 + + MAX ( - + CAST ( + + 99 AS INTEGER ) ) + - - 77 / - 97
----
-128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT - 44 DIV - - 98 + 94
----
94

skipif mysql # not compatible
query I rowsort label-5963
SELECT - 44 / - - 98 + 94
----
94

query I rowsort
SELECT ALL - 63 * - - 37 - - 39 AS col1
----
-2292

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

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

query I rowsort
SELECT DISTINCT + 8 * 34 - + 52 + 87 col2
----
307

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

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

query I rowsort
SELECT ALL - 38 * + 10 AS col1
----
-380

query II rowsort
SELECT ALL ( + - 38 ) * + 71 AS col1, - 8 * 60
----
-2698
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT DISTINCT MAX( ALL 71 ) * - + 65
----
-4615

skipif mysql # not compatible
query I rowsort label-5970
SELECT DISTINCT MAX ( ALL 71 ) * - + 65
----
-4615

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT - 87 * - 91 * - COUNT( * )
----
-7917

skipif mysql # not compatible
query I rowsort label-5972
SELECT - 87 * - 91 * - COUNT ( * )
----
-7917

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5974
SELECT ALL + 91 AS col2, + ( MIN( DISTINCT 16 ) ) * 70 + - + 5 * - - 14 * - 77 - - 98 + + + 12 DIV + 33 * + 78 * + SUM( 57 ) + + COUNT( ALL + 99 ) + + + 77 * + + 87 AS col0
----
91
13308

skipif mysql # not compatible
query II rowsort label-5974
SELECT ALL + 91 AS col2, + ( MIN ( DISTINCT 16 ) ) * 70 + - + 5 * - - 14 * - 77 - - 98 + + + 12 / + 33 * + 78 * + SUM ( 57 ) + + COUNT ( ALL + 99 ) + + + 77 * + + 87 AS col0
----
91
13308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT 66 * + - 88 * - 57 * + CAST( + - 60 AS SIGNED ) + + NULLIF ( 83, - + ( - 84 ) + 26 ) AS col2
----
-19863277

skipif mysql # not compatible
query I rowsort label-5975
SELECT 66 * + - 88 * - 57 * + CAST ( + - 60 AS INTEGER ) + + NULLIF ( 83, - + ( - 84 ) + 26 ) AS col2
----
-19863277

query I rowsort
SELECT + 63 * 5 AS col0
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT + 80 + + COUNT( * ) + 52 + 48 + - 40
----
141

skipif mysql # not compatible
query I rowsort label-5977
SELECT + 80 + + COUNT ( * ) + 52 + 48 + - 40
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ( + MAX( + 21 ) ) * 2 - + 27 AS col1
----
15

skipif mysql # not compatible
query I rowsort label-5978
SELECT ( + MAX ( + 21 ) ) * 2 - + 27 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT + 57 + - + ( - + MIN( DISTINCT - - 42 ) ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-5979
SELECT + 57 + - + ( - + MIN ( DISTINCT - - 42 ) ) AS col0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5980
SELECT ALL 44 * CAST( - + 49 AS SIGNED ) AS col2, 74 + - 38
----
-2156
36

skipif mysql # not compatible
query II rowsort label-5980
SELECT ALL 44 * CAST ( - + 49 AS INTEGER ) AS col2, 74 + - 38
----
-2156
36

query I rowsort
SELECT + NULLIF ( - ( 93 ), - + NULLIF ( 54, + 80 ) + - NULLIF ( 24, + + 90 + 84 * + 31 ) ) AS col1
----
-93

query II rowsort
SELECT ALL 7 * + - ( + 67 ) AS col0, + 36 AS col2
----
-469
36

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

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

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

query I rowsort
SELECT - 51 + 61 + + NULLIF ( - 78, + 90 ) AS col2
----
-68

query I rowsort
SELECT ALL - 48 * 2 + + 56 + 46 AS col0
----
6

query II rowsort
SELECT - 66, 11 * + - 66 AS col1
----
-66
-726

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT + 26 * - - 82 - + + 64 + - COALESCE ( - + 85, + - NULLIF ( COUNT( * ), 50 ), - 93 + + + 39 )
----
2153

skipif mysql # not compatible
query I rowsort label-5988
SELECT + 26 * - - 82 - + + 64 + - COALESCE ( - + 85, + - NULLIF ( COUNT ( * ), 50 ), - 93 + + + 39 )
----
2153

query I rowsort
SELECT + - 21 * - 28 AS col1
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT ALL COUNT( * ) * - 38 + ( 99 )
----
61

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL COUNT ( * ) * - 38 + ( 99 )
----
61

query I rowsort
SELECT DISTINCT + CASE - 26 WHEN + - 66 THEN NULL WHEN 26 THEN - 54 ELSE + + 85 + + - 11 * 39 / + + CASE - 97 WHEN - - NULLIF ( - 7, + - 59 + - 55 ) + 51 THEN + - 59 * - 61 + - 11 ELSE NULL END * - + 85 END * 81
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5992
SELECT - - 72 / + 89
----
0

query I rowsort
SELECT ALL - 61 + 12 + + 93 + + - 40 + - ( + 75 ) * 69
----
-5171

query I rowsort
SELECT ALL + 92 + 3 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5995
SELECT - 54 + + + 32 + - COUNT( ALL - ( 4 ) ) * + + CAST( NULL AS DECIMAL ) col1, 48
----
NULL
48

skipif mysql # not compatible
query II rowsort label-5995
SELECT - 54 + + + 32 + - COUNT ( ALL - ( 4 ) ) * + + CAST ( NULL AS REAL ) col1, 48
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT - COUNT( DISTINCT 3 ) + 29
----
28

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT - COUNT ( DISTINCT 3 ) + 29
----
28

query I rowsort
SELECT + + 95 * + 92 + 56 AS col0
----
8796

query I rowsort
SELECT - 81 + + 38 AS col1
----
-43

query I rowsort
SELECT ALL - + 37 + 41 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6000
SELECT DISTINCT + SUM( ALL - + 1 ) * + COALESCE ( 94, + + COUNT( * ) ) * 44 - - - 23 col1
----
-4159

skipif mysql # not compatible
query I rowsort label-6000
SELECT DISTINCT + SUM ( ALL - + 1 ) * + COALESCE ( 94, + + COUNT ( * ) ) * 44 - - - 23 col1
----
-4159

query II rowsort
SELECT - 35 col1, + 21 + - - 71
----
-35
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6002
SELECT - + 45 / + 7 / CAST( NULL AS SIGNED ) * 34 + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6002
SELECT - + 45 / + 7 / CAST ( NULL AS INTEGER ) * 34 + 82
----
NULL

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

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

query II rowsort
SELECT - 71 + + 83 AS col1, - 37 col0
----
12
-37

query I rowsort
SELECT - 29 * ( + 58 ) * 34 AS col2
----
-57188

query II rowsort
SELECT ALL - 79 - + 23 AS col1, 25 + + + 99 col2
----
-102
124

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT ALL + 79 - - SUM( DISTINCT - 23 ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL + 79 - - SUM ( DISTINCT - 23 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6008
SELECT - MAX( - - 4 ), 68 DIV - 68 + + 84 * - - COUNT( * ) col0
----
-4
83

skipif mysql # not compatible
query II rowsort label-6008
SELECT - MAX ( - - 4 ), 68 / - 68 + + 84 * - - COUNT ( * ) col0
----
-4
83

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

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

query I rowsort
SELECT - 63 * + - 86
----
5418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6011
SELECT + MIN( DISTINCT + 79 ) * + NULLIF ( - 38, - MIN( DISTINCT - 24 ) * - + 44 + + 28 ) + - - 92 - + 49 * + - CAST( NULL AS SIGNED ) + - NULLIF ( + - 12, + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6011
SELECT + MIN ( DISTINCT + 79 ) * + NULLIF ( - 38, - MIN ( DISTINCT - 24 ) * - + 44 + + 28 ) + - - 92 - + 49 * + - CAST ( NULL AS INTEGER ) + - NULLIF ( + - 12, + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT - COUNT( * ) - 71 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-6012
SELECT - COUNT ( * ) - 71 AS col1
----
-72

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

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT 10 * + + COUNT ( * ) AS col2
----
10

query I rowsort
SELECT 56 * + 97 AS col2
----
5432

query I rowsort
SELECT ALL 45 * - 87
----
-3915

query I rowsort
SELECT ALL - 44 + - 73 - + - 13 + 25
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6017
SELECT DISTINCT + 90 + + 0 DIV - - 42
----
90

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + 90 + + 0 / - - 42
----
90

query I rowsort
SELECT ALL 96 * - 82 + - 92 + + 27
----
-7937

query I rowsort
SELECT + 75 - 39
----
36

query I rowsort
SELECT + - 93 col0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT ALL + 81 + - 73 DIV + + 82 + + COALESCE ( + 54, - + 62 + + 44 - 92 ) - - 91
----
226

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL + 81 + - 73 / + + 82 + + COALESCE ( + 54, - + 62 + + 44 - 92 ) - - 91
----
226

query I rowsort
SELECT ALL - 70 + - + 86 * - - 81 + + 62 AS col0
----
-6974

onlyif mysql # DIV for integer division: 
query I rowsort label-6023
SELECT ALL 55 + 13 + - 26 DIV + ( + ( - 72 ) )
----
68

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL 55 + 13 + - 26 / + ( + ( - 72 ) )
----
68

query II rowsort
SELECT DISTINCT - 62 + + + 79 AS col0, 75 AS col1
----
17
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6025
SELECT - - COALESCE ( + - 81, - COUNT( * ) DIV + + 47 + + 88 * + 92 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6025
SELECT - - COALESCE ( + - 81, - COUNT ( * ) / + + 47 + + 88 * + 92 ) AS col1
----
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT DISTINCT 26 * - 3 DIV COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT 26 * - 3 / COUNT ( * ) AS col0
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6027
SELECT CASE - 7 WHEN + 70 THEN NULL ELSE SUM( DISTINCT + - 97 ) * - 31 + - CAST( - 7 AS SIGNED ) + - COALESCE ( ( - 37 ), + CAST( 56 AS SIGNED ) * + CASE - COALESCE ( - NULLIF ( - - NULLIF ( - SUM( 2 ), - - 46 ), + + 20 + + COUNT( * ) ), 96 * + ( + - 39 ) * - MIN( 25 ) + - - 23 ) WHEN + 61 * - 25 * + MIN( NULLIF ( - + 36, 27 ) ) - - 71 THEN 22 DIV 50 END, + - NULLIF ( + - 93, - 65 + + 25 ) * ( + ( + 22 ) ) ) * 2 END AS col0
----
3088

skipif mysql # not compatible
query I rowsort label-6027
SELECT CASE - 7 WHEN + 70 THEN NULL ELSE SUM ( DISTINCT + - 97 ) * - 31 + - CAST ( - 7 AS INTEGER ) + - COALESCE ( ( - 37 ), + CAST ( 56 AS INTEGER ) * + CASE - COALESCE ( - NULLIF ( - - NULLIF ( - SUM ( 2 ), - - 46 ), + + 20 + + COUNT ( * ) ), 96 * + ( + - 39 ) * - MIN ( 25 ) + - - 23 ) WHEN + 61 * - 25 * + MIN ( NULLIF ( - + 36, 27 ) ) - - 71 THEN 22 / 50 END, + - NULLIF ( + - 93, - 65 + + 25 ) * ( + ( + 22 ) ) ) * 2 END AS col0
----
3088

query I rowsort
SELECT + 74 * 96 + 58 + - 13 AS col1
----
7149

query II rowsort
SELECT ALL ( - 41 ) AS col0, ( 34 )
----
-41
34

query I rowsort
SELECT 18 + + NULLIF ( + - 79, + ( - 7 ) ) AS col1
----
-61

query I rowsort
SELECT ( - + 2 ) * - 72 col1
----
144

query I rowsort
SELECT ALL - 47 - + 22
----
-69

query I rowsort
SELECT 40 + + 58 - - - 8 AS col0
----
90

query I rowsort
SELECT ALL + 75 * - - 44 AS col1
----
3300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6035
SELECT DISTINCT + MAX( DISTINCT + - 53 ) DIV + 70 * 19 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6035
SELECT DISTINCT + MAX ( DISTINCT + - 53 ) / + 70 * 19 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT 59 + + - 41 - - + COUNT( * )
----
19

skipif mysql # not compatible
query I rowsort label-6036
SELECT 59 + + - 41 - - + COUNT ( * )
----
19

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT 66 DIV - - 88
----
0

skipif mysql # not compatible
query I rowsort label-6038
SELECT 66 / - - 88
----
0

query I rowsort
SELECT ALL + 75 * 50 * - 43 AS col1
----
-161250

query I rowsort
SELECT 37 * - 67 * - 2
----
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT 40 + - 65 + - 41 * + - 55 * + MIN( ( 29 ) ) AS col1
----
65370

skipif mysql # not compatible
query I rowsort label-6041
SELECT 40 + - 65 + - 41 * + - 55 * + MIN ( ( 29 ) ) AS col1
----
65370

query I rowsort
SELECT DISTINCT + 57 + + 16 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-6043
SELECT - 97 DIV + 54 + 86 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6043
SELECT - 97 / + 54 + 86 AS col1
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT ALL - NULLIF ( - 67, - + 28 * + MAX( - 43 ) / COALESCE ( - COUNT( * ), + AVG ( - + 18 ), + - CAST( - 77 AS SIGNED ) ) - SUM( - CASE WHEN NULL <> NULL THEN - 94 ELSE + + 88 - - 16 + - 75 + + 60 * + 58 / + 89 END ) - 79 ) AS col0
----
67

skipif mysql # not compatible
query I rowsort label-6044
SELECT ALL - NULLIF ( - 67, - + 28 * + MAX ( - 43 ) / COALESCE ( - COUNT ( * ), + AVG ( - + 18 ), + - CAST ( - 77 AS INTEGER ) ) - SUM ( - CASE WHEN NULL <> NULL THEN - 94 ELSE + + 88 - - 16 + - 75 + + 60 * + 58 / + 89 END ) - 79 ) AS col0
----
67

query I rowsort
SELECT ALL + 12 + + 96 AS col1
----
108

query I rowsort
SELECT DISTINCT - 58 + + + 46 + 31
----
19

query I rowsort
SELECT DISTINCT + 3 * + + 11 AS col1
----
33

query I rowsort
SELECT ALL - 40 + + 53
----
13

query I rowsort
SELECT DISTINCT - 31 + + 36 AS col1
----
5

query I rowsort
SELECT - 72 + + 40 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT 74 * - COUNT( * ) - - + 64
----
-10

skipif mysql # not compatible
query I rowsort label-6051
SELECT 74 * - COUNT ( * ) - - + 64
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT DISTINCT + 83 DIV 80
----
1

skipif mysql # not compatible
query I rowsort label-6052
SELECT DISTINCT + 83 / 80
----
1

query I rowsort
SELECT ALL - 25 + + 20 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6054
SELECT ALL + + COUNT( DISTINCT + 13 ) * - COUNT( * ) col2, 87 + - 75 + + - 38 col0
----
-1
-26

skipif mysql # not compatible
query II rowsort label-6054
SELECT ALL + + COUNT ( DISTINCT + 13 ) * - COUNT ( * ) col2, 87 + - 75 + + - 38 col0
----
-1
-26

query I rowsort
SELECT ALL + 33 * 45 AS col2
----
1485

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

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

query I rowsort
SELECT ALL - + 46 - + 55 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT - CASE 48 WHEN 49 + - COUNT( * ) + - + 41 THEN NULL WHEN + - 20 THEN + + 86 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT - CASE 48 WHEN 49 + - COUNT ( * ) + - + 41 THEN NULL WHEN + - 20 THEN + + 86 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6059
SELECT DISTINCT - - CAST( NULL AS SIGNED ), 80 * - - 94 + 38 AS col0
----
NULL
7558

skipif mysql # not compatible
query II rowsort label-6059
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), 80 * - - 94 + 38 AS col0
----
NULL
7558

onlyif mysql # DIV for integer division: 
query I rowsort label-6060
SELECT - 88 DIV + 28 col1
----
-3

skipif mysql # not compatible
query I rowsort label-6060
SELECT - 88 / + 28 col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT 85 * + SUM( - - 67 ) + NULLIF ( - 50, - + 67 - + - 4 ) AS col0
----
5645

skipif mysql # not compatible
query I rowsort label-6061
SELECT 85 * + SUM ( - - 67 ) + NULLIF ( - 50, - + 67 - + - 4 ) AS col0
----
5645

query I rowsort
SELECT DISTINCT + 51 - + 52 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6063
SELECT DISTINCT - 5 AS col1, + COUNT( 98 )
----
-5
1

skipif mysql # not compatible
query II rowsort label-6063
SELECT DISTINCT - 5 AS col1, + COUNT ( 98 )
----
-5
1

query II rowsort
SELECT DISTINCT 70 AS col0, + 3
----
70
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6065
SELECT - 74, + COUNT( * ) + - + 18 AS col1
----
-74
-17

skipif mysql # not compatible
query II rowsort label-6065
SELECT - 74, + COUNT ( * ) + - + 18 AS col1
----
-74
-17

query I rowsort
SELECT COALESCE ( + 32, - 18 / - + 25 ) * - ( - 16 ) * - 73 + - 25 + CASE - ( + 75 ) WHEN 53 + + + ( - 99 ) THEN + - 92 WHEN ( - 2 ) THEN NULL END * 18
----
NULL

query I rowsort
SELECT ( + 79 ) * 74 AS col1
----
5846

query II rowsort
SELECT ALL 33, 14 * + 31 AS col2
----
33
434

query II rowsort
SELECT DISTINCT 36, 97 + 56 AS col0
----
36
153

onlyif mysql # aggregate syntax: 
query II rowsort label-6070
SELECT DISTINCT 69 + + 30 * - 93 * COUNT( * ) col1, + 13 * + + 62 AS col1
----
-2721
806

skipif mysql # not compatible
query II rowsort label-6070
SELECT DISTINCT 69 + + 30 * - 93 * COUNT ( * ) col1, + 13 * + + 62 AS col1
----
-2721
806

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6071
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS REAL ) * + 15
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6072
SELECT ALL COUNT( * ) + + CASE - CAST( NULL AS SIGNED ) WHEN - + 23 THEN - - 60 + + - 31 ELSE NULL END * + 3 * + 46 + + 44 + - 21 * CAST( NULL AS SIGNED ) + 41 + + 6 * - 37 + - - COUNT( * ) * - 67 * - COUNT( * ) * ( CAST( + 74 AS SIGNED ) ) * 83 - - 1 + + 85 + - 3 * - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT ALL COUNT ( * ) + + CASE - CAST ( NULL AS INTEGER ) WHEN - + 23 THEN - - 60 + + - 31 ELSE NULL END * + 3 * + 46 + + 44 + - 21 * CAST ( NULL AS INTEGER ) + 41 + + 6 * - 37 + - - COUNT ( * ) * - 67 * - COUNT ( * ) * ( CAST ( + 74 AS INTEGER ) ) * 83 - - 1 + + 85 + - 3 * - 42
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT ALL + 44 + + 53 DIV + 92
----
44

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL + 44 + + 53 / + 92
----
44

query I rowsort
SELECT DISTINCT 33 + - 99 + - 30
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6075
SELECT 72 AS col2, + 54 - ( + CAST( NULL AS SIGNED ) ) AS col2
----
72
NULL

skipif mysql # not compatible
query II rowsort label-6075
SELECT 72 AS col2, + 54 - ( + CAST ( NULL AS INTEGER ) ) AS col2
----
72
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT - NULLIF ( + - COALESCE ( - 2, 96 - - COUNT( * ) * - - COUNT( * ) ), - 1 ) + - 3 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-6076
SELECT - NULLIF ( + - COALESCE ( - 2, 96 - - COUNT ( * ) * - - COUNT ( * ) ), - 1 ) + - 3 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6077
SELECT - 62 * + 20 AS col0, 71 DIV + + 90 + COALESCE ( SUM( ALL 13 ), COUNT( DISTINCT 80 ) + + 99 + 52 ) AS col1
----
-1240
13

skipif mysql # not compatible
query II rowsort label-6077
SELECT - 62 * + 20 AS col0, 71 / + + 90 + COALESCE ( SUM ( ALL 13 ), COUNT ( DISTINCT 80 ) + + 99 + 52 ) AS col1
----
-1240
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT ALL 68 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL 68 / + 88
----
0

query I rowsort
SELECT - 80 + - 18
----
-98

query I rowsort
SELECT + 91 * + 58
----
5278

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6081
SELECT - + 3 + 1 + 3 + - 68 + + 75 + - - 40 + + - 13 * - 53 * - COUNT( * ) * - - 28 * + CASE - 5 WHEN - 48 THEN NULL WHEN - CAST( NULL AS SIGNED ) + 10 THEN 98 WHEN + - 61 THEN NULL ELSE + COUNT( * ) * MAX( + 98 ) + - 96 + 89 + + COUNT( * ) END * - 31 AS col2
----
55020832

skipif mysql # not compatible
query I rowsort label-6081
SELECT - + 3 + 1 + 3 + - 68 + + 75 + - - 40 + + - 13 * - 53 * - COUNT ( * ) * - - 28 * + CASE - 5 WHEN - 48 THEN NULL WHEN - CAST ( NULL AS INTEGER ) + 10 THEN 98 WHEN + - 61 THEN NULL ELSE + COUNT ( * ) * MAX ( + 98 ) + - 96 + 89 + + COUNT ( * ) END * - 31 AS col2
----
55020832

query II rowsort
SELECT DISTINCT + 35, 33 * - 78 AS col2
----
35
-2574

query I rowsort
SELECT ALL + 0 * - - 4 + 16
----
16

query I rowsort
SELECT ALL + - 23 * - - 40 AS col1
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT DISTINCT NULLIF ( 50, - CASE - + 9 WHEN 87 * + 80 / ( + 94 ) + COUNT( * ) THEN NULL WHEN - 59 THEN + - COUNT( * ) ELSE NULL END ) * - ( - - 60 ) - - - 12 col0
----
-3012

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT NULLIF ( 50, - CASE - + 9 WHEN 87 * + 80 / ( + 94 ) + COUNT ( * ) THEN NULL WHEN - 59 THEN + - COUNT ( * ) ELSE NULL END ) * - ( - - 60 ) - - - 12 col0
----
-3012

query II rowsort
SELECT + + 99 AS col0, + 31 + + 71 AS col0
----
99
102

query I rowsort
SELECT DISTINCT + 7 * - 96 - - 93
----
-579

query II rowsort
SELECT + 91, 82 AS col0
----
91
82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6089
SELECT - 59 * + - CASE + 92 WHEN - - CAST( NULL AS DECIMAL ) THEN + COUNT( DISTINCT + 88 ) + - + COUNT( * ) + + COUNT( * ) + - 87 + 88 * 59 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT - 59 * + - CASE + 92 WHEN - - CAST ( NULL AS REAL ) THEN + COUNT ( DISTINCT + 88 ) + - + COUNT ( * ) + + COUNT ( * ) + - 87 + 88 * 59 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT + COUNT( DISTINCT - 77 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT + COUNT ( DISTINCT - 77 ) col0
----
1

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

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

query I rowsort
SELECT - 77 * + 86
----
-6622

query II rowsort
SELECT DISTINCT + - 21 AS col2, 62 * + 91
----
-21
5642

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ALL - 21 DIV - 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - 21 / - 88 AS col2
----
0

query II rowsort
SELECT DISTINCT + ( - 36 ) AS col2, + 32
----
-36
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL - 70 * + COUNT( * ) - 12 * 62
----
-814

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - 70 * + COUNT ( * ) - 12 * 62
----
-814

query I rowsort
SELECT ALL - 88 * - + 91 * - 39 + - + 18 * + + 2 AS col2
----
-312348

query I rowsort
SELECT - - 83 * 62 + ( - + 8 )
----
5138

query II rowsort
SELECT DISTINCT + - 88, - 35 + 91 AS col1
----
-88
56

query II rowsort
SELECT - 32, - 65 + 91 + + NULLIF ( + 95, - - 51 ) AS col2
----
-32
121

query I rowsort
SELECT + 76 * - 1 * + 15
----
-1140

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT - 64 + + COUNT( * ) * - 87
----
-151

skipif mysql # not compatible
query I rowsort label-6102
SELECT - 64 + + COUNT ( * ) * - 87
----
-151

query I rowsort
SELECT ALL 35 + - 7 AS col0
----
28

query I rowsort
SELECT - 40 + + + 31 AS col0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-6105
SELECT ALL 52 DIV 75
----
0

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL 52 / 75
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6106
SELECT - 58 DIV 64 AS col0, - 53 AS col1
----
0
-53

skipif mysql # not compatible
query II rowsort label-6106
SELECT - 58 / 64 AS col0, - 53 AS col1
----
0
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-6107
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col1, - 20
----
2
-20

skipif mysql # not compatible
query II rowsort label-6107
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col1, - 20
----
2
-20

query I rowsort
SELECT ALL 22 + 84 + - 13 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT ALL MIN( DISTINCT - 64 ) + - - 22 - - 8
----
-34

skipif mysql # not compatible
query I rowsort label-6109
SELECT ALL MIN ( DISTINCT - 64 ) + - - 22 - - 8
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6110
SELECT + CAST( + 29 AS SIGNED ) + 23 AS col0
----
52

skipif mysql # not compatible
query I rowsort label-6110
SELECT + CAST ( + 29 AS INTEGER ) + 23 AS col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6111
SELECT + CAST( NULL AS SIGNED ) * + 92 * + - COALESCE ( - - COUNT( * ), 76 / CAST( 58 AS SIGNED ) ) * - 11, 30 AS col0
----
NULL
30

skipif mysql # not compatible
query II rowsort label-6111
SELECT + CAST ( NULL AS INTEGER ) * + 92 * + - COALESCE ( - - COUNT ( * ), 76 / CAST ( 58 AS INTEGER ) ) * - 11, 30 AS col0
----
NULL
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6112
SELECT + MIN( + - 27 ) + - 69 - SUM( DISTINCT + - 63 ) DIV - - 76 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-6112
SELECT + MIN ( + - 27 ) + - 69 - SUM ( DISTINCT + - 63 ) / - - 76 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6113
SELECT DISTINCT 27 * + + ( - CASE + - COUNT( * ) WHEN - 67 THEN 13 ELSE NULL END ) * - CAST( - - 29 AS SIGNED ) * - CASE + 25 WHEN + 74 * - - CAST( NULL AS SIGNED ) THEN - 38 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT 27 * + + ( - CASE + - COUNT ( * ) WHEN - 67 THEN 13 ELSE NULL END ) * - CAST ( - - 29 AS INTEGER ) * - CASE + 25 WHEN + 74 * - - CAST ( NULL AS INTEGER ) THEN - 38 END
----
NULL

query I rowsort
SELECT ALL 86 + - ( 58 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT ALL 45 + + + COUNT( * ) + + COUNT( * ) * - 59
----
-13

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL 45 + + + COUNT ( * ) + + COUNT ( * ) * - 59
----
-13

query I rowsort
SELECT + 51 * + 38
----
1938

query I rowsort
SELECT + 68 + - 75 col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6118
SELECT ALL 94 DIV - 28 - - 64 + 92
----
153

skipif mysql # not compatible
query I rowsort label-6118
SELECT ALL 94 / - 28 - - 64 + 92
----
153

query I rowsort
SELECT ALL 38 * + - 83 AS col0
----
-3154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6120
SELECT DISTINCT - 60 DIV + ( - 64 ) - 23 * 40 * + ( - 20 ) + SUM( - 96 )
----
18304

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT - 60 / + ( - 64 ) - 23 * 40 * + ( - 20 ) + SUM ( - 96 )
----
18304

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL + - NULLIF ( 85, + 36 * + ( - - ( - ( - + MIN( ALL + 30 ) ) ) ) + + AVG ( ALL + + 32 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL + - NULLIF ( 85, + 36 * + ( - - ( - ( - + MIN ( ALL + 30 ) ) ) ) + + AVG ( ALL + + 32 ) ) AS col2
----
-85

query I rowsort
SELECT + 91 - + 82 + + 96 * - - 18
----
1737

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6123
SELECT DISTINCT CASE + MIN( + 17 ) WHEN + - 85 THEN 97 * + 32 + + + CAST( NULLIF ( MIN( ALL 69 ), - 28 * - 83 ) AS SIGNED ) + + 95 * - COUNT( DISTINCT 76 ) DIV - + 65 ELSE - 40 * NULLIF ( - - 58, - + 75 ) END DIV - - 75 - + 88 - - - 14 * 95 * + + 72 - NULLIF ( 81, - - 32 * - + 53 * + 91 ) AS col2
----
-95959

skipif mysql # not compatible
query I rowsort label-6123
SELECT DISTINCT CASE + MIN ( + 17 ) WHEN + - 85 THEN 97 * + 32 + + + CAST ( NULLIF ( MIN ( ALL 69 ), - 28 * - 83 ) AS INTEGER ) + + 95 * - COUNT ( DISTINCT 76 ) / - + 65 ELSE - 40 * NULLIF ( - - 58, - + 75 ) END / - - 75 - + 88 - - - 14 * 95 * + + 72 - NULLIF ( 81, - - 32 * - + 53 * + 91 ) AS col2
----
-95959

query I rowsort
SELECT 28 * - + 91 - + 71 + 65
----
-2554

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

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

query I rowsort
SELECT + 74 * + + 99 - + 94 * - - COALESCE ( - 47, 45 ) AS col0
----
11744

query I rowsort
SELECT DISTINCT - 51 * - + 2 AS col0
----
102

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

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

query I rowsort
SELECT ALL + + 54 col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6130
SELECT ALL + + NULLIF ( - + ( - + 84 ), - - AVG ( - 22 ) * - + CAST( NULL AS SIGNED ) + + 97 + - 84 )
----
84

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + + NULLIF ( - + ( - + 84 ), - - AVG ( - 22 ) * - + CAST ( NULL AS INTEGER ) + + 97 + - 84 )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT - NULLIF ( 20, - ( + 15 ) ) * + 16 - COUNT( * ) AS col1
----
-321

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT - NULLIF ( 20, - ( + 15 ) ) * + 16 - COUNT ( * ) AS col1
----
-321

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT - - 37 * + 63 AS col1, 45 - - COUNT( * )
----
2331
46

skipif mysql # not compatible
query II rowsort label-6132
SELECT - - 37 * + 63 AS col1, 45 - - COUNT ( * )
----
2331
46

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

skipif mysql # not compatible
query I rowsort label-6133
SELECT - ( + 75 ) + + ( + 13 ) + - COUNT ( * ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT DISTINCT - + 94 * - - COUNT( * ) * - - 72 + + + ( 87 ) + + + 41
----
-6640

skipif mysql # not compatible
query I rowsort label-6134
SELECT DISTINCT - + 94 * - - COUNT ( * ) * - - 72 + + + ( 87 ) + + + 41
----
-6640

query I rowsort
SELECT + 78 * - - 88 + + + ( - 32 ) col2
----
6832

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT COUNT( * ) * 57 * - CASE - + 1 WHEN - 62 * 89 - - + 3 THEN 66 ELSE 80 * - - 71 END + + COUNT( * )
----
-323759

skipif mysql # not compatible
query I rowsort label-6136
SELECT COUNT ( * ) * 57 * - CASE - + 1 WHEN - 62 * 89 - - + 3 THEN 66 ELSE 80 * - - 71 END + + COUNT ( * )
----
-323759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT ALL + CASE 58 WHEN + 71 THEN - 56 WHEN - 71 * - 74 * + 68 THEN - 86 END * + - CAST( - 61 AS SIGNED ) + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + CASE 58 WHEN + 71 THEN - 56 WHEN - 71 * - 74 * + 68 THEN - 86 END * + - CAST ( - 61 AS INTEGER ) + + 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6138
SELECT + 48 * 73 + - - 3 - 6 DIV 65 * + + 98
----
3507

skipif mysql # not compatible
query I rowsort label-6138
SELECT + 48 * 73 + - - 3 - 6 / 65 * + + 98
----
3507

query I rowsort
SELECT DISTINCT - 71 + - + 85 AS col1
----
-156

query II rowsort
SELECT DISTINCT 25 AS col1, + 4 AS col0
----
25
4

query I rowsort
SELECT ALL - 62 + + 22 * 35 col0
----
708

query I rowsort
SELECT 49 * 64 * - 0 * + 23 AS col1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT DISTINCT - 44 + + + 75 - - COUNT( * ) * 1
----
32

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT - 44 + + + 75 - - COUNT ( * ) * 1
----
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6145
SELECT DISTINCT - CASE + 70 WHEN ( 22 ) * + - 64 / + - NULLIF ( + - AVG ( + 5 ), COUNT( * ) - + 24 + CAST( + MIN( ALL + + 1 ) AS DECIMAL ) * - - 34 / - + 51 ) + - 41 * + - ( CASE 11 WHEN 56 THEN NULL WHEN + ( + + COUNT( * ) ) + + 34 THEN NULL WHEN - 32 THEN NULL ELSE - - COUNT( * ) + - 81 END ) THEN - - 22 + - COALESCE ( - - 1, - COUNT( * ) ) + - 6 END + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT - CASE + 70 WHEN ( 22 ) * + - 64 / + - NULLIF ( + - AVG ( + 5 ), COUNT ( * ) - + 24 + CAST ( + MIN ( ALL + + 1 ) AS REAL ) * - - 34 / - + 51 ) + - 41 * + - ( CASE 11 WHEN 56 THEN NULL WHEN + ( + + COUNT ( * ) ) + + 34 THEN NULL WHEN - 32 THEN NULL ELSE - - COUNT ( * ) + - 81 END ) THEN - - 22 + - COALESCE ( - - 1, - COUNT ( * ) ) + - 6 END + - 22 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6146
SELECT ALL 81 + COUNT( * ) + 12 - 98
----
-4

skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 81 + COUNT ( * ) + 12 - 98
----
-4

query II rowsort
SELECT 75 * + ( + 22 ) * - NULLIF ( + 30, - 49 ) AS col1, - 51 AS col0
----
-49500
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL - 53 * NULLIF ( + 18, 84 * 12 * - + COUNT( * ) + + 76 ) col2
----
-954

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL - 53 * NULLIF ( + 18, 84 * 12 * - + COUNT ( * ) + + 76 ) col2
----
-954

query I rowsort
SELECT 65 * + - ( + 57 ) AS col1
----
-3705

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

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

query I rowsort
SELECT 71 + - 55 * - NULLIF ( - + 74, 32 ) AS col2
----
-3999

query I rowsort
SELECT 74 * 78 AS col0
----
5772

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6153
SELECT DISTINCT 57, - CAST( NULL AS SIGNED ) * + 75 AS col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-6153
SELECT DISTINCT 57, - CAST ( NULL AS INTEGER ) * + 75 AS col2
----
57
NULL

query I rowsort
SELECT ALL + 27 - ( 30 ) * + - 22 AS col1
----
687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6155
SELECT ALL 91 - - 73 - NULLIF ( COUNT( * ), + 49 ) * + NULLIF ( 92, + 41 ) * 4 DIV 73 + + 43 * 36 + - COUNT( * ) * + ( - + 33 ) * + + 86 + + 89 AS col2
----
4634

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL 91 - - 73 - NULLIF ( COUNT ( * ), + 49 ) * + NULLIF ( 92, + 41 ) * 4 / 73 + + 43 * 36 + - COUNT ( * ) * + ( - + 33 ) * + + 86 + + 89 AS col2
----
4634

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT - 66 * + 94 + + COALESCE ( 94, + COUNT( * ) * + 27 ) AS col1
----
-6110

skipif mysql # not compatible
query I rowsort label-6156
SELECT - 66 * + 94 + + COALESCE ( 94, + COUNT ( * ) * + 27 ) AS col1
----
-6110

query II rowsort
SELECT 27 col2, + 86 + 39
----
27
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT 14 + 31 * - - SUM( + + 0 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-6158
SELECT 14 + 31 * - - SUM ( + + 0 ) AS col1
----
14

query I rowsort
SELECT + 32 * + + 99 * - ( + NULLIF ( - - ( + 60 ), - 63 ) )
----
-190080

query I rowsort
SELECT ALL + 71 * 2
----
142

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

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

query II rowsort
SELECT + - 93 AS col2, + 62
----
-93
62

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

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

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

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

query I rowsort
SELECT ALL - + 47 * 43 * 74 * + 97 + - + 45 - + 46
----
-14506829

query II rowsort
SELECT ALL - + 43 col0, + 28
----
-43
28

query I rowsort
SELECT DISTINCT + 77 * + 96
----
7392

query I rowsort
SELECT ALL - - ( 39 ) AS col2
----
39

query II rowsort
SELECT 62 * - 41 * + + 15 AS col2, - 36 + - 19 * + 84 AS col1
----
-38130
-1632

query II rowsort
SELECT ALL - 21 col2, 32 * - 21 + - 82 - - 35 + - 8 AS col2
----
-21
-727

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT ( - ( 37 ) ), + MIN( + - 21 ) col2
----
-37
-21

skipif mysql # not compatible
query II rowsort label-6171
SELECT ( - ( 37 ) ), + MIN ( + - 21 ) col2
----
-37
-21

query I rowsort
SELECT + + NULLIF ( - + 25, 61 )
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6173
SELECT ALL + CASE - COUNT( * ) WHEN + - 34 THEN - 88 ELSE + 29 END + COUNT( * ) * COUNT( - 17 ) AS col0, - 46 AS col1
----
30
-46

skipif mysql # not compatible
query II rowsort label-6173
SELECT ALL + CASE - COUNT ( * ) WHEN + - 34 THEN - 88 ELSE + 29 END + COUNT ( * ) * COUNT ( - 17 ) AS col0, - 46 AS col1
----
30
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT 11 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT 11 / - 48 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6176
SELECT + 32 DIV - 76 * + ( - 20 ) * NULLIF ( 5, + 16 ) * 35 + + + 32 + + + 9 + + + 22 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6176
SELECT + 32 / - 76 * + ( - 20 ) * NULLIF ( 5, + 16 ) * 35 + + + 32 + + + 9 + + + 22 AS col0
----
63

query I rowsort
SELECT ALL - 95 + + - 84 col2
----
-179

query I rowsort
SELECT 57 * + 23 - + 27 + 96
----
1380

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT ( 66 ) DIV ( 32 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6179
SELECT ( 66 ) / ( 32 ) AS col1
----
2

query I rowsort
SELECT ALL ( - ( + 46 ) ) + 98 AS col1
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - 58 + + 91 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - 58 + + 91 + COUNT ( * )
----
34

query II rowsort
SELECT DISTINCT 52 * - 21 AS col1, + 68 AS col2
----
-1092
68

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

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

query II rowsort
SELECT 84 * + - 56 AS col2, 46
----
-4704
46

query I rowsort
SELECT ALL - 58 + 26
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6187
SELECT ALL + 95 - + ( - 65 ) DIV - 31 + + + 71 * + 90 AS col1
----
6483

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL + 95 - + ( - 65 ) / - 31 + + + 71 * + 90 AS col1
----
6483

query I rowsort
SELECT 84 + 2 col0
----
86

query I rowsort
SELECT 0 * + - 8
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6190
SELECT 9 + + COUNT( * ) DIV + 82 - + 56 + + + 13
----
-34

skipif mysql # not compatible
query I rowsort label-6190
SELECT 9 + + COUNT ( * ) / + 82 - + 56 + + + 13
----
-34

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

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

query I rowsort
SELECT ALL + - 24 * + ( 57 ) + - 3
----
-1371

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT + 16 DIV - 96
----
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT + 16 / - 96
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT 28 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-6194
SELECT 28 * - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6195
SELECT - NULLIF ( - - 68, COUNT( * ) ) * - CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6195
SELECT - NULLIF ( - - 68, COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6196
SELECT - ( + 43 ) + ( 93 ) + + CAST( NULL AS SIGNED ), 96 AS col0
----
NULL
96

skipif mysql # not compatible
query II rowsort label-6196
SELECT - ( + 43 ) + ( 93 ) + + CAST ( NULL AS INTEGER ), 96 AS col0
----
NULL
96

query I rowsort
SELECT - CASE 60 WHEN 45 + - + 58 THEN NULL ELSE + 45 * 17 END * - - 46 AS col0
----
-35190

query I rowsort
SELECT ALL - 0 * + 37 + + - CASE + 83 WHEN - 45 + - 60 + + 29 THEN + 32 ELSE NULL END - 47 / - 7 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT - - 14 * - + 32 + - + 90 + + COALESCE ( + 97, + CAST( + 5 AS SIGNED ) ) + 36 + + 26
----
-379

skipif mysql # not compatible
query I rowsort label-6200
SELECT - - 14 * - + 32 + - + 90 + + COALESCE ( + 97, + CAST ( + 5 AS INTEGER ) ) + 36 + + 26
----
-379

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT - 55 + MIN( - 72 )
----
-127

skipif mysql # not compatible
query I rowsort label-6201
SELECT - 55 + MIN ( - 72 )
----
-127

query I rowsort
SELECT ALL COALESCE ( + 38, 56 * + - 18, + 5 ) * 62 + + + 52 AS col2
----
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT - MIN( 49 ) + - - COUNT( + 46 ) + - 78 * + 71
----
-5586

skipif mysql # not compatible
query I rowsort label-6203
SELECT - MIN ( 49 ) + - - COUNT ( + 46 ) + - 78 * + 71
----
-5586

query I rowsort
SELECT ALL - 42 * + 57 * + 84 + + 29
----
-201067

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT ALL + - COALESCE ( - + SUM( - 41 ), + 93 ) AS col1, - 49
----
-41
-49

skipif mysql # not compatible
query II rowsort label-6205
SELECT ALL + - COALESCE ( - + SUM ( - 41 ), + 93 ) AS col1, - 49
----
-41
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6206
SELECT 69 * 93 DIV 49 + 15 + - + 83
----
62

skipif mysql # not compatible
query I rowsort label-6206
SELECT 69 * 93 / 49 + 15 + - + 83
----
62

query I rowsort
SELECT ALL - 12 * + 57 + 11 - - 70 AS col0
----
-603

query I rowsort
SELECT ALL 65 * - 22 + + 61 AS col1
----
-1369

query I rowsort
SELECT + 77 * + 23 + 88 + + 76
----
1935

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT MAX( DISTINCT + 67 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-6210
SELECT MAX ( DISTINCT + 67 ) AS col2
----
67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT + ( 3 ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6212
SELECT + ( 3 ) + COUNT ( * )
----
4

query I rowsort
SELECT ALL 69 - - 29 AS col2
----
98

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

skipif mysql # not compatible
query I rowsort label-6214
SELECT + CAST ( 25 AS INTEGER ) * - 23 AS col1
----
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6215
SELECT DISTINCT COUNT( * ) DIV - ( 48 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT COUNT ( * ) / - ( 48 ) AS col0
----
0

query II rowsort
SELECT - 16 * - 33 * + - 4, + 38 * + 24 * - 34 AS col0
----
-2112
-31008

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

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

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

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

query I rowsort
SELECT ALL 33 - 35 + - + ( 58 ) AS col0
----
-60

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

skipif mysql # not compatible
query I rowsort label-6220
SELECT + CAST ( NULL AS INTEGER ) * + COALESCE ( + + COUNT ( * ), - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT ALL - 27 * + 70 * 77 / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL - 27 * + 70 * 77 / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + COALESCE ( + 28, 31 ) * 17 + 20, 83 col0
----
496
83

query II rowsort
SELECT + 80 * COALESCE ( - 42, 32, 40 ) AS col1, - 39
----
-3360
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT DISTINCT SUM( ALL - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-6224
SELECT DISTINCT SUM ( ALL - 73 )
----
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-6225
SELECT 3 AS col1, + 89 DIV 14 * + 17
----
3
102

skipif mysql # not compatible
query II rowsort label-6225
SELECT 3 AS col1, + 89 / 14 * + 17
----
3
102

query I rowsort
SELECT + CASE + 17 WHEN + 87 THEN NULL WHEN + 73 THEN - - 5 * 44 END * 72 + 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6227
SELECT - 91 + COALESCE ( CAST( + 1 AS SIGNED ), 43 * + 18 )
----
-90

skipif mysql # not compatible
query I rowsort label-6227
SELECT - 91 + COALESCE ( CAST ( + 1 AS INTEGER ), 43 * + 18 )
----
-90

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

query I rowsort
SELECT + 14 - 74 * - 0 - NULLIF ( 13, 3 )
----
1

query I rowsort
SELECT - 84 * + - 31 + + 64 + + 84 * - ( 37 ) + - 52 AS col2
----
-492

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT + - 49 + - MAX( + 59 ) * + NULLIF ( - ( + 66 ), 44 ) * + 26 AS col0
----
101195

skipif mysql # not compatible
query I rowsort label-6231
SELECT + - 49 + - MAX ( + 59 ) * + NULLIF ( - ( + 66 ), 44 ) * + 26 AS col0
----
101195

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

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

query I rowsort
SELECT DISTINCT - CASE - 94 WHEN - - 16 THEN + - 38 ELSE NULL END + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL + ( - 95 ) * + COUNT( * ) + + 79 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + ( - 95 ) * + COUNT ( * ) + + 79 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT - + 99 DIV + - 2 AS col1
----
49

skipif mysql # not compatible
query I rowsort label-6235
SELECT - + 99 / + - 2 AS col1
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT DISTINCT + MIN( DISTINCT 4 ) * + 93 AS col0
----
372

skipif mysql # not compatible
query I rowsort label-6237
SELECT DISTINCT + MIN ( DISTINCT 4 ) * + 93 AS col0
----
372

query I rowsort
SELECT DISTINCT - 2 + - + 63
----
-65

query I rowsort
SELECT ALL + + 80 + - 50 AS col0
----
30

query I rowsort
SELECT DISTINCT + 11 * - - 63 AS col1
----
693

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6242
SELECT ALL - ( COUNT( * ) ) / - + 33 + - - COUNT( * ) + - ( - COUNT( * ) ) / + 98 + + 65 * - CAST( NULL AS SIGNED ) + + 78 - + COUNT( * ) - - 20 + - 23 - + + 13 * - + 88 / - + 47 * + ( 43 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL - ( COUNT ( * ) ) / - + 33 + - - COUNT ( * ) + - ( - COUNT ( * ) ) / + 98 + + 65 * - CAST ( NULL AS INTEGER ) + + 78 - + COUNT ( * ) - - 20 + - 23 - + + 13 * - + 88 / - + 47 * + ( 43 ) col0
----
NULL

query I rowsort
SELECT ALL + 9 * - 46 AS col2
----
-414

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6244
SELECT DISTINCT 54 DIV - MIN( DISTINCT ( + 17 ) ) + - 62, - COUNT( ALL - 56 ) * + 54 AS col2
----
-65
-54

skipif mysql # not compatible
query II rowsort label-6244
SELECT DISTINCT 54 / - MIN ( DISTINCT ( + 17 ) ) + - 62, - COUNT ( ALL - 56 ) * + 54 AS col2
----
-65
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-6245
SELECT ALL - + 29 DIV - + 24 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - + 29 / - + 24 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6246
SELECT + NULLIF ( 81, - CAST( NULL AS SIGNED ) ) col2
----
81

skipif mysql # not compatible
query I rowsort label-6246
SELECT + NULLIF ( 81, - CAST ( NULL AS INTEGER ) ) col2
----
81

query II rowsort
SELECT ALL + 61 AS col2, 33 + 26
----
61
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT - 11 DIV - + 65
----
0

skipif mysql # not compatible
query I rowsort label-6248
SELECT - 11 / - + 65
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6249
SELECT + SUM( ALL - CAST( 87 AS SIGNED ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-6249
SELECT + SUM ( ALL - CAST ( 87 AS INTEGER ) ) AS col0
----
-87

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

skipif mysql # not compatible
query I rowsort label-6250
SELECT ALL + COALESCE ( + 16, - CAST ( NULL AS INTEGER ) )
----
16

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

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

query I rowsort
SELECT ALL ( 54 ) * - 59 - + - 13
----
-3173

query II rowsort
SELECT ( 48 ) AS col1, 86
----
48
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6254
SELECT + 78 AS col0, COUNT( * ) DIV - 47 + + - 16 AS col1
----
78
-16

skipif mysql # not compatible
query II rowsort label-6254
SELECT + 78 AS col0, COUNT ( * ) / - 47 + + - 16 AS col1
----
78
-16

query I rowsort
SELECT + 58 * + 19
----
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT DISTINCT MAX( ALL + 99 ) * - 27
----
-2673

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT MAX ( ALL + 99 ) * - 27
----
-2673

query II rowsort
SELECT ALL + 39, + 76 AS col2
----
39
76

query I rowsort
SELECT 31 * + 66 - - - 16 + 75 - - 98 * + 74 + - 16
----
9341

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT ALL SUM( DISTINCT - - 49 ) * - + 63 - - 47 AS col1
----
-3040

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL SUM ( DISTINCT - - 49 ) * - + 63 - - 47 AS col1
----
-3040

query II rowsort
SELECT DISTINCT + 40 * - 91 col2, - 47 * - 97 AS col2
----
-3640
4559

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6261
SELECT + CAST( NULL AS DECIMAL ) * 41 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6261
SELECT + CAST ( NULL AS REAL ) * 41 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6262
SELECT ALL + 23 * - ( ( + + 64 ) ) DIV + COUNT( * )
----
-1472

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL + 23 * - ( ( + + 64 ) ) / + COUNT ( * )
----
-1472

query I rowsort
SELECT ALL + COALESCE ( - 20, + - 66 * - 52 + - 3 * + - 23, + 22 ) AS col0
----
-20

query II rowsort
SELECT + 74 - 12 AS col1, 2 AS col2
----
62
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT - 86 DIV - 4 col2
----
21

skipif mysql # not compatible
query I rowsort label-6265
SELECT - 86 / - 4 col2
----
21

query I rowsort
SELECT + 91 * 78 AS col0
----
7098

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

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

query I rowsort
SELECT + 38 + + 0 - + 58
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT + - 78 * CAST( + 26 AS SIGNED ) AS col2
----
-2028

skipif mysql # not compatible
query I rowsort label-6269
SELECT + - 78 * CAST ( + 26 AS INTEGER ) AS col2
----
-2028

query I rowsort
SELECT + + 45 + + 47 * - + 52 AS col0
----
-2399

query I rowsort
SELECT ALL 4 + + 78 + - + 21
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL - 65 + + MIN( + 27 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL - 65 + + MIN ( + 27 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT ALL + - COUNT( * ) + - NULLIF ( ( - COUNT( * ) ), - ( - 39 ) ) * - 79
----
-80

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL + - COUNT ( * ) + - NULLIF ( ( - COUNT ( * ) ), - ( - 39 ) ) * - 79
----
-80

query I rowsort
SELECT DISTINCT - 32 + - 26 AS col2
----
-58

query II rowsort
SELECT ALL - 27, 88 AS col1
----
-27
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6276
SELECT - + 70, + COALESCE ( - ( + CAST( - - 86 AS SIGNED ) ), NULLIF ( MIN( - ( - + ( - 42 ) ) ), + 76 ) - - - 18, + COUNT( * ), - COUNT( * ) ) AS col2
----
-70
-86

skipif mysql # not compatible
query II rowsort label-6276
SELECT - + 70, + COALESCE ( - ( + CAST ( - - 86 AS INTEGER ) ), NULLIF ( MIN ( - ( - + ( - 42 ) ) ), + 76 ) - - - 18, + COUNT ( * ), - COUNT ( * ) ) AS col2
----
-70
-86

query I rowsort
SELECT 29 + + + 85
----
114

query II rowsort
SELECT 39 AS col2, 25
----
39
25

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

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

query I rowsort
SELECT ALL ( - NULLIF ( 22, 16 * + 93 ) )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6281
SELECT + ( + 58 ) + - 89 + 77 * CAST( COUNT( * ) AS SIGNED ) DIV - 13 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6281
SELECT + ( + 58 ) + - 89 + 77 * CAST ( COUNT ( * ) AS INTEGER ) / - 13 AS col0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-6282
SELECT + COUNT( DISTINCT - 33 ), + 53 AS col2
----
1
53

skipif mysql # not compatible
query II rowsort label-6282
SELECT + COUNT ( DISTINCT - 33 ), + 53 AS col2
----
1
53

query I rowsort
SELECT DISTINCT + 88 - + 44 + - 37
----
7

query I rowsort
SELECT - 78 * + 41 * 71
----
-227058

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6285
SELECT ALL - 26 - + ( + 3 ) AS col0, 27 * - 61 + - + NULLIF ( + MIN( ALL + - CAST( NULL AS SIGNED ) ), - ( + + 2 ) / + COUNT( * ) + 81 + - 93 * - 50 + + + 59 ) * - + 40 AS col0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-6285
SELECT ALL - 26 - + ( + 3 ) AS col0, 27 * - 61 + - + NULLIF ( + MIN ( ALL + - CAST ( NULL AS INTEGER ) ), - ( + + 2 ) / + COUNT ( * ) + 81 + - 93 * - 50 + + + 59 ) * - + 40 AS col0
----
-29
NULL

query I rowsort
SELECT + ( + COALESCE ( - ( 20 ), - ( 59 ) * 14 + 73 - - + 32 ) ) * + 11 + 4 + - 92 AS col1
----
-308

query I rowsort
SELECT 59 * 40 AS col2
----
2360

query I rowsort
SELECT 94 * 83 AS col2
----
7802

query II rowsort
SELECT 65 + + + 87, - COALESCE ( + - 43, - 39 ) AS col1
----
152
43

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

query II rowsort
SELECT 74 + - 1 + 32, + 92 col2
----
105
92

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

query I rowsort
SELECT DISTINCT + 54 * - 77
----
-4158

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6294
SELECT ALL - 63 DIV - COUNT( * ) AS col2, + 90 AS col2
----
63
90

skipif mysql # not compatible
query II rowsort label-6294
SELECT ALL - 63 / - COUNT ( * ) AS col2, + 90 AS col2
----
63
90

query I rowsort
SELECT 9 + 48
----
57

query I rowsort
SELECT 83 * - 45 AS col0
----
-3735

query II rowsort
SELECT 19 + 51 AS col1, 53 AS col2
----
70
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6298
SELECT ALL 9 + CASE + MIN( ALL 11 ) WHEN 99 THEN - - 7 * + CASE - + 17 WHEN - COUNT( * ) THEN NULL WHEN - 5 THEN 48 * + - ( - 40 ) - - + ( - 66 ) ELSE NULL END * - 57 + + + 37 * - MIN( ALL 81 ) DIV + 39 * + 68 * - COUNT( * ) + - 33 + 31 - + 43 ELSE + 84 + - 77 END * + 32 + MIN( - 34 )
----
199

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL 9 + CASE + MIN ( ALL 11 ) WHEN 99 THEN - - 7 * + CASE - + 17 WHEN - COUNT ( * ) THEN NULL WHEN - 5 THEN 48 * + - ( - 40 ) - - + ( - 66 ) ELSE NULL END * - 57 + + + 37 * - MIN ( ALL 81 ) / + 39 * + 68 * - COUNT ( * ) + - 33 + 31 - + 43 ELSE + 84 + - 77 END * + 32 + MIN ( - 34 )
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT 9 * 94 * - COUNT( * )
----
-846

skipif mysql # not compatible
query I rowsort label-6299
SELECT 9 * 94 * - COUNT ( * )
----
-846

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT ALL 26 * - 29 AS col1, - COALESCE ( + 64, + 0, NULLIF ( - 87, - ( 35 ) / + 66 - + 20 - + 99 + + COUNT( * ) + - 28 ) * + 12 * - 61 ) AS col1
----
-754
-64

skipif mysql # not compatible
query II rowsort label-6300
SELECT ALL 26 * - 29 AS col1, - COALESCE ( + 64, + 0, NULLIF ( - 87, - ( 35 ) / + 66 - + 20 - + 99 + + COUNT ( * ) + - 28 ) * + 12 * - 61 ) AS col1
----
-754
-64

query II rowsort
SELECT DISTINCT - COALESCE ( - ( - - 57 ), 83 ) + + 17 AS col0, - COALESCE ( + COALESCE ( + 62, 40 + ( 48 ) ), 52 ) col1
----
74
-62

query I rowsort
SELECT ALL 49 + 10 col2
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT DISTINCT + COUNT( * ) + COUNT( * ) AS col2, + 66
----
2
66

skipif mysql # not compatible
query II rowsort label-6303
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) AS col2, + 66
----
2
66

query I rowsort
SELECT - 76 - + 53 col0
----
-129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6305
SELECT ( - CAST( NULL AS DECIMAL ) ) + - 69 * + CAST( NULL AS SIGNED ) + - MAX( ALL CAST( - 46 AS SIGNED ) ) + - + ( - 31 ) / + - ( - - 54 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6305
SELECT ( - CAST ( NULL AS REAL ) ) + - 69 * + CAST ( NULL AS INTEGER ) + - MAX ( ALL CAST ( - 46 AS INTEGER ) ) + - + ( - 31 ) / + - ( - - 54 ) AS col1
----
NULL

query I rowsort
SELECT - 60 * 30
----
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6307
SELECT ALL + 11 DIV 61 * + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL + 11 / 61 * + - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6308
SELECT ALL + MIN( DISTINCT 77 ) + 79 + + 87 * 23
----
2157

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL + MIN ( DISTINCT 77 ) + 79 + + 87 * 23
----
2157

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT ALL SUM( + 72 ) * + + ( + 99 ) AS col0
----
7128

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL SUM ( + 72 ) * + + ( + 99 ) AS col0
----
7128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6310
SELECT ALL COUNT( * ) DIV - - 16 AS col0, 41 * 95 * - 4 * - 12 AS col1
----
0
186960

skipif mysql # not compatible
query II rowsort label-6310
SELECT ALL COUNT ( * ) / - - 16 AS col0, 41 * 95 * - 4 * - 12 AS col1
----
0
186960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT ALL - MAX( DISTINCT 78 ) - + - 48
----
-30

skipif mysql # not compatible
query I rowsort label-6312
SELECT ALL - MAX ( DISTINCT 78 ) - + - 48
----
-30

query II rowsort
SELECT + 65 AS col1, + 36 * - - 54 + + - 59 * ( 27 ) + + 36
----
65
387

query I rowsort
SELECT 4 * - 87 * 85 * 43 AS col2
----
-1271940

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6316
SELECT ALL - COUNT( * ) AS col0, - 86 DIV - MIN( 69 ) + - + 20 AS col2
----
-1
-19

skipif mysql # not compatible
query II rowsort label-6316
SELECT ALL - COUNT ( * ) AS col0, - 86 / - MIN ( 69 ) + - + 20 AS col2
----
-1
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6317
SELECT SUM( ALL + - NULLIF ( CAST( - - 45 AS SIGNED ), + 68 ) ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-6317
SELECT SUM ( ALL + - NULLIF ( CAST ( - - 45 AS INTEGER ), + 68 ) ) AS col2
----
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT COUNT( + 95 ) * 7 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6319
SELECT COUNT ( + 95 ) * 7 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT ( - + 22 ) + + ( + - COUNT( DISTINCT + ( + - 57 ) ) ) col0
----
-23

skipif mysql # not compatible
query I rowsort label-6320
SELECT ( - + 22 ) + + ( + - COUNT ( DISTINCT + ( + - 57 ) ) ) col0
----
-23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6322
SELECT MIN( + + 50 ) * 16, 52 + - - 56 + 93 AS col2
----
800
201

skipif mysql # not compatible
query II rowsort label-6322
SELECT MIN ( + + 50 ) * 16, 52 + - - 56 + 93 AS col2
----
800
201

query I rowsort
SELECT 19 * - 57
----
-1083

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT SUM( + + 5 ) - 90 - + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6324
SELECT SUM ( + + 5 ) - 90 - + COUNT ( * )
----
-86

query II rowsort
SELECT + 46, 68 AS col1
----
46
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6326
SELECT ALL + 5 + + CAST( + 50 AS SIGNED ) * - + 44
----
-2195

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL + 5 + + CAST ( + 50 AS INTEGER ) * - + 44
----
-2195

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL 3 * + - MAX( + 10 ) * + 96
----
-2880

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL 3 * + - MAX ( + 10 ) * + 96
----
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT COUNT( * ) + + MIN( ALL - 71 ) * + 18
----
-1277

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT COUNT ( * ) + + MIN ( ALL - 71 ) * + 18
----
-1277

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6329
SELECT ALL 97 + - 59 + 75 * 52 * - 52 * - 57 * - - 92 - - - 64 AS col0, CASE - ( - + 53 ) WHEN + COUNT( * ) + + CAST( + 50 AS DECIMAL ) THEN 84 END + MAX( - + 78 ) + 70 * - + 20 + + + 21 * 70 AS col0
----
1063483174
NULL

skipif mysql # not compatible
query II rowsort label-6329
SELECT ALL 97 + - 59 + 75 * 52 * - 52 * - 57 * - - 92 - - - 64 AS col0, CASE - ( - + 53 ) WHEN + COUNT ( * ) + + CAST ( + 50 AS REAL ) THEN 84 END + MAX ( - + 78 ) + 70 * - + 20 + + + 21 * 70 AS col0
----
1063483174
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6330
SELECT DISTINCT - 76 + + MAX( - 98 ) * + + 53 + - COUNT( * ) DIV NULLIF ( 40, 9 + - + 90 ) * - + 84 AS col2
----
-5270

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT - 76 + + MAX ( - 98 ) * + + 53 + - COUNT ( * ) / NULLIF ( 40, 9 + - + 90 ) * - + 84 AS col2
----
-5270

query I rowsort
SELECT ALL + - 90 + + 1 AS col2
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6332
SELECT ALL - COALESCE ( + - 72, + 83 ), - 72 + + - MIN( ALL - + 3 ) DIV SUM( 29 ) col2
----
72
-72

skipif mysql # not compatible
query II rowsort label-6332
SELECT ALL - COALESCE ( + - 72, + 83 ), - 72 + + - MIN ( ALL - + 3 ) / SUM ( 29 ) col2
----
72
-72

query I rowsort
SELECT 77 + 69 AS col2
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT 37 * + 91 - + COUNT( * ) * 28 * - - 58 + + 37 * - + 32 + - 23 + + + 39
----
575

skipif mysql # not compatible
query I rowsort label-6334
SELECT 37 * + 91 - + COUNT ( * ) * 28 * - - 58 + + 37 * - + 32 + - 23 + + + 39
----
575

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT COUNT( DISTINCT 0 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6336
SELECT COUNT ( DISTINCT 0 ) AS col0
----
1

query II rowsort
SELECT - - 97 AS col0, 28 + - - 28 AS col2
----
97
56

query I rowsort
SELECT ALL - 82 - + + 78
----
-160

query I rowsort
SELECT - 97 + + + 0 AS col0
----
-97

query I rowsort
SELECT + 66 * + 94 - 71 + 73 * 97
----
13214

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL NULLIF ( 35, + 40 + + - ( 5 ) * - 24 - COUNT( * ) )
----
35

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL NULLIF ( 35, + 40 + + - ( 5 ) * - 24 - COUNT ( * ) )
----
35

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

query II rowsort
SELECT ALL - 25 AS col0, 8
----
-25
8

query II rowsort
SELECT + 25 AS col0, + 98 * 37 AS col0
----
25
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ALL - ( CASE 36 WHEN - SUM( + + 70 ) + + 91 * + COUNT( * ) / + 80 THEN + - 52 / + + 59 + - 22 + - - COUNT( * ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6346
SELECT ALL - ( CASE 36 WHEN - SUM ( + + 70 ) + + 91 * + COUNT ( * ) / + 80 THEN + - 52 / + + 59 + - 22 + - - COUNT ( * ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT - + 50 * - COALESCE ( 62, - + 11 * + + 0 * - - 47 DIV + 26 - - 16, - 18, + + 7 ) * 34 + 21
----
105421

skipif mysql # not compatible
query I rowsort label-6347
SELECT - + 50 * - COALESCE ( 62, - + 11 * + + 0 * - - 47 / + 26 - - 16, - 18, + + 7 ) * 34 + 21
----
105421

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT + - COUNT( * ) * NULLIF ( 11, 48 - - MIN( DISTINCT + 1 ) * + 55 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-6348
SELECT + - COUNT ( * ) * NULLIF ( 11, 48 - - MIN ( DISTINCT + 1 ) * + 55 ) AS col0
----
-11

query I rowsort
SELECT - ( + 87 ) + + + 90 - - 98 + + + 31
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT COUNT( * ) * + - CASE 74 WHEN - 67 THEN + 48 END * CASE 74 WHEN + 36 + + + 73 + + 63 * + 85 + + + 89 THEN + 35 * + + 21 ELSE NULL END * + 45 + + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT COUNT ( * ) * + - CASE 74 WHEN - 67 THEN + 48 END * CASE 74 WHEN + 36 + + + 73 + + 63 * + 85 + + + 89 THEN + 35 * + + 21 ELSE NULL END * + 45 + + 13
----
NULL

query I rowsort
SELECT + 5 + + 98
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL - 36 + + 30 * - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - 36 + + 30 * - COUNT ( * ) AS col2
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT DISTINCT + 81 DIV + 48 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6353
SELECT DISTINCT + 81 / + 48 AS col1
----
1

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

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

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

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

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

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

query I rowsort
SELECT - 69 * + 37 AS col2
----
-2553

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT + 75 + - - 32 * + + 8 + + CASE - 98 WHEN + 58 * + SUM( 98 ) THEN - 57 END + - NULLIF ( + 0, 94 / + - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT + 75 + - - 32 * + + 8 + + CASE - 98 WHEN + 58 * + SUM ( 98 ) THEN - 57 END + - NULLIF ( + 0, 94 / + - 28 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - SUM( 91 ) * + COUNT( * ) + + 63 + + CASE - - 69 WHEN + 83 * + 53 THEN NULL WHEN + + COUNT( * ) - - CASE 32 WHEN + 90 THEN 78 WHEN + - 0 THEN + + 34 WHEN + 95 THEN 11 ELSE - 22 END THEN AVG ( ALL + 92 ) WHEN + 88 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT - SUM ( 91 ) * + COUNT ( * ) + + 63 + + CASE - - 69 WHEN + 83 * + 53 THEN NULL WHEN + + COUNT ( * ) - - CASE 32 WHEN + 90 THEN 78 WHEN + - 0 THEN + + 34 WHEN + 95 THEN 11 ELSE - 22 END THEN AVG ( ALL + 92 ) WHEN + 88 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT + 23 DIV - - 31 + - + 93 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-6360
SELECT + 23 / - - 31 + - + 93 AS col0
----
-93

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6363
SELECT + NULLIF ( 33, + 70 ) + - 70 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6363
SELECT + NULLIF ( 33, + 70 ) + - 70 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT ( - + 63 ) * COUNT( * ) - - 27 * - 36 + 57 * + 53
----
1986

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT ( - + 63 ) * COUNT ( * ) - - 27 * - 36 + 57 * + 53
----
1986

query I rowsort
SELECT DISTINCT + 68 * - 7 + - 76
----
-552

query I rowsort
SELECT CASE + + 81 WHEN - + 50 THEN - 18 + + 60 ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT COUNT( * ) * - 60 + COALESCE ( + 70, 91 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-6368
SELECT COUNT ( * ) * - 60 + COALESCE ( + 70, 91 ) AS col2
----
10

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

query I rowsort
SELECT - + 66 + - 8
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT + CAST( 39 AS SIGNED ) * - + 3
----
-117

skipif mysql # not compatible
query I rowsort label-6371
SELECT + CAST ( 39 AS INTEGER ) * - + 3
----
-117

query I rowsort
SELECT DISTINCT 93 * - 91 AS col1
----
-8463

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT ALL - + COUNT( * ) * + 71 + + 90 - - - 44 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL - + COUNT ( * ) * + 71 + + 90 - - - 44 AS col0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6374
SELECT + - 15 * MAX( DISTINCT - 27 ) + - ( - 10 ) + CASE - + 84 WHEN + 62 THEN CASE 65 WHEN + 95 + CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN + 20 THEN NULL ELSE - + 42 END * + 87 + - 98 END - + + 97 / - - 58 * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT + - 15 * MAX ( DISTINCT - 27 ) + - ( - 10 ) + CASE - + 84 WHEN + 62 THEN CASE 65 WHEN + 95 + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN + 20 THEN NULL ELSE - + 42 END * + 87 + - 98 END - + + 97 / - - 58 * 38
----
NULL

query I rowsort
SELECT ALL + - 71 * - 59 AS col0
----
4189

query I rowsort
SELECT - 51 * 79
----
-4029

query I rowsort
SELECT DISTINCT - 84 * + 62 + - 46 + + - 6 * 77
----
-5716

query II rowsort
SELECT - + 65 * - - 47, + 66 * + 91 AS col1
----
-3055
6006

query I rowsort
SELECT DISTINCT COALESCE ( - + 16, 23 + + + NULLIF ( - 47, - 19 ) ) AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT + - COUNT( DISTINCT + + 71 ) + + - 41
----
-42

skipif mysql # not compatible
query I rowsort label-6380
SELECT + - COUNT ( DISTINCT + + 71 ) + + - 41
----
-42

query I rowsort
SELECT - 53 + - 41 + 90 * + 51 * - - 92 col0
----
422186

query II rowsort
SELECT - 67 * + + 78 AS col1, + 80
----
-5226
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6383
SELECT - COUNT( * ) - + 65 AS col1, 45 + - CAST( NULL AS SIGNED ) - + 20 * + - COUNT( * ) * 5 / COUNT( * ) AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-6383
SELECT - COUNT ( * ) - + 65 AS col1, 45 + - CAST ( NULL AS INTEGER ) - + 20 * + - COUNT ( * ) * 5 / COUNT ( * ) AS col2
----
-66
NULL

query II rowsort
SELECT ALL + 77 * - 6 * + 63, 24 AS col2
----
-29106
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6385
SELECT - NULLIF ( + + COUNT( * ), - COALESCE ( + 86, + - 4 * - NULLIF ( - 71, 32 ) - + AVG ( + - 18 ) * - 72 + 82 / - - COUNT( * ) / + - ( + ( - NULLIF ( 45, 20 ) ) ) + 41 ) + 27 ) * + COALESCE ( - - 37, + 90 ) + 38 - 72
----
-71

skipif mysql # not compatible
query I rowsort label-6385
SELECT - NULLIF ( + + COUNT ( * ), - COALESCE ( + 86, + - 4 * - NULLIF ( - 71, 32 ) - + AVG ( + - 18 ) * - 72 + 82 / - - COUNT ( * ) / + - ( + ( - NULLIF ( 45, 20 ) ) ) + 41 ) + 27 ) * + COALESCE ( - - 37, + 90 ) + 38 - 72
----
-71

query I rowsort
SELECT DISTINCT + 95 * NULLIF ( 52, - 33 )
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT ALL 93 + SUM( ALL + + COALESCE ( - CASE + 92 WHEN 59 THEN - 76 + 80 END, - 4 ) ) + - ( - ( + + CASE 36 WHEN - 37 / - + 45 THEN NULL WHEN 15 THEN + 65 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6387
SELECT ALL 93 + SUM ( ALL + + COALESCE ( - CASE + 92 WHEN 59 THEN - 76 + 80 END, - 4 ) ) + - ( - ( + + CASE 36 WHEN - 37 / - + 45 THEN NULL WHEN 15 THEN + 65 END ) )
----
NULL

query I rowsort
SELECT - 99 + 88 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT - CASE - 38 WHEN - 63 THEN + - SUM( - + 86 ) ELSE NULL END * - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT - CASE - 38 WHEN - 63 THEN + - SUM ( - + 86 ) ELSE NULL END * - + 77
----
NULL

query I rowsort
SELECT - 75 * 74 * 53 AS col1
----
-294150

query II rowsort
SELECT 27, ( - + ( + 73 ) ) * - 46 + - + 14 AS col2
----
27
3344

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6393
SELECT + COUNT( * ) + - 55 * + - 80 * + + AVG ( ALL + 90 ) * ( - - CASE 78 WHEN - + 43 + COALESCE ( - + CAST( NULL AS SIGNED ), + 20 ) * 77 / - 81 THEN + + MIN( DISTINCT - + 2 ) END ) - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6393
SELECT + COUNT ( * ) + - 55 * + - 80 * + + AVG ( ALL + 90 ) * ( - - CASE 78 WHEN - + 43 + COALESCE ( - + CAST ( NULL AS INTEGER ), + 20 ) * 77 / - 81 THEN + + MIN ( DISTINCT - + 2 ) END ) - + 47
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT ALL 74 DIV - + 5 + - + 93 AS col1
----
-107

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL 74 / - + 5 + - + 93 AS col1
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6396
SELECT ALL CAST( - 11 AS SIGNED ) * - 13
----
143

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL CAST ( - 11 AS INTEGER ) * - 13
----
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6397
SELECT ALL - 18 DIV 99 * + 61 * + - COUNT( * ) + + + 90
----
90

skipif mysql # not compatible
query I rowsort label-6397
SELECT ALL - 18 / 99 * + 61 * + - COUNT ( * ) + + + 90
----
90

query I rowsort
SELECT + 9 * - + 65
----
-585

onlyif mysql # DIV for integer division: 
query I rowsort label-6399
SELECT DISTINCT - 33 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - 33 / - 95
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6400
SELECT + 85 * - COALESCE ( - + 74, 75 * CAST( - 7 AS SIGNED ) ) AS col2
----
6290

skipif mysql # not compatible
query I rowsort label-6400
SELECT + 85 * - COALESCE ( - + 74, 75 * CAST ( - 7 AS INTEGER ) ) AS col2
----
6290

query I rowsort
SELECT ALL 50 * + 25 * 63
----
78750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6402
SELECT 8 + + 90 * - ( + CASE + 51 WHEN + 30 THEN NULL WHEN - 91 + 27 + + + 45 * 90 * + + CAST( NULL AS SIGNED ) THEN - 82 END ) * CAST( 86 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT 8 + + 90 * - ( + CASE + 51 WHEN + 30 THEN NULL WHEN - 91 + 27 + + + 45 * 90 * + + CAST ( NULL AS INTEGER ) THEN - 82 END ) * CAST ( 86 AS INTEGER )
----
NULL

query I rowsort
SELECT 15 * + + 78 AS col2
----
1170

query I rowsort
SELECT ALL ( - 44 ) - + 83
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT COUNT( * ) - 52
----
-51

skipif mysql # not compatible
query I rowsort label-6405
SELECT COUNT ( * ) - 52
----
-51

query I rowsort
SELECT 43 * + 35 - ( + 26 )
----
1479

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT CASE 92 WHEN 38 + 19 THEN ( + COALESCE ( 46, ( 55 ) * + 7 + - AVG ( - 7 + + 95 ) DIV - 55 ) ) ELSE + 21 END * - COUNT( * ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-6407
SELECT CASE 92 WHEN 38 + 19 THEN ( + COALESCE ( 46, ( 55 ) * + 7 + - AVG ( - 7 + + 95 ) / - 55 ) ) ELSE + 21 END * - COUNT ( * ) AS col0
----
-21

query I rowsort
SELECT 53 + + 85
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL + 80 * - MIN( + 80 * ( CAST( NULL AS SIGNED ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL + 80 * - MIN ( + 80 * ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT COALESCE ( - COUNT( * ), + 49 * 59, + 35 + 97 ) * 25
----
-25

skipif mysql # not compatible
query I rowsort label-6410
SELECT COALESCE ( - COUNT ( * ), + 49 * 59, + 35 + 97 ) * 25
----
-25

query I rowsort
SELECT 43 + 59
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT 88 + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-6412
SELECT 88 + COUNT ( * )
----
89

query I rowsort
SELECT ALL 30 * - 12
----
-360

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT 94 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-6414
SELECT 94 / 71
----
1

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

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

query I rowsort
SELECT ( + 49 ) * 53 + + 84 AS col0
----
2681

query I rowsort
SELECT ALL 94 * + 78 AS col2
----
7332

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT 84 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-6418
SELECT 84 / 94
----
0

query I rowsort
SELECT DISTINCT - 36 + + 23
----
-13

query I rowsort
SELECT ALL 88 + + 47 AS col0
----
135

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

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL - COUNT ( * ) + ( 80 + + 40 ) / + 71
----
0

query I rowsort
SELECT 74 + 84
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-6423
SELECT 10 DIV + 32 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6423
SELECT 10 / + 32 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-6424
SELECT 19 * - SUM ( - ( CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT CAST( 29 AS SIGNED ) + - 10 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-6425
SELECT CAST ( 29 AS INTEGER ) + - 10 AS col1
----
19

query I rowsort
SELECT 99 + + 40 AS col0
----
139

query I rowsort
SELECT ALL + 46 * + 71 AS col1
----
3266

query I rowsort
SELECT 9 + - 65 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ALL COUNT( * ) + 60 col2
----
61

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL COUNT ( * ) + 60 col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6430
SELECT 25 + SUM( ALL - 64 )
----
-39

skipif mysql # not compatible
query I rowsort label-6430
SELECT 25 + SUM ( ALL - 64 )
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT ALL + NULLIF ( CAST( COUNT( 98 ) AS SIGNED ), 52 ) * 51 col2
----
51

skipif mysql # not compatible
query I rowsort label-6431
SELECT ALL + NULLIF ( CAST ( COUNT ( 98 ) AS INTEGER ), 52 ) * 51 col2
----
51

query I rowsort
SELECT DISTINCT - 29 * + 77
----
-2233

query I rowsort
SELECT 60 * - ( 83 ) AS col0
----
-4980

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT 6 + + MAX( DISTINCT 69 )
----
75

skipif mysql # not compatible
query I rowsort label-6434
SELECT 6 + + MAX ( DISTINCT 69 )
----
75

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

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

query I rowsort
SELECT 83 * + 25 AS col1
----
2075

query I rowsort
SELECT DISTINCT - 62 * + 92 AS col1
----
-5704

query I rowsort
SELECT - 86 * + 74
----
-6364

query I rowsort
SELECT 44 * - 60 AS col0
----
-2640

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT ALL - + 12 DIV 42 col1
----
0

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL - + 12 / 42 col1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT 62 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT 62 / 84
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL + COALESCE ( 22, + 58 + 72, 91 * 28 + - CASE 17 WHEN ( COALESCE ( AVG ( + 79 ), + 10 + 35 ) ) + + 83 THEN + COUNT( * ) WHEN - 18 THEN NULL ELSE 10 END * - SUM( ALL + 53 * 54 ) ) * 16 AS col1
----
352

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + COALESCE ( 22, + 58 + 72, 91 * 28 + - CASE 17 WHEN ( COALESCE ( AVG ( + 79 ), + 10 + 35 ) ) + + 83 THEN + COUNT ( * ) WHEN - 18 THEN NULL ELSE 10 END * - SUM ( ALL + 53 * 54 ) ) * 16 AS col1
----
352

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT + 20 * - ( 23 * - COUNT( * ) ) + + 34 * + ( + NULLIF ( COUNT( * ), + 71 * 63 ) * COUNT( DISTINCT - ( + 69 ) ) )
----
494

skipif mysql # not compatible
query I rowsort label-6445
SELECT + 20 * - ( 23 * - COUNT ( * ) ) + + 34 * + ( + NULLIF ( COUNT ( * ), + 71 * 63 ) * COUNT ( DISTINCT - ( + 69 ) ) )
----
494

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT 13 * MAX( DISTINCT - 88 ) AS col1
----
-1144

skipif mysql # not compatible
query I rowsort label-6446
SELECT 13 * MAX ( DISTINCT - 88 ) AS col1
----
-1144

query I rowsort
SELECT 31 + - 20 * 90 AS col1
----
-1769

query I rowsort
SELECT DISTINCT 27 + + 73 * + 70
----
5137

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

skipif mysql # not compatible
query I rowsort label-6449
SELECT DISTINCT - 49 * + COUNT ( * ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT DISTINCT COALESCE ( 41, 87, + COUNT( * ) + 53 ) + + 17
----
58

skipif mysql # not compatible
query I rowsort label-6450
SELECT DISTINCT COALESCE ( 41, 87, + COUNT ( * ) + 53 ) + + 17
----
58

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

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

query I rowsort
SELECT DISTINCT 89 + - 11
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT - 59 - ( COUNT( * ) ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6453
SELECT - 59 - ( COUNT ( * ) ) AS col2
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-6454
SELECT COALESCE ( - 25, - 49 * - 37, 67 + COALESCE ( COALESCE ( - 42, + 5 * - 43 ), 77, + 3 + - 61 ) DIV - 51 ) + - 96 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-6454
SELECT COALESCE ( - 25, - 49 * - 37, 67 + COALESCE ( COALESCE ( - 42, + 5 * - 43 ), 77, + 3 + - 61 ) / - 51 ) + - 96 AS col2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT ALL 40 DIV + 9 col2
----
4

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL 40 / + 9 col2
----
4

query I rowsort
SELECT 19 + 66 * 9 AS col2
----
613

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

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

query I rowsort
SELECT DISTINCT 46 + 15
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6459
SELECT ALL 10 * 40 * - CAST( 82 AS SIGNED )
----
-32800

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL 10 * 40 * - CAST ( 82 AS INTEGER )
----
-32800

query I rowsort
SELECT DISTINCT - 5 - - + 86 * - 77 AS col2
----
-6627

query I rowsort
SELECT DISTINCT 39 * + 56 AS col0
----
2184

query I rowsort
SELECT ALL + 42 - + 68
----
-26

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

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

query I rowsort
SELECT + 33 * + - 71 col2
----
-2343

query I rowsort
SELECT + 9 * + - 57
----
-513

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6466
SELECT + NULLIF ( 49, + CAST( NULL AS SIGNED ) ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-6466
SELECT + NULLIF ( 49, + CAST ( NULL AS INTEGER ) ) AS col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6467
SELECT DISTINCT - CAST( - 60 AS SIGNED ) * 37 AS col2
----
2220

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - CAST ( - 60 AS INTEGER ) * 37 AS col2
----
2220

query I rowsort
SELECT DISTINCT + + ( + NULLIF ( 72, - 12 ) ) AS col1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT ALL - + 51 * CAST( 51 AS SIGNED ) + + 95 * 78
----
4809

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - + 51 * CAST ( 51 AS INTEGER ) + + 95 * 78
----
4809

query I rowsort
SELECT + + 13 col0
----
13

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

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

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

query I rowsort
SELECT ALL - 72 * + + 20 AS col2
----
-1440

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT - MAX( - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-6474
SELECT - MAX ( - 72 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT + - 28 * - 35 * + CASE COUNT( + 3 ) WHEN + 92 THEN + 73 END + - MAX( 36 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6475
SELECT + - 28 * - 35 * + CASE COUNT ( + 3 ) WHEN + 92 THEN + 73 END + - MAX ( 36 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL 84 * - + ( + COALESCE ( 21, 97 * 49 - + 59 ) ) + 86
----
-1678

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT COALESCE ( + 57, + COUNT( * ) + - 76 ) * + 45 + 14
----
2579

skipif mysql # not compatible
query I rowsort label-6477
SELECT COALESCE ( + 57, + COUNT ( * ) + - 76 ) * + 45 + 14
----
2579

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT - 72 DIV + ( - 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6478
SELECT - 72 / + ( - 71 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - 77 + + COUNT( * ) * + 54 AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 77 + + COUNT ( * ) * + 54 AS col2
----
-23

query I rowsort
SELECT + - 76 - - 51
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT - - 7 * COUNT( * ) * 92 + ( 30 ) * + 91 col0
----
3374

skipif mysql # not compatible
query I rowsort label-6482
SELECT - - 7 * COUNT ( * ) * 92 + ( 30 ) * + 91 col0
----
3374

onlyif mysql # DIV for integer division: 
query I rowsort label-6483
SELECT + 11 + 56 DIV + - 7 + 15
----
18

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 11 + 56 / + - 7 + 15
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - 99 + + + CASE + + COUNT( * ) WHEN - NULLIF ( + MAX( 38 ), CASE - 88 WHEN + 77 * MAX( ALL 89 * + 67 ) + - 33 THEN + 58 WHEN 56 THEN NULL ELSE NULL END + COALESCE ( 14 + CASE WHEN NOT NULL BETWEEN ( MAX( DISTINCT - 15 ) ) AND ( NULL ) THEN NULL WHEN NOT 54 / 41 NOT IN ( - 50 / COUNT( * ) ) THEN ( COUNT( * ) ) END * 24, 37 * 30 ) * 69 ) THEN NULL WHEN 0 THEN NULL ELSE - 54 END + 72 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-6484
SELECT - 99 + + + CASE + + COUNT ( * ) WHEN - NULLIF ( + MAX ( 38 ), CASE - 88 WHEN + 77 * MAX ( ALL 89 * + 67 ) + - 33 THEN + 58 WHEN 56 THEN NULL ELSE NULL END + COALESCE ( 14 + CASE WHEN NOT NULL BETWEEN ( MAX ( DISTINCT - 15 ) ) AND ( NULL ) THEN NULL WHEN NOT 54 / 41 NOT IN ( - 50 / COUNT ( * ) ) THEN ( COUNT ( * ) ) END * 24, 37 * 30 ) * 69 ) THEN NULL WHEN 0 THEN NULL ELSE - 54 END + 72 AS col1
----
-81

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - NULLIF ( - 24, + COUNT( * ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6488
SELECT - NULLIF ( - 24, + COUNT ( * ) ) AS col2
----
24

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6490
SELECT ALL CAST( - - CASE + 22 WHEN CAST( NULL AS SIGNED ) THEN 94 WHEN 62 THEN CAST( CASE 84 WHEN - 70 THEN - AVG ( + 69 ) + - ( 42 ) ELSE 95 * - 98 + + 26 * + NULLIF ( - 69, 49 / + 40 + - ( COUNT( + 6 ) + 77 * + COUNT( * ) ) * ( + COUNT( * ) * NULLIF ( - ( 76 ), COUNT( * ) * + 10 ) ) ) END AS SIGNED ) WHEN - 79 THEN NULL END AS SIGNED ) - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6490
SELECT ALL CAST ( - - CASE + 22 WHEN CAST ( NULL AS INTEGER ) THEN 94 WHEN 62 THEN CAST ( CASE 84 WHEN - 70 THEN - AVG ( + 69 ) + - ( 42 ) ELSE 95 * - 98 + + 26 * + NULLIF ( - 69, 49 / + 40 + - ( COUNT ( + 6 ) + 77 * + COUNT ( * ) ) * ( + COUNT ( * ) * NULLIF ( - ( 76 ), COUNT ( * ) * + 10 ) ) ) END AS INTEGER ) WHEN - 79 THEN NULL END AS INTEGER ) - 15
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6492
SELECT 73 AS col0, + SUM( - 27 ) + - 43 * 9
----
73
-414

skipif mysql # not compatible
query II rowsort label-6492
SELECT 73 AS col0, + SUM ( - 27 ) + - 43 * 9
----
73
-414

query I rowsort
SELECT DISTINCT ( COALESCE ( 90, 13 ) ) - 58 * 28 AS col0
----
-1534

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6494
SELECT - 57 + + - CAST( NULL AS SIGNED ) / - - 80 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6494
SELECT - 57 + + - CAST ( NULL AS INTEGER ) / - - 80 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6495
SELECT 54 AS col0, CASE + - 57 WHEN + 41 + - COUNT( * ) THEN NULL WHEN SUM( - 24 ) / 29 THEN + 23 + + 8 * - 49 END AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-6495
SELECT 54 AS col0, CASE + - 57 WHEN + 41 + - COUNT ( * ) THEN NULL WHEN SUM ( - 24 ) / 29 THEN + 23 + + 8 * - 49 END AS col2
----
54
NULL

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

query I rowsort
SELECT + 50 + + 88
----
138

query I rowsort
SELECT + 9 * + 18
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + COUNT( * ) * - ( MAX( ALL ( + 95 ) ) ) * 59 col0
----
-5605

skipif mysql # not compatible
query I rowsort label-6499
SELECT + COUNT ( * ) * - ( MAX ( ALL ( + 95 ) ) ) * 59 col0
----
-5605

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6500
SELECT ALL COALESCE ( COUNT( * ), - + 76 * + CASE + CAST( COUNT( * ) AS SIGNED ) WHEN 44 + COUNT( * ) THEN 86 ELSE NULL END ) * ( 78 )
----
78

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL COALESCE ( COUNT ( * ), - + 76 * + CASE + CAST ( COUNT ( * ) AS INTEGER ) WHEN 44 + COUNT ( * ) THEN 86 ELSE NULL END ) * ( 78 )
----
78

query I rowsort
SELECT + 27 + - 41
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT + 3 + 87 * MAX( ALL + 81 ) * 86 AS col0
----
606045

skipif mysql # not compatible
query I rowsort label-6502
SELECT + 3 + 87 * MAX ( ALL + 81 ) * 86 AS col0
----
606045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6503
SELECT + - 12 DIV - COUNT( * ) + COALESCE ( + 98, - 47 * - 99 ) * - 26 AS col0
----
-2536

skipif mysql # not compatible
query I rowsort label-6503
SELECT + - 12 / - COUNT ( * ) + COALESCE ( + 98, - 47 * - 99 ) * - 26 AS col0
----
-2536

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT + + 83 * - + COUNT( * ) + + 33 + + 14 * 36 AS col0
----
454

skipif mysql # not compatible
query I rowsort label-6504
SELECT + + 83 * - + COUNT ( * ) + + 33 + + 14 * 36 AS col0
----
454

query I rowsort
SELECT + + 37 * 92
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT 32 * - SUM( - - ( 31 ) ) + - 18 + - 91
----
-1101

skipif mysql # not compatible
query I rowsort label-6506
SELECT 32 * - SUM ( - - ( 31 ) ) + - 18 + - 91
----
-1101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6507
SELECT ALL + 11 DIV - 63 + 94 * MIN( NULLIF ( + 32, 65 DIV COALESCE ( + CAST( NULL AS SIGNED ), + 38 + CAST( NULL AS DECIMAL ) * + 11, 27 * 99 - + 36 ) ) ) + + 79 * - 34
----
322

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL + 11 / - 63 + 94 * MIN ( NULLIF ( + 32, 65 / COALESCE ( + CAST ( NULL AS INTEGER ), + 38 + CAST ( NULL AS REAL ) * + 11, 27 * 99 - + 36 ) ) ) + + 79 * - 34
----
322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6508
SELECT - MAX( + CAST( + 85 AS SIGNED ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-6508
SELECT - MAX ( + CAST ( + 85 AS INTEGER ) ) AS col2
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ALL - 97 DIV - 52 + + - 94 + + 2 * + 36
----
-21

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL - 97 / - 52 + + - 94 + + 2 * + 36
----
-21

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

query I rowsort
SELECT ALL - + 32 * + 58
----
-1856

query I rowsort
SELECT DISTINCT + + NULLIF ( 87, - - 66 + - 70 )
----
87

query I rowsort
SELECT DISTINCT - 27 * + 8 AS col1
----
-216

query I rowsort
SELECT DISTINCT + - 23 AS col0
----
-23

query I rowsort
SELECT + + 10 * - 95
----
-950

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

skipif mysql # not compatible
query I rowsort label-6516
SELECT - + 5 + 67 + COUNT ( * ) AS col1
----
63

query I rowsort
SELECT ALL - + ( - 4 ) * + 76 AS col2
----
304

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

query I rowsort
SELECT - - 30 + - 92 AS col0
----
-62

query I rowsort
SELECT - 29 * - ( + 83 ) col2
----
2407

query I rowsort
SELECT NULLIF ( 76, 45 )
----
76

query I rowsort
SELECT - 17 + + + 70 + + 98 AS col2
----
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6523
SELECT ALL + CAST( - 62 AS SIGNED ) DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL + CAST ( - 62 AS INTEGER ) / 65
----
0

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

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

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

query I rowsort
SELECT 2 + - + 77 + 57
----
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - 27 * - NULLIF ( - 35, - COALESCE ( - 7, - COALESCE ( + 76, 97 / - COUNT( * ) ), 55 + 35 ) ) + 45 col1
----
-900

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 27 * - NULLIF ( - 35, - COALESCE ( - 7, - COALESCE ( + 76, 97 / - COUNT ( * ) ), 55 + 35 ) ) + 45 col1
----
-900

query I rowsort
SELECT 18 * - 56 AS col0
----
-1008

query I rowsort
SELECT 54 + + 82 AS col1
----
136

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

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

query I rowsort
SELECT ALL - ( + - 81 ) * + ( 52 )
----
4212

query I rowsort
SELECT 44 * ( - 43 )
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT DISTINCT + MIN( + - 89 ) + 31 col2
----
-58

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT + MIN ( + - 89 ) + 31 col2
----
-58

query I rowsort
SELECT ALL 49 + + + 36 * 80 AS col1
----
2929

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT - CASE COUNT( * ) WHEN - 56 THEN NULL WHEN 97 THEN 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6536
SELECT - CASE COUNT ( * ) WHEN - 56 THEN NULL WHEN 97 THEN 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT MAX( + + ( NULLIF ( - 5, 53 + - 50 ) ) ) + + CASE 9 WHEN - CASE + COUNT( * ) WHEN - 20 THEN 78 ELSE + 12 END - CASE - CASE WHEN NOT 81 IS NULL THEN + 43 END WHEN 76 * COUNT( * ) THEN + 18 ELSE SUM( 42 ) + + 19 END / - MIN( 28 ) THEN + 72 / 65 WHEN + 36 THEN - 48 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT MAX ( + + ( NULLIF ( - 5, 53 + - 50 ) ) ) + + CASE 9 WHEN - CASE + COUNT ( * ) WHEN - 20 THEN 78 ELSE + 12 END - CASE - CASE WHEN NOT 81 IS NULL THEN + 43 END WHEN 76 * COUNT ( * ) THEN + 18 ELSE SUM ( 42 ) + + 19 END / - MIN ( 28 ) THEN + 72 / 65 WHEN + 36 THEN - 48 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6538
SELECT + NULLIF ( MAX( 70 ), + COUNT( 68 ) + 21 * CAST( NULL AS SIGNED ) ) DIV + 52 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6538
SELECT + NULLIF ( MAX ( 70 ), + COUNT ( 68 ) + 21 * CAST ( NULL AS INTEGER ) ) / + 52 AS col2
----
1

query I rowsort
SELECT ALL - 20 + - + 95 + 82 * 81
----
6527

query I rowsort
SELECT DISTINCT + 62 + - 98 * - 22 AS col2
----
2218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6541
SELECT + CASE CASE - ( - 68 ) WHEN CASE COUNT( * ) WHEN ( 16 ) * - 80 THEN + CAST( 19 AS SIGNED ) END THEN 22 + + 64 * - 80 WHEN COALESCE ( 75, - 22 ) * 42 THEN + 52 * 35 END WHEN + 96 * + 81 THEN - 71 WHEN + COUNT( * ) THEN 63 + 7 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6541
SELECT + CASE CASE - ( - 68 ) WHEN CASE COUNT ( * ) WHEN ( 16 ) * - 80 THEN + CAST ( 19 AS INTEGER ) END THEN 22 + + 64 * - 80 WHEN COALESCE ( 75, - 22 ) * 42 THEN + 52 * 35 END WHEN + 96 * + 81 THEN - 71 WHEN + COUNT ( * ) THEN 63 + 7 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6542
SELECT - 81 DIV NULLIF ( - 7, + 55 ) * 48 AS col2
----
528

skipif mysql # not compatible
query I rowsort label-6542
SELECT - 81 / NULLIF ( - 7, + 55 ) * 48 AS col2
----
528

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT - 21 * - CAST( NULL AS SIGNED ) - - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6543
SELECT - 21 * - CAST ( NULL AS INTEGER ) - - 83
----
NULL

query I rowsort
SELECT 78 + 41 + 96 * 37 AS col0
----
3671

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + COUNT( * ) * 47 + + + 91 + + COUNT( * ) AS col0
----
139

skipif mysql # not compatible
query I rowsort label-6545
SELECT + COUNT ( * ) * 47 + + + 91 + + COUNT ( * ) AS col0
----
139

onlyif mysql # DIV for integer division: 
query II rowsort label-6546
SELECT ALL 78 DIV - 45, - 61 AS col2
----
-1
-61

skipif mysql # not compatible
query II rowsort label-6546
SELECT ALL 78 / - 45, - 61 AS col2
----
-1
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6547
SELECT 73 * 64 + - SUM( - - 37 ) + + CAST( NULL AS SIGNED ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT 73 * 64 + - SUM ( - - 37 ) + + CAST ( NULL AS INTEGER ) / - 15
----
NULL

query I rowsort
SELECT - ( + + 11 ) * + - 83 + - + 20
----
893

query I rowsort
SELECT 12 + - 54 + - 15 + - 99
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT + COUNT( * ) * + + ( 81 ) * + 6 * ( 18 ) AS col1
----
8748

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT + COUNT ( * ) * + + ( 81 ) * + 6 * ( 18 ) AS col1
----
8748

query I rowsort
SELECT 28 * 66 + - 5
----
1843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6552
SELECT 38 + - MIN( + CAST( NULL AS SIGNED ) ) * + 63 * - 67 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT 38 + - MIN ( + CAST ( NULL AS INTEGER ) ) * + 63 * - 67 * + 97
----
NULL

query I rowsort
SELECT 54 * 97 AS col2
----
5238

query II rowsort
SELECT ALL 82 AS col2, 16
----
82
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT 37 + - - MAX( + + 23 ) - ( - COUNT( * ) )
----
61

skipif mysql # not compatible
query I rowsort label-6555
SELECT 37 + - - MAX ( + + 23 ) - ( - COUNT ( * ) )
----
61

query II rowsort
SELECT ALL 90, 73 AS col2
----
90
73

query I rowsort
SELECT 44 * 68
----
2992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT DISTINCT + 39 + - 79 + + COUNT( * ) + 11 + + - 84 * - 65 AS col2
----
5432

skipif mysql # not compatible
query I rowsort label-6559
SELECT DISTINCT + 39 + - 79 + + COUNT ( * ) + 11 + + - 84 * - 65 AS col2
----
5432

query I rowsort
SELECT ALL - 84 + + 11 AS col2
----
-73

query I rowsort
SELECT 34 + 24
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6562
SELECT - COALESCE ( - COUNT( * ), - ( - 20 ) DIV CAST( 92 AS SIGNED ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6562
SELECT - COALESCE ( - COUNT ( * ), - ( - 20 ) / CAST ( 92 AS INTEGER ) ) AS col2
----
1

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6564
SELECT DISTINCT + CASE + - 46 WHEN - 36 / + 66 + + 65 THEN - 7 * CASE + 5 * - CAST( + 78 AS DECIMAL ) WHEN 83 THEN - 7 WHEN + CASE - 71 WHEN + COUNT( ( CAST( NULL AS DECIMAL ) ) ) + - 24 THEN NULL ELSE + 7 END THEN NULL END WHEN - 0 THEN 83 ELSE NULL END * 12 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT + CASE + - 46 WHEN - 36 / + 66 + + 65 THEN - 7 * CASE + 5 * - CAST ( + 78 AS REAL ) WHEN 83 THEN - 7 WHEN + CASE - 71 WHEN + COUNT ( ( CAST ( NULL AS REAL ) ) ) + - 24 THEN NULL ELSE + 7 END THEN NULL END WHEN - 0 THEN 83 ELSE NULL END * 12 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6565
SELECT ALL - + 61 + 83 DIV - 81 - 46 * - 88 AS col0
----
3986

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - + 61 + 83 / - 81 - 46 * - 88 AS col0
----
3986

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT - ( - COUNT( * ) ) + 81 * 24 AS col1
----
1945

skipif mysql # not compatible
query I rowsort label-6566
SELECT - ( - COUNT ( * ) ) + 81 * 24 AS col1
----
1945

query I rowsort
SELECT - 52 + + - 47
----
-99

query II rowsort
SELECT + + 0 col0, 24 * + + 26 AS col1
----
0
624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6569
SELECT - + CAST( NULL AS SIGNED ) * - 83 * - 78 / 92 * - + ( COUNT( * ) ) + 14 + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6569
SELECT - + CAST ( NULL AS INTEGER ) * - 83 * - 78 / 92 * - + ( COUNT ( * ) ) + 14 + - 5 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + COUNT( * ) * + 31 * - 27 * + 16 * NULLIF ( + ( ( - 38 ) ), 17 * 49 )
----
508896

skipif mysql # not compatible
query I rowsort label-6570
SELECT + COUNT ( * ) * + 31 * - 27 * + 16 * NULLIF ( + ( ( - 38 ) ), 17 * 49 )
----
508896

query I rowsort
SELECT + 88 * + + 74
----
6512

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6572
SELECT - 93 DIV + MAX( DISTINCT - 88 ) + ( - + 75 ) - 14 * 38 + 81 AS col0
----
-525

skipif mysql # not compatible
query I rowsort label-6572
SELECT - 93 / + MAX ( DISTINCT - 88 ) + ( - + 75 ) - 14 * 38 + 81 AS col0
----
-525

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

query I rowsort
SELECT - 55 * 37
----
-2035

query I rowsort
SELECT DISTINCT - - 56 * - 30 + - 86
----
-1766

query II rowsort
SELECT DISTINCT + 61, + 45 col2
----
61
45

query I rowsort
SELECT ALL 76 * + + 32 AS col0
----
2432

query I rowsort
SELECT - 81 * + - 62 AS col1
----
5022

query II rowsort
SELECT + 66, - 41 col0
----
66
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-6580
SELECT SUM( 72 ) AS col2, + 50
----
72
50

skipif mysql # not compatible
query II rowsort label-6580
SELECT SUM ( 72 ) AS col2, + 50
----
72
50

query I rowsort
SELECT + 16 * 34
----
544

query I rowsort
SELECT + 22 * + 15 AS col2
----
330

onlyif mysql # DIV for integer division: 
query I rowsort label-6583
SELECT + 40 DIV + - 63 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT + 40 / + - 63 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT + 10 - - 85 * + - 38 * - COUNT( * ) col0
----
3240

skipif mysql # not compatible
query I rowsort label-6585
SELECT + 10 - - 85 * + - 38 * - COUNT ( * ) col0
----
3240

query I rowsort
SELECT ALL 98 * 82 AS col0
----
8036

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL COUNT( * ) + - - 39
----
40

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL COUNT ( * ) + - - 39
----
40

query I rowsort
SELECT - CASE - + 2 WHEN + 92 THEN + 90 * - 30 + + 50 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 52 + + 75
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-6590
SELECT - 44 AS col1, MAX( DISTINCT - 92 ) * + + 1 * 63 * MAX( DISTINCT NULLIF ( 9, 63 * 3 ) ) AS col2
----
-44
-52164

skipif mysql # not compatible
query II rowsort label-6590
SELECT - 44 AS col1, MAX ( DISTINCT - 92 ) * + + 1 * 63 * MAX ( DISTINCT NULLIF ( 9, 63 * 3 ) ) AS col2
----
-44
-52164

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT - MIN( DISTINCT 93 ) + CASE + + 48 WHEN + 95 THEN + + 77 WHEN 75 THEN 12 ELSE NULL END * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-6591
SELECT - MIN ( DISTINCT 93 ) + CASE + + 48 WHEN + 95 THEN + + 77 WHEN 75 THEN 12 ELSE NULL END * + 68
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6592
SELECT 8 AS col2, - ( + COUNT( * ) ) DIV + 30 AS col2
----
8
0

skipif mysql # not compatible
query II rowsort label-6592
SELECT 8 AS col2, - ( + COUNT ( * ) ) / + 30 AS col2
----
8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6593
SELECT - 50 + - CASE - COUNT( * ) WHEN + 69 THEN + 59 END / - COUNT( * ) / + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 50 + - CASE - COUNT ( * ) WHEN + 69 THEN + 59 END / - COUNT ( * ) / + 91 AS col1
----
NULL

query II rowsort
SELECT 21 AS col0, - 31
----
21
-31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + - 50 * + 88 * 78 * - 8 + + - COUNT( - 7 ) * - 33
----
2745633

skipif mysql # not compatible
query I rowsort label-6596
SELECT + - 50 * + 88 * 78 * - 8 + + - COUNT ( - 7 ) * - 33
----
2745633

query III rowsort
SELECT DISTINCT - 72 col2, - 35 AS col1, - 34 AS col2
----
-72
-35
-34

query I rowsort
SELECT - + 75 + - 34
----
-109

query I rowsort
SELECT ALL 84 - - 78 AS col0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT - + 67 DIV + 17
----
-3

skipif mysql # not compatible
query I rowsort label-6600
SELECT - + 67 / + 17
----
-3

query II rowsort
SELECT - + 13 AS col2, 99 + - 14 AS col0
----
-13
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6602
SELECT 79 AS col0, CAST( + 44 AS SIGNED ) AS col2
----
79
44

skipif mysql # not compatible
query II rowsort label-6602
SELECT 79 AS col0, CAST ( + 44 AS INTEGER ) AS col2
----
79
44

query I rowsort
SELECT ALL - - 33 * + 81 AS col0
----
2673

query I rowsort
SELECT - 3 - + 50 + 39
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6605
SELECT - NULLIF ( 41, - 97 ) - - COUNT( * ) DIV + + 51 + - - 43
----
2

skipif mysql # not compatible
query I rowsort label-6605
SELECT - NULLIF ( 41, - 97 ) - - COUNT ( * ) / + + 51 + - - 43
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT DISTINCT + + 20 * + NULLIF ( - COUNT( * ), + + 80 ), - 95 AS col1
----
-20
-95

skipif mysql # not compatible
query II rowsort label-6606
SELECT DISTINCT + + 20 * + NULLIF ( - COUNT ( * ), + + 80 ), - 95 AS col1
----
-20
-95

query I rowsort
SELECT COALESCE ( + + 10, + 67 + 68 )
----
10

query I rowsort
SELECT ALL - - 53 * + 99 AS col0
----
5247

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT DISTINCT + - COUNT( * ), 48 + + 13 + COUNT( * ) * - - MAX( ALL + ( - 61 ) ) col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-6609
SELECT DISTINCT + - COUNT ( * ), 48 + + 13 + COUNT ( * ) * - - MAX ( ALL + ( - 61 ) ) col2
----
-1
0

query II rowsort
SELECT + - 30 AS col1, - 15 * + ( - 81 ) * - 77 * + ( 17 ) AS col1
----
-30
-1590435

query I rowsort
SELECT - 58 * + 25
----
-1450

query I rowsort
SELECT ( - - ( 94 ) )
----
94

query II rowsort
SELECT ( - 23 ) AS col0, + 38 AS col0
----
-23
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6614
SELECT + CASE + 48 WHEN - CASE 32 WHEN - CAST( NULL AS SIGNED ) THEN - 55 ELSE NULL END * - 88 THEN COUNT( * ) WHEN + 60 * 61 + + 31 THEN - 61 + ( - 32 + 50 * 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6614
SELECT + CASE + 48 WHEN - CASE 32 WHEN - CAST ( NULL AS INTEGER ) THEN - 55 ELSE NULL END * - 88 THEN COUNT ( * ) WHEN + 60 * 61 + + 31 THEN - 61 + ( - 32 + 50 * 17 ) END
----
NULL

query II rowsort
SELECT + 99 * + 98, + 1 col0
----
9702
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6616
SELECT DISTINCT - CASE - 50 WHEN + - 40 THEN COUNT( * ) * - NULLIF ( + - CASE - + ( - COUNT( * ) ) WHEN CAST( NULL AS SIGNED ) THEN - 56 END, 69 * + 39 ) * - 72 + - 11 END * - 3 + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT DISTINCT - CASE - 50 WHEN + - 40 THEN COUNT ( * ) * - NULLIF ( + - CASE - + ( - COUNT ( * ) ) WHEN CAST ( NULL AS INTEGER ) THEN - 56 END, 69 * + 39 ) * - 72 + - 11 END * - 3 + 68 AS col0
----
NULL

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

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

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

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

query I rowsort
SELECT - 27 * 8 AS col0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT 20 * + - COUNT( * ) + - - ( + NULLIF ( 67, - 22 ) ) * + 36
----
2392

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT 20 * + - COUNT ( * ) + - - ( + NULLIF ( 67, - 22 ) ) * + 36
----
2392

onlyif mysql # aggregate syntax: 
query II rowsort label-6621
SELECT ALL 89 * 1 * + 73 + + SUM( DISTINCT 17 ), + 22 AS col2
----
6514
22

skipif mysql # not compatible
query II rowsort label-6621
SELECT ALL 89 * 1 * + 73 + + SUM ( DISTINCT 17 ), + 22 AS col2
----
6514
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT + SUM( 73 ) * + + 75 * + 29 * + COUNT( * ) AS col2
----
158775

skipif mysql # not compatible
query I rowsort label-6623
SELECT + SUM ( 73 ) * + + 75 * + 29 * + COUNT ( * ) AS col2
----
158775

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT ALL 8 DIV - + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL 8 / - + 31 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT MIN( ALL + - CASE 73 WHEN 32 * + 77 THEN CAST( + 16 AS SIGNED ) ELSE COALESCE ( - 17, 92 - 95, 80 ) END )
----
17

skipif mysql # not compatible
query I rowsort label-6625
SELECT MIN ( ALL + - CASE 73 WHEN 32 * + 77 THEN CAST ( + 16 AS INTEGER ) ELSE COALESCE ( - 17, 92 - 95, 80 ) END )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL 57 * + ( + - 35 ) * - 41 * MAX( + ( + - 1 ) ) - + 39
----
-81834

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL 57 * + ( + - 35 ) * - 41 * MAX ( + ( + - 1 ) ) - + 39
----
-81834

query I rowsort
SELECT DISTINCT 33 * 20
----
660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6628
SELECT ALL + 76 - CAST( + + 39 AS SIGNED )
----
37

skipif mysql # not compatible
query I rowsort label-6628
SELECT ALL + 76 - CAST ( + + 39 AS INTEGER )
----
37

query I rowsort
SELECT + - 96 - 78 + 59 * - 94 col1
----
-5720

query I rowsort
SELECT + + 27 + 64 AS col0
----
91

query I rowsort
SELECT + ( + 73 ) - + - 17
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT + 87 + - 76 + ( MIN( ALL + + 98 ) ) AS col1
----
109

skipif mysql # not compatible
query I rowsort label-6632
SELECT + 87 + - 76 + ( MIN ( ALL + + 98 ) ) AS col1
----
109

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

query I rowsort
SELECT - ( 35 ) * CASE COALESCE ( + 88, + - 42 + - - 51, 64 + + ( 16 ) ) WHEN + 88 THEN - 67 WHEN + 81 THEN 99 END + + 29
----
2374

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT ALL MIN( DISTINCT - 41 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6635
SELECT ALL MIN ( DISTINCT - 41 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT - 28 + MAX( + - 81 ) + + - COUNT( * ) * 46
----
-155

skipif mysql # not compatible
query I rowsort label-6636
SELECT - 28 + MAX ( + - 81 ) + + - COUNT ( * ) * 46
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT ALL - 0 / + 76 + + ( NULLIF ( + MIN( ALL 43 ), - COUNT( * ) + - COUNT( 15 ) * - 38 ) ) - 18 * ( CASE - COUNT( * ) WHEN - ( 84 ) THEN - CASE - 48 WHEN + COALESCE ( 65, 9 ) THEN NULL WHEN NULLIF ( 47, + 59 ) THEN 63 END WHEN + 82 THEN NULL END - 65 * ( + 23 * 7 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6637
SELECT ALL - 0 / + 76 + + ( NULLIF ( + MIN ( ALL 43 ), - COUNT ( * ) + - COUNT ( 15 ) * - 38 ) ) - 18 * ( CASE - COUNT ( * ) WHEN - ( 84 ) THEN - CASE - 48 WHEN + COALESCE ( 65, 9 ) THEN NULL WHEN NULLIF ( 47, + 59 ) THEN 63 END WHEN + 82 THEN NULL END - 65 * ( + 23 * 7 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT ALL + 56 DIV COALESCE ( - + COUNT( * ), - COALESCE ( - 18, + 34 + 54, 98 * + COUNT( * ) - + 82 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + 56 / COALESCE ( - + COUNT ( * ), - COALESCE ( - 18, + 34 + 54, 98 * + COUNT ( * ) - + 82 ) )
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT COUNT( * ) * + 8, - 48 col2
----
8
-48

skipif mysql # not compatible
query II rowsort label-6639
SELECT COUNT ( * ) * + 8, - 48 col2
----
8
-48

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

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

query I rowsort
SELECT ALL - 97 + - 13
----
-110

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT 28 * COUNT( * ) * + 19 col0, 74 * + 14
----
532
1036

skipif mysql # not compatible
query II rowsort label-6643
SELECT 28 * COUNT ( * ) * + 19 col0, 74 * + 14
----
532
1036

query I rowsort
SELECT ALL + 24 * + - 54 AS col2
----
-1296

query I rowsort
SELECT ALL - 70 + + 62
----
-8

query I rowsort
SELECT ALL + 98 + 69 * 81
----
5687

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6648
SELECT DISTINCT - 53 + - COALESCE ( - 52, - 28 DIV - 88, 47 ) * + - 1 * COUNT( * ) - - 28 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - 53 + - COALESCE ( - 52, - 28 / - 88, 47 ) * + - 1 * COUNT ( * ) - - 28 AS col0
----
-77

query II rowsort
SELECT 82 * ( + 10 ) AS col2, 70 col1
----
820
70

query I rowsort
SELECT ALL - 35 - + ( 72 ) + + CASE 19 WHEN - + 66 THEN - 24 WHEN + 91 THEN NULL ELSE - 75 END AS col0
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT 53 * COUNT( DISTINCT - 95 )
----
53

skipif mysql # not compatible
query I rowsort label-6651
SELECT 53 * COUNT ( DISTINCT - 95 )
----
53

query II rowsort
SELECT ALL - 33, 31 - - 67 AS col0
----
-33
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6653
SELECT DISTINCT - 4, + COUNT( * ) + ( - 1 ) * 20 * 25 + - + CAST( NULL AS SIGNED ) AS col1
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-6653
SELECT DISTINCT - 4, + COUNT ( * ) + ( - 1 ) * 20 * 25 + - + CAST ( NULL AS INTEGER ) AS col1
----
-4
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT DISTINCT 2 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6654
SELECT DISTINCT 2 * - COUNT ( * ) AS col1
----
-2

query I rowsort
SELECT - + CASE - + 55 WHEN 44 THEN + 50 * CASE 19 WHEN 19 THEN + 98 + 75 * 50 WHEN - 6 * 67 THEN NULL ELSE 79 END + 1 * 57 ELSE NULL END AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6657
SELECT + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1
----
NULL

query II rowsort
SELECT 19 * 31 + + - 44, + 97 AS col1
----
545
97

query I rowsort
SELECT - 49 * + 68 AS col2
----
-3332

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT 50 + + + CASE + MAX( 22 ) WHEN + 79 THEN 95 END + 62 + CAST( NULL AS SIGNED ) + + COALESCE ( - 65, 77 ) / + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-6660
SELECT 50 + + + CASE + MAX ( 22 ) WHEN + 79 THEN 95 END + 62 + CAST ( NULL AS INTEGER ) + + COALESCE ( - 65, 77 ) / + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT DISTINCT CASE - MIN( + 65 ) WHEN ( - 14 ) * + 22 THEN NULL ELSE - 16 END * + 24 - + ( - 39 ) AS col0
----
-345

skipif mysql # not compatible
query I rowsort label-6661
SELECT DISTINCT CASE - MIN ( + 65 ) WHEN ( - 14 ) * + 22 THEN NULL ELSE - 16 END * + 24 - + ( - 39 ) AS col0
----
-345

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

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

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

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

query I rowsort
SELECT 42 * + 28 AS col2
----
1176

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - COALESCE ( + 76, - - SUM( DISTINCT - 4 ) * - + 34, + + COUNT( * ) ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-6666
SELECT - COALESCE ( + 76, - - SUM ( DISTINCT - 4 ) * - + 34, + + COUNT ( * ) ) AS col1
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6667
SELECT ALL 51 * COUNT( * ) DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL 51 * COUNT ( * ) / - 49
----
-1

query II rowsort
SELECT ALL - 71 * 82 * + 33 AS col0, 27 * - 97 col2
----
-192126
-2619

query I rowsort
SELECT 68 * - 3 * - - 5 + - 81
----
-1101

query I rowsort
SELECT DISTINCT + 27 + 62
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6671
SELECT ALL 18 + - 34 + + 90 * + + COALESCE ( - 57, - + NULLIF ( - ( - 17 ), ( 78 ) * + NULLIF ( 43 + COUNT( * ), CAST( NULL AS SIGNED ) * + 44 ) + COALESCE ( + 41, - AVG ( ALL 90 ), + MIN( DISTINCT 71 ) * + 92 ) ) + 86 )
----
-5146

skipif mysql # not compatible
query I rowsort label-6671
SELECT ALL 18 + - 34 + + 90 * + + COALESCE ( - 57, - + NULLIF ( - ( - 17 ), ( 78 ) * + NULLIF ( 43 + COUNT ( * ), CAST ( NULL AS INTEGER ) * + 44 ) + COALESCE ( + 41, - AVG ( ALL 90 ), + MIN ( DISTINCT 71 ) * + 92 ) ) + 86 )
----
-5146

query I rowsort
SELECT 47 * - 25
----
-1175

query I rowsort
SELECT DISTINCT + 77 * - - 28
----
2156

query I rowsort
SELECT ALL + 38 + 94 * 12
----
1166

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT - 69 DIV + + 87 - 72 col2
----
-72

skipif mysql # not compatible
query I rowsort label-6675
SELECT - 69 / + + 87 - 72 col2
----
-72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT MAX( DISTINCT + 93 ) col1
----
93

skipif mysql # not compatible
query I rowsort label-6677
SELECT MAX ( DISTINCT + 93 ) col1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL ( + 62 ) + 76 * + COUNT( DISTINCT + + ( - 44 ) ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL ( + 62 ) + 76 * + COUNT ( DISTINCT + + ( - 44 ) ) AS col0
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-6679
SELECT - 6 DIV - - 58 + 22 * - + 38 * - - 83 col2
----
-69388

skipif mysql # not compatible
query I rowsort label-6679
SELECT - 6 / - - 58 + 22 * - + 38 * - - 83 col2
----
-69388

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT + COUNT( * ) * 35 - + 21 + - COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-6680
SELECT + COUNT ( * ) * 35 - + 21 + - COUNT ( * )
----
13

query I rowsort
SELECT 37 + - ( - 80 ) + - 19
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6682
SELECT MAX( NULLIF ( - - ( + + CASE 24 WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 84 THEN ( - - 31 ) - 81 * 69 END ), 35 - - 82 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6682
SELECT MAX ( NULLIF ( - - ( + + CASE 24 WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 84 THEN ( - - 31 ) - 81 * 69 END ), 35 - - 82 ) )
----
NULL

query I rowsort
SELECT 88 * 51
----
4488

query I rowsort
SELECT ALL + 94 * + - 23
----
-2162

query II rowsort
SELECT ALL - ( 26 ) AS col0, ( 93 ) col1
----
-26
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT + MAX( DISTINCT 2 ) * - + 81 + - - ( 74 ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-6686
SELECT + MAX ( DISTINCT 2 ) * - + 81 + - - ( 74 ) AS col2
----
-88

query I rowsort
SELECT ALL 79 - 66
----
13

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6688
SELECT 88 * + COALESCE ( MAX( DISTINCT - 7 ), + - MAX( ALL 42 ) * - 99 * - 47 + 67 ) * - ( NULLIF ( + CAST( NULL AS DECIMAL ), - 88 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT 88 * + COALESCE ( MAX ( DISTINCT - 7 ), + - MAX ( ALL 42 ) * - 99 * - 47 + 67 ) * - ( NULLIF ( + CAST ( NULL AS REAL ), - 88 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6689
SELECT + COALESCE ( + 68, - 46 + 26 + + COUNT( * ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6689
SELECT + COALESCE ( + 68, - 46 + 26 + + COUNT ( * ) ) AS col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - 47 * COUNT( * ) + - 9 - + COUNT( ALL - 82 ) + + 9 * ( - 4 )
----
-93

skipif mysql # not compatible
query I rowsort label-6690
SELECT - 47 * COUNT ( * ) + - 9 - + COUNT ( ALL - 82 ) + + 9 * ( - 4 )
----
-93

query I rowsort
SELECT - 47 * ( - 17 ) AS col0
----
799

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6693
SELECT + 69 + 91 AS col1, + COUNT( * ) - 10 AS col0
----
160
-9

skipif mysql # not compatible
query II rowsort label-6693
SELECT + 69 + 91 AS col1, + COUNT ( * ) - 10 AS col0
----
160
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT ALL - MIN( ALL - - 31 )
----
-31

skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL - MIN ( ALL - - 31 )
----
-31

query I rowsort
SELECT ( - 24 ) + 73 + + 33
----
82

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

skipif mysql # not compatible
query I rowsort label-6696
SELECT - + ( - SUM ( + + 83 ) )
----
83

query I rowsort
SELECT ALL - 64 + - 88 AS col0
----
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT ALL + COUNT( * ) * - 80 * - 36 AS col2
----
2880

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + COUNT ( * ) * - 80 * - 36 AS col2
----
2880

query I rowsort
SELECT DISTINCT + 42 + + + 31
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT - 49 + - - ( - COUNT( * ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6700
SELECT - 49 + - - ( - COUNT ( * ) ) AS col2
----
-50

query II rowsort
SELECT + 19 - 19 AS col0, + 7 * - + 92 AS col2
----
0
-644

query I rowsort
SELECT ALL - + 34 + + + 28 + 8 * 37
----
290

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6704
SELECT - - COUNT( * ) + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6704
SELECT - - COUNT ( * ) + + COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT ALL + - 42 + COUNT( DISTINCT 11 ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL + - 42 + COUNT ( DISTINCT 11 ) col0
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6706
SELECT + 87 + COUNT( ALL - 44 ) + - + 36 DIV + 82 * + 93, + COUNT( * ) AS col0
----
88
1

skipif mysql # not compatible
query II rowsort label-6706
SELECT + 87 + COUNT ( ALL - 44 ) + - + 36 / + 82 * + 93, + COUNT ( * ) AS col0
----
88
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL + ( + + NULLIF ( + MAX( DISTINCT + - ( - + 56 ) ), - NULLIF ( - + 71, - COUNT( * ) ) + + 88 ) ) + + 93 + 71 AS col1
----
220

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL + ( + + NULLIF ( + MAX ( DISTINCT + - ( - + 56 ) ), - NULLIF ( - + 71, - COUNT ( * ) ) + + 88 ) ) + + 93 + 71 AS col1
----
220

query I rowsort
SELECT DISTINCT 34 * + - 5
----
-170

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT + MAX( + 71 ) col1
----
71

skipif mysql # not compatible
query I rowsort label-6711
SELECT + MAX ( + 71 ) col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL 65 * COUNT( * ) - - 70
----
135

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL 65 * COUNT ( * ) - - 70
----
135

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

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

query I rowsort
SELECT 7 * + + 89 * - + 97 + - 17 AS col1
----
-60448

query I rowsort
SELECT ALL 92 * + 60
----
5520

query I rowsort
SELECT DISTINCT + 1 col1
----
1

query I rowsort
SELECT DISTINCT 38 * 70
----
2660

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + COUNT( * ) - 57
----
-56

skipif mysql # not compatible
query I rowsort label-6719
SELECT + COUNT ( * ) - 57
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6720
SELECT CASE - 99 WHEN 69 * COUNT( - 81 ) THEN NULL WHEN 33 / + 9 THEN NULL ELSE - 39 END, CAST( - 2 AS SIGNED ) AS col1
----
-39
-2

skipif mysql # not compatible
query II rowsort label-6720
SELECT CASE - 99 WHEN 69 * COUNT ( - 81 ) THEN NULL WHEN 33 / + 9 THEN NULL ELSE - 39 END, CAST ( - 2 AS INTEGER ) AS col1
----
-39
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6721
SELECT ALL + COUNT( * ) DIV + - CAST( - COUNT( - + 0 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + COUNT ( * ) / + - CAST ( - COUNT ( - + 0 ) AS INTEGER ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6722
SELECT + + 39 DIV - 75 - - 27 + + 3
----
30

skipif mysql # not compatible
query I rowsort label-6722
SELECT + + 39 / - 75 - - 27 + + 3
----
30

query II rowsort
SELECT 94 AS col1, 38
----
94
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT 45 * 98 + + + COUNT( DISTINCT + 24 ) AS col0
----
4411

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT 45 * 98 + + + COUNT ( DISTINCT + 24 ) AS col0
----
4411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6725
SELECT ALL - - 89 * - + CASE CAST( NULL AS SIGNED ) WHEN 7 * 98 THEN + 55 * - MIN( - 68 ) + - - COUNT( * ) * + 46 / - 1 - + COUNT( * ) WHEN - 4 THEN NULL WHEN COUNT( * ) THEN + 70 - 41 END + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - - 89 * - + CASE CAST ( NULL AS INTEGER ) WHEN 7 * 98 THEN + 55 * - MIN ( - 68 ) + - - COUNT ( * ) * + 46 / - 1 - + COUNT ( * ) WHEN - 4 THEN NULL WHEN COUNT ( * ) THEN + 70 - 41 END + 11
----
NULL

query II rowsort
SELECT - + 5 AS col0, 77 AS col0
----
-5
77

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

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

query II rowsort
SELECT DISTINCT + - 24 * + - 43 * - ( + + 34 ) + 85 col1, + 78
----
-35003
78

query I rowsort
SELECT + - 38 * - 62 AS col0
----
2356

query I rowsort
SELECT - - 52 * + 16 * - + 58 + - + 87
----
-48343

query I rowsort
SELECT - - 74 - - + 77
----
151

query I rowsort
SELECT ALL + 77 + 26
----
103

query I rowsort
SELECT - 83 * - - 10
----
-830

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

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

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

query I rowsort
SELECT ALL - 28 * - ( - 86 ) AS col0
----
-2408

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT NULLIF ( - CASE - 21 WHEN - COUNT( * ) THEN - COUNT( * ) ELSE - 16 + - + 28 * - 60 END, 54 / - 13 ) col1
----
-1664

skipif mysql # not compatible
query I rowsort label-6737
SELECT NULLIF ( - CASE - 21 WHEN - COUNT ( * ) THEN - COUNT ( * ) ELSE - 16 + - + 28 * - 60 END, 54 / - 13 ) col1
----
-1664

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6738
SELECT DISTINCT + 84 - - 46 + - ( + + COUNT( * ) ) DIV + 76 + + 93 AS col1, + 78
----
223
78

skipif mysql # not compatible
query II rowsort label-6738
SELECT DISTINCT + 84 - - 46 + - ( + + COUNT ( * ) ) / + 76 + + 93 AS col1, + 78
----
223
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT - MIN( 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6739
SELECT - MIN ( 54 ) AS col2
----
-54

query I rowsort
SELECT - 52 + + 2 + 69 col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT - SUM( ALL 37 )
----
-37

skipif mysql # not compatible
query I rowsort label-6741
SELECT - SUM ( ALL 37 )
----
-37

query I rowsort
SELECT - 16 * + 62
----
-992

query I rowsort
SELECT - COALESCE ( - 87, - 51 + - - 88 + + 62 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT - 45 * - + NULLIF ( 44, + 33 ) * + + 20 + + CASE + 27 WHEN - - ( + 39 ) + + - 76 + ( + 42 ) THEN NULL WHEN 94 * 2 + 41 THEN + 55 + 25 END + - COUNT( * ) * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT - 45 * - + NULLIF ( 44, + 33 ) * + + 20 + + CASE + 27 WHEN - - ( + 39 ) + + - 76 + ( + 42 ) THEN NULL WHEN 94 * 2 + 41 THEN + 55 + 25 END + - COUNT ( * ) * 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT - COUNT( * ) - 47
----
-48

skipif mysql # not compatible
query I rowsort label-6745
SELECT - COUNT ( * ) - 47
----
-48

query I rowsort
SELECT - 80 * NULLIF ( + - 50, + 56 * - + 7 + 76 * - 10 + - 55 )
----
4000

query II rowsort
SELECT - 98 - + - 92 AS col0, + 54
----
-6
54

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL - 76 DIV - COALESCE ( + - ( 91 ), + - 87 + - - 15 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL - 76 / - COALESCE ( + - ( 91 ), + - 87 + - - 15 ) col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6750
SELECT + SUM( DISTINCT 45 ) DIV NULLIF ( 1, + - 23 ) + - COALESCE ( + + CASE + CASE + 92 WHEN 91 - - - ( CAST( + COUNT( * ) AS SIGNED ) ) + + COALESCE ( + COUNT( * ), MIN( ALL 54 ) ) * - 80 * COALESCE ( + 26, COUNT( DISTINCT NULLIF ( 12, 58 * 71 ) ) * 37 ) THEN NULL WHEN 59 THEN NULL ELSE NULLIF ( - ( COUNT( * ) ), - 38 + ( 79 ) * 11 ) * + 75 END WHEN - COUNT( * ) + - NULLIF ( 41 - CAST( NULL AS DECIMAL ), 37 + CAST( NULL AS SIGNED ) ) THEN - 20 ELSE NULL END, 43 ) + NULLIF ( + 35, 9 + - 41 ) * - 7 col2
----
-243

skipif mysql # not compatible
query I rowsort label-6750
SELECT + SUM ( DISTINCT 45 ) / NULLIF ( 1, + - 23 ) + - COALESCE ( + + CASE + CASE + 92 WHEN 91 - - - ( CAST ( + COUNT ( * ) AS INTEGER ) ) + + COALESCE ( + COUNT ( * ), MIN ( ALL 54 ) ) * - 80 * COALESCE ( + 26, COUNT ( DISTINCT NULLIF ( 12, 58 * 71 ) ) * 37 ) THEN NULL WHEN 59 THEN NULL ELSE NULLIF ( - ( COUNT ( * ) ), - 38 + ( 79 ) * 11 ) * + 75 END WHEN - COUNT ( * ) + - NULLIF ( 41 - CAST ( NULL AS REAL ), 37 + CAST ( NULL AS INTEGER ) ) THEN - 20 ELSE NULL END, 43 ) + NULLIF ( + 35, 9 + - 41 ) * - 7 col2
----
-243

query I rowsort
SELECT - ( - 57 ) * - + 92 AS col2
----
-5244

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT - COUNT( * ) + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6752
SELECT - COUNT ( * ) + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT 85 * + + ( - - ( - 75 ) ) AS col2
----
-6375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6754
SELECT DISTINCT 28 / - + CAST( NULL AS DECIMAL ) + - 27 * CASE 32 WHEN 21 + 92 + 14 THEN 82 END * 50 + + - 46 + 0 * - 46 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT 28 / - + CAST ( NULL AS REAL ) + - 27 * CASE 32 WHEN 21 + 92 + 14 THEN 82 END * 50 + + - 46 + 0 * - 46 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6755
SELECT ALL + - 32 DIV + - 15 - + 12 + + 66 + 22 * MAX( DISTINCT 51 ) + - 23 * - CAST( COUNT( DISTINCT + 4 ) AS SIGNED ) * - 63
----
-271

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL + - 32 / + - 15 - + 12 + + 66 + 22 * MAX ( DISTINCT 51 ) + - 23 * - CAST ( COUNT ( DISTINCT + 4 ) AS INTEGER ) * - 63
----
-271

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6756
SELECT + - 27 AS col2, + 28, CAST( NULL AS SIGNED ) col2
----
-27
28
NULL

skipif mysql # not compatible
query III rowsort label-6756
SELECT + - 27 AS col2, + 28, CAST ( NULL AS INTEGER ) col2
----
-27
28
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6757
SELECT ALL - 22 + - + 41 + - CASE 27 WHEN - ( + CAST( + + 92 AS SIGNED ) ) * - + 37 THEN ( - COALESCE ( - COUNT( * ), 37 ) ) / + 68 - - 17 END + SUM( - 52 ) * - NULLIF ( - 38 + - 90 * - 94, - ( + 96 ) * 51 - + 69 * COUNT( DISTINCT 90 * 78 + 91 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL - 22 + - + 41 + - CASE 27 WHEN - ( + CAST ( + + 92 AS INTEGER ) ) * - + 37 THEN ( - COALESCE ( - COUNT ( * ), 37 ) ) / + 68 - - 17 END + SUM ( - 52 ) * - NULLIF ( - 38 + - 90 * - 94, - ( + 96 ) * 51 - + 69 * COUNT ( DISTINCT 90 * 78 + 91 ) )
----
NULL

query II rowsort
SELECT 65 col1, 6
----
65
6

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

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

query I rowsort
SELECT 76 * + ( + 38 ) - 66
----
2822

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT - 71 * + - 60 * - COUNT( * ) + - ( - SUM( - 53 ) ) + - 64 col1
----
-4377

skipif mysql # not compatible
query I rowsort label-6761
SELECT - 71 * + - 60 * - COUNT ( * ) + - ( - SUM ( - 53 ) ) + - 64 col1
----
-4377

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

skipif mysql # not compatible
query I rowsort label-6762
SELECT - COUNT ( * ) / + + 83 + - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT - - 62 * + + 3 + 45 * - 56 * + - 10
----
25386

onlyif mysql # DIV for integer division: 
query I rowsort label-6764
SELECT DISTINCT - 39 DIV + 98 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6764
SELECT DISTINCT - 39 / + 98 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT ALL 84 + - + 8 * - 74 - - + 34, 16 + COUNT( * ) col0
----
710
17

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL 84 + - + 8 * - 74 - - + 34, 16 + COUNT ( * ) col0
----
710
17

query I rowsort
SELECT - 67 + - 46
----
-113

query I rowsort
SELECT DISTINCT - 90 * + 60
----
-5400

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT DISTINCT - 79 DIV 86 + 92 + - NULLIF ( - 6, - + 24 )
----
98

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - 79 / 86 + 92 + - NULLIF ( - 6, - + 24 )
----
98

query I rowsort
SELECT ALL + 21 - 27 - - 20 + + NULLIF ( 48, + 58 + - + 26 ) * CASE - 6 WHEN - + COALESCE ( + + 86, - 89 / - 63 ) + - 96 THEN - 91 ELSE NULL END * 58
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT ALL + MAX( ALL - + 61 ) AS col0, + 22 col2
----
-61
22

skipif mysql # not compatible
query II rowsort label-6770
SELECT ALL + MAX ( ALL - + 61 ) AS col0, + 22 col2
----
-61
22

query I rowsort
SELECT - - COALESCE ( - 90, + + ( + 91 ), + 96 ) AS col2
----
-90

query I rowsort
SELECT DISTINCT 69 - + + 15 AS col0
----
54

query II rowsort
SELECT 28 + + 76, 98 AS col1
----
104
98

query I rowsort
SELECT 63 - - 68 + + 77 * 97
----
7600

query I rowsort
SELECT DISTINCT - ( + 87 ) * - 81
----
7047

query I rowsort
SELECT 72 + + 92 AS col1
----
164

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

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

query I rowsort
SELECT 53 + + 81 - 61 * + - ( + 6 ) AS col0
----
500

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT 62 + MAX( DISTINCT - 7 )
----
55

skipif mysql # not compatible
query I rowsort label-6779
SELECT 62 + MAX ( DISTINCT - 7 )
----
55

query II rowsort
SELECT DISTINCT - 63 * - 58, 31 AS col0
----
3654
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6781
SELECT 91 * 96 * - + COUNT( * ) DIV - + ( + COUNT( * ) )
----
8736

skipif mysql # not compatible
query I rowsort label-6781
SELECT 91 * 96 * - + COUNT ( * ) / - + ( + COUNT ( * ) )
----
8736

onlyif mysql # aggregate syntax: 
query II rowsort label-6782
SELECT 97 + 99 AS col1, 60 + + COUNT( * ) AS col0
----
196
61

skipif mysql # not compatible
query II rowsort label-6782
SELECT 97 + 99 AS col1, 60 + + COUNT ( * ) AS col0
----
196
61

query I rowsort
SELECT DISTINCT - 63 + + 28 * - 4
----
-175

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

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT COUNT ( * ) + - 57 + COUNT ( * ) col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-6785
SELECT MAX( 22 ) + - COUNT( * ) col1, + 20 AS col0
----
21
20

skipif mysql # not compatible
query II rowsort label-6785
SELECT MAX ( 22 ) + - COUNT ( * ) col1, + 20 AS col0
----
21
20

query II rowsort
SELECT DISTINCT - + 3 + 84 AS col0, 44 * 38
----
81
1672

onlyif mysql # aggregate syntax: 
query II rowsort label-6787
SELECT 11 * + - 53 + - - 87 AS col2, - MIN( ( + ( + ( + 72 ) ) ) ) AS col2
----
-496
-72

skipif mysql # not compatible
query II rowsort label-6787
SELECT 11 * + - 53 + - - 87 AS col2, - MIN ( ( + ( + ( + 72 ) ) ) ) AS col2
----
-496
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT DISTINCT + 35 DIV - 62 * 94
----
0

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + 35 / - 62 * 94
----
0

query I rowsort
SELECT 29 * - 36 col1
----
-1044

onlyif mysql # aggregate syntax: 
query II rowsort label-6790
SELECT + COUNT( * ) - - 6 AS col0, + 79 AS col0
----
7
79

skipif mysql # not compatible
query II rowsort label-6790
SELECT + COUNT ( * ) - - 6 AS col0, + 79 AS col0
----
7
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6791
SELECT ALL + 2 DIV + COALESCE ( - 48, 78 - + 76 )
----
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT ALL + 2 / + COALESCE ( - 48, 78 - + 76 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6792
SELECT - CAST( NULL AS SIGNED ) * - + 45 * - COUNT( * ) + + 78 + + + CAST( ( - + 83 ) AS SIGNED ) * + 3 * + - COUNT( * ) * + - 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT - CAST ( NULL AS INTEGER ) * - + 45 * - COUNT ( * ) + + 78 + + + CAST ( ( - + 83 ) AS INTEGER ) * + 3 * + - COUNT ( * ) * + - 21
----
NULL

query I rowsort
SELECT DISTINCT 55 + + 31 col2
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL 73 - COUNT( * ) * 77 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL 73 - COUNT ( * ) * 77 AS col1
----
-4

query I rowsort
SELECT DISTINCT - 83 * + 28
----
-2324

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT - 56 - 80 * SUM( DISTINCT ( - 5 ) ) AS col0
----
344

skipif mysql # not compatible
query I rowsort label-6797
SELECT - 56 - 80 * SUM ( DISTINCT ( - 5 ) ) AS col0
----
344

query II rowsort
SELECT ( 79 ) AS col1, - 65 - - - 48 - 39
----
79
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT ALL - MAX( DISTINCT - + 63 ) * + 8
----
504

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL - MAX ( DISTINCT - + 63 ) * + 8
----
504

query I rowsort
SELECT ALL - 91 - + - 90 + 92
----
91

query I rowsort
SELECT ALL + 17 - + NULLIF ( - 30, + 35 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT DISTINCT + MIN( ALL - + 42 ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT + MIN ( ALL - + 42 ) AS col2
----
-42

query II rowsort
SELECT DISTINCT + ( + - 76 ), - 37 AS col1
----
-76
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT CASE + 96 WHEN + MIN( ALL - 50 ) THEN NULL WHEN + - 77 THEN - COUNT( * ) ELSE - 8 END - - 51 * + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-6804
SELECT CASE + 96 WHEN + MIN ( ALL - 50 ) THEN NULL WHEN + - 77 THEN - COUNT ( * ) ELSE - 8 END - - 51 * + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT COUNT( * ) * - COALESCE ( + + 18, + 88 * - + NULLIF ( 80, + ( 87 ) * - - 60 - COUNT( * ) * 14 * - COUNT( ALL 90 ) + 97 ) ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6805
SELECT COUNT ( * ) * - COALESCE ( + + 18, + 88 * - + NULLIF ( 80, + ( 87 ) * - - 60 - COUNT ( * ) * 14 * - COUNT ( ALL 90 ) + 97 ) ) AS col2
----
-18

query I rowsort
SELECT 82 * 6
----
492

query II rowsort
SELECT 71 AS col1, - 11
----
71
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT DISTINCT ( 89 ) / + NULLIF ( - + ( - COUNT( ALL + 17 ) ), COUNT( * ) ) + 18 * - - CASE - COUNT( * ) WHEN - 32 THEN NULL WHEN 62 THEN NULL WHEN + COALESCE ( - 14, COUNT( * ) ) THEN 34 + 60 * 93 END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT DISTINCT ( 89 ) / + NULLIF ( - + ( - COUNT ( ALL + 17 ) ), COUNT ( * ) ) + 18 * - - CASE - COUNT ( * ) WHEN - 32 THEN NULL WHEN 62 THEN NULL WHEN + COALESCE ( - 14, COUNT ( * ) ) THEN 34 + 60 * 93 END * 58
----
NULL

query I rowsort
SELECT ALL 80 * + 39 * + ( - - 80 )
----
249600

query II rowsort
SELECT 95, + 83 col1
----
95
83

query II rowsort
SELECT DISTINCT 15 * + 42 * + 69 AS col2, + 57 AS col1
----
43470
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT DISTINCT 74 * COUNT( * ) * - 67 AS col1
----
-4958

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT 74 * COUNT ( * ) * - 67 AS col1
----
-4958

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT ( - 65 ) + MIN( DISTINCT 69 ) DIV - - 62 AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-6814
SELECT ( - 65 ) + MIN ( DISTINCT 69 ) / - - 62 AS col0
----
-64

query I rowsort
SELECT 97 * + ( - - 98 ) * - 92 - + 24
----
-874576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6816
SELECT ALL - 77 + - CAST( 75 AS SIGNED ) AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - 77 + - CAST ( 75 AS INTEGER ) AS col1
----
-152

query I rowsort
SELECT - CASE WHEN NOT ( 58 ) BETWEEN - 78 AND + 33 THEN + 40 ELSE 21 * 75 END
----
-40

onlyif mysql # DIV for integer division: 
query II rowsort label-6818
SELECT 25 AS col1, + 11 DIV + - 41
----
25
0

skipif mysql # not compatible
query II rowsort label-6818
SELECT 25 AS col1, + 11 / + - 41
----
25
0

query I rowsort
SELECT ALL + 13 + - - COALESCE ( - 37, + 88 * + 64 ) + 50
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT COUNT( * ) + - 53
----
-52

skipif mysql # not compatible
query I rowsort label-6820
SELECT DISTINCT COUNT ( * ) + - 53
----
-52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT ALL - SUM( + 40 ) + + - 68 * MIN( - NULLIF ( + 41, 18 ) )
----
2748

skipif mysql # not compatible
query I rowsort label-6822
SELECT ALL - SUM ( + 40 ) + + - 68 * MIN ( - NULLIF ( + 41, 18 ) )
----
2748

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT DISTINCT + + COUNT( * ) * - - 5 + COUNT( * ) AS col1, - COUNT( * ) * - - ( 12 )
----
6
-12

skipif mysql # not compatible
query II rowsort label-6823
SELECT DISTINCT + + COUNT ( * ) * - - 5 + COUNT ( * ) AS col1, - COUNT ( * ) * - - ( 12 )
----
6
-12

query I rowsort
SELECT ALL + 6 * - + 28
----
-168

query I rowsort
SELECT DISTINCT + - 38 * + 38 AS col1
----
-1444

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6826
SELECT - COALESCE ( 20, + COUNT( 28 ) + + 66 - + 20 - - - MIN( DISTINCT - + 14 ) DIV - + 28 DIV + + 67 + + - 22 * + COUNT( * ), + + 50 ) + + 92 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6826
SELECT - COALESCE ( 20, + COUNT ( 28 ) + + 66 - + 20 - - - MIN ( DISTINCT - + 14 ) / - + 28 / + + 67 + + - 22 * + COUNT ( * ), + + 50 ) + + 92 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6827
SELECT - COALESCE ( + 54, + + ( 46 ) * - - 3 ) DIV + - 97 - 4 * + SUM( 37 ) * - - ( + COUNT( * ) ) - 72 + + 39 + NULLIF ( COALESCE ( 21, + 42, 98 * + 75 - + 20 * 74, 75 * - 12 ), + 57 * + 87 )
----
-160

skipif mysql # not compatible
query I rowsort label-6827
SELECT - COALESCE ( + 54, + + ( 46 ) * - - 3 ) / + - 97 - 4 * + SUM ( 37 ) * - - ( + COUNT ( * ) ) - 72 + + 39 + NULLIF ( COALESCE ( 21, + 42, 98 * + 75 - + 20 * 74, 75 * - 12 ), + 57 * + 87 )
----
-160

query II rowsort
SELECT - - 50 * 78 * 77 AS col1, 99
----
300300
99

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

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

query I rowsort
SELECT - 87 + 39 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + + 28 * + COUNT( * ) * - 52 - + + 0 * + 1
----
-1456

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + + 28 * + COUNT ( * ) * - 52 - + + 0 * + 1
----
-1456

query II rowsort
SELECT DISTINCT + - 62, + 14 AS col1
----
-62
14

query I rowsort
SELECT DISTINCT + + 46 * 20 AS col1
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - COALESCE ( 48, 76, + - 74 ) * + NULLIF ( + SUM( - 57 ), 40 + + - 30 * - AVG ( ALL 63 ) ) * + + 85 - + 75 + + ( - 20 + COUNT( * ) * + 66 ) AS col0
----
232531

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - COALESCE ( 48, 76, + - 74 ) * + NULLIF ( + SUM ( - 57 ), 40 + + - 30 * - AVG ( ALL 63 ) ) * + + 85 - + 75 + + ( - 20 + COUNT ( * ) * + 66 ) AS col0
----
232531

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

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

query I rowsort
SELECT - + 26 + - 20
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT ALL + 60 * - SUM( + 43 ) * + NULLIF ( + + 56, + - 60 ) - + 27 AS col1
----
-144507

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + 60 * - SUM ( + 43 ) * + NULLIF ( + + 56, + - 60 ) - + 27 AS col1
----
-144507

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT ALL - 95 * - + COUNT( * ) - + - 10 AS col0
----
105

skipif mysql # not compatible
query I rowsort label-6838
SELECT ALL - 95 * - + COUNT ( * ) - + - 10 AS col0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-6839
SELECT ALL + - 20 DIV + + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL + - 20 / + + 55 AS col1
----
0

query I rowsort
SELECT - 23 + 18
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - MIN( ALL - - 22 ) * - COUNT( * ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-6841
SELECT - MIN ( ALL - - 22 ) * - COUNT ( * ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6842
SELECT DISTINCT COALESCE ( 52, 87 DIV + + CAST( NULL AS SIGNED ) )
----
52

skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT COALESCE ( 52, 87 / + + CAST ( NULL AS INTEGER ) )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT ALL + 8 * 10, - MIN( DISTINCT - 33 ) AS col2
----
80
33

skipif mysql # not compatible
query II rowsort label-6843
SELECT ALL + 8 * 10, - MIN ( DISTINCT - 33 ) AS col2
----
80
33

query I rowsort
SELECT ALL + 90 * - 14 AS col1
----
-1260

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL MIN( + 72 ) + - + 37 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL MIN ( + 72 ) + - + 37 AS col2
----
35

query I rowsort
SELECT + ( + 22 ) - + + ( 5 ) + + 65 + + + 86 + + + 57 * + 51 * 90 - - - 27
----
261771

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT ALL 33 + MAX( DISTINCT 97 ) + + 45
----
175

skipif mysql # not compatible
query I rowsort label-6848
SELECT ALL 33 + MAX ( DISTINCT 97 ) + + 45
----
175

query I rowsort
SELECT - ( - 99 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + NULLIF ( + 93, + + MAX( - 32 ) ) * 78
----
7254

skipif mysql # not compatible
query I rowsort label-6850
SELECT + NULLIF ( + 93, + + MAX ( - 32 ) ) * 78
----
7254

query I rowsort
SELECT + 21 + - 41 * - + 44
----
1825

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

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

query I rowsort
SELECT + 97 + 20 AS col2
----
117

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6855
SELECT DISTINCT 32 + - 48 + - - 82 DIV + NULLIF ( + 57, + 7 + + - 87 ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-6855
SELECT DISTINCT 32 + - 48 + - - 82 / + NULLIF ( + 57, + 7 + + - 87 ) AS col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL MIN( - 43 ) + + CASE - - 36 WHEN + 39 THEN 25 - - 21 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL MIN ( - 43 ) + + CASE - - 36 WHEN + 39 THEN 25 - - 21 ELSE NULL END AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT NULLIF ( - + 53, + + 6 + 19 ) * + 50 AS col1
----
-2650

query I rowsort
SELECT + 55 * 59
----
3245

query I rowsort
SELECT ALL 61 * 48 AS col0
----
2928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6861
SELECT ALL COUNT( * ) * + 91 * 98 * 18 DIV 28 AS col1
----
5733

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL COUNT ( * ) * + 91 * 98 * 18 / 28 AS col1
----
5733

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6862
SELECT + CAST( + + CAST( 36 AS DECIMAL ) AS SIGNED ) * 33
----
1188

skipif mysql # not compatible
query I rowsort label-6862
SELECT + CAST ( + + CAST ( 36 AS REAL ) AS INTEGER ) * 33
----
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT - - 65 + - COALESCE ( + MIN( DISTINCT + 19 ), MAX( - 81 ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6863
SELECT - - 65 + - COALESCE ( + MIN ( DISTINCT + 19 ), MAX ( - 81 ) ) AS col1
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT ALL - ( - - 23 ) DIV + 47 * + 58 - + 88
----
-88

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL - ( - - 23 ) / + 47 * + 58 - + 88
----
-88

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

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

query I rowsort
SELECT + - 5 * + 88 AS col2
----
-440

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

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

query I rowsort
SELECT - 34 + - - 19 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - 47 * 36 - + + CASE - 41 WHEN + + 12 THEN + 31 ELSE + SUM( - - 66 ) END + + 24 AS col0
----
-1734

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 47 * 36 - + + CASE - 41 WHEN + + 12 THEN + 31 ELSE + SUM ( - - 66 ) END + + 24 AS col0
----
-1734

onlyif mysql # aggregate syntax: 
query II rowsort label-6870
SELECT + SUM( ALL + - 53 ) - + - SUM( ALL - - 77 ), - 83 + + 94 AS col2
----
24
11

skipif mysql # not compatible
query II rowsort label-6870
SELECT + SUM ( ALL + - 53 ) - + - SUM ( ALL - - 77 ), - 83 + + 94 AS col2
----
24
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT DISTINCT + 0 * + NULLIF ( ( - CAST( 91 AS SIGNED ) ), - - 41 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + 0 * + NULLIF ( ( - CAST ( 91 AS INTEGER ) ), - - 41 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6872
SELECT - - 34 * CASE - COUNT( * ) WHEN - - COUNT( * ) + ( - - 87 ) * 78 THEN + COALESCE ( + 97, + 69 ) + COUNT( * ) + + 30 / - 11 + - 46 + NULLIF ( CAST( NULL AS SIGNED ), CAST( 30 AS DECIMAL ) ) * COUNT( * ) ELSE NULL END - - 90 / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT - - 34 * CASE - COUNT ( * ) WHEN - - COUNT ( * ) + ( - - 87 ) * 78 THEN + COALESCE ( + 97, + 69 ) + COUNT ( * ) + + 30 / - 11 + - 46 + NULLIF ( CAST ( NULL AS INTEGER ), CAST ( 30 AS REAL ) ) * COUNT ( * ) ELSE NULL END - - 90 / 21
----
NULL

query I rowsort
SELECT + + 78 * + 56 AS col0
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT + CASE + 76 WHEN - 41 + COUNT( * ) THEN NULL WHEN + - 17 / - - 33 THEN 69 END * - + 94 * - 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + CASE + 76 WHEN - 41 + COUNT ( * ) THEN NULL WHEN + - 17 / - - 33 THEN 69 END * - + 94 * - 61 col2
----
NULL

query I rowsort
SELECT + ( + - 59 ) col1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-6876
SELECT DISTINCT + SUM( DISTINCT + 82 ) col2, + 48 + + 86 * + 97 + 32 AS col0
----
82
8422

skipif mysql # not compatible
query II rowsort label-6876
SELECT DISTINCT + SUM ( DISTINCT + 82 ) col2, + 48 + + 86 * + 97 + 32 AS col0
----
82
8422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT - 76 * - COALESCE ( + + 20, - + 49 + 36, - + NULLIF ( - 11, + CAST( + + ( - + CAST( 76 AS SIGNED ) ) AS SIGNED ) ), + - 68 * + 26 + + 35 DIV - 95 DIV COUNT( * ) ) AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - 76 * - COALESCE ( + + 20, - + 49 + 36, - + NULLIF ( - 11, + CAST ( + + ( - + CAST ( 76 AS INTEGER ) ) AS INTEGER ) ), + - 68 * + 26 + + 35 / - 95 / COUNT ( * ) ) AS col1
----
1520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT COALESCE ( + COUNT( * ), + ( + CASE + 16 WHEN 11 THEN + CAST( NULL AS SIGNED ) - - + 88 END ) * CAST( NULL AS SIGNED ) - - + CAST( NULL AS SIGNED ) - 90 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6878
SELECT COALESCE ( + COUNT ( * ), + ( + CASE + 16 WHEN 11 THEN + CAST ( NULL AS INTEGER ) - - + 88 END ) * CAST ( NULL AS INTEGER ) - - + CAST ( NULL AS INTEGER ) - 90 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6879
SELECT - 51 DIV - - ( 56 ) * 60 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6879
SELECT - 51 / - - ( 56 ) * 60 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL SUM( + - 96 ) * - NULLIF ( SUM( - - 42 ), - + 63 ) + - 7
----
4025

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL SUM ( + - 96 ) * - NULLIF ( SUM ( - - 42 ), - + 63 ) + - 7
----
4025

onlyif mysql # aggregate syntax: 
query II rowsort label-6881
SELECT DISTINCT COUNT( * ) * - - 23 + - 91 AS col2, 41
----
-68
41

skipif mysql # not compatible
query II rowsort label-6881
SELECT DISTINCT COUNT ( * ) * - - 23 + - 91 AS col2, 41
----
-68
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6882
SELECT - 16 DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6882
SELECT - 16 / + 70 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT + 21 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-6883
SELECT + 21 / - 38
----
0

query II rowsort
SELECT ALL 0 * + 4 + 70, - 59 + 87 col0
----
70
28

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

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

query I rowsort
SELECT - ( - + 49 ) * - - 68 AS col1
----
3332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6887
SELECT DISTINCT NULLIF ( - COALESCE ( + 15, + + NULLIF ( CASE - COUNT( * ) WHEN + 89 THEN + 29 * 87 + - 48 * + 3 WHEN SUM( - 69 ) THEN NULL WHEN 96 + - - SUM( ALL - 18 ) - + MIN( 17 ) * 45 THEN 11 END, - COUNT( ALL - ( COALESCE ( 30, + 66 * 2, 67 ) ) ) + COUNT( * ) ) + - MAX( + ( 19 ) ) DIV - 50, - 2 * + CASE 76 WHEN - ( 12 ) THEN NULL WHEN 38 THEN 43 END ), + 23 ) * 4 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT NULLIF ( - COALESCE ( + 15, + + NULLIF ( CASE - COUNT ( * ) WHEN + 89 THEN + 29 * 87 + - 48 * + 3 WHEN SUM ( - 69 ) THEN NULL WHEN 96 + - - SUM ( ALL - 18 ) - + MIN ( 17 ) * 45 THEN 11 END, - COUNT ( ALL - ( COALESCE ( 30, + 66 * 2, 67 ) ) ) + COUNT ( * ) ) + - MAX ( + ( 19 ) ) / - 50, - 2 * + CASE 76 WHEN - ( 12 ) THEN NULL WHEN 38 THEN 43 END ), + 23 ) * 4 AS col2
----
-60

query II rowsort
SELECT ALL 33 col0, 43
----
33
43

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT ALL + 59 * MIN( DISTINCT + ( 58 ) ) * + 23 AS col0, 29 - - - 95 + - + ( + - SUM( + 62 ) ) * NULLIF ( - 52, 56 * - COALESCE ( 70, 93 ) + 71 * - 9 ) AS col2
----
78706
-3290

skipif mysql # not compatible
query II rowsort label-6890
SELECT ALL + 59 * MIN ( DISTINCT + ( 58 ) ) * + 23 AS col0, 29 - - - 95 + - + ( + - SUM ( + 62 ) ) * NULLIF ( - 52, 56 * - COALESCE ( 70, 93 ) + 71 * - 9 ) AS col2
----
78706
-3290

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT DISTINCT + COUNT( * ) * + + 25 * - + 1 * 50
----
-1250

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT + COUNT ( * ) * + + 25 * - + 1 * 50
----
-1250

query II rowsort
SELECT ALL 44 AS col1, - 14
----
44
-14

query I rowsort
SELECT 87 + + 86
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT MAX( DISTINCT 32 ) + 33 AS col1
----
65

skipif mysql # not compatible
query I rowsort label-6894
SELECT MAX ( DISTINCT 32 ) + 33 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT 32 * CASE 38 WHEN + - 13 THEN NULL WHEN + 45 / 16 - - 95 THEN + NULLIF ( 39, + 37 ) * + 84 / 42 * - 98 * + COUNT( * ) END * - 23
----
NULL

skipif mysql # not compatible
query I rowsort label-6895
SELECT 32 * CASE 38 WHEN + - 13 THEN NULL WHEN + 45 / 16 - - 95 THEN + NULLIF ( 39, + 37 ) * + 84 / 42 * - 98 * + COUNT ( * ) END * - 23
----
NULL

query I rowsort
SELECT 3 * 29 * + + 9
----
783

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6897
SELECT ALL - 14 - + NULLIF ( - - 82, + ( - - COUNT( * ) ) ) AS col1, - CAST( 53 AS SIGNED ) + - 52 + + + 65 DIV + 58 + - 70 + 29 - + + 89 DIV + NULLIF ( + 39, 2 ) col1
----
-96
-147

skipif mysql # not compatible
query II rowsort label-6897
SELECT ALL - 14 - + NULLIF ( - - 82, + ( - - COUNT ( * ) ) ) AS col1, - CAST ( 53 AS INTEGER ) + - 52 + + + 65 / + 58 + - 70 + 29 - + + 89 / + NULLIF ( + 39, 2 ) col1
----
-96
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6898
SELECT + 86 * + + 56 / - SUM( DISTINCT + 57 ) * 50 + CAST( NULL AS SIGNED ) / 96 / + - 26 * + 33 * + - COUNT( * ) - - - 11 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT + 86 * + + 56 / - SUM ( DISTINCT + 57 ) * 50 + CAST ( NULL AS INTEGER ) / 96 / + - 26 * + 33 * + - COUNT ( * ) - - - 11 col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6899
SELECT DISTINCT CASE - + 16 WHEN 50 THEN 97 WHEN 7 + - 72 - + CAST( NULL AS DECIMAL ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT CASE - + 16 WHEN 50 THEN 97 WHEN 7 + - 72 - + CAST ( NULL AS REAL ) THEN NULL END AS col0
----
NULL

query I rowsort
SELECT - 9 + - 14 col2
----
-23

query I rowsort
SELECT 66 + - 41 col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT 96 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT 96 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 62 * + 57
----
-3534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6904
SELECT - + ( 16 ) DIV + 1 + - COUNT( - 95 ) + - 76 + 91
----
-2

skipif mysql # not compatible
query I rowsort label-6904
SELECT - + ( 16 ) / + 1 + - COUNT ( - 95 ) + - 76 + 91
----
-2

query I rowsort
SELECT + 45 * - 34 * + ( - - 87 )
----
-133110

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT 45 + + 16 + - + 69 * COUNT( * ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6906
SELECT 45 + + 16 + - + 69 * COUNT ( * ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT COALESCE ( - + 5, + 58 + 60, 36 * 83 + + 30 + 38 ) * + 72 - - 22 * ( + - SUM( + 90 ) )
----
-2340

skipif mysql # not compatible
query I rowsort label-6907
SELECT COALESCE ( - + 5, + 58 + 60, 36 * 83 + + 30 + 38 ) * + 72 - - 22 * ( + - SUM ( + 90 ) )
----
-2340

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6908
SELECT 76 DIV - ( + NULLIF ( + + COUNT( * ), - 58 ) ) col1
----
-76

skipif mysql # not compatible
query I rowsort label-6908
SELECT 76 / - ( + NULLIF ( + + COUNT ( * ), - 58 ) ) col1
----
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT - 67 * + SUM( ALL 2 ) AS col2, 33 * COUNT( * ) col1
----
-134
33

skipif mysql # not compatible
query II rowsort label-6909
SELECT - 67 * + SUM ( ALL 2 ) AS col2, 33 * COUNT ( * ) col1
----
-134
33

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

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

query I rowsort
SELECT 66 * - 35 AS col1
----
-2310

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6913
SELECT + CASE + 49 WHEN - 66 THEN - - CAST( NULL AS SIGNED ) / + 11 END AS col0, 42 + + 78 AS col1
----
NULL
120

skipif mysql # not compatible
query II rowsort label-6913
SELECT + CASE + 49 WHEN - 66 THEN - - CAST ( NULL AS INTEGER ) / + 11 END AS col0, 42 + + 78 AS col1
----
NULL
120

query I rowsort
SELECT DISTINCT + 35 + + - 8
----
27

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

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT - CAST ( AVG ( + 30 ) AS INTEGER )
----
-30

query I rowsort
SELECT - 52 + - + 12
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6917
SELECT 3 AS col1, + 56 + - - 36 * + 70 + + NULLIF ( - 40, + COUNT( * ) ) AS col1
----
3
2536

skipif mysql # not compatible
query II rowsort label-6917
SELECT 3 AS col1, + 56 + - - 36 * + 70 + + NULLIF ( - 40, + COUNT ( * ) ) AS col1
----
3
2536

query I rowsort
SELECT ALL 58 + - + 20 col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-6919
SELECT ALL 16 + 80 AS col2, - MAX( + 96 ) AS col2
----
96
-96

skipif mysql # not compatible
query II rowsort label-6919
SELECT ALL 16 + 80 AS col2, - MAX ( + 96 ) AS col2
----
96
-96

query II rowsort
SELECT 11, - 40 AS col0
----
11
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-6921
SELECT 17 * - + 53 + - 94 * 6, - COUNT( * ) * - ( 16 ) AS col1
----
-1465
16

skipif mysql # not compatible
query II rowsort label-6921
SELECT 17 * - + 53 + - 94 * 6, - COUNT ( * ) * - ( 16 ) AS col1
----
-1465
16

query I rowsort
SELECT 98 * - 30 * - + 59 AS col2
----
173460

query I rowsort
SELECT DISTINCT - 45 + + 96 + + 88 + - 78 * 79 AS col2
----
-6023

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL - COUNT( * ) * - - 68 * + 28 AS col0
----
-1904

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL - COUNT ( * ) * - - 68 * + 28 AS col0
----
-1904

query I rowsort
SELECT ALL - 18 + 41 + - NULLIF ( - 92, 76 * 42 )
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT 88 + COUNT( DISTINCT 60 ) + - 39 + - 3 * + 23 * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6926
SELECT 88 + COUNT ( DISTINCT 60 ) + - 39 + - 3 * + 23 * + COUNT ( * )
----
-19

query I rowsort
SELECT 97 + - - 26 + - 54 + 83
----
152

onlyif mysql # aggregate syntax: 
query II rowsort label-6928
SELECT ALL 92 + 80 + + 93 + - 87 * + ( + + COUNT( * ) ), 62 col0
----
178
62

skipif mysql # not compatible
query II rowsort label-6928
SELECT ALL 92 + 80 + + 93 + - 87 * + ( + + COUNT ( * ) ), 62 col0
----
178
62

query I rowsort
SELECT 7 + 85 - 9 * - 7 - - 86 * + + 76 AS col0
----
6691

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT 16 + + - 45 * MAX( ALL + - 97 ) - - 97
----
4478

skipif mysql # not compatible
query I rowsort label-6930
SELECT 16 + + - 45 * MAX ( ALL + - 97 ) - - 97
----
4478

query I rowsort
SELECT 26 * 70
----
1820

query I rowsort
SELECT 32 + + 92 col1
----
124

query II rowsort
SELECT ALL - 82 - - 30, + 59 AS col1
----
-52
59

query I rowsort
SELECT NULLIF ( - 47, - CASE - 92 WHEN - 68 + - 2 THEN ( - - 15 ) + - 19 + 24 WHEN + + 88 THEN - 42 END ) + - NULLIF ( - 38, - 98 ) + + 52 * 48
----
2487

query I rowsort
SELECT 16 * - - 13
----
208

query I rowsort
SELECT 42 + - + 39 * - 41 AS col2
----
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL COUNT( * ) * - - 60 * 14
----
840

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL COUNT ( * ) * - - 60 * 14
----
840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT + CAST( - 32 AS SIGNED ) + 28 + - CASE 25 WHEN 34 * 51 + + - 6 + 4 THEN COUNT( * ) ELSE + 58 END * - 35
----
2026

skipif mysql # not compatible
query I rowsort label-6938
SELECT + CAST ( - 32 AS INTEGER ) + 28 + - CASE 25 WHEN 34 * 51 + + - 6 + 4 THEN COUNT ( * ) ELSE + 58 END * - 35
----
2026

query I rowsort
SELECT ALL - 77 * - - 42 + - 90 + + 37 AS col2
----
-3287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6940
SELECT - + ( - - CAST( NULL AS SIGNED ) ) col0, COUNT( * ) + + + 45 AS col2
----
NULL
46

skipif mysql # not compatible
query II rowsort label-6940
SELECT - + ( - - CAST ( NULL AS INTEGER ) ) col0, COUNT ( * ) + + + 45 AS col2
----
NULL
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6941
SELECT DISTINCT - 9 col0, + MAX( - CAST( 30 AS SIGNED ) ) AS col2
----
-9
-30

skipif mysql # not compatible
query II rowsort label-6941
SELECT DISTINCT - 9 col0, + MAX ( - CAST ( 30 AS INTEGER ) ) AS col2
----
-9
-30

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-6943
SELECT - COUNT( * ) + + + COUNT( * ), 20 + 40 AS col1, + 58 AS col0
----
0
60
58

skipif mysql # not compatible
query III rowsort label-6943
SELECT - COUNT ( * ) + + + COUNT ( * ), 20 + 40 AS col1, + 58 AS col0
----
0
60
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT 72 * - 62 * - ( 59 ) + + - 41 + - 37 + - COUNT( * ) * - - 74
----
263224

skipif mysql # not compatible
query I rowsort label-6944
SELECT 72 * - 62 * - ( 59 ) + + - 41 + - 37 + - COUNT ( * ) * - - 74
----
263224

query I rowsort
SELECT DISTINCT - 33 * 75 + 85
----
-2390

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT DISTINCT - 4 * - 41 + - - COUNT( - 36 ) + + + 23 col1
----
188

skipif mysql # not compatible
query I rowsort label-6947
SELECT DISTINCT - 4 * - 41 + - - COUNT ( - 36 ) + + + 23 col1
----
188

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

query I rowsort
SELECT DISTINCT 80 * + + 96 + + - 35 AS col2
----
7645

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT + MIN( ALL - - 29 ) - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6950
SELECT + MIN ( ALL - - 29 ) - COUNT ( * )
----
28

query I rowsort
SELECT CASE + COALESCE ( 7, + 59 ) WHEN 70 - - 51 THEN - 53 END * 19
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT MIN( ALL + 91 ) AS col0, 41 * + 5 + + + 93 AS col1
----
91
298

skipif mysql # not compatible
query II rowsort label-6952
SELECT MIN ( ALL + 91 ) AS col0, 41 * + 5 + + + 93 AS col1
----
91
298

query I rowsort
SELECT + 36 * + 56 + + 64 * + 11 * - 93 + - 71
----
-63527

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6954
SELECT DISTINCT 49 * MIN( 41 ) + + 49 + + + 87 + + + CASE + ( + - 81 ) WHEN + CASE + 74 WHEN - + 89 * 94 THEN NULL ELSE + + 59 END * 4 + + + 25 THEN - CAST( NULL AS SIGNED ) ELSE NULL END - + 96 * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT 49 * MIN ( 41 ) + + 49 + + + 87 + + + CASE + ( + - 81 ) WHEN + CASE + 74 WHEN - + 89 * 94 THEN NULL ELSE + + 59 END * 4 + + + 25 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END - + 96 * 15 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT ALL 10 * - CAST( + ( NULLIF ( + + 36, + 45 - 8 * + 63 ) ) AS SIGNED )
----
-360

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL 10 * - CAST ( + ( NULLIF ( + + 36, + 45 - 8 * + 63 ) ) AS INTEGER )
----
-360

query I rowsort
SELECT 7 + + 55 + - 9
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6957
SELECT ( + - 1 ) DIV + 84 + + 13
----
13

skipif mysql # not compatible
query I rowsort label-6957
SELECT ( + - 1 ) / + 84 + + 13
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT DISTINCT COUNT( * ) * 86 + - + 28 AS col1
----
58

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT COUNT ( * ) * 86 + - + 28 AS col1
----
58

query I rowsort
SELECT ALL + 40 * + - 86 - 74 AS col2
----
-3514

query I rowsort
SELECT ALL 74 * + + 76
----
5624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6961
SELECT DISTINCT COALESCE ( + - 6, + 6 + + 13 * - ( - + ( COUNT( * ) ) ) ) - - 36, - CAST( NULL AS SIGNED ) AS col0
----
30
NULL

skipif mysql # not compatible
query II rowsort label-6961
SELECT DISTINCT COALESCE ( + - 6, + 6 + + 13 * - ( - + ( COUNT ( * ) ) ) ) - - 36, - CAST ( NULL AS INTEGER ) AS col0
----
30
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6962
SELECT SUM( - 43 ) AS col1, NULLIF ( + 79, + 95 )
----
-43
79

skipif mysql # not compatible
query II rowsort label-6962
SELECT SUM ( - 43 ) AS col1, NULLIF ( + 79, + 95 )
----
-43
79

query I rowsort
SELECT ALL - 96 * + + 79 * 13 * + 99 * + 57 * 1
----
-556354656

query I rowsort
SELECT + NULLIF ( - 3, + + 75 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6965
SELECT + CAST( NULL AS SIGNED ) + + 27 + + COUNT( + + 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6965
SELECT + CAST ( NULL AS INTEGER ) + + 27 + + COUNT ( + + 37 )
----
NULL

query II rowsort
SELECT + 20 - + 45 * 75 AS col1, + 95
----
-3355
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - CASE 32 WHEN - + CASE - COUNT( * ) WHEN + COALESCE ( - 65, - 20 ) THEN NULL WHEN - MIN( ALL 6 ) THEN NULL WHEN - 7 THEN NULL ELSE + ( 70 ) + + SUM( + 39 ) + + SUM( ALL + + 55 ) - 28 END THEN ( 95 ) * + 41 + AVG ( ALL 71 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT - CASE 32 WHEN - + CASE - COUNT ( * ) WHEN + COALESCE ( - 65, - 20 ) THEN NULL WHEN - MIN ( ALL 6 ) THEN NULL WHEN - 7 THEN NULL ELSE + ( 70 ) + + SUM ( + 39 ) + + SUM ( ALL + + 55 ) - 28 END THEN ( 95 ) * + 41 + AVG ( ALL 71 ) ELSE NULL END
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6969
SELECT - - 68 * + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) * 6 AS col2
----
68
NULL

skipif mysql # not compatible
query II rowsort label-6969
SELECT - - 68 * + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * 6 AS col2
----
68
NULL

query I rowsort
SELECT + 44 + + 42 * + 92 AS col1
----
3908

query II rowsort
SELECT - ( + 51 ) - 74, + 85 AS col1
----
-125
85

query I rowsort
SELECT - + 93 * - 84
----
7812

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT + 57 + - 29 DIV 42
----
57

skipif mysql # not compatible
query I rowsort label-6973
SELECT + 57 + - 29 / 42
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT ALL + + 11 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL + + 11 / 94
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT - 71 + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) / AVG ( - 91 ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT - 71 + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) / AVG ( - 91 ) * + 97
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6976
SELECT - NULLIF ( - 13, 98 * + - CAST( - 9 AS DECIMAL ) / + 80 * + + 95 ) * 90 AS col0
----
1170

skipif mysql # not compatible
query I rowsort label-6976
SELECT - NULLIF ( - 13, 98 * + - CAST ( - 9 AS REAL ) / + 80 * + + 95 ) * 90 AS col0
----
1170

query I rowsort
SELECT ALL - 21 + 82 - + 7 * - - 20 - + - 23
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL + COALESCE ( 36, - + COUNT( * ), - 63 )
----
36

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + COALESCE ( 36, - + COUNT ( * ), - 63 )
----
36

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

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL + + COUNT ( * ) + - + 22 / - 75 * + 54
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT + ( - 89 ) DIV 62 + + 87 * + 75
----
6524

skipif mysql # not compatible
query I rowsort label-6981
SELECT + ( - 89 ) / 62 + + 87 * + 75
----
6524

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

query I rowsort
SELECT - 15 * - + 65 - + 27 col0
----
948

query I rowsort
SELECT ALL + NULLIF ( - 86, + - 95 )
----
-86

query I rowsort
SELECT DISTINCT 82 * 80 * - 93 + - + 58 + + 39 AS col1
----
-610099

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT + NULLIF ( - + COUNT( * ), + - ( + 55 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6987
SELECT + NULLIF ( - + COUNT ( * ), + - ( + 55 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT + CASE - COUNT( DISTINCT + 88 ) WHEN - 61 THEN ( - 73 ) END * - COUNT( * ) * - 78 + - COUNT( * ) + + 10 + 14 + + + 40 - + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT + CASE - COUNT ( DISTINCT + 88 ) WHEN - 61 THEN ( - 73 ) END * - COUNT ( * ) * - 78 + - COUNT ( * ) + + 10 + 14 + + + 40 - + 69
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL + COALESCE ( - ( - SUM( DISTINCT - 92 ) ), COUNT( * ) * + - 47 + 38 * 8 * + 88 * + - 23 + ( - 49 ) ) AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + COALESCE ( - ( - SUM ( DISTINCT - 92 ) ), COUNT ( * ) * + - 47 + 38 * 8 * + 88 * + - 23 + ( - 49 ) ) AS col2
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6990
SELECT 0 DIV + 22 + - + 27 - + 34 * + ( 75 ), COUNT( * ) + SUM( 42 ) + - + 56 AS col2
----
-2577
-13

skipif mysql # not compatible
query II rowsort label-6990
SELECT 0 / + 22 + - + 27 - + 34 * + ( 75 ), COUNT ( * ) + SUM ( 42 ) + - + 56 AS col2
----
-2577
-13

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6992
SELECT DISTINCT COALESCE ( + + 24, + - 83 + - CAST( NULL AS SIGNED ) ) * - + 69 + - - 77, 0 AS col2
----
-1579
0

skipif mysql # not compatible
query II rowsort label-6992
SELECT DISTINCT COALESCE ( + + 24, + - 83 + - CAST ( NULL AS INTEGER ) ) * - + 69 + - - 77, 0 AS col2
----
-1579
0

query I rowsort
SELECT ALL 94 * - 12 * - 96 - - 21
----
108309

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT - ( + - 25 ) + - - MAX( ALL - 19 ) + ( 51 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-6994
SELECT - ( + - 25 ) + - - MAX ( ALL - 19 ) + ( 51 ) AS col0
----
57

query I rowsort
SELECT - 9 * 94 AS col1
----
-846

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT ALL + 71 AS col1, COUNT( * ) - + COUNT( * )
----
71
0

skipif mysql # not compatible
query II rowsort label-6996
SELECT ALL + 71 AS col1, COUNT ( * ) - + COUNT ( * )
----
71
0

query I rowsort
SELECT + 3 * 63 AS col0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT + COUNT( * ) * + COALESCE ( + + 1, - 58 * - 91, + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-6998
SELECT + COUNT ( * ) * + COALESCE ( + + 1, - 58 * - 91, + 32 )
----
1

query I rowsort
SELECT + 79 * + 70
----
5530

query I rowsort
SELECT DISTINCT 2 * 20
----
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7002
SELECT - 11 * 74 + + + CAST( NULL AS SIGNED ) AS col0, + 89 AS col2
----
NULL
89

skipif mysql # not compatible
query II rowsort label-7002
SELECT - 11 * 74 + + + CAST ( NULL AS INTEGER ) AS col0, + 89 AS col2
----
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT ALL + 89 * CASE 82 WHEN 59 THEN - - 9 END / - - 96 + + SUM( ALL + 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT ALL + 89 * CASE 82 WHEN 59 THEN - - 9 END / - - 96 + + SUM ( ALL + 65 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT ALL 72 + - COUNT( * ) + - 17 + - 89 * - COUNT( * )
----
143

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL 72 + - COUNT ( * ) + - 17 + - 89 * - COUNT ( * )
----
143

query I rowsort
SELECT - + 6 + - 76 AS col2
----
-82

query I rowsort
SELECT DISTINCT 90 + + 97 + + CASE + 18 WHEN - 32 THEN - 1 END * 15
----
NULL

query I rowsort
SELECT ALL 74 + + 37 * 93
----
3515

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7009
SELECT - 79 AS col2, + ( + CAST( NULL AS DECIMAL ) ) * + 98 + + 77 AS col0
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-7009
SELECT - 79 AS col2, + ( + CAST ( NULL AS REAL ) ) * + 98 + + 77 AS col0
----
-79
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7010
SELECT ALL COUNT( * ) col1, - 66 + + + 40 + + - 63 col0
----
1
-89

skipif mysql # not compatible
query II rowsort label-7010
SELECT ALL COUNT ( * ) col1, - 66 + + + 40 + + - 63 col0
----
1
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7011
SELECT + 71 DIV 62 - + 52 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7011
SELECT + 71 / 62 - + 52 AS col0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - - COUNT( * ) + + + NULLIF ( - - COUNT( * ), + 45 ) col1
----
2

skipif mysql # not compatible
query I rowsort label-7012
SELECT - - COUNT ( * ) + + + NULLIF ( - - COUNT ( * ), + 45 ) col1
----
2

query I rowsort
SELECT + + ( - 96 ) * - NULLIF ( - 92, + ( + 6 ) ) * + 97 * - 24 + - 71
----
20560825

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

query I rowsort
SELECT DISTINCT + 13 * + 92 AS col0
----
1196

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL + MAX( 31 ) * 60 col1
----
1860

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + MAX ( 31 ) * 60 col1
----
1860

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT 90 + 78 + - - COUNT( * ) + - 96 + 34 AS col1
----
107

skipif mysql # not compatible
query I rowsort label-7018
SELECT 90 + 78 + - - COUNT ( * ) + - 96 + 34 AS col1
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7019
SELECT COUNT( * ) * - 6, CAST( - MAX( ALL - 94 ) AS SIGNED ) AS col0
----
-6
94

skipif mysql # not compatible
query II rowsort label-7019
SELECT COUNT ( * ) * - 6, CAST ( - MAX ( ALL - 94 ) AS INTEGER ) AS col0
----
-6
94

query I rowsort
SELECT ALL + 96 * + + 79
----
7584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT 97 * - CAST( - 71 AS SIGNED ) AS col2
----
6887

skipif mysql # not compatible
query I rowsort label-7021
SELECT 97 * - CAST ( - 71 AS INTEGER ) AS col2
----
6887

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7022
SELECT - 90 * + - CASE 83 WHEN + 60 THEN NULL ELSE + CASE - COALESCE ( - + 52, + 5 + + 68 - + 31 + + - 12 + 42 ) WHEN COALESCE ( + COUNT( * ), SUM( ALL 96 ) * 87 + 29 ) + 0 - - CAST( NULL AS SIGNED ) THEN + 58 / NULLIF ( + AVG ( + 17 ), 77 ) + 60 ELSE NULL END END + ( + CAST( - 16 AS SIGNED ) + - 15 ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT - 90 * + - CASE 83 WHEN + 60 THEN NULL ELSE + CASE - COALESCE ( - + 52, + 5 + + 68 - + 31 + + - 12 + 42 ) WHEN COALESCE ( + COUNT ( * ), SUM ( ALL 96 ) * 87 + 29 ) + 0 - - CAST ( NULL AS INTEGER ) THEN + 58 / NULLIF ( + AVG ( + 17 ), 77 ) + 60 ELSE NULL END END + ( + CAST ( - 16 AS INTEGER ) + - 15 ) / CAST ( NULL AS INTEGER )
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7024
SELECT ALL - CAST( + + 85 AS SIGNED ) AS col0, 86 DIV + 9 AS col2
----
-85
9

skipif mysql # not compatible
query II rowsort label-7024
SELECT ALL - CAST ( + + 85 AS INTEGER ) AS col0, 86 / + 9 AS col2
----
-85
9

query I rowsort
SELECT 16 * - - ( 99 ) AS col1
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT NULLIF ( + COUNT( * ), + + MIN( DISTINCT + 96 ) ) * - 9
----
-9

skipif mysql # not compatible
query I rowsort label-7026
SELECT NULLIF ( + COUNT ( * ), + + MIN ( DISTINCT + 96 ) ) * - 9
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7027
SELECT ALL 61 + - 92, COUNT( * ) AS col0
----
-31
1

skipif mysql # not compatible
query II rowsort label-7027
SELECT ALL 61 + - 92, COUNT ( * ) AS col0
----
-31
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7028
SELECT + CASE MIN( ALL - - 90 ) WHEN + 98 THEN NULL WHEN - CASE + 95 WHEN - 87 * ( - + NULLIF ( - - AVG ( ALL + ( - 85 ) ), + 5 * - 98 ) ) * 22 + CAST( - 26 AS SIGNED ) + - + COALESCE ( COUNT( * ), ( 16 ) ) THEN 21 + 48 WHEN COUNT( * ) * 16 THEN NULL END * 51 THEN 44 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7028
SELECT + CASE MIN ( ALL - - 90 ) WHEN + 98 THEN NULL WHEN - CASE + 95 WHEN - 87 * ( - + NULLIF ( - - AVG ( ALL + ( - 85 ) ), + 5 * - 98 ) ) * 22 + CAST ( - 26 AS INTEGER ) + - + COALESCE ( COUNT ( * ), ( 16 ) ) THEN 21 + 48 WHEN COUNT ( * ) * 16 THEN NULL END * 51 THEN 44 END
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 14, - 1 ) + 92
----
106

onlyif mysql # DIV for integer division: 
query II rowsort label-7030
SELECT + 26 DIV + 25, - 48 col2
----
1
-48

skipif mysql # not compatible
query II rowsort label-7030
SELECT + 26 / + 25, - 48 col2
----
1
-48

query I rowsort
SELECT + 96 * 33
----
3168

query II rowsort
SELECT - - ( - 59 ) col2, 33
----
-59
33

query I rowsort
SELECT + 9 * - + 35
----
-315

query I rowsort
SELECT 96 - + 93
----
3

query I rowsort
SELECT - 62 * - 44 AS col2
----
2728

query I rowsort
SELECT DISTINCT - 52 + - 85 * + 14 AS col0
----
-1242

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7037
SELECT DISTINCT + 72 + + MIN( + 22 ) + - 99 + + 7 DIV + 84
----
-5

skipif mysql # not compatible
query I rowsort label-7037
SELECT DISTINCT + 72 + + MIN ( + 22 ) + - 99 + + 7 / + 84
----
-5

query I rowsort
SELECT ALL + 13 + + 63 AS col0
----
76

query I rowsort
SELECT + 42 + 70 + - CASE - - 16 WHEN - 91 THEN NULL ELSE + 75 * + - 28 + + - 98 END * - 78
----
-171332

query I rowsort
SELECT + 12 - + - 27 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT ( + CASE 21 WHEN + 75 + - COUNT( * ) * + 94 THEN 90 WHEN 11 + - 85 THEN NULL ELSE NULL END ) + - 60 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT ( + CASE 21 WHEN + 75 + - COUNT ( * ) * + 94 THEN 90 WHEN 11 + - 85 THEN NULL ELSE NULL END ) + - 60 AS col1
----
NULL

query I rowsort
SELECT + 69 + - - 41 + + - 68 + + NULLIF ( - 78, - 7 + - 56 ) * 43
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT ALL 8 - CASE - - 57 WHEN - - 2 + 20 + - 75 * - + 51 THEN NULL WHEN + COUNT( * ) THEN - ( 13 ) + NULLIF ( 97, + - 68 * + - 54 + - - NULLIF ( + + 37, - 63 ) ) ELSE NULL END - + ( 32 ) + + 96 * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL 8 - CASE - - 57 WHEN - - 2 + 20 + - 75 * - + 51 THEN NULL WHEN + COUNT ( * ) THEN - ( 13 ) + NULLIF ( 97, + - 68 * + - 54 + - - NULLIF ( + + 37, - 63 ) ) ELSE NULL END - + ( 32 ) + + 96 * 55 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7044
SELECT 37 + + 60 DIV - 94 + - CASE COUNT( * ) WHEN - 91 THEN NULL ELSE - CASE + 50 WHEN + 14 DIV CAST( + + CAST( - + 60 AS SIGNED ) AS SIGNED ) THEN NULL WHEN + 81 + MAX( - + 72 ) + 46 * - COALESCE ( + + 69, 28 ) + + 5 THEN NULL ELSE CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) END DIV 6 END
----
37

skipif mysql # not compatible
query I rowsort label-7044
SELECT 37 + + 60 / - 94 + - CASE COUNT ( * ) WHEN - 91 THEN NULL ELSE - CASE + 50 WHEN + 14 / CAST ( + + CAST ( - + 60 AS INTEGER ) AS INTEGER ) THEN NULL WHEN + 81 + MAX ( - + 72 ) + 46 * - COALESCE ( + + 69, 28 ) + + 5 THEN NULL ELSE CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) END / 6 END
----
37

query I rowsort
SELECT ALL 51 - - 75 AS col0
----
126

query I rowsort
SELECT 7 * - 27 col2
----
-189

query I rowsort
SELECT ( + 83 ) + + 88 AS col1
----
171

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

query I rowsort
SELECT 97 * - 7
----
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT SUM( + 72 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-7050
SELECT SUM ( + 72 ) AS col0
----
72

query I rowsort
SELECT ( 35 ) * + 25 * 38 * + 90 * - 35
----
-104737500

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7053
SELECT MAX( CAST( NULL AS SIGNED ) )
----
NULL

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

query I rowsort
SELECT - 23 * - 40 + 72 * - - COALESCE ( 45, - 75 ) - + - 97 AS col0
----
4257

query II rowsort
SELECT ALL + ( 14 ) * + - 62 AS col0, - 83
----
-868
-83

query I rowsort
SELECT 32 * - 78
----
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT ALL ( COUNT( * ) ) + - COUNT( * ) * + 69 - COALESCE ( 80, - 54, + COUNT( * ) * ( - + 48 ) - 98 + - + 71 - + 42 - + + 84 * - - 0 * + - 84 + NULLIF ( + 26, 74 * 22 + 94 ) + + 33 ) + CAST( NULL AS SIGNED ) * 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL ( COUNT ( * ) ) + - COUNT ( * ) * + 69 - COALESCE ( 80, - 54, + COUNT ( * ) * ( - + 48 ) - 98 + - + 71 - + 42 - + + 84 * - - 0 * + - 84 + NULLIF ( + 26, 74 * 22 + 94 ) + + 33 ) + CAST ( NULL AS INTEGER ) * 97 AS col2
----
NULL

query I rowsort
SELECT ALL + 65 + - ( - CASE + 29 WHEN - 25 + ( + 30 ) - + 22 + - 99 * - + 82 * + ( + 1 ) THEN - + 75 + + 88 + - 79 ELSE - - 57 + + 33 END ) + - - 72
----
227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7059
SELECT 66 * - CASE ( + ( + + COUNT( * ) ) ) WHEN 77 THEN 25 * + - 73 + - 14 * + COUNT( * ) ELSE NULL END + - 25 - - 51 + 14 + + + 37 / CAST( - 88 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT 66 * - CASE ( + ( + + COUNT ( * ) ) ) WHEN 77 THEN 25 * + - 73 + - 14 * + COUNT ( * ) ELSE NULL END + - 25 - - 51 + 14 + + + 37 / CAST ( - 88 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL + MIN( ALL + 51 ) + 31 - + CASE + + COUNT( * ) WHEN + ( COALESCE ( - + 72, COALESCE ( - 33, + + 38 * + - MIN( + 33 ) ) ) ) THEN - 46 + + 70 + + - 5 ELSE NULL END * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + MIN ( ALL + 51 ) + 31 - + CASE + + COUNT ( * ) WHEN + ( COALESCE ( - + 72, COALESCE ( - 33, + + 38 * + - MIN ( + 33 ) ) ) ) THEN - 46 + + 70 + + - 5 ELSE NULL END * + 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7061
SELECT + 59 * + COUNT( * ) * + 80 + + COALESCE ( + 93, + MIN( DISTINCT - 3 ) * + 92, + NULLIF ( + - 46, - 65 ) - - 7 + 41 * + MAX( DISTINCT - + NULLIF ( ( - 57 ), - + CAST( NULL AS SIGNED ) ) ) + - ( - + 56 ) ) * 18
----
6394

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 59 * + COUNT ( * ) * + 80 + + COALESCE ( + 93, + MIN ( DISTINCT - 3 ) * + 92, + NULLIF ( + - 46, - 65 ) - - 7 + 41 * + MAX ( DISTINCT - + NULLIF ( ( - 57 ), - + CAST ( NULL AS INTEGER ) ) ) + - ( - + 56 ) ) * 18
----
6394

query II rowsort
SELECT + 84 AS col2, + 78
----
84
78

onlyif mysql # aggregate syntax: 
query II rowsort label-7063
SELECT - 51 * 58 * - + 34, MAX( ALL - 13 ) - - 0 AS col1
----
100572
-13

skipif mysql # not compatible
query II rowsort label-7063
SELECT - 51 * 58 * - + 34, MAX ( ALL - 13 ) - - 0 AS col1
----
100572
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7064
SELECT ALL 90 DIV + 26 - + 33 - - - NULLIF ( + 2, + MIN( ALL 82 ) ) * ( - ( - 5 ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 90 / + 26 - + 33 - - - NULLIF ( + 2, + MIN ( ALL 82 ) ) * ( - ( - 5 ) )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT + MAX( ALL - 44 ) + - COUNT( * ) * - 88 - + 60
----
-16

skipif mysql # not compatible
query I rowsort label-7065
SELECT + MAX ( ALL - 44 ) + - COUNT ( * ) * - 88 - + 60
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL - - 75 + + 21 + + 59 - + + 8 * - MAX( 14 ) AS col0
----
267

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL - - 75 + + 21 + + 59 - + + 8 * - MAX ( 14 ) AS col0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT ALL - 43 - - + ( - 61 ) DIV 7
----
-51

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - 43 - - + ( - 61 ) / 7
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7068
SELECT - + 34 AS col1, 88 + - 98 * - CAST( NULL AS SIGNED )
----
-34
NULL

skipif mysql # not compatible
query II rowsort label-7068
SELECT - + 34 AS col1, 88 + - 98 * - CAST ( NULL AS INTEGER )
----
-34
NULL

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

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

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

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

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

query II rowsort
SELECT 80 + - ( 89 ) + - - 66 * + 59 * + 27 * + 77 * + - 59 AS col1, 46
----
-477641943
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT - COUNT( * ) * - - ( - 93 ) + 35 AS col2
----
128

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - COUNT ( * ) * - - ( - 93 ) + 35 AS col2
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - 53 * COUNT( * )
----
-53

skipif mysql # not compatible
query I rowsort label-7074
SELECT - 53 * COUNT ( * )
----
-53

query I rowsort
SELECT + 23 + 54 col1
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7076
SELECT ALL + 16 AS col1, - CAST( 73 AS SIGNED ) + - 0 + - 88 * + - 22 col2
----
16
1863

skipif mysql # not compatible
query II rowsort label-7076
SELECT ALL + 16 AS col1, - CAST ( 73 AS INTEGER ) + - 0 + - 88 * + - 22 col2
----
16
1863

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7077
SELECT - 62 DIV ( + COALESCE ( + 80, - MAX( + - 79 ), - 43 + + - ( 21 ) + ( - ( - - 17 ) ) * + - 54 DIV - - 82 + - 74 ) ) * 75 DIV - - COUNT( * ) * + + ( NULLIF ( - 15, ( - 79 ) ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7077
SELECT - 62 / ( + COALESCE ( + 80, - MAX ( + - 79 ), - 43 + + - ( 21 ) + ( - ( - - 17 ) ) * + - 54 / - - 82 + - 74 ) ) * 75 / - - COUNT ( * ) * + + ( NULLIF ( - 15, ( - 79 ) ) ) col1
----
0

query I rowsort
SELECT ALL + - 21 * + 79 AS col0
----
-1659

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT DISTINCT - - SUM( - 37 ) * + ( - 33 ) AS col1
----
1221

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT - - SUM ( - 37 ) * + ( - 33 ) AS col1
----
1221

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7081
SELECT ALL 20 DIV - - 44 + + + ( COALESCE ( + 90, + 60 * 12 + - 0 ) ) col0, 92 + + 33 AS col1
----
90
125

skipif mysql # not compatible
query II rowsort label-7081
SELECT ALL 20 / - - 44 + + + ( COALESCE ( + 90, + 60 * 12 + - 0 ) ) col0, 92 + + 33 AS col1
----
90
125

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

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

query II rowsort
SELECT DISTINCT 52 AS col0, ( - 44 ) AS col1
----
52
-44

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

query I rowsort
SELECT + 40 * - 59 AS col1
----
-2360

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7087
SELECT 47 AS col0, - SUM( - 0 ) * 73 col0
----
47
0

skipif mysql # not compatible
query II rowsort label-7087
SELECT 47 AS col0, - SUM ( - 0 ) * 73 col0
----
47
0

query II rowsort
SELECT 52 AS col2, - 79 - - - 6
----
52
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7089
SELECT 90, CASE - NULLIF ( + - 68, - CASE + 17 WHEN 56 THEN + + 69 + 63 ELSE NULL END ) WHEN 18 - + CASE - 10 WHEN + NULLIF ( + - CASE + 58 WHEN + 92 * + - 89 + + CASE 86 WHEN - - 73 THEN + - ( - 47 ) * COUNT( * ) WHEN COUNT( * ) + COUNT( * ) THEN NULL ELSE 61 + 47 END THEN COUNT( 3 ) * COALESCE ( + 9 - + ( 77 + + 22 * - 37 ), + 74 + 71 * 62, + CAST( - 64 AS SIGNED ) ) WHEN COUNT( * ) * - 80 THEN NULL ELSE NULL END, 78 ) THEN NULL ELSE - COUNT( * ) END THEN COALESCE ( - MAX( 92 ), 1 + - 98 ) WHEN + 18 * + SUM( 25 ) THEN COUNT( * ) END col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-7089
SELECT 90, CASE - NULLIF ( + - 68, - CASE + 17 WHEN 56 THEN + + 69 + 63 ELSE NULL END ) WHEN 18 - + CASE - 10 WHEN + NULLIF ( + - CASE + 58 WHEN + 92 * + - 89 + + CASE 86 WHEN - - 73 THEN + - ( - 47 ) * COUNT ( * ) WHEN COUNT ( * ) + COUNT ( * ) THEN NULL ELSE 61 + 47 END THEN COUNT ( 3 ) * COALESCE ( + 9 - + ( 77 + + 22 * - 37 ), + 74 + 71 * 62, + CAST ( - 64 AS INTEGER ) ) WHEN COUNT ( * ) * - 80 THEN NULL ELSE NULL END, 78 ) THEN NULL ELSE - COUNT ( * ) END THEN COALESCE ( - MAX ( 92 ), 1 + - 98 ) WHEN + 18 * + SUM ( 25 ) THEN COUNT ( * ) END col0
----
90
NULL

query I rowsort
SELECT ALL 98 * - 34 AS col2
----
-3332

query I rowsort
SELECT + 4 * 31
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7092
SELECT + 10 * + 38 * - + CAST( NULL AS SIGNED ) * - 78 * + 72 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT + 10 * + 38 * - + CAST ( NULL AS INTEGER ) * - 78 * + 72 AS col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7094
SELECT ALL + ( - 57 ) * + COUNT( DISTINCT CASE - 50 WHEN + 8 THEN NULL ELSE - + 24 END ) * - - 42 + + - 71 + + 79 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT ALL + ( - 57 ) * + COUNT ( DISTINCT CASE - 50 WHEN + 8 THEN NULL ELSE - + 24 END ) * - - 42 + + - 71 + + 79 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7095
SELECT ALL 68 * 29 * 98 DIV - - 35 AS col2
----
5521

skipif mysql # not compatible
query I rowsort label-7095
SELECT ALL 68 * 29 * 98 / - - 35 AS col2
----
5521

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT DISTINCT 97 * - + CASE + + MAX( 58 ) WHEN + 37 THEN - - 30 WHEN 98 THEN 10 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7097
SELECT DISTINCT 97 * - + CASE + + MAX ( 58 ) WHEN + 37 THEN - - 30 WHEN 98 THEN 10 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT DISTINCT COUNT( * ) * + 98 + COUNT( * ) + + 13 - + 97
----
15

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT COUNT ( * ) * + 98 + COUNT ( * ) + + 13 - + 97
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT CASE + 91 WHEN 64 * - - 28 THEN - 35 + 88 - - 50 WHEN + 99 THEN 80 ELSE - 44 * + 25 + - MIN( 19 ) + - 49 + - CASE + - 69 WHEN - + 93 THEN 81 + - 26 WHEN - 94 * - 68 + - COUNT( * ) * - ( + 39 + 38 ) THEN NULL WHEN COUNT( * ) THEN COALESCE ( 96, MAX( ALL + 0 ) * + 70 ) + 67 END END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT CASE + 91 WHEN 64 * - - 28 THEN - 35 + 88 - - 50 WHEN + 99 THEN 80 ELSE - 44 * + 25 + - MIN ( 19 ) + - 49 + - CASE + - 69 WHEN - + 93 THEN 81 + - 26 WHEN - 94 * - 68 + - COUNT ( * ) * - ( + 39 + 38 ) THEN NULL WHEN COUNT ( * ) THEN COALESCE ( 96, MAX ( ALL + 0 ) * + 70 ) + 67 END END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT + 96 + - - NULLIF ( 96, + - MIN( ALL 51 ) ) * - 70
----
-6624

skipif mysql # not compatible
query I rowsort label-7101
SELECT + 96 + - - NULLIF ( 96, + - MIN ( ALL 51 ) ) * - 70
----
-6624

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7103
SELECT + 43 DIV - - 39 + COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7103
SELECT + 43 / - - 39 + COUNT ( * ) AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT ALL 84 DIV 94 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL 84 / 94 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT + ( - + COUNT( DISTINCT - 26 ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7105
SELECT + ( - + COUNT ( DISTINCT - 26 ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT - MAX( + 11 ) + - COALESCE ( - 41, - 24 )
----
30

skipif mysql # not compatible
query I rowsort label-7106
SELECT - MAX ( + 11 ) + - COALESCE ( - 41, - 24 )
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT DISTINCT + 12 * 48 + + MAX( ALL + + 30 ) + + + ( + - 17 ) AS col2, 64
----
589
64

skipif mysql # not compatible
query II rowsort label-7107
SELECT DISTINCT + 12 * 48 + + MAX ( ALL + + 30 ) + + + ( + - 17 ) AS col2, 64
----
589
64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT DISTINCT COUNT( * ) * 26 * - 64 - + - 27 + ( - - 51 ) * 40
----
403

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT COUNT ( * ) * 26 * - 64 - + - 27 + ( - - 51 ) * 40
----
403

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

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

query I rowsort
SELECT DISTINCT - 61 * 44
----
-2684

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

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

query I rowsort
SELECT DISTINCT - + 98 * + 24
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7114
SELECT DISTINCT + 23 AS col1, - CAST( NULL AS SIGNED ) + 91 AS col0
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT + 23 AS col1, - CAST ( NULL AS INTEGER ) + 91 AS col0
----
23
NULL

query I rowsort
SELECT ALL 48 * + 34 - 42 AS col1
----
1590

query II rowsort
SELECT ALL - 54 AS col2, + 33
----
-54
33

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

query I rowsort
SELECT - + 31 - 2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7119
SELECT COUNT( + 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7119
SELECT COUNT ( + 83 ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7120
SELECT - COUNT( * ) + - 87 DIV 60 + - + 81 + COUNT( * ) + + 24
----
-58

skipif mysql # not compatible
query I rowsort label-7120
SELECT - COUNT ( * ) + - 87 / 60 + - + 81 + COUNT ( * ) + + 24
----
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-7121
SELECT 28 col2, 34 DIV + 63
----
28
0

skipif mysql # not compatible
query II rowsort label-7121
SELECT 28 col2, 34 / + 63
----
28
0

query I rowsort
SELECT - 10 + ( - 99 ) col0
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT + 16 - COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7123
SELECT + 16 - COUNT ( * ) AS col2
----
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT DISTINCT - MAX( ALL 18 ) * + 87 AS col1
----
-1566

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - MAX ( ALL 18 ) * + 87 AS col1
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT - 63 + + NULLIF ( MIN( ALL + 81 ), - - COALESCE ( - + ( + 64 ), 48 + - 86 * - MAX( + 43 ) * + COALESCE ( - 68, + ( - 99 ), 21 ) + + 79 + + MIN( DISTINCT - 2 ) + - - COUNT( * ) * - + 55, + 16 + + 23 ) * 36 - - 99 * - 56 ) + - 61
----
-43

skipif mysql # not compatible
query I rowsort label-7126
SELECT - 63 + + NULLIF ( MIN ( ALL + 81 ), - - COALESCE ( - + ( + 64 ), 48 + - 86 * - MAX ( + 43 ) * + COALESCE ( - 68, + ( - 99 ), 21 ) + + 79 + + MIN ( DISTINCT - 2 ) + - - COUNT ( * ) * - + 55, + 16 + + 23 ) * 36 - - 99 * - 56 ) + - 61
----
-43

query I rowsort
SELECT - 56 + + - 78 * 95 * 92
----
-681776

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT ALL + COUNT( * ) * - + COUNT( * ) * - + 23 * 13
----
299

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) * - + 23 * 13
----
299

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL - CASE 28 WHEN + - CAST( NULL AS SIGNED ) THEN - 48 * + 54 END + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - CASE 28 WHEN + - CAST ( NULL AS INTEGER ) THEN - 48 * + 54 END + 50 AS col0
----
NULL

query I rowsort
SELECT + 20 * + - 96
----
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT DISTINCT 83 DIV + 7 + + 14 + - COUNT( * ) + - 69 - + + 5 DIV + + 35 + - 18 + - - 53 DIV + - 92 + 24 + - - MAX( ALL + 86 ) * + 77
----
6583

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT 83 / + 7 + + 14 + - COUNT ( * ) + - 69 - + + 5 / + + 35 + - 18 + - - 53 / + - 92 + 24 + - - MAX ( ALL + 86 ) * + 77
----
6583

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + MIN( + 73 ) + + ( - 92 ) col0
----
-19

skipif mysql # not compatible
query I rowsort label-7133
SELECT + MIN ( + 73 ) + + ( - 92 ) col0
----
-19

query I rowsort
SELECT + 67 * + 44
----
2948

query I rowsort
SELECT ALL 78 * - ( 72 ) AS col1
----
-5616

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT + 84 + COUNT( * ), 47 + + - 23 * + 14 AS col1
----
85
-275

skipif mysql # not compatible
query II rowsort label-7136
SELECT + 84 + COUNT ( * ), 47 + + - 23 * + 14 AS col1
----
85
-275

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT DISTINCT + + CASE + AVG ( - - 10 ) WHEN 43 + - 99 THEN - - MIN( ALL - 65 ) + - COUNT( * ) WHEN - 2 THEN NULL WHEN + 80 * 34 THEN NULL END / 90 - + 59 + - - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + + CASE + AVG ( - - 10 ) WHEN 43 + - 99 THEN - - MIN ( ALL - 65 ) + - COUNT ( * ) WHEN - 2 THEN NULL WHEN + 80 * 34 THEN NULL END / 90 - + 59 + - - 44 AS col0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7139
SELECT + + 28 DIV 47
----
0

skipif mysql # not compatible
query I rowsort label-7139
SELECT + + 28 / 47
----
0

query I rowsort
SELECT DISTINCT + + 7 col0
----
7

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

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

query I rowsort
SELECT DISTINCT - 64 * + 87 - + + 41 + + 76 * - 26 * + + 48
----
-100457

query II rowsort
SELECT + 25 * + - 79 + - + 7, 82 - + 83 AS col2
----
-1982
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT CASE - 87 WHEN - 9 * - + COUNT( * ) + - 25 * - 84 * - 24 THEN + 25 DIV + + 36 WHEN - + ( + + 94 ) THEN + 60 * 69 ELSE + + 92 END + - - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7144
SELECT CASE - 87 WHEN - 9 * - + COUNT ( * ) + - 25 * - 84 * - 24 THEN + 25 / + + 36 WHEN - + ( + + 94 ) THEN + 60 * 69 ELSE + + 92 END + - - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT ALL - COALESCE ( + - 18, + 2 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7146
SELECT COUNT( * ) DIV COUNT( DISTINCT - 15 ) * MIN( ALL 66 ) * - 46 + - 70 + + 91 - COUNT( * ) + - 4 DIV - 97 * - 64 - - COUNT( * ) col1
----
-3015

skipif mysql # not compatible
query I rowsort label-7146
SELECT COUNT ( * ) / COUNT ( DISTINCT - 15 ) * MIN ( ALL 66 ) * - 46 + - 70 + + 91 - COUNT ( * ) + - 4 / - 97 * - 64 - - COUNT ( * ) col1
----
-3015

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT ALL + + ( 75 ) * 68 * - - 25 + + COUNT( * ) AS col0
----
127501

skipif mysql # not compatible
query I rowsort label-7147
SELECT ALL + + ( 75 ) * 68 * - - 25 + + COUNT ( * ) AS col0
----
127501

query I rowsort
SELECT 43 + - 63 * + 46 * + 90
----
-260777

query I rowsort
SELECT 89 + - 56
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7150
SELECT ALL CAST( NULL AS SIGNED ) + + + 86 col0, 76 + - - MAX( ALL - + 92 ) AS col2
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-7150
SELECT ALL CAST ( NULL AS INTEGER ) + + + 86 col0, 76 + - - MAX ( ALL - + 92 ) AS col2
----
NULL
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ALL - 55 + 92 + - + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-7151
SELECT ALL - 55 + 92 + - + COUNT ( * )
----
36

query I rowsort
SELECT DISTINCT + - ( + 26 ) + - - 33 col2
----
7

query I rowsort
SELECT ALL - + 28 * 10 - - 46
----
-234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7154
SELECT 35 + - 8 + + ( 19 ) - SUM( ALL 6 ) * + COUNT( * ) + - 2 DIV + 4 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7154
SELECT 35 + - 8 + + ( 19 ) - SUM ( ALL 6 ) * + COUNT ( * ) + - 2 / + 4 AS col0
----
40

query I rowsort
SELECT ALL - ( - ( - 47 ) ) + + - 35 AS col2
----
-82

query I rowsort
SELECT 10 * - 10 col0
----
-100

onlyif mysql # aggregate syntax: 
query II rowsort label-7157
SELECT 45 + - 81 * ( + 79 ) * + 31 + - - 87, MAX( DISTINCT + 60 ) * - 29 * + 27 AS col0
----
-198237
-46980

skipif mysql # not compatible
query II rowsort label-7157
SELECT 45 + - 81 * ( + 79 ) * + 31 + - - 87, MAX ( DISTINCT + 60 ) * - 29 * + 27 AS col0
----
-198237
-46980

query I rowsort
SELECT DISTINCT 28 + - 46 AS col1
----
-18

query II rowsort
SELECT ALL - CASE + + 78 WHEN - 43 + 32 + + 87 + + 45 THEN 15 WHEN + + 69 * 75 + + 69 + + 7 * + + 86 * + 79 THEN NULL END + - 57 / + 42 + + 88 AS col1, 7 * - 18 AS col1
----
NULL
-126

query I rowsort
SELECT DISTINCT + 24 + 99
----
123

onlyif mysql # aggregate syntax: 
query III rowsort label-7161
SELECT DISTINCT 64 AS col2, 26 + - + COUNT( * ) + + 59 + - 51 * - 51, - COUNT( * ) AS col1
----
64
2685
-1

skipif mysql # not compatible
query III rowsort label-7161
SELECT DISTINCT 64 AS col2, 26 + - + COUNT ( * ) + + 59 + - 51 * - 51, - COUNT ( * ) AS col1
----
64
2685
-1

query I rowsort
SELECT ALL + 6 * - 96
----
-576

query I rowsort
SELECT 15 - - 81 AS col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT 25 * + 66 * - NULLIF ( + - MAX( + 17 ), + 65 * + + 45 ) AS col1
----
28050

skipif mysql # not compatible
query I rowsort label-7164
SELECT 25 * + 66 * - NULLIF ( + - MAX ( + 17 ), + 65 * + + 45 ) AS col1
----
28050

query II rowsort
SELECT 15 AS col2, 6
----
15
6

query II rowsort
SELECT ALL 33, - 75 * 4 AS col0
----
33
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT ALL + COALESCE ( 93, COUNT( * ) ) * - 73 * - COUNT( * ) AS col0
----
6789

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL + COALESCE ( 93, COUNT ( * ) ) * - 73 * - COUNT ( * ) AS col0
----
6789

query I rowsort
SELECT DISTINCT - 61 - + 4 + 52
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT + COUNT( * ) DIV - - 38 + 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7169
SELECT + COUNT ( * ) / - - 38 + 21 AS col0
----
21

query II rowsort
SELECT 60 - 66 * 28 AS col2, - 63 * - 99 * - + 35
----
-1788
-218295

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT ALL - NULLIF ( - 46, MAX( DISTINCT + + ( - 15 ) ) ) * - COUNT( * ) * - MAX( 13 )
----
598

skipif mysql # not compatible
query I rowsort label-7171
SELECT ALL - NULLIF ( - 46, MAX ( DISTINCT + + ( - 15 ) ) ) * - COUNT ( * ) * - MAX ( 13 )
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT + 89 * - NULLIF ( - 45, 9 / - + 5 - 12 + NULLIF ( - 65, MIN( DISTINCT + - 58 ) ) + + 50 ) col2
----
4005

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + 89 * - NULLIF ( - 45, 9 / - + 5 - 12 + NULLIF ( - 65, MIN ( DISTINCT + - 58 ) ) + + 50 ) col2
----
4005

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7174
SELECT - 70 + - + 61 DIV - SUM( 87 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-7174
SELECT - 70 + - + 61 / - SUM ( 87 ) AS col2
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7175
SELECT 55 * + 80 + + COUNT( DISTINCT + 32 ) DIV - COALESCE ( - 31, AVG ( ALL ( + 62 ) ) )
----
4400

skipif mysql # not compatible
query I rowsort label-7175
SELECT 55 * + 80 + + COUNT ( DISTINCT + 32 ) / - COALESCE ( - 31, AVG ( ALL ( + 62 ) ) )
----
4400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL - ( - CASE - + 77 WHEN 79 THEN NULL WHEN - + 10 THEN + 48 * 5 * + MAX( + - 35 ) + + CAST( NULL AS SIGNED ) + - ( - 96 ) * - + CASE 30 WHEN - 60 THEN - 0 END WHEN + CASE + - 90 WHEN 1 THEN + COALESCE ( + 75, - 22 - + - 23 + - 70, 21, - 72 ) * + ( COUNT( * ) + 65 ) WHEN + 23 + + 18 THEN + 54 END THEN ( 69 ) + 46 ELSE - 31 END ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL - ( - CASE - + 77 WHEN 79 THEN NULL WHEN - + 10 THEN + 48 * 5 * + MAX ( + - 35 ) + + CAST ( NULL AS INTEGER ) + - ( - 96 ) * - + CASE 30 WHEN - 60 THEN - 0 END WHEN + CASE + - 90 WHEN 1 THEN + COALESCE ( + 75, - 22 - + - 23 + - 70, 21, - 72 ) * + ( COUNT ( * ) + 65 ) WHEN + 23 + + 18 THEN + 54 END THEN ( 69 ) + 46 ELSE - 31 END ) AS col2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-7177
SELECT 75 DIV + 48 + + + 20
----
21

skipif mysql # not compatible
query I rowsort label-7177
SELECT 75 / + 48 + + + 20
----
21

query I rowsort
SELECT 48 - - 41
----
89

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

query I rowsort
SELECT 78 + + - 2 AS col0
----
76

query I rowsort
SELECT DISTINCT - - 85 col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT 27 + CASE 8 WHEN 63 * + 60 * + 82 THEN - ( - COUNT( * ) ) WHEN + 89 * + COUNT( * ) * 80 + + ( 86 ) * - + 49 THEN NULL ELSE - 10 + 37 END - - + 27 * - SUM( + 71 )
----
-1863

skipif mysql # not compatible
query I rowsort label-7182
SELECT 27 + CASE 8 WHEN 63 * + 60 * + 82 THEN - ( - COUNT ( * ) ) WHEN + 89 * + COUNT ( * ) * 80 + + ( 86 ) * - + 49 THEN NULL ELSE - 10 + 37 END - - + 27 * - SUM ( + 71 )
----
-1863

query I rowsort
SELECT ALL + + 14 * ( 56 ) + - 0 col1
----
784

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

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

query II rowsort
SELECT 83 AS col1, - ( + 33 )
----
83
-33

query I rowsort
SELECT 37 + - 66 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + 78 * + + MIN( ALL - 19 ) AS col1
----
-1482

skipif mysql # not compatible
query I rowsort label-7187
SELECT + 78 * + + MIN ( ALL - 19 ) AS col1
----
-1482

onlyif mysql # DIV for integer division: 
query II rowsort label-7188
SELECT ALL - 24, 30 DIV - + 16 + + - 88 AS col1
----
-24
-89

skipif mysql # not compatible
query II rowsort label-7188
SELECT ALL - 24, 30 / - + 16 + + - 88 AS col1
----
-24
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT SUM( ALL - - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-7189
SELECT SUM ( ALL - - 62 )
----
62

query I rowsort
SELECT ALL 75 + - 98
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7191
SELECT ALL 22 DIV - 13 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL 22 / - 13 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT DISTINCT SUM( ALL - 48 ) + - + 55 AS col2
----
-103

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT SUM ( ALL - 48 ) + - + 55 AS col2
----
-103

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL NULLIF ( + 85, - + 32 - + 5 * - - COUNT( * ) ) + + + 53 AS col1
----
138

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL NULLIF ( + 85, - + 32 - + 5 * - - COUNT ( * ) ) + + + 53 AS col1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT + ( 60 ) * - + ( + 17 ) * + + 91 * 41 * + + 19 * COUNT( 35 ) - - ( MIN( - 5 ) ) + + COALESCE ( + 9, + + 12 ) AS col1
----
-72306776

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT + ( 60 ) * - + ( + 17 ) * + + 91 * 41 * + + 19 * COUNT ( 35 ) - - ( MIN ( - 5 ) ) + + COALESCE ( + 9, + + 12 ) AS col1
----
-72306776

query II rowsort
SELECT ALL - 48 - - 57 AS col0, + 79 AS col0
----
9
79

query I rowsort
SELECT 60 + + 2 col0
----
62

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

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

query I rowsort
SELECT 69 + + 88
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT + MAX( - + 41 ) * + 67 AS col0
----
-2747

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + MAX ( - + 41 ) * + 67 AS col0
----
-2747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7201
SELECT CAST( NULL AS SIGNED ) * + 28 * + 79 * + - SUM( 16 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT CAST ( NULL AS INTEGER ) * + 28 * + 79 * + - SUM ( 16 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT 84 * - 29 + - + COALESCE ( - ( - - ( - - 78 ) ), + - 74 ) * COUNT( * ) + + 68 + 42 * + 7 col1
----
-1996

skipif mysql # not compatible
query I rowsort label-7202
SELECT 84 * - 29 + - + COALESCE ( - ( - - ( - - 78 ) ), + - 74 ) * COUNT ( * ) + + 68 + 42 * + 7 col1
----
-1996

query II rowsort
SELECT + ( 23 ), - 61 + + 75 + - + 78 * 18 * + - 62 AS col0
----
23
87062

query I rowsort
SELECT + - 77 * 99 + - - 18 + + - ( 99 ) AS col0
----
-7704

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

skipif mysql # not compatible
query I rowsort label-7205
SELECT - 90 / + COUNT ( * ) AS col1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7206
SELECT ALL - 24 * + 68 + 49 + - - 36 DIV - NULLIF ( + + COUNT( * ), + 90 )
----
-1619

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL - 24 * + 68 + 49 + - - 36 / - NULLIF ( + + COUNT ( * ), + 90 )
----
-1619

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7208
SELECT DISTINCT + 48 * - 7 * 14 + - 65 DIV 33 + - CAST( 88 AS SIGNED ) * 0
----
-4705

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT + 48 * - 7 * 14 + - 65 / 33 + - CAST ( 88 AS INTEGER ) * 0
----
-4705

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT ALL + COUNT( * ) * - + COALESCE ( + COUNT( * ), - + 48 + + 40 + - 66, - + 46 ) * - 33 - + 5 + - 28 + 91 + + - 65 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL + COUNT ( * ) * - + COALESCE ( + COUNT ( * ), - + 48 + + 40 + - 66, - + 46 ) * - 33 - + 5 + - 28 + 91 + + - 65 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT - - SUM( DISTINCT - 87 ) * - - 81
----
-7047

skipif mysql # not compatible
query I rowsort label-7210
SELECT - - SUM ( DISTINCT - 87 ) * - - 81
----
-7047

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT + MAX( DISTINCT + + NULLIF ( - + 98, - 60 ) ) + + CAST( NULL AS SIGNED ) + - 71 / + - 58 + 77 + - 25 - 15 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT + MAX ( DISTINCT + + NULLIF ( - + 98, - 60 ) ) + + CAST ( NULL AS INTEGER ) + - 71 / + - 58 + 77 + - 25 - 15 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT DISTINCT + ( - 56 ) AS col0, NULLIF ( + MIN( DISTINCT + ( - 49 ) ), + - 12 + - 73 )
----
-56
-49

skipif mysql # not compatible
query II rowsort label-7212
SELECT DISTINCT + ( - 56 ) AS col0, NULLIF ( + MIN ( DISTINCT + ( - 49 ) ), + - 12 + - 73 )
----
-56
-49

query I rowsort
SELECT ALL + - 34 * - - 36 * - 34 + - + 98 AS col1
----
41518

query I rowsort
SELECT - - 42 + 52 * 28
----
1498

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT DISTINCT - NULLIF ( 2, + - ( 50 ) + - 44 ) * + COUNT( * ) + + + 12 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-7215
SELECT DISTINCT - NULLIF ( 2, + - ( 50 ) + - 44 ) * + COUNT ( * ) + + + 12 AS col0
----
10

query I rowsort
SELECT - 21 * + - 62 AS col2
----
1302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7217
SELECT + 27 * + MAX( - CAST( NULL AS SIGNED ) ) / + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7217
SELECT + 27 * + MAX ( - CAST ( NULL AS INTEGER ) ) / + 92
----
NULL

query I rowsort
SELECT ALL 33 * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT + COUNT( * ) + 11 + 63 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-7219
SELECT + COUNT ( * ) + 11 + 63 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT + 80 + + - SUM( DISTINCT + 49 )
----
31

skipif mysql # not compatible
query I rowsort label-7220
SELECT + 80 + + - SUM ( DISTINCT + 49 )
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + 91 * COALESCE ( - NULLIF ( NULLIF ( - 99, 7 ), + 47 ), - CASE COUNT( * ) WHEN + 19 - 65 / + COUNT( * ) * + 81 THEN NULL WHEN 30 * 29 + - 50 THEN 88 WHEN - - COUNT( * ) * 57 - + + 65 + + + 98 - + 69 + - COUNT( * ) THEN NULL END ) * + + 70 + 81 AS col2
----
630711

skipif mysql # not compatible
query I rowsort label-7221
SELECT + 91 * COALESCE ( - NULLIF ( NULLIF ( - 99, 7 ), + 47 ), - CASE COUNT ( * ) WHEN + 19 - 65 / + COUNT ( * ) * + 81 THEN NULL WHEN 30 * 29 + - 50 THEN 88 WHEN - - COUNT ( * ) * 57 - + + 65 + + + 98 - + 69 + - COUNT ( * ) THEN NULL END ) * + + 70 + 81 AS col2
----
630711

onlyif mysql # DIV for integer division: 
query I rowsort label-7222
SELECT DISTINCT 3 DIV + - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7222
SELECT DISTINCT 3 / + - 82 AS col0
----
0

query II rowsort
SELECT ALL 28 AS col1, 56 * + 95
----
28
5320

query I rowsort
SELECT ALL 55 * + 18 col2
----
990

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7225
SELECT + 61 + SUM( - 29 ) col1, - 53 DIV - 65 col0
----
32
0

skipif mysql # not compatible
query II rowsort label-7225
SELECT + 61 + SUM ( - 29 ) col1, - 53 / - 65 col0
----
32
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7226
SELECT + COUNT( ALL + CAST( + 55 AS SIGNED ) ) * 72 * + - 2 + - 40 + + 24 * - - 47 * - 22 + + - ( - ( - 16 ) ) + - 8
----
-25024

skipif mysql # not compatible
query I rowsort label-7226
SELECT + COUNT ( ALL + CAST ( + 55 AS INTEGER ) ) * 72 * + - 2 + - 40 + + 24 * - - 47 * - 22 + + - ( - ( - 16 ) ) + - 8
----
-25024

query I rowsort
SELECT + 8 - + 78
----
-70

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

skipif mysql # not compatible
query I rowsort label-7228
SELECT + COUNT ( * ) / - 93 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7229
SELECT + ( + 63 ) - - 78 - - CAST( NULL AS SIGNED ) + - 7 * + - 96 col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-7229
SELECT + ( + 63 ) - - 78 - - CAST ( NULL AS INTEGER ) + - 7 * + - 96 col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT - - 33 + COUNT( * ) * - SUM( DISTINCT + 76 )
----
-43

skipif mysql # not compatible
query I rowsort label-7230
SELECT - - 33 + COUNT ( * ) * - SUM ( DISTINCT + 76 )
----
-43

query I rowsort
SELECT DISTINCT - 28 * + 59 AS col1
----
-1652

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

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

query I rowsort
SELECT ALL + + 1 + - 13 - - 30 * + 60
----
1788

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT DISTINCT - COUNT( * ) / - CASE - ( 92 ) WHEN + - CASE + - COUNT( * ) WHEN - 99 THEN NULL WHEN - 48 THEN NULL WHEN + 97 * + CASE + - 54 WHEN + 56 * - 47 + - + 40 THEN 53 ELSE NULL END * CASE - - 55 WHEN + COUNT( * ) * + ( - 73 ) + + ( - ( - COALESCE ( SUM( ALL + 38 ), COUNT( * ) + 90 ) ) ) * + 6 THEN COUNT( * ) * + 86 - - ( 61 ) END * 28 + + 7 THEN - 34 ELSE NULL END - + 92 THEN NULL ELSE COUNT( * ) + + CAST( NULL AS SIGNED ) END + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT - COUNT ( * ) / - CASE - ( 92 ) WHEN + - CASE + - COUNT ( * ) WHEN - 99 THEN NULL WHEN - 48 THEN NULL WHEN + 97 * + CASE + - 54 WHEN + 56 * - 47 + - + 40 THEN 53 ELSE NULL END * CASE - - 55 WHEN + COUNT ( * ) * + ( - 73 ) + + ( - ( - COALESCE ( SUM ( ALL + 38 ), COUNT ( * ) + 90 ) ) ) * + 6 THEN COUNT ( * ) * + 86 - - ( 61 ) END * 28 + + 7 THEN - 34 ELSE NULL END - + 92 THEN NULL ELSE COUNT ( * ) + + CAST ( NULL AS INTEGER ) END + - 90
----
NULL

query I rowsort
SELECT - - 39 * + + 35
----
1365

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT ALL + 22 DIV 20 + - - 22 * - - 60
----
1321

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + 22 / 20 + - - 22 * - - 60
----
1321

query I rowsort
SELECT + 64 * + 60 * + 58 AS col2
----
222720

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT - 28 AS col0, + COUNT( * ) + + 41 + + 39 AS col2
----
-28
81

skipif mysql # not compatible
query II rowsort label-7239
SELECT - 28 AS col0, + COUNT ( * ) + + 41 + + 39 AS col2
----
-28
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7240
SELECT - 17 * 56 + - + 36 + - - COUNT( * ) * ( + 94 ) + - 16 + + + 44
----
-866

skipif mysql # not compatible
query I rowsort label-7240
SELECT - 17 * 56 + - + 36 + - - COUNT ( * ) * ( + 94 ) + - 16 + + + 44
----
-866

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - 51 * + - MIN( 62 ) - - + 38 AS col2
----
3200

skipif mysql # not compatible
query I rowsort label-7241
SELECT - 51 * + - MIN ( 62 ) - - + 38 AS col2
----
3200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7242
SELECT CAST( NULL AS SIGNED ) AS col2, 14
----
NULL
14

skipif mysql # not compatible
query II rowsort label-7242
SELECT CAST ( NULL AS INTEGER ) AS col2, 14
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL + 57 * - COALESCE ( 12, - 0 * - + 21 * 44, 37 ) + - 36 + + - 29 * ( NULLIF ( 79, COUNT( * ) + + COUNT( DISTINCT - 30 ) ) ) * + ( - 66 ) AS col0
----
150486

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL + 57 * - COALESCE ( 12, - 0 * - + 21 * 44, 37 ) + - 36 + + - 29 * ( NULLIF ( 79, COUNT ( * ) + + COUNT ( DISTINCT - 30 ) ) ) * + ( - 66 ) AS col0
----
150486

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7244
SELECT + - CASE + COUNT( * ) WHEN - 44 THEN NULL WHEN CAST( NULL AS SIGNED ) / - - 55 THEN NULL WHEN - 76 THEN NULL ELSE + + 93 END
----
-93

skipif mysql # not compatible
query I rowsort label-7244
SELECT + - CASE + COUNT ( * ) WHEN - 44 THEN NULL WHEN CAST ( NULL AS INTEGER ) / - - 55 THEN NULL WHEN - 76 THEN NULL ELSE + + 93 END
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-7245
SELECT - 18 * - CASE - 77 WHEN + 90 * - - 78 THEN + 42 END + 83 * COUNT( * ) AS col1, - 41 AS col1
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-7245
SELECT - 18 * - CASE - 77 WHEN + 90 * - - 78 THEN + 42 END + 83 * COUNT ( * ) AS col1, - 41 AS col1
----
NULL
-41

query I rowsort
SELECT ALL - + 55 * - ( - - 15 ) + - - 91
----
916

query I rowsort
SELECT DISTINCT + - 66 AS col0
----
-66

query II rowsort
SELECT ( + - 10 ), 41 + - 98 AS col2
----
-10
-57

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

skipif mysql # not compatible
query I rowsort label-7249
SELECT + MIN ( + 67 )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT - 27 DIV 82 * - + 88
----
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT - 27 / 82 * - + 88
----
0

query I rowsort
SELECT - 98 + + 16
----
-82

query I rowsort
SELECT + 4 * + 15 AS col1
----
60

query I rowsort
SELECT COALESCE ( 68, - 4 ) AS col0
----
68

query II rowsort
SELECT CASE + + 87 WHEN - 53 THEN + + 79 END AS col1, COALESCE ( - - 24, + 7 * + 52, + 13 + 40 ) * - 48 * 14 AS col2
----
NULL
-16128

query I rowsort
SELECT COALESCE ( + 71, - + 75 ) AS col2
----
71

query I rowsort
SELECT ALL 62 * + - 68
----
-4216

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT + SUM( + 28 ) * + + ( + 3 ) - - 49
----
133

skipif mysql # not compatible
query I rowsort label-7257
SELECT + SUM ( + 28 ) * + + ( + 3 ) - - 49
----
133

query I rowsort
SELECT ALL 14 * + - 38
----
-532

query I rowsort
SELECT + 20 + + 52 + - 22 * 63 AS col2
----
-1314

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT ALL - 84 * + MAX( DISTINCT 98 )
----
-8232

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - 84 * + MAX ( DISTINCT 98 )
----
-8232

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT - ( - SUM( + - 6 ) ) col1
----
-6

skipif mysql # not compatible
query I rowsort label-7261
SELECT - ( - SUM ( + - 6 ) ) col1
----
-6

query I rowsort
SELECT 59 + - 99
----
-40

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

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

query I rowsort
SELECT + ( + 4 ) + + - 54
----
-50

query I rowsort
SELECT ALL 12 + 12 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT + ( - SUM( + 28 ) ) + - 23 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-7266
SELECT + ( - SUM ( + 28 ) ) + - 23 AS col1
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7267
SELECT ALL - - CAST( CAST( 22 AS DECIMAL ) AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - - CAST ( CAST ( 22 AS REAL ) AS INTEGER )
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7268
SELECT - MAX( DISTINCT + NULLIF ( 97, + 8 ) ) * 68 - + ( 80 ) + COALESCE ( + - 28, 95 DIV 85, + - 73 )
----
-6704

skipif mysql # not compatible
query I rowsort label-7268
SELECT - MAX ( DISTINCT + NULLIF ( 97, + 8 ) ) * 68 - + ( 80 ) + COALESCE ( + - 28, 95 / 85, + - 73 )
----
-6704

query I rowsort
SELECT ALL + 80 + - + 9
----
71

query I rowsort
SELECT ALL + 22 * 77 col2
----
1694

query I rowsort
SELECT - 97 + + 4 + + 72 col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT ALL - COUNT( * ) - + 44 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL - COUNT ( * ) - + 44 AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7273
SELECT CAST( NULL AS SIGNED ) + - - 88 * + 38 * + 0 + - COUNT( * ) + + 94 + + MAX( ALL CAST( NULL AS SIGNED ) ) + COUNT( * ) * - 40 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7273
SELECT CAST ( NULL AS INTEGER ) + - - 88 * + 38 * + 0 + - COUNT ( * ) + + 94 + + MAX ( ALL CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * - 40 col0
----
NULL

query II rowsort
SELECT 54 * - 73 AS col1, 55
----
-3942
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT - CASE ( - - 86 ) WHEN + - 0 THEN + 39 * - COALESCE ( 58, 85, + 98 ) WHEN + 47 * + - 33 * 9 THEN NULL WHEN + 34 THEN NULL ELSE NULL END * - 31 + - - 47 + CASE 51 WHEN - 20 + COUNT( * ) * - 58 + - ( + 46 ) + + 83 THEN 82 WHEN - 42 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT - CASE ( - - 86 ) WHEN + - 0 THEN + 39 * - COALESCE ( 58, 85, + 98 ) WHEN + 47 * + - 33 * 9 THEN NULL WHEN + 34 THEN NULL ELSE NULL END * - 31 + - - 47 + CASE 51 WHEN - 20 + COUNT ( * ) * - 58 + - ( + 46 ) + + 83 THEN 82 WHEN - 42 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT 50 + COUNT( * ) + 22 col1
----
73

skipif mysql # not compatible
query I rowsort label-7276
SELECT 50 + COUNT ( * ) + 22 col1
----
73

query I rowsort
SELECT DISTINCT ( 54 ) * - + 3 AS col0
----
-162

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7279
SELECT + 19 * + 30 + ( - - 88 ) + - COUNT( * ) / CASE COUNT( * ) WHEN + + COUNT( * ) * + 88 THEN - - 81 END + - - CAST( - 75 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT + 19 * + 30 + ( - - 88 ) + - COUNT ( * ) / CASE COUNT ( * ) WHEN + + COUNT ( * ) * + 88 THEN - - 81 END + - - CAST ( - 75 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 98 * - 84 AS col1
----
8232

query I rowsort
SELECT 44 * + - 82 * - 17 AS col1
----
61336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7282
SELECT ALL + 26 + - SUM( - CAST( NULL AS SIGNED ) ) * - - MIN( - 72 ) * - - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + 26 + - SUM ( - CAST ( NULL AS INTEGER ) ) * - - MIN ( - 72 ) * - - 79
----
NULL

query I rowsort
SELECT DISTINCT - 71 + + 12 + + + 0 - - 35 * - - 63 col0
----
2146

onlyif mysql # aggregate syntax: 
query II rowsort label-7284
SELECT 69 * - COUNT( * ) col0, 60
----
-69
60

skipif mysql # not compatible
query II rowsort label-7284
SELECT 69 * - COUNT ( * ) col0, 60
----
-69
60

query I rowsort
SELECT 4 + + 65 * - 34 AS col1
----
-2206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL - COUNT( DISTINCT 0 ) + NULLIF ( 30, AVG ( 12 ) + - 88 ) + ( + 92 ) + + 46 + 24 * 11 + + + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) * 54 - + 69 + - + COUNT( * ) + - 2 / + - COUNT( * ) * ( - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - COUNT ( DISTINCT 0 ) + NULLIF ( 30, AVG ( 12 ) + - 88 ) + ( + 92 ) + + 46 + 24 * 11 + + + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) * 54 - + 69 + - + COUNT ( * ) + - 2 / + - COUNT ( * ) * ( - 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT ALL + 26 + - 86 + + + 43 + - 63 * - 92 * COUNT( * ) + - + 10 AS col0
----
5769

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL + 26 + - 86 + + + 43 + - 63 * - 92 * COUNT ( * ) + - + 10 AS col0
----
5769

query I rowsort
SELECT ALL + 78 + - + 9
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT ALL + - 55 + + 85 - 63 + + + 19 * + 0 * 9 DIV + 74 * - 40 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL + - 55 + + 85 - 63 + + + 19 * + 0 * 9 / + 74 * - 40 AS col0
----
-33

query I rowsort
SELECT - 79 + 12 AS col0
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT DISTINCT + - 5 * + 75 + + CAST( NULL AS SIGNED ) + MAX( ALL + 26 ) * - 72 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT + - 5 * + 75 + + CAST ( NULL AS INTEGER ) + MAX ( ALL + 26 ) * - 72 col1
----
NULL

query I rowsort
SELECT - 37 - + 58 AS col0
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7293
SELECT + 6 * - 43 + ( CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7293
SELECT + 6 * - 43 + ( CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7295
SELECT - 29 + COUNT ( * ) AS col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT 17 DIV 90 + + + 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7296
SELECT 17 / 90 + + + 85 AS col0
----
85

query I rowsort
SELECT ALL - 51 - + 58 - - + ( - 13 )
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT + 73 * 93 + - + 8 + + + 85 + + - 1 / + 78 * + 69 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT + 73 * 93 + - + 8 + + + 85 + + - 1 / + 78 * + 69 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 63 * 22 AS col1
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-7300
SELECT DISTINCT - 2 DIV + 36 * + 45
----
0

skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT - 2 / + 36 * + 45
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT DISTINCT - 57 DIV 19 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT - 57 / 19 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT MIN( - 15 )
----
-15

skipif mysql # not compatible
query I rowsort label-7302
SELECT MIN ( - 15 )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT MIN( DISTINCT ( - 3 ) ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-7303
SELECT MIN ( DISTINCT ( - 3 ) ) AS col1
----
-3

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

skipif mysql # not compatible
query I rowsort label-7304
SELECT + SUM ( + - 88 )
----
-88

query I rowsort
SELECT ALL ( + + 68 ) * - 78
----
-5304

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT ALL 3 + + CASE + + MIN( 57 ) WHEN - 60 * - 24 THEN - AVG ( 34 ) + - - 43 END * + COUNT( DISTINCT + 15 ) * 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7306
SELECT ALL 3 + + CASE + + MIN ( 57 ) WHEN - 60 * - 24 THEN - AVG ( 34 ) + - - 43 END * + COUNT ( DISTINCT + 15 ) * 54 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7307
SELECT + 77 * 95 + + CASE + 34 WHEN + NULLIF ( 68, + 80 / - 68 - 80 + - 22 * 44 ) THEN + 40 - - + ( + COUNT( * ) ) * - + COUNT( * ) * + + CAST( NULL AS SIGNED ) - 94 + ( - 26 ) END AS col1, + 36
----
NULL
36

skipif mysql # not compatible
query II rowsort label-7307
SELECT + 77 * 95 + + CASE + 34 WHEN + NULLIF ( 68, + 80 / - 68 - 80 + - 22 * 44 ) THEN + 40 - - + ( + COUNT ( * ) ) * - + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) - 94 + ( - 26 ) END AS col1, + 36
----
NULL
36

query II rowsort
SELECT ALL + 30 AS col2, 70
----
30
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT - 67 * - MAX( - - 75 ) * + - 23 * + 25
----
-2889375

skipif mysql # not compatible
query I rowsort label-7309
SELECT - 67 * - MAX ( - - 75 ) * + - 23 * + 25
----
-2889375

query II rowsort
SELECT - COALESCE ( + 56, + - 89 ) AS col0, 63
----
-56
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL 43 + - COUNT( * )
----
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT 2 + + - CAST( COALESCE ( + - 32, - ( - - 34 ) ) AS SIGNED ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT 2 + + - CAST ( COALESCE ( + - 32, - ( - - 34 ) ) AS INTEGER ) AS col2
----
34

query I rowsort
SELECT ALL + 95 + 98
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7314
SELECT + 39 * CAST( NULL AS SIGNED ) + - 21, COALESCE ( - 65, + - 45 * - COUNT( * ) * - 15 + + 43 + + 31 * 89, + 28 ) AS col2
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-7314
SELECT + 39 * CAST ( NULL AS INTEGER ) + - 21, COALESCE ( - 65, + - 45 * - COUNT ( * ) * - 15 + + 43 + + 31 * 89, + 28 ) AS col2
----
NULL
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-7315
SELECT - 68 + COUNT( * ) - - 69 col1, 44 AS col1
----
2
44

skipif mysql # not compatible
query II rowsort label-7315
SELECT - 68 + COUNT ( * ) - - 69 col1, 44 AS col1
----
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7316
SELECT + - 16 + - 19 + + NULLIF ( + ( + - 2 ), + + COUNT( * ) - - 72 - - 34 * - 58 ) - + 17 + - - 32 + + 26 + NULLIF ( COUNT( * ), 49 + - 2 * + 66 + - 65 + 70 / - + 69 )
----
5

skipif mysql # not compatible
query I rowsort label-7316
SELECT + - 16 + - 19 + + NULLIF ( + ( + - 2 ), + + COUNT ( * ) - - 72 - - 34 * - 58 ) - + 17 + - - 32 + + 26 + NULLIF ( COUNT ( * ), 49 + - 2 * + 66 + - 65 + 70 / - + 69 )
----
5

query II rowsort
SELECT 82, + 84 AS col0
----
82
84

query II rowsort
SELECT ALL - - 40 + 91 * - 34 col0, + 23 * - - 30
----
-3054
690

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + + 41 + - COUNT( * )
----
40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT - - MIN( DISTINCT 16 ) + - ( + 6 )
----
10

skipif mysql # not compatible
query I rowsort label-7321
SELECT - - MIN ( DISTINCT 16 ) + - ( + 6 )
----
10

query I rowsort
SELECT - - 61 - + + 65 + + 5 * + + 31
----
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT - + 91 + + 10 * - 61 + + - CAST( NULL AS SIGNED ) * 93 + + 73 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT - + 91 + + 10 * - 61 + + - CAST ( NULL AS INTEGER ) * 93 + + 73 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT - ( + 16 ) - + - COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-7324
SELECT - ( + 16 ) - + - COUNT ( * ) AS col0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT - 98 + - CAST( NULL AS SIGNED ) + - 93 * - - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT - 98 + - CAST ( NULL AS INTEGER ) + - 93 * - - 76 AS col2
----
NULL

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

query I rowsort
SELECT ALL + + 35 * - 26 * 46 AS col1
----
-41860

query I rowsort
SELECT - 46 + + 35 - - COALESCE ( + - 43, 29, + 66 )
----
-54

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

skipif mysql # not compatible
query I rowsort label-7329
SELECT + COUNT ( * ) / + MAX ( + 80 ) + ( 43 )
----
43

query I rowsort
SELECT - 73 + + 92 + + + 0 * + ( 95 ) AS col2
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7331
SELECT + 43 * - - CAST( 2 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-7331
SELECT + 43 * - - CAST ( 2 AS INTEGER )
----
86

query I rowsort
SELECT 89 * - ( + 5 ) + 75 AS col1
----
-370

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

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT 57 / - COUNT ( * )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-7334
SELECT + 97 DIV + + 25 col1
----
3

skipif mysql # not compatible
query I rowsort label-7334
SELECT + 97 / + + 25 col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT ALL 92 * + + NULLIF ( + 42, ( + 77 ) + + ( 34 ) + 81 ) + 60 - COUNT( * ) - + - 4 AS col2
----
3927

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL 92 * + + NULLIF ( + 42, ( + 77 ) + + ( 34 ) + 81 ) + 60 - COUNT ( * ) - + - 4 AS col2
----
3927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7336
SELECT - 9 + - + COUNT( + 20 ) + COUNT( * ) col2, NULLIF ( 39, 33 * NULLIF ( 63, COALESCE ( - 21, 17 * + 73 + 14 + SUM( ALL + 32 ) * + + 21 * - + NULLIF ( + 8, - COUNT( * ) ) + + - 36 * - 13 ) ) * ( - - ( NULLIF ( - + 91, - 0 ) ) ) + + 75 - 5 ) * 2 + + ( - CAST( NULL AS SIGNED ) ) AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-7336
SELECT - 9 + - + COUNT ( + 20 ) + COUNT ( * ) col2, NULLIF ( 39, 33 * NULLIF ( 63, COALESCE ( - 21, 17 * + 73 + 14 + SUM ( ALL + 32 ) * + + 21 * - + NULLIF ( + 8, - COUNT ( * ) ) + + - 36 * - 13 ) ) * ( - - ( NULLIF ( - + 91, - 0 ) ) ) + + 75 - 5 ) * 2 + + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
-9
NULL

query I rowsort
SELECT + 15 + + 90
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7338
SELECT - MAX( - + CAST( NULL AS SIGNED ) ) * - CAST( NULL AS DECIMAL ) AS col0
----
NULL

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

query I rowsort
SELECT + ( + 19 ) + - + 37 AS col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7340
SELECT ALL NULLIF ( 60, 26 * + 3 * 7 + + + 94 - + 91 * + ( 54 ) + - CAST( + + SUM( + 38 ) AS SIGNED ) ) * - 22 * CAST( - CASE 59 WHEN COUNT( 79 ) THEN + 13 END AS SIGNED ) + - COUNT( * ) * - + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL NULLIF ( 60, 26 * + 3 * 7 + + + 94 - + 91 * + ( 54 ) + - CAST ( + + SUM ( + 38 ) AS INTEGER ) ) * - 22 * CAST ( - CASE 59 WHEN COUNT ( 79 ) THEN + 13 END AS INTEGER ) + - COUNT ( * ) * - + 87 col1
----
NULL

query I rowsort
SELECT ALL 55 * - - COALESCE ( + - 61, - - 27 )
----
-3355

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7342
SELECT 26 * 95 DIV + + 17 + + COUNT( * )
----
146

skipif mysql # not compatible
query I rowsort label-7342
SELECT 26 * 95 / + + 17 + + COUNT ( * )
----
146

query I rowsort
SELECT ( + - 47 ) * + 45 + 28 * + 78 col2
----
69

query I rowsort
SELECT ALL - 34 * 49 + + - 71
----
-1737

query II rowsort
SELECT ALL 61 * + - 61 AS col0, 64 AS col0
----
-3721
64

onlyif mysql # aggregate syntax: 
query II rowsort label-7346
SELECT + COUNT( * ) + - 2 AS col0, 48 AS col0
----
-1
48

skipif mysql # not compatible
query II rowsort label-7346
SELECT + COUNT ( * ) + - 2 AS col0, 48 AS col0
----
-1
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - 72 * - 7 * - MAX( - 31 ) + + - 82
----
15542

skipif mysql # not compatible
query I rowsort label-7347
SELECT - 72 * - 7 * - MAX ( - 31 ) + + - 82
----
15542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7348
SELECT + ( - + MIN( 93 ) ) * + ( + ( + 71 ) ) * + 13 DIV COUNT( * ) * + 46 + + 18
----
-3948576

skipif mysql # not compatible
query I rowsort label-7348
SELECT + ( - + MIN ( 93 ) ) * + ( + ( + 71 ) ) * + 13 / COUNT ( * ) * + 46 + + 18
----
-3948576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7349
SELECT + 25 * - + CASE - COUNT( * ) WHEN + + 16 * 18 * - - 50 THEN COUNT( DISTINCT ( + 92 ) ) * + 24 WHEN - + CAST( + + 16 AS SIGNED ) + + 55 * - 62 / ( - 69 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7349
SELECT + 25 * - + CASE - COUNT ( * ) WHEN + + 16 * 18 * - - 50 THEN COUNT ( DISTINCT ( + 92 ) ) * + 24 WHEN - + CAST ( + + 16 AS INTEGER ) + + 55 * - 62 / ( - 69 ) THEN NULL ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7350
SELECT - 88 + + COUNT( ALL 43 ) + - + COUNT( * ) + 97 DIV - 66 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-7350
SELECT - 88 + + COUNT ( ALL 43 ) + - + COUNT ( * ) + 97 / - 66 AS col2
----
-89

query I rowsort
SELECT DISTINCT - ( - 63 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7352
SELECT + - NULLIF ( - CAST( NULL AS SIGNED ), + 59 ) / - + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7352
SELECT + - NULLIF ( - CAST ( NULL AS INTEGER ), + 59 ) / - + 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7353
SELECT ALL - 24 DIV + + 54 + - + 87 - COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - 24 / + + 54 + - + 87 - COUNT ( * )
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7354
SELECT ALL CAST( + + ( + NULLIF ( 36, 12 * + 34 + ( - 31 ) ) ) AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL CAST ( + + ( + NULLIF ( 36, 12 * + 34 + ( - 31 ) ) ) AS INTEGER )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7355
SELECT + - 68 DIV - 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7355
SELECT + - 68 / - 75 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7356
SELECT - 91 DIV - + COALESCE ( 83, COALESCE ( + 84, 46 ), + - CASE + + 27 WHEN 52 THEN NULL WHEN - 22 THEN + 29 + 57 ELSE NULL END * - - COALESCE ( + 6, + - 95 + - 18 + + - 29 + 52 * + - 5 ) * 57 - + 87 + + 39 - 15 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 91 / - + COALESCE ( 83, COALESCE ( + 84, 46 ), + - CASE + + 27 WHEN 52 THEN NULL WHEN - 22 THEN + 29 + 57 ELSE NULL END * - - COALESCE ( + 6, + - 95 + - 18 + + - 29 + 52 * + - 5 ) * 57 - + 87 + + 39 - 15 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT + ( - - SUM( DISTINCT + 81 ) ) * + - ( CASE 43 WHEN + ( COUNT( * ) ) * + + 23 THEN NULL ELSE + 44 + - - 32 END ) AS col2
----
-6156

skipif mysql # not compatible
query I rowsort label-7357
SELECT + ( - - SUM ( DISTINCT + 81 ) ) * + - ( CASE 43 WHEN + ( COUNT ( * ) ) * + + 23 THEN NULL ELSE + 44 + - - 32 END ) AS col2
----
-6156

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT + 35 - + COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7358
SELECT + 35 - + COUNT ( * ) AS col2
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT - - 72 + + 28 DIV 78 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-7359
SELECT - - 72 + + 28 / 78 AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7360
SELECT ALL - COUNT( * ) DIV ( - 62 ) * - - COUNT( * ) + - - ( + 25 ) DIV + - 73 + + 37
----
37

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL - COUNT ( * ) / ( - 62 ) * - - COUNT ( * ) + - - ( + 25 ) / + - 73 + + 37
----
37

query I rowsort
SELECT ALL + 17 + 40 AS col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT - - COUNT( 39 ) AS col0, - 53 * + 11 + + 37 * - 84 AS col1
----
1
-3691

skipif mysql # not compatible
query II rowsort label-7362
SELECT - - COUNT ( 39 ) AS col0, - 53 * + 11 + + 37 * - 84 AS col1
----
1
-3691

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT 2 * - - 10 * 19 DIV - - 43 - + 71 AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-7363
SELECT 2 * - - 10 * 19 / - - 43 - + 71 AS col1
----
-63

query I rowsort
SELECT ALL - 30 * - - 39 AS col0
----
-1170

query I rowsort
SELECT ALL - 57 + - 12 + + 94 * - 83 AS col0
----
-7871

query II rowsort
SELECT 5 AS col2, + 3 + - + 81 AS col1
----
5
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT DISTINCT - 39 + + - MAX( DISTINCT + - 93 ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT - 39 + + - MAX ( DISTINCT + - 93 ) AS col1
----
54

query I rowsort
SELECT 53 + + 70
----
123

query I rowsort
SELECT 60 * + 71
----
4260

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7370
SELECT 95 * + + CAST( NULL AS DECIMAL ) * - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT 95 * + + CAST ( NULL AS REAL ) * - 60
----
NULL

query I rowsort
SELECT 85 * + 41
----
3485

query I rowsort
SELECT ALL - ( - 5 ) AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL 2 * + + COUNT( * ) * - ( - + COUNT( * ) ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL 2 * + + COUNT ( * ) * - ( - + COUNT ( * ) ) AS col0
----
2

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7375
SELECT ( COUNT( * ) ) * + - CAST( NULL AS SIGNED ) AS col0, CASE - 7 WHEN + 21 THEN NULL ELSE - 64 * ( - COUNT( * ) ) + + - 7 + + + 41 * + 48 * - COUNT( + - NULLIF ( 15, 1 ) ) + + COUNT( * ) END
----
NULL
-1910

skipif mysql # not compatible
query II rowsort label-7375
SELECT ( COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) AS col0, CASE - 7 WHEN + 21 THEN NULL ELSE - 64 * ( - COUNT ( * ) ) + + - 7 + + + 41 * + 48 * - COUNT ( + - NULLIF ( 15, 1 ) ) + + COUNT ( * ) END
----
NULL
-1910

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

skipif mysql # not compatible
query I rowsort label-7376
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT 33 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7377
SELECT 33 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT - ( - - 82 ) + - 1 + + ( + - 35 ) * + MAX( ALL + 65 ) * + COUNT( * ) * + - 83 + + + 79 * + - 47
----
185029

skipif mysql # not compatible
query I rowsort label-7378
SELECT - ( - - 82 ) + - 1 + + ( + - 35 ) * + MAX ( ALL + 65 ) * + COUNT ( * ) * + - 83 + + + 79 * + - 47
----
185029

query II rowsort
SELECT ALL - COALESCE ( 69, - + 22 + - - 43 * - 62 ), 62 AS col1
----
-69
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT 2 + + - CASE - ( - 30 ) WHEN - + COUNT( * ) THEN - COALESCE ( + 19, 24 * - ( 92 ) + 48, 14 ) * 17 * - + COUNT( * ) - COUNT( * ) WHEN - 91 THEN NULL END * 33 + - 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7380
SELECT 2 + + - CASE - ( - 30 ) WHEN - + COUNT ( * ) THEN - COALESCE ( + 19, 24 * - ( 92 ) + 48, 14 ) * 17 * - + COUNT ( * ) - COUNT ( * ) WHEN - 91 THEN NULL END * 33 + - 24 AS col1
----
NULL

query II rowsort
SELECT ALL 31 col1, - 69 AS col2
----
31
-69

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

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * + + COUNT ( * ) / - 58
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7383
SELECT - COUNT( * ) + 17 DIV - - 70
----
-1

skipif mysql # not compatible
query I rowsort label-7383
SELECT - COUNT ( * ) + 17 / - - 70
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT 81 + + + MAX( DISTINCT - - 54 ) AS col0
----
135

skipif mysql # not compatible
query I rowsort label-7384
SELECT 81 + + + MAX ( DISTINCT - - 54 ) AS col0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT - 32 + - 25 - - 65 * CAST( + 97 AS SIGNED ) * + 60 AS col1
----
378243

skipif mysql # not compatible
query I rowsort label-7385
SELECT - 32 + - 25 - - 65 * CAST ( + 97 AS INTEGER ) * + 60 AS col1
----
378243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7386
SELECT CASE 0 WHEN + 94 THEN - CAST( 6 AS SIGNED ) WHEN + 77 - - AVG ( ALL 59 ) THEN NULL ELSE - 26 * + 28 + - - 52 END AS col2
----
-676

skipif mysql # not compatible
query I rowsort label-7386
SELECT CASE 0 WHEN + 94 THEN - CAST ( 6 AS INTEGER ) WHEN + 77 - - AVG ( ALL 59 ) THEN NULL ELSE - 26 * + 28 + - - 52 END AS col2
----
-676

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

query I rowsort
SELECT ALL + 87 + + - 27 col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT 50 + ( - NULLIF ( 12, + 55 * + ( - ( COALESCE ( - 95, 36 + COALESCE ( - - CASE - 28 WHEN - SUM( - 41 ) THEN NULL WHEN - 29 * + 39 THEN NULL WHEN 10 THEN NULL WHEN - - CAST( NULL AS SIGNED ) THEN + 3 + + 20 + - 25 END, + 17 * + 65 + ( + + 51 ) + - 93 - - 98 + - 32 * 48 ), 85 * 96, - 77 ) ) ) * 84 ) ) * 66 AS col2
----
-742

skipif mysql # not compatible
query I rowsort label-7389
SELECT 50 + ( - NULLIF ( 12, + 55 * + ( - ( COALESCE ( - 95, 36 + COALESCE ( - - CASE - 28 WHEN - SUM ( - 41 ) THEN NULL WHEN - 29 * + 39 THEN NULL WHEN 10 THEN NULL WHEN - - CAST ( NULL AS INTEGER ) THEN + 3 + + 20 + - 25 END, + 17 * + 65 + ( + + 51 ) + - 93 - - 98 + - 32 * 48 ), 85 * 96, - 77 ) ) ) * 84 ) ) * 66 AS col2
----
-742

query I rowsort
SELECT DISTINCT - 18 + - 6
----
-24

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

skipif mysql # not compatible
query I rowsort label-7391
SELECT 70 / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 27 + 75 + - + 69
----
33

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

query II rowsort
SELECT 50 + + + ( - ( - - 33 ) ), 62 AS col1
----
17
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT CASE 72 WHEN + 11 * - CAST( + - 79 AS SIGNED ) * 14 THEN - ( NULLIF ( + 99, - 99 * + + COUNT( * ) + - 97 * ( + - 62 ) * + + COUNT( DISTINCT + 92 ) ) ) + 44 ELSE + MAX( ALL - 57 ) + + + 87 END * 82 * - + COUNT( * ) * - - COALESCE ( + 66, - 70 - + + ( CAST( NULL AS SIGNED ) ) )
----
-162360

skipif mysql # not compatible
query I rowsort label-7395
SELECT CASE 72 WHEN + 11 * - CAST ( + - 79 AS INTEGER ) * 14 THEN - ( NULLIF ( + 99, - 99 * + + COUNT ( * ) + - 97 * ( + - 62 ) * + + COUNT ( DISTINCT + 92 ) ) ) + 44 ELSE + MAX ( ALL - 57 ) + + + 87 END * 82 * - + COUNT ( * ) * - - COALESCE ( + 66, - 70 - + + ( CAST ( NULL AS INTEGER ) ) )
----
-162360

query II rowsort
SELECT 89 * - 16 AS col1, 80 AS col2
----
-1424
80

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

skipif mysql # not compatible
query II rowsort label-7397
SELECT ALL - COUNT ( * ) col0, 8
----
-1
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT + CASE COUNT( * ) WHEN + 1 THEN + - 36 END / - 94 - + - 28 + CAST( NULL AS SIGNED ) + COUNT( * ) + - 35 * - + 18 + + - 81 * + + 31 + + + 71 - - + 99 * + - COUNT( * ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT + CASE COUNT ( * ) WHEN + 1 THEN + - 36 END / - 94 - + - 28 + CAST ( NULL AS INTEGER ) + COUNT ( * ) + - 35 * - + 18 + + - 81 * + + 31 + + + 71 - - + 99 * + - COUNT ( * ) + + 72
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7399
SELECT 95 DIV - CAST( 73 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7399
SELECT 95 / - CAST ( 73 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT CASE ( 19 ) WHEN + - ( + 12 ) + + 38 + 44 + - 48 + 44 + - 40 + + 8 * + COUNT( * ) * + 24 * 82 / 42 THEN - 89 * - ( 81 ) ELSE NULL END / + 30 + - ( - 82 ) * + - 67 * + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT CASE ( 19 ) WHEN + - ( + 12 ) + + 38 + 44 + - 48 + 44 + - 40 + + 8 * + COUNT ( * ) * + 24 * 82 / 42 THEN - 89 * - ( 81 ) ELSE NULL END / + 30 + - ( - 82 ) * + - 67 * + 17 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT 96, - 59 + + COUNT( * ) col0
----
96
-58

skipif mysql # not compatible
query II rowsort label-7401
SELECT 96, - 59 + + COUNT ( * ) col0
----
96
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7402
SELECT ALL - COUNT( * ) + - 46 DIV + 37 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - COUNT ( * ) + - 46 / + 37 AS col1
----
-2

query I rowsort
SELECT 85 + + 12 AS col1
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT 88 * COUNT( * ) * 78 / CASE + 5 WHEN + 99 + - 53 + - 93 THEN + 70 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT 88 * COUNT ( * ) * 78 / CASE + 5 WHEN + 99 + - 53 + - 93 THEN + 70 END AS col2
----
NULL

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

query I rowsort
SELECT - 27 / - - CASE + - 37 WHEN - + 60 + - 75 THEN 0 * - - 89 WHEN + 54 THEN 0 + + 23 * - + 81 END + - 62 + + 14 col2
----
NULL

query I rowsort
SELECT ALL - NULLIF ( 47, + 43 )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT 96 AS col0, - CASE 27 WHEN + 30 THEN + - 48 + - - 78 WHEN ( + ( + 20 ) ) + + 60 THEN - - 64 WHEN + + COUNT( * ) THEN + 46 ELSE 65 END
----
96
-65

skipif mysql # not compatible
query II rowsort label-7408
SELECT 96 AS col0, - CASE 27 WHEN + 30 THEN + - 48 + - - 78 WHEN ( + ( + 20 ) ) + + 60 THEN - - 64 WHEN + + COUNT ( * ) THEN + 46 ELSE 65 END
----
96
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT SUM( ALL + 44 ) * + - 14
----
-616

skipif mysql # not compatible
query I rowsort label-7409
SELECT SUM ( ALL + 44 ) * + - 14
----
-616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7410
SELECT COALESCE ( ( 18 ), + 22 + COALESCE ( - 52, + + ( 43 ) ) + - CAST( NULL AS SIGNED ), - + COUNT( * ) * + - 36 ) + - 85 AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-7410
SELECT COALESCE ( ( 18 ), + 22 + COALESCE ( - 52, + + ( 43 ) ) + - CAST ( NULL AS INTEGER ), - + COUNT ( * ) * + - 36 ) + - 85 AS col2
----
-67

query I rowsort
SELECT 48 * + 51 AS col1
----
2448

query II rowsort
SELECT ALL - + 40 AS col0, - 23
----
-40
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT 78 DIV + 24 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-7413
SELECT 78 / + 24 AS col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7414
SELECT DISTINCT + 74 DIV - - 80
----
0

skipif mysql # not compatible
query I rowsort label-7414
SELECT DISTINCT + 74 / - - 80
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7415
SELECT + 12 DIV - CAST( - - 79 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 12 / - CAST ( - - 79 AS INTEGER )
----
0

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

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

query II rowsort
SELECT ALL - 17, 83 - + + 29 AS col2
----
-17
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7418
SELECT ALL - - 74 + + 37 - + 94 + - + 95 AS col2, 96 + + NULLIF ( + COUNT( * ), + + COUNT( * ) * + + COUNT( * ) + CAST( - 70 AS SIGNED ) ) AS col2
----
-78
97

skipif mysql # not compatible
query II rowsort label-7418
SELECT ALL - - 74 + + 37 - + 94 + - + 95 AS col2, 96 + + NULLIF ( + COUNT ( * ), + + COUNT ( * ) * + + COUNT ( * ) + CAST ( - 70 AS INTEGER ) ) AS col2
----
-78
97

query II rowsort
SELECT DISTINCT - 78, 93 * - 65 + 3 AS col1
----
-78
-6042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7420
SELECT DISTINCT - MAX( ALL + CAST( NULL AS SIGNED ) ) + CASE - + 76 WHEN - 65 + - + CAST( + 66 AS SIGNED ) THEN NULL WHEN + COUNT( * ) * + 81 + CAST( + SUM( DISTINCT + 91 ) AS DECIMAL ) / - - COUNT( * ) * + - 56 THEN NULL WHEN 30 * 91 THEN NULL ELSE + 91 * + CAST( NULL AS SIGNED ) END - 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT - MAX ( ALL + CAST ( NULL AS INTEGER ) ) + CASE - + 76 WHEN - 65 + - + CAST ( + 66 AS INTEGER ) THEN NULL WHEN + COUNT ( * ) * + 81 + CAST ( + SUM ( DISTINCT + 91 ) AS REAL ) / - - COUNT ( * ) * + - 56 THEN NULL WHEN 30 * 91 THEN NULL ELSE + 91 * + CAST ( NULL AS INTEGER ) END - 78 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7421
SELECT + 80 * + NULLIF ( - 97, + ( - 32 ) + - - 30 - + + ( - 61 ) ) / + - 92 + 11 + + + 51 * - 60 * - + CAST( NULL AS SIGNED ) - + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7421
SELECT + 80 * + NULLIF ( - 97, + ( - 32 ) + - - 30 - + + ( - 61 ) ) / + - 92 + 11 + + + 51 * - 60 * - + CAST ( NULL AS INTEGER ) - + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7422
SELECT - 10 * + 75 col0, + 70 * 26 + 52 + 93 - - 91 * COUNT( * ) AS col2
----
-750
2056

skipif mysql # not compatible
query II rowsort label-7422
SELECT - 10 * + 75 col0, + 70 * 26 + 52 + 93 - - 91 * COUNT ( * ) AS col2
----
-750
2056

query I rowsort
SELECT + CASE - - 81 WHEN - 8 THEN ( - 59 ) END - - 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7424
SELECT - SUM( DISTINCT + 34 ) AS col0, 62 * + 71 AS col0
----
-34
4402

skipif mysql # not compatible
query II rowsort label-7424
SELECT - SUM ( DISTINCT + 34 ) AS col0, 62 * + 71 AS col0
----
-34
4402

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7425
SELECT - COALESCE ( + CASE 13 WHEN 30 DIV - 69 DIV COUNT( * ) * - 56 * + 68 + 56 DIV 72 * + 15 * - + 58 * 79 * - + ( + ( + - 37 ) ) - + 55 DIV COUNT( * ) THEN + CASE - 28 WHEN - - 39 THEN - 20 * 58 * + + 1 + - 92 * + 76 WHEN 28 * - 81 THEN NULL END WHEN - + ( - ( - CASE - - CASE + 71 WHEN - CAST( NULL AS SIGNED ) THEN + 72 * + COUNT( * ) END WHEN CASE + NULLIF ( - 49, 27 DIV 17 ) WHEN CASE - 81 WHEN - 91 + 60 THEN NULL WHEN + MAX( DISTINCT + 21 ) THEN NULL ELSE 18 * - 45 END + 97 THEN ( 60 ) + COUNT( * ) END THEN 11 + AVG ( ALL 25 ) END ) ) DIV 41 + - MIN( CAST( NULL AS SIGNED ) ) THEN NULL END, 15 - + 67, - 55, + COUNT( * ) DIV 13 )
----
52

skipif mysql # not compatible
query I rowsort label-7425
SELECT - COALESCE ( + CASE 13 WHEN 30 / - 69 / COUNT ( * ) * - 56 * + 68 + 56 / 72 * + 15 * - + 58 * 79 * - + ( + ( + - 37 ) ) - + 55 / COUNT ( * ) THEN + CASE - 28 WHEN - - 39 THEN - 20 * 58 * + + 1 + - 92 * + 76 WHEN 28 * - 81 THEN NULL END WHEN - + ( - ( - CASE - - CASE + 71 WHEN - CAST ( NULL AS INTEGER ) THEN + 72 * + COUNT ( * ) END WHEN CASE + NULLIF ( - 49, 27 / 17 ) WHEN CASE - 81 WHEN - 91 + 60 THEN NULL WHEN + MAX ( DISTINCT + 21 ) THEN NULL ELSE 18 * - 45 END + 97 THEN ( 60 ) + COUNT ( * ) END THEN 11 + AVG ( ALL 25 ) END ) ) / 41 + - MIN ( CAST ( NULL AS INTEGER ) ) THEN NULL END, 15 - + 67, - 55, + COUNT ( * ) / 13 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + ( - - COUNT( * ) ) - 58 * COUNT( * ) + + 22 * - 98
----
-2213

skipif mysql # not compatible
query I rowsort label-7426
SELECT + ( - - COUNT ( * ) ) - 58 * COUNT ( * ) + + 22 * - 98
----
-2213

query II rowsort
SELECT ALL + 67 * + 57, + 13 AS col1
----
3819
13

query I rowsort
SELECT CASE WHEN ( NOT ( NOT 67 IS NOT NULL ) ) THEN + + 21 + + 69 END AS col0
----
90

query I rowsort
SELECT CASE + 49 WHEN - - 50 / + 68 THEN + 44 ELSE - 62 END AS col1
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7430
SELECT ALL + NULLIF ( - + 95, 89 ) DIV COUNT( * ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + NULLIF ( - + 95, 89 ) / COUNT ( * ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - ( + + MIN( + - 56 ) ) * + 3 - - - COUNT( * )
----
167

skipif mysql # not compatible
query I rowsort label-7431
SELECT - ( + + MIN ( + - 56 ) ) * + 3 - - - COUNT ( * )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT + 25 * + MIN( ALL 98 ) * + ( - + 47 ) AS col1
----
-115150

skipif mysql # not compatible
query I rowsort label-7432
SELECT + 25 * + MIN ( ALL 98 ) * + ( - + 47 ) AS col1
----
-115150

query I rowsort
SELECT + 65 * - - 62
----
4030

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT DISTINCT + 45 * - 99 * + 41 * - + 78 * + MIN( DISTINCT - + 33 )
----
-470153970

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT + 45 * - 99 * + 41 * - + 78 * + MIN ( DISTINCT - + 33 )
----
-470153970

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT - + 6 + MAX( ALL - - 98 ) + 44
----
136

skipif mysql # not compatible
query I rowsort label-7435
SELECT - + 6 + MAX ( ALL - - 98 ) + 44
----
136

query I rowsort
SELECT - 71 * + 48
----
-3408

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT ALL + 20 * 90 + + + 18 + - COUNT( * )
----
1817

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + 20 * 90 + + + 18 + - COUNT ( * )
----
1817

onlyif mysql # aggregate syntax: 
query II rowsort label-7438
SELECT ALL + COUNT( - 4 ) AS col0, CASE WHEN NOT + COUNT( + + 85 ) NOT IN ( 11 * 19 + - 50, 18, - 1 * + 53 + - - 56 - - + 95 ) THEN 8 WHEN NOT 52 <= - 1 * 60 + - 38 THEN NULL ELSE + 55 + - 50 END
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7438
SELECT ALL + COUNT ( - 4 ) AS col0, CASE WHEN NOT + COUNT ( + + 85 ) NOT IN ( 11 * 19 + - 50, 18, - 1 * + 53 + - - 56 - - + 95 ) THEN 8 WHEN NOT 52 <= - 1 * 60 + - 38 THEN NULL ELSE + 55 + - 50 END
----
1
NULL

query I rowsort
SELECT - 51 + + 41 col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT - - CASE + ( + - 65 ) WHEN - - 61 - 64 + - - 29 * 81 * - ( 44 ) + - - COUNT( * ) THEN + MAX( DISTINCT - COALESCE ( 67, + 95 + 18 * 71, 57 ) ) * - - 44 * + 0 - - 72 WHEN COALESCE ( + + SUM( ALL + + 50 ), - 41 ) - 39 + + + 86 - - + 24 * - 73 THEN NULL ELSE NULL END + 55
----
NULL

skipif mysql # not compatible
query I rowsort label-7440
SELECT - - CASE + ( + - 65 ) WHEN - - 61 - 64 + - - 29 * 81 * - ( 44 ) + - - COUNT ( * ) THEN + MAX ( DISTINCT - COALESCE ( 67, + 95 + 18 * 71, 57 ) ) * - - 44 * + 0 - - 72 WHEN COALESCE ( + + SUM ( ALL + + 50 ), - 41 ) - 39 + + + 86 - - + 24 * - 73 THEN NULL ELSE NULL END + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7441
SELECT - + 74 * 78 + 28 * 18 * 96 AS col1, - ( + + MIN( DISTINCT 93 ) )
----
42612
-93

skipif mysql # not compatible
query II rowsort label-7441
SELECT - + 74 * 78 + 28 * 18 * 96 AS col1, - ( + + MIN ( DISTINCT 93 ) )
----
42612
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7442
SELECT ALL + + COUNT( * ) DIV - 95 + + 42 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL + + COUNT ( * ) / - 95 + + 42 AS col2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7443
SELECT ALL - 99 DIV 28
----
-3

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL - 99 / 28
----
-3

query I rowsort
SELECT ALL 33 - + 21 - + CASE - ( - + 96 ) WHEN - 59 THEN - - NULLIF ( - 47, - - 51 ) ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT 4, + 7 / + + CASE + 82 WHEN - 31 THEN + 26 END AS col0
----
4
NULL

query II rowsort
SELECT 48 AS col1, + 18
----
48
18

query I rowsort
SELECT DISTINCT + 26 - 43 * - ( + 9 )
----
413

query I rowsort
SELECT + ( + + 18 ) + 79 * 68 AS col2
----
5390

query I rowsort
SELECT - CASE - + 54 WHEN - - 53 THEN 29 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7450
SELECT - COALESCE ( - 12, + + 29 ) + + - 27 / + + 73 / + 17 * - COUNT( * ) + - CAST( NULL AS SIGNED ) + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT - COALESCE ( - 12, + + 29 ) + + - 27 / + + 73 / + 17 * - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + 85
----
NULL

query I rowsort
SELECT + 2 - - + 50 AS col1
----
52

query I rowsort
SELECT + 61 * 13 AS col1
----
793

onlyif mysql # DIV for integer division: 
query I rowsort label-7453
SELECT 45 DIV - 19 + 71 AS col0
----
69

skipif mysql # not compatible
query I rowsort label-7453
SELECT 45 / - 19 + 71 AS col0
----
69

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7455
SELECT + 66 + - - 12 * 12 DIV + - 40 - - - CAST( + - 92 AS SIGNED ) AS col1, - CASE + 22 WHEN - CAST( - 35 AS SIGNED ) THEN - - 33 + 48 WHEN + - COUNT( * ) * + 61 * + + 8 * + + 41 + + 73 + + 21 + - 14 + + 98 THEN - + ( - 0 ) WHEN + - 54 * - + 69 THEN NULL END
----
155
NULL

skipif mysql # not compatible
query II rowsort label-7455
SELECT + 66 + - - 12 * 12 / + - 40 - - - CAST ( + - 92 AS INTEGER ) AS col1, - CASE + 22 WHEN - CAST ( - 35 AS INTEGER ) THEN - - 33 + 48 WHEN + - COUNT ( * ) * + 61 * + + 8 * + + 41 + + 73 + + 21 + - 14 + + 98 THEN - + ( - 0 ) WHEN + - 54 * - + 69 THEN NULL END
----
155
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7456
SELECT + 25 DIV + 25 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 25 / + 25 AS col0
----
1

onlyif mysql # DIV for integer division: 
query III rowsort label-7457
SELECT DISTINCT + 52 AS col0, NULLIF ( + 61, 95 * - 22 ) DIV + + 21, + 81 AS col1
----
52
2
81

skipif mysql # not compatible
query III rowsort label-7457
SELECT DISTINCT + 52 AS col0, NULLIF ( + 61, 95 * - 22 ) / + + 21, + 81 AS col1
----
52
2
81

query I rowsort
SELECT ALL - COALESCE ( - 49, 74 ) * - 30 + - 57
----
-1527

onlyif mysql # DIV for integer division: 
query I rowsort label-7459
SELECT - - ( 45 ) DIV - 88 + + 97
----
97

skipif mysql # not compatible
query I rowsort label-7459
SELECT - - ( 45 ) / - 88 + + 97
----
97

query I rowsort
SELECT + 58 * + + 20 * 77 * - + 63 AS col0
----
-5627160

onlyif mysql # DIV for integer division: 
query I rowsort label-7461
SELECT ALL + 52 DIV - + 21 + + + 36 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL + 52 / - + 21 + + + 36 AS col0
----
34

query II rowsort
SELECT + + CASE + 20 WHEN - 83 * + 83 + + 17 * + - 2 * - 97 THEN + 46 ELSE NULL END col1, + 95 AS col0
----
NULL
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT ALL - + 34 * 24 * + + 83 + COUNT( * )
----
-67727

skipif mysql # not compatible
query I rowsort label-7464
SELECT ALL - + 34 * 24 * + + 83 + COUNT ( * )
----
-67727

query II rowsort
SELECT DISTINCT + - 69 * + + 75 + 90, 97 AS col1
----
-5085
97

query I rowsort
SELECT + 35 * + 63
----
2205

onlyif mysql # DIV for integer division: 
query II rowsort label-7467
SELECT + 57 col2, 15 DIV - - 8 AS col1
----
57
1

skipif mysql # not compatible
query II rowsort label-7467
SELECT + 57 col2, 15 / - - 8 AS col1
----
57
1

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

query II rowsort
SELECT - - 79 AS col0, ( ( + 92 ) ) + - 0
----
79
92

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

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

query I rowsort
SELECT - NULLIF ( + NULLIF ( + + 33, - - 67 ), + ( 17 ) ) * + - 68
----
2244

query I rowsort
SELECT 25 * - + 83 AS col0
----
-2075

query II rowsort
SELECT DISTINCT + 6 * + + 33 * 43 AS col0, - 42
----
8514
-42

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT 79 * ( CASE - - 41 WHEN - 5 THEN NULL WHEN - + ( - NULLIF ( COUNT( * ), + 46 ) ) + - 41 THEN 98 + - 49 WHEN + COUNT( * ) THEN NULL WHEN - 4 THEN 71 ELSE 22 END ) AS col1
----
1738

skipif mysql # not compatible
query I rowsort label-7475
SELECT 79 * ( CASE - - 41 WHEN - 5 THEN NULL WHEN - + ( - NULLIF ( COUNT ( * ), + 46 ) ) + - 41 THEN 98 + - 49 WHEN + COUNT ( * ) THEN NULL WHEN - 4 THEN 71 ELSE 22 END ) AS col1
----
1738

query I rowsort
SELECT DISTINCT - 94 * + 13 AS col1
----
-1222

onlyif mysql # aggregate syntax: 
query II rowsort label-7477
SELECT 95 + COUNT( * ) + - 7 + - 24, - 15 - - COUNT( * ) * + ( - 93 ) AS col2
----
65
-108

skipif mysql # not compatible
query II rowsort label-7477
SELECT 95 + COUNT ( * ) + - 7 + - 24, - 15 - - COUNT ( * ) * + ( - 93 ) AS col2
----
65
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT ALL - COUNT( - + 72 ) - + 70 col2
----
-71

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - COUNT ( - + 72 ) - + 70 col2
----
-71

query I rowsort
SELECT 69 * 50
----
3450

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT 78 - 21 * - - NULLIF ( + - 97, 39 - MIN( + 36 ) ) + - 23 * - 27 + + SUM( + - 29 ) col1
----
2707

skipif mysql # not compatible
query I rowsort label-7480
SELECT 78 - 21 * - - NULLIF ( + - 97, 39 - MIN ( + 36 ) ) + - 23 * - 27 + + SUM ( + - 29 ) col1
----
2707

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT DISTINCT - 50 DIV - + 72 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT - 50 / - + 72 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT 88 + 93 AS col2, + 56 + + + 81 * + COUNT( DISTINCT + 40 ) + 47 AS col1
----
181
184

skipif mysql # not compatible
query II rowsort label-7482
SELECT 88 + 93 AS col2, + 56 + + + 81 * + COUNT ( DISTINCT + 40 ) + 47 AS col1
----
181
184

query I rowsort
SELECT 94 * - 14 col0
----
-1316

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT 30 + - + 93 + + - CAST( NULL AS SIGNED ) * + + 30 / - + 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT 30 + - + 93 + + - CAST ( NULL AS INTEGER ) * + + 30 / - + 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT - COUNT( DISTINCT - - 31 ) DIV 74 + 77
----
77

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT - COUNT ( DISTINCT - - 31 ) / 74 + 77
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7486
SELECT DISTINCT - 50 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7486
SELECT DISTINCT - 50 / 68 AS col1
----
0

query I rowsort
SELECT ALL 37 + + - 98
----
-61

query II rowsort
SELECT 20 * + 84, + 98 AS col2
----
1680
98

query I rowsort
SELECT NULLIF ( 17, + 97 - - 39 ) * + 69 + + 47
----
1220

onlyif mysql # aggregate syntax: 
query II rowsort label-7490
SELECT ALL - + 22 + - + SUM( + - 54 ) + + 75 AS col0, - 18
----
107
-18

skipif mysql # not compatible
query II rowsort label-7490
SELECT ALL - + 22 + - + SUM ( + - 54 ) + + 75 AS col0, - 18
----
107
-18

query I rowsort
SELECT 56 * - 12 * 33 AS col1
----
-22176

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL - 54 + - MIN( DISTINCT - 24 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - 54 + - MIN ( DISTINCT - 24 ) AS col1
----
-30

query I rowsort
SELECT DISTINCT + - 80 + 48 + - - 56 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-7494
SELECT ALL - COUNT( * ) + COUNT( * ) - 82 + COUNT( * ) col0, - 5 col0
----
-81
-5

skipif mysql # not compatible
query II rowsort label-7494
SELECT ALL - COUNT ( * ) + COUNT ( * ) - 82 + COUNT ( * ) col0, - 5 col0
----
-81
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT 2 * + MIN( - 23 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-7495
SELECT 2 * + MIN ( - 23 ) AS col1
----
-46

query I rowsort
SELECT DISTINCT - NULLIF ( + 37, - 98 ) * - 53
----
1961

query I rowsort
SELECT - 46 * - 64 + + 27 col2
----
2971

onlyif mysql # aggregate syntax: 
query II rowsort label-7498
SELECT + MIN( - 10 ) AS col2, 87
----
-10
87

skipif mysql # not compatible
query II rowsort label-7498
SELECT + MIN ( - 10 ) AS col2, 87
----
-10
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL 16 * + 61 * - SUM( 98 )
----
-95648

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL 16 * + 61 * - SUM ( 98 )
----
-95648

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT 50 + + 84 * + NULLIF ( MAX( ALL + 33 ), + + 52 * + + 13 )
----
2822

skipif mysql # not compatible
query I rowsort label-7500
SELECT 50 + + 84 * + NULLIF ( MAX ( ALL + 33 ), + + 52 * + + 13 )
----
2822

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL + MIN( DISTINCT ( + 78 ) ) - - CASE + ( + 71 ) WHEN - + 93 THEN - + 10 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + MIN ( DISTINCT ( + 78 ) ) - - CASE + ( + 71 ) WHEN - + 93 THEN - + 10 ELSE NULL END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT DISTINCT 87 - 89 + 72 * + 1 * - COALESCE ( COUNT( * ), + 5, 75, + 27 ) + + 77
----
3

skipif mysql # not compatible
query I rowsort label-7503
SELECT DISTINCT 87 - 89 + 72 * + 1 * - COALESCE ( COUNT ( * ), + 5, 75, + 27 ) + + 77
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7504
SELECT ALL 5, 73 * + 37 * + COUNT( * ) AS col1
----
5
2701

skipif mysql # not compatible
query II rowsort label-7504
SELECT ALL 5, 73 * + 37 * + COUNT ( * ) AS col1
----
5
2701

query I rowsort
SELECT 14 * - + 35
----
-490

query I rowsort
SELECT 85 * - 36 AS col0
----
-3060

query I rowsort
SELECT DISTINCT - 63 * + 49
----
-3087

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7510
SELECT 4 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL 55 * + - 90
----
-4950

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

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

query I rowsort
SELECT 23 + + - 35
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL 8 * COUNT( * ) AS col2
----
8

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL 8 * COUNT ( * ) AS col2
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7515
SELECT DISTINCT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) + - 90 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) + - 90 * - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7516
SELECT 32 + - - CAST( + ( - 3 ) AS SIGNED ) + - + COALESCE ( - 1, + 61, - 24 ) col1, 75 AS col0
----
30
75

skipif mysql # not compatible
query II rowsort label-7516
SELECT 32 + - - CAST ( + ( - 3 ) AS INTEGER ) + - + COALESCE ( - 1, + 61, - 24 ) col1, 75 AS col0
----
30
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7518
SELECT CAST( NULL AS SIGNED ) + + 78 - - - 73 + + + 73 / + 71 + - - ( + - 53 ) * + - 70 AS col2, + CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7518
SELECT CAST ( NULL AS INTEGER ) + + 78 - - - 73 + + + 73 / + 71 + - - ( + - 53 ) * + - 70 AS col2, + CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

query II rowsort
SELECT - 38, - 41 col0
----
-38
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7520
SELECT + 40 + 95 * + + 84 + - CASE - 96 WHEN - + SUM( 82 ) THEN + 10 / - - SUM( DISTINCT - 75 ) * 96 WHEN - - 25 THEN - 32 * 0 + 92 END + + 32 + NULLIF ( 61, + CASE + 36 WHEN - 4 THEN NULL WHEN - + 48 * - ( 64 ) - 45 THEN - - 59 * + CAST( NULL AS SIGNED ) + 70 + + + MAX( DISTINCT - 97 ) + - 91 / - 56 / SUM( ( - 89 ) ) / + CASE + COALESCE ( 25, - 8 * 44 - 67 ) + 66 / + 38 WHEN + 11 * 45 THEN NULL ELSE - 30 END * + 75 WHEN 55 THEN NULL ELSE NULL END ) * - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT + 40 + 95 * + + 84 + - CASE - 96 WHEN - + SUM ( 82 ) THEN + 10 / - - SUM ( DISTINCT - 75 ) * 96 WHEN - - 25 THEN - 32 * 0 + 92 END + + 32 + NULLIF ( 61, + CASE + 36 WHEN - 4 THEN NULL WHEN - + 48 * - ( 64 ) - 45 THEN - - 59 * + CAST ( NULL AS INTEGER ) + 70 + + + MAX ( DISTINCT - 97 ) + - 91 / - 56 / SUM ( ( - 89 ) ) / + CASE + COALESCE ( 25, - 8 * 44 - 67 ) + 66 / + 38 WHEN + 11 * 45 THEN NULL ELSE - 30 END * + 75 WHEN 55 THEN NULL ELSE NULL END ) * - 9
----
NULL

query II rowsort
SELECT 68 - - - 90 - + 2 AS col1, 80 * + 84 - 65
----
-24
6655

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT - 57 + ( 68 ) + - ( - 41 ) * MAX( ALL + + 94 ) * - - 95
----
366141

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - 57 + ( 68 ) + - ( - 41 ) * MAX ( ALL + + 94 ) * - - 95
----
366141

query I rowsort
SELECT + 23 * + - 13
----
-299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7524
SELECT ALL - CAST( NULL AS SIGNED ) * - 9 * + + 39 + - + CASE + 74 WHEN - - 9 + - 64 THEN - - COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - CAST ( NULL AS INTEGER ) * - 9 * + + 39 + - + CASE + 74 WHEN - - 9 + - 64 THEN - - COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT ALL + 13 DIV ( - + SUM( DISTINCT 54 ) ) col1
----
0

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + 13 / ( - + SUM ( DISTINCT 54 ) ) col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7526
SELECT + 98 * + + 18 * 79 + + COUNT( * ) + + 9, + 84 AS col1
----
139366
84

skipif mysql # not compatible
query II rowsort label-7526
SELECT + 98 * + + 18 * 79 + + COUNT ( * ) + + 9, + 84 AS col1
----
139366
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL + MAX( 27 ) * 27 + - COUNT( * )
----
728

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL + MAX ( 27 ) * 27 + - COUNT ( * )
----
728

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

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

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

query I rowsort
SELECT + - COALESCE ( 45, 26 + 81 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7531
SELECT 12 * 27 + - + 7 + + - 8 + 72 * CASE + 98 WHEN + MIN( + - ( + 44 ) ) THEN - 57 END AS col1, - 87
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-7531
SELECT 12 * 27 + - + 7 + + - 8 + 72 * CASE + 98 WHEN + MIN ( + - ( + 44 ) ) THEN - 57 END AS col1, - 87
----
NULL
-87

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

query II rowsort
SELECT ALL + 86 AS col0, + 62 AS col0
----
86
62

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

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

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

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

query I rowsort
SELECT ALL 74 * - 79 AS col0
----
-5846

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7538
SELECT 58, SUM( DISTINCT 39 ) AS col2
----
58
39

skipif mysql # not compatible
query II rowsort label-7538
SELECT 58, SUM ( DISTINCT 39 ) AS col2
----
58
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7539
SELECT ALL CASE + CAST( NULL AS SIGNED ) WHEN + 89 THEN - 79 / - - 47 + - 80 END + 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL CASE + CAST ( NULL AS INTEGER ) WHEN + 89 THEN - 79 / - - 47 + - 80 END + 34 AS col1
----
NULL

query II rowsort
SELECT ALL 17, + 86 AS col1
----
17
86

query I rowsort
SELECT + 2 * - + 78 * - 22 AS col2
----
3432

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT + 20 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-7542
SELECT + 20 / - 66
----
0

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

query I rowsort
SELECT ALL 2 + - 93 AS col2
----
-91

query I rowsort
SELECT + 8 * - 5 col1
----
-40

query I rowsort
SELECT + 66 + 51
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7547
SELECT 74 AS col1, 71 + + COUNT( * ) DIV + - ( - - 64 ) AS col2
----
74
71

skipif mysql # not compatible
query II rowsort label-7547
SELECT 74 AS col1, 71 + + COUNT ( * ) / + - ( - - 64 ) AS col2
----
74
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - CASE - 81 WHEN + + MIN( - 6 ) THEN 94 ELSE 11 + + NULLIF ( + 85, - 14 / - 30 ) * ( - + 57 ) END + + 39 + - - ( 84 ) col2
----
4957

skipif mysql # not compatible
query I rowsort label-7548
SELECT - CASE - 81 WHEN + + MIN ( - 6 ) THEN 94 ELSE 11 + + NULLIF ( + 85, - 14 / - 30 ) * ( - + 57 ) END + + 39 + - - ( 84 ) col2
----
4957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7549
SELECT DISTINCT CAST( - 7 AS SIGNED ) + - 9 - - COUNT( * ) col1, + 90 + + 73 + 49 AS col2
----
-15
212

skipif mysql # not compatible
query II rowsort label-7549
SELECT DISTINCT CAST ( - 7 AS INTEGER ) + - 9 - - COUNT ( * ) col1, + 90 + + 73 + 49 AS col2
----
-15
212

query I rowsort
SELECT ALL - 59 + + 56 + 99
----
96

query I rowsort
SELECT DISTINCT + 84 + ( - 79 ) AS col1
----
5

query II rowsort
SELECT + 65 * + NULLIF ( + + 74, - - 79 + + + 44 * - - 48 ) AS col1, ( + - 20 ) AS col2
----
4810
-20

query II rowsort
SELECT ALL 35 * + 36 AS col2, + 32 AS col0
----
1260
32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7554
SELECT - 52 AS col1, CAST( - CAST( - ( - 99 ) AS SIGNED ) AS SIGNED ) * - - 94 col1
----
-52
-9306

skipif mysql # not compatible
query II rowsort label-7554
SELECT - 52 AS col1, CAST ( - CAST ( - ( - 99 ) AS INTEGER ) AS INTEGER ) * - - 94 col1
----
-52
-9306

query II rowsort
SELECT ALL + 21, 64 * - 13 * + 20 * + 74 AS col2
----
21
-1231360

query I rowsort
SELECT DISTINCT + 35 * NULLIF ( 76, - 73 )
----
2660

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT ALL + 52 AS col2, + SUM( 39 ) col1
----
52
39

skipif mysql # not compatible
query II rowsort label-7557
SELECT ALL + 52 AS col2, + SUM ( 39 ) col1
----
52
39

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

query I rowsort
SELECT - + 46 * + 59 + + 21
----
-2693

onlyif mysql # aggregate syntax: 
query II rowsort label-7560
SELECT + 25 col0, + COUNT( DISTINCT + 2 ) AS col1
----
25
1

skipif mysql # not compatible
query II rowsort label-7560
SELECT + 25 col0, + COUNT ( DISTINCT + 2 ) AS col1
----
25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + SUM( DISTINCT - - CASE + ( - 23 ) WHEN + 34 * - 34 + + 75 THEN - 97 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + SUM ( DISTINCT - - CASE + ( - 23 ) WHEN + 34 * - 34 + + 75 THEN - 97 ELSE NULL END )
----
NULL

query II rowsort
SELECT ALL + 44, + 56 AS col1
----
44
56

query I rowsort
SELECT ALL - - 95 * + 52 * + + 21
----
103740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT + CASE + - 98 WHEN + 66 THEN + 54 WHEN - 40 * + 10 - 25 THEN NULL ELSE NULL END * - CAST( NULL AS SIGNED ) * 16 + + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT + CASE + - 98 WHEN + 66 THEN + 54 WHEN - 40 * + 10 - 25 THEN NULL ELSE NULL END * - CAST ( NULL AS INTEGER ) * 16 + + 16 AS col2
----
NULL

query II rowsort
SELECT - 10 * + 89, + 8 AS col0
----
-890
8

query I rowsort
SELECT ALL 72 * 50 + - 48
----
3552

query I rowsort
SELECT - 33 + + - 25 * 97
----
-2458

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT ALL 9 * 80 + COUNT( * ) AS col2
----
721

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL 9 * 80 + COUNT ( * ) AS col2
----
721

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT DISTINCT + CASE - COUNT( * ) WHEN COUNT( * ) * 85 THEN + 1 END * - 93 + - - 10 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT DISTINCT + CASE - COUNT ( * ) WHEN COUNT ( * ) * 85 THEN + 1 END * - 93 + - - 10 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL - 5 * + - 70 * - COALESCE ( + MAX( ALL 47 ), - + 0 + - 49 - + ( 68 ) + + + 69 ) + + 8
----
-16442

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL - 5 * + - 70 * - COALESCE ( + MAX ( ALL 47 ), - + 0 + - 49 - + ( 68 ) + + + 69 ) + + 8
----
-16442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7571
SELECT ALL CAST( - COALESCE ( - 58, - 94 ) AS SIGNED ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL CAST ( - COALESCE ( - 58, - 94 ) AS INTEGER ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT 18 * ( + SUM( 85 ) ) + + 63 * - 90 AS col2
----
-4140

skipif mysql # not compatible
query I rowsort label-7572
SELECT 18 * ( + SUM ( 85 ) ) + + 63 * - 90 AS col2
----
-4140

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7573
SELECT DISTINCT CAST( 92 AS SIGNED ) AS col1, 48 * 1
----
92
48

skipif mysql # not compatible
query II rowsort label-7573
SELECT DISTINCT CAST ( 92 AS INTEGER ) AS col1, 48 * 1
----
92
48

query I rowsort
SELECT ALL + 28 * - 78 + - 41 AS col2
----
-2225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7575
SELECT ALL + COUNT( + 81 ) * 92 + + 87 * + - 38 + - + 78 DIV + + 16 AS col2, + 7 + - 80 + - + 18 AS col1
----
-3218
-91

skipif mysql # not compatible
query II rowsort label-7575
SELECT ALL + COUNT ( + 81 ) * 92 + + 87 * + - 38 + - + 78 / + + 16 AS col2, + 7 + - 80 + - + 18 AS col1
----
-3218
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7576
SELECT - 43 DIV + MAX( + 76 ) AS col2, - 83 AS col2
----
0
-83

skipif mysql # not compatible
query II rowsort label-7576
SELECT - 43 / + MAX ( + 76 ) AS col2, - 83 AS col2
----
0
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + NULLIF ( 95, - - COUNT( * ) ) * + 71 AS col1
----
6745

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + NULLIF ( 95, - - COUNT ( * ) ) * + 71 AS col1
----
6745

query I rowsort
SELECT ALL CASE + 32 WHEN - 62 THEN 38 WHEN - + 5 THEN NULL ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT 31 + 34 * - 59, 10 AS col2
----
-1975
10

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

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

query I rowsort
SELECT 10 + - 80 + + 13 AS col0
----
-57

query I rowsort
SELECT DISTINCT - ( + 50 ) * - 90
----
4500

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7585
SELECT ALL - 79 * - 91 AS col2, + 39 DIV + + SUM( DISTINCT - 85 )
----
7189
0

skipif mysql # not compatible
query II rowsort label-7585
SELECT ALL - 79 * - 91 AS col2, + 39 / + + SUM ( DISTINCT - 85 )
----
7189
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7586
SELECT + - 48 DIV + - MAX( + - 52 ) + + 8
----
8

skipif mysql # not compatible
query I rowsort label-7586
SELECT + - 48 / + - MAX ( + - 52 ) + + 8
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT - 51 DIV - - ( 45 ) + - 29 - - + 66 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 51 / - - ( 45 ) + - 29 - - + 66 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL + 22 + MIN( - 90 ) - + NULLIF ( - + 9, ( + - MIN( DISTINCT 18 ) ) * 56 / - - 2 + + 83 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL + 22 + MIN ( - 90 ) - + NULLIF ( - + 9, ( + - MIN ( DISTINCT 18 ) ) * 56 / - - 2 + + 83 ) AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7589
SELECT CAST( + + 74 AS SIGNED ) * + 32 * - - 61, 78 * COUNT( * ) AS col2
----
144448
78

skipif mysql # not compatible
query II rowsort label-7589
SELECT CAST ( + + 74 AS INTEGER ) * + 32 * - - 61, 78 * COUNT ( * ) AS col2
----
144448
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7590
SELECT + 95 col1, CAST( + 77 AS SIGNED )
----
95
77

skipif mysql # not compatible
query II rowsort label-7590
SELECT + 95 col1, CAST ( + 77 AS INTEGER )
----
95
77

query II rowsort
SELECT + 46 AS col0, 82 AS col0
----
46
82

query I rowsort
SELECT ALL 39 + - NULLIF ( + 28, 11 * + ( + + ( - 14 ) ) )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-7593
SELECT ALL - 39 col1, - COUNT( * ) - - 51 * 82 * - 19
----
-39
-79459

skipif mysql # not compatible
query II rowsort label-7593
SELECT ALL - 39 col1, - COUNT ( * ) - - 51 * 82 * - 19
----
-39
-79459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7594
SELECT ALL - 86 + + NULLIF ( - - MAX( + 25 ), COUNT( * ) * 66 ) - - 32 * - + SUM( + CAST( + 23 AS SIGNED ) ) * 36 * - 87 - + - 91 + - 74 * + ( 35 ) + COALESCE ( + 54, - 75 + - CASE + 96 WHEN + + 9 THEN + 35 END ) AS col0
----
2302646

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - 86 + + NULLIF ( - - MAX ( + 25 ), COUNT ( * ) * 66 ) - - 32 * - + SUM ( + CAST ( + 23 AS INTEGER ) ) * 36 * - 87 - + - 91 + - 74 * + ( 35 ) + COALESCE ( + 54, - 75 + - CASE + 96 WHEN + + 9 THEN + 35 END ) AS col0
----
2302646

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7595
SELECT ALL 32 DIV CASE + 9 WHEN SUM( ALL - 59 ) THEN NULL ELSE - 73 * 15 + - + COUNT( * ) + + - COUNT( * ) * 45 END
----
0

skipif mysql # not compatible
query I rowsort label-7595
SELECT ALL 32 / CASE + 9 WHEN SUM ( ALL - 59 ) THEN NULL ELSE - 73 * 15 + - + COUNT ( * ) + + - COUNT ( * ) * 45 END
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7597
SELECT 32 DIV - + 25 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7597
SELECT 32 / - + 25 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7598
SELECT 13 - COUNT( * ) + - 99 DIV + 64 + 85 * 6 AS col2
----
521

skipif mysql # not compatible
query I rowsort label-7598
SELECT 13 - COUNT ( * ) + - 99 / + 64 + 85 * 6 AS col2
----
521

query III rowsort
SELECT 13 AS col2, + 77 + - 9 + - + ( - 86 ) * - + 43 AS col1, - 77 + - 26
----
13
-3630
-103

query I rowsort
SELECT ALL + 24 - - 87 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT ALL + 88 - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7601
SELECT ALL + 88 - + COUNT ( * )
----
87

query I rowsort
SELECT 38 * 10 col1
----
380

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7603
SELECT ALL 82 AS col2, + 16 + CAST( NULL AS SIGNED ) + - 61 AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-7603
SELECT ALL 82 AS col2, + 16 + CAST ( NULL AS INTEGER ) + - 61 AS col1
----
82
NULL

query I rowsort
SELECT ALL 7 - + 9
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT 54 + COALESCE ( 47, + 28 ) + + + 56 * 19 + 94 + - COALESCE ( 81, - - 94 * - - 59 ) + - 36 * COUNT( * ) * + - 29
----
2222

skipif mysql # not compatible
query I rowsort label-7605
SELECT 54 + COALESCE ( 47, + 28 ) + + + 56 * 19 + 94 + - COALESCE ( 81, - - 94 * - - 59 ) + - 36 * COUNT ( * ) * + - 29
----
2222

query I rowsort
SELECT ( + + 9 ) - + 75
----
-66

query I rowsort
SELECT ALL - 46 * + 57 AS col0
----
-2622

onlyif mysql # DIV for integer division: 
query II rowsort label-7608
SELECT ALL + 35 DIV + 51 * 51 AS col1, 8 * + 27 + 43
----
0
259

skipif mysql # not compatible
query II rowsort label-7608
SELECT ALL + 35 / + 51 * 51 AS col1, 8 * + 27 + 43
----
0
259

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

skipif mysql # not compatible
query I rowsort label-7609
SELECT ( MAX ( + - 95 ) )
----
-95

query I rowsort
SELECT 94 + - 18
----
76

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

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

query I rowsort
SELECT ALL 53 * - + 76
----
-4028

query I rowsort
SELECT 25 * ( + 41 ) AS col0
----
1025

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + SUM( ALL 69 ) + - ( - ( - ( 56 ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-7614
SELECT + SUM ( ALL 69 ) + - ( - ( - ( 56 ) ) )
----
13

query I rowsort
SELECT 84 - 64
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7616
SELECT DISTINCT 93, 6 + 15 * + 56 * - COUNT( ALL + + 72 ) * + - ( - COUNT( * ) ) * + + 34 + COUNT( * ) + 9 AS col2
----
93
-28544

skipif mysql # not compatible
query II rowsort label-7616
SELECT DISTINCT 93, 6 + 15 * + 56 * - COUNT ( ALL + + 72 ) * + - ( - COUNT ( * ) ) * + + 34 + COUNT ( * ) + 9 AS col2
----
93
-28544

query II rowsort
SELECT ALL + 58 col2, 74
----
58
74

query I rowsort
SELECT ALL - 24 * - 95
----
2280

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7620
SELECT - SUM( - + 77 ) DIV + COALESCE ( - + 84, + 49 ) + - 5 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-7620
SELECT - SUM ( - + 77 ) / + COALESCE ( - + 84, + 49 ) + - 5 AS col2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL + 36 * - + 32 + 86 + ( + - 0 ) + - + 96 * + CAST( + COUNT( * ) AS SIGNED )
----
-1162

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL + 36 * - + 32 + 86 + ( + - 0 ) + - + 96 * + CAST ( + COUNT ( * ) AS INTEGER )
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - 8 * + - 41 + COUNT( * ) - NULLIF ( 84, 76 + + 51 ) AS col2
----
245

skipif mysql # not compatible
query I rowsort label-7622
SELECT - 8 * + - 41 + COUNT ( * ) - NULLIF ( 84, 76 + + 51 ) AS col2
----
245

onlyif mysql # DIV for integer division: 
query I rowsort label-7623
SELECT DISTINCT - 42 DIV + 30
----
-1

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - 42 / + 30
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7624
SELECT + - 72 / + 38 - 17 + + 37 + - - CASE WHEN NOT ( NULL ) NOT BETWEEN 88 AND - + NULLIF ( - 4, ( + CAST( NULL AS SIGNED ) ) ) THEN NULL WHEN 99 IS NULL THEN - + 94 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT + - 72 / + 38 - 17 + + 37 + - - CASE WHEN NOT ( NULL ) NOT BETWEEN 88 AND - + NULLIF ( - 4, ( + CAST ( NULL AS INTEGER ) ) ) THEN NULL WHEN 99 IS NULL THEN - + 94 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7625
SELECT ALL + - 72 * - 78 + + 53 * + NULLIF ( CASE + 88 WHEN - 28 THEN COUNT( * ) + - 14 END, - - 34 + + 33 * - + COUNT( * ) * NULLIF ( + + 95, COALESCE ( + 11, - 46 + + COALESCE ( + + 55, - + CASE - 54 WHEN - 31 THEN + 74 / + 11 - - 58 - 71 WHEN - CAST( + 42 AS SIGNED ) THEN NULL ELSE - 24 + 22 END * - - 31 * ( + CASE 27 WHEN - 68 / + MIN( DISTINCT - 15 ) + - + ( 45 ) / 15 + + 22 * - 18 THEN - 91 * COUNT( * ) ELSE NULL END ) * COUNT( * ) + 43 ), + 99 + + CAST( NULL AS SIGNED ) ) * COALESCE ( ( 60 ), 33 ) ) - + 98 ) * + 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + - 72 * - 78 + + 53 * + NULLIF ( CASE + 88 WHEN - 28 THEN COUNT ( * ) + - 14 END, - - 34 + + 33 * - + COUNT ( * ) * NULLIF ( + + 95, COALESCE ( + 11, - 46 + + COALESCE ( + + 55, - + CASE - 54 WHEN - 31 THEN + 74 / + 11 - - 58 - 71 WHEN - CAST ( + 42 AS INTEGER ) THEN NULL ELSE - 24 + 22 END * - - 31 * ( + CASE 27 WHEN - 68 / + MIN ( DISTINCT - 15 ) + - + ( 45 ) / 15 + + 22 * - 18 THEN - 91 * COUNT ( * ) ELSE NULL END ) * COUNT ( * ) + 43 ), + 99 + + CAST ( NULL AS INTEGER ) ) * COALESCE ( ( 60 ), 33 ) ) - + 98 ) * + 95 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7626
SELECT ( + - 40 ) * - 97 + - 92 + - ( - NULLIF ( + - 58, + 84 + + SUM( ALL - + 71 ) ) ) + - 6 - - 36, - 79 AS col1
----
3760
-79

skipif mysql # not compatible
query II rowsort label-7626
SELECT ( + - 40 ) * - 97 + - 92 + - ( - NULLIF ( + - 58, + 84 + + SUM ( ALL - + 71 ) ) ) + - 6 - - 36, - 79 AS col1
----
3760
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL - 67 * - COUNT( ( + 8 ) ) + 43
----
110

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL - 67 * - COUNT ( ( + 8 ) ) + 43
----
110

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

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( - 13 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7629
SELECT 18 * - - 94 - - 72 DIV - - 70
----
1693

skipif mysql # not compatible
query I rowsort label-7629
SELECT 18 * - - 94 - - 72 / - - 70
----
1693

query I rowsort
SELECT ALL 9 + - 57 + + - 77
----
-125

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7631
SELECT ALL MIN( 72 ) + - COALESCE ( - + 83, + + 78 * - 9 * 60 ) - - COUNT( * ) / SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) + - - 73 / - 53 * - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL MIN ( 72 ) + - COALESCE ( - + 83, + + 78 * - 9 * 60 ) - - COUNT ( * ) / SUM ( DISTINCT - CAST ( NULL AS REAL ) ) + - - 73 / - 53 * - 77 AS col2
----
NULL

query I rowsort
SELECT - 32 * - 0 + - 29 AS col1
----
-29

query I rowsort
SELECT 55 * - 22 + - 53 AS col2
----
-1263

query I rowsort
SELECT 48 * - - 9 AS col0
----
432

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

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

query I rowsort
SELECT ( 5 ) + + - 34
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7637
SELECT + 56 * + 86 * 7 - 91 - - COUNT( * ) - + - 22 + + SUM( ALL - + 80 ) * + 81 * + CAST( + 37 AS SIGNED ) - 97 DIV 35 col2
----
-206118

skipif mysql # not compatible
query I rowsort label-7637
SELECT + 56 * + 86 * 7 - 91 - - COUNT ( * ) - + - 22 + + SUM ( ALL - + 80 ) * + 81 * + CAST ( + 37 AS INTEGER ) - 97 / 35 col2
----
-206118

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT ALL - 56 - + COUNT( * ) AS col2, 86 + + 29
----
-57
115

skipif mysql # not compatible
query II rowsort label-7638
SELECT ALL - 56 - + COUNT ( * ) AS col2, 86 + + 29
----
-57
115

query I rowsort
SELECT - 93 * - + 47 + 86 col0
----
4457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT - 89 + CASE 64 WHEN ( 47 ) * + ( + 88 ) * 45 + - + MIN( CAST( 28 AS SIGNED ) ) + 1 THEN - 40 * + + CASE - 42 WHEN 81 * - 79 / COUNT( + 78 ) * + MAX( ( 87 ) ) + 33 THEN NULL ELSE 9 / MAX( DISTINCT 77 ) - + 17 END + SUM( + - ( - 60 ) ) WHEN + 11 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT - 89 + CASE 64 WHEN ( 47 ) * + ( + 88 ) * 45 + - + MIN ( CAST ( 28 AS INTEGER ) ) + 1 THEN - 40 * + + CASE - 42 WHEN 81 * - 79 / COUNT ( + 78 ) * + MAX ( ( 87 ) ) + 33 THEN NULL ELSE 9 / MAX ( DISTINCT 77 ) - + 17 END + SUM ( + - ( - 60 ) ) WHEN + 11 THEN NULL END AS col2
----
NULL

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

skipif mysql # not compatible
query II rowsort label-7641
SELECT - 7 * - + COUNT ( * ) AS col1, 20
----
7
20

query I rowsort
SELECT ALL + + 81 * + + 21
----
1701

query I rowsort
SELECT + 84 * 29 * + 16 AS col1
----
38976

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + 89 * - MIN( DISTINCT 72 )
----
-6408

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + 89 * - MIN ( DISTINCT 72 )
----
-6408

query I rowsort
SELECT - + 9 + + 55 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT - - COALESCE ( 73, - 84 * + 11 + - + 38 ) + + + COUNT( * ) col2
----
74

skipif mysql # not compatible
query I rowsort label-7647
SELECT - - COALESCE ( 73, - 84 * + 11 + - + 38 ) + + + COUNT ( * ) col2
----
74

query I rowsort
SELECT - - 34 * - - 5 AS col2
----
170

query II rowsort
SELECT ALL ( - + 11 ), 58 col1
----
-11
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - CASE + 90 WHEN 78 THEN - + 3 + - 73 * + 65 WHEN - + COUNT( * ) THEN - + 16 + + COUNT( * ) ELSE + 49 END
----
-49

skipif mysql # not compatible
query I rowsort label-7650
SELECT - CASE + 90 WHEN 78 THEN - + 3 + - 73 * + 65 WHEN - + COUNT ( * ) THEN - + 16 + + COUNT ( * ) ELSE + 49 END
----
-49

query I rowsort
SELECT DISTINCT - 95 + + + 95 AS col1
----
0

query I rowsort
SELECT - - 7 + + - NULLIF ( 61, + 27 + - 89 + COALESCE ( + 12, + 50 * + 39 + 70 + - - 54 ) / 43 * - 8 )
----
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT - NULLIF ( + CASE - - COUNT( + 28 ) WHEN 96 + - + 73 THEN - 0 * + + 7 WHEN + - 80 THEN NULL WHEN COUNT( * ) + 89 THEN 20 ELSE NULL END, - 44 * COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7654
SELECT - NULLIF ( + CASE - - COUNT ( + 28 ) WHEN 96 + - + 73 THEN - 0 * + + 7 WHEN + - 80 THEN NULL WHEN COUNT ( * ) + 89 THEN 20 ELSE NULL END, - 44 * COUNT ( * ) )
----
NULL

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

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

query I rowsort
SELECT ALL + ( + 88 ) + + 86 AS col0
----
174

query I rowsort
SELECT - NULLIF ( - 0, + - 79 ) AS col0
----
0

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

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

query I rowsort
SELECT + 86 * 87 AS col1
----
7482

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT ALL MIN( + - 12 ) DIV + 46 col1
----
0

skipif mysql # not compatible
query I rowsort label-7660
SELECT ALL MIN ( + - 12 ) / + 46 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT ALL - COUNT( * ) * COALESCE ( - + 0, + + 47, + CAST( 11 AS SIGNED ) ) * - ( 93 ) - + 92 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - COUNT ( * ) * COALESCE ( - + 0, + + 47, + CAST ( 11 AS INTEGER ) ) * - ( 93 ) - + 92 AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT ( NULLIF ( ( - 21 ), - COUNT( * ) ) )
----
-21

skipif mysql # not compatible
query I rowsort label-7662
SELECT ( NULLIF ( ( - 21 ), - COUNT ( * ) ) )
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT 59 DIV 82 + + 3
----
3

skipif mysql # not compatible
query I rowsort label-7663
SELECT 59 / 82 + + 3
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT + NULLIF ( + 24, + CAST( NULL AS SIGNED ) )
----
24

skipif mysql # not compatible
query I rowsort label-7665
SELECT + NULLIF ( + 24, + CAST ( NULL AS INTEGER ) )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7666
SELECT + 73 + - MIN( - 97 ) DIV + ( 32 ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-7666
SELECT + 73 + - MIN ( - 97 ) / + ( 32 ) AS col0
----
76

query I rowsort
SELECT + 49 + 28
----
77

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

query I rowsort
SELECT ALL 2 * + 99 AS col1
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7670
SELECT CASE 11 WHEN + 88 - + 41 THEN - NULLIF ( 16, + - 8 ) * - 41 * + + COUNT( ALL ( - + ( - 14 ) ) ) + - 30 WHEN - 90 * - 44 * - 4 / + 93 * + 65 + + - 17 + - NULLIF ( CAST( 84 AS SIGNED ), 13 - - 51 ) THEN + 2 / 96 + - 20 + 23 - + + 56 * + - 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT CASE 11 WHEN + 88 - + 41 THEN - NULLIF ( 16, + - 8 ) * - 41 * + + COUNT ( ALL ( - + ( - 14 ) ) ) + - 30 WHEN - 90 * - 44 * - 4 / + 93 * + 65 + + - 17 + - NULLIF ( CAST ( 84 AS INTEGER ), 13 - - 51 ) THEN + 2 / 96 + - 20 + 23 - + + 56 * + - 25 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT 37 * + - 55 * 57 AS col1
----
-115995

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

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

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

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

query I rowsort
SELECT + 78 - + + 82 AS col0
----
-4

query I rowsort
SELECT + 83 * + 44
----
3652

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT + CAST( COUNT( * ) AS SIGNED ) * + - 98 - - 98 + + 86 + 4 * + - 63
----
-166

skipif mysql # not compatible
query I rowsort label-7676
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * + - 98 - - 98 + + 86 + 4 * + - 63
----
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT ALL + 68 DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL + 68 / 45
----
1

query I rowsort
SELECT DISTINCT + - 91 * - + 81
----
7371

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

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

query I rowsort
SELECT DISTINCT - 91 + - 37 AS col0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT 19 * + 95 * + 17 + + MIN( 41 ) AS col2
----
30726

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT 19 * + 95 * + 17 + + MIN ( 41 ) AS col2
----
30726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT + - CAST( 1 AS SIGNED ) * + + 58 * 71 - - 9 + 19 col0
----
-4090

skipif mysql # not compatible
query I rowsort label-7682
SELECT + - CAST ( 1 AS INTEGER ) * + + 58 * 71 - - 9 + 19 col0
----
-4090

query I rowsort
SELECT ALL + 42 + 10
----
52

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

skipif mysql # not compatible
query I rowsort label-7684
SELECT + + 36 / 84
----
0

query I rowsort
SELECT + + 78 + 23
----
101

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

query II rowsort
SELECT ALL 18 AS col2, 22 AS col1
----
18
22

query I rowsort
SELECT DISTINCT + 48 + 56
----
104

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7689
SELECT DISTINCT - - 44 + CAST( + - 90 AS SIGNED ), 70 DIV - 25 AS col0
----
-46
-2

skipif mysql # not compatible
query II rowsort label-7689
SELECT DISTINCT - - 44 + CAST ( + - 90 AS INTEGER ), 70 / - 25 AS col0
----
-46
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7690
SELECT 29 AS col2, + COUNT( * ) * - CASE - - 82 WHEN - + 71 THEN 43 + + 58 + - COUNT( * ) ELSE NULL END AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-7690
SELECT 29 AS col2, + COUNT ( * ) * - CASE - - 82 WHEN - + 71 THEN 43 + + 58 + - COUNT ( * ) ELSE NULL END AS col1
----
29
NULL

query I rowsort
SELECT ALL + 55 - - 58 col1
----
113

query II rowsort
SELECT ALL ( - 4 ) AS col2, 91
----
-4
91

query I rowsort
SELECT DISTINCT ( 93 ) AS col1
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT 55 * + NULLIF ( 42, - CAST( NULL AS SIGNED ) - - + 93 ) - 89 + + 71 * - 39 AS col2
----
-548

skipif mysql # not compatible
query I rowsort label-7694
SELECT 55 * + NULLIF ( 42, - CAST ( NULL AS INTEGER ) - - + 93 ) - 89 + + 71 * - 39 AS col2
----
-548

query I rowsort
SELECT - 97 * COALESCE ( 98, - 73 )
----
-9506

query I rowsort
SELECT DISTINCT - 82 * 30 AS col0
----
-2460

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7698
SELECT 92 DIV - - COUNT( * ) * + - COUNT( * ) + + 12 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-7698
SELECT 92 / - - COUNT ( * ) * + - COUNT ( * ) + + 12 AS col2
----
-80

query I rowsort
SELECT + NULLIF ( - 41, - 17 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT + 32 * - MAX( 65 ) AS col0
----
-2080

skipif mysql # not compatible
query I rowsort label-7700
SELECT + 32 * - MAX ( 65 ) AS col0
----
-2080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7701
SELECT - 44 + + - MIN( ALL 5 ) + COUNT( 47 ) + + - CAST( - + 73 AS SIGNED )
----
25

skipif mysql # not compatible
query I rowsort label-7701
SELECT - 44 + + - MIN ( ALL 5 ) + COUNT ( 47 ) + + - CAST ( - + 73 AS INTEGER )
----
25

query I rowsort
SELECT - 61 * - 13 * 68 AS col1
----
53924

query I rowsort
SELECT 42 * - 59 * - 44 AS col0
----
109032

query I rowsort
SELECT ALL + 56 * - - ( - 15 ) AS col1
----
-840

query I rowsort
SELECT 57 + - 34 AS col1
----
23

query II rowsort
SELECT ALL - 93 col1, + 83 * - + 33
----
-93
-2739

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7708
SELECT CASE 37 WHEN - 0 * - ( + 90 ) + - 23 THEN + 49 * + 19 - + NULLIF ( + 35, 81 ) ELSE + CAST( NULL AS DECIMAL ) + + 65 END * - 22 + - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7708
SELECT CASE 37 WHEN - 0 * - ( + 90 ) + - 23 THEN + 49 * + 19 - + NULLIF ( + 35, 81 ) ELSE + CAST ( NULL AS REAL ) + + 65 END * - 22 + - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7709
SELECT - CAST( COUNT( * ) AS SIGNED ) * + - 65 + - + COUNT( * ) * - 64 AS col1
----
129

skipif mysql # not compatible
query I rowsort label-7709
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * + - 65 + - + COUNT ( * ) * - 64 AS col1
----
129

onlyif mysql # aggregate syntax: 
query II rowsort label-7710
SELECT 67 col1, 92 + + 80 - + 88 * COUNT( * )
----
67
84

skipif mysql # not compatible
query II rowsort label-7710
SELECT 67 col1, 92 + + 80 - + 88 * COUNT ( * )
----
67
84

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

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL 90 / + COUNT ( * ) * + COUNT ( * ) AS col1
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7712
SELECT 29 * + 65 + + 38 + + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7712
SELECT 29 * + 65 + + 38 + + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT 54 * - + 61 AS col2
----
-3294

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT MAX( DISTINCT - - 59 ) + 21 + 28
----
108

skipif mysql # not compatible
query I rowsort label-7714
SELECT MAX ( DISTINCT - - 59 ) + 21 + 28
----
108

query I rowsort
SELECT DISTINCT + 39 * - 24
----
-936

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

skipif mysql # not compatible
query I rowsort label-7716
SELECT ALL 46 + + COUNT ( ALL ( - + ( 1 ) ) ) AS col1
----
47

query I rowsort
SELECT + 30 + 49 + + 78 * + 87 AS col0
----
6865

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT ALL - ( 59 ) + - 35 + + MAX( ALL - 46 ) * + 50 * MIN( DISTINCT - 43 ) col0
----
98806

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL - ( 59 ) + - 35 + + MAX ( ALL - 46 ) * + 50 * MIN ( DISTINCT - 43 ) col0
----
98806

query I rowsort
SELECT 79 + - 41 * - + 91 AS col2
----
3810

query I rowsort
SELECT + 96 * ( 53 ) AS col0
----
5088

query II rowsort
SELECT - 5 + + 13, 37 AS col0
----
8
37

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

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

query I rowsort
SELECT DISTINCT 93 - 46 + - 57 AS col2
----
-10

query I rowsort
SELECT 18 * 4 AS col2
----
72

query I rowsort
SELECT ALL + - 21 * - 49 AS col1
----
1029

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

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

query II rowsort
SELECT DISTINCT - 19 - + 88 col0, - 79 AS col2
----
-107
-79

query I rowsort
SELECT ALL + 86 * - 59
----
-5074

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7729
SELECT + SUM( 78 ) + 10 DIV + 37 + + ( - 24 ) + - + 38 DIV COUNT( * )
----
16

skipif mysql # not compatible
query I rowsort label-7729
SELECT + SUM ( 78 ) + 10 / + 37 + + ( - 24 ) + - + 38 / COUNT ( * )
----
16

query I rowsort
SELECT ( + 58 ) + + + 8
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT COUNT( * ) + - + 75 * + 97
----
-7274

skipif mysql # not compatible
query I rowsort label-7731
SELECT COUNT ( * ) + - + 75 * + 97
----
-7274

query III rowsort
SELECT 49 - 45, 4 AS col1, + + 29 AS col0
----
4
4
29

query I rowsort
SELECT 58 + 49
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
SELECT ALL COUNT( * ) * - - SUM( 19 ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL COUNT ( * ) * - - SUM ( 19 ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT 48 + + + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-7735
SELECT 48 + + + COUNT ( * )
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT ALL - SUM( DISTINCT + 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-7736
SELECT ALL - SUM ( DISTINCT + 67 )
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7737
SELECT ALL - 97 + + SUM( 32 ) + CAST( NULL AS SIGNED ) + + 45 * + 55 + - 63 col0, 2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7737
SELECT ALL - 97 + + SUM ( 32 ) + CAST ( NULL AS INTEGER ) + + 45 * + 55 + - 63 col0, 2
----
NULL
2

query I rowsort
SELECT ALL + 34 + 79
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT SUM( ALL - - 44 ) + + - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-7739
SELECT SUM ( ALL - - 44 ) + + - COUNT ( * )
----
43

query I rowsort
SELECT ALL + 25 * 72
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT + 7 * + COUNT( DISTINCT 55 ) col1
----
7

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + 7 * + COUNT ( DISTINCT 55 ) col1
----
7

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

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

query I rowsort
SELECT ALL + 34 + 85 AS col2
----
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7744
SELECT DISTINCT - 80 + - CAST( + 38 AS SIGNED ) + + 70 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-7744
SELECT DISTINCT - 80 + - CAST ( + 38 AS INTEGER ) + + 70 AS col0
----
-48

query I rowsort
SELECT DISTINCT + 35 + + + 37 - + 95 * 80 + 97 - + 35 AS col1
----
-7466

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT 35 + - - 58 + 6 - + COUNT( * ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT 35 + - - 58 + 6 - + COUNT ( * ) AS col0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7747
SELECT + 27 * - 54 AS col1, + ( CAST( NULL AS SIGNED ) ) AS col0
----
-1458
NULL

skipif mysql # not compatible
query II rowsort label-7747
SELECT + 27 * - 54 AS col1, + ( CAST ( NULL AS INTEGER ) ) AS col0
----
-1458
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7748
SELECT ALL + CAST( NULL AS DECIMAL ) + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT ALL + CAST ( NULL AS REAL ) + 72 AS col0
----
NULL

query I rowsort
SELECT - 67 - - 81 - - 22 AS col2
----
36

query I rowsort
SELECT 63 - - - 68 - + - 10 AS col0
----
5

query I rowsort
SELECT 14 * + - 33 + - 92 AS col0
----
-554

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

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

query I rowsort
SELECT ALL + 34 * - 37
----
-1258

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT NULLIF ( + - 70, - + 84 ) - - COALESCE ( + 29, COUNT( * ) * + 75, - + 30 + + 12 ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7754
SELECT NULLIF ( + - 70, - + 84 ) - - COALESCE ( + 29, COUNT ( * ) * + 75, - + 30 + + 12 ) AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT ALL + + 2 * - + COUNT( 30 ) - + SUM( DISTINCT 47 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7755
SELECT ALL + + 2 * - + COUNT ( 30 ) - + SUM ( DISTINCT 47 ) AS col1
----
-49

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

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

query I rowsort
SELECT DISTINCT - 57 * - + 58 * + 23 + + 34 * + 45
----
77568

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - + COUNT( DISTINCT + 43 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7758
SELECT - + COUNT ( DISTINCT + 43 ) AS col2
----
-1

query I rowsort
SELECT 12 * - + 77 AS col1
----
-924

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL COALESCE ( - - 33, - - COUNT( * ) )
----
33

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL COALESCE ( - - 33, - - COUNT ( * ) )
----
33

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7763
SELECT ALL 32 DIV - CAST( - 88 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL 32 / - CAST ( - 88 AS INTEGER )
----
0

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

skipif mysql # not compatible
query I rowsort label-7764
SELECT - MAX ( + - 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT - MIN( ALL 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-7765
SELECT - MIN ( ALL 79 ) AS col0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-7766
SELECT ALL 79 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL 79 / 96
----
0

query I rowsort
SELECT DISTINCT COALESCE ( - 91, + 34 ) + - 3 * + 34
----
-193

query I rowsort
SELECT ALL 73 + + 29
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-7769
SELECT - 40 DIV 60 - - + 19, 47 AS col0
----
19
47

skipif mysql # not compatible
query II rowsort label-7769
SELECT - 40 / 60 - - + 19, 47 AS col0
----
19
47

query I rowsort
SELECT DISTINCT 2 * - - 78 + - 79 AS col2
----
77

query I rowsort
SELECT COALESCE ( - + 25, - 65 ) AS col0
----
-25

query I rowsort
SELECT ALL 40 * - 49 * - + 64 + - 42
----
125398

onlyif mysql # aggregate syntax: 
query II rowsort label-7773
SELECT + COUNT( * ) + 22 + + - 12, 33 * + 63 col2
----
11
2079

skipif mysql # not compatible
query II rowsort label-7773
SELECT + COUNT ( * ) + 22 + + - 12, 33 * + 63 col2
----
11
2079

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT 30 * - 6 - + 21 DIV + - 17
----
-179

skipif mysql # not compatible
query I rowsort label-7774
SELECT 30 * - 6 - + 21 / + - 17
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT ALL 89 * + COUNT( * ) + - 49 * + 41 * + COUNT( * ) * 6 * - - 68 * - + COUNT( * ) * + - 2
----
-1639255

skipif mysql # not compatible
query I rowsort label-7775
SELECT ALL 89 * + COUNT ( * ) + - 49 * + 41 * + COUNT ( * ) * 6 * - - 68 * - + COUNT ( * ) * + - 2
----
-1639255

query I rowsort
SELECT DISTINCT + + ( - 87 ) col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT - - MAX( + 52 ) * - ( CAST( NULL AS SIGNED ) ) + 19 + 10 + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT - - MAX ( + 52 ) * - ( CAST ( NULL AS INTEGER ) ) + 19 + 10 + 85
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7778
SELECT ALL MAX( 52 ) * CAST( - COUNT( * ) AS SIGNED ) DIV 49 + 66 + - + 66
----
-1

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL MAX ( 52 ) * CAST ( - COUNT ( * ) AS INTEGER ) / 49 + 66 + - + 66
----
-1

query I rowsort
SELECT + + 73 * 46 + 1 - - 48
----
3407

query I rowsort
SELECT - 64 + - 94 * - - 64 AS col1
----
-6080

query I rowsort
SELECT ALL + NULLIF ( - + 74, - - 37 )
----
-74

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

query I rowsort
SELECT DISTINCT - 63 * 22 * + + 56 * - 67 + - 17
----
5200255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7784
SELECT ALL - 37 * - + ( - 2 ) * + - 12 - - - 63 - - COUNT( ALL CASE WHEN NULL IS NOT NULL THEN - 39 ELSE NULL END ) DIV + 8 * - COALESCE ( CAST( NULL AS SIGNED ), + + COUNT( * ) ) AS col0
----
825

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - 37 * - + ( - 2 ) * + - 12 - - - 63 - - COUNT ( ALL CASE WHEN NULL IS NOT NULL THEN - 39 ELSE NULL END ) / + 8 * - COALESCE ( CAST ( NULL AS INTEGER ), + + COUNT ( * ) ) AS col0
----
825

query I rowsort
SELECT + ( + - 29 ) col1
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7786
SELECT ALL + 98 AS col0, 48 * - COUNT( * ) * 15
----
98
-720

skipif mysql # not compatible
query II rowsort label-7786
SELECT ALL + 98 AS col0, 48 * - COUNT ( * ) * 15
----
98
-720

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT DISTINCT SUM( ALL + - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7788
SELECT DISTINCT SUM ( ALL + - 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7789
SELECT + + 58 / + COUNT( * ) + CAST( NULL AS SIGNED ) * - 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7789
SELECT + + 58 / + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 98 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7790
SELECT DISTINCT - COUNT( * ) DIV + 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT - COUNT ( * ) / + 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT ALL NULLIF ( - - ( - 24 ), - + 90 / + COUNT( * ) )
----
-24

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL NULLIF ( - - ( - 24 ), - + 90 / + COUNT ( * ) )
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7792
SELECT ALL 91 * 39 AS col0, - COUNT( * ) + 82 * - 81 AS col1
----
3549
-6643

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL 91 * 39 AS col0, - COUNT ( * ) + 82 * - 81 AS col1
----
3549
-6643

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

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

query I rowsort
SELECT - COALESCE ( 57, - + NULLIF ( + - 16, + 11 ) * - 28 )
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7795
SELECT ALL CAST( 78 AS SIGNED ), CASE + 49 WHEN 99 * 4 + 88 THEN NULL WHEN - 86 THEN + COUNT( + 92 ) * + - 19 END * + 71 + - 19 + 70 AS col1
----
78
NULL

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL CAST ( 78 AS INTEGER ), CASE + 49 WHEN 99 * 4 + 88 THEN NULL WHEN - 86 THEN + COUNT ( + 92 ) * + - 19 END * + 71 + - 19 + 70 AS col1
----
78
NULL

query I rowsort
SELECT + 67 + + - 30 + - 88
----
-51

query II rowsort
SELECT ALL 73 + - - 76 AS col2, 57
----
149
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7798
SELECT - 79 + 67 + 63 * - 95 * + 87 col0, + 7 DIV + + 27 - + - ( ( 1 ) ) + 69 + - - 85 + + + COUNT( * ) * 91
----
-520707
246

skipif mysql # not compatible
query II rowsort label-7798
SELECT - 79 + 67 + 63 * - 95 * + 87 col0, + 7 / + + 27 - + - ( ( 1 ) ) + 69 + - - 85 + + + COUNT ( * ) * 91
----
-520707
246

query I rowsort
SELECT DISTINCT 90 * 55
----
4950

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

skipif mysql # not compatible
query I rowsort label-7800
SELECT + 31 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7801
SELECT ALL - COUNT( * ) + - 50 - ( - ( - 59 ) ) col2
----
-110

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL - COUNT ( * ) + - 50 - ( - ( - 59 ) ) col2
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT ALL 10 DIV + - ( - - 41 ) + 42 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL 10 / + - ( - - 41 ) + 42 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT 35 * - 82 + 83 + 16 + + - COUNT( * ) + - NULLIF ( + 93, + 31 ) * 35
----
-6027

skipif mysql # not compatible
query I rowsort label-7803
SELECT 35 * - 82 + 83 + 16 + + - COUNT ( * ) + - NULLIF ( + 93, + 31 ) * 35
----
-6027

query I rowsort
SELECT ALL 13 * + - 42
----
-546

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7805
SELECT + - 69 DIV + COALESCE ( + 59, - - COUNT( * ) ) AS col0, - 24 AS col0
----
-1
-24

skipif mysql # not compatible
query II rowsort label-7805
SELECT + - 69 / + COALESCE ( + 59, - - COUNT ( * ) ) AS col0, - 24 AS col0
----
-1
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT + + 64 * + - MAX( + 76 ) AS col2
----
-4864

skipif mysql # not compatible
query I rowsort label-7806
SELECT + + 64 * + - MAX ( + 76 ) AS col2
----
-4864

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL + COUNT( - 77 ) * + - 14 + - - 35 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + COUNT ( - 77 ) * + - 14 + - - 35 AS col0
----
21

query I rowsort
SELECT - - 89 + + 36
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT ALL 54 * - SUM( ALL + 88 )
----
-4752

skipif mysql # not compatible
query I rowsort label-7809
SELECT ALL 54 * - SUM ( ALL + 88 )
----
-4752

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

query I rowsort
SELECT DISTINCT + - 73 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-7812
SELECT + 42 + COALESCE ( 72, 5 * - - 43 * 82 DIV - 73, - ( + 15 ) * 88 DIV + + ( + 28 ) ) * + + 3
----
258

skipif mysql # not compatible
query I rowsort label-7812
SELECT + 42 + COALESCE ( 72, 5 * - - 43 * 82 / - 73, - ( + 15 ) * 88 / + + ( + 28 ) ) * + + 3
----
258

query I rowsort
SELECT - + 62 * 75 AS col0
----
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT + - MAX( DISTINCT + 52 ) - - 92 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-7814
SELECT + - MAX ( DISTINCT + 52 ) - - 92 AS col0
----
40

query I rowsort
SELECT NULLIF ( 57, - - 97 ) AS col1
----
57

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

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

query I rowsort
SELECT 26 * - - 76
----
1976

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT DISTINCT - 79 DIV + 26 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7818
SELECT DISTINCT - 79 / + 26 AS col2
----
-3

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

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL + + 22 + + - COUNT ( * ) - 85 AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL - 10 * + MAX( ALL + - 3 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL - 10 * + MAX ( ALL + - 3 ) col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL - 38 * NULLIF ( - CASE - COUNT( * ) WHEN - COALESCE ( - 4, + - 75, 28 * + SUM( DISTINCT 58 ) * 96 + + + 87 + + 19, - 45 ) THEN NULL WHEN - 56 * - + COUNT( DISTINCT 29 ) - - + 52 THEN + ( ( - 21 ) ) END, + 12 - - 11 ) * + + ( - 69 ) + - ( - COUNT( * ) ) + - + 52 - - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL - 38 * NULLIF ( - CASE - COUNT ( * ) WHEN - COALESCE ( - 4, + - 75, 28 * + SUM ( DISTINCT 58 ) * 96 + + + 87 + + 19, - 45 ) THEN NULL WHEN - 56 * - + COUNT ( DISTINCT 29 ) - - + 52 THEN + ( ( - 21 ) ) END, + 12 - - 11 ) * + + ( - 69 ) + - ( - COUNT ( * ) ) + - + 52 - - 68 AS col1
----
NULL

query I rowsort
SELECT 51 - + 6 AS col0
----
45

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

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

query I rowsort
SELECT ALL - NULLIF ( + 55, - 97 + - - 22 ) + - - 51 * 80
----
4025

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT 48 * - COUNT( * ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-7825
SELECT 48 * - COUNT ( * ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT MAX( + 80 ) * + 74 + - 4
----
5916

skipif mysql # not compatible
query I rowsort label-7826
SELECT MAX ( + 80 ) * + 74 + - 4
----
5916

onlyif mysql # DIV for integer division: 
query I rowsort label-7827
SELECT ALL + 75 DIV - 82
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL + 75 / - 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7828
SELECT ALL + 66 + - MAX( DISTINCT 76 ), + 79 * + - SUM( + + 9 ) col2
----
-10
-711

skipif mysql # not compatible
query II rowsort label-7828
SELECT ALL + 66 + - MAX ( DISTINCT 76 ), + 79 * + - SUM ( + + 9 ) col2
----
-10
-711

query I rowsort
SELECT 73 * 1 col2
----
73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT - 21 + - - COALESCE ( 99, - 7 + + COUNT( * ) + - 42 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT - 21 + - - COALESCE ( 99, - 7 + + COUNT ( * ) + - 42 ) AS col1
----
78

query I rowsort
SELECT ALL - 3 - + 17 col1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-7833
SELECT 63 + - CAST( NULL AS SIGNED ) + 32 * ( 35 ) AS col0, COALESCE ( 52, - ( + NULLIF ( 78, + 74 + + + COUNT( * ) + - + ( - + 67 ) * 7 + COALESCE ( + 13, ( - + 75 ) * COUNT( - 20 ) + - - 33 - - ( + 45 ) ) + + + 34 DIV 53 ) ) DIV NULLIF ( - CAST( NULL AS SIGNED ), + 35 DIV + + CAST( + 15 AS DECIMAL ) * - 43 ) DIV + 76, + ( + 89 ) ) col0
----
NULL
52

skipif mysql # not compatible
query II rowsort label-7833
SELECT 63 + - CAST ( NULL AS INTEGER ) + 32 * ( 35 ) AS col0, COALESCE ( 52, - ( + NULLIF ( 78, + 74 + + + COUNT ( * ) + - + ( - + 67 ) * 7 + COALESCE ( + 13, ( - + 75 ) * COUNT ( - 20 ) + - - 33 - - ( + 45 ) ) + + + 34 / 53 ) ) / NULLIF ( - CAST ( NULL AS INTEGER ), + 35 / + + CAST ( + 15 AS REAL ) * - 43 ) / + 76, + ( + 89 ) ) col0
----
NULL
52

query II rowsort
SELECT - 80 AS col1, + 61 + 46 AS col2
----
-80
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7835
SELECT + 93 / 52 / + + CASE - + ( + COUNT( * ) ) WHEN + + 63 THEN NULL WHEN 13 + + 23 + SUM( - - 95 ) THEN + - CAST( + 35 AS SIGNED ) ELSE NULL END + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT + 93 / 52 / + + CASE - + ( + COUNT ( * ) ) WHEN + + 63 THEN NULL WHEN 13 + + 23 + SUM ( - - 95 ) THEN + - CAST ( + 35 AS INTEGER ) ELSE NULL END + - 12
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7836
SELECT + 30 AS col2, COUNT( * ) col0
----
30
1

skipif mysql # not compatible
query II rowsort label-7836
SELECT + 30 AS col2, COUNT ( * ) col0
----
30
1

query I rowsort
SELECT 13 * 88
----
1144

query I rowsort
SELECT ALL 86 - 24 AS col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7839
SELECT + NULLIF ( 97, + COUNT( * ) ) * + 90 + + MIN( DISTINCT - + 14 ) AS col2
----
8716

skipif mysql # not compatible
query I rowsort label-7839
SELECT + NULLIF ( 97, + COUNT ( * ) ) * + 90 + + MIN ( DISTINCT - + 14 ) AS col2
----
8716

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT DISTINCT - 46 DIV + + 89
----
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT - 46 / + + 89
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7841
SELECT COUNT( ALL - 52 ) DIV + - ( + 9 ) * + 47 + 11 + - - 53
----
64

skipif mysql # not compatible
query I rowsort label-7841
SELECT COUNT ( ALL - 52 ) / + - ( + 9 ) * + 47 + 11 + - - 53
----
64

query II rowsort
SELECT ALL - + 22 AS col0, + 62 * + 24 AS col1
----
-22
1488

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT ALL + 2 DIV + - 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL + 2 / + - 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT + 5 / + - MIN( ALL - CAST( NULL AS SIGNED ) ) - + - 21 * + + 44 / 92 + + SUM( ALL 78 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT + 5 / + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) - + - 21 * + + 44 / 92 + + SUM ( ALL 78 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT 4 AS col0, 25 * - - 85 * - MAX( - 20 ) - - 12 + - COALESCE ( + 45, + + 38 ) - + - MAX( ALL - 58 )
----
4
42409

skipif mysql # not compatible
query II rowsort label-7846
SELECT 4 AS col0, 25 * - - 85 * - MAX ( - 20 ) - - 12 + - COALESCE ( + 45, + + 38 ) - + - MAX ( ALL - 58 )
----
4
42409

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + 4 * + 18 + 92 - + MIN( + 98 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-7848
SELECT + 4 * + 18 + 92 - + MIN ( + 98 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT + COUNT( * ) * - NULLIF ( + 50, - + 55 )
----
-50

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + COUNT ( * ) * - NULLIF ( + 50, - + 55 )
----
-50

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

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

query I rowsort
SELECT ALL + + 95 + 34
----
129

query II rowsort
SELECT 85 AS col1, + 10 * - 3 * - - 66 col2
----
85
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7853
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + MIN( 30 ) * - COUNT( * ) + + 32 * 40 + - CAST( NULL AS SIGNED ) * + 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7853
SELECT DISTINCT CAST ( NULL AS REAL ) + - + MIN ( 30 ) * - COUNT ( * ) + + 32 * 40 + - CAST ( NULL AS INTEGER ) * + 2 AS col0
----
NULL

query I rowsort
SELECT 58 * + + 9 col0
----
522

query I rowsort
SELECT 61 + - 81
----
-20

query II rowsort
SELECT 73 AS col1, 81 col2
----
73
81

query II rowsort
SELECT 8 AS col0, 42 AS col1
----
8
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT CAST( NULL AS SIGNED ) + + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7858
SELECT CAST ( NULL AS INTEGER ) + + 64
----
NULL

query II rowsort
SELECT - 47, 27 AS col1
----
-47
27

query I rowsort
SELECT 7 * 55 + 61 + + 96 AS col2
----
542

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

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

query I rowsort
SELECT DISTINCT 49 * - - 98
----
4802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7863
SELECT ALL - 35 - - - 72 - - COUNT( * ) * + 31 + + 84 * CAST( NULL AS SIGNED ) * + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL - 35 - - - 72 - - COUNT ( * ) * + 31 + + 84 * CAST ( NULL AS INTEGER ) * + 29 AS col2
----
NULL

query II rowsort
SELECT 89 AS col1, 59 AS col0
----
89
59

query I rowsort
SELECT 92 + + ( + 40 )
----
132

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT ALL MIN( - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL MIN ( - 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT COUNT( * ) + + - 93 * - 5 AS col2
----
466

skipif mysql # not compatible
query I rowsort label-7868
SELECT COUNT ( * ) + + - 93 * - 5 AS col2
----
466

query II rowsort
SELECT - 58 AS col1, + 12 + - - 18 * ( 68 )
----
-58
1236

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL SUM( DISTINCT + + 79 )
----
79

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL SUM ( DISTINCT + + 79 )
----
79

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7872
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 67 * + 70 AS col0
----
NULL
4690

skipif mysql # not compatible
query II rowsort label-7872
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 67 * + 70 AS col0
----
NULL
4690

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT ALL + 98 DIV - + 55 + - + 95 col1
----
-96

skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + 98 / - + 55 + - + 95 col1
----
-96

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

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

query I rowsort
SELECT - 52 * - 37 + 48
----
1972

query I rowsort
SELECT 94 * + 70
----
6580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + - COUNT( 11 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7878
SELECT + - COUNT ( 11 ) AS col0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7879
SELECT DISTINCT + - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT + - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + 5 AS col2
----
NULL

query II rowsort
SELECT 19, - 65 * - 84 AS col2
----
19
5460

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7881
SELECT ALL + NULLIF ( - - CAST( - 58 AS SIGNED ), + 24 * + 37 ) * - - 19 + - 67 AS col1, 9 - - + 68 AS col0
----
-1169
77

skipif mysql # not compatible
query II rowsort label-7881
SELECT ALL + NULLIF ( - - CAST ( - 58 AS INTEGER ), + 24 * + 37 ) * - - 19 + - 67 AS col1, 9 - - + 68 AS col0
----
-1169
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT ALL - + 38 * + 28 + - 9 + - COUNT( * ) * + 27 AS col2
----
-1100

skipif mysql # not compatible
query I rowsort label-7882
SELECT ALL - + 38 * + 28 + - 9 + - COUNT ( * ) * + 27 AS col2
----
-1100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7884
SELECT + ( 28 ) + 51 + + CASE + 24 WHEN + - 81 * + 98 THEN 81 / + NULLIF ( + MIN( ALL + 6 ), - 53 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT + ( 28 ) + 51 + + CASE + 24 WHEN + - 81 * + 98 THEN 81 / + NULLIF ( + MIN ( ALL + 6 ), - 53 ) END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7885
SELECT DISTINCT + + 1 * + NULLIF ( + 76, + 5 * - 88 * - 78 ) DIV - 56 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT + + 1 * + NULLIF ( + 76, + 5 * - 88 * - 78 ) / - 56 AS col1
----
-1

query II rowsort
SELECT - 60 * 86 + COALESCE ( + 50, 84 ) + 73 AS col0, - 97
----
-5037
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT ALL + + MAX( ALL 81 ) * - 51 * - 88 + CAST( + - 92 AS SIGNED )
----
363436

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + + MAX ( ALL 81 ) * - 51 * - 88 + CAST ( + - 92 AS INTEGER )
----
363436

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

skipif mysql # not compatible
query I rowsort label-7888
SELECT ALL + 2 * + 41 + + COUNT ( * )
----
83

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT + COUNT( * ) - + 72 + 18 * 18 col1
----
253

skipif mysql # not compatible
query I rowsort label-7891
SELECT + COUNT ( * ) - + 72 + 18 * 18 col1
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT ALL 50 * - - COUNT( 56 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL 50 * - - COUNT ( 56 ) AS col1
----
50

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT 84 * COUNT( * ) + - + 18 AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7894
SELECT 84 * COUNT ( * ) + - + 18 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT DISTINCT 44 - - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-7895
SELECT DISTINCT 44 - - COUNT ( * ) AS col2
----
45

query I rowsort
SELECT + 8 * ( - 28 ) AS col1
----
-224

query II rowsort
SELECT ALL 14 * + - 8 AS col0, 47 * + + 55 col0
----
-112
2585

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

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

query II rowsort
SELECT DISTINCT 8 - 83 AS col1, + 72
----
-75
72

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

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

query II rowsort
SELECT DISTINCT COALESCE ( + - 87, - 50 ) * 51 * + 79 * + - 64 * + 68 AS col1, - 15 AS col1
----
1525476096
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-7902
SELECT - - 57 DIV + 10
----
5

skipif mysql # not compatible
query I rowsort label-7902
SELECT - - 57 / + 10
----
5

query I rowsort
SELECT ( + 97 ) col2
----
97

query I rowsort
SELECT ALL 21 * 26 * - - 12
----
6552

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

query I rowsort
SELECT + 4 + + 25 AS col2
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT + 9 DIV - 51 * + 96 - - 15 + 14 * 37 * 84
----
43527

skipif mysql # not compatible
query I rowsort label-7907
SELECT + 9 / - 51 * + 96 - - 15 + 14 * 37 * 84
----
43527

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7908
SELECT - COUNT( + 57 ) DIV + COUNT( * ) + + + 48
----
47

skipif mysql # not compatible
query I rowsort label-7908
SELECT - COUNT ( + 57 ) / + COUNT ( * ) + + + 48
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - - COUNT( * ) + + 24 * 42 * + - 26 AS col0
----
-26207

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - - COUNT ( * ) + + 24 * 42 * + - 26 AS col0
----
-26207

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT + COUNT( * ) + 16, - 99 * - 69 AS col2
----
17
6831

skipif mysql # not compatible
query II rowsort label-7910
SELECT + COUNT ( * ) + 16, - 99 * - 69 AS col2
----
17
6831

query I rowsort
SELECT - 92 * - CASE - 42 WHEN - 30 THEN NULL ELSE + 63 END
----
5796

query I rowsort
SELECT + NULLIF ( 62, 58 / - 9 * - 64 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7913
SELECT ALL - - 29 DIV + 66 + COUNT( * ) + 71
----
72

skipif mysql # not compatible
query I rowsort label-7913
SELECT ALL - - 29 / + 66 + COUNT ( * ) + 71
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7914
SELECT - + COUNT( * ) DIV + + 36 + - + COUNT( ALL + 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7914
SELECT - + COUNT ( * ) / + + 36 + - + COUNT ( ALL + 92 ) AS col0
----
-1

query I rowsort
SELECT ALL + - 16 * - 77 - + + 49 - 43 + - 66 * + 60 * 57 * + 8 AS col1
----
-1804620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL 53 * - 88 * + - 42 + + CASE - 78 WHEN + 65 THEN + 96 + + 16 + COALESCE ( - COALESCE ( + 25, + 61, COUNT( * ) ), - CAST( NULL AS SIGNED ) ) * - COUNT( * ) WHEN - 24 + - COUNT( * ) THEN NULL END + + - NULLIF ( + MAX( ALL - 17 ), 90 ) + SUM( ALL - 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL 53 * - 88 * + - 42 + + CASE - 78 WHEN + 65 THEN + 96 + + 16 + COALESCE ( - COALESCE ( + 25, + 61, COUNT ( * ) ), - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) WHEN - 24 + - COUNT ( * ) THEN NULL END + + - NULLIF ( + MAX ( ALL - 17 ), 90 ) + SUM ( ALL - 39 ) AS col2
----
NULL

query I rowsort
SELECT ALL 61 * - 43 + ( - 54 )
----
-2677

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7918
SELECT 15 * + 8 + COUNT( * ) DIV - 8
----
120

skipif mysql # not compatible
query I rowsort label-7918
SELECT 15 * + 8 + COUNT ( * ) / - 8
----
120

query I rowsort
SELECT ALL + 88 * - 63
----
-5544

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - COALESCE ( + + 11, - - 77 - - COUNT( * ) + 25, 85 - + + 40, + 76 * - - NULLIF ( - 7, - 57 ) + 82 + + ( - 13 ) ) + COUNT( DISTINCT - 0 ) * - 71 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-7920
SELECT - COALESCE ( + + 11, - - 77 - - COUNT ( * ) + 25, 85 - + + 40, + 76 * - - NULLIF ( - 7, - 57 ) + 82 + + ( - 13 ) ) + COUNT ( DISTINCT - 0 ) * - 71 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7921
SELECT COALESCE ( - COUNT( * ), + 57 * - CASE - ( - COUNT( * ) ) WHEN - 29 THEN NULL WHEN - - CAST( NULL AS DECIMAL ) THEN + 53 - + 15 WHEN 7 * 31 * + - 0 + + SUM( ALL + 79 ) THEN + CAST( - NULLIF ( - 46, COALESCE ( 51, - - 35 * - 46 * - 99 * + 74 / + 84, + 44 ) * + - 26 + + 27 + 64 ) AS SIGNED ) END * + - CAST( + 60 AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7921
SELECT COALESCE ( - COUNT ( * ), + 57 * - CASE - ( - COUNT ( * ) ) WHEN - 29 THEN NULL WHEN - - CAST ( NULL AS REAL ) THEN + 53 - + 15 WHEN 7 * 31 * + - 0 + + SUM ( ALL + 79 ) THEN + CAST ( - NULLIF ( - 46, COALESCE ( 51, - - 35 * - 46 * - 99 * + 74 / + 84, + 44 ) * + - 26 + + 27 + 64 ) AS INTEGER ) END * + - CAST ( + 60 AS INTEGER ) ) AS col0
----
-1

query II rowsort
SELECT ALL 82 * - 98 * 41 - 24, - 0 * + 47 AS col2
----
-329500
0

query I rowsort
SELECT NULLIF ( + 15, + 86 + 46 + 13 ) AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7924
SELECT DISTINCT 45 * - CAST( NULL AS SIGNED ) - - - 9, MIN( + + 9 ) AS col2
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7924
SELECT DISTINCT 45 * - CAST ( NULL AS INTEGER ) - - - 9, MIN ( + + 9 ) AS col2
----
NULL
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7925
SELECT + COALESCE ( 73, - + 91 - + COALESCE ( - 73, - 79, - 23 ) DIV - 68 ) AS col0, - COUNT( * ) col1
----
73
-1

skipif mysql # not compatible
query II rowsort label-7925
SELECT + COALESCE ( 73, - + 91 - + COALESCE ( - 73, - 79, - 23 ) / - 68 ) AS col0, - COUNT ( * ) col1
----
73
-1

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

query II rowsort
SELECT COALESCE ( + + 91, 17 ), 99 + - + 45 + + 94 + - 95 AS col1
----
91
53

query I rowsort
SELECT + 55 * + - 14 AS col1
----
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT ALL 61 DIV + 97
----
0

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL 61 / + 97
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT SUM( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7931
SELECT SUM ( 96 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT SUM( - - 77 ) col1
----
77

skipif mysql # not compatible
query I rowsort label-7932
SELECT SUM ( - - 77 ) col1
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7933
SELECT DISTINCT SUM( + 74 ) * + 6, COUNT( * ) AS col1
----
444
1

skipif mysql # not compatible
query II rowsort label-7933
SELECT DISTINCT SUM ( + 74 ) * + 6, COUNT ( * ) AS col1
----
444
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT + 19 + - - 87 + 95 DIV - + 26
----
103

skipif mysql # not compatible
query I rowsort label-7935
SELECT + 19 + - - 87 + 95 / - + 26
----
103

query I rowsort
SELECT ALL - 45 * - 75 AS col1
----
3375

query I rowsort
SELECT + 95 * + 76
----
7220

query I rowsort
SELECT + 12 + + + 50 AS col0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT DISTINCT COUNT( * ) * - - 11 * 4 AS col0
----
44

skipif mysql # not compatible
query I rowsort label-7939
SELECT DISTINCT COUNT ( * ) * - - 11 * 4 AS col0
----
44

query I rowsort
SELECT ALL 66 + 28 + 18 * 61 * - - 59
----
64876

query I rowsort
SELECT + 35 + - - 20 * + 73 + + + 42
----
1537

query I rowsort
SELECT + 79 * 40 + + 72
----
3232

query II rowsort
SELECT + 77 col2, 66 * 16 AS col2
----
77
1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT + 62 + + 85 - + + COALESCE ( - ( - NULLIF ( + + COUNT( * ), 85 ) ), + 30, - - 20 + + 6 ) * + 66
----
81

skipif mysql # not compatible
query I rowsort label-7944
SELECT + 62 + + 85 - + + COALESCE ( - ( - NULLIF ( + + COUNT ( * ), 85 ) ), + 30, - - 20 + + 6 ) * + 66
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT COUNT( * ) + - + ( - - 80 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT COUNT ( * ) + - + ( - - 80 ) AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT + NULLIF ( SUM( ALL ( 18 ) ), - 39 ) * + 38 AS col1
----
684

skipif mysql # not compatible
query I rowsort label-7946
SELECT + NULLIF ( SUM ( ALL ( 18 ) ), - 39 ) * + 38 AS col1
----
684

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

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

query II rowsort
SELECT ALL + 72 AS col0, ( NULLIF ( + 90, + - 34 + - 71 * 34 ) ) col0
----
72
90

query I rowsort
SELECT ALL - ( + 50 ) + - - 79 AS col1
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7951
SELECT CASE CASE + 57 WHEN + - 86 THEN - CASE + 44 WHEN + 79 THEN + 40 * SUM( CAST( + 48 AS SIGNED ) ) / + NULLIF ( 17, - ( + CAST( 37 AS DECIMAL ) ) / + 64 ) WHEN 66 * - - 34 THEN - 66 + + + COUNT( * ) ELSE NULL END + + 51 - + 45 + - CAST( + 36 AS SIGNED ) ELSE NULL END WHEN - 16 + + 66 THEN + + 85 WHEN - COALESCE ( + 58, - 88 ) THEN - 12 - - 26 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7951
SELECT CASE CASE + 57 WHEN + - 86 THEN - CASE + 44 WHEN + 79 THEN + 40 * SUM ( CAST ( + 48 AS INTEGER ) ) / + NULLIF ( 17, - ( + CAST ( 37 AS REAL ) ) / + 64 ) WHEN 66 * - - 34 THEN - 66 + + + COUNT ( * ) ELSE NULL END + + 51 - + 45 + - CAST ( + 36 AS INTEGER ) ELSE NULL END WHEN - 16 + + 66 THEN + + 85 WHEN - COALESCE ( + 58, - 88 ) THEN - 12 - - 26 END AS col1
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 13, 68 AS col1
----
-13
68

query I rowsort
SELECT 72 - 66 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT COUNT( * ) * - CASE - 13 WHEN + 97 THEN ( - COUNT( * ) ) * + 22 ELSE - + 84 END - 71
----
13

skipif mysql # not compatible
query I rowsort label-7955
SELECT COUNT ( * ) * - CASE - 13 WHEN + 97 THEN ( - COUNT ( * ) ) * + 22 ELSE - + 84 END - 71
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL - CASE + NULLIF ( + + CASE + 93 WHEN + - 97 * + 86 + 53 THEN + 94 + COUNT( * ) + - ( - 74 ) END, - 58 * - 94 * - 69 + - COUNT( * ) ) WHEN - COUNT( * ) + ( - 89 ) + - COALESCE ( COUNT( * ), + COUNT( * ) ) THEN NULL WHEN + MIN( DISTINCT - 53 ) * + 27 THEN - - 42 WHEN + 27 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL - CASE + NULLIF ( + + CASE + 93 WHEN + - 97 * + 86 + 53 THEN + 94 + COUNT ( * ) + - ( - 74 ) END, - 58 * - 94 * - 69 + - COUNT ( * ) ) WHEN - COUNT ( * ) + ( - 89 ) + - COALESCE ( COUNT ( * ), + COUNT ( * ) ) THEN NULL WHEN + MIN ( DISTINCT - 53 ) * + 27 THEN - - 42 WHEN + 27 THEN NULL ELSE NULL END
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7957
SELECT - SUM ( - 64 )
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT ALL - 47 DIV 52 * + 30 col0
----
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT ALL - 47 / 52 * + 30 col0
----
0

query I rowsort
SELECT 57 * ( - 55 ) * - 60
----
188100

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

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

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

skipif mysql # not compatible
query I rowsort label-7961
SELECT 76 - + - COUNT ( * ) / + 50
----
76

query I rowsort
SELECT ALL - 48 / + COALESCE ( 3, 25 * 1 / - + 52 ) * + CASE 62 WHEN 98 THEN 18 - - ( 51 ) END * + 22
----
NULL

query I rowsort
SELECT 83 + - + 59
----
24

query I rowsort
SELECT 57 * - 74
----
-4218

query I rowsort
SELECT ALL - 58 * - - 44 * 41
----
-104632

query I rowsort
SELECT 82 * 47 * - + 53 * - - 48
----
-9804576

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

query I rowsort
SELECT ALL - 58 * + 60
----
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT 1 DIV + 20 * 16 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT 1 / + 20 * 16 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7970
SELECT ALL 7 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL 7 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT 20 - - MAX( DISTINCT - 86 )
----
-66

skipif mysql # not compatible
query I rowsort label-7971
SELECT 20 - - MAX ( DISTINCT - 86 )
----
-66

query I rowsort
SELECT DISTINCT + 68 + + - ( - ( + 5 ) ) - + 74
----
-1

query I rowsort
SELECT ALL - 19 + + 4
----
-15

query I rowsort
SELECT + 73 - 61 - - - 73 + + + 81 col1
----
20

query I rowsort
SELECT - ( 40 )
----
-40

query I rowsort
SELECT + 91 * + 21 AS col2
----
1911

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT ALL COUNT( * ) * + - 31 AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL COUNT ( * ) * + - 31 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7979
SELECT DISTINCT + 36 + 86 col0, 31 DIV + 49 + - COUNT( * ) * 85 AS col1
----
122
-85

skipif mysql # not compatible
query II rowsort label-7979
SELECT DISTINCT + 36 + 86 col0, 31 / + 49 + - COUNT ( * ) * 85 AS col1
----
122
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7980
SELECT MAX( DISTINCT - 84 ) - + 74 - + - COUNT( * ) + - + 57 DIV - 41 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-7980
SELECT MAX ( DISTINCT - 84 ) - + 74 - + - COUNT ( * ) + - + 57 / - 41 AS col0
----
-156

query I rowsort
SELECT ALL + - 44 * + 66
----
-2904

onlyif mysql # DIV for integer division: 
query II rowsort label-7982
SELECT ALL 10 * 50 DIV + 65 * + - 1 AS col2, - 55 AS col1
----
-7
-55

skipif mysql # not compatible
query II rowsort label-7982
SELECT ALL 10 * 50 / + 65 * + - 1 AS col2, - 55 AS col1
----
-7
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-7983
SELECT + ( 88 ), - 63 DIV - 28 AS col1
----
88
2

skipif mysql # not compatible
query II rowsort label-7983
SELECT + ( 88 ), - 63 / - 28 AS col1
----
88
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL + COUNT( * ) - - + 62 + + 46 * 80 * - + 92
----
-338497

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + COUNT ( * ) - - + 62 + + 46 * 80 * - + 92
----
-338497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL - - CASE 35 WHEN + COUNT( * ) THEN NULL WHEN - 55 + + - 75 - + CAST( NULL AS SIGNED ) THEN MAX( ALL 68 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL - - CASE 35 WHEN + COUNT ( * ) THEN NULL WHEN - 55 + + - 75 - + CAST ( NULL AS INTEGER ) THEN MAX ( ALL 68 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7986
SELECT - COUNT( * ) + + + CASE + 36 WHEN + - MAX( - + 55 ) * 63 + - 15 * + + ( + 49 ) / + CAST( NULL AS SIGNED ) + COUNT( DISTINCT + 3 ) THEN ( - CAST( + - MIN( DISTINCT + - 74 ) AS SIGNED ) ) * + 36 ELSE NULL END + + CAST( + + 54 AS DECIMAL ) / - - 77 - + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7986
SELECT - COUNT ( * ) + + + CASE + 36 WHEN + - MAX ( - + 55 ) * 63 + - 15 * + + ( + 49 ) / + CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT + 3 ) THEN ( - CAST ( + - MIN ( DISTINCT + - 74 ) AS INTEGER ) ) * + 36 ELSE NULL END + + CAST ( + + 54 AS REAL ) / - - 77 - + 78
----
NULL

query II rowsort
SELECT DISTINCT 73 * 40, - 60 AS col2
----
2920
-60

query I rowsort
SELECT DISTINCT - 43 * + 65 * - + 19 AS col0
----
53105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7989
SELECT + CASE - - ( - + 20 ) WHEN + CAST( NULL AS SIGNED ) / + 26 * - CAST( NULL AS SIGNED ) THEN NULL WHEN - 70 THEN + + 27 ELSE NULL END * - CAST( NULL AS SIGNED ) / + 93 + - MIN( DISTINCT - 52 ) * + 5 * - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT + CASE - - ( - + 20 ) WHEN + CAST ( NULL AS INTEGER ) / + 26 * - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 70 THEN + + 27 ELSE NULL END * - CAST ( NULL AS INTEGER ) / + 93 + - MIN ( DISTINCT - 52 ) * + 5 * - 70
----
NULL

query I rowsort
SELECT DISTINCT 50 * - 45 AS col0
----
-2250

query I rowsort
SELECT 92 * + 86 AS col2
----
7912

query II rowsort
SELECT DISTINCT 85 * + 15 * 23 AS col0, - 33 AS col0
----
29325
-33

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + SUM( - 66 ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-7994
SELECT + SUM ( - 66 ) AS col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7995
SELECT CASE + 42 WHEN + - MIN( DISTINCT + - 31 ) THEN 72 + + + 24 + + 79 WHEN 68 THEN NULL WHEN + CAST( NULL AS SIGNED ) + + 76 THEN NULL END * - 6 - - 76 + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-7995
SELECT CASE + 42 WHEN + - MIN ( DISTINCT + - 31 ) THEN 72 + + + 24 + + 79 WHEN 68 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + + 76 THEN NULL END * - 6 - - 76 + 33
----
NULL

query I rowsort
SELECT 92 * + 26 * - + 76
----
-181792

query II rowsort
SELECT ALL - 46 AS col2, - 13
----
-46
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT DISTINCT COUNT( * ) + + 29
----
30

skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT COUNT ( * ) + + 29
----
30

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8000
SELECT ALL - 27 + - SUM( - NULLIF ( - 27, + 68 * + - 63 * + ( + 9 ) * + 85 + + ( 15 ) ) ) + + 91 - - 99 DIV 6 - - - 74
----
-21

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL - 27 + - SUM ( - NULLIF ( - 27, + 68 * + - 63 * + ( + 9 ) * + 85 + + ( 15 ) ) ) + + 91 - - 99 / 6 - - - 74
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - NULLIF ( + COUNT( * ), 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-8001
SELECT - NULLIF ( + COUNT ( * ), 72 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8002
SELECT - 53 + CASE 13 WHEN - 12 - + 39 THEN - CASE + COUNT( * ) WHEN 47 THEN + 66 * + COUNT( - 40 * + 75 ) + + COALESCE ( 86, 76, - COUNT( * ) / 73 ) ELSE NULL END * 5 WHEN - CASE 63 WHEN + 14 THEN NULL WHEN - CAST( 55 AS SIGNED ) + + 4 THEN + 88 * 70 WHEN 95 * - ( 99 ) THEN NULL ELSE NULL END THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8002
SELECT - 53 + CASE 13 WHEN - 12 - + 39 THEN - CASE + COUNT ( * ) WHEN 47 THEN + 66 * + COUNT ( - 40 * + 75 ) + + COALESCE ( 86, 76, - COUNT ( * ) / 73 ) ELSE NULL END * 5 WHEN - CASE 63 WHEN + 14 THEN NULL WHEN - CAST ( 55 AS INTEGER ) + + 4 THEN + 88 * 70 WHEN 95 * - ( 99 ) THEN NULL ELSE NULL END THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT - COALESCE ( + 87, - 68 + - 18 ) * + COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT - COALESCE ( + 87, - 68 + - 18 ) * + COUNT ( * )
----
-87

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

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

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

skipif mysql # not compatible
query I rowsort label-8005
SELECT - 30 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8006
SELECT ALL COALESCE ( 53, + 95 DIV 18, CAST( - 72 AS SIGNED ) ) + - 58
----
-5

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL COALESCE ( 53, + 95 / 18, CAST ( - 72 AS INTEGER ) ) + - 58
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - 82 + 98 * CASE 98 WHEN COUNT( ALL 73 ) THEN + COALESCE ( - 63, - 28 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - 82 + 98 * CASE 98 WHEN COUNT ( ALL 73 ) THEN + COALESCE ( - 63, - 28 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT - 23 + 78 * + CAST( - CASE CAST( NULL AS SIGNED ) WHEN + 90 THEN NULL WHEN - 92 THEN NULL ELSE 27 + - COUNT( * ) END AS SIGNED ) AS col0
----
-2051

skipif mysql # not compatible
query I rowsort label-8008
SELECT - 23 + 78 * + CAST ( - CASE CAST ( NULL AS INTEGER ) WHEN + 90 THEN NULL WHEN - 92 THEN NULL ELSE 27 + - COUNT ( * ) END AS INTEGER ) AS col0
----
-2051

query I rowsort
SELECT DISTINCT - 10 * + 96 AS col1
----
-960

query I rowsort
SELECT ALL CASE 99 WHEN ( + 89 ) + - 60 THEN - 68 ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 * 45
----
-2610

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT ALL COUNT( DISTINCT 64 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL COUNT ( DISTINCT 64 ) col2
----
1

query I rowsort
SELECT - 76 + + 25 col1
----
-51

query I rowsort
SELECT - 87 * 63 AS col1
----
-5481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8015
SELECT - 52 + COUNT( 14 + - COALESCE ( - 6 + + 51, CAST( NULL AS SIGNED ) * 93 ) ) * COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-8015
SELECT - 52 + COUNT ( 14 + - COALESCE ( - 6 + + 51, CAST ( NULL AS INTEGER ) * 93 ) ) * COUNT ( * )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL COALESCE ( 99, COUNT( * ) )
----
99

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL COALESCE ( 99, COUNT ( * ) )
----
99

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

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

query I rowsort
SELECT + COALESCE ( - 19, - 80 + + COALESCE ( - 94, - 10, 1 ) ) * 72
----
-1368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT + COALESCE ( NULLIF ( 36, 30 * 12 + - 29 ), - 59 * + 63 - - CAST( 47 AS SIGNED ) * + 0 ) + 19
----
55

skipif mysql # not compatible
query I rowsort label-8019
SELECT + COALESCE ( NULLIF ( 36, 30 * 12 + - 29 ), - 59 * + 63 - - CAST ( 47 AS INTEGER ) * + 0 ) + 19
----
55

query I rowsort
SELECT ALL + 47 * - 80
----
-3760

query I rowsort
SELECT ALL COALESCE ( - 59, 0 )
----
-59

query I rowsort
SELECT ALL + 48 * - 20
----
-960

query I rowsort
SELECT ALL + 30 * - 87 AS col0
----
-2610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT - 32 * ( + SUM( 1 ) * NULLIF ( - 70 + NULLIF ( - 74, 59 * + COUNT( * ) ), 48 + 70 ) )
----
4608

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 32 * ( + SUM ( 1 ) * NULLIF ( - 70 + NULLIF ( - 74, 59 * + COUNT ( * ) ), 48 + 70 ) )
----
4608

query I rowsort
SELECT + COALESCE ( - 42, 38 ) AS col0
----
-42

query I rowsort
SELECT - 50 - 90 AS col2
----
-140

query I rowsort
SELECT + 56 * - 86 AS col0
----
-4816

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT DISTINCT 76 * - 33 + ( + MIN( DISTINCT + 90 ) + - 65 ) * 64
----
-908

skipif mysql # not compatible
query I rowsort label-8031
SELECT DISTINCT 76 * - 33 + ( + MIN ( DISTINCT + 90 ) + - 65 ) * 64
----
-908

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT ALL + NULLIF ( 12, - 5 * COUNT( + 51 ) + + 64 ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-8032
SELECT ALL + NULLIF ( 12, - 5 * COUNT ( + 51 ) + + 64 ) AS col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8033
SELECT + NULLIF ( - 91, - ( 89 ) * MAX( DISTINCT CAST( - 93 AS SIGNED ) / + 60 + 56 * 44 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-8033
SELECT + NULLIF ( - 91, - ( 89 ) * MAX ( DISTINCT CAST ( - 93 AS INTEGER ) / + 60 + 56 * 44 ) )
----
-91

query I rowsort
SELECT + 72 - + 92 * ( - 27 + - 51 )
----
7248

query I rowsort
SELECT ALL + ( + ( 53 ) ) * - 68
----
-3604

query I rowsort
SELECT DISTINCT + 83 * + 82 + - ( 63 + 29 ) * + 68 AS col0
----
550

query I rowsort
SELECT + COALESCE ( ( 14 ), - 61 * + 65 ) AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT CASE COALESCE ( COUNT( * ), + COALESCE ( + 14, - NULLIF ( 55, - 19 * 10 ), + 91 ) * - 30 ) WHEN 54 * ( CASE - 87 WHEN + 69 THEN ( 36 ) ELSE 43 END * 83 ) THEN + 37 * 3 + + 35 * - COUNT( * ) WHEN + MIN( + ( 94 ) ) THEN ( - COUNT( * ) ) * - 43 + ( 30 + 24 * 54 ) WHEN 25 * - COALESCE ( - 94, 92 * 16 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT CASE COALESCE ( COUNT ( * ), + COALESCE ( + 14, - NULLIF ( 55, - 19 * 10 ), + 91 ) * - 30 ) WHEN 54 * ( CASE - 87 WHEN + 69 THEN ( 36 ) ELSE 43 END * 83 ) THEN + 37 * 3 + + 35 * - COUNT ( * ) WHEN + MIN ( + ( 94 ) ) THEN ( - COUNT ( * ) ) * - 43 + ( 30 + 24 * 54 ) WHEN 25 * - COALESCE ( - 94, 92 * 16 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8039
SELECT ALL - 50 * + 39 + ( CASE + 29 WHEN MIN( ( ( 1 ) ) ) + CASE + AVG ( 70 ) WHEN - 40 * 4 THEN NULL WHEN - 81 + + 23 * ( + 10 + 78 * + CAST( + 8 * - 11 + 43 * + CASE + 61 WHEN + 89 THEN - 63 WHEN ( 65 ) * 60 THEN 20 - + 48 * + 63 WHEN - 33 + - 66 THEN NULLIF ( + 90, + 20 ) DIV 40 ELSE NULL END AS SIGNED ) ) THEN 58 ELSE NULL END THEN 33 ELSE ( 22 ) END ) DIV - 75 col2
----
-1950

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL - 50 * + 39 + ( CASE + 29 WHEN MIN ( ( ( 1 ) ) ) + CASE + AVG ( 70 ) WHEN - 40 * 4 THEN NULL WHEN - 81 + + 23 * ( + 10 + 78 * + CAST ( + 8 * - 11 + 43 * + CASE + 61 WHEN + 89 THEN - 63 WHEN ( 65 ) * 60 THEN 20 - + 48 * + 63 WHEN - 33 + - 66 THEN NULLIF ( + 90, + 20 ) / 40 ELSE NULL END AS INTEGER ) ) THEN 58 ELSE NULL END THEN 33 ELSE ( 22 ) END ) / - 75 col2
----
-1950

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT + 36 * - ( - 94 * + COUNT( * ) )
----
3384

skipif mysql # not compatible
query I rowsort label-8040
SELECT + 36 * - ( - 94 * + COUNT ( * ) )
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-8041
SELECT + 54 DIV + 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT + 54 / + 55 AS col1
----
0

query I rowsort
SELECT + 12 + 38 col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT NULLIF ( - COUNT( * ), - 29 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8043
SELECT NULLIF ( - COUNT ( * ), - 29 ) AS col2
----
-1

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

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

query I rowsort
SELECT ALL - 46 * 42 + + 76 AS col1
----
-1856

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT ALL + 10 * - 14 + SUM( DISTINCT 51 + - 98 ) * - 56 AS col2
----
2492

skipif mysql # not compatible
query I rowsort label-8046
SELECT ALL + 10 * - 14 + SUM ( DISTINCT 51 + - 98 ) * - 56 AS col2
----
2492

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT - + COUNT( DISTINCT 23 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8047
SELECT - + COUNT ( DISTINCT 23 ) AS col0
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL SUM( DISTINCT 19 ) - 42 * COUNT( * ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL SUM ( DISTINCT 19 ) - 42 * COUNT ( * ) col2
----
-23

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

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + 84 * + COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8051
SELECT + + 20 - - 41 DIV COUNT( * ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8051
SELECT + + 20 - - 41 / COUNT ( * ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8052
SELECT - SUM( ALL CAST( - 87 AS SIGNED ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8052
SELECT - SUM ( ALL CAST ( - 87 AS INTEGER ) ) AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8053
SELECT - ( + CASE + CAST( - 16 AS DECIMAL ) WHEN COUNT( * ) * + 75 THEN - 99 * - COUNT( * ) WHEN + COUNT( * ) * COUNT( * ) THEN CAST( NULL AS SIGNED ) * - 96 + 93 END ) * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT - ( + CASE + CAST ( - 16 AS REAL ) WHEN COUNT ( * ) * + 75 THEN - 99 * - COUNT ( * ) WHEN + COUNT ( * ) * COUNT ( * ) THEN CAST ( NULL AS INTEGER ) * - 96 + 93 END ) * 70
----
NULL

query I rowsort
SELECT ALL + - 15 * 24 col0
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT - COUNT( * ) - 70 * + NULLIF ( ( COUNT( * ) ), + 89 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-8055
SELECT - COUNT ( * ) - 70 * + NULLIF ( ( COUNT ( * ) ), + 89 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT - - 96 * NULLIF ( SUM( 32 ) * ( - MAX( - 72 ) - 59 ), - 46 + 23 * - 64 )
----
39936

skipif mysql # not compatible
query I rowsort label-8056
SELECT - - 96 * NULLIF ( SUM ( 32 ) * ( - MAX ( - 72 ) - 59 ), - 46 + 23 * - 64 )
----
39936

query I rowsort
SELECT ALL + 90 * 99 AS col1
----
8910

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

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

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

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

query I rowsort
SELECT - ( - 82 ) + 58
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT + 17 DIV + 6 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT + 17 / + 6 AS col2
----
2

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

skipif mysql # not compatible
query I rowsort label-8062
SELECT + 32 - - - COUNT ( * ) * + 14 AS col2
----
18

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL 72 DIV - 78 + 46
----
46

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL 72 / - 78 + 46
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8065
SELECT CAST( - ( + 84 ) AS SIGNED ) * 7 + 45
----
-543

skipif mysql # not compatible
query I rowsort label-8065
SELECT CAST ( - ( + 84 ) AS INTEGER ) * 7 + 45
----
-543

onlyif mysql # DIV for integer division: 
query I rowsort label-8066
SELECT ALL + 33 DIV + 61 + - 33
----
-33

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + 33 / + 61 + - 33
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8067
SELECT ALL ( + - 23 ) DIV + 43 + - 46
----
-46

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL ( + - 23 ) / + 43 + - 46
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8068
SELECT 27 DIV 93 + ( SUM( 49 ) - 14 ) * 70
----
2450

skipif mysql # not compatible
query I rowsort label-8068
SELECT 27 / 93 + ( SUM ( 49 ) - 14 ) * 70
----
2450

onlyif mysql # DIV for integer division: 
query I rowsort label-8069
SELECT + 90 DIV - ( + 17 ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-8069
SELECT + 90 / - ( + 17 ) AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8070
SELECT DISTINCT + COALESCE ( + - 56, - 43 ) DIV ( COUNT( * ) ) + COUNT( * ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT + COALESCE ( + - 56, - 43 ) / ( COUNT ( * ) ) + COUNT ( * ) AS col0
----
-55

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

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

query I rowsort
SELECT DISTINCT ( - 45 ) - 23
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8073
SELECT DISTINCT - CAST( 69 AS SIGNED ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-8073
SELECT DISTINCT - CAST ( 69 AS INTEGER ) AS col0
----
-69

query I rowsort
SELECT ALL + 7 - - 74 * 93
----
6889

query I rowsort
SELECT 36 * - - 33
----
1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8076
SELECT 67 + + 61 DIV - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-8076
SELECT 67 + + 61 / - COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT + 74 * + 59 AS col0
----
4366

query I rowsort
SELECT ALL 76 * + 82 + + 0 AS col1
----
6232

query I rowsort
SELECT + 16 * 9 AS col2
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - SUM( DISTINCT 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8080
SELECT - SUM ( DISTINCT 41 )
----
-41

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

query I rowsort
SELECT + 68 + 1
----
69

query I rowsort
SELECT 36 - 90
----
-54

query I rowsort
SELECT - ( + NULLIF ( 44, - 5 ) ) * 94 + 34 * - 44
----
-5632

query I rowsort
SELECT 16 + - 49
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT - 9 DIV 98
----
0

skipif mysql # not compatible
query I rowsort label-8086
SELECT - 9 / 98
----
0

query I rowsort
SELECT - 32 + - 90 AS col0
----
-122

query I rowsort
SELECT ALL + 30 + + - 60 + - 28 * 69
----
-1962

query II rowsort
SELECT - 84 AS col2, - 25 - + 47
----
-84
-72

query I rowsort
SELECT 11 + + 51
----
62

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

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

query I rowsort
SELECT 95 * + 69 AS col0
----
6555

query I rowsort
SELECT ALL 61 + 7 AS col0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8094
SELECT DISTINCT - 13 + + + CAST( NULL AS SIGNED ) - + 11 * - AVG ( COALESCE ( 58, 11 ) * 48 ) * 63 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT - 13 + + + CAST ( NULL AS INTEGER ) - + 11 * - AVG ( COALESCE ( 58, 11 ) * 48 ) * 63 AS col1
----
NULL

query I rowsort
SELECT 20 * + 39 AS col1
----
780

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

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

query I rowsort
SELECT 1 - 93 * 2 * 71
----
-13205

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT ALL - 68 DIV - 53
----
1

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - 68 / - 53
----
1

query I rowsort
SELECT 32 * - - 45 - + 94 AS col1
----
1346

query I rowsort
SELECT 46 * + 8 AS col2
----
368

query II rowsort
SELECT + 70, - 98 AS col1
----
70
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT DISTINCT - SUM( + 39 ) DIV - + 33 + + 50
----
51

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - SUM ( + 39 ) / - + 33 + + 50
----
51

query I rowsort
SELECT 36 * + 89
----
3204

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT - COUNT( * ) * + 70 * - + CASE 22 WHEN 90 - 16 THEN 41 - - COALESCE ( + 68 + - 35, 43 * COUNT( * ) + + 50 ) ELSE NULL END + + 20 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT - COUNT ( * ) * + 70 * - + CASE 22 WHEN 90 - 16 THEN 41 - - COALESCE ( + 68 + - 35, 43 * COUNT ( * ) + + 50 ) ELSE NULL END + + 20 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT COUNT( 42 ) + + - 90
----
-89

skipif mysql # not compatible
query I rowsort label-8106
SELECT COUNT ( 42 ) + + - 90
----
-89

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8107
SELECT + CAST( NULL AS DECIMAL ) * 29 / AVG ( ALL - 26 ) * - 88 - 74 / ( - 50 * + 70 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT + CAST ( NULL AS REAL ) * 29 / AVG ( ALL - 26 ) * - 88 - 74 / ( - 50 * + 70 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL - - NULLIF ( - 42, COUNT( * ) * 19 - 5 ) - ( 6 )
----
-48

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL - - NULLIF ( - 42, COUNT ( * ) * 19 - 5 ) - ( 6 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-8109
SELECT + ( + 85 ) DIV + ( - 89 ) * - 60
----
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT + ( + 85 ) / + ( - 89 ) * - 60
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + 0 * - + 5 * + + MAX( - 0 ) * 97 + 41
----
41

skipif mysql # not compatible
query I rowsort label-8110
SELECT + 0 * - + 5 * + + MAX ( - 0 ) * 97 + 41
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8111
SELECT 30 * 84 * + + COUNT( * ) / + 27 + 42 * + NULLIF ( 49 * - CAST( NULL AS SIGNED ), 81 * 38 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8111
SELECT 30 * 84 * + + COUNT ( * ) / + 27 + 42 * + NULLIF ( 49 * - CAST ( NULL AS INTEGER ), 81 * 38 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - COALESCE ( + 49, 7 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT + ( - + COUNT( * ) ) + 67 * 44 AS col2
----
2947

skipif mysql # not compatible
query I rowsort label-8114
SELECT + ( - + COUNT ( * ) ) + 67 * 44 AS col2
----
2947

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

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

query I rowsort
SELECT DISTINCT - 57 * - - NULLIF ( - + ( 3 ), - ( 7 ) ) + 6
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8117
SELECT ALL - COUNT( * ) + CAST( 30 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL - COUNT ( * ) + CAST ( 30 AS INTEGER ) AS col2
----
29

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

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

skipif mysql # not compatible
query I rowsort label-8119
SELECT DISTINCT 95 + - COUNT ( * ) + - 32 * + COUNT ( * ) AS col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8120
SELECT 10 - - COUNT( * ) * - + CAST( NULL AS SIGNED ) + MIN( + ( 40 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT 10 - - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + MIN ( + ( 40 ) )
----
NULL

query I rowsort
SELECT ALL - 8 + - + 41 * 21 + CASE 17 WHEN 81 + 45 THEN - 56 END / - 49 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT - 82 + - COUNT( ALL 69 ) + + 24
----
-59

skipif mysql # not compatible
query I rowsort label-8122
SELECT - 82 + - COUNT ( ALL 69 ) + + 24
----
-59

query I rowsort
SELECT 99 * + + 45 + + + 51
----
4506

query I rowsort
SELECT DISTINCT 50 + - 55 + + 4 - 40 - 50 * - 59 * + 94
----
277259

query I rowsort
SELECT ALL NULLIF ( - 59, - 36 + - 54 + 52 ) + 52 col1
----
-7

query I rowsort
SELECT ALL 85 + 28 - - NULLIF ( + 0, - 44 * + NULLIF ( 83, 76 ) )
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT COUNT( * ) - + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT COUNT ( * ) - + + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT ALL + CASE + - ( + 72 ) WHEN + + 41 / CASE + 5 WHEN 2 THEN NULL WHEN 87 * + 75 THEN NULL WHEN - 27 THEN 98 WHEN ( - AVG ( 13 ) ) THEN NULL ELSE ( 66 ) * + COUNT( * ) END + 95 THEN 70 END + - 85 * - 83 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8128
SELECT ALL + CASE + - ( + 72 ) WHEN + + 41 / CASE + 5 WHEN 2 THEN NULL WHEN 87 * + 75 THEN NULL WHEN - 27 THEN 98 WHEN ( - AVG ( 13 ) ) THEN NULL ELSE ( 66 ) * + COUNT ( * ) END + 95 THEN 70 END + - 85 * - 83 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8129
SELECT CAST( NULL AS SIGNED ) - + NULLIF ( + + 45, + 65 * - ( 19 - 42 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8129
SELECT CAST ( NULL AS INTEGER ) - + NULLIF ( + + 45, + 65 * - ( 19 - 42 ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8130
SELECT MIN( + 0 ) + 17 * 21
----
357

skipif mysql # not compatible
query I rowsort label-8130
SELECT MIN ( + 0 ) + 17 * 21
----
357

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT NULLIF ( + ( - COUNT( * ) ), - + COUNT( * ) ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT NULLIF ( + ( - COUNT ( * ) ), - + COUNT ( * ) ) + 63
----
NULL

query I rowsort
SELECT - 67 * - 44 * - - 45 AS col2
----
132660

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

skipif mysql # not compatible
query I rowsort label-8133
SELECT + 13 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT - 19 - + 49, + 86 AS col1
----
-68
86

query I rowsort
SELECT 37 * - 59 + + - ( - ( 54 ) ) AS col0
----
-2129

query I rowsort
SELECT ALL - 64 * + 19
----
-1216

query I rowsort
SELECT + 7 * 10
----
70

query I rowsort
SELECT ALL 13 * + + ( + 68 ) AS col2
----
884

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

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

query I rowsort
SELECT ALL 65 * + + 50
----
3250

query I rowsort
SELECT + 71 * + 45 AS col1
----
3195

query I rowsort
SELECT - 77 * - - 59 * - - 75
----
-340725

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT - NULLIF ( + SUM( DISTINCT + 26 ), + 75 * 96 ) + - 49 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8143
SELECT - NULLIF ( + SUM ( DISTINCT + 26 ), + 75 * 96 ) + - 49 AS col0
----
-75

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

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

query I rowsort
SELECT ALL + - 54 col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT ALL - CAST( - 39 AS SIGNED ) * - 65 * + ( 91 ) AS col1
----
-230685

skipif mysql # not compatible
query I rowsort label-8146
SELECT ALL - CAST ( - 39 AS INTEGER ) * - 65 * + ( 91 ) AS col1
----
-230685

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8147
SELECT - 64 DIV + MIN( + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-8147
SELECT - 64 / + MIN ( + 66 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8148
SELECT ALL + COALESCE ( NULLIF ( + NULLIF ( + COUNT( ALL - 28 ), 7 DIV + 87 + COUNT( * ) ), - 17 DIV + 94 ), 26 * CAST( NULL AS SIGNED ) + + 68 * 18, - COUNT( * ) + 66 * + 63 ) * - 88 + - 37
----
-365853

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL + COALESCE ( NULLIF ( + NULLIF ( + COUNT ( ALL - 28 ), 7 / + 87 + COUNT ( * ) ), - 17 / + 94 ), 26 * CAST ( NULL AS INTEGER ) + + 68 * 18, - COUNT ( * ) + 66 * + 63 ) * - 88 + - 37
----
-365853

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT DISTINCT + 10 * - SUM( DISTINCT 48 ) + - 27 * - 43
----
681

skipif mysql # not compatible
query I rowsort label-8149
SELECT DISTINCT + 10 * - SUM ( DISTINCT 48 ) + - 27 * - 43
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT + - SUM( ALL - + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-8150
SELECT + - SUM ( ALL - + 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT SUM( - + 68 ) * 9 + - MIN( 81 ) * - 79 + + 30 * 68 AS col2
----
7827

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT SUM ( - + 68 ) * 9 + - MIN ( 81 ) * - 79 + + 30 * 68 AS col2
----
7827

query I rowsort
SELECT + 99 * 92 + 20 * + 50 AS col2
----
10108

query I rowsort
SELECT ALL 3 * - 91 + - 46 * + 12 + + 75
----
-750

query II rowsort
SELECT - 53 + - - 79 col0, 23 AS col1
----
26
23

query I rowsort
SELECT - 67 + - 96 AS col1
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT + ( - MAX( DISTINCT - + 92 ) ) - + 36
----
56

skipif mysql # not compatible
query I rowsort label-8156
SELECT + ( - MAX ( DISTINCT - + 92 ) ) - + 36
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8157
SELECT ( + + ( - 82 ) ) * 74 + + ( CAST( 54 AS SIGNED ) )
----
-6014

skipif mysql # not compatible
query I rowsort label-8157
SELECT ( + + ( - 82 ) ) * 74 + + ( CAST ( 54 AS INTEGER ) )
----
-6014

query I rowsort
SELECT ALL - 51 + - 49 AS col1
----
-100

query II rowsort
SELECT DISTINCT 30 AS col0, - 14 * + 78 - - - 81 + + 86 * - 93
----
30
-9171

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

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT - 13 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8161
SELECT + 73 + + - CASE 83 WHEN 32 / + 6 THEN - 94 WHEN NULLIF ( 92, - 99 / - CAST( + 97 AS DECIMAL ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8161
SELECT + 73 + + - CASE 83 WHEN 32 / + 6 THEN - 94 WHEN NULLIF ( 92, - 99 / - CAST ( + 97 AS REAL ) ) THEN NULL END AS col2
----
NULL

query I rowsort
SELECT + 26 + + - 37 AS col1
----
-11

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

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

query I rowsort
SELECT + 43 * - 39
----
-1677

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT DISTINCT MIN( ALL - 87 ) * 42
----
-3654

skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT MIN ( ALL - 87 ) * 42
----
-3654

query I rowsort
SELECT + 7 * + 81
----
567

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT COUNT( - 80 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT COUNT ( - 80 ) AS col2
----
1

query I rowsort
SELECT + 83 * - 85
----
-7055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT ALL 54 DIV 80 * 72 * - MAX( DISTINCT + 95 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL 54 / 80 * 72 * - MAX ( DISTINCT + 95 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT + 71 DIV - 24 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-8170
SELECT + 71 / - 24 AS col2
----
-2

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

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

query I rowsort
SELECT + 48 * 14
----
672

query I rowsort
SELECT + 53 * - 95 col2
----
-5035

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8174
SELECT + NULLIF ( + + 85, CAST( NULL AS DECIMAL ) ) * + 1 AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8174
SELECT + NULLIF ( + + 85, CAST ( NULL AS REAL ) ) * + 1 AS col1
----
85

query I rowsort
SELECT ALL 18 * + 64
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT + COUNT( * ) - 88 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-8176
SELECT + COUNT ( * ) - 88 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT - 72 * + ( - 59 ) - + 18 + - COUNT( * ) * + 8 AS col1
----
4222

skipif mysql # not compatible
query I rowsort label-8177
SELECT - 72 * + ( - 59 ) - + 18 + - COUNT ( * ) * + 8 AS col1
----
4222

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL - 68 * - 46 - - + CASE + 45 WHEN 21 / 68 THEN NULL WHEN + 18 - 32 THEN COUNT( * ) * COUNT( * ) ELSE 87 END + CASE + COUNT( * ) WHEN - 38 / - COALESCE ( - 70 * + MAX( ALL 20 ), + COUNT( * ) ) THEN ( 90 ) END * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL - 68 * - 46 - - + CASE + 45 WHEN 21 / 68 THEN NULL WHEN + 18 - 32 THEN COUNT ( * ) * COUNT ( * ) ELSE 87 END + CASE + COUNT ( * ) WHEN - 38 / - COALESCE ( - 70 * + MAX ( ALL 20 ), + COUNT ( * ) ) THEN ( 90 ) END * - 60 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8179
SELECT ALL + CAST( + - 73 AS SIGNED ) DIV 42 + - CASE + 35 WHEN + ( 96 ) + + 25 * 34 THEN 95 ELSE + MAX( DISTINCT - 25 ) END + + 4 * COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + CAST ( + - 73 AS INTEGER ) / 42 + - CASE + 35 WHEN + ( 96 ) + + 25 * 34 THEN 95 ELSE + MAX ( DISTINCT - 25 ) END + + 4 * COUNT ( * )
----
28

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8181
SELECT ALL + COUNT( * ) DIV + 36 * - 24 + 23 col1
----
23

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8183
SELECT + ( - - COUNT( * ) ) DIV - 5 * - 72 - + 55 + + ( + COUNT( * ) ) * + 59 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8183
SELECT + ( - - COUNT ( * ) ) / - 5 * - 72 - + 55 + + ( + COUNT ( * ) ) * + 59 AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT DISTINCT COUNT( * ) * 15 / + - CAST( NULL AS SIGNED ) + + - 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT DISTINCT COUNT ( * ) * 15 / + - CAST ( NULL AS INTEGER ) + + - 16 AS col0
----
NULL

query I rowsort
SELECT + + 35 * - - 48
----
1680

query I rowsort
SELECT + 5 * + + 22 * - 70 - 4 * 33 + 34
----
-7798

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8187
SELECT ALL - ( + 56 ) * + 79 / - ( - 20 ) + 98 + + CAST( NULL AS SIGNED ) * ( 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT ALL - ( + 56 ) * + 79 / - ( - 20 ) + 98 + + CAST ( NULL AS INTEGER ) * ( 3 )
----
NULL

query I rowsort
SELECT ALL - 34 * + - 70 + + + 85
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-8189
SELECT DISTINCT + 58 * - 11 + + 69 + 2 - + COUNT( * ) * 10 AS col1
----
-577

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + 58 * - 11 + + 69 + 2 - + COUNT ( * ) * 10 AS col1
----
-577

query I rowsort
SELECT ALL + 5 * 66 + + 20
----
350

query I rowsort
SELECT - + 16 col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT - 74 DIV - - 38 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8192
SELECT - 74 / - - 38 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT NULLIF ( - 43, - COUNT( * ) )
----
-43

skipif mysql # not compatible
query I rowsort label-8193
SELECT NULLIF ( - 43, - COUNT ( * ) )
----
-43

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

skipif mysql # not compatible
query II rowsort label-8194
SELECT - 34 AS col0, - COUNT ( * ) AS col2
----
-34
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT 92 - + COUNT( * ) * 18 + - - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-8195
SELECT 92 - + COUNT ( * ) * 18 + - - COUNT ( * ) AS col1
----
75

query I rowsort
SELECT 95 * + 19
----
1805

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT ALL 91 AS col1, + 84 + 8 * + SUM( + 54 ) AS col0
----
91
516

skipif mysql # not compatible
query II rowsort label-8197
SELECT ALL 91 AS col1, + 84 + 8 * + SUM ( + 54 ) AS col0
----
91
516

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT NULLIF ( + 73, + 87 * - COUNT( * ) + + CASE + 17 WHEN + 60 THEN 52 END DIV - 84 ) DIV - COALESCE ( 78, 78 + - ( - COUNT( * ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT NULLIF ( + 73, + 87 * - COUNT ( * ) + + CASE + 17 WHEN + 60 THEN 52 END / - 84 ) / - COALESCE ( 78, 78 + - ( - COUNT ( * ) ) )
----
0

query II rowsort
SELECT ALL 2 AS col2, - 38
----
2
-38

query II rowsort
SELECT DISTINCT 53 AS col1, + 65
----
53
65

query I rowsort
SELECT 30 * - 89 AS col1
----
-2670

query I rowsort
SELECT 36 - 64
----
-28

query I rowsort
SELECT 46 - + 3 + + 71
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT 20 + COUNT( * ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-8204
SELECT 20 + COUNT ( * ) AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT MAX( ALL + 37 ) + 85 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-8205
SELECT MAX ( ALL + 37 ) + 85 AS col0
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8206
SELECT CASE + COUNT( * ) WHEN - 31 THEN - 49 * - 27 ELSE + 22 + + ( + 51 + - 9 * + 99 ) END * CAST( + 24 + 91 AS SIGNED )
----
-94070

skipif mysql # not compatible
query I rowsort label-8206
SELECT CASE + COUNT ( * ) WHEN - 31 THEN - 49 * - 27 ELSE + 22 + + ( + 51 + - 9 * + 99 ) END * CAST ( + 24 + 91 AS INTEGER )
----
-94070

query II rowsort
SELECT - 22 AS col0, - 20 + 96 + 96
----
-22
172

query I rowsort
SELECT ALL 18 + + 19
----
37

query I rowsort
SELECT 35 + + 74 + + - 57
----
52

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT + 19 DIV - - 46
----
0

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

query I rowsort
SELECT ALL - ( - 4 ) + + 35 + - + 66 AS col2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8213
SELECT DISTINCT 72 + + CAST( 19 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT 72 + + CAST ( 19 AS INTEGER ) AS col2
----
91

query I rowsort
SELECT DISTINCT - 78 + 7 * 55 * - 57
----
-22023

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8215
SELECT MIN( ALL 6 ) / - - 50 + - - NULLIF ( - CASE - 42 WHEN - CAST( NULL AS SIGNED ) THEN MAX( ALL - 5 ) WHEN 23 * - MAX( CAST( NULL AS SIGNED ) * - 74 ) THEN 87 * - COUNT( * ) ELSE NULL END, + COUNT( ALL CASE - 16 WHEN 95 THEN 33 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT MIN ( ALL 6 ) / - - 50 + - - NULLIF ( - CASE - 42 WHEN - CAST ( NULL AS INTEGER ) THEN MAX ( ALL - 5 ) WHEN 23 * - MAX ( CAST ( NULL AS INTEGER ) * - 74 ) THEN 87 * - COUNT ( * ) ELSE NULL END, + COUNT ( ALL CASE - 16 WHEN 95 THEN 33 ELSE NULL END ) )
----
NULL

query I rowsort
SELECT DISTINCT + 45 + + - 57 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT 85 * + NULLIF ( - - COUNT( * ), 60 ) + - 46 * + COUNT( * ) + 9
----
48

skipif mysql # not compatible
query I rowsort label-8217
SELECT 85 * + NULLIF ( - - COUNT ( * ), 60 ) + - 46 * + COUNT ( * ) + 9
----
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT + - 80 * + + COUNT( * ) + + 94 col1
----
14

skipif mysql # not compatible
query I rowsort label-8219
SELECT + - 80 * + + COUNT ( * ) + + 94 col1
----
14

query I rowsort
SELECT DISTINCT 5 + + 51
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT ALL + 29 * CAST( 89 AS SIGNED )
----
2581

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + 29 * CAST ( 89 AS INTEGER )
----
2581

query I rowsort
SELECT ALL - 71 - - 17 AS col0
----
-54

query II rowsort
SELECT + + 0 AS col1, 93 AS col0
----
0
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT DISTINCT + COUNT( * ) * + + 70 + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + COUNT ( * ) * + + 70 + COUNT ( * ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8225
SELECT - 52 * - COALESCE ( - 60, ( + + 31 ) * + 11 + + 30, - CASE + COUNT( * ) WHEN + CASE 84 WHEN 68 * COUNT( ( + 46 ) ) THEN CAST( 43 AS SIGNED ) ELSE NULL END * + 11 THEN 63 END ) * + CAST( 19 AS SIGNED ) + 81 AS col2
----
-59199

skipif mysql # not compatible
query I rowsort label-8225
SELECT - 52 * - COALESCE ( - 60, ( + + 31 ) * + 11 + + 30, - CASE + COUNT ( * ) WHEN + CASE 84 WHEN 68 * COUNT ( ( + 46 ) ) THEN CAST ( 43 AS INTEGER ) ELSE NULL END * + 11 THEN 63 END ) * + CAST ( 19 AS INTEGER ) + 81 AS col2
----
-59199

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT ALL - MIN( DISTINCT + 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-8226
SELECT ALL - MIN ( DISTINCT + 36 )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8227
SELECT ( - COUNT( * ) ) + - 21 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8227
SELECT ( - COUNT ( * ) ) + - 21 AS col2
----
-22

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8229
SELECT 40 * 64, + CASE - 42 WHEN - COUNT( * ) * + 38 + 99 THEN NULL ELSE 39 + + COUNT( * ) END AS col0
----
2560
40

skipif mysql # not compatible
query II rowsort label-8229
SELECT 40 * 64, + CASE - 42 WHEN - COUNT ( * ) * + 38 + 99 THEN NULL ELSE 39 + + COUNT ( * ) END AS col0
----
2560
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8230
SELECT CAST( NULL AS SIGNED ) + COUNT( * ) * - - ( - 77 ) - - 84 * + 29 AS col1
----
NULL

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

query I rowsort
SELECT 30 * + 15 * - - 16 * 63
----
453600

query I rowsort
SELECT ALL - 5 * - ( + 20 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT 36 + - 93 * + 15 + + MIN( ALL 57 ) AS col2
----
-1302

skipif mysql # not compatible
query I rowsort label-8233
SELECT 36 + - 93 * + 15 + + MIN ( ALL 57 ) AS col2
----
-1302

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT ALL 90 DIV 69
----
1

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL 90 / 69
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT 20 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT 20 / - 93 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT 55 + + SUM( + + 20 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8236
SELECT 55 + + SUM ( + + 20 ) AS col2
----
75

query I rowsort
SELECT 29 * - 94 AS col1
----
-2726

query I rowsort
SELECT 65 * 42 AS col0
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT COALESCE ( 45, + 18 ) + + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT COALESCE ( 45, + 18 ) + + COUNT ( * )
----
46

query I rowsort
SELECT 55 * + - 96 AS col1
----
-5280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8241
SELECT ALL + CAST( NULL AS SIGNED ) + + SUM( DISTINCT + 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT ALL + CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT + 59 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8242
SELECT ALL 61 + - + COUNT( * ) col1, COUNT( * ) AS col2
----
60
1

skipif mysql # not compatible
query II rowsort label-8242
SELECT ALL 61 + - + COUNT ( * ) col1, COUNT ( * ) AS col2
----
60
1

query I rowsort
SELECT - + 7 col0
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8244
SELECT + + ( + 60 ) * - CAST( - COUNT( * ) AS SIGNED ) + + NULLIF ( 65, + 44 ) * + CASE + 10 * - 30 WHEN - 80 * - 53 THEN 8 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8244
SELECT + + ( + 60 ) * - CAST ( - COUNT ( * ) AS INTEGER ) + + NULLIF ( 65, + 44 ) * + CASE + 10 * - 30 WHEN - 80 * - 53 THEN 8 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8245
SELECT 43 * - 39 AS col2, COALESCE ( + 90, - 45, COUNT( * ) * - + COALESCE ( 90, 59 DIV - 79 ) + + 40 ) * - 91 + CAST( 3 AS SIGNED )
----
-1677
-8187

skipif mysql # not compatible
query II rowsort label-8245
SELECT 43 * - 39 AS col2, COALESCE ( + 90, - 45, COUNT ( * ) * - + COALESCE ( 90, 59 / - 79 ) + + 40 ) * - 91 + CAST ( 3 AS INTEGER )
----
-1677
-8187

query I rowsort
SELECT ALL + 33 * + 81 - - 75
----
2748

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8248
SELECT DISTINCT - COUNT( * ) / - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 7 * - 22 - - 94 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT - COUNT ( * ) / - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - 7 * - 22 - - 94 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT + + COUNT( * ) * + 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-8250
SELECT + + COUNT ( * ) * + 95 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8251
SELECT ALL + CASE COALESCE ( 2, - + 68, CAST( - ( + - 81 ) AS SIGNED ), + 31 * + 10 + - 6 ) WHEN 18 - + 77 THEN NULL ELSE 77 END DIV ( - 90 + + 71 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + CASE COALESCE ( 2, - + 68, CAST ( - ( + - 81 ) AS INTEGER ), + 31 * + 10 + - 6 ) WHEN 18 - + 77 THEN NULL ELSE 77 END / ( - 90 + + 71 ) AS col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8252
SELECT ALL - - 75 * 78 - - - 80 + + MAX( - 73 ) col1, 63 DIV - + 72 + + 12 AS col2
----
5697
12

skipif mysql # not compatible
query II rowsort label-8252
SELECT ALL - - 75 * 78 - - - 80 + + MAX ( - 73 ) col1, 63 / - + 72 + + 12 AS col2
----
5697
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8253
SELECT + 3 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8253
SELECT + 3 / - 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT ALL 9 * - 59 * - CAST( + + 29 AS SIGNED )
----
15399

skipif mysql # not compatible
query I rowsort label-8254
SELECT ALL 9 * - 59 * - CAST ( + + 29 AS INTEGER )
----
15399

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8256
SELECT ALL - 36 DIV 78 col2
----
0

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - 36 / 78 col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT - NULLIF ( + + COUNT( * ), + - 66 + 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8258
SELECT - NULLIF ( + + COUNT ( * ), + - 66 + 29 ) AS col0
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8260
SELECT ALL COALESCE ( + 52, + 0 * - COUNT( * ) / - 13 * - 15 ) + - 93 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL COALESCE ( + 52, + 0 * - COUNT ( * ) / - 13 * - 15 ) + - 93 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + 48 - - + 27
----
75

query I rowsort
SELECT - 13 * + 32 AS col1
----
-416

query I rowsort
SELECT + 25 + - 91 + - 90
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL 95 + + - NULLIF ( NULLIF ( - 85, + - 72 + + 59 / 60 * + 17 ), COUNT( * ) ) AS col2
----
180

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL 95 + + - NULLIF ( NULLIF ( - 85, + - 72 + + 59 / 60 * + 17 ), COUNT ( * ) ) AS col2
----
180

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

skipif mysql # not compatible
query I rowsort label-8265
SELECT + COUNT ( * ) + - + MIN ( + 50 ) + - + 62 AS col1
----
-111

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

query II rowsort
SELECT DISTINCT 18 AS col2, 64 + - 68
----
18
-4

query I rowsort
SELECT + 77 + + 11 + + 20 AS col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8269
SELECT 98, - COUNT( * ) * - 98 + 40 AS col0
----
98
138

skipif mysql # not compatible
query II rowsort label-8269
SELECT 98, - COUNT ( * ) * - 98 + 40 AS col0
----
98
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL 89 * + 76 - + ( MAX( - 75 ) ) AS col1
----
6839

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL 89 * + 76 - + ( MAX ( - 75 ) ) AS col1
----
6839

query I rowsort
SELECT - - 25 + - 88 * COALESCE ( 61, - - 39 ) * + 39
----
-209327

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL + COUNT( * ) + 85 + - ( CASE 62 WHEN 6 THEN + CASE 75 WHEN NULLIF ( + COUNT( * ), - 43 - - 97 ) THEN - 11 + MIN( ALL + 35 ) END WHEN - 79 THEN - COUNT( * ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL + COUNT ( * ) + 85 + - ( CASE 62 WHEN 6 THEN + CASE 75 WHEN NULLIF ( + COUNT ( * ), - 43 - - 97 ) THEN - 11 + MIN ( ALL + 35 ) END WHEN - 79 THEN - COUNT ( * ) ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8273
SELECT + + NULLIF ( ( + 17 ), + 83 ) * - CAST( + + 74 AS SIGNED ) AS col2, + ( + + CASE 4 WHEN 66 + 63 THEN NULL WHEN 46 * - 24 THEN - CAST( + 16 AS DECIMAL ) * + COUNT( * ) END ) * 44 - + CASE + MIN( 99 ) WHEN - 93 THEN + 20 ELSE + 66 END
----
-1258
NULL

skipif mysql # not compatible
query II rowsort label-8273
SELECT + + NULLIF ( ( + 17 ), + 83 ) * - CAST ( + + 74 AS INTEGER ) AS col2, + ( + + CASE 4 WHEN 66 + 63 THEN NULL WHEN 46 * - 24 THEN - CAST ( + 16 AS REAL ) * + COUNT ( * ) END ) * 44 - + CASE + MIN ( 99 ) WHEN - 93 THEN + 20 ELSE + 66 END
----
-1258
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8274
SELECT - CASE WHEN NULL IS NOT NULL THEN + CAST( NULL AS DECIMAL ) ELSE + 66 + + + CAST( NULL AS DECIMAL ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT - CASE WHEN NULL IS NOT NULL THEN + CAST ( NULL AS REAL ) ELSE + 66 + + + CAST ( NULL AS REAL ) END col1
----
NULL

query I rowsort
SELECT ALL + 45 - + 89 AS col1
----
-44

query I rowsort
SELECT - 64 * + 7
----
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT + CASE + 33 WHEN - 0 * - 52 / - - COUNT( * ) THEN - 44 * - 96 / - SUM( ALL 96 ) * + 87 - - 6 WHEN - 71 - - 21 THEN 38 + - 81 * 68 ELSE - 0 END col0
----
0

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + CASE + 33 WHEN - 0 * - 52 / - - COUNT ( * ) THEN - 44 * - 96 / - SUM ( ALL 96 ) * + 87 - - 6 WHEN - 71 - - 21 THEN 38 + - 81 * 68 ELSE - 0 END col0
----
0

query II rowsort
SELECT + COALESCE ( 36, 54 ), + CASE - - 86 WHEN - COALESCE ( 37, 94 ) * + 60 THEN NULL WHEN - 76 * - 84 THEN - 32 + 32 * - 58 END - + 44 * 52 AS col2
----
36
NULL

query I rowsort
SELECT - + 23 * + - 84
----
1932

query I rowsort
SELECT - - COALESCE ( 8, - - 26 + 44 + + - 26 + 56 + + 94 ) + + + 67 * 46
----
3090

query II rowsort
SELECT ALL + 27, 48 * + 47 AS col1
----
27
2256

query II rowsort
SELECT + - 14 AS col2, 5
----
-14
5

query I rowsort
SELECT - + 74 + - 93 + 76 AS col2
----
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + CASE - + 92 WHEN - COUNT( * ) * - COUNT( * ) * + + 22 THEN NULL ELSE - 3 + + COUNT( * ) END * 55
----
-110

skipif mysql # not compatible
query I rowsort label-8285
SELECT + CASE - + 92 WHEN - COUNT ( * ) * - COUNT ( * ) * + + 22 THEN NULL ELSE - 3 + + COUNT ( * ) END * 55
----
-110

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8286
SELECT + 37, - 59 * - - 9 + 44 + + - CAST( NULL AS SIGNED ) AS col1
----
37
NULL

skipif mysql # not compatible
query II rowsort label-8286
SELECT + 37, - 59 * - - 9 + 44 + + - CAST ( NULL AS INTEGER ) AS col1
----
37
NULL

query I rowsort
SELECT ALL + - 64 col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT - - ( - - MAX( 70 ) ) * 83 + 45
----
5855

skipif mysql # not compatible
query I rowsort label-8288
SELECT - - ( - - MAX ( 70 ) ) * 83 + 45
----
5855

query I rowsort
SELECT ALL + NULLIF ( + - 34, 29 ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8290
SELECT ALL - MAX( DISTINCT + 25 ) * - - 84 col2
----
-2100

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL - MAX ( DISTINCT + 25 ) * - - 84 col2
----
-2100

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

query I rowsort
SELECT DISTINCT - 88 * + 90 + - + 0 + + 92 AS col0
----
-7828

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

query I rowsort
SELECT 41 * - 71 + - + 43
----
-2954

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT + COUNT( * ) * - 74 + CASE 13 WHEN - CAST( + COUNT( * ) AS SIGNED ) THEN - - 10 WHEN 44 THEN NULL ELSE + 58 * + 93 + - 41 END
----
5279

skipif mysql # not compatible
query I rowsort label-8296
SELECT + COUNT ( * ) * - 74 + CASE 13 WHEN - CAST ( + COUNT ( * ) AS INTEGER ) THEN - - 10 WHEN 44 THEN NULL ELSE + 58 * + 93 + - 41 END
----
5279

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

skipif mysql # not compatible
query I rowsort label-8297
SELECT + COUNT ( * ) + + - 27 AS col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT + 1 * - CASE + NULLIF ( 10, - - 84 ) WHEN + - 90 * + + ( + - 62 ) * + COUNT( * ) + + COUNT( * ) * - 54 THEN NULL ELSE + 83 + 43 * - 5 END * 28 AS col2
----
3696

skipif mysql # not compatible
query I rowsort label-8298
SELECT + 1 * - CASE + NULLIF ( 10, - - 84 ) WHEN + - 90 * + + ( + - 62 ) * + COUNT ( * ) + + COUNT ( * ) * - 54 THEN NULL ELSE + 83 + 43 * - 5 END * 28 AS col2
----
3696

query I rowsort
SELECT ALL - 28 * - 1 + + + 25
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT - ( MAX( ALL + - 88 ) ) col1
----
88

skipif mysql # not compatible
query I rowsort label-8300
SELECT - ( MAX ( ALL + - 88 ) ) col1
----
88

query I rowsort
SELECT DISTINCT 18 + 83
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8302
SELECT - CASE - COUNT( * ) WHEN 95 THEN NULL WHEN + CAST( + + CASE - - NULLIF ( + 77, + 4 + + 94 ) WHEN + ( 25 ) + + ( - CAST( - COUNT( * ) AS SIGNED ) + - CASE 13 WHEN 39 THEN 34 * COALESCE ( + 85 / - 73, NULLIF ( - 55, + 8 ) * + 74 ) WHEN 96 THEN NULL END ) * + 90 THEN 49 + 61 * 81 WHEN CAST( + 96 AS SIGNED ) THEN NULL END AS SIGNED ) THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8302
SELECT - CASE - COUNT ( * ) WHEN 95 THEN NULL WHEN + CAST ( + + CASE - - NULLIF ( + 77, + 4 + + 94 ) WHEN + ( 25 ) + + ( - CAST ( - COUNT ( * ) AS INTEGER ) + - CASE 13 WHEN 39 THEN 34 * COALESCE ( + 85 / - 73, NULLIF ( - 55, + 8 ) * + 74 ) WHEN 96 THEN NULL END ) * + 90 THEN 49 + 61 * 81 WHEN CAST ( + 96 AS INTEGER ) THEN NULL END AS INTEGER ) THEN + COUNT ( * ) END
----
NULL

query I rowsort
SELECT + ( - 62 ) + + 27
----
-35

query I rowsort
SELECT ALL 53 - + 40
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-8305
SELECT - COALESCE ( + 82, - ( 66 ) * - 34, + - ( - 19 ) ) col1, 48 + 68 * + MAX( DISTINCT 96 ) AS col2
----
-82
6576

skipif mysql # not compatible
query II rowsort label-8305
SELECT - COALESCE ( + 82, - ( 66 ) * - 34, + - ( - 19 ) ) col1, 48 + 68 * + MAX ( DISTINCT 96 ) AS col2
----
-82
6576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8306
SELECT + 26 + 66 + + + 25 + + 73 + - 98 DIV + 36 * + + COUNT( - 94 ) - + 83 + COUNT( * ) * - 90 DIV - 15 AS col1
----
111

skipif mysql # not compatible
query I rowsort label-8306
SELECT + 26 + 66 + + + 25 + + 73 + - 98 / + 36 * + + COUNT ( - 94 ) - + 83 + COUNT ( * ) * - 90 / - 15 AS col1
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT + ( 80 ) * - 82 + 73 + + SUM( DISTINCT 62 ) AS col1
----
-6425

skipif mysql # not compatible
query I rowsort label-8307
SELECT + ( 80 ) * - 82 + 73 + + SUM ( DISTINCT 62 ) AS col1
----
-6425

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT + COUNT( * ) * - - NULLIF ( + COUNT( * ), + 90 * + ( + COUNT( * ) ) + - 52 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8308
SELECT + COUNT ( * ) * - - NULLIF ( + COUNT ( * ), + 90 * + ( + COUNT ( * ) ) + - 52 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT SUM( - 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT SUM ( - 55 ) AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-8310
SELECT + 28 DIV - 22
----
-1

skipif mysql # not compatible
query I rowsort label-8310
SELECT + 28 / - 22
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8311
SELECT 93 * - - 58 col2, COUNT( * ) * + - 19 col1
----
5394
-19

skipif mysql # not compatible
query II rowsort label-8311
SELECT 93 * - - 58 col2, COUNT ( * ) * + - 19 col1
----
5394
-19

query I rowsort
SELECT + 72 + + - 73 * + + 68 AS col0
----
-4892

query II rowsort
SELECT DISTINCT + 14 * + - 36 + + COALESCE ( + 52, 78 ), 48 + + 96 col0
----
-452
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT - 39 * COUNT( + 76 ) + - - 22 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT - 39 * COUNT ( + 76 ) + - - 22 AS col1
----
-17

query I rowsort
SELECT ALL + + 37 * + NULLIF ( + 7, - + 12 + + 14 )
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT + 48 + COALESCE ( - - COUNT( * ), 95, + 76 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT + 48 + COALESCE ( - - COUNT ( * ), 95, + 76 ) AS col1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8317
SELECT ALL - 37 * + 19, + 70 + ( - CAST( - + 82 AS SIGNED ) ) AS col2
----
-703
152

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL - 37 * + 19, + 70 + ( - CAST ( - + 82 AS INTEGER ) ) AS col2
----
-703
152

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

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

query II rowsort
SELECT ALL + 20 + - - 76, 42 col2
----
96
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8320
SELECT + 30, + 5 * + COUNT( * ) * - COUNT( * ) DIV 59 AS col1
----
30
0

skipif mysql # not compatible
query II rowsort label-8320
SELECT + 30, + 5 * + COUNT ( * ) * - COUNT ( * ) / 59 AS col1
----
30
0

query I rowsort
SELECT DISTINCT + 91 + 22 AS col2
----
113

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

skipif mysql # not compatible
query I rowsort label-8322
SELECT DISTINCT - ( COUNT ( * ) ) + - - 7 / + + 1 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT DISTINCT - ( NULLIF ( + 63, + 46 / - + NULLIF ( CASE 80 WHEN 62 + - - 71 + - + 12 THEN + COUNT( 11 ) * - 65 ELSE NULL END, COUNT( * ) * COUNT( * ) ) * 20 ) ) col0
----
-63

skipif mysql # not compatible
query I rowsort label-8323
SELECT DISTINCT - ( NULLIF ( + 63, + 46 / - + NULLIF ( CASE 80 WHEN 62 + - - 71 + - + 12 THEN + COUNT ( 11 ) * - 65 ELSE NULL END, COUNT ( * ) * COUNT ( * ) ) * 20 ) ) col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT - ( - + 22 ) * 45 * + ( 25 ) * - + MAX( ALL + + 96 ) AS col1
----
-2376000

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT - ( - + 22 ) * 45 * + ( 25 ) * - + MAX ( ALL + + 96 ) AS col1
----
-2376000

query I rowsort
SELECT ALL + 46 + + + 82
----
128

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

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

query I rowsort
SELECT DISTINCT + 1 * 98 AS col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8328
SELECT ALL - CAST( NULL AS SIGNED ) + 34 - - 71 + - 26 * - 47 * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - CAST ( NULL AS INTEGER ) + 34 - - 71 + - 26 * - 47 * + 49
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8329
SELECT 61 - - 61 DIV - 41 - + 74 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-8329
SELECT 61 - - 61 / - 41 - + 74 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8330
SELECT ALL + 84 * + ( - - 96 ) * + COUNT( * ) + + CAST( - 83 AS SIGNED )
----
7981

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL + 84 * + ( - - 96 ) * + COUNT ( * ) + + CAST ( - 83 AS INTEGER )
----
7981

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT DISTINCT - 29 - - COUNT( * ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT - 29 - - COUNT ( * ) AS col2
----
-28

query I rowsort
SELECT ALL + 75 * - 68 col2
----
-5100

query I rowsort
SELECT 45 + - NULLIF ( - 85, + 24 - - 86 ) - + + 78 * - + 72 AS col0
----
5746

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL - 11 - + COUNT( + 57 ) + - - COALESCE ( - COUNT( * ), + - 25, - 40 )
----
-13

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - 11 - + COUNT ( + 57 ) + - - COALESCE ( - COUNT ( * ), + - 25, - 40 )
----
-13

query I rowsort
SELECT + 19 * - ( + 55 ) + + + 80 AS col1
----
-965

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT 61 + - ( + SUM( 29 ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8336
SELECT 61 + - ( + SUM ( 29 ) ) AS col2
----
32

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

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

query I rowsort
SELECT + 77 + 27 - + + 80 AS col1
----
24

query I rowsort
SELECT ALL + 37 * - + 4
----
-148

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT DISTINCT + - 73 DIV - + 2 + 82 - 85
----
33

skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT + - 73 / - + 2 + 82 - 85
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8341
SELECT 28 * + ( - 96 ) + COUNT( * ) - SUM( + ( + + 29 ) ) + + - 50 + - + 51 DIV - + 79
----
-2766

skipif mysql # not compatible
query I rowsort label-8341
SELECT 28 * + ( - 96 ) + COUNT ( * ) - SUM ( + ( + + 29 ) ) + + - 50 + - + 51 / - + 79
----
-2766

query I rowsort
SELECT DISTINCT + 35 * - + 12
----
-420

query I rowsort
SELECT ALL - 18 col2
----
-18

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8345
SELECT - 4 AS col0, + COALESCE ( - CASE - + 6 WHEN + 8 * - 4 + - CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN - COUNT( * ) THEN + - 64 END, 46 * + CASE 21 WHEN - ( 70 ) + 13 THEN NULL WHEN + 35 THEN 26 + 56 ELSE NULL END ) AS col0
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-8345
SELECT - 4 AS col0, + COALESCE ( - CASE - + 6 WHEN + 8 * - 4 + - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN - COUNT ( * ) THEN + - 64 END, 46 * + CASE 21 WHEN - ( 70 ) + 13 THEN NULL WHEN + 35 THEN 26 + 56 ELSE NULL END ) AS col0
----
-4
NULL

query I rowsort
SELECT ALL 96 * 26 AS col2
----
2496

query I rowsort
SELECT 8 * + CASE 28 WHEN 51 THEN NULL ELSE + 32 + - 95 END
----
-504

query I rowsort
SELECT + 35 * + - ( 15 )
----
-525

query I rowsort
SELECT DISTINCT + 85 * - 98 AS col2
----
-8330

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

query I rowsort
SELECT + 2 * 43 AS col0
----
86

query I rowsort
SELECT ( 55 ) + + 52 * 14
----
783

onlyif mysql # aggregate syntax: 
query III rowsort label-8353
SELECT MAX( + 72 ) AS col1, + 82 * + 66, - 66 AS col1
----
72
5412
-66

skipif mysql # not compatible
query III rowsort label-8353
SELECT MAX ( + 72 ) AS col1, + 82 * + 66, - 66 AS col1
----
72
5412
-66

query I rowsort
SELECT 49 + - 47 AS col0
----
2

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

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

query I rowsort
SELECT 78 * + 83 + + - 62
----
6412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT CAST( NULL AS SIGNED ) * + ( - 9 ) * - 81 / + COUNT( DISTINCT - 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT CAST ( NULL AS INTEGER ) * + ( - 9 ) * - 81 / + COUNT ( DISTINCT - 84 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8358
SELECT - 97 * 68 + + 1 * + + CAST( NULL AS SIGNED ) * - + ( - 27 ) AS col2, 92 + - ( + + COUNT( ALL + 22 ) ) * + 75
----
NULL
17

skipif mysql # not compatible
query II rowsort label-8358
SELECT - 97 * 68 + + 1 * + + CAST ( NULL AS INTEGER ) * - + ( - 27 ) AS col2, 92 + - ( + + COUNT ( ALL + 22 ) ) * + 75
----
NULL
17

query I rowsort
SELECT DISTINCT + 42 + 87 AS col2
----
129

query I rowsort
SELECT DISTINCT 25 * - 76 AS col0
----
-1900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8361
SELECT ALL CASE 25 WHEN - CAST( + + 57 AS SIGNED ) THEN + 20 END * 82 * - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8361
SELECT ALL CASE 25 WHEN - CAST ( + + 57 AS INTEGER ) THEN + 20 END * 82 * - 79
----
NULL

query II rowsort
SELECT 8, + 39 AS col1
----
8
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8363
SELECT DISTINCT 77 - + CASE 4 WHEN - 29 THEN MIN( + 43 ) WHEN - 6 THEN NULL ELSE - CAST( NULL AS SIGNED ) + - + 31 * + + 63 * - + SUM( DISTINCT - 64 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT 77 - + CASE 4 WHEN - 29 THEN MIN ( + 43 ) WHEN - 6 THEN NULL ELSE - CAST ( NULL AS INTEGER ) + - + 31 * + + 63 * - + SUM ( DISTINCT - 64 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT + 52 * 14 + + 17 * + 51 + - - COUNT( * ) * 56 * NULLIF ( + 42, + + COALESCE ( - 32, - + 22 ) )
----
3947

skipif mysql # not compatible
query I rowsort label-8364
SELECT + 52 * 14 + + 17 * + 51 + - - COUNT ( * ) * 56 * NULLIF ( + 42, + + COALESCE ( - 32, - + 22 ) )
----
3947

query I rowsort
SELECT 64 * - + 60 AS col2
----
-3840

query I rowsort
SELECT 99 + - - 50
----
149

onlyif mysql # aggregate syntax: 
query II rowsort label-8367
SELECT + 73 AS col2, COUNT( ALL + - 6 ) + + + 5 AS col1
----
73
6

skipif mysql # not compatible
query II rowsort label-8367
SELECT + 73 AS col2, COUNT ( ALL + - 6 ) + + + 5 AS col1
----
73
6

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

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

query I rowsort
SELECT DISTINCT + 44 * + 67 * - + 4 * 25 col0
----
-294800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT ALL + 8 * - ( 32 ) * - + ( - + 36 ) * - NULLIF ( + + 40, + + 24 ) + + ( + CASE 23 WHEN 21 THEN - 58 * ( 52 ) + COUNT( * ) * CAST( + 30 * + COALESCE ( 92, - 81 - + 32 ) AS SIGNED ) END ) - - CAST( + 70 + 69 AS SIGNED ) * - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + 8 * - ( 32 ) * - + ( - + 36 ) * - NULLIF ( + + 40, + + 24 ) + + ( + CASE 23 WHEN 21 THEN - 58 * ( 52 ) + COUNT ( * ) * CAST ( + 30 * + COALESCE ( 92, - 81 - + 32 ) AS INTEGER ) END ) - - CAST ( + 70 + 69 AS INTEGER ) * - 8
----
NULL

query I rowsort
SELECT - 74 * + 52 + 89 AS col1
----
-3759

query I rowsort
SELECT ALL + 97 * - 26 * CASE - + 77 WHEN + 61 - COALESCE ( - 32, + 34, - 11 ) THEN - 26 END + - 68 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT DISTINCT CAST( + COUNT( - + 57 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT CAST ( + COUNT ( - + 57 ) AS INTEGER ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8374
SELECT DISTINCT + CASE + 66 WHEN - 60 THEN 14 - 36 ELSE + 75 * - 17 + + ( - 99 ) END * - SUM( ALL CASE + 81 WHEN - COALESCE ( - 8, 42 * ( 72 ), + ( + CAST( - 50 AS SIGNED ) ) ) THEN NULL ELSE 21 END ) AS col2
----
28854

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT + CASE + 66 WHEN - 60 THEN 14 - 36 ELSE + 75 * - 17 + + ( - 99 ) END * - SUM ( ALL CASE + 81 WHEN - COALESCE ( - 8, 42 * ( 72 ), + ( + CAST ( - 50 AS INTEGER ) ) ) THEN NULL ELSE 21 END ) AS col2
----
28854

query II rowsort
SELECT ALL + 87 AS col0, - 22 AS col2
----
87
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - + 36 * + + COUNT( * ) + - 65
----
-101

skipif mysql # not compatible
query I rowsort label-8376
SELECT - + 36 * + + COUNT ( * ) + - 65
----
-101

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

query II rowsort
SELECT - 10 AS col0, 97
----
-10
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT ALL + CAST( 93 AS SIGNED ) + - - 16 * + + 25
----
493

skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL + CAST ( 93 AS INTEGER ) + - - 16 * + + 25
----
493

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT - CAST( - 29 AS SIGNED ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-8380
SELECT - CAST ( - 29 AS INTEGER ) AS col2
----
29

query I rowsort
SELECT ALL - - 95 + + - 56 col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8382
SELECT ALL 5, - COUNT( * ) + 73 AS col0
----
5
72

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL 5, - COUNT ( * ) + 73 AS col0
----
5
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL 16 / + - MAX( + 24 ) * - 83 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 16 / + - MAX ( + 24 ) * - 83 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT - 86 DIV + + 79 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8384
SELECT - 86 / + + 79 AS col0
----
-1

query I rowsort
SELECT DISTINCT - 53 + 48
----
-5

query II rowsort
SELECT ALL - 2, 60 AS col2
----
-2
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8387
SELECT ALL - 20 + + COALESCE ( - 41, + - CASE SUM( - ( - - 12 ) ) WHEN + 33 THEN NULL WHEN + - 42 THEN 39 * 72 - 58 + + 22 END DIV + 18 + 28, - COUNT( * ), 52 ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL - 20 + + COALESCE ( - 41, + - CASE SUM ( - ( - - 12 ) ) WHEN + 33 THEN NULL WHEN + - 42 THEN 39 * 72 - 58 + + 22 END / + 18 + 28, - COUNT ( * ), 52 ) AS col2
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8388
SELECT DISTINCT + 62 + + + CAST( + 48 AS SIGNED )
----
110

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT + 62 + + + CAST ( + 48 AS INTEGER )
----
110

onlyif mysql # aggregate syntax: 
query II rowsort label-8389
SELECT ALL + SUM( ALL 5 ) + + - MIN( ALL 56 ), + 11 AS col1
----
-51
11

skipif mysql # not compatible
query II rowsort label-8389
SELECT ALL + SUM ( ALL 5 ) + + - MIN ( ALL 56 ), + 11 AS col1
----
-51
11

query II rowsort
SELECT 44 AS col1, - 95
----
44
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-8391
SELECT DISTINCT 6 AS col0, + MIN( - 17 ) + - MIN( DISTINCT 77 ) AS col2
----
6
-94

skipif mysql # not compatible
query II rowsort label-8391
SELECT DISTINCT 6 AS col0, + MIN ( - 17 ) + - MIN ( DISTINCT 77 ) AS col2
----
6
-94

query I rowsort
SELECT - 70 + 72
----
2

query I rowsort
SELECT DISTINCT ( 30 ) * + ( + - ( - 21 ) ) * + - 24 AS col1
----
-15120

query I rowsort
SELECT ALL - ( - 61 ) * - 92 + - + 74 AS col2
----
-5686

query II rowsort
SELECT ( - 83 ), - 11 + + 91 AS col2
----
-83
80

query I rowsort
SELECT + CASE + 89 WHEN 71 THEN + - 78 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT ( + ( - COALESCE ( + 75, - + COUNT( * ) * - + 28 * - 1 * + 44 ) ) ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-8397
SELECT ( + ( - COALESCE ( + 75, - + COUNT ( * ) * - + 28 * - 1 * + 44 ) ) ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT COUNT( DISTINCT + 72 ) * - ( - 76 ) - - 98 + - + 60 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-8398
SELECT COUNT ( DISTINCT + 72 ) * - ( - 76 ) - - 98 + - + 60 AS col2
----
114

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT + CASE 42 WHEN + 56 - + 86 THEN AVG ( 63 ) * - - COALESCE ( + 24, ( ( - COUNT( * ) ) ), CAST( NULL AS SIGNED ) * + 56 + COUNT( * ) ) WHEN + 48 THEN + 15 * 60 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT + CASE 42 WHEN + 56 - + 86 THEN AVG ( 63 ) * - - COALESCE ( + 24, ( ( - COUNT ( * ) ) ), CAST ( NULL AS INTEGER ) * + 56 + COUNT ( * ) ) WHEN + 48 THEN + 15 * 60 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8401
SELECT CASE - CAST( NULL AS DECIMAL ) WHEN - - 64 + - - CAST( NULL AS SIGNED ) * - + CASE 62 WHEN 8 THEN 63 END * - - COUNT( * ) * + 58 * + + 74 + - 75 THEN COUNT( * ) + 24 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT CASE - CAST ( NULL AS REAL ) WHEN - - 64 + - - CAST ( NULL AS INTEGER ) * - + CASE 62 WHEN 8 THEN 63 END * - - COUNT ( * ) * + 58 * + + 74 + - 75 THEN COUNT ( * ) + 24 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT 86 * 49 - COUNT( * ) + + 50 * + COUNT( * ) * + - 23 col1
----
3063

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT 86 * 49 - COUNT ( * ) + + 50 * + COUNT ( * ) * + - 23 col1
----
3063

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8403
SELECT ALL 36 DIV + CASE - 28 WHEN - + CAST( NULL AS SIGNED ) + - 35 THEN NULL ELSE + 70 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL 36 / + CASE - 28 WHEN - + CAST ( NULL AS INTEGER ) + - 35 THEN NULL ELSE + 70 END AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT CASE - 35 WHEN - COUNT( * ) * - COALESCE ( - + 10, + + 76 ) * COUNT( + 57 ) + + + 41 + - 52 + + - COUNT( * ) THEN - - 51 WHEN - 47 + 0 THEN - 33 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT CASE - 35 WHEN - COUNT ( * ) * - COALESCE ( - + 10, + + 76 ) * COUNT ( + 57 ) + + + 41 + - 52 + + - COUNT ( * ) THEN - - 51 WHEN - 47 + 0 THEN - 33 ELSE NULL END
----
NULL

query I rowsort
SELECT + 48 * + - 29 - + 31 col0
----
-1423

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT + CASE - COUNT( ALL 7 ) WHEN + 98 * + - COUNT( * ) THEN + - 90 / - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8407
SELECT + CASE - COUNT ( ALL 7 ) WHEN + 98 * + - COUNT ( * ) THEN + - 90 / - 29 ELSE NULL END
----
NULL

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

query I rowsort
SELECT + 11 * 50 - + 34 AS col2
----
516

onlyif mysql # aggregate syntax: 
query I rowsort label-8410
SELECT + 95 / + ( + - CASE + 74 WHEN + 51 THEN + NULLIF ( - + SUM( ALL - COALESCE ( - 29, 41 * + + 72, + 75 ) ), - AVG ( 41 ) * 32 + 98 ) * + 15 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT + 95 / + ( + - CASE + 74 WHEN + 51 THEN + NULLIF ( - + SUM ( ALL - COALESCE ( - 29, 41 * + + 72, + 75 ) ), - AVG ( 41 ) * 32 + 98 ) * + 15 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8411
SELECT - 1 * + 53 DIV + - 93 * - - 19 * 27 * + - 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT - 1 * + 53 / + - 93 * - - 19 * 27 * + - 67 AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + MAX( - 35 ) * 94 * 62 AS col2
----
-203980

skipif mysql # not compatible
query I rowsort label-8413
SELECT + MAX ( - 35 ) * 94 * 62 AS col2
----
-203980

query I rowsort
SELECT DISTINCT 33 * + 23
----
759

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT - MIN( ALL + 37 ) * - - 33
----
-1221

skipif mysql # not compatible
query I rowsort label-8415
SELECT - MIN ( ALL + 37 ) * - - 33
----
-1221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8416
SELECT ALL - CAST( 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - CAST ( 36 AS INTEGER )
----
-36

query II rowsort
SELECT ALL COALESCE ( - 29, + 87 - + + 86 * + 71 * 0, - 14 * - 28 ) AS col1, 39 AS col1
----
-29
39

query I rowsort
SELECT + - 71 + 37 * - 94 AS col2
----
-3549

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT - + 90 * - + COUNT( + CAST( + NULLIF ( CAST( - - 52 AS SIGNED ), - + 65 ) AS SIGNED ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-8420
SELECT - + 90 * - + COUNT ( + CAST ( + NULLIF ( CAST ( - - 52 AS INTEGER ), - + 65 ) AS INTEGER ) ) AS col0
----
90

query I rowsort
SELECT ALL + - ( - 20 ) + - 3
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-8422
SELECT - 61 + + + COUNT( * ), + ( COUNT( * ) ) * + 73 AS col0
----
-60
73

skipif mysql # not compatible
query II rowsort label-8422
SELECT - 61 + + + COUNT ( * ), + ( COUNT ( * ) ) * + 73 AS col0
----
-60
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT - CAST( - 6 AS SIGNED ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT - CAST ( - 6 AS INTEGER ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL - - 68 + 56 * MIN( - 98 )
----
-5420

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL - - 68 + 56 * MIN ( - 98 )
----
-5420

query I rowsort
SELECT - 75 + + NULLIF ( + 64, - 96 )
----
-11

query I rowsort
SELECT ALL 44 + + 31 + - 50 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - 88 + 12 + 32 - + 48 + + 98 * 1 + - + MIN( - 13 )
----
19

skipif mysql # not compatible
query I rowsort label-8427
SELECT - 88 + 12 + 32 - + 48 + + 98 * 1 + - + MIN ( - 13 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT MIN( DISTINCT - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-8428
SELECT MIN ( DISTINCT - 35 )
----
-35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT - + 89 + 53 + - 47 DIV - - 12 - + 96 col0
----
-135

skipif mysql # not compatible
query I rowsort label-8430
SELECT - + 89 + 53 + - 47 / - - 12 - + 96 col0
----
-135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT - - COUNT( * ) + - 78 DIV - 23 + - 31 AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8431
SELECT - - COUNT ( * ) + - 78 / - 23 + - 31 AS col2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT ALL - 60 - COUNT( + 25 ) * - 83
----
23

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL - 60 - COUNT ( + 25 ) * - 83
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8433
SELECT - 9 * - COUNT( * ) DIV 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8433
SELECT - 9 * - COUNT ( * ) / 34 AS col2
----
0

query I rowsort
SELECT + 14 * - 38 * - 65 * - + 58
----
-2005640

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT DISTINCT - 33 DIV 97
----
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT DISTINCT - 33 / 97
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - 61 + + COUNT( * ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-8436
SELECT - 61 + + COUNT ( * ) AS col2
----
-60

query I rowsort
SELECT - 79 * + + 34
----
-2686

query I rowsort
SELECT DISTINCT 90 * + 46 * - 21
----
-86940

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

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT - 42 / COUNT ( * ) AS col2
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8440
SELECT ALL + CAST( NULL AS DECIMAL ) col2, - ( 56 )
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-8440
SELECT ALL + CAST ( NULL AS REAL ) col2, - ( 56 )
----
NULL
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8441
SELECT + ( CASE CASE + 98 WHEN + AVG ( ALL + + ( 8 ) ) THEN - + 15 ELSE NULL END WHEN + 60 * + ( + - NULLIF ( - 43, 0 * - 96 + - 52 ) ) * CAST( NULL AS SIGNED ) + 88 THEN + CAST( NULL AS SIGNED ) * 87 + + 49 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8441
SELECT + ( CASE CASE + 98 WHEN + AVG ( ALL + + ( 8 ) ) THEN - + 15 ELSE NULL END WHEN + 60 * + ( + - NULLIF ( - 43, 0 * - 96 + - 52 ) ) * CAST ( NULL AS INTEGER ) + 88 THEN + CAST ( NULL AS INTEGER ) * 87 + + 49 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + + 56, + + 14, - 8 )
----
56

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT CAST( - - 64 AS SIGNED )
----
64

skipif mysql # not compatible
query I rowsort label-8446
SELECT CAST ( - - 64 AS INTEGER )
----
64

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT ALL - 60 AS col2, MIN( DISTINCT + + 32 ) * + 55 AS col0
----
-60
1760

skipif mysql # not compatible
query II rowsort label-8449
SELECT ALL - 60 AS col2, MIN ( DISTINCT + + 32 ) * + 55 AS col0
----
-60
1760

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8451
SELECT ALL ( 77 ) + - - CAST( - + 64 AS SIGNED ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL ( 77 ) + - - CAST ( - + 64 AS INTEGER ) AS col0
----
13

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

query I rowsort
SELECT 73 + 10
----
83

query I rowsort
SELECT ALL 62 + + 10 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT + SUM( - 26 ) * + 6 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + SUM ( - 26 ) * + 6 AS col0
----
-156

query I rowsort
SELECT DISTINCT - 86 + - 68
----
-154

query I rowsort
SELECT DISTINCT + 12 + - 75 AS col2
----
-63

query I rowsort
SELECT DISTINCT 94 + - - 32
----
126

query I rowsort
SELECT ALL - 73 + - 74 AS col1
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL CASE - 3 WHEN - + 22 THEN NULL WHEN - 39 * + + CAST( NULL AS SIGNED ) THEN NULL WHEN 68 + - - CAST( 77 AS SIGNED ) THEN - + 37 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL CASE - 3 WHEN - + 22 THEN NULL WHEN - 39 * + + CAST ( NULL AS INTEGER ) THEN NULL WHEN 68 + - - CAST ( 77 AS INTEGER ) THEN - + 37 END
----
NULL

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

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

query I rowsort
SELECT 21 * - 56
----
-1176

onlyif mysql # DIV for integer division: 
query II rowsort label-8463
SELECT 98 AS col1, - ( - COALESCE ( - + 46, CASE - + 45 WHEN + 75 + - - 70 THEN + 48 - 31 WHEN - + 88 THEN NULL ELSE + - 23 DIV - 67 END, 3 ) )
----
98
-46

skipif mysql # not compatible
query II rowsort label-8463
SELECT 98 AS col1, - ( - COALESCE ( - + 46, CASE - + 45 WHEN + 75 + - - 70 THEN + 48 - 31 WHEN - + 88 THEN NULL ELSE + - 23 / - 67 END, 3 ) )
----
98
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT ALL + 38 - + COUNT( * )
----
37

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

query I rowsort
SELECT - 62 - 22
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8466
SELECT ALL - 56 * + - 94 AS col1, COUNT( * ) * 39 DIV + 12 AS col0
----
5264
3

skipif mysql # not compatible
query II rowsort label-8466
SELECT ALL - 56 * + - 94 AS col1, COUNT ( * ) * 39 / + 12 AS col0
----
5264
3

query I rowsort
SELECT DISTINCT - 47 * - 99 AS col0
----
4653

query I rowsort
SELECT DISTINCT 26 * - - 59 AS col1
----
1534

onlyif mysql # DIV for integer division: 
query I rowsort label-8469
SELECT ALL - 56 * 0 DIV - 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL - 56 * 0 / - 4 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT CAST( NULL AS SIGNED ) + CASE COUNT( * ) WHEN - 3 THEN NULL ELSE 64 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT CAST ( NULL AS INTEGER ) + CASE COUNT ( * ) WHEN - 3 THEN NULL ELSE 64 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8471
SELECT DISTINCT - 38 * + 35 * + 85 * + 53 AS col1, - 14 - - MAX( - 10 ) + ( - 5 ) * + 84 AS col0
----
-5991650
-444

skipif mysql # not compatible
query II rowsort label-8471
SELECT DISTINCT - 38 * + 35 * + 85 * + 53 AS col1, - 14 - - MAX ( - 10 ) + ( - 5 ) * + 84 AS col0
----
-5991650
-444

query I rowsort
SELECT 90 * 40 AS col0
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT + NULLIF ( 20, + 16 / - - 17 ) * - COUNT( * ) + - COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8473
SELECT + NULLIF ( 20, + 16 / - - 17 ) * - COUNT ( * ) + - COUNT ( * )
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8474
SELECT ALL + SUM( - CAST( NULL AS SIGNED ) ) / - 93
----
NULL

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

query I rowsort
SELECT 80 * + - 2
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL + 21 + - MAX( + + 12 ) + + 38 + + COUNT( * ) + + 19 + 21 * + - 91 * + 38 * - 97 * CASE - 6 WHEN - + 15 THEN - - 87 / 20 - COUNT( * ) WHEN + COUNT( * ) THEN + 74 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + 21 + - MAX ( + + 12 ) + + 38 + + COUNT ( * ) + + 19 + 21 * + - 91 * + 38 * - 97 * CASE - 6 WHEN - + 15 THEN - - 87 / 20 - COUNT ( * ) WHEN + COUNT ( * ) THEN + 74 END * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + 85 * COALESCE ( 93, ( + - COALESCE ( + 36, - 93 ) ), - 17 ) col2
----
7905

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT DISTINCT + 12 DIV 15 * + COUNT( 61 )
----
0

skipif mysql # not compatible
query I rowsort label-8478
SELECT DISTINCT + 12 / 15 * + COUNT ( 61 )
----
0

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

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL 77 + COUNT ( * ) + - + 78 / + + 70 + - 84
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8480
SELECT ALL COALESCE ( + + 55, + + 78 ) * + COUNT( * ), + 85 AS col1
----
55
85

skipif mysql # not compatible
query II rowsort label-8480
SELECT ALL COALESCE ( + + 55, + + 78 ) * + COUNT ( * ), + 85 AS col1
----
55
85

onlyif mysql # aggregate syntax: 
query II rowsort label-8481
SELECT COUNT( * ) * - - 12 AS col2, 2 AS col0
----
12
2

skipif mysql # not compatible
query II rowsort label-8481
SELECT COUNT ( * ) * - - 12 AS col2, 2 AS col0
----
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT - MAX( ALL - 29 ) * COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-8482
SELECT - MAX ( ALL - 29 ) * COUNT ( * ) AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8483
SELECT ALL - - 51 + + 35 + - COUNT( * ) + - 53 + - + 0 DIV ( - 69 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - - 51 + + 35 + - COUNT ( * ) + - 53 + - + 0 / ( - 69 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT + MIN( ALL + 79 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-8484
SELECT + MIN ( ALL + 79 ) AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-8485
SELECT + COALESCE ( + + COUNT ( * ), ( + 11 ) ) * - 17
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8486
SELECT ALL - - ( - CASE - CAST( NULL AS DECIMAL ) WHEN 39 THEN - 91 + + ( - 86 ) - + 58 WHEN + + 65 THEN + - 83 WHEN 79 THEN NULL ELSE NULL END ) + + + ( + 15 ) + + 77 + 52 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - - ( - CASE - CAST ( NULL AS REAL ) WHEN 39 THEN - 91 + + ( - 86 ) - + 58 WHEN + + 65 THEN + - 83 WHEN 79 THEN NULL ELSE NULL END ) + + + ( + 15 ) + + 77 + 52 AS col2
----
NULL

query I rowsort
SELECT ALL - 77 col1
----
-77

query I rowsort
SELECT ALL + 83 + + ( - 86 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT - - COALESCE ( 88, COUNT( * ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT - - COALESCE ( 88, COUNT ( * ) ) AS col0
----
88

query I rowsort
SELECT ALL CASE + + NULLIF ( - - 54, - 30 ) WHEN 5 * - 66 THEN + + NULLIF ( - 12, + - 83 ) * + + COALESCE ( + - ( 34 ), AVG ( DISTINCT + + ( ( + 35 ) ) ) ) END + 29
----
NULL

query I rowsort
SELECT DISTINCT - - 36 AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8492
SELECT DISTINCT 5 * + - 44 * 81 / - - CAST( NULL AS SIGNED ) + + 11 + - - 66 * COUNT( * ) * + ( - COUNT( * ) ) + - NULLIF ( + - 5, 10 * 31 + - - AVG ( + 46 ) * 95 ) / 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT 5 * + - 44 * 81 / - - CAST ( NULL AS INTEGER ) + + 11 + - - 66 * COUNT ( * ) * + ( - COUNT ( * ) ) + - NULLIF ( + - 5, 10 * 31 + - - AVG ( + 46 ) * 95 ) / 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT - 10 + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8493
SELECT - 10 + - COUNT ( * )
----
-11

query I rowsort
SELECT 46 + - 46
----
0

query I rowsort
SELECT ALL 63 - - COALESCE ( 55, - 71 ) + 93 * COALESCE ( 4, + 41 * + 57 + 19 ) * - - ( - 89 ) col0
----
-32990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8496
SELECT DISTINCT CAST( - 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT CAST ( - 12 AS INTEGER )
----
-12

query I rowsort
SELECT ALL - 92 * + 65
----
-5980

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8499
SELECT COALESCE ( - 62, + - 42 * + CAST( - 74 AS SIGNED ) * - + SUM( ALL - 9 ) + CASE - 49 WHEN + + 47 * - - COUNT( * ) THEN - + COUNT( + 40 ) END * + 92 + 82, + COUNT( * ) * + CASE - 96 WHEN AVG ( DISTINCT ( 52 ) ) THEN NULL ELSE + 64 * CAST( NULL AS SIGNED ) END ) + 26 * + 62
----
1550

skipif mysql # not compatible
query I rowsort label-8499
SELECT COALESCE ( - 62, + - 42 * + CAST ( - 74 AS INTEGER ) * - + SUM ( ALL - 9 ) + CASE - 49 WHEN + + 47 * - - COUNT ( * ) THEN - + COUNT ( + 40 ) END * + 92 + 82, + COUNT ( * ) * + CASE - 96 WHEN AVG ( DISTINCT ( 52 ) ) THEN NULL ELSE + 64 * CAST ( NULL AS INTEGER ) END ) + 26 * + 62
----
1550

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL 85 * - MIN( + 70 ) * + - 16 + + - 34 AS col1
----
95166

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL 85 * - MIN ( + 70 ) * + - 16 + + - 34 AS col1
----
95166

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT MAX( ALL - 37 ) + + + 45 * + 42
----
1853

skipif mysql # not compatible
query I rowsort label-8503
SELECT MAX ( ALL - 37 ) + + + 45 * + 42
----
1853

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT 45 * MAX( ALL - 23 )
----
-1035

skipif mysql # not compatible
query I rowsort label-8504
SELECT 45 * MAX ( ALL - 23 )
----
-1035

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8505
SELECT - COALESCE ( NULLIF ( 86, SUM( ALL + 75 ) ), COUNT( * ) * + CAST( NULL AS SIGNED ) )
----
-86

skipif mysql # not compatible
query I rowsort label-8505
SELECT - COALESCE ( NULLIF ( 86, SUM ( ALL + 75 ) ), COUNT ( * ) * + CAST ( NULL AS INTEGER ) )
----
-86

query II rowsort
SELECT 83 + 8 + 18, 22 AS col1
----
109
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT - MIN( - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8507
SELECT - MIN ( - 68 ) AS col1
----
68

query II rowsort
SELECT 7 AS col0, 3 col2
----
7
3

query I rowsort
SELECT 99 * 79
----
7821

onlyif mysql # aggregate syntax: 
query II rowsort label-8510
SELECT DISTINCT 19 + + COUNT( * ) + 43 col0, 21 + 27
----
63
48

skipif mysql # not compatible
query II rowsort label-8510
SELECT DISTINCT 19 + + COUNT ( * ) + 43 col0, 21 + 27
----
63
48

query II rowsort
SELECT ALL 0, - 15 AS col1
----
0
-15

query I rowsort
SELECT - COALESCE ( + - 87, - 3 )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8513
SELECT ALL 54 + 27 + COUNT( * ), 47 + - ( ( - COUNT( * ) ) ) DIV + 21 * + + 89 * - - 22 AS col0
----
82
47

skipif mysql # not compatible
query II rowsort label-8513
SELECT ALL 54 + 27 + COUNT ( * ), 47 + - ( ( - COUNT ( * ) ) ) / + 21 * + + 89 * - - 22 AS col0
----
82
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL + COUNT( + 48 ) * + 73 + 56 AS col2
----
129

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + COUNT ( + 48 ) * + 73 + 56 AS col2
----
129

query I rowsort
SELECT ALL 71 + + + 10
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT ALL - 99 * 20 + 85 + 26 + - + SUM( - 14 ) * - COUNT( DISTINCT 74 ) AS col2
----
-1883

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL - 99 * 20 + 85 + 26 + - + SUM ( - 14 ) * - COUNT ( DISTINCT 74 ) AS col2
----
-1883

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

skipif mysql # not compatible
query I rowsort label-8517
SELECT COUNT ( * ) / 23 + 39 AS col2
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT CASE + - 54 WHEN - ( - ( + COUNT( * ) ) ) THEN + - 55 * 41 WHEN - - CAST( NULL AS SIGNED ) * + ( - - 99 ) + + 12 + 30 * - - 72 + + 31 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT CASE + - 54 WHEN - ( - ( + COUNT ( * ) ) ) THEN + - 55 * 41 WHEN - - CAST ( NULL AS INTEGER ) * + ( - - 99 ) + + 12 + 30 * - - 72 + + 31 THEN NULL END
----
NULL

query I rowsort
SELECT NULLIF ( + 55, + 72 / 56 )
----
55

query I rowsort
SELECT - + 67 + - NULLIF ( - 16, 36 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT - + 8 * - ( + 4 ) * - - 20 * COUNT( DISTINCT + 40 ) AS col1
----
640

skipif mysql # not compatible
query I rowsort label-8521
SELECT - + 8 * - ( + 4 ) * - - 20 * COUNT ( DISTINCT + 40 ) AS col1
----
640

query I rowsort
SELECT - 28 * + 15 * - - NULLIF ( + 26, - 15 ) + + 3 * 71
----
-10707

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT + 40 DIV 38 + + 95 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8523
SELECT + 40 / 38 + + 95 AS col0
----
96

query I rowsort
SELECT ALL + - 27 * - - 40 + + 47 AS col0
----
-1033

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL + ( - ( + 38 ) ) * - 84 * + - 7 / - COUNT( DISTINCT + 27 ) * - 44 * 48 + + CASE 61 WHEN - - CAST( + COUNT( * ) AS SIGNED ) * 68 * + 78 + - 51 THEN + 51 END * 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL + ( - ( + 38 ) ) * - 84 * + - 7 / - COUNT ( DISTINCT + 27 ) * - 44 * 48 + + CASE 61 WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) * 68 * + 78 + - 51 THEN + 51 END * 38 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8526
SELECT ALL + 37 DIV + 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL + 37 / + 47 col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT DISTINCT + NULLIF ( 22, + - COALESCE ( - + MAX( ALL + 71 ), - CAST( - 64 AS SIGNED ) ) + - 35 + - - ( + CASE - + COUNT( DISTINCT + - ( + 96 ) ) WHEN 78 THEN NULL ELSE + - CASE + 7 WHEN ( 23 ) + 49 * + 42 THEN COUNT( * ) ELSE NULL END * + CASE 66 WHEN - 23 THEN - 14 / 8 WHEN 51 + 23 THEN NULL END END ) + 30 ) * ( - SUM( 83 ) )
----
-1826

skipif mysql # not compatible
query I rowsort label-8527
SELECT DISTINCT + NULLIF ( 22, + - COALESCE ( - + MAX ( ALL + 71 ), - CAST ( - 64 AS INTEGER ) ) + - 35 + - - ( + CASE - + COUNT ( DISTINCT + - ( + 96 ) ) WHEN 78 THEN NULL ELSE + - CASE + 7 WHEN ( 23 ) + 49 * + 42 THEN COUNT ( * ) ELSE NULL END * + CASE 66 WHEN - 23 THEN - 14 / 8 WHEN 51 + 23 THEN NULL END END ) + 30 ) * ( - SUM ( 83 ) )
----
-1826

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8528
SELECT DISTINCT + - 94 * - 46 * - COUNT( * ) AS col2, COUNT( * ) DIV - 59
----
-4324
0

skipif mysql # not compatible
query II rowsort label-8528
SELECT DISTINCT + - 94 * - 46 * - COUNT ( * ) AS col2, COUNT ( * ) / - 59
----
-4324
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL + 84 * 36 - + + 76 + MIN( + 88 ) * - - 19 + CASE - - COUNT( * ) WHEN 17 * + COUNT( * ) + - 25 THEN - 65 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + 84 * 36 - + + 76 + MIN ( + 88 ) * - - 19 + CASE - - COUNT ( * ) WHEN 17 * + COUNT ( * ) + - 25 THEN - 65 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - 7 * + 49 * + 81 * + - COUNT( * ) AS col1
----
27783

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 7 * + 49 * + 81 * + - COUNT ( * ) AS col1
----
27783

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT + ( - 10 ) * + - 50 * - NULLIF ( + SUM( 11 ), - 75 ) + - 83 * + - COALESCE ( 92, - - 77, - 63 - + - SUM( 43 ) ) + 78 AS col1
----
2214

skipif mysql # not compatible
query I rowsort label-8531
SELECT + ( - 10 ) * + - 50 * - NULLIF ( + SUM ( 11 ), - 75 ) + - 83 * + - COALESCE ( 92, - - 77, - 63 - + - SUM ( 43 ) ) + 78 AS col1
----
2214

query I rowsort
SELECT DISTINCT + - 82 * + 46
----
-3772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8533
SELECT + - 1 + 74 + COALESCE ( 72, + 58 + - NULLIF ( - 40, CAST( NULL AS SIGNED ) * COUNT( DISTINCT - 59 ) + + + 76 ) ) * + MAX( ALL 72 )
----
5257

skipif mysql # not compatible
query I rowsort label-8533
SELECT + - 1 + 74 + COALESCE ( 72, + 58 + - NULLIF ( - 40, CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - 59 ) + + + 76 ) ) * + MAX ( ALL 72 )
----
5257

onlyif mysql # aggregate syntax: 
query I rowsort label-8534
SELECT ALL + CASE - + 17 WHEN SUM( ALL 59 ) THEN - 59 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL + CASE - + 17 WHEN SUM ( ALL 59 ) THEN - 59 END
----
NULL

query I rowsort
SELECT DISTINCT + 52 * - + 82
----
-4264

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8536
SELECT DISTINCT COALESCE ( - 19, CAST( NULL AS SIGNED ) DIV 36 * - CAST( NULL AS SIGNED ) * - 13, + + 89 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8536
SELECT DISTINCT COALESCE ( - 19, CAST ( NULL AS INTEGER ) / 36 * - CAST ( NULL AS INTEGER ) * - 13, + + 89 ) AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8537
SELECT DISTINCT 9 DIV - 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8537
SELECT DISTINCT 9 / - 40 AS col2
----
0

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

query I rowsort
SELECT DISTINCT ( - 8 ) AS col1
----
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT - COALESCE ( 84, COUNT( ALL + 77 ) ) col1
----
-84

skipif mysql # not compatible
query I rowsort label-8541
SELECT - COALESCE ( 84, COUNT ( ALL + 77 ) ) col1
----
-84

query I rowsort
SELECT DISTINCT 73 * 94 col1
----
6862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT - ( - CASE - - CASE + 68 WHEN - - 53 + + 63 THEN 86 END WHEN 16 THEN CAST( - - 11 AS SIGNED ) WHEN - 72 * 7 + + COALESCE ( - CAST( NULL AS SIGNED ), + 22 * + ( - 72 ), - 19 ) + 21 * CAST( NULL AS SIGNED ) THEN NULL END ) - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT - ( - CASE - - CASE + 68 WHEN - - 53 + + 63 THEN 86 END WHEN 16 THEN CAST ( - - 11 AS INTEGER ) WHEN - 72 * 7 + + COALESCE ( - CAST ( NULL AS INTEGER ), + 22 * + ( - 72 ), - 19 ) + 21 * CAST ( NULL AS INTEGER ) THEN NULL END ) - 9 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8545
SELECT ALL COUNT( * ) * - + 67 AS col0, 55 * - MAX( ALL 59 ) col2
----
-67
-3245

skipif mysql # not compatible
query II rowsort label-8545
SELECT ALL COUNT ( * ) * - + 67 AS col0, 55 * - MAX ( ALL 59 ) col2
----
-67
-3245

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL 66 + CASE + COUNT( * ) WHEN + 73 THEN + 28 * CASE + 6 WHEN - + 93 + + 5 THEN NULL WHEN + 99 + + 66 * - - COALESCE ( + + 31, - 58 / - COUNT( * ) ) - - 22 * 93 THEN 33 ELSE 75 END WHEN - 52 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL 66 + CASE + COUNT ( * ) WHEN + 73 THEN + 28 * CASE + 6 WHEN - + 93 + + 5 THEN NULL WHEN + 99 + + 66 * - - COALESCE ( + + 31, - 58 / - COUNT ( * ) ) - - 22 * 93 THEN 33 ELSE 75 END WHEN - 52 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 12 * + + 68
----
816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT + CAST( NULL AS SIGNED ) * + + COALESCE ( 57, 92, + 78 + - 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8548
SELECT + CAST ( NULL AS INTEGER ) * + + COALESCE ( 57, 92, + 78 + - 2 )
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-8550
SELECT - COUNT ( DISTINCT - 60 ) * + - 52 AS col0
----
52

query I rowsort
SELECT + 12 + 8 AS col1
----
20

query I rowsort
SELECT + 18 - - 76 AS col1
----
94

query I rowsort
SELECT + 94 * 23 AS col1
----
2162

query II rowsort
SELECT 65 AS col2, 58 col1
----
65
58

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

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL SUM ( 32 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT CAST( - 82 AS SIGNED ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-8556
SELECT CAST ( - 82 AS INTEGER ) AS col2
----
-82

query II rowsort
SELECT 25 AS col0, + 32 + + 95 AS col2
----
25
127

query I rowsort
SELECT - 26 * 42 + 59
----
-1033

query II rowsort
SELECT ALL + 71 AS col2, 29 * + 21
----
71
609

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8560
SELECT DISTINCT + + 77 AS col0, + CAST( 18 AS SIGNED ) col0
----
77
18

skipif mysql # not compatible
query II rowsort label-8560
SELECT DISTINCT + + 77 AS col0, + CAST ( 18 AS INTEGER ) col0
----
77
18

onlyif mysql # aggregate syntax: 
query II rowsort label-8561
SELECT ALL + 60 AS col0, 88 * + 56 * + + COUNT( * ) AS col1
----
60
4928

skipif mysql # not compatible
query II rowsort label-8561
SELECT ALL + 60 AS col0, 88 * + 56 * + + COUNT ( * ) AS col1
----
60
4928

onlyif mysql # DIV for integer division: 
query I rowsort label-8562
SELECT DISTINCT - 73 DIV + 55 - + 41
----
-42

skipif mysql # not compatible
query I rowsort label-8562
SELECT DISTINCT - 73 / + 55 - + 41
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-8563
SELECT CASE ( - 22 ) WHEN + ( + 16 ) THEN + ( COUNT( * ) ) / - - 50 - - + 53 END AS col2, + 62
----
NULL
62

skipif mysql # not compatible
query II rowsort label-8563
SELECT CASE ( - 22 ) WHEN + ( + 16 ) THEN + ( COUNT ( * ) ) / - - 50 - - + 53 END AS col2, + 62
----
NULL
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL + NULLIF ( SUM( ALL - + 62 ), COUNT( DISTINCT 56 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL + NULLIF ( SUM ( ALL - + 62 ), COUNT ( DISTINCT 56 ) )
----
-62

query I rowsort
SELECT 94 * + 60 * + 79 - 42 - - + 2
----
445520

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT - + NULLIF ( + 49, + + COALESCE ( + 70, + 53 / 54 ) ) * + - MIN( 50 ) * - + 89 AS col0
----
-218050

skipif mysql # not compatible
query I rowsort label-8566
SELECT - + NULLIF ( + 49, + + COALESCE ( + 70, + 53 / 54 ) ) * + - MIN ( 50 ) * - + 89 AS col0
----
-218050

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

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

query I rowsort
SELECT - 28 + - - 73
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT ALL + - CASE - SUM( ALL - 19 ) WHEN 90 THEN 46 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT ALL + - CASE - SUM ( ALL - 19 ) WHEN 90 THEN 46 END col1
----
NULL

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

query I rowsort
SELECT DISTINCT - ( + 93 ) * + 26 AS col2
----
-2418

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT DISTINCT - + 75 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - + 75 / - 82 AS col2
----
0

query I rowsort
SELECT + - 9 + ( - 59 ) col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - 98 * - COUNT( * ) * - + ( + 36 ) AS col1
----
-3528

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - 98 * - COUNT ( * ) * - + ( + 36 ) AS col1
----
-3528

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT NULLIF ( - 95, - + COUNT( * ) * + - 33 ) AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-8575
SELECT NULLIF ( - 95, - + COUNT ( * ) * + - 33 ) AS col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8576
SELECT - 73 * + 13 + + COUNT( * ) DIV + 2 AS col1
----
-949

skipif mysql # not compatible
query I rowsort label-8576
SELECT - 73 * + 13 + + COUNT ( * ) / + 2 AS col1
----
-949

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT COALESCE ( + 48, 83 * + - 22 * + - 65 - + COUNT( DISTINCT 22 ) * - - 77 * + 39 * - 72 + 39 )
----
48

skipif mysql # not compatible
query I rowsort label-8577
SELECT COALESCE ( + 48, 83 * + - 22 * + - 65 - + COUNT ( DISTINCT 22 ) * - - 77 * + 39 * - 72 + 39 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT COALESCE ( - - 84, + + 80, - 2, COUNT( * ) + - 68 + + 52 + + 31 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-8578
SELECT COALESCE ( - - 84, + + 80, - 2, COUNT ( * ) + - 68 + + 52 + + 31 ) AS col1
----
84

query I rowsort
SELECT - COALESCE ( - 44, - + 88 + - 24 )
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8580
SELECT - ( + - 94 ) + + COALESCE ( + 66, 76, - 0 * - 43 ) AS col0, 96 + + 46 DIV + - 81 + COUNT( * ) col2
----
160
97

skipif mysql # not compatible
query II rowsort label-8580
SELECT - ( + - 94 ) + + COALESCE ( + 66, 76, - 0 * - 43 ) AS col0, 96 + + 46 / + - 81 + COUNT ( * ) col2
----
160
97

query I rowsort
SELECT DISTINCT + 25 + - 63 AS col1
----
-38

query I rowsort
SELECT ALL 60 + - + 15 AS col2
----
45

query II rowsort
SELECT DISTINCT - 53 + + ( 39 ) AS col0, - 34
----
-14
-34

query I rowsort
SELECT DISTINCT - 90 + + 95 col2
----
5

query I rowsort
SELECT 18 + - 13
----
5

query I rowsort
SELECT 89 * - 24 AS col0
----
-2136

query I rowsort
SELECT ALL 18 * - 22
----
-396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL AVG ( - + 56 ) + COUNT( * ) * - COUNT( * ) * - 6 * + CASE - 78 WHEN + 61 THEN + 13 / - COUNT( * ) ELSE + - 79 * - 32 + - CAST( NULL AS SIGNED ) * + 8 * + + 2 + + + 73 * - - MAX( - NULLIF ( + 70, 36 * 14 ) ) * + 51 + - 34 * + 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL AVG ( - + 56 ) + COUNT ( * ) * - COUNT ( * ) * - 6 * + CASE - 78 WHEN + 61 THEN + 13 / - COUNT ( * ) ELSE + - 79 * - 32 + - CAST ( NULL AS INTEGER ) * + 8 * + + 2 + + + 73 * - - MAX ( - NULLIF ( + 70, 36 * 14 ) ) * + 51 + - 34 * + 65 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT COUNT( * ) + - - ( + 11 ) - 64 AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-8589
SELECT COUNT ( * ) + - - ( + 11 ) - 64 AS col1
----
-52

query I rowsort
SELECT 9 * - + 53 * 64 + - + 6 AS col1
----
-30534

query I rowsort
SELECT 65 * + 62 + 59 AS col0
----
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT 44 * COUNT( ALL + 79 ) * + - 55 * 95 AS col2
----
-229900

skipif mysql # not compatible
query I rowsort label-8592
SELECT 44 * COUNT ( ALL + 79 ) * + - 55 * 95 AS col2
----
-229900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT - - ( 19 ) * + + 80 + ( ( 67 ) ) + MIN( - - 19 ) * + 57 * + 80
----
88227

skipif mysql # not compatible
query I rowsort label-8594
SELECT - - ( 19 ) * + + 80 + ( ( 67 ) ) + MIN ( - - 19 ) * + 57 * + 80
----
88227

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT - SUM( ALL - 1 ) * - 81 + - 63
----
-144

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT - SUM ( ALL - 1 ) * - 81 + - 63
----
-144

query I rowsort
SELECT 21 + + 48
----
69

query I rowsort
SELECT ALL - - 14 * - 96 + + - 69 col0
----
-1413

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL - COALESCE ( 57, + CAST( + 69 AS SIGNED ), - 24 + COUNT( * ) + + - CAST( NULL AS SIGNED ) + 28, + 40 ) * - 37
----
2109

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL - COALESCE ( 57, + CAST ( + 69 AS INTEGER ), - 24 + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) + 28, + 40 ) * - 37
----
2109

query II rowsort
SELECT - 48 + - 60 AS col2, + 73 * 5
----
-108
365

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT 18 * NULLIF ( 4, + COUNT( * ) - + + 54 + 19 ) + + 6 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT 18 * NULLIF ( 4, + COUNT ( * ) - + + 54 + 19 ) + + 6 AS col2
----
78

query II rowsort
SELECT ALL + 69 * 87, - 55 * + 0 + 98 * - + 52 * 75 AS col0
----
6003
-382200

query I rowsort
SELECT - 6 * - 5
----
30

query I rowsort
SELECT ( - 37 ) * - 12 * + 52 + - 88 AS col2
----
23000

query II rowsort
SELECT + 73 AS col0, + 88
----
73
88

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

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL + 38 + + COUNT ( * ) AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8607
SELECT 88 col0, - COUNT( * ) DIV - 31 * + 25 AS col1
----
88
0

skipif mysql # not compatible
query II rowsort label-8607
SELECT 88 col0, - COUNT ( * ) / - 31 * + 25 AS col1
----
88
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8608
SELECT ALL - 0, - 63 * - - COUNT( * ) + - - 61 DIV - - NULLIF ( - COUNT( * ), + CAST( CAST( + + 26 AS SIGNED ) AS SIGNED ) ) DIV + + COUNT( * ) + - - COUNT( * ) AS col1
----
0
-123

skipif mysql # not compatible
query II rowsort label-8608
SELECT ALL - 0, - 63 * - - COUNT ( * ) + - - 61 / - - NULLIF ( - COUNT ( * ), + CAST ( CAST ( + + 26 AS INTEGER ) AS INTEGER ) ) / + + COUNT ( * ) + - - COUNT ( * ) AS col1
----
0
-123

query I rowsort
SELECT ALL 61 * 19 AS col1
----
1159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8610
SELECT ALL - SUM( DISTINCT + 10 ) DIV - 10 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8610
SELECT ALL - SUM ( DISTINCT + 10 ) / - 10 AS col1
----
1

query II rowsort
SELECT DISTINCT - 48 * 27 * - 95 * - + 90 col1, 73 AS col2
----
-11080800
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT ALL - 39 + 5 * + MAX( - 91 ) * - 43 * - + 77 * + 38 AS col2
----
-57247229

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL - 39 + 5 * + MAX ( - 91 ) * - 43 * - + 77 * + 38 AS col2
----
-57247229

onlyif mysql # DIV for integer division: 
query I rowsort label-8613
SELECT 99 * NULLIF ( - - 57, 45 + - - 83 + + 73 * CASE 65 WHEN + ( 10 ) THEN 51 - 45 END + - 11 ) DIV - 16
----
-352

skipif mysql # not compatible
query I rowsort label-8613
SELECT 99 * NULLIF ( - - 57, 45 + - - 83 + + 73 * CASE 65 WHEN + ( 10 ) THEN 51 - 45 END + - 11 ) / - 16
----
-352

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT ALL - 67 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - 67 / 91 AS col1
----
0

query I rowsort
SELECT 9 * + 68
----
612

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

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

query I rowsort
SELECT 15 + 84 + + 32 * + 45 * - 87 AS col1
----
-125181

onlyif mysql # DIV for integer division: 
query I rowsort label-8618
SELECT 18 DIV + - NULLIF ( 99, 6 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8618
SELECT 18 / + - NULLIF ( 99, 6 ) col0
----
0

query I rowsort
SELECT 89 * 51
----
4539

query I rowsort
SELECT 24 * 94
----
2256

query I rowsort
SELECT 8 - + - 18 * - 17
----
-298

query II rowsort
SELECT - 65, - 92 - - 34 AS col1
----
-65
-58

query I rowsort
SELECT ALL - 77 * + - 94 AS col1
----
7238

query I rowsort
SELECT 24 * - - 95 * + - 53
----
-120840

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

query II rowsort
SELECT ALL 47, 2 col2
----
47
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT 18 + + COUNT( * ) - - - 55 + - + COUNT( * ) * ( COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-8627
SELECT 18 + + COUNT ( * ) - - - 55 + - + COUNT ( * ) * ( COUNT ( * ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - COUNT( * ) - + + 56 * 59
----
-3305

skipif mysql # not compatible
query I rowsort label-8628
SELECT - COUNT ( * ) - + + 56 * 59
----
-3305

query I rowsort
SELECT 21 * + 20 AS col1
----
420

query I rowsort
SELECT - 30 * - 39 + 53 + 20 * - - 78
----
2783

query I rowsort
SELECT 20 * - 72 + + 76 + ( + ( + 46 ) )
----
-1318

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8632
SELECT - - COUNT( * ) DIV - 30 * 88 * + 52 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-8632
SELECT - - COUNT ( * ) / - 30 * 88 * + 52 + + 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8633
SELECT + - CAST( - 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8633
SELECT + - CAST ( - 44 AS INTEGER ) AS col2
----
44

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

skipif mysql # not compatible
query I rowsort label-8634
SELECT COUNT ( * ) / 35 + - - 5
----
5

query I rowsort
SELECT 67 * 27
----
1809

query I rowsort
SELECT DISTINCT + - 33 * - 80 AS col2
----
2640

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT ALL 7 * + 26 * ( 66 ) + - 20 + CASE + MIN( DISTINCT 49 ) WHEN + 91 / + - 42 + + 1 THEN NULL ELSE + COUNT( - 80 ) END
----
11993

skipif mysql # not compatible
query I rowsort label-8637
SELECT ALL 7 * + 26 * ( 66 ) + - 20 + CASE + MIN ( DISTINCT 49 ) WHEN + 91 / + - 42 + + 1 THEN NULL ELSE + COUNT ( - 80 ) END
----
11993

query II rowsort
SELECT 21, - 59 AS col0
----
21
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT + 91 * 97 * - COUNT( * ) DIV + COUNT( DISTINCT 8 ) + - - 59 + - + 75 AS col0
----
-8843

skipif mysql # not compatible
query I rowsort label-8639
SELECT + 91 * 97 * - COUNT ( * ) / + COUNT ( DISTINCT 8 ) + - - 59 + - + 75 AS col0
----
-8843

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8640
SELECT 15 DIV + 39 - - - COUNT( * ) * - 87 * + - CASE + + 14 WHEN - + 5 * + 22 - - ( - 75 ) - + COALESCE ( + - MAX( - CAST( + + COALESCE ( - 89, 84 * + + 32 + - COALESCE ( - 4, ( + 8 ) * COALESCE ( - 12 + - COALESCE ( - 82, + 62 + + 2 ), 3 - 56, 25 * + 87 ) + ( 99 ) DIV 70 ) ) AS SIGNED ) ), 13 + + 49 ) * + 48 THEN NULL ELSE COUNT( * ) END * 73
----
-6351

skipif mysql # not compatible
query I rowsort label-8640
SELECT 15 / + 39 - - - COUNT ( * ) * - 87 * + - CASE + + 14 WHEN - + 5 * + 22 - - ( - 75 ) - + COALESCE ( + - MAX ( - CAST ( + + COALESCE ( - 89, 84 * + + 32 + - COALESCE ( - 4, ( + 8 ) * COALESCE ( - 12 + - COALESCE ( - 82, + 62 + + 2 ), 3 - 56, 25 * + 87 ) + ( 99 ) / 70 ) ) AS INTEGER ) ), 13 + + 49 ) * + 48 THEN NULL ELSE COUNT ( * ) END * 73
----
-6351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8641
SELECT + 16 AS col2, - 20 + + + 26 * + + CAST( - CASE + + ( + COUNT( * ) ) WHEN + 43 / + + 18 + - 57 + - 21 + 53 + - + 79 THEN NULL WHEN 73 THEN NULL ELSE - NULLIF ( - 94, - 23 * - CASE 82 WHEN + CAST( NULL AS SIGNED ) THEN 49 * + 90 ELSE COUNT( DISTINCT + 5 ) / - COUNT( * ) END + 38 ) + - CAST( NULL AS SIGNED ) END AS DECIMAL ) + NULLIF ( - 13, - 50 ) AS col0
----
16
NULL

skipif mysql # not compatible
query II rowsort label-8641
SELECT + 16 AS col2, - 20 + + + 26 * + + CAST ( - CASE + + ( + COUNT ( * ) ) WHEN + 43 / + + 18 + - 57 + - 21 + 53 + - + 79 THEN NULL WHEN 73 THEN NULL ELSE - NULLIF ( - 94, - 23 * - CASE 82 WHEN + CAST ( NULL AS INTEGER ) THEN 49 * + 90 ELSE COUNT ( DISTINCT + 5 ) / - COUNT ( * ) END + 38 ) + - CAST ( NULL AS INTEGER ) END AS REAL ) + NULLIF ( - 13, - 50 ) AS col0
----
16
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT 5 * - MAX( + 18 ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-8642
SELECT 5 * - MAX ( + 18 ) AS col1
----
-90

query I rowsort
SELECT DISTINCT - + ( CASE - 76 WHEN 30 THEN - 19 * ( - 0 ) END ) AS col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT 21 * + + CAST ( NULL AS INTEGER ) + + 8
----
NULL

query I rowsort
SELECT ALL 43 * + 77 * - + 88 AS col2
----
-291368

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT COUNT( * ) + + 17 - - 0
----
18

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT COUNT ( * ) + + 17 - - 0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT DISTINCT 14 + + 66 * + - 50 + CASE - 13 WHEN - ( + + 10 ) THEN 7 WHEN 28 * + AVG ( ALL + CASE - - 80 WHEN + + 88 * - 85 THEN + 43 WHEN 81 THEN NULL END ) + ( + NULLIF ( - COUNT( + 31 ), - 60 ) ) + - 24 THEN - 78 WHEN AVG ( 41 ) / + 65 THEN NULL END * + ( 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8647
SELECT DISTINCT 14 + + 66 * + - 50 + CASE - 13 WHEN - ( + + 10 ) THEN 7 WHEN 28 * + AVG ( ALL + CASE - - 80 WHEN + + 88 * - 85 THEN + 43 WHEN 81 THEN NULL END ) + ( + NULLIF ( - COUNT ( + 31 ), - 60 ) ) + - 24 THEN - 78 WHEN AVG ( 41 ) / + 65 THEN NULL END * + ( 84 ) AS col1
----
NULL

query I rowsort
SELECT + CASE + 21 WHEN 95 THEN 66 * 50 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT ALL 7 * - MAX( ALL + + 93 ) * + 63 * + - 32
----
1312416

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL 7 * - MAX ( ALL + + 93 ) * + 63 * + - 32
----
1312416

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + COUNT( * ) + + COUNT( - - 69 )
----
2

skipif mysql # not compatible
query I rowsort label-8650
SELECT + COUNT ( * ) + + COUNT ( - - 69 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT - COUNT( DISTINCT COALESCE ( + 91, + 15 ) ), 51 * 11 * + 26 * - - 13 AS col2
----
-1
189618

skipif mysql # not compatible
query II rowsort label-8651
SELECT - COUNT ( DISTINCT COALESCE ( + 91, + 15 ) ), 51 * 11 * + 26 * - - 13 AS col2
----
-1
189618

onlyif mysql # aggregate syntax: 
query II rowsort label-8652
SELECT - 95 + COUNT( * ) + + 15 + 25 AS col0, - 71 * + - 41 * + 5 col0
----
-54
14555

skipif mysql # not compatible
query II rowsort label-8652
SELECT - 95 + COUNT ( * ) + + 15 + 25 AS col0, - 71 * + - 41 * + 5 col0
----
-54
14555

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL NULLIF ( + - 66, 96 / - 42 * - 39 * - 88 * - COUNT( * ) ) - - 6 * - 51 AS col1
----
-372

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL NULLIF ( + - 66, 96 / - 42 * - 39 * - 88 * - COUNT ( * ) ) - - 6 * - 51 AS col1
----
-372

onlyif mysql # aggregate syntax: 
query II rowsort label-8654
SELECT - COUNT( - 77 ) AS col0, + 59
----
-1
59

skipif mysql # not compatible
query II rowsort label-8654
SELECT - COUNT ( - 77 ) AS col0, + 59
----
-1
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT + 69 * + 91 + - - CASE + COUNT( * ) WHEN - 15 THEN - + 68 / + 87 / + 1 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8655
SELECT + 69 * + 91 + - - CASE + COUNT ( * ) WHEN - 15 THEN - + 68 / + 87 / + 1 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT ALL SUM( ALL + ( - + 61 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL SUM ( ALL + ( - + 61 ) )
----
-61

query II rowsort
SELECT DISTINCT 6 * - + 60 AS col1, 72 * + 88 * + - 50
----
-360
-316800

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8658
SELECT DISTINCT + 18 DIV + CAST( 47 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT + 18 / + CAST ( 47 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8659
SELECT - 53 * - 98 * - COUNT( * ) * 69 * 55 AS col0, COALESCE ( 24, 63, - 79 ) AS col0
----
-19711230
24

skipif mysql # not compatible
query II rowsort label-8659
SELECT - 53 * - 98 * - COUNT ( * ) * 69 * 55 AS col0, COALESCE ( 24, 63, - 79 ) AS col0
----
-19711230
24

query I rowsort
SELECT DISTINCT + ( + NULLIF ( 42, - - 69 ) ) * - + 73
----
-3066

query I rowsort
SELECT - 29 + + + 62 - + - 95
----
128

query I rowsort
SELECT - 5 + - 68 + - 1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT - + 93 * - - MIN( DISTINCT + 82 ) AS col2
----
-7626

skipif mysql # not compatible
query I rowsort label-8663
SELECT - + 93 * - - MIN ( DISTINCT + 82 ) AS col2
----
-7626

query I rowsort
SELECT - 81 + + - 76 col1
----
-157

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8665
SELECT DISTINCT 50 + CAST( NULL AS DECIMAL ) + + - COALESCE ( + 34, + 43, + - 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT 50 + CAST ( NULL AS REAL ) + + - COALESCE ( + 34, + 43, + - 80 )
----
NULL

query I rowsort
SELECT DISTINCT - - 81 * - 3 - + - 87 + - 46 + 28 * ( - 66 ) * 24
----
-44554

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL + CASE + 44 WHEN - 79 THEN 34 WHEN - COUNT( * ) - + - 20 THEN + - ( - - 21 ) * + 38 / + 93 END + - 34 * 46 / ( ( - 6 ) ) * 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + CASE + 44 WHEN - 79 THEN 34 WHEN - COUNT ( * ) - + - 20 THEN + - ( - - 21 ) * + 38 / + 93 END + - 34 * 46 / ( ( - 6 ) ) * 37 AS col0
----
NULL

query I rowsort
SELECT - 52 - 63 AS col2
----
-115

query I rowsort
SELECT - 61 * - + 9 + + 4 + - - 92 AS col1
----
645

query I rowsort
SELECT + - 94 * - 66 + - 98
----
6106

query I rowsort
SELECT DISTINCT + - 9 col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL - 30 * + CAST( NULL AS SIGNED ) + - + MIN( ALL 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - 30 * + CAST ( NULL AS INTEGER ) + - + MIN ( ALL 58 )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8673
SELECT - + 5 + ( + + 84 ) + - CAST( NULL AS DECIMAL ) + - 36
----
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT - + 5 + ( + + 84 ) + - CAST ( NULL AS REAL ) + - 36
----
NULL

query I rowsort
SELECT DISTINCT + 20 * + 56
----
1120

onlyif mysql # aggregate syntax: 
query II rowsort label-8675
SELECT ALL + MIN( ALL 80 ) AS col1, + COUNT( * ) AS col2
----
80
1

skipif mysql # not compatible
query II rowsort label-8675
SELECT ALL + MIN ( ALL 80 ) AS col1, + COUNT ( * ) AS col2
----
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT - 34 DIV - - 37 * 23 + 83 + + ( + 20 ) col2
----
103

skipif mysql # not compatible
query I rowsort label-8676
SELECT - 34 / - - 37 * 23 + 83 + + ( + 20 ) col2
----
103

query I rowsort
SELECT ALL + 1 * - 56 + - 95
----
-151

query I rowsort
SELECT ALL + 29 * 82 + + 26
----
2404

query I rowsort
SELECT DISTINCT + 66 * + 59 AS col1
----
3894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8680
SELECT + COUNT( * ) + - 45 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8680
SELECT + COUNT ( * ) + - 45 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + 2 * - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8681
SELECT + 2 * - - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT ALL + 48 * + 39 col1
----
1872

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT COALESCE ( 87, 34 DIV 50 + ( 8 ) + + + 21 )
----
87

skipif mysql # not compatible
query I rowsort label-8683
SELECT COALESCE ( 87, 34 / 50 + ( 8 ) + + + 21 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT - ( - + 26 ) * - - CASE - + 62 WHEN + SUM( ALL 37 ) THEN - 16 - 95 WHEN + 39 THEN - - 41 * 21 * + 52 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT - ( - + 26 ) * - - CASE - + 62 WHEN + SUM ( ALL 37 ) THEN - 16 - 95 WHEN + 39 THEN - - 41 * 21 * + 52 ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8685
SELECT 12 * + - CAST( NULL AS DECIMAL ) + 3 * - 87 * - COUNT( * ) * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT 12 * + - CAST ( NULL AS REAL ) + 3 * - 87 * - COUNT ( * ) * - 58
----
NULL

query II rowsort
SELECT ALL + 54, 41 col0
----
54
41

onlyif mysql # aggregate syntax: 
query I rowsort label-8687
SELECT - COUNT( * ) * 92
----
-92

skipif mysql # not compatible
query I rowsort label-8687
SELECT - COUNT ( * ) * 92
----
-92

query I rowsort
SELECT + ( + ( + 31 ) ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT + 72 * - ( - 86 ) * + - MIN( ALL + 23 )
----
-142416

skipif mysql # not compatible
query I rowsort label-8689
SELECT + 72 * - ( - 86 ) * + - MIN ( ALL + 23 )
----
-142416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT + NULLIF ( 62, COALESCE ( + CAST( + 59 AS SIGNED ), - - 84 + + ( + 17 ) * + 24 ) )
----
62

skipif mysql # not compatible
query I rowsort label-8690
SELECT + NULLIF ( 62, COALESCE ( + CAST ( + 59 AS INTEGER ), - - 84 + + ( + 17 ) * + 24 ) )
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8691
SELECT + 12 * - - MIN( + CAST( NULL AS SIGNED ) ) AS col2, - 42
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-8691
SELECT + 12 * - - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2, - 42
----
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT SUM( - + 93 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8692
SELECT SUM ( - + 93 ) AS col0
----
-93

query I rowsort
SELECT + 41 * 42 AS col0
----
1722

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8694
SELECT - CAST( NULL AS SIGNED ), 68 AS col1
----
NULL
68

skipif mysql # not compatible
query II rowsort label-8694
SELECT - CAST ( NULL AS INTEGER ), 68 AS col1
----
NULL
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - NULLIF ( - 36, + COUNT( * ) ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-8695
SELECT - NULLIF ( - 36, + COUNT ( * ) ) AS col0
----
36

query I rowsort
SELECT + 23 + - 7 AS col0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT CAST( + ( 48 ) AS SIGNED ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8697
SELECT CAST ( + ( 48 ) AS INTEGER ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8698
SELECT - COUNT( * ) DIV 3 + - + 11 + - NULLIF ( - 39, + 79 ) + + 40 DIV 73 DIV - 33
----
28

skipif mysql # not compatible
query I rowsort label-8698
SELECT - COUNT ( * ) / 3 + - + 11 + - NULLIF ( - 39, + 79 ) + + 40 / 73 / - 33
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT + - 78 - + COUNT( * ) - - + 92 + + 34 - + 39 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-8699
SELECT + - 78 - + COUNT ( * ) - - + 92 + + 34 - + 39 AS col2
----
8

query I rowsort
SELECT DISTINCT + 8 + - 89 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT + 75 + - + COUNT( * ) col1
----
74

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT + 75 + - + COUNT ( * ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT ALL - 17 + - CASE - ( - + 38 ) WHEN + 49 THEN + + ( + 19 ) * + 31 * + 25 + 3 WHEN - 39 * 59 THEN NULL END / - + CASE - 88 WHEN + - 48 THEN + + 31 * + - COUNT( * ) + 68 + + COUNT( + 59 ) WHEN + 0 + - 39 THEN NULL ELSE NULL END / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - 17 + - CASE - ( - + 38 ) WHEN + 49 THEN + + ( + 19 ) * + 31 * + 25 + 3 WHEN - 39 * 59 THEN NULL END / - + CASE - 88 WHEN + - 48 THEN + + 31 * + - COUNT ( * ) + 68 + + COUNT ( + 59 ) WHEN + 0 + - 39 THEN NULL ELSE NULL END / 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - SUM( ALL 42 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8703
SELECT - SUM ( ALL 42 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL + 6 + - + COUNT( * ) * + 93 + 69 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + 6 + - + COUNT ( * ) * + 93 + 69 AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT + CAST( NULL AS SIGNED ) + + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT + CAST ( NULL AS INTEGER ) + + 62
----
NULL

query I rowsort
SELECT DISTINCT 80 + - 5
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8707
SELECT DISTINCT CASE - ( 34 ) WHEN - + 59 THEN + - 53 * 31 * - ( + CAST( NULL AS SIGNED ) ) + 25 / - COUNT( + ( - + 36 ) ) WHEN + - 5 * + NULLIF ( - 65, 29 - - + 21 ) + NULLIF ( - - 99, - 41 ) + - 77 * 62 THEN NULL WHEN - 87 THEN NULL END + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT DISTINCT CASE - ( 34 ) WHEN - + 59 THEN + - 53 * 31 * - ( + CAST ( NULL AS INTEGER ) ) + 25 / - COUNT ( + ( - + 36 ) ) WHEN + - 5 * + NULLIF ( - 65, 29 - - + 21 ) + NULLIF ( - - 99, - 41 ) + - 77 * 62 THEN NULL WHEN - 87 THEN NULL END + 64
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT - COUNT( - 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-8708
SELECT - COUNT ( - 45 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL + COUNT( * ) + - ( - 64 ) * - 15 AS col1
----
-959

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL + COUNT ( * ) + - ( - 64 ) * - 15 AS col1
----
-959

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8710
SELECT + - CAST( - + 2 AS SIGNED ) * 23, 45 * - COUNT( * ) AS col0
----
46
-45

skipif mysql # not compatible
query II rowsort label-8710
SELECT + - CAST ( - + 2 AS INTEGER ) * 23, 45 * - COUNT ( * ) AS col0
----
46
-45

query I rowsort
SELECT DISTINCT + 12 + - 11 + - 53 * + 14 + 20 AS col2
----
-721

query I rowsort
SELECT + 20 * + COALESCE ( 79, ( 33 ) ) + - 67 + 5 - - 26 + - - 25 + - - 43 col2
----
1612

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT ALL + 90 * + SUM( DISTINCT - 24 ) + - 74
----
-2234

skipif mysql # not compatible
query I rowsort label-8713
SELECT ALL + 90 * + SUM ( DISTINCT - 24 ) + - 74
----
-2234

query I rowsort
SELECT DISTINCT - 32 + - 12
----
-44

query I rowsort
SELECT DISTINCT - + ( + 14 )
----
-14

query II rowsort
SELECT + 13 AS col0, 46 col0
----
13
46

query I rowsort
SELECT ALL + 80 * - 44
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8718
SELECT ( + + 79 ) + - 46 + - 36 + - - COUNT( * ) * - 76 / - CAST( NULL AS DECIMAL ) + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT ( + + 79 ) + - 46 + - 36 + - - COUNT ( * ) * - 76 / - CAST ( NULL AS REAL ) + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT 99 * - 4 * - COUNT( * )
----
396

skipif mysql # not compatible
query I rowsort label-8719
SELECT 99 * - 4 * - COUNT ( * )
----
396

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT 80 * + - ( + 19 ) + - 47 DIV - 53
----
-1520

skipif mysql # not compatible
query I rowsort label-8720
SELECT 80 * + - ( + 19 ) + - 47 / - 53
----
-1520

query II rowsort
SELECT 42 AS col2, + 23
----
42
23

query I rowsort
SELECT ALL - ( 44 )
----
-44

query I rowsort
SELECT + 18 * + 44 - 54 * - + 66
----
4356

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8724
SELECT DISTINCT - NULLIF ( - 12, + CAST( - 14 AS SIGNED ) + - CAST( + 26 AS SIGNED ) )
----
12

skipif mysql # not compatible
query I rowsort label-8724
SELECT DISTINCT - NULLIF ( - 12, + CAST ( - 14 AS INTEGER ) + - CAST ( + 26 AS INTEGER ) )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-8725
SELECT ALL + COUNT( * ) * 41 AS col2, 20 AS col2
----
41
20

skipif mysql # not compatible
query II rowsort label-8725
SELECT ALL + COUNT ( * ) * 41 AS col2, 20 AS col2
----
41
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8726
SELECT ALL + COUNT( * ) DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + COUNT ( * ) / 76
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT DISTINCT CAST( + - 43 AS SIGNED ) * + - 43
----
1849

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT CAST ( + - 43 AS INTEGER ) * + - 43
----
1849

query I rowsort
SELECT 27 * + 76 * + - 52
----
-106704

query I rowsort
SELECT ALL - 18 * + 6 AS col2
----
-108

query I rowsort
SELECT 45 * - + 56 - 48 * - - 40
----
-4440

query I rowsort
SELECT 8 + - NULLIF ( - - 19, - 13 + + - 63 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT COUNT( * ) - + + 8
----
-7

skipif mysql # not compatible
query I rowsort label-8732
SELECT COUNT ( * ) - + + 8
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT COUNT( * ) * 25 * 46
----
1150

skipif mysql # not compatible
query I rowsort label-8733
SELECT COUNT ( * ) * 25 * 46
----
1150

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT 53 + - 7 - + 96 + + - 93 + + CASE WHEN NOT NULL IS NULL THEN ( + COUNT( * ) ) ELSE + MAX( + - 96 ) END
----
-239

skipif mysql # not compatible
query I rowsort label-8734
SELECT 53 + - 7 - + 96 + + - 93 + + CASE WHEN NOT NULL IS NULL THEN ( + COUNT ( * ) ) ELSE + MAX ( + - 96 ) END
----
-239

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT 46 * COUNT( ALL 34 ) + + 75
----
121

skipif mysql # not compatible
query I rowsort label-8735
SELECT 46 * COUNT ( ALL 34 ) + + 75
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8736
SELECT ALL - COALESCE ( CAST( NULL AS SIGNED ), - 87 + - - 98, + 63 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL - COALESCE ( CAST ( NULL AS INTEGER ), - 87 + - - 98, + 63 ) AS col1
----
-11

query I rowsort
SELECT 65 + - - 98 + + - NULLIF ( - 67, 96 + + 22 * - + 27 / - 8 * 65 * 59 )
----
230

query II rowsort
SELECT 66 col0, + 19 + - - 72
----
66
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8739
SELECT ALL - 46 + - COUNT( * ), + CASE + + CAST( NULL AS SIGNED ) WHEN + 29 THEN 86 + + AVG ( 26 ) ELSE NULL END col1
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-8739
SELECT ALL - 46 + - COUNT ( * ), + CASE + + CAST ( NULL AS INTEGER ) WHEN + 29 THEN 86 + + AVG ( 26 ) ELSE NULL END col1
----
-47
NULL

query II rowsort
SELECT DISTINCT - 13, + 74 * - + 1 AS col2
----
-13
-74

query I rowsort
SELECT + 16 + - + 72
----
-56

query I rowsort
SELECT 75 + - 33 AS col0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT - 95, - MAX( + 25 ) AS col1
----
-95
-25

skipif mysql # not compatible
query II rowsort label-8743
SELECT - 95, - MAX ( + 25 ) AS col1
----
-95
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT 68 + + ( + 64 ) + - + NULLIF ( - 84, + 86 ) * - + COUNT( * ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT 68 + + ( + 64 ) + - + NULLIF ( - 84, + 86 ) * - + COUNT ( * ) AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT + NULLIF ( + + COUNT( * ), + - 53 ) + + + 58 * + 33 + - CAST( + - 6 AS SIGNED ) + - - 46 AS col1
----
1967

skipif mysql # not compatible
query I rowsort label-8745
SELECT + NULLIF ( + + COUNT ( * ), + - 53 ) + + + 58 * + 33 + - CAST ( + - 6 AS INTEGER ) + - - 46 AS col1
----
1967

query II rowsort
SELECT ALL - 54 AS col0, 37 AS col2
----
-54
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + 65 + 28 + - 97 * COALESCE ( - ( - COUNT( * ) ), + COUNT( * ) + - COUNT( * ) ) AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8747
SELECT + 65 + 28 + - 97 * COALESCE ( - ( - COUNT ( * ) ), + COUNT ( * ) + - COUNT ( * ) ) AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT - 83 + + 20 + COUNT( * ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - 83 + + 20 + COUNT ( * ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT ALL + MAX( - - 62 ) AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + MAX ( - - 62 ) AS col1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8750
SELECT + 6 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8750
SELECT + 6 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ALL COUNT( DISTINCT - 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8751
SELECT ALL COUNT ( DISTINCT - 89 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8752
SELECT DISTINCT + CASE - - 80 WHEN - 90 - 31 THEN NULL WHEN + 96 DIV + 23 * + 77 THEN 24 WHEN 4 THEN NULL WHEN 63 THEN NULL ELSE + + 5 DIV + - MAX( 64 ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + CASE - - 80 WHEN - 90 - 31 THEN NULL WHEN + 96 / + 23 * + 77 THEN 24 WHEN 4 THEN NULL WHEN 63 THEN NULL ELSE + + 5 / + - MAX ( 64 ) END AS col0
----
0

query I rowsort
SELECT + 50 - - + 91 + + - 71 AS col2
----
70

query II rowsort
SELECT + 19 AS col2, + 47 + 98
----
19
145

onlyif mysql # DIV for integer division: 
query II rowsort label-8755
SELECT 12 DIV + 92, - 1 + - 69 AS col1
----
0
-70

skipif mysql # not compatible
query II rowsort label-8755
SELECT 12 / + 92, - 1 + - 69 AS col1
----
0
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT ALL 85 DIV ( - 44 )
----
-1

skipif mysql # not compatible
query I rowsort label-8756
SELECT ALL 85 / ( - 44 )
----
-1

query I rowsort
SELECT 83 * + 71 AS col1
----
5893

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT 89 + - COUNT( * )
----
88

skipif mysql # not compatible
query I rowsort label-8758
SELECT 89 + - COUNT ( * )
----
88

query I rowsort
SELECT + 51 * + 0 + - + 1 + + 96
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8760
SELECT COUNT( * ) DIV + 73 AS col0, 45 AS col2
----
0
45

skipif mysql # not compatible
query II rowsort label-8760
SELECT COUNT ( * ) / + 73 AS col0, 45 AS col2
----
0
45

query I rowsort
SELECT DISTINCT + 31 * - 20 * - 28 * - 73 * + + 52
----
-65898560

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT COUNT( * ) * - + 42 * + 77 AS col1
----
-3234

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT COUNT ( * ) * - + 42 * + 77 AS col1
----
-3234

query I rowsort
SELECT ALL - ( + 86 ) AS col2
----
-86

query I rowsort
SELECT 8 * 33 * - 8 AS col2
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT - SUM( DISTINCT 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT - SUM ( DISTINCT 41 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT 53 + + 70 DIV - - NULLIF ( + 22, + 52 + + 78 DIV + ( - COALESCE ( + - 24, - 82, COUNT( * ) ) ) )
----
56

skipif mysql # not compatible
query I rowsort label-8766
SELECT 53 + + 70 / - - NULLIF ( + 22, + 52 + + 78 / + ( - COALESCE ( + - 24, - 82, COUNT ( * ) ) ) )
----
56

query I rowsort
SELECT ALL - ( 46 ) + + 29 AS col1
----
-17

query I rowsort
SELECT 33 * + 91
----
3003

query II rowsort
SELECT ALL 76 + 3, 14 AS col2
----
79
14

query I rowsort
SELECT ALL + 23 + + - NULLIF ( + + 29, + 3 )
----
-6

query II rowsort
SELECT DISTINCT - 69 + 20 AS col2, - 75 AS col1
----
-49
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT DISTINCT - 97 DIV MIN( ALL ( + 66 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - 97 / MIN ( ALL ( + 66 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8773
SELECT 80 DIV + 98 * 45 col1
----
0

skipif mysql # not compatible
query I rowsort label-8773
SELECT 80 / + 98 * 45 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT ALL + ( + 22 ) + + + CASE - 55 WHEN + 74 THEN - COALESCE ( COUNT( * ), 19 + 74 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL + ( + 22 ) + + + CASE - 55 WHEN + 74 THEN - COALESCE ( COUNT ( * ), 19 + 74 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT DISTINCT + COUNT( - + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT + COUNT ( - + 32 )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8776
SELECT ALL + + 37 + + 92 + 54 DIV 76 * - 73 col1, 55 AS col1
----
129
55

skipif mysql # not compatible
query II rowsort label-8776
SELECT ALL + + 37 + + 92 + 54 / 76 * - 73 col1, 55 AS col1
----
129
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT + 4 + + COUNT( * ) - - + 42 col2, - COUNT( * ) * - 40
----
47
40

skipif mysql # not compatible
query II rowsort label-8777
SELECT + 4 + + COUNT ( * ) - - + 42 col2, - COUNT ( * ) * - 40
----
47
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT CASE - 61 WHEN 15 - + + 81 THEN - 19 * MAX( + 72 ) WHEN 46 THEN + - 77 END + COUNT( * ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT CASE - 61 WHEN 15 - + + 81 THEN - 19 * MAX ( + 72 ) WHEN 46 THEN + - 77 END + COUNT ( * ) * - 96
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT - 88 DIV 47 * 85
----
-85

skipif mysql # not compatible
query I rowsort label-8779
SELECT - 88 / 47 * 85
----
-85

query II rowsort
SELECT ALL - - 24 + 62, 78 + - 5 * - + 40 AS col2
----
86
278

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT MAX( 25 ) * - 11 AS col0
----
-275

skipif mysql # not compatible
query I rowsort label-8781
SELECT MAX ( 25 ) * - 11 AS col0
----
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8782
SELECT ALL SUM( - + CAST( NULL AS SIGNED ) ) / 26 + 47 + - 31 - + CAST( NULL AS SIGNED ) + + ( - - 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL SUM ( - + CAST ( NULL AS INTEGER ) ) / 26 + 47 + - 31 - + CAST ( NULL AS INTEGER ) + + ( - - 4 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8783
SELECT - CAST( + 52 AS SIGNED ) - COUNT( * ) AS col0
----
-53

skipif mysql # not compatible
query I rowsort label-8783
SELECT - CAST ( + 52 AS INTEGER ) - COUNT ( * ) AS col0
----
-53

query I rowsort
SELECT - - 85 - 64
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8785
SELECT DISTINCT + SUM( - 94 ) AS col1, - 25
----
-94
-25

skipif mysql # not compatible
query II rowsort label-8785
SELECT DISTINCT + SUM ( - 94 ) AS col1, - 25
----
-94
-25

query I rowsort
SELECT - + 24 + - ( 16 ) AS col1
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8787
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) / 78 + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-8787
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) / 78 + + 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT + 17 - - - COALESCE ( - CAST( + 78 AS SIGNED ), - 87, + - 15 )
----
95

skipif mysql # not compatible
query I rowsort label-8788
SELECT + 17 - - - COALESCE ( - CAST ( + 78 AS INTEGER ), - 87, + - 15 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + 67 * - + 96 * - - MAX( + 36 ) * + - 2
----
463104

skipif mysql # not compatible
query I rowsort label-8789
SELECT + 67 * - + 96 * - - MAX ( + 36 ) * + - 2
----
463104

query I rowsort
SELECT ALL 79 * 73 AS col0
----
5767

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT ALL - COUNT( * ) * - 31
----
31

skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL - COUNT ( * ) * - 31
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8792
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - 12 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-8792
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - 12 AS col0
----
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL + SUM( + 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL + SUM ( + 39 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8794
SELECT + 37 * + + CASE - 42 WHEN - + SUM( DISTINCT - 47 ) THEN NULLIF ( + AVG ( DISTINCT + 78 ), - 25 + - 31 + CAST( NULL AS SIGNED ) + - 22 * + 56 + - MIN( + CASE 67 WHEN CAST( 89 AS DECIMAL ) / + 78 - 92 THEN NULL ELSE - 87 END ) / - 35 + + + ( MAX( DISTINCT 94 ) ) ) WHEN 29 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8794
SELECT + 37 * + + CASE - 42 WHEN - + SUM ( DISTINCT - 47 ) THEN NULLIF ( + AVG ( DISTINCT + 78 ), - 25 + - 31 + CAST ( NULL AS INTEGER ) + - 22 * + 56 + - MIN ( + CASE 67 WHEN CAST ( 89 AS REAL ) / + 78 - 92 THEN NULL ELSE - 87 END ) / - 35 + + + ( MAX ( DISTINCT 94 ) ) ) WHEN 29 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8795
SELECT ALL - 43 * + 89 + + - 18 * CAST( 4 AS SIGNED )
----
-3899

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - 43 * + 89 + + - 18 * CAST ( 4 AS INTEGER )
----
-3899

query I rowsort
SELECT + CASE COALESCE ( - 69, 87 ) WHEN + 3 THEN + + 2 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8797
SELECT + 7 * COALESCE ( + 68, - CAST( - + 96 AS SIGNED ), + 31 - + + 52 )
----
476

skipif mysql # not compatible
query I rowsort label-8797
SELECT + 7 * COALESCE ( + 68, - CAST ( - + 96 AS INTEGER ), + 31 - + + 52 )
----
476

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT CASE - - 4 WHEN + COUNT( * ) THEN - MIN( - 21 ) WHEN + 4 THEN NULL ELSE - 32 / - 83 * + + 85 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8798
SELECT CASE - - 4 WHEN + COUNT ( * ) THEN - MIN ( - 21 ) WHEN + 4 THEN NULL ELSE - 32 / - 83 * + + 85 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT 82 * - - 68 + 35 * - COUNT( * ) AS col1
----
5541

skipif mysql # not compatible
query I rowsort label-8799
SELECT 82 * - - 68 + 35 * - COUNT ( * ) AS col1
----
5541

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8800
SELECT NULLIF ( + - 93, - CASE - 52 WHEN - 63 THEN + 67 ELSE - CAST( COUNT( * ) AS DECIMAL ) - - - 36 - + 20 + - 46 * 17 * 1 END * 96 + + 74 - + 86 * + 85 * - + 16 ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-8800
SELECT NULLIF ( + - 93, - CASE - 52 WHEN - 63 THEN + 67 ELSE - CAST ( COUNT ( * ) AS REAL ) - - - 36 - + 20 + - 46 * 17 * 1 END * 96 + + 74 - + 86 * + 85 * - + 16 ) AS col1
----
-93

query I rowsort
SELECT + 71 + + 20
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT ALL + CAST( NULL AS SIGNED ) * + + CASE - 6 WHEN - 65 THEN - - 92 * 0 - - - COUNT( * ) ELSE NULL END / + - 15 + + MAX( 31 ) + - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT ALL + CAST ( NULL AS INTEGER ) * + + CASE - 6 WHEN - 65 THEN - - 92 * 0 - - - COUNT ( * ) ELSE NULL END / + - 15 + + MAX ( 31 ) + - COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8803
SELECT ALL COALESCE ( + + COUNT( ALL - - CAST( NULL AS SIGNED ) ), 51 ) * + COUNT( * ) + + - CAST( NULL AS SIGNED ) / - 99 + + - 71 AS col0, + ( 83 ) AS col0
----
NULL
83

skipif mysql # not compatible
query II rowsort label-8803
SELECT ALL COALESCE ( + + COUNT ( ALL - - CAST ( NULL AS INTEGER ) ), 51 ) * + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / - 99 + + - 71 AS col0, + ( 83 ) AS col0
----
NULL
83

query I rowsort
SELECT DISTINCT 70 * - 96 AS col2
----
-6720

query II rowsort
SELECT + 23 AS col2, - 50
----
23
-50

query I rowsort
SELECT - 80 * + + ( + + 9 ) - - NULLIF ( + 86, - 71 )
----
-634

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8807
SELECT ALL + - ( + CAST( + 85 AS SIGNED ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + - ( + CAST ( + 85 AS INTEGER ) ) AS col2
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT + 2 + + CAST( NULL AS SIGNED ) + + 84 * ( + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8808
SELECT + 2 + + CAST ( NULL AS INTEGER ) + + 84 * ( + 8 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT - 72 + - COUNT( * ) * + + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8809
SELECT - 72 + - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8810
SELECT - 85 + 45 + 2 AS col1, + 16 + - COALESCE ( COUNT( * ), - + 8 + + - 49 ) * 82
----
-38
-66

skipif mysql # not compatible
query II rowsort label-8810
SELECT - 85 + 45 + 2 AS col1, + 16 + - COALESCE ( COUNT ( * ), - + 8 + + - 49 ) * 82
----
-38
-66

query I rowsort
SELECT - - 89 + + + 27 col0
----
116

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8812
SELECT ALL - CAST( NULL AS DECIMAL ) * + 36 / + 22, - 4 AS col2
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-8812
SELECT ALL - CAST ( NULL AS REAL ) * + 36 / + 22, - 4 AS col2
----
NULL
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT - 61 * + - COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-8813
SELECT - 61 * + - COUNT ( * ) AS col0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8814
SELECT ALL - 92 DIV + 54
----
-1

skipif mysql # not compatible
query I rowsort label-8814
SELECT ALL - 92 / + 54
----
-1

query I rowsort
SELECT + - 12 + - 63
----
-75

query II rowsort
SELECT + 19 AS col0, - 63 AS col2
----
19
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT - 88 + + 13 + MAX( - + 19 )
----
-94

skipif mysql # not compatible
query I rowsort label-8817
SELECT - 88 + + 13 + MAX ( - + 19 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL + COUNT( * ) * + ( 63 ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + COUNT ( * ) * + ( 63 ) AS col2
----
63

query I rowsort
SELECT - + 37 * - 44 AS col1
----
1628

query II rowsort
SELECT - ( + - 14 ) + - + 90 + 79, 38 AS col0
----
3
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8821
SELECT DISTINCT + ( + MIN( DISTINCT + 66 ) ) DIV + 38 AS col1, CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8821
SELECT DISTINCT + ( + MIN ( DISTINCT + 66 ) ) / + 38 AS col1, CAST ( NULL AS INTEGER )
----
1
NULL

query II rowsort
SELECT DISTINCT ( - 8 ) AS col0, + 18
----
-8
18

query II rowsort
SELECT DISTINCT 90 + + 61, - 40 AS col2
----
151
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT DISTINCT - 31 + + NULLIF ( COALESCE ( - 98, 16 ), - + COUNT( * ) )
----
-129

skipif mysql # not compatible
query I rowsort label-8824
SELECT DISTINCT - 31 + + NULLIF ( COALESCE ( - 98, 16 ), - + COUNT ( * ) )
----
-129

onlyif mysql # aggregate syntax: 
query II rowsort label-8825
SELECT - NULLIF ( - SUM( 79 ), - 46 ) AS col1, - 56 * COUNT( * ) + + + 28 * + ( 38 ) + + + COUNT( * ) + - 47 * + COUNT( * ) + 52 AS col0
----
79
1014

skipif mysql # not compatible
query II rowsort label-8825
SELECT - NULLIF ( - SUM ( 79 ), - 46 ) AS col1, - 56 * COUNT ( * ) + + + 28 * + ( 38 ) + + + COUNT ( * ) + - 47 * + COUNT ( * ) + 52 AS col0
----
79
1014

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - COUNT( * ) * - CASE - - NULLIF ( COUNT( * ), - ( - - COUNT( * ) ) ) WHEN - COUNT( * ) THEN + 5 / 50 + + 41 WHEN - MIN( - 73 ) + - + 90 THEN - 6 * - SUM( DISTINCT - + 91 ) WHEN ( 14 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8826
SELECT - COUNT ( * ) * - CASE - - NULLIF ( COUNT ( * ), - ( - - COUNT ( * ) ) ) WHEN - COUNT ( * ) THEN + 5 / 50 + + 41 WHEN - MIN ( - 73 ) + - + 90 THEN - 6 * - SUM ( DISTINCT - + 91 ) WHEN ( 14 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 31 + + + 49 AS col0
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8828
SELECT - 68 DIV COUNT( * ) + MIN( DISTINCT - + 17 ) AS col2, CASE - + 38 WHEN - 59 THEN 33 ELSE + 44 END * + 2 + - + 51 * - 79 * 71 AS col1
----
-85
286147

skipif mysql # not compatible
query II rowsort label-8828
SELECT - 68 / COUNT ( * ) + MIN ( DISTINCT - + 17 ) AS col2, CASE - + 38 WHEN - 59 THEN 33 ELSE + 44 END * + 2 + - + 51 * - 79 * 71 AS col1
----
-85
286147

query II rowsort
SELECT + 83 + + + 98 col2, + ( 53 )
----
181
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8830
SELECT ALL + CAST( 63 AS SIGNED ) DIV + COUNT( * ) + - 96
----
-33

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL + CAST ( 63 AS INTEGER ) / + COUNT ( * ) + - 96
----
-33

query I rowsort
SELECT DISTINCT - 14 * 64 col1
----
-896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), + + 46 * - 27 * + + 89 + - 30 + 1 + - + ( + 74 ) * + - 4 * + 7 - 83 + + 44 + + - 97 / + 23 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), + + 46 * - 27 * + + 89 + - 30 + 1 + - + ( + 74 ) * + - 4 * + 7 - 83 + + 44 + + - 97 / + 23 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL + 96 * + + CASE - 26 WHEN + 65 THEN NULL ELSE - ( + + COUNT( * ) ) - - 60 END
----
5664

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL + 96 * + + CASE - 26 WHEN + 65 THEN NULL ELSE - ( + + COUNT ( * ) ) - - 60 END
----
5664

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8834
SELECT + 47 DIV COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-8834
SELECT + 47 / COUNT ( * )
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT CAST( - 28 AS SIGNED ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-8835
SELECT CAST ( - 28 AS INTEGER ) col2
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT ALL - 56 DIV + + 31 + - 99 AS col0
----
-100

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - 56 / + + 31 + - 99 AS col0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8837
SELECT + CAST( - 18 AS SIGNED ) col1, + ( 32 )
----
-18
32

skipif mysql # not compatible
query II rowsort label-8837
SELECT + CAST ( - 18 AS INTEGER ) col1, + ( 32 )
----
-18
32

query I rowsort
SELECT + - 9 * - 23 * 46
----
9522

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT ALL - 98 * - - SUM( + - 42 ) - + 89
----
4027

skipif mysql # not compatible
query I rowsort label-8839
SELECT ALL - 98 * - - SUM ( + - 42 ) - + 89
----
4027

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT ALL 79 DIV - - 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL 79 / - - 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8841
SELECT DISTINCT - CASE 84 WHEN + CAST( - - 38 AS SIGNED ) THEN - 80 END - COUNT( * ) + + COUNT( * ) AS col1, 35 + - + 31
----
NULL
4

skipif mysql # not compatible
query II rowsort label-8841
SELECT DISTINCT - CASE 84 WHEN + CAST ( - - 38 AS INTEGER ) THEN - 80 END - COUNT ( * ) + + COUNT ( * ) AS col1, 35 + - + 31
----
NULL
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8842
SELECT ALL 62 * - 22 * MAX( ALL + NULLIF ( - - 66, - - 23 - CAST( 81 AS SIGNED ) ) )
----
-90024

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL 62 * - 22 * MAX ( ALL + NULLIF ( - - 66, - - 23 - CAST ( 81 AS INTEGER ) ) )
----
-90024

query I rowsort
SELECT ALL 19 * + 2 - 59 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT + 81 * + MAX( + + 26 ) + + 2
----
2108

skipif mysql # not compatible
query I rowsort label-8844
SELECT + 81 * + MAX ( + + 26 ) + + 2
----
2108

query I rowsort
SELECT ALL ( 6 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT 19 + - MAX( DISTINCT + + 59 ) + 26 + - 2 * - 2 * - COUNT( * ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-8846
SELECT 19 + - MAX ( DISTINCT + + 59 ) + 26 + - 2 * - 2 * - COUNT ( * ) AS col2
----
-18

query I rowsort
SELECT + 25 * + - 15
----
-375

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT CASE WHEN NOT + 20 IN ( + COUNT( * ), - 49 * 74 ) AND ( NULLIF ( 31, + 32 ) ) IS NOT NULL THEN + CAST( NULL AS SIGNED ) * + 20 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT CASE WHEN NOT + 20 IN ( + COUNT ( * ), - 49 * 74 ) AND ( NULLIF ( 31, + 32 ) ) IS NOT NULL THEN + CAST ( NULL AS INTEGER ) * + 20 ELSE NULL END
----
NULL

query I rowsort
SELECT - 52 - - 85 + - 31 - - - 16 * - 11 + - - 77 AS col0
----
255

query I rowsort
SELECT ALL + - 77 * 35
----
-2695

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT - MAX( DISTINCT 65 ) * - 22 + - - COUNT( * )
----
1431

skipif mysql # not compatible
query I rowsort label-8851
SELECT - MAX ( DISTINCT 65 ) * - 22 + - - COUNT ( * )
----
1431

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT + CAST( + 9 AS SIGNED ) + + 85
----
94

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT + CAST ( + 9 AS INTEGER ) + + 85
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT ALL - COALESCE ( - 80, + + 70, + 70 * + 74 + 3, + + 85 ) + COALESCE ( + COUNT( ALL - 17 ), + + 18 * 49 ) * - 52
----
28

skipif mysql # not compatible
query I rowsort label-8853
SELECT ALL - COALESCE ( - 80, + + 70, + 70 * + 74 + 3, + + 85 ) + COALESCE ( + COUNT ( ALL - 17 ), + + 18 * 49 ) * - 52
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8854
SELECT ( - - COALESCE ( 65, + - COUNT( * ), - ( + ( + - CAST( NULL AS SIGNED ) ) ) ) ) + ( + - 12 ) * 12 + + COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-8854
SELECT ( - - COALESCE ( 65, + - COUNT ( * ), - ( + ( + - CAST ( NULL AS INTEGER ) ) ) ) ) + ( + - 12 ) * 12 + + COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 34 * + CASE + 30 WHEN + 2 THEN - - NULLIF ( + 90, - - 23 ) * MIN( - 62 ) - - 99 WHEN + + 32 THEN - 42 + - 4 + 72 * 93 * + - 24 + - + 22 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8855
SELECT 34 * + CASE + 30 WHEN + 2 THEN - - NULLIF ( + 90, - - 23 ) * MIN ( - 62 ) - - 99 WHEN + + 32 THEN - 42 + - 4 + 72 * 93 * + - 24 + - + 22 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT COUNT( * ) - + 8 AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-8856
SELECT COUNT ( * ) - + 8 AS col1
----
-7

query I rowsort
SELECT 24 * - + 75 col2
----
-1800

query I rowsort
SELECT DISTINCT COALESCE ( + 60, + NULLIF ( + 78, 25 ) ) + - - 45 + - 46 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL - MIN( DISTINCT + 12 ) + 81 + - 59 * + 4 AS col2
----
-167

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL - MIN ( DISTINCT + 12 ) + 81 + - 59 * + 4 AS col2
----
-167

query I rowsort
SELECT DISTINCT 77 * 6
----
462

query I rowsort
SELECT ALL 35 - 33 + 69 * + - ( + 77 ) AS col2
----
-5311

query I rowsort
SELECT 33 + + - 85
----
-52

query III rowsort
SELECT + 11 AS col2, + ( + 5 ) AS col1, - 64 AS col1
----
11
5
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT 49 * - 35 * 82 * + SUM( DISTINCT + + 57 )
----
-8015910

skipif mysql # not compatible
query I rowsort label-8864
SELECT 49 * - 35 * 82 * + SUM ( DISTINCT + + 57 )
----
-8015910

onlyif mysql # aggregate syntax: 
query II rowsort label-8865
SELECT COUNT( * ) * - 59 + + ( ( - + 26 ) ) AS col0, + 61 - 43
----
-85
18

skipif mysql # not compatible
query II rowsort label-8865
SELECT COUNT ( * ) * - 59 + + ( ( - + 26 ) ) AS col0, + 61 - 43
----
-85
18

query I rowsort
SELECT ALL + 58 * ( - 58 ) col1
----
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL - CASE - CASE + 68 WHEN + 14 * - 19 THEN + 80 / + CASE ( 81 ) WHEN + + 93 THEN - 13 * + ( + - COUNT( * ) ) * - + 84 * 56 - - 48 + 21 WHEN - ( - - 31 ) THEN NULL ELSE NULL END + - 57 ELSE + - ( - 15 ) END WHEN + 62 + - - 9 THEN NULL WHEN + - 84 THEN 62 ELSE 80 END AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - CASE - CASE + 68 WHEN + 14 * - 19 THEN + 80 / + CASE ( 81 ) WHEN + + 93 THEN - 13 * + ( + - COUNT ( * ) ) * - + 84 * 56 - - 48 + 21 WHEN - ( - - 31 ) THEN NULL ELSE NULL END + - 57 ELSE + - ( - 15 ) END WHEN + 62 + - - 9 THEN NULL WHEN + - 84 THEN 62 ELSE 80 END AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8868
SELECT 72 * - 41 * - - 6 + AVG ( + CAST( + + 64 AS SIGNED ) ) * - + 71 * + COALESCE ( - ( + 59 ), - 60 - + 18 ) - + CAST( NULL AS SIGNED ) + + - NULLIF ( - 31, 81 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8868
SELECT 72 * - 41 * - - 6 + AVG ( + CAST ( + + 64 AS INTEGER ) ) * - + 71 * + COALESCE ( - ( + 59 ), - 60 - + 18 ) - + CAST ( NULL AS INTEGER ) + + - NULLIF ( - 31, 81 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + CASE + 64 WHEN + + COUNT( * ) THEN NULL WHEN + 93 THEN - + 0 * - 58 - + + 2 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8869
SELECT + CASE + 64 WHEN + + COUNT ( * ) THEN NULL WHEN + 93 THEN - + 0 * - 58 - + + 2 ELSE NULL END
----
NULL

query I rowsort
SELECT 13 + - 68 + - + ( + ( - 66 ) )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8871
SELECT COUNT( * ) * 19 + COUNT( * ) * + 22 DIV + ( 68 ) * - + 50 * - 57 + + 23 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-8871
SELECT COUNT ( * ) * 19 + COUNT ( * ) * + 22 / + ( 68 ) * - + 50 * - 57 + + 23 AS col1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8872
SELECT 34 DIV - COALESCE ( - 57, - 23 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-8872
SELECT 34 / - COALESCE ( - 57, - 23 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8873
SELECT + 83 + - 39 * + + 11 AS col0, COUNT( * ) - - 93 AS col2
----
-346
94

skipif mysql # not compatible
query II rowsort label-8873
SELECT + 83 + - 39 * + + 11 AS col0, COUNT ( * ) - - 93 AS col2
----
-346
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT + 41 * + - COUNT( * ) - + ( 22 ) + + COUNT( * ) + + SUM( ALL - ( - - 99 ) ) + - + ( + + COALESCE ( - - 96, - 13 ) ) AS col0
----
-257

skipif mysql # not compatible
query I rowsort label-8874
SELECT + 41 * + - COUNT ( * ) - + ( 22 ) + + COUNT ( * ) + + SUM ( ALL - ( - - 99 ) ) + - + ( + + COALESCE ( - - 96, - 13 ) ) AS col0
----
-257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT DISTINCT - + CAST( 46 AS SIGNED ) + - 71 + - 16 * MAX( 81 ) AS col2
----
-1413

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT - + CAST ( 46 AS INTEGER ) + - 71 + - 16 * MAX ( 81 ) AS col2
----
-1413

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8876
SELECT 82 + + 58 + - - CASE ( + ( + + 16 ) ) WHEN COUNT( * ) - - COUNT( DISTINCT - 64 ) + - - ( + + 7 ) * 70 * CAST( NULL AS SIGNED ) DIV - 82 THEN + - MIN( DISTINCT - 33 ) DIV - + 55 * - 7 ELSE - 84 * - 90 + + 25 * + 8 + COUNT( * ) END AS col2, CAST( NULL AS SIGNED ) * - - COALESCE ( 60, - 96, COUNT( * ) ) + - 57
----
7901
NULL

skipif mysql # not compatible
query II rowsort label-8876
SELECT 82 + + 58 + - - CASE ( + ( + + 16 ) ) WHEN COUNT ( * ) - - COUNT ( DISTINCT - 64 ) + - - ( + + 7 ) * 70 * CAST ( NULL AS INTEGER ) / - 82 THEN + - MIN ( DISTINCT - 33 ) / - + 55 * - 7 ELSE - 84 * - 90 + + 25 * + 8 + COUNT ( * ) END AS col2, CAST ( NULL AS INTEGER ) * - - COALESCE ( 60, - 96, COUNT ( * ) ) + - 57
----
7901
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL - CASE - + COUNT( * ) WHEN + 36 + - 67 THEN NULL ELSE + 18 END * + 85 * - 28 AS col2
----
42840

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - CASE - + COUNT ( * ) WHEN + 36 + - 67 THEN NULL ELSE + 18 END * + 85 * - 28 AS col2
----
42840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8878
SELECT COUNT( * ) DIV COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8878
SELECT COUNT ( * ) / COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT DISTINCT + CASE + 49 WHEN - 46 + MIN( DISTINCT - 0 ) + - - 98 THEN NULL WHEN + 42 THEN + 90 END + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + CASE + 49 WHEN - 46 + MIN ( DISTINCT - 0 ) + - - 98 THEN NULL WHEN + 42 THEN + 90 END + - 95 AS col0
----
NULL

query II rowsort
SELECT ALL 21 AS col2, + 41
----
21
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT CAST( NULL AS SIGNED ) + + 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT CAST ( NULL AS INTEGER ) + + 68 AS col0
----
NULL

query I rowsort
SELECT 43 * - 2
----
-86

query I rowsort
SELECT DISTINCT ( - 58 ) + + - 69 AS col1
----
-127

query II rowsort
SELECT 12, - 89 AS col1
----
12
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL + CASE CAST( 54 AS SIGNED ) WHEN - 38 THEN + 31 * + 10 WHEN 77 THEN + + SUM( DISTINCT 82 ) ELSE NULL END + + - 31 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL + CASE CAST ( 54 AS INTEGER ) WHEN - 38 THEN + 31 * + 10 WHEN 77 THEN + + SUM ( DISTINCT 82 ) ELSE NULL END + + - 31 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT CAST( NULL AS SIGNED ) * 27 * - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT CAST ( NULL AS INTEGER ) * 27 * - 2 AS col2
----
NULL

query II rowsort
SELECT ALL 86 col1, 45 + + 74
----
86
119

onlyif mysql # aggregate syntax: 
query II rowsort label-8888
SELECT DISTINCT 38 AS col0, + MAX( DISTINCT + - 60 )
----
38
-60

skipif mysql # not compatible
query II rowsort label-8888
SELECT DISTINCT 38 AS col0, + MAX ( DISTINCT + - 60 )
----
38
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT COUNT( * ) + - + 81 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-8889
SELECT COUNT ( * ) + - + 81 AS col2
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT ALL CAST( NULL AS SIGNED ) - 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8890
SELECT ALL CAST ( NULL AS INTEGER ) - 49 AS col2
----
NULL

query II rowsort
SELECT 7 AS col2, 27 * + - 10 * + 34 AS col1
----
7
-9180

query I rowsort
SELECT DISTINCT 47 * - 36 * + 38
----
-64296

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT - MAX( + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-8893
SELECT - MAX ( + 46 )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8894
SELECT 68 + + COUNT( + 80 ) AS col0
----
69

skipif mysql # not compatible
query I rowsort label-8894
SELECT 68 + + COUNT ( + 80 ) AS col0
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-8895
SELECT + 6 DIV - + 25
----
0

skipif mysql # not compatible
query I rowsort label-8895
SELECT + 6 / - + 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT COALESCE ( 94, COUNT( * ) )
----
94

skipif mysql # not compatible
query I rowsort label-8896
SELECT COALESCE ( 94, COUNT ( * ) )
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8897
SELECT - ( 11 ), + CASE + 40 WHEN SUM( DISTINCT 98 ) THEN NULL WHEN + + 66 THEN - MIN( CAST( 17 AS SIGNED ) ) END / + - 74 col1
----
-11
NULL

skipif mysql # not compatible
query II rowsort label-8897
SELECT - ( 11 ), + CASE + 40 WHEN SUM ( DISTINCT 98 ) THEN NULL WHEN + + 66 THEN - MIN ( CAST ( 17 AS INTEGER ) ) END / + - 74 col1
----
-11
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8898
SELECT ALL + + COUNT( DISTINCT - - CAST( + - 39 AS DECIMAL ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8898
SELECT ALL + + COUNT ( DISTINCT - - CAST ( + - 39 AS REAL ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT DISTINCT + SUM( - + 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-8899
SELECT DISTINCT + SUM ( - + 9 )
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-8900
SELECT - - 27 DIV - 92 col0, - 74 col1
----
0
-74

skipif mysql # not compatible
query II rowsort label-8900
SELECT - - 27 / - 92 col0, - 74 col1
----
0
-74

query I rowsort
SELECT + ( 50 ) col0
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8902
SELECT - 80 * CAST( NULL AS DECIMAL ) + + - 73 + - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT - 80 * CAST ( NULL AS REAL ) + + - 73 + - + 6
----
NULL

query I rowsort
SELECT ALL + - 24 col2
----
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-8904
SELECT + 71 AS col2, 77 / 14 + - CASE 60 WHEN + 16 + 18 THEN NULL WHEN + - ( 23 ) THEN + - CASE 31 WHEN - 39 - 45 THEN + + COUNT( * ) + + 96 END + + 23 END AS col2
----
71
NULL

skipif mysql # not compatible
query II rowsort label-8904
SELECT + 71 AS col2, 77 / 14 + - CASE 60 WHEN + 16 + 18 THEN NULL WHEN + - ( 23 ) THEN + - CASE 31 WHEN - 39 - 45 THEN + + COUNT ( * ) + + 96 END + + 23 END AS col2
----
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT DISTINCT + COUNT( * ) * - 42 + 14 + + 73 * - + 30 + + 81 + ( - 45 ) AS col2
----
-2182

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT + COUNT ( * ) * - 42 + 14 + + 73 * - + 30 + + 81 + ( - 45 ) AS col2
----
-2182

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL 18 * + - MAX( DISTINCT + 43 ) + - ( - MIN( + + ( - - 40 ) ) ) * + COUNT( * ) + + 32 + - 6 * + + COUNT( * ) * - + 52 AS col2
----
-390

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL 18 * + - MAX ( DISTINCT + 43 ) + - ( - MIN ( + + ( - - 40 ) ) ) * + COUNT ( * ) + + 32 + - 6 * + + COUNT ( * ) * - + 52 AS col2
----
-390

query II rowsort
SELECT DISTINCT + 56, - 82 + 60 * NULLIF ( + 45, CASE + 54 WHEN 16 THEN + 69 END ) AS col0
----
56
2618

onlyif mysql # aggregate syntax: 
query II rowsort label-8908
SELECT 6, + COUNT( * ) col1
----
6
1

skipif mysql # not compatible
query II rowsort label-8908
SELECT 6, + COUNT ( * ) col1
----
6
1

query I rowsort
SELECT DISTINCT - 70 + + 68
----
-2

query I rowsort
SELECT + 90 * - 91
----
-8190

query I rowsort
SELECT DISTINCT 14 + 10 + - 95 + + 15 + + 32 + + 35 * + - 85 AS col2
----
-2999

query I rowsort
SELECT + 54 - - 86 + - - 90 AS col1
----
230

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8913
SELECT - CASE COALESCE ( - COUNT( 20 ), + 41, - 98 + + ( 97 ) ) WHEN - CAST( - + 43 AS DECIMAL ) * - 20 + COUNT( * ) THEN NULL ELSE - - 27 + - COUNT( * ) + - 63 * - + 76 END AS col1
----
-4814

skipif mysql # not compatible
query I rowsort label-8913
SELECT - CASE COALESCE ( - COUNT ( 20 ), + 41, - 98 + + ( 97 ) ) WHEN - CAST ( - + 43 AS REAL ) * - 20 + COUNT ( * ) THEN NULL ELSE - - 27 + - COUNT ( * ) + - 63 * - + 76 END AS col1
----
-4814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8914
SELECT DISTINCT 60 - + + NULLIF ( + + 44, + CAST( + + 87 AS SIGNED ) ) - - + COUNT( * ) + + + 98
----
115

skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT 60 - + + NULLIF ( + + 44, + CAST ( + + 87 AS INTEGER ) ) - - + COUNT ( * ) + + + 98
----
115

query II rowsort
SELECT + 24 * + 43 AS col2, + 81 * + - 26
----
1032
-2106

onlyif mysql # aggregate syntax: 
query II rowsort label-8916
SELECT + MAX( - - 5 ) - - COUNT( * ) - - 6 + + 53 * - - 89 + + + 27 AS col2, 95 - SUM( ALL - 90 ) + + - 78
----
4756
107

skipif mysql # not compatible
query II rowsort label-8916
SELECT + MAX ( - - 5 ) - - COUNT ( * ) - - 6 + + 53 * - - 89 + + + 27 AS col2, 95 - SUM ( ALL - 90 ) + + - 78
----
4756
107

query I rowsort
SELECT + 65 * + ( - ( + 60 ) )
----
-3900

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL MAX( DISTINCT + - ( 21 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL MAX ( DISTINCT + - ( 21 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + - ( - 97 ) * + SUM( ALL - 72 )
----
-6984

skipif mysql # not compatible
query I rowsort label-8919
SELECT + - ( - 97 ) * + SUM ( ALL - 72 )
----
-6984

query I rowsort
SELECT ALL - 19 * 98 AS col1
----
-1862

onlyif mysql # DIV for integer division: 
query I rowsort label-8921
SELECT - 16 DIV + 5 + + 79
----
76

skipif mysql # not compatible
query I rowsort label-8921
SELECT - 16 / + 5 + + 79
----
76

query II rowsort
SELECT 70 * + + 75 + + 9, 18 AS col0
----
5259
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT NULLIF ( + 0, - 33 * 34 * COUNT( * ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8923
SELECT NULLIF ( + 0, - 33 * 34 * COUNT ( * ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT DISTINCT - 26 * - + COUNT( * ) * - 8 + - - COUNT( * ) AS col1
----
-207

skipif mysql # not compatible
query I rowsort label-8924
SELECT DISTINCT - 26 * - + COUNT ( * ) * - 8 + - - COUNT ( * ) AS col1
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8925
SELECT - + COALESCE ( - - 88, + 84, + ( COUNT( * ) ) ) / NULLIF ( + COUNT( * ), + CAST( NULL AS SIGNED ) ) + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT - + COALESCE ( - - 88, + 84, + ( COUNT ( * ) ) ) / NULLIF ( + COUNT ( * ), + CAST ( NULL AS INTEGER ) ) + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT COUNT( * ) * + 54 * MAX( 40 ) + + CAST( + 79 AS SIGNED )
----
2239

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT COUNT ( * ) * + 54 * MAX ( 40 ) + + CAST ( + 79 AS INTEGER )
----
2239

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8927
SELECT - - 29 + CAST( NULL AS DECIMAL ) + + 36 * + + CASE + 15 WHEN - 88 * 10 THEN + 97 - + - COUNT( * ) * + COUNT( * ) + - 31 + + 57 * - 70 WHEN + COUNT( * ) + + + 33 + 66 + + 79 THEN 59 WHEN - - 71 * 9 * - 94 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT - - 29 + CAST ( NULL AS REAL ) + + 36 * + + CASE + 15 WHEN - 88 * 10 THEN + 97 - + - COUNT ( * ) * + COUNT ( * ) + - 31 + + 57 * - 70 WHEN + COUNT ( * ) + + + 33 + 66 + + 79 THEN 59 WHEN - - 71 * 9 * - 94 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - - CASE + ( - 79 ) WHEN + 44 + + - 4 THEN - - MAX( 45 ) ELSE NULL END * SUM( ALL 72 ) + + 33 + + + 13 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT - - CASE + ( - 79 ) WHEN + 44 + + - 4 THEN - - MAX ( 45 ) ELSE NULL END * SUM ( ALL 72 ) + + 33 + + + 13 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8929
SELECT - 27 * 18 + 99, + ( - 7 ) + + COUNT( * ) AS col1
----
-387
-6

skipif mysql # not compatible
query II rowsort label-8929
SELECT - 27 * 18 + 99, + ( - 7 ) + + COUNT ( * ) AS col1
----
-387
-6

query I rowsort
SELECT 79 * + 12 + - 51
----
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8931
SELECT - 74 * + CAST( + COUNT( * ) AS SIGNED ) + - 76 AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-8931
SELECT - 74 * + CAST ( + COUNT ( * ) AS INTEGER ) + - 76 AS col1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + MAX( DISTINCT - 18 ) col0
----
-18

skipif mysql # not compatible
query I rowsort label-8932
SELECT + MAX ( DISTINCT - 18 ) col0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT + NULLIF ( + - 17, - ( + + COUNT( * ) ) / + - CAST( NULL AS SIGNED ) + - - 9 )
----
-17

skipif mysql # not compatible
query I rowsort label-8933
SELECT + NULLIF ( + - 17, - ( + + COUNT ( * ) ) / + - CAST ( NULL AS INTEGER ) + - - 9 )
----
-17

query I rowsort
SELECT - 68 + + + 5 + + 56 + + 91 + 95 * - + 16
----
-1436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL + SUM( - ( + + CAST( NULL AS SIGNED ) ) ) * - + 16 * - + 55 / + - 41 + - 28 - - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL + SUM ( - ( + + CAST ( NULL AS INTEGER ) ) ) * - + 16 * - + 55 / + - 41 + - 28 - - 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT DISTINCT - 29 * + + SUM( - 42 ) - + COUNT( * )
----
1217

skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT - 29 * + + SUM ( - 42 ) - + COUNT ( * )
----
1217

query I rowsort
SELECT - 31 + - - 41
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT ALL - ( + 84 ) * - 82 - MAX( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL - ( + 84 ) * - 82 - MAX ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - ( ( + 30 ) ) * - COALESCE ( + 25, - 66 * - 34 ) + - 45
----
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8940
SELECT ALL CAST( 40 AS SIGNED )
----
40

skipif mysql # not compatible
query I rowsort label-8940
SELECT ALL CAST ( 40 AS INTEGER )
----
40

query I rowsort
SELECT - 36 + + 86 + NULLIF ( + 79, - 36 + + + 14 ) + + 39
----
168

query I rowsort
SELECT + 1 * - 92 * + - ( - 52 ) AS col1
----
-4784

query II rowsort
SELECT - 12 + + 85 - 97 * 72 + + NULLIF ( - + 97, 46 ) * 96 col1, + 14
----
-16223
14

query I rowsort
SELECT - ( + - ( - 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-8945
SELECT 32 AS col1, - COUNT( * ) AS col1
----
32
-1

skipif mysql # not compatible
query II rowsort label-8945
SELECT 32 AS col1, - COUNT ( * ) AS col1
----
32
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT MIN( - 88 ) + + 65 * 61 + + 21 - - + NULLIF ( + NULLIF ( + - 5, 12 * - 27 ), - + COUNT( * ) / - 66 ) - - 49 AS col1
----
3942

skipif mysql # not compatible
query I rowsort label-8946
SELECT MIN ( - 88 ) + + 65 * 61 + + 21 - - + NULLIF ( + NULLIF ( + - 5, 12 * - 27 ), - + COUNT ( * ) / - 66 ) - - 49 AS col1
----
3942

onlyif mysql # DIV for integer division: 
query II rowsort label-8947
SELECT ALL 59 DIV - 98 * - 97 AS col1, 46 AS col0
----
0
46

skipif mysql # not compatible
query II rowsort label-8947
SELECT ALL 59 / - 98 * - 97 AS col1, 46 AS col0
----
0
46

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT 52 DIV + 11 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-8948
SELECT 52 / + 11 AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-8949
SELECT 68 + + + 99 * - 62 AS col0, CASE - 69 WHEN + 71 THEN - + COUNT( * ) / - COUNT( * ) ELSE NULL END + 29 + + 77 * - + 89 / + 33 * - 74
----
-6070
NULL

skipif mysql # not compatible
query II rowsort label-8949
SELECT 68 + + + 99 * - 62 AS col0, CASE - 69 WHEN + 71 THEN - + COUNT ( * ) / - COUNT ( * ) ELSE NULL END + 29 + + 77 * - + 89 / + 33 * - 74
----
-6070
NULL

query II rowsort
SELECT ALL 8, + 53 AS col1
----
8
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT ALL + 6 DIV + - 4 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8951
SELECT ALL + 6 / + - 4 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8952
SELECT ALL 5 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL 5 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL 56 + + 41 + MIN( DISTINCT - 66 ) * + 24
----
-1487

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL 56 + + 41 + MIN ( DISTINCT - 66 ) * + 24
----
-1487

query I rowsort
SELECT - COALESCE ( 64, - ( - 48 ) ) col2
----
-64

query I rowsort
SELECT + 96 + - - 21 col0
----
117

query I rowsort
SELECT - - NULLIF ( - 44, + 66 ) col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8957
SELECT + 9 + COUNT( * ) + + 49 + - - COUNT( * )
----
60

skipif mysql # not compatible
query I rowsort label-8957
SELECT + 9 + COUNT ( * ) + + 49 + - - COUNT ( * )
----
60

query II rowsort
SELECT ALL - 88 + - ( 90 ), - 72 AS col0
----
-178
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT + MAX( - 77 ) * + + 12
----
-924

skipif mysql # not compatible
query I rowsort label-8959
SELECT + MAX ( - 77 ) * + + 12
----
-924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8960
SELECT - 27 / - 31 + 6 / CAST( NULL AS SIGNED ) + - 6 + + 35 AS col0, + 88 * + ( 79 )
----
NULL
6952

skipif mysql # not compatible
query II rowsort label-8960
SELECT - 27 / - 31 + 6 / CAST ( NULL AS INTEGER ) + - 6 + + 35 AS col0, + 88 * + ( 79 )
----
NULL
6952

query I rowsort
SELECT ALL + 44 + + - 18 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT DISTINCT 41 + + + ( COUNT( + 17 ) ) * + 26 * - 2
----
-11

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT 41 + + + ( COUNT ( + 17 ) ) * + 26 * - 2
----
-11

query I rowsort
SELECT ALL + 64 + + 4
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT 88 * + COUNT( - 49 )
----
88

skipif mysql # not compatible
query I rowsort label-8964
SELECT 88 * + COUNT ( - 49 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT ALL MIN( 40 ) + + ( - 64 )
----
-24

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL MIN ( 40 ) + + ( - 64 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + - COUNT( * ) + + + 58
----
57

skipif mysql # not compatible
query I rowsort label-8966
SELECT ALL + - COUNT ( * ) + + + 58
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT + SUM( 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8967
SELECT + SUM ( 33 ) AS col0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8968
SELECT + 25 * - - COUNT( * ) * + SUM( + ( - 92 ) ) * 65 * 33 * + - NULLIF ( - 67, CAST( NULL AS SIGNED ) - - - 43 + + 25 * + COALESCE ( + 37, + - 24 * - 76 - 72, - + 62 ) * - AVG ( - - 52 ) + + 92 )
----
-330544500

skipif mysql # not compatible
query I rowsort label-8968
SELECT + 25 * - - COUNT ( * ) * + SUM ( + ( - 92 ) ) * 65 * 33 * + - NULLIF ( - 67, CAST ( NULL AS INTEGER ) - - - 43 + + 25 * + COALESCE ( + 37, + - 24 * - 76 - 72, - + 62 ) * - AVG ( - - 52 ) + + 92 )
----
-330544500

query I rowsort
SELECT ALL + 12 - - 8
----
20

query I rowsort
SELECT + ( + 86 ) AS col1
----
86

query II rowsort
SELECT 61, + 0 * - - 76 AS col1
----
61
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT COUNT( + - 99 ) * + + 86 DIV 18
----
4

skipif mysql # not compatible
query I rowsort label-8972
SELECT COUNT ( + - 99 ) * + + 86 / 18
----
4

query I rowsort
SELECT - 61 * 38 * - - 99 AS col2
----
-229482

query II rowsort
SELECT DISTINCT + + 26 * + - 8 * 51, 48 AS col2
----
-10608
48

query I rowsort
SELECT ALL - NULLIF ( + - 41, + 4 )
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8976
SELECT ALL NULLIF ( - + 19, 90 + 50 + 83 + - 40 + + 5 + - 68 ) - + - 25 * + - CASE + - 48 WHEN + 49 * 61 * SUM( - 76 ) * + - 85 * 17 + - - 79 + - CAST( NULL AS SIGNED ) / - + CAST( - 21 AS SIGNED ) + - 43 THEN NULL ELSE 93 END AS col0
----
-2344

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL NULLIF ( - + 19, 90 + 50 + 83 + - 40 + + 5 + - 68 ) - + - 25 * + - CASE + - 48 WHEN + 49 * 61 * SUM ( - 76 ) * + - 85 * 17 + - - 79 + - CAST ( NULL AS INTEGER ) / - + CAST ( - 21 AS INTEGER ) + - 43 THEN NULL ELSE 93 END AS col0
----
-2344

query II rowsort
SELECT DISTINCT 96 * + + 25, 68 * 27 + - - 64 * + 25 AS col2
----
2400
3436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8978
SELECT ALL - 37 - 70 - - 72 - - 14, - 21 * - - 0 / - - COUNT( * ) + ( NULLIF ( NULLIF ( - 84, + 34 ), + + 95 ) ) * - NULLIF ( - + CASE - COUNT( * ) WHEN + COUNT( * ) THEN - CAST( NULL AS SIGNED ) WHEN - 17 THEN 85 END, + 20 + - 96 ) / 64 / - 17 AS col2
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-8978
SELECT ALL - 37 - 70 - - 72 - - 14, - 21 * - - 0 / - - COUNT ( * ) + ( NULLIF ( NULLIF ( - 84, + 34 ), + + 95 ) ) * - NULLIF ( - + CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) WHEN - 17 THEN 85 END, + 20 + - 96 ) / 64 / - 17 AS col2
----
-21
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8979
SELECT DISTINCT + 82 DIV 34, - 29 AS col2
----
2
-29

skipif mysql # not compatible
query II rowsort label-8979
SELECT DISTINCT + 82 / 34, - 29 AS col2
----
2
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8980
SELECT CAST( NULL AS DECIMAL ) + + MAX( DISTINCT - 18 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT CAST ( NULL AS REAL ) + + MAX ( DISTINCT - 18 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8981
SELECT 62 DIV - ( - + 49 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8981
SELECT 62 / - ( - + 49 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8982
SELECT CAST( NULL AS SIGNED ) * + - 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT CAST ( NULL AS INTEGER ) * + - 96 AS col2
----
NULL

query I rowsort
SELECT 10 * - 50 * + 39 + - - 70
----
-19430

query I rowsort
SELECT 42 * - NULLIF ( - - 65, 47 - + 38 )
----
-2730

query I rowsort
SELECT 61 + + 77 col2
----
138

query I rowsort
SELECT 68 * + + 53 AS col1
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT 71 + COUNT( * ) - + 51 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-8987
SELECT 71 + COUNT ( * ) - + 51 AS col0
----
21

query I rowsort
SELECT DISTINCT + 20 * - + 58
----
-1160

query I rowsort
SELECT ALL + 2 + + 24 * + 30
----
722

query I rowsort
SELECT 58 * 60 col1
----
3480

query I rowsort
SELECT 93 * + 72 AS col2
----
6696

query I rowsort
SELECT ALL - + 66 + + 79 AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8993
SELECT ALL + CAST( + 41 AS SIGNED ) AS col2, 74 AS col1
----
41
74

skipif mysql # not compatible
query II rowsort label-8993
SELECT ALL + CAST ( + 41 AS INTEGER ) AS col2, 74 AS col1
----
41
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT + CAST( - + 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-8994
SELECT + CAST ( - + 37 AS INTEGER )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT - 60 - SUM( DISTINCT + 14 ) * + 1 * + NULLIF ( 79, 48 - 29 * + 37 * + 26 * - 36 ) - + 17
----
-1183

skipif mysql # not compatible
query I rowsort label-8995
SELECT - 60 - SUM ( DISTINCT + 14 ) * + 1 * + NULLIF ( 79, 48 - 29 * + 37 * + 26 * - 36 ) - + 17
----
-1183

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT ALL - 56 + + SUM( DISTINCT 56 ) + - 64 DIV - 3
----
21

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL - 56 + + SUM ( DISTINCT 56 ) + - 64 / - 3
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8997
SELECT DISTINCT + - MAX( 64 ) DIV + - MIN( + + 76 ) AS col2, - 92 + 33 + - - 27 * - 0 AS col0
----
0
-59

skipif mysql # not compatible
query II rowsort label-8997
SELECT DISTINCT + - MAX ( 64 ) / + - MIN ( + + 76 ) AS col2, - 92 + 33 + - - 27 * - 0 AS col0
----
0
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL 99 * - 43 + COUNT( * ) + - COUNT( * )
----
-4257

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL 99 * - 43 + COUNT ( * ) + - COUNT ( * )
----
-4257

query I rowsort
SELECT ALL + + 11 * - - 65
----
715

query I rowsort
SELECT 26 * 23 AS col1
----
598

query I rowsort
SELECT ALL + - 14 * - - 5 - + 39 AS col2
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT + NULLIF ( 90, 11 * + + COUNT( - + 57 ) + + 45 - + + ( 16 ) ) * - COUNT( * ) + COALESCE ( - 20, - 19 + + 88 ) AS col1
----
-110

skipif mysql # not compatible
query I rowsort label-9002
SELECT + NULLIF ( 90, 11 * + + COUNT ( - + 57 ) + + 45 - + + ( 16 ) ) * - COUNT ( * ) + COALESCE ( - 20, - 19 + + 88 ) AS col1
----
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT 5 + - ( 31 ) DIV 31 col1
----
4

skipif mysql # not compatible
query I rowsort label-9003
SELECT 5 + - ( 31 ) / 31 col1
----
4

query I rowsort
SELECT - 44 * 76 + + + 43
----
-3301

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ( + COUNT( * ) ) * + 56
----
56

skipif mysql # not compatible
query I rowsort label-9005
SELECT ( + COUNT ( * ) ) * + 56
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9006
SELECT COALESCE ( COUNT( * ), + 89 DIV + 0 ) * 72 + + 26 col0
----
98

skipif mysql # not compatible
query I rowsort label-9006
SELECT COALESCE ( COUNT ( * ), + 89 / + 0 ) * 72 + + 26 col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT MAX( - 61 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-9007
SELECT MAX ( - 61 ) AS col0
----
-61

query I rowsort
SELECT ALL 83 * - CASE - + 86 WHEN + 29 - - 56 THEN NULL ELSE + 38 END
----
-3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT + SUM( - 42 ) / - CASE - 61 WHEN 37 THEN CAST( NULL AS SIGNED ) + + CAST( - COUNT( * ) AS SIGNED ) END * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT + SUM ( - 42 ) / - CASE - 61 WHEN 37 THEN CAST ( NULL AS INTEGER ) + + CAST ( - COUNT ( * ) AS INTEGER ) END * + 90 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT - ( + COUNT( * ) ) * + + ( 60 )
----
-60

skipif mysql # not compatible
query I rowsort label-9010
SELECT - ( + COUNT ( * ) ) * + + ( 60 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - SUM( ALL + + 84 ) + - - 69
----
-15

skipif mysql # not compatible
query I rowsort label-9011
SELECT - SUM ( ALL + + 84 ) + - - 69
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT DISTINCT 6 + + 52 + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT 6 + + 52 + COUNT ( * )
----
59

query I rowsort
SELECT ALL 41 + - 11 col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT ALL 0 + + 99 + + 97 + - 24 * - 67 - + COUNT( * ) + + + 19
----
1822

skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL 0 + + 99 + + 97 + - 24 * - 67 - + COUNT ( * ) + + + 19
----
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-9015
SELECT + 23 + - ( - COUNT( * ) )
----
24

skipif mysql # not compatible
query I rowsort label-9015
SELECT + 23 + - ( - COUNT ( * ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9016
SELECT 81 col2, - 68 * - COUNT( * ) + CAST( NULL AS SIGNED ) * + 85 AS col1
----
81
NULL

skipif mysql # not compatible
query II rowsort label-9016
SELECT 81 col2, - 68 * - COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 85 AS col1
----
81
NULL

query II rowsort
SELECT - 58 AS col2, 94
----
-58
94

query II rowsort
SELECT 94, + 59 AS col1
----
94
59

query I rowsort
SELECT ALL + 97 * + 15
----
1455

query I rowsort
SELECT DISTINCT + 86 + + + ( 42 )
----
128

query I rowsort
SELECT - + 16 + + - 75 col2
----
-91

query I rowsort
SELECT DISTINCT - 5 + + - ( + - COALESCE ( - 97, + 64 ) ) * - 63 + 16 AS col1
----
6122

query I rowsort
SELECT ALL + 47 * + - 81 AS col1
----
-3807

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9024
SELECT ALL + - 59 * - CASE + MAX( ALL - ( - - 59 ) ) WHEN 75 * 89 THEN - COUNT( * ) WHEN 63 THEN - - 4 * + + CAST( + + 3 AS SIGNED ) - 90 + 95 ELSE - + 28 / - ( + - CAST( NULL AS SIGNED ) ) END + + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT ALL + - 59 * - CASE + MAX ( ALL - ( - - 59 ) ) WHEN 75 * 89 THEN - COUNT ( * ) WHEN 63 THEN - - 4 * + + CAST ( + + 3 AS INTEGER ) - 90 + 95 ELSE - + 28 / - ( + - CAST ( NULL AS INTEGER ) ) END + + 88 AS col2
----
NULL

query I rowsort
SELECT - + CASE + - 29 WHEN + - AVG ( - 33 ) THEN - + 45 END
----
NULL

query II rowsort
SELECT 9 AS col2, 62 col1
----
9
62

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9027
SELECT - CAST( NULL AS DECIMAL ) + + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9027
SELECT - CAST ( NULL AS REAL ) + + 60
----
NULL

query II rowsort
SELECT 15, - 69 + - - 86 col0
----
15
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT MIN( + 64 ) col1
----
64

skipif mysql # not compatible
query I rowsort label-9029
SELECT MIN ( + 64 ) col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT DISTINCT + MAX( DISTINCT + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9030
SELECT DISTINCT + MAX ( DISTINCT + 65 ) AS col1
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9031
SELECT ALL - - 84 DIV + 37 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL - - 84 / + 37 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9032
SELECT DISTINCT + - 9 AS col2, + CAST( 3 AS SIGNED ) + 47 * + - 34 AS col1
----
-9
-1595

skipif mysql # not compatible
query II rowsort label-9032
SELECT DISTINCT + - 9 AS col2, + CAST ( 3 AS INTEGER ) + 47 * + - 34 AS col1
----
-9
-1595

query I rowsort
SELECT ALL + ( 74 ) AS col0
----
74

query I rowsort
SELECT ALL + 71 * 8
----
568

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - - 65 * 87 * - COUNT( * ) AS col2
----
-5655

skipif mysql # not compatible
query I rowsort label-9035
SELECT - - 65 * 87 * - COUNT ( * ) AS col2
----
-5655

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ( + - COUNT( ALL 30 ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9036
SELECT ( + - COUNT ( ALL 30 ) ) col1
----
-1

query I rowsort
SELECT - 13 * + ( 79 ) AS col2
----
-1027

query I rowsort
SELECT - 72 * 11 col2
----
-792

query I rowsort
SELECT + 78 * - 53 * 8
----
-33072

query I rowsort
SELECT + ( - + 21 )
----
-21

query I rowsort
SELECT ALL + ( 63 ) * - 24 col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL 45 * COUNT( * ) + - 44 + 87 + 37 AS col2
----
125

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL 45 * COUNT ( * ) + - 44 + 87 + 37 AS col2
----
125

query I rowsort
SELECT 11 * + + 60 - 56
----
604

onlyif mysql # aggregate syntax: 
query I rowsort label-9044
SELECT ALL + MIN( DISTINCT + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL + MIN ( DISTINCT + 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT ALL 13 * + NULLIF ( + 71, + CAST( - 19 AS SIGNED ) ) + - ( - - 24 )
----
899

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL 13 * + NULLIF ( + 71, + CAST ( - 19 AS INTEGER ) ) + - ( - - 24 )
----
899

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT ALL 82 * - + COUNT( * ) + + + 85 + - 4 + 64 * 73
----
4671

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL 82 * - + COUNT ( * ) + + + 85 + - 4 + 64 * 73
----
4671

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT NULLIF ( - 61, 43 * 98 * - + 16 - - 14 ) * + CASE WHEN - 81 BETWEEN - ( + 0 ) AND + 68 + - 23 THEN NULL ELSE + ( COUNT( * ) ) END * COUNT( * ) * - SUM( DISTINCT - 88 ) * + + 54 + 44
----
-289828

skipif mysql # not compatible
query I rowsort label-9047
SELECT NULLIF ( - 61, 43 * 98 * - + 16 - - 14 ) * + CASE WHEN - 81 BETWEEN - ( + 0 ) AND + 68 + - 23 THEN NULL ELSE + ( COUNT ( * ) ) END * COUNT ( * ) * - SUM ( DISTINCT - 88 ) * + + 54 + 44
----
-289828

onlyif mysql # DIV for integer division: 
query I rowsort label-9048
SELECT ALL 94 DIV - 88
----
-1

skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL 94 / - 88
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT - COALESCE ( + - 86, - 62 * - + MAX( ALL - 80 ) + + - 6 ) AS col1, 1 + + 55
----
86
56

skipif mysql # not compatible
query II rowsort label-9049
SELECT - COALESCE ( + - 86, - 62 * - + MAX ( ALL - 80 ) + + - 6 ) AS col1, 1 + + 55
----
86
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT + 6 + + - 5 + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 6 + + - 5 + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-9051
SELECT + 64 - + - ( + - COALESCE ( 78, - SUM( - - 41 ) * - - MAX( 42 ) * + + ( - ( - 26 ) ), - 56 * - - 46 + + + 40 ) ) AS col0, SUM( DISTINCT - 92 ) * 59 + + + 9
----
-14
-5419

skipif mysql # not compatible
query II rowsort label-9051
SELECT + 64 - + - ( + - COALESCE ( 78, - SUM ( - - 41 ) * - - MAX ( 42 ) * + + ( - ( - 26 ) ), - 56 * - - 46 + + + 40 ) ) AS col0, SUM ( DISTINCT - 92 ) * 59 + + + 9
----
-14
-5419

query I rowsort
SELECT ALL 69 * 9 + 17 AS col0
----
638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9053
SELECT ALL 58 * + 31 AS col1, + 2 * + - MAX( ALL + 44 ) - - CAST( NULL AS SIGNED ) + + 74
----
1798
NULL

skipif mysql # not compatible
query II rowsort label-9053
SELECT ALL 58 * + 31 AS col1, + 2 * + - MAX ( ALL + 44 ) - - CAST ( NULL AS INTEGER ) + + 74
----
1798
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT + - 20 DIV - 57 + - 22
----
-22

skipif mysql # not compatible
query I rowsort label-9054
SELECT + - 20 / - 57 + - 22
----
-22

query I rowsort
SELECT + - 62 + - 93 AS col0
----
-155

query I rowsort
SELECT DISTINCT 7 * + 80 col1
----
560

query I rowsort
SELECT ALL 12 - + - 21
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9058
SELECT ALL 13 AS col0, CAST( + CAST( + 78 AS SIGNED ) AS SIGNED ) * - 77 AS col1
----
13
-6006

skipif mysql # not compatible
query II rowsort label-9058
SELECT ALL 13 AS col0, CAST ( + CAST ( + 78 AS INTEGER ) AS INTEGER ) * - 77 AS col1
----
13
-6006

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL - COUNT( * ) - 14 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL - COUNT ( * ) - 14 AS col2
----
-15

query I rowsort
SELECT + COALESCE ( - + 70, - 68 ) + + + 75 AS col1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9061
SELECT ALL 52 DIV MIN( + ( + CAST( 92 AS SIGNED ) ) ) * - - 92
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL 52 / MIN ( + ( + CAST ( 92 AS INTEGER ) ) ) * - - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT - MIN( ALL - - 37 ) + + - 44
----
-81

skipif mysql # not compatible
query I rowsort label-9062
SELECT - MIN ( ALL - - 37 ) + + - 44
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-9063
SELECT DISTINCT - - ( + 42 ) DIV - + 59 + - - 2 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT - - ( + 42 ) / - + 59 + - - 2 AS col2
----
2

query II rowsort
SELECT ALL - ( + + 82 ), 3 col2
----
-82
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9065
SELECT - + 44 - - + CAST( NULL AS SIGNED ) + - COUNT( * ) + 27 AS col1, - 74 AS col0
----
NULL
-74

skipif mysql # not compatible
query II rowsort label-9065
SELECT - + 44 - - + CAST ( NULL AS INTEGER ) + - COUNT ( * ) + 27 AS col1, - 74 AS col0
----
NULL
-74

query I rowsort
SELECT ALL + + NULLIF ( 32, + 58 ) AS col0
----
32

query II rowsort
SELECT + 59, + 22 AS col1
----
59
22

query I rowsort
SELECT DISTINCT - + 90 * 47
----
-4230

query I rowsort
SELECT - 99 * 55
----
-5445

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL - COALESCE ( + COUNT( * ), 50 )
----
-1

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - COALESCE ( + COUNT ( * ), 50 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9071
SELECT - 35 * - + 59 * - COUNT( * ) + - 99 + - 56 * - SUM( + 85 ), 80 AS col1
----
2596
80

skipif mysql # not compatible
query II rowsort label-9071
SELECT - 35 * - + 59 * - COUNT ( * ) + - 99 + - 56 * - SUM ( + 85 ), 80 AS col1
----
2596
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT 46 * + ( COUNT( + 79 ) )
----
46

skipif mysql # not compatible
query I rowsort label-9072
SELECT 46 * + ( COUNT ( + 79 ) )
----
46

query I rowsort
SELECT 81 * - + 47
----
-3807

query I rowsort
SELECT ALL + 51 + + + 34 * - 88 col2
----
-2941

query I rowsort
SELECT ALL - 79 + - 79 + - 39
----
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT + CASE - - 65 WHEN + + 66 THEN NULL ELSE NULLIF ( - 77, - - SUM( + 32 ) * 14 ) END * - COUNT( * ) + + 11 + + COUNT( * )
----
89

skipif mysql # not compatible
query I rowsort label-9076
SELECT + CASE - - 65 WHEN + + 66 THEN NULL ELSE NULLIF ( - 77, - - SUM ( + 32 ) * 14 ) END * - COUNT ( * ) + + 11 + + COUNT ( * )
----
89

query I rowsort
SELECT ALL + 16 + + - ( - 64 ) AS col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9078
SELECT DISTINCT - 61 DIV - - 19 col2
----
-3

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT - 61 / - - 19 col2
----
-3

query I rowsort
SELECT DISTINCT + 89 * 68
----
6052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9080
SELECT 71 * + - NULLIF ( - - COUNT( * ), + - COUNT( DISTINCT + COALESCE ( - 9, + 46 ) ) * + COUNT( * ) * + CAST( NULL AS SIGNED ) ) col0
----
-71

skipif mysql # not compatible
query I rowsort label-9080
SELECT 71 * + - NULLIF ( - - COUNT ( * ), + - COUNT ( DISTINCT + COALESCE ( - 9, + 46 ) ) * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) ) col0
----
-71

query I rowsort
SELECT 6 + + 79 AS col1
----
85

query I rowsort
SELECT DISTINCT 88 * + + 99 col1
----
8712

query II rowsort
SELECT DISTINCT - 89 * + + 79, 9 AS col2
----
-7031
9

query I rowsort
SELECT 96 * 68 AS col2
----
6528

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT 8 * + 0 + COUNT( * ) AS col0, 21 AS col2
----
1
21

skipif mysql # not compatible
query II rowsort label-9085
SELECT 8 * + 0 + COUNT ( * ) AS col0, 21 AS col2
----
1
21

query I rowsort
SELECT ALL + 11 - 66 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query III rowsort label-9087
SELECT DISTINCT COUNT( DISTINCT 2 ) AS col0, 50 col2, + + 64 * - 67
----
1
50
-4288

skipif mysql # not compatible
query III rowsort label-9087
SELECT DISTINCT COUNT ( DISTINCT 2 ) AS col0, 50 col2, + + 64 * - 67
----
1
50
-4288

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT - 9 * - 93 * + + 6 * - COALESCE ( - + COUNT( * ), + ( + 11 ) ) - ( - ( - 88 ) ) - 89 * + 27 + 8 AS col1
----
2539

skipif mysql # not compatible
query I rowsort label-9088
SELECT - 9 * - 93 * + + 6 * - COALESCE ( - + COUNT ( * ), + ( + 11 ) ) - ( - ( - 88 ) ) - 89 * + 27 + 8 AS col1
----
2539

query II rowsort
SELECT - 53 * + 84 AS col0, 69 col2
----
-4452
69

query I rowsort
SELECT 42 + + + 89
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT COUNT( ALL 5 )
----
1

skipif mysql # not compatible
query I rowsort label-9091
SELECT COUNT ( ALL 5 )
----
1

query I rowsort
SELECT ( + 88 ) + - 99
----
-11

query I rowsort
SELECT + 20 * - - 87 AS col2
----
1740

query I rowsort
SELECT DISTINCT - 26 * + + 50
----
-1300

onlyif mysql # aggregate syntax: 
query II rowsort label-9095
SELECT DISTINCT + MAX( DISTINCT 66 ) AS col0, + 54 * COUNT( * )
----
66
54

skipif mysql # not compatible
query II rowsort label-9095
SELECT DISTINCT + MAX ( DISTINCT 66 ) AS col0, + 54 * COUNT ( * )
----
66
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9096
SELECT ALL 30 * 58 DIV - 77 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL 30 * 58 / - 77 AS col1
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT 50 DIV - 12 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9097
SELECT 50 / - 12 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT NULLIF ( - COUNT( * ), - COUNT( * ) ) * - 18 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT NULLIF ( - COUNT ( * ), - COUNT ( * ) ) * - 18 * - 55
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9099
SELECT ( - CAST( NULL AS DECIMAL ) ) + ( + + CAST( NULL AS DECIMAL ) ) + - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9099
SELECT ( - CAST ( NULL AS REAL ) ) + ( + + CAST ( NULL AS REAL ) ) + - 36 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT + COUNT( * ) * - MIN( DISTINCT + 5 ) * - MIN( - 38 ) * 70
----
-13300

skipif mysql # not compatible
query I rowsort label-9100
SELECT + COUNT ( * ) * - MIN ( DISTINCT + 5 ) * - MIN ( - 38 ) * 70
----
-13300

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT COUNT( * ) + 78 + + 30 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-9101
SELECT COUNT ( * ) + 78 + + 30 AS col1
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-9102
SELECT - 13, - COUNT( ALL 61 ) AS col2
----
-13
-1

skipif mysql # not compatible
query II rowsort label-9102
SELECT - 13, - COUNT ( ALL 61 ) AS col2
----
-13
-1

query II rowsort
SELECT DISTINCT - 20, ( 47 ) * - + 42 AS col1
----
-20
-1974

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT DISTINCT ( 6 ) + 9 + - CASE - 50 WHEN 76 - ( - 46 ) + + COUNT( * ) * - 70 + + - 15 THEN 6 WHEN - ( 78 ) THEN NULL END + - + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT ( 6 ) + 9 + - CASE - 50 WHEN 76 - ( - 46 ) + + COUNT ( * ) * - 70 + + - 15 THEN 6 WHEN - ( 78 ) THEN NULL END + - + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL - 74 * 99 AS col1
----
-7326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9106
SELECT ALL - NULLIF ( - 74, - - CAST( NULL AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - NULLIF ( - 74, - - CAST ( NULL AS INTEGER ) )
----
74

query I rowsort
SELECT ALL 25 + 72 + + + 29
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT 83 * + - COUNT( + 41 ) * + COUNT( * ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT 83 * + - COUNT ( + 41 ) * + COUNT ( * ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9109
SELECT 10, 70 - - - SUM( 0 ) + - 81 AS col2
----
10
-11

skipif mysql # not compatible
query II rowsort label-9109
SELECT 10, 70 - - - SUM ( 0 ) + - 81 AS col2
----
10
-11

query I rowsort
SELECT 47 * 7 - + 36 * + 65
----
-2011

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL - 75 * - COUNT( * ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL - 75 * - COUNT ( * ) AS col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9112
SELECT ALL - COALESCE ( + 75, + 79, - - CASE - 24 WHEN + 99 + - 91 THEN + 34 WHEN - MIN( 47 ) THEN - + COUNT( * ) + 60 + - 90 * - + 48 + 61 * - 58 DIV - 84 DIV 31 END ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL - COALESCE ( + 75, + 79, - - CASE - 24 WHEN + 99 + - 91 THEN + 34 WHEN - MIN ( 47 ) THEN - + COUNT ( * ) + 60 + - 90 * - + 48 + 61 * - 58 / - 84 / 31 END ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT + ( COUNT( + - 88 ) ) * - + NULLIF ( + COUNT( * ), + 26 ) - 44 * 36 + + 43 + - - 69 AS col1
----
-1473

skipif mysql # not compatible
query I rowsort label-9113
SELECT + ( COUNT ( + - 88 ) ) * - + NULLIF ( + COUNT ( * ), + 26 ) - 44 * 36 + + 43 + - - 69 AS col1
----
-1473

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT 24 col1, COUNT( * ) * 39 AS col1
----
24
39

skipif mysql # not compatible
query II rowsort label-9114
SELECT 24 col1, COUNT ( * ) * 39 AS col1
----
24
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT ALL - 57 * 76 DIV + 98 col0
----
-44

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - 57 * 76 / + 98 col0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-9116
SELECT 97, 77 - + + MAX( - 20 ) AS col2
----
97
97

skipif mysql # not compatible
query II rowsort label-9116
SELECT 97, 77 - + + MAX ( - 20 ) AS col2
----
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL - COUNT( * ) - - + 21 + - 83 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL - COUNT ( * ) - - + 21 + - 83 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9118
SELECT + 46, + CASE - 56 WHEN 47 + 77 + 67 + + 25 THEN - + 36 + - - 15 WHEN + + CASE - + ( + 19 ) WHEN - SUM( DISTINCT - - 18 ) THEN + 93 WHEN - 38 / - 81 - + 96 THEN NULL ELSE CASE - + 2 WHEN - - COUNT( * ) THEN + 62 WHEN + 44 THEN 57 * 10 ELSE NULL END / ( + SUM( DISTINCT + 1 ) ) + + 20 * + - NULLIF ( - 29, 5 ) * 77 * NULLIF ( 98, 40 * COUNT( * ) + ( 60 ) ) + ( - 68 ) / 78 + 70 END THEN NULL ELSE - 33 END AS col0
----
46
-33

skipif mysql # not compatible
query II rowsort label-9118
SELECT + 46, + CASE - 56 WHEN 47 + 77 + 67 + + 25 THEN - + 36 + - - 15 WHEN + + CASE - + ( + 19 ) WHEN - SUM ( DISTINCT - - 18 ) THEN + 93 WHEN - 38 / - 81 - + 96 THEN NULL ELSE CASE - + 2 WHEN - - COUNT ( * ) THEN + 62 WHEN + 44 THEN 57 * 10 ELSE NULL END / ( + SUM ( DISTINCT + 1 ) ) + + 20 * + - NULLIF ( - 29, 5 ) * 77 * NULLIF ( 98, 40 * COUNT ( * ) + ( 60 ) ) + ( - 68 ) / 78 + 70 END THEN NULL ELSE - 33 END AS col0
----
46
-33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9119
SELECT 40 AS col0, CAST( - 43 AS SIGNED ) * + + 37 AS col0
----
40
-1591

skipif mysql # not compatible
query II rowsort label-9119
SELECT 40 AS col0, CAST ( - 43 AS INTEGER ) * + + 37 AS col0
----
40
-1591

onlyif mysql # aggregate syntax: 
query II rowsort label-9120
SELECT ALL - 22 AS col2, - 12 + + - COUNT( 17 )
----
-22
-13

skipif mysql # not compatible
query II rowsort label-9120
SELECT ALL - 22 AS col2, - 12 + + - COUNT ( 17 )
----
-22
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-9121
SELECT DISTINCT - COUNT( * ) AS col2, - ( - 23 )
----
-1
23

skipif mysql # not compatible
query II rowsort label-9121
SELECT DISTINCT - COUNT ( * ) AS col2, - ( - 23 )
----
-1
23

query I rowsort
SELECT ALL - 85 - + - 80 AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9123
SELECT DISTINCT + COUNT( * ) DIV - 11 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT DISTINCT + COUNT ( * ) / - 11 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9124
SELECT COUNT( * ) DIV - 59 + + 26 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9124
SELECT COUNT ( * ) / - 59 + + 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + 77 * COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 77 * COUNT ( * ) AS col1
----
77

query I rowsort
SELECT - 60 + - 92
----
-152

onlyif mysql # aggregate syntax: 
query II rowsort label-9127
SELECT DISTINCT - - 40 * - SUM( 57 ) AS col2, - 84
----
-2280
-84

skipif mysql # not compatible
query II rowsort label-9127
SELECT DISTINCT - - 40 * - SUM ( 57 ) AS col2, - 84
----
-2280
-84

onlyif mysql # aggregate syntax: 
query III rowsort label-9128
SELECT ALL + + MIN( - - 9 ) * 1 + + 83 * - + 0 * 66 AS col1, - 90 * - 49 + - - CASE - - 70 WHEN - + 10 * - 94 + + 88 + MAX( ALL - 18 ) THEN NULL WHEN + - 73 + + - 15 * COALESCE ( - - 77, - 88 ) THEN + - COALESCE ( + + 96, + - 6 ) ELSE NULL END + - + 92 + - + 29 * - - 16 AS col2, + 90
----
9
NULL
90

skipif mysql # not compatible
query III rowsort label-9128
SELECT ALL + + MIN ( - - 9 ) * 1 + + 83 * - + 0 * 66 AS col1, - 90 * - 49 + - - CASE - - 70 WHEN - + 10 * - 94 + + 88 + MAX ( ALL - 18 ) THEN NULL WHEN + - 73 + + - 15 * COALESCE ( - - 77, - 88 ) THEN + - COALESCE ( + + 96, + - 6 ) ELSE NULL END + - + 92 + - + 29 * - - 16 AS col2, + 90
----
9
NULL
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT ALL - CAST( NULL AS SIGNED ) * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL - CAST ( NULL AS INTEGER ) * 57
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9130
SELECT DISTINCT CAST( - ( - CAST( - - 78 AS SIGNED ) ) AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT CAST ( - ( - CAST ( - - 78 AS INTEGER ) ) AS INTEGER )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT DISTINCT 75 + - MAX( ALL - 99 ) AS col2
----
174

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT 75 + - MAX ( ALL - 99 ) AS col2
----
174

query II rowsort
SELECT ALL - 85, 89 * ( + 8 ) + 10 AS col1
----
-85
722

query I rowsort
SELECT DISTINCT + ( + 83 ) AS col1
----
83

query II rowsort
SELECT 47, 83 AS col2
----
47
83

query I rowsort
SELECT + NULLIF ( - + ( - 19 ), + 52 ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-9136
SELECT - - 67 + - 43 * - - 67, COUNT( DISTINCT + 97 ) + - 17 + + 6 * 3 * - MAX( DISTINCT 96 ) AS col0
----
-2814
-1744

skipif mysql # not compatible
query II rowsort label-9136
SELECT - - 67 + - 43 * - - 67, COUNT ( DISTINCT + 97 ) + - 17 + + 6 * 3 * - MAX ( DISTINCT 96 ) AS col0
----
-2814
-1744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT - CAST( + + 15 AS SIGNED )
----
-15

skipif mysql # not compatible
query I rowsort label-9137
SELECT - CAST ( + + 15 AS INTEGER )
----
-15

query I rowsort
SELECT - + 92 * + 89 * - + 47 * - COALESCE ( - + 8, - 58, 99 )
----
3078688

query I rowsort
SELECT + 90 * + - 55
----
-4950

query I rowsort
SELECT ALL 59 + - 77 + + ( 17 ) * + - 64 AS col1
----
-1106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 31
----
NULL

query I rowsort
SELECT ALL 25 + + 21
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9143
SELECT DISTINCT 84 * - - COUNT( * ) * + CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ), 17 AS col0
----
NULL
17

skipif mysql # not compatible
query II rowsort label-9143
SELECT DISTINCT 84 * - - COUNT ( * ) * + CAST ( + CAST ( NULL AS INTEGER ) AS REAL ), 17 AS col0
----
NULL
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT CASE - - 88 WHEN + 26 THEN + 86 WHEN - 27 * 5 + 98 + + - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT CASE - - 88 WHEN + 26 THEN + 86 WHEN - 27 * 5 + 98 + + - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9145
SELECT + 83 + - 1 * - 40 DIV 49 + - + 1
----
82

skipif mysql # not compatible
query I rowsort label-9145
SELECT + 83 + - 1 * - 40 / 49 + - + 1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT ALL 14 * - 81 - MIN( ALL - 57 )
----
-1077

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL 14 * - 81 - MIN ( ALL - 57 )
----
-1077

query I rowsort
SELECT + ( + 34 ) * - - 88
----
2992

query II rowsort
SELECT - 83 * + 63 col1, + 65 AS col2
----
-5229
65

query I rowsort
SELECT DISTINCT + 28 col2
----
28

query I rowsort
SELECT ALL 51 * - + 13 - + - 70 * - - 84
----
5217

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL 29 * CASE + - COUNT( * ) WHEN + - ( - ( - COUNT( * ) ) ) THEN NULL ELSE + 4 END / + + ( 94 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL 29 * CASE + - COUNT ( * ) WHEN + - ( - ( - COUNT ( * ) ) ) THEN NULL ELSE + 4 END / + + ( 94 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT + CAST( - 29 AS SIGNED ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-9152
SELECT + CAST ( - 29 AS INTEGER ) AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT + 75 * - + COUNT( * ) * - SUM( 89 ) AS col1
----
6675

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 75 * - + COUNT ( * ) * - SUM ( 89 ) AS col1
----
6675

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT + COUNT( + ( - + 84 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT + COUNT ( + ( - + 84 ) )
----
1

query I rowsort
SELECT ALL + 76 + + 53
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + + COUNT( * ) - 25
----
-24

skipif mysql # not compatible
query I rowsort label-9156
SELECT + + COUNT ( * ) - 25
----
-24

query I rowsort
SELECT - + ( 10 )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT + 43 + + ( - + 87 ) + - COUNT( * ) * - 47 * + 87 + - 10 * - COUNT( * ) AS col1
----
4055

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT + 43 + + ( - + 87 ) + - COUNT ( * ) * - 47 * + 87 + - 10 * - COUNT ( * ) AS col1
----
4055

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - - 32 * - NULLIF ( - 57, + + COUNT( * ) ) * - + 24 AS col0
----
-43776

skipif mysql # not compatible
query I rowsort label-9159
SELECT - - 32 * - NULLIF ( - 57, + + COUNT ( * ) ) * - + 24 AS col0
----
-43776

query II rowsort
SELECT ALL - - 33 + + 37, + 94 + 14 AS col1
----
70
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT ALL + - 70 * - - COUNT( 15 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-9161
SELECT ALL + - 70 * - - COUNT ( 15 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query III rowsort label-9162
SELECT + 87 + + 16 + - - CASE + 75 WHEN - 27 THEN NULL WHEN - 57 THEN - - 47 * COUNT( * ) + + 45 WHEN + 1 + - 96 THEN + 9 * + - CASE 14 WHEN - 89 * + 37 + 40 THEN 58 / 55 + - 16 * - 4 + 40 / - - 58 ELSE + - 46 END - - + 76 WHEN - - ( + 33 ) THEN 95 ELSE NULL END + 20 col0, 73 AS col1, - 54 AS col1
----
NULL
73
-54

skipif mysql # not compatible
query III rowsort label-9162
SELECT + 87 + + 16 + - - CASE + 75 WHEN - 27 THEN NULL WHEN - 57 THEN - - 47 * COUNT ( * ) + + 45 WHEN + 1 + - 96 THEN + 9 * + - CASE 14 WHEN - 89 * + 37 + 40 THEN 58 / 55 + - 16 * - 4 + 40 / - - 58 ELSE + - 46 END - - + 76 WHEN - - ( + 33 ) THEN 95 ELSE NULL END + 20 col0, 73 AS col1, - 54 AS col1
----
NULL
73
-54

query II rowsort
SELECT - 31 * + + 78, - 48 AS col2
----
-2418
-48

query I rowsort
SELECT DISTINCT + + 3 + + 65 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT - NULLIF ( - COALESCE ( + 14, + COUNT( * ), + 52 ), - + 94 ) + + + 25
----
39

skipif mysql # not compatible
query I rowsort label-9165
SELECT - NULLIF ( - COALESCE ( + 14, + COUNT ( * ), + 52 ), - + 94 ) + + + 25
----
39

query I rowsort
SELECT ALL 31 + + - 90 * - 93 AS col2
----
8401

query I rowsort
SELECT DISTINCT ( + 26 ) AS col1
----
26

query I rowsort
SELECT ALL ( + + 74 ) AS col1
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT ALL CAST( - 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL CAST ( - 49 AS INTEGER )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT + CAST( - ( 95 ) AS SIGNED ) + + - 48 - + 4 + + 79
----
-68

skipif mysql # not compatible
query I rowsort label-9170
SELECT + CAST ( - ( 95 ) AS INTEGER ) + + - 48 - + 4 + + 79
----
-68

query I rowsort
SELECT + 66 + 50 AS col1
----
116

query II rowsort
SELECT 41, - 11 col2
----
41
-11

query I rowsort
SELECT ALL + ( 35 )
----
35

query II rowsort
SELECT DISTINCT + 39 * ( + 79 ) AS col1, - 69 AS col1
----
3081
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT DISTINCT + COUNT( * ) * 50
----
50

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT + COUNT ( * ) * 50
----
50

query I rowsort
SELECT + ( + COALESCE ( + ( - - 97 ), - 49 ) )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9177
SELECT ALL - CAST( NULL AS SIGNED ) / + 76 - + - 67 AS col1, 80
----
NULL
80

skipif mysql # not compatible
query II rowsort label-9177
SELECT ALL - CAST ( NULL AS INTEGER ) / + 76 - + - 67 AS col1, 80
----
NULL
80

query I rowsort
SELECT + 23 * + 87 AS col1
----
2001

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9179
SELECT + 3 * - CAST( - 80 AS SIGNED ) / 40 / + COUNT( 55 ) - - NULLIF ( CAST( NULL AS SIGNED ), + 55 + + 31 - 23 + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + 3 * - CAST ( - 80 AS INTEGER ) / 40 / + COUNT ( 55 ) - - NULLIF ( CAST ( NULL AS INTEGER ), + 55 + + 31 - 23 + 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ( - 41 ) / - + 50 + - 65 + COUNT( * ) * + - 38 + + + CASE - - NULLIF ( + 36, 67 * 84 ) WHEN - + 65 + MAX( DISTINCT + 68 ) THEN - ( + 66 ) + SUM( DISTINCT CASE - 77 WHEN - - 99 + + + 18 / + 33 - - 10 + - 90 THEN + 63 END ) + - 18 * - MAX( 25 ) / 77 END + + - 86 - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9180
SELECT ( - 41 ) / - + 50 + - 65 + COUNT ( * ) * + - 38 + + + CASE - - NULLIF ( + 36, 67 * 84 ) WHEN - + 65 + MAX ( DISTINCT + 68 ) THEN - ( + 66 ) + SUM ( DISTINCT CASE - 77 WHEN - - 99 + + + 18 / + 33 - - 10 + - 90 THEN + 63 END ) + - 18 * - MAX ( 25 ) / 77 END + + - 86 - 97
----
NULL

query I rowsort
SELECT ALL + 66 * + - 74 + - 51 AS col0
----
-4935

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT ALL - 33 * + MAX( + 77 ) + - CASE + - COUNT( * ) WHEN + 45 THEN NULL ELSE 84 END
----
-2625

skipif mysql # not compatible
query I rowsort label-9182
SELECT ALL - 33 * + MAX ( + 77 ) + - CASE + - COUNT ( * ) WHEN + 45 THEN NULL ELSE 84 END
----
-2625

query II rowsort
SELECT - 14 * + - 53 - - 37 AS col0, 40 * - + 45 AS col1
----
779
-1800

query I rowsort
SELECT ALL + ( + + ( 88 ) ) col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL - - COUNT( * ) * ( + 73 ) * 79 * + 71 - 20 + + - 75 + + 19 * + 55
----
410407

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL - - COUNT ( * ) * ( + 73 ) * 79 * + 71 - 20 + + - 75 + + 19 * + 55
----
410407

query I rowsort
SELECT - 66 + 80 + 60 AS col1
----
74

query I rowsort
SELECT - 49 - - - 95 + + - COALESCE ( + - 28, 46 ) AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT + COALESCE ( COUNT( + 94 ), + 50 * 50, + + 23 ) * - 41 * + 46 - + - 19
----
-1867

skipif mysql # not compatible
query I rowsort label-9188
SELECT + COALESCE ( COUNT ( + 94 ), + 50 * 50, + + 23 ) * - 41 * + 46 - + - 19
----
-1867

query I rowsort
SELECT ALL + - 5 + 78 AS col0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9190
SELECT CAST( - - 18 AS SIGNED ) * + 3
----
54

skipif mysql # not compatible
query I rowsort label-9190
SELECT CAST ( - - 18 AS INTEGER ) * + 3
----
54

query I rowsort
SELECT DISTINCT 81 + + 67 * 14 * + - 60 AS col2
----
-56199

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT - NULLIF ( 41, + - 36 + COUNT( + CASE 87 WHEN + 23 + 19 THEN NULL ELSE - + 15 END ) + - 91 )
----
-41

skipif mysql # not compatible
query I rowsort label-9192
SELECT - NULLIF ( 41, + - 36 + COUNT ( + CASE 87 WHEN + 23 + 19 THEN NULL ELSE - + 15 END ) + - 91 )
----
-41

query II rowsort
SELECT - 65 AS col1, + NULLIF ( + 56, 65 )
----
-65
56

query I rowsort
SELECT 90 * + - ( - 94 ) AS col1
----
8460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9195
SELECT 61 + - 74 DIV + 69 + - + 69 * + COUNT( * ) AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-9195
SELECT 61 + - 74 / + 69 + - + 69 * + COUNT ( * ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT ALL - COUNT( * ) - + SUM( - 73 ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - COUNT ( * ) - + SUM ( - 73 ) AS col0
----
72

query I rowsort
SELECT 71 + + 48 + - - 40 * - 74
----
-2841

query II rowsort
SELECT 40 AS col2, - 66 * 41
----
40
-2706

query I rowsort
SELECT 80 * COALESCE ( - - 23, 85 * - NULLIF ( + + 93, - NULLIF ( + 32, + + 10 * - - 33 * - + 26 ) ) ) AS col0
----
1840

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL 42 * - NULLIF ( - + 69, 39 + + - 47 + - 10 * 30 * SUM( ALL 33 ) ) AS col2
----
2898

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 42 * - NULLIF ( - + 69, 39 + + - 47 + - 10 * 30 * SUM ( ALL 33 ) ) AS col2
----
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT 87 - - - NULLIF ( - 10, - + MAX( ALL + - 76 ) )
----
97

skipif mysql # not compatible
query I rowsort label-9201
SELECT 87 - - - NULLIF ( - 10, - + MAX ( ALL + - 76 ) )
----
97

query I rowsort
SELECT ALL - 16 * + 16
----
-256

onlyif mysql # aggregate syntax: 
query II rowsort label-9203
SELECT ALL 84 AS col2, MIN( + + 74 ) * - 64
----
84
-4736

skipif mysql # not compatible
query II rowsort label-9203
SELECT ALL 84 AS col2, MIN ( + + 74 ) * - 64
----
84
-4736

query I rowsort
SELECT 96 + + - CASE WHEN ( NULL ) >= NULL THEN 21 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL + 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + 53 * COUNT ( * )
----
53

query I rowsort
SELECT DISTINCT + 44 * 30 AS col2
----
1320

query II rowsort
SELECT ALL 93 col2, + 20 - + - 87 AS col0
----
93
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9208
SELECT COUNT( * ) * + COUNT( * ) DIV - + NULLIF ( - COUNT( * ), + - 73 + 95 * - 72 + + COUNT( * ) * - CAST( NULL AS SIGNED ) ) AS col0, + 71 AS col1
----
1
71

skipif mysql # not compatible
query II rowsort label-9208
SELECT COUNT ( * ) * + COUNT ( * ) / - + NULLIF ( - COUNT ( * ), + - 73 + 95 * - 72 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) AS col0, + 71 AS col1
----
1
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9209
SELECT 86 + - 51 DIV NULLIF ( + 73, MIN( - 76 ) ) DIV - 61 AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9209
SELECT 86 + - 51 / NULLIF ( + 73, MIN ( - 76 ) ) / - 61 AS col0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-9210
SELECT - 42 DIV - 99 - 91 AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-9210
SELECT - 42 / - 99 - 91 AS col0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9211
SELECT COUNT( * ) - - + 14 + + 5 DIV + 23 AS col0, 58 + + COUNT( * ) + - - 79 * + 71 - - - 38 AS col1, + ( + + 27 )
----
15
5630
27

skipif mysql # not compatible
query III rowsort label-9211
SELECT COUNT ( * ) - - + 14 + + 5 / + 23 AS col0, 58 + + COUNT ( * ) + - - 79 * + 71 - - - 38 AS col1, + ( + + 27 )
----
15
5630
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL - CASE - 43 WHEN + 92 / 79 - 62 THEN + 70 * - + MAX( - 14 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - CASE - 43 WHEN + 92 / 79 - 62 THEN + 70 * - + MAX ( - 14 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9213
SELECT 63 * 3 * NULLIF ( + - 34, + + 72 ) + - COUNT( * ) DIV 44 - 97 AS col1
----
-6523

skipif mysql # not compatible
query I rowsort label-9213
SELECT 63 * 3 * NULLIF ( + - 34, + + 72 ) + - COUNT ( * ) / 44 - 97 AS col1
----
-6523

query I rowsort
SELECT 41 + - - 4 col2
----
45

query I rowsort
SELECT ALL - 37 + + 73 * - - 68 AS col0
----
4927

query I rowsort
SELECT ALL - - 66 + + 78 - - - 62 + + + 76 * 5
----
462

onlyif mysql # aggregate syntax: 
query II rowsort label-9217
SELECT ALL ( + - 49 ) * - MAX( + 34 ) AS col2, 62 - 87
----
1666
-25

skipif mysql # not compatible
query II rowsort label-9217
SELECT ALL ( + - 49 ) * - MAX ( + 34 ) AS col2, 62 - 87
----
1666
-25

query II rowsort
SELECT 29 AS col0, 58 AS col2
----
29
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9219
SELECT ALL 81 + - 53 DIV - COUNT( * ) col1
----
134

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL 81 + - 53 / - COUNT ( * ) col1
----
134

query I rowsort
SELECT 81 * + 32 - + - 29 AS col2
----
2621

query I rowsort
SELECT - 20 * + 94 col2
----
-1880

onlyif mysql # DIV for integer division: 
query I rowsort label-9222
SELECT 54 * - + 51 + - ( - - 48 ) DIV - - 11
----
-2758

skipif mysql # not compatible
query I rowsort label-9222
SELECT 54 * - + 51 + - ( - - 48 ) / - - 11
----
-2758

query I rowsort
SELECT ALL - + 3 col1
----
-3

query I rowsort
SELECT + - ( - 49 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT + 86 * 81 * 32 * 47 * COUNT( * ) AS col0
----
10476864

skipif mysql # not compatible
query I rowsort label-9225
SELECT + 86 * 81 * 32 * 47 * COUNT ( * ) AS col0
----
10476864

onlyif mysql # aggregate syntax: 
query II rowsort label-9226
SELECT ALL + 35 - - 51 + - NULLIF ( + 87, + + 87 - + - ( - + 45 ) ) AS col1, ( + COUNT( * ) ) col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL + 35 - - 51 + - NULLIF ( + 87, + + 87 - + - ( - + 45 ) ) AS col1, ( + COUNT ( * ) ) col1
----
-1
1

query II rowsort
SELECT + 62 AS col2, 22 * 83 AS col0
----
62
1826

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL - + ( + CASE COUNT( * ) WHEN + 47 * - - 40 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - 65 / + - ( - 57 ) + + COALESCE ( ( - NULLIF ( - 32, COALESCE ( COUNT( * ), + ( COUNT( * ) ) + + SUM( DISTINCT + 17 ) ) * + - 84 * + + 24 + - 82 ) ), - - 37 * - - 69 * - - ( + ( - CAST( NULL AS SIGNED ) ) ) ) THEN + + 55 ELSE + 43 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - + ( + CASE COUNT ( * ) WHEN + 47 * - - 40 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - 65 / + - ( - 57 ) + + COALESCE ( ( - NULLIF ( - 32, COALESCE ( COUNT ( * ), + ( COUNT ( * ) ) + + SUM ( DISTINCT + 17 ) ) * + - 84 * + + 24 + - 82 ) ), - - 37 * - - 69 * - - ( + ( - CAST ( NULL AS INTEGER ) ) ) ) THEN + + 55 ELSE + 43 END ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9229
SELECT + 13 DIV - 81 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-9229
SELECT + 13 / - 81 + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT DISTINCT + COUNT( ALL 10 )
----
1

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + COUNT ( ALL 10 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - 80 - - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-9231
SELECT - 80 - - COUNT ( * )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9232
SELECT 97 + + CAST( NULL AS SIGNED ) AS col1, + 7 + - CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9232
SELECT 97 + + CAST ( NULL AS INTEGER ) AS col1, + 7 + - CAST ( NULL AS INTEGER )
----
NULL
NULL

query I rowsort
SELECT ALL 54 * 10 col1
----
540

query I rowsort
SELECT 71 * + 0
----
0

query I rowsort
SELECT DISTINCT 1 * - 92 * 99
----
-9108

onlyif mysql # DIV for integer division: 
query I rowsort label-9236
SELECT ALL 19 * 2 DIV - - 81
----
0

skipif mysql # not compatible
query I rowsort label-9236
SELECT ALL 19 * 2 / - - 81
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT 15 * - + 0 * - ( - COUNT( + ( 88 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9237
SELECT 15 * - + 0 * - ( - COUNT ( + ( 88 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL 88 + 54 * - + ( COUNT( * ) ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL 88 + 54 * - + ( COUNT ( * ) ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT - COUNT( DISTINCT + 76 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9239
SELECT - COUNT ( DISTINCT + 76 ) AS col1
----
-1

query I rowsort
SELECT 31 + 80 - + - 92 * + 44 - - 94
----
4253

query I rowsort
SELECT ALL - 49 * + 60 + - - ( - - ( - - 13 ) )
----
-2927

onlyif mysql # aggregate syntax: 
query II rowsort label-9242
SELECT ALL COUNT( * ) * + + 64, 72 AS col0
----
64
72

skipif mysql # not compatible
query II rowsort label-9242
SELECT ALL COUNT ( * ) * + + 64, 72 AS col0
----
64
72

query I rowsort
SELECT 31 * + 21 AS col2
----
651

query I rowsort
SELECT DISTINCT - 97 * + 27
----
-2619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT ALL + COALESCE ( - 96, + CASE + - 7 WHEN + + AVG ( - 45 ) THEN + 84 WHEN - 73 + + 55 - + 60 * + 44 + + - ( 52 ) + - 23 THEN + 60 WHEN - 49 * + COUNT( ALL + - 95 ) THEN + - SUM( 49 ) * 42 END - + 43 DIV - 6 ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9245
SELECT ALL + COALESCE ( - 96, + CASE + - 7 WHEN + + AVG ( - 45 ) THEN + 84 WHEN - 73 + + 55 - + 60 * + 44 + + - ( 52 ) + - 23 THEN + 60 WHEN - 49 * + COUNT ( ALL + - 95 ) THEN + - SUM ( 49 ) * 42 END - + 43 / - 6 ) AS col1
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9246
SELECT + 55 DIV COUNT( * ) + + - COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9246
SELECT + 55 / COUNT ( * ) + + - COUNT ( * ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9247
SELECT 3 * + 20 + + MAX( + 95 ) * + 52, - CAST( 98 AS SIGNED ) DIV + + 35 + + 27 AS col0
----
5000
25

skipif mysql # not compatible
query II rowsort label-9247
SELECT 3 * + 20 + + MAX ( + 95 ) * + 52, - CAST ( 98 AS INTEGER ) / + + 35 + + 27 AS col0
----
5000
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + - NULLIF ( 99, COUNT( DISTINCT ( - 82 ) ) ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + - NULLIF ( 99, COUNT ( DISTINCT ( - 82 ) ) ) col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL - COUNT( * ) * + CASE + + 62 WHEN + - 82 THEN NULL ELSE COUNT( * ) END + - 0 + 36 - 92
----
-57

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - COUNT ( * ) * + CASE + + 62 WHEN + - 82 THEN NULL ELSE COUNT ( * ) END + - 0 + 36 - 92
----
-57

query I rowsort
SELECT ALL + - 54 AS col1
----
-54

query I rowsort
SELECT + + ( 65 ) * + - 46 + + - 54 * 51 * + 48 - 10 AS col0
----
-135192

query I rowsort
SELECT ALL + - COALESCE ( + 90, + - 47 + + 30 + - - ( + 32 ) ) col2
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9253
SELECT + 11 + - NULLIF ( 66, - 52 / - 98 + + 99 + - CAST( - AVG ( 38 ) AS DECIMAL ) + - 67 * + 39 * - + 97 * - 77 ) + - ( + + 97 ) AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-9253
SELECT + 11 + - NULLIF ( 66, - 52 / - 98 + + 99 + - CAST ( - AVG ( 38 ) AS REAL ) + - 67 * + 39 * - + 97 * - 77 ) + - ( + + 97 ) AS col1
----
-152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9254
SELECT ALL + 73 * - - COALESCE ( 31, 87 ) * + 85 - COUNT( * ) - - - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL + 73 * - - COALESCE ( 31, 87 ) * + 85 - COUNT ( * ) - - - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + + 93 * + 22 * + COALESCE ( + - 17, 44 + COUNT( * ) + 63 ) * + 30 * - 40
----
41738400

skipif mysql # not compatible
query I rowsort label-9255
SELECT + + 93 * + 22 * + COALESCE ( + - 17, 44 + COUNT ( * ) + 63 ) * + 30 * - 40
----
41738400

query II rowsort
SELECT ALL 62, 52 AS col2
----
62
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT DISTINCT CASE 89 WHEN + + COUNT( * ) - 83 + + - 70 THEN 88 WHEN - 55 + - 15 + + 72 * + - COUNT( * ) + - NULLIF ( 88, - 32 ) * - ( + - COUNT( * ) ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT CASE 89 WHEN + + COUNT ( * ) - 83 + + - 70 THEN 88 WHEN - 55 + - 15 + + 72 * + - COUNT ( * ) + - NULLIF ( 88, - 32 ) * - ( + - COUNT ( * ) ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT - COUNT( * ) AS col1, - 68 AS col2
----
-1
-68

skipif mysql # not compatible
query II rowsort label-9258
SELECT - COUNT ( * ) AS col1, - 68 AS col2
----
-1
-68

query II rowsort
SELECT DISTINCT 20 AS col2, + 97 * + 20
----
20
1940

query I rowsort
SELECT + 89 + 47
----
136

query I rowsort
SELECT ALL 1 * - 50 * - ( - 24 ) AS col0
----
-1200

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT ALL 13 + - + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL 13 + - + COUNT ( * ) AS col2
----
12

query II rowsort
SELECT 46 col1, + 80 AS col2
----
46
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT + CAST( - COUNT( 89 ) AS SIGNED ) + + 43 + 1 * ( - CAST( NULL AS SIGNED ) ) * - 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT + CAST ( - COUNT ( 89 ) AS INTEGER ) + + 43 + 1 * ( - CAST ( NULL AS INTEGER ) ) * - 33 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9265
SELECT ALL 65 + + 38 + NULLIF ( + 36, COUNT( DISTINCT - 45 ) DIV NULLIF ( COALESCE ( + 57, - 62 * + 83 + - NULLIF ( - 4, CAST( NULL AS SIGNED ) + - - 84 + - 23 + 45 ) + 41 + - 37 + + 50 * 60 + - - 66, 55 + + + 16 ), - 48 ) * + 92 + - + 60 DIV COUNT( * ) - - - COUNT( * ) ) DIV + 33 AS col2
----
104

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL 65 + + 38 + NULLIF ( + 36, COUNT ( DISTINCT - 45 ) / NULLIF ( COALESCE ( + 57, - 62 * + 83 + - NULLIF ( - 4, CAST ( NULL AS INTEGER ) + - - 84 + - 23 + 45 ) + 41 + - 37 + + 50 * 60 + - - 66, 55 + + + 16 ), - 48 ) * + 92 + - + 60 / COUNT ( * ) - - - COUNT ( * ) ) / + 33 AS col2
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + SUM( DISTINCT + 66 ) + COALESCE ( + + COUNT( * ), - - 99 ) AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9266
SELECT + SUM ( DISTINCT + 66 ) + COALESCE ( + + COUNT ( * ), - - 99 ) AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT + 64 - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-9267
SELECT + 64 - - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL COUNT( * ) + ( - + 23 ) + - + 81 + + 11
----
-92

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL COUNT ( * ) + ( - + 23 ) + - + 81 + + 11
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT ALL COUNT( * ) * + + 59 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL COUNT ( * ) * + + 59 AS col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT DISTINCT COUNT( DISTINCT - 78 ) + + 38 col2
----
39

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT COUNT ( DISTINCT - 78 ) + + 38 col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9271
SELECT ALL + 36 DIV COUNT( * ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL + 36 / COUNT ( * ) AS col0
----
36

query I rowsort
SELECT - + 98 * - + 36 * - - 61 AS col2
----
215208

query I rowsort
SELECT + + 29 + 66 AS col2
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9274
SELECT ALL + - 58, COUNT( * ) * - COUNT( * ) col1
----
-58
-1

skipif mysql # not compatible
query II rowsort label-9274
SELECT ALL + - 58, COUNT ( * ) * - COUNT ( * ) col1
----
-58
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT ALL - 60 DIV - 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9275
SELECT ALL - 60 / - 67 AS col0
----
0

query I rowsort
SELECT - 2 + - 34
----
-36

query I rowsort
SELECT + ( + 26 ) * + 30 col1
----
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT 74 * - 53 * + + 18 + + 57 + - 78 + - 25 * 54 + + + 84 + - - 25 * - + 82 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9278
SELECT 74 * - 53 * + + 18 + + 57 + - 78 + - 25 * 54 + + + 84 + - - 25 * - + 82 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL + 55 DIV 5 + - 58 - + - 0 + + 30
----
-17

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL + 55 / 5 + - 58 - + - 0 + + 30
----
-17

onlyif mysql # aggregate syntax: 
query III rowsort label-9280
SELECT ALL + - COUNT( * ) AS col2, 3 + - - ( CASE CASE - + 14 WHEN - + COALESCE ( + 30, COUNT( * ) ) THEN - 9 + + - 64 END WHEN - NULLIF ( - AVG ( + 47 ), + COUNT( * ) ) THEN NULL ELSE + - 80 + COUNT( * ) + + 56 - - 52 END ) + + 99 + + 38, 97 AS col2
----
-1
169
97

skipif mysql # not compatible
query III rowsort label-9280
SELECT ALL + - COUNT ( * ) AS col2, 3 + - - ( CASE CASE - + 14 WHEN - + COALESCE ( + 30, COUNT ( * ) ) THEN - 9 + + - 64 END WHEN - NULLIF ( - AVG ( + 47 ), + COUNT ( * ) ) THEN NULL ELSE + - 80 + COUNT ( * ) + + 56 - - 52 END ) + + 99 + + 38, 97 AS col2
----
-1
169
97

onlyif mysql # DIV for integer division: 
query II rowsort label-9281
SELECT + + 91 DIV - + 94 - - NULLIF ( 45, 14 ) + - 49 + 30 * + - 6 AS col2, + 74 AS col1
----
-184
74

skipif mysql # not compatible
query II rowsort label-9281
SELECT + + 91 / - + 94 - - NULLIF ( 45, 14 ) + - 49 + 30 * + - 6 AS col2, + 74 AS col1
----
-184
74

query I rowsort
SELECT ALL + 82 * + 73 AS col0
----
5986

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT - COUNT( DISTINCT - 25 ) * 36 + + + 63 col2
----
27

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - COUNT ( DISTINCT - 25 ) * 36 + + + 63 col2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9284
SELECT - CAST( - - 12 AS SIGNED )
----
-12

skipif mysql # not compatible
query I rowsort label-9284
SELECT - CAST ( - - 12 AS INTEGER )
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT + + CAST( - - 26 AS SIGNED )
----
26

skipif mysql # not compatible
query I rowsort label-9285
SELECT + + CAST ( - - 26 AS INTEGER )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - MAX( + 52 ) + COALESCE ( - + 88, + + 60 ) AS col2
----
-140

skipif mysql # not compatible
query I rowsort label-9286
SELECT - MAX ( + 52 ) + COALESCE ( - + 88, + + 60 ) AS col2
----
-140

query I rowsort
SELECT - 32 + + 55 AS col1
----
23

query II rowsort
SELECT + 31 AS col0, + 28 + + 13
----
31
41

query II rowsort
SELECT ALL + 92, - 33 AS col0
----
92
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT + COUNT( - 75 ) * + 99
----
99

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT + COUNT ( - 75 ) * + 99
----
99

query I rowsort
SELECT - 7 + - 53
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL 93 * 58 + COUNT( * ) + - 88 AS col0
----
5307

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL 93 * 58 + COUNT ( * ) + - 88 AS col0
----
5307

query I rowsort
SELECT + 1 + - - 3
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-9294
SELECT - CASE + + 1 WHEN + 22 THEN NULL ELSE 81 + 90 * 5 * - - 27 END AS col2, 45 DIV + 52 AS col0
----
-12231
0

skipif mysql # not compatible
query II rowsort label-9294
SELECT - CASE + + 1 WHEN + 22 THEN NULL ELSE 81 + 90 * 5 * - - 27 END AS col2, 45 / + 52 AS col0
----
-12231
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT DISTINCT ( - 93 ) + + + COUNT( * )
----
-92

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT ( - 93 ) + + + COUNT ( * )
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT - CASE MAX( + - 1 ) WHEN - - 18 THEN NULL WHEN - 71 THEN + 73 * 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9296
SELECT - CASE MAX ( + - 1 ) WHEN - - 18 THEN NULL WHEN - 71 THEN + 73 * 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + 41 * + CASE + 76 WHEN COUNT( + 35 ) + + 69 THEN NULL WHEN 39 THEN - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT + 41 * + CASE + 76 WHEN COUNT ( + 35 ) + + 69 THEN NULL WHEN 39 THEN - 43 END
----
NULL

query I rowsort
SELECT - NULLIF ( - 50, + - 99 )
----
50

query I rowsort
SELECT ALL - 95 + - 84
----
-179

query I rowsort
SELECT ALL 88 * 79 AS col1
----
6952

query I rowsort
SELECT 21 * - + 98
----
-2058

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT - 30 * COUNT( * ) + 36
----
6

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - 30 * COUNT ( * ) + 36
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT DISTINCT + SUM( ALL + - 47 ), ( - 27 ) AS col2
----
-47
-27

skipif mysql # not compatible
query II rowsort label-9303
SELECT DISTINCT + SUM ( ALL + - 47 ), ( - 27 ) AS col2
----
-47
-27

query I rowsort
SELECT + 39 * + 88 AS col1
----
3432

query I rowsort
SELECT ALL + 86 * + - 6 AS col1
----
-516

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT ALL 27 * - COUNT( * ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL 27 * - COUNT ( * ) AS col2
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9307
SELECT + CASE - - 36 WHEN - 58 * - 3 - + AVG ( DISTINCT CASE - 69 WHEN 82 + - 78 THEN NULL WHEN 64 THEN - 63 + + + 97 END ) THEN NULL WHEN 16 - - COALESCE ( 43, 70 ) * 67 THEN - COUNT( * ) ELSE + - COUNT( * ) END AS col1, CASE - + 42 WHEN - - 12 THEN + CAST( 29 AS SIGNED ) + - 52 ELSE + + COUNT( * ) END AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-9307
SELECT + CASE - - 36 WHEN - 58 * - 3 - + AVG ( DISTINCT CASE - 69 WHEN 82 + - 78 THEN NULL WHEN 64 THEN - 63 + + + 97 END ) THEN NULL WHEN 16 - - COALESCE ( 43, 70 ) * 67 THEN - COUNT ( * ) ELSE + - COUNT ( * ) END AS col1, CASE - + 42 WHEN - - 12 THEN + CAST ( 29 AS INTEGER ) + - 52 ELSE + + COUNT ( * ) END AS col1
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9308
SELECT - 75 * + 42 + + - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT - 75 * + 42 + + - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9309
SELECT DISTINCT + 15 DIV 45 AS col1, 25 * + - COUNT( ALL + 79 )
----
0
-25

skipif mysql # not compatible
query II rowsort label-9309
SELECT DISTINCT + 15 / 45 AS col1, 25 * + - COUNT ( ALL + 79 )
----
0
-25

query I rowsort
SELECT - 84 * + 17 + - ( + + 79 ) - - + ( + 41 ) col0
----
-1466

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9311
SELECT ALL 72 DIV + CAST( 59 AS SIGNED ) - + 92 * - - 77 AS col1
----
-7083

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL 72 / + CAST ( 59 AS INTEGER ) - + 92 * - - 77 AS col1
----
-7083

query I rowsort
SELECT - 42 * + 77 * - 31
----
100254

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9313
SELECT - 75 * + COUNT( * ) * + - COUNT( * ) + + CAST( NULL AS SIGNED ) * COALESCE ( + 13, + - NULLIF ( + - 0, + 27 ) ) * + 86 + + SUM( - + 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 75 * + COUNT ( * ) * + - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * COALESCE ( + 13, + - NULLIF ( + - 0, + 27 ) ) * + 86 + + SUM ( - + 30 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9314
SELECT ALL - ( + ( - 13 ) ) * 66 AS col0, ( - CASE - + COUNT( * ) WHEN + - SUM( ALL - 22 ) + - 59 THEN + + 53 + 62 + - 46 + + - 59 * - 77 * 64 + ( - 21 ) + + 87 * + - 25 / - 91 * + CAST( + 79 AS SIGNED ) * COUNT( * ) END ) + + 46 + ( - 85 ) - + + ( + 3 ) AS col2
----
858
NULL

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL - ( + ( - 13 ) ) * 66 AS col0, ( - CASE - + COUNT ( * ) WHEN + - SUM ( ALL - 22 ) + - 59 THEN + + 53 + 62 + - 46 + + - 59 * - 77 * 64 + ( - 21 ) + + 87 * + - 25 / - 91 * + CAST ( + 79 AS INTEGER ) * COUNT ( * ) END ) + + 46 + ( - 85 ) - + + ( + 3 ) AS col2
----
858
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT ALL - 10 DIV + - 11 * 75
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT ALL - 10 / + - 11 * 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9316
SELECT DISTINCT COUNT( * ) + 17 + - - 12 + - - MAX( - - 32 ) col1
----
62

skipif mysql # not compatible
query I rowsort label-9316
SELECT DISTINCT COUNT ( * ) + 17 + - - 12 + - - MAX ( - - 32 ) col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT + + 7 * + + 89 - + 64 DIV - 41 + - 74 * + - 63 AS col0
----
5286

skipif mysql # not compatible
query I rowsort label-9317
SELECT + + 7 * + + 89 - + 64 / - 41 + - 74 * + - 63 AS col0
----
5286

query I rowsort
SELECT DISTINCT - COALESCE ( + - 80, 26 * 72 * 60, - 72 ) + - ( - 44 ) AS col0
----
124

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9319
SELECT 6 DIV NULLIF ( - + COUNT( * ), 61 DIV SUM( ALL + + 79 ) + + 88 + COUNT( * ) ) AS col1, 99 * + - 94 * 40 + 23
----
-6
-372217

skipif mysql # not compatible
query II rowsort label-9319
SELECT 6 / NULLIF ( - + COUNT ( * ), 61 / SUM ( ALL + + 79 ) + + 88 + COUNT ( * ) ) AS col1, 99 * + - 94 * 40 + 23
----
-6
-372217

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT ALL + CASE COUNT( * ) WHEN + 61 THEN - 28 + + + 49 END + + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9320
SELECT ALL + CASE COUNT ( * ) WHEN + 61 THEN - 28 + + + 49 END + + + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT NULLIF ( + - 64, - 29 + + - NULLIF ( + ( - COUNT( * ) ), + ( + 19 ) * + 53 ) + + - ( - - 26 ) / + 18 ) * 32 + 49
----
-1999

skipif mysql # not compatible
query I rowsort label-9321
SELECT NULLIF ( + - 64, - 29 + + - NULLIF ( + ( - COUNT ( * ) ), + ( + 19 ) * + 53 ) + + - ( - - 26 ) / + 18 ) * 32 + 49
----
-1999

query I rowsort
SELECT DISTINCT + 81 + - - 91
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT + CASE - 40 WHEN - 1 + + 12 THEN - 75 * - MAX( + 94 ) + 67 + + 90 * - 88 END + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT + CASE - 40 WHEN - 1 + + 12 THEN - 75 * - MAX ( + 94 ) + 67 + + 90 * - 88 END + COUNT ( * )
----
NULL

query I rowsort
SELECT 24 * 77
----
1848

query I rowsort
SELECT ALL + 36 * + - NULLIF ( - 24, + - 52 * + - 64 - + - 32 )
----
864

query II rowsort
SELECT DISTINCT - ( + - 43 ) + 58, - 45 AS col0
----
101
-45

query II rowsort
SELECT DISTINCT 47 * 45 * 69 AS col2, 34
----
145935
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT 11 + ( - SUM( 67 ) )
----
-56

skipif mysql # not compatible
query I rowsort label-9328
SELECT 11 + ( - SUM ( 67 ) )
----
-56

query I rowsort
SELECT 14 * - 2 AS col2
----
-28

query II rowsort
SELECT - 0 col0, 40 + - + 76 AS col0
----
0
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL + 64 - + COUNT( * ) * 49 + - - 39
----
54

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + 64 - + COUNT ( * ) * 49 + - - 39
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT + 14 + + - 48 - - 47 * - ( + + COUNT( * ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-9332
SELECT + 14 + + - 48 - - 47 * - ( + + COUNT ( * ) ) AS col0
----
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9333
SELECT ALL - 77 DIV - - COALESCE ( 5, + 40 * 91 + 92 - - CAST( NULL AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL - 77 / - - COALESCE ( 5, + 40 * 91 + 92 - - CAST ( NULL AS INTEGER ) )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT 70 + 40 + - 17 * - SUM( + + 99 )
----
1793

skipif mysql # not compatible
query I rowsort label-9334
SELECT 70 + 40 + - 17 * - SUM ( + + 99 )
----
1793

query I rowsort
SELECT DISTINCT - NULLIF ( + 30, 17 + + - 61 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9336
SELECT - 64 + - - 14 * - 78 AS col0, NULLIF ( - - 49, + 50 * SUM( DISTINCT + 75 ) ) AS col1
----
-1156
49

skipif mysql # not compatible
query II rowsort label-9336
SELECT - 64 + - - 14 * - 78 AS col0, NULLIF ( - - 49, + 50 * SUM ( DISTINCT + 75 ) ) AS col1
----
-1156
49

query I rowsort
SELECT 4 + - 45 AS col2
----
-41

query I rowsort
SELECT - 73 * - + 74 AS col2
----
5402

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT 62 + + + SUM( ( - + 59 ) )
----
3

skipif mysql # not compatible
query I rowsort label-9339
SELECT 62 + + + SUM ( ( - + 59 ) )
----
3

query I rowsort
SELECT 50 + - 26 AS col1
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9341
SELECT + 48 DIV - - 32 + + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-9341
SELECT + 48 / - - 32 + + - 31
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9342
SELECT + 93 AS col0, 97 + + 92 - - + 78 + 76 + - COUNT( * ) * - 2 * + - 46 AS col1
----
93
251

skipif mysql # not compatible
query II rowsort label-9342
SELECT + 93 AS col0, 97 + + 92 - - + 78 + 76 + - COUNT ( * ) * - 2 * + - 46 AS col1
----
93
251

query I rowsort
SELECT 39 + + 35
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - ( - COUNT( * ) ) * + 15
----
15

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - ( - COUNT ( * ) ) * + 15
----
15

query I rowsort
SELECT + 39 * + 95 * - + 36
----
-133380

query II rowsort
SELECT + 93 AS col1, + 65
----
93
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9347
SELECT ALL - - 70 * - - 53 + + ( - 31 ) + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - - 70 * - - 53 + + ( - 31 ) + - CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9348
SELECT DISTINCT 23 * + 62 * + 99 * + 58 + + + COUNT( * ) * 10, - 74 DIV + 71 col0
----
8188102
-1

skipif mysql # not compatible
query II rowsort label-9348
SELECT DISTINCT 23 * + 62 * + 99 * + 58 + + + COUNT ( * ) * 10, - 74 / + 71 col0
----
8188102
-1

query II rowsort
SELECT ALL - - 6 AS col2, - 29
----
6
-29

query I rowsort
SELECT 50 * + + 15 + - 29 AS col2
----
721

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT + ( - COUNT( * ) ) + + 89 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-9351
SELECT + ( - COUNT ( * ) ) + + 89 AS col1
----
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9352
SELECT 36, COUNT( * ) * + - 64 DIV 99 * 54 + 16 AS col1
----
36
16

skipif mysql # not compatible
query II rowsort label-9352
SELECT 36, COUNT ( * ) * + - 64 / 99 * 54 + 16 AS col1
----
36
16

query II rowsort
SELECT ALL - 51 AS col2, 26
----
-51
26

query II rowsort
SELECT + CASE + 90 WHEN + 78 THEN - + 93 / 14 + 6 * - + 35 * 8 WHEN - - 62 * - - 91 THEN + 22 END AS col2, 75 AS col1
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT CASE - 41 WHEN 37 - 89 + + COUNT( * ) * + 62 * + 39 + COUNT( * ) + COALESCE ( COUNT( * ), - COUNT( * ), - - 92 ) + - 47 + - COUNT( * ) * + + MIN( 83 ) THEN + 37 * 78 ELSE + + 12 END + - COUNT( * ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9355
SELECT CASE - 41 WHEN 37 - 89 + + COUNT ( * ) * + 62 * + 39 + COUNT ( * ) + COALESCE ( COUNT ( * ), - COUNT ( * ), - - 92 ) + - 47 + - COUNT ( * ) * + + MIN ( 83 ) THEN + 37 * 78 ELSE + + 12 END + - COUNT ( * ) AS col1
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9356
SELECT 99 * 0 * NULLIF ( 34, - CASE + 38 WHEN - COUNT( DISTINCT - 43 ) THEN - 15 END ) * - - 83 * + 8 DIV 91 * ( - 16 ), + 67 + 30 AS col1
----
0
97

skipif mysql # not compatible
query II rowsort label-9356
SELECT 99 * 0 * NULLIF ( 34, - CASE + 38 WHEN - COUNT ( DISTINCT - 43 ) THEN - 15 END ) * - - 83 * + 8 / 91 * ( - 16 ), + 67 + 30 AS col1
----
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9357
SELECT MAX( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-9357
SELECT MAX ( - 46 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9358
SELECT ALL ( COALESCE ( - 32, - CASE + CAST( + - 27 AS SIGNED ) WHEN - 92 THEN + SUM( - 16 ) ELSE - + 93 END * COUNT( * ) * - - CAST( NULL AS SIGNED ), - 89 ) ) + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL ( COALESCE ( - 32, - CASE + CAST ( + - 27 AS INTEGER ) WHEN - 92 THEN + SUM ( - 16 ) ELSE - + 93 END * COUNT ( * ) * - - CAST ( NULL AS INTEGER ), - 89 ) ) + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT DISTINCT COALESCE ( - 18, - 13 + + 94 + COUNT( * ) + - + COUNT( * ) * - - 67 + + 6 * + 96 + - CASE 91 WHEN - 44 + - CASE 29 WHEN - + 88 * 30 THEN 79 * + 3 + + 63 - + + COALESCE ( - - ( - - COUNT( * ) ), - COUNT( * ) ) DIV + ( + 42 ) + + - COUNT( * ) WHEN + 97 THEN NULL ELSE + 44 DIV - NULLIF ( 64, - - COALESCE ( - - 63, - 53 ) ) * + 49 * 21 END THEN - COUNT( * ) WHEN - - ( + 84 ) DIV + + ( + 80 ) * - 98 - - CASE 69 + + 67 WHEN + 50 * + 68 - - CASE + 65 WHEN 32 THEN NULL WHEN + 45 + - 97 THEN - 63 WHEN 34 * + 18 THEN + 3 END * ( + COALESCE ( 68, 34 DIV COUNT( * ), ( 25 ) - + 13, + 13 ) ) THEN + 8 END * 81 THEN NULL WHEN 53 THEN - 51 * + 22 ELSE NULL END DIV - 33 ) - 87
----
-105

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT COALESCE ( - 18, - 13 + + 94 + COUNT ( * ) + - + COUNT ( * ) * - - 67 + + 6 * + 96 + - CASE 91 WHEN - 44 + - CASE 29 WHEN - + 88 * 30 THEN 79 * + 3 + + 63 - + + COALESCE ( - - ( - - COUNT ( * ) ), - COUNT ( * ) ) / + ( + 42 ) + + - COUNT ( * ) WHEN + 97 THEN NULL ELSE + 44 / - NULLIF ( 64, - - COALESCE ( - - 63, - 53 ) ) * + 49 * 21 END THEN - COUNT ( * ) WHEN - - ( + 84 ) / + + ( + 80 ) * - 98 - - CASE 69 + + 67 WHEN + 50 * + 68 - - CASE + 65 WHEN 32 THEN NULL WHEN + 45 + - 97 THEN - 63 WHEN 34 * + 18 THEN + 3 END * ( + COALESCE ( 68, 34 / COUNT ( * ), ( 25 ) - + 13, + 13 ) ) THEN + 8 END * 81 THEN NULL WHEN 53 THEN - 51 * + 22 ELSE NULL END / - 33 ) - 87
----
-105

query I rowsort
SELECT 68 * + 85 + 84 AS col0
----
5864

query I rowsort
SELECT ALL ( - 50 ) * + 47
----
-2350

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT COUNT( * ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT COUNT ( * ) * - 82
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9363
SELECT + 64 DIV - 52
----
-1

skipif mysql # not compatible
query I rowsort label-9363
SELECT + 64 / - 52
----
-1

query I rowsort
SELECT - 70 * 14
----
-980

query II rowsort
SELECT ALL 45 AS col1, + 86 - - 60 AS col2
----
45
146

query I rowsort
SELECT - NULLIF ( - 8, 74 + - 86 + 53 )
----
8

query I rowsort
SELECT - 88 + + - 82
----
-170

query II rowsort
SELECT 99 AS col1, + 28 AS col2
----
99
28

query II rowsort
SELECT ALL 56 AS col2, 52
----
56
52

query I rowsort
SELECT - - 92 * + 5 * - 40
----
-18400

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT - - MIN( - ( + 83 ) ) * + 52 + ( 2 ) AS col1
----
-4314

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - - MIN ( - ( + 83 ) ) * + 52 + ( 2 ) AS col1
----
-4314

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9372
SELECT ALL 14, MAX( DISTINCT - CAST( - - 50 AS SIGNED ) ) AS col0
----
14
-50

skipif mysql # not compatible
query II rowsort label-9372
SELECT ALL 14, MAX ( DISTINCT - CAST ( - - 50 AS INTEGER ) ) AS col0
----
14
-50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9373
SELECT DISTINCT - + 88 * - + CAST( NULL AS SIGNED ), - 38 * + COALESCE ( 15, - 25 ) AS col0
----
NULL
-570

skipif mysql # not compatible
query II rowsort label-9373
SELECT DISTINCT - + 88 * - + CAST ( NULL AS INTEGER ), - 38 * + COALESCE ( 15, - 25 ) AS col0
----
NULL
-570

query I rowsort
SELECT ALL + 45 + - + 48
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT - SUM( - + 6 ) * 94
----
564

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT - SUM ( - + 6 ) * 94
----
564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9376
SELECT ALL + CAST( - - 45 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + CAST ( - - 45 AS INTEGER )
----
45

query I rowsort
SELECT - ( - ( 90 ) ) AS col2
----
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9378
SELECT ALL + CASE 10 WHEN - 79 / COUNT( * ) * - - 7 + + - 83 - + + COALESCE ( + CAST( NULL AS DECIMAL ), + 16 + + 30 + 45 ) THEN - + COUNT( * ) - + + 18 END + + 59 * 93 - - 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL + CASE 10 WHEN - 79 / COUNT ( * ) * - - 7 + + - 83 - + + COALESCE ( + CAST ( NULL AS REAL ), + 16 + + 30 + 45 ) THEN - + COUNT ( * ) - + + 18 END + + 59 * 93 - - 93 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT + - COALESCE ( + 49, + + COUNT( * ), + 95 * - MIN( DISTINCT + 87 ) * - + 56 ) + - 47 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT + - COALESCE ( + 49, + + COUNT ( * ), + 95 * - MIN ( DISTINCT + 87 ) * - + 56 ) + - 47 AS col0
----
-96

query I rowsort
SELECT ALL - - 26 * + 34 + + 80 col2
----
964

query II rowsort
SELECT ALL + - 20 AS col0, + 42 * - 23 * - 82 AS col1
----
-20
79212

onlyif mysql # DIV for integer division: 
query I rowsort label-9382
SELECT DISTINCT + + 70 DIV - 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT + + 70 / - 91 AS col1
----
0

query I rowsort
SELECT + - 69 * + 26 + + - 95 AS col0
----
-1889

query I rowsort
SELECT + - 33 * 38 AS col1
----
-1254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT ALL + COUNT( * ) DIV + 40 + 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-9385
SELECT ALL + COUNT ( * ) / + 40 + 48 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT COALESCE ( + - 32, + SUM( + + 92 ) ) * - 4 + + SUM( - 10 )
----
118

skipif mysql # not compatible
query I rowsort label-9386
SELECT COALESCE ( + - 32, + SUM ( + + 92 ) ) * - 4 + + SUM ( - 10 )
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT ( + SUM( DISTINCT CASE - 51 WHEN - 63 THEN + 70 WHEN + + 64 THEN 92 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9387
SELECT ( + SUM ( DISTINCT CASE - 51 WHEN - 63 THEN + 70 WHEN + + 64 THEN 92 END ) ) AS col1
----
NULL

query I rowsort
SELECT - ( - 31 ) + - + 41
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + CASE + COUNT( * ) WHEN + 39 THEN - - 41 ELSE - 69 END AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-9389
SELECT + CASE + COUNT ( * ) WHEN + 39 THEN - - 41 ELSE - 69 END AS col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT ALL 87 * - 15 * - + COUNT( * ) + + + 45 * ( + - COUNT( * ) ) col2
----
1260

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL 87 * - 15 * - + COUNT ( * ) + + + 45 * ( + - COUNT ( * ) ) col2
----
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT ALL + CAST( - 48 AS SIGNED )
----
-48

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + CAST ( - 48 AS INTEGER )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT CASE - - 60 WHEN + 28 / COUNT( * ) * + - COUNT( * ) THEN NULL ELSE + COUNT( * ) * + + ( 42 ) - - - MAX( DISTINCT - 92 ) END
----
134

skipif mysql # not compatible
query I rowsort label-9392
SELECT CASE - - 60 WHEN + 28 / COUNT ( * ) * + - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) * + + ( 42 ) - - - MAX ( DISTINCT - 92 ) END
----
134

query I rowsort
SELECT - 6 - - 81
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9394
SELECT COALESCE ( - 2, - + CAST( + COUNT( * ) AS SIGNED ) ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-9394
SELECT COALESCE ( - 2, - + CAST ( + COUNT ( * ) AS INTEGER ) ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + 58 * + SUM( + - 54 ) * + ( ( - 58 ) )
----
181656

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 58 * + SUM ( + - 54 ) * + ( ( - 58 ) )
----
181656

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9396
SELECT 1 * - 17 DIV + + MAX( DISTINCT + CAST( 1 AS SIGNED ) ) - - - 83 + COUNT( * )
----
-99

skipif mysql # not compatible
query I rowsort label-9396
SELECT 1 * - 17 / + + MAX ( DISTINCT + CAST ( 1 AS INTEGER ) ) - - - 83 + COUNT ( * )
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9397
SELECT + 11 DIV COUNT( * ), + 82 AS col2
----
11
82

skipif mysql # not compatible
query II rowsort label-9397
SELECT + 11 / COUNT ( * ), + 82 AS col2
----
11
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9398
SELECT ALL 22 * - - CAST( NULL AS SIGNED ) AS col0, - CAST( + + 47 AS SIGNED ) + 39 AS col1, + - 58 + - + ( - + 56 ) * + 87 - - 11
----
NULL
-8
4825

skipif mysql # not compatible
query III rowsort label-9398
SELECT ALL 22 * - - CAST ( NULL AS INTEGER ) AS col0, - CAST ( + + 47 AS INTEGER ) + 39 AS col1, + - 58 + - + ( - + 56 ) * + 87 - - 11
----
NULL
-8
4825

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT MIN( ALL + 63 )
----
63

skipif mysql # not compatible
query I rowsort label-9399
SELECT MIN ( ALL + 63 )
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9400
SELECT ALL NULLIF ( + COUNT( * ), + COALESCE ( 48, + 70 DIV - CAST( NULL AS SIGNED ) * 68 DIV + - 78 + NULLIF ( + 35, + 31 * + 53 ) + 54 + + 30 - + 6 ) ) DIV + + 50 + + + 31, 0 AS col1
----
31
0

skipif mysql # not compatible
query II rowsort label-9400
SELECT ALL NULLIF ( + COUNT ( * ), + COALESCE ( 48, + 70 / - CAST ( NULL AS INTEGER ) * 68 / + - 78 + NULLIF ( + 35, + 31 * + 53 ) + 54 + + 30 - + 6 ) ) / + + 50 + + + 31, 0 AS col1
----
31
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT + - COUNT( * ) + + SUM( DISTINCT 27 ) - - ( 94 ) * + 0 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-9401
SELECT + - COUNT ( * ) + + SUM ( DISTINCT 27 ) - - ( 94 ) * + 0 AS col2
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9402
SELECT - - 80 * + COUNT( * ) + + 76 + 9 - - - 11 * - COUNT( * ) DIV - + 20 AS col0, 4 + - - SUM( DISTINCT - - ( - - 29 ) )
----
165
33

skipif mysql # not compatible
query II rowsort label-9402
SELECT - - 80 * + COUNT ( * ) + + 76 + 9 - - - 11 * - COUNT ( * ) / - + 20 AS col0, 4 + - - SUM ( DISTINCT - - ( - - 29 ) )
----
165
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT ALL + 75 + + 82 + + 14 DIV ( 29 )
----
157

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + 75 + + 82 + + 14 / ( 29 )
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-9404
SELECT ALL + 83 + + COUNT( ALL - - 95 ) col0
----
84

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL + 83 + + COUNT ( ALL - - 95 ) col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL CAST( - - 49 AS SIGNED )
----
49

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL CAST ( - - 49 AS INTEGER )
----
49

onlyif mysql # aggregate syntax: 
query III rowsort label-9406
SELECT - - 53 + - 40 col0, + 30 col2, - COUNT( * ) AS col1
----
13
30
-1

skipif mysql # not compatible
query III rowsort label-9406
SELECT - - 53 + - 40 col0, + 30 col2, - COUNT ( * ) AS col1
----
13
30
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL - CAST( NULL AS SIGNED ) * CASE 58 WHEN 9 THEN NULL WHEN 35 * + 41 THEN - - 67 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - CAST ( NULL AS INTEGER ) * CASE 58 WHEN 9 THEN NULL WHEN 35 * + 41 THEN - - 67 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - + 68 * + COUNT( * ) * + 40 - + 20 col0
----
-2740

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - + 68 * + COUNT ( * ) * + 40 - + 20 col0
----
-2740

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - + ( + MIN( + - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9409
SELECT - + ( + MIN ( + - 1 ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9410
SELECT - - CAST( NULL AS SIGNED ) + + 71 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-9410
SELECT - - CAST ( NULL AS INTEGER ) + + 71 + - 84
----
NULL

query I rowsort
SELECT ALL + 98 * - 8 AS col2
----
-784

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9412
SELECT - CAST( NULL AS SIGNED ) / + 21 * ( + + SUM( - 86 ) ) + - - 6 + - + MAX( DISTINCT + - 34 ) + ( + + CAST( 25 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9412
SELECT - CAST ( NULL AS INTEGER ) / + 21 * ( + + SUM ( - 86 ) ) + - - 6 + - + MAX ( DISTINCT + - 34 ) + ( + + CAST ( 25 AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9413
SELECT ALL + + CASE WHEN NULL IS NULL AND NOT 39 NOT IN ( - 97 + - 63 + COALESCE ( + - 3, + 70, + + ( + - 90 ) / - + 36 ) + - 24 * + 64 ) THEN + COUNT( * ) ELSE NULL END * - 21 - - COALESCE ( - 19, - 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9413
SELECT ALL + + CASE WHEN NULL IS NULL AND NOT 39 NOT IN ( - 97 + - 63 + COALESCE ( + - 3, + 70, + + ( + - 90 ) / - + 36 ) + - 24 * + 64 ) THEN + COUNT ( * ) ELSE NULL END * - 21 - - COALESCE ( - 19, - 64 )
----
NULL

query I rowsort
SELECT - 37 + + 22
----
-15

query II rowsort
SELECT DISTINCT + 76 AS col1, 56 * + - 77 AS col2
----
76
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT ALL + ( + + COUNT( 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL + ( + + COUNT ( 12 ) )
----
1

query I rowsort
SELECT 25 * + 90 AS col2
----
2250

query I rowsort
SELECT ALL 89 * + ( - 15 ) AS col0
----
-1335

onlyif mysql # aggregate syntax: 
query I rowsort label-9419
SELECT COUNT( * ) * - - 73 AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9419
SELECT COUNT ( * ) * - - 73 AS col0
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT ALL + 4 DIV COUNT( * ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL + 4 / COUNT ( * ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9421
SELECT ALL - 79 AS col0, 2 + + - MAX( + 60 ) AS col1
----
-79
-58

skipif mysql # not compatible
query II rowsort label-9421
SELECT ALL - 79 AS col0, 2 + + - MAX ( + 60 ) AS col1
----
-79
-58

query I rowsort
SELECT 50 * + - 77
----
-3850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9423
SELECT 5 * 12 + + COUNT( * ) * 43 AS col1, 82 - + + CAST( - - 81 AS SIGNED ) AS col1
----
103
1

skipif mysql # not compatible
query II rowsort label-9423
SELECT 5 * 12 + + COUNT ( * ) * 43 AS col1, 82 - + + CAST ( - - 81 AS INTEGER ) AS col1
----
103
1

query II rowsort
SELECT 24 AS col1, - 65 * + - 49 col1
----
24
3185

query I rowsort
SELECT 69 + 84
----
153

query I rowsort
SELECT ALL 29 * 51 AS col1
----
1479

query I rowsort
SELECT ALL 46 * 18 AS col0
----
828

query I rowsort
SELECT + 76 * - 95 + - 82 * 73
----
-13206

query I rowsort
SELECT + 82 * 28 + - 13 + - + 49 + 71 - + 67 + - 4 AS col2
----
2234

query I rowsort
SELECT + ( ( 46 ) )
----
46

query II rowsort
SELECT - - 9 AS col2, + 60 AS col2
----
9
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9432
SELECT - + CAST( NULL AS SIGNED ) AS col2, + 56
----
NULL
56

skipif mysql # not compatible
query II rowsort label-9432
SELECT - + CAST ( NULL AS INTEGER ) AS col2, + 56
----
NULL
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT ALL 27 DIV + + 32
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL 27 / + + 32
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9434
SELECT - 27, 91 - + 16 DIV + 35 * + + 92 AS col2
----
-27
91

skipif mysql # not compatible
query II rowsort label-9434
SELECT - 27, 91 - + 16 / + 35 * + + 92 AS col2
----
-27
91

query I rowsort
SELECT ALL + 38 + - - 55 + - ( - 51 ) * - 88
----
-4395

onlyif mysql # DIV for integer division: 
query I rowsort label-9436
SELECT DISTINCT + 26 DIV + 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT DISTINCT + 26 / + 77 AS col1
----
0

query I rowsort
SELECT DISTINCT 54 + 93
----
147

query I rowsort
SELECT DISTINCT - 46 * 17 AS col0
----
-782

onlyif mysql # aggregate syntax: 
query I rowsort label-9439
SELECT ALL + + COALESCE ( + - ( COUNT( * ) ), 7, - 9 * + 15 ) + ( 89 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9439
SELECT ALL + + COALESCE ( + - ( COUNT ( * ) ), 7, - 9 * + 15 ) + ( 89 ) AS col0
----
88

query I rowsort
SELECT ALL - 2 + + - 77 AS col2
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9441
SELECT 4 - COUNT( * ) DIV + 47 AS col2, 76 + - 24
----
4
52

skipif mysql # not compatible
query II rowsort label-9441
SELECT 4 - COUNT ( * ) / + 47 AS col2, 76 + - 24
----
4
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9442
SELECT - CASE + - 34 WHEN + CASE + 55 WHEN + 6 THEN 98 * - COALESCE ( + 36, COUNT( * ) ) WHEN + 82 THEN NULL END DIV - 62 - + 90 + - 24 + - ( + COUNT( * ) ) * + + 6 THEN NULL WHEN + 65 THEN NULL ELSE 74 * - 85 * - 73 * - - 49 END DIV + - ( - CAST( - 23 AS SIGNED ) ) - + - 49
----
978280

skipif mysql # not compatible
query I rowsort label-9442
SELECT - CASE + - 34 WHEN + CASE + 55 WHEN + 6 THEN 98 * - COALESCE ( + 36, COUNT ( * ) ) WHEN + 82 THEN NULL END / - 62 - + 90 + - 24 + - ( + COUNT ( * ) ) * + + 6 THEN NULL WHEN + 65 THEN NULL ELSE 74 * - 85 * - 73 * - - 49 END / + - ( - CAST ( - 23 AS INTEGER ) ) - + - 49
----
978280

query II rowsort
SELECT DISTINCT 74 AS col0, + 47
----
74
47

query II rowsort
SELECT 29 AS col2, 38 - + 45 AS col1
----
29
-7

query I rowsort
SELECT DISTINCT 72 - 16
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + COALESCE ( - + 61, COUNT( * ), - 68 - - 92 ) * 93 AS col2
----
-5673

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + COALESCE ( - + 61, COUNT ( * ), - 68 - - 92 ) * 93 AS col2
----
-5673

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - COALESCE ( + + 48, - + COUNT( * ) ) * + 27 + COALESCE ( COUNT( * ), 20 ) AS col0
----
-1295

skipif mysql # not compatible
query I rowsort label-9447
SELECT - COALESCE ( + + 48, - + COUNT ( * ) ) * + 27 + COALESCE ( COUNT ( * ), 20 ) AS col0
----
-1295

query I rowsort
SELECT 50 * - + 38 * - + 31
----
58900

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ( + COUNT( * ) ) * - + 43 + - 68 col1
----
-111

skipif mysql # not compatible
query I rowsort label-9449
SELECT ( + COUNT ( * ) ) * - + 43 + - 68 col1
----
-111

onlyif mysql # DIV for integer division: 
query I rowsort label-9450
SELECT 18 DIV 91 + + 18 DIV + ( + - 19 ) + + 74
----
74

skipif mysql # not compatible
query I rowsort label-9450
SELECT 18 / 91 + + 18 / + ( + - 19 ) + + 74
----
74

query I rowsort
SELECT DISTINCT + 91 * 42 * - 94
----
-359268

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT 34 + + MAX( + 43 ) - - 54
----
131

skipif mysql # not compatible
query I rowsort label-9452
SELECT 34 + + MAX ( + 43 ) - - 54
----
131

query I rowsort
SELECT ALL - ( 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT CAST( - 61 AS SIGNED ) * + 77 + 88
----
-4609

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT CAST ( - 61 AS INTEGER ) * + 77 + 88
----
-4609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9455
SELECT + 72 * 28 + CAST( NULL AS SIGNED ) + + - CASE - 7 WHEN + COUNT( * ) * 2 - - - ( 3 ) + - 82 - - 61 + + - 36 THEN - 96 / - 1 WHEN + CASE - - 83 WHEN + + 14 THEN NULL ELSE + CASE + - 67 WHEN 14 THEN - 84 WHEN - 0 THEN NULL WHEN 48 * + 80 THEN - 98 + - 77 * 20 * 16 / ( - - 27 ) WHEN CASE - 78 WHEN + 81 THEN - + 30 WHEN - 73 THEN NULL ELSE - 72 END * 45 THEN - - 95 END / + + 22 * - 38 * ( + 60 ) + 35 * + - 32 END * + 14 + 80 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT + 72 * 28 + CAST ( NULL AS INTEGER ) + + - CASE - 7 WHEN + COUNT ( * ) * 2 - - - ( 3 ) + - 82 - - 61 + + - 36 THEN - 96 / - 1 WHEN + CASE - - 83 WHEN + + 14 THEN NULL ELSE + CASE + - 67 WHEN 14 THEN - 84 WHEN - 0 THEN NULL WHEN 48 * + 80 THEN - 98 + - 77 * 20 * 16 / ( - - 27 ) WHEN CASE - 78 WHEN + 81 THEN - + 30 WHEN - 73 THEN NULL ELSE - 72 END * 45 THEN - - 95 END / + + 22 * - 38 * ( + 60 ) + 35 * + - 32 END * + 14 + 80 THEN NULL ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL + 74 + + + 1 - + 23
----
52

query I rowsort
SELECT 75 * - 34
----
-2550

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT 46 - - 90 DIV 72 AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9458
SELECT 46 - - 90 / 72 AS col2
----
47

query I rowsort
SELECT DISTINCT - NULLIF ( + 63, - + COALESCE ( + 58, 96 * + 2 ) ) AS col2
----
-63

query I rowsort
SELECT + ( 69 ) * + 59 AS col1
----
4071

query I rowsort
SELECT 70 * + 22 col0
----
1540

query I rowsort
SELECT - CASE + 33 WHEN + 85 / + 90 THEN - 39 * - 39 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL - 67 + + 17 + - COUNT( * ) AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - 67 + + 17 + - COUNT ( * ) AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + 97 * SUM( + 33 )
----
3201

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + 97 * SUM ( + 33 )
----
3201

query I rowsort
SELECT 93 - 11
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9466
SELECT DISTINCT + CASE - MAX( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) WHEN 62 THEN + 52 * + COUNT( * ) ELSE - 99 DIV 41 DIV + 98 END * - 63
----
0

skipif mysql # not compatible
query I rowsort label-9466
SELECT DISTINCT + CASE - MAX ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) WHEN 62 THEN + 52 * + COUNT ( * ) ELSE - 99 / 41 / + 98 END * - 63
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9467
SELECT ALL - CAST( NULL AS SIGNED ) + NULLIF ( + 10, + 48 * - COUNT( * ) * 22 / + - 81 * + 43 + - 62 + + COALESCE ( - 72, + 87 ) * NULLIF ( - 43, + 11 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - CAST ( NULL AS INTEGER ) + NULLIF ( + 10, + 48 * - COUNT ( * ) * 22 / + - 81 * + 43 + - 62 + + COALESCE ( - 72, + 87 ) * NULLIF ( - 43, + 11 ) )
----
NULL

query I rowsort
SELECT + 40 - + - 76 + + - 20 + + + 3
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT MIN( + - 4 ) - ( ( + - 84 ) )
----
80

skipif mysql # not compatible
query I rowsort label-9469
SELECT MIN ( + - 4 ) - ( ( + - 84 ) )
----
80

query I rowsort
SELECT + ( - 86 ) + - + 91
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL COUNT( DISTINCT + + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL COUNT ( DISTINCT + + 39 ) AS col2
----
1

query I rowsort
SELECT ( 39 ) + + - 42 AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9473
SELECT ALL - 21 DIV - + 68 + 63 + + - COUNT( * ) + - 94 DIV 39
----
60

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - 21 / - + 68 + 63 + + - COUNT ( * ) + - 94 / 39
----
60

query I rowsort
SELECT + 1 + 57
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9475
SELECT ALL 60 AS col2, 0 + + - 2 + COUNT( * ) * - CAST( - ( 57 ) AS SIGNED ) DIV - + 49 + 38 * + 48 AS col1
----
60
1821

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL 60 AS col2, 0 + + - 2 + COUNT ( * ) * - CAST ( - ( 57 ) AS INTEGER ) / - + 49 + 38 * + 48 AS col1
----
60
1821

query I rowsort
SELECT + 78 + - 87 AS col0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - 89 * COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9477
SELECT - 89 * COUNT ( * ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9478
SELECT + 54 + 71 + + CAST( NULL AS SIGNED ) + + + 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9478
SELECT + 54 + 71 + + CAST ( NULL AS INTEGER ) + + + 61 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT DISTINCT NULLIF ( + 32, + NULLIF ( - CAST( + - 1 AS SIGNED ), - - 11 * + 98 + 55 * + + COUNT( * ) ) ) * - 95 + + 46 AS col1
----
-2994

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT NULLIF ( + 32, + NULLIF ( - CAST ( + - 1 AS INTEGER ), - - 11 * + 98 + 55 * + + COUNT ( * ) ) ) * - 95 + + 46 AS col1
----
-2994

onlyif mysql # aggregate syntax: 
query II rowsort label-9480
SELECT CASE + ( + + 24 ) WHEN - + 35 THEN 75 - 29 * + 85 + 31 END col1, - COUNT( * )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9480
SELECT CASE + ( + + 24 ) WHEN - + 35 THEN 75 - 29 * + 85 + 31 END col1, - COUNT ( * )
----
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9481
SELECT + COALESCE ( - 77, - 12 DIV + + 68 + - ( 23 ) - - + 6 ) + COUNT( * ) + 11 DIV - - MIN( DISTINCT + + 34 ) * + 98
----
-76

skipif mysql # not compatible
query I rowsort label-9481
SELECT + COALESCE ( - 77, - 12 / + + 68 + - ( 23 ) - - + 6 ) + COUNT ( * ) + 11 / - - MIN ( DISTINCT + + 34 ) * + 98
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9482
SELECT + 59 * + CAST( 90 AS SIGNED ) col0
----
5310

skipif mysql # not compatible
query I rowsort label-9482
SELECT + 59 * + CAST ( 90 AS INTEGER ) col0
----
5310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9483
SELECT + 18 * COALESCE ( + ( + 4 ), - MIN( ALL + - 65 ) + + CAST( NULL AS SIGNED ) DIV - 69 * + 1 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-9483
SELECT + 18 * COALESCE ( + ( + 4 ), - MIN ( ALL + - 65 ) + + CAST ( NULL AS INTEGER ) / - 69 * + 1 ) AS col1
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9484
SELECT DISTINCT ( CAST( 57 AS SIGNED ) ) * 53 * COUNT( * ) AS col2
----
3021

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT ( CAST ( 57 AS INTEGER ) ) * 53 * COUNT ( * ) AS col2
----
3021

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT 12 * + 48 + + COUNT( * )
----
577

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT 12 * + 48 + + COUNT ( * )
----
577

onlyif mysql # aggregate syntax: 
query II rowsort label-9486
SELECT ALL + COUNT( * ), - 39 col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-9486
SELECT ALL + COUNT ( * ), - 39 col2
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9487
SELECT CASE - MAX( DISTINCT 65 ) WHEN + + MIN( - 29 ) * 53 THEN - - 16 WHEN + - 55 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9487
SELECT CASE - MAX ( DISTINCT 65 ) WHEN + + MIN ( - 29 ) * 53 THEN - - 16 WHEN + - 55 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT 49 * 39 + + 51 - - 12 AS col0
----
1974

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT ALL ( - CASE + 57 WHEN + + 44 + + AVG ( - 25 ) THEN 56 WHEN + - ( ( - 38 ) ) THEN - 49 * 45 / + COUNT( * ) + 48 - + 96 WHEN + ( 96 ) THEN - + 37 * - ( - + 81 ) END ) * + - 28 * + - 63 * - 48 + + NULLIF ( 10, - COUNT( ALL - ( + + 24 ) ) ) + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL ( - CASE + 57 WHEN + + 44 + + AVG ( - 25 ) THEN 56 WHEN + - ( ( - 38 ) ) THEN - 49 * 45 / + COUNT ( * ) + 48 - + 96 WHEN + ( 96 ) THEN - + 37 * - ( - + 81 ) END ) * + - 28 * + - 63 * - 48 + + NULLIF ( 10, - COUNT ( ALL - ( + + 24 ) ) ) + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT + CASE - ( 92 ) WHEN - + CASE 45 WHEN + + 95 THEN NULL WHEN - + 37 THEN + 89 - - COUNT( * ) ELSE 49 * - - ( + COUNT( * ) ) * COUNT( * ) + + 48 END + - 28 - - AVG ( DISTINCT + + 44 ) THEN - 76 + + 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9490
SELECT + CASE - ( 92 ) WHEN - + CASE 45 WHEN + + 95 THEN NULL WHEN - + 37 THEN + 89 - - COUNT ( * ) ELSE 49 * - - ( + COUNT ( * ) ) * COUNT ( * ) + + 48 END + - 28 - - AVG ( DISTINCT + + 44 ) THEN - 76 + + 51 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT COALESCE ( + + 11, - + COUNT( * ) )
----
11

skipif mysql # not compatible
query I rowsort label-9491
SELECT COALESCE ( + + 11, - + COUNT ( * ) )
----
11

query I rowsort
SELECT + 52 - 49 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9493
SELECT + CASE 46 WHEN - 38 THEN - 49 WHEN - ( + 19 ) * - 90 THEN NULL WHEN + COUNT( DISTINCT + + 95 ) * 13 + 20 THEN NULL END / + 96 + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT + CASE 46 WHEN - 38 THEN - 49 WHEN - ( + 19 ) * - 90 THEN NULL WHEN + COUNT ( DISTINCT + + 95 ) * 13 + 20 THEN NULL END / + 96 + + 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9494
SELECT - - 76 DIV - - COUNT( * )
----
76

skipif mysql # not compatible
query I rowsort label-9494
SELECT - - 76 / - - COUNT ( * )
----
76

query I rowsort
SELECT ALL ( + ( - + 81 ) ) * + + 65 + - 47 AS col2
----
-5312

query I rowsort
SELECT ALL - ( + + 30 ) * + 18 + - ( - 98 )
----
-442

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT - 74 + - 61 * 68 * + COUNT( * )
----
-4222

skipif mysql # not compatible
query I rowsort label-9497
SELECT - 74 + - 61 * 68 * + COUNT ( * )
----
-4222

query I rowsort
SELECT - + 32 * + - 81 AS col1
----
2592

query I rowsort
SELECT ALL 48 * 53 - 76 AS col0
----
2468

query I rowsort
SELECT DISTINCT + + 53 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9501
SELECT DISTINCT - 4 DIV + + 64 + - + SUM( DISTINCT 29 ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT - 4 / + + 64 + - + SUM ( DISTINCT 29 ) AS col2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9502
SELECT - 1 + 72 + + + 69 + + COALESCE ( - + 19, 28, + ( + 33 ) ) * - 26 * 25 * + + COALESCE ( ( + ( + - 19 ) ), + 58 * + CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED ) ) * 47
----
-11028410

skipif mysql # not compatible
query I rowsort label-9502
SELECT - 1 + 72 + + + 69 + + COALESCE ( - + 19, 28, + ( + 33 ) ) * - 26 * 25 * + + COALESCE ( ( + ( + - 19 ) ), + 58 * + CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER ) ) * 47
----
-11028410

query I rowsort
SELECT + 45 * - 89
----
-4005

onlyif mysql # aggregate syntax: 
query II rowsort label-9504
SELECT - + COUNT( * ) AS col1, + 33
----
-1
33

skipif mysql # not compatible
query II rowsort label-9504
SELECT - + COUNT ( * ) AS col1, + 33
----
-1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9505
SELECT DISTINCT - - MAX( ALL - 51 ) DIV + + 98 * + 34 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - - MAX ( ALL - 51 ) / + + 98 * + 34 AS col2
----
0

query I rowsort
SELECT ALL + COALESCE ( + - 77, - 75, + 83 ) AS col0
----
-77

query I rowsort
SELECT - - ( + 70 )
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-9508
SELECT - - 75 + 33 DIV - - 94 + - - 99 * - - 60 + + 22 col0, - 86 + - 77 AS col2
----
6037
-163

skipif mysql # not compatible
query II rowsort label-9508
SELECT - - 75 + 33 / - - 94 + - - 99 * - - 60 + + 22 col0, - 86 + - 77 AS col2
----
6037
-163

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT - - 16 DIV 72
----
0

skipif mysql # not compatible
query I rowsort label-9509
SELECT - - 16 / 72
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9510
SELECT + + COUNT( * ) + 20 DIV 91 + + 28
----
29

skipif mysql # not compatible
query I rowsort label-9510
SELECT + + COUNT ( * ) + 20 / 91 + + 28
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT + + 32 - - MAX( DISTINCT + 9 )
----
41

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + + 32 - - MAX ( DISTINCT + 9 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9512
SELECT - CAST( + + 99 AS SIGNED ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-9512
SELECT - CAST ( + + 99 AS INTEGER ) AS col2
----
-99

query I rowsort
SELECT ALL + 19 * - + 89 AS col0
----
-1691

query I rowsort
SELECT ALL - 59 * 25 + 64
----
-1411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9515
SELECT - 90 - + + COALESCE ( 90, + ( - + 85 ) * + + 82 + + CAST( ( + COUNT( * ) ) AS SIGNED ) + - + ( - 42 ), 31 - COUNT( * ) + - 75 + + + 77 + + - 23 * 4 DIV + COUNT( * ) + + - 68, COUNT( * ) ) * - ( ( - 4 ) )
----
-450

skipif mysql # not compatible
query I rowsort label-9515
SELECT - 90 - + + COALESCE ( 90, + ( - + 85 ) * + + 82 + + CAST ( ( + COUNT ( * ) ) AS INTEGER ) + - + ( - 42 ), 31 - COUNT ( * ) + - 75 + + + 77 + + - 23 * 4 / + COUNT ( * ) + + - 68, COUNT ( * ) ) * - ( ( - 4 ) )
----
-450

query I rowsort
SELECT + 95 * ( + + 90 )
----
8550

query II rowsort
SELECT 54 AS col2, 35 AS col0
----
54
35

query I rowsort
SELECT - 66 - 78
----
-144

query I rowsort
SELECT - 42 * + 48 AS col2
----
-2016

query I rowsort
SELECT - COALESCE ( + + 31, 24 ) AS col1
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9521
SELECT - 60 DIV + 51 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9521
SELECT - 60 / + 51 AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT DISTINCT 71 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT 71 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT ( 73 )
----
73

query II rowsort
SELECT + 12 - - 2 AS col2, 50 + - 50 + - - 70 AS col2
----
14
70

query I rowsort
SELECT ALL 24 + + 25 - + 78 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT - SUM( - 5 ) + - 61 AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - SUM ( - 5 ) + - 61 AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL 0 * + + COUNT( ALL - 37 ) * COUNT( * ) * - 63 * + 74 * 69 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL 0 * + + COUNT ( ALL - 37 ) * COUNT ( * ) * - 63 * + 74 * 69 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9528
SELECT + NULLIF ( - 55, 82 + + - 23 ) * - + 97 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9528
SELECT + NULLIF ( - 55, 82 + + - 23 ) * - + 97 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9529
SELECT ALL COUNT( * ) DIV - 8 + 65 + - - 37
----
102

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL COUNT ( * ) / - 8 + 65 + - - 37
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9530
SELECT + ( CASE - - COUNT( 54 ) WHEN - - COUNT( * ) / - 64 * + + 6 + + 17 + - + COUNT( * ) + 5 + + CASE - 0 WHEN MIN( ALL - CAST( NULL AS SIGNED ) ) THEN + 67 + - 84 ELSE NULL END * COUNT( ( 4 ) ) / + 13 * + 94 + 60 - 26 + + NULLIF ( - + ( + SUM( 1 ) ), + 48 ) THEN - - 73 WHEN + - 41 THEN - 57 + + MAX( ALL - 22 ) + + + 72 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT + ( CASE - - COUNT ( 54 ) WHEN - - COUNT ( * ) / - 64 * + + 6 + + 17 + - + COUNT ( * ) + 5 + + CASE - 0 WHEN MIN ( ALL - CAST ( NULL AS INTEGER ) ) THEN + 67 + - 84 ELSE NULL END * COUNT ( ( 4 ) ) / + 13 * + 94 + 60 - 26 + + NULLIF ( - + ( + SUM ( 1 ) ), + 48 ) THEN - - 73 WHEN + - 41 THEN - 57 + + MAX ( ALL - 22 ) + + + 72 ELSE NULL END )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT - SUM( 10 ) * - 44 * - ( 85 ) + COALESCE ( - 33, - 80 * CAST( - 47 AS SIGNED ) ) AS col2
----
-37433

skipif mysql # not compatible
query I rowsort label-9531
SELECT - SUM ( 10 ) * - 44 * - ( 85 ) + COALESCE ( - 33, - 80 * CAST ( - 47 AS INTEGER ) ) AS col2
----
-37433

query I rowsort
SELECT ALL 64 * + - 31 * + + 56
----
-111104

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT 92 DIV - + 14 + - 55 + + 36 * 86 DIV + 69 AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9533
SELECT 92 / - + 14 + - 55 + + 36 * 86 / + 69 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - 19 * + COUNT( * ) + + 14 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9534
SELECT - 19 * + COUNT ( * ) + + 14 AS col1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9535
SELECT CAST( + - 41 AS SIGNED )
----
-41

skipif mysql # not compatible
query I rowsort label-9535
SELECT CAST ( + - 41 AS INTEGER )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9536
SELECT ALL 19 * 64 * - COALESCE ( COUNT( * ), - 2 + NULLIF ( - + NULLIF ( - 79, - 69 ), + CAST( - 50 AS SIGNED ) ) ) col0, 0 * + 94 * - 23
----
-1216
0

skipif mysql # not compatible
query II rowsort label-9536
SELECT ALL 19 * 64 * - COALESCE ( COUNT ( * ), - 2 + NULLIF ( - + NULLIF ( - 79, - 69 ), + CAST ( - 50 AS INTEGER ) ) ) col0, 0 * + 94 * - 23
----
-1216
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + CASE - - 75 WHEN - 32 THEN + MIN( + 77 ) / + + 31 WHEN + 0 * - 91 THEN 49 * - - 25 + + + 51 END / + COUNT( * ) - - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + CASE - - 75 WHEN - 32 THEN + MIN ( + 77 ) / + + 31 WHEN + 0 * - 91 THEN 49 * - - 25 + + + 51 END / + COUNT ( * ) - - 33 AS col2
----
NULL

query I rowsort
SELECT ALL + - ( - + 53 ) AS col1
----
53

query II rowsort
SELECT - 79, - 71 AS col2
----
-79
-71

query I rowsort
SELECT ALL - 75 * + 54 AS col0
----
-4050

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL 72 * 70 + + 69 - - 11 * + COALESCE ( 9, + 28 + ( ( - + COUNT( * ) ) ) )
----
5208

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL 72 * 70 + + 69 - - 11 * + COALESCE ( 9, + 28 + ( ( - + COUNT ( * ) ) ) )
----
5208

onlyif mysql # aggregate syntax: 
query II rowsort label-9542
SELECT + SUM( 40 ) col1, + COALESCE ( - MIN( 41 ), COUNT( * ) * - 44 + - - 6 - - 93 * 11 ) * MIN( ALL + 51 ) * 23
----
40
-48093

skipif mysql # not compatible
query II rowsort label-9542
SELECT + SUM ( 40 ) col1, + COALESCE ( - MIN ( 41 ), COUNT ( * ) * - 44 + - - 6 - - 93 * 11 ) * MIN ( ALL + 51 ) * 23
----
40
-48093

query I rowsort
SELECT + - 84 + 64 * - 64 AS col0
----
-4180

query I rowsort
SELECT + - 26 * + + 34
----
-884

query I rowsort
SELECT - - 20 * - 44
----
-880

query I rowsort
SELECT ALL - 15 * - 47 * ( + + 6 ) AS col1
----
4230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT + CAST( - 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-9547
SELECT + CAST ( - 96 AS INTEGER )
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + 79 * + - COUNT( * ) * - 56
----
4424

skipif mysql # not compatible
query I rowsort label-9548
SELECT + 79 * + - COUNT ( * ) * - 56
----
4424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9549
SELECT ALL ( MAX( 9 ) ) * + COALESCE ( 76, - + CAST( NULL AS SIGNED ) )
----
684

skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL ( MAX ( 9 ) ) * + COALESCE ( 76, - + CAST ( NULL AS INTEGER ) )
----
684

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT COALESCE ( 2, + 36 + 59 + + 87 * - COUNT( ALL - - 14 ), - 79 )
----
2

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT COALESCE ( 2, + 36 + 59 + + 87 * - COUNT ( ALL - - 14 ), - 79 )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9551
SELECT ALL COUNT( * ) AS col1, + 78 AS col1, - 78 + + - 93 + - 75 * + CASE + - COUNT( * ) WHEN 1 * 34 THEN - + COUNT( * ) WHEN + 58 THEN NULL WHEN - SUM( DISTINCT NULLIF ( 22, 24 * 41 ) ) + + + CAST( - - 65 AS SIGNED ) * 83 THEN NULL END
----
1
78
NULL

skipif mysql # not compatible
query III rowsort label-9551
SELECT ALL COUNT ( * ) AS col1, + 78 AS col1, - 78 + + - 93 + - 75 * + CASE + - COUNT ( * ) WHEN 1 * 34 THEN - + COUNT ( * ) WHEN + 58 THEN NULL WHEN - SUM ( DISTINCT NULLIF ( 22, 24 * 41 ) ) + + + CAST ( - - 65 AS INTEGER ) * 83 THEN NULL END
----
1
78
NULL

query I rowsort
SELECT + 55 + 34 - 35 * + - 82 AS col0
----
2959

query I rowsort
SELECT + 68 + + + 21
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9554
SELECT 53 DIV ( + 27 ) * + MAX( + 7 ) + + COUNT( DISTINCT 64 ) + + 27 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-9554
SELECT 53 / ( + 27 ) * + MAX ( + 7 ) + + COUNT ( DISTINCT 64 ) + + 27 AS col2
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9555
SELECT ALL + COUNT( ALL - 6 ) + - 63 - + CAST( + 90 AS SIGNED ) * - COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + COUNT ( ALL - 6 ) + - 63 - + CAST ( + 90 AS INTEGER ) * - COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT 34 + - 70 + SUM( DISTINCT + - 45 )
----
-81

skipif mysql # not compatible
query I rowsort label-9556
SELECT 34 + - 70 + SUM ( DISTINCT + - 45 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL - 87 + - + SUM( + 51 ) + + 49 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL - 87 + - + SUM ( + 51 ) + + 49 AS col0
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9558
SELECT DISTINCT + 32 * + CASE + - 82 WHEN + - COALESCE ( - - 93, - 63 * AVG ( - + 15 ) - 80 ) THEN NULL ELSE 81 DIV - 61 + - 5 + - 11 - + ( + 86 ) DIV NULLIF ( + COUNT( * ), - AVG ( - 2 ) * - 82 ) END
----
-3296

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + 32 * + CASE + - 82 WHEN + - COALESCE ( - - 93, - 63 * AVG ( - + 15 ) - 80 ) THEN NULL ELSE 81 / - 61 + - 5 + - 11 - + ( + 86 ) / NULLIF ( + COUNT ( * ), - AVG ( - 2 ) * - 82 ) END
----
-3296

onlyif mysql # aggregate syntax: 
query II rowsort label-9559
SELECT ALL + 60 + + 5 AS col1, - COALESCE ( 80, - - 87 ) * + ( - COUNT( ALL 9 ) ) * - 68
----
65
-5440

skipif mysql # not compatible
query II rowsort label-9559
SELECT ALL + 60 + + 5 AS col1, - COALESCE ( 80, - - 87 ) * + ( - COUNT ( ALL 9 ) ) * - 68
----
65
-5440

query I rowsort
SELECT 50 + + 14
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT - 69 * COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - 69 * COUNT ( * )
----
-69

query I rowsort
SELECT 55 + + ( - 44 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT - 42 + + ( + - 75 ) * - COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT - 42 + + ( + - 75 ) * - COUNT ( * )
----
33

query I rowsort
SELECT 74 * 53 col2
----
3922

query I rowsort
SELECT DISTINCT - + 26 AS col1
----
-26

query I rowsort
SELECT + ( 67 ) - 60 * - 15 AS col2
----
967

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT 37 DIV - ( + + COALESCE ( - + 17, - + ( NULLIF ( + - MAX( DISTINCT - 8 ), - + 76 ) ) ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-9567
SELECT 37 / - ( + + COALESCE ( - + 17, - + ( NULLIF ( + - MAX ( DISTINCT - 8 ), - + 76 ) ) ) ) col0
----
2

query I rowsort
SELECT - - 80 * 86 * + 65 + 17 + 70 AS col1
----
447287

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - COUNT( * ) * - 34
----
34

skipif mysql # not compatible
query I rowsort label-9569
SELECT - COUNT ( * ) * - 34
----
34

query I rowsort
SELECT DISTINCT 38 * - 99 AS col0
----
-3762

query I rowsort
SELECT ALL 83 + + 78 AS col2
----
161

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9572
SELECT DISTINCT + 9 + + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT + 9 + + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL 54 + - - 81
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT NULLIF ( + - COUNT( * ), - 66 ) * + 46 col0
----
-46

skipif mysql # not compatible
query I rowsort label-9574
SELECT NULLIF ( + - COUNT ( * ), - 66 ) * + 46 col0
----
-46

query II rowsort
SELECT 84 AS col0, 17
----
84
17

query I rowsort
SELECT ALL 1 + + + 69
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9577
SELECT DISTINCT CASE - 23 WHEN + - 65 THEN NULL ELSE + 63 + COUNT( * ) DIV 59 + CAST( + 66 AS SIGNED ) END + - MIN( 56 ) DIV 99
----
129

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT CASE - 23 WHEN + - 65 THEN NULL ELSE + 63 + COUNT ( * ) / 59 + CAST ( + 66 AS INTEGER ) END + - MIN ( 56 ) / 99
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL + 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL + 28 + + COUNT ( * )
----
29

query I rowsort
SELECT 59 * + 56
----
3304

onlyif mysql # DIV for integer division: 
query II rowsort label-9580
SELECT DISTINCT 21 AS col1, 73 DIV - 28
----
21
-2

skipif mysql # not compatible
query II rowsort label-9580
SELECT DISTINCT 21 AS col1, 73 / - 28
----
21
-2

query I rowsort
SELECT 40 - 14 * + + 3 - - 94 col1
----
92

query I rowsort
SELECT 85 * + + 29 col1
----
2465

query I rowsort
SELECT 94 * + 27
----
2538

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT DISTINCT 46 - + 11 - 12 + COUNT( * ) + + + CAST( NULL AS SIGNED ) / - 82 * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT 46 - + 11 - 12 + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) / - 82 * + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9585
SELECT ALL COUNT( * ) AS col2, - 84 + + CAST( 92 AS SIGNED ) AS col1
----
1
8

skipif mysql # not compatible
query II rowsort label-9585
SELECT ALL COUNT ( * ) AS col2, - 84 + + CAST ( 92 AS INTEGER ) AS col1
----
1
8

query I rowsort
SELECT 94 - - + 33 + - + 9 * 59
----
-404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9587
SELECT ALL CAST( + 54 AS SIGNED ) * + 71 - - + CAST( - + 87 AS SIGNED ) - - MAX( DISTINCT ( - 1 ) ) DIV - - 71 * - - 19
----
3747

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL CAST ( + 54 AS INTEGER ) * + 71 - - + CAST ( - + 87 AS INTEGER ) - - MAX ( DISTINCT ( - 1 ) ) / - - 71 * - - 19
----
3747

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + 39 * - - COUNT( * ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + 39 * - - COUNT ( * ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT MIN( - + ( - 59 ) )
----
59

skipif mysql # not compatible
query I rowsort label-9589
SELECT MIN ( - + ( - 59 ) )
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-9590
SELECT - 98 * + 22 + - + 18 DIV - 64, 39 - - 82 AS col2
----
-2156
121

skipif mysql # not compatible
query II rowsort label-9590
SELECT - 98 * + 22 + - + 18 / - 64, 39 - - 82 AS col2
----
-2156
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT - CASE + COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE COUNT( * ) END * + 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT - CASE + COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE COUNT ( * ) END * + 71 AS col0
----
NULL

query I rowsort
SELECT ALL + 48 * - ( + - 48 ) + + 76 AS col0
----
2380

onlyif mysql # DIV for integer division: 
query I rowsort label-9593
SELECT 84 * + + 80 DIV 2 + + 34 * 73
----
5842

skipif mysql # not compatible
query I rowsort label-9593
SELECT 84 * + + 80 / 2 + + 34 * 73
----
5842

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + 90 + - 12 * + 21 + MIN( 13 ) AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 90 + - 12 * + 21 + MIN ( 13 ) AS col0
----
-149

query I rowsort
SELECT DISTINCT - ( 30 ) AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9596
SELECT + 34 * + 42 + + - COUNT( * ) DIV 71 AS col2, 80 - - - 54 AS col1
----
1428
26

skipif mysql # not compatible
query II rowsort label-9596
SELECT + 34 * + 42 + + - COUNT ( * ) / 71 AS col2, 80 - - - 54 AS col1
----
1428
26

query I rowsort
SELECT ALL + 87 * - 36 + + 25 - + 50 - - 20 * + 78 AS col2
----
-1597

query II rowsort
SELECT 4 AS col0, 56
----
4
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9599
SELECT DISTINCT + - 50 DIV + 3 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-9599
SELECT DISTINCT + - 50 / + 3 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT 41 * + 83 * - NULLIF ( - 20, 57 ) * + 96 - + SUM( 37 ) + + 30, 6 * - - 84 AS col0
----
6533753
504

skipif mysql # not compatible
query II rowsort label-9600
SELECT 41 * + 83 * - NULLIF ( - 20, 57 ) * + 96 - + SUM ( 37 ) + + 30, 6 * - - 84 AS col0
----
6533753
504

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9601
SELECT - - CASE - 34 WHEN + 16 * 38 + - 16 THEN - ( - COALESCE ( + 43, 38, - COUNT( ALL - ( - - 3 ) ) - + 81 + - + 70 ) ) WHEN + - 62 * - + CASE - 11 WHEN - 10 * - - 48 + - CAST( NULL AS DECIMAL ) THEN - + COUNT( * ) ELSE NULL END THEN NULL END + ( - NULLIF ( - 53, 30 * - - 56 * - + 58 * - 90 / 25 + 24 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT - - CASE - 34 WHEN + 16 * 38 + - 16 THEN - ( - COALESCE ( + 43, 38, - COUNT ( ALL - ( - - 3 ) ) - + 81 + - + 70 ) ) WHEN + - 62 * - + CASE - 11 WHEN - 10 * - - 48 + - CAST ( NULL AS REAL ) THEN - + COUNT ( * ) ELSE NULL END THEN NULL END + ( - NULLIF ( - 53, 30 * - - 56 * - + 58 * - 90 / 25 + 24 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT ALL - ( - - 74 ) + - - SUM( ALL + 32 )
----
-42

skipif mysql # not compatible
query I rowsort label-9602
SELECT ALL - ( - - 74 ) + - - SUM ( ALL + 32 )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9603
SELECT ALL + COUNT( - 92 )
----
1

skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL + COUNT ( - 92 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT ALL - + 8 + + + 16 DIV + + 44 * + + 38
----
-8

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL - + 8 + + + 16 / + + 44 * + + 38
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9605
SELECT COALESCE ( + + COUNT( * ), 87 ) * - 64 + + + COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9605
SELECT COALESCE ( + + COUNT ( * ), 87 ) * - 64 + + + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT MIN( - 76 ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-9606
SELECT MIN ( - 76 ) AS col0
----
-76

query I rowsort
SELECT ALL 7 + 94 * - ( + - 57 ) AS col1
----
5365

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT + COUNT( * ) - - + 55
----
56

skipif mysql # not compatible
query I rowsort label-9608
SELECT + COUNT ( * ) - - + 55
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL + 87 * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL + 87 * - COUNT ( * )
----
-87

query II rowsort
SELECT - CASE - 90 WHEN - 78 THEN NULL WHEN + ( - + ( - ( - - 17 ) ) ) THEN + 98 * - + 63 + 54 * - 2 / + 39 ELSE NULL END AS col1, - 40 col1
----
NULL
-40

query I rowsort
SELECT - 39 * + - 26 + - + 8
----
1006

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT - CASE WHEN NOT NULL < NULL THEN + 49 ELSE - ( - MIN( ALL + 72 ) ) + - 92 + - 56 + + ( - - 69 ) + + + CASE - + 50 WHEN + 27 THEN + 25 ELSE NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT - CASE WHEN NOT NULL < NULL THEN + 49 ELSE - ( - MIN ( ALL + 72 ) ) + - 92 + - 56 + + ( - - 69 ) + + + CASE - + 50 WHEN + 27 THEN + 25 ELSE NULL END END
----
NULL

query I rowsort
SELECT + 53 + 11 AS col0
----
64

query I rowsort
SELECT + 59 - - 70 AS col2
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT + COALESCE ( MIN( + 6 ), - COALESCE ( + + 67, + 14 * + 74 ) + 8, + ( - 2 ), - + 43 ) + + 72
----
78

skipif mysql # not compatible
query I rowsort label-9615
SELECT + COALESCE ( MIN ( + 6 ), - COALESCE ( + + 67, + 14 * + 74 ) + 8, + ( - 2 ), - + 43 ) + + 72
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9616
SELECT + CAST( NULL AS SIGNED ) - 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT + CAST ( NULL AS INTEGER ) - 36 AS col2
----
NULL

query I rowsort
SELECT ALL 41 * 39 AS col2
----
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT + 6 + SUM( + 34 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9618
SELECT + 6 + SUM ( + 34 ) AS col1
----
40

query I rowsort
SELECT - COALESCE ( + 71, 35 + + - ( - 6 ), 98 )
----
-71

query I rowsort
SELECT + ( + 58 ) * - + 34 AS col0
----
-1972

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9621
SELECT ALL MIN( DISTINCT 92 ) AS col0, - 99 DIV 33 col1
----
92
-3

skipif mysql # not compatible
query II rowsort label-9621
SELECT ALL MIN ( DISTINCT 92 ) AS col0, - 99 / 33 col1
----
92
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT + CAST( - 11 AS SIGNED ) + - - 93 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-9622
SELECT + CAST ( - 11 AS INTEGER ) + - - 93 AS col1
----
82

query I rowsort
SELECT ALL 5 * - 29 * + 14 AS col2
----
-2030

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT - COALESCE ( + - CAST( NULL AS SIGNED ), 58 * - 44 )
----
2552

skipif mysql # not compatible
query I rowsort label-9624
SELECT - COALESCE ( + - CAST ( NULL AS INTEGER ), 58 * - 44 )
----
2552

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9625
SELECT - 69 / - CASE - 36 WHEN - CAST( NULL AS SIGNED ) + + - 77 THEN - COUNT( * ) WHEN - - 13 THEN - 61 WHEN - + 1 * + + 90 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9625
SELECT - 69 / - CASE - 36 WHEN - CAST ( NULL AS INTEGER ) + + - 77 THEN - COUNT ( * ) WHEN - - 13 THEN - 61 WHEN - + 1 * + + 90 THEN NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT - CASE + 52 WHEN - + CAST( - COALESCE ( - 70, - - 3 + + 75 ) AS SIGNED ) THEN - 16 + + + 88 - + + COUNT( * ) * - 82 WHEN + 0 + - 51 + 13 / + 41 THEN - 30 * + 48 * - 78 * 0 * - 40 + - COALESCE ( + 21, - 83, + 49 ) + + 93 + + 19 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT - CASE + 52 WHEN - + CAST ( - COALESCE ( - 70, - - 3 + + 75 ) AS INTEGER ) THEN - 16 + + + 88 - + + COUNT ( * ) * - 82 WHEN + 0 + - 51 + 13 / + 41 THEN - 30 * + 48 * - 78 * 0 * - 40 + - COALESCE ( + 21, - 83, + 49 ) + + 93 + + 19 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT - SUM( ALL - - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-9627
SELECT - SUM ( ALL - - 9 )
----
-9

query I rowsort
SELECT + - 97 + - - 33 + + + ( + + 70 ) * 98 AS col0
----
6796

query II rowsort
SELECT + - 38 * + 69, 61 AS col1
----
-2622
61

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT ALL - + 52 DIV + - 56
----
0

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL - + 52 / + - 56
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9631
SELECT + + 22 DIV 32 AS col0, - NULLIF ( - CASE 11 WHEN 71 THEN NULL WHEN - + 8 - COUNT( * ) THEN 45 DIV + 86 + - - 73 ELSE NULL END, 70 - 16 + 19 * - - 23 ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9631
SELECT + + 22 / 32 AS col0, - NULLIF ( - CASE 11 WHEN 71 THEN NULL WHEN - + 8 - COUNT ( * ) THEN 45 / + 86 + - - 73 ELSE NULL END, 70 - 16 + 19 * - - 23 ) AS col1
----
0
NULL

query I rowsort
SELECT ALL + ( ( + 18 ) ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT 56 / AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + 27 - - 39 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9633
SELECT 56 / AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + 27 - - 39 AS col1
----
NULL

query I rowsort
SELECT ALL + - 98 col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL + MIN( ALL + - 75 ) * - 42 + + 16 + 32 AS col2
----
3198

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + MIN ( ALL + - 75 ) * - 42 + + 16 + 32 AS col2
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT 95 * - COUNT( * ) + 79 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9636
SELECT 95 * - COUNT ( * ) + 79 AS col2
----
-16

query I rowsort
SELECT + 56 * 33 + 84
----
1932

query I rowsort
SELECT ALL - 35 * - 94 + + 51 col1
----
3341

query I rowsort
SELECT DISTINCT + 99 * - - 51 + + 90 col1
----
5139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT ALL 72 * - - 57 + + 9 / - 62 * - - 76 * CASE + 54 WHEN - - CAST( + - 1 AS SIGNED ) THEN + 67 WHEN - 4 THEN NULL ELSE NULL END - + 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL 72 * - - 57 + + 9 / - 62 * - - 76 * CASE + 54 WHEN - - CAST ( + - 1 AS INTEGER ) THEN + 67 WHEN - 4 THEN NULL ELSE NULL END - + 91 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9641
SELECT DISTINCT 29 * + COUNT( * ) - - - 94 DIV + 33 + - + 39 DIV - + 26 AS col2
----
28

skipif mysql # not compatible
query I rowsort label-9641
SELECT DISTINCT 29 * + COUNT ( * ) - - - 94 / + 33 + - + 39 / - + 26 AS col2
----
28

query I rowsort
SELECT + 18 * - 87
----
-1566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT + 35 + ( - CAST( + - 60 AS SIGNED ) )
----
95

skipif mysql # not compatible
query I rowsort label-9643
SELECT + 35 + ( - CAST ( + - 60 AS INTEGER ) )
----
95

query I rowsort
SELECT - 47 * - + 76
----
3572

query I rowsort
SELECT ALL ( - + 74 ) AS col0
----
-74

query I rowsort
SELECT + 82 * + 30 * - 71
----
-174660

onlyif mysql # DIV for integer division: 
query I rowsort label-9647
SELECT ALL 94 DIV - 65
----
-1

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL 94 / - 65
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9648
SELECT ALL CAST( NULL AS SIGNED ) AS col0, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-9648
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, 10
----
NULL
10

query I rowsort
SELECT - ( + 84 )
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT ALL SUM( DISTINCT + + 9 ) AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9650
SELECT ALL SUM ( DISTINCT + + 9 ) AS col2
----
9

query I rowsort
SELECT + 93 * + - 22 AS col2
----
-2046

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT - MAX( DISTINCT - 64 ) - - 42
----
106

skipif mysql # not compatible
query I rowsort label-9652
SELECT - MAX ( DISTINCT - 64 ) - - 42
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT + 28 * - COUNT( * )
----
-28

skipif mysql # not compatible
query I rowsort label-9653
SELECT + 28 * - COUNT ( * )
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9654
SELECT + CAST( NULL AS SIGNED ) - - + 26 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9654
SELECT + CAST ( NULL AS INTEGER ) - - + 26 col0
----
NULL

query I rowsort
SELECT ALL 51 * + 14
----
714

query I rowsort
SELECT + 57 * - + 53 col2
----
-3021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9657
SELECT + NULLIF ( 82, - ( 39 ) * - 8 + + 71 / NULLIF ( 38 * + 59 + + 5, - 31 ) ) + - CAST( COUNT( * ) AS SIGNED ) * - 62
----
144

skipif mysql # not compatible
query I rowsort label-9657
SELECT + NULLIF ( 82, - ( 39 ) * - 8 + + 71 / NULLIF ( 38 * + 59 + + 5, - 31 ) ) + - CAST ( COUNT ( * ) AS INTEGER ) * - 62
----
144

query I rowsort
SELECT DISTINCT 86 * + 37 AS col1
----
3182

query I rowsort
SELECT ALL 98 + - ( - 70 )
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9660
SELECT COALESCE ( 5, + 88, 63 + + 42 DIV - COALESCE ( COUNT( * ) - - 15 * + CAST( - 52 AS SIGNED ), + 33, + 99 ) ) - - 48 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9660
SELECT COALESCE ( 5, + 88, 63 + + 42 / - COALESCE ( COUNT ( * ) - - 15 * + CAST ( - 52 AS INTEGER ), + 33, + 99 ) ) - - 48 AS col1
----
53

query I rowsort
SELECT DISTINCT 50 + - 58 AS col1
----
-8

query I rowsort
SELECT 28 - 43
----
-15

query I rowsort
SELECT ALL 85 + 17 * + 41
----
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9664
SELECT ALL NULLIF ( CAST( - 74 AS SIGNED ), 56 DIV ( COUNT( * ) ) ) + + 87 DIV + COUNT( * ) AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL NULLIF ( CAST ( - 74 AS INTEGER ), 56 / ( COUNT ( * ) ) ) + + 87 / + COUNT ( * ) AS col0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT 4 DIV - 66 + - 68 AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-9665
SELECT 4 / - 66 + - 68 AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT 53 * NULLIF ( 30 * COUNT( * ), 69 * - 54 - + 17 ) AS col0
----
1590

skipif mysql # not compatible
query I rowsort label-9666
SELECT 53 * NULLIF ( 30 * COUNT ( * ), 69 * - 54 - + 17 ) AS col0
----
1590

onlyif mysql # DIV for integer division: 
query I rowsort label-9667
SELECT 60 DIV 45 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9667
SELECT 60 / 45 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9668
SELECT + 89 * + CAST( 18 AS SIGNED ) - - 0 DIV 99
----
1602

skipif mysql # not compatible
query I rowsort label-9668
SELECT + 89 * + CAST ( 18 AS INTEGER ) - - 0 / 99
----
1602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT DISTINCT - 14 DIV + COUNT( * ) col2
----
-14

skipif mysql # not compatible
query I rowsort label-9669
SELECT DISTINCT - 14 / + COUNT ( * ) col2
----
-14

query I rowsort
SELECT ALL + 59 + + 23
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT COUNT( * ) * + 17
----
17

skipif mysql # not compatible
query I rowsort label-9671
SELECT COUNT ( * ) * + 17
----
17

query I rowsort
SELECT 43 * 7
----
301

query I rowsort
SELECT 85 * + 17
----
1445

query I rowsort
SELECT ALL - NULLIF ( + 33, + 55 )
----
-33

query I rowsort
SELECT 68 * 41 col2
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT 61 * + ( + CASE COUNT( * ) WHEN - 81 + - 96 THEN NULL ELSE + 62 + - ( CASE 55 WHEN 35 * 76 THEN 67 WHEN 66 THEN NULL END ) END ) - - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT 61 * + ( + CASE COUNT ( * ) WHEN - 81 + - 96 THEN NULL ELSE + 62 + - ( CASE 55 WHEN 35 * 76 THEN 67 WHEN 66 THEN NULL END ) END ) - - 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT 84 + - COUNT( * ) AS col0
----
83

skipif mysql # not compatible
query I rowsort label-9677
SELECT 84 + - COUNT ( * ) AS col0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT COUNT( * ) + 81 * 8
----
649

skipif mysql # not compatible
query I rowsort label-9678
SELECT COUNT ( * ) + 81 * 8
----
649

query I rowsort
SELECT 13 * 76 AS col2
----
988

query I rowsort
SELECT 19 - 69 * 83 AS col2
----
-5708

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL - MAX( 94 ) * 29 AS col0
----
-2726

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - MAX ( 94 ) * 29 AS col0
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT ALL + 7 + COUNT( 96 ) * 35 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9682
SELECT ALL + 7 + COUNT ( 96 ) * 35 AS col0
----
42

query I rowsort
SELECT 93 + 78 col1
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9684
SELECT ( - CAST( NULL AS SIGNED ) ) - SUM( DISTINCT + COALESCE ( + 69, 90 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT ( - CAST ( NULL AS INTEGER ) ) - SUM ( DISTINCT + COALESCE ( + 69, 90 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT DISTINCT - 80 * + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT - 80 * + COUNT ( * )
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9686
SELECT 3 DIV - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9686
SELECT 3 / - 61 AS col2
----
0

query I rowsort
SELECT ALL 31 + - 99 AS col2
----
-68

query I rowsort
SELECT ALL + 0 * - 44
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT ALL - + COUNT( * ) + 64 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL - + COUNT ( * ) + 64 AS col1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT NULLIF ( + 59, 18 * + 14 ) + - COUNT( * )
----
58

skipif mysql # not compatible
query I rowsort label-9690
SELECT NULLIF ( + 59, 18 * + 14 ) + - COUNT ( * )
----
58

query I rowsort
SELECT DISTINCT - 8 + 25 * 23 AS col0
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9692
SELECT CASE + 61 WHEN + MIN( ALL + 69 ) + - 0 THEN - 76 * 33 WHEN - CAST( + COUNT( 23 ) AS SIGNED ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT CASE + 61 WHEN + MIN ( ALL + 69 ) + - 0 THEN - 76 * 33 WHEN - CAST ( + COUNT ( 23 ) AS INTEGER ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 75 + 58 AS col2
----
133

query I rowsort
SELECT - - 17 col2
----
17

query I rowsort
SELECT - + 60 col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9696
SELECT - CAST( NULL AS DECIMAL ) + 98 / + NULLIF ( NULLIF ( 29, - SUM( - 82 ) ) * - CASE NULLIF ( 95, + ( + NULLIF ( 17, + COUNT( * ) ) ) ) * 63 WHEN + 41 / 64 + + 73 THEN + 26 - 17 WHEN - 30 + - 62 THEN NULL WHEN - 70 THEN NULL END + - 3, 80 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9696
SELECT - CAST ( NULL AS REAL ) + 98 / + NULLIF ( NULLIF ( 29, - SUM ( - 82 ) ) * - CASE NULLIF ( 95, + ( + NULLIF ( 17, + COUNT ( * ) ) ) ) * 63 WHEN + 41 / 64 + + 73 THEN + 26 - 17 WHEN - 30 + - 62 THEN NULL WHEN - 70 THEN NULL END + - 3, 80 )
----
NULL

query I rowsort
SELECT 9 * 55
----
495

query I rowsort
SELECT - 77 + + 64 AS col0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT DISTINCT - COUNT( DISTINCT - 26 )
----
-1

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT - COUNT ( DISTINCT - 26 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL + 93 * + SUM( + ( + CASE 21 WHEN 68 THEN 57 + + 10 * - ( 25 * + 56 ) ELSE + 56 + - NULLIF ( 67, - 6 ) END ) ) AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + 93 * + SUM ( + ( + CASE 21 WHEN 68 THEN 57 + + 10 * - ( 25 * + 56 ) ELSE + 56 + - NULLIF ( 67, - 6 ) END ) ) AS col0
----
-1023

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL 18 * NULLIF ( - 98, MAX( - 0 ) * + 53 ) - - 80 AS col2
----
-1684

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL 18 * NULLIF ( - 98, MAX ( - 0 ) * + 53 ) - - 80 AS col2
----
-1684

query I rowsort
SELECT DISTINCT 4 * - 96
----
-384

query I rowsort
SELECT + 43 * - COALESCE ( 32, 86, + 97 ) AS col0
----
-1376

onlyif mysql # DIV for integer division: 
query I rowsort label-9704
SELECT + 97 DIV - 72 + 89
----
88

skipif mysql # not compatible
query I rowsort label-9704
SELECT + 97 / - 72 + 89
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT 9 + 25 * - CAST( 94 * 87 AS SIGNED )
----
-204441

skipif mysql # not compatible
query I rowsort label-9705
SELECT 9 + 25 * - CAST ( 94 * 87 AS INTEGER )
----
-204441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9706
SELECT ALL + 99 - + 28 * CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + 99 - + 28 * CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 10 * - 73 AS col2
----
-730

onlyif mysql # DIV for integer division: 
query I rowsort label-9708
SELECT + 40 * 53 DIV - 73 + - 62 col2
----
-91

skipif mysql # not compatible
query I rowsort label-9708
SELECT + 40 * 53 / - 73 + - 62 col2
----
-91

query I rowsort
SELECT ALL + 65 * - 12 AS col0
----
-780

query I rowsort
SELECT ( + - 44 ) + 22
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9711
SELECT DISTINCT - 93 * COALESCE ( - 83, + ( COUNT( * ) ) * + MIN( 55 DIV + 20 ) + + NULLIF ( + 35, - 94 + + 95 ) )
----
7719

skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT - 93 * COALESCE ( - 83, + ( COUNT ( * ) ) * + MIN ( 55 / + 20 ) + + NULLIF ( + 35, - 94 + + 95 ) )
----
7719

query I rowsort
SELECT ALL - CASE - 15 WHEN 71 / 47 THEN - 83 + + 48 ELSE 28 END
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT 94 * - + 90 * + COUNT( * )
----
-8460

skipif mysql # not compatible
query I rowsort label-9713
SELECT 94 * - + 90 * + COUNT ( * )
----
-8460

query I rowsort
SELECT 3 * - - 97 AS col0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - CASE COUNT( * ) WHEN 66 + 62 THEN NULL ELSE + 75 * + COUNT( * ) END AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9715
SELECT - CASE COUNT ( * ) WHEN 66 + 62 THEN NULL ELSE + 75 * + COUNT ( * ) END AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9716
SELECT 19 + - CAST( NULL AS SIGNED ) + + MIN( CASE 2 WHEN + 83 THEN NULL WHEN ( + NULLIF ( 19, + 37 ) ) + + 99 THEN - 10 END - + 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9716
SELECT 19 + - CAST ( NULL AS INTEGER ) + + MIN ( CASE 2 WHEN + 83 THEN NULL WHEN ( + NULLIF ( 19, + 37 ) ) + + 99 THEN - 10 END - + 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT + COUNT( * ) * COUNT( * ) * 70
----
70

skipif mysql # not compatible
query I rowsort label-9717
SELECT + COUNT ( * ) * COUNT ( * ) * 70
----
70

query I rowsort
SELECT 3 * COALESCE ( 16, 56 + 97 * 91, 15 ) + 39 * 97
----
3831

query I rowsort
SELECT DISTINCT 40 * + 9
----
360

query I rowsort
SELECT ALL 75 + + 33 + - 25 * 41
----
-917

query I rowsort
SELECT DISTINCT - 12 + 6 AS col1
----
-6

query I rowsort
SELECT ALL + + 33 * - 18
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT - - CAST( + - 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-9723
SELECT - - CAST ( + - 91 AS INTEGER )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9724
SELECT - - 10 DIV - + 45 * + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT - - 10 / - + 45 * + 54 AS col1
----
0

query I rowsort
SELECT - 34 * - + 39 AS col0
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT ALL + + 41 * SUM( 44 ) * - ( - 9 ) AS col0
----
16236

skipif mysql # not compatible
query I rowsort label-9726
SELECT ALL + + 41 * SUM ( 44 ) * - ( - 9 ) AS col0
----
16236

query I rowsort
SELECT - 78 + - ( - 86 ) AS col0
----
8

query I rowsort
SELECT DISTINCT + - 91 * - 64
----
5824

query I rowsort
SELECT ALL + - 74 - - 43 AS col2
----
-31

query I rowsort
SELECT - + 33 * - 40 * - NULLIF ( 46, 72 )
----
-60720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9731
SELECT ALL + COUNT( * ) * - CAST( - 96 AS SIGNED ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT ALL + COUNT ( * ) * - CAST ( - 96 AS INTEGER ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9732
SELECT ALL - 63 - 38 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL - 63 - 38 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT DISTINCT + - CAST( - MAX( 29 ) AS SIGNED ) * 42 col0
----
1218

skipif mysql # not compatible
query I rowsort label-9733
SELECT DISTINCT + - CAST ( - MAX ( 29 ) AS INTEGER ) * 42 col0
----
1218

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT ALL 67 DIV + - 78
----
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL 67 / + - 78
----
0

query I rowsort
SELECT - 37 * + + 7
----
-259

query I rowsort
SELECT + - 8 - 52 AS col0
----
-60

query I rowsort
SELECT ALL - + 86 - 24 * 24
----
-662

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT - 81 * + + 73 - CASE COUNT( * ) - 31 WHEN ( + 97 ) + 85 THEN - 4 * 93 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9738
SELECT - 81 * + + 73 - CASE COUNT ( * ) - 31 WHEN ( + 97 ) + 85 THEN - 4 * 93 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT - 3 DIV + - 43 * ( - 54 ) + + 56 + - 58 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9739
SELECT - 3 / + - 43 * ( - 54 ) + + 56 + - 58 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT - COUNT( * ) * + - MAX( 34 )
----
34

skipif mysql # not compatible
query I rowsort label-9740
SELECT - COUNT ( * ) * + - MAX ( 34 )
----
34

query I rowsort
SELECT ( - - 34 ) AS col1
----
34

query I rowsort
SELECT DISTINCT 42 * + + 18
----
756

onlyif mysql # aggregate syntax: 
query II rowsort label-9743
SELECT ALL + 4, + COUNT( * ) * + 38 AS col2
----
4
38

skipif mysql # not compatible
query II rowsort label-9743
SELECT ALL + 4, + COUNT ( * ) * + 38 AS col2
----
4
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL 77 * + + COUNT( * ) * + + 81
----
6237

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 77 * + + COUNT ( * ) * + + 81
----
6237

query I rowsort
SELECT DISTINCT + 97 * + 48
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-9746
SELECT CASE + COUNT( * ) WHEN + + 63 THEN + 26 * ( - 61 ) WHEN 47 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT CASE + COUNT ( * ) WHEN + + 63 THEN + 26 * ( - 61 ) WHEN 47 THEN NULL END
----
NULL

query I rowsort
SELECT ALL 41 * + 40
----
1640

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT COALESCE ( 45, + CASE + 52 WHEN 83 * - 61 THEN 51 + COUNT( * ) WHEN + 89 THEN NULL END + 18 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-9748
SELECT COALESCE ( 45, + CASE + 52 WHEN 83 * - 61 THEN 51 + COUNT ( * ) WHEN + 89 THEN NULL END + 18 ) AS col1
----
45

query I rowsort
SELECT + 53 * 89 * 49 AS col2
----
231133

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT - CASE - 98 WHEN + 24 THEN 72 DIV - ( + ( 78 ) ) WHEN CASE - 48 WHEN ( NULLIF ( - 68, - 34 + 56 ) ) * 32 THEN NULL ELSE 61 + + 41 END * + 0 THEN NULL ELSE + 27 END + + 37 * + 26 AS col1
----
935

skipif mysql # not compatible
query I rowsort label-9750
SELECT - CASE - 98 WHEN + 24 THEN 72 / - ( + ( 78 ) ) WHEN CASE - 48 WHEN ( NULLIF ( - 68, - 34 + 56 ) ) * 32 THEN NULL ELSE 61 + + 41 END * + 0 THEN NULL ELSE + 27 END + + 37 * + 26 AS col1
----
935

query I rowsort
SELECT ALL 41 * + 99 + 33
----
4092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9752
SELECT + ( CAST( - - 73 AS SIGNED ) ) AS col0
----
73

skipif mysql # not compatible
query I rowsort label-9752
SELECT + ( CAST ( - - 73 AS INTEGER ) ) AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT CASE + COUNT( * ) WHEN - 2 + - COUNT( ALL 30 + - 35 ) * 92 THEN NULL WHEN + 21 THEN NULL ELSE - 43 * - 34 END
----
1462

skipif mysql # not compatible
query I rowsort label-9753
SELECT CASE + COUNT ( * ) WHEN - 2 + - COUNT ( ALL 30 + - 35 ) * 92 THEN NULL WHEN + 21 THEN NULL ELSE - 43 * - 34 END
----
1462

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT + 59 * + 52 + + 40 + - SUM( ALL ( 82 ) ) * + 27 col0
----
894

skipif mysql # not compatible
query I rowsort label-9754
SELECT + 59 * + 52 + + 40 + - SUM ( ALL ( 82 ) ) * + 27 col0
----
894

query I rowsort
SELECT - 23 * + 85
----
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-9756
SELECT ALL - MAX( ALL - - 32 ) * + 64 + 35 col1
----
-2013

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL - MAX ( ALL - - 32 ) * + 64 + 35 col1
----
-2013

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT 44 * - - 4 + - MAX( DISTINCT - 28 ) + 92 * - 18 AS col1
----
-1452

skipif mysql # not compatible
query I rowsort label-9757
SELECT 44 * - - 4 + - MAX ( DISTINCT - 28 ) + 92 * - 18 AS col1
----
-1452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9758
SELECT ALL 78 * CAST( NULL AS SIGNED ) + - 76 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL 78 * CAST ( NULL AS INTEGER ) + - 76 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9759
SELECT 35 * - 39 * - CAST( 78 AS SIGNED ) + COUNT( * ) AS col2
----
106471

skipif mysql # not compatible
query I rowsort label-9759
SELECT 35 * - 39 * - CAST ( 78 AS INTEGER ) + COUNT ( * ) AS col2
----
106471

onlyif mysql # aggregate syntax: 
query I rowsort label-9760
SELECT COUNT( - + 66 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9760
SELECT COUNT ( - + 66 ) AS col2
----
1

query I rowsort
SELECT ALL CASE + 13 WHEN 75 * - ( 11 ) THEN - 44 ELSE NULL END / 90 AS col2
----
NULL

query I rowsort
SELECT ALL + 6 * + 74 + + 38 AS col0
----
482

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT ALL - NULLIF ( ( + 14 ), 36 ) * + SUM( - 74 * + 57 ) AS col0
----
59052

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL - NULLIF ( ( + 14 ), 36 ) * + SUM ( - 74 * + 57 ) AS col0
----
59052

query I rowsort
SELECT + 63 + + 11 AS col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9765
SELECT DISTINCT + CASE - 18 WHEN + 1 - + COUNT( * ) THEN NULL WHEN + ( 71 ) * ( 88 * 37 ) THEN NULL ELSE + CAST( NULL AS SIGNED ) / 6 END * MAX( ALL 15 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT + CASE - 18 WHEN + 1 - + COUNT ( * ) THEN NULL WHEN + ( 71 ) * ( 88 * 37 ) THEN NULL ELSE + CAST ( NULL AS INTEGER ) / 6 END * MAX ( ALL 15 ) col2
----
NULL

query I rowsort
SELECT + 49 + + 19 col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT ALL MIN( - - 28 ) * + + 85 * - 56
----
-133280

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL MIN ( - - 28 ) * + + 85 * - 56
----
-133280

query I rowsort
SELECT + + 53 + + 97 AS col1
----
150

query I rowsort
SELECT - + 48 - - 54 AS col1
----
6

query I rowsort
SELECT ALL - 67 - - 17 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT - SUM( DISTINCT - + 88 ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9771
SELECT - SUM ( DISTINCT - + 88 ) AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT ALL + 98 * ( - + COUNT( 65 ) ) + 4 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL + 98 * ( - + COUNT ( 65 ) ) + 4 AS col1
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT ALL + + 63 * + NULLIF ( 65, COALESCE ( - MIN( 48 ), 57 + 77, 1 + 35 ) * - CAST( NULL AS SIGNED ) )
----
4095

skipif mysql # not compatible
query I rowsort label-9773
SELECT ALL + + 63 * + NULLIF ( 65, COALESCE ( - MIN ( 48 ), 57 + 77, 1 + 35 ) * - CAST ( NULL AS INTEGER ) )
----
4095

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT - 26 + - + CAST( + 74 AS SIGNED )
----
-100

skipif mysql # not compatible
query I rowsort label-9774
SELECT - 26 + - + CAST ( + 74 AS INTEGER )
----
-100

query I rowsort
SELECT + 65 * - 26 AS col1
----
-1690

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT - COUNT( * ) + - + 32 * + 70
----
-2241

skipif mysql # not compatible
query I rowsort label-9776
SELECT - COUNT ( * ) + - + 32 * + 70
----
-2241

query II rowsort
SELECT - 36, + 7 AS col1
----
-36
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9778
SELECT - + 60 + - CAST( NULLIF ( - COALESCE ( - 87, + 57 ), COUNT( * ) - - 0 ) AS SIGNED )
----
-147

skipif mysql # not compatible
query I rowsort label-9778
SELECT - + 60 + - CAST ( NULLIF ( - COALESCE ( - 87, + 57 ), COUNT ( * ) - - 0 ) AS INTEGER )
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT + - 21 * + 78 + + - MAX( ALL 92 ) + - 87 AS col2
----
-1817

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT + - 21 * + 78 + + - MAX ( ALL 92 ) + - 87 AS col2
----
-1817

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9780
SELECT ALL COUNT( * ) DIV - + COUNT( 91 ) + - 2 DIV - CAST( 2 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL COUNT ( * ) / - + COUNT ( 91 ) + - 2 / - CAST ( 2 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT 2 * 43 * - ( 47 ) * + 71 + 2 AS col1
----
-286980

query I rowsort
SELECT ALL + 11 * + 34 AS col0
----
374

query I rowsort
SELECT - ( - + 48 ) + - - 42
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT + NULLIF ( - - 42, - CASE - 41 WHEN COUNT( * ) THEN NULL WHEN + 49 THEN + 22 WHEN COUNT( * ) THEN 90 + 58 END )
----
42

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + NULLIF ( - - 42, - CASE - 41 WHEN COUNT ( * ) THEN NULL WHEN + 49 THEN + 22 WHEN COUNT ( * ) THEN 90 + 58 END )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9785
SELECT ALL 68 / - - 31 * CAST( NULL AS SIGNED ) + + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL 68 / - - 31 * CAST ( NULL AS INTEGER ) + + 58 AS col2
----
NULL

query I rowsort
SELECT - ( - 48 ) * 2 AS col1
----
96

query II rowsort
SELECT ALL 29 + 70 AS col2, 65 AS col0
----
99
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9788
SELECT DISTINCT - 21 + CASE + 93 WHEN + 33 + + 17 THEN NULL ELSE + 15 END DIV 61
----
-21

skipif mysql # not compatible
query I rowsort label-9788
SELECT DISTINCT - 21 + CASE + 93 WHEN + 33 + + 17 THEN NULL ELSE + 15 END / 61
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT ( + 90 ) * CASE - 25 WHEN 28 THEN NULL WHEN 67 - 39 THEN - 94 ELSE + COUNT( * ) * + 60 END AS col2
----
5400

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT ( + 90 ) * CASE - 25 WHEN 28 THEN NULL WHEN 67 - 39 THEN - 94 ELSE + COUNT ( * ) * + 60 END AS col2
----
5400

query I rowsort
SELECT DISTINCT + 58 + - 42 * 44 AS col2
----
-1790

query I rowsort
SELECT ALL - NULLIF ( + 3, - 96 ) + + 15 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL + COUNT( * ) * - 95
----
-95

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + COUNT ( * ) * - 95
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9793
SELECT DISTINCT ( - - COALESCE ( - + 25, ( - NULLIF ( + CASE - COUNT( * ) WHEN 79 THEN - 44 ELSE 71 * ( 12 ) END, - 61 * 39 ) ), 1 * CASE 55 * 58 WHEN 84 / COUNT( * ) - - 86 THEN - 58 + + COUNT( * ) WHEN - 72 THEN 85 WHEN + CAST( 69 AS SIGNED ) + COUNT( * ) THEN - CAST( NULL AS SIGNED ) END ) ) * 25
----
-625

skipif mysql # not compatible
query I rowsort label-9793
SELECT DISTINCT ( - - COALESCE ( - + 25, ( - NULLIF ( + CASE - COUNT ( * ) WHEN 79 THEN - 44 ELSE 71 * ( 12 ) END, - 61 * 39 ) ), 1 * CASE 55 * 58 WHEN 84 / COUNT ( * ) - - 86 THEN - 58 + + COUNT ( * ) WHEN - 72 THEN 85 WHEN + CAST ( 69 AS INTEGER ) + COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) END ) ) * 25
----
-625

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT ALL 0 - - NULLIF ( + + 90, 3 + + ( + 69 + + 87 * + 11 ) ) DIV - 99 col0
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL 0 - - NULLIF ( + + 90, 3 + + ( + 69 + + 87 * + 11 ) ) / - 99 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT DISTINCT - 38 / 17 + - CAST( NULL AS SIGNED ) * + ( 50 ) + + 57 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT - 38 / 17 + - CAST ( NULL AS INTEGER ) * + ( 50 ) + + 57 AS col1
----
NULL

query I rowsort
SELECT + 74 * - 2 * 49
----
-7252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9797
SELECT DISTINCT + 5 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT DISTINCT + 5 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9798
SELECT DISTINCT - MIN( ALL 44 ) DIV 40 col2
----
-1

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT - MIN ( ALL 44 ) / 40 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9799
SELECT DISTINCT SUM( + - 28 ) DIV + 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9799
SELECT DISTINCT SUM ( + - 28 ) / + 46 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT DISTINCT - COALESCE ( - 40, + NULLIF ( CASE COUNT( * ) WHEN NULLIF ( COUNT( * ), + ( 21 ) ) THEN NULL WHEN 61 - 41 THEN NULL WHEN + 34 * - 51 THEN 68 END, + 19 * - 74 ) ) * 10 AS col0
----
400

skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - COALESCE ( - 40, + NULLIF ( CASE COUNT ( * ) WHEN NULLIF ( COUNT ( * ), + ( 21 ) ) THEN NULL WHEN 61 - 41 THEN NULL WHEN + 34 * - 51 THEN 68 END, + 19 * - 74 ) ) * 10 AS col0
----
400

query I rowsort
SELECT + 63 - - - 48 AS col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT MAX( ALL + - 93 ) * - - 84 DIV + + MAX( DISTINCT + 84 ) + 21
----
-72

skipif mysql # not compatible
query I rowsort label-9802
SELECT MAX ( ALL + - 93 ) * - - 84 / + + MAX ( DISTINCT + 84 ) + 21
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ( 57 ) + + 87 - + 68 + + COUNT( * ) * 42 col1
----
118

skipif mysql # not compatible
query I rowsort label-9803
SELECT ( 57 ) + + 87 - + 68 + + COUNT ( * ) * 42 col1
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT DISTINCT - NULLIF ( - 51, - CAST( - ( - MIN( ALL - 53 ) ) AS SIGNED ) )
----
51

skipif mysql # not compatible
query I rowsort label-9804
SELECT DISTINCT - NULLIF ( - 51, - CAST ( - ( - MIN ( ALL - 53 ) ) AS INTEGER ) )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL - MAX( DISTINCT + ( 41 ) ) + 66
----
25

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL - MAX ( DISTINCT + ( 41 ) ) + 66
----
25

query I rowsort
SELECT 88 - 26 col1
----
62

query I rowsort
SELECT DISTINCT 24 + + 48
----
72

query I rowsort
SELECT 97 + 30 AS col0
----
127

query I rowsort
SELECT ALL + 7 + - + 27 * + + 26
----
-695

query I rowsort
SELECT ALL - 52 + - 7 * - 91 AS col2
----
585

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT 16 * + NULLIF ( - ( - 46 ), + COUNT( DISTINCT - 11 ) ) + - 54
----
682

skipif mysql # not compatible
query I rowsort label-9811
SELECT 16 * + NULLIF ( - ( - 46 ), + COUNT ( DISTINCT - 11 ) ) + - 54
----
682

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT 84 DIV 76
----
1

skipif mysql # not compatible
query I rowsort label-9812
SELECT 84 / 76
----
1

query I rowsort
SELECT 19 * + 37
----
703

onlyif mysql # aggregate syntax: 
query I rowsort label-9814
SELECT DISTINCT - COUNT( * ) + 6 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - COUNT ( * ) + 6 AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9815
SELECT + 71 AS col0, COUNT( * ) * 48
----
71
48

skipif mysql # not compatible
query II rowsort label-9815
SELECT + 71 AS col0, COUNT ( * ) * 48
----
71
48

query I rowsort
SELECT ALL 23 + - 58 col1
----
-35

query II rowsort
SELECT ALL - ( - 27 ) * - 30, 79 * 93 AS col1
----
-810
7347

onlyif mysql # DIV for integer division: 
query I rowsort label-9818
SELECT ALL 99 * 15 DIV 88
----
16

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL 99 * 15 / 88
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT DISTINCT + 89 + - - COUNT( * ) + - 75 + - 82 + + 85 * - 24
----
-2107

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT + 89 + - - COUNT ( * ) + - 75 + - 82 + + 85 * - 24
----
-2107

query I rowsort
SELECT DISTINCT - 35 * + 6
----
-210

query I rowsort
SELECT 19 * - 18 AS col1
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT + 63 * + SUM( DISTINCT + 16 )
----
1008

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT + 63 * + SUM ( DISTINCT + 16 )
----
1008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9823
SELECT CAST( 1 AS SIGNED ) * + + 57 - + 32 + - 73 + + 35 * ( 29 * 96 )
----
97392

skipif mysql # not compatible
query I rowsort label-9823
SELECT CAST ( 1 AS INTEGER ) * + + 57 - + 32 + - 73 + + 35 * ( 29 * 96 )
----
97392

query II rowsort
SELECT 7 AS col0, 29 AS col1
----
7
29

query I rowsort
SELECT 9 + COALESCE ( + 21, + 3 ) AS col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT - COUNT( * ) * + 71 - - 24 * - 82 AS col0
----
-2039

skipif mysql # not compatible
query I rowsort label-9826
SELECT - COUNT ( * ) * + 71 - - 24 * - 82 AS col0
----
-2039

query I rowsort
SELECT 18 + - 77
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9828
SELECT COUNT( * ) * - 72 * + 29 + + ( 88 ) + CAST( NULL AS SIGNED ) * CAST( COUNT( * ) - 64 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9828
SELECT COUNT ( * ) * - 72 * + 29 + + ( 88 ) + CAST ( NULL AS INTEGER ) * CAST ( COUNT ( * ) - 64 AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 53 * + 4
----
212

query I rowsort
SELECT DISTINCT + 9 * + 90 AS col1
----
810

query I rowsort
SELECT - 72 * + - 7
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT ALL 92 AS col2, MIN( - - 77 ) col1
----
92
77

skipif mysql # not compatible
query II rowsort label-9832
SELECT ALL 92 AS col2, MIN ( - - 77 ) col1
----
92
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT + COUNT( * ) * 11 * - - CASE - + 52 WHEN + MAX( DISTINCT - 62 ) THEN + COALESCE ( + 40, 89 ) + + CAST( 16 AS SIGNED ) WHEN - 11 * - 66 + 96 / - 15 THEN NULL ELSE NULL END - ( - 58 + + 1 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT + COUNT ( * ) * 11 * - - CASE - + 52 WHEN + MAX ( DISTINCT - 62 ) THEN + COALESCE ( + 40, 89 ) + + CAST ( 16 AS INTEGER ) WHEN - 11 * - 66 + 96 / - 15 THEN NULL ELSE NULL END - ( - 58 + + 1 ) AS col2
----
NULL

query I rowsort
SELECT + 88 * 68 + 6 + + - 65 / CASE + 57 WHEN - 23 THEN NULL WHEN 10 - 71 THEN 73 ELSE NULL END + 67
----
NULL

query I rowsort
SELECT 76 + + + 77
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT - SUM( ALL 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-9836
SELECT - SUM ( ALL 27 ) AS col1
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9837
SELECT DISTINCT + - 50 + + 63 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9837
SELECT DISTINCT + - 50 + + 63 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT DISTINCT - + 37 + - - MIN( - - 78 ) + - - 94
----
135

skipif mysql # not compatible
query I rowsort label-9838
SELECT DISTINCT - + 37 + - - MIN ( - - 78 ) + - - 94
----
135

query I rowsort
SELECT ALL 40 + - - 22 AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9840
SELECT + 10 + - CAST( + 70 AS SIGNED ) DIV + 6 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9840
SELECT + 10 + - CAST ( + 70 AS INTEGER ) / + 6 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9841
SELECT ALL - COUNT( ALL + 59 ) DIV - 13 + + 22 * + 66 AS col1
----
1452

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL - COUNT ( ALL + 59 ) / - 13 + + 22 * + 66 AS col1
----
1452

query I rowsort
SELECT DISTINCT 83 + + 19 + 43
----
145

query II rowsort
SELECT - 3 AS col2, 30 AS col2
----
-3
30

query I rowsort
SELECT ALL 60 + + ( 20 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL 18 + - ( COUNT( * ) )
----
17

skipif mysql # not compatible
query I rowsort label-9845
SELECT ALL 18 + - ( COUNT ( * ) )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT MAX( DISTINCT - + 5 ) * - 8 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-9846
SELECT MAX ( DISTINCT - + 5 ) * - 8 AS col0
----
40

query I rowsort
SELECT - CASE 15 WHEN - 8 + - - 16 + + 60 * 91 - + 23 THEN NULL ELSE 63 END AS col1
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + COALESCE ( - + 86, + ( 89 ) * 6 + 24 + 6 ) + 7 * + MIN( ALL 32 + + ( 37 ) * + 74 ) AS col0
----
19304

skipif mysql # not compatible
query I rowsort label-9848
SELECT + COALESCE ( - + 86, + ( 89 ) * 6 + 24 + 6 ) + 7 * + MIN ( ALL 32 + + ( 37 ) * + 74 ) AS col0
----
19304

query II rowsort
SELECT + 0 * - 51, - 58 AS col1
----
0
-58

query I rowsort
SELECT ALL 24 * + + 20 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL 82 + - 34 + + + SUM( + ( + 6 ) ) col1
----
54

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL 82 + - 34 + + + SUM ( + ( + 6 ) ) col1
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT DISTINCT 97 * - 15 - - 89 DIV - 33
----
-1457

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT 97 * - 15 - - 89 / - 33
----
-1457

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT ALL 76 * 91 DIV + + ( - + 92 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL 76 * 91 / + + ( - + 92 ) AS col2
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9854
SELECT 76 DIV + + 16 DIV COUNT( * ) * - COUNT( 49 ) + + - 26 + + 6 * 47 AS col0
----
252

skipif mysql # not compatible
query I rowsort label-9854
SELECT 76 / + + 16 / COUNT ( * ) * - COUNT ( 49 ) + + - 26 + + 6 * 47 AS col0
----
252

query I rowsort
SELECT ALL + 57 col2
----
57

onlyif mysql # aggregate syntax: 
query III rowsort label-9856
SELECT - 64 + COUNT( * ), - 15 + - 81 AS col1, + COUNT( * ) AS col0
----
-63
-96
1

skipif mysql # not compatible
query III rowsort label-9856
SELECT - 64 + COUNT ( * ), - 15 + - 81 AS col1, + COUNT ( * ) AS col0
----
-63
-96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL + SUM( ALL - 56 )
----
-56

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + SUM ( ALL - 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9858
SELECT NULLIF ( + - COUNT( * ), + + 60 * - 87 - + 80 + - CAST( NULL AS SIGNED ) + + 5 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9858
SELECT NULLIF ( + - COUNT ( * ), + + 60 * - 87 - + 80 + - CAST ( NULL AS INTEGER ) + + 5 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + NULLIF ( ( + + COUNT( * ) ), - 36 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9859
SELECT + NULLIF ( ( + + COUNT ( * ) ), - 36 ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9860
SELECT + CASE - 97 WHEN 98 * + CAST( NULL AS DECIMAL ) THEN ( + 65 ) WHEN + 34 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9860
SELECT + CASE - 97 WHEN 98 * + CAST ( NULL AS REAL ) THEN ( + 65 ) WHEN + 34 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9861
SELECT + 47 * 97 + - 25 - 19 AS col1, 52 DIV - MAX( DISTINCT 52 ) AS col1
----
4515
-1

skipif mysql # not compatible
query II rowsort label-9861
SELECT + 47 * 97 + - 25 - 19 AS col1, 52 / - MAX ( DISTINCT 52 ) AS col1
----
4515
-1

query I rowsort
SELECT DISTINCT - 58 * + 72 - 49
----
-4225

query I rowsort
SELECT + 4 * - 13 AS col0
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9864
SELECT ALL COUNT( * ) DIV 82 DIV + ( - + MIN( DISTINCT + ( 68 ) ) ) * - 1
----
0

skipif mysql # not compatible
query I rowsort label-9864
SELECT ALL COUNT ( * ) / 82 / + ( - + MIN ( DISTINCT + ( 68 ) ) ) * - 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + SUM( ALL - 2 ) AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + SUM ( ALL - 2 ) AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT COUNT( * ) * COUNT( * ) * + - 30 + + 97 * - 7
----
-709

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * + - 30 + + 97 * - 7
----
-709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9867
SELECT DISTINCT + CAST( + 60 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT + CAST ( + 60 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL + 11 * 40 * - + CASE WHEN - - COALESCE ( - 49, 75 * 91 ) BETWEEN + 98 AND ( NULL ) OR NOT + 45 * COUNT( * ) IS NULL THEN - 5 END * - 78
----
-171600

skipif mysql # not compatible
query I rowsort label-9868
SELECT ALL + 11 * 40 * - + CASE WHEN - - COALESCE ( - 49, 75 * 91 ) BETWEEN + 98 AND ( NULL ) OR NOT + 45 * COUNT ( * ) IS NULL THEN - 5 END * - 78
----
-171600

query I rowsort
SELECT ALL - 36 * - 7
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT MIN( ALL - 84 )
----
-84

skipif mysql # not compatible
query I rowsort label-9870
SELECT MIN ( ALL - 84 )
----
-84

query I rowsort
SELECT - 31 * 4 * 91 AS col2
----
-11284

onlyif mysql # aggregate syntax: 
query II rowsort label-9872
SELECT - COUNT( + 16 ) AS col0, - 15 AS col2
----
-1
-15

skipif mysql # not compatible
query II rowsort label-9872
SELECT - COUNT ( + 16 ) AS col0, - 15 AS col2
----
-1
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9873
SELECT - 93, + 17 + 15 + 69 - 87 / + CAST( NULL AS DECIMAL ) * - 20 / - 70 AS col0
----
-93
NULL

skipif mysql # not compatible
query II rowsort label-9873
SELECT - 93, + 17 + 15 + 69 - 87 / + CAST ( NULL AS REAL ) * - 20 / - 70 AS col0
----
-93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT ALL COALESCE ( COUNT( * ), + + 64, 10 ) AS col0, + 18 + - - 52 col0
----
1
70

skipif mysql # not compatible
query II rowsort label-9874
SELECT ALL COALESCE ( COUNT ( * ), + + 64, 10 ) AS col0, + 18 + - - 52 col0
----
1
70

onlyif mysql # aggregate syntax: 
query II rowsort label-9875
SELECT - COUNT( * ), - 83 AS col1
----
-1
-83

skipif mysql # not compatible
query II rowsort label-9875
SELECT - COUNT ( * ), - 83 AS col1
----
-1
-83

query I rowsort
SELECT DISTINCT - 42 + 68 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL - 4 + - - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL - 4 + - - COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT - - 98 - + 90 * 68
----
-6022

query I rowsort
SELECT - + ( + 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-9880
SELECT DISTINCT - 60 * + 34 * MIN( 53 ) * + COUNT( * ) + + 44 + 18 AS col1
----
-108058

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 60 * + 34 * MIN ( 53 ) * + COUNT ( * ) + + 44 + 18 AS col1
----
-108058

query I rowsort
SELECT - - 54 + - + 81
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT ALL - COALESCE ( + 44, - CAST( - - COUNT( * ) AS SIGNED ), 76 * + + 27 + CAST( + MAX( - 94 ) AS SIGNED ) ) + 80 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL - COALESCE ( + 44, - CAST ( - - COUNT ( * ) AS INTEGER ), 76 * + + 27 + CAST ( + MAX ( - 94 ) AS INTEGER ) ) + 80 AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-9883
SELECT 0 AS col2, - ( - 82 ) * + CASE - 11 WHEN + - SUM( DISTINCT - 20 ) * 19 + + 2 * 96 THEN ( 45 ) * + 24 + + COUNT( * ) ELSE NULL END * + 98
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9883
SELECT 0 AS col2, - ( - 82 ) * + CASE - 11 WHEN + - SUM ( DISTINCT - 20 ) * 19 + + 2 * 96 THEN ( 45 ) * + 24 + + COUNT ( * ) ELSE NULL END * + 98
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT ALL - 89 + - 69 + + - COUNT( * )
----
-159

skipif mysql # not compatible
query I rowsort label-9884
SELECT ALL - 89 + - 69 + + - COUNT ( * )
----
-159

query II rowsort
SELECT - 24 + 5, 2 * 1 AS col0
----
-19
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9886
SELECT - COALESCE ( - - 48, + 42 * + ( - COUNT( * ) ) * - 0 DIV + 95 * - 8 + + NULLIF ( - 71 - - 61 * + ( - 15 * - ( COUNT( * ) * 53 ) ), + CAST( NULL AS SIGNED ) ), - 76 - 95 ) + 62 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9886
SELECT - COALESCE ( - - 48, + 42 * + ( - COUNT ( * ) ) * - 0 / + 95 * - 8 + + NULLIF ( - 71 - - 61 * + ( - 15 * - ( COUNT ( * ) * 53 ) ), + CAST ( NULL AS INTEGER ) ), - 76 - 95 ) + 62 AS col0
----
14

query I rowsort
SELECT + 6 * - 62 * 12 AS col0
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT - COUNT( + - 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-9888
SELECT - COUNT ( + - 0 )
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9889
SELECT ALL + 44 * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + 44 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 89 - + 89 AS col0
----
-178

query I rowsort
SELECT DISTINCT ( 1 ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + 70 * + - SUM( ALL 40 )
----
-2800

skipif mysql # not compatible
query I rowsort label-9892
SELECT + 70 * + - SUM ( ALL 40 )
----
-2800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL CAST( + NULLIF ( 16, 80 ) AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL CAST ( + NULLIF ( 16, 80 ) AS INTEGER ) AS col0
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9894
SELECT + 47 + MIN( ALL - + 96 ) + - - 44 * - COUNT( DISTINCT - 32 ) * + 34 + - 69 DIV - 42 col1
----
-1544

skipif mysql # not compatible
query I rowsort label-9894
SELECT + 47 + MIN ( ALL - + 96 ) + - - 44 * - COUNT ( DISTINCT - 32 ) * + 34 + - 69 / - 42 col1
----
-1544

query I rowsort
SELECT + 23 + - - 34
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9896
SELECT - 35 DIV - + ( + SUM( + 38 ) ) * + + 9 col0, + 97
----
0
97

skipif mysql # not compatible
query II rowsort label-9896
SELECT - 35 / - + ( + SUM ( + 38 ) ) * + + 9 col0, + 97
----
0
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9897
SELECT CAST( SUM( - + 59 ) AS SIGNED ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( SUM ( - + 59 ) AS INTEGER ) AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT + 17 * - + 92 * + + COUNT( * ) AS col2
----
-1564

skipif mysql # not compatible
query I rowsort label-9898
SELECT + 17 * - + 92 * + + COUNT ( * ) AS col2
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL COUNT( * ) * + NULLIF ( + + 92, + 38 )
----
92

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL COUNT ( * ) * + NULLIF ( + + 92, + 38 )
----
92

query I rowsort
SELECT + NULLIF ( + - 28, 29 * AVG ( DISTINCT 12 ) )
----
-28

query I rowsort
SELECT + 81 * + - NULLIF ( - 81, 46 * - - ( + 1 ) )
----
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT + 98 - - 96 + + + 57 * - - COUNT( * ) AS col1
----
251

skipif mysql # not compatible
query I rowsort label-9902
SELECT + 98 - - 96 + + + 57 * - - COUNT ( * ) AS col1
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT COUNT( * ) * + 66
----
66

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT COUNT ( * ) * + 66
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT + 93 * - MAX( - + ( - 17 ) ) AS col0
----
-1581

skipif mysql # not compatible
query I rowsort label-9904
SELECT + 93 * - MAX ( - + ( - 17 ) ) AS col0
----
-1581

query I rowsort
SELECT + 63 * + 13 AS col1
----
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9906
SELECT - - COUNT( * ) * - 44 + - 93 + + + 30 DIV COUNT( 83 ) AS col0
----
-107

skipif mysql # not compatible
query I rowsort label-9906
SELECT - - COUNT ( * ) * - 44 + - 93 + + + 30 / COUNT ( 83 ) AS col0
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT + + 68 + - CAST( - 93 AS SIGNED )
----
161

skipif mysql # not compatible
query I rowsort label-9907
SELECT + + 68 + - CAST ( - 93 AS INTEGER )
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ( + - COUNT( * ) ) * - 39 - - + 76
----
115

skipif mysql # not compatible
query I rowsort label-9908
SELECT ( + - COUNT ( * ) ) * - 39 - - + 76
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9909
SELECT ALL ( - 71 ) * 7 + 92 - 50 + - 0 + - MAX( ALL 88 ) DIV + 55 + 48
----
-408

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL ( - 71 ) * 7 + 92 - 50 + - 0 + - MAX ( ALL 88 ) / + 55 + 48
----
-408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9910
SELECT + - 93 + - CASE COUNT( * ) WHEN + 91 THEN NULL WHEN - 42 THEN NULL WHEN 92 - + 79 * - 90 THEN - 84 WHEN 22 THEN 85 DIV 37 ELSE 38 * 5 END AS col2
----
-283

skipif mysql # not compatible
query I rowsort label-9910
SELECT + - 93 + - CASE COUNT ( * ) WHEN + 91 THEN NULL WHEN - 42 THEN NULL WHEN 92 - + 79 * - 90 THEN - 84 WHEN 22 THEN 85 / 37 ELSE 38 * 5 END AS col2
----
-283

query I rowsort
SELECT ALL + + ( + 22 ) AS col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT - 16 * + COUNT( * ) + + + 53 * 76 + + + 9 * - + 51
----
3553

skipif mysql # not compatible
query I rowsort label-9912
SELECT - 16 * + COUNT ( * ) + + + 53 * 76 + + + 9 * - + 51
----
3553

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT - 8 * + 67 * + 28 + COUNT( + 21 ) - - 78
----
-14929

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - 8 * + 67 * + 28 + COUNT ( + 21 ) - - 78
----
-14929

onlyif mysql # aggregate syntax: 
query II rowsort label-9914
SELECT + ( - COUNT( * ) ) AS col2, + 74 + + - 73
----
-1
1

skipif mysql # not compatible
query II rowsort label-9914
SELECT + ( - COUNT ( * ) ) AS col2, + 74 + + - 73
----
-1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT - CAST( + - 34 AS SIGNED ) + - - 17 + 81
----
132

skipif mysql # not compatible
query I rowsort label-9915
SELECT - CAST ( + - 34 AS INTEGER ) + - - 17 + 81
----
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9916
SELECT ALL COUNT( * ) * - 68 + + + 8 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL COUNT ( * ) * - 68 + + + 8 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9917
SELECT DISTINCT - 93 * - 69 + + + ( - + 13 ) DIV + - 91 - + - 92 * - MIN( + 19 ) DIV + COUNT( * ) AS col2
----
4669

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT - 93 * - 69 + + + ( - + 13 ) / + - 91 - + - 92 * - MIN ( + 19 ) / + COUNT ( * ) AS col2
----
4669

query I rowsort
SELECT DISTINCT - - 83 * - 6 AS col1
----
-498

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL COALESCE ( 35, MAX( DISTINCT + 44 ) * + 26 ) * - 63 + - 67 + 35 * - 0
----
-2272

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL COALESCE ( 35, MAX ( DISTINCT + 44 ) * + 26 ) * - 63 + - 67 + 35 * - 0
----
-2272

query I rowsort
SELECT + 32 * - 32 * - 12 * + 6 + + - 27
----
73701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT COUNT( * ) * 18 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT COUNT ( * ) * 18 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9922
SELECT ALL + - 45 DIV - ( + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL + - 45 / - ( + 55 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT 23 + - COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-9923
SELECT 23 + - COUNT ( * ) col0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9924
SELECT DISTINCT 4 AS col0, CAST( NULL AS SIGNED ) - - 80 + + - 20
----
4
NULL

skipif mysql # not compatible
query II rowsort label-9924
SELECT DISTINCT 4 AS col0, CAST ( NULL AS INTEGER ) - - 80 + + - 20
----
4
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9925
SELECT DISTINCT 15 col1, + ( 44 ) DIV - - 66 * + - 45 * + COALESCE ( + 91, + 13 ) AS col2
----
15
0

skipif mysql # not compatible
query II rowsort label-9925
SELECT DISTINCT 15 col1, + ( 44 ) / - - 66 * + - 45 * + COALESCE ( + 91, + 13 ) AS col2
----
15
0

query I rowsort
SELECT 93 * + - ( 26 ) AS col2
----
-2418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9927
SELECT ALL + COALESCE ( + COUNT( * ), + NULLIF ( + CAST( - - 65 AS SIGNED ), + - 22 + + 82 + 68 / COUNT( * ) ) + 61 * - 61 ) * + 9 col2
----
9

skipif mysql # not compatible
query I rowsort label-9927
SELECT ALL + COALESCE ( + COUNT ( * ), + NULLIF ( + CAST ( - - 65 AS INTEGER ), + - 22 + + 82 + 68 / COUNT ( * ) ) + 61 * - 61 ) * + 9 col2
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9928
SELECT DISTINCT + ( 90 ) * COALESCE ( 98, - 3 * CAST( - + 32 AS SIGNED ) * + 8 + - NULLIF ( + 12, + 87 + 57 ) DIV + 31 + 86, - 61 ) * 71
----
626220

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + ( 90 ) * COALESCE ( 98, - 3 * CAST ( - + 32 AS INTEGER ) * + 8 + - NULLIF ( + 12, + 87 + 57 ) / + 31 + 86, - 61 ) * 71
----
626220

query I rowsort
SELECT 9 + + + 1 - 14 * - 89 * + 83
----
103428

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT NULLIF ( - 22, + 30 ) * - COUNT( * ) + 57 * - + ( + NULLIF ( COUNT( 91 ), COUNT( * ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT NULLIF ( - 22, + 30 ) * - COUNT ( * ) + 57 * - + ( + NULLIF ( COUNT ( 91 ), COUNT ( * ) ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT 18 + - - 60 + + + ( + COUNT( * ) )
----
79

skipif mysql # not compatible
query I rowsort label-9931
SELECT 18 + - - 60 + + + ( + COUNT ( * ) )
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9932
SELECT 66, + COUNT( + - 33 ) col1
----
66
1

skipif mysql # not compatible
query II rowsort label-9932
SELECT 66, + COUNT ( + - 33 ) col1
----
66
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9933
SELECT ALL + CASE - - CASE 29 WHEN - 24 * - COUNT( DISTINCT + - 16 ) DIV 4 + - 36 THEN NULL WHEN 45 THEN 24 ELSE + ( - 98 ) * + 22 END WHEN 53 THEN + 53 DIV - 59 + CAST( + MAX( ALL + COALESCE ( 82, - 65 ) ) + - 50 AS SIGNED ) * 88 ELSE 42 END * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + CASE - - CASE 29 WHEN - 24 * - COUNT ( DISTINCT + - 16 ) / 4 + - 36 THEN NULL WHEN 45 THEN 24 ELSE + ( - 98 ) * + 22 END WHEN 53 THEN + 53 / - 59 + CAST ( + MAX ( ALL + COALESCE ( 82, - 65 ) ) + - 50 AS INTEGER ) * 88 ELSE 42 END * COUNT ( * )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9934
SELECT COUNT( * ) DIV - SUM( - 15 ) AS col1, 75 AS col2
----
0
75

skipif mysql # not compatible
query II rowsort label-9934
SELECT COUNT ( * ) / - SUM ( - 15 ) AS col1, 75 AS col2
----
0
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9935
SELECT - 38 * + 38 + + - 26 + - + COUNT( * ) AS col2, ( - + COALESCE ( + 68, 77 ) )
----
-1471
-68

skipif mysql # not compatible
query II rowsort label-9935
SELECT - 38 * + 38 + + - 26 + - + COUNT ( * ) AS col2, ( - + COALESCE ( + 68, 77 ) )
----
-1471
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-9936
SELECT + 43, - 40 * COUNT( * ) * + 40 AS col0
----
43
-1600

skipif mysql # not compatible
query II rowsort label-9936
SELECT + 43, - 40 * COUNT ( * ) * + 40 AS col0
----
43
-1600

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL - SUM( - + 10 )
----
10

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL - SUM ( - + 10 )
----
10

query I rowsort
SELECT DISTINCT + 68 + - 54 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL - CASE - SUM( - 55 ) WHEN - - 22 THEN + + ( 16 ) + ( - 94 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL - CASE - SUM ( - 55 ) WHEN - - 22 THEN + + ( 16 ) + ( - 94 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT 46 * + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9940
SELECT 46 * + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + COUNT( - ( - 31 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9941
SELECT + COUNT ( - ( - 31 ) ) AS col2
----
1

query I rowsort
SELECT ( 0 ) + + - 68 * - ( + 43 ) + - 57
----
2867

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT ALL + COUNT( * ) + 61 + - 54 - - + COUNT( * ) + - - CASE COUNT( * ) WHEN 21 - + 73 THEN + ( - MAX( ALL + 50 ) ) WHEN - COALESCE ( 98, 31 ) * - 9 + + COUNT( * ) THEN NULL ELSE NULL END + 33 * 11 * - CASE 18 + 80 / + 12 WHEN - 56 + + ( - 44 + 15 ) THEN - ( - 25 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + COUNT ( * ) + 61 + - 54 - - + COUNT ( * ) + - - CASE COUNT ( * ) WHEN 21 - + 73 THEN + ( - MAX ( ALL + 50 ) ) WHEN - COALESCE ( 98, 31 ) * - 9 + + COUNT ( * ) THEN NULL ELSE NULL END + 33 * 11 * - CASE 18 + 80 / + 12 WHEN - 56 + + ( - 44 + 15 ) THEN - ( - 25 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT + 13 DIV 67 + + 26 DIV + COUNT( * ) + - - 27 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 13 / 67 + + 26 / + COUNT ( * ) + - - 27 AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL - + MIN( DISTINCT + 25 ) col1
----
-25

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL - + MIN ( DISTINCT + 25 ) col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT DISTINCT + MAX( DISTINCT 95 ) + 2 DIV + + ( 86 )
----
95

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + MAX ( DISTINCT 95 ) + 2 / + + ( 86 )
----
95

query II rowsort
SELECT ALL - 74, - 61 col0
----
-74
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT - + MIN( + - 47 ) AS col2
----
47

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT - + MIN ( + - 47 ) AS col2
----
47

query I rowsort
SELECT DISTINCT + 34 + 58
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9950
SELECT - 40 AS col2, + MAX( - 77 ) AS col2
----
-40
-77

skipif mysql # not compatible
query II rowsort label-9950
SELECT - 40 AS col2, + MAX ( - 77 ) AS col2
----
-40
-77

query II rowsort
SELECT 86 col2, + 66 col0
----
86
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9952
SELECT + 99 * + COUNT( * ) + + - CAST( - - 31 AS SIGNED ) + 62 * - + 89
----
-5450

skipif mysql # not compatible
query I rowsort label-9952
SELECT + 99 * + COUNT ( * ) + + - CAST ( - - 31 AS INTEGER ) + 62 * - + 89
----
-5450

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT ALL 69 DIV 12 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9953
SELECT ALL 69 / 12 AS col0
----
5

query I rowsort
SELECT DISTINCT 78 * - 40 col2
----
-3120

query I rowsort
SELECT DISTINCT - ( + - 3 ) AS col0
----
3

query I rowsort
SELECT ALL + ( + 50 ) - 71
----
-21

query I rowsort
SELECT 3 * + + 93
----
279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9958
SELECT DISTINCT 36 * - MIN( - + CAST( - 69 AS SIGNED ) ) col1
----
-2484

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT 36 * - MIN ( - + CAST ( - 69 AS INTEGER ) ) col1
----
-2484

query I rowsort
SELECT ALL 53 - - 1 * + - 61
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-9960
SELECT 93 DIV + + 35 AS col0, + 60 AS col2
----
2
60

skipif mysql # not compatible
query II rowsort label-9960
SELECT 93 / + + 35 AS col0, + 60 AS col2
----
2
60

query I rowsort
SELECT 28 * - + 3
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9962
SELECT NULLIF ( + CAST( + 82 AS SIGNED ), + CAST( NULL AS SIGNED ) ) * 6 * - 26 * - 96 * - + 83
----
-101926656

skipif mysql # not compatible
query I rowsort label-9962
SELECT NULLIF ( + CAST ( + 82 AS INTEGER ), + CAST ( NULL AS INTEGER ) ) * 6 * - 26 * - 96 * - + 83
----
-101926656

query I rowsort
SELECT 38 * 51
----
1938

query I rowsort
SELECT 12 + + 58 + 93
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT 47 DIV 44
----
1

skipif mysql # not compatible
query I rowsort label-9965
SELECT 47 / 44
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9966
SELECT ALL - 54 DIV 34 * + 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - 54 / 34 * + 24 AS col1
----
-24

query I rowsort
SELECT 18 * - 91
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT 22 + COUNT( * ) + 15 + + 20 * - + COUNT( * ) * + 38 * 22 * - 25 * 66
----
27588038

skipif mysql # not compatible
query I rowsort label-9968
SELECT 22 + COUNT ( * ) + 15 + + 20 * - + COUNT ( * ) * + 38 * 22 * - 25 * 66
----
27588038

query I rowsort
SELECT 28 * + 92
----
2576

query I rowsort
SELECT ALL + 55 + - 30 - CASE 17 WHEN + 9 / 99 THEN - - 37 * - + 16 / - + 55 END * 8 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT + CAST( + 88 AS SIGNED ) + + 52
----
140

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + CAST ( + 88 AS INTEGER ) + + 52
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT - CAST( + - 92 AS SIGNED )
----
92

skipif mysql # not compatible
query I rowsort label-9972
SELECT - CAST ( + - 92 AS INTEGER )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT ALL 21 * + COUNT( * ) * + 63 + - 58 - - 21 * - 81 * + - 70 + - 97 - + 58 * + 8
----
119774

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL 21 * + COUNT ( * ) * + 63 + - 58 - - 21 * - 81 * + - 70 + - 97 - + 58 * + 8
----
119774

query I rowsort
SELECT 60 + 93 AS col0
----
153

query I rowsort
SELECT DISTINCT - 85 * 3 + + - 49
----
-304

onlyif mysql # aggregate syntax: 
query I rowsort label-9976
SELECT - 38 * 0 + - COUNT( * ) * - 84 AS col0
----
84

skipif mysql # not compatible
query I rowsort label-9976
SELECT - 38 * 0 + - COUNT ( * ) * - 84 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9977
SELECT + COUNT( * ) DIV 53 AS col0, CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9977
SELECT + COUNT ( * ) / 53 AS col0, CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9978
SELECT + 32 DIV + 44 * COUNT( * ) + + MAX( ALL + 18 ) - - + 21 DIV 85 + CASE 61 WHEN ( - COALESCE ( + 32, - COALESCE ( - CASE - 30 WHEN + 43 THEN COUNT( * ) END, 76 * 22, - 29 ) + COUNT( + 39 ) ) ) THEN - 69 + 39 ELSE 5 END + CAST( 96 AS SIGNED ) + + COUNT( * ) DIV 34
----
119

skipif mysql # not compatible
query I rowsort label-9978
SELECT + 32 / + 44 * COUNT ( * ) + + MAX ( ALL + 18 ) - - + 21 / 85 + CASE 61 WHEN ( - COALESCE ( + 32, - COALESCE ( - CASE - 30 WHEN + 43 THEN COUNT ( * ) END, 76 * 22, - 29 ) + COUNT ( + 39 ) ) ) THEN - 69 + 39 ELSE 5 END + CAST ( 96 AS INTEGER ) + + COUNT ( * ) / 34
----
119

query I rowsort
SELECT - - 67 * - - 16 AS col1
----
1072

onlyif mysql # aggregate syntax: 
query II rowsort label-9980
SELECT ALL + 56 * - ( + - COUNT( ALL + 46 ) ) AS col2, 72 AS col2
----
56
72

skipif mysql # not compatible
query II rowsort label-9980
SELECT ALL + 56 * - ( + - COUNT ( ALL + 46 ) ) AS col2, 72 AS col2
----
56
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT - COUNT( * ) + + SUM( NULLIF ( 16, - 90 ) ) + - 57
----
-42

skipif mysql # not compatible
query I rowsort label-9981
SELECT - COUNT ( * ) + + SUM ( NULLIF ( 16, - 90 ) ) + - 57
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT + COUNT( * ) * COALESCE ( + + 6, MAX( 74 ) + - 51 + - 40 + - ( 61 ) ) - - 83 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-9982
SELECT + COUNT ( * ) * COALESCE ( + + 6, MAX ( 74 ) + - 51 + - 40 + - ( 61 ) ) - - 83 AS col2
----
89

query I rowsort
SELECT ( + 29 ) AS col1
----
29

query I rowsort
SELECT ALL 57 * + + 58 AS col1
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT + 57 * + 57 * + 48 * + COUNT( * ) * - 33 + - 36 + - 48 AS col0
----
-5146500

skipif mysql # not compatible
query I rowsort label-9985
SELECT + 57 * + 57 * + 48 * + COUNT ( * ) * - 33 + - 36 + - 48 AS col0
----
-5146500

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT ALL - + 73 * - 75 - COUNT( * ) + 95 + + 17 + - - 54
----
5640

skipif mysql # not compatible
query I rowsort label-9986
SELECT ALL - + 73 * - 75 - COUNT ( * ) + 95 + + 17 + - - 54
----
5640

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT + + 59 * - 20 + - 72 + - 41 + + COUNT( * ) * - - MAX( ALL - 46 ) AS col0, 22 AS col2
----
-1339
22

skipif mysql # not compatible
query II rowsort label-9987
SELECT + + 59 * - 20 + - 72 + - 41 + + COUNT ( * ) * - - MAX ( ALL - 46 ) AS col0, 22 AS col2
----
-1339
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL + - COUNT( ALL + - ( - 39 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL + - COUNT ( ALL + - ( - 39 ) ) AS col0
----
-1

query I rowsort
SELECT ALL + 20 * + 19 + + - 32 AS col2
----
348

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9990
SELECT DISTINCT + NULLIF ( - 73, - COUNT( * ) ) col1, MAX( - + 75 ) DIV + + 98
----
-73
0

skipif mysql # not compatible
query II rowsort label-9990
SELECT DISTINCT + NULLIF ( - 73, - COUNT ( * ) ) col1, MAX ( - + 75 ) / + + 98
----
-73
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9991
SELECT DISTINCT 95 * - 79 * + 88, NULLIF ( - 64, + - 27 + - SUM( ALL - - ( + + 55 ) ) * + + COUNT( ALL - 23 ) * 98 - + 15 * - 30 ) AS col1
----
-660440
-64

skipif mysql # not compatible
query II rowsort label-9991
SELECT DISTINCT 95 * - 79 * + 88, NULLIF ( - 64, + - 27 + - SUM ( ALL - - ( + + 55 ) ) * + + COUNT ( ALL - 23 ) * 98 - + 15 * - 30 ) AS col1
----
-660440
-64

query I rowsort
SELECT - 18 * + - 63 AS col0
----
1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9993
SELECT DISTINCT 60 AS col1, - 52 * MIN( DISTINCT - CAST( 98 AS SIGNED ) ) AS col1
----
60
5096

skipif mysql # not compatible
query II rowsort label-9993
SELECT DISTINCT 60 AS col1, - 52 * MIN ( DISTINCT - CAST ( 98 AS INTEGER ) ) AS col1
----
60
5096

onlyif mysql # aggregate syntax: 
query II rowsort label-9994
SELECT ALL 11 AS col0, ( - MIN( - 20 ) ) AS col2
----
11
20

skipif mysql # not compatible
query II rowsort label-9994
SELECT ALL 11 AS col0, ( - MIN ( - 20 ) ) AS col2
----
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 88 * 24 * + - COALESCE ( - + COUNT( * ), + 97 ) AS col1
----
2112

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 88 * 24 * + - COALESCE ( - + COUNT ( * ), + 97 ) AS col1
----
2112

onlyif mysql # DIV for integer division: 
query I rowsort label-9996
SELECT + 5 DIV + 27
----
0

skipif mysql # not compatible
query I rowsort label-9996
SELECT + 5 / + 27
----
0

query I rowsort
SELECT ALL 11 + - 31 + - + 17 * - 57 + + + 94 AS col1
----
1043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT ALL + 86 + + 83 + + 49 DIV + 36 - - 14 * MAX( + + 68 )
----
1122

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + 86 + + 83 + + 49 / + 36 - - 14 * MAX ( + + 68 )
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9999
SELECT + 75 + CAST( NULL AS SIGNED ) / + - 23 AS col2, 42 + + MAX( ALL 18 )
----
NULL
60

skipif mysql # not compatible
query II rowsort label-9999
SELECT + 75 + CAST ( NULL AS INTEGER ) / + - 23 AS col2, 42 + + MAX ( ALL 18 )
----
NULL
60

