sqllogictest
Artifact Content
Not logged in

Artifact a8d61f01467fa6d6f0c4b67e1bfb18714f9edd22:


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