hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2
SELECT DISTINCT + - 82 + + 56 DIV - + 27 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT + - 82 + + 56 / - + 27 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3
SELECT ALL - - COUNT( + 7 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - - COUNT ( + 7 ) col1
----
1

query I rowsort
SELECT + 98 * - 49
----
-4802

query I rowsort
SELECT ALL - - 37
----
37

query II rowsort
SELECT ALL + - ( + 69 ) * 42 - - COALESCE ( - + 81, 51 ) + + 39 - - 15 - CASE CASE 37 WHEN - + 4 + - 88 + - 79 THEN - + 26 + + 70 * - - 6 END WHEN + 92 + - + 97 THEN 84 ELSE - - 55 + 33 END AS col0, 57 * - 80 col2
----
-3013
-4560

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT + CASE - 35 WHEN - AVG ( ALL - 50 ) THEN - - MAX( DISTINCT - 76 ) + 69 ELSE + - ( COUNT( * ) ) END
----
-1

skipif mysql # not compatible
query I rowsort label-7
SELECT + CASE - 35 WHEN - AVG ( ALL - 50 ) THEN - - MAX ( DISTINCT - 76 ) + 69 ELSE + - ( COUNT ( * ) ) END
----
-1

query I rowsort
SELECT DISTINCT 32 col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT + COUNT( * ) * - + 77 - + 42 * 35 col1
----
-1547

skipif mysql # not compatible
query I rowsort label-9
SELECT + COUNT ( * ) * - + 77 - + 42 * 35 col1
----
-1547

query II rowsort
SELECT 67 * - 19 AS col1, + 61 AS col0
----
-1273
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT CAST( - 3 AS SIGNED ) + - - 0
----
-3

skipif mysql # not compatible
query I rowsort label-11
SELECT CAST ( - 3 AS INTEGER ) + - - 0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT ALL CAST( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-12
SELECT ALL CAST ( + CASE - 46 WHEN - + 95 THEN 90 * - - 2 + - - 99 - - - 40 ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT DISTINCT 22 / - CASE 86 WHEN - - 99 THEN NULL WHEN + 66 / COUNT( * ) THEN - ( ( NULLIF ( + ( + 64 ), ( - - 52 ) ) ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT 22 / - CASE 86 WHEN - - 99 THEN NULL WHEN + 66 / COUNT ( * ) THEN - ( ( NULLIF ( + ( + 64 ), ( - - 52 ) ) ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-14
SELECT ( - + COUNT( - 77 ) ) DIV 5 * + 65 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-14
SELECT ( - + COUNT ( - 77 ) ) / 5 * + 65 AS col2
----
0

query II rowsort
SELECT ALL - 37 AS col0, - ( 18 ) * 12 AS col1
----
-37
-216

query II rowsort
SELECT - + 24, 80 * 84 col1
----
-24
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT ALL + 83 * + SUM( DISTINCT - 11 ) AS col1
----
-913

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL + 83 * + SUM ( DISTINCT - 11 ) AS col1
----
-913

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

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

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

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

query I rowsort
SELECT DISTINCT ( 65 ) * - 54 AS col0
----
-3510

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT DISTINCT + COUNT( * ) + - 21 * + - ( + 40 ) AS col0
----
841

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT + COUNT ( * ) + - 21 * + - ( + 40 ) AS col0
----
841

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-24
SELECT ALL + 23 + - 38 AS col2, + 19 * - 31 DIV COUNT( * ) DIV COUNT( * ) - - 50
----
-15
-539

skipif mysql # not compatible
query II rowsort label-24
SELECT ALL + 23 + - 38 AS col2, + 19 * - 31 / COUNT ( * ) / COUNT ( * ) - - 50
----
-15
-539

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

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

query I rowsort
SELECT 21 + + + 65
----
86

query I rowsort
SELECT - 64 * 87 * + - 3 + - 66 + - ( 81 )
----
16557

query I rowsort
SELECT 66 * + ( - + 58 )
----
-3828

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

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

query I rowsort
SELECT DISTINCT + 6 * - + ( 67 )
----
-402

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

onlyif mysql # aggregate syntax: 
query II rowsort label-32
SELECT DISTINCT + 44 + 39 col2, + COUNT( * ) AS col0
----
83
1

skipif mysql # not compatible
query II rowsort label-32
SELECT DISTINCT + 44 + 39 col2, + COUNT ( * ) AS col0
----
83
1

query I rowsort
SELECT ALL - - 95 AS col0
----
95

query I rowsort
SELECT ALL - 11 * - - 49
----
-539

query I rowsort
SELECT DISTINCT + - 18 * + 76 AS col2
----
-1368

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT + 35 + - 86 + + COUNT( * ) + - CASE + 21 WHEN 19 * + + ( + 34 ) THEN NULL WHEN COUNT( * ) / 6 THEN + 39 * + 93 + 92 + - MIN( - 1 ) WHEN + 65 THEN - 47 END * - 68 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-36
SELECT + 35 + - 86 + + COUNT ( * ) + - CASE + 21 WHEN 19 * + + ( + 34 ) THEN NULL WHEN COUNT ( * ) / 6 THEN + 39 * + 93 + 92 + - MIN ( - 1 ) WHEN + 65 THEN - 47 END * - 68 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT + CASE + 50 WHEN - 86 + + + COUNT( * ) THEN 46 * 92 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-37
SELECT + CASE + 50 WHEN - 86 + + + COUNT ( * ) THEN 46 * 92 END col2
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-40
SELECT ALL - ( - - 67 ) DIV + 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-40
SELECT ALL - ( - - 67 ) / + 68 AS col1
----
0

query I rowsort
SELECT 23 * + 82 * 87 + + + 9 col2
----
164091

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

onlyif mysql # aggregate syntax: 
query I rowsort label-43
SELECT - ( 88 ) * - ( - - CASE - CASE + + 75 WHEN + + 9 THEN 30 * + - 78 + - + 61 END WHEN + COUNT( * ) THEN NULL WHEN + 95 + 17 * 95 THEN 65 WHEN + 11 THEN + 97 * - + 47 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT - ( 88 ) * - ( - - CASE - CASE + + 75 WHEN + + 9 THEN 30 * + - 78 + - + 61 END WHEN + COUNT ( * ) THEN NULL WHEN + 95 + 17 * 95 THEN 65 WHEN + 11 THEN + 97 * - + 47 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-44
SELECT DISTINCT 29 * CAST( - 62 AS SIGNED )
----
-1798

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT 29 * CAST ( - 62 AS INTEGER )
----
-1798

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL + - 13 * + + CASE COUNT( * ) WHEN 87 THEN NULL WHEN - 88 THEN + + 65 END + + 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + - 13 * + + CASE COUNT ( * ) WHEN 87 THEN NULL WHEN - 88 THEN + + 65 END + + 89 AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL CASE - 36 WHEN 44 THEN NULL WHEN - AVG ( DISTINCT + 10 ) THEN + COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL CASE - 36 WHEN 44 THEN NULL WHEN - AVG ( DISTINCT + 10 ) THEN + COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT - MAX( 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-48
SELECT - MAX ( 94 )
----
-94

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

query I rowsort
SELECT + 60 + + 69 + - 78 * - 51 * + 56 col2
----
222897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-51
SELECT NULLIF ( - CAST( NULL AS SIGNED ), COUNT( * ) - - - 36 * 57 ) / COUNT( * ) / - + 28 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT NULLIF ( - CAST ( NULL AS INTEGER ), COUNT ( * ) - - - 36 * 57 ) / COUNT ( * ) / - + 28 AS col1
----
NULL

query II rowsort
SELECT - 91, 60 * + - 2 AS col2
----
-91
-120

query II rowsort
SELECT DISTINCT 92 AS col0, 96 AS col0
----
92
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-54
SELECT ALL 43 AS col2, 3 * - - CASE - ( + 62 ) WHEN + - 14 * - - 87 THEN NULL WHEN - 73 * 66 * + CAST( 57 AS SIGNED ) THEN - 12 END * - 52 * + 68
----
43
NULL

skipif mysql # not compatible
query II rowsort label-54
SELECT ALL 43 AS col2, 3 * - - CASE - ( + 62 ) WHEN + - 14 * - - 87 THEN NULL WHEN - 73 * 66 * + CAST ( 57 AS INTEGER ) THEN - 12 END * - 52 * + 68
----
43
NULL

query I rowsort
SELECT 6 + + 53 AS col0
----
59

query I rowsort
SELECT 22 + 9 - + 16 - - - 21 - - 1 + - + 25
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT ALL CASE - - COALESCE ( COUNT( * ), 22, - NULLIF ( + COALESCE ( + - 54, - - 65 + 36 + - 67 + - ( + 84 ) ), - 23 ) * ( 5 ) * - 27 ) WHEN + + 75 * + + MAX( ALL + + 67 ) + 17 + - 73 THEN NULL WHEN + 77 + ( + 17 ) THEN NULL WHEN + COUNT( * ) * - 0 * - + 35 * 8 * + SUM( DISTINCT 77 ) + + 34 THEN + - ( - + MAX( - 46 ) ) ELSE NULL END + - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL CASE - - COALESCE ( COUNT ( * ), 22, - NULLIF ( + COALESCE ( + - 54, - - 65 + 36 + - 67 + - ( + 84 ) ), - 23 ) * ( 5 ) * - 27 ) WHEN + + 75 * + + MAX ( ALL + + 67 ) + 17 + - 73 THEN NULL WHEN + 77 + ( + 17 ) THEN NULL WHEN + COUNT ( * ) * - 0 * - + 35 * 8 * + SUM ( DISTINCT 77 ) + + 34 THEN + - ( - + MAX ( - 46 ) ) ELSE NULL END + - 37 AS col1
----
NULL

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

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

query II rowsort
SELECT ALL 58, 74 AS col2
----
58
74

onlyif mysql # aggregate syntax: 
query I rowsort label-60
SELECT DISTINCT COALESCE ( - 96, + + 43 * COUNT( 82 ) ) + - 6
----
-102

skipif mysql # not compatible
query I rowsort label-60
SELECT DISTINCT COALESCE ( - 96, + + 43 * COUNT ( 82 ) ) + - 6
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-61
SELECT CASE + 41 WHEN 81 / + 95 THEN 54 WHEN + - 96 + + 58 THEN NULL END + + NULLIF ( 29, - 59 ) * + - COUNT( * ) + + + 82 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-61
SELECT CASE + 41 WHEN 81 / + 95 THEN 54 WHEN + - 96 + + 58 THEN NULL END + + NULLIF ( 29, - 59 ) * + - COUNT ( * ) + + + 82 col2
----
NULL

query I rowsort
SELECT ALL ( 15 ) + - 8 + + 79
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT COUNT( * ) + - 45 col1
----
-44

skipif mysql # not compatible
query I rowsort label-63
SELECT COUNT ( * ) + - 45 col1
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-64
SELECT ( + + 93 ) + + 64 + - 65 - + 1 * 36 * - COUNT( * ) * - - 42 AS col2, 21 AS col1
----
1604
21

skipif mysql # not compatible
query II rowsort label-64
SELECT ( + + 93 ) + + 64 + - 65 - + 1 * 36 * - COUNT ( * ) * - - 42 AS col2, 21 AS col1
----
1604
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT 31 DIV 13 * + 17
----
34

skipif mysql # not compatible
query I rowsort label-66
SELECT 31 / 13 * + 17
----
34

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

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

query I rowsort
SELECT 37 * 26 AS col0
----
962

query I rowsort
SELECT - ( - ( + 48 ) ) + - 89 AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-70
SELECT + COUNT( * ) AS col0, - MAX( - 17 ) + - 9 AS col2
----
1
8

skipif mysql # not compatible
query II rowsort label-70
SELECT + COUNT ( * ) AS col0, - MAX ( - 17 ) + - 9 AS col2
----
1
8

query I rowsort
SELECT ALL ( 28 ) * - 73 - - + 63
----
-1981

onlyif mysql # DIV for integer division: 
query I rowsort label-72
SELECT NULLIF ( - 16, 65 ) * 8 DIV - 7 + 71 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-72
SELECT NULLIF ( - 16, 65 ) * 8 / - 7 + 71 AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL + COALESCE ( + + 79, + - 12, - - COUNT( * ), 56 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL + COALESCE ( + + 79, + - 12, - - COUNT ( * ), 56 ) AS col2
----
79

query I rowsort
SELECT ALL + + 92
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT( * ) + - 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-75
SELECT + - CASE WHEN NOT ( + AVG ( ALL + 41 ) BETWEEN + 49 + 6 + + 32 AND + 57 / - 19 ) THEN NULL ELSE - 4 * - - 63 / - + 62 END + - ( + - 3 ) - + 63 * + + 64 * + COUNT ( * ) + - 2 AS col1
----
NULL

query I rowsort
SELECT ALL + ( - CASE 27 WHEN + + 44 * - + 82 * - COALESCE ( + 5, 97 ) THEN - 32 * + - 71 ELSE 39 * - 70 END ) AS col1
----
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT - - CASE - + 80 WHEN + COUNT( * ) + + 52 THEN + COUNT( * ) * 15 END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-77
SELECT - - CASE - + 80 WHEN + COUNT ( * ) + + 52 THEN + COUNT ( * ) * 15 END * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-78
SELECT 68 * 89 DIV ( + + 9 ) + - ( - CAST( COUNT( * ) AS SIGNED ) ) AS col0
----
673

skipif mysql # not compatible
query I rowsort label-78
SELECT 68 * 89 / ( + + 9 ) + - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col0
----
673

query II rowsort
SELECT - 55 AS col2, 23 AS col2
----
-55
23

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - 61 * - 2 + - ( + 95 ) - - - 39 * - 69 * SUM( ALL + 71 ) AS col0
----
191088

skipif mysql # not compatible
query I rowsort label-80
SELECT - 61 * - 2 + - ( + 95 ) - - - 39 * - 69 * SUM ( ALL + 71 ) AS col0
----
191088

query I rowsort
SELECT - 16 + 17 AS col0
----
1

query I rowsort
SELECT + 56 * + 35 * - + 64 + + 5 * 69 AS col2
----
-125095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-83
SELECT ALL - - 40 * + 51 DIV - + COUNT( DISTINCT + 76 ) AS col0
----
-2040

skipif mysql # not compatible
query I rowsort label-83
SELECT ALL - - 40 * + 51 / - + COUNT ( DISTINCT + 76 ) AS col0
----
-2040

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT DISTINCT + 96 * 95 + + NULLIF ( + + COUNT( + 31 ), 57 ) * + 48 + + 6
----
9174

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT + 96 * 95 + + NULLIF ( + + COUNT ( + 31 ), 57 ) * + 48 + + 6
----
9174

query I rowsort
SELECT - - 27 + + - 46
----
-19

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

query I rowsort
SELECT ALL + + 61
----
61

query II rowsort
SELECT - - 78 * + - 29 * + 51 - + - NULLIF ( 30, + 57 * - - 84 * 30 ), - 91 AS col0
----
-115332
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-89
SELECT + 46 AS col1, 54 + - 13 DIV + 35 - - + 49 AS col2
----
46
103

skipif mysql # not compatible
query II rowsort label-89
SELECT + 46 AS col1, 54 + - 13 / + 35 - - + 49 AS col2
----
46
103

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT - 89 * - 55 - - - 21 * + COUNT( * ) + + 74 AS col1
----
4948

skipif mysql # not compatible
query I rowsort label-90
SELECT - 89 * - 55 - - - 21 * + COUNT ( * ) + + 74 AS col1
----
4948

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-92
SELECT - COUNT( DISTINCT 46 ) DIV ( 84 ) * - COUNT( * ) * - - 97 DIV + + 81
----
0

skipif mysql # not compatible
query I rowsort label-92
SELECT - COUNT ( DISTINCT 46 ) / ( 84 ) * - COUNT ( * ) * - - 97 / + + 81
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-93
SELECT - 28 + + + COUNT( * ) * 71, 14 col0
----
43
14

skipif mysql # not compatible
query II rowsort label-93
SELECT - 28 + + + COUNT ( * ) * 71, 14 col0
----
43
14

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

query I rowsort
SELECT - 14 * + 58 * 67
----
-54404

query I rowsort
SELECT ALL - 95 + + 33 AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT DISTINCT + NULLIF ( 55, - 72 * + COUNT( * ) - 79 - + AVG ( - 93 ) - - 3 * - + 76 * + 32 / + 33 * - 52 ) + - - 69 AS col1
----
124

skipif mysql # not compatible
query I rowsort label-97
SELECT DISTINCT + NULLIF ( 55, - 72 * + COUNT ( * ) - 79 - + AVG ( - 93 ) - - 3 * - + 76 * + 32 / + 33 * - 52 ) + - - 69 AS col1
----
124

query I rowsort
SELECT - 84 * + + 5 AS col2
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-99
SELECT DISTINCT - 50 * NULLIF ( + + 83, - COUNT( * ) ) AS col2
----
-4150

skipif mysql # not compatible
query I rowsort label-99
SELECT DISTINCT - 50 * NULLIF ( + + 83, - COUNT ( * ) ) AS col2
----
-4150

onlyif mysql # aggregate syntax: 
query II rowsort label-100
SELECT DISTINCT - NULLIF ( + 19, SUM( - + 74 ) ) * - 84 * - + 28 + + + COALESCE ( - 80, + 34 ) AS col0, + 81 - - ( + 6 ) + + 58 AS col0
----
-44768
145

skipif mysql # not compatible
query II rowsort label-100
SELECT DISTINCT - NULLIF ( + 19, SUM ( - + 74 ) ) * - 84 * - + 28 + + + COALESCE ( - 80, + 34 ) AS col0, + 81 - - ( + 6 ) + + 58 AS col0
----
-44768
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-101
SELECT - COALESCE ( - MIN( DISTINCT - + 42 ), 94 DIV + 66 DIV + + COUNT( * ) ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-101
SELECT - COALESCE ( - MIN ( DISTINCT - + 42 ), 94 / + 66 / + + COUNT ( * ) ) AS col1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-102
SELECT DISTINCT 47 - - ( COUNT( * ) ) + - COUNT( * ) * + - COUNT( * ) + + NULLIF ( 74, + - 49 + - COUNT( * ) + - + CAST( - 17 AS DECIMAL ) ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT 47 - - ( COUNT ( * ) ) + - COUNT ( * ) * + - COUNT ( * ) + + NULLIF ( 74, + - 49 + - COUNT ( * ) + - + CAST ( - 17 AS REAL ) ) AS col0
----
123

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

query I rowsort
SELECT ALL 82 * + - 42 * + - 61 * - 48 * 44 AS col2
----
-443697408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT DISTINCT - 88 DIV - COUNT( ALL + + ( + 86 ) ) AS col0
----
88

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - 88 / - COUNT ( ALL + + ( + 86 ) ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT - CAST( NULL AS SIGNED ) / - ( - + 63 ) + + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT - CAST ( NULL AS INTEGER ) / - ( - + 63 ) + + 57
----
NULL

query I rowsort
SELECT + + 81 col2
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT - NULLIF ( + + 15, - - 5 ) + + 5 + COUNT( * ) * - + 4 + - 78 * - 65
----
5056

skipif mysql # not compatible
query I rowsort label-109
SELECT - NULLIF ( + + 15, - - 5 ) + + 5 + COUNT ( * ) * - + 4 + - 78 * - 65
----
5056

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT + 73 DIV COALESCE ( + 50, + + 77 * + 60 * 95 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-110
SELECT + 73 / COALESCE ( + 50, + + 77 * + 60 * 95 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT - - 71 * - COUNT( * ) * + 22
----
-1562

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT - - 71 * - COUNT ( * ) * + 22
----
-1562

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

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

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

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

skipif mysql # not compatible
query I rowsort label-114
SELECT + + ( COUNT ( * ) ) + + - 95 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT NULLIF ( - 41, + COUNT( * ) ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-115
SELECT NULLIF ( - 41, + COUNT ( * ) ) AS col0
----
-41

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

query I rowsort
SELECT + 29 * - + 53 AS col2
----
-1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-118
SELECT + 33 + - - CASE - COALESCE ( + CAST( + 26 AS SIGNED ), + - 45 * ( - 72 ) ) WHEN + 10 THEN NULL WHEN 29 THEN NULL ELSE + 65 END AS col0
----
98

skipif mysql # not compatible
query I rowsort label-118
SELECT + 33 + - - CASE - COALESCE ( + CAST ( + 26 AS INTEGER ), + - 45 * ( - 72 ) ) WHEN + 10 THEN NULL WHEN 29 THEN NULL ELSE + 65 END AS col0
----
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - COUNT( 5 ) * - ( - + 5 ) + - 67 - + 67 + + 10
----
-129

skipif mysql # not compatible
query I rowsort label-120
SELECT - COUNT ( 5 ) * - ( - + 5 ) + - 67 - + 67 + + 10
----
-129

query I rowsort
SELECT - COALESCE ( + - 46, 12, ( + 35 ) ) - 39
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-122
SELECT DISTINCT 35 DIV 30 * - 87
----
-87

skipif mysql # not compatible
query I rowsort label-122
SELECT DISTINCT 35 / 30 * - 87
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-123
SELECT ALL 72 * CAST( NULL AS SIGNED ) * + MIN( ALL 15 )
----
NULL

skipif mysql # not compatible
query I rowsort label-123
SELECT ALL 72 * CAST ( NULL AS INTEGER ) * + MIN ( ALL 15 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT DISTINCT SUM( 53 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT SUM ( 53 ) AS col2
----
53

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

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

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

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

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

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

query I rowsort
SELECT + 72 + 40
----
112

query I rowsort
SELECT + 31 * - + COALESCE ( 40, - - 21 + 98 )
----
-1240

query I rowsort
SELECT + 48 + + 74
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - MAX( DISTINCT 69 ) - + 3 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-131
SELECT - MAX ( DISTINCT 69 ) - + 3 AS col0
----
-72

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

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

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

query I rowsort
SELECT 67 * 33
----
2211

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT 41 + + + COUNT( * ) + + SUM( + 91 )
----
133

skipif mysql # not compatible
query I rowsort label-136
SELECT 41 + + + COUNT ( * ) + + SUM ( + 91 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT 57 + ( + + 15 ) * + SUM( - 8 ) * - - 21 + + - 69
----
-2532

skipif mysql # not compatible
query I rowsort label-137
SELECT 57 + ( + + 15 ) * + SUM ( - 8 ) * - - 21 + + - 69
----
-2532

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

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT - 92 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 75 * - 12
----
900

query I rowsort
SELECT 76 + + 42
----
118

query I rowsort
SELECT ALL - 2 * - 72
----
144

query I rowsort
SELECT 82 * - 85 AS col1
----
-6970

query II rowsort
SELECT - 17 AS col2, ( - - 94 ) + - 67
----
-17
27

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + 58 + COUNT( DISTINCT + 83 ) - + + 9 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-144
SELECT + 58 + COUNT ( DISTINCT + 83 ) - + + 9 AS col0
----
50

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

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

query II rowsort
SELECT - 67 AS col2, + 30
----
-67
30

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

skipif mysql # not compatible
query II rowsort label-147
SELECT ALL - COUNT ( * ) col1, 78 AS col1
----
-1
78

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL + 47 + - - MIN( ALL - - 23 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + 47 + - - MIN ( ALL - - 23 ) AS col0
----
70

query I rowsort
SELECT + 98 * + 65 + + - 89 * + 31 - - 90 * + 4 col0
----
3971

onlyif mysql # aggregate syntax: 
query II rowsort label-153
SELECT 78 * 81 * SUM( - 11 ) + - + 86 AS col1, - COUNT( * ) + + 9
----
-69584
8

skipif mysql # not compatible
query II rowsort label-153
SELECT 78 * 81 * SUM ( - 11 ) + - + 86 AS col1, - COUNT ( * ) + + 9
----
-69584
8

query I rowsort
SELECT - 31 * - + 19
----
589

onlyif mysql # aggregate syntax: 
query II rowsort label-155
SELECT 80 AS col2, - COUNT( * ) * + 27 AS col2
----
80
-27

skipif mysql # not compatible
query II rowsort label-155
SELECT 80 AS col2, - COUNT ( * ) * + 27 AS col2
----
80
-27

query I rowsort
SELECT DISTINCT 80 + 31 + + 48 + 28 * - 62 * 1 * - + ( 79 ) + + - 59 AS col1
----
137244

query I rowsort
SELECT ALL - 95 * 16
----
-1520

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

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

query I rowsort
SELECT ALL - 6 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query II rowsort label-160
SELECT DISTINCT - 83 AS col2, NULLIF ( - 14, - 10 * 91 ) DIV - 54
----
-83
0

skipif mysql # not compatible
query II rowsort label-160
SELECT DISTINCT - 83 AS col2, NULLIF ( - 14, - 10 * 91 ) / - 54
----
-83
0

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT 78 * 28 * - 50 - COUNT( * )
----
-109201

skipif mysql # not compatible
query I rowsort label-161
SELECT 78 * 28 * - 50 - COUNT ( * )
----
-109201

onlyif mysql # aggregate syntax: 
query III rowsort label-162
SELECT DISTINCT 3 AS col0, 4 * - - 32 + + COUNT( * ) AS col2, COUNT( * )
----
3
129
1

skipif mysql # not compatible
query III rowsort label-162
SELECT DISTINCT 3 AS col0, 4 * - - 32 + + COUNT ( * ) AS col2, COUNT ( * )
----
3
129
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-163
SELECT - 5 col1, CAST( NULL AS DECIMAL )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-163
SELECT - 5 col1, CAST ( NULL AS REAL )
----
-5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-164
SELECT 76 + - + 82 AS col1, + ( + - COUNT( + 66 ) )
----
-6
-1

skipif mysql # not compatible
query II rowsort label-164
SELECT 76 + - + 82 AS col1, + ( + - COUNT ( + 66 ) )
----
-6
-1

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

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

query I rowsort
SELECT DISTINCT + 61 * 94
----
5734

query I rowsort
SELECT 76 * 35
----
2660

onlyif mysql # DIV for integer division: 
query II rowsort label-168
SELECT 82 DIV + 8 AS col0, + 91 + 67
----
10
158

skipif mysql # not compatible
query II rowsort label-168
SELECT 82 / + 8 AS col0, + 91 + 67
----
10
158

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

query II rowsort
SELECT - 57 col0, 77 * - - 52 + + 38
----
-57
4042

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT DISTINCT + 53 DIV - + 3
----
-17

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + 53 / - + 3
----
-17

query I rowsort
SELECT ALL + 51 + + 95 AS col1
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-174
SELECT CAST( - ( + COALESCE ( + 24, 43, - ( + 96 ) ) ) AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-174
SELECT CAST ( - ( + COALESCE ( + 24, 43, - ( + 96 ) ) ) AS INTEGER )
----
-24

query I rowsort
SELECT + CASE - + ( 83 ) WHEN - 9 THEN + 61 ELSE NULL END + + 58
----
NULL

query II rowsort
SELECT + - ( - COALESCE ( 63, 1 ) ), 54 AS col1
----
63
54

query I rowsort
SELECT + 83 * + + 72 + - 88 + - + ( + - 65 ) * + 83
----
11283

onlyif mysql # aggregate syntax: 
query II rowsort label-178
SELECT 20, + COUNT( * ) col2
----
20
1

skipif mysql # not compatible
query II rowsort label-178
SELECT 20, + COUNT ( * ) col2
----
20
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-179
SELECT - 38 * COUNT( - 19 ) - - - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) + COUNT( * ) * + ( + CASE + - COUNT( * ) WHEN 4 * - 3 * 49 * - 92 + 38 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE 81 + 79 END ) / - ( - - COALESCE ( - + 4, - ( - 7 ) + NULLIF ( - 22, - + 42 + 82 ) - + 49 - + + 14 * - ( - - 65 ) / + 64 * - - 88, 41 * - 84 ) ) + - - COUNT( * ) * 68 / + - COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-179
SELECT - 38 * COUNT ( - 19 ) - - - CAST ( NULL AS INTEGER ) + - - CAST ( NULL AS INTEGER ) + COUNT ( * ) * + ( + CASE + - COUNT ( * ) WHEN 4 * - 3 * 49 * - 92 + 38 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE 81 + 79 END ) / - ( - - COALESCE ( - + 4, - ( - 7 ) + NULLIF ( - 22, - + 42 + 82 ) - + 49 - + + 14 * - ( - - 65 ) / + 64 * - - 88, 41 * - 84 ) ) + - - COUNT ( * ) * 68 / + - COUNT ( * ) col0
----
NULL

query I rowsort
SELECT ALL + + 62 * - 66
----
-4092

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT 85 + + SUM( + 86 ) + 4 + ( - 23 ) + + 11 * + - 99 * - COUNT( * )
----
1241

skipif mysql # not compatible
query I rowsort label-181
SELECT 85 + + SUM ( + 86 ) + 4 + ( - 23 ) + + 11 * + - 99 * - COUNT ( * )
----
1241

onlyif mysql # aggregate syntax: 
query I rowsort label-182
SELECT 82 * MIN( ALL CASE + + 29 WHEN 15 THEN NULL WHEN - 0 THEN - 49 + - 9 * 8 * - 56 END ) + + 49 + - - 88 + - 35 * - 99 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-182
SELECT 82 * MIN ( ALL CASE + + 29 WHEN 15 THEN NULL WHEN - 0 THEN - 49 + - 9 * 8 * - 56 END ) + + 49 + - - 88 + - 35 * - 99 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-183
SELECT ALL - MIN( - + 69 ) AS col0, 8 + MIN( DISTINCT - 43 ) AS col0
----
69
-35

skipif mysql # not compatible
query II rowsort label-183
SELECT ALL - MIN ( - + 69 ) AS col0, 8 + MIN ( DISTINCT - 43 ) AS col0
----
69
-35

query II rowsort
SELECT 25 + + - 30, - 18 + 29 * - + 2 AS col2
----
-5
-76

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-186
SELECT + 77 DIV - ( + COUNT( * ) ) AS col0, - CASE - + 99 WHEN + COUNT( - + 14 ) THEN 84 ELSE NULL END + + + 16
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-186
SELECT + 77 / - ( + COUNT ( * ) ) AS col0, - CASE - + 99 WHEN + COUNT ( - + 14 ) THEN 84 ELSE NULL END + + + 16
----
-77
NULL

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

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

query I rowsort
SELECT ALL 77 * + 8 col1
----
616

query I rowsort
SELECT - 59 + - ( + - 99 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT + ( 61 ) * COALESCE ( + + NULLIF ( - 5, - COUNT( * ) - 88 * - + 95 ), + + 53 )
----
-305

skipif mysql # not compatible
query I rowsort label-190
SELECT + ( 61 ) * COALESCE ( + + NULLIF ( - 5, - COUNT ( * ) - 88 * - + 95 ), + + 53 )
----
-305

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-191
SELECT - COALESCE ( + 92, + NULLIF ( - NULLIF ( + + 10, + + NULLIF ( + 53, - 53 + - CAST( 39 AS SIGNED ) * 51 ) ), + CAST( NULL AS SIGNED ) + 82 ), + ( ( + 72 ) ) - - 63 * COUNT( - 45 ) * MIN( DISTINCT + + ( + 19 ) ) ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-191
SELECT - COALESCE ( + 92, + NULLIF ( - NULLIF ( + + 10, + + NULLIF ( + 53, - 53 + - CAST ( 39 AS INTEGER ) * 51 ) ), + CAST ( NULL AS INTEGER ) + 82 ), + ( ( + 72 ) ) - - 63 * COUNT ( - 45 ) * MIN ( DISTINCT + + ( + 19 ) ) ) AS col0
----
-92

query I rowsort
SELECT - NULLIF ( + 65, + + 66 ) AS col2
----
-65

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

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

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL 93 + - COUNT ( * ) AS col2
----
92

query I rowsort
SELECT - - 28 AS col1
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT ALL + + NULLIF ( - + SUM( DISTINCT - 83 ), + MIN( ALL - 32 ) ) + 78 + + 86 + 25 * + 70 AS col1
----
1997

skipif mysql # not compatible
query I rowsort label-197
SELECT ALL + + NULLIF ( - + SUM ( DISTINCT - 83 ), + MIN ( ALL - 32 ) ) + 78 + + 86 + 25 * + 70 AS col1
----
1997

query II rowsort
SELECT + + 85 + - 73, + 30 * + 39 AS col0
----
12
1170

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT ALL + CASE NULLIF ( - 2, 41 ) WHEN - 19 THEN + COUNT( * ) + + COUNT( * ) * - 74 WHEN - MIN( ALL 78 ) / - - COUNT( * ) THEN - 87 ELSE NULL END + + SUM( + + 48 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT ALL + CASE NULLIF ( - 2, 41 ) WHEN - 19 THEN + COUNT ( * ) + + COUNT ( * ) * - 74 WHEN - MIN ( ALL 78 ) / - - COUNT ( * ) THEN - 87 ELSE NULL END + + SUM ( + + 48 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT SUM( ALL - + 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT SUM ( ALL - + 50 ) AS col0
----
-50

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

skipif mysql # not compatible
query I rowsort label-201
SELECT + + CAST ( NULL AS INTEGER ) * - 99
----
NULL

query II rowsort
SELECT ALL + - 26 + + - 28 AS col2, - 1
----
-54
-1

query II rowsort
SELECT ALL 83 + + 46 AS col1, 92
----
129
92

query I rowsort
SELECT + 22 * - + 83 * + 78 AS col0
----
-142428

onlyif mysql # DIV for integer division: 
query I rowsort label-205
SELECT DISTINCT - ( - + 92 ) * - 96 - - 97 + 30 DIV + 97 * + + 24 * - 83 * + + 16 AS col0
----
-8735

skipif mysql # not compatible
query I rowsort label-205
SELECT DISTINCT - ( - + 92 ) * - 96 - - 97 + 30 / + 97 * + + 24 * - 83 * + + 16 AS col0
----
-8735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-206
SELECT DISTINCT - COUNT( * ) DIV - NULLIF ( COUNT( * ), + 55 * - 76 * + COALESCE ( - + 72, - 31 DIV + 87 ) ) - 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - COUNT ( * ) / - NULLIF ( COUNT ( * ), + 55 * - 76 * + COALESCE ( - + 72, - 31 / + 87 ) ) - 3 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 49 * - 7 * + - 57 - - 17 + - 39 + - 30
----
19499

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-208
SELECT - 51 * 16 + - - 0 * + 46 - - - CAST( NULL AS DECIMAL ) * 9 + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT - 51 * 16 + - - 0 * + 46 - - - CAST ( NULL AS REAL ) * 9 + + 27
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-209
SELECT - - NULLIF ( - + COUNT( ALL - NULLIF ( - CASE + 89 WHEN - 41 THEN COALESCE ( 40, + - 46 - - 16, - + 73 ) + + NULLIF ( - 89, + 28 ) + 32 + + CAST( ( - ( 97 ) ) AS SIGNED ) WHEN - 75 THEN NULL END, + - 38 ) ), + 64 * AVG ( DISTINCT - COALESCE ( CAST( NULL AS SIGNED ), + 34 - + 82 + - ( + 84 ) * 5 + + 91 ) ) ) * 32
----
0

skipif mysql # not compatible
query I rowsort label-209
SELECT - - NULLIF ( - + COUNT ( ALL - NULLIF ( - CASE + 89 WHEN - 41 THEN COALESCE ( 40, + - 46 - - 16, - + 73 ) + + NULLIF ( - 89, + 28 ) + 32 + + CAST ( ( - ( 97 ) ) AS INTEGER ) WHEN - 75 THEN NULL END, + - 38 ) ), + 64 * AVG ( DISTINCT - COALESCE ( CAST ( NULL AS INTEGER ), + 34 - + 82 + - ( + 84 ) * 5 + + 91 ) ) ) * 32
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-210
SELECT - COUNT( * ) * 97 + + CASE - 48 WHEN - + 68 THEN + 73 DIV + - COUNT( DISTINCT - 15 ) ELSE + 66 DIV + + 55 END DIV 98 + + + 22 + + - 88 + + 16 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-210
SELECT - COUNT ( * ) * 97 + + CASE - 48 WHEN - + 68 THEN + 73 / + - COUNT ( DISTINCT - 15 ) ELSE + 66 / + + 55 END / 98 + + + 22 + + - 88 + + 16 AS col0
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-211
SELECT + CAST( NULL AS SIGNED ), COUNT( * ) * MIN( + 49 ) AS col2
----
NULL
49

skipif mysql # not compatible
query II rowsort label-211
SELECT + CAST ( NULL AS INTEGER ), COUNT ( * ) * MIN ( + 49 ) AS col2
----
NULL
49

query I rowsort
SELECT - 31 + + 36
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + SUM( ALL - 58 ) col2
----
-58

skipif mysql # not compatible
query I rowsort label-213
SELECT + SUM ( ALL - 58 ) col2
----
-58

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT NULLIF ( 40, - 48 * COUNT( * ) )
----
40

skipif mysql # not compatible
query I rowsort label-216
SELECT NULLIF ( 40, - 48 * COUNT ( * ) )
----
40

query I rowsort
SELECT DISTINCT 83 * - 54 col0
----
-4482

query I rowsort
SELECT DISTINCT + 8 AS col0
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT + 24 DIV + - 98 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT + 24 / + - 98 AS col1
----
0

query I rowsort
SELECT - 35 * 65 AS col1
----
-2275

query I rowsort
SELECT + 41 + - - 7 AS col2
----
48

query I rowsort
SELECT + 17 + 74 AS col2
----
91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT - 88 DIV - + 95 * + 1 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-224
SELECT - 88 / - + 95 * + 1 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT ALL COUNT( * ) * + - 56 + + CASE 67 WHEN + 60 + 57 THEN 30 ELSE NULL END * - 61 * 14 + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-225
SELECT ALL COUNT ( * ) * + - 56 + + CASE 67 WHEN + 60 + 57 THEN 30 ELSE NULL END * - 61 * 14 + - 71
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-226
SELECT DISTINCT NULLIF ( - + 13, + - 99 * - COALESCE ( - 19, + 87 ) ) * + CAST( NULL AS DECIMAL ) + 52 * + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT NULLIF ( - + 13, + - 99 * - COALESCE ( - 19, + 87 ) ) * + CAST ( NULL AS REAL ) + 52 * + 35 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 31 AS col2
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-228
SELECT COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-229
SELECT DISTINCT 39 + - COALESCE ( 37, - COALESCE ( - + 91, - 63, COUNT( * ) DIV - 15 + 77, + + 80 ) * + 7 * - CAST( + + 11 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT 39 + - COALESCE ( 37, - COALESCE ( - + 91, - 63, COUNT ( * ) / - 15 + 77, + + 80 ) * + 7 * - CAST ( + + 11 AS INTEGER ) )
----
2

query I rowsort
SELECT ALL 43 + - 66
----
-23

query II rowsort
SELECT DISTINCT + 48 AS col2, + 48 + 99 col1
----
48
147

query I rowsort
SELECT - 57 - - + 27
----
-30

query I rowsort
SELECT - NULLIF ( 63, + 76 ) AS col2
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT DISTINCT - 1 + + - 8 * + - CASE + 35 WHEN 61 - 87 + + 30 + + 2 + + - 36 + CAST( + + 99 AS SIGNED ) * 64 THEN NULL WHEN 60 THEN + SUM( DISTINCT 40 ) / - 92 * - CAST( NULL AS SIGNED ) * 23 * 5 + + - 37 + + 56 * - 1 / + 99 * + 1 WHEN + 71 THEN + - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT - 1 + + - 8 * + - CASE + 35 WHEN 61 - 87 + + 30 + + 2 + + - 36 + CAST ( + + 99 AS INTEGER ) * 64 THEN NULL WHEN 60 THEN + SUM ( DISTINCT 40 ) / - 92 * - CAST ( NULL AS INTEGER ) * 23 * 5 + + - 37 + + 56 * - 1 / + 99 * + 1 WHEN + 71 THEN + - COUNT ( * ) END
----
NULL

query II rowsort
SELECT + 54 * + 99 * - 82 col1, 96
----
-438372
96

query II rowsort
SELECT ALL - 68 + + + 83 * - 79, 2 AS col0
----
-6625
2

query II rowsort
SELECT 31, 36 AS col0
----
31
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT DISTINCT SUM( 46 )
----
46

skipif mysql # not compatible
query I rowsort label-239
SELECT DISTINCT SUM ( 46 )
----
46

query I rowsort
SELECT + - 13 - - 83 + + 81
----
151

query I rowsort
SELECT ALL - ( + 75 ) * + 38 * + 25
----
-71250

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

query I rowsort
SELECT NULLIF ( - 1, ( 15 ) )
----
-1

query I rowsort
SELECT + 86 + + + 94 - 24 + + 6
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-245
SELECT + 56 * COUNT( DISTINCT 72 ) AS col2, 84 + - 81
----
56
3

skipif mysql # not compatible
query II rowsort label-245
SELECT + 56 * COUNT ( DISTINCT 72 ) AS col2, 84 + - 81
----
56
3

query II rowsort
SELECT 91 - - + 2 * - - 2 AS col0, 36 AS col0
----
95
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-247
SELECT ( - + CASE - - ( 43 ) WHEN 34 THEN - 13 * + - 40 - 6 WHEN COUNT( - + 76 ) + + 0 THEN - CAST( NULL AS SIGNED ) ELSE NULL END ) * + 8 / - 12 - + 77 + + 2 * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-247
SELECT ( - + CASE - - ( 43 ) WHEN 34 THEN - 13 * + - 40 - 6 WHEN COUNT ( - + 76 ) + + 0 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END ) * + 8 / - 12 - + 77 + + 2 * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-248
SELECT COUNT( * ) DIV 66, + 98 + - 80 AS col2
----
0
18

skipif mysql # not compatible
query II rowsort label-248
SELECT COUNT ( * ) / 66, + 98 + - 80 AS col2
----
0
18

query I rowsort
SELECT ALL - 19 * + 98 AS col1
----
-1862

query I rowsort
SELECT 66 * + 7 AS col1
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT 20 * - COUNT( * ) + + NULLIF ( - 97, + COUNT( * ) ) AS col0
----
-117

skipif mysql # not compatible
query I rowsort label-251
SELECT 20 * - COUNT ( * ) + + NULLIF ( - 97, + COUNT ( * ) ) AS col0
----
-117

query I rowsort
SELECT ALL - 47 * 34 AS col1
----
-1598

onlyif mysql # DIV for integer division: 
query I rowsort label-253
SELECT 76 * 2 * ( - 76 ) DIV 17
----
-679

skipif mysql # not compatible
query I rowsort label-253
SELECT 76 * 2 * ( - 76 ) / 17
----
-679

query I rowsort
SELECT ALL 54 + - + 75
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-255
SELECT 1 * 86 AS col1, ( - CAST( + 15 AS SIGNED ) ) * - 14 - - - CAST( NULL AS SIGNED )
----
86
NULL

skipif mysql # not compatible
query II rowsort label-255
SELECT 1 * 86 AS col1, ( - CAST ( + 15 AS INTEGER ) ) * - 14 - - - CAST ( NULL AS INTEGER )
----
86
NULL

query I rowsort
SELECT 4 + + 59
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-257
SELECT ALL 94 + + - 20, - COUNT( * ) col1
----
74
-1

skipif mysql # not compatible
query II rowsort label-257
SELECT ALL 94 + + - 20, - COUNT ( * ) col1
----
74
-1

query I rowsort
SELECT DISTINCT 53 + + 60
----
113

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-260
SELECT CAST( - 4 AS SIGNED ) * + - 75 + 22 + - 48 + 81 - - 2 * - 70 * - 70 + + + 16 + + 62 - ( MAX( 38 ) ) DIV 83 AS col2
----
10233

skipif mysql # not compatible
query I rowsort label-260
SELECT CAST ( - 4 AS INTEGER ) * + - 75 + 22 + - 48 + 81 - - 2 * - 70 * - 70 + + + 16 + + 62 - ( MAX ( 38 ) ) / 83 AS col2
----
10233

query I rowsort
SELECT DISTINCT - 39 + 63 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT DISTINCT + NULLIF ( 42, - 43 + + - MIN( DISTINCT 22 ) ) + 59
----
101

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT + NULLIF ( 42, - 43 + + - MIN ( DISTINCT 22 ) ) + 59
----
101

query I rowsort
SELECT ALL - 63 + + - ( + 85 ) * 93
----
-7968

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - COUNT( * ) + 62 + + + 94 + - - ( 99 ) + + - 16 * - 32 * + + 86 + 85 AS col1
----
44371

skipif mysql # not compatible
query I rowsort label-264
SELECT - COUNT ( * ) + 62 + + + 94 + - - ( 99 ) + + - 16 * - 32 * + + 86 + 85 AS col1
----
44371

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT COUNT( * ) - - 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-265
SELECT COUNT ( * ) - - 52 AS col2
----
53

query I rowsort
SELECT + 24 - - 66 * - 41
----
-2682

query I rowsort
SELECT 80 * - 89
----
-7120

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT 67 + - MIN( ALL - COALESCE ( - - ( - 31 ), 29 ) ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-268
SELECT 67 + - MIN ( ALL - COALESCE ( - - ( - 31 ), 29 ) ) AS col2
----
36

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-271
SELECT COUNT( DISTINCT + 70 ) * + - 82
----
-82

skipif mysql # not compatible
query I rowsort label-271
SELECT COUNT ( DISTINCT + 70 ) * + - 82
----
-82

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

query I rowsort
SELECT 90 + - - 69 AS col2
----
159

query I rowsort
SELECT ALL + - 55 - + + 11
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL - COUNT( 29 ) * + 99 + - + 0 * + - 26
----
-99

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - COUNT ( 29 ) * + 99 + - + 0 * + - 26
----
-99

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-279
SELECT CAST( NULL AS DECIMAL ) * - 62 + + 42 + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-279
SELECT CAST ( NULL AS REAL ) * - 62 + + 42 + 67
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-281
SELECT + 67 + COUNT( * ) AS col1, 47 * + - 56
----
68
-2632

skipif mysql # not compatible
query II rowsort label-281
SELECT + 67 + COUNT ( * ) AS col1, 47 * + - 56
----
68
-2632

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

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

query I rowsort
SELECT ALL 34 col2
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL - COUNT( ALL 9 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL - COUNT ( ALL 9 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT COALESCE ( + 83, + COUNT( * ) ) * 13 + 25
----
1104

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT COALESCE ( + 83, + COUNT ( * ) ) * 13 + 25
----
1104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT MIN( ALL - 28 ) DIV - 25 col1
----
1

skipif mysql # not compatible
query I rowsort label-287
SELECT MIN ( ALL - 28 ) / - 25 col1
----
1

query I rowsort
SELECT ALL 54 + - 53
----
1

query I rowsort
SELECT ALL 13 + - - 30 AS col1
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT + CAST( NULL AS SIGNED ) / 65 - - + 45 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-290
SELECT + CAST ( NULL AS INTEGER ) / 65 - - + 45 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT + COUNT( + 92 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-291
SELECT + COUNT ( + 92 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-292
SELECT + 11, - NULLIF ( + 5, + 85 * 21 - 58 - 15 / - - COUNT( * ) * + CAST( NULL AS SIGNED ) - + 36 + - CAST( - ( - CASE + 91 WHEN - 90 * - 77 * 4 THEN NULL WHEN - 43 * + 25 + + 10 / 87 + 99 THEN - + 76 * + 89 - + 77 ELSE NULL END ) AS SIGNED ) ) AS col1
----
11
-5

skipif mysql # not compatible
query II rowsort label-292
SELECT + 11, - NULLIF ( + 5, + 85 * 21 - 58 - 15 / - - COUNT ( * ) * + CAST ( NULL AS INTEGER ) - + 36 + - CAST ( - ( - CASE + 91 WHEN - 90 * - 77 * 4 THEN NULL WHEN - 43 * + 25 + + 10 / 87 + 99 THEN - + 76 * + 89 - + 77 ELSE NULL END ) AS INTEGER ) ) AS col1
----
11
-5

query II rowsort
SELECT 75, 11 - + 67 AS col1
----
75
-56

query I rowsort
SELECT ALL 0 + + 23 + + 9 * + 21
----
212

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-295
SELECT CASE + COUNT( * ) WHEN - 69 THEN + 42 + COUNT( * ) / + COUNT( * ) / 4 WHEN - 12 * + 90 + - + 25 + + 88 / - + 63 THEN NULLIF ( + ( - 16 ), - + 24 ) * - 95 * - COUNT( * ) WHEN + + COUNT( 12 ) + 98 THEN NULL ELSE + + CAST( NULL AS SIGNED ) END * + + COALESCE ( 38, - 37 ) + + MAX( 10 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-295
SELECT CASE + COUNT ( * ) WHEN - 69 THEN + 42 + COUNT ( * ) / + COUNT ( * ) / 4 WHEN - 12 * + 90 + - + 25 + + 88 / - + 63 THEN NULLIF ( + ( - 16 ), - + 24 ) * - 95 * - COUNT ( * ) WHEN + + COUNT ( 12 ) + 98 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) END * + + COALESCE ( 38, - 37 ) + + MAX ( 10 ) AS col2
----
NULL

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

query I rowsort
SELECT ( + CASE - - 65 WHEN + - 77 THEN NULL WHEN - + 4 THEN NULL WHEN + ( - 54 ) * COALESCE ( + 8, - + 61 + - 91 + - 81 / - 47 ) * + CASE 32 WHEN + + 12 + - 56 THEN - 33 END / - 47 THEN NULL ELSE - 60 - - NULLIF ( - ( + 16 ), - - 69 + - 82 * + 69 ) * + 78 + + - 92 END ) + + + 63 AS col2
----
-1337

onlyif mysql # aggregate syntax: 
query II rowsort label-298
SELECT COUNT( DISTINCT + 69 ) * - 92 + + - ( - 4 ) - - 21, 73 AS col0
----
-67
73

skipif mysql # not compatible
query II rowsort label-298
SELECT COUNT ( DISTINCT + 69 ) * - 92 + + - ( - 4 ) - - 21, 73 AS col0
----
-67
73

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT DISTINCT 5 DIV + + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-299
SELECT DISTINCT 5 / + + 6 AS col0
----
0

query I rowsort
SELECT DISTINCT 99 - - 22 AS col2
----
121

query I rowsort
SELECT 84 * 38 AS col0
----
3192

query I rowsort
SELECT DISTINCT - + 95 - + 0 AS col2
----
-95

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

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

query I rowsort
SELECT + 22 + - 69 AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT MIN( DISTINCT - - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-305
SELECT MIN ( DISTINCT - - 86 ) AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-306
SELECT DISTINCT CASE + - 17 WHEN + SUM( DISTINCT - ( + - 70 ) ) * - COUNT( ALL - ( - - 62 ) ) * + 6 * + + CASE 33 WHEN - - 72 THEN - - ( + - 45 ) + + ( 54 ) ELSE NULL END THEN - + ( + CAST( NULL AS SIGNED ) ) ELSE NULL END AS col1, + 89 * 57 + COUNT( * ) - + ( + 9 )
----
NULL
5065

skipif mysql # not compatible
query II rowsort label-306
SELECT DISTINCT CASE + - 17 WHEN + SUM ( DISTINCT - ( + - 70 ) ) * - COUNT ( ALL - ( - - 62 ) ) * + 6 * + + CASE 33 WHEN - - 72 THEN - - ( + - 45 ) + + ( 54 ) ELSE NULL END THEN - + ( + CAST ( NULL AS INTEGER ) ) ELSE NULL END AS col1, + 89 * 57 + COUNT ( * ) - + ( + 9 )
----
NULL
5065

query I rowsort
SELECT NULLIF ( - 93, + - 28 * 4 + 34 * 6 + + 10 ) col2
----
-93

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

query I rowsort
SELECT + + 11 - - 19 AS col0
----
30

query I rowsort
SELECT - - ( - 30 ) - 14 AS col0
----
-44

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

query I rowsort
SELECT ALL + 25 * ( 87 )
----
2175

query I rowsort
SELECT - + COALESCE ( 34, + 78 * + 9 )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-314
SELECT - - CAST( - 88 AS SIGNED ) DIV + + ( + + 9 )
----
-9

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

query I rowsort
SELECT ALL + 75 * - + 13 * + 11 - ( - ( + 84 ) ) col1
----
-10641

query I rowsort
SELECT - 5 - + 43
----
-48

query I rowsort
SELECT ALL - + 73 + + 16
----
-57

query I rowsort
SELECT - 55 - + + 84 AS col0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT - 74 + 68 - + 92 * CASE + COUNT( * ) WHEN - 99 THEN 16 END + + - MIN( ALL 17 ) + + 35 * 39
----
NULL

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT - 74 + 68 - + 92 * CASE + COUNT ( * ) WHEN - 99 THEN 16 END + + - MIN ( ALL 17 ) + + 35 * 39
----
NULL

query I rowsort
SELECT ALL + 20 + - 19 AS col2
----
1

query I rowsort
SELECT ALL - 56 + - 94
----
-150

query I rowsort
SELECT - 19 + ( + 78 )
----
59

query I rowsort
SELECT + 1 - - + 23 + 15 AS col0
----
39

query I rowsort
SELECT NULLIF ( 62, 94 + - 59 + + 71 )
----
62

query II rowsort
SELECT + 57 col0, 32
----
57
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-326
SELECT CASE ( - CASE 6 WHEN + ( - + 88 ) + - 25 THEN + + CAST( + COUNT( * ) AS DECIMAL ) + - - 14 - + 87 + + + 67 ELSE NULL END ) WHEN + ( - 65 ) * - 13 - + NULLIF ( - 34, AVG ( 66 ) + 99 + + - COUNT( * ) + 44 - - - 68 - 96 / - ( - - 55 ) * - - ( + 41 ) / + 92 * - 25 ) THEN - 68 WHEN 92 + + 82 THEN ( + + 27 ) * - + 97 ELSE + 3 END col1
----
3

skipif mysql # not compatible
query I rowsort label-326
SELECT CASE ( - CASE 6 WHEN + ( - + 88 ) + - 25 THEN + + CAST ( + COUNT ( * ) AS REAL ) + - - 14 - + 87 + + + 67 ELSE NULL END ) WHEN + ( - 65 ) * - 13 - + NULLIF ( - 34, AVG ( 66 ) + 99 + + - COUNT ( * ) + 44 - - - 68 - 96 / - ( - - 55 ) * - - ( + 41 ) / + 92 * - 25 ) THEN - 68 WHEN 92 + + 82 THEN ( + + 27 ) * - + 97 ELSE + 3 END col1
----
3

query I rowsort
SELECT DISTINCT + ( - - 3 ) AS col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT + ( 36 ) + - + 20 + - COUNT( + 85 ) + + MIN( DISTINCT + + 25 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-328
SELECT + ( 36 ) + - + 20 + - COUNT ( + 85 ) + + MIN ( DISTINCT + + 25 ) AS col2
----
40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-329
SELECT ALL 45 * + NULLIF ( - - CAST( + 39 AS SIGNED ), + 6 - 88 ) * + CAST( NULL AS DECIMAL ) + - 47 - + 62
----
NULL

skipif mysql # not compatible
query I rowsort label-329
SELECT ALL 45 * + NULLIF ( - - CAST ( + 39 AS INTEGER ), + 6 - 88 ) * + CAST ( NULL AS REAL ) + - 47 - + 62
----
NULL

query I rowsort
SELECT + NULLIF ( - ( - 89 ), 88 ) col0
----
89

query I rowsort
SELECT - ( - 20 ) * + 54 - + 49 * - 96 + 93
----
5877

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT + 11 * 31 * - COUNT( * ) AS col0
----
-341

skipif mysql # not compatible
query I rowsort label-332
SELECT + 11 * 31 * - COUNT ( * ) AS col0
----
-341

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-335
SELECT + 50 * + 2 - - + CAST( - AVG ( DISTINCT 62 ) AS SIGNED ) * SUM( - 77 ) AS col1
----
4874

skipif mysql # not compatible
query I rowsort label-335
SELECT + 50 * + 2 - - + CAST ( - AVG ( DISTINCT 62 ) AS INTEGER ) * SUM ( - 77 ) AS col1
----
4874

onlyif mysql # DIV for integer division: 
query I rowsort label-336
SELECT ALL 90 DIV + + 63 + - 76 + - 18 - + 72 + - 3 + + 64 * 47 col2
----
2840

skipif mysql # not compatible
query I rowsort label-336
SELECT ALL 90 / + + 63 + - 76 + - 18 - + 72 + - 3 + + 64 * 47 col2
----
2840

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT + - CASE + 3 WHEN SUM( DISTINCT + ( + + 32 ) ) + - - 58 THEN NULL ELSE + 5 * + ( + 58 ) END - + - COUNT( * ) + 47 + - COUNT( * ) * + 52 AS col0
----
-294

skipif mysql # not compatible
query I rowsort label-337
SELECT + - CASE + 3 WHEN SUM ( DISTINCT + ( + + 32 ) ) + - - 58 THEN NULL ELSE + 5 * + ( + 58 ) END - + - COUNT ( * ) + 47 + - COUNT ( * ) * + 52 AS col0
----
-294

query II rowsort
SELECT DISTINCT + + 29 AS col1, - 10
----
29
-10

query I rowsort
SELECT ALL + 31 * - 76 + 89 * + 95
----
6099

query I rowsort
SELECT + - ( - 55 ) + + - 78
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-341
SELECT + + 15 + - - 10 + 86 DIV - + 64 - - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-341
SELECT + + 15 + - - 10 + 86 / - + 64 - - COUNT ( * )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-342
SELECT + + 56 * 61 DIV SUM( - - 82 ) * + 7 + + 73 + - - 78 AS col2
----
438

skipif mysql # not compatible
query I rowsort label-342
SELECT + + 56 * 61 / SUM ( - - 82 ) * + 7 + + 73 + - - 78 AS col2
----
438

onlyif mysql # DIV for integer division: 
query I rowsort label-343
SELECT + - 40 + + + 4 DIV + 23
----
-40

skipif mysql # not compatible
query I rowsort label-343
SELECT + - 40 + + + 4 / + 23
----
-40

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

skipif mysql # not compatible
query I rowsort label-344
SELECT - CAST ( NULL AS REAL ) - + 81 col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-346
SELECT + 66 + - COUNT( * ) AS col0, 48 * + + 90 AS col1
----
65
4320

skipif mysql # not compatible
query II rowsort label-346
SELECT + 66 + - COUNT ( * ) AS col0, 48 * + + 90 AS col1
----
65
4320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-347
SELECT + COUNT( * ) * - 68 DIV 32 + + 77 + - - 28 AS col1
----
103

skipif mysql # not compatible
query I rowsort label-347
SELECT + COUNT ( * ) * - 68 / 32 + + 77 + - - 28 AS col1
----
103

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

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT + COUNT ( + 99 ) * + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-349
SELECT ALL - 20 col1, + 25 DIV COUNT( * )
----
-20
25

skipif mysql # not compatible
query II rowsort label-349
SELECT ALL - 20 col1, + 25 / COUNT ( * )
----
-20
25

query I rowsort
SELECT ALL 63 + 85 AS col1
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT DISTINCT - SUM( DISTINCT 9 ) + COUNT( * ) - - ( - + 26 ) * + COUNT( * ) col0
----
-34

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT - SUM ( DISTINCT 9 ) + COUNT ( * ) - - ( - + 26 ) * + COUNT ( * ) col0
----
-34

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

query I rowsort
SELECT ALL - - 37 + + 11 + 20 AS col0
----
68

query I rowsort
SELECT - - 49 + - 57
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT ALL 37 + - COALESCE ( CASE AVG ( ALL - 35 ) WHEN SUM( DISTINCT - 84 ) * - 19 + - - 19 THEN - 82 WHEN - 31 * 76 THEN NULL WHEN + 18 THEN NULL ELSE 45 END, + COUNT( * ) * - - MIN( DISTINCT - 58 ) ) * + - 11 + 32 * 57 * - COUNT( + ( + - 17 ) ) * - 90
----
164692

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL 37 + - COALESCE ( CASE AVG ( ALL - 35 ) WHEN SUM ( DISTINCT - 84 ) * - 19 + - - 19 THEN - 82 WHEN - 31 * 76 THEN NULL WHEN + 18 THEN NULL ELSE 45 END, + COUNT ( * ) * - - MIN ( DISTINCT - 58 ) ) * + - 11 + 32 * 57 * - COUNT ( + ( + - 17 ) ) * - 90
----
164692

query I rowsort
SELECT - ( 97 ) + - 10
----
-107

query I rowsort
SELECT + COALESCE ( 53, 95 ) * - 3
----
-159

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT - COUNT( * ) + COUNT( DISTINCT + 94 ) + + - 13
----
-13

skipif mysql # not compatible
query I rowsort label-359
SELECT - COUNT ( * ) + COUNT ( DISTINCT + 94 ) + + - 13
----
-13

query I rowsort
SELECT DISTINCT + 98 * + 70
----
6860

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

skipif mysql # not compatible
query I rowsort label-361
SELECT - ( - 16 ) / - COUNT ( * ) AS col2
----
-16

query I rowsort
SELECT - 77 + - - 28
----
-49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-363
SELECT 17 DIV - - COALESCE ( CAST( NULL AS SIGNED ), + 48 * 7 + - 37 ) + - 16 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-363
SELECT 17 / - - COALESCE ( CAST ( NULL AS INTEGER ), + 48 * 7 + - 37 ) + - 16 AS col1
----
-16

query I rowsort
SELECT DISTINCT - 80 * 61 AS col0
----
-4880

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL 73 / - + COUNT( * ) * - CASE + - 78 WHEN - COUNT( * ) THEN + - 10 * + COUNT( * ) + + - 18 END - + 3 + + 40 * 24 * - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL 73 / - + COUNT ( * ) * - CASE + - 78 WHEN - COUNT ( * ) THEN + - 10 * + COUNT ( * ) + + - 18 END - + 3 + + 40 * 24 * - 60 AS col2
----
NULL

query I rowsort
SELECT 26 * - 70 * - - 82 - - + 46 + + 49 AS col0
----
-149145

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

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

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

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

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

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

query I rowsort
SELECT ALL + + NULLIF ( 80, 37 + - 43 )
----
80

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

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

query I rowsort
SELECT + NULLIF ( - + 91, - 89 - + 8 - + 54 ) AS col2
----
-91

query II rowsort
SELECT ALL + 91 * + 60 * + NULLIF ( + 33, + 25 ) col2, + 17 col0
----
180180
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-374
SELECT COUNT( * ) DIV 55 * + ( - - 53 ) - - - 68
----
-68

skipif mysql # not compatible
query I rowsort label-374
SELECT COUNT ( * ) / 55 * + ( - - 53 ) - - - 68
----
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - 20 + + MIN( + 42 ) + - 67
----
-45

skipif mysql # not compatible
query I rowsort label-376
SELECT - 20 + + MIN ( + 42 ) + - 67
----
-45

query I rowsort
SELECT ALL + COALESCE ( 28, 44 * - + ( 76 ) ) + - 46
----
-18

query I rowsort
SELECT - ( - - 72 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT - 97 * - 29 * MIN( 21 ) * + SUM( DISTINCT 32 ) AS col1
----
1890336

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT - 97 * - 29 * MIN ( 21 ) * + SUM ( DISTINCT 32 ) AS col1
----
1890336

query I rowsort
SELECT DISTINCT 8 + + - 57 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT - SUM( DISTINCT 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-381
SELECT - SUM ( DISTINCT 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL - 48 + + SUM( + 35 ) * - 64
----
-2288

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL - 48 + + SUM ( + 35 ) * - 64
----
-2288

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

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

query I rowsort
SELECT 24 - - 73
----
97

query I rowsort
SELECT 50 - - 20
----
70

query I rowsort
SELECT ( 66 ) + - ( + + 67 )
----
-1

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

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

query I rowsort
SELECT ALL 83 - + + 53
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-389
SELECT - 44 AS col2, 1 * + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + - ( 53 ) / + - CAST( NULL AS SIGNED ) - - + 67 * - + 47 AS col0
----
-44
NULL

skipif mysql # not compatible
query II rowsort label-389
SELECT - 44 AS col2, 1 * + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + - ( 53 ) / + - CAST ( NULL AS INTEGER ) - - + 67 * - + 47 AS col0
----
-44
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT DISTINCT 89 * NULLIF ( + - 98, COUNT( + + 75 ) ) AS col2
----
-8722

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT 89 * NULLIF ( + - 98, COUNT ( + + 75 ) ) AS col2
----
-8722

query I rowsort
SELECT ALL 47 - + - 87 * - 71 + + - 71 AS col2
----
-6201

query I rowsort
SELECT 4 + - + 77
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-394
SELECT ALL 24 - CASE NULLIF ( - 0, 1 ) WHEN - 30 THEN NULL WHEN 13 * MAX( ALL 54 ) * - MAX( 3 ) / + + 24 - - - 37 + + + CAST( NULL AS DECIMAL ) THEN - 35 * - SUM( + - NULLIF ( + 54, 5 ) ) ELSE - + NULLIF ( + 59, 46 ) END - - 89
----
172

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL 24 - CASE NULLIF ( - 0, 1 ) WHEN - 30 THEN NULL WHEN 13 * MAX ( ALL 54 ) * - MAX ( 3 ) / + + 24 - - - 37 + + + CAST ( NULL AS REAL ) THEN - 35 * - SUM ( + - NULLIF ( + 54, 5 ) ) ELSE - + NULLIF ( + 59, 46 ) END - - 89
----
172

query I rowsort
SELECT 75 * + 62
----
4650

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

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

query I rowsort
SELECT 0 * - 32
----
0

query I rowsort
SELECT DISTINCT - 49 * + - 86
----
4214

query II rowsort
SELECT + 76, - 38 AS col0
----
76
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-400
SELECT ALL 40 / - + ( + CAST( NULL AS SIGNED ) ) / - MIN( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-400
SELECT ALL 40 / - + ( + CAST ( NULL AS INTEGER ) ) / - MIN ( 9 )
----
NULL

query I rowsort
SELECT - 41 * - - 97
----
-3977

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-402
SELECT DISTINCT - 53 * + + SUM( - 57 ) DIV + COUNT( * ) - + 66
----
2955

skipif mysql # not compatible
query I rowsort label-402
SELECT DISTINCT - 53 * + + SUM ( - 57 ) / + COUNT ( * ) - + 66
----
2955

query II rowsort
SELECT ALL - + 15 AS col0, ( + - 33 ) + - 56 AS col0
----
-15
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT DISTINCT - + 63 + + MAX( + 98 )
----
35

skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT - + 63 + + MAX ( + 98 )
----
35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL - 4 + - CASE + 24 WHEN + NULLIF ( - + 80, COUNT( * ) * - 0 * - 86 + AVG ( DISTINCT + 66 ) * - + 65 ) + + 53 THEN NULL WHEN - 43 THEN - 73 ELSE ( - ( - 49 ) ) + 43 END
----
-96

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - 4 + - CASE + 24 WHEN + NULLIF ( - + 80, COUNT ( * ) * - 0 * - 86 + AVG ( DISTINCT + 66 ) * - + 65 ) + + 53 THEN NULL WHEN - 43 THEN - 73 ELSE ( - ( - 49 ) ) + 43 END
----
-96

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

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL - - MAX ( - 95 )
----
-95

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

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

skipif mysql # not compatible
query I rowsort label-409
SELECT ALL - - 41 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 10 + - 45 * - ( 90 ) + - 68
----
3992

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT ALL + 88 + - + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + 88 + - + COUNT ( * )
----
87

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

skipif mysql # not compatible
query I rowsort label-412
SELECT ALL + - COUNT ( * ) + - - 97 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT - COUNT( * ) + - - NULLIF ( + + 41, - 82 + - 27 ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-413
SELECT - COUNT ( * ) + - - NULLIF ( + + 41, - 82 + - 27 ) AS col1
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-414
SELECT ALL + + 53 + + CAST( CASE + + CASE 74 WHEN + + COALESCE ( - 84, - 93 ) / - 17 THEN + + 95 / - 41 + + COUNT( * ) - 68 WHEN + 17 / - + ( + 48 ) * - + 15 THEN NULL ELSE - 19 END WHEN + - 69 THEN NULL ELSE - + 25 + CAST( 16 AS SIGNED ) * - AVG ( DISTINCT + - 68 ) END AS SIGNED ) AS col0
----
1116

skipif mysql # not compatible
query I rowsort label-414
SELECT ALL + + 53 + + CAST ( CASE + + CASE 74 WHEN + + COALESCE ( - 84, - 93 ) / - 17 THEN + + 95 / - 41 + + COUNT ( * ) - 68 WHEN + 17 / - + ( + 48 ) * - + 15 THEN NULL ELSE - 19 END WHEN + - 69 THEN NULL ELSE - + 25 + CAST ( 16 AS INTEGER ) * - AVG ( DISTINCT + - 68 ) END AS INTEGER ) AS col0
----
1116

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

skipif mysql # not compatible
query I rowsort label-415
SELECT + CAST ( NULL AS INTEGER ) - - + 8 AS col2
----
NULL

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

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

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

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

query I rowsort
SELECT 95 - - - 69 AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-419
SELECT ALL MAX( ALL - 72 ) - + 46 col1
----
-118

skipif mysql # not compatible
query I rowsort label-419
SELECT ALL MAX ( ALL - 72 ) - + 46 col1
----
-118

query I rowsort
SELECT 52 col2
----
52

query I rowsort
SELECT DISTINCT + 43 - - 22
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-422
SELECT ALL COUNT( * ) - 88 - - 59 - + + CAST( 8 AS SIGNED ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL COUNT ( * ) - 88 - - 59 - + + CAST ( 8 AS INTEGER ) AS col1
----
-36

onlyif mysql # DIV for integer division: 
query II rowsort label-423
SELECT DISTINCT 6 DIV + + 67 AS col1, 88
----
0
88

skipif mysql # not compatible
query II rowsort label-423
SELECT DISTINCT 6 / + + 67 AS col1, 88
----
0
88

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

skipif mysql # not compatible
query I rowsort label-424
SELECT COUNT ( * ) + - 27 AS col2
----
-26

query I rowsort
SELECT DISTINCT 35 * - 28
----
-980

query II rowsort
SELECT ALL 70 * + + 3, 90 * - 28 AS col0
----
210
-2520

query I rowsort
SELECT 10 * - + 0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-428
SELECT DISTINCT 99 * - COUNT( * ) * + + COUNT( * ) * CASE + - 71 WHEN - + 80 THEN NULL WHEN COUNT( * ) THEN + - COUNT( * ) + + + CAST( - + 93 AS SIGNED ) - - 29 / - 70 END * ( COUNT( * ) ) * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT 99 * - COUNT ( * ) * + + COUNT ( * ) * CASE + - 71 WHEN - + 80 THEN NULL WHEN COUNT ( * ) THEN + - COUNT ( * ) + + + CAST ( - + 93 AS INTEGER ) - - 29 / - 70 END * ( COUNT ( * ) ) * 46
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-429
SELECT - COUNT( * ) * - CAST( NULL AS DECIMAL ) * + ( - 87 ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-429
SELECT - COUNT ( * ) * - CAST ( NULL AS REAL ) * + ( - 87 ) + + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT + NULLIF ( 79, COUNT( * ) - + ( 6 ) )
----
79

skipif mysql # not compatible
query I rowsort label-430
SELECT + NULLIF ( 79, COUNT ( * ) - + ( 6 ) )
----
79

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-432
SELECT COUNT( * ) DIV - 36 * + - 86 + + 82 * + ( + + 22 ) AS col0
----
1804

skipif mysql # not compatible
query I rowsort label-432
SELECT COUNT ( * ) / - 36 * + - 86 + + 82 * + ( + + 22 ) AS col0
----
1804

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-434
SELECT 69 DIV + 92 + - - 19 - - + 88, COUNT( * ) * - CAST( + - ( - + 19 ) AS SIGNED ) DIV 71 * + 69 AS col0
----
107
0

skipif mysql # not compatible
query II rowsort label-434
SELECT 69 / + 92 + - - 19 - - + 88, COUNT ( * ) * - CAST ( + - ( - + 19 ) AS INTEGER ) / 71 * + 69 AS col0
----
107
0

query I rowsort
SELECT + - 52 * - 88 AS col2
----
4576

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT DISTINCT - COUNT( * ) * + + 41 * - 92 + - 47 * ( 26 ) * NULLIF ( 69, + 90 ) + + 5 - - 38 * 8 - - 31 AS col2
----
-80206

skipif mysql # not compatible
query I rowsort label-436
SELECT DISTINCT - COUNT ( * ) * + + 41 * - 92 + - 47 * ( 26 ) * NULLIF ( 69, + 90 ) + + 5 - - 38 * 8 - - 31 AS col2
----
-80206

query I rowsort
SELECT ALL + + COALESCE ( - 62, + 76 )
----
-62

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

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

query I rowsort
SELECT - 55 + 53 + - 1 AS col1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-440
SELECT ALL + 70 * - - 46 + - CAST( NULL AS DECIMAL ) + - CAST( NULL AS SIGNED ) * - ( - 52 ) - 69 + 20 - 42 + - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-440
SELECT ALL + 70 * - - 46 + - CAST ( NULL AS REAL ) + - CAST ( NULL AS INTEGER ) * - ( - 52 ) - 69 + 20 - 42 + - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT DISTINCT - - COUNT( ( 50 ) ) * 12 + COUNT( * )
----
13

skipif mysql # not compatible
query I rowsort label-441
SELECT DISTINCT - - COUNT ( ( 50 ) ) * 12 + COUNT ( * )
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT + + 26 DIV - 55
----
0

skipif mysql # not compatible
query I rowsort label-442
SELECT + + 26 / - 55
----
0

query I rowsort
SELECT - - 51 * - 80 + + 32 AS col2
----
-4048

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-444
SELECT - + ( - CAST( NULL AS DECIMAL ) ) * - 12 + ( - + CASE - 9 WHEN + - 19 / 54 + ( - 46 ) THEN + 47 + 89 + 53 / - 52 ELSE + 58 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-444
SELECT - + ( - CAST ( NULL AS REAL ) ) * - 12 + ( - + CASE - 9 WHEN + - 19 / 54 + ( - 46 ) THEN + 47 + 89 + 53 / - 52 ELSE + 58 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-445
SELECT + - CAST( 86 AS SIGNED ), - 88 AS col0
----
-86
-88

skipif mysql # not compatible
query II rowsort label-445
SELECT + - CAST ( 86 AS INTEGER ), - 88 AS col0
----
-86
-88

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

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

query I rowsort
SELECT ALL - - 22 * 50 + - 60
----
1040

query I rowsort
SELECT - 90 * - 26 * - 68 AS col1
----
-159120

query I rowsort
SELECT ALL 36 * - 59
----
-2124

query III rowsort
SELECT DISTINCT 91 AS col2, 9 * + 34, 20 col0
----
91
306
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-451
SELECT - CAST( NULL AS DECIMAL ) - + CAST( 30 AS SIGNED ) AS col1, 44 DIV ( + COUNT( * ) )
----
NULL
44

skipif mysql # not compatible
query II rowsort label-451
SELECT - CAST ( NULL AS REAL ) - + CAST ( 30 AS INTEGER ) AS col1, 44 / ( + COUNT ( * ) )
----
NULL
44

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT - NULLIF ( COUNT( * ), + 89 / NULLIF ( + - 57, + 72 ) + - - 19 + - COUNT( * ) / - - CASE - 84 WHEN + 10 THEN - ( - + COUNT( - + 29 ) ) * - 1 END ) - - 87 col0
----
86

skipif mysql # not compatible
query I rowsort label-454
SELECT - NULLIF ( COUNT ( * ), + 89 / NULLIF ( + - 57, + 72 ) + - - 19 + - COUNT ( * ) / - - CASE - 84 WHEN + 10 THEN - ( - + COUNT ( - + 29 ) ) * - 1 END ) - - 87 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - MAX( - 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-455
SELECT - MAX ( - 50 ) AS col2
----
50

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

skipif mysql # not compatible
query I rowsort label-456
SELECT - 82 + - COUNT ( * ) * - 50 AS col0
----
-32

query I rowsort
SELECT ALL 8 col0
----
8

query I rowsort
SELECT ALL + 67 * - - 42 AS col1
----
2814

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 24 col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT - ( - ( SUM( ALL + 8 ) ) )
----
8

skipif mysql # not compatible
query I rowsort label-464
SELECT - ( - ( SUM ( ALL + 8 ) ) )
----
8

query I rowsort
SELECT ALL 28 + 31 * 3 AS col2
----
121

query I rowsort
SELECT ALL ( 95 ) + - 58 * - 27
----
1661

query I rowsort
SELECT - 93 + + 61 * 13
----
700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-468
SELECT + ( - CASE 83 WHEN + 76 + + 41 THEN 32 WHEN + 89 THEN - 38 * ( SUM( - 88 ) * + MIN( ALL 3 * + 41 ) ) ELSE + MIN( 52 ) * - MIN( ALL - ( ( 84 ) ) DIV - 40 ) + - COUNT( * ) END ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-468
SELECT + ( - CASE 83 WHEN + 76 + + 41 THEN 32 WHEN + 89 THEN - 38 * ( SUM ( - 88 ) * + MIN ( ALL 3 * + 41 ) ) ELSE + MIN ( 52 ) * - MIN ( ALL - ( ( 84 ) ) / - 40 ) + - COUNT ( * ) END ) AS col1
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-469
SELECT + 10 DIV - 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-469
SELECT + 10 / - 90 AS col0
----
0

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

skipif mysql # not compatible
query I rowsort label-470
SELECT 5 * - COUNT ( * ) + - 88 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT + 75 - - CASE CASE 7 WHEN 50 THEN COUNT( * ) ELSE NULL END WHEN - 82 THEN 23 * - 92 END * - COALESCE ( 77 + 30, + 63, MAX( DISTINCT + 1 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-471
SELECT + 75 - - CASE CASE 7 WHEN 50 THEN COUNT ( * ) ELSE NULL END WHEN - 82 THEN 23 * - 92 END * - COALESCE ( 77 + 30, + 63, MAX ( DISTINCT + 1 ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT ALL MAX( 70 ) * 37
----
2590

skipif mysql # not compatible
query I rowsort label-472
SELECT ALL MAX ( 70 ) * 37
----
2590

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT ALL + 53 DIV 49 + 32 col1
----
33

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL + 53 / 49 + 32 col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT + CASE COUNT( * ) WHEN - 16 THEN NULL WHEN 80 + COUNT( * ) THEN + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-474
SELECT + CASE COUNT ( * ) WHEN - 16 THEN NULL WHEN 80 + COUNT ( * ) THEN + 80 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-475
SELECT ALL NULLIF ( SUM( DISTINCT 37 ), 99 * ( 54 ) ) DIV - ( + NULLIF ( + 5, + CAST( 38 AS SIGNED ) + - AVG ( + 97 ) ) * 81 ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-475
SELECT ALL NULLIF ( SUM ( DISTINCT 37 ), 99 * ( 54 ) ) / - ( + NULLIF ( + 5, + CAST ( 38 AS INTEGER ) + - AVG ( + 97 ) ) * 81 ) + 10
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-476
SELECT DISTINCT + ( 6 ) DIV + 56 + - MIN( DISTINCT 18 )
----
-18

skipif mysql # not compatible
query I rowsort label-476
SELECT DISTINCT + ( 6 ) / + 56 + - MIN ( DISTINCT 18 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT ALL NULLIF ( + 1, COUNT( ALL - 94 ) ) * + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL NULLIF ( + 1, COUNT ( ALL - 94 ) ) * + 73
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-479
SELECT 6 * 44 + MIN( 22 ) DIV COUNT( DISTINCT 92 * + ( ( + 93 ) ) ) AS col1
----
286

skipif mysql # not compatible
query I rowsort label-479
SELECT 6 * 44 + MIN ( 22 ) / COUNT ( DISTINCT 92 * + ( ( + 93 ) ) ) AS col1
----
286

query I rowsort
SELECT DISTINCT 79 * 71
----
5609

query I rowsort
SELECT + 2 * + 66 + 77 * 55 AS col2
----
4367

query I rowsort
SELECT ( - 22 )
----
-22

query I rowsort
SELECT + 96 + 5 AS col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-484
SELECT ALL + 70 DIV 63
----
1

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + 70 / 63
----
1

query I rowsort
SELECT + 14 * + 90 + + 47
----
1307

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

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

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT 13 / - ( + 18 ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-488
SELECT ALL 70 * + 69 - - 85 * COUNT( * ) AS col0
----
4915

skipif mysql # not compatible
query I rowsort label-488
SELECT ALL 70 * + 69 - - 85 * COUNT ( * ) AS col0
----
4915

query I rowsort
SELECT ALL 31 * - 30 AS col2
----
-930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-490
SELECT - CAST( NULL AS DECIMAL ) + + AVG ( 18 )
----
NULL

skipif mysql # not compatible
query I rowsort label-490
SELECT - CAST ( NULL AS REAL ) + + AVG ( 18 )
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT + COUNT( * ) + ( - ( + COUNT( * ) ) ) * 77
----
-76

skipif mysql # not compatible
query I rowsort label-493
SELECT + COUNT ( * ) + ( - ( + COUNT ( * ) ) ) * 77
----
-76

query I rowsort
SELECT - 36 * 68 col1
----
-2448

query I rowsort
SELECT ALL CASE 42 WHEN 54 * 75 + 56 THEN 86 ELSE 16 * 6 END
----
96

query I rowsort
SELECT + 0 * + 98 + 25
----
25

query I rowsort
SELECT - 12 - - 90 AS col2
----
78

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

query I rowsort
SELECT - 89 + 23
----
-66

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

query I rowsort
SELECT - 0 * 48 AS col1
----
0

query I rowsort
SELECT DISTINCT CASE + 23 WHEN 94 THEN 32 ELSE - 28 END AS col0
----
-28

query I rowsort
SELECT - 35 * 9 AS col2
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT ALL + COUNT( * ) + - 77
----
-76

skipif mysql # not compatible
query I rowsort label-504
SELECT ALL + COUNT ( * ) + - 77
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT ALL - 9 + + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-505
SELECT ALL - 9 + + COUNT ( * )
----
-8

query I rowsort
SELECT 3 * - 89
----
-267

query I rowsort
SELECT 39 + - 13
----
26

query I rowsort
SELECT ALL + 36 + 94 * 42
----
3984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + COALESCE ( + 30, + 26 + 63 * - 1 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + COALESCE ( + 30, + 26 + 63 * - 1 ) AS col2
----
29

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - 79 * - ( SUM( - 93 ) ) col0
----
-7347

skipif mysql # not compatible
query I rowsort label-511
SELECT - 79 * - ( SUM ( - 93 ) ) col0
----
-7347

query I rowsort
SELECT 55 + 78
----
133

query I rowsort
SELECT ALL + + 26 * + 11 col0
----
286

query I rowsort
SELECT COALESCE ( - 35, 85 ) AS col0
----
-35

query I rowsort
SELECT ALL + NULLIF ( - 1, 72 ) * - 51
----
51

query I rowsort
SELECT DISTINCT - 25 + 13 AS col0
----
-12

query I rowsort
SELECT DISTINCT + 14 * + 11
----
154

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT + - 18 * 18 + COUNT( * ) AS col0
----
-323

skipif mysql # not compatible
query I rowsort label-519
SELECT + - 18 * 18 + COUNT ( * ) AS col0
----
-323

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

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

query I rowsort
SELECT ALL - 31 - ( NULLIF ( + 55, + 56 ) - + COALESCE ( + 68, 37 - - 10 ) )
----
-18

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

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

query I rowsort
SELECT 58 * - 24
----
-1392

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT 4 * - NULLIF ( COUNT( * ) * + 89 - - COUNT( * ), + 28 )
----
-360

skipif mysql # not compatible
query I rowsort label-524
SELECT 4 * - NULLIF ( COUNT ( * ) * + 89 - - COUNT ( * ), + 28 )
----
-360

query I rowsort
SELECT 34 + 37 col2
----
71

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

query I rowsort
SELECT DISTINCT + 7 * + 17 AS col2
----
119

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ALL - COALESCE ( 54, + 35 + NULLIF ( + 26 - ( MIN( ALL - 99 ) ), - COUNT( * ) + 18 ), 18 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL - COALESCE ( 54, + 35 + NULLIF ( + 26 - ( MIN ( ALL - 99 ) ), - COUNT ( * ) + 18 ), 18 ) AS col2
----
-54

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

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

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

skipif mysql # not compatible
query I rowsort label-531
SELECT + MAX ( 25 )
----
25

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

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

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

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

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

query I rowsort
SELECT ( - 64 ) * 75 AS col2
----
-4800

query I rowsort
SELECT 30 + ( - 5 ) * + 21
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-537
SELECT ALL SUM( ALL ( 90 ) ) + + 24 AS col2
----
114

skipif mysql # not compatible
query I rowsort label-537
SELECT ALL SUM ( ALL ( 90 ) ) + + 24 AS col2
----
114

query I rowsort
SELECT 20 * + + 39 AS col0
----
780

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-540
SELECT DISTINCT 76 + 39 + - COALESCE ( CAST( - SUM( 20 ) AS SIGNED ), + COUNT( * ) ) AS col1
----
135

skipif mysql # not compatible
query I rowsort label-540
SELECT DISTINCT 76 + 39 + - COALESCE ( CAST ( - SUM ( 20 ) AS INTEGER ), + COUNT ( * ) ) AS col1
----
135

query I rowsort
SELECT ALL 11 + - 7
----
4

query I rowsort
SELECT 10 - - 20
----
30

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

query I rowsort
SELECT 22 col2
----
22

query I rowsort
SELECT 29 + 89 AS col0
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-546
SELECT 64 DIV - + ( + COALESCE ( 47, 9 * + 34 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-546
SELECT 64 / - + ( + COALESCE ( 47, 9 * + 34 ) ) AS col2
----
-1

query I rowsort
SELECT - 76 + + 79
----
3

query I rowsort
SELECT ALL + - 99 - + 97
----
-196

query I rowsort
SELECT - + 57 col1
----
-57

query I rowsort
SELECT ALL - 21 - - + 84 AS col1
----
63

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

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

query I rowsort
SELECT 19 col1
----
19

query I rowsort
SELECT - NULLIF ( 83, - 78 )
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-555
SELECT 72 * CAST( - 47 AS SIGNED ) AS col0
----
-3384

skipif mysql # not compatible
query I rowsort label-555
SELECT 72 * CAST ( - 47 AS INTEGER ) AS col0
----
-3384

query I rowsort
SELECT ALL - 69 * - 61
----
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT COUNT( DISTINCT - - 3 ) * 80
----
80

skipif mysql # not compatible
query I rowsort label-557
SELECT COUNT ( DISTINCT - - 3 ) * 80
----
80

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

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

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

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

query I rowsort
SELECT ALL - NULLIF ( + COALESCE ( 26, + ( 98 ) ), 74 ) * + 95 col1
----
-2470

query I rowsort
SELECT DISTINCT - 80 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-562
SELECT ALL - + 15 * - - NULLIF ( + ( + 6 ), ( CAST( NULL AS SIGNED ) ) ) / - CAST( CASE + COUNT( * ) WHEN 13 THEN - ( 16 ) WHEN 81 THEN NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-562
SELECT ALL - + 15 * - - NULLIF ( + ( + 6 ), ( CAST ( NULL AS INTEGER ) ) ) / - CAST ( CASE + COUNT ( * ) WHEN 13 THEN - ( 16 ) WHEN 81 THEN NULL END AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-563
SELECT 98 + CAST( MAX( ALL - 2 ) AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-563
SELECT 98 + CAST ( MAX ( ALL - 2 ) AS INTEGER )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-564
SELECT ALL - - MAX( CAST( + 91 AS SIGNED ) ) AS col1
----
91

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - - MAX ( CAST ( + 91 AS INTEGER ) ) AS col1
----
91

query I rowsort
SELECT ALL 15 * + 60 + 17
----
917

query I rowsort
SELECT NULLIF ( + - 45, 10 + - 44 ) * 81 + 31 AS col1
----
-3614

onlyif mysql # DIV for integer division: 
query I rowsort label-567
SELECT DISTINCT - 26 DIV - + 94
----
0

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT - 26 / - + 94
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-568
SELECT + 55 DIV - - 53 + 22 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-568
SELECT + 55 / - - 53 + 22 AS col0
----
23

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-570
SELECT ALL 78 * - COALESCE ( 50, - ( - 60 ) DIV CAST( NULL AS SIGNED ) )
----
-3900

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 78 * - COALESCE ( 50, - ( - 60 ) / CAST ( NULL AS INTEGER ) )
----
-3900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-571
SELECT 94 + - 27 * - + CAST( CASE 40 WHEN 15 + ( + CASE 23 WHEN + COALESCE ( + 91, NULLIF ( 26, ( + 38 ) ), - MIN( 18 ), + 27 + + 98 ) * + 24 THEN - 77 END ) THEN MAX( 18 ) * 54 WHEN COUNT( * ) + 87 THEN 60 + - 11 ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-571
SELECT 94 + - 27 * - + CAST ( CASE 40 WHEN 15 + ( + CASE 23 WHEN + COALESCE ( + 91, NULLIF ( 26, ( + 38 ) ), - MIN ( 18 ), + 27 + + 98 ) * + 24 THEN - 77 END ) THEN MAX ( 18 ) * 54 WHEN COUNT ( * ) + 87 THEN 60 + - 11 ELSE NULL END AS INTEGER )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-572
SELECT COUNT ( * ) * - COALESCE ( + COUNT ( * ), - 43 ) / + 72
----
0

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

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

query I rowsort
SELECT - 67 * - 44 * + 18 + + 67
----
53131

query I rowsort
SELECT ALL ( - + 26 ) + 45 * - 10
----
-476

query I rowsort
SELECT ALL - 8 + - - 29 AS col2
----
21

query I rowsort
SELECT 36 * 18 + + + 32
----
680

query I rowsort
SELECT ALL - 45 * + - 88 * + + 72 AS col2
----
285120

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT ALL 24 + + COUNT( * ) + - 86 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL 24 + + COUNT ( * ) + - 86 AS col0
----
-61

query I rowsort
SELECT + 29 + 65 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL 35 + MIN( DISTINCT + 33 )
----
68

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL 35 + MIN ( DISTINCT + 33 )
----
68

query I rowsort
SELECT + 6 + + - 92 + - 83
----
-169

query I rowsort
SELECT ALL COALESCE ( 10, 66 + + 17 * 50 ) + 34 AS col2
----
44

query I rowsort
SELECT + 94 * + + 96 AS col0
----
9024

query I rowsort
SELECT + 99 + 26 AS col0
----
125

query II rowsort
SELECT ALL 16 AS col2, + 48
----
16
48

query II rowsort
SELECT 64 AS col0, + 66 AS col1
----
64
66

query II rowsort
SELECT ALL 27 AS col0, - 54 * - 51
----
27
2754

query I rowsort
SELECT + 97 + - 86 + - 69 - + 32 * + 53 AS col1
----
-1754

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT + 36 * + - 40 + COUNT( * )
----
-1439

skipif mysql # not compatible
query I rowsort label-590
SELECT + 36 * + - 40 + COUNT ( * )
----
-1439

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT + + 53 * - + 24 * - - 1 + 48 * COUNT( * ) AS col2
----
-1224

skipif mysql # not compatible
query I rowsort label-591
SELECT + + 53 * - + 24 * - - 1 + 48 * COUNT ( * ) AS col2
----
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-592
SELECT ALL - 8 col0, 96 DIV - NULLIF ( COUNT( * ), + 19 DIV + 34 )
----
-8
-96

skipif mysql # not compatible
query II rowsort label-592
SELECT ALL - 8 col0, 96 / - NULLIF ( COUNT ( * ), + 19 / + 34 )
----
-8
-96

query I rowsort
SELECT + 50 * + 87 + 94 + 47
----
4491

query II rowsort
SELECT - 44 AS col1, 17
----
-44
17

query II rowsort
SELECT ALL - 85, - 68 * 94 col1
----
-85
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT + - 92 * + + 21 * + ( - NULLIF ( 47, MAX( 99 ) ) ) AS col0
----
90804

skipif mysql # not compatible
query I rowsort label-596
SELECT + - 92 * + + 21 * + ( - NULLIF ( 47, MAX ( 99 ) ) ) AS col0
----
90804

query I rowsort
SELECT DISTINCT ( + + 29 ) AS col2
----
29

query I rowsort
SELECT DISTINCT + NULLIF ( + 47, - - 86 * 70 ) AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT ALL + MIN( DISTINCT + - 77 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL + MIN ( DISTINCT + - 77 ) AS col1
----
-77

query I rowsort
SELECT DISTINCT + + 91
----
91

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

query I rowsort
SELECT ALL 12 * - 64 * + - 81 + ( - 99 )
----
62109

query I rowsort
SELECT DISTINCT + - 14 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-604
SELECT - - ( 97 ) * + CAST( 72 AS SIGNED ) AS col2
----
6984

skipif mysql # not compatible
query I rowsort label-604
SELECT - - ( 97 ) * + CAST ( 72 AS INTEGER ) AS col2
----
6984

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + + 15 DIV + 76 - 44
----
-44

skipif mysql # not compatible
query I rowsort label-605
SELECT + + 15 / + 76 - 44
----
-44

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

onlyif mysql # aggregate syntax: 
query I rowsort label-607
SELECT DISTINCT - 80 * - COUNT( * ) + + 64
----
144

skipif mysql # not compatible
query I rowsort label-607
SELECT DISTINCT - 80 * - COUNT ( * ) + + 64
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT + 96 * - 13 + - - 61 - - 83 DIV + 65
----
-1186

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT + 96 * - 13 + - - 61 - - 83 / + 65
----
-1186

query I rowsort
SELECT ( - 95 ) AS col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL + 47 * + MIN( ALL - 92 ) + - + 97 + 53
----
-4368

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL + 47 * + MIN ( ALL - 92 ) + - + 97 + 53
----
-4368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-611
SELECT ALL - CASE - 37 WHEN COALESCE ( + 80, 89 ) THEN NULL ELSE 20 * - CASE - ( - 23 ) WHEN - 88 THEN NULL ELSE 59 + COALESCE ( + 7, + 36 ) END + - 7 END * + 48 + + ( - ( 47 ) + 9 ) * + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL - CASE - 37 WHEN COALESCE ( + 80, 89 ) THEN NULL ELSE 20 * - CASE - ( - 23 ) WHEN - 88 THEN NULL ELSE 59 + COALESCE ( + 7, + 36 ) END + - 7 END * + 48 + + ( - ( 47 ) + 9 ) * + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-612
SELECT COALESCE ( CAST( NULL AS SIGNED ), - - COUNT( * ) + + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-612
SELECT COALESCE ( CAST ( NULL AS INTEGER ), - - COUNT ( * ) + + COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL + NULLIF ( - 21, - + MAX( ALL + 55 ) ) AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + NULLIF ( - 21, - + MAX ( ALL + 55 ) ) AS col0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT DISTINCT - 3 * - - CASE - 82 WHEN + 66 + MAX( + 2 - 60 ) / - 20 THEN MAX( - 37 ) END + ( + 36 - + ( + 74 ) ) / ( - 24 * - 17 + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT - 3 * - - CASE - 82 WHEN + 66 + MAX ( + 2 - 60 ) / - 20 THEN MAX ( - 37 ) END + ( + 36 - + ( + 74 ) ) / ( - 24 * - 17 + 99 )
----
NULL

query II rowsort
SELECT - 12 * - 98 AS col0, - 42 + 66 AS col1
----
1176
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT + ( ( CASE - 3 WHEN - CAST( + 79 AS SIGNED ) * - 91 THEN + ( - 87 ) * SUM( ALL 97 ) WHEN 79 / + 87 + ( COUNT( * ) ) THEN - 24 END ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + ( ( CASE - 3 WHEN - CAST ( + 79 AS INTEGER ) * - 91 THEN + ( - 87 ) * SUM ( ALL 97 ) WHEN 79 / + 87 + ( COUNT ( * ) ) THEN - 24 END ) ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 64 * + 28 + + 81
----
1873

onlyif mysql # DIV for integer division: 
query I rowsort label-618
SELECT 68 * + 19 * + 55 - 24 DIV + 59
----
71060

skipif mysql # not compatible
query I rowsort label-618
SELECT 68 * + 19 * + 55 - 24 / + 59
----
71060

query I rowsort
SELECT NULLIF ( + 11, 89 * - 29 )
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-620
SELECT - 76 * - CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT - 76 * - CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT CASE - COUNT( * ) WHEN - - 81 / - - 85 * 88 THEN - 70 + + SUM( 67 ) ELSE ( + ( 81 ) ) + 93 END
----
174

skipif mysql # not compatible
query I rowsort label-621
SELECT CASE - COUNT ( * ) WHEN - - 81 / - - 85 * 88 THEN - 70 + + SUM ( 67 ) ELSE ( + ( 81 ) ) + 93 END
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-622
SELECT ALL + CAST( - 28 AS SIGNED ) DIV + - SUM( ALL + 3 ) - - 70 * + 84 AS col1
----
5889

skipif mysql # not compatible
query I rowsort label-622
SELECT ALL + CAST ( - 28 AS INTEGER ) / + - SUM ( ALL + 3 ) - - 70 * + 84 AS col1
----
5889

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

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

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

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

query I rowsort
SELECT ALL 12 * - 20 - + 13 + - + 18 * + 33
----
-847

query I rowsort
SELECT - 46 * - 50 AS col2
----
2300

query I rowsort
SELECT ALL 18 * - 72 - - 98 AS col1
----
-1198

onlyif mysql # aggregate syntax: 
query I rowsort label-629
SELECT - 31 * 47 - + + SUM( - 97 ) AS col0
----
-1360

skipif mysql # not compatible
query I rowsort label-629
SELECT - 31 * 47 - + + SUM ( - 97 ) AS col0
----
-1360

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

query II rowsort
SELECT ALL ( 72 ), + 54 AS col0
----
72
54

query I rowsort
SELECT DISTINCT - ( + 17 ) * + 24
----
-408

query I rowsort
SELECT DISTINCT 55 * 88 col1
----
4840

query I rowsort
SELECT - + 13 + 35 + + 59
----
81

query I rowsort
SELECT + - 7 * 7 + 14 + - 59 * 44 AS col1
----
-2631

onlyif mysql # aggregate syntax: 
query I rowsort label-636
SELECT ALL ( + CASE - - 34 WHEN + 55 + - COUNT( * ) THEN NULL WHEN 21 THEN AVG ( 79 ) + 20 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL ( + CASE - - 34 WHEN + 55 + - COUNT ( * ) THEN NULL WHEN 21 THEN AVG ( 79 ) + 20 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - - COUNT( * ) + - 21 * - MAX( ALL + 24 ) * 23
----
11593

skipif mysql # not compatible
query I rowsort label-637
SELECT - - COUNT ( * ) + - 21 * - MAX ( ALL + 24 ) * 23
----
11593

onlyif mysql # aggregate syntax: 
query II rowsort label-638
SELECT ALL + ( + 36 ), 64 * - COUNT( * ) AS col0
----
36
-64

skipif mysql # not compatible
query II rowsort label-638
SELECT ALL + ( + 36 ), 64 * - COUNT ( * ) AS col0
----
36
-64

query I rowsort
SELECT - - 89 AS col0
----
89

query I rowsort
SELECT + 97 + 87 + + 5 * 94
----
654

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL - 86 * CASE - - 30 WHEN - + 15 * 76 + 91 THEN NULL WHEN - COUNT( ALL - 95 ) THEN + 51 WHEN + 34 THEN - 22 - 56 ELSE - 89 END + 75
----
7729

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL - 86 * CASE - - 30 WHEN - + 15 * 76 + 91 THEN NULL WHEN - COUNT ( ALL - 95 ) THEN + 51 WHEN + 34 THEN - 22 - 56 ELSE - 89 END + 75
----
7729

query I rowsort
SELECT + + 81 * 85
----
6885

query I rowsort
SELECT + - 6 * + 82
----
-492

query I rowsort
SELECT + 24 + + ( - + 77 ) * - + 7 AS col2
----
563

query I rowsort
SELECT - - CASE + - ( - 77 ) WHEN + 21 THEN - 56 END AS col2
----
NULL

query I rowsort
SELECT ALL + 26 + - 82 - - 48
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT + 86 * - 81 + - CASE + COUNT( * ) WHEN 11 + - 58 THEN COUNT( * ) + 78 * - 82 ELSE 76 END + + 77 AS col2
----
-6965

skipif mysql # not compatible
query I rowsort label-647
SELECT + 86 * - 81 + - CASE + COUNT ( * ) WHEN 11 + - 58 THEN COUNT ( * ) + 78 * - 82 ELSE 76 END + + 77 AS col2
----
-6965

query I rowsort
SELECT - 56 * 24 AS col1
----
-1344

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

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT + 75 / 51 + - ( + - ( - COUNT ( * ) ) )
----
0

query II rowsort
SELECT ALL + 39 AS col2, + ( + 39 ) AS col1
----
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-651
SELECT DISTINCT COALESCE ( + 85, - ( + COUNT( * ) ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) ) + 80 * 2 AS col0
----
245

skipif mysql # not compatible
query I rowsort label-651
SELECT DISTINCT COALESCE ( + 85, - ( + COUNT ( * ) ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) ) + 80 * 2 AS col0
----
245

query I rowsort
SELECT ALL - ( 62 )
----
-62

query I rowsort
SELECT 72 * + 91 + + - 51 col1
----
6501

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT - 0 * MIN( + 34 )
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - 0 * MIN ( + 34 )
----
0

query I rowsort
SELECT 19 + + 77 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT 73 * - ( - COUNT( * ) ) - - 62 col1
----
135

skipif mysql # not compatible
query I rowsort label-656
SELECT 73 * - ( - COUNT ( * ) ) - - 62 col1
----
135

query I rowsort
SELECT 29 + - 7 - 40 + - 33 - 97 + - 9 * + 22 col0
----
-346

onlyif mysql # aggregate syntax: 
query II rowsort label-658
SELECT ALL - 74 AS col1, + 68 + + COUNT( * )
----
-74
69

skipif mysql # not compatible
query II rowsort label-658
SELECT ALL - 74 AS col1, + 68 + + COUNT ( * )
----
-74
69

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT ALL + 82 * ( + SUM( DISTINCT 63 ) ) AS col0
----
5166

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + 82 * ( + SUM ( DISTINCT 63 ) ) AS col0
----
5166

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

query I rowsort
SELECT + 64 * - 28 + + 8 col1
----
-1784

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-662
SELECT ALL + SUM( + 45 ) - 17 + + + 20 - - - 43 * CAST( NULL AS DECIMAL ) * - 36 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL + SUM ( + 45 ) - 17 + + + 20 - - - 43 * CAST ( NULL AS REAL ) * - 36 * + 6
----
NULL

query I rowsort
SELECT 64 + + 13 + - - 94 + + 22
----
193

onlyif mysql # aggregate syntax: 
query II rowsort label-664
SELECT DISTINCT - COALESCE ( - COUNT( * ), - 78 ), + 48 AS col0
----
1
48

skipif mysql # not compatible
query II rowsort label-664
SELECT DISTINCT - COALESCE ( - COUNT ( * ), - 78 ), + 48 AS col0
----
1
48

query I rowsort
SELECT 38 * - - 75 AS col2
----
2850

onlyif mysql # DIV for integer division: 
query I rowsort label-666
SELECT DISTINCT + + 75 DIV 55
----
1

skipif mysql # not compatible
query I rowsort label-666
SELECT DISTINCT + + 75 / 55
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-668
SELECT ALL + + ( - 77 ) * - COUNT( * ), ( + - 49 ) * - 32 AS col2
----
77
1568

skipif mysql # not compatible
query II rowsort label-668
SELECT ALL + + ( - 77 ) * - COUNT ( * ), ( + - 49 ) * - 32 AS col2
----
77
1568

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

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - 12 + COUNT ( 9 ) AS col1
----
-11

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

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

query I rowsort
SELECT DISTINCT + 90 * - 19 * - 93
----
159030

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT ALL + 32 + MIN( - 18 )
----
14

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + 32 + MIN ( - 18 )
----
14

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

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

query I rowsort
SELECT + 95 * - - 87 * + - 5 + ( 50 ) * 34
----
-39625

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT ALL + - 96 + + MIN( - 0 )
----
-96

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL + - 96 + + MIN ( - 0 )
----
-96

query I rowsort
SELECT 14 + - 12
----
2

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

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

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

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

query I rowsort
SELECT - 3 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT ALL + MIN( ALL - 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-680
SELECT ALL + MIN ( ALL - 20 ) col1
----
-20

query I rowsort
SELECT ALL + + 53 + 14 AS col1
----
67

query I rowsort
SELECT ALL ( - 26 ) * + 96 AS col0
----
-2496

onlyif mysql # DIV for integer division: 
query I rowsort label-683
SELECT 77 DIV + 37 + 38 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-683
SELECT 77 / + 37 + 38 AS col2
----
40

query I rowsort
SELECT ALL ( + - 48 ) - + 8
----
-56

query I rowsort
SELECT NULLIF ( - 66, - 47 ) * - 25 * + 76
----
125400

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT ALL ( 60 ) * - - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL ( 60 ) * - - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-687
SELECT NULLIF ( - 21, + 56 ) DIV + 72 + MAX( DISTINCT 17 ) - 52
----
-35

skipif mysql # not compatible
query I rowsort label-687
SELECT NULLIF ( - 21, + 56 ) / + 72 + MAX ( DISTINCT 17 ) - 52
----
-35

query II rowsort
SELECT 94, 71 * - + COALESCE ( - 64, 66, - 88 ) AS col1
----
94
4544

query II rowsort
SELECT + 45, 67 col0
----
45
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-691
SELECT CAST( NULL AS SIGNED ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT CAST ( NULL AS INTEGER ) * 3 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-692
SELECT ALL - 3, ( + 85 ) * + 68 * - + 6 + - 49 + + COUNT( * ) * + 88 DIV + 56 AS col0
----
-3
-34728

skipif mysql # not compatible
query II rowsort label-692
SELECT ALL - 3, ( + 85 ) * + 68 * - + 6 + - 49 + + COUNT ( * ) * + 88 / + 56 AS col0
----
-3
-34728

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-694
SELECT DISTINCT - COUNT( * ) AS col2, - 1 * - + ( + 63 )
----
-1
63

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

onlyif mysql # aggregate syntax: 
query II rowsort label-695
SELECT ALL - 93, + MIN( DISTINCT 72 ) AS col0
----
-93
72

skipif mysql # not compatible
query II rowsort label-695
SELECT ALL - 93, + MIN ( DISTINCT 72 ) AS col0
----
-93
72

onlyif mysql # aggregate syntax: 
query I rowsort label-696
SELECT - 22 * - + COUNT( * ) * + 54 - CASE + - AVG ( DISTINCT + ( 54 ) ) WHEN 7 * - 24 THEN 6 * + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-696
SELECT - 22 * - + COUNT ( * ) * + 54 - CASE + - AVG ( DISTINCT + ( 54 ) ) WHEN 7 * - 24 THEN 6 * + 94 END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-697
SELECT 75, + 90 DIV + 73 AS col0
----
75
1

skipif mysql # not compatible
query II rowsort label-697
SELECT 75, + 90 / + 73 AS col0
----
75
1

query I rowsort
SELECT 44 - + 44
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-699
SELECT 83 * + CAST( - + 19 AS SIGNED ) AS col2
----
-1577

skipif mysql # not compatible
query I rowsort label-699
SELECT 83 * + CAST ( - + 19 AS INTEGER ) AS col2
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT + MIN( ALL + CASE - 72 WHEN - 58 THEN + 19 ELSE - - 82 END )
----
82

skipif mysql # not compatible
query I rowsort label-700
SELECT + MIN ( ALL + CASE - 72 WHEN - 58 THEN + 19 ELSE - - 82 END )
----
82

query I rowsort
SELECT ALL + + COALESCE ( + 39, + 16, 33 * 88 + - - 25 ) * 12
----
468

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

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - + CAST ( - 60 AS INTEGER ) col1
----
60

query II rowsort
SELECT ALL - + 69, 76 AS col2
----
-69
76

query I rowsort
SELECT + - 80
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT - NULLIF ( + - 80, + COALESCE ( + + COUNT( - 69 ), - 91 + CAST( 70 AS SIGNED ) ) + 50 ) * 36 col2
----
2880

skipif mysql # not compatible
query I rowsort label-705
SELECT - NULLIF ( + - 80, + COALESCE ( + + COUNT ( - 69 ), - 91 + CAST ( 70 AS INTEGER ) ) + 50 ) * 36 col2
----
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL + 41 + NULLIF ( COUNT( * ), MAX( ALL - + 92 ) / - - 81 + - 58 + - 96 )
----
42

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL + 41 + NULLIF ( COUNT ( * ), MAX ( ALL - + 92 ) / - - 81 + - 58 + - 96 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT DISTINCT COALESCE ( + 26, 55 DIV - 56, + 84 ) + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT COALESCE ( + 26, 55 / - 56, + 84 ) + - COUNT ( * )
----
25

query I rowsort
SELECT DISTINCT - 13 AS col2
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-709
SELECT ALL - 61 + + NULLIF ( - + 49, + CAST( 13 AS SIGNED ) + + 81 ) + - CAST( NULL AS SIGNED ) * NULLIF ( 36, 12 * 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL - 61 + + NULLIF ( - + 49, + CAST ( 13 AS INTEGER ) + + 81 ) + - CAST ( NULL AS INTEGER ) * NULLIF ( 36, 12 * 39 )
----
NULL

query I rowsort
SELECT - 35 AS col2
----
-35

query I rowsort
SELECT ALL - 50 + 63
----
13

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + 79 * + + CASE + 74 WHEN 7 THEN + COUNT( * ) WHEN 77 + 70 THEN 99 ELSE NULL END * 28 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-713
SELECT + 79 * + + CASE + 74 WHEN 7 THEN + COUNT ( * ) WHEN 77 + 70 THEN 99 ELSE NULL END * 28 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-714
SELECT - 19, 23 - + COUNT( * ) DIV + 31 * + 62 AS col2
----
-19
23

skipif mysql # not compatible
query II rowsort label-714
SELECT - 19, 23 - + COUNT ( * ) / + 31 * + 62 AS col2
----
-19
23

query I rowsort
SELECT ALL + 0 + - 79 + 93 AS col2
----
14

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

skipif mysql # not compatible
query I rowsort label-716
SELECT 52 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - + 6 + + - 42 AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-718
SELECT ALL - CAST( NULL AS SIGNED ) / + MIN( 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - CAST ( NULL AS INTEGER ) / + MIN ( 84 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - CASE 2 WHEN 67 THEN + 60 ELSE NULL END
----
NULL

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

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

query I rowsort
SELECT DISTINCT + 18 * + - 4 AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-722
SELECT DISTINCT + 7 + + ( - + ( COUNT( * ) ) ) - 88 + + CAST( 63 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT + 7 + + ( - + ( COUNT ( * ) ) ) - 88 + + CAST ( 63 AS INTEGER )
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-723
SELECT ALL + 85 - + + 15, ( + + CAST( + 63 AS SIGNED ) ) AS col2
----
70
63

skipif mysql # not compatible
query II rowsort label-723
SELECT ALL + 85 - + + 15, ( + + CAST ( + 63 AS INTEGER ) ) AS col2
----
70
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-724
SELECT - + ( ( CAST( NULL AS DECIMAL ) ) ) + - 32 - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-724
SELECT - + ( ( CAST ( NULL AS REAL ) ) ) + - 32 - 2
----
NULL

query I rowsort
SELECT ALL + 74 * + 54 AS col2
----
3996

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

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

query I rowsort
SELECT ALL COALESCE ( + 53, + 39 ) AS col2
----
53

query I rowsort
SELECT ALL + CASE - - 6 WHEN + + 54 THEN NULLIF ( 73, - 55 ) * - - 8 END * 46 col2
----
NULL

query II rowsort
SELECT - 77 * - 76 col1, 82
----
5852
82

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT - 53 + + - 62 + + SUM( + - 1 ) AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-730
SELECT - 53 + + - 62 + + SUM ( + - 1 ) AS col0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT NULLIF ( COUNT( * ), - + 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-731
SELECT NULLIF ( COUNT ( * ), - + 99 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT ALL + SUM( + - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL + SUM ( + - 57 )
----
-57

query I rowsort
SELECT CASE - 17 WHEN - - 13 THEN + 56 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-734
SELECT + 19 DIV + 34 - + - 69 * 5
----
345

skipif mysql # not compatible
query I rowsort label-734
SELECT + 19 / + 34 - + - 69 * 5
----
345

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

skipif mysql # not compatible
query I rowsort label-735
SELECT ALL 5 / - 85 / COUNT ( * )
----
0

query I rowsort
SELECT - 11 * - 28 col0
----
308

query II rowsort
SELECT 10 * - 49 + - + ( 90 ) * 99, + 28 AS col1
----
-9400
28

query II rowsort
SELECT DISTINCT 40 * + 66, 66 * - - 13 AS col1
----
2640
858

query I rowsort
SELECT - 56 * - - 37 + - 53
----
-2125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-740
SELECT + NULLIF ( CAST( 37 AS SIGNED ), + + COUNT( * ) ) - + 65
----
-28

skipif mysql # not compatible
query I rowsort label-740
SELECT + NULLIF ( CAST ( 37 AS INTEGER ), + + COUNT ( * ) ) - + 65
----
-28

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

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

query I rowsort
SELECT + 81 + 11 * 20
----
301

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-743
SELECT CAST( NULL AS SIGNED ) * - CASE - + 27 WHEN - 44 THEN NULL ELSE - 52 END - - MIN( ALL + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-743
SELECT CAST ( NULL AS INTEGER ) * - CASE - + 27 WHEN - 44 THEN NULL ELSE - 52 END - - MIN ( ALL + 20 )
----
NULL

query I rowsort
SELECT DISTINCT - 51 * 95 + + 95
----
-4750

query I rowsort
SELECT ALL + ( + 78 ) * + + 92 * - 40 + + 72 col1
----
-286968

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-747
SELECT ALL + 0 * + 40 + - 34 + 86 + - ( COUNT( * ) ) DIV 82 * 28 + 47 + - 59 * 57 col2
----
-3264

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL + 0 * + 40 + - 34 + 86 + - ( COUNT ( * ) ) / 82 * 28 + 47 + - 59 * 57 col2
----
-3264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-748
SELECT - CAST( - - 63 AS SIGNED )
----
-63

skipif mysql # not compatible
query I rowsort label-748
SELECT - CAST ( - - 63 AS INTEGER )
----
-63

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-751
SELECT + - 24 * 49 DIV + SUM( 33 ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-751
SELECT + - 24 * 49 / + SUM ( 33 ) AS col0
----
-35

query I rowsort
SELECT CASE - 86 WHEN 78 * + + 51 * - + 37 THEN + AVG ( COALESCE ( 27, 57 + - 77 ) ) END
----
NULL

query I rowsort
SELECT DISTINCT 65 + + 74 AS col2
----
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT ALL - 69 - + NULLIF ( - 35, 78 / 9 + + COALESCE ( 63, 91 * 78 ) * 91 ) - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL - 69 - + NULLIF ( - 35, 78 / 9 + + COALESCE ( 63, 91 * 78 ) * 91 ) - COUNT ( * )
----
-35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT - ( - MAX( 70 ) ) col1
----
70

skipif mysql # not compatible
query I rowsort label-757
SELECT - ( - MAX ( 70 ) ) col1
----
70

query I rowsort
SELECT - 98 col1
----
-98

query I rowsort
SELECT - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL COALESCE ( + ( - COUNT( * ) ), 76, + 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL COALESCE ( + ( - COUNT ( * ) ), 76, + 82 ) AS col0
----
-1

query I rowsort
SELECT - 83 * + - 88 AS col0
----
7304

query I rowsort
SELECT - 95 + 48 AS col1
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT - 41 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT - 41 / 92
----
0

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

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

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

query I rowsort
SELECT ALL - 14 * + 79 col2
----
-1106

query I rowsort
SELECT ALL + 59 * - 74
----
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-768
SELECT - NULLIF ( - MAX( DISTINCT - ( + - 32 ) ), + 61 / + 30 + - 51 ) + - - ( + 94 ) * - 73 AS col2
----
-6830

skipif mysql # not compatible
query I rowsort label-768
SELECT - NULLIF ( - MAX ( DISTINCT - ( + - 32 ) ), + 61 / + 30 + - 51 ) + - - ( + 94 ) * - 73 AS col2
----
-6830

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

skipif mysql # not compatible
query I rowsort label-769
SELECT - MIN ( + 95 )
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-770
SELECT + 52 DIV 79 + 93 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-770
SELECT + 52 / 79 + 93 AS col0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-771
SELECT ALL - 51 DIV 90 + + - 61 + - 7
----
-68

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL - 51 / 90 + + - 61 + - 7
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-772
SELECT CAST( NULL AS SIGNED ) AS col2, 14 AS col0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-772
SELECT CAST ( NULL AS INTEGER ) AS col2, 14 AS col0
----
NULL
14

query I rowsort
SELECT - 94 * + + 64
----
-6016

query II rowsort
SELECT + 61, 20 AS col2
----
61
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-775
SELECT CAST( - MIN( - - 38 ) AS SIGNED ) AS col1, COUNT( * ) + 5 + + + 10 DIV + 12
----
-38
6

skipif mysql # not compatible
query II rowsort label-775
SELECT CAST ( - MIN ( - - 38 ) AS INTEGER ) AS col1, COUNT ( * ) + 5 + + + 10 / + 12
----
-38
6

onlyif mysql # DIV for integer division: 
query I rowsort label-776
SELECT ALL 26 DIV - 45 * + - ( + 49 ) + + + 80 DIV + 48
----
1

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL 26 / - 45 * + - ( + 49 ) + + + 80 / + 48
----
1

query II rowsort
SELECT + 97 AS col2, 3 * + ( + + 81 )
----
97
243

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

query II rowsort
SELECT ALL + 22 AS col2, - 70 + + 93 * + 51
----
22
4673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-780
SELECT + 34 * - NULLIF ( + 3, - CAST( NULL AS SIGNED ) ) - + 63 DIV + COUNT( * ) + - 66 DIV 32
----
-167

skipif mysql # not compatible
query I rowsort label-780
SELECT + 34 * - NULLIF ( + 3, - CAST ( NULL AS INTEGER ) ) - + 63 / + COUNT ( * ) + - 66 / 32
----
-167

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-781
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 28
----
NULL

query I rowsort
SELECT ALL - 17 * - + 9 + 32 - 35 + 14 + 98 * + 69 AS col1
----
6926

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - - COUNT( * ) - 17 * - 54
----
919

skipif mysql # not compatible
query I rowsort label-783
SELECT - - COUNT ( * ) - 17 * - 54
----
919

query I rowsort
SELECT + + 48 * + 28 AS col1
----
1344

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT - - 59 - + COUNT ( * ) AS col1
----
58

query I rowsort
SELECT DISTINCT - 99 col1
----
-99

query I rowsort
SELECT - 64 - - 69
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-790
SELECT - 27 AS col0, + COALESCE ( + ( - 68 ), - 74 + - 25, 68 DIV - + 43 ) + 76 * 84 AS col2
----
-27
6316

skipif mysql # not compatible
query II rowsort label-790
SELECT - 27 AS col0, + COALESCE ( + ( - 68 ), - 74 + - 25, 68 / - + 43 ) + 76 * 84 AS col2
----
-27
6316

query I rowsort
SELECT - - 50 AS col1
----
50

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-794
SELECT CAST( + - 12 AS SIGNED ) * 87 + + + NULLIF ( - + 30, 4 ) * 57 * 92 * NULLIF ( - 0, + 25 ) AS col0
----
-1044

skipif mysql # not compatible
query I rowsort label-794
SELECT CAST ( + - 12 AS INTEGER ) * 87 + + + NULLIF ( - + 30, 4 ) * 57 * 92 * NULLIF ( - 0, + 25 ) AS col0
----
-1044

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-796
SELECT ALL - 71 AS col0, + 84 / - + CAST( NULL AS SIGNED )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-796
SELECT ALL - 71 AS col0, + 84 / - + CAST ( NULL AS INTEGER )
----
-71
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT 58 - - 42 + + 80 * - COUNT( * ) * - + 3 col2
----
340

skipif mysql # not compatible
query I rowsort label-798
SELECT 58 - - 42 + + 80 * - COUNT ( * ) * - + 3 col2
----
340

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT ( + 53 ) + + NULLIF ( + - 76, - CAST( NULL AS SIGNED ) * - 13 + + 68 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-799
SELECT ( + 53 ) + + NULLIF ( + - 76, - CAST ( NULL AS INTEGER ) * - 13 + + 68 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT 34 col2
----
34

query I rowsort
SELECT ALL - 28 * + ( + 72 )
----
-2016

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-803
SELECT 57 + + CAST( COUNT( ALL - - 39 ) AS SIGNED ) + 91
----
149

skipif mysql # not compatible
query I rowsort label-803
SELECT 57 + + CAST ( COUNT ( ALL - - 39 ) AS INTEGER ) + 91
----
149

onlyif mysql # DIV for integer division: 
query I rowsort label-804
SELECT 73 DIV + + 56 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-804
SELECT 73 / + + 56 AS col0
----
1

query I rowsort
SELECT NULLIF ( - COALESCE ( - ( + COALESCE ( + 9, - ( + ( + ( + 42 ) ) ), 37 ) ), ( 97 ) ), 3 ) + 29 AS col1
----
38

query I rowsort
SELECT - 8 col0
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-807
SELECT ALL + 92 DIV + 55 AS col1, 51 * + COUNT( * ) * + + MAX( 97 ) + - - MAX( DISTINCT ( + 42 ) )
----
1
4989

skipif mysql # not compatible
query II rowsort label-807
SELECT ALL + 92 / + 55 AS col1, 51 * + COUNT ( * ) * + + MAX ( 97 ) + - - MAX ( DISTINCT ( + 42 ) )
----
1
4989

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT - 38 + - 74 * - - 26 + - - COUNT( * ) * + 42 + - 52 AS col0
----
-1972

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT - 38 + - 74 * - - 26 + - - COUNT ( * ) * + 42 + - 52 AS col0
----
-1972

onlyif mysql # DIV for integer division: 
query I rowsort label-809
SELECT DISTINCT 81 DIV - ( 44 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-809
SELECT DISTINCT 81 / - ( 44 ) AS col2
----
-1

query I rowsort
SELECT 82 * + 56 * + - 29 AS col0
----
-133168

query I rowsort
SELECT - CASE + 31 WHEN - ( CASE - 50 WHEN - 27 THEN NULL WHEN AVG ( DISTINCT + 44 ) * + + 21 * 45 THEN NULL ELSE 85 END ) THEN 57 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT ALL - + 62 + 39 + - - 88 * + + 93 + + ( 54 ) + - - 48 + 33 + - + COUNT( * ) + + 21 * + 88
----
10143

skipif mysql # not compatible
query I rowsort label-812
SELECT ALL - + 62 + 39 + - - 88 * + + 93 + + ( 54 ) + - - 48 + 33 + - + COUNT ( * ) + + 21 * + 88
----
10143

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

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - 98 + + - 42 + + COUNT( * ) col1
----
-139

skipif mysql # not compatible
query I rowsort label-814
SELECT - 98 + + - 42 + + COUNT ( * ) col1
----
-139

query I rowsort
SELECT - 70 * - 87 - 53 AS col1
----
6037

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-816
SELECT ALL + 22 - 22 + 79 * - CAST( NULL AS DECIMAL ) + - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL + 22 - 22 + 79 * - CAST ( NULL AS REAL ) + - + 11
----
NULL

query I rowsort
SELECT DISTINCT - COALESCE ( + 74, - 85, - 72 )
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-818
SELECT - 78 * 19 + + SUM( DISTINCT - 92 ) + - - 38, + COALESCE ( - COALESCE ( 71, 19 * 56 + 9, + 47 ), 4 ) DIV - 16 AS col0
----
-1536
4

skipif mysql # not compatible
query II rowsort label-818
SELECT - 78 * 19 + + SUM ( DISTINCT - 92 ) + - - 38, + COALESCE ( - COALESCE ( 71, 19 * 56 + 9, + 47 ), 4 ) / - 16 AS col0
----
-1536
4

query I rowsort
SELECT DISTINCT - 30 * + 77 AS col0
----
-2310

query I rowsort
SELECT DISTINCT - - 13
----
13

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

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

query II rowsort
SELECT 75 * + - 35 AS col2, + 51
----
-2625
51

query I rowsort
SELECT + 61 + - + ( 33 ) - 99 * + 33 AS col1
----
-3239

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

skipif mysql # not compatible
query I rowsort label-824
SELECT ALL + 86 / - COUNT ( * ) AS col1
----
-86

query I rowsort
SELECT - 70 * + 42 * + 98
----
-288120

query I rowsort
SELECT + + 52
----
52

query I rowsort
SELECT ALL 58 * - ( - 24 )
----
1392

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

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT + 2 * 28 + + MIN( 17 ) col2
----
73

skipif mysql # not compatible
query I rowsort label-829
SELECT + 2 * 28 + + MIN ( 17 ) col2
----
73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-831
SELECT DISTINCT CAST( NULL AS SIGNED ) + 48 + - ( - 88 ) + + + COUNT( * ) * COUNT( * ) * - 90 * 54 * - + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 48 + - ( - 88 ) + + + COUNT ( * ) * COUNT ( * ) * - 90 * 54 * - + 33
----
NULL

query II rowsort
SELECT 82 col0, 39 * 71
----
82
2769

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT COUNT( * ) - + 20 * + MAX( 2 ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-833
SELECT COUNT ( * ) - + 20 * + MAX ( 2 ) AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-834
SELECT COUNT( ALL - - 93 ) * - 79 * + 93 AS col2
----
-7347

skipif mysql # not compatible
query I rowsort label-834
SELECT COUNT ( ALL - - 93 ) * - 79 * + 93 AS col2
----
-7347

query I rowsort
SELECT ALL 47 + + 53 AS col1
----
100

query I rowsort
SELECT DISTINCT 11 * + ( + 70 ) AS col0
----
770

query I rowsort
SELECT DISTINCT 70 + 99 * + 29 AS col1
----
2941

onlyif mysql # aggregate syntax: 
query I rowsort label-838
SELECT ALL 40 * - COUNT( * ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-838
SELECT ALL 40 * - COUNT ( * ) AS col1
----
-40

query I rowsort
SELECT DISTINCT 65 col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT DISTINCT 75 * + COUNT( * ) * + 29 AS col1
----
2175

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT 75 * + COUNT ( * ) * + 29 AS col1
----
2175

query II rowsort
SELECT 68 col1, 23 AS col0
----
68
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-842
SELECT ALL 87 * - MAX( - 50 ) - - 16 + + 41 DIV COUNT( * )
----
4407

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL 87 * - MAX ( - 50 ) - - 16 + + 41 / COUNT ( * )
----
4407

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT + MAX( ALL + 69 ) AS col1
----
69

skipif mysql # not compatible
query I rowsort label-843
SELECT + MAX ( ALL + 69 ) AS col1
----
69

query I rowsort
SELECT - 43 * - 63
----
2709

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-845
SELECT DISTINCT - COUNT( * ), CAST( 71 AS SIGNED ) * + 77 AS col0
----
-1
5467

skipif mysql # not compatible
query II rowsort label-845
SELECT DISTINCT - COUNT ( * ), CAST ( 71 AS INTEGER ) * + 77 AS col0
----
-1
5467

query II rowsort
SELECT ALL + + 35 AS col2, 7
----
35
7

query I rowsort
SELECT - - 87 * - - 18 + + 44 + - 69
----
1541

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT SUM( ALL 42 ) col2
----
42

skipif mysql # not compatible
query I rowsort label-848
SELECT SUM ( ALL 42 ) col2
----
42

query I rowsort
SELECT ALL - ( + - 20 ) * + 28 AS col0
----
560

query I rowsort
SELECT ALL + - 2 AS col1
----
-2

query I rowsort
SELECT + 72 * - - 20 * - 62 col2
----
-89280

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT + + COUNT( * ) * + 17 * - 26 + COUNT( * ) AS col0
----
-441

skipif mysql # not compatible
query I rowsort label-852
SELECT + + COUNT ( * ) * + 17 * - 26 + COUNT ( * ) AS col0
----
-441

query I rowsort
SELECT - ( + - 9 ) * - 29
----
-261

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT - - CAST( - + 11 AS SIGNED ) * + 55 / + CAST( NULL AS SIGNED ) * - - COUNT( * ) + MAX( ALL 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-855
SELECT - - CAST ( - + 11 AS INTEGER ) * + 55 / + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + MAX ( ALL 93 )
----
NULL

query I rowsort
SELECT - 67 col2
----
-67

query I rowsort
SELECT + 71 * + 7 + 60 + 72 AS col2
----
629

query I rowsort
SELECT DISTINCT + 96 * + 13 AS col0
----
1248

query I rowsort
SELECT ALL + COALESCE ( + 67, 0 * - 38, - 30 * 22 )
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-860
SELECT + CAST( - NULLIF ( MAX( 43 ), - - 20 ) AS SIGNED ) col1, - 11
----
-43
-11

skipif mysql # not compatible
query II rowsort label-860
SELECT + CAST ( - NULLIF ( MAX ( 43 ), - - 20 ) AS INTEGER ) col1, - 11
----
-43
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT ALL + + 50 * - SUM( 19 ) AS col0, 7 + - 4
----
-950
3

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL + + 50 * - SUM ( 19 ) AS col0, 7 + - 4
----
-950
3

onlyif mysql # aggregate syntax: 
query II rowsort label-862
SELECT ALL 95 + + 96 col2, ( - 18 ) * - - COUNT( * ) AS col1
----
191
-18

skipif mysql # not compatible
query II rowsort label-862
SELECT ALL 95 + + 96 col2, ( - 18 ) * - - COUNT ( * ) AS col1
----
191
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT - COALESCE ( - 19, 84 ) - 77 + + 40 * + COUNT( * ) / + 49 * + - CASE - 44 WHEN 83 + + ( 59 ) + + SUM( + 53 + + 82 ) THEN - COUNT( * ) WHEN SUM( + 30 ) * 98 THEN NULL END + + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT - COALESCE ( - 19, 84 ) - 77 + + 40 * + COUNT ( * ) / + 49 * + - CASE - 44 WHEN 83 + + ( 59 ) + + SUM ( + 53 + + 82 ) THEN - COUNT ( * ) WHEN SUM ( + 30 ) * 98 THEN NULL END + + COUNT ( * ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL + 28 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT - 71 + 26 * - NULLIF ( - 24, 96 - + NULLIF ( - - 20, - CASE 47 WHEN + 35 + - 88 THEN - 17 ELSE - 89 * ( 15 ) END ) ) * - COUNT( * ) + 1 * 99 AS col2
----
-596

skipif mysql # not compatible
query I rowsort label-865
SELECT - 71 + 26 * - NULLIF ( - 24, 96 - + NULLIF ( - - 20, - CASE 47 WHEN + 35 + - 88 THEN - 17 ELSE - 89 * ( 15 ) END ) ) * - COUNT ( * ) + 1 * 99 AS col2
----
-596

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

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

query II rowsort
SELECT ALL 35 + 46 AS col1, 24
----
81
24

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT - 41 + + MIN( - 89 ) col2
----
-130

skipif mysql # not compatible
query I rowsort label-868
SELECT - 41 + + MIN ( - 89 ) col2
----
-130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-869
SELECT ALL - CASE - - 78 WHEN + 51 THEN - 15 * + 28 * 56 + 98 WHEN + 29 + + + CAST( NULL AS SIGNED ) THEN + ( - - 49 ) * 1 WHEN NULLIF ( 15, + 50 * 45 ) THEN NULL WHEN - CASE - AVG ( 45 ) WHEN - MAX( + CAST( NULL AS SIGNED ) ) * - 32 THEN NULL WHEN - 96 THEN CAST( NULL AS SIGNED ) ELSE NULL END THEN COUNT( * ) END + 62 * 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL - CASE - - 78 WHEN + 51 THEN - 15 * + 28 * 56 + 98 WHEN + 29 + + + CAST ( NULL AS INTEGER ) THEN + ( - - 49 ) * 1 WHEN NULLIF ( 15, + 50 * 45 ) THEN NULL WHEN - CASE - AVG ( 45 ) WHEN - MAX ( + CAST ( NULL AS INTEGER ) ) * - 32 THEN NULL WHEN - 96 THEN CAST ( NULL AS INTEGER ) ELSE NULL END THEN COUNT ( * ) END + 62 * 4 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 10 * 22
----
220

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-872
SELECT ALL 29 + + - COALESCE ( 42, + - 46 + CAST( + 91 AS SIGNED ) * - 32 ) + 35 * - + 2 * 59 AS col2
----
-4143

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL 29 + + - COALESCE ( 42, + - 46 + CAST ( + 91 AS INTEGER ) * - 32 ) + 35 * - + 2 * 59 AS col2
----
-4143

query I rowsort
SELECT + 35 * + ( 40 ) col2
----
1400

query I rowsort
SELECT DISTINCT + 38 * + 77 col1
----
2926

onlyif mysql # DIV for integer division: 
query I rowsort label-875
SELECT DISTINCT 81 DIV 78
----
1

skipif mysql # not compatible
query I rowsort label-875
SELECT DISTINCT 81 / 78
----
1

query I rowsort
SELECT + 87 + + 14 col1
----
101

query II rowsort
SELECT ALL 13, 25 + + - 29 AS col1
----
13
-4

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

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

query I rowsort
SELECT - ( 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-880
SELECT ALL 71, 83 + COUNT( - 18 ) AS col2
----
71
84

skipif mysql # not compatible
query II rowsort label-880
SELECT ALL 71, 83 + COUNT ( - 18 ) AS col2
----
71
84

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT 53, 21 * - COUNT( * ) col1
----
53
-21

skipif mysql # not compatible
query II rowsort label-881
SELECT 53, 21 * - COUNT ( * ) col1
----
53
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-882
SELECT + + 66 + + COUNT( * ) / CAST( NULL AS SIGNED ) + + 47 * + + 54 + + 21 * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-882
SELECT + + 66 + + COUNT ( * ) / CAST ( NULL AS INTEGER ) + + 47 * + + 54 + + 21 * + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-883
SELECT ALL COALESCE ( - + ( + ( - - 58 ) ), 8 ) * + 40 + - CASE 54 WHEN COUNT( * ) * 48 - MAX( - 72 ) THEN NULL ELSE 44 END + + COUNT( * ) AS col0
----
-2363

skipif mysql # not compatible
query I rowsort label-883
SELECT ALL COALESCE ( - + ( + ( - - 58 ) ), 8 ) * + 40 + - CASE 54 WHEN COUNT ( * ) * 48 - MAX ( - 72 ) THEN NULL ELSE 44 END + + COUNT ( * ) AS col0
----
-2363

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL + CASE - 12 WHEN 36 THEN NULL WHEN - 33 + - 82 THEN NULL WHEN - SUM( DISTINCT + 97 ) THEN - + ( + + 98 ) ELSE + ( - 0 ) END
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL + CASE - 12 WHEN 36 THEN NULL WHEN - 33 + - 82 THEN NULL WHEN - SUM ( DISTINCT + 97 ) THEN - + ( + + 98 ) ELSE + ( - 0 ) END
----
0

query I rowsort
SELECT DISTINCT - ( 15 ) * + 20 AS col2
----
-300

query I rowsort
SELECT + - 41 * - 95
----
3895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL CASE - + 72 WHEN NULLIF ( + 83, - 27 * 56 * - 28 * - AVG ( DISTINCT - CAST( + + 87 AS SIGNED ) ) * 34 ) + 72 THEN - COUNT( * ) WHEN CAST( NULL AS SIGNED ) / 47 THEN 35 END * 16 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL CASE - + 72 WHEN NULLIF ( + 83, - 27 * 56 * - 28 * - AVG ( DISTINCT - CAST ( + + 87 AS INTEGER ) ) * 34 ) + 72 THEN - COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) / 47 THEN 35 END * 16 col0
----
NULL

query II rowsort
SELECT + + 13 AS col1, + 63
----
13
63

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

skipif mysql # not compatible
query I rowsort label-889
SELECT 59 * + COUNT ( * ) - + 1 AS col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-890
SELECT + - MAX( DISTINCT - 28 ) + + + 13 / + 78 + + + 96 + - + 45 + - CASE 11 WHEN - 89 * - COUNT( DISTINCT + 10 ) THEN 52 * COUNT( * ) WHEN - 94 THEN NULL END + - MIN( 62 - 77 ) * 42 * + CAST( 89 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-890
SELECT + - MAX ( DISTINCT - 28 ) + + + 13 / + 78 + + + 96 + - + 45 + - CASE 11 WHEN - 89 * - COUNT ( DISTINCT + 10 ) THEN 52 * COUNT ( * ) WHEN - 94 THEN NULL END + - MIN ( 62 - 77 ) * 42 * + CAST ( 89 AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT + - 75 AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL - 31 * NULLIF ( - 62, 51 ) * + - 15 + + CASE + - 25 WHEN 93 THEN + 16 * + MIN( DISTINCT - ( + 89 ) ) * 74 + 51 WHEN + ( 35 ) THEN 42 * MAX( 5 ) ELSE + 20 END
----
-28810

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - 31 * NULLIF ( - 62, 51 ) * + - 15 + + CASE + - 25 WHEN 93 THEN + 16 * + MIN ( DISTINCT - ( + 89 ) ) * 74 + 51 WHEN + ( 35 ) THEN 42 * MAX ( 5 ) ELSE + 20 END
----
-28810

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

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

query I rowsort
SELECT ALL + 16 * 11 + 44 col0
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-895
SELECT + CAST( - 90 AS SIGNED ) AS col2, + 87 AS col2
----
-90
87

skipif mysql # not compatible
query II rowsort label-895
SELECT + CAST ( - 90 AS INTEGER ) AS col2, + 87 AS col2
----
-90
87

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT - CASE - 78 WHEN - 7 * - - 60 + - 48 THEN ( 51 ) * - + 0 * + 21 ELSE COUNT( * ) + - + COUNT( 75 ) END + - 80
----
-80

skipif mysql # not compatible
query I rowsort label-896
SELECT - CASE - 78 WHEN - 7 * - - 60 + - 48 THEN ( 51 ) * - + 0 * + 21 ELSE COUNT ( * ) + - + COUNT ( 75 ) END + - 80
----
-80

query I rowsort
SELECT COALESCE ( + - 98, + 41 )
----
-98

query I rowsort
SELECT DISTINCT + 24 * - ( 5 ) col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL COUNT( * ) * + 9 * 18 + - - 54 * + 33 * + 42 AS col0
----
75006

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL COUNT ( * ) * + 9 * 18 + - - 54 * + 33 * + 42 AS col0
----
75006

query I rowsort
SELECT - COALESCE ( - 10, - + 15 ) * 28 col0
----
280

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

query I rowsort
SELECT ALL 98 * + + 18 - - 98 AS col0
----
1862

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

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT CAST ( + - 89 AS INTEGER ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT MAX( ALL - - 59 ) * + + 99 * - 96 - - + ( + - ( - + 16 ) ) AS col0
----
-560720

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT MAX ( ALL - - 59 ) * + + 99 * - 96 - - + ( + - ( - + 16 ) ) AS col0
----
-560720

query I rowsort
SELECT ALL - 61 * 77 col1
----
-4697

query I rowsort
SELECT - 29 + + - 37 AS col2
----
-66

query I rowsort
SELECT - ( + 20 ) + + 2
----
-18

query I rowsort
SELECT - 75 * + 84 AS col1
----
-6300

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - CASE - 52 WHEN + - COUNT( * ) + 4 + 27 + + - AVG ( ALL 62 ) THEN + - COALESCE ( - 24, 0 ) + + MIN( DISTINCT + ( + 69 ) ) END - + 67 * 43
----
NULL

skipif mysql # not compatible
query I rowsort label-909
SELECT - CASE - 52 WHEN + - COUNT ( * ) + 4 + 27 + + - AVG ( ALL 62 ) THEN + - COALESCE ( - 24, 0 ) + + MIN ( DISTINCT + ( + 69 ) ) END - + 67 * 43
----
NULL

query I rowsort
SELECT 91 - + + 76 col1
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-911
SELECT - CASE - - 50 WHEN 18 + 49 DIV 33 DIV 71 DIV + 22 + 74 THEN - - 73 + COUNT( + - 0 ) ELSE + + COUNT( ALL 59 ) DIV + 44 END * + 74
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT - CASE - - 50 WHEN 18 + 49 / 33 / 71 / + 22 + 74 THEN - - 73 + COUNT ( + - 0 ) ELSE + + COUNT ( ALL 59 ) / + 44 END * + 74
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT - + NULLIF ( 8, + COUNT( * ) ) * + 82 AS col2
----
-656

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT - + NULLIF ( 8, + COUNT ( * ) ) * + 82 AS col2
----
-656

query I rowsort
SELECT DISTINCT + + 50 * + 12
----
600

onlyif mysql # DIV for integer division: 
query I rowsort label-915
SELECT ALL 31 DIV + - 44
----
0

skipif mysql # not compatible
query I rowsort label-915
SELECT ALL 31 / + - 44
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-916
SELECT + 1 + ( - 90 ) - - COUNT( ALL + + 31 ) * - COALESCE ( - 56, + 40 + + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) ) * + - 87 AS col0
----
-4961

skipif mysql # not compatible
query I rowsort label-916
SELECT + 1 + ( - 90 ) - - COUNT ( ALL + + 31 ) * - COALESCE ( - 56, + 40 + + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) ) * + - 87 AS col0
----
-4961

onlyif mysql # aggregate syntax: 
query I rowsort label-917
SELECT 94 - ( - - COUNT( * ) ) + - - 94 + + - 14 + COUNT( * ) + + COUNT( * )
----
175

skipif mysql # not compatible
query I rowsort label-917
SELECT 94 - ( - - COUNT ( * ) ) + - - 94 + + - 14 + COUNT ( * ) + + COUNT ( * )
----
175

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-919
SELECT 4 * - 8 * + 46 - - 42 + - MIN( + 51 ) + + 24 + + - 30 * - ( 52 ) * + + COUNT( 71 ) * MAX( 25 DIV - 63 + 99 ) AS col1
----
152983

skipif mysql # not compatible
query I rowsort label-919
SELECT 4 * - 8 * + 46 - - 42 + - MIN ( + 51 ) + + 24 + + - 30 * - ( 52 ) * + + COUNT ( 71 ) * MAX ( 25 / - 63 + 99 ) AS col1
----
152983

query I rowsort
SELECT ALL 20 + + 76 + + + 61
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT - - COUNT( DISTINCT - - 55 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT - - COUNT ( DISTINCT - - 55 ) col1
----
1

query I rowsort
SELECT ALL + 74 * 94
----
6956

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT ALL - ( + SUM( 36 ) ) * + 21 + 20 * + COUNT( * ) AS col1
----
-736

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - ( + SUM ( 36 ) ) * + 21 + 20 * + COUNT ( * ) AS col1
----
-736

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT DISTINCT 4 * + MAX( - 33 ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-924
SELECT DISTINCT 4 * + MAX ( - 33 ) AS col2
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-925
SELECT 19 DIV - 82 * - 16
----
0

skipif mysql # not compatible
query I rowsort label-925
SELECT 19 / - 82 * - 16
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-926
SELECT 98 AS col2, COUNT( * ) * + 86 col2
----
98
86

skipif mysql # not compatible
query II rowsort label-926
SELECT 98 AS col2, COUNT ( * ) * + 86 col2
----
98
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-927
SELECT COALESCE ( - 51, - 19 ) - + CAST( 57 AS SIGNED ) DIV + 80 * + COUNT( * ) * 89 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-927
SELECT COALESCE ( - 51, - 19 ) - + CAST ( 57 AS INTEGER ) / + 80 * + COUNT ( * ) * 89 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-928
SELECT 38 * + - 61 + - CASE + 37 WHEN + ( - + 22 ) THEN 55 END * COUNT( * ) AS col0, NULLIF ( + COALESCE ( + - 71, - CAST( - 64 AS SIGNED ) + - 63 ), COUNT( * ) ) + 98 AS col1
----
NULL
27

skipif mysql # not compatible
query II rowsort label-928
SELECT 38 * + - 61 + - CASE + 37 WHEN + ( - + 22 ) THEN 55 END * COUNT ( * ) AS col0, NULLIF ( + COALESCE ( + - 71, - CAST ( - 64 AS INTEGER ) + - 63 ), COUNT ( * ) ) + 98 AS col1
----
NULL
27

query II rowsort
SELECT ALL - 28 AS col2, - 59
----
-28
-59

query II rowsort
SELECT DISTINCT - 99 AS col0, 89 + ( - 88 ) AS col0
----
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-931
SELECT CASE - 49 WHEN - - CAST( NULL AS SIGNED ) * - AVG ( - CAST( NULL AS SIGNED ) ) * - - NULLIF ( + COALESCE ( 68, - COUNT( * ) ), + 8 ) * + 67 + - + 36 + + COUNT( * ) THEN NULLIF ( - 93, 82 ) / + 21 - MAX( ALL + 74 ) ELSE NULL END - - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT CASE - 49 WHEN - - CAST ( NULL AS INTEGER ) * - AVG ( - CAST ( NULL AS INTEGER ) ) * - - NULLIF ( + COALESCE ( 68, - COUNT ( * ) ), + 8 ) * + 67 + - + 36 + + COUNT ( * ) THEN NULLIF ( - 93, 82 ) / + 21 - MAX ( ALL + 74 ) ELSE NULL END - - 56 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT ALL 17 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT ALL 17 / + 88
----
0

query I rowsort
SELECT 92 - + 92 * 70 AS col1
----
-6348

onlyif mysql # aggregate syntax: 
query II rowsort label-934
SELECT - 1 col2, MAX( + 68 ) * - MAX( - 80 ) * + 77 * + 65
----
-1
27227200

skipif mysql # not compatible
query II rowsort label-934
SELECT - 1 col2, MAX ( + 68 ) * - MAX ( - 80 ) * + 77 * + 65
----
-1
27227200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT - CASE 28 WHEN + 82 THEN NULL WHEN + + 98 * - 59 THEN 0 END * MIN( ALL + + 17 ) + - - CAST( - 34 AS SIGNED ) * + + COUNT( * ) + + CASE - - MIN( - 74 ) WHEN NULLIF ( 7, 30 ) THEN NULL WHEN 36 / ( 88 * - 38 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) / 44 END * 54 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT - CASE 28 WHEN + 82 THEN NULL WHEN + + 98 * - 59 THEN 0 END * MIN ( ALL + + 17 ) + - - CAST ( - 34 AS INTEGER ) * + + COUNT ( * ) + + CASE - - MIN ( - 74 ) WHEN NULLIF ( 7, 30 ) THEN NULL WHEN 36 / ( 88 * - 38 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) / 44 END * 54 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-936
SELECT 8 DIV + + 74 * 83 DIV + 62
----
0

skipif mysql # not compatible
query I rowsort label-936
SELECT 8 / + + 74 * 83 / + 62
----
0

query I rowsort
SELECT ALL - 75 * + 3
----
-225

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-938
SELECT 17 * - + 27 DIV COUNT( * ) * - 30 AS col0, 87 AS col2
----
13770
87

skipif mysql # not compatible
query II rowsort label-938
SELECT 17 * - + 27 / COUNT ( * ) * - 30 AS col0, 87 AS col2
----
13770
87

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT 92 + - - COUNT( * ) + + + 8 + 21 - + COUNT( * ) * - COUNT( ALL 24 ) AS col1
----
123

skipif mysql # not compatible
query I rowsort label-939
SELECT 92 + - - COUNT ( * ) + + + 8 + 21 - + COUNT ( * ) * - COUNT ( ALL 24 ) AS col1
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-940
SELECT DISTINCT 18 AS col2, + ( - - 6 ) - + - COUNT( * ) + + 98 * - MAX( - - 50 ) * + 4
----
18
-19593

skipif mysql # not compatible
query II rowsort label-940
SELECT DISTINCT 18 AS col2, + ( - - 6 ) - + - COUNT ( * ) + + 98 * - MAX ( - - 50 ) * + 4
----
18
-19593

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

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

query I rowsort
SELECT 7 * + 63 AS col2
----
441

query I rowsort
SELECT DISTINCT NULLIF ( 60, + 43 + - 31 * + 92 )
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-944
SELECT ALL 62 AS col1, CAST( COUNT( * ) AS SIGNED )
----
62
1

skipif mysql # not compatible
query II rowsort label-944
SELECT ALL 62 AS col1, CAST ( COUNT ( * ) AS INTEGER )
----
62
1

query I rowsort
SELECT + 15 + + 78 + 7 * 97
----
772

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-946
SELECT - 89 + COUNT( * ) + - 73, - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-161
-1

skipif mysql # not compatible
query II rowsort label-946
SELECT - 89 + COUNT ( * ) + - 73, - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-161
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT 50 DIV 66
----
0

skipif mysql # not compatible
query I rowsort label-947
SELECT 50 / 66
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-948
SELECT - - CAST( NULL AS SIGNED ) AS col2, + 78 AS col2
----
NULL
78

skipif mysql # not compatible
query II rowsort label-948
SELECT - - CAST ( NULL AS INTEGER ) AS col2, + 78 AS col2
----
NULL
78

query I rowsort
SELECT 27 + - ( 98 ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT MAX( 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-950
SELECT MAX ( 71 ) AS col1
----
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-951
SELECT DISTINCT + - 6 + - - 69 + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + - 6 + - - 69 + SUM ( DISTINCT CAST ( NULL AS REAL ) ) + - 29
----
NULL

query I rowsort
SELECT ALL 97 AS col2
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-953
SELECT - 8, - 73 DIV - + 76 AS col1
----
-8
0

skipif mysql # not compatible
query II rowsort label-953
SELECT - 8, - 73 / - + 76 AS col1
----
-8
0

query I rowsort
SELECT DISTINCT - ( + + 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-955
SELECT ALL - + 72 * + 48 + + - ( MIN( DISTINCT + 34 ) ) + 73 AS col0
----
-3417

skipif mysql # not compatible
query I rowsort label-955
SELECT ALL - + 72 * + 48 + + - ( MIN ( DISTINCT + 34 ) ) + 73 AS col0
----
-3417

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

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

query I rowsort
SELECT + - 98
----
-98

query I rowsort
SELECT + 15 + + + ( - 93 )
----
-78

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

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

query I rowsort
SELECT + - 44 * - + 58 + - 67 AS col0
----
2485

onlyif mysql # aggregate syntax: 
query II rowsort label-961
SELECT ALL 68 * + + 96 + + ( - 51 ) * - 48 - - 48 * 37 * - 51, - COUNT( * ) - + + 80 AS col0
----
-81600
-81

skipif mysql # not compatible
query II rowsort label-961
SELECT ALL 68 * + + 96 + + ( - 51 ) * - 48 - - 48 * 37 * - 51, - COUNT ( * ) - + + 80 AS col0
----
-81600
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT - + 29 * + COUNT( * ) + + 65 + 86 col2, + 72
----
122
72

skipif mysql # not compatible
query II rowsort label-962
SELECT - + 29 * + COUNT ( * ) + + 65 + 86 col2, + 72
----
122
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-963
SELECT - 37 * - 4 + COALESCE ( 40, - 65 DIV + 15 * - MAX( + + 34 ) DIV - 39 DIV - 27 * 26 * - - 6 + SUM( DISTINCT 69 ) ) AS col1
----
188

skipif mysql # not compatible
query I rowsort label-963
SELECT - 37 * - 4 + COALESCE ( 40, - 65 / + 15 * - MAX ( + + 34 ) / - 39 / - 27 * 26 * - - 6 + SUM ( DISTINCT 69 ) ) AS col1
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT SUM( ALL - - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-964
SELECT SUM ( ALL - - 34 )
----
34

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

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

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

query I rowsort
SELECT DISTINCT - 34 AS col2
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-968
SELECT + 71 * COUNT( * ) + CAST( 18 AS SIGNED ) * + + 24 col0
----
503

skipif mysql # not compatible
query I rowsort label-968
SELECT + 71 * COUNT ( * ) + CAST ( 18 AS INTEGER ) * + + 24 col0
----
503

query I rowsort
SELECT ALL 76 * + 68
----
5168

onlyif mysql # aggregate syntax: 
query II rowsort label-970
SELECT COUNT( - + 87 ) + 0 + 66 AS col1, 46 * - + 49
----
67
-2254

skipif mysql # not compatible
query II rowsort label-970
SELECT COUNT ( - + 87 ) + 0 + 66 AS col1, 46 * - + 49
----
67
-2254

query I rowsort
SELECT 63 * - 14
----
-882

query I rowsort
SELECT DISTINCT 11 * - + ( 33 ) AS col0
----
-363

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-974
SELECT + 58 + 88 + + 46 * + 62 AS col0, + ( + CAST( NULL AS DECIMAL ) ) * + COUNT( * ) / - ( CAST( - 18 AS SIGNED ) )
----
2998
NULL

skipif mysql # not compatible
query II rowsort label-974
SELECT + 58 + 88 + + 46 * + 62 AS col0, + ( + CAST ( NULL AS REAL ) ) * + COUNT ( * ) / - ( CAST ( - 18 AS INTEGER ) )
----
2998
NULL

query I rowsort
SELECT DISTINCT 75 * + - 70 * - 34
----
178500

query I rowsort
SELECT + 4 * - 53 AS col1
----
-212

query I rowsort
SELECT - NULLIF ( - + 70, - COALESCE ( + 93, - 71 * + 88 ) ) AS col0
----
70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-978
SELECT + - 18 * CAST( NULL AS DECIMAL ) * + AVG ( DISTINCT + 83 ) + - + COUNT( * ) * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT + - 18 * CAST ( NULL AS REAL ) * + AVG ( DISTINCT + 83 ) + - + COUNT ( * ) * 63 AS col0
----
NULL

query I rowsort
SELECT + 69 + NULLIF ( 89, - ( - 77 ) ) + - 68
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-980
SELECT + + 54 * 8 - MAX( DISTINCT + 52 ) DIV - 87
----
432

skipif mysql # not compatible
query I rowsort label-980
SELECT + + 54 * 8 - MAX ( DISTINCT + 52 ) / - 87
----
432

query I rowsort
SELECT ALL 52 + - 48
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT NULLIF ( + - 9, - COUNT( * ) + + - 64 + - + 45 / + 48 - + 83 * - + 70 ) AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-982
SELECT NULLIF ( + - 9, - COUNT ( * ) + + - 64 + - + 45 / + 48 - + 83 * - + 70 ) AS col2
----
-9

query I rowsort
SELECT + ( 70 ) * 4 AS col0
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-984
SELECT DISTINCT COALESCE ( - + ( - - CAST( NULL AS SIGNED ) ), COUNT( * ) + + + 63, ( + - MAX( + 84 ) ) ) AS col2
----
64

skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT COALESCE ( - + ( - - CAST ( NULL AS INTEGER ) ), COUNT ( * ) + + + 63, ( + - MAX ( + 84 ) ) ) AS col2
----
64

query I rowsort
SELECT ALL - 71 + 83
----
12

query I rowsort
SELECT DISTINCT + 59 AS col0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-987
SELECT ALL - + 8 + CASE - SUM( + - 48 ) WHEN 22 * + MIN( DISTINCT - 46 ) THEN + + CAST( NULL AS SIGNED ) + 66 * 83 WHEN - - 79 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-987
SELECT ALL - + 8 + CASE - SUM ( + - 48 ) WHEN 22 * + MIN ( DISTINCT - 46 ) THEN + + CAST ( NULL AS INTEGER ) + 66 * 83 WHEN - - 79 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-988
SELECT DISTINCT 41 * + COUNT( * ) + + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT 41 * + COUNT ( * ) + + + COUNT ( * )
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-989
SELECT - + CAST( ( + 21 ) AS SIGNED ) * - - 71 * - + 65 AS col1
----
96915

skipif mysql # not compatible
query I rowsort label-989
SELECT - + CAST ( ( + 21 ) AS INTEGER ) * - - 71 * - + 65 AS col1
----
96915

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-992
SELECT DISTINCT CAST( - + MIN( - 31 ) AS SIGNED ) * + - 75 * + 99 + 78 * - CASE + 92 WHEN + + CAST( 51 AS SIGNED ) * + COUNT( * ) * + 67 * - - ( - 27 ) - COUNT( ALL - 59 ) THEN 40 END - + 49 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT CAST ( - + MIN ( - 31 ) AS INTEGER ) * + - 75 * + 99 + 78 * - CASE + 92 WHEN + + CAST ( 51 AS INTEGER ) * + COUNT ( * ) * + 67 * - - ( - 27 ) - COUNT ( ALL - 59 ) THEN 40 END - + 49 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 70 + - 51 AS col2
----
19

query I rowsort
SELECT DISTINCT + 64 * - 7 + 78 AS col2
----
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-995
SELECT + MAX( ALL - 72 ) AS col2, 35 DIV + + COUNT( * )
----
-72
35

skipif mysql # not compatible
query II rowsort label-995
SELECT + MAX ( ALL - 72 ) AS col2, 35 / + + COUNT ( * )
----
-72
35

query I rowsort
SELECT ALL + 38 * - 83
----
-3154

query I rowsort
SELECT DISTINCT + 65 * 41
----
2665

query I rowsort
SELECT ALL + 47 * - 97 * + - 85 * - 46 AS col0
----
-17825690

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT - NULLIF ( COUNT( * ), 84 * + 43 ) DIV - MAX( - 58 )
----
0

skipif mysql # not compatible
query I rowsort label-1000
SELECT - NULLIF ( COUNT ( * ), 84 * + 43 ) / - MAX ( - 58 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT NULLIF ( - COUNT( * ), + AVG ( - + 50 ) + + ( 23 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1001
SELECT NULLIF ( - COUNT ( * ), + AVG ( - + 50 ) + + ( 23 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1002
SELECT - MAX( 51 ) - - 86 + + 11 * - - 29 * + + 61 AS col2
----
19494

skipif mysql # not compatible
query I rowsort label-1002
SELECT - MAX ( 51 ) - - 86 + + 11 * - - 29 * + + 61 AS col2
----
19494

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 82 * - CASE + COUNT( * ) WHEN + 68 * 18 - 14 THEN + - 5 + + + CASE NULLIF ( - + 87, - COUNT( * ) * 25 + - 19 ) WHEN 78 * - 47 + 66 + COALESCE ( + 93, + COUNT( * ) ) * 85 THEN - 10 END - + COALESCE ( + COUNT( * ), - 83, 37 * 48 ) WHEN + COALESCE ( - 72, - 49 * - 97 ) * - COUNT( CASE WHEN NOT NULL IS NULL THEN - 44 END + + 18 ) THEN NULL ELSE - 28 END * 16
----
36736

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 82 * - CASE + COUNT ( * ) WHEN + 68 * 18 - 14 THEN + - 5 + + + CASE NULLIF ( - + 87, - COUNT ( * ) * 25 + - 19 ) WHEN 78 * - 47 + 66 + COALESCE ( + 93, + COUNT ( * ) ) * 85 THEN - 10 END - + COALESCE ( + COUNT ( * ), - 83, 37 * 48 ) WHEN + COALESCE ( - 72, - 49 * - 97 ) * - COUNT ( CASE WHEN NOT NULL IS NULL THEN - 44 END + + 18 ) THEN NULL ELSE - 28 END * 16
----
36736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1004
SELECT + 41 DIV + COALESCE ( 77, + 29 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-1004
SELECT + 41 / + COALESCE ( 77, + 29 ) * + COUNT ( * )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT + 48 * 99 + - ( + MAX( - 27 ) ) * + 65 * + + 62 AS col2
----
113562

skipif mysql # not compatible
query I rowsort label-1006
SELECT + 48 * 99 + - ( + MAX ( - 27 ) ) * + 65 * + + 62 AS col2
----
113562

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT NULLIF ( - COUNT( * ), + 75 + + + 18 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1007
SELECT NULLIF ( - COUNT ( * ), + 75 + + + 18 ) col1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1009
SELECT CASE COUNT( * ) WHEN + COALESCE ( + NULLIF ( - COUNT( * ), - 23 + - COALESCE ( - MIN( ALL + + 87 ), - 93 ) * + 64 + + 14 + - COUNT( * ) ), - NULLIF ( + 33, 9 ) ) * COUNT( * ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1009
SELECT CASE COUNT ( * ) WHEN + COALESCE ( + NULLIF ( - COUNT ( * ), - 23 + - COALESCE ( - MIN ( ALL + + 87 ), - 93 ) * + 64 + + 14 + - COUNT ( * ) ), - NULLIF ( + 33, 9 ) ) * COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE 98 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1010
SELECT - 69 + + COALESCE ( 3, - COALESCE ( 39, + 3 * - 41 ) + + + 38 * 19 - 11 + + + 84 - 87 ) - 54 * ( + CASE 89 WHEN + 0 + - 41 * 13 THEN COALESCE ( COUNT( * ), 57, - 76 + - 59 ) * + CAST( + COUNT( * ) - + ( 9 ) AS SIGNED ) WHEN - CASE - CAST( NULL AS SIGNED ) WHEN AVG ( - 95 ) + + ( 96 + + 73 * - 90 ) THEN NULL WHEN + 98 / + COUNT( * ) THEN NULL ELSE + 22 END * + 91 THEN NULL ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1010
SELECT - 69 + + COALESCE ( 3, - COALESCE ( 39, + 3 * - 41 ) + + + 38 * 19 - 11 + + + 84 - 87 ) - 54 * ( + CASE 89 WHEN + 0 + - 41 * 13 THEN COALESCE ( COUNT ( * ), 57, - 76 + - 59 ) * + CAST ( + COUNT ( * ) - + ( 9 ) AS INTEGER ) WHEN - CASE - CAST ( NULL AS INTEGER ) WHEN AVG ( - 95 ) + + ( 96 + + 73 * - 90 ) THEN NULL WHEN + 98 / + COUNT ( * ) THEN NULL ELSE + 22 END * + 91 THEN NULL ELSE NULL END )
----
NULL

query I rowsort
SELECT + 75 + 45
----
120

query I rowsort
SELECT - - 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT - 2 * COUNT( * ) + 97 AS col0
----
95

skipif mysql # not compatible
query I rowsort label-1013
SELECT - 2 * COUNT ( * ) + 97 AS col0
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1014
SELECT - COUNT( * ) + + 62 + + 23 DIV - 63
----
61

skipif mysql # not compatible
query I rowsort label-1014
SELECT - COUNT ( * ) + + 62 + + 23 / - 63
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1015
SELECT + - 81 * - - 0 * - COUNT( - 22 ) + - COUNT( * ) + - + 6 DIV COUNT( * )
----
-7

skipif mysql # not compatible
query I rowsort label-1015
SELECT + - 81 * - - 0 * - COUNT ( - 22 ) + - COUNT ( * ) + - + 6 / COUNT ( * )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT + COUNT( * ) + + COUNT( * ) - 85 + - + 77 * 64 * + - ( + 92 ) AS col2
----
453293

skipif mysql # not compatible
query I rowsort label-1016
SELECT + COUNT ( * ) + + COUNT ( * ) - 85 + - + 77 * 64 * + - ( + 92 ) AS col2
----
453293

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL - SUM( + - 9 )
----
9

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - SUM ( + - 9 )
----
9

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

skipif mysql # not compatible
query I rowsort label-1018
SELECT + 38 + - COUNT ( * ) - 42 / + 88
----
37

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL 86 + COUNT ( 28 ) AS col1
----
87

query I rowsort
SELECT - 54 col2
----
-54

query I rowsort
SELECT ALL 53 - - 32 * + - 48 AS col2
----
-1483

query I rowsort
SELECT - - 25 col1
----
25

query I rowsort
SELECT + - 79 + 89
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT + 40 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 40 / - 89
----
0

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

skipif mysql # not compatible
query I rowsort label-1025
SELECT - COUNT ( * ) * - 7
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1026
SELECT + + COUNT( * ) + - ( - NULLIF ( + ( + + 71 ), - CAST( + - 41 AS DECIMAL ) ) )
----
72

skipif mysql # not compatible
query I rowsort label-1026
SELECT + + COUNT ( * ) + - ( - NULLIF ( + ( + + 71 ), - CAST ( + - 41 AS REAL ) ) )
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-1027
SELECT - + 99 DIV + + 57 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1027
SELECT - + 99 / + + 57 AS col0
----
-1

query I rowsort
SELECT + - 29 + 54
----
25

query I rowsort
SELECT ALL + 66 - ( - 88 )
----
154

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT 70 * - COUNT( * ) + + - 28 + - 97
----
-195

skipif mysql # not compatible
query I rowsort label-1031
SELECT 70 * - COUNT ( * ) + + - 28 + - 97
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT - CASE - COUNT( * ) WHEN + 27 THEN 58 + + 2 WHEN COUNT( * ) THEN - 8 ELSE - 33 + - - 57 END * - 71
----
1704

skipif mysql # not compatible
query I rowsort label-1032
SELECT - CASE - COUNT ( * ) WHEN + 27 THEN 58 + + 2 WHEN COUNT ( * ) THEN - 8 ELSE - 33 + - - 57 END * - 71
----
1704

query I rowsort
SELECT ALL 1 * - 75 * + + 15 col2
----
-1125

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT 70 * - + COUNT( * ) + + - 24 AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-1034
SELECT 70 * - + COUNT ( * ) + + - 24 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT + 63 * - + 80 + 61 + - - 64 * SUM( + - 83 ) + 0
----
-10291

skipif mysql # not compatible
query I rowsort label-1035
SELECT + 63 * - + 80 + 61 + - - 64 * SUM ( + - 83 ) + 0
----
-10291

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT + COALESCE ( + - COUNT( * ), + 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT + COALESCE ( + - COUNT ( * ), + 62 )
----
-1

query I rowsort
SELECT 82 + - 54 + 95 + + + 95 col2
----
218

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT 7 * - COUNT( * ) + - COUNT( + 12 ) + 35
----
27

skipif mysql # not compatible
query I rowsort label-1038
SELECT 7 * - COUNT ( * ) + - COUNT ( + 12 ) + 35
----
27

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

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

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

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

query II rowsort
SELECT DISTINCT - 30 col0, 88 - + 2 AS col1
----
-30
86

query I rowsort
SELECT ALL + 44 + 41
----
85

query I rowsort
SELECT - 19 * + 42 + - 35 * 10 AS col2
----
-1148

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1045
SELECT 44 * COUNT( * ) + 95 + + 4 * + + CAST( + 45 AS SIGNED ) AS col0, + ( + 32 )
----
319
32

skipif mysql # not compatible
query II rowsort label-1045
SELECT 44 * COUNT ( * ) + 95 + + 4 * + + CAST ( + 45 AS INTEGER ) AS col0, + ( + 32 )
----
319
32

query I rowsort
SELECT 91 * - 44 AS col2
----
-4004

query I rowsort
SELECT 27 + - 35 * - + 89 AS col2
----
3142

query II rowsort
SELECT 8 col0, + 8 AS col1
----
8
8

query I rowsort
SELECT 36 + + 21 AS col2
----
57

query I rowsort
SELECT 7 * - 13 AS col0
----
-91

query I rowsort
SELECT 42 * - 2
----
-84

query II rowsort
SELECT ALL - 78 col1, 1 + - 62 * 13
----
-78
-805

query I rowsort
SELECT + COALESCE ( - - 33, - 45 ) * + + 82
----
2706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1054
SELECT ALL + CAST( NULL AS SIGNED ) + + 17 + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT ALL + CAST ( NULL AS INTEGER ) + + 17 + - 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT - 82 DIV - NULLIF ( + - ( 99 ), - - 39 )
----
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT - 82 / - NULLIF ( + - ( 99 ), - - 39 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT DISTINCT - COUNT( - + 18 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT - COUNT ( - + 18 ) col0
----
-1

query I rowsort
SELECT ALL 75 - 72 + - 17 * 19 col0
----
-320

query I rowsort
SELECT 71 * - 99 + 58 + - 97 AS col1
----
-7068

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

skipif mysql # not compatible
query I rowsort label-1059
SELECT DISTINCT + NULLIF ( - 43, ( - 33 ) * - + CAST ( NULL AS INTEGER ) * 85 * - 72 ) AS col2
----
-43

query II rowsort
SELECT - + 17 AS col1, 27
----
-17
27

query I rowsort
SELECT + 67 + - + 3 * 21 AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT 63 * - ( + - CAST( + 50 AS SIGNED ) ) * + NULLIF ( - 21, + - 39 ) + 89 + - 4
----
-66065

skipif mysql # not compatible
query I rowsort label-1062
SELECT 63 * - ( + - CAST ( + 50 AS INTEGER ) ) * + NULLIF ( - 21, + - 39 ) + 89 + - 4
----
-66065

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT ALL + 30 - + 83 DIV + 20
----
26

skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL + 30 - + 83 / + 20
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1064
SELECT 50 * COUNT( * ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-1064
SELECT 50 * COUNT ( * ) AS col2
----
50

query II rowsort
SELECT + 60 AS col1, 5 + 90 - + 10 AS col2
----
60
85

onlyif mysql # aggregate syntax: 
query II rowsort label-1066
SELECT + COUNT( * ), 48 + - + 12 + - 20 + + - 7 * 67 AS col2
----
1
-453

skipif mysql # not compatible
query II rowsort label-1066
SELECT + COUNT ( * ), 48 + - + 12 + - 20 + + - 7 * 67 AS col2
----
1
-453

onlyif mysql # aggregate syntax: 
query I rowsort label-1067
SELECT COUNT( * ) - - - 34 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1067
SELECT COUNT ( * ) - - - 34 AS col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL - + 82 * + 11 + - SUM( ALL - 75 ) AS col2
----
-827

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL - + 82 * + 11 + - SUM ( ALL - 75 ) AS col2
----
-827

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

query I rowsort
SELECT DISTINCT - 36 * - 96 * - ( - 30 ) * - ( + 77 ) AS col2
----
-7983360

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT ALL 5 DIV ( 76 ) * + 15 - + 7 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL 5 / ( 76 ) * + 15 - + 7 AS col0
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-1072
SELECT 66 DIV + 16 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1072
SELECT 66 / + 16 AS col1
----
4

query I rowsort
SELECT 73 * + ( 91 ) * 34 AS col1
----
225862

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL COUNT( * ) + + + COUNT( * ) - + + 81 * + 85
----
-6883

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL COUNT ( * ) + + + COUNT ( * ) - + + 81 * + 85
----
-6883

query I rowsort
SELECT ALL - 18 AS col0
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1076
SELECT ALL 41 + + - COUNT( * ), - 14 DIV - 43 * - + 17 AS col2
----
40
0

skipif mysql # not compatible
query II rowsort label-1076
SELECT ALL 41 + + - COUNT ( * ), - 14 / - 43 * - + 17 AS col2
----
40
0

query I rowsort
SELECT DISTINCT - 33 AS col2
----
-33

query I rowsort
SELECT DISTINCT - ( 46 ) AS col0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1079
SELECT 91 + + COALESCE ( - 67, - - 58 ) * 89, SUM( - 49 ) AS col0
----
-5872
-49

skipif mysql # not compatible
query II rowsort label-1079
SELECT 91 + + COALESCE ( - 67, - - 58 ) * 89, SUM ( - 49 ) AS col0
----
-5872
-49

query I rowsort
SELECT 27 * - 56 AS col2
----
-1512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1081
SELECT ALL 81 + + COUNT( * ) - + NULLIF ( CAST( NULL AS SIGNED ), - 81 ) + + + 88 - - 80 * 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL 81 + + COUNT ( * ) - + NULLIF ( CAST ( NULL AS INTEGER ), - 81 ) + + + 88 - - 80 * 56 AS col1
----
NULL

query I rowsort
SELECT + 8 col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-1083
SELECT COALESCE ( - 64, - 34, 33 * 51 ) + + + MAX( DISTINCT + 21 ) col2, 21 * + 50
----
-43
1050

skipif mysql # not compatible
query II rowsort label-1083
SELECT COALESCE ( - 64, - 34, 33 * 51 ) + + + MAX ( DISTINCT + 21 ) col2, 21 * + 50
----
-43
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ALL - SUM( + 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1084
SELECT ALL - SUM ( + 20 )
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-1085
SELECT ALL - 86 DIV - - 55
----
-1

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - 86 / - - 55
----
-1

query I rowsort
SELECT ALL 45 + + + 65 + + - 89 AS col1
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1087
SELECT - - 92 * 31 + - CASE 41 WHEN - + 16 THEN - ( 54 ) - 98 DIV 52 * - 22 DIV + + 54 + 55 + + 33 - MAX( DISTINCT 41 ) WHEN + - 70 + COUNT( * ) + 71 THEN NULL ELSE COUNT( * ) END AS col2
----
2851

skipif mysql # not compatible
query I rowsort label-1087
SELECT - - 92 * 31 + - CASE 41 WHEN - + 16 THEN - ( 54 ) - 98 / 52 * - 22 / + + 54 + 55 + + 33 - MAX ( DISTINCT 41 ) WHEN + - 70 + COUNT ( * ) + 71 THEN NULL ELSE COUNT ( * ) END AS col2
----
2851

query I rowsort
SELECT ALL + 95 - + 29 AS col2
----
66

query I rowsort
SELECT ALL - 37 col1
----
-37

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT - 92 - 98 DIV + 83 + 62 + - 84 + - 85 + 80 * - + COUNT( * ) * - + 31 * 67 + 24
----
165984

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT - 92 - 98 / + 83 + 62 + - 84 + - 85 + 80 * - + COUNT ( * ) * - + 31 * 67 + 24
----
165984

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1092
SELECT - COUNT( * ) * - - 27 + + 6 + + - 17 * CAST( 32 AS SIGNED ) + 68 DIV - - 10 DIV + COUNT( * )
----
-559

skipif mysql # not compatible
query I rowsort label-1092
SELECT - COUNT ( * ) * - - 27 + + 6 + + - 17 * CAST ( 32 AS INTEGER ) + 68 / - - 10 / + COUNT ( * )
----
-559

query I rowsort
SELECT ALL - + 34 - - - 62 * - - NULLIF ( + ( 9 ), + COALESCE ( + 84, - AVG ( ALL 49 ) * + - 98 ) + 79 )
----
-592

query I rowsort
SELECT - - 9 AS col0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT + 23 + + - NULLIF ( + - 32, + ( + MIN( DISTINCT + 78 ) ) * + + ( 86 ) - - COUNT( * ) / - COUNT( * ) + + - 0 + + + 57 )
----
55

skipif mysql # not compatible
query I rowsort label-1095
SELECT + 23 + + - NULLIF ( + - 32, + ( + MIN ( DISTINCT + 78 ) ) * + + ( 86 ) - - COUNT ( * ) / - COUNT ( * ) + + - 0 + + + 57 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1096
SELECT DISTINCT + - COALESCE ( - + 41, + COUNT( * ) * + 89 ) DIV 75 * COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1096
SELECT DISTINCT + - COALESCE ( - + 41, + COUNT ( * ) * + 89 ) / 75 * COUNT ( * ) AS col0
----
0

query I rowsort
SELECT DISTINCT 93 * + 62 AS col2
----
5766

query I rowsort
SELECT 67 * 50 AS col1
----
3350

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT + 81 * - 90 AS col1, - 96 * + MAX( - 30 ) AS col2
----
-7290
2880

skipif mysql # not compatible
query II rowsort label-1099
SELECT + 81 * - 90 AS col1, - 96 * + MAX ( - 30 ) AS col2
----
-7290
2880

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1100
SELECT - 53 + + COUNT( + 14 ) + 15 + + 54 DIV + - 98, - COALESCE ( COUNT( * ), - - 52 + - 0 ) + 49 * + + COUNT( * ) * COUNT( * ) + - 21 AS col0
----
-37
27

skipif mysql # not compatible
query II rowsort label-1100
SELECT - 53 + + COUNT ( + 14 ) + 15 + + 54 / + - 98, - COALESCE ( COUNT ( * ), - - 52 + - 0 ) + 49 * + + COUNT ( * ) * COUNT ( * ) + - 21 AS col0
----
-37
27

query I rowsort
SELECT ALL - 43 + - 43 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1102
SELECT ALL NULLIF ( + 44, + + 37 ) + + + MIN( - 77 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1102
SELECT ALL NULLIF ( + 44, + + 37 ) + + + MIN ( - 77 ) AS col0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1103
SELECT DISTINCT COALESCE ( - COUNT( * ), + 95 * - 6 + 91 + - COUNT( * ) ) * 60 DIV COUNT( * ) * 1 + - - COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT COALESCE ( - COUNT ( * ), + 95 * - 6 + 91 + - COUNT ( * ) ) * 60 / COUNT ( * ) * 1 + - - COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL - COUNT( * ) * - 49 + + 33
----
82

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL - COUNT ( * ) * - 49 + + 33
----
82

query II rowsort
SELECT + 48 AS col2, + 58 AS col2
----
48
58

query I rowsort
SELECT + 76 + - + 62 AS col1
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-1107
SELECT + COUNT( * ), 59 * + - 61 col1
----
1
-3599

skipif mysql # not compatible
query II rowsort label-1107
SELECT + COUNT ( * ), 59 * + - 61 col1
----
1
-3599

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1108
SELECT CASE + 8 WHEN 32 THEN NULL WHEN - + CAST( NULL AS DECIMAL ) + + COUNT( * ) THEN + ( + - 98 ) WHEN 73 - - 83 - - + CAST( CASE 93 WHEN + AVG ( ALL + 14 ) THEN NULL WHEN + COUNT( * ) THEN COUNT( * ) * ( - 65 ) END AS SIGNED ) / 12 THEN - 34 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT CASE + 8 WHEN 32 THEN NULL WHEN - + CAST ( NULL AS REAL ) + + COUNT ( * ) THEN + ( + - 98 ) WHEN 73 - - 83 - - + CAST ( CASE 93 WHEN + AVG ( ALL + 14 ) THEN NULL WHEN + COUNT ( * ) THEN COUNT ( * ) * ( - 65 ) END AS INTEGER ) / 12 THEN - 34 END AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT ALL - COUNT( * ) * + ( - 31 ) * - SUM( + CAST( NULL AS SIGNED ) ) + + 35 + 19 - - - 36 * COALESCE ( - + 63, + 22 + - 19 + 88 ) * + - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL - COUNT ( * ) * + ( - 31 ) * - SUM ( + CAST ( NULL AS INTEGER ) ) + + 35 + 19 - - - 36 * COALESCE ( - + 63, + 22 + - 19 + 88 ) * + - 95
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1111
SELECT DISTINCT SUM( ALL 24 ) * - ( - - 54 ) * 25 + 40 DIV - - CASE - 62 WHEN + + 5 THEN NULL ELSE 65 END AS col2
----
-32400

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT SUM ( ALL 24 ) * - ( - - 54 ) * 25 + 40 / - - CASE - 62 WHEN + + 5 THEN NULL ELSE 65 END AS col2
----
-32400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1112
SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST( - 79 AS SIGNED ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT( * ) - - COUNT( ALL + 7 ) + + 51 AS col2, 83
----
NULL
83

skipif mysql # not compatible
query II rowsort label-1112
SELECT ALL - CASE - ( - COALESCE ( + - 90, + CAST ( - 79 AS INTEGER ) ) ) WHEN 59 THEN NULL WHEN + 17 THEN - 42 ELSE NULL END * + 30 + - - COUNT ( * ) - - COUNT ( ALL + 7 ) + + 51 AS col2, 83
----
NULL
83

query I rowsort
SELECT DISTINCT 39 * 17 AS col1
----
663

query I rowsort
SELECT DISTINCT + + 84 * - 20 * - - ( + 51 ) - 5
----
-85685

onlyif mysql # aggregate syntax: 
query II rowsort label-1115
SELECT + 66 * + 57 * - COUNT( * ) AS col0, + 17 AS col2
----
-3762
17

skipif mysql # not compatible
query II rowsort label-1115
SELECT + 66 * + 57 * - COUNT ( * ) AS col0, + 17 AS col2
----
-3762
17

query II rowsort
SELECT + 21 AS col1, 3 AS col0
----
21
3

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

skipif mysql # not compatible
query I rowsort label-1117
SELECT - - 94 + + COUNT ( * ) AS col2
----
95

query I rowsort
SELECT + + 88 col0
----
88

query II rowsort
SELECT + 72, 10 + - + 93 * - NULLIF ( + ( - 41 ), - 47 ) + + - 59 AS col0
----
72
-3862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1120
SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST( NULL AS SIGNED ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM( ALL + 74 + CAST( NULL AS SIGNED ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT( * ) ) THEN NULL END, + 33 * - 56 + + COUNT( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT( * ) / 78 END * 57 ) AS col0
----
-383
NULL

skipif mysql # not compatible
query II rowsort label-1120
SELECT - 63 * + 7 + 58 AS col0, CASE COALESCE ( AVG ( DISTINCT - - ( 88 ) ), + 69 ) WHEN - 58 THEN + + 60 END + + - 66 - - CAST ( NULL AS INTEGER ) + COALESCE ( + - 9, + CASE + COALESCE ( + 10, 21, COUNT ( * ) ) WHEN + COALESCE ( - 68, + 87 + 76 * CASE 6 / - 80 WHEN + 59 + - NULLIF ( 73 - 15 / 22, 78 + - SUM ( ALL + 74 + CAST ( NULL AS INTEGER ) ) ) * - 85 THEN 57 * + 93 + COALESCE ( ( - 38 ), 3 ) * - 43 WHEN + 78 + - ( 44 + + 49 * - COUNT ( * ) ) THEN NULL END, + 33 * - 56 + + COUNT ( * ) * 76, + ( - 93 ) * - 36 ) + - ( 87 + + 11 ) * 96 THEN - 37 ELSE COUNT ( * ) / 78 END * 57 ) AS col0
----
-383
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1121
SELECT 92 * + - CAST( - 89 AS SIGNED ) * - ( 30 ) + - 98 + + COUNT( + 88 ) + + + 81 + + COUNT( * )
----
-245655

skipif mysql # not compatible
query I rowsort label-1121
SELECT 92 * + - CAST ( - 89 AS INTEGER ) * - ( 30 ) + - 98 + + COUNT ( + 88 ) + + + 81 + + COUNT ( * )
----
-245655

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1122
SELECT ALL 6 AS col2, - CAST( NULL AS SIGNED ) col1
----
6
NULL

skipif mysql # not compatible
query II rowsort label-1122
SELECT ALL 6 AS col2, - CAST ( NULL AS INTEGER ) col1
----
6
NULL

query I rowsort
SELECT ALL - 48 * 57 - 51 * + 11 AS col1
----
-3297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-1124
SELECT - - 42 DIV - 44 - - + COALESCE ( + SUM( + ( 23 ) ), COALESCE ( + NULLIF ( - - 78, + + 22 * - 6 + + - CASE + 98 WHEN - 62 THEN NULL WHEN + COUNT( * ) DIV - COUNT( * ) + NULLIF ( - 46, ( NULLIF ( + NULLIF ( 4, - 58 + - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) ), + 71 ) ) + + ( + CAST( NULL AS DECIMAL ) ) ) + - 12 * + 36 THEN + 86 END * NULLIF ( COUNT( + 69 ), COUNT( * ) ) ), 25, - 42 ) + CAST( 37 AS SIGNED ) ) - COALESCE ( - 26 + + 50, MAX( + 87 ) + + 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-1124
SELECT - - 42 / - 44 - - + COALESCE ( + SUM ( + ( 23 ) ), COALESCE ( + NULLIF ( - - 78, + + 22 * - 6 + + - CASE + 98 WHEN - 62 THEN NULL WHEN + COUNT ( * ) / - COUNT ( * ) + NULLIF ( - 46, ( NULLIF ( + NULLIF ( 4, - 58 + - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) ), + 71 ) ) + + ( + CAST ( NULL AS REAL ) ) ) + - 12 * + 36 THEN + 86 END * NULLIF ( COUNT ( + 69 ), COUNT ( * ) ) ), 25, - 42 ) + CAST ( 37 AS INTEGER ) ) - COALESCE ( - 26 + + 50, MAX ( + 87 ) + + 18 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1125
SELECT ALL + 36 DIV + 1 + + + NULLIF ( + COUNT( * ), + 78 )
----
37

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL + 36 / + 1 + + + NULLIF ( + COUNT ( * ), + 78 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT DISTINCT 8 * SUM( 65 ) AS col0
----
520

skipif mysql # not compatible
query I rowsort label-1126
SELECT DISTINCT 8 * SUM ( 65 ) AS col0
----
520

query I rowsort
SELECT ALL COALESCE ( ( - 25 ), + 35 ) AS col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1128
SELECT ALL + + 15 * + 50 + 82 AS col1, - CAST( NULL AS SIGNED )
----
832
NULL

skipif mysql # not compatible
query II rowsort label-1128
SELECT ALL + + 15 * + 50 + 82 AS col1, - CAST ( NULL AS INTEGER )
----
832
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT + 96 DIV - 3
----
-32

skipif mysql # not compatible
query I rowsort label-1129
SELECT + 96 / - 3
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT - ( - + 17 ) + - 14 + + + MIN( + 13 )
----
16

skipif mysql # not compatible
query I rowsort label-1130
SELECT - ( - + 17 ) + - 14 + + + MIN ( + 13 )
----
16

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

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

query I rowsort
SELECT - 79 * 58 * + 47 * + - 39
----
8398806

query I rowsort
SELECT - 23 - + 43 AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1134
SELECT - ( COUNT( * ) ) DIV - 43 * + + 45, + CAST( NULL AS SIGNED ) col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1134
SELECT - ( COUNT ( * ) ) / - 43 * + + 45, + CAST ( NULL AS INTEGER ) col2
----
0
NULL

query I rowsort
SELECT - 12 - + 94
----
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT MAX( ALL + - 38 ) col0
----
-38

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT MAX ( ALL + - 38 ) col0
----
-38

query I rowsort
SELECT ALL - 48 + + 23 * + 70 * - - 29 * 66 AS col1
----
3081492

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT - COUNT( * ) + - 47 AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - COUNT ( * ) + - 47 AS col2
----
-48

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

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

query I rowsort
SELECT - 0 * - 51
----
0

query I rowsort
SELECT ALL - 12 + + 13 AS col2
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT - MAX( DISTINCT - 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-1144
SELECT - MAX ( DISTINCT - 6 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1145
SELECT DISTINCT CAST( - 70 AS SIGNED )
----
-70

skipif mysql # not compatible
query I rowsort label-1145
SELECT DISTINCT CAST ( - 70 AS INTEGER )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL - MAX( DISTINCT 14 ) * 68 AS col2
----
-952

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL - MAX ( DISTINCT 14 ) * 68 AS col2
----
-952

query I rowsort
SELECT - 64 * 81 AS col0
----
-5184

query I rowsort
SELECT + 70 * 70 AS col2
----
4900

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1150
SELECT DISTINCT + 65 DIV 12 - 79 + + + 28 * 28 * - 56
----
-43978

skipif mysql # not compatible
query I rowsort label-1150
SELECT DISTINCT + 65 / 12 - 79 + + + 28 * 28 * - 56
----
-43978

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

query I rowsort
SELECT - 34 * 50
----
-1700

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1154
SELECT - - 55 DIV - - 97 + - COALESCE ( + 90, + + 46 + + 47 + + CASE + 21 WHEN + 93 THEN NULL WHEN + 56 THEN + - 0 * - + 84 * - 35 END * - 1, + 18 ) + COUNT( * )
----
-89

skipif mysql # not compatible
query I rowsort label-1154
SELECT - - 55 / - - 97 + - COALESCE ( + 90, + + 46 + + 47 + + CASE + 21 WHEN + 93 THEN NULL WHEN + 56 THEN + - 0 * - + 84 * - 35 END * - 1, + 18 ) + COUNT ( * )
----
-89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1155
SELECT ALL + + 42 DIV - - 28 - - + NULLIF ( 82, + CAST( - + 17 AS SIGNED ) ) * ( 32 ) AS col0
----
2625

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + + 42 / - - 28 - - + NULLIF ( 82, + CAST ( - + 17 AS INTEGER ) ) * ( 32 ) AS col0
----
2625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1156
SELECT - + 29 + 84 * + CASE + + 67 WHEN - 17 * - + CAST( 11 AS SIGNED ) + + - 41 THEN NULL WHEN - - 2 THEN - + COUNT( DISTINCT - 54 ) / 1 ELSE NULL END AS col0, - 0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1156
SELECT - + 29 + 84 * + CASE + + 67 WHEN - 17 * - + CAST ( 11 AS INTEGER ) + + - 41 THEN NULL WHEN - - 2 THEN - + COUNT ( DISTINCT - 54 ) / 1 ELSE NULL END AS col0, - 0
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1157
SELECT - 64 * 92 + - ( - 69 ) + + 52 * - CAST( NULL AS SIGNED ) * - 57 * - 63
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT - 64 * 92 + - ( - 69 ) + + 52 * - CAST ( NULL AS INTEGER ) * - 57 * - 63
----
NULL

query I rowsort
SELECT DISTINCT + + 3
----
3

query I rowsort
SELECT - 78 + - 57 AS col0
----
-135

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT + + 32 / - 1
----
-32

query I rowsort
SELECT DISTINCT + + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1162
SELECT ALL + - ( CASE 99 WHEN 26 THEN - 89 / + 28 + + 28 WHEN 69 THEN NULL ELSE + 56 END ) * CASE - 67 WHEN + 13 + + 37 * + 74 * - - CAST( - COUNT( * ) AS SIGNED ) THEN NULL WHEN 99 THEN + 12 * - MIN( DISTINCT + 65 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL + - ( CASE 99 WHEN 26 THEN - 89 / + 28 + + 28 WHEN 69 THEN NULL ELSE + 56 END ) * CASE - 67 WHEN + 13 + + 37 * + 74 * - - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL WHEN 99 THEN + 12 * - MIN ( DISTINCT + 65 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT DISTINCT COUNT( * ) * + - 72 * - + 26 + + + 15 + + - 19 AS col1
----
1868

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT COUNT ( * ) * + - 72 * - + 26 + + + 15 + + - 19 AS col1
----
1868

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1165
SELECT ALL 97 * + - 30, + SUM( - - 25 ) + + - 87 * + 10 AS col1
----
-2910
-845

skipif mysql # not compatible
query II rowsort label-1165
SELECT ALL 97 * + - 30, + SUM ( - - 25 ) + + - 87 * + 10 AS col1
----
-2910
-845

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

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

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

skipif mysql # not compatible
query I rowsort label-1167
SELECT + 41 + - CAST ( NULL AS REAL ) AS col2
----
NULL

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

query I rowsort
SELECT - + 5 AS col1
----
-5

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

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

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

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

query I rowsort
SELECT ALL 37 + + + ( - 43 ) AS col2
----
-6

query I rowsort
SELECT 97 + - 1 AS col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT - NULLIF ( - CASE - 52 WHEN 71 + + 68 + - 2 THEN + + SUM( 95 ) ELSE NULL END, - - 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT - NULLIF ( - CASE - 52 WHEN 71 + + 68 + - 2 THEN + + SUM ( 95 ) ELSE NULL END, - - 50 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT - COUNT( * ) + CASE 57 WHEN - + 41 THEN + 61 WHEN + - 86 THEN NULL ELSE + 26 END AS col2
----
25

skipif mysql # not compatible
query I rowsort label-1175
SELECT - COUNT ( * ) + CASE 57 WHEN - + 41 THEN + 61 WHEN + - 86 THEN NULL ELSE + 26 END AS col2
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1176
SELECT ALL + 89 * + - 13 * 67 AS col0, - COALESCE ( 76, 50 DIV - - SUM( ALL - 54 ) + - 28 + 59 - + 79 * - 99 )
----
-77519
-76

skipif mysql # not compatible
query II rowsort label-1176
SELECT ALL + 89 * + - 13 * 67 AS col0, - COALESCE ( 76, 50 / - - SUM ( ALL - 54 ) + - 28 + 59 - + 79 * - 99 )
----
-77519
-76

query I rowsort
SELECT DISTINCT 30 + 57 AS col2
----
87

query II rowsort
SELECT 20 + - 7 * 29 AS col0, 78 AS col2
----
-183
78

query II rowsort
SELECT - 36 col0, + 20 AS col1
----
-36
20

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

skipif mysql # not compatible
query I rowsort label-1180
SELECT CAST ( NULL AS INTEGER ) * 70 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT 43 - - 47 * 29 + + - 0 + + SUM( 79 ) + 13 AS col2
----
1498

skipif mysql # not compatible
query I rowsort label-1181
SELECT 43 - - 47 * 29 + + - 0 + + SUM ( 79 ) + 13 AS col2
----
1498

onlyif mysql # DIV for integer division: 
query I rowsort label-1182
SELECT ALL - 27 DIV + - 16 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - 27 / + - 16 AS col2
----
1

query I rowsort
SELECT DISTINCT - 9 * - 63
----
567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1184
SELECT - 27 DIV + CAST( - - 62 AS SIGNED ) + + - 37 DIV SUM( + 38 )
----
0

skipif mysql # not compatible
query I rowsort label-1184
SELECT - 27 / + CAST ( - - 62 AS INTEGER ) + + - 37 / SUM ( + 38 )
----
0

query II rowsort
SELECT 52 + + + 12 * + 31, 69 * - 37 AS col0
----
424
-2553

query I rowsort
SELECT 61 + + COALESCE ( - 70, + - 6, 17 ) * - 66
----
4681

query I rowsort
SELECT + + 71 AS col0
----
71

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

query I rowsort
SELECT - 84 * - + 31
----
2604

query I rowsort
SELECT ALL - 11 + 43 AS col0
----
32

query I rowsort
SELECT + + 40
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + COUNT( + 13 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1192
SELECT + COUNT ( + 13 ) AS col2
----
1

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

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

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

query I rowsort
SELECT ALL + 96 + 28 AS col2
----
124

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT - 26 DIV + - 55 DIV COALESCE ( - + 20, - - 2 + + 62 DIV + COUNT( * ) * ( CASE - - 85 WHEN - 67 THEN + 47 * - - MIN( + 15 ) * CASE 26 WHEN - + 2 + 7 THEN - - 96 WHEN + + 26 THEN NULL END + + COALESCE ( - NULLIF ( 94, 0 ), - ( - 85 ) ) WHEN CASE + 42 WHEN ( 34 ) + + 74 THEN NULL WHEN 75 DIV + 89 + - 28 THEN 82 ELSE NULL END THEN + 96 ELSE NULL END ) + 80, COUNT( * ) ) * - 26 col2
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - 26 / + - 55 / COALESCE ( - + 20, - - 2 + + 62 / + COUNT ( * ) * ( CASE - - 85 WHEN - 67 THEN + 47 * - - MIN ( + 15 ) * CASE 26 WHEN - + 2 + 7 THEN - - 96 WHEN + + 26 THEN NULL END + + COALESCE ( - NULLIF ( 94, 0 ), - ( - 85 ) ) WHEN CASE + 42 WHEN ( 34 ) + + 74 THEN NULL WHEN 75 / + 89 + - 28 THEN 82 ELSE NULL END THEN + 96 ELSE NULL END ) + 80, COUNT ( * ) ) * - 26 col2
----
0

query I rowsort
SELECT DISTINCT + 68 + + + 44 + + 27
----
139

query I rowsort
SELECT DISTINCT + 46 * - + 94
----
-4324

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT DISTINCT - 77 * - ( 35 ) * + - COUNT( * )
----
-2695

skipif mysql # not compatible
query I rowsort label-1200
SELECT DISTINCT - 77 * - ( 35 ) * + - COUNT ( * )
----
-2695

query II rowsort
SELECT ALL 70 AS col1, + 86 AS col0
----
70
86

query II rowsort
SELECT - 23, + 7 AS col0
----
-23
7

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

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

query I rowsort
SELECT ( 61 ) + + + 80 AS col1
----
141

query II rowsort
SELECT ALL 81 col2, 72 AS col2
----
81
72

query II rowsort
SELECT - 34, 67 * - + 59 * + 52 AS col1
----
-34
-205556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT 46 * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT 46 * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT DISTINCT 41, + 17 AS col1
----
41
17

query II rowsort
SELECT ALL 92 AS col0, ( - 6 )
----
92
-6

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

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

query I rowsort
SELECT ALL 55 col1
----
55

query II rowsort
SELECT - 56, 70 * - 38 AS col1
----
-56
-2660

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1213
SELECT - 57 AS col1, COALESCE ( - 48, + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ) + + - ( 48 ) * 88
----
-57
-4272

skipif mysql # not compatible
query II rowsort label-1213
SELECT - 57 AS col1, COALESCE ( - 48, + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) + + - ( 48 ) * 88
----
-57
-4272

query I rowsort
SELECT 26 * + + 5
----
130

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

skipif mysql # not compatible
query I rowsort label-1215
SELECT 61 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 69 * + 40 col1
----
2760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1217
SELECT 32 - - - CAST( + 67 AS SIGNED ) + 92 - + - 81 * + 31 * + 11
----
27678

skipif mysql # not compatible
query I rowsort label-1217
SELECT 32 - - - CAST ( + 67 AS INTEGER ) + 92 - + - 81 * + 31 * + 11
----
27678

query II rowsort
SELECT 16 AS col2, - 89
----
16
-89

query II rowsort
SELECT DISTINCT - - 85 AS col1, + 52
----
85
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT DISTINCT + COUNT( * ) * COUNT( DISTINCT - 17 ) + 87 AS col2
----
88

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

query I rowsort
SELECT ALL - 96 * + + 43 + 92 * 37
----
-724

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1223
SELECT - 73 * - COUNT( * ), 98 + 60 col0
----
73
158

skipif mysql # not compatible
query II rowsort label-1223
SELECT - 73 * - COUNT ( * ), 98 + 60 col0
----
73
158

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT 78 DIV + + 21 col0
----
3

skipif mysql # not compatible
query I rowsort label-1224
SELECT 78 / + + 21 col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT COUNT( * ) - + 53 * + ( + + 71 ) - - 20 col1
----
-3742

skipif mysql # not compatible
query I rowsort label-1225
SELECT COUNT ( * ) - + 53 * + ( + + 71 ) - - 20 col1
----
-3742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT + COUNT( * ) DIV 2 + 87 + 71
----
158

skipif mysql # not compatible
query I rowsort label-1226
SELECT + COUNT ( * ) / 2 + 87 + 71
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT + 9 * - SUM( - 78 ) AS col1
----
702

skipif mysql # not compatible
query I rowsort label-1227
SELECT + 9 * - SUM ( - 78 ) AS col1
----
702

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT + COALESCE ( COUNT( * ), 18 + 91 )
----
1

skipif mysql # not compatible
query I rowsort label-1228
SELECT + COALESCE ( COUNT ( * ), 18 + 91 )
----
1

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

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

query II rowsort
SELECT + 70 AS col2, - 36
----
70
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT ALL 16 * - ( + COUNT( * ) ) + 83 + + MAX( ALL - 45 ) - + CASE COUNT( * ) WHEN + ( + 27 ) * - COUNT( * ) THEN NULL WHEN + + 97 / + COUNT( * ) + 24 * + + 3 THEN NULL ELSE + + COUNT( * ) END + + 78 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-1231
SELECT ALL 16 * - ( + COUNT ( * ) ) + 83 + + MAX ( ALL - 45 ) - + CASE COUNT ( * ) WHEN + ( + 27 ) * - COUNT ( * ) THEN NULL WHEN + + 97 / + COUNT ( * ) + 24 * + + 3 THEN NULL ELSE + + COUNT ( * ) END + + 78 AS col1
----
99

query II rowsort
SELECT - 3 + 44, 2 AS col2
----
41
2

query I rowsort
SELECT DISTINCT + ( - + 56 ) AS col2
----
-56

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

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

query I rowsort
SELECT - - 78 + + 76 AS col1
----
154

query II rowsort
SELECT ALL + 47 AS col2, 19 * + + 55 AS col2
----
47
1045

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1237
SELECT ALL COALESCE ( - NULLIF ( - 34, - COALESCE ( + 83, 8, + 69 ) ), - + 75 + COUNT( ALL - 73 ) ) AS col0, - 90 + CAST( COUNT( * ) AS SIGNED ) + - 53 AS col2
----
34
-142

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL COALESCE ( - NULLIF ( - 34, - COALESCE ( + 83, 8, + 69 ) ), - + 75 + COUNT ( ALL - 73 ) ) AS col0, - 90 + CAST ( COUNT ( * ) AS INTEGER ) + - 53 AS col2
----
34
-142

query I rowsort
SELECT ALL + 99 - + 70
----
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1239
SELECT DISTINCT - 44 DIV - 98 AS col2, - ( - 44 ) * + 15 + - - CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1239
SELECT DISTINCT - 44 / - 98 AS col2, - ( - 44 ) * + 15 + - - CAST ( NULL AS INTEGER )
----
0
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1240
SELECT - COUNT( * ) * - 18 + 20 AS col1, 83 + - 40
----
38
43

skipif mysql # not compatible
query II rowsort label-1240
SELECT - COUNT ( * ) * - 18 + 20 AS col1, 83 + - 40
----
38
43

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1242
SELECT ALL - 54 DIV COUNT( * ), - CASE + 62 WHEN 32 + + 88 THEN + 74 * + - 16 + - MAX( ALL + + 96 ) END AS col0
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-1242
SELECT ALL - 54 / COUNT ( * ), - CASE + 62 WHEN 32 + + 88 THEN + 74 * + - 16 + - MAX ( ALL + + 96 ) END AS col0
----
-54
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT - MAX( - 84 ) AS col2, - 65
----
84
-65

skipif mysql # not compatible
query II rowsort label-1243
SELECT - MAX ( - 84 ) AS col2, - 65
----
84
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1244
SELECT + 11 - + + 21 * + MAX( DISTINCT 1 ) DIV 74 * 47
----
11

skipif mysql # not compatible
query I rowsort label-1244
SELECT + 11 - + + 21 * + MAX ( DISTINCT 1 ) / 74 * 47
----
11

query I rowsort
SELECT ALL + ( - ( - - 54 ) ) * 65 + - 24 AS col1
----
-3534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT - 81 + - 3 - + - 75 DIV - - COUNT( * )
----
-9

skipif mysql # not compatible
query I rowsort label-1246
SELECT - 81 + - 3 - + - 75 / - - COUNT ( * )
----
-9

query I rowsort
SELECT ALL 93 * - 14 AS col1
----
-1302

query I rowsort
SELECT + 39 * - - 25
----
975

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1249
SELECT + 51 + 85, 98 * + ( COUNT( * ) ) + CAST( ( - + 81 ) AS SIGNED ) AS col2
----
136
17

skipif mysql # not compatible
query II rowsort label-1249
SELECT + 51 + 85, 98 * + ( COUNT ( * ) ) + CAST ( ( - + 81 ) AS INTEGER ) AS col2
----
136
17

query I rowsort
SELECT + 57 - NULLIF ( + 75, 74 + - 18 )
----
-18

query I rowsort
SELECT ALL 21 + - ( - - 58 ) + + 59 + - - ( + 38 ) * - 4 AS col0
----
-130

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1254
SELECT + 57 + + 49 * + - CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1255
SELECT ALL + CAST( - COALESCE ( 43, 82 ) AS SIGNED ) + ( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL + CAST ( - COALESCE ( 43, 82 ) AS INTEGER ) + ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1256
SELECT + + 59 + + CAST( 66 AS SIGNED )
----
125

skipif mysql # not compatible
query I rowsort label-1256
SELECT + + 59 + + CAST ( 66 AS INTEGER )
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-1257
SELECT ALL + SUM( 87 ) + + 78
----
165

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL + SUM ( 87 ) + + 78
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1258
SELECT + + COALESCE ( SUM( - 43 ), - 84 ) DIV + 7 + 50
----
44

skipif mysql # not compatible
query I rowsort label-1258
SELECT + + COALESCE ( SUM ( - 43 ), - 84 ) / + 7 + 50
----
44

query I rowsort
SELECT + + 9 + - + COALESCE ( ( + 34 ), + 65 ) AS col0
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1260
SELECT ALL + 48 DIV + MIN( ALL + 25 ) + + COUNT( - 15 ) + - - 4 AS col2
----
6

skipif mysql # not compatible
query I rowsort label-1260
SELECT ALL + 48 / + MIN ( ALL + 25 ) + + COUNT ( - 15 ) + - - 4 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT + - 98 * - - 34 + + COUNT( 33 ) * + 97 * + - COUNT( * )
----
-3429

skipif mysql # not compatible
query I rowsort label-1261
SELECT + - 98 * - - 34 + + COUNT ( 33 ) * + 97 * + - COUNT ( * )
----
-3429

query I rowsort
SELECT DISTINCT - 70 * + 59
----
-4130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1263
SELECT + 60 DIV ( - - COUNT( * ) ) + - + 41 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-1263
SELECT + 60 / ( - - COUNT ( * ) ) + - + 41 AS col2
----
19

query I rowsort
SELECT ALL + - 99
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-1265
SELECT DISTINCT - COUNT( * ) * + CASE + MAX( DISTINCT + 77 ) WHEN + + 12 + + + 96 THEN NULL ELSE - 14 + + 50 END AS col1, - COALESCE ( - COUNT( * ), - 93 * - - 41 + - - 13 + + 24 - 13, - - ( - 2 ) ) * 33
----
-36
33

skipif mysql # not compatible
query II rowsort label-1265
SELECT DISTINCT - COUNT ( * ) * + CASE + MAX ( DISTINCT + 77 ) WHEN + + 12 + + + 96 THEN NULL ELSE - 14 + + 50 END AS col1, - COALESCE ( - COUNT ( * ), - 93 * - - 41 + - - 13 + + 24 - 13, - - ( - 2 ) ) * 33
----
-36
33

query I rowsort
SELECT DISTINCT + - 48
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + - COUNT( DISTINCT + 0 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1267
SELECT + - COUNT ( DISTINCT + 0 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1268
SELECT ALL - ( - 67 ) * 59 * 80 - - CAST( - 2 AS SIGNED )
----
316238

skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL - ( - 67 ) * 59 * 80 - - CAST ( - 2 AS INTEGER )
----
316238

query I rowsort
SELECT - - 82 * + 23
----
1886

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT ALL + - 14 * - COUNT( * ) - - COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-1273
SELECT ALL + - 14 * - COUNT ( * ) - - COUNT ( * ) AS col0
----
15

query I rowsort
SELECT + 47 * - 19 * + 45 AS col2
----
-40185

query I rowsort
SELECT - 53 * - + ( - 1 ) AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1276
SELECT ALL - CASE - CAST( 97 AS SIGNED ) WHEN + 96 THEN - + ( 89 ) ELSE NULL END * + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL - CASE - CAST ( 97 AS INTEGER ) WHEN + 96 THEN - + ( 89 ) ELSE NULL END * + + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1
----
NULL

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

query I rowsort
SELECT NULLIF ( 24, - 34 / 28 + 22 * 36 )
----
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT ALL 6 * - + 5 DIV + COUNT( ALL - 50 ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL 6 * - + 5 / + COUNT ( ALL - 50 ) AS col1
----
-30

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1281
SELECT DISTINCT CAST( NULL AS SIGNED ), 51 + - 46 AS col1
----
NULL
5

skipif mysql # not compatible
query II rowsort label-1281
SELECT DISTINCT CAST ( NULL AS INTEGER ), 51 + - 46 AS col1
----
NULL
5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1283
SELECT COUNT( * ) AS col0, - CASE - 23 WHEN - 79 + 97 THEN 25 ELSE - 27 END * + + 59 DIV + 59
----
1
27

skipif mysql # not compatible
query II rowsort label-1283
SELECT COUNT ( * ) AS col0, - CASE - 23 WHEN - 79 + 97 THEN 25 ELSE - 27 END * + + 59 / + 59
----
1
27

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

skipif mysql # not compatible
query II rowsort label-1284
SELECT - COUNT ( * ), + 31 AS col0
----
-1
31

query I rowsort
SELECT - 81 * - 58
----
4698

query I rowsort
SELECT - 87 + + 32 AS col0
----
-55

query II rowsort
SELECT DISTINCT ( - ( 80 ) ) AS col2, - 30
----
-80
-30

query I rowsort
SELECT ALL + 96 + 38 AS col0
----
134

query I rowsort
SELECT - 51 * + 68 AS col1
----
-3468

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

skipif mysql # not compatible
query I rowsort label-1290
SELECT ALL + CAST ( NULL AS INTEGER ) + - 64
----
NULL

query I rowsort
SELECT DISTINCT + 82 * - - 8 + - 98 + - NULLIF ( - 36, + 76 ) * 12
----
990

query I rowsort
SELECT DISTINCT + + 66 + 43
----
109

query I rowsort
SELECT ALL + 33 + + CASE + 55 WHEN + 13 + 88 THEN + - ( + - 1 ) WHEN 43 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL + 74 * + + CASE 23 WHEN + CASE 60 WHEN - + 7 / COUNT( * ) - + 47 THEN NULL WHEN + 76 THEN NULL WHEN + 14 + - - 33 + - + COUNT( * ) THEN + + 98 WHEN + - 55 THEN NULL ELSE 58 END THEN - 78 + - 84 * 10 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL + 74 * + + CASE 23 WHEN + CASE 60 WHEN - + 7 / COUNT ( * ) - + 47 THEN NULL WHEN + 76 THEN NULL WHEN + 14 + - - 33 + - + COUNT ( * ) THEN + + 98 WHEN + - 55 THEN NULL ELSE 58 END THEN - 78 + - 84 * 10 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT - 31 - MAX( + 28 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1295
SELECT - 31 - MAX ( + 28 ) AS col2
----
-59

query II rowsort
SELECT ALL 37, 98 + 90 AS col2
----
37
188

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT + COUNT( * ) - - 19 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-1297
SELECT + COUNT ( * ) - - 19 AS col1
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1298
SELECT ALL + - 24 - - 63 * 44 * + COALESCE ( + 77, - COUNT( * ) * + CAST( - 42 AS SIGNED ) * 51 * + - NULLIF ( 94, - + 79 * - 6 * 26 * - 82 ) + + 42 ) * - + 21 + + - 76 + + 55 - 17 DIV 84 - - 7 + - 40 * + COUNT( * ) AS col1
----
-4482402

skipif mysql # not compatible
query I rowsort label-1298
SELECT ALL + - 24 - - 63 * 44 * + COALESCE ( + 77, - COUNT ( * ) * + CAST ( - 42 AS INTEGER ) * 51 * + - NULLIF ( 94, - + 79 * - 6 * 26 * - 82 ) + + 42 ) * - + 21 + + - 76 + + 55 - 17 / 84 - - 7 + - 40 * + COUNT ( * ) AS col1
----
-4482402

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

query II rowsort
SELECT ALL - 97 - + ( 97 ), 11 * 92 col1
----
-194
1012

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

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

query I rowsort
SELECT ALL + 17 - + + 89 * + 96
----
-8527

query I rowsort
SELECT 0 col0
----
0

query I rowsort
SELECT DISTINCT - 69 col0
----
-69

query I rowsort
SELECT 28 * - 37 AS col1
----
-1036

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT - COUNT( * ) + - 28 * - - 55 AS col1, - 15
----
-1541
-15

skipif mysql # not compatible
query II rowsort label-1306
SELECT - COUNT ( * ) + - 28 * - - 55 AS col1, - 15
----
-1541
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT ALL MIN( 27 ) - + + 66 * - + 57
----
3789

skipif mysql # not compatible
query I rowsort label-1307
SELECT ALL MIN ( 27 ) - + + 66 * - + 57
----
3789

query I rowsort
SELECT + + 74
----
74

query I rowsort
SELECT 89 + + - 15 * 18 + + 71
----
-110

onlyif mysql # aggregate syntax: 
query II rowsort label-1310
SELECT - 60 + - COUNT( * ) * + 91 + - 95 * - MAX( - + 68 ) * 49 + - - 86 col0, 2
----
-316605
2

skipif mysql # not compatible
query II rowsort label-1310
SELECT - 60 + - COUNT ( * ) * + 91 + - 95 * - MAX ( - + 68 ) * 49 + - - 86 col0, 2
----
-316605
2

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT DISTINCT 65 * - + 60 * - - COALESCE ( 37, - - 72 * 20 + - - MIN( ALL + - 90 ) + + 64 + + 4 ) * - 74 + + ( + MIN( DISTINCT 72 ) ) - + - 92 AS col2, + 16
----
10678364
16

skipif mysql # not compatible
query II rowsort label-1314
SELECT DISTINCT 65 * - + 60 * - - COALESCE ( 37, - - 72 * 20 + - - MIN ( ALL + - 90 ) + + 64 + + 4 ) * - 74 + + ( + MIN ( DISTINCT 72 ) ) - + - 92 AS col2, + 16
----
10678364
16

onlyif mysql # DIV for integer division: 
query II rowsort label-1315
SELECT DISTINCT + 81 DIV - 25, + 91 * - 68 AS col0
----
-3
-6188

skipif mysql # not compatible
query II rowsort label-1315
SELECT DISTINCT + 81 / - 25, + 91 * - 68 AS col0
----
-3
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT ( + - 74 ) + - 53 * - + CAST( NULL AS SIGNED ) + - 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1316
SELECT DISTINCT ( + - 74 ) + - 53 * - + CAST ( NULL AS INTEGER ) + - 29 AS col2
----
NULL

query I rowsort
SELECT 45 + + 45
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT ( - 61 ) DIV + 11 + + COALESCE ( - 73, - 31 )
----
-78

skipif mysql # not compatible
query I rowsort label-1318
SELECT ( - 61 ) / + 11 + + COALESCE ( - 73, - 31 )
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT 52 DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT 52 / - 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT DISTINCT - 18 * - - MIN( - COALESCE ( + 52, - - 77 ) )
----
936

skipif mysql # not compatible
query I rowsort label-1320
SELECT DISTINCT - 18 * - - MIN ( - COALESCE ( + 52, - - 77 ) )
----
936

query I rowsort
SELECT ALL + 64 + + 32 AS col1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1322
SELECT DISTINCT 57 + + - 85 DIV - 45 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT 57 + + - 85 / - 45 AS col0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1323
SELECT 51 * + 51 / + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1323
SELECT 51 * + 51 / + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1324
SELECT DISTINCT + 92 + + + 67 + 41 DIV - - 65 col2
----
159

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + 92 + + + 67 + 41 / - - 65 col2
----
159

query I rowsort
SELECT ALL 10 + + 47
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1326
SELECT ALL + 74 + - + ( - - 40 ) DIV 62 * COUNT( * ) AS col1
----
74

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

query I rowsort
SELECT ALL + 1 * - 52 AS col0
----
-52

query II rowsort
SELECT DISTINCT + 36 + + 13, 91 * - 79 AS col2
----
49
-7189

query I rowsort
SELECT - - 17 col1
----
17

query I rowsort
SELECT ALL - - 76 + + 8
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1331
SELECT + 28 + + + COUNT( ALL 84 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1331
SELECT + 28 + + + COUNT ( ALL 84 ) AS col2
----
29

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1333
SELECT CASE CAST( NULL AS SIGNED ) WHEN + COUNT( 10 ) THEN NULL WHEN - - 95 * - NULLIF ( - 47, - 64 * COUNT( * ) + - 11 ) * COUNT( * ) * 4 + 11 + + COUNT( * ) THEN - 30 WHEN - ( + CAST( - COUNT( * ) AS DECIMAL ) ) * + 19 THEN + 82 ELSE + 96 END + + + CAST( + 21 AS SIGNED )
----
117

skipif mysql # not compatible
query I rowsort label-1333
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + COUNT ( 10 ) THEN NULL WHEN - - 95 * - NULLIF ( - 47, - 64 * COUNT ( * ) + - 11 ) * COUNT ( * ) * 4 + 11 + + COUNT ( * ) THEN - 30 WHEN - ( + CAST ( - COUNT ( * ) AS REAL ) ) * + 19 THEN + 82 ELSE + 96 END + + + CAST ( + 21 AS INTEGER )
----
117

query I rowsort
SELECT ALL + + 89 - 16 * - 88 + - 40 - + + 56 + + + NULLIF ( 54, CASE + 70 WHEN - 25 THEN - 30 * - ( + 53 ) WHEN - 36 THEN NULL ELSE + 73 * + + 58 END ) * + - 56
----
-1623

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1335
SELECT DISTINCT + + 72 DIV COUNT( * ) + + 90
----
162

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + + 72 / COUNT ( * ) + + 90
----
162

query I rowsort
SELECT 63 + + + 74 col2
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT + CASE + + 68 WHEN 30 THEN 43 * - 58 - + ( - 24 ) WHEN - 26 THEN - ( + 79 ) END * 92 + + CASE - 7 WHEN ( + + 18 ) THEN NULL WHEN + COUNT( * ) * + + 1 * + + 72 THEN 94 ELSE + ( + - AVG ( DISTINCT + 94 ) ) END * 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1337
SELECT + CASE + + 68 WHEN 30 THEN 43 * - 58 - + ( - 24 ) WHEN - 26 THEN - ( + 79 ) END * 92 + + CASE - 7 WHEN ( + + 18 ) THEN NULL WHEN + COUNT ( * ) * + + 1 * + + 72 THEN 94 ELSE + ( + - AVG ( DISTINCT + 94 ) ) END * 56
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1339
SELECT ALL + + AVG ( DISTINCT + CAST( NULL AS DECIMAL ) ) * SUM( ALL + 31 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL + + AVG ( DISTINCT + CAST ( NULL AS REAL ) ) * SUM ( ALL + 31 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1340
SELECT ALL + + NULLIF ( + 5, + 16 + - - ( + NULLIF ( - CAST( NULL AS SIGNED ), + 59 * + 21 + - 19 ) ) + - - 41 + + AVG ( + + 82 ) ) * - NULLIF ( + 16, + - 32 ), COUNT( * ) AS col0
----
-80
1

skipif mysql # not compatible
query II rowsort label-1340
SELECT ALL + + NULLIF ( + 5, + 16 + - - ( + NULLIF ( - CAST ( NULL AS INTEGER ), + 59 * + 21 + - 19 ) ) + - - 41 + + AVG ( + + 82 ) ) * - NULLIF ( + 16, + - 32 ), COUNT ( * ) AS col0
----
-80
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT COUNT( * ) * - SUM( - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT COUNT ( * ) * - SUM ( - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT + COALESCE ( - 66, + - CAST( NULL AS SIGNED ) ) AS col1
----
-66

skipif mysql # not compatible
query I rowsort label-1342
SELECT + COALESCE ( - 66, + - CAST ( NULL AS INTEGER ) ) AS col1
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1344
SELECT ALL - COUNT( - - 19 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL - COUNT ( - - 19 ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - - 93 AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1346
SELECT DISTINCT - CASE - 69 WHEN + 84 THEN NULLIF ( - 17, - 67 ) ELSE - + NULLIF ( ( - - MAX( + - ( + + 89 ) ) ), + - 23 ) DIV - 20 END AS col2
----
4

skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - CASE - 69 WHEN + 84 THEN NULLIF ( - 17, - 67 ) ELSE - + NULLIF ( ( - - MAX ( + - ( + + 89 ) ) ), + - 23 ) / - 20 END AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT MAX( - - 76 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1347
SELECT MAX ( - - 76 ) AS col1
----
76

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT DISTINCT ( - + COALESCE ( MIN( DISTINCT 73 ), - 45, 27 ) ) + + - 43 * - 34 AS col0, + CASE + 12 WHEN - + 37 THEN NULL WHEN 79 / + COUNT( * ) THEN NULL ELSE + MAX( + + 41 ) + - 89 END
----
1389
-48

skipif mysql # not compatible
query II rowsort label-1350
SELECT DISTINCT ( - + COALESCE ( MIN ( DISTINCT 73 ), - 45, 27 ) ) + + - 43 * - 34 AS col0, + CASE + 12 WHEN - + 37 THEN NULL WHEN 79 / + COUNT ( * ) THEN NULL ELSE + MAX ( + + 41 ) + - 89 END
----
1389
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1351
SELECT ALL CAST( + 42 AS SIGNED ) + COUNT( DISTINCT 59 )
----
43

skipif mysql # not compatible
query I rowsort label-1351
SELECT ALL CAST ( + 42 AS INTEGER ) + COUNT ( DISTINCT 59 )
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1352
SELECT ALL CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) + - 76 * + 95 * ( - - 73 ) * - + 80 + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1352
SELECT ALL CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 76 * + 95 * ( - - 73 ) * - + 80 + + 26
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT 96 * COUNT( * ) + + + 37 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-1353
SELECT 96 * COUNT ( * ) + + + 37 AS col0
----
133

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1355
SELECT DISTINCT - 84 AS col1, + 28 DIV - - 78 * 9 * SUM( DISTINCT - + 94 )
----
-84
0

skipif mysql # not compatible
query II rowsort label-1355
SELECT DISTINCT - 84 AS col1, + 28 / - - 78 * 9 * SUM ( DISTINCT - + 94 )
----
-84
0

query I rowsort
SELECT DISTINCT 40 + - 98 AS col1
----
-58

query I rowsort
SELECT DISTINCT 51 * + 99 col0
----
5049

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

query I rowsort
SELECT ALL 69 + 58 + - 14
----
113

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1361
SELECT 77 + - 63 DIV 79 * - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1361
SELECT 77 + - 63 / 79 * - COUNT ( * )
----
77

query I rowsort
SELECT DISTINCT 4 + 24 * 11
----
268

query I rowsort
SELECT - 33 - - - 29 AS col2
----
-62

query I rowsort
SELECT + CASE - 57 WHEN + 36 THEN - + ( + - 64 ) END AS col0
----
NULL

query I rowsort
SELECT + - 52 * + 52 + + - 25
----
-2729

query I rowsort
SELECT ALL + 41 * + - 9 * 91
----
-33579

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT - MIN( DISTINCT 28 ) AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-1367
SELECT DISTINCT - MIN ( DISTINCT 28 ) AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT + + 77 + 79 / - - 6 + + CASE + 8 WHEN - COALESCE ( - - 87, COUNT( * ) ) / - + 76 + - 68 * + + 43 + + + COUNT( * ) THEN + - 33 WHEN - NULLIF ( - NULLIF ( + 14, 33 ), + 48 * - 60 * CASE - SUM( DISTINCT - - 63 ) WHEN - AVG ( ALL 48 ) * 59 THEN - 65 ELSE NULL END + 31 ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1368
SELECT + + 77 + 79 / - - 6 + + CASE + 8 WHEN - COALESCE ( - - 87, COUNT ( * ) ) / - + 76 + - 68 * + + 43 + + + COUNT ( * ) THEN + - 33 WHEN - NULLIF ( - NULLIF ( + 14, 33 ), + 48 * - 60 * CASE - SUM ( DISTINCT - - 63 ) WHEN - AVG ( ALL 48 ) * 59 THEN - 65 ELSE NULL END + 31 ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT ALL SUM( DISTINCT 84 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL SUM ( DISTINCT 84 ) AS col2
----
84

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

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

query I rowsort
SELECT - - 47 AS col2
----
47

query I rowsort
SELECT + 93 + - + 57 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1373
SELECT MIN( DISTINCT - - 29 ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-1373
SELECT MIN ( DISTINCT - - 29 ) AS col0
----
29

query I rowsort
SELECT + + 25 * + 29 col1
----
725

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1376
SELECT ALL ( MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) ), + 36 * - + 4 AS col0
----
NULL
-144

skipif mysql # not compatible
query II rowsort label-1376
SELECT ALL ( MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) ), + 36 * - + 4 AS col0
----
NULL
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1377
SELECT - + 34 - - + 0 + - + MAX( DISTINCT + 38 ) + - + 68 + - 63 * + + CAST( 92 AS SIGNED ) + + + 85 DIV CASE + 1 WHEN 53 DIV ( - COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END * - 26 DIV - - 2 AS col2
----
-4831

skipif mysql # not compatible
query I rowsort label-1377
SELECT - + 34 - - + 0 + - + MAX ( DISTINCT + 38 ) + - + 68 + - 63 * + + CAST ( 92 AS INTEGER ) + + + 85 / CASE + 1 WHEN 53 / ( - COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END * - 26 / - - 2 AS col2
----
-4831

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT - + 70 * - 33 - + - 31 * - - 99 * ( COALESCE ( 15, - + 86 * - - 98 + - 58 + - + COUNT( * ) * - ( 89 ), - 75 * 72 + - 55 ) ) + - 87
----
48258

skipif mysql # not compatible
query I rowsort label-1379
SELECT - + 70 * - 33 - + - 31 * - - 99 * ( COALESCE ( 15, - + 86 * - - 98 + - 58 + - + COUNT ( * ) * - ( 89 ), - 75 * 72 + - 55 ) ) + - 87
----
48258

query I rowsort
SELECT ALL - CASE + 98 WHEN 56 THEN 46 * - 69 END / - 42 * + 81 col2
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT - 42 - COUNT ( * ) + 83 + COUNT ( * ) * + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-1382
SELECT + COALESCE ( + 91, + COUNT( * ), + + 21, + COUNT( * ) ) AS col0, 83
----
91
83

skipif mysql # not compatible
query II rowsort label-1382
SELECT + COALESCE ( + 91, + COUNT ( * ), + + 21, + COUNT ( * ) ) AS col0, 83
----
91
83

onlyif mysql # DIV for integer division: 
query I rowsort label-1383
SELECT - 69 DIV 38 * + + 1 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1383
SELECT - 69 / 38 * + + 1 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT ALL + 29 * - ( CASE + 2 WHEN + NULLIF ( - 90, + + 33 + + - 55 ) THEN NULL ELSE + + 1 END ) + 74 + + COUNT( * ) + 75 * - COUNT( * ) + 82 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-1384
SELECT ALL + 29 * - ( CASE + 2 WHEN + NULLIF ( - 90, + + 33 + + - 55 ) THEN NULL ELSE + + 1 END ) + 74 + + COUNT ( * ) + 75 * - COUNT ( * ) + 82 AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1385
SELECT - 47 DIV - + COUNT( * ) + - + 75 + + 3 AS col2, - 85
----
-25
-85

skipif mysql # not compatible
query II rowsort label-1385
SELECT - 47 / - + COUNT ( * ) + - + 75 + + 3 AS col2, - 85
----
-25
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1386
SELECT ALL + CASE - 34 WHEN + SUM( CAST( - + CAST( + + 91 AS SIGNED ) AS SIGNED ) ) THEN + - 47 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + CASE - 34 WHEN + SUM ( CAST ( - + CAST ( + + 91 AS INTEGER ) AS INTEGER ) ) THEN + - 47 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1387
SELECT 9 * + - 92 - + 27 + 39 AS col2, 60 - + SUM( 1 ) * - 36 AS col1
----
-816
96

skipif mysql # not compatible
query II rowsort label-1387
SELECT 9 * + - 92 - + 27 + 39 AS col2, 60 - + SUM ( 1 ) * - 36 AS col1
----
-816
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1388
SELECT DISTINCT + 97 * + MIN( 99 ) + + + 22 DIV COUNT( ALL + 54 ) AS col0
----
9625

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT + 97 * + MIN ( 99 ) + + + 22 / COUNT ( ALL + 54 ) AS col0
----
9625

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT ALL 84 * 27 + + COUNT( * ) * - - 44
----
2312

skipif mysql # not compatible
query I rowsort label-1389
SELECT ALL 84 * 27 + + COUNT ( * ) * - - 44
----
2312

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT - COUNT ( * ) + + - 74 / + 9 AS col2
----
-9

query I rowsort
SELECT ALL 90 * + 97 + + 60 * 83 + - 3 AS col2
----
13707

query I rowsort
SELECT 9 * 98 * - 66 + + 59
----
-58153

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1394
SELECT + SUM( - + CASE - + 92 WHEN + 89 * CAST( NULL AS SIGNED ) + - 47 THEN + 63 ELSE 70 END )
----
-70

skipif mysql # not compatible
query I rowsort label-1394
SELECT + SUM ( - + CASE - + 92 WHEN + 89 * CAST ( NULL AS INTEGER ) + - 47 THEN + 63 ELSE 70 END )
----
-70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT - 92 + + COUNT( * ) AS col0
----
-91

skipif mysql # not compatible
query I rowsort label-1396
SELECT - 92 + + COUNT ( * ) AS col0
----
-91

query I rowsort
SELECT - 51 * 7 AS col1
----
-357

query I rowsort
SELECT + 57 + + - COALESCE ( - - 12, - - 27 ) AS col2
----
45

query I rowsort
SELECT ALL + 15 col2
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT + 6 AS col2, 92 * SUM( ALL + 31 )
----
6
2852

skipif mysql # not compatible
query II rowsort label-1400
SELECT + 6 AS col2, 92 * SUM ( ALL + 31 )
----
6
2852

query I rowsort
SELECT + 64 * + 10 + 7
----
647

onlyif mysql # aggregate syntax: 
query I rowsort label-1402
SELECT + SUM( - 77 ) col0
----
-77

skipif mysql # not compatible
query I rowsort label-1402
SELECT + SUM ( - 77 ) col0
----
-77

query I rowsort
SELECT + ( + 11 ) col0
----
11

query II rowsort
SELECT ALL 83 * - + 41 * + 52 - - 4 AS col1, 74 AS col0
----
-176952
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1405
SELECT + CAST( + 57 AS SIGNED ) * + 9
----
513

skipif mysql # not compatible
query I rowsort label-1405
SELECT + CAST ( + 57 AS INTEGER ) * + 9
----
513

query I rowsort
SELECT + 97 + - 24 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT - NULLIF ( + 50, + 13 * + ( 56 ) + COUNT( * ) ) * 78 - - 57 + - 44 col0
----
-3887

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - NULLIF ( + 50, + 13 * + ( 56 ) + COUNT ( * ) ) * 78 - - 57 + - 44 col0
----
-3887

query II rowsort
SELECT ALL 77 col0, 38 col0
----
77
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT + 24 * 1 * + COUNT( * ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-1409
SELECT + 24 * 1 * + COUNT ( * ) AS col2
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1410
SELECT DISTINCT + 28 AS col1, COALESCE ( - 33, + + ( + 6 ), COUNT( * ) )
----
28
-33

skipif mysql # not compatible
query II rowsort label-1410
SELECT DISTINCT + 28 AS col1, COALESCE ( - 33, + + ( + 6 ), COUNT ( * ) )
----
28
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + + 29 + COUNT( * ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-1411
SELECT + + 29 + COUNT ( * ) AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT + + NULLIF ( - CASE WHEN NOT 88 IS NOT NULL THEN + MAX( - 71 ) ELSE NULLIF ( - 72, COUNT( ALL - - 40 ) ) END, - - 50 * - ( + 97 ) + - + CASE - + 37 WHEN + 24 * ( - 73 ) THEN NULL ELSE + 52 END - + NULLIF ( - COUNT( * ), - 18 * + 58 * - 24 + - - 3 + 67 * 36 ) + 50 ) + + 89 * - 90 AS col2
----
-7938

skipif mysql # not compatible
query I rowsort label-1412
SELECT + + NULLIF ( - CASE WHEN NOT 88 IS NOT NULL THEN + MAX ( - 71 ) ELSE NULLIF ( - 72, COUNT ( ALL - - 40 ) ) END, - - 50 * - ( + 97 ) + - + CASE - + 37 WHEN + 24 * ( - 73 ) THEN NULL ELSE + 52 END - + NULLIF ( - COUNT ( * ), - 18 * + 58 * - 24 + - - 3 + 67 * 36 ) + 50 ) + + 89 * - 90 AS col2
----
-7938

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT + ( 68 ) + - COALESCE ( - 16, - 40, + 42 + + 32 + - - COUNT( * ) )
----
84

skipif mysql # not compatible
query I rowsort label-1413
SELECT + ( 68 ) + - COALESCE ( - 16, - 40, + 42 + + 32 + - - COUNT ( * ) )
----
84

query I rowsort
SELECT + + 80 * - + 8
----
-640

query I rowsort
SELECT ALL 43 + - 78
----
-35

query I rowsort
SELECT + 13 + - 63 AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1417
SELECT COUNT( * ), - 32 - + - CAST( + ( - 9 ) AS SIGNED ) col2
----
1
-41

skipif mysql # not compatible
query II rowsort label-1417
SELECT COUNT ( * ), - 32 - + - CAST ( + ( - 9 ) AS INTEGER ) col2
----
1
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1418
SELECT + COALESCE ( - - 85, - - COALESCE ( - 11, + + CAST( - 53 AS SIGNED ) * + COUNT( * ) DIV + 9, + 21 + + SUM( DISTINCT + 74 ), - - COALESCE ( - 48, + - 14 ) ) DIV + ( + 0 ) + ( 56 ) + + 17 ) + 49 + 72 * 84 DIV - COUNT( * )
----
-5914

skipif mysql # not compatible
query I rowsort label-1418
SELECT + COALESCE ( - - 85, - - COALESCE ( - 11, + + CAST ( - 53 AS INTEGER ) * + COUNT ( * ) / + 9, + 21 + + SUM ( DISTINCT + 74 ), - - COALESCE ( - 48, + - 14 ) ) / + ( + 0 ) + ( 56 ) + + 17 ) + 49 + 72 * 84 / - COUNT ( * )
----
-5914

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT ALL MIN( DISTINCT - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL MIN ( DISTINCT - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1420
SELECT + 40 + + COUNT( * ) AS col1, 75 AS col1
----
41
75

skipif mysql # not compatible
query II rowsort label-1420
SELECT + 40 + + COUNT ( * ) AS col1, 75 AS col1
----
41
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL - 8 + - COUNT( * ) + 2 * - 44 AS col0
----
-97

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - 8 + - COUNT ( * ) + 2 * - 44 AS col0
----
-97

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT - - MIN ( + + 36 )
----
36

query I rowsort
SELECT ALL + 33 + + + 35 * 70
----
2483

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1425
SELECT - 71 + - 43 * - 28 + - COUNT( * ) + + 79 DIV + - 59
----
1131

skipif mysql # not compatible
query I rowsort label-1425
SELECT - 71 + - 43 * - 28 + - COUNT ( * ) + + 79 / + - 59
----
1131

query I rowsort
SELECT ALL 77 * + 43 * + 46 col0
----
152306

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT ALL 11 DIV + 87 * + 62 * + 29 + 68 + + + 32 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1427
SELECT ALL 11 / + 87 * + 62 * + 29 + 68 + + + 32 AS col0
----
100

query I rowsort
SELECT + 35 * + 79
----
2765

query I rowsort
SELECT - 41 * + 47 AS col1
----
-1927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1430
SELECT DISTINCT MAX( + 23 ) DIV 84 DIV - 26 + - - 88 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT MAX ( + 23 ) / 84 / - 26 + - - 88 AS col0
----
88

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

query II rowsort
SELECT ALL - 50 * + 88 AS col1, + ( + + 43 ) * + 17 + - 7 AS col0
----
-4400
724

query I rowsort
SELECT DISTINCT - 33 * - 68 AS col1
----
2244

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT 80 DIV + + 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-1434
SELECT 80 / + + 97 col0
----
0

query I rowsort
SELECT ALL - 42 * - - 48 * - 30
----
60480

query I rowsort
SELECT DISTINCT + 33 * + ( 49 ) * - 49
----
-79233

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT 60 * + COUNT( * ) * 37 AS col1
----
2220

skipif mysql # not compatible
query I rowsort label-1437
SELECT 60 * + COUNT ( * ) * 37 AS col1
----
2220

query I rowsort
SELECT + 23 * - 66 - - CASE + 49 WHEN + 82 * - NULLIF ( + 3, + 99 ) THEN - 75 WHEN 68 THEN NULL END * + 90
----
NULL

query I rowsort
SELECT DISTINCT - 88 * 8
----
-704

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT 79 - COUNT( * ) + - 29
----
49

skipif mysql # not compatible
query I rowsort label-1440
SELECT 79 - COUNT ( * ) + - 29
----
49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1442
SELECT + MAX( + 4 ), - 18 AS col2
----
4
-18

skipif mysql # not compatible
query II rowsort label-1442
SELECT + MAX ( + 4 ), - 18 AS col2
----
4
-18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL - 75 * COUNT( * ) + + - 54 AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - 75 * COUNT ( * ) + + - 54 AS col0
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1445
SELECT + 22 * - ( + 99 ) + - 25 DIV + 87 * - - COUNT( * ) AS col1
----
-2178

skipif mysql # not compatible
query I rowsort label-1445
SELECT + 22 * - ( + 99 ) + - 25 / + 87 * - - COUNT ( * ) AS col1
----
-2178

onlyif mysql # DIV for integer division: 
query I rowsort label-1446
SELECT DISTINCT - 31 DIV + - 3
----
10

skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT - 31 / + - 3
----
10

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

skipif mysql # not compatible
query I rowsort label-1447
SELECT 7 * - COUNT ( * )
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT + CAST( - - 39 AS SIGNED ) * - + ( 67 )
----
-2613

skipif mysql # not compatible
query I rowsort label-1448
SELECT + CAST ( - - 39 AS INTEGER ) * - + ( 67 )
----
-2613

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT - SUM( DISTINCT - + 4 ) * 25 + + + 27 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - SUM ( DISTINCT - + 4 ) * 25 + + + 27 AS col1
----
127

onlyif mysql # aggregate syntax: 
query II rowsort label-1450
SELECT DISTINCT - CASE - COUNT( ALL - 84 ) WHEN + 89 THEN NULL WHEN - 24 THEN NULL ELSE 6 END + - - COUNT( * ) + - SUM( + 52 ) + - 83, 53 + + - 62 AS col1
----
-140
-9

skipif mysql # not compatible
query II rowsort label-1450
SELECT DISTINCT - CASE - COUNT ( ALL - 84 ) WHEN + 89 THEN NULL WHEN - 24 THEN NULL ELSE 6 END + - - COUNT ( * ) + - SUM ( + 52 ) + - 83, 53 + + - 62 AS col1
----
-140
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT DISTINCT MAX( ALL - 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT MAX ( ALL - 20 )
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1452
SELECT DISTINCT - CASE + COALESCE ( + 24, COUNT( * ), + 78 ) WHEN + 17 THEN - + 4 * ( - + ( + MIN( - - 89 ) ) ) ELSE NULL END + - CASE + 68 WHEN + 6 - + COUNT( * ) THEN COUNT( * ) * 25 * CAST( NULL AS SIGNED ) END + + - 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1452
SELECT DISTINCT - CASE + COALESCE ( + 24, COUNT ( * ), + 78 ) WHEN + 17 THEN - + 4 * ( - + ( + MIN ( - - 89 ) ) ) ELSE NULL END + - CASE + 68 WHEN + 6 - + COUNT ( * ) THEN COUNT ( * ) * 25 * CAST ( NULL AS INTEGER ) END + + - 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1453
SELECT ( - ( COUNT( DISTINCT + CAST( 5 AS DECIMAL ) ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-1453
SELECT ( - ( COUNT ( DISTINCT + CAST ( 5 AS REAL ) ) ) )
----
-1

query I rowsort
SELECT ALL + 57 + - 29 + - 85
----
-57

query I rowsort
SELECT - - ( 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1456
SELECT DISTINCT + COUNT( ALL + CAST( NULL AS SIGNED ) ) DIV - 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) / - 78 AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL 29 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT NULLIF ( MAX( + 22 ), - - COUNT( * ) ) - + MIN( ALL + 5 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1458
SELECT NULLIF ( MAX ( + 22 ), - - COUNT ( * ) ) - + MIN ( ALL + 5 ) AS col0
----
17

query II rowsort
SELECT DISTINCT 75 AS col0, + 9
----
75
9

query I rowsort
SELECT ALL 23 * + 97 AS col2
----
2231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1461
SELECT + CAST( 68 AS SIGNED ) DIV - ( - MIN( ALL - 23 ) ) + 0 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-1461
SELECT + CAST ( 68 AS INTEGER ) / - ( - MIN ( ALL - 23 ) ) + 0 AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT ALL CAST( - + 97 AS SIGNED ) - - - 64 + + CASE 86 WHEN - 32 THEN - 89 ELSE + 5 END * 57
----
124

skipif mysql # not compatible
query I rowsort label-1462
SELECT ALL CAST ( - + 97 AS INTEGER ) - - - 64 + + CASE 86 WHEN - 32 THEN - 89 ELSE + 5 END * 57
----
124

query I rowsort
SELECT ALL - 46 - - 11 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT COUNT( 38 ) - - COUNT( * ) + + - 97 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-1464
SELECT COUNT ( 38 ) - - COUNT ( * ) + + - 97 AS col0
----
-95

query I rowsort
SELECT ALL 87 * - 39
----
-3393

query II rowsort
SELECT + 94 col1, COALESCE ( ( + ( - ( 86 ) ) ), + 34 ) AS col2
----
94
-86

query I rowsort
SELECT 9 col1
----
9

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

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

query I rowsort
SELECT 70 + + ( + + 76 ) + + 40 + + - 96 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1470
SELECT + CAST( - 22 AS SIGNED ) * 41 * - 57 + + - SUM( + 77 ) + + MAX( ALL + ( - 3 ) ) AS col0
----
51334

skipif mysql # not compatible
query I rowsort label-1470
SELECT + CAST ( - 22 AS INTEGER ) * 41 * - 57 + + - SUM ( + 77 ) + + MAX ( ALL + ( - 3 ) ) AS col0
----
51334

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT ALL + 11 DIV + 45
----
0

skipif mysql # not compatible
query I rowsort label-1471
SELECT ALL + 11 / + 45
----
0

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

query II rowsort
SELECT DISTINCT - 35 AS col0, 44 AS col0
----
-35
44

query I rowsort
SELECT ALL + - 80 * - - 89
----
-7120

onlyif mysql # DIV for integer division: 
query I rowsort label-1475
SELECT ALL + + ( 96 ) DIV - - 7 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-1475
SELECT ALL + + ( 96 ) / - - 7 AS col0
----
13

query I rowsort
SELECT - 45 + - 73 * + - 32 * + 17 - - + 88
----
39755

query I rowsort
SELECT 84 * 79 + + - 83 * + 67
----
1075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1478
SELECT - COUNT( * ) + 52 + - 59 + + 25 + COUNT( * ) DIV + COUNT( ALL + + 49 )
----
18

skipif mysql # not compatible
query I rowsort label-1478
SELECT - COUNT ( * ) + 52 + - 59 + + 25 + COUNT ( * ) / + COUNT ( ALL + + 49 )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1479
SELECT 86 * - 3 * + COUNT( * ) AS col1
----
-258

skipif mysql # not compatible
query I rowsort label-1479
SELECT 86 * - 3 * + COUNT ( * ) AS col1
----
-258

query I rowsort
SELECT COALESCE ( - - 68, - + 28 )
----
68

query I rowsort
SELECT ALL - + 50 + - 70 + + 52 * CASE - + 87 WHEN + + 25 THEN + + 19 WHEN + 98 THEN NULL WHEN + + 26 * + + 14 THEN NULL END * - + 19 AS col2
----
NULL

query I rowsort
SELECT ALL + + 88 * + 93
----
8184

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT 76 DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT 76 / 55 AS col1
----
1

query III rowsort
SELECT 49 col1, + 43 + - + ( + 75 ) AS col1, + - 26 AS col0
----
49
-32
-26

query I rowsort
SELECT ALL - + 75 + + + 61 + + 94 * + 68
----
6378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1486
SELECT + 95 + + 59 + 59 * - CAST( + 17 AS SIGNED )
----
-849

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 95 + + 59 + 59 * - CAST ( + 17 AS INTEGER )
----
-849

query I rowsort
SELECT ALL - + 58 + 46 - - 42 * + 42
----
1752

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT DISTINCT MAX( DISTINCT ( - - 53 ) ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT MAX ( DISTINCT ( - - 53 ) ) AS col2
----
53

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT 32 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1491
SELECT NULLIF ( - ( + COUNT( * ) ), - NULLIF ( - - 14, - - 10 * 57 * - 91 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1491
SELECT NULLIF ( - ( + COUNT ( * ) ), - NULLIF ( - - 14, - - 10 * 57 * - 91 ) ) AS col1
----
-1

query II rowsort
SELECT 29 AS col0, 83
----
29
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1493
SELECT - NULLIF ( 21, - COUNT( * ) ) + CAST( 54 AS SIGNED ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1493
SELECT - NULLIF ( 21, - COUNT ( * ) ) + CAST ( 54 AS INTEGER ) AS col2
----
33

query I rowsort
SELECT ALL + 25 + + 76 * - 39
----
-2939

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT COUNT( * ) + - + 71 AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-1495
SELECT COUNT ( * ) + - + 71 AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1496
SELECT + CASE - 96 WHEN 87 / + - AVG ( - 33 ) - 58 THEN NULL WHEN + + CASE - 83 WHEN + 13 - + 67 * - - 33 / + AVG ( ALL 87 ) THEN - COUNT( * ) * + 24 + + ( - + 83 ) + 96 / + 80 / + 46 * + - 86 / + + 70 * + - 92 * + COUNT( * ) WHEN - 84 - - + 46 + + 53 THEN + - 74 - + ( 76 + 78 / + CAST( NULL AS SIGNED ) ) ELSE NULL END THEN + 46 * - COUNT( * ) + - 60 ELSE 10 END + + ( - 44 + - 96 ) AS col0
----
-130

skipif mysql # not compatible
query I rowsort label-1496
SELECT + CASE - 96 WHEN 87 / + - AVG ( - 33 ) - 58 THEN NULL WHEN + + CASE - 83 WHEN + 13 - + 67 * - - 33 / + AVG ( ALL 87 ) THEN - COUNT ( * ) * + 24 + + ( - + 83 ) + 96 / + 80 / + 46 * + - 86 / + + 70 * + - 92 * + COUNT ( * ) WHEN - 84 - - + 46 + + 53 THEN + - 74 - + ( 76 + 78 / + CAST ( NULL AS INTEGER ) ) ELSE NULL END THEN + 46 * - COUNT ( * ) + - 60 ELSE 10 END + + ( - 44 + - 96 ) AS col0
----
-130

query I rowsort
SELECT 36 + + + 54
----
90

query I rowsort
SELECT ALL 6 * + ( - 60 ) * + - 12 * - 31 + 32 AS col0
----
-133888

query I rowsort
SELECT ALL + 78 - + 67 * - 46 AS col0
----
3160

query I rowsort
SELECT ALL 0 - + CASE 60 WHEN + + 92 THEN - ( - - 47 ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT DISTINCT COALESCE ( 22, - - COUNT( * ), - 71 )
----
22

skipif mysql # not compatible
query I rowsort label-1501
SELECT DISTINCT COALESCE ( 22, - - COUNT ( * ), - 71 )
----
22

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

skipif mysql # not compatible
query I rowsort label-1502
SELECT NULLIF ( - - 88, + COUNT ( * ) ) AS col0
----
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1504
SELECT ALL 40 DIV 74 * 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL 40 / 74 * 18 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1505
SELECT 88 * - + 71 + - CAST( NULL AS SIGNED ) + + 88 * CASE - 20 WHEN - - 77 + CASE - + SUM( + + 32 ) WHEN - 41 + - CAST( + 46 AS SIGNED ) THEN + - ( - 99 ) WHEN 85 * - SUM( ALL + 19 ) - - 18 - + 8 THEN NULL WHEN + ( - 77 ) THEN NULL ELSE - 29 + 40 END THEN + 22 * + - COUNT( * ) + + + 67 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1505
SELECT 88 * - + 71 + - CAST ( NULL AS INTEGER ) + + 88 * CASE - 20 WHEN - - 77 + CASE - + SUM ( + + 32 ) WHEN - 41 + - CAST ( + 46 AS INTEGER ) THEN + - ( - 99 ) WHEN 85 * - SUM ( ALL + 19 ) - - 18 - + 8 THEN NULL WHEN + ( - 77 ) THEN NULL ELSE - 29 + 40 END THEN + 22 * + - COUNT ( * ) + + + 67 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1506
SELECT DISTINCT COUNT( + + 68 ) DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-1506
SELECT DISTINCT COUNT ( + + 68 ) / + 93
----
0

query I rowsort
SELECT ALL + 44 col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1508
SELECT CASE + - COUNT( * ) WHEN + COUNT( * ) THEN NULL ELSE 80 DIV + 96 * + ( + COUNT( * ) ) * + 19 * - 88 + - 18 END
----
-18

skipif mysql # not compatible
query I rowsort label-1508
SELECT CASE + - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL ELSE 80 / + 96 * + ( + COUNT ( * ) ) * + 19 * - 88 + - 18 END
----
-18

query I rowsort
SELECT ALL 98 * - 74 col0
----
-7252

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT + NULLIF ( - 61, 92 + COUNT( * ) ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-1510
SELECT + NULLIF ( - 61, 92 + COUNT ( * ) ) AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT DISTINCT + MAX( DISTINCT + 69 ) * + - 63 + + - 38 AS col0
----
-4385

skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT + MAX ( DISTINCT + 69 ) * + - 63 + + - 38 AS col0
----
-4385

query I rowsort
SELECT + 34 + 7 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT - - 97 * - CASE - CASE - 60 WHEN + SUM( ALL - 28 ) THEN - COUNT( * ) * 13 WHEN - - 78 THEN NULL END WHEN - - 12 THEN NULL ELSE - - 21 - SUM( DISTINCT + 64 ) END * - - 83 * - - 62 + + ( - 25 ) + - ( 98 ) + 99 * - - COUNT( * ) + - 40
----
21463902

skipif mysql # not compatible
query I rowsort label-1513
SELECT - - 97 * - CASE - CASE - 60 WHEN + SUM ( ALL - 28 ) THEN - COUNT ( * ) * 13 WHEN - - 78 THEN NULL END WHEN - - 12 THEN NULL ELSE - - 21 - SUM ( DISTINCT + 64 ) END * - - 83 * - - 62 + + ( - 25 ) + - ( 98 ) + 99 * - - COUNT ( * ) + - 40
----
21463902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1514
SELECT DISTINCT + - CASE + COUNT( + CAST( 40 AS SIGNED ) ) WHEN + 17 + + CAST( - + 59 AS SIGNED ) + MIN( - + 76 ) * 34 THEN NULL WHEN CASE - COUNT( * ) WHEN + 71 / - 59 * + - 19 * + + 12 + - COUNT( * ) THEN 49 ELSE NULL END THEN 19 / 16 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT + - CASE + COUNT ( + CAST ( 40 AS INTEGER ) ) WHEN + 17 + + CAST ( - + 59 AS INTEGER ) + MIN ( - + 76 ) * 34 THEN NULL WHEN CASE - COUNT ( * ) WHEN + 71 / - 59 * + - 19 * + + 12 + - COUNT ( * ) THEN 49 ELSE NULL END THEN 19 / 16 END
----
NULL

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

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

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

query II rowsort
SELECT ALL - 46 * - 38 - + 34 + + + 83 + 48 + + + 46 + 51 col2, + 78 + - - 76 AS col2
----
1942
154

query I rowsort
SELECT ALL + 32 * - 40 - - 17 AS col0
----
-1263

query I rowsort
SELECT - + 10 + - ( 24 )
----
-34

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

query II rowsort
SELECT - ( - + 80 ) AS col0, + 55
----
80
55

onlyif mysql # DIV for integer division: 
query II rowsort label-1522
SELECT ALL - - 43 - + 66, 53 DIV - 10 AS col0
----
-23
-5

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL - - 43 - + 66, 53 / - 10 AS col0
----
-23
-5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1523
SELECT + CAST( 74 AS SIGNED ) DIV - - 78 col0
----
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT + CAST ( 74 AS INTEGER ) / - - 78 col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1524
SELECT - 95 * - + CAST( + 1 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-1524
SELECT - 95 * - + CAST ( + 1 AS INTEGER )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-1525
SELECT - + 16 DIV - + 17
----
0

skipif mysql # not compatible
query I rowsort label-1525
SELECT - + 16 / - + 17
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1526
SELECT DISTINCT ( + COUNT( + CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT ( + COUNT ( + CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT ALL + ( 55 ) * 60 - 97
----
3203

query I rowsort
SELECT DISTINCT ( + + 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT ALL ( - + MIN( ALL + 98 ) ) AS col2
----
-98

skipif mysql # not compatible
query I rowsort label-1529
SELECT ALL ( - + MIN ( ALL + 98 ) ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query III rowsort label-1530
SELECT - NULLIF ( - 38, 64 * - - 6 * - COUNT( * ) + + 53 - + 24 + 34 + + COUNT( * ) ) * - 98 AS col2, 82, COALESCE ( - - 79, + + 26, + 84 ) + 58 AS col1
----
-3724
82
137

skipif mysql # not compatible
query III rowsort label-1530
SELECT - NULLIF ( - 38, 64 * - - 6 * - COUNT ( * ) + + 53 - + 24 + 34 + + COUNT ( * ) ) * - 98 AS col2, 82, COALESCE ( - - 79, + + 26, + 84 ) + 58 AS col1
----
-3724
82
137

query I rowsort
SELECT ALL NULLIF ( - 88, + + 13 ) col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1532
SELECT - COALESCE ( - - 20, - 90, - 54 / + + 33 + - + 3 + + 14 * 84 + MIN( 57 ) ) * - CAST( NULL AS SIGNED ) * CASE - ( + ( 23 ) ) WHEN - 59 * - + ( CAST( NULL AS SIGNED ) ) * 65 * 21 * - + CASE + 87 WHEN - - 15 THEN - + CASE - + 33 WHEN - NULLIF ( + 52, + 51 ) THEN + 99 END END THEN - 37 + + 71 * + 87 WHEN 79 THEN 7 WHEN + CASE COALESCE ( + COALESCE ( + 94, COUNT( * ) + - 68 ), 79 ) WHEN - 70 THEN 95 WHEN - 91 THEN NULL ELSE + 25 * COUNT( * ) END * NULLIF ( 10 * 99 + - 65 * + 18, - 12 * - 66 ) THEN 85 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT - COALESCE ( - - 20, - 90, - 54 / + + 33 + - + 3 + + 14 * 84 + MIN ( 57 ) ) * - CAST ( NULL AS INTEGER ) * CASE - ( + ( 23 ) ) WHEN - 59 * - + ( CAST ( NULL AS INTEGER ) ) * 65 * 21 * - + CASE + 87 WHEN - - 15 THEN - + CASE - + 33 WHEN - NULLIF ( + 52, + 51 ) THEN + 99 END END THEN - 37 + + 71 * + 87 WHEN 79 THEN 7 WHEN + CASE COALESCE ( + COALESCE ( + 94, COUNT ( * ) + - 68 ), 79 ) WHEN - 70 THEN 95 WHEN - 91 THEN NULL ELSE + 25 * COUNT ( * ) END * NULLIF ( 10 * 99 + - 65 * + 18, - 12 * - 66 ) THEN 85 END AS col1
----
NULL

query I rowsort
SELECT ALL CASE + + 41 WHEN 28 * + 47 * 36 THEN - 27 END AS col1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL ( + - NULLIF ( + 93, 55 - + MAX( - - 4 ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL ( + - NULLIF ( + 93, 55 - + MAX ( - - 4 ) ) )
----
-93

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1537
SELECT - 46 - 1 + COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) * - 68 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-1537
SELECT - 46 - 1 + COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) * - 68 AS col1
----
21

query I rowsort
SELECT - COALESCE ( + 30, 65 + + - 66 ) AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1539
SELECT - ( + COUNT( 13 ) ) - - CASE - COUNT( * ) WHEN - - 88 THEN + 85 ELSE + - 39 + 66 * COUNT( * ) + - 38 + + CAST( NULL AS DECIMAL ) + - + 39 * ( + NULLIF ( - + 49, + - 79 / 31 * + 89 / - 64 + ( - 9 ) / - CASE - 66 WHEN + 35 / - 44 THEN - 85 / - 83 * - + 54 ELSE - 94 END + ( - 86 ) ) ) END * 14 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1539
SELECT - ( + COUNT ( 13 ) ) - - CASE - COUNT ( * ) WHEN - - 88 THEN + 85 ELSE + - 39 + 66 * COUNT ( * ) + - 38 + + CAST ( NULL AS REAL ) + - + 39 * ( + NULLIF ( - + 49, + - 79 / 31 * + 89 / - 64 + ( - 9 ) / - CASE - 66 WHEN + 35 / - 44 THEN - 85 / - 83 * - + 54 ELSE - 94 END + ( - 86 ) ) ) END * 14 AS col2
----
NULL

query II rowsort
SELECT ALL 43, + 27 AS col2
----
43
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1541
SELECT - MAX( 99 ) + CAST( + COUNT( ALL + 31 ) AS SIGNED ) + - - 50
----
-48

skipif mysql # not compatible
query I rowsort label-1541
SELECT - MAX ( 99 ) + CAST ( + COUNT ( ALL + 31 ) AS INTEGER ) + - - 50
----
-48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT ALL - COUNT( * ) * + - MAX( ALL - - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL - COUNT ( * ) * + - MAX ( ALL - - 6 )
----
6

query I rowsort
SELECT + 68 - + 19 * - 10 AS col2
----
258

query I rowsort
SELECT - CASE + 83 WHEN 24 THEN + 85 ELSE NULL END * + 14 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT 21 * - COUNT( * ) - + ( 3 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-1546
SELECT 21 * - COUNT ( * ) - + ( 3 ) AS col2
----
-24

query I rowsort
SELECT ALL + 50 col1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1548
SELECT - - 7 / 84 - + + 23 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1548
SELECT - - 7 / 84 - + + 23 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1549
SELECT DISTINCT - COUNT( * ) DIV + COALESCE ( + ( 82 ), - COUNT( * ) * - - 71, + NULLIF ( - CAST( NULL AS SIGNED ), MIN( ALL - 60 ) * + + 77 + - ( + - 45 ) ) * - COUNT( * ) - - - 4 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT - COUNT ( * ) / + COALESCE ( + ( 82 ), - COUNT ( * ) * - - 71, + NULLIF ( - CAST ( NULL AS INTEGER ), MIN ( ALL - 60 ) * + + 77 + - ( + - 45 ) ) * - COUNT ( * ) - - - 4 ) AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1550
SELECT ALL - + ( ( + CAST( NULL AS SIGNED ) ) ) / + 46 * - - NULLIF ( + - 92, - 38 ) + - 38 - + AVG ( DISTINCT - 68 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL - + ( ( + CAST ( NULL AS INTEGER ) ) ) / + 46 * - - NULLIF ( + - 92, - 38 ) + - 38 - + AVG ( DISTINCT - 68 ) AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT ALL 94 * 4 - + COALESCE ( + - COUNT( * ), - 2 ) col2
----
377

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL 94 * 4 - + COALESCE ( + - COUNT ( * ), - 2 ) col2
----
377

query II rowsort
SELECT DISTINCT + + 32 * + - ( - ( + 44 ) ) + + 29 AS col2, 82 - + 53 AS col1
----
1437
29

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

query I rowsort
SELECT DISTINCT - 92 * + 74 + - 38 + COALESCE ( + 65, 94 + - 71 ) AS col0
----
-6781

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL + MAX( ALL - + 55 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + MAX ( ALL - + 55 ) AS col0
----
-55

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1558
SELECT DISTINCT - + 12 * - 97 * + 57 DIV + 1 + COUNT( * ) AS col2, 9
----
66349
9

skipif mysql # not compatible
query II rowsort label-1558
SELECT DISTINCT - + 12 * - 97 * + 57 / + 1 + COUNT ( * ) AS col2, 9
----
66349
9

query II rowsort
SELECT - 34 * - + 80 * - + 7 AS col2, 77 + + 99 AS col0
----
-19040
176

onlyif mysql # DIV for integer division: 
query II rowsort label-1560
SELECT + - 81 * NULLIF ( + 10, NULLIF ( + 94, + 33 * + - 80 + 59 ) ) - - 60 DIV - 54, 16 AS col1
----
-811
16

skipif mysql # not compatible
query II rowsort label-1560
SELECT + - 81 * NULLIF ( + 10, NULLIF ( + 94, + 33 * + - 80 + 59 ) ) - - 60 / - 54, 16 AS col1
----
-811
16

query I rowsort
SELECT DISTINCT + + ( - + 94 ) * + 51 - + 9
----
-4803

query I rowsort
SELECT + + NULLIF ( + - ( + ( 20 ) ), + ( - 63 ) ) * 11
----
-220

query I rowsort
SELECT ALL + - NULLIF ( + + 62, + ( - + 31 ) )
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT 3 * - - 55 - - - 96 * - ( - - COUNT( * ) ) AS col2
----
261

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT 3 * - - 55 - - - 96 * - ( - - COUNT ( * ) ) AS col2
----
261

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT + 7 + - + COUNT ( * ) AS col2
----
6

query I rowsort
SELECT ALL - 14 * - - 66
----
-924

query I rowsort
SELECT - 65 AS col1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT 74 DIV 62
----
1

skipif mysql # not compatible
query I rowsort label-1569
SELECT 74 / 62
----
1

query I rowsort
SELECT 45 * + 10 * + + 16 AS col2
----
7200

query I rowsort
SELECT 80 + - - 72
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL 64 * - SUM( DISTINCT - 54 ) AS col2
----
3456

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL 64 * - SUM ( DISTINCT - 54 ) AS col2
----
3456

query I rowsort
SELECT 99 + + 10 col2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL - 88 + MIN( DISTINCT - - 45 )
----
-43

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL - 88 + MIN ( DISTINCT - - 45 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT MAX( ALL + 45 ) + - 13
----
32

skipif mysql # not compatible
query I rowsort label-1575
SELECT MAX ( ALL + 45 ) + - 13
----
32

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

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

skipif mysql # not compatible
query I rowsort label-1577
SELECT ALL + COUNT ( * ) + + 78 + - 62 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1578
SELECT 80 + + 83 DIV + COALESCE ( - + 50, - - 99 * COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-1578
SELECT 80 + + 83 / + COALESCE ( - + 50, - - 99 * COUNT ( * ) ) AS col0
----
79

query I rowsort
SELECT ALL 90 AS col1
----
90

query I rowsort
SELECT ALL + 25 + - 80 - - 80 * + 16
----
1225

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT 5 + + 16 + - COUNT( * ) * - 65
----
86

skipif mysql # not compatible
query I rowsort label-1581
SELECT 5 + + 16 + - COUNT ( * ) * - 65
----
86

query II rowsort
SELECT 0 AS col0, ( - 74 )
----
0
-74

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

skipif mysql # not compatible
query II rowsort label-1583
SELECT + 11 AS col0, COUNT ( * )
----
11
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT ALL - - 43 * COALESCE ( - ( + SUM( - 30 ) ), - 25, - MIN( + - 73 ) )
----
1290

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL - - 43 * COALESCE ( - ( + SUM ( - 30 ) ), - 25, - MIN ( + - 73 ) )
----
1290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1585
SELECT ALL + COUNT( DISTINCT - - 98 ) + + MIN( 20 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + COUNT ( DISTINCT - - 98 ) + + MIN ( 20 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 30 * + 65 AS col2
----
1950

query I rowsort
SELECT ALL + 65 * - 2 * 24
----
-3120

query I rowsort
SELECT ALL - 54 * + + 89
----
-4806

query I rowsort
SELECT ALL - 90 - - 98 + + + 40 AS col1
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1590
SELECT CASE CAST( + COUNT( + 84 ) AS SIGNED ) WHEN - 26 * - - 97 * 82 THEN + COUNT( * ) + + 25 - + - COUNT( * ) WHEN - 67 + + + 17 + + 94 / 62 THEN 20 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1590
SELECT CASE CAST ( + COUNT ( + 84 ) AS INTEGER ) WHEN - 26 * - - 97 * 82 THEN + COUNT ( * ) + + 25 - + - COUNT ( * ) WHEN - 67 + + + 17 + + 94 / 62 THEN 20 END AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1591
SELECT ALL - - CAST( NULL AS SIGNED ), + 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-1591
SELECT ALL - - CAST ( NULL AS INTEGER ), + 76 AS col0
----
NULL
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + 88 * + COUNT( * ) col2
----
88

skipif mysql # not compatible
query I rowsort label-1592
SELECT + 88 * + COUNT ( * ) col2
----
88

query II rowsort
SELECT DISTINCT - 28 AS col0, 1 * - - 39 AS col1
----
-28
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT ALL - - MAX( DISTINCT - 4 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL - - MAX ( DISTINCT - 4 ) AS col0
----
-4

query I rowsort
SELECT DISTINCT - ( 64 ) col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT - ( NULLIF ( - SUM( DISTINCT + + ( + 92 ) ), + 20 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-1596
SELECT - ( NULLIF ( - SUM ( DISTINCT + + ( + 92 ) ), + 20 ) ) AS col0
----
92

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

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

query I rowsort
SELECT DISTINCT - NULLIF ( 22, + 85 )
----
-22

query I rowsort
SELECT ALL - - 38 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT ALL + 88 * - 25 + + 99 * ( - 37 ) * - + 45 + - + ( + 18 ) - + - COUNT( ALL - 22 ) * - 37 * 40 * - 74 * + 95
----
10567017

skipif mysql # not compatible
query I rowsort label-1600
SELECT ALL + 88 * - 25 + + 99 * ( - 37 ) * - + 45 + - + ( + 18 ) - + - COUNT ( ALL - 22 ) * - 37 * 40 * - 74 * + 95
----
10567017

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

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

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

query I rowsort
SELECT ALL - 14 * + 32 + 4 - + 19 * - 45 + 56
----
467

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + 4 * 14 * - ( + MIN( DISTINCT - - 39 ) )
----
-2184

skipif mysql # not compatible
query I rowsort label-1604
SELECT + 4 * 14 * - ( + MIN ( DISTINCT - - 39 ) )
----
-2184

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

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

query I rowsort
SELECT 38 + + + 72 AS col1
----
110

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

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

query I rowsort
SELECT ALL 23 * - 58 AS col0
----
-1334

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

query I rowsort
SELECT 90 * 29
----
2610

query I rowsort
SELECT ALL 17 + - 80
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT 76 + COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT 76 + COUNT ( * )
----
77

query I rowsort
SELECT ALL 87 * - 1 AS col2
----
-87

query I rowsort
SELECT 80 * + - 36
----
-2880

query I rowsort
SELECT DISTINCT 22 + 90 - - ( - 66 ) col0
----
46

query I rowsort
SELECT ALL 81 + - + 28 * - - 53 + - 89
----
-1492

query I rowsort
SELECT 70 + + + 10 * + 69 AS col2
----
760

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1619
SELECT ALL CASE 39 WHEN 29 THEN NULL WHEN - MIN( DISTINCT + - 5 ) THEN - COUNT( * ) * - + 10 / 66 WHEN + 96 - - 1 * - 28 THEN NULL END + - 30 + - 38 + - - 31 * COUNT( * ) * + NULLIF ( - ( + CAST( 34 AS SIGNED ) ), - + 35 ) - + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL CASE 39 WHEN 29 THEN NULL WHEN - MIN ( DISTINCT + - 5 ) THEN - COUNT ( * ) * - + 10 / 66 WHEN + 96 - - 1 * - 28 THEN NULL END + - 30 + - 38 + - - 31 * COUNT ( * ) * + NULLIF ( - ( + CAST ( 34 AS INTEGER ) ), - + 35 ) - + + 27
----
NULL

query I rowsort
SELECT DISTINCT 10 * - - 17
----
170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1621
SELECT 24 DIV + MIN( ALL - 66 )
----
0

skipif mysql # not compatible
query I rowsort label-1621
SELECT 24 / + MIN ( ALL - 66 )
----
0

query I rowsort
SELECT 31 * - 54 AS col0
----
-1674

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

skipif mysql # not compatible
query I rowsort label-1623
SELECT DISTINCT + COUNT ( * ) * - - 47 AS col0
----
47

query I rowsort
SELECT ALL - 94 + + 13 + - 70
----
-151

query I rowsort
SELECT 5 + + + 98
----
103

query I rowsort
SELECT + 37 + + 84
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT COALESCE ( - - 99, + COUNT( * ) ) + 74 AS col1
----
173

skipif mysql # not compatible
query I rowsort label-1627
SELECT COALESCE ( - - 99, + COUNT ( * ) ) + 74 AS col1
----
173

query I rowsort
SELECT ALL + 5 * + 86 - ( - 77 )
----
507

query I rowsort
SELECT - - 41 * 17 * + 45 + - - 3
----
31368

query I rowsort
SELECT - 73 - - 4
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1631
SELECT - COALESCE ( - COUNT( * ), + AVG ( + 56 ) DIV 81 * - + 83 )
----
1

skipif mysql # not compatible
query I rowsort label-1631
SELECT - COALESCE ( - COUNT ( * ), + AVG ( + 56 ) / 81 * - + 83 )
----
1

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

query II rowsort
SELECT ALL - 9 * - 28, - 73 - + 45 col0
----
252
-118

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - + 40 * 90 + + ( + 4 ) + - MAX( DISTINCT 72 ) + + - NULLIF ( - 24, - COALESCE ( - 72, + - 70 * COALESCE ( - COALESCE ( - + 10, + COUNT( * ) ), 96 ), - ( - + 71 ) ) ) AS col0
----
-3644

skipif mysql # not compatible
query I rowsort label-1635
SELECT - + 40 * 90 + + ( + 4 ) + - MAX ( DISTINCT 72 ) + + - NULLIF ( - 24, - COALESCE ( - 72, + - 70 * COALESCE ( - COALESCE ( - + 10, + COUNT ( * ) ), 96 ), - ( - + 71 ) ) ) AS col0
----
-3644

query I rowsort
SELECT + - 24 AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT - CASE 38 WHEN - SUM( - 77 ) + + - 25 / 72 THEN + CAST( NULL AS SIGNED ) + - - COALESCE ( + COALESCE ( + - 31, + 35 + 94 ), 20 + + 14 - - ( + - 78 ), - ( + + COUNT( * ) ), - 76 + + + 18 * - 56 ) WHEN - AVG ( + ( + 12 ) ) + + + COUNT( * ) - + SUM( - 14 ) + ( - 2 ) - + - ( + ( + ( CAST( - 2 AS SIGNED ) ) ) ) / 14 / CASE 40 WHEN NULLIF ( SUM( ALL 35 ), 56 * - ( - 69 ) ) THEN - 63 END THEN 7 + + 33 * COUNT( DISTINCT + 78 + 26 * + 80 ) WHEN - COALESCE ( 45, + 7 + + NULLIF ( ( 48 ), - 46 ), 47 * + 3 ) * 50 THEN + CAST( + 86 AS SIGNED ) - AVG ( ALL 55 ) END / 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT - CASE 38 WHEN - SUM ( - 77 ) + + - 25 / 72 THEN + CAST ( NULL AS INTEGER ) + - - COALESCE ( + COALESCE ( + - 31, + 35 + 94 ), 20 + + 14 - - ( + - 78 ), - ( + + COUNT ( * ) ), - 76 + + + 18 * - 56 ) WHEN - AVG ( + ( + 12 ) ) + + + COUNT ( * ) - + SUM ( - 14 ) + ( - 2 ) - + - ( + ( + ( CAST ( - 2 AS INTEGER ) ) ) ) / 14 / CASE 40 WHEN NULLIF ( SUM ( ALL 35 ), 56 * - ( - 69 ) ) THEN - 63 END THEN 7 + + 33 * COUNT ( DISTINCT + 78 + 26 * + 80 ) WHEN - COALESCE ( 45, + 7 + + NULLIF ( ( 48 ), - 46 ), 47 * + 3 ) * 50 THEN + CAST ( + 86 AS INTEGER ) - AVG ( ALL 55 ) END / 88 col0
----
NULL

query I rowsort
SELECT + + 1 AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT DISTINCT + COUNT( * ) * 10, + COUNT( * ) * + 21 - 83 - + 4 + - + 7 * + - COUNT( * ) * - + 62 AS col2
----
10
-500

skipif mysql # not compatible
query II rowsort label-1639
SELECT DISTINCT + COUNT ( * ) * 10, + COUNT ( * ) * + 21 - 83 - + 4 + - + 7 * + - COUNT ( * ) * - + 62 AS col2
----
10
-500

query I rowsort
SELECT ALL + - 72 col2
----
-72

query I rowsort
SELECT - 42 + 44 AS col0
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT - COUNT( * ) DIV - - 78 * + 37 * - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1642
SELECT - COUNT ( * ) / - - 78 * + 37 * - 50 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT + ( - 30 ) DIV + + ( - - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT + ( - 30 ) / + + ( - - 65 )
----
0

query I rowsort
SELECT ALL + 87 + 55 + 67 * - 28 * + 48 AS col2
----
-89906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1645
SELECT + 12 * + + CAST( NULL AS SIGNED ) * 11
----
NULL

skipif mysql # not compatible
query I rowsort label-1645
SELECT + 12 * + + CAST ( NULL AS INTEGER ) * 11
----
NULL

query I rowsort
SELECT ALL 17 + + 83 AS col1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-1647
SELECT - 23 + + + 76 DIV - 99 col1, 51 + + 93
----
-23
144

skipif mysql # not compatible
query II rowsort label-1647
SELECT - 23 + + + 76 / - 99 col1, 51 + + 93
----
-23
144

query II rowsort
SELECT 39 col1, 27
----
39
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1651
SELECT ALL - 25 + + + MIN( DISTINCT + 46 ), - NULLIF ( + 21, + 62 ) * + - 77 AS col0
----
21
1617

skipif mysql # not compatible
query II rowsort label-1651
SELECT ALL - 25 + + + MIN ( DISTINCT + 46 ), - NULLIF ( + 21, + 62 ) * + - 77 AS col0
----
21
1617

query I rowsort
SELECT DISTINCT + 70 + + - 70 col0
----
0

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1654
SELECT + 69 + COUNT( * ) * + + COUNT( * ), 78 AS col0, - + 73 AS col1
----
70
78
-73

skipif mysql # not compatible
query III rowsort label-1654
SELECT + 69 + COUNT ( * ) * + + COUNT ( * ), 78 AS col0, - + 73 AS col1
----
70
78
-73

query I rowsort
SELECT ALL 34 * - 93
----
-3162

query II rowsort
SELECT - 40 AS col1, + 42 AS col2
----
-40
42

query I rowsort
SELECT + 45 + - 95
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1658
SELECT 44, + COUNT( * ) * - 19 AS col0
----
44
-19

skipif mysql # not compatible
query II rowsort label-1658
SELECT 44, + COUNT ( * ) * - 19 AS col0
----
44
-19

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

skipif mysql # not compatible
query I rowsort label-1659
SELECT - COUNT ( 87 )
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1661
SELECT 88 AS col1, ( - 29 ) + + - CAST( NULL AS SIGNED ) + + 30 * - 17 * 8 - 80 AS col1
----
88
NULL

skipif mysql # not compatible
query II rowsort label-1661
SELECT 88 AS col1, ( - 29 ) + + - CAST ( NULL AS INTEGER ) + + 30 * - 17 * 8 - 80 AS col1
----
88
NULL

query I rowsort
SELECT + 10 * 88 AS col2
----
880

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

query I rowsort
SELECT DISTINCT COALESCE ( 42, + 9, - 33 * - 5 + - - 46 * - - 66 )
----
42

query I rowsort
SELECT DISTINCT + 95 - + 56
----
39

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

skipif mysql # not compatible
query I rowsort label-1666
SELECT MAX ( DISTINCT 68 )
----
68

query I rowsort
SELECT + 70 + 47 + - 5 * + - 2
----
127

query I rowsort
SELECT DISTINCT - 71 * + 45 col1
----
-3195

query I rowsort
SELECT ALL + + 54
----
54

query I rowsort
SELECT + - 7 * + 68 AS col1
----
-476

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-1671
SELECT - CAST( + ( + 34 ) AS SIGNED ) AS col0, 19 + + COUNT( * ) DIV + - 84, - 38 * - ( + 46 ) * - - 4 AS col0
----
-34
19
6992

skipif mysql # not compatible
query III rowsort label-1671
SELECT - CAST ( + ( + 34 ) AS INTEGER ) AS col0, 19 + + COUNT ( * ) / + - 84, - 38 * - ( + 46 ) * - - 4 AS col0
----
-34
19
6992

query I rowsort
SELECT ( 48 )
----
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT + ( - NULLIF ( - + 15, 49 * - + 17 ) ) * + ( + COUNT( * ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-1674
SELECT + ( - NULLIF ( - + 15, 49 * - + 17 ) ) * + ( + COUNT ( * ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT + 17 + + 68 - + 65 * ( - + 43 ) * CASE + - 67 WHEN - ( - COUNT( * ) ) THEN - - CASE + - 21 WHEN 35 * SUM( + 37 ) THEN - 64 ELSE NULL END - + 73 END - - 27 + + 57 / + 45 + + NULLIF ( - - 87, 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1675
SELECT + 17 + + 68 - + 65 * ( - + 43 ) * CASE + - 67 WHEN - ( - COUNT ( * ) ) THEN - - CASE + - 21 WHEN 35 * SUM ( + 37 ) THEN - 64 ELSE NULL END - + 73 END - - 27 + + 57 / + 45 + + NULLIF ( - - 87, 56 )
----
NULL

query I rowsort
SELECT + 73 col1
----
73

query I rowsort
SELECT ALL + COALESCE ( + 59, - 65 )
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1678
SELECT + CAST( NULL AS SIGNED ) * 35 + 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1678
SELECT + CAST ( NULL AS INTEGER ) * 35 + 55 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT ALL CAST( NULL AS SIGNED ) * ( - - 94 ) + COUNT( * ) - - COUNT( * ) * + - 83 * 97 * + 1 * - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT ALL CAST ( NULL AS INTEGER ) * ( - - 94 ) + COUNT ( * ) - - COUNT ( * ) * + - 83 * 97 * + 1 * - 95
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL MAX( - 7 ) * + COUNT( * ) + - - 30 + + 98 + ( 32 ) AS col0
----
153

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL MAX ( - 7 ) * + COUNT ( * ) + - - 30 + + 98 + ( 32 ) AS col0
----
153

onlyif mysql # DIV for integer division: 
query I rowsort label-1682
SELECT - COALESCE ( - 83, 78, 8 + - 66 * + + 70 DIV - 82 ) * + 67
----
5561

skipif mysql # not compatible
query I rowsort label-1682
SELECT - COALESCE ( - 83, 78, 8 + - 66 * + + 70 / - 82 ) * + 67
----
5561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1683
SELECT - 82 - + COUNT( * ) AS col2, CAST( + 15 AS SIGNED ) col0
----
-83
15

skipif mysql # not compatible
query II rowsort label-1683
SELECT - 82 - + COUNT ( * ) AS col2, CAST ( + 15 AS INTEGER ) col0
----
-83
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL 32 * + COUNT( * ) + 71
----
103

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL 32 * + COUNT ( * ) + 71
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT COALESCE ( + - COALESCE ( - 9, - 59 ), COUNT( * ) )
----
9

skipif mysql # not compatible
query I rowsort label-1685
SELECT COALESCE ( + - COALESCE ( - 9, - 59 ), COUNT ( * ) )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT ALL + SUM( + + 94 ) * - 76 * + COUNT( ALL - COALESCE ( - 48, - ( + 82 ), + 21 ) ) + - - 65 AS col1
----
-7079

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + SUM ( + + 94 ) * - 76 * + COUNT ( ALL - COALESCE ( - 48, - ( + 82 ), + 21 ) ) + - - 65 AS col1
----
-7079

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT + SUM( DISTINCT - + 49 ) * 65 + - 84 col1
----
-3269

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT + SUM ( DISTINCT - + 49 ) * 65 + - 84 col1
----
-3269

onlyif mysql # aggregate syntax: 
query I rowsort label-1688
SELECT NULLIF ( - COUNT( * ), 72 )
----
-1

skipif mysql # not compatible
query I rowsort label-1688
SELECT NULLIF ( - COUNT ( * ), 72 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - 28 * CASE + 98 WHEN + 53 THEN - 96 / + 48 + + 20 WHEN - 94 THEN + 9 * - 69 - + 8 - - COUNT( * ) + + - 52 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 28 * CASE + 98 WHEN + 53 THEN - 96 / + 48 + + 20 WHEN - 94 THEN + 9 * - 69 - + 8 - - COUNT ( * ) + + - 52 END
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT - NULLIF ( SUM( DISTINCT COALESCE ( - 26, + 30 + + 9 ) ), CASE - ( 65 ) WHEN 67 THEN - - 93 / + 10 END + + 60 * + COUNT( * ) )
----
26

skipif mysql # not compatible
query I rowsort label-1692
SELECT - NULLIF ( SUM ( DISTINCT COALESCE ( - 26, + 30 + + 9 ) ), CASE - ( 65 ) WHEN 67 THEN - - 93 / + 10 END + + 60 * + COUNT ( * ) )
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT - COUNT( * ) - 77 + - ( + 82 ) - NULLIF ( MIN( DISTINCT - 99 ), - COUNT( ALL - 87 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-1693
SELECT - COUNT ( * ) - 77 + - ( + 82 ) - NULLIF ( MIN ( DISTINCT - 99 ), - COUNT ( ALL - 87 ) )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1694
SELECT DISTINCT CAST( NULL AS SIGNED ) / + COALESCE ( 3, - 50 * 68 * + 36 * - 76 * - - COUNT( * ) * + 36 + - 66 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + COALESCE ( 3, - 50 * 68 * + 36 * - 76 * - - COUNT ( * ) * + 36 + - 66 ) col0
----
NULL

query I rowsort
SELECT ALL 49 col0
----
49

query I rowsort
SELECT ALL ( 19 ) col2
----
19

query I rowsort
SELECT ALL 56 * + 89
----
4984

query I rowsort
SELECT - 62 * - + 74
----
4588

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - + MIN( DISTINCT 29 ) * COUNT( * ) + + - 59
----
-88

skipif mysql # not compatible
query I rowsort label-1700
SELECT - + MIN ( DISTINCT 29 ) * COUNT ( * ) + + - 59
----
-88

query II rowsort
SELECT - ( + 27 ) AS col1, 28 AS col0
----
-27
28

query I rowsort
SELECT - - 36 AS col2
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT + 77 * - 95 + COUNT( * ) * 66 AS col2
----
-7249

skipif mysql # not compatible
query I rowsort label-1704
SELECT + 77 * - 95 + COUNT ( * ) * 66 AS col2
----
-7249

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT + COUNT( * ) + - 55 * + 81 AS col1
----
-4454

skipif mysql # not compatible
query I rowsort label-1705
SELECT + COUNT ( * ) + - 55 * + 81 AS col1
----
-4454

onlyif mysql # aggregate syntax: 
query II rowsort label-1706
SELECT ALL - COUNT( 48 ) AS col1, 30 + 72 + - 23 * + 60 AS col1
----
-1
-1278

skipif mysql # not compatible
query II rowsort label-1706
SELECT ALL - COUNT ( 48 ) AS col1, 30 + 72 + - 23 * + 60 AS col1
----
-1
-1278

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

query I rowsort
SELECT ALL - + COALESCE ( - 22, - 65 ) AS col1
----
22

query I rowsort
SELECT 54 + - 68 AS col0
----
-14

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

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 10 / + 18
----
0

query I rowsort
SELECT 85 * - + 51 + + - 52 * 27 + - + ( - - 89 ) AS col2
----
-5828

query I rowsort
SELECT ALL - ( - 22 ) + + + 3 * - 2 + - + 64 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-1713
SELECT + + 9 * NULLIF ( + COUNT( * ), - 24 ) + - + 92, - 0 AS col1
----
-83
0

skipif mysql # not compatible
query II rowsort label-1713
SELECT + + 9 * NULLIF ( + COUNT ( * ), - 24 ) + - + 92, - 0 AS col1
----
-83
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1714
SELECT DISTINCT - 42 + + CAST( + 10 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - 42 + + CAST ( + 10 AS INTEGER )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT NULLIF ( 49, - + 24 ) * - + COUNT( * ) - - 81 + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-1715
SELECT NULLIF ( 49, - + 24 ) * - + COUNT ( * ) - - 81 + + COUNT ( * ) AS col1
----
33

query I rowsort
SELECT ALL 65 + + 93 AS col2
----
158

query I rowsort
SELECT + 17 col1
----
17

query I rowsort
SELECT - 97 * - - 40 * 44 - + ( - 80 ) - - 72 AS col1
----
-170568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1719
SELECT COUNT( - NULLIF ( + 64, + - 75 ) ) * + ( + 15 ) + + - ( - 93 ) DIV 50 + - 59 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-1719
SELECT COUNT ( - NULLIF ( + 64, + - 75 ) ) * + ( + 15 ) + + - ( - 93 ) / 50 + - 59 AS col2
----
-43

query I rowsort
SELECT ALL 52 - - NULLIF ( 64, - + 2 ) AS col1
----
116

query I rowsort
SELECT + 34 * - 55 + + 50
----
-1820

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

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

query I rowsort
SELECT ALL 95 col1
----
95

query I rowsort
SELECT 24 + - 64
----
-40

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

query I rowsort
SELECT 30 + + 55
----
85

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

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

query I rowsort
SELECT 40 + 66 * 50
----
3340

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT - ( 15 ) + + 10 + ( ( + COUNT( * ) ) ) * - 55 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1729
SELECT - ( 15 ) + + 10 + ( ( + COUNT ( * ) ) ) * - 55 AS col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1730
SELECT + 83 * + + ( 32 ) * + 18 * + 95 + + 44 + + - COUNT( * ) * - 37 * ( 94 ) AS col2
----
4545282

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 83 * + + ( 32 ) * + 18 * + 95 + + 44 + + - COUNT ( * ) * - 37 * ( 94 ) AS col2
----
4545282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1731
SELECT 20 + CAST( - 69 AS SIGNED ) * + CASE + ( + MAX( - 64 ) ) WHEN ( 25 ) - + 25 * 12 THEN + - 92 ELSE - 26 END + + 30 - - + 0 DIV + COUNT( * ) AS col1
----
1844

skipif mysql # not compatible
query I rowsort label-1731
SELECT 20 + CAST ( - 69 AS INTEGER ) * + CASE + ( + MAX ( - 64 ) ) WHEN ( 25 ) - + 25 * 12 THEN + - 92 ELSE - 26 END + + 30 - - + 0 / + COUNT ( * ) AS col1
----
1844

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - + COUNT( * ) + + + 77
----
76

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - + COUNT ( * ) + + + 77
----
76

query I rowsort
SELECT ALL - 21 + - + 61
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1734
SELECT 99 * - CAST( NULL AS SIGNED ) / - + 68, COUNT( * ) * - 33 AS col2
----
NULL
-33

skipif mysql # not compatible
query II rowsort label-1734
SELECT 99 * - CAST ( NULL AS INTEGER ) / - + 68, COUNT ( * ) * - 33 AS col2
----
NULL
-33

query I rowsort
SELECT ALL - - 50 + + 77
----
127

query I rowsort
SELECT + 33 * 92 + + - 24 + - 31 * + 64 + - + 21 AS col2
----
1007

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1738
SELECT ALL - - 75 + - COUNT( * ) + - - 23
----
97

skipif mysql # not compatible
query I rowsort label-1738
SELECT ALL - - 75 + - COUNT ( * ) + - - 23
----
97

query I rowsort
SELECT 82 col1
----
82

query I rowsort
SELECT + 99 * + 76
----
7524

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1743
SELECT 89 / + 79 - - + 58 * CAST( NULL AS SIGNED ) * 31, 21 AS col2
----
NULL
21

skipif mysql # not compatible
query II rowsort label-1743
SELECT 89 / + 79 - - + 58 * CAST ( NULL AS INTEGER ) * 31, 21 AS col2
----
NULL
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT - SUM( - 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT - SUM ( - 90 ) AS col1
----
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1747
SELECT 99 * - - CASE + COUNT( * ) WHEN - 5 + - + 60 THEN NULL WHEN + 4 * 44 * + 95 - + ( + MIN( ALL 19 ) ) THEN - 15 - - COUNT( * ) / + 47 WHEN - - COUNT( * ) THEN NULL WHEN + 99 * 55 * - CAST( NULL AS DECIMAL ) THEN + 46 * 48 + + 6 ELSE NULL END * + 96 * 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1747
SELECT 99 * - - CASE + COUNT ( * ) WHEN - 5 + - + 60 THEN NULL WHEN + 4 * 44 * + 95 - + ( + MIN ( ALL 19 ) ) THEN - 15 - - COUNT ( * ) / + 47 WHEN - - COUNT ( * ) THEN NULL WHEN + 99 * 55 * - CAST ( NULL AS REAL ) THEN + 46 * 48 + + 6 ELSE NULL END * + 96 * 98 AS col0
----
NULL

query I rowsort
SELECT - 30 * - - 53 * - + 5 * + - 95 + 52 * 22
----
-754106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1749
SELECT 89 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1749
SELECT 89 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 24 * ( + 2 )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT 60, + 72 * + COUNT( * ) + - COUNT( * ) AS col0
----
60
71

skipif mysql # not compatible
query II rowsort label-1751
SELECT 60, + 72 * + COUNT ( * ) + - COUNT ( * ) AS col0
----
60
71

query III rowsort
SELECT + 80 AS col0, - 0, - - 4 - 75 AS col0
----
80
0
-71

query II rowsort
SELECT ALL - 69, - 18 AS col1
----
-69
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT COUNT( * ) * + + 63 * + 21
----
1323

skipif mysql # not compatible
query I rowsort label-1754
SELECT COUNT ( * ) * + + 63 * + 21
----
1323

query I rowsort
SELECT ALL - 85 col2
----
-85

query I rowsort
SELECT DISTINCT 10 * + 79 col1
----
790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1757
SELECT ALL - CASE - + 77 WHEN SUM( + - 68 ) + + + 35 + + - CAST( + ( + ( + - 66 ) ) AS SIGNED ) * + MAX( + 32 ) THEN NULL WHEN - 3 THEN COUNT( * ) + + - CASE - CAST( NULL AS DECIMAL ) WHEN - + COALESCE ( - NULLIF ( + + ( - + 58 ), + 31 ), + - 9 + ( - - 82 ), + 20 ) * 44 THEN NULL WHEN COUNT( * ) THEN - 32 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - CASE - + 77 WHEN SUM ( + - 68 ) + + + 35 + + - CAST ( + ( + ( + - 66 ) ) AS INTEGER ) * + MAX ( + 32 ) THEN NULL WHEN - 3 THEN COUNT ( * ) + + - CASE - CAST ( NULL AS REAL ) WHEN - + COALESCE ( - NULLIF ( + + ( - + 58 ), + 31 ), + - 9 + ( - - 82 ), + 20 ) * 44 THEN NULL WHEN COUNT ( * ) THEN - 32 END END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT NULLIF ( - - 36, + 79 * + 50 ) DIV - + 6 AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-1758
SELECT NULLIF ( - - 36, + 79 * + 50 ) / - + 6 AS col1
----
-6

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

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

query I rowsort
SELECT 14 * + 39 AS col2
----
546

query II rowsort
SELECT ALL 5 AS col1, 31 AS col0
----
5
31

query I rowsort
SELECT ALL 56 col0
----
56

query II rowsort
SELECT 14 AS col0, 34 AS col0
----
14
34

query II rowsort
SELECT - + 91 AS col0, 33 AS col0
----
-91
33

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

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL - 25 + - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL 68 AS col2, - 1
----
68
-1

query I rowsort
SELECT DISTINCT - 92 + - ( + 30 )
----
-122

query I rowsort
SELECT ALL + 34 + - 56 - - + 33
----
11

query II rowsort
SELECT DISTINCT + 42 AS col2, - 37
----
42
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1770
SELECT ALL - - COUNT( * ) + COUNT( * ) AS col1, + 77
----
2
77

skipif mysql # not compatible
query II rowsort label-1770
SELECT ALL - - COUNT ( * ) + COUNT ( * ) AS col1, + 77
----
2
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT - COUNT( * ) - + NULLIF ( - 87, + + 14 ) + 84 + + 26 + + 33 * + NULLIF ( + - 58, + 27 * - - 55 * + 56 ) * - 36 - - + 55
----
69155

skipif mysql # not compatible
query I rowsort label-1771
SELECT - COUNT ( * ) - + NULLIF ( - 87, + + 14 ) + 84 + + 26 + + 33 * + NULLIF ( + - 58, + 27 * - - 55 * + 56 ) * - 36 - - + 55
----
69155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1772
SELECT + CAST( 73 AS SIGNED ) + - - ( + 70 ) * + + 35
----
2523

skipif mysql # not compatible
query I rowsort label-1772
SELECT + CAST ( 73 AS INTEGER ) + - - ( + 70 ) * + + 35
----
2523

query I rowsort
SELECT ALL - 99 + + 30 AS col1
----
-69

query I rowsort
SELECT - - 93 * 62 AS col2
----
5766

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

query I rowsort
SELECT - + 18 + - 93 col0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1777
SELECT ALL CAST( 71 AS SIGNED ) AS col0, 1
----
71
1

skipif mysql # not compatible
query II rowsort label-1777
SELECT ALL CAST ( 71 AS INTEGER ) AS col0, 1
----
71
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1779
SELECT - + 69 + + - 88 * - - 72 + - 98 * + CAST( NULL AS SIGNED ) * - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1779
SELECT - + 69 + + - 88 * - - 72 + - 98 * + CAST ( NULL AS INTEGER ) * - - 23 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1780
SELECT ALL + CAST( + - 97 AS SIGNED ) AS col1, 64 * + - 40
----
-97
-2560

skipif mysql # not compatible
query II rowsort label-1780
SELECT ALL + CAST ( + - 97 AS INTEGER ) AS col1, 64 * + - 40
----
-97
-2560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1781
SELECT - COUNT( - + 90 ) DIV - 39 col0
----
0

skipif mysql # not compatible
query I rowsort label-1781
SELECT - COUNT ( - + 90 ) / - 39 col0
----
0

query I rowsort
SELECT ( 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT 64 * - - CASE 40 WHEN - 49 + - 69 * - + 89 THEN - - 96 - - - COUNT( * ) ELSE NULL END - + + 26 * 61 - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT 64 * - - CASE 40 WHEN - 49 + - 69 * - + 89 THEN - - 96 - - - COUNT ( * ) ELSE NULL END - + + 26 * 61 - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1784
SELECT - 26 * 39 + + + AVG ( + 48 ) + - COUNT( - CAST( NULL AS SIGNED ) ) + - - 54 + MIN( ALL - + CAST( NULL AS DECIMAL ) ) * 92 * - 30 * + - COALESCE ( - 99, + 48 + + - 93 * - - COALESCE ( ( + 66 ), - MAX( - - 6 ) ) ) - + 87 - - ( + 35 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1784
SELECT - 26 * 39 + + + AVG ( + 48 ) + - COUNT ( - CAST ( NULL AS INTEGER ) ) + - - 54 + MIN ( ALL - + CAST ( NULL AS REAL ) ) * 92 * - 30 * + - COALESCE ( - 99, + 48 + + - 93 * - - COALESCE ( ( + 66 ), - MAX ( - - 6 ) ) ) - + 87 - - ( + 35 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT ALL - 60 * + COUNT( * ) - + SUM( DISTINCT + - 89 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL - 60 * + COUNT ( * ) - + SUM ( DISTINCT + - 89 ) AS col2
----
29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT - 93 * COALESCE ( - + 34, - 46, - + MAX( + + ( 50 ) ) ), - SUM( DISTINCT + 63 ) AS col0
----
3162
-63

skipif mysql # not compatible
query II rowsort label-1787
SELECT - 93 * COALESCE ( - + 34, - 46, - + MAX ( + + ( 50 ) ) ), - SUM ( DISTINCT + 63 ) AS col0
----
3162
-63

query I rowsort
SELECT ALL 5 * + 12 * - - 7 AS col0
----
420

query I rowsort
SELECT NULLIF ( - + 52, 26 - + 59 )
----
-52

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

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

query I rowsort
SELECT COALESCE ( - 5, + + 97, + 55 + + 83 ) AS col0
----
-5

query I rowsort
SELECT - 51 + + 72 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - CASE - ( 61 ) WHEN + - 85 THEN + COALESCE ( 36, - 65 ) * - 72 / + COUNT( * ) END * + - 72 - + CASE CASE - 94 WHEN - 3 THEN + 5 WHEN + 67 THEN NULL ELSE + COUNT( * ) * 4 END WHEN - COUNT( * ) * + 70 * + 23 + + AVG ( 2 ) THEN NULL ELSE - COUNT( * ) * - 16 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT - CASE - ( 61 ) WHEN + - 85 THEN + COALESCE ( 36, - 65 ) * - 72 / + COUNT ( * ) END * + - 72 - + CASE CASE - 94 WHEN - 3 THEN + 5 WHEN + 67 THEN NULL ELSE + COUNT ( * ) * 4 END WHEN - COUNT ( * ) * + 70 * + 23 + + AVG ( 2 ) THEN NULL ELSE - COUNT ( * ) * - 16 END AS col1
----
NULL

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

query I rowsort
SELECT + 33 * 51
----
1683

query I rowsort
SELECT DISTINCT CASE - - 12 WHEN + 44 / + 9 * AVG ( DISTINCT 43 ) THEN + 99 WHEN + 14 THEN NULL END * + 14
----
NULL

query I rowsort
SELECT 0 * + - 78 + - - 84 AS col2
----
84

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

skipif mysql # not compatible
query I rowsort label-1798
SELECT MIN ( + 60 )
----
60

query I rowsort
SELECT ALL ( - 85 ) * 66 + + 90
----
-5520

query I rowsort
SELECT + 97 + - - 98 + + 88 * 49
----
4507

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT ALL - 19 * + MIN( + ( - 66 ) ) + + 85
----
1339

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - 19 * + MIN ( + ( - 66 ) ) + + 85
----
1339

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT + + SUM( ALL + + 39 ) + - - ( - SUM( DISTINCT 59 ) )
----
-20

skipif mysql # not compatible
query I rowsort label-1802
SELECT + + SUM ( ALL + + 39 ) + - - ( - SUM ( DISTINCT 59 ) )
----
-20

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

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL 71 + - COUNT ( * ) / - - 45
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT + 10 + + - COUNT( * ) * - + MAX( ALL + - 27 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-1804
SELECT + 10 + + - COUNT ( * ) * - + MAX ( ALL + - 27 ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - 3 + - + NULLIF ( + COUNT( * ), - - 78 ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - 3 + - + NULLIF ( + COUNT ( * ), - - 78 ) AS col0
----
-4

query I rowsort
SELECT - ( - 39 ) AS col0
----
39

query I rowsort
SELECT - + 58 + 94 + 5 + - 75 + 19 * + 10 * + + 97 AS col2
----
18396

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1809
SELECT ALL - NULLIF ( - ( 50 ), - + 18 * 70 / - 14 * + CAST( NULL AS SIGNED ) + + - CAST( NULL AS DECIMAL ) )
----
50

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - NULLIF ( - ( 50 ), - + 18 * 70 / - 14 * + CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS REAL ) )
----
50

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

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

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

skipif mysql # not compatible
query I rowsort label-1811
SELECT + COUNT ( * ) * + 57 + - COUNT ( * ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL 96 * + NULLIF ( + SUM( + ( - + 84 ) ), + ( - - 17 ) - - 17 + + 40 ) AS col2
----
-8064

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL 96 * + NULLIF ( + SUM ( + ( - + 84 ) ), + ( - - 17 ) - - 17 + + 40 ) AS col2
----
-8064

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT + ( + COUNT( DISTINCT + 64 ) ) - + - COALESCE ( 15, + 65, + ( + ( + - 41 ) ) ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-1813
SELECT + ( + COUNT ( DISTINCT + 64 ) ) - + - COALESCE ( 15, + 65, + ( + ( + - 41 ) ) ) AS col1
----
16

query I rowsort
SELECT - + 95 col1
----
-95

query I rowsort
SELECT - 47 * + + 34
----
-1598

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1817
SELECT + ( 62 ) / + NULLIF ( - + 77, 20 ) / + - ( 12 ) + - AVG ( ALL - ( + - 63 ) ) + + CAST( NULL AS SIGNED ) * 8 + 83 + - - CASE 85 WHEN - - COUNT( * ) * 78 + 40 THEN NULL ELSE + 53 END - 32 * 3 - + 92 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1817
SELECT + ( 62 ) / + NULLIF ( - + 77, 20 ) / + - ( 12 ) + - AVG ( ALL - ( + - 63 ) ) + + CAST ( NULL AS INTEGER ) * 8 + 83 + - - CASE 85 WHEN - - COUNT ( * ) * 78 + 40 THEN NULL ELSE + 53 END - 32 * 3 - + 92 AS col0
----
NULL

query I rowsort
SELECT - 46 * 37 AS col2
----
-1702

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT - 63 DIV 4 AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-1819
SELECT - 63 / 4 AS col1
----
-15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT + COUNT( * ) + + 73 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-1821
SELECT + COUNT ( * ) + + 73 AS col2
----
74

query I rowsort
SELECT - 51 * 83
----
-4233

query I rowsort
SELECT 67 * + + 75 + 37
----
5062

onlyif mysql # aggregate syntax: 
query II rowsort label-1824
SELECT DISTINCT + 75 AS col0, + COUNT( * )
----
75
1

skipif mysql # not compatible
query II rowsort label-1824
SELECT DISTINCT + 75 AS col0, + COUNT ( * )
----
75
1

query I rowsort
SELECT ALL + 76 * - + 26 AS col0
----
-1976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1826
SELECT - 84 * + CAST( NULL AS SIGNED ) + - 94 + 27 AS col2, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1826
SELECT - 84 * + CAST ( NULL AS INTEGER ) + - 94 + 27 AS col2, COUNT ( * ) col1
----
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1827
SELECT CAST( NULL AS SIGNED ) AS col1, 25 DIV - - 8 AS col0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1827
SELECT CAST ( NULL AS INTEGER ) AS col1, 25 / - - 8 AS col0
----
NULL
3

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

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

query I rowsort
SELECT ( 19 )
----
19

query I rowsort
SELECT DISTINCT + 86 + + COALESCE ( 86, + - 21 + + 87 ) * - 28 * - 3
----
7310

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1831
SELECT 42 + + 50 + + 75 AS col0, CAST( NULL AS DECIMAL ) AS col2, - 71
----
167
NULL
-71

skipif mysql # not compatible
query III rowsort label-1831
SELECT 42 + + 50 + + 75 AS col0, CAST ( NULL AS REAL ) AS col2, - 71
----
167
NULL
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL + NULLIF ( 27, - COUNT( ALL - ( - + 46 ) ) ) * + + SUM( - 12 )
----
-324

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL + NULLIF ( 27, - COUNT ( ALL - ( - + 46 ) ) ) * + + SUM ( - 12 )
----
-324

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT DISTINCT - + 20 AS col0, 36 + ( - COUNT( * ) )
----
-20
35

skipif mysql # not compatible
query II rowsort label-1833
SELECT DISTINCT - + 20 AS col0, 36 + ( - COUNT ( * ) )
----
-20
35

query I rowsort
SELECT + 19 col1
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1835
SELECT 85 DIV - 19 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1835
SELECT 85 / - 19 AS col2
----
-4

query I rowsort
SELECT ALL + + 31 + 92 AS col1
----
123

query I rowsort
SELECT ALL 81 col2
----
81

query I rowsort
SELECT - 61 - + 89 AS col2
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT - - SUM( DISTINCT - 45 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-1839
SELECT - - SUM ( DISTINCT - 45 ) AS col1
----
-45

query I rowsort
SELECT + ( CASE + + 92 WHEN 33 THEN NULL ELSE 73 * + 98 + + 48 END ) AS col0
----
7202

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1842
SELECT 8 - 72 * - - 62 * - CASE WHEN NOT ( NOT ( NOT NULL IS NULL ) ) THEN 23 ELSE - + COALESCE ( + - ( 53 ), + 71 * 32, - - MAX( DISTINCT 77 ) ) END * COUNT( * ) AS col0
----
236600

skipif mysql # not compatible
query I rowsort label-1842
SELECT 8 - 72 * - - 62 * - CASE WHEN NOT ( NOT ( NOT NULL IS NULL ) ) THEN 23 ELSE - + COALESCE ( + - ( 53 ), + 71 * 32, - - MAX ( DISTINCT 77 ) ) END * COUNT ( * ) AS col0
----
236600

query II rowsort
SELECT ALL 87 AS col1, + 51 col1
----
87
51

query I rowsort
SELECT 54 - + ( 38 )
----
16

query I rowsort
SELECT ALL 27 * - 24 - - 43 * + 91 + 75 AS col1
----
3340

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ALL MIN( ALL 6 ) * + MAX( DISTINCT + 21 ) - - SUM( 84 ) + - + COUNT( * ) * - 32 AS col1
----
242

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL MIN ( ALL 6 ) * + MAX ( DISTINCT + 21 ) - - SUM ( 84 ) + - + COUNT ( * ) * - 32 AS col1
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT MAX( - - 73 ) - + 48 + - - COALESCE ( + 38, COUNT( * ), 13 * + 11 * + 60 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-1847
SELECT MAX ( - - 73 ) - + 48 + - - COALESCE ( + 38, COUNT ( * ), 13 * + 11 * + 60 ) AS col0
----
63

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

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

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

query I rowsort
SELECT 56 * + 79 * 63 + - 74 AS col0
----
278638

query I rowsort
SELECT - 60 * + + 29 AS col0
----
-1740

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT 99 + - 87 * + - CASE + COUNT( * ) WHEN 65 THEN + - 6 END - + + 35 * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT 99 + - 87 * + - CASE + COUNT ( * ) WHEN 65 THEN + - 6 END - + + 35 * - + 56
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1853
SELECT ALL CASE - 45 WHEN 91 THEN - 68 WHEN 90 * + 99 * + - 20 * + 34 * + + 48 + + 25 THEN NULL END * + - 75 DIV + 94 + - 66 + - 37, - 89 + + 23 + - - 86 DIV - 32 AS col2
----
NULL
-68

skipif mysql # not compatible
query II rowsort label-1853
SELECT ALL CASE - 45 WHEN 91 THEN - 68 WHEN 90 * + 99 * + - 20 * + 34 * + + 48 + + 25 THEN NULL END * + - 75 / + 94 + - 66 + - 37, - 89 + + 23 + - - 86 / - 32 AS col2
----
NULL
-68

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

skipif mysql # not compatible
query I rowsort label-1854
SELECT ( - COUNT ( * ) ) * 94
----
-94

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

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

query I rowsort
SELECT DISTINCT + 89 * + ( - 84 ) * 47
----
-351372

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT COALESCE ( + 31, + 10 ) * + MIN( + + 49 ) AS col0
----
1519

skipif mysql # not compatible
query I rowsort label-1857
SELECT COALESCE ( + 31, + 10 ) * + MIN ( + + 49 ) AS col0
----
1519

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT DISTINCT ( 20 ) + + ( - 34 ) - + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-1858
SELECT DISTINCT ( 20 ) + + ( - 34 ) - + COUNT ( * )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1859
SELECT ALL + 72 + CAST( - 94 AS SIGNED ) + - 91 * + + 91 + 96 - + 83 - + 8
----
-8298

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL + 72 + CAST ( - 94 AS INTEGER ) + - 91 * + + 91 + 96 - + 83 - + 8
----
-8298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1860
SELECT - 42 DIV + MIN( 89 ) * 80 DIV - - ( - 22 ) + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1860
SELECT - 42 / + MIN ( 89 ) * 80 / - - ( - 22 ) + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT ( + + 69 ) + 22
----
91

query I rowsort
SELECT 42 * - 11
----
-462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1863
SELECT ALL + 45 / - ( ( + + COUNT( * ) ) ) * - 59 + 85 * - ( CASE + - 21 WHEN - CAST( - 51 AS SIGNED ) + - 19 THEN MAX( + - 42 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL + 45 / - ( ( + + COUNT ( * ) ) ) * - 59 + 85 * - ( CASE + - 21 WHEN - CAST ( - 51 AS INTEGER ) + - 19 THEN MAX ( + - 42 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT ALL 80 + - NULLIF ( + 18, 30 + MAX( 33 ) ) * - 88 col1
----
1664

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL 80 + - NULLIF ( + 18, 30 + MAX ( 33 ) ) * - 88 col1
----
1664

query I rowsort
SELECT DISTINCT - 27 * + 53 AS col0
----
-1431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1866
SELECT + CASE - 18 WHEN COUNT( + 28 ) + + 36 THEN NULLIF ( - 58, 18 ) * - 41 * 75 * - 12 + - - 49 + - + ( - 26 ) WHEN + 92 / COUNT( * ) * - - 34 + - ( - MIN( DISTINCT - 11 ) ) - + + CASE 36 WHEN + - 53 THEN AVG ( - + 35 ) * - - 64 - + 51 ELSE NULL END * + CAST( + + 65 AS DECIMAL ) THEN + 96 END * + 99 + ( NULLIF ( 6, - + NULLIF ( + 6, - CASE - 14 WHEN - 51 THEN + 20 * CAST( NULL AS SIGNED ) WHEN - 22 THEN NULL ELSE - 8 * + 86 + - 26 END ) ) ) - + ( 82 ) * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT + CASE - 18 WHEN COUNT ( + 28 ) + + 36 THEN NULLIF ( - 58, 18 ) * - 41 * 75 * - 12 + - - 49 + - + ( - 26 ) WHEN + 92 / COUNT ( * ) * - - 34 + - ( - MIN ( DISTINCT - 11 ) ) - + + CASE 36 WHEN + - 53 THEN AVG ( - + 35 ) * - - 64 - + 51 ELSE NULL END * + CAST ( + + 65 AS REAL ) THEN + 96 END * + 99 + ( NULLIF ( 6, - + NULLIF ( + 6, - CASE - 14 WHEN - 51 THEN + 20 * CAST ( NULL AS INTEGER ) WHEN - 22 THEN NULL ELSE - 8 * + 86 + - 26 END ) ) ) - + ( 82 ) * 97
----
NULL

query II rowsort
SELECT - 92 + - 71 col2, 69 AS col2
----
-163
69

query I rowsort
SELECT + COALESCE ( - + 55, + 94 * - 43 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-1869
SELECT COUNT( * ) + + 24 AS col1, + 79 + COUNT( * ) AS col0
----
25
80

skipif mysql # not compatible
query II rowsort label-1869
SELECT COUNT ( * ) + + 24 AS col1, + 79 + COUNT ( * ) AS col0
----
25
80

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

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

query I rowsort
SELECT ALL - 89 AS col2
----
-89

query I rowsort
SELECT 92 + ( + 5 )
----
97

query I rowsort
SELECT 38 + + 34 AS col2
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1874
SELECT ALL - 21 DIV ( - 92 ) * - - 78 * - 67 AS col1, + 69 + + COUNT( * ) - - - 31 DIV + CAST( NULL AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1874
SELECT ALL - 21 / ( - 92 ) * - - 78 * - 67 AS col1, + 69 + + COUNT ( * ) - - - 31 / + CAST ( NULL AS INTEGER )
----
0
NULL

query I rowsort
SELECT 8 * - + 21
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT 14 DIV - 49
----
0

skipif mysql # not compatible
query I rowsort label-1876
SELECT 14 / - 49
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT ALL + 48 + - ( + - 99 ) + + - COALESCE ( - 52, - 27, - 35 ) + + 6 + 22 DIV NULLIF ( - 29, - - 83 ) + + 16 * + 97
----
1757

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL + 48 + - ( + - 99 ) + + - COALESCE ( - 52, - 27, - 35 ) + + 6 + 22 / NULLIF ( - 29, - - 83 ) + + 16 * + 97
----
1757

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT 98 - + + CAST( 7 AS SIGNED ) + - 95
----
-4

skipif mysql # not compatible
query I rowsort label-1878
SELECT 98 - + + CAST ( 7 AS INTEGER ) + - 95
----
-4

query II rowsort
SELECT ALL 22 AS col0, 30 * 67 * + 8
----
22
16080

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT 4 DIV - - 66 col1
----
0

skipif mysql # not compatible
query I rowsort label-1880
SELECT 4 / - - 66 col1
----
0

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

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

query I rowsort
SELECT DISTINCT ( 76 ) + - 9 * - 41 col0
----
445

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL + 36 * - 91 * + COUNT( * ) + - + MAX( + 77 ) AS col1
----
-3353

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL + 36 * - 91 * + COUNT ( * ) + - + MAX ( + 77 ) AS col1
----
-3353

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT - COUNT( * ) DIV - 33 * 42 * + 86 - - 20 + + + 5
----
25

skipif mysql # not compatible
query I rowsort label-1884
SELECT - COUNT ( * ) / - 33 * 42 * + 86 - - 20 + + + 5
----
25

query I rowsort
SELECT DISTINCT + 72
----
72

query I rowsort
SELECT DISTINCT - 92 * - 47 + - 17 + - - ( - - 84 ) AS col0
----
4391

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT CASE + CASE + 95 WHEN - 86 * 16 THEN + COUNT( - - 13 ) * - 41 WHEN - + 43 * + - 19 + + 55 THEN NULL END WHEN - MAX( - - ( - 13 ) ) / - - 77 + + 49 * - + COUNT( * ) + - 56 THEN - - 54 WHEN 77 THEN 89 + - 42 + + - MAX( ALL - - 20 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT CASE + CASE + 95 WHEN - 86 * 16 THEN + COUNT ( - - 13 ) * - 41 WHEN - + 43 * + - 19 + + 55 THEN NULL END WHEN - MAX ( - - ( - 13 ) ) / - - 77 + + 49 * - + COUNT ( * ) + - 56 THEN - - 54 WHEN 77 THEN 89 + - 42 + + - MAX ( ALL - - 20 ) END
----
NULL

query I rowsort
SELECT - ( - 62 ) - + + 86 col2
----
-24

query I rowsort
SELECT DISTINCT + + 55 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT - MIN( - 31 )
----
31

skipif mysql # not compatible
query I rowsort label-1891
SELECT - MIN ( - 31 )
----
31

query I rowsort
SELECT DISTINCT + - 21
----
-21

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1895
SELECT + 88 * - + 64 + - CAST( NULL AS SIGNED ) + - MAX( + 67 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1895
SELECT + 88 * - + 64 + - CAST ( NULL AS INTEGER ) + - MAX ( + 67 ) AS col2
----
NULL

query II rowsort
SELECT + 72, + NULLIF ( + 64, + 38 ) AS col2
----
72
64

query I rowsort
SELECT ALL + - 67
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1898
SELECT + MIN( + 24 ) DIV 73 + 76 + - - 22 - + - 43 * + COALESCE ( - CAST( - + 26 AS SIGNED ), - MIN( - + 1 ) ) AS col0
----
1216

skipif mysql # not compatible
query I rowsort label-1898
SELECT + MIN ( + 24 ) / 73 + 76 + - - 22 - + - 43 * + COALESCE ( - CAST ( - + 26 AS INTEGER ), - MIN ( - + 1 ) ) AS col0
----
1216

query I rowsort
SELECT - 19 * 1
----
-19

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

skipif mysql # not compatible
query I rowsort label-1900
SELECT - 63 * - CAST ( NULL AS INTEGER ) * + + CAST ( - - 71 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT ALL - - 84 * NULLIF ( + + 72, - COUNT( * ) )
----
6048

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - - 84 * NULLIF ( + + 72, - COUNT ( * ) )
----
6048

query I rowsort
SELECT DISTINCT - - 67 + + - ( + 63 ) AS col0
----
4

query I rowsort
SELECT - - 16 col2
----
16

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT DISTINCT CASE 40 WHEN + 71 + 89 / 14 * - + 93 + CASE COUNT( * ) WHEN + - 82 + + + ( - 45 ) THEN - + 68 + 1 END * - + 95 / + 48 * - + 3 * - 85 * ( + + 93 ) + + 39 * 62 + + 49 THEN + - 94 ELSE 97 - SUM( ALL - 24 ) END AS col0
----
121

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT CASE 40 WHEN + 71 + 89 / 14 * - + 93 + CASE COUNT ( * ) WHEN + - 82 + + + ( - 45 ) THEN - + 68 + 1 END * - + 95 / + 48 * - + 3 * - 85 * ( + + 93 ) + + 39 * 62 + + 49 THEN + - 94 ELSE 97 - SUM ( ALL - 24 ) END AS col0
----
121

query II rowsort
SELECT 34 AS col2, 38 AS col0
----
34
38

query I rowsort
SELECT - 41 - + 82
----
-123

query I rowsort
SELECT ALL - 90 + + - 73
----
-163

query I rowsort
SELECT - 11 + - - 35 AS col1
----
24

query I rowsort
SELECT - 17 - + - 96
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT - 87 + COUNT( * ) + 22
----
-64

skipif mysql # not compatible
query I rowsort label-1912
SELECT - 87 + COUNT ( * ) + 22
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + MIN( + - 57 ) + 72
----
15

skipif mysql # not compatible
query I rowsort label-1913
SELECT + MIN ( + - 57 ) + 72
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1914
SELECT 26 AS col2, - CAST( NULL AS SIGNED )
----
26
NULL

skipif mysql # not compatible
query II rowsort label-1914
SELECT 26 AS col2, - CAST ( NULL AS INTEGER )
----
26
NULL

query I rowsort
SELECT ALL COALESCE ( + 42, + 5 + 33 ) AS col1
----
42

query I rowsort
SELECT ALL 92 * - 91 AS col1
----
-8372

query I rowsort
SELECT DISTINCT - 72 + 88 + - 21
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT - MIN( ALL - 59 )
----
59

skipif mysql # not compatible
query I rowsort label-1918
SELECT - MIN ( ALL - 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1919
SELECT ALL - COUNT( 34 ) - + + 60 * - 89
----
5339

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL - COUNT ( 34 ) - + + 60 * - 89
----
5339

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

query I rowsort
SELECT - 62 + - 48
----
-110

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

skipif mysql # not compatible
query I rowsort label-1922
SELECT - COUNT ( * ) * - 99 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1923
SELECT CAST ( - COUNT ( * ) AS INTEGER )
----
-1

query I rowsort
SELECT ALL + 82 * 37 AS col2
----
3034

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - 46 * 14 + + - COUNT( * ) + - + 47 + + 65 * + COUNT( * )
----
-627

skipif mysql # not compatible
query I rowsort label-1925
SELECT - 46 * 14 + + - COUNT ( * ) + - + 47 + + 65 * + COUNT ( * )
----
-627

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT + 27 * - 4 * + CASE 62 WHEN - + 4 THEN NULL WHEN 35 + - 84 * - - 94 / - 29 THEN 80 * + - COUNT( + COALESCE ( - 47, 45 ) ) / + 55 * + - 13 + - ( + - ( + 34 ) ) END * 7 + 19 + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-1927
SELECT + 27 * - 4 * + CASE 62 WHEN - + 4 THEN NULL WHEN 35 + - 84 * - - 94 / - 29 THEN 80 * + - COUNT ( + COALESCE ( - 47, 45 ) ) / + 55 * + - 13 + - ( + - ( + 34 ) ) END * 7 + 19 + 26
----
NULL

query I rowsort
SELECT - 15 * + 8 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ( + 7 ) / + 11 + 35 * + CASE + + 30 WHEN + AVG ( ALL + + 0 ) THEN + 79 WHEN + MIN( DISTINCT - ( - 51 ) ) THEN NULL END + + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1929
SELECT ( + 7 ) / + 11 + 35 * + CASE + + 30 WHEN + AVG ( ALL + + 0 ) THEN + 79 WHEN + MIN ( DISTINCT - ( - 51 ) ) THEN NULL END + + - 53 AS col2
----
NULL

query I rowsort
SELECT ALL - 75 * COALESCE ( - 54, + ( + 3 ) ) + + - 99
----
3951

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1931
SELECT + - 64 + - - COALESCE ( - 57, - COUNT( * ) * NULLIF ( - + 77, + 2 - + 66 * 1 - 54 * + 73 + + + 84 ) + + + 25 DIV + 68 * + 51 + + - 2 + ( - 49 ) + COUNT( DISTINCT - + 74 ) DIV - COUNT( * ) )
----
-121

skipif mysql # not compatible
query I rowsort label-1931
SELECT + - 64 + - - COALESCE ( - 57, - COUNT ( * ) * NULLIF ( - + 77, + 2 - + 66 * 1 - 54 * + 73 + + + 84 ) + + + 25 / + 68 * + 51 + + - 2 + ( - 49 ) + COUNT ( DISTINCT - + 74 ) / - COUNT ( * ) )
----
-121

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

skipif mysql # not compatible
query I rowsort label-1932
SELECT + MAX ( + 55 )
----
55

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

query I rowsort
SELECT + COALESCE ( - - 45, + 18 * + 33 ) + - + 58
----
-13

query II rowsort
SELECT ALL + + 15, 64 AS col1
----
15
64

query II rowsort
SELECT + 54 * 5 AS col2, - 42 * - 77 AS col2
----
270
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT ALL ( - 7 ) * - + CASE + - COUNT( * ) WHEN COUNT( * ) THEN NULL ELSE 88 END + - 51 + 21 * - - 3
----
628

skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL ( - 7 ) * - + CASE + - COUNT ( * ) WHEN COUNT ( * ) THEN NULL ELSE 88 END + - 51 + 21 * - - 3
----
628

query I rowsort
SELECT + + 44 * 80 - 10
----
3510

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

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

query I rowsort
SELECT + ( + 80 ) * 76
----
6080

query I rowsort
SELECT + + 48 + + 62 col0
----
110

query I rowsort
SELECT - - 73 + + 68 AS col2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT ALL - + COUNT( * ) * 53 * + 48 * + + 68 + - 2
----
-172994

skipif mysql # not compatible
query I rowsort label-1943
SELECT ALL - + COUNT ( * ) * 53 * + 48 * + + 68 + - 2
----
-172994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1944
SELECT + - COUNT( * ) * - CAST( NULL AS SIGNED ) + - - 64 + - - 92 / + + 57 / + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1944
SELECT + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) + - - 64 + - - 92 / + + 57 / + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT + SUM( - 32 ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-1945
SELECT + SUM ( - 32 ) col0
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT ALL + 99 * - - COALESCE ( + 92, 52 DIV ( ( - 79 ) ) * COUNT( * ) )
----
9108

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL + 99 * - - COALESCE ( + 92, 52 / ( ( - 79 ) ) * COUNT ( * ) )
----
9108

query I rowsort
SELECT DISTINCT 15 * + + 12 * + 54 + + 4
----
9724

query I rowsort
SELECT + 70 + - 81 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1949
SELECT DISTINCT CAST( 93 AS SIGNED ) AS col1
----
93

skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT CAST ( 93 AS INTEGER ) AS col1
----
93

query I rowsort
SELECT ALL + 79 * ( + 65 ) + ( 46 ) AS col1
----
5181

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1951
SELECT DISTINCT + 75 AS col1, - 20 + - CAST( + 72 AS SIGNED ) DIV 79 col2
----
75
-20

skipif mysql # not compatible
query II rowsort label-1951
SELECT DISTINCT + 75 AS col1, - 20 + - CAST ( + 72 AS INTEGER ) / 79 col2
----
75
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1952
SELECT 49 * + + CAST( NULL AS DECIMAL ) * 63 + 59 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT 49 * + + CAST ( NULL AS REAL ) * 63 + 59 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1953
SELECT ALL COALESCE ( 33, - + 42 ) DIV - 64 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL COALESCE ( 33, - + 42 ) / - 64 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT + 11 DIV - 37 * + 11
----
0

skipif mysql # not compatible
query I rowsort label-1954
SELECT + 11 / - 37 * + 11
----
0

query I rowsort
SELECT + 29 * + ( ( ( 49 ) ) )
----
1421

query I rowsort
SELECT - 93 + + + NULLIF ( 25, NULLIF ( 47, + CASE - 68 WHEN + 66 THEN NULL WHEN 86 * + 7 + - CASE - + 33 WHEN 19 THEN + 29 END + 58 THEN - - 87 END ) ) AS col0
----
-68

query I rowsort
SELECT DISTINCT 28 + - 86 + - - 31 + - + 5 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-1958
SELECT ALL - 59 * + ( - 67 ), COUNT( * ) AS col2
----
3953
1

skipif mysql # not compatible
query II rowsort label-1958
SELECT ALL - 59 * + ( - 67 ), COUNT ( * ) AS col2
----
3953
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1959
SELECT 43 * - 79, + ( - SUM( + 36 ) ) + - + 20 AS col1
----
-3397
-56

skipif mysql # not compatible
query II rowsort label-1959
SELECT 43 * - 79, + ( - SUM ( + 36 ) ) + - + 20 AS col1
----
-3397
-56

query I rowsort
SELECT ALL 63 - 66 + + - 42
----
-45

query I rowsort
SELECT ALL + 86 - + - 17 AS col1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT COUNT( * ) - 80
----
-79

skipif mysql # not compatible
query I rowsort label-1962
SELECT COUNT ( * ) - 80
----
-79

query I rowsort
SELECT 68 * 84
----
5712

query I rowsort
SELECT 42 + + + 37 * + 44 AS col1
----
1670

query II rowsort
SELECT 58 * + 29 AS col0, 46
----
1682
46

query I rowsort
SELECT ALL 52 col2
----
52

query I rowsort
SELECT DISTINCT 3 col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-1968
SELECT ALL - - MAX( 34 ) AS col0, 73 + 13 + - 63 * MIN( + ( 48 ) ) + - + 87
----
34
-3025

skipif mysql # not compatible
query II rowsort label-1968
SELECT ALL - - MAX ( 34 ) AS col0, 73 + 13 + - 63 * MIN ( + ( 48 ) ) + - + 87
----
34
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT DISTINCT + 66 * - 84 + MAX( ALL + 46 ) * 11 + - 72
----
-5110

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + 66 * - 84 + MAX ( ALL + 46 ) * 11 + - 72
----
-5110

query I rowsort
SELECT - 38 * 63 col0
----
-2394

query I rowsort
SELECT + 1 col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1972
SELECT + 5 DIV - 96 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1972
SELECT + 5 / - 96 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1973
SELECT - + 83 * - + 53 * - 61 + - 6 + + COUNT( * ), 71 AS col0
----
-268344
71

skipif mysql # not compatible
query II rowsort label-1973
SELECT - + 83 * - + 53 * - 61 + - 6 + + COUNT ( * ), 71 AS col0
----
-268344
71

query I rowsort
SELECT + 79 - - 25
----
104

query I rowsort
SELECT + 18 * + ( + 24 ) * + 99 AS col2
----
42768

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

query I rowsort
SELECT DISTINCT - 18 col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1978
SELECT DISTINCT - - 75 + - 85 + + 37 DIV ( - 6 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - - 75 + - 85 + + 37 / ( - 6 ) AS col0
----
-16

query I rowsort
SELECT ALL + - 13 + 36 * 92
----
3299

query I rowsort
SELECT - 54 * 85 AS col0
----
-4590

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

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

query I rowsort
SELECT CASE + + 47 WHEN + 94 THEN ( + - 31 ) - ( + 11 ) END AS col0
----
NULL

query I rowsort
SELECT ALL - + 51 AS col1
----
-51

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

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

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

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

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

query I rowsort
SELECT - 61 col2
----
-61

query II rowsort
SELECT DISTINCT 13 col2, - 14 + 94 AS col2
----
13
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1989
SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST( - - ( - 54 ) AS SIGNED ) AS col2
----
-14
362880

skipif mysql # not compatible
query II rowsort label-1989
SELECT - 14, NULLIF ( 70, 46 ) * 96 * - CAST ( - - ( - 54 ) AS INTEGER ) AS col2
----
-14
362880

onlyif mysql # aggregate syntax: 
query II rowsort label-1990
SELECT ALL 15 AS col2, SUM( - 94 ) AS col2
----
15
-94

skipif mysql # not compatible
query II rowsort label-1990
SELECT ALL 15 AS col2, SUM ( - 94 ) AS col2
----
15
-94

query I rowsort
SELECT ALL 87 - + 47 AS col0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1992
SELECT ( 99 ) + - CAST( NULL AS SIGNED ) * + 76 * 34 * - - MIN( + + 33 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1992
SELECT ( 99 ) + - CAST ( NULL AS INTEGER ) * + 76 * 34 * - - MIN ( + + 33 ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1993
SELECT ALL ( + AVG ( ALL CAST( NULL AS SIGNED ) ) ) - 21 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL ( + AVG ( ALL CAST ( NULL AS INTEGER ) ) ) - 21 + - 92 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 24 AS col0, + 30 AS col0
----
24
30

query I rowsort
SELECT DISTINCT 76 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1996
SELECT CAST( 17 AS SIGNED ) * - ( - 8 )
----
136

skipif mysql # not compatible
query I rowsort label-1996
SELECT CAST ( 17 AS INTEGER ) * - ( - 8 )
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1997
SELECT ALL 82 AS col1, - MAX( 37 ) + - SUM( + CASE + 12 WHEN - 68 + - 29 + 26 THEN NULL WHEN - CAST( + 66 AS SIGNED ) THEN + - 31 * - + 37 + + 97 + + 95 END ) + - 90 * - - 6
----
82
NULL

skipif mysql # not compatible
query II rowsort label-1997
SELECT ALL 82 AS col1, - MAX ( 37 ) + - SUM ( + CASE + 12 WHEN - 68 + - 29 + 26 THEN NULL WHEN - CAST ( + 66 AS INTEGER ) THEN + - 31 * - + 37 + + 97 + + 95 END ) + - 90 * - - 6
----
82
NULL

query I rowsort
SELECT 68 - + 35
----
33

query I rowsort
SELECT ( ( 13 ) ) * + - 79 col2
----
-1027

query I rowsort
SELECT 78 - - 20 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT COUNT( * ) * - MIN( DISTINCT - 3 ) * - 55
----
-165

skipif mysql # not compatible
query I rowsort label-2001
SELECT COUNT ( * ) * - MIN ( DISTINCT - 3 ) * - 55
----
-165

query I rowsort
SELECT 87 + - 5
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2003
SELECT CAST( - - 6 AS SIGNED ) DIV - + 87
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT CAST ( - - 6 AS INTEGER ) / - + 87
----
0

query I rowsort
SELECT ALL + 83 * + 25
----
2075

query I rowsort
SELECT 2 col2
----
2

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

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

query II rowsort
SELECT ALL 4, 81 + 16 * ( - + 41 ) + - 33 AS col2
----
4
-608

query I rowsort
SELECT ALL + 92 * + 80 AS col0
----
7360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2009
SELECT + 76 + + 70 + + - 25 + MAX( + CAST( NULL AS SIGNED ) ) - + 45 / - + NULLIF ( - 33, + 24 * - 52 ) * - 81 * - 91 * - COALESCE ( 62, + SUM( ALL + 16 ), + SUM( - 20 ) ) * + - COUNT( * ) + - - 42 / CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2009
SELECT + 76 + + 70 + + - 25 + MAX ( + CAST ( NULL AS INTEGER ) ) - + 45 / - + NULLIF ( - 33, + 24 * - 52 ) * - 81 * - 91 * - COALESCE ( 62, + SUM ( ALL + 16 ), + SUM ( - 20 ) ) * + - COUNT ( * ) + - - 42 / CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2010
SELECT DISTINCT 65 * + COUNT( * ) + + + 97 * + 15, 46 * 95 AS col1
----
1520
4370

skipif mysql # not compatible
query II rowsort label-2010
SELECT DISTINCT 65 * + COUNT ( * ) + + + 97 * + 15, 46 * 95 AS col1
----
1520
4370

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

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

query I rowsort
SELECT ALL - - 99 AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2013
SELECT DISTINCT + 49 DIV + 34 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT + 49 / + 34 AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2014
SELECT COUNT( * ) * - - COUNT( * ) * + 24 AS col2, + 20
----
24
20

skipif mysql # not compatible
query II rowsort label-2014
SELECT COUNT ( * ) * - - COUNT ( * ) * + 24 AS col2, + 20
----
24
20

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT - 93 * NULLIF ( 76, - MIN( + 40 ) ) * - 0 + - 52 + COUNT( * ) col0
----
-51

skipif mysql # not compatible
query I rowsort label-2017
SELECT - 93 * NULLIF ( 76, - MIN ( + 40 ) ) * - 0 + - 52 + COUNT ( * ) col0
----
-51

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

query I rowsort
SELECT ALL + - 97 - 3 + - 97 + - - COALESCE ( + 67, + 50 + - 63, + + 51 + 34 )
----
-130

query I rowsort
SELECT + 2 + - - 60 col1
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-2021
SELECT 85 * 87 + + 7 DIV - 54
----
7395

skipif mysql # not compatible
query I rowsort label-2021
SELECT 85 * 87 + + 7 / - 54
----
7395

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + 58 + + 24 + + NULLIF ( + COUNT( * ), 40 - - - 24 ) - 52 * + - 71
----
3775

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 58 + + 24 + + NULLIF ( + COUNT ( * ), 40 - - - 24 ) - 52 * + - 71
----
3775

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT ALL 70 - 54 DIV + + 13 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-2023
SELECT ALL 70 - 54 / + + 13 AS col2
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2024
SELECT DISTINCT COALESCE ( + 21, 84 * 10 DIV + - MIN( + - CAST( 13 AS SIGNED ) ) ) AS col0, + COUNT( * ) * - + COUNT( * ) * 24 AS col0
----
21
-24

skipif mysql # not compatible
query II rowsort label-2024
SELECT DISTINCT COALESCE ( + 21, 84 * 10 / + - MIN ( + - CAST ( 13 AS INTEGER ) ) ) AS col0, + COUNT ( * ) * - + COUNT ( * ) * 24 AS col0
----
21
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT 23 * CAST( NULL AS SIGNED ) + + COUNT( * ) - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT 23 * CAST ( NULL AS INTEGER ) + + COUNT ( * ) - 91 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2026
SELECT ALL 10 * ( - COUNT( * ) ) DIV - - 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL 10 * ( - COUNT ( * ) ) / - - 26 AS col0
----
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2028
SELECT + CAST( NULL AS SIGNED ) * + 63, - COUNT( * ) + + 48 DIV - MAX( ALL - 16 ) AS col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-2028
SELECT + CAST ( NULL AS INTEGER ) * + 63, - COUNT ( * ) + + 48 / - MAX ( ALL - 16 ) AS col2
----
NULL
2

query II rowsort
SELECT DISTINCT ( 76 ), - 69 col1
----
76
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT + CAST( - + 81 AS SIGNED ) + 52
----
-29

skipif mysql # not compatible
query I rowsort label-2030
SELECT + CAST ( - + 81 AS INTEGER ) + 52
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2031
SELECT DISTINCT 9 * + COUNT( * ) AS col0, 40 * AVG ( - + CAST( NULL AS DECIMAL ) )
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2031
SELECT DISTINCT 9 * + COUNT ( * ) AS col0, 40 * AVG ( - + CAST ( NULL AS REAL ) )
----
9
NULL

query I rowsort
SELECT ALL 68 + 28 + - + 92 AS col2
----
4

query I rowsort
SELECT + 32 - - + 21 * 51 * - 77 * - ( - 78 )
----
-6432394

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT + MIN( 12 ) * 24
----
288

skipif mysql # not compatible
query I rowsort label-2034
SELECT + MIN ( 12 ) * 24
----
288

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2036
SELECT ALL ( 57 ) DIV - COUNT( ALL 65 ) + 61 DIV + 66 * COUNT( * )
----
-57

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL ( 57 ) / - COUNT ( ALL 65 ) + 61 / + 66 * COUNT ( * )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2037
SELECT ALL + ( - 96 ) DIV - 15 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL + ( - 96 ) / - 15 AS col0
----
6

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2040
SELECT DISTINCT + 30 * + 87 - 23 + - 76 col1, + MAX( ALL + - 23 ) * + - 61 * - 1 + 25 * - CASE + 62 WHEN - 46 / + 66 * - 84 THEN + 16 ELSE + 56 END - + 21
----
2511
-2824

skipif mysql # not compatible
query II rowsort label-2040
SELECT DISTINCT + 30 * + 87 - 23 + - 76 col1, + MAX ( ALL + - 23 ) * + - 61 * - 1 + 25 * - CASE + 62 WHEN - 46 / + 66 * - 84 THEN + 16 ELSE + 56 END - + 21
----
2511
-2824

query I rowsort
SELECT - ( 17 ) * 86 + 33 + - 67 - + + ( + 66 )
----
-1562

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2044
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2045
SELECT ALL - COALESCE ( + COUNT( * ), + SUM( DISTINCT - - 26 ) * 99 + 25 * - CAST( NULL AS SIGNED ) ) DIV COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - COALESCE ( + COUNT ( * ), + SUM ( DISTINCT - - 26 ) * 99 + 25 * - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL COUNT( * ) * - 30 * + 20 - + ( 61 )
----
-661

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL COUNT ( * ) * - 30 * + 20 - + ( 61 )
----
-661

query I rowsort
SELECT ALL - 0 * - + 57
----
0

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

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

query I rowsort
SELECT + 46 + - 58 col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT - 52 DIV - - 30 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2050
SELECT - 52 / - - 30 AS col2
----
-1

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

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

query I rowsort
SELECT COALESCE ( + - 75, - NULLIF ( - - 34, - 23 + 2 ) )
----
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2054
SELECT - 16 DIV + - 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2054
SELECT - 16 / + - 61 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT COUNT( DISTINCT - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) )
----
0

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

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

query I rowsort
SELECT - 68 + - - 73
----
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2059
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) + - ( + + 16 ) + - 99 / + 11 * 70
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) + - ( + + 16 ) + - 99 / + 11 * 70
----
NULL

query II rowsort
SELECT ALL 93, + COALESCE ( - + 24, + - 81, + 69 ) AS col0
----
93
-24

query I rowsort
SELECT DISTINCT + 19 + - 92 AS col2
----
-73

query I rowsort
SELECT + 14 - + - 80 AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT - 62 + MIN( 56 ) + - ( + 32 ) * + + 53 + + CAST( - + 31 AS SIGNED ) + - 0
----
-1733

skipif mysql # not compatible
query I rowsort label-2063
SELECT - 62 + MIN ( 56 ) + - ( + 32 ) * + + 53 + + CAST ( - + 31 AS INTEGER ) + - 0
----
-1733

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2065
SELECT - NULLIF ( - - COUNT( * ), + COALESCE ( - + 66, 80, + 87 / 34 + - ( - 41 ) ) * + 2 - - + COALESCE ( + ( - - 62 ), - 79 - 87 + 22 * - - 52, - 90 + + 28 ) / 61 ), 27 AS col2
----
-1
27

skipif mysql # not compatible
query II rowsort label-2065
SELECT - NULLIF ( - - COUNT ( * ), + COALESCE ( - + 66, 80, + 87 / 34 + - ( - 41 ) ) * + 2 - - + COALESCE ( + ( - - 62 ), - 79 - 87 + 22 * - - 52, - 90 + + 28 ) / 61 ), 27 AS col2
----
-1
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2067
SELECT ALL - COALESCE ( 55, - - NULLIF ( - 51, + MIN( DISTINCT + + 30 ) / - 31 ) + + NULLIF ( - 7, - 76 * 59 + + + COUNT( * ) - + MAX( DISTINCT 29 ) * MIN( ALL - 99 ) * - 45 ) + - - 59 * + 65 + + ( + 52 ) ), 11 AS col1
----
-55
11

skipif mysql # not compatible
query II rowsort label-2067
SELECT ALL - COALESCE ( 55, - - NULLIF ( - 51, + MIN ( DISTINCT + + 30 ) / - 31 ) + + NULLIF ( - 7, - 76 * 59 + + + COUNT ( * ) - + MAX ( DISTINCT 29 ) * MIN ( ALL - 99 ) * - 45 ) + - - 59 * + 65 + + ( + 52 ) ), 11 AS col1
----
-55
11

query I rowsort
SELECT DISTINCT - + ( + 99 ) * 87 AS col1
----
-8613

query I rowsort
SELECT ALL + + 6 + - + 65 + 37 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT NULLIF ( - 13, 35 - + 20 * MAX( ALL + 58 ) + + COUNT( * ) + + 97 - - + 90 + - - COUNT( * ) - 61 + + 23 * + CASE 57 WHEN + + 93 THEN NULL WHEN + 81 / - 92 + CASE + - 22 WHEN - 89 * - - ( - 22 ) * + 55 THEN 20 WHEN 67 * 8 THEN - 6 / 37 WHEN 75 THEN NULL END * 22 * - + 24 THEN - ( 10 ) + - + COUNT( * ) * 36 * + 4 ELSE NULL END / - 92 * - - NULLIF ( + 73, SUM( + 38 ) ) * + 5 * - - 23 - 26 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT NULLIF ( - 13, 35 - + 20 * MAX ( ALL + 58 ) + + COUNT ( * ) + + 97 - - + 90 + - - COUNT ( * ) - 61 + + 23 * + CASE 57 WHEN + + 93 THEN NULL WHEN + 81 / - 92 + CASE + - 22 WHEN - 89 * - - ( - 22 ) * + 55 THEN 20 WHEN 67 * 8 THEN - 6 / 37 WHEN 75 THEN NULL END * 22 * - + 24 THEN - ( 10 ) + - + COUNT ( * ) * 36 * + 4 ELSE NULL END / - 92 * - - NULLIF ( + 73, SUM ( + 38 ) ) * + 5 * - - 23 - 26 ) AS col0
----
-13

query I rowsort
SELECT - 65 col1
----
-65

query I rowsort
SELECT + 74 + + 57 AS col1
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2073
SELECT + - 63 * 70 * - CASE + 35 WHEN + COUNT( DISTINCT 19 ) THEN NULL WHEN AVG ( - 62 ) THEN - 70 END - + - CASE - 55 WHEN + 40 THEN - - 26 + + + 93 * + + CAST( - + 82 AS SIGNED ) + - CASE - 4 WHEN 28 * - - COALESCE ( 7, - 44 ) THEN NULL ELSE - + 30 * + 98 + 11 END WHEN 10 * - - AVG ( ALL + + 55 ) THEN NULL WHEN - 26 THEN - + 3 * MIN( DISTINCT + + 72 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT + - 63 * 70 * - CASE + 35 WHEN + COUNT ( DISTINCT 19 ) THEN NULL WHEN AVG ( - 62 ) THEN - 70 END - + - CASE - 55 WHEN + 40 THEN - - 26 + + + 93 * + + CAST ( - + 82 AS INTEGER ) + - CASE - 4 WHEN 28 * - - COALESCE ( 7, - 44 ) THEN NULL ELSE - + 30 * + 98 + 11 END WHEN 10 * - - AVG ( ALL + + 55 ) THEN NULL WHEN - 26 THEN - + 3 * MIN ( DISTINCT + + 72 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2074
SELECT DISTINCT - 40 DIV + ( - COUNT( * ) ) - 46 - - COUNT( * ) * - 92
----
-98

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - 40 / + ( - COUNT ( * ) ) - 46 - - COUNT ( * ) * - 92
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2075
SELECT - 64 DIV - - 58 + ( 66 ) + 81 AS col0
----
146

skipif mysql # not compatible
query I rowsort label-2075
SELECT - 64 / - - 58 + ( 66 ) + 81 AS col0
----
146

query I rowsort
SELECT + + 44 AS col2
----
44

query I rowsort
SELECT ALL - + 40
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-2078
SELECT - 22 DIV + + 30 + - 90 - - - CASE + + 49 WHEN 43 THEN NULL ELSE + NULLIF ( 10, + 22 DIV + 96 ) END + - - 14 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-2078
SELECT - 22 / + + 30 + - 90 - - - CASE + + 49 WHEN 43 THEN NULL ELSE + NULLIF ( 10, + 22 / + 96 ) END + - - 14 AS col2
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2079
SELECT DISTINCT COUNT( - - 18 ) - + 17 DIV - NULLIF ( - 67, 28 ) * - 43
----
1

skipif mysql # not compatible
query I rowsort label-2079
SELECT DISTINCT COUNT ( - - 18 ) - + 17 / - NULLIF ( - 67, 28 ) * - 43
----
1

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

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

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

query II rowsort
SELECT ALL - 88, + 78 * - 21 col0
----
-88
-1638

query I rowsort
SELECT DISTINCT 99 * CASE 13 WHEN - 97 + 92 THEN NULL WHEN 88 THEN + - 92 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT 26 * - CAST( - 57 AS SIGNED )
----
1482

skipif mysql # not compatible
query I rowsort label-2084
SELECT 26 * - CAST ( - 57 AS INTEGER )
----
1482

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT 62 * - MIN( 3 )
----
-186

skipif mysql # not compatible
query I rowsort label-2085
SELECT 62 * - MIN ( 3 )
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT ALL 34 * 36 * SUM( + 29 ) AS col0
----
35496

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL 34 * 36 * SUM ( + 29 ) AS col0
----
35496

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT 78 + - + CASE - 75 WHEN + MIN( ALL + + 60 ) THEN - SUM( + 64 ) END - COUNT( DISTINCT 62 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2087
SELECT 78 + - + CASE - 75 WHEN + MIN ( ALL + + 60 ) THEN - SUM ( + 64 ) END - COUNT ( DISTINCT 62 ) AS col0
----
NULL

query I rowsort
SELECT 52 * + 52
----
2704

query II rowsort
SELECT ( - 62 ) * - 42 + + 30 + + 21 * 78, 63 col0
----
4272
63

query I rowsort
SELECT ALL - 96 + ( + - 73 ) + + 46 * 10 - + 80 AS col1
----
211

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

skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL 51 + - COUNT ( * ) AS col2
----
50

query II rowsort
SELECT 18, - 94 * - - 45 AS col1
----
18
-4230

onlyif mysql # aggregate syntax: 
query II rowsort label-2093
SELECT - 89 AS col0, + ( + - MAX( - - 71 ) )
----
-89
-71

skipif mysql # not compatible
query II rowsort label-2093
SELECT - 89 AS col0, + ( + - MAX ( - - 71 ) )
----
-89
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - 79 + 92 * + COUNT( * ) + + - NULLIF ( - + 20, - - ( + COUNT( * ) ) * - + 89 - COUNT( * ) ) * + 1 col1
----
33

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - 79 + 92 * + COUNT ( * ) + + - NULLIF ( - + 20, - - ( + COUNT ( * ) ) * - + 89 - COUNT ( * ) ) * + 1 col1
----
33

query II rowsort
SELECT 28, 19 AS col1
----
28
19

query I rowsort
SELECT 97 * - 68 + - 71
----
-6667

query I rowsort
SELECT 77 * + 3 AS col1
----
231

query II rowsort
SELECT 12 + + 53 AS col1, - 61 AS col1
----
65
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT + 69 * + + 89 * - + 63 * - CASE - 46 WHEN - + 72 THEN - 51 + - + 82 * - 17 * 29 + + 73 + + + 2 WHEN 5 + - COUNT( * ) + + + 12 * + - 50 * - 84 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT + 69 * + + 89 * - + 63 * - CASE - 46 WHEN - + 72 THEN - 51 + - + 82 * - 17 * 29 + + 73 + + + 2 WHEN 5 + - COUNT ( * ) + + + 12 * + - 50 * - 84 THEN NULL END
----
NULL

query I rowsort
SELECT ALL + + 79 * + 4
----
316

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

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

query II rowsort
SELECT 37, 56 * + - 56 * - - 17 AS col2
----
37
-53312

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL + + ( + 22 ) - COUNT( DISTINCT + 19 ) * + - 29 col2
----
51

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + + ( + 22 ) - COUNT ( DISTINCT + 19 ) * + - 29 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT CASE COUNT( * ) WHEN 70 THEN - MAX( ALL 83 ) WHEN - 31 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT CASE COUNT ( * ) WHEN 70 THEN - MAX ( ALL 83 ) WHEN - 31 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT 46 - 37 + + + MIN( ALL 93 )
----
102

skipif mysql # not compatible
query I rowsort label-2106
SELECT 46 - 37 + + + MIN ( ALL 93 )
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT - COUNT( * ) * MAX( DISTINCT + + ( - 76 ) ) * + - 98
----
-7448

skipif mysql # not compatible
query I rowsort label-2107
SELECT - COUNT ( * ) * MAX ( DISTINCT + + ( - 76 ) ) * + - 98
----
-7448

query I rowsort
SELECT - ( - 51 ) + + 21 AS col2
----
72

query II rowsort
SELECT DISTINCT - 95, 17 AS col2
----
-95
17

query I rowsort
SELECT + 55 + - 71 * + 87
----
-6122

query I rowsort
SELECT - - 15 AS col2
----
15

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

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

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

skipif mysql # not compatible
query I rowsort label-2113
SELECT - CAST ( NULL AS INTEGER ) * 20 col2
----
NULL

query I rowsort
SELECT 33 * - 73 AS col2
----
-2409

query I rowsort
SELECT + 10 col1
----
10

query I rowsort
SELECT ALL - 7 AS col1
----
-7

query I rowsort
SELECT ALL 87 + 97
----
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / + 96 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT DISTINCT 16 + - 56 * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT 16 + - 56 * - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL COUNT( * ) + 14 + - - 34 + - + 64 * 35
----
-2191

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL COUNT ( * ) + 14 + - - 34 + - + 64 * 35
----
-2191

onlyif mysql # DIV for integer division: 
query I rowsort label-2121
SELECT ( + + 79 ) DIV - - ( 25 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2121
SELECT ( + + 79 ) / - - ( 25 ) AS col2
----
3

query I rowsort
SELECT ALL 51 + - 29
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT MAX( - 16 ) - + COALESCE ( - + 56, + 8 ) + + 41 - + 63 * - - ( 96 ) col1
----
-5967

skipif mysql # not compatible
query I rowsort label-2123
SELECT MAX ( - 16 ) - + COALESCE ( - + 56, + 8 ) + + 41 - + 63 * - - ( 96 ) col1
----
-5967

query II rowsort
SELECT ALL 45 * + 64, - 54 AS col0
----
2880
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT + 71 * + 35 + + MIN( 85 ) AS col2
----
2570

skipif mysql # not compatible
query I rowsort label-2125
SELECT + 71 * + 35 + + MIN ( 85 ) AS col2
----
2570

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT + SUM( 20 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2126
SELECT + SUM ( 20 ) AS col0
----
20

query II rowsort
SELECT 12 * - + 4, 38 AS col1
----
-48
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2128
SELECT DISTINCT - 57 - - - NULLIF ( + 75, + CAST( NULL AS SIGNED ) ) AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT - 57 - - - NULLIF ( + 75, + CAST ( NULL AS INTEGER ) ) AS col2
----
-132

query I rowsort
SELECT ALL + - 43 * 97 * + 71 + 55 * + - 73
----
-300156

query I rowsort
SELECT ALL 50 - + + 93 AS col2
----
-43

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

query I rowsort
SELECT ALL + - 51 * 73
----
-3723

query I rowsort
SELECT ALL + 17 col2
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT COUNT( * ) - + 20 + ( - + 27 ) DIV - 41 * - 72 DIV - - 37 + + + 98 * 4 AS col0
----
373

skipif mysql # not compatible
query I rowsort label-2134
SELECT COUNT ( * ) - + 20 + ( - + 27 ) / - 41 * - 72 / - - 37 + + + 98 * 4 AS col0
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT - + 88 + 72 * + NULLIF ( COUNT( * ), 24 / + 11 )
----
-16

skipif mysql # not compatible
query I rowsort label-2135
SELECT - + 88 + 72 * + NULLIF ( COUNT ( * ), 24 / + 11 )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2136
SELECT ALL + + 76 - - 60 + + COALESCE ( - 34, - 58 DIV NULLIF ( + - 92, - CASE WHEN - 4 IN ( + - 43, COALESCE ( 35, - 14 DIV - + 71 * + MAX( + + 69 ) + + 97 * MIN( DISTINCT + 80 ) ), - AVG ( 61 ), + + 73 ) THEN - COUNT( * ) WHEN 73 IS NULL THEN - 62 END + + - 90 + - 47 ) * - + 12 ) * + 33 * 39 AS col2, + 99 AS col0
----
-43622
99

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL + + 76 - - 60 + + COALESCE ( - 34, - 58 / NULLIF ( + - 92, - CASE WHEN - 4 IN ( + - 43, COALESCE ( 35, - 14 / - + 71 * + MAX ( + + 69 ) + + 97 * MIN ( DISTINCT + 80 ) ), - AVG ( 61 ), + + 73 ) THEN - COUNT ( * ) WHEN 73 IS NULL THEN - 62 END + + - 90 + - 47 ) * - + 12 ) * + 33 * 39 AS col2, + 99 AS col0
----
-43622
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2137
SELECT - 69 DIV + - ( + 83 ) * - + 24 + 14 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-2137
SELECT - 69 / + - ( + 83 ) * - + 24 + 14 AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2138
SELECT ALL 39 * + - CAST( - 10 AS SIGNED ) * + 89 * - - COALESCE ( + - 29, - - 6 ) - 69, COUNT( * ) AS col1
----
-1006659
1

skipif mysql # not compatible
query II rowsort label-2138
SELECT ALL 39 * + - CAST ( - 10 AS INTEGER ) * + 89 * - - COALESCE ( + - 29, - - 6 ) - 69, COUNT ( * ) AS col1
----
-1006659
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT - MIN( ALL + 37 ) * + ( COUNT( * ) ) + + 35 + + COUNT( * ) * 5
----
3

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - MIN ( ALL + 37 ) * + ( COUNT ( * ) ) + + 35 + + COUNT ( * ) * 5
----
3

query I rowsort
SELECT DISTINCT + 35 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2142
SELECT - - COALESCE ( + + COALESCE ( + 26, + + 28, - 45 + - COUNT( * ) - - 85 ), - 31, 96 / + 63 ) + CAST( NULL AS SIGNED ) + + COUNT( * ) / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-2142
SELECT - - COALESCE ( + + COALESCE ( + 26, + + 28, - 45 + - COUNT ( * ) - - 85 ), - 31, 96 / + 63 ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) / - 15
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT - 72 + + 78 * COUNT( DISTINCT + 28 )
----
6

skipif mysql # not compatible
query I rowsort label-2144
SELECT - 72 + + 78 * COUNT ( DISTINCT + 28 )
----
6

onlyif mysql # aggregate syntax: 
query III rowsort label-2145
SELECT - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT( * ) AS col1
----
-75
-13775
1

skipif mysql # not compatible
query III rowsort label-2145
SELECT - + ( 75 ) AS col1, + 19 * - - 25 * + - 29, COUNT ( * ) AS col1
----
-75
-13775
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + COUNT( ALL + - 47 ) * - + 41 + - 38 AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-2146
SELECT + COUNT ( ALL + - 47 ) * - + 41 + - 38 AS col0
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2147
SELECT - 99 * - + COUNT( * ) * - NULLIF ( + + CAST( NULL AS SIGNED ), + - 18 ) * + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-2147
SELECT - 99 * - + COUNT ( * ) * - NULLIF ( + + CAST ( NULL AS INTEGER ), + - 18 ) * + 89
----
NULL

query I rowsort
SELECT NULLIF ( + 7, + - 21 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2149
SELECT ALL + NULLIF ( 1, - + 27 ) * + COUNT( + 9 ) + - 47 - + 36 + + 24 + - 33 * - 79 * + 55, 95 AS col0
----
143327
95

skipif mysql # not compatible
query II rowsort label-2149
SELECT ALL + NULLIF ( 1, - + 27 ) * + COUNT ( + 9 ) + - 47 - + 36 + + 24 + - 33 * - 79 * + 55, 95 AS col0
----
143327
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2150
SELECT ALL NULLIF ( + 84, + - COUNT( * ) ) * + 78 * + 3 + - + 63 DIV + 63 DIV + + COUNT( + - 23 )
----
19655

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL NULLIF ( + 84, + - COUNT ( * ) ) * + 78 * + 3 + - + 63 / + 63 / + + COUNT ( + - 23 )
----
19655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2151
SELECT ALL CAST( + COALESCE ( + ( 42 ), - - COUNT( * ), + COUNT( * ) / - 43 ) AS SIGNED ) * COUNT( * ) + 70 col2
----
112

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL CAST ( + COALESCE ( + ( 42 ), - - COUNT ( * ), + COUNT ( * ) / - 43 ) AS INTEGER ) * COUNT ( * ) + 70 col2
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT SUM( + 47 ) * + 66 + 29 + + - 30
----
3101

skipif mysql # not compatible
query I rowsort label-2152
SELECT SUM ( + 47 ) * + 66 + 29 + + - 30
----
3101

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT ALL 74 * + 32 + + COUNT( * ), - 9 * 52 AS col2
----
2369
-468

skipif mysql # not compatible
query II rowsort label-2153
SELECT ALL 74 * + 32 + + COUNT ( * ), - 9 * 52 AS col2
----
2369
-468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2154
SELECT DISTINCT 43 * COUNT( * ) + - 17 DIV - 18 + 15 col0
----
58

skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT 43 * COUNT ( * ) + - 17 / - 18 + 15 col0
----
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2156
SELECT NULLIF ( 37, - - 86 * CASE - 71 WHEN - 66 + 80 + - CASE - 9 WHEN 33 THEN + 35 WHEN 51 + - CAST( NULL AS SIGNED ) THEN - - SUM( ALL 45 ) ELSE 97 END * MIN( DISTINCT + 42 ) THEN - - 83 ELSE NULL END * - 98 )
----
37

skipif mysql # not compatible
query I rowsort label-2156
SELECT NULLIF ( 37, - - 86 * CASE - 71 WHEN - 66 + 80 + - CASE - 9 WHEN 33 THEN + 35 WHEN 51 + - CAST ( NULL AS INTEGER ) THEN - - SUM ( ALL 45 ) ELSE 97 END * MIN ( DISTINCT + 42 ) THEN - - 83 ELSE NULL END * - 98 )
----
37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + 92 + - MAX( ALL - + 18 ) - + 63 + + 86 AS col0
----
133

skipif mysql # not compatible
query I rowsort label-2158
SELECT + 92 + - MAX ( ALL - + 18 ) - + 63 + + 86 AS col0
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2159
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + COALESCE ( + 61, + - 59 )
----
NULL
61

skipif mysql # not compatible
query II rowsort label-2159
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + COALESCE ( + 61, + - 59 )
----
NULL
61

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT COUNT( - + 29 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2162
SELECT COUNT ( - + 29 ) AS col0
----
1

query I rowsort
SELECT ALL 95 * - 93
----
-8835

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

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

query II rowsort
SELECT - 43, 36 AS col1
----
-43
36

query II rowsort
SELECT ALL 55 AS col0, 88 * + 55
----
55
4840

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL + NULLIF ( COUNT( * ), 51 ) * - 80 AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL + NULLIF ( COUNT ( * ), 51 ) * - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + 40 * - + MAX( DISTINCT 88 ) + 89
----
-3431

skipif mysql # not compatible
query I rowsort label-2169
SELECT + 40 * - + MAX ( DISTINCT 88 ) + 89
----
-3431

query II rowsort
SELECT DISTINCT 38, - 15 AS col2
----
38
-15

query II rowsort
SELECT - - 6 AS col2, 63
----
6
63

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2173
SELECT - + 52 AS col2, 0 - - + 49 + + 97 DIV + - 77 col1
----
-52
48

skipif mysql # not compatible
query II rowsort label-2173
SELECT - + 52 AS col2, 0 - - + 49 + + 97 / + - 77 col1
----
-52
48

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT ALL CASE - - CAST( NULL AS SIGNED ) WHEN - COALESCE ( + + 32, + - COALESCE ( - 76, - 46 * + CAST( 10 AS SIGNED ) + + 12 + 9 + + + AVG ( - 1 ) - ( - COUNT( * ) ) / - 31 ) / - AVG ( ALL - + 91 ) ) + 74 + - 93 * + - 17 THEN + + 71 ELSE + 48 END
----
48

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL CASE - - CAST ( NULL AS INTEGER ) WHEN - COALESCE ( + + 32, + - COALESCE ( - 76, - 46 * + CAST ( 10 AS INTEGER ) + + 12 + 9 + + + AVG ( - 1 ) - ( - COUNT ( * ) ) / - 31 ) / - AVG ( ALL - + 91 ) ) + 74 + - 93 * + - 17 THEN + + 71 ELSE + 48 END
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT + 88 * - + SUM( DISTINCT - - 31 ) * + 88 AS col1
----
-240064

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT + 88 * - + SUM ( DISTINCT - - 31 ) * + 88 AS col1
----
-240064

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT + - SUM( DISTINCT + + 6 ) * - - COALESCE ( - 22, - - COUNT( * ) + + - CASE - 96 WHEN + - 44 + COUNT( * ) THEN - ( - - COUNT( * ) ) * + 93 + - COUNT( * ) WHEN - + 89 * + + 42 THEN NULL ELSE NULL END * + + 19 + - CAST( NULL AS SIGNED ) * 42 * + 68 * - - 33 ) AS col1
----
132

skipif mysql # not compatible
query I rowsort label-2177
SELECT + - SUM ( DISTINCT + + 6 ) * - - COALESCE ( - 22, - - COUNT ( * ) + + - CASE - 96 WHEN + - 44 + COUNT ( * ) THEN - ( - - COUNT ( * ) ) * + 93 + - COUNT ( * ) WHEN - + 89 * + + 42 THEN NULL ELSE NULL END * + + 19 + - CAST ( NULL AS INTEGER ) * 42 * + 68 * - - 33 ) AS col1
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-2178
SELECT ALL 28 AS col1, MIN( ALL 12 ) AS col2
----
28
12

skipif mysql # not compatible
query II rowsort label-2178
SELECT ALL 28 AS col1, MIN ( ALL 12 ) AS col2
----
28
12

query II rowsort
SELECT DISTINCT + 4 AS col1, + 14 AS col2
----
4
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + COALESCE ( - - 69, + + 11 ) * + - MAX( + 84 )
----
-5796

skipif mysql # not compatible
query I rowsort label-2180
SELECT + COALESCE ( - - 69, + + 11 ) * + - MAX ( + 84 )
----
-5796

query I rowsort
SELECT ALL 12 col1
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2182
SELECT - 26 + - CASE - + 5 WHEN 17 + 91 * CAST( + CASE + 14 WHEN + - COUNT( * ) THEN NULL ELSE 58 END AS SIGNED ) THEN + ( 53 ) / - 98 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2182
SELECT - 26 + - CASE - + 5 WHEN 17 + 91 * CAST ( + CASE + 14 WHEN + - COUNT ( * ) THEN NULL ELSE 58 END AS INTEGER ) THEN + ( 53 ) / - 98 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2183
SELECT - 70 DIV MIN( DISTINCT + + 3 ) AS col1
----
-23

skipif mysql # not compatible
query I rowsort label-2183
SELECT - 70 / MIN ( DISTINCT + + 3 ) AS col1
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2184
SELECT ALL COUNT( * ) DIV - + 25 + + ( - 93 ) - + + ( - 28 ) + + 81 * + ( - 98 )
----
-8003

skipif mysql # not compatible
query I rowsort label-2184
SELECT ALL COUNT ( * ) / - + 25 + + ( - 93 ) - + + ( - 28 ) + + 81 * + ( - 98 )
----
-8003

query I rowsort
SELECT + 16 * + 84
----
1344

query I rowsort
SELECT - CASE + 49 WHEN + + 59 + + + 43 THEN + 36 / + 4 + ( 74 ) END + - + NULLIF ( - 50, 12 )
----
NULL

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

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

query I rowsort
SELECT ALL + NULLIF ( - 39, - 1 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2189
SELECT DISTINCT 82 DIV + 91 + - - 40 + - + COUNT( + + 87 ) AS col1, ( - 29 )
----
39
-29

skipif mysql # not compatible
query II rowsort label-2189
SELECT DISTINCT 82 / + 91 + - - 40 + - + COUNT ( + + 87 ) AS col1, ( - 29 )
----
39
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT + NULLIF ( - 47, + 42 * + 23 + - + ( MIN( + 86 ) ) )
----
-47

skipif mysql # not compatible
query I rowsort label-2190
SELECT + NULLIF ( - 47, + 42 * + 23 + - + ( MIN ( + 86 ) ) )
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2191
SELECT - 4 - + COUNT( + CAST( - 49 AS SIGNED ) ) * - 61 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2191
SELECT - 4 - + COUNT ( + CAST ( - 49 AS INTEGER ) ) * - 61 AS col2
----
57

query I rowsort
SELECT + 75 * 69 - + 2 AS col1
----
5173

query I rowsort
SELECT DISTINCT + 57 * 70 AS col1
----
3990

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL + 48 * + CASE - 24 WHEN + 46 THEN + 11 WHEN - 54 / - ( + + 18 ) + - - 89 + SUM( + + 25 ) THEN 82 * - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + 48 * + CASE - 24 WHEN + 46 THEN + 11 WHEN - 54 / - ( + + 18 ) + - - 89 + SUM ( + + 25 ) THEN 82 * - 21 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2195
SELECT ( - 40 ) AS col1, 51 * + - CAST( NULL AS SIGNED )
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-2195
SELECT ( - 40 ) AS col1, 51 * + - CAST ( NULL AS INTEGER )
----
-40
NULL

query I rowsort
SELECT ALL - 38 * 53 - - - 80
----
-2094

query I rowsort
SELECT + 50 * - 54 * + 21
----
-56700

query I rowsort
SELECT + 76 * 95
----
7220

onlyif mysql # aggregate syntax: 
query II rowsort label-2199
SELECT ALL - MIN( - 30 ) AS col0, - 20
----
30
-20

skipif mysql # not compatible
query II rowsort label-2199
SELECT ALL - MIN ( - 30 ) AS col0, - 20
----
30
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT + 24 DIV 65 * - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 24 / 65 * - 65 AS col0
----
0

query I rowsort
SELECT 44 + 26 AS col0
----
70

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2203
SELECT DISTINCT 73 DIV - - COUNT( * ), 96 DIV + 29 + 44 AS col2
----
73
47

skipif mysql # not compatible
query II rowsort label-2203
SELECT DISTINCT 73 / - - COUNT ( * ), 96 / + 29 + 44 AS col2
----
73
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 90 * - CASE COALESCE ( + 79, + 42 + + MIN( ALL + + 16 ) ) WHEN 37 THEN - - 18 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT 90 * - CASE COALESCE ( + 79, + 42 + + MIN ( ALL + + 16 ) ) WHEN 37 THEN - - 18 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT COALESCE ( 28, - 95 DIV - ( 79 ) * 53 ) + + 28 + + 52
----
108

skipif mysql # not compatible
query I rowsort label-2205
SELECT COALESCE ( 28, - 95 / - ( 79 ) * 53 ) + + 28 + + 52
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2206
SELECT ALL - 91 + - 34 - + - 90 DIV - + COUNT( * ), 44 * 8 AS col1
----
-215
352

skipif mysql # not compatible
query II rowsort label-2206
SELECT ALL - 91 + - 34 - + - 90 / - + COUNT ( * ), 44 * 8 AS col1
----
-215
352

query I rowsort
SELECT + 65 + 22 + - 91 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT DISTINCT - - 42 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - - 42 / - 40
----
-1

query I rowsort
SELECT ( + 28 ) + - 54 AS col0
----
-26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2211
SELECT ALL 57 + 56 DIV 92 * - - 2 AS col0, + COUNT( * ) - - + 78 * + 76
----
57
5929

skipif mysql # not compatible
query II rowsort label-2211
SELECT ALL 57 + 56 / 92 * - - 2 AS col0, + COUNT ( * ) - - + 78 * + 76
----
57
5929

query I rowsort
SELECT ALL 62 + 97 col1
----
159

query I rowsort
SELECT - 57 AS col0
----
-57

query I rowsort
SELECT + ( 19 ) * 14
----
266

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2215
SELECT - COALESCE ( + CAST( NULL AS SIGNED ), COUNT( * ) * - + 81 + - 13 * + + NULLIF ( COUNT( * ), - COUNT( * ) * - 5 ), - - 84 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-2215
SELECT - COALESCE ( + CAST ( NULL AS INTEGER ), COUNT ( * ) * - + 81 + - 13 * + + NULLIF ( COUNT ( * ), - COUNT ( * ) * - 5 ), - - 84 ) AS col2
----
94

query I rowsort
SELECT 82 + 30
----
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT ALL + 65 + - CASE + 5 WHEN - 92 THEN - + 6 WHEN - ( - 8 ) + + 0 + - 43 * + - COUNT( * ) * 79 * - 37 * 14 THEN CAST( NULL AS SIGNED ) * 15 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT ALL + 65 + - CASE + 5 WHEN - 92 THEN - + 6 WHEN - ( - 8 ) + + 0 + - 43 * + - COUNT ( * ) * 79 * - 37 * 14 THEN CAST ( NULL AS INTEGER ) * 15 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL + 54 * CAST( 74 AS SIGNED ) col0
----
3996

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL + 54 * CAST ( 74 AS INTEGER ) col0
----
3996

query I rowsort
SELECT ALL - 48 + 21 + - + 33
----
-60

query I rowsort
SELECT DISTINCT 46 + - - 60
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT 23 + - 54 * + CAST( + - AVG ( ALL + CASE 36 WHEN + ( CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) THEN + - 73 END ) AS SIGNED ) * - 7 + - 43 - + 43 * + - 22 + - + 91 + - + 5 * + MIN( + 1 ) / + COUNT( * ) * 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 23 + - 54 * + CAST ( + - AVG ( ALL + CASE 36 WHEN + ( CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) THEN + - 73 END ) AS INTEGER ) * - 7 + - 43 - + 43 * + - 22 + - + 91 + - + 5 * + MIN ( + 1 ) / + COUNT ( * ) * 15 AS col2
----
NULL

query II rowsort
SELECT 71 + + 84 + 41 AS col2, 76
----
196
76

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

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

query I rowsort
SELECT 61 * - 26 AS col1
----
-1586

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

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

query I rowsort
SELECT 67 + - + 20 + + 60 * 89
----
5387

query I rowsort
SELECT DISTINCT 22 - + - 59 AS col0
----
81

query II rowsort
SELECT 19 AS col0, 73
----
19
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL - COUNT( * ) * - 25 * + ( - 84 ) AS col1
----
-2100

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL - COUNT ( * ) * - 25 * + ( - 84 ) AS col1
----
-2100

query I rowsort
SELECT ALL 68 * - 43
----
-2924

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT DISTINCT 86 - - + 27 + - MIN( - 18 ) col1
----
131

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT 86 - - + 27 + - MIN ( - 18 ) col1
----
131

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

query I rowsort
SELECT DISTINCT - ( 4 ) AS col0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2234
SELECT DISTINCT SUM( DISTINCT + CAST( - 60 AS SIGNED ) ) * - COALESCE ( + 94, 35 * - 36 DIV + COUNT( * ) ) col2
----
5640

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT SUM ( DISTINCT + CAST ( - 60 AS INTEGER ) ) * - COALESCE ( + 94, 35 * - 36 / + COUNT ( * ) ) col2
----
5640

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT DISTINCT - CASE + 38 WHEN - + COALESCE ( + 74, 12 ) + - 67 * 31 / + + 64 THEN - 39 ELSE NULL END / + 78 / - + CASE - 77 WHEN CASE + 74 WHEN - MAX( ALL + 64 ) THEN - 63 + COUNT( * ) END THEN 29 / 16 * COALESCE ( 70, + 38 + - ( + 5 ) * - COUNT( * ), - 69 - 74 * - 8 ) * - - 66 + + 58 / - - 9 + - CAST( - ( + CASE CAST( - COUNT( * ) AS SIGNED ) WHEN - 69 * 96 THEN - 2 * - COALESCE ( - - 77, - 32 * - + 43 - + 40 + + 99 - MIN( DISTINCT 88 ) + - 78 + - + 34 + - 76 * + NULLIF ( + 18, - 99 + + 81 ) ) WHEN - 46 THEN 10 / ( 14 ) + CAST( + 97 AS SIGNED ) * 89 END ) AS SIGNED ) + 66 WHEN - 45 * COUNT( ALL 95 ) THEN NULL WHEN - 45 THEN NULL END * + 4 + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT DISTINCT - CASE + 38 WHEN - + COALESCE ( + 74, 12 ) + - 67 * 31 / + + 64 THEN - 39 ELSE NULL END / + 78 / - + CASE - 77 WHEN CASE + 74 WHEN - MAX ( ALL + 64 ) THEN - 63 + COUNT ( * ) END THEN 29 / 16 * COALESCE ( 70, + 38 + - ( + 5 ) * - COUNT ( * ), - 69 - 74 * - 8 ) * - - 66 + + 58 / - - 9 + - CAST ( - ( + CASE CAST ( - COUNT ( * ) AS INTEGER ) WHEN - 69 * 96 THEN - 2 * - COALESCE ( - - 77, - 32 * - + 43 - + 40 + + 99 - MIN ( DISTINCT 88 ) + - 78 + - + 34 + - 76 * + NULLIF ( + 18, - 99 + + 81 ) ) WHEN - 46 THEN 10 / ( 14 ) + CAST ( + 97 AS INTEGER ) * 89 END ) AS INTEGER ) + 66 WHEN - 45 * COUNT ( ALL 95 ) THEN NULL WHEN - 45 THEN NULL END * + 4 + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT 37 + - 51 AS col2
----
-14

query I rowsort
SELECT 11 * + 13
----
143

query I rowsort
SELECT 47 + + CASE - 51 WHEN 78 THEN 3 WHEN + 77 * 75 THEN NULL ELSE + 90 END * + 13
----
1217

query I rowsort
SELECT DISTINCT - 99 * 61 AS col2
----
-6039

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL + COALESCE ( 92, 81 - 43, + 33 * - 96 ) + + SUM( ALL - 97 ) * 53
----
-5049

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL + COALESCE ( 92, 81 - 43, + 33 * - 96 ) + + SUM ( ALL - 97 ) * 53
----
-5049

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT ALL - SUM( ALL 52 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - SUM ( ALL 52 ) AS col0
----
-52

query I rowsort
SELECT ALL - 81 + 27 * + 30 col2
----
729

query I rowsort
SELECT 37 * 79
----
2923

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

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

query I rowsort
SELECT ALL 54 * - 88
----
-4752

query I rowsort
SELECT - 38 * + 69 - + ( - 39 + + 2 * 92 ) AS col1
----
-2767

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

query I rowsort
SELECT ALL - 81 + - CASE - 82 WHEN 53 THEN 40 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 27 * 2
----
54

query I rowsort
SELECT DISTINCT - 63 + 40
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2251
SELECT 46 DIV - 7
----
-6

skipif mysql # not compatible
query I rowsort label-2251
SELECT 46 / - 7
----
-6

query I rowsort
SELECT 81 * + 51
----
4131

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT 52 * - COUNT( * ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-2253
SELECT 52 * - COUNT ( * ) col1
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT ALL 88 DIV 25 col0
----
3

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL 88 / 25 col0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2255
SELECT ALL 47 + - 78 DIV COALESCE ( 4, 57 )
----
28

skipif mysql # not compatible
query I rowsort label-2255
SELECT ALL 47 + - 78 / COALESCE ( 4, 57 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2256
SELECT CASE - ( 18 ) WHEN - 66 THEN CASE - 14 WHEN ( - COUNT( * ) ) THEN COUNT( * ) WHEN 3 + - CAST( - 27 AS SIGNED ) * 25 THEN + 35 * - 74 ELSE + 56 * - CASE 48 / + 76 WHEN 55 THEN NULL ELSE + 26 END END + - ( - 53 + COALESCE ( - 63, 48 * 73 + 43 * 18 ) ) * - 59 WHEN 99 THEN 40 END - - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT CASE - ( 18 ) WHEN - 66 THEN CASE - 14 WHEN ( - COUNT ( * ) ) THEN COUNT ( * ) WHEN 3 + - CAST ( - 27 AS INTEGER ) * 25 THEN + 35 * - 74 ELSE + 56 * - CASE 48 / + 76 WHEN 55 THEN NULL ELSE + 26 END END + - ( - 53 + COALESCE ( - 63, 48 * 73 + 43 * 18 ) ) * - 59 WHEN 99 THEN 40 END - - 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT 71 DIV 36
----
1

skipif mysql # not compatible
query I rowsort label-2257
SELECT 71 / 36
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT ALL + 46 + - MIN( DISTINCT - 11 )
----
57

skipif mysql # not compatible
query I rowsort label-2258
SELECT ALL + 46 + - MIN ( DISTINCT - 11 )
----
57

query I rowsort
SELECT ALL 41 * 18
----
738

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL + 37 DIV + 17 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL + 37 / + 17 AS col2
----
2

query I rowsort
SELECT ALL 87 * 66 AS col1
----
5742

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT 61 + COUNT( * ) DIV - NULLIF ( - 65, 30 + + 14 )
----
61

skipif mysql # not compatible
query I rowsort label-2262
SELECT 61 + COUNT ( * ) / - NULLIF ( - 65, 30 + + 14 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT CASE 12 WHEN - 32 THEN - COUNT( * ) + + 48 * + 41 END / 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2263
SELECT CASE 12 WHEN - 32 THEN - COUNT ( * ) + + 48 * + 41 END / 67 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2264
SELECT NULLIF ( + 14, + 82 ) + 15 DIV - 24 AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2264
SELECT NULLIF ( + 14, + 82 ) + 15 / - 24 AS col2
----
14

query I rowsort
SELECT DISTINCT 22 - 51 AS col2
----
-29

query I rowsort
SELECT ALL 81 * 43 AS col2
----
3483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2267
SELECT 12 + SUM( 40 ) DIV 59
----
12

skipif mysql # not compatible
query I rowsort label-2267
SELECT 12 + SUM ( 40 ) / 59
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT - COUNT( ALL - CASE 1 WHEN - 97 THEN + ( - 57 ) WHEN + 2 THEN NULL ELSE - 80 END )
----
-1

skipif mysql # not compatible
query I rowsort label-2268
SELECT - COUNT ( ALL - CASE 1 WHEN - 97 THEN + ( - 57 ) WHEN + 2 THEN NULL ELSE - 80 END )
----
-1

query I rowsort
SELECT DISTINCT 86 - 90 col0
----
-4

query I rowsort
SELECT ALL 45 * 22 AS col1
----
990

query I rowsort
SELECT DISTINCT 80 AS col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2272
SELECT ALL - MAX( CAST( 84 AS SIGNED ) ) AS col1
----
-84

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2273
SELECT CASE 23 WHEN + 53 + 35 THEN - 71 WHEN CASE 42 WHEN 94 THEN - NULLIF ( 6, 81 * - ( + 93 ) ) + 22 WHEN CAST( NULL AS SIGNED ) + 11 * NULLIF ( 86 - 72, COALESCE ( + 26, 3, - 93 ) ) THEN NULL WHEN - ( + CASE COUNT( * ) WHEN 56 * - 97 + + COUNT( * ) * + 48 THEN + CASE - 58 WHEN + 97 + COUNT( * ) THEN NULL WHEN 46 THEN - 53 ELSE NULL END * + 32 WHEN - 87 THEN + SUM( ALL - 26 ) ELSE 90 END ) + + 45 THEN - COUNT( * ) END + 82 THEN COUNT( * ) ELSE 40 END
----
40

skipif mysql # not compatible
query I rowsort label-2273
SELECT CASE 23 WHEN + 53 + 35 THEN - 71 WHEN CASE 42 WHEN 94 THEN - NULLIF ( 6, 81 * - ( + 93 ) ) + 22 WHEN CAST ( NULL AS INTEGER ) + 11 * NULLIF ( 86 - 72, COALESCE ( + 26, 3, - 93 ) ) THEN NULL WHEN - ( + CASE COUNT ( * ) WHEN 56 * - 97 + + COUNT ( * ) * + 48 THEN + CASE - 58 WHEN + 97 + COUNT ( * ) THEN NULL WHEN 46 THEN - 53 ELSE NULL END * + 32 WHEN - 87 THEN + SUM ( ALL - 26 ) ELSE 90 END ) + + 45 THEN - COUNT ( * ) END + 82 THEN COUNT ( * ) ELSE 40 END
----
40

query I rowsort
SELECT + 67 * - 97 - + 40
----
-6539

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT 86 * MIN( DISTINCT 68 ) AS col2
----
5848

skipif mysql # not compatible
query I rowsort label-2275
SELECT 86 * MIN ( DISTINCT 68 ) AS col2
----
5848

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

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

query I rowsort
SELECT CASE 44 WHEN COALESCE ( 52, 6 / - ( 66 ) + + 33 ) THEN NULL ELSE + 40 END
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT DISTINCT 32 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-2278
SELECT DISTINCT 32 / 76
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT CASE + 68 WHEN - 76 THEN - COUNT( * ) * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT CASE + 68 WHEN - 76 THEN - COUNT ( * ) * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL COUNT( DISTINCT - 66 ) * + 50 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL COUNT ( DISTINCT - 66 ) * + 50 AS col1
----
50

query I rowsort
SELECT + 73 * 81 AS col2
----
5913

query I rowsort
SELECT - - 5 * 78 AS col1
----
390

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT ALL + - 48 * ( COUNT( * ) ) + 20 * + 67 col2
----
1292

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + - 48 * ( COUNT ( * ) ) + 20 * + 67 col2
----
1292

query I rowsort
SELECT + 21 * 12 - 81 * 78
----
-6066

query I rowsort
SELECT ALL 94 * + 86
----
8084

query I rowsort
SELECT + 33 * 39
----
1287

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL + SUM( NULLIF ( 84, - 28 + - 29 * + ( 36 * - 81 - - ( 36 ) ) ) )
----
84

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL + SUM ( NULLIF ( 84, - 28 + - 29 * + ( 36 * - 81 - - ( 36 ) ) ) )
----
84

query I rowsort
SELECT ALL + - 77 AS col1
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2290
SELECT - COALESCE ( - ( 39 ), - 68 * - COUNT( * ) + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ), + 92 + - SUM( 34 ) ) * - 4 AS col0
----
-156

skipif mysql # not compatible
query I rowsort label-2290
SELECT - COALESCE ( - ( 39 ), - 68 * - COUNT ( * ) + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ), + 92 + - SUM ( 34 ) ) * - 4 AS col0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT ALL - 36 * 76 + + AVG ( DISTINCT + 82 ) / + CASE 79 * - 10 WHEN - 36 + 95 THEN NULL WHEN 33 / 29 THEN COUNT( ALL 80 ) - 35 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - 36 * 76 + + AVG ( DISTINCT + 82 ) / + CASE 79 * - 10 WHEN - 36 + 95 THEN NULL WHEN 33 / 29 THEN COUNT ( ALL 80 ) - 35 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT + - MAX( ALL 11 ) + - COUNT( * ) * 81 AS col2
----
-92

skipif mysql # not compatible
query I rowsort label-2292
SELECT + - MAX ( ALL 11 ) + - COUNT ( * ) * 81 AS col2
----
-92

query I rowsort
SELECT - + 78 - 30 AS col1
----
-108

query I rowsort
SELECT + - 9 + 41 * + 46 AS col1
----
1877

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL COALESCE ( - COUNT( * ), MAX( ALL + ( 17 ) ), + 24 + - 94 ) * + 25 + + ( 59 )
----
34

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL COALESCE ( - COUNT ( * ), MAX ( ALL + ( 17 ) ), + 24 + - 94 ) * + 25 + + ( 59 )
----
34

query I rowsort
SELECT - + 34 + - 74 * + 37
----
-2772

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

query I rowsort
SELECT DISTINCT + 70 + 12 * 22
----
334

query I rowsort
SELECT ALL - 48 + 88 AS col0
----
40

query I rowsort
SELECT - 49 + + ( 76 )
----
27

query I rowsort
SELECT - + 82 * - 4 AS col0
----
328

query I rowsort
SELECT ALL NULLIF ( - - 77, - 19 + 18 )
----
77

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

query I rowsort
SELECT ALL NULLIF ( + - 32, 70 ) AS col1
----
-32

query I rowsort
SELECT - 58 col2
----
-58

query I rowsort
SELECT + 75 + - 47 * - 17
----
874

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

query I rowsort
SELECT + 93 * 29 AS col0
----
2697

query I rowsort
SELECT ALL ( 25 )
----
25

query I rowsort
SELECT - 81 + - 56 AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT ALL CASE + 16 WHEN - MAX( + 34 ) THEN + 13 ELSE 37 END
----
37

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL CASE + 16 WHEN - MAX ( + 34 ) THEN + 13 ELSE 37 END
----
37

query I rowsort
SELECT DISTINCT NULLIF ( - + 43, 1 / - 73 ) AS col1
----
-43

query I rowsort
SELECT DISTINCT CASE WHEN ( 67 ) > NULL THEN 45 END * + 43 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2314
SELECT + 9 DIV NULLIF ( 6, ( ( 82 ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-2314
SELECT + 9 / NULLIF ( 6, ( ( 82 ) ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - CAST( NULL AS SIGNED ) + + MIN( 15 ) + + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-2315
SELECT - CAST ( NULL AS INTEGER ) + + MIN ( 15 ) + + 50
----
NULL

query I rowsort
SELECT + 27 - - - 3 AS col0
----
24

query I rowsort
SELECT DISTINCT COALESCE ( - - 18, CASE 35 WHEN 0 THEN + 9 END, + 78 ) * 13 AS col0
----
234

query I rowsort
SELECT ALL 91 * - 66 * + 45 AS col1
----
-270270

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT + 3 + + SUM( + 43 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2320
SELECT + 3 + + SUM ( + 43 ) AS col0
----
46

query I rowsort
SELECT - ( 67 )
----
-67

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2323
SELECT ALL + 79 DIV - 13 + + 15
----
9

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL + 79 / - 13 + + 15
----
9

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

skipif mysql # not compatible
query I rowsort label-2324
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2325
SELECT ALL + COUNT( * ) / - CASE CAST( + CASE 55 WHEN 41 + - COALESCE ( - CAST( NULL AS SIGNED ), 84 ) / 16 THEN NULLIF ( 0, + COUNT( * ) * - 92 ) + COUNT( * ) ELSE NULL END AS DECIMAL ) WHEN COUNT( * ) - - 11 THEN 4 END + 21 * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL + COUNT ( * ) / - CASE CAST ( + CASE 55 WHEN 41 + - COALESCE ( - CAST ( NULL AS INTEGER ), 84 ) / 16 THEN NULLIF ( 0, + COUNT ( * ) * - 92 ) + COUNT ( * ) ELSE NULL END AS REAL ) WHEN COUNT ( * ) - - 11 THEN 4 END + 21 * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2326
SELECT + - 48 + 12 + COUNT( * ) * - ( - 1 )
----
-35

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - 48 + 12 + COUNT ( * ) * - ( - 1 )
----
-35

query I rowsort
SELECT DISTINCT + + 43
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2328
SELECT DISTINCT + - 17 DIV - 63 - - 65 + + 74 * - 6 AS col2
----
-379

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT + - 17 / - 63 - - 65 + + 74 * - 6 AS col2
----
-379

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT DISTINCT + COUNT( * ) * + 42 - - 30 + + 87 * + 48 AS col1
----
4248

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT + COUNT ( * ) * + 42 - - 30 + + 87 * + 48 AS col1
----
4248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2332
SELECT + ( SUM( - 37 ) ) DIV 78 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2332
SELECT + ( SUM ( - 37 ) ) / 78 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT + MAX( 76 ) + 25 AS col1
----
101

skipif mysql # not compatible
query I rowsort label-2333
SELECT + MAX ( 76 ) + 25 AS col1
----
101

query I rowsort
SELECT + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT ALL 10 * - 75 + + 34 + - COUNT( * ) AS col2
----
-717

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL 10 * - 75 + + 34 + - COUNT ( * ) AS col2
----
-717

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

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

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

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

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

query I rowsort
SELECT + 22 * + 61 - - 39 - 15
----
1366

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

skipif mysql # not compatible
query I rowsort label-2340
SELECT + + 36 - - + COUNT ( * ) + + 70 AS col2
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT - CAST( + 79 AS SIGNED ) * - 45
----
3555

skipif mysql # not compatible
query I rowsort label-2341
SELECT - CAST ( + 79 AS INTEGER ) * - 45
----
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT CASE COUNT( * ) WHEN - ( - 89 ) * 75 THEN NULL WHEN - 6 THEN + COUNT( * ) * 89 WHEN 8 THEN NULL ELSE + 7 END
----
7

skipif mysql # not compatible
query I rowsort label-2342
SELECT CASE COUNT ( * ) WHEN - ( - 89 ) * 75 THEN NULL WHEN - 6 THEN + COUNT ( * ) * 89 WHEN 8 THEN NULL ELSE + 7 END
----
7

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

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

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

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

query I rowsort
SELECT ALL ( + COALESCE ( 19, 10, + 66 ) ) AS col0
----
19

query I rowsort
SELECT - 40 - - 73 + + 9
----
42

query I rowsort
SELECT DISTINCT NULLIF ( - 71, 73 * - NULLIF ( 52 + + 46 * 48, 36 ) ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL + 84 * - - MIN( ALL + - 34 ) AS col0
----
-2856

skipif mysql # not compatible
query I rowsort label-2349
SELECT ALL + 84 * - - MIN ( ALL + - 34 ) AS col0
----
-2856

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

skipif mysql # not compatible
query I rowsort label-2350
SELECT - 33 * 1 / - COUNT ( * )
----
33

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

query II rowsort
SELECT - 25 AS col2, 76 + 30 + 14 AS col1
----
-25
120

query I rowsort
SELECT 96 + 68 * - 3
----
-108

query I rowsort
SELECT ALL + ( 51 ) * 97
----
4947

query I rowsort
SELECT 2 * - - 70 * + 95 * 29 AS col2
----
385700

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

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

query I rowsort
SELECT 41 - 21 * + ( - 0 ) * 51 AS col0
----
41

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

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT + 67 + - ( + + COUNT ( * ) ) AS col1
----
66

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

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

query I rowsort
SELECT 30 + - - ( - 16 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + ( - + COUNT( * ) ) + + - 35 + + 81
----
45

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + ( - + COUNT ( * ) ) + + - 35 + + 81
----
45

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

query I rowsort
SELECT ALL + 33 * - 24 AS col1
----
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT 95 AS col0, + 11 + - - 47 - COUNT( * ) * 26
----
95
32

skipif mysql # not compatible
query II rowsort label-2364
SELECT 95 AS col0, + 11 + - - 47 - COUNT ( * ) * 26
----
95
32

query I rowsort
SELECT ALL - 22 + - 26 - 42
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT COUNT( * ) * + - 21 - 76
----
-97

skipif mysql # not compatible
query I rowsort label-2366
SELECT COUNT ( * ) * + - 21 - 76
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + + MIN( DISTINCT - - NULLIF ( + ( 24 ), 66 + 87 ) )
----
24

skipif mysql # not compatible
query I rowsort label-2367
SELECT + + MIN ( DISTINCT - - NULLIF ( + ( 24 ), 66 + 87 ) )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2368
SELECT + - 34, 95 + 1 + CAST( NULLIF ( 52, - 76 DIV COUNT( * ) ) AS SIGNED ) DIV COUNT( ALL 13 ) AS col1
----
-34
148

skipif mysql # not compatible
query II rowsort label-2368
SELECT + - 34, 95 + 1 + CAST ( NULLIF ( 52, - 76 / COUNT ( * ) ) AS INTEGER ) / COUNT ( ALL 13 ) AS col1
----
-34
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2369
SELECT - SUM( ALL - + 63 ) / - NULLIF ( 56, + 83 ) * + 25 + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT - SUM ( ALL - + 63 ) / - NULLIF ( 56, + 83 ) * + 25 + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT MAX( - 5 ) * + 81 * MIN( - 47 )
----
19035

skipif mysql # not compatible
query I rowsort label-2370
SELECT MAX ( - 5 ) * + 81 * MIN ( - 47 )
----
19035

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2372
SELECT ALL - 73 * - 35 + - + 97 * - COUNT( * )
----
2652

skipif mysql # not compatible
query I rowsort label-2372
SELECT ALL - 73 * - 35 + - + 97 * - COUNT ( * )
----
2652

query I rowsort
SELECT DISTINCT + 14 * 29 * + + 98
----
39788

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

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

query I rowsort
SELECT ALL + 81 - + 12
----
69

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

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

query I rowsort
SELECT ALL + ( - 77 ) * - - 73 col1
----
-5621

query I rowsort
SELECT + 74 * - 97 * + 53 - - 0
----
-380434

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2381
SELECT + CAST( NULL AS SIGNED ), - CAST( - 69 AS SIGNED ) AS col2
----
NULL
69

skipif mysql # not compatible
query II rowsort label-2381
SELECT + CAST ( NULL AS INTEGER ), - CAST ( - 69 AS INTEGER ) AS col2
----
NULL
69

query I rowsort
SELECT ALL + 21 - 74
----
-53

query I rowsort
SELECT - 40 * 87 + 16 - + 52 * + 54 col1
----
-6272

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2384
SELECT ALL - - 15, - COALESCE ( - MIN( 75 ), - 0 ) DIV ( 59 * 1 ) AS col2
----
15
1

skipif mysql # not compatible
query II rowsort label-2384
SELECT ALL - - 15, - COALESCE ( - MIN ( 75 ), - 0 ) / ( 59 * 1 ) AS col2
----
15
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2385
SELECT + ( - 94 ) * 75 + CAST( NULL AS DECIMAL ) / + 12 + 65 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT + ( - 94 ) * 75 + CAST ( NULL AS REAL ) / + 12 + 65 AS col0
----
NULL

query I rowsort
SELECT - 68 - - 83 * 25 AS col0
----
2007

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2387
SELECT ALL - 3, CAST( ( 26 ) AS SIGNED ) AS col2
----
-3
26

skipif mysql # not compatible
query II rowsort label-2387
SELECT ALL - 3, CAST ( ( 26 ) AS INTEGER ) AS col2
----
-3
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT + COUNT( * ) * 80 * + ( + 15 ) + - 34
----
1166

skipif mysql # not compatible
query I rowsort label-2388
SELECT + COUNT ( * ) * 80 * + ( + 15 ) + - 34
----
1166

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

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

query II rowsort
SELECT ALL 58 * + 22, 95 AS col0
----
1276
95

onlyif mysql # DIV for integer division: 
query I rowsort label-2391
SELECT ALL 70 DIV + ( + - CASE 90 WHEN 31 THEN NULL ELSE ( + 75 ) DIV + 58 END ) AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL 70 / + ( + - CASE 90 WHEN 31 THEN NULL ELSE ( + 75 ) / + 58 END ) AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2392
SELECT CASE 59 WHEN COALESCE ( COUNT( * ), 54, - 59 * - 52 + 38 * CASE 30 WHEN 3 / - CAST( ( + AVG ( DISTINCT - ( + 20 ) ) ) * 73 AS SIGNED ) + ( + 53 ) * COUNT( * ) THEN NULL ELSE 59 / AVG ( - 6 ) END ) * + 29 + 57 THEN + COALESCE ( + 48, - 51 + + 67 * NULLIF ( - 70, + 26 ), + 14 / 71 ) WHEN 29 THEN 46 + - COALESCE ( COUNT( * ), + 14 ) END + - 78 * CAST( 62 + - COUNT( * ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2392
SELECT CASE 59 WHEN COALESCE ( COUNT ( * ), 54, - 59 * - 52 + 38 * CASE 30 WHEN 3 / - CAST ( ( + AVG ( DISTINCT - ( + 20 ) ) ) * 73 AS INTEGER ) + ( + 53 ) * COUNT ( * ) THEN NULL ELSE 59 / AVG ( - 6 ) END ) * + 29 + 57 THEN + COALESCE ( + 48, - 51 + + 67 * NULLIF ( - 70, + 26 ), + 14 / 71 ) WHEN 29 THEN 46 + - COALESCE ( COUNT ( * ), + 14 ) END + - 78 * CAST ( 62 + - COUNT ( * ) AS REAL )
----
NULL

query I rowsort
SELECT ALL - 61 + - - 48 - - 19 + - NULLIF ( - 5, 34 ) * 64 col0
----
326

query I rowsort
SELECT ALL 22 * + ( + + 8 )
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-2395
SELECT 12 DIV + 92 * + + 26 col1
----
0

skipif mysql # not compatible
query I rowsort label-2395
SELECT 12 / + 92 * + + 26 col1
----
0

query I rowsort
SELECT ( + 65 ) + 78 AS col2
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT 2 DIV - - 42
----
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT 2 / - - 42
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT 37 DIV ( + 28 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT 37 / ( + 28 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL + ( + 17 ) + - 55 + - ( COUNT( * ) ) - 50 * 16
----
-839

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL + ( + 17 ) + - 55 + - ( COUNT ( * ) ) - 50 * 16
----
-839

onlyif mysql # aggregate syntax: 
query II rowsort label-2400
SELECT ALL - COUNT( * ) + + + 28, 27
----
27
27

skipif mysql # not compatible
query II rowsort label-2400
SELECT ALL - COUNT ( * ) + + + 28, 27
----
27
27

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2402
SELECT DISTINCT COALESCE ( - 18, + NULLIF ( - COUNT( * ), - 98 ) + CAST( + 93 AS SIGNED ) * 76 ) + 43 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT COALESCE ( - 18, + NULLIF ( - COUNT ( * ), - 98 ) + CAST ( + 93 AS INTEGER ) * 76 ) + 43 AS col1
----
25

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

query I rowsort
SELECT ALL + 53 * 89
----
4717

query I rowsort
SELECT 37 + 56 AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) + - - 36 + 89 * + COALESCE ( - MAX( ALL 95 ) * - 13, - 34 * NULLIF ( + 94, + NULLIF ( + 40, - 26 ) / 62 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) + - - 36 + 89 * + COALESCE ( - MAX ( ALL 95 ) * - 13, - 34 * NULLIF ( + 94, + NULLIF ( + 40, - 26 ) / 62 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT - COUNT( * ) + 14 - - 47 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-2407
SELECT - COUNT ( * ) + 14 - - 47 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT 90 + + 18 + - 49 * + COALESCE ( 66, - COUNT( * ) * - 61 ) + CASE + AVG ( - 89 ) + - 50 WHEN + 90 THEN NULL WHEN + 59 * MAX( 64 ) - 13 * + ( - MIN( - 23 ) ) THEN - 93 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2408
SELECT 90 + + 18 + - 49 * + COALESCE ( 66, - COUNT ( * ) * - 61 ) + CASE + AVG ( - 89 ) + - 50 WHEN + 90 THEN NULL WHEN + 59 * MAX ( 64 ) - 13 * + ( - MIN ( - 23 ) ) THEN - 93 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 22 - + - 77
----
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT - + COALESCE ( + 81, - NULLIF ( + 34, CAST( 16 AS SIGNED ) + - 36 ) + 87 * 68 )
----
-81

skipif mysql # not compatible
query I rowsort label-2411
SELECT - + COALESCE ( + 81, - NULLIF ( + 34, CAST ( 16 AS INTEGER ) + - 36 ) + 87 * 68 )
----
-81

query I rowsort
SELECT ( + 83 ) + - 75
----
8

query I rowsort
SELECT ALL + - 18 - - 60 * - 88 * - + 12 * 66 + + 80
----
4181822

query I rowsort
SELECT + + 82 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT ALL - CASE - 16 WHEN - - 27 THEN + 64 WHEN 72 THEN NULL ELSE 83 * - MIN( ALL - 38 ) + + ( 80 ) END
----
-3234

skipif mysql # not compatible
query I rowsort label-2415
SELECT ALL - CASE - 16 WHEN - - 27 THEN + 64 WHEN 72 THEN NULL ELSE 83 * - MIN ( ALL - 38 ) + + ( 80 ) END
----
-3234

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

query I rowsort
SELECT DISTINCT - 87 col2
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2418
SELECT ALL - MIN( DISTINCT + 19 ) DIV COUNT( * ) * + - MIN( 92 ) * + 92 - 4 AS col2
----
160812

skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL - MIN ( DISTINCT + 19 ) / COUNT ( * ) * + - MIN ( 92 ) * + 92 - 4 AS col2
----
160812

query I rowsort
SELECT DISTINCT - + CASE WHEN 26 NOT IN ( + + 88 ) THEN NULL ELSE + 24 END AS col0
----
NULL

query I rowsort
SELECT ALL - - 64 * + ( + 91 ) + + 8 * 18
----
5968

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL + 25 * - + 24 * + 65 + - 41 * COUNT( * )
----
-39041

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL + 25 * - + 24 * + 65 + - 41 * COUNT ( * )
----
-39041

query I rowsort
SELECT + + 30 AS col2
----
30

query I rowsort
SELECT ALL + - 51 * - 13 AS col1
----
663

onlyif mysql # aggregate syntax: 
query II rowsort label-2425
SELECT + COUNT( * ) * 69, CASE + 34 WHEN 15 * 62 THEN + COUNT( * ) ELSE NULL END - 4 * 94 AS col1
----
69
NULL

skipif mysql # not compatible
query II rowsort label-2425
SELECT + COUNT ( * ) * 69, CASE + 34 WHEN 15 * 62 THEN + COUNT ( * ) ELSE NULL END - 4 * 94 AS col1
----
69
NULL

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

query II rowsort
SELECT DISTINCT - 58 AS col1, - 41 - + + 53 AS col0
----
-58
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2428
SELECT DISTINCT - COUNT( * ) AS col1, ( 46 ) + + 58 + + + 87 DIV + 49 AS col0
----
-1
105

skipif mysql # not compatible
query II rowsort label-2428
SELECT DISTINCT - COUNT ( * ) AS col1, ( 46 ) + + 58 + + + 87 / + 49 AS col0
----
-1
105

query I rowsort
SELECT ALL - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ALL COUNT( * ) + MAX( DISTINCT + 60 ) + + + ( + 65 )
----
126

skipif mysql # not compatible
query I rowsort label-2430
SELECT ALL COUNT ( * ) + MAX ( DISTINCT + 60 ) + + + ( + 65 )
----
126

query I rowsort
SELECT ALL + 57 + 68
----
125

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT ALL MAX( + 96 ) + - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-2433
SELECT ALL MAX ( + 96 ) + - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
95

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

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

query II rowsort
SELECT 46 AS col2, - 26 * 64 col0
----
46
-1664

query I rowsort
SELECT - 57 * 93
----
-5301

query I rowsort
SELECT + 63 * + + 61 * + 77
----
295911

query I rowsort
SELECT ALL 68 + - - 93 * - 30 + + 49 + - 58 AS col0
----
-2731

query I rowsort
SELECT ALL NULLIF ( - 75, 5 ) AS col2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2440
SELECT ALL ( + + CAST( - COALESCE ( 79, + 28, 54, + 37 ) AS SIGNED ) ) + + 99 * 58
----
5663

skipif mysql # not compatible
query I rowsort label-2440
SELECT ALL ( + + CAST ( - COALESCE ( 79, + 28, 54, + 37 ) AS INTEGER ) ) + + 99 * 58
----
5663

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2442
SELECT ALL 80 col0, SUM( DISTINCT - 24 ) * 49 DIV + 14 + - 45 * SUM( DISTINCT + 83 * 84 ) AS col1
----
80
-313824

skipif mysql # not compatible
query II rowsort label-2442
SELECT ALL 80 col0, SUM ( DISTINCT - 24 ) * 49 / + 14 + - 45 * SUM ( DISTINCT + 83 * 84 ) AS col1
----
80
-313824

query I rowsort
SELECT + 68 + - 82
----
-14

query I rowsort
SELECT - NULLIF ( + - 31, + 96 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2445
SELECT + COUNT( * ) - + - NULLIF ( - 1, - COALESCE ( - + 56, - COUNT( * ), COUNT( * ) / CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2445
SELECT + COUNT ( * ) - + - NULLIF ( - 1, - COALESCE ( - + 56, - COUNT ( * ), COUNT ( * ) / CAST ( NULL AS INTEGER ) ) )
----
0

query I rowsort
SELECT + 32 * + 73
----
2336

query I rowsort
SELECT + 96 * + 42
----
4032

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2448
SELECT + COUNT( * ) + 51 - 52 + ( CASE COUNT( * ) WHEN 97 THEN NULL WHEN MAX( ALL 51 ) * 77 + MAX( - ( - 60 ) + + 20 * 3 ) THEN NULL ELSE + 92 + CAST( ( CAST( - 3 AS DECIMAL ) ) AS SIGNED ) END ) * 88
----
7832

skipif mysql # not compatible
query I rowsort label-2448
SELECT + COUNT ( * ) + 51 - 52 + ( CASE COUNT ( * ) WHEN 97 THEN NULL WHEN MAX ( ALL 51 ) * 77 + MAX ( - ( - 60 ) + + 20 * 3 ) THEN NULL ELSE + 92 + CAST ( ( CAST ( - 3 AS REAL ) ) AS INTEGER ) END ) * 88
----
7832

onlyif mysql # DIV for integer division: 
query I rowsort label-2449
SELECT ALL + 56 DIV 79
----
0

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL + 56 / 79
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2450
SELECT + 15 AS col2, MIN( 24 )
----
15
24

skipif mysql # not compatible
query II rowsort label-2450
SELECT + 15 AS col2, MIN ( 24 )
----
15
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2451
SELECT + - CAST( - - 59 AS SIGNED ) * + - 88
----
5192

skipif mysql # not compatible
query I rowsort label-2451
SELECT + - CAST ( - - 59 AS INTEGER ) * + - 88
----
5192

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2452
SELECT - + 27 col1, - 41 * CAST( CAST( + 8 AS SIGNED ) AS SIGNED ) + 51
----
-27
-277

skipif mysql # not compatible
query II rowsort label-2452
SELECT - + 27 col1, - 41 * CAST ( CAST ( + 8 AS INTEGER ) AS INTEGER ) + 51
----
-27
-277

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

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL + MIN ( DISTINCT + - CAST ( 52 AS INTEGER ) )
----
-52

query I rowsort
SELECT DISTINCT - 32 * + + 2
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT + COUNT( * ) * - CASE + 53 WHEN + 38 THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT + COUNT ( * ) * - CASE + 53 WHEN + 38 THEN - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - NULLIF ( 28, + 16 * + - 84 + - 88 + - CASE COUNT( + 33 ) WHEN + 94 THEN - 66 WHEN ( - 35 ) THEN NULL END ) * - 20 - - 56
----
616

skipif mysql # not compatible
query I rowsort label-2456
SELECT - NULLIF ( 28, + 16 * + - 84 + - 88 + - CASE COUNT ( + 33 ) WHEN + 94 THEN - 66 WHEN ( - 35 ) THEN NULL END ) * - 20 - - 56
----
616

query I rowsort
SELECT - COALESCE ( + 48, + 89 - + 1 )
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT + + 25 DIV - + 65 * - 92 + 47 * - 48 * 97 col0
----
-218832

skipif mysql # not compatible
query I rowsort label-2458
SELECT + + 25 / - + 65 * - 92 + 47 * - 48 * 97 col0
----
-218832

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2460
SELECT - + 60 DIV 65
----
0

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + 60 / 65
----
0

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

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

query I rowsort
SELECT + - 43 AS col1
----
-43

query I rowsort
SELECT ALL + - 19
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2464
SELECT DISTINCT 59 * + CAST( NULL AS SIGNED ) - + COALESCE ( - + 92, - + 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT 59 * + CAST ( NULL AS INTEGER ) - + COALESCE ( - + 92, - + 40 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2465
SELECT ALL + 53 * - 14 + COUNT( * ) * - + 62 / + + 9 * - 41 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL + 53 * - 14 + COUNT ( * ) * - + 62 / + + 9 * - 41 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2466
SELECT - COALESCE ( + - 6, - - 33 ) - - - COALESCE ( - CAST( - 44 AS SIGNED ), - 4 + 86 DIV - 70 ) + COALESCE ( 24, 54 * 78 ) * 99 DIV - MIN( 21 + 70 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-2466
SELECT - COALESCE ( + - 6, - - 33 ) - - - COALESCE ( - CAST ( - 44 AS INTEGER ), - 4 + 86 / - 70 ) + COALESCE ( 24, 54 * 78 ) * 99 / - MIN ( 21 + 70 ) AS col0
----
-64

query I rowsort
SELECT 83 * 98 * - + 61 - - 66 col2
----
-496108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT + CAST( + - 42 AS SIGNED ) AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-2468
SELECT + CAST ( + - 42 AS INTEGER ) AS col2
----
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT COALESCE ( COUNT( * ), - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-2470
SELECT COALESCE ( COUNT ( * ), - 52 )
----
1

query I rowsort
SELECT ALL + ( - + 44 ) * - + 46 + - - 50 + + 52 AS col2
----
2126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT CAST( + 30 AS SIGNED ) * - - 64 + 28 + + 11 AS col2
----
1959

skipif mysql # not compatible
query I rowsort label-2472
SELECT CAST ( + 30 AS INTEGER ) * - - 64 + 28 + + 11 AS col2
----
1959

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT - 87 - - MAX( ALL - - ( + 92 ) ) + + 88 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-2473
SELECT - 87 - - MAX ( ALL - - ( + 92 ) ) + + 88 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL + 69 * - CAST( NULL AS SIGNED ) / 82 + - 29 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + 69 * - CAST ( NULL AS INTEGER ) / 82 + - 29 + - 68
----
NULL

query I rowsort
SELECT - 75 * - 3 AS col0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT ALL + MAX( DISTINCT - 10 ) * + + 83
----
-830

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL + MAX ( DISTINCT - 10 ) * + + 83
----
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2477
SELECT ALL - 8 * + - CAST( NULL AS SIGNED ) + - + 43 * - + 8 * + + 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2477
SELECT ALL - 8 * + - CAST ( NULL AS INTEGER ) + - + 43 * - + 8 * + + 96 AS col2
----
NULL

query I rowsort
SELECT - 51 + 74 AS col0
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-2479
SELECT ALL + 92 AS col1, 5 * COUNT( * ) + 38 AS col0
----
92
43

skipif mysql # not compatible
query II rowsort label-2479
SELECT ALL + 92 AS col1, 5 * COUNT ( * ) + 38 AS col0
----
92
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2480
SELECT ALL - 70 * + 89 * + 22 + 93 col2, - 44 * ( COUNT( * ) )
----
-136967
-44

skipif mysql # not compatible
query II rowsort label-2480
SELECT ALL - 70 * + 89 * + 22 + 93 col2, - 44 * ( COUNT ( * ) )
----
-136967
-44

query I rowsort
SELECT - 27 + - - 95
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT - MAX( - 62 )
----
62

skipif mysql # not compatible
query I rowsort label-2482
SELECT - MAX ( - 62 )
----
62

query I rowsort
SELECT 99 * + 44 + 7 * + 34 * - 48
----
-7068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2484
SELECT - NULLIF ( - CASE - - CAST( + 27 AS SIGNED ) WHEN - + CAST( 42 AS SIGNED ) THEN - 93 - + 67 WHEN CASE 33 WHEN 74 * - 3 + + 41 THEN - 88 + 86 ELSE NULL END THEN NULL WHEN 18 THEN NULL ELSE NULL END, + ( - 64 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2484
SELECT - NULLIF ( - CASE - - CAST ( + 27 AS INTEGER ) WHEN - + CAST ( 42 AS INTEGER ) THEN - 93 - + 67 WHEN CASE 33 WHEN 74 * - 3 + + 41 THEN - 88 + 86 ELSE NULL END THEN NULL WHEN 18 THEN NULL ELSE NULL END, + ( - 64 ) )
----
NULL

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

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

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

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

query I rowsort
SELECT - 8 + 80
----
72

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

skipif mysql # not compatible
query I rowsort label-2488
SELECT - 67 / + + COUNT ( + 69 )
----
-67

query II rowsort
SELECT 75, 27 col1
----
75
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2490
SELECT DISTINCT 96 DIV - 97 * COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT 96 / - 97 * COUNT ( * ) col0
----
0

query II rowsort
SELECT ALL + 75 col1, - 50 AS col0
----
75
-50

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2493
SELECT DISTINCT 66 AS col2, CAST( NULL AS DECIMAL ) AS col2
----
66
NULL

skipif mysql # not compatible
query II rowsort label-2493
SELECT DISTINCT 66 AS col2, CAST ( NULL AS REAL ) AS col2
----
66
NULL

query II rowsort
SELECT + ( - 52 ) * - - 27 + 40 AS col1, - 23
----
-1364
-23

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

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

query I rowsort
SELECT + - ( - ( + 3 ) ) + + 86 AS col0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT DISTINCT + 83 * 97 + ( - + 14 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT + 83 * 97 + ( - + 14 ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT + + COUNT( * ) + - ( + 56 ) AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-2498
SELECT + + COUNT ( * ) + - ( + 56 ) AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT - - 44 DIV + 26 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2499
SELECT - - 44 / + 26 AS col2
----
1

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

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

query I rowsort
SELECT + + 64 * + 98 * + 34
----
213248

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT + 51 + + 54 * SUM( 80 ) * + 56 + + COUNT( * ) - + 83 + 38 col0
----
241927

skipif mysql # not compatible
query I rowsort label-2502
SELECT + 51 + + 54 * SUM ( 80 ) * + 56 + + COUNT ( * ) - + 83 + 38 col0
----
241927

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + 20 + - 62 + - 93 + ( + - COUNT( * ) ) * + 80
----
-215

skipif mysql # not compatible
query I rowsort label-2503
SELECT + 20 + - 62 + - 93 + ( + - COUNT ( * ) ) * + 80
----
-215

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2504
SELECT + SUM( DISTINCT 71 ) DIV ( ( + 2 ) ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-2504
SELECT + SUM ( DISTINCT 71 ) / ( ( + 2 ) ) AS col1
----
35

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2506
SELECT ALL COUNT( * ) / + + 32 * + CAST( NULL AS DECIMAL ) * - + 85 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL COUNT ( * ) / + + 32 * + CAST ( NULL AS REAL ) * - + 85 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2507
SELECT DISTINCT + 64 DIV MIN( - 56 ) * + 5 * ( + 39 ) + COUNT( DISTINCT CASE - 38 WHEN - 41 THEN + 29 ELSE 1 END ) + 92 DIV - COUNT( * )
----
-286

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT + 64 / MIN ( - 56 ) * + 5 * ( + 39 ) + COUNT ( DISTINCT CASE - 38 WHEN - 41 THEN + 29 ELSE 1 END ) + 92 / - COUNT ( * )
----
-286

query II rowsort
SELECT - 46 AS col0, 14
----
-46
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT + + 12 + - 98 DIV + - 77
----
13

skipif mysql # not compatible
query I rowsort label-2509
SELECT + + 12 + - 98 / + - 77
----
13

query I rowsort
SELECT DISTINCT 93 * + 8
----
744

query I rowsort
SELECT CASE + 22 WHEN + 46 + - + 21 * - - 27 - + 24 + + + 93 * 71 THEN 13 END * ( 29 * 3 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2512
SELECT - CAST( NULL AS SIGNED ) / + 57 + - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT - CAST ( NULL AS INTEGER ) / + 57 + - 80
----
NULL

query II rowsort
SELECT 41 + 47, 59 AS col2
----
88
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2514
SELECT ALL - CASE COUNT( * ) WHEN - + 57 THEN 82 WHEN + COUNT( * ) THEN NULL WHEN 12 THEN 73 END + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - CASE COUNT ( * ) WHEN - + 57 THEN 82 WHEN + COUNT ( * ) THEN NULL WHEN 12 THEN 73 END + + 18
----
NULL

query I rowsort
SELECT DISTINCT - 82 col1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT 98 + + - COUNT( * ) + + 47 + + ( + - 69 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT 98 + + - COUNT ( * ) + + 47 + + ( + - 69 ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2517
SELECT ALL - CASE - ( COUNT( * ) ) WHEN + 88 + + CASE WHEN NOT CAST( - 55 AS DECIMAL ) <> COUNT( * ) / + 17 + + 73 / 95 THEN NULL WHEN NOT NULL BETWEEN ( - 92 ) AND ( COUNT( * ) ) * - 44 THEN + 80 * 2 END THEN NULL WHEN 39 THEN NULL ELSE 75 END col2
----
-75

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - CASE - ( COUNT ( * ) ) WHEN + 88 + + CASE WHEN NOT CAST ( - 55 AS REAL ) <> COUNT ( * ) / + 17 + + 73 / 95 THEN NULL WHEN NOT NULL BETWEEN ( - 92 ) AND ( COUNT ( * ) ) * - 44 THEN + 80 * 2 END THEN NULL WHEN 39 THEN NULL ELSE 75 END col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2518
SELECT DISTINCT - COUNT( + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) col0
----
0

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

query I rowsort
SELECT 47 * - 76 AS col0
----
-3572

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2520
SELECT ALL + 22 DIV - COUNT( ALL + + 97 )
----
-22

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + 22 / - COUNT ( ALL + + 97 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT COUNT( * ) - + COUNT( * ) + + + 6 + - + 36 * + 21 * - 61 col1
----
46122

skipif mysql # not compatible
query I rowsort label-2521
SELECT COUNT ( * ) - + COUNT ( * ) + + + 6 + - + 36 * + 21 * - 61 col1
----
46122

query I rowsort
SELECT + 32 col0
----
32

query I rowsort
SELECT 30 - - ( + CASE 28 WHEN + - 53 + 71 THEN - 24 END ) * + 55
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2524
SELECT 36 * + - 38 col2, CASE - + 96 WHEN 71 THEN - AVG ( DISTINCT - 43 ) - + 3 WHEN + 96 * + COUNT( * ) + + COUNT( * ) THEN NULL WHEN ( ( COALESCE ( - 53, + 63, 92 * 1 ) ) ) * 31 THEN NULL END / + ( + 28 ) col1
----
-1368
NULL

skipif mysql # not compatible
query II rowsort label-2524
SELECT 36 * + - 38 col2, CASE - + 96 WHEN 71 THEN - AVG ( DISTINCT - 43 ) - + 3 WHEN + 96 * + COUNT ( * ) + + COUNT ( * ) THEN NULL WHEN ( ( COALESCE ( - 53, + 63, 92 * 1 ) ) ) * 31 THEN NULL END / + ( + 28 ) col1
----
-1368
NULL

query I rowsort
SELECT 46 * + 58
----
2668

query II rowsort
SELECT ALL - 23 * - 1 col2, 68 col2
----
23
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2527
SELECT - - CAST( + 3 AS SIGNED ) AS col2, MAX( ALL 64 ) + + AVG ( ALL - - 84 ) / - 8 * CAST( NULL AS SIGNED ) + 2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2527
SELECT - - CAST ( + 3 AS INTEGER ) AS col2, MAX ( ALL 64 ) + + AVG ( ALL - - 84 ) / - 8 * CAST ( NULL AS INTEGER ) + 2
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT + CAST( + SUM( 23 ) AS SIGNED ) - + - 63
----
86

skipif mysql # not compatible
query I rowsort label-2528
SELECT + CAST ( + SUM ( 23 ) AS INTEGER ) - + - 63
----
86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + 69 * COALESCE ( + - 75, + COUNT( * ) - + - 94 * COALESCE ( - + 45, + 87 + - 45, - COUNT( * ) ) * 80 + - 71 ) AS col0
----
-5175

skipif mysql # not compatible
query I rowsort label-2530
SELECT + 69 * COALESCE ( + - 75, + COUNT ( * ) - + - 94 * COALESCE ( - + 45, + 87 + - 45, - COUNT ( * ) ) * 80 + - 71 ) AS col0
----
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT COUNT( * ) - + MIN( + COALESCE ( + 43, + - 89 + 46, + - 47 ) ) * + 97 AS col1
----
-4170

skipif mysql # not compatible
query I rowsort label-2531
SELECT COUNT ( * ) - + MIN ( + COALESCE ( + 43, + - 89 + 46, + - 47 ) ) * + 97 AS col1
----
-4170

query I rowsort
SELECT - 78 col1
----
-78

query I rowsort
SELECT ALL - 16 AS col1
----
-16

query I rowsort
SELECT - - 3 AS col0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2535
SELECT - COALESCE ( + COALESCE ( - + NULLIF ( - + CAST( - 83 AS SIGNED ), COALESCE ( CAST( + 98 AS SIGNED ), + 58 ) ), + 26 ), - COUNT( - 82 ) * 42 ) * 9 AS col1
----
747

skipif mysql # not compatible
query I rowsort label-2535
SELECT - COALESCE ( + COALESCE ( - + NULLIF ( - + CAST ( - 83 AS INTEGER ), COALESCE ( CAST ( + 98 AS INTEGER ), + 58 ) ), + 26 ), - COUNT ( - 82 ) * 42 ) * 9 AS col1
----
747

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT COUNT( * ) + 50 + - 89 + + 35 + 11 + + 86 * - 3 + 87 AS col2
----
-163

skipif mysql # not compatible
query I rowsort label-2536
SELECT COUNT ( * ) + 50 + - 89 + + 35 + 11 + + 86 * - 3 + 87 AS col2
----
-163

query I rowsort
SELECT ALL - 93 AS col2
----
-93

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

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT COUNT ( 56 ) + 32 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2539
SELECT CAST( NULL AS SIGNED ) * + 33 AS col2, 44 / - - 51 / - CAST( NULL AS SIGNED ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2539
SELECT CAST ( NULL AS INTEGER ) * + 33 AS col2, 44 / - - 51 / - CAST ( NULL AS INTEGER ) + - 79 + + 39 - - 52 * 78 * - 96 AS col2
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT ALL - 47 + + NULLIF ( - ( - CAST( - CAST( + CAST( + 56 AS SIGNED ) AS SIGNED ) AS SIGNED ) ), + 85 * 96 ) * 56
----
-3183

skipif mysql # not compatible
query I rowsort label-2540
SELECT ALL - 47 + + NULLIF ( - ( - CAST ( - CAST ( + CAST ( + 56 AS INTEGER ) AS INTEGER ) AS INTEGER ) ), + 85 * 96 ) * 56
----
-3183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2541
SELECT - COALESCE ( - 65, - - CAST( NULL AS SIGNED ), + COUNT( * ) + + + 64 * - - 9 * - 0 DIV + 14 ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2541
SELECT - COALESCE ( - 65, - - CAST ( NULL AS INTEGER ), + COUNT ( * ) + + + 64 * - - 9 * - 0 / + 14 ) AS col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT + 98 DIV + - 94 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2542
SELECT + 98 / + - 94 AS col2
----
-1

query II rowsort
SELECT 92 - + 52, 83 * 10 AS col0
----
40
830

query I rowsort
SELECT - + 8
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2545
SELECT - COUNT( DISTINCT + 67 ) * + + 43 * - COUNT( * ) * - - 68 + + + 68 + - COUNT( * ) DIV + 25
----
2992

skipif mysql # not compatible
query I rowsort label-2545
SELECT - COUNT ( DISTINCT + 67 ) * + + 43 * - COUNT ( * ) * - - 68 + + + 68 + - COUNT ( * ) / + 25
----
2992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT + CAST( NULL AS SIGNED ) / - + 67 + - - COUNT( + 81 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT + CAST ( NULL AS INTEGER ) / - + 67 + - - COUNT ( + 81 ) AS col1
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2547
SELECT CAST( NULL AS DECIMAL ) / - 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT CAST ( NULL AS REAL ) / - 24 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT COUNT( * ) + + MAX( DISTINCT + 11 )
----
12

skipif mysql # not compatible
query I rowsort label-2548
SELECT COUNT ( * ) + + MAX ( DISTINCT + 11 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT COALESCE ( 75, - 42 ) * ( - 40 ) + - - 62 * - 31 + 16 + - 8 * - MIN( DISTINCT 54 + - 60 )
----
-4954

skipif mysql # not compatible
query I rowsort label-2549
SELECT COALESCE ( 75, - 42 ) * ( - 40 ) + - - 62 * - 31 + 16 + - 8 * - MIN ( DISTINCT 54 + - 60 )
----
-4954

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT ALL 45 - + COUNT( * ) + + ( + 60 ) DIV 42
----
45

skipif mysql # not compatible
query I rowsort label-2551
SELECT ALL 45 - + COUNT ( * ) + + ( + 60 ) / 42
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT 62 * - 55 - - + 84 * - - SUM( DISTINCT - 69 ) + + 92
----
-9114

skipif mysql # not compatible
query I rowsort label-2552
SELECT 62 * - 55 - - + 84 * - - SUM ( DISTINCT - 69 ) + + 92
----
-9114

query II rowsort
SELECT ALL - 57 AS col1, - 90 AS col0
----
-57
-90

query I rowsort
SELECT ALL 39 * + 3
----
117

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

query I rowsort
SELECT 11 + 95 + + - 6 + + 80
----
180

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT 56 * + 1 * CAST( NULL AS SIGNED ) / 98 * 96 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT 56 * + 1 * CAST ( NULL AS INTEGER ) / 98 * 96 AS col2
----
NULL

query I rowsort
SELECT 36 * 14 + + 30
----
534

query I rowsort
SELECT DISTINCT 38 * - 50
----
-1900

onlyif mysql # DIV for integer division: 
query II rowsort label-2561
SELECT ( 53 ) + 67 AS col1, - 59 DIV + + COALESCE ( - 61, + 0, - 89 + 50 DIV - 41 ) AS col2
----
120
0

skipif mysql # not compatible
query II rowsort label-2561
SELECT ( 53 ) + 67 AS col1, - 59 / + + COALESCE ( - 61, + 0, - 89 + 50 / - 41 ) AS col2
----
120
0

query I rowsort
SELECT ALL ( - + 54 ) * + + 19 AS col0
----
-1026

query I rowsort
SELECT DISTINCT - COALESCE ( + 27, 86, + + 31 )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2564
SELECT DISTINCT CAST( + 63 AS SIGNED ) * + 96 + + SUM( - 27 ) AS col0
----
6021

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT CAST ( + 63 AS INTEGER ) * + 96 + + SUM ( - 27 ) AS col0
----
6021

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT ALL + - ( + - 75 ) DIV - 21 + - 43 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + - ( + - 75 ) / - 21 + - 43 AS col0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2567
SELECT + 6 + - - 40 DIV - - 48 + + 78 + 44 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-2567
SELECT + 6 + - - 40 / - - 48 + + 78 + 44 AS col1
----
128

query I rowsort
SELECT 59 + + 76
----
135

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

skipif mysql # not compatible
query I rowsort label-2569
SELECT + 89 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 18 + - + 77 * + 6 + + 37 col2
----
-407

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT NULLIF ( + 59, + 18 ) * - + NULLIF ( - - CASE + 45 WHEN + - 48 THEN COUNT( * ) WHEN + ( - 31 ) THEN NULL END, 93 + + 57 ) * + COUNT( 78 ) + - 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT NULLIF ( + 59, + 18 ) * - + NULLIF ( - - CASE + 45 WHEN + - 48 THEN COUNT ( * ) WHEN + ( - 31 ) THEN NULL END, 93 + + 57 ) * + COUNT ( 78 ) + - 53 AS col2
----
NULL

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

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

query I rowsort
SELECT DISTINCT - - 88 + - - 98 AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-2574
SELECT 28 + 92 + + + COUNT( * ) * - 98 * - + 16
----
1688

skipif mysql # not compatible
query I rowsort label-2574
SELECT 28 + 92 + + + COUNT ( * ) * - 98 * - + 16
----
1688

query I rowsort
SELECT - ( 98 )
----
-98

query I rowsort
SELECT DISTINCT + 48 * - - 44 AS col2
----
2112

query I rowsort
SELECT ALL - - NULLIF ( - 8, 63 ) + 31 * - 46 * + 87
----
-124070

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - COUNT( * ) + 43 col0
----
42

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

query I rowsort
SELECT - - 20 AS col1
----
20

query I rowsort
SELECT - - 10 + - 97 col2
----
-87

query I rowsort
SELECT - - 4 + + 54 col1
----
58

query I rowsort
SELECT DISTINCT COALESCE ( + - 65, + 96, - + 75 ) AS col2
----
-65

query I rowsort
SELECT + + 29 + - 61 AS col1
----
-32

query I rowsort
SELECT + 23 * + 43
----
989

onlyif mysql # aggregate syntax: 
query II rowsort label-2585
SELECT ALL - 56 AS col2, 42 - ( 94 ) * - - COUNT( * ) * + - 18 * + 25
----
-56
42342

skipif mysql # not compatible
query II rowsort label-2585
SELECT ALL - 56 AS col2, 42 - ( 94 ) * - - COUNT ( * ) * + - 18 * + 25
----
-56
42342

query I rowsort
SELECT - - 99 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2587
SELECT ALL MIN( DISTINCT 98 ), CASE + - 89 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN - 77 THEN + - 90 WHEN + - CAST( NULL AS SIGNED ) THEN - - 47 * 97 WHEN 58 / 57 + + COUNT( * ) THEN - 46 END AS col1
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2587
SELECT ALL MIN ( DISTINCT 98 ), CASE + - 89 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN - 77 THEN + - 90 WHEN + - CAST ( NULL AS INTEGER ) THEN - - 47 * 97 WHEN 58 / 57 + + COUNT ( * ) THEN - 46 END AS col1
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT DISTINCT - 12 - - - 7 - - COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-2588
SELECT DISTINCT - 12 - - - 7 - - COUNT ( * ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT COALESCE ( - COALESCE ( - 97, 91, - - COUNT( * ) ), + 37, 55 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-2589
SELECT COALESCE ( - COALESCE ( - 97, 91, - - COUNT ( * ) ), + 37, 55 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2590
SELECT ALL + MIN( ALL - - 44 ) AS col1, + COUNT( * ) * + 25 * - - 10
----
44
250

skipif mysql # not compatible
query II rowsort label-2590
SELECT ALL + MIN ( ALL - - 44 ) AS col1, + COUNT ( * ) * + 25 * - - 10
----
44
250

query I rowsort
SELECT - 28 + 30
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-2592
SELECT ALL 39 * - 81 AS col1, - 90 - - COUNT( * ) * - 89 AS col2
----
-3159
-179

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL 39 * - 81 AS col1, - 90 - - COUNT ( * ) * - 89 AS col2
----
-3159
-179

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

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

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

query I rowsort
SELECT + 80 * 55 AS col1
----
4400

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT COALESCE ( NULLIF ( 64, + 69 ), - 87 * + - 97 - + MIN( ALL + - 39 ) ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-2596
SELECT COALESCE ( NULLIF ( 64, + 69 ), - 87 * + - 97 - + MIN ( ALL + - 39 ) ) AS col0
----
64

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

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

query I rowsort
SELECT DISTINCT + 50 * 65 AS col0
----
3250

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2599
SELECT + MIN( + 4 ) AS col0, - 44 + - CAST( 98 AS SIGNED ) AS col0
----
4
-142

skipif mysql # not compatible
query II rowsort label-2599
SELECT + MIN ( + 4 ) AS col0, - 44 + - CAST ( 98 AS INTEGER ) AS col0
----
4
-142

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

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

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

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

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

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

query I rowsort
SELECT ALL 33 * - 67 * + ( - 17 ) + + - 50 * 1 AS col0
----
37537

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

skipif mysql # not compatible
query I rowsort label-2604
SELECT + MIN ( 91 )
----
91

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

query I rowsort
SELECT + + NULLIF ( - 40, - - COALESCE ( + - 59, 79 ) )
----
-40

query I rowsort
SELECT 70 col2
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2608
SELECT DISTINCT 56 + - COUNT( * ) + - + SUM( DISTINCT + 26 ) DIV 30, + 20 AS col0
----
55
20

skipif mysql # not compatible
query II rowsort label-2608
SELECT DISTINCT 56 + - COUNT ( * ) + - + SUM ( DISTINCT + 26 ) / 30, + 20 AS col0
----
55
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2609
SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST( NULL AS SIGNED ) col1
----
7872
NULL

skipif mysql # not compatible
query II rowsort label-2609
SELECT DISTINCT 96 * 82 AS col1, 81 + + CAST ( NULL AS INTEGER ) col1
----
7872
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL - 21 + + + CAST( + - 18 AS SIGNED ) AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - 21 + + + CAST ( + - 18 AS INTEGER ) AS col0
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-2611
SELECT + 58 - + + MAX( ALL - 31 ) + COUNT( * ), + 62 AS col0
----
90
62

skipif mysql # not compatible
query II rowsort label-2611
SELECT + 58 - + + MAX ( ALL - 31 ) + COUNT ( * ), + 62 AS col0
----
90
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT ALL 41 + MAX( - 6 )
----
35

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL 41 + MAX ( - 6 )
----
35

query I rowsort
SELECT + 10 * - ( 85 ) AS col2
----
-850

query I rowsort
SELECT ( - 57 )
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-2616
SELECT + + 39 DIV + - 74
----
0

skipif mysql # not compatible
query I rowsort label-2616
SELECT + + 39 / + - 74
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2617
SELECT + + 80 + 2 AS col2, - COUNT( * ) * + + ( - 61 ) + - - 81 + ( - 94 )
----
82
48

skipif mysql # not compatible
query II rowsort label-2617
SELECT + + 80 + 2 AS col2, - COUNT ( * ) * + + ( - 61 ) + - - 81 + ( - 94 )
----
82
48

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

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

query I rowsort
SELECT - - 22
----
22

query II rowsort
SELECT - - 0 - 69, - 68 AS col0
----
-69
-68

query I rowsort
SELECT DISTINCT - 80 - 61 * - + 83 * - 19
----
-96277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2622
SELECT - 11 DIV - 46 * + + NULLIF ( + - 72, + COALESCE ( COALESCE ( - CAST( 97 AS SIGNED ), + ( + 30 ) + COUNT( * ) ), 21, ( COUNT( * ) ) + + 43 ) * + COUNT( * ) + + 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT - 11 / - 46 * + + NULLIF ( + - 72, + COALESCE ( COALESCE ( - CAST ( 97 AS INTEGER ), + ( + 30 ) + COUNT ( * ) ), 21, ( COUNT ( * ) ) + + 43 ) * + COUNT ( * ) + + 70 ) AS col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL - 35 * + ( + MIN( ALL - 91 ) )
----
3185

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL - 35 * + ( + MIN ( ALL - 91 ) )
----
3185

query I rowsort
SELECT - 22 * + - 96
----
2112

query II rowsort
SELECT ALL + 95 AS col2, 96 AS col1
----
95
96

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

skipif mysql # not compatible
query I rowsort label-2627
SELECT 72 / + COUNT ( * ) + - 23
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2629
SELECT - 86 * - 8 * + + COUNT( * )
----
688

skipif mysql # not compatible
query I rowsort label-2629
SELECT - 86 * - 8 * + + COUNT ( * )
----
688

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

skipif mysql # not compatible
query I rowsort label-2630
SELECT - COUNT ( * ) + - COUNT ( * ) + + 28 + - 42 AS col2
----
-16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL + CASE - COUNT( * ) WHEN - 89 THEN - - 7 * + AVG ( DISTINCT - - 9 ) - + ( - 22 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + CASE - COUNT ( * ) WHEN - 89 THEN - - 7 * + AVG ( DISTINCT - - 9 ) - + ( - 22 ) END
----
NULL

query I rowsort
SELECT 36 * 81 + 62
----
2978

query I rowsort
SELECT ALL 50 * + 16 AS col0
----
800

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

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

query I rowsort
SELECT + COALESCE ( + 74, 37 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2638
SELECT ALL - 76 * 0 * + 28 * - CAST( NULL AS DECIMAL ) / + - 34 + + COUNT( * ) * - - 64 * - 86 + + COALESCE ( + 87, - 79 / ( 92 ) + COUNT( * ) ) + + 61 * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL - 76 * 0 * + 28 * - CAST ( NULL AS REAL ) / + - 34 + + COUNT ( * ) * - - 64 * - 86 + + COALESCE ( + 87, - 79 / ( 92 ) + COUNT ( * ) ) + + 61 * + 98
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT 11 * - 52 + + 60 DIV + ( - ( 45 ) )
----
-573

skipif mysql # not compatible
query I rowsort label-2639
SELECT 11 * - 52 + + 60 / + ( - ( 45 ) )
----
-573

query I rowsort
SELECT - + 36 + 81 AS col2
----
45

query I rowsort
SELECT ALL 50 * + + 11 * - - 84 + 32 * + 96
----
49272

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - 14 * 41 * - - NULLIF ( + - 93, + COALESCE ( + 32, - 94, - 87 ) * + + CASE - 87 WHEN 49 THEN + 41 ELSE 47 END * + CASE 99 - + 92 WHEN - 87 + - 18 THEN NULL ELSE 8 + CASE 73 WHEN - 45 * 19 + - 47 THEN 19 END END + COUNT( 61 ) + + 32 ) + COUNT( * ) * - 89
----
53293

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - 14 * 41 * - - NULLIF ( + - 93, + COALESCE ( + 32, - 94, - 87 ) * + + CASE - 87 WHEN 49 THEN + 41 ELSE 47 END * + CASE 99 - + 92 WHEN - 87 + - 18 THEN NULL ELSE 8 + CASE 73 WHEN - 45 * 19 + - 47 THEN 19 END END + COUNT ( 61 ) + + 32 ) + COUNT ( * ) * - 89
----
53293

query I rowsort
SELECT + 28 + + 19 AS col1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2644
SELECT ALL + 34 DIV 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL + 34 / 57 col1
----
0

query I rowsort
SELECT DISTINCT + 23 + + 96 AS col0
----
119

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2646
SELECT COUNT( * ) + - + ( + COUNT( * ) ) * ( 90 ) + + - MAX( DISTINCT + - ( - + CASE + 52 WHEN ( + 53 ) * 38 THEN NULL ELSE - 74 END ) ) DIV + 38
----
-88

skipif mysql # not compatible
query I rowsort label-2646
SELECT COUNT ( * ) + - + ( + COUNT ( * ) ) * ( 90 ) + + - MAX ( DISTINCT + - ( - + CASE + 52 WHEN ( + 53 ) * 38 THEN NULL ELSE - 74 END ) ) / + 38
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT ALL + 90 - - - 89 * 42 * 34 * - - CAST( NULL AS SIGNED ) / - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + 90 - - - 89 * 42 * 34 * - - CAST ( NULL AS INTEGER ) / - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT + CASE - + 1 WHEN + + 80 * SUM( ALL 79 ) / + + 97 * + AVG ( - 15 ) + - 94 * - 33 + - ( ( 19 ) + 50 ) * - 18 THEN NULL WHEN + 99 + ( COUNT( * ) ) THEN NULL ELSE 14 + + COUNT( * ) END AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2648
SELECT + CASE - + 1 WHEN + + 80 * SUM ( ALL 79 ) / + + 97 * + AVG ( - 15 ) + - 94 * - 33 + - ( ( 19 ) + 50 ) * - 18 THEN NULL WHEN + 99 + ( COUNT ( * ) ) THEN NULL ELSE 14 + + COUNT ( * ) END AS col1
----
15

query I rowsort
SELECT - 4 + 6
----
2

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

skipif mysql # not compatible
query I rowsort label-2650
SELECT + 78 * CAST ( NULL AS INTEGER )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2652
SELECT 91 + - COUNT( ALL - 19 ) AS col2, - ( - + 12 )
----
90
12

skipif mysql # not compatible
query II rowsort label-2652
SELECT 91 + - COUNT ( ALL - 19 ) AS col2, - ( - + 12 )
----
90
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ( + ( 15 ) ) AS col0, - 23 * + ( - 52 ) * - - 86 + + + COUNT( * ) * 34 + - 36 * - 17
----
15
103502

skipif mysql # not compatible
query II rowsort label-2653
SELECT ( + ( 15 ) ) AS col0, - 23 * + ( - 52 ) * - - 86 + + + COUNT ( * ) * 34 + - 36 * - 17
----
15
103502

query I rowsort
SELECT 49 + - + 4 col0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2655
SELECT ALL 75 - 28 * + + COUNT( * ), COUNT( * ) + ( 96 ) col1
----
47
97

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL 75 - 28 * + + COUNT ( * ), COUNT ( * ) + ( 96 ) col1
----
47
97

query I rowsort
SELECT + 53 + - 21 - - 27
----
59

query II rowsort
SELECT ALL 49, 6 * + 11 col0
----
49
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT NULLIF ( + ( 29 ), - + COUNT( * ) + 76 ) + + 49
----
78

skipif mysql # not compatible
query I rowsort label-2658
SELECT NULLIF ( + ( 29 ), - + COUNT ( * ) + 76 ) + + 49
----
78

query II rowsort
SELECT DISTINCT 2 AS col1, 88 AS col1
----
2
88

query II rowsort
SELECT DISTINCT 53 AS col0, 12 + + 33 AS col1
----
53
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2661
SELECT 56 + - - 64 + + CAST( NULL AS SIGNED ) + - 25 + + 81 / + + MIN( DISTINCT + + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2661
SELECT 56 + - - 64 + + CAST ( NULL AS INTEGER ) + - 25 + + 81 / + + MIN ( DISTINCT + + 8 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT 59 DIV - 2
----
-29

skipif mysql # not compatible
query I rowsort label-2662
SELECT 59 / - 2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT COALESCE ( 45, + NULLIF ( 76, 86 * + 22 ) - - - ( 69 ) - - COUNT( + CASE + 22 WHEN + 80 * 41 THEN NULL WHEN + 35 + 40 THEN - 99 * ( + 70 * - 42 ) WHEN + 52 * - NULLIF ( - 3, 76 * 81 + 1 ) THEN NULL WHEN + 17 * - 57 THEN - 43 ELSE NULL END ) * - 9, - 2 ) * CASE + 2 WHEN MAX( 32 ) / - 66 + 0 THEN NULL WHEN - MAX( + 48 ) THEN NULL ELSE + 29 + 77 END AS col2
----
4770

skipif mysql # not compatible
query I rowsort label-2663
SELECT COALESCE ( 45, + NULLIF ( 76, 86 * + 22 ) - - - ( 69 ) - - COUNT ( + CASE + 22 WHEN + 80 * 41 THEN NULL WHEN + 35 + 40 THEN - 99 * ( + 70 * - 42 ) WHEN + 52 * - NULLIF ( - 3, 76 * 81 + 1 ) THEN NULL WHEN + 17 * - 57 THEN - 43 ELSE NULL END ) * - 9, - 2 ) * CASE + 2 WHEN MAX ( 32 ) / - 66 + 0 THEN NULL WHEN - MAX ( + 48 ) THEN NULL ELSE + 29 + 77 END AS col2
----
4770

query I rowsort
SELECT 66 + - 57
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-2665
SELECT - 17, - 78 + + 35 DIV - 62 DIV 12 * 32 AS col0
----
-17
-78

skipif mysql # not compatible
query II rowsort label-2665
SELECT - 17, - 78 + + 35 / - 62 / 12 * 32 AS col0
----
-17
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-2666
SELECT ( + + 65 ) DIV - 80 + + 98 AS col2, - 18
----
98
-18

skipif mysql # not compatible
query II rowsort label-2666
SELECT ( + + 65 ) / - 80 + + 98 AS col2, - 18
----
98
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL - 77 + + COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - 77 + + COUNT ( * ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2668
SELECT ALL 21 + 27 + - COUNT( DISTINCT + 65 ) + - - 96 + 65 + COALESCE ( - ( + + CAST( NULL AS SIGNED ) ), + 3 * + + COALESCE ( 32, NULLIF ( - COUNT( * ), 90 ), + 10 DIV 57 + 58 * 97 ) + 44 )
----
348

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL 21 + 27 + - COUNT ( DISTINCT + 65 ) + - - 96 + 65 + COALESCE ( - ( + + CAST ( NULL AS INTEGER ) ), + 3 * + + COALESCE ( 32, NULLIF ( - COUNT ( * ), 90 ), + 10 / 57 + 58 * 97 ) + 44 )
----
348

query II rowsort
SELECT 83 AS col0, - 34
----
83
-34

query I rowsort
SELECT DISTINCT - 87 * + 83 col2
----
-7221

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

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

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

query II rowsort
SELECT + 92 AS col0, - 32
----
92
-32

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

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

query II rowsort
SELECT + 42, 25 * 79 * - 43 AS col2
----
42
-84925

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL - - 10 + + MIN( ALL - 91 ) col1
----
-81

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - - 10 + + MIN ( ALL - 91 ) col1
----
-81

query I rowsort
SELECT ALL - 16 AS col2
----
-16

query II rowsort
SELECT ALL + - 35 * + 52 AS col2, - 70 AS col0
----
-1820
-70

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2680
SELECT ALL - - NULLIF ( - COALESCE ( - - 38, + 29 ), + + CAST( NULL AS DECIMAL ) * - COUNT( * ) * + 62 )
----
-38

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL - - NULLIF ( - COALESCE ( - - 38, + 29 ), + + CAST ( NULL AS REAL ) * - COUNT ( * ) * + 62 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT 72 * - + MAX( DISTINCT - 76 ) AS col0
----
5472

skipif mysql # not compatible
query I rowsort label-2681
SELECT 72 * - + MAX ( DISTINCT - 76 ) AS col0
----
5472

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2683
SELECT - 1 * 64 DIV - 89 + 14 + COUNT( * ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-2683
SELECT - 1 * 64 / - 89 + 14 + COUNT ( * ) AS col1
----
15

query II rowsort
SELECT DISTINCT - + 41, - 6 * + + 46 AS col1
----
-41
-276

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2685
SELECT ALL 59 - 89 - - COUNT( * ) DIV + - 96 * + 51 - 49 AS col0, - 0 * - CASE + + 98 WHEN + 67 + + 53 THEN 84 * + 61 - - COUNT( * ) * 76 ELSE 66 * 39 + - MAX( DISTINCT 9 ) END
----
-79
0

skipif mysql # not compatible
query II rowsort label-2685
SELECT ALL 59 - 89 - - COUNT ( * ) / + - 96 * + 51 - 49 AS col0, - 0 * - CASE + + 98 WHEN + 67 + + 53 THEN 84 * + 61 - - COUNT ( * ) * 76 ELSE 66 * 39 + - MAX ( DISTINCT 9 ) END
----
-79
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2686
SELECT 51 DIV - 41 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2686
SELECT 51 / - 41 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2687
SELECT ALL 44 col0, - 58 * - COUNT( * ) AS col1
----
44
58

skipif mysql # not compatible
query II rowsort label-2687
SELECT ALL 44 col0, - 58 * - COUNT ( * ) AS col1
----
44
58

query I rowsort
SELECT - - ( 47 ) AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2689
SELECT + COUNT( * ) * 26 + + - 44 - + - 38 AS col0, CAST( NULL AS SIGNED ) * - NULLIF ( + 50, + + 26 / - 94 + - 85 + - + 45 )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-2689
SELECT + COUNT ( * ) * 26 + + - 44 - + - 38 AS col0, CAST ( NULL AS INTEGER ) * - NULLIF ( + 50, + + 26 / - 94 + - 85 + - + 45 )
----
20
NULL

query I rowsort
SELECT ALL 5 col0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT 44 - - 32 + + MAX( DISTINCT - - 6 ) col2
----
82

skipif mysql # not compatible
query I rowsort label-2692
SELECT 44 - - 32 + + MAX ( DISTINCT - - 6 ) col2
----
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT COALESCE ( - 92, + 65 ) DIV + 45 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-2694
SELECT COALESCE ( - 92, + 65 ) / + 45 AS col1
----
-2

query I rowsort
SELECT 74 * - - 75 AS col0
----
5550

query I rowsort
SELECT 24 + - 27
----
-3

query I rowsort
SELECT DISTINCT COALESCE ( + + ( 56 ), + 84 ) + ( + + 8 )
----
64

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

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

query II rowsort
SELECT ALL 27 + + 17, 18 AS col0
----
44
18

query I rowsort
SELECT DISTINCT ( 25 ) + - - 5
----
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT ALL 9 + - COALESCE ( + 98, 72 * + + 34 + - + 46, 16 DIV 18 ) * - 64 AS col1
----
6281

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL 9 + - COALESCE ( + 98, 72 * + + 34 + - + 46, 16 / 18 ) * - 64 AS col1
----
6281

query I rowsort
SELECT 96 col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL COUNT( * ) * + + 62 * 55 * - 40 + - + 25 AS col2
----
-136425

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL COUNT ( * ) * + + 62 * 55 * - 40 + - + 25 AS col2
----
-136425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT + 34 / - + CAST( NULL AS SIGNED ) + - 66 - - 26 * + 56 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT + 34 / - + CAST ( NULL AS INTEGER ) + - 66 - - 26 * + 56 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2706
SELECT 91 * + COUNT( * ) AS col1, - 62 AS col1, MAX( ALL - + 72 )
----
91
-62
-72

skipif mysql # not compatible
query III rowsort label-2706
SELECT 91 * + COUNT ( * ) AS col1, - 62 AS col1, MAX ( ALL - + 72 )
----
91
-62
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2707
SELECT CAST( + + 45 AS SIGNED ) + 58 * 28 + ( + 35 )
----
1704

skipif mysql # not compatible
query I rowsort label-2707
SELECT CAST ( + + 45 AS INTEGER ) + 58 * 28 + ( + 35 )
----
1704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2708
SELECT ALL 58 * + 69 / - - CAST( NULL AS DECIMAL ) * - 7 + + + 41 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL 58 * + 69 / - - CAST ( NULL AS REAL ) * - 7 + + + 41 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2709
SELECT CAST( + + 0 AS SIGNED ) * + SUM( ALL + + 81 ) + + 75
----
75

skipif mysql # not compatible
query I rowsort label-2709
SELECT CAST ( + + 0 AS INTEGER ) * + SUM ( ALL + + 81 ) + + 75
----
75

query I rowsort
SELECT DISTINCT + - 46 * + 77
----
-3542

query I rowsort
SELECT ALL + + 41
----
41

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

query I rowsort
SELECT - 33 * 70
----
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT ALL + 32 * + ( + ( - - 50 ) ) + + COUNT( * )
----
1601

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL + 32 * + ( + ( - - 50 ) ) + + COUNT ( * )
----
1601

onlyif mysql # aggregate syntax: 
query II rowsort label-2715
SELECT + - ( - COALESCE ( + - MIN( - 54 ), COUNT( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0
----
54
74

skipif mysql # not compatible
query II rowsort label-2715
SELECT + - ( - COALESCE ( + - MIN ( - 54 ), COUNT ( * ) * - + 27 + - 13 ) ) AS col0, 74 AS col0
----
54
74

query I rowsort
SELECT + 90 + - - ( + 20 )
----
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT - - CAST( MAX( DISTINCT + 17 ) AS SIGNED ) * + - 34
----
-578

skipif mysql # not compatible
query I rowsort label-2717
SELECT - - CAST ( MAX ( DISTINCT + 17 ) AS INTEGER ) * + - 34
----
-578

query I rowsort
SELECT ALL + COALESCE ( + 45, 95 ) AS col2
----
45

query I rowsort
SELECT ALL + 7 col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT + - COUNT( DISTINCT + - 12 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT + - COUNT ( DISTINCT + - 12 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT - 20 * + + 44 + + 64 + + COUNT( * ) + + - 98 * - + 60 AS col1
----
5065

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 20 * + + 44 + + 64 + + COUNT ( * ) + + - 98 * - + 60 AS col1
----
5065

onlyif mysql # aggregate syntax: 
query II rowsort label-2722
SELECT DISTINCT + 88 * + COUNT( * ), + COALESCE ( + + ( + + 35 ), 10 ) AS col2
----
88
35

skipif mysql # not compatible
query II rowsort label-2722
SELECT DISTINCT + 88 * + COUNT ( * ), + COALESCE ( + + ( + + 35 ), 10 ) AS col2
----
88
35

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

skipif mysql # not compatible
query I rowsort label-2723
SELECT - ( + - 83 ) / - - COUNT ( * ) AS col1
----
83

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2725
SELECT - + 50 + 51 DIV - 1 AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-2725
SELECT - + 50 + 51 / - 1 AS col0
----
-101

onlyif mysql # aggregate syntax: 
query II rowsort label-2726
SELECT 49, COUNT( * ) * - 19 AS col2
----
49
-19

skipif mysql # not compatible
query II rowsort label-2726
SELECT 49, COUNT ( * ) * - 19 AS col2
----
49
-19

query I rowsort
SELECT ALL ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-2728
SELECT ALL - COUNT( 51 ) + - - 88 col0, + 7 AS col1
----
87
7

skipif mysql # not compatible
query II rowsort label-2728
SELECT ALL - COUNT ( 51 ) + - - 88 col0, + 7 AS col1
----
87
7

query I rowsort
SELECT DISTINCT + 22 + + 14
----
36

query II rowsort
SELECT 36 AS col1, 36 AS col1
----
36
36

query I rowsort
SELECT ALL 33 + - 21 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - COUNT( * ) + - - 19 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-2732
SELECT - COUNT ( * ) + - - 19 AS col0
----
18

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

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

query I rowsort
SELECT DISTINCT 27 + + + 15 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2735
SELECT DISTINCT - 32 / + + ( - CAST( NULL AS SIGNED ) ) AS col1, + CAST( + 63 AS SIGNED ) + 0 AS col0, + 8
----
NULL
63
8

skipif mysql # not compatible
query III rowsort label-2735
SELECT DISTINCT - 32 / + + ( - CAST ( NULL AS INTEGER ) ) AS col1, + CAST ( + 63 AS INTEGER ) + 0 AS col0, + 8
----
NULL
63
8

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

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

query II rowsort
SELECT 35, + ( - + 12 ) + + - 60 * + - 26 * 68 AS col1
----
35
106068

query I rowsort
SELECT + 85 + - - 25
----
110

query II rowsort
SELECT 73 AS col2, 17 AS col1
----
73
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2740
SELECT - SUM( ALL 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-2740
SELECT - SUM ( ALL 93 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + 61 + 0 * - - COUNT( * ) * COUNT( * ) + 78 AS col1
----
139

skipif mysql # not compatible
query I rowsort label-2741
SELECT + 61 + 0 * - - COUNT ( * ) * COUNT ( * ) + 78 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL MIN( ALL - ( - 8 ) ) - + ( + + ( 76 ) ) + 32 * - 33
----
-1124

skipif mysql # not compatible
query I rowsort label-2742
SELECT ALL MIN ( ALL - ( - 8 ) ) - + ( + + ( 76 ) ) + 32 * - 33
----
-1124

query I rowsort
SELECT 49 col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT - COUNT( * ) AS col2, 7 * + + 7 AS col0
----
-1
49

skipif mysql # not compatible
query II rowsort label-2744
SELECT - COUNT ( * ) AS col2, 7 * + + 7 AS col0
----
-1
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2745
SELECT ALL ( - - CAST( - 72 AS SIGNED ) )
----
-72

skipif mysql # not compatible
query I rowsort label-2745
SELECT ALL ( - - CAST ( - 72 AS INTEGER ) )
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2746
SELECT DISTINCT + 60 - + 22 * 14 - + - CASE - + 65 WHEN 8 * - 39 + + 41 THEN NULL WHEN - - 0 THEN NULL ELSE + 1 END * COALESCE ( - 10, + - 76, - CASE 50 WHEN COUNT( * ) * ( COUNT( * ) ) THEN - 45 + - 20 END, 42 + 47 DIV + ( 26 * + 62 ) )
----
-258

skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + 60 - + 22 * 14 - + - CASE - + 65 WHEN 8 * - 39 + + 41 THEN NULL WHEN - - 0 THEN NULL ELSE + 1 END * COALESCE ( - 10, + - 76, - CASE 50 WHEN COUNT ( * ) * ( COUNT ( * ) ) THEN - 45 + - 20 END, 42 + 47 / + ( 26 * + 62 ) )
----
-258

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

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

query I rowsort
SELECT ALL 31 * 60 * 67
----
124620

query I rowsort
SELECT 23 col1
----
23

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

skipif mysql # not compatible
query II rowsort label-2750
SELECT DISTINCT + 45 col2, COUNT ( * )
----
45
1

query I rowsort
SELECT - 38 * + 60
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-2752
SELECT + + 72 DIV 15 col2
----
4

skipif mysql # not compatible
query I rowsort label-2752
SELECT + + 72 / 15 col2
----
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2753
SELECT + + 66 * 45 DIV + 75 AS col1, 43 col1
----
39
43

skipif mysql # not compatible
query II rowsort label-2753
SELECT + + 66 * 45 / + 75 AS col1, 43 col1
----
39
43

query II rowsort
SELECT ALL + - 91, - 68 AS col2
----
-91
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-2755
SELECT + + 9, 85 - - 25 + + + 2 DIV + ( + ( 7 ) ) AS col2
----
9
110

skipif mysql # not compatible
query II rowsort label-2755
SELECT + + 9, 85 - - 25 + + + 2 / + ( + ( 7 ) ) AS col2
----
9
110

query II rowsort
SELECT + 44 col0, + 25 AS col0
----
44
25

query II rowsort
SELECT 78 AS col0, + 72
----
78
72

query II rowsort
SELECT ALL + 86 AS col2, + 47 * 52 AS col2
----
86
2444

query II rowsort
SELECT ALL + + 58, + ( - - 37 ) AS col0
----
58
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL 80 * + 70 * SUM( + + 64 ) - 78 + 45
----
358367

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL 80 * + 70 * SUM ( + + 64 ) - 78 + 45
----
358367

query I rowsort
SELECT - + 65 * + + 83 AS col0
----
-5395

query I rowsort
SELECT ALL - 4 * - + 82 + 11 col0
----
339

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT + - 4 * - 99 + + - COUNT( * ) * + + 79 - - 34 + + ( - - 39 ) + - MAX( ALL - - 44 ) AS col1
----
346

skipif mysql # not compatible
query I rowsort label-2763
SELECT + - 4 * - 99 + + - COUNT ( * ) * + + 79 - - 34 + + ( - - 39 ) + - MAX ( ALL - - 44 ) AS col1
----
346

query I rowsort
SELECT ALL + 63 * + - ( - - 21 ) + - 10 + - 97 + - 40 - 59 - 72 * + 32 * - CASE 7 WHEN 57 - - - 76 + 43 + - ( 19 ) * 2 THEN - ( + 9 ) + 13 END * 60 col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2765
SELECT ALL - CAST( + + 22 AS SIGNED ) * + + ( + 87 ) + - COUNT( * ) + + MIN( - 42 ) AS col1, + COUNT( * )
----
-1957
1

skipif mysql # not compatible
query II rowsort label-2765
SELECT ALL - CAST ( + + 22 AS INTEGER ) * + + ( + 87 ) + - COUNT ( * ) + + MIN ( - 42 ) AS col1, + COUNT ( * )
----
-1957
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT - 39 * COUNT( * ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2766
SELECT - 39 * COUNT ( * ) AS col2
----
-39

query I rowsort
SELECT + 4 - + - 53 AS col2
----
57

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2769
SELECT DISTINCT - 28 - COUNT( * ) AS col0, - 9
----
-29
-9

skipif mysql # not compatible
query II rowsort label-2769
SELECT DISTINCT - 28 - COUNT ( * ) AS col0, - 9
----
-29
-9

query I rowsort
SELECT - NULLIF ( - - 43, - 33 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT - 28 - - 53 + SUM( DISTINCT + 36 ) + - + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT - 28 - - 53 + SUM ( DISTINCT + 36 ) + - + COUNT ( * ) AS col0
----
60

query II rowsort
SELECT DISTINCT + 74 * + + 90, - 35 AS col0
----
6660
-35

query I rowsort
SELECT 71 * ( 88 ) AS col1
----
6248

onlyif mysql # aggregate syntax: 
query II rowsort label-2774
SELECT 74 * + 83 AS col0, 88 + 82 + 78 + 6 * 26 * + MAX( ALL 5 ) * COUNT( DISTINCT - 43 )
----
6142
1028

skipif mysql # not compatible
query II rowsort label-2774
SELECT 74 * + 83 AS col0, 88 + 82 + 78 + 6 * 26 * + MAX ( ALL 5 ) * COUNT ( DISTINCT - 43 )
----
6142
1028

onlyif mysql # DIV for integer division: 
query I rowsort label-2775
SELECT ALL - 6 DIV 27 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL - 6 / 27 AS col0
----
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2777
SELECT 32 DIV + 89 * - 57 - + - 77 - - + MIN( + 2 )
----
79

skipif mysql # not compatible
query I rowsort label-2777
SELECT 32 / + 89 * - 57 - + - 77 - - + MIN ( + 2 )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2778
SELECT - 16 DIV + 77 + - - 58
----
58

skipif mysql # not compatible
query I rowsort label-2778
SELECT - 16 / + 77 + - - 58
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT + 7 * 94 - COALESCE ( 99, 21 DIV - 59 * - 42, + + 7 + + COUNT( * ) ) * 63 * + - 30
----
187768

skipif mysql # not compatible
query I rowsort label-2779
SELECT + 7 * 94 - COALESCE ( 99, 21 / - 59 * - 42, + + 7 + + COUNT ( * ) ) * 63 * + - 30
----
187768

query I rowsort
SELECT DISTINCT + 82 * 75 col2
----
6150

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT ALL - 54 * MIN( DISTINCT - + 68 )
----
3672

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL - 54 * MIN ( DISTINCT - + 68 )
----
3672

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2783
SELECT DISTINCT - + 57 * - + 21 AS col0, CAST( - 15 AS DECIMAL ) + CASE - 21 WHEN + - 36 THEN + + 3 + COALESCE ( - COALESCE ( - 10, - 2 ), 89 + + 25 * + 70 ) END * - 36 AS col1
----
1197
NULL

skipif mysql # not compatible
query II rowsort label-2783
SELECT DISTINCT - + 57 * - + 21 AS col0, CAST ( - 15 AS REAL ) + CASE - 21 WHEN + - 36 THEN + + 3 + COALESCE ( - COALESCE ( - 10, - 2 ), 89 + + 25 * + 70 ) END * - 36 AS col1
----
1197
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2784
SELECT 10 DIV 13 + 17 + - 42 * 42 * - SUM( - 41 )
----
-72307

skipif mysql # not compatible
query I rowsort label-2784
SELECT 10 / 13 + 17 + - 42 * 42 * - SUM ( - 41 )
----
-72307

query I rowsort
SELECT DISTINCT - 88 + + + 8 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL + COUNT( * ) + - ( - + 96 ) - 44 * + 74
----
-3159

skipif mysql # not compatible
query I rowsort label-2786
SELECT ALL + COUNT ( * ) + - ( - + 96 ) - 44 * + 74
----
-3159

query I rowsort
SELECT 29 * + - 14 col1
----
-406

query I rowsort
SELECT + 45 + + 83
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2789
SELECT - 54 DIV 1 AS col2, SUM( - - 87 ) AS col0
----
-54
87

skipif mysql # not compatible
query II rowsort label-2789
SELECT - 54 / 1 AS col2, SUM ( - - 87 ) AS col0
----
-54
87

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2791
SELECT ALL COUNT( * ) DIV - - 24 * - 8, 72 AS col2
----
0
72

skipif mysql # not compatible
query II rowsort label-2791
SELECT ALL COUNT ( * ) / - - 24 * - 8, 72 AS col2
----
0
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT MIN( DISTINCT - + 17 ) + + MIN( DISTINCT + + 49 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-2792
SELECT MIN ( DISTINCT - + 17 ) + + MIN ( DISTINCT + + 49 ) AS col0
----
32

query I rowsort
SELECT DISTINCT - 4 * - - 28 AS col2
----
-112

query I rowsort
SELECT + COALESCE ( + - COALESCE ( - 94, - + 11 ), - 78 ) * 58 + - + 39 AS col2
----
5413

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

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

query I rowsort
SELECT ALL 98 * 32
----
3136

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

skipif mysql # not compatible
query I rowsort label-2797
SELECT COUNT ( * ) + 16 AS col1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2798
SELECT 4, + COUNT( * ) AS col1
----
4
1

skipif mysql # not compatible
query II rowsort label-2798
SELECT 4, + COUNT ( * ) AS col1
----
4
1

query I rowsort
SELECT 55 + 20 col2
----
75

query I rowsort
SELECT DISTINCT 92 - + 87
----
5

query I rowsort
SELECT ALL 21 - - ( - + NULLIF ( + - 70, - - 68 ) ) AS col2
----
91

query I rowsort
SELECT 90 + - 98 + + 24 * + 2
----
40

query I rowsort
SELECT 93 * + 6 * + - 67
----
-37386

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT 0 + + + SUM( - 35 )
----
-35

skipif mysql # not compatible
query I rowsort label-2804
SELECT 0 + + + SUM ( - 35 )
----
-35

query I rowsort
SELECT 85 col0
----
85

query I rowsort
SELECT DISTINCT - 97 * + - 2 col1
----
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2807
SELECT MIN( DISTINCT - 57 ) DIV MIN( DISTINCT + + 66 ) * - 48 + - + 12, + ( + 39 ) AS col0
----
-12
39

skipif mysql # not compatible
query II rowsort label-2807
SELECT MIN ( DISTINCT - 57 ) / MIN ( DISTINCT + + 66 ) * - 48 + - + 12, + ( + 39 ) AS col0
----
-12
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT 19 * - + COUNT( * ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2808
SELECT 19 * - + COUNT ( * ) AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT 46 + - + COUNT( * ) * 78
----
-32

skipif mysql # not compatible
query I rowsort label-2809
SELECT 46 + - + COUNT ( * ) * 78
----
-32

query I rowsort
SELECT ALL - ( - + 12 ) * + 43 AS col1
----
516

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2811
SELECT ALL + CAST( 33 AS SIGNED ) + 36 * 99 + - 64
----
3533

skipif mysql # not compatible
query I rowsort label-2811
SELECT ALL + CAST ( 33 AS INTEGER ) + 36 * 99 + - 64
----
3533

query II rowsort
SELECT - 56, 25 * 81 + + + 67 AS col0
----
-56
2092

query I rowsort
SELECT ALL - + 5 + - 98
----
-103

query I rowsort
SELECT ALL - + 19
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT 64 * MIN( 34 ) AS col1
----
2176

skipif mysql # not compatible
query I rowsort label-2815
SELECT 64 * MIN ( 34 ) AS col1
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + + 36 * + 32 * 88 + + 71 + - + 41 + + NULLIF ( - - COUNT( * ), - 32 + + - 66 * COUNT( * ) ) * - + 26 + + 74 - COALESCE ( - 92, + 60 * - 28 + 26 ) AS col2
----
101546

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + + 36 * + 32 * 88 + + 71 + - + 41 + + NULLIF ( - - COUNT ( * ), - 32 + + - 66 * COUNT ( * ) ) * - + 26 + + 74 - COALESCE ( - 92, + 60 * - 28 + 26 ) AS col2
----
101546

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT COALESCE ( - COUNT( DISTINCT 32 ), ( + - 3 ) + - - 76 + + + 1 * - 64, - 4 * - COUNT( ALL - ( - 42 ) ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2817
SELECT COALESCE ( - COUNT ( DISTINCT 32 ), ( + - 3 ) + - - 76 + + + 1 * - 64, - 4 * - COUNT ( ALL - ( - 42 ) ) ) AS col1
----
-1

query I rowsort
SELECT + + 41
----
41

query I rowsort
SELECT ( - - 89 ) AS col0
----
89

query I rowsort
SELECT 44 * - + 27 AS col2
----
-1188

query I rowsort
SELECT DISTINCT + 76 + + 88
----
164

query I rowsort
SELECT ALL - 18 + 69
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT DISTINCT - NULLIF ( + - 91, 59 - 96 + CAST( + 90 AS SIGNED ) * - 58 ) * + 81
----
7371

skipif mysql # not compatible
query I rowsort label-2823
SELECT DISTINCT - NULLIF ( + - 91, 59 - 96 + CAST ( + 90 AS INTEGER ) * - 58 ) * + 81
----
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT DISTINCT - CAST( + - 93 AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-2824
SELECT DISTINCT - CAST ( + - 93 AS INTEGER ) AS col0
----
93

query I rowsort
SELECT DISTINCT - 45 * + 55 AS col0
----
-2475

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2826
SELECT + 98, + CAST( NULL AS SIGNED ) AS col0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-2826
SELECT + 98, + CAST ( NULL AS INTEGER ) AS col0
----
98
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2827
SELECT COUNT( DISTINCT 47 ) col1, + 9 AS col1
----
1
9

skipif mysql # not compatible
query II rowsort label-2827
SELECT COUNT ( DISTINCT 47 ) col1, + 9 AS col1
----
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL 57 - - - COUNT( * ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL 57 - - - COUNT ( * ) AS col2
----
56

query I rowsort
SELECT 59 + + 47 + + ( + + ( + 69 ) )
----
175

onlyif mysql # DIV for integer division: 
query II rowsort label-2830
SELECT 51, 41 DIV + 31 AS col2
----
51
1

skipif mysql # not compatible
query II rowsort label-2830
SELECT 51, 41 / + 31 AS col2
----
51
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2831
SELECT ALL - 0 col2, 94 * + CAST( NULL AS SIGNED ) AS col0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-2831
SELECT ALL - 0 col2, 94 * + CAST ( NULL AS INTEGER ) AS col0
----
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL + 28 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL + 28 - + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT NULLIF ( + - 59, + + CASE 26 WHEN - 57 / + 23 * - - COUNT( * ) + - - CASE + 63 WHEN + 21 THEN 62 + - ( 53 ) WHEN - - 68 - + MAX( ALL + 16 ) THEN NULL ELSE NULL END * 83 THEN NULL ELSE + 82 - 91 END )
----
-59

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT NULLIF ( + - 59, + + CASE 26 WHEN - 57 / + 23 * - - COUNT ( * ) + - - CASE + 63 WHEN + 21 THEN 62 + - ( 53 ) WHEN - - 68 - + MAX ( ALL + 16 ) THEN NULL ELSE NULL END * 83 THEN NULL ELSE + 82 - 91 END )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT ALL COUNT( * ) * + 41 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL COUNT ( * ) * + 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + 3 * 87 * NULLIF ( - + COUNT( * ), + - 33 + + - ( + - 68 ) - - 19 ) AS col1
----
-261

skipif mysql # not compatible
query I rowsort label-2835
SELECT + 3 * 87 * NULLIF ( - + COUNT ( * ), + - 33 + + - ( + - 68 ) - - 19 ) AS col1
----
-261

query I rowsort
SELECT ALL 8 * - 83
----
-664

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT + 73 * + 52 DIV - 1
----
-3796

skipif mysql # not compatible
query I rowsort label-2837
SELECT + 73 * + 52 / - 1
----
-3796

query I rowsort
SELECT + 90 - + 54
----
36

query I rowsort
SELECT DISTINCT 2 * 74 col1
----
148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2840
SELECT + CAST( - 90 AS SIGNED ) * COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-2840
SELECT + CAST ( - 90 AS INTEGER ) * COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT + 27 * + 30 * - MAX( DISTINCT - ( - 20 ) )
----
-16200

skipif mysql # not compatible
query I rowsort label-2841
SELECT + 27 * + 30 * - MAX ( DISTINCT - ( - 20 ) )
----
-16200

onlyif mysql # aggregate syntax: 
query II rowsort label-2842
SELECT ALL - ( - COUNT( * ) ) + + ( + ( 21 ) ) * - 95 AS col0, 53 AS col1
----
-1994
53

skipif mysql # not compatible
query II rowsort label-2842
SELECT ALL - ( - COUNT ( * ) ) + + ( + ( 21 ) ) * - 95 AS col0, 53 AS col1
----
-1994
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT SUM( + CAST( - 47 AS SIGNED ) )
----
-47

skipif mysql # not compatible
query I rowsort label-2843
SELECT SUM ( + CAST ( - 47 AS INTEGER ) )
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2844
SELECT DISTINCT + 87 * - COALESCE ( - MIN( DISTINCT - 23 ), - - 64, - 52 DIV + + 81 + - 95 ) AS col2
----
-2001

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT + 87 * - COALESCE ( - MIN ( DISTINCT - 23 ), - - 64, - 52 / + + 81 + - 95 ) AS col2
----
-2001

onlyif mysql # aggregate syntax: 
query II rowsort label-2845
SELECT ALL + COUNT( * ) + - + COUNT( * ) AS col1, 70
----
0
70

skipif mysql # not compatible
query II rowsort label-2845
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) AS col1, 70
----
0
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT + - NULLIF ( + 30, + + CAST( + 56 AS SIGNED ) ) - - + 2 + - + 97 + - 43 - - + 29 * - ( - 67 )
----
1775

skipif mysql # not compatible
query I rowsort label-2846
SELECT + - NULLIF ( + 30, + + CAST ( + 56 AS INTEGER ) ) - - + 2 + - + 97 + - 43 - - + 29 * - ( - 67 )
----
1775

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL - 54 + - 38 + - 70 + + 17 * + + 86 + - + 86 * 91 * CASE 89 WHEN + 2 THEN NULL WHEN MAX( ALL + 1 ) + ( + 73 ) THEN - 12 WHEN + 30 + 88 * + 58 THEN + 56 + 66 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL - 54 + - 38 + - 70 + + 17 * + + 86 + - + 86 * 91 * CASE 89 WHEN + 2 THEN NULL WHEN MAX ( ALL + 1 ) + ( + 73 ) THEN - 12 WHEN + 30 + 88 * + 58 THEN + 56 + 66 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT DISTINCT COUNT( * ) + - 87 + + - COUNT( + + 16 )
----
-87

skipif mysql # not compatible
query I rowsort label-2848
SELECT DISTINCT COUNT ( * ) + - 87 + + - COUNT ( + + 16 )
----
-87

query I rowsort
SELECT ALL + - 32 * - 21
----
672

query I rowsort
SELECT ALL - 74 + - - 20 AS col2
----
-54

query I rowsort
SELECT NULLIF ( + + 28, + 6 ) AS col0
----
28

query I rowsort
SELECT ALL 47 + + 36 * - 0 AS col1
----
47

query I rowsort
SELECT + 16 + - - 18
----
34

query II rowsort
SELECT - 46, - 88 AS col2
----
-46
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2855
SELECT + 30 + - 17 - - NULLIF ( COUNT( * ), - 57 * + COUNT( * ) ) * + 79 DIV - 8
----
4

skipif mysql # not compatible
query I rowsort label-2855
SELECT + 30 + - 17 - - NULLIF ( COUNT ( * ), - 57 * + COUNT ( * ) ) * + 79 / - 8
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT + SUM( ( 6 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2856
SELECT + SUM ( ( 6 ) ) AS col0
----
6

query I rowsort
SELECT ALL + 72 * - 53 AS col0
----
-3816

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2858
SELECT COUNT( * ) DIV - - ( 84 ) + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2858
SELECT COUNT ( * ) / - - ( 84 ) + 0 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2859
SELECT 2 * + - COALESCE ( + 76, + 45 * MAX( 14 ) + + 56 + - COUNT( * ) * 80, - + COUNT( * ) ) + - 56 DIV + - 8 - - 98 col0
----
-47

skipif mysql # not compatible
query I rowsort label-2859
SELECT 2 * + - COALESCE ( + 76, + 45 * MAX ( 14 ) + + 56 + - COUNT ( * ) * 80, - + COUNT ( * ) ) + - 56 / + - 8 - - 98 col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL - 77 * - 55 - - - 4 + + + 47 * + MIN( + 13 )
----
4842

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - 77 * - 55 - - - 4 + + + 47 * + MIN ( + 13 )
----
4842

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT - - COUNT( * ) * + 8 * 53 AS col0
----
424

skipif mysql # not compatible
query I rowsort label-2861
SELECT - - COUNT ( * ) * + 8 * 53 AS col0
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT ALL 77 * ( - 15 ) + - - COUNT( * ) + - 60 AS col0
----
-1214

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL 77 * ( - 15 ) + - - COUNT ( * ) + - 60 AS col0
----
-1214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT - + CAST( NULL AS SIGNED ) + 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT - + CAST ( NULL AS INTEGER ) + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT ALL 49 * - 74 + - - 49 - - 92 + SUM( ALL - - 97 ) * + - 30
----
-6395

skipif mysql # not compatible
query I rowsort label-2864
SELECT ALL 49 * - 74 + - - 49 - - 92 + SUM ( ALL - - 97 ) * + - 30
----
-6395

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL + - SUM( + 19 ) * - 19 AS col0
----
361

skipif mysql # not compatible
query I rowsort label-2865
SELECT ALL + - SUM ( + 19 ) * - 19 AS col0
----
361

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2866
SELECT DISTINCT - - 75 * + 50 - - 29 * 71 * COUNT( * ) DIV ( + COUNT( + + 75 ) )
----
5809

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - - 75 * + 50 - - 29 * 71 * COUNT ( * ) / ( + COUNT ( + + 75 ) )
----
5809

onlyif mysql # DIV for integer division: 
query I rowsort label-2867
SELECT ALL + 56 DIV - 35 + + 86
----
85

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL + 56 / - 35 + + 86
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-2868
SELECT + 93 DIV 85 + - - 66
----
67

skipif mysql # not compatible
query I rowsort label-2868
SELECT + 93 / 85 + - - 66
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2869
SELECT ALL ( CAST( NULL AS SIGNED ) ) * + COUNT( DISTINCT + 50 ) - + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * + COUNT ( DISTINCT + 50 ) - + - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT - CAST( + 43 AS SIGNED ) + + + COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-2870
SELECT - CAST ( + 43 AS INTEGER ) + + + COUNT ( * )
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT - CAST( + ( - + 14 ) AS SIGNED ) / CASE - 72 WHEN - - 8 THEN NULL WHEN + 6 THEN + + AVG ( 46 ) / 76 ELSE NULL END * - - 60 + 32 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2871
SELECT - CAST ( + ( - + 14 ) AS INTEGER ) / CASE - 72 WHEN - - 8 THEN NULL WHEN + 6 THEN + + AVG ( 46 ) / 76 ELSE NULL END * - - 60 + 32 * - 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2872
SELECT ALL + 87 DIV + 58 DIV - - COUNT( * ), + 78 AS col0
----
1
78

skipif mysql # not compatible
query II rowsort label-2872
SELECT ALL + 87 / + 58 / - - COUNT ( * ), + 78 AS col0
----
1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT + 52 * + COUNT( * ) + - + 25
----
27

skipif mysql # not compatible
query I rowsort label-2873
SELECT + 52 * + COUNT ( * ) + - + 25
----
27

query I rowsort
SELECT NULLIF ( 95, 85 * + 0 ) AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT ALL COUNT( * ) * + ( - 89 ) AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL COUNT ( * ) * + ( - 89 ) AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT - COALESCE ( MIN( - 22 ), + 47 * + + ( + ( + ( - 96 ) ) ), + + 37 ) * - - ( - 82 )
----
-1804

skipif mysql # not compatible
query I rowsort label-2876
SELECT - COALESCE ( MIN ( - 22 ), + 47 * + + ( + ( + ( - 96 ) ) ), + + 37 ) * - - ( - 82 )
----
-1804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL + 24 * + 4 * COALESCE ( + + 10, + 93, - - 48 + - 32 + + 93 - 45 * 95 + - COUNT( * ) ) / + COUNT( + 92 ) + CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + 24 * + 4 * COALESCE ( + + 10, + 93, - - 48 + - 32 + + 93 - 45 * 95 + - COUNT ( * ) ) / + COUNT ( + 92 ) + CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT DISTINCT + 23 AS col1
----
23

query I rowsort
SELECT DISTINCT + 15 * 51 * + - NULLIF ( + + 12, 94 ) * - + 38
----
348840

query I rowsort
SELECT + 79 * - 98 AS col2
----
-7742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT DISTINCT CAST( - + 84 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT CAST ( - + 84 AS INTEGER ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT COUNT( + 6 ) col1, 22 * + 42 * + 93 * + 23
----
1
1976436

skipif mysql # not compatible
query II rowsort label-2882
SELECT COUNT ( + 6 ) col1, 22 * + 42 * + 93 * + 23
----
1
1976436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2883
SELECT - CAST( NULL AS SIGNED ) * + MIN( ALL + 73 ) AS col1, - 24 + + ( 39 ) AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-2883
SELECT - CAST ( NULL AS INTEGER ) * + MIN ( ALL + 73 ) AS col1, - 24 + + ( 39 ) AS col0
----
NULL
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL ( - + 40 ) + + COUNT( * ) col0
----
-39

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL ( - + 40 ) + + COUNT ( * ) col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2885
SELECT DISTINCT CAST( + 89 AS SIGNED )
----
89

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT CAST ( + 89 AS INTEGER )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT ALL - 25 + - COUNT( * ) * + 25
----
-50

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL - 25 + - COUNT ( * ) * + 25
----
-50

query I rowsort
SELECT + NULLIF ( 97, 84 ) + - 59 + + + 71 + 88 * + 22
----
2045

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT ALL + - 25 DIV - 51 * - + 2
----
0

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL + - 25 / - 51 * - + 2
----
0

query I rowsort
SELECT ALL 17 + + - ( - - 5 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT + COUNT( - - 61 ) + + - 85 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-2890
SELECT + COUNT ( - - 61 ) + + - 85 AS col2
----
-84

query I rowsort
SELECT DISTINCT 35 * + 51 AS col0
----
1785

onlyif mysql # aggregate syntax: 
query II rowsort label-2892
SELECT ( + COUNT( * ) ) AS col2, - 89
----
1
-89

skipif mysql # not compatible
query II rowsort label-2892
SELECT ( + COUNT ( * ) ) AS col2, - 89
----
1
-89

query I rowsort
SELECT - + 1 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT + - 12 / - AVG ( - 66 ) * - CAST( NULL AS SIGNED ) - - - SUM( DISTINCT - 0 ) + - - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2894
SELECT + - 12 / - AVG ( - 66 ) * - CAST ( NULL AS INTEGER ) - - - SUM ( DISTINCT - 0 ) + - - 84
----
NULL

query I rowsort
SELECT + + 6 + + 16 AS col2
----
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2896
SELECT DISTINCT + COUNT( * ) * ( - 20 ) * - + 95 + - + 1, SUM( ALL 46 ) DIV - 50 AS col0
----
1899
0

skipif mysql # not compatible
query II rowsort label-2896
SELECT DISTINCT + COUNT ( * ) * ( - 20 ) * - + 95 + - + 1, SUM ( ALL 46 ) / - 50 AS col0
----
1899
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL + NULLIF ( + 7, 77 ) * COUNT( * ) + - 48 AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL + NULLIF ( + 7, 77 ) * COUNT ( * ) + - 48 AS col1
----
-41

query I rowsort
SELECT + + 37 * - 65 + + + 59
----
-2346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2899
SELECT - COALESCE ( - ( + - 59 ), + 12, + NULLIF ( - - ( - NULLIF ( - 14, + 31 ) ), + + COUNT( * ) + - CAST( 60 AS SIGNED ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-2899
SELECT - COALESCE ( - ( + - 59 ), + 12, + NULLIF ( - - ( - NULLIF ( - 14, + 31 ) ), + + COUNT ( * ) + - CAST ( 60 AS INTEGER ) ) )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT + 64 * - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-2900
SELECT + 64 * - COUNT ( * )
----
-64

query I rowsort
SELECT ALL - NULLIF ( + 18, 37 ) AS col0
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-2902
SELECT DISTINCT + NULLIF ( - + 60, 52 ) AS col0, COUNT( * )
----
-60
1

skipif mysql # not compatible
query II rowsort label-2902
SELECT DISTINCT + NULLIF ( - + 60, 52 ) AS col0, COUNT ( * )
----
-60
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL + 30 DIV 74 - - - MIN( ALL 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + 30 / 74 - - - MIN ( ALL 52 )
----
-52

query II rowsort
SELECT + - 10 * 28, + 65 AS col1
----
-280
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2905
SELECT DISTINCT + COALESCE ( - COALESCE ( + + COUNT( * ), + - 82 DIV + - 45 DIV 21 + ( - 34 ) ), - 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + COALESCE ( - COALESCE ( + + COUNT ( * ), + - 82 / + - 45 / 21 + ( - 34 ) ), - 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + + COUNT( * ) - - 82
----
83

skipif mysql # not compatible
query I rowsort label-2906
SELECT + + COUNT ( * ) - - 82
----
83

query II rowsort
SELECT ALL + 20 AS col0, - 73
----
20
-73

query II rowsort
SELECT ALL + 0 * - - 33 * + 35 AS col1, + 39
----
0
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2909
SELECT CAST( - 45 AS SIGNED ) AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-2909
SELECT CAST ( - 45 AS INTEGER ) AS col2
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2910
SELECT + ( - 31 ) * - 50 * - CAST( NULL AS SIGNED ) - 88 - + 54 + + 12 - - 13 * COALESCE ( - 84, + COUNT( * ), - 6 ) * - 65 * + 93 - + - 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT + ( - 31 ) * - 50 * - CAST ( NULL AS INTEGER ) - 88 - + 54 + + 12 - - 13 * COALESCE ( - 84, + COUNT ( * ), - 6 ) * - 65 * + 93 - + - 93 AS col1
----
NULL

query II rowsort
SELECT + 49 AS col2, 76 + - ( 18 )
----
49
58

query I rowsort
SELECT DISTINCT 80 * 48
----
3840

query I rowsort
SELECT ALL 98 * - 51 * - + 1 * 25 AS col1
----
124950

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT 19 * - MIN( ALL - + 34 ) + - - ( - 86 )
----
560

skipif mysql # not compatible
query I rowsort label-2914
SELECT 19 * - MIN ( ALL - + 34 ) + - - ( - 86 )
----
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2915
SELECT 20 AS col1, CASE MIN( + CAST( - - 42 AS SIGNED ) ) WHEN ( - - 77 ) + - 46 THEN + COALESCE ( - 96, - COALESCE ( + COALESCE ( 78, 96, + 41 ), - 50 ) ) WHEN 55 THEN - - 16 + 90 ELSE COUNT( * ) END * + 54
----
20
54

skipif mysql # not compatible
query II rowsort label-2915
SELECT 20 AS col1, CASE MIN ( + CAST ( - - 42 AS INTEGER ) ) WHEN ( - - 77 ) + - 46 THEN + COALESCE ( - 96, - COALESCE ( + COALESCE ( 78, 96, + 41 ), - 50 ) ) WHEN 55 THEN - - 16 + 90 ELSE COUNT ( * ) END * + 54
----
20
54

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT ALL - 39 AS col2, + COUNT( * ) * + 93
----
-39
93

skipif mysql # not compatible
query II rowsort label-2916
SELECT ALL - 39 AS col2, + COUNT ( * ) * + 93
----
-39
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2917
SELECT 84 + + 52 + 11 + 45 DIV - 79
----
147

skipif mysql # not compatible
query I rowsort label-2917
SELECT 84 + + 52 + 11 + 45 / - 79
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT 90 * + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-2918
SELECT 90 * + COUNT ( * )
----
90

query I rowsort
SELECT - 9 * 28 + + NULLIF ( 77, + 3 )
----
-175

onlyif mysql # aggregate syntax: 
query II rowsort label-2920
SELECT DISTINCT - COUNT( * ) AS col1, - 4 + 26 - + + 64 * - 39 * + + 70 + ( 41 ) + 13 * - 33 + COUNT( * ) AS col2
----
-1
174355

skipif mysql # not compatible
query II rowsort label-2920
SELECT DISTINCT - COUNT ( * ) AS col1, - 4 + 26 - + + 64 * - 39 * + + 70 + ( 41 ) + 13 * - 33 + COUNT ( * ) AS col2
----
-1
174355

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL - COUNT( * ) + 66
----
65

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL - COUNT ( * ) + 66
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT DISTINCT - COUNT( * ) + + + 83 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-2922
SELECT DISTINCT - COUNT ( * ) + + + 83 AS col2
----
82

query II rowsort
SELECT - 38, 54 AS col2
----
-38
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT - SUM( - ( 4 ) )
----
4

skipif mysql # not compatible
query I rowsort label-2924
SELECT - SUM ( - ( 4 ) )
----
4

query I rowsort
SELECT ALL - - 61 + + - 89 AS col1
----
-28

query I rowsort
SELECT ALL + 38 * + 59 + + 69 * - 18 * - 77 AS col0
----
97876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2927
SELECT CAST( - - 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-2927
SELECT CAST ( - - 73 AS INTEGER )
----
73

query I rowsort
SELECT DISTINCT + + 48 * + 44
----
2112

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT + CASE + 6 WHEN + 35 THEN NULL WHEN - 9 * - COUNT( DISTINCT - 83 ) THEN COUNT( * ) END - + + 64 / - - 94 * - - NULLIF ( - 12, - 28 - + 5 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2929
SELECT + CASE + 6 WHEN + 35 THEN NULL WHEN - 9 * - COUNT ( DISTINCT - 83 ) THEN COUNT ( * ) END - + + 64 / - - 94 * - - NULLIF ( - 12, - 28 - + 5 )
----
NULL

query I rowsort
SELECT 73 * + 61 col0
----
4453

onlyif mysql # aggregate syntax: 
query II rowsort label-2931
SELECT - NULLIF ( 85, - 7 ) AS col1, + 82 + + - 44 + COUNT( * )
----
-85
39

skipif mysql # not compatible
query II rowsort label-2931
SELECT - NULLIF ( 85, - 7 ) AS col1, + 82 + + - 44 + COUNT ( * )
----
-85
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT + 12 + + - CAST( + COUNT( * ) AS SIGNED ) * + CASE 42 WHEN - + 91 * 90 + - - NULLIF ( + MIN( + CAST( NULL AS SIGNED ) ), 43 * + 96 * + CAST( NULL AS SIGNED ) + + 36 ) THEN COUNT( * ) WHEN - COUNT( * ) * + - 94 THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 12 + + - CAST ( + COUNT ( * ) AS INTEGER ) * + CASE 42 WHEN - + 91 * 90 + - - NULLIF ( + MIN ( + CAST ( NULL AS INTEGER ) ), 43 * + 96 * + CAST ( NULL AS INTEGER ) + + 36 ) THEN COUNT ( * ) WHEN - COUNT ( * ) * + - 94 THEN NULL END col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT - 82 * + + 56 + 67 * + 17 * - ( - 5 ) + + CASE + + COUNT( * ) WHEN + 52 THEN + 37 / + 19 * - 28 + + 28 + - COALESCE ( 90, - CAST( NULL AS SIGNED ) * - - 2 * + 34 * + 21 + 87 * 40 ) * 17 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT - 82 * + + 56 + 67 * + 17 * - ( - 5 ) + + CASE + + COUNT ( * ) WHEN + 52 THEN + 37 / + 19 * - 28 + + 28 + - COALESCE ( 90, - CAST ( NULL AS INTEGER ) * - - 2 * + 34 * + 21 + 87 * 40 ) * 17 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2934
SELECT ALL 65 - + 75 DIV 87 DIV + 22 * - - 31
----
65

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL 65 - + 75 / 87 / + 22 * - - 31
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2935
SELECT ALL - COUNT( * ) DIV 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - COUNT ( * ) / 84 AS col1
----
0

query I rowsort
SELECT - NULLIF ( 99, 97 ) * + 57 * - ( NULLIF ( 10, + 10 + 86 + + 57 / + 31 ) ) AS col0
----
56430

onlyif mysql # aggregate syntax: 
query II rowsort label-2937
SELECT DISTINCT + + 43 - + 90 - + COUNT( * ), CASE + - 33 WHEN + MAX( + 82 ) THEN NULL ELSE - 92 END AS col0
----
-48
-92

skipif mysql # not compatible
query II rowsort label-2937
SELECT DISTINCT + + 43 - + 90 - + COUNT ( * ), CASE + - 33 WHEN + MAX ( + 82 ) THEN NULL ELSE - 92 END AS col0
----
-48
-92

query II rowsort
SELECT - - 42 AS col0, - 15
----
42
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT DISTINCT - 78 DIV - - 99
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - 78 / - - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT ALL + 20 - 65 + - CASE + ( 64 ) WHEN 51 / + COUNT( * ) THEN NULL ELSE + + AVG ( - + 57 ) END * CASE + 80 WHEN + 78 THEN - 0 WHEN - - COALESCE ( 46, - - 77, + 21 ) * 99 + COUNT( * ) + - 28 * 35 THEN NULL END / 22
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL + 20 - 65 + - CASE + ( 64 ) WHEN 51 / + COUNT ( * ) THEN NULL ELSE + + AVG ( - + 57 ) END * CASE + 80 WHEN + 78 THEN - 0 WHEN - - COALESCE ( 46, - - 77, + 21 ) * 99 + COUNT ( * ) + - 28 * 35 THEN NULL END / 22
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2941
SELECT + 82, 96 + - 13 + COUNT( * ) AS col1
----
82
84

skipif mysql # not compatible
query II rowsort label-2941
SELECT + 82, 96 + - 13 + COUNT ( * ) AS col1
----
82
84

query I rowsort
SELECT + 14 + - 60 * - 34 AS col1
----
2054

query I rowsort
SELECT DISTINCT 54 * 44 col0
----
2376

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT ALL - COUNT( * ) AS col2, + 78 AS col0
----
-1
78

skipif mysql # not compatible
query II rowsort label-2944
SELECT ALL - COUNT ( * ) AS col2, + 78 AS col0
----
-1
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT + COUNT( * ) + + 77
----
78

skipif mysql # not compatible
query I rowsort label-2945
SELECT + COUNT ( * ) + + 77
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT 84 * COUNT( * ) - - + 77 AS col2
----
161

skipif mysql # not compatible
query I rowsort label-2946
SELECT 84 * COUNT ( * ) - - + 77 AS col2
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2947
SELECT DISTINCT - CAST( 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - CAST ( 91 AS INTEGER )
----
-91

query I rowsort
SELECT DISTINCT - 87 * + 42 AS col2
----
-3654

query I rowsort
SELECT ( + 96 ) * 10 + - COALESCE ( + 92, - + 42 ) AS col2
----
868

query I rowsort
SELECT ALL 39 * - 9
----
-351

query I rowsort
SELECT DISTINCT 57 * + ( 25 )
----
1425

onlyif mysql # aggregate syntax: 
query II rowsort label-2952
SELECT ALL 80 + - COUNT( * ) AS col2, + ( - ( - - ( 66 ) ) )
----
79
-66

skipif mysql # not compatible
query II rowsort label-2952
SELECT ALL 80 + - COUNT ( * ) AS col2, + ( - ( - - ( 66 ) ) )
----
79
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT CAST( NULL AS SIGNED ) * + 45 + - 90 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( NULL AS INTEGER ) * + 45 + - 90 AS col2
----
NULL

query I rowsort
SELECT ALL - 29 col0
----
-29

query I rowsort
SELECT 0 * 39 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT COALESCE ( - - 96, + + 59, - + 21 * - 72 ) + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-2956
SELECT COALESCE ( - - 96, + + 59, - + 21 * - 72 ) + + COUNT ( * ) AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT ALL MAX( + 86 ) + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL MAX ( + 86 ) + COUNT ( * )
----
87

query I rowsort
SELECT ALL 44 + + - 9 * + 39
----
-307

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ( - 82 ) * 77 + - + MAX( DISTINCT + - 22 ) + 55
----
-6237

skipif mysql # not compatible
query I rowsort label-2959
SELECT ( - 82 ) * 77 + - + MAX ( DISTINCT + - 22 ) + 55
----
-6237

query I rowsort
SELECT DISTINCT 79 + + 16
----
95

query I rowsort
SELECT DISTINCT - 32 col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT ALL 50 + - 94 + - CAST( 70 AS SIGNED )
----
-114

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL 50 + - 94 + - CAST ( 70 AS INTEGER )
----
-114

query I rowsort
SELECT ALL - 34 + - 86
----
-120

query I rowsort
SELECT ALL - ( 74 )
----
-74

query I rowsort
SELECT 25 + - 34 AS col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT DISTINCT - MAX( ALL + + ( - 58 ) )
----
58

skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT - MAX ( ALL + + ( - 58 ) )
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2967
SELECT CAST( 20 AS SIGNED ) * COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-2967
SELECT CAST ( 20 AS INTEGER ) * COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT - 96 + + + COUNT( * ) * 39 + + + 88
----
31

skipif mysql # not compatible
query I rowsort label-2968
SELECT - 96 + + + COUNT ( * ) * 39 + + + 88
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT 16 + ( + SUM( + + 63 ) ) * - ( COUNT( * ) ) * - 20 + + COUNT( ALL - + NULLIF ( - + 84, - 8 - + + 26 ) ) + - 13 * 95 + + 95
----
137

skipif mysql # not compatible
query I rowsort label-2969
SELECT 16 + ( + SUM ( + + 63 ) ) * - ( COUNT ( * ) ) * - 20 + + COUNT ( ALL - + NULLIF ( - + 84, - 8 - + + 26 ) ) + - 13 * 95 + + 95
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2970
SELECT DISTINCT - 93 * - ( + 59 ) + 57 DIV - COUNT( * )
----
5430

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT - 93 * - ( + 59 ) + 57 / - COUNT ( * )
----
5430

query I rowsort
SELECT DISTINCT - 23 AS col2
----
-23

query I rowsort
SELECT - 37 * + + 91
----
-3367

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + COUNT( * ) + + ( COUNT( * ) ) + + MIN( - + 54 ) + + 64 * - COUNT( ALL + - 12 ) * - COUNT( * ) - + ( COUNT( - 71 ) ) + 91 + - 76 * + - 73 + 85 - - 23 * + 76 AS col0
----
7483

skipif mysql # not compatible
query I rowsort label-2973
SELECT + COUNT ( * ) + + ( COUNT ( * ) ) + + MIN ( - + 54 ) + + 64 * - COUNT ( ALL + - 12 ) * - COUNT ( * ) - + ( COUNT ( - 71 ) ) + 91 + - 76 * + - 73 + 85 - - 23 * + 76 AS col0
----
7483

query I rowsort
SELECT ALL - + 53 * ( - COALESCE ( + 78, + 81, - 10, 94 ) ) col2
----
4134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT - 85 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT - 85 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 44 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT MIN( DISTINCT 94 ) + + - 68 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2977
SELECT MIN ( DISTINCT 94 ) + + - 68 AS col2
----
26

query I rowsort
SELECT + ( 80 ) * - 10 AS col0
----
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2979
SELECT CAST( NULL AS SIGNED ) * + 37 - - + CASE 85 WHEN + 28 * + 98 THEN 58 END AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2979
SELECT CAST ( NULL AS INTEGER ) * + 37 - - + CASE 85 WHEN + 28 * + 98 THEN 58 END AS col0, COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT ALL - SUM( + + CAST( NULL AS SIGNED ) ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL - SUM ( + + CAST ( NULL AS INTEGER ) ) * + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2981
SELECT 64 + + - ( - 89 ) + - - COUNT( * ) DIV + + 99 AS col2, 18 - + 59, 3 col1
----
153
-41
3

skipif mysql # not compatible
query III rowsort label-2981
SELECT 64 + + - ( - 89 ) + - - COUNT ( * ) / + + 99 AS col2, 18 - + 59, 3 col1
----
153
-41
3

query I rowsort
SELECT - ( + 25 )
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2983
SELECT DISTINCT + COALESCE ( - 45, - + 6 DIV + 92, - 45 + + 4 ) AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + COALESCE ( - 45, - + 6 / + 92, - 45 + + 4 ) AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT ALL - SUM( - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - SUM ( - + 12 )
----
12

query I rowsort
SELECT - 39 * - 78 + - 56 AS col2
----
2986

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT DISTINCT 46 DIV + + 48
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT 46 / + + 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT ALL 81 + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-2987
SELECT ALL 81 + COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT + 4 + + 99 + - + MAX( DISTINCT - - 35 ) + + COUNT( * ) AS col1, + 73 * - COUNT( DISTINCT + 77 ) AS col0
----
69
-73

skipif mysql # not compatible
query II rowsort label-2988
SELECT + 4 + + 99 + - + MAX ( DISTINCT - - 35 ) + + COUNT ( * ) AS col1, + 73 * - COUNT ( DISTINCT + 77 ) AS col0
----
69
-73

query I rowsort
SELECT DISTINCT 27 * - + 52 + + 91 AS col2
----
-1313

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2990
SELECT ALL CAST( NULL AS SIGNED ) * + + 13 + + + 79, CAST( NULL AS DECIMAL ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL CAST ( NULL AS INTEGER ) * + + 13 + + + 79, CAST ( NULL AS REAL ) AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2991
SELECT ALL 1 * + 16 + + COUNT( DISTINCT - - 26 ) + + 1, COUNT( * ) AS col1
----
18
1

skipif mysql # not compatible
query II rowsort label-2991
SELECT ALL 1 * + 16 + + COUNT ( DISTINCT - - 26 ) + + 1, COUNT ( * ) AS col1
----
18
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT - CASE + 33 WHEN + 72 THEN - 69 WHEN + - 92 * - - CAST( NULL AS SIGNED ) * - 52 + + 90 * + MAX( DISTINCT 71 ) + - 8 * + + 35 THEN NULL END - + 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT - CASE + 33 WHEN + 72 THEN - 69 WHEN + - 92 * - - CAST ( NULL AS INTEGER ) * - 52 + + 90 * + MAX ( DISTINCT 71 ) + - 8 * + + 35 THEN NULL END - + 48 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT 38 * 73 - - 66 * + ( - + COUNT( * ) ) + - 8 + + 83 AS col2
----
2783

skipif mysql # not compatible
query I rowsort label-2993
SELECT 38 * 73 - - 66 * + ( - + COUNT ( * ) ) + - 8 + + 83 AS col2
----
2783

query I rowsort
SELECT ALL 38 * - - 34 AS col2
----
1292

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL - 93 * + + COUNT( ALL + - 54 )
----
-93

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL - 93 * + + COUNT ( ALL + - 54 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT DISTINCT - 47 * COUNT( * ) + + - 41 - 23 * 48 AS col2
----
-1192

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - 47 * COUNT ( * ) + + - 41 - 23 * 48 AS col2
----
-1192

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + NULLIF ( - NULLIF ( COUNT( * ), 55 ), + - 7 )
----
-1

skipif mysql # not compatible
query I rowsort label-2997
SELECT + NULLIF ( - NULLIF ( COUNT ( * ), 55 ), + - 7 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2998
SELECT + 73 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2998
SELECT + 73 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2999
SELECT ALL + 64 AS col0, COUNT( * ) + 17 + + + MIN( DISTINCT 24 ) DIV 48 * - - 92
----
64
18

skipif mysql # not compatible
query II rowsort label-2999
SELECT ALL + 64 AS col0, COUNT ( * ) + 17 + + + MIN ( DISTINCT 24 ) / 48 * - - 92
----
64
18

query I rowsort
SELECT CASE - 81 WHEN + 32 THEN 6 END
----
NULL

query I rowsort
SELECT + 49 * + 91
----
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT MAX( + 41 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-3002
SELECT MAX ( + 41 ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3003
SELECT ALL + 79 AS col2, 29 * - 94 + COUNT( * )
----
79
-2725

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL + 79 AS col2, 29 * - 94 + COUNT ( * )
----
79
-2725

query I rowsort
SELECT + + 68 * + 36 - 46 + + ( 92 )
----
2494

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3005
SELECT DISTINCT + 11 * - CAST( + + 69 AS SIGNED ) - 32
----
-791

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + 11 * - CAST ( + + 69 AS INTEGER ) - 32
----
-791

query I rowsort
SELECT ALL COALESCE ( - 61, - 90 + - 29 ) * CASE + - 98 WHEN - 48 - - CASE + - 45 WHEN 47 THEN + 52 ELSE NULL END + - 2 + - 65 THEN + 66 END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT + - CAST( + - 40 AS SIGNED ) * + - CAST( 43 AS SIGNED ) + + SUM( ALL - ( + ( - ( - 10 ) ) ) ) + + 89
----
-1641

skipif mysql # not compatible
query I rowsort label-3007
SELECT + - CAST ( + - 40 AS INTEGER ) * + - CAST ( 43 AS INTEGER ) + + SUM ( ALL - ( + ( - ( - 10 ) ) ) ) + + 89
----
-1641

query I rowsort
SELECT DISTINCT + - 68 AS col1
----
-68

query I rowsort
SELECT DISTINCT 86 - + - 9
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL - 95 * + COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - 95 * + COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT DISTINCT - SUM( - 30 ) col2
----
30

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - SUM ( - 30 ) col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT + 83 - 78 - + NULLIF ( - - 25, 73 * 1 + COUNT( * ) + + 51 )
----
-20

skipif mysql # not compatible
query I rowsort label-3012
SELECT + 83 - 78 - + NULLIF ( - - 25, 73 * 1 + COUNT ( * ) + + 51 )
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3013
SELECT + 87 DIV COALESCE ( + NULLIF ( - 39, 10 + - 2 ), + 80, 52 ) + + COUNT( 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-3013
SELECT + 87 / COALESCE ( + NULLIF ( - 39, 10 + - 2 ), + 80, 52 ) + + COUNT ( 46 )
----
-1

query I rowsort
SELECT - 57 * - 67
----
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + CASE 8 WHEN 24 THEN NULL WHEN 88 + + + MIN( + - 27 ) * + 5 THEN - 49 * + 89 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3015
SELECT + CASE 8 WHEN 24 THEN NULL WHEN 88 + + + MIN ( + - 27 ) * + 5 THEN - 49 * + 89 ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3016
SELECT DISTINCT + + 13 DIV + 18 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT + + 13 / + 18 AS col2
----
0

query I rowsort
SELECT + 10 + + ( + 0 )
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3018
SELECT - + 73 / + CAST( NULL AS SIGNED ) * 15 * 51 - + - CAST( NULL AS DECIMAL ) AS col0, 52 * 13 AS col0
----
NULL
676

skipif mysql # not compatible
query II rowsort label-3018
SELECT - + 73 / + CAST ( NULL AS INTEGER ) * 15 * 51 - + - CAST ( NULL AS REAL ) AS col0, 52 * 13 AS col0
----
NULL
676

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT - - 98 * + - 61 - - SUM( ALL + - 36 )
----
-6014

skipif mysql # not compatible
query I rowsort label-3019
SELECT - - 98 * + - 61 - - SUM ( ALL + - 36 )
----
-6014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3020
SELECT - + 82 - - + CAST( + + 70 AS SIGNED ) + - 55 AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-3020
SELECT - + 82 - - + CAST ( + + 70 AS INTEGER ) + - 55 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT ALL MAX( ALL - - 63 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL MAX ( ALL - - 63 ) AS col0
----
63

query I rowsort
SELECT DISTINCT - 78 * - + 95 * 17 AS col0
----
125970

query I rowsort
SELECT ALL - 69 + - + 68 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - 51 + - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-3024
SELECT - 51 + - COUNT ( * )
----
-52

query I rowsort
SELECT - 57 - 9
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT - NULLIF ( + 98, + SUM( ALL 18 ) ) + - 24 AS col0
----
-122

skipif mysql # not compatible
query I rowsort label-3026
SELECT - NULLIF ( + 98, + SUM ( ALL 18 ) ) + - 24 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + CASE + 56 WHEN - 37 THEN - COUNT( * ) * - 26 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3027
SELECT ALL + CASE + 56 WHEN - 37 THEN - COUNT ( * ) * - 26 END
----
NULL

query I rowsort
SELECT DISTINCT + 61 * - 85 AS col1
----
-5185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3029
SELECT DISTINCT COUNT( * ) DIV - - ( + 6 ) + + - 92 + 76
----
-16

skipif mysql # not compatible
query I rowsort label-3029
SELECT DISTINCT COUNT ( * ) / - - ( + 6 ) + + - 92 + 76
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3030
SELECT CAST( NULL AS SIGNED ) AS col2, 24 + + - 36 + + 17
----
NULL
5

skipif mysql # not compatible
query II rowsort label-3030
SELECT CAST ( NULL AS INTEGER ) AS col2, 24 + + - 36 + + 17
----
NULL
5

query II rowsort
SELECT + NULLIF ( - 38, 40 * ( + 38 ) + - 93 ) AS col1, 34 + 36
----
-38
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3032
SELECT ALL + 70 AS col0, NULLIF ( - 39, COUNT( * ) )
----
70
-39

skipif mysql # not compatible
query II rowsort label-3032
SELECT ALL + 70 AS col0, NULLIF ( - 39, COUNT ( * ) )
----
70
-39

query I rowsort
SELECT - 61 * - + 56 AS col2
----
3416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ( + + COALESCE ( 13, 65, CAST( NULL AS SIGNED ) ) )
----
13

skipif mysql # not compatible
query I rowsort label-3034
SELECT ( + + COALESCE ( 13, 65, CAST ( NULL AS INTEGER ) ) )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL COUNT( * ) * COUNT( * ) * - SUM( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL COUNT ( * ) * COUNT ( * ) * - SUM ( + 14 )
----
-14

query I rowsort
SELECT 99 * - 78 * + 33 + + 42
----
-254784

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT ( - MIN( + + ( + ( - 96 ) ) ) )
----
96

skipif mysql # not compatible
query I rowsort label-3037
SELECT ( - MIN ( + + ( + ( - 96 ) ) ) )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3038
SELECT ALL + - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) / COALESCE ( + + 34, + COUNT( * ) / 33 * + 34 * + 4 * - COUNT( * ) + - 15 + - ( 92 ), - - 7 - + 96 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3038
SELECT ALL + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) / COALESCE ( + + 34, + COUNT ( * ) / 33 * + 34 * + 4 * - COUNT ( * ) + - 15 + - ( 92 ), - - 7 - + 96 )
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + 57 * + COALESCE ( - - 6, - COUNT( * ) )
----
342

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + 57 * + COALESCE ( - - 6, - COUNT ( * ) )
----
342

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + 1 + + MIN( ALL + 68 ) + 12 * 91 AS col1
----
1161

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 1 + + MIN ( ALL + 68 ) + 12 * 91 AS col1
----
1161

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL + - ( - ( - + COUNT( * ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL + - ( - ( - + COUNT ( * ) ) )
----
-1

query I rowsort
SELECT + 95 * - 30 + - 11
----
-2861

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT ALL + COUNT( - - 92 ), - 70 AS col0
----
1
-70

skipif mysql # not compatible
query II rowsort label-3043
SELECT ALL + COUNT ( - - 92 ), - 70 AS col0
----
1
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT - 78 * - 40 * + NULLIF ( - 46, CAST( CASE 89 WHEN 15 + + 74 THEN + - 59 END AS SIGNED ) * + 5 + + 28 ) + + 73
----
-143447

skipif mysql # not compatible
query I rowsort label-3044
SELECT - 78 * - 40 * + NULLIF ( - 46, CAST ( CASE 89 WHEN 15 + + 74 THEN + - 59 END AS INTEGER ) * + 5 + + 28 ) + + 73
----
-143447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3045
SELECT 47 * + 9 - - + 28 * - - COALESCE ( + ( + COUNT( * ) ), + + 93, - 0 + - + 43 - - CASE - 43 WHEN - 39 + - 20 * - 14 * - + 77 + + 31 THEN + 40 ELSE CAST( - COUNT( * ) AS SIGNED ) - ( 8 ) END )
----
451

skipif mysql # not compatible
query I rowsort label-3045
SELECT 47 * + 9 - - + 28 * - - COALESCE ( + ( + COUNT ( * ) ), + + 93, - 0 + - + 43 - - CASE - 43 WHEN - 39 + - 20 * - 14 * - + 77 + + 31 THEN + 40 ELSE CAST ( - COUNT ( * ) AS INTEGER ) - ( 8 ) END )
----
451

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + 83 * + ( - SUM( ALL + + ( 73 ) ) )
----
-6059

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + 83 * + ( - SUM ( ALL + + ( 73 ) ) )
----
-6059

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT COALESCE ( + - 4, + 91, 5 + 48 + - COUNT( * ) - - 55 ) * 56 AS col2
----
-224

skipif mysql # not compatible
query I rowsort label-3047
SELECT COALESCE ( + - 4, + 91, 5 + 48 + - COUNT ( * ) - - 55 ) * 56 AS col2
----
-224

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT ALL 47 + 46 DIV + 30 + - + 18 + 25 AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3048
SELECT ALL 47 + 46 / + 30 + - + 18 + 25 AS col2
----
55

query I rowsort
SELECT - COALESCE ( 61, + COALESCE ( - - 90, + 35 ) * - + 34, 60 ) + - 2
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-3050
SELECT DISTINCT 68, COUNT( ALL + 91 ) col2
----
68
1

skipif mysql # not compatible
query II rowsort label-3050
SELECT DISTINCT 68, COUNT ( ALL + 91 ) col2
----
68
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT ALL CAST( - 32 AS SIGNED ) + - - 2 + 18 * COUNT( * ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL CAST ( - 32 AS INTEGER ) + - - 2 + 18 * COUNT ( * ) AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT DISTINCT + 89 + 45 + + CASE CASE + AVG ( DISTINCT - 14 ) WHEN - COUNT( * ) THEN - COUNT( * ) + - 52 + + - ( - 81 ) * 26 / - 42 END WHEN + 21 THEN + 77 WHEN - 82 THEN + - COUNT( * ) * - + 13 + + COALESCE ( + ( - - ( - 95 ) ), 95 * NULLIF ( CASE + 91 WHEN 86 + 34 * 65 THEN - 81 END, - 99 ) + COUNT( * ) / - 88 ) + + 18 END + + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3052
SELECT DISTINCT + 89 + 45 + + CASE CASE + AVG ( DISTINCT - 14 ) WHEN - COUNT ( * ) THEN - COUNT ( * ) + - 52 + + - ( - 81 ) * 26 / - 42 END WHEN + 21 THEN + 77 WHEN - 82 THEN + - COUNT ( * ) * - + 13 + + COALESCE ( + ( - - ( - 95 ) ), 95 * NULLIF ( CASE + 91 WHEN 86 + 34 * 65 THEN - 81 END, - 99 ) + COUNT ( * ) / - 88 ) + + 18 END + + 97
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3053
SELECT ALL + 11 DIV - + 74, ( - 16 ) + + + COALESCE ( - 85, + COUNT( * ) * - 4 DIV COUNT( * ) * + 84 + + 19 ) AS col1
----
0
-101

skipif mysql # not compatible
query II rowsort label-3053
SELECT ALL + 11 / - + 74, ( - 16 ) + + + COALESCE ( - 85, + COUNT ( * ) * - 4 / COUNT ( * ) * + 84 + + 19 ) AS col1
----
0
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT ALL 33 + + + COUNT( * ) * 89 * - COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3054
SELECT ALL 33 + + + COUNT ( * ) * 89 * - COUNT ( * )
----
-56

query I rowsort
SELECT 0 * 40
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3056
SELECT ALL - CAST( + 8 AS SIGNED ) - 59 * - 36 * + + 84 + - 46 + + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL - CAST ( + 8 AS INTEGER ) - 59 * - 36 * + + 84 + - 46 + + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT DISTINCT + COALESCE ( 2, + + 84 + - COUNT( * ), + 43 ) - + NULLIF ( - COUNT( * ), + COUNT( * ) ) * + + COALESCE ( - 50, - - COUNT( * ) ) - + 13 AS col1, + 73
----
-61
73

skipif mysql # not compatible
query II rowsort label-3057
SELECT DISTINCT + COALESCE ( 2, + + 84 + - COUNT ( * ), + 43 ) - + NULLIF ( - COUNT ( * ), + COUNT ( * ) ) * + + COALESCE ( - 50, - - COUNT ( * ) ) - + 13 AS col1, + 73
----
-61
73

query I rowsort
SELECT 18 - - - 40 AS col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT MIN( 25 ) * - - 31
----
775

skipif mysql # not compatible
query I rowsort label-3059
SELECT MIN ( 25 ) * - - 31
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - ( - MIN( + 86 ) ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - ( - MIN ( + 86 ) ) AS col2
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3061
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT - 90 - 7 - - ( + 43 ) * - 93 * 1 AS col0
----
-4096

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT 93 * - COUNT( * ) + - 82 AS col0
----
-175

skipif mysql # not compatible
query I rowsort label-3063
SELECT 93 * - COUNT ( * ) + - 82 AS col0
----
-175

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3064
SELECT + COALESCE ( CASE - 56 WHEN - 86 THEN 24 WHEN - - 93 THEN CASE - 75 WHEN 95 - + - ( - + ( - COALESCE ( - 52, - + 20, 0 + - 41 ) ) ) * + COUNT( * ) * 81 THEN + 41 WHEN + CASE + - ( COUNT( DISTINCT + 1 ) ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN NULLIF ( - 93, COALESCE ( ( CASE + 49 WHEN + 82 + - 38 * 50 THEN + 13 * ( 42 * 87 ) ELSE NULL END ), 19 * CAST( NULLIF ( ( - 92 ), 5 ) AS SIGNED ) - 22 ) ) THEN + CAST( - 27 AS SIGNED ) END * + ( 60 ) THEN 13 DIV 93 END * + 5 WHEN 82 THEN NULL END, + 13 + 48 )
----
61

skipif mysql # not compatible
query I rowsort label-3064
SELECT + COALESCE ( CASE - 56 WHEN - 86 THEN 24 WHEN - - 93 THEN CASE - 75 WHEN 95 - + - ( - + ( - COALESCE ( - 52, - + 20, 0 + - 41 ) ) ) * + COUNT ( * ) * 81 THEN + 41 WHEN + CASE + - ( COUNT ( DISTINCT + 1 ) ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN NULLIF ( - 93, COALESCE ( ( CASE + 49 WHEN + 82 + - 38 * 50 THEN + 13 * ( 42 * 87 ) ELSE NULL END ), 19 * CAST ( NULLIF ( ( - 92 ), 5 ) AS INTEGER ) - 22 ) ) THEN + CAST ( - 27 AS INTEGER ) END * + ( 60 ) THEN 13 / 93 END * + 5 WHEN 82 THEN NULL END, + 13 + 48 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT COUNT( * ) * COUNT( * ) + + ( + 62 )
----
63

skipif mysql # not compatible
query I rowsort label-3065
SELECT COUNT ( * ) * COUNT ( * ) + + ( + 62 )
----
63

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3066
SELECT + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3066
SELECT + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT + ( + 31 )
----
31

query I rowsort
SELECT ALL - 12 * - 3 + - 77 col0
----
-41

query I rowsort
SELECT ALL - 1 + + ( + + 22 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL - COALESCE ( - 37, COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL - COALESCE ( - 37, COUNT ( * ) ) AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3071
SELECT 19 * - - 83 + COUNT( * ) + + 82 - + 93 DIV - 78
----
1661

skipif mysql # not compatible
query I rowsort label-3071
SELECT 19 * - - 83 + COUNT ( * ) + + 82 - + 93 / - 78
----
1661

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3072
SELECT DISTINCT + ( - CASE - 48 WHEN 97 THEN CAST( NULL AS SIGNED ) + + ( - 80 ) END ) * 19 + + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + ( - CASE - 48 WHEN 97 THEN CAST ( NULL AS INTEGER ) + + ( - 80 ) END ) * 19 + + 3 AS col2
----
NULL

query I rowsort
SELECT ALL - 51 * - 30 * - 77 AS col0
----
-117810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT DISTINCT - ( + + 90 ) + + 26 - ( - 61 ) + - - 31 + - 6 + - 18 * + 41 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT DISTINCT - ( + + 90 ) + + 26 - ( - 61 ) + - - 31 + - 6 + - 18 * + 41 * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 85 + - + 21 AS col2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT + ( - COUNT( * ) ) + - ( - + 31 ) * - + 44 + 19 AS col0
----
-1346

skipif mysql # not compatible
query I rowsort label-3076
SELECT + ( - COUNT ( * ) ) + - ( - + 31 ) * - + 44 + 19 AS col0
----
-1346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3077
SELECT CAST( NULL AS SIGNED ) * + 32 * + CASE + COUNT( * ) WHEN + - 53 + - 82 * + 33 * 54 / - + CAST( - + 77 AS SIGNED ) * - ( 49 ) + - - 7 THEN - COUNT( * ) ELSE - 6 * - + 74 + 65 + - + 36 + CAST( - - 5 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3077
SELECT CAST ( NULL AS INTEGER ) * + 32 * + CASE + COUNT ( * ) WHEN + - 53 + - 82 * + 33 * 54 / - + CAST ( - + 77 AS INTEGER ) * - ( 49 ) + - - 7 THEN - COUNT ( * ) ELSE - 6 * - + 74 + 65 + - + 36 + CAST ( - - 5 AS INTEGER ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3078
SELECT 93 + - COUNT( * ) + - + CAST( - + 42 AS SIGNED )
----
134

skipif mysql # not compatible
query I rowsort label-3078
SELECT 93 + - COUNT ( * ) + - + CAST ( - + 42 AS INTEGER )
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - 6 - + ( - CASE + + 82 WHEN + MAX( ALL - 18 ) THEN - 97 WHEN 58 + - 15 THEN 49 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 6 - + ( - CASE + + 82 WHEN + MAX ( ALL - 18 ) THEN - 97 WHEN 58 + - 15 THEN 49 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3080
SELECT DISTINCT 49 AS col1, 68 DIV + COUNT( * ) + COUNT( * ) + - 55 + 31 AS col2
----
49
45

skipif mysql # not compatible
query II rowsort label-3080
SELECT DISTINCT 49 AS col1, 68 / + COUNT ( * ) + COUNT ( * ) + - 55 + 31 AS col2
----
49
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL 15 - - - COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL 15 - - - COUNT ( * )
----
14

query I rowsort
SELECT 9 - + 20
----
-11

query I rowsort
SELECT ALL 27 * 48 AS col1
----
1296

query II rowsort
SELECT ALL 58 AS col2, + 18 * + - 10 + 7 AS col0
----
58
-173

query I rowsort
SELECT 28 + + + 37 AS col0
----
65

query I rowsort
SELECT ALL 79 - + + 12
----
67

query I rowsort
SELECT 99 * + + 57 AS col0
----
5643

query I rowsort
SELECT ( + ( + 47 ) ) + + 20 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT COUNT( * ) + - 36 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-3089
SELECT COUNT ( * ) + - 36 AS col1
----
-35

query II rowsort
SELECT ALL 69 AS col0, + 91
----
69
91

query I rowsort
SELECT 18 + + 22
----
40

query I rowsort
SELECT 54 - 32 AS col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3093
SELECT 25 * - ( COUNT( * ) ), COUNT( * ) AS col2
----
-25
1

skipif mysql # not compatible
query II rowsort label-3093
SELECT 25 * - ( COUNT ( * ) ), COUNT ( * ) AS col2
----
-25
1

query II rowsort
SELECT DISTINCT 25 col1, - 0 * 7
----
25
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3095
SELECT DISTINCT 67 DIV + - 72
----
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT DISTINCT 67 / + - 72
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3096
SELECT COUNT( * ) * ( CAST( NULL AS SIGNED ) ) * NULLIF ( + 13, + COUNT( * ) ) + + 94 - - AVG ( - CAST( ( - + 84 ) AS SIGNED ) ) * + SUM( ALL - 55 ) * - - ( - ( 69 ) ) / - 52 / + 32 + + 31 + - - 92 - MIN( + 59 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3096
SELECT COUNT ( * ) * ( CAST ( NULL AS INTEGER ) ) * NULLIF ( + 13, + COUNT ( * ) ) + + 94 - - AVG ( - CAST ( ( - + 84 ) AS INTEGER ) ) * + SUM ( ALL - 55 ) * - - ( - ( 69 ) ) / - 52 / + 32 + + 31 + - - 92 - MIN ( + 59 ) AS col2
----
NULL

query I rowsort
SELECT ALL - 44 * 49 * - + 38
----
81928

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT MAX( + + 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-3098
SELECT MAX ( + + 57 ) col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-3099
SELECT ALL 13 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 13 / + 42
----
0

query II rowsort
SELECT ALL - 82 AS col1, 3 col1
----
-82
3

query I rowsort
SELECT + + 41 * + ( + 7 ) + 10 + - 79
----
218

query I rowsort
SELECT ALL + 76 * 76
----
5776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT 16 * + CAST( NULL AS SIGNED ) * - 3 * + 79 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT 16 * + CAST ( NULL AS INTEGER ) * - 3 * + 79 col2
----
NULL

query I rowsort
SELECT + + ( + - 76 ) AS col0
----
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3105
SELECT CASE 70 WHEN - 65 THEN + 78 WHEN - + CAST( NULL AS SIGNED ) * - AVG ( + - 14 ) - CAST( NULL AS SIGNED ) * + 85 * - 46 * - 24 / - 74 + - 97 + + + 10 - SUM( ALL + CAST( NULL AS SIGNED ) ) / - 48 THEN NULL ELSE NULL END + - - CAST( NULL AS SIGNED ) + - 53 * - 3 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT CASE 70 WHEN - 65 THEN + 78 WHEN - + CAST ( NULL AS INTEGER ) * - AVG ( + - 14 ) - CAST ( NULL AS INTEGER ) * + 85 * - 46 * - 24 / - 74 + - 97 + + + 10 - SUM ( ALL + CAST ( NULL AS INTEGER ) ) / - 48 THEN NULL ELSE NULL END + - - CAST ( NULL AS INTEGER ) + - 53 * - 3 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL 44 * - 46 + - 48 * + 54 + - + SUM( + + 88 )
----
-4704

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL 44 * - 46 + - 48 * + 54 + - + SUM ( + + 88 )
----
-4704

query I rowsort
SELECT DISTINCT - 36 col1
----
-36

query I rowsort
SELECT ALL + 98 * + - 71 + + + 44
----
-6914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT + CAST( - NULLIF ( - COUNT( * ), - 87 + 26 ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3109
SELECT + CAST ( - NULLIF ( - COUNT ( * ), - 87 + 26 ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3110
SELECT - 62 AS col1, + COUNT( * ) AS col0
----
-62
1

skipif mysql # not compatible
query II rowsort label-3110
SELECT - 62 AS col1, + COUNT ( * ) AS col0
----
-62
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3111
SELECT ALL + 97 AS col2, - 81 - 82 - COUNT( * ) * ( - + 60 ) * - 12 - - 3 * 98 AS col1
----
97
-589

skipif mysql # not compatible
query II rowsort label-3111
SELECT ALL + 97 AS col2, - 81 - 82 - COUNT ( * ) * ( - + 60 ) * - 12 - - 3 * 98 AS col1
----
97
-589

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + 23 * - COUNT( ALL - - 99 ) * + 96 + + 94 + + - 39
----
-2153

skipif mysql # not compatible
query I rowsort label-3112
SELECT + 23 * - COUNT ( ALL - - 99 ) * + 96 + + 94 + + - 39
----
-2153

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT ALL + CASE + - 44 WHEN + COUNT( * ) * + - 57 THEN NULL WHEN + 94 * + - 75 THEN - - 59 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL + CASE + - 44 WHEN + COUNT ( * ) * + - 57 THEN NULL WHEN + 94 * + - 75 THEN - - 59 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 25 * - - 11 + - - ( + 4 )
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - COUNT( * ) * 84
----
-84

skipif mysql # not compatible
query I rowsort label-3115
SELECT - COUNT ( * ) * 84
----
-84

query I rowsort
SELECT - + 95 + + 84 col2
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT ALL - + CAST( NULL AS SIGNED ) + 52 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - + CAST ( NULL AS INTEGER ) + 52 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + + ( CASE + 89 WHEN + - 55 THEN NULL WHEN + - 69 + - 37 THEN NULL WHEN 38 * - - 49 - - 13 / + - COALESCE ( - ( - 68 ), - SUM( ALL + 44 ) - 12 ) THEN - 9 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + + ( CASE + 89 WHEN + - 55 THEN NULL WHEN + - 69 + - 37 THEN NULL WHEN 38 * - - 49 - - 13 / + - COALESCE ( - ( - 68 ), - SUM ( ALL + 44 ) - 12 ) THEN - 9 END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT - - 32 * COUNT( * ) + + - COUNT( * ) + + + MIN( DISTINCT + + 68 ) * + 21 + - 8
----
1451

skipif mysql # not compatible
query I rowsort label-3119
SELECT - - 32 * COUNT ( * ) + + - COUNT ( * ) + + + MIN ( DISTINCT + + 68 ) * + 21 + - 8
----
1451

query I rowsort
SELECT - 65 + + 91
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3121
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + + 68 - - - 37 + - - 46
----
76

skipif mysql # not compatible
query I rowsort label-3121
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + + 68 - - - 37 + - - 46
----
76

query I rowsort
SELECT ALL + 38 - 30 + 75 * - + 45 - + 27 * - 35 AS col2
----
-2422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3123
SELECT - 22 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3123
SELECT - 22 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 2 * - + 35
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL + COUNT( * ) * + 36 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-3125
SELECT ALL + COUNT ( * ) * + 36 AS col1
----
36

query I rowsort
SELECT DISTINCT COALESCE ( - 16, - 47 )
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3127
SELECT DISTINCT COALESCE ( - CAST( COUNT( * ) AS SIGNED ), 70 + - - CAST( NULL AS SIGNED ) * CAST( + 29 AS SIGNED ) + - + 79 * + ( 81 ) - + MAX( + 3 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT COALESCE ( - CAST ( COUNT ( * ) AS INTEGER ), 70 + - - CAST ( NULL AS INTEGER ) * CAST ( + 29 AS INTEGER ) + - + 79 * + ( 81 ) - + MAX ( + 3 ) )
----
-1

query I rowsort
SELECT ALL ( + 40 ) col0
----
40

query I rowsort
SELECT DISTINCT ( + 91 ) AS col0
----
91

query II rowsort
SELECT DISTINCT COALESCE ( 95, + - 24 ) - + 61, - 37 + - 24 col0
----
34
-61

query I rowsort
SELECT + 32 * + 50 AS col1
----
1600

query I rowsort
SELECT DISTINCT ( 18 )
----
18

query I rowsort
SELECT ALL ( + 53 ) AS col2
----
53

query I rowsort
SELECT ALL 72 + 70 * + 77
----
5462

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT + 2 + + COUNT( * ) AS col1, + 1
----
3
1

skipif mysql # not compatible
query II rowsort label-3135
SELECT + 2 + + COUNT ( * ) AS col1, + 1
----
3
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3136
SELECT DISTINCT COUNT( * ) + - - 44 + - - 24 + + NULLIF ( - 26, - 61 / - 20 ) + COUNT( * ) + - 41 col2, 24
----
3
24

skipif mysql # not compatible
query II rowsort label-3136
SELECT DISTINCT COUNT ( * ) + - - 44 + - - 24 + + NULLIF ( - 26, - 61 / - 20 ) + COUNT ( * ) + - 41 col2, 24
----
3
24

query I rowsort
SELECT ALL + 98 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3138
SELECT DISTINCT - 78 * CASE + - CAST( + 90 AS SIGNED ) WHEN COUNT( * ) THEN 62 - CAST( NULL AS SIGNED ) ELSE NULL END + + - 67 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3138
SELECT DISTINCT - 78 * CASE + - CAST ( + 90 AS INTEGER ) WHEN COUNT ( * ) THEN 62 - CAST ( NULL AS INTEGER ) ELSE NULL END + + - 67 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3139
SELECT - 96 DIV - COALESCE ( 33, - 84 - - 76 ) - 20 * + + NULLIF ( - 20, + 28 * + 52 * - - 56 )
----
402

skipif mysql # not compatible
query I rowsort label-3139
SELECT - 96 / - COALESCE ( 33, - 84 - - 76 ) - 20 * + + NULLIF ( - 20, + 28 * + 52 * - - 56 )
----
402

query I rowsort
SELECT + + 76 AS col0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3141
SELECT + + 39 DIV + 54 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3141
SELECT + + 39 / + 54 AS col1
----
0

query II rowsort
SELECT + 38 - - + 58 AS col1, ( + 66 )
----
96
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3143
SELECT DISTINCT + 0 DIV 13 + 14
----
14

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT + 0 / 13 + 14
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3144
SELECT ALL + 95 DIV COUNT( DISTINCT + 87 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + 95 / COUNT ( DISTINCT + 87 ) AS col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - CASE 80 WHEN - COALESCE ( + + 6, + 83 ) + - + COUNT( * ) / - 49 THEN NULL ELSE - 12 END AS col0
----
12

skipif mysql # not compatible
query I rowsort label-3145
SELECT - CASE 80 WHEN - COALESCE ( + + 6, + 83 ) + - + COUNT ( * ) / - 49 THEN NULL ELSE - 12 END AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT DISTINCT + 62 * + SUM( + - 82 ) AS col0
----
-5084

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT + 62 * + SUM ( + - 82 ) AS col0
----
-5084

query I rowsort
SELECT ALL + ( - 55 ) AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3148
SELECT + 83 * + + 32 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) + 30 * 33
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT + 83 * + + 32 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + 30 * 33
----
NULL

query I rowsort
SELECT + - 79 AS col2
----
-79

query I rowsort
SELECT + 50 * 39 * - + 29 + + 76 + - 82 * - + 48 * + 72 - + - 7
----
226925

query I rowsort
SELECT ALL + - 93 AS col1
----
-93

query I rowsort
SELECT + - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT - 37 * - 39 * - - 77 * 9 * + + 54 + + COUNT( * ) * + 62 AS col1
----
54000008

skipif mysql # not compatible
query I rowsort label-3153
SELECT - 37 * - 39 * - - 77 * 9 * + + 54 + + COUNT ( * ) * + 62 AS col1
----
54000008

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3154
SELECT ALL - 35 * MIN( ALL + + 98 ) DIV 50 - 91 AS col0
----
-159

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL - 35 * MIN ( ALL + + 98 ) / 50 - 91 AS col0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT SUM( ALL - 56 ) * 20 AS col0
----
-1120

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT SUM ( ALL - 56 ) * 20 AS col0
----
-1120

query I rowsort
SELECT - 81 * + 73 AS col1
----
-5913

query I rowsort
SELECT ALL ( 56 ) AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3158
SELECT ALL - 43 * + 65 - 28 - - 24 DIV - COUNT( 19 )
----
-2847

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL - 43 * + 65 - 28 - - 24 / - COUNT ( 19 )
----
-2847

query I rowsort
SELECT + 86 + 1 + + 48 AS col2
----
135

query I rowsort
SELECT - 50 * - 83 col1
----
4150

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL ( - + MIN( DISTINCT + 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL ( - + MIN ( DISTINCT + 5 ) )
----
-5

query I rowsort
SELECT - 38 + + 65 * - 15
----
-1013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3163
SELECT - COUNT( * ) DIV - - 28
----
0

skipif mysql # not compatible
query I rowsort label-3163
SELECT - COUNT ( * ) / - - 28
----
0

query I rowsort
SELECT - 14 + + - 24
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + 44 * + COUNT ( * )
----
44

query II rowsort
SELECT 23 AS col0, 7 AS col2
----
23
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT DISTINCT + 72 * 4 DIV - + 51 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT + 72 * 4 / - + 51 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT ALL - ( COUNT( * ) ) + - + COUNT( * ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-3168
SELECT ALL - ( COUNT ( * ) ) + - + COUNT ( * ) AS col0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT - 8 - MIN( + - 38 ) * + 91 * + - 16 col0
----
-55336

skipif mysql # not compatible
query I rowsort label-3169
SELECT - 8 - MIN ( + - 38 ) * + 91 * + - 16 col0
----
-55336

query I rowsort
SELECT ALL 79 + + 93 + - 29
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT - COUNT( - 33 ) + 50
----
49

skipif mysql # not compatible
query I rowsort label-3171
SELECT - COUNT ( - 33 ) + 50
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3172
SELECT ALL CAST( - 17 AS SIGNED ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL CAST ( - 17 AS INTEGER ) AS col0
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3173
SELECT - 55 * + + 70 DIV + + COUNT( * )
----
-3850

skipif mysql # not compatible
query I rowsort label-3173
SELECT - 55 * + + 70 / + + COUNT ( * )
----
-3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3174
SELECT DISTINCT CAST( - 83 AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT CAST ( - 83 AS INTEGER )
----
-83

query I rowsort
SELECT ALL - - 77 + - 86 col2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT COUNT( * ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-3176
SELECT COUNT ( * ) + + COUNT ( * ) col2
----
2

query I rowsort
SELECT + ( 49 ) - 23
----
26

query I rowsort
SELECT DISTINCT - 6 AS col0
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3179
SELECT ALL - + MAX( DISTINCT - CAST( + + 6 AS SIGNED ) )
----
6

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - + MAX ( DISTINCT - CAST ( + + 6 AS INTEGER ) )
----
6

query I rowsort
SELECT ALL + + 85 + + 77
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-3181
SELECT + - COUNT( * ) AS col0, 69 - 52 AS col0
----
-1
17

skipif mysql # not compatible
query II rowsort label-3181
SELECT + - COUNT ( * ) AS col0, 69 - 52 AS col0
----
-1
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3182
SELECT ALL 55 - - 85 + - + COUNT( * ) DIV + + COUNT( DISTINCT + + 83 )
----
139

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL 55 - - 85 + - + COUNT ( * ) / + + COUNT ( DISTINCT + + 83 )
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT - 25 * + 7 - + NULLIF ( + 22, - 94 + AVG ( CAST( 31 AS SIGNED ) ) ) + 60
----
-137

skipif mysql # not compatible
query I rowsort label-3183
SELECT - 25 * + 7 - + NULLIF ( + 22, - 94 + AVG ( CAST ( 31 AS INTEGER ) ) ) + 60
----
-137

query I rowsort
SELECT + - 94 col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3185
SELECT ALL - 72 * + NULLIF ( - 22, 53 * - + 57 * + ( + 79 ) + + SUM( 92 ) / + 67 * 62 ) + 86 + + 28 * 19 * + 41, + CAST( - 54 AS SIGNED ) AS col1
----
23482
-54

skipif mysql # not compatible
query II rowsort label-3185
SELECT ALL - 72 * + NULLIF ( - 22, 53 * - + 57 * + ( + 79 ) + + SUM ( 92 ) / + 67 * 62 ) + 86 + + 28 * 19 * + 41, + CAST ( - 54 AS INTEGER ) AS col1
----
23482
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT COUNT( 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3186
SELECT COUNT ( 66 ) AS col0
----
1

query I rowsort
SELECT ALL - ( + 23 ) AS col0
----
-23

query I rowsort
SELECT 86 * COALESCE ( - 3, 33 * 80 ) AS col2
----
-258

query I rowsort
SELECT DISTINCT - - 26 AS col0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT DISTINCT 9 DIV - 52 * - - 66
----
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT 9 / - 52 * - - 66
----
0

query I rowsort
SELECT DISTINCT - + 49 AS col2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT ALL + + 85 * - + 18 + - 15 DIV - 50
----
-1530

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL + + 85 * - + 18 + - 15 / - 50
----
-1530

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3193
SELECT DISTINCT COALESCE ( + 31, COUNT( * ), COUNT( * ) ) DIV + + 3
----
10

skipif mysql # not compatible
query I rowsort label-3193
SELECT DISTINCT COALESCE ( + 31, COUNT ( * ), COUNT ( * ) ) / + + 3
----
10

query II rowsort
SELECT ALL - 57 AS col0, 92
----
-57
92

query II rowsort
SELECT + 40 col0, - 45 + - - 17 col1
----
40
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT COUNT( * ) + COUNT( * ) * + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-3196
SELECT COUNT ( * ) + COUNT ( * ) * + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL - MAX( ALL + 43 ) AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL - MAX ( ALL + 43 ) AS col2
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT - COALESCE ( 13, + CAST( NULL AS SIGNED ) * + ( - - 40 ) ) * 82 * COUNT( * ) + 66 + + 68 + - 93 AS col0
----
-1025

skipif mysql # not compatible
query I rowsort label-3198
SELECT - COALESCE ( 13, + CAST ( NULL AS INTEGER ) * + ( - - 40 ) ) * 82 * COUNT ( * ) + 66 + + 68 + - 93 AS col0
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL - MIN( - - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL - MIN ( - - 98 )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - CASE - + NULLIF ( - 1, - + 28 ) WHEN + 31 * - + ( + 5 ) THEN + - 12 WHEN - + 26 * 54 THEN NULL WHEN + - COUNT( * ) + + - 62 - 17 / + 49 THEN - - 45 + - SUM( DISTINCT + 10 ) + + 58 ELSE - 50 END * 36 + - 72 + + 7 + - SUM( ALL + 17 ) AS col0
----
1718

skipif mysql # not compatible
query I rowsort label-3200
SELECT - CASE - + NULLIF ( - 1, - + 28 ) WHEN + 31 * - + ( + 5 ) THEN + - 12 WHEN - + 26 * 54 THEN NULL WHEN + - COUNT ( * ) + + - 62 - 17 / + 49 THEN - - 45 + - SUM ( DISTINCT + 10 ) + + 58 ELSE - 50 END * 36 + - 72 + + 7 + - SUM ( ALL + 17 ) AS col0
----
1718

query I rowsort
SELECT 47 * 87
----
4089

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3202
SELECT 79 AS col1, NULLIF ( + - CAST( + ( + COUNT( * ) ) AS SIGNED ), - - ( - - ( + CAST( NULLIF ( + - 4, + 74 ) AS DECIMAL ) ) ) )
----
79
-1

skipif mysql # not compatible
query II rowsort label-3202
SELECT 79 AS col1, NULLIF ( + - CAST ( + ( + COUNT ( * ) ) AS INTEGER ), - - ( - - ( + CAST ( NULLIF ( + - 4, + 74 ) AS REAL ) ) ) )
----
79
-1

query II rowsort
SELECT - 10, + 6 AS col2
----
-10
6

query II rowsort
SELECT ( 57 ) * - 17 + - 66 AS col2, - NULLIF ( + 9, + - AVG ( ALL + 7 ) ) AS col1
----
-1035
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT DISTINCT 56 + + ( COUNT( ALL - 48 ) ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT 56 + + ( COUNT ( ALL - 48 ) ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL - 85 + 51 + - + COALESCE ( 55, + - MIN( ALL + 48 ), - 6 )
----
-89

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - 85 + 51 + - + COALESCE ( 55, + - MIN ( ALL + 48 ), - 6 )
----
-89

query II rowsort
SELECT 9, - 20 + 99 + - + 81 AS col0
----
9
-2

query I rowsort
SELECT ALL 91 + - - 50 - + - 5
----
146

query II rowsort
SELECT ALL 71 AS col0, + ( COALESCE ( + - 5, - - 43, - 33 ) ) col2
----
71
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3210
SELECT ( + + 11 ) DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-3210
SELECT ( + + 11 ) / + 23
----
0

query I rowsort
SELECT 63 * + 81
----
5103

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3212
SELECT DISTINCT 77, - 33 / - + CAST( NULL AS DECIMAL ) * ( + 38 ) AS col0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-3212
SELECT DISTINCT 77, - 33 / - + CAST ( NULL AS REAL ) * ( + 38 ) AS col0
----
77
NULL

query I rowsort
SELECT ALL - 86 + + 30
----
-56

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-3214
SELECT 33 AS col1, - CASE + MAX( ALL + 5 ) WHEN - CAST( + + COUNT( * ) AS DECIMAL ) * + 66 THEN + 85 * - 10 + + - 65 WHEN - - 62 + - + 47 + 69 THEN NULL ELSE 22 DIV + + 87 END * - 90
----
33
0

skipif mysql # not compatible
query II rowsort label-3214
SELECT 33 AS col1, - CASE + MAX ( ALL + 5 ) WHEN - CAST ( + + COUNT ( * ) AS REAL ) * + 66 THEN + 85 * - 10 + + - 65 WHEN - - 62 + - + 47 + 69 THEN NULL ELSE 22 / + + 87 END * - 90
----
33
0

query I rowsort
SELECT ALL + 23 + - - 80 AS col2
----
103

query I rowsort
SELECT 53 * 42 AS col2
----
2226

onlyif mysql # aggregate syntax: 
query II rowsort label-3217
SELECT MAX( DISTINCT + 71 ) + - CASE + + 25 WHEN - + ( + 6 ) THEN - COUNT( * ) / + NULLIF ( 98, 30 + 37 * + - 65 - - 7 ) - - COUNT( * ) END AS col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3217
SELECT MAX ( DISTINCT + 71 ) + - CASE + + 25 WHEN - + ( + 6 ) THEN - COUNT ( * ) / + NULLIF ( 98, 30 + 37 * + - 65 - - 7 ) - - COUNT ( * ) END AS col2, - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT ALL + 28 * + 88 AS col0
----
2464

onlyif mysql # DIV for integer division: 
query I rowsort label-3219
SELECT DISTINCT ( - 54 ) DIV - 57 + + ( 15 )
----
15

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT ( - 54 ) / - 57 + + ( 15 )
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT ALL - - COUNT( * ) + - - 73 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3220
SELECT ALL - - COUNT ( * ) + - - 73 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ALL + 84 * COUNT( * ) * 66 + + 70 + + 2
----
5616

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + 84 * COUNT ( * ) * 66 + + 70 + + 2
----
5616

query I rowsort
SELECT DISTINCT - 26 - - 31 AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT ALL MAX( DISTINCT - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-3223
SELECT ALL MAX ( DISTINCT - 71 )
----
-71

query I rowsort
SELECT DISTINCT - - 96 - COALESCE ( + - 38, + 90 * - NULLIF ( - 48, - + 55 * 38 + - + 26 ) * - - ( - + 58 ) + - 89 * + + 50 )
----
134

query I rowsort
SELECT + 26 col0
----
26

query I rowsort
SELECT ALL - + 48
----
-48

query I rowsort
SELECT + 23 - 78
----
-55

query I rowsort
SELECT + 92 * - 38
----
-3496

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT ALL - + CASE + + 15 WHEN - 94 THEN + 89 * - 19 * + + COALESCE ( + - 86, + 39 ) + + 85 + + COALESCE ( 29, - NULLIF ( - + COUNT( * ), - 37 ) / 41 ) * - 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3229
SELECT ALL - + CASE + + 15 WHEN - 94 THEN + 89 * - 19 * + + COALESCE ( + - 86, + 39 ) + + 85 + + COALESCE ( 29, - NULLIF ( - + COUNT ( * ), - 37 ) / 41 ) * - 79 END
----
NULL

query I rowsort
SELECT - 62 * 58 + + 37 AS col0
----
-3559

query I rowsort
SELECT ALL - - 15
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-3232
SELECT ALL 89 * + - ( 73 ) - 34 DIV + 45 * + 95
----
-6497

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL 89 * + - ( 73 ) - 34 / + 45 * + 95
----
-6497

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT ALL ( + - 90 ) * + 70 * - + COUNT( 19 ) AS col1
----
6300

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL ( + - 90 ) * + 70 * - + COUNT ( 19 ) AS col1
----
6300

query II rowsort
SELECT + + 34 col0, + 78 + + 18 + + + 79
----
34
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT DISTINCT 16 * - COALESCE ( 13, + 61, - + 14 ) + 71 + 7 * + 16 * + - 20 * - + CAST( 57 AS SIGNED ) AS col1
----
127543

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 16 * - COALESCE ( 13, + 61, - + 14 ) + 71 + 7 * + 16 * + - 20 * - + CAST ( 57 AS INTEGER ) AS col1
----
127543

query I rowsort
SELECT 80 - - 87
----
167

query I rowsort
SELECT ( - + 94 ) * 19
----
-1786

query I rowsort
SELECT DISTINCT ( + + 87 ) * + 66
----
5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3239
SELECT CAST( NULL AS SIGNED ) / + 55 * - NULLIF ( + + COUNT( * ), - 23 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3239
SELECT CAST ( NULL AS INTEGER ) / + 55 * - NULLIF ( + + COUNT ( * ), - 23 ) AS col2
----
NULL

query I rowsort
SELECT NULLIF ( + ( 54 ), 92 ) * 83
----
4482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3241
SELECT CAST( 38 AS SIGNED ) * MIN( - 67 ) - - 67 col1
----
-2479

skipif mysql # not compatible
query I rowsort label-3241
SELECT CAST ( 38 AS INTEGER ) * MIN ( - 67 ) - - 67 col1
----
-2479

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT DISTINCT - MIN( DISTINCT 65 ) * 97 AS col2
----
-6305

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - MIN ( DISTINCT 65 ) * 97 AS col2
----
-6305

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3243
SELECT ALL 85 DIV NULLIF ( - 5, CAST( NULL AS SIGNED ) + NULLIF ( + 65, + - AVG ( ALL + - CAST( NULL AS DECIMAL ) ) ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL 85 / NULLIF ( - 5, CAST ( NULL AS INTEGER ) + NULLIF ( + 65, + - AVG ( ALL + - CAST ( NULL AS REAL ) ) ) )
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3244
SELECT DISTINCT 44 + 57 * - CASE WHEN NOT CAST( NULL AS DECIMAL ) IS NOT NULL THEN 89 ELSE NULL END AS col2
----
-5029

skipif mysql # not compatible
query I rowsort label-3244
SELECT DISTINCT 44 + 57 * - CASE WHEN NOT CAST ( NULL AS REAL ) IS NOT NULL THEN 89 ELSE NULL END AS col2
----
-5029

query I rowsort
SELECT 44 - + 44 AS col2
----
0

query I rowsort
SELECT ALL 79 + - 13
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT - MIN( ALL - - 3 ), + 85 * - 51 AS col2
----
-3
-4335

skipif mysql # not compatible
query II rowsort label-3247
SELECT - MIN ( ALL - - 3 ), + 85 * - 51 AS col2
----
-3
-4335

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3248
SELECT ALL 50 DIV COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 50 / COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT 27 + + CASE 66 WHEN ( - + 3 ) THEN 87 WHEN + - COUNT( * ) THEN NULL ELSE NULL END * - - ( + MAX( + - 51 ) ) * - ( 99 ) * + COALESCE ( 90, - 70 * - - 61 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT 27 + + CASE 66 WHEN ( - + 3 ) THEN 87 WHEN + - COUNT ( * ) THEN NULL ELSE NULL END * - - ( + MAX ( + - 51 ) ) * - ( 99 ) * + COALESCE ( 90, - 70 * - - 61 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3250
SELECT 63 DIV + 4 AS col1, ( 70 ) AS col0
----
15
70

skipif mysql # not compatible
query II rowsort label-3250
SELECT 63 / + 4 AS col1, ( 70 ) AS col0
----
15
70

query I rowsort
SELECT 34 + + CASE + - 14 WHEN + ( - + 51 ) THEN NULL ELSE + 66 * - 4 * + 51 END * - + 38 col0
----
511666

onlyif mysql # aggregate syntax: 
query I rowsort label-3252
SELECT - MAX( - 10 ) col1
----
10

skipif mysql # not compatible
query I rowsort label-3252
SELECT - MAX ( - 10 ) col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3253
SELECT ALL 43 + CAST( NULL AS SIGNED ) + - - CAST( - 81 AS SIGNED ) * 80 / 67 * + 48 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL 43 + CAST ( NULL AS INTEGER ) + - - CAST ( - 81 AS INTEGER ) * 80 / 67 * + 48 + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + COUNT( * ) + + 20 AS col1
----
21

skipif mysql # not compatible
query I rowsort label-3254
SELECT + COUNT ( * ) + + 20 AS col1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3255
SELECT + 25 + + 62 + CAST( - COUNT( ALL ( 86 ) ) AS SIGNED ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-3255
SELECT + 25 + + 62 + CAST ( - COUNT ( ALL ( 86 ) ) AS INTEGER ) AS col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT + COALESCE ( 29, - + 15 * + 91 + + - 44 ) + - 71 - - - 13 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT + COALESCE ( 29, - + 15 * + 91 + + - 44 ) + - 71 - - - 13 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3257
SELECT ALL CAST( NULL AS SIGNED ) - + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL CAST ( NULL AS INTEGER ) - + - COUNT ( * )
----
NULL

query I rowsort
SELECT + ( 87 ) * + 46 + - 34
----
3968

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT + ( CAST( - - 54 AS SIGNED ) ) + 61 AS col1
----
115

skipif mysql # not compatible
query I rowsort label-3259
SELECT + ( CAST ( - - 54 AS INTEGER ) ) + 61 AS col1
----
115

query I rowsort
SELECT ALL - + 98 - - - 42 * + ( + 29 )
----
-1316

query I rowsort
SELECT + - 2 + - + 46 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT ALL COALESCE ( + 54, + - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL COALESCE ( + 54, + - COUNT ( * ) ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT + + COUNT( * ) * + + 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-3263
SELECT + + COUNT ( * ) * + + 94 AS col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT - - 53 + + 92 + - - 20 * - COUNT( * ) AS col2
----
125

skipif mysql # not compatible
query I rowsort label-3264
SELECT - - 53 + + 92 + - - 20 * - COUNT ( * ) AS col2
----
125

query I rowsort
SELECT - + 31 AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - + MAX( DISTINCT - 96 ) + + 30 AS col1
----
126

skipif mysql # not compatible
query I rowsort label-3266
SELECT - + MAX ( DISTINCT - 96 ) + + 30 AS col1
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3267
SELECT ALL - + 18 DIV COUNT( * ) * + 99 AS col0, 79 - - 24 + + + 43 * - 77
----
-1782
-3208

skipif mysql # not compatible
query II rowsort label-3267
SELECT ALL - + 18 / COUNT ( * ) * + 99 AS col0, 79 - - 24 + + + 43 * - 77
----
-1782
-3208

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT + + 67 + + MAX( + 30 )
----
97

skipif mysql # not compatible
query I rowsort label-3268
SELECT + + 67 + + MAX ( + 30 )
----
97

query II rowsort
SELECT + 20 + - 42 AS col2, 79
----
-22
79

query I rowsort
SELECT ALL ( - - 59 ) / + - 73 * - - 34 * CASE - 31 WHEN 61 THEN 80 * 52 WHEN + 39 THEN NULL END * + 86 + + NULLIF ( 48, + 0 * - 75 * + 61 )
----
NULL

query I rowsort
SELECT ALL + 43 col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL + - MAX( - 14 ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + - MAX ( - 14 ) AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT ALL + NULLIF ( + 98, 21 + + COUNT( * ) * - + 75 * - - MAX( + - 77 ) ) AS col0
----
98

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL + NULLIF ( + 98, 21 + + COUNT ( * ) * - + 75 * - - MAX ( + - 77 ) ) AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT CASE 38 WHEN + + CASE + + 3 WHEN + 94 + + NULLIF ( + 32, NULLIF ( - 45, - - 25 ) ) + 38 + + SUM( DISTINCT + - ( ( - + 91 ) ) ) THEN - 91 WHEN 31 * + ( + 9 ) THEN NULL END * + CASE - - COUNT( * ) WHEN - + 39 + COUNT( * ) THEN 35 END * 96 + - 93 + - 20 + 44 * - COUNT( * ) THEN - 99 ELSE - SUM( 96 ) END AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-3274
SELECT CASE 38 WHEN + + CASE + + 3 WHEN + 94 + + NULLIF ( + 32, NULLIF ( - 45, - - 25 ) ) + 38 + + SUM ( DISTINCT + - ( ( - + 91 ) ) ) THEN - 91 WHEN 31 * + ( + 9 ) THEN NULL END * + CASE - - COUNT ( * ) WHEN - + 39 + COUNT ( * ) THEN 35 END * 96 + - 93 + - 20 + 44 * - COUNT ( * ) THEN - 99 ELSE - SUM ( 96 ) END AS col1
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT + - 40 DIV 15 + - + 52 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3275
SELECT + - 40 / 15 + - + 52 AS col2
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT - + ( - 46 ) DIV - ( + + 95 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3276
SELECT - + ( - 46 ) / - ( + + 95 ) AS col0
----
0

query I rowsort
SELECT ALL + 36 * + - 39 + - - 47 + 36
----
-1321

onlyif mysql # DIV for integer division: 
query I rowsort label-3278
SELECT ALL + + 64 * + 96 * + 94 + + - COALESCE ( 18, NULLIF ( 71, - + 91 ) DIV + - 86 ) - + 81 AS col0
----
577437

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + + 64 * + 96 * + 94 + + - COALESCE ( 18, NULLIF ( 71, - + 91 ) / + - 86 ) - + 81 AS col0
----
577437

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - 63 + + COALESCE ( + 92, - COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 63 + + COALESCE ( + 92, - COUNT ( * ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT 85 * + NULLIF ( + 34, - 40 - - - NULLIF ( - AVG ( - + 62 ), + CAST( + 59 AS SIGNED ) ) ) * 58 + - NULLIF ( 3, - COUNT( * ) + + 21 + + 54 * + - 82 )
----
167617

skipif mysql # not compatible
query I rowsort label-3280
SELECT 85 * + NULLIF ( + 34, - 40 - - - NULLIF ( - AVG ( - + 62 ), + CAST ( + 59 AS INTEGER ) ) ) * 58 + - NULLIF ( 3, - COUNT ( * ) + + 21 + + 54 * + - 82 )
----
167617

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT CASE 2 WHEN - 89 THEN NULL ELSE + - COUNT( - - 65 ) END AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3281
SELECT CASE 2 WHEN - 89 THEN NULL ELSE + - COUNT ( - - 65 ) END AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT ALL + CAST( - 74 AS SIGNED )
----
-74

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + CAST ( - 74 AS INTEGER )
----
-74

query I rowsort
SELECT ALL + 52 * - + 88 * 32 + - - 29
----
-146403

query I rowsort
SELECT ALL 68 * - 64 + - 63 - 45 AS col2
----
-4460

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + MIN( + - 7 ) col0
----
-7

skipif mysql # not compatible
query I rowsort label-3285
SELECT + MIN ( + - 7 ) col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT - 40 * - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT - 40 * - COUNT ( * )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL + 19 * 70 + + 0 * + 91 * - COUNT( * )
----
1330

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL + 19 * 70 + + 0 * + 91 * - COUNT ( * )
----
1330

query II rowsort
SELECT + 62, 65 AS col0
----
62
65

query I rowsort
SELECT 59 * + + 11 * + 62 * + 59 + - 44 AS col1
----
2373998

query I rowsort
SELECT - 49 * - 23 * + 38
----
42826

onlyif mysql # aggregate syntax: 
query II rowsort label-3291
SELECT - COUNT( * ) AS col1, 79 AS col0
----
-1
79

skipif mysql # not compatible
query II rowsort label-3291
SELECT - COUNT ( * ) AS col1, 79 AS col0
----
-1
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL CAST( + 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL CAST ( + 86 AS INTEGER ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + COALESCE ( + MIN( + 61 ), + 93 ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + COALESCE ( + MIN ( + 61 ), + 93 ) AS col1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT - CAST( + NULLIF ( 89, + 34 + 20 ) AS SIGNED )
----
-89

skipif mysql # not compatible
query I rowsort label-3294
SELECT - CAST ( + NULLIF ( 89, + 34 + 20 ) AS INTEGER )
----
-89

query II rowsort
SELECT ALL - 12, + 48 AS col1
----
-12
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT + - 7 * - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-3296
SELECT + - 7 * - COUNT ( * )
----
7

query II rowsort
SELECT ALL 27 AS col2, 41 AS col2
----
27
41

onlyif mysql # aggregate syntax: 
query II rowsort label-3298
SELECT - 38, + 50 + COUNT( * ) AS col0
----
-38
51

skipif mysql # not compatible
query II rowsort label-3298
SELECT - 38, + 50 + COUNT ( * ) AS col0
----
-38
51

onlyif mysql # aggregate syntax: 
query II rowsort label-3299
SELECT - COUNT( * ), 89 AS col2
----
-1
89

skipif mysql # not compatible
query II rowsort label-3299
SELECT - COUNT ( * ), 89 AS col2
----
-1
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3300
SELECT ALL 60 AS col1, COUNT( * ) + + + CAST( 93 AS SIGNED ) * + 7 - 7 col1
----
60
645

skipif mysql # not compatible
query II rowsort label-3300
SELECT ALL 60 AS col1, COUNT ( * ) + + + CAST ( 93 AS INTEGER ) * + 7 - 7 col1
----
60
645

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL - 10 * + COALESCE ( + 16, 89, + + 89 * - 47 ) * - ( COUNT( * ) )
----
160

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL - 10 * + COALESCE ( + 16, 89, + + 89 * - 47 ) * - ( COUNT ( * ) )
----
160

query II rowsort
SELECT - + 94, 23 - + 17 AS col1
----
-94
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT + - COUNT( + 60 ) - - 70
----
69

skipif mysql # not compatible
query I rowsort label-3303
SELECT + - COUNT ( + 60 ) - - 70
----
69

query I rowsort
SELECT ALL - 50 * + 18 AS col1
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT SUM( - + 6 ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3305
SELECT SUM ( - + 6 ) col2
----
-6

query I rowsort
SELECT - + 4 col2
----
-4

query I rowsort
SELECT ALL - 26 * + - 31 * - - 71 col0
----
57226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3308
SELECT CAST( + - 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3308
SELECT CAST ( + - 79 AS INTEGER ) AS col0
----
-79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3309
SELECT DISTINCT - 2 DIV + 42 * CASE 71 WHEN 31 + + 47 * - 69 THEN NULL ELSE - CAST( - 60 AS SIGNED ) END + + + 85
----
85

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT - 2 / + 42 * CASE 71 WHEN 31 + + 47 * - 69 THEN NULL ELSE - CAST ( - 60 AS INTEGER ) END + + + 85
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT COUNT( * ) DIV COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT COUNT ( * ) / COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - 68 * + - 28 * + - MAX( DISTINCT - 63 ) col0
----
119952

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 68 * + - 28 * + - MAX ( DISTINCT - 63 ) col0
----
119952

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT DISTINCT - COUNT( * ) / CASE - 68 WHEN - 28 THEN + COUNT( * ) * + 66 END * + 51 + + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3312
SELECT DISTINCT - COUNT ( * ) / CASE - 68 WHEN - 28 THEN + COUNT ( * ) * + 66 END * + 51 + + 38
----
NULL

query I rowsort
SELECT ALL - ( + - 14 ) + + 84
----
98

query I rowsort
SELECT ALL + 99 + - 38
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3315
SELECT 43 DIV + - COUNT( * ) * - ( 1 )
----
43

skipif mysql # not compatible
query I rowsort label-3315
SELECT 43 / + - COUNT ( * ) * - ( 1 )
----
43

query I rowsort
SELECT ALL 32 - + 2 * ( 63 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT ALL + 55 - - NULLIF ( 62, + 83 ) * MAX( + + 36 ) AS col2
----
2287

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + 55 - - NULLIF ( 62, + 83 ) * MAX ( + + 36 ) AS col2
----
2287

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3318
SELECT DISTINCT - NULLIF ( 35, + + CASE - ( COUNT( * ) ) WHEN COUNT( * ) THEN NULL WHEN + 51 * 68 THEN - + CAST( - 0 AS SIGNED ) END )
----
-35

skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - NULLIF ( 35, + + CASE - ( COUNT ( * ) ) WHEN COUNT ( * ) THEN NULL WHEN + 51 * 68 THEN - + CAST ( - 0 AS INTEGER ) END )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL - COUNT( 27 ) * + 49 + COUNT( * ) + 88 * + - 94
----
-8320

skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL - COUNT ( 27 ) * + 49 + COUNT ( * ) + 88 * + - 94
----
-8320

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT 78 - + ( - 64 ) + - - COUNT( * ) * - 17
----
125

skipif mysql # not compatible
query I rowsort label-3320
SELECT 78 - + ( - 64 ) + - - COUNT ( * ) * - 17
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT 7 * - + COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT 7 * - + COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT DISTINCT - 10 * + + 87
----
-870

query I rowsort
SELECT - 53 + + ( - + 50 )
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL - CAST( NULL AS SIGNED ) * + + NULLIF ( + MIN( ALL - - ( 35 ) ), - 5 ) - 70 - NULLIF ( 77, - MIN( DISTINCT 3 ) + - 36 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL - CAST ( NULL AS INTEGER ) * + + NULLIF ( + MIN ( ALL - - ( 35 ) ), - 5 ) - 70 - NULLIF ( 77, - MIN ( DISTINCT 3 ) + - 36 ) AS col1
----
NULL

query II rowsort
SELECT - 62 + + 47, 59 AS col0
----
-15
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT MAX( ALL + 9 ) * + 57 * 93 AS col1
----
47709

skipif mysql # not compatible
query I rowsort label-3326
SELECT MAX ( ALL + 9 ) * + 57 * 93 AS col1
----
47709

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + ( - - COUNT( * ) ) + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-3327
SELECT + ( - - COUNT ( * ) ) + 46 AS col0
----
47

query I rowsort
SELECT + 45 - - 15
----
60

query I rowsort
SELECT ALL 16 AS col0
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT CAST( NULL AS SIGNED ) / 88 / + 10 + - COUNT( 14 ) - + - CAST( NULL AS SIGNED ) / 71 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT CAST ( NULL AS INTEGER ) / 88 / + 10 + - COUNT ( 14 ) - + - CAST ( NULL AS INTEGER ) / 71 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT + ( + CASE - + ( 37 ) WHEN + 73 + + CAST( - 39 AS SIGNED ) + + 96 * 15 THEN + + 31 * - - 42 * + 9 WHEN + - MAX( ALL 14 ) + + CAST( - ( - 34 ) AS SIGNED ) - + + 13 THEN CAST( NULL AS SIGNED ) ELSE + 84 END ) + 93 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT + ( + CASE - + ( 37 ) WHEN + 73 + + CAST ( - 39 AS INTEGER ) + + 96 * 15 THEN + + 31 * - - 42 * + 9 WHEN + - MAX ( ALL 14 ) + + CAST ( - ( - 34 ) AS INTEGER ) - + + 13 THEN CAST ( NULL AS INTEGER ) ELSE + 84 END ) + 93 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT COUNT( * ) + - + NULLIF ( + ( - + COUNT( * ) ), + 66 ) + + 39
----
41

skipif mysql # not compatible
query I rowsort label-3332
SELECT COUNT ( * ) + - + NULLIF ( + ( - + COUNT ( * ) ), + 66 ) + + 39
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT - COUNT( * ) + - - 79 * COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-3333
SELECT - COUNT ( * ) + - - 79 * COUNT ( * )
----
78

query I rowsort
SELECT ALL 64 * - 51
----
-3264

query II rowsort
SELECT + ( + 31 ) AS col1, - 94 AS col1
----
31
-94

query I rowsort
SELECT 86 + + + 48 + - - 32 + - + 64 * 26 AS col0
----
-1498

query I rowsort
SELECT + 51 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3338
SELECT COUNT( * ) * - CASE + 75 WHEN - + 73 THEN NULL WHEN - MAX( - 71 ) - - + 37 * + 50 * - - 64 THEN NULLIF ( + NULLIF ( 90, + - 63 ), + COUNT( 50 ) * + ( 90 ) * 95 * + - NULLIF ( + ( - 56 ), + 24 ) ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT COUNT ( * ) * - CASE + 75 WHEN - + 73 THEN NULL WHEN - MAX ( - 71 ) - - + 37 * + 50 * - - 64 THEN NULLIF ( + NULLIF ( 90, + - 63 ), + COUNT ( 50 ) * + ( 90 ) * 95 * + - NULLIF ( + ( - 56 ), + 24 ) ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT NULLIF ( 68, - 27 + - - COUNT( * ) + - 10 ) AS col0
----
68

skipif mysql # not compatible
query I rowsort label-3339
SELECT NULLIF ( 68, - 27 + - - COUNT ( * ) + - 10 ) AS col0
----
68

query I rowsort
SELECT - + 63 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT 40 + COUNT( * ) + NULLIF ( 3, + + 78 + - + ( + - 64 ) ) * CASE + 53 WHEN 86 + - 67 THEN - 82 ELSE NULL END / + - 6 * AVG ( DISTINCT + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT 40 + COUNT ( * ) + NULLIF ( 3, + + 78 + - + ( + - 64 ) ) * CASE + 53 WHEN 86 + - 67 THEN - 82 ELSE NULL END / + - 6 * AVG ( DISTINCT + 58 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3342
SELECT CAST( + 63 AS SIGNED ) * + 72 AS col0
----
4536

skipif mysql # not compatible
query I rowsort label-3342
SELECT CAST ( + 63 AS INTEGER ) * + 72 AS col0
----
4536

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT DISTINCT - - 30 + - 47 + - - 32 + - 14 DIV + 48
----
15

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT - - 30 + - 47 + - - 32 + - 14 / + 48
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - NULLIF ( COALESCE ( - - COUNT( * ), - + 50 + - - MAX( - + 57 ) ), - NULLIF ( - 37, 10 ) / + ( - 40 ) + - 47 - 34 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3344
SELECT - NULLIF ( COALESCE ( - - COUNT ( * ), - + 50 + - - MAX ( - + 57 ) ), - NULLIF ( - 37, 10 ) / + ( - 40 ) + - 47 - 34 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3345
SELECT ALL 86 + - + 0 + - COUNT( * ) + - + 35 DIV + - 46 * + + 78
----
85

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL 86 + - + 0 + - COUNT ( * ) + - + 35 / + - 46 * + + 78
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3346
SELECT ALL 63 + - 80 - 21 * + COUNT( * ) DIV + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL 63 + - 80 - 21 * + COUNT ( * ) / + COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL - COALESCE ( + 37, - - COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL - COALESCE ( + 37, - - COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT DISTINCT CAST( - 74 AS SIGNED ) + - 85 * + - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT CAST ( - 74 AS INTEGER ) + - 85 * + - COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-3349
SELECT 43 + + COUNT ( * )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT COUNT( * ) * ( - 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3350
SELECT COUNT ( * ) * ( - 46 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3351
SELECT 82 * ( + 29 ) AS col1, COUNT( * ) * - - 14
----
2378
14

skipif mysql # not compatible
query II rowsort label-3351
SELECT 82 * ( + 29 ) AS col1, COUNT ( * ) * - - 14
----
2378
14

query I rowsort
SELECT + 85 * - 35 * - 11 + - 59 AS col1
----
32666

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT DISTINCT + 77 * COUNT( * ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-3353
SELECT DISTINCT + 77 * COUNT ( * ) AS col1
----
77

query I rowsort
SELECT ALL + 68 * - + 86
----
-5848

query I rowsort
SELECT ( + + ( 61 ) ) * - 90
----
-5490

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT ALL 84 DIV - + 17 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL 84 / - + 17 AS col0
----
-4

query I rowsort
SELECT 78 + - 77 AS col1
----
1

query I rowsort
SELECT ( - 40 ) * - ( 44 ) AS col0
----
1760

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT + SUM( ALL - ( 98 ) ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3359
SELECT + SUM ( ALL - ( 98 ) ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - CASE - + 83 WHEN - ( - + 90 ) THEN - - 37 + - 94 / + + 27 WHEN 65 THEN + - 80 * + - 16 * COUNT( * ) + - + 86 / + 49 - ( - + ( - 80 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - CASE - + 83 WHEN - ( - + 90 ) THEN - - 37 + - 94 / + + 27 WHEN 65 THEN + - 80 * + - 16 * COUNT ( * ) + - + 86 / + 49 - ( - + ( - 80 ) ) END
----
NULL

query I rowsort
SELECT ALL ( 53 )
----
53

query I rowsort
SELECT ALL - 24 + - 57 AS col0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT NULLIF ( - CASE 30 WHEN + 67 / + - COUNT( * ) * + CASE - 79 WHEN - 28 THEN + COUNT( + 82 ) + 68 * COALESCE ( - ( - + 66 ), + - COUNT( * ) + - 78 / + + 19 * ( + 16 ), + 98, - 64 ) END * 59 + 5 THEN - 68 + 23 + - 3 + + + 62 ELSE + 6 END, COUNT( * ) - + + 17 + 31 * 17 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-3363
SELECT NULLIF ( - CASE 30 WHEN + 67 / + - COUNT ( * ) * + CASE - 79 WHEN - 28 THEN + COUNT ( + 82 ) + 68 * COALESCE ( - ( - + 66 ), + - COUNT ( * ) + - 78 / + + 19 * ( + 16 ), + 98, - 64 ) END * 59 + 5 THEN - 68 + 23 + - 3 + + + 62 ELSE + 6 END, COUNT ( * ) - + + 17 + 31 * 17 ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + MIN( 98 )
----
98

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + MIN ( 98 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT - NULLIF ( + + COUNT( * ), 38 ) * + 79
----
-79

skipif mysql # not compatible
query I rowsort label-3365
SELECT - NULLIF ( + + COUNT ( * ), 38 ) * + 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT ALL + + COUNT( * ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + + COUNT ( * ) + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3367
SELECT - - NULLIF ( - + 40, - 71 * - COALESCE ( 41, + - 21 ) - - CAST( - 78 AS SIGNED ) * - 2 ) AS col1
----
-40

skipif mysql # not compatible
query I rowsort label-3367
SELECT - - NULLIF ( - + 40, - 71 * - COALESCE ( 41, + - 21 ) - - CAST ( - 78 AS INTEGER ) * - 2 ) AS col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3368
SELECT DISTINCT + CAST( - 95 AS SIGNED ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + CAST ( - 95 AS INTEGER ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT + 89 - + + 89 + 23 * - + 34 * COUNT( * )
----
-782

skipif mysql # not compatible
query I rowsort label-3369
SELECT + 89 - + + 89 + 23 * - + 34 * COUNT ( * )
----
-782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3370
SELECT ALL - - CAST( NULL AS SIGNED ) + - 30 * - - 23, - 20 AS col2
----
NULL
-20

skipif mysql # not compatible
query II rowsort label-3370
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 30 * - - 23, - 20 AS col2
----
NULL
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT DISTINCT + - SUM( DISTINCT + NULLIF ( ( 43 ), - 17 ) ) * + COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT + - SUM ( DISTINCT + NULLIF ( ( 43 ), - 17 ) ) * + COUNT ( * ) col2
----
-43

query I rowsort
SELECT ALL 56 + 90
----
146

query I rowsort
SELECT - 25 * ( + + 77 ) AS col1
----
-1925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3374
SELECT 53 + - 39 DIV + - COUNT( * ) + + 57
----
149

skipif mysql # not compatible
query I rowsort label-3374
SELECT 53 + - 39 / + - COUNT ( * ) + + 57
----
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3375
SELECT DISTINCT - CAST( 5 AS SIGNED ) - 0 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - CAST ( 5 AS INTEGER ) - 0 AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - 57 * + 77 * - - ( - COUNT( * ) ) AS col1
----
4389

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 57 * + 77 * - - ( - COUNT ( * ) ) AS col1
----
4389

query II rowsort
SELECT 63 AS col0, ( + 70 ) col1
----
63
70

onlyif mysql # aggregate syntax: 
query II rowsort label-3378
SELECT - COUNT( * ) AS col1, 61 + - CASE + 36 WHEN 34 + 0 THEN NULLIF ( - COUNT( * ), + 31 ) WHEN - 58 * 74 / 78 * AVG ( DISTINCT - + 38 ) + - + 60 THEN NULL END
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3378
SELECT - COUNT ( * ) AS col1, 61 + - CASE + 36 WHEN 34 + 0 THEN NULLIF ( - COUNT ( * ), + 31 ) WHEN - 58 * 74 / 78 * AVG ( DISTINCT - + 38 ) + - + 60 THEN NULL END
----
-1
NULL

query I rowsort
SELECT - NULLIF ( - 0, ( 8 ) ) + + 46
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3380
SELECT + 15 DIV + 83 * - - 80 DIV + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3380
SELECT + 15 / + 83 * - - 80 / + 44 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT + COUNT( * ) AS col0, 48 * 25 AS col1
----
1
1200

skipif mysql # not compatible
query II rowsort label-3381
SELECT + COUNT ( * ) AS col0, 48 * 25 AS col1
----
1
1200

query I rowsort
SELECT ALL + 7 AS col0
----
7

query I rowsort
SELECT DISTINCT 43 * + 29
----
1247

query I rowsort
SELECT + CASE + - 17 WHEN + 39 THEN - 5 + + 80 WHEN + 35 THEN NULL ELSE NULL END * 5
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3385
SELECT ALL + 23 col2, MIN( ALL + 47 ) AS col0
----
23
47

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL + 23 col2, MIN ( ALL + 47 ) AS col0
----
23
47

onlyif mysql # aggregate syntax: 
query II rowsort label-3386
SELECT ALL + 42, - 56 - - + 54 + - - SUM( + + 50 ) + - 62 AS col1
----
42
-14

skipif mysql # not compatible
query II rowsort label-3386
SELECT ALL + 42, - 56 - - + 54 + - - SUM ( + + 50 ) + - 62 AS col1
----
42
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT MAX( DISTINCT - 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-3387
SELECT MAX ( DISTINCT - 2 )
----
-2

query I rowsort
SELECT - 56 AS col1
----
-56

query II rowsort
SELECT DISTINCT + 28, 49 - + 77 AS col0
----
28
-28

query I rowsort
SELECT ALL - 20 * + 41 + 50 AS col2
----
-770

query II rowsort
SELECT + - 17 - - + 27 AS col1, 42 * 86
----
10
3612

query I rowsort
SELECT + - 46 col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL + CASE + 58 WHEN 46 THEN + 24 END * + - 91 + + 41 * + 67 * + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL + CASE + 58 WHEN 46 THEN + 24 END * + - 91 + + 41 * + 67 * + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + - COUNT( - 82 ) + - 57
----
-58

skipif mysql # not compatible
query I rowsort label-3394
SELECT + - COUNT ( - 82 ) + - 57
----
-58

query I rowsort
SELECT - - 68 * - 44 AS col0
----
-2992

query II rowsort
SELECT - 80, + 84 col2
----
-80
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT - + 93 * - COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-3397
SELECT - + 93 * - COUNT ( * ) AS col2
----
93

query I rowsort
SELECT NULLIF ( - - 13, - 1 ) AS col1
----
13

query I rowsort
SELECT DISTINCT + 43 AS col0
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3400
SELECT - COUNT( * ) - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT - COUNT ( * ) - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3401
SELECT + 87 + 44 + + 72 DIV 12 * - 17 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-3401
SELECT + 87 + 44 + + 72 / 12 * - 17 AS col0
----
29

query I rowsort
SELECT - COALESCE ( - 3, 90 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT MAX( ALL 57 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT MAX ( ALL 57 ) AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL - + 92 - + 24 + - COUNT( DISTINCT + 60 ) * - COUNT( * ) + + COUNT( * ) AS col2
----
-114

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL - + 92 - + 24 + - COUNT ( DISTINCT + 60 ) * - COUNT ( * ) + + COUNT ( * ) AS col2
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT COUNT( - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-3405
SELECT COUNT ( - 90 )
----
1

query I rowsort
SELECT DISTINCT NULLIF ( 36, + - 12 )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3407
SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST( - 0 AS SIGNED ) ) * 20 + - 35 - 99, - 69 ) )
----
5

skipif mysql # not compatible
query I rowsort label-3407
SELECT - + ( + COALESCE ( + ( - 5 ), ( - CAST ( - 0 AS INTEGER ) ) * 20 + - 35 - 99, - 69 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3408
SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST( - 40 AS SIGNED ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM( DISTINCT - 58 ) AS col1
----
NULL
155

skipif mysql # not compatible
query II rowsort label-3408
SELECT ALL - CASE 92 WHEN - 68 + + 33 * + 70 + - CAST ( - 40 AS INTEGER ) THEN + - 76 END - 62 / - + 57 AS col1, + 97 - SUM ( DISTINCT - 58 ) AS col1
----
NULL
155

query I rowsort
SELECT DISTINCT + 13 * 55
----
715

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT - ( - - COALESCE ( - + SUM( DISTINCT - 96 ), + + 17 * - + 54 ) ) + - 35 col2
----
-131

skipif mysql # not compatible
query I rowsort label-3410
SELECT - ( - - COALESCE ( - + SUM ( DISTINCT - 96 ), + + 17 * - + 54 ) ) + - 35 col2
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3411
SELECT - COUNT( * ) * + COUNT( * ), + 24 * + 1 / + CASE - 42 WHEN + + 85 + CAST( - - 77 AS SIGNED ) THEN + AVG ( - - 90 ) + - 79 + + - 3 * - + 0 * + - 23 END * - 6 / - 44 + - 22 AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3411
SELECT - COUNT ( * ) * + COUNT ( * ), + 24 * + 1 / + CASE - 42 WHEN + + 85 + CAST ( - - 77 AS INTEGER ) THEN + AVG ( - - 90 ) + - 79 + + - 3 * - + 0 * + - 23 END * - 6 / - 44 + - 22 AS col1
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT - ( - - 82 ) * 28 DIV 87 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-3412
SELECT - ( - - 82 ) * 28 / 87 AS col2
----
-26

query I rowsort
SELECT ALL + 95 * + 82
----
7790

onlyif mysql # aggregate syntax: 
query II rowsort label-3414
SELECT - 3 * 99, + 69 + + 92 * + 61 + - SUM( - 64 ) AS col0
----
-297
5745

skipif mysql # not compatible
query II rowsort label-3414
SELECT - 3 * 99, + 69 + + 92 * + 61 + - SUM ( - 64 ) AS col0
----
-297
5745

onlyif mysql # aggregate syntax: 
query II rowsort label-3415
SELECT ALL - 95 * - + 40 AS col2, + ( + + COUNT( DISTINCT - 91 ) )
----
3800
1

skipif mysql # not compatible
query II rowsort label-3415
SELECT ALL - 95 * - + 40 AS col2, + ( + + COUNT ( DISTINCT - 91 ) )
----
3800
1

query I rowsort
SELECT DISTINCT + 11
----
11

query I rowsort
SELECT DISTINCT + NULLIF ( + 39, + ( 2 ) )
----
39

query I rowsort
SELECT - 67 * + 46 * + - 28 AS col1
----
86296

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT ( - 4 ) * COUNT( * ) + - 21 + + 70 * - 2 * 39
----
-5485

skipif mysql # not compatible
query I rowsort label-3419
SELECT ( - 4 ) * COUNT ( * ) + - 21 + + 70 * - 2 * 39
----
-5485

query I rowsort
SELECT ALL + NULLIF ( + 49, - 0 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3421
SELECT - COUNT( * ) * + ( + - 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( * ) * + ( + - 91 ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT + 25 DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-3422
SELECT + 25 / - 53
----
0

query I rowsort
SELECT - 37 + + ( + 42 ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT + COUNT( * ) * + + 17 - 97 + + 90
----
10

skipif mysql # not compatible
query I rowsort label-3424
SELECT + COUNT ( * ) * + + 17 - 97 + + 90
----
10

query I rowsort
SELECT ALL + NULLIF ( - ( 60 ), 62 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3426
SELECT + 38 * + NULLIF ( - 12, + - 91 + - 37 - - 74 ) + - SUM( DISTINCT - 92 ) * + 14 * 11 AS col1
----
13712

skipif mysql # not compatible
query I rowsort label-3426
SELECT + 38 * + NULLIF ( - 12, + - 91 + - 37 - - 74 ) + - SUM ( DISTINCT - 92 ) * + 14 * 11 AS col1
----
13712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3427
SELECT ALL - COUNT( * ) DIV 6 + NULLIF ( + - 24, - 31 + 11 + 92 ) + + 0 * 14
----
-24

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - COUNT ( * ) / 6 + NULLIF ( + - 24, - 31 + 11 + 92 ) + + 0 * 14
----
-24

query II rowsort
SELECT DISTINCT + ( - + 30 ) AS col2, 48 AS col1
----
-30
48

query I rowsort
SELECT ALL 28 * - 37 * - 94 * + - 79 + - + 80 * + 11 AS col2
----
-7694216

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT + COUNT( * ) * + 56 + + 34
----
90

skipif mysql # not compatible
query I rowsort label-3430
SELECT + COUNT ( * ) * + 56 + + 34
----
90

query I rowsort
SELECT DISTINCT + - 4
----
-4

query I rowsort
SELECT + + ( + 89 )
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3433
SELECT + + CAST( - 18 AS SIGNED ) + + - 81 * 55 col1
----
-4473

skipif mysql # not compatible
query I rowsort label-3433
SELECT + + CAST ( - 18 AS INTEGER ) + + - 81 * 55 col1
----
-4473

query I rowsort
SELECT DISTINCT + - 70 AS col2
----
-70

query II rowsort
SELECT + 44 * - 9 AS col0, - 61
----
-396
-61

query I rowsort
SELECT ALL + - 88
----
-88

query I rowsort
SELECT + + 17 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT ALL - 43 * + 9 * + 90 * + 55 * + COUNT( * ) - 44 * 7
----
-1915958

skipif mysql # not compatible
query I rowsort label-3438
SELECT ALL - 43 * + 9 * + 90 * + 55 * + COUNT ( * ) - 44 * 7
----
-1915958

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT + - COUNT( * ) * - 50 + + ( 7 )
----
57

skipif mysql # not compatible
query I rowsort label-3439
SELECT + - COUNT ( * ) * - 50 + + ( 7 )
----
57

query I rowsort
SELECT - - 63 col1
----
63

query I rowsort
SELECT - + CASE WHEN NOT ( - 99 ) >= NULL THEN 98 END
----
NULL

query I rowsort
SELECT + 98 * 96 + + 27 AS col2
----
9435

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL - + 64 * + 95 - COUNT( * ) + 38
----
-6043

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL - + 64 * + 95 - COUNT ( * ) + 38
----
-6043

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3444
SELECT + - 95 DIV + + COUNT( * ) + 62 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-3444
SELECT + - 95 / + + COUNT ( * ) + 62 AS col2
----
-33

query I rowsort
SELECT ALL - ( 12 ) * 31
----
-372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3446
SELECT CAST( 18 AS SIGNED ) * + + 63 * + 92 * - + COUNT( * ) AS col1, - 32 * - 24 * - - 76
----
-104328
58368

skipif mysql # not compatible
query II rowsort label-3446
SELECT CAST ( 18 AS INTEGER ) * + + 63 * + 92 * - + COUNT ( * ) AS col1, - 32 * - 24 * - - 76
----
-104328
58368

query I rowsort
SELECT 20 - - + 95 AS col0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT 73 DIV 85
----
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT 73 / 85
----
0

query I rowsort
SELECT 82 * + COALESCE ( - 24, + 40 ) col2
----
-1968

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3450
SELECT DISTINCT COUNT( - 90 ) * + 3 - - 60 + MIN( DISTINCT - 3 ) DIV 92 AS col0
----
63

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT COUNT ( - 90 ) * + 3 - - 60 + MIN ( DISTINCT - 3 ) / 92 AS col0
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3451
SELECT - 95 AS col1, + NULLIF ( - COUNT( * ), - 34 * 27 * - - 60 + - 84 + SUM( + 34 ) ) AS col1
----
-95
-1

skipif mysql # not compatible
query II rowsort label-3451
SELECT - 95 AS col1, + NULLIF ( - COUNT ( * ), - 34 * 27 * - - 60 + - 84 + SUM ( + 34 ) ) AS col1
----
-95
-1

query I rowsort
SELECT 72 * - + 17 col0
----
-1224

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3453
SELECT ALL 0, - CAST( - ( 44 ) AS SIGNED ) + 32 + - 11 AS col1
----
0
65

skipif mysql # not compatible
query II rowsort label-3453
SELECT ALL 0, - CAST ( - ( 44 ) AS INTEGER ) + 32 + - 11 AS col1
----
0
65

query I rowsort
SELECT 91 - - 10 + + 95 + 1
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-3455
SELECT 97 * - CASE 7 WHEN - 1 THEN + 88 WHEN 99 THEN NULL ELSE 70 + + + 68 END AS col2, 72 + - - CASE 57 WHEN - 55 THEN + + 44 / + - 40 * - COUNT( * ) + + + 66 * + - 99 * - 81 WHEN + - COUNT( * ) THEN NULL END * - 55
----
-13386
NULL

skipif mysql # not compatible
query II rowsort label-3455
SELECT 97 * - CASE 7 WHEN - 1 THEN + 88 WHEN 99 THEN NULL ELSE 70 + + + 68 END AS col2, 72 + - - CASE 57 WHEN - 55 THEN + + 44 / + - 40 * - COUNT ( * ) + + + 66 * + - 99 * - 81 WHEN + - COUNT ( * ) THEN NULL END * - 55
----
-13386
NULL

query I rowsort
SELECT ALL - 64 + - - 45
----
-19

query I rowsort
SELECT 81 + 67 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT DISTINCT 60 + - MAX( - 83 )
----
143

skipif mysql # not compatible
query I rowsort label-3458
SELECT DISTINCT 60 + - MAX ( - 83 )
----
143

query I rowsort
SELECT DISTINCT - 20 + 11 AS col1
----
-9

query I rowsort
SELECT DISTINCT - 47 + - 90 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT + 30, - 9 + - 75 * + 54 * - NULLIF ( + - ( + 66 ), + COUNT( * ) ) AS col1
----
30
-267309

skipif mysql # not compatible
query II rowsort label-3461
SELECT + 30, - 9 + - 75 * + 54 * - NULLIF ( + - ( + 66 ), + COUNT ( * ) ) AS col1
----
30
-267309

query I rowsort
SELECT ALL - + 92 + 16 AS col1
----
-76

query II rowsort
SELECT + - 60 AS col1, + NULLIF ( 93, 96 )
----
-60
93

onlyif mysql # DIV for integer division: 
query II rowsort label-3464
SELECT + 92 AS col0, 47 DIV 11
----
92
4

skipif mysql # not compatible
query II rowsort label-3464
SELECT + 92 AS col0, 47 / 11
----
92
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL - COUNT( * ) + 24
----
23

skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL - COUNT ( * ) + 24
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT 40 * - + 9 - - 96 + - - COUNT( * ) AS col1
----
-263

skipif mysql # not compatible
query I rowsort label-3466
SELECT 40 * - + 9 - - 96 + - - COUNT ( * ) AS col1
----
-263

query I rowsort
SELECT - 4 * 45 + ( 3 ) + - 84
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3468
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + 55
----
NULL
55

skipif mysql # not compatible
query II rowsort label-3468
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + 55
----
NULL
55

onlyif mysql # DIV for integer division: 
query II rowsort label-3469
SELECT DISTINCT - - 4 AS col2, 64 DIV + + 72 - + 12 + + 84
----
4
72

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT - - 4 AS col2, 64 / + + 72 - + 12 + + 84
----
4
72

query I rowsort
SELECT + - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3471
SELECT ALL - + COUNT( * ) * + 1 DIV COUNT( * ) AS col0, - 70
----
-1
-70

skipif mysql # not compatible
query II rowsort label-3471
SELECT ALL - + COUNT ( * ) * + 1 / COUNT ( * ) AS col0, - 70
----
-1
-70

query I rowsort
SELECT - 36 + - 92
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT 50 * - 54 + - ( COUNT( * ) )
----
-2701

skipif mysql # not compatible
query I rowsort label-3473
SELECT 50 * - 54 + - ( COUNT ( * ) )
----
-2701

query II rowsort
SELECT ALL 71, - 45 AS col2
----
71
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT MIN( ALL 86 ) + + 47 + + - CASE - 91 WHEN + 39 THEN NULL ELSE CASE - 29 WHEN + 62 THEN + 54 ELSE NULL END END * - 15 + - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT MIN ( ALL 86 ) + + 47 + + - CASE - 91 WHEN + 39 THEN NULL ELSE CASE - 29 WHEN + 62 THEN + 54 ELSE NULL END END * - 15 + - 84
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3476
SELECT 47 * + COUNT( * ) DIV 61, - 41 * - 9 * + + COUNT( * ) col2
----
0
369

skipif mysql # not compatible
query II rowsort label-3476
SELECT 47 * + COUNT ( * ) / 61, - 41 * - 9 * + + COUNT ( * ) col2
----
0
369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3477
SELECT 34 + + 39 - + + 34 * - 9, CAST( - 97 AS SIGNED ) * + MIN( + + 50 ) + + 4 + - + 57 AS col1
----
379
-4903

skipif mysql # not compatible
query II rowsort label-3477
SELECT 34 + + 39 - + + 34 * - 9, CAST ( - 97 AS INTEGER ) * + MIN ( + + 50 ) + + 4 + - + 57 AS col1
----
379
-4903

query I rowsort
SELECT DISTINCT 56 * + - 28 col1
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT 66 + - + CASE + + 99 WHEN - 18 THEN + 1 * 4 + + 18 - COUNT( * ) WHEN 88 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3479
SELECT 66 + - + CASE + + 99 WHEN - 18 THEN + 1 * 4 + + 18 - COUNT ( * ) WHEN 88 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 91 * 24
----
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3481
SELECT ALL CASE 73 WHEN + 90 THEN COUNT( * ) + + 48 WHEN + 8 - + - NULLIF ( + 25, - ( + 62 ) * + + ( - 78 ) ) THEN NULL ELSE NULL END + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL CASE 73 WHEN + 90 THEN COUNT ( * ) + + 48 WHEN + 8 - + - NULLIF ( + 25, - ( + 62 ) * + + ( - 78 ) ) THEN NULL ELSE NULL END + + + 75
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3482
SELECT CAST( 99 AS SIGNED ) + + 98 col1
----
197

skipif mysql # not compatible
query I rowsort label-3482
SELECT CAST ( 99 AS INTEGER ) + + 98 col1
----
197

query I rowsort
SELECT 56 * + 58
----
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL 55 + - COUNT( * )
----
54

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL 55 + - COUNT ( * )
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3485
SELECT ALL 14 + COUNT( * ) AS col2, 87
----
15
87

skipif mysql # not compatible
query II rowsort label-3485
SELECT ALL 14 + COUNT ( * ) AS col2, 87
----
15
87

query I rowsort
SELECT 78 + + + 58 col0
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-3487
SELECT ALL 20 + 70, COUNT( * ) + 16 - - + COUNT( * ) AS col1
----
90
18

skipif mysql # not compatible
query II rowsort label-3487
SELECT ALL 20 + 70, COUNT ( * ) + 16 - - + COUNT ( * ) AS col1
----
90
18

query I rowsort
SELECT ALL - 33 + + + 56 AS col1
----
23

query I rowsort
SELECT 13 + + 59 + 62
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ( COUNT( * ) ) + + 55
----
56

skipif mysql # not compatible
query I rowsort label-3490
SELECT ( COUNT ( * ) ) + + 55
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3491
SELECT - 2 DIV + 54 - MIN( DISTINCT + + 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-3491
SELECT - 2 / + 54 - MIN ( DISTINCT + + 28 )
----
-28

query I rowsort
SELECT ALL - COALESCE ( - COALESCE ( 57, + - CASE + - 10 WHEN 38 THEN + + 50 END ), - - 11 ) AS col2
----
57

query I rowsort
SELECT - - 50 * 9 + + 91 AS col2
----
541

query I rowsort
SELECT DISTINCT + + 56 * + 32 AS col2
----
1792

query I rowsort
SELECT - 76 + + 56 * + 71 AS col0
----
3900

query I rowsort
SELECT ALL + - 50 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3497
SELECT - + 68 DIV - - CASE 90 WHEN + 33 THEN NULL ELSE - - COUNT( * ) END + - - ( - 41 ) + 12 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-3497
SELECT - + 68 / - - CASE 90 WHEN + 33 THEN NULL ELSE - - COUNT ( * ) END + - - ( - 41 ) + 12 AS col2
----
-97

query I rowsort
SELECT 4 * 20 + - 50 AS col0
----
30

query I rowsort
SELECT ALL + 13 col2
----
13

query I rowsort
SELECT + + 29 * - 7 AS col2
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - + 18 * - MAX( ALL + - 81 ) + 46
----
-1412

skipif mysql # not compatible
query I rowsort label-3501
SELECT - + 18 * - MAX ( ALL + - 81 ) + 46
----
-1412

query I rowsort
SELECT ALL + + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3503
SELECT - 31 AS col0, ( - 62 ) + - - 92 * - MAX( 85 ) AS col1
----
-31
-7882

skipif mysql # not compatible
query II rowsort label-3503
SELECT - 31 AS col0, ( - 62 ) + - - 92 * - MAX ( 85 ) AS col1
----
-31
-7882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3504
SELECT DISTINCT NULLIF ( - + CASE - + 10 WHEN + NULLIF ( - 26, + 66 ) THEN - + 1 + 50 WHEN 42 + + - 36 THEN CAST( NULL AS SIGNED ) ELSE - SUM( DISTINCT 13 ) END, 37 )
----
13

skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT NULLIF ( - + CASE - + 10 WHEN + NULLIF ( - 26, + 66 ) THEN - + 1 + 50 WHEN 42 + + - 36 THEN CAST ( NULL AS INTEGER ) ELSE - SUM ( DISTINCT 13 ) END, 37 )
----
13

query I rowsort
SELECT DISTINCT - 64 + 1 + + 8 AS col2
----
-55

query I rowsort
SELECT + 9 * + 86 AS col0
----
774

query I rowsort
SELECT ALL 15 + - + 73
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT - COUNT( * ) - + - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3508
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT - 97 - - 32 * - 96 + + NULLIF ( 28, + + 8 / - + 67 )
----
-3141

query II rowsort
SELECT ALL 7 AS col0, 81 AS col0
----
7
81

query I rowsort
SELECT DISTINCT - 1 + + + 30 AS col0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL + 47 + + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + 47 + + + COUNT ( * )
----
48

query I rowsort
SELECT DISTINCT NULLIF ( + 19, + 81 ) + - 25 AS col1
----
-6

query I rowsort
SELECT ALL 61 + + - 27 + 33 col0
----
67

query I rowsort
SELECT - NULLIF ( 40, + 15 * 94 ) AS col0
----
-40

query I rowsort
SELECT + 43 - 86 AS col0
----
-43

query I rowsort
SELECT DISTINCT 24 AS col0
----
24

query I rowsort
SELECT ALL - 46 - 22
----
-68

query I rowsort
SELECT + + 40 * + + 7
----
280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3520
SELECT + + ( + CASE - + 50 WHEN + 72 THEN 92 END ) * - COALESCE ( + 79, + + CAST( + + 12 AS DECIMAL ) ) + COALESCE ( + 66, COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT + + ( + CASE - + 50 WHEN + 72 THEN 92 END ) * - COALESCE ( + 79, + + CAST ( + + 12 AS REAL ) ) + COALESCE ( + 66, COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT 80 * 51
----
4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT DISTINCT + + COUNT( ALL 38 )
----
1

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + + COUNT ( ALL 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ALL + CASE + + COUNT( * ) WHEN - - 35 THEN NULL WHEN - 73 THEN 16 END / - + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL + CASE + + COUNT ( * ) WHEN - - 35 THEN NULL WHEN - 73 THEN 16 END / - + 9 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3524
SELECT ALL + 59, + COUNT( + CAST( + 5 AS SIGNED ) ) + + 12 AS col1
----
59
13

skipif mysql # not compatible
query II rowsort label-3524
SELECT ALL + 59, + COUNT ( + CAST ( + 5 AS INTEGER ) ) + + 12 AS col1
----
59
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT + - COALESCE ( - + COUNT( * ), + 8 + - 74 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3525
SELECT + - COALESCE ( - + COUNT ( * ), + 8 + - 74 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT - SUM( ALL + 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-3526
SELECT - SUM ( ALL + 39 )
----
-39

query I rowsort
SELECT DISTINCT + - 39 AS col2
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3528
SELECT + - 97 - - CAST( - 25 AS SIGNED ) + - COUNT( * ) DIV - COUNT( DISTINCT - 1 ) AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-3528
SELECT + - 97 - - CAST ( - 25 AS INTEGER ) + - COUNT ( * ) / - COUNT ( DISTINCT - 1 ) AS col2
----
-121

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3529
SELECT - 45 * - ( - 48 ) - + COUNT( DISTINCT + 29 ) AS col0, COUNT( * ) + COALESCE ( - 36, - 83 ) DIV + - 40 AS col1
----
-2161
1

skipif mysql # not compatible
query II rowsort label-3529
SELECT - 45 * - ( - 48 ) - + COUNT ( DISTINCT + 29 ) AS col0, COUNT ( * ) + COALESCE ( - 36, - 83 ) / + - 40 AS col1
----
-2161
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT CAST( 69 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-3530
SELECT CAST ( 69 AS INTEGER )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3531
SELECT COUNT( * ) * + + CAST( + CASE + - 85 WHEN - - 98 * - 14 + - 56 * COUNT( * ) + - - NULLIF ( + MAX( - 67 ), - 7 + MAX( DISTINCT + - 24 ) ) * - 73 * - 44 * 64 DIV 6 THEN - 11 + - - 78 + + ( - - 99 ) + + + 50 ELSE - 11 DIV + 44 END AS SIGNED ) DIV + 50 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3531
SELECT COUNT ( * ) * + + CAST ( + CASE + - 85 WHEN - - 98 * - 14 + - 56 * COUNT ( * ) + - - NULLIF ( + MAX ( - 67 ), - 7 + MAX ( DISTINCT + - 24 ) ) * - 73 * - 44 * 64 / 6 THEN - 11 + - - 78 + + ( - - 99 ) + + + 50 ELSE - 11 / + 44 END AS INTEGER ) / + 50 + - COUNT ( * )
----
-1

query I rowsort
SELECT + 54 + - 47 * + 40 AS col1
----
-1826

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT ALL + COUNT( * ) * + MIN( DISTINCT + - 22 ) + - + 55 AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL + COUNT ( * ) * + MIN ( DISTINCT + - 22 ) + - + 55 AS col1
----
-77

query I rowsort
SELECT + + 64 col1
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3535
SELECT ALL - ( + - 83 ) * - + 82 + - - CAST( NULL AS SIGNED ) + - 5 + - + 7 - COUNT( * ) - + - ( + - CASE COALESCE ( NULLIF ( 82, + + 1 + - 0 ), + + 3 + + 7 ) WHEN SUM( + 26 ) THEN NULL WHEN - - COUNT( * ) THEN NULL WHEN - 39 * - + CASE - 81 WHEN + MIN( + 21 ) * - 5 THEN + CASE + SUM( ALL 86 ) WHEN + 36 - COALESCE ( 88, - COUNT( ALL + CAST( NULL AS SIGNED ) ), COUNT( * ) ) THEN - 36 END * + 60 ELSE NULL END THEN NULL ELSE 42 END ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL - ( + - 83 ) * - + 82 + - - CAST ( NULL AS INTEGER ) + - 5 + - + 7 - COUNT ( * ) - + - ( + - CASE COALESCE ( NULLIF ( 82, + + 1 + - 0 ), + + 3 + + 7 ) WHEN SUM ( + 26 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL WHEN - 39 * - + CASE - 81 WHEN + MIN ( + 21 ) * - 5 THEN + CASE + SUM ( ALL 86 ) WHEN + 36 - COALESCE ( 88, - COUNT ( ALL + CAST ( NULL AS INTEGER ) ), COUNT ( * ) ) THEN - 36 END * + 60 ELSE NULL END THEN NULL ELSE 42 END ) + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL + ( - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + ( - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT ALL 42 * - 55 + + 84
----
-2226

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT - COUNT( * ) + + + 1
----
0

skipif mysql # not compatible
query I rowsort label-3538
SELECT - COUNT ( * ) + + + 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT MIN( ALL - 91 )
----
-91

skipif mysql # not compatible
query I rowsort label-3539
SELECT MIN ( ALL - 91 )
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3540
SELECT - 9 DIV + + ( 90 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3540
SELECT - 9 / + + ( 90 ) AS col0
----
0

query II rowsort
SELECT - 26 * ( + + CASE + + 11 WHEN + 78 THEN - - 61 WHEN - 35 THEN NULL ELSE NULL END ) AS col2, 2 * + 24 AS col0
----
NULL
48

onlyif mysql # DIV for integer division: 
query I rowsort label-3542
SELECT ALL + 5 DIV - 19 * - + 11
----
0

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL + 5 / - 19 * - + 11
----
0

query II rowsort
SELECT ALL 22 * + 14 * - NULLIF ( 77, - + 23 * - - 22 ) + + 24, - 19 AS col2
----
-23692
-19

query II rowsort
SELECT - 52 AS col1, + 59 + 7 * + + 68
----
-52
535

onlyif mysql # aggregate syntax: 
query I rowsort label-3545
SELECT ALL - 15 + + - SUM( ALL + 29 ) - - 10
----
-34

skipif mysql # not compatible
query I rowsort label-3545
SELECT ALL - 15 + + - SUM ( ALL + 29 ) - - 10
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT CASE 61 WHEN - 26 THEN - COUNT( * ) / - COUNT( ALL 18 ) - 4 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT CASE 61 WHEN - 26 THEN - COUNT ( * ) / - COUNT ( ALL 18 ) - 4 ELSE NULL END
----
NULL

query I rowsort
SELECT - 49 + 21 + 44 AS col2
----
16

query II rowsort
SELECT ALL ( - + 56 ) AS col1, ( 44 ) + + 59 + 47 + - 17 AS col0
----
-56
133

onlyif mysql # aggregate syntax: 
query II rowsort label-3549
SELECT 9, - COUNT( * ) - - - 64 col2
----
9
-65

skipif mysql # not compatible
query II rowsort label-3549
SELECT 9, - COUNT ( * ) - - - 64 col2
----
9
-65

query I rowsort
SELECT - 43 + - 74 AS col0
----
-117

onlyif mysql # DIV for integer division: 
query I rowsort label-3551
SELECT ALL + 16 - - 59 * + 83 + + - 10 + - 2 + 71 DIV + 39 AS col0
----
4902

skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL + 16 - - 59 * + 83 + + - 10 + - 2 + 71 / + 39 AS col0
----
4902

query I rowsort
SELECT - ( - 51 ) * + 16
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT - CASE - 96 WHEN COALESCE ( + 93, + 30 ) THEN - COUNT( DISTINCT 78 ) - - 4 + COUNT( * ) WHEN - + 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3553
SELECT - CASE - 96 WHEN COALESCE ( + 93, + 30 ) THEN - COUNT ( DISTINCT 78 ) - - 4 + COUNT ( * ) WHEN - + 29 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3554
SELECT + 95 + COUNT( * ) / - + 98 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT + 95 + COUNT ( * ) / - + 98 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 24 + + 84 + - 15
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT DISTINCT COUNT( ALL + - 95 ) col0, 91 + - 54
----
1
37

skipif mysql # not compatible
query II rowsort label-3556
SELECT DISTINCT COUNT ( ALL + - 95 ) col0, 91 + - 54
----
1
37

query I rowsort
SELECT CASE 97 WHEN - 93 THEN - 35 + - ( - 81 ) * 25 END / + - 48 + 80 * + - 97 - + 70 - 53 * + 20 * - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3558
SELECT DISTINCT - 43, - COALESCE ( + COUNT( ALL 40 ), - COUNT( * ) ) AS col1
----
-43
-1

skipif mysql # not compatible
query II rowsort label-3558
SELECT DISTINCT - 43, - COALESCE ( + COUNT ( ALL 40 ), - COUNT ( * ) ) AS col1
----
-43
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + + 48 * + - 96 + - - 66 + - ( - - COUNT( * ) ) AS col0
----
-4543

skipif mysql # not compatible
query I rowsort label-3559
SELECT + + 48 * + - 96 + - - 66 + - ( - - COUNT ( * ) ) AS col0
----
-4543

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3560
SELECT 63 DIV 63 DIV + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3560
SELECT 63 / 63 / + - COUNT ( * )
----
-1

query I rowsort
SELECT 94 + 18 AS col0
----
112

query I rowsort
SELECT 53 * + - ( ( 2 ) ) * + 79 * + 76 AS col0
----
-636424

query I rowsort
SELECT - 18 * + 18 + 49 AS col1
----
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3564
SELECT ALL + ( + CASE COUNT( * ) WHEN - 65 THEN NULL WHEN + CAST( - - AVG ( ALL + ( - 97 ) ) AS SIGNED ) THEN - COUNT( * ) ELSE + 47 - - 72 END ) + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL + ( + CASE COUNT ( * ) WHEN - 65 THEN NULL WHEN + CAST ( - - AVG ( ALL + ( - 97 ) ) AS INTEGER ) THEN - COUNT ( * ) ELSE + 47 - - 72 END ) + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3565
SELECT + + 33 DIV - COUNT( * ) + + 34 + + + 33 * - 51
----
-1682

skipif mysql # not compatible
query I rowsort label-3565
SELECT + + 33 / - COUNT ( * ) + + 34 + + + 33 * - 51
----
-1682

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT - SUM( DISTINCT - - 11 ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-3566
SELECT - SUM ( DISTINCT - - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL - NULLIF ( 56, - 30 - + 65 * - COUNT( * ) )
----
-56

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - NULLIF ( 56, - 30 - + 65 * - COUNT ( * ) )
----
-56

query I rowsort
SELECT + + ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT CAST( NULL AS SIGNED ) + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT CAST ( NULL AS INTEGER ) + 21
----
NULL

query I rowsort
SELECT + 0 * 90 + + + 49
----
49

query I rowsort
SELECT ALL 39 + 26 + + 65 + - 59 col2
----
71

query I rowsort
SELECT ALL 3 + + - 97 AS col0
----
-94

query II rowsort
SELECT DISTINCT + 1 + - 41 AS col1, - 77 + + 67 + - 83 * 60 + 66 + + 95 * + - 41
----
-40
-8819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3574
SELECT ALL - COALESCE ( + - 76, - + ( + 31 ) - + 12 * - 74 + - 82 + 4 * 37 * - 18, - - 28 * - + 76 DIV - - 22 DIV + - COUNT( * ) ) - 17 + - 35 + + 89 * - - 88 + - 9 AS col0
----
7847

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - COALESCE ( + - 76, - + ( + 31 ) - + 12 * - 74 + - 82 + 4 * 37 * - 18, - - 28 * - + 76 / - - 22 / + - COUNT ( * ) ) - 17 + - 35 + + 89 * - - 88 + - 9 AS col0
----
7847

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT 7 * - ( + 93 ) * + 75 * ( - 51 ) * + 1 + + SUM( ALL 24 ) AS col0
----
2490099

skipif mysql # not compatible
query I rowsort label-3575
SELECT 7 * - ( + 93 ) * + 75 * ( - 51 ) * + 1 + + SUM ( ALL 24 ) AS col0
----
2490099

query I rowsort
SELECT ALL 6 col0
----
6

query I rowsort
SELECT ALL - 84 - + ( 51 ) + - 19 AS col1
----
-154

query I rowsort
SELECT 97 * + NULLIF ( + 37, - 27 )
----
3589

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT 32 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-3579
SELECT 32 * COUNT ( * )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3580
SELECT 16 - + 82, 36 + - CASE + COUNT( ( 12 ) ) WHEN ( - 35 ) THEN NULL WHEN - + 38 THEN + + 55 ELSE NULL END AS col2
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-3580
SELECT 16 - + 82, 36 + - CASE + COUNT ( ( 12 ) ) WHEN ( - 35 ) THEN NULL WHEN - + 38 THEN + + 55 ELSE NULL END AS col2
----
-66
NULL

query I rowsort
SELECT ALL 89 - - 53 * - 73 AS col2
----
-3780

query I rowsort
SELECT 22 * - NULLIF ( - + ( - 15 ), - 1 ) AS col2
----
-330

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT 25 + + + CASE + - COUNT( * ) WHEN - 51 THEN + - COUNT( * ) WHEN 96 + - - 52 / - + 93 THEN 79 END + 0 * - 24 + 26 * + 84 + - COUNT( * ) * - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3583
SELECT 25 + + + CASE + - COUNT ( * ) WHEN - 51 THEN + - COUNT ( * ) WHEN 96 + - - 52 / - + 93 THEN 79 END + 0 * - 24 + 26 * + 84 + - COUNT ( * ) * - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT ALL + + 78 * - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + + 78 * - COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT 6 * COALESCE ( + 15, + COUNT( * ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-3585
SELECT 6 * COALESCE ( + 15, + COUNT ( * ) ) AS col0
----
90

query I rowsort
SELECT 99 - + + 63 col0
----
36

query II rowsort
SELECT + 47 - - 45 col2, - 91
----
92
-91

query I rowsort
SELECT DISTINCT + - 36 * - - 68 AS col2
----
-2448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3589
SELECT - COALESCE ( + + 20, - + 25, 80 * + CAST( NULL AS SIGNED ) * + + 64 )
----
-20

skipif mysql # not compatible
query I rowsort label-3589
SELECT - COALESCE ( + + 20, - + 25, 80 * + CAST ( NULL AS INTEGER ) * + + 64 )
----
-20

query I rowsort
SELECT - + 22 AS col2
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT COUNT( * ) * 32 * + ( + 34 )
----
1088

skipif mysql # not compatible
query I rowsort label-3591
SELECT COUNT ( * ) * 32 * + ( + 34 )
----
1088

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - COUNT( - + 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - COUNT ( - + 83 )
----
-1

query I rowsort
SELECT DISTINCT - - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT DISTINCT 84 * ( - ( COUNT( + 64 ) ) ) + + 89 + + 5 col2, + 1
----
10
1

skipif mysql # not compatible
query II rowsort label-3594
SELECT DISTINCT 84 * ( - ( COUNT ( + 64 ) ) ) + + 89 + + 5 col2, + 1
----
10
1

query I rowsort
SELECT + - 78 col2
----
-78

query I rowsort
SELECT ALL + - 82 + - - 42
----
-40

query I rowsort
SELECT + 11 * - 54 + 47 AS col0
----
-547

onlyif mysql # DIV for integer division: 
query I rowsort label-3598
SELECT + 11 - - 2 DIV + + 8
----
11

skipif mysql # not compatible
query I rowsort label-3598
SELECT + 11 - - 2 / + + 8
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3599
SELECT 81 AS col2, + COUNT( * ) - + - CAST( NULL AS SIGNED ) AS col2
----
81
NULL

skipif mysql # not compatible
query II rowsort label-3599
SELECT 81 AS col2, + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) AS col2
----
81
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3600
SELECT ALL - 46 AS col0, - COUNT( * ) DIV - + 26
----
-46
0

skipif mysql # not compatible
query II rowsort label-3600
SELECT ALL - 46 AS col0, - COUNT ( * ) / - + 26
----
-46
0

query I rowsort
SELECT ALL - 14 - 21 AS col2
----
-35

query I rowsort
SELECT DISTINCT - 5 * - 31
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT COUNT( * ) * - 82 * 52
----
-4264

skipif mysql # not compatible
query I rowsort label-3603
SELECT COUNT ( * ) * - 82 * 52
----
-4264

query I rowsort
SELECT ALL - 36 col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT 81 + 79 * + COUNT( * ) * + + 74 AS col2
----
5927

skipif mysql # not compatible
query I rowsort label-3605
SELECT 81 + 79 * + COUNT ( * ) * + + 74 AS col2
----
5927

query I rowsort
SELECT 87 * + - 9
----
-783

onlyif mysql # aggregate syntax: 
query I rowsort label-3607
SELECT NULLIF ( 18, MIN( ALL - 66 ) + ( - + COALESCE ( 63, + COUNT( * ) ) ) + - 10 * 71 ) + + + 98 AS col1
----
116

skipif mysql # not compatible
query I rowsort label-3607
SELECT NULLIF ( 18, MIN ( ALL - 66 ) + ( - + COALESCE ( 63, + COUNT ( * ) ) ) + - 10 * 71 ) + + + 98 AS col1
----
116

query II rowsort
SELECT 61 AS col0, 2 AS col0
----
61
2

query II rowsort
SELECT DISTINCT 61 AS col2, - 76 AS col2
----
61
-76

query I rowsort
SELECT 6 + - 88 AS col0
----
-82

query I rowsort
SELECT 42 * 55 AS col2
----
2310

query II rowsort
SELECT ALL 69 AS col2, 24 * + + 67 AS col2
----
69
1608

query I rowsort
SELECT DISTINCT 20 AS col1
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-3614
SELECT 25 + - NULLIF ( + 39, - + AVG ( ALL - - 52 ) ) + + 0, - COUNT( * ) AS col2
----
-14
-1

skipif mysql # not compatible
query II rowsort label-3614
SELECT 25 + - NULLIF ( + 39, - + AVG ( ALL - - 52 ) ) + + 0, - COUNT ( * ) AS col2
----
-14
-1

query I rowsort
SELECT ALL - ( - - 34 ) * - ( + 39 )
----
1326

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT - COUNT( * ) * + ( + 81 ) - - 46 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT - COUNT ( * ) * + ( + 81 ) - - 46 AS col2
----
-35

query I rowsort
SELECT + 43 + 1 AS col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - COUNT( * ) + - 98
----
-99

skipif mysql # not compatible
query I rowsort label-3618
SELECT - COUNT ( * ) + - 98
----
-99

query I rowsort
SELECT + CASE + 64 WHEN - 64 * + 21 THEN NULL WHEN - + 10 * + + 44 THEN + 3 / + 66 + + ( + - ( + - 8 ) ) ELSE NULL END / + - 75 + 27 * + 77 col0
----
NULL

query I rowsort
SELECT - + 95 * - 11 AS col0
----
1045

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT ALL + + 34 + + - 2 + + 76 + COUNT( * ) DIV - + ( - 82 ) DIV + - 38 + - 57 + 48 * - ( - COUNT( * ) ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + + 34 + + - 2 + + 76 + COUNT ( * ) / - + ( - 82 ) / + - 38 + - 57 + 48 * - ( - COUNT ( * ) ) AS col2
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3622
SELECT - + COALESCE ( 15, + + 4 * + 47, + - CASE ( + 60 ) WHEN + 84 * 88 THEN - + MIN( ALL - 65 ) WHEN - 62 - + CAST( + 12 AS SIGNED ) THEN - 82 END DIV - - 59 ) col1, 27
----
-15
27

skipif mysql # not compatible
query II rowsort label-3622
SELECT - + COALESCE ( 15, + + 4 * + 47, + - CASE ( + 60 ) WHEN + 84 * 88 THEN - + MIN ( ALL - 65 ) WHEN - 62 - + CAST ( + 12 AS INTEGER ) THEN - 82 END / - - 59 ) col1, 27
----
-15
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT - COUNT( ALL 36 )
----
-1

skipif mysql # not compatible
query I rowsort label-3623
SELECT - COUNT ( ALL 36 )
----
-1

query I rowsort
SELECT - - 93 col2
----
93

query II rowsort
SELECT DISTINCT 57 AS col0, 72 AS col0
----
57
72

query I rowsort
SELECT ALL + 91 * + + 69 AS col2
----
6279

query II rowsort
SELECT + 13 AS col1, + 47 AS col0
----
13
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3628
SELECT ALL + 79 DIV - 71 + - + COUNT( * ) + + 35 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3628
SELECT ALL + 79 / - 71 + - + COUNT ( * ) + + 35 AS col1
----
33

query I rowsort
SELECT DISTINCT - 21 + 66
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3630
SELECT DISTINCT + - ( - 35 ) * + - 8 DIV 55 DIV - + 20
----
0

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + - ( - 35 ) * + - 8 / 55 / - + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + COUNT( ALL 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3631
SELECT + COUNT ( ALL 34 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT COALESCE ( - 45, - 67 ) DIV + - 67 + 32 + + - 78 + + 4 DIV + 23 * - 35
----
-46

skipif mysql # not compatible
query I rowsort label-3632
SELECT COALESCE ( - 45, - 67 ) / + - 67 + 32 + + - 78 + + 4 / + 23 * - 35
----
-46

query II rowsort
SELECT ALL - 92 * + + 12 - - ( - 67 ) AS col2, 77 AS col1
----
-1171
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3634
SELECT - MIN( CAST( NULL AS SIGNED ) ) * + 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) * + 8 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3635
SELECT COALESCE ( + 12, COUNT( * ) DIV 19, - 38 + + 16 )
----
12

skipif mysql # not compatible
query I rowsort label-3635
SELECT COALESCE ( + 12, COUNT ( * ) / 19, - 38 + + 16 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT - 68 + + + 30 - - COUNT( DISTINCT 61 ) * + 24 AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-3636
SELECT - 68 + + + 30 - - COUNT ( DISTINCT 61 ) * + 24 AS col0
----
-14

query II rowsort
SELECT - 26 * 45 AS col2, + 57 AS col1
----
-1170
57

query I rowsort
SELECT + 44 + - 83 AS col2
----
-39

query I rowsort
SELECT NULLIF ( 35, + + 58 )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT 56 * - - 76 * - CAST( NULL AS SIGNED ) + 2 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT 56 * - - 76 * - CAST ( NULL AS INTEGER ) + 2 AS col1
----
NULL

query I rowsort
SELECT + 3 AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT ALL COUNT( * ) * + 88 * + 28 * - 27 * - - 23
----
-1530144

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL COUNT ( * ) * + 88 * + 28 * - 27 * - - 23
----
-1530144

query I rowsort
SELECT COALESCE ( + ( + 51 ), 74 + - 67 + + 60 )
----
51

query I rowsort
SELECT ALL + 87 AS col1
----
87

query I rowsort
SELECT + 2 * + 43 * - + 71 AS col2
----
-6106

query I rowsort
SELECT + 37 * 34 * + 88 AS col2
----
110704

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT MAX( - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3647
SELECT MAX ( - 37 ) AS col0
----
-37

query I rowsort
SELECT ALL 24 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3649
SELECT + COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT + - 24 + - - COUNT( * ) DIV 47 AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3650
SELECT + - 24 + - - COUNT ( * ) / 47 AS col0
----
-24

query I rowsort
SELECT + + 66 * + 96
----
6336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3652
SELECT ALL 94 + - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) * + ( + 57 ) + - 25 * NULLIF ( - + COUNT( * ), 53 + - - 57 - + 35 * + + CASE - 11 WHEN + COUNT( * ) * + 63 + 76 + - MIN( + + 96 ) * COUNT( * ) + + + 16 + - 19 THEN + MAX( + 70 ) * + 59 + - - 59 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT ALL 94 + - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * + ( + 57 ) + - 25 * NULLIF ( - + COUNT ( * ), 53 + - - 57 - + 35 * + + CASE - 11 WHEN + COUNT ( * ) * + 63 + 76 + - MIN ( + + 96 ) * COUNT ( * ) + + + 16 + - 19 THEN + MAX ( + 70 ) * + 59 + - - 59 END )
----
NULL

query I rowsort
SELECT + - 80 - - 65
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3654
SELECT + + NULLIF ( - COUNT( DISTINCT 75 ), - CAST( + 58 AS SIGNED ) ) + 17 DIV - 98 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3654
SELECT + + NULLIF ( - COUNT ( DISTINCT 75 ), - CAST ( + 58 AS INTEGER ) ) + 17 / - 98 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3655
SELECT ALL 21 * - + 85 DIV CASE 49 WHEN + 68 - + - 98 THEN + + 93 + + - ( 52 ) * + 36 WHEN - COUNT( * ) THEN NULL ELSE + + 89 * + - NULLIF ( - + 11, - ( + CAST( NULL AS SIGNED ) ) * COALESCE ( - + 40, 42 DIV + 77 - + - ( - - 50 ) ) ) * 81 END AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL 21 * - + 85 / CASE 49 WHEN + 68 - + - 98 THEN + + 93 + + - ( 52 ) * + 36 WHEN - COUNT ( * ) THEN NULL ELSE + + 89 * + - NULLIF ( - + 11, - ( + CAST ( NULL AS INTEGER ) ) * COALESCE ( - + 40, 42 / + 77 - + - ( - - 50 ) ) ) * 81 END AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL 60 + - COUNT( ALL - + CASE 13 WHEN - 95 + + 72 THEN NULL ELSE - 6 * NULLIF ( - - 77, - COALESCE ( + 0, - ( + - 22 ) ) + - 47 ) + + 40 END ) col2
----
59

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL 60 + - COUNT ( ALL - + CASE 13 WHEN - 95 + + 72 THEN NULL ELSE - 6 * NULLIF ( - - 77, - COALESCE ( + 0, - ( + - 22 ) ) + - 47 ) + + 40 END ) col2
----
59

query I rowsort
SELECT ALL 65 + - 19
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - - 6 + + SUM( DISTINCT + 33 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL - - 6 + + SUM ( DISTINCT + 33 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT DISTINCT - 92 + - SUM( ALL + 0 ) col0
----
-92

skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT - 92 + - SUM ( ALL + 0 ) col0
----
-92

query I rowsort
SELECT ALL - 34 * + 92 AS col1
----
-3128

query I rowsort
SELECT - 31 - + 54 AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-3662
SELECT ALL SUM( - 2 ) AS col1, + 29 AS col0
----
-2
29

skipif mysql # not compatible
query II rowsort label-3662
SELECT ALL SUM ( - 2 ) AS col1, + 29 AS col0
----
-2
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3663
SELECT + - CASE - + 62 WHEN + ( + 36 ) THEN + - 38 + 96 WHEN - 44 THEN NULL WHEN + 84 THEN - CAST( + - 87 AS SIGNED ) ELSE NULL END * - 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3663
SELECT + - CASE - + 62 WHEN + ( + 36 ) THEN + - 38 + 96 WHEN - 44 THEN NULL WHEN + 84 THEN - CAST ( + - 87 AS INTEGER ) ELSE NULL END * - 91 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - + 64 - 31 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3665
SELECT + + 4 + + 21 * - 29 + SUM( - 27 )
----
-632

skipif mysql # not compatible
query I rowsort label-3665
SELECT + + 4 + + 21 * - 29 + SUM ( - 27 )
----
-632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT DISTINCT - 12 / - 73 - + CAST( NULL AS SIGNED ) * + 35 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3666
SELECT DISTINCT - 12 / - 73 - + CAST ( NULL AS INTEGER ) * + 35 + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + - 52 * + - 8
----
416

query I rowsort
SELECT DISTINCT + 42 * - 27 AS col1
----
-1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL - CASE + CASE - 52 WHEN + CASE - 90 WHEN - 71 THEN NULL WHEN - 84 THEN - MAX( DISTINCT + + 52 ) - + MIN( - 77 ) + 87 + - 0 * + 99 * + CASE - - ( - 11 ) WHEN + + 85 * + + 31 * - 46 THEN NULL WHEN + - COUNT( - 7 ) THEN - 80 + + 27 + - - 51 - + ( 66 ) * - ( ( 83 ) ) + - 87 * - 17 / + 19 * - COUNT( * ) * - 21 END END * + COUNT( * ) THEN NULL ELSE + 71 * - - 75 + + ( - 32 ) - + 15 END WHEN - ( 20 ) * - 0 + 12 THEN NULL ELSE + COALESCE ( 60, - 56, 6 ) * 34 END * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - CASE + CASE - 52 WHEN + CASE - 90 WHEN - 71 THEN NULL WHEN - 84 THEN - MAX ( DISTINCT + + 52 ) - + MIN ( - 77 ) + 87 + - 0 * + 99 * + CASE - - ( - 11 ) WHEN + + 85 * + + 31 * - 46 THEN NULL WHEN + - COUNT ( - 7 ) THEN - 80 + + 27 + - - 51 - + ( 66 ) * - ( ( 83 ) ) + - 87 * - 17 / + 19 * - COUNT ( * ) * - 21 END END * + COUNT ( * ) THEN NULL ELSE + 71 * - - 75 + + ( - 32 ) - + 15 END WHEN - ( 20 ) * - 0 + 12 THEN NULL ELSE + COALESCE ( 60, - 56, 6 ) * 34 END * + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT - 27 DIV - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3670
SELECT - 27 / - - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT ALL + 60 * + + 25 * COUNT( * ) * 41
----
61500

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL + 60 * + + 25 * COUNT ( * ) * 41
----
61500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3672
SELECT + CAST( NULL AS SIGNED ) + + - COUNT( - ( + 94 ) ) * + CASE 26 WHEN CAST( - 30 AS SIGNED ) * + CAST( NULL AS SIGNED ) + - 45 + 31 + + + 46 THEN - 69 ELSE - 11 END + + 31 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3672
SELECT + CAST ( NULL AS INTEGER ) + + - COUNT ( - ( + 94 ) ) * + CASE 26 WHEN CAST ( - 30 AS INTEGER ) * + CAST ( NULL AS INTEGER ) + - 45 + 31 + + + 46 THEN - 69 ELSE - 11 END + + 31 col0
----
NULL

query I rowsort
SELECT - COALESCE ( 1, - 16 ) + 92
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3674
SELECT 88 * - 68 + 90 - COUNT( * ) + - ( AVG ( - 90 ) ) * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3674
SELECT 88 * - 68 + 90 - COUNT ( * ) + - ( AVG ( - 90 ) ) * - - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL 73 * + - 93
----
-6789

query I rowsort
SELECT DISTINCT + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + 80 * - + COUNT( * )
----
-80

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + 80 * - + COUNT ( * )
----
-80

query I rowsort
SELECT ALL 48 + + 50 AS col2
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3679
SELECT 41 + + - 95 * - + CAST( - + COUNT( * ) AS SIGNED ) + + 40 DIV - + CAST( + 19 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-3679
SELECT 41 + + - 95 * - + CAST ( - + COUNT ( * ) AS INTEGER ) + + 40 / - + CAST ( + 19 AS INTEGER ) AS col0
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3680
SELECT ALL - 98 + 6 + + COUNT( * ) AS col1, - ( - + CAST( NULL AS SIGNED ) ) + - - 56 * - - 76 AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-3680
SELECT ALL - 98 + 6 + + COUNT ( * ) AS col1, - ( - + CAST ( NULL AS INTEGER ) ) + - - 56 * - - 76 AS col2
----
-91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3681
SELECT 25 DIV 53 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT 25 / 53 AS col1
----
0

query I rowsort
SELECT + ( + - COALESCE ( + 79, + 32 + - 73 ) ) + 18
----
-61

query I rowsort
SELECT ALL - - 92 + - - 24 AS col2
----
116

query I rowsort
SELECT 84 + + - 4 AS col0
----
80

query I rowsort
SELECT DISTINCT - 87 + 44
----
-43

query I rowsort
SELECT ALL + - 63 * + 26
----
-1638

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT ALL - 54 + - - MAX( + 50 ) AS col1, - 37
----
-4
-37

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL - 54 + - - MAX ( + 50 ) AS col1, - 37
----
-4
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - MAX( + 81 ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - MAX ( + 81 ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3689
SELECT ALL CAST( CAST( - COUNT( * ) AS SIGNED ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL CAST ( CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER )
----
-1

query I rowsort
SELECT + 16 + - 89 AS col2
----
-73

query I rowsort
SELECT ALL 70 col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT - MAX( 7 ) * + + 48 * - 5 AS col1
----
1680

skipif mysql # not compatible
query I rowsort label-3692
SELECT - MAX ( 7 ) * + + 48 * - 5 AS col1
----
1680

query I rowsort
SELECT DISTINCT ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT + 5 + + 42 - - COUNT( * ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3694
SELECT + 5 + + 42 - - COUNT ( * ) AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT ALL + SUM( - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3695
SELECT ALL + SUM ( - + 79 )
----
-79

query I rowsort
SELECT ALL 79 * - 75 * - - 28 AS col0
----
-165900

query I rowsort
SELECT ( - 23 ) + - 33 + - 73 + 23 + - 81
----
-187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3698
SELECT DISTINCT COUNT( + 85 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT COUNT ( + 85 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT SUM( - - 5 ) * - - 89
----
445

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT SUM ( - - 5 ) * - - 89
----
445

onlyif mysql # DIV for integer division: 
query II rowsort label-3700
SELECT - 8 DIV + 41 + + - 3 * + + 93 AS col2, 6 AS col2
----
-279
6

skipif mysql # not compatible
query II rowsort label-3700
SELECT - 8 / + 41 + + - 3 * + + 93 AS col2, 6 AS col2
----
-279
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL - MAX( ALL 79 ) AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL - MAX ( ALL 79 ) AS col1
----
-79

query I rowsort
SELECT DISTINCT 32 + 79 AS col2
----
111

query I rowsort
SELECT ALL 91 + - - 15 * + 31 * - 79 * - 36
----
1322551

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT ALL - MIN( ALL + + 66 ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL - MIN ( ALL + + 66 ) AS col2
----
-66

query I rowsort
SELECT DISTINCT - 11 + + COALESCE ( - 4, COALESCE ( - 83, + - 3 ), 19 ) AS col2
----
-15

query II rowsort
SELECT DISTINCT 25 + 54 AS col0, 34 * - + 36 AS col2
----
79
-1224

query I rowsort
SELECT 41 * + - 65
----
-2665

query I rowsort
SELECT DISTINCT + COALESCE ( - 44, - - ( - 93 ) ) + - - 22 + - 57 * - 88 * + 28
----
140426

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3709
SELECT ALL - 94 + + 84 AS col2, + 91 * - 10 col0, + CAST( - - 26 AS SIGNED )
----
-10
-910
26

skipif mysql # not compatible
query III rowsort label-3709
SELECT ALL - 94 + + 84 AS col2, + 91 * - 10 col0, + CAST ( - - 26 AS INTEGER )
----
-10
-910
26

query I rowsort
SELECT 58 * 8 - 35
----
429

query I rowsort
SELECT 41 * + 90
----
3690

query II rowsort
SELECT ALL - COALESCE ( - 36, 52 * 45 ) AS col1, + 43
----
36
43

query I rowsort
SELECT DISTINCT + 16 * + 61 + - 16 AS col0
----
960

query II rowsort
SELECT ALL - 58 + + 97 AS col1, 16 col1
----
39
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL + + 60 - - NULLIF ( - COUNT( * ), - + 19 ) * - 54
----
114

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + + 60 - - NULLIF ( - COUNT ( * ), - + 19 ) * - 54
----
114

query I rowsort
SELECT DISTINCT - - 38
----
38

query II rowsort
SELECT ALL - 3 - + 83 + - + 86 * - 30 AS col1, 26 AS col1
----
2494
26

query II rowsort
SELECT ALL 42 col1, + 50 + + 69
----
42
119

query II rowsort
SELECT DISTINCT 59 AS col2, + 98
----
59
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + 30 + + + MIN( ALL + 27 ) AS col1
----
57

skipif mysql # not compatible
query I rowsort label-3720
SELECT + 30 + + + MIN ( ALL + 27 ) AS col1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3721
SELECT DISTINCT - COUNT( * ) * + 58 DIV + 16 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-3721
SELECT DISTINCT - COUNT ( * ) * + 58 / + 16 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + COALESCE ( + 1, + 71, + 41 + + 68 ) - 11 + + COALESCE ( + SUM( ALL + - 29 ), - + 31 * + 57 * - - 71 )
----
-39

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + COALESCE ( + 1, + 71, + 41 + + 68 ) - 11 + + COALESCE ( + SUM ( ALL + - 29 ), - + 31 * + 57 * - - 71 )
----
-39

query I rowsort
SELECT ALL - 51 * + - 30 col0
----
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT SUM( 69 ) * - 7 * + 44
----
-21252

skipif mysql # not compatible
query I rowsort label-3724
SELECT SUM ( 69 ) * - 7 * + 44
----
-21252

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT DISTINCT + 11, + COUNT( * ) * 65 AS col2
----
11
65

skipif mysql # not compatible
query II rowsort label-3725
SELECT DISTINCT + 11, + COUNT ( * ) * 65 AS col2
----
11
65

query I rowsort
SELECT DISTINCT + ( + 0 ) * 95 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3727
SELECT 92 AS col0, + COUNT( * ) AS col2
----
92
1

skipif mysql # not compatible
query II rowsort label-3727
SELECT 92 AS col0, + COUNT ( * ) AS col2
----
92
1

onlyif mysql # DIV for integer division: 
query II rowsort label-3728
SELECT 90 DIV - ( 81 ) col0, 94 + - 26 col2
----
-1
68

skipif mysql # not compatible
query II rowsort label-3728
SELECT 90 / - ( 81 ) col0, 94 + - 26 col2
----
-1
68

query II rowsort
SELECT ALL 27 + - + 96 AS col2, 48 AS col1
----
-69
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT 97 - + COUNT( DISTINCT 69 ) + - 5
----
91

skipif mysql # not compatible
query I rowsort label-3730
SELECT 97 - + COUNT ( DISTINCT 69 ) + - 5
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT 10 + 44 - - 79 * + + 60 * 88 + SUM( + 40 ) * + 47 * 52 * + + COUNT( * ) AS col0
----
514934

skipif mysql # not compatible
query I rowsort label-3731
SELECT 10 + 44 - - 79 * + + 60 * 88 + SUM ( + 40 ) * + 47 * 52 * + + COUNT ( * ) AS col0
----
514934

query II rowsort
SELECT DISTINCT + 79 + 0 AS col2, 69
----
79
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL + 7 * - MIN( - 98 ) + ( - 35 )
----
651

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL + 7 * - MIN ( - 98 ) + ( - 35 )
----
651

onlyif mysql # aggregate syntax: 
query II rowsort label-3734
SELECT + 61 * + + 20, + MAX( ALL - 14 ) col1
----
1220
-14

skipif mysql # not compatible
query II rowsort label-3734
SELECT + 61 * + + 20, + MAX ( ALL - 14 ) col1
----
1220
-14

query I rowsort
SELECT ALL + 68 * - 47 * + 67 + 53
----
-214079

query I rowsort
SELECT + 79 - - 4 AS col0
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3737
SELECT DISTINCT 85 * - 5 DIV COUNT( * ) * + 80 AS col2
----
-34000

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT 85 * - 5 / COUNT ( * ) * + 80 AS col2
----
-34000

onlyif mysql # aggregate syntax: 
query II rowsort label-3738
SELECT + MIN( ALL - 9 ) AS col0, - 21
----
-9
-21

skipif mysql # not compatible
query II rowsort label-3738
SELECT + MIN ( ALL - 9 ) AS col0, - 21
----
-9
-21

query I rowsort
SELECT ALL 19 * 54
----
1026

onlyif mysql # aggregate syntax: 
query II rowsort label-3740
SELECT - 25 + + COUNT( * ) AS col1, ( - + 5 )
----
-24
-5

skipif mysql # not compatible
query II rowsort label-3740
SELECT - 25 + + COUNT ( * ) AS col1, ( - + 5 )
----
-24
-5

query I rowsort
SELECT + 31 * - + 80
----
-2480

query I rowsort
SELECT ALL - 91 * - 73 + - - 94 + 68 * - 23
----
5173

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT + MAX( - - 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3743
SELECT + MAX ( - - 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT ALL - COUNT( * ) * 62 + 26 AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL - COUNT ( * ) * 62 + 26 AS col0
----
-36

query I rowsort
SELECT CASE - + 67 WHEN + + 36 THEN - + 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3746
SELECT DISTINCT - 97 * + SUM( - 71 ) + - + COUNT( * ) DIV + 53 AS col2
----
6887

skipif mysql # not compatible
query I rowsort label-3746
SELECT DISTINCT - 97 * + SUM ( - 71 ) + - + COUNT ( * ) / + 53 AS col2
----
6887

query II rowsort
SELECT ALL + CASE 15 WHEN 27 THEN + - ( + + 83 ) END * + + 10 - - 9, + 7 * - - 44 AS col0
----
NULL
308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT + - 18 + - CAST( NULL AS SIGNED ) - 10 + - + 87 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT + - 18 + - CAST ( NULL AS INTEGER ) - 10 + - + 87 AS col0
----
NULL

query I rowsort
SELECT ALL 12 * - 9 - - 0 - - - 50
----
-158

query II rowsort
SELECT + 57 * - 51 AS col0, 17 AS col1
----
-2907
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3751
SELECT ALL + ( CAST( NULL AS SIGNED ) ) col2, 11 AS col2
----
NULL
11

skipif mysql # not compatible
query II rowsort label-3751
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) col2, 11 AS col2
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT MAX( DISTINCT 66 ) * 1 * + - 62 + COUNT( * ) + - - 43 * - 8 + - 39 + - + ( + - 14 ) * - 8 + + 11 - - MIN( ALL - 84 )
----
-4659

skipif mysql # not compatible
query I rowsort label-3752
SELECT MAX ( DISTINCT 66 ) * 1 * + - 62 + COUNT ( * ) + - - 43 * - 8 + - 39 + - + ( + - 14 ) * - 8 + + 11 - - MIN ( ALL - 84 )
----
-4659

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT + + 41 DIV 53 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT + + 41 / 53 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3754
SELECT - CAST( - ( COUNT( + 28 ) ) AS SIGNED ) + - 64 * - ( 94 )
----
6017

skipif mysql # not compatible
query I rowsort label-3754
SELECT - CAST ( - ( COUNT ( + 28 ) ) AS INTEGER ) + - 64 * - ( 94 )
----
6017

query I rowsort
SELECT ALL + - NULLIF ( + 20, 59 ) * 66 + 85
----
-1235

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT + - 66 * - 85 * + 50 * + + COUNT( * )
----
280500

skipif mysql # not compatible
query I rowsort label-3756
SELECT + - 66 * - 85 * + 50 * + + COUNT ( * )
----
280500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3757
SELECT - - 61 * + CAST( NULL AS SIGNED ) + - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT - - 61 * + CAST ( NULL AS INTEGER ) + - 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3758
SELECT ALL + CASE 43 WHEN - + 38 + - 29 * 20 THEN 15 WHEN + - 9 THEN + + 81 - + 46 + - 31 END * - + 42 * 41 AS col2, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-3758
SELECT ALL + CASE 43 WHEN - + 38 + - 29 * 20 THEN 15 WHEN + - 9 THEN + + 81 - + 46 + - 31 END * - + 42 * 41 AS col2, COUNT ( * ) AS col1
----
NULL
1

query II rowsort
SELECT DISTINCT 16 * 58, 16 col1
----
928
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - - COUNT( * ) + + + ( - + 35 ) + + 11 col1
----
-23

skipif mysql # not compatible
query I rowsort label-3760
SELECT - - COUNT ( * ) + + + ( - + 35 ) + + 11 col1
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT ALL - 11 * COUNT( - 24 ) * - COUNT( - - 62 ) + - 10 * + 79
----
-779

skipif mysql # not compatible
query I rowsort label-3761
SELECT ALL - 11 * COUNT ( - 24 ) * - COUNT ( - - 62 ) + - 10 * + 79
----
-779

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT + CASE - - 12 WHEN + + 7 THEN - MAX( DISTINCT - 68 ) + + - 72 WHEN MIN( ALL - - 86 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT + CASE - - 12 WHEN + + 7 THEN - MAX ( DISTINCT - 68 ) + + - 72 WHEN MIN ( ALL - - 86 ) THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 82 AS col2
----
-82

query II rowsort
SELECT DISTINCT ( + 28 ) AS col1, 45 AS col1
----
28
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3765
SELECT - COUNT( * ) + 65 col2, 82 AS col0
----
64
82

skipif mysql # not compatible
query II rowsort label-3765
SELECT - COUNT ( * ) + 65 col2, 82 AS col0
----
64
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + NULLIF ( + + 96, - COUNT( * ) ) * - + 74 AS col1
----
-7104

skipif mysql # not compatible
query I rowsort label-3766
SELECT + NULLIF ( + + 96, - COUNT ( * ) ) * - + 74 AS col1
----
-7104

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT - + 34 * - MIN( DISTINCT 76 ) AS col2, + 14 * + - 17 + - 72 AS col1
----
2584
-310

skipif mysql # not compatible
query II rowsort label-3767
SELECT - + 34 * - MIN ( DISTINCT 76 ) AS col2, + 14 * + - 17 + - 72 AS col1
----
2584
-310

query I rowsort
SELECT ALL 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT ALL - NULLIF ( - 48, COUNT( * ) ) + 92
----
140

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - NULLIF ( - 48, COUNT ( * ) ) + 92
----
140

query I rowsort
SELECT DISTINCT ( - - 43 )
----
43

query I rowsort
SELECT DISTINCT - 56 + + 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT ALL ( + CASE - 52 WHEN + 61 THEN + + 78 + 84 WHEN 80 THEN + MAX( + COALESCE ( 97, - - ( 24 ) ) ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL ( + CASE - 52 WHEN + 61 THEN + + 78 + 84 WHEN 80 THEN + MAX ( + COALESCE ( 97, - - ( 24 ) ) ) ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT ALL + CASE + + 79 WHEN + 97 THEN NULL ELSE 34 END + + - 94 AS col1
----
-60

query II rowsort
SELECT ALL - 39 + - 4 * + - 93, - 64 + - 81 AS col2
----
333
-145

query I rowsort
SELECT DISTINCT CASE - - 68 WHEN - COALESCE ( - 0, + - 61 * + 4 + + 65 * + 75, + COALESCE ( - 98, - 76 + - + 96 + + 27 - + 52 ) + 91 + 48 ) THEN - + 24 + + 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL COUNT( + ( 81 ) ) + - 27 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL COUNT ( + ( 81 ) ) + - 27 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL + MAX( DISTINCT - 53 ) * - + 41 AS col2
----
2173

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + MAX ( DISTINCT - 53 ) * - + 41 AS col2
----
2173

query I rowsort
SELECT - 49 * 65 AS col1
----
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT - COUNT( DISTINCT - - ( 26 ) ) + + 77 col0
----
76

skipif mysql # not compatible
query I rowsort label-3779
SELECT - COUNT ( DISTINCT - - ( 26 ) ) + + 77 col0
----
76

query I rowsort
SELECT - 14 * + 24 AS col1
----
-336

query I rowsort
SELECT - 19 * + 66 * - + 95
----
119130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3782
SELECT CAST( NULL AS SIGNED ) AS col0, 54 + + 85
----
NULL
139

skipif mysql # not compatible
query II rowsort label-3782
SELECT CAST ( NULL AS INTEGER ) AS col0, 54 + + 85
----
NULL
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3783
SELECT CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3783
SELECT CAST ( 41 AS INTEGER )
----
41

query I rowsort
SELECT ALL + 5 col1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3785
SELECT ALL - 70 DIV 19 - - 81 + 43
----
121

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - 70 / 19 - - 81 + 43
----
121

query II rowsort
SELECT ALL + 15 AS col2, + 51
----
15
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3787
SELECT ALL + 20 DIV + 83 - - + 93 * - 24 * + 97 AS col2
----
-216504

skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL + 20 / + 83 - - + 93 * - 24 * + 97 AS col2
----
-216504

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col0
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3789
SELECT ALL 30 DIV + 66 * - 79 - 64 AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-3789
SELECT ALL 30 / + 66 * - 79 - 64 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3790
SELECT + CASE - CAST( COUNT( * ) AS SIGNED ) WHEN 71 + + 6 THEN - + 4 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3790
SELECT + CASE - CAST ( COUNT ( * ) AS INTEGER ) WHEN 71 + + 6 THEN - + 4 ELSE NULL END AS col1
----
NULL

query II rowsort
SELECT DISTINCT + + 11, 43 AS col1
----
11
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3792
SELECT DISTINCT + 34 * 65 DIV - + COUNT( * ) + - 41 + + - 42 + - 1 * + 26
----
-2319

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT + 34 * 65 / - + COUNT ( * ) + - 41 + + - 42 + - 1 * + 26
----
-2319

query I rowsort
SELECT DISTINCT 43 * + 93
----
3999

query I rowsort
SELECT + 12 * + 11 AS col2
----
132

query I rowsort
SELECT + - 51 AS col0
----
-51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-3796
SELECT + + 95 - + 2 DIV + ( - 67 ) + + + CAST( ( - CAST( 93 AS DECIMAL ) ) AS SIGNED ) * - 72 * + + 49 AS col2
----
328199

skipif mysql # not compatible
query I rowsort label-3796
SELECT + + 95 - + 2 / + ( - 67 ) + + + CAST ( ( - CAST ( 93 AS REAL ) ) AS INTEGER ) * - 72 * + + 49 AS col2
----
328199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3797
SELECT + + CAST( + - 50 AS SIGNED ) * - COUNT( * ) AS col2, 67 * COUNT( * ) AS col0
----
50
67

skipif mysql # not compatible
query II rowsort label-3797
SELECT + + CAST ( + - 50 AS INTEGER ) * - COUNT ( * ) AS col2, 67 * COUNT ( * ) AS col0
----
50
67

query I rowsort
SELECT ALL + - 61 col1
----
-61

query II rowsort
SELECT ALL + 41 AS col1, 74 col2
----
41
74

query I rowsort
SELECT + ( + - 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT DISTINCT + CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-3801
SELECT DISTINCT + CAST ( - 67 AS INTEGER )
----
-67

query II rowsort
SELECT ALL + - 1 AS col2, - 61
----
-1
-61

query I rowsort
SELECT + - 7 col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT ALL + MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL + MIN ( 61 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT + COUNT( - 52 )
----
1

skipif mysql # not compatible
query I rowsort label-3805
SELECT + COUNT ( - 52 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3806
SELECT + 15 + 59 + 96 + 69 * - 1 * + 98, + 22 - - COALESCE ( - COALESCE ( 3, - - 59, - + 40 ), CASE 45 WHEN + 73 + + + CASE CAST( NULL AS DECIMAL ) WHEN - - 57 * 2 - MAX( DISTINCT - - 24 ) + - 56 * + 28 THEN NULL ELSE + MAX( ALL - 38 ) + + ( - CAST( + 64 AS SIGNED ) ) END - - 41 + - 47 * - CAST( NULL AS SIGNED ) THEN COALESCE ( 97, - 77, - COUNT( * ) ) ELSE 28 * - 61 + + 82 END ) AS col2
----
-6592
19

skipif mysql # not compatible
query II rowsort label-3806
SELECT + 15 + 59 + 96 + 69 * - 1 * + 98, + 22 - - COALESCE ( - COALESCE ( 3, - - 59, - + 40 ), CASE 45 WHEN + 73 + + + CASE CAST ( NULL AS REAL ) WHEN - - 57 * 2 - MAX ( DISTINCT - - 24 ) + - 56 * + 28 THEN NULL ELSE + MAX ( ALL - 38 ) + + ( - CAST ( + 64 AS INTEGER ) ) END - - 41 + - 47 * - CAST ( NULL AS INTEGER ) THEN COALESCE ( 97, - 77, - COUNT ( * ) ) ELSE 28 * - 61 + + 82 END ) AS col2
----
-6592
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT + 84 - + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-3807
SELECT + 84 - + COUNT ( * )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3808
SELECT + - 68 DIV + - 12 DIV ( + COUNT( * ) ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-3808
SELECT + - 68 / + - 12 / ( + COUNT ( * ) ) AS col0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3809
SELECT + - CAST( + - 71 AS SIGNED ) + + CAST( - 58 AS SIGNED ) col2
----
13

skipif mysql # not compatible
query I rowsort label-3809
SELECT + - CAST ( + - 71 AS INTEGER ) + + CAST ( - 58 AS INTEGER ) col2
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT DISTINCT + + NULLIF ( + + 3, + 59 + - - COALESCE ( - 39, - + CAST( + 27 AS SIGNED ) * - 59 + - 16 + - 85 / + - 94 * - ( 20 ) ) ) * - 38 + - + 97 AS col2
----
-211

skipif mysql # not compatible
query I rowsort label-3810
SELECT DISTINCT + + NULLIF ( + + 3, + 59 + - - COALESCE ( - 39, - + CAST ( + 27 AS INTEGER ) * - 59 + - 16 + - 85 / + - 94 * - ( 20 ) ) ) * - 38 + - + 97 AS col2
----
-211

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3811
SELECT ALL CASE - CAST( - 66 AS SIGNED ) WHEN 54 THEN + ( 0 ) * - 65 / + CAST( COUNT( * ) AS DECIMAL ) * + - 64 * COUNT( * ) + + COUNT( * ) + - 13 WHEN 24 * - - 66 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3811
SELECT ALL CASE - CAST ( - 66 AS INTEGER ) WHEN 54 THEN + ( 0 ) * - 65 / + CAST ( COUNT ( * ) AS REAL ) * + - 64 * COUNT ( * ) + + COUNT ( * ) + - 13 WHEN 24 * - - 66 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT CASE AVG ( ALL 46 ) WHEN - + 19 THEN + 19 + - MIN( - 73 ) WHEN - 82 THEN + 31 + 25 WHEN + 3 - - 93 + + 27 THEN NULL ELSE NULL END * + 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT CASE AVG ( ALL 46 ) WHEN - + 19 THEN + 19 + - MIN ( - 73 ) WHEN - 82 THEN + 31 + 25 WHEN + 3 - - 93 + + 27 THEN NULL ELSE NULL END * + 74 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3813
SELECT - - 30 * - 28 + - 15 + 74 * 48 * COALESCE ( + 64, - + 58 ) AS col2, ( - + 28 ) + + COUNT( * ) AS col1
----
226473
-27

skipif mysql # not compatible
query II rowsort label-3813
SELECT - - 30 * - 28 + - 15 + 74 * 48 * COALESCE ( + 64, - + 58 ) AS col2, ( - + 28 ) + + COUNT ( * ) AS col1
----
226473
-27

query I rowsort
SELECT ( 52 ) AS col2
----
52

query I rowsort
SELECT ALL - - 17 * 27 * 92 * 19 * 80 * - - 6 + + 52 AS col1
----
385119412

onlyif mysql # aggregate syntax: 
query II rowsort label-3816
SELECT ALL - COALESCE ( - 66, MAX( ALL 85 ) * COUNT( * ) ) + + + 26 + + 86, 58 col2
----
178
58

skipif mysql # not compatible
query II rowsort label-3816
SELECT ALL - COALESCE ( - 66, MAX ( ALL 85 ) * COUNT ( * ) ) + + + 26 + + 86, 58 col2
----
178
58

query I rowsort
SELECT + 68 + + 54 AS col1
----
122

query II rowsort
SELECT ALL 74 * - 56 AS col2, + 6 - 64
----
-4144
-58

query I rowsort
SELECT 16 * + 7 AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT CAST( NULL AS SIGNED ) + 20 + - 57
----
NULL

skipif mysql # not compatible
query I rowsort label-3820
SELECT CAST ( NULL AS INTEGER ) + 20 + - 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT DISTINCT 9 * + + COUNT( * ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-3821
SELECT DISTINCT 9 * + + COUNT ( * ) AS col1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL - 7 + - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL - 7 + - COUNT ( * )
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT DISTINCT ( - 64 ) + - + AVG ( ALL + 67 ) + - - CAST( NULL AS SIGNED ) - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT ( - 64 ) + - + AVG ( ALL + 67 ) + - - CAST ( NULL AS INTEGER ) - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3824
SELECT CAST( NULL AS SIGNED ) + 13 AS col1, + 74
----
NULL
74

skipif mysql # not compatible
query II rowsort label-3824
SELECT CAST ( NULL AS INTEGER ) + 13 AS col1, + 74
----
NULL
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3825
SELECT ALL + COUNT( + 67 ) + - 44 * - 79 col0, - NULLIF ( - 69, - 95 ) * 44
----
3477
3036

skipif mysql # not compatible
query II rowsort label-3825
SELECT ALL + COUNT ( + 67 ) + - 44 * - 79 col0, - NULLIF ( - 69, - 95 ) * 44
----
3477
3036

query I rowsort
SELECT DISTINCT 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT 31 - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-3827
SELECT 31 - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT + 90 * + 67 AS col1
----
6030

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT + 81 - CASE + - COALESCE ( 71, 66 / - - SUM( - + 84 ) ) WHEN - 7 / 53 THEN NULL WHEN - + 64 * 0 * + - MAX( ALL + 67 ) * - - COUNT( * ) THEN 10 * - 25 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT + 81 - CASE + - COALESCE ( 71, 66 / - - SUM ( - + 84 ) ) WHEN - 7 / 53 THEN NULL WHEN - + 64 * 0 * + - MAX ( ALL + 67 ) * - - COUNT ( * ) THEN 10 * - 25 ELSE NULL END col2
----
NULL

query I rowsort
SELECT 44 + - ( - + 68 ) - + 93 AS col2
----
19

query I rowsort
SELECT ALL CASE + - 29 WHEN 56 THEN - 17 END / + 11 AS col0
----
NULL

query II rowsort
SELECT ALL + 63 - 63 * 71 * + 6, 29 AS col2
----
-26775
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT 69 * - COUNT( * ) * - - 89
----
-6141

skipif mysql # not compatible
query I rowsort label-3833
SELECT 69 * - COUNT ( * ) * - - 89
----
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT ALL + 72 * + ( + 70 ) * + MAX( DISTINCT + 74 ) AS col0, + 4 AS col1
----
372960
4

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL + 72 * + ( + 70 ) * + MAX ( DISTINCT + 74 ) AS col0, + 4 AS col1
----
372960
4

query I rowsort
SELECT + 76 * - 80 - - - 20
----
-6100

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3836
SELECT ALL - NULLIF ( - + 48, NULLIF ( - - CAST( NULL AS SIGNED ), - 27 ) + - 1 + - 0 ) AS col0, 40 AS col1
----
48
40

skipif mysql # not compatible
query II rowsort label-3836
SELECT ALL - NULLIF ( - + 48, NULLIF ( - - CAST ( NULL AS INTEGER ), - 27 ) + - 1 + - 0 ) AS col0, 40 AS col1
----
48
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3837
SELECT + 83 + + COUNT( * ) + - 50 DIV + 5 + - - 78
----
152

skipif mysql # not compatible
query I rowsort label-3837
SELECT + 83 + + COUNT ( * ) + - 50 / + 5 + - - 78
----
152

query II rowsort
SELECT ALL - ( + 90 ) AS col2, + 1 AS col1
----
-90
1

query I rowsort
SELECT ( 27 ) * - + 77 + + 1 + - - 13
----
-2065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3840
SELECT - 75 DIV 68 DIV - + NULLIF ( + COALESCE ( + + 32, + AVG ( ALL + 9 ) * - COUNT( * ) ), - - 55 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT - 75 / 68 / - + NULLIF ( + COALESCE ( + + 32, + AVG ( ALL + 9 ) * - COUNT ( * ) ), - - 55 ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3841
SELECT DISTINCT + NULLIF ( + 25, - - ( + COUNT( * ) ) * - - ( - - 56 ) ) DIV + 87 - - 3 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT + NULLIF ( + 25, - - ( + COUNT ( * ) ) * - - ( - - 56 ) ) / + 87 - - 3 AS col1
----
3

query I rowsort
SELECT ALL - - 49 col0
----
49

query I rowsort
SELECT + 57 * - 65 + 85 AS col1
----
-3620

query I rowsort
SELECT DISTINCT - 12 col1
----
-12

query I rowsort
SELECT - 33 + 65 + + - 32 * + 32
----
-992

onlyif mysql # aggregate syntax: 
query II rowsort label-3846
SELECT + MAX( - 41 ), ( + 62 ) AS col1
----
-41
62

skipif mysql # not compatible
query II rowsort label-3846
SELECT + MAX ( - 41 ), ( + 62 ) AS col1
----
-41
62

query I rowsort
SELECT DISTINCT - - 90
----
90

query I rowsort
SELECT ALL - 20 + 32 + ( 59 ) + - 7 * + - 93 * 61 AS col2
----
39782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3849
SELECT - 70 * - COUNT( * ) DIV + - COUNT( * ) + 77 * - 78
----
-6076

skipif mysql # not compatible
query I rowsort label-3849
SELECT - 70 * - COUNT ( * ) / + - COUNT ( * ) + 77 * - 78
----
-6076

query II rowsort
SELECT + ( - 38 ) AS col2, + 69
----
-38
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ( + ( 12 ) ) * + - 98 + COUNT( * )
----
-1175

skipif mysql # not compatible
query I rowsort label-3851
SELECT ( + ( 12 ) ) * + - 98 + COUNT ( * )
----
-1175

query II rowsort
SELECT ALL - 28 + - 24 * - 3 + - 73 AS col1, 40
----
-29
40

query I rowsort
SELECT DISTINCT 61 + - 91 AS col1
----
-30

query I rowsort
SELECT ALL + 68 * - - ( + + 32 )
----
2176

query I rowsort
SELECT DISTINCT ( - + 57 ) + - + 96
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ( + + COUNT( * ) ) * + + 34 * 81
----
2754

skipif mysql # not compatible
query I rowsort label-3856
SELECT ( + + COUNT ( * ) ) * + + 34 * 81
----
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT COUNT( * ) + - + 53 - ( - + 65 ) * 38 * 13 + + 36 AS col2
----
32094

skipif mysql # not compatible
query I rowsort label-3857
SELECT COUNT ( * ) + - + 53 - ( - + 65 ) * 38 * 13 + + 36 AS col2
----
32094

query I rowsort
SELECT DISTINCT ( + + 58 ) - - + 32
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT ALL CAST( - + MIN( - 79 ) AS SIGNED ) * + - COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-3859
SELECT ALL CAST ( - + MIN ( - 79 ) AS INTEGER ) * + - COUNT ( * )
----
-79

query II rowsort
SELECT - 94 AS col0, NULLIF ( - - 56, 38 ) col1
----
-94
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT COUNT( * ) * + - 22 * - - 19
----
-418

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( * ) * + - 22 * - - 19
----
-418

query I rowsort
SELECT ALL 90 * + CASE - 65 WHEN 9 + 84 THEN NULL ELSE 40 END AS col1
----
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT COUNT( * ) + - 24 + - 68 * + - 80 * 91
----
495017

skipif mysql # not compatible
query I rowsort label-3863
SELECT COUNT ( * ) + - 24 + - 68 * + - 80 * 91
----
495017

onlyif mysql # DIV for integer division: 
query II rowsort label-3864
SELECT ALL 51 AS col1, 11 + 83 + - 90 + + 69 DIV - - 3
----
51
27

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL 51 AS col1, 11 + 83 + - 90 + + 69 / - - 3
----
51
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT 8 * + + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT 8 * + + COUNT ( * )
----
8

query I rowsort
SELECT DISTINCT 9 col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT ALL ( - - COALESCE ( + - 91, + CAST( NULL AS SIGNED ) * + + 8 * + - 76 + + 54 + - SUM( DISTINCT - 13 ) + - 31 * + 53 ) ) * 10 * - 81 - + + 71 AS col2
----
73639

skipif mysql # not compatible
query I rowsort label-3867
SELECT ALL ( - - COALESCE ( + - 91, + CAST ( NULL AS INTEGER ) * + + 8 * + - 76 + + 54 + - SUM ( DISTINCT - 13 ) + - 31 * + 53 ) ) * 10 * - 81 - + + 71 AS col2
----
73639

query I rowsort
SELECT 79 * 74 AS col1
----
5846

query I rowsort
SELECT 85 + 43
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-3870
SELECT + MIN( - ( 81 ) ), 89 + - - 36 AS col0
----
-81
125

skipif mysql # not compatible
query II rowsort label-3870
SELECT + MIN ( - ( 81 ) ), 89 + - - 36 AS col0
----
-81
125

query II rowsort
SELECT + - 91 AS col1, 62 AS col2
----
-91
62

query I rowsort
SELECT ALL - 31 * + 37 + ( 1 )
----
-1146

query I rowsort
SELECT 22 * - 94
----
-2068

query I rowsort
SELECT ALL - + 73 AS col0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3875
SELECT DISTINCT + COALESCE ( - + 43, + - 89, + 32 DIV 29 * + 84 + COUNT( * ) ) * 49 + 81 * + + 37 * - COALESCE ( - 84, - 51 ) AS col2
----
249641

skipif mysql # not compatible
query I rowsort label-3875
SELECT DISTINCT + COALESCE ( - + 43, + - 89, + 32 / 29 * + 84 + COUNT ( * ) ) * 49 + 81 * + + 37 * - COALESCE ( - 84, - 51 ) AS col2
----
249641

query I rowsort
SELECT DISTINCT - - 96 AS col2
----
96

query II rowsort
SELECT - 35 AS col0, + ( 53 ) * 2 * 6
----
-35
636

query I rowsort
SELECT 37 * + + 95
----
3515

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL + 83 + + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL + 83 + + - COUNT ( * )
----
82

query I rowsort
SELECT + + 14 AS col2
----
14

query I rowsort
SELECT ALL - + 59 + + 17 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3882
SELECT ALL + + 72 AS col1, + COUNT( * ) DIV - - COUNT( * ) * + - COUNT( * ) AS col0
----
72
-1

skipif mysql # not compatible
query II rowsort label-3882
SELECT ALL + + 72 AS col1, + COUNT ( * ) / - - COUNT ( * ) * + - COUNT ( * ) AS col0
----
72
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT - - COUNT( * ) * - - 12 + + ( - + 76 ) - + MAX( + + 30 ) * - 33 AS col0
----
926

skipif mysql # not compatible
query I rowsort label-3883
SELECT - - COUNT ( * ) * - - 12 + + ( - + 76 ) - + MAX ( + + 30 ) * - 33 AS col0
----
926

query I rowsort
SELECT + + ( + 95 )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT - 9 + 80 + - - 73 DIV 26 + + COUNT( 15 ) + + 2 * + + ( + + 74 ) * - COALESCE ( - 47, 98, 46 + + - 74 + + 86 ) AS col2
----
7030

skipif mysql # not compatible
query I rowsort label-3885
SELECT - 9 + 80 + - - 73 / 26 + + COUNT ( 15 ) + + 2 * + + ( + + 74 ) * - COALESCE ( - 47, 98, 46 + + - 74 + + 86 ) AS col2
----
7030

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + COUNT( * ) - + - 98 + - 7
----
92

skipif mysql # not compatible
query I rowsort label-3886
SELECT + COUNT ( * ) - + - 98 + - 7
----
92

query I rowsort
SELECT ALL + 7 * + 82
----
574

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3888
SELECT DISTINCT CAST( - 27 AS SIGNED ) * + COUNT( * ) + 86 - 21 + COUNT( * )
----
39

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT CAST ( - 27 AS INTEGER ) * + COUNT ( * ) + 86 - 21 + COUNT ( * )
----
39

query I rowsort
SELECT ALL 90 col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3890
SELECT + 55 + - + 82 * - 10 * - CAST( + 55 AS DECIMAL ) * SUM( - 20 ) / + - 99 * CASE - MIN( ALL 84 ) WHEN + 24 / + 42 THEN + 76 WHEN - 46 + - 82 - 68 + - 37 + 3 THEN NULL ELSE - ( - + CAST( NULL AS SIGNED ) ) + - - 20 END + - 82 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3890
SELECT + 55 + - + 82 * - 10 * - CAST ( + 55 AS REAL ) * SUM ( - 20 ) / + - 99 * CASE - MIN ( ALL 84 ) WHEN + 24 / + 42 THEN + 76 WHEN - 46 + - 82 - 68 + - 37 + 3 THEN NULL ELSE - ( - + CAST ( NULL AS INTEGER ) ) + - - 20 END + - 82 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT ALL COALESCE ( + CAST( 2 AS SIGNED ), + + 51 + 46 + + CAST( - ( 82 ) AS SIGNED ) * 19 - 64 )
----
2

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL COALESCE ( + CAST ( 2 AS INTEGER ), + + 51 + 46 + + CAST ( - ( 82 ) AS INTEGER ) * 19 - 64 )
----
2

query I rowsort
SELECT DISTINCT + 90 * 74 AS col2
----
6660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT ALL 43 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL 43 / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3894
SELECT + 49 * 43 DIV - 33 col0
----
-63

skipif mysql # not compatible
query I rowsort label-3894
SELECT + 49 * 43 / - 33 col0
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3895
SELECT ALL ( + ( + COALESCE ( COUNT( * ), + ( - 22 ) + 94 + 42 * - 96 * ( + CAST( NULL AS SIGNED ) ) * + - COUNT( * ) + - COALESCE ( + 91, 72 DIV - 42, + - 84 + 53 ) + COUNT( * ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL ( + ( + COALESCE ( COUNT ( * ), + ( - 22 ) + 94 + 42 * - 96 * ( + CAST ( NULL AS INTEGER ) ) * + - COUNT ( * ) + - COALESCE ( + 91, 72 / - 42, + - 84 + 53 ) + COUNT ( * ) ) ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT ALL 60 DIV 84
----
0

skipif mysql # not compatible
query I rowsort label-3896
SELECT ALL 60 / 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3897
SELECT ALL 7 DIV + ( + 40 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL 7 / + ( + 40 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + 13 * CASE + 32 WHEN + COALESCE ( AVG ( 67 ), - - 93 ) THEN NULL WHEN + 55 * - - 19 THEN - - NULLIF ( 2, - 98 * 95 + 87 + - SUM( ALL 16 ) ) ELSE NULL END * + 74 / - - 65 + - + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3898
SELECT + 13 * CASE + 32 WHEN + COALESCE ( AVG ( 67 ), - - 93 ) THEN NULL WHEN + 55 * - - 19 THEN - - NULLIF ( 2, - 98 * 95 + 87 + - SUM ( ALL 16 ) ) ELSE NULL END * + 74 / - - 65 + - + 82 AS col0
----
NULL

query I rowsort
SELECT + 19 * - - 4
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT + MIN( + 98 ) * + 35 AS col0
----
3430

skipif mysql # not compatible
query I rowsort label-3900
SELECT + MIN ( + 98 ) * + 35 AS col0
----
3430

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3901
SELECT + NULLIF ( - COALESCE ( 53, + 55 DIV - + ( - MIN( + 76 ) ) + 60 + COUNT( * ) * + 85 ), + 15 ) - + - 98 AS col2
----
45

skipif mysql # not compatible
query I rowsort label-3901
SELECT + NULLIF ( - COALESCE ( 53, + 55 / - + ( - MIN ( + 76 ) ) + 60 + COUNT ( * ) * + 85 ), + 15 ) - + - 98 AS col2
----
45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3902
SELECT ALL 71 / MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 71 / MAX ( ALL - CAST ( NULL AS REAL ) ) AS col1
----
NULL

query II rowsort
SELECT ALL - 93, - 78 AS col0
----
-93
-78

query I rowsort
SELECT + - 33 * - 35 + + + 14
----
1169

query I rowsort
SELECT 42 * - + 87 * + 98 - - 62 AS col1
----
-358030

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3906
SELECT + CAST( NULL AS SIGNED ) AS col1, + 0 * 41 * - 76
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3906
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 0 * 41 * - 76
----
NULL
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3907
SELECT + 68 + 62 DIV - ( + - COUNT( ALL CAST( - + 21 AS SIGNED ) ) )
----
130

skipif mysql # not compatible
query I rowsort label-3907
SELECT + 68 + 62 / - ( + - COUNT ( ALL CAST ( - + 21 AS INTEGER ) ) )
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT - - ( - - 99 ) DIV - + 46 - + 72 - - - 50 AS col2
----
-124

skipif mysql # not compatible
query I rowsort label-3908
SELECT - - ( - - 99 ) / - + 46 - + 72 - - - 50 AS col2
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-3909
SELECT ALL 82 * - COUNT( * ) + - - MAX( DISTINCT - 77 ) * - + ( - 63 ) AS col1
----
-4933

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL 82 * - COUNT ( * ) + - - MAX ( DISTINCT - 77 ) * - + ( - 63 ) AS col1
----
-4933

query I rowsort
SELECT - 41 col2
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT + + COALESCE ( - + 3, CAST( - 64 AS SIGNED ) * 67 + 28 + + 21 ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT + + COALESCE ( - + 3, CAST ( - 64 AS INTEGER ) * 67 + 28 + + 21 ) AS col2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3912
SELECT ALL + 54 * CAST( - COUNT( * ) AS SIGNED ) + - + 40 + + COUNT( + ( ( - 91 ) ) )
----
-93

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL + 54 * CAST ( - COUNT ( * ) AS INTEGER ) + - + 40 + + COUNT ( + ( ( - 91 ) ) )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - 98 * - - COUNT( * ) + 84 + 27 * 60
----
1606

skipif mysql # not compatible
query I rowsort label-3913
SELECT - 98 * - - COUNT ( * ) + 84 + 27 * 60
----
1606

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3914
SELECT ALL + 82 AS col1, - CAST( NULL AS SIGNED ) * 82 AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-3914
SELECT ALL + 82 AS col1, - CAST ( NULL AS INTEGER ) * 82 AS col1
----
82
NULL

query I rowsort
SELECT ALL + ( + + 68 ) AS col2
----
68

query I rowsort
SELECT - 40 * - ( - - 45 )
----
1800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3917
SELECT ALL + NULLIF ( + 34, 72 * - + 98 ) AS col2, CAST( NULL AS SIGNED ) * + - 74 AS col2
----
34
NULL

skipif mysql # not compatible
query II rowsort label-3917
SELECT ALL + NULLIF ( + 34, 72 * - + 98 ) AS col2, CAST ( NULL AS INTEGER ) * + - 74 AS col2
----
34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + MAX( ALL + 73 ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + MAX ( ALL + 73 ) AS col1
----
73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3919
SELECT + - CASE WHEN 9 IN ( - - 83, 41, - - 78, + AVG ( + 23 ) * - 55 / 79, - ( + 33 ) / - + 95 ) THEN - + COUNT( * ) END AS col0, - 46 + - NULLIF ( - 61, 16 * 3 * 74 - + - 30 - - CAST( NULL AS DECIMAL ) * + COALESCE ( - + 92, 29 * + + AVG ( ALL + 57 ) * + ( + 30 ) + COALESCE ( + 80, - + 76 / + - COUNT( * ) + - 89 - - + COUNT( * ) * - 11 * - 1 ) - - 51 / - + 14 * - 80 + - 87 * + ( + 27 ) ) ) AS col0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-3919
SELECT + - CASE WHEN 9 IN ( - - 83, 41, - - 78, + AVG ( + 23 ) * - 55 / 79, - ( + 33 ) / - + 95 ) THEN - + COUNT ( * ) END AS col0, - 46 + - NULLIF ( - 61, 16 * 3 * 74 - + - 30 - - CAST ( NULL AS REAL ) * + COALESCE ( - + 92, 29 * + + AVG ( ALL + 57 ) * + ( + 30 ) + COALESCE ( + 80, - + 76 / + - COUNT ( * ) + - 89 - - + COUNT ( * ) * - 11 * - 1 ) - - 51 / - + 14 * - 80 + - 87 * + ( + 27 ) ) ) AS col0
----
NULL
15

query I rowsort
SELECT - 33 * 32 * + 78 * - + 51 col1
----
4200768

onlyif mysql # aggregate syntax: 
query I rowsort label-3921
SELECT + SUM( - - 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-3921
SELECT + SUM ( - - 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL + ( + MIN( DISTINCT - + 11 ) )
----
-11

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL + ( + MIN ( DISTINCT - + 11 ) )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3923
SELECT ALL - CAST( NULL AS SIGNED ) / + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - CAST ( NULL AS INTEGER ) / + 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT - 79 DIV 59 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3924
SELECT - 79 / 59 AS col0
----
-1

query I rowsort
SELECT ALL + 70 col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT DISTINCT SUM( + + NULLIF ( + 97, + - 71 + + 0 ) )
----
97

skipif mysql # not compatible
query I rowsort label-3926
SELECT DISTINCT SUM ( + + NULLIF ( + 97, + - 71 + + 0 ) )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT DISTINCT - 31 DIV + 23
----
-1

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - 31 / + 23
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3928
SELECT ALL COALESCE ( + 99, - 77 ), 11 DIV + 10 AS col2
----
99
1

skipif mysql # not compatible
query II rowsort label-3928
SELECT ALL COALESCE ( + 99, - 77 ), 11 / + 10 AS col2
----
99
1

query I rowsort
SELECT ALL 19 * + 26 col2
----
494

onlyif mysql # aggregate syntax: 
query II rowsort label-3930
SELECT - 37 * - 29 AS col1, COALESCE ( - 18, + 51 + MAX( ALL 93 ) ) AS col0
----
1073
-18

skipif mysql # not compatible
query II rowsort label-3930
SELECT - 37 * - 29 AS col1, COALESCE ( - 18, + 51 + MAX ( ALL 93 ) ) AS col0
----
1073
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3931
SELECT - 43 + - 81 - MIN( + 16 ) DIV - 42
----
-124

skipif mysql # not compatible
query I rowsort label-3931
SELECT - 43 + - 81 - MIN ( + 16 ) / - 42
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3932
SELECT ALL CAST( + - 92 AS SIGNED ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL CAST ( + - 92 AS INTEGER ) AS col0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT - 59 * + 53 * + 65 * - + COUNT( * ) AS col0
----
203255

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT - 59 * + 53 * + 65 * - + COUNT ( * ) AS col0
----
203255

query I rowsort
SELECT ALL + 4 + 65 - - 17 AS col2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT + 95 * + 4 col0, - COUNT( * )
----
380
-1

skipif mysql # not compatible
query II rowsort label-3935
SELECT + 95 * + 4 col0, - COUNT ( * )
----
380
-1

query II rowsort
SELECT ALL - 41 + 25 * + 60, ( + + 61 ) AS col2
----
1459
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT - 7 + - - MIN( ALL + 43 ) AS col0
----
36

skipif mysql # not compatible
query I rowsort label-3937
SELECT - 7 + - - MIN ( ALL + 43 ) AS col0
----
36

query I rowsort
SELECT ALL ( - 46 )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3939
SELECT DISTINCT + 96 + NULLIF ( - 12, + CAST( + + 47 AS SIGNED ) + + 78 ) * - + COUNT( * ) * 85 * - - 40 + MAX( ALL + + 45 ) * 13 DIV + COUNT( * ) AS col1
----
41481

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT + 96 + NULLIF ( - 12, + CAST ( + + 47 AS INTEGER ) + + 78 ) * - + COUNT ( * ) * 85 * - - 40 + MAX ( ALL + + 45 ) * 13 / + COUNT ( * ) AS col1
----
41481

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3940
SELECT DISTINCT + 9 + + - MAX( - 88 ) DIV 36
----
11

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT + 9 + + - MAX ( - 88 ) / 36
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT ALL + COUNT( ALL + ( - - 82 ) ) + - 68 + - + COUNT( ALL + 54 ) + 18 DIV + + 53 * 85 * + 30 * + 7 * COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-3941
SELECT ALL + COUNT ( ALL + ( - - 82 ) ) + - 68 + - + COUNT ( ALL + 54 ) + 18 / + + 53 * 85 * + 30 * + 7 * COUNT ( * )
----
-68

query I rowsort
SELECT - 40 col1
----
-40

query I rowsort
SELECT DISTINCT + COALESCE ( + 5, + 44 )
----
5

query I rowsort
SELECT + - 96 + - 85 + - 31 + 3 * - 46 AS col0
----
-350

query I rowsort
SELECT - + 43
----
-43

query I rowsort
SELECT ALL + 87 AS col2
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3947
SELECT DISTINCT 0 DIV - 47
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT 0 / - 47
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT ALL + 0 DIV 24 + - + 26 col0
----
-26

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL + 0 / 24 + - + 26 col0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3949
SELECT DISTINCT ( CAST( + 61 AS SIGNED ) ) * + COUNT( * ) + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3949
SELECT DISTINCT ( CAST ( + 61 AS INTEGER ) ) * + COUNT ( * ) + - COUNT ( * ) AS col1
----
60

query I rowsort
SELECT DISTINCT + + 25 * 7 + 10
----
185

query I rowsort
SELECT ALL - + 45 col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT - + MAX( - 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT - + MAX ( - 97 )
----
97

query I rowsort
SELECT DISTINCT - 47 - + - ( + - 67 ) AS col0
----
-114

query I rowsort
SELECT DISTINCT - - 25 AS col0
----
25

query I rowsort
SELECT + + 25 AS col2
----
25

query I rowsort
SELECT + - 69 AS col1
----
-69

query I rowsort
SELECT 25 * 20 AS col2
----
500

query I rowsort
SELECT 61 * + 8 * + + 83
----
40504

query II rowsort
SELECT ( + 83 ) - - - 99 AS col0, + 92 AS col1
----
-16
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3960
SELECT ALL - COUNT( * ) AS col0, + 17 + - - 99 + - 54 AS col1
----
-1
62

skipif mysql # not compatible
query II rowsort label-3960
SELECT ALL - COUNT ( * ) AS col0, + 17 + - - 99 + - 54 AS col1
----
-1
62

query II rowsort
SELECT ALL - 44 * + 79 * + 24 col0, - 99 AS col0
----
-83424
-99

query I rowsort
SELECT DISTINCT - ( 39 )
----
-39

query I rowsort
SELECT ALL 31 * ( + + 5 )
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT COUNT( * ) * 5
----
5

skipif mysql # not compatible
query I rowsort label-3964
SELECT COUNT ( * ) * 5
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3965
SELECT CAST( NULL AS DECIMAL ) + - 3
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT CAST ( NULL AS REAL ) + - 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT 79 - - MIN( ALL - + 79 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-3966
SELECT 79 - - MIN ( ALL - + 79 ) col1
----
0

query I rowsort
SELECT DISTINCT - 72 + + 8
----
-64

query I rowsort
SELECT - 56 col2
----
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT 95 DIV - - 82 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3969
SELECT 95 / - - 82 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT 69 + + 35 + 7 * + 52 * COUNT( * )
----
468

skipif mysql # not compatible
query I rowsort label-3970
SELECT 69 + + 35 + 7 * + 52 * COUNT ( * )
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL - COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

query I rowsort
SELECT 75 * - + 21
----
-1575

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT ALL + 82 DIV 57 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + 82 / 57 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3974
SELECT DISTINCT - 28 + + 94 * - 3, 47 DIV - CAST( - AVG ( DISTINCT + - NULLIF ( - 11, - + 38 ) ) AS SIGNED ) AS col1
----
-310
4

skipif mysql # not compatible
query II rowsort label-3974
SELECT DISTINCT - 28 + + 94 * - 3, 47 / - CAST ( - AVG ( DISTINCT + - NULLIF ( - 11, - + 38 ) ) AS INTEGER ) AS col1
----
-310
4

query I rowsort
SELECT ALL - 5 + + 24
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT + 92 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-3976
SELECT + 92 * + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT DISTINCT - SUM( DISTINCT 56 ) col1
----
-56

skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - SUM ( DISTINCT 56 ) col1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - MIN( - 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-3978
SELECT - MIN ( - 21 ) col0
----
21

query I rowsort
SELECT + 10 + - 36
----
-26

query I rowsort
SELECT - ( + + 37 )
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3981
SELECT ALL - CAST( NULL AS SIGNED ) + + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 69
----
NULL

query I rowsort
SELECT - 59 - + 62
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT - - ( + - MIN( + 30 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3983
SELECT - - ( + - MIN ( + 30 ) )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT ( SUM( ALL + 81 ) )
----
81

skipif mysql # not compatible
query I rowsort label-3984
SELECT ( SUM ( ALL + 81 ) )
----
81

query II rowsort
SELECT ALL + 78, ( + - 31 ) AS col1
----
78
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3986
SELECT 22 + + 87 + - + 34 DIV + 78 * 87 + - 47 - COUNT( * ) DIV - 60
----
62

skipif mysql # not compatible
query I rowsort label-3986
SELECT 22 + + 87 + - + 34 / + 78 * 87 + - 47 - COUNT ( * ) / - 60
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT ALL - 4 - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-3987
SELECT ALL - 4 - - COUNT ( * )
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3988
SELECT - 39 DIV - MIN( DISTINCT + 37 ) + - - 45
----
46

skipif mysql # not compatible
query I rowsort label-3988
SELECT - 39 / - MIN ( DISTINCT + 37 ) + - - 45
----
46

query I rowsort
SELECT + 66 + NULLIF ( 63, + - 74 ) AS col0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT ( COALESCE ( COUNT( * ), - COUNT( + 22 ) ) ) * + + MIN( - 96 ) * - + 20
----
1920

skipif mysql # not compatible
query I rowsort label-3990
SELECT ( COALESCE ( COUNT ( * ), - COUNT ( + 22 ) ) ) * + + MIN ( - 96 ) * - + 20
----
1920

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT 24 DIV + + 10 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-3991
SELECT 24 / + + 10 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3992
SELECT - 58 DIV - - 9 AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-3992
SELECT - 58 / - - 9 AS col2
----
-6

query I rowsort
SELECT + 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ALL 50 * 9 * + + COUNT( - 85 ) AS col1
----
450

skipif mysql # not compatible
query I rowsort label-3994
SELECT ALL 50 * 9 * + + COUNT ( - 85 ) AS col1
----
450

query II rowsort
SELECT COALESCE ( 30, + 58 ) + + 52, - 46 * 19 AS col0
----
82
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-3996
SELECT 54 + 39 + 82 DIV - - 57
----
94

skipif mysql # not compatible
query I rowsort label-3996
SELECT 54 + 39 + 82 / - - 57
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3997
SELECT ALL COUNT( * ) * - + 54
----
-54

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL COUNT ( * ) * - + 54
----
-54

query I rowsort
SELECT DISTINCT - 92 AS col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL SUM( ALL - 78 ) * + - 95 AS col0
----
7410

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL SUM ( ALL - 78 ) * + - 95 AS col0
----
7410

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + SUM( + 95 ) AS col1
----
95

skipif mysql # not compatible
query I rowsort label-4000
SELECT + SUM ( + 95 ) AS col1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4001
SELECT 86 * + + 83 * + - 76 * COUNT( * ) + - 56 * ( - + 46 ) * - CASE + MIN( + 58 ) WHEN 0 + - + NULLIF ( 50, - 78 + - 91 ) - + - COUNT( * ) + - 48 * + 12 - - 16 * + 16 THEN + 11 WHEN + CAST( NULL AS DECIMAL ) THEN + - 59 ELSE - + CAST( - 32 AS SIGNED ) END * 70 + - 17 + - - 70 DIV + + 92 * - + 80
----
-6312745

skipif mysql # not compatible
query I rowsort label-4001
SELECT 86 * + + 83 * + - 76 * COUNT ( * ) + - 56 * ( - + 46 ) * - CASE + MIN ( + 58 ) WHEN 0 + - + NULLIF ( 50, - 78 + - 91 ) - + - COUNT ( * ) + - 48 * + 12 - - 16 * + 16 THEN + 11 WHEN + CAST ( NULL AS REAL ) THEN + - 59 ELSE - + CAST ( - 32 AS INTEGER ) END * 70 + - 17 + - - 70 / + + 92 * - + 80
----
-6312745

onlyif mysql # aggregate syntax: 
query II rowsort label-4002
SELECT CASE + 56 WHEN 95 * + 83 THEN - + 92 * - 83 WHEN COALESCE ( - + ( - 15 ), NULLIF ( + ( COUNT( * ) ), - AVG ( ALL - - 92 ) ) + - - 3 * COUNT( * ) * - + COUNT( DISTINCT - 3 ) ) THEN NULL ELSE NULL END * - 54, - 17 * - 39 AS col0
----
NULL
663

skipif mysql # not compatible
query II rowsort label-4002
SELECT CASE + 56 WHEN 95 * + 83 THEN - + 92 * - 83 WHEN COALESCE ( - + ( - 15 ), NULLIF ( + ( COUNT ( * ) ), - AVG ( ALL - - 92 ) ) + - - 3 * COUNT ( * ) * - + COUNT ( DISTINCT - 3 ) ) THEN NULL ELSE NULL END * - 54, - 17 * - 39 AS col0
----
NULL
663

query I rowsort
SELECT ALL 84 + + ( 80 ) + + + 45 AS col0
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT + SUM( DISTINCT - + ( + 49 ) ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4004
SELECT + SUM ( DISTINCT - + ( + 49 ) ) AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT ALL 78 * 75 * - + ( CASE + + 30 WHEN + ( + 87 ) + + COUNT( * ) THEN - - CASE + 92 WHEN + MAX( DISTINCT 16 ) * + ( 95 ) * + + SUM( DISTINCT + 10 ) + 80 THEN + 89 WHEN + - NULLIF ( 63, + 28 ) THEN NULL WHEN 11 THEN - + 32 * - 39 ELSE SUM( 83 ) END END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL 78 * 75 * - + ( CASE + + 30 WHEN + ( + 87 ) + + COUNT ( * ) THEN - - CASE + 92 WHEN + MAX ( DISTINCT 16 ) * + ( 95 ) * + + SUM ( DISTINCT + 10 ) + 80 THEN + 89 WHEN + - NULLIF ( 63, + 28 ) THEN NULL WHEN 11 THEN - + 32 * - 39 ELSE SUM ( 83 ) END END )
----
NULL

query I rowsort
SELECT DISTINCT 89 + - 54
----
35

query I rowsort
SELECT ALL 48 + + 5
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4008
SELECT DISTINCT - COUNT( * ) + 7 AS col0, SUM( 8 )
----
6
8

skipif mysql # not compatible
query II rowsort label-4008
SELECT DISTINCT - COUNT ( * ) + 7 AS col0, SUM ( 8 )
----
6
8

query I rowsort
SELECT ALL + 87 * - 69 * 57 AS col0
----
-342171

query I rowsort
SELECT ALL 42 * ( - 41 )
----
-1722

query II rowsort
SELECT 69 - + - 10, 87 AS col1
----
79
87

query I rowsort
SELECT DISTINCT 60 - - 62 - ( - + 47 ) + + 37 * + 9
----
502

query I rowsort
SELECT 11 + + - 27
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4014
SELECT ALL - NULLIF ( 73, + - 64 ) - + - NULLIF ( + 37, - SUM( ALL + 30 ) * - 11 * + 71 * + 35 * + - 37 - - 56 ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-4014
SELECT ALL - NULLIF ( 73, + - 64 ) - + - NULLIF ( + 37, - SUM ( ALL + 30 ) * - 11 * + 71 * + 35 * + - 37 - - 56 ) AS col2
----
-36

query II rowsort
SELECT DISTINCT + 46 * - 59, + 13 AS col0
----
-2714
13

query I rowsort
SELECT + CASE - 11 WHEN 22 - + 15 * - + 23 THEN 67 * - 60 END / - ( - 94 ) * - 88 AS col1
----
NULL

query I rowsort
SELECT - - ( + + 80 ) + - - 34 * 89 - + 55 AS col0
----
3051

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT - MAX( ALL 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-4018
SELECT - MAX ( ALL 87 )
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-4019
SELECT ALL + ( + 75 ), + COUNT( * ) + 8 + - 8 * SUM( DISTINCT 44 ) + + - 42 AS col1
----
75
-385

skipif mysql # not compatible
query II rowsort label-4019
SELECT ALL + ( + 75 ), + COUNT ( * ) + 8 + - 8 * SUM ( DISTINCT 44 ) + + - 42 AS col1
----
75
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - + 94 * CASE 17 WHEN - + MIN( - 54 ) + - - 77 THEN - 95 + + 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT - + 94 * CASE 17 WHEN - + MIN ( - 54 ) + - - 77 THEN - 95 + + 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4021
SELECT ALL CAST( - + COUNT( * ) AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL CAST ( - + COUNT ( * ) AS INTEGER ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL + 72 * + MIN( 92 )
----
6624

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + 72 * + MIN ( 92 )
----
6624

query I rowsort
SELECT - 33 + 51 + - 86 col0
----
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT + COUNT( DISTINCT - - 82 ) AS col2, + ( + 1 ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-4024
SELECT + COUNT ( DISTINCT - - 82 ) AS col2, + ( + 1 ) AS col0
----
1
1

query I rowsort
SELECT - 77 * - 68 AS col2
----
5236

query I rowsort
SELECT + NULLIF ( NULLIF ( - 60, - 73 ), - 94 * - + 84 ) * - 65 AS col0
----
3900

query I rowsort
SELECT ALL + COALESCE ( + - 94, + 46 ) AS col0
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4028
SELECT DISTINCT + 62 * + 37 * + 14 * + - 22 DIV + - CAST( - COUNT( * ) AS SIGNED ) col1
----
-706552

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + 62 * + 37 * + 14 * + - 22 / + - CAST ( - COUNT ( * ) AS INTEGER ) col1
----
-706552

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - COUNT( * ) * + 23
----
-23

skipif mysql # not compatible
query I rowsort label-4029
SELECT - COUNT ( * ) * + 23
----
-23

query I rowsort
SELECT ALL + ( + 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT NULLIF ( + + COUNT( * ), + 97 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4031
SELECT NULLIF ( + + COUNT ( * ), + 97 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + ( MIN( - + 42 ) ) * - - 97 AS col2
----
-4074

skipif mysql # not compatible
query I rowsort label-4032
SELECT + ( MIN ( - + 42 ) ) * - - 97 AS col2
----
-4074

query I rowsort
SELECT ALL 21 * + - 52 + + - 6 col0
----
-1098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT + CAST( NULL AS SIGNED ) + + 48 / + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT + CAST ( NULL AS INTEGER ) + + 48 / + 13
----
NULL

query I rowsort
SELECT DISTINCT 43 * + 6 AS col0
----
258

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL + 52 * 60 * - COUNT( * ) + + 16 AS col2
----
-3104

skipif mysql # not compatible
query I rowsort label-4036
SELECT ALL + 52 * 60 * - COUNT ( * ) + + 16 AS col2
----
-3104

query I rowsort
SELECT DISTINCT - 0 * + 16 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL - CASE + 54 WHEN - + 65 * CASE - 19 WHEN COUNT( * ) / - 35 THEN - + 73 * 32 + CASE - 62 WHEN + COUNT( * ) THEN - + 86 END + + + 82 * + 83 WHEN - + ( + - 86 ) THEN + 87 / - - 55 END / - 67 * - 33 THEN NULL WHEN + + 54 THEN NULL ELSE 92 END * 58 - + + 29 + + - 50 * - + 59 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL - CASE + 54 WHEN - + 65 * CASE - 19 WHEN COUNT ( * ) / - 35 THEN - + 73 * 32 + CASE - 62 WHEN + COUNT ( * ) THEN - + 86 END + + + 82 * + 83 WHEN - + ( + - 86 ) THEN + 87 / - - 55 END / - 67 * - 33 THEN NULL WHEN + + 54 THEN NULL ELSE 92 END * 58 - + + 29 + + - 50 * - + 59 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT - COALESCE ( - MAX( - 90 ), + + COUNT( * ) + + + 64 ) + - 71 AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-4039
SELECT - COALESCE ( - MAX ( - 90 ), + + COUNT ( * ) + + + 64 ) + - 71 AS col2
----
-161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT + 89 - - COUNT( * ) + 65 + + 12 DIV - + 21 AS col0
----
155

skipif mysql # not compatible
query I rowsort label-4040
SELECT + 89 - - COUNT ( * ) + 65 + + 12 / - + 21 AS col0
----
155

query II rowsort
SELECT ALL 19, + 47 + - 13 AS col0
----
19
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT MAX( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-4042
SELECT MAX ( - 95 )
----
-95

query I rowsort
SELECT + ( 52 ) * 20
----
1040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT - CAST( 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4044
SELECT - CAST ( 56 AS INTEGER ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - CASE MAX( ALL + 76 ) WHEN 18 / 3 + + 71 * - 36 THEN NULL WHEN 52 + + 17 * 39 THEN + 31 * MAX( DISTINCT 35 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4045
SELECT - CASE MAX ( ALL + 76 ) WHEN 18 / 3 + + 71 * - 36 THEN NULL WHEN 52 + + 17 * 39 THEN + 31 * MAX ( DISTINCT 35 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT DISTINCT COUNT( * ) - 17
----
-16

skipif mysql # not compatible
query I rowsort label-4046
SELECT DISTINCT COUNT ( * ) - 17
----
-16

query I rowsort
SELECT DISTINCT 36 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT ALL COALESCE ( 15, 66 - + CAST( 73 AS SIGNED ) )
----
15

skipif mysql # not compatible
query I rowsort label-4048
SELECT ALL COALESCE ( 15, 66 - + CAST ( 73 AS INTEGER ) )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 22 AS col2
----
NULL

query I rowsort
SELECT + 34 + - 60
----
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT + COUNT( - 32 ) DIV NULLIF ( + 89, + ( 55 ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4051
SELECT + COUNT ( - 32 ) / NULLIF ( + 89, + ( 55 ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT + 11 + COUNT( * ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-4052
SELECT + 11 + COUNT ( * ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT ALL CAST( NULL AS SIGNED ) * + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT ALL CAST ( NULL AS INTEGER ) * + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT ALL COUNT( DISTINCT + 29 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL COUNT ( DISTINCT + 29 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT + 4 - COUNT( * ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4055
SELECT + 4 - COUNT ( * ) AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4056
SELECT + 63 DIV - SUM( ALL + 62 * + CAST( 56 * 23 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT + 63 / - SUM ( ALL + 62 * + CAST ( 56 * 23 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT - 69 DIV - 31 col2
----
2

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 69 / - 31 col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL - CAST( NULL AS SIGNED ) + + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - CAST ( NULL AS INTEGER ) + + 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT + 80 + - COUNT( 49 + + 57 * - 23 ) * - 99
----
179

skipif mysql # not compatible
query I rowsort label-4059
SELECT + 80 + - COUNT ( 49 + + 57 * - 23 ) * - 99
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT ALL 86 * CAST( 73 * - 29 AS SIGNED ) AS col0
----
-182062

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL 86 * CAST ( 73 * - 29 AS INTEGER ) AS col0
----
-182062

query I rowsort
SELECT ALL + 58 + 93
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4062
SELECT + MAX( ALL + 49 ) + 20
----
69

skipif mysql # not compatible
query I rowsort label-4062
SELECT + MAX ( ALL + 49 ) + 20
----
69

query I rowsort
SELECT ALL ( 61 ) AS col1
----
61

query I rowsort
SELECT DISTINCT ( + 8 ) + + 39 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT ALL - 85 + - ( SUM( - 16 ) )
----
-69

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL - 85 + - ( SUM ( - 16 ) )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4066
SELECT ALL - 35 DIV + 71 + ( 59 ) col2
----
59

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - 35 / + 71 + ( 59 ) col2
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT - 17 DIV 11 + 98
----
97

skipif mysql # not compatible
query I rowsort label-4067
SELECT - 17 / 11 + 98
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4068
SELECT + 30 * + 84 - CAST( 70 + - 52 AS SIGNED ) AS col1
----
2502

skipif mysql # not compatible
query I rowsort label-4068
SELECT + 30 * + 84 - CAST ( 70 + - 52 AS INTEGER ) AS col1
----
2502

query I rowsort
SELECT + 97 + + 5
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-4070
SELECT 22 DIV 33 - 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-4070
SELECT 22 / 33 - 66 col1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4071
SELECT ALL 48 DIV 25 + + 57 DIV - 60 col2
----
1

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 48 / 25 + + 57 / - 60 col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4072
SELECT CAST( 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-4072
SELECT CAST ( 20 AS INTEGER )
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT - CAST( - 15 AS SIGNED ) + 9 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-4073
SELECT - CAST ( - 15 AS INTEGER ) + 9 AS col2
----
24

query I rowsort
SELECT DISTINCT + 13 * - 34 AS col2
----
-442

query I rowsort
SELECT COALESCE ( 96, + 60 ) * 19 + + 80 AS col2
----
1904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT - CAST( NULL AS SIGNED ) + 58 * - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT - CAST ( NULL AS INTEGER ) + 58 * - 23 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 14 * 92 col1
----
1288

query I rowsort
SELECT ( 36 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-4079
SELECT - 7 DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-4079
SELECT - 7 / - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT 23 * 50 + NULLIF ( COUNT( * ), + 24 )
----
1151

skipif mysql # not compatible
query I rowsort label-4080
SELECT 23 * 50 + NULLIF ( COUNT ( * ), + 24 )
----
1151

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT 51 * - NULLIF ( + NULLIF ( 10, + MAX( + 63 ) ), + 47 ) + - COUNT( * ) AS col2
----
-511

skipif mysql # not compatible
query I rowsort label-4081
SELECT 51 * - NULLIF ( + NULLIF ( 10, + MAX ( + 63 ) ), + 47 ) + - COUNT ( * ) AS col2
----
-511

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT ( SUM( 51 ) ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-4082
SELECT ( SUM ( 51 ) ) AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT - COALESCE ( + 7, + COUNT( * ), 54 ) * - 44 + 15 * 62
----
1238

skipif mysql # not compatible
query I rowsort label-4083
SELECT - COALESCE ( + 7, + COUNT ( * ), 54 ) * - 44 + 15 * 62
----
1238

query I rowsort
SELECT ALL + COALESCE ( 63, ( + ( - 49 ) ) )
----
63

query I rowsort
SELECT ( + 43 )
----
43

query I rowsort
SELECT + CASE 42 WHEN 46 / + 79 + + 22 THEN - 46 + - 29 ELSE + 88 * + 27 END AS col1
----
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT 23 + + COUNT( * ) * + 81
----
104

skipif mysql # not compatible
query I rowsort label-4087
SELECT 23 + + COUNT ( * ) * + 81
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-4088
SELECT 94 DIV - 51
----
-1

skipif mysql # not compatible
query I rowsort label-4088
SELECT 94 / - 51
----
-1

query I rowsort
SELECT ALL - ( - 45 ) * 37 col1
----
1665

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT ALL - + COUNT( 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4090
SELECT ALL - + COUNT ( 70 ) AS col0
----
-1

query I rowsort
SELECT - 38 + 48 AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT MAX( 52 )
----
52

skipif mysql # not compatible
query I rowsort label-4092
SELECT MAX ( 52 )
----
52

query I rowsort
SELECT + 24 * 33 + + 30 AS col0
----
822

query I rowsort
SELECT 20 * - 24
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT SUM( + 35 ) + + 73
----
108

skipif mysql # not compatible
query I rowsort label-4095
SELECT SUM ( + 35 ) + + 73
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT DISTINCT + + 3 * + MIN( 66 * + 99 ) AS col1
----
19602

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + + 3 * + MIN ( 66 * + 99 ) AS col1
----
19602

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT - CASE - 65 WHEN - 27 + - COUNT( * ) THEN - AVG ( 15 ) * 50 + + 60 WHEN 0 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT - CASE - 65 WHEN - 27 + - COUNT ( * ) THEN - AVG ( 15 ) * 50 + + 60 WHEN 0 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT + 88 + 94
----
182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4099
SELECT CAST( NULL AS SIGNED ) + + COUNT( NULLIF ( - 55, 11 - - 76 * 44 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT CAST ( NULL AS INTEGER ) + + COUNT ( NULLIF ( - 55, 11 - - 76 * 44 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT COUNT( - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4100
SELECT COUNT ( - 70 )
----
1

query I rowsort
SELECT - 55 + + 42
----
-13

query I rowsort
SELECT - ( - 93 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT - 68 * SUM( - 53 )
----
3604

skipif mysql # not compatible
query I rowsort label-4103
SELECT - 68 * SUM ( - 53 )
----
3604

query I rowsort
SELECT ALL 7 + + 96
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT ALL 51 + COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL 51 + COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - - COUNT( 5 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4106
SELECT - - COUNT ( 5 ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4107
SELECT CAST( + 56 AS SIGNED ) + 93 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-4107
SELECT CAST ( + 56 AS INTEGER ) + 93 AS col1
----
149

query I rowsort
SELECT ALL 9 + + + ( + 80 ) * - 37 AS col0
----
-2951

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT 89 + - - COUNT( * ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4109
SELECT 89 + - - COUNT ( * ) AS col0
----
90

query I rowsort
SELECT 60 * + + 29
----
1740

query I rowsort
SELECT 95 * - - 96
----
9120

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL MAX( DISTINCT 6 ) + 73 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL MAX ( DISTINCT 6 ) + 73 AS col0
----
79

query I rowsort
SELECT DISTINCT - 73 + - 80 * 77
----
-6233

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + COALESCE ( + 17, SUM( ALL + 5 ) ) - + 28 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + COALESCE ( + 17, SUM ( ALL + 5 ) ) - + 28 AS col2
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT ALL - 55 DIV - 32
----
1

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - 55 / - 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT SUM( + 30 ) * 54 AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-4116
SELECT SUM ( + 30 ) * 54 AS col1
----
1620

query I rowsort
SELECT DISTINCT - NULLIF ( + 54, - CASE 36 WHEN - 21 THEN - 86 * 78 + - 43 WHEN - 84 * ( 41 * - 36 ) + 11 THEN NULL ELSE NULL END ) * 16
----
-864

query I rowsort
SELECT 98 * - - 44
----
4312

query I rowsort
SELECT + 43 * + 19 + + 0 AS col1
----
817

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL - CASE - - 3 WHEN + 12 THEN 31 + COUNT( DISTINCT + 16 ) WHEN COALESCE ( + CASE + 10 WHEN 49 THEN 68 END, + 3, + COUNT( * ) ) * 51 THEN NULL WHEN 84 * 87 + - 89 * - 70 THEN 53 / COUNT( * ) - COALESCE ( 38, - 56 ) WHEN 10 THEN NULL END - + COUNT( 63 + 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - CASE - - 3 WHEN + 12 THEN 31 + COUNT ( DISTINCT + 16 ) WHEN COALESCE ( + CASE + 10 WHEN 49 THEN 68 END, + 3, + COUNT ( * ) ) * 51 THEN NULL WHEN 84 * 87 + - 89 * - 70 THEN 53 / COUNT ( * ) - COALESCE ( 38, - 56 ) WHEN 10 THEN NULL END - + COUNT ( 63 + 9 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT 85 * + COUNT( DISTINCT - 32 )
----
85

skipif mysql # not compatible
query I rowsort label-4121
SELECT 85 * + COUNT ( DISTINCT - 32 )
----
85

query I rowsort
SELECT 93 col0
----
93

query I rowsort
SELECT + 62 col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4124
SELECT ALL - CASE - + 0 WHEN 14 + - 16 * + CAST( + 72 AS DECIMAL ) THEN 99 WHEN MAX( DISTINCT 84 ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL - CASE - + 0 WHEN 14 + - 16 * + CAST ( + 72 AS REAL ) THEN 99 WHEN MAX ( DISTINCT 84 ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT ALL - COUNT( - 30 ) * + 67
----
-67

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL - COUNT ( - 30 ) * + 67
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4126
SELECT 4 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT 4 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT ALL 59 * - + SUM( - 23 )
----
1357

skipif mysql # not compatible
query I rowsort label-4127
SELECT ALL 59 * - + SUM ( - 23 )
----
1357

query I rowsort
SELECT 10 * - COALESCE ( + 32, 44 ) col2
----
-320

query I rowsort
SELECT - 10 * ( 45 ) - - ( - 0 ) - 0 * 82
----
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL - - 14 * + + MAX( - ( - CAST( - 32 AS SIGNED ) ) ) + 9
----
-439

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL - - 14 * + + MAX ( - ( - CAST ( - 32 AS INTEGER ) ) ) + 9
----
-439

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT - ( - 84 ) DIV + 55
----
1

skipif mysql # not compatible
query I rowsort label-4131
SELECT - ( - 84 ) / + 55
----
1

query I rowsort
SELECT 76 * - + COALESCE ( + ( 88 ), 73 + + 58, + ( + 82 ) )
----
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-4133
SELECT - 94 + - COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-4133
SELECT - 94 + - COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT MAX( - 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-4134
SELECT MAX ( - 71 )
----
-71

query I rowsort
SELECT ALL - ( 83 )
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT ALL - COUNT( + 94 ) + - 42
----
-43

skipif mysql # not compatible
query I rowsort label-4136
SELECT ALL - COUNT ( + 94 ) + - 42
----
-43

query I rowsort
SELECT ALL + - 1 + + - 18 AS col0
----
-19

query I rowsort
SELECT - - 45
----
45

query I rowsort
SELECT + 43 + + 33
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT ALL - 41 DIV + 48
----
0

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL - 41 / + 48
----
0

query I rowsort
SELECT DISTINCT - 83 + - - 19 AS col1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4142
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + NULLIF ( + COUNT( 25 ), SUM( - 83 ) ) / + CASE 74 * COUNT( * ) + 54 * CAST( - CAST( NULL AS SIGNED ) * ( - 27 ) AS SIGNED ) WHEN 21 THEN 92 * 60 WHEN CASE - 13 WHEN - COUNT( * ) * - 64 THEN + ( 76 ) WHEN - 12 + + 5 THEN NULL END THEN NULL ELSE + 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + NULLIF ( + COUNT ( 25 ), SUM ( - 83 ) ) / + CASE 74 * COUNT ( * ) + 54 * CAST ( - CAST ( NULL AS INTEGER ) * ( - 27 ) AS INTEGER ) WHEN 21 THEN 92 * 60 WHEN CASE - 13 WHEN - COUNT ( * ) * - 64 THEN + ( 76 ) WHEN - 12 + + 5 THEN NULL END THEN NULL ELSE + 81 END
----
NULL

query I rowsort
SELECT ALL ( + + 45 ) * + 73 AS col2
----
3285

query I rowsort
SELECT ALL - + 9 + - 27 + - 36 * 38 AS col2
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT DISTINCT + MIN( 91 ) + - 99 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-4145
SELECT DISTINCT + MIN ( 91 ) + - 99 AS col0
----
-8

query I rowsort
SELECT - 35 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT + COUNT( * ) + 8 - - 23 * 13 AS col2
----
308

skipif mysql # not compatible
query I rowsort label-4147
SELECT + COUNT ( * ) + 8 - - 23 * 13 AS col2
----
308

onlyif mysql # DIV for integer division: 
query I rowsort label-4148
SELECT ( + 65 ) DIV + 9 AS col1
----
7

skipif mysql # not compatible
query I rowsort label-4148
SELECT ( + 65 ) / + 9 AS col1
----
7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4149
SELECT DISTINCT CAST( - CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT CAST ( - CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 34 * + - 56 * 21
----
39984

query I rowsort
SELECT + 32 + + + 14 AS col0
----
46

query I rowsort
SELECT + 2 * - + 35 AS col1
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4153
SELECT - 71 AS col2, - CASE + + 61 WHEN COUNT( * ) THEN - 83 ELSE NULL END + CAST( + 99 AS SIGNED ) * - COALESCE ( 82 + - 12 * + 75, + MIN( - 97 ) )
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-4153
SELECT - 71 AS col2, - CASE + + 61 WHEN COUNT ( * ) THEN - 83 ELSE NULL END + CAST ( + 99 AS INTEGER ) * - COALESCE ( 82 + - 12 * + 75, + MIN ( - 97 ) )
----
-71
NULL

query II rowsort
SELECT 73 col2, - 74 AS col2
----
73
-74

query I rowsort
SELECT ALL 85 + + - 18 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT COUNT( 20 ) + + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4156
SELECT COUNT ( 20 ) + + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT DISTINCT COUNT( DISTINCT 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT COUNT ( DISTINCT 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT 69 + 63 * + NULLIF ( + 8, - 70 / - 18 + + COALESCE ( + 63, - 37 / - CASE + 78 * 43 WHEN - COUNT( * ) THEN 94 END ) )
----
573

skipif mysql # not compatible
query I rowsort label-4158
SELECT 69 + 63 * + NULLIF ( + 8, - 70 / - 18 + + COALESCE ( + 63, - 37 / - CASE + 78 * 43 WHEN - COUNT ( * ) THEN 94 END ) )
----
573

query II rowsort
SELECT DISTINCT 30, - 64 AS col0
----
30
-64

query I rowsort
SELECT CASE 85 WHEN + + CASE WHEN NULL NOT BETWEEN NULL AND - 17 THEN 73 ELSE NULL END THEN + NULLIF ( ( 52 ), - 34 * + 87 + 76 ) WHEN 57 + + 10 THEN NULL ELSE NULL END + - 87 * 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4161
SELECT ALL MAX( ALL - CAST( NULL AS DECIMAL ) ) - - 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL MAX ( ALL - CAST ( NULL AS REAL ) ) - - 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL 14 * - + COUNT( * ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL 14 * - + COUNT ( * ) AS col1
----
-14

query I rowsort
SELECT 88 + + 47 AS col2
----
135

query I rowsort
SELECT DISTINCT 84 - + + 55
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT + COUNT( DISTINCT + + CASE - + 58 WHEN - 80 THEN NULL WHEN - 8 THEN - ( - 89 ) END )
----
0

skipif mysql # not compatible
query I rowsort label-4165
SELECT + COUNT ( DISTINCT + + CASE - + 58 WHEN - 80 THEN NULL WHEN - 8 THEN - ( - 89 ) END )
----
0

query I rowsort
SELECT - 83 * 23 - 81
----
-1990

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT 96 DIV + 8 + + - 94
----
-82

skipif mysql # not compatible
query I rowsort label-4167
SELECT 96 / + 8 + + - 94
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT + NULLIF ( + 21, 18 * COUNT( * ) ) * + COUNT( * ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4168
SELECT + NULLIF ( + 21, 18 * COUNT ( * ) ) * + COUNT ( * ) AS col0
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4169
SELECT + 7 * - - CAST( NULL AS SIGNED ) * + - 93 * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4169
SELECT + 7 * - - CAST ( NULL AS INTEGER ) * + - 93 * 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT DISTINCT COUNT( * ) * - ( + + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-4170
SELECT DISTINCT COUNT ( * ) * - ( + + 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4171
SELECT CAST( 6 AS SIGNED ) * 81 + ( 27 + 43 * + ( 53 DIV NULLIF ( 42, 81 DIV + 11 + 69 * 44 ) + + CAST( 21 AS SIGNED ) DIV 62 ) ) * 86
----
6506

skipif mysql # not compatible
query I rowsort label-4171
SELECT CAST ( 6 AS INTEGER ) * 81 + ( 27 + 43 * + ( 53 / NULLIF ( 42, 81 / + 11 + 69 * 44 ) + + CAST ( 21 AS INTEGER ) / 62 ) ) * 86
----
6506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4172
SELECT - NULLIF ( + COUNT( * ), - AVG ( ALL ( 57 ) ) - CAST( + COUNT( * ) AS SIGNED ) * ( - CAST( 0 AS SIGNED ) ) ) DIV - SUM( DISTINCT 14 - NULLIF ( - 24 - 4, 57 + - 82 * - 94 ) * + 77 ) + + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4172
SELECT - NULLIF ( + COUNT ( * ), - AVG ( ALL ( 57 ) ) - CAST ( + COUNT ( * ) AS INTEGER ) * ( - CAST ( 0 AS INTEGER ) ) ) / - SUM ( DISTINCT 14 - NULLIF ( - 24 - 4, 57 + - 82 * - 94 ) * + 77 ) + + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL + SUM( - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL + SUM ( - 40 )
----
-40

query I rowsort
SELECT + 71 * + 73
----
5183

query I rowsort
SELECT + 30 + + 34 AS col1
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT ALL + 84, - 7 + COUNT( * ) col1
----
84
-6

skipif mysql # not compatible
query II rowsort label-4176
SELECT ALL + 84, - 7 + COUNT ( * ) col1
----
84
-6

query I rowsort
SELECT + 47 * - 77
----
-3619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT - 38 * - 86 + CAST( NULL AS SIGNED ) * + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT - 38 * - 86 + CAST ( NULL AS INTEGER ) * + 48 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4179
SELECT - COALESCE ( NULLIF ( 16, - 40 ), + 86, 12 ) * 73 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4179
SELECT - COALESCE ( NULLIF ( 16, - 40 ), + 86, 12 ) * 73 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT SUM( DISTINCT - + ( - 76 ) )
----
76

skipif mysql # not compatible
query I rowsort label-4180
SELECT SUM ( DISTINCT - + ( - 76 ) )
----
76

query I rowsort
SELECT - 70 * + 97 - ( 35 ) * + 99 + 38 * 14
----
-9723

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT + 87 * 69 + CASE 5 WHEN - 88 + + COUNT( * ) THEN - 23 WHEN 90 * - 33 THEN 5 * 53 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT + 87 * 69 + CASE 5 WHEN - 88 + + COUNT ( * ) THEN - 23 WHEN 90 * - 33 THEN 5 * 53 END
----
NULL

query I rowsort
SELECT - 57 * - - 82 * + 82 AS col1
----
-383268

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - + SUM( DISTINCT 84 ) * + ( 30 ) + 82 + 22
----
-2416

skipif mysql # not compatible
query I rowsort label-4184
SELECT - + SUM ( DISTINCT 84 ) * + ( 30 ) + 82 + 22
----
-2416

onlyif mysql # aggregate syntax: 
query II rowsort label-4185
SELECT + + 83, SUM( + ( 16 ) ) * 39 AS col1
----
83
624

skipif mysql # not compatible
query II rowsort label-4185
SELECT + + 83, SUM ( + ( 16 ) ) * 39 AS col1
----
83
624

query I rowsort
SELECT ALL + - 84
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4187
SELECT + - 34 + 12 * 25 DIV CAST( CASE - 42 WHEN + 9 * + 57 THEN + 19 * + 66 WHEN + CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE - COUNT( DISTINCT + 49 ) * 68 END AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-4187
SELECT + - 34 + 12 * 25 / CAST ( CASE - 42 WHEN + 9 * + 57 THEN + 19 * + 66 WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE - COUNT ( DISTINCT + 49 ) * 68 END AS INTEGER )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-4188
SELECT DISTINCT - - 36 * + - 30 + COALESCE ( - 52, + 66 ) DIV 31 AS col2
----
-1081

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT - - 36 * + - 30 + COALESCE ( - 52, + 66 ) / 31 AS col2
----
-1081

query II rowsort
SELECT ALL + + 67 AS col0, + 14 AS col1
----
67
14

query I rowsort
SELECT ALL - 53 + 9 AS col1
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL COALESCE ( - 78, - CAST( 84 AS SIGNED ), 67 * 32 + SUM( 24 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL COALESCE ( - 78, - CAST ( 84 AS INTEGER ), 67 * 32 + SUM ( 24 ) )
----
-78

query I rowsort
SELECT - NULLIF ( 22, 81 / + 62 + - 93 )
----
-22

query I rowsort
SELECT ALL + + ( - 6 ) + 94 * 8
----
746

query I rowsort
SELECT DISTINCT + + 44 * + 19 * - 58 * 38
----
-1842544

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT - 73 + 99 * - COUNT( * ) * 52
----
-5221

skipif mysql # not compatible
query I rowsort label-4195
SELECT - 73 + 99 * - COUNT ( * ) * 52
----
-5221

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4196
SELECT - - CAST( NULL AS SIGNED ) * 60 * + 48 / COUNT( + 34 * 7 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT - - CAST ( NULL AS INTEGER ) * 60 * + 48 / COUNT ( + 34 * 7 ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4197
SELECT - + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4197
SELECT - + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - 0 + - 72 * COALESCE ( 27, + 59, NULLIF ( + COUNT( * ), - 52 / - ( 70 ) ) ) + + 57 AS col0
----
-1887

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 0 + - 72 * COALESCE ( 27, + 59, NULLIF ( + COUNT ( * ), - 52 / - ( 70 ) ) ) + + 57 AS col0
----
-1887

query I rowsort
SELECT + COALESCE ( + + 23, - + 42 - 37, + 74 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT - COALESCE ( - + 43, - COUNT( * ) + 24, + 33 + 9 ) * 72 AS col0
----
3096

skipif mysql # not compatible
query I rowsort label-4200
SELECT - COALESCE ( - + 43, - COUNT ( * ) + 24, + 33 + 9 ) * 72 AS col0
----
3096

query I rowsort
SELECT DISTINCT - 9 - + 48
----
-57

query I rowsort
SELECT - 26 - 62
----
-88

query I rowsort
SELECT ALL ( 23 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT ALL NULLIF ( + 25, - + CAST( NULL AS SIGNED ) / 61 )
----
25

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL NULLIF ( + 25, - + CAST ( NULL AS INTEGER ) / 61 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT - CAST( NULL AS SIGNED ) * - + 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT - CAST ( NULL AS INTEGER ) * - + 66 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 9 - + + 71
----
-80

query I rowsort
SELECT - 37 AS col2
----
-37

query I rowsort
SELECT ALL ( + 77 ) AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - 83 * - - 91 * MAX( - 9 ) * + 44 AS col2
----
2990988

skipif mysql # not compatible
query I rowsort label-4209
SELECT DISTINCT - 83 * - - 91 * MAX ( - 9 ) * + 44 AS col2
----
2990988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4210
SELECT - MAX( CAST( NULL AS SIGNED ) ) * 36 * 72 / - ( - MAX( - 36 ) ) - - 13 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) * 36 * 72 / - ( - MAX ( - 36 ) ) - - 13 AS col0
----
NULL

query I rowsort
SELECT - NULLIF ( 73, 6 ) AS col1
----
-73

query I rowsort
SELECT ALL + 92 * - 56 * + - ( 96 )
----
494592

query I rowsort
SELECT ALL + 75 col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4214
SELECT DISTINCT 3 DIV NULLIF ( - 66, + 93 * + 46 ) * + COUNT( * ) + + 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT 3 / NULLIF ( - 66, + 93 * + 46 ) * + COUNT ( * ) + + 76 AS col0
----
76

query I rowsort
SELECT ( + 0 ) AS col2
----
0

query I rowsort
SELECT - 97 * - NULLIF ( - 57, 32 ) + 11
----
-5518

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT + NULLIF ( - 54, + 34 - + 4 * NULLIF ( - 49 * COUNT( * ) + - 27, - COUNT( DISTINCT + 37 ) ) ) * + 81 + + 33 * COUNT( * )
----
-4341

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + NULLIF ( - 54, + 34 - + 4 * NULLIF ( - 49 * COUNT ( * ) + - 27, - COUNT ( DISTINCT + 37 ) ) ) * + 81 + + 33 * COUNT ( * )
----
-4341

query I rowsort
SELECT + - 5 AS col0
----
-5

query I rowsort
SELECT + NULLIF ( + - 34, + 94 / - - 44 * 25 + 16 / + 54 ) AS col0
----
-34

query I rowsort
SELECT + 59 * + 86 AS col2
----
5074

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + SUM( - 62 ) * + 9
----
-558

skipif mysql # not compatible
query I rowsort label-4221
SELECT + SUM ( - 62 ) * + 9
----
-558

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL + + NULLIF ( - - SUM( DISTINCT - - 20 ), - - CASE - ( - COUNT( * ) ) WHEN 74 - CASE 51 WHEN 91 THEN + 36 * + 42 ELSE NULL END THEN + 67 END * ( COUNT( DISTINCT + 21 ) * 62 ) ) * - 20 AS col2
----
-400

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + + NULLIF ( - - SUM ( DISTINCT - - 20 ), - - CASE - ( - COUNT ( * ) ) WHEN 74 - CASE 51 WHEN 91 THEN + 36 * + 42 ELSE NULL END THEN + 67 END * ( COUNT ( DISTINCT + 21 ) * 62 ) ) * - 20 AS col2
----
-400

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT - - 97 * - + AVG ( DISTINCT + 33 ) * + 1 * 26 + - CASE 23 WHEN 61 / + COUNT( * ) THEN + SUM( - 38 ) WHEN + 41 THEN NULL END + COUNT( DISTINCT + 96 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - - 97 * - + AVG ( DISTINCT + 33 ) * + 1 * 26 + - CASE 23 WHEN 61 / + COUNT ( * ) THEN + SUM ( - 38 ) WHEN + 41 THEN NULL END + COUNT ( DISTINCT + 96 ) AS col1
----
NULL

query I rowsort
SELECT + - 5 - - 70 * - + 8 + NULLIF ( 75, - 10 )
----
-490

query I rowsort
SELECT DISTINCT + + 31 * - 34 + + 14 AS col1
----
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT ALL - - 65 * - MAX( - 88 ) + 46 * 72
----
9032

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - - 65 * - MAX ( - 88 ) + 46 * 72
----
9032

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT + SUM( + 9 ) col2
----
9

skipif mysql # not compatible
query I rowsort label-4227
SELECT + SUM ( + 9 ) col2
----
9

query I rowsort
SELECT DISTINCT + 5 * + 70 + - + 7 + 74 AS col0
----
417

query I rowsort
SELECT - COALESCE ( - 11, + NULLIF ( - 69, 5 ) ) AS col2
----
11

query I rowsort
SELECT ALL 29 * - - 50 * - 38 + - - 95 - + 54
----
-55059

query I rowsort
SELECT + - 61 * COALESCE ( + 89, - - 82 * 17 ) * + 16 AS col0
----
-86864

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4232
SELECT DISTINCT + 50 * - 74 - 43 + + COALESCE ( - 52, 22 + 91 DIV CAST( - AVG ( DISTINCT - 5 ) AS SIGNED ) ) + 69
----
-3726

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + 50 * - 74 - 43 + + COALESCE ( - 52, 22 + 91 / CAST ( - AVG ( DISTINCT - 5 ) AS INTEGER ) ) + 69
----
-3726

query I rowsort
SELECT - + CASE + - 85 WHEN - 71 THEN + 24 + - COALESCE ( 89, + 90 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT + + COUNT( * ) + - - 66 + NULLIF ( 90, 69 * AVG ( ALL - 1 ) ) * ( - 82 )
----
-7313

skipif mysql # not compatible
query I rowsort label-4234
SELECT + + COUNT ( * ) + - - 66 + NULLIF ( 90, 69 * AVG ( ALL - 1 ) ) * ( - 82 )
----
-7313

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT SUM( ALL 58 )
----
58

skipif mysql # not compatible
query I rowsort label-4235
SELECT SUM ( ALL 58 )
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4236
SELECT ALL 50 * - - MAX( + - 27 ) AS col1, + ( + 54 )
----
-1350
54

skipif mysql # not compatible
query II rowsort label-4236
SELECT ALL 50 * - - MAX ( + - 27 ) AS col1, + ( + 54 )
----
-1350
54

query I rowsort
SELECT ALL 9 - 68 AS col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4238
SELECT DISTINCT CAST( 24 AS SIGNED )
----
24

skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT CAST ( 24 AS INTEGER )
----
24

query I rowsort
SELECT - 38 - - + 13 col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT ALL + 69 * - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-4240
SELECT ALL + 69 * - COUNT ( * )
----
-69

query I rowsort
SELECT + NULLIF ( + 36, - - 53 * 69 - - 0 * 53 ) + + NULLIF ( 22, - 84 * - 94 ) AS col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT COUNT( ALL + - 6 ) + + CASE - COALESCE ( 38, + 31 / 71, COALESCE ( + AVG ( + ( 56 ) ), 50, - 90 ) / + 45 ) WHEN + 68 THEN NULL WHEN 48 + + 31 THEN 92 ELSE NULL END + + 94 * 94 * ( 61 * + 2 - - 0 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4242
SELECT COUNT ( ALL + - 6 ) + + CASE - COALESCE ( 38, + 31 / 71, COALESCE ( + AVG ( + ( 56 ) ), 50, - 90 ) / + 45 ) WHEN + 68 THEN NULL WHEN 48 + + 31 THEN 92 ELSE NULL END + + 94 * 94 * ( 61 * + 2 - - 0 ) AS col2
----
NULL

query I rowsort
SELECT 88 * - + 33 * - - 9
----
-26136

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT COUNT( * ) * + + ( 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-4244
SELECT COUNT ( * ) * + + ( 37 ) AS col2
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT DISTINCT + ( - NULLIF ( + ( 76 ), - 79 ) ) DIV - 16
----
4

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT + ( - NULLIF ( + ( 76 ), - 79 ) ) / - 16
----
4

query I rowsort
SELECT ALL - 6 * + + 15 * 16
----
-1440

query I rowsort
SELECT 13 + + - 39
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL - 33 + 64 / + - 21 + + + 55 + + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - 33 + 64 / + - 21 + + + 55 + + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT 23 + - CAST( 87 AS SIGNED ) + - + COALESCE ( ( + 52 ), + ( 15 ) )
----
-116

skipif mysql # not compatible
query I rowsort label-4249
SELECT 23 + - CAST ( 87 AS INTEGER ) + - + COALESCE ( ( + 52 ), + ( 15 ) )
----
-116

query I rowsort
SELECT 94 + - 50 AS col1
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT 3 + - 34 - + NULLIF ( 12, 85 ) DIV + 82
----
-31

skipif mysql # not compatible
query I rowsort label-4251
SELECT 3 + - 34 - + NULLIF ( 12, 85 ) / + 82
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT 34 DIV + 65 + - 50 + + COALESCE ( - 3, + 86 * + 18 + + 98 )
----
-53

skipif mysql # not compatible
query I rowsort label-4252
SELECT 34 / + 65 + - 50 + + COALESCE ( - 3, + 86 * + 18 + + 98 )
----
-53

query I rowsort
SELECT 13 * - 28 AS col1
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT COUNT( * ) + - COALESCE ( - 91, - 38, + 32 * CASE + 67 + + COUNT( * ) WHEN + 54 THEN + 22 * + 88 END ) * - NULLIF ( MIN( DISTINCT + 80 ), - COUNT( * ) )
----
-7279

skipif mysql # not compatible
query I rowsort label-4254
SELECT COUNT ( * ) + - COALESCE ( - 91, - 38, + 32 * CASE + 67 + + COUNT ( * ) WHEN + 54 THEN + 22 * + 88 END ) * - NULLIF ( MIN ( DISTINCT + 80 ), - COUNT ( * ) )
----
-7279

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + + ( - + SUM( DISTINCT - 74 ) ) col1
----
74

skipif mysql # not compatible
query I rowsort label-4255
SELECT + + ( - + SUM ( DISTINCT - 74 ) ) col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT NULLIF ( + 58, 26 ) + - - MAX( - 6 ) + ( COUNT( * ) - 37 ) col1
----
16

skipif mysql # not compatible
query I rowsort label-4256
SELECT NULLIF ( + 58, 26 ) + - - MAX ( - 6 ) + ( COUNT ( * ) - 37 ) col1
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT 9 * + - 40 - + 51 + - 38 + - + 59 DIV - COUNT( * )
----
-390

skipif mysql # not compatible
query I rowsort label-4257
SELECT 9 * + - 40 - + 51 + - 38 + - + 59 / - COUNT ( * )
----
-390

query I rowsort
SELECT ALL - + 22 AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT - + CASE CASE 85 WHEN - + 68 THEN + CAST( CASE 8 WHEN + 14 + - 59 THEN + 38 * + CASE COUNT( ALL + CASE 53 WHEN + ( 58 ) THEN NULL WHEN + 33 THEN - 59 * 8 END ) WHEN + 38 + + 15 THEN 96 * ( + 49 ) + - 19 WHEN 8 - + 69 * + CASE 41 WHEN CASE COUNT( * ) WHEN + 96 * + 82 + 4 THEN 68 ELSE NULL END THEN NULL WHEN - CASE - 15 WHEN MIN( DISTINCT NULLIF ( 65, + 88 / 32 ) ) - 81 / + 96 THEN - 35 + CAST( NULL AS SIGNED ) * 61 ELSE 44 - 39 END + + 89 THEN NULL WHEN 54 THEN 79 END THEN - 7 END WHEN ( + 9 ) THEN NULL ELSE NULL END AS SIGNED ) + ( - 61 ) ELSE NULL END WHEN + 97 * 74 + - 42 THEN NULL ELSE COUNT( * ) END + + 79 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - + CASE CASE 85 WHEN - + 68 THEN + CAST ( CASE 8 WHEN + 14 + - 59 THEN + 38 * + CASE COUNT ( ALL + CASE 53 WHEN + ( 58 ) THEN NULL WHEN + 33 THEN - 59 * 8 END ) WHEN + 38 + + 15 THEN 96 * ( + 49 ) + - 19 WHEN 8 - + 69 * + CASE 41 WHEN CASE COUNT ( * ) WHEN + 96 * + 82 + 4 THEN 68 ELSE NULL END THEN NULL WHEN - CASE - 15 WHEN MIN ( DISTINCT NULLIF ( 65, + 88 / 32 ) ) - 81 / + 96 THEN - 35 + CAST ( NULL AS INTEGER ) * 61 ELSE 44 - 39 END + + 89 THEN NULL WHEN 54 THEN 79 END THEN - 7 END WHEN ( + 9 ) THEN NULL ELSE NULL END AS INTEGER ) + ( - 61 ) ELSE NULL END WHEN + 97 * 74 + - 42 THEN NULL ELSE COUNT ( * ) END + + 79 AS col2
----
78

query I rowsort
SELECT ALL - - NULLIF ( 90, - 18 * - + 60 - - 63 ) col2
----
90

query I rowsort
SELECT + + 97
----
97

query I rowsort
SELECT 12 + 21 + - - 77
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT - SUM( - 48 ) * 29 AS col1
----
1392

skipif mysql # not compatible
query I rowsort label-4263
SELECT - SUM ( - 48 ) * 29 AS col1
----
1392

query I rowsort
SELECT 89 * 56 * 38
----
189392

query I rowsort
SELECT - + NULLIF ( + 48, + 60 * - - 95 ) * + - 83 * - 37 + + NULLIF ( + 91, - 34 / - ( 9 ) ) AS col2
----
-147317

query I rowsort
SELECT 81 + NULLIF ( - + 70, - 46 )
----
11

query I rowsort
SELECT ALL - 12 - + 66
----
-78

query I rowsort
SELECT 69 * - - 58 AS col0
----
4002

query I rowsort
SELECT + 68 * 47 col2
----
3196

query I rowsort
SELECT + + NULLIF ( + - 3, 41 * 37 - ( 57 ) )
----
-3

query I rowsort
SELECT - 21 + - + 1
----
-22

query I rowsort
SELECT + 18 * 8 + 84
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT - SUM( - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT - SUM ( - 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ( + 24 ) * 30 + COUNT( * ) - - - 91 AS col2
----
630

skipif mysql # not compatible
query I rowsort label-4274
SELECT ( + 24 ) * 30 + COUNT ( * ) - - - 91 AS col2
----
630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT 98 DIV + 4 * - NULLIF ( + COUNT( * ), - 32 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-4275
SELECT 98 / + 4 * - NULLIF ( + COUNT ( * ), - 32 ) AS col2
----
-24

query I rowsort
SELECT 69 * 93 * - - 35 AS col1
----
224595

query I rowsort
SELECT 4 + + + ( - 44 )
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT CAST( NULL AS SIGNED ) + + + 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT CAST ( NULL AS INTEGER ) + + + 69 AS col2
----
NULL

query II rowsort
SELECT ALL 81, + 84 col1
----
81
84

query II rowsort
SELECT DISTINCT 38 col0, - 35
----
38
-35

query I rowsort
SELECT DISTINCT + ( + 73 ) + + 99
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4282
SELECT ALL - MAX( 6 ) + - 66 * 51 DIV 67
----
-56

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - MAX ( 6 ) + - 66 * 51 / 67
----
-56

query II rowsort
SELECT DISTINCT 49 col1, 95
----
49
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 94 * MIN( + + 82 )
----
7708

skipif mysql # not compatible
query I rowsort label-4284
SELECT 94 * MIN ( + + 82 )
----
7708

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4285
SELECT 13 AS col0, 83 + - - COUNT( * ) * + ( - CAST( NULL AS DECIMAL ) )
----
13
NULL

skipif mysql # not compatible
query II rowsort label-4285
SELECT 13 AS col0, 83 + - - COUNT ( * ) * + ( - CAST ( NULL AS REAL ) )
----
13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT 13 / + CASE + 13 WHEN + ( + 85 ) * - 55 - + 14 THEN ( - 70 ) WHEN 8 * - CASE + COUNT( * ) * + COUNT( * ) WHEN 77 THEN 2 - ( - 24 - - SUM( ALL - 40 ) ) END + MIN( ALL ( 15 ) ) THEN - 74 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4286
SELECT 13 / + CASE + 13 WHEN + ( + 85 ) * - 55 - + 14 THEN ( - 70 ) WHEN 8 * - CASE + COUNT ( * ) * + COUNT ( * ) WHEN 77 THEN 2 - ( - 24 - - SUM ( ALL - 40 ) ) END + MIN ( ALL ( 15 ) ) THEN - 74 ELSE NULL END
----
NULL

query I rowsort
SELECT 48 * - 40
----
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT ALL - ( - COUNT( - - 95 ) ) + - 10 * - - 7 AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-4288
SELECT ALL - ( - COUNT ( - - 95 ) ) + - 10 * - - 7 AS col1
----
-69

query I rowsort
SELECT 19 * + 18 AS col2
----
342

onlyif mysql # DIV for integer division: 
query I rowsort label-4290
SELECT ALL - 68 DIV - + 89 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL - 68 / - + 89 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4291
SELECT 35 DIV + 84 + - 32 * 89 + 2 AS col1
----
-2846

skipif mysql # not compatible
query I rowsort label-4291
SELECT 35 / + 84 + - 32 * 89 + 2 AS col1
----
-2846

query I rowsort
SELECT ALL - + 10 * - 62 + 34
----
654

query I rowsort
SELECT 44 col1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT ALL - MAX( DISTINCT + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL - MAX ( DISTINCT + 63 )
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4295
SELECT ALL - 55 AS col1, - CASE 2 WHEN - 71 * CAST( NULL AS SIGNED ) / - 38 THEN NULL WHEN + 5 + - 57 THEN NULL WHEN - 42 + 80 THEN MAX( + 63 ) * - 1 - 27 END / - CASE 67 WHEN - 27 * 72 THEN + 4 * - 10 WHEN COUNT( * ) THEN - CASE - 10 WHEN 7 THEN + COUNT( * ) WHEN 19 THEN 31 * + COUNT( * ) - - 99 WHEN 50 THEN NULL END ELSE NULL END + - 16 / + 42
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL - 55 AS col1, - CASE 2 WHEN - 71 * CAST ( NULL AS INTEGER ) / - 38 THEN NULL WHEN + 5 + - 57 THEN NULL WHEN - 42 + 80 THEN MAX ( + 63 ) * - 1 - 27 END / - CASE 67 WHEN - 27 * 72 THEN + 4 * - 10 WHEN COUNT ( * ) THEN - CASE - 10 WHEN 7 THEN + COUNT ( * ) WHEN 19 THEN 31 * + COUNT ( * ) - - 99 WHEN 50 THEN NULL END ELSE NULL END + - 16 / + 42
----
-55
NULL

query I rowsort
SELECT 14 + + ( - 63 )
----
-49

query II rowsort
SELECT 81 AS col2, ( 72 ) AS col0
----
81
72

query I rowsort
SELECT - + 54 * + 17 * - 26 + + 72 * - - 26 * - - 48 AS col0
----
113724

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT 4 * + COALESCE ( 17, - 98 + 94 * - - 50 ) DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT 4 * + COALESCE ( 17, - 98 + 94 * - - 50 ) / 99 AS col2
----
0

query I rowsort
SELECT + + 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + + MIN( - 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4301
SELECT + + MIN ( - 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4302
SELECT ALL - COUNT( * ) * + 64 * NULLIF ( + 85, + 67 ) DIV 4 - - COUNT( + 12 ) * - 18
----
-1378

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - COUNT ( * ) * + 64 * NULLIF ( + 85, + 67 ) / 4 - - COUNT ( + 12 ) * - 18
----
-1378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT CAST( NULL AS SIGNED ) / + + COALESCE ( + - NULLIF ( - - 39, - 74 ), - + 29 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT CAST ( NULL AS INTEGER ) / + + COALESCE ( + - NULLIF ( - - 39, - 74 ), - + 29 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4304
SELECT COUNT( DISTINCT - 17 ) - + 28 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-4304
SELECT COUNT ( DISTINCT - 17 ) - + 28 AS col1
----
-27

query I rowsort
SELECT ALL - ( + 13 )
----
-13

query I rowsort
SELECT - 10 + + 95 AS col1
----
85

query II rowsort
SELECT ALL - 73 col0, - 58 AS col0
----
-73
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT - COUNT( * ) AS col2, + 59 AS col0
----
-1
59

skipif mysql # not compatible
query II rowsort label-4308
SELECT - COUNT ( * ) AS col2, + 59 AS col0
----
-1
59

query II rowsort
SELECT ALL - 63 AS col1, 35 * + 74
----
-63
2590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT - 76 + - COUNT( * ) + + + 63 / + SUM( + 70 ) + - ( + 9 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT - 76 + - COUNT ( * ) + + + 63 / + SUM ( + 70 ) + - ( + 9 ) + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT + ( - 76 ) AS col1, 46 AS col0
----
-76
46

query I rowsort
SELECT + 91 * + + 70 AS col0
----
6370

onlyif mysql # aggregate syntax: 
query II rowsort label-4313
SELECT + 50 - - COUNT( * ) AS col0, 95
----
51
95

skipif mysql # not compatible
query II rowsort label-4313
SELECT + 50 - - COUNT ( * ) AS col0, 95
----
51
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT ALL 49 + ( + 74 ) + - COUNT( * ) * + 8 - - 77 + - 17 * 32
----
-352

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL 49 + ( + 74 ) + - COUNT ( * ) * + 8 - - 77 + - 17 * 32
----
-352

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4315
SELECT + 55 * - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + 55 * - + CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 33 + - - 76 + + 93
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT ALL CAST( NULL AS SIGNED ) + - - 41 * - - 27 / - 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL CAST ( NULL AS INTEGER ) + - - 41 * - - 27 / - 53 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4318
SELECT ALL COUNT( * ) DIV - 25, 36 + + ( + - 63 ) AS col0
----
0
-27

skipif mysql # not compatible
query II rowsort label-4318
SELECT ALL COUNT ( * ) / - 25, 36 + + ( + - 63 ) AS col0
----
0
-27

query I rowsort
SELECT ALL 13 + + 98 AS col1
----
111

query I rowsort
SELECT - COALESCE ( - 66, + 32 ) + 9 AS col1
----
75

query I rowsort
SELECT + 25 - - + ( 52 )
----
77

query I rowsort
SELECT - CASE + ( 43 ) WHEN 46 THEN - + 74 WHEN - 79 THEN NULL WHEN - - 17 THEN 56 + 96 ELSE + 42 END AS col0
----
-42

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4323
SELECT - 95 + - - 6, CAST( NULL AS DECIMAL ) AS col0
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-4323
SELECT - 95 + - - 6, CAST ( NULL AS REAL ) AS col0
----
-89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - NULLIF ( - COUNT( * ), 55 - + 87 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4324
SELECT - NULLIF ( - COUNT ( * ), 55 - + 87 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT ALL 7 + MIN( + 47 )
----
54

skipif mysql # not compatible
query I rowsort label-4325
SELECT ALL 7 + MIN ( + 47 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4326
SELECT + 77 DIV - COUNT( * )
----
-77

skipif mysql # not compatible
query I rowsort label-4326
SELECT + 77 / - COUNT ( * )
----
-77

query I rowsort
SELECT + 89 * 41
----
3649

query I rowsort
SELECT + 41 + - - 98 + + - 48 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL COALESCE ( 16, - 95 + 5 ) - - - 8 + MIN( COALESCE ( + 62, + ( 59 ), 72 ) ) + CASE WHEN ( NULL ) <= NULL THEN NULL ELSE + 27 END * 13 * 19
----
6739

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL COALESCE ( 16, - 95 + 5 ) - - - 8 + MIN ( COALESCE ( + 62, + ( 59 ), 72 ) ) + CASE WHEN ( NULL ) <= NULL THEN NULL ELSE + 27 END * 13 * 19
----
6739

query I rowsort
SELECT DISTINCT 9 AS col1
----
9

query I rowsort
SELECT ALL - - 27 - - 84
----
111

query I rowsort
SELECT + + ( 92 ) * + 57
----
5244

query I rowsort
SELECT DISTINCT + 95 * - 72
----
-6840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4334
SELECT ALL - COALESCE ( - + ( + 14 ), - SUM( - 93 ) DIV + COUNT( 80 ) )
----
14

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - COALESCE ( - + ( + 14 ), - SUM ( - 93 ) / + COUNT ( 80 ) )
----
14

query I rowsort
SELECT - ( - - 65 ) col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT MIN( + - 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-4336
SELECT MIN ( + - 53 )
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT + 44 DIV 4 + - 2 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-4337
SELECT + 44 / 4 + - 2 AS col0
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT + CASE + 56 WHEN - ( + - 60 ) THEN + + 38 * - + MIN( DISTINCT - + 95 ) WHEN ( CAST( NULL AS SIGNED ) ) THEN NULL END * + ( - 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT + CASE + 56 WHEN - ( + - 60 ) THEN + + 38 * - + MIN ( DISTINCT - + 95 ) WHEN ( CAST ( NULL AS INTEGER ) ) THEN NULL END * + ( - 2 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT + - COALESCE ( 76, - 59 * 7 * - ( + 12 ) * + - 88 + MAX( ( + COALESCE ( 10, 15 * - 71 ) ) + + 63 ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT + - COALESCE ( 76, - 59 * 7 * - ( + 12 ) * + - 88 + MAX ( ( + COALESCE ( 10, 15 * - 71 ) ) + + 63 ) ) AS col0
----
-76

query II rowsort
SELECT DISTINCT + ( + + 2 ) AS col1, ( + 75 )
----
2
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT - 63 * ( 91 ) * - + COUNT( + 42 ) * + - 90
----
-515970

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT - 63 * ( 91 ) * - + COUNT ( + 42 ) * + - 90
----
-515970

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL + 30 * + COUNT( * ) * 27 AS col0
----
810

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL + 30 * + COUNT ( * ) * 27 AS col0
----
810

query I rowsort
SELECT - - 24 / - CASE 99 WHEN 62 THEN COALESCE ( - 83, 55 * - 95 + + 48 ) + + 52 * 85 END / - 70 col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4344
SELECT ALL - 19 DIV 63 DIV - 52 + + + 64 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4344
SELECT ALL - 19 / 63 / - 52 + + + 64 AS col1
----
64

query I rowsort
SELECT ALL + + 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - 47 * 10 + - + SUM( - 70 ) col0
----
-400

skipif mysql # not compatible
query I rowsort label-4346
SELECT - 47 * 10 + - + SUM ( - 70 ) col0
----
-400

query II rowsort
SELECT + - 80 * + - 20 + - + 92 AS col2, 22 + - 95 AS col1
----
1508
-73

query I rowsort
SELECT ALL + 69 * + 52 + - 39 AS col2
----
3549

query I rowsort
SELECT NULLIF ( 41, 27 * 25 ) AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL + 18 * - + MIN( + + 35 ) + + - 56
----
-686

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL + 18 * - + MIN ( + + 35 ) + + - 56
----
-686

query I rowsort
SELECT - 79 + 5
----
-74

query I rowsort
SELECT - 55 + + ( 98 ) col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT + COALESCE ( - + 54, + + 87 * - + CAST( - 27 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT + COALESCE ( - + 54, + + 87 * - + CAST ( - 27 AS INTEGER ) )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4354
SELECT COUNT( * ) AS col0, - 5 * COUNT( * ) DIV 9 + + - 87 + + - 87 * + + 83
----
1
-7308

skipif mysql # not compatible
query II rowsort label-4354
SELECT COUNT ( * ) AS col0, - 5 * COUNT ( * ) / 9 + + - 87 + + - 87 * + + 83
----
1
-7308

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT + 8 * MAX( DISTINCT + + 34 ) + - + COUNT( * )
----
271

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT + 8 * MAX ( DISTINCT + + 34 ) + - + COUNT ( * )
----
271

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT CAST( + 51 AS SIGNED ) * + 62 + + 96 * - - 72 - + 74 + - COUNT( * )
----
9999

skipif mysql # not compatible
query I rowsort label-4356
SELECT CAST ( + 51 AS INTEGER ) * + 62 + + 96 * - - 72 - + 74 + - COUNT ( * )
----
9999

query II rowsort
SELECT - 43, 70 * - 75 AS col2
----
-43
-5250

query I rowsort
SELECT + 1 + - 6 + 15 AS col2
----
10

query I rowsort
SELECT ALL - 75 * - + 96 * - 87 + + - 28
----
-626428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4360
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT + CASE 48 WHEN + 19 THEN + COUNT( * ) WHEN + COUNT( * ) * - 22 THEN + 59 ELSE - 64 END + - 41
----
-105

skipif mysql # not compatible
query I rowsort label-4361
SELECT + CASE 48 WHEN + 19 THEN + COUNT ( * ) WHEN + COUNT ( * ) * - 22 THEN + 59 ELSE - 64 END + - 41
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL CASE 57 WHEN 18 * - 56 + - 27 THEN - COUNT( * ) WHEN + + COALESCE ( + NULLIF ( - 17, 67 * - 10 ), 22 * - AVG ( 1 ) ) THEN NULL END * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL CASE 57 WHEN 18 * - 56 + - 27 THEN - COUNT ( * ) WHEN + + COALESCE ( + NULLIF ( - 17, 67 * - 10 ), 22 * - AVG ( 1 ) ) THEN NULL END * 58
----
NULL

query I rowsort
SELECT - 65 * + ( + 49 ) AS col2
----
-3185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT ALL + COALESCE ( + 47, - CASE + - CASE + SUM( ALL 29 ) WHEN - - 97 + 50 THEN - 55 ELSE NULL END WHEN 31 * 77 THEN NULL ELSE + 15 DIV - 14 END, 11 * + 20 - 67 ) * - 45
----
-2115

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL + COALESCE ( + 47, - CASE + - CASE + SUM ( ALL 29 ) WHEN - - 97 + 50 THEN - 55 ELSE NULL END WHEN 31 * 77 THEN NULL ELSE + 15 / - 14 END, 11 * + 20 - 67 ) * - 45
----
-2115

query I rowsort
SELECT DISTINCT 94 - - 96 + + - 96 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + 85 * CAST( + 24 AS SIGNED )
----
2040

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + 85 * CAST ( + 24 AS INTEGER )
----
2040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4367
SELECT - CASE AVG ( + + 36 ) WHEN + COUNT( * ) + 66 THEN + CASE + COUNT( ALL - 44 ) WHEN 22 THEN NULL WHEN 68 * + MAX( DISTINCT - ( 32 ) ) + 24 THEN 67 * 46 END * CAST( NULL AS SIGNED ) WHEN + 67 THEN 30 * - COALESCE ( 5, + 4 * 26 ) - 16 ELSE + SUM( 93 ) / ( 36 * MAX( ALL CAST( NULL AS SIGNED ) ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - CASE AVG ( + + 36 ) WHEN + COUNT ( * ) + 66 THEN + CASE + COUNT ( ALL - 44 ) WHEN 22 THEN NULL WHEN 68 * + MAX ( DISTINCT - ( 32 ) ) + 24 THEN 67 * 46 END * CAST ( NULL AS INTEGER ) WHEN + 67 THEN 30 * - COALESCE ( 5, + 4 * 26 ) - 16 ELSE + SUM ( 93 ) / ( 36 * MAX ( ALL CAST ( NULL AS INTEGER ) ) ) END AS col2
----
NULL

query I rowsort
SELECT + 71 * 67 AS col2
----
4757

query I rowsort
SELECT + ( 0 ) * + 39
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4370
SELECT ALL 68 - 63 DIV - 57 AS col2
----
69

skipif mysql # not compatible
query I rowsort label-4370
SELECT ALL 68 - 63 / - 57 AS col2
----
69

query I rowsort
SELECT + ( - 96 ) * 32 * 32
----
-98304

query I rowsort
SELECT + - 89 * - 63 AS col0
----
5607

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT ALL 95 * + COUNT( * ) col2
----
95

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL 95 * + COUNT ( * ) col2
----
95

query I rowsort
SELECT + - 20 - - 33 col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT ALL - MAX( - + ( 72 ) ) col2
----
72

skipif mysql # not compatible
query I rowsort label-4375
SELECT ALL - MAX ( - + ( 72 ) ) col2
----
72

query I rowsort
SELECT DISTINCT + - 13 col1
----
-13

query I rowsort
SELECT ALL - 34 * + 53 + + + 97 * + + 59 col1
----
3921

query I rowsort
SELECT DISTINCT + - 57
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4379
SELECT + + 95 * COALESCE ( - - 23, + - 50, + 49 * - + 56 * - 83 + + SUM( DISTINCT - 80 ) ) DIV + 18 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-4379
SELECT + + 95 * COALESCE ( - - 23, + - 50, + 49 * - + 56 * - 83 + + SUM ( DISTINCT - 80 ) ) / + 18 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + COUNT( * ) * + 1 + - - ( + 70 ) * COUNT( * ) + 37 * - 21 + - 87 + - MIN( - 48 ) * + 29 AS col0
----
599

skipif mysql # not compatible
query I rowsort label-4380
SELECT + COUNT ( * ) * + 1 + - - ( + 70 ) * COUNT ( * ) + 37 * - 21 + - 87 + - MIN ( - 48 ) * + 29 AS col0
----
599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4381
SELECT ALL - - CAST( + + 36 AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL - - CAST ( + + 36 AS INTEGER )
----
36

query I rowsort
SELECT + - 23 AS col1
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4383
SELECT 67 + 23 + + 87 AS col0, - ( - 35 ) + - COUNT( * ) + + CASE + 7 WHEN 16 - 90 THEN COUNT( * ) ELSE + 0 DIV + CAST( + 34 AS SIGNED ) + 97 END
----
177
131

skipif mysql # not compatible
query II rowsort label-4383
SELECT 67 + 23 + + 87 AS col0, - ( - 35 ) + - COUNT ( * ) + + CASE + 7 WHEN 16 - 90 THEN COUNT ( * ) ELSE + 0 / + CAST ( + 34 AS INTEGER ) + 97 END
----
177
131

query I rowsort
SELECT - 42 * 28
----
-1176

query I rowsort
SELECT + + 69 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT ALL + 7 + ( 38 ) + + - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL + 7 + ( 38 ) + + - COUNT ( * )
----
44

query I rowsort
SELECT 98 + - 91 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-4388
SELECT ALL + 79 * + COUNT( * ) AS col1, 54 + + 66 + + 32 - 90 * - - 56 * + - 76 AS col2
----
79
383192

skipif mysql # not compatible
query II rowsort label-4388
SELECT ALL + 79 * + COUNT ( * ) AS col1, 54 + + 66 + + 32 - 90 * - - 56 * + - 76 AS col2
----
79
383192

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL COUNT( * ) + - + 74 + + ( 75 ) + 1 - - 63 * - 27
----
-1698

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL COUNT ( * ) + - + 74 + + ( 75 ) + 1 - - 63 * - 27
----
-1698

onlyif mysql # aggregate syntax: 
query II rowsort label-4390
SELECT 94 * + 17 AS col1, COUNT( ALL + 97 )
----
1598
1

skipif mysql # not compatible
query II rowsort label-4390
SELECT 94 * + 17 AS col1, COUNT ( ALL + 97 )
----
1598
1

query I rowsort
SELECT ( + 50 ) + + 57
----
107

query I rowsort
SELECT 33 * - 37 * - 69
----
84249

onlyif mysql # DIV for integer division: 
query II rowsort label-4393
SELECT 39 DIV + 7 AS col2, - 50 AS col2
----
5
-50

skipif mysql # not compatible
query II rowsort label-4393
SELECT 39 / + 7 AS col2, - 50 AS col2
----
5
-50

query I rowsort
SELECT ALL - NULLIF ( - - ( 58 ), + 61 ) * + 47 AS col0
----
-2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT DISTINCT + 61 * + COUNT( * ) * - COUNT( * ) * + 33 AS col1
----
-2013

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + 61 * + COUNT ( * ) * - COUNT ( * ) * + 33 AS col1
----
-2013

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT DISTINCT 71 - - + 96 DIV - ( + 27 ) * 1
----
68

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT 71 - - + 96 / - ( + 27 ) * 1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL COUNT( * ) * 83 * 66 AS col2
----
5478

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL COUNT ( * ) * 83 * 66 AS col2
----
5478

query I rowsort
SELECT DISTINCT 57 col1
----
57

query I rowsort
SELECT ( + 28 ) * - - 79 + - + COALESCE ( + NULLIF ( + + 87, 43 ), + 53 ) col1
----
2125

query I rowsort
SELECT 57 * - 91
----
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT 28 + + MAX( 82 )
----
110

skipif mysql # not compatible
query I rowsort label-4401
SELECT 28 + + MAX ( 82 )
----
110

query II rowsort
SELECT 64 - - 4, + 97 AS col0
----
68
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT COUNT( * ) - - 87 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-4403
SELECT COUNT ( * ) - - 87 AS col0
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4404
SELECT 12 + + COUNT( DISTINCT - - CASE - + CAST( + - 19 AS SIGNED ) WHEN 44 THEN + + 65 * - 53 + + - 99 WHEN 4 THEN 49 END ) + + 35
----
47

skipif mysql # not compatible
query I rowsort label-4404
SELECT 12 + + COUNT ( DISTINCT - - CASE - + CAST ( + - 19 AS INTEGER ) WHEN 44 THEN + + 65 * - 53 + + - 99 WHEN 4 THEN 49 END ) + + 35
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT COUNT( * ) + - NULLIF ( + 97, - 57 )
----
-96

skipif mysql # not compatible
query I rowsort label-4405
SELECT COUNT ( * ) + - NULLIF ( + 97, - 57 )
----
-96

query I rowsort
SELECT ALL CASE + 36 WHEN + 30 / + 96 THEN - ( - - 72 ) ELSE NULL END
----
NULL

query I rowsort
SELECT 89 + - 6
----
83

query I rowsort
SELECT ALL + 85 * 9
----
765

query I rowsort
SELECT - CASE - 16 WHEN - 80 * ( - 32 ) THEN + 65 ELSE NULL END / + 95 * - + 44 * - - 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4410
SELECT DISTINCT + - 51 + 59 DIV - + 74 - + - MIN( - 0 ) + - - 5
----
-46

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + - 51 + 59 / - + 74 - + - MIN ( - 0 ) + - - 5
----
-46

query I rowsort
SELECT ALL - 94 + - ( - 27 ) col2
----
-67

query I rowsort
SELECT - 90 + - ( + 5 ) + 7
----
-88

query I rowsort
SELECT - 29 * - 36 + + 60 + + 40 col2
----
1144

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT + 38 DIV + 91 - + 23
----
-23

skipif mysql # not compatible
query I rowsort label-4414
SELECT + 38 / + 91 - + 23
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4415
SELECT - 97 / 64 * + ( + CAST( NULL AS DECIMAL ) ) + ( 57 ) - + 9 - - 22 * - 62 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 97 / 64 * + ( + CAST ( NULL AS REAL ) ) + ( 57 ) - + 9 - - 22 * - 62 col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4416
SELECT DISTINCT SUM( - - 3 ) DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT SUM ( - - 3 ) / - 67
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4417
SELECT - 56 DIV - 12 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-4417
SELECT - 56 / - 12 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT MAX( ALL + - 58 ) + 94 AS col1
----
36

skipif mysql # not compatible
query I rowsort label-4418
SELECT MAX ( ALL + - 58 ) + 94 AS col1
----
36

query I rowsort
SELECT ALL - 78 + - 33 AS col2
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-4420
SELECT + ( + + 90 ) AS col1, + MAX( ALL - 89 ) AS col0
----
90
-89

skipif mysql # not compatible
query II rowsort label-4420
SELECT + ( + + 90 ) AS col1, + MAX ( ALL - 89 ) AS col0
----
90
-89

query I rowsort
SELECT ALL - ( + + 80 ) AS col2
----
-80

query I rowsort
SELECT DISTINCT ( - 90 ) * + 22
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL MAX( - 89 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL MAX ( - 89 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query III rowsort
SELECT ALL - 68 AS col1, + 37 * - - 89, + + 28 * - + ( + 4 ) AS col0
----
-68
3293
-112

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT COUNT( * ) + + 17 AS col0
----
18

skipif mysql # not compatible
query I rowsort label-4425
SELECT COUNT ( * ) + + 17 AS col0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT CAST( NULL AS SIGNED ) * NULLIF ( 51, + - COUNT( * ) * - - 91 * - - 22 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT CAST ( NULL AS INTEGER ) * NULLIF ( 51, + - COUNT ( * ) * - - 91 * - - 22 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + MIN( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-4427
SELECT + MIN ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT ALL - COUNT( DISTINCT - 64 )
----
-1

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - COUNT ( DISTINCT - 64 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT CAST( NULL AS SIGNED ) * - - 76 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT CAST ( NULL AS INTEGER ) * - - 76 * 34
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4430
SELECT ALL - 68, - 54 - - 71 * - - ( CAST( NULL AS SIGNED ) ) AS col1
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-4430
SELECT ALL - 68, - 54 - - 71 * - - ( CAST ( NULL AS INTEGER ) ) AS col1
----
-68
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT ALL 83 DIV - + 44
----
-1

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL 83 / - + 44
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT 22 DIV - 74 * - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4432
SELECT 22 / - 74 * - 87 AS col1
----
0

query I rowsort
SELECT 58 * + 14 AS col1
----
812

query I rowsort
SELECT DISTINCT 18 * 70 AS col2
----
1260

query II rowsort
SELECT ALL 61, - 77 AS col0
----
61
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4436
SELECT - MAX( ALL - ( + + CAST( - 27 AS SIGNED ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4436
SELECT - MAX ( ALL - ( + + CAST ( - 27 AS INTEGER ) ) )
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4437
SELECT 73 + - + 3 + COUNT( ALL + 12 ) + + + 37 + + 2 DIV + 11 + - - 23 AS col2, + MIN( DISTINCT - 94 ) * 84
----
131
-7896

skipif mysql # not compatible
query II rowsort label-4437
SELECT 73 + - + 3 + COUNT ( ALL + 12 ) + + + 37 + + 2 / + 11 + - - 23 AS col2, + MIN ( DISTINCT - 94 ) * 84
----
131
-7896

onlyif mysql # DIV for integer division: 
query I rowsort label-4438
SELECT + ( - 24 ) DIV + 2 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-4438
SELECT + ( - 24 ) / + 2 AS col2
----
-12

query I rowsort
SELECT ( + + 32 ) + + 56 AS col0
----
88

query I rowsort
SELECT DISTINCT 90 * - 30
----
-2700

query I rowsort
SELECT DISTINCT ( - 95 ) col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT ALL + 14 * + COUNT( * ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + 14 * + COUNT ( * ) AS col1
----
14

query I rowsort
SELECT DISTINCT - 56 + + 29 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT - MAX( ALL + - 21 ) * + NULLIF ( - 17, - - 6 )
----
-357

skipif mysql # not compatible
query I rowsort label-4444
SELECT - MAX ( ALL + - 21 ) * + NULLIF ( - 17, - - 6 )
----
-357

query III rowsort
SELECT ALL + + 49 + + - COALESCE ( - 26, - 15 ) * + 77 AS col2, + 19 AS col0, - 31
----
2051
19
-31

query II rowsort
SELECT DISTINCT + 9, - 71 * - - 77 * + 58 AS col1
----
9
-317086

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4447
SELECT + - 42 - CAST( - 44 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-4447
SELECT + - 42 - CAST ( - 44 AS INTEGER )
----
2

query I rowsort
SELECT ALL ( 55 )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4449
SELECT ALL + + SUM( ALL + 44 ) + 83 + + 97 DIV - + 43 col1, 46 + + - 67 + - COUNT( * ) * + 64 AS col1
----
125
-85

skipif mysql # not compatible
query II rowsort label-4449
SELECT ALL + + SUM ( ALL + 44 ) + 83 + + 97 / - + 43 col1, 46 + + - 67 + - COUNT ( * ) * + 64 AS col1
----
125
-85

query I rowsort
SELECT - + 68 * - + 0 + - + 2 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT + COUNT( * ) + - - 45 + - ( - + COUNT( * ) ) + - 56 - + - COUNT( * ) * + 34 + 21 * - 27 * 12 * + ( 93 )
----
-632747

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT + COUNT ( * ) + - - 45 + - ( - + COUNT ( * ) ) + - 56 - + - COUNT ( * ) * + 34 + 21 * - 27 * 12 * + ( 93 )
----
-632747

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4452
SELECT ALL + + ( 50 ) + - CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) / + 55 THEN NULL WHEN - + 25 THEN NULL ELSE + 32 END * + 47
----
-1454

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL + + ( 50 ) + - CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) / + 55 THEN NULL WHEN - + 25 THEN NULL ELSE + 32 END * + 47
----
-1454

query I rowsort
SELECT - - 6 AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT - 63 - COALESCE ( + 88, + 70, 62 * 68 + + + 91 * 36 + + 43 + COALESCE ( 31, 12 ), COUNT( * ) )
----
-151

skipif mysql # not compatible
query I rowsort label-4454
SELECT - 63 - COALESCE ( + 88, + 70, 62 * 68 + + + 91 * 36 + + 43 + COALESCE ( 31, 12 ), COUNT ( * ) )
----
-151

query I rowsort
SELECT ALL - 90 * 17 AS col0
----
-1530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4456
SELECT DISTINCT COUNT( * ) * + 31 + 59 + 53 * 20 + - 24 * - 53 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT COUNT ( * ) * + 31 + 59 + 53 * 20 + - 24 * - 53 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4457
SELECT ALL 69 * - SUM( - + 40 ) + + COALESCE ( 53, - 13 + 71, - - 49 / + - NULLIF ( 0, 57 + 45 ) * 63 + + COALESCE ( 38, + 75 ) ) * - CASE 22 WHEN - 35 + - COUNT( * ) * - COUNT( - 53 ) THEN 72 END + ( 4 - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL 69 * - SUM ( - + 40 ) + + COALESCE ( 53, - 13 + 71, - - 49 / + - NULLIF ( 0, 57 + 45 ) * 63 + + COALESCE ( 38, + 75 ) ) * - CASE 22 WHEN - 35 + - COUNT ( * ) * - COUNT ( - 53 ) THEN 72 END + ( 4 - 37 )
----
NULL

query I rowsort
SELECT DISTINCT + - 20 col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT - COUNT( * ) * - + 26 - - COUNT( * )
----
27

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT - COUNT ( * ) * - + 26 - - COUNT ( * )
----
27

query I rowsort
SELECT - 3 + + 9
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT - 9 * 32 DIV - 84 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4461
SELECT - 9 * 32 / - 84 AS col0
----
3

query II rowsort
SELECT + ( + + 92 ) * + 81 + NULLIF ( 64, - 68 ), ( + - 90 ) AS col2
----
7516
-90

query I rowsort
SELECT + 78 * - - 93
----
7254

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4464
SELECT DISTINCT 84 DIV + MAX( + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT 84 / + MAX ( + 61 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) * 89 * 33 - - 73 + - 94 + - MAX( DISTINCT 59 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) * 89 * 33 - - 73 + - 94 + - MAX ( DISTINCT 59 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT - 49 * - + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4466
SELECT - 49 * - + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT - 25 + - + 84
----
-109

query I rowsort
SELECT ALL 37 * ( - COALESCE ( + 41, + 41 ) ) col2
----
-1517

query I rowsort
SELECT + 42 * - - 24
----
1008

query I rowsort
SELECT ALL 30 * ( + 41 ) AS col2
----
1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4471
SELECT - 7 + - 60 - 67 + 21 * + + COUNT( * ) * + + 74 col0, MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col2
----
1420
NULL

skipif mysql # not compatible
query II rowsort label-4471
SELECT - 7 + - 60 - 67 + 21 * + + COUNT ( * ) * + + 74 col0, MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2
----
1420
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + CASE - 41 WHEN + + ( 61 ) THEN NULL ELSE + + MAX( + + 41 ) + + 79 * - COUNT( * ) END
----
-38

skipif mysql # not compatible
query I rowsort label-4472
SELECT + CASE - 41 WHEN + + ( 61 ) THEN NULL ELSE + + MAX ( + + 41 ) + + 79 * - COUNT ( * ) END
----
-38

query I rowsort
SELECT ALL 77 * + 38
----
2926

query I rowsort
SELECT - 83 * + 5
----
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT SUM( DISTINCT + 6 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4475
SELECT SUM ( DISTINCT + 6 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4476
SELECT ALL ( + 79 ) * CASE - CAST( NULL AS SIGNED ) WHEN - 30 THEN NULL ELSE + 73 END + 9 + + 23 - - COUNT( * )
----
5800

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL ( + 79 ) * CASE - CAST ( NULL AS INTEGER ) WHEN - 30 THEN NULL ELSE + 73 END + 9 + + 23 - - COUNT ( * )
----
5800

query II rowsort
SELECT DISTINCT ( - + 31 ) AS col2, - 87 AS col1
----
-31
-87

query II rowsort
SELECT DISTINCT - 14 col2, + 84 + + 86
----
-14
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT ALL 62 + - CAST( NULL AS SIGNED ) + ( + COALESCE ( - - 20, - 12 * + + 66 / COALESCE ( COUNT( * ), + CAST( + + SUM( DISTINCT 91 ) AS SIGNED ) ) ) ) + COUNT( * ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL 62 + - CAST ( NULL AS INTEGER ) + ( + COALESCE ( - - 20, - 12 * + + 66 / COALESCE ( COUNT ( * ), + CAST ( + + SUM ( DISTINCT 91 ) AS INTEGER ) ) ) ) + COUNT ( * ) * 14
----
NULL

query II rowsort
SELECT - 62 AS col0, + 64 AS col2
----
-62
64

query I rowsort
SELECT + - 46 + + 62 AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT - + MIN( ALL - CAST( + - 41 AS SIGNED ) ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4482
SELECT - + MIN ( ALL - CAST ( + - 41 AS INTEGER ) ) AS col2
----
-41

query I rowsort
SELECT - + ( 47 ) - + 57
----
-104

query I rowsort
SELECT + - 97 + + + ( 5 ) AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT - CAST( + - ( - - 93 ) AS SIGNED ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4485
SELECT - CAST ( + - ( - - 93 ) AS INTEGER ) AS col0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4486
SELECT ALL + 11 + 41 AS col1, + CASE + 95 WHEN + ( + 21 ) + + SUM( DISTINCT - 8 ) THEN NULL ELSE + 53 * 7 END + + ( 70 )
----
52
441

skipif mysql # not compatible
query II rowsort label-4486
SELECT ALL + 11 + 41 AS col1, + CASE + 95 WHEN + ( + 21 ) + + SUM ( DISTINCT - 8 ) THEN NULL ELSE + 53 * 7 END + + ( 70 )
----
52
441

query I rowsort
SELECT + 34 + - 38 + + 21 * - 68 + + 48 col1
----
-1384

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4488
SELECT - 36 AS col1, COALESCE ( - 39, - CAST( NULL AS SIGNED ), - 17 DIV - 95 DIV - 72 - 92 + + COALESCE ( + 85, 26 * - 46, 56 * 76 ) * 16 * 88 + + 58 ) AS col1
----
-36
-39

skipif mysql # not compatible
query II rowsort label-4488
SELECT - 36 AS col1, COALESCE ( - 39, - CAST ( NULL AS INTEGER ), - 17 / - 95 / - 72 - 92 + + COALESCE ( + 85, 26 * - 46, 56 * 76 ) * 16 * 88 + + 58 ) AS col1
----
-36
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT ALL 8 * + NULLIF ( - CAST( NULL AS SIGNED ), 3 + - - 71 ) + COUNT( ALL - 80 ) / + ( - ( + 77 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL 8 * + NULLIF ( - CAST ( NULL AS INTEGER ), 3 + - - 71 ) + COUNT ( ALL - 80 ) / + ( - ( + 77 ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT + 83 + + + COUNT( * ) * - COALESCE ( - - COUNT( * ), + 25, + 12 ) AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT + 83 + + + COUNT ( * ) * - COALESCE ( - - COUNT ( * ), + 25, + 12 ) AS col2
----
82

query II rowsort
SELECT DISTINCT + 26, 82 + 58 col2
----
26
140

query II rowsort
SELECT 84, 31 AS col0
----
84
31

query I rowsort
SELECT + NULLIF ( - 2, 44 ) AS col1
----
-2

query I rowsort
SELECT - 85 + + 63 - 17
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT + MIN( ALL ( - 74 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-4495
SELECT + MIN ( ALL ( - 74 ) )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT - 37 + + CAST( + CASE - COALESCE ( 53, + COUNT( * ) / 84 ) WHEN + 49 THEN NULL WHEN - 40 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 37 + + CAST ( + CASE - COALESCE ( 53, + COUNT ( * ) / 84 ) WHEN + 49 THEN NULL WHEN - 40 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS INTEGER )
----
NULL

query II rowsort
SELECT - 49 * 39 * + - 40 AS col2, - 4 AS col2
----
76440
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT DISTINCT - CASE CAST( - CAST( - 25 AS SIGNED ) AS SIGNED ) WHEN - 93 * + 71 + - 75 / + 19 + COUNT( * ) + + 79 THEN 23 END / 35 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT DISTINCT - CASE CAST ( - CAST ( - 25 AS INTEGER ) AS INTEGER ) WHEN - 93 * + 71 + - 75 / + 19 + COUNT ( * ) + + 79 THEN 23 END / 35 * + 50
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT - 19 * + - CAST( NULL AS SIGNED ) * 71
----
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT - 19 * + - CAST ( NULL AS INTEGER ) * 71
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4500
SELECT DISTINCT - COUNT( * ) * 11, + COUNT( + CAST( NULL AS SIGNED ) ) col2
----
-11
0

skipif mysql # not compatible
query II rowsort label-4500
SELECT DISTINCT - COUNT ( * ) * 11, + COUNT ( + CAST ( NULL AS INTEGER ) ) col2
----
-11
0

query I rowsort
SELECT ALL + ( + 41 )
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - 8 * - COUNT( * ) + + + 67 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-4502
SELECT - 8 * - COUNT ( * ) + + + 67 AS col0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4503
SELECT + COALESCE ( ( + + CASE - 98 WHEN + NULLIF ( + 82, - 44 * 12 ) DIV 89 THEN + 54 - 92 + 46 + - 85 DIV 52 END ), ( 86 ) DIV + 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4503
SELECT + COALESCE ( ( + + CASE - 98 WHEN + NULLIF ( + 82, - 44 * 12 ) / 89 THEN + 54 - 92 + 46 + - 85 / 52 END ), ( 86 ) / + 57 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT - 83 * - - COUNT( * ) col1
----
-83

skipif mysql # not compatible
query I rowsort label-4504
SELECT - 83 * - - COUNT ( * ) col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT + COALESCE ( - + SUM( - ( - + 78 ) ), + 28 * 6, 96 + - + 65 DIV + 11 )
----
-78

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + COALESCE ( - + SUM ( - ( - + 78 ) ), + 28 * 6, 96 + - + 65 / + 11 )
----
-78

query I rowsort
SELECT - 59 * 39 AS col1
----
-2301

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4507
SELECT ALL + 95 DIV + 70 col2, + 53 + + + COUNT( * ) + - SUM( DISTINCT + 67 ) * - - 55 AS col0
----
1
-3631

skipif mysql # not compatible
query II rowsort label-4507
SELECT ALL + 95 / + 70 col2, + 53 + + + COUNT ( * ) + - SUM ( DISTINCT + 67 ) * - - 55 AS col0
----
1
-3631

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4508
SELECT ( - COUNT( * ) ) AS col0, COUNT( ALL 10 ) DIV + + 44 + - 94 + - 62 - + 53 DIV 46
----
-1
-157

skipif mysql # not compatible
query II rowsort label-4508
SELECT ( - COUNT ( * ) ) AS col0, COUNT ( ALL 10 ) / + + 44 + - 94 + - 62 - + 53 / 46
----
-1
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT ALL + MIN( + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4509
SELECT ALL + MIN ( + - 53 ) AS col2
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-4510
SELECT DISTINCT - 62 * + 78 + - COUNT( * ) - 31 * ( + - 82 ) + + 84 AS col0, - 13 * + 80 * + + ( + 5 ) + - COUNT( * ) + 34
----
-2211
-5167

skipif mysql # not compatible
query II rowsort label-4510
SELECT DISTINCT - 62 * + 78 + - COUNT ( * ) - 31 * ( + - 82 ) + + 84 AS col0, - 13 * + 80 * + + ( + 5 ) + - COUNT ( * ) + 34
----
-2211
-5167

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL - CASE COUNT( * ) WHEN - + 14 THEN + + 32 + - 27 END * + 31 - + - ( - + CAST( + 75 AS SIGNED ) ) / 11 / 88 * + 55 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - CASE COUNT ( * ) WHEN - + 14 THEN + + 32 + - 27 END * + 31 - + - ( - + CAST ( + 75 AS INTEGER ) ) / 11 / 88 * + 55 + - 44
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4512
SELECT 61 * - - 6 + 22 - + COUNT( * ) + + 37 * 20 + 75 - + 56 * - 24 * - - 60 AS col1, COUNT( * ) DIV + - 72 DIV + 28 AS col1
----
81842
0

skipif mysql # not compatible
query II rowsort label-4512
SELECT 61 * - - 6 + 22 - + COUNT ( * ) + + 37 * 20 + 75 - + 56 * - 24 * - - 60 AS col1, COUNT ( * ) / + - 72 / + 28 AS col1
----
81842
0

query I rowsort
SELECT ALL + + 90 AS col0
----
90

query I rowsort
SELECT - 91 col1
----
-91

query I rowsort
SELECT DISTINCT 13 AS col1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT ALL - 6 * + COUNT( * ) * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4516
SELECT ALL - 6 * + COUNT ( * ) * - COUNT ( * ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4517
SELECT - 82 * - COUNT( * ) * COALESCE ( + - COUNT( * ), - + 73 ) * 25 * + 43 col0
----
-88150

skipif mysql # not compatible
query I rowsort label-4517
SELECT - 82 * - COUNT ( * ) * COALESCE ( + - COUNT ( * ), - + 73 ) * 25 * + 43 col0
----
-88150

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT - COUNT( ALL - 30 ) + + 7 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4518
SELECT - COUNT ( ALL - 30 ) + + 7 AS col1
----
6

query II rowsort
SELECT - + ( 54 ) AS col0, - 37 + + + 51
----
-54
14

query I rowsort
SELECT - - 67 AS col2
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT - 65 + - COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-4521
SELECT - 65 + - COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT ALL 35 + + 69 + + COUNT( * ) + 23 - 34 * - 50 - - 18 AS col0
----
1846

skipif mysql # not compatible
query I rowsort label-4522
SELECT ALL 35 + + 69 + + COUNT ( * ) + 23 - 34 * - 50 - - 18 AS col0
----
1846

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT 56 + - ( - 23 ) * - CASE + 78 WHEN + 8 * - 66 THEN - + SUM( - 8 ) / + - 45 / - COUNT( * ) END + + - 80 * 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT 56 + - ( - 23 ) * - CASE + 78 WHEN + 8 * - 66 THEN - + SUM ( - 8 ) / + - 45 / - COUNT ( * ) END + + - 80 * 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4524
SELECT + COUNT( * ) * + 60, COUNT( * ) AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-4524
SELECT + COUNT ( * ) * + 60, COUNT ( * ) AS col1
----
60
1

query I rowsort
SELECT DISTINCT - 8 AS col0
----
-8

query I rowsort
SELECT 67 * + 1 col2
----
67

query I rowsort
SELECT - + 82 AS col2
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4528
SELECT ALL + COUNT( * ) DIV - 79 AS col1, - 88 + CAST( CAST( + + 15 AS SIGNED ) AS SIGNED )
----
0
-73

skipif mysql # not compatible
query II rowsort label-4528
SELECT ALL + COUNT ( * ) / - 79 AS col1, - 88 + CAST ( CAST ( + + 15 AS INTEGER ) AS INTEGER )
----
0
-73

query II rowsort
SELECT 15 - - 8 AS col1, - 69 AS col2
----
23
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-4530
SELECT - 81 DIV + 45, 18 AS col1
----
-1
18

skipif mysql # not compatible
query II rowsort label-4530
SELECT - 81 / + 45, 18 AS col1
----
-1
18

query II rowsort
SELECT DISTINCT + 97 * + 53 AS col0, ( - 51 )
----
5141
-51

query I rowsort
SELECT ALL 67 - - 21
----
88

query II rowsort
SELECT - 16, - 21 AS col2
----
-16
-21

query II rowsort
SELECT 6, - 82 * 81 * - 29 + - 76 AS col0
----
6
192542

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4535
SELECT ALL COUNT( * ) DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL COUNT ( * ) / - 75 AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4536
SELECT NULLIF ( - - COUNT( 67 ), + - COUNT( * ) DIV 20 ) DIV 12
----
0

skipif mysql # not compatible
query I rowsort label-4536
SELECT NULLIF ( - - COUNT ( 67 ), + - COUNT ( * ) / 20 ) / 12
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4537
SELECT ALL 23 AS col1, - CAST( 60 AS SIGNED ) + - 36 * 0 AS col0
----
23
-60

skipif mysql # not compatible
query II rowsort label-4537
SELECT ALL 23 AS col1, - CAST ( 60 AS INTEGER ) + - 36 * 0 AS col0
----
23
-60

query I rowsort
SELECT ALL 31 * + 81
----
2511

query I rowsort
SELECT ALL - COALESCE ( + 93, 93 - 34 - - ( - - ( - 46 ) ) + + ( + 90 ) ) AS col0
----
-93

query I rowsort
SELECT - 67 * - 79 - + ( - + 55 )
----
5348

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT 66 * - + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT 66 * - + COUNT ( * )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT ALL - MAX( - 33 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL - MAX ( - 33 ) AS col1
----
33

query I rowsort
SELECT 22 + - + 32 AS col1
----
-10

query I rowsort
SELECT + 37 col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4545
SELECT COUNT( * ) * CASE MAX( DISTINCT CAST( 67 AS SIGNED ) ) WHEN SUM( ALL + ( - - 19 ) ) + + + 96 + 10 + - 26 THEN NULL ELSE - + COUNT( * ) - - 86 * 22 END * + 44
----
83204

skipif mysql # not compatible
query I rowsort label-4545
SELECT COUNT ( * ) * CASE MAX ( DISTINCT CAST ( 67 AS INTEGER ) ) WHEN SUM ( ALL + ( - - 19 ) ) + + + 96 + 10 + - 26 THEN NULL ELSE - + COUNT ( * ) - - 86 * 22 END * + 44
----
83204

onlyif mysql # aggregate syntax: 
query II rowsort label-4546
SELECT 87 AS col1, - COUNT( * ) * + NULLIF ( - - NULLIF ( + ( 58 ), - ( - 33 ) ), - 78 )
----
87
-58

skipif mysql # not compatible
query II rowsort label-4546
SELECT 87 AS col1, - COUNT ( * ) * + NULLIF ( - - NULLIF ( + ( 58 ), - ( - 33 ) ), - 78 )
----
87
-58

query I rowsort
SELECT 74 + - 50 AS col2
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT DISTINCT + 81 + CAST( COALESCE ( - 83, COALESCE ( - 54, COUNT( * ) * + + 68 ) * 67 + + - COUNT( * ) + - NULLIF ( CAST( NULL AS SIGNED ), + 53 - - 89 ) - - 61 ) AS SIGNED ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT + 81 + CAST ( COALESCE ( - 83, COALESCE ( - 54, COUNT ( * ) * + + 68 ) * 67 + + - COUNT ( * ) + - NULLIF ( CAST ( NULL AS INTEGER ), + 53 - - 89 ) - - 61 ) AS INTEGER ) AS col0
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4549
SELECT ALL - COUNT( * ) AS col0, - 70 DIV - + 89 * - + 6 AS col2
----
-1
0

skipif mysql # not compatible
query II rowsort label-4549
SELECT ALL - COUNT ( * ) AS col0, - 70 / - + 89 * - + 6 AS col2
----
-1
0

query II rowsort
SELECT + 48, 50 * - 43 + - 11 AS col2
----
48
-2161

query I rowsort
SELECT 83 * + - 33
----
-2739

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4552
SELECT ALL 24 + - ( - 32 ) + + 44 + 91 DIV + + ( - ( + ( + - 1 ) ) ) + - COUNT( * ) * COUNT( * ) AS col1
----
190

skipif mysql # not compatible
query I rowsort label-4552
SELECT ALL 24 + - ( - 32 ) + + 44 + 91 / + + ( - ( + ( + - 1 ) ) ) + - COUNT ( * ) * COUNT ( * ) AS col1
----
190

query I rowsort
SELECT DISTINCT + 8 * + 56
----
448

query I rowsort
SELECT ALL - 54 + 93
----
39

query I rowsort
SELECT DISTINCT 59 + 11 AS col0
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4556
SELECT ALL 18 DIV MIN( + + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-4556
SELECT ALL 18 / MIN ( + + 93 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT 73 DIV 81
----
0

skipif mysql # not compatible
query I rowsort label-4557
SELECT 73 / 81
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4558
SELECT ALL - CAST( NULL AS SIGNED ) + + + 90 - - 88 * 27, COUNT( * ) col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4558
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 90 - - 88 * 27, COUNT ( * ) col1
----
NULL
1

query I rowsort
SELECT 5 * - 90 + + NULLIF ( 83, + 83 ) AS col2
----
NULL

query I rowsort
SELECT + - 2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4561
SELECT ALL + - COUNT( * ) * - CAST( - MAX( ALL CAST( NULL AS DECIMAL ) ) AS SIGNED ) * 12 + 8 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + - COUNT ( * ) * - CAST ( - MAX ( ALL CAST ( NULL AS REAL ) ) AS INTEGER ) * 12 + 8 + + 36
----
NULL

query I rowsort
SELECT ALL - - 29 - - 95 col0
----
124

query I rowsort
SELECT + 97 col1
----
97

query II rowsort
SELECT ALL - + 63 AS col0, COALESCE ( 42, + 76, 67 )
----
-63
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4565
SELECT DISTINCT + + 17 DIV + + 34 * - COUNT( * ) AS col0, 83 + 6
----
0
89

skipif mysql # not compatible
query II rowsort label-4565
SELECT DISTINCT + + 17 / + + 34 * - COUNT ( * ) AS col0, 83 + 6
----
0
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4566
SELECT ALL - - CAST( NULL AS SIGNED ) - - 32 + + + 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4566
SELECT ALL - - CAST ( NULL AS INTEGER ) - - 32 + + + 61 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT DISTINCT + + 25 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT + + 25 / 96
----
0

query I rowsort
SELECT - 82 + - 68 + + 10
----
-140

query I rowsort
SELECT 81 * - - NULLIF ( + 52, + - 38 ) + - - 34
----
4246

query II rowsort
SELECT - + 97 col1, 4 AS col1
----
-97
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4571
SELECT + 79 - + 50 * 32 + NULLIF ( - 13, 50 * - 29 ) DIV - + 16 AS col2
----
-1521

skipif mysql # not compatible
query I rowsort label-4571
SELECT + 79 - + 50 * 32 + NULLIF ( - 13, 50 * - 29 ) / - + 16 AS col2
----
-1521

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL - 68 * - + COUNT( ALL 93 )
----
68

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - 68 * - + COUNT ( ALL 93 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT - SUM( + 16 ) col1
----
-16

skipif mysql # not compatible
query I rowsort label-4573
SELECT - SUM ( + 16 ) col1
----
-16

query I rowsort
SELECT DISTINCT 16 col0
----
16

query I rowsort
SELECT ALL + 57 * + 35
----
1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT 25 + - CAST( + - 38 AS SIGNED ) * - 75
----
-2825

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT 25 + - CAST ( + - 38 AS INTEGER ) * - 75
----
-2825

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT ALL SUM( - 33 ) + 76
----
43

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL SUM ( - 33 ) + 76
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT NULLIF ( MAX( + - 71 ), 13 ) * - - 41
----
-2911

skipif mysql # not compatible
query I rowsort label-4578
SELECT NULLIF ( MAX ( + - 71 ), 13 ) * - - 41
----
-2911

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT CASE SUM( DISTINCT - 97 ) WHEN + 19 * + 66 + + + 11 + + 1 - - - 1 * + COUNT( * ) - - 78 * - 60 + + 81 + COUNT( * ) / + MAX( 93 ) THEN 79 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT CASE SUM ( DISTINCT - 97 ) WHEN + 19 * + 66 + + + 11 + + 1 - - - 1 * + COUNT ( * ) - - 78 * - 60 + + 81 + COUNT ( * ) / + MAX ( 93 ) THEN 79 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL - COUNT( * ) * 93 + 12 AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL - COUNT ( * ) * 93 + 12 AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL 48 * CAST( COUNT( * ) AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 48 * CAST ( COUNT ( * ) AS INTEGER )
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4582
SELECT ALL 18 * + COUNT( * ) AS col0, 85 AS col1
----
18
85

skipif mysql # not compatible
query II rowsort label-4582
SELECT ALL 18 * + COUNT ( * ) AS col0, 85 AS col1
----
18
85

query I rowsort
SELECT DISTINCT + 15 col2
----
15

query I rowsort
SELECT ALL 12 * - 2 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT + COUNT( * ) + - 71 * 59 AS col1
----
-4188

skipif mysql # not compatible
query I rowsort label-4585
SELECT + COUNT ( * ) + - 71 * 59 AS col1
----
-4188

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT + - MIN( DISTINCT - ( + 34 ) )
----
34

skipif mysql # not compatible
query I rowsort label-4586
SELECT + - MIN ( DISTINCT - ( + 34 ) )
----
34

query I rowsort
SELECT - + 53 + + 75 * - 97
----
-7328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT DISTINCT CASE + 16 WHEN + + 43 * COUNT( * ) * CASE 79 WHEN - 83 * - - 78 / + - COUNT( + - ( 67 ) ) + - - 23 THEN + + ( 28 ) / COALESCE ( + MAX( DISTINCT - COALESCE ( NULLIF ( + 66, CAST( 29 AS SIGNED ) ), - 34 ) ), - 14 ) WHEN 77 THEN NULL END THEN NULL WHEN - MIN( ALL - ( COALESCE ( - 37, - 19 ) ) ) * + 96 THEN COUNT( * ) END * 63 - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT DISTINCT CASE + 16 WHEN + + 43 * COUNT ( * ) * CASE 79 WHEN - 83 * - - 78 / + - COUNT ( + - ( 67 ) ) + - - 23 THEN + + ( 28 ) / COALESCE ( + MAX ( DISTINCT - COALESCE ( NULLIF ( + 66, CAST ( 29 AS INTEGER ) ), - 34 ) ), - 14 ) WHEN 77 THEN NULL END THEN NULL WHEN - MIN ( ALL - ( COALESCE ( - 37, - 19 ) ) ) * + 96 THEN COUNT ( * ) END * 63 - 97
----
NULL

query I rowsort
SELECT + + 4 AS col2
----
4

query I rowsort
SELECT - 98 * 71 + 31 AS col0
----
-6927

query I rowsort
SELECT - ( - + 85 ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4592
SELECT ALL + + ( + + 2 ) AS col1, COALESCE ( - COUNT( * ), - 47, 37 * - - 6 )
----
2
-1

skipif mysql # not compatible
query II rowsort label-4592
SELECT ALL + + ( + + 2 ) AS col1, COALESCE ( - COUNT ( * ), - 47, 37 * - - 6 )
----
2
-1

query I rowsort
SELECT DISTINCT + COALESCE ( - + ( 91 ), + 14, - 64 + + - 23 )
----
-91

query I rowsort
SELECT - 0 + + 15 AS col2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4595
SELECT ALL + 47 * + 19 - - 58 + - 94 AS col0, + 30 + + 6 + 20 * 51 + + 79 * CAST( NULL AS SIGNED )
----
857
NULL

skipif mysql # not compatible
query II rowsort label-4595
SELECT ALL + 47 * + 19 - - 58 + - 94 AS col0, + 30 + + 6 + 20 * 51 + + 79 * CAST ( NULL AS INTEGER )
----
857
NULL

query I rowsort
SELECT ALL + ( + 54 ) AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT DISTINCT + 96 * + - NULLIF ( - 10, + COUNT( * ) * 48 - 35 ) + - + ( 72 ) AS col0
----
888

skipif mysql # not compatible
query I rowsort label-4597
SELECT DISTINCT + 96 * + - NULLIF ( - 10, + COUNT ( * ) * 48 - 35 ) + - + ( 72 ) AS col0
----
888

query I rowsort
SELECT DISTINCT + 47 AS col2
----
47

query I rowsort
SELECT - - 18 * - 46 + + 24
----
-804

query I rowsort
SELECT - + 52 AS col2
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4601
SELECT - 54 DIV - 45 + + COUNT( * ) * 99
----
100

skipif mysql # not compatible
query I rowsort label-4601
SELECT - 54 / - 45 + + COUNT ( * ) * 99
----
100

query I rowsort
SELECT - + 29
----
-29

query I rowsort
SELECT DISTINCT - 4 col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4604
SELECT - + 58 DIV - - 40 * - COUNT( * ) + - - 69 + - 50 * + + 38 * - + NULLIF ( + 0, - 59 )
----
70

skipif mysql # not compatible
query I rowsort label-4604
SELECT - + 58 / - - 40 * - COUNT ( * ) + - - 69 + - 50 * + + 38 * - + NULLIF ( + 0, - 59 )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT ALL - + COUNT( * ) + + 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - + COUNT ( * ) + + 59 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL SUM( DISTINCT + + 48 ) AS col0
----
48

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL SUM ( DISTINCT + + 48 ) AS col0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT DISTINCT - COUNT( * ) + - 83 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-4607
SELECT DISTINCT - COUNT ( * ) + - 83 AS col2
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4608
SELECT ALL 14 * - 86 * 22 * NULLIF ( + 95, - CAST( NULL AS SIGNED ) )
----
-2516360

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL 14 * - 86 * 22 * NULLIF ( + 95, - CAST ( NULL AS INTEGER ) )
----
-2516360

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL 73 * - - 27 / - CASE 43 WHEN - + 25 - 68 + + COUNT( * ) - + 33 / 28 THEN + 19 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL 73 * - - 27 / - CASE 43 WHEN - + 25 - 68 + + COUNT ( * ) - + 33 / 28 THEN + 19 END AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4610
SELECT - 79 DIV + SUM( - + 37 )
----
2

skipif mysql # not compatible
query I rowsort label-4610
SELECT - 79 / + SUM ( - + 37 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4611
SELECT ALL - CAST( - 9 AS SIGNED ) + - 9 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT ALL - CAST ( - 9 AS INTEGER ) + - 9 AS col1
----
0

query I rowsort
SELECT - 90 - 26
----
-116

query I rowsort
SELECT - 66 + 85 * + + ( + - 44 )
----
-3806

onlyif mysql # aggregate syntax: 
query II rowsort label-4614
SELECT 56 AS col1, - COUNT( * ) AS col2
----
56
-1

skipif mysql # not compatible
query II rowsort label-4614
SELECT 56 AS col1, - COUNT ( * ) AS col2
----
56
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4615
SELECT ALL + 26 * + + 42 * + 42, COUNT( ALL - - 76 ) DIV 76 - + 4 AS col0
----
45864
-4

skipif mysql # not compatible
query II rowsort label-4615
SELECT ALL + 26 * + + 42 * + 42, COUNT ( ALL - - 76 ) / 76 - + 4 AS col0
----
45864
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4617
SELECT DISTINCT 13 * + SUM( ALL + - 95 ) * + - CAST( NULL AS SIGNED ) * 44 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT 13 * + SUM ( ALL + - 95 ) * + - CAST ( NULL AS INTEGER ) * 44 * + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT 72 + - + 64 AS col1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4619
SELECT DISTINCT - CAST( 85 AS SIGNED ) + - 58 + 44
----
-99

skipif mysql # not compatible
query I rowsort label-4619
SELECT DISTINCT - CAST ( 85 AS INTEGER ) + - 58 + 44
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL 7 + - 22 + + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 7 + - 22 + + COUNT ( * )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 59 - + 9 col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4623
SELECT ALL 64 DIV + + 33
----
1

skipif mysql # not compatible
query I rowsort label-4623
SELECT ALL 64 / + + 33
----
1

query I rowsort
SELECT ( + + 14 ) AS col0
----
14

query I rowsort
SELECT ALL + - 1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT - 1 * 51 + - NULLIF ( 68, - 70 * + CASE 18 WHEN 95 * + 34 * - 63 - 79 THEN 48 WHEN + 63 THEN NULL ELSE NULL END ) - - 54 DIV 14 * 49 + - 59 AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT - 1 * 51 + - NULLIF ( 68, - 70 * + CASE 18 WHEN 95 * + 34 * - 63 - 79 THEN 48 WHEN + 63 THEN NULL ELSE NULL END ) - - 54 / 14 * 49 + - 59 AS col2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT + COUNT( ALL + 62 )
----
1

skipif mysql # not compatible
query I rowsort label-4627
SELECT + COUNT ( ALL + 62 )
----
1

query II rowsort
SELECT + 89 + + 93 + ( + 55 ) + + 8 * + 82, + 84 * + 77 * 15 AS col0
----
893
97020

query I rowsort
SELECT ALL + 55 col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4630
SELECT DISTINCT - NULLIF ( - + 99, - COUNT( * ) ) * + + COUNT( + CAST( 80 AS SIGNED ) ) + - - 92 AS col2
----
191

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - NULLIF ( - + 99, - COUNT ( * ) ) * + + COUNT ( + CAST ( 80 AS INTEGER ) ) + - - 92 AS col2
----
191

query I rowsort
SELECT ALL + ( - 41 ) * - 74 AS col1
----
3034

onlyif mysql # DIV for integer division: 
query I rowsort label-4632
SELECT ALL - - 0 DIV - 30 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL - - 0 / - 30 AS col1
----
0

query I rowsort
SELECT + + 97 * - 43
----
-4171

query I rowsort
SELECT ALL + 31 col2
----
31

query II rowsort
SELECT DISTINCT + 62 AS col0, 94 * - 89 * + 77
----
62
-644182

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4636
SELECT + + 12 + - NULLIF ( ( + + NULLIF ( + 75, ( + 0 ) ) ), 83 + + - CASE - COALESCE ( + 15, - 15 - - 85 ) WHEN + 17 * 45 THEN CAST( + 2 AS DECIMAL ) END ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-4636
SELECT + + 12 + - NULLIF ( ( + + NULLIF ( + 75, ( + 0 ) ) ), 83 + + - CASE - COALESCE ( + 15, - 15 - - 85 ) WHEN + 17 * 45 THEN CAST ( + 2 AS REAL ) END ) AS col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT + + 62 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT + + 62 * - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT DISTINCT + 88 AS col2
----
88

query II rowsort
SELECT ALL 28, + NULLIF ( - - 31, + - 87 * - 96 * + CASE + 79 WHEN + 72 THEN NULL ELSE 16 / 54 END ) AS col2
----
28
31

query I rowsort
SELECT - - ( 63 ) * + ( - 78 ) + - - 98 * + + 47 AS col2
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT DISTINCT SUM( DISTINCT 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT SUM ( DISTINCT 11 ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT ALL - + 71 * 83 + + 64 - - 90 DIV 59
----
-5828

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - + 71 * 83 + + 64 - - 90 / 59
----
-5828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT - CAST( + 91 AS SIGNED )
----
-91

skipif mysql # not compatible
query I rowsort label-4643
SELECT - CAST ( + 91 AS INTEGER )
----
-91

query II rowsort
SELECT - 65 AS col1, - ( 24 ) * 62 * 81 AS col2
----
-65
-120528

query I rowsort
SELECT + 91 + + + 74 AS col0
----
165

query I rowsort
SELECT - 73 - - 76 + - 86 - 97 * - + 98 + - 53
----
9370

query I rowsort
SELECT ALL ( - 95 ) AS col2
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4648
SELECT + COUNT( * ) + + + COUNT( * ), MAX( ALL + 83 ) * - - 68 + + + 56 + + 11 + + 36 col2
----
2
5747

skipif mysql # not compatible
query II rowsort label-4648
SELECT + COUNT ( * ) + + + COUNT ( * ), MAX ( ALL + 83 ) * - - 68 + + + 56 + + 11 + + 36 col2
----
2
5747

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT - ( + COUNT( * ) ) + - 28 + + + COUNT( * ) * - 22 * 67
----
-1503

skipif mysql # not compatible
query I rowsort label-4649
SELECT - ( + COUNT ( * ) ) + - 28 + + + COUNT ( * ) * - 22 * 67
----
-1503

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT CAST( + 28 AS SIGNED )
----
28

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT CAST ( + 28 AS INTEGER )
----
28

query I rowsort
SELECT ALL - 67 + + 19
----
-48

query I rowsort
SELECT - 37 + - 0 AS col1
----
-37

query I rowsort
SELECT ALL COALESCE ( + 69, + - 92 * - - 55 - + + 95 )
----
69

query I rowsort
SELECT - ( 55 ) + - 38 + - + 2 + + 97
----
2

query I rowsort
SELECT 76 + 13
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT ALL - 68 - - CAST( NULL AS SIGNED ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL - 68 - - CAST ( NULL AS INTEGER ) * 83
----
NULL

query I rowsort
SELECT 83 * 15 * 68
----
84660

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4658
SELECT SUM( + 99 ) + 87 - + 7 + + ( + NULLIF ( + - ( - 80 ), - CAST( NULL AS DECIMAL ) ) ) AS col2
----
259

skipif mysql # not compatible
query I rowsort label-4658
SELECT SUM ( + 99 ) + 87 - + 7 + + ( + NULLIF ( + - ( - 80 ), - CAST ( NULL AS REAL ) ) ) AS col2
----
259

query I rowsort
SELECT 57 * + 13 AS col0
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT COUNT( + 86 ) * - 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-4660
SELECT COUNT ( + 86 ) * - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT 63 + - + 46 * - - ( - - 22 ) + - COUNT( * ) AS col1
----
-950

skipif mysql # not compatible
query I rowsort label-4661
SELECT 63 + - + 46 * - - ( - - 22 ) + - COUNT ( * ) AS col1
----
-950

query II rowsort
SELECT 14 AS col0, + 33 AS col2
----
14
33

query I rowsort
SELECT 19 col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT - COALESCE ( 55, + - 38 + + 29 + + COUNT( * ) ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT - COALESCE ( 55, + - 38 + + 29 + + COUNT ( * ) ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - COUNT( * ) * + - 3 * 43
----
129

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - COUNT ( * ) * + - 3 * 43
----
129

query II rowsort
SELECT + - 80 AS col1, 25 * - 23 * + 12 AS col2
----
-80
-6900

query II rowsort
SELECT ALL - ( - 80 ), NULLIF ( + 71, + 88 ) AS col0
----
80
71

query I rowsort
SELECT ALL - + 52 AS col1
----
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-4669
SELECT ALL - 69 AS col2, 84 DIV 95 * - 90 AS col2
----
-69
0

skipif mysql # not compatible
query II rowsort label-4669
SELECT ALL - 69 AS col2, 84 / 95 * - 90 AS col2
----
-69
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4670
SELECT MIN( DISTINCT - - 60 ) AS col1, - 92
----
60
-92

skipif mysql # not compatible
query II rowsort label-4670
SELECT MIN ( DISTINCT - - 60 ) AS col1, - 92
----
60
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4671
SELECT + 72 * + CAST( NULL AS SIGNED ) - - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4671
SELECT + 72 * + CAST ( NULL AS INTEGER ) - - 6
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT + 9 DIV + - 50 + + 14
----
14

skipif mysql # not compatible
query I rowsort label-4672
SELECT + 9 / + - 50 + + 14
----
14

query I rowsort
SELECT - 49 * COALESCE ( - 19, + 24 )
----
931

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT - 18 + COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-4674
SELECT - 18 + COUNT ( * ) AS col2
----
-17

query I rowsort
SELECT ALL - - ( + 13 ) col1
----
13

query I rowsort
SELECT ALL 1 + - 56 AS col0
----
-55

query I rowsort
SELECT DISTINCT - + 41
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4678
SELECT ALL - 80 + - 8 + + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-4678
SELECT ALL - 80 + - 8 + + COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4679
SELECT + 85 + 0 - - + 49 DIV CAST( + - 34 AS SIGNED ) * - 52 * + + COUNT( * ) AS col1
----
137

skipif mysql # not compatible
query I rowsort label-4679
SELECT + 85 + 0 - - + 49 / CAST ( + - 34 AS INTEGER ) * - 52 * + + COUNT ( * ) AS col1
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4680
SELECT DISTINCT - + COUNT( * ) DIV + 41 - - + 42 + ( 11 ) col1
----
53

skipif mysql # not compatible
query I rowsort label-4680
SELECT DISTINCT - + COUNT ( * ) / + 41 - - + 42 + ( 11 ) col1
----
53

query I rowsort
SELECT ALL - - ( - 3 ) AS col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT - CASE + 8 WHEN + + ( + 31 ) * 35 + - MAX( ALL + 1 ) + - 85 THEN + 9 / - ( 65 ) ELSE NULL END + + + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - CASE + 8 WHEN + + ( + 31 ) * 35 + - MAX ( ALL + 1 ) + - 85 THEN + 9 / - ( 65 ) ELSE NULL END + + + 86
----
NULL

query II rowsort
SELECT DISTINCT - 46, + 47 * - + 90 AS col1
----
-46
-4230

query I rowsort
SELECT DISTINCT 77 + 82 + - - 26 AS col2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL + COUNT( * ) + + - 18 - - + 82
----
65

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL + COUNT ( * ) + + - 18 - - + 82
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT + - ( + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4686
SELECT + - ( + COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT + ( - 71 ) col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - COUNT( * ) + + + 38
----
37

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COUNT ( * ) + + + 38
----
37

query I rowsort
SELECT ( - 73 ) + - 63 AS col1
----
-136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT 96 + COUNT( * ) * CAST( NULL AS SIGNED ) * 84 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT 96 + COUNT ( * ) * CAST ( NULL AS INTEGER ) * 84 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL 55 + - 40 + 37 * + 52 + - 70 * - 33 * + COUNT( * ) AS col0
----
4249

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL 55 + - 40 + 37 * + 52 + - 70 * - 33 * + COUNT ( * ) AS col0
----
4249

query I rowsort
SELECT 67 * - COALESCE ( + + 43, + - 64 + 37 * - 16 ) * 9 + - - ( + + 0 ) AS col1
----
-25929

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4693
SELECT ALL 95 - - COUNT( * ) AS col1, MAX( DISTINCT 62 ) * + ( + CAST( - - 97 AS SIGNED ) ) AS col0
----
96
6014

skipif mysql # not compatible
query II rowsort label-4693
SELECT ALL 95 - - COUNT ( * ) AS col1, MAX ( DISTINCT 62 ) * + ( + CAST ( - - 97 AS INTEGER ) ) AS col0
----
96
6014

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT SUM( + 49 ) - - ( 48 ) + + 14
----
111

skipif mysql # not compatible
query I rowsort label-4694
SELECT SUM ( + 49 ) - - ( 48 ) + + 14
----
111

query I rowsort
SELECT ALL 89 * - + 28 AS col2
----
-2492

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT CAST( 64 AS SIGNED ) + 20 + + ( - + ( + 26 ) )
----
58

skipif mysql # not compatible
query I rowsort label-4696
SELECT CAST ( 64 AS INTEGER ) + 20 + + ( - + ( + 26 ) )
----
58

query I rowsort
SELECT ALL 53 * + + 59 AS col2
----
3127

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT 92 - + 14, 32 * - MIN( + 58 ) + + 82 + 45 - - + ( + + 74 ) AS col2
----
78
-1655

skipif mysql # not compatible
query II rowsort label-4698
SELECT 92 - + 14, 32 * - MIN ( + 58 ) + + 82 + 45 - - + ( + + 74 ) AS col2
----
78
-1655

query I rowsort
SELECT + 57 - - 48
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4700
SELECT - CASE - - ( AVG ( DISTINCT + 19 ) ) WHEN + - COUNT( * ) THEN + - 37 WHEN + COUNT( * ) THEN NULL WHEN + 14 THEN + COALESCE ( 71, - 22 * - COUNT( * ) + - 75 ) * - NULLIF ( + SUM( + CAST( 89 AS SIGNED ) ), 77 ) + 51 ELSE NULL END * + 23 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - CASE - - ( AVG ( DISTINCT + 19 ) ) WHEN + - COUNT ( * ) THEN + - 37 WHEN + COUNT ( * ) THEN NULL WHEN + 14 THEN + COALESCE ( 71, - 22 * - COUNT ( * ) + - 75 ) * - NULLIF ( + SUM ( + CAST ( 89 AS INTEGER ) ), 77 ) + 51 ELSE NULL END * + 23 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4701
SELECT DISTINCT + - 91 DIV + CAST( + 25 AS SIGNED ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT + - 91 / + CAST ( + 25 AS INTEGER ) AS col2
----
-3

query I rowsort
SELECT + 33 * + + 57 * - 29 + 30 AS col1
----
-54519

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4703
SELECT - COALESCE ( - + 85, + + NULLIF ( - - 27, - 94 ) + - 87 - - - 78 + - 67 * - - COALESCE ( + MIN( + - 72 ), 58 ), - - 75 ) DIV + + 45 col2
----
1

skipif mysql # not compatible
query I rowsort label-4703
SELECT - COALESCE ( - + 85, + + NULLIF ( - - 27, - 94 ) + - 87 - - - 78 + - 67 * - - COALESCE ( + MIN ( + - 72 ), 58 ), - - 75 ) / + + 45 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT + - NULLIF ( + COUNT( * ), + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-4704
SELECT + - NULLIF ( + COUNT ( * ), + 81 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + 16 * - SUM( + 11 ) AS col2
----
-176

skipif mysql # not compatible
query I rowsort label-4705
SELECT + 16 * - SUM ( + 11 ) AS col2
----
-176

onlyif mysql # DIV for integer division: 
query II rowsort label-4706
SELECT DISTINCT - + ( - + 64 ), + 54 DIV 53 AS col2
----
64
1

skipif mysql # not compatible
query II rowsort label-4706
SELECT DISTINCT - + ( - + 64 ), + 54 / 53 AS col2
----
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL + + 24 + - + MIN( + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL + + 24 + - + MIN ( + 25 )
----
-1

query I rowsort
SELECT + - 81 AS col0
----
-81

query I rowsort
SELECT DISTINCT - - 8 AS col0
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT + + COUNT( DISTINCT 70 ) + + NULLIF ( - CAST( 87 AS SIGNED ), - 20 + + 44 + - 85 ) * COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT + + COUNT ( DISTINCT 70 ) + + NULLIF ( - CAST ( 87 AS INTEGER ), - 20 + + 44 + - 85 ) * COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT ALL + 90 + + 43 + + COUNT( * ) AS col2
----
134

skipif mysql # not compatible
query I rowsort label-4711
SELECT ALL + 90 + + 43 + + COUNT ( * ) AS col2
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - COUNT( * ) * - 36 + + COALESCE ( - - 95, + 39, 26 * - ( + 37 ) + + - 53 ) + - CASE - + NULLIF ( + 24, + 53 ) WHEN - - 43 * - COUNT( * ) * 22 / + + 88 THEN 89 END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( * ) * - 36 + + COALESCE ( - - 95, + 39, 26 * - ( + 37 ) + + - 53 ) + - CASE - + NULLIF ( + 24, + 53 ) WHEN - - 43 * - COUNT ( * ) * 22 / + + 88 THEN 89 END * + 64
----
NULL

query I rowsort
SELECT DISTINCT - + 88 AS col2
----
-88

query I rowsort
SELECT 12 * 28 AS col2
----
336

query II rowsort
SELECT 72 AS col0, COALESCE ( - 24, + 34 )
----
72
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL 55 - - COUNT( 96 ) * - 6 + + + 34 + - 32 + 11
----
62

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL 55 - - COUNT ( 96 ) * - 6 + + + 34 + - 32 + 11
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT 48 - - + MAX( - 55 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-4717
SELECT 48 - - + MAX ( - 55 ) AS col2
----
-7

query I rowsort
SELECT 67 * + + 6 + - + 29 AS col2
----
373

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT COALESCE ( - - MIN( - 41 ), - 34, - + 97, 7 + + 21 )
----
-41

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT COALESCE ( - - MIN ( - 41 ), - 34, - + 97, 7 + + 21 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT ALL + 67 - + COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + 67 - + COUNT ( * )
----
66

query I rowsort
SELECT + 90 + + + 57 AS col1
----
147

query I rowsort
SELECT ALL 95 * + 37
----
3515

query I rowsort
SELECT - 1 + + - 88 + 19
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4724
SELECT + CAST( + 34 AS SIGNED ) + - + 50 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4724
SELECT + CAST ( + 34 AS INTEGER ) + - + 50 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4725
SELECT - COALESCE ( - - 16, 58 ), + MIN( - 29 ) AS col2
----
-16
-29

skipif mysql # not compatible
query II rowsort label-4725
SELECT - COALESCE ( - - 16, 58 ), + MIN ( - 29 ) AS col2
----
-16
-29

query I rowsort
SELECT + 54 + - - 28
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT + 60 + + 73 + - 75 * - - ( COUNT( * ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-4727
SELECT + 60 + + 73 + - 75 * - - ( COUNT ( * ) ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT + MAX( ALL 35 ) * COUNT( * ) * + 32 col1
----
1120

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MAX ( ALL 35 ) * COUNT ( * ) * + 32 col1
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT - SUM( 8 )
----
-8

skipif mysql # not compatible
query I rowsort label-4729
SELECT - SUM ( 8 )
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT + 36 + - + MAX( ALL - 92 ) AS col2, 81 AS col1
----
128
81

skipif mysql # not compatible
query II rowsort label-4730
SELECT + 36 + - + MAX ( ALL - 92 ) AS col2, 81 AS col1
----
128
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT + COUNT( * ) * + 20
----
20

skipif mysql # not compatible
query I rowsort label-4731
SELECT + COUNT ( * ) * + 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT ALL COUNT( * ) * 65 * - 6 col1, 85
----
-390
85

skipif mysql # not compatible
query II rowsort label-4732
SELECT ALL COUNT ( * ) * 65 * - 6 col1, 85
----
-390
85

onlyif mysql # aggregate syntax: 
query II rowsort label-4733
SELECT ALL 5 col2, + NULLIF ( COALESCE ( - - 92, - 85, + 62 * + 94 ), + MIN( ( + - 17 ) ) )
----
5
92

skipif mysql # not compatible
query II rowsort label-4733
SELECT ALL 5 col2, + NULLIF ( COALESCE ( - - 92, - 85, + 62 * + 94 ), + MIN ( ( + - 17 ) ) )
----
5
92

query I rowsort
SELECT + 0 + - 49 + + 53 * - + 27 col0
----
-1480

query I rowsort
SELECT - NULLIF ( + + 10, - 71 * - 49 * - 93 ) AS col1
----
-10

query I rowsort
SELECT + 76 + 9 + + NULLIF ( - 94, 91 )
----
-9

query II rowsort
SELECT ALL 25 * + ( 71 ), + 49 AS col1
----
1775
49

query I rowsort
SELECT - - 50 col0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT + ( - 83 ) DIV 23
----
-3

skipif mysql # not compatible
query I rowsort label-4739
SELECT + ( - 83 ) / 23
----
-3

query I rowsort
SELECT ALL + 79 * - + 6 AS col1
----
-474

query I rowsort
SELECT - - 40 AS col1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4742
SELECT + - 99 + ( 87 ) - 58 + + 49 DIV - + ( - 64 ) * + + COUNT( * ) - - + 6 * - ( + 7 ) AS col0
----
-112

skipif mysql # not compatible
query I rowsort label-4742
SELECT + - 99 + ( 87 ) - 58 + + 49 / - + ( - 64 ) * + + COUNT ( * ) - - + 6 * - ( + 7 ) AS col0
----
-112

query I rowsort
SELECT + 22 * 30
----
660

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4744
SELECT - + CAST( NULL AS DECIMAL ) + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT - + CAST ( NULL AS REAL ) + + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT COUNT( ALL - - 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4745
SELECT COUNT ( ALL - - 70 ) AS col1
----
1

query I rowsort
SELECT - + 19 * + 65
----
-1235

query I rowsort
SELECT DISTINCT + 44 * 31 * + - 37 + + + 33
----
-50435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4748
SELECT ALL + - 72 * + + 79 + + COUNT( * ) + - ( - - 60 ) * + - CAST( NULL AS SIGNED ) * + 46 * + 9 + 0 + + + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT ALL + - 72 * + + 79 + + COUNT ( * ) + - ( - - 60 ) * + - CAST ( NULL AS INTEGER ) * + 46 * + 9 + 0 + + + 94 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT + 24 * - CAST( SUM( ALL 11 ) AS SIGNED ) AS col0
----
-264

skipif mysql # not compatible
query I rowsort label-4749
SELECT + 24 * - CAST ( SUM ( ALL 11 ) AS INTEGER ) AS col0
----
-264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4750
SELECT ALL + 3 DIV + MAX( DISTINCT - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + 3 / + MAX ( DISTINCT - 38 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4751
SELECT + 25 DIV + - MAX( - + ( 89 ) ) - - 19
----
19

skipif mysql # not compatible
query I rowsort label-4751
SELECT + 25 / + - MAX ( - + ( 89 ) ) - - 19
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT + + ( CAST( 11 AS SIGNED ) ) AS col0
----
11

skipif mysql # not compatible
query I rowsort label-4752
SELECT + + ( CAST ( 11 AS INTEGER ) ) AS col0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4753
SELECT - - 17 + 58 * 24 AS col2, + COUNT( * )
----
1409
1

skipif mysql # not compatible
query II rowsort label-4753
SELECT - - 17 + 58 * 24 AS col2, + COUNT ( * )
----
1409
1

query II rowsort
SELECT 74, - ( - + 92 ) AS col2
----
74
92

query I rowsort
SELECT ALL + + 34 * - 74
----
-2516

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - COUNT( * ) * 33 * 13 AS col0
----
-429

skipif mysql # not compatible
query I rowsort label-4756
SELECT - COUNT ( * ) * 33 * 13 AS col0
----
-429

query II rowsort
SELECT DISTINCT + ( + 94 ) AS col2, + 85 AS col0
----
94
85

query I rowsort
SELECT DISTINCT + ( - 91 ) * - 92 + + 28 + - 27
----
8373

query I rowsort
SELECT DISTINCT + ( - + 40 )
----
-40

query I rowsort
SELECT ALL + 81 * 13
----
1053

query I rowsort
SELECT DISTINCT + ( - 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT - 84 + SUM( DISTINCT + - 76 )
----
-160

skipif mysql # not compatible
query I rowsort label-4762
SELECT - 84 + SUM ( DISTINCT + - 76 )
----
-160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4763
SELECT + CAST( NULL AS SIGNED ) * 74, - 57 * 64 AS col0
----
NULL
-3648

skipif mysql # not compatible
query II rowsort label-4763
SELECT + CAST ( NULL AS INTEGER ) * 74, - 57 * 64 AS col0
----
NULL
-3648

query I rowsort
SELECT ALL ( 4 )
----
4

query I rowsort
SELECT + 60 + + 30 * 60 AS col0
----
1860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT ALL CAST( - 13 AS SIGNED ) col0
----
-13

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL CAST ( - 13 AS INTEGER ) col0
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-4767
SELECT - ( - 79 ) * - COUNT( * ) - - 36 AS col0, + 24
----
-43
24

skipif mysql # not compatible
query II rowsort label-4767
SELECT - ( - 79 ) * - COUNT ( * ) - - 36 AS col0, + 24
----
-43
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT - NULLIF ( + + 85, ( + COUNT( * ) ) / 10 + + 28 + - ( - 69 ) - 72 + + 1 + - 69 * + CASE - + 92 WHEN 1 THEN NULL WHEN 77 THEN - 54 END - - SUM( + + 15 ) + + 32 * + 44 / + 21 ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-4768
SELECT - NULLIF ( + + 85, ( + COUNT ( * ) ) / 10 + + 28 + - ( - 69 ) - 72 + + 1 + - 69 * + CASE - + 92 WHEN 1 THEN NULL WHEN 77 THEN - 54 END - - SUM ( + + 15 ) + + 32 * + 44 / + 21 ) AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT NULLIF ( - - 95, 81 * + COUNT( * ) - + + 73 / 98 * COUNT( * ) + COUNT( - 22 ) + + 82 ) * - 13 * - 83 + - - 10 * 83 - + - 48 col1
----
103383

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT NULLIF ( - - 95, 81 * + COUNT ( * ) - + + 73 / 98 * COUNT ( * ) + COUNT ( - 22 ) + + 82 ) * - 13 * - 83 + - - 10 * 83 - + - 48 col1
----
103383

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4770
SELECT - CAST( NULL AS DECIMAL ) * - 26 * + 46 / + - 17 * 25 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4770
SELECT - CAST ( NULL AS REAL ) * - 26 * + 46 / + - 17 * 25 * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4771
SELECT DISTINCT ( + 76 ) AS col2, COUNT( * ) + 76 + 98 DIV 30 * + + 25
----
76
152

skipif mysql # not compatible
query II rowsort label-4771
SELECT DISTINCT ( + 76 ) AS col2, COUNT ( * ) + 76 + 98 / 30 * + + 25
----
76
152

query I rowsort
SELECT ALL ( + - 40 ) * + 78 AS col1
----
-3120

query I rowsort
SELECT - CASE + ( - 39 ) WHEN 30 + + 73 * - 33 THEN - 96 WHEN + 50 THEN + 48 ELSE 28 END
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4774
SELECT ALL CAST( 80 AS SIGNED )
----
80

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL CAST ( 80 AS INTEGER )
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4775
SELECT DISTINCT - 19 * - NULLIF ( + + NULLIF ( - + 45, MIN( - 13 ) + + + 14 * - 78 * - MAX( DISTINCT 64 ) ), + + 92 + COUNT( * ) ) AS col1, - CAST( NULL AS SIGNED ) * 87
----
-855
NULL

skipif mysql # not compatible
query II rowsort label-4775
SELECT DISTINCT - 19 * - NULLIF ( + + NULLIF ( - + 45, MIN ( - 13 ) + + + 14 * - 78 * - MAX ( DISTINCT 64 ) ), + + 92 + COUNT ( * ) ) AS col1, - CAST ( NULL AS INTEGER ) * 87
----
-855
NULL

query I rowsort
SELECT - NULLIF ( 55, 49 )
----
-55

query I rowsort
SELECT ALL 0 * 10 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4778
SELECT - + ( + CAST( NULL AS SIGNED ) ) + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4778
SELECT - + ( + CAST ( NULL AS INTEGER ) ) + + 92
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4779
SELECT CASE COUNT( - + 36 ) WHEN + COUNT( * ) THEN 77 / - + 4 + + - 67 + - 51 - + - ( - - 42 ) * - 37 / - 14 + + CAST( NULL AS DECIMAL ) + 47 * + 65 * COALESCE ( NULLIF ( - 12, 7 - 19 * COUNT( * ) ), 18 * + ( - 96 * 61 ) ) WHEN NULLIF ( + 29, - 49 ) * NULLIF ( 81 * 11, - COUNT( * ) + 10 ) - + 13 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT CASE COUNT ( - + 36 ) WHEN + COUNT ( * ) THEN 77 / - + 4 + + - 67 + - 51 - + - ( - - 42 ) * - 37 / - 14 + + CAST ( NULL AS REAL ) + 47 * + 65 * COALESCE ( NULLIF ( - 12, 7 - 19 * COUNT ( * ) ), 18 * + ( - 96 * 61 ) ) WHEN NULLIF ( + 29, - 49 ) * NULLIF ( 81 * 11, - COUNT ( * ) + 10 ) - + 13 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - + 28 * + 47
----
-1316

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + - MIN( + 54 ) * 46 AS col2
----
-2484

skipif mysql # not compatible
query I rowsort label-4781
SELECT + - MIN ( + 54 ) * 46 AS col2
----
-2484

query I rowsort
SELECT ALL + 84 + + 40 + ( 42 ) AS col1
----
166

query I rowsort
SELECT DISTINCT + ( - 58 )
----
-58

query I rowsort
SELECT DISTINCT - 57 + - 0 - - 47 col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT ALL MAX( ALL + 59 ) + - 9 - 24 * + - 92 AS col1
----
2258

skipif mysql # not compatible
query I rowsort label-4785
SELECT ALL MAX ( ALL + 59 ) + - 9 - 24 * + - 92 AS col1
----
2258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4786
SELECT + CAST( - CASE - - 82 WHEN 92 THEN NULL WHEN 55 THEN NULL WHEN - NULLIF ( + 89, - 99 ) * + - 24 / + 51 + + 89 - + 48 + - 51 - - 2 - CAST( NULL AS SIGNED ) THEN - 78 END AS SIGNED ) + - 6, + 65 * 0 + + 14 AS col1
----
NULL
14

skipif mysql # not compatible
query II rowsort label-4786
SELECT + CAST ( - CASE - - 82 WHEN 92 THEN NULL WHEN 55 THEN NULL WHEN - NULLIF ( + 89, - 99 ) * + - 24 / + 51 + + 89 - + 48 + - 51 - - 2 - CAST ( NULL AS INTEGER ) THEN - 78 END AS INTEGER ) + - 6, + 65 * 0 + + 14 AS col1
----
NULL
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT DISTINCT ( 91 ) * - 43 * - + COUNT( * ) * + 91
----
356083

skipif mysql # not compatible
query I rowsort label-4787
SELECT DISTINCT ( 91 ) * - 43 * - + COUNT ( * ) * + 91
----
356083

query I rowsort
SELECT DISTINCT + 62 AS col2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4789
SELECT - MAX( ALL + - 30 ) DIV 6 + + 58 + + - 68 * - - 15
----
-957

skipif mysql # not compatible
query I rowsort label-4789
SELECT - MAX ( ALL + - 30 ) / 6 + + 58 + + - 68 * - - 15
----
-957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4790
SELECT ALL + CAST( - 55 AS SIGNED ), 34 + 99 AS col2
----
-55
133

skipif mysql # not compatible
query II rowsort label-4790
SELECT ALL + CAST ( - 55 AS INTEGER ), 34 + 99 AS col2
----
-55
133

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT ALL 94 DIV + 9 - - 50 AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL 94 / + 9 - - 50 AS col2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT ALL 28 * + 80 + + + CAST( NULL AS SIGNED ) * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL 28 * + 80 + + + CAST ( NULL AS INTEGER ) * + 6
----
NULL

query I rowsort
SELECT DISTINCT + ( + 95 )
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4794
SELECT DISTINCT - 22 DIV ( 54 )
----
0

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - 22 / ( 54 )
----
0

query I rowsort
SELECT 76 * + ( - + ( 88 ) ) AS col1
----
-6688

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT 4 * - - COUNT( * ) + - + 17 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-4796
SELECT 4 * - - COUNT ( * ) + - + 17 AS col2
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4797
SELECT CASE + 36 WHEN 88 * + SUM( - ( + + 89 ) ) THEN - 12 WHEN + 93 * + COALESCE ( - ( - 33 ), 22 + + 43 ) * - 85 + + + 65 * + COUNT( * ) THEN CAST( NULL AS SIGNED ) / 19 ELSE + CASE + - 37 WHEN 93 - - MIN( - 5 ) THEN 92 + 16 * ( - 26 ) END / + COALESCE ( 44 * + AVG ( ALL + CAST( + 64 AS SIGNED ) ), + 51, 61 + COUNT( * ) ) END * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-4797
SELECT CASE + 36 WHEN 88 * + SUM ( - ( + + 89 ) ) THEN - 12 WHEN + 93 * + COALESCE ( - ( - 33 ), 22 + + 43 ) * - 85 + + + 65 * + COUNT ( * ) THEN CAST ( NULL AS INTEGER ) / 19 ELSE + CASE + - 37 WHEN 93 - - MIN ( - 5 ) THEN 92 + 16 * ( - 26 ) END / + COALESCE ( 44 * + AVG ( ALL + CAST ( + 64 AS INTEGER ) ), + 51, 61 + COUNT ( * ) ) END * + 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT ALL - COUNT( * ) col1, - 94 AS col0
----
-1
-94

skipif mysql # not compatible
query II rowsort label-4798
SELECT ALL - COUNT ( * ) col1, - 94 AS col0
----
-1
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4799
SELECT + MIN( - 52 ) * - CAST( + COUNT( * ) AS SIGNED ) * + - SUM( DISTINCT - - 69 ) * - - 73 + + CAST( - COALESCE ( + 43, 57, - 68 * - - 47 + - + 87 * + CASE 44 WHEN 40 THEN NULL WHEN + - 57 * + + 66 THEN NULLIF ( COUNT( * ), + ( - 53 ) + 97 ) * COUNT( * ) ELSE + 29 * + 49 END * - NULLIF ( + ( - 90 ), - 69 / ( + 10 ) ) ) AS SIGNED ) * - 22 + 32 AS col2
----
-260946

skipif mysql # not compatible
query I rowsort label-4799
SELECT + MIN ( - 52 ) * - CAST ( + COUNT ( * ) AS INTEGER ) * + - SUM ( DISTINCT - - 69 ) * - - 73 + + CAST ( - COALESCE ( + 43, 57, - 68 * - - 47 + - + 87 * + CASE 44 WHEN 40 THEN NULL WHEN + - 57 * + + 66 THEN NULLIF ( COUNT ( * ), + ( - 53 ) + 97 ) * COUNT ( * ) ELSE + 29 * + 49 END * - NULLIF ( + ( - 90 ), - 69 / ( + 10 ) ) ) AS INTEGER ) * - 22 + 32 AS col2
----
-260946

onlyif mysql # DIV for integer division: 
query II rowsort label-4800
SELECT 96 DIV 34 DIV - 44 * 65 * - 34, 69 + - 65 + + + 66 * + 77 * 63 * - 51 AS col1
----
0
-16328462

skipif mysql # not compatible
query II rowsort label-4800
SELECT 96 / 34 / - 44 * 65 * - 34, 69 + - 65 + + + 66 * + 77 * 63 * - 51 AS col1
----
0
-16328462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4801
SELECT 66 + + COUNT( * ) - + COALESCE ( + 30, ( - + 94 ), 40 * + MIN( ALL - + 5 ) ) + + 64 * + 57 + + CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) * - - COUNT( * ) + - ( ( 79 ) ) * - 88, + CAST( + COUNT( - 89 ) AS SIGNED ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4801
SELECT 66 + + COUNT ( * ) - + COALESCE ( + 30, ( - + 94 ), 40 * + MIN ( ALL - + 5 ) ) + + 64 * + 57 + + CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) + - ( ( 79 ) ) * - 88, + CAST ( + COUNT ( - 89 ) AS INTEGER ) AS col0
----
NULL
1

query I rowsort
SELECT ALL - 4 * - 85
----
340

query I rowsort
SELECT ALL + 50 * - - 75 col1
----
3750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT + 0 * - 75 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT + 0 * - 75 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT 82 + + 13 + + 25 * + SUM( - CASE 36 WHEN 92 - - 89 * + 22 THEN + 31 * + 79 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4805
SELECT 82 + + 13 + + 25 * + SUM ( - CASE 36 WHEN 92 - - 89 * + 22 THEN + 31 * + 79 ELSE NULL END )
----
NULL

query I rowsort
SELECT ALL - 78 + - 26
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4807
SELECT ALL + ( 92 ) + - CAST( - 56 AS SIGNED ) AS col0
----
148

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL + ( 92 ) + - CAST ( - 56 AS INTEGER ) AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT 1 + + ( COUNT( * ) ) col0
----
2

skipif mysql # not compatible
query I rowsort label-4808
SELECT 1 + + ( COUNT ( * ) ) col0
----
2

query I rowsort
SELECT ALL + 42 + + - 41
----
1

query I rowsort
SELECT DISTINCT + 33 + + 90 * - 67
----
-5997

query II rowsort
SELECT - 50 AS col2, 25
----
-50
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4812
SELECT ALL - COUNT( * ) + - + ( - 71 ) AS col2, 33
----
70
33

skipif mysql # not compatible
query II rowsort label-4812
SELECT ALL - COUNT ( * ) + - + ( - 71 ) AS col2, 33
----
70
33

query I rowsort
SELECT ( - - 51 ) * - 25 + + 19
----
-1256

onlyif mysql # aggregate syntax: 
query II rowsort label-4814
SELECT 15 AS col0, COUNT( * )
----
15
1

skipif mysql # not compatible
query II rowsort label-4814
SELECT 15 AS col0, COUNT ( * )
----
15
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4815
SELECT DISTINCT - 30 DIV + ( + - 97 ) + 27 + - ( 20 ) * - COUNT( * ) + 19 + - 92 * - 40 * - 45, 37 AS col0
----
-165534
37

skipif mysql # not compatible
query II rowsort label-4815
SELECT DISTINCT - 30 / + ( + - 97 ) + 27 + - ( 20 ) * - COUNT ( * ) + 19 + - 92 * - 40 * - 45, 37 AS col0
----
-165534
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4816
SELECT + 4 DIV + 83
----
0

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 4 / + 83
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL - NULLIF ( CAST( - COUNT( * ) AS SIGNED ), + 72 ) + + + COUNT( * ) + + - 71
----
-69

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL - NULLIF ( CAST ( - COUNT ( * ) AS INTEGER ), + 72 ) + + + COUNT ( * ) + + - 71
----
-69

query I rowsort
SELECT 56 * ( - COALESCE ( + 16, 65 * + - 94 ) ) AS col1
----
-896

query I rowsort
SELECT - 26 + 80 AS col0
----
54

query I rowsort
SELECT 49 + 3 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4821
SELECT ALL - COALESCE ( - 79, - + COUNT( * ) ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - COALESCE ( - 79, - + COUNT ( * ) ) AS col0
----
79

query I rowsort
SELECT DISTINCT - - 5 * + + 54
----
270

query I rowsort
SELECT ALL + 61 * + CASE + 75 WHEN + 56 THEN + 16 END - 72 * + - 8
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4824
SELECT ALL COUNT( - ( - 80 ) ), 83 col1
----
1
83

skipif mysql # not compatible
query II rowsort label-4824
SELECT ALL COUNT ( - ( - 80 ) ), 83 col1
----
1
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT + ( + 86 ) * + + COUNT( * ) + + 33 - - COUNT( * ) + 61
----
181

skipif mysql # not compatible
query I rowsort label-4825
SELECT + ( + 86 ) * + + COUNT ( * ) + + 33 - - COUNT ( * ) + 61
----
181

query I rowsort
SELECT 59 + 59 AS col0
----
118

query I rowsort
SELECT DISTINCT 55 - + + 38
----
17

query II rowsort
SELECT ALL 43 AS col1, + 23 + 46
----
43
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4829
SELECT ALL - - NULLIF ( - 74, - + COUNT( * ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL - - NULLIF ( - 74, - + COUNT ( * ) ) AS col2
----
-74

query II rowsort
SELECT - 4 AS col1, 76
----
-4
76

query I rowsort
SELECT DISTINCT - - 16 AS col0
----
16

query I rowsort
SELECT ALL - - 86 AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT 97 * + - 12 + + COUNT( * ) + + 30
----
-1133

skipif mysql # not compatible
query I rowsort label-4833
SELECT 97 * + - 12 + + COUNT ( * ) + + 30
----
-1133

query I rowsort
SELECT ALL - + 25 AS col2
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4835
SELECT - 33 * + 88 / + CAST( + - 90 AS SIGNED ) * 37 + CAST( NULL AS SIGNED ) / - - ( 18 ) / - NULLIF ( + COUNT( * ), + - 59 + + ( NULLIF ( COUNT( * ), ( - 51 ) ) ) + - - NULLIF ( + 1, + ( - 37 ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 33 * + 88 / + CAST ( + - 90 AS INTEGER ) * 37 + CAST ( NULL AS INTEGER ) / - - ( 18 ) / - NULLIF ( + COUNT ( * ), + - 59 + + ( NULLIF ( COUNT ( * ), ( - 51 ) ) ) + - - NULLIF ( + 1, + ( - 37 ) ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - + 9 AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4837
SELECT + MAX( DISTINCT - - 50 ) DIV - 66 + COUNT( + 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4837
SELECT + MAX ( DISTINCT - - 50 ) / - 66 + COUNT ( + 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT 51 * - + COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-4838
SELECT 51 * - + COUNT ( * )
----
-51

query I rowsort
SELECT 86 * + + 9 AS col0
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT ALL 73 * COUNT( * ) * + + 43 AS col2
----
3139

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL 73 * COUNT ( * ) * + + 43 AS col2
----
3139

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT + 84 DIV + 24 - - + 8
----
11

skipif mysql # not compatible
query I rowsort label-4841
SELECT + 84 / + 24 - - + 8
----
11

query II rowsort
SELECT + 69 AS col2, + 15 - 85 AS col1
----
69
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-4843
SELECT + 71 AS col0, 94 + - - ( SUM( + 80 ) ) * 57 + 64 * - 21 - + 61
----
71
3249

skipif mysql # not compatible
query II rowsort label-4843
SELECT + 71 AS col0, 94 + - - ( SUM ( + 80 ) ) * 57 + 64 * - 21 - + 61
----
71
3249

onlyif mysql # aggregate syntax: 
query II rowsort label-4844
SELECT ALL - 37 AS col2, + COUNT( - + 91 ) * - + COUNT( * ) + + + 57
----
-37
56

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL - 37 AS col2, + COUNT ( - + 91 ) * - + COUNT ( * ) + + + 57
----
-37
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT ALL 25 * SUM( 37 ) * - NULLIF ( + 18, + 64 + 72 * - 53 )
----
-16650

skipif mysql # not compatible
query I rowsort label-4845
SELECT ALL 25 * SUM ( 37 ) * - NULLIF ( + 18, + 64 + 72 * - 53 )
----
-16650

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT 76 * - COALESCE ( + - ( + 74 ), + MAX( - + 78 ), 55 + + 78 + + 41 ) AS col0, 17
----
5624
17

skipif mysql # not compatible
query II rowsort label-4846
SELECT 76 * - COALESCE ( + - ( + 74 ), + MAX ( - + 78 ), 55 + + 78 + + 41 ) AS col0, 17
----
5624
17

query I rowsort
SELECT ALL 37 + 30 AS col1
----
67

query II rowsort
SELECT 74, 54 col1
----
74
54

onlyif mysql # DIV for integer division: 
query II rowsort label-4849
SELECT 82 AS col0, 65 DIV 96
----
82
0

skipif mysql # not compatible
query II rowsort label-4849
SELECT 82 AS col0, 65 / 96
----
82
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT COUNT( * ) * + ( - + ( + - 98 ) ) AS col0, 23
----
98
23

skipif mysql # not compatible
query II rowsort label-4850
SELECT COUNT ( * ) * + ( - + ( + - 98 ) ) AS col0, 23
----
98
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4851
SELECT ALL - 73 DIV ( + 54 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL - 73 / ( + 54 ) AS col1
----
-1

query I rowsort
SELECT ALL - ( 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT ALL 59 + + - NULLIF ( + COUNT( * ), + ( + 23 ) / - 69 / AVG ( - 26 ) ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4853
SELECT ALL 59 + + - NULLIF ( + COUNT ( * ), + ( + 23 ) / - 69 / AVG ( - 26 ) ) AS col2
----
58

query I rowsort
SELECT 36 * 96 AS col1
----
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL - COUNT( * ) + - 93 col2
----
-94

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - COUNT ( * ) + - 93 col2
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-4856
SELECT NULLIF ( - + ( + + 88 ), COUNT( * ) ), - COUNT( * ) AS col0
----
-88
-1

skipif mysql # not compatible
query II rowsort label-4856
SELECT NULLIF ( - + ( + + 88 ), COUNT ( * ) ), - COUNT ( * ) AS col0
----
-88
-1

query I rowsort
SELECT ALL - 68 + + 97
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4858
SELECT AVG ( DISTINCT - 77 ) * + CAST( NULL AS SIGNED ) + 43 * + ( + NULLIF ( - 90, + + 59 ) ) + + + 56 + - + COUNT( * ) * + - 47 / + COALESCE ( + + 62, + 92 * + CAST( NULL AS DECIMAL ) - + 46, - COALESCE ( 35, + AVG ( DISTINCT + + 0 ) * 50 + - 59 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4858
SELECT AVG ( DISTINCT - 77 ) * + CAST ( NULL AS INTEGER ) + 43 * + ( + NULLIF ( - 90, + + 59 ) ) + + + 56 + - + COUNT ( * ) * + - 47 / + COALESCE ( + + 62, + 92 * + CAST ( NULL AS REAL ) - + 46, - COALESCE ( 35, + AVG ( DISTINCT + + 0 ) * 50 + - 59 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4859
SELECT ALL + COUNT( * ) AS col2, - ( - 98 ) DIV - + 26 - + 36 + + 0 AS col2
----
1
-39

skipif mysql # not compatible
query II rowsort label-4859
SELECT ALL + COUNT ( * ) AS col2, - ( - 98 ) / - + 26 - + 36 + + 0 AS col2
----
1
-39

query I rowsort
SELECT ALL - 4 col1
----
-4

query I rowsort
SELECT + 68 + - 93 + + 93
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4862
SELECT - - CASE + - COALESCE ( - - 29, COUNT( DISTINCT + - ( 72 ) ) ) WHEN - NULLIF ( - - COUNT( * ), - - 86 DIV 86 ) THEN CASE WHEN NULL NOT BETWEEN MIN( DISTINCT - 83 ) AND NULL THEN + + 75 DIV - - 38 + + 1 * + + 29 END WHEN + - 61 THEN NULL ELSE 7 END
----
7

skipif mysql # not compatible
query I rowsort label-4862
SELECT - - CASE + - COALESCE ( - - 29, COUNT ( DISTINCT + - ( 72 ) ) ) WHEN - NULLIF ( - - COUNT ( * ), - - 86 / 86 ) THEN CASE WHEN NULL NOT BETWEEN MIN ( DISTINCT - 83 ) AND NULL THEN + + 75 / - - 38 + + 1 * + + 29 END WHEN + - 61 THEN NULL ELSE 7 END
----
7

query I rowsort
SELECT ALL - - 2 - - 65 * - 28 AS col2
----
-1818

query II rowsort
SELECT ALL 15 AS col0, 96 AS col1
----
15
96

query I rowsort
SELECT - 90 + 70
----
-20

query I rowsort
SELECT 40 - + 0
----
40

query I rowsort
SELECT DISTINCT - - 60 - 93
----
-33

query I rowsort
SELECT ALL ( ( 33 ) )
----
33

query I rowsort
SELECT ALL - - ( + 29 ) * - 4 AS col2
----
-116

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4870
SELECT - - 86 + - ( - 9 ) - - SUM( + 84 ) DIV - - 89, - 93 * - + 81 * - 44 AS col0
----
95
-331452

skipif mysql # not compatible
query II rowsort label-4870
SELECT - - 86 + - ( - 9 ) - - SUM ( + 84 ) / - - 89, - 93 * - + 81 * - 44 AS col0
----
95
-331452

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4871
SELECT ALL - 80 DIV 33 - MIN( - 40 ) + + 83 * 24 * + ( + + MIN( ALL + 86 ) ) + - COUNT( * ) * - - 24 AS col2
----
171326

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - 80 / 33 - MIN ( - 40 ) + + 83 * 24 * + ( + + MIN ( ALL + 86 ) ) + - COUNT ( * ) * - - 24 AS col2
----
171326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL - CAST( - 93 AS SIGNED ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - CAST ( - 93 AS INTEGER ) AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-4873
SELECT - - 43 AS col1, 75 * + COUNT( * ) * + 39 AS col0
----
43
2925

skipif mysql # not compatible
query II rowsort label-4873
SELECT - - 43 AS col1, 75 * + COUNT ( * ) * + 39 AS col0
----
43
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4874
SELECT ALL + 31 * + COUNT( * ) * + + 1 + - - 29 + 37 + + ( - + 49 ) * - - ( COUNT( * ) ) + + + 60 - COUNT( DISTINCT + 7 ) * - 85 * 24 + - + 73 DIV - 32
----
2150

skipif mysql # not compatible
query I rowsort label-4874
SELECT ALL + 31 * + COUNT ( * ) * + + 1 + - - 29 + 37 + + ( - + 49 ) * - - ( COUNT ( * ) ) + + + 60 - COUNT ( DISTINCT + 7 ) * - 85 * 24 + - + 73 / - 32
----
2150

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - SUM( 5 ) * 37 col0
----
-185

skipif mysql # not compatible
query I rowsort label-4875
SELECT - SUM ( 5 ) * 37 col0
----
-185

query I rowsort
SELECT - 30 * ( 79 ) - 84 col1
----
-2454

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT - COALESCE ( + 66, - 3 * 91 ) DIV + COUNT( DISTINCT 47 ) DIV + 1 + 18
----
-48

skipif mysql # not compatible
query I rowsort label-4877
SELECT - COALESCE ( + 66, - 3 * 91 ) / + COUNT ( DISTINCT 47 ) / + 1 + 18
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT ALL COUNT( DISTINCT + - 55 ) * + MIN( - 45 ) + - 28 * + 75 - + 44 * CASE 40 WHEN - ( 61 ) / + 9 THEN NULL WHEN - - ( + 47 ) THEN - ( - 83 ) END / + 42 + - ( + - 75 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL COUNT ( DISTINCT + - 55 ) * + MIN ( - 45 ) + - 28 * + 75 - + 44 * CASE 40 WHEN - ( 61 ) / + 9 THEN NULL WHEN - - ( + 47 ) THEN - ( - 83 ) END / + 42 + - ( + - 75 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + ( 83 )
----
83

query I rowsort
SELECT ALL - 40 * 35 + - 47 AS col1
----
-1447

query II rowsort
SELECT ALL + ( 87 ) AS col1, 18
----
87
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4882
SELECT + 77 * - 44, COUNT( * ) * + - 72 AS col2
----
-3388
-72

skipif mysql # not compatible
query II rowsort label-4882
SELECT + 77 * - 44, COUNT ( * ) * + - 72 AS col2
----
-3388
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT ALL 23 * + 41 + - - COUNT( * ) col2
----
944

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL 23 * + 41 + - - COUNT ( * ) col2
----
944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4884
SELECT COALESCE ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ), + COUNT( * ), + - 94 * + - 17 DIV 98 * 9 - + - COUNT( * ) + 3 * 45 - - 14 + + - COUNT( * ) * 69 DIV + 26 ) AS col1, - 8
----
1
-8

skipif mysql # not compatible
query II rowsort label-4884
SELECT COALESCE ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ), + COUNT ( * ), + - 94 * + - 17 / 98 * 9 - + - COUNT ( * ) + 3 * 45 - - 14 + + - COUNT ( * ) * 69 / + 26 ) AS col1, - 8
----
1
-8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4885
SELECT - CAST( + 80 AS SIGNED ) + - 37 + 95 DIV + - 18 AS col1
----
-122

skipif mysql # not compatible
query I rowsort label-4885
SELECT - CAST ( + 80 AS INTEGER ) + - 37 + 95 / + - 18 AS col1
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT ALL COUNT( * ) * - 46 * - 82
----
3772

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL COUNT ( * ) * - 46 * - 82
----
3772

query I rowsort
SELECT + 41 + - - 63 + - 64
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4888
SELECT + 47 * - COUNT( + - 23 )
----
-47

skipif mysql # not compatible
query I rowsort label-4888
SELECT + 47 * - COUNT ( + - 23 )
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT + 35 + + 94 DIV + 98 + + ( - 58 )
----
-23

skipif mysql # not compatible
query I rowsort label-4889
SELECT + 35 + + 94 / + 98 + + ( - 58 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL - SUM( + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL - SUM ( + 57 ) AS col2
----
-57

query I rowsort
SELECT + 22 + + - 2
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4892
SELECT + 61 DIV + 44 * + COUNT( * ) DIV COUNT( * ) + + ( + 64 ) + ( 62 ) * + - 79
----
-4833

skipif mysql # not compatible
query I rowsort label-4892
SELECT + 61 / + 44 * + COUNT ( * ) / COUNT ( * ) + + ( + 64 ) + ( 62 ) * + - 79
----
-4833

query I rowsort
SELECT + 31 * + NULLIF ( - + 71, - 56 * 32 )
----
-2201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4894
SELECT + COALESCE ( 95, + - 52 ) + - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT + COALESCE ( 95, + - 52 ) + - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT DISTINCT + 3 DIV 22 - - ( 64 )
----
64

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT + 3 / 22 - - ( 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT - - SUM( + 72 ) + - 57 + 60 col0
----
75

skipif mysql # not compatible
query I rowsort label-4896
SELECT - - SUM ( + 72 ) + - 57 + 60 col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4897
SELECT + + MIN( ALL 28 ) DIV + 21 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4897
SELECT + + MIN ( ALL 28 ) / + 21 AS col0
----
1

query I rowsort
SELECT DISTINCT + - 37 * - + 2 - - + 73 AS col1
----
147

onlyif mysql # aggregate syntax: 
query II rowsort label-4899
SELECT + - 90 * + ( + COUNT( * ) ), + 31 AS col2
----
-90
31

skipif mysql # not compatible
query II rowsort label-4899
SELECT + - 90 * + ( + COUNT ( * ) ), + 31 AS col2
----
-90
31

query I rowsort
SELECT - + ( ( + 11 ) )
----
-11

query I rowsort
SELECT - 47 * + 20 * - 53 * - 10 AS col1
----
-498200

query I rowsort
SELECT ALL + 18 * - 87
----
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT + 91 - - 65 - 42 * + 31 + 60 + 67 + + 31 * - 36 + 9 * + ( + 70 ) + + 65 - NULLIF ( COUNT( * ), - COUNT( * ) ) * - - 79
----
-1519

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 91 - - 65 - 42 * + 31 + 60 + 67 + + 31 * - 36 + 9 * + ( + 70 ) + + 65 - NULLIF ( COUNT ( * ), - COUNT ( * ) ) * - - 79
----
-1519

query I rowsort
SELECT + - 38 + 3 + 15 * - 34 AS col0
----
-545

query I rowsort
SELECT DISTINCT + NULLIF ( + 16, - 73 )
----
16

query II rowsort
SELECT + + 63 * + 77 AS col2, ( 76 ) * - ( - 4 ) AS col1
----
4851
304

query I rowsort
SELECT - 61 * + 72
----
-4392

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT DISTINCT + COUNT( * ) + 34 col0
----
35

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + COUNT ( * ) + 34 col0
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4909
SELECT ALL - 45 + COUNT( * ) + 3 col1, - 2 + + 92 DIV - MIN( + 94 )
----
-41
-2

skipif mysql # not compatible
query II rowsort label-4909
SELECT ALL - 45 + COUNT ( * ) + 3 col1, - 2 + + 92 / - MIN ( + 94 )
----
-41
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4910
SELECT ALL - ( 9 ) DIV + 3 + - 96 + - + 29 - COUNT( * ) AS col0
----
-129

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL - ( 9 ) / + 3 + - 96 + - + 29 - COUNT ( * ) AS col0
----
-129

query II rowsort
SELECT + 67 AS col2, + 21 + - 53
----
67
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-4912
SELECT + 26 * 78 DIV 87 + - + 58 AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-4912
SELECT + 26 * 78 / 87 + - + 58 AS col2
----
-35

query I rowsort
SELECT + 22 col2
----
22

query I rowsort
SELECT ALL + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT 82 * + 42 + + COUNT( ALL + ( + 27 ) ) * + 70 + 51 AS col2
----
3565

skipif mysql # not compatible
query I rowsort label-4915
SELECT 82 * + 42 + + COUNT ( ALL + ( + 27 ) ) * + 70 + 51 AS col2
----
3565

query I rowsort
SELECT - ( + 99 ) * 39
----
-3861

query I rowsort
SELECT DISTINCT + 74 * + 47
----
3478

onlyif mysql # aggregate syntax: 
query I rowsort label-4918
SELECT - COUNT( DISTINCT - 33 ) * + + 34 * - 72 * - 85 AS col2
----
-208080

skipif mysql # not compatible
query I rowsort label-4918
SELECT - COUNT ( DISTINCT - 33 ) * + + 34 * - 72 * - 85 AS col2
----
-208080

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT DISTINCT + COUNT( + 70 )
----
1

skipif mysql # not compatible
query I rowsort label-4919
SELECT DISTINCT + COUNT ( + 70 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT ALL - 3 * 3 - - CAST( - - 21 AS SIGNED ) col0
----
12

skipif mysql # not compatible
query I rowsort label-4920
SELECT ALL - 3 * 3 - - CAST ( - - 21 AS INTEGER ) col0
----
12

query I rowsort
SELECT - 35 * + 4 * + + NULLIF ( - - 29, - 95 )
----
-4060

query II rowsort
SELECT ALL + 55, 55
----
55
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4923
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) * 14 DIV - + 44 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-4923
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) * 14 / - + 44 AS col2
----
1
0

query I rowsort
SELECT DISTINCT + 75 AS col0
----
75

query I rowsort
SELECT + ( + - 13 ) AS col1
----
-13

query I rowsort
SELECT ALL ( + + 6 )
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT - COUNT( ALL + - COALESCE ( + CAST( NULL AS SIGNED ), + + 92 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4927
SELECT - COUNT ( ALL + - COALESCE ( + CAST ( NULL AS INTEGER ), + + 92 ) )
----
-1

query I rowsort
SELECT DISTINCT + 46 * - 56
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + - 35 * - COUNT( * ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4929
SELECT + - 35 * - COUNT ( * ) AS col1
----
35

query I rowsort
SELECT ALL + - 18 * - - 97 AS col1
----
-1746

query II rowsort
SELECT DISTINCT - 75, - 25 AS col2
----
-75
-25

query I rowsort
SELECT ALL 52 + - 21 * + + 81 AS col0
----
-1649

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT - COUNT( * ) * + SUM( ( + 60 ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-4933
SELECT - COUNT ( * ) * + SUM ( ( + 60 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL - COUNT( ALL 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL - COUNT ( ALL 82 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT - + COALESCE ( NULLIF ( 40, - + 85 - + 53 * 8 / + 84 ), 91 * + + COUNT( * ) + + - 40 + + - COUNT( * ), + 16 + - 74 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-4935
SELECT - + COALESCE ( NULLIF ( 40, - + 85 - + 53 * 8 / + 84 ), 91 * + + COUNT ( * ) + + - 40 + + - COUNT ( * ), + 16 + - 74 ) AS col0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT 80 DIV 39
----
2

skipif mysql # not compatible
query I rowsort label-4936
SELECT 80 / 39
----
2

query I rowsort
SELECT 82 + - 73 * 98 * - 44 + - 48 AS col1
----
314810

query I rowsort
SELECT ALL - ( 23 ) AS col2
----
-23

query I rowsort
SELECT 72 - - - 21
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4940
SELECT ALL - 97 DIV COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-4940
SELECT ALL - 97 / COUNT ( * )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4941
SELECT + COUNT( * ) + - - 20 - - + COUNT( * )
----
22

skipif mysql # not compatible
query I rowsort label-4941
SELECT + COUNT ( * ) + - - 20 - - + COUNT ( * )
----
22

query I rowsort
SELECT DISTINCT 43 + 7 + 13
----
63

query I rowsort
SELECT ALL 2 + - 39 col0
----
-37

query I rowsort
SELECT 86 * 7 col1
----
602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT ALL 14 DIV - + COUNT( * ) * COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL 14 / - + COUNT ( * ) * COUNT ( * )
----
-14

query I rowsort
SELECT DISTINCT 73 + - + 49 - - 10 * 20 * 14
----
2824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4947
SELECT ( - - COUNT( - 73 ) ) + + CAST( - + 66 AS SIGNED ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-4947
SELECT ( - - COUNT ( - 73 ) ) + + CAST ( - + 66 AS INTEGER ) AS col2
----
-65

query I rowsort
SELECT ALL + ( + + 68 ) * + 50
----
3400

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT DISTINCT - COUNT( * ) + - 50 - - COUNT( * ) - - COUNT( * ) col0, - 33 * - 40 AS col2
----
-49
1320

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT - COUNT ( * ) + - 50 - - COUNT ( * ) - - COUNT ( * ) col0, - 33 * - 40 AS col2
----
-49
1320

query I rowsort
SELECT ALL 66 + ( + 61 )
----
127

query I rowsort
SELECT 82 - + 78
----
4

query I rowsort
SELECT 27 * - 93 * 2
----
-5022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4953
SELECT DISTINCT - CASE WHEN NOT + 93 = + 78 THEN CASE + - COUNT( * ) WHEN 13 THEN 54 ELSE - AVG ( - 94 ) + + COUNT( * ) END * - 53 * CAST( + NULLIF ( - + CASE + 87 WHEN - + 19 THEN 2 END, - - 7 ) AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4953
SELECT DISTINCT - CASE WHEN NOT + 93 = + 78 THEN CASE + - COUNT ( * ) WHEN 13 THEN 54 ELSE - AVG ( - 94 ) + + COUNT ( * ) END * - 53 * CAST ( + NULLIF ( - + CASE + 87 WHEN - + 19 THEN 2 END, - - 7 ) AS INTEGER ) END
----
NULL

query I rowsort
SELECT ALL - ( + + 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - 45 * - 7 - + COUNT( * ) AS col2
----
314

skipif mysql # not compatible
query I rowsort label-4955
SELECT - 45 * - 7 - + COUNT ( * ) AS col2
----
314

query I rowsort
SELECT ALL + 25 * + 64
----
1600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4957
SELECT 16 * + + 78 * + + 2 + 37 * - - 4 + - COUNT( * ) * - CASE - - 49 WHEN + + 40 / + + COUNT( * ) * + ( + CASE - COUNT( * ) WHEN NULLIF ( - 53, + CAST( + 1 AS SIGNED ) ) THEN 47 + 42 + + + COUNT( * ) END ) THEN + 8 * - 46 + - 13 WHEN - 35 THEN 66 WHEN 3 THEN NULL ELSE 79 + CASE CAST( 84 AS SIGNED ) + + 94 * + 69 WHEN COUNT( * ) THEN NULL ELSE 63 - 98 END END + + COUNT( * )
----
2689

skipif mysql # not compatible
query I rowsort label-4957
SELECT 16 * + + 78 * + + 2 + 37 * - - 4 + - COUNT ( * ) * - CASE - - 49 WHEN + + 40 / + + COUNT ( * ) * + ( + CASE - COUNT ( * ) WHEN NULLIF ( - 53, + CAST ( + 1 AS INTEGER ) ) THEN 47 + 42 + + + COUNT ( * ) END ) THEN + 8 * - 46 + - 13 WHEN - 35 THEN 66 WHEN 3 THEN NULL ELSE 79 + CASE CAST ( 84 AS INTEGER ) + + 94 * + 69 WHEN COUNT ( * ) THEN NULL ELSE 63 - 98 END END + + COUNT ( * )
----
2689

query I rowsort
SELECT + 43 + + - 91 AS col1
----
-48

query I rowsort
SELECT ALL - + 87
----
-87

query II rowsort
SELECT 49 + - 25, - 5 AS col0
----
24
-5

query II rowsort
SELECT DISTINCT - - 29 * - + 89, 21 AS col1
----
-2581
21

query I rowsort
SELECT - 84 * - + ( + 30 )
----
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - - CASE + 55 WHEN + MIN( ALL 30 ) + NULLIF ( - 77, ( + + 92 ) ) THEN 5 * - 80 + + 28 + - 11 / 15 + + - 7 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - - CASE + 55 WHEN + MIN ( ALL 30 ) + NULLIF ( - 77, ( + + 92 ) ) THEN 5 * - 80 + + 28 + - 11 / 15 + + - 7 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4964
SELECT DISTINCT - - 53 + - 15, SUM( ALL ( + 93 ) ) * 69 + + ( + - 53 ) AS col1
----
38
6364

skipif mysql # not compatible
query II rowsort label-4964
SELECT DISTINCT - - 53 + - 15, SUM ( ALL ( + 93 ) ) * 69 + + ( + - 53 ) AS col1
----
38
6364

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL 37 + - 48 + - 75 + 33 * + 95 + COUNT( * ) + - ( 89 ) AS col2
----
2961

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL 37 + - 48 + - 75 + 33 * + 95 + COUNT ( * ) + - ( 89 ) AS col2
----
2961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4966
SELECT ALL - CASE + NULLIF ( + 44, - 73 * ( 28 ) + + 51 - + COUNT( * ) ) WHEN - - COALESCE ( + COUNT( * ), - COUNT( * ), + 47 / - COUNT( * ) ) + - ( + - 76 ) THEN + CAST( + + AVG ( ALL + 64 ) AS SIGNED ) WHEN - 54 * + 11 THEN + + COUNT( ALL - 3 ) + 58 * - 55 WHEN 55 * - 73 - + COUNT( * ) THEN NULL END + + COUNT( * ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - CASE + NULLIF ( + 44, - 73 * ( 28 ) + + 51 - + COUNT ( * ) ) WHEN - - COALESCE ( + COUNT ( * ), - COUNT ( * ), + 47 / - COUNT ( * ) ) + - ( + - 76 ) THEN + CAST ( + + AVG ( ALL + 64 ) AS INTEGER ) WHEN - 54 * + 11 THEN + + COUNT ( ALL - 3 ) + 58 * - 55 WHEN 55 * - 73 - + COUNT ( * ) THEN NULL END + + COUNT ( * ) * 45
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4967
SELECT + 50 * COUNT( * ) * - 56 * + 74 AS col2, - 20
----
-207200
-20

skipif mysql # not compatible
query II rowsort label-4967
SELECT + 50 * COUNT ( * ) * - 56 * + 74 AS col2, - 20
----
-207200
-20

query I rowsort
SELECT + NULLIF ( + - 73, 54 ) + + 78 * + + 61 * - + 9 + + + 73 AS col2
----
-42822

query I rowsort
SELECT - + 51 AS col1
----
-51

query I rowsort
SELECT - ( + 1 )
----
-1

query II rowsort
SELECT ALL - 43 + + - NULLIF ( + 78, - 7 ) AS col0, - COALESCE ( - 79, - 23 )
----
-121
79

query I rowsort
SELECT - 42 + - 56 AS col0
----
-98

query I rowsort
SELECT - - 28 AS col2
----
28

query I rowsort
SELECT 87 + - 82
----
5

query I rowsort
SELECT ALL 26 + + 24
----
50

query I rowsort
SELECT DISTINCT - ( + 75 ) * - 24
----
1800

query I rowsort
SELECT ALL 11 col2
----
11

query I rowsort
SELECT ALL 66 + + 48
----
114

onlyif mysql # DIV for integer division: 
query II rowsort label-4979
SELECT 85 - + 68 + 11 AS col0, 47 DIV - + 99 col0
----
28
0

skipif mysql # not compatible
query II rowsort label-4979
SELECT 85 - + 68 + 11 AS col0, 47 / - + 99 col0
----
28
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4980
SELECT MAX( DISTINCT 1 ) * - 57 DIV - - 28
----
-2

skipif mysql # not compatible
query I rowsort label-4980
SELECT MAX ( DISTINCT 1 ) * - 57 / - - 28
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT - MAX( - - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-4981
SELECT - MAX ( - - 30 ) AS col0
----
-30

query I rowsort
SELECT DISTINCT 95 / - 6 * + ( + - 35 ) / + ( - CASE 27 WHEN 13 THEN NULL WHEN + 87 THEN 74 - + 65 * 1 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4983
SELECT ALL 24 DIV - + 61 * 98
----
0

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL 24 / - + 61 * 98
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL + 32 * + - 20 / ( - 36 ) - + CASE - COUNT( * ) WHEN COUNT( ALL + 50 ) THEN 26 WHEN + 97 THEN NULL END - - 75 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL + 32 * + - 20 / ( - 36 ) - + CASE - COUNT ( * ) WHEN COUNT ( ALL + 50 ) THEN 26 WHEN + 97 THEN NULL END - - 75 col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4985
SELECT ( - 75 ) * - COUNT( * ), 25 + - 67 AS col1
----
75
-42

skipif mysql # not compatible
query II rowsort label-4985
SELECT ( - 75 ) * - COUNT ( * ), 25 + - 67 AS col1
----
75
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4986
SELECT COUNT( + 98 ) DIV 40 + - 32 + + ( 13 )
----
-19

skipif mysql # not compatible
query I rowsort label-4986
SELECT COUNT ( + 98 ) / 40 + - 32 + + ( 13 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ( - - COUNT( * ) ) * 16 * - - 17 * ( + COUNT( + 93 ) ) AS col1
----
272

skipif mysql # not compatible
query I rowsort label-4987
SELECT ( - - COUNT ( * ) ) * 16 * - - 17 * ( + COUNT ( + 93 ) ) AS col1
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT + MAX( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-4988
SELECT + MAX ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT + MAX( DISTINCT 59 )
----
59

skipif mysql # not compatible
query I rowsort label-4989
SELECT + MAX ( DISTINCT 59 )
----
59

query I rowsort
SELECT 61 + 45
----
106

query I rowsort
SELECT - 41 * + + 16 AS col1
----
-656

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT DISTINCT + MAX( - - 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-4992
SELECT DISTINCT + MAX ( - - 45 ) AS col1
----
45

query I rowsort
SELECT ALL - NULLIF ( 21, + 74 ) * - 42 + + 88 + - 99 AS col1
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL 80 * - 86 + 16 * - COALESCE ( MIN( ALL + - 74 ), - 13 )
----
-5696

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL 80 * - 86 + 16 * - COALESCE ( MIN ( ALL + - 74 ), - 13 )
----
-5696

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT + + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4995
SELECT + + ( + COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT + 30 - + 41
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4997
SELECT - - 53 DIV - 28 - - COUNT( * ) * - 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-4997
SELECT - - 53 / - 28 - - COUNT ( * ) * - 95 AS col1
----
-96

query I rowsort
SELECT + 44 - + + 42 AS col0
----
2

query I rowsort
SELECT - ( + - 34 ) AS col1
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5000
SELECT ALL + - ( ( 60 ) ) + + + CAST( - 83 AS SIGNED ) + + + COUNT( * ) * + - 99
----
-242

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + - ( ( 60 ) ) + + + CAST ( - 83 AS INTEGER ) + + + COUNT ( * ) * + - 99
----
-242

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT + 7 AS col2, - COUNT( * ) AS col0
----
7
-1

skipif mysql # not compatible
query II rowsort label-5001
SELECT + 7 AS col2, - COUNT ( * ) AS col0
----
7
-1

query I rowsort
SELECT + + 97 AS col0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5003
SELECT - 71 DIV + - SUM( ALL + 21 ) + + + 63 + 59 + + 25 DIV 35 + - 66 * + - 52
----
3557

skipif mysql # not compatible
query I rowsort label-5003
SELECT - 71 / + - SUM ( ALL + 21 ) + + + 63 + 59 + + 25 / 35 + - 66 * + - 52
----
3557

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL - + 76 + + + CASE COUNT( * ) WHEN - 20 * + + COUNT( * ) - + COUNT( * ) + + 81 + 73 + - COUNT( * ) * - + 2 THEN + - 77 END * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL - + 76 + + + CASE COUNT ( * ) WHEN - 20 * + + COUNT ( * ) - + COUNT ( * ) + + 81 + 73 + - COUNT ( * ) * - + 2 THEN + - 77 END * 1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5005
SELECT - + SUM( + + 16 ) * - COALESCE ( + 87, - - 75 + 75 ) * 2 * CASE - COUNT( * ) WHEN + 26 THEN 87 WHEN + CAST( NULL AS SIGNED ) - + 71 + + CAST( 63 AS SIGNED ) THEN NULL ELSE NULL END * - - 23 + COUNT( * ) + AVG ( DISTINCT - 88 ) + + 6 / 40 * - CAST( + - 67 AS SIGNED ) * - 87 * + 68 + CAST( - MAX( DISTINCT + 47 ) AS SIGNED ) + CAST( + 6 AS SIGNED ) - - CASE 69 WHEN + 39 THEN - 39 ELSE + 61 + - 92 * + 90 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT - + SUM ( + + 16 ) * - COALESCE ( + 87, - - 75 + 75 ) * 2 * CASE - COUNT ( * ) WHEN + 26 THEN 87 WHEN + CAST ( NULL AS INTEGER ) - + 71 + + CAST ( 63 AS INTEGER ) THEN NULL ELSE NULL END * - - 23 + COUNT ( * ) + AVG ( DISTINCT - 88 ) + + 6 / 40 * - CAST ( + - 67 AS INTEGER ) * - 87 * + 68 + CAST ( - MAX ( DISTINCT + 47 ) AS INTEGER ) + CAST ( + 6 AS INTEGER ) - - CASE 69 WHEN + 39 THEN - 39 ELSE + 61 + - 92 * + 90 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5006
SELECT - - CAST( NULL AS DECIMAL ) - 29 + + + 69
----
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT - - CAST ( NULL AS REAL ) - 29 + + + 69
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5007
SELECT ALL CAST( - ( + 11 ) AS SIGNED ) AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL CAST ( - ( + 11 ) AS INTEGER ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT ALL + + 1 + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + + 1 + + - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5009
SELECT ALL + 37 AS col1, MAX( DISTINCT - 9 )
----
37
-9

skipif mysql # not compatible
query II rowsort label-5009
SELECT ALL + 37 AS col1, MAX ( DISTINCT - 9 )
----
37
-9

query I rowsort
SELECT - 73 * - + 68 col2
----
4964

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL NULLIF ( - COUNT( * ), - 5 * 93 )
----
-1

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL NULLIF ( - COUNT ( * ), - 5 * 93 )
----
-1

query I rowsort
SELECT ALL ( - 56 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5013
SELECT + 48 + + + 4 * MAX( + + 24 ) - - 92 + - - COUNT( * ) * - COUNT( * ) * + CAST( 84 AS SIGNED ) * + + COALESCE ( + 1, NULLIF ( + - 4, ( - 89 ) * - 47 ) + - 34 ) + + 40 * 43
----
1872

skipif mysql # not compatible
query I rowsort label-5013
SELECT + 48 + + + 4 * MAX ( + + 24 ) - - 92 + - - COUNT ( * ) * - COUNT ( * ) * + CAST ( 84 AS INTEGER ) * + + COALESCE ( + 1, NULLIF ( + - 4, ( - 89 ) * - 47 ) + - 34 ) + + 40 * 43
----
1872

query I rowsort
SELECT DISTINCT 54 * + + 89 AS col0
----
4806

query I rowsort
SELECT DISTINCT 72 * NULLIF ( - 14, - 23 * 19 )
----
-1008

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT ALL - MIN( DISTINCT - + 89 ) * COALESCE ( + 86, - + 8 )
----
7654

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - MIN ( DISTINCT - + 89 ) * COALESCE ( + 86, - + 8 )
----
7654

query II rowsort
SELECT ALL 83 AS col1, - 15 AS col0
----
83
-15

query I rowsort
SELECT + 71 + + 16
----
87

query I rowsort
SELECT ALL ( + + 74 ) AS col0
----
74

query I rowsort
SELECT + 47 + + + 16 * 23
----
415

query I rowsort
SELECT - 76 + - + 38 + - + 14 * - 37
----
404

query I rowsort
SELECT - 53 + - 24 AS col0
----
-77

query I rowsort
SELECT + ( 36 )
----
36

query I rowsort
SELECT DISTINCT + 97 AS col0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT + 29 DIV + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT + 29 / + 60 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + SUM( 80 ) * + 10 + + 3
----
803

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + SUM ( 80 ) * + 10 + + 3
----
803

query I rowsort
SELECT ALL + 24 * 38 + + 51 AS col0
----
963

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT ALL - 10 * - 6 + + + ( CASE + 95 WHEN - 60 * AVG ( + - 0 ) THEN 13 * + COALESCE ( + + 36, 37 DIV + SUM( ALL - - 25 ) * - - 84, - 9 + - COUNT( + 25 ) + + MIN( DISTINCT - 34 ) ) * + - 32 * + 26 * + 33 ELSE - 47 END )
----
13

skipif mysql # not compatible
query I rowsort label-5028
SELECT ALL - 10 * - 6 + + + ( CASE + 95 WHEN - 60 * AVG ( + - 0 ) THEN 13 * + COALESCE ( + + 36, 37 / + SUM ( ALL - - 25 ) * - - 84, - 9 + - COUNT ( + 25 ) + + MIN ( DISTINCT - 34 ) ) * + - 32 * + 26 * + 33 ELSE - 47 END )
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5029
SELECT ALL + 68, - COUNT( * ) AS col0
----
68
-1

skipif mysql # not compatible
query II rowsort label-5029
SELECT ALL + 68, - COUNT ( * ) AS col0
----
68
-1

query I rowsort
SELECT + 75 * - 75
----
-5625

query I rowsort
SELECT DISTINCT + 34 * - - 46 AS col2
----
1564

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT + ( - 21 ) * 14 * + + 77 - - 9 - - + 98 + + - 46 - - 33 + - - 52 DIV - 65
----
-22544

skipif mysql # not compatible
query I rowsort label-5032
SELECT + ( - 21 ) * 14 * + + 77 - - 9 - - + 98 + + - 46 - - 33 + - - 52 / - 65
----
-22544

query I rowsort
SELECT + 32 * + - 56 - + 72 * - + 86 - - 17 col1
----
4417

query I rowsort
SELECT ALL + + 81 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT + - COALESCE ( + - 3, COUNT( * ) ) + + 46
----
49

skipif mysql # not compatible
query I rowsort label-5035
SELECT + - COALESCE ( + - 3, COUNT ( * ) ) + + 46
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT ALL + 9 * + + 2 + - NULLIF ( + - 35, + 26 * ( - 76 ) ) + - 64 * + CAST( NULL AS SIGNED ) + - 45 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL + 9 * + + 2 + - NULLIF ( + - 35, + 26 * ( - 76 ) ) + - 64 * + CAST ( NULL AS INTEGER ) + - 45 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5037
SELECT DISTINCT - 19 * 32 * - - COUNT( * ) * - 10 col1
----
6080

skipif mysql # not compatible
query I rowsort label-5037
SELECT DISTINCT - 19 * 32 * - - COUNT ( * ) * - 10 col1
----
6080

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT DISTINCT + + CASE WHEN ( 21 ) IS NULL THEN - 73 + - COUNT( * ) + + - 71 * - + 71 * + COUNT( * ) ELSE + 22 * + 3 END
----
66

skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT + + CASE WHEN ( 21 ) IS NULL THEN - 73 + - COUNT ( * ) + + - 71 * - + 71 * + COUNT ( * ) ELSE + 22 * + 3 END
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5039
SELECT - COALESCE ( + + 52, - 44 * + ( + NULLIF ( - 3, - AVG ( DISTINCT - + 66 ) * + 8 + COUNT( * ) ) ) DIV - 5 * - 7 * - MIN( - - 64 ), + 60 ) + + COUNT( * ) + + - 45 * - 27 * - + 97
----
-117906

skipif mysql # not compatible
query I rowsort label-5039
SELECT - COALESCE ( + + 52, - 44 * + ( + NULLIF ( - 3, - AVG ( DISTINCT - + 66 ) * + 8 + COUNT ( * ) ) ) / - 5 * - 7 * - MIN ( - - 64 ), + 60 ) + + COUNT ( * ) + + - 45 * - 27 * - + 97
----
-117906

query I rowsort
SELECT + 44 * - + 93 * + 31 AS col0
----
-126852

query I rowsort
SELECT - 14 * - + 51 AS col2
----
714

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT DISTINCT - 58 * - 80 AS col1, COUNT( * ) col2
----
4640
1

skipif mysql # not compatible
query II rowsort label-5042
SELECT DISTINCT - 58 * - 80 AS col1, COUNT ( * ) col2
----
4640
1

query I rowsort
SELECT ALL + 28 * - - 60 AS col1
----
1680

onlyif mysql # DIV for integer division: 
query II rowsort label-5044
SELECT - 43 * + 79, 61 DIV - + 75 * + 45 AS col2
----
-3397
0

skipif mysql # not compatible
query II rowsort label-5044
SELECT - 43 * + 79, 61 / - + 75 * + 45 AS col2
----
-3397
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT ALL - 65 - + 15 + - 77 DIV - ( - - ( - + 37 ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL - 65 - + 15 + - 77 / - ( - - ( - + 37 ) )
----
-82

query I rowsort
SELECT DISTINCT ( 70 ) AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT 42 * - ( + COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT 42 * - ( + COUNT ( * ) )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5048
SELECT DISTINCT + 84 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT + 84 / - 40 AS col2
----
-2

query II rowsort
SELECT DISTINCT ( 0 ) AS col0, 7 AS col1
----
0
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL CAST( + ( + 20 ) AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL CAST ( + ( + 20 ) AS INTEGER )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5051
SELECT - 77 + + COUNT( * ) * 44 DIV - 1
----
-121

skipif mysql # not compatible
query I rowsort label-5051
SELECT - 77 + + COUNT ( * ) * 44 / - 1
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-5052
SELECT - 53 + - - 21 DIV 97 + + 68 + + COALESCE ( + 28, 11 )
----
43

skipif mysql # not compatible
query I rowsort label-5052
SELECT - 53 + - - 21 / 97 + + 68 + + COALESCE ( + 28, 11 )
----
43

query I rowsort
SELECT DISTINCT - ( + 57 ) * - + 4 col0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5054
SELECT ALL + 3 * + ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL + 3 * + ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL 17 + + 33
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT + 21 + - COUNT( * ) col1
----
20

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT + 21 + - COUNT ( * ) col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT COUNT( 95 ) * + COALESCE ( + COUNT( * ), 29 + - 84 * + NULLIF ( COUNT( * ), - - 0 ) + + + 99 + - COALESCE ( - + 28, - 34, + 56 + + 90 ) ) + + + 30
----
31

skipif mysql # not compatible
query I rowsort label-5057
SELECT COUNT ( 95 ) * + COALESCE ( + COUNT ( * ), 29 + - 84 * + NULLIF ( COUNT ( * ), - - 0 ) + + + 99 + - COALESCE ( - + 28, - 34, + 56 + + 90 ) ) + + + 30
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT + + 77 DIV + - 10 - + 87
----
-94

skipif mysql # not compatible
query I rowsort label-5058
SELECT + + 77 / + - 10 - + 87
----
-94

query I rowsort
SELECT ALL - - 97 + 45 + - - 42 col1
----
184

query I rowsort
SELECT + ( - - ( + 60 ) ) AS col2
----
60

query I rowsort
SELECT - CASE 12 WHEN - ( 28 ) THEN - ( - 62 ) / + - 12 WHEN - - 18 * + 63 * + + 59 THEN AVG ( 8 ) * + + 89 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT 95 * + 72 AS col0, 11 AS col2
----
6840
11

onlyif mysql # aggregate syntax: 
query II rowsort label-5063
SELECT ALL SUM( - 8 ) * + 46, 80 + + 90 + - 6 + - 45 + + 88 * + + 17 * + 11 AS col0
----
-368
16575

skipif mysql # not compatible
query II rowsort label-5063
SELECT ALL SUM ( - 8 ) * + 46, 80 + + 90 + - 6 + - 45 + + 88 * + + 17 * + 11 AS col0
----
-368
16575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5064
SELECT ALL + + 92 / + COUNT( * ) * + CASE 20 WHEN + ( - - ( + 58 ) ) / + 27 * NULLIF ( + 90, COUNT( * ) ) THEN COALESCE ( + 70, + + 26, + + ( + + CAST( NULL AS SIGNED ) ) ) WHEN - CAST( NULL AS SIGNED ) / COUNT( * ) + + 71 + + 84 * - 67 * 87 * + NULLIF ( 14, + 22 ) THEN + + NULLIF ( - COUNT( * ), COUNT( * ) * CAST( COUNT( * ) AS DECIMAL ) ) * - COUNT( * ) END * 32 + - 33 * MIN( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL + + 92 / + COUNT ( * ) * + CASE 20 WHEN + ( - - ( + 58 ) ) / + 27 * NULLIF ( + 90, COUNT ( * ) ) THEN COALESCE ( + 70, + + 26, + + ( + + CAST ( NULL AS INTEGER ) ) ) WHEN - CAST ( NULL AS INTEGER ) / COUNT ( * ) + + 71 + + 84 * - 67 * 87 * + NULLIF ( 14, + 22 ) THEN + + NULLIF ( - COUNT ( * ), COUNT ( * ) * CAST ( COUNT ( * ) AS REAL ) ) * - COUNT ( * ) END * 32 + - 33 * MIN ( + 79 )
----
NULL

query I rowsort
SELECT + - 72 AS col2
----
-72

query I rowsort
SELECT ALL - 73 * + 33
----
-2409

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT 75 * COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5067
SELECT 75 * COUNT ( * )
----
75

query I rowsort
SELECT + + 18 AS col2
----
18

query I rowsort
SELECT + 28 - + 32
----
-4

query I rowsort
SELECT + + ( - 84 )
----
-84

query I rowsort
SELECT 52 - - 34 + + + 29 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT + COUNT( * ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-5072
SELECT + COUNT ( * ) * - 29
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5073
SELECT + 33 * + MIN( DISTINCT + + 27 ) + - 15 + 16 + - - 93 + 92 + 98 * 66 DIV 14
----
1539

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 33 * + MIN ( DISTINCT + + 27 ) + - 15 + 16 + - - 93 + 92 + 98 * 66 / 14
----
1539

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT NULLIF ( - ( - + COUNT( * ) ), + 32 ) * 96 + + 79
----
175

skipif mysql # not compatible
query I rowsort label-5074
SELECT NULLIF ( - ( - + COUNT ( * ) ), + 32 ) * 96 + + 79
----
175

query II rowsort
SELECT DISTINCT 64 AS col1, - 67
----
64
-67

query II rowsort
SELECT ALL 16 col0, 94 * - 30 * - - 81 * - 93
----
16
21243060

query I rowsort
SELECT 20 - 65 AS col0
----
-45

query I rowsort
SELECT ALL + ( 62 ) * + 33
----
2046

query I rowsort
SELECT ALL + 97 * + 26
----
2522

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5080
SELECT CAST( NULL AS DECIMAL ) * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT CAST ( NULL AS REAL ) * + - COUNT ( * )
----
NULL

query I rowsort
SELECT ALL ( 50 ) + + + 50
----
100

query II rowsort
SELECT 15 AS col1, - 80
----
15
-80

query I rowsort
SELECT 65 - - - 81
----
-16

query I rowsort
SELECT ALL - 34 * + 41 AS col0
----
-1394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT DISTINCT + 80 + + 16 + + - CAST( NULL AS SIGNED ) * + 45 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT + 80 + + 16 + + - CAST ( NULL AS INTEGER ) * + 45 * - 59
----
NULL

query I rowsort
SELECT ALL ( + - 80 ) + - 45
----
-125

query I rowsort
SELECT ALL + 62 + - - 97 AS col1
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - 7 + + - CASE - - CAST( NULL AS SIGNED ) WHEN - 9 + - - 60 THEN NULL ELSE 48 + + MAX( DISTINCT + 40 ) + + 29 * 60 END col1
----
-1835

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - 7 + + - CASE - - CAST ( NULL AS INTEGER ) WHEN - 9 + - - 60 THEN NULL ELSE 48 + + MAX ( DISTINCT + 40 ) + + 29 * 60 END col1
----
-1835

query II rowsort
SELECT 10, - 42 AS col2
----
10
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT 61 * + - COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-5090
SELECT 61 * + - COUNT ( * )
----
-61

query I rowsort
SELECT 64 + - 27
----
37

query I rowsort
SELECT + ( + 76 )
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5093
SELECT ALL - - 44 + + 11 * COUNT( * ) + + 86 DIV + 61 - - 83 - + 50 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - - 44 + + 11 * COUNT ( * ) + + 86 / + 61 - - 83 - + 50 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT + 96 + + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-5094
SELECT + 96 + + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5095
SELECT - COALESCE ( 37, + 94, - 51 DIV + 87, + - ( - - 31 ) * - 4 + 13 ) + + SUM( ALL + + ( - + 56 ) ) - 54 AS col0
----
-147

skipif mysql # not compatible
query I rowsort label-5095
SELECT - COALESCE ( 37, + 94, - 51 / + 87, + - ( - - 31 ) * - 4 + 13 ) + + SUM ( ALL + + ( - + 56 ) ) - 54 AS col0
----
-147

query I rowsort
SELECT 31 * + + 84 AS col0
----
2604

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL + COUNT( DISTINCT ( 86 ) ) * 64 + + - 85 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL + COUNT ( DISTINCT ( 86 ) ) * 64 + + - 85 AS col2
----
-21

query I rowsort
SELECT DISTINCT - 90 AS col1
----
-90

query I rowsort
SELECT DISTINCT - + 2 - - 9 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT DISTINCT + - COUNT( * ) * 63
----
-63

skipif mysql # not compatible
query I rowsort label-5100
SELECT DISTINCT + - COUNT ( * ) * 63
----
-63

query II rowsort
SELECT DISTINCT - 38, 17 AS col2
----
-38
17

query I rowsort
SELECT ALL + 24 * - 8
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT COUNT( * ) + - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-5103
SELECT COUNT ( * ) + - + 15
----
-14

query I rowsort
SELECT + + NULLIF ( 16, + - 82 + - + 58 )
----
16

query I rowsort
SELECT 87 + - 47 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5106
SELECT 27 * - COALESCE ( - 36, - NULLIF ( - - 88, 14 ) + 20 DIV + CASE + 3 WHEN - 23 THEN - CAST( NULL AS SIGNED ) * - 69 * 20 DIV - + 23 WHEN - 61 THEN NULL WHEN CAST( - + 12 AS SIGNED ) * + 35 THEN + CASE 25 WHEN + + 96 THEN + 59 WHEN - - 60 + 50 THEN NULL END ELSE - COUNT( * ) END ) + + MAX( ALL + 58 ) AS col1
----
1030

skipif mysql # not compatible
query I rowsort label-5106
SELECT 27 * - COALESCE ( - 36, - NULLIF ( - - 88, 14 ) + 20 / + CASE + 3 WHEN - 23 THEN - CAST ( NULL AS INTEGER ) * - 69 * 20 / - + 23 WHEN - 61 THEN NULL WHEN CAST ( - + 12 AS INTEGER ) * + 35 THEN + CASE 25 WHEN + + 96 THEN + 59 WHEN - - 60 + 50 THEN NULL END ELSE - COUNT ( * ) END ) + + MAX ( ALL + 58 ) AS col1
----
1030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5107
SELECT + 87 * + - 54 * 0 AS col2, 28 DIV + 41 * + COUNT( * ) + - + 54 * - CAST( - 84 AS SIGNED )
----
0
-4536

skipif mysql # not compatible
query II rowsort label-5107
SELECT + 87 * + - 54 * 0 AS col2, 28 / + 41 * + COUNT ( * ) + - + 54 * - CAST ( - 84 AS INTEGER )
----
0
-4536

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT + 81 DIV 86 + + 31 * 9
----
279

skipif mysql # not compatible
query I rowsort label-5108
SELECT + 81 / 86 + + 31 * 9
----
279

onlyif mysql # aggregate syntax: 
query II rowsort label-5109
SELECT - + COUNT( * ) * + 6 * + - 36 - - 66 AS col1, - 95 AS col2
----
282
-95

skipif mysql # not compatible
query II rowsort label-5109
SELECT - + COUNT ( * ) * + 6 * + - 36 - - 66 AS col1, - 95 AS col2
----
282
-95

query II rowsort
SELECT ALL - 7 AS col2, 44 + + - 64 * - 46 / CASE WHEN 9 IS NULL THEN + - 8 ELSE NULL END col0
----
-7
NULL

query I rowsort
SELECT 66 + + + 33 AS col1
----
99

query I rowsort
SELECT DISTINCT - COALESCE ( 63, + 82 + - - 75 - - 59 * 75 * - + 60 )
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-5113
SELECT DISTINCT 31 * + + COUNT( * ), - 71 AS col1
----
31
-71

skipif mysql # not compatible
query II rowsort label-5113
SELECT DISTINCT 31 * + + COUNT ( * ), - 71 AS col1
----
31
-71

query I rowsort
SELECT ALL - 85 AS col1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5115
SELECT - 51 * + - COALESCE ( + NULLIF ( + 11, + 35 + - 72 ), + - 5 ) + 76 + + + CASE - 71 WHEN + 14 THEN + - CAST( - 74 AS SIGNED ) WHEN + NULLIF ( - 72, + - 81 ) THEN - + ( - MIN( DISTINCT - 69 ) ) ELSE NULL END / - MIN( - ( + ( + 37 ) ) ) + + + 74 + 43 * COUNT( * ) / 29 * + - 47 * - - 56 + - 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 51 * + - COALESCE ( + NULLIF ( + 11, + 35 + - 72 ), + - 5 ) + 76 + + + CASE - 71 WHEN + 14 THEN + - CAST ( - 74 AS INTEGER ) WHEN + NULLIF ( - 72, + - 81 ) THEN - + ( - MIN ( DISTINCT - 69 ) ) ELSE NULL END / - MIN ( - ( + ( + 37 ) ) ) + + + 74 + 43 * COUNT ( * ) / 29 * + - 47 * - - 56 + - 85 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT ALL - CASE - - 38 WHEN - MIN( - 83 ) THEN NULL WHEN + 42 + + ( + 60 ) * + + 67 THEN COALESCE ( - 73, + 63 * - 61 + - MAX( 1 ) - - - MIN( DISTINCT + + 38 ), + - 93 * - 74 / + 38 / NULLIF ( + NULLIF ( - 67, NULLIF ( + COUNT( 37 ), + MIN( - 87 ) ) ), + 25 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL - CASE - - 38 WHEN - MIN ( - 83 ) THEN NULL WHEN + 42 + + ( + 60 ) * + + 67 THEN COALESCE ( - 73, + 63 * - 61 + - MAX ( 1 ) - - - MIN ( DISTINCT + + 38 ), + - 93 * - 74 / + 38 / NULLIF ( + NULLIF ( - 67, NULLIF ( + COUNT ( 37 ), + MIN ( - 87 ) ) ), + 25 ) ) END
----
NULL

query I rowsort
SELECT 30 + - + 24
----
6

query I rowsort
SELECT ALL - 1 col1
----
-1

query I rowsort
SELECT ALL CASE 4 WHEN - 33 * + 13 THEN NULL ELSE + 73 END + - ( - - 61 )
----
12

query I rowsort
SELECT 49 + - + 29 col1
----
20

query I rowsort
SELECT DISTINCT ( - + 37 ) + - + 73 + 27 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT + 12 * - SUM( DISTINCT - + 48 ) col1
----
576

skipif mysql # not compatible
query I rowsort label-5122
SELECT + 12 * - SUM ( DISTINCT - + 48 ) col1
----
576

query I rowsort
SELECT + 12 * 2 + - 76
----
-52

query I rowsort
SELECT ALL 76 + 2 AS col0
----
78

query I rowsort
SELECT + ( 64 ) + - + 44 * - + 42 AS col1
----
1912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT DISTINCT + 58 + - CAST( + 96 AS SIGNED ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT + 58 + - CAST ( + 96 AS INTEGER ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + SUM( ALL - - 88 ) + + 97 * + 25 AS col1
----
2513

skipif mysql # not compatible
query I rowsort label-5127
SELECT + SUM ( ALL - - 88 ) + + 97 * + 25 AS col1
----
2513

query I rowsort
SELECT ALL 82 + ( - 53 )
----
29

query I rowsort
SELECT ALL 40 + + 33 + - 75 * - 76 AS col2
----
5773

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT + + 0 - - COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5130
SELECT + + 0 - - COUNT ( * ) col0
----
1

query I rowsort
SELECT - 8 col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5132
SELECT - ( MIN( DISTINCT - 82 ) ) * + 36 AS col1
----
2952

skipif mysql # not compatible
query I rowsort label-5132
SELECT - ( MIN ( DISTINCT - 82 ) ) * + 36 AS col1
----
2952

query I rowsort
SELECT + ( - 65 ) * + ( - - 0 ) + - + 29
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-5134
SELECT DISTINCT 82 - + COUNT( * ) AS col0, 68 AS col0
----
81
68

skipif mysql # not compatible
query II rowsort label-5134
SELECT DISTINCT 82 - + COUNT ( * ) AS col0, 68 AS col0
----
81
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT DISTINCT - CASE - 38 WHEN + NULLIF ( + 82, 24 / 27 ) + + - SUM( 12 ) THEN + - 31 END * - - 0 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT - CASE - 38 WHEN + NULLIF ( + 82, 24 / 27 ) + + - SUM ( 12 ) THEN + - 31 END * - - 0 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5136
SELECT - ( + + 64 ) / + 96 + CAST( NULL AS SIGNED ) + + 3 * + AVG ( - 67 ) + 24 - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT - ( + + 64 ) / + 96 + CAST ( NULL AS INTEGER ) + + 3 * + AVG ( - 67 ) + 24 - 92 AS col2
----
NULL

query I rowsort
SELECT ALL + 53 * + + 80 AS col0
----
4240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 90 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT + - 98 DIV - 90
----
1

skipif mysql # not compatible
query I rowsort label-5139
SELECT + - 98 / - 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT - 80 + - MIN( DISTINCT - 96 ) + + 54
----
70

skipif mysql # not compatible
query I rowsort label-5140
SELECT - 80 + - MIN ( DISTINCT - 96 ) + + 54
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT - + 81 * + CASE 34 WHEN - ( + 99 ) THEN + NULLIF ( - ( + 5 ), - CASE 41 WHEN + - 77 * + 35 * - 50 THEN + + 50 WHEN - 35 THEN + MIN( ALL - + 28 ) ELSE NULL END + 64 + + - COALESCE ( - ( 99 ), - 42 * - - COUNT( * ) + 13 + + 13 - + - 26, - + 36 + + - 97 ) + - 7 * 75 ) WHEN + 93 + SUM( DISTINCT - 56 ) THEN 89 * - 52 + - 46 END + - CAST( + 82 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT - + 81 * + CASE 34 WHEN - ( + 99 ) THEN + NULLIF ( - ( + 5 ), - CASE 41 WHEN + - 77 * + 35 * - 50 THEN + + 50 WHEN - 35 THEN + MIN ( ALL - + 28 ) ELSE NULL END + 64 + + - COALESCE ( - ( 99 ), - 42 * - - COUNT ( * ) + 13 + + 13 - + - 26, - + 36 + + - 97 ) + - 7 * 75 ) WHEN + 93 + SUM ( DISTINCT - 56 ) THEN 89 * - 52 + - 46 END + - CAST ( + 82 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5142
SELECT ALL + + MAX( + 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-5142
SELECT ALL + + MAX ( + 86 ) AS col0
----
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5143
SELECT DISTINCT + + NULLIF ( - 30, + + ( - + CAST( NULL AS DECIMAL ) ) )
----
-30

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + + NULLIF ( - 30, + + ( - + CAST ( NULL AS REAL ) ) )
----
-30

query I rowsort
SELECT ( + - 88 ) AS col2
----
-88

query I rowsort
SELECT DISTINCT - 97 * 57
----
-5529

query I rowsort
SELECT - 43 * + + 1 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL + 34 * + - CASE + 99 WHEN 20 / - NULLIF ( - - 69, + + COUNT( * ) * - 6 ) THEN + 71 END * + 64 + + + 53 + + 90 + + 62 + - 59 * + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL + 34 * + - CASE + 99 WHEN 20 / - NULLIF ( - - 69, + + COUNT ( * ) * - 6 ) THEN + 71 END * + 64 + + + 53 + + 90 + + 62 + - 59 * + 47 col0
----
NULL

query I rowsort
SELECT COALESCE ( - 17, + ( + 48 ) ) AS col1
----
-17

query I rowsort
SELECT - 36 - + + 39 AS col0
----
-75

query I rowsort
SELECT ALL - 35 * + + 57 * 84 + - ( + 73 ) * + 40 * + 28 AS col0
----
-249340

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - 82 - + COUNT( * ) + 18 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5151
SELECT - 82 - + COUNT ( * ) + 18 AS col2
----
-65

query I rowsort
SELECT ALL 94 * + 17 col2
----
1598

onlyif mysql # aggregate syntax: 
query II rowsort label-5153
SELECT - 92, COUNT( * ) + + - ( - 10 ) AS col0
----
-92
11

skipif mysql # not compatible
query II rowsort label-5153
SELECT - 92, COUNT ( * ) + + - ( - 10 ) AS col0
----
-92
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5154
SELECT COUNT( DISTINCT + 98 )
----
1

skipif mysql # not compatible
query I rowsort label-5154
SELECT COUNT ( DISTINCT + 98 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT ALL - 44 - + - CASE - - COUNT( * ) WHEN - + 62 + + 76 + 61 * NULLIF ( CASE + - MIN( ALL - - 85 ) WHEN 28 THEN 35 * COUNT( DISTINCT 30 ) * 75 * + ( + - 20 ) * + 38 + - 30 + + 35 - 66 - - - CAST( - 37 AS SIGNED ) * SUM( - ( 80 ) ) + CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 90 NOT BETWEEN ( - NULLIF ( + 87, + 44 ) - - 98 ) AND + 46 THEN NULL ELSE + 50 END + - 63 * - 19 * 69 ELSE + 81 - 4 * 71 END, 16 ) THEN + 70 WHEN - 68 THEN NULL WHEN 63 * 80 + 65 THEN 81 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL - 44 - + - CASE - - COUNT ( * ) WHEN - + 62 + + 76 + 61 * NULLIF ( CASE + - MIN ( ALL - - 85 ) WHEN 28 THEN 35 * COUNT ( DISTINCT 30 ) * 75 * + ( + - 20 ) * + 38 + - 30 + + 35 - 66 - - - CAST ( - 37 AS INTEGER ) * SUM ( - ( 80 ) ) + CASE WHEN ( NULL ) IS NOT NULL THEN NULL WHEN - 90 NOT BETWEEN ( - NULLIF ( + 87, + 44 ) - - 98 ) AND + 46 THEN NULL ELSE + 50 END + - 63 * - 19 * 69 ELSE + 81 - 4 * 71 END, 16 ) THEN + 70 WHEN - 68 THEN NULL WHEN 63 * 80 + 65 THEN 81 END
----
NULL

query I rowsort
SELECT - 23 + + 51 AS col1
----
28

query I rowsort
SELECT + 29 * 9 AS col1
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5158
SELECT ALL 34 * - + ( + - 0 ) AS col1, CAST( 7 AS SIGNED ) * - + 95 * MAX( + NULLIF ( 64, - - 30 / 15 * + 89 * - + NULLIF ( - ( + 2 ), - 57 ) * - - 28 ) )
----
0
-42560

skipif mysql # not compatible
query II rowsort label-5158
SELECT ALL 34 * - + ( + - 0 ) AS col1, CAST ( 7 AS INTEGER ) * - + 95 * MAX ( + NULLIF ( 64, - - 30 / 15 * + 89 * - + NULLIF ( - ( + 2 ), - 57 ) * - - 28 ) )
----
0
-42560

query I rowsort
SELECT + 53 - 43 AS col2
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT + + 63 * NULLIF ( + COUNT( * ), 98 * MAX( - - 93 ) - + 89 ) - - 53 AS col1, 23 AS col0
----
116
23

skipif mysql # not compatible
query II rowsort label-5160
SELECT + + 63 * NULLIF ( + COUNT ( * ), 98 * MAX ( - - 93 ) - + 89 ) - - 53 AS col1, 23 AS col0
----
116
23

query I rowsort
SELECT ALL - 22 col1
----
-22

query I rowsort
SELECT + 72 * - 83 * + 72
----
-430272

onlyif mysql # aggregate syntax: 
query I rowsort label-5163
SELECT + 42 * - + COUNT( * ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-5163
SELECT + 42 * - + COUNT ( * ) AS col1
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT DISTINCT + 75 DIV + - 10 * + 1
----
-7

skipif mysql # not compatible
query I rowsort label-5164
SELECT DISTINCT + 75 / + - 10 * + 1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT + + NULLIF ( - + COUNT( * ), + - 80 * + + 2 + + + 95 ) + - + COUNT( * ) - - 18
----
16

skipif mysql # not compatible
query I rowsort label-5165
SELECT + + NULLIF ( - + COUNT ( * ), + - 80 * + + 2 + + + 95 ) + - + COUNT ( * ) - - 18
----
16

query I rowsort
SELECT - - 1 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5167
SELECT - 69 DIV MAX( + 95 ) * MIN( ALL 8 ) + + 81 + + 69 - + ( - - 2 ) AS col2
----
148

skipif mysql # not compatible
query I rowsort label-5167
SELECT - 69 / MAX ( + 95 ) * MIN ( ALL 8 ) + + 81 + + 69 - + ( - - 2 ) AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT 36 * COUNT( * ) + - COUNT( * ) + - 84 AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-5168
SELECT 36 * COUNT ( * ) + - COUNT ( * ) + - 84 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT - + COUNT( * ) * + 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-5169
SELECT - + COUNT ( * ) * + 78 AS col1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-5170
SELECT - - 5 * 79 + - 13 - - 76 DIV - 7 + - + 55 col1
----
317

skipif mysql # not compatible
query I rowsort label-5170
SELECT - - 5 * 79 + - 13 - - 76 / - 7 + - + 55 col1
----
317

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT + - MAX( ALL - 86 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-5171
SELECT + - MAX ( ALL - 86 ) AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5172
SELECT - COUNT( * ) DIV - - 53 * - COUNT( 21 ) + - 68 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-5172
SELECT - COUNT ( * ) / - - 53 * - COUNT ( 21 ) + - 68 AS col1
----
-68

query I rowsort
SELECT - 58 + - + 33 AS col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT CAST( + - AVG ( 34 ) AS SIGNED )
----
-34

skipif mysql # not compatible
query I rowsort label-5174
SELECT CAST ( + - AVG ( 34 ) AS INTEGER )
----
-34

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5175
SELECT + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5176
SELECT CAST( NULL AS SIGNED ) AS col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-5176
SELECT CAST ( NULL AS INTEGER ) AS col0, + 45
----
NULL
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5177
SELECT DISTINCT + ( - + 74 ) DIV - ( - 88 ) + - 20 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + ( - + 74 ) / - ( - 88 ) + - 20 AS col2
----
-20

query I rowsort
SELECT + 37 + 3 * - 23 - 70 + - + 84
----
-186

query I rowsort
SELECT 38 * + 97 - - 32 AS col1
----
3718

query I rowsort
SELECT ( - + ( - 62 ) ) + + + 80 AS col0
----
142

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5181
SELECT + 67 * + 89 - - COALESCE ( - - CAST( - 71 AS SIGNED ), + 44 DIV 5 DIV + + 6 ) AS col2
----
5892

skipif mysql # not compatible
query I rowsort label-5181
SELECT + 67 * + 89 - - COALESCE ( - - CAST ( - 71 AS INTEGER ), + 44 / 5 / + + 6 ) AS col2
----
5892

query I rowsort
SELECT DISTINCT - 68 AS col0
----
-68

query II rowsort
SELECT + 22, - 48 * + + 78 AS col0
----
22
-3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5184
SELECT ALL - 75 + - CAST( + 88 AS SIGNED ) * - 0 AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-5184
SELECT ALL - 75 + - CAST ( + 88 AS INTEGER ) * - 0 AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5185
SELECT DISTINCT - ( CAST( - 56 AS SIGNED ) )
----
56

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT - ( CAST ( - 56 AS INTEGER ) )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5186
SELECT ALL - 48 * + CAST( 22 AS SIGNED )
----
-1056

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL - 48 * + CAST ( 22 AS INTEGER )
----
-1056

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT 64 + + CASE 84 WHEN + MIN( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5187
SELECT 64 + + CASE 84 WHEN + MIN ( - - 66 ) + + 84 THEN - 93 END + - - 83 + 13 AS col0, CASE 58 WHEN - 67 + + 84 + + 0 * - 78 THEN + 12 * - ( + - 90 ) END / 91 + + 59 AS col0
----
NULL
NULL

query I rowsort
SELECT ALL - 76 - - 44 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT COUNT( * ) * - 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-5189
SELECT COUNT ( * ) * - 41 AS col0
----
-41

query II rowsort
SELECT 31, 66 AS col0
----
31
66

query II rowsort
SELECT 39 AS col1, + 75
----
39
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT 54 DIV + 43
----
1

skipif mysql # not compatible
query I rowsort label-5192
SELECT 54 / + 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT 90 * MAX( DISTINCT - 63 )
----
-5670

skipif mysql # not compatible
query I rowsort label-5193
SELECT 90 * MAX ( DISTINCT - 63 )
----
-5670

query II rowsort
SELECT 20 col1, 58 - + 10 AS col0
----
20
48

query I rowsort
SELECT ALL - 13 col2
----
-13

query I rowsort
SELECT 47 + + 40
----
87

query II rowsort
SELECT DISTINCT + 90 AS col0, 15 * - 31
----
90
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT ALL + - SUM( + 89 ) DIV - 42
----
2

skipif mysql # not compatible
query I rowsort label-5198
SELECT ALL + - SUM ( + 89 ) / - 42
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5199
SELECT ALL - 45 * + - COUNT( * ) * - - COALESCE ( 1, + COALESCE ( 89, + NULLIF ( - CAST( NULL AS SIGNED ), + - 74 + + 29 ) ) DIV + NULLIF ( + 25, + + CASE - 62 WHEN + 74 + - COUNT( * ) * 5 THEN + 15 END * MIN( DISTINCT + 17 ) + - + 81 ) ) - 30 col0
----
15

skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - 45 * + - COUNT ( * ) * - - COALESCE ( 1, + COALESCE ( 89, + NULLIF ( - CAST ( NULL AS INTEGER ), + - 74 + + 29 ) ) / + NULLIF ( + 25, + + CASE - 62 WHEN + 74 + - COUNT ( * ) * 5 THEN + 15 END * MIN ( DISTINCT + 17 ) + - + 81 ) ) - 30 col0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT - - COUNT( * ) AS col1, + 38 AS col0
----
1
38

skipif mysql # not compatible
query II rowsort label-5200
SELECT - - COUNT ( * ) AS col1, + 38 AS col0
----
1
38

onlyif mysql # DIV for integer division: 
query I rowsort label-5201
SELECT - 83 - + + 11 DIV + 89 + 52 + - + 28
----
-59

skipif mysql # not compatible
query I rowsort label-5201
SELECT - 83 - + + 11 / + 89 + 52 + - + 28
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5202
SELECT - 78 AS col2, COUNT( * ) * + 20 + + 93 AS col0
----
-78
113

skipif mysql # not compatible
query II rowsort label-5202
SELECT - 78 AS col2, COUNT ( * ) * + 20 + + 93 AS col0
----
-78
113

onlyif mysql # aggregate syntax: 
query II rowsort label-5203
SELECT DISTINCT 27 + - 81 AS col0, + COUNT( * ) AS col0
----
-54
1

skipif mysql # not compatible
query II rowsort label-5203
SELECT DISTINCT 27 + - 81 AS col0, + COUNT ( * ) AS col0
----
-54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL - 1 * SUM( DISTINCT - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL - 1 * SUM ( DISTINCT - 88 ) AS col1
----
88

query I rowsort
SELECT - - 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ALL + 10 + + - 20 * + - COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + 10 + + - 20 * + - COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT - 52 + - 83
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-5208
SELECT COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL + 19 + - 45 * SUM( ALL - 71 ) + - - 19 + ( - CAST( NULL AS SIGNED ) ) + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + 19 + - 45 * SUM ( ALL - 71 ) + - - 19 + ( - CAST ( NULL AS INTEGER ) ) + 38
----
NULL

query II rowsort
SELECT ALL - - 16 AS col1, 8 * + 70 AS col0
----
16
560

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5211
SELECT 33, + 17 + 26 + - + CAST( NULL AS DECIMAL ) AS col1
----
33
NULL

skipif mysql # not compatible
query II rowsort label-5211
SELECT 33, + 17 + 26 + - + CAST ( NULL AS REAL ) AS col1
----
33
NULL

query I rowsort
SELECT 70 col1
----
70

query I rowsort
SELECT DISTINCT - 81 AS col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT COUNT( * ) * ( + + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-5214
SELECT COUNT ( * ) * ( + + 45 )
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5215
SELECT DISTINCT ( - COUNT( * ) ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5215
SELECT DISTINCT ( - COUNT ( * ) ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL 25 + + ( - 94 ) + - - 40 + + 83 * + + 8 * + + 25 AS col1
----
16571

query I rowsort
SELECT ALL - 84 AS col2
----
-84

query I rowsort
SELECT DISTINCT ( 42 ) - - + 73
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT + SUM( DISTINCT - 97 ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-5219
SELECT + SUM ( DISTINCT - 97 ) AS col2
----
-97

query I rowsort
SELECT ALL 65 - + - 8
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT 71 * + 79 * - + COUNT( * )
----
-5609

skipif mysql # not compatible
query I rowsort label-5221
SELECT 71 * + 79 * - + COUNT ( * )
----
-5609

query I rowsort
SELECT 45 - - + 5
----
50

query I rowsort
SELECT ALL - 16 col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT ALL 17 DIV 89 * + - 11
----
0

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL 17 / 89 * + - 11
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5225
SELECT CAST( - 68 AS SIGNED ) + + 31
----
-37

skipif mysql # not compatible
query I rowsort label-5225
SELECT CAST ( - 68 AS INTEGER ) + + 31
----
-37

query I rowsort
SELECT 17 * - + 10 + + + 60 col1
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT - MIN( 48 ) - + - 2
----
-46

skipif mysql # not compatible
query I rowsort label-5227
SELECT - MIN ( 48 ) - + - 2
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5228
SELECT + 97 * - 64, - CASE - COALESCE ( + 93, - + 16 ) WHEN + 74 + CAST( NULL AS SIGNED ) + - ( + 59 ) + + COUNT( * ) * - - ( + 44 ) THEN NULL ELSE 93 END * - 49 + + CAST( - 69 AS SIGNED ) AS col1
----
-6208
4488

skipif mysql # not compatible
query II rowsort label-5228
SELECT + 97 * - 64, - CASE - COALESCE ( + 93, - + 16 ) WHEN + 74 + CAST ( NULL AS INTEGER ) + - ( + 59 ) + + COUNT ( * ) * - - ( + 44 ) THEN NULL ELSE 93 END * - 49 + + CAST ( - 69 AS INTEGER ) AS col1
----
-6208
4488

query I rowsort
SELECT 31 - + + 83
----
-52

query I rowsort
SELECT DISTINCT + ( - - 36 ) * + + 66 + + - 42
----
2334

query I rowsort
SELECT - 63 * - + NULLIF ( 29, - 88 / + + 15 + - ( + - ( - 40 ) ) + + 25 ) - - - 90 - - - 35 AS col2
----
1702

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT 10 + - - COUNT( * ), ( 78 ) AS col2
----
11
78

skipif mysql # not compatible
query II rowsort label-5232
SELECT 10 + - - COUNT ( * ), ( 78 ) AS col2
----
11
78

query II rowsort
SELECT ALL + 14 + - 75, 56 AS col2
----
-61
56

query I rowsort
SELECT ( + 92 )
----
92

query I rowsort
SELECT ALL - - 43 + - - 34
----
77

query I rowsort
SELECT DISTINCT - 23 + 79 AS col1
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5237
SELECT 10 DIV CASE - COUNT( * ) WHEN + 79 THEN NULL WHEN 6 * - + 65 + 20 + + + 68 THEN - - 45 * - + COUNT( * ) - - - 47 + + + 46 * COALESCE ( - - 27, + - 37 ) + - - 88 ELSE - 90 END * + - 66 DIV - + 92
----
0

skipif mysql # not compatible
query I rowsort label-5237
SELECT 10 / CASE - COUNT ( * ) WHEN + 79 THEN NULL WHEN 6 * - + 65 + 20 + + + 68 THEN - - 45 * - + COUNT ( * ) - - - 47 + + + 46 * COALESCE ( - - 27, + - 37 ) + - - 88 ELSE - 90 END * + - 66 / - + 92
----
0

query III rowsort
SELECT - CASE + + COALESCE ( 5, - - 49 - - 81 + - - 42 + - 61 / + ( 77 ) * + 4 / 63 / + 38 ) WHEN + + 11 * + - 31 - - 7 + - 4 THEN - + 65 END AS col0, 32 col0, 9 * + ( + + 29 )
----
NULL
32
261

onlyif mysql # aggregate syntax: 
query II rowsort label-5239
SELECT - MIN( 93 ) AS col0, ( + + COALESCE ( - - 55, 45, + SUM( + + 45 ) ) ) + + 66
----
-93
121

skipif mysql # not compatible
query II rowsort label-5239
SELECT - MIN ( 93 ) AS col0, ( + + COALESCE ( - - 55, 45, + SUM ( + + 45 ) ) ) + + 66
----
-93
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT 59 * - - COUNT( DISTINCT + + ( + 2 ) )
----
59

skipif mysql # not compatible
query I rowsort label-5240
SELECT 59 * - - COUNT ( DISTINCT + + ( + 2 ) )
----
59

query I rowsort
SELECT - ( + - 15 ) AS col1
----
15

query I rowsort
SELECT ALL + - 63 * - 26 AS col0
----
1638

query I rowsort
SELECT - ( + 96 ) + + 50
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5244
SELECT - 9 * 33 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5244
SELECT - 9 * 33 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL 34 * 93 - + 68 AS col0, - 81 col0
----
3094
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5246
SELECT + 59 DIV 37 * + - COALESCE ( 83, - 14 * + - NULLIF ( + COUNT( * ), + COUNT( * ) ) + - - 7 ) + - CASE + 36 WHEN + 19 * MIN( 3 ) + + CASE + 57 WHEN - - COALESCE ( - - 86, + 19 * + 25 ) DIV - COALESCE ( 86, MIN( ALL + 5 ) ) THEN - 22 + + MIN( + 95 ) END - + 69 THEN NULL WHEN + 80 THEN NULL WHEN + + SUM( - - 88 ) THEN 90 ELSE 33 END AS col0
----
-116

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 59 / 37 * + - COALESCE ( 83, - 14 * + - NULLIF ( + COUNT ( * ), + COUNT ( * ) ) + - - 7 ) + - CASE + 36 WHEN + 19 * MIN ( 3 ) + + CASE + 57 WHEN - - COALESCE ( - - 86, + 19 * + 25 ) / - COALESCE ( 86, MIN ( ALL + 5 ) ) THEN - 22 + + MIN ( + 95 ) END - + 69 THEN NULL WHEN + 80 THEN NULL WHEN + + SUM ( - - 88 ) THEN 90 ELSE 33 END AS col0
----
-116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + CASE CAST( + - MAX( + + 88 ) AS SIGNED ) WHEN CASE CAST( + 89 AS SIGNED ) WHEN - + 12 + + ( - + 34 ) THEN NULLIF ( 82, + 36 * - 64 ) * + 93 + - 90 WHEN 2 * - 13 THEN - - 79 END * + 61 / 86 - COALESCE ( - ( + 68 ), + 99 ) THEN - ( - COUNT( * ) ) WHEN + SUM( DISTINCT - 11 ) - - 67 + - - ( 38 ) - 12 THEN NULL END * - 77 - COUNT( 89 ) * - 67
----
NULL

skipif mysql # not compatible
query I rowsort label-5247
SELECT ALL + CASE CAST ( + - MAX ( + + 88 ) AS INTEGER ) WHEN CASE CAST ( + 89 AS INTEGER ) WHEN - + 12 + + ( - + 34 ) THEN NULLIF ( 82, + 36 * - 64 ) * + 93 + - 90 WHEN 2 * - 13 THEN - - 79 END * + 61 / 86 - COALESCE ( - ( + 68 ), + 99 ) THEN - ( - COUNT ( * ) ) WHEN + SUM ( DISTINCT - 11 ) - - 67 + - - ( 38 ) - 12 THEN NULL END * - 77 - COUNT ( 89 ) * - 67
----
NULL

query I rowsort
SELECT NULLIF ( + - 6, 57 * + 47 / 90 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT - COUNT( * ) * 20 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5249
SELECT - COUNT ( * ) * 20 AS col0
----
-20

query I rowsort
SELECT - 96 * - + 7 + 68 + 91 * 40 AS col0
----
4380

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT + ( + - ( + 85 ) ) * - MAX( ALL + NULLIF ( - 70, - 97 + - 97 ) ) + 55 col1
----
-5895

skipif mysql # not compatible
query I rowsort label-5251
SELECT + ( + - ( + 85 ) ) * - MAX ( ALL + NULLIF ( - 70, - 97 + - 97 ) ) + 55 col1
----
-5895

onlyif mysql # DIV for integer division: 
query II rowsort label-5252
SELECT ALL + 19, + 19 DIV - 10 AS col2
----
19
-1

skipif mysql # not compatible
query II rowsort label-5252
SELECT ALL + 19, + 19 / - 10 AS col2
----
19
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL COUNT( * ) * 68
----
68

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL COUNT ( * ) * 68
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-5254
SELECT DISTINCT + 40 DIV - - 15
----
2

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT + 40 / - - 15
----
2

query I rowsort
SELECT DISTINCT 41 * 13
----
533

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL 76 * - COUNT( * ) * + 47 AS col0
----
-3572

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL 76 * - COUNT ( * ) * + 47 AS col0
----
-3572

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5257
SELECT + + CAST( NULL AS SIGNED ) + - ( - - COUNT( * ) ) * 74 AS col2, 23 + 67 + + - COUNT( * ) * + 29 AS col2
----
NULL
61

skipif mysql # not compatible
query II rowsort label-5257
SELECT + + CAST ( NULL AS INTEGER ) + - ( - - COUNT ( * ) ) * 74 AS col2, 23 + 67 + + - COUNT ( * ) * + 29 AS col2
----
NULL
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL + COUNT( * ) + + 18
----
19

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL + COUNT ( * ) + + 18
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5259
SELECT - 79 AS col0, COUNT( * ) AS col2
----
-79
1

skipif mysql # not compatible
query II rowsort label-5259
SELECT - 79 AS col0, COUNT ( * ) AS col2
----
-79
1

query I rowsort
SELECT + 95 * - 47 * + COALESCE ( 75, - ( + + 44 ) ) + + 37
----
-334838

query I rowsort
SELECT ALL - 18 + + - 79 * + 65
----
-5153

query I rowsort
SELECT ALL 48 + 26
----
74

query I rowsort
SELECT DISTINCT ( + 31 ) col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - - COUNT( + - 80 ) + - + 82 + 74 * 68 AS col0
----
4951

skipif mysql # not compatible
query I rowsort label-5264
SELECT - - COUNT ( + - 80 ) + - + 82 + 74 * 68 AS col0
----
4951

query I rowsort
SELECT - + 82 + - + 32
----
-114

query I rowsort
SELECT - - 24 * - 45
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - 24 + - COUNT( * ) + - - 67 col2
----
42

skipif mysql # not compatible
query I rowsort label-5267
SELECT - 24 + - COUNT ( * ) + - - 67 col2
----
42

query I rowsort
SELECT ALL + + 11 * + + 81 * + 43
----
38313

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5269
SELECT - CAST( + CAST( - ( 65 ) AS SIGNED ) AS SIGNED ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-5269
SELECT - CAST ( + CAST ( - ( 65 ) AS INTEGER ) AS INTEGER ) AS col1
----
65

query I rowsort
SELECT - 46 + - 32
----
-78

query II rowsort
SELECT - 70, 0 * + - ( - ( + ( + 96 ) ) ) + 3 + - + 33 * - 30 AS col0
----
-70
993

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT ALL MIN( 80 ) * + - COUNT( - - 5 )
----
-80

skipif mysql # not compatible
query I rowsort label-5272
SELECT ALL MIN ( 80 ) * + - COUNT ( - - 5 )
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT DISTINCT COUNT( - + 47 ) AS col0, - ( 81 )
----
1
-81

skipif mysql # not compatible
query II rowsort label-5273
SELECT DISTINCT COUNT ( - + 47 ) AS col0, - ( 81 )
----
1
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT ALL - 16 DIV + - 4
----
4

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - 16 / + - 4
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT DISTINCT CAST( + 31 AS SIGNED ) AS col1
----
31

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT CAST ( + 31 AS INTEGER ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT ALL + MIN( DISTINCT + 62 ), + 89 + 74 * - COALESCE ( 62, + - 11 ) * + COUNT( * ) AS col2
----
62
-4499

skipif mysql # not compatible
query II rowsort label-5276
SELECT ALL + MIN ( DISTINCT + 62 ), + 89 + 74 * - COALESCE ( 62, + - 11 ) * + COUNT ( * ) AS col2
----
62
-4499

query II rowsort
SELECT - 30 * + - 25, 84 AS col0
----
750
84

query II rowsort
SELECT - 36 * + + 55, 39 col2
----
-1980
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5279
SELECT - 54 DIV 99
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT - 54 / 99
----
0

query I rowsort
SELECT ALL + 54 * + 56 * + 1
----
3024

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ( - + SUM( DISTINCT + 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-5281
SELECT ( - + SUM ( DISTINCT + 34 ) )
----
-34

query II rowsort
SELECT ( + + 22 ) AS col0, 43 AS col0
----
22
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5283
SELECT DISTINCT + CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT ( + ( - + 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL + COUNT( * ) * - 63 * 85 * + + 71 * 90 + CASE + + 55 WHEN 35 THEN NULL WHEN + 90 THEN ( 91 ) WHEN - 43 + + - COUNT( * ) THEN NULL WHEN - 72 THEN + - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL + COUNT ( * ) * - 63 * 85 * + + 71 * 90 + CASE + + 55 WHEN 35 THEN NULL WHEN + 90 THEN ( 91 ) WHEN - 43 + + - COUNT ( * ) THEN NULL WHEN - 72 THEN + - 72 END
----
NULL

query I rowsort
SELECT - 22 - - 62 + + - 41
----
-1

query I rowsort
SELECT ALL + 58 * - 85 AS col0
----
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT DISTINCT 47 * 37 / + COALESCE ( 61, - - 10 * - 34 * - + 20 ) + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT DISTINCT 47 * 37 / + COALESCE ( 61, - - 10 * - 34 * - + 20 ) + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + ( - + 87 ) AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL + 97 * + - CASE 30 WHEN - COUNT( * ) * + ( - + COUNT( DISTINCT + 34 ) ) / 79 THEN NULL WHEN - + 84 THEN 88 + - 55 + + + CAST( - 1 AS SIGNED ) * + - 66 END * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + 97 * + - CASE 30 WHEN - COUNT ( * ) * + ( - + COUNT ( DISTINCT + 34 ) ) / 79 THEN NULL WHEN - + 84 THEN 88 + - 55 + + + CAST ( - 1 AS INTEGER ) * + - 66 END * 25
----
NULL

query II rowsort
SELECT + + ( + - 78 ) + + ( + - 26 ), - ( - - 12 ) AS col0
----
-104
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + NULLIF ( - 3, COUNT( * ) ) * - COALESCE ( MAX( - 17 ), - 64 )
----
-51

skipif mysql # not compatible
query I rowsort label-5292
SELECT + NULLIF ( - 3, COUNT ( * ) ) * - COALESCE ( MAX ( - 17 ), - 64 )
----
-51

query I rowsort
SELECT - + 93
----
-93

query I rowsort
SELECT ALL 82 - - - 69
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT - SUM( + ( - 26 ) ) + - + 91 AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-5295
SELECT - SUM ( + ( - 26 ) ) + - + 91 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5296
SELECT - 35 DIV - - COUNT( ALL + + 18 ) AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-5296
SELECT - 35 / - - COUNT ( ALL + + 18 ) AS col1
----
-35

query I rowsort
SELECT + 75 * + 95
----
7125

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT ALL 49 - - 77 AS col2, COUNT( * ) * 20 AS col0
----
126
20

skipif mysql # not compatible
query II rowsort label-5298
SELECT ALL 49 - - 77 AS col2, COUNT ( * ) * 20 AS col0
----
126
20

query I rowsort
SELECT - - COALESCE ( + 0, - 56, - 34 + - - NULLIF ( 10, + 72 ) + + ( - 41 ) + + 39 )
----
0

query I rowsort
SELECT DISTINCT 21 col2
----
21

query II rowsort
SELECT - 54 AS col0, - 85 + 91
----
-54
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT 29 * - 30 * + COUNT( * ) * CAST( COUNT( * ) AS SIGNED ) AS col2
----
-870

skipif mysql # not compatible
query I rowsort label-5302
SELECT 29 * - 30 * + COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5303
SELECT - 63 AS col0, 51 * - - CASE WHEN NOT + 20 NOT BETWEEN NULL AND ( + NULLIF ( - COUNT( * ), + CASE 27 WHEN ( + - COALESCE ( 17, - 58, - - 46, 37 ) ) DIV - - 26 * - NULLIF ( + 70, + 39 ) - + 72 + - 94 + + CAST( NULL AS SIGNED ) * + 45 * - 88 THEN + COUNT( * ) + - - 86 + + 89 ELSE 27 END ) + + - ( - + COUNT( * ) ) + + 87 * - 52 ) THEN NULL ELSE 13 DIV NULLIF ( + 86, 34 ) + - 76 END AS col2
----
-63
-3876

skipif mysql # not compatible
query II rowsort label-5303
SELECT - 63 AS col0, 51 * - - CASE WHEN NOT + 20 NOT BETWEEN NULL AND ( + NULLIF ( - COUNT ( * ), + CASE 27 WHEN ( + - COALESCE ( 17, - 58, - - 46, 37 ) ) / - - 26 * - NULLIF ( + 70, + 39 ) - + 72 + - 94 + + CAST ( NULL AS INTEGER ) * + 45 * - 88 THEN + COUNT ( * ) + - - 86 + + 89 ELSE 27 END ) + + - ( - + COUNT ( * ) ) + + 87 * - 52 ) THEN NULL ELSE 13 / NULLIF ( + 86, 34 ) + - 76 END AS col2
----
-63
-3876

query I rowsort
SELECT NULLIF ( 81, - + 54 ) + + + 28 + 38 * - + 57
----
-2057

onlyif mysql # DIV for integer division: 
query I rowsort label-5305
SELECT 48 * ( 79 ) DIV - 76 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-5305
SELECT 48 * ( 79 ) / - 76 AS col1
----
-49

query I rowsort
SELECT 84 * + 56 AS col2
----
4704

query I rowsort
SELECT 54 + - 91 AS col2
----
-37

query I rowsort
SELECT 27 col2
----
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT ALL - COALESCE ( 77, - + 13 * + + 71 + 88 DIV CASE + - 76 WHEN + COUNT( * ) * + COUNT( * ) THEN + 23 ELSE COUNT( * ) END + - 34 + + 56, - COUNT( * ) ) col1
----
-77

skipif mysql # not compatible
query I rowsort label-5309
SELECT ALL - COALESCE ( 77, - + 13 * + + 71 + 88 / CASE + - 76 WHEN + COUNT ( * ) * + COUNT ( * ) THEN + 23 ELSE COUNT ( * ) END + - 34 + + 56, - COUNT ( * ) ) col1
----
-77

query II rowsort
SELECT ALL - 99, 25 - + 94 col2
----
-99
-69

query I rowsort
SELECT DISTINCT 65 * 58 AS col1
----
3770

query II rowsort
SELECT 13 AS col2, 46 * + 80
----
13
3680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5313
SELECT MIN( ALL - COALESCE ( COALESCE ( 44, ( - 42 ) ), - - NULLIF ( - 71, + 64 DIV + 32 - - 18 + - - 89 - 94 ) ) ) DIV 98 col1
----
0

skipif mysql # not compatible
query I rowsort label-5313
SELECT MIN ( ALL - COALESCE ( COALESCE ( 44, ( - 42 ) ), - - NULLIF ( - 71, + 64 / + 32 - - 18 + - - 89 - 94 ) ) ) / 98 col1
----
0

query I rowsort
SELECT 99 + 38
----
137

query I rowsort
SELECT ALL + 23 + - 26
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT 96 DIV + 92 + - + 56 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5316
SELECT 96 / + 92 + - + 56 AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT - + COUNT( * ) * - 47 - - 59 + + 75 AS col1
----
181

skipif mysql # not compatible
query I rowsort label-5317
SELECT - + COUNT ( * ) * - 47 - - 59 + + 75 AS col1
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT ALL + 87 * + NULLIF ( COUNT( + - 98 ), 8 * - ( - + 11 ) + - + 33 ) / + - CAST( NULL AS SIGNED ) + + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + 87 * + NULLIF ( COUNT ( + - 98 ), 8 * - ( - + 11 ) + - + 33 ) / + - CAST ( NULL AS INTEGER ) + + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - 29 * - + COUNT( * ) AS col1
----
29

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - 29 * - + COUNT ( * ) AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5320
SELECT DISTINCT + - 82 * - 32 + + 75 DIV - + MAX( - - 95 ), + 27 + + 29 col2
----
2624
56

skipif mysql # not compatible
query II rowsort label-5320
SELECT DISTINCT + - 82 * - 32 + + 75 / - + MAX ( - - 95 ), + 27 + + 29 col2
----
2624
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + + ( + + COALESCE ( + 28, COUNT( * ) * - - 29 * + COUNT( * ) + + COUNT( * ) ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5321
SELECT + + ( + + COALESCE ( + 28, COUNT ( * ) * - - 29 * + COUNT ( * ) + + COUNT ( * ) ) ) AS col0
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL - CAST( NULL AS SIGNED ) + + + COALESCE ( - COUNT( + - 83 ), - 54, 54 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - CAST ( NULL AS INTEGER ) + + + COALESCE ( - COUNT ( + - 83 ), - 54, 54 ) AS col2
----
NULL

query II rowsort
SELECT + + 39 AS col2, 58 AS col0
----
39
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5324
SELECT ALL - + 69 * + 44 + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - + 69 * + 44 + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT - + 49
----
-49

query I rowsort
SELECT + 6 * + + 95
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT CASE - CAST( NULL AS SIGNED ) WHEN + 27 THEN - + COALESCE ( + + ( + + NULLIF ( - 89, + + 47 * + + 92 + - 91 ) ), + - 21 * - 44 + - + 74 - + 54 - 21 * - ( - - 12 ) ) END * - + 39 + 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT CASE - CAST ( NULL AS INTEGER ) WHEN + 27 THEN - + COALESCE ( + + ( + + NULLIF ( - 89, + + 47 * + + 92 + - 91 ) ), + - 21 * - 44 + - + 74 - + 54 - 21 * - ( - - 12 ) ) END * - + 39 + 84 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT 94 * + COUNT( * ) * 2 col1
----
188

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT 94 * + COUNT ( * ) * 2 col1
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5329
SELECT CAST( + 27 AS SIGNED ) col2
----
27

skipif mysql # not compatible
query I rowsort label-5329
SELECT CAST ( + 27 AS INTEGER ) col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT + 72 * 44 * 29 + + CASE 10 WHEN MIN( - + 17 ) * + 64 THEN + MIN( ALL 43 ) + - 30 ELSE NULL END + + 53 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT + 72 * 44 * 29 + + CASE 10 WHEN MIN ( - + 17 ) * + 64 THEN + MIN ( ALL 43 ) + - 30 ELSE NULL END + + 53 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5331
SELECT ALL COUNT( * ) * + MIN( ALL 8 ) / + - COALESCE ( - - 2, 51 ) * - CAST( NULL AS SIGNED ) * - + 37 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT ALL COUNT ( * ) * + MIN ( ALL 8 ) / + - COALESCE ( - - 2, 51 ) * - CAST ( NULL AS INTEGER ) * - + 37 + 90
----
NULL

query I rowsort
SELECT - - 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-5333
SELECT DISTINCT - CASE ( - + 84 ) WHEN + - 76 THEN + 76 WHEN - 59 THEN + - COALESCE ( + 48, - 72 * - 76 ) + - MAX( + 79 ) END * + COALESCE ( 6, 26 ) AS col0, - 36 AS col0
----
NULL
-36

skipif mysql # not compatible
query II rowsort label-5333
SELECT DISTINCT - CASE ( - + 84 ) WHEN + - 76 THEN + 76 WHEN - 59 THEN + - COALESCE ( + 48, - 72 * - 76 ) + - MAX ( + 79 ) END * + COALESCE ( 6, 26 ) AS col0, - 36 AS col0
----
NULL
-36

query I rowsort
SELECT - 32 col2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT 29 * + + MAX( ALL 37 )
----
1073

skipif mysql # not compatible
query I rowsort label-5335
SELECT 29 * + + MAX ( ALL 37 )
----
1073

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT SUM( ALL + 3 ) + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5336
SELECT SUM ( ALL + 3 ) + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ( 69 ) + COUNT( * ) col2
----
70

skipif mysql # not compatible
query I rowsort label-5337
SELECT ( 69 ) + COUNT ( * ) col2
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5338
SELECT 64 * - CASE 47 WHEN - CAST( - - 37 AS SIGNED ) THEN NULL ELSE - ( - - CAST( NULL AS SIGNED ) ) * + COUNT( * ) + + ( - MAX( + 82 ) ) - + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5338
SELECT 64 * - CASE 47 WHEN - CAST ( - - 37 AS INTEGER ) THEN NULL ELSE - ( - - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) + + ( - MAX ( + 82 ) ) - + + 60 END
----
NULL

query I rowsort
SELECT ALL 7 + + ( 42 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-5340
SELECT CASE - 42 WHEN + 63 - 42 + - - 82 * - - ( - COUNT( * ) ) * - + 70 * + 20 THEN - - 81 WHEN + + 15 * NULLIF ( 81, - 56 * + 87 - - 22 * 30 ) * + 57 + - - 17 THEN NULL WHEN - 51 THEN NULL ELSE NULL END / - 18 AS col2, 66 AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-5340
SELECT CASE - 42 WHEN + 63 - 42 + - - 82 * - - ( - COUNT ( * ) ) * - + 70 * + 20 THEN - - 81 WHEN + + 15 * NULLIF ( 81, - 56 * + 87 - - 22 * 30 ) * + 57 + - - 17 THEN NULL WHEN - 51 THEN NULL ELSE NULL END / - 18 AS col2, 66 AS col1
----
NULL
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT ALL MIN( 0 ) + ( - 83 ) * - 75 * - 83 AS col2
----
-516675

skipif mysql # not compatible
query I rowsort label-5341
SELECT ALL MIN ( 0 ) + ( - 83 ) * - 75 * - 83 AS col2
----
-516675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5342
SELECT DISTINCT 25, 59 DIV - COALESCE ( + 2, - - 91, - 73 DIV - ( 73 ) * + 19 + + 32 + - COUNT( * ) * + - 1 - 70 + - COUNT( * ) * 68 ) + CAST( - 48 AS SIGNED ) * SUM( ALL + 98 ) AS col2
----
25
-4733

skipif mysql # not compatible
query II rowsort label-5342
SELECT DISTINCT 25, 59 / - COALESCE ( + 2, - - 91, - 73 / - ( 73 ) * + 19 + + 32 + - COUNT ( * ) * + - 1 - 70 + - COUNT ( * ) * 68 ) + CAST ( - 48 AS INTEGER ) * SUM ( ALL + 98 ) AS col2
----
25
-4733

query I rowsort
SELECT DISTINCT - CASE WHEN NOT 4 = - 34 THEN - 29 END * - + 14
----
-406

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5344
SELECT COUNT( ALL - + CAST( ( - 80 ) AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-5344
SELECT COUNT ( ALL - + CAST ( ( - 80 ) AS INTEGER ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + COUNT( + + 90 )
----
1

skipif mysql # not compatible
query I rowsort label-5345
SELECT + COUNT ( + + 90 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT ALL MAX( - 19 ) * + + 97 + - + COUNT( ALL + - 21 ) - - 12 - - + 5 + + 49 DIV - COUNT( * ) + 85 * - 66 AS col1
----
-7486

skipif mysql # not compatible
query I rowsort label-5346
SELECT ALL MAX ( - 19 ) * + + 97 + - + COUNT ( ALL + - 21 ) - - 12 - - + 5 + + 49 / - COUNT ( * ) + 85 * - 66 AS col1
----
-7486

query I rowsort
SELECT ( + + ( + ( + 88 ) ) ) - - 48 AS col0
----
136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5348
SELECT MAX( DISTINCT - 76 ) * - SUM( ALL - 95 ) * - 25 * - 54, 19 * ( - + COALESCE ( + COUNT( ALL + + 21 ), + 89, - 9 ) ) + + + 52 * + CAST( NULL AS SIGNED ) AS col2
----
-9747000
NULL

skipif mysql # not compatible
query II rowsort label-5348
SELECT MAX ( DISTINCT - 76 ) * - SUM ( ALL - 95 ) * - 25 * - 54, 19 * ( - + COALESCE ( + COUNT ( ALL + + 21 ), + 89, - 9 ) ) + + + 52 * + CAST ( NULL AS INTEGER ) AS col2
----
-9747000
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5349
SELECT DISTINCT 46 * - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT 46 * - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT + COUNT( 80 )
----
1

skipif mysql # not compatible
query I rowsort label-5350
SELECT + COUNT ( 80 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5351
SELECT COUNT( * ) AS col1, + 38 DIV 88 DIV + CAST( - 63 AS SIGNED ) AS col0
----
1
0

skipif mysql # not compatible
query II rowsort label-5351
SELECT COUNT ( * ) AS col1, + 38 / 88 / + CAST ( - 63 AS INTEGER ) AS col0
----
1
0

query I rowsort
SELECT DISTINCT - 90 AS col0
----
-90

query I rowsort
SELECT DISTINCT 97 * 6 - NULLIF ( - + 67, - 48 )
----
649

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL + + 89 * - 24 - + + 25 - - COUNT( * ) * - - 87
----
-2074

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL + + 89 * - 24 - + + 25 - - COUNT ( * ) * - - 87
----
-2074

query I rowsort
SELECT ALL - - 15 AS col0
----
15

query I rowsort
SELECT DISTINCT - 16 * - 90 - + + 49
----
1391

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT COUNT( * ) * + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5357
SELECT COUNT ( * ) * + 82 AS col2
----
82

query I rowsort
SELECT ALL - 73 * - 32 - + + 56 AS col2
----
2280

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT + - 30 AS col1, + COUNT( DISTINCT - NULLIF ( - 14, - + 38 ) ) + + 39
----
-30
40

skipif mysql # not compatible
query II rowsort label-5359
SELECT + - 30 AS col1, + COUNT ( DISTINCT - NULLIF ( - 14, - + 38 ) ) + + 39
----
-30
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - - 45 * COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5360
SELECT - - 45 * COUNT ( * ) AS col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT DISTINCT + ( + + 31 ) * + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + ( + + 31 ) * + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5362
SELECT - + 76 + + - COALESCE ( + ( COUNT( * ) ), ( + + 77 ) + - + 7 * 30 * + - 6 * COUNT( * ) + + + 35, + ( - - 55 ) ) * + - COUNT( * ) - 72 + - 42 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5362
SELECT - + 76 + + - COALESCE ( + ( COUNT ( * ) ), ( + + 77 ) + - + 7 * 30 * + - 6 * COUNT ( * ) + + + 35, + ( - - 55 ) ) * + - COUNT ( * ) - 72 + - 42 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT ALL + + 37 * 65 + CAST( NULL AS SIGNED ) * + - 95 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + + 37 * 65 + CAST ( NULL AS INTEGER ) * + - 95 col1
----
NULL

query I rowsort
SELECT DISTINCT + + ( - 22 ) col2
----
-22

query I rowsort
SELECT ALL + - 12 * - 84 * + - 90 AS col2
----
-90720

query I rowsort
SELECT - 70 * - 22 AS col1
----
1540

query II rowsort
SELECT - + 35, - 5 AS col1
----
-35
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT + 22 col0, + 31 + COUNT( * )
----
22
32

skipif mysql # not compatible
query II rowsort label-5368
SELECT + 22 col0, + 31 + COUNT ( * )
----
22
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT SUM( ALL - 47 ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-5369
SELECT SUM ( ALL - 47 ) AS col0
----
-47

query I rowsort
SELECT + + 19 * 42
----
798

query I rowsort
SELECT - 7 + - ( + 49 ) AS col1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5372
SELECT - SUM( DISTINCT ( + 7 ) ) + - 66 * - COUNT( * ) * COUNT( + + 12 ) + 44 DIV - ( 63 )
----
59

skipif mysql # not compatible
query I rowsort label-5372
SELECT - SUM ( DISTINCT ( + 7 ) ) + - 66 * - COUNT ( * ) * COUNT ( + + 12 ) + 44 / - ( 63 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT ALL COUNT( ALL - + 86 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5373
SELECT ALL COUNT ( ALL - + 86 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT - COUNT( * ) * - + 11 * 65 * - - 6 col0
----
4290

skipif mysql # not compatible
query I rowsort label-5374
SELECT - COUNT ( * ) * - + 11 * 65 * - - 6 col0
----
4290

query I rowsort
SELECT ALL 13 + 33 * + COALESCE ( 17, - 8, + + 34 )
----
574

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL + 95 * - MAX( 26 )
----
-2470

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL + 95 * - MAX ( 26 )
----
-2470

query I rowsort
SELECT ALL 53 + - 84 col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5378
SELECT - 59 + - 40 + - + 92 + - + ( 30 ) - - 38 DIV COUNT( * ) AS col2, + 86 AS col0
----
-183
86

skipif mysql # not compatible
query II rowsort label-5378
SELECT - 59 + - 40 + - + 92 + - + ( 30 ) - - 38 / COUNT ( * ) AS col2, + 86 AS col0
----
-183
86

query I rowsort
SELECT - ( - 78 ) + 52
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT + COUNT( * ) + MAX( - + 53 ) + + 46 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-5380
SELECT + COUNT ( * ) + MAX ( - + 53 ) + + 46 AS col0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5381
SELECT + 17 - ( - 76 ) + 5 + COUNT( DISTINCT - 70 ) + + 1 DIV 53 * - 98 col2
----
99

skipif mysql # not compatible
query I rowsort label-5381
SELECT + 17 - ( - 76 ) + 5 + COUNT ( DISTINCT - 70 ) + + 1 / 53 * - 98 col2
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5382
SELECT ALL + 75 DIV - + COUNT( * ) - - COUNT( * ) AS col0, 10
----
-74
10

skipif mysql # not compatible
query II rowsort label-5382
SELECT ALL + 75 / - + COUNT ( * ) - - COUNT ( * ) AS col0, 10
----
-74
10

query I rowsort
SELECT + 5 * + 43
----
215

query II rowsort
SELECT + NULLIF ( 38, + 41 ) AS col0, + 3
----
38
3

query I rowsort
SELECT ALL + 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5386
SELECT + - COUNT( * ) + - 75 + 91 * 37 col2
----
3291

skipif mysql # not compatible
query I rowsort label-5386
SELECT + - COUNT ( * ) + - 75 + 91 * 37 col2
----
3291

onlyif mysql # aggregate syntax: 
query III rowsort label-5387
SELECT ALL - 35 * - COUNT( * ) AS col1, - COUNT( * ) AS col1, 21 AS col2
----
35
-1
21

skipif mysql # not compatible
query III rowsort label-5387
SELECT ALL - 35 * - COUNT ( * ) AS col1, - COUNT ( * ) AS col1, 21 AS col2
----
35
-1
21

query I rowsort
SELECT + ( + - 33 ) * - 11 col1
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT DISTINCT COUNT( * ) * - 5
----
-5

skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT COUNT ( * ) * - 5
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5390
SELECT ALL - 86 * CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5390
SELECT ALL - 86 * CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5391
SELECT + CAST( NULL AS SIGNED ) * + + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-5391
SELECT + CAST ( NULL AS INTEGER ) * + + 7
----
NULL

query I rowsort
SELECT ALL + - 71 AS col1
----
-71

query I rowsort
SELECT ALL ( + 73 ) * + 75 AS col1
----
5475

onlyif mysql # DIV for integer division: 
query I rowsort label-5394
SELECT ALL + COALESCE ( + 63, + - 38 ) DIV + 10 + - + 41 + + + ( + 35 )
----
0

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL + COALESCE ( + 63, + - 38 ) / + 10 + - + 41 + + + ( + 35 )
----
0

query II rowsort
SELECT - ( + - 26 ) AS col2, NULLIF ( 86, 45 )
----
26
86

query I rowsort
SELECT + + 48 AS col2
----
48

query I rowsort
SELECT - + CASE + 21 WHEN ( 20 ) + + 93 THEN + ( 84 ) ELSE + + 10 END * 58 + - - ( - 64 )
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT - 91 DIV 25 - + 1 - + 86 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-5398
SELECT - 91 / 25 - + 1 - + 86 AS col0
----
-90

query I rowsort
SELECT + 39 * + 14 * + - 13 + 5 AS col1
----
-7093

query I rowsort
SELECT - 84 * 36 AS col2
----
-3024

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL + 29 * - 53 + - COUNT( * ) col0
----
-1538

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + 29 * - 53 + - COUNT ( * ) col0
----
-1538

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT COUNT( + 65 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT COUNT ( + 65 ) AS col0
----
1

query II rowsort
SELECT DISTINCT 70 * + + 97 + ( - - 51 ), 4 AS col2
----
6841
4

query I rowsort
SELECT ALL + 99 * 96
----
9504

query I rowsort
SELECT DISTINCT - 72 + - 2
----
-74

query II rowsort
SELECT - 14 col1, 94
----
-14
94

query I rowsort
SELECT DISTINCT - 54 + - 68 AS col2
----
-122

query I rowsort
SELECT ALL + 0 * - + 85 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5409
SELECT ALL - 36 + - 6 + + CAST( NULL AS DECIMAL ) * 55 - + 75 - + + CASE 69 WHEN - 36 * + NULLIF ( - + 97, CAST( NULL AS SIGNED ) + - 21 * + 38 ) - + 25 THEN - - 61 + + + 23 * 26 END * + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - 36 + - 6 + + CAST ( NULL AS REAL ) * 55 - + 75 - + + CASE 69 WHEN - 36 * + NULLIF ( - + 97, CAST ( NULL AS INTEGER ) + - 21 * + 38 ) - + 25 THEN - - 61 + + + 23 * 26 END * + + 82
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT - 25 AS col2, MIN( + + 83 )
----
-25
83

skipif mysql # not compatible
query II rowsort label-5410
SELECT - 25 AS col2, MIN ( + + 83 )
----
-25
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT ALL NULLIF ( - 7, CAST( NULL AS SIGNED ) ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-5411
SELECT ALL NULLIF ( - 7, CAST ( NULL AS INTEGER ) ) AS col2
----
-7

query I rowsort
SELECT ALL - ( - 97 ) - + 68
----
29

query I rowsort
SELECT - 64 * 56
----
-3584

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT - 81 DIV + 26 col2
----
-3

skipif mysql # not compatible
query I rowsort label-5414
SELECT - 81 / + 26 col2
----
-3

query I rowsort
SELECT - + 78 AS col0
----
-78

query I rowsort
SELECT + ( 1 )
----
1

query I rowsort
SELECT - 76 - + ( + 54 )
----
-130

query I rowsort
SELECT ALL - - 19 AS col0
----
19

query II rowsort
SELECT - 59 * - + 33 * + 91 + + - CASE WHEN NOT 16 IS NOT NULL THEN NULL ELSE - 78 END + - + 30 AS col1, + ( + 4 )
----
177225
4

query I rowsort
SELECT 29 * - 28
----
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT ALL - NULLIF ( - ( - COALESCE ( + + COUNT( * ), - + 39 ) ), 43 * + + 72 + + - 42 ) * + 96 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5421
SELECT ALL - NULLIF ( - ( - COALESCE ( + + COUNT ( * ), - + 39 ) ), 43 * + + 72 + + - 42 ) * + 96 AS col0
----
-96

query I rowsort
SELECT ALL - ( - + 20 ) AS col1
----
20

query I rowsort
SELECT + + 93
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5424
SELECT 9 DIV - 83 * - 51 + + + 86 + 50
----
136

skipif mysql # not compatible
query I rowsort label-5424
SELECT 9 / - 83 * - 51 + + + 86 + 50
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT ALL - 52 AS col0, COUNT( * ) AS col0
----
-52
1

skipif mysql # not compatible
query II rowsort label-5425
SELECT ALL - 52 AS col0, COUNT ( * ) AS col0
----
-52
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT + ( + SUM( 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5426
SELECT + ( + SUM ( 86 ) )
----
86

query I rowsort
SELECT + + 73 AS col2
----
73

query I rowsort
SELECT - 61 * - + 36
----
2196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5429
SELECT + 50, ( - - 45 ) DIV + 66 * + 33 * + + 60 - - + 13 + + MAX( + 51 ) AS col1
----
50
64

skipif mysql # not compatible
query II rowsort label-5429
SELECT + 50, ( - - 45 ) / + 66 * + 33 * + + 60 - - + 13 + + MAX ( + 51 ) AS col1
----
50
64

query II rowsort
SELECT 23 AS col2, + 6
----
23
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT + SUM( DISTINCT - 60 ) AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5431
SELECT + SUM ( DISTINCT - 60 ) AS col2
----
-60

query I rowsort
SELECT - 19 + + + ( + 14 ) AS col0
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5433
SELECT + COALESCE ( + - 32, + - 57, + MIN( ALL - 48 ) DIV - 18 DIV + 51 * + 59, - 11 * 79 ) * 0 + + 91
----
91

skipif mysql # not compatible
query I rowsort label-5433
SELECT + COALESCE ( + - 32, + - 57, + MIN ( ALL - 48 ) / - 18 / + 51 * + 59, - 11 * 79 ) * 0 + + 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - 87 * + + COUNT( + 48 ) + + 43 + - - COUNT( * )
----
-43

skipif mysql # not compatible
query I rowsort label-5434
SELECT - 87 * + + COUNT ( + 48 ) + + 43 + - - COUNT ( * )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT DISTINCT 6 * - + ( + COUNT( * ) ) + + 97
----
91

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT 6 * - + ( + COUNT ( * ) ) + + 97
----
91

query I rowsort
SELECT ALL 7 + 0 * - 81
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT ALL 72 + - + ( + 3 ) + + ( + - 65 ) * + CASE - 38 WHEN + - 68 + - 67 + + + 77 + - 56 * + + 91 * + + COALESCE ( + + 18, COUNT( * ) ) THEN + 15 * + CAST( + + 87 AS SIGNED ) ELSE NULL END * - - 14 * - + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL 72 + - + ( + 3 ) + + ( + - 65 ) * + CASE - 38 WHEN + - 68 + - 67 + + + 77 + - 56 * + + 91 * + + COALESCE ( + + 18, COUNT ( * ) ) THEN + 15 * + CAST ( + + 87 AS INTEGER ) ELSE NULL END * - - 14 * - + 16
----
NULL

query I rowsort
SELECT ALL 42 + - - 66
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-5439
SELECT DISTINCT 1 + + 84 col0, + 92 * + SUM( DISTINCT ( 0 ) ) AS col2
----
85
0

skipif mysql # not compatible
query II rowsort label-5439
SELECT DISTINCT 1 + + 84 col0, + 92 * + SUM ( DISTINCT ( 0 ) ) AS col2
----
85
0

query I rowsort
SELECT ALL 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL - 40 + - - COUNT( * ) * - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - 40 + - - COUNT ( * ) * - COUNT ( * )
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5442
SELECT 93 + + CAST( - SUM( + 75 ) AS SIGNED ) + - + 13 + ( + 96 ) * + 59 AS col0
----
5669

skipif mysql # not compatible
query I rowsort label-5442
SELECT 93 + + CAST ( - SUM ( + 75 ) AS INTEGER ) + - + 13 + ( + 96 ) * + 59 AS col0
----
5669

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT - 96 * - COUNT( * ) + - 70
----
26

skipif mysql # not compatible
query I rowsort label-5443
SELECT - 96 * - COUNT ( * ) + - 70
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT DISTINCT 71 DIV + - 89 * + + 7
----
0

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT 71 / + - 89 * + + 7
----
0

query II rowsort
SELECT 83 * - 10 AS col1, - 89 AS col2
----
-830
-89

query I rowsort
SELECT 18 * 83 AS col2
----
1494

query I rowsort
SELECT DISTINCT 76 col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5448
SELECT DISTINCT - 23 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - 23 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT DISTINCT 35 DIV - 97 * + ( 21 )
----
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT 35 / - 97 * + ( 21 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5450
SELECT 8 * + + 0 DIV + - COUNT( - 60 )
----
0

skipif mysql # not compatible
query I rowsort label-5450
SELECT 8 * + + 0 / + - COUNT ( - 60 )
----
0

query I rowsort
SELECT ALL 70 * + ( + - 22 )
----
-1540

query I rowsort
SELECT 14 - - 29 + + - 27 * - - 46 AS col1
----
-1199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5453
SELECT DISTINCT 87 * 5 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT 87 * 5 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT ALL + MAX( 52 ) * - SUM( 91 ) + COUNT( * ) + - + 82 AS col2
----
-4813

skipif mysql # not compatible
query I rowsort label-5454
SELECT ALL + MAX ( 52 ) * - SUM ( 91 ) + COUNT ( * ) + - + 82 AS col2
----
-4813

query I rowsort
SELECT DISTINCT + CASE 7 WHEN - + ( 57 ) THEN + 39 * + 51 ELSE NULL END * + + 22 * + + 89
----
NULL

query I rowsort
SELECT 8 * - 2 AS col0
----
-16

query I rowsort
SELECT + 73 + + 3 AS col2
----
76

query I rowsort
SELECT + 43 - - 88 AS col0
----
131

query I rowsort
SELECT 64 * + ( + 2 ) * + 37 * 58 + 42 * 46 + + 80
----
276700

query I rowsort
SELECT COALESCE ( + 82, - 40 * - 37 * + - 39 * - + 4 + - + 96 ) AS col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5461
SELECT ALL + - ( 60 ) + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + - ( 60 ) + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL 67 + NULLIF ( MAX( ALL + CAST( + 33 AS SIGNED ) ), 82 )
----
100

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL 67 + NULLIF ( MAX ( ALL + CAST ( + 33 AS INTEGER ) ), 82 )
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT 54 + + MAX( + 87 ) * + 63 * - 82 AS col0
----
-449388

skipif mysql # not compatible
query I rowsort label-5463
SELECT 54 + + MAX ( + 87 ) * + 63 * - 82 AS col0
----
-449388

query I rowsort
SELECT ALL - + 18 * + 73 AS col1
----
-1314

query I rowsort
SELECT DISTINCT - 75 + - + 62 AS col2
----
-137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT + COALESCE ( COUNT( * ), + ( - 48 ) * COALESCE ( - - 24, 37 * + 32 ) * + MAX( DISTINCT - 10 ) * MAX( - 27 ) * + 67 + + 75 + 32 + - 33 DIV + MIN( + - ( 10 ) ) + - 78 )
----
1

skipif mysql # not compatible
query I rowsort label-5466
SELECT + COALESCE ( COUNT ( * ), + ( - 48 ) * COALESCE ( - - 24, 37 * + 32 ) * + MAX ( DISTINCT - 10 ) * MAX ( - 27 ) * + 67 + + 75 + 32 + - 33 / + MIN ( + - ( 10 ) ) + - 78 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5467
SELECT DISTINCT - MAX( 39 ) AS col1, 19 * - 22
----
-39
-418

skipif mysql # not compatible
query II rowsort label-5467
SELECT DISTINCT - MAX ( 39 ) AS col1, 19 * - 22
----
-39
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT NULLIF ( + 19, + 28 + + 7 ) * COUNT( * ) + + 51 + ( + 57 ) * + + 12 - - 89
----
843

skipif mysql # not compatible
query I rowsort label-5468
SELECT NULLIF ( + 19, + 28 + + 7 ) * COUNT ( * ) + + 51 + ( + 57 ) * + + 12 - - 89
----
843

query I rowsort
SELECT + ( + - 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - + MIN( 71 )
----
-71

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - + MIN ( 71 )
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT - ( COUNT( * ) ) AS col1, + 45 AS col1
----
-1
45

skipif mysql # not compatible
query II rowsort label-5471
SELECT - ( COUNT ( * ) ) AS col1, + 45 AS col1
----
-1
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5472
SELECT DISTINCT + + COUNT( * ) * - - 50 + - 31 DIV - 65 AS col2, 91 AS col0
----
50
91

skipif mysql # not compatible
query II rowsort label-5472
SELECT DISTINCT + + COUNT ( * ) * - - 50 + - 31 / - 65 AS col2, 91 AS col0
----
50
91

query I rowsort
SELECT - 39 * - + 7
----
273

query I rowsort
SELECT DISTINCT - 31 col1
----
-31

query I rowsort
SELECT ALL 30 * + 2 AS col0
----
60

query I rowsort
SELECT 80 + - ( - 17 )
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5477
SELECT + ( + - CAST( NULL AS SIGNED ) ) * + + 68 * + 14 + + 40 - - 51
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT + ( + - CAST ( NULL AS INTEGER ) ) * + + 68 * + 14 + + 40 - - 51
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5478
SELECT 62, SUM( ALL 49 ) * - 22 + - 31 - + 5 + + SUM( + 82 ) * - 0 * + 88 * - + ( 77 ) AS col2
----
62
-1114

skipif mysql # not compatible
query II rowsort label-5478
SELECT 62, SUM ( ALL 49 ) * - 22 + - 31 - + 5 + + SUM ( + 82 ) * - 0 * + 88 * - + ( 77 ) AS col2
----
62
-1114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5479
SELECT ALL 82 * - 50 * - + CASE + - 86 WHEN - - CAST( NULL AS SIGNED ) THEN - + 17 WHEN ( 78 ) + - CAST( NULL AS SIGNED ) THEN 78 * 80 + + + 31 - - 43 * - + 56 WHEN - 27 THEN NULL END * + - CASE - + COUNT( * ) WHEN + 20 THEN COUNT( * ) ELSE + 48 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL 82 * - 50 * - + CASE + - 86 WHEN - - CAST ( NULL AS INTEGER ) THEN - + 17 WHEN ( 78 ) + - CAST ( NULL AS INTEGER ) THEN 78 * 80 + + + 31 - - 43 * - + 56 WHEN - 27 THEN NULL END * + - CASE - + COUNT ( * ) WHEN + 20 THEN COUNT ( * ) ELSE + 48 END AS col1
----
NULL

query I rowsort
SELECT ALL 94 * - NULLIF ( + 34, + 34 )
----
NULL

query I rowsort
SELECT DISTINCT 29 * 25
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT DISTINCT COUNT( ALL + + 14 ) - - - 61 AS col2
----
-60

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT COUNT ( ALL + + 14 ) - - - 61 AS col2
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-5483
SELECT ALL 88 AS col0, ( + - 62 ) * COUNT( * )
----
88
-62

skipif mysql # not compatible
query II rowsort label-5483
SELECT ALL 88 AS col0, ( + - 62 ) * COUNT ( * )
----
88
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + 5 DIV - + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT + 5 / - + 91 AS col2
----
0

query I rowsort
SELECT - 11 * + 94
----
-1034

query I rowsort
SELECT - - 78 * + - 53 - + 58
----
-4192

query I rowsort
SELECT - - 54 col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL + + 95 * + 49 + - 95 * - + 51 * + 90 + + + MAX( - 24 ) * + 41 AS col1
----
439721

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + + 95 * + 49 + - 95 * - + 51 * + 90 + + + MAX ( - 24 ) * + 41 AS col1
----
439721

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL COUNT( ALL - 11 ) + + 19
----
20

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL COUNT ( ALL - 11 ) + + 19
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5490
SELECT DISTINCT COUNT( * ) AS col0, 18 * + 36 * + + 75 AS col2
----
1
48600

skipif mysql # not compatible
query II rowsort label-5490
SELECT DISTINCT COUNT ( * ) AS col0, 18 * + 36 * + + 75 AS col2
----
1
48600

query I rowsort
SELECT - 98 * - ( - 55 ) - + + 29 * 33 - 29 * 37 AS col1
----
-7420

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL - - 83 + + COUNT( DISTINCT + 32 ) AS col0
----
84

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - - 83 + + COUNT ( DISTINCT + 32 ) AS col0
----
84

onlyif mysql # DIV for integer division: 
query II rowsort label-5493
SELECT COALESCE ( - 22, - 56 + + 94 DIV - 20 + - 35 ), - 86 * + - 83 AS col0
----
-22
7138

skipif mysql # not compatible
query II rowsort label-5493
SELECT COALESCE ( - 22, - 56 + + 94 / - 20 + - 35 ), - 86 * + - 83 AS col0
----
-22
7138

query I rowsort
SELECT ALL + 96 * - 80
----
-7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5495
SELECT + 51 DIV 72 * - 80 * - - COUNT( * ) + + - 5 * + 56 * - - 50 * + + 62 * - 8
----
6944000

skipif mysql # not compatible
query I rowsort label-5495
SELECT + 51 / 72 * - 80 * - - COUNT ( * ) + + - 5 * + 56 * - - 50 * + + 62 * - 8
----
6944000

query I rowsort
SELECT - - 10 AS col2
----
10

query I rowsort
SELECT DISTINCT + + 53 + + + 79 * + ( - 50 )
----
-3897

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL 91 * - 91 + - 29 + - + COALESCE ( + 9, 53 + - 78 ) * - - COUNT( + 59 ) * - ( + 41 ) + 90 AS col2
----
-7851

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL 91 * - 91 + - 29 + - + COALESCE ( + 9, 53 + - 78 ) * - - COUNT ( + 59 ) * - ( + 41 ) + 90 AS col2
----
-7851

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT + NULLIF ( + + 71, + 36 - + COUNT( * ) + + - NULLIF ( + 15, - 86 - COUNT( * ) - ( + + 12 ) + - 54 * 15 * 82 * 75 * + + 28 ) ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5499
SELECT + NULLIF ( + + 71, + 36 - + COUNT ( * ) + + - NULLIF ( + 15, - 86 - COUNT ( * ) - ( + + 12 ) + - 54 * 15 * 82 * 75 * + + 28 ) ) AS col0
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5500
SELECT ALL - 19 * CAST( NULL AS SIGNED ) * + 68 + ( 48 ) + 47 * - - SUM( 28 ) AS col2, 50
----
NULL
50

skipif mysql # not compatible
query II rowsort label-5500
SELECT ALL - 19 * CAST ( NULL AS INTEGER ) * + 68 + ( 48 ) + 47 * - - SUM ( 28 ) AS col2, 50
----
NULL
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT - ( - - MAX( DISTINCT - - 46 ) ) * + + 73 - MIN( + 34 ) - 71
----
-3463

skipif mysql # not compatible
query I rowsort label-5501
SELECT - ( - - MAX ( DISTINCT - - 46 ) ) * + + 73 - MIN ( + 34 ) - 71
----
-3463

onlyif mysql # aggregate syntax: 
query III rowsort label-5502
SELECT + 19 AS col2, COUNT( DISTINCT + 18 ) col2, 53 + + - ( + 85 ) - 57
----
19
1
-89

skipif mysql # not compatible
query III rowsort label-5502
SELECT + 19 AS col2, COUNT ( DISTINCT + 18 ) col2, 53 + + - ( + 85 ) - 57
----
19
1
-89

query I rowsort
SELECT DISTINCT + - 79 AS col1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT DISTINCT - MIN( + + 97 ) * + ( + ( - 6 ) ) * - 46 * - + ( 92 ) - 79 + + + COUNT( * ) - ( + + 61 ) AS col1
----
2462885

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT - MIN ( + + 97 ) * + ( + ( - 6 ) ) * - 46 * - + ( 92 ) - 79 + + + COUNT ( * ) - ( + + 61 ) AS col1
----
2462885

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT + 54 * 37 + + 91 * + + 96 * - - 43 * - COUNT( * ) + - ( 47 ) + - + COALESCE ( + 58, + 70, - 23 ) col0
----
-373755

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT + 54 * 37 + + 91 * + + 96 * - - 43 * - COUNT ( * ) + - ( 47 ) + - + COALESCE ( + 58, + 70, - 23 ) col0
----
-373755

query I rowsort
SELECT DISTINCT + + 63 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5507
SELECT ALL 15 * - 77 + CAST( NULL AS SIGNED ) + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL 15 * - 77 + CAST ( NULL AS INTEGER ) + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5508
SELECT + 45 * - - ( - CAST( NULL AS SIGNED ) ) - - 71 + - - 50 * - COALESCE ( + 41, + + 32 + NULLIF ( + 3, + 12 + + CAST( NULL AS DECIMAL ) * - + COUNT( * ) - - + 11 / 1 / - - 79 * + 23 - - COUNT( * ) / - 53 / 99 * - 32 + - 86 + + 25 * - - 56 * - 16 ) - - 31 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT + 45 * - - ( - CAST ( NULL AS INTEGER ) ) - - 71 + - - 50 * - COALESCE ( + 41, + + 32 + NULLIF ( + 3, + 12 + + CAST ( NULL AS REAL ) * - + COUNT ( * ) - - + 11 / 1 / - - 79 * + 23 - - COUNT ( * ) / - 53 / 99 * - 32 + - 86 + + 25 * - - 56 * - 16 ) - - 31 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5509
SELECT DISTINCT + 35 col0, ( - ( + 32 ) ) DIV + + 97
----
35
0

skipif mysql # not compatible
query II rowsort label-5509
SELECT DISTINCT + 35 col0, ( - ( + 32 ) ) / + + 97
----
35
0

query I rowsort
SELECT ALL 64 * + ( + 54 ) - 82
----
3374

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT - COUNT( * ) * - 45
----
45

skipif mysql # not compatible
query I rowsort label-5511
SELECT - COUNT ( * ) * - 45
----
45

query I rowsort
SELECT + 25 * + 47 * 33
----
38775

onlyif mysql # aggregate syntax: 
query II rowsort label-5513
SELECT ALL + 47 col2, + NULLIF ( COUNT( * ), + + 42 ) + + - 2 + 17
----
47
16

skipif mysql # not compatible
query II rowsort label-5513
SELECT ALL + 47 col2, + NULLIF ( COUNT ( * ), + + 42 ) + + - 2 + 17
----
47
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5514
SELECT CAST( NULL AS DECIMAL ) * - 61 + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT CAST ( NULL AS REAL ) * - 61 + + 31
----
NULL

query I rowsort
SELECT - ( + 29 ) * - + 93 AS col1
----
2697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5516
SELECT DISTINCT COALESCE ( - ( - CASE + - 47 WHEN + 10 + + 9 DIV - 68 THEN - - 11 WHEN 59 THEN MAX( 86 ) * 75 + + - ( - COUNT( 23 ) ) END ), 65 ) DIV - ( + + 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT COALESCE ( - ( - CASE + - 47 WHEN + 10 + + 9 / - 68 THEN - - 11 WHEN 59 THEN MAX ( 86 ) * 75 + + - ( - COUNT ( 23 ) ) END ), 65 ) / - ( + + 59 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT ALL + 5 DIV + - 59
----
0

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + 5 / + - 59
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5518
SELECT + 17 + + 9 * - 92 + + 45 AS col0, - 51 * + SUM( ALL ( - 70 ) ) - + 5
----
-766
3565

skipif mysql # not compatible
query II rowsort label-5518
SELECT + 17 + + 9 * - 92 + + 45 AS col0, - 51 * + SUM ( ALL ( - 70 ) ) - + 5
----
-766
3565

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - COUNT( * ) * - 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5519
SELECT - COUNT ( * ) * - 1 AS col1
----
1

query II rowsort
SELECT ALL 35 AS col2, - 74
----
35
-74

query I rowsort
SELECT ALL 86 col1
----
86

query I rowsort
SELECT - ( + 65 ) AS col1
----
-65

query I rowsort
SELECT - 23 + 71 AS col2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5524
SELECT 83, - CAST( + COUNT( * ) AS SIGNED ) AS col1
----
83
-1

skipif mysql # not compatible
query II rowsort label-5524
SELECT 83, - CAST ( + COUNT ( * ) AS INTEGER ) AS col1
----
83
-1

query I rowsort
SELECT ALL - 34 + - + 75 AS col0
----
-109

query II rowsort
SELECT ALL - 25 AS col2, - ( 90 )
----
-25
-90

query I rowsort
SELECT - - 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT ALL - 16 + + COUNT( + 4 ) + + - 43 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5528
SELECT ALL - 16 + + COUNT ( + 4 ) + + - 43 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT ALL COUNT( * ) + + 8 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL COUNT ( * ) + + 8 AS col2
----
9

query I rowsort
SELECT DISTINCT + ( 78 )
----
78

query I rowsort
SELECT ALL - 36 + + - 87
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5532
SELECT DISTINCT - NULLIF ( + 44, - 86 DIV - 78 - + COUNT( * ) ) + - - 99 DIV - 45, COUNT( * ) AS col1
----
-46
1

skipif mysql # not compatible
query II rowsort label-5532
SELECT DISTINCT - NULLIF ( + 44, - 86 / - 78 - + COUNT ( * ) ) + - - 99 / - 45, COUNT ( * ) AS col1
----
-46
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5533
SELECT - + 61 + + - ( - 48 ) * + CAST( NULL AS SIGNED ) * - CAST( - - 52 AS SIGNED ) * 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5533
SELECT - + 61 + + - ( - 48 ) * + CAST ( NULL AS INTEGER ) * - CAST ( - - 52 AS INTEGER ) * 37
----
NULL

query I rowsort
SELECT + + 56 + 59 col0
----
115

onlyif mysql # aggregate syntax: 
query II rowsort label-5535
SELECT - COUNT( * ) AS col2, + 51 AS col2
----
-1
51

skipif mysql # not compatible
query II rowsort label-5535
SELECT - COUNT ( * ) AS col2, + 51 AS col2
----
-1
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT + - 81 DIV - + 41 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5536
SELECT + - 81 / - + 41 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT CAST( + - 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-5537
SELECT CAST ( + - 19 AS INTEGER )
----
-19

query I rowsort
SELECT - - ( 24 ) AS col1
----
24

query I rowsort
SELECT - 41 - - ( + + 66 ) + - 91 * - 35 * + 55
----
175200

query I rowsort
SELECT ALL 15 * - 91 + - 67 AS col2
----
-1432

query I rowsort
SELECT + 85 + 23 col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT + + NULLIF ( + 81, + 66 - + COALESCE ( MAX( ALL - 76 ), - 91 + 45 ) ) * 44 * + 88
----
313632

skipif mysql # not compatible
query I rowsort label-5542
SELECT + + NULLIF ( + 81, + 66 - + COALESCE ( MAX ( ALL - 76 ), - 91 + 45 ) ) * 44 * + 88
----
313632

query I rowsort
SELECT + ( - 46 ) + 57
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5544
SELECT + 67 DIV + CAST( COALESCE ( - - 42, + - CASE + - 85 WHEN + 75 THEN + 92 WHEN SUM( + 44 ) * 0 DIV - 97 THEN + MAX( - - 62 ) END * + COUNT( * ), + 3, + - AVG ( - 2 ), + 7 ) AS SIGNED ) - + 86 + - 38 AS col0
----
-123

skipif mysql # not compatible
query I rowsort label-5544
SELECT + 67 / + CAST ( COALESCE ( - - 42, + - CASE + - 85 WHEN + 75 THEN + 92 WHEN SUM ( + 44 ) * 0 / - 97 THEN + MAX ( - - 62 ) END * + COUNT ( * ), + 3, + - AVG ( - 2 ), + 7 ) AS INTEGER ) - + 86 + - 38 AS col0
----
-123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5545
SELECT ALL + CAST( NULL AS SIGNED ) * - - MIN( ALL - ( + ( + 76 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + CAST ( NULL AS INTEGER ) * - - MIN ( ALL - ( + ( + 76 ) ) )
----
NULL

query I rowsort
SELECT ALL 95 * + - 93
----
-8835

query II rowsort
SELECT + 14, 29 * - 14 AS col2
----
14
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT DISTINCT COALESCE ( + ( - - COUNT( * ) ), + + 6 * + 65 ) * COUNT( * ) + 88 col1
----
89

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT COALESCE ( + ( - - COUNT ( * ) ), + + 6 * + 65 ) * COUNT ( * ) + 88 col1
----
89

query I rowsort
SELECT - ( 10 ) * 82 + 74 + - 50
----
-796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5550
SELECT DISTINCT - ( - 57 ) DIV + COUNT( * ) * + COUNT( * ) - COALESCE ( - 44, + 56 ) * + ( - + 17 ) * MIN( + 78 ) AS col2
----
-58287

skipif mysql # not compatible
query I rowsort label-5550
SELECT DISTINCT - ( - 57 ) / + COUNT ( * ) * + COUNT ( * ) - COALESCE ( - 44, + 56 ) * + ( - + 17 ) * MIN ( + 78 ) AS col2
----
-58287

query II rowsort
SELECT ( - - 56 ) col1, + 82 * - - 78
----
56
6396

query II rowsort
SELECT - 65 * + + 56, - 67 + + 97 AS col2
----
-3640
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5553
SELECT DISTINCT + CAST( CASE 52 WHEN + COUNT( * ) THEN - CAST( + 21 AS SIGNED ) WHEN + 69 THEN + + ( - + 43 ) END AS SIGNED ) * + + 52 AS col1, 35
----
NULL
35

skipif mysql # not compatible
query II rowsort label-5553
SELECT DISTINCT + CAST ( CASE 52 WHEN + COUNT ( * ) THEN - CAST ( + 21 AS INTEGER ) WHEN + 69 THEN + + ( - + 43 ) END AS INTEGER ) * + + 52 AS col1, 35
----
NULL
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT DISTINCT + 19 DIV ( - 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT DISTINCT + 19 / ( - 95 ) AS col2
----
0

query I rowsort
SELECT ( + 44 ) * + 20 AS col0
----
880

query I rowsort
SELECT 34 * + 17
----
578

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT ALL + COUNT( * ) + - COUNT( * ) + 25 * 12 * + 2 - + + ( + + 12 ) * 2
----
576

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + 25 * 12 * + 2 - + + ( + + 12 ) * 2
----
576

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT 14 + + CASE 53 WHEN 37 THEN NULL WHEN 4 THEN NULL WHEN - 59 + + 62 THEN NULL ELSE 19 DIV + 18 + - 53 END + 94
----
56

skipif mysql # not compatible
query I rowsort label-5558
SELECT 14 + + CASE 53 WHEN 37 THEN NULL WHEN 4 THEN NULL WHEN - 59 + + 62 THEN NULL ELSE 19 / + 18 + - 53 END + 94
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5559
SELECT DISTINCT - 56 + + ( COUNT( - 60 ) ) col1
----
-55

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - 56 + + ( COUNT ( - 60 ) ) col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5560
SELECT ALL - COUNT( * ) + - + 19
----
-20

skipif mysql # not compatible
query I rowsort label-5560
SELECT ALL - COUNT ( * ) + - + 19
----
-20

query I rowsort
SELECT DISTINCT + 56 + - 79 - + + 64
----
-87

query I rowsort
SELECT ALL 87 + + 75 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5563
SELECT ALL 46 + 47 + - 54 + - ( - 42 ) DIV + COALESCE ( + + 79, 63 * + 31 - + + COUNT( 93 ) + 73 + 50, + - CAST( NULL AS SIGNED ) DIV CAST( + + COUNT( * ) AS SIGNED ) * - 9 * SUM( 88 ) DIV + 77 DIV - COUNT( * ) + 54 + - 48 )
----
39

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL 46 + 47 + - 54 + - ( - 42 ) / + COALESCE ( + + 79, 63 * + 31 - + + COUNT ( 93 ) + 73 + 50, + - CAST ( NULL AS INTEGER ) / CAST ( + + COUNT ( * ) AS INTEGER ) * - 9 * SUM ( 88 ) / + 77 / - COUNT ( * ) + 54 + - 48 )
----
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5564
SELECT ( - 91 ) + + CASE + 95 WHEN + + 86 THEN + COALESCE ( + 80, ( 63 ) + 13 ) / COUNT( * ) * + CAST( - - 13 AS DECIMAL ) WHEN + SUM( - 29 ) THEN + 77 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5564
SELECT ( - 91 ) + + CASE + 95 WHEN + + 86 THEN + COALESCE ( + 80, ( 63 ) + 13 ) / COUNT ( * ) * + CAST ( - - 13 AS REAL ) WHEN + SUM ( - 29 ) THEN + 77 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5565
SELECT 60 + - + 8 - + ( + 65 ) DIV + - ( 33 ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-5565
SELECT 60 + - + 8 - + ( + 65 ) / + - ( 33 ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query II rowsort label-5566
SELECT ALL - + 11 + - COUNT( * ) col1, + 79 * + 88 AS col2
----
-12
6952

skipif mysql # not compatible
query II rowsort label-5566
SELECT ALL - + 11 + - COUNT ( * ) col1, + 79 * + 88 AS col2
----
-12
6952

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT + NULLIF ( - + 96, - - 62 ) + + 37 DIV - 93 * + 43
----
-96

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT + NULLIF ( - + 96, - - 62 ) + + 37 / - 93 * + 43
----
-96

query I rowsort
SELECT DISTINCT 19 col2
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-5569
SELECT 39 * - COUNT( * ) AS col0, 49 AS col0
----
-39
49

skipif mysql # not compatible
query II rowsort label-5569
SELECT 39 * - COUNT ( * ) AS col0, 49 AS col0
----
-39
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5570
SELECT MAX( + - 29 ) + + CAST( - 10 AS SIGNED )
----
-39

skipif mysql # not compatible
query I rowsort label-5570
SELECT MAX ( + - 29 ) + + CAST ( - 10 AS INTEGER )
----
-39

query I rowsort
SELECT DISTINCT 4 * + + 86 * - 63 + 77
----
-21595

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT CAST( + - 30 AS SIGNED ) * + 67 + - 56
----
-2066

skipif mysql # not compatible
query I rowsort label-5572
SELECT CAST ( + - 30 AS INTEGER ) * + 67 + - 56
----
-2066

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT + - COUNT( * ) * 10
----
-10

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT + - COUNT ( * ) * 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT ALL + COALESCE ( + + 39, + SUM( + + 66 ) ) * + + 29
----
1131

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL + COALESCE ( + + 39, + SUM ( + + 66 ) ) * + + 29
----
1131

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT DISTINCT + COUNT( DISTINCT + 57 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5575
SELECT DISTINCT + COUNT ( DISTINCT + 57 ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5576
SELECT 42 * + 0 DIV - + 58
----
0

skipif mysql # not compatible
query I rowsort label-5576
SELECT 42 * + 0 / - + 58
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT - COALESCE ( 70, - - 8 DIV 14 * 9 - + 45 - + 52 * - - 82 ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-5577
SELECT - COALESCE ( 70, - - 8 / 14 * 9 - + 45 - + 52 * - - 82 ) AS col0
----
-70

query I rowsort
SELECT ALL - - 2
----
2

query I rowsort
SELECT DISTINCT - + ( 55 ) AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT ALL NULLIF ( 14, + SUM( ALL + 78 ) * + 74 ) DIV - 48 * - 52
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL NULLIF ( 14, + SUM ( ALL + 78 ) * + 74 ) / - 48 * - 52
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT DISTINCT 36 DIV 25 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT 36 / 25 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5582
SELECT 2 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5582
SELECT 2 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT ALL 60 * + - 59 * + 19 * - + COUNT( * )
----
67260

skipif mysql # not compatible
query I rowsort label-5583
SELECT ALL 60 * + - 59 * + 19 * - + COUNT ( * )
----
67260

query I rowsort
SELECT DISTINCT + 23 * + 11 AS col0
----
253

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT MIN( - 48 ) * - ( - + 76 )
----
-3648

skipif mysql # not compatible
query I rowsort label-5585
SELECT MIN ( - 48 ) * - ( - + 76 )
----
-3648

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5586
SELECT ALL 24 * - + NULLIF ( COUNT( * ), - CAST( - 35 AS SIGNED ) + 44 * + COUNT( * ) ) AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL 24 * - + NULLIF ( COUNT ( * ), - CAST ( - 35 AS INTEGER ) + 44 * + COUNT ( * ) ) AS col1
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-5587
SELECT 34 DIV 26 * + 74
----
74

skipif mysql # not compatible
query I rowsort label-5587
SELECT 34 / 26 * + 74
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5588
SELECT ALL NULLIF ( + 80, + 54 * + - COUNT( * ) ) + + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL NULLIF ( + 80, + 54 * + - COUNT ( * ) ) + + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL ( - ( - 46 ) ) + - 81
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5590
SELECT ( MIN( 21 ) ) * + ( - - CAST( NULL AS SIGNED ) ) + - - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT ( MIN ( 21 ) ) * + ( - - CAST ( NULL AS INTEGER ) ) + - - 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT 15 * + COUNT( * ) + + + 62 + - + 56
----
21

skipif mysql # not compatible
query I rowsort label-5591
SELECT 15 * + COUNT ( * ) + + + 62 + - + 56
----
21

query II rowsort
SELECT 21, 23 + - + 7 AS col0
----
21
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5593
SELECT - COUNT( * ) * - 53 DIV - 65 + 87
----
87

skipif mysql # not compatible
query I rowsort label-5593
SELECT - COUNT ( * ) * - 53 / - 65 + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT + 61 * - ( 54 ) * + COUNT( * )
----
-3294

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT + 61 * - ( 54 ) * + COUNT ( * )
----
-3294

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5595
SELECT DISTINCT CAST( NULL AS DECIMAL ) + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT CAST ( NULL AS REAL ) + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT 52 + - + COUNT( * ) + + - 46 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-5596
SELECT 52 + - + COUNT ( * ) + + - 46 AS col0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5597
SELECT - - 7 * - MAX( DISTINCT - 95 ) + + COUNT( * ), 70 AS col2
----
666
70

skipif mysql # not compatible
query II rowsort label-5597
SELECT - - 7 * - MAX ( DISTINCT - 95 ) + + COUNT ( * ), 70 AS col2
----
666
70

query I rowsort
SELECT 77 * 17
----
1309

query I rowsort
SELECT 8 + - 25 AS col1
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5600
SELECT + 10 DIV - 49 * + 30
----
0

skipif mysql # not compatible
query I rowsort label-5600
SELECT + 10 / - 49 * + 30
----
0

query I rowsort
SELECT ALL - CASE 18 WHEN - - AVG ( DISTINCT + 63 ) THEN - + ( + 90 ) END AS col1
----
NULL

query I rowsort
SELECT ALL + - ( 10 ) - 71
----
-81

query I rowsort
SELECT DISTINCT + - 55 * - 87 AS col1
----
4785

query I rowsort
SELECT - 76 - - 83 - + 11 * - 45
----
502

query I rowsort
SELECT 23 + 50 + - 30 * + ( 12 )
----
-287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT + 42 DIV 92 - - COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5606
SELECT + 42 / 92 - - COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT - 88 AS col0, + SUM( - - 13 ) * + ( + 19 ) * COUNT( * ) AS col2
----
-88
247

skipif mysql # not compatible
query II rowsort label-5607
SELECT - 88 AS col0, + SUM ( - - 13 ) * + ( + 19 ) * COUNT ( * ) AS col2
----
-88
247

query I rowsort
SELECT 56 + + - 2 AS col2
----
54

query I rowsort
SELECT + 26 * 34
----
884

onlyif mysql # aggregate syntax: 
query II rowsort label-5610
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-5610
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col0
----
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5611
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) + - 40 * 58 / + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5611
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - 40 * 58 / + - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT NULLIF ( + MIN( DISTINCT + COALESCE ( - - 18, ( - 94 ) ) ), - - MAX( 13 ) + + + 95 ) - - 14
----
32

skipif mysql # not compatible
query I rowsort label-5612
SELECT NULLIF ( + MIN ( DISTINCT + COALESCE ( - - 18, ( - 94 ) ) ), - - MAX ( 13 ) + + + 95 ) - - 14
----
32

query I rowsort
SELECT ALL + 8 * + 4 AS col2
----
32

query I rowsort
SELECT ALL ( 49 ) * - - 93 + 45 AS col1
----
4602

onlyif mysql # aggregate syntax: 
query II rowsort label-5615
SELECT DISTINCT + COUNT( * ) * + CASE 61 WHEN + 22 THEN NULL ELSE - 86 END * + + 96 * - - 70 AS col1, - ( + 62 ) col2
----
-577920
-62

skipif mysql # not compatible
query II rowsort label-5615
SELECT DISTINCT + COUNT ( * ) * + CASE 61 WHEN + 22 THEN NULL ELSE - 86 END * + + 96 * - - 70 AS col1, - ( + 62 ) col2
----
-577920
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5616
SELECT ALL + COALESCE ( - COUNT( * ), + 31 - - CAST( NULL AS SIGNED ), - 82 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL + COALESCE ( - COUNT ( * ), + 31 - - CAST ( NULL AS INTEGER ), - 82 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5617
SELECT ALL 95 * - MAX( DISTINCT CAST( + 27 AS SIGNED ) ) + 54 * + 1
----
-2511

skipif mysql # not compatible
query I rowsort label-5617
SELECT ALL 95 * - MAX ( DISTINCT CAST ( + 27 AS INTEGER ) ) + 54 * + 1
----
-2511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5618
SELECT ALL - 6 * - - 6 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL - 6 * - - 6 + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + 66 AS col0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5620
SELECT COUNT( * ) * - ( - + NULLIF ( 43, 66 * 25 * - CAST( 26 AS DECIMAL ) ) ) * + 6 + 93 + - 12 - 81 + COUNT( * )
----
259

skipif mysql # not compatible
query I rowsort label-5620
SELECT COUNT ( * ) * - ( - + NULLIF ( 43, 66 * 25 * - CAST ( 26 AS REAL ) ) ) * + 6 + 93 + - 12 - 81 + COUNT ( * )
----
259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT CASE + + 30 WHEN + MIN( DISTINCT 30 ) + 56 THEN + - CAST( NULL AS SIGNED ) WHEN 81 + + + 94 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT CASE + + 30 WHEN + MIN ( DISTINCT 30 ) + 56 THEN + - CAST ( NULL AS INTEGER ) WHEN 81 + + + 94 THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT CASE - 50 WHEN - COUNT( ALL + 72 ) THEN - - 66 + + + COALESCE ( + 15, COUNT( * ) ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5622
SELECT CASE - 50 WHEN - COUNT ( ALL + 72 ) THEN - - 66 + + + COALESCE ( + 15, COUNT ( * ) ) END col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT ALL + COUNT( * ) * - 65 + + 40 + 37 - COUNT( * ) * + ( + 39 ) DIV 15
----
10

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL + COUNT ( * ) * - 65 + + 40 + 37 - COUNT ( * ) * + ( + 39 ) / 15
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5624
SELECT + 0 + - 27 AS col2, COUNT( * )
----
-27
1

skipif mysql # not compatible
query II rowsort label-5624
SELECT + 0 + - 27 AS col2, COUNT ( * )
----
-27
1

query I rowsort
SELECT + 58 * 77
----
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT ALL MIN( DISTINCT + 25 ) * + 8
----
200

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL MIN ( DISTINCT + 25 ) * + 8
----
200

onlyif mysql # DIV for integer division: 
query I rowsort label-5627
SELECT ALL 82 DIV - 18
----
-4

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL 82 / - 18
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5628
SELECT + CASE - 14 WHEN + ( - 83 ) / COUNT( ALL 88 ) + - COUNT( * ) THEN NULL WHEN - + 7 / + 17 THEN NULL WHEN - 25 * + - 76 THEN NULL ELSE + 79 END AS col1, + 33 + - + 24 AS col1
----
79
9

skipif mysql # not compatible
query II rowsort label-5628
SELECT + CASE - 14 WHEN + ( - 83 ) / COUNT ( ALL 88 ) + - COUNT ( * ) THEN NULL WHEN - + 7 / + 17 THEN NULL WHEN - 25 * + - 76 THEN NULL ELSE + 79 END AS col1, + 33 + - + 24 AS col1
----
79
9

query II rowsort
SELECT ALL 64 * - 89 AS col2, ( + + 91 )
----
-5696
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5630
SELECT MIN( - 52 ), 92 + 34 AS col1
----
-52
126

skipif mysql # not compatible
query II rowsort label-5630
SELECT MIN ( - 52 ), 92 + 34 AS col1
----
-52
126

query I rowsort
SELECT DISTINCT + 47 * 87 + - + 30
----
4059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT ALL - MIN( - + 11 ) * CAST( NULL AS SIGNED ) + - 28 + + 45 * + SUM( ALL 38 ) + - 45 + - COUNT( * ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT ALL - MIN ( - + 11 ) * CAST ( NULL AS INTEGER ) + - 28 + + 45 * + SUM ( ALL 38 ) + - 45 + - COUNT ( * ) * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT + MAX( - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-5633
SELECT + MAX ( - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT + + MIN( ALL - 46 ) + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-5634
SELECT + + MIN ( ALL - 46 ) + - COUNT ( * )
----
-47

query I rowsort
SELECT + ( - 99 ) col0
----
-99

query I rowsort
SELECT + + 24 - 27
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT DISTINCT COALESCE ( 78, - 34 * 25, SUM( DISTINCT 73 ) * 26 + - 75 + - 65 + - + 3 * - COUNT( * ) )
----
78

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT COALESCE ( 78, - 34 * 25, SUM ( DISTINCT 73 ) * 26 + - 75 + - 65 + - + 3 * - COUNT ( * ) )
----
78

query I rowsort
SELECT DISTINCT - 97 - - + 55
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL + COALESCE ( COUNT( * ), - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL + COALESCE ( COUNT ( * ), - 46 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5640
SELECT ALL - + ( - - CAST( - - ( - + CAST( - 34 AS SIGNED ) ) AS SIGNED ) ) - - COUNT( * ) AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-5640
SELECT ALL - + ( - - CAST ( - - ( - + CAST ( - 34 AS INTEGER ) ) AS INTEGER ) ) - - COUNT ( * ) AS col1
----
-33

query I rowsort
SELECT - 65 * + + 57
----
-3705

query I rowsort
SELECT ALL - 47 * - 26 + + 78
----
1300

query I rowsort
SELECT - 74 + + + 83
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT DISTINCT - MIN( - 38 ) col2
----
38

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT - MIN ( - 38 ) col2
----
38

query I rowsort
SELECT - - 92 * - 6 AS col2
----
-552

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - ( MAX( 6 ) ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-5646
SELECT - ( MAX ( 6 ) ) AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - SUM( - 69 ) AS col2
----
69

skipif mysql # not compatible
query I rowsort label-5647
SELECT - SUM ( - 69 ) AS col2
----
69

query I rowsort
SELECT - - 71 AS col0
----
71

query I rowsort
SELECT ALL - 42 * - + 85 * 53
----
189210

query I rowsort
SELECT - + 31 * - + 3
----
93

query I rowsort
SELECT - - 48 AS col1
----
48

query III rowsort
SELECT ALL + 51 + - + ( - 58 ) * - + 18 AS col2, + 17 AS col1, + - ( 35 )
----
-993
17
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-5653
SELECT DISTINCT - 60 DIV + + 68 col1
----
0

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - 60 / + + 68 col1
----
0

query I rowsort
SELECT DISTINCT ( + - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL + MAX( DISTINCT 49 ) + + 69 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL + MAX ( DISTINCT 49 ) + + 69 AS col2
----
118

query I rowsort
SELECT - 42 * + 77
----
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL - 15 + + COUNT( * ) * + - COUNT( * ) * - 45 * COUNT( * ) - - 90
----
120

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - 15 + + COUNT ( * ) * + - COUNT ( * ) * - 45 * COUNT ( * ) - - 90
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5658
SELECT DISTINCT + CASE + 5 WHEN COUNT( * ) * 58 * + 10 + - 27 - + - CAST( NULL AS SIGNED ) THEN NULL ELSE + 13 END DIV + - CAST( - 74 AS SIGNED ) + + ( - + 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-5658
SELECT DISTINCT + CASE + 5 WHEN COUNT ( * ) * 58 * + 10 + - 27 - + - CAST ( NULL AS INTEGER ) THEN NULL ELSE + 13 END / + - CAST ( - 74 AS INTEGER ) + + ( - + 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT DISTINCT - COUNT( * ) + + 97 + - ( - 74 ) AS col0
----
170

skipif mysql # not compatible
query I rowsort label-5659
SELECT DISTINCT - COUNT ( * ) + + 97 + - ( - 74 ) AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-5660
SELECT - 84 * + 76 - - + 24 * - ( - COUNT( * ) ) col2
----
-6360

skipif mysql # not compatible
query I rowsort label-5660
SELECT - 84 * + 76 - - + 24 * - ( - COUNT ( * ) ) col2
----
-6360

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT + MIN( + + NULLIF ( - 93, + - 23 - + + 12 ) )
----
-93

skipif mysql # not compatible
query I rowsort label-5661
SELECT + MIN ( + + NULLIF ( - 93, + - 23 - + + 12 ) )
----
-93

onlyif mysql # aggregate syntax: 
query II rowsort label-5662
SELECT 51 * + + 29 - - ( + MAX( ALL 44 ) ) AS col2, 17
----
1523
17

skipif mysql # not compatible
query II rowsort label-5662
SELECT 51 * + + 29 - - ( + MAX ( ALL 44 ) ) AS col2, 17
----
1523
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5663
SELECT ALL + 85 DIV + 29 + 86 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + 85 / + 29 + 86 AS col2
----
88

query I rowsort
SELECT DISTINCT + CASE - 95 WHEN + 38 * - 58 + 68 THEN NULL WHEN + 40 * + + 81 THEN 20 * 94 * + ( 7 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5665
SELECT + MAX( DISTINCT - 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5665
SELECT + MAX ( DISTINCT - 40 ) AS col0
----
-40

query I rowsort
SELECT - 52 * - ( + 92 ) AS col0
----
4784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5667
SELECT ALL + CAST( 35 AS SIGNED )
----
35

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL + CAST ( 35 AS INTEGER )
----
35

query I rowsort
SELECT ( + 64 ) AS col2
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-5669
SELECT 89 * - + 40 - 65 AS col0, MAX( + 42 ) + COUNT( * )
----
-3625
43

skipif mysql # not compatible
query II rowsort label-5669
SELECT 89 * - + 40 - 65 AS col0, MAX ( + 42 ) + COUNT ( * )
----
-3625
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL - COUNT( * ) * - COUNT( * ) - - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL - COUNT ( * ) * - COUNT ( * ) - - COUNT ( * ) AS col1
----
2

query I rowsort
SELECT - 16 * - 41 * + 98 * 0
----
0

query I rowsort
SELECT + ( 49 )
----
49

query I rowsort
SELECT ( + + 93 )
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT - MIN( DISTINCT 79 ) + + 96 col2, 47 AS col1
----
17
47

skipif mysql # not compatible
query II rowsort label-5674
SELECT - MIN ( DISTINCT 79 ) + + 96 col2, 47 AS col1
----
17
47

query I rowsort
SELECT + ( + 95 )
----
95

query I rowsort
SELECT DISTINCT + + 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT - 46 * 87 * - 80 * COALESCE ( 14, - 12 + - ( + 98 ) ) + - COUNT( * ) * + 26 * + + 4 * - + MIN( DISTINCT 92 ) + + + 18 AS col1
----
4491826

skipif mysql # not compatible
query I rowsort label-5677
SELECT - 46 * 87 * - 80 * COALESCE ( 14, - 12 + - ( + 98 ) ) + - COUNT ( * ) * + 26 * + + 4 * - + MIN ( DISTINCT 92 ) + + + 18 AS col1
----
4491826

query I rowsort
SELECT ALL + - 66 AS col0
----
-66

query I rowsort
SELECT DISTINCT - 9 * + NULLIF ( - 80, + - 36 )
----
720

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT + COALESCE ( + 73, + + 68 ) DIV - - 68
----
1

skipif mysql # not compatible
query I rowsort label-5680
SELECT + COALESCE ( + 73, + + 68 ) / - - 68
----
1

query I rowsort
SELECT - ( + 20 )
----
-20

query I rowsort
SELECT ALL + 32 * + - 33
----
-1056

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT + + 26 DIV - 68
----
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT + + 26 / - 68
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5684
SELECT + + 21 DIV - 29 * + COUNT( * ) - - + ( COALESCE ( + 14, + 87 + CAST( - 24 AS SIGNED ) + - - 70 + + + 99 * - 15 * + 62 * - 12 ) ) DIV 59 * + + 79
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT + + 21 / - 29 * + COUNT ( * ) - - + ( COALESCE ( + 14, + 87 + CAST ( - 24 AS INTEGER ) + - - 70 + + + 99 * - 15 * + 62 * - 12 ) ) / 59 * + + 79
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT - + NULLIF ( - CAST( NULL AS SIGNED ), - - COUNT( * ) / + - 20 ) * + 21 + - 21 - + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT - + NULLIF ( - CAST ( NULL AS INTEGER ), - - COUNT ( * ) / + - 20 ) * + 21 + - 21 - + + COUNT ( * )
----
NULL

query II rowsort
SELECT ALL - 96 AS col0, + 93
----
-96
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT + COUNT( * ) + + + 50
----
51

skipif mysql # not compatible
query I rowsort label-5687
SELECT + COUNT ( * ) + + + 50
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5688
SELECT DISTINCT - 13 * - COUNT( DISTINCT CAST( + 56 AS DECIMAL ) ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT - 13 * - COUNT ( DISTINCT CAST ( + 56 AS REAL ) ) AS col2
----
13

query I rowsort
SELECT ALL ( - 23 ) + - 85
----
-108

query I rowsort
SELECT DISTINCT 39 + + 33 col1
----
72

query II rowsort
SELECT ALL 47 AS col1, 87 + - + 46 + - - 5 * - + 7 AS col1
----
47
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT ALL - 19 + + COUNT( * ) + - + COUNT( * ) / + + ( - + 2 ) / - AVG ( - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL - 19 + + COUNT ( * ) + - + COUNT ( * ) / + + ( - + 2 ) / - AVG ( - + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT 8 + MIN( + - 20 ) - 9 + - + ( + 86 ) * - 55 AS col1
----
4709

skipif mysql # not compatible
query I rowsort label-5693
SELECT 8 + MIN ( + - 20 ) - 9 + - + ( + 86 ) * - 55 AS col1
----
4709

query I rowsort
SELECT COALESCE ( + 56, - ( - 24 ), 34 ) + + + 1 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5695
SELECT ALL + CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL + CAST ( NULL AS INTEGER ) * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT DISTINCT COUNT( * ) * + 71
----
71

skipif mysql # not compatible
query I rowsort label-5696
SELECT DISTINCT COUNT ( * ) * + 71
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT ALL COALESCE ( + 54, + + ( 24 ) DIV + 85 DIV + + 78 ) * + 43 AS col2
----
2322

skipif mysql # not compatible
query I rowsort label-5697
SELECT ALL COALESCE ( + 54, + + ( 24 ) / + 85 / + + 78 ) * + 43 AS col2
----
2322

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT DISTINCT 0 - + 88, - 47 + + ( - COALESCE ( COUNT( * ), - 73 - - 15 ) ) + + + 57 AS col1
----
-88
9

skipif mysql # not compatible
query II rowsort label-5698
SELECT DISTINCT 0 - + 88, - 47 + + ( - COALESCE ( COUNT ( * ), - 73 - - 15 ) ) + + + 57 AS col1
----
-88
9

query II rowsort
SELECT 52 + - 64 AS col1, - 80 * - + 77
----
-12
6160

query II rowsort
SELECT + 80, - 54 * + 39 AS col2
----
80
-2106

query I rowsort
SELECT 62 + + 50
----
112

onlyif mysql # DIV for integer division: 
query I rowsort label-5702
SELECT 33 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5702
SELECT 33 / - 71 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT MAX( + + ( + + 68 ) ) * + + 1
----
68

skipif mysql # not compatible
query I rowsort label-5703
SELECT MAX ( + + ( + + 68 ) ) * + + 1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT + 12 / - CASE 70 WHEN + COUNT( * ) THEN NULL WHEN 7 THEN NULL WHEN - 58 THEN - COUNT( * ) / - - 49 + - 75 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 12 / - CASE 70 WHEN + COUNT ( * ) THEN NULL WHEN 7 THEN NULL WHEN - 58 THEN - COUNT ( * ) / - - 49 + - 75 END
----
NULL

query II rowsort
SELECT DISTINCT - 90, - 36 AS col0
----
-90
-36

query II rowsort
SELECT + 37 AS col0, + 23 AS col1
----
37
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5707
SELECT + 20 * + + 74 * + - COUNT( * )
----
-1480

skipif mysql # not compatible
query I rowsort label-5707
SELECT + 20 * + + 74 * + - COUNT ( * )
----
-1480

query I rowsort
SELECT + 69 * - 73 + - 19 * + + 17
----
-5360

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT DISTINCT - - 12 col2, COUNT( * ) col1
----
12
1

skipif mysql # not compatible
query II rowsort label-5709
SELECT DISTINCT - - 12 col2, COUNT ( * ) col1
----
12
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL + - 98 * - MIN( ALL - 13 ) col0
----
-1274

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + - 98 * - MIN ( ALL - 13 ) col0
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5711
SELECT + CAST( - - 40 AS SIGNED ) * ( + 2 )
----
80

skipif mysql # not compatible
query I rowsort label-5711
SELECT + CAST ( - - 40 AS INTEGER ) * ( + 2 )
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT + 81 * + 55 + + - 41 * COALESCE ( - COUNT( * ), - 89 )
----
4496

skipif mysql # not compatible
query I rowsort label-5712
SELECT + 81 * + 55 + + - 41 * COALESCE ( - COUNT ( * ), - 89 )
----
4496

query II rowsort
SELECT 15 col1, + 64 AS col2
----
15
64

query I rowsort
SELECT ALL - - 85 + 21 AS col0
----
106

query I rowsort
SELECT + - 21 AS col0
----
-21

query I rowsort
SELECT - 27 - - 18
----
-9

query II rowsort
SELECT DISTINCT 73 AS col1, 0 AS col2
----
73
0

query I rowsort
SELECT ALL 80 * - 47 AS col0
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT 84 + + + CAST( NULL AS SIGNED ) * CAST( - - 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT 84 + + + CAST ( NULL AS INTEGER ) * CAST ( - - 15 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5720
SELECT ALL + CAST( NULL AS DECIMAL ) + 29 * + 38 * 34 + - + 24 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + CAST ( NULL AS REAL ) + 29 * + 38 * 34 + - + 24 AS col1
----
NULL

query I rowsort
SELECT ( - 68 ) + - 44
----
-112

onlyif mysql # DIV for integer division: 
query I rowsort label-5722
SELECT DISTINCT + + 80 DIV + 74 + - 49 - 8 * 94
----
-800

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT + + 80 / + 74 + - 49 - 8 * 94
----
-800

query I rowsort
SELECT ALL - 29 + + 87 + - - 35 - - 57 * 60 * - - 77 * - 28 * - + 45 AS col2
----
331808493

query I rowsort
SELECT - 72 + + 94 AS col2
----
22

query I rowsort
SELECT ALL 42 + + 79
----
121

query I rowsort
SELECT ALL - 60 * 49 AS col0
----
-2940

query II rowsort
SELECT - 51 AS col0, 31 AS col0
----
-51
31

onlyif mysql # DIV for integer division: 
query II rowsort label-5728
SELECT - 86 DIV - 86, + 6 col1
----
1
6

skipif mysql # not compatible
query II rowsort label-5728
SELECT - 86 / - 86, + 6 col1
----
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT 11 * 22 + 68 * + 3 AS col0, + CAST( NULL AS SIGNED ) AS col1
----
446
NULL

skipif mysql # not compatible
query II rowsort label-5729
SELECT 11 * 22 + 68 * + 3 AS col0, + CAST ( NULL AS INTEGER ) AS col1
----
446
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT ALL COUNT( * ) + 94 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL COUNT ( * ) + 94 AS col2
----
95

query I rowsort
SELECT 8 * 85
----
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT NULLIF ( - + 3, - 5 * 6 ) + + 46 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5732
SELECT NULLIF ( - + 3, - 5 * 6 ) + + 46 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT ALL COUNT( ALL ( + 67 ) ) - - MIN( - + 0 ) + + 51 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL COUNT ( ALL ( + 67 ) ) - - MIN ( - + 0 ) + + 51 AS col2
----
52

query I rowsort
SELECT ALL - 88 - - 66 col1
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT COUNT( * ) + + 25 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-5735
SELECT COUNT ( * ) + + 25 AS col2
----
26

query I rowsort
SELECT ( - + 77 ) * + - 15
----
1155

query I rowsort
SELECT ALL ( - + 8 ) - - 16 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT NULLIF ( 26, + + 57 + - + COALESCE ( COUNT( * ), - 76 ) * - + 9 * + 72 - - 70 ) * 35 AS col2
----
910

skipif mysql # not compatible
query I rowsort label-5738
SELECT NULLIF ( 26, + + 57 + - + COALESCE ( COUNT ( * ), - 76 ) * - + 9 * + 72 - - 70 ) * 35 AS col2
----
910

query I rowsort
SELECT 26 + - 15 + 46 col2
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5740
SELECT ALL 87 * + 68 AS col0, + ( - + 75 ) + - 85 AS col0, + COALESCE ( - + CAST( NULL AS SIGNED ), + 37 DIV + 30, + + 27 ) AS col1
----
5916
-160
1

skipif mysql # not compatible
query III rowsort label-5740
SELECT ALL 87 * + 68 AS col0, + ( - + 75 ) + - 85 AS col0, + COALESCE ( - + CAST ( NULL AS INTEGER ), + 37 / + 30, + + 27 ) AS col1
----
5916
-160
1

query I rowsort
SELECT 78 * + + 0 * - 34 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - CASE - + 45 WHEN + 15 - - 26 THEN NULL WHEN + 29 * - 7 - - 64 THEN + + 1 ELSE + COUNT( * ) + + - 35 END AS col0
----
34

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - CASE - + 45 WHEN + 15 - - 26 THEN NULL WHEN + 29 * - 7 - - 64 THEN + + 1 ELSE + COUNT ( * ) + + - 35 END AS col0
----
34

query I rowsort
SELECT ALL - - 1 col1
----
1

query I rowsort
SELECT DISTINCT 33 * + 76 + NULLIF ( + 41, - + 10 )
----
2549

query I rowsort
SELECT - 54 * + - ( 70 ) * - 29
----
-109620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5746
SELECT ( 26 ) DIV + 60 + - MIN( ALL 10 ) col0
----
-10

skipif mysql # not compatible
query I rowsort label-5746
SELECT ( 26 ) / + 60 + - MIN ( ALL 10 ) col0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5747
SELECT + - COUNT( * ) * MAX( DISTINCT 26 ) DIV + + 60 * + 51 + + 36 DIV - 36
----
-1

skipif mysql # not compatible
query I rowsort label-5747
SELECT + - COUNT ( * ) * MAX ( DISTINCT 26 ) / + + 60 * + 51 + + 36 / - 36
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5748
SELECT ALL + COUNT( * ) * - + 72 DIV - 62 AS col2, + 49 AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-5748
SELECT ALL + COUNT ( * ) * - + 72 / - 62 AS col2, + 49 AS col1
----
1
49

query I rowsort
SELECT + 20 * ( - + 77 ) AS col0
----
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL - COUNT( * ) + - 46 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL - COUNT ( * ) + - 46 AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5751
SELECT - + COUNT( 76 ) + - 92
----
-93

skipif mysql # not compatible
query I rowsort label-5751
SELECT - + COUNT ( 76 ) + - 92
----
-93

query II rowsort
SELECT DISTINCT + 30 * + 63 AS col2, 45
----
1890
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL COUNT( DISTINCT - + 86 )
----
1

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL COUNT ( DISTINCT - + 86 )
----
1

query I rowsort
SELECT DISTINCT + 74 * 25
----
1850

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5755
SELECT ALL 54 DIV + CASE - - MAX( - 31 ) WHEN 72 THEN NULL ELSE - 73 END * - 4
----
0

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL 54 / + CASE - - MAX ( - 31 ) WHEN 72 THEN NULL ELSE - 73 END * - 4
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5756
SELECT - 60 + - + 0 DIV 99 AS col2, CAST( NULL AS SIGNED ) col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-5756
SELECT - 60 + - + 0 / 99 AS col2, CAST ( NULL AS INTEGER ) col0
----
-60
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT ALL COALESCE ( 94, + MIN( 45 ), 14 DIV - 34 + ( - 18 ) )
----
94

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL COALESCE ( 94, + MIN ( 45 ), 14 / - 34 + ( - 18 ) )
----
94

query I rowsort
SELECT DISTINCT + 2 - - 86 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5759
SELECT - MAX( - 83 )
----
83

skipif mysql # not compatible
query I rowsort label-5759
SELECT - MAX ( - 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT + 53 + + - ( - 20 ) + + - 48 * COUNT( * ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5760
SELECT + 53 + + - ( - 20 ) + + - 48 * COUNT ( * ) AS col1
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5761
SELECT ALL - 29 / - CAST( NULL AS DECIMAL ) * + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL - 29 / - CAST ( NULL AS REAL ) * + 47 AS col0
----
NULL

query I rowsort
SELECT - 41 * + - 5 col1
----
205

query I rowsort
SELECT DISTINCT 53 * + 42 AS col0
----
2226

query I rowsort
SELECT - 17 + + + 39 + - 8 col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT - 76 * - COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5765
SELECT - 76 * - COUNT ( * ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT + 82 + COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-5766
SELECT + 82 + COUNT ( * )
----
83

query II rowsort
SELECT ALL 23, 75 + - - 33 AS col1
----
23
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5768
SELECT + 99 DIV COUNT( * ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-5768
SELECT + 99 / COUNT ( * ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT - COALESCE ( + 23, - - ( + COUNT( * ) ) * - 40 )
----
-23

skipif mysql # not compatible
query I rowsort label-5769
SELECT - COALESCE ( + 23, - - ( + COUNT ( * ) ) * - 40 )
----
-23

query II rowsort
SELECT ALL 34 AS col2, - 5 AS col0
----
34
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5771
SELECT DISTINCT 10 * - ( + + 11 ) * - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT 10 * - ( + + 11 ) * - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT + ( + SUM( - 91 ) ) * 92 col2
----
-8372

skipif mysql # not compatible
query I rowsort label-5772
SELECT + ( + SUM ( - 91 ) ) * 92 col2
----
-8372

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT ALL MIN( - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-5773
SELECT ALL MIN ( - + 94 )
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT + 20 DIV 22 + - 32 AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-5774
SELECT + 20 / 22 + - 32 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + COUNT( * ) + 3 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-5775
SELECT + COUNT ( * ) + 3 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5776
SELECT + COALESCE ( + 29, - 16 + + 75 + - 81, - 14 * + 27 * - + COUNT( * ) )
----
29

skipif mysql # not compatible
query I rowsort label-5776
SELECT + COALESCE ( + 29, - 16 + + 75 + - 81, - 14 * + 27 * - + COUNT ( * ) )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT DISTINCT CAST( - 29 AS SIGNED ) * - - NULLIF ( + - 59, + + 38 ) + - - SUM( DISTINCT - + NULLIF ( 43, + 79 * + 18 + + 73 ) )
----
1668

skipif mysql # not compatible
query I rowsort label-5777
SELECT DISTINCT CAST ( - 29 AS INTEGER ) * - - NULLIF ( + - 59, + + 38 ) + - - SUM ( DISTINCT - + NULLIF ( 43, + 79 * + 18 + + 73 ) )
----
1668

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5778
SELECT ALL 31 * - 38 + + + 71, + CAST( NULL AS SIGNED ) AS col2
----
-1107
NULL

skipif mysql # not compatible
query II rowsort label-5778
SELECT ALL 31 * - 38 + + + 71, + CAST ( NULL AS INTEGER ) AS col2
----
-1107
NULL

query II rowsort
SELECT ALL - 28 * - + 87 + + 4, + 38 AS col1
----
2440
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT ALL - - 30 * COUNT( * ) * + 5 * + 77
----
11550

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - - 30 * COUNT ( * ) * + 5 * + 77
----
11550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5781
SELECT + 90 AS col0, 74 * 33 + + CAST( NULL AS SIGNED ) AS col0
----
90
NULL

skipif mysql # not compatible
query II rowsort label-5781
SELECT + 90 AS col0, 74 * 33 + + CAST ( NULL AS INTEGER ) AS col0
----
90
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT - COALESCE ( - 74, 7 ) * - COUNT( * ) + 26 + - 58
----
-106

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - COALESCE ( - 74, 7 ) * - COUNT ( * ) + 26 + - 58
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5783
SELECT ALL + + 17 * - CAST( NULL AS SIGNED ) + + 7 * + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + + 17 * - CAST ( NULL AS INTEGER ) + + 7 * + 41
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5784
SELECT - CAST( NULL AS SIGNED ) * - - ( 62 ) - + ( 84 ) / + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5784
SELECT - CAST ( NULL AS INTEGER ) * - - ( 62 ) - + ( 84 ) / + 39 AS col0
----
NULL

query I rowsort
SELECT - 13 col0
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-5786
SELECT 82 * 64 DIV 59 + 72
----
160

skipif mysql # not compatible
query I rowsort label-5786
SELECT 82 * 64 / 59 + 72
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - + 98 * + 18 * - 77 + 19 + COUNT( ALL + 93 ) - - + 43 * + 39 AS col0
----
137525

skipif mysql # not compatible
query I rowsort label-5787
SELECT - + 98 * + 18 * - 77 + 19 + COUNT ( ALL + 93 ) - - + 43 * + 39 AS col0
----
137525

query I rowsort
SELECT ALL - 41 * + - 1 + + 69
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT + + CASE COUNT( * ) WHEN + + 34 THEN + CASE - COUNT( * ) WHEN + 17 + + - MAX( + 78 ) - - 45 THEN + 65 END + + + NULLIF ( + 69, + 20 * 87 * - 32 - + - 38 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT + + CASE COUNT ( * ) WHEN + + 34 THEN + CASE - COUNT ( * ) WHEN + 17 + + - MAX ( + 78 ) - - 45 THEN + 65 END + + + NULLIF ( + 69, + 20 * 87 * - 32 - + - 38 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5790
SELECT ALL + + CAST( - - 51 AS SIGNED )
----
51

skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL + + CAST ( - - 51 AS INTEGER )
----
51

query I rowsort
SELECT ALL + - 78 * - 76 * + 66 - - + 27
----
391275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5792
SELECT ALL - CASE - CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN + CAST( NULL AS SIGNED ) * + + MIN( + 80 ) * + CASE + - ( + 94 ) WHEN - + COUNT( * ) + 3 THEN NULL WHEN + + NULLIF ( + AVG ( DISTINCT + - 14 ), - - COUNT( * ) ) THEN + 99 + 72 ELSE - + COUNT( * ) END * + + 66 END * - 1 / - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL - CASE - CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN + CAST ( NULL AS INTEGER ) * + + MIN ( + 80 ) * + CASE + - ( + 94 ) WHEN - + COUNT ( * ) + 3 THEN NULL WHEN + + NULLIF ( + AVG ( DISTINCT + - 14 ), - - COUNT ( * ) ) THEN + 99 + 72 ELSE - + COUNT ( * ) END * + + 66 END * - 1 / - 52
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT DISTINCT + 42 * + - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT + 42 * + - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5794
SELECT ALL ( + + COUNT( * ) ), 4 + + 35 AS col0
----
1
39

skipif mysql # not compatible
query II rowsort label-5794
SELECT ALL ( + + COUNT ( * ) ), 4 + + 35 AS col0
----
1
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5795
SELECT DISTINCT 5 * 15 - - + COUNT( ALL - 29 ) DIV 46 col1
----
75

skipif mysql # not compatible
query I rowsort label-5795
SELECT DISTINCT 5 * 15 - - + COUNT ( ALL - 29 ) / 46 col1
----
75

query II rowsort
SELECT DISTINCT - 16 * + - 48 AS col1, - 20 AS col1
----
768
-20

query I rowsort
SELECT - 0 * - - ( 59 )
----
0

query II rowsort
SELECT ALL - 25 * - 51 col1, ( - - ( + 69 ) ) * 65 + - 12
----
1275
4473

onlyif mysql # DIV for integer division: 
query I rowsort label-5799
SELECT - 18 - + 1 DIV - + 26
----
-18

skipif mysql # not compatible
query I rowsort label-5799
SELECT - 18 - + 1 / - + 26
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5800
SELECT DISTINCT CAST( + 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-5800
SELECT DISTINCT CAST ( + 22 AS INTEGER )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5801
SELECT DISTINCT CASE - 26 WHEN - 78 + - CAST( NULL AS SIGNED ) + 24 * 42 THEN + + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5801
SELECT DISTINCT CASE - 26 WHEN - 78 + - CAST ( NULL AS INTEGER ) + 24 * 42 THEN + + 80 END
----
NULL

query I rowsort
SELECT DISTINCT ( + + 93 ) col0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL + 35 + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + 35 + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5804
SELECT - COALESCE ( - 66, - 90, + COALESCE ( + 4, - 50 ) ) + + 23 DIV COALESCE ( - 8, + + 47 - + + 76 * 84, 5 * - 9 + - 49 + + COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-5804
SELECT - COALESCE ( - 66, - 90, + COALESCE ( + 4, - 50 ) ) + + 23 / COALESCE ( - 8, + + 47 - + + 76 * 84, 5 * - 9 + - 49 + + COUNT ( * ) )
----
64

query I rowsort
SELECT - 86 + - 69 AS col1
----
-155

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5806
SELECT ALL - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - CAST ( NULL AS REAL ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5807
SELECT + - 79 * 2 AS col0, - MIN( DISTINCT 63 ) AS col0
----
-158
-63

skipif mysql # not compatible
query II rowsort label-5807
SELECT + - 79 * 2 AS col0, - MIN ( DISTINCT 63 ) AS col0
----
-158
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5808
SELECT + CASE 6 WHEN 18 THEN NULL WHEN - NULLIF ( - - 46, + 91 + + 79 + - MAX( + + 25 ) + 66 - + ( 4 ) ) * + COUNT( * ) * - 58 THEN + - 54 END * + 69 + - + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-5808
SELECT + CASE 6 WHEN 18 THEN NULL WHEN - NULLIF ( - - 46, + 91 + + 79 + - MAX ( + + 25 ) + 66 - + ( 4 ) ) * + COUNT ( * ) * - 58 THEN + - 54 END * + 69 + - + 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT + CAST( NULL AS SIGNED ) / - - 9 + + 96 + - 33 * 61 * - + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT + CAST ( NULL AS INTEGER ) / - - 9 + + 96 + - 33 * 61 * - + 93 AS col1
----
NULL

query I rowsort
SELECT 76 + 4 AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL 46 + + MAX( - + 32 ) + 90 + - + 3 * - 88 AS col1
----
368

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL 46 + + MAX ( - + 32 ) + 90 + - + 3 * - 88 AS col1
----
368

query I rowsort
SELECT + ( - 14 )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5813
SELECT + COUNT( * ) DIV + 42 + + + 51 * + 70 - COUNT( * )
----
3569

skipif mysql # not compatible
query I rowsort label-5813
SELECT + COUNT ( * ) / + 42 + + + 51 * + 70 - COUNT ( * )
----
3569

onlyif mysql # DIV for integer division: 
query I rowsort label-5814
SELECT + 19 * 13 + + - 54 DIV + 91 + 94 * - + 15 AS col2
----
-1163

skipif mysql # not compatible
query I rowsort label-5814
SELECT + 19 * 13 + + - 54 / + 91 + 94 * - + 15 AS col2
----
-1163

onlyif mysql # aggregate syntax: 
query II rowsort label-5815
SELECT ALL + 72 - - + 43 + - COUNT( * ) + - COUNT( * ) AS col1, COUNT( * ) + + - 32 AS col2
----
113
-31

skipif mysql # not compatible
query II rowsort label-5815
SELECT ALL + 72 - - + 43 + - COUNT ( * ) + - COUNT ( * ) AS col1, COUNT ( * ) + + - 32 AS col2
----
113
-31

query I rowsort
SELECT ( - 61 ) AS col0
----
-61

query I rowsort
SELECT ALL 35 * - 61
----
-2135

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT DISTINCT - + NULLIF ( - + COUNT( DISTINCT - 89 ), + 81 )
----
1

skipif mysql # not compatible
query I rowsort label-5818
SELECT DISTINCT - + NULLIF ( - + COUNT ( DISTINCT - 89 ), + 81 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT - 48 * - - COALESCE ( + 52, MAX( 37 ) + - 41 - ( - + 99 ) * - COALESCE ( - 41, + 69, - 68 ) ) AS col0
----
-2496

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT - 48 * - - COALESCE ( + 52, MAX ( 37 ) + - 41 - ( - + 99 ) * - COALESCE ( - 41, + 69, - 68 ) ) AS col0
----
-2496

query I rowsort
SELECT ALL - + 58 col2
----
-58

query I rowsort
SELECT ALL - 58 AS col1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT COUNT( * ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-5822
SELECT COUNT ( * ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT ALL COUNT( * ) * 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-5823
SELECT ALL COUNT ( * ) * 3 AS col2
----
3

query I rowsort
SELECT ALL - ( 0 )
----
0

query I rowsort
SELECT 17 + - + ( 85 )
----
-68

query II rowsort
SELECT ALL - 88, + 54 AS col0
----
-88
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5827
SELECT COUNT( * ) * ( 43 ) * + NULLIF ( CASE - + 77 WHEN - 53 THEN NULL ELSE + 94 END, + 23 + + - 45 + - 36 * - AVG ( + 3 ) )
----
4042

skipif mysql # not compatible
query I rowsort label-5827
SELECT COUNT ( * ) * ( 43 ) * + NULLIF ( CASE - + 77 WHEN - 53 THEN NULL ELSE + 94 END, + 23 + + - 45 + - 36 * - AVG ( + 3 ) )
----
4042

query I rowsort
SELECT 62 * + 84
----
5208

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT 36 * - - ( + NULLIF ( - 66, + - MAX( ALL - - 24 ) ) ) AS col1
----
-2376

skipif mysql # not compatible
query I rowsort label-5829
SELECT 36 * - - ( + NULLIF ( - 66, + - MAX ( ALL - - 24 ) ) ) AS col1
----
-2376

query I rowsort
SELECT 78 - 39 AS col1
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5831
SELECT ALL + 66 DIV COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-5831
SELECT ALL + 66 / COUNT ( * )
----
66

query I rowsort
SELECT ( + 38 ) + - 54 * + 39
----
-2068

onlyif mysql # aggregate syntax: 
query I rowsort label-5833
SELECT 62 + CASE ( + + 19 ) WHEN - COUNT( * ) THEN 79 WHEN - - 2 + + NULLIF ( - 73, COUNT( * ) ) THEN - 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5833
SELECT 62 + CASE ( + + 19 ) WHEN - COUNT ( * ) THEN 79 WHEN - - 2 + + NULLIF ( - 73, COUNT ( * ) ) THEN - 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT ALL - 94 + - COUNT( DISTINCT + 79 ) * + 30 * + 77 AS col2
----
-2404

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL - 94 + - COUNT ( DISTINCT + 79 ) * + 30 * + 77 AS col2
----
-2404

query II rowsort
SELECT - 23 AS col2, 12
----
-23
12

query I rowsort
SELECT 77 + 68 * + - 14 AS col2
----
-875

query I rowsort
SELECT ALL - 94 + 21
----
-73

query I rowsort
SELECT DISTINCT - 77 * + + ( - 63 ) AS col1
----
4851

query I rowsort
SELECT 6 + + - COALESCE ( COALESCE ( - 88, + + 31 * + 77 ), + + 49, - - 43 )
----
94

query I rowsort
SELECT 77 * - 52 col1
----
-4004

query I rowsort
SELECT ALL 97 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT - 50 + - CASE AVG ( ALL + ( + 64 ) ) WHEN COUNT( DISTINCT 50 ) THEN 54 ELSE + 82 + MAX( ALL + 78 + + 20 ) END * COALESCE ( ( + 79 ) + 65 * 6, 60 )
----
-84470

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT - 50 + - CASE AVG ( ALL + ( + 64 ) ) WHEN COUNT ( DISTINCT 50 ) THEN 54 ELSE + 82 + MAX ( ALL + 78 + + 20 ) END * COALESCE ( ( + 79 ) + 65 * 6, 60 )
----
-84470

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL + COUNT( * ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + COUNT ( * ) + 63
----
64

query I rowsort
SELECT DISTINCT - 87 - + 40
----
-127

query I rowsort
SELECT ALL + 32 - + 16 * - 73
----
1200

query I rowsort
SELECT 92 * 75 AS col1
----
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT + COUNT( * ) * - 43
----
-43

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT + COUNT ( * ) * - 43
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT ALL - 60 * COUNT( * ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-5848
SELECT ALL - 60 * COUNT ( * ) AS col1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-5849
SELECT 11 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5849
SELECT 11 / + 47 AS col0
----
0

query I rowsort
SELECT DISTINCT - 89 col0
----
-89

query I rowsort
SELECT DISTINCT + 15 * 68 AS col2
----
1020

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL 31 - ( MAX( 88 ) ) * + ( - 9 + - COUNT( ALL - NULLIF ( 73, 5 ) ) )
----
911

skipif mysql # not compatible
query I rowsort label-5852
SELECT ALL 31 - ( MAX ( 88 ) ) * + ( - 9 + - COUNT ( ALL - NULLIF ( 73, 5 ) ) )
----
911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5853
SELECT ALL - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT 46 * CASE 34 WHEN 92 + + COUNT( * ) THEN + SUM( ALL + 85 ) * - 48 + + 48 WHEN ( 45 ) / + 27 THEN NULL WHEN + 98 THEN NULL ELSE + 19 - - 8 END AS col1
----
1242

skipif mysql # not compatible
query I rowsort label-5854
SELECT 46 * CASE 34 WHEN 92 + + COUNT ( * ) THEN + SUM ( ALL + 85 ) * - 48 + + 48 WHEN ( 45 ) / + 27 THEN NULL WHEN + 98 THEN NULL ELSE + 19 - - 8 END AS col1
----
1242

query I rowsort
SELECT ALL - 91 col0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5856
SELECT CAST( + NULLIF ( 8, - 95 * + 44 - - 25 ) AS SIGNED ) + + 7 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-5856
SELECT CAST ( + NULLIF ( 8, - 95 * + 44 - - 25 ) AS INTEGER ) + + 7 AS col0
----
15

query I rowsort
SELECT ALL 89 * - 35
----
-3115

query I rowsort
SELECT 46 - 10
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT 24 + - COUNT( * ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT 24 + - COUNT ( * ) AS col2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5860
SELECT ALL NULLIF ( 22, + COUNT( * ) ) DIV + ( + 83 + - 84 )
----
-22

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL NULLIF ( 22, + COUNT ( * ) ) / + ( + 83 + - 84 )
----
-22

query I rowsort
SELECT ALL 58 + - 66 * + 45
----
-2912

query I rowsort
SELECT DISTINCT 76 + - 66
----
10

query I rowsort
SELECT DISTINCT 88 + 23 * 20
----
548

onlyif mysql # aggregate syntax: 
query I rowsort label-5864
SELECT - COUNT( ALL 65 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5864
SELECT - COUNT ( ALL 65 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT CASE ( - 76 ) WHEN COUNT( * ) + - 18 THEN NULL WHEN - 63 * COALESCE ( 3, - 66 ) THEN + 73 + COUNT( * ) * + 92 ELSE + 58 END DIV - 47
----
-1

skipif mysql # not compatible
query I rowsort label-5865
SELECT CASE ( - 76 ) WHEN COUNT ( * ) + - 18 THEN NULL WHEN - 63 * COALESCE ( 3, - 66 ) THEN + 73 + COUNT ( * ) * + 92 ELSE + 58 END / - 47
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT ALL 23 + + COUNT( 16 ) col1
----
24

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL 23 + + COUNT ( 16 ) col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT - MIN( + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-5867
SELECT - MIN ( + 2 )
----
-2

query I rowsort
SELECT 67 - 21
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5869
SELECT - SUM( ALL NULLIF ( - 44, 81 ) )
----
44

skipif mysql # not compatible
query I rowsort label-5869
SELECT - SUM ( ALL NULLIF ( - 44, 81 ) )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT ( 16 ) DIV 9
----
1

skipif mysql # not compatible
query I rowsort label-5870
SELECT ( 16 ) / 9
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT ALL 87 + 51 * COUNT( * )
----
138

skipif mysql # not compatible
query I rowsort label-5871
SELECT ALL 87 + 51 * COUNT ( * )
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + MAX( ALL 82 ) * - ( + 31 + + 73 ) col2
----
-8528

skipif mysql # not compatible
query I rowsort label-5872
SELECT + MAX ( ALL 82 ) * - ( + 31 + + 73 ) col2
----
-8528

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL + COUNT( + 35 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL + COUNT ( + 35 ) AS col1
----
1

query I rowsort
SELECT ALL + - 24 - - 26
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT DISTINCT 49 - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT DISTINCT 49 - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 16 + 40 AS col2
----
56

query I rowsort
SELECT DISTINCT + ( + 31 ) * 17
----
527

query I rowsort
SELECT + 42 + - ( - 89 )
----
131

query I rowsort
SELECT ( - 25 ) AS col2
----
-25

query I rowsort
SELECT - + 19 * 34
----
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT - 64 + + NULLIF ( CASE + COUNT( DISTINCT + 87 ) WHEN - 0 THEN NULL WHEN 32 * + 33 THEN 55 * - MAX( DISTINCT 23 ) + 13 END, - 22 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT - 64 + + NULLIF ( CASE + COUNT ( DISTINCT + 87 ) WHEN - 0 THEN NULL WHEN 32 * + 33 THEN 55 * - MAX ( DISTINCT 23 ) + 13 END, - 22 )
----
NULL

query I rowsort
SELECT DISTINCT + - 52
----
-52

query I rowsort
SELECT ALL + 36 AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5884
SELECT ALL + CASE - 44 WHEN + 11 / + CAST( + 51 AS SIGNED ) THEN - COUNT( * ) * 9 + 27 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + CASE - 44 WHEN + 11 / + CAST ( + 51 AS INTEGER ) THEN - COUNT ( * ) * 9 + 27 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT + - 94 * 96
----
-9024

query I rowsort
SELECT ALL + ( - 15 )
----
-15

query I rowsort
SELECT DISTINCT + - 79 AS col0
----
-79

query I rowsort
SELECT - 53 * - 19 AS col1
----
1007

query I rowsort
SELECT - 23 * - 86
----
1978

query I rowsort
SELECT - 73 * + 59 + - 10 AS col2
----
-4317

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT DISTINCT + CASE WHEN 79 IS NULL THEN - 81 + 35 END * NULLIF ( + 32, + COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT DISTINCT + CASE WHEN 79 IS NULL THEN - 81 + 35 END * NULLIF ( + 32, + COUNT ( * ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT + ( - - ( 79 ) ) DIV + 85 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5892
SELECT + ( - - ( 79 ) ) / + 85 AS col2
----
0

query I rowsort
SELECT ALL ( - 30 ) * 20 + 99
----
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT - MAX( DISTINCT 26 ) * - 6
----
156

skipif mysql # not compatible
query I rowsort label-5894
SELECT - MAX ( DISTINCT 26 ) * - 6
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5895
SELECT DISTINCT - CAST( + + 46 AS SIGNED ) * + COUNT( * ) + - 66
----
-112

skipif mysql # not compatible
query I rowsort label-5895
SELECT DISTINCT - CAST ( + + 46 AS INTEGER ) * + COUNT ( * ) + - 66
----
-112

query I rowsort
SELECT - 71 * + + 23 col0
----
-1633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 98 * - 48 + - NULLIF ( 76, 60 * 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5897
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 98 * - 48 + - NULLIF ( 76, 60 * 87 )
----
NULL

query I rowsort
SELECT ALL + ( 49 ) * + 92 + 34 AS col2
----
4542

onlyif mysql # aggregate syntax: 
query I rowsort label-5899
SELECT SUM( ALL + 92 )
----
92

skipif mysql # not compatible
query I rowsort label-5899
SELECT SUM ( ALL + 92 )
----
92

query I rowsort
SELECT DISTINCT COALESCE ( - - 32, + 22, + 38 * + 68 ) * 27 + - 7
----
857

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT 3 * - CAST( NULL AS SIGNED ) + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT 3 * - CAST ( NULL AS INTEGER ) + 2 AS col2
----
NULL

query I rowsort
SELECT + 67 * - CASE 29 WHEN 48 THEN NULL ELSE 93 END * - 20 + 77 AS col1
----
124697

query I rowsort
SELECT - ( + 31 )
----
-31

query I rowsort
SELECT + 81 + 31 + + 55 * 68 * - 78 AS col2
----
-291608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5905
SELECT ALL - 31 + + 32 + CASE + 25 WHEN 7 THEN - 31 DIV + 35 WHEN 63 + 53 THEN NULL WHEN + 53 - + 59 * + ( COUNT( * ) * MIN( ALL + 23 ) ) THEN NULL ELSE - 7 END * + 77 AS col1
----
-538

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - 31 + + 32 + CASE + 25 WHEN 7 THEN - 31 / + 35 WHEN 63 + 53 THEN NULL WHEN + 53 - + 59 * + ( COUNT ( * ) * MIN ( ALL + 23 ) ) THEN NULL ELSE - 7 END * + 77 AS col1
----
-538

query I rowsort
SELECT ALL ( - + 95 )
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT + CAST( + - 68 AS SIGNED ) + COUNT( * ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-5907
SELECT + CAST ( + - 68 AS INTEGER ) + COUNT ( * ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT ALL CASE 26 WHEN ( + 29 ) THEN - 92 WHEN - 0 + + SUM( + 92 ) THEN + 39 / - COUNT( * ) + ( - 4 ) * MAX( DISTINCT 72 ) ELSE NULL END - - ( 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL CASE 26 WHEN ( + 29 ) THEN - 92 WHEN - 0 + + SUM ( + 92 ) THEN + 39 / - COUNT ( * ) + ( - 4 ) * MAX ( DISTINCT 72 ) ELSE NULL END - - ( 63 )
----
NULL

query I rowsort
SELECT DISTINCT + 59 * - 5 AS col2
----
-295

query I rowsort
SELECT - - 12 col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT + + 31 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT + + 31 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 69 + - - 10 AS col1
----
79

query I rowsort
SELECT ALL 38 * + 52
----
1976

query I rowsort
SELECT - - 61
----
61

query I rowsort
SELECT + 82 + - 32
----
50

query I rowsort
SELECT DISTINCT - 64 AS col1
----
-64

query I rowsort
SELECT + 26 * - + 66 * + 14
----
-24024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5918
SELECT + 96 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5918
SELECT + 96 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5919
SELECT - - 49 DIV + + COUNT( ALL + 37 ) AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5919
SELECT - - 49 / + + COUNT ( ALL + 37 ) AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT - ( + COUNT( * ) ) + + 10
----
9

skipif mysql # not compatible
query I rowsort label-5920
SELECT - ( + COUNT ( * ) ) + + 10
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5921
SELECT ALL - COALESCE ( + COALESCE ( 94, SUM( + 0 ) ), + CAST( + 39 AS SIGNED ) )
----
-94

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - COALESCE ( + COALESCE ( 94, SUM ( + 0 ) ), + CAST ( + 39 AS INTEGER ) )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT + - 4 * COUNT( * ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-5922
SELECT + - 4 * COUNT ( * ) AS col1
----
-4

query I rowsort
SELECT ALL - - 4 * 63 - + 11 col2
----
241

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5924
SELECT + CASE WHEN NOT + 87 <= COUNT( * ) THEN - 23 WHEN + 11 * 68 + ( 65 ) IN ( 77 ) THEN - 48 END DIV - NULLIF ( ( - 32 ) + 66, 41 + + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-5924
SELECT + CASE WHEN NOT + 87 <= COUNT ( * ) THEN - 23 WHEN + 11 * 68 + ( 65 ) IN ( 77 ) THEN - 48 END / - NULLIF ( ( - 32 ) + 66, 41 + + 90 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT ALL MAX( + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-5925
SELECT ALL MAX ( + 14 ) AS col2
----
14

query I rowsort
SELECT DISTINCT - 60 * + + 30
----
-1800

query I rowsort
SELECT ALL + 2 * - - 79 + + 63 * - 83
----
-5071

query I rowsort
SELECT + ( + 26 )
----
26

query I rowsort
SELECT + - ( - 60 )
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5930
SELECT CAST( + 68 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-5930
SELECT CAST ( + 68 AS INTEGER )
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5931
SELECT ALL CAST( - - 73 AS SIGNED ) * 80
----
5840

skipif mysql # not compatible
query I rowsort label-5931
SELECT ALL CAST ( - - 73 AS INTEGER ) * 80
----
5840

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT + 7 DIV - 70 + - 47 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5932
SELECT + 7 / - 70 + - 47 AS col1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT ALL 95 DIV - + 56 + + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL 95 / - + 56 + + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + + NULLIF ( + 7, + 9 + 73 * 37 ) )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT ALL 45 DIV - 76 + + 71 + 77
----
148

skipif mysql # not compatible
query I rowsort label-5935
SELECT ALL 45 / - 76 + + 71 + 77
----
148

query I rowsort
SELECT ( + - 28 ) AS col0
----
-28

query I rowsort
SELECT - 76 * - 80 * - 39 * + 37
----
-8773440

query I rowsort
SELECT ( - - 81 )
----
81

query I rowsort
SELECT - 94 + + 64 * 89
----
5602

onlyif mysql # DIV for integer division: 
query I rowsort label-5940
SELECT - 5 DIV + + 32 * + 51 * 12 col1
----
0

skipif mysql # not compatible
query I rowsort label-5940
SELECT - 5 / + + 32 * + 51 * 12 col1
----
0

query I rowsort
SELECT 80 - - - ( - 31 ) AS col2
----
111

query I rowsort
SELECT ALL - 45 * - 15 col0
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT DISTINCT - NULLIF ( - COUNT( * ), + - 7 * + 46 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5943
SELECT DISTINCT - NULLIF ( - COUNT ( * ), + - 7 * + 46 ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 64 col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5945
SELECT - 39 AS col1, - COUNT( * ) + - - 18
----
-39
17

skipif mysql # not compatible
query II rowsort label-5945
SELECT - 39 AS col1, - COUNT ( * ) + - - 18
----
-39
17

query I rowsort
SELECT ALL - + 40 - - 73 + - 65 + 90
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5947
SELECT ALL - MAX( DISTINCT - - NULLIF ( - + 58, + 23 ) ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL - MAX ( DISTINCT - - NULLIF ( - + 58, + 23 ) ) AS col0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5948
SELECT + 9, CASE 62 WHEN + 16 THEN CASE 83 WHEN 87 THEN 70 * - COUNT( * ) END / ( + 96 * - 28 - ( - AVG ( DISTINCT 33 ) ) * 72 ) END * 89 AS col0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-5948
SELECT + 9, CASE 62 WHEN + 16 THEN CASE 83 WHEN 87 THEN 70 * - COUNT ( * ) END / ( + 96 * - 28 - ( - AVG ( DISTINCT 33 ) ) * 72 ) END * 89 AS col0
----
9
NULL

query I rowsort
SELECT - COALESCE ( - + 20, - 43 ) AS col0
----
20

query II rowsort
SELECT + 60 AS col2, 78 AS col1
----
60
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT 68 AS col2, COUNT( DISTINCT - 10 )
----
68
1

skipif mysql # not compatible
query II rowsort label-5951
SELECT 68 AS col2, COUNT ( DISTINCT - 10 )
----
68
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT ALL + ( - COUNT( * ) ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL + ( - COUNT ( * ) ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT 65 * - 63 * - + 80 - COUNT( * ) AS col2
----
327599

skipif mysql # not compatible
query I rowsort label-5953
SELECT 65 * - 63 * - + 80 - COUNT ( * ) AS col2
----
327599

query I rowsort
SELECT ALL 72 * + + 65 AS col0
----
4680

query I rowsort
SELECT DISTINCT - NULLIF ( + 99, + + 6 + - 66 )
----
-99

query I rowsort
SELECT - - 29 AS col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT ALL - + 85 * - + COUNT( ALL - 11 ) * - 56
----
-4760

skipif mysql # not compatible
query I rowsort label-5957
SELECT ALL - + 85 * - + COUNT ( ALL - 11 ) * - 56
----
-4760

query I rowsort
SELECT DISTINCT + ( - + ( - - 99 ) )
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT COALESCE ( + ( + + 44 ), - 0 * MAX( + 8 ) + + 38 * 63, 29 )
----
44

skipif mysql # not compatible
query I rowsort label-5959
SELECT DISTINCT COALESCE ( + ( + + 44 ), - 0 * MAX ( + 8 ) + + 38 * 63, 29 )
----
44

query I rowsort
SELECT 78 + - 7
----
71

query I rowsort
SELECT + 82 - - 76 * + + 12
----
994

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT COUNT( * ) + + 87
----
88

skipif mysql # not compatible
query I rowsort label-5962
SELECT COUNT ( * ) + + 87
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-5963
SELECT 99 DIV 43 * 64 + + 69
----
197

skipif mysql # not compatible
query I rowsort label-5963
SELECT 99 / 43 * 64 + + 69
----
197

query I rowsort
SELECT DISTINCT 75 + 2 * - 77 col2
----
-79

query I rowsort
SELECT 47 + 24 + + - 5
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-5966
SELECT ALL 2 DIV + 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5966
SELECT ALL 2 / + 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT SUM( - 64 ) + - 50
----
-114

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT SUM ( - 64 ) + - 50
----
-114

query II rowsort
SELECT DISTINCT 1 * - 27 col0, - 10 * 36 AS col2
----
-27
-360

query I rowsort
SELECT DISTINCT + 66 + 26 AS col1
----
92

query I rowsort
SELECT DISTINCT - 4 col0
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT ALL + 3 * + 64 * + + 37 DIV - COUNT( * )
----
-7104

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL + 3 * + 64 * + + 37 / - COUNT ( * )
----
-7104

query I rowsort
SELECT 45 * - - 33
----
1485

query I rowsort
SELECT 12 * + 59 + - ( + + 35 )
----
673

query I rowsort
SELECT DISTINCT - 19 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT + MAX( ALL 25 ) * + 6 + 85 + - 6 * + 68
----
-173

skipif mysql # not compatible
query I rowsort label-5975
SELECT + MAX ( ALL 25 ) * + 6 + 85 + - 6 * + 68
----
-173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5976
SELECT ALL 58 - + 33 * 51 * 10 / + CAST( NULL AS SIGNED ) + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL 58 - + 33 * 51 * 10 / + CAST ( NULL AS INTEGER ) + 92 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT 71 * - 90 DIV - 1
----
6390

skipif mysql # not compatible
query I rowsort label-5977
SELECT 71 * - 90 / - 1
----
6390

query I rowsort
SELECT 77 + - 80
----
-3

query I rowsort
SELECT 96 * 31
----
2976

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT ( + + 59 ) + COUNT( * ) * + 15
----
74

skipif mysql # not compatible
query I rowsort label-5980
SELECT ( + + 59 ) + COUNT ( * ) * + 15
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT 15 DIV + 10 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5981
SELECT 15 / + 10 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - COUNT( + 81 ) + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT - COUNT ( + 81 ) + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5983
SELECT + ( 41 ) DIV + COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-5983
SELECT + ( 41 ) / + COUNT ( * )
----
41

query I rowsort
SELECT 21 + - 98
----
-77

query I rowsort
SELECT ALL + 26 * - 56
----
-1456

query II rowsort
SELECT ALL - 68 * + 50, 81 col0
----
-3400
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT - COUNT( * ) + + NULLIF ( + - 53, + + 59 )
----
-54

skipif mysql # not compatible
query I rowsort label-5987
SELECT - COUNT ( * ) + + NULLIF ( + - 53, + + 59 )
----
-54

query I rowsort
SELECT ALL + 77 + 7 + 83 * - 25
----
-1991

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT 44 + CASE - COUNT( DISTINCT - + 49 ) WHEN 46 * - 5 + + 67 THEN NULL WHEN 46 THEN + NULLIF ( 13, + 26 ) END * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT 44 + CASE - COUNT ( DISTINCT - + 49 ) WHEN 46 * - 5 + + 67 THEN NULL WHEN 46 THEN + NULLIF ( 13, + 26 ) END * 14
----
NULL

query I rowsort
SELECT ALL ( - 43 ) AS col0
----
-43

query I rowsort
SELECT ( + 2 ) + - 29
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-5992
SELECT - + ( - 57 ) AS col2, - COUNT( * ) * COUNT( * ) AS col0
----
57
-1

skipif mysql # not compatible
query II rowsort label-5992
SELECT - + ( - 57 ) AS col2, - COUNT ( * ) * COUNT ( * ) AS col0
----
57
-1

query I rowsort
SELECT ALL - - 58 + + ( + - 84 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5994
SELECT COALESCE ( + 35, - - MIN( - 17 ) )
----
35

skipif mysql # not compatible
query I rowsort label-5994
SELECT COALESCE ( + 35, - - MIN ( - 17 ) )
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5995
SELECT DISTINCT + 39 + - CASE - 23 WHEN - 46 THEN - 87 WHEN 0 THEN - 74 WHEN CAST( ( + 90 ) AS SIGNED ) * - 91 + 72 * 7 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT + 39 + - CASE - 23 WHEN - 46 THEN - 87 WHEN 0 THEN - 74 WHEN CAST ( ( + 90 ) AS INTEGER ) * - 91 + 72 * 7 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5996
SELECT ALL - 81 + + 98 AS col1, + 33 DIV 59
----
17
0

skipif mysql # not compatible
query II rowsort label-5996
SELECT ALL - 81 + + 98 AS col1, + 33 / 59
----
17
0

query I rowsort
SELECT DISTINCT 60 + + - 53 AS col2
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5998
SELECT ALL COUNT( * ) + 45 * + 70 + - - CAST( - 96 AS SIGNED ) * + 83 AS col1
----
-4817

skipif mysql # not compatible
query I rowsort label-5998
SELECT ALL COUNT ( * ) + 45 * + 70 + - - CAST ( - 96 AS INTEGER ) * + 83 AS col1
----
-4817

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL CASE + + 4 WHEN 32 * - COUNT( * ) THEN - 17 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL CASE + + 4 WHEN 32 * - COUNT ( * ) THEN - 17 END AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - 2, + ( + 44 ) )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT + COUNT( 20 )
----
1

skipif mysql # not compatible
query I rowsort label-6001
SELECT + COUNT ( 20 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT DISTINCT 24 * - COUNT( * ) * + COALESCE ( - ( 30 ), + COUNT( 98 ) * - 34 )
----
720

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT 24 * - COUNT ( * ) * + COALESCE ( - ( 30 ), + COUNT ( 98 ) * - 34 )
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-6003
SELECT SUM( ALL + CASE + + 93 WHEN + - 41 + - 43 * 68 THEN + 60 ELSE + 32 * + ( + 61 ) END ) * ( 28 * 50 )
----
2732800

skipif mysql # not compatible
query I rowsort label-6003
SELECT SUM ( ALL + CASE + + 93 WHEN + - 41 + - 43 * 68 THEN + 60 ELSE + 32 * + ( + 61 ) END ) * ( 28 * 50 )
----
2732800

query I rowsort
SELECT + 70 * + 89
----
6230

query I rowsort
SELECT + 41 - + 92
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT CASE + + 6 WHEN - - 20 THEN COUNT( * ) WHEN + 34 THEN NULL ELSE + 6 + COUNT( * ) END
----
7

skipif mysql # not compatible
query I rowsort label-6006
SELECT CASE + + 6 WHEN - - 20 THEN COUNT ( * ) WHEN + 34 THEN NULL ELSE + 6 + COUNT ( * ) END
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6007
SELECT + ( + COUNT( * ) ) * - 39 * + + 63
----
-2457

skipif mysql # not compatible
query I rowsort label-6007
SELECT + ( + COUNT ( * ) ) * - 39 * + + 63
----
-2457

onlyif mysql # aggregate syntax: 
query II rowsort label-6008
SELECT 73 * + COUNT( * ) + - 14 AS col0, + 36 AS col2
----
59
36

skipif mysql # not compatible
query II rowsort label-6008
SELECT 73 * + COUNT ( * ) + - 14 AS col0, + 36 AS col2
----
59
36

query I rowsort
SELECT - 16 * - 52 + + 32 AS col0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT + COUNT( 22 ) * - 41 col2
----
-41

skipif mysql # not compatible
query I rowsort label-6010
SELECT + COUNT ( 22 ) * - 41 col2
----
-41

query I rowsort
SELECT - 80 * + 45 AS col1
----
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT MAX( - 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-6012
SELECT MAX ( - 10 )
----
-10

query I rowsort
SELECT + - 59 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT NULLIF ( 3, - COUNT( * ) )
----
3

skipif mysql # not compatible
query I rowsort label-6014
SELECT NULLIF ( 3, - COUNT ( * ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT + - 92 * ( + + 14 ) + + 55 - + COUNT( * ) * + ( + COUNT( * ) )
----
-1234

skipif mysql # not compatible
query I rowsort label-6015
SELECT + - 92 * ( + + 14 ) + + 55 - + COUNT ( * ) * + ( + COUNT ( * ) )
----
-1234

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT ALL - ( - 59 ) + + ( + - ( 79 ) ) DIV 42 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - ( - 59 ) + + ( + - ( 79 ) ) / 42 AS col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT DISTINCT + - MAX( 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-6017
SELECT DISTINCT + - MAX ( 14 )
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-6018
SELECT ALL - + 97 + 14 + - 86 AS col2, COALESCE ( + - 7, + 34 * ( 31 * + 62 ) + CASE - 60 WHEN - 16 + CASE 35 WHEN - 48 THEN COALESCE ( + 38, + CASE 17 WHEN 8 THEN - NULLIF ( COALESCE ( + 83, 92 * + 23 + 78 * + 66, 3 - + COUNT( * ) * - 89 ), 24 ) END - - 86, + 86 * + AVG ( - 6 ), CAST( + 68 AS SIGNED ) ) WHEN 85 + + 90 THEN 95 * + 85 WHEN - 95 + 85 * - 1 THEN 47 + - CAST( - ( + 89 ) AS DECIMAL ) * ( - ( - 18 ) * 51 ) ELSE NULL END * - 25 THEN 45 WHEN + 26 * MIN( DISTINCT 15 ) + - 4 THEN NULL ELSE NULLIF ( - 12, 49 - - 5 * 39 ) END ) DIV 22
----
-169
0

skipif mysql # not compatible
query II rowsort label-6018
SELECT ALL - + 97 + 14 + - 86 AS col2, COALESCE ( + - 7, + 34 * ( 31 * + 62 ) + CASE - 60 WHEN - 16 + CASE 35 WHEN - 48 THEN COALESCE ( + 38, + CASE 17 WHEN 8 THEN - NULLIF ( COALESCE ( + 83, 92 * + 23 + 78 * + 66, 3 - + COUNT ( * ) * - 89 ), 24 ) END - - 86, + 86 * + AVG ( - 6 ), CAST ( + 68 AS INTEGER ) ) WHEN 85 + + 90 THEN 95 * + 85 WHEN - 95 + 85 * - 1 THEN 47 + - CAST ( - ( + 89 ) AS REAL ) * ( - ( - 18 ) * 51 ) ELSE NULL END * - 25 THEN 45 WHEN + 26 * MIN ( DISTINCT 15 ) + - 4 THEN NULL ELSE NULLIF ( - 12, 49 - - 5 * 39 ) END ) / 22
----
-169
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6019
SELECT COUNT( * ) AS col0, - 77 + COUNT( * )
----
1
-76

skipif mysql # not compatible
query II rowsort label-6019
SELECT COUNT ( * ) AS col0, - 77 + COUNT ( * )
----
1
-76

query I rowsort
SELECT ALL - 37 + + + 12 AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT + - 31 * COUNT( DISTINCT - COALESCE ( + 74, + 23 * + 30 ) ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6021
SELECT + - 31 * COUNT ( DISTINCT - COALESCE ( + 74, + 23 * + 30 ) ) AS col2
----
-31

query I rowsort
SELECT DISTINCT + - 68 + + 61
----
-7

query I rowsort
SELECT ALL - 45 + NULLIF ( - COALESCE ( + 54, + ( 20 ) - - 74 ), + 0 ) + 76
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6024
SELECT - 78 DIV - 77 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-6024
SELECT - 78 / - 77 AS col0
----
1

query I rowsort
SELECT + 17 - + 11 AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT DISTINCT - 43 + - + CASE + ( - ( + + 99 ) ) WHEN + 38 THEN NULL WHEN 14 * COUNT( * ) THEN NULL ELSE - 67 END
----
24

skipif mysql # not compatible
query I rowsort label-6026
SELECT DISTINCT - 43 + - + CASE + ( - ( + + 99 ) ) WHEN + 38 THEN NULL WHEN 14 * COUNT ( * ) THEN NULL ELSE - 67 END
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT ALL - 85 + - COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL - 85 + - COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL + + 43 * - 72 * - CASE - ( + + 71 ) WHEN 99 * - ( - 89 ) THEN ( - COUNT( * ) ) WHEN - 22 THEN + 2 * - 78 ELSE NULL END / + NULLIF ( + 62 * 45 + - COUNT( * ) * - 76, - COALESCE ( 65, COUNT( * ) + COALESCE ( + 77, 82 * 34 + + 32 ), 22 * + 36 ) + SUM( ALL 14 ) ) + + COUNT( + 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL + + 43 * - 72 * - CASE - ( + + 71 ) WHEN 99 * - ( - 89 ) THEN ( - COUNT ( * ) ) WHEN - 22 THEN + 2 * - 78 ELSE NULL END / + NULLIF ( + 62 * 45 + - COUNT ( * ) * - 76, - COALESCE ( 65, COUNT ( * ) + COALESCE ( + 77, 82 * 34 + + 32 ), 22 * + 36 ) + SUM ( ALL 14 ) ) + + COUNT ( + 65 ) AS col0
----
NULL

query I rowsort
SELECT ALL + 10 + 62
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6030
SELECT ALL - ( MIN( ALL 48 ) ) - - + 17 - 10 * 76 DIV + ( - 68 * 10 )
----
-30

skipif mysql # not compatible
query I rowsort label-6030
SELECT ALL - ( MIN ( ALL 48 ) ) - - + 17 - 10 * 76 / + ( - 68 * 10 )
----
-30

query I rowsort
SELECT ALL - ( + 45 ) AS col0
----
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6032
SELECT - COUNT( DISTINCT + 2 ) + 71 - + CAST( - - MAX( DISTINCT - ( ( + 56 ) ) ) AS SIGNED ) * - 27 AS col1
----
-1442

skipif mysql # not compatible
query I rowsort label-6032
SELECT - COUNT ( DISTINCT + 2 ) + 71 - + CAST ( - - MAX ( DISTINCT - ( ( + 56 ) ) ) AS INTEGER ) * - 27 AS col1
----
-1442

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT - CAST( NULL AS SIGNED ) - 98 * 29 + + 9 + CAST( 15 AS SIGNED ) * 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6033
SELECT - CAST ( NULL AS INTEGER ) - 98 * 29 + + 9 + CAST ( 15 AS INTEGER ) * 27
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT - COALESCE ( COUNT( * ), - - 62 ) * - ( - 99 ) + 87 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6034
SELECT - COALESCE ( COUNT ( * ), - - 62 ) * - ( - 99 ) + 87 AS col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT ALL - 49 - + CAST( - 3 AS SIGNED ) + 90
----
44

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL - 49 - + CAST ( - 3 AS INTEGER ) + 90
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6036
SELECT - COUNT( * ) col1, 14 * 26
----
-1
364

skipif mysql # not compatible
query II rowsort label-6036
SELECT - COUNT ( * ) col1, 14 * 26
----
-1
364

query I rowsort
SELECT - 65 + 71
----
6

query I rowsort
SELECT ALL ( + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT DISTINCT NULLIF ( + 71, MIN( ALL - 22 ) + + + 72 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT NULLIF ( + 71, MIN ( ALL - 22 ) + + + 72 ) AS col2
----
71

query I rowsort
SELECT DISTINCT + COALESCE ( + - 49, + + 32, ( + 29 ) * - 16 ) AS col0
----
-49

query I rowsort
SELECT ALL + 14 * 81
----
1134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6042
SELECT - COALESCE ( COUNT( * ), - 96 + 0 * - - 72, ( + CAST( NULL AS SIGNED ) ) ) * 77 AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6042
SELECT - COALESCE ( COUNT ( * ), - 96 + 0 * - - 72, ( + CAST ( NULL AS INTEGER ) ) ) * 77 AS col0
----
-77

query I rowsort
SELECT ( 16 )
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6044
SELECT 86 * - 2 + - - 52 + + 45 * + COUNT( * ) + + CAST( 57 AS SIGNED ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-6044
SELECT 86 * - 2 + - - 52 + + 45 * + COUNT ( * ) + + CAST ( 57 AS INTEGER ) AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT + 25 AS col0, SUM( + 43 ) * - 70 + ( - 76 ) + 97 * 21
----
25
-1049

skipif mysql # not compatible
query II rowsort label-6045
SELECT + 25 AS col0, SUM ( + 43 ) * - 70 + ( - 76 ) + 97 * 21
----
25
-1049

query I rowsort
SELECT ( 20 ) AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT - 12 DIV 70 DIV 21 + - 60
----
-60

skipif mysql # not compatible
query I rowsort label-6047
SELECT - 12 / 70 / 21 + - 60
----
-60

query I rowsort
SELECT + 81 * + 24 AS col0
----
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT + 69 + + COUNT( * ) * COUNT( * ) * - - COUNT( - + 67 ) col2
----
70

skipif mysql # not compatible
query I rowsort label-6049
SELECT + 69 + + COUNT ( * ) * COUNT ( * ) * - - COUNT ( - + 67 ) col2
----
70

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6050
SELECT + + 21 DIV - 62 AS col0, - CAST( NULL AS SIGNED ) * + + CAST( 5 AS SIGNED )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6050
SELECT + + 21 / - 62 AS col0, - CAST ( NULL AS INTEGER ) * + + CAST ( 5 AS INTEGER )
----
0
NULL

query I rowsort
SELECT DISTINCT + - 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT 30 * 29 * + 35 - + CASE - 45 WHEN - + 90 * 31 + 66 THEN 75 + + 35 WHEN - 59 * - 94 + SUM( ALL + 24 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT 30 * 29 * + 35 - + CASE - 45 WHEN - + 90 * 31 + 66 THEN 75 + + 35 WHEN - 59 * - 94 + SUM ( ALL + 24 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6053
SELECT ALL SUM( ALL 25 ) DIV - 39 * + COUNT( * ) + - - CAST( - NULLIF ( COUNT( * ), CASE 76 WHEN - 42 THEN + 83 WHEN + 4 THEN NULL END - CAST( + 87 AS DECIMAL ) ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL SUM ( ALL 25 ) / - 39 * + COUNT ( * ) + - - CAST ( - NULLIF ( COUNT ( * ), CASE 76 WHEN - 42 THEN + 83 WHEN + 4 THEN NULL END - CAST ( + 87 AS REAL ) ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT - CAST( - 14 AS SIGNED ) + + - 51
----
-37

skipif mysql # not compatible
query I rowsort label-6054
SELECT - CAST ( - 14 AS INTEGER ) + + - 51
----
-37

query I rowsort
SELECT + 35 - + 55 * 69
----
-3760

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6056
SELECT + - 43, 38 * CAST( NULL AS SIGNED ) + + AVG ( - 13 ) * + 87 AS col2
----
-43
NULL

skipif mysql # not compatible
query II rowsort label-6056
SELECT + - 43, 38 * CAST ( NULL AS INTEGER ) + + AVG ( - 13 ) * + 87 AS col2
----
-43
NULL

query I rowsort
SELECT + + 30 col1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT + COUNT( * ) + + + SUM( DISTINCT + ( - 59 ) ) * + 81
----
-4778

skipif mysql # not compatible
query I rowsort label-6058
SELECT + COUNT ( * ) + + + SUM ( DISTINCT + ( - 59 ) ) * + 81
----
-4778

query I rowsort
SELECT ALL + CASE + 19 WHEN - 57 THEN NULL WHEN 37 + - 54 THEN - 77 * 90 WHEN 28 + 2 THEN NULL ELSE 39 END * 91 + + 72 * + 65 AS col2
----
8229

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT - + MIN( 12 ) * - 48 * + ( + COUNT( * ) ) + - + COUNT( * ) AS col1
----
575

skipif mysql # not compatible
query I rowsort label-6060
SELECT - + MIN ( 12 ) * - 48 * + ( + COUNT ( * ) ) + - + COUNT ( * ) AS col1
----
575

query I rowsort
SELECT COALESCE ( - - 20, + 29 * + ( + 86 ) - + 52 ) col1
----
20

query I rowsort
SELECT + + COALESCE ( + 33, + - 44 ) AS col0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT - MIN( DISTINCT 82 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT - MIN ( DISTINCT 82 ) AS col2
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT ALL + - 45 * - - 70 + + COUNT( * ) + - + CASE - + 31 WHEN + COUNT( * ) * 38 THEN NULL WHEN 20 THEN + 21 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + - 45 * - - 70 + + COUNT ( * ) + - + CASE - + 31 WHEN + COUNT ( * ) * 38 THEN NULL WHEN 20 THEN + 21 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 56 * 82 - 40
----
4552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT - CAST( - + 6 AS SIGNED )
----
6

skipif mysql # not compatible
query I rowsort label-6066
SELECT - CAST ( - + 6 AS INTEGER )
----
6

query I rowsort
SELECT + 51 + 83 + + COALESCE ( - + 77, - 57 ) * + 87 * 90
----
-602776

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT NULLIF ( 47, SUM( 50 ) ) col1
----
47

skipif mysql # not compatible
query I rowsort label-6068
SELECT NULLIF ( 47, SUM ( 50 ) ) col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT - 65 + 94 / CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 65 + 94 / CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - 91 + - + 91 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - 91 + - + 91 + 41
----
NULL

query I rowsort
SELECT ALL 83 - 46 AS col0
----
37

query I rowsort
SELECT ALL + 90 * - 16 col2
----
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-6073
SELECT ALL 47 DIV 97 col0
----
0

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL 47 / 97 col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6074
SELECT DISTINCT 82 * 32 AS col2, MAX( ALL - + 66 )
----
2624
-66

skipif mysql # not compatible
query II rowsort label-6074
SELECT DISTINCT 82 * 32 AS col2, MAX ( ALL - + 66 )
----
2624
-66

query I rowsort
SELECT 77 * - 67 * 9 AS col1
----
-46431

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT ( - COUNT( ALL + 87 ) ) * - 17
----
17

skipif mysql # not compatible
query I rowsort label-6076
SELECT ( - COUNT ( ALL + 87 ) ) * - 17
----
17

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6077
SELECT - 71 DIV - CAST( - 88 AS SIGNED ) + + 61 + - ( - 15 ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-6077
SELECT - 71 / - CAST ( - 88 AS INTEGER ) + + 61 + - ( - 15 ) AS col1
----
76

query I rowsort
SELECT 25 * + 80
----
2000

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT DISTINCT - CASE + - COUNT( * ) WHEN - + 25 THEN + + 83 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - CASE + - COUNT ( * ) WHEN - + 25 THEN + + 83 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT DISTINCT + COUNT( * ) + - 75
----
-74

skipif mysql # not compatible
query I rowsort label-6080
SELECT DISTINCT + COUNT ( * ) + - 75
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL CAST( NULL AS SIGNED ) * + + 18 * + COALESCE ( CAST( NULL AS SIGNED ), - - 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL CAST ( NULL AS INTEGER ) * + + 18 * + COALESCE ( CAST ( NULL AS INTEGER ), - - 26 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT ALL + + COALESCE ( + 8, 32 + 12 * 49 ) + 48 + - 58 + 19 DIV 11 DIV 61 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + + COALESCE ( + 8, 32 + 12 * 49 ) + 48 + - 58 + 19 / 11 / 61 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6083
SELECT + COALESCE ( - + COUNT( + 66 ), - CAST( NULL AS SIGNED ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6083
SELECT + COALESCE ( - + COUNT ( + 66 ), - CAST ( NULL AS INTEGER ) ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6084
SELECT + 22 * + 46 + + 84 AS col0, - ( + 54 ) * - CAST( NULL AS SIGNED ) + + 5 AS col1
----
1096
NULL

skipif mysql # not compatible
query II rowsort label-6084
SELECT + 22 * + 46 + + 84 AS col0, - ( + 54 ) * - CAST ( NULL AS INTEGER ) + + 5 AS col1
----
1096
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6085
SELECT 9 * - 6 DIV + + 77 + + COUNT( * ) * + - 35 + - 78 * + ( + 5 ) + 3 AS col1
----
-422

skipif mysql # not compatible
query I rowsort label-6085
SELECT 9 * - 6 / + + 77 + + COUNT ( * ) * + - 35 + - 78 * + ( + 5 ) + 3 AS col1
----
-422

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL CASE + + 5 WHEN + NULLIF ( + 67, 95 + - 28 * + ( 67 ) ) THEN + ( 40 ) + COALESCE ( - 82 + - 71 * + 84, + 56 * 26 ) WHEN + 98 THEN 49 WHEN + 96 / 60 + 80 * ( SUM( 44 ) ) THEN NULL END - 68 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL CASE + + 5 WHEN + NULLIF ( + 67, 95 + - 28 * + ( 67 ) ) THEN + ( 40 ) + COALESCE ( - 82 + - 71 * + 84, + 56 * 26 ) WHEN + 98 THEN 49 WHEN + 96 / 60 + 80 * ( SUM ( 44 ) ) THEN NULL END - 68 AS col0
----
NULL

query I rowsort
SELECT - 26 * + - 62
----
1612

query I rowsort
SELECT ALL - 58 col1
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT COUNT( * ) DIV + COALESCE ( + 79, + 13 ) + + 34 * - COUNT( * ) * - + 91 * - NULLIF ( - 26, - 45 )
----
80444

skipif mysql # not compatible
query I rowsort label-6089
SELECT COUNT ( * ) / + COALESCE ( + 79, + 13 ) + + 34 * - COUNT ( * ) * - + 91 * - NULLIF ( - 26, - 45 )
----
80444

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT - COALESCE ( - 44, MIN( DISTINCT 76 ) )
----
44

skipif mysql # not compatible
query I rowsort label-6090
SELECT - COALESCE ( - 44, MIN ( DISTINCT 76 ) )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT + CASE + 31 WHEN CAST( NULL AS SIGNED ) + 28 THEN NULL WHEN + NULLIF ( + + 20, + 32 * + 24 ) * + 53 THEN 29 - 89 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT + CASE + 31 WHEN CAST ( NULL AS INTEGER ) + 28 THEN NULL WHEN + NULLIF ( + + 20, + 32 * + 24 ) * + 53 THEN 29 - 89 END
----
NULL

query I rowsort
SELECT - - 68 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT MIN( + 29 ) - - 66 * - ( + + 5 )
----
-301

skipif mysql # not compatible
query I rowsort label-6093
SELECT MIN ( + 29 ) - - 66 * - ( + + 5 )
----
-301

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6094
SELECT ALL 45, 78 + 67 * CAST( NULL AS DECIMAL ) * ( + 75 ) * 8 AS col0
----
45
NULL

skipif mysql # not compatible
query II rowsort label-6094
SELECT ALL 45, 78 + 67 * CAST ( NULL AS REAL ) * ( + 75 ) * 8 AS col0
----
45
NULL

query I rowsort
SELECT DISTINCT 6 * 54
----
324

query II rowsort
SELECT DISTINCT 48, + 2 AS col1
----
48
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT 96 * - ( - - CAST( NULL AS SIGNED ) ) * 33 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6097
SELECT 96 * - ( - - CAST ( NULL AS INTEGER ) ) * 33 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6098
SELECT ALL 41 * + NULLIF ( + COUNT( * ), - + 35 * + - 98 ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL 41 * + NULLIF ( + COUNT ( * ), - + 35 * + - 98 ) AS col1
----
41

query I rowsort
SELECT NULLIF ( - 64, + 0 ) - + 82
----
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6100
SELECT 80 + 59 * + - MAX( DISTINCT CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6100
SELECT 80 + 59 * + - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6101
SELECT - 12 col2, COUNT( * ) + + CASE - 93 WHEN 8 + COUNT( * ) + + ( + 4 ) * ( + 12 * + 47 ) THEN 84 * 3 WHEN 18 THEN NULL ELSE NULL END + COUNT( * ) / + 9 * + 38 AS col1
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-6101
SELECT - 12 col2, COUNT ( * ) + + CASE - 93 WHEN 8 + COUNT ( * ) + + ( + 4 ) * ( + 12 * + 47 ) THEN 84 * 3 WHEN 18 THEN NULL ELSE NULL END + COUNT ( * ) / + 9 * + 38 AS col1
----
-12
NULL

query I rowsort
SELECT 22 * - 69 AS col0
----
-1518

query I rowsort
SELECT 25 - - ( + 63 ) + ( + 73 ) + - + 65 * - 32 AS col2
----
2241

onlyif mysql # aggregate syntax: 
query II rowsort label-6104
SELECT 76 col2, 65 + + MAX( + + ( - 45 ) ) + - 82 - 96 * 36 * 55 col1
----
76
-190142

skipif mysql # not compatible
query II rowsort label-6104
SELECT 76 col2, 65 + + MAX ( + + ( - 45 ) ) + - 82 - 96 * 36 * 55 col1
----
76
-190142

query I rowsort
SELECT 5 + + + 66 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT ALL COUNT( * ) + + + 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL COUNT ( * ) + + + 30 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT DISTINCT 93 DIV + 89
----
1

skipif mysql # not compatible
query I rowsort label-6107
SELECT DISTINCT 93 / + 89
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL + 85 * - - 28 + - COUNT( DISTINCT + 32 )
----
2379

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL + 85 * - - 28 + - COUNT ( DISTINCT + 32 )
----
2379

query I rowsort
SELECT DISTINCT - ( - - 25 ) col1
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-6110
SELECT COUNT( * ) AS col0, 50 * - 6
----
1
-300

skipif mysql # not compatible
query II rowsort label-6110
SELECT COUNT ( * ) AS col0, 50 * - 6
----
1
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT - 91 * - + ( - ( 19 ) ) + - + 57 - COUNT( * ) * + + 67 - ( NULLIF ( 18, 77 + COUNT( DISTINCT + 84 + 9 ) ) )
----
-1871

skipif mysql # not compatible
query I rowsort label-6111
SELECT - 91 * - + ( - ( 19 ) ) + - + 57 - COUNT ( * ) * + + 67 - ( NULLIF ( 18, 77 + COUNT ( DISTINCT + 84 + 9 ) ) )
----
-1871

query I rowsort
SELECT 65 * 84 AS col2
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT DISTINCT - - COUNT( * ) * 96 + 4 + + ( - 58 ) * - 71 + - 20 AS col0
----
4198

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - - COUNT ( * ) * 96 + 4 + + ( - 58 ) * - 71 + - 20 AS col0
----
4198

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT + + MIN( + + 67 )
----
67

skipif mysql # not compatible
query I rowsort label-6114
SELECT + + MIN ( + + 67 )
----
67

query I rowsort
SELECT DISTINCT - 85 AS col2
----
-85

query I rowsort
SELECT ALL - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT 44 + 98 + - - 39 * + COUNT( * )
----
181

skipif mysql # not compatible
query I rowsort label-6117
SELECT 44 + 98 + - - 39 * + COUNT ( * )
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT + COUNT( * ) * - 23 - 1 + - 41 * - + 29 AS col0
----
1165

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT + COUNT ( * ) * - 23 - 1 + - 41 * - + 29 AS col0
----
1165

query I rowsort
SELECT DISTINCT + 67 - - 36 + + 89 * 12 * + 60 AS col2
----
64183

query I rowsort
SELECT DISTINCT - 65 AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT ALL - + COUNT( - - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-6121
SELECT ALL - + COUNT ( - - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6122
SELECT DISTINCT - + SUM( - 45 ) * - 22 AS col0, 75 + + 10 AS col0
----
-990
85

skipif mysql # not compatible
query II rowsort label-6122
SELECT DISTINCT - + SUM ( - 45 ) * - 22 AS col0, 75 + + 10 AS col0
----
-990
85

query I rowsort
SELECT DISTINCT - 42 AS col1
----
-42

query I rowsort
SELECT + 24 * - 36
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + 64 + + ( + - MIN( - + 24 ) )
----
88

skipif mysql # not compatible
query I rowsort label-6125
SELECT + 64 + + ( + - MIN ( - + 24 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + COUNT( * ) + + + 62 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-6126
SELECT + COUNT ( * ) + + + 62 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6127
SELECT ALL - - 6 * COALESCE ( + 24, 75 * 87 + - COALESCE ( CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) * + 60, 63 * - 66 ), - 7 DIV + 64 ) + 21 AS col1
----
165

skipif mysql # not compatible
query I rowsort label-6127
SELECT ALL - - 6 * COALESCE ( + 24, 75 * 87 + - COALESCE ( CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) * + 60, 63 * - 66 ), - 7 / + 64 ) + 21 AS col1
----
165

query I rowsort
SELECT ALL - + 7 AS col2
----
-7

query I rowsort
SELECT + - 62 AS col0
----
-62

query I rowsort
SELECT + 47 + + ( - - NULLIF ( - 52, + 74 + - 32 ) ) - 12 AS col0
----
-17

query I rowsort
SELECT - + 93 * 38 AS col1
----
-3534

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT + COUNT( + 98 ) * - 26 + - 92 AS col1
----
-118

skipif mysql # not compatible
query I rowsort label-6132
SELECT + COUNT ( + 98 ) * - 26 + - 92 AS col1
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6133
SELECT ALL + - CAST( NULL AS SIGNED ), - 17 AS col2
----
NULL
-17

skipif mysql # not compatible
query II rowsort label-6133
SELECT ALL + - CAST ( NULL AS INTEGER ), - 17 AS col2
----
NULL
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6134
SELECT - COUNT( * ) + NULLIF ( + 69, MAX( DISTINCT + 22 ) )
----
68

skipif mysql # not compatible
query I rowsort label-6134
SELECT - COUNT ( * ) + NULLIF ( + 69, MAX ( DISTINCT + 22 ) )
----
68

query II rowsort
SELECT ALL 16 AS col1, + 10 AS col2
----
16
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT - COUNT( * ) + - 20 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6136
SELECT - COUNT ( * ) + - 20 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT DISTINCT MAX( ALL 48 )
----
48

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT MAX ( ALL 48 )
----
48

query I rowsort
SELECT ALL NULLIF ( - 91, + + 49 )
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6139
SELECT ALL + 27 + 9 AS col0, + CAST( - 3 AS SIGNED )
----
36
-3

skipif mysql # not compatible
query II rowsort label-6139
SELECT ALL + 27 + 9 AS col0, + CAST ( - 3 AS INTEGER )
----
36
-3

query I rowsort
SELECT DISTINCT NULLIF ( 82, - - 39 ) AS col2
----
82

query I rowsort
SELECT ALL NULLIF ( 74, + + 12 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT - MAX( ALL 38 ) * - 88
----
3344

skipif mysql # not compatible
query I rowsort label-6142
SELECT - MAX ( ALL 38 ) * - 88
----
3344

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT ALL 94 DIV - 20
----
-4

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL 94 / - 20
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - 58 * + + COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6144
SELECT - 58 * + + COUNT ( * )
----
-58

query I rowsort
SELECT + 64 + - - 60 + - 92
----
32

query I rowsort
SELECT + 28 * 89 * 35 AS col1
----
87220

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - CASE + 99 WHEN + - COUNT( * ) THEN - - COUNT( * ) + COUNT( * ) ELSE - 0 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6147
SELECT - CASE + 99 WHEN + - COUNT ( * ) THEN - - COUNT ( * ) + COUNT ( * ) ELSE - 0 END AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT - 92 - + 27, COUNT( * ) AS col1
----
-119
1

skipif mysql # not compatible
query II rowsort label-6148
SELECT - 92 - + 27, COUNT ( * ) AS col1
----
-119
1

query I rowsort
SELECT + 98 * + - 64 * + 88
----
-551936

query I rowsort
SELECT + 16 + - 54 + + 87 AS col0
----
49

query I rowsort
SELECT ALL 86 col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT NULLIF ( - 23, 78 * + ( + CASE + 84 WHEN + 44 * 63 / - + COUNT( 3 ) + 79 THEN + 13 * - COUNT( * ) END ) ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-6152
SELECT NULLIF ( - 23, 78 * + ( + CASE + 84 WHEN + 44 * 63 / - + COUNT ( 3 ) + 79 THEN + 13 * - COUNT ( * ) END ) ) AS col2
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-6153
SELECT - - 9 DIV - 58
----
0

skipif mysql # not compatible
query I rowsort label-6153
SELECT - - 9 / - 58
----
0

query I rowsort
SELECT + COALESCE ( - 77, - 38 ) * - 95
----
7315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6155
SELECT - CASE 80 WHEN - MIN( ALL + 72 ) + MAX( - 59 ) * + 19 + CAST( NULL AS SIGNED ) + 79 THEN - ( 75 ) END * 89 + + 38 * COALESCE ( 33 + - CAST( 36 AS SIGNED ) * - 18, 51 + + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6155
SELECT - CASE 80 WHEN - MIN ( ALL + 72 ) + MAX ( - 59 ) * + 19 + CAST ( NULL AS INTEGER ) + 79 THEN - ( 75 ) END * 89 + + 38 * COALESCE ( 33 + - CAST ( 36 AS INTEGER ) * - 18, 51 + + COUNT ( * ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + - 29
----
-29

query I rowsort
SELECT + - 59 AS col0
----
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT + MIN( + + CAST( NULL AS SIGNED ) ) - + - CAST( + COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT + MIN ( + + CAST ( NULL AS INTEGER ) ) - + - CAST ( + COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL + + 84 * - COUNT( * ) col0
----
-84

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL + + 84 * - COUNT ( * ) col0
----
-84

query II rowsort
SELECT + + 32 * - - 17, - 34 AS col1
----
544
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT ALL + 26 DIV + 93
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL + 26 / + 93
----
0

query I rowsort
SELECT ALL + - 56 AS col1
----
-56

query I rowsort
SELECT DISTINCT + 93 * 30 AS col1
----
2790

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT - + 82 DIV 67
----
-1

skipif mysql # not compatible
query I rowsort label-6164
SELECT - + 82 / 67
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL + COUNT( + + 27 ) * + - 37 + + - 88 + + - ( + 51 ) * - 35 + - COUNT( * ) + - 95
----
1564

skipif mysql # not compatible
query I rowsort label-6165
SELECT ALL + COUNT ( + + 27 ) * + - 37 + + - 88 + + - ( + 51 ) * - 35 + - COUNT ( * ) + - 95
----
1564

onlyif mysql # aggregate syntax: 
query II rowsort label-6166
SELECT + 48 * + 4 AS col2, + COUNT( * ) * - + COUNT( * ) * + 81 + COUNT( * )
----
192
-80

skipif mysql # not compatible
query II rowsort label-6166
SELECT + 48 * + 4 AS col2, + COUNT ( * ) * - + COUNT ( * ) * + 81 + COUNT ( * )
----
192
-80

query I rowsort
SELECT - - 8 - 59 - + 98 * 35
----
-3481

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT + SUM( DISTINCT - 59 ) AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-6168
SELECT + SUM ( DISTINCT - 59 ) AS col0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6169
SELECT + 75 DIV COALESCE ( - 30, + + COUNT( * ) * + 35 * 33 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-6169
SELECT + 75 / COALESCE ( - 30, + + COUNT ( * ) * + 35 * 33 ) AS col0
----
-2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6170
SELECT ALL + 11 DIV + 66 + + 15 * + 68, CASE + CASE + + COALESCE ( + CAST( + - 91 AS SIGNED ), 34 + - 27, 8 ) WHEN + 36 * - 44 THEN NULL ELSE - 73 END WHEN 8 + 60 * 34 THEN NULL ELSE + 29 + + 3 END * - 39 AS col1
----
1020
-1248

skipif mysql # not compatible
query II rowsort label-6170
SELECT ALL + 11 / + 66 + + 15 * + 68, CASE + CASE + + COALESCE ( + CAST ( + - 91 AS INTEGER ), 34 + - 27, 8 ) WHEN + 36 * - 44 THEN NULL ELSE - 73 END WHEN 8 + 60 * 34 THEN NULL ELSE + 29 + + 3 END * - 39 AS col1
----
1020
-1248

query I rowsort
SELECT + - 7 AS col2
----
-7

query I rowsort
SELECT ALL + + 37
----
37

query I rowsort
SELECT DISTINCT + 28 AS col1
----
28

query II rowsort
SELECT DISTINCT + 29 AS col2, 34
----
29
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT - 95 * - COALESCE ( + 27, - + CASE + 66 WHEN + + 57 + - - 41 * + + CASE + 76 WHEN + 24 THEN NULL WHEN - 71 THEN 69 END THEN SUM( DISTINCT 38 ) WHEN + 17 THEN NULL ELSE NULLIF ( 64, 46 ) - 38 END )
----
2565

skipif mysql # not compatible
query I rowsort label-6175
SELECT - 95 * - COALESCE ( + 27, - + CASE + 66 WHEN + + 57 + - - 41 * + + CASE + 76 WHEN + 24 THEN NULL WHEN - 71 THEN 69 END THEN SUM ( DISTINCT 38 ) WHEN + 17 THEN NULL ELSE NULLIF ( 64, 46 ) - 38 END )
----
2565

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT 59 * - + COUNT( * ) + 7 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-6176
SELECT 59 * - + COUNT ( * ) + 7 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT ALL - 86 * - COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-6177
SELECT ALL - 86 * - COUNT ( * )
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + - 75 + - 80 + - + 85 / - 81 * - + 30 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + - 75 + - 80 + - + 85 / - 81 * - + 30 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT DISTINCT + COUNT( - + 30 ) * - - SUM( - 24 )
----
-24

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT + COUNT ( - + 30 ) * - - SUM ( - 24 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - 65 * - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6180
SELECT - 65 * - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT - CASE + 46 WHEN - COUNT( * ) THEN - 39 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT - CASE + 46 WHEN - COUNT ( * ) THEN - 39 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT ALL - MIN( DISTINCT - 42 ) + - 99
----
-57

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL - MIN ( DISTINCT - 42 ) + - 99
----
-57

query I rowsort
SELECT - 52 - - ( - - 3 )
----
-49

query I rowsort
SELECT ALL NULLIF ( - ( - 80 ), + 62 * + ( 63 ) ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT DISTINCT - COUNT( * ) + + 66 col1
----
65

skipif mysql # not compatible
query I rowsort label-6185
SELECT DISTINCT - COUNT ( * ) + + 66 col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT - MAX( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-6186
SELECT - MAX ( - 47 )
----
47

query I rowsort
SELECT DISTINCT ( - - 40 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6188
SELECT ALL - 96 + CASE + ( + 30 ) WHEN 98 / + 99 * + + 65 + - 96 THEN + COUNT( * ) + - 49 * 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 96 + CASE + ( + 30 ) WHEN 98 / + 99 * + + 65 + - 96 THEN + COUNT ( * ) + - 49 * 50 END
----
NULL

query I rowsort
SELECT DISTINCT ( + NULLIF ( - - 71, 61 ) ) AS col1
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-6190
SELECT - 93 + + 14 DIV + 60 AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-6190
SELECT - 93 + + 14 / + 60 AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT + SUM( + 97 ) - - 46
----
143

skipif mysql # not compatible
query I rowsort label-6191
SELECT + SUM ( + 97 ) - - 46
----
143

onlyif mysql # DIV for integer division: 
query I rowsort label-6192
SELECT ALL + 24 DIV 55 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + 24 / 55 AS col1
----
0

query I rowsort
SELECT - 69 + 95 AS col2
----
26

query I rowsort
SELECT + 75 - + 83
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT + COUNT( * ) DIV + + 9 * - 67 * 37
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + COUNT ( * ) / + + 9 * - 67 * 37
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6196
SELECT DISTINCT 33 col1, ( 24 ) * COUNT( * ) * + 81
----
33
1944

skipif mysql # not compatible
query II rowsort label-6196
SELECT DISTINCT 33 col1, ( 24 ) * COUNT ( * ) * + 81
----
33
1944

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6197
SELECT - 63 DIV - COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 63 / - COUNT ( * ) AS col0
----
63

query I rowsort
SELECT + ( - 32 ) * + 77 AS col2
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6199
SELECT ALL 73 * + NULLIF ( 74, + CAST( NULL AS DECIMAL ) + - 9 ) - + - SUM( DISTINCT + 44 ) AS col0
----
5446

skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL 73 * + NULLIF ( 74, + CAST ( NULL AS REAL ) + - 9 ) - + - SUM ( DISTINCT + 44 ) AS col0
----
5446

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - + MIN( + 63 ) + - 16 * + NULLIF ( - + COUNT( * ), - - 11 - ( 43 ) - - 31 ) + - - 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT - + MIN ( + 63 ) + - 16 * + NULLIF ( - + COUNT ( * ), - - 11 - ( 43 ) - - 31 ) + - - 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT ALL MIN( + 41 )
----
41

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL MIN ( + 41 )
----
41

query I rowsort
SELECT DISTINCT 87 AS col2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6203
SELECT + - 78 + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT + - 78 + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL NULLIF ( - ( + 93 ), + 69 + - ( + 75 ) - + + 72 * 87 )
----
-93

query I rowsort
SELECT ALL + - 35 AS col1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT ALL + - SUM( ALL + 20 ) * + 60 - 45 AS col1
----
-1245

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL + - SUM ( ALL + 20 ) * + 60 - 45 AS col1
----
-1245

query I rowsort
SELECT + 79 * - - 36
----
2844

query I rowsort
SELECT - 19 + 94
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT - CASE + 10 WHEN - + 75 * + CASE 84 WHEN + + 48 THEN 53 WHEN + 91 + 74 THEN NULL ELSE - + 65 END THEN NULL WHEN + 69 * - 77 THEN + MIN( DISTINCT 82 ) ELSE 8 + + 60 END * - COUNT( * ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - CASE + 10 WHEN - + 75 * + CASE 84 WHEN + + 48 THEN 53 WHEN + 91 + 74 THEN NULL ELSE - + 65 END THEN NULL WHEN + 69 * - 77 THEN + MIN ( DISTINCT 82 ) ELSE 8 + + 60 END * - COUNT ( * ) AS col1
----
68

query I rowsort
SELECT ALL + - 62
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT + 44 * 74 + - - 7 - + 18 DIV + - 59 + - + 17 * - - 32 - - + 97 AS col0
----
2816

skipif mysql # not compatible
query I rowsort label-6211
SELECT + 44 * 74 + - - 7 - + 18 / + - 59 + - + 17 * - - 32 - - + 97 AS col0
----
2816

onlyif mysql # aggregate syntax: 
query I rowsort label-6212
SELECT - COUNT( + - 63 )
----
-1

skipif mysql # not compatible
query I rowsort label-6212
SELECT - COUNT ( + - 63 )
----
-1

query I rowsort
SELECT - 46 * 29
----
-1334

query I rowsort
SELECT 43 * + 53
----
2279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6215
SELECT - CASE CASE 74 WHEN + 34 + 85 * + + 46 + - + ( CASE - - 73 WHEN + COUNT( * ) THEN + COUNT( * ) ELSE + 17 END ) THEN NULL WHEN + 75 * 97 + - COALESCE ( 92 + 26 * - CASE WHEN NOT NULL IS NULL THEN + 51 ELSE NULL END, - 21 - - 40 / - COALESCE ( - 10 * - 23 + 90, - 78 ) ) THEN 56 END WHEN CAST( 47 AS SIGNED ) / - 71 THEN - 15 + - NULLIF ( 34 + - 63, MIN( ALL - 59 ) ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6215
SELECT - CASE CASE 74 WHEN + 34 + 85 * + + 46 + - + ( CASE - - 73 WHEN + COUNT ( * ) THEN + COUNT ( * ) ELSE + 17 END ) THEN NULL WHEN + 75 * 97 + - COALESCE ( 92 + 26 * - CASE WHEN NOT NULL IS NULL THEN + 51 ELSE NULL END, - 21 - - 40 / - COALESCE ( - 10 * - 23 + 90, - 78 ) ) THEN 56 END WHEN CAST ( 47 AS INTEGER ) / - 71 THEN - 15 + - NULLIF ( 34 + - 63, MIN ( ALL - 59 ) ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 68 + - 14 - + 34 AS col0
----
20

query I rowsort
SELECT DISTINCT 47 + 86 + + + ( - 44 ) AS col0
----
89

query I rowsort
SELECT ALL - + 26 col0
----
-26

query I rowsort
SELECT ALL 65 + - 96 * - 87 AS col2
----
8417

query I rowsort
SELECT DISTINCT - 21 + + 63 AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6221
SELECT ALL COUNT( * ) * - + 1 DIV 8
----
0

skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL COUNT ( * ) * - + 1 / 8
----
0

query I rowsort
SELECT 15 + - 54 AS col1
----
-39

query II rowsort
SELECT + 94 AS col1, 83 - - - 55 col0
----
94
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6224
SELECT ALL ( + 59 ) + - - ( - - ( + + 77 ) ) - - - COUNT( * ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-6224
SELECT ALL ( + 59 ) + - - ( - - ( + + 77 ) ) - - - COUNT ( * ) AS col2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT + ( - CASE + - NULLIF ( + 91, + 25 ) WHEN - 54 THEN - 58 + - 79 ELSE NULL END ) * + 35 * - 56 + - ( - COUNT( * ) ) + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6225
SELECT + ( - CASE + - NULLIF ( + 91, + 25 ) WHEN - 54 THEN - 58 + - 79 ELSE NULL END ) * + 35 * - 56 + - ( - COUNT ( * ) ) + 86
----
NULL

query I rowsort
SELECT 31 * + - 22 * - + 12
----
8184

query II rowsort
SELECT DISTINCT 56, 30 + + - 18 col1
----
56
12

query I rowsort
SELECT ALL 35 + 21 + + + 73 AS col0
----
129

query I rowsort
SELECT DISTINCT 11 AS col1
----
11

query I rowsort
SELECT DISTINCT 70 - - - ( - - 29 ) + - 45 AS col0
----
-4

query II rowsort
SELECT 40 + - 30, ( 45 ) AS col1
----
10
45

query II rowsort
SELECT ALL 19 AS col1, - 17 + - 30
----
19
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6233
SELECT 21 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6233
SELECT 21 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 28 AS col1, 40
----
28
40

query II rowsort
SELECT DISTINCT - 47 - 42 AS col1, + 55 col1
----
-89
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT - COALESCE ( - + 42, COUNT( * ) ) + MAX( DISTINCT - + 8 ) + - + 85
----
-51

skipif mysql # not compatible
query I rowsort label-6236
SELECT - COALESCE ( - + 42, COUNT ( * ) ) + MAX ( DISTINCT - + 8 ) + - + 85
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6237
SELECT DISTINCT + - 75 * + + 53 + COUNT( * ) - + 5 + + ( 76 ), 67 AS col1
----
-3903
67

skipif mysql # not compatible
query II rowsort label-6237
SELECT DISTINCT + - 75 * + + 53 + COUNT ( * ) - + 5 + + ( 76 ), 67 AS col1
----
-3903
67

query I rowsort
SELECT ALL ( - 18 ) AS col2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT 58 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6239
SELECT 58 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6240
SELECT ALL MAX( + 80 ) col2
----
80

skipif mysql # not compatible
query I rowsort label-6240
SELECT ALL MAX ( + 80 ) col2
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6241
SELECT + NULLIF ( 72, - - 55 * + CASE - - COUNT( * ) WHEN - CASE ( - - CAST( + + COUNT( 48 ) AS SIGNED ) ) WHEN - COUNT( * ) * 70 - ( - 81 + MIN( 24 ) ) * - 97 THEN + 80 END THEN 59 ELSE + 27 END + MAX( - 26 + + 28 * 71 ) ) * - 39 AS col1
----
-2808

skipif mysql # not compatible
query I rowsort label-6241
SELECT + NULLIF ( 72, - - 55 * + CASE - - COUNT ( * ) WHEN - CASE ( - - CAST ( + + COUNT ( 48 ) AS INTEGER ) ) WHEN - COUNT ( * ) * 70 - ( - 81 + MIN ( 24 ) ) * - 97 THEN + 80 END THEN 59 ELSE + 27 END + MAX ( - 26 + + 28 * 71 ) ) * - 39 AS col1
----
-2808

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT + 86 + CASE + 58 WHEN + 13 * SUM( 15 ) + - SUM( - - 60 ) + - - 27 + - MIN( DISTINCT + - 96 ) THEN 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT + 86 + CASE + 58 WHEN + 13 * SUM ( 15 ) + - SUM ( - - 60 ) + - - 27 + - MIN ( DISTINCT + - 96 ) THEN 61 ELSE NULL END
----
NULL

query III rowsort
SELECT + 50 col1, - 16 AS col1, 34 AS col0
----
50
-16
34

query I rowsort
SELECT + 0 + 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT ALL - + COUNT( * ) + - 45 AS col0
----
-46

skipif mysql # not compatible
query I rowsort label-6245
SELECT ALL - + COUNT ( * ) + - 45 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT + NULLIF ( - 15, COUNT( * ) + + 25 ) col2
----
-15

skipif mysql # not compatible
query I rowsort label-6246
SELECT + NULLIF ( - 15, COUNT ( * ) + + 25 ) col2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6247
SELECT DISTINCT - + 58 + - CAST( NULL AS SIGNED ) + - + 0 * + + COUNT( ALL + 46 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - + 58 + - CAST ( NULL AS INTEGER ) + - + 0 * + + COUNT ( ALL + 46 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6248
SELECT CASE - 6 WHEN - COUNT( * ) THEN NULL WHEN + + COUNT( * ) DIV + 87 + - ( 63 ) THEN 40 ELSE NULL END - 95 col2, 14 DIV - 76 * + 84
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6248
SELECT CASE - 6 WHEN - COUNT ( * ) THEN NULL WHEN + + COUNT ( * ) / + 87 + - ( 63 ) THEN 40 ELSE NULL END - 95 col2, 14 / - 76 * + 84
----
NULL
0

query I rowsort
SELECT DISTINCT + 41 + 73 * 85 * - - 37
----
229626

query I rowsort
SELECT ALL - 83 + 11 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT ALL - MIN( - + ( - 5 ) )
----
-5

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL - MIN ( - + ( - 5 ) )
----
-5

query I rowsort
SELECT 37 * - + 50 AS col0
----
-1850

query I rowsort
SELECT ALL 19 + - + 19
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6254
SELECT DISTINCT + 92 * - 34 * - 10 + - COUNT( * ), + 1 col0
----
31279
1

skipif mysql # not compatible
query II rowsort label-6254
SELECT DISTINCT + 92 * - 34 * - 10 + - COUNT ( * ), + 1 col0
----
31279
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL - 34 + + 22 + + - COUNT( * ) * - COUNT( * ) + + + 30 - + + 55 + ( - 3 )
----
-39

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL - 34 + + 22 + + - COUNT ( * ) * - COUNT ( * ) + + + 30 - + + 55 + ( - 3 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6256
SELECT + COALESCE ( - 17, + 80 * + - 69 - - - 37 * - 69 * - 49, + + 80 DIV - 16 * - COUNT( * ) + + SUM( DISTINCT + ( 83 ) ) + - CASE + 56 WHEN SUM( + 87 ) THEN 83 WHEN 15 THEN - 73 * - COALESCE ( 28 * - 38, 90 ) ELSE - 4 END * COUNT( * ) ) AS col0
----
-17

skipif mysql # not compatible
query I rowsort label-6256
SELECT + COALESCE ( - 17, + 80 * + - 69 - - - 37 * - 69 * - 49, + + 80 / - 16 * - COUNT ( * ) + + SUM ( DISTINCT + ( 83 ) ) + - CASE + 56 WHEN SUM ( + 87 ) THEN 83 WHEN 15 THEN - 73 * - COALESCE ( 28 * - 38, 90 ) ELSE - 4 END * COUNT ( * ) ) AS col0
----
-17

query I rowsort
SELECT 22 * + 82 - - + 19 + ( - + 13 ) AS col0
----
1810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6258
SELECT ALL - 42 + + 61 + 43 + 63 + - - CAST( NULL AS SIGNED ) * - + ( + 88 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - 42 + + 61 + 43 + 63 + - - CAST ( NULL AS INTEGER ) * - + ( + 88 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT ALL 71 + + - 71 / - 74 + + + AVG ( ALL + 78 ) - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL 71 + + - 71 / - 74 + + + AVG ( ALL + 78 ) - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6260
SELECT DISTINCT ( + 3 ) + + 59 + 9 + - 0 + + + NULLIF ( - 30, - - ( - MAX( ALL - 39 ) ) * - 94 + + - CAST( - 77 AS SIGNED ) + 25 * ( 45 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT ( + 3 ) + + 59 + 9 + - 0 + + + NULLIF ( - 30, - - ( - MAX ( ALL - 39 ) ) * - 94 + + - CAST ( - 77 AS INTEGER ) + 25 * ( 45 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6261
SELECT DISTINCT CAST( - + 0 AS SIGNED ) * NULLIF ( - ( 58 ), - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT CAST ( - + 0 AS INTEGER ) * NULLIF ( - ( 58 ), - 15 )
----
0

query II rowsort
SELECT ALL 35 - - - 85 AS col0, ( + 6 )
----
-50
6

query I rowsort
SELECT DISTINCT - 92 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6264
SELECT ALL 17 - - 70 * + - 87 + CAST( NULL AS DECIMAL ) + + 62 + + 31 - - + COUNT( * ) + + - 99 * - 61 * - 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL 17 - - 70 * + - 87 + CAST ( NULL AS REAL ) + + 62 + + 31 - - + COUNT ( * ) + + - 99 * - 61 * - 58 AS col1
----
NULL

query I rowsort
SELECT 31 * 69
----
2139

query II rowsort
SELECT DISTINCT 29 * 31, + 10 * 55 col1
----
899
550

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ALL 64 * + NULLIF ( + + COUNT( * ), - COUNT( DISTINCT + 60 ) * - 53 + - + 61 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-6267
SELECT ALL 64 * + NULLIF ( + + COUNT ( * ), - COUNT ( DISTINCT + 60 ) * - 53 + - + 61 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT 14 + + ( - CASE - 24 WHEN + + COUNT( * ) THEN + + 29 + + - 5 WHEN + 45 * + + 60 THEN NULL END ) + 20 * + 27 + - 8 * + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT 14 + + ( - CASE - 24 WHEN + + COUNT ( * ) THEN + + 29 + + - 5 WHEN + 45 * + + 60 THEN NULL END ) + 20 * + 27 + - 8 * + 83
----
NULL

query I rowsort
SELECT 66 * + - 55 AS col1
----
-3630

onlyif mysql # DIV for integer division: 
query I rowsort label-6270
SELECT ALL - 61 DIV - 97 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - 61 / - 97 AS col2
----
0

query I rowsort
SELECT DISTINCT 31 col1
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-6272
SELECT 26 + - - 50 AS col0, - COUNT( * )
----
76
-1

skipif mysql # not compatible
query II rowsort label-6272
SELECT 26 + - - 50 AS col0, - COUNT ( * )
----
76
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6273
SELECT - 92 + 72 DIV + COUNT( * ) - - + ( 0 )
----
-20

skipif mysql # not compatible
query I rowsort label-6273
SELECT - 92 + 72 / + COUNT ( * ) - - + ( 0 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT - + 53 * + COUNT( * ) * + + 17 * + + COUNT( * ) * 53 AS col2
----
-47753

skipif mysql # not compatible
query I rowsort label-6274
SELECT - + 53 * + COUNT ( * ) * + + 17 * + + COUNT ( * ) * 53 AS col2
----
-47753

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT DISTINCT + COUNT( * ) + + 56 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-6275
SELECT DISTINCT + COUNT ( * ) + + 56 AS col2
----
57

query I rowsort
SELECT - + 80 col1
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-6277
SELECT - COUNT( 42 ) AS col0, - NULLIF ( - - 91, 43 ) * 87 + 65 AS col0
----
-1
-7852

skipif mysql # not compatible
query II rowsort label-6277
SELECT - COUNT ( 42 ) AS col0, - NULLIF ( - - 91, 43 ) * 87 + 65 AS col0
----
-1
-7852

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6278
SELECT ALL 97 * 47 + + - 45 col0, CAST( 19 AS SIGNED ) * + 65 AS col1
----
4514
1235

skipif mysql # not compatible
query II rowsort label-6278
SELECT ALL 97 * 47 + + - 45 col0, CAST ( 19 AS INTEGER ) * + 65 AS col1
----
4514
1235

query I rowsort
SELECT DISTINCT 6 + 83 * + - ( 39 )
----
-3231

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6280
SELECT DISTINCT - - NULLIF ( - 37, 31 * - 28 ) + + 46 + - - CAST( + NULLIF ( - 81, CAST( NULL AS DECIMAL ) ) AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6280
SELECT DISTINCT - - NULLIF ( - 37, 31 * - 28 ) + + 46 + - - CAST ( + NULLIF ( - 81, CAST ( NULL AS REAL ) ) AS INTEGER ) AS col0
----
-72

query I rowsort
SELECT - ( + + 26 ) + + - 27
----
-53

query I rowsort
SELECT ALL - - 6 + 25
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT - NULLIF ( + - 2, - COUNT( * ) + 31 )
----
2

skipif mysql # not compatible
query I rowsort label-6283
SELECT - NULLIF ( + - 2, - COUNT ( * ) + 31 )
----
2

query I rowsort
SELECT ALL - 2 * 14 + - + 22
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL + 66 * + 88 + - MIN( ALL - 38 ) + - 68 + + 28 + + MAX( DISTINCT - ( + 85 ) ) + - ( - 86 ) * - 77
----
-901

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL + 66 * + 88 + - MIN ( ALL - 38 ) + - 68 + + 28 + + MAX ( DISTINCT - ( + 85 ) ) + - ( - 86 ) * - 77
----
-901

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT 82 * + + ( + MAX( ALL + 72 ) ) + - + 6 + - + 54 + 85 * + - 42 * 97 + - + COUNT( * )
----
-340447

skipif mysql # not compatible
query I rowsort label-6286
SELECT 82 * + + ( + MAX ( ALL + 72 ) ) + - + 6 + - + 54 + 85 * + - 42 * 97 + - + COUNT ( * )
----
-340447

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6287
SELECT - - 77 DIV - 14 AS col0, + CAST( NULL AS SIGNED )
----
-5
NULL

skipif mysql # not compatible
query II rowsort label-6287
SELECT - - 77 / - 14 AS col0, + CAST ( NULL AS INTEGER )
----
-5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6288
SELECT + + CAST( NULL AS SIGNED ) / - 26 + - CASE - 64 WHEN - COUNT( * ) THEN 43 ELSE - SUM( + 88 ) * - + 11 END * + 77 + - 76 + + AVG ( DISTINCT + 15 ) + - NULLIF ( NULLIF ( 5, 84 ), 38 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6288
SELECT + + CAST ( NULL AS INTEGER ) / - 26 + - CASE - 64 WHEN - COUNT ( * ) THEN 43 ELSE - SUM ( + 88 ) * - + 11 END * + 77 + - 76 + + AVG ( DISTINCT + 15 ) + - NULLIF ( NULLIF ( 5, 84 ), 38 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT - COUNT( * ) * + 7 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-6289
SELECT - COUNT ( * ) * + 7 AS col2
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-6290
SELECT ALL - 37 DIV 74
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT ALL - 37 / 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL - COUNT( * ) * 42
----
-42

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL - COUNT ( * ) * 42
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6292
SELECT - 53 + - - COALESCE ( - 56, CAST( AVG ( DISTINCT 95 ) AS SIGNED ) )
----
-109

skipif mysql # not compatible
query I rowsort label-6292
SELECT - 53 + - - COALESCE ( - 56, CAST ( AVG ( DISTINCT 95 ) AS INTEGER ) )
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL 47 * + + ( - 71 ) * - 88 - - COUNT( * ) AS col0
----
293657

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL 47 * + + ( - 71 ) * - 88 - - COUNT ( * ) AS col0
----
293657

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT ALL CAST( NULL AS SIGNED ) * - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT ALL CAST ( NULL AS INTEGER ) * - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT ALL - COUNT( * ) * + + 43 - - 6 col1
----
-37

skipif mysql # not compatible
query I rowsort label-6295
SELECT ALL - COUNT ( * ) * + + 43 - - 6 col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL + COUNT( - 36 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + COUNT ( - 36 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT DISTINCT + COUNT( ALL + 49 ) * - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-6297
SELECT DISTINCT + COUNT ( ALL + 49 ) * - 33 AS col2
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6298
SELECT ALL + 95, + CAST( SUM( - CAST( NULL AS SIGNED ) ) AS DECIMAL ) col2
----
95
NULL

skipif mysql # not compatible
query II rowsort label-6298
SELECT ALL + 95, + CAST ( SUM ( - CAST ( NULL AS INTEGER ) ) AS REAL ) col2
----
95
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT - 84 * 45 * - 27 + + - COUNT( 80 )
----
102059

skipif mysql # not compatible
query I rowsort label-6299
SELECT - 84 * 45 * - 27 + + - COUNT ( 80 )
----
102059

onlyif mysql # aggregate syntax: 
query II rowsort label-6300
SELECT DISTINCT + CASE + COUNT( * ) WHEN - - ( - 43 ) * + 70 THEN NULL WHEN + 78 THEN NULL ELSE ( + 57 ) + - 5 END, + 38 AS col2
----
52
38

skipif mysql # not compatible
query II rowsort label-6300
SELECT DISTINCT + CASE + COUNT ( * ) WHEN - - ( - 43 ) * + 70 THEN NULL WHEN + 78 THEN NULL ELSE ( + 57 ) + - 5 END, + 38 AS col2
----
52
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6301
SELECT COUNT( DISTINCT 40 ) * CAST( - + 79 AS SIGNED ) - + 97 + - COUNT( * ) + + COUNT( + 29 ), 12 * - COUNT( * ) col2
----
-176
-12

skipif mysql # not compatible
query II rowsort label-6301
SELECT COUNT ( DISTINCT 40 ) * CAST ( - + 79 AS INTEGER ) - + 97 + - COUNT ( * ) + + COUNT ( + 29 ), 12 * - COUNT ( * ) col2
----
-176
-12

query II rowsort
SELECT ALL + 85 AS col0, + 71 AS col1
----
85
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - 46 * + MIN( + + 3 ) AS col0
----
-138

skipif mysql # not compatible
query I rowsort label-6303
SELECT - 46 * + MIN ( + + 3 ) AS col0
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( * ) * ( - - 68 ) + - 37 * 50 AS col0
----
-1782

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( * ) * ( - - 68 ) + - 37 * 50 AS col0
----
-1782

query I rowsort
SELECT + 69 * 36
----
2484

query I rowsort
SELECT ALL + ( - ( + - 21 ) )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + COUNT( * ) + - 98 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6307
SELECT + COUNT ( * ) + - 98 AS col1
----
-97

query I rowsort
SELECT ALL ( 57 ) AS col0
----
57

query I rowsort
SELECT ALL 10 * - - 82 col1
----
820

query I rowsort
SELECT + 16 + - 50
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-6311
SELECT + 33 DIV 16 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6311
SELECT + 33 / 16 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6312
SELECT DISTINCT 39 DIV + 53 * + CAST( 87 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT 39 / + 53 * + CAST ( 87 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT ALL MAX( - 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-6313
SELECT ALL MAX ( - 90 ) AS col2
----
-90

query I rowsort
SELECT ALL + 10 + 61 * 63 + + + 45
----
3898

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6315
SELECT + 85 / - CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) * + 11 * - - 41 + - 91
----
NULL

skipif mysql # not compatible
query I rowsort label-6315
SELECT + 85 / - CAST ( + CAST ( NULL AS REAL ) AS REAL ) * + 11 * - - 41 + - 91
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - + COUNT( 96 )
----
-1

skipif mysql # not compatible
query I rowsort label-6316
SELECT - + COUNT ( 96 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + + 24 + - CASE + + CASE - 61 WHEN + - 57 THEN - + COUNT( * ) WHEN + 92 / - COUNT( * ) + + 39 THEN NULL ELSE - - 42 + - - 51 END WHEN - 44 + + 81 + 37 / - COUNT( * ) THEN + 50 - - 67 * COUNT( * ) END * 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT + + 24 + - CASE + + CASE - 61 WHEN + - 57 THEN - + COUNT ( * ) WHEN + 92 / - COUNT ( * ) + + 39 THEN NULL ELSE - - 42 + - - 51 END WHEN - 44 + + 81 + 37 / - COUNT ( * ) THEN + 50 - - 67 * COUNT ( * ) END * 18
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6318
SELECT ALL NULLIF ( - ( + 78 ), + CASE + + CAST( - 89 AS SIGNED ) WHEN 37 + + - 14 THEN - - 31 WHEN 36 * + SUM( DISTINCT - 40 ) / 73 - COUNT( * ) THEN 4 * 33 + + 87 END ) * 1
----
-78

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL NULLIF ( - ( + 78 ), + CASE + + CAST ( - 89 AS INTEGER ) WHEN 37 + + - 14 THEN - - 31 WHEN 36 * + SUM ( DISTINCT - 40 ) / 73 - COUNT ( * ) THEN 4 * 33 + + 87 END ) * 1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT SUM( + 68 ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT SUM ( + 68 ) AS col2
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6320
SELECT - 73 + - + COUNT( - 59 ) + 28 + - MIN( DISTINCT + 10 ) + - - 17 / + NULLIF ( + CAST( NULL AS SIGNED ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6320
SELECT - 73 + - + COUNT ( - 59 ) + 28 + - MIN ( DISTINCT + 10 ) + - - 17 / + NULLIF ( + CAST ( NULL AS INTEGER ), + COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT ( - 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL MIN( DISTINCT + 8 ) * 36 + + + 32 - + - 12 + + MIN( ALL - 91 )
----
241

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL MIN ( DISTINCT + 8 ) * 36 + + + 32 - + - 12 + + MIN ( ALL - 91 )
----
241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6323
SELECT + - 47 + - CAST( + AVG ( ALL + ( - 25 ) ) AS SIGNED ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-6323
SELECT + - 47 + - CAST ( + AVG ( ALL + ( - 25 ) ) AS INTEGER ) col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6324
SELECT + 39 / + + CASE 28 WHEN - CAST( NULL AS SIGNED ) / ( + + 36 ) THEN + - CAST( + 46 AS DECIMAL ) - 47 - 20 * - 98 + 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT + 39 / + + CASE 28 WHEN - CAST ( NULL AS INTEGER ) / ( + + 36 ) THEN + - CAST ( + 46 AS REAL ) - 47 - 20 * - 98 + 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT ALL - 83 + + 5 + 78 * + COUNT( * ) + COUNT( * ) * + + CASE WHEN NULL > 74 THEN - + MAX( - 18 ) ELSE NULL END * + - 10 * + 51 + + 15 * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6325
SELECT ALL - 83 + + 5 + 78 * + COUNT ( * ) + COUNT ( * ) * + + CASE WHEN NULL > 74 THEN - + MAX ( - 18 ) ELSE NULL END * + - 10 * + 51 + + 15 * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6326
SELECT - CASE + + 71 WHEN - + 16 THEN NULL WHEN + COUNT( * ) THEN NULL WHEN - CAST( NULL AS SIGNED ) THEN + 55 / - - COUNT( * ) * + 5 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6326
SELECT - CASE + + 71 WHEN - + 16 THEN NULL WHEN + COUNT ( * ) THEN NULL WHEN - CAST ( NULL AS INTEGER ) THEN + 55 / - - COUNT ( * ) * + 5 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6327
SELECT ALL - ( 46 ) + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL - ( 46 ) + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - - 20 col1
----
20

query I rowsort
SELECT ALL ( + 46 )
----
46

query I rowsort
SELECT + + 28 - + + 32 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT - - ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6331
SELECT - - ( - - COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT - 84 + - 99 AS col0
----
-183

query I rowsort
SELECT DISTINCT 54 - + 84
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL - COUNT( * ) * + + 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - COUNT ( * ) * + + 12 AS col1
----
-12

query I rowsort
SELECT DISTINCT ( - 39 ) AS col2
----
-39

query I rowsort
SELECT DISTINCT - - 28 * 2
----
56

query I rowsort
SELECT ALL + + 81 AS col0
----
81

query I rowsort
SELECT + - 77 AS col1
----
-77

query II rowsort
SELECT ALL 18 * + 57 AS col0, 63
----
1026
63

query I rowsort
SELECT DISTINCT + ( + 82 )
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6341
SELECT DISTINCT 53 * CASE + + 2 WHEN 6 THEN - 93 * + + CAST( + 7 AS SIGNED ) END * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT 53 * CASE + + 2 WHEN 6 THEN - 93 * + + CAST ( + 7 AS INTEGER ) END * - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT - 82 * 21 AS col0, 51
----
-1722
51

query I rowsort
SELECT ( - 57 ) AS col0
----
-57

query II rowsort
SELECT - 88 * - - 47 col1, 89 AS col2
----
-4136
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT - 46 * - 47 * + COUNT( * )
----
2162

skipif mysql # not compatible
query I rowsort label-6345
SELECT - 46 * - 47 * + COUNT ( * )
----
2162

query I rowsort
SELECT - 22 * - 99 * 24
----
52272

query I rowsort
SELECT DISTINCT + 52 * 82 AS col1
----
4264

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT - COUNT( * ) * - 52
----
52

skipif mysql # not compatible
query I rowsort label-6348
SELECT - COUNT ( * ) * - 52
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-6349
SELECT + MIN( + + 20 ) AS col1, + ( + + 40 )
----
20
40

skipif mysql # not compatible
query II rowsort label-6349
SELECT + MIN ( + + 20 ) AS col1, + ( + + 40 )
----
20
40

query I rowsort
SELECT ALL + 94 * - 39 + - 7
----
-3673

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT NULLIF ( - + 91, - + COALESCE ( + SUM( ALL 23 ), - ( - NULLIF ( - 19, + + 6 ) ), 21 * 98 + - ( - ( + 9 ) ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-6351
SELECT NULLIF ( - + 91, - + COALESCE ( + SUM ( ALL 23 ), - ( - NULLIF ( - 19, + + 6 ) ), 21 * 98 + - ( - ( + 9 ) ) ) )
----
-91

query I rowsort
SELECT + 81 col0
----
81

query I rowsort
SELECT 86 * - 11
----
-946

query I rowsort
SELECT ALL - 48 + 26 AS col1
----
-22

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6355
SELECT - CASE + ( CASE 7 WHEN - + 29 * + + COUNT( * ) + + + 13 / - CAST( NULL AS DECIMAL ) THEN - + 34 END ) WHEN 93 * + 89 THEN + 87 - - 12 END + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-6355
SELECT - CASE + ( CASE 7 WHEN - + 29 * + + COUNT ( * ) + + + 13 / - CAST ( NULL AS REAL ) THEN - + 34 END ) WHEN 93 * + 89 THEN + 87 - - 12 END + 82
----
NULL

query I rowsort
SELECT DISTINCT - 25 AS col2
----
-25

query I rowsort
SELECT ALL ( - - 51 ) AS col2
----
51

query II rowsort
SELECT + 37 + - + 43 AS col2, + 90
----
-6
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT - SUM( ALL - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-6359
SELECT - SUM ( ALL - 39 )
----
39

query I rowsort
SELECT 35 - 79 - 36 AS col0
----
-80

query I rowsort
SELECT 81 + - + 54 * - + 40 AS col0
----
2241

onlyif mysql # aggregate syntax: 
query II rowsort label-6362
SELECT ALL 43 - 84 - 85 + + + 46 * + + 84 AS col2, - 65 + + MIN( - 26 ) + + 66 + + COUNT( * ) + + + 85
----
3738
61

skipif mysql # not compatible
query II rowsort label-6362
SELECT ALL 43 - 84 - 85 + + + 46 * + + 84 AS col2, - 65 + + MIN ( - 26 ) + + 66 + + COUNT ( * ) + + + 85
----
3738
61

query I rowsort
SELECT - ( + 70 ) * + 31
----
-2170

query I rowsort
SELECT - - 12 AS col0
----
12

query II rowsort
SELECT ALL 34 AS col2, + 11
----
34
11

query I rowsort
SELECT DISTINCT - 63 col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT - COUNT( * ) * + 44 + - 93 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6367
SELECT - COUNT ( * ) * + 44 + - 93 AS col2
----
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT 74 DIV - 47 + + - 38 * + 77
----
-2927

skipif mysql # not compatible
query I rowsort label-6368
SELECT 74 / - 47 + + - 38 * + 77
----
-2927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6369
SELECT 2 DIV + + 51 + + + 2, - 90 * - + CAST( NULL AS SIGNED ) + - + NULLIF ( - COUNT( * ), - CAST( NULL AS SIGNED ) ) + + 98 * 2 AS col1
----
2
NULL

skipif mysql # not compatible
query II rowsort label-6369
SELECT 2 / + + 51 + + + 2, - 90 * - + CAST ( NULL AS INTEGER ) + - + NULLIF ( - COUNT ( * ), - CAST ( NULL AS INTEGER ) ) + + 98 * 2 AS col1
----
2
NULL

query I rowsort
SELECT ALL + 74 + + + 31
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT + 65 * SUM( + ( - NULLIF ( 54, 65 ) ) ) col1
----
-3510

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + 65 * SUM ( + ( - NULLIF ( 54, 65 ) ) ) col1
----
-3510

query I rowsort
SELECT + 0 * 41 * - + 98 + - 51
----
-51

query I rowsort
SELECT ALL ( - 0 ) + - 12
----
-12

query I rowsort
SELECT DISTINCT + 57 + 13 AS col0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL - COALESCE ( + 98, - - COUNT( * ) * 15 * + 53, - - 11 )
----
-98

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL - COALESCE ( + 98, - - COUNT ( * ) * 15 * + 53, - - 11 )
----
-98

query I rowsort
SELECT 55 * - + 79 AS col0
----
-4345

onlyif mysql # DIV for integer division: 
query I rowsort label-6377
SELECT DISTINCT + 30 DIV 14 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6377
SELECT DISTINCT + 30 / 14 AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT ALL - 2 + + 15 DIV + 33
----
-2

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL - 2 + + 15 / + 33
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT + - COUNT( DISTINCT + 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-6379
SELECT + - COUNT ( DISTINCT + 52 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6380
SELECT ALL + + 91 + 79 * - COUNT( - 93 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL + + 91 + 79 * - COUNT ( - 93 ) AS col2
----
12

query I rowsort
SELECT ALL + 11 * - + 82 AS col2
----
-902

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6382
SELECT DISTINCT + 0 DIV 52 * - - 9 * - - COUNT( * ) * + + CAST( + 28 AS SIGNED ) DIV + - 29 col2
----
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT + 0 / 52 * - - 9 * - - COUNT ( * ) * + + CAST ( + 28 AS INTEGER ) / + - 29 col2
----
0

query I rowsort
SELECT ALL - + 78 + - NULLIF ( + 52, + 94 ) AS col1
----
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6384
SELECT DISTINCT + CAST( - 74 AS SIGNED ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT + CAST ( - 74 AS INTEGER ) AS col2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT ALL - ( - - CAST( 35 AS SIGNED ) ) + + + 58 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL - ( - - CAST ( 35 AS INTEGER ) ) + + + 58 AS col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6386
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT - MIN( ALL 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6387
SELECT - MIN ( ALL 58 )
----
-58

query I rowsort
SELECT DISTINCT - - 49 - + NULLIF ( + 91, - COALESCE ( - - 0, + 76 ) / - + 43 ) col2
----
-42

query I rowsort
SELECT ALL + - 86 * - 99
----
8514

query I rowsort
SELECT + 3 col2
----
3

query I rowsort
SELECT - + 34 AS col2
----
-34

query I rowsort
SELECT 50 + 21 col2
----
71

query II rowsort
SELECT DISTINCT - - CASE + 53 WHEN + + 85 / 56 / 42 THEN - 54 WHEN - 56 + + 35 THEN NULL ELSE 61 END - - - 56 AS col1, 96 * - 64
----
5
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT - 19 + COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-6394
SELECT - 19 + COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT DISTINCT 58 - + + 8 * - - COUNT( * ) + - - ( - + ( - - 43 ) )
----
7

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT 58 - + + 8 * - - COUNT ( * ) + - - ( - + ( - - 43 ) )
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6396
SELECT 9 - + 15 DIV - - 1
----
-6

skipif mysql # not compatible
query I rowsort label-6396
SELECT 9 - + 15 / - - 1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT - + SUM( ALL + 2 ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-6397
SELECT - + SUM ( ALL + 2 ) col0
----
-2

query I rowsort
SELECT 41 + - + 85 + + - 61 * + 47
----
-2911

query I rowsort
SELECT 24 * 87
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT MIN( + 97 ) + - 57 * 8 AS col0
----
-359

skipif mysql # not compatible
query I rowsort label-6400
SELECT MIN ( + 97 ) + - 57 * 8 AS col0
----
-359

query I rowsort
SELECT ALL + 33 * 53 + - + 28 AS col0
----
1721

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6402
SELECT CASE 82 WHEN + + 47 THEN - AVG ( DISTINCT 31 ) / 93 WHEN + 8 + + CAST( - + CASE + 7 WHEN 87 THEN + + 84 + - ( - - ( + ( + 79 ) ) ) + - COUNT( * ) END AS DECIMAL ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6402
SELECT CASE 82 WHEN + + 47 THEN - AVG ( DISTINCT 31 ) / 93 WHEN + 8 + + CAST ( - + CASE + 7 WHEN 87 THEN + + 84 + - ( - - ( + ( + 79 ) ) ) + - COUNT ( * ) END AS REAL ) THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - CASE + 84 WHEN + + ( - - 76 ) - + - ( - - 22 ) THEN NULL ELSE 0 * - 49 END AS col1
----
0

query I rowsort
SELECT ALL - 79 * + 38
----
-3002

query I rowsort
SELECT 40 * 9
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-6406
SELECT COUNT( * ) - + 9 + + 64 * 17, + 71 + - + COUNT( * ) col0
----
1080
70

skipif mysql # not compatible
query II rowsort label-6406
SELECT COUNT ( * ) - + 9 + + 64 * 17, + 71 + - + COUNT ( * ) col0
----
1080
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL NULLIF ( - 58, + 72 ) * - 47 * COUNT( * ) + + - COUNT( * ) * 10 AS col2
----
2716

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL NULLIF ( - 58, + 72 ) * - 47 * COUNT ( * ) + + - COUNT ( * ) * 10 AS col2
----
2716

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT + COUNT( * ) * - 54 * + - 58 + + 71 + - COUNT( DISTINCT - - 53 ) col0
----
3202

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT + COUNT ( * ) * - 54 * + - 58 + + 71 + - COUNT ( DISTINCT - - 53 ) col0
----
3202

onlyif mysql # aggregate syntax: 
query II rowsort label-6409
SELECT ALL - 56 * - - CASE 91 WHEN + 97 THEN + + 25 ELSE + 27 END + + COUNT( * ) col2, 86 * - + 35 AS col0
----
-1511
-3010

skipif mysql # not compatible
query II rowsort label-6409
SELECT ALL - 56 * - - CASE 91 WHEN + 97 THEN + + 25 ELSE + 27 END + + COUNT ( * ) col2, 86 * - + 35 AS col0
----
-1511
-3010

onlyif mysql # DIV for integer division: 
query I rowsort label-6410
SELECT ALL 87 DIV - 45
----
-1

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL 87 / - 45
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT ALL + 6 * CAST( NULL AS SIGNED ) + - + 94 + COALESCE ( - - COALESCE ( + 99, + 74 / - 32 + 34, + + 11 / + + 87 - + 70 + + 62 * - + 9 + + 48 + 99 / 47 ), - 40 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + 6 * CAST ( NULL AS INTEGER ) + - + 94 + COALESCE ( - - COALESCE ( + 99, + 74 / - 32 + 34, + + 11 / + + 87 - + 70 + + 62 * - + 9 + + 48 + 99 / 47 ), - 40 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT + 23 * + + COUNT( * ) + 42
----
65

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + 23 * + + COUNT ( * ) + 42
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT SUM( 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-6413
SELECT SUM ( 19 ) AS col2
----
19

query I rowsort
SELECT + 81 * - ( - 63 )
----
5103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT ALL ( - 93 ) * CAST( NULL AS SIGNED ) + - 71 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL ( - 93 ) * CAST ( NULL AS INTEGER ) + - 71 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT ALL + 14 AS col0, - MAX( - 54 ) * + 60
----
14
3240

skipif mysql # not compatible
query II rowsort label-6416
SELECT ALL + 14 AS col0, - MAX ( - 54 ) * + 60
----
14
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT MAX( + 2 )
----
2

skipif mysql # not compatible
query I rowsort label-6417
SELECT MAX ( + 2 )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6418
SELECT COUNT( * ) AS col2, 12 AS col2
----
1
12

skipif mysql # not compatible
query II rowsort label-6418
SELECT COUNT ( * ) AS col2, 12 AS col2
----
1
12

query I rowsort
SELECT ALL + - ( 13 ) col2
----
-13

query I rowsort
SELECT - - 59 * + 31 AS col1
----
1829

query II rowsort
SELECT + 53 AS col2, 8
----
53
8

query I rowsort
SELECT ALL + - 75 AS col1
----
-75

query I rowsort
SELECT ALL + + ( 40 )
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT - - 10 DIV + MIN( ALL + - 81 )
----
0

skipif mysql # not compatible
query I rowsort label-6424
SELECT - - 10 / + MIN ( ALL + - 81 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT + + MAX( ALL + 92 ) * 99 + + 34 + + 20 - + ( + CASE - COUNT( * ) WHEN + 22 THEN - 40 * + + 59 END ) * + SUM( DISTINCT - ( - + 5 ) ) * + - 36 + 93 + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT + + MAX ( ALL + 92 ) * 99 + + 34 + + 20 - + ( + CASE - COUNT ( * ) WHEN + 22 THEN - 40 * + + 59 END ) * + SUM ( DISTINCT - ( - + 5 ) ) * + - 36 + 93 + - 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6426
SELECT - ( - COUNT( * ) ) AS col2, + 45 AS col0
----
1
45

skipif mysql # not compatible
query II rowsort label-6426
SELECT - ( - COUNT ( * ) ) AS col2, + 45 AS col0
----
1
45

query I rowsort
SELECT - + 49 AS col0
----
-49

query II rowsort
SELECT 82, - 2 * - 78 AS col1
----
82
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6429
SELECT ALL - 55 DIV - CASE - ( + + 23 ) WHEN CAST( NULL AS SIGNED ) THEN 86 WHEN - 12 + + - 50 THEN + ( - MAX( + 73 ) ) ELSE + 38 + + 63 END AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - 55 / - CASE - ( + + 23 ) WHEN CAST ( NULL AS INTEGER ) THEN 86 WHEN - 12 + + - 50 THEN + ( - MAX ( + 73 ) ) ELSE + 38 + + 63 END AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6430
SELECT - 8 + + 97 * 11 * + 67 + + 71 * + + 88 + 3 - + - 92 + + COUNT( * ) + CASE - 79 WHEN 26 + + CAST( + + COUNT( ALL + 49 ) AS DECIMAL ) THEN - 40 END * - 73 * 44 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6430
SELECT - 8 + + 97 * 11 * + 67 + + 71 * + + 88 + 3 - + - 92 + + COUNT ( * ) + CASE - 79 WHEN 26 + + CAST ( + + COUNT ( ALL + 49 ) AS REAL ) THEN - 40 END * - 73 * 44 AS col1
----
NULL

query II rowsort
SELECT ALL 32 AS col1, 61 + 36 + + - 48 AS col2
----
32
49

query I rowsort
SELECT - + 77 AS col0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT MIN( - 96 ) col1
----
-96

skipif mysql # not compatible
query I rowsort label-6433
SELECT MIN ( - 96 ) col1
----
-96

query I rowsort
SELECT ALL + + 67 * + ( + - 54 )
----
-3618

query I rowsort
SELECT - + 97 * - ( - 11 ) + + 14 * 3 AS col2
----
-1025

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - - COALESCE ( + COUNT( * ), + 50 * - 26 - + - MAX( ALL - + 99 ) * - - 10 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6436
SELECT - - COALESCE ( + COUNT ( * ), + 50 * - 26 - + - MAX ( ALL - + 99 ) * - - 10 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT - + COUNT( * ) + - - 43 * + MAX( DISTINCT 75 ) + + CAST( + COUNT( * ) AS SIGNED )
----
3225

skipif mysql # not compatible
query I rowsort label-6437
SELECT - + COUNT ( * ) + - - 43 * + MAX ( DISTINCT 75 ) + + CAST ( + COUNT ( * ) AS INTEGER )
----
3225

query I rowsort
SELECT DISTINCT + 92 * - - 53
----
4876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 29
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6440
SELECT ALL + CASE - 47 WHEN + 29 - - + 70 * + + 34 * - SUM( ALL - ( - 34 ) ) - 51 THEN + + 98 END + MIN( DISTINCT 25 ), - 32 * + CAST( NULL AS SIGNED ) * - COUNT( * ) + 61 + + - 73 * 19 * - 87
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6440
SELECT ALL + CASE - 47 WHEN + 29 - - + 70 * + + 34 * - SUM ( ALL - ( - 34 ) ) - 51 THEN + + 98 END + MIN ( DISTINCT 25 ), - 32 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + 61 + + - 73 * 19 * - 87
----
NULL
NULL

query I rowsort
SELECT ALL - 20 + - NULLIF ( NULLIF ( - ( + CASE + 65 WHEN 30 THEN + 6 ELSE 69 END ), + 60 + + - 41 ), 86 ) + + 66 AS col1
----
115

query I rowsort
SELECT DISTINCT ( 63 ) AS col2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT ALL + CAST( NULL AS SIGNED ) + - 40
----
NULL

skipif mysql # not compatible
query I rowsort label-6443
SELECT ALL + CAST ( NULL AS INTEGER ) + - 40
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6444
SELECT - 5 + + 40 * + 48 + + CAST( + + MIN( ALL 93 ) AS SIGNED ) col1
----
2008

skipif mysql # not compatible
query I rowsort label-6444
SELECT - 5 + + 40 * + 48 + + CAST ( + + MIN ( ALL 93 ) AS INTEGER ) col1
----
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT DISTINCT + NULLIF ( + 50, - COUNT( ALL 51 ) + - 13 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-6445
SELECT DISTINCT + NULLIF ( + 50, - COUNT ( ALL 51 ) + - 13 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT + 87 - - 55 + + 43 DIV 66
----
142

skipif mysql # not compatible
query I rowsort label-6446
SELECT + 87 - - 55 + + 43 / 66
----
142

query I rowsort
SELECT ALL + 14 col1
----
14

query II rowsort
SELECT DISTINCT 10 * - 67 col0, 47 * + + 82 AS col0
----
-670
3854

query I rowsort
SELECT + ( 5 ) AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL 23 / - 68 * - + NULLIF ( 60, 56 ) * - - CAST( NULL AS SIGNED ) + - + CASE + 9 WHEN - - 48 THEN - MIN( DISTINCT - NULLIF ( - 52, 39 + 67 + 28 * - CAST( NULL AS SIGNED ) ) ) WHEN + 88 - - 23 THEN - 76 WHEN MAX( DISTINCT 83 ) + 55 * 41 THEN NULL ELSE NULL END * + CAST( + ( 72 ) + + COALESCE ( COUNT( 63 ) - 22, CASE 1 WHEN + 57 THEN - COUNT( * ) - ( - 23 ) ELSE NULL END ) / ( 83 / - ( + 76 ) ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL 23 / - 68 * - + NULLIF ( 60, 56 ) * - - CAST ( NULL AS INTEGER ) + - + CASE + 9 WHEN - - 48 THEN - MIN ( DISTINCT - NULLIF ( - 52, 39 + 67 + 28 * - CAST ( NULL AS INTEGER ) ) ) WHEN + 88 - - 23 THEN - 76 WHEN MAX ( DISTINCT 83 ) + 55 * 41 THEN NULL ELSE NULL END * + CAST ( + ( 72 ) + + COALESCE ( COUNT ( 63 ) - 22, CASE 1 WHEN + 57 THEN - COUNT ( * ) - ( - 23 ) ELSE NULL END ) / ( 83 / - ( + 76 ) ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6451
SELECT MAX( ALL CAST( NULL AS DECIMAL ) ) / - + 15 * - 79 + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6451
SELECT MAX ( ALL CAST ( NULL AS REAL ) ) / - + 15 * - 79 + + 88
----
NULL

query II rowsort
SELECT ( 41 ) AS col2, - ( + + 45 ) * - NULLIF ( 12, + 51 )
----
41
540

onlyif mysql # aggregate syntax: 
query II rowsort label-6453
SELECT ALL + ( - 50 ), - ( + + 32 ) * + COUNT( * ) AS col2
----
-50
-32

skipif mysql # not compatible
query II rowsort label-6453
SELECT ALL + ( - 50 ), - ( + + 32 ) * + COUNT ( * ) AS col2
----
-50
-32

query II rowsort
SELECT DISTINCT - 30 * - 85 AS col2, + 82
----
2550
82

onlyif mysql # DIV for integer division: 
query III rowsort label-6455
SELECT ALL 98 DIV - 80, 43 AS col2, + 97 * + 11 AS col2
----
-1
43
1067

skipif mysql # not compatible
query III rowsort label-6455
SELECT ALL 98 / - 80, 43 AS col2, + 97 * + 11 AS col2
----
-1
43
1067

query I rowsort
SELECT 49 * 47 + 77 AS col1
----
2380

query I rowsort
SELECT + + 64 AS col0
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6458
SELECT DISTINCT CASE + NULLIF ( - 61, - MIN( DISTINCT - 20 ) ) WHEN + - 87 * + + 52 * + + COALESCE ( 42, - 78 ) / ( - 56 ) / 99 + + - 55 THEN + 31 END * + ( 99 ) * + NULLIF ( 88 * 21 + - ( 97 ), - COUNT( * ) + CASE + CASE - 22 WHEN - SUM( DISTINCT - 37 ) + + 14 / COUNT( 22 ) THEN COUNT( * ) WHEN 99 + + 30 * + 70 THEN NULL END WHEN ( + 18 ) THEN - COUNT( * ) END / + 65 ) - - ( 99 ) * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT CASE + NULLIF ( - 61, - MIN ( DISTINCT - 20 ) ) WHEN + - 87 * + + 52 * + + COALESCE ( 42, - 78 ) / ( - 56 ) / 99 + + - 55 THEN + 31 END * + ( 99 ) * + NULLIF ( 88 * 21 + - ( 97 ), - COUNT ( * ) + CASE + CASE - 22 WHEN - SUM ( DISTINCT - 37 ) + + 14 / COUNT ( 22 ) THEN COUNT ( * ) WHEN 99 + + 30 * + 70 THEN NULL END WHEN ( + 18 ) THEN - COUNT ( * ) END / + 65 ) - - ( 99 ) * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL + + MIN( + 21 ) col0
----
21

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + + MIN ( + 21 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT + COUNT( + 18 )
----
1

skipif mysql # not compatible
query I rowsort label-6460
SELECT + COUNT ( + 18 )
----
1

query I rowsort
SELECT + + 39 + + - 27 - + 65
----
-53

query I rowsort
SELECT ALL + 0 AS col1
----
0

query I rowsort
SELECT DISTINCT + - 91
----
-91

query I rowsort
SELECT + 35 * - 38 AS col1
----
-1330

query I rowsort
SELECT ALL + - 9 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6466
SELECT DISTINCT - 26 * - COUNT( * ) * - 47
----
-1222

skipif mysql # not compatible
query I rowsort label-6466
SELECT DISTINCT - 26 * - COUNT ( * ) * - 47
----
-1222

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6467
SELECT DISTINCT + + ( - CASE + 36 WHEN - 35 THEN - CAST( NULL AS DECIMAL ) ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT + + ( - CASE + 36 WHEN - 35 THEN - CAST ( NULL AS REAL ) ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT ALL - + COUNT( * ) * - - MIN( ALL - + 24 ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6468
SELECT ALL - + COUNT ( * ) * - - MIN ( ALL - + 24 ) AS col2
----
24

query II rowsort
SELECT + + 87 * 39 AS col1, - 85 AS col2
----
3393
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT DISTINCT SUM( DISTINCT - 35 ) * - 76 * - CAST( + COUNT( * ) AS SIGNED ) * + - 69
----
183540

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT SUM ( DISTINCT - 35 ) * - 76 * - CAST ( + COUNT ( * ) AS INTEGER ) * + - 69
----
183540

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT + MIN( ALL + - ( 14 ) )
----
-14

skipif mysql # not compatible
query I rowsort label-6471
SELECT + MIN ( ALL + - ( 14 ) )
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT + 68 * + MIN( - 7 ) * - 11 * - 85
----
-445060

skipif mysql # not compatible
query I rowsort label-6472
SELECT + 68 * + MIN ( - 7 ) * - 11 * - 85
----
-445060

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT CASE + 1 WHEN - 40 - + + 69 + - 48 THEN - COUNT( * ) WHEN + 5 + + COUNT( * ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT CASE + 1 WHEN - 40 - + + 69 + - 48 THEN - COUNT ( * ) WHEN + 5 + + COUNT ( * ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT MIN( - 9 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-6474
SELECT MIN ( - 9 ) AS col0
----
-9

query I rowsort
SELECT - - 66 AS col0
----
66

query I rowsort
SELECT ALL - 82 + 4 + - 55 AS col0
----
-133

query I rowsort
SELECT - 23 col1
----
-23

query I rowsort
SELECT ALL + 88 + - + 31 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT + COUNT( * ) - - + 1 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6479
SELECT + COUNT ( * ) - - + 1 AS col1
----
2

query I rowsort
SELECT ALL ( - + 23 )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT DISTINCT ( + 53 ) + - MAX( - 37 )
----
90

skipif mysql # not compatible
query I rowsort label-6481
SELECT DISTINCT ( + 53 ) + - MAX ( - 37 )
----
90

query I rowsort
SELECT DISTINCT - 6 + + 80
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT DISTINCT - COUNT( * ) * 36 AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-6483
SELECT DISTINCT - COUNT ( * ) * 36 AS col2
----
-36

query I rowsort
SELECT 30 * - 42
----
-1260

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT 69 * + + 70 * + 56 col2, MIN( - - 25 ) AS col1
----
270480
25

skipif mysql # not compatible
query II rowsort label-6485
SELECT 69 * + + 70 * + 56 col2, MIN ( - - 25 ) AS col1
----
270480
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT 78 * + ( + - COUNT( * ) ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6486
SELECT 78 * + ( + - COUNT ( * ) ) AS col1
----
-78

query I rowsort
SELECT ALL - 44 + 25
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6488
SELECT 47 AS col0, 64 DIV 13 + COUNT( * ) + - 22 AS col0
----
47
-17

skipif mysql # not compatible
query II rowsort label-6488
SELECT 47 AS col0, 64 / 13 + COUNT ( * ) + - 22 AS col0
----
47
-17

query I rowsort
SELECT DISTINCT - 26 - + - 13 AS col1
----
-13

query I rowsort
SELECT 68 * 42
----
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT ALL - 44 - - COUNT( * ) * - - MAX( DISTINCT - 31 )
----
-75

skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL - 44 - - COUNT ( * ) * - - MAX ( DISTINCT - 31 )
----
-75

query I rowsort
SELECT ALL NULLIF ( - 85, 59 - + - 90 ) - - 88 * + 66
----
5723

onlyif mysql # aggregate syntax: 
query II rowsort label-6493
SELECT DISTINCT - ( - - CASE - 31 WHEN 42 + + COALESCE ( COUNT( * ), + 82 / - + 58 ) THEN NULL WHEN - 53 + 12 THEN + 84 END ) col2, + 17 * + 56
----
NULL
952

skipif mysql # not compatible
query II rowsort label-6493
SELECT DISTINCT - ( - - CASE - 31 WHEN 42 + + COALESCE ( COUNT ( * ), + 82 / - + 58 ) THEN NULL WHEN - 53 + 12 THEN + 84 END ) col2, + 17 * + 56
----
NULL
952

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ( - 31 ) * + - 35 - - COUNT( DISTINCT 88 ) - - MAX( DISTINCT - 77 ) AS col0
----
1009

skipif mysql # not compatible
query I rowsort label-6494
SELECT ( - 31 ) * + - 35 - - COUNT ( DISTINCT 88 ) - - MAX ( DISTINCT - 77 ) AS col0
----
1009

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT DISTINCT - 37 DIV - - 94 - + 48 * + + 77
----
-3696

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT - 37 / - - 94 - + 48 * + + 77
----
-3696

query I rowsort
SELECT ALL - - 57 col0
----
57

query I rowsort
SELECT DISTINCT - 21 * 22
----
-462

query I rowsort
SELECT - 40 * + CASE 37 WHEN + ( - 32 ) THEN - 45 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL - CAST( - 82 AS SIGNED ) * + 52 * + CASE + CASE - MAX( + 58 ) WHEN + COUNT( * ) THEN NULL WHEN 61 THEN NULL ELSE + 84 * - 34 END WHEN - 48 THEN - + 62 * + - 48 WHEN 97 - + 40 * + 75 THEN + + 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL - CAST ( - 82 AS INTEGER ) * + 52 * + CASE + CASE - MAX ( + 58 ) WHEN + COUNT ( * ) THEN NULL WHEN 61 THEN NULL ELSE + 84 * - 34 END WHEN - 48 THEN - + 62 * + - 48 WHEN 97 - + 40 * + 75 THEN + + 96 END AS col1
----
NULL

query I rowsort
SELECT 43 - + - ( + 10 ) * + - 66 * - 8
----
5323

query I rowsort
SELECT ALL - - 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT DISTINCT - CAST( + 79 AS SIGNED ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT - CAST ( + 79 AS INTEGER ) AS col0
----
-79

query I rowsort
SELECT ALL - + 7
----
-7

query I rowsort
SELECT 35 * - + 38 + + 51 * 27 + + 60 AS col2
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT ALL + COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + COUNT ( * ) * + 3
----
3

query I rowsort
SELECT ALL - + 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT ALL - - COUNT( * ) * + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-6507
SELECT ALL - - COUNT ( * ) * + - 54
----
-54

query I rowsort
SELECT ALL - + ( 11 ) col0
----
-11

query I rowsort
SELECT DISTINCT - 55 AS col0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT + COUNT( * ) * + 73 + 73 + 90 AS col0
----
236

skipif mysql # not compatible
query I rowsort label-6510
SELECT + COUNT ( * ) * + 73 + 73 + 90 AS col0
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT - COUNT( * ) - + NULLIF ( - COUNT( + 52 ), 10 ) * COUNT( * ) * + 17 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6511
SELECT - COUNT ( * ) - + NULLIF ( - COUNT ( + 52 ), 10 ) * COUNT ( * ) * + 17 AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL + 3 + + - NULLIF ( + ( + 87 ), 35 + - 3 * + - COUNT( * ) ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL + 3 + + - NULLIF ( + ( + 87 ), 35 + - 3 * + - COUNT ( * ) ) AS col1
----
-84

query I rowsort
SELECT - ( + 27 ) + - 28
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT 4 - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-6514
SELECT 4 - COUNT ( * )
----
3

query I rowsort
SELECT - - 91 col0
----
91

query I rowsort
SELECT DISTINCT + 70 + + - 68 col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL ( + 31 ) + - COUNT( * ) * 51 + + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL ( + 31 ) + - COUNT ( * ) * 51 + + COUNT ( * )
----
-19

query I rowsort
SELECT - - ( + CASE + + 57 WHEN 67 THEN - 3 ELSE - CASE - 14 WHEN 64 THEN + ( + 84 ) END END ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT ALL - NULLIF ( - 3, + MAX( - 17 ) * - 97 * + ( + 73 ) * 72 + - - 98 + + 99 ) + 5, 86 AS col1
----
8
86

skipif mysql # not compatible
query II rowsort label-6519
SELECT ALL - NULLIF ( - 3, + MAX ( - 17 ) * - 97 * + ( + 73 ) * 72 + - - 98 + + 99 ) + 5, 86 AS col1
----
8
86

query I rowsort
SELECT 84 + 19
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6521
SELECT 40 * 46 AS col0, 44 * - + 7 * NULLIF ( + MAX( DISTINCT - 52 ), - CAST( NULL AS SIGNED ) ) AS col1
----
1840
16016

skipif mysql # not compatible
query II rowsort label-6521
SELECT 40 * 46 AS col0, 44 * - + 7 * NULLIF ( + MAX ( DISTINCT - 52 ), - CAST ( NULL AS INTEGER ) ) AS col1
----
1840
16016

query II rowsort
SELECT DISTINCT 47 + + - 8, 81 * + 43 + + + 86 AS col2
----
39
3569

query I rowsort
SELECT ALL ( + + 20 ) + - + 37
----
-17

query I rowsort
SELECT DISTINCT 71 * - 78
----
-5538

onlyif mysql # aggregate syntax: 
query I rowsort label-6525
SELECT SUM( DISTINCT 83 ) + - 3
----
80

skipif mysql # not compatible
query I rowsort label-6525
SELECT SUM ( DISTINCT 83 ) + - 3
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6526
SELECT ALL COUNT( * ) * + 21 * - 80 * 56 col2, + MAX( 45 ) + - + 70 + + 83
----
-94080
58

skipif mysql # not compatible
query II rowsort label-6526
SELECT ALL COUNT ( * ) * + 21 * - 80 * 56 col2, + MAX ( 45 ) + - + 70 + + 83
----
-94080
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT 30 + + 18 - 83 + + + 18 * - 42 * + 22 + COUNT( * ) AS col0
----
-16666

skipif mysql # not compatible
query I rowsort label-6527
SELECT 30 + + 18 - 83 + + + 18 * - 42 * + 22 + COUNT ( * ) AS col0
----
-16666

query I rowsort
SELECT 78 + + 45 + 21 AS col0
----
144

query I rowsort
SELECT ALL 28 - 81 + + 47 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-6530
SELECT 65 - + COUNT( * ) AS col2, 20
----
64
20

skipif mysql # not compatible
query II rowsort label-6530
SELECT 65 - + COUNT ( * ) AS col2, 20
----
64
20

query I rowsort
SELECT ALL + 85 * - - 33
----
2805

query I rowsort
SELECT 78 * + + NULLIF ( - + 33, - 12 / 97 )
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT ALL - 13 * COUNT( DISTINCT - ( + 48 ) ) * + 69 * 46 * 88 * - 5 * - - 18 + + 0 AS col2
----
326795040

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL - 13 * COUNT ( DISTINCT - ( + 48 ) ) * + 69 * 46 * 88 * - 5 * - - 18 + + 0 AS col2
----
326795040

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6534
SELECT ALL + CASE - 58 WHEN + 56 THEN 63 WHEN - - CAST( 36 AS SIGNED ) THEN NULL END * - + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + CASE - 58 WHEN + 56 THEN 63 WHEN - - CAST ( 36 AS INTEGER ) THEN NULL END * - + 34
----
NULL

query I rowsort
SELECT 94 * - - 8
----
752

query I rowsort
SELECT ALL 86 * - 75
----
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ( + 70 ) + + COUNT( * ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6537
SELECT ( + 70 ) + + COUNT ( * ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6538
SELECT - 46 DIV - 40 - + + COUNT( * ) + COUNT( DISTINCT + 34 ) + ( 71 ) * + 62 + - 47 * - + 83 AS col2
----
8304

skipif mysql # not compatible
query I rowsort label-6538
SELECT - 46 / - 40 - + + COUNT ( * ) + COUNT ( DISTINCT + 34 ) + ( 71 ) * + 62 + - 47 * - + 83 AS col2
----
8304

query I rowsort
SELECT 3 * + - 91 * 61
----
-16653

query I rowsort
SELECT ALL - 22 * - 17 col0
----
374

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6541
SELECT ALL - 92 * - 74 * - 68 + + + 81 DIV - 79 col1, + COUNT( * )
----
-462945
1

skipif mysql # not compatible
query II rowsort label-6541
SELECT ALL - 92 * - 74 * - 68 + + + 81 / - 79 col1, + COUNT ( * )
----
-462945
1

query I rowsort
SELECT ALL - 48 * - 5 * - - ( + 2 ) * + + 78
----
37440

query I rowsort
SELECT DISTINCT - - 12 col1
----
12

query I rowsort
SELECT DISTINCT - - 86
----
86

query I rowsort
SELECT + 61 + + + 57 * + 59
----
3424

query I rowsort
SELECT DISTINCT - + 35 col0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT ALL + - 52 * + 75 * 27 + - - 19 - 98 - COUNT( * ) - 72 * 71 AS col2
----
-110492

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + - 52 * + 75 * 27 + - - 19 - 98 - COUNT ( * ) - 72 * 71 AS col2
----
-110492

query I rowsort
SELECT DISTINCT - + 53 AS col1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6549
SELECT 29 * CAST( NULL AS DECIMAL ) * + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT 29 * CAST ( NULL AS REAL ) * + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT + NULLIF ( - 0, + 65 + + 27 ) + NULLIF ( + 32, + 61 ) AS col2
----
32

query I rowsort
SELECT 19 + + NULLIF ( 20, - 23 + + 97 + - 49 * - + 30 ) + + 6
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL - ( + CASE - NULLIF ( + + ( - + COUNT( * ) ), + - 78 ) WHEN - + 60 THEN - 51 WHEN + + 76 THEN - 68 ELSE + + COUNT( * ) END ) + - 70 + - 61 AS col0
----
-132

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL - ( + CASE - NULLIF ( + + ( - + COUNT ( * ) ), + - 78 ) WHEN - + 60 THEN - 51 WHEN + + 76 THEN - 68 ELSE + + COUNT ( * ) END ) + - 70 + - 61 AS col0
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6553
SELECT DISTINCT + CAST( - 88 AS SIGNED ) * - + 88 * + 34 + + 88 * + 3
----
263560

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + CAST ( - 88 AS INTEGER ) * - + 88 * + 34 + + 88 * + 3
----
263560

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT DISTINCT - - NULLIF ( + + 52, MIN( ALL - 15 ) * + 24 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - - NULLIF ( + + 52, MIN ( ALL - 15 ) * + 24 ) AS col2
----
52

query I rowsort
SELECT DISTINCT - + 30 + + + 19 * - 64 AS col0
----
-1246

query I rowsort
SELECT ALL - 91 + + 92
----
1

query I rowsort
SELECT DISTINCT - 33 + + 27 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT DISTINCT + + 18 * + 26 * - 58 - + + MIN( 96 ) AS col0
----
-27240

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT + + 18 * + 26 * - 58 - + + MIN ( 96 ) AS col0
----
-27240

query I rowsort
SELECT DISTINCT 30 + - + 8 AS col0
----
22

query I rowsort
SELECT ALL 88 + 0
----
88

query I rowsort
SELECT ALL CASE + 88 WHEN + - 80 THEN - 75 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT ALL COALESCE ( - + 15, + CAST( NULL AS SIGNED ), - ( + 30 ) + + 89 * 74 * 89 + - 22 + - CAST( - 14 AS SIGNED ) )
----
-15

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL COALESCE ( - + 15, + CAST ( NULL AS INTEGER ), - ( + 30 ) + + 89 * 74 * 89 + - 22 + - CAST ( - 14 AS INTEGER ) )
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT DISTINCT 35 DIV - 99
----
0

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT 35 / - 99
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT 94 - + 58 + + 95 - - 1 + - - ( + 63 ) * COALESCE ( - + 37, SUM( - 34 ) * NULLIF ( - 99, - 54 ) ) * - + 55 col2
----
128337

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT 94 - + 58 + + 95 - - 1 + - - ( + 63 ) * COALESCE ( - + 37, SUM ( - 34 ) * NULLIF ( - 99, - 54 ) ) * - + 55 col2
----
128337

query I rowsort
SELECT ALL 29 - + 81
----
-52

query I rowsort
SELECT ALL 46 * 69
----
3174

query I rowsort
SELECT + 28 + + + 63
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6568
SELECT 67 col1, - NULLIF ( - COALESCE ( - COUNT( * ), NULLIF ( - - 33, - 15 + MAX( ALL - 84 ) - - - COUNT( * ) + + - 15 ) ), - COUNT( * ) ) AS col2
----
67
-1

skipif mysql # not compatible
query II rowsort label-6568
SELECT 67 col1, - NULLIF ( - COALESCE ( - COUNT ( * ), NULLIF ( - - 33, - 15 + MAX ( ALL - 84 ) - - - COUNT ( * ) + + - 15 ) ), - COUNT ( * ) ) AS col2
----
67
-1

query I rowsort
SELECT ALL 93 * 82
----
7626

onlyif mysql # DIV for integer division: 
query I rowsort label-6570
SELECT + COALESCE ( + ( + 49 ), - 69 ) * - ( - - 11 ) + + 69 DIV 10 + + - 91 AS col1
----
-624

skipif mysql # not compatible
query I rowsort label-6570
SELECT + COALESCE ( + ( + 49 ), - 69 ) * - ( - - 11 ) + + 69 / 10 + + - 91 AS col1
----
-624

query I rowsort
SELECT DISTINCT 64 AS col1
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-6572
SELECT - COALESCE ( + 46, + 92 DIV - 57 )
----
-46

skipif mysql # not compatible
query I rowsort label-6572
SELECT - COALESCE ( + 46, + 92 / - 57 )
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-6573
SELECT - COUNT( * ) AS col1, - MIN( - - 45 )
----
-1
-45

skipif mysql # not compatible
query II rowsort label-6573
SELECT - COUNT ( * ) AS col1, - MIN ( - - 45 )
----
-1
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-6574
SELECT + 57 DIV 62 col2
----
0

skipif mysql # not compatible
query I rowsort label-6574
SELECT + 57 / 62 col2
----
0

query I rowsort
SELECT + 74 + - ( - 23 )
----
97

query II rowsort
SELECT ALL 75, 98 AS col0
----
75
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6577
SELECT + + 82 DIV COALESCE ( - 96, 82 * + 80 + - - COUNT( * ), - CAST( NULL AS SIGNED ) * - + 73 * - - 4 )
----
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT + + 82 / COALESCE ( - 96, 82 * + 80 + - - COUNT ( * ), - CAST ( NULL AS INTEGER ) * - + 73 * - - 4 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT ALL ( + COUNT( * ) ) + - 0 + 23 + - + 30 + + 31 * - - COUNT( * ) col1
----
25

skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL ( + COUNT ( * ) ) + - 0 + 23 + - + 30 + + 31 * - - COUNT ( * ) col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6579
SELECT + 31 * - CAST( NULL AS SIGNED ) * + 63, NULLIF ( + 38, - MAX( 13 ) ) AS col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-6579
SELECT + 31 * - CAST ( NULL AS INTEGER ) * + 63, NULLIF ( + 38, - MAX ( 13 ) ) AS col0
----
NULL
38

query I rowsort
SELECT ALL + - ( 10 )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6581
SELECT ALL - + 22 * + 66 * - COALESCE ( 18, + NULLIF ( - + 91, + 75 + - - 26 ), 38 + - + 12 DIV + 22 DIV + 40 * + COUNT( * ), + - 23 ) + - 13
----
26123

skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL - + 22 * + 66 * - COALESCE ( 18, + NULLIF ( - + 91, + 75 + - - 26 ), 38 + - + 12 / + 22 / + 40 * + COUNT ( * ), + - 23 ) + - 13
----
26123

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL + - COUNT( - 22 )
----
-1

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + - COUNT ( - 22 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6583
SELECT ALL - - 90 * - + 40 + NULLIF ( - CAST( - 38 AS SIGNED ), + 80 + - 90 ) * - - 84 * - 73
----
-236616

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL - - 90 * - + 40 + NULLIF ( - CAST ( - 38 AS INTEGER ), + 80 + - 90 ) * - - 84 * - 73
----
-236616

query I rowsort
SELECT ALL + 60 * + 29 + 9 + + 63 * + + 55 * - - 38
----
133419

query I rowsort
SELECT 72 col0
----
72

query II rowsort
SELECT + 84, 99 col2
----
84
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6587
SELECT + - 56 DIV COUNT( * ) - + + 10 DIV + 59 * 17
----
-56

skipif mysql # not compatible
query I rowsort label-6587
SELECT + - 56 / COUNT ( * ) - + + 10 / + 59 * 17
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6588
SELECT - - MAX( + + 71 ) DIV - - 98 * + 97
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT - - MAX ( + + 71 ) / - - 98 * + 97
----
0

query I rowsort
SELECT ALL + 86 * - 42 * - + 66
----
238392

query I rowsort
SELECT - + 75 * + 66 AS col0
----
-4950

onlyif mysql # aggregate syntax: 
query II rowsort label-6591
SELECT + COALESCE ( + 54, + - 94 ) AS col1, + CASE - + SUM( + + 88 ) WHEN 26 THEN NULL ELSE ( + - 29 ) END AS col2
----
54
-29

skipif mysql # not compatible
query II rowsort label-6591
SELECT + COALESCE ( + 54, + - 94 ) AS col1, + CASE - + SUM ( + + 88 ) WHEN 26 THEN NULL ELSE ( + - 29 ) END AS col2
----
54
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL - + MAX( - 64 ) * - 0 + - + 78 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - + MAX ( - 64 ) * - 0 + - + 78 AS col1
----
-78

query I rowsort
SELECT + COALESCE ( ( 56 ), + + 70 ) AS col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT ALL + CASE - - MIN( + - 9 ) WHEN + - COALESCE ( 17, + 48 * + 5 ) THEN 19 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL + CASE - - MIN ( + - 9 ) WHEN + - COALESCE ( 17, + 48 * + 5 ) THEN 19 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6595
SELECT - ( 98 ) - + - 31 DIV - 1
----
-129

skipif mysql # not compatible
query I rowsort label-6595
SELECT - ( 98 ) - + - 31 / - 1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT - 41 + + - 47 + MIN( DISTINCT - - 1 ) * - - 72 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-6596
SELECT - 41 + + - 47 + MIN ( DISTINCT - - 1 ) * - - 72 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6597
SELECT ALL + COUNT( * ) col2, 84
----
1
84

skipif mysql # not compatible
query II rowsort label-6597
SELECT ALL + COUNT ( * ) col2, 84
----
1
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT DISTINCT + 2 * - COALESCE ( - - ( COUNT( - 59 ) ), + 94 ) col2
----
-2

skipif mysql # not compatible
query I rowsort label-6598
SELECT DISTINCT + 2 * - COALESCE ( - - ( COUNT ( - 59 ) ), + 94 ) col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6599
SELECT - COALESCE ( + + 30, ( - 70 ), + CAST( NULL AS SIGNED ) ) + - COUNT( - 35 ) * + 55 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-6599
SELECT - COALESCE ( + + 30, ( - 70 ), + CAST ( NULL AS INTEGER ) ) + - COUNT ( - 35 ) * + 55 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT COUNT( ALL + - 94 )
----
1

skipif mysql # not compatible
query I rowsort label-6600
SELECT COUNT ( ALL + - 94 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT - COALESCE ( + + CASE WHEN NOT 48 > ( - 6 ) THEN + 60 + COUNT( * ) ELSE 13 END, 85 DIV - + 1 + + 15 ) * 52
----
-676

skipif mysql # not compatible
query I rowsort label-6601
SELECT - COALESCE ( + + CASE WHEN NOT 48 > ( - 6 ) THEN + 60 + COUNT ( * ) ELSE 13 END, 85 / - + 1 + + 15 ) * 52
----
-676

query I rowsort
SELECT ALL + 85 * ( 55 )
----
4675

query I rowsort
SELECT DISTINCT + 12 * + + 87
----
1044

query I rowsort
SELECT - 5 * 83 col0
----
-415

query I rowsort
SELECT ALL - 85 * + 27 AS col0
----
-2295

onlyif mysql # aggregate syntax: 
query II rowsort label-6606
SELECT + ( + COUNT( * ) ) * + - 51 - 32 AS col0, ( - + 88 ) AS col0
----
-83
-88

skipif mysql # not compatible
query II rowsort label-6606
SELECT + ( + COUNT ( * ) ) * + - 51 - 32 AS col0, ( - + 88 ) AS col0
----
-83
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6607
SELECT + 74 * - - COUNT( + + CAST( - 94 AS SIGNED ) ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-6607
SELECT + 74 * - - COUNT ( + + CAST ( - 94 AS INTEGER ) ) AS col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6608
SELECT DISTINCT - COUNT( * ) DIV 39 col1
----
0

skipif mysql # not compatible
query I rowsort label-6608
SELECT DISTINCT - COUNT ( * ) / 39 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT - ( + 72 ) * - COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-6609
SELECT - ( + 72 ) * - COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT + 51 * COUNT( * ) * - - 28 AS col1
----
1428

skipif mysql # not compatible
query I rowsort label-6610
SELECT + 51 * COUNT ( * ) * - - 28 AS col1
----
1428

query I rowsort
SELECT ALL 33 + 58
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6612
SELECT + 39 + 25 + - 40 + + 79 * + 8 + + CAST( + 3 AS SIGNED ) * + + 62 + + 80 * - 38
----
-2198

skipif mysql # not compatible
query I rowsort label-6612
SELECT + 39 + 25 + - 40 + + 79 * + 8 + + CAST ( + 3 AS INTEGER ) * + + 62 + + 80 * - 38
----
-2198

query II rowsort
SELECT DISTINCT - 50 + 30 - + 2 * + 23 col0, - 74 AS col2
----
-66
-74

query II rowsort
SELECT ALL 67 AS col2, + 45
----
67
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6615
SELECT DISTINCT - 9 + 46 * 0 * - 98 * + SUM( ALL + - 8 ) col2, - CAST( NULL AS SIGNED ) AS col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-6615
SELECT DISTINCT - 9 + 46 * 0 * - 98 * + SUM ( ALL + - 8 ) col2, - CAST ( NULL AS INTEGER ) AS col0
----
-9
NULL

query I rowsort
SELECT ALL + 43 col0
----
43

query I rowsort
SELECT ALL + 40 + - 84 - + 8 + + - ( + + 76 ) col0
----
-128

query I rowsort
SELECT + 79 col0
----
79

query I rowsort
SELECT ( - ( + + 81 ) )
----
-81

query I rowsort
SELECT - - 59 + + 40 * 15
----
659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6621
SELECT 93 DIV + 4 + + 59 + ( + - COUNT( * ) ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6621
SELECT 93 / + 4 + + 59 + ( + - COUNT ( * ) ) AS col1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6622
SELECT ALL - 98 DIV - 68 + 28
----
29

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL - 98 / - 68 + 28
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT 44 * CAST( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) + + + 86 * - ( - - 1 ) + - + 20 - - 74 * 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT 44 * CAST ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) + + + 86 * - ( - - 1 ) + - + 20 - - 74 * 59 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6624
SELECT ALL - - MAX( ALL + 13 ) * 5 * + 44 AS col2, - 93 AS col2
----
2860
-93

skipif mysql # not compatible
query II rowsort label-6624
SELECT ALL - - MAX ( ALL + 13 ) * 5 * + 44 AS col2, - 93 AS col2
----
2860
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT + 22 DIV - + 25 * 3 col2
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + 22 / - + 25 * 3 col2
----
0

query II rowsort
SELECT ALL - + 42 AS col2, + 78 AS col2
----
-42
78

query I rowsort
SELECT 69 * 27 AS col0
----
1863

onlyif mysql # aggregate syntax: 
query II rowsort label-6628
SELECT + + COUNT( * ) col2, 45 - + 92 AS col2
----
1
-47

skipif mysql # not compatible
query II rowsort label-6628
SELECT + + COUNT ( * ) col2, 45 - + 92 AS col2
----
1
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT SUM( + 82 ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-6629
SELECT SUM ( + 82 ) AS col0
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT + CAST( NULL AS SIGNED ) * + ( COUNT( * ) ) + + CASE - - CAST( NULL AS SIGNED ) WHEN 24 * + 14 + - 62 * + + 38 THEN - 70 WHEN - 80 * 22 THEN NULL END * 59 * - COUNT( * ) / - - 5 + - COUNT( * ) * - - 63 * 83 + - 13 * - 99 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT + CAST ( NULL AS INTEGER ) * + ( COUNT ( * ) ) + + CASE - - CAST ( NULL AS INTEGER ) WHEN 24 * + 14 + - 62 * + + 38 THEN - 70 WHEN - 80 * 22 THEN NULL END * 59 * - COUNT ( * ) / - - 5 + - COUNT ( * ) * - - 63 * 83 + - 13 * - 99 col0
----
NULL

query I rowsort
SELECT ALL 65 * - - 54 col1
----
3510

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT 78 + COUNT( - 4 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-6632
SELECT 78 + COUNT ( - 4 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL 53 - - COUNT( * ) + + + 23
----
77

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL 53 - - COUNT ( * ) + + + 23
----
77

query I rowsort
SELECT ( - 59 ) * - ( - 85 ) AS col2
----
-5015

query I rowsort
SELECT 17 col1
----
17

query I rowsort
SELECT ALL - ( NULLIF ( + - 78, - 84 + - 27 + + 79 / + 30 ) ) AS col2
----
78

query I rowsort
SELECT DISTINCT - 36 AS col1
----
-36

query I rowsort
SELECT 75 + + - 42 AS col0
----
33

query I rowsort
SELECT DISTINCT 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT 58 - - - COUNT( * ) * - + 20 * - 16 * 15 * + 83 col1
----
-398342

skipif mysql # not compatible
query I rowsort label-6640
SELECT 58 - - - COUNT ( * ) * - + 20 * - 16 * 15 * + 83 col1
----
-398342

query I rowsort
SELECT 94 * - - 43 AS col1
----
4042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT 65 * + ( + 13 ) * + CAST( - 12 AS SIGNED )
----
-10140

skipif mysql # not compatible
query I rowsort label-6642
SELECT 65 * + ( + 13 ) * + CAST ( - 12 AS INTEGER )
----
-10140

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT ALL - 63 * ( + CASE - 0 WHEN - - 11 * + 76 - + 84 + 14 THEN + COUNT( * ) ELSE + 87 END ) AS col1
----
-5481

skipif mysql # not compatible
query I rowsort label-6643
SELECT ALL - 63 * ( + CASE - 0 WHEN - - 11 * + 76 - + 84 + 14 THEN + COUNT ( * ) ELSE + 87 END ) AS col1
----
-5481

query I rowsort
SELECT DISTINCT 65 AS col2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT ALL - MIN( - - 73 ) + + ( - - 22 ) col2
----
-51

skipif mysql # not compatible
query I rowsort label-6645
SELECT ALL - MIN ( - - 73 ) + + ( - - 22 ) col2
----
-51

query I rowsort
SELECT ALL + 91 + 39 * + 89 * - - 75 AS col1
----
260416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6647
SELECT 3 - + CAST( + 48 AS SIGNED ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6647
SELECT 3 - + CAST ( + 48 AS INTEGER ) AS col1
----
-45

query I rowsort
SELECT DISTINCT + 9 + ( - 6 ) AS col1
----
3

query I rowsort
SELECT ALL + ( - ( 73 ) )
----
-73

query I rowsort
SELECT DISTINCT 62 + 85
----
147

query I rowsort
SELECT ALL - 11 + + - 38 + + 27
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT 58 * - 72 + - 34 * + ( - 71 ) * + COUNT( * ) - + - 75 + 29 * - - 44 + - 56 AS col2
----
-467

skipif mysql # not compatible
query I rowsort label-6652
SELECT 58 * - 72 + - 34 * + ( - 71 ) * + COUNT ( * ) - + - 75 + 29 * - - 44 + - 56 AS col2
----
-467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6653
SELECT - ( 55 ) DIV + 59 * CAST( + 37 AS SIGNED ) - COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6653
SELECT - ( 55 ) / + 59 * CAST ( + 37 AS INTEGER ) - COUNT ( * ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-6654
SELECT - 63 + COUNT( - 26 ), - 31 AS col2
----
-62
-31

skipif mysql # not compatible
query II rowsort label-6654
SELECT - 63 + COUNT ( - 26 ), - 31 AS col2
----
-62
-31

query I rowsort
SELECT 94 - - + 3 * 14 AS col1
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT ALL - - 78 DIV + 12 + 65 AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL - - 78 / + 12 + 65 AS col2
----
71

query I rowsort
SELECT DISTINCT - ( + 46 ) AS col1
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6658
SELECT ALL + COUNT( * ) + - 75 + - - 95 + - 82 * - 39 + + CAST( NULL AS SIGNED ) / - - 74 * - 37 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL + COUNT ( * ) + - 75 + - - 95 + - 82 * - 39 + + CAST ( NULL AS INTEGER ) / - - 74 * - 37 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT + COUNT( * ) * 44
----
44

skipif mysql # not compatible
query I rowsort label-6659
SELECT + COUNT ( * ) * 44
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL - 4 * - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL - 4 * - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT ALL - + 74 * 77 AS col1
----
-5698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6662
SELECT - CAST( - 52 AS SIGNED ) * 96 * - 95 * + + 14 - - 42 - + 79 * 75 AS col0
----
-6645243

skipif mysql # not compatible
query I rowsort label-6662
SELECT - CAST ( - 52 AS INTEGER ) * 96 * - 95 * + + 14 - - 42 - + 79 * 75 AS col0
----
-6645243

query I rowsort
SELECT - ( - 30 ) * 48 AS col2
----
1440

query I rowsort
SELECT + - 96 AS col2
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT - - 65 DIV + 17 + ( - 65 ) + - 17 + + 96
----
17

skipif mysql # not compatible
query I rowsort label-6665
SELECT - - 65 / + 17 + ( - 65 ) + - 17 + + 96
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT + 32 * 54 + + 5 * COUNT( * ) AS col0
----
1733

skipif mysql # not compatible
query I rowsort label-6666
SELECT + 32 * 54 + + 5 * COUNT ( * ) AS col0
----
1733

query I rowsort
SELECT DISTINCT - + 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6668
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6669
SELECT ALL - CAST( - CASE 70 WHEN + 89 THEN ( COUNT( * ) ) WHEN + 69 + + CAST( NULL AS SIGNED ) * + + 49 THEN + AVG ( 46 ) ELSE - + 43 END AS SIGNED ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - CAST ( - CASE 70 WHEN + 89 THEN ( COUNT ( * ) ) WHEN + 69 + + CAST ( NULL AS INTEGER ) * + + 49 THEN + AVG ( 46 ) ELSE - + 43 END AS INTEGER ) col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6670
SELECT ALL - 33, - 10 - + CAST( NULL AS SIGNED ) * - 26 AS col1
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-6670
SELECT ALL - 33, - 10 - + CAST ( NULL AS INTEGER ) * - 26 AS col1
----
-33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT + ( - 96 ) * ( - + 48 ) + + 30 + + - 73 + - COUNT( ALL - 54 ) * - 20 AS col0
----
4585

skipif mysql # not compatible
query I rowsort label-6671
SELECT + ( - 96 ) * ( - + 48 ) + + 30 + + - 73 + - COUNT ( ALL - 54 ) * - 20 AS col0
----
4585

query I rowsort
SELECT DISTINCT 58 * 73 AS col1
----
4234

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT SUM( 93 ) * - MIN( + + 28 ) * MAX( 66 ) + - 39 + - + NULLIF ( 82, - 35 ) * 32 + + 51
----
-174476

skipif mysql # not compatible
query I rowsort label-6673
SELECT SUM ( 93 ) * - MIN ( + + 28 ) * MAX ( 66 ) + - 39 + - + NULLIF ( 82, - 35 ) * 32 + + 51
----
-174476

onlyif mysql # DIV for integer division: 
query I rowsort label-6674
SELECT ALL 70 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL 70 / + 87
----
0

query I rowsort
SELECT 58 + - 33
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6676
SELECT AVG ( DISTINCT - 72 ) * + COUNT( * ) + + CASE + 92 WHEN 0 THEN NULL WHEN + - 56 * - 73 + - - 83 + - COUNT( ALL + + 43 ) + - COUNT( * ) + - 97 * 83 THEN - 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6676
SELECT AVG ( DISTINCT - 72 ) * + COUNT ( * ) + + CASE + 92 WHEN 0 THEN NULL WHEN + - 56 * - 73 + - - 83 + - COUNT ( ALL + + 43 ) + - COUNT ( * ) + - 97 * 83 THEN - 33 END
----
NULL

query I rowsort
SELECT 3 - 26
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6678
SELECT ALL - 39 AS col0, COUNT( * ) DIV - 31 AS col2
----
-39
0

skipif mysql # not compatible
query II rowsort label-6678
SELECT ALL - 39 AS col0, COUNT ( * ) / - 31 AS col2
----
-39
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6679
SELECT MAX( + 96 ) + - + COALESCE ( + 10, 67 ) + + - 54 * 35 + - 73, ( + 84 ) AS col2
----
-1877
84

skipif mysql # not compatible
query II rowsort label-6679
SELECT MAX ( + 96 ) + - + COALESCE ( + 10, 67 ) + + - 54 * 35 + - 73, ( + 84 ) AS col2
----
-1877
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6680
SELECT 75 AS col2, + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) + - + 35
----
75
NULL

skipif mysql # not compatible
query II rowsort label-6680
SELECT 75 AS col2, + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * COUNT ( * ) + - + 35
----
75
NULL

query I rowsort
SELECT ALL 27 * + 36
----
972

query I rowsort
SELECT DISTINCT 62 * - - 90
----
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT COUNT( * ) + SUM( ALL - 3 )
----
-2

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT COUNT ( * ) + SUM ( ALL - 3 )
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6684
SELECT - 25, + COUNT( * ) AS col0
----
-25
1

skipif mysql # not compatible
query II rowsort label-6684
SELECT - 25, + COUNT ( * ) AS col0
----
-25
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT - COUNT( DISTINCT + 63 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6685
SELECT - COUNT ( DISTINCT + 63 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - 64 + - COUNT( * ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6686
SELECT - 64 + - COUNT ( * ) AS col2
----
-65

query I rowsort
SELECT 73 * + - 99
----
-7227

query I rowsort
SELECT - 38 * - - CASE 46 WHEN + 53 THEN NULL WHEN 91 THEN + ( + + 50 ) + AVG ( DISTINCT 75 ) + 99 * - 5 * + 80 - + 7 * - 90 END + - - 16 AS col1
----
NULL

query I rowsort
SELECT - 78 + - 32 AS col0
----
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - ( + + MIN( + 17 ) )
----
-17

skipif mysql # not compatible
query I rowsort label-6690
SELECT - ( + + MIN ( + 17 ) )
----
-17

query II rowsort
SELECT ALL NULLIF ( - + 23, + - 3 ) AS col1, + 50 + - + 7
----
-23
43

query I rowsort
SELECT DISTINCT + 24 AS col2
----
24

query I rowsort
SELECT DISTINCT + 66 * - 93 * + + 81 AS col2
----
-497178

query I rowsort
SELECT ALL - COALESCE ( + - 25, - + 52 * + 19 )
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-6695
SELECT ALL 70, + 53 * - MAX( ALL + 21 ) col0
----
70
-1113

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL 70, + 53 * - MAX ( ALL + 21 ) col0
----
70
-1113

query I rowsort
SELECT - 41 * 22
----
-902

query I rowsort
SELECT - + ( + + 88 ) - NULLIF ( + 34, - - 16 ) col0
----
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT - 68 DIV + 83 * + 23 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 68 / + 83 * + 23 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - COUNT( * ) * + 40 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-6699
SELECT - COUNT ( * ) * + 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6700
SELECT + - MIN( 78 ) + - - ( + + 35 ) AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-6700
SELECT + - MIN ( 78 ) + - - ( + + 35 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT - MIN( 9 ) col1
----
-9

skipif mysql # not compatible
query I rowsort label-6701
SELECT - MIN ( 9 ) col1
----
-9

query I rowsort
SELECT ALL + + 60 AS col2
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT 75 DIV + 26 + 14 DIV + 9
----
3

skipif mysql # not compatible
query I rowsort label-6703
SELECT 75 / + 26 + 14 / + 9
----
3

query II rowsort
SELECT ALL + 19 AS col2, 5 * + 35
----
19
175

query I rowsort
SELECT ALL + + 4
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6706
SELECT - COALESCE ( - COALESCE ( 64, - 4 ), + COALESCE ( 0, - + 56 + + 4 - + 49 DIV + COUNT( * ) + + 8 * - COUNT( * ) * + 99 * + 63 * - SUM( ALL 76 ) DIV - - 1 * COALESCE ( + 23, - + 57 ) ), - + COALESCE ( 48, - 89 + + NULLIF ( 26, - 77 ) ) ) + - MAX( 57 ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6706
SELECT - COALESCE ( - COALESCE ( 64, - 4 ), + COALESCE ( 0, - + 56 + + 4 - + 49 / + COUNT ( * ) + + 8 * - COUNT ( * ) * + 99 * + 63 * - SUM ( ALL 76 ) / - - 1 * COALESCE ( + 23, - + 57 ) ), - + COALESCE ( 48, - 89 + + NULLIF ( 26, - 77 ) ) ) + - MAX ( 57 ) AS col1
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6707
SELECT ALL 82 * + + 48 AS col0, 34 * COUNT( * ) AS col0
----
3936
34

skipif mysql # not compatible
query II rowsort label-6707
SELECT ALL 82 * + + 48 AS col0, 34 * COUNT ( * ) AS col0
----
3936
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6708
SELECT ( + 42 ) * + 73 * - + CASE 72 WHEN + - COUNT( * ) THEN 34 ELSE + 32 END * - 49 * 16 * COUNT( * ) * - + 4 + + 68 + - CAST( + 98 AS SIGNED ) + 31
----
-307679231

skipif mysql # not compatible
query I rowsort label-6708
SELECT ( + 42 ) * + 73 * - + CASE 72 WHEN + - COUNT ( * ) THEN 34 ELSE + 32 END * - 49 * 16 * COUNT ( * ) * - + 4 + + 68 + - CAST ( + 98 AS INTEGER ) + 31
----
-307679231

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT CASE - - 97 WHEN + - ( + 38 ) THEN NULL WHEN 3 + COUNT( * ) THEN - ( - - 6 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6709
SELECT CASE - - 97 WHEN + - ( + 38 ) THEN NULL WHEN 3 + COUNT ( * ) THEN - ( - - 6 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6710
SELECT + COUNT( DISTINCT - - 38 ), - COALESCE ( + - 44, + COUNT( * ) - + - 27 + - - 2 * COALESCE ( + COUNT( + - 83 ), + 96 ) ) col2
----
1
44

skipif mysql # not compatible
query II rowsort label-6710
SELECT + COUNT ( DISTINCT - - 38 ), - COALESCE ( + - 44, + COUNT ( * ) - + - 27 + - - 2 * COALESCE ( + COUNT ( + - 83 ), + 96 ) ) col2
----
1
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT - MAX( + 91 ) * ( + NULLIF ( - + COUNT( DISTINCT - 61 ), - 5 ) ) - 0
----
91

skipif mysql # not compatible
query I rowsort label-6711
SELECT - MAX ( + 91 ) * ( + NULLIF ( - + COUNT ( DISTINCT - 61 ), - 5 ) ) - 0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6712
SELECT NULLIF ( - 63, - COUNT( ALL + 87 ) - - ( - 37 ) * 63 ), 85 AS col2
----
-63
85

skipif mysql # not compatible
query II rowsort label-6712
SELECT NULLIF ( - 63, - COUNT ( ALL + 87 ) - - ( - 37 ) * 63 ), 85 AS col2
----
-63
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + COUNT( + 63 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6713
SELECT + COUNT ( + 63 ) AS col2
----
1

query I rowsort
SELECT ALL + 63 * - 0
----
0

query II rowsort
SELECT + 16 + - 65 AS col0, + 57
----
-49
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT ALL COUNT( * ) * - 17 + 97
----
80

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL COUNT ( * ) * - 17 + 97
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT SUM( - 98 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-6717
SELECT SUM ( - 98 ) AS col0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6718
SELECT - 62 - + COUNT( * ) + 1 + - ( + - 6 )
----
-56

skipif mysql # not compatible
query I rowsort label-6718
SELECT - 62 - + COUNT ( * ) + 1 + - ( + - 6 )
----
-56

query I rowsort
SELECT - NULLIF ( - 58, - 92 ) AS col0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6720
SELECT + 38 - - - COUNT( * ) + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6720
SELECT + 38 - - - COUNT ( * ) + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + COUNT( * ) * + 64
----
64

skipif mysql # not compatible
query I rowsort label-6721
SELECT + COUNT ( * ) * + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT MAX( DISTINCT - - 16 )
----
16

skipif mysql # not compatible
query I rowsort label-6722
SELECT MAX ( DISTINCT - - 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT DISTINCT COUNT( * ) - COUNT( * ) * + 46 + 70 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-6723
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) * + 46 + 70 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6724
SELECT ALL - 28 - - 86 AS col2, - 96 - - CASE 27 WHEN 93 - - 74 THEN NULL WHEN - - NULLIF ( 38, - CASE + COUNT( DISTINCT + - CAST( - 87 AS SIGNED ) ) WHEN + + COALESCE ( - + COALESCE ( - 12, ( + 82 ) / 33 * - + 87 / + + 36 * 90 * - MAX( ALL - 66 ) ), COUNT( * ) + - 9, - CAST( NULL AS SIGNED ) + ( - 21 ) * 94, - 60 / - 54 ) THEN COALESCE ( MIN( ALL 37 ), + COUNT( * ) ) ELSE - 24 + + 61 END + COUNT( * ) ) THEN + COUNT( * ) * - 0 END AS col1
----
58
NULL

skipif mysql # not compatible
query II rowsort label-6724
SELECT ALL - 28 - - 86 AS col2, - 96 - - CASE 27 WHEN 93 - - 74 THEN NULL WHEN - - NULLIF ( 38, - CASE + COUNT ( DISTINCT + - CAST ( - 87 AS INTEGER ) ) WHEN + + COALESCE ( - + COALESCE ( - 12, ( + 82 ) / 33 * - + 87 / + + 36 * 90 * - MAX ( ALL - 66 ) ), COUNT ( * ) + - 9, - CAST ( NULL AS INTEGER ) + ( - 21 ) * 94, - 60 / - 54 ) THEN COALESCE ( MIN ( ALL 37 ), + COUNT ( * ) ) ELSE - 24 + + 61 END + COUNT ( * ) ) THEN + COUNT ( * ) * - 0 END AS col1
----
58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT + - ( - 39 ) DIV 75 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6725
SELECT + - ( - 39 ) / 75 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT DISTINCT + 59 * + 35 * + COUNT( * ) * + 97 AS col0
----
200305

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT + 59 * + 35 * + COUNT ( * ) * + 97 AS col0
----
200305

query I rowsort
SELECT + + 48 - - 49
----
97

query I rowsort
SELECT ALL 81 * - 55 * + 53 * + 83
----
-19597545

query I rowsort
SELECT ALL 86 - + 82
----
4

query I rowsort
SELECT + 69 * - - 82 AS col0
----
5658

query I rowsort
SELECT - + 21 col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT - COUNT( ALL 69 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6732
SELECT - COUNT ( ALL 69 ) AS col2
----
-1

query I rowsort
SELECT - + 90 + + ( + 10 )
----
-80

query I rowsort
SELECT DISTINCT - ( 68 )
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6735
SELECT - + CAST( + COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-6735
SELECT - + CAST ( + COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT DISTINCT - 82 + - - SUM( ALL - 13 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-6736
SELECT DISTINCT - 82 + - - SUM ( ALL - 13 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL + + NULLIF ( + 87, 87 * + 8 * 86 ) * NULLIF ( + COUNT( - 36 ), - + 44 * - - COALESCE ( - 32, - + 78 / 33 + CASE + 89 WHEN 77 THEN - - 57 WHEN - 73 - + 91 THEN NULL END / + ( + 48 ) ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL + + NULLIF ( + 87, 87 * + 8 * 86 ) * NULLIF ( + COUNT ( - 36 ), - + 44 * - - COALESCE ( - 32, - + 78 / 33 + CASE + 89 WHEN 77 THEN - - 57 WHEN - 73 - + 91 THEN NULL END / + ( + 48 ) ) ) AS col2
----
87

query I rowsort
SELECT - 41 * - ( - - 96 ) * - + 72
----
-283392

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT ALL ( 91 ) DIV 70 + - + 59 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL ( 91 ) / 70 + - + 59 AS col0
----
-58

query I rowsort
SELECT DISTINCT + 29 col2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + 66 / - - 44 + - AVG ( DISTINCT CASE 43 WHEN 6 THEN NULL WHEN - 68 * + 92 + + - 36 + - + 8 * + 11 * - - 87 + - 70 THEN + + 86 END ) * + - 28 / + NULLIF ( + 47, - + COUNT( * ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT + 66 / - - 44 + - AVG ( DISTINCT CASE 43 WHEN 6 THEN NULL WHEN - 68 * + 92 + + - 36 + - + 8 * + 11 * - - 87 + - 70 THEN + + 86 END ) * + - 28 / + NULLIF ( + 47, - + COUNT ( * ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT - COUNT( * ) + 85 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-6742
SELECT - COUNT ( * ) + 85 AS col1
----
84

query I rowsort
SELECT ( 21 ) AS col0
----
21

query I rowsort
SELECT - 22 - 60
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6745
SELECT ALL - 95 DIV 60
----
-1

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - 95 / 60
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6746
SELECT DISTINCT 65 * - CAST( NULL AS SIGNED ) + - + 24 * NULLIF ( + COUNT( * ), - + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT 65 * - CAST ( NULL AS INTEGER ) + - + 24 * NULLIF ( + COUNT ( * ), - + 47 )
----
NULL

query I rowsort
SELECT - 75 + 30
----
-45

query I rowsort
SELECT DISTINCT + CASE - + 24 WHEN + + 27 THEN - 94 END AS col1
----
NULL

query I rowsort
SELECT ( - 16 ) AS col1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT + 59 * + 91 * - CAST( NULL AS SIGNED ) + 38 / + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-6750
SELECT + 59 * + 91 * - CAST ( NULL AS INTEGER ) + 38 / + + 5
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT ALL + COALESCE ( - 34, + 0 ) * - 33 + + COUNT( * )
----
1123

skipif mysql # not compatible
query I rowsort label-6751
SELECT ALL + COALESCE ( - 34, + 0 ) * - 33 + + COUNT ( * )
----
1123

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT COALESCE ( - + 65, + NULLIF ( - + COUNT( * ), - + 92 ) * + 62, - 79 - 15 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-6752
SELECT COALESCE ( - + 65, + NULLIF ( - + COUNT ( * ), - + 92 ) * + 62, - 79 - 15 ) AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT + 45 - + COUNT( * ) col1
----
44

skipif mysql # not compatible
query I rowsort label-6753
SELECT + 45 - + COUNT ( * ) col1
----
44

query I rowsort
SELECT CASE 40 WHEN + 61 THEN + 18 WHEN - 41 THEN + 4 WHEN + 12 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT + 80 AS col0
----
80

query I rowsort
SELECT - 32 * - - 37 AS col2
----
-1184

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT ALL + 21 * 70 + COUNT( * ) + - 25 - 9 - + - 92
----
1529

skipif mysql # not compatible
query I rowsort label-6757
SELECT ALL + 21 * 70 + COUNT ( * ) + - 25 - 9 - + - 92
----
1529

query I rowsort
SELECT DISTINCT + ( - - 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6759
SELECT ALL COUNT( * ) DIV + + 97 - + MAX( - - 28 ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL COUNT ( * ) / + + 97 - + MAX ( - - 28 ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT COUNT( * ) * + + 5 / + - 55 * + 87 * + ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT COUNT ( * ) * + + 5 / + - 55 * + 87 * + ( + CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT - + 56, CASE WHEN NULL BETWEEN NULL AND ( NULL ) THEN - 77 ELSE - - ( - 48 ) END - + - 27 - 12 * + + 76 AS col2
----
-56
-933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6762
SELECT + 49 + CASE - 1 WHEN + COUNT( * ) THEN NULL WHEN - COUNT( * ) THEN + + 25 * + 41 * - 78 + + 14 WHEN COUNT( * ) + + + 55 THEN COUNT( * ) + + 64 DIV - 61 END * - 49 AS col0
----
3916913

skipif mysql # not compatible
query I rowsort label-6762
SELECT + 49 + CASE - 1 WHEN + COUNT ( * ) THEN NULL WHEN - COUNT ( * ) THEN + + 25 * + 41 * - 78 + + 14 WHEN COUNT ( * ) + + + 55 THEN COUNT ( * ) + + 64 / - 61 END * - 49 AS col0
----
3916913

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6763
SELECT ALL + COALESCE ( - - 42, - 43 * 79 * - 66 + - + 31 * + 42 - 1, + MAX( 90 ) ) DIV + - 68
----
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + COALESCE ( - - 42, - 43 * 79 * - 66 + - + 31 * + 42 - 1, + MAX ( 90 ) ) / + - 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT - NULLIF ( COUNT( * ), MAX( DISTINCT + 40 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6764
SELECT - NULLIF ( COUNT ( * ), MAX ( DISTINCT + 40 ) )
----
-1

query I rowsort
SELECT - 76 + + 23 col0
----
-53

query I rowsort
SELECT + ( 80 ) + + 99 + + + 12
----
191

query I rowsort
SELECT ALL + 56 * - + 54 + + + 56 AS col1
----
-2968

onlyif mysql # DIV for integer division: 
query I rowsort label-6768
SELECT ALL - 44 DIV - + 91 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6768
SELECT ALL - 44 / - + 91 AS col2
----
0

query I rowsort
SELECT - 98 + - 61 AS col2
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT ALL 42 + - + 0 * 55 AS col2, COALESCE ( - 73, NULLIF ( + 57, - 97 + COUNT( * ) + - NULLIF ( + + 82, - SUM( + 6 ) - + - MIN( + ( - - 75 ) ) ) * + - 73 ) ) col1
----
42
-73

skipif mysql # not compatible
query II rowsort label-6770
SELECT ALL 42 + - + 0 * 55 AS col2, COALESCE ( - 73, NULLIF ( + 57, - 97 + COUNT ( * ) + - NULLIF ( + + 82, - SUM ( + 6 ) - + - MIN ( + ( - - 75 ) ) ) * + - 73 ) ) col1
----
42
-73

query I rowsort
SELECT ALL + 53 + 28
----
81

query I rowsort
SELECT ALL - 61 col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT ALL - + CASE 12 WHEN CAST( NULL AS SIGNED ) - - - 19 THEN + + COUNT( * ) ELSE NULL END + ( + 87 ) + + - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL - + CASE 12 WHEN CAST ( NULL AS INTEGER ) - - - 19 THEN + + COUNT ( * ) ELSE NULL END + ( + 87 ) + + - 8
----
NULL

query II rowsort
SELECT DISTINCT 73 AS col1, 61 * + - COALESCE ( 44, - + 35 )
----
73
-2684

onlyif mysql # DIV for integer division: 
query I rowsort label-6775
SELECT 38 + - 98 DIV - - 40 - - 5
----
41

skipif mysql # not compatible
query I rowsort label-6775
SELECT 38 + - 98 / - - 40 - - 5
----
41

query I rowsort
SELECT ALL 47 + 60
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT 68 + + + 28 * + 8 + MIN( 67 ) * 5 AS col1
----
627

skipif mysql # not compatible
query I rowsort label-6777
SELECT 68 + + + 28 * + 8 + MIN ( 67 ) * 5 AS col1
----
627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6778
SELECT 3 + - ( + CAST( + 57 AS SIGNED ) ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-6778
SELECT 3 + - ( + CAST ( + 57 AS INTEGER ) ) AS col2
----
-54

query I rowsort
SELECT - 12 * - 12 * 18 + + 94
----
2686

query I rowsort
SELECT ALL NULLIF ( + 28, + 36 ) + - + ( - - 22 ) AS col1
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6781
SELECT 36 DIV + 50 + + CAST( 53 AS SIGNED )
----
53

skipif mysql # not compatible
query I rowsort label-6781
SELECT 36 / + 50 + + CAST ( 53 AS INTEGER )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT ALL - SUM( 71 ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL - SUM ( 71 ) AS col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT ALL + CAST( NULL AS SIGNED ) - + - 81 + + COUNT( * ) * 34 / 14 + + 65 * + + 6 + + 96 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL + CAST ( NULL AS INTEGER ) - + - 81 + + COUNT ( * ) * 34 / 14 + + 65 * + + 6 + + 96 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6784
SELECT DISTINCT - 54 AS col0, 87 * + 28 * - MIN( + 11 ) * - 82 * - - 50 * - 0 AS col1
----
-54
0

skipif mysql # not compatible
query II rowsort label-6784
SELECT DISTINCT - 54 AS col0, 87 * + 28 * - MIN ( + 11 ) * - 82 * - - 50 * - 0 AS col1
----
-54
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT 93 DIV + 60 col2
----
1

skipif mysql # not compatible
query I rowsort label-6785
SELECT 93 / + 60 col2
----
1

query I rowsort
SELECT 28 * - + 76 * 60 * - 78 AS col0
----
9959040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6787
SELECT ALL - MAX( CAST( 18 AS SIGNED ) )
----
-18

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL - MAX ( CAST ( 18 AS INTEGER ) )
----
-18

query II rowsort
SELECT DISTINCT - 70 AS col0, + 82
----
-70
82

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT 18 DIV 60 * - 48
----
0

skipif mysql # not compatible
query I rowsort label-6789
SELECT 18 / 60 * - 48
----
0

query I rowsort
SELECT 28 * + 31 AS col2
----
868

query I rowsort
SELECT + - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL + 20 * COALESCE ( - + 73, - SUM( + 71 ), + 23 - - COALESCE ( - ( 78 ), - - 27 + 8 + - MAX( ALL + + 86 ) ) )
----
-1460

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL + 20 * COALESCE ( - + 73, - SUM ( + 71 ), + 23 - - COALESCE ( - ( 78 ), - - 27 + 8 + - MAX ( ALL + + 86 ) ) )
----
-1460

query I rowsort
SELECT ( - 95 ) * 16
----
-1520

query II rowsort
SELECT ALL - 68 AS col0, 6 AS col2
----
-68
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT 27 - - MAX( + 90 ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-6795
SELECT 27 - - MAX ( + 90 ) AS col1
----
117

query II rowsort
SELECT - 50 col1, 88 AS col1
----
-50
88

query I rowsort
SELECT DISTINCT - - 73 + - 59 AS col0
----
14

query I rowsort
SELECT ALL - 93 + + COALESCE ( + 99, + + 11 )
----
6

query I rowsort
SELECT 27 * + + 52 AS col0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL - SUM( + 71 ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - SUM ( + 71 ) AS col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + SUM( + 92 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-6801
SELECT + SUM ( + 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6802
SELECT - - 76 AS col2, + COUNT( * )
----
76
1

skipif mysql # not compatible
query II rowsort label-6802
SELECT - - 76 AS col2, + COUNT ( * )
----
76
1

query I rowsort
SELECT + ( + 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6804
SELECT ALL - ( + ( 12 ) ) + + CAST( - - 67 AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL - ( + ( 12 ) ) + + CAST ( - - 67 AS INTEGER ) AS col0
----
55

query I rowsort
SELECT 7 * - + 54
----
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT - COUNT( * ) * SUM( - - 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-6806
SELECT - COUNT ( * ) * SUM ( - - 32 ) AS col0
----
-32

onlyif mysql # aggregate syntax: 
query II rowsort label-6807
SELECT 53 * + - ( MAX( ALL 65 ) ) AS col0, + 67 + - 51 * 99 AS col1
----
-3445
-4982

skipif mysql # not compatible
query II rowsort label-6807
SELECT 53 * + - ( MAX ( ALL 65 ) ) AS col0, + 67 + - 51 * 99 AS col1
----
-3445
-4982

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL SUM( - 66 ) + - 46 * - ( + 30 )
----
1314

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL SUM ( - 66 ) + - 46 * - ( + 30 )
----
1314

query I rowsort
SELECT 84 - + 55 AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-6810
SELECT DISTINCT 58 * + 13, MIN( DISTINCT - + 89 ) col0
----
754
-89

skipif mysql # not compatible
query II rowsort label-6810
SELECT DISTINCT 58 * + 13, MIN ( DISTINCT - + 89 ) col0
----
754
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6811
SELECT COUNT( * ) DIV - 3 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT COUNT ( * ) / - 3 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL MIN( ALL 12 ) * 5 * - ( - 12 ) AS col1
----
720

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL MIN ( ALL 12 ) * 5 * - ( - 12 ) AS col1
----
720

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT ALL + 64 * + 75 - COUNT( * ) AS col0
----
4799

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + 64 * + 75 - COUNT ( * ) AS col0
----
4799

onlyif mysql # aggregate syntax: 
query II rowsort label-6814
SELECT DISTINCT 99 * SUM( - 59 ), 95 + 63 + + + 91 col1
----
-5841
249

skipif mysql # not compatible
query II rowsort label-6814
SELECT DISTINCT 99 * SUM ( - 59 ), 95 + 63 + + + 91 col1
----
-5841
249

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT MIN( - + 58 ) AS col1, 19 AS col1
----
-58
19

skipif mysql # not compatible
query II rowsort label-6815
SELECT MIN ( - + 58 ) AS col1, 19 AS col1
----
-58
19

query I rowsort
SELECT 32 * + 6 AS col0
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-6817
SELECT 78 DIV + 42 + - 99 AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-6817
SELECT 78 / + 42 + - 99 AS col1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6818
SELECT + NULLIF ( + - CAST( NULL AS SIGNED ), - 19 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6818
SELECT + NULLIF ( + - CAST ( NULL AS INTEGER ), - 19 ) AS col1
----
NULL

query I rowsort
SELECT 9 * + + 35
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6820
SELECT NULLIF ( CAST( NULL AS SIGNED ), 47 ) + + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6820
SELECT NULLIF ( CAST ( NULL AS INTEGER ), 47 ) + + 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT - MIN( + NULLIF ( - + 43, 8 * + - 10 ) ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - MIN ( + NULLIF ( - + 43, 8 * + - 10 ) ) AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT 42 * + 3 - - COUNT( * ) AS col2
----
127

skipif mysql # not compatible
query I rowsort label-6822
SELECT 42 * + 3 - - COUNT ( * ) AS col2
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT - ( + 37 ) * 68 + + + COUNT( * ) * + - 19 - 87
----
-2622

skipif mysql # not compatible
query I rowsort label-6823
SELECT - ( + 37 ) * 68 + + + COUNT ( * ) * + - 19 - 87
----
-2622

query II rowsort
SELECT DISTINCT 50 * + 14, 55 * 41 * + - 33 AS col2
----
700
-74415

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT 0 * COUNT( * ) + - + COALESCE ( 74, + 57 * 52, - 25 )
----
-74

skipif mysql # not compatible
query I rowsort label-6825
SELECT 0 * COUNT ( * ) + - + COALESCE ( 74, + 57 * 52, - 25 )
----
-74

query I rowsort
SELECT ALL + 29 AS col1
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6827
SELECT + + COUNT( ALL - + 74 ) DIV - + 69 AS col1, + 25 * - 75
----
0
-1875

skipif mysql # not compatible
query II rowsort label-6827
SELECT + + COUNT ( ALL - + 74 ) / - + 69 AS col1, + 25 * - 75
----
0
-1875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6828
SELECT - + 78 DIV - + 36 + + - 40 * + + COALESCE ( - COUNT( * ), 25, + + 43 ) + 82 + + - CASE + 1 WHEN + 20 * - 54 * - ( + 98 ) THEN NULL WHEN + 56 THEN - ( - 17 ) ELSE ( - + 75 ) END - + - NULLIF ( - COUNT( * ), 44 * - - 97 + 77 + - CAST( + 41 AS SIGNED ) ) * 87 DIV - 14
----
205

skipif mysql # not compatible
query I rowsort label-6828
SELECT - + 78 / - + 36 + + - 40 * + + COALESCE ( - COUNT ( * ), 25, + + 43 ) + 82 + + - CASE + 1 WHEN + 20 * - 54 * - ( + 98 ) THEN NULL WHEN + 56 THEN - ( - 17 ) ELSE ( - + 75 ) END - + - NULLIF ( - COUNT ( * ), 44 * - - 97 + 77 + - CAST ( + 41 AS INTEGER ) ) * 87 / - 14
----
205

query I rowsort
SELECT + 21 * - 6 + - 76 + 28 * + 3 + - 76 + 40 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT 59 * 10 + + - ( + COUNT( * ) )
----
589

skipif mysql # not compatible
query I rowsort label-6830
SELECT 59 * 10 + + - ( + COUNT ( * ) )
----
589

query I rowsort
SELECT ALL + 55 AS col0
----
55

query I rowsort
SELECT DISTINCT 34 col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT - 47 + 76 + + + 14 + + 84 * - 21 * + COUNT( * )
----
-1721

skipif mysql # not compatible
query I rowsort label-6833
SELECT - 47 + 76 + + + 14 + + 84 * - 21 * + COUNT ( * )
----
-1721

query I rowsort
SELECT - 51 * - - ( + 63 ) * + 73
----
-234549

query I rowsort
SELECT - 60 + + - 39 + 0
----
-99

query I rowsort
SELECT - + 76 * ( 16 )
----
-1216

query I rowsort
SELECT DISTINCT - - 95 + - 20
----
75

query I rowsort
SELECT - - NULLIF ( + 31, - 33 ) + + 99 + 52 AS col2
----
182

query I rowsort
SELECT DISTINCT ( + 71 )
----
71

query I rowsort
SELECT ALL ( - 22 )
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6841
SELECT - COUNT( * ) + - 36 DIV - + 74 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6841
SELECT - COUNT ( * ) + - 36 / - + 74 AS col2
----
-1

query I rowsort
SELECT DISTINCT - 36 - + 28 AS col1
----
-64

query I rowsort
SELECT - 99 + - 75
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-6844
SELECT DISTINCT 88 AS col0, + COUNT( * ) AS col0
----
88
1

skipif mysql # not compatible
query II rowsort label-6844
SELECT DISTINCT 88 AS col0, + COUNT ( * ) AS col0
----
88
1

query I rowsort
SELECT DISTINCT CASE ( - 98 ) WHEN - 87 THEN 44 END
----
NULL

query I rowsort
SELECT + 52 + - ( + 77 )
----
-25

query I rowsort
SELECT ALL ( - 81 ) AS col2
----
-81

query I rowsort
SELECT + 69 + + ( - + 69 ) * + 82 AS col1
----
-5589

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT + 28 * COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-6849
SELECT + 28 * COUNT ( * ) AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + 45 + + 49 + + COUNT( * ) + - + 40 + + 6 - + ( 94 ) * - 73 * 32 AS col1
----
219645

skipif mysql # not compatible
query I rowsort label-6850
SELECT + 45 + + 49 + + COUNT ( * ) + - + 40 + + 6 - + ( 94 ) * - 73 * 32 AS col1
----
219645

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT - 92 DIV + 18
----
-5

skipif mysql # not compatible
query I rowsort label-6851
SELECT - 92 / + 18
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT + 10 + - - COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 10 + - - COUNT ( * )
----
11

query I rowsort
SELECT ALL + 74 * ( + - 7 ) col2
----
-518

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6854
SELECT + 86 + CAST( - + 69 AS DECIMAL ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT + 86 + CAST ( - + 69 AS REAL ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT ALL + 8 AS col0, - 87
----
8
-87

query I rowsort
SELECT + 3 * 45
----
135

query I rowsort
SELECT DISTINCT 9 * 34 col1
----
306

query I rowsort
SELECT + ( + 47 ) AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + 38 * 49 * - - MIN( + 12 ) AS col0
----
22344

skipif mysql # not compatible
query I rowsort label-6859
SELECT + 38 * 49 * - - MIN ( + 12 ) AS col0
----
22344

query I rowsort
SELECT ALL - 69 * + 66 - + 49 + - ( - 80 ) - - + 18 + - + 48 * + ( - - 31 ) + - - 71 + 99 + + + 41
----
-5782

query I rowsort
SELECT + - 8 col1
----
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6862
SELECT + + COALESCE ( - 83, 38 * + + 62 DIV SUM( DISTINCT - + 40 ) DIV + 4 + + - 59 - 50 * + 18, + - ( 75 ) DIV - 83 + - + 42 + - 98 ) + - 61 AS col2, 13 col0
----
-144
13

skipif mysql # not compatible
query II rowsort label-6862
SELECT + + COALESCE ( - 83, 38 * + + 62 / SUM ( DISTINCT - + 40 ) / + 4 + + - 59 - 50 * + 18, + - ( 75 ) / - 83 + - + 42 + - 98 ) + - 61 AS col2, 13 col0
----
-144
13

onlyif mysql # aggregate syntax: 
query II rowsort label-6863
SELECT + - 54 * + 26 + + MAX( DISTINCT - 90 ) AS col2, 77 * 74
----
-1494
5698

skipif mysql # not compatible
query II rowsort label-6863
SELECT + - 54 * + 26 + + MAX ( DISTINCT - 90 ) AS col2, 77 * 74
----
-1494
5698

query I rowsort
SELECT + - 48 + - 83
----
-131

query I rowsort
SELECT ALL + ( 61 ) * 23 * - 94 + 77 * + - 53
----
-135963

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT + NULLIF ( + + 25, + - CASE + 96 WHEN - COALESCE ( - 39, - 11 + - 19, - + 44 + - 48 ) * 58 * + COALESCE ( + 16, - 53 ) THEN COUNT( ALL + - ( + 68 ) ) + + 36 ELSE NULL END ) col2, ( + - 58 ) * - 25 * - - 33
----
25
47850

skipif mysql # not compatible
query II rowsort label-6866
SELECT + NULLIF ( + + 25, + - CASE + 96 WHEN - COALESCE ( - 39, - 11 + - 19, - + 44 + - 48 ) * 58 * + COALESCE ( + 16, - 53 ) THEN COUNT ( ALL + - ( + 68 ) ) + + 36 ELSE NULL END ) col2, ( + - 58 ) * - 25 * - - 33
----
25
47850

onlyif mysql # aggregate syntax: 
query II rowsort label-6867
SELECT + + 47 * + COUNT( * ) * 12 * - - 57 + + 26 + - + 71, - 88 * 56 * - 35 * + 31 AS col0
----
32103
5346880

skipif mysql # not compatible
query II rowsort label-6867
SELECT + + 47 * + COUNT ( * ) * 12 * - - 57 + + 26 + - + 71, - 88 * 56 * - 35 * + 31 AS col0
----
32103
5346880

query I rowsort
SELECT ALL + + 72 * - 46
----
-3312

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT ALL - COUNT( DISTINCT 7 ) * - + 66 + + - 79
----
-13

skipif mysql # not compatible
query I rowsort label-6869
SELECT ALL - COUNT ( DISTINCT 7 ) * - + 66 + + - 79
----
-13

query II rowsort
SELECT + - 57 col0, 28
----
-57
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6871
SELECT - - NULLIF ( + - 49, - 46 + - + 17 ), - 14 DIV COUNT( ALL ( - 85 ) ) + ( 95 ) * 96 AS col0
----
-49
9106

skipif mysql # not compatible
query II rowsort label-6871
SELECT - - NULLIF ( + - 49, - 46 + - + 17 ), - 14 / COUNT ( ALL ( - 85 ) ) + ( 95 ) * 96 AS col0
----
-49
9106

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT - + 22 * - + 81 * - - 24 - + ( - ( + CASE + - 88 WHEN ( 27 ) THEN NULL WHEN + + 2 * 36 THEN 69 - + - COUNT( * ) + - + 25 ELSE NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT - + 22 * - + 81 * - - 24 - + ( - ( + CASE + - 88 WHEN ( 27 ) THEN NULL WHEN + + 2 * 36 THEN 69 - + - COUNT ( * ) + - + 25 ELSE NULL END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-6873
SELECT + ( - ( 29 ) ) AS col0, - 75 DIV - ( + - 77 ), + - 81 AS col1
----
-29
0
-81

skipif mysql # not compatible
query III rowsort label-6873
SELECT + ( - ( 29 ) ) AS col0, - 75 / - ( + - 77 ), + - 81 AS col1
----
-29
0
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6874
SELECT - - 5 + - + 18 * CAST( NULL AS SIGNED ) AS col1, 11
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6874
SELECT - - 5 + - + 18 * CAST ( NULL AS INTEGER ) AS col1, 11
----
NULL
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL COUNT( ALL - - 39 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL COUNT ( ALL - - 39 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT - + 30 + + 31 * - COUNT( ALL + ( + 24 ) )
----
-61

skipif mysql # not compatible
query I rowsort label-6876
SELECT - + 30 + + 31 * - COUNT ( ALL + ( + 24 ) )
----
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-6877
SELECT ALL + 50 DIV + 86 * 25 + 72 * - ( 75 ), - 53 AS col0
----
-5400
-53

skipif mysql # not compatible
query II rowsort label-6877
SELECT ALL + 50 / + 86 * 25 + 72 * - ( 75 ), - 53 AS col0
----
-5400
-53

query II rowsort
SELECT - 53, 11 AS col2
----
-53
11

query I rowsort
SELECT - 58 - 97 - + + 68 AS col2
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-6880
SELECT - 76 * + 47 AS col0, - COUNT( * )
----
-3572
-1

skipif mysql # not compatible
query II rowsort label-6880
SELECT - 76 * + 47 AS col0, - COUNT ( * )
----
-3572
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL CASE + 1 WHEN + COUNT( * ) / 82 THEN + COUNT( * ) WHEN 37 + - - 74 THEN + 19 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL CASE + 1 WHEN + COUNT ( * ) / 82 THEN + COUNT ( * ) WHEN 37 + - - 74 THEN + 19 ELSE NULL END AS col0
----
NULL

query II rowsort
SELECT ALL - 87 * - 78 AS col1, + 80 + 58 - + 58
----
6786
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6883
SELECT - 16 * + 89 * + 58 * + - ( - - ( + + COUNT( * ) ) ) * 51 AS col1, 94 * + + CAST( NULL AS SIGNED ) * COUNT( - 12 )
----
4212192
NULL

skipif mysql # not compatible
query II rowsort label-6883
SELECT - 16 * + 89 * + 58 * + - ( - - ( + + COUNT ( * ) ) ) * 51 AS col1, 94 * + + CAST ( NULL AS INTEGER ) * COUNT ( - 12 )
----
4212192
NULL

query I rowsort
SELECT 38 * - - 3 col1
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT ALL - NULLIF ( - 58, + - COUNT( * ) * - - ( - NULLIF ( 18, - 53 + - + 7 ) ) * 44 ) + + 62 AS col1
----
120

skipif mysql # not compatible
query I rowsort label-6885
SELECT ALL - NULLIF ( - 58, + - COUNT ( * ) * - - ( - NULLIF ( 18, - 53 + - + 7 ) ) * 44 ) + + 62 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT 79 * - + 50 + COUNT( * ) col1
----
-3949

skipif mysql # not compatible
query I rowsort label-6886
SELECT 79 * - + 50 + COUNT ( * ) col1
----
-3949

onlyif mysql # DIV for integer division: 
query I rowsort label-6887
SELECT - 67 DIV - - 28 + - 56 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-6887
SELECT - 67 / - - 28 + - 56 AS col0
----
-58

query I rowsort
SELECT + 4 + + 56 + + - 98
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6889
SELECT + ( - 51 ) * CASE - 33 WHEN 94 THEN - + 45 - 3 + - 5 - + 25 / + + 70 * 32 / - + CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) * + COALESCE ( 14, COUNT( * ) ) END + ( 94 ) * 15 + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6889
SELECT + ( - 51 ) * CASE - 33 WHEN 94 THEN - + 45 - 3 + - 5 - + 25 / + + 70 * 32 / - + CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) * + COALESCE ( 14, COUNT ( * ) ) END + ( 94 ) * 15 + + 16 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6890
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 1 col1, + 44 * - 17
----
NULL
-748

skipif mysql # not compatible
query II rowsort label-6890
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 1 col1, + 44 * - 17
----
NULL
-748

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT ALL + 61 DIV 26
----
2

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL + 61 / 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT - COUNT( * ) * + + 38 + - 84 * 87 * - - 51 AS col1
----
-372746

skipif mysql # not compatible
query I rowsort label-6892
SELECT - COUNT ( * ) * + + 38 + - 84 * 87 * - - 51 AS col1
----
-372746

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6893
SELECT DISTINCT + + 66 * + - COUNT( * ), 82 DIV - ( - ( + COUNT( * ) ) ) + - - ( 29 ) AS col0
----
-66
111

skipif mysql # not compatible
query II rowsort label-6893
SELECT DISTINCT + + 66 * + - COUNT ( * ), 82 / - ( - ( + COUNT ( * ) ) ) + - - ( 29 ) AS col0
----
-66
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT + 49 * + COUNT( * ) + 35
----
84

skipif mysql # not compatible
query I rowsort label-6894
SELECT + 49 * + COUNT ( * ) + 35
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT + - SUM( - 53 )
----
53

skipif mysql # not compatible
query I rowsort label-6895
SELECT + - SUM ( - 53 )
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT DISTINCT + - COUNT( * ) * - SUM( DISTINCT 49 )
----
49

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + - COUNT ( * ) * - SUM ( DISTINCT 49 )
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6897
SELECT ALL - - 53 + - MAX( DISTINCT - 46 ) * + CASE - 51 WHEN - MAX( + - 99 ) THEN - + CAST( NULL AS SIGNED ) WHEN + - 13 THEN NULL ELSE + COALESCE ( + - 62, - 46 ) END
----
-2799

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL - - 53 + - MAX ( DISTINCT - 46 ) * + CASE - 51 WHEN - MAX ( + - 99 ) THEN - + CAST ( NULL AS INTEGER ) WHEN + - 13 THEN NULL ELSE + COALESCE ( + - 62, - 46 ) END
----
-2799

query I rowsort
SELECT 56 * - + COALESCE ( + 1, - - 54 ) + + 27 AS col1
----
-29

query I rowsort
SELECT + ( - 19 ) + + 6
----
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT - 61 * - 23 * + 24 + 72 - + MAX( - 80 ) DIV 83 + - 11
----
33733

skipif mysql # not compatible
query I rowsort label-6900
SELECT - 61 * - 23 * + 24 + 72 - + MAX ( - 80 ) / 83 + - 11
----
33733

query I rowsort
SELECT DISTINCT - + 77
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6902
SELECT ALL - - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL - - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT ALL 0 * + 9 * COUNT( * ) * COUNT( * ) * + 64 * + 69 - + 61
----
-61

skipif mysql # not compatible
query I rowsort label-6903
SELECT ALL 0 * + 9 * COUNT ( * ) * COUNT ( * ) * + 64 * + 69 - + 61
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6904
SELECT - 69 + - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-6904
SELECT - 69 + - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6905
SELECT CAST( NULL AS SIGNED ) * - - 20 + + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6905
SELECT CAST ( NULL AS INTEGER ) * - - 20 + + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6906
SELECT CAST( NULL AS SIGNED ) * + ( COUNT( * ) ) * - + 46 * + 93 + - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT CAST ( NULL AS INTEGER ) * + ( COUNT ( * ) ) * - + 46 * + 93 + - 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6907
SELECT CAST( NULL AS SIGNED ) - - NULLIF ( - COUNT( * ), 5 + - ( - - 20 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT CAST ( NULL AS INTEGER ) - - NULLIF ( - COUNT ( * ), 5 + - ( - - 20 ) ) AS col2
----
NULL

query I rowsort
SELECT 41 + + 38 AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6909
SELECT 48 * + 28 * + CASE NULLIF ( - 20, - + 44 ) WHEN + - COALESCE ( - 63, 14 ) THEN NULL ELSE ( + 23 ) DIV + 64 * CAST( - 42 AS SIGNED ) END DIV 36 * - 99 AS col1, - 10
----
0
-10

skipif mysql # not compatible
query II rowsort label-6909
SELECT 48 * + 28 * + CASE NULLIF ( - 20, - + 44 ) WHEN + - COALESCE ( - 63, 14 ) THEN NULL ELSE ( + 23 ) / + 64 * CAST ( - 42 AS INTEGER ) END / 36 * - 99 AS col1, - 10
----
0
-10

query I rowsort
SELECT ALL 95 AS col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6911
SELECT CAST( NULL AS SIGNED ) + + CASE 85 WHEN - NULLIF ( + 68, - 4 ) THEN - 18 WHEN COUNT( * ) THEN NULL WHEN - 20 THEN NULL ELSE - 16 END + + - 44 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6911
SELECT CAST ( NULL AS INTEGER ) + + CASE 85 WHEN - NULLIF ( + 68, - 4 ) THEN - 18 WHEN COUNT ( * ) THEN NULL WHEN - 20 THEN NULL ELSE - 16 END + + - 44 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6912
SELECT DISTINCT COALESCE ( - ( + ( - 12 ) ), 89 ) * + COUNT( * ) * - 75 * + COUNT( * ) * - - 12 * - 53 * - + 18
----
-10303200

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT COALESCE ( - ( + ( - 12 ) ), 89 ) * + COUNT ( * ) * - 75 * + COUNT ( * ) * - - 12 * - 53 * - + 18
----
-10303200

query I rowsort
SELECT 47 + + 44 col2
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6914
SELECT DISTINCT 27 + - - COUNT( * ) - + 12 + - 90 + - + 42 * - + CASE + 33 WHEN COALESCE ( + - 40, - COUNT( * ), - 43 ) + + COUNT( * ) + + COUNT( * ) THEN + ( - - 59 ) / + MIN( ALL - - CAST( NULL AS SIGNED ) ) + 25 WHEN - + 55 * 88 THEN ( - 24 ) ELSE NULL END * - 35 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT 27 + - - COUNT ( * ) - + 12 + - 90 + - + 42 * - + CASE + 33 WHEN COALESCE ( + - 40, - COUNT ( * ), - 43 ) + + COUNT ( * ) + + COUNT ( * ) THEN + ( - - 59 ) / + MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + 25 WHEN - + 55 * 88 THEN ( - 24 ) ELSE NULL END * - 35 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT 63 + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6915
SELECT 63 + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL 17 AS col0, 88 + 72 AS col2
----
17
160

query I rowsort
SELECT ALL + 56 * + - 57
----
-3192

query I rowsort
SELECT ( 58 ) * - + 55 * - 31 AS col0
----
98890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT DISTINCT + 38 + - + SUM( ALL 87 ) + CAST( - 54 AS SIGNED ) + + 23
----
-80

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT + 38 + - + SUM ( ALL 87 ) + CAST ( - 54 AS INTEGER ) + + 23
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6920
SELECT ALL 85 * + CASE - 73 WHEN COUNT( * ) / + + 89 + 50 + + - 27 THEN NULL WHEN + CAST( NULL AS SIGNED ) + - ( - + SUM( ALL + 76 ) ) + - - COUNT( CAST( NULL AS SIGNED ) ) * + 95 THEN NULL WHEN - ( - ( COUNT( * ) ) ) / - 85 + - + CAST( NULL AS SIGNED ) + NULLIF ( + + 43, 82 ) THEN - + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL 85 * + CASE - 73 WHEN COUNT ( * ) / + + 89 + 50 + + - 27 THEN NULL WHEN + CAST ( NULL AS INTEGER ) + - ( - + SUM ( ALL + 76 ) ) + - - COUNT ( CAST ( NULL AS INTEGER ) ) * + 95 THEN NULL WHEN - ( - ( COUNT ( * ) ) ) / - 85 + - + CAST ( NULL AS INTEGER ) + NULLIF ( + + 43, 82 ) THEN - + 39 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT + 24 * ( + - SUM( - 92 ) )
----
2208

skipif mysql # not compatible
query I rowsort label-6921
SELECT + 24 * ( + - SUM ( - 92 ) )
----
2208

query I rowsort
SELECT DISTINCT + - 64 + 65 + + 16 AS col2
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6923
SELECT ALL - - 82 AS col2, 76 * + CAST( NULL AS SIGNED ) / + 99 * - - 32 AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6923
SELECT ALL - - 82 AS col2, 76 * + CAST ( NULL AS INTEGER ) / + 99 * - - 32 AS col1
----
82
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT + COUNT( * ) AS col0, + 36 + + 35
----
1
71

skipif mysql # not compatible
query II rowsort label-6924
SELECT + COUNT ( * ) AS col0, + 36 + + 35
----
1
71

query I rowsort
SELECT ALL + 66 - - 42 AS col0
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6926
SELECT + + 81 DIV + + 83 + COUNT( * ) - + 66
----
-65

skipif mysql # not compatible
query I rowsort label-6926
SELECT + + 81 / + + 83 + COUNT ( * ) - + 66
----
-65

query I rowsort
SELECT - ( + + 91 )
----
-91

query II rowsort
SELECT + 8, 88 AS col1
----
8
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT 86 DIV - + 5 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-6929
SELECT 86 / - + 5 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT MAX( ALL + 5 ) * - 2 AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-6930
SELECT MAX ( ALL + 5 ) * - 2 AS col2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT COALESCE ( + COUNT( * ), + 64 + 95 ) * - COALESCE ( 98, 15 )
----
-98

skipif mysql # not compatible
query I rowsort label-6931
SELECT COALESCE ( + COUNT ( * ), + 64 + 95 ) * - COALESCE ( 98, 15 )
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT DISTINCT - + 46 DIV - 15 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - + 46 / - 15 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6933
SELECT MIN( + - 56 ) DIV 10
----
-5

skipif mysql # not compatible
query I rowsort label-6933
SELECT MIN ( + - 56 ) / 10
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT - 22 * + 6 / + 64 + - 45 * SUM( + - 31 ) + + CASE 34 WHEN + 2 THEN + COUNT( * ) WHEN + 30 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - 22 * + 6 / + 64 + - 45 * SUM ( + - 31 ) + + CASE 34 WHEN + 2 THEN + COUNT ( * ) WHEN + 30 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT SUM( 73 ) AS col2
----
73

skipif mysql # not compatible
query I rowsort label-6935
SELECT SUM ( 73 ) AS col2
----
73

query II rowsort
SELECT - 27 AS col0, 38 col2
----
-27
38

query I rowsort
SELECT 96 + + 13
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - MAX( 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6938
SELECT - MAX ( 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6939
SELECT ALL 81 AS col0, 45 DIV - COUNT( * ) AS col1
----
81
-45

skipif mysql # not compatible
query II rowsort label-6939
SELECT ALL 81 AS col0, 45 / - COUNT ( * ) AS col1
----
81
-45

onlyif mysql # aggregate syntax: 
query III rowsort label-6940
SELECT COUNT( * ) * 72 AS col1, - 2 + - - 76, + 56 + + - 22 col0
----
72
74
34

skipif mysql # not compatible
query III rowsort label-6940
SELECT COUNT ( * ) * 72 AS col1, - 2 + - - 76, + 56 + + - 22 col0
----
72
74
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT - 41 * + - 40 + + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6941
SELECT - 41 * + - 40 + + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6942
SELECT ALL 90 col0, + 38 DIV - + 78 * - 86 * 16 AS col0
----
90
0

skipif mysql # not compatible
query II rowsort label-6942
SELECT ALL 90 col0, + 38 / - + 78 * - 86 * 16 AS col0
----
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT - COUNT( * ) + - + 57 + + - 1
----
-59

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - COUNT ( * ) + - + 57 + + - 1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6944
SELECT + 63 DIV + + COUNT( * ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-6944
SELECT + 63 / + + COUNT ( * ) AS col0
----
63

query I rowsort
SELECT DISTINCT 86 * - 33 AS col0
----
-2838

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - MAX( DISTINCT 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6946
SELECT - MAX ( DISTINCT 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6947
SELECT - COALESCE ( - 30, + 77, - - AVG ( DISTINCT - + CAST( - 39 AS SIGNED ) ) * + 31 DIV COUNT( * ) * + 32 * 97 - 46, + 7 )
----
30

skipif mysql # not compatible
query I rowsort label-6947
SELECT - COALESCE ( - 30, + 77, - - AVG ( DISTINCT - + CAST ( - 39 AS INTEGER ) ) * + 31 / COUNT ( * ) * + 32 * 97 - 46, + 7 )
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT + 27 DIV - - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6948
SELECT + 27 / - - 65 AS col0
----
0

query I rowsort
SELECT + 33 * - 73 col0
----
-2409

query II rowsort
SELECT 72 AS col0, 5
----
72
5

query I rowsort
SELECT ALL 15 + 11
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT + COUNT( * ) - 88 - - + 30
----
-57

skipif mysql # not compatible
query I rowsort label-6952
SELECT + COUNT ( * ) - 88 - - + 30
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6953
SELECT DISTINCT ( - - 88 ) * - - 86 * 85 * - ( - COUNT( * ) ), CASE + 77 WHEN + 70 + - 57 + - + 48 * - CAST( NULL AS DECIMAL ) THEN - CAST( + 89 AS SIGNED ) + + COALESCE ( - + 27, AVG ( DISTINCT + 77 ) ) + COUNT( * ) - + 69 / - 37 * + 41 WHEN COUNT( * ) THEN + + 72 + - - 8 ELSE NULL END * 46 + - 94 AS col0
----
643280
NULL

skipif mysql # not compatible
query II rowsort label-6953
SELECT DISTINCT ( - - 88 ) * - - 86 * 85 * - ( - COUNT ( * ) ), CASE + 77 WHEN + 70 + - 57 + - + 48 * - CAST ( NULL AS REAL ) THEN - CAST ( + 89 AS INTEGER ) + + COALESCE ( - + 27, AVG ( DISTINCT + 77 ) ) + COUNT ( * ) - + 69 / - 37 * + 41 WHEN COUNT ( * ) THEN + + 72 + - - 8 ELSE NULL END * 46 + - 94 AS col0
----
643280
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT DISTINCT - 39 DIV 69 * 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - 39 / 69 * 2 AS col2
----
0

query I rowsort
SELECT ALL - 70 - + 89 * + 5 * + 24 * - 30
----
320330

onlyif mysql # aggregate syntax: 
query II rowsort label-6956
SELECT 89 * - + 98 + - - 19 + + 3 AS col1, + 56 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 59 AND + - 38 * + 86 + - 58 * 17 + + 43 THEN - 6 END + - ( - - COUNT( * ) ) AS col0
----
-8700
NULL

skipif mysql # not compatible
query II rowsort label-6956
SELECT 89 * - + 98 + - - 19 + + 3 AS col1, + 56 * CASE WHEN NOT ( NULL ) NOT BETWEEN - 59 AND + - 38 * + 86 + - 58 * 17 + + 43 THEN - 6 END + - ( - - COUNT ( * ) ) AS col0
----
-8700
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT ALL 14 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 14 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT + + 20 DIV + 39 + - 73
----
-73

skipif mysql # not compatible
query I rowsort label-6958
SELECT + + 20 / + 39 + - 73
----
-73

onlyif mysql # aggregate syntax: 
query II rowsort label-6959
SELECT + COUNT( * ) AS col2, + 5 * 45 + - + SUM( DISTINCT - 56 )
----
1
281

skipif mysql # not compatible
query II rowsort label-6959
SELECT + COUNT ( * ) AS col2, + 5 * 45 + - + SUM ( DISTINCT - 56 )
----
1
281

onlyif mysql # aggregate syntax: 
query II rowsort label-6960
SELECT + 3 * 52 + 57 + + - 80 * + ( 40 ), - COALESCE ( + - 36, - ( - - COUNT( * ) ) ) AS col1
----
-2987
36

skipif mysql # not compatible
query II rowsort label-6960
SELECT + 3 * 52 + 57 + + - 80 * + ( 40 ), - COALESCE ( + - 36, - ( - - COUNT ( * ) ) ) AS col1
----
-2987
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6961
SELECT ALL - - COUNT( ALL + - 34 ) * + 27 + MAX( DISTINCT 3 ) / + - 8 / + MAX( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL - - COUNT ( ALL + - 34 ) * + 27 + MAX ( DISTINCT 3 ) / + - 8 / + MAX ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ALL + + 99 AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT 3 * MAX( 19 ) col1
----
57

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 3 * MAX ( 19 ) col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL - - 94 * - COUNT( ALL - 80 )
----
-94

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL - - 94 * - COUNT ( ALL - 80 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT - 61 * + + 7 * - ( + CAST( + + 36 AS SIGNED ) )
----
15372

skipif mysql # not compatible
query I rowsort label-6965
SELECT - 61 * + + 7 * - ( + CAST ( + + 36 AS INTEGER ) )
----
15372

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT - - 24 + + - 45 + - SUM( - + 63 ) * + - 92 col2
----
-5817

skipif mysql # not compatible
query I rowsort label-6966
SELECT - - 24 + + - 45 + - SUM ( - + 63 ) * + - 92 col2
----
-5817

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT + MIN( - 61 )
----
-61

skipif mysql # not compatible
query I rowsort label-6967
SELECT + MIN ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT + 11 AS col0, - COUNT( * )
----
11
-1

skipif mysql # not compatible
query II rowsort label-6968
SELECT + 11 AS col0, - COUNT ( * )
----
11
-1

query II rowsort
SELECT - 41 * 98, + 60 + - - ( 40 ) AS col2
----
-4018
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6970
SELECT - 47 * + + CAST( NULL AS SIGNED ) col2, + COUNT( * ) * - 56 AS col0
----
NULL
-56

skipif mysql # not compatible
query II rowsort label-6970
SELECT - 47 * + + CAST ( NULL AS INTEGER ) col2, + COUNT ( * ) * - 56 AS col0
----
NULL
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT + SUM( ALL - 89 ) * + ( 20 ) + - 45 + - 92 AS col0
----
-1917

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT + SUM ( ALL - 89 ) * + ( 20 ) + - 45 + - 92 AS col0
----
-1917

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6972
SELECT ALL 75 * - CAST( NULL AS DECIMAL ) * + - 94 + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL 75 * - CAST ( NULL AS REAL ) * + - 94 + 93
----
NULL

query I rowsort
SELECT ALL + 34 * 50 + - 41 - - 65 + + 43 * 52
----
3960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6974
SELECT DISTINCT + CAST( - 38 AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-6974
SELECT DISTINCT + CAST ( - 38 AS INTEGER )
----
-38

query I rowsort
SELECT DISTINCT - 89 * - - 42 * + - COALESCE ( - + 79, - - 7 + - - 37 ) + - - 67
----
-295235

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL + 40 * - 97 * + 21 * COALESCE ( 15, 57 ) * + + 32 + + CASE + + COUNT( * ) WHEN 56 THEN NULL ELSE - 89 END
----
-39110489

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL + 40 * - 97 * + 21 * COALESCE ( 15, 57 ) * + + 32 + + CASE + + COUNT ( * ) WHEN 56 THEN NULL ELSE - 89 END
----
-39110489

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL - COUNT( * ) * + 65 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL - COUNT ( * ) * + 65 AS col0
----
-65

query I rowsort
SELECT DISTINCT ( - 7 ) AS col0
----
-7

query I rowsort
SELECT - 75 + - 32 - - 35 * - 43 + + ( - 47 )
----
-1659

query I rowsort
SELECT DISTINCT ( - 59 ) AS col2
----
-59

query I rowsort
SELECT - 51 + - ( + 56 )
----
-107

query II rowsort
SELECT + 57 - 81 * 60 * ( - ( + 92 ) ) + - 68 AS col2, 0 + - 25
----
447109
-25

query I rowsort
SELECT - 27 + + ( + 19 ) + 1
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6984
SELECT ALL 39 + - 86 DIV + - 33 + 25 * + 41 * - - COUNT( * ) col0
----
1066

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL 39 + - 86 / + - 33 + 25 * + 41 * - - COUNT ( * ) col0
----
1066

query I rowsort
SELECT ALL - 57 * + 71
----
-4047

query I rowsort
SELECT ALL + 84 - + - ( 41 )
----
125

query II rowsort
SELECT ALL 67 * + 31 AS col1, 97 * + 24 * + 15
----
2077
34920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT ALL - + CAST( NULL AS SIGNED ) - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL - + CAST ( NULL AS INTEGER ) - 25 AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 30 )
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT DISTINCT - 82 / + + 23 * + + CAST( NULL AS SIGNED ) * 1 * + - 71 + 59 * + - AVG ( - 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - 82 / + + 23 * + + CAST ( NULL AS INTEGER ) * 1 * + - 71 + 59 * + - AVG ( - 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + - COUNT( * ) + - + 19
----
-20

skipif mysql # not compatible
query I rowsort label-6991
SELECT + - COUNT ( * ) + - + 19
----
-20

query I rowsort
SELECT + + 63 + - 0 + 93 AS col0
----
156

query II rowsort
SELECT + - 94 * + 2, + 16 AS col0
----
-188
16

query I rowsort
SELECT DISTINCT + - 87 AS col0
----
-87

query I rowsort
SELECT ALL + - NULLIF ( 66, - - 23 - + 57 * + 27 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT DISTINCT + ( - + MIN( + 78 ) )
----
-78

skipif mysql # not compatible
query I rowsort label-6996
SELECT DISTINCT + ( - + MIN ( + 78 ) )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6997
SELECT DISTINCT + 6 DIV ( COUNT( * ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT + 6 / ( COUNT ( * ) ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6998
SELECT + 89 - + CAST( COALESCE ( + 91, + COUNT( * ), + 29 ) AS SIGNED ) + + 93
----
91

skipif mysql # not compatible
query I rowsort label-6998
SELECT + 89 - + CAST ( COALESCE ( + 91, + COUNT ( * ), + 29 ) AS INTEGER ) + + 93
----
91

query I rowsort
SELECT + - 26 AS col2
----
-26

query I rowsort
SELECT ALL + + 28
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7001
SELECT ALL - ( - + 34 ) DIV + 87 + - COUNT( * ) * SUM( ALL COALESCE ( 43, + - 82, 63 * - - 92 + + 90 + - 6, 97 * + 29 * 27 ) ), - 25 AS col2
----
-43
-25

skipif mysql # not compatible
query II rowsort label-7001
SELECT ALL - ( - + 34 ) / + 87 + - COUNT ( * ) * SUM ( ALL COALESCE ( 43, + - 82, 63 * - - 92 + + 90 + - 6, 97 * + 29 * 27 ) ), - 25 AS col2
----
-43
-25

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7002
SELECT - CASE - + ( - 8 ) WHEN - COUNT( * ) THEN + 74 * - 81 + + 16 WHEN + - 34 THEN - 2 - - CAST( 89 AS DECIMAL ) + - - 13 + + - 56 / + COUNT( ALL - 24 ) END AS col0, - 72 col2
----
NULL
-72

skipif mysql # not compatible
query II rowsort label-7002
SELECT - CASE - + ( - 8 ) WHEN - COUNT ( * ) THEN + 74 * - 81 + + 16 WHEN + - 34 THEN - 2 - - CAST ( 89 AS REAL ) + - - 13 + + - 56 / + COUNT ( ALL - 24 ) END AS col0, - 72 col2
----
NULL
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT + SUM( DISTINCT + ( - - 76 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7003
SELECT + SUM ( DISTINCT + ( - - 76 ) ) AS col1
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL - SUM( - CAST( NULL AS SIGNED ) ) * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - SUM ( - CAST ( NULL AS INTEGER ) ) * + 19
----
NULL

query I rowsort
SELECT ALL 23 + - 98 - - 49 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7006
SELECT ALL MAX( DISTINCT - 67 ) + 22, - 31 AS col2
----
-45
-31

skipif mysql # not compatible
query II rowsort label-7006
SELECT ALL MAX ( DISTINCT - 67 ) + 22, - 31 AS col2
----
-45
-31

query II rowsort
SELECT + 78, 55 AS col2
----
78
55

query I rowsort
SELECT ALL 76 * - + 70
----
-5320

query I rowsort
SELECT DISTINCT - 15 + + 34
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT DISTINCT COUNT( * ) * - 87 AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT COUNT ( * ) * - 87 AS col1
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT COUNT( * ) * - 71 * 63 AS col2
----
-4473

skipif mysql # not compatible
query I rowsort label-7011
SELECT COUNT ( * ) * - 71 * 63 AS col2
----
-4473

query I rowsort
SELECT 63 + - 44 + 7
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT 88 * + NULLIF ( + - 83, COUNT( * ) + + ( - + 76 ) ) * + + 65 * - 2 * 33 + - COUNT( * )
----
31334159

skipif mysql # not compatible
query I rowsort label-7013
SELECT 88 * + NULLIF ( + - 83, COUNT ( * ) + + ( - + 76 ) ) * + + 65 * - 2 * 33 + - COUNT ( * )
----
31334159

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT ALL + 97 DIV + + 18 AS col1
----
5

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + 97 / + + 18 AS col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT DISTINCT 68 - SUM( 2 ) * COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT 68 - SUM ( 2 ) * COUNT ( * )
----
66

query I rowsort
SELECT ALL - 52 - 74 AS col1
----
-126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7017
SELECT ALL + 98 DIV COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL + 98 / COUNT ( * )
----
98

query I rowsort
SELECT 32 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT ALL MIN( DISTINCT - 95 ) - - 68 * - 11
----
-843

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL MIN ( DISTINCT - 95 ) - - 68 * - 11
----
-843

query II rowsort
SELECT - 21, + 77 col1
----
-21
77

query II rowsort
SELECT 40, ( 13 ) + 78 * + 61 + - - 30 + - 2 AS col0
----
40
4799

query II rowsort
SELECT ALL - 25 * - 0 * 92 AS col1, + 76 + - 70 * 51
----
0
-3494

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT + 43 - 2 * - 46 * ( - 51 ) * - + MIN( - 79 ) * + 90 + + - 62, COUNT( * ) + 66 AS col0
----
-33360139
67

skipif mysql # not compatible
query II rowsort label-7023
SELECT + 43 - 2 * - 46 * ( - 51 ) * - + MIN ( - 79 ) * + 90 + + - 62, COUNT ( * ) + 66 AS col0
----
-33360139
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT ALL MIN( DISTINCT 88 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL MIN ( DISTINCT 88 ) col1
----
88

query II rowsort
SELECT - 65, 32 AS col2
----
-65
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7026
SELECT - CAST( 73 AS SIGNED ) AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-7026
SELECT - CAST ( 73 AS INTEGER ) AS col1
----
-73

query II rowsort
SELECT - NULLIF ( - 24, + - 36 ) AS col1, 42 col2
----
24
42

query II rowsort
SELECT ALL 77, 91 * - + 46 AS col2
----
77
-4186

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7029
SELECT DISTINCT - COALESCE ( + 47, + 90, + + ( - + ( + CASE + 22 WHEN + CAST( NULL AS SIGNED ) THEN - 25 ELSE + 11 * - ( + 57 ) END ) ) DIV - + 94 * - ( 54 ) DIV - - 43 + + 54 ) * + 61 * - - 15 AS col1
----
-43005

skipif mysql # not compatible
query I rowsort label-7029
SELECT DISTINCT - COALESCE ( + 47, + 90, + + ( - + ( + CASE + 22 WHEN + CAST ( NULL AS INTEGER ) THEN - 25 ELSE + 11 * - ( + 57 ) END ) ) / - + 94 * - ( 54 ) / - - 43 + + 54 ) * + 61 * - - 15 AS col1
----
-43005

query II rowsort
SELECT ALL + 5 AS col2, 94 AS col2
----
5
94

query II rowsort
SELECT + + 48, 35 * + 21 AS col0
----
48
735

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT ALL + - 27 + + - 64 * ( + + COUNT( * ) ) + - 85
----
-176

skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + - 27 + + - 64 * ( + + COUNT ( * ) ) + - 85
----
-176

query I rowsort
SELECT ALL - 2 + - - 92
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7034
SELECT CAST( + 98 AS SIGNED ) DIV - + 93 + - MIN( DISTINCT - 42 )
----
41

skipif mysql # not compatible
query I rowsort label-7034
SELECT CAST ( + 98 AS INTEGER ) / - + 93 + - MIN ( DISTINCT - 42 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7035
SELECT 91 * - 90 - 56 DIV 55 + - + ( + - 31 )
----
-8160

skipif mysql # not compatible
query I rowsort label-7035
SELECT 91 * - 90 - 56 / 55 + - + ( + - 31 )
----
-8160

onlyif mysql # aggregate syntax: 
query II rowsort label-7036
SELECT + 56, - 36 * + 10 + ( + ( + COUNT( * ) ) ) AS col1
----
56
-359

skipif mysql # not compatible
query II rowsort label-7036
SELECT + 56, - 36 * + 10 + ( + ( + COUNT ( * ) ) ) AS col1
----
56
-359

onlyif mysql # aggregate syntax: 
query I rowsort label-7037
SELECT ALL COUNT( * ) + + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL COUNT ( * ) + + 61 AS col2
----
62

query I rowsort
SELECT DISTINCT - + 44 AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT 47 * + 44 - + 33 + 80 + - 14 * + NULLIF ( 49, - CAST( - 20 AS SIGNED ) / - 77 * 82 + + ( ( + - 68 ) ) + + COUNT( * ) ) + + + 15
----
1444

skipif mysql # not compatible
query I rowsort label-7039
SELECT 47 * + 44 - + 33 + 80 + - 14 * + NULLIF ( 49, - CAST ( - 20 AS INTEGER ) / - 77 * 82 + + ( ( + - 68 ) ) + + COUNT ( * ) ) + + + 15
----
1444

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7040
SELECT DISTINCT + - CAST( - 84 AS SIGNED ) + - 53 + - + 29 + - 71 * + 8 DIV + ( + COUNT( * ) )
----
-566

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT + - CAST ( - 84 AS INTEGER ) + - 53 + - + 29 + - 71 * + 8 / + ( + COUNT ( * ) )
----
-566

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7041
SELECT ALL CAST( + 67 AS SIGNED ) + 93 * 10 - - 63
----
1060

skipif mysql # not compatible
query I rowsort label-7041
SELECT ALL CAST ( + 67 AS INTEGER ) + 93 * 10 - - 63
----
1060

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT 41 + + COALESCE ( - 6, + 42 DIV - 6 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-7042
SELECT 41 + + COALESCE ( - 6, + 42 / - 6 ) AS col2
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7043
SELECT ALL CAST( NULL AS SIGNED ) + - 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7043
SELECT ALL CAST ( NULL AS INTEGER ) + - 95 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7044
SELECT CAST( + - 5 AS SIGNED ) * + COUNT( * ) - + COUNT( * ) AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-7044
SELECT CAST ( + - 5 AS INTEGER ) * + COUNT ( * ) - + COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT ( - 47 ) + + ( + - ( - 20 ) ) * + + 94 AS col0
----
1833

query II rowsort
SELECT 66 * - NULLIF ( 96, - 35 ) AS col0, - 81 AS col1
----
-6336
-81

query I rowsort
SELECT + 91 * - 21 + - - 18 * + + 24 * 92
----
37833

query I rowsort
SELECT DISTINCT 21 * 22
----
462

query I rowsort
SELECT 82 * - + AVG ( ALL CASE + 70 WHEN - + 7 + ( - 64 ) THEN + - 18 + + - 56 + + 26 + 85 / + 11 / - 50 + + 80 END ) * - + 63 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT 62 + - - MAX( + 74 ) * - 76
----
-5562

skipif mysql # not compatible
query I rowsort label-7050
SELECT 62 + - - MAX ( + 74 ) * - 76
----
-5562

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7051
SELECT COUNT( * ) DIV + ( - 83 ) + 21 AS col2, - 30 DIV COUNT( * )
----
21
-30

skipif mysql # not compatible
query II rowsort label-7051
SELECT COUNT ( * ) / + ( - 83 ) + 21 AS col2, - 30 / COUNT ( * )
----
21
-30

query I rowsort
SELECT DISTINCT + NULLIF ( 8, ( - - 62 ) * + - 81 ) AS col1
----
8

query I rowsort
SELECT + 91 + 83 + 69 * + 12 AS col1
----
1002

query I rowsort
SELECT DISTINCT + - 37 + + + 54 + - 27
----
-10

query I rowsort
SELECT + 57 * + 61 * - 11 col1
----
-38247

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT - - 37 + - MIN( DISTINCT 51 )
----
-14

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT - - 37 + - MIN ( DISTINCT 51 )
----
-14

query I rowsort
SELECT ALL + 15 * - - 43 - - 82
----
727

query I rowsort
SELECT 13 col2
----
13

query I rowsort
SELECT ALL + + 90 * 50 * + 88 + - + ( 82 ) + + 71
----
395989

query I rowsort
SELECT ALL + + 77 col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT DISTINCT - - 14 * - 97 + + COALESCE ( + 43, 57 + + 12 + - + 28, - 11 * - - ( 78 ) - - 24 + 13 ) + + ( CASE - + MAX( - 98 ) WHEN - 3 * 15 / - COUNT( * ) THEN 86 END ) * + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT - - 14 * - 97 + + COALESCE ( + 43, 57 + + 12 + - + 28, - 11 * - - ( 78 ) - - 24 + 13 ) + + ( CASE - + MAX ( - 98 ) WHEN - 3 * 15 / - COUNT ( * ) THEN 86 END ) * + 49 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT DISTINCT + COUNT( - 22 )
----
1

skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT + COUNT ( - 22 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT - COUNT( * ) * + 75
----
-75

skipif mysql # not compatible
query I rowsort label-7063
SELECT - COUNT ( * ) * + 75
----
-75

query I rowsort
SELECT ALL + ( - 75 ) col2
----
-75

query I rowsort
SELECT - 34 - - - 28 AS col2
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-7066
SELECT + COUNT( * ) AS col0, - 36
----
1
-36

skipif mysql # not compatible
query II rowsort label-7066
SELECT + COUNT ( * ) AS col0, - 36
----
1
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT - 11 DIV + NULLIF ( + COUNT( * ), + CASE - 42 WHEN + + 29 THEN NULLIF ( + 87, - 13 DIV + 7 * + 6 + + 5 + - 82 ) WHEN - 99 THEN NULL END )
----
-11

skipif mysql # not compatible
query I rowsort label-7067
SELECT - 11 / + NULLIF ( + COUNT ( * ), + CASE - 42 WHEN + + 29 THEN NULLIF ( + 87, - 13 / + 7 * + 6 + + 5 + - 82 ) WHEN - 99 THEN NULL END )
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7068
SELECT + ( - + COUNT( * ) ) * - 21 DIV COALESCE ( 70, - 90 )
----
0

skipif mysql # not compatible
query I rowsort label-7068
SELECT + ( - + COUNT ( * ) ) * - 21 / COALESCE ( 70, - 90 )
----
0

query I rowsort
SELECT ALL 22 * - 53 AS col2
----
-1166

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT COALESCE ( - 85, COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-7070
SELECT COALESCE ( - 85, COUNT ( * ) )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT 57 * + - SUM( ALL 36 )
----
-2052

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT 57 * + - SUM ( ALL 36 )
----
-2052

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7072
SELECT ALL + ( - - ( CAST( NULL AS SIGNED ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT( * ) ) + + 80 AS col1, MAX( ALL - 75 ) AS col1
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-7072
SELECT ALL + ( - - ( CAST ( NULL AS INTEGER ) ) ) * + COALESCE ( 33, - - 83 / ( - 38 ) + + COUNT ( * ) ) + + 80 AS col1, MAX ( ALL - 75 ) AS col1
----
NULL
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT DISTINCT - CASE - COUNT( * ) WHEN - AVG ( ( 47 ) ) THEN NULL WHEN - 71 THEN + 10 * + 3 + + ( AVG ( ALL - 61 ) ) ELSE NULL END * + 46 - + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT - CASE - COUNT ( * ) WHEN - AVG ( ( 47 ) ) THEN NULL WHEN - 71 THEN + 10 * + 3 + + ( AVG ( ALL - 61 ) ) ELSE NULL END * + 46 - + - 87
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT ALL + CAST( + 57 AS SIGNED ) * + 44 + 24 + + 70 + - SUM( ALL + + 74 ) * + 72 * 35 AS col2
----
-183878

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL + CAST ( + 57 AS INTEGER ) * + 44 + 24 + + 70 + - SUM ( ALL + + 74 ) * + 72 * 35 AS col2
----
-183878

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7075
SELECT + COALESCE ( - + COUNT( DISTINCT ( - 71 ) ), + + 97 * + + COUNT( * ) * + 77 + + ( - 42 ) DIV + 89, - + 39, + + 47 DIV + COUNT( * ) ) col0, ( - + 47 ) * - 50
----
-1
2350

skipif mysql # not compatible
query II rowsort label-7075
SELECT + COALESCE ( - + COUNT ( DISTINCT ( - 71 ) ), + + 97 * + + COUNT ( * ) * + 77 + + ( - 42 ) / + 89, - + 39, + + 47 / + COUNT ( * ) ) col0, ( - + 47 ) * - 50
----
-1
2350

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT - 45 DIV 1 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7076
SELECT - 45 / 1 AS col0
----
-45

query I rowsort
SELECT + 50 * + 37 col0
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT + SUM( 32 ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-7078
SELECT + SUM ( 32 ) AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7079
SELECT + ( - 56 ) + - ( + 27 ) * - 87 * + - 38 DIV + COUNT( * ) AS col0
----
-89318

skipif mysql # not compatible
query I rowsort label-7079
SELECT + ( - 56 ) + - ( + 27 ) * - 87 * + - 38 / + COUNT ( * ) AS col0
----
-89318

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT + 14 DIV - ( 17 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT + 14 / - ( 17 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT 62 * 47 + - - COUNT( * )
----
2915

skipif mysql # not compatible
query I rowsort label-7081
SELECT 62 * 47 + - - COUNT ( * )
----
2915

onlyif mysql # aggregate syntax: 
query II rowsort label-7082
SELECT ALL - 44, COUNT( * ) * + - 63 AS col2
----
-44
-63

skipif mysql # not compatible
query II rowsort label-7082
SELECT ALL - 44, COUNT ( * ) * + - 63 AS col2
----
-44
-63

query I rowsort
SELECT ALL - 70 + - - 81 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7084
SELECT DISTINCT 54 + + - 87 DIV + 52
----
53

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT 54 + + - 87 / + 52
----
53

query I rowsort
SELECT + 28 - - + 87 AS col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - ( + - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-7086
SELECT - ( + - COUNT ( * ) )
----
1

query II rowsort
SELECT 97 AS col1, 80 AS col1
----
97
80

query II rowsort
SELECT DISTINCT + 75 AS col2, - 38 AS col2
----
75
-38

query I rowsort
SELECT + 55 + - 79
----
-24

query I rowsort
SELECT ALL + 37 col0
----
37

query I rowsort
SELECT - + 26 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT ALL - - 60 + + 8 + - - COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - - 60 + + 8 + - - COUNT ( * )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-7093
SELECT ALL 80, - COUNT( - 2 ) * - + ( - 58 ) AS col2
----
80
-58

skipif mysql # not compatible
query II rowsort label-7093
SELECT ALL 80, - COUNT ( - 2 ) * - + ( - 58 ) AS col2
----
80
-58

query I rowsort
SELECT ALL + ( 12 ) AS col1
----
12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7095
SELECT DISTINCT - CASE WHEN ( - - 27 IS NOT NULL ) THEN - + COUNT( * ) DIV - SUM( + + 49 ) END DIV + - 33 col1
----
0

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT - CASE WHEN ( - - 27 IS NOT NULL ) THEN - + COUNT ( * ) / - SUM ( + + 49 ) END / + - 33 col1
----
0

query I rowsort
SELECT DISTINCT + 78 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT + MAX( DISTINCT + 28 ) * - - MAX( DISTINCT 81 )
----
2268

skipif mysql # not compatible
query I rowsort label-7097
SELECT + MAX ( DISTINCT + 28 ) * - - MAX ( DISTINCT 81 )
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT - 27 * + COUNT( * ) * + 39
----
-1053

skipif mysql # not compatible
query I rowsort label-7098
SELECT - 27 * + COUNT ( * ) * + 39
----
-1053

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7099
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), + 10 ) * - - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), + 10 ) * - - 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT 38 / + 66 / - CASE - COUNT( + - 89 ) WHEN 14 THEN + - 98 * + - 5 WHEN MIN( - 92 ) THEN NULL ELSE NULL END + - + COALESCE ( + ( - 30 ), - 57 * + 16 ) * + - 35 * + 98 + - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT 38 / + 66 / - CASE - COUNT ( + - 89 ) WHEN 14 THEN + - 98 * + - 5 WHEN MIN ( - 92 ) THEN NULL ELSE NULL END + - + COALESCE ( + ( - 30 ), - 57 * + 16 ) * + - 35 * + 98 + - 72 AS col0
----
NULL

query I rowsort
SELECT - 28 * - 75 * - 28 AS col2
----
-58800

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT - SUM( 52 ) + MIN( DISTINCT + 81 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-7102
SELECT - SUM ( 52 ) + MIN ( DISTINCT + 81 ) AS col2
----
29

query I rowsort
SELECT DISTINCT + 79 AS col2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7104
SELECT DISTINCT + CAST( NULL AS SIGNED ) col1, - 15
----
NULL
-15

skipif mysql # not compatible
query II rowsort label-7104
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col1, - 15
----
NULL
-15

query I rowsort
SELECT DISTINCT + 20 * + 68 * - 1 AS col0
----
-1360

query II rowsort
SELECT ALL + 92 col1, + 49
----
92
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT + 82 * + - COUNT( * ) * + 16 + + 69
----
-1243

skipif mysql # not compatible
query I rowsort label-7107
SELECT + 82 * + - COUNT ( * ) * + 16 + + 69
----
-1243

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7108
SELECT DISTINCT + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7108
SELECT DISTINCT + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ( - 18 ) AS col1
----
-18

query II rowsort
SELECT + 6 AS col0, 16
----
6
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7111
SELECT + 27 DIV + 20
----
1

skipif mysql # not compatible
query I rowsort label-7111
SELECT + 27 / + 20
----
1

query I rowsort
SELECT ALL - 66 * - 64
----
4224

query I rowsort
SELECT 30 * - + 90 * - - 45 + 54 + 87 col1
----
-121359

query I rowsort
SELECT - 38 * + 92 + + 73
----
-3423

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT CASE + ( 71 ) WHEN - + NULLIF ( 47, + + MIN( DISTINCT - 45 ) * + + 43 * COUNT( * ) + - - 54 ) * - + 39 THEN NULL WHEN COUNT( * ) * - 5 - 67 * - 49 THEN NULL WHEN 74 * SUM( DISTINCT - + 60 ) THEN ( + + 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7115
SELECT CASE + ( 71 ) WHEN - + NULLIF ( 47, + + MIN ( DISTINCT - 45 ) * + + 43 * COUNT ( * ) + - - 54 ) * - + 39 THEN NULL WHEN COUNT ( * ) * - 5 - 67 * - 49 THEN NULL WHEN 74 * SUM ( DISTINCT - + 60 ) THEN ( + + 40 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT DISTINCT + NULLIF ( + - 3, COUNT( * ) )
----
-3

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT + NULLIF ( + - 3, COUNT ( * ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7117
SELECT ALL - COUNT( ALL 0 ) * - COALESCE ( COALESCE ( 72, - + 24 * + - COUNT( * ), 27 ), - - 57 + - - COUNT( * ), + COUNT( * ) ) * - 25 + - - 37
----
-1763

skipif mysql # not compatible
query I rowsort label-7117
SELECT ALL - COUNT ( ALL 0 ) * - COALESCE ( COALESCE ( 72, - + 24 * + - COUNT ( * ), 27 ), - - 57 + - - COUNT ( * ), + COUNT ( * ) ) * - 25 + - - 37
----
-1763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7118
SELECT DISTINCT - + 71 * CAST( + + 30 AS SIGNED ) * 91 - - 35 * - 79 * - + 36 col2
----
-94290

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - + 71 * CAST ( + + 30 AS INTEGER ) * 91 - - 35 * - 79 * - + 36 col2
----
-94290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL + CAST( + 86 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + CAST ( + 86 AS INTEGER )
----
86

query I rowsort
SELECT + - ( 65 ) * + 38
----
-2470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7121
SELECT - 87 * COUNT( * ) * 13 * - COUNT( * ) + - 66 + - 23 + - + 59 DIV + + 68
----
1042

skipif mysql # not compatible
query I rowsort label-7121
SELECT - 87 * COUNT ( * ) * 13 * - COUNT ( * ) + - 66 + - 23 + - + 59 / + + 68
----
1042

onlyif mysql # aggregate syntax: 
query II rowsort label-7122
SELECT - 18 col0, ( - + 96 ) * + COUNT( * ) + - 64 AS col0
----
-18
-160

skipif mysql # not compatible
query II rowsort label-7122
SELECT - 18 col0, ( - + 96 ) * + COUNT ( * ) + - 64 AS col0
----
-18
-160

query I rowsort
SELECT - 26 + + 93 * + + 89
----
8251

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7124
SELECT + + 53 - - 58 * - SUM( + 43 ), + CASE + 62 WHEN 59 * COUNT( DISTINCT + - 89 ) - + - 32 * 42 + + - 64 THEN NULL WHEN CAST( - 68 AS SIGNED ) * ( 20 ) * - - NULLIF ( + 41, - 68 ) + - 2 THEN NULL ELSE 65 + + 46 END AS col0
----
-2441
111

skipif mysql # not compatible
query II rowsort label-7124
SELECT + + 53 - - 58 * - SUM ( + 43 ), + CASE + 62 WHEN 59 * COUNT ( DISTINCT + - 89 ) - + - 32 * 42 + + - 64 THEN NULL WHEN CAST ( - 68 AS INTEGER ) * ( 20 ) * - - NULLIF ( + 41, - 68 ) + - 2 THEN NULL ELSE 65 + + 46 END AS col0
----
-2441
111

query I rowsort
SELECT DISTINCT + COALESCE ( 9, + + 49 + - - 92 + - NULLIF ( + + 66, - 22 ), + 36 ) AS col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7126
SELECT ALL CASE + 13 WHEN 96 THEN NULL ELSE + 44 * - - 50 END DIV + 84
----
26

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL CASE + 13 WHEN 96 THEN NULL ELSE + 44 * - - 50 END / + 84
----
26

query I rowsort
SELECT + + 84 + + 34 AS col2
----
118

query I rowsort
SELECT DISTINCT 88 * + + ( + 66 )
----
5808

query II rowsort
SELECT DISTINCT 85, - 37 col1
----
85
-37

query I rowsort
SELECT 26 + - ( + 86 )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT MIN( CASE + 25 WHEN 45 THEN NULL WHEN + 65 THEN + 31 ELSE - COALESCE ( + + 14, + - 73 ) * - 39 END ) AS col1
----
546

skipif mysql # not compatible
query I rowsort label-7131
SELECT MIN ( CASE + 25 WHEN 45 THEN NULL WHEN + 65 THEN + 31 ELSE - COALESCE ( + + 14, + - 73 ) * - 39 END ) AS col1
----
546

query I rowsort
SELECT ALL - CASE 13 WHEN - 96 THEN NULL WHEN - - 13 THEN NULLIF ( 7, + AVG ( - + NULLIF ( - 14, + + 94 ) ) * - 1 ) - - - 17 WHEN 70 THEN NULL ELSE NULL END
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL - + 7 * 38 + + MIN( DISTINCT 2 ) * + + 73
----
-120

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - + 7 * 38 + + MIN ( DISTINCT 2 ) * + + 73
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT DISTINCT - COUNT( * ) * + + SUM( - + 42 ) - + - 28 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT - COUNT ( * ) * + + SUM ( - + 42 ) - + - 28 AS col2
----
70

query I rowsort
SELECT ALL 72 - - ( - 19 ) col1
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7136
SELECT DISTINCT + ( - 40 ) * + + COUNT( + + 12 ) - + + 0 + - - 1 * - 91 + + 45
----
-86

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT + ( - 40 ) * + + COUNT ( + + 12 ) - + + 0 + - - 1 * - 91 + + 45
----
-86

query I rowsort
SELECT - 46 * + 25 col0
----
-1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7138
SELECT 48 AS col2, + 0 * + - CAST( NULL AS SIGNED ) / COUNT( 14 ) AS col1
----
48
NULL

skipif mysql # not compatible
query II rowsort label-7138
SELECT 48 AS col2, + 0 * + - CAST ( NULL AS INTEGER ) / COUNT ( 14 ) AS col1
----
48
NULL

query I rowsort
SELECT ALL ( + 22 ) col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT 66 + + COUNT( * ) col2
----
67

skipif mysql # not compatible
query I rowsort label-7140
SELECT 66 + + COUNT ( * ) col2
----
67

query I rowsort
SELECT 47 * - 65 AS col2
----
-3055

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7142
SELECT ALL - COALESCE ( 21, + + MIN( ALL 91 ) DIV CASE + + 91 WHEN - 43 + + - 80 THEN - 97 END )
----
-21

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - COALESCE ( 21, + + MIN ( ALL 91 ) / CASE + + 91 WHEN - 43 + + - 80 THEN - 97 END )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL - 34 * COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL - 34 * COUNT ( * )
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7144
SELECT 72 + - + 79 DIV + 59 - - + ( - 13 ) AS col0
----
58

skipif mysql # not compatible
query I rowsort label-7144
SELECT 72 + - + 79 / + 59 - - + ( - 13 ) AS col0
----
58

query I rowsort
SELECT DISTINCT - 52 * - + COALESCE ( + 72, + 93, 22 + + 91 ) AS col0
----
3744

query I rowsort
SELECT ALL + 35 * + + 23 * 45 col1
----
36225

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT CASE COALESCE ( - COUNT( * ), 65 + - 31 * + 37 + + + ( CASE - ( 43 ) WHEN - ( - MAX( DISTINCT + 40 ) ) + - 84 THEN - SUM( DISTINCT - + 62 ) END ) + + 62, 0 ) WHEN - 69 THEN 28 END / - 70 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT CASE COALESCE ( - COUNT ( * ), 65 + - 31 * + 37 + + + ( CASE - ( 43 ) WHEN - ( - MAX ( DISTINCT + 40 ) ) + - 84 THEN - SUM ( DISTINCT - + 62 ) END ) + + 62, 0 ) WHEN - 69 THEN 28 END / - 70 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7148
SELECT ( + 48 ) * + 59 - - 4 + - 68 + + 73 DIV 59 * - - 52
----
2820

skipif mysql # not compatible
query I rowsort label-7148
SELECT ( + 48 ) * + 59 - - 4 + - 68 + + 73 / 59 * - - 52
----
2820

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT 99 DIV 4 + - 45 DIV 85 + MIN( - + 89 ) * + 98 AS col0
----
-8698

skipif mysql # not compatible
query I rowsort label-7149
SELECT 99 / 4 + - 45 / 85 + MIN ( - + 89 ) * + 98 AS col0
----
-8698

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL - COALESCE ( COUNT( * ), + 86 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL - COALESCE ( COUNT ( * ), + 86 ) AS col1
----
-1

query I rowsort
SELECT ALL 97 + 85
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT ALL - COUNT( * ) + + 50 + 88 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - COUNT ( * ) + + 50 + 88 AS col1
----
137

query I rowsort
SELECT DISTINCT - ( + - 89 ) AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT DISTINCT - MIN( DISTINCT 92 ) + + - COUNT( - 12 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7154
SELECT DISTINCT - MIN ( DISTINCT 92 ) + + - COUNT ( - 12 ) AS col0
----
-93

query I rowsort
SELECT ALL - - 87 AS col2
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT ALL + 68 + - MAX( + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7156
SELECT ALL + 68 + - MAX ( + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - + COALESCE ( - - 3, ( + 65 ) ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7158
SELECT 41 + - + 94 col0, + MIN( + 63 )
----
-53
63

skipif mysql # not compatible
query II rowsort label-7158
SELECT 41 + - + 94 col0, + MIN ( + 63 )
----
-53
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7159
SELECT DISTINCT - - COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT - - COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 27 - 2 AS col0
----
-29

query II rowsort
SELECT DISTINCT - 16 * - + 72, - 9 * 5 AS col2
----
1152
-45

query I rowsort
SELECT - - 94 AS col2
----
94

query II rowsort
SELECT 10 * + 8 col2, + NULLIF ( - 32, - 0 ) * - 95 * + 18 AS col2
----
80
54720

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT ALL - 83 * ( + CASE - + COUNT( * ) WHEN 6 THEN - + 71 ELSE NULL END ) + + + 83 - + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT ALL - 83 * ( + CASE - + COUNT ( * ) WHEN 6 THEN - + 71 ELSE NULL END ) + + + 83 - + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT COALESCE ( - - COUNT( * ), 98 * - 49 + - 62 )
----
1

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT COALESCE ( - - COUNT ( * ), 98 * - 49 + - 62 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7166
SELECT ALL + SUM( 49 ) - + CAST( NULL AS SIGNED ) * 3 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL + SUM ( 49 ) - + CAST ( NULL AS INTEGER ) * 3 AS col1
----
NULL

query I rowsort
SELECT 89 * 36 AS col0
----
3204

query I rowsort
SELECT 33 * 97
----
3201

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT COUNT( * ) - - 74 col1, + 7 AS col2
----
75
7

skipif mysql # not compatible
query II rowsort label-7169
SELECT COUNT ( * ) - - 74 col1, + 7 AS col2
----
75
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7170
SELECT DISTINCT 79 DIV COALESCE ( - 13, - 29 DIV + - SUM( + + 14 ) * + COUNT( * ) + + 53 + COUNT( * ) * + + COUNT( * ), + 62 ) DIV + + 10 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-7170
SELECT DISTINCT 79 / COALESCE ( - 13, - 29 / + - SUM ( + + 14 ) * + COUNT ( * ) + + 53 + COUNT ( * ) * + + COUNT ( * ), + 62 ) / + + 10 + - 31
----
-31

query I rowsort
SELECT ALL 99 * - 92 AS col0
----
-9108

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT ALL + 65 DIV + 13
----
5

skipif mysql # not compatible
query I rowsort label-7172
SELECT ALL + 65 / + 13
----
5

query I rowsort
SELECT ALL 93 * + - ( + 72 ) AS col0
----
-6696

query II rowsort
SELECT DISTINCT 32 AS col2, + 86
----
32
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT MAX( + 63 ) + + 19 * + - 13 * + 20
----
-4877

skipif mysql # not compatible
query I rowsort label-7175
SELECT MAX ( + 63 ) + + 19 * + - 13 * + 20
----
-4877

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT ALL 40 * + ( + CAST( - COUNT( * ) AS SIGNED ) )
----
-40

skipif mysql # not compatible
query I rowsort label-7176
SELECT ALL 40 * + ( + CAST ( - COUNT ( * ) AS INTEGER ) )
----
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7177
SELECT 87, MAX( DISTINCT - 89 ) AS col0
----
87
-89

skipif mysql # not compatible
query II rowsort label-7177
SELECT 87, MAX ( DISTINCT - 89 ) AS col0
----
87
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT COUNT( ALL 56 )
----
1

skipif mysql # not compatible
query I rowsort label-7178
SELECT COUNT ( ALL 56 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT + SUM( + 34 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-7179
SELECT + SUM ( + 34 ) AS col1
----
34

query I rowsort
SELECT 75 + - 62 - + 96 * + CASE 3 WHEN - - 96 THEN + 33 END * - - 76
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7181
SELECT ALL - 17 AS col1, 14 * + COUNT( * )
----
-17
14

skipif mysql # not compatible
query II rowsort label-7181
SELECT ALL - 17 AS col1, 14 * + COUNT ( * )
----
-17
14

query I rowsort
SELECT ALL 5 * + + 55 + - - 51 AS col2
----
326

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7183
SELECT ( 5 ) DIV + ( 77 ) * COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7183
SELECT ( 5 ) / + ( 77 ) * COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT MIN( DISTINCT - - 45 ) * - - 86 * 65 + + 26 * + MAX( DISTINCT + + 80 ) AS col2
----
253630

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT MIN ( DISTINCT - - 45 ) * - - 86 * 65 + + 26 * + MAX ( DISTINCT + + 80 ) AS col2
----
253630

onlyif mysql # aggregate syntax: 
query II rowsort label-7185
SELECT ALL 54 * COUNT( * ) + 69 AS col2, + 90 AS col2
----
123
90

skipif mysql # not compatible
query II rowsort label-7185
SELECT ALL 54 * COUNT ( * ) + 69 AS col2, + 90 AS col2
----
123
90

query I rowsort
SELECT + 85 * 50 + + 44
----
4294

query I rowsort
SELECT ALL - 22 * 37
----
-814

onlyif mysql # aggregate syntax: 
query II rowsort label-7188
SELECT 42 * - COUNT( * ) + 48, - 95 + + 22 AS col2
----
6
-73

skipif mysql # not compatible
query II rowsort label-7188
SELECT 42 * - COUNT ( * ) + 48, - 95 + + 22 AS col2
----
6
-73

query I rowsort
SELECT - 77 * + 56
----
-4312

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT - 31 - - - MIN( ALL - + 52 ) + 73
----
94

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - 31 - - - MIN ( ALL - + 52 ) + 73
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7191
SELECT ALL + + COUNT( * ) - 49 * 21 * CAST( + 51 AS SIGNED ) AS col2
----
-52478

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL + + COUNT ( * ) - 49 * 21 * CAST ( + 51 AS INTEGER ) AS col2
----
-52478

query I rowsort
SELECT ALL + 89 col1
----
89

query I rowsort
SELECT ( + - 50 )
----
-50

query I rowsort
SELECT ALL 5 * - - 7
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7195
SELECT - - 76 + + 5 - - 36 * MAX( + - 46 ) - + 75 * 62 + 99, COUNT( * ) AS col0
----
-6126
1

skipif mysql # not compatible
query II rowsort label-7195
SELECT - - 76 + + 5 - - 36 * MAX ( + - 46 ) - + 75 * 62 + 99, COUNT ( * ) AS col0
----
-6126
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7196
SELECT DISTINCT + + SUM( - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT + + SUM ( - 48 )
----
-48

query I rowsort
SELECT ALL + + COALESCE ( + 46, ( + - 82 ) * - COALESCE ( - - 7, + 74 + - + 43 + + + 42 ) ) AS col2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7198
SELECT COUNT( * ) * - + 90 DIV 46 + - CAST( - 54 AS SIGNED ) + - 25 * - - 71 + - + COUNT( * ) DIV 88
----
-1722

skipif mysql # not compatible
query I rowsort label-7198
SELECT COUNT ( * ) * - + 90 / 46 + - CAST ( - 54 AS INTEGER ) + - 25 * - - 71 + - + COUNT ( * ) / 88
----
-1722

query I rowsort
SELECT - ( + 52 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT ALL MIN( ALL 88 ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL MIN ( ALL 88 ) AS col2
----
88

query I rowsort
SELECT - 24 + - 23
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7202
SELECT - COALESCE ( - - 35, + 70 DIV - COUNT( * ) + - COUNT( 8 ) + + + CAST( - 14 AS SIGNED ) ) + + 45 AS col1
----
10

skipif mysql # not compatible
query I rowsort label-7202
SELECT - COALESCE ( - - 35, + 70 / - COUNT ( * ) + - COUNT ( 8 ) + + + CAST ( - 14 AS INTEGER ) ) + + 45 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT ALL + - COUNT( * ) * - COUNT( * ) + + 51 + 10 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) + + 51 + 10 AS col1
----
62

query I rowsort
SELECT DISTINCT ( + + 54 )
----
54

query II rowsort
SELECT DISTINCT 55 AS col1, 15 AS col1
----
55
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7206
SELECT DISTINCT CAST( + + 23 AS SIGNED )
----
23

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT CAST ( + + 23 AS INTEGER )
----
23

query I rowsort
SELECT ALL 52 + - 97 * 86 * - 15 * ( + 86 ) AS col1
----
10761232

query I rowsort
SELECT - 58 + - 41 AS col2
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT ALL NULLIF ( - - 45, - + NULLIF ( NULLIF ( + 85, 1 + CAST( - ( - 14 ) AS SIGNED ) + 58 ), + 97 ) - + 97 )
----
45

skipif mysql # not compatible
query I rowsort label-7209
SELECT ALL NULLIF ( - - 45, - + NULLIF ( NULLIF ( + 85, 1 + CAST ( - ( - 14 ) AS INTEGER ) + 58 ), + 97 ) - + 97 )
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7210
SELECT - COUNT( * ) DIV + 81 col1
----
0

skipif mysql # not compatible
query I rowsort label-7210
SELECT - COUNT ( * ) / + 81 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7211
SELECT + ( 38 ) + + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7211
SELECT + ( 38 ) + + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( - 45 ) col2
----
-45

query I rowsort
SELECT DISTINCT ( + 96 ) col2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT + COUNT( * ) + - + 96
----
-95

skipif mysql # not compatible
query I rowsort label-7214
SELECT + COUNT ( * ) + - + 96
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT - ( + - 10 ) * - COUNT( * ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-7215
SELECT - ( + - 10 ) * - COUNT ( * ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT + 4 + + COALESCE ( + + SUM( ALL - 96 ), - - 48 + 67 ) AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-7216
SELECT + 4 + + COALESCE ( + + SUM ( ALL - 96 ), - - 48 + 67 ) AS col0
----
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT ALL COUNT( * ) DIV + 26
----
0

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL COUNT ( * ) / + 26
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7218
SELECT ALL 86 + + - 6 AS col2, COUNT( - 85 ) * - + 21 * + 48 * + + 87 * + + 58 * 1 + + CAST( - + 14 AS SIGNED ) + COUNT( * ) + - + 21 * - - 61
----
80
-5087662

skipif mysql # not compatible
query II rowsort label-7218
SELECT ALL 86 + + - 6 AS col2, COUNT ( - 85 ) * - + 21 * + 48 * + + 87 * + + 58 * 1 + + CAST ( - + 14 AS INTEGER ) + COUNT ( * ) + - + 21 * - - 61
----
80
-5087662

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7219
SELECT ALL 32 DIV + COUNT( * ) + + + ( - 99 ) AS col2, 51 col0
----
-67
51

skipif mysql # not compatible
query II rowsort label-7219
SELECT ALL 32 / + COUNT ( * ) + + + ( - 99 ) AS col2, 51 col0
----
-67
51

query I rowsort
SELECT ALL + 62 col2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + 44 * + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-7221
SELECT + 44 * + COUNT ( * )
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL 75 / COUNT( * ) + CAST( NULL AS SIGNED ) * - 98 + - 39 * + - COUNT( * ) + - - 81 / + - 46 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL 75 / COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 98 + - 39 * + - COUNT ( * ) + - - 81 / + - 46 AS col1
----
NULL

query I rowsort
SELECT + 62 + - 61 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT + NULLIF ( 90, + + 25 - + + 90 / COUNT( * ) - + - 48 + COALESCE ( + + AVG ( - 64 ), + 36 - + + 26 ) )
----
90

skipif mysql # not compatible
query I rowsort label-7224
SELECT + NULLIF ( 90, + + 25 - + + 90 / COUNT ( * ) - + - 48 + COALESCE ( + + AVG ( - 64 ), + 36 - + + 26 ) )
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT MAX( DISTINCT + 38 ) * 50 * + + 83
----
157700

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT MAX ( DISTINCT + 38 ) * 50 * + + 83
----
157700

query I rowsort
SELECT + ( + CASE + 41 WHEN - 67 * 76 THEN NULL ELSE - 61 END ) - + - 30 AS col0
----
-31

query I rowsort
SELECT + 14 * - 15 AS col2
----
-210

query II rowsort
SELECT DISTINCT + + NULLIF ( - 19, - 85 * 29 ), ( + 94 ) AS col0
----
-19
94

query I rowsort
SELECT - 30 * - 47 - ( - 55 ) AS col1
----
1465

query I rowsort
SELECT ALL + + 75 col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7231
SELECT ALL + COALESCE ( + 57, 1 - + 84 + - 50 - 35 - - 58 + - + CASE - 6 WHEN + + 88 THEN ( ( - 49 ) ) WHEN + 47 + - 95 THEN - 86 END * + 89 - + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * SUM( 72 ) )
----
57

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL + COALESCE ( + 57, 1 - + 84 + - 50 - 35 - - 58 + - + CASE - 6 WHEN + + 88 THEN ( ( - 49 ) ) WHEN + 47 + - 95 THEN - 86 END * + 89 - + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * SUM ( 72 ) )
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7232
SELECT + - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT + + MIN( 5 )
----
5

skipif mysql # not compatible
query I rowsort label-7233
SELECT + + MIN ( 5 )
----
5

query I rowsort
SELECT ALL + + 16 AS col0
----
16

query I rowsort
SELECT + + ( - 76 ) * - 61 AS col1
----
4636

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT + + 55 * 31 * + SUM( ALL + 36 ) + 47
----
61427

skipif mysql # not compatible
query I rowsort label-7236
SELECT + + 55 * 31 * + SUM ( ALL + 36 ) + 47
----
61427

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT DISTINCT COUNT( * ) * + NULLIF ( - - MIN( + 88 ), - 9 )
----
88

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT COUNT ( * ) * + NULLIF ( - - MIN ( + 88 ), - 9 )
----
88

query I rowsort
SELECT DISTINCT + 17 * + - 89 * 20 col1
----
-30260

query I rowsort
SELECT + + 11 + + + 76 * + + 90
----
6851

query I rowsort
SELECT + 22 * - - 37
----
814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7241
SELECT ALL - CASE + - 91 WHEN COUNT( * ) * + 43 + + 12 THEN NULL ELSE - 95 DIV + NULLIF ( COUNT( ( - 17 ) ), + + 42 ) + - + 24 + - 6 DIV + 50 END * - 50 + CAST( ( SUM( DISTINCT - 61 ) ) AS SIGNED )
----
-6011

skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL - CASE + - 91 WHEN COUNT ( * ) * + 43 + + 12 THEN NULL ELSE - 95 / + NULLIF ( COUNT ( ( - 17 ) ), + + 42 ) + - + 24 + - 6 / + 50 END * - 50 + CAST ( ( SUM ( DISTINCT - 61 ) ) AS INTEGER )
----
-6011

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT ALL + - 46 * + - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL + - 46 * + - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7243
SELECT + 49 DIV + COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-7243
SELECT + 49 / + COUNT ( * ) AS col2
----
49

query I rowsort
SELECT - + 29 * + 85 AS col2
----
-2465

query I rowsort
SELECT ALL - ( 46 )
----
-46

query I rowsort
SELECT DISTINCT - 93 + + 58
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7247
SELECT ALL CAST( - + 28 AS SIGNED )
----
-28

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL CAST ( - + 28 AS INTEGER )
----
-28

query I rowsort
SELECT DISTINCT + 66 + + 72 AS col2
----
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT - CAST( NULLIF ( + + 54, - 9 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-7249
SELECT - CAST ( NULLIF ( + + 54, - 9 ) AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - ( - MAX( + + 20 ) ) * - 32 AS col1
----
-640

skipif mysql # not compatible
query I rowsort label-7250
SELECT - ( - MAX ( + + 20 ) ) * - 32 AS col1
----
-640

query I rowsort
SELECT ALL + 48 + 23 - - + 84 + + 87
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7252
SELECT + NULLIF ( + 84, - 94 - - 89 + MAX( ALL - - 81 ) + + 59 * - 46 * - + 33 ) + CAST( NULL AS SIGNED ) + - ( + MAX( - 21 ) ) + - COUNT( * ) + - + ( + 58 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7252
SELECT + NULLIF ( + 84, - 94 - - 89 + MAX ( ALL - - 81 ) + + 59 * - 46 * - + 33 ) + CAST ( NULL AS INTEGER ) + - ( + MAX ( - 21 ) ) + - COUNT ( * ) + - + ( + 58 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT - 99 + + COUNT( * ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-7253
SELECT - 99 + + COUNT ( * ) AS col1
----
-98

query I rowsort
SELECT ALL + 21 * 55 * - + 36
----
-41580

query I rowsort
SELECT ALL 81 + 66 AS col1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7256
SELECT - CAST( 40 AS SIGNED ) * + - 79 + + - 16 * - 73 * COUNT( * ) + - CASE - 69 WHEN + ( + ( + COUNT( * ) ) ) THEN + + 39 WHEN - 47 THEN NULL WHEN 42 / ( + - 54 ) * ( + SUM( + 74 ) ) + 27 THEN NULL END + - + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-7256
SELECT - CAST ( 40 AS INTEGER ) * + - 79 + + - 16 * - 73 * COUNT ( * ) + - CASE - 69 WHEN + ( + ( + COUNT ( * ) ) ) THEN + + 39 WHEN - 47 THEN NULL WHEN 42 / ( + - 54 ) * ( + SUM ( + 74 ) ) + 27 THEN NULL END + - + 1
----
NULL

query II rowsort
SELECT - 44 AS col1, 26 - - + 52
----
-44
78

query I rowsort
SELECT ALL NULLIF ( 83, - + 67 )
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7259
SELECT ALL - COUNT( * ) + + - CAST( NULL AS SIGNED ) - 50 + + 71 / + 12 + ( 82 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) - 50 + + 71 / + 12 + ( 82 ) AS col0
----
NULL

query I rowsort
SELECT - 45 + + 94 + + 82 * - 92 * + 45 * - 27 AS col0
----
9166009

query II rowsort
SELECT ALL - 13 + 85 + - 59 AS col2, - 63 AS col2
----
13
-63

query I rowsort
SELECT - 56 * - + 56 AS col2
----
3136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7263
SELECT - 21 + + 20 DIV 44 * - COUNT( * ) + - + 23
----
-44

skipif mysql # not compatible
query I rowsort label-7263
SELECT - 21 + + 20 / 44 * - COUNT ( * ) + - + 23
----
-44

query I rowsort
SELECT 97 * - 35
----
-3395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7265
SELECT - NULLIF ( + 64, + - COUNT( * ) * - 74 ) DIV 17 - - - 10 - - - 22 + - 61
----
-96

skipif mysql # not compatible
query I rowsort label-7265
SELECT - NULLIF ( + 64, + - COUNT ( * ) * - 74 ) / 17 - - - 10 - - - 22 + - 61
----
-96

query I rowsort
SELECT ALL - ( - 35 ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT ALL - + CAST( COUNT( * ) AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-7267
SELECT ALL - + CAST ( COUNT ( * ) AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7268
SELECT 69 DIV + 61 + - SUM( - - 34 ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-7268
SELECT 69 / + 61 + - SUM ( - - 34 ) col2
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7269
SELECT ALL + COUNT( - + 13 ) * + 32 + - 37 DIV 75 - + - 77 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL + COUNT ( - + 13 ) * + 32 + - 37 / 75 - + - 77 AS col1
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7270
SELECT ALL - CAST( + MIN( DISTINCT + 23 ) AS SIGNED )
----
-23

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - CAST ( + MIN ( DISTINCT + 23 ) AS INTEGER )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7271
SELECT 1 / - 22 + ( + - 24 ) + + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) - - 90 / + ( 73 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT 1 / - 22 + ( + - 24 ) + + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) - - 90 / + ( 73 ) AS col2
----
NULL

query II rowsort
SELECT ALL - 36, 66 * + - 84 col1
----
-36
-5544

query II rowsort
SELECT 20 col0, 18
----
20
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT COUNT( * ) * - + ( - 40 ) - 44 - + - ( 84 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-7274
SELECT COUNT ( * ) * - + ( - 40 ) - 44 - + - ( 84 ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ALL 23 * - CASE + 51 WHEN 78 THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7275
SELECT ALL 23 * - CASE + 51 WHEN 78 THEN - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT - 88 * + COUNT( * ) AS col1
----
-88

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - 88 * + COUNT ( * ) AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7277
SELECT ALL - COALESCE ( - CASE + + 10 WHEN - 83 + + NULLIF ( CAST( + COALESCE ( + - 3, COUNT( * ) * - 1 ) AS SIGNED ), + SUM( DISTINCT + 48 ) ) THEN + 46 * MAX( ALL + 35 ) + + 39 WHEN - + 70 * - MIN( ALL - 78 ) THEN NULL END, + 92 ) + + + MIN( DISTINCT - + 74 ) * - + 68
----
4940

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL - COALESCE ( - CASE + + 10 WHEN - 83 + + NULLIF ( CAST ( + COALESCE ( + - 3, COUNT ( * ) * - 1 ) AS INTEGER ), + SUM ( DISTINCT + 48 ) ) THEN + 46 * MAX ( ALL + 35 ) + + 39 WHEN - + 70 * - MIN ( ALL - 78 ) THEN NULL END, + 92 ) + + + MIN ( DISTINCT - + 74 ) * - + 68
----
4940

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT + SUM( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7278
SELECT + SUM ( + 43 )
----
43

query I rowsort
SELECT ALL - + 16 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7280
SELECT - 56 + + ( - 30 ) DIV 57 * 72 + 68 - + 15 + - - 46 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-7280
SELECT - 56 + + ( - 30 ) / 57 * 72 + 68 - + 15 + - - 46 AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT DISTINCT - - ( CASE + 2 WHEN - + 35 THEN - COUNT( * ) ELSE NULL END ) + - 14 - 33 / - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-7281
SELECT DISTINCT - - ( CASE + 2 WHEN - + 35 THEN - COUNT ( * ) ELSE NULL END ) + - 14 - 33 / - + 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT COUNT( * ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-7282
SELECT COUNT ( * ) + - - COUNT ( * ) AS col2
----
2

query I rowsort
SELECT 56 + + - 53 AS col2
----
3

query I rowsort
SELECT 43 * + - 54 + + 58 AS col2
----
-2264

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT DISTINCT 34 * COUNT( * ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-7285
SELECT DISTINCT 34 * COUNT ( * ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT ( - 37 ) * + COUNT( * ) + - ( - NULLIF ( + 21, ( + - 5 ) / - - 54 - + + 99 ) )
----
-16

skipif mysql # not compatible
query I rowsort label-7286
SELECT ( - 37 ) * + COUNT ( * ) + - ( - NULLIF ( + 21, ( + - 5 ) / - - 54 - + + 99 ) )
----
-16

query II rowsort
SELECT 1 + - - 6 col2, 10
----
7
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT ALL COUNT( * ) + - 14 * 35 AS col2
----
-489

skipif mysql # not compatible
query I rowsort label-7288
SELECT ALL COUNT ( * ) + - 14 * 35 AS col2
----
-489

query II rowsort
SELECT ALL 32, + 8 * + 0 * + - 52 + - - 37 AS col2
----
32
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT DISTINCT + 35 * + CAST( 21 AS SIGNED )
----
735

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + 35 * + CAST ( 21 AS INTEGER )
----
735

query I rowsort
SELECT DISTINCT 40 + 51
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-7292
SELECT 1 + 62 AS col0, COUNT( * )
----
63
1

skipif mysql # not compatible
query II rowsort label-7292
SELECT 1 + 62 AS col0, COUNT ( * )
----
63
1

query I rowsort
SELECT 81 * 1 * 0 AS col0
----
0

query I rowsort
SELECT 16 * 70 AS col0
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT - COUNT( * ) - + 85 - 62 * - NULLIF ( - 66, 25 ) col1
----
-4178

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT - COUNT ( * ) - + 85 - 62 * - NULLIF ( - 66, 25 ) col1
----
-4178

query II rowsort
SELECT 97 AS col0, 97 AS col2
----
97
97

query I rowsort
SELECT ALL - ( - 95 ) * 31 + + 45
----
2990

query I rowsort
SELECT 6 * + 59
----
354

query I rowsort
SELECT DISTINCT 26 - + 27
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT - 28 * + COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-7300
SELECT - 28 * + COUNT ( * ) AS col1
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-7301
SELECT + 37 DIV 32 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7301
SELECT + 37 / 32 AS col0
----
1

query I rowsort
SELECT ( - 23 ) * + - 57 AS col0
----
1311

query I rowsort
SELECT ALL - + 20 AS col0
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7304
SELECT + + 61 * - + AVG ( ALL CAST( NULL AS SIGNED ) ) - - 10 + 60 + - + COUNT( * ) - - + 83 * + 88 + - - 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT + + 61 * - + AVG ( ALL CAST ( NULL AS INTEGER ) ) - - 10 + 60 + - + COUNT ( * ) - - + 83 * + 88 + - - 2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT + COUNT( DISTINCT 31 )
----
1

skipif mysql # not compatible
query I rowsort label-7305
SELECT + COUNT ( DISTINCT 31 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT DISTINCT - 61 AS col2, + SUM( DISTINCT - + 26 ) - - 9
----
-61
-17

skipif mysql # not compatible
query II rowsort label-7306
SELECT DISTINCT - 61 AS col2, + SUM ( DISTINCT - + 26 ) - - 9
----
-61
-17

query I rowsort
SELECT ALL 57 + 56 * + - 39 AS col1
----
-2127

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7308
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + - + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT DISTINCT - - CAST ( NULL AS REAL ) + - + 10 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 65 + 71
----
6

query I rowsort
SELECT - 44 - - 22 * 50
----
1056

onlyif mysql # aggregate syntax: 
query III rowsort label-7311
SELECT + 51, - 11 AS col1, 15 + + COUNT( * ) AS col2
----
51
-11
16

skipif mysql # not compatible
query III rowsort label-7311
SELECT + 51, - 11 AS col1, 15 + + COUNT ( * ) AS col2
----
51
-11
16

query I rowsort
SELECT - CASE 47 WHEN - 81 THEN 43 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL - + 62 + + COUNT( * ) - - COUNT( * ) * + 23 AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL - + 62 + + COUNT ( * ) - - COUNT ( * ) * + 23 AS col1
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-7314
SELECT + COUNT( * ) AS col1, - 29
----
1
-29

skipif mysql # not compatible
query II rowsort label-7314
SELECT + COUNT ( * ) AS col1, - 29
----
1
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7315
SELECT + COUNT( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT ALL 93 * NULLIF ( - ( 96 ), + 56 * 6 - 21 + - - 51 ) * + + 38 AS col1
----
-339264

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT ALL MIN( - 84 ) - 7
----
-91

skipif mysql # not compatible
query I rowsort label-7317
SELECT ALL MIN ( - 84 ) - 7
----
-91

query I rowsort
SELECT 58 col0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT DISTINCT CASE + - COALESCE ( - ( + 28 ), 42 * + + 66, + 28 + + 55 ) WHEN - 52 THEN - + COUNT( * ) WHEN + + 61 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT CASE + - COALESCE ( - ( + 28 ), 42 * + + 66, + 28 + + 55 ) WHEN - 52 THEN - + COUNT ( * ) WHEN + + 61 THEN NULL END
----
NULL

query I rowsort
SELECT 91 * - 32
----
-2912

query II rowsort
SELECT 75 * 45, - 67 AS col1
----
3375
-67

onlyif mysql # DIV for integer division: 
query II rowsort label-7322
SELECT ALL 27 DIV + - 92, - 56 AS col2
----
0
-56

skipif mysql # not compatible
query II rowsort label-7322
SELECT ALL 27 / + - 92, - 56 AS col2
----
0
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT - CASE - + ( 88 ) WHEN + 76 THEN + 29 WHEN + COUNT( * ) THEN ( - + 49 ) - + - ( + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT - CASE - + ( 88 ) WHEN + 76 THEN + 29 WHEN + COUNT ( * ) THEN ( - + 49 ) - + - ( + COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 15 * + - 38 AS col0
----
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7325
SELECT + 85 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7325
SELECT + 85 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7326
SELECT + 3 / + CAST( NULL AS SIGNED ) * 99 AS col2, - 42 * 48 AS col2
----
NULL
-2016

skipif mysql # not compatible
query II rowsort label-7326
SELECT + 3 / + CAST ( NULL AS INTEGER ) * 99 AS col2, - 42 * 48 AS col2
----
NULL
-2016

query I rowsort
SELECT + 62 + - + 71 * - + 86 - COALESCE ( 17, - ( + - 60 ) * 65, - - 46 ) * 25 + - 46 AS col2
----
5697

query II rowsort
SELECT ALL 85 * 72 col2, + ( 15 ) * - 45 + + 27 + + + 38 + + 16 + + + 79 + 24 * - ( 98 ) col1
----
6120
-2867

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL COUNT( ALL 90 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL COUNT ( ALL 90 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT + 55 + + + 84 AS col2, - 14 + COUNT( * ) AS col1
----
139
-13

skipif mysql # not compatible
query II rowsort label-7330
SELECT + 55 + + + 84 AS col2, - 14 + COUNT ( * ) AS col1
----
139
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7331
SELECT ALL + ( 46 ) DIV 35 + - + 43 * - + 4 * - COUNT( * )
----
-171

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL + ( 46 ) / 35 + - + 43 * - + 4 * - COUNT ( * )
----
-171

query I rowsort
SELECT + 99 + + + 66 AS col1
----
165

query I rowsort
SELECT - + 43 * + 92
----
-3956

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7334
SELECT + - 74 + - CAST( NULL AS DECIMAL ) + + ( - + ( + 13 ) ) + - 42 + 18 / CAST( NULL AS SIGNED ) + - - 29 * - + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT + - 74 + - CAST ( NULL AS REAL ) + + ( - + ( + 13 ) ) + - 42 + 18 / CAST ( NULL AS INTEGER ) + - - 29 * - + 89
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7335
SELECT - COALESCE ( ( - + 77 ), + 94, + ( - - 86 ) - + - COUNT( ALL + 92 ), - MAX( + 46 ) ) AS col2, + MIN( DISTINCT + 20 ) DIV ( 69 ) - - 76 DIV + + 21 + - - 38 AS col1
----
77
41

skipif mysql # not compatible
query II rowsort label-7335
SELECT - COALESCE ( ( - + 77 ), + 94, + ( - - 86 ) - + - COUNT ( ALL + 92 ), - MAX ( + 46 ) ) AS col2, + MIN ( DISTINCT + 20 ) / ( 69 ) - - 76 / + + 21 + - - 38 AS col1
----
77
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7336
SELECT + ( - + 65 ) DIV - - 19 + - 66 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-7336
SELECT + ( - + 65 ) / - - 19 + - 66 AS col2
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7337
SELECT - CAST( - COUNT( 88 ) AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7337
SELECT - CAST ( - COUNT ( 88 ) AS INTEGER ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT + 74 * - - NULLIF ( - 72, + - COALESCE ( + ( 26 ), - 22 * + 87 + - 12 * - 76 * - 2 ) / - + 57 * + - COUNT( * ) + + 74 + - - 37 + + 43 + - - 9 * + 1 * - 52 * - - 54 + - - 26 ) AS col0
----
-5328

skipif mysql # not compatible
query I rowsort label-7338
SELECT + 74 * - - NULLIF ( - 72, + - COALESCE ( + ( 26 ), - 22 * + 87 + - 12 * - 76 * - 2 ) / - + 57 * + - COUNT ( * ) + + 74 + - - 37 + + 43 + - - 9 * + 1 * - 52 * - - 54 + - - 26 ) AS col0
----
-5328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7339
SELECT + - 24 + - - CAST( SUM( + + 41 ) AS SIGNED ) AS col1
----
17

skipif mysql # not compatible
query I rowsort label-7339
SELECT + - 24 + - - CAST ( SUM ( + + 41 ) AS INTEGER ) AS col1
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7340
SELECT ALL + 72 * - + NULLIF ( - 24, + COUNT( * ) ) + 92 * - 13 + + + 94 + + 4 DIV 53 + - 69, - 81 * - COUNT( * ) AS col0
----
557
81

skipif mysql # not compatible
query II rowsort label-7340
SELECT ALL + 72 * - + NULLIF ( - 24, + COUNT ( * ) ) + 92 * - 13 + + + 94 + + 4 / 53 + - 69, - 81 * - COUNT ( * ) AS col0
----
557
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT NULLIF ( - 70, 83 / - 64 * + + COUNT( * ) * - 44 )
----
-70

skipif mysql # not compatible
query I rowsort label-7341
SELECT NULLIF ( - 70, 83 / - 64 * + + COUNT ( * ) * - 44 )
----
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7342
SELECT + 43 * CAST( + MIN( + 17 ) AS SIGNED ) + - 78 col1
----
653

skipif mysql # not compatible
query I rowsort label-7342
SELECT + 43 * CAST ( + MIN ( + 17 ) AS INTEGER ) + - 78 col1
----
653

query I rowsort
SELECT + 77 + + 90 - 13
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7344
SELECT - CAST( - 66 AS SIGNED ) AS col0
----
66

skipif mysql # not compatible
query I rowsort label-7344
SELECT - CAST ( - 66 AS INTEGER ) AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT - - ( - 53 ) * MAX( ALL 4 ) AS col2
----
-212

skipif mysql # not compatible
query I rowsort label-7345
SELECT - - ( - 53 ) * MAX ( ALL 4 ) AS col2
----
-212

query I rowsort
SELECT ALL + - 34
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7347
SELECT - 74 DIV 68 * - + 39 * - 99
----
-3861

skipif mysql # not compatible
query I rowsort label-7347
SELECT - 74 / 68 * - + 39 * - 99
----
-3861

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ALL SUM( DISTINCT + 9 ) * COALESCE ( - NULLIF ( 51, + 27 ), - - ( - - 81 ), - COUNT( * ) ) - + 59 + - 40 col1
----
-558

skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL SUM ( DISTINCT + 9 ) * COALESCE ( - NULLIF ( 51, + 27 ), - - ( - - 81 ), - COUNT ( * ) ) - + 59 + - 40 col1
----
-558

query I rowsort
SELECT - ( 13 ) * NULLIF ( + 15, - + 62 ) AS col0
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7350
SELECT ALL + 89 DIV + ( - 39 ) AS col2, NULLIF ( - 36, ( + MAX( ALL 85 ) ) ) col1
----
-2
-36

skipif mysql # not compatible
query II rowsort label-7350
SELECT ALL + 89 / + ( - 39 ) AS col2, NULLIF ( - 36, ( + MAX ( ALL 85 ) ) ) col1
----
-2
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7351
SELECT - CAST( - CAST( - 72 AS SIGNED ) AS SIGNED ) + + 88
----
16

skipif mysql # not compatible
query I rowsort label-7351
SELECT - CAST ( - CAST ( - 72 AS INTEGER ) AS INTEGER ) + + 88
----
16

query I rowsort
SELECT ALL 40 * + + 10 * 82 AS col1
----
32800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT - 45 + + + 36 * + - 46 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT - 45 + + + 36 * + - 46 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT - 57 * + 72 * + 83 * + COUNT( * ) AS col0
----
-340632

skipif mysql # not compatible
query I rowsort label-7354
SELECT - 57 * + 72 * + 83 * + COUNT ( * ) AS col0
----
-340632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7355
SELECT COUNT( * ) AS col0, ( - 24 ) - - CAST( NULL AS SIGNED ) * 20 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7355
SELECT COUNT ( * ) AS col0, ( - 24 ) - - CAST ( NULL AS INTEGER ) * 20 AS col1
----
1
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7356
SELECT - 78 * - - 45 + 20 + 68 - + COUNT( * ) * 1 DIV + 70
----
-3422

skipif mysql # not compatible
query I rowsort label-7356
SELECT - 78 * - - 45 + 20 + 68 - + COUNT ( * ) * 1 / + 70
----
-3422

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7357
SELECT ALL ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - SUM( ALL + - 15 ) * + COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-7358
SELECT - SUM ( ALL + - 15 ) * + COUNT ( * ) AS col0
----
15

onlyif mysql # aggregate syntax: 
query III rowsort label-7359
SELECT + 98 * 38 * - - 17 AS col2, ( - - 96 ) * - ( 20 ) + - - 34 + 65 AS col0, + - COUNT( * ) col1
----
63308
-1821
-1

skipif mysql # not compatible
query III rowsort label-7359
SELECT + 98 * 38 * - - 17 AS col2, ( - - 96 ) * - ( 20 ) + - - 34 + 65 AS col0, + - COUNT ( * ) col1
----
63308
-1821
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL 21 * - CASE - + 72 WHEN 2 THEN NULL WHEN + ( + 44 ) THEN NULL ELSE + + COUNT( * ) + - 28 END * - - NULLIF ( 87, - 38 ) * - CASE 54 WHEN - 35 THEN 12 ELSE NULL END + + + COALESCE ( - 18, - 88 * 27 ) * + - 80 + - - 31 * + MIN( + 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL 21 * - CASE - + 72 WHEN 2 THEN NULL WHEN + ( + 44 ) THEN NULL ELSE + + COUNT ( * ) + - 28 END * - - NULLIF ( 87, - 38 ) * - CASE 54 WHEN - 35 THEN 12 ELSE NULL END + + + COALESCE ( - 18, - 88 * 27 ) * + - 80 + - - 31 * + MIN ( + 51 ) AS col0
----
NULL

query II rowsort
SELECT ALL 97 AS col0, - 3 + + + COALESCE ( - 1, + 46 )
----
97
-4

query I rowsort
SELECT DISTINCT + 0 * - 9 col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7363
SELECT ALL + CASE WHEN NOT + SUM( ALL 5 ) NOT IN ( - 87 + - + CAST( NULL AS SIGNED ) * + CASE 81 WHEN - - 45 THEN 52 * - 67 / - 3 WHEN 92 * - COUNT( * ) + + 89 + SUM( 80 ) THEN + COUNT( DISTINCT 39 ) * + 19 * + - 46 / 40 + + 42 WHEN - COUNT( * ) THEN NULL END + 51 - 73 + + NULLIF ( + SUM( ALL + 91 ), - 81 ) * + 27, ( - + 93 ) * + + 58 * 7, - 3 + + 24, + 76 * + 34, + 74 + 50 ) THEN + 95 ELSE - + 62 END * + NULLIF ( 23, + AVG ( ALL 33 ) / 84 + - 19 ) col1
----
-1426

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL + CASE WHEN NOT + SUM ( ALL 5 ) NOT IN ( - 87 + - + CAST ( NULL AS INTEGER ) * + CASE 81 WHEN - - 45 THEN 52 * - 67 / - 3 WHEN 92 * - COUNT ( * ) + + 89 + SUM ( 80 ) THEN + COUNT ( DISTINCT 39 ) * + 19 * + - 46 / 40 + + 42 WHEN - COUNT ( * ) THEN NULL END + 51 - 73 + + NULLIF ( + SUM ( ALL + 91 ), - 81 ) * + 27, ( - + 93 ) * + + 58 * 7, - 3 + + 24, + 76 * + 34, + 74 + 50 ) THEN + 95 ELSE - + 62 END * + NULLIF ( 23, + AVG ( ALL 33 ) / 84 + - 19 ) col1
----
-1426

query I rowsort
SELECT + 56 + + 55 * - ( + + 57 )
----
-3079

query I rowsort
SELECT ALL 26 + - 88 AS col2
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-7366
SELECT + 49 DIV - + 5 DIV + 1
----
-9

skipif mysql # not compatible
query I rowsort label-7366
SELECT + 49 / - + 5 / + 1
----
-9

query II rowsort
SELECT 2 AS col0, 20
----
2
20

query II rowsort
SELECT ALL 78 col1, 88 * - 27 AS col2
----
78
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT ALL 89 * 73 + CASE 95 WHEN + - ( 1 ) THEN + MIN( DISTINCT 52 ) * - 22 + + 43 + 75 ELSE 51 * + 62 END * + 45
----
148787

skipif mysql # not compatible
query I rowsort label-7369
SELECT ALL 89 * 73 + CASE 95 WHEN + - ( 1 ) THEN + MIN ( DISTINCT 52 ) * - 22 + + 43 + 75 ELSE 51 * + 62 END * + 45
----
148787

query I rowsort
SELECT - - 93 AS col2
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7371
SELECT ALL - - 96 + + CAST( + - 66 AS SIGNED ) AS col2, 30 * + - 92
----
30
-2760

skipif mysql # not compatible
query II rowsort label-7371
SELECT ALL - - 96 + + CAST ( + - 66 AS INTEGER ) AS col2, 30 * + - 92
----
30
-2760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7372
SELECT DISTINCT - 26 + + 49 + COUNT( * ) * + 98 + - NULLIF ( SUM( + 93 ), - 82 + - 36 + COUNT( * ) + - 27 + 40 + + 72 * - - 62 + 38 * + - 30 DIV 40 * NULLIF ( 16, - 50 ) ) * 26 DIV + 4 AS col0
----
-483

skipif mysql # not compatible
query I rowsort label-7372
SELECT DISTINCT - 26 + + 49 + COUNT ( * ) * + 98 + - NULLIF ( SUM ( + 93 ), - 82 + - 36 + COUNT ( * ) + - 27 + 40 + + 72 * - - 62 + 38 * + - 30 / 40 * NULLIF ( 16, - 50 ) ) * 26 / + 4 AS col0
----
-483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7373
SELECT DISTINCT 60 + + CAST( 31 AS SIGNED ) AS col0, + COUNT( ALL + - 15 ) AS col2
----
91
1

skipif mysql # not compatible
query II rowsort label-7373
SELECT DISTINCT 60 + + CAST ( 31 AS INTEGER ) AS col0, + COUNT ( ALL + - 15 ) AS col2
----
91
1

query I rowsort
SELECT - ( + 29 )
----
-29

query I rowsort
SELECT + 8 + + 64 + 54 * - - 48 * 55 AS col1
----
142632

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT ALL + 17 DIV - 87 + + 82
----
82

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL + 17 / - 87 + + 82
----
82

query I rowsort
SELECT + 66 - - 64
----
130

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT DISTINCT - 66 DIV - - 83 * 61 - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT - 66 / - - 83 * 61 - + 85
----
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-7379
SELECT ALL 44 DIV - 19 - 70 + - + 2, + 90 AS col2
----
-74
90

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL 44 / - 19 - 70 + - + 2, + 90 AS col2
----
-74
90

query I rowsort
SELECT DISTINCT + 76 * + 48 AS col1
----
3648

onlyif mysql # aggregate syntax: 
query II rowsort label-7381
SELECT DISTINCT 17 * COUNT( * ) AS col0, 53
----
17
53

skipif mysql # not compatible
query II rowsort label-7381
SELECT DISTINCT 17 * COUNT ( * ) AS col0, 53
----
17
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - ( + COUNT( * ) ) - - - 54 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7382
SELECT - ( + COUNT ( * ) ) - - - 54 AS col1
----
-55

query I rowsort
SELECT ( ( + + NULLIF ( 21, + 77 ) ) )
----
21

query II rowsort
SELECT ALL 52 * - 65 col0, - 30
----
-3380
-30

query I rowsort
SELECT 20 * + 80
----
1600

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT ALL - COUNT( DISTINCT ( - 52 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - COUNT ( DISTINCT ( - 52 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7387
SELECT 10 DIV + - 48 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7387
SELECT 10 / + - 48 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7388
SELECT 16 - 86 DIV COUNT( * ) + - - 9 AS col2, - NULLIF ( + - SUM( + - 94 ), - 89 ) col1
----
-61
-94

skipif mysql # not compatible
query II rowsort label-7388
SELECT 16 - 86 / COUNT ( * ) + - - 9 AS col2, - NULLIF ( + - SUM ( + - 94 ), - 89 ) col1
----
-61
-94

query I rowsort
SELECT 19 * 36 AS col1
----
684

query I rowsort
SELECT DISTINCT - 41 + - ( + + 77 ) AS col2
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7391
SELECT ALL 26 + - + 35 DIV - + 80 * - - 55 AS col0, COUNT( * )
----
26
1

skipif mysql # not compatible
query II rowsort label-7391
SELECT ALL 26 + - + 35 / - + 80 * - - 55 AS col0, COUNT ( * )
----
26
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7392
SELECT 35 * - 30 AS col2, 16 * + COALESCE ( 25, + 79, + + 23 * + 44 + - + 40 + COUNT( * ) + COALESCE ( - - 29, + 15, - MAX( DISTINCT + 84 ) ) ) * 24 AS col0
----
-1050
9600

skipif mysql # not compatible
query II rowsort label-7392
SELECT 35 * - 30 AS col2, 16 * + COALESCE ( 25, + 79, + + 23 * + 44 + - + 40 + COUNT ( * ) + COALESCE ( - - 29, + 15, - MAX ( DISTINCT + 84 ) ) ) * 24 AS col0
----
-1050
9600

query I rowsort
SELECT 15 + 96 AS col2
----
111

query I rowsort
SELECT ALL + 51 * - 25
----
-1275

onlyif mysql # aggregate syntax: 
query II rowsort label-7395
SELECT ALL - + COUNT( + 94 ) + - NULLIF ( + 60, - 11 * 28 - - - COUNT( * ) ) AS col2, 54 + - 80 AS col2
----
-61
-26

skipif mysql # not compatible
query II rowsort label-7395
SELECT ALL - + COUNT ( + 94 ) + - NULLIF ( + 60, - 11 * 28 - - - COUNT ( * ) ) AS col2, 54 + - 80 AS col2
----
-61
-26

query I rowsort
SELECT - 34 + - 61 AS col0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-7397
SELECT - MIN( - 60 ), - 62 + + + 63 AS col1
----
60
1

skipif mysql # not compatible
query II rowsort label-7397
SELECT - MIN ( - 60 ), - 62 + + + 63 AS col1
----
60
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT ALL + - 31 * + CAST( NULL AS SIGNED ) + 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL + - 31 * + CAST ( NULL AS INTEGER ) + 93
----
NULL

query I rowsort
SELECT ALL + 96 + - + 43 * + 58
----
-2398

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7400
SELECT CAST( NULL AS DECIMAL ) + - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT CAST ( NULL AS REAL ) + - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT DISTINCT - 69 + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT - 69 + COUNT ( * ) AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT + MIN( ALL - 53 ) + 79 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-7402
SELECT + MIN ( ALL - 53 ) + 79 AS col0
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7403
SELECT 77 + - 96, ( + 38 ) + MAX( ( - 65 ) ) AS col1
----
-19
-27

skipif mysql # not compatible
query II rowsort label-7403
SELECT 77 + - 96, ( + 38 ) + MAX ( ( - 65 ) ) AS col1
----
-19
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT COUNT( * ) * COUNT( DISTINCT + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7404
SELECT COUNT ( * ) * COUNT ( DISTINCT + 71 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7405
SELECT ALL + COALESCE ( - COUNT( * ), 19, - 70 * - + 22 + - 14 + + 98 ) DIV 87 col0
----
0

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL + COALESCE ( - COUNT ( * ), 19, - 70 * - + 22 + - 14 + + 98 ) / 87 col0
----
0

query I rowsort
SELECT ALL - 67 col1
----
-67

query I rowsort
SELECT + ( + 37 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7408
SELECT ALL + 95 * + + 95 + - 26 * - + MAX( ALL + 70 ) + + 94 * + COUNT( * ) AS col1, + 96 col0
----
10939
96

skipif mysql # not compatible
query II rowsort label-7408
SELECT ALL + 95 * + + 95 + - 26 * - + MAX ( ALL + 70 ) + + 94 * + COUNT ( * ) AS col1, + 96 col0
----
10939
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL - 84 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - 84 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 20 - - 37 * 82 AS col2
----
3014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7411
SELECT + CASE - ( - 47 ) WHEN 65 * - + CAST( - 74 AS SIGNED ) * + - 49 + + + CASE + ( 7 ) WHEN + + CAST( NULL AS SIGNED ) THEN + + 57 * + 10 * + - 61 WHEN 42 * - COUNT( ALL 98 ) THEN + 71 ELSE NULL END - - - 44 THEN 72 WHEN - - 13 THEN + 43 + + + ( 35 ) WHEN MAX( + 35 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT + CASE - ( - 47 ) WHEN 65 * - + CAST ( - 74 AS INTEGER ) * + - 49 + + + CASE + ( 7 ) WHEN + + CAST ( NULL AS INTEGER ) THEN + + 57 * + 10 * + - 61 WHEN 42 * - COUNT ( ALL 98 ) THEN + 71 ELSE NULL END - - - 44 THEN 72 WHEN - - 13 THEN + 43 + + + ( 35 ) WHEN MAX ( + 35 ) THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + ( + COUNT( * ) ) * - + ( COALESCE ( + 58, - + 25 ) ) * 1 * + 12 * 75 AS col2
----
-52200

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + ( + COUNT ( * ) ) * - + ( COALESCE ( + 58, - + 25 ) ) * 1 * + 12 * 75 AS col2
----
-52200

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT DISTINCT 78 * + COUNT( * ) - - 57
----
135

skipif mysql # not compatible
query I rowsort label-7413
SELECT DISTINCT 78 * + COUNT ( * ) - - 57
----
135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7414
SELECT ALL 40 / - 76 * + SUM( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL 40 / - 76 * + SUM ( + - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 1 * 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT ( COUNT( * ) ) + + MIN( 30 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7416
SELECT ( COUNT ( * ) ) + + MIN ( 30 ) AS col0
----
31

query II rowsort
SELECT DISTINCT - 52, - 53 * + 6 AS col1
----
-52
-318

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT 26 - + ( + - COUNT( * ) )
----
27

skipif mysql # not compatible
query I rowsort label-7418
SELECT 26 - + ( + - COUNT ( * ) )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL - COUNT( DISTINCT + 28 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - COUNT ( DISTINCT + 28 ) AS col2
----
-1

query I rowsort
SELECT ALL - 74 AS col1
----
-74

query I rowsort
SELECT ALL 68 + - + ( - 96 )
----
164

query I rowsort
SELECT 54 * - 40 + + 48 AS col1
----
-2112

query I rowsort
SELECT DISTINCT - 87 AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7424
SELECT ALL + NULLIF ( + ( - 56 ), - + CAST( 29 AS SIGNED ) ) + - COUNT( ALL ( + + 45 ) )
----
-57

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL + NULLIF ( + ( - 56 ), - + CAST ( 29 AS INTEGER ) ) + - COUNT ( ALL ( + + 45 ) )
----
-57

query I rowsort
SELECT ALL ( 36 ) + 57
----
93

query I rowsort
SELECT 35 + 36
----
71

query I rowsort
SELECT DISTINCT 97 * - 5
----
-485

query I rowsort
SELECT DISTINCT 55 AS col2
----
55

query I rowsort
SELECT 16 * 81
----
1296

query II rowsort
SELECT - 9 AS col2, - 21
----
-9
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL + CAST( CASE - + 67 WHEN - + ( + CAST( NULL AS SIGNED ) ) * - SUM( - 16 ) + - + 97 THEN NULL ELSE + ( + + 69 ) + + 2 + MIN( DISTINCT - 87 ) / 43 END AS SIGNED ) + - - NULLIF ( - 27, - - 48 ) * - + CAST( + 98 AS SIGNED ) + + 2
----
2717

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + CAST ( CASE - + 67 WHEN - + ( + CAST ( NULL AS INTEGER ) ) * - SUM ( - 16 ) + - + 97 THEN NULL ELSE + ( + + 69 ) + + 2 + MIN ( DISTINCT - 87 ) / 43 END AS INTEGER ) + - - NULLIF ( - 27, - - 48 ) * - + CAST ( + 98 AS INTEGER ) + + 2
----
2717

query I rowsort
SELECT DISTINCT - NULLIF ( + + 74, - 56 ) + + 93 * NULLIF ( 30, + ( - + 1 ) ) + + 12
----
2728

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7433
SELECT ALL - - 8 + 68 + - + 45 * - 19 * + - NULLIF ( 30, CAST( NULL AS SIGNED ) * COUNT( * ) + - COUNT( * ) * - + 2 * + + 21 )
----
-25574

skipif mysql # not compatible
query I rowsort label-7433
SELECT ALL - - 8 + 68 + - + 45 * - 19 * + - NULLIF ( 30, CAST ( NULL AS INTEGER ) * COUNT ( * ) + - COUNT ( * ) * - + 2 * + + 21 )
----
-25574

query I rowsort
SELECT - 41 * + + 65
----
-2665

query II rowsort
SELECT DISTINCT - 5, - 30 col1
----
-5
-30

query II rowsort
SELECT ALL - 31 + ( + 30 ) AS col0, 18 AS col1
----
-1
18

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT DISTINCT - + ( + - 82 ) DIV - ( - 17 )
----
4

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - + ( + - 82 ) / - ( - 17 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT ALL - - NULLIF ( CAST( NULL AS SIGNED ), - - 8 * + MIN( 47 ) * - + 47 * - 94 ) * - + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-7438
SELECT ALL - - NULLIF ( CAST ( NULL AS INTEGER ), - - 8 * + MIN ( 47 ) * - + 47 * - 94 ) * - + 24
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT 53 DIV - + 88
----
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT 53 / - + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7440
SELECT ALL - COUNT( * ) + + NULLIF ( + 15, + 37 * - 23 * MIN( ALL + - 98 ) - - - NULLIF ( COUNT( * ), 53 * SUM( DISTINCT 36 ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-7440
SELECT ALL - COUNT ( * ) + + NULLIF ( + 15, + 37 * - 23 * MIN ( ALL + - 98 ) - - - NULLIF ( COUNT ( * ), 53 * SUM ( DISTINCT 36 ) ) )
----
14

query I rowsort
SELECT - CASE + 34 WHEN + 72 THEN 80 WHEN + COALESCE ( - 23, - 6 * 58 ) THEN - + 67 * - 29 END
----
NULL

query I rowsort
SELECT - - 45 AS col1
----
45

query I rowsort
SELECT - ( + 20 ) AS col1
----
-20

query I rowsort
SELECT ALL NULLIF ( + 48, + + 60 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7445
SELECT + SUM( 18 ) AS col0
----
18

skipif mysql # not compatible
query I rowsort label-7445
SELECT + SUM ( 18 ) AS col0
----
18

query I rowsort
SELECT - ( + - 90 )
----
90

query I rowsort
SELECT - - 25 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7448
SELECT ALL + 24 - + - 74 + - COUNT( * ) + CASE 32 WHEN 25 THEN + - COUNT( * ) + - 57 * 80 * - + CAST( NULL AS SIGNED ) END * + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL + 24 - + - 74 + - COUNT ( * ) + CASE 32 WHEN 25 THEN + - COUNT ( * ) + - 57 * 80 * - + CAST ( NULL AS INTEGER ) END * + + COUNT ( * ) col1
----
NULL

query I rowsort
SELECT ALL - - 61 * + 67 AS col0
----
4087

query I rowsort
SELECT 2 * - - 91 AS col0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT - + MAX( 93 )
----
-93

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - + MAX ( 93 )
----
-93

query I rowsort
SELECT + + 52 + 75 AS col1
----
127

query I rowsort
SELECT + 23 * + 58
----
1334

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT - ( - + 75 ) + MIN( + 52 ) * 78 - - - 61
----
4070

skipif mysql # not compatible
query I rowsort label-7454
SELECT - ( - + 75 ) + MIN ( + 52 ) * 78 - - - 61
----
4070

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT + MAX( ALL + 3 )
----
3

skipif mysql # not compatible
query I rowsort label-7455
SELECT + MAX ( ALL + 3 )
----
3

query II rowsort
SELECT ALL + 55, 85 AS col0
----
55
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT COALESCE ( + + MAX( ALL + - ( ( - 36 ) ) ), - 0 )
----
36

skipif mysql # not compatible
query I rowsort label-7457
SELECT COALESCE ( + + MAX ( ALL + - ( ( - 36 ) ) ), - 0 )
----
36

query I rowsort
SELECT - 4 * + ( + + 14 ) + 5 + 54 + + 13 * - + 81 * - 85 AS col2
----
89508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7459
SELECT DISTINCT + ( + CAST( + - 54 AS SIGNED ) )
----
-54

skipif mysql # not compatible
query I rowsort label-7459
SELECT DISTINCT + ( + CAST ( + - 54 AS INTEGER ) )
----
-54

query I rowsort
SELECT ALL + 74 col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7461
SELECT ALL ( + 51 ) * + COUNT( * ) + 1 DIV + + 66 * 89 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL ( + 51 ) * + COUNT ( * ) + 1 / + + 66 * 89 AS col0
----
51

query I rowsort
SELECT + 57 * - + 15
----
-855

query I rowsort
SELECT ALL + 12 * + 51 * - 26 + - 63 AS col2
----
-15975

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT + COUNT( * ) * + - 1 AS col0, - ( - 72 )
----
-1
72

skipif mysql # not compatible
query II rowsort label-7464
SELECT + COUNT ( * ) * + - 1 AS col0, - ( - 72 )
----
-1
72

query I rowsort
SELECT - 84 * - 97 * - 14 - + 12
----
-114084

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT MIN( ALL + + 37 )
----
37

skipif mysql # not compatible
query I rowsort label-7466
SELECT MIN ( ALL + + 37 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT + 97 * + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-7467
SELECT + 97 * + - COUNT ( * )
----
-97

query I rowsort
SELECT + 3 * - + 61
----
-183

query I rowsort
SELECT DISTINCT - 2 - - 35
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-7470
SELECT - 24 AS col0, COUNT( * )
----
-24
1

skipif mysql # not compatible
query II rowsort label-7470
SELECT - 24 AS col0, COUNT ( * )
----
-24
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7471
SELECT ALL 47 col2, - COUNT( * ) AS col0
----
47
-1

skipif mysql # not compatible
query II rowsort label-7471
SELECT ALL 47 col2, - COUNT ( * ) AS col0
----
47
-1

query I rowsort
SELECT ALL + 69 - 76 * ( + - 12 ) - 23 * + 55 * - 32 * 65 AS col2
----
2632181

query I rowsort
SELECT + 96 + - ( - + ( - 5 ) ) AS col2
----
91

query II rowsort
SELECT + - 88 + 87, 74 AS col2
----
-1
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT 44 * + + 54 - + ( + + CASE 36 WHEN + 71 THEN + CASE + COALESCE ( - + NULLIF ( - COUNT( * ), - - 20 ), + 58 * - 57 ) WHEN COUNT( * ) * 68 * - + 97 + 5 / ( 71 ) THEN NULL ELSE + - 25 / - ( ( - COALESCE ( + 10, 85 ) ) ) END END ) * NULLIF ( - 72, + - 65 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT 44 * + + 54 - + ( + + CASE 36 WHEN + 71 THEN + CASE + COALESCE ( - + NULLIF ( - COUNT ( * ), - - 20 ), + 58 * - 57 ) WHEN COUNT ( * ) * 68 * - + 97 + 5 / ( 71 ) THEN NULL ELSE + - 25 / - ( ( - COALESCE ( + 10, 85 ) ) ) END END ) * NULLIF ( - 72, + - 65 ) AS col0
----
NULL

query I rowsort
SELECT - ( 66 ) AS col0
----
-66

query I rowsort
SELECT + - 39 + 52 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - COUNT( * ) - 10 - + - 82 * + + 50 AS col2
----
4089

skipif mysql # not compatible
query I rowsort label-7478
SELECT - COUNT ( * ) - 10 - + - 82 * + + 50 AS col2
----
4089

query II rowsort
SELECT ALL + 35 AS col2, + 98 + 6 col1
----
35
104

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT + NULLIF ( 73, MAX( DISTINCT + ( + ( 99 ) ) ) / - - 34 ) * COUNT( DISTINCT + COALESCE ( + - 82, - 17 ) )
----
73

skipif mysql # not compatible
query I rowsort label-7480
SELECT + NULLIF ( 73, MAX ( DISTINCT + ( + ( 99 ) ) ) / - - 34 ) * COUNT ( DISTINCT + COALESCE ( + - 82, - 17 ) )
----
73

query I rowsort
SELECT DISTINCT 11 * - 92 + + 85 * + 61 * 70 AS col2
----
361938

onlyif mysql # aggregate syntax: 
query II rowsort label-7482
SELECT ALL + 81 AS col2, COUNT( * ) AS col2
----
81
1

skipif mysql # not compatible
query II rowsort label-7482
SELECT ALL + 81 AS col2, COUNT ( * ) AS col2
----
81
1

onlyif mysql # aggregate syntax: 
query III rowsort label-7483
SELECT DISTINCT + 11 AS col2, - 97 AS col1, + 77 + + COUNT( * ) + + + 77 * + ( + + ( + 83 ) ) * + - 4 AS col1
----
11
-97
-25486

skipif mysql # not compatible
query III rowsort label-7483
SELECT DISTINCT + 11 AS col2, - 97 AS col1, + 77 + + COUNT ( * ) + + + 77 * + ( + + ( + 83 ) ) * + - 4 AS col1
----
11
-97
-25486

query II rowsort
SELECT DISTINCT 60 AS col1, 89
----
60
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT ALL + + 88 DIV + + 51 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + + 88 / + + 51 AS col2
----
1

query I rowsort
SELECT ALL COALESCE ( + - 56, - 25 )
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT + - 87 * 47 * - CASE + + 14 WHEN - 82 + - 50 - + - 34 THEN - - CAST( 15 AS SIGNED ) * + COUNT( * ) + - SUM( 77 ) / COUNT( * ) END + 66 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT + - 87 * 47 * - CASE + + 14 WHEN - 82 + - 50 - + - 34 THEN - - CAST ( 15 AS INTEGER ) * + COUNT ( * ) + - SUM ( 77 ) / COUNT ( * ) END + 66 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7488
SELECT - CAST( + 64 AS SIGNED ) AS col2, + ( + 34 ) AS col1, 95 AS col2
----
-64
34
95

skipif mysql # not compatible
query III rowsort label-7488
SELECT - CAST ( + 64 AS INTEGER ) AS col2, + ( + 34 ) AS col1, 95 AS col2
----
-64
34
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT - + 7 DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-7489
SELECT - + 7 / 42
----
0

query I rowsort
SELECT ALL + 1 * + - 78 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT - - MIN( - - 98 )
----
98

skipif mysql # not compatible
query I rowsort label-7491
SELECT - - MIN ( - - 98 )
----
98

query I rowsort
SELECT - 11 * 27 col2
----
-297

query I rowsort
SELECT DISTINCT - 54 * + 20 AS col2
----
-1080

onlyif mysql # DIV for integer division: 
query I rowsort label-7494
SELECT ALL 37 DIV 75 + 9 + - + 27 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-7494
SELECT ALL 37 / 75 + 9 + - + 27 AS col2
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7495
SELECT ALL + 95 DIV 94 + + 95 + - ( + SUM( ALL 89 ) ) + 92 * + 23 + + 56
----
2179

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + 95 / 94 + + 95 + - ( + SUM ( ALL 89 ) ) + 92 * + 23 + + 56
----
2179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7496
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + + 58 col1
----
57

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + + 58 col1
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-7497
SELECT - 16 * - + COUNT( * ) col2, 33 * + + 29
----
16
957

skipif mysql # not compatible
query II rowsort label-7497
SELECT - 16 * - + COUNT ( * ) col2, 33 * + + 29
----
16
957

query I rowsort
SELECT ( + - 99 )
----
-99

query I rowsort
SELECT ( - 46 ) col0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT ( + - CAST( 93 AS SIGNED ) ) AS col1
----
-93

skipif mysql # not compatible
query I rowsort label-7500
SELECT ( + - CAST ( 93 AS INTEGER ) ) AS col1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7501
SELECT ALL - ( 71 ) * - CAST( NULL AS SIGNED ) * 54 + 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL - ( 71 ) * - CAST ( NULL AS INTEGER ) * 54 + 16 AS col2
----
NULL

query I rowsort
SELECT - 21 + + - 74 AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7503
SELECT 64 * - 48 * - ( 65 ) * 42 + - CAST( NULL AS SIGNED ) / - + CAST( - + NULLIF ( - + COALESCE ( + 68, 3, + NULLIF ( 66, - + MIN( DISTINCT - + ( 85 ) ) ), + - COUNT( * ) - - 34 + + COALESCE ( 51, 14, ( 80 ) ) ), + 3 ) AS SIGNED ) * 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT 64 * - 48 * - ( 65 ) * 42 + - CAST ( NULL AS INTEGER ) / - + CAST ( - + NULLIF ( - + COALESCE ( + 68, 3, + NULLIF ( 66, - + MIN ( DISTINCT - + ( 85 ) ) ), + - COUNT ( * ) - - 34 + + COALESCE ( 51, 14, ( 80 ) ) ), + 3 ) AS INTEGER ) * 95 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + COUNT( * ) - 9 + - 70 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-7504
SELECT + COUNT ( * ) - 9 + - 70 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT DISTINCT + MAX( - - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT + MAX ( - - 7 ) AS col0
----
7

query I rowsort
SELECT ALL 44 * - - ( + 34 ) AS col1
----
1496

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT - 50 * + COUNT( * ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-7507
SELECT - 50 * + COUNT ( * ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT + MAX( DISTINCT 87 ) + - 24 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-7508
SELECT + MAX ( DISTINCT 87 ) + - 24 AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7509
SELECT ALL + 40 * + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL + 40 * + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7510
SELECT - + CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2, + COUNT( * ) * 2 col2
----
NULL
2

skipif mysql # not compatible
query II rowsort label-7510
SELECT - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2, + COUNT ( * ) * 2 col2
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT + 57 * + SUM( ALL 33 ) + + 35
----
1916

skipif mysql # not compatible
query I rowsort label-7511
SELECT + 57 * + SUM ( ALL 33 ) + + 35
----
1916

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT - 89 DIV 76 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7512
SELECT - 89 / 76 AS col2
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7513
SELECT CASE - + 74 WHEN + 82 * + CASE COUNT( * ) WHEN 91 / + ( + 88 ) THEN - + COALESCE ( + - 11, COUNT( * ) ) WHEN - 56 THEN + 56 + + 76 * - 7 END + - - CASE + 90 WHEN + 46 / - CAST( NULL AS DECIMAL ) + - COUNT( * ) THEN + COUNT( - - 27 ) * - 42 END + - COUNT( * ) + - 60 + - + ( + + 74 ) THEN - 55 * + 11 END * + 11 * 94 + + 76 + + - COUNT( - 37 ) * COUNT( * ) - + + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT CASE - + 74 WHEN + 82 * + CASE COUNT ( * ) WHEN 91 / + ( + 88 ) THEN - + COALESCE ( + - 11, COUNT ( * ) ) WHEN - 56 THEN + 56 + + 76 * - 7 END + - - CASE + 90 WHEN + 46 / - CAST ( NULL AS REAL ) + - COUNT ( * ) THEN + COUNT ( - - 27 ) * - 42 END + - COUNT ( * ) + - 60 + - + ( + + 74 ) THEN - 55 * + 11 END * + 11 * 94 + + 76 + + - COUNT ( - 37 ) * COUNT ( * ) - + + 78 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT 37 * + COUNT( 46 ) + COALESCE ( 1, - - NULLIF ( 21, - 98 ) * + + 32 + + 54, - 24 - + COUNT( * ) )
----
38

skipif mysql # not compatible
query I rowsort label-7514
SELECT 37 * + COUNT ( 46 ) + COALESCE ( 1, - - NULLIF ( 21, - 98 ) * + + 32 + + 54, - 24 - + COUNT ( * ) )
----
38

query I rowsort
SELECT + ( + COALESCE ( - 28, 45 * + 17 + + + 73 ) ) AS col2
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7516
SELECT + ( - MAX( DISTINCT 94 ) ) + 84 + CASE - + 11 WHEN - 55 THEN ( + 94 ) END - 99 * + COALESCE ( 21, + 64, - 15 ) * - ( 78 ) * + CASE COALESCE ( - ( 22 ), - CASE - CAST( NULL AS SIGNED ) WHEN - 95 THEN NULL WHEN 16 * + + 78 - - + 36 + - 67 THEN NULL WHEN + 24 THEN - + CAST( COUNT( * ) AS SIGNED ) / - - COUNT( * ) * - - 82 + - 40 ELSE NULL END ) WHEN - 72 THEN + 17 + + - 42 WHEN + - CAST( + - 17 AS SIGNED ) THEN - CASE CASE - 90 WHEN 32 - - - COUNT( * ) * - + 72 / + 69 THEN + 23 - COALESCE ( + 73, + 67 / + 44 ) * + 55 END WHEN - CAST( NULL AS SIGNED ) THEN - 34 END ELSE AVG ( + 5 ) END + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7516
SELECT + ( - MAX ( DISTINCT 94 ) ) + 84 + CASE - + 11 WHEN - 55 THEN ( + 94 ) END - 99 * + COALESCE ( 21, + 64, - 15 ) * - ( 78 ) * + CASE COALESCE ( - ( 22 ), - CASE - CAST ( NULL AS INTEGER ) WHEN - 95 THEN NULL WHEN 16 * + + 78 - - + 36 + - 67 THEN NULL WHEN + 24 THEN - + CAST ( COUNT ( * ) AS INTEGER ) / - - COUNT ( * ) * - - 82 + - 40 ELSE NULL END ) WHEN - 72 THEN + 17 + + - 42 WHEN + - CAST ( + - 17 AS INTEGER ) THEN - CASE CASE - 90 WHEN 32 - - - COUNT ( * ) * - + 72 / + 69 THEN + 23 - COALESCE ( + 73, + 67 / + 44 ) * + 55 END WHEN - CAST ( NULL AS INTEGER ) THEN - 34 END ELSE AVG ( + 5 ) END + - 32
----
NULL

query I rowsort
SELECT ALL - 6 col2
----
-6

query I rowsort
SELECT - 75 * - 46 + - 52 * - 67
----
6934

query I rowsort
SELECT ALL + 72 + 39 * - ( - - 10 )
----
-318

query I rowsort
SELECT 65 - - 4 + + COALESCE ( - 44, - 91, + + 13 * - 83 ) + 68
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7521
SELECT - 41 * + + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT - 41 * + + CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL + 98 col2
----
98

query I rowsort
SELECT DISTINCT + 13 + + 65
----
78

query I rowsort
SELECT ( + - 37 ) * 3
----
-111

query I rowsort
SELECT ALL 52 + 61 col0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT ALL - COUNT( * ) + - 21 * - + 16
----
335

skipif mysql # not compatible
query I rowsort label-7526
SELECT ALL - COUNT ( * ) + - 21 * - + 16
----
335

query II rowsort
SELECT ALL 26 AS col2, NULLIF ( - 19, 40 ) + 45
----
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT 26 + + + COUNT( * ) * + - 83 + - 10
----
-67

skipif mysql # not compatible
query I rowsort label-7528
SELECT 26 + + + COUNT ( * ) * + - 83 + - 10
----
-67

query I rowsort
SELECT 29 * + 54 AS col1
----
1566

query I rowsort
SELECT DISTINCT - 68 AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT ALL + ( - COALESCE ( - 49, 87 DIV - 77 - + - 52 + - + 71 DIV + - ( - 32 ) * + ( + + 74 ) ) ) + - 64 AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL + ( - COALESCE ( - 49, 87 / - 77 - + - 52 + - + 71 / + - ( - 32 ) * + ( + + 74 ) ) ) + - 64 AS col2
----
-15

query I rowsort
SELECT 54 * - - 79 AS col0
----
4266

query II rowsort
SELECT 1 AS col0, 78 - - + 9
----
1
87

query I rowsort
SELECT + 57 * - 97 * - + 91 + 86 * - + 35 AS col0
----
500129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7535
SELECT ALL - ( + 42 ) * CASE 59 WHEN + ( - 4 ) THEN NULL WHEN + 52 + - - MIN( - - 24 ) + + - COUNT( * ) * + 83 THEN NULL ELSE + 77 END + - + CAST( NULL AS SIGNED ) + - + 88 - - + 15 * - 45 + - 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - ( + 42 ) * CASE 59 WHEN + ( - 4 ) THEN NULL WHEN + 52 + - - MIN ( - - 24 ) + + - COUNT ( * ) * + 83 THEN NULL ELSE + 77 END + - + CAST ( NULL AS INTEGER ) + - + 88 - - + 15 * - 45 + - 36 AS col0
----
NULL

query I rowsort
SELECT ALL 38 - + 13
----
25

query I rowsort
SELECT DISTINCT + 79 - - - NULLIF ( 50, 8 * + 97 ) AS col1
----
29

query I rowsort
SELECT 54 * 89
----
4806

query II rowsort
SELECT + 59 AS col0, + 80
----
59
80

query I rowsort
SELECT 8 * + 32 * - 64
----
-16384

query I rowsort
SELECT 51 * 67
----
3417

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7542
SELECT + ( + 93 ) * COUNT( * ) DIV 22 - - 19 - 78 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-7542
SELECT + ( + 93 ) * COUNT ( * ) / 22 - - 19 - 78 AS col1
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7543
SELECT - COALESCE ( 72, - + NULLIF ( - 18, - 29 ), 19 * + 89, - 0 DIV + COUNT( * ) * - 21 + + 62 )
----
-72

skipif mysql # not compatible
query I rowsort label-7543
SELECT - COALESCE ( 72, - + NULLIF ( - 18, - 29 ), 19 * + 89, - 0 / + COUNT ( * ) * - 21 + + 62 )
----
-72

query I rowsort
SELECT DISTINCT - + 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-7545
SELECT + COUNT( * ) AS col0, ( + 39 ) * + 41 AS col2
----
1
1599

skipif mysql # not compatible
query II rowsort label-7545
SELECT + COUNT ( * ) AS col0, ( + 39 ) * + 41 AS col2
----
1
1599

query I rowsort
SELECT ALL + + 46 * + 20 AS col2
----
920

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT NULLIF ( + 34, - ( + COUNT( * ) ) ) * - + 26 + - 82 * 75 col1
----
-7034

skipif mysql # not compatible
query I rowsort label-7547
SELECT NULLIF ( + 34, - ( + COUNT ( * ) ) ) * - + 26 + - 82 * 75 col1
----
-7034

query II rowsort
SELECT DISTINCT - 90 AS col2, 13
----
-90
13

query II rowsort
SELECT - 44 AS col1, + 97 AS col1
----
-44
97

query I rowsort
SELECT ALL ( - 58 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7551
SELECT CAST( NULL AS SIGNED ) - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT ALL + 67 * - SUM( ALL - 34 ) * - - 2 + 70 AS col0
----
4626

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL + 67 * - SUM ( ALL - 34 ) * - - 2 + 70 AS col0
----
4626

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT + + 88 * 83 * + COUNT( ALL + - 86 ) * - 99 + + + 64 - + ( + ( COUNT( * ) ) ) + - - ( - - 0 ) * - - ( - 57 ) * - 37 AS col0
----
-723033

skipif mysql # not compatible
query I rowsort label-7553
SELECT + + 88 * 83 * + COUNT ( ALL + - 86 ) * - 99 + + + 64 - + ( + ( COUNT ( * ) ) ) + - - ( - - 0 ) * - - ( - 57 ) * - 37 AS col0
----
-723033

query II rowsort
SELECT 5 AS col2, 18 AS col1
----
5
18

onlyif mysql # aggregate syntax: 
query II rowsort label-7555
SELECT ALL - - 42 + - ( - + 97 ), - 15 * + - 78 * + - MIN( ALL 23 ) AS col0
----
139
-26910

skipif mysql # not compatible
query II rowsort label-7555
SELECT ALL - - 42 + - ( - + 97 ), - 15 * + - 78 * + - MIN ( ALL 23 ) AS col0
----
139
-26910

query I rowsort
SELECT 87 + 85 AS col2
----
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT 46 / - CAST( NULL AS SIGNED ) / - + 49 + - + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7557
SELECT 46 / - CAST ( NULL AS INTEGER ) / - + 49 + - + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT - 17 + - COUNT( DISTINCT + + 70 ) + 88 + 65 * - - COUNT( * )
----
135

skipif mysql # not compatible
query I rowsort label-7558
SELECT - 17 + - COUNT ( DISTINCT + + 70 ) + 88 + 65 * - - COUNT ( * )
----
135

query I rowsort
SELECT ALL ( - 31 ) AS col0
----
-31

query I rowsort
SELECT 79 + + 28
----
107

query I rowsort
SELECT 25 + - + 26 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7562
SELECT ALL - + 62 + + COUNT( * ) DIV + 63 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL - + 62 + + COUNT ( * ) / + 63 AS col1
----
-62

query I rowsort
SELECT DISTINCT 75 + + 17 + - - 67 AS col1
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT ALL ( + + 52 ) + - 61 - - + 86 * + - 72 / CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL ( + + 52 ) + - 61 - - + 86 * + - 72 / CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 29 + + 22 + + 72 + - 49 * + + 15
----
-612

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL ( + + SUM( 58 ) ) + 51
----
109

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL ( + + SUM ( 58 ) ) + 51
----
109

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7567
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT CAST ( NULL AS REAL ) * - 61
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7568
SELECT ( + + NULLIF ( - - 37, 33 - + - MIN( ALL 52 ) ) ) DIV - 25 + 87 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-7568
SELECT ( + + NULLIF ( - - 37, 33 - + - MIN ( ALL 52 ) ) ) / - 25 + 87 AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT CAST( NULL AS SIGNED ) * + - CAST( - ( + COALESCE ( + 13, 58 + + 39, + 41, + - 74 * + - 41 ) ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7569
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( - ( + COALESCE ( + 13, 58 + + 39, + 41, + - 74 * + - 41 ) ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT CAST( ( + + 59 ) AS SIGNED ) * + ( - 70 )
----
-4130

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT CAST ( ( + + 59 ) AS INTEGER ) * + ( - 70 )
----
-4130

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT MIN( 96 )
----
96

skipif mysql # not compatible
query I rowsort label-7571
SELECT MIN ( 96 )
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT NULLIF ( + CAST( NULL AS SIGNED ), 94 + + - 26 + 68 * - + 43 / - 22 * - 47 ) + - MIN( + 9 ) - - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7572
SELECT NULLIF ( + CAST ( NULL AS INTEGER ), 94 + + - 26 + 68 * - + 43 / - 22 * - 47 ) + - MIN ( + 9 ) - - COUNT ( * ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7573
SELECT 44 DIV - 89 * + - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7573
SELECT 44 / - 89 * + - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT 50 + - SUM( DISTINCT - ( + 55 ) ) col2, COALESCE ( 82, 11 ) col0
----
105
82

skipif mysql # not compatible
query II rowsort label-7574
SELECT 50 + - SUM ( DISTINCT - ( + 55 ) ) col2, COALESCE ( 82, 11 ) col0
----
105
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7575
SELECT DISTINCT - + 57 * MIN( 40 ) + COUNT( * ) AS col2, + 74 + + 83 * + 77 * + + 88 + + + 71 * - 14 col1
----
-2279
561488

skipif mysql # not compatible
query II rowsort label-7575
SELECT DISTINCT - + 57 * MIN ( 40 ) + COUNT ( * ) AS col2, + 74 + + 83 * + 77 * + + 88 + + + 71 * - 14 col1
----
-2279
561488

query I rowsort
SELECT 97 - + - 43
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + + COUNT( DISTINCT - ( + - 78 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7577
SELECT + + COUNT ( DISTINCT - ( + - 78 ) ) AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7578
SELECT DISTINCT - + CASE + - 61 WHEN + 95 * ( + 89 ) + COALESCE ( 42, - + 81 * - 11 + + + 74 ) - + CAST( 69 AS SIGNED ) THEN - 51 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT - + CASE + - 61 WHEN + 95 * ( + 89 ) + COALESCE ( 42, - + 81 * - 11 + + + 74 ) - + CAST ( 69 AS INTEGER ) THEN - 51 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 45 * - 31 AS col2
----
-1395

query I rowsort
SELECT 76 + - - 78
----
154

query I rowsort
SELECT DISTINCT + + 52 + + 55 AS col0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT - - 26 * 96 - + ( 68 ) + + 5 * 46 + + SUM( ALL - 76 ) + - 3 + + 78 * + 72 AS col0
----
8195

skipif mysql # not compatible
query I rowsort label-7582
SELECT - - 26 * 96 - + ( 68 ) + + 5 * 46 + + SUM ( ALL - 76 ) + - 3 + + 78 * + 72 AS col0
----
8195

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT ALL + 5 + COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL + 5 + COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT + - 22
----
-22

query I rowsort
SELECT ALL ( - - ( + + 52 ) )
----
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7586
SELECT ALL + 55 + + 55 + 41 + - + 24 + - MIN( - 78 ) * 88 DIV 56 DIV ( - + 79 ) AS col1
----
126

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL + 55 + + 55 + 41 + - + 24 + - MIN ( - 78 ) * 88 / 56 / ( - + 79 ) AS col1
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7587
SELECT - + 50 * CAST( COUNT( * ) AS SIGNED ) col2
----
-50

skipif mysql # not compatible
query I rowsort label-7587
SELECT - + 50 * CAST ( COUNT ( * ) AS INTEGER ) col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT ALL - + COUNT( * ) + + 95
----
94

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - + COUNT ( * ) + + 95
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-7589
SELECT ( - + 34 ) AS col2, - 99 DIV - 12
----
-34
8

skipif mysql # not compatible
query II rowsort label-7589
SELECT ( - + 34 ) AS col2, - 99 / - 12
----
-34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT DISTINCT - COUNT( * ) + + 7 + - ( - + COUNT( * ) ) * 47 * + 46 * - 44
----
-95122

skipif mysql # not compatible
query I rowsort label-7590
SELECT DISTINCT - COUNT ( * ) + + 7 + - ( - + COUNT ( * ) ) * 47 * + 46 * - 44
----
-95122

query I rowsort
SELECT ALL + CASE + 42 WHEN + + 87 * - + 25 + + 33 THEN NULL WHEN 19 + + 89 + + 12 THEN + 20 END + - 49 * 95 / 65 AS col0
----
NULL

query I rowsort
SELECT - ( ( + CASE + NULLIF ( - + ( - - 87 ), 37 ) WHEN - 50 THEN + 46 ELSE NULL END ) ) * + 45 / 67 AS col1
----
NULL

query I rowsort
SELECT - 4 * 79 AS col2
----
-316

query II rowsort
SELECT - 81 - - 14 * + - 55 AS col0, 98 + - 33 AS col2
----
-851
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT - CASE 39 WHEN + + 19 + 71 THEN - + 16 + 32 / + 46 WHEN - + 62 THEN + 63 ELSE + CAST( NULL AS SIGNED ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7595
SELECT - CASE 39 WHEN + + 19 + 71 THEN - + 16 + 32 / + 46 WHEN - + 62 THEN + 63 ELSE + CAST ( NULL AS INTEGER ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT ALL 79 AS col2, - NULLIF ( COUNT( DISTINCT 72 ), 43 ) AS col0
----
79
-1

skipif mysql # not compatible
query II rowsort label-7596
SELECT ALL 79 AS col2, - NULLIF ( COUNT ( DISTINCT 72 ), 43 ) AS col0
----
79
-1

query II rowsort
SELECT 39 AS col2, + 88
----
39
88

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT ALL 45 - + 83 DIV + 29 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL 45 - + 83 / + 29 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT + MIN( - 37 ) * + + 51 AS col1
----
-1887

skipif mysql # not compatible
query I rowsort label-7599
SELECT + MIN ( - 37 ) * + + 51 AS col1
----
-1887

query I rowsort
SELECT DISTINCT 96 col2
----
96

query I rowsort
SELECT + 24 * - 27 * + 80 - - + 33 AS col1
----
-51807

query I rowsort
SELECT - 14 * 30
----
-420

query I rowsort
SELECT + 20 * 19 AS col0
----
380

query I rowsort
SELECT + ( + 79 ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT + MIN( + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-7605
SELECT + MIN ( + 43 )
----
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7606
SELECT + 67 + 8 + CAST( + - 18 AS SIGNED ) DIV 40 * + + 85 * 28 * 55 * - 68
----
75

skipif mysql # not compatible
query I rowsort label-7606
SELECT + 67 + 8 + CAST ( + - 18 AS INTEGER ) / 40 * + + 85 * 28 * 55 * - 68
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7607
SELECT + 73 DIV + + 94
----
0

skipif mysql # not compatible
query I rowsort label-7607
SELECT + 73 / + + 94
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7608
SELECT ALL 79 * 25 DIV 50, + 64 AS col0
----
39
64

skipif mysql # not compatible
query II rowsort label-7608
SELECT ALL 79 * 25 / 50, + 64 AS col0
----
39
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7609
SELECT + 84 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT + 84 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ( 83 ) AS col0
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7611
SELECT ALL NULLIF ( + 88, + 88 ) * 80 + CAST( NULL AS DECIMAL ) / 14 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL NULLIF ( + 88, + 88 ) * 80 + CAST ( NULL AS REAL ) / 14 col1
----
NULL

query I rowsort
SELECT DISTINCT + 11 col1
----
11

query I rowsort
SELECT ALL 23 * + 62 + 1
----
1427

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT + 54 * - COUNT( * ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-7614
SELECT + 54 * - COUNT ( * ) AS col2
----
-54

query I rowsort
SELECT + ( 14 ) col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT ALL 66 * - 50 + MIN( 16 ) col0
----
-3284

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL 66 * - 50 + MIN ( 16 ) col0
----
-3284

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT + COALESCE ( - 82, ( 27 ) * 57, COUNT( * ) * - 58 - 67 ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-7617
SELECT + COALESCE ( - 82, ( 27 ) * 57, COUNT ( * ) * - 58 - 67 ) AS col0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT - 7 DIV NULLIF ( + 79 * - ( + 48 ), - 95 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT - 7 / NULLIF ( + 79 * - ( + 48 ), - 95 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT 71 * - 29 - COUNT( * ) AS col1
----
-2060

skipif mysql # not compatible
query I rowsort label-7619
SELECT 71 * - 29 - COUNT ( * ) AS col1
----
-2060

query I rowsort
SELECT COALESCE ( 58, 12 + 63 * 86 )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7621
SELECT + MIN( ALL + 43 ) DIV - 14
----
-3

skipif mysql # not compatible
query I rowsort label-7621
SELECT + MIN ( ALL + 43 ) / - 14
----
-3

query I rowsort
SELECT + 88 * 47
----
4136

query I rowsort
SELECT CASE 36 WHEN + 47 THEN 43 * - 16 END AS col2
----
NULL

query I rowsort
SELECT ALL + 85 * + ( 49 ) + 81 col1
----
4246

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL MIN( ( + 83 ) ) AS col2
----
83

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL MIN ( ( + 83 ) ) AS col2
----
83

query I rowsort
SELECT - 41 - 13 AS col0
----
-54

query I rowsort
SELECT ALL ( - 62 )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT 45 * + COUNT( * ) - - 14 * 99 AS col1
----
1431

skipif mysql # not compatible
query I rowsort label-7628
SELECT 45 * + COUNT ( * ) - - 14 * 99 AS col1
----
1431

query I rowsort
SELECT ALL - 8 * 82 - + 28
----
-684

query I rowsort
SELECT + 28 * + 88
----
2464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT - CAST( + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT - CAST ( + 0 AS INTEGER )
----
0

query I rowsort
SELECT + 5 + - 86
----
-81

query I rowsort
SELECT ALL ( - 70 )
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT - 81 + CAST( NULL AS SIGNED ) * - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 81 + CAST ( NULL AS INTEGER ) * - 16 AS col2
----
NULL

query I rowsort
SELECT - 87 * 9 col1
----
-783

query I rowsort
SELECT - 98 * 96
----
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT - 57 + 13 DIV COUNT( 95 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7637
SELECT - 57 + 13 / COUNT ( 95 ) AS col2
----
-44

query I rowsort
SELECT DISTINCT COALESCE ( 20, - 5 ) AS col1
----
20

query I rowsort
SELECT - 33 + 28
----
-5

query I rowsort
SELECT ALL - 46 * 81
----
-3726

onlyif mysql # DIV for integer division: 
query I rowsort label-7641
SELECT - 51 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7641
SELECT - 51 / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT ALL - CASE - 13 WHEN 64 + - 2 THEN 21 * COUNT( * ) - + 15 WHEN + 79 THEN 29 END / - 12 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT ALL - CASE - 13 WHEN 64 + - 2 THEN 21 * COUNT ( * ) - + 15 WHEN + 79 THEN 29 END / - 12 col0
----
NULL

query I rowsort
SELECT ALL ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT - NULLIF ( 61, + 28 ) + COUNT( * ) col2
----
-60

skipif mysql # not compatible
query I rowsort label-7644
SELECT - NULLIF ( 61, + 28 ) + COUNT ( * ) col2
----
-60

query I rowsort
SELECT DISTINCT ( 14 ) AS col0
----
14

query I rowsort
SELECT ALL - 47 * + 56
----
-2632

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT - 15 DIV ( - 23 )
----
0

skipif mysql # not compatible
query I rowsort label-7647
SELECT - 15 / ( - 23 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - COUNT( * ) * + 87
----
-87

skipif mysql # not compatible
query I rowsort label-7648
SELECT - COUNT ( * ) * + 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - ( + 75 ) + + COUNT( * )
----
-74

skipif mysql # not compatible
query I rowsort label-7649
SELECT - ( + 75 ) + + COUNT ( * )
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7650
SELECT + CAST( - 71 AS SIGNED ) * - 76
----
5396

skipif mysql # not compatible
query I rowsort label-7650
SELECT + CAST ( - 71 AS INTEGER ) * - 76
----
5396

query I rowsort
SELECT - 8 + - 94
----
-102

query I rowsort
SELECT - 53 col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - SUM( 45 ) + COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-7653
SELECT - SUM ( 45 ) + COUNT ( * )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7654
SELECT DISTINCT 96 + CAST( ( - 69 ) AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT 96 + CAST ( ( - 69 ) AS INTEGER ) AS col2
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL 23 / 46 + - CASE WHEN NOT NULL < - ( + 67 ) THEN NULL WHEN 80 <= ( NULL ) THEN NULL WHEN NOT + 30 * 67 - - NULLIF ( 1, + 67 ) * + NULLIF ( COUNT( * ), COUNT( * ) ) IS NOT NULL THEN - 34 / ( ( CAST( NULL AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL 23 / 46 + - CASE WHEN NOT NULL < - ( + 67 ) THEN NULL WHEN 80 <= ( NULL ) THEN NULL WHEN NOT + 30 * 67 - - NULLIF ( 1, + 67 ) * + NULLIF ( COUNT ( * ), COUNT ( * ) ) IS NOT NULL THEN - 34 / ( ( CAST ( NULL AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT - 71 + MIN( DISTINCT - ( + 4 ) )
----
-75

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT - 71 + MIN ( DISTINCT - ( + 4 ) )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + MAX( DISTINCT + 15 ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-7657
SELECT + MAX ( DISTINCT + 15 ) AS col2
----
15

query I rowsort
SELECT + 18 * 91 + 62 * 9 AS col1
----
2196

query I rowsort
SELECT ALL - 38 + + 22
----
-16

query I rowsort
SELECT 93 + 62
----
155

query I rowsort
SELECT + + ( 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT COUNT( ALL - 24 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7662
SELECT COUNT ( ALL - 24 ) AS col1
----
1

query I rowsort
SELECT - 69 + + 1
----
-68

query I rowsort
SELECT 83 - 33 AS col2
----
50

query I rowsort
SELECT CASE 85 WHEN + 48 THEN NULL ELSE - 15 + - 14 END
----
-29

query I rowsort
SELECT + + 89 * + 7 + 40
----
663

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL ( COUNT( * ) ) + + 96 * - 89 AS col2
----
-8543

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL ( COUNT ( * ) ) + + 96 * - 89 AS col2
----
-8543

query I rowsort
SELECT DISTINCT - + 62 AS col0
----
-62

query I rowsort
SELECT ALL - - 80 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT MAX( DISTINCT 30 ) + 7
----
37

skipif mysql # not compatible
query I rowsort label-7670
SELECT MAX ( DISTINCT 30 ) + 7
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + 62 - COUNT( * ) col1
----
61

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + 62 - COUNT ( * ) col1
----
61

query I rowsort
SELECT 41 * + 23
----
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7673
SELECT CAST( 8 AS SIGNED ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7673
SELECT CAST ( 8 AS INTEGER ) AS col1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT 92 * + COUNT( * ) + 12 * + 79
----
1040

skipif mysql # not compatible
query I rowsort label-7674
SELECT 92 * + COUNT ( * ) + 12 * + 79
----
1040

query I rowsort
SELECT - 85 * - 22 AS col2
----
1870

query I rowsort
SELECT + 60 * ( - 51 ) AS col1
----
-3060

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT 54 + + - 54 DIV + 24 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-7677
SELECT 54 + + - 54 / + 24 AS col1
----
52

query I rowsort
SELECT DISTINCT ( - 52 ) * 50 AS col1
----
-2600

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT 35 * - MAX( DISTINCT 47 ) AS col1
----
-1645

skipif mysql # not compatible
query I rowsort label-7679
SELECT 35 * - MAX ( DISTINCT 47 ) AS col1
----
-1645

query I rowsort
SELECT ( 24 ) * 11 col0
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7681
SELECT DISTINCT - 60 * 76 * ( - 8 * CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT - 60 * 76 * ( - 8 * CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 16 * - + 69 AS col0
----
-1104

query I rowsort
SELECT DISTINCT 68 * + 12
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT COUNT( * ) - + CASE - MAX( DISTINCT 56 ) WHEN + 81 THEN + 2 * + 64 + + 57 WHEN - 66 * 10 THEN NULL ELSE NULL END - + NULLIF ( 35, - 83 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7684
SELECT COUNT ( * ) - + CASE - MAX ( DISTINCT 56 ) WHEN + 81 THEN + 2 * + 64 + + 57 WHEN - 66 * 10 THEN NULL ELSE NULL END - + NULLIF ( 35, - 83 ) AS col2
----
NULL

query I rowsort
SELECT ALL + 88 + + 75 AS col0
----
163

query I rowsort
SELECT 2 col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7687
SELECT ALL + 16 / - CAST( NULL AS SIGNED ) * 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + 16 / - CAST ( NULL AS INTEGER ) * 82 AS col2
----
NULL

query I rowsort
SELECT ALL 67 + 51 AS col2
----
118

query I rowsort
SELECT 85 + + 96
----
181

query I rowsort
SELECT DISTINCT - 71 + 46
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT DISTINCT + - COUNT( * ) * - 21 + + 23
----
44

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + - COUNT ( * ) * - 21 + + 23
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT - COUNT( * ) * 33
----
-33

skipif mysql # not compatible
query I rowsort label-7692
SELECT - COUNT ( * ) * 33
----
-33

query I rowsort
SELECT + + 67
----
67

query I rowsort
SELECT DISTINCT + 90 * - 29
----
-2610

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT ALL + + 20 DIV - 45 + 41 AS col1
----
41

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL + + 20 / - 45 + 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT COALESCE ( - + 50, + 9, + CASE + 83 WHEN 5 / - 63 + COUNT( * ) THEN NULL WHEN 22 THEN NULL ELSE 72 + 85 END ) * 97
----
-4850

skipif mysql # not compatible
query I rowsort label-7696
SELECT COALESCE ( - + 50, + 9, + CASE + 83 WHEN 5 / - 63 + COUNT ( * ) THEN NULL WHEN 22 THEN NULL ELSE 72 + 85 END ) * 97
----
-4850

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL - + MIN( 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - + MIN ( 63 ) AS col0
----
-63

query I rowsort
SELECT ALL - + 34 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT ALL - + MAX( - 7 )
----
7

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - + MAX ( - 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT NULLIF ( - COUNT( 53 ), COALESCE ( 12, - 99 ) + 39 ) * - 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-7700
SELECT NULLIF ( - COUNT ( 53 ), COALESCE ( 12, - 99 ) + 39 ) * - 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT 36 * MIN( - 59 ) + 11
----
-2113

skipif mysql # not compatible
query I rowsort label-7701
SELECT 36 * MIN ( - 59 ) + 11
----
-2113

query I rowsort
SELECT + - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT - SUM( - 25 ) * 12
----
300

skipif mysql # not compatible
query I rowsort label-7703
SELECT - SUM ( - 25 ) * 12
----
300

query I rowsort
SELECT ALL ( 44 ) * + - 26 + 30 * - 57
----
-2854

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT COUNT( * ) * - 17
----
-17

skipif mysql # not compatible
query I rowsort label-7705
SELECT COUNT ( * ) * - 17
----
-17

query I rowsort
SELECT 44 - + 34
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7707
SELECT NULLIF ( ( + 2 ), + COUNT( * ) ) * + ( - 82 DIV + 16 + 62 * 26 ) AS col2
----
3214

skipif mysql # not compatible
query I rowsort label-7707
SELECT NULLIF ( ( + 2 ), + COUNT ( * ) ) * + ( - 82 / + 16 + 62 * 26 ) AS col2
----
3214

query I rowsort
SELECT + 0 * 20 - - - 59 * - 10
----
590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT COUNT( * ) DIV + 97 col2
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT COUNT ( * ) / + 97 col2
----
0

query I rowsort
SELECT 28 + + + 76 * + 45
----
3448

query I rowsort
SELECT 64 + 22
----
86

query I rowsort
SELECT DISTINCT 27 + - 98 * 50
----
-4873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7713
SELECT COALESCE ( + 81, + 37 ) + - CAST( NULL AS SIGNED ) / - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT COALESCE ( + 81, + 37 ) + - CAST ( NULL AS INTEGER ) / - 94
----
NULL

query I rowsort
SELECT ALL 62 + + 39
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT 53 + 40 - + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7715
SELECT 53 + 40 - + COUNT ( * ) AS col0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7716
SELECT DISTINCT SUM( ALL - CAST( - 54 AS SIGNED ) ) + + ( + 28 ) AS col1
----
82

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT SUM ( ALL - CAST ( - 54 AS INTEGER ) ) + + ( + 28 ) AS col1
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7717
SELECT 79 AS col1, - NULLIF ( 56, ( ( + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) ) / + 37 )
----
79
-56

skipif mysql # not compatible
query II rowsort label-7717
SELECT 79 AS col1, - NULLIF ( 56, ( ( + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) ) / + 37 )
----
79
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT ALL 67 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-7718
SELECT ALL 67 / - 38
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7719
SELECT ALL 26 + 10 * - 7 DIV + COUNT( * ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL 26 + 10 * - 7 / + COUNT ( * ) AS col0
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-7720
SELECT ALL + 12 * 48 DIV - 58
----
-9

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + 12 * 48 / - 58
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT ALL - 57 + CASE + COALESCE ( 5, - COUNT( * ) ) WHEN + 5 THEN NULL ELSE COUNT( * ) * 32 + 25 * + 41 END + - 36 * 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7721
SELECT ALL - 57 + CASE + COALESCE ( 5, - COUNT ( * ) ) WHEN + 5 THEN NULL ELSE COUNT ( * ) * 32 + 25 * + 41 END + - 36 * 91 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7722
SELECT + 14 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT + 14 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7723
SELECT - COUNT( * ) AS col0, 56 + NULLIF ( - COUNT( DISTINCT + 74 ), + 42 + 44 ) AS col2
----
-1
55

skipif mysql # not compatible
query II rowsort label-7723
SELECT - COUNT ( * ) AS col0, 56 + NULLIF ( - COUNT ( DISTINCT + 74 ), + 42 + 44 ) AS col2
----
-1
55

query I rowsort
SELECT - ( - + ( - 9 ) ) + 85 * - 86 AS col1
----
-7319

onlyif mysql # aggregate syntax: 
query II rowsort label-7725
SELECT - 46 AS col1, COUNT( 0 ) AS col2
----
-46
1

skipif mysql # not compatible
query II rowsort label-7725
SELECT - 46 AS col1, COUNT ( 0 ) AS col2
----
-46
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7726
SELECT - - COUNT( * ), + 39 AS col2
----
1
39

skipif mysql # not compatible
query II rowsort label-7726
SELECT - - COUNT ( * ), + 39 AS col2
----
1
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7727
SELECT CAST( NULL AS SIGNED ) AS col0, - ( + - 45 ) * 4
----
NULL
180

skipif mysql # not compatible
query II rowsort label-7727
SELECT CAST ( NULL AS INTEGER ) AS col0, - ( + - 45 ) * 4
----
NULL
180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7728
SELECT + - COUNT( * ) + 5 * 51 DIV COUNT( * )
----
254

skipif mysql # not compatible
query I rowsort label-7728
SELECT + - COUNT ( * ) + 5 * 51 / COUNT ( * )
----
254

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT + COALESCE ( + 42, - + 81 + - 11, 17 ) * COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-7729
SELECT + COALESCE ( + 42, - + 81 + - 11, 17 ) * COUNT ( * )
----
42

query I rowsort
SELECT - + 77 * + - 76 + - 78 AS col2
----
5774

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT MAX( DISTINCT - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-7731
SELECT MAX ( DISTINCT - 55 )
----
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-7732
SELECT ALL + COUNT( * ), 87 AS col1
----
1
87

skipif mysql # not compatible
query II rowsort label-7732
SELECT ALL + COUNT ( * ), 87 AS col1
----
1
87

query I rowsort
SELECT DISTINCT + + 39
----
39

query I rowsort
SELECT - + 17 * + - 66 * 50 AS col0
----
56100

query I rowsort
SELECT ALL + 6 * + 4 AS col0
----
24

query I rowsort
SELECT - 88 + + 40
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT DISTINCT - + 78 * ( - 55 ) + 88 - NULLIF ( + COUNT( * ), 1 / - MIN( DISTINCT NULLIF ( + ( - 59 ), 3 * - 28 ) ) ) AS col2
----
4377

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - + 78 * ( - 55 ) + 88 - NULLIF ( + COUNT ( * ), 1 / - MIN ( DISTINCT NULLIF ( + ( - 59 ), 3 * - 28 ) ) ) AS col2
----
4377

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT + 72 * + - 7 + - 37 - - 52 * - CASE 1 * COUNT( * ) WHEN CAST( NULL AS SIGNED ) THEN 50 * + 33 WHEN + ( - COUNT( * ) ) * - 11 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7738
SELECT + 72 * + - 7 + - 37 - - 52 * - CASE 1 * COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) THEN 50 * + 33 WHEN + ( - COUNT ( * ) ) * - 11 THEN NULL END col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT - 84 / + CAST( NULL AS SIGNED ) + - + 57 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7739
SELECT - 84 / + CAST ( NULL AS INTEGER ) + - + 57 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + ( ( + 42 ) ) * - 94 AS col1
----
-3948

query I rowsort
SELECT - - 40 + + - 68 * + 68 * 88
----
-406872

query I rowsort
SELECT - 58 * - + 63 * + 28
----
102312

query I rowsort
SELECT - + 59 - + 90 AS col2
----
-149

query I rowsort
SELECT DISTINCT + + 7 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL - COUNT( DISTINCT ( - 32 ) ) * + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL - COUNT ( DISTINCT ( - 32 ) ) * + COUNT ( * ) col2
----
-1

query I rowsort
SELECT - + ( - 97 ) * 66 * + 78 col1
----
499356

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL + COUNT( ALL + 50 ) * + - 70 AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL + COUNT ( ALL + 50 ) * + - 70 AS col0
----
-70

query I rowsort
SELECT - 28 + - 84
----
-112

query I rowsort
SELECT - 98 * - 33 AS col1
----
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT + 33 * - 36 + + 91 * + 51 * COUNT( * ) + - COALESCE ( CASE WHEN 27 <= ( - 70 ) THEN - 66 - 82 ELSE - ( - 97 ) END + - 9, - 48 + + 93 ) AS col2
----
3365

skipif mysql # not compatible
query I rowsort label-7750
SELECT + 33 * - 36 + + 91 * + 51 * COUNT ( * ) + - COALESCE ( CASE WHEN 27 <= ( - 70 ) THEN - 66 - 82 ELSE - ( - 97 ) END + - 9, - 48 + + 93 ) AS col2
----
3365

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT SUM( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-7751
SELECT SUM ( ALL - 48 )
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7752
SELECT + COALESCE ( + + NULLIF ( + COALESCE ( + - 77, + 97 ), - 93 ), + 55 * - NULLIF ( + MIN( - 89 ), COALESCE ( 14, + CAST( COUNT( * ) AS SIGNED ) ) + 82 ) ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-7752
SELECT + COALESCE ( + + NULLIF ( + COALESCE ( + - 77, + 97 ), - 93 ), + 55 * - NULLIF ( + MIN ( - 89 ), COALESCE ( 14, + CAST ( COUNT ( * ) AS INTEGER ) ) + 82 ) ) AS col1
----
-77

query I rowsort
SELECT ALL 80 * + 78 AS col2
----
6240

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT COUNT( ALL - 59 )
----
1

skipif mysql # not compatible
query I rowsort label-7754
SELECT COUNT ( ALL - 59 )
----
1

query I rowsort
SELECT DISTINCT - 71 + + + 44 * + 16 col0
----
633

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL 8 + - 55 - - 64 * - COUNT( * ) AS col2
----
-111

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL 8 + - 55 - - 64 * - COUNT ( * ) AS col2
----
-111

query I rowsort
SELECT DISTINCT 67 + + 54 + + + 81 + 82 + + 91 * 22 AS col1
----
2286

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT + COALESCE ( + + COUNT( * ), - 47 ) + - 90 * + 26
----
-2339

skipif mysql # not compatible
query I rowsort label-7758
SELECT + COALESCE ( + + COUNT ( * ), - 47 ) + - 90 * + 26
----
-2339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7759
SELECT + 90 / ( + CASE - COUNT( - CAST( 91 AS SIGNED ) ) WHEN 26 * 52 THEN - 90 * 94 + - 17 * - 63 END ) * + ( - 60 + + SUM( DISTINCT + 25 + 86 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7759
SELECT + 90 / ( + CASE - COUNT ( - CAST ( 91 AS INTEGER ) ) WHEN 26 * 52 THEN - 90 * 94 + - 17 * - 63 END ) * + ( - 60 + + SUM ( DISTINCT + 25 + 86 ) ) AS col0
----
NULL

query II rowsort
SELECT - 2 * + 95, 30 AS col2
----
-190
30

query I rowsort
SELECT - ( ( - 50 ) ) AS col2
----
50

query I rowsort
SELECT ALL 72 - + 7 AS col2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT + - 12 - + CAST( 69 AS SIGNED ) * ( 7 )
----
-495

skipif mysql # not compatible
query I rowsort label-7763
SELECT + - 12 - + CAST ( 69 AS INTEGER ) * ( 7 )
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT + COUNT( * ) * - + MIN( ALL 90 ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-7764
SELECT + COUNT ( * ) * - + MIN ( ALL 90 ) AS col2
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-7765
SELECT ALL 5 DIV - + 5
----
-1

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL 5 / - + 5
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT + 68 * - 36 + COUNT( - 74 ) * 87 AS col2
----
-2361

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + 68 * - 36 + COUNT ( - 74 ) * 87 AS col2
----
-2361

query I rowsort
SELECT ALL 89 * 90 AS col2
----
8010

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7768
SELECT - CASE 17 WHEN + - 22 * + 90 + 6 * 80 THEN ( + 71 ) * ( + CAST( 33 AS SIGNED ) + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7768
SELECT - CASE 17 WHEN + - 22 * + 90 + 6 * 80 THEN ( + 71 ) * ( + CAST ( 33 AS INTEGER ) + COUNT ( * ) ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT ALL CAST( NULL AS SIGNED ) * + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL CAST ( NULL AS INTEGER ) * + 88
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + COUNT( DISTINCT + 68 ) - 62
----
-61

skipif mysql # not compatible
query I rowsort label-7770
SELECT + COUNT ( DISTINCT + 68 ) - 62
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT + + MAX( DISTINCT + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7771
SELECT + + MAX ( DISTINCT + 72 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7772
SELECT + CAST( + - 8 AS SIGNED )
----
-8

skipif mysql # not compatible
query I rowsort label-7772
SELECT + CAST ( + - 8 AS INTEGER )
----
-8

query I rowsort
SELECT - - 5 * - + 23 AS col2
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT + - 47 * - + 3 + + COUNT( * )
----
142

skipif mysql # not compatible
query I rowsort label-7774
SELECT + - 47 * - + 3 + + COUNT ( * )
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT + 79 * 85 + CAST( + 27 AS SIGNED ) + 29 * - 68
----
4770

skipif mysql # not compatible
query I rowsort label-7775
SELECT + 79 * 85 + CAST ( + 27 AS INTEGER ) + 29 * - 68
----
4770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7776
SELECT ALL 48 DIV + - 95 + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL 48 / + - 95 + COUNT ( * ) AS col1
----
1

query I rowsort
SELECT COALESCE ( + + 93, - - 97, - 90 )
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-7778
SELECT DISTINCT 11 DIV 66 + 18, 14 AS col1
----
18
14

skipif mysql # not compatible
query II rowsort label-7778
SELECT DISTINCT 11 / 66 + 18, 14 AS col1
----
18
14

onlyif mysql # DIV for integer division: 
query I rowsort label-7779
SELECT + 16 - + + COALESCE ( - 63, - 33, - - 41 ) + 67 DIV 72
----
79

skipif mysql # not compatible
query I rowsort label-7779
SELECT + 16 - + + COALESCE ( - 63, - 33, - - 41 ) + 67 / 72
----
79

query II rowsort
SELECT ( - + ( + 22 ) ), 69 * ( 42 ) AS col1
----
-22
2898

onlyif mysql # aggregate syntax: 
query I rowsort label-7781
SELECT ( - COUNT( + 0 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7781
SELECT ( - COUNT ( + 0 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - 74 * COUNT( * ) * - 56 * + + 17 AS col0
----
70448

skipif mysql # not compatible
query I rowsort label-7782
SELECT - 74 * COUNT ( * ) * - 56 * + + 17 AS col0
----
70448

query I rowsort
SELECT ALL + ( + ( 56 ) )
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7784
SELECT - COALESCE ( + 32, + 66, - 21 ) + + + COUNT( * ) DIV 86
----
-32

skipif mysql # not compatible
query I rowsort label-7784
SELECT - COALESCE ( + 32, + 66, - 21 ) + + + COUNT ( * ) / 86
----
-32

query I rowsort
SELECT DISTINCT - 2 * + + 49 AS col1
----
-98

query I rowsort
SELECT 79 - + 77 AS col1
----
2

query II rowsort
SELECT ALL - 14, 2 + + 38 AS col2
----
-14
40

query I rowsort
SELECT ALL - ( 4 )
----
-4

query II rowsort
SELECT DISTINCT 46, - 56 AS col0
----
46
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT 98 + 57 DIV + 77 * + 72 col2
----
98

skipif mysql # not compatible
query I rowsort label-7790
SELECT 98 + 57 / + 77 * + 72 col2
----
98

query I rowsort
SELECT 8 + + 83 + - 23 * 0 + - 2 AS col0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7792
SELECT 78 + + + 6 * + 36 + + 48 + + 74 * + MIN( 78 DIV + 25 ) AS col1
----
564

skipif mysql # not compatible
query I rowsort label-7792
SELECT 78 + + + 6 * + 36 + + 48 + + 74 * + MIN ( 78 / + 25 ) AS col1
----
564

query I rowsort
SELECT + CASE + - 88 WHEN - + CASE - 44 WHEN - 85 THEN - ( 63 ) * - 4 WHEN - 59 * - 53 THEN NULL END THEN 61 END * - 56 + - 97 AS col2
----
NULL

query I rowsort
SELECT 75 + ( 3 ) + + 89
----
167

query I rowsort
SELECT ALL - 61 * - 78 - - 45 + - 7
----
4796

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT - SUM( 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - SUM ( 11 )
----
-11

query II rowsort
SELECT + 70 * + ( 78 ) AS col1, 79 + - 11
----
5460
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT COALESCE ( - 18, - + COUNT( * ) ) + 41 + 15
----
38

skipif mysql # not compatible
query I rowsort label-7798
SELECT COALESCE ( - 18, - + COUNT ( * ) ) + 41 + 15
----
38

query I rowsort
SELECT - - 75 AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7800
SELECT - COUNT( * ) + MAX( - + 19 ) + - + 40 DIV - 97 + - ( 71 + + 50 )
----
-141

skipif mysql # not compatible
query I rowsort label-7800
SELECT - COUNT ( * ) + MAX ( - + 19 ) + - + 40 / - 97 + - ( 71 + + 50 )
----
-141

query I rowsort
SELECT - + ( - 31 ) AS col1
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT - 97 DIV - 34 col0
----
2

skipif mysql # not compatible
query I rowsort label-7802
SELECT - 97 / - 34 col0
----
2

query I rowsort
SELECT - 36 + - + 2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7804
SELECT - 6 * CAST( NULL AS SIGNED ) - - AVG ( + + 7 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7804
SELECT - 6 * CAST ( NULL AS INTEGER ) - - AVG ( + + 7 )
----
NULL

query I rowsort
SELECT 54 + - 95
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT ALL + + 4 + + 65 + + CAST( - + 60 AS SIGNED )
----
9

skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL + + 4 + + 65 + + CAST ( - + 60 AS INTEGER )
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT ALL - - 42 DIV - 23
----
-1

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - - 42 / - 23
----
-1

query I rowsort
SELECT DISTINCT - + 28
----
-28

query I rowsort
SELECT ALL - 62 + + - 11 AS col2
----
-73

query I rowsort
SELECT ALL - + COALESCE ( - + 0, + 32 + + 43 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT ( COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7811
SELECT ( COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL ( - SUM( DISTINCT + - 61 ) ) + - 4
----
57

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL ( - SUM ( DISTINCT + - 61 ) ) + - 4
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT ( + COUNT( * ) ) DIV 68 + + + 24 * + 52 AS col1
----
1248

skipif mysql # not compatible
query I rowsort label-7813
SELECT ( + COUNT ( * ) ) / 68 + + + 24 * + 52 AS col1
----
1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT 44 + + - 82 DIV + MIN( ALL + + 30 ) col1
----
42

skipif mysql # not compatible
query I rowsort label-7814
SELECT 44 + + - 82 / + MIN ( ALL + + 30 ) col1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7815
SELECT CAST( + 92 AS SIGNED ) / + CAST( NULL AS SIGNED ) * - 42 + - 79 * - ( + 61 ) * - ( + 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT CAST ( + 92 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * - 42 + - 79 * - ( + 61 ) * - ( + 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT DISTINCT 98 + SUM( + 81 ) * - 75 + 20
----
-5957

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT 98 + SUM ( + 81 ) * - 75 + 20
----
-5957

query I rowsort
SELECT DISTINCT 9 + ( - 87 ) AS col0
----
-78

query II rowsort
SELECT 76 col2, - 23 * + 27
----
76
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + CASE 22 WHEN 90 THEN - - CASE - COUNT( * ) WHEN + 26 + + 85 * - 13 THEN NULL WHEN 55 THEN 72 * - 50 ELSE NULL END + + 36 END * 61 + 3 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT + CASE 22 WHEN 90 THEN - - CASE - COUNT ( * ) WHEN + 26 + + 85 * - 13 THEN NULL WHEN 55 THEN 72 * - 50 ELSE NULL END + + 36 END * 61 + 3 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL MAX( ALL + 79 ) - + 29 col0
----
50

skipif mysql # not compatible
query I rowsort label-7820
SELECT ALL MAX ( ALL + 79 ) - + 29 col0
----
50

query II rowsort
SELECT + 46, 46 * 91 AS col2
----
46
4186

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT 14 * + 13 * + MIN( DISTINCT + + NULLIF ( + - 87, + 96 - 77 ) ) AS col1
----
-15834

skipif mysql # not compatible
query I rowsort label-7822
SELECT 14 * + 13 * + MIN ( DISTINCT + + NULLIF ( + - 87, + 96 - 77 ) ) AS col1
----
-15834

query I rowsort
SELECT ALL 61 - 99 AS col1
----
-38

query II rowsort
SELECT 3, 62 AS col2
----
3
62

onlyif mysql # aggregate syntax: 
query II rowsort label-7825
SELECT - 57 AS col0, 52 + 99 + - + MAX( ALL - 69 )
----
-57
220

skipif mysql # not compatible
query II rowsort label-7825
SELECT - 57 AS col0, 52 + 99 + - + MAX ( ALL - 69 )
----
-57
220

onlyif mysql # DIV for integer division: 
query II rowsort label-7826
SELECT ALL + 18 AS col1, 58 DIV 34 + + 36 + 28 AS col2
----
18
65

skipif mysql # not compatible
query II rowsort label-7826
SELECT ALL + 18 AS col1, 58 / 34 + + 36 + 28 AS col2
----
18
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7827
SELECT DISTINCT + + COUNT( * ) DIV CASE + 38 WHEN + COUNT( * ) * 83 DIV 5 THEN 89 WHEN - COUNT( * ) * + 1 + + ( 97 ) THEN NULL ELSE + 58 + 18 END
----
0

skipif mysql # not compatible
query I rowsort label-7827
SELECT DISTINCT + + COUNT ( * ) / CASE + 38 WHEN + COUNT ( * ) * 83 / 5 THEN 89 WHEN - COUNT ( * ) * + 1 + + ( 97 ) THEN NULL ELSE + 58 + 18 END
----
0

query II rowsort
SELECT DISTINCT 93 AS col0, 78 AS col0
----
93
78

query II rowsort
SELECT - 21 AS col1, - 75
----
-21
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT - - COUNT( * ) AS col2, - 62 AS col1
----
1
-62

skipif mysql # not compatible
query II rowsort label-7830
SELECT - - COUNT ( * ) AS col2, - 62 AS col1
----
1
-62

query I rowsort
SELECT ALL + ( - 2 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - MAX( ALL 38 ) * 89 * - 34 AS col2
----
114988

skipif mysql # not compatible
query I rowsort label-7832
SELECT - MAX ( ALL 38 ) * 89 * - 34 AS col2
----
114988

query I rowsort
SELECT - 11 - 66 * 54 AS col0
----
-3575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7834
SELECT - - 90 AS col0, COALESCE ( + COUNT( * ), 17 * - + CAST( NULL AS SIGNED ) + 58 * 2 ) + SUM( - 10 )
----
90
-9

skipif mysql # not compatible
query II rowsort label-7834
SELECT - - 90 AS col0, COALESCE ( + COUNT ( * ), 17 * - + CAST ( NULL AS INTEGER ) + 58 * 2 ) + SUM ( - 10 )
----
90
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7835
SELECT ALL + 33 AS col1, + 12 * + 93 DIV COUNT( * ) * + COUNT( * ) + COUNT( * )
----
33
1117

skipif mysql # not compatible
query II rowsort label-7835
SELECT ALL + 33 AS col1, + 12 * + 93 / COUNT ( * ) * + COUNT ( * ) + COUNT ( * )
----
33
1117

query I rowsort
SELECT CASE 36 WHEN + 25 THEN NULL ELSE + 28 END
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT - + 39 * + + 90 * - + 82 + + + COUNT( * ) + + 61 * + 40 + + 15 AS col2
----
290276

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - + 39 * + + 90 * - + 82 + + + COUNT ( * ) + + 61 * + 40 + + 15 AS col2
----
290276

query I rowsort
SELECT ALL + - 77 + - - 97
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL + ( + 77 ) + + CAST( - 39 AS SIGNED ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + ( + 77 ) + + CAST ( - 39 AS INTEGER ) AS col1
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT DISTINCT - 87 AS col2, + COUNT( * ) + + + 79 AS col2
----
-87
80

skipif mysql # not compatible
query II rowsort label-7840
SELECT DISTINCT - 87 AS col2, + COUNT ( * ) + + + 79 AS col2
----
-87
80

query I rowsort
SELECT DISTINCT + 64 + + + 79
----
143

query I rowsort
SELECT DISTINCT + + 64 + + - 42 * 87 AS col1
----
-3590

query I rowsort
SELECT ALL - 31 + - 90
----
-121

query I rowsort
SELECT + - 38 col2
----
-38

query I rowsort
SELECT 44 * + + ( - ( - 83 ) ) col0
----
3652

query II rowsort
SELECT NULLIF ( 50, + + 96 ), - 30 AS col1
----
50
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7847
SELECT 54 * + + CAST( - 16 AS SIGNED ) * - + 26 AS col0
----
22464

skipif mysql # not compatible
query I rowsort label-7847
SELECT 54 * + + CAST ( - 16 AS INTEGER ) * - + 26 AS col0
----
22464

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT ALL + COUNT( * ) * - 16 + + COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-7848
SELECT ALL + COUNT ( * ) * - 16 + + COUNT ( * )
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT ALL COUNT( 80 ) * - 53 + - CASE 36 WHEN + 50 THEN NULL WHEN + - SUM( DISTINCT 20 ) + + 0 THEN + AVG ( ALL 6 ) + 96 END * 79 - 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7849
SELECT ALL COUNT ( 80 ) * - 53 + - CASE 36 WHEN + 50 THEN NULL WHEN + - SUM ( DISTINCT 20 ) + + 0 THEN + AVG ( ALL 6 ) + 96 END * 79 - 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + ( + - ( - COUNT( * ) ) ) * + + 88 + 35 + 10
----
133

skipif mysql # not compatible
query I rowsort label-7850
SELECT + ( + - ( - COUNT ( * ) ) ) * + + 88 + 35 + 10
----
133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL 3 * + CAST( + 71 AS SIGNED )
----
213

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL 3 * + CAST ( + 71 AS INTEGER )
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7852
SELECT ALL 20 * AVG ( + 54 ) - - + 8 + + CAST( NULL AS DECIMAL ) * - + COUNT( * ) / - - 31 * + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL 20 * AVG ( + 54 ) - - + 8 + + CAST ( NULL AS REAL ) * - + COUNT ( * ) / - - 31 * + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT MAX( DISTINCT - - 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-7853
SELECT MAX ( DISTINCT - - 44 ) AS col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7854
SELECT ALL 97 * - + MAX( DISTINCT - - 65 ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL 97 * - + MAX ( DISTINCT - - 65 ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7855
SELECT + 3 + + 64 AS col0, + 58 + - + COUNT( * ) AS col2
----
67
57

skipif mysql # not compatible
query II rowsort label-7855
SELECT + 3 + + 64 AS col0, + 58 + - + COUNT ( * ) AS col2
----
67
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + CASE - 54 WHEN - 66 THEN - 88 WHEN - - COUNT( * ) THEN NULL WHEN - + COUNT( * ) * 87 + 36 / - 29 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT + CASE - 54 WHEN - 66 THEN - 88 WHEN - - COUNT ( * ) THEN NULL WHEN - + COUNT ( * ) * 87 + 36 / - 29 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT + CAST( NULL AS SIGNED ) * + - 91 + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-7857
SELECT + CAST ( NULL AS INTEGER ) * + - 91 + + 36
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT COUNT( 93 )
----
1

skipif mysql # not compatible
query I rowsort label-7858
SELECT COUNT ( 93 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT + 44 * 65, + COUNT( * ) AS col2
----
2860
1

skipif mysql # not compatible
query II rowsort label-7859
SELECT + 44 * 65, + COUNT ( * ) AS col2
----
2860
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT + MAX( DISTINCT + 83 ) + - COUNT( * ) - + NULLIF ( 42, + - ( - MIN( 32 ) ) * 56 + - 4 ) + CASE + 57 WHEN MAX( 19 ) * - 86 THEN - 98 WHEN 64 * + CAST( NULL AS SIGNED ) THEN 65 ELSE NULL END * + ( - COUNT( * ) + ( + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT + MAX ( DISTINCT + 83 ) + - COUNT ( * ) - + NULLIF ( 42, + - ( - MIN ( 32 ) ) * 56 + - 4 ) + CASE + 57 WHEN MAX ( 19 ) * - 86 THEN - 98 WHEN 64 * + CAST ( NULL AS INTEGER ) THEN 65 ELSE NULL END * + ( - COUNT ( * ) + ( + CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT ALL 61 * + 70 * - - 77 * 32 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT ALL 61 * + 70 * - - 77 * 32 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7862
SELECT + CASE - - COUNT( - 53 ) WHEN 42 THEN NULL ELSE + - CAST( NULL AS SIGNED ) END * + - MAX( - 21 ) + - COUNT( * ) * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7862
SELECT + CASE - - COUNT ( - 53 ) WHEN 42 THEN NULL ELSE + - CAST ( NULL AS INTEGER ) END * + - MAX ( - 21 ) + - COUNT ( * ) * 83 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7863
SELECT + 32 + - 41 * - 99 - - 95 - + 7 + - COALESCE ( + 58, CASE - 62 WHEN - ( 21 ) THEN + MIN( - 18 ) ELSE SUM( DISTINCT + 91 ) * - 44 END DIV 15 )
----
4121

skipif mysql # not compatible
query I rowsort label-7863
SELECT + 32 + - 41 * - 99 - - 95 - + 7 + - COALESCE ( + 58, CASE - 62 WHEN - ( 21 ) THEN + MIN ( - 18 ) ELSE SUM ( DISTINCT + 91 ) * - 44 END / 15 )
----
4121

query I rowsort
SELECT DISTINCT + 36 AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT - 63 * + 74 + + CASE - 65 WHEN - 12 * - COALESCE ( - + 77, - ( - MIN( 9 ) ), + 19 ) - 37 THEN NULL ELSE - 81 END
----
-4743

skipif mysql # not compatible
query I rowsort label-7865
SELECT - 63 * + 74 + + CASE - 65 WHEN - 12 * - COALESCE ( - + 77, - ( - MIN ( 9 ) ), + 19 ) - 37 THEN NULL ELSE - 81 END
----
-4743

onlyif mysql # aggregate syntax: 
query II rowsort label-7866
SELECT + 25 - - 76, - MAX( + 23 ) + - 11 AS col2
----
101
-34

skipif mysql # not compatible
query II rowsort label-7866
SELECT + 25 - - 76, - MAX ( + 23 ) + - 11 AS col2
----
101
-34

query I rowsort
SELECT - 38 * 91 + - - 48 AS col2
----
-3410

query I rowsort
SELECT ALL 66 col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + COUNT( DISTINCT - - ( - 22 ) ) * - 8
----
-8

skipif mysql # not compatible
query I rowsort label-7869
SELECT + COUNT ( DISTINCT - - ( - 22 ) ) * - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - 43 + + - CASE 40 WHEN - - NULLIF ( - - 52, ( + SUM( ALL + 92 ) ) * - 65 - - 73 ) THEN NULL WHEN + 34 / 22 THEN - 79 ELSE NULL END - 96 * + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 43 + + - CASE 40 WHEN - - NULLIF ( - - 52, ( + SUM ( ALL + 92 ) ) * - 65 - - 73 ) THEN NULL WHEN + 34 / 22 THEN - 79 ELSE NULL END - 96 * + 18
----
NULL

query II rowsort
SELECT ALL 12 * - - 1 AS col2, - 62 AS col0
----
12
-62

query I rowsort
SELECT ALL + 62 + - 7 col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT + 96 + - 49 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7873
SELECT + 96 + - 49 * COUNT ( * )
----
47

query I rowsort
SELECT ( 95 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL + 29 + + 13 + + 94 * + COUNT( * ) col1
----
136

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + 29 + + 13 + + 94 * + COUNT ( * ) col1
----
136

query II rowsort
SELECT + - 23 + + + 36, ( - + 24 ) AS col1
----
13
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT + + 48 + - 65 DIV 49
----
47

skipif mysql # not compatible
query I rowsort label-7877
SELECT + + 48 + - 65 / 49
----
47

query I rowsort
SELECT ALL - ( - - 68 ) + - 44
----
-112

query I rowsort
SELECT ALL 1 * - 49 * 20 AS col1
----
-980

query I rowsort
SELECT ALL - 68 + + ( - + 85 )
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT - 54 DIV + 34
----
-1

skipif mysql # not compatible
query I rowsort label-7881
SELECT - 54 / + 34
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7882
SELECT DISTINCT + 35 + + COALESCE ( ( + MAX( DISTINCT + 34 ) ), 81 DIV - CAST( NULL AS SIGNED ) DIV - 95 )
----
69

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT + 35 + + COALESCE ( ( + MAX ( DISTINCT + 34 ) ), 81 / - CAST ( NULL AS INTEGER ) / - 95 )
----
69

query I rowsort
SELECT ALL + - 74 + + ( - 0 ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7884
SELECT + CASE + 8 WHEN 52 - - 19 + ( - 31 ) THEN + 30 + - COUNT( * ) * 75 WHEN 34 * - 44 - - NULLIF ( ( MAX( ALL 1 ) ), AVG ( DISTINCT 11 ) + 81 * SUM( CAST( 16 AS SIGNED ) ) ) THEN NULL WHEN + 72 + - ( - MIN( - 30 ) ) THEN - 71 + 5 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7884
SELECT + CASE + 8 WHEN 52 - - 19 + ( - 31 ) THEN + 30 + - COUNT ( * ) * 75 WHEN 34 * - 44 - - NULLIF ( ( MAX ( ALL 1 ) ), AVG ( DISTINCT 11 ) + 81 * SUM ( CAST ( 16 AS INTEGER ) ) ) THEN NULL WHEN + 72 + - ( - MIN ( - 30 ) ) THEN - 71 + 5 ELSE NULL END
----
NULL

query I rowsort
SELECT - - 80 + - 88 AS col2
----
-8

query I rowsort
SELECT ALL + + 62 * - - 63 + + 95 * + 63 AS col2
----
9891

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT ALL COUNT( * ) AS col1, 69 AS col2
----
1
69

skipif mysql # not compatible
query II rowsort label-7887
SELECT ALL COUNT ( * ) AS col1, 69 AS col2
----
1
69

query I rowsort
SELECT ALL - 25 - + - 67
----
42

query I rowsort
SELECT ALL + 98 * - 88 AS col0
----
-8624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7890
SELECT - NULLIF ( - + 40, - 97 ) + MIN( DISTINCT - + 18 ) DIV 14
----
39

skipif mysql # not compatible
query I rowsort label-7890
SELECT - NULLIF ( - + 40, - 97 ) + MIN ( DISTINCT - + 18 ) / 14
----
39

query I rowsort
SELECT DISTINCT + 50 AS col0
----
50

query I rowsort
SELECT DISTINCT + 80 * - - 63 AS col2
----
5040

query I rowsort
SELECT ALL + 71 * - 59 AS col1
----
-4189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT - CASE + 20 WHEN + + CAST( NULL AS SIGNED ) THEN 96 + + 48 END * COALESCE ( + 94, - + 28 * 29 + 85 ) * - 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT - CASE + 20 WHEN + + CAST ( NULL AS INTEGER ) THEN 96 + + 48 END * COALESCE ( + 94, - + 28 * 29 + 85 ) * - 15 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7895
SELECT - NULLIF ( + 93, + 74 * CAST( NULL AS SIGNED ) ) DIV 86 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7895
SELECT - NULLIF ( + 93, + 74 * CAST ( NULL AS INTEGER ) ) / 86 AS col1
----
-1

query I rowsort
SELECT ( + 74 )
----
74

query I rowsort
SELECT + 68 + - + 74
----
-6

query I rowsort
SELECT ( + + 19 ) AS col2
----
19

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7899
SELECT + 44 * + CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1, 8
----
NULL
8

skipif mysql # not compatible
query II rowsort label-7899
SELECT + 44 * + CAST ( + CAST ( NULL AS REAL ) AS REAL ) AS col1, 8
----
NULL
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7900
SELECT ALL CASE 25 WHEN CAST( - - 40 AS SIGNED ) THEN - - NULLIF ( - 92, 46 - + - COUNT( * ) ) END / 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL CASE 25 WHEN CAST ( - - 40 AS INTEGER ) THEN - - NULLIF ( - 92, 46 - + - COUNT ( * ) ) END / 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + COUNT( DISTINCT + - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-7901
SELECT + COUNT ( DISTINCT + - 40 )
----
1

query I rowsort
SELECT ALL + ( - + 64 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT DISTINCT + COALESCE ( 70, + COUNT( * ), - 96 )
----
70

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + COALESCE ( 70, + COUNT ( * ), - 96 )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7904
SELECT - 57 DIV + 71
----
0

skipif mysql # not compatible
query I rowsort label-7904
SELECT - 57 / + 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT + - CAST( COUNT( + 84 ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7905
SELECT + - CAST ( COUNT ( + 84 ) AS INTEGER ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7906
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * + + NULLIF ( 88, - 76 ) * + 67 + + COUNT( * ) / - - 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7906
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * + + NULLIF ( 88, - 76 ) * + 67 + + COUNT ( * ) / - - 29 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - MAX( DISTINCT - 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-7907
SELECT - MAX ( DISTINCT - 72 ) AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT + ( 33 ) * COUNT( - - 54 )
----
33

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT + ( 33 ) * COUNT ( - - 54 )
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL - 30 * - 61 + - COALESCE ( - + 67, + ( + 50 ) * + COUNT( DISTINCT + 62 ) ) * - ( COUNT( * ) ) AS col2
----
1763

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL - 30 * - 61 + - COALESCE ( - + 67, + ( + 50 ) * + COUNT ( DISTINCT + 62 ) ) * - ( COUNT ( * ) ) AS col2
----
1763

onlyif mysql # aggregate syntax: 
query II rowsort label-7910
SELECT ALL 40, + MAX( ALL + - ( + + 4 ) ) AS col2
----
40
-4

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL 40, + MAX ( ALL + - ( + + 4 ) ) AS col2
----
40
-4

query I rowsort
SELECT + ( + 48 ) * 80 + + 17 col0
----
3857

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT - COUNT( ALL + ( 98 ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7912
SELECT - COUNT ( ALL + ( 98 ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7913
SELECT - + 45 AS col1, 42 DIV - 71 AS col1
----
-45
0

skipif mysql # not compatible
query II rowsort label-7913
SELECT - + 45 AS col1, 42 / - 71 AS col1
----
-45
0

query I rowsort
SELECT - - 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - + SUM( 44 ) AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-7915
SELECT - + SUM ( 44 ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-7916
SELECT DISTINCT 30 AS col1, 61 * - NULLIF ( - 95, + - COUNT( * ) + 92 ) AS col2
----
30
5795

skipif mysql # not compatible
query II rowsort label-7916
SELECT DISTINCT 30 AS col1, 61 * - NULLIF ( - 95, + - COUNT ( * ) + 92 ) AS col2
----
30
5795

query I rowsort
SELECT + 23 + - COALESCE ( - CASE - 86 WHEN - 2 THEN - + 77 END, - 17 ) * + 32 AS col1
----
567

query I rowsort
SELECT ALL + ( 34 ) - + + 95 * - + 1 AS col0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + ( + 32 ) + - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + ( + 32 ) + - 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT 73 * COUNT( * )
----
73

skipif mysql # not compatible
query I rowsort label-7920
SELECT 73 * COUNT ( * )
----
73

query I rowsort
SELECT ALL 28 * - 10 col1
----
-280

query I rowsort
SELECT - 68 AS col1
----
-68

query I rowsort
SELECT 63 * - 19 col0
----
-1197

query I rowsort
SELECT 98 * + 8 AS col1
----
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT 69 - + CAST( - 37 AS SIGNED ) AS col0
----
106

skipif mysql # not compatible
query I rowsort label-7925
SELECT 69 - + CAST ( - 37 AS INTEGER ) AS col0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7926
SELECT ( ( + ( - + 69 ) ) ) * COUNT( * ) / - CASE WHEN NOT - 0 IN ( + CAST( NULL AS DECIMAL ) * 2 ) THEN CASE + 25 WHEN + MAX( 6 ) THEN NULL WHEN 67 + + 83 * - 83 THEN NULL WHEN + NULLIF ( 82, 81 ) THEN - 68 ELSE - CAST( NULL AS SIGNED ) - 65 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7926
SELECT ( ( + ( - + 69 ) ) ) * COUNT ( * ) / - CASE WHEN NOT - 0 IN ( + CAST ( NULL AS REAL ) * 2 ) THEN CASE + 25 WHEN + MAX ( 6 ) THEN NULL WHEN 67 + + 83 * - 83 THEN NULL WHEN + NULLIF ( 82, 81 ) THEN - 68 ELSE - CAST ( NULL AS INTEGER ) - 65 END END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT 8 * - - NULLIF ( + CAST( NULL AS SIGNED ), 29 * - + 74 ) / + 14 * + + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT 8 * - - NULLIF ( + CAST ( NULL AS INTEGER ), 29 * - + 74 ) / + 14 * + + 49
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7928
SELECT ALL - COALESCE ( 13, - 41 DIV CASE 81 WHEN 93 * + + COALESCE ( - COUNT( - + 71 ), CAST( - 96 AS SIGNED ), - ( - 28 ) ) THEN 4 ELSE NULL END - + 92, + AVG ( 3 ) DIV 40 ) AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL - COALESCE ( 13, - 41 / CASE 81 WHEN 93 * + + COALESCE ( - COUNT ( - + 71 ), CAST ( - 96 AS INTEGER ), - ( - 28 ) ) THEN 4 ELSE NULL END - + 92, + AVG ( 3 ) / 40 ) AS col2
----
-13

query I rowsort
SELECT 98 * + 90 AS col0
----
8820

query I rowsort
SELECT ALL - NULLIF ( + ( - 21 ), - 96 * + 46 * 11 + + 68 - + 8 + + - 71 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT DISTINCT + COALESCE ( 71, + 33 + - COUNT( * ) ) * + 74
----
5254

skipif mysql # not compatible
query I rowsort label-7931
SELECT DISTINCT + COALESCE ( 71, + 33 + - COUNT ( * ) ) * + 74
----
5254

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT DISTINCT + COUNT( * ) + - - 28
----
29

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + COUNT ( * ) + - - 28
----
29

query I rowsort
SELECT 23 * - 86 * - 63 AS col1
----
124614

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7934
SELECT ALL - 31 + COUNT( * ) + + 44 + - 2 * - + 15 + - CAST( NULL AS DECIMAL ) * 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7934
SELECT ALL - 31 + COUNT ( * ) + + 44 + - 2 * - + 15 + - CAST ( NULL AS REAL ) * 59 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7935
SELECT ALL - SUM( ALL + CAST( + 30 AS SIGNED ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL - SUM ( ALL + CAST ( + 30 AS INTEGER ) ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - MAX( - 15 ) * 61 + + COALESCE ( 15, - 16 )
----
930

skipif mysql # not compatible
query I rowsort label-7936
SELECT - MAX ( - 15 ) * 61 + + COALESCE ( 15, - 16 )
----
930

query I rowsort
SELECT DISTINCT - ( - + 60 ) col1
----
60

query I rowsort
SELECT DISTINCT - + ( + 22 )
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7939
SELECT ALL - COALESCE ( 27, 59, - - 97 ) + + MAX( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7939
SELECT ALL - COALESCE ( 27, 59, - - 97 ) + + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 75 * 34 * - - 14 + - 50
----
35650

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT DISTINCT - 79 * + 66 * + MIN( + + ( + - 42 ) ) * - ( 73 )
----
-15986124

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - 79 * + 66 * + MIN ( + + ( + - 42 ) ) * - ( 73 )
----
-15986124

query I rowsort
SELECT DISTINCT - - COALESCE ( 39, + 18, 85 ) + - 65
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7943
SELECT + CAST( - + ( - 39 ) AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-7943
SELECT + CAST ( - + ( - 39 ) AS INTEGER )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT COUNT( * ) * - COUNT( * ) * + 27 + - COUNT( * ) + - 9 * + 82 + - COUNT( * ) AS col0
----
-767

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) * + 27 + - COUNT ( * ) + - 9 * + 82 + - COUNT ( * ) AS col0
----
-767

onlyif mysql # DIV for integer division: 
query II rowsort label-7945
SELECT + 80 * + 52 - 66 DIV + 64 AS col2, 57 AS col1
----
4159
57

skipif mysql # not compatible
query II rowsort label-7945
SELECT + 80 * + 52 - 66 / + 64 AS col2, 57 AS col1
----
4159
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL 19 * ( + - COUNT( * ) ) + + 11
----
-8

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL 19 * ( + - COUNT ( * ) ) + + 11
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT DISTINCT + - 28 * - COUNT( * ) AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7947
SELECT DISTINCT + - 28 * - COUNT ( * ) AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7948
SELECT 93 + - 98 + + MIN( + 33 ) AS col0, - 4 + - + 90 * CAST( - 35 AS SIGNED ) + CASE - 81 WHEN + 90 * 29 THEN - 91 * 19 WHEN COUNT( * ) THEN NULL ELSE - 10 * + 80 + - CAST( NULL AS SIGNED ) * - 81 END + 45 * - 8 AS col1
----
28
NULL

skipif mysql # not compatible
query II rowsort label-7948
SELECT 93 + - 98 + + MIN ( + 33 ) AS col0, - 4 + - + 90 * CAST ( - 35 AS INTEGER ) + CASE - 81 WHEN + 90 * 29 THEN - 91 * 19 WHEN COUNT ( * ) THEN NULL ELSE - 10 * + 80 + - CAST ( NULL AS INTEGER ) * - 81 END + 45 * - 8 AS col1
----
28
NULL

query I rowsort
SELECT DISTINCT + 52 AS col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT - SUM( + CASE - 89 WHEN - 88 THEN - 22 WHEN + + 4 THEN - - 10 WHEN + - 86 + 22 THEN NULL ELSE 90 END ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-7950
SELECT - SUM ( + CASE - 89 WHEN - 88 THEN - 22 WHEN + + 4 THEN - - 10 WHEN + - 86 + 22 THEN NULL ELSE 90 END ) AS col0
----
-90

query I rowsort
SELECT ALL ( - 25 ) AS col2
----
-25

query I rowsort
SELECT 82 * - 63
----
-5166

query I rowsort
SELECT 53 * - ( - 67 )
----
3551

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7954
SELECT DISTINCT 39 / - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT 39 / - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7955
SELECT ALL 67, - ( + - COUNT( * ) ) * - 44 - - 26 + - - COUNT( * ) * - + COUNT( * ) AS col1
----
67
-19

skipif mysql # not compatible
query II rowsort label-7955
SELECT ALL 67, - ( + - COUNT ( * ) ) * - 44 - - 26 + - - COUNT ( * ) * - + COUNT ( * ) AS col1
----
67
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-7956
SELECT 72 DIV - - 67 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7956
SELECT 72 / - - 67 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT 8 * + - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7957
SELECT 8 * + - COUNT ( * ) AS col1
----
-8

query II rowsort
SELECT ALL 74 * 15 * 13 AS col0, - 66
----
14430
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7959
SELECT 79 + COUNT( * ) DIV 70 * - + 45 - - MAX( 11 ) + - COUNT( * ) * + CAST( AVG ( DISTINCT - - 70 ) AS SIGNED ) DIV COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-7959
SELECT 79 + COUNT ( * ) / 70 * - + 45 - - MAX ( 11 ) + - COUNT ( * ) * + CAST ( AVG ( DISTINCT - - 70 ) AS INTEGER ) / COUNT ( * ) AS col0
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7960
SELECT DISTINCT 3 DIV + - 67 * + - 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT 3 / + - 67 * + - 88 col1
----
0

query II rowsort
SELECT ALL 30 AS col0, - 30 AS col0
----
30
-30

query I rowsort
SELECT 98 + 77
----
175

query I rowsort
SELECT ALL 38 + 45
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7964
SELECT ALL - 61 * + + 56 * ( - + SUM( ALL 13 ) ) * - ( - 99 ) + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT ALL - 61 * + + 56 * ( - + SUM ( ALL 13 ) ) * - ( - 99 ) + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7965
SELECT DISTINCT - COUNT( * ), + 91 AS col0
----
-1
91

skipif mysql # not compatible
query II rowsort label-7965
SELECT DISTINCT - COUNT ( * ), + 91 AS col0
----
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL - SUM( + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL - SUM ( + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT COUNT( DISTINCT - - 17 )
----
1

skipif mysql # not compatible
query I rowsort label-7967
SELECT COUNT ( DISTINCT - - 17 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7968
SELECT - ( + COUNT( * ) ) DIV + COUNT( * ) + - + 62 DIV 32 AS col0, 81
----
-2
81

skipif mysql # not compatible
query II rowsort label-7968
SELECT - ( + COUNT ( * ) ) / + COUNT ( * ) + - + 62 / 32 AS col0, 81
----
-2
81

query I rowsort
SELECT 42 + CASE - 68 WHEN 60 / - 18 THEN + - 52 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL + 34 * + + 52 + - + 87
----
1681

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT MIN( 75 ) col1
----
75

skipif mysql # not compatible
query I rowsort label-7971
SELECT MIN ( 75 ) col1
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7972
SELECT - 38 DIV + + 36 + + 3 AS col1, + COUNT( ALL - - 15 ) DIV + - 8 * + 64
----
2
0

skipif mysql # not compatible
query II rowsort label-7972
SELECT - 38 / + + 36 + + 3 AS col1, + COUNT ( ALL - - 15 ) / + - 8 * + 64
----
2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT ALL - SUM( DISTINCT - 19 )
----
19

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL - SUM ( DISTINCT - 19 )
----
19

query I rowsort
SELECT ALL - 99 * + 23 * + 75 AS col2
----
-170775

onlyif mysql # aggregate syntax: 
query II rowsort label-7975
SELECT COALESCE ( - 22, + - 57 ) AS col1, CASE - 57 WHEN - + 36 THEN NULL WHEN SUM( ALL - 62 ) THEN 43 WHEN 75 * 41 THEN 55 - + 26 ELSE NULL END + + 36 * 65
----
-22
NULL

skipif mysql # not compatible
query II rowsort label-7975
SELECT COALESCE ( - 22, + - 57 ) AS col1, CASE - 57 WHEN - + 36 THEN NULL WHEN SUM ( ALL - 62 ) THEN 43 WHEN 75 * 41 THEN 55 - + 26 ELSE NULL END + + 36 * 65
----
-22
NULL

query I rowsort
SELECT 89 * - - 72
----
6408

query I rowsort
SELECT ALL - 39 * 90
----
-3510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7978
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 92 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 10 AS col0
----
-10

query I rowsort
SELECT 69 - 4 - + + ( - 59 ) * - + 44 AS col0
----
-2531

query I rowsort
SELECT 12 * - 22 AS col2
----
-264

query I rowsort
SELECT DISTINCT - 56 - - + 45 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT DISTINCT + MIN( ALL + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + MIN ( ALL + 1 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7984
SELECT ALL - - 55 DIV CASE - 88 WHEN + COUNT( + ( 72 ) ) THEN NULL WHEN - COALESCE ( - 65, 99, - COUNT( ALL 31 ) ) + 48 THEN NULL ELSE - 18 END col0
----
-3

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - - 55 / CASE - 88 WHEN + COUNT ( + ( 72 ) ) THEN NULL WHEN - COALESCE ( - 65, 99, - COUNT ( ALL 31 ) ) + 48 THEN NULL ELSE - 18 END col0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7985
SELECT - + 18 * + 3 + + + 86 AS col1, 6 * - COUNT( * ) AS col1
----
32
-6

skipif mysql # not compatible
query II rowsort label-7985
SELECT - + 18 * + 3 + + + 86 AS col1, 6 * - COUNT ( * ) AS col1
----
32
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7986
SELECT ALL + CAST( NULL AS SIGNED ), NULLIF ( + 66, NULLIF ( + - NULLIF ( + 14, - 59 * + - 29 + + MIN( - 35 ) ), COALESCE ( 57, MAX( ALL + ( + 61 ) ) ) / 54 + + 78 ) * 49 ) AS col0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-7986
SELECT ALL + CAST ( NULL AS INTEGER ), NULLIF ( + 66, NULLIF ( + - NULLIF ( + 14, - 59 * + - 29 + + MIN ( - 35 ) ), COALESCE ( 57, MAX ( ALL + ( + 61 ) ) ) / 54 + + 78 ) * 49 ) AS col0
----
NULL
66

query I rowsort
SELECT ALL ( - 60 )
----
-60

query I rowsort
SELECT - + 68 - - - 77 AS col1
----
-145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7989
SELECT ALL + - ( + COUNT( * ) ) DIV SUM( DISTINCT - 50 ) + CAST( - 81 AS SIGNED ) + + 49 * + 91 * + MAX( + + ( - 61 ) )
----
-272080

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL + - ( + COUNT ( * ) ) / SUM ( DISTINCT - 50 ) + CAST ( - 81 AS INTEGER ) + + 49 * + 91 * + MAX ( + + ( - 61 ) )
----
-272080

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - 67 * + COUNT( 82 )
----
-67

skipif mysql # not compatible
query I rowsort label-7990
SELECT - 67 * + COUNT ( 82 )
----
-67

query I rowsort
SELECT + 37 + + - 87
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7992
SELECT - 87 * + 42 AS col0, 60 DIV 72 * - + ( - - MAX( 76 ) ) AS col0
----
-3654
0

skipif mysql # not compatible
query II rowsort label-7992
SELECT - 87 * + 42 AS col0, 60 / 72 * - + ( - - MAX ( 76 ) ) AS col0
----
-3654
0

query I rowsort
SELECT ALL + 12 * + ( 54 )
----
648

query II rowsort
SELECT - 66 col1, 53
----
-66
53

query I rowsort
SELECT - 39 + - + 79
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7996
SELECT ALL - 76 * - 60 AS col1, CAST( NULL AS SIGNED )
----
4560
NULL

skipif mysql # not compatible
query II rowsort label-7996
SELECT ALL - 76 * - 60 AS col1, CAST ( NULL AS INTEGER )
----
4560
NULL

query I rowsort
SELECT - 57 * 34 AS col1
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL - 67 + + COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - 67 + + COUNT ( * )
----
-66

query I rowsort
SELECT ALL 74 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT - COUNT( 72 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8000
SELECT - COUNT ( 72 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT ALL + 3 + + COUNT( * ) + + 76 * + - NULLIF ( - SUM( - 34 ), - - 96 ) + - COUNT( * ) * - 72 * - 1 + + ( - COUNT( * ) ) * - COUNT( * ) AS col2
----
-2651

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL + 3 + + COUNT ( * ) + + 76 * + - NULLIF ( - SUM ( - 34 ), - - 96 ) + - COUNT ( * ) * - 72 * - 1 + + ( - COUNT ( * ) ) * - COUNT ( * ) AS col2
----
-2651

query II rowsort
SELECT DISTINCT ( + - 80 ) AS col2, - 19
----
-80
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL 21 + - CASE COUNT( * ) WHEN - 86 * COUNT( * ) + + - 78 THEN NULL WHEN + 9 THEN + ( 78 ) + + + 25 * + - 56 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL 21 + - CASE COUNT ( * ) WHEN - 86 * COUNT ( * ) + + - 78 THEN NULL WHEN + 9 THEN + ( 78 ) + + + 25 * + - 56 END AS col1
----
NULL

query II rowsort
SELECT + 26 * - - 81 AS col0, - 83
----
2106
-83

query I rowsort
SELECT DISTINCT 32 + + 88 AS col0
----
120

query I rowsort
SELECT ALL 85 col2
----
85

query I rowsort
SELECT 39 col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8008
SELECT + 79 DIV 52 * - 91
----
-91

skipif mysql # not compatible
query I rowsort label-8008
SELECT + 79 / 52 * - 91
----
-91

query I rowsort
SELECT + 91 - - - 64 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-8010
SELECT DISTINCT + 84 AS col0, - 51 + - 37 * - 83 * + COUNT( * ) + + 89 * - 82 * + COALESCE ( + ( + + COUNT( 42 ) ), 92 + - 52 ) - 24 AS col2
----
84
-4302

skipif mysql # not compatible
query II rowsort label-8010
SELECT DISTINCT + 84 AS col0, - 51 + - 37 * - 83 * + COUNT ( * ) + + 89 * - 82 * + COALESCE ( + ( + + COUNT ( 42 ) ), 92 + - 52 ) - 24 AS col2
----
84
-4302

query II rowsort
SELECT ( + + 99 ), + 7 AS col1
----
99
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8012
SELECT ALL - 63 * - - CAST( NULL AS SIGNED ) + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL - 63 * - - CAST ( NULL AS INTEGER ) + - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8013
SELECT 48 * - - 4 - - + 9 + + - CAST( - COUNT( * ) AS SIGNED )
----
202

skipif mysql # not compatible
query I rowsort label-8013
SELECT 48 * - - 4 - - + 9 + + - CAST ( - COUNT ( * ) AS INTEGER )
----
202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT - + CAST( NULL AS SIGNED ) * 40 - + COALESCE ( + 83, + 13 + 72 * + 96 ) * + MAX( DISTINCT - ( + 56 ) ) * + + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT - + CAST ( NULL AS INTEGER ) * 40 - + COALESCE ( + 83, + 13 + 72 * + 96 ) * + MAX ( DISTINCT - ( + 56 ) ) * + + 29 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8015
SELECT ALL + - 52 AS col1, - COUNT( * )
----
-52
-1

skipif mysql # not compatible
query II rowsort label-8015
SELECT ALL + - 52 AS col1, - COUNT ( * )
----
-52
-1

query I rowsort
SELECT + 26 + + + 21 + - - 78
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT + 36, SUM( - 4 ) AS col1
----
36
-4

skipif mysql # not compatible
query II rowsort label-8017
SELECT + 36, SUM ( - 4 ) AS col1
----
36
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8018
SELECT 39 AS col2, 97 + - COUNT( * ) AS col1
----
39
96

skipif mysql # not compatible
query II rowsort label-8018
SELECT 39 AS col2, 97 + - COUNT ( * ) AS col1
----
39
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT + 40 * COUNT( * ) * + 74 AS col2
----
2960

skipif mysql # not compatible
query I rowsort label-8019
SELECT + 40 * COUNT ( * ) * + 74 AS col2
----
2960

query II rowsort
SELECT + 86 AS col0, + 76 AS col1
----
86
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - 7 * - 31 + - ( + 28 ) + + 77 * - + 64 - - 44 * - ( 77 ) + + + 14 + COUNT( * ) AS col1
----
-8112

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 7 * - 31 + - ( + 28 ) + + 77 * - + 64 - - 44 * - ( 77 ) + + + 14 + COUNT ( * ) AS col1
----
-8112

onlyif mysql # DIV for integer division: 
query I rowsort label-8022
SELECT - - 7 DIV - + 7
----
-1

skipif mysql # not compatible
query I rowsort label-8022
SELECT - - 7 / - + 7
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8023
SELECT + 37 AS col1, 49 + 16 DIV + + COUNT( DISTINCT + 40 ) AS col0
----
37
65

skipif mysql # not compatible
query II rowsort label-8023
SELECT + 37 AS col1, 49 + 16 / + + COUNT ( DISTINCT + 40 ) AS col0
----
37
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL + + ( CASE - - ( + 14 ) WHEN + - 84 + 92 * 62 / 35 THEN NULL WHEN + 98 THEN - 27 + + + CAST( + 94 AS SIGNED ) ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + + ( CASE - - ( + 14 ) WHEN + - 84 + 92 * 62 / 35 THEN NULL WHEN + 98 THEN - 27 + + + CAST ( + 94 AS INTEGER ) ELSE NULL END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8025
SELECT + - 63 + + CAST( - 60 AS SIGNED ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-8025
SELECT + - 63 + + CAST ( - 60 AS INTEGER ) AS col1
----
-123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT - 94 * - COUNT( * ) DIV + COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT - 94 * - COUNT ( * ) / + COUNT ( * ) col0
----
94

query I rowsort
SELECT - + ( + ( - 32 ) ) + - 41
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8028
SELECT ALL + + 59 AS col0, 12 + + MAX( DISTINCT + 81 ) AS col0
----
59
93

skipif mysql # not compatible
query II rowsort label-8028
SELECT ALL + + 59 AS col0, 12 + + MAX ( DISTINCT + 81 ) AS col0
----
59
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT ALL - + 28 * - COUNT( * ) * 28
----
784

skipif mysql # not compatible
query I rowsort label-8029
SELECT ALL - + 28 * - COUNT ( * ) * 28
----
784

query I rowsort
SELECT - 98 * - - 52
----
-5096

query I rowsort
SELECT ALL + - 68 AS col2
----
-68

query I rowsort
SELECT + - AVG ( ALL 84 ) * - + CASE + 23 WHEN 98 THEN - 40 + - 81 ELSE NULL END + + 12
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8033
SELECT ALL + 96 AS col0, CAST( NULL AS SIGNED ) + + + COUNT( * ) * + COALESCE ( - ( + 93 ), - 11 * + NULLIF ( COALESCE ( - + 79, 4 - + 65 ), - 24 ) ) * + 37
----
96
NULL

skipif mysql # not compatible
query II rowsort label-8033
SELECT ALL + 96 AS col0, CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + COALESCE ( - ( + 93 ), - 11 * + NULLIF ( COALESCE ( - + 79, 4 - + 65 ), - 24 ) ) * + 37
----
96
NULL

query II rowsort
SELECT + 66, 90 AS col2
----
66
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8035
SELECT + 65 / + CAST( NULL AS SIGNED ) AS col1, SUM( DISTINCT - + 23 ) col1, 68 * + ( + 43 ) + + - 58
----
NULL
-23
2866

skipif mysql # not compatible
query III rowsort label-8035
SELECT + 65 / + CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT - + 23 ) col1, 68 * + ( + 43 ) + + - 58
----
NULL
-23
2866

query I rowsort
SELECT - - 6 * 15 * 15 - - + 7
----
1357

query I rowsort
SELECT DISTINCT - 37 * + 85 + - + 88 AS col0
----
-3233

onlyif mysql # aggregate syntax: 
query II rowsort label-8038
SELECT DISTINCT CASE + + 16 WHEN - 25 THEN NULL ELSE + 69 * - 67 END col2, + COUNT( * ) col1
----
-4623
1

skipif mysql # not compatible
query II rowsort label-8038
SELECT DISTINCT CASE + + 16 WHEN - 25 THEN NULL ELSE + 69 * - 67 END col2, + COUNT ( * ) col1
----
-4623
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT - 81 + 51 + + 76 + COUNT( * ) - + CASE + 21 WHEN 25 * + 6 THEN + 61 * - 79 WHEN - 83 THEN NULL END + + - MAX( 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT - 81 + 51 + + 76 + COUNT ( * ) - + CASE + 21 WHEN 25 * + 6 THEN + 61 * - 79 WHEN - 83 THEN NULL END + + - MAX ( 79 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL 63 + + COUNT( ALL + 66 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL 63 + + COUNT ( ALL + 66 ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL - 80 + + + COUNT( * ) + 12 - + - 7 * 43 * + NULLIF ( 76, - + ( 82 ) + - 62 )
----
22809

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL - 80 + + + COUNT ( * ) + 12 - + - 7 * 43 * + NULLIF ( 76, - + ( 82 ) + - 62 )
----
22809

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8042
SELECT ALL - COUNT( * ) + COUNT( * ), + COUNT( * ) DIV 72 AS col0
----
0
0

skipif mysql # not compatible
query II rowsort label-8042
SELECT ALL - COUNT ( * ) + COUNT ( * ), + COUNT ( * ) / 72 AS col0
----
0
0

query I rowsort
SELECT ALL + 81 + + 74 * + 50 AS col0
----
3781

query I rowsort
SELECT ALL - 36 + 43 AS col2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT - CASE 83 WHEN COUNT( * ) * - - 78 + - - AVG ( + - 17 ) + - 37 + - + 99 THEN - 90 WHEN - + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT - CASE 83 WHEN COUNT ( * ) * - - 78 + - - AVG ( + - 17 ) + - 37 + - + 99 THEN - 90 WHEN - + COUNT ( * ) THEN NULL END
----
NULL

query I rowsort
SELECT ALL + ( + 31 ) + - 26 + - 29 + - - 51
----
27

query I rowsort
SELECT - 91 + - 96
----
-187

query I rowsort
SELECT DISTINCT + 63 * - 62 AS col2
----
-3906

query I rowsort
SELECT - 67 + + 92 * + 9 * - - 85
----
70313

query I rowsort
SELECT DISTINCT - NULLIF ( 83, - 30 ) * + - ( + - 65 )
----
-5395

query I rowsort
SELECT ALL - 18 - - + 63 AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL 31 - - MAX( DISTINCT + 55 ) - 67
----
19

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL 31 - - MAX ( DISTINCT + 55 ) - 67
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-8053
SELECT DISTINCT + COUNT( * ) * 64 col0, CASE - + 20 WHEN - + ( 18 ) THEN + 36 + + 95 * COALESCE ( + ( 76 ), + 66 ) ELSE NULL END col0
----
64
NULL

skipif mysql # not compatible
query II rowsort label-8053
SELECT DISTINCT + COUNT ( * ) * 64 col0, CASE - + 20 WHEN - + ( 18 ) THEN + 36 + + 95 * COALESCE ( + ( 76 ), + 66 ) ELSE NULL END col0
----
64
NULL

query I rowsort
SELECT + 71 * 31 AS col2
----
2201

query I rowsort
SELECT + + 42 * - 68 + + 50
----
-2806

query I rowsort
SELECT ALL + + 50
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT - - 17 * - - ( COUNT( * ) ) * + 68
----
1156

skipif mysql # not compatible
query I rowsort label-8057
SELECT - - 17 * - - ( COUNT ( * ) ) * + 68
----
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT NULLIF ( - - 32, CASE - COUNT( * ) WHEN - + SUM( DISTINCT - - 95 ) + - 22 + - + 22 THEN + 19 + 25 WHEN - 72 THEN 42 END * 35 )
----
32

skipif mysql # not compatible
query I rowsort label-8058
SELECT NULLIF ( - - 32, CASE - COUNT ( * ) WHEN - + SUM ( DISTINCT - - 95 ) + - 22 + - + 22 THEN + 19 + 25 WHEN - 72 THEN 42 END * 35 )
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8059
SELECT ALL + SUM( - 91 ) AS col0, - CAST( NULL AS SIGNED ) AS col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-8059
SELECT ALL + SUM ( - 91 ) AS col0, - CAST ( NULL AS INTEGER ) AS col2
----
-91
NULL

query II rowsort
SELECT + - ( 43 ), 21 AS col0
----
-43
21

query I rowsort
SELECT + + 78 * - - ( - + 34 ) * - ( - 27 )
----
-71604

query I rowsort
SELECT ALL 86 * + - 44 * - 87 + 4 * - 96
----
328824

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT ALL - + COUNT( - 41 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - + COUNT ( - 41 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT + COUNT( DISTINCT 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8064
SELECT + COUNT ( DISTINCT 24 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT + 73 * CAST( + 92 AS SIGNED ) * + + COUNT( + 58 )
----
6716

skipif mysql # not compatible
query I rowsort label-8065
SELECT + 73 * CAST ( + 92 AS INTEGER ) * + + COUNT ( + 58 )
----
6716

query I rowsort
SELECT DISTINCT - + 48 AS col2
----
-48

query I rowsort
SELECT ALL 57 * 77 AS col2
----
4389

query I rowsort
SELECT 9 * + 75 AS col2
----
675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT - 40 * - + COUNT( * ) * CAST( 16 AS SIGNED )
----
640

skipif mysql # not compatible
query I rowsort label-8069
SELECT - 40 * - + COUNT ( * ) * CAST ( 16 AS INTEGER )
----
640

query I rowsort
SELECT 68 * + 86
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT + + CASE + 48 WHEN + MAX( ALL + 39 ) * + 80 - + - 26 * - - ( + + CASE 57 WHEN - + COUNT( * ) * - ( + - CASE + 62 WHEN 63 THEN NULL WHEN + AVG ( ALL 89 ) * - 24 THEN 87 WHEN - 77 THEN + 61 ELSE 55 END ) THEN - ( 72 ) END ) THEN 30 WHEN 62 THEN 83 - 68 WHEN 2 + + 54 * - 43 THEN COALESCE ( + 72, - 98, - 13 + + 32 ) * 49 ELSE + 61 END
----
61

skipif mysql # not compatible
query I rowsort label-8071
SELECT + + CASE + 48 WHEN + MAX ( ALL + 39 ) * + 80 - + - 26 * - - ( + + CASE 57 WHEN - + COUNT ( * ) * - ( + - CASE + 62 WHEN 63 THEN NULL WHEN + AVG ( ALL 89 ) * - 24 THEN 87 WHEN - 77 THEN + 61 ELSE 55 END ) THEN - ( 72 ) END ) THEN 30 WHEN 62 THEN 83 - 68 WHEN 2 + + 54 * - 43 THEN COALESCE ( + 72, - 98, - 13 + + 32 ) * 49 ELSE + 61 END
----
61

query I rowsort
SELECT ALL - CASE - ( + - 97 ) WHEN + 46 THEN 19 - 13 * + ( + 49 ) END + - 87 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT 1 - - COUNT( * ) * COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8073
SELECT 1 - - COUNT ( * ) * COUNT ( * ) AS col0
----
2

query I rowsort
SELECT ALL - 55 + - 22 * - 15 AS col2
----
275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8075
SELECT COALESCE ( 7, 47 + SUM( - 44 ), - COUNT( * ) DIV - + 88 + + ( - 83 ) ) - 38, COUNT( * ) AS col1
----
-31
1

skipif mysql # not compatible
query II rowsort label-8075
SELECT COALESCE ( 7, 47 + SUM ( - 44 ), - COUNT ( * ) / - + 88 + + ( - 83 ) ) - 38, COUNT ( * ) AS col1
----
-31
1

query I rowsort
SELECT ALL - 53 AS col2
----
-53

query I rowsort
SELECT DISTINCT 63 + + 87 AS col1
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8078
SELECT DISTINCT - MIN( - + 48 ) + + CAST( - - 95 AS SIGNED ) col0
----
143

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT - MIN ( - + 48 ) + + CAST ( - - 95 AS INTEGER ) col0
----
143

query I rowsort
SELECT DISTINCT + CASE 24 WHEN - 40 THEN - - 98 ELSE NULL END * - 87 - + ( 84 )
----
NULL

query I rowsort
SELECT 17 - - 12 * + ( - - 82 ) AS col2
----
1001

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8081
SELECT 77 col2, 43 * + CAST( NULL AS SIGNED )
----
77
NULL

skipif mysql # not compatible
query II rowsort label-8081
SELECT 77 col2, 43 * + CAST ( NULL AS INTEGER )
----
77
NULL

query I rowsort
SELECT 23 + + 47
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT ALL + MIN( DISTINCT + 75 ) + - ( ( 61 ) ) + - 66 DIV - 16
----
18

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + MIN ( DISTINCT + 75 ) + - ( ( 61 ) ) + - 66 / - 16
----
18

query I rowsort
SELECT DISTINCT 90 col2
----
90

query I rowsort
SELECT DISTINCT 43 AS col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8086
SELECT ALL + 41 DIV 8
----
5

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL + 41 / 8
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT ALL - 87 - 5 + + 69 * + + COUNT( * ) * - 85 * + 19 * + 58 AS col1
----
-6463322

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - 87 - 5 + + 69 * + + COUNT ( * ) * - 85 * + 19 * + 58 AS col1
----
-6463322

query II rowsort
SELECT - 48, - 9 AS col0
----
-48
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8089
SELECT 51 DIV + + 80
----
0

skipif mysql # not compatible
query I rowsort label-8089
SELECT 51 / + + 80
----
0

query I rowsort
SELECT + NULLIF ( - - 85, 12 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT ALL - + 24 * + 88 + + COUNT( * ) AS col1
----
-2111

skipif mysql # not compatible
query I rowsort label-8091
SELECT ALL - + 24 * + 88 + + COUNT ( * ) AS col1
----
-2111

onlyif mysql # aggregate syntax: 
query II rowsort label-8092
SELECT ALL + COUNT( * ), + CASE + COUNT( * ) WHEN - 53 * - + 93 + 26 THEN - 39 ELSE - ( 56 ) END AS col1
----
1
-56

skipif mysql # not compatible
query II rowsort label-8092
SELECT ALL + COUNT ( * ), + CASE + COUNT ( * ) WHEN - 53 * - + 93 + 26 THEN - 39 ELSE - ( 56 ) END AS col1
----
1
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8093
SELECT - + NULLIF ( - MIN( - - CAST( NULL AS SIGNED ) ), - CAST( NULL AS SIGNED ) + - COUNT( * ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT - + NULLIF ( - MIN ( - - CAST ( NULL AS INTEGER ) ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) col2
----
NULL

query I rowsort
SELECT + 98 col1
----
98

query I rowsort
SELECT 75 - + 23 + + - 73 + + 62 + + - 97
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8096
SELECT 18 * + CAST( NULL AS DECIMAL ) * - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8096
SELECT 18 * + CAST ( NULL AS REAL ) * - 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT ALL - + 49 * CASE + 32 WHEN - 56 - - 38 THEN - 20 + - 83 WHEN 57 + + COUNT( * ) - - - 65 THEN NULL END + + + 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8097
SELECT ALL - + 49 * CASE + 32 WHEN - 56 - - 38 THEN - 20 + - 83 WHEN 57 + + COUNT ( * ) - - - 65 THEN NULL END + + + 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8098
SELECT - COUNT( * ) DIV + MAX( DISTINCT + - 13 ) - + 84 - + 14 + - 13 DIV 79 * + + 89 AS col1, - 10
----
-98
-10

skipif mysql # not compatible
query II rowsort label-8098
SELECT - COUNT ( * ) / + MAX ( DISTINCT + - 13 ) - + 84 - + 14 + - 13 / 79 * + + 89 AS col1, - 10
----
-98
-10

query I rowsort
SELECT ALL + 27 * - 78 + 83 * + 68 * - 4 AS col2
----
-24682

query II rowsort
SELECT - 21 AS col1, + 60
----
-21
60

query I rowsort
SELECT ALL + 16 * COALESCE ( 73, CASE + 71 WHEN 40 * - - 6 THEN NULL WHEN + 18 + 21 * + 50 THEN - - ( + + 75 ) * + - 68 END ) - 20 * 17
----
828

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT ALL - 54 AS col1, COUNT( * )
----
-54
1

skipif mysql # not compatible
query II rowsort label-8102
SELECT ALL - 54 AS col1, COUNT ( * )
----
-54
1

query I rowsort
SELECT 98 * - 64 AS col0
----
-6272

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8104
SELECT DISTINCT + - 19 * CAST( + + 99 AS SIGNED ) + - + 36 DIV - 91 col0
----
-1881

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT + - 19 * CAST ( + + 99 AS INTEGER ) + - + 36 / - 91 col0
----
-1881

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT - 71 * + 23 * + COUNT( * ) col1
----
-1633

skipif mysql # not compatible
query I rowsort label-8105
SELECT - 71 * + 23 * + COUNT ( * ) col1
----
-1633

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT ALL + 66 + - 79 * - COUNT( DISTINCT + 12 )
----
145

skipif mysql # not compatible
query I rowsort label-8106
SELECT ALL + 66 + - 79 * - COUNT ( DISTINCT + 12 )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT + + MIN( - 28 ) * + 46 - + 55
----
-1343

skipif mysql # not compatible
query I rowsort label-8107
SELECT + + MIN ( - 28 ) * + 46 - + 55
----
-1343

query II rowsort
SELECT + 5, ( 96 ) * + + 18 AS col0
----
5
1728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT + 38 * CAST( NULL AS SIGNED ) * 27 / AVG ( ALL 83 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8109
SELECT + 38 * CAST ( NULL AS INTEGER ) * 27 / AVG ( ALL 83 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT + NULLIF ( 90, - 30 ) * - 94 - - CAST( 73 AS SIGNED ) * - CAST( + CASE - CAST( + 4 AS SIGNED ) WHEN - 55 THEN NULL WHEN - 67 THEN - ( - 79 ) * 18 ELSE NULL END AS SIGNED ) * ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT + NULLIF ( 90, - 30 ) * - 94 - - CAST ( 73 AS INTEGER ) * - CAST ( + CASE - CAST ( + 4 AS INTEGER ) WHEN - 55 THEN NULL WHEN - 67 THEN - ( - 79 ) * 18 ELSE NULL END AS INTEGER ) * ( - 6 )
----
NULL

query I rowsort
SELECT + - ( + ( - 17 ) ) * 37 * - - 78 + - 52 + - 65
----
48945

onlyif mysql # aggregate syntax: 
query II rowsort label-8112
SELECT COUNT( * ) AS col2, - COUNT( * ) * 30
----
1
-30

skipif mysql # not compatible
query II rowsort label-8112
SELECT COUNT ( * ) AS col2, - COUNT ( * ) * 30
----
1
-30

query I rowsort
SELECT ALL 86 * - 89 col1
----
-7654

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL - ( + 46 ) + - - COALESCE ( + + COUNT( + + 69 ), - 88 ) + - - 41 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - ( + 46 ) + - - COALESCE ( + + COUNT ( + + 69 ), - 88 ) + - - 41 AS col2
----
-4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8115
SELECT 20 DIV - - 96 + CAST( 90 AS SIGNED ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-8115
SELECT 20 / - - 96 + CAST ( 90 AS INTEGER ) AS col2
----
90

query I rowsort
SELECT ALL - 14 + 42 * 46 * + 6 + - - 1 - - 22 AS col1
----
11601

query I rowsort
SELECT ALL - - 77 + - 29 AS col1
----
48

query I rowsort
SELECT ALL 13 * 21 AS col2
----
273

query I rowsort
SELECT ALL - 8 * - + 42 col0
----
336

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT ALL NULLIF ( - COUNT( * ), + 67 * - - ( + 25 ) + 89 + - 39 * 63 ) + + 54 AS col2, 11 * 31 * - - ( 70 )
----
53
23870

skipif mysql # not compatible
query II rowsort label-8120
SELECT ALL NULLIF ( - COUNT ( * ), + 67 * - - ( + 25 ) + 89 + - 39 * 63 ) + + 54 AS col2, 11 * 31 * - - ( 70 )
----
53
23870

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT ALL 74 * - COALESCE ( + CASE - CASE WHEN NOT ( NOT - 79 >= NULL ) THEN 48 END WHEN + + COUNT( * ) THEN 6 END, MIN( ALL + - 30 ) * 45 * 77 ) * - 14
----
-107692200

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL 74 * - COALESCE ( + CASE - CASE WHEN NOT ( NOT - 79 >= NULL ) THEN 48 END WHEN + + COUNT ( * ) THEN 6 END, MIN ( ALL + - 30 ) * 45 * 77 ) * - 14
----
-107692200

onlyif mysql # DIV for integer division: 
query I rowsort label-8122
SELECT 81 DIV + + 31
----
2

skipif mysql # not compatible
query I rowsort label-8122
SELECT 81 / + + 31
----
2

query I rowsort
SELECT DISTINCT 9 + + - 10 + + 68
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8124
SELECT - MAX( ALL + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8124
SELECT - MAX ( ALL + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 36 + - 25 * - 20 * NULLIF ( 20, - + 9 )
----
10036

onlyif mysql # DIV for integer division: 
query I rowsort label-8126
SELECT ALL 62 DIV ( + - 2 )
----
-31

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL 62 / ( + - 2 )
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8127
SELECT DISTINCT 73 - + - 75 + + 56 * + + COUNT( * ) * - 89 + + 87 DIV - - 98 * + + 68 * + 32
----
-4836

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT 73 - + - 75 + + 56 * + + COUNT ( * ) * - 89 + + 87 / - - 98 * + + 68 * + 32
----
-4836

query I rowsort
SELECT ALL 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-8129
SELECT - MAX( - 76 ), - 15 AS col2
----
76
-15

skipif mysql # not compatible
query II rowsort label-8129
SELECT - MAX ( - 76 ), - 15 AS col2
----
76
-15

query I rowsort
SELECT ALL + 55 - + + 63
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 85 * 50
----
NULL

skipif mysql # not compatible
query I rowsort label-8131
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 85 * 50
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8132
SELECT 58 + + 78 + - COALESCE ( ( + CASE 68 WHEN - 77 - - 38 THEN NULL ELSE COUNT( * ) END ), + 81 + - COUNT( * ) + + CAST( NULL AS SIGNED ), + + 34 * - 30 * + COUNT( * ) ) * 15 * 38 AS col1
----
-434

skipif mysql # not compatible
query I rowsort label-8132
SELECT 58 + + 78 + - COALESCE ( ( + CASE 68 WHEN - 77 - - 38 THEN NULL ELSE COUNT ( * ) END ), + 81 + - COUNT ( * ) + + CAST ( NULL AS INTEGER ), + + 34 * - 30 * + COUNT ( * ) ) * 15 * 38 AS col1
----
-434

query I rowsort
SELECT ALL 54 * + 30
----
1620

query I rowsort
SELECT 32 * - 37 AS col0
----
-1184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT 67 * + 85 * - CAST( - SUM( - 52 ) AS SIGNED ) col2
----
-296140

skipif mysql # not compatible
query I rowsort label-8135
SELECT 67 * + 85 * - CAST ( - SUM ( - 52 ) AS INTEGER ) col2
----
-296140

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + COUNT( * ) + MAX( ALL + 26 ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8136
SELECT + COUNT ( * ) + MAX ( ALL + 26 ) AS col1
----
27

query I rowsort
SELECT + 15 + + ( - 10 ) AS col2
----
5

query I rowsort
SELECT ALL 89 * - 23 * + - 19 AS col0
----
38893

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT - 28 + - SUM( DISTINCT - 68 )
----
40

skipif mysql # not compatible
query I rowsort label-8139
SELECT - 28 + - SUM ( DISTINCT - 68 )
----
40

query II rowsort
SELECT ALL - 70 + + + 79 AS col1, ( 26 ) * + + 74
----
9
1924

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT + MAX( ALL + 1 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8141
SELECT + MAX ( ALL + 1 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8142
SELECT ALL - COUNT( * ) * + 15 * 46 + + + CAST( 30 AS SIGNED )
----
-660

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL - COUNT ( * ) * + 15 * 46 + + + CAST ( 30 AS INTEGER )
----
-660

query I rowsort
SELECT ALL 17 * - 78 + + 4 + + 47 AS col1
----
-1275

query I rowsort
SELECT DISTINCT - + 54 * 9
----
-486

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - NULLIF ( - 48, MAX( ALL - - 22 ) )
----
48

skipif mysql # not compatible
query I rowsort label-8145
SELECT - NULLIF ( - 48, MAX ( ALL - - 22 ) )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT - COUNT( * ) * 35
----
-35

skipif mysql # not compatible
query I rowsort label-8146
SELECT - COUNT ( * ) * 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8147
SELECT DISTINCT - - 4 * - - CAST( - 2 AS SIGNED ) + 8 * - 32
----
-264

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT - - 4 * - - CAST ( - 2 AS INTEGER ) + 8 * - 32
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL COUNT( * ) * 82 * - COUNT( * ) - - 53 + + 97 + - 62 col1
----
6

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL COUNT ( * ) * 82 * - COUNT ( * ) - - 53 + + 97 + - 62 col1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT - CAST( NULL AS SIGNED ) * + + 3 * + + 76 * + + 73 + ( - 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT - CAST ( NULL AS INTEGER ) * + + 3 * + + 76 * + + 73 + ( - 82 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8150
SELECT ALL 25 * + COUNT( * ) + - 0 - + - 6 + + - ( + + CASE + CAST( + + 38 AS DECIMAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0
----
17
-31

skipif mysql # not compatible
query II rowsort label-8150
SELECT ALL 25 * + COUNT ( * ) + - 0 - + - 6 + + - ( + + CASE + CAST ( + + 38 AS REAL ) WHEN 3 THEN NULL WHEN + 42 THEN NULL WHEN - 80 THEN NULL ELSE 14 END ) AS col1, - 31 AS col0
----
17
-31

query I rowsort
SELECT DISTINCT - 85 * + + 44 AS col1
----
-3740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - 89 + + - 0 + + COUNT( * ) + - 97 + + + 93 * - + ( + + 31 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - 89 + + - 0 + + COUNT ( * ) + - 97 + + + 93 * - + ( + + 31 ) AS col1
----
NULL

query I rowsort
SELECT ALL - + 37 * - 63 + + 99 AS col2
----
2430

query I rowsort
SELECT DISTINCT + + 37 AS col0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8155
SELECT ALL COUNT( * ) * CAST( 64 AS SIGNED ) DIV - - 7 + + COUNT( DISTINCT - 69 ) DIV - MAX( ALL 51 ) + ( - 48 )
----
-39

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL COUNT ( * ) * CAST ( 64 AS INTEGER ) / - - 7 + + COUNT ( DISTINCT - 69 ) / - MAX ( ALL 51 ) + ( - 48 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL + COALESCE ( - 31, + COUNT( * ) ) col1
----
-31

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + COALESCE ( - 31, + COUNT ( * ) ) col1
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8157
SELECT DISTINCT 32 * + + 59 * + ( + + 41 ) - - 9 col2, COUNT( DISTINCT + + 79 ) AS col0
----
77417
1

skipif mysql # not compatible
query II rowsort label-8157
SELECT DISTINCT 32 * + + 59 * + ( + + 41 ) - - 9 col2, COUNT ( DISTINCT + + 79 ) AS col0
----
77417
1

query I rowsort
SELECT + 63 * COALESCE ( + 65, - 70 + - 19 ) AS col0
----
4095

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT ALL + 30 * 3 - - 96 AS col0, 58 * + - 85 - - COUNT( * ) AS col2
----
186
-4929

skipif mysql # not compatible
query II rowsort label-8159
SELECT ALL + 30 * 3 - - 96 AS col0, 58 * + - 85 - - COUNT ( * ) AS col2
----
186
-4929

query I rowsort
SELECT - 74 * - 3 * - 51 * - - 91
----
-1030302

onlyif mysql # aggregate syntax: 
query II rowsort label-8161
SELECT DISTINCT + 68 AS col1, - 11 + - 21 * + 19 * + MAX( ALL - 34 )
----
68
13555

skipif mysql # not compatible
query II rowsort label-8161
SELECT DISTINCT + 68 AS col1, - 11 + - 21 * + 19 * + MAX ( ALL - 34 )
----
68
13555

query I rowsort
SELECT - 50 - - 56
----
6

query I rowsort
SELECT ALL 21 * - - 24
----
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8164
SELECT DISTINCT + ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, + 98 * - - 9 * - - 56 * - + MIN( ALL - - 34 ) + - 48 DIV - 29
----
NULL
-1679327

skipif mysql # not compatible
query II rowsort label-8164
SELECT DISTINCT + ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, + 98 * - - 9 * - - 56 * - + MIN ( ALL - - 34 ) + - 48 / - 29
----
NULL
-1679327

onlyif mysql # aggregate syntax: 
query I rowsort label-8165
SELECT + MAX( + + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-8165
SELECT + MAX ( + + 15 )
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8166
SELECT - MAX( + - CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8166
SELECT - MAX ( + - CAST ( NULL AS REAL ) )
----
NULL

query I rowsort
SELECT ALL ( ( ( 99 ) ) )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8168
SELECT + 97 DIV + + 14
----
6

skipif mysql # not compatible
query I rowsort label-8168
SELECT + 97 / + + 14
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT 78 * COUNT( * ) + - 28 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8169
SELECT 78 * COUNT ( * ) + - 28 AS col0
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8170
SELECT DISTINCT COUNT( * ) * 35 DIV + 91 * - 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT COUNT ( * ) * 35 / + 91 * - 61 AS col0
----
0

query I rowsort
SELECT ALL 91 col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT - 61 DIV - + 88 * 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8172
SELECT - 61 / - + 88 * 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8173
SELECT + MIN( - 93 ) * - + 15 col2, - 56 AS col0
----
1395
-56

skipif mysql # not compatible
query II rowsort label-8173
SELECT + MIN ( - 93 ) * - + 15 col2, - 56 AS col0
----
1395
-56

query I rowsort
SELECT + 78 * + 78
----
6084

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + 43 * - - COALESCE ( + 17, - SUM( ALL - 29 ) * 67 + - COUNT( * ) + + 84 ) * 86
----
62866

skipif mysql # not compatible
query I rowsort label-8175
SELECT + 43 * - - COALESCE ( + 17, - SUM ( ALL - 29 ) * 67 + - COUNT ( * ) + + 84 ) * 86
----
62866

query I rowsort
SELECT DISTINCT 7 + - - 76
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT + - 80 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-8177
SELECT + - 80 / - 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL + CASE - ( 13 ) WHEN + - 22 * + ( + 96 ) * + 94 THEN NULL WHEN 94 / + + CASE + + 13 WHEN 1 THEN + 2 ELSE NULL END * 49 + - 22 * 26 THEN ( + 56 ) + 21 * 83 ELSE NULL END + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL + CASE - ( 13 ) WHEN + - 22 * + ( + 96 ) * + 94 THEN NULL WHEN 94 / + + CASE + + 13 WHEN 1 THEN + 2 ELSE NULL END * 49 + - 22 * 26 THEN ( + 56 ) + 21 * 83 ELSE NULL END + + COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT + + 5 * - - 97 DIV - 82 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8179
SELECT + + 5 * - - 97 / - 82 AS col0
----
-5

query I rowsort
SELECT DISTINCT - 41 + + 3 AS col2
----
-38

query II rowsort
SELECT ALL + 50 * 61 * + + 52, NULLIF ( 89, + 74 * - 44 ) - 63 col2
----
158600
26

query I rowsort
SELECT + 93 * ( - + 47 ) AS col0
----
-4371

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT + 62 * + COUNT( DISTINCT 57 ) * 59 + + 52 + 36 - + 99
----
3647

skipif mysql # not compatible
query I rowsort label-8183
SELECT + 62 * + COUNT ( DISTINCT 57 ) * 59 + + 52 + 36 - + 99
----
3647

query I rowsort
SELECT + 2 - 36
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT + 17 * - - 31 * 5 + + 67 * - + NULLIF ( - 37, COUNT( * ) ) AS col0
----
5114

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT + 17 * - - 31 * 5 + + 67 * - + NULLIF ( - 37, COUNT ( * ) ) AS col0
----
5114

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL COALESCE ( + CASE + COUNT( * ) WHEN - 85 + - AVG ( 23 ) + CASE - COUNT( * ) WHEN + - 67 THEN - 10 + - + 52 WHEN + - 11 THEN - + SUM( ALL - 46 ) / - - 81 WHEN - 39 + COUNT( * ) THEN NULL ELSE NULL END / + 46 THEN MAX( DISTINCT - 41 ) WHEN 10 THEN 14 ELSE NULL END, - ( 73 ) ) + - COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL COALESCE ( + CASE + COUNT ( * ) WHEN - 85 + - AVG ( 23 ) + CASE - COUNT ( * ) WHEN + - 67 THEN - 10 + - + 52 WHEN + - 11 THEN - + SUM ( ALL - 46 ) / - - 81 WHEN - 39 + COUNT ( * ) THEN NULL ELSE NULL END / + 46 THEN MAX ( DISTINCT - 41 ) WHEN 10 THEN 14 ELSE NULL END, - ( 73 ) ) + - COUNT ( * ) AS col1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT + + 53 - - - CASE - NULLIF ( - NULLIF ( + COALESCE ( + - 60, + + CAST( NULL AS SIGNED ) + - + 21 + 50 / + 84 + - + ( - COALESCE ( - - ( - - 76 ), + + 39 + NULLIF ( COALESCE ( + 55, AVG ( ALL - 88 ) ), 42 + ( 78 ) ) ) ) - - 2 ), 42 / 43 ), COUNT( * ) ) WHEN - COUNT( * ) THEN NULL ELSE 48 + - 69 END + + 33 AS col0
----
107

skipif mysql # not compatible
query I rowsort label-8187
SELECT + + 53 - - - CASE - NULLIF ( - NULLIF ( + COALESCE ( + - 60, + + CAST ( NULL AS INTEGER ) + - + 21 + 50 / + 84 + - + ( - COALESCE ( - - ( - - 76 ), + + 39 + NULLIF ( COALESCE ( + 55, AVG ( ALL - 88 ) ), 42 + ( 78 ) ) ) ) - - 2 ), 42 / 43 ), COUNT ( * ) ) WHEN - COUNT ( * ) THEN NULL ELSE 48 + - 69 END + + 33 AS col0
----
107

query I rowsort
SELECT ALL + - 59 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT + - 78 + - - 19 - + 11 DIV 77 AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-8189
SELECT + - 78 + - - 19 - + 11 / 77 AS col1
----
-59

query I rowsort
SELECT DISTINCT 7 * + 19 * + 87 + 51
----
11622

query I rowsort
SELECT ALL + + 86
----
86

query I rowsort
SELECT ALL + + NULLIF ( - + 29, + 62 )
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT DISTINCT 47 DIV COUNT( * ) * 74 - 6 + + 29 + + 36
----
3537

skipif mysql # not compatible
query I rowsort label-8193
SELECT DISTINCT 47 / COUNT ( * ) * 74 - 6 + + 29 + + 36
----
3537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8194
SELECT + + CAST( - 47 AS SIGNED )
----
-47

skipif mysql # not compatible
query I rowsort label-8194
SELECT + + CAST ( - 47 AS INTEGER )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT 37 / - CAST( NULL AS SIGNED ) - + 39 * 57 * 42
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT 37 / - CAST ( NULL AS INTEGER ) - + 39 * 57 * 42
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8196
SELECT + 9 * - + 17 + + + CAST( 69 AS SIGNED ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-8196
SELECT + 9 * - + 17 + + + CAST ( 69 AS INTEGER ) AS col0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8197
SELECT - 63 + + 41 + - - CAST( + MIN( 19 ) AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-8197
SELECT - 63 + + 41 + - - CAST ( + MIN ( 19 ) AS INTEGER ) AS col1
----
-3

query I rowsort
SELECT + ( + 90 ) * 34 col2
----
3060

query I rowsort
SELECT - 80 * + - 4
----
320

query II rowsort
SELECT DISTINCT + ( 38 ) * - + 29 + - - 6 AS col1, ( - - ( 49 ) ) * + - 71 col2
----
-1096
-3479

query II rowsort
SELECT ( + 89 ) AS col0, + 55 + 86 AS col1
----
89
141

query I rowsort
SELECT ALL + 27 * 35
----
945

query I rowsort
SELECT - 44 * + 13 * 58
----
-33176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8204
SELECT DISTINCT + COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8205
SELECT ALL - CASE + AVG ( + - 79 ) WHEN - COALESCE ( - - 22, + CAST( NULL AS SIGNED ), COUNT( * ) * + ( - ( CAST( NULL AS SIGNED ) ) ) ) THEN - + 49 + + COUNT( * ) * - + 2 + - + COALESCE ( + 11, + 9, + ( ( - AVG ( DISTINCT - NULLIF ( - 89, 27 ) ) ) ) ) + - COALESCE ( 96 + + 35, COALESCE ( 66, 80 ) * + 25 ) / 63 * COUNT( * ) END * - 83 - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL - CASE + AVG ( + - 79 ) WHEN - COALESCE ( - - 22, + CAST ( NULL AS INTEGER ), COUNT ( * ) * + ( - ( CAST ( NULL AS INTEGER ) ) ) ) THEN - + 49 + + COUNT ( * ) * - + 2 + - + COALESCE ( + 11, + 9, + ( ( - AVG ( DISTINCT - NULLIF ( - 89, 27 ) ) ) ) ) + - COALESCE ( 96 + + 35, COALESCE ( 66, 80 ) * + 25 ) / 63 * COUNT ( * ) END * - 83 - 79
----
NULL

query I rowsort
SELECT - 21 * 1
----
-21

query I rowsort
SELECT - 33 * + - 3 + - 60 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8208
SELECT NULLIF ( - MAX( ALL - 22 ), - 52 ) AS col1, 75 AS col0
----
22
75

skipif mysql # not compatible
query II rowsort label-8208
SELECT NULLIF ( - MAX ( ALL - 22 ), - 52 ) AS col1, 75 AS col0
----
22
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8209
SELECT ALL + 87 AS col2, - ( - 25 ) + + - 45 + 3 DIV - - SUM( DISTINCT + + 3 ) AS col2
----
87
-19

skipif mysql # not compatible
query II rowsort label-8209
SELECT ALL + 87 AS col2, - ( - 25 ) + + - 45 + 3 / - - SUM ( DISTINCT + + 3 ) AS col2
----
87
-19

query I rowsort
SELECT - 85 * - ( 2 ) AS col0
----
170

query I rowsort
SELECT - 91 * + 18 AS col1
----
-1638

onlyif mysql # aggregate syntax: 
query II rowsort label-8212
SELECT 17 AS col1, COUNT( * ) * - - 7 AS col2
----
17
7

skipif mysql # not compatible
query II rowsort label-8212
SELECT 17 AS col1, COUNT ( * ) * - - 7 AS col2
----
17
7

query II rowsort
SELECT 52 AS col0, 13 AS col0
----
52
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT ALL + 83 + - 13 + + + CAST( + 92 AS SIGNED ) * - 56 + + CAST( SUM( + 36 ) AS SIGNED ) * 35 AS col0
----
-3822

skipif mysql # not compatible
query I rowsort label-8214
SELECT ALL + 83 + - 13 + + + CAST ( + 92 AS INTEGER ) * - 56 + + CAST ( SUM ( + 36 ) AS INTEGER ) * 35 AS col0
----
-3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT 48 + 4 - - 82 * - ( 61 ) * - 86 * + - 78 * - CASE - ( + 54 ) WHEN + MAX( DISTINCT - 26 ) + - 72 THEN 55 + + 97 END + COUNT( * ) + COALESCE ( 63, 74 + COUNT( * ), + 34 / NULLIF ( + COUNT( * ), 9 + + 96 ) + + 1 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8215
SELECT 48 + 4 - - 82 * - ( 61 ) * - 86 * + - 78 * - CASE - ( + 54 ) WHEN + MAX ( DISTINCT - 26 ) + - 72 THEN 55 + + 97 END + COUNT ( * ) + COALESCE ( 63, 74 + COUNT ( * ), + 34 / NULLIF ( + COUNT ( * ), 9 + + 96 ) + + 1 ) col0
----
NULL

query II rowsort
SELECT 33 AS col0, 69 * - 69
----
33
-4761

query II rowsort
SELECT - 2 AS col2, + 63 * - 34 * 28
----
-2
-59976

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT DISTINCT - COUNT( - 3 ) + - 85 AS col2
----
-86

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - COUNT ( - 3 ) + - 85 AS col2
----
-86

query I rowsort
SELECT ALL 50 + - - 59
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT + + 12 * - SUM( DISTINCT 73 ) AS col0
----
-876

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT + + 12 * - SUM ( DISTINCT 73 ) AS col0
----
-876

query I rowsort
SELECT - - 52 AS col1
----
52

query I rowsort
SELECT - 33 + 89 AS col2
----
56

query I rowsort
SELECT + 62 col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT COUNT( * ) + + 69 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-8224
SELECT COUNT ( * ) + + 69 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT MAX( DISTINCT - 98 )
----
-98

skipif mysql # not compatible
query I rowsort label-8225
SELECT MAX ( DISTINCT - 98 )
----
-98

query I rowsort
SELECT ALL - 88 + 34 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8227
SELECT DISTINCT + 96 AS col1, COUNT( * ) AS col0
----
96
1

skipif mysql # not compatible
query II rowsort label-8227
SELECT DISTINCT + 96 AS col1, COUNT ( * ) AS col0
----
96
1

query II rowsort
SELECT - 80 AS col1, - 85 AS col0
----
-80
-85

query I rowsort
SELECT - 49 + + - 39
----
-88

query I rowsort
SELECT - - 60 col1
----
60

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8231
SELECT + + 47 col0, CAST( NULL AS DECIMAL ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-8231
SELECT + + 47 col0, CAST ( NULL AS REAL ) AS col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT ALL + 61 - - COUNT( * )
----
62

skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL + 61 - - COUNT ( * )
----
62

query I rowsort
SELECT DISTINCT - 44 * - 33
----
1452

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT ALL COUNT( * ) * + - 19 col0
----
-19

skipif mysql # not compatible
query I rowsort label-8234
SELECT ALL COUNT ( * ) * + - 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8235
SELECT DISTINCT 4 - + 12 AS col0, + COUNT( * )
----
-8
1

skipif mysql # not compatible
query II rowsort label-8235
SELECT DISTINCT 4 - + 12 AS col0, + COUNT ( * )
----
-8
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8236
SELECT DISTINCT - COUNT( - 81 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8236
SELECT DISTINCT - COUNT ( - 81 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8237
SELECT ALL - COUNT( - 68 )
----
-1

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL - COUNT ( - 68 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT ALL COUNT( * ) * - + 50 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-8238
SELECT ALL COUNT ( * ) * - + 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT DISTINCT - NULLIF ( + CASE + - 90 WHEN - COUNT( - 55 ) THEN NULL WHEN + + 39 THEN NULL ELSE - 39 * + 53 * - - 32 * + 58 + - 72 * - - COUNT( * ) * 31 + + - 15 + + 63 + - 97 END, + COALESCE ( 9, - 0 ) )
----
3838633

skipif mysql # not compatible
query I rowsort label-8239
SELECT DISTINCT - NULLIF ( + CASE + - 90 WHEN - COUNT ( - 55 ) THEN NULL WHEN + + 39 THEN NULL ELSE - 39 * + 53 * - - 32 * + 58 + - 72 * - - COUNT ( * ) * 31 + + - 15 + + 63 + - 97 END, + COALESCE ( 9, - 0 ) )
----
3838633

query I rowsort
SELECT 58 + + COALESCE ( - 20, 19 + + 83 ) * 66 col0
----
-1262

query I rowsort
SELECT 67 * + + ( - ( 41 ) )
----
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL - 51 + - MIN( 81 ) - - 19 AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - 51 + - MIN ( 81 ) - - 19 AS col1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT DISTINCT COUNT( * ) + 43 * + 0 + - 88
----
-87

skipif mysql # not compatible
query I rowsort label-8243
SELECT DISTINCT COUNT ( * ) + 43 * + 0 + - 88
----
-87

query II rowsort
SELECT 51 - - 96, 23 AS col2
----
147
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8245
SELECT ALL - 24 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + 54 col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8245
SELECT ALL - 24 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 54 col2
----
NULL
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT 57 * - MIN( ALL + + 9 )
----
-513

skipif mysql # not compatible
query I rowsort label-8246
SELECT 57 * - MIN ( ALL + + 9 )
----
-513

query I rowsort
SELECT ALL - 52 + - - 71 + - 0 * - 62
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT ALL + MAX( DISTINCT 28 ) + 22
----
50

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + MAX ( DISTINCT 28 ) + 22
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT + - ( - - CAST( NULL AS SIGNED ) ) * - + 42 * - - 76 + COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) * - + 42 * - - 76 + COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT - CAST( NULL AS SIGNED ) - - - 7 + 11 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT - CAST ( NULL AS INTEGER ) - - - 7 + 11 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8251
SELECT ALL - 92 + + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - + ( 74 ) + + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - 92 + + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - + ( 74 ) + + 87 AS col2
----
NULL

query II rowsort
SELECT - - ( 84 ) AS col0, - 13 AS col2
----
84
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL NULLIF ( - COALESCE ( 32, + - 59 ), ( + NULLIF ( - 5, + ( ( + CASE - + 42 WHEN + SUM( DISTINCT 99 ) THEN NULL ELSE - COALESCE ( - 43, - 18 + + 10 ) END ) ) ) ) ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL NULLIF ( - COALESCE ( 32, + - 59 ), ( + NULLIF ( - 5, + ( ( + CASE - + 42 WHEN + SUM ( DISTINCT 99 ) THEN NULL ELSE - COALESCE ( - 43, - 18 + + 10 ) END ) ) ) ) ) AS col1
----
-32

query I rowsort
SELECT DISTINCT - 18 col2
----
-18

query I rowsort
SELECT DISTINCT - + 97 - - 55 AS col0
----
-42

query I rowsort
SELECT ALL + + 35 * - - 39
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT + COUNT( * ) * - 81 * - - 58
----
-4698

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + COUNT ( * ) * - 81 * - - 58
----
-4698

onlyif mysql # DIV for integer division: 
query I rowsort label-8258
SELECT - 38 * 21 + + 48 + + - 42 DIV + + 70 + - 6
----
-756

skipif mysql # not compatible
query I rowsort label-8258
SELECT - 38 * 21 + + 48 + + - 42 / + + 70 + - 6
----
-756

query I rowsort
SELECT + 74 * + 25 AS col2
----
1850

query I rowsort
SELECT - 13 - + + 6
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8261
SELECT 64 * + 51 * - - 15 + 72 + - + 15 * + - 27 * + 54 * + COALESCE ( - + ( + 71 ), - 66 * + - 53 + + + 45, 4 DIV + 66 ) AS col2
----
-1503738

skipif mysql # not compatible
query I rowsort label-8261
SELECT 64 * + 51 * - - 15 + 72 + - + 15 * + - 27 * + 54 * + COALESCE ( - + ( + 71 ), - 66 * + - 53 + + + 45, 4 / + 66 ) AS col2
----
-1503738

query I rowsort
SELECT DISTINCT - ( - 4 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8263
SELECT COUNT( * ) * - + ( 28 ) * - + 81 * - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8263
SELECT COUNT ( * ) * - + ( 28 ) * - + 81 * - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT ALL - 77, 24 AS col2
----
-77
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT 16 + - COUNT( * ) * - 96 * - COUNT( + + 73 )
----
-80

skipif mysql # not compatible
query I rowsort label-8265
SELECT 16 + - COUNT ( * ) * - 96 * - COUNT ( + + 73 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT DISTINCT ( + - MIN( DISTINCT 18 ) ) * - 98 * - - COALESCE ( - + COALESCE ( - - 13, 27, 6 ), - 91 )
----
-22932

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT ( + - MIN ( DISTINCT 18 ) ) * - 98 * - - COALESCE ( - + COALESCE ( - - 13, 27, 6 ), - 91 )
----
-22932

query I rowsort
SELECT + 44 * + 9
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL + 55 * COUNT( * ) + ( - 49 )
----
6

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL + 55 * COUNT ( * ) + ( - 49 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT SUM( 79 ) col0
----
79

skipif mysql # not compatible
query I rowsort label-8269
SELECT SUM ( 79 ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT SUM( DISTINCT 11 ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-8270
SELECT SUM ( DISTINCT 11 ) AS col2
----
11

query I rowsort
SELECT + COALESCE ( - 98, + + ( - 68 ) ) AS col2
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-8272
SELECT ALL 93 * ( + 39 ) * 49 * - + 88 - + 24 DIV - 67 + - - 78
----
-15639546

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL 93 * ( + 39 ) * 49 * - + 88 - + 24 / - 67 + - - 78
----
-15639546

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT 28 * + 1 + + COUNT( * ) * 4 AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8273
SELECT 28 * + 1 + + COUNT ( * ) * 4 AS col1
----
32

query I rowsort
SELECT DISTINCT ( - 57 ) * + 63 * 61
----
-219051

query I rowsort
SELECT + 90 + 72 AS col0
----
162

query I rowsort
SELECT ALL 80 * - + 8 + + 64 AS col0
----
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT ALL COALESCE ( - 63, + 83 ) * + + 36 + 44 + 11 * + 89 * + + 65 * - COALESCE ( + - COUNT( * ), + - 61, 67 * + MAX( - + 15 ) * - + ( - ( 82 ) ) DIV + 72 + - 28 )
----
61411

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL COALESCE ( - 63, + 83 ) * + + 36 + 44 + 11 * + 89 * + + 65 * - COALESCE ( + - COUNT ( * ), + - 61, 67 * + MAX ( - + 15 ) * - + ( - ( 82 ) ) / + 72 + - 28 )
----
61411

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT( * ) + + 15 END AS col1, 58 * + 6 col1
----
NULL
348

skipif mysql # not compatible
query II rowsort label-8278
SELECT + 1 / CASE + + 26 WHEN - 12 * + 96 THEN + - 18 * + COUNT ( * ) + + 15 END AS col1, 58 * + 6 col1
----
NULL
348

query I rowsort
SELECT ALL 85 + + 22 col1
----
107

query II rowsort
SELECT NULLIF ( - - 62, + 31 ), 30 AS col1
----
62
30

query I rowsort
SELECT + 68 + - + 54 + + - 23 + + 20 + 74 AS col2
----
85

query I rowsort
SELECT ALL CASE 64 WHEN + 89 THEN + - 61 END - - 17 AS col2
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 56, 90 )
----
56

query I rowsort
SELECT - - 99 + 64 * 11 * + + 11 AS col2
----
7843

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT - + MAX( - 45 ) col2
----
45

skipif mysql # not compatible
query I rowsort label-8285
SELECT - + MAX ( - 45 ) col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - COALESCE ( 34, + 38, - COUNT( * ) )
----
-34

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - COALESCE ( 34, + 38, - COUNT ( * ) )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8287
SELECT - + ( CASE - CASE + 80 WHEN - + 61 THEN NULL WHEN - 67 THEN - + COUNT( * ) WHEN 98 * - 21 - + + COALESCE ( - + 99, - + 29 / + COUNT( * ) * - CAST( ( 53 ) AS SIGNED ) + 51, + - 92 / + 57 - - 53 ) THEN - COUNT( * ) * 44 ELSE NULL END WHEN + 10 THEN 49 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8287
SELECT - + ( CASE - CASE + 80 WHEN - + 61 THEN NULL WHEN - 67 THEN - + COUNT ( * ) WHEN 98 * - 21 - + + COALESCE ( - + 99, - + 29 / + COUNT ( * ) * - CAST ( ( 53 ) AS INTEGER ) + 51, + - 92 / + 57 - - 53 ) THEN - COUNT ( * ) * 44 ELSE NULL END WHEN + 10 THEN 49 END ) AS col2
----
NULL

query I rowsort
SELECT + - 55 * 55 AS col0
----
-3025

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT - COUNT( * ) + + + 48 * + 6 * - + 50
----
-14401

skipif mysql # not compatible
query I rowsort label-8289
SELECT - COUNT ( * ) + + + 48 * + 6 * - + 50
----
-14401

query II rowsort
SELECT ALL + 17, 43 AS col1
----
17
43

query I rowsort
SELECT - 98 + - 41 * - + 77 + 49 col1
----
3108

onlyif mysql # aggregate syntax: 
query II rowsort label-8292
SELECT ALL 54, + COUNT( * ) AS col1
----
54
1

skipif mysql # not compatible
query II rowsort label-8292
SELECT ALL 54, + COUNT ( * ) AS col1
----
54
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT - COUNT( * ) + ( - 68 )
----
-69

skipif mysql # not compatible
query I rowsort label-8293
SELECT - COUNT ( * ) + ( - 68 )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL COUNT( DISTINCT - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL COUNT ( DISTINCT - 90 )
----
1

query I rowsort
SELECT DISTINCT - NULLIF ( 44, - + 21 ) + + + 85 col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8296
SELECT DISTINCT CASE + + 96 WHEN - 45 - 17 THEN - 0 * + 77 + + 28 / - - 40 + + MAX( ALL + CASE + 13 WHEN + - ( - 78 ) * 98 * 51 THEN ( + + 41 ) WHEN + - 35 THEN NULL END ) + + - NULLIF ( 15, - NULLIF ( CASE CAST( NULL AS SIGNED ) WHEN SUM( ALL CAST( NULL AS SIGNED ) ) THEN 30 + + 63 * + 43 END, 90 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT CASE + + 96 WHEN - 45 - 17 THEN - 0 * + 77 + + 28 / - - 40 + + MAX ( ALL + CASE + 13 WHEN + - ( - 78 ) * 98 * 51 THEN ( + + 41 ) WHEN + - 35 THEN NULL END ) + + - NULLIF ( 15, - NULLIF ( CASE CAST ( NULL AS INTEGER ) WHEN SUM ( ALL CAST ( NULL AS INTEGER ) ) THEN 30 + + 63 * + 43 END, 90 ) ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT ALL 92 + - 51 DIV - 79
----
92

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL 92 + - 51 / - 79
----
92

query I rowsort
SELECT - 98 + 72 * + - 35
----
-2618

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT DISTINCT - 44 DIV - 16 + + - 23 * - + 82 AS col0
----
1888

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT - 44 / - 16 + + - 23 * - + 82 AS col0
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8300
SELECT - 44 DIV + CAST( + CASE + + 17 WHEN - ( - COUNT( * ) ) * 39 + 58 THEN - + CAST( - COUNT( * ) AS SIGNED ) ELSE - COUNT( * ) * 15 END AS SIGNED ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8300
SELECT - 44 / + CAST ( + CASE + + 17 WHEN - ( - COUNT ( * ) ) * 39 + 58 THEN - + CAST ( - COUNT ( * ) AS INTEGER ) ELSE - COUNT ( * ) * 15 END AS INTEGER ) AS col2
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8301
SELECT ALL + 11 DIV - 82 + + 84
----
84

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL + 11 / - 82 + + 84
----
84

query I rowsort
SELECT ( 90 )
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-8303
SELECT ( 94 ) AS col0, + COUNT( * ) col0
----
94
1

skipif mysql # not compatible
query II rowsort label-8303
SELECT ( 94 ) AS col0, + COUNT ( * ) col0
----
94
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT ALL 26 DIV + 37 + 75 AS col0
----
75

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL 26 / + 37 + 75 AS col0
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8305
SELECT - 14 DIV COUNT( ALL + 31 )
----
-14

skipif mysql # not compatible
query I rowsort label-8305
SELECT - 14 / COUNT ( ALL + 31 )
----
-14

query I rowsort
SELECT ALL - COALESCE ( - + 93, 95 ) * + 19 + 55 + 49 + 84
----
1955

query II rowsort
SELECT - CASE + 97 WHEN 46 THEN 33 END * 10, + 90 AS col1
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL 70 * + 91 + + 33 + + 93 + + ( - 21 ) * + 74 * + COUNT( * ) AS col1
----
4942

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL 70 * + 91 + + 33 + + 93 + + ( - 21 ) * + 74 * + COUNT ( * ) AS col1
----
4942

query I rowsort
SELECT ( + 38 )
----
38

query I rowsort
SELECT ( 42 ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT + COUNT( ALL + 75 ) * - 52 + 26
----
-26

skipif mysql # not compatible
query I rowsort label-8311
SELECT + COUNT ( ALL + 75 ) * - 52 + 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT + MIN( DISTINCT - 14 ) col1
----
-14

skipif mysql # not compatible
query I rowsort label-8312
SELECT + MIN ( DISTINCT - 14 ) col1
----
-14

onlyif mysql # DIV for integer division: 
query II rowsort label-8313
SELECT + ( + 50 ) AS col1, 18 DIV + + NULLIF ( - 67, + 98 * 24 + 8 )
----
50
0

skipif mysql # not compatible
query II rowsort label-8313
SELECT + ( + 50 ) AS col1, 18 / + + NULLIF ( - 67, + 98 * 24 + 8 )
----
50
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT DISTINCT + 33 * - + 34 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + 33 * - + 34 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT ALL + CAST( NULL AS SIGNED ) * + 1 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL + CAST ( NULL AS INTEGER ) * + 1 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8316
SELECT + COALESCE ( - ( + - ( SUM( + 66 ) ) ), - + CAST( 34 AS SIGNED ) ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8316
SELECT + COALESCE ( - ( + - ( SUM ( + 66 ) ) ), - + CAST ( 34 AS INTEGER ) ) AS col2
----
66

query II rowsort
SELECT ALL ( - 58 ), - 10 AS col1
----
-58
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT + - 76 + - - 18 + NULLIF ( 48, - 60 - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-8318
SELECT + - 76 + - - 18 + NULLIF ( 48, - 60 - COUNT ( * ) )
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT + + 95 - - 61 + - - 19 * + + COUNT( * ) + - CAST( - - 8 AS SIGNED )
----
167

skipif mysql # not compatible
query I rowsort label-8319
SELECT + + 95 - - 61 + - - 19 * + + COUNT ( * ) + - CAST ( - - 8 AS INTEGER )
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT - COUNT( * ) * + - ( - 9 ) * - + MIN( ALL - 46 ) AS col1
----
-414

skipif mysql # not compatible
query I rowsort label-8320
SELECT - COUNT ( * ) * + - ( - 9 ) * - + MIN ( ALL - 46 ) AS col1
----
-414

query I rowsort
SELECT ALL - 24 * - 62
----
1488

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8322
SELECT ALL - COALESCE ( + + 77, + + ( COUNT( * ) ) DIV + COUNT( * ), 21, - 84 ) DIV + + 58
----
-1

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - COALESCE ( + + 77, + + ( COUNT ( * ) ) / + COUNT ( * ), 21, - 84 ) / + + 58
----
-1

query I rowsort
SELECT ALL + + 63 + + 58
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8324
SELECT DISTINCT 88 * ( - - MAX( - 34 ) ) DIV + 20
----
-149

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT 88 * ( - - MAX ( - 34 ) ) / + 20
----
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT - 98 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT - 98 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT ALL - ( + + 48 ) + 97 + 44 + - 7 + + ( NULLIF ( - - 22, - - NULLIF ( 63, + COUNT( * ) * ( ( - 73 ) ) ) ) ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL - ( + + 48 ) + 97 + 44 + - 7 + + ( NULLIF ( - - 22, - - NULLIF ( 63, + COUNT ( * ) * ( ( - 73 ) ) ) ) ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-8327
SELECT ( + COUNT( * ) ) - + 48 + - 85 + 61 AS col1, - 44 + - MIN( + 22 ) AS col0
----
-71
-66

skipif mysql # not compatible
query II rowsort label-8327
SELECT ( + COUNT ( * ) ) - + 48 + - 85 + 61 AS col1, - 44 + - MIN ( + 22 ) AS col0
----
-71
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT 30 AS col2, 46 + + 45 * - + 46 * - COUNT( * )
----
30
2116

skipif mysql # not compatible
query II rowsort label-8328
SELECT 30 AS col2, 46 + + 45 * - + 46 * - COUNT ( * )
----
30
2116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT DISTINCT CASE - 24 WHEN + + NULLIF ( - 96, + 32 ) THEN - - 54 * 83 + - + MAX( DISTINCT - 80 ) + 92 + - COUNT( * ) ELSE - 67 + - 15 END + - 68 DIV + 6 + 33 + 90 * + - 82 * 22 AS col1
----
-162420

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT CASE - 24 WHEN + + NULLIF ( - 96, + 32 ) THEN - - 54 * 83 + - + MAX ( DISTINCT - 80 ) + 92 + - COUNT ( * ) ELSE - 67 + - 15 END + - 68 / + 6 + 33 + 90 * + - 82 * 22 AS col1
----
-162420

query I rowsort
SELECT 51 + + ( - 55 )
----
-4

query I rowsort
SELECT ALL ( - - 10 ) + - + 94 col0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-8332
SELECT DISTINCT - 90 AS col0, 62 + - 20 DIV ( + - 8 )
----
-90
64

skipif mysql # not compatible
query II rowsort label-8332
SELECT DISTINCT - 90 AS col0, 62 + - 20 / ( + - 8 )
----
-90
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8333
SELECT COALESCE ( ( - COALESCE ( - + 29, 14 DIV + 7 ) ), + 50 * - 28, - + COUNT( 93 ) ) * COALESCE ( + + 5, - MAX( ALL + 73 ), - + COALESCE ( - 18, + COALESCE ( + + COUNT( * ), + 46 ) - - + NULLIF ( - COALESCE ( - 15, + 7 ), + 38 * 29 + 9 ) ) * ( - 54 ) ) + 73
----
218

skipif mysql # not compatible
query I rowsort label-8333
SELECT COALESCE ( ( - COALESCE ( - + 29, 14 / + 7 ) ), + 50 * - 28, - + COUNT ( 93 ) ) * COALESCE ( + + 5, - MAX ( ALL + 73 ), - + COALESCE ( - 18, + COALESCE ( + + COUNT ( * ), + 46 ) - - + NULLIF ( - COALESCE ( - 15, + 7 ), + 38 * 29 + 9 ) ) * ( - 54 ) ) + 73
----
218

onlyif mysql # DIV for integer division: 
query I rowsort label-8334
SELECT ALL - 92 DIV - 73 col1
----
1

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL - 92 / - 73 col1
----
1

query I rowsort
SELECT 51 + 22 AS col1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8336
SELECT NULLIF ( - + 95, + + 33 ) DIV - 44 + - - 23 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8336
SELECT NULLIF ( - + 95, + + 33 ) / - 44 + - - 23 AS col2
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8337
SELECT ALL - 66 - 99 + - 11 AS col2, COUNT( * ) * - - 30 AS col0
----
-176
30

skipif mysql # not compatible
query II rowsort label-8337
SELECT ALL - 66 - 99 + - 11 AS col2, COUNT ( * ) * - - 30 AS col0
----
-176
30

query I rowsort
SELECT 57 * - + 25 AS col0
----
-1425

query I rowsort
SELECT + 59 * + 6 + + 58
----
412

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT + 50 * 54 + 21 + + 87 * + + 33 * CAST( NULL AS SIGNED ) + COUNT( DISTINCT - ( + 42 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8340
SELECT + 50 * 54 + 21 + + 87 * + + 33 * CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT - ( + 42 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8341
SELECT + CASE + - 64 WHEN - ( 58 ) THEN - 45 * 31 WHEN - 18 + - 52 THEN NULL ELSE NULL END + - COALESCE ( + - COUNT( * ), + - CAST( - - 29 AS DECIMAL ) * + COUNT( * ) + - - 27 * - 75 + - + CAST( 37 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT + CASE + - 64 WHEN - ( 58 ) THEN - 45 * 31 WHEN - 18 + - 52 THEN NULL ELSE NULL END + - COALESCE ( + - COUNT ( * ), + - CAST ( - - 29 AS REAL ) * + COUNT ( * ) + - - 27 * - 75 + - + CAST ( 37 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT - 77 DIV - 8 + + 8
----
17

skipif mysql # not compatible
query I rowsort label-8342
SELECT - 77 / - 8 + + 8
----
17

query I rowsort
SELECT ALL - + 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT - 15 * COUNT( * ) + 98 * - ( + 41 ) - + 20 + + + 1 + - 76 AS col2
----
-4128

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 15 * COUNT ( * ) + 98 * - ( + 41 ) - + 20 + + + 1 + - 76 AS col2
----
-4128

query I rowsort
SELECT DISTINCT - + 69 col1
----
-69

query I rowsort
SELECT DISTINCT + 85 col0
----
85

query I rowsort
SELECT ALL - 28 * 96 + - 96 + + + 60 * 48
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT + 66 + - 94 + 50 + - CAST( NULL AS SIGNED ) * + AVG ( ALL - 7 ) * - 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8348
SELECT + 66 + - 94 + 50 + - CAST ( NULL AS INTEGER ) * + AVG ( ALL - 7 ) * - 59 AS col2
----
NULL

query II rowsort
SELECT - 44 AS col1, - 56
----
-44
-56

query I rowsort
SELECT ALL - 84 * - - 52 + 60
----
-4308

query I rowsort
SELECT ALL 33 + - 16
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL - ( - - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8352
SELECT ALL - ( - - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8353
SELECT DISTINCT - COUNT( * ) + + 39 - + + 43 DIV - + 74 - + 28 - - ( 47 ) DIV - 48 * 26 AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - COUNT ( * ) + + 39 - + + 43 / - + 74 - + 28 - - ( 47 ) / - 48 * 26 AS col2
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8354
SELECT - 60 DIV 82 + + 97 * - + ( + NULLIF ( COUNT( DISTINCT - + 65 ), 70 ) ) * + + 88 + 12 AS col1, 85 + 52 col0
----
-8524
137

skipif mysql # not compatible
query II rowsort label-8354
SELECT - 60 / 82 + + 97 * - + ( + NULLIF ( COUNT ( DISTINCT - + 65 ), 70 ) ) * + + 88 + 12 AS col1, 85 + 52 col0
----
-8524
137

query I rowsort
SELECT 61 + 37 * - ( + + 30 ) * 64 + + + 17
----
-70962

query I rowsort
SELECT 71 + + 13 AS col0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8357
SELECT ALL 33 + - CAST( 79 AS SIGNED ) * + - COUNT( * ) col2, + CAST( - - 41 AS SIGNED )
----
112
41

skipif mysql # not compatible
query II rowsort label-8357
SELECT ALL 33 + - CAST ( 79 AS INTEGER ) * + - COUNT ( * ) col2, + CAST ( - - 41 AS INTEGER )
----
112
41

query I rowsort
SELECT NULLIF ( + 41, - 31 ) + + + 38 AS col1
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT ALL COALESCE ( - 59, + 86 ) + - - CASE - + ( - 11 ) WHEN - 97 * + + 88 + - CASE - - MAX( - 89 ) WHEN - + 98 * 79 THEN - 67 * 98 ELSE NULL END + + - ( - 92 ) * - COUNT( * ) THEN - 49 + - 64 * + - 65 DIV + 99 ELSE + 78 * 97 END + 38 DIV - MAX( ALL 28 ) AS col2
----
7506

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL COALESCE ( - 59, + 86 ) + - - CASE - + ( - 11 ) WHEN - 97 * + + 88 + - CASE - - MAX ( - 89 ) WHEN - + 98 * 79 THEN - 67 * 98 ELSE NULL END + + - ( - 92 ) * - COUNT ( * ) THEN - 49 + - 64 * + - 65 / + 99 ELSE + 78 * 97 END + 38 / - MAX ( ALL 28 ) AS col2
----
7506

query I rowsort
SELECT ALL - 97 + - - 28 AS col1
----
-69

query I rowsort
SELECT ALL + 33 - 88 + 44
----
-11

query I rowsort
SELECT ALL 73 * 90
----
6570

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT 77 + - COALESCE ( 9, COUNT( * ), - 65 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-8363
SELECT 77 + - COALESCE ( 9, COUNT ( * ), - 65 ) AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT ALL 62 * 34 - - + 78 + - COUNT( * ) - 72 col0
----
2113

skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL 62 * 34 - - + 78 + - COUNT ( * ) - 72 col0
----
2113

query I rowsort
SELECT + 86 col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT MAX( ALL + - ( 34 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8366
SELECT MAX ( ALL + - ( 34 ) ) AS col1
----
-34

query I rowsort
SELECT 2 * + 38 AS col2
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8368
SELECT DISTINCT - 37 AS col0, - CAST( NULL AS SIGNED )
----
-37
NULL

skipif mysql # not compatible
query II rowsort label-8368
SELECT DISTINCT - 37 AS col0, - CAST ( NULL AS INTEGER )
----
-37
NULL

query I rowsort
SELECT ALL - ( + 36 ) AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT COUNT( ALL + 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8370
SELECT COUNT ( ALL + 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT ALL - COUNT( * ), - 45 + - 46 AS col2
----
-1
-91

skipif mysql # not compatible
query II rowsort label-8371
SELECT ALL - COUNT ( * ), - 45 + - 46 AS col2
----
-1
-91

query II rowsort
SELECT + 49 AS col2, + 5 + 84 + + - 52
----
49
37

query I rowsort
SELECT - 48 * + + 26 AS col2
----
-1248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8374
SELECT DISTINCT - - 18 AS col0, COUNT( ALL - 67 ) * - - 45 * - + 70 - - + 15 / - - 29 / - COUNT( * ) + + ( - - 59 ) - 39 + 66 + + CASE - + COUNT( * ) WHEN + CASE WHEN NOT NULL <> COUNT( * ) THEN - CAST( NULL AS SIGNED ) END * + COUNT( * ) * - 45 / + CAST( NULL AS SIGNED ) / + 26 THEN - 13 WHEN + COUNT( * ) THEN NULL END * CAST( - ( 82 ) + + 48 AS SIGNED ) * 85
----
18
NULL

skipif mysql # not compatible
query II rowsort label-8374
SELECT DISTINCT - - 18 AS col0, COUNT ( ALL - 67 ) * - - 45 * - + 70 - - + 15 / - - 29 / - COUNT ( * ) + + ( - - 59 ) - 39 + 66 + + CASE - + COUNT ( * ) WHEN + CASE WHEN NOT NULL <> COUNT ( * ) THEN - CAST ( NULL AS INTEGER ) END * + COUNT ( * ) * - 45 / + CAST ( NULL AS INTEGER ) / + 26 THEN - 13 WHEN + COUNT ( * ) THEN NULL END * CAST ( - ( 82 ) + + 48 AS INTEGER ) * 85
----
18
NULL

query I rowsort
SELECT + - 57 AS col2
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT - MIN( - 37 ) AS col1
----
37

skipif mysql # not compatible
query I rowsort label-8376
SELECT - MIN ( - 37 ) AS col1
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT + - 31 * 40 + + + 30 DIV - - 44 AS col2
----
-1240

skipif mysql # not compatible
query I rowsort label-8377
SELECT + - 31 * 40 + + + 30 / - - 44 AS col2
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT NULLIF ( - 46, + CASE COUNT( * ) WHEN 74 * + + 66 * + 60 + 56 - + COUNT( * ) THEN - - 50 WHEN - 56 THEN NULL END ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8378
SELECT NULLIF ( - 46, + CASE COUNT ( * ) WHEN 74 * + + 66 * + 60 + 56 - + COUNT ( * ) THEN - - 50 WHEN - 56 THEN NULL END ) AS col2
----
-46

query I rowsort
SELECT + NULLIF ( - - 35, ( - 2 ) + - - 68 ) * + 7 + + 23
----
268

query I rowsort
SELECT + 84 + - ( + 5 ) AS col0
----
79

query II rowsort
SELECT + 77, - 8 col1
----
77
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL - + CAST( - - 71 AS SIGNED ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL - + CAST ( - - 71 AS INTEGER ) AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT 95 * SUM( ALL 44 )
----
4180

skipif mysql # not compatible
query I rowsort label-8383
SELECT 95 * SUM ( ALL 44 )
----
4180

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT NULLIF ( 4, + 75 * + 19 + - 68 + 22 ) DIV - 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8384
SELECT NULLIF ( 4, + 75 * + 19 + - 68 + 22 ) / - 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL + + CASE + + ( + + 4 ) WHEN + MAX( DISTINCT - 84 ) * + + 96 THEN - + MIN( DISTINCT + + 60 ) WHEN 30 THEN COALESCE ( + + 66, + 75 * + COALESCE ( + - 71, + - COUNT( DISTINCT - + 91 ) ), - + NULLIF ( + + COALESCE ( 18, - COUNT( * ) * 5, - 48 + 77 ), + 25 ) ) ELSE 67 END + 57
----
124

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL + + CASE + + ( + + 4 ) WHEN + MAX ( DISTINCT - 84 ) * + + 96 THEN - + MIN ( DISTINCT + + 60 ) WHEN 30 THEN COALESCE ( + + 66, + 75 * + COALESCE ( + - 71, + - COUNT ( DISTINCT - + 91 ) ), - + NULLIF ( + + COALESCE ( 18, - COUNT ( * ) * 5, - 48 + 77 ), + 25 ) ) ELSE 67 END + 57
----
124

query I rowsort
SELECT - 50 * + - 4 * - 87 * 51 * + 34 + - 85
----
-30171685

query II rowsort
SELECT DISTINCT + + 67 + 1, - 44 AS col1
----
68
-44

query I rowsort
SELECT ALL + - CASE + ( + 85 ) WHEN + 10 / + + 93 THEN + 40 END + - 49
----
NULL

query I rowsort
SELECT ALL 21 + 5 AS col0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8390
SELECT COUNT( * ) * 3, + CASE - - 59 WHEN + ( - - 99 ) THEN 98 ELSE 48 END * - 71 - ( + - CAST( NULL AS SIGNED ) ) AS col0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8390
SELECT COUNT ( * ) * 3, + CASE - - 59 WHEN + ( - - 99 ) THEN 98 ELSE 48 END * - 71 - ( + - CAST ( NULL AS INTEGER ) ) AS col0
----
3
NULL

query II rowsort
SELECT DISTINCT - - 79 + + - 62 col0, + 56 AS col1
----
17
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8392
SELECT + - 36 DIV - 2
----
18

skipif mysql # not compatible
query I rowsort label-8392
SELECT + - 36 / - 2
----
18

query I rowsort
SELECT + 18 - + 55 + 71
----
34

query I rowsort
SELECT - 63 * - 41 * + 33 AS col0
----
85239

query I rowsort
SELECT DISTINCT 92 + - 40 * + 72 * 22 + - - 65 + - 94 AS col0
----
-63297

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - 98 + - - 99 * - COUNT( * )
----
-197

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 98 + - - 99 * - COUNT ( * )
----
-197

query I rowsort
SELECT ALL 27 - 8
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT DISTINCT + SUM( - 1 ) * + 3 * - 93 - - 46
----
325

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + SUM ( - 1 ) * + 3 * - 93 - - 46
----
325

query I rowsort
SELECT ALL COALESCE ( - - 55, + 2 * + 18 + + - COALESCE ( - 43, - - 29, + + 7 + + ( + 74 ) ) + 6 + + 5 * + 97 ) AS col2
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8400
SELECT + 9 - 41 * + 61 + CASE - 14 WHEN + + 1 + - 27 THEN - CAST( + + 23 AS SIGNED ) WHEN 79 / 1 + MAX( DISTINCT + ( 79 ) ) * - 96 - + + 71 THEN NULL ELSE NULL END + + 35 * - 49 * - ( - + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8400
SELECT + 9 - 41 * + 61 + CASE - 14 WHEN + + 1 + - 27 THEN - CAST ( + + 23 AS INTEGER ) WHEN 79 / 1 + MAX ( DISTINCT + ( 79 ) ) * - 96 - + + 71 THEN NULL ELSE NULL END + + 35 * - 49 * - ( - + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT - MAX( ALL 55 ) + 12 AS col0
----
-43

skipif mysql # not compatible
query I rowsort label-8401
SELECT - MAX ( ALL 55 ) + 12 AS col0
----
-43

query I rowsort
SELECT - 55 + + - 38 * - 88 * + 48
----
160457

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT + 55 * - + COUNT( * ) * - SUM( ALL 59 )
----
3245

skipif mysql # not compatible
query I rowsort label-8403
SELECT + 55 * - + COUNT ( * ) * - SUM ( ALL 59 )
----
3245

onlyif mysql # aggregate syntax: 
query II rowsort label-8404
SELECT + COUNT( * ) + - + 61 AS col1, + 47 - - ( 4 )
----
-60
51

skipif mysql # not compatible
query II rowsort label-8404
SELECT + COUNT ( * ) + - + 61 AS col1, + 47 - - ( 4 )
----
-60
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT + CAST( NULL AS SIGNED ) + - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8405
SELECT + CAST ( NULL AS INTEGER ) + - 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT ALL NULLIF ( + CASE 18 WHEN + COUNT( * ) + + - 41 THEN - 97 + + 19 END, - 86 ) * - COALESCE ( - - 57, - 78 / 74, + CASE - 22 WHEN - - 89 + COUNT( ALL + + 72 ) THEN + - COUNT( * ) * + 58 + - ( + 29 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL NULLIF ( + CASE 18 WHEN + COUNT ( * ) + + - 41 THEN - 97 + + 19 END, - 86 ) * - COALESCE ( - - 57, - 78 / 74, + CASE - 22 WHEN - - 89 + COUNT ( ALL + + 72 ) THEN + - COUNT ( * ) * + 58 + - ( + 29 ) END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8407
SELECT DISTINCT 25 DIV 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT 25 / 30 AS col2
----
0

query I rowsort
SELECT + + 63 + 24 * + - 33
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL + 52 * - COUNT( * )
----
-52

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + 52 * - COUNT ( * )
----
-52

query I rowsort
SELECT - - 83 + - 87
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT + + NULLIF ( + + CAST( NULL AS SIGNED ), + + 29 * ( - 63 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + + NULLIF ( + + CAST ( NULL AS INTEGER ), + + 29 * ( - 63 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT ALL - - COUNT( * ) * + NULLIF ( - 17, + + 58 - + 99 ) + + + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - - COUNT ( * ) * + NULLIF ( - 17, + + 58 - + 99 ) + + + 17 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8413
SELECT - - 84 / + 28 + + CASE - + 35 WHEN - 43 * - 80 + 95 + 33 - + 14 + + 31 * - 30 THEN + CAST( NULL AS DECIMAL ) / CASE - 74 WHEN 59 THEN NULL WHEN + 84 * - COUNT( * ) / - COALESCE ( - + CASE - 46 WHEN 94 THEN + 83 ELSE NULL END, - CASE - ( 20 ) WHEN 57 THEN NULL ELSE AVG ( ALL + 99 ) + + 70 END ) * 51 + ( - 4 ) THEN NULL WHEN CAST( NULL AS DECIMAL ) + AVG ( ALL CAST( NULL AS SIGNED ) ) THEN + 84 + - 10 * - 88 ELSE - 50 + - CASE + 94 + 51 WHEN 45 * 94 THEN - MIN( 59 ) * 54 WHEN + 17 THEN + 5 ELSE NULL END END END * 74 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT - - 84 / + 28 + + CASE - + 35 WHEN - 43 * - 80 + 95 + 33 - + 14 + + 31 * - 30 THEN + CAST ( NULL AS REAL ) / CASE - 74 WHEN 59 THEN NULL WHEN + 84 * - COUNT ( * ) / - COALESCE ( - + CASE - 46 WHEN 94 THEN + 83 ELSE NULL END, - CASE - ( 20 ) WHEN 57 THEN NULL ELSE AVG ( ALL + 99 ) + + 70 END ) * 51 + ( - 4 ) THEN NULL WHEN CAST ( NULL AS REAL ) + AVG ( ALL CAST ( NULL AS INTEGER ) ) THEN + 84 + - 10 * - 88 ELSE - 50 + - CASE + 94 + 51 WHEN 45 * 94 THEN - MIN ( 59 ) * 54 WHEN + 17 THEN + 5 ELSE NULL END END END * 74 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8414
SELECT - 56 * + - ( - + NULLIF ( 25, 15 ) ) + + ( COUNT( * ) ) AS col0, COUNT( * )
----
-1399
1

skipif mysql # not compatible
query II rowsort label-8414
SELECT - 56 * + - ( - + NULLIF ( 25, 15 ) ) + + ( COUNT ( * ) ) AS col0, COUNT ( * )
----
-1399
1

query I rowsort
SELECT + - ( + + 11 ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8416
SELECT - CAST( + - 65 AS SIGNED ) + - 62 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8416
SELECT - CAST ( + - 65 AS INTEGER ) + - 62 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT - 98 * + 48 * - - CAST( NULL AS SIGNED ) * - 4 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT - 98 * + 48 * - - CAST ( NULL AS INTEGER ) * - 4 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8418
SELECT DISTINCT + COALESCE ( + 12, - 45 ) * + COUNT( * ) * + - SUM( - 89 ) AS col0, + 60 AS col2
----
1068
60

skipif mysql # not compatible
query II rowsort label-8418
SELECT DISTINCT + COALESCE ( + 12, - 45 ) * + COUNT ( * ) * + - SUM ( - 89 ) AS col0, + 60 AS col2
----
1068
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT ALL CAST( - 61 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-8419
SELECT ALL CAST ( - 61 AS INTEGER )
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT COUNT( * ) col1, 67 + - ( COUNT( * ) ) col0
----
1
66

skipif mysql # not compatible
query II rowsort label-8420
SELECT COUNT ( * ) col1, 67 + - ( COUNT ( * ) ) col0
----
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT CAST( - - 46 AS SIGNED ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT CAST ( - - 46 AS INTEGER ) AS col2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT - NULLIF ( + + 24, - CAST( - 66 AS SIGNED ) - COALESCE ( + - 93, - - 64, NULLIF ( 58, + 54 + 94 ) ) + + 21 ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-8422
SELECT - NULLIF ( + + 24, - CAST ( - 66 AS INTEGER ) - COALESCE ( + - 93, - - 64, NULLIF ( 58, + 54 + 94 ) ) + + 21 ) AS col2
----
-24

query I rowsort
SELECT DISTINCT + 62 * + 36
----
2232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8424
SELECT - COALESCE ( + ( + 14 ), + COUNT( * ) - + 94 + - 28 DIV + + CASE + 94 WHEN 96 THEN - - 23 WHEN 5 * - + 92 + + 8 + + - 46 * - 86 DIV + 78 * + - 20 * + 58 + + 28 THEN NULL END, - ( + - 35 ), - 26 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8424
SELECT - COALESCE ( + ( + 14 ), + COUNT ( * ) - + 94 + - 28 / + + CASE + 94 WHEN 96 THEN - - 23 WHEN 5 * - + 92 + + 8 + + - 46 * - 86 / + 78 * + - 20 * + 58 + + 28 THEN NULL END, - ( + - 35 ), - 26 ) AS col1
----
-14

query I rowsort
SELECT ALL + 44 * + + 20
----
880

query II rowsort
SELECT ALL 66 AS col1, - 69
----
66
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - + COUNT( * ) * 55
----
-55

skipif mysql # not compatible
query I rowsort label-8427
SELECT - + COUNT ( * ) * 55
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT + CAST( + 53 AS SIGNED ) * 12 col1
----
636

skipif mysql # not compatible
query I rowsort label-8428
SELECT + CAST ( + 53 AS INTEGER ) * 12 col1
----
636

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT + SUM( ALL + + 52 )
----
52

skipif mysql # not compatible
query I rowsort label-8429
SELECT + SUM ( ALL + + 52 )
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8430
SELECT + 23 * - CAST( - 47 AS SIGNED ) AS col0, MIN( 53 )
----
1081
53

skipif mysql # not compatible
query II rowsort label-8430
SELECT + 23 * - CAST ( - 47 AS INTEGER ) AS col0, MIN ( 53 )
----
1081
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT + - COUNT( * ) DIV - 30 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8431
SELECT + - COUNT ( * ) / - 30 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8432
SELECT DISTINCT - COUNT( * ) DIV - + 51 * + 36 + - 16 + + NULLIF ( + COUNT( * ), - SUM( ALL - 75 ) ) AS col0, - 70 DIV + MAX( DISTINCT + - 35 )
----
-15
2

skipif mysql # not compatible
query II rowsort label-8432
SELECT DISTINCT - COUNT ( * ) / - + 51 * + 36 + - 16 + + NULLIF ( + COUNT ( * ), - SUM ( ALL - 75 ) ) AS col0, - 70 / + MAX ( DISTINCT + - 35 )
----
-15
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL 43 * + MAX( 21 ) AS col2
----
903

skipif mysql # not compatible
query I rowsort label-8433
SELECT ALL 43 * + MAX ( 21 ) AS col2
----
903

query I rowsort
SELECT DISTINCT - + 47
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8435
SELECT 41 DIV + 87 * 86 + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8435
SELECT 41 / + 87 * 86 + ( - COUNT ( * ) ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT 68 * + COUNT( + 20 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-8436
SELECT 68 * + COUNT ( + 20 ) col2
----
68

query I rowsort
SELECT ALL 70 - + 3 * - + ( - 86 ) + - 95 AS col1
----
-283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT ALL 9 * NULLIF ( CAST( NULL AS SIGNED ), - + 23 ) * + 1
----
NULL

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL 9 * NULLIF ( CAST ( NULL AS INTEGER ), - + 23 ) * + 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - SUM( ALL + 24 ) - - 61 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8439
SELECT - SUM ( ALL + 24 ) - - 61 AS col2
----
37

query I rowsort
SELECT ALL - ( - + 15 ) col2
----
15

query I rowsort
SELECT 61 * - + 94
----
-5734

query I rowsort
SELECT ALL - 38 * 29 AS col1
----
-1102

query I rowsort
SELECT 80 * 6 AS col0
----
480

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT ALL 50 * COUNT( * ) * + ( 75 ) * 8 * + 43 AS col0
----
1290000

skipif mysql # not compatible
query I rowsort label-8444
SELECT ALL 50 * COUNT ( * ) * + ( 75 ) * 8 * + 43 AS col0
----
1290000

query I rowsort
SELECT ( + 14 ) - - + 46
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8446
SELECT 70 DIV + ( + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-8446
SELECT 70 / + ( + 93 )
----
0

query I rowsort
SELECT ALL 14 * + 11
----
154

query I rowsort
SELECT 76 * + 18
----
1368

query I rowsort
SELECT DISTINCT 49 * 74
----
3626

onlyif mysql # aggregate syntax: 
query II rowsort label-8450
SELECT ALL - ( + 21 ) + + ( + 53 ) + 48, - COUNT( DISTINCT 1 ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-8450
SELECT ALL - ( + 21 ) + + ( + 53 ) + 48, - COUNT ( DISTINCT 1 ) AS col1
----
80
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-8451
SELECT 2 - - 39 + - - COUNT( * ) * COUNT( * ) + - 38 * SUM( ALL + + CAST( + 86 AS SIGNED ) ) * - 81 AS col1, + SUM( - CASE - - 32 WHEN - 53 THEN - 59 WHEN - + 66 * + 48 THEN + - 86 END ) AS col2, 28 * - + MIN( 83 )
----
264750
NULL
-2324

skipif mysql # not compatible
query III rowsort label-8451
SELECT 2 - - 39 + - - COUNT ( * ) * COUNT ( * ) + - 38 * SUM ( ALL + + CAST ( + 86 AS INTEGER ) ) * - 81 AS col1, + SUM ( - CASE - - 32 WHEN - 53 THEN - 59 WHEN - + 66 * + 48 THEN + - 86 END ) AS col2, 28 * - + MIN ( 83 )
----
264750
NULL
-2324

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8452
SELECT ALL - 85 DIV 29 AS col1, COUNT( 9 ) * 90 + + NULLIF ( + SUM( ALL 42 ), 34 )
----
-2
132

skipif mysql # not compatible
query II rowsort label-8452
SELECT ALL - 85 / 29 AS col1, COUNT ( 9 ) * 90 + + NULLIF ( + SUM ( ALL 42 ), 34 )
----
-2
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8453
SELECT COUNT( * ) * + COUNT( * ) - + CAST( NULL AS SIGNED ) - - 86 * + + 12 + - 96 * + COALESCE ( 88, ( 23 ) ) * COALESCE ( - 61, - + 32 + + 57, + + CAST( + - COALESCE ( - 77, 32 ) AS SIGNED ) + - - COUNT( * ) ) + COUNT( * ) AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8453
SELECT COUNT ( * ) * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) - - 86 * + + 12 + - 96 * + COALESCE ( 88, ( 23 ) ) * COALESCE ( - 61, - + 32 + + 57, + + CAST ( + - COALESCE ( - 77, 32 ) AS INTEGER ) + - - COUNT ( * ) ) + COUNT ( * ) AS col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT ALL - 61 + + - SUM( + + 75 ) * + - 51 * + 69 AS col2
----
263864

skipif mysql # not compatible
query I rowsort label-8454
SELECT ALL - 61 + + - SUM ( + + 75 ) * + - 51 * + 69 AS col2
----
263864

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT ALL MAX( 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL MAX ( 78 ) AS col0
----
78

query I rowsort
SELECT ALL - 11 * + ( - - 61 ) AS col2
----
-671

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT + - COALESCE ( - COUNT( * ), - 62 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT + - COALESCE ( - COUNT ( * ), - 62 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8458
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT MAX( + 51 )
----
51

skipif mysql # not compatible
query I rowsort label-8459
SELECT MAX ( + 51 )
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8460
SELECT + CAST( NULL AS SIGNED ) * + 21 + - 85 + + - COUNT( * ) / - COALESCE ( + + 62, MIN( ALL + - 29 ) + 77 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT + CAST ( NULL AS INTEGER ) * + 21 + - 85 + + - COUNT ( * ) / - COALESCE ( + + 62, MIN ( ALL + - 29 ) + 77 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8461
SELECT ALL 54 - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL 54 - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8462
SELECT CASE + MAX( 57 ) WHEN - 19 THEN - - 1 WHEN - 25 * + 49 THEN + - 35 ELSE 45 DIV + + 1 + - 96 END * - 45 * - + 13 AS col1
----
-29835

skipif mysql # not compatible
query I rowsort label-8462
SELECT CASE + MAX ( 57 ) WHEN - 19 THEN - - 1 WHEN - 25 * + 49 THEN + - 35 ELSE 45 / + + 1 + - 96 END * - 45 * - + 13 AS col1
----
-29835

query I rowsort
SELECT ALL - + 93 AS col0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8464
SELECT + 37 + - CAST( - + 47 AS SIGNED )
----
84

skipif mysql # not compatible
query I rowsort label-8464
SELECT + 37 + - CAST ( - + 47 AS INTEGER )
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT - 60 * 56 * 43 * - + COUNT( * ) * - + ( - + 96 ) AS col2
----
13870080

skipif mysql # not compatible
query I rowsort label-8465
SELECT - 60 * 56 * 43 * - + COUNT ( * ) * - + ( - + 96 ) AS col2
----
13870080

query I rowsort
SELECT ALL 63 * - 9 AS col0
----
-567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8467
SELECT 70 * - + ( + 65 ) * 61 * 83 * - 45 + - COUNT( * ) DIV + MAX( ALL - 40 )
----
1036649250

skipif mysql # not compatible
query I rowsort label-8467
SELECT 70 * - + ( + 65 ) * 61 * 83 * - 45 + - COUNT ( * ) / + MAX ( ALL - 40 )
----
1036649250

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT COUNT( * ) * COUNT( * ) + 57 + + - ( + COUNT( * ) ) + + + MAX( DISTINCT 10 ) * - ( 32 )
----
-263

skipif mysql # not compatible
query I rowsort label-8468
SELECT COUNT ( * ) * COUNT ( * ) + 57 + + - ( + COUNT ( * ) ) + + + MAX ( DISTINCT 10 ) * - ( 32 )
----
-263

query I rowsort
SELECT 77 - + + 4 - + 75 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-8470
SELECT + 21 * + ( + 30 ) + + + COUNT( + 3 ) + COUNT( * ), + COUNT( * ) + + - 28 col0
----
632
-27

skipif mysql # not compatible
query II rowsort label-8470
SELECT + 21 * + ( + 30 ) + + + COUNT ( + 3 ) + COUNT ( * ), + COUNT ( * ) + + - 28 col0
----
632
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8471
SELECT MIN( ALL 75 ) * COUNT( DISTINCT 44 ) DIV ( + - COUNT( * ) ) AS col0
----
-75

skipif mysql # not compatible
query I rowsort label-8471
SELECT MIN ( ALL 75 ) * COUNT ( DISTINCT 44 ) / ( + - COUNT ( * ) ) AS col0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT 89 + - CAST( - + ( 8 ) AS SIGNED )
----
97

skipif mysql # not compatible
query I rowsort label-8472
SELECT 89 + - CAST ( - + ( 8 ) AS INTEGER )
----
97

query I rowsort
SELECT 60 * 30 AS col2
----
1800

query I rowsort
SELECT 67 + - - 68 AS col1
----
135

query I rowsort
SELECT DISTINCT - 38 AS col1
----
-38

query I rowsort
SELECT DISTINCT 73 + - + 22 AS col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8477
SELECT 80 * 28 + + 39 * COUNT( * ) * + + COUNT( * ) AS col0
----
2279

skipif mysql # not compatible
query I rowsort label-8477
SELECT 80 * 28 + + 39 * COUNT ( * ) * + + COUNT ( * ) AS col0
----
2279

query II rowsort
SELECT ALL 76, + 24 AS col0
----
76
24

query I rowsort
SELECT 89 col0
----
89

query I rowsort
SELECT ALL + ( 1 ) + - ( 77 ) AS col2
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8481
SELECT CAST( NULL AS SIGNED ) + 27 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8481
SELECT CAST ( NULL AS INTEGER ) + 27 AS col2
----
NULL

query I rowsort
SELECT 76 * + - 71
----
-5396

query I rowsort
SELECT 11 + + - 80 AS col1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT DISTINCT 96 + + - COALESCE ( ( + 22 ), - 9 DIV + 33 )
----
74

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT 96 + + - COALESCE ( ( + 22 ), - 9 / + 33 )
----
74

query I rowsort
SELECT 30 + + 13 AS col0
----
43

query I rowsort
SELECT DISTINCT 57 + + 42
----
99

query I rowsort
SELECT - - 49
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8488
SELECT ALL CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) + 48 * + NULLIF ( + COUNT( DISTINCT 95 ), 27 * - COUNT( DISTINCT + + 8 ) ) + + - 62 + COUNT( + 69 ) + 65 * + - 35 * - 88 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8488
SELECT ALL CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) + 48 * + NULLIF ( + COUNT ( DISTINCT 95 ), 27 * - COUNT ( DISTINCT + + 8 ) ) + + - 62 + COUNT ( + 69 ) + 65 * + - 35 * - 88 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 8 col0
----
-8

query II rowsort
SELECT 43, 85 + + + 30 - 4 + + 53 AS col1
----
43
164

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL - ( + 64 ) * COUNT( * ) + - 85 - 58 AS col2
----
-207

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - ( + 64 ) * COUNT ( * ) + - 85 - 58 AS col2
----
-207

query I rowsort
SELECT - + 83 * - NULLIF ( - - 36, - 46 ) AS col1
----
2988

onlyif mysql # DIV for integer division: 
query I rowsort label-8493
SELECT - - 8 - - 14 DIV - 58 + 45 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-8493
SELECT - - 8 - - 14 / - 58 + 45 AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8494
SELECT + - CAST( 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-8494
SELECT + - CAST ( 40 AS INTEGER )
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8495
SELECT + + COUNT( * ), - NULLIF ( + MAX( ALL 52 ), + + CAST( NULL AS DECIMAL ) ) AS col1
----
1
-52

skipif mysql # not compatible
query II rowsort label-8495
SELECT + + COUNT ( * ), - NULLIF ( + MAX ( ALL 52 ), + + CAST ( NULL AS REAL ) ) AS col1
----
1
-52

query I rowsort
SELECT DISTINCT - - 28 * + - 21 * 39 AS col1
----
-22932

query I rowsort
SELECT - 58 * + - 23 * + 7 * - + 12 AS col2
----
-112056

query I rowsort
SELECT ALL - 62 * - 57
----
3534

query I rowsort
SELECT - 7 * - 23 + - 37 + - - 20 AS col1
----
144

query I rowsort
SELECT + 62 + + - 80 + 46 * + - 52 AS col1
----
-2410

query I rowsort
SELECT DISTINCT + 22 col0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT ALL + NULLIF ( + COUNT( * ), 53 - - + 86 + 10 - - 67 * 32 * - SUM( ALL 12 ) + - COUNT( * ) / - ( + 80 ) + + 37 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + NULLIF ( + COUNT ( * ), 53 - - + 86 + 10 - - 67 * 32 * - SUM ( ALL 12 ) + - COUNT ( * ) / - ( + 80 ) + + 37 ) AS col1
----
1

query I rowsort
SELECT DISTINCT + 38 AS col2
----
38

query I rowsort
SELECT ALL 10 * + 23 + - 40 * 58
----
-2090

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT 35 * COUNT( * ) + - 87 AS col2
----
-52

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT 35 * COUNT ( * ) + - 87 AS col2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT ALL + COALESCE ( - + 37, COUNT( * ) )
----
-37

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL + COALESCE ( - + 37, COUNT ( * ) )
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8507
SELECT DISTINCT + 3 DIV - - CAST( + - 28 AS SIGNED ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT + 3 / - - CAST ( + - 28 AS INTEGER ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT - COALESCE ( + 27, + - CAST( - - 6 AS SIGNED ), 53 * - 15 ) + 85
----
58

skipif mysql # not compatible
query I rowsort label-8508
SELECT - COALESCE ( + 27, + - CAST ( - - 6 AS INTEGER ), 53 * - 15 ) + 85
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL COUNT( DISTINCT + 4 ) * COUNT( * ) * - COUNT( ALL + - 15 )
----
-1

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL COUNT ( DISTINCT + 4 ) * COUNT ( * ) * - COUNT ( ALL + - 15 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT - ( 61 ) DIV 40 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8510
SELECT - ( 61 ) / 40 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT + 73 * 32 * - COUNT( * )
----
-2336

skipif mysql # not compatible
query I rowsort label-8511
SELECT + 73 * 32 * - COUNT ( * )
----
-2336

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT MAX( 14 )
----
14

skipif mysql # not compatible
query I rowsort label-8512
SELECT MAX ( 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL 55 + - 27 - 83 * + COUNT( * ) * 65 - + 60 + + + 33 * - 5
----
-5592

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL 55 + - 27 - 83 * + COUNT ( * ) * 65 - + 60 + + + 33 * - 5
----
-5592

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT + SUM( - - NULLIF ( - 25, + 46 ) ) - + ( COALESCE ( 70, - 70, - 90 ) ) DIV - COUNT( * ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-8514
SELECT + SUM ( - - NULLIF ( - 25, + 46 ) ) - + ( COALESCE ( 70, - 70, - 90 ) ) / - COUNT ( * ) AS col2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT - COUNT( + 30 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-8515
SELECT - COUNT ( + 30 ) col0
----
-1

query I rowsort
SELECT - ( - 88 ) AS col0
----
88

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8517
SELECT DISTINCT CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) AS col0
----
NULL

query II rowsort
SELECT ALL 19 + - 42, 79 col1
----
-23
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT ( + + COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT ( + + COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT ALL + 53 - - + 7 - + ( - + 98 )
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT DISTINCT COUNT( ALL + - 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT COUNT ( ALL + - 27 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + - 78 + - + 63 + - MIN( 10 ) - - + MAX( DISTINCT 0 ) col0
----
-151

skipif mysql # not compatible
query I rowsort label-8522
SELECT + - 78 + - + 63 + - MIN ( 10 ) - - + MAX ( DISTINCT 0 ) col0
----
-151

query I rowsort
SELECT + - 73 - + + 13 AS col2
----
-86

query I rowsort
SELECT + + NULLIF ( + 12, + + 27 * - - 89 ) + 45 AS col1
----
57

query I rowsort
SELECT + + 98 - + + 0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + - COUNT( * ) + - 90 AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-8526
SELECT + - COUNT ( * ) + - 90 AS col2
----
-91

query I rowsort
SELECT ALL - 17 * - 81 AS col2
----
1377

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT + 79 * COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8528
SELECT + 79 * COUNT ( * ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - 48 * 39 * - NULLIF ( + + COUNT( * ), - + 36 * - COUNT( * ) )
----
1872

skipif mysql # not compatible
query I rowsort label-8529
SELECT - 48 * 39 * - NULLIF ( + + COUNT ( * ), - + 36 * - COUNT ( * ) )
----
1872

query I rowsort
SELECT ALL + 68 * + 17 + + ( - 19 ) AS col0
----
1137

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT + 6 + MIN( DISTINCT + 73 ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-8531
SELECT + 6 + MIN ( DISTINCT + 73 ) AS col1
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-8532
SELECT ALL + + 59 AS col1, 89 DIV + 77 + 42 - - 68 * NULLIF ( + 36, 69 )
----
59
2491

skipif mysql # not compatible
query II rowsort label-8532
SELECT ALL + + 59 AS col1, 89 / + 77 + 42 - - 68 * NULLIF ( + 36, 69 )
----
59
2491

query I rowsort
SELECT ALL + + 98 AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8534
SELECT + + COUNT( * ) AS col0, - 55 * SUM( DISTINCT + + 58 ) DIV + + 45
----
1
-70

skipif mysql # not compatible
query II rowsort label-8534
SELECT + + COUNT ( * ) AS col0, - 55 * SUM ( DISTINCT + + 58 ) / + + 45
----
1
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT + + ( - ( - 2 ) ) * + 55 * 95 * CASE 26 WHEN 62 THEN + 18 WHEN - COUNT( DISTINCT - 33 ) THEN + 39 + - COALESCE ( - - NULLIF ( + + COUNT( * ), - + CASE - 21 WHEN + + 74 + - 83 - - 86 + - 30 / - - AVG ( + 78 ) / - 21 / + 98 THEN + 23 * - 58 ELSE - 95 * 46 END ), 80 ) * - 78 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT + + ( - ( - 2 ) ) * + 55 * 95 * CASE 26 WHEN 62 THEN + 18 WHEN - COUNT ( DISTINCT - 33 ) THEN + 39 + - COALESCE ( - - NULLIF ( + + COUNT ( * ), - + CASE - 21 WHEN + + 74 + - 83 - - 86 + - 30 / - - AVG ( + 78 ) / - 21 / + 98 THEN + 23 * - 58 ELSE - 95 * 46 END ), 80 ) * - 78 ELSE NULL END
----
NULL

query II rowsort
SELECT + 95 * 55 AS col2, 93 AS col0
----
5225
93

query I rowsort
SELECT + + 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT - + COALESCE ( + COUNT( * ), - - 4 ) + + + SUM( ALL + 40 )
----
39

skipif mysql # not compatible
query I rowsort label-8538
SELECT - + COALESCE ( + COUNT ( * ), - - 4 ) + + + SUM ( ALL + 40 )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8539
SELECT ALL + - 63 DIV - 58 * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL + - 63 / - 58 * COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT CAST( + 72 AS SIGNED ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8540
SELECT CAST ( + 72 AS INTEGER ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8541
SELECT - 39 DIV COUNT( * )
----
-39

skipif mysql # not compatible
query I rowsort label-8541
SELECT - 39 / COUNT ( * )
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8542
SELECT DISTINCT 57 DIV + 74 + + 12 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT 57 / + 74 + + 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - COALESCE ( COUNT( * ), - + COUNT( * ) + + - 51 ) * NULLIF ( + 19, - 84 ) - + 51 AS col1
----
-70

skipif mysql # not compatible
query I rowsort label-8543
SELECT - COALESCE ( COUNT ( * ), - + COUNT ( * ) + + - 51 ) * NULLIF ( + 19, - 84 ) - + 51 AS col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT 63 DIV + - 41 + 60 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT 63 / + - 41 + 60 AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8545
SELECT ALL 75 * + - CAST( 62 AS SIGNED ) * - 0 DIV - 55 * - COUNT( * ) + - 38 + 63
----
25

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL 75 * + - CAST ( 62 AS INTEGER ) * - 0 / - 55 * - COUNT ( * ) + - 38 + 63
----
25

query I rowsort
SELECT - 73 + - + 86
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT COALESCE ( - MAX( DISTINCT 83 ), 82 )
----
-83

skipif mysql # not compatible
query I rowsort label-8547
SELECT COALESCE ( - MAX ( DISTINCT 83 ), 82 )
----
-83

query I rowsort
SELECT NULLIF ( - ( + 18 ), 87 )
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8549
SELECT CASE CAST( NULL AS SIGNED ) WHEN - 21 THEN + + NULLIF ( + - 32, + COUNT( * ) - - - SUM( DISTINCT 83 ) ) * MIN( ALL + 78 ) * + 76 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT CASE CAST ( NULL AS INTEGER ) WHEN - 21 THEN + + NULLIF ( + - 32, + COUNT ( * ) - - - SUM ( DISTINCT 83 ) ) * MIN ( ALL + 78 ) * + 76 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8550
SELECT DISTINCT CAST( + 29 AS SIGNED ) * - 78 + + - 18 + + 31 AS col2
----
-2249

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT CAST ( + 29 AS INTEGER ) * - 78 + + - 18 + + 31 AS col2
----
-2249

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8551
SELECT DISTINCT 55 * - + 34 * + CAST( NULL AS DECIMAL ) + - + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT DISTINCT 55 * - + 34 * + CAST ( NULL AS REAL ) + - + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT - 13 + 39
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8553
SELECT ALL - ( - 7 ) * + CAST( NULL AS DECIMAL ) * - - CASE - + 56 WHEN - + 80 THEN 5 ELSE NULL END - - + 57, + COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8553
SELECT ALL - ( - 7 ) * + CAST ( NULL AS REAL ) * - - CASE - + 56 WHEN - + 80 THEN 5 ELSE NULL END - - + 57, + COUNT ( * ) AS col2
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT COALESCE ( COUNT( * ), - - 7 ) * - - COUNT( * ) * - 36 * 96
----
-3456

skipif mysql # not compatible
query I rowsort label-8554
SELECT COALESCE ( COUNT ( * ), - - 7 ) * - - COUNT ( * ) * - 36 * 96
----
-3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8555
SELECT ALL + COALESCE ( - 44, - COALESCE ( - ( ( - 47 ) ), CAST( - COUNT( + 87 ) AS SIGNED ) * - - 75 + + 23 ), - 64 * + + 19 + + COUNT( * ) + + + 33 + + SUM( - + 80 ) DIV 72, 27 + + 64 + - COALESCE ( - 46, - CAST( - COUNT( * ) AS SIGNED ) ) DIV 66 * + + 36 ) DIV 97 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + COALESCE ( - 44, - COALESCE ( - ( ( - 47 ) ), CAST ( - COUNT ( + 87 ) AS INTEGER ) * - - 75 + + 23 ), - 64 * + + 19 + + COUNT ( * ) + + + 33 + + SUM ( - + 80 ) / 72, 27 + + 64 + - COALESCE ( - 46, - CAST ( - COUNT ( * ) AS INTEGER ) ) / 66 * + + 36 ) / 97 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT DISTINCT - MIN( DISTINCT + 49 ) * + CAST( - 88 AS SIGNED ) * - NULLIF ( ( - 1 ), 95 + + + NULLIF ( + 70, - 47 ) ) + + 35 AS col2
----
4347

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT - MIN ( DISTINCT + 49 ) * + CAST ( - 88 AS INTEGER ) * - NULLIF ( ( - 1 ), 95 + + + NULLIF ( + 70, - 47 ) ) + + 35 AS col2
----
4347

query I rowsort
SELECT ALL 80 - + 42
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8558
SELECT + 54 * - 55 * COUNT( * ) * + - ( - - 41 ) AS col2
----
121770

skipif mysql # not compatible
query I rowsort label-8558
SELECT + 54 * - 55 * COUNT ( * ) * + - ( - - 41 ) AS col2
----
121770

query I rowsort
SELECT - 37 + - 23 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8560
SELECT DISTINCT - 19 * + CAST( NULL AS SIGNED ) AS col1, - COUNT( ALL + 47 ) DIV + + 61 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8560
SELECT DISTINCT - 19 * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( ALL + 47 ) / + + 61 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL + MAX( ALL + 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + MAX ( ALL + 97 ) AS col0
----
97

query I rowsort
SELECT - + COALESCE ( + 50, 2, - 23 )
----
-50

query I rowsort
SELECT ALL 4 col2
----
4

query I rowsort
SELECT - + 81
----
-81

query I rowsort
SELECT - + ( - 86 )
----
86

query I rowsort
SELECT DISTINCT - 55 col1
----
-55

query II rowsort
SELECT + 56 - + + 35 AS col2, 84 + - + 99 * + 28
----
21
-2688

query I rowsort
SELECT DISTINCT + 12 * + ( 60 ) - - 77 * ( 90 ) col0
----
7650

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT DISTINCT + 43 + - - COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT + 43 + - - COUNT ( * )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8570
SELECT ALL 15 DIV - 25
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL 15 / - 25
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8571
SELECT 76 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-8571
SELECT 76 / 89
----
0

query I rowsort
SELECT DISTINCT - 75 + 54 + ( - + 72 ) * + 64 * 31
----
-142869

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL 9 + + + CAST( NULL AS SIGNED ) * - 13 + + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL 9 + + + CAST ( NULL AS INTEGER ) * - 13 + + 25
----
NULL

query II rowsort
SELECT ALL - 60 AS col0, 90
----
-60
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8575
SELECT DISTINCT - MAX( + 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT - MAX ( + 23 ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + CASE - 57 WHEN + 40 THEN NULL ELSE 58 END * 84 + + 55 + 9 * + + COUNT( * ) * - ( - ( 92 ) ) * ( + - 57 ) AS col0
----
-42269

skipif mysql # not compatible
query I rowsort label-8576
SELECT + CASE - 57 WHEN + 40 THEN NULL ELSE 58 END * 84 + + 55 + 9 * + + COUNT ( * ) * - ( - ( 92 ) ) * ( + - 57 ) AS col0
----
-42269

query II rowsort
SELECT 5 AS col1, - ( + ( + + 72 ) ) AS col0
----
5
-72

query II rowsort
SELECT + 20 AS col0, - ( - 81 )
----
20
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8579
SELECT DISTINCT - COALESCE ( - 94, - 6 * + + COUNT( * ) * + - COUNT( * ) + 93 + + - 46 ) DIV - + 5 AS col2, + 58
----
-18
58

skipif mysql # not compatible
query II rowsort label-8579
SELECT DISTINCT - COALESCE ( - 94, - 6 * + + COUNT ( * ) * + - COUNT ( * ) + 93 + + - 46 ) / - + 5 AS col2, + 58
----
-18
58

onlyif mysql # aggregate syntax: 
query II rowsort label-8580
SELECT ALL - CASE + 16 WHEN + 35 * + COUNT( * ) * - 0 THEN - 60 + + 85 ELSE COUNT( * ) END AS col0, 69 * - - 76 * MAX( ALL - - ( 48 ) )
----
-1
251712

skipif mysql # not compatible
query II rowsort label-8580
SELECT ALL - CASE + 16 WHEN + 35 * + COUNT ( * ) * - 0 THEN - 60 + + 85 ELSE COUNT ( * ) END AS col0, 69 * - - 76 * MAX ( ALL - - ( 48 ) )
----
-1
251712

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8581
SELECT CAST( NULL AS SIGNED ) * - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-8581
SELECT CAST ( NULL AS INTEGER ) * - + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query III rowsort label-8582
SELECT DISTINCT COUNT( * ) - - ( + COUNT( * ) ) AS col2, + 77 DIV 37 + + + 90, + CASE - - MAX( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST( 16 AS SIGNED ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2
----
2
92
NULL

skipif mysql # not compatible
query III rowsort label-8582
SELECT DISTINCT COUNT ( * ) - - ( + COUNT ( * ) ) AS col2, + 77 / 37 + + + 90, + CASE - - MAX ( - ( - + 45 ) ) WHEN - 14 * + - CASE - ( + 12 ) WHEN - COALESCE ( - 33, + 62, + - 72 + + 76 ) * + 41 THEN - ( - SUM ( ALL - ( + 56 ) ) ) * 89 END * + - 15 * + 74 THEN - 12 * 69 - CAST ( 16 AS INTEGER ) WHEN + 83 THEN NULL ELSE NULL END * 53 AS col2
----
2
92
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8583
SELECT - 45 * 24 + 57 / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT - 45 * 24 + 57 / + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 13 AS col0, 70
----
13
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ALL - COUNT( DISTINCT + - 83 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8585
SELECT ALL - COUNT ( DISTINCT + - 83 ) AS col1
----
-1

query II rowsort
SELECT + 40, 0 AS col2
----
40
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT COUNT( * ) + - + MAX( - 54 ) DIV 90
----
1

skipif mysql # not compatible
query I rowsort label-8587
SELECT COUNT ( * ) + - + MAX ( - 54 ) / 90
----
1

query I rowsort
SELECT 39 * + 64
----
2496

query I rowsort
SELECT - + 78 AS col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT ALL + - COUNT( * ) * + SUM( ALL + - 43 )
----
43

skipif mysql # not compatible
query I rowsort label-8590
SELECT ALL + - COUNT ( * ) * + SUM ( ALL + - 43 )
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-8591
SELECT ALL 4, + ( + COUNT( - 7 ) ) AS col2
----
4
1

skipif mysql # not compatible
query II rowsort label-8591
SELECT ALL 4, + ( + COUNT ( - 7 ) ) AS col2
----
4
1

query I rowsort
SELECT + 47 - - NULLIF ( 11, - 29 + + 83 + - 72 + 49 )
----
58

query I rowsort
SELECT - NULLIF ( - 17, + 10 + - 2 ) * 9
----
153

query I rowsort
SELECT ALL - 90 * 51
----
-4590

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT COUNT( * ) + - 54
----
-53

skipif mysql # not compatible
query I rowsort label-8595
SELECT COUNT ( * ) + - 54
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT + CASE 55 WHEN + 3 THEN NULL WHEN + 21 * 42 THEN COUNT( ALL + + 98 ) END * + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8596
SELECT + CASE 55 WHEN + 3 THEN NULL WHEN + 21 * 42 THEN COUNT ( ALL + + 98 ) END * + 45
----
NULL

query II rowsort
SELECT + 33 AS col1, 42
----
33
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT ALL + - CASE - 88 WHEN - 77 + - 69 THEN - 81 WHEN COUNT( * ) * - - 54 + - 65 - + 1 + + 68 + - 47 + + MAX( DISTINCT - 2 ) * - 43 * CAST( - + 59 AS SIGNED ) THEN + + 84 * + 14 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL + - CASE - 88 WHEN - 77 + - 69 THEN - 81 WHEN COUNT ( * ) * - - 54 + - 65 - + 1 + + 68 + - 47 + + MAX ( DISTINCT - 2 ) * - 43 * CAST ( - + 59 AS INTEGER ) THEN + + 84 * + 14 ELSE NULL END + - COUNT ( * )
----
NULL

query I rowsort
SELECT 83 + - 73
----
10

query I rowsort
SELECT - 10 - + 49 + 62 * 84 * + 6
----
31189

query I rowsort
SELECT ALL - 74 * + 90 + + 25
----
-6635

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT + SUM( DISTINCT - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8602
SELECT + SUM ( DISTINCT - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT - NULLIF ( 53, + MIN( + - 24 ) / - 39 * + 34 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8603
SELECT - NULLIF ( 53, + MIN ( + - 24 ) / - 39 * + 34 ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT DISTINCT - 83 + - 59 + + 53 * - - NULLIF ( + + 86, + COUNT( 22 ) * + ( + ( - 22 ) ) ) AS col2
----
4416

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT - 83 + - 59 + + 53 * - - NULLIF ( + + 86, + COUNT ( 22 ) * + ( + ( - 22 ) ) ) AS col2
----
4416

onlyif mysql # aggregate syntax: 
query II rowsort label-8605
SELECT COUNT( 64 ) + + 98, + ( 99 )
----
99
99

skipif mysql # not compatible
query II rowsort label-8605
SELECT COUNT ( 64 ) + + 98, + ( 99 )
----
99
99

query I rowsort
SELECT ALL - + 79 * - 34
----
2686

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8607
SELECT DISTINCT + - COUNT( * ) * - MIN( DISTINCT + 76 ) / - 2 * 0 / CAST( NULL AS SIGNED ) + - + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT + - COUNT ( * ) * - MIN ( DISTINCT + 76 ) / - 2 * 0 / CAST ( NULL AS INTEGER ) + - + 12
----
NULL

query I rowsort
SELECT + 4 + + - 66 AS col1
----
-62

query I rowsort
SELECT ALL 97 col2
----
97

query II rowsort
SELECT DISTINCT + 16 * + 73 AS col2, 82 + + 75 + - 87 AS col2
----
1168
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT ALL + 62 + - 2 * + CASE 6 WHEN - 87 THEN - 75 END * - - 46 + - COUNT( - - 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT ALL + 62 + - 2 * + CASE 6 WHEN - 87 THEN - 75 END * - - 46 + - COUNT ( - - 78 )
----
NULL

query I rowsort
SELECT 5 * - - 50
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT SUM( ALL + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8613
SELECT SUM ( ALL + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT + MAX( DISTINCT - + ( + 50 ) ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-8614
SELECT + MAX ( DISTINCT - + ( + 50 ) ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT 24 + COUNT( DISTINCT + + 38 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8615
SELECT 24 + COUNT ( DISTINCT + + 38 ) AS col1
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8616
SELECT 95 * 84, ( + + CAST( NULL AS SIGNED ) ) * + 48 AS col1
----
7980
NULL

skipif mysql # not compatible
query II rowsort label-8616
SELECT 95 * 84, ( + + CAST ( NULL AS INTEGER ) ) * + 48 AS col1
----
7980
NULL

query I rowsort
SELECT ALL 32 * + + 4 AS col1
----
128

query I rowsort
SELECT ALL - 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT MAX( 50 )
----
50

skipif mysql # not compatible
query I rowsort label-8619
SELECT MAX ( 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8620
SELECT 20 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8620
SELECT 20 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 59 col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT COUNT( + + 25 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-8622
SELECT COUNT ( + + 25 ) col2
----
1

query I rowsort
SELECT + 37 - + - 21
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8624
SELECT + 42 / - CAST( NULL AS SIGNED ) AS col1, - ( - 27 )
----
NULL
27

skipif mysql # not compatible
query II rowsort label-8624
SELECT + 42 / - CAST ( NULL AS INTEGER ) AS col1, - ( - 27 )
----
NULL
27

query I rowsort
SELECT + 54 * - NULLIF ( - 52, + 21 ) AS col1
----
2808

query I rowsort
SELECT - 60 + 65 + + 28 + + 99 * + 27 AS col2
----
2706

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT ALL + MAX( ALL 68 )
----
68

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + MAX ( ALL 68 )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT COUNT( 79 )
----
1

skipif mysql # not compatible
query I rowsort label-8628
SELECT COUNT ( 79 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8629
SELECT ALL + ( - - COUNT( * ) ) / CASE 68 WHEN + 30 + - 0 * + - COUNT( * ) - + 79 THEN NULL WHEN COUNT( * ) * + - 1 * - - 85 THEN + CAST( NULL AS SIGNED ) + + 78 + - CAST( NULL AS SIGNED ) END AS col1, - 17 + - 39 * 21 * + CAST( + ( + + 64 ) AS SIGNED ) * + ( + + 53 )
----
NULL
-2778065

skipif mysql # not compatible
query II rowsort label-8629
SELECT ALL + ( - - COUNT ( * ) ) / CASE 68 WHEN + 30 + - 0 * + - COUNT ( * ) - + 79 THEN NULL WHEN COUNT ( * ) * + - 1 * - - 85 THEN + CAST ( NULL AS INTEGER ) + + 78 + - CAST ( NULL AS INTEGER ) END AS col1, - 17 + - 39 * 21 * + CAST ( + ( + + 64 ) AS INTEGER ) * + ( + + 53 )
----
NULL
-2778065

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8630
SELECT + + 25 + + CASE 20 WHEN 94 * + + 43 DIV COUNT( * ) THEN + - 84 * - 70 - + NULLIF ( - + 27, + 9 ) * - 60 + CASE + 84 WHEN 52 THEN + + NULLIF ( + - 79, - + COUNT( * ) * - + 85 + + 1 DIV + 74 * CAST( - CAST( + - NULLIF ( + 94, - 48 * SUM( DISTINCT - CAST( - - 70 AS SIGNED ) ) ) AS SIGNED ) AS SIGNED ) * ( - 57 - 57 ) + 14 ) DIV - 33 WHEN + 95 * 12 - + NULLIF ( 26, CAST( + 4 AS SIGNED ) ) THEN NULL END - - 13 * + 51 ELSE + 5 END + ( 94 + + 91 ) col2
----
215

skipif mysql # not compatible
query I rowsort label-8630
SELECT + + 25 + + CASE 20 WHEN 94 * + + 43 / COUNT ( * ) THEN + - 84 * - 70 - + NULLIF ( - + 27, + 9 ) * - 60 + CASE + 84 WHEN 52 THEN + + NULLIF ( + - 79, - + COUNT ( * ) * - + 85 + + 1 / + 74 * CAST ( - CAST ( + - NULLIF ( + 94, - 48 * SUM ( DISTINCT - CAST ( - - 70 AS INTEGER ) ) ) AS INTEGER ) AS INTEGER ) * ( - 57 - 57 ) + 14 ) / - 33 WHEN + 95 * 12 - + NULLIF ( 26, CAST ( + 4 AS INTEGER ) ) THEN NULL END - - 13 * + 51 ELSE + 5 END + ( 94 + + 91 ) col2
----
215

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT + - COALESCE ( + - 46, + 20 * - NULLIF ( + - COUNT( * ), + 98 + - - 84 - 19 ) * + 76 ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-8631
SELECT + - COALESCE ( + - 46, + 20 * - NULLIF ( + - COUNT ( * ), + 98 + - - 84 - 19 ) * + 76 ) AS col1
----
46

query I rowsort
SELECT DISTINCT 24 + + - 99
----
-75

query I rowsort
SELECT ALL - ( 73 ) * + 41
----
-2993

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL COUNT( * ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL COUNT ( * ) + 55
----
56

query I rowsort
SELECT - 86 * + 11
----
-946

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8636
SELECT + 25 * - + CASE - - COUNT( * ) WHEN + AVG ( 3 ) THEN - COUNT( * ) WHEN + SUM( + 3 ) + - CAST( NULL AS DECIMAL ) THEN - - COALESCE ( - COUNT( * ), - 7 + - 74 + ( - COALESCE ( - COUNT( * ), - + 52 ) ) / - MIN( DISTINCT + 60 ) * + COUNT( * ) + ( + 81 ) ) WHEN + - 25 THEN - 0 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8636
SELECT + 25 * - + CASE - - COUNT ( * ) WHEN + AVG ( 3 ) THEN - COUNT ( * ) WHEN + SUM ( + 3 ) + - CAST ( NULL AS REAL ) THEN - - COALESCE ( - COUNT ( * ), - 7 + - 74 + ( - COALESCE ( - COUNT ( * ), - + 52 ) ) / - MIN ( DISTINCT + 60 ) * + COUNT ( * ) + ( + 81 ) ) WHEN + - 25 THEN - 0 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8637
SELECT ALL - - NULLIF ( - 34, + 39 * - 75 + + COUNT( * ) * - + AVG ( NULLIF ( + 39, - 41 ) ) * - - COUNT( * ) ) * - + 12 * - 9 + 78 - + 40 AS col1, 74 * - 36
----
-3634
-2664

skipif mysql # not compatible
query II rowsort label-8637
SELECT ALL - - NULLIF ( - 34, + 39 * - 75 + + COUNT ( * ) * - + AVG ( NULLIF ( + 39, - 41 ) ) * - - COUNT ( * ) ) * - + 12 * - 9 + 78 - + 40 AS col1, 74 * - 36
----
-3634
-2664

query I rowsort
SELECT ALL + + 56 + 53
----
109

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8639
SELECT - + 9 + - MIN( DISTINCT - - CAST( + 71 AS SIGNED ) ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-8639
SELECT - + 9 + - MIN ( DISTINCT - - CAST ( + 71 AS INTEGER ) ) AS col1
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT DISTINCT + 87 + - CAST( + + 51 AS SIGNED ) col2
----
36

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT + 87 + - CAST ( + + 51 AS INTEGER ) col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - CASE + COUNT( * ) WHEN + 62 THEN 21 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT - CASE + COUNT ( * ) WHEN + 62 THEN 21 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT - - CASE 24 WHEN + 81 + 25 THEN COUNT( 13 ) WHEN + 7 + - + 8 THEN - COUNT( * ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT - - CASE 24 WHEN + 81 + 25 THEN COUNT ( 13 ) WHEN + 7 + - + 8 THEN - COUNT ( * ) ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 54 + - ( + ( + 99 ) ) AS col2
----
-45

query I rowsort
SELECT DISTINCT + + 14 + + 66 col1
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-8645
SELECT ALL - + 43 DIV 47 * + 39 + - 55, - 39 AS col1
----
-55
-39

skipif mysql # not compatible
query II rowsort label-8645
SELECT ALL - + 43 / 47 * + 39 + - 55, - 39 AS col1
----
-55
-39

query I rowsort
SELECT - 96 col1
----
-96

query I rowsort
SELECT DISTINCT NULLIF ( + - 31, 85 + - + 19 + + + 57 + + - 21 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT - MAX( 92 ) - 55, + 85 + + ( ( + ( - 87 ) ) ) AS col1
----
-147
-2

skipif mysql # not compatible
query II rowsort label-8648
SELECT - MAX ( 92 ) - 55, + 85 + + ( ( + ( - 87 ) ) ) AS col1
----
-147
-2

query I rowsort
SELECT - 56 * + + 4 AS col1
----
-224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8650
SELECT ALL + 57 DIV - COALESCE ( 8, COALESCE ( - 3, - 82, - - 71 - + - 21 * + - CAST( NULL AS SIGNED ) ) )
----
-7

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + 57 / - COALESCE ( 8, COALESCE ( - 3, - 82, - - 71 - + - 21 * + - CAST ( NULL AS INTEGER ) ) )
----
-7

query I rowsort
SELECT 14 col0
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8652
SELECT - ( - ( - MAX( ALL - 68 ) ) ) DIV 35 col2, - 62 * - + COUNT( + - 59 ) AS col2
----
1
62

skipif mysql # not compatible
query II rowsort label-8652
SELECT - ( - ( - MAX ( ALL - 68 ) ) ) / 35 col2, - 62 * - + COUNT ( + - 59 ) AS col2
----
1
62

query I rowsort
SELECT ALL + 58 * + 64 AS col2
----
3712

query I rowsort
SELECT ALL + 69 col1
----
69

query I rowsort
SELECT 31 * + - 29 * 34 - - 78
----
-30488

query I rowsort
SELECT DISTINCT + 40 * + 45
----
1800

query I rowsort
SELECT DISTINCT - 85 * - 84 * 65
----
464100

query I rowsort
SELECT ALL + ( - 58 ) AS col0
----
-58

query I rowsort
SELECT ALL + 59 AS col2
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT DISTINCT + CAST( - 60 AS SIGNED ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + CAST ( - 60 AS INTEGER ) AS col1
----
-60

query I rowsort
SELECT ( - 40 ) col2
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8662
SELECT ALL + 75, - 56 * + - CAST( NULL AS SIGNED ) col0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-8662
SELECT ALL + 75, - 56 * + - CAST ( NULL AS INTEGER ) col0
----
75
NULL

query I rowsort
SELECT ( + 26 )
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8664
SELECT 68 * - 51 - + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT 68 * - 51 - + CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - 30 * + - 11 AS col1
----
330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT + 36 * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT + 36 * + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL COUNT( * ) * ( 19 )
----
19

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL COUNT ( * ) * ( 19 )
----
19

query I rowsort
SELECT ( + 96 )
----
96

query I rowsort
SELECT DISTINCT - NULLIF ( + 20, - + 12 ) * - 67 * - 54
----
-72360

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT ALL - 90 DIV + 78
----
-1

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL - 90 / + 78
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT ALL - ( + COUNT( * ) ) * ( - 67 ) + + 62
----
129

skipif mysql # not compatible
query I rowsort label-8671
SELECT ALL - ( + COUNT ( * ) ) * ( - 67 ) + + 62
----
129

query II rowsort
SELECT ALL + 43 AS col2, - 10 * - 37
----
43
370

query I rowsort
SELECT + + 87 AS col0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT - 21 * - - 58 + 9 + - 51 * - 63 + 36 + - COUNT( - - 47 ) AS col1
----
2039

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT - 21 * - - 58 + 9 + - 51 * - 63 + 36 + - COUNT ( - - 47 ) AS col1
----
2039

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT DISTINCT + + COUNT( * ) col0
----
1

skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT + + COUNT ( * ) col0
----
1

query I rowsort
SELECT + + COALESCE ( + 56, + 15 + - - 59 + - 49 * - 91 * + 75 ) * + - 46
----
-2576

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT MAX( ALL - - 64 )
----
64

skipif mysql # not compatible
query I rowsort label-8677
SELECT MAX ( ALL - - 64 )
----
64

query I rowsort
SELECT - NULLIF ( - + 25, ( + 94 ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT - SUM( 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT - SUM ( 92 )
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT ALL + 63 * ( - 2 ) + + 48 + CAST( 33 AS SIGNED ) * - 68 * 90 AS col2
----
-202038

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL + 63 * ( - 2 ) + + 48 + CAST ( 33 AS INTEGER ) * - 68 * 90 AS col2
----
-202038

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT + 45 - + CASE 19 WHEN 27 + + MIN( DISTINCT 56 ) THEN NULL WHEN 18 THEN SUM( DISTINCT + 38 ) * + 27 - - 76 ELSE NULL END + + + 14 / 96 * + 89 + + + 41 - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT + 45 - + CASE 19 WHEN 27 + + MIN ( DISTINCT 56 ) THEN NULL WHEN 18 THEN SUM ( DISTINCT + 38 ) * + 27 - - 76 ELSE NULL END + + + 14 / 96 * + 89 + + + 41 - 68 AS col1
----
NULL

query I rowsort
SELECT + ( - 64 ) AS col2
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT ALL - NULLIF ( - 52, - + 78 * - COUNT( * ) ) col0
----
52

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL - NULLIF ( - 52, - + 78 * - COUNT ( * ) ) col0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8684
SELECT + COALESCE ( - 81, - - 35 * + CAST( 13 AS SIGNED ) ) * - 83 + 39 + + 85 + 43 * SUM( ALL 5 ) + - 20 - + + 21 * + 36 + - 41 DIV + MIN( ALL + 59 ) AS col1
----
6286

skipif mysql # not compatible
query I rowsort label-8684
SELECT + COALESCE ( - 81, - - 35 * + CAST ( 13 AS INTEGER ) ) * - 83 + 39 + + 85 + 43 * SUM ( ALL 5 ) + - 20 - + + 21 * + 36 + - 41 / + MIN ( ALL + 59 ) AS col1
----
6286

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT SUM( DISTINCT - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT SUM ( DISTINCT - 40 )
----
-40

query I rowsort
SELECT + 72 + - + 35
----
37

query II rowsort
SELECT ALL - - 41 * 84 * 1 AS col1, + 87 + 54 * + 74 AS col2
----
3444
4083

query I rowsort
SELECT - - 81 AS col2
----
81

query I rowsort
SELECT DISTINCT + 56 AS col1
----
56

query I rowsort
SELECT + - 42 + - 10 + 77 AS col0
----
25

query I rowsort
SELECT ALL - ( + 75 ) AS col0
----
-75

query I rowsort
SELECT ALL - 71 * + - 69 * + 13 AS col2
----
63687

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8693
SELECT - 33 - COUNT( * ) DIV - 63 + 36 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8693
SELECT - 33 - COUNT ( * ) / - 63 + 36 AS col2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8694
SELECT + NULLIF ( COUNT( * ), CAST( ( + 48 ) AS SIGNED ) ) * + + 82 + + 79 col2
----
161

skipif mysql # not compatible
query I rowsort label-8694
SELECT + NULLIF ( COUNT ( * ), CAST ( ( + 48 ) AS INTEGER ) ) * + + 82 + + 79 col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT DISTINCT + MAX( 45 ) * + 22
----
990

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT + MAX ( 45 ) * + 22
----
990

query I rowsort
SELECT ALL ( + + 68 )
----
68

query II rowsort
SELECT - 5 AS col0, 27 AS col1
----
-5
27

query I rowsort
SELECT ALL 85 * + + 50 AS col0
----
4250

query I rowsort
SELECT - 97 + - 87 - 8 AS col0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8700
SELECT ALL CAST( - + 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-8700
SELECT ALL CAST ( - + 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8701
SELECT - 14 * + 56 DIV + MIN( DISTINCT - 2 )
----
392

skipif mysql # not compatible
query I rowsort label-8701
SELECT - 14 * + 56 / + MIN ( DISTINCT - 2 )
----
392

query II rowsort
SELECT ALL 15 col1, 71 AS col0
----
15
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL - CASE + 89 WHEN COUNT( * ) + - + AVG ( DISTINCT - - 83 ) - + ( + 19 ) THEN NULL ELSE + + COUNT( * ) * CAST( NULL AS SIGNED ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL - CASE + 89 WHEN COUNT ( * ) + - + AVG ( DISTINCT - - 83 ) - + ( + 19 ) THEN NULL ELSE + + COUNT ( * ) * CAST ( NULL AS INTEGER ) END col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT - CAST( - 30 AS SIGNED ) * + 23 + - + 62 + + 1
----
629

skipif mysql # not compatible
query I rowsort label-8704
SELECT - CAST ( - 30 AS INTEGER ) * + 23 + - + 62 + + 1
----
629

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8705
SELECT 0 DIV - - COUNT( * ) + - 38
----
-38

skipif mysql # not compatible
query I rowsort label-8705
SELECT 0 / - - COUNT ( * ) + - 38
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-8706
SELECT ALL - 75, COUNT( * ) col2
----
-75
1

skipif mysql # not compatible
query II rowsort label-8706
SELECT ALL - 75, COUNT ( * ) col2
----
-75
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8707
SELECT 27 / 14 * - 67 + - 47 + - COUNT( * ) * + MAX( ALL + + CAST( NULL AS SIGNED ) ) - 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT 27 / 14 * - 67 + - 47 + - COUNT ( * ) * + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) - 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT COUNT( * ) + + - COALESCE ( + + 48, - 83 ) + + - 71 col2
----
-118

skipif mysql # not compatible
query I rowsort label-8708
SELECT COUNT ( * ) + + - COALESCE ( + + 48, - 83 ) + + - 71 col2
----
-118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8709
SELECT 20 DIV 6 DIV - 43 * COUNT( * ) * COUNT( + 68 ), + 99 AS col0
----
0
99

skipif mysql # not compatible
query II rowsort label-8709
SELECT 20 / 6 / - 43 * COUNT ( * ) * COUNT ( + 68 ), + 99 AS col0
----
0
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8710
SELECT ALL + MAX( - 76 ) + - CAST( 21 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL + MAX ( - 76 ) + - CAST ( 21 AS INTEGER )
----
-97

query I rowsort
SELECT ALL - 36 * - 57
----
2052

query II rowsort
SELECT + 91, 72 AS col1
----
91
72

query II rowsort
SELECT ALL - 10 AS col0, + 99
----
-10
99

query I rowsort
SELECT - 57 * + 74 + + 57
----
-4161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT ALL + 91 + + + CAST( + - 81 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + 91 + + + CAST ( + - 81 AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8716
SELECT + MIN( CASE + 94 WHEN - 28 THEN NULL ELSE + ( + 47 ) * - 78 END ) AS col1, + COUNT( * )
----
-3666
1

skipif mysql # not compatible
query II rowsort label-8716
SELECT + MIN ( CASE + 94 WHEN - 28 THEN NULL ELSE + ( + 47 ) * - 78 END ) AS col1, + COUNT ( * )
----
-3666
1

query II rowsort
SELECT + 17, + ( - 59 ) AS col0
----
17
-59

query II rowsort
SELECT ALL - + 24 col2, ( - 58 ) - - ( + - 44 )
----
-24
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT CAST( NULL AS SIGNED ) * + + 93 - + 44 * 44 + + 67 + MIN( 87 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT CAST ( NULL AS INTEGER ) * + + 93 - + 44 * 44 + + 67 + MIN ( 87 ) AS col0
----
NULL

query I rowsort
SELECT - 63 + + 36
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + MIN( DISTINCT + ( + 17 ) ) col1
----
17

skipif mysql # not compatible
query I rowsort label-8721
SELECT + MIN ( DISTINCT + ( + 17 ) ) col1
----
17

query I rowsort
SELECT ALL - ( + + 79 ) AS col1
----
-79

query I rowsort
SELECT DISTINCT - - 14 + - + 65 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT ALL 46 + 93 + - CASE 3 WHEN + ( - 56 ) THEN NULL WHEN 34 + COUNT( * ) + - 80 * - - COUNT( DISTINCT - - 87 ) * + ( 20 ) * + - 17 THEN - 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL 46 + 93 + - CASE 3 WHEN + ( - 56 ) THEN NULL WHEN 34 + COUNT ( * ) + - 80 * - - COUNT ( DISTINCT - - 87 ) * + ( 20 ) * + - 17 THEN - 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT - CAST( 19 AS SIGNED ) * - 70 + 24
----
1354

skipif mysql # not compatible
query I rowsort label-8725
SELECT - CAST ( 19 AS INTEGER ) * - 70 + 24
----
1354

query I rowsort
SELECT ALL + 68 * 40 AS col1
----
2720

query I rowsort
SELECT ALL - 46 - 90 col1
----
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8728
SELECT + CASE ( + - 18 ) WHEN 98 THEN NULL WHEN + 79 THEN NULL ELSE + - ( + 53 ) DIV - - 87 + + - 56 + + 86 END * + - COUNT( ALL + - 95 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8728
SELECT + CASE ( + - 18 ) WHEN 98 THEN NULL WHEN + 79 THEN NULL ELSE + - ( + 53 ) / - - 87 + + - 56 + + 86 END * + - COUNT ( ALL + - 95 ) AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT DISTINCT 49 * SUM( - 30 ) * 16 AS col1
----
-23520

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT 49 * SUM ( - 30 ) * 16 AS col1
----
-23520

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT 27 + MAX( + 69 ) - MIN( + - 22 ) * - COALESCE ( - + 33, SUM( - 32 ) ) + 37 * - COALESCE ( - 98, - - COUNT( * ) ) + + 78 DIV + COUNT( ALL 53 )
----
4526

skipif mysql # not compatible
query I rowsort label-8730
SELECT 27 + MAX ( + 69 ) - MIN ( + - 22 ) * - COALESCE ( - + 33, SUM ( - 32 ) ) + 37 * - COALESCE ( - 98, - - COUNT ( * ) ) + + 78 / + COUNT ( ALL 53 )
----
4526

query I rowsort
SELECT + 97 * - 41 col1
----
-3977

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT NULLIF ( - 79, - COUNT( * ) ) + 33
----
-46

skipif mysql # not compatible
query I rowsort label-8732
SELECT NULLIF ( - 79, - COUNT ( * ) ) + 33
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT MAX( - + 93 ) * + + 34 * + - 89
----
281418

skipif mysql # not compatible
query I rowsort label-8733
SELECT MAX ( - + 93 ) * + + 34 * + - 89
----
281418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8734
SELECT ALL 9 * + - MIN( DISTINCT - 22 ), + 73 DIV - ( - 93 ) * - COUNT( * ) * - 26 + + 62 AS col2
----
198
62

skipif mysql # not compatible
query II rowsort label-8734
SELECT ALL 9 * + - MIN ( DISTINCT - 22 ), + 73 / - ( - 93 ) * - COUNT ( * ) * - 26 + + 62 AS col2
----
198
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8735
SELECT DISTINCT 20 DIV ( + 28 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT 20 / ( + 28 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT DISTINCT 38 / 11 * + - CASE 0 WHEN - COUNT( * ) / - 57 + 23 THEN - - 53 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT 38 / 11 * + - CASE 0 WHEN - COUNT ( * ) / - 57 + 23 THEN - - 53 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL 16 col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8738
SELECT NULLIF ( - 82, - MAX( - 83 ) ) - - ( COUNT( * ) ) AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-8738
SELECT NULLIF ( - 82, - MAX ( - 83 ) ) - - ( COUNT ( * ) ) AS col0
----
-81

query I rowsort
SELECT 14 + - + 68 AS col2
----
-54

query I rowsort
SELECT 55 + - - 31 * 87 AS col2
----
2752

query I rowsort
SELECT 59 * - 57 AS col0
----
-3363

query I rowsort
SELECT ALL + 5 + - 83
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL NULLIF ( 20, + + 65 * + - 44 * ( - 57 ) / - ( 50 ) - 39 + - ( 90 ) ) * + 83 + - MIN( ALL 1 ) AS col0
----
1659

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL NULLIF ( 20, + + 65 * + - 44 * ( - 57 ) / - ( 50 ) - 39 + - ( 90 ) ) * + 83 + - MIN ( ALL 1 ) AS col0
----
1659

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8744
SELECT DISTINCT 72 + - CAST( + 43 AS DECIMAL ) + - - 25 + ( - 57 ) + 90 + + ( COALESCE ( - 61, - 79, 59 ) ) * 58 * CAST( NULL AS SIGNED ) * - 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT 72 + - CAST ( + 43 AS REAL ) + - - 25 + ( - 57 ) + 90 + + ( COALESCE ( - 61, - 79, 59 ) ) * 58 * CAST ( NULL AS INTEGER ) * - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8745
SELECT DISTINCT ( - - CASE + 39 WHEN 68 / CAST( + - COALESCE ( - SUM( DISTINCT - - 59 ), 92 + + + 88 + - 8 * - + 4 + + 30 * - 73, - COUNT( * ) / + 53 * CASE + - 32 WHEN 57 THEN NULL WHEN - 35 / - - 6 * - 89 - + 57 - - 29 * - + 40 THEN + COUNT( DISTINCT + 4 ) END * + - 29 * - 93, + + 39 + - 79 ) AS SIGNED ) THEN - CAST( - 78 AS SIGNED ) ELSE 67 END ) + 61
----
128

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT ( - - CASE + 39 WHEN 68 / CAST ( + - COALESCE ( - SUM ( DISTINCT - - 59 ), 92 + + + 88 + - 8 * - + 4 + + 30 * - 73, - COUNT ( * ) / + 53 * CASE + - 32 WHEN 57 THEN NULL WHEN - 35 / - - 6 * - 89 - + 57 - - 29 * - + 40 THEN + COUNT ( DISTINCT + 4 ) END * + - 29 * - 93, + + 39 + - 79 ) AS INTEGER ) THEN - CAST ( - 78 AS INTEGER ) ELSE 67 END ) + 61
----
128

onlyif mysql # DIV for integer division: 
query I rowsort label-8746
SELECT - 53 DIV + 86 * - + 44 - 66 + + + 71 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-8746
SELECT - 53 / + 86 * - + 44 - 66 + + + 71 AS col2
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT ALL CAST( - 85 AS SIGNED ) + 9
----
-76

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL CAST ( - 85 AS INTEGER ) + 9
----
-76

query I rowsort
SELECT DISTINCT + 60 + - 58 + - 28
----
-26

query I rowsort
SELECT COALESCE ( + 66, - 90 * - 23, + + 1 ) + 88 col2
----
154

query II rowsort
SELECT + + ( 16 ) AS col1, + 30 + + 24 * - - 60 + + + 38 AS col1
----
16
1508

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT ( - COUNT( * ) ) * + + 22 * - 96 + 98 col0
----
2210

skipif mysql # not compatible
query I rowsort label-8751
SELECT ( - COUNT ( * ) ) * + + 22 * - 96 + 98 col0
----
2210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT 16 * - ( + MAX( - 28 ) ) + 8 + - CAST( 70 AS SIGNED ) - 14
----
372

skipif mysql # not compatible
query I rowsort label-8752
SELECT 16 * - ( + MAX ( - 28 ) ) + 8 + - CAST ( 70 AS INTEGER ) - 14
----
372

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT - CASE + + 72 WHEN SUM( DISTINCT - + 16 ) THEN NULL WHEN + 42 + 40 + - ( - 89 ) * + 51 + + 0 THEN - + 89 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT - CASE + + 72 WHEN SUM ( DISTINCT - + 16 ) THEN NULL WHEN + 42 + 40 + - ( - 89 ) * + 51 + + 0 THEN - + 89 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT ALL - 58 - + + MIN( - 74 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - 58 - + + MIN ( - 74 ) AS col0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL - - COUNT( * ) * + 19 AS col1
----
19

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - - COUNT ( * ) * + 19 AS col1
----
19

query I rowsort
SELECT DISTINCT - 54 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT DISTINCT - + COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8757
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8758
SELECT ALL + 55 * - 76 AS col1, - 85 + + 30 + SUM( - 75 ) + + 50 + - - 27 DIV - 1 + + - 53 * - 47 * - 98 - + + 1 DIV - 63 * SUM( - 37 ) DIV - ( - 3 ) + + + 34
----
-4180
-244191

skipif mysql # not compatible
query II rowsort label-8758
SELECT ALL + 55 * - 76 AS col1, - 85 + + 30 + SUM ( - 75 ) + + 50 + - - 27 / - 1 + + - 53 * - 47 * - 98 - + + 1 / - 63 * SUM ( - 37 ) / - ( - 3 ) + + + 34
----
-4180
-244191

query I rowsort
SELECT ALL - - 70 * + + ( + - 98 )
----
-6860

query II rowsort
SELECT 52 + 26 AS col2, + 97 AS col1
----
78
97

query I rowsort
SELECT + + 95 AS col2
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8762
SELECT + ( 14 ) - + CAST( 21 AS SIGNED ) - + 35 DIV 51 DIV + 51 AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8762
SELECT + ( 14 ) - + CAST ( 21 AS INTEGER ) - + 35 / 51 / + 51 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT MAX( 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT MAX ( 40 )
----
40

query I rowsort
SELECT ALL 68 * + 46
----
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT + 74 + + 75 + - ( - 9 ) + 99 * - + COUNT( * ) * - - SUM( DISTINCT + 60 ) * + 71 / - CASE + 70 WHEN - - 87 THEN NULL WHEN - 2 * 85 + 57 THEN - 28 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT + 74 + + 75 + - ( - 9 ) + 99 * - + COUNT ( * ) * - - SUM ( DISTINCT + 60 ) * + 71 / - CASE + 70 WHEN - - 87 THEN NULL WHEN - 2 * 85 + 57 THEN - 28 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8766
SELECT DISTINCT - NULLIF ( CASE 27 WHEN + COUNT( - + CAST( NULL AS SIGNED ) ) / - COUNT( * ) THEN NULL WHEN + - 86 * 0 THEN - 44 ELSE NULL END, + COUNT( * ) ) * + 57 * - - 50 * ( - + 45 ) + 93 - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT - NULLIF ( CASE 27 WHEN + COUNT ( - + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) THEN NULL WHEN + - 86 * 0 THEN - 44 ELSE NULL END, + COUNT ( * ) ) * + 57 * - - 50 * ( - + 45 ) + 93 - 97 AS col2
----
NULL

query I rowsort
SELECT ALL 32 + - ( 77 )
----
-45

query I rowsort
SELECT - 38 + NULLIF ( + + 17, ( - + 52 ) )
----
-21

query I rowsort
SELECT + 44 - + 19
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8770
SELECT - 14 + + + ( - COUNT( * ) ) AS col0, 69 + - 59
----
-15
10

skipif mysql # not compatible
query II rowsort label-8770
SELECT - 14 + + + ( - COUNT ( * ) ) AS col0, 69 + - 59
----
-15
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT + COUNT( * ) + - - 12
----
13

skipif mysql # not compatible
query I rowsort label-8771
SELECT + COUNT ( * ) + - - 12
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8772
SELECT ALL ( - + COUNT( * ) ) + + - 76 + + 35 * 92 + + - 32 + - 2 - + 59 * + 25 + - - 59 * + 2 - + 90
----
1662

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL ( - + COUNT ( * ) ) + + - 76 + + 35 * 92 + + - 32 + - 2 - + 59 * + 25 + - - 59 * + 2 - + 90
----
1662

query II rowsort
SELECT 54 AS col0, + 64 AS col0
----
54
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT - CASE ( + CAST( - + 9 AS SIGNED ) ) WHEN + - 21 THEN + 80 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT - CASE ( + CAST ( - + 9 AS INTEGER ) ) WHEN + - 21 THEN + 80 END
----
NULL

query I rowsort
SELECT + 96 + + 24 col2
----
120

query I rowsort
SELECT + 8 + + 24 + 12
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8777
SELECT ALL 19 DIV + - 28
----
0

skipif mysql # not compatible
query I rowsort label-8777
SELECT ALL 19 / + - 28
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT 31 + - COUNT( * ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 31 + - COUNT ( * ) AS col1
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT - CASE + + COUNT( * ) WHEN + COUNT( + 49 ) THEN - 11 * - COUNT( * ) * 45 + - 54 DIV 28 WHEN + 15 THEN NULL END
----
-494

skipif mysql # not compatible
query I rowsort label-8779
SELECT - CASE + + COUNT ( * ) WHEN + COUNT ( + 49 ) THEN - 11 * - COUNT ( * ) * 45 + - 54 / 28 WHEN + 15 THEN NULL END
----
-494

query I rowsort
SELECT + 60 + NULLIF ( - + 12, - 38 ) col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT - MAX( + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-8781
SELECT - MAX ( + 16 )
----
-16

query II rowsort
SELECT ALL + 0 AS col1, + 0
----
0
0

query II rowsort
SELECT + NULLIF ( + 48, + 35 / - 65 ), 62 AS col2
----
48
62

query I rowsort
SELECT DISTINCT - 8 * + + CASE 25 WHEN + + 77 THEN NULL ELSE + 46 END - + 17
----
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT ALL COUNT( * ) * - - 61
----
61

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL COUNT ( * ) * - - 61
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8786
SELECT - 52, CAST( + - CAST( - 36 AS SIGNED ) AS SIGNED ) * + ( - - 13 ) + - + 28 AS col2
----
-52
440

skipif mysql # not compatible
query II rowsort label-8786
SELECT - 52, CAST ( + - CAST ( - 36 AS INTEGER ) AS INTEGER ) * + ( - - 13 ) + - + 28 AS col2
----
-52
440

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT ALL + 51, COUNT( * ) + - 51 AS col0
----
51
-50

skipif mysql # not compatible
query II rowsort label-8787
SELECT ALL + 51, COUNT ( * ) + - 51 AS col0
----
51
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8788
SELECT + - ( 72 ) * COALESCE ( - 20, + CAST( NULLIF ( - ( - 94 ), COALESCE ( COUNT( * ), - 68 * - 70 * - 10, - + ( - 62 ) ) ) AS SIGNED ), 69 ) + - + 96
----
1344

skipif mysql # not compatible
query I rowsort label-8788
SELECT + - ( 72 ) * COALESCE ( - 20, + CAST ( NULLIF ( - ( - 94 ), COALESCE ( COUNT ( * ), - 68 * - 70 * - 10, - + ( - 62 ) ) ) AS INTEGER ), 69 ) + - + 96
----
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8789
SELECT ALL + NULLIF ( + 32, - CAST( 88 AS SIGNED ) ) * 44
----
1408

skipif mysql # not compatible
query I rowsort label-8789
SELECT ALL + NULLIF ( + 32, - CAST ( 88 AS INTEGER ) ) * 44
----
1408

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT - 1 DIV 38 + 98
----
98

skipif mysql # not compatible
query I rowsort label-8790
SELECT - 1 / 38 + 98
----
98

query I rowsort
SELECT DISTINCT + + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT ALL + MAX( - 54 )
----
-54

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + MAX ( - 54 )
----
-54

query II rowsort
SELECT + - 20 AS col2, 18 * - 1 AS col1
----
-20
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT - - COUNT( * ) + ( 38 ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-8794
SELECT - - COUNT ( * ) + ( 38 ) AS col1
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT DISTINCT - 18 DIV + NULLIF ( + - 47, + - 76 )
----
0

skipif mysql # not compatible
query I rowsort label-8795
SELECT DISTINCT - 18 / + NULLIF ( + - 47, + - 76 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8796
SELECT - 59 AS col0, - 94 + - 75 + + 41 * + COUNT( * ) AS col1
----
-59
-128

skipif mysql # not compatible
query II rowsort label-8796
SELECT - 59 AS col0, - 94 + - 75 + + 41 * + COUNT ( * ) AS col1
----
-59
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT ALL - + COUNT( * ) * - 23
----
23

skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL - + COUNT ( * ) * - 23
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8798
SELECT DISTINCT + - 93, COUNT( * ) * 52 DIV - - 95 AS col2
----
-93
0

skipif mysql # not compatible
query II rowsort label-8798
SELECT DISTINCT + - 93, COUNT ( * ) * 52 / - - 95 AS col2
----
-93
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT - CAST( NULL AS SIGNED ) + + - ( CAST( NULL AS SIGNED ) ) + - + 71 + - - 31 * - CAST( NULL AS SIGNED ) * + 66 * + 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT - CAST ( NULL AS INTEGER ) + + - ( CAST ( NULL AS INTEGER ) ) + - + 71 + - - 31 * - CAST ( NULL AS INTEGER ) * + 66 * + 26 AS col1
----
NULL

query I rowsort
SELECT ALL + - 11 AS col0
----
-11

query I rowsort
SELECT ALL - 25 * - 9 AS col1
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT - 74 * COUNT( * ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-8802
SELECT - 74 * COUNT ( * ) AS col2
----
-74

query I rowsort
SELECT DISTINCT COALESCE ( + 18, + 94 ) AS col2
----
18

query I rowsort
SELECT ALL + 5 * CASE 78 WHEN + 15 THEN 64 END + 27 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - 68 + - 53 * - COUNT( * )
----
-15

skipif mysql # not compatible
query I rowsort label-8805
SELECT - 68 + - 53 * - COUNT ( * )
----
-15

query I rowsort
SELECT - 14 * + + 82 AS col0
----
-1148

query I rowsort
SELECT + 20 + 12 col1
----
32

query I rowsort
SELECT ALL - 4 + 97 + 61
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT DISTINCT CAST( + - 84 AS SIGNED )
----
-84

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT CAST ( + - 84 AS INTEGER )
----
-84

query I rowsort
SELECT - 84 * + 81 * + 68 AS col2
----
-462672

query I rowsort
SELECT ALL - ( + 64 ) + 83
----
19

query II rowsort
SELECT DISTINCT ( - 32 ) AS col1, - 99 AS col0
----
-32
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL - MAX( ALL 48 ) + 61 AS col2
----
13

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL - MAX ( ALL 48 ) + 61 AS col2
----
13

query I rowsort
SELECT - 48 - + + ( 16 )
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT + 54 * CASE + COUNT( * ) WHEN - + 90 THEN + COUNT( * ) + + 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT + 54 * CASE + COUNT ( * ) WHEN - + 90 THEN + COUNT ( * ) + + 41 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8816
SELECT + CAST( NULL AS SIGNED ) + 3 * 95 * - - 46 * + + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8816
SELECT + CAST ( NULL AS INTEGER ) + 3 * 95 * - - 46 * + + 52
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8817
SELECT + COUNT( * ) DIV + + ( - - 45 ) * 6 - - + 77 * 79 + - 75 AS col2
----
6008

skipif mysql # not compatible
query I rowsort label-8817
SELECT + COUNT ( * ) / + + ( - - 45 ) * 6 - - + 77 * 79 + - 75 AS col2
----
6008

query I rowsort
SELECT ALL + 91 - - 31
----
122

query I rowsort
SELECT ALL + - 26 AS col0
----
-26

query I rowsort
SELECT - 92 col1
----
-92

query I rowsort
SELECT DISTINCT + - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8822
SELECT DISTINCT - 67 DIV - ( + 81 ) + + 59 * + + COALESCE ( + 70, + 25 * - 59 + + 16 + + COUNT( * ) ) - - + 84 * - ( - COUNT( * ) )
----
4214

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - 67 / - ( + 81 ) + + 59 * + + COALESCE ( + 70, + 25 * - 59 + + 16 + + COUNT ( * ) ) - - + 84 * - ( - COUNT ( * ) )
----
4214

query I rowsort
SELECT DISTINCT + + 75 AS col1
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8824
SELECT - 99 DIV 7 * 14 + + 94 AS col2
----
-102

skipif mysql # not compatible
query I rowsort label-8824
SELECT - 99 / 7 * 14 + + 94 AS col2
----
-102

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8825
SELECT DISTINCT + CAST( - 64 AS SIGNED ) DIV - 36 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT + CAST ( - 64 AS INTEGER ) / - 36 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT ALL 97 DIV - 15
----
-6

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL 97 / - 15
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT + 67 + - - 79 DIV 83 + 48 AS col2
----
115

skipif mysql # not compatible
query I rowsort label-8827
SELECT + 67 + - - 79 / 83 + 48 AS col2
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT + - 69 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT + - 69 / + 91
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8829
SELECT + + ( CAST( NULL AS SIGNED ) ) * 41 * - CASE + + 89 WHEN + COUNT( * ) + + 41 THEN + - 83 END + - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8829
SELECT + + ( CAST ( NULL AS INTEGER ) ) * 41 * - CASE + + 89 WHEN + COUNT ( * ) + + 41 THEN + - 83 END + - - 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8830
SELECT DISTINCT + - ( + 59 ), COUNT( * ) AS col0
----
-59
1

skipif mysql # not compatible
query II rowsort label-8830
SELECT DISTINCT + - ( + 59 ), COUNT ( * ) AS col0
----
-59
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT ALL - 89 * + - COUNT( * ) - - 99
----
188

skipif mysql # not compatible
query I rowsort label-8831
SELECT ALL - 89 * + - COUNT ( * ) - - 99
----
188

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT + - COUNT( 85 ) * 88 + + - SUM( - NULLIF ( + - 55, + 82 ) ) AS col1
----
-143

skipif mysql # not compatible
query I rowsort label-8832
SELECT + - COUNT ( 85 ) * 88 + + - SUM ( - NULLIF ( + - 55, + 82 ) ) AS col1
----
-143

query I rowsort
SELECT ALL + + 33
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + COUNT( - 82 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8834
SELECT + COUNT ( - 82 ) AS col1
----
1

query I rowsort
SELECT ALL + - ( + - 66 ) AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT ALL - 23 + - - COUNT( * )
----
-22

skipif mysql # not compatible
query I rowsort label-8836
SELECT ALL - 23 + - - COUNT ( * )
----
-22

query I rowsort
SELECT ( + - ( - - 47 ) )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL 95 * 6 - COUNT( * ) AS col1
----
569

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL 95 * 6 - COUNT ( * ) AS col1
----
569

query I rowsort
SELECT DISTINCT + 95 + - 89 + + 65 + + 77
----
148

query I rowsort
SELECT 50 * + 39 * - CASE - + 39 WHEN 69 THEN - 26 + - 94 + - 82 * - + 0 * + + 99 WHEN + 17 - + 3 THEN NULL END * - 82
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8841
SELECT ( + - CAST( 80 AS SIGNED ) ) * - 51 * CAST( - 36 AS SIGNED ) + - - 60 AS col1
----
-146820

skipif mysql # not compatible
query I rowsort label-8841
SELECT ( + - CAST ( 80 AS INTEGER ) ) * - 51 * CAST ( - 36 AS INTEGER ) + - - 60 AS col1
----
-146820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8842
SELECT CAST( NULL AS SIGNED ) + - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-8842
SELECT CAST ( NULL AS INTEGER ) + - 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ALL - COUNT( * ) + + 11 * - 6
----
-67

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL - COUNT ( * ) + + 11 * - 6
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8844
SELECT ALL + 81 DIV + - 76
----
-1

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL + 81 / + - 76
----
-1

query I rowsort
SELECT NULLIF ( + 57, + 91 * 11 ) + + - 38 + - + 65 - - 49 * - 25 + 80 col0
----
-1191

query I rowsort
SELECT 49 * 85 * + 52
----
216580

query I rowsort
SELECT ALL - 9 + + - 15 AS col1
----
-24

query I rowsort
SELECT 30 + 23
----
53

query I rowsort
SELECT 39 + 27
----
66

query I rowsort
SELECT DISTINCT COALESCE ( + + 42, + 73, + 49 ) * - - ( - 75 ) + + 69 + ( 89 ) col2
----
-2992

query I rowsort
SELECT ALL - 73 + - 96 * 77 AS col0
----
-7465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 32 * + ( - 28 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8852
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 32 * + ( - 28 ) col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT CAST( NULL AS SIGNED ) + + ( 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT CAST ( NULL AS INTEGER ) + + ( 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT 39 + + + COUNT( * ) AS col0
----
40

skipif mysql # not compatible
query I rowsort label-8854
SELECT 39 + + + COUNT ( * ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT 74 - + MIN( - 82 ) AS col0
----
156

skipif mysql # not compatible
query I rowsort label-8855
SELECT 74 - + MIN ( - 82 ) AS col0
----
156

query I rowsort
SELECT ALL 41 col2
----
41

query I rowsort
SELECT 47 + + - 54 * + 61
----
-3247

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8858
SELECT ALL - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL - MIN ( ALL + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8859
SELECT ALL + NULLIF ( - - ( + 71 ), - SUM( ALL 89 ) / - - 39 - CAST( NULL AS DECIMAL ) + - 76 * + + 97 * + 28 / 43 )
----
71

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL + NULLIF ( - - ( + 71 ), - SUM ( ALL 89 ) / - - 39 - CAST ( NULL AS REAL ) + - 76 * + + 97 * + 28 / 43 )
----
71

query I rowsort
SELECT - - ( - 6 ) AS col2
----
-6

query I rowsort
SELECT - 98 + + 40 * - 78 AS col1
----
-3218

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT ALL - MIN( ALL + 40 ) * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL - MIN ( ALL + 40 ) * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8863
SELECT + 7 * - 60 DIV COUNT( * ) AS col0
----
-420

skipif mysql # not compatible
query I rowsort label-8863
SELECT + 7 * - 60 / COUNT ( * ) AS col0
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL + + COALESCE ( - MIN( - 7 ), 19, - 24 - + + 49 * 78 * 36 ) * 65 * - + COUNT( * )
----
-455

skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL + + COALESCE ( - MIN ( - 7 ), 19, - 24 - + + 49 * 78 * 36 ) * 65 * - + COUNT ( * )
----
-455

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT - MAX( ALL + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-8865
SELECT - MAX ( ALL + 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT MAX( ALL - 53 ) DIV - COALESCE ( + + 69, + 91 * 84, - - 3 * + SUM( ALL 4 ) - - 82 ) * + - COALESCE ( + + 20, + 59 ) * + COALESCE ( - NULLIF ( - 12, + 38 + - AVG ( DISTINCT + - 7 ) ), + 48 - - - 96 * - + 41, - NULLIF ( + 30, COUNT( * ) ), + + 37 ) + 50 * - 80
----
-4000

skipif mysql # not compatible
query I rowsort label-8866
SELECT MAX ( ALL - 53 ) / - COALESCE ( + + 69, + 91 * 84, - - 3 * + SUM ( ALL 4 ) - - 82 ) * + - COALESCE ( + + 20, + 59 ) * + COALESCE ( - NULLIF ( - 12, + 38 + - AVG ( DISTINCT + - 7 ) ), + 48 - - - 96 * - + 41, - NULLIF ( + 30, COUNT ( * ) ), + + 37 ) + 50 * - 80
----
-4000

query I rowsort
SELECT - ( - 40 ) AS col1
----
40

query I rowsort
SELECT ALL + + 51 * + 47 * + + 7 * - NULLIF ( - 94, + + 10 )
----
1577226

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - 74 * + 96 + + + 64 + + + 47 + - + MAX( - 88 )
----
-6905

skipif mysql # not compatible
query I rowsort label-8869
SELECT - 74 * + 96 + + + 64 + + + 47 + - + MAX ( - 88 )
----
-6905

query I rowsort
SELECT 47 * 51
----
2397

query I rowsort
SELECT + ( 32 ) + 76 AS col0
----
108

query I rowsort
SELECT DISTINCT - + 66
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT - 42 * + - 23 + + 51 + - 45 + 63 + - ( - + COALESCE ( - SUM( DISTINCT + 6 ), - 69 * + ( + COUNT( * ) ) + - - 33 + + + 8 ) )
----
1029

skipif mysql # not compatible
query I rowsort label-8873
SELECT - 42 * + - 23 + + 51 + - 45 + 63 + - ( - + COALESCE ( - SUM ( DISTINCT + 6 ), - 69 * + ( + COUNT ( * ) ) + - - 33 + + + 8 ) )
----
1029

query I rowsort
SELECT NULLIF ( - 59, 36 )
----
-59

query I rowsort
SELECT ALL - 86 col0
----
-86

query II rowsort
SELECT ALL - 29 AS col1, 29 col1
----
-29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8877
SELECT + 54 DIV + 99 + + 86
----
86

skipif mysql # not compatible
query I rowsort label-8877
SELECT + 54 / + 99 + + 86
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8878
SELECT ALL - - ( + 14 ) + + - CAST( 94 AS SIGNED ) - COUNT( * ) + - 8 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL - - ( + 14 ) + + - CAST ( 94 AS INTEGER ) - COUNT ( * ) + - 8 AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8879
SELECT ALL + COALESCE ( - COUNT( * ), 29 DIV + + 41 ) * 95
----
-95

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + COALESCE ( - COUNT ( * ), 29 / + + 41 ) * 95
----
-95

query III rowsort
SELECT ALL - 91 + - + 70 + 22 AS col1, 90 + 13 + + 44 * + + 64 + 20, + - 36 * + 9 col0
----
-139
2939
-324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8881
SELECT 6 * + CASE 47 WHEN + 61 THEN - 29 - + + CAST( NULL AS SIGNED ) END / - 47 + + 83 + - 74 / - 60
----
NULL

skipif mysql # not compatible
query I rowsort label-8881
SELECT 6 * + CASE 47 WHEN + 61 THEN - 29 - + + CAST ( NULL AS INTEGER ) END / - 47 + + 83 + - 74 / - 60
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT 4 * + CASE 87 WHEN + + NULLIF ( + 12, - 36 * 74 + COUNT( ALL - CAST( - 78 AS SIGNED ) ) * - 90 ) * + - 72 + ( - 84 ) THEN + + 12 ELSE NULL END * + 40 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT 4 * + CASE 87 WHEN + + NULLIF ( + 12, - 36 * 74 + COUNT ( ALL - CAST ( - 78 AS INTEGER ) ) * - 90 ) * + - 72 + ( - 84 ) THEN + + 12 ELSE NULL END * + 40 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT COUNT( * ) + 28 - COUNT( * ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-8883
SELECT COUNT ( * ) + 28 - COUNT ( * ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT COUNT( * ) * 75
----
75

skipif mysql # not compatible
query I rowsort label-8884
SELECT COUNT ( * ) * 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL COUNT( * ) * 16 AS col1
----
16

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL COUNT ( * ) * 16 AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT + 9, 74 * - - COUNT( * ) AS col0
----
9
74

skipif mysql # not compatible
query II rowsort label-8886
SELECT + 9, 74 * - - COUNT ( * ) AS col0
----
9
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8887
SELECT ALL COALESCE ( 53, 80 - 8 * - 72 ) * + + CAST( NULL AS SIGNED ) / 28, - 12 AS col0
----
NULL
-12

skipif mysql # not compatible
query II rowsort label-8887
SELECT ALL COALESCE ( 53, 80 - 8 * - 72 ) * + + CAST ( NULL AS INTEGER ) / 28, - 12 AS col0
----
NULL
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT + MIN( ALL + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-8888
SELECT + MIN ( ALL + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ( + COUNT( * ) ) * - + 88 + - 34
----
-122

skipif mysql # not compatible
query I rowsort label-8889
SELECT ( + COUNT ( * ) ) * - + 88 + - 34
----
-122

query I rowsort
SELECT 68 * - 31
----
-2108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8891
SELECT ( - - 59 ) * CAST( + 27 AS SIGNED ) AS col0
----
1593

skipif mysql # not compatible
query I rowsort label-8891
SELECT ( - - 59 ) * CAST ( + 27 AS INTEGER ) AS col0
----
1593

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8892
SELECT ALL + 15 * + MIN( ALL - CAST( 11 AS SIGNED ) ) * - + 41
----
6765

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL + 15 * + MIN ( ALL - CAST ( 11 AS INTEGER ) ) * - + 41
----
6765

query II rowsort
SELECT 94 col2, + 45 + - 85 * + 9 col0
----
94
-720

query I rowsort
SELECT DISTINCT + 97 * + 51 AS col0
----
4947

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT ALL - COUNT( * ), - 84 AS col2
----
-1
-84

skipif mysql # not compatible
query II rowsort label-8895
SELECT ALL - COUNT ( * ), - 84 AS col2
----
-1
-84

query II rowsort
SELECT DISTINCT + 90, 98 AS col2
----
90
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8897
SELECT ALL + 14 * 75 * - + 24 * - 87 * - 34 * - CAST( NULL AS SIGNED ) + + + COALESCE ( + CASE + + ( - 40 ) WHEN + COUNT( + - 53 ) THEN + 21 END, + 35 ) AS col0, 79 + + - 5 AS col2
----
NULL
74

skipif mysql # not compatible
query II rowsort label-8897
SELECT ALL + 14 * 75 * - + 24 * - 87 * - 34 * - CAST ( NULL AS INTEGER ) + + + COALESCE ( + CASE + + ( - 40 ) WHEN + COUNT ( + - 53 ) THEN + 21 END, + 35 ) AS col0, 79 + + - 5 AS col2
----
NULL
74

query II rowsort
SELECT ALL 66 AS col2, 87
----
66
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8899
SELECT + COUNT( * ) + + 76
----
77

skipif mysql # not compatible
query I rowsort label-8899
SELECT + COUNT ( * ) + + 76
----
77

query II rowsort
SELECT - + 31, + 66 AS col2
----
-31
66

query I rowsort
SELECT ALL + 56 + 83 AS col1
----
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT ALL - 98 + COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL - 98 + COUNT ( * )
----
-97

query I rowsort
SELECT - 85 - ( - 76 ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL + COUNT( * ) * ( + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL + COUNT ( * ) * ( + 40 )
----
40

query I rowsort
SELECT - - 1 * - 64 + + NULLIF ( - - 31, - 90 ) * - 30 * + 41
----
-38194

query I rowsort
SELECT ALL + + 88 * + - 49 + + + 45
----
-4267

query I rowsort
SELECT ALL - - 22 * + - 37 + - 54
----
-868

query I rowsort
SELECT + + ( - 70 ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT DISTINCT - + 23 * 1 * - + 2 * + COUNT( * ) + - COUNT( * ) * COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8909
SELECT DISTINCT - + 23 * 1 * - + 2 * + COUNT ( * ) + - COUNT ( * ) * COUNT ( * )
----
45

query I rowsort
SELECT ALL + 46 * 84 + - + 75 col1
----
3789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8911
SELECT + COUNT( * ) * - CAST( + 81 AS SIGNED )
----
-81

skipif mysql # not compatible
query I rowsort label-8911
SELECT + COUNT ( * ) * - CAST ( + 81 AS INTEGER )
----
-81

query I rowsort
SELECT + 85 col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8913
SELECT - COUNT( * ) DIV - 80
----
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT - COUNT ( * ) / - 80
----
0

query II rowsort
SELECT DISTINCT - ( - + 31 ) * + 15 + 65 + + - 19, + 61 AS col1
----
511
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT ALL + SUM( - 30 )
----
-30

skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL + SUM ( - 30 )
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT + MIN( + + 49 )
----
49

skipif mysql # not compatible
query I rowsort label-8916
SELECT + MIN ( + + 49 )
----
49

query I rowsort
SELECT ALL 19 * + 63
----
1197

query I rowsort
SELECT - 25 + - 48 AS col2
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT + COUNT( * ) + - 0 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8919
SELECT + COUNT ( * ) + - 0 AS col2
----
1

query I rowsort
SELECT ALL 13 * + 69 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT + COUNT( * ) * - 37
----
-37

skipif mysql # not compatible
query I rowsort label-8921
SELECT + COUNT ( * ) * - 37
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ( + - 36 ) * COUNT( * ) + + 2 AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8922
SELECT ( + - 36 ) * COUNT ( * ) + + 2 AS col2
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-8923
SELECT ALL MIN( ALL + 75 ) AS col1, ( 10 ) AS col0
----
75
10

skipif mysql # not compatible
query II rowsort label-8923
SELECT ALL MIN ( ALL + 75 ) AS col1, ( 10 ) AS col0
----
75
10

query I rowsort
SELECT DISTINCT 95 * 59
----
5605

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8925
SELECT DISTINCT MIN( - 16 ) AS col1, + COUNT( - 83 ) DIV - 63 + + NULLIF ( + + 43, + + 69 * + 50 * - - 34 ) DIV - 27 + + 67 * 32 + - - 69
----
-16
2212

skipif mysql # not compatible
query II rowsort label-8925
SELECT DISTINCT MIN ( - 16 ) AS col1, + COUNT ( - 83 ) / - 63 + + NULLIF ( + + 43, + + 69 * + 50 * - - 34 ) / - 27 + + 67 * 32 + - - 69
----
-16
2212

onlyif mysql # DIV for integer division: 
query II rowsort label-8926
SELECT + + ( + 4 ) + + 28 AS col1, + 17 DIV - 54 + - + 48
----
32
-48

skipif mysql # not compatible
query II rowsort label-8926
SELECT + + ( + 4 ) + + 28 AS col1, + 17 / - 54 + - + 48
----
32
-48

query I rowsort
SELECT + - 46 * + - 21 + - - 14 col2
----
980

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8928
SELECT + 33 + + 84 DIV - + CAST( + + 56 AS SIGNED ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-8928
SELECT + 33 + + 84 / - + CAST ( + + 56 AS INTEGER ) AS col1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT - COUNT( * ) + - + 91 + + 39 * - MIN( ALL CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT - COUNT ( * ) + - + 91 + + 39 * - MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT DISTINCT 77 DIV 60 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT 77 / 60 AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8931
SELECT + 47 * CAST( + 13 AS SIGNED ) DIV 89 * 34 AS col2
----
204

skipif mysql # not compatible
query I rowsort label-8931
SELECT + 47 * CAST ( + 13 AS INTEGER ) / 89 * 34 AS col2
----
204

query I rowsort
SELECT - 16 + + 78
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT ALL - COUNT( * ) + - COUNT( ALL - 4 ) AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL - COUNT ( * ) + - COUNT ( ALL - 4 ) AS col0
----
-2

query II rowsort
SELECT ALL + + 96 + 64 AS col0, - 59 * + 50 AS col0
----
160
-2950

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT + + 21 + SUM( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT( * ) * - 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT + + 21 + SUM ( ALL - CASE + 4 WHEN 26 THEN + + 23 - 58 - - 46 - - 56 - 88 END ) - - + 59 + - COUNT ( * ) * - 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT - + 72 + - - COUNT( DISTINCT + - 6 )
----
-71

skipif mysql # not compatible
query I rowsort label-8936
SELECT - + 72 + - - COUNT ( DISTINCT + - 6 )
----
-71

query I rowsort
SELECT ALL ( + + ( 59 ) ) + - 87 AS col2
----
-28

query I rowsort
SELECT DISTINCT - ( 27 ) * - 85 AS col1
----
2295

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + COUNT( * ) * - 12 AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8939
SELECT + COUNT ( * ) * - 12 AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - 19 * - COALESCE ( - + COUNT( * ), - 35, CASE + COALESCE ( - 32, - - 43 * + 48 - + 82, + 56 + + 15 ) WHEN + 82 THEN NULL WHEN + 53 / + + 1 / - 56 THEN - - MIN( + 62 ) WHEN AVG ( 89 ) THEN NULL END ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 19 * - COALESCE ( - + COUNT ( * ), - 35, CASE + COALESCE ( - 32, - - 43 * + 48 - + 82, + 56 + + 15 ) WHEN + 82 THEN NULL WHEN + 53 / + + 1 / - 56 THEN - - MIN ( + 62 ) WHEN AVG ( 89 ) THEN NULL END ) AS col1
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8941
SELECT - - 64 DIV + - ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-8941
SELECT - - 64 / + - ( + 95 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8942
SELECT DISTINCT - 42 DIV 59 AS col0, 62 * - 45 AS col1
----
0
-2790

skipif mysql # not compatible
query II rowsort label-8942
SELECT DISTINCT - 42 / 59 AS col0, 62 * - 45 AS col1
----
0
-2790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8943
SELECT ALL + 96 DIV + COUNT( * ) - 21 + - ( - - 66 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-8943
SELECT ALL + 96 / + COUNT ( * ) - 21 + - ( - - 66 ) AS col1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8944
SELECT CAST( 12 AS SIGNED ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-8944
SELECT CAST ( 12 AS INTEGER ) AS col0
----
12

query I rowsort
SELECT ALL + + 55
----
55

query I rowsort
SELECT - 9 + + 40
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8947
SELECT ALL + 86 DIV - COUNT( ALL - 90 ) - - NULLIF ( + 35, - 23 ) + 70 * - 69
----
-4881

skipif mysql # not compatible
query I rowsort label-8947
SELECT ALL + 86 / - COUNT ( ALL - 90 ) - - NULLIF ( + 35, - 23 ) + 70 * - 69
----
-4881

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL + COALESCE ( - 33, - + MIN( 67 ) )
----
-33

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL + COALESCE ( - 33, - + MIN ( 67 ) )
----
-33

query I rowsort
SELECT + 32 * - 3
----
-96

query I rowsort
SELECT ALL + NULLIF ( - + 50, + 43 + - 25 ) col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT DISTINCT - 33 * - CASE 78 WHEN 75 THEN COUNT( * ) * - - COUNT( * ) + + COUNT( * ) * - - 43 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8951
SELECT DISTINCT - 33 * - CASE 78 WHEN 75 THEN COUNT ( * ) * - - COUNT ( * ) + + COUNT ( * ) * - - 43 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT - 90 DIV - 78
----
1

skipif mysql # not compatible
query I rowsort label-8952
SELECT - 90 / - 78
----
1

query I rowsort
SELECT - 2 * + 13
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8954
SELECT - 54 DIV + - 76
----
0

skipif mysql # not compatible
query I rowsort label-8954
SELECT - 54 / + - 76
----
0

query I rowsort
SELECT ALL + 38 col0
----
38

query I rowsort
SELECT - 72 * - 23 AS col1
----
1656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL + ( CAST( 21 AS SIGNED ) )
----
21

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL + ( CAST ( 21 AS INTEGER ) )
----
21

query I rowsort
SELECT - 36 * - 65 AS col0
----
2340

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT CASE + 47 WHEN 17 THEN - + 86 / - - COUNT( * ) / - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT CASE + 47 WHEN 17 THEN - + 86 / - - COUNT ( * ) / - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT ALL - 79 DIV + + 17
----
-4

skipif mysql # not compatible
query I rowsort label-8960
SELECT ALL - 79 / + + 17
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8961
SELECT - COALESCE ( + COUNT( * ), - 53 * - 31 + + 18, + 25 ), CAST( NULL AS SIGNED ) + + 48 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8961
SELECT - COALESCE ( + COUNT ( * ), - 53 * - 31 + + 18, + 25 ), CAST ( NULL AS INTEGER ) + + 48 AS col2
----
-1
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT - + 42 DIV + - 29 col2
----
1

skipif mysql # not compatible
query I rowsort label-8962
SELECT - + 42 / + - 29 col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8963
SELECT + + 36 DIV - 35 + + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT + + 36 / - 35 + + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT DISTINCT + 73 * - + COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-8964
SELECT DISTINCT + 73 * - + COUNT ( * )
----
-73

query I rowsort
SELECT ALL - 62 + - - 39 + 74 AS col1
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8966
SELECT DISTINCT - ( 63 ) + 41 + 3 * + 4 - 1 DIV - + NULLIF ( COUNT( * ), + 46 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-8966
SELECT DISTINCT - ( 63 ) + 41 + 3 * + 4 - 1 / - + NULLIF ( COUNT ( * ), + 46 ) AS col0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8967
SELECT ALL 37 + + - 46 * NULLIF ( + - 13, 90 + - + COUNT( * ) ) + AVG ( ALL + CAST( NULL AS SIGNED ) ) - 91 * - 0 / - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL 37 + + - 46 * NULLIF ( + - 13, 90 + - + COUNT ( * ) ) + AVG ( ALL + CAST ( NULL AS INTEGER ) ) - 91 * - 0 / - COUNT ( * )
----
NULL

query II rowsort
SELECT - + 79 AS col0, 30 AS col0
----
-79
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT( * ) * + + ( - 32 ) + + 64 * 43 AS col1
----
2699

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL 50 + - 90 + + 84 + - 65 + COUNT ( * ) * + + ( - 32 ) + + 64 * 43 AS col1
----
2699

onlyif mysql # aggregate syntax: 
query II rowsort label-8970
SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT( * ) + - 55 AS col1, 7 - + - 32 - SUM( ALL - 28 ) + - 42 AS col1
----
-83
25

skipif mysql # not compatible
query II rowsort label-8970
SELECT - COALESCE ( - + 19, - 53 ) + + 47 * - COUNT ( * ) + - 55 AS col1, 7 - + - 32 - SUM ( ALL - 28 ) + - 42 AS col1
----
-83
25

onlyif mysql # aggregate syntax: 
query II rowsort label-8971
SELECT - - COUNT( * ) AS col0, 78 * COUNT( * ) + 26
----
1
104

skipif mysql # not compatible
query II rowsort label-8971
SELECT - - COUNT ( * ) AS col0, 78 * COUNT ( * ) + 26
----
1
104

query I rowsort
SELECT - 33 + + 84 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT MIN( ALL 11 )
----
11

skipif mysql # not compatible
query I rowsort label-8973
SELECT MIN ( ALL 11 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT MIN( + + 71 ) + + - 52
----
19

skipif mysql # not compatible
query I rowsort label-8974
SELECT MIN ( + + 71 ) + + - 52
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT DISTINCT 95 DIV + COALESCE ( - - ( + 46 ), + CASE - - 35 WHEN + - 4 THEN 8 WHEN - ( - 61 ) THEN + 33 ELSE NULL END )
----
2

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT 95 / + COALESCE ( - - ( + 46 ), + CASE - - 35 WHEN + - 4 THEN 8 WHEN - ( - 61 ) THEN + 33 ELSE NULL END )
----
2

query I rowsort
SELECT DISTINCT + ( - 64 ) AS col0
----
-64

query I rowsort
SELECT ( - - 42 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8978
SELECT DISTINCT MIN( ALL - 6 ) DIV 82
----
0

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT MIN ( ALL - 6 ) / 82
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - ( - - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - ( - - COUNT ( * ) )
----
-1

query I rowsort
SELECT 58 * 91 AS col0
----
5278

query I rowsort
SELECT 28 * 85 + 60 AS col1
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT + 63 * - 5 - + 72 * + 80 * MAX( ALL + 49 ) AS col2
----
-282555

skipif mysql # not compatible
query I rowsort label-8982
SELECT + 63 * - 5 - + 72 * + 80 * MAX ( ALL + 49 ) AS col2
----
-282555

query II rowsort
SELECT 84 * - 67 AS col1, + 82 AS col2
----
-5628
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8984
SELECT ALL + 83 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-8984
SELECT ALL + 83 / - 56
----
-1

query I rowsort
SELECT 83 * 68
----
5644

query I rowsort
SELECT ALL + 57 + - + 56 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8987
SELECT CAST( - - ( - + 32 ) AS SIGNED ) + + - CASE + 65 WHEN - 94 THEN - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8987
SELECT CAST ( - - ( - + 32 ) AS INTEGER ) + + - CASE + 65 WHEN - 94 THEN - COUNT ( * ) END AS col1
----
NULL

query II rowsort
SELECT 73 + + 73 AS col2, + 54
----
146
54

query I rowsort
SELECT ALL - 84 + 73 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8990
SELECT - 24 + - - COUNT( + 37 ) * 42 AS col1, 10 * - 22 * - 1 - - 43 + 96 * - + NULLIF ( - 15, 57 )
----
18
1703

skipif mysql # not compatible
query II rowsort label-8990
SELECT - 24 + - - COUNT ( + 37 ) * 42 AS col1, 10 * - 22 * - 1 - - 43 + 96 * - + NULLIF ( - 15, 57 )
----
18
1703

query I rowsort
SELECT DISTINCT + + 62 + + 81
----
143

query II rowsort
SELECT - 51 + + 84 AS col0, - 10 AS col2
----
33
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-8993
SELECT ALL - + 12 + + 19 DIV - - 7
----
-10

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - + 12 + + 19 / - - 7
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT SUM( - 47 ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-8994
SELECT SUM ( - 47 ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT 50 * CASE - - COUNT( * ) WHEN - AVG ( ALL - + 75 ) THEN - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8995
SELECT 50 * CASE - - COUNT ( * ) WHEN - AVG ( ALL - + 75 ) THEN - 62 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8996
SELECT + 74 * 95 * + NULLIF ( - 93, - 81 * COUNT( - 5 ) + + 92 + - + ( - 18 ) + + COUNT( * ) * + - 10 )
----
-653790

skipif mysql # not compatible
query I rowsort label-8996
SELECT + 74 * 95 * + NULLIF ( - 93, - 81 * COUNT ( - 5 ) + + 92 + - + ( - 18 ) + + COUNT ( * ) * + - 10 )
----
-653790

query I rowsort
SELECT ALL ( + 34 ) AS col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8998
SELECT + ( - 12 ) * - 3 + - CASE 43 WHEN - 40 + NULLIF ( + NULLIF ( + 48, - 84 ), - CASE 35 WHEN + COALESCE ( 51, 55 + - + CAST( NULL AS SIGNED ) * + 5, 79 ) + + NULLIF ( - 63, 3 + + + ( 51 ) ) * ( 94 ) * + 9 + ( - 98 ) THEN + 91 ELSE - 27 + 62 * + 9 END ) THEN + 61 * + + 7 END + + + ( + - 82 ) * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT + ( - 12 ) * - 3 + - CASE 43 WHEN - 40 + NULLIF ( + NULLIF ( + 48, - 84 ), - CASE 35 WHEN + COALESCE ( 51, 55 + - + CAST ( NULL AS INTEGER ) * + 5, 79 ) + + NULLIF ( - 63, 3 + + + ( 51 ) ) * ( 94 ) * + 9 + ( - 98 ) THEN + 91 ELSE - 27 + 62 * + 9 END ) THEN + 61 * + + 7 END + + + ( + - 82 ) * + 24
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8999
SELECT ALL + ( - ( + COUNT( * ) ) ) DIV - COUNT( * ) + + - 73 AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + ( - ( + COUNT ( * ) ) ) / - COUNT ( * ) + + - 73 AS col1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT DISTINCT - 17 - + COUNT( * ) AS col0
----
-18

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - 17 - + COUNT ( * ) AS col0
----
-18

query I rowsort
SELECT ALL + 58 * + 48 * 30 + - 36 AS col1
----
83484

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - COUNT( * ) * - + 14 AS col1
----
14

skipif mysql # not compatible
query I rowsort label-9002
SELECT - COUNT ( * ) * - + 14 AS col1
----
14

query I rowsort
SELECT 16 * + NULLIF ( + CASE + 61 WHEN + 20 THEN NULL WHEN + 42 THEN + 80 * - CASE 35 WHEN 37 THEN NULL ELSE 71 END + 73 END, - - 49 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9004
SELECT + 14 + + ( SUM( - 17 ) ) * 20, + 22 + - + 88 * COUNT( * ) AS col0
----
-326
-66

skipif mysql # not compatible
query II rowsort label-9004
SELECT + 14 + + ( SUM ( - 17 ) ) * 20, + 22 + - + 88 * COUNT ( * ) AS col0
----
-326
-66

query I rowsort
SELECT ALL ( + 3 ) - + 0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT 19 * + COUNT( ALL + 64 )
----
19

skipif mysql # not compatible
query I rowsort label-9006
SELECT 19 * + COUNT ( ALL + 64 )
----
19

query I rowsort
SELECT ALL 93 * - 10 * - 47
----
43710

query I rowsort
SELECT DISTINCT COALESCE ( - 44, + 76 ) AS col2
----
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9009
SELECT - + ( - CASE + + 38 WHEN + - 42 * - ( + 8 ) + - 82 + + COUNT( DISTINCT - 65 ) * + + AVG ( DISTINCT 69 ) + 60 THEN - 50 + - - 58 + + 48 WHEN + CAST( NULL AS SIGNED ) THEN + 3 + + - ( - 17 ) * + 98 * + 97 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT - + ( - CASE + + 38 WHEN + - 42 * - ( + 8 ) + - 82 + + COUNT ( DISTINCT - 65 ) * + + AVG ( DISTINCT 69 ) + 60 THEN - 50 + - - 58 + + 48 WHEN + CAST ( NULL AS INTEGER ) THEN + 3 + + - ( - 17 ) * + 98 * + 97 ELSE NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT NULLIF ( - + 85, + COUNT( * ) ) AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9010
SELECT NULLIF ( - + 85, + COUNT ( * ) ) AS col1
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9011
SELECT ALL - 23 - + CAST( - + AVG ( + + 33 ) AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL - 23 - + CAST ( - + AVG ( + + 33 ) AS INTEGER )
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9012
SELECT + 90 * + 13, MAX( ALL - 93 ) + - 38 * 36 AS col1
----
1170
-1461

skipif mysql # not compatible
query II rowsort label-9012
SELECT + 90 * + 13, MAX ( ALL - 93 ) + - 38 * 36 AS col1
----
1170
-1461

query I rowsort
SELECT DISTINCT - ( + - 26 ) AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT COUNT( * ) + 62
----
63

skipif mysql # not compatible
query I rowsort label-9014
SELECT COUNT ( * ) + 62
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT 87 DIV 66 + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-9015
SELECT 87 / 66 + - 9 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT + SUM( 41 )
----
41

skipif mysql # not compatible
query I rowsort label-9016
SELECT + SUM ( 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT ( + 61 ) / - 49 + + CAST( NULL AS SIGNED ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT ( + 61 ) / - 49 + + CAST ( NULL AS INTEGER ) * 58
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT ALL 73 DIV - + 42 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL 73 / - + 42 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9019
SELECT ALL CAST( NULL AS SIGNED ) * - 81 / 6 + 83 + + MIN( DISTINCT - + 26 ) + - 48 / - 50, - NULLIF ( - - 29, 44 ) AS col1
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-9019
SELECT ALL CAST ( NULL AS INTEGER ) * - 81 / 6 + 83 + + MIN ( DISTINCT - + 26 ) + - 48 / - 50, - NULLIF ( - - 29, 44 ) AS col1
----
NULL
-29

query I rowsort
SELECT ALL 52 * + 15 + + - 84 AS col2
----
696

query I rowsort
SELECT ALL 37 * - - COALESCE ( - 94, + 28 ) * - - 83 + 12 + - 53
----
-288715

onlyif mysql # aggregate syntax: 
query II rowsort label-9022
SELECT DISTINCT - 16 AS col2, + 35 * ( - + COUNT( * ) )
----
-16
-35

skipif mysql # not compatible
query II rowsort label-9022
SELECT DISTINCT - 16 AS col2, + 35 * ( - + COUNT ( * ) )
----
-16
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT SUM( DISTINCT + 51 ) * COUNT( + 3 )
----
51

skipif mysql # not compatible
query I rowsort label-9023
SELECT SUM ( DISTINCT + 51 ) * COUNT ( + 3 )
----
51

query I rowsort
SELECT DISTINCT 72 * - 53 col0
----
-3816

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL 89 * - + 91 + - - 15 + 26 + MIN( ALL 68 ) AS col0
----
-7990

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL 89 * - + 91 + - - 15 + 26 + MIN ( ALL 68 ) AS col0
----
-7990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9026
SELECT ( - COALESCE ( + + COUNT( * ), - 69, - - 87 ) ) DIV + 10 * - 65 * 94 + + 98 DIV - 82 + - 49
----
-50

skipif mysql # not compatible
query I rowsort label-9026
SELECT ( - COALESCE ( + + COUNT ( * ), - 69, - - 87 ) ) / + 10 * - 65 * 94 + + 98 / - 82 + - 49
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT ALL 32 * - COUNT( * ) * 90 * + 41 + + 24 + 62 + + COALESCE ( + 50, 96 + - 38, MAX( ALL + 27 ) + - 48 ) * + 29 col0
----
-116544

skipif mysql # not compatible
query I rowsort label-9027
SELECT ALL 32 * - COUNT ( * ) * 90 * + 41 + + 24 + 62 + + COALESCE ( + 50, 96 + - 38, MAX ( ALL + 27 ) + - 48 ) * + 29 col0
----
-116544

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT MAX( DISTINCT 58 ) col1
----
58

skipif mysql # not compatible
query I rowsort label-9028
SELECT MAX ( DISTINCT 58 ) col1
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9029
SELECT 25 * CAST( NULL AS DECIMAL ) * 20 + - 45 * + - 94 - - COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT 25 * CAST ( NULL AS REAL ) * 20 + - 45 * + - 94 - - COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT MAX( ALL + 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-9030
SELECT MAX ( ALL + 38 ) AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + CASE 61 WHEN - - SUM( + 27 ) THEN + 8 WHEN - 40 THEN NULL WHEN + SUM( DISTINCT 93 ) THEN + 52 + + 86 ELSE + - 9 END
----
-9

skipif mysql # not compatible
query I rowsort label-9031
SELECT + CASE 61 WHEN - - SUM ( + 27 ) THEN + 8 WHEN - 40 THEN NULL WHEN + SUM ( DISTINCT 93 ) THEN + 52 + + 86 ELSE + - 9 END
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9032
SELECT ALL + CAST( NULL AS SIGNED ) + + CASE - SUM( ALL + 31 ) WHEN - + 48 THEN NULL WHEN + - COUNT( 43 ) THEN + - CASE + 92 WHEN - - 84 THEN NULL WHEN - 35 + - + 10 * 95 * 83 THEN CAST( 46 AS DECIMAL ) END ELSE - - 24 + - CAST( - - ( - - 13 ) AS SIGNED ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL + CAST ( NULL AS INTEGER ) + + CASE - SUM ( ALL + 31 ) WHEN - + 48 THEN NULL WHEN + - COUNT ( 43 ) THEN + - CASE + 92 WHEN - - 84 THEN NULL WHEN - 35 + - + 10 * 95 * 83 THEN CAST ( 46 AS REAL ) END ELSE - - 24 + - CAST ( - - ( - - 13 ) AS INTEGER ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT ALL + + MAX( ALL 75 )
----
75

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL + + MAX ( ALL 75 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT - - COUNT( * ) * + 19
----
19

skipif mysql # not compatible
query I rowsort label-9034
SELECT - - COUNT ( * ) * + 19
----
19

query I rowsort
SELECT ALL - COALESCE ( - - 84, 53, - - 33 * - 81 ) * - - NULLIF ( - 17, - 59 ) AS col1
----
1428

query I rowsort
SELECT DISTINCT + - 14
----
-14

query I rowsort
SELECT - + 62 AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT ALL + 79 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL + 79 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 2 * + 5
----
10

query I rowsort
SELECT - 72 * + 40 * - 89 AS col0
----
256320

query I rowsort
SELECT DISTINCT + 29 * 51 AS col0
----
1479

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT ALL + CASE - - 71 WHEN + 59 * - + 97 * + COUNT( * ) + + 27 * + 71 THEN 95 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + CASE - - 71 WHEN + 59 * - + 97 * + COUNT ( * ) + + 27 * + 71 THEN 95 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT - - 32 - + - 37 - 55 + + ( - - 25 ) * + 55 * + 42 * - 47 col0
----
-2714236

query II rowsort
SELECT ALL 48, 18 AS col2
----
48
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9045
SELECT - COUNT( DISTINCT + - ( - - 95 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9045
SELECT - COUNT ( DISTINCT + - ( - - 95 ) )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9046
SELECT ALL + + 97 DIV 5
----
19

skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL + + 97 / 5
----
19

query I rowsort
SELECT - + 41 * + - 95
----
3895

query II rowsort
SELECT - 9, + 23 AS col1
----
-9
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9049
SELECT - - 72 + - CAST( - + NULLIF ( + - 39, + - 6 + - ( + 19 ) ) AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-9049
SELECT - - 72 + - CAST ( - + NULLIF ( + - 39, + - 6 + - ( + 19 ) ) AS INTEGER ) AS col1
----
33

query II rowsort
SELECT 30 AS col1, + 39 AS col2
----
30
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT - COUNT( * ) DIV - + 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9051
SELECT - COUNT ( * ) / - + 92 AS col1
----
0

query I rowsort
SELECT - 3 * - 48 AS col1
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT + COUNT( * ) * + 16
----
16

skipif mysql # not compatible
query I rowsort label-9053
SELECT + COUNT ( * ) * + 16
----
16

query II rowsort
SELECT 35, 52 col2
----
35
52

query I rowsort
SELECT ALL 91 + - 43 * 28 + - 93 * + 11 + + 13 + 75 - - - 21
----
-2069

query I rowsort
SELECT ALL 49 + + 16
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9057
SELECT COUNT( * ) DIV COUNT( ALL + 28 ) - + 36 + - COUNT( * ) + + 60 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9057
SELECT COUNT ( * ) / COUNT ( ALL + 28 ) - + 36 + - COUNT ( * ) + + 60 AS col1
----
24

query I rowsort
SELECT ( + 78 )
----
78

query II rowsort
SELECT - COALESCE ( 49, - 55 ) * + 54 AS col2, 39 AS col0
----
-2646
39

query I rowsort
SELECT + ( + 20 ) * - 83
----
-1660

query I rowsort
SELECT ( 4 ) col1
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9062
SELECT ALL 60 * + - 12 + - COALESCE ( + CASE 78 WHEN - 6 * ( - 33 ) + + 67 THEN NULL ELSE + COUNT( * ) * - MIN( COALESCE ( - 34, + 87 ) ) END, + - 30 + 5 DIV + 68 ) AS col2
----
-754

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL 60 * + - 12 + - COALESCE ( + CASE 78 WHEN - 6 * ( - 33 ) + + 67 THEN NULL ELSE + COUNT ( * ) * - MIN ( COALESCE ( - 34, + 87 ) ) END, + - 30 + 5 / + 68 ) AS col2
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT + COUNT( ALL 14 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9063
SELECT + COUNT ( ALL 14 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ( - + NULLIF ( + - 91, + COUNT( * ) ) ) col1
----
91

skipif mysql # not compatible
query I rowsort label-9064
SELECT ( - + NULLIF ( + - 91, + COUNT ( * ) ) ) col1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT DISTINCT 22 * + + NULLIF ( + MIN( + + NULLIF ( - + 3, - 73 ) ), - COUNT( * ) ) + - 76 AS col1
----
-142

skipif mysql # not compatible
query I rowsort label-9065
SELECT DISTINCT 22 * + + NULLIF ( + MIN ( + + NULLIF ( - + 3, - 73 ) ), - COUNT ( * ) ) + - 76 AS col1
----
-142

query I rowsort
SELECT ( - 24 ) AS col2
----
-24

query I rowsort
SELECT ALL + 63 col2
----
63

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9068
SELECT CAST( - 30 AS SIGNED ) DIV + + 38 - + - 65 col0, 67
----
65
67

skipif mysql # not compatible
query II rowsort label-9068
SELECT CAST ( - 30 AS INTEGER ) / + + 38 - + - 65 col0, 67
----
65
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9069
SELECT ALL 97 * - COUNT( DISTINCT + 66 ) + COUNT( * ) + + - 6 + + 70 * CAST( - 92 AS SIGNED ) + - ( + CAST( 26 AS SIGNED ) ) col1
----
-6568

skipif mysql # not compatible
query I rowsort label-9069
SELECT ALL 97 * - COUNT ( DISTINCT + 66 ) + COUNT ( * ) + + - 6 + + 70 * CAST ( - 92 AS INTEGER ) + - ( + CAST ( 26 AS INTEGER ) ) col1
----
-6568

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT CASE 65 WHEN + 70 + 24 + ( + 88 ) + + 13 + + COUNT( * ) + - 77 / 69 THEN + 10 WHEN 22 THEN - 76 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9070
SELECT CASE 65 WHEN + 70 + 24 + ( + 88 ) + + 13 + + COUNT ( * ) + - 77 / 69 THEN + 10 WHEN 22 THEN - 76 END
----
NULL

query I rowsort
SELECT ALL + - 3 AS col1
----
-3

query I rowsort
SELECT ( 78 ) * + 2 + 51 + - 13 + - 67 AS col1
----
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9073
SELECT + 47 * - 99 AS col1, + COUNT( * ) * + - COUNT( * ) * + + COUNT( * ) - + 78 + + CAST( NULL AS SIGNED ) / + - 37
----
-4653
NULL

skipif mysql # not compatible
query II rowsort label-9073
SELECT + 47 * - 99 AS col1, + COUNT ( * ) * + - COUNT ( * ) * + + COUNT ( * ) - + 78 + + CAST ( NULL AS INTEGER ) / + - 37
----
-4653
NULL

query I rowsort
SELECT + 0 + 10 col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT ALL + ( 47 ) * - COUNT( DISTINCT - 52 ) AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL + ( 47 ) * - COUNT ( DISTINCT - 52 ) AS col1
----
-47

query I rowsort
SELECT DISTINCT 88 * - + 13 AS col2
----
-1144

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT DISTINCT - 25 DIV - 35 col1
----
0

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT - 25 / - 35 col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9078
SELECT ALL - SUM( DISTINCT 10 ) AS col0, + COUNT( * ) col1
----
-10
1

skipif mysql # not compatible
query II rowsort label-9078
SELECT ALL - SUM ( DISTINCT 10 ) AS col0, + COUNT ( * ) col1
----
-10
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + - 87 + + + 80 + + 61 + + 38 * COUNT( * ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-9079
SELECT + - 87 + + + 80 + + 61 + + 38 * COUNT ( * ) AS col2
----
92

query III rowsort
SELECT - 88 AS col2, 61 * - + ( - - 46 ) col0, + 85
----
-88
-2806
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9081
SELECT - 99, - 49 + + 48 + 49 / ( - + 51 ) * + 92 * + ( + NULLIF ( - 14, 37 ) ) + + CAST( NULL AS SIGNED ) AS col0
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-9081
SELECT - 99, - 49 + + 48 + 49 / ( - + 51 ) * + 92 * + ( + NULLIF ( - 14, 37 ) ) + + CAST ( NULL AS INTEGER ) AS col0
----
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT + ( COUNT( * ) ) * - 11 + + 79 AS col0
----
68

skipif mysql # not compatible
query I rowsort label-9082
SELECT + ( COUNT ( * ) ) * - 11 + + 79 AS col0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9083
SELECT ALL - 24 + COALESCE ( - 88, COUNT( * ) DIV - 36 * + 8 - - + 3 * - CAST( NULL AS SIGNED ) ) + 74
----
-38

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - 24 + COALESCE ( - 88, COUNT ( * ) / - 36 * + 8 - - + 3 * - CAST ( NULL AS INTEGER ) ) + 74
----
-38

query I rowsort
SELECT ALL + 69 + + - 87
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL + 24 + COUNT( ALL - - 44 ) + - 42
----
-17

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL + 24 + COUNT ( ALL - - 44 ) + - 42
----
-17

query I rowsort
SELECT ALL - 70 + 25
----
-45

query I rowsort
SELECT + 19 * 29 AS col2
----
551

query I rowsort
SELECT - 37 + - + 79 col0
----
-116

query I rowsort
SELECT 7 col2
----
7

query I rowsort
SELECT 12 * + - 52 AS col0
----
-624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT DISTINCT - ( - CAST( + 71 AS SIGNED ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT - ( - CAST ( + 71 AS INTEGER ) ) AS col2
----
71

query II rowsort
SELECT ALL - 25 + - 82 + 92, 53 AS col1
----
-15
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9093
SELECT + 12 * + CAST( NULL AS SIGNED ) / + MIN( 45 ) + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT + 12 * + CAST ( NULL AS INTEGER ) / + MIN ( 45 ) + - 76
----
NULL

query I rowsort
SELECT DISTINCT - ( + - 4 ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT ALL + - 6 * + NULLIF ( + ( - 74 ), COUNT( * ) * - 9 * + - COUNT( ALL - 9 ) ) * 52 + + + 19 AS col2
----
23107

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + - 6 * + NULLIF ( + ( - 74 ), COUNT ( * ) * - 9 * + - COUNT ( ALL - 9 ) ) * 52 + + + 19 AS col2
----
23107

query I rowsort
SELECT DISTINCT - - COALESCE ( - 6, - 25 + 31 ) - 23
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT COUNT( * ) + + 83 + + 78 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-9097
SELECT COUNT ( * ) + + 83 + + 78 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT + 14 * - CAST( - - 1 AS SIGNED ) * - COALESCE ( + + ( - 5 ), + 45 + + 98 * + COUNT( * ) + + 98, + COUNT( * ), - 52 ) + - COUNT( + 72 ) + + SUM( DISTINCT - 39 ) + + NULLIF ( - 8, + + 14 + - - 91 ) AS col2
----
-118

skipif mysql # not compatible
query I rowsort label-9098
SELECT + 14 * - CAST ( - - 1 AS INTEGER ) * - COALESCE ( + + ( - 5 ), + 45 + + 98 * + COUNT ( * ) + + 98, + COUNT ( * ), - 52 ) + - COUNT ( + 72 ) + + SUM ( DISTINCT - 39 ) + + NULLIF ( - 8, + + 14 + - - 91 ) AS col2
----
-118

query I rowsort
SELECT + 93 * + 63 - + 6 - - 37
----
5890

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT ALL - + COALESCE ( - + 78, + 99 + ( - + COALESCE ( COUNT( * ), - 83 + + 1 ) ) * 99 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL - + COALESCE ( - + 78, + 99 + ( - + COALESCE ( COUNT ( * ), - 83 + + 1 ) ) * 99 ) AS col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL - 96 * CASE + + COUNT( * ) WHEN - 56 * + 92 THEN + MIN( + 50 ) + - 80 + + 83 WHEN - - 72 THEN - + 80 ELSE 10 * + + 77 * + + 91 + 23 END
----
-6728928

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - 96 * CASE + + COUNT ( * ) WHEN - 56 * + 92 THEN + MIN ( + 50 ) + - 80 + + 83 WHEN - - 72 THEN - + 80 ELSE 10 * + + 77 * + + 91 + 23 END
----
-6728928

query I rowsort
SELECT NULLIF ( + 16, + 58 ) AS col1
----
16

query I rowsort
SELECT ALL 60 * - 98 + - + 77
----
-5957

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9104
SELECT DISTINCT - - ( - 59 ) DIV + COUNT( * ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-9104
SELECT DISTINCT - - ( - 59 ) / + COUNT ( * ) AS col1
----
-59

query I rowsort
SELECT ALL 78 * 83
----
6474

query I rowsort
SELECT 63 * - 8
----
-504

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT ALL 17 + - 78 col1, 97 * + 42 * + ( - 61 ) * + + COUNT( ALL 83 ) AS col2
----
-61
-248514

skipif mysql # not compatible
query II rowsort label-9107
SELECT ALL 17 + - 78 col1, 97 * + 42 * + ( - 61 ) * + + COUNT ( ALL 83 ) AS col2
----
-61
-248514

query I rowsort
SELECT - NULLIF ( - - 43, + - 48 )
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL - COUNT( * ) * - ( + 71 ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL - COUNT ( * ) * - ( + 71 ) AS col1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9110
SELECT 43 * NULLIF ( NULLIF ( + 4, + ( MIN( - 32 ) ) * 46 ), - 36 + + - COUNT( * ) ) + - + 25 DIV - 80 AS col1
----
172

skipif mysql # not compatible
query I rowsort label-9110
SELECT 43 * NULLIF ( NULLIF ( + 4, + ( MIN ( - 32 ) ) * 46 ), - 36 + + - COUNT ( * ) ) + - + 25 / - 80 AS col1
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT COUNT( ALL 72 ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-9111
SELECT COUNT ( ALL 72 ) * + 43
----
43

query I rowsort
SELECT DISTINCT - COALESCE ( - 86, ( - - 26 ) ) col0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9113
SELECT + CAST( NULL AS SIGNED ) * 62 * 6 * - + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-9113
SELECT + CAST ( NULL AS INTEGER ) * 62 * 6 * - + 50
----
NULL

query I rowsort
SELECT ALL 14 + - + 99
----
-85

query I rowsort
SELECT 2 * + 42
----
84

query II rowsort
SELECT ALL 8 * + 83 * - 70 AS col2, 45
----
-46480
45

query I rowsort
SELECT 12 - - 59
----
71

query I rowsort
SELECT - 66 col2
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9119
SELECT ALL - COUNT( * ) - 96 + 65 DIV - 26
----
-99

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL - COUNT ( * ) - 96 + 65 / - 26
----
-99

query I rowsort
SELECT 92 * - 23 AS col2
----
-2116

query I rowsort
SELECT ALL 72 * - + 35 AS col2
----
-2520

query I rowsort
SELECT 2 + - 90
----
-88

query I rowsort
SELECT DISTINCT 7 * - 41
----
-287

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT 18 * COUNT( * ) col2
----
18

skipif mysql # not compatible
query I rowsort label-9124
SELECT 18 * COUNT ( * ) col2
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9125
SELECT SUM( - 54 ) DIV - COUNT( * ) - - + 60 AS col0
----
114

skipif mysql # not compatible
query I rowsort label-9125
SELECT SUM ( - 54 ) / - COUNT ( * ) - - + 60 AS col0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT COUNT( ALL + 42 )
----
1

skipif mysql # not compatible
query I rowsort label-9126
SELECT COUNT ( ALL + 42 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9127
SELECT CAST( - COUNT( * ) AS SIGNED ) + + ( + COUNT( 28 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + + ( + COUNT ( 28 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9128
SELECT 29 DIV 43 - + 81
----
-81

skipif mysql # not compatible
query I rowsort label-9128
SELECT 29 / 43 - + 81
----
-81

query I rowsort
SELECT DISTINCT - - 61 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT COUNT( * ) - - 40 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-9130
SELECT COUNT ( * ) - - 40 AS col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9131
SELECT DISTINCT - + 44, MAX( ALL + 89 ) col2
----
-44
89

skipif mysql # not compatible
query II rowsort label-9131
SELECT DISTINCT - + 44, MAX ( ALL + 89 ) col2
----
-44
89

query I rowsort
SELECT ALL - 39 * - 13 * + 31 AS col1
----
15717

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9133
SELECT + COUNT( + CAST( NULL AS SIGNED ) ) + 33 + + 59 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9133
SELECT + COUNT ( + CAST ( NULL AS INTEGER ) ) + 33 + + 59 AS col0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9134
SELECT ALL + + 23 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL + + 23 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 11 + 66
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + 68 - + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-9136
SELECT + 68 - + COUNT ( * )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT ALL MAX( ( - - 26 ) ) + + 85
----
111

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL MAX ( ( - - 26 ) ) + + 85
----
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9138
SELECT ALL + COUNT( * ) AS col0, + 16 + - + 81 DIV + + 36 + + + 48
----
1
62

skipif mysql # not compatible
query II rowsort label-9138
SELECT ALL + COUNT ( * ) AS col0, + 16 + - + 81 / + + 36 + + + 48
----
1
62

query I rowsort
SELECT ALL 26 * - 27 col1
----
-702

query II rowsort
SELECT 77 + + 27 - + 37 * + - 21 AS col2, - NULLIF ( + 8, - 94 ) col0
----
881
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT ALL - 70 + - + 78 * - - MIN( - 15 ) * 10
----
11630

skipif mysql # not compatible
query I rowsort label-9141
SELECT ALL - 70 + - + 78 * - - MIN ( - 15 ) * 10
----
11630

query I rowsort
SELECT DISTINCT 73 * - + 14 AS col2
----
-1022

query I rowsort
SELECT 64 + 33 + - 88 + 28
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-9144
SELECT 67 DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-9144
SELECT 67 / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - CASE - - 84 WHEN + COUNT( * ) * + COALESCE ( + - 19, - MAX( ( 30 ) ) ) + - COUNT( * ) THEN - - 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT - CASE - - 84 WHEN + COUNT ( * ) * + COALESCE ( + - 19, - MAX ( ( 30 ) ) ) + - COUNT ( * ) THEN - - 25 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9146
SELECT ALL AVG ( - ( + 3 ) ) - + COUNT( + 94 ) * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL AVG ( - ( + 3 ) ) - + COUNT ( + 94 ) * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9147
SELECT + ( - + 89 ) DIV CAST( 24 AS SIGNED ) AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-9147
SELECT + ( - + 89 ) / CAST ( 24 AS INTEGER ) AS col1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9148
SELECT + 42 * - 51 AS col0, 75 DIV COUNT( * ) * 23 * 75
----
-2142
129375

skipif mysql # not compatible
query II rowsort label-9148
SELECT + 42 * - 51 AS col0, 75 / COUNT ( * ) * 23 * 75
----
-2142
129375

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9149
SELECT + 60 + + - CAST( NULL AS DECIMAL ) / + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9149
SELECT + 60 + + - CAST ( NULL AS REAL ) / + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - COUNT( - - 35 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9150
SELECT - COUNT ( - - 35 ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT + ( - CAST( - COUNT( * ) AS SIGNED ) ) + + ( + - 38 )
----
-37

skipif mysql # not compatible
query I rowsort label-9151
SELECT + ( - CAST ( - COUNT ( * ) AS INTEGER ) ) + + ( + - 38 )
----
-37

query I rowsort
SELECT + 6 - 11 col2
----
-5

query I rowsort
SELECT + 12 * + 61
----
732

query I rowsort
SELECT - 30 + + + 19 AS col2
----
-11

query I rowsort
SELECT DISTINCT + + 31 AS col1
----
31

query I rowsort
SELECT + - 77 AS col0
----
-77

query I rowsort
SELECT ALL + - 49 AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT - - COUNT( * ) * + + 52 + - 20 * - 87 * + - 9 AS col2
----
-15608

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT - - COUNT ( * ) * + + 52 + - 20 * - 87 * + - 9 AS col2
----
-15608

query I rowsort
SELECT ALL + + 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL + + COUNT( DISTINCT 69 ) * - COUNT( * ) + + 91 * + 19
----
1728

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL + + COUNT ( DISTINCT 69 ) * - COUNT ( * ) + + 91 * + 19
----
1728

query I rowsort
SELECT - NULLIF ( + ( - 43 ), 84 + + 48 - + + COALESCE ( - 24, - - 93, 30 ) - + - 40 - 98 / + 85 ) col2
----
43

query I rowsort
SELECT - 25 + + 28 * - 6
----
-193

query I rowsort
SELECT + - ( - + 91 )
----
91

query I rowsort
SELECT + 69 * + 14
----
966

query I rowsort
SELECT - 38 + - - 74
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9166
SELECT + CASE + + 20 WHEN + 13 THEN + + CAST( NULL AS SIGNED ) ELSE NULL END * + - 70, - 45 AS col0
----
NULL
-45

skipif mysql # not compatible
query II rowsort label-9166
SELECT + CASE + + 20 WHEN + 13 THEN + + CAST ( NULL AS INTEGER ) ELSE NULL END * + - 70, - 45 AS col0
----
NULL
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-9167
SELECT ALL - 94 * 69 + + + 96 + + COUNT( * ) AS col2, 59 AS col2
----
-6389
59

skipif mysql # not compatible
query II rowsort label-9167
SELECT ALL - 94 * 69 + + + 96 + + COUNT ( * ) AS col2, 59 AS col2
----
-6389
59

query I rowsort
SELECT - - 47 * - 79
----
-3713

query I rowsort
SELECT DISTINCT + - 46 * - 22 * - 74 * 83 AS col1
----
-6215704

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9170
SELECT DISTINCT 29 * CAST( NULL AS SIGNED ) * - COUNT( * ) + - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT 29 * CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 99
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - CASE 58 WHEN - COUNT( * ) THEN NULL WHEN - + COALESCE ( - 42, + - MAX( 12 ), + + 13 * - + 9 + - 79 ) + - + 77 THEN + - 51 END * 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - CASE 58 WHEN - COUNT ( * ) THEN NULL WHEN - + COALESCE ( - 42, + - MAX ( 12 ), + + 13 * - + 9 + - 79 ) + - + 77 THEN + - 51 END * 22 AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 83 * + 19
----
-1577

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT - COUNT( * ) * 86 AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-9173
SELECT - COUNT ( * ) * 86 AS col1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL - 65 * + COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - 65 * + COUNT ( * )
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9175
SELECT + CAST( NULL AS SIGNED ) * - NULLIF ( + 91, + + 35 ) - + ( - + 40 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT + CAST ( NULL AS INTEGER ) * - NULLIF ( + 91, + + 35 ) - + ( - + 40 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9176
SELECT COUNT( - + 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9176
SELECT COUNT ( - + 19 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9177
SELECT - 99 AS col1, MIN( - 50 )
----
-99
-50

skipif mysql # not compatible
query II rowsort label-9177
SELECT - 99 AS col1, MIN ( - 50 )
----
-99
-50

query I rowsort
SELECT DISTINCT ( 75 ) AS col2
----
75

query I rowsort
SELECT ALL + 66 * + + 42 AS col1
----
2772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9180
SELECT - 66 - + - CAST( + + 70 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-9180
SELECT - 66 - + - CAST ( + + 70 AS INTEGER )
----
4

query I rowsort
SELECT DISTINCT ( - 96 )
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9182
SELECT ALL CASE - 10 WHEN - 81 THEN + 3 - 91 + + 85 END * - + 58 / + + 96, - COUNT( * ) col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-9182
SELECT ALL CASE - 10 WHEN - 81 THEN + 3 - 91 + + 85 END * - + 58 / + + 96, - COUNT ( * ) col0
----
NULL
-1

query I rowsort
SELECT + 60 * - 48 * - - 33
----
-95040

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9184
SELECT DISTINCT + COUNT( * ) DIV - + 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT + COUNT ( * ) / - + 50 AS col2
----
0

query I rowsort
SELECT - ( - 35 ) + + + CASE + + 23 WHEN - 7 - + 26 * 68 THEN + - 75 ELSE + 47 END AS col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9186
SELECT + 13 DIV 39
----
0

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 13 / 39
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9187
SELECT ALL NULLIF ( - + 45, 24 ) * - 31 * NULLIF ( + + 84, - - 30 * COUNT( * ) * CAST( + 80 AS SIGNED ) + - 74 / + 90 )
----
117180

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL NULLIF ( - + 45, 24 ) * - 31 * NULLIF ( + + 84, - - 30 * COUNT ( * ) * CAST ( + 80 AS INTEGER ) + - 74 / + 90 )
----
117180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT - CAST( NULL AS SIGNED ) * - ( 69 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9188
SELECT - CAST ( NULL AS INTEGER ) * - ( 69 ) AS col2
----
NULL

query II rowsort
SELECT - 83 + + ( + - 38 ), + 69 AS col1
----
-121
69

query I rowsort
SELECT + 89 - 75 + - 56
----
-42

query II rowsort
SELECT ALL 84 col1, 4
----
84
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT + 77 DIV - 82 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT + 77 / - 82 AS col0
----
0

query II rowsort
SELECT ALL + COALESCE ( 84, - - 11, - + 63 ) * CASE 40 WHEN 85 THEN - 43 + - 69 + + COALESCE ( 50, - 1 * - - 63, 79 ) END + 96 AS col2, + ( + 1 )
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT ALL - 9 DIV - 68 + COUNT( ALL - 31 )
----
1

skipif mysql # not compatible
query I rowsort label-9194
SELECT ALL - 9 / - 68 + COUNT ( ALL - 31 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9195
SELECT + - 3 DIV 16 - - 13 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9195
SELECT + - 3 / 16 - - 13 AS col0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT - - 69 DIV - - COUNT( * ) + 55
----
124

skipif mysql # not compatible
query I rowsort label-9196
SELECT - - 69 / - - COUNT ( * ) + 55
----
124

query II rowsort
SELECT ALL + 59 AS col0, + 48
----
59
48

query I rowsort
SELECT + 53 + + - 52
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + MIN( + 51 ) col1
----
51

skipif mysql # not compatible
query I rowsort label-9199
SELECT + MIN ( + 51 ) col1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT + 90 AS col1, COUNT( * )
----
90
1

skipif mysql # not compatible
query II rowsort label-9200
SELECT + 90 AS col1, COUNT ( * )
----
90
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9201
SELECT - - MAX( DISTINCT 89 ) * + - AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT - - MAX ( DISTINCT 89 ) * + - AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL 19 / 6 / 26 + - 55 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL 19 / 6 / 26 + - 55 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 79, 83 AS col1
----
79
83

query I rowsort
SELECT DISTINCT + + 45
----
45

query I rowsort
SELECT ALL + COALESCE ( + 78, - 91 ) col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT - ( - 11 ) * MAX( + 37 ) - + COUNT( DISTINCT 75 )
----
406

skipif mysql # not compatible
query I rowsort label-9206
SELECT - ( - 11 ) * MAX ( + 37 ) - + COUNT ( DISTINCT 75 )
----
406

query II rowsort
SELECT DISTINCT + - 28 AS col0, 36 AS col1
----
-28
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9208
SELECT ALL ( 17 ) / + CAST( NULL AS SIGNED ) + 83 * 40 + - - 56 * + COUNT( 40 ) + 16 + - 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9208
SELECT ALL ( 17 ) / + CAST ( NULL AS INTEGER ) + 83 * 40 + - - 56 * + COUNT ( 40 ) + 16 + - 25 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT + + 39 * SUM( - 30 ) + + - 28 - 42
----
-1240

skipif mysql # not compatible
query I rowsort label-9209
SELECT + + 39 * SUM ( - 30 ) + + - 28 - 42
----
-1240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9210
SELECT - CAST( NULL AS SIGNED ) * - + 29 + 23 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT - CAST ( NULL AS INTEGER ) * - + 29 + 23 col0
----
NULL

query I rowsort
SELECT ( - 55 ) AS col2
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT 6 * 62 - + + ( COUNT( * ) ) * - 5 * 22
----
482

skipif mysql # not compatible
query I rowsort label-9212
SELECT 6 * 62 - + + ( COUNT ( * ) ) * - 5 * 22
----
482

query I rowsort
SELECT + ( - 31 ) * + 72 * - + 95 + - + 12 + - 94 * 14
----
210712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9214
SELECT 12 - + COUNT( * ) + 98 + - COUNT( * ) DIV + 99 + SUM( DISTINCT + 65 ) + - ( + COUNT( * ) ) - CAST( - 32 AS SIGNED ) DIV ( - 42 ) * + - 2 * 62 * + 85 + - + COUNT( + - 54 )
----
172

skipif mysql # not compatible
query I rowsort label-9214
SELECT 12 - + COUNT ( * ) + 98 + - COUNT ( * ) / + 99 + SUM ( DISTINCT + 65 ) + - ( + COUNT ( * ) ) - CAST ( - 32 AS INTEGER ) / ( - 42 ) * + - 2 * 62 * + 85 + - + COUNT ( + - 54 )
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL + COUNT( * ) - + 50 * - 12
----
601

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL + COUNT ( * ) - + 50 * - 12
----
601

query II rowsort
SELECT ALL - 22 AS col0, - 41
----
-22
-41

query I rowsort
SELECT ALL - 80 * + - 49 AS col1
----
3920

query I rowsort
SELECT 2 + - 61
----
-59

query I rowsort
SELECT 8 * - + 51 * 7
----
-2856

query I rowsort
SELECT 12 + + 47
----
59

query II rowsort
SELECT - 62 AS col0, 18 * + 53 AS col2
----
-62
954

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT 18 * + 37 * - COALESCE ( - 29, - + 98 ) * COUNT( * ) + + 81 col0
----
19395

skipif mysql # not compatible
query I rowsort label-9222
SELECT 18 * + 37 * - COALESCE ( - 29, - + 98 ) * COUNT ( * ) + + 81 col0
----
19395

query II rowsort
SELECT 98 + + 82 col2, 98 AS col0
----
180
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT COUNT( * ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9224
SELECT COUNT ( * ) * + COUNT ( * )
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-9225
SELECT DISTINCT 79 AS col0, - 73 DIV - 78
----
79
0

skipif mysql # not compatible
query II rowsort label-9225
SELECT DISTINCT 79 AS col0, - 73 / - 78
----
79
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9226
SELECT ALL CAST( - COUNT( DISTINCT - 30 ) AS SIGNED ) + + 44 * - 98 * + - 44 AS col0, 2 * - 71
----
189727
-142

skipif mysql # not compatible
query II rowsort label-9226
SELECT ALL CAST ( - COUNT ( DISTINCT - 30 ) AS INTEGER ) + + 44 * - 98 * + - 44 AS col0, 2 * - 71
----
189727
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT COUNT( * ) + - 28
----
-27

skipif mysql # not compatible
query I rowsort label-9227
SELECT COUNT ( * ) + - 28
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT DISTINCT + + 54 + - 64 DIV + COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-9228
SELECT DISTINCT + + 54 + - 64 / + COUNT ( * )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9229
SELECT ALL + + SUM( - - 57 ) + - - 35 DIV - 22 AS col0, + COUNT( * ) AS col0
----
56
1

skipif mysql # not compatible
query II rowsort label-9229
SELECT ALL + + SUM ( - - 57 ) + - - 35 / - 22 AS col0, + COUNT ( * ) AS col0
----
56
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT COUNT( * ) + - + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT COUNT ( * ) + - + COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT - COUNT( * ) - - - 15
----
-16

skipif mysql # not compatible
query I rowsort label-9231
SELECT - COUNT ( * ) - - - 15
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - - COUNT( ALL - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-9232
SELECT - - COUNT ( ALL - 29 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT + COALESCE ( + 15, - COUNT( * ) ) + + 89 / + + ( - CASE + 2 WHEN + - COUNT( * ) + - 62 THEN CASE 34 WHEN - 10 THEN + MAX( DISTINCT 29 ) * - - 86 / - - 47 WHEN + 34 THEN NULL ELSE NULL END * + 41 + - 80 WHEN + 99 * 15 THEN NULL END ) * + COUNT( * ) + - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + COALESCE ( + 15, - COUNT ( * ) ) + + 89 / + + ( - CASE + 2 WHEN + - COUNT ( * ) + - 62 THEN CASE 34 WHEN - 10 THEN + MAX ( DISTINCT 29 ) * - - 86 / - - 47 WHEN + 34 THEN NULL ELSE NULL END * + 41 + - 80 WHEN + 99 * 15 THEN NULL END ) * + COUNT ( * ) + - 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT + COUNT( * ) AS col0, 28 * + + 0 - 39 col0
----
1
-39

skipif mysql # not compatible
query II rowsort label-9234
SELECT + COUNT ( * ) AS col0, 28 * + + 0 - 39 col0
----
1
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - 58 + + 2 + - COALESCE ( + ( + - ( - 23 ) ), 63 * - - COUNT( * ) + - - 79 * + - 10, - - 19 * - ( - - 71 ) ) * + COUNT( + + 15 ) AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - 58 + + 2 + - COALESCE ( + ( + - ( - 23 ) ), 63 * - - COUNT ( * ) + - - 79 * + - 10, - - 19 * - ( - - 71 ) ) * + COUNT ( + + 15 ) AS col2
----
-79

query I rowsort
SELECT + 78 * 27
----
2106

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - COALESCE ( MIN( DISTINCT - 42 ), - 49 ) - - COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - COALESCE ( MIN ( DISTINCT - 42 ), - 49 ) - - COUNT ( * )
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9238
SELECT + - 7 DIV - + 10 + + 62 + - COUNT( * ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-9238
SELECT + - 7 / - + 10 + + 62 + - COUNT ( * ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT MIN( - - 16 ) * + 46
----
736

skipif mysql # not compatible
query I rowsort label-9239
SELECT MIN ( - - 16 ) * + 46
----
736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9240
SELECT - CAST( NULL AS SIGNED ) * + - NULLIF ( - 35, + 97 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT - CAST ( NULL AS INTEGER ) * + - NULLIF ( - 35, + 97 ) col0
----
NULL

query I rowsort
SELECT 32 * 93
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9242
SELECT + COUNT( * ), CASE ( 33 ) WHEN - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN - - NULLIF ( - 90, + 39 ) + - 86 END AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9242
SELECT + COUNT ( * ), CASE ( 33 ) WHEN - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN - - NULLIF ( - 90, + 39 ) + - 86 END AS col1
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT ALL - CAST( - 39 AS SIGNED )
----
39

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - CAST ( - 39 AS INTEGER )
----
39

query I rowsort
SELECT 11 * - 21 + 27
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT NULLIF ( + 74, + COUNT( * ) * + 85 + + COUNT( * ) + - - 56 / + 50 * - 47 ) * - + ( - - 32 )
----
-2368

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT NULLIF ( + 74, + COUNT ( * ) * + 85 + + COUNT ( * ) + - - 56 / + 50 * - 47 ) * - + ( - - 32 )
----
-2368

onlyif mysql # aggregate syntax: 
query II rowsort label-9246
SELECT ( + + COUNT( * ) ) * + 46, - 78 * 46 AS col2
----
46
-3588

skipif mysql # not compatible
query II rowsort label-9246
SELECT ( + + COUNT ( * ) ) * + 46, - 78 * 46 AS col2
----
46
-3588

query I rowsort
SELECT DISTINCT - 70 col1
----
-70

query II rowsort
SELECT 83 - ( - 17 ) AS col0, 82
----
100
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9249
SELECT 18 DIV 5 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-9249
SELECT 18 / 5 AS col0
----
3

query I rowsort
SELECT 43 + 3 AS col0
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9251
SELECT 33 DIV - 33
----
-1

skipif mysql # not compatible
query I rowsort label-9251
SELECT 33 / - 33
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9252
SELECT 37 - + COUNT( * ) AS col1, 26
----
36
26

skipif mysql # not compatible
query II rowsort label-9252
SELECT 37 - + COUNT ( * ) AS col1, 26
----
36
26

query I rowsort
SELECT DISTINCT 94 * + + 39
----
3666

query I rowsort
SELECT 46 - + 22 + - + ( + 3 )
----
21

query I rowsort
SELECT - NULLIF ( + + 84, + 63 ) AS col2
----
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9256
SELECT ALL - 81 * 6 AS col2, 72 DIV - 55 - + 91 * + COUNT( * ) + - 72 AS col2
----
-486
-164

skipif mysql # not compatible
query II rowsort label-9256
SELECT ALL - 81 * 6 AS col2, 72 / - 55 - + 91 * + COUNT ( * ) + - 72 AS col2
----
-486
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT 83 * + 77 * - 83 + + 4 + - 91 + - + 50 + + 69 * + COUNT( * ) AS col0
----
-530521

skipif mysql # not compatible
query I rowsort label-9257
SELECT 83 * + 77 * - 83 + + 4 + - 91 + - + 50 + + 69 * + COUNT ( * ) AS col0
----
-530521

onlyif mysql # aggregate syntax: 
query II rowsort label-9258
SELECT 63 * - + COUNT( * ) AS col2, - 31 + + + 38 + + 94 * - + COALESCE ( 49, - 10, + - 68 * - COUNT( * ) + + - 14 - - 38 )
----
-63
-4599

skipif mysql # not compatible
query II rowsort label-9258
SELECT 63 * - + COUNT ( * ) AS col2, - 31 + + + 38 + + 94 * - + COALESCE ( 49, - 10, + - 68 * - COUNT ( * ) + + - 14 - - 38 )
----
-63
-4599

query I rowsort
SELECT DISTINCT - 29 - + 61 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - + 2 * - + 94 * - ( + NULLIF ( - - COUNT( ALL + 44 ), + 97 ) ) AS col1
----
-188

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - + 2 * - + 94 * - ( + NULLIF ( - - COUNT ( ALL + 44 ), + 97 ) ) AS col1
----
-188

query I rowsort
SELECT DISTINCT + 83 AS col0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9262
SELECT 74 DIV - 72 + - 54 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-9262
SELECT 74 / - 72 + - 54 AS col1
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9263
SELECT - + SUM( - ( + + CAST( NULL AS DECIMAL ) ) ) + 40 + - CASE - 99 WHEN + COUNT( * ) + - + 38 THEN NULL WHEN 92 + + 74 + ( - CAST( - + 65 AS SIGNED ) ) * - 19 THEN - MIN( + + 61 ) * + - 58 - COUNT( * ) ELSE + 63 END + - + 21 * - 22 * COUNT( + 5 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9263
SELECT - + SUM ( - ( + + CAST ( NULL AS REAL ) ) ) + 40 + - CASE - 99 WHEN + COUNT ( * ) + - + 38 THEN NULL WHEN 92 + + 74 + ( - CAST ( - + 65 AS INTEGER ) ) * - 19 THEN - MIN ( + + 61 ) * + - 58 - COUNT ( * ) ELSE + 63 END + - + 21 * - 22 * COUNT ( + 5 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9264
SELECT - + 41 DIV ( - 96 ) DIV - MAX( DISTINCT + + 85 ) + + + 46 + + + 35 - 48 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9264
SELECT - + 41 / ( - 96 ) / - MAX ( DISTINCT + + 85 ) + + + 46 + + + 35 - 48 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT + - 36 * - + 33 * - + 49 * + CASE 50 WHEN - 21 + 0 + - COUNT( * ) THEN NULL WHEN + 99 * - 43 + - - 35 THEN - 75 ELSE NULL END * - - 51 * + 0 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT + - 36 * - + 33 * - + 49 * + CASE 50 WHEN - 21 + 0 + - COUNT ( * ) THEN NULL WHEN + 99 * - 43 + - - 35 THEN - 75 ELSE NULL END * - - 51 * + 0 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT - - 24 + + 72 - COUNT( ALL + + 11 ) + 72 - 33 * + 77
----
-2374

skipif mysql # not compatible
query I rowsort label-9266
SELECT - - 24 + + 72 - COUNT ( ALL + + 11 ) + 72 - 33 * + 77
----
-2374

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL - - 59 * 58 + + 78 * 92 * - + 87 * - 20 * + 54 + - SUM( ALL 5 ) + COUNT( * )
----
674260378

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL - - 59 * 58 + + 78 * 92 * - + 87 * - 20 * + 54 + - SUM ( ALL 5 ) + COUNT ( * )
----
674260378

query I rowsort
SELECT ALL + + 95 col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT - MIN( 95 ) * COUNT( * )
----
-95

skipif mysql # not compatible
query I rowsort label-9269
SELECT - MIN ( 95 ) * COUNT ( * )
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9270
SELECT ALL + 73 AS col1, + COUNT( * )
----
73
1

skipif mysql # not compatible
query II rowsort label-9270
SELECT ALL + 73 AS col1, + COUNT ( * )
----
73
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9271
SELECT + 75 * - 9 + - COALESCE ( + 79, + CAST( + 99 AS SIGNED ) )
----
-754

skipif mysql # not compatible
query I rowsort label-9271
SELECT + 75 * - 9 + - COALESCE ( + 79, + CAST ( + 99 AS INTEGER ) )
----
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT MIN( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-9272
SELECT MIN ( - 73 )
----
-73

query I rowsort
SELECT + 96 * + 73
----
7008

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL - 27 * 61 + - - 98 * - COUNT( * )
----
-1745

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - 27 * 61 + - - 98 * - COUNT ( * )
----
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT - 8 + - + 97 * + - 27 * + + 30 * 36 * COUNT( DISTINCT + 21 ) * 36 * + 18 AS col0
----
1832880952

skipif mysql # not compatible
query I rowsort label-9275
SELECT - 8 + - + 97 * + - 27 * + + 30 * 36 * COUNT ( DISTINCT + 21 ) * 36 * + 18 AS col0
----
1832880952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9276
SELECT - 84 + - - 79 + 69 * - - 16 DIV COUNT( * ) + + COALESCE ( + 89, + ( - COUNT( ALL + CAST( - ( - + 81 ) AS SIGNED ) ) ) * - - 0 DIV + 96 ) + - - 44 + - 38
----
1194

skipif mysql # not compatible
query I rowsort label-9276
SELECT - 84 + - - 79 + 69 * - - 16 / COUNT ( * ) + + COALESCE ( + 89, + ( - COUNT ( ALL + CAST ( - ( - + 81 ) AS INTEGER ) ) ) * - - 0 / + 96 ) + - - 44 + - 38
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT SUM( - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-9277
SELECT SUM ( - 41 )
----
-41

query I rowsort
SELECT 54 * - - 66 + - 82 + + - 78 AS col0
----
3404

query I rowsort
SELECT ALL 6 * - ( + 85 ) + + 36 AS col2
----
-474

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9280
SELECT DISTINCT - CASE - + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) * + - 52 + - 98 + - - 85 + - COALESCE ( + COUNT( * ), + + 54 + + 98 ) THEN + 3 / 55 END * + 83 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - CASE - + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) * + - 52 + - 98 + - - 85 + - COALESCE ( + COUNT ( * ), + + 54 + + 98 ) THEN + 3 / 55 END * + 83 + 77
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9281
SELECT DISTINCT + COUNT( + + 54 ) * - 12 DIV 39 + + + 23 * + - 97 col1
----
-2231

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + COUNT ( + + 54 ) * - 12 / 39 + + + 23 * + - 97 col1
----
-2231

onlyif mysql # aggregate syntax: 
query II rowsort label-9282
SELECT ALL ( + 37 ) + COUNT( * ) * 78 AS col0, - 26 * - 48 AS col1
----
115
1248

skipif mysql # not compatible
query II rowsort label-9282
SELECT ALL ( + 37 ) + COUNT ( * ) * 78 AS col0, - 26 * - 48 AS col1
----
115
1248

onlyif mysql # aggregate syntax: 
query II rowsort label-9283
SELECT ALL + 62 AS col1, - 8 + - SUM( 77 ) AS col2
----
62
-85

skipif mysql # not compatible
query II rowsort label-9283
SELECT ALL + 62 AS col1, - 8 + - SUM ( 77 ) AS col2
----
62
-85

query I rowsort
SELECT + 30 + + - 11
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT MAX( ( + 71 ) ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-9285
SELECT MAX ( ( + 71 ) ) AS col2
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT DISTINCT 53 + + 6 - 35 + - + CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT 53 + + 6 - 35 + - + CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col2
----
NULL

query II rowsort
SELECT 90 AS col1, 69 AS col0
----
90
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT ALL MIN( DISTINCT - + 80 ) + 9 + - 46
----
-117

skipif mysql # not compatible
query I rowsort label-9288
SELECT ALL MIN ( DISTINCT - + 80 ) + 9 + - 46
----
-117

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9289
SELECT + + CAST( NULL AS SIGNED ) * + CAST( - + ( + 88 ) AS SIGNED ) / - + 46 * CAST( + 86 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + + CAST ( NULL AS INTEGER ) * + CAST ( - + ( + 88 ) AS INTEGER ) / - + 46 * CAST ( + 86 AS REAL )
----
NULL

query I rowsort
SELECT + - 41 * - 38 AS col2
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9291
SELECT MIN( - + ( - 2 ) ) AS col1, + 53 DIV - CAST( 68 AS SIGNED )
----
2
0

skipif mysql # not compatible
query II rowsort label-9291
SELECT MIN ( - + ( - 2 ) ) AS col1, + 53 / - CAST ( 68 AS INTEGER )
----
2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT - + CASE + NULLIF ( - 21, 37 ) WHEN - + 0 THEN + 33 END + - CAST( NULL AS SIGNED ) + + + COUNT( * ) - + - 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT - + CASE + NULLIF ( - 21, 37 ) WHEN - + 0 THEN + 33 END + - CAST ( NULL AS INTEGER ) + + + COUNT ( * ) - + - 91 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ALL - COUNT( ALL 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - COUNT ( ALL 87 )
----
-1

query I rowsort
SELECT ALL 93 - - 70 * 91 * - 77 * - 88
----
43163213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9295
SELECT + 33 * - - 68 + - COUNT( 10 ) DIV + + COALESCE ( + CASE + - ( + 76 ) WHEN - 80 THEN NULL ELSE + - 28 END, - + 18 ) + - 94 * + 67 * 66 col0
----
-413424

skipif mysql # not compatible
query I rowsort label-9295
SELECT + 33 * - - 68 + - COUNT ( 10 ) / + + COALESCE ( + CASE + - ( + 76 ) WHEN - 80 THEN NULL ELSE + - 28 END, - + 18 ) + - 94 * + 67 * 66 col0
----
-413424

query I rowsort
SELECT ALL - - 49 - - 66 AS col0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL COUNT( + 50 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL COUNT ( + 50 ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9298
SELECT + - CASE - 20 WHEN + 33 * + ( 18 ) / - 92 / + - COUNT( * ) + 13 - - - COUNT( * ) + - 77 THEN NULL ELSE - 57 * - CAST( NULL AS SIGNED ) + + 33 + + 74 * + 7 END + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9298
SELECT + - CASE - 20 WHEN + 33 * + ( 18 ) / - 92 / + - COUNT ( * ) + 13 - - - COUNT ( * ) + - 77 THEN NULL ELSE - 57 * - CAST ( NULL AS INTEGER ) + + 33 + + 74 * + 7 END + - 2 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9299
SELECT ALL + + 37 * - + CAST( NULL AS SIGNED ) / 40 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + + 37 * - + CAST ( NULL AS INTEGER ) / 40 AS col2
----
NULL

query I rowsort
SELECT ALL + 9 * 28 + + NULLIF ( - 58, 38 * + + 27 + 66 * + 19 * 22 + 95 + 9 ) AS col2
----
194

query I rowsort
SELECT + - 45 * 87 AS col1
----
-3915

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9302
SELECT - CAST( NULL AS DECIMAL ), 58 AS col0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9302
SELECT - CAST ( NULL AS REAL ), 58 AS col0
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9303
SELECT - 37 AS col0, + MAX( + - 74 ) * + - 55 DIV CAST( - COUNT( * ) AS SIGNED ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35
----
-37
-2611267

skipif mysql # not compatible
query II rowsort label-9303
SELECT - 37 AS col0, + MAX ( + - 74 ) * + - 55 / CAST ( - COUNT ( * ) AS INTEGER ) + 48 - - 10 + + 31 * - 27 * - 89 * - + 35
----
-37
-2611267

query I rowsort
SELECT - 91 + + 97 - + + 67 AS col1
----
-61

query I rowsort
SELECT - NULLIF ( + 32, 18 ) + - - 18
----
-14

query I rowsort
SELECT DISTINCT + 57 * - 21
----
-1197

query I rowsort
SELECT ALL + + 41 AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-9308
SELECT ( - + 10 ) AS col1, COUNT( * ) AS col2
----
-10
1

skipif mysql # not compatible
query II rowsort label-9308
SELECT ( - + 10 ) AS col1, COUNT ( * ) AS col2
----
-10
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9309
SELECT ALL 90 DIV 48 + - CAST( - COUNT( * ) AS SIGNED ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL 90 / 48 + - CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
2

query II rowsort
SELECT ( 82 ) AS col0, - COALESCE ( - - 89, 18 )
----
82
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT - 60 DIV COUNT( * ) * - 77 col0
----
4620

skipif mysql # not compatible
query I rowsort label-9311
SELECT - 60 / COUNT ( * ) * - 77 col0
----
4620

query II rowsort
SELECT ALL - CASE - 61 WHEN - 48 THEN - 84 ELSE - - ( + 59 ) * + - 54 END * - 65 + 13 AS col2, 67
----
-207077
67

query I rowsort
SELECT ( + - 23 )
----
-23

query I rowsort
SELECT ALL + 59 * 75 * - 33 AS col2
----
-146025

onlyif mysql # DIV for integer division: 
query I rowsort label-9315
SELECT - 30 DIV + - 94 col0
----
0

skipif mysql # not compatible
query I rowsort label-9315
SELECT - 30 / + - 94 col0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9316
SELECT ALL 42 DIV 90, 67 AS col2
----
0
67

skipif mysql # not compatible
query II rowsort label-9316
SELECT ALL 42 / 90, 67 AS col2
----
0
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT + CASE + SUM( DISTINCT + 98 ) WHEN 39 * + 22 THEN 9 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9317
SELECT + CASE + SUM ( DISTINCT + 98 ) WHEN 39 * + 22 THEN 9 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT + ( + 19 ) col1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9319
SELECT ALL - CAST( - ( - - 14 ) AS SIGNED ) * - COUNT( * ) + - - 6 * - ( + - 87 )
----
508

skipif mysql # not compatible
query I rowsort label-9319
SELECT ALL - CAST ( - ( - - 14 ) AS INTEGER ) * - COUNT ( * ) + - - 6 * - ( + - 87 )
----
508

onlyif mysql # aggregate syntax: 
query II rowsort label-9320
SELECT - 18 - COUNT( * ), MAX( ALL + 30 ) col2
----
-19
30

skipif mysql # not compatible
query II rowsort label-9320
SELECT - 18 - COUNT ( * ), MAX ( ALL + 30 ) col2
----
-19
30

query II rowsort
SELECT + COALESCE ( 33, - 20, 28 ) AS col1, + 99 * - 91 + - 90
----
33
-9099

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT - 94 - - COUNT( * ) + 9
----
-84

skipif mysql # not compatible
query I rowsort label-9322
SELECT - 94 - - COUNT ( * ) + 9
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT + COALESCE ( + 30, - - 38 ) DIV 42
----
0

skipif mysql # not compatible
query I rowsort label-9323
SELECT + COALESCE ( + 30, - - 38 ) / 42
----
0

query I rowsort
SELECT 23 * 50 + 22 AS col2
----
1172

onlyif mysql # aggregate syntax: 
query II rowsort label-9325
SELECT + 64 * + 5 + - - 84 + - 50 AS col0, + COUNT( * ) AS col1
----
354
1

skipif mysql # not compatible
query II rowsort label-9325
SELECT + 64 * + 5 + - - 84 + - 50 AS col0, + COUNT ( * ) AS col1
----
354
1

query I rowsort
SELECT DISTINCT 80 col1
----
80

query I rowsort
SELECT ALL - ( - + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL - NULLIF ( + - 49, + 46 ) * MIN( DISTINCT + - 66 ) AS col1
----
-3234

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - NULLIF ( + - 49, + 46 ) * MIN ( DISTINCT + - 66 ) AS col1
----
-3234

query II rowsort
SELECT + - 35 - + 8, - 13 AS col0
----
-43
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9330
SELECT DISTINCT CASE + - NULLIF ( + CAST( - 39 AS SIGNED ), - 25 / - + NULLIF ( - ( + + 22 ), 57 + + 12 * 22 * 63 * + - COUNT( * ) ) ) WHEN - - COUNT( * ) * 64 + - 71 THEN NULL WHEN - 31 THEN + 44 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT CASE + - NULLIF ( + CAST ( - 39 AS INTEGER ), - 25 / - + NULLIF ( - ( + + 22 ), 57 + + 12 * 22 * 63 * + - COUNT ( * ) ) ) WHEN - - COUNT ( * ) * 64 + - 71 THEN NULL WHEN - 31 THEN + 44 ELSE NULL END
----
NULL

query I rowsort
SELECT + + 60 - + 58 + 94 col0
----
96

query I rowsort
SELECT ALL NULLIF ( - + 42, 69 )
----
-42

query I rowsort
SELECT - CASE 11 WHEN - 50 + 54 + - 84 + 54 THEN NULL WHEN 11 THEN NULL ELSE + 78 END * 16 / - 15
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT - 67 * - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT - 67 * - CAST ( NULL AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT - MAX( - 81 ), 51 - + 45 + 35 * - COUNT( * ) col0
----
81
-29

skipif mysql # not compatible
query II rowsort label-9335
SELECT - MAX ( - 81 ), 51 - + 45 + 35 * - COUNT ( * ) col0
----
81
-29

query I rowsort
SELECT 41 + 58 + + 90 col1
----
189

query I rowsort
SELECT 30 - - 39
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT + 33 * + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-9338
SELECT + 33 * + COUNT ( * ) AS col2
----
33

query I rowsort
SELECT ALL + 5 col2
----
5

query I rowsort
SELECT DISTINCT - 82 AS col0
----
-82

query I rowsort
SELECT DISTINCT 34 + + + 15 * + 24
----
394

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9342
SELECT COUNT( * ) * 26 DIV 75 col2
----
0

skipif mysql # not compatible
query I rowsort label-9342
SELECT COUNT ( * ) * 26 / 75 col2
----
0

query I rowsort
SELECT ALL 26 + - + 23
----
3

query II rowsort
SELECT + 89, 93 AS col0
----
89
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9345
SELECT CAST( + COUNT( * ) AS SIGNED ) + - + CAST( - + 64 AS SIGNED ) col1
----
65

skipif mysql # not compatible
query I rowsort label-9345
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + - + CAST ( - + 64 AS INTEGER ) col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9346
SELECT ALL - CASE - 79 WHEN - - 80 * 31 THEN - 35 ELSE 79 * + - COUNT( ALL - - 63 ) + - 45 END * + - CAST( NULLIF ( + - CAST( NULL AS SIGNED ), 57 + 16 ) AS SIGNED ) * - + 47 AS col0, 86
----
NULL
86

skipif mysql # not compatible
query II rowsort label-9346
SELECT ALL - CASE - 79 WHEN - - 80 * 31 THEN - 35 ELSE 79 * + - COUNT ( ALL - - 63 ) + - 45 END * + - CAST ( NULLIF ( + - CAST ( NULL AS INTEGER ), 57 + 16 ) AS INTEGER ) * - + 47 AS col0, 86
----
NULL
86

query I rowsort
SELECT 37 * - 53
----
-1961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9348
SELECT 81 * + 14 - COUNT( * ) DIV 63 DIV + - COUNT( * ) AS col2
----
1134

skipif mysql # not compatible
query I rowsort label-9348
SELECT 81 * + 14 - COUNT ( * ) / 63 / + - COUNT ( * ) AS col2
----
1134

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT ALL COUNT( * ) * + 43
----
43

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL COUNT ( * ) * + 43
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9350
SELECT - 92 / - CAST( NULL AS DECIMAL ) + + 39 * - 30 * 17 * 1
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT - 92 / - CAST ( NULL AS REAL ) + + 39 * - 30 * 17 * 1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT DISTINCT - CASE 98 WHEN + - 74 + 3 THEN COUNT( 50 ) WHEN + COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - CASE 98 WHEN + - 74 + 3 THEN COUNT ( 50 ) WHEN + COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - SUM( ALL + - 47 ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - SUM ( ALL + - 47 ) AS col1
----
47

query I rowsort
SELECT ALL + 54 - 21 - 94 * - - 82 AS col2
----
-7675

query I rowsort
SELECT - 29 * + 32 + - 26 + - - 68
----
-886

query I rowsort
SELECT 53 * 13
----
689

query I rowsort
SELECT NULLIF ( - - 39, ( 69 ) ) * + 6 + 54 + + + 32 AS col0
----
320

query I rowsort
SELECT ALL + 27 * - 70
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT SUM( DISTINCT - - 16 ) + - 63
----
-47

skipif mysql # not compatible
query I rowsort label-9358
SELECT SUM ( DISTINCT - - 16 ) + - 63
----
-47

query I rowsort
SELECT DISTINCT + 37 - + 55
----
-18

query I rowsort
SELECT ALL - 87 col1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL + 28 * + CAST( 10 AS SIGNED )
----
280

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL + 28 * + CAST ( 10 AS INTEGER )
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT + 90 * + 62 + 47 * COUNT( * )
----
5627

skipif mysql # not compatible
query I rowsort label-9362
SELECT + 90 * + 62 + 47 * COUNT ( * )
----
5627

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT - 65 * - COUNT( * ) AS col0
----
65

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT - 65 * - COUNT ( * ) AS col0
----
65

query I rowsort
SELECT DISTINCT + 10 * 94
----
940

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT CASE + COUNT( * ) WHEN COUNT( * ) THEN - 39 * - 33 END + + 0 col2
----
1287

skipif mysql # not compatible
query I rowsort label-9365
SELECT CASE + COUNT ( * ) WHEN COUNT ( * ) THEN - 39 * - 33 END + + 0 col2
----
1287

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT 87 DIV 26
----
3

skipif mysql # not compatible
query I rowsort label-9366
SELECT 87 / 26
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT 58 + - CAST( + 27 AS SIGNED )
----
31

skipif mysql # not compatible
query I rowsort label-9367
SELECT 58 + - CAST ( + 27 AS INTEGER )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9368
SELECT + CAST( - ( 81 ) AS SIGNED ) * COUNT( * ) + COUNT( * ) * + 19
----
-62

skipif mysql # not compatible
query I rowsort label-9368
SELECT + CAST ( - ( 81 ) AS INTEGER ) * COUNT ( * ) + COUNT ( * ) * + 19
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT 6 + + MIN( DISTINCT + 5 - - ( + 53 ) ) * SUM( + 25 ) AS col2
----
1456

skipif mysql # not compatible
query I rowsort label-9369
SELECT 6 + + MIN ( DISTINCT + 5 - - ( + 53 ) ) * SUM ( + 25 ) AS col2
----
1456

query I rowsort
SELECT ALL 86 + + 53
----
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9371
SELECT ALL COUNT( * ) * + CAST( 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL COUNT ( * ) * + CAST ( 55 AS INTEGER )
----
55

query I rowsort
SELECT DISTINCT - 66 + - 54 AS col1
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT CASE + COUNT( * ) WHEN + 48 THEN + 9 WHEN ( COUNT( * ) ) * 68 THEN - 69 ELSE NULL END * 46
----
NULL

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT CASE + COUNT ( * ) WHEN + 48 THEN + 9 WHEN ( COUNT ( * ) ) * 68 THEN - 69 ELSE NULL END * 46
----
NULL

query I rowsort
SELECT ALL 39 + + ( + ( - 75 ) )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT 2 + SUM( - 14 ) * 96 AS col2
----
-1342

skipif mysql # not compatible
query I rowsort label-9375
SELECT 2 + SUM ( - 14 ) * 96 AS col2
----
-1342

query I rowsort
SELECT ALL - 48 + + 68 * 37
----
2468

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9377
SELECT NULLIF ( + 4, 54 * - 79 ) + CAST( NULL AS DECIMAL ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-9377
SELECT NULLIF ( + 4, 54 * - 79 ) + CAST ( NULL AS REAL ) * 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT COUNT( * ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT COUNT ( * ) + - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT - MAX( DISTINCT 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9379
SELECT - MAX ( DISTINCT 12 ) AS col2
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT COALESCE ( MIN( + 92 ), + 87, - 43 ) DIV COALESCE ( 25 * + 59, COUNT( * ), - 47 * - 19 + 98 )
----
0

skipif mysql # not compatible
query I rowsort label-9380
SELECT COALESCE ( MIN ( + 92 ), + 87, - 43 ) / COALESCE ( 25 * + 59, COUNT ( * ), - 47 * - 19 + 98 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9381
SELECT CAST( NULL AS DECIMAL ) + ( + COUNT( * ) ) * 88 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT CAST ( NULL AS REAL ) + ( + COUNT ( * ) ) * 88 col0
----
NULL

query I rowsort
SELECT DISTINCT + 76 * 12
----
912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT - 85 * - 24 + CAST( 51 AS SIGNED )
----
2091

skipif mysql # not compatible
query I rowsort label-9383
SELECT DISTINCT - 85 * - 24 + CAST ( 51 AS INTEGER )
----
2091

query I rowsort
SELECT DISTINCT 66 * 45
----
2970

onlyif mysql # DIV for integer division: 
query I rowsort label-9385
SELECT DISTINCT 78 DIV 32
----
2

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT 78 / 32
----
2

query I rowsort
SELECT 11 * 80
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9387
SELECT 17 DIV NULLIF ( - COUNT( * ), 75 * - 52 )
----
-17

skipif mysql # not compatible
query I rowsort label-9387
SELECT 17 / NULLIF ( - COUNT ( * ), 75 * - 52 )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT 53 * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-9388
SELECT 53 * COUNT ( * ) AS col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT DISTINCT 30 * COUNT( * ) col0
----
30

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT 30 * COUNT ( * ) col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT + MAX( ALL 3 )
----
3

skipif mysql # not compatible
query I rowsort label-9390
SELECT + MAX ( ALL 3 )
----
3

query I rowsort
SELECT 62 + + 28
----
90

query I rowsort
SELECT ALL 65 * + 93 AS col1
----
6045

query I rowsort
SELECT DISTINCT 24 * 1 AS col0
----
24

query I rowsort
SELECT ALL - COALESCE ( - 45, 75 ) col2
----
45

query I rowsort
SELECT ALL ( + 97 ) * + ( + 61 ) AS col0
----
5917

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT ALL - - NULLIF ( + 64, + 15 * COUNT( * ) ) col1
----
64

skipif mysql # not compatible
query I rowsort label-9396
SELECT ALL - - NULLIF ( + 64, + 15 * COUNT ( * ) ) col1
----
64

query I rowsort
SELECT - 52 * 88 AS col2
----
-4576

query I rowsort
SELECT + 22 * 77
----
1694

query I rowsort
SELECT + ( 12 ) AS col2
----
12

query I rowsort
SELECT ALL + + 5
----
5

query I rowsort
SELECT + + 79 * + 25 + 30
----
2005

query I rowsort
SELECT - + 41 * 65 AS col0
----
-2665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9403
SELECT + CAST( 92 AS SIGNED ) * 48 + - COALESCE ( 84 + 19, 6, + SUM( ALL 97 ) + - 75 ) AS col1
----
4313

skipif mysql # not compatible
query I rowsort label-9403
SELECT + CAST ( 92 AS INTEGER ) * 48 + - COALESCE ( 84 + 19, 6, + SUM ( ALL 97 ) + - 75 ) AS col1
----
4313

query I rowsort
SELECT ALL 71 + 73 AS col0
----
144

query I rowsort
SELECT ALL - 97 + - 96
----
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT ALL - - CAST( NULL AS SIGNED ) * 18 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - - CAST ( NULL AS INTEGER ) * 18 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT + + 71 + COUNT( * )
----
72

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT + + 71 + COUNT ( * )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - COUNT( * ) + - 45
----
-46

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - COUNT ( * ) + - 45
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - NULLIF ( 46, 75 ) + - COUNT( * )
----
-47

skipif mysql # not compatible
query I rowsort label-9409
SELECT - NULLIF ( 46, 75 ) + - COUNT ( * )
----
-47

query I rowsort
SELECT ALL - - 59 + 67 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9411
SELECT - CASE - 1 WHEN - COUNT( * ) THEN - COALESCE ( CASE + 1 WHEN + 20 THEN - 27 + 46 DIV COUNT( * ) WHEN 4 THEN + COALESCE ( 6, MAX( - 14 ) * CASE 27 WHEN 36 THEN + COUNT( * ) * 92 ELSE + MAX( 85 ) END ) ELSE NULL END, + 17 ) ELSE - 55 END
----
17

skipif mysql # not compatible
query I rowsort label-9411
SELECT - CASE - 1 WHEN - COUNT ( * ) THEN - COALESCE ( CASE + 1 WHEN + 20 THEN - 27 + 46 / COUNT ( * ) WHEN 4 THEN + COALESCE ( 6, MAX ( - 14 ) * CASE 27 WHEN 36 THEN + COUNT ( * ) * 92 ELSE + MAX ( 85 ) END ) ELSE NULL END, + 17 ) ELSE - 55 END
----
17

query I rowsort
SELECT - - 70 AS col2
----
70

query I rowsort
SELECT ALL ( 4 ) AS col0
----
4

query I rowsort
SELECT - + 39 * 22
----
-858

query I rowsort
SELECT - + 81 + 26 * 33 AS col1
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + + 76 * + MAX( - 23 + 61 ) col2
----
2888

skipif mysql # not compatible
query I rowsort label-9416
SELECT + + 76 * + MAX ( - 23 + 61 ) col2
----
2888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9417
SELECT ALL - ( - COUNT( * ) ) + 26 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL - ( - COUNT ( * ) ) + 26 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL MIN( DISTINCT - + 72 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL MIN ( DISTINCT - + 72 ) AS col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT - 79 - + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT - 79 - + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT DISTINCT CAST( - - ( + 65 ) AS SIGNED ) * MIN( 58 )
----
3770

skipif mysql # not compatible
query I rowsort label-9420
SELECT DISTINCT CAST ( - - ( + 65 ) AS INTEGER ) * MIN ( 58 )
----
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT ALL - COUNT( * ) - - 41 * 25 AS col1
----
1024

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - COUNT ( * ) - - 41 * 25 AS col1
----
1024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9422
SELECT ALL - 54 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT ALL - 54 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT - 43 + + 86 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT DISTINCT - NULLIF ( - + COUNT( * ), - 43 ) * 79 col0
----
79

skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT - NULLIF ( - + COUNT ( * ), - 43 ) * 79 col0
----
79

query I rowsort
SELECT - 19 + - 61 * ( 59 ) AS col2
----
-3618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT + CASE 85 WHEN + 9 * 79 THEN NULL WHEN + AVG ( CAST( 3 AS SIGNED ) ) THEN 4 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT + CASE 85 WHEN + 9 * 79 THEN NULL WHEN + AVG ( CAST ( 3 AS INTEGER ) ) THEN 4 END AS col0
----
NULL

query I rowsort
SELECT ALL 89 * + 14 col2
----
1246

onlyif mysql # DIV for integer division: 
query I rowsort label-9428
SELECT - 95 + - 75 + - 39 DIV + 75
----
-170

skipif mysql # not compatible
query I rowsort label-9428
SELECT - 95 + - 75 + - 39 / + 75
----
-170

query I rowsort
SELECT + COALESCE ( 98, COALESCE ( 92, + 67 * 90, 84 + - 22 ) )
----
98

query I rowsort
SELECT ( - + 42 ) AS col2
----
-42

query I rowsort
SELECT - 96 * + - 89 * - 0 + + 34 * + 74
----
2516

query I rowsort
SELECT DISTINCT - 37 * + + 95 AS col2
----
-3515

query I rowsort
SELECT DISTINCT + ( - - 78 ) AS col1
----
78

query I rowsort
SELECT ALL - NULLIF ( + + ( 58 ), 15 * 88 ) * - 5 AS col2
----
290

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT MAX( DISTINCT + 92 ) * ( + 65 ) + 46
----
6026

skipif mysql # not compatible
query I rowsort label-9435
SELECT MAX ( DISTINCT + 92 ) * ( + 65 ) + 46
----
6026

query I rowsort
SELECT ( 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT ALL + CAST( + 25 AS SIGNED ) col0
----
25

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + CAST ( + 25 AS INTEGER ) col0
----
25

query I rowsort
SELECT + COALESCE ( + 3, + 28 ) + - 23 col1
----
-20

query I rowsort
SELECT ALL 12 * - 31 AS col0
----
-372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT + 17 + + 33 + + COUNT( * ) DIV ( 83 * ( - 39 ) ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-9440
SELECT + 17 + + 33 + + COUNT ( * ) / ( 83 * ( - 39 ) ) AS col2
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT ALL 23 DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL 23 / + + 57
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9442
SELECT + + 31 DIV + 71 col1
----
0

skipif mysql # not compatible
query I rowsort label-9442
SELECT + + 31 / + 71 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9443
SELECT + 19 * + 93 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT + 19 * + 93 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 47 + - + 8 AS col0
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9445
SELECT ALL COUNT( * ) * - 16 DIV + 6
----
-2

skipif mysql # not compatible
query I rowsort label-9445
SELECT ALL COUNT ( * ) * - 16 / + 6
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9446
SELECT ALL + 53 * CAST( NULL AS SIGNED ) + + CASE - CASE 11 WHEN - 24 THEN 17 WHEN 3 * CASE + 20 * 60 WHEN + 49 / 8 THEN NULL WHEN + 22 THEN NULL ELSE CAST( NULL AS SIGNED ) * ( + 50 ) + + 61 END THEN NULL END + + COUNT( * ) * - 90 WHEN - 29 THEN NULLIF ( 12, - 81 + 25 ) WHEN + ( - 91 ) + 68 * 78 THEN 6 WHEN 12 THEN NULL END * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + 53 * CAST ( NULL AS INTEGER ) + + CASE - CASE 11 WHEN - 24 THEN 17 WHEN 3 * CASE + 20 * 60 WHEN + 49 / 8 THEN NULL WHEN + 22 THEN NULL ELSE CAST ( NULL AS INTEGER ) * ( + 50 ) + + 61 END THEN NULL END + + COUNT ( * ) * - 90 WHEN - 29 THEN NULLIF ( 12, - 81 + 25 ) WHEN + ( - 91 ) + 68 * 78 THEN 6 WHEN 12 THEN NULL END * - 93
----
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 22, 9 ) * 8
----
-176

query I rowsort
SELECT + + 29 * + - 67 * ( - 24 ) AS col2
----
46632

query I rowsort
SELECT - - 71 + + - 29
----
42

query I rowsort
SELECT - ( + 19 ) AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT + + CAST( + - AVG ( + CAST( + 69 AS SIGNED ) ) AS SIGNED ) * - 71 AS col2
----
4899

skipif mysql # not compatible
query I rowsort label-9451
SELECT + + CAST ( + - AVG ( + CAST ( + 69 AS INTEGER ) ) AS INTEGER ) * - 71 AS col2
----
4899

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT + 88 + - 57 DIV 86
----
88

skipif mysql # not compatible
query I rowsort label-9452
SELECT + 88 + - 57 / 86
----
88

query I rowsort
SELECT + ( + + 68 )
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9454
SELECT + COALESCE ( 94, - 10, MAX( + CAST( NULL AS SIGNED ) ) ) + 75
----
169

skipif mysql # not compatible
query I rowsort label-9454
SELECT + COALESCE ( 94, - 10, MAX ( + CAST ( NULL AS INTEGER ) ) ) + 75
----
169

query I rowsort
SELECT ( + 99 )
----
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9456
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT DISTINCT - CAST ( NULL AS REAL ) * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL CAST( + 95 AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL CAST ( + 95 AS INTEGER )
----
95

query I rowsort
SELECT - 55 + 56 + + - 89 AS col1
----
-88

query I rowsort
SELECT ALL - 31 * - 96 AS col2
----
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9460
SELECT - 31 + + + 36 * + CASE COUNT( * ) WHEN 61 + + CASE + 67 + + 74 WHEN COUNT( * ) THEN NULL WHEN 16 THEN 90 * - CAST( 18 * NULLIF ( + 89 * 82, 63 ) AS SIGNED ) ELSE NULL END THEN NULL WHEN - 75 + 9 THEN - 52 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT - 31 + + + 36 * + CASE COUNT ( * ) WHEN 61 + + CASE + 67 + + 74 WHEN COUNT ( * ) THEN NULL WHEN 16 THEN 90 * - CAST ( 18 * NULLIF ( + 89 * 82, 63 ) AS INTEGER ) ELSE NULL END THEN NULL WHEN - 75 + 9 THEN - 52 END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL + CAST( - - ( - 26 ) AS SIGNED ) * 70
----
-1820

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL + CAST ( - - ( - 26 ) AS INTEGER ) * 70
----
-1820

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT - COALESCE ( 18, - COALESCE ( + 15, 67 + - 86, - 10 * ( - COUNT( * ) ) ) ) + + 75
----
57

skipif mysql # not compatible
query I rowsort label-9462
SELECT - COALESCE ( 18, - COALESCE ( + 15, 67 + - 86, - 10 * ( - COUNT ( * ) ) ) ) + + 75
----
57

query I rowsort
SELECT ALL ( + ( 23 ) )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT - 78 DIV + + 96 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9464
SELECT - 78 / + + 96 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT - MAX( DISTINCT 8 ) * 84
----
-672

skipif mysql # not compatible
query I rowsort label-9465
SELECT - MAX ( DISTINCT 8 ) * 84
----
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL ( + + COALESCE ( + - COALESCE ( 31, + COUNT( * ) ), 53, + ( 50 ) ) ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-9466
SELECT ALL ( + + COALESCE ( + - COALESCE ( 31, + COUNT ( * ) ), 53, + ( 50 ) ) ) AS col1
----
-31

query I rowsort
SELECT - 60 * + - 12
----
720

query I rowsort
SELECT + 78 + 2
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9469
SELECT ALL + 68 DIV - 89 * + 4
----
0

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + 68 / - 89 * + 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - 24 * - + 25 * + 27 * - COUNT( * )
----
-16200

skipif mysql # not compatible
query I rowsort label-9470
SELECT - 24 * - + 25 * + 27 * - COUNT ( * )
----
-16200

onlyif mysql # aggregate syntax: 
query II rowsort label-9471
SELECT + COUNT( * ) AS col2, 95 * - 96 AS col1
----
1
-9120

skipif mysql # not compatible
query II rowsort label-9471
SELECT + COUNT ( * ) AS col2, 95 * - 96 AS col1
----
1
-9120

query I rowsort
SELECT ALL + NULLIF ( + 85, + 69 + 73 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9473
SELECT DISTINCT - 6 * - COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-9473
SELECT DISTINCT - 6 * - COUNT ( * ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9474
SELECT ALL - 97 + + - 85 DIV - 30 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - 97 + + - 85 / - 30 AS col2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT + ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9475
SELECT + ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL + COALESCE ( - - ( 92 ), COUNT( * ) ) + 93 AS col2
----
185

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL + COALESCE ( - - ( 92 ), COUNT ( * ) ) + 93 AS col2
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT 61 * - 75 + - - 30 DIV - 33 AS col0
----
-4575

skipif mysql # not compatible
query I rowsort label-9477
SELECT 61 * - 75 + - - 30 / - 33 AS col0
----
-4575

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT ALL 0 + COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL 0 + COUNT ( * ) col1
----
1

query I rowsort
SELECT + - 92 AS col2
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9480
SELECT ALL - 19 * CAST( NULL AS SIGNED ) * + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT ALL - 19 * CAST ( NULL AS INTEGER ) * + 44
----
NULL

query I rowsort
SELECT DISTINCT - + 17 + + - 15 * + + ( + 12 ) + + 39 AS col0
----
-158

query I rowsort
SELECT ALL - 80 + - 88 + 0 + 58 col0
----
-110

query I rowsort
SELECT + 97 * + + 23
----
2231

query I rowsort
SELECT ALL - + 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT - 90, SUM( - 70 ) + 18 AS col0
----
-90
-52

skipif mysql # not compatible
query II rowsort label-9485
SELECT - 90, SUM ( - 70 ) + 18 AS col0
----
-90
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9486
SELECT + 1 AS col1, - COUNT( * )
----
1
-1

skipif mysql # not compatible
query II rowsort label-9486
SELECT + 1 AS col1, - COUNT ( * )
----
1
-1

query I rowsort
SELECT ALL - - 89 AS col1
----
89

query I rowsort
SELECT - 64 + 96 - - 69 + 52 * - 88 * + 27 AS col1
----
-123451

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT - MIN( DISTINCT 94 ) * - MIN( ( - 93 ) ) + - 93 AS col0
----
-8835

skipif mysql # not compatible
query I rowsort label-9489
SELECT - MIN ( DISTINCT 94 ) * - MIN ( ( - 93 ) ) + - 93 AS col0
----
-8835

query I rowsort
SELECT - 47 - + - 59 AS col0
----
12

query II rowsort
SELECT + - 41 AS col2, + 49 AS col1
----
-41
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9492
SELECT ALL + COUNT( * ), - NULLIF ( 2, - AVG ( ALL 96 ) + + MIN( ALL COALESCE ( 24, - 16 + - 71, 85 - 10 ) + - 31 ) ) AS col0
----
1
-2

skipif mysql # not compatible
query II rowsort label-9492
SELECT ALL + COUNT ( * ), - NULLIF ( 2, - AVG ( ALL 96 ) + + MIN ( ALL COALESCE ( 24, - 16 + - 71, 85 - 10 ) + - 31 ) ) AS col0
----
1
-2

query I rowsort
SELECT ALL + 43 * - ( - 5 ) AS col1
----
215

query I rowsort
SELECT DISTINCT 78 - 6 AS col1
----
72

query I rowsort
SELECT DISTINCT 61 * - COALESCE ( - + 87, - 59, - 31 * + 14 ) * 20 AS col0
----
106140

query I rowsort
SELECT DISTINCT 79 * 81 AS col1
----
6399

query I rowsort
SELECT 11 * - 38
----
-418

query I rowsort
SELECT 46 * + 31 * + 13
----
18538

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT COUNT( * ) + COUNT( * ) * - ( + ( + COUNT( * ) ) ) + - 79 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-9499
SELECT COUNT ( * ) + COUNT ( * ) * - ( + ( + COUNT ( * ) ) ) + - 79 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT COALESCE ( - MAX( DISTINCT - 99 ), 58 * - 87, 34 ) * ( - MAX( ALL 66 ) )
----
-6534

skipif mysql # not compatible
query I rowsort label-9500
SELECT COALESCE ( - MAX ( DISTINCT - 99 ), 58 * - 87, 34 ) * ( - MAX ( ALL 66 ) )
----
-6534

query I rowsort
SELECT DISTINCT + 82 * + COALESCE ( + + 55, 85 )
----
4510

query I rowsort
SELECT ALL + 64 + + 52 - - 43
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL ( COUNT( * ) ) * 35
----
35

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL ( COUNT ( * ) ) * 35
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9504
SELECT 42 + + 68 - - 85 DIV - - COUNT( * ) AS col1
----
195

skipif mysql # not compatible
query I rowsort label-9504
SELECT 42 + + 68 - - 85 / - - COUNT ( * ) AS col1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9505
SELECT ALL + 65 + - 81, - CAST( - 15 AS SIGNED ) AS col1
----
-16
15

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL + 65 + - 81, - CAST ( - 15 AS INTEGER ) AS col1
----
-16
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT CAST( + 58 AS SIGNED ) + 18 + + 77 * + 40
----
3156

skipif mysql # not compatible
query I rowsort label-9506
SELECT CAST ( + 58 AS INTEGER ) + 18 + + 77 * + 40
----
3156

query I rowsort
SELECT 61 + - - 18 * + - 55 AS col1
----
-929

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + COUNT( * ) * + 16 + 6 AS col2
----
22

skipif mysql # not compatible
query I rowsort label-9508
SELECT + COUNT ( * ) * + 16 + 6 AS col2
----
22

query I rowsort
SELECT ALL + 65 + - 5 + - - 63 AS col1
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9510
SELECT + CASE + CAST( 86 AS DECIMAL ) WHEN - ( 46 ) THEN + 67 + + 47 ELSE NULL END * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT + CASE + CAST ( 86 AS REAL ) WHEN - ( 46 ) THEN + 67 + + 47 ELSE NULL END * - 35
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9511
SELECT + NULLIF ( + 67, + + NULLIF ( + + 46, 66 - CASE WHEN 51 IN ( + 91 ) THEN + SUM( CAST( NULL AS SIGNED ) ) + - 92 ELSE - ( - 47 ) END ) ) / - CAST( NULL AS SIGNED ) + + NULLIF ( - COALESCE ( CAST( - 35 AS SIGNED ), + 6, COUNT( ALL 28 ) ), 75 + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9511
SELECT + NULLIF ( + 67, + + NULLIF ( + + 46, 66 - CASE WHEN 51 IN ( + 91 ) THEN + SUM ( CAST ( NULL AS INTEGER ) ) + - 92 ELSE - ( - 47 ) END ) ) / - CAST ( NULL AS INTEGER ) + + NULLIF ( - COALESCE ( CAST ( - 35 AS INTEGER ), + 6, COUNT ( ALL 28 ) ), 75 + 14 )
----
NULL

query I rowsort
SELECT ALL - 90 + + ( + + 31 ) AS col0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-9513
SELECT DISTINCT + 32 + + + 54 AS col1, - COUNT( * ) AS col1
----
86
-1

skipif mysql # not compatible
query II rowsort label-9513
SELECT DISTINCT + 32 + + + 54 AS col1, - COUNT ( * ) AS col1
----
86
-1

query I rowsort
SELECT ALL - - 38 AS col0
----
38

query I rowsort
SELECT ALL + - 44 + - 90 + + - 34 AS col0
----
-168

query I rowsort
SELECT DISTINCT - + 56
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9517
SELECT 99 + COUNT( * ) AS col2, 19 + - + COUNT( 62 ) DIV - ( 34 * 90 ) col2
----
100
19

skipif mysql # not compatible
query II rowsort label-9517
SELECT 99 + COUNT ( * ) AS col2, 19 + - + COUNT ( 62 ) / - ( 34 * 90 ) col2
----
100
19

query II rowsort
SELECT 86 * - 79 AS col0, - 51
----
-6794
-51

query I rowsort
SELECT DISTINCT + + 14 * + 15 - 29 AS col1
----
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL - + MIN( 56 ) - CASE - 52 WHEN 65 * + 83 THEN 9 * COUNT( * ) ELSE + CAST( + 23 AS SIGNED ) END + - CAST( + COUNT( * ) AS SIGNED )
----
-80

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - + MIN ( 56 ) - CASE - 52 WHEN 65 * + 83 THEN 9 * COUNT ( * ) ELSE + CAST ( + 23 AS INTEGER ) END + - CAST ( + COUNT ( * ) AS INTEGER )
----
-80

query I rowsort
SELECT 78 * + + 55 + + + 49
----
4339

query I rowsort
SELECT - 47 * 43 + + 52 * + 18 * 72 AS col0
----
65371

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9523
SELECT CAST( + 10 AS SIGNED ) AS col2, 20 * 18 * + 61
----
10
21960

skipif mysql # not compatible
query II rowsort label-9523
SELECT CAST ( + 10 AS INTEGER ) AS col2, 20 * 18 * + 61
----
10
21960

query I rowsort
SELECT DISTINCT - - 23 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT DISTINCT - - COUNT( * ) - 98 - - 2 AS col2
----
-95

skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - - COUNT ( * ) - 98 - - 2 AS col2
----
-95

query I rowsort
SELECT DISTINCT - 75 - 0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9527
SELECT DISTINCT - COALESCE ( - - 36, - 50 + - 22 - 79, COALESCE ( 18, CAST( + ( COUNT( * ) ) AS SIGNED ) + COUNT( * ) ) ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT - COALESCE ( - - 36, - 50 + - 22 - 79, COALESCE ( 18, CAST ( + ( COUNT ( * ) ) AS INTEGER ) + COUNT ( * ) ) ) AS col1
----
-36

query I rowsort
SELECT ( + 32 ) * + + 23 AS col0
----
736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9529
SELECT ALL ( 93 ) DIV CASE - + COUNT( * ) WHEN + 93 * + 92 THEN - CASE - CAST( NULL AS DECIMAL ) WHEN + 87 DIV 94 + 64 THEN 61 + - 67 ELSE NULL END + + 7 DIV 6 WHEN - 40 THEN NULL ELSE CAST( 12 AS SIGNED ) + 95 * 37 END DIV - 90 + 30 * + 82 AS col0
----
2460

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL ( 93 ) / CASE - + COUNT ( * ) WHEN + 93 * + 92 THEN - CASE - CAST ( NULL AS REAL ) WHEN + 87 / 94 + 64 THEN 61 + - 67 ELSE NULL END + + 7 / 6 WHEN - 40 THEN NULL ELSE CAST ( 12 AS INTEGER ) + 95 * 37 END / - 90 + 30 * + 82 AS col0
----
2460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT 4 * - CAST( NULL AS SIGNED ) * + 54 - + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9530
SELECT 4 * - CAST ( NULL AS INTEGER ) * + 54 - + + 96 AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + - 22 AS col1
----
-1452

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT COALESCE ( + - NULLIF ( - 46, + - 63 ), - 62 ) DIV + 55
----
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT COALESCE ( + - NULLIF ( - 46, + - 63 ), - 62 ) / + 55
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9533
SELECT COUNT( * ) * + 38 * 71 AS col2, - 61
----
2698
-61

skipif mysql # not compatible
query II rowsort label-9533
SELECT COUNT ( * ) * + 38 * 71 AS col2, - 61
----
2698
-61

query I rowsort
SELECT ALL 60 + - ( + + NULLIF ( 52, - 54 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT DISTINCT CASE 26 WHEN + COUNT( + - 41 ) THEN - - COUNT( * ) * COUNT( * ) WHEN 94 THEN + 92 WHEN - 5 THEN NULL ELSE - 61 * 2 + 91 END * + 95
----
-2945

skipif mysql # not compatible
query I rowsort label-9535
SELECT DISTINCT CASE 26 WHEN + COUNT ( + - 41 ) THEN - - COUNT ( * ) * COUNT ( * ) WHEN 94 THEN + 92 WHEN - 5 THEN NULL ELSE - 61 * 2 + 91 END * + 95
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
SELECT 62 + 59 * COUNT( * ) * + + 82
----
4900

skipif mysql # not compatible
query I rowsort label-9536
SELECT 62 + 59 * COUNT ( * ) * + + 82
----
4900

query II rowsort
SELECT 80 AS col1, 27
----
80
27

query I rowsort
SELECT ALL 7 * 22
----
154

onlyif mysql # DIV for integer division: 
query I rowsort label-9539
SELECT DISTINCT 65 + 79 * 43 DIV - 75 - + 25 * 7
----
-155

skipif mysql # not compatible
query I rowsort label-9539
SELECT DISTINCT 65 + 79 * 43 / - 75 - + 25 * 7
----
-155

query II rowsort
SELECT ALL 24 + 70 * + 77 AS col1, + 97 AS col0
----
5414
97

query I rowsort
SELECT ALL 0 + + - 45 col0
----
-45

query I rowsort
SELECT DISTINCT 59 + - 15
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - MIN( ALL 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9543
SELECT - MIN ( ALL 30 ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9544
SELECT + CASE + + NULLIF ( - 17, + 9 ) WHEN + ( 32 ) * + 32 THEN COUNT( * ) DIV + 57 ELSE 30 END * MAX( - 7 )
----
-210

skipif mysql # not compatible
query I rowsort label-9544
SELECT + CASE + + NULLIF ( - 17, + 9 ) WHEN + ( 32 ) * + 32 THEN COUNT ( * ) / + 57 ELSE 30 END * MAX ( - 7 )
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9545
SELECT - CAST( + 4 AS SIGNED ) + + 19 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-9545
SELECT - CAST ( + 4 AS INTEGER ) + + 19 AS col0
----
15

query II rowsort
SELECT ALL 75, 2 * + 12 AS col2
----
75
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ALL 64 + COUNT( * ) + 0 * ( 12 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-9547
SELECT ALL 64 + COUNT ( * ) + 0 * ( 12 ) AS col1
----
65

query I rowsort
SELECT DISTINCT 23 + 7 * - 52
----
-341

query I rowsort
SELECT DISTINCT + 16 AS col2
----
16

query I rowsort
SELECT ALL + - 92 + + 26 AS col1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + ( + 34 ) * - 8 * - - COUNT( * ) + 12 * 38
----
184

skipif mysql # not compatible
query I rowsort label-9551
SELECT + ( + 34 ) * - 8 * - - COUNT ( * ) + 12 * 38
----
184

onlyif mysql # DIV for integer division: 
query I rowsort label-9552
SELECT ALL 22 DIV 93
----
0

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL 22 / 93
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9553
SELECT DISTINCT + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 0 * 15 - + 15
----
-15

query I rowsort
SELECT + - 47 - 25 * + 41 + - 41 AS col1
----
-1113

query II rowsort
SELECT ALL + + 62 AS col1, - NULLIF ( - 67, 87 - 50 ) + 9 AS col1
----
62
76

query I rowsort
SELECT ALL + + ( + + 47 ) AS col2
----
47

query I rowsort
SELECT + + 47
----
47

query I rowsort
SELECT ALL + + 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT - COUNT( DISTINCT 59 ) * 55
----
-55

skipif mysql # not compatible
query I rowsort label-9560
SELECT - COUNT ( DISTINCT 59 ) * 55
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9561
SELECT DISTINCT - + ( 86 ) / + CAST( NULL AS SIGNED ) / + + 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT - + ( 86 ) / + CAST ( NULL AS INTEGER ) / + + 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT - - COUNT( * ) * ( + - 92 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-9562
SELECT - - COUNT ( * ) * ( + - 92 ) AS col1
----
-92

query I rowsort
SELECT ALL - 37 * 73
----
-2701

query I rowsort
SELECT ALL + - 51
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT - - 40 * - 32 + - COUNT( - 94 ) + + MAX( DISTINCT + 4 ) * + COALESCE ( 88, + 66 ) AS col0
----
-929

skipif mysql # not compatible
query I rowsort label-9565
SELECT - - 40 * - 32 + - COUNT ( - 94 ) + + MAX ( DISTINCT + 4 ) * + COALESCE ( 88, + 66 ) AS col0
----
-929

query I rowsort
SELECT ALL + - 79 AS col2
----
-79

query I rowsort
SELECT ALL + + 45 * + + 31 AS col0
----
1395

query I rowsort
SELECT - 79 + + - 75 * - ( 10 ) + + - 87 AS col1
----
584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9569
SELECT ALL + CAST( NULL AS SIGNED ) * - 12 * - ( - 12 ) / + 54 * + 87 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL + CAST ( NULL AS INTEGER ) * - 12 * - ( - 12 ) / + 54 * + 87 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9570
SELECT - 96 * + + 92 * - - CASE - NULLIF ( - COUNT( * ), 55 * COUNT( * ) ) WHEN + COUNT( * ) * CAST( - NULLIF ( 36, 22 ) * + COALESCE ( - 71, 75 - 51 ) AS SIGNED ) THEN + CASE 81 WHEN - 89 THEN NULL WHEN + 53 THEN CAST( NULL AS SIGNED ) END WHEN 11 THEN 74 END * - 8 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9570
SELECT - 96 * + + 92 * - - CASE - NULLIF ( - COUNT ( * ), 55 * COUNT ( * ) ) WHEN + COUNT ( * ) * CAST ( - NULLIF ( 36, 22 ) * + COALESCE ( - 71, 75 - 51 ) AS INTEGER ) THEN + CASE 81 WHEN - 89 THEN NULL WHEN + 53 THEN CAST ( NULL AS INTEGER ) END WHEN 11 THEN 74 END * - 8 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT 9 * + CAST( - COUNT( * ) AS SIGNED ) + - - COALESCE ( - COALESCE ( + 22, - 97 ), SUM( 7 ) ) * 57
----
-1263

skipif mysql # not compatible
query I rowsort label-9571
SELECT 9 * + CAST ( - COUNT ( * ) AS INTEGER ) + - - COALESCE ( - COALESCE ( + 22, - 97 ), SUM ( 7 ) ) * 57
----
-1263

query I rowsort
SELECT DISTINCT 61 * - 74 * 43 + 15
----
-194087

query I rowsort
SELECT DISTINCT 30 * 3 + - + 62 * 6 + - 12 AS col2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT COALESCE ( + + 86, + COUNT( DISTINCT 39 ) * - ( ( COUNT( * ) ) ), 91 + 99 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT COALESCE ( + + 86, + COUNT ( DISTINCT 39 ) * - ( ( COUNT ( * ) ) ), 91 + 99 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL 60 + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL 60 + - COUNT ( * ) AS col1
----
59

query I rowsort
SELECT ALL 19 + - - CASE + 88 WHEN 23 THEN NULL ELSE - 54 - + 53 END
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL ( - SUM( DISTINCT - ( ( 51 ) ) ) ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL ( - SUM ( DISTINCT - ( ( 51 ) ) ) ) AS col1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9578
SELECT DISTINCT - CAST( - - 44 AS SIGNED ) + + 99 * + 76, - NULLIF ( 52, MAX( ALL + 19 ) ) + - 14 col0
----
7480
-66

skipif mysql # not compatible
query II rowsort label-9578
SELECT DISTINCT - CAST ( - - 44 AS INTEGER ) + + 99 * + 76, - NULLIF ( 52, MAX ( ALL + 19 ) ) + - 14 col0
----
7480
-66

query II rowsort
SELECT + 1 + 99, + 69 AS col1
----
100
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9580
SELECT + 19 DIV - 13 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9580
SELECT + 19 / - 13 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL - 64 + - COUNT( * ) * + - 64
----
0

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL - 64 + - COUNT ( * ) * + - 64
----
0

query I rowsort
SELECT ALL + 10 + 65
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL 77 * COUNT( * ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL 77 * COUNT ( * ) AS col2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9584
SELECT - 83 DIV 4 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9584
SELECT - 83 / 4 AS col1
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9585
SELECT ALL 70, - ( MIN( DISTINCT 15 ) ) AS col1
----
70
-15

skipif mysql # not compatible
query II rowsort label-9585
SELECT ALL 70, - ( MIN ( DISTINCT 15 ) ) AS col1
----
70
-15

query I rowsort
SELECT ALL + 2 + - 80
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL SUM( + 57 ) + - 35 + + - ( MIN( 66 ) ) + + 45 * 68
----
3016

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL SUM ( + 57 ) + - 35 + + - ( MIN ( 66 ) ) + + 45 * 68
----
3016

query I rowsort
SELECT ALL 47 + + NULLIF ( - 58, + - 80 ) AS col1
----
-11

query I rowsort
SELECT DISTINCT - 29 * - + 27
----
783

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT ALL 11 * + - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL 11 * + - COUNT ( * )
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9591
SELECT DISTINCT 29 * + CAST( 31 AS SIGNED ) AS col0
----
899

skipif mysql # not compatible
query I rowsort label-9591
SELECT DISTINCT 29 * + CAST ( 31 AS INTEGER ) AS col0
----
899

query II rowsort
SELECT ALL 47 AS col1, 43
----
47
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT - + CASE + - 57 WHEN COUNT( * ) THEN 33 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT - + CASE + - 57 WHEN COUNT ( * ) THEN 33 END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT + 86 - - - 8 - - NULLIF ( COUNT( DISTINCT - 91 ), + 43 ) + CAST( - NULLIF ( 58, - CASE - 60 WHEN - 48 THEN NULL ELSE - 4 * - 50 + - 20 END * - 67 ) AS SIGNED ) * - 79
----
4661

skipif mysql # not compatible
query I rowsort label-9594
SELECT + 86 - - - 8 - - NULLIF ( COUNT ( DISTINCT - 91 ), + 43 ) + CAST ( - NULLIF ( 58, - CASE - 60 WHEN - 48 THEN NULL ELSE - 4 * - 50 + - 20 END * - 67 ) AS INTEGER ) * - 79
----
4661

query II rowsort
SELECT 71, + 91 - + 78 AS col2
----
71
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL + + MAX( ALL + + 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL + + MAX ( ALL + + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT + + 27 + - 63 * - COUNT( DISTINCT - 58 )
----
90

skipif mysql # not compatible
query I rowsort label-9597
SELECT + + 27 + - 63 * - COUNT ( DISTINCT - 58 )
----
90

query I rowsort
SELECT 52 * + + 12 * 95 + 82 * 0
----
59280

query II rowsort
SELECT + 59, 57 AS col2
----
59
57

query II rowsort
SELECT ALL + + 36 AS col0, 32 AS col2
----
36
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9601
SELECT ALL 40 / - + CAST( NULL AS SIGNED ) / - COUNT( 23 ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9601
SELECT ALL 40 / - + CAST ( NULL AS INTEGER ) / - COUNT ( 23 ) + - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - + 69 * - - 83 AS col0
----
-5727

query I rowsort
SELECT DISTINCT 67 * 38
----
2546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT 36 * + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + + COUNT( * ) * + 14 + - ( + 36 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9604
SELECT 36 * + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + 14 + - ( + 36 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT SUM( ALL - - 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-9605
SELECT SUM ( ALL - - 14 ) AS col2
----
14

query I rowsort
SELECT + 32 * 28 * 68
----
60928

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9607
SELECT ALL - 78 * - 83 + + - COUNT( * ) / - + 26 * + + 32 + 44 + - 41 + + CASE 7 WHEN 65 * + CAST( NULL AS DECIMAL ) THEN 59 WHEN 59 / - SUM( DISTINCT 17 ) THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL - 78 * - 83 + + - COUNT ( * ) / - + 26 * + + 32 + 44 + - 41 + + CASE 7 WHEN 65 * + CAST ( NULL AS REAL ) THEN 59 WHEN 59 / - SUM ( DISTINCT 17 ) THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT ALL 26 * - - 44 + + SUM( ALL + + 25 ) + - COUNT( * )
----
1168

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL 26 * - - 44 + + SUM ( ALL + + 25 ) + - COUNT ( * )
----
1168

query I rowsort
SELECT ALL 32 * 74 + + + 49 + + 25
----
2442

query I rowsort
SELECT DISTINCT - 23 * + 69
----
-1587

query II rowsort
SELECT 52 + + 25 AS col1, - 48 - - - 79 AS col2
----
77
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT + ( 47 ) * - 20 + NULLIF ( + + 89, + COUNT( * ) - + 62 - COALESCE ( 31, 18, - COALESCE ( - 59, + ( - 36 ) + 73, - 90 ) ) * AVG ( ALL + 50 + - 84 ) ) AS col0
----
-851

skipif mysql # not compatible
query I rowsort label-9612
SELECT + ( 47 ) * - 20 + NULLIF ( + + 89, + COUNT ( * ) - + 62 - COALESCE ( 31, 18, - COALESCE ( - 59, + ( - 36 ) + 73, - 90 ) ) * AVG ( ALL + 50 + - 84 ) ) AS col0
----
-851

query I rowsort
SELECT 97 + + 40
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT 0 * COUNT( * ) * + 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT 0 * COUNT ( * ) * + 38 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT DISTINCT - 61 * + 15 AS col0, COUNT( * ) + 73 * - - 98 AS col0
----
-915
7155

skipif mysql # not compatible
query II rowsort label-9615
SELECT DISTINCT - 61 * + 15 AS col0, COUNT ( * ) + 73 * - - 98 AS col0
----
-915
7155

query I rowsort
SELECT 96 + - + 82
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - 34 - - + NULLIF ( 22, NULLIF ( COUNT( ALL 8 ), + + COALESCE ( - AVG ( 69 ), + ( ( 45 ) ) ) * AVG ( ( 46 ) ) ) ) * + 11 AS col1
----
208

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - 34 - - + NULLIF ( 22, NULLIF ( COUNT ( ALL 8 ), + + COALESCE ( - AVG ( 69 ), + ( ( 45 ) ) ) * AVG ( ( 46 ) ) ) ) * + 11 AS col1
----
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT CAST( NULL AS SIGNED ) + + 13 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT CAST ( NULL AS INTEGER ) + + 13 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9619
SELECT ALL - 53 - + 68 * 8 * + 85 - 11 + + + 85 + - + CASE + 68 WHEN - 3 * 67 + 7 * + 15 THEN 57 ELSE - 72 * 2 END + + COUNT( * ) DIV ( + COUNT( * ) ) AS col0
----
-46074

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - 53 - + 68 * 8 * + 85 - 11 + + + 85 + - + CASE + 68 WHEN - 3 * 67 + 7 * + 15 THEN 57 ELSE - 72 * 2 END + + COUNT ( * ) / ( + COUNT ( * ) ) AS col0
----
-46074

query I rowsort
SELECT + 92 * + 96
----
8832

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9621
SELECT SUM( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST( - 69 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9621
SELECT SUM ( + 73 ) * - CASE WHEN NOT ( NOT 27 BETWEEN 15 AND - NULLIF ( - 63, - 28 + + 76 ) ) THEN NULL ELSE + 77 * + 69 END / - CAST ( - 69 AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT 82 + 63 + - - 55 * + ( + COUNT( * ) ) AS col1
----
200

skipif mysql # not compatible
query I rowsort label-9622
SELECT 82 + 63 + - - 55 * + ( + COUNT ( * ) ) AS col1
----
200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT DISTINCT - - 8 / + 81 * - 36 * MIN( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - - 8 / + 81 * - 36 * MIN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT DISTINCT - 3 * - 18 * 34 AS col2
----
1836

query I rowsort
SELECT 30 * 43 * + 10 + + 62
----
12962

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9626
SELECT ALL + 70 * + NULLIF ( CASE ( - 62 ) WHEN + 6 * - 77 THEN + CAST( + 10 AS DECIMAL ) + - 72 WHEN - 84 * - 1 + - 62 / ( COUNT( * ) * - COALESCE ( 59 / - 54, + 78 ) + COUNT( * ) ) THEN NULL END, 63 - 96 / + 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT ALL + 70 * + NULLIF ( CASE ( - 62 ) WHEN + 6 * - 77 THEN + CAST ( + 10 AS REAL ) + - 72 WHEN - 84 * - 1 + - 62 / ( COUNT ( * ) * - COALESCE ( 59 / - 54, + 78 ) + COUNT ( * ) ) THEN NULL END, 63 - 96 / + 17 )
----
NULL

query I rowsort
SELECT DISTINCT 72 * NULLIF ( + 12, - + 81 + - ( + 75 ) + + 43 - 44 / - 94 * + 96 ) + 86
----
950

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT MIN( - 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-9628
SELECT MIN ( - 50 )
----
-50

query II rowsort
SELECT DISTINCT - + ( + 67 ) AS col0, - 27 AS col0
----
-67
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9630
SELECT + 8 * AVG ( 16 ) * + + ( + + CASE - - 8 WHEN - + 65 THEN NULL WHEN 62 THEN NULL ELSE 22 * 17 END ) + - CASE CAST( NULL AS SIGNED ) + + 95 WHEN 30 + - 30 THEN NULL WHEN + 4 THEN + 49 - 30 WHEN 59 * COUNT( * ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT + 8 * AVG ( 16 ) * + + ( + + CASE - - 8 WHEN - + 65 THEN NULL WHEN 62 THEN NULL ELSE 22 * 17 END ) + - CASE CAST ( NULL AS INTEGER ) + + 95 WHEN 30 + - 30 THEN NULL WHEN + 4 THEN + 49 - 30 WHEN 59 * COUNT ( * ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT + - SUM( - 18 )
----
18

skipif mysql # not compatible
query I rowsort label-9631
SELECT + - SUM ( - 18 )
----
18

query II rowsort
SELECT ALL + 35 * + 26, 53 AS col1
----
910
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - 57 * COUNT( * ) - + 29 * - 6 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-9633
SELECT - 57 * COUNT ( * ) - + 29 * - 6 AS col1
----
117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9634
SELECT ALL 74 + - + 49 DIV + COUNT( * ) - - 50
----
75

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL 74 + - + 49 / + COUNT ( * ) - - 50
----
75

query I rowsort
SELECT 79 * - 16 + + 92 * + - 98
----
-10280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9636
SELECT ALL 44 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 44 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9637
SELECT 72 AS col2, ( + + 63 ) + - SUM( DISTINCT 35 ) AS col1
----
72
28

skipif mysql # not compatible
query II rowsort label-9637
SELECT 72 AS col2, ( + + 63 ) + - SUM ( DISTINCT 35 ) AS col1
----
72
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT ALL COUNT( * ) + 21 * - + 35
----
-734

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL COUNT ( * ) + 21 * - + 35
----
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT MAX( - 64 ) - 57 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-9639
SELECT MAX ( - 64 ) - 57 AS col2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT DISTINCT COUNT( * ) + + ( - 79 ) + 46 + - CASE WHEN NOT ( + 71 ) > 49 + - 79 THEN 35 END / - 21 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT COUNT ( * ) + + ( - 79 ) + 46 + - CASE WHEN NOT ( + 71 ) > 49 + - 79 THEN 35 END / - 21 AS col0
----
NULL

query II rowsort
SELECT + 93 AS col0, ( + 97 ) * 69 - - 54
----
93
6747

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT ALL 84 + + + COALESCE ( 54, COALESCE ( + 17, NULLIF ( + 27, + 32 + SUM( + 77 ) ) ) * 2 ) * + 32
----
1812

skipif mysql # not compatible
query I rowsort label-9642
SELECT ALL 84 + + + COALESCE ( 54, COALESCE ( + 17, NULLIF ( + 27, + 32 + SUM ( + 77 ) ) ) * 2 ) * + 32
----
1812

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT COUNT( * ) * - + 72 * - 84 AS col1
----
6048

skipif mysql # not compatible
query I rowsort label-9643
SELECT COUNT ( * ) * - + 72 * - 84 AS col1
----
6048

query I rowsort
SELECT 55 + + 10
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9645
SELECT 10, + 50 + - + 29 + - ( CAST( NULL AS SIGNED ) ) AS col0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-9645
SELECT 10, + 50 + - + 29 + - ( CAST ( NULL AS INTEGER ) ) AS col0
----
10
NULL

query II rowsort
SELECT 80, 26 * - 64 * 67 AS col2
----
80
-111488

query I rowsort
SELECT DISTINCT 7 * - 82
----
-574

query I rowsort
SELECT ALL - 47 - + 60
----
-107

query II rowsort
SELECT - 16 AS col0, - 98 AS col0
----
-16
-98

query I rowsort
SELECT ALL + 75 * + - 85
----
-6375

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9651
SELECT ALL 35 DIV 76 * - - SUM( 76 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT ALL 35 / 76 * - - SUM ( 76 ) AS col2
----
0

query II rowsort
SELECT ALL 23, + 12 - - 94 AS col2
----
23
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9653
SELECT ALL + 63, - 80 DIV - CASE - 53 WHEN 95 THEN NULL ELSE 78 + CAST( + 9 AS SIGNED ) + MAX( DISTINCT + 45 ) END AS col0
----
63
0

skipif mysql # not compatible
query II rowsort label-9653
SELECT ALL + 63, - 80 / - CASE - 53 WHEN 95 THEN NULL ELSE 78 + CAST ( + 9 AS INTEGER ) + MAX ( DISTINCT + 45 ) END AS col0
----
63
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT 7 + - ( + 59 ) + + 91 + NULLIF ( - 97, - 39 + COUNT( * ) * 74 ) + MAX( 36 ) * - COUNT( * ) AS col0
----
-94

skipif mysql # not compatible
query I rowsort label-9654
SELECT 7 + - ( + 59 ) + + 91 + NULLIF ( - 97, - 39 + COUNT ( * ) * 74 ) + MAX ( 36 ) * - COUNT ( * ) AS col0
----
-94

query I rowsort
SELECT - 89 * - 9 AS col1
----
801

query I rowsort
SELECT 66 * + 81
----
5346

query I rowsort
SELECT ALL - - 5 * - 10
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT + MIN( DISTINCT + 40 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-9658
SELECT + MIN ( DISTINCT + 40 ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT COUNT( DISTINCT - - 53 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9659
SELECT COUNT ( DISTINCT - - 53 ) AS col2
----
1

query I rowsort
SELECT ALL - - 80 * + - 88 AS col1
----
-7040

onlyif mysql # aggregate syntax: 
query I rowsort label-9661
SELECT ALL - MIN( DISTINCT + 25 ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - MIN ( DISTINCT + 25 ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT NULLIF ( 90, + - COUNT( * ) * + 77 ) - + - 82 + + 82 * - 29 * 37 AS col0
----
-87814

skipif mysql # not compatible
query I rowsort label-9662
SELECT NULLIF ( 90, + - COUNT ( * ) * + 77 ) - + - 82 + + 82 * - 29 * 37 AS col0
----
-87814

query I rowsort
SELECT DISTINCT + 73 col1
----
73

query I rowsort
SELECT DISTINCT - 17 col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT CAST( 21 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-9665
SELECT CAST ( 21 AS INTEGER )
----
21

query I rowsort
SELECT ALL - ( - 10 ) + + 44 AS col2
----
54

query I rowsort
SELECT - 48 + + + 64 AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT 25 DIV + + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT 25 / + + 31 AS col1
----
0

query I rowsort
SELECT 68 * + 88 * + + 10
----
59840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT 55 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT 55 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT 50, - COUNT( * ) * 53 + - 94 AS col2
----
50
-147

skipif mysql # not compatible
query II rowsort label-9671
SELECT 50, - COUNT ( * ) * 53 + - 94 AS col2
----
50
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT MIN( 83 )
----
83

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT MIN ( 83 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT ALL - + COUNT( * ) + - - 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-9673
SELECT ALL - + COUNT ( * ) + - - 21 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT - 15 + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-9674
SELECT - 15 + COUNT ( * )
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9675
SELECT COALESCE ( - COUNT( * ), - 95 * - COUNT( * ) DIV - + COALESCE ( 76, 9 ) + - 5, + 93 ) - 17 AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-9675
SELECT COALESCE ( - COUNT ( * ), - 95 * - COUNT ( * ) / - + COALESCE ( 76, 9 ) + - 5, + 93 ) - 17 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-9676
SELECT - 6 AS col1, COUNT( * ) AS col0
----
-6
1

skipif mysql # not compatible
query II rowsort label-9676
SELECT - 6 AS col1, COUNT ( * ) AS col0
----
-6
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL + - SUM( DISTINCT 41 ) * + 29 + + 51
----
-1138

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL + - SUM ( DISTINCT 41 ) * + 29 + + 51
----
-1138

query I rowsort
SELECT - 30 * - 16 + + 43 * - 18
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + - ( + MAX( - 75 ) ) * + 43 + - + 16
----
3209

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + - ( + MAX ( - 75 ) ) * + 43 + - + 16
----
3209

onlyif mysql # DIV for integer division: 
query I rowsort label-9680
SELECT DISTINCT + - 96 DIV 23 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-9680
SELECT DISTINCT + - 96 / 23 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT ALL + 18 * 44 + + + MIN( + 17 ) + - 93 + + - 98 AS col1
----
618

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL + 18 * 44 + + + MIN ( + 17 ) + - 93 + + - 98 AS col1
----
618

query I rowsort
SELECT + - 24 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT 90 * - NULLIF ( + ( 3 ), - 52 * - + 4 - COUNT( * ) )
----
-270

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT 90 * - NULLIF ( + ( 3 ), - 52 * - + 4 - COUNT ( * ) )
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 84 + - + 94 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 84 + - + 94 col2
----
NULL

query I rowsort
SELECT ALL CASE - 18 WHEN + 52 THEN - + 49 * 53 END * - 5 * + AVG ( 12 ) + + + 95 + 34 * - 53
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT + COUNT( * ) * + 73 + 55
----
128

skipif mysql # not compatible
query I rowsort label-9686
SELECT + COUNT ( * ) * + 73 + 55
----
128

query I rowsort
SELECT - 66 * 0 * - 87 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT COALESCE ( 42, + 92, + 18 ) DIV + + 37 + 16 + COALESCE ( + 4, - - 93 * + 49 ) + 67 AS col0
----
88

skipif mysql # not compatible
query I rowsort label-9688
SELECT COALESCE ( 42, + 92, + 18 ) / + + 37 + 16 + COALESCE ( + 4, - - 93 * + 49 ) + 67 AS col0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT COUNT( ALL + 36 )
----
1

skipif mysql # not compatible
query I rowsort label-9689
SELECT COUNT ( ALL + 36 )
----
1

query I rowsort
SELECT ALL 61 * + + 88 - - 51 AS col2
----
5419

query I rowsort
SELECT ALL + 35 col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT ALL 79 * + 2 * + COUNT( * ) - - COUNT( * )
----
159

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL 79 * + 2 * + COUNT ( * ) - - COUNT ( * )
----
159

onlyif mysql # aggregate syntax: 
query II rowsort label-9693
SELECT + COALESCE ( 74, + COUNT( * ) ) * 31 + 91 AS col0, - 46 * 22 AS col2
----
2385
-1012

skipif mysql # not compatible
query II rowsort label-9693
SELECT + COALESCE ( 74, + COUNT ( * ) ) * 31 + 91 AS col0, - 46 * 22 AS col2
----
2385
-1012

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL COUNT( * ) * 53
----
53

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL COUNT ( * ) * 53
----
53

query I rowsort
SELECT DISTINCT 42 * 81 - 87 col1
----
3315

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT SUM( 33 )
----
33

skipif mysql # not compatible
query I rowsort label-9696
SELECT SUM ( 33 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9697
SELECT ALL 94 * + COALESCE ( + + 66, - 79 * 47, + - 15 + - 81 * - CASE - + 19 WHEN - 39 + CASE - 62 - - ( 26 ) WHEN 14 * + 32 THEN 34 + 9 * 34 WHEN + 89 * 89 THEN NULL END * - 63 THEN NULL WHEN ( - 49 ) - - CAST( NULL AS SIGNED ) THEN 9 END * + 66 ) * 96 col0
----
595584

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL 94 * + COALESCE ( + + 66, - 79 * 47, + - 15 + - 81 * - CASE - + 19 WHEN - 39 + CASE - 62 - - ( 26 ) WHEN 14 * + 32 THEN 34 + 9 * 34 WHEN + 89 * 89 THEN NULL END * - 63 THEN NULL WHEN ( - 49 ) - - CAST ( NULL AS INTEGER ) THEN 9 END * + 66 ) * 96 col0
----
595584

onlyif mysql # aggregate syntax: 
query I rowsort label-9698
SELECT + COALESCE ( - + 10, - + 81 * - 12 + MAX( + 67 ), - 92 * - 96 + + - 92 - - ( 91 ) * - 78 + 4 ) * 88
----
-880

skipif mysql # not compatible
query I rowsort label-9698
SELECT + COALESCE ( - + 10, - + 81 * - 12 + MAX ( + 67 ), - 92 * - 96 + + - 92 - - ( 91 ) * - 78 + 4 ) * 88
----
-880

query I rowsort
SELECT + 6 * - 8
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * - 89
----
-89

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * - 89
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT + 94 + + + 13 + 74 - + 31 - - 87 * 18 DIV - + 38 - - 53 AS col0
----
162

skipif mysql # not compatible
query I rowsort label-9701
SELECT + 94 + + + 13 + 74 - + 31 - - 87 * 18 / - + 38 - - 53 AS col0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT + ( - - 40 ) - + - 28 * - CASE + + NULLIF ( - AVG ( + + 68 ), + 89 ) WHEN - + 87 THEN NULL WHEN + 50 THEN 77 END * - CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT + ( - - 40 ) - + - 28 * - CASE + + NULLIF ( - AVG ( + + 68 ), + 89 ) WHEN - + 87 THEN NULL WHEN + 50 THEN 77 END * - CAST ( NULL AS INTEGER ) + 63
----
NULL

query I rowsort
SELECT + - 14 * - + ( - + 61 )
----
-854

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT - - COUNT( * ) + 16 AS col1
----
17

skipif mysql # not compatible
query I rowsort label-9704
SELECT - - COUNT ( * ) + 16 AS col1
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT DISTINCT ( + 37 ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9705
SELECT DISTINCT ( + 37 ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL + 34 * + ( - 2 ) AS col1
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9707
SELECT + - 65 DIV - 31 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-9707
SELECT + - 65 / - 31 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT + 19 + 92 + + NULLIF ( - 92, + - 47 ) + - + 42 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-9708
SELECT + 19 + 92 + + NULLIF ( - 92, + - 47 ) + - + 42 * - COUNT ( * )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT COUNT( ALL + 89 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT COUNT ( ALL + 89 ) AS col1
----
1

query I rowsort
SELECT ALL 2 + 55 * - 20 AS col1
----
-1098

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT ALL 7 DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL 7 / 52
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9712
SELECT DISTINCT + 51 + 23 * - 27 - NULLIF ( + 60, + - ( + CAST( NULL AS SIGNED ) ) + + - COUNT( ALL - 16 ) + COUNT( * ) ) AS col1
----
-630

skipif mysql # not compatible
query I rowsort label-9712
SELECT DISTINCT + 51 + 23 * - 27 - NULLIF ( + 60, + - ( + CAST ( NULL AS INTEGER ) ) + + - COUNT ( ALL - 16 ) + COUNT ( * ) ) AS col1
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + - ( 80 ) * 64 + 89 + + - 33 + - COUNT( * ) AS col1
----
-5065

skipif mysql # not compatible
query I rowsort label-9713
SELECT + - ( 80 ) * 64 + 89 + + - 33 + - COUNT ( * ) AS col1
----
-5065

query I rowsort
SELECT - - 7 + + 82 AS col1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT - MAX( ALL - 2 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9715
SELECT - MAX ( ALL - 2 ) AS col1
----
2

query I rowsort
SELECT - + ( - + 67 )
----
67

query II rowsort
SELECT ALL + 69 * 45 AS col1, + 87 * + 17
----
3105
1479

query I rowsort
SELECT ALL - 58 + + - 62 AS col1
----
-120

query I rowsort
SELECT - ( - 53 ) * - 40
----
-2120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9720
SELECT ALL MAX( - 61 ) DIV - ( ( 62 ) ) - 45 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL MAX ( - 61 ) / - ( ( 62 ) ) - 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + COUNT( * ) * + 60
----
60

skipif mysql # not compatible
query I rowsort label-9721
SELECT + COUNT ( * ) * + 60
----
60

query I rowsort
SELECT - 90 - - 77
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9723
SELECT ALL + 19 DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + 19 / + 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT - CAST( 15 AS SIGNED ) * - + COUNT( * ) + + 12
----
27

skipif mysql # not compatible
query I rowsort label-9724
SELECT - CAST ( 15 AS INTEGER ) * - + COUNT ( * ) + + 12
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT - CASE + - 19 WHEN + - 60 * + - 36 + - CASE - 92 WHEN + 89 THEN 66 END + + + 27 + - + MIN( 25 ) + - 6 / + AVG ( ALL 57 ) * - 41 THEN NULL ELSE COUNT( * ) END * 51
----
-51

skipif mysql # not compatible
query I rowsort label-9725
SELECT - CASE + - 19 WHEN + - 60 * + - 36 + - CASE - 92 WHEN + 89 THEN 66 END + + + 27 + - + MIN ( 25 ) + - 6 / + AVG ( ALL 57 ) * - 41 THEN NULL ELSE COUNT ( * ) END * 51
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT ALL + COUNT( * ) AS col1, - 85
----
1
-85

skipif mysql # not compatible
query II rowsort label-9726
SELECT ALL + COUNT ( * ) AS col1, - 85
----
1
-85

query I rowsort
SELECT DISTINCT + 92 * + 4 * - 2 AS col2
----
-736

query I rowsort
SELECT ( + 61 )
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9729
SELECT ALL + 20 DIV - - COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + 20 / - - COUNT ( * )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9730
SELECT - 36 DIV + COUNT( * ) * COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-9730
SELECT - 36 / + COUNT ( * ) * COUNT ( * )
----
-36

query I rowsort
SELECT ALL 48 * - + 12
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT ALL COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-9732
SELECT ALL COUNT ( * ) * 9
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9733
SELECT - COALESCE ( - COUNT( 7 ), + + COUNT( * ), 11 * + + CAST( NULL AS SIGNED ) DIV + 76 * - SUM( 69 ) * 34 + COALESCE ( - CAST( NULL AS SIGNED ), - 40 ) DIV - 39 ) - 40 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-9733
SELECT - COALESCE ( - COUNT ( 7 ), + + COUNT ( * ), 11 * + + CAST ( NULL AS INTEGER ) / + 76 * - SUM ( 69 ) * 34 + COALESCE ( - CAST ( NULL AS INTEGER ), - 40 ) / - 39 ) - 40 AS col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL + NULLIF ( - + 4, - - COUNT( * ) + 50 )
----
-4

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL + NULLIF ( - + 4, - - COUNT ( * ) + 50 )
----
-4

query I rowsort
SELECT ( - + 91 )
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9736
SELECT 20 * ( + ( + COUNT( * ) ) ) - + 19 AS col2, - 85 AS col1
----
1
-85

skipif mysql # not compatible
query II rowsort label-9736
SELECT 20 * ( + ( + COUNT ( * ) ) ) - + 19 AS col2, - 85 AS col1
----
1
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT ALL - MIN( + + 24 ) * COUNT( * ) + + 77 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL - MIN ( + + 24 ) * COUNT ( * ) + + 77 AS col0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT - 0 DIV 77
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT - 0 / 77
----
0

query I rowsort
SELECT + 6 * 67 AS col2
----
402

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT ALL + 41, 1 - + COUNT( * ) + + 24 + + COUNT( * ) * 80 col2
----
41
104

skipif mysql # not compatible
query II rowsort label-9740
SELECT ALL + 41, 1 - + COUNT ( * ) + + 24 + + COUNT ( * ) * 80 col2
----
41
104

query I rowsort
SELECT COALESCE ( - ( - ( - 28 ) ), 87 )
----
-28

query I rowsort
SELECT + 82 * 68 col1
----
5576

query I rowsort
SELECT ALL + ( + 16 ) AS col2
----
16

query I rowsort
SELECT COALESCE ( 97, - 70 - - + 68 ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9745
SELECT NULLIF ( + 51, 88 ) AS col1, + 22 * ( 75 ) * 42 * - ( - CAST( + 10 AS SIGNED ) ) AS col0
----
51
693000

skipif mysql # not compatible
query II rowsort label-9745
SELECT NULLIF ( + 51, 88 ) AS col1, + 22 * ( 75 ) * 42 * - ( - CAST ( + 10 AS INTEGER ) ) AS col0
----
51
693000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT + 76 + - CAST( - - 46 AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-9746
SELECT + 76 + - CAST ( - - 46 AS INTEGER ) AS col1
----
30

query II rowsort
SELECT ALL + 70, + 64 AS col1
----
70
64

query I rowsort
SELECT + 47 * - 33
----
-1551

query I rowsort
SELECT ALL 24 * - 3 + + 44 AS col2
----
-28

query I rowsort
SELECT DISTINCT + 41 * + ( - 8 ) - + 88
----
-416

query I rowsort
SELECT + + 2 * - ( 45 ) * 19
----
-1710

query I rowsort
SELECT + ( + ( 94 ) ) + - + 27
----
67

query I rowsort
SELECT DISTINCT 95 * + 1
----
95

query II rowsort
SELECT + - ( 20 ) - + 61 AS col0, + 20 + + 57 AS col2
----
-81
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT + + COUNT( * ) + + 59
----
60

skipif mysql # not compatible
query I rowsort label-9755
SELECT + + COUNT ( * ) + + 59
----
60

query I rowsort
SELECT + 53 * + 89 * - 27
----
-127359

query I rowsort
SELECT DISTINCT 22 * - 66 col0
----
-1452

onlyif mysql # aggregate syntax: 
query II rowsort label-9758
SELECT + SUM( ALL - 51 ) + + + 88 AS col1, - 84 + + 23 * + 53 AS col2
----
37
1135

skipif mysql # not compatible
query II rowsort label-9758
SELECT + SUM ( ALL - 51 ) + + + 88 AS col1, - 84 + + 23 * + 53 AS col2
----
37
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT ALL COALESCE ( - - 3, + - COUNT( * ) ) + - - COUNT( * ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9759
SELECT ALL COALESCE ( - - 3, + - COUNT ( * ) ) + - - COUNT ( * ) AS col2
----
4

query I rowsort
SELECT DISTINCT + ( 12 ) AS col2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9761
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + AVG ( + 39 ) AS col0, 58
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9761
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + AVG ( + 39 ) AS col0, 58
----
NULL
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9762
SELECT DISTINCT - MAX( 30 ) / MAX( - 71 ) * + CASE - 68 WHEN + 21 THEN NULL WHEN COUNT( * ) THEN + CASE + 77 WHEN 97 * - 36 THEN - 4 ELSE NULL END * 98 WHEN 24 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) THEN ( CAST( NULL AS SIGNED ) ) * 26 WHEN - 17 * + 17 THEN - 54 END + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - MAX ( 30 ) / MAX ( - 71 ) * + CASE - 68 WHEN + 21 THEN NULL WHEN COUNT ( * ) THEN + CASE + 77 WHEN 97 * - 36 THEN - 4 ELSE NULL END * 98 WHEN 24 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) THEN ( CAST ( NULL AS INTEGER ) ) * 26 WHEN - 17 * + 17 THEN - 54 END + 61
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT - + SUM( COALESCE ( + 71, 3, - 91 ) ) - + 79 + - 38 * - 84 * + SUM( ALL - + 98 ) - - 2 * 59 AS col2
----
-312848

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT - + SUM ( COALESCE ( + 71, 3, - 91 ) ) - + 79 + - 38 * - 84 * + SUM ( ALL - + 98 ) - - 2 * 59 AS col2
----
-312848

query I rowsort
SELECT + 46 + 19 AS col0
----
65

query I rowsort
SELECT + 86 * 29 AS col2
----
2494

query I rowsort
SELECT ALL + ( + 19 ) col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9767
SELECT 81 * + COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-9767
SELECT 81 * + COUNT ( * )
----
81

query I rowsort
SELECT 55 + - 80 * - 19
----
1575

query I rowsort
SELECT 91 - 33 + 47 AS col0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL + 15 - + + 76 + + + COUNT( * )
----
-60

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + 15 - + + 76 + + + COUNT ( * )
----
-60

query I rowsort
SELECT DISTINCT 84 * - 22 col2
----
-1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT ALL - CAST( - + 0 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9772
SELECT ALL - CAST ( - + 0 AS INTEGER )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9773
SELECT + 52 DIV 27 + - 26 + - 35 DIV + 70 + 62
----
37

skipif mysql # not compatible
query I rowsort label-9773
SELECT + 52 / 27 + - 26 + - 35 / + 70 + 62
----
37

query I rowsort
SELECT ALL 19 * NULLIF ( - - 29, + 69 ) AS col2
----
551

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT 0 + 61 + - 86 + + 91 DIV - 50 + 80 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9775
SELECT 0 + 61 + - 86 + + 91 / - 50 + 80 AS col1
----
54

query I rowsort
SELECT ALL - 45 col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9777
SELECT 15 DIV - + 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9777
SELECT 15 / - + 69 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9778
SELECT 96 + + - 53 + - - CAST( NULL AS DECIMAL ) + COALESCE ( + + CASE - SUM( + - 84 ) WHEN CAST( NULL AS SIGNED ) THEN NULL WHEN 7 + 11 - 30 THEN NULL WHEN 43 THEN + 79 + 92 ELSE NULL END, MIN( 89 ), + 43 - MAX( DISTINCT - 63 ) * 13 ) + 79 * ( + 58 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9778
SELECT 96 + + - 53 + - - CAST ( NULL AS REAL ) + COALESCE ( + + CASE - SUM ( + - 84 ) WHEN CAST ( NULL AS INTEGER ) THEN NULL WHEN 7 + 11 - 30 THEN NULL WHEN 43 THEN + 79 + 92 ELSE NULL END, MIN ( 89 ), + 43 - MAX ( DISTINCT - 63 ) * 13 ) + 79 * ( + 58 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT DISTINCT 76 + + CASE COUNT( * ) WHEN + ( + 14 ) THEN + + ( - COUNT( * ) ) * + - COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT 76 + + CASE COUNT ( * ) WHEN + ( + 14 ) THEN + + ( - COUNT ( * ) ) * + - COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT ALL - MAX( DISTINCT 26 ) * - 32 * + 21
----
17472

skipif mysql # not compatible
query I rowsort label-9780
SELECT ALL - MAX ( DISTINCT 26 ) * - 32 * + 21
----
17472

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT - ( - NULLIF ( COUNT( * ), 39 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - ( - NULLIF ( COUNT ( * ), 39 ) ) AS col2
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( - ( + 56 ), - + 55 ) + 31
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9783
SELECT DISTINCT - COUNT( - 11 ) DIV + 95 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - COUNT ( - 11 ) / + 95 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL + SUM( ALL + - 55 ) + MIN( + 48 ) + 96 + - + 42 * + + 51 AS col0
----
-2053

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL + SUM ( ALL + - 55 ) + MIN ( + 48 ) + 96 + - + 42 * + + 51 AS col0
----
-2053

query I rowsort
SELECT ALL - 43 * 22
----
-946

query I rowsort
SELECT + + NULLIF ( 21, 3 ) AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT ( 86 ) + + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9787
SELECT ( 86 ) + + COUNT ( * )
----
87

query II rowsort
SELECT ALL + - CASE + + 34 WHEN + + 10 THEN NULL ELSE + 96 END + - 81 * - 26 * + 65 AS col0, - ( + 9 ) + - 4
----
136794
-13

query III rowsort
SELECT - + 76 AS col1, - 5, + + ( + 73 ) AS col0
----
-76
-5
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT - 67 + - COUNT( * ) DIV - 31 * - 79 col0
----
-67

skipif mysql # not compatible
query I rowsort label-9790
SELECT - 67 + - COUNT ( * ) / - 31 * - 79 col0
----
-67

query I rowsort
SELECT 51 + - - 24 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9792
SELECT ALL + CASE 11 WHEN - + 78 * + 65 + 78 - - 36 THEN NULL ELSE - + COUNT( DISTINCT + + 90 ) END + 93 * + COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + CASE 11 WHEN - + 78 * + 65 + 78 - - 36 THEN NULL ELSE - + COUNT ( DISTINCT + + 90 ) END + 93 * + COUNT ( * )
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9793
SELECT 38, 4 * COUNT( * ) AS col0
----
38
4

skipif mysql # not compatible
query II rowsort label-9793
SELECT 38, 4 * COUNT ( * ) AS col0
----
38
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL + COUNT( * ) - + 20
----
-19

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL + COUNT ( * ) - + 20
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9795
SELECT ( + - NULLIF ( 74, - + 74 + + COUNT( * ) / - - COUNT( * ) ) ) + COALESCE ( - 97, 13, - 7 - + CASE CASE - COALESCE ( 66, 31 * - 69 + 86, + 80 ) WHEN COUNT( * ) + + NULLIF ( - 77, 32 ) THEN + 57 + COALESCE ( ( 59 ), MIN( - 49 ) ) * + 32 END WHEN + 73 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN 48 * + 7 END + + COUNT( * ) ) col1
----
-171

skipif mysql # not compatible
query I rowsort label-9795
SELECT ( + - NULLIF ( 74, - + 74 + + COUNT ( * ) / - - COUNT ( * ) ) ) + COALESCE ( - 97, 13, - 7 - + CASE CASE - COALESCE ( 66, 31 * - 69 + 86, + 80 ) WHEN COUNT ( * ) + + NULLIF ( - 77, 32 ) THEN + 57 + COALESCE ( ( 59 ), MIN ( - 49 ) ) * + 32 END WHEN + 73 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN 48 * + 7 END + + COUNT ( * ) ) col1
----
-171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT DISTINCT - CAST( + 40 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-9796
SELECT DISTINCT - CAST ( + 40 AS INTEGER )
----
-40

query I rowsort
SELECT ALL - 35 * - 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT + 17 + + COUNT( * ) + - - 94 * + 37 * + 41 AS col2
----
142616

skipif mysql # not compatible
query I rowsort label-9798
SELECT + 17 + + COUNT ( * ) + - - 94 * + 37 * + 41 AS col2
----
142616

query I rowsort
SELECT ALL - 24 - - 80 - - + 58
----
114

query I rowsort
SELECT ( + 90 ) + + 59
----
149

query I rowsort
SELECT + 74 * - + 61
----
-4514

query I rowsort
SELECT ALL 14 * - - 19 AS col0
----
266

query I rowsort
SELECT 99 * + ( 40 ) * - 56
----
-221760

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT 94 * - COUNT( DISTINCT 45 )
----
-94

skipif mysql # not compatible
query I rowsort label-9804
SELECT 94 * - COUNT ( DISTINCT 45 )
----
-94

query I rowsort
SELECT ALL - 19 * ( 14 )
----
-266

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT DISTINCT 84 * 67 * - COUNT( DISTINCT - + 19 )
----
-5628

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT 84 * 67 * - COUNT ( DISTINCT - + 19 )
----
-5628

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9807
SELECT ALL 7 DIV + + CAST( - + COALESCE ( 35, - 71, + + MIN( DISTINCT 54 ), 5 * - + 40 + - COALESCE ( - 84, - 73 - - 26, 38 + 84, + 70 ) ) AS SIGNED ) * MIN( - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-9807
SELECT ALL 7 / + + CAST ( - + COALESCE ( 35, - 71, + + MIN ( DISTINCT 54 ), 5 * - + 40 + - COALESCE ( - 84, - 73 - - 26, 38 + 84, + 70 ) ) AS INTEGER ) * MIN ( - 31 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9808
SELECT ALL 71 DIV - 1 * - - COUNT( * ) AS col0, - ( - 78 ) AS col1
----
-71
78

skipif mysql # not compatible
query II rowsort label-9808
SELECT ALL 71 / - 1 * - - COUNT ( * ) AS col0, - ( - 78 ) AS col1
----
-71
78

query I rowsort
SELECT ALL 65 * - 19 AS col1
----
-1235

onlyif mysql # DIV for integer division: 
query II rowsort label-9810
SELECT 96 * - 92 AS col2, + 28 DIV + - 34 AS col1
----
-8832
0

skipif mysql # not compatible
query II rowsort label-9810
SELECT 96 * - 92 AS col2, + 28 / + - 34 AS col1
----
-8832
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9811
SELECT DISTINCT 73 * + MAX( ALL - - CAST( NULL AS SIGNED ) ) + 48 / SUM( DISTINCT + 81 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT 73 * + MAX ( ALL - - CAST ( NULL AS INTEGER ) ) + 48 / SUM ( DISTINCT + 81 )
----
NULL

query I rowsort
SELECT ALL 41 * - 7 + - 92 AS col0
----
-379

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT DISTINCT + COALESCE ( + 89, - COUNT( * ) + - NULLIF ( - COUNT( * ), 57 + - 79 ) ) + - + 74, + 29 - + 41 AS col2
----
15
-12

skipif mysql # not compatible
query II rowsort label-9813
SELECT DISTINCT + COALESCE ( + 89, - COUNT ( * ) + - NULLIF ( - COUNT ( * ), 57 + - 79 ) ) + - + 74, + 29 - + 41 AS col2
----
15
-12

query I rowsort
SELECT ALL - 58 + + + 76 * - 36 + - - 28 AS col0
----
-2766

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL 29 * + + COALESCE ( + 53, + + 2, + + 51 * - - 19 * + 83 + - 80 + COUNT( * ) ) AS col1
----
1537

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL 29 * + + COALESCE ( + 53, + + 2, + + 51 * - - 19 * + 83 + - 80 + COUNT ( * ) ) AS col1
----
1537

query II rowsort
SELECT ALL - ( - 24 ) AS col1, 51 AS col1
----
24
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ALL - ( + COUNT( * ) ) + + 82 * + COUNT( - 76 )
----
81

skipif mysql # not compatible
query I rowsort label-9817
SELECT ALL - ( + COUNT ( * ) ) + + 82 * + COUNT ( - 76 )
----
81

query I rowsort
SELECT ALL + - 92 + 90 * - - 69 + - 16 + 31 * + 83 * - 57 AS col0
----
-140559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9819
SELECT DISTINCT - COALESCE ( + - ( - NULLIF ( 20, 87 ) ), 11 * CAST( 9 AS SIGNED ) DIV - - COUNT( * ) ) AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - COALESCE ( + - ( - NULLIF ( 20, 87 ) ), 11 * CAST ( 9 AS INTEGER ) / - - COUNT ( * ) ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - 26 * COUNT( * ) + 32
----
6

skipif mysql # not compatible
query I rowsort label-9820
SELECT - 26 * COUNT ( * ) + 32
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9821
SELECT ALL - CAST( NULL AS DECIMAL ) / + + 72 + - + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL - CAST ( NULL AS REAL ) / + + 72 + - + 21 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9822
SELECT DISTINCT - - COALESCE ( - 91, - 33 DIV + 73 + + 64 * + 78, CASE - - CAST( 84 AS SIGNED ) WHEN - 24 DIV + - 79 + AVG ( - ( 48 ) ) THEN 70 END + 69 * 50 )
----
-91

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - - COALESCE ( - 91, - 33 / + 73 + + 64 * + 78, CASE - - CAST ( 84 AS INTEGER ) WHEN - 24 / + - 79 + AVG ( - ( 48 ) ) THEN 70 END + 69 * 50 )
----
-91

query I rowsort
SELECT ALL ( ( 46 ) ) - 81 AS col2
----
-35

query II rowsort
SELECT ALL + 81 - + 90, + 72 * + 5 + - ( + COALESCE ( - - 91, + - 70, - + 35 ) ) AS col1
----
-9
269

query I rowsort
SELECT DISTINCT - - 16 - - 82 - 81 * 4
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - SUM( ALL - 81 ) * SUM( ALL - + 26 ) * 61
----
-128466

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - SUM ( ALL - 81 ) * SUM ( ALL - + 26 ) * 61
----
-128466

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT - ( + + 59 ) * 65 * + SUM( DISTINCT + 21 ) - 33 col2
----
-80568

skipif mysql # not compatible
query I rowsort label-9827
SELECT - ( + + 59 ) * 65 * + SUM ( DISTINCT + 21 ) - 33 col2
----
-80568

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - COUNT( * ) * 55 AS col0
----
-55

skipif mysql # not compatible
query I rowsort label-9828
SELECT - COUNT ( * ) * 55 AS col0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9829
SELECT - 68 + + 35 DIV 45 * 73 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-9829
SELECT - 68 + + 35 / 45 * 73 AS col0
----
-68

query II rowsort
SELECT - 72 * - 23, + 33 * 25 + - 35 col0
----
1656
790

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - + ( - + 30 ) + + 76 + + COUNT( * ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-9831
SELECT - + ( - + 30 ) + + 76 + + COUNT ( * ) AS col1
----
107

onlyif mysql # DIV for integer division: 
query I rowsort label-9832
SELECT - + COALESCE ( - - 42, - 39 + - - 5 * + NULLIF ( 31, + - 95 ) + - - 64 * - 81, + - 36 + 86 - 45 - 18 * - 80 DIV 6 ) AS col1
----
-42

skipif mysql # not compatible
query I rowsort label-9832
SELECT - + COALESCE ( - - 42, - 39 + - - 5 * + NULLIF ( 31, + - 95 ) + - - 64 * - 81, + - 36 + 86 - 45 - 18 * - 80 / 6 ) AS col1
----
-42

query I rowsort
SELECT - - 49 + - + 86 + - + 67 AS col0
----
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT ALL ( COUNT( * ) ) AS col1, + 77 * + 12
----
1
924

skipif mysql # not compatible
query II rowsort label-9834
SELECT ALL ( COUNT ( * ) ) AS col1, + 77 * + 12
----
1
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT - 20 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9835
SELECT - 20 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 37 - + - 39 col0
----
2

query I rowsort
SELECT DISTINCT NULLIF ( + - 16, - 45 )
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT + CAST( NULL AS SIGNED ) + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9838
SELECT + CAST ( NULL AS INTEGER ) + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL NULLIF ( - COUNT( * ), - CASE - 97 WHEN + 69 THEN + - ( - 47 ) ELSE NULL END )
----
-1

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL NULLIF ( - COUNT ( * ), - CASE - 97 WHEN + 69 THEN + - ( - 47 ) ELSE NULL END )
----
-1

query II rowsort
SELECT - 84 * - CASE + 68 WHEN - + ( - 34 ) THEN NULL WHEN COALESCE ( + + 71, + + 53 - - 94 * 41 ) THEN NULL ELSE 80 END, + 16 AS col1
----
6720
16

query I rowsort
SELECT + 90 + + - CASE + - 69 WHEN + + 84 THEN + 23 END col2
----
NULL

query I rowsort
SELECT + 66 + + 3 AS col0
----
69

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9843
SELECT - CASE - COUNT( * ) WHEN + + 84 / 31 / - 78 THEN NULL WHEN 26 THEN 56 * - - 56 + + 8 ELSE NULL END + - 97 + + + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT - CASE - COUNT ( * ) WHEN + + 84 / 31 / - 78 THEN NULL WHEN 26 THEN 56 * - - 56 + + 8 ELSE NULL END + - 97 + + + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT + 60 - - + 82 * - - CASE + + CAST( + + 82 AS SIGNED ) WHEN 72 THEN NULL WHEN - + CASE - + 48 WHEN - COUNT( * ) - - CASE - 16 WHEN - 59 THEN NULL WHEN - 38 THEN + ( + 69 ) END + - 92 * 41 THEN NULL WHEN 89 THEN + 47 / 71 END * 47 THEN NULL WHEN 38 THEN MIN( - 80 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9844
SELECT + 60 - - + 82 * - - CASE + + CAST ( + + 82 AS INTEGER ) WHEN 72 THEN NULL WHEN - + CASE - + 48 WHEN - COUNT ( * ) - - CASE - 16 WHEN - 59 THEN NULL WHEN - 38 THEN + ( + 69 ) END + - 92 * 41 THEN NULL WHEN 89 THEN + 47 / 71 END * 47 THEN NULL WHEN 38 THEN MIN ( - 80 ) END
----
NULL

query I rowsort
SELECT ( + 14 ) AS col0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9846
SELECT MIN( ALL - CAST( - 76 AS SIGNED ) ) * 86 + - 52 + + 1
----
6485

skipif mysql # not compatible
query I rowsort label-9846
SELECT MIN ( ALL - CAST ( - 76 AS INTEGER ) ) * 86 + - 52 + + 1
----
6485

query I rowsort
SELECT ALL 69 * + 10 + + 98 AS col2
----
788

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT DISTINCT + MAX( DISTINCT + 43 ) * - 91 + 83
----
-3830

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + MAX ( DISTINCT + 43 ) * - 91 + 83
----
-3830

query I rowsort
SELECT ALL - 39 * 63 + + - 48 AS col1
----
-2505

query I rowsort
SELECT + 0 + - COALESCE ( - 33, 49, + - 88 )
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT + NULLIF ( + - COUNT( * ), - 18 / 62 ) AS col1, 20 AS col1
----
-1
20

skipif mysql # not compatible
query II rowsort label-9851
SELECT + NULLIF ( + - COUNT ( * ), - 18 / 62 ) AS col1, 20 AS col1
----
-1
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT 99 * COUNT( * ) * - 16 + + SUM( + 96 )
----
-1488

skipif mysql # not compatible
query I rowsort label-9852
SELECT 99 * COUNT ( * ) * - 16 + + SUM ( + 96 )
----
-1488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9853
SELECT ALL + + 10 * + + 26 + 94 + 20 + - - ( + CASE + + COALESCE ( 37, COUNT( - 41 ) ) WHEN + 11 * 76 + - 37 + - 43 THEN NULL WHEN + 83 + 19 * + 73 THEN CAST( NULL AS SIGNED ) ELSE 87 * 64 + 59 END ) AS col1
----
6001

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + + 10 * + + 26 + 94 + 20 + - - ( + CASE + + COALESCE ( 37, COUNT ( - 41 ) ) WHEN + 11 * 76 + - 37 + - 43 THEN NULL WHEN + 83 + 19 * + 73 THEN CAST ( NULL AS INTEGER ) ELSE 87 * 64 + 59 END ) AS col1
----
6001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT - 19 * + 9 + 47 + - 69 - CAST( 58 AS SIGNED ) * 32 + + ( + 85 ) * - 60 * - 91 AS col0
----
462051

skipif mysql # not compatible
query I rowsort label-9854
SELECT - 19 * + 9 + 47 + - 69 - CAST ( 58 AS INTEGER ) * 32 + + ( + 85 ) * - 60 * - 91 AS col0
----
462051

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9855
SELECT DISTINCT + 55 * 62 - - - 18 DIV - MAX( 26 ) AS col1
----
3410

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + 55 * 62 - - - 18 / - MAX ( 26 ) AS col1
----
3410

query I rowsort
SELECT ALL - - 27 * - 45 AS col1
----
-1215

onlyif mysql # aggregate syntax: 
query II rowsort label-9857
SELECT + 8 AS col1, - ( 88 ) + - 12 + 13 * COUNT( * )
----
8
-87

skipif mysql # not compatible
query II rowsort label-9857
SELECT + 8 AS col1, - ( 88 ) + - 12 + 13 * COUNT ( * )
----
8
-87

query I rowsort
SELECT ALL + - 46 AS col1
----
-46

query I rowsort
SELECT DISTINCT - 41 * + - 70 AS col0
----
2870

query I rowsort
SELECT + 90 * 80 AS col2
----
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9861
SELECT ALL - 8 * NULLIF ( + - 5, CAST( + 5 AS SIGNED ) ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL - 8 * NULLIF ( + - 5, CAST ( + 5 AS INTEGER ) ) AS col1
----
40

query I rowsort
SELECT ALL + - 73 col1
----
-73

query I rowsort
SELECT - 13 + - ( + 67 )
----
-80

query II rowsort
SELECT ALL 70 col2, + 67 AS col0
----
70
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - - COUNT( * ) + - 27 * 1 + COUNT( 12 )
----
-25

skipif mysql # not compatible
query I rowsort label-9865
SELECT - - COUNT ( * ) + - 27 * 1 + COUNT ( 12 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9866
SELECT - CAST( + 92 AS SIGNED ) col2
----
-92

skipif mysql # not compatible
query I rowsort label-9866
SELECT - CAST ( + 92 AS INTEGER ) col2
----
-92

query II rowsort
SELECT DISTINCT - 60 AS col0, + 80 - - 17 + - + 66 + 73 AS col1
----
-60
104

query I rowsort
SELECT ALL + 92 * - 12 * 86 AS col2
----
-94944

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - COUNT( * ) + - + COUNT( * ) * - 59 AS col0
----
58

skipif mysql # not compatible
query I rowsort label-9869
SELECT - COUNT ( * ) + - + COUNT ( * ) * - 59 AS col0
----
58

query I rowsort
SELECT ALL NULLIF ( - 26, - 42 + + + 99 + + + 38 / - 58 )
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9871
SELECT DISTINCT + 74 + - - 76 DIV + - 80
----
74

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT + 74 + - - 76 / + - 80
----
74

query I rowsort
SELECT DISTINCT - 2 * 67
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - 66 * + COUNT( * ) AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-9873
SELECT - 66 * + COUNT ( * ) AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT DISTINCT + 39 + - + NULLIF ( - 5, - 99 + CASE 52 WHEN - COUNT( * ) THEN - 69 ELSE ( - + ( SUM( + 58 ) ) ) * - 13 + - 72 END )
----
44

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + 39 + - + NULLIF ( - 5, - 99 + CASE 52 WHEN - COUNT ( * ) THEN - 69 ELSE ( - + ( SUM ( + 58 ) ) ) * - 13 + - 72 END )
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9875
SELECT - CAST( + - 40 AS SIGNED ) DIV 83 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9875
SELECT - CAST ( + - 40 AS INTEGER ) / 83 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT - NULLIF ( - + 34, - 94 + 53 + - COUNT( * ) ) * 5 + + + 46 AS col0, 38
----
216
38

skipif mysql # not compatible
query II rowsort label-9876
SELECT - NULLIF ( - + 34, - 94 + 53 + - COUNT ( * ) ) * 5 + + + 46 AS col0, 38
----
216
38

query I rowsort
SELECT DISTINCT ( + 14 )
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT ALL 18 + - + SUM( DISTINCT - - 35 ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL 18 + - + SUM ( DISTINCT - - 35 ) AS col2
----
-17

query I rowsort
SELECT ALL ( 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9880
SELECT DISTINCT - 12 + + + CAST( NULL AS SIGNED ) * - ( + + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 12 + + + CAST ( NULL AS INTEGER ) * - ( + + 27 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT - 71 + - SUM( + COALESCE ( CAST( 72 AS SIGNED ), - + CAST( NULL AS SIGNED ) * + 45 ) ) + + 47 AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-9881
SELECT - 71 + - SUM ( + COALESCE ( CAST ( 72 AS INTEGER ), - + CAST ( NULL AS INTEGER ) * + 45 ) ) + + 47 AS col0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9882
SELECT + NULLIF ( + 16, CAST( - SUM( - - 19 ) AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-9882
SELECT + NULLIF ( + 16, CAST ( - SUM ( - - 19 ) AS INTEGER ) )
----
16

query I rowsort
SELECT ALL ( + - 35 ) * - 76 AS col1
----
2660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9884
SELECT 31 DIV - - 77 + - COUNT( * ) * + 60
----
-60

skipif mysql # not compatible
query I rowsort label-9884
SELECT 31 / - - 77 + - COUNT ( * ) * + 60
----
-60

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9885
SELECT DISTINCT + 31 * 45, CASE 43 WHEN - - 69 THEN - 35 * + CAST( NULL AS DECIMAL ) / + MAX( DISTINCT + 84 ) * 66 + - + 11 * - ( + 42 ) ELSE NULL END AS col1
----
1395
NULL

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT + 31 * 45, CASE 43 WHEN - - 69 THEN - 35 * + CAST ( NULL AS REAL ) / + MAX ( DISTINCT + 84 ) * 66 + - + 11 * - ( + 42 ) ELSE NULL END AS col1
----
1395
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - + COUNT( * ) + MAX( DISTINCT + + 12 ) AS col1
----
11

skipif mysql # not compatible
query I rowsort label-9886
SELECT - + COUNT ( * ) + MAX ( DISTINCT + + 12 ) AS col1
----
11

query I rowsort
SELECT DISTINCT - + 12 col1
----
-12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9888
SELECT ALL + 3 * + + COALESCE ( + 79, + 48 DIV NULLIF ( + COUNT( * ), - + CAST( + COALESCE ( COUNT( * ), CASE - 92 WHEN - ( + 52 ) * + - 74 THEN 45 WHEN ( - CAST( NULL AS SIGNED ) ) THEN + 64 WHEN + 77 + - ( - 83 + + 81 * - 79 ) THEN NULL END * 72, + 77 * - CASE + 66 WHEN 24 THEN 17 WHEN + 0 THEN 41 ELSE NULL END ) AS SIGNED ) - 4 ) DIV 42 ) * + SUM( DISTINCT 58 ) + - 35 * - 55 col0
----
15671

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL + 3 * + + COALESCE ( + 79, + 48 / NULLIF ( + COUNT ( * ), - + CAST ( + COALESCE ( COUNT ( * ), CASE - 92 WHEN - ( + 52 ) * + - 74 THEN 45 WHEN ( - CAST ( NULL AS INTEGER ) ) THEN + 64 WHEN + 77 + - ( - 83 + + 81 * - 79 ) THEN NULL END * 72, + 77 * - CASE + 66 WHEN 24 THEN 17 WHEN + 0 THEN 41 ELSE NULL END ) AS INTEGER ) - 4 ) / 42 ) * + SUM ( DISTINCT 58 ) + - 35 * - 55 col0
----
15671

query I rowsort
SELECT DISTINCT - + 96 AS col1
----
-96

query I rowsort
SELECT ALL - NULLIF ( + - 94, - 57 / - + 59 - + + 23 ) AS col0
----
94

query I rowsort
SELECT DISTINCT - + 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT + COUNT( * ) * 55 * + 95 * - 85 AS col1
----
-444125

skipif mysql # not compatible
query I rowsort label-9892
SELECT + COUNT ( * ) * 55 * + 95 * - 85 AS col1
----
-444125

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT COUNT( * ) * - 11
----
-11

skipif mysql # not compatible
query I rowsort label-9893
SELECT COUNT ( * ) * - 11
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9894
SELECT - CAST( NULL AS DECIMAL ) * - 82 * + COUNT( * ) - - - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9894
SELECT - CAST ( NULL AS REAL ) * - 82 * + COUNT ( * ) - - - 68
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT + + CAST( 99 AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-9895
SELECT + + CAST ( 99 AS INTEGER )
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT + 10 DIV - 3
----
-3

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 10 / - 3
----
-3

query I rowsort
SELECT 8 * + 79
----
632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9898
SELECT - COUNT( * ) * - 58, CAST( 48 AS SIGNED ) AS col1
----
58
48

skipif mysql # not compatible
query II rowsort label-9898
SELECT - COUNT ( * ) * - 58, CAST ( 48 AS INTEGER ) AS col1
----
58
48

query II rowsort
SELECT - 63 * 39, + 49 AS col1
----
-2457
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9900
SELECT ALL COUNT( * ) + 93, - MAX( ALL CAST( + 84 AS SIGNED ) ) * 69 + ( - + 6 ) AS col0
----
94
-5802

skipif mysql # not compatible
query II rowsort label-9900
SELECT ALL COUNT ( * ) + 93, - MAX ( ALL CAST ( + 84 AS INTEGER ) ) * 69 + ( - + 6 ) AS col0
----
94
-5802

query I rowsort
SELECT + NULLIF ( - + 74, + 58 )
----
-74

query I rowsort
SELECT ALL + 46 + 84 AS col2
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9903
SELECT COUNT( - 8 ) * - 43 DIV + - 60 * - - 54
----
0

skipif mysql # not compatible
query I rowsort label-9903
SELECT COUNT ( - 8 ) * - 43 / + - 60 * - - 54
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL + 35 + + SUM( + + COALESCE ( - - 57, + 32, 45 ) ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL + 35 + + SUM ( + + COALESCE ( - - 57, + 32, 45 ) ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9905
SELECT CASE WHEN NOT NULL IS NOT NULL THEN 99 ELSE NULL END * + 40 + - + 44 + - 78, 33 * + COUNT( * ) * + COUNT( * ) AS col0
----
3838
33

skipif mysql # not compatible
query II rowsort label-9905
SELECT CASE WHEN NOT NULL IS NOT NULL THEN 99 ELSE NULL END * + 40 + - + 44 + - 78, 33 * + COUNT ( * ) * + COUNT ( * ) AS col0
----
3838
33

query I rowsort
SELECT 71 + - + 57
----
14

query I rowsort
SELECT 9 * + - 81 AS col1
----
-729

onlyif mysql # aggregate syntax: 
query II rowsort label-9908
SELECT ( + 12 ) + - + COUNT( * ) AS col2, 63
----
11
63

skipif mysql # not compatible
query II rowsort label-9908
SELECT ( + 12 ) + - + COUNT ( * ) AS col2, 63
----
11
63

onlyif mysql # DIV for integer division: 
query II rowsort label-9909
SELECT 16 - + 73 DIV + 64 + - 78 + + + 48 AS col0, + 71
----
-15
71

skipif mysql # not compatible
query II rowsort label-9909
SELECT 16 - + 73 / + 64 + - 78 + + + 48 AS col0, + 71
----
-15
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL 49 + + 36 / CAST( - CAST( NULL AS SIGNED ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL 49 + + 36 / CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT MIN( ALL + - 43 ) + 45 + - 24 - - 15 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-9911
SELECT MIN ( ALL + - 43 ) + 45 + - 24 - - 15 AS col0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL + COUNT( * ) + + 83 AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL + COUNT ( * ) + + 83 AS col1
----
84

query I rowsort
SELECT 9 + - 75 AS col2
----
-66

query I rowsort
SELECT 15 + + + 69
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT ALL - CAST( - 31 AS SIGNED ) * 22 * + + CAST( + MAX( ALL - 46 ) AS SIGNED ) - - 61
----
-31311

skipif mysql # not compatible
query I rowsort label-9915
SELECT ALL - CAST ( - 31 AS INTEGER ) * 22 * + + CAST ( + MAX ( ALL - 46 ) AS INTEGER ) - - 61
----
-31311

query I rowsort
SELECT 25 + - + 21 AS col1
----
4

query I rowsort
SELECT ALL 6 + 81
----
87

query I rowsort
SELECT 96 * + 42 AS col0
----
4032

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT DISTINCT - COUNT( * ) * + 61
----
-61

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - COUNT ( * ) * + 61
----
-61

query I rowsort
SELECT 8 * - 77 AS col2
----
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT 15 + + + 82 * - COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-9921
SELECT 15 + + + 82 * - COUNT ( * )
----
-67

query I rowsort
SELECT ALL 17 col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT 24 + - + COUNT( * ) * - COUNT( - 28 )
----
25

skipif mysql # not compatible
query I rowsort label-9923
SELECT 24 + - + COUNT ( * ) * - COUNT ( - 28 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT MIN( ALL - - CAST( NULL AS SIGNED ) ) - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT MIN ( ALL - - CAST ( NULL AS INTEGER ) ) - 35 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9925
SELECT 36 * - MAX( - + 29 ) + 67 + - 50 + 92 DIV + 2
----
1107

skipif mysql # not compatible
query I rowsort label-9925
SELECT 36 * - MAX ( - + 29 ) + 67 + - 50 + 92 / + 2
----
1107

query II rowsort
SELECT ALL - - 72 - ( - + 57 ) AS col2, 84 AS col2
----
129
84

query I rowsort
SELECT DISTINCT - 46 AS col2
----
-46

query I rowsort
SELECT + 45 * + + 7
----
315

query I rowsort
SELECT ALL - + 84 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9930
SELECT MIN( DISTINCT + 19 ) + 19 AS col0, ( - 6 ) + NULLIF ( - - CASE - 96 WHEN 4 THEN NULL WHEN + CASE - 95 WHEN + 15 - - 6 THEN + + 75 END THEN + + 20 * 23 ELSE + 32 END, 99 * COUNT( * ) ) + + 90 * 99
----
38
8936

skipif mysql # not compatible
query II rowsort label-9930
SELECT MIN ( DISTINCT + 19 ) + 19 AS col0, ( - 6 ) + NULLIF ( - - CASE - 96 WHEN 4 THEN NULL WHEN + CASE - 95 WHEN + 15 - - 6 THEN + + 75 END THEN + + 20 * 23 ELSE + 32 END, 99 * COUNT ( * ) ) + + 90 * 99
----
38
8936

query I rowsort
SELECT ALL - + 28 col0
----
-28

query I rowsort
SELECT 84 col2
----
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9933
SELECT + 1 * + ( CAST( NULL AS DECIMAL ) ) / + 19 * COUNT( * ) / + NULLIF ( COALESCE ( + 98, COUNT( ALL - 57 ) ), - + CASE - 31 WHEN + - 32 THEN - + COUNT( * ) ELSE NULL END / - NULLIF ( 81, 36 ) + 56 ) + + 22 * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT + 1 * + ( CAST ( NULL AS REAL ) ) / + 19 * COUNT ( * ) / + NULLIF ( COALESCE ( + 98, COUNT ( ALL - 57 ) ), - + CASE - 31 WHEN + - 32 THEN - + COUNT ( * ) ELSE NULL END / - NULLIF ( 81, 36 ) + 56 ) + + 22 * 25
----
NULL

query I rowsort
SELECT + + 89 AS col1
----
89

query II rowsort
SELECT ALL - 33 AS col2, - 97 * - - 64 AS col2
----
-33
-6208

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9936
SELECT + - 39 * - 7 * + + 62 + MIN( DISTINCT + 29 ) - - - 7 DIV + 48 col1
----
16955

skipif mysql # not compatible
query I rowsort label-9936
SELECT + - 39 * - 7 * + + 62 + MIN ( DISTINCT + 29 ) - - - 7 / + 48 col1
----
16955

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT DISTINCT - SUM( + 12 ) col0
----
-12

skipif mysql # not compatible
query I rowsort label-9937
SELECT DISTINCT - SUM ( + 12 ) col0
----
-12

query I rowsort
SELECT DISTINCT - ( 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-9939
SELECT ALL - 25 AS col2, - MIN( 68 )
----
-25
-68

skipif mysql # not compatible
query II rowsort label-9939
SELECT ALL - 25 AS col2, - MIN ( 68 )
----
-25
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT ALL + 56 + + 26 * - MIN( ALL - + 51 ) AS col0
----
1382

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + 56 + + 26 * - MIN ( ALL - + 51 ) AS col0
----
1382

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT DISTINCT - - COUNT( * ) + + NULLIF ( - COUNT( * ), - 65 )
----
0

skipif mysql # not compatible
query I rowsort label-9941
SELECT DISTINCT - - COUNT ( * ) + + NULLIF ( - COUNT ( * ), - 65 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9942
SELECT DISTINCT - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9943
SELECT COUNT( + + ( + 38 ) ) * - 24 * - 7 + + COUNT( * ) * + - COUNT( * ) - + + CAST( + AVG ( ALL - - CAST( - + 80 AS SIGNED ) ) AS SIGNED ) / + MAX( + 36 ) * - 84 * + 89 * + CAST( NULL AS SIGNED ) + 63 + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-9943
SELECT COUNT ( + + ( + 38 ) ) * - 24 * - 7 + + COUNT ( * ) * + - COUNT ( * ) - + + CAST ( + AVG ( ALL - - CAST ( - + 80 AS INTEGER ) ) AS INTEGER ) / + MAX ( + 36 ) * - 84 * + 89 * + CAST ( NULL AS INTEGER ) + 63 + 96
----
NULL

query I rowsort
SELECT DISTINCT - - 76 AS col2
----
76

query I rowsort
SELECT ALL 73 + 15 + 12 col2
----
100

onlyif mysql # DIV for integer division: 
query I rowsort label-9946
SELECT 80 DIV + 15 AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9946
SELECT 80 / + 15 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9947
SELECT CASE + 22 WHEN + 80 + + 82 * - 66 THEN ( ( 69 ) ) * + 24 + - + CAST( NULL AS DECIMAL ) * + 20 * - 31 * - MAX( DISTINCT - + 19 ) * 99 * - 67 ELSE NULL END * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-9947
SELECT CASE + 22 WHEN + 80 + + 82 * - 66 THEN ( ( 69 ) ) * + 24 + - + CAST ( NULL AS REAL ) * + 20 * - 31 * - MAX ( DISTINCT - + 19 ) * 99 * - 67 ELSE NULL END * 34
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT MAX( DISTINCT + - 62 )
----
-62

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT MAX ( DISTINCT + - 62 )
----
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9949
SELECT ALL 42 + 47 * 31 * - - 3 * + 35 + + 75, - 53 * + ( COUNT( * ) ) + - CAST( - COUNT( * ) AS SIGNED ) * + 72 AS col2
----
153102
19

skipif mysql # not compatible
query II rowsort label-9949
SELECT ALL 42 + 47 * 31 * - - 3 * + 35 + + 75, - 53 * + ( COUNT ( * ) ) + - CAST ( - COUNT ( * ) AS INTEGER ) * + 72 AS col2
----
153102
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9950
SELECT ALL ( 39 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL ( 39 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT + NULLIF ( - 67, + + MIN( + ( + 5 ) ) ) - 81 + + + 51
----
-97

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + NULLIF ( - 67, + + MIN ( + ( + 5 ) ) ) - 81 + + + 51
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9952
SELECT ALL 65 * 66 DIV - - 47 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-9952
SELECT ALL 65 * 66 / - - 47 AS col0
----
91

query II rowsort
SELECT 56, ( - 17 ) AS col1
----
56
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-9954
SELECT - COUNT( * ), 26 AS col1
----
-1
26

skipif mysql # not compatible
query II rowsort label-9954
SELECT - COUNT ( * ), 26 AS col1
----
-1
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9955
SELECT 5 - + + SUM( DISTINCT + 28 ) / + 48 * - 19 * + ( ( - - AVG ( ALL 52 ) ) ) - - 67 + - - CASE + 98 WHEN COUNT( * ) THEN NULL ELSE 37 END * - 85 / + CAST( NULL AS SIGNED ) * + COUNT( * ) + 93 * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT 5 - + + SUM ( DISTINCT + 28 ) / + 48 * - 19 * + ( ( - - AVG ( ALL 52 ) ) ) - - 67 + - - CASE + 98 WHEN COUNT ( * ) THEN NULL ELSE 37 END * - 85 / + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 93 * 43 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT DISTINCT 6 AS col1, 2 * - 16 - - 4 + - - SUM( DISTINCT + 44 )
----
6
16

skipif mysql # not compatible
query II rowsort label-9956
SELECT DISTINCT 6 AS col1, 2 * - 16 - - 4 + - - SUM ( DISTINCT + 44 )
----
6
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9957
SELECT ALL 58 AS col0, - 75 DIV + MAX( + - 87 )
----
58
0

skipif mysql # not compatible
query II rowsort label-9957
SELECT ALL 58 AS col0, - 75 / + MAX ( + - 87 )
----
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT 53 * + CASE + + 27 WHEN + + 78 THEN + - 41 WHEN + ( + 50 ) THEN SUM( 75 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9958
SELECT 53 * + CASE + + 27 WHEN + + 78 THEN + - 41 WHEN + ( + 50 ) THEN SUM ( 75 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9959
SELECT DISTINCT - 77 * - CAST( 66 AS SIGNED ) AS col1
----
5082

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - 77 * - CAST ( 66 AS INTEGER ) AS col1
----
5082

query I rowsort
SELECT DISTINCT 75 AS col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL - + COALESCE ( NULLIF ( + ( ( 47 ) ), + - 26 ), - 82, + + COUNT( DISTINCT - + 94 ), - + 12 ) * 36 * - 29
----
49068

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - + COALESCE ( NULLIF ( + ( ( 47 ) ), + - 26 ), - 82, + + COUNT ( DISTINCT - + 94 ), - + 12 ) * 36 * - 29
----
49068

query I rowsort
SELECT DISTINCT + 54 * + + 58 AS col0
----
3132

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - MAX( ALL 80 ) * + NULLIF ( 53, 74 ) * - ( - 20 ) * + 54 + + 42 + - 82 * + MIN( ALL - + 94 ) col2
----
-4571450

skipif mysql # not compatible
query I rowsort label-9963
SELECT - MAX ( ALL 80 ) * + NULLIF ( 53, 74 ) * - ( - 20 ) * + 54 + + 42 + - 82 * + MIN ( ALL - + 94 ) col2
----
-4571450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9964
SELECT - + COALESCE ( - 86, ( 70 ) * + 92 + - 72, 15 + + 81 + - 66 ) * - - 99 - + - COUNT( * ) + + 15 + - CAST( NULL AS SIGNED ) / + ( + 89 ) * - 55 - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-9964
SELECT - + COALESCE ( - 86, ( 70 ) * + 92 + - 72, 15 + + 81 + - 66 ) * - - 99 - + - COUNT ( * ) + + 15 + - CAST ( NULL AS INTEGER ) / + ( + 89 ) * - 55 - 59
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT - 65 DIV + ( + 41 )
----
-1

skipif mysql # not compatible
query I rowsort label-9965
SELECT - 65 / + ( + 41 )
----
-1

query I rowsort
SELECT ALL - 20 * 68 + - - 12 AS col1
----
-1348

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT + + 40 * - MAX( + 16 ) - 72
----
-712

skipif mysql # not compatible
query I rowsort label-9967
SELECT + + 40 * - MAX ( + 16 ) - 72
----
-712

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT + 69 / + 63 + CASE - 44 WHEN + 15 THEN NULL WHEN + MAX( - + 57 ) THEN + + 90 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT + 69 / + 63 + CASE - 44 WHEN + 15 THEN NULL WHEN + MAX ( - + 57 ) THEN + + 90 END col0
----
NULL

query II rowsort
SELECT ALL + 47 AS col1, 15
----
47
15

query I rowsort
SELECT ALL + + ( + 94 ) AS col2
----
94

query II rowsort
SELECT - 67, - 39 AS col2
----
-67
-39

query I rowsort
SELECT + + 60 AS col2
----
60

query I rowsort
SELECT + - 6 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL + - MIN( ALL + 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL + - MIN ( ALL + 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + COUNT( 4 )
----
1

skipif mysql # not compatible
query I rowsort label-9975
SELECT + COUNT ( 4 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT ALL + CAST( + 12 AS SIGNED ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + CAST ( + 12 AS INTEGER ) AS col1
----
12

query I rowsort
SELECT DISTINCT - 26 * + ( + 93 ) * + 21 * + + 25 * - 4
----
5077800

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT ALL ( + SUM( + 54 ) )
----
54

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL ( + SUM ( + 54 ) )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9979
SELECT - 89 + - - ( ( CASE + 44 WHEN 66 THEN NULL ELSE - ( - - 89 ) DIV 82 * COUNT( * ) * + - 59 END ) ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-9979
SELECT - 89 + - - ( ( CASE + 44 WHEN 66 THEN NULL ELSE - ( - - 89 ) / 82 * COUNT ( * ) * + - 59 END ) ) AS col0
----
-30

query I rowsort
SELECT - NULLIF ( - 49, + - 91 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT + COUNT( * ) * - 1 AS col0, + 14 AS col1
----
-1
14

skipif mysql # not compatible
query II rowsort label-9981
SELECT + COUNT ( * ) * - 1 AS col0, + 14 AS col1
----
-1
14

query I rowsort
SELECT - 41 + - ( - 27 ) - - - 69 AS col0
----
-83

query I rowsort
SELECT + 35 * - - 23
----
805

query I rowsort
SELECT DISTINCT 47 * - ( - 15 ) * + 13 AS col2
----
9165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9985
SELECT DISTINCT - 24 + COALESCE ( COALESCE ( - - COALESCE ( - 88, + 43 * - CAST( - 6 AS SIGNED ) + 70 ), + 77 + + - 70 ), + 90 DIV - CAST( - 59 AS SIGNED ) * + + 25 + + MIN( - ( 2 ) ) + 86, + ( + CASE 72 WHEN - 15 THEN + 43 * 61 END ) DIV CASE - 43 - COALESCE ( 16, 55 ) WHEN + COALESCE ( + 69, COALESCE ( SUM( - ( - 64 ) ), + 60 DIV - 73 ) ) THEN + COALESCE ( 88, + 98 DIV - 71 ) ELSE NULL END + - 43 ) col1
----
-112

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT - 24 + COALESCE ( COALESCE ( - - COALESCE ( - 88, + 43 * - CAST ( - 6 AS INTEGER ) + 70 ), + 77 + + - 70 ), + 90 / - CAST ( - 59 AS INTEGER ) * + + 25 + + MIN ( - ( 2 ) ) + 86, + ( + CASE 72 WHEN - 15 THEN + 43 * 61 END ) / CASE - 43 - COALESCE ( 16, 55 ) WHEN + COALESCE ( + 69, COALESCE ( SUM ( - ( - 64 ) ), + 60 / - 73 ) ) THEN + COALESCE ( 88, + 98 / - 71 ) ELSE NULL END + - 43 ) col1
----
-112

query I rowsort
SELECT - - 37 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + COUNT( DISTINCT - 77 )
----
1

skipif mysql # not compatible
query I rowsort label-9987
SELECT + COUNT ( DISTINCT - 77 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT ALL COUNT( * ) + + + 95
----
96

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL COUNT ( * ) + + + 95
----
96

query I rowsort
SELECT - - 26 AS col1
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-9990
SELECT - MAX( + 67 ) AS col1, CASE - COUNT( * ) WHEN - + 43 - + COUNT( * ) THEN - - ( + NULLIF ( + 92, + 62 + + - 6 - - - 67 * - - 45 ) ) * + 92 ELSE NULL END * - + COUNT( * ) AS col2
----
-67
NULL

skipif mysql # not compatible
query II rowsort label-9990
SELECT - MAX ( + 67 ) AS col1, CASE - COUNT ( * ) WHEN - + 43 - + COUNT ( * ) THEN - - ( + NULLIF ( + 92, + 62 + + - 6 - - - 67 * - - 45 ) ) * + 92 ELSE NULL END * - + COUNT ( * ) AS col2
----
-67
NULL

query I rowsort
SELECT - ( 57 ) AS col1
----
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-9992
SELECT DISTINCT 86 + - - NULLIF ( 52, + 99 * + 68 + 24 * + 58 ) DIV + 92 AS col1, 19 * - + ( + + 80 ) AS col0
----
86
-1520

skipif mysql # not compatible
query II rowsort label-9992
SELECT DISTINCT 86 + - - NULLIF ( 52, + 99 * + 68 + 24 * + 58 ) / + 92 AS col1, 19 * - + ( + + 80 ) AS col0
----
86
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-9993
SELECT DISTINCT + + SUM( ALL - CASE + 92 WHEN + 68 THEN - 65 ELSE NULL END ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT + + SUM ( ALL - CASE + 92 WHEN + 68 THEN - 65 ELSE NULL END ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9994
SELECT ALL COUNT( * ) DIV - COALESCE ( - + 59, - CASE - 43 WHEN - 6 DIV CAST( NULL AS SIGNED ) THEN + + 37 - + 92 + + 90 WHEN + 48 * + CASE - COUNT( * ) WHEN 82 THEN + - 20 ELSE NULL END + + - COUNT( * ) THEN NULL END + - 37 * - 84, 53 ) + 85
----
85

skipif mysql # not compatible
query I rowsort label-9994
SELECT ALL COUNT ( * ) / - COALESCE ( - + 59, - CASE - 43 WHEN - 6 / CAST ( NULL AS INTEGER ) THEN + + 37 - + 92 + + 90 WHEN + 48 * + CASE - COUNT ( * ) WHEN 82 THEN + - 20 ELSE NULL END + + - COUNT ( * ) THEN NULL END + - 37 * - 84, 53 ) + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT - SUM( 84 ) + + 6
----
-78

skipif mysql # not compatible
query I rowsort label-9995
SELECT - SUM ( 84 ) + + 6
----
-78

query I rowsort
SELECT + 62 col0
----
62

query I rowsort
SELECT ( - 86 ) AS col0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9998
SELECT DISTINCT - 73 DIV + 1 + - 68 + 66 + 22 + - - ( 12 )
----
-41

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT - 73 / + 1 + - 68 + 66 + 22 + - - ( 12 )
----
-41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9999
SELECT ALL 58 DIV COALESCE ( - ( - COALESCE ( - 83, + + COUNT( * ), + - 88 ) ), - ( + 30 ) + + ( MIN( DISTINCT - 7 ) ) + + 9 + + 53 + - + 19 * 3 ) * - 89 * 44 + - 25 + - 50 * + 31 col2
----
-1575

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL 58 / COALESCE ( - ( - COALESCE ( - 83, + + COUNT ( * ), + - 88 ) ), - ( + 30 ) + + ( MIN ( DISTINCT - 7 ) ) + + 9 + + 53 + - + 19 * 3 ) * - 89 * 44 + - 25 + - 50 * + 31 col2
----
-1575

