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 ALL ( + 49 )
----
49

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

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

query I rowsort
SELECT 94 * - 16 AS col2
----
-1504

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT NULLIF ( CAST( - CAST( + 3 AS SIGNED ) AS SIGNED ), + + AVG ( + 87 ) ) * - + ( + 15 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-5
SELECT NULLIF ( CAST ( - CAST ( + 3 AS INTEGER ) AS INTEGER ), + + AVG ( + 87 ) ) * - + ( + 15 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6
SELECT ALL 14 - + 61 * + + 94 + 93 + 87 DIV - 26
----
-5630

skipif mysql # not compatible
query I rowsort label-6
SELECT ALL 14 - + 61 * + + 94 + 93 + 87 / - 26
----
-5630

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7
SELECT 11 - - 94 + 74 - - - 24 - + + 52 * COALESCE ( - + 30, - 96 ) + 32 + 31 + + 45 - + COUNT( * ) * - 34 DIV COUNT( * ) * + - 77 * - COUNT( * ) AS col2
----
4441

skipif mysql # not compatible
query I rowsort label-7
SELECT 11 - - 94 + 74 - - - 24 - + + 52 * COALESCE ( - + 30, - 96 ) + 32 + 31 + + 45 - + COUNT ( * ) * - 34 / COUNT ( * ) * + - 77 * - COUNT ( * ) AS col2
----
4441

onlyif mysql # aggregate syntax: 
query I rowsort label-8
SELECT 17 + 39 * + COUNT( 90 )
----
56

skipif mysql # not compatible
query I rowsort label-8
SELECT 17 + 39 * + COUNT ( 90 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL + 2 * - ( + + 92 ) * + NULLIF ( + 60, - 67 ) + + - 64 + - COUNT( * )
----
-11105

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL + 2 * - ( + + 92 ) * + NULLIF ( + 60, - 67 ) + + - 64 + - COUNT ( * )
----
-11105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-10
SELECT ALL COALESCE ( - 76, COUNT( * ), + + CAST( + + ( 56 ) AS SIGNED ) ) * + 12 AS col0
----
-912

skipif mysql # not compatible
query I rowsort label-10
SELECT ALL COALESCE ( - 76, COUNT ( * ), + + CAST ( + + ( 56 ) AS INTEGER ) ) * + 12 AS col0
----
-912

query I rowsort
SELECT ALL 40 AS col2
----
40

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-13
SELECT CAST( NULL AS SIGNED ) * - - 97, - 28 - + - 62 + + COUNT( * ) AS col0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-13
SELECT CAST ( NULL AS INTEGER ) * - - 97, - 28 - + - 62 + + COUNT ( * ) AS col0
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-14
SELECT + CAST( NULL AS DECIMAL ) * + CAST( NULL AS SIGNED ) + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-14
SELECT + CAST ( NULL AS REAL ) * + CAST ( NULL AS INTEGER ) + 82 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-15
SELECT CASE CAST( + SUM( - 28 ) AS SIGNED ) WHEN - 14 THEN - - 64 ELSE - 4 END - - COUNT( * ) + - NULLIF ( + ( + 34 ), + COUNT( * ) + - + 32 / - COALESCE ( 92, 80 ) + - 82 * + 55 ) * + 3 AS col0
----
-105

skipif mysql # not compatible
query I rowsort label-15
SELECT CASE CAST ( + SUM ( - 28 ) AS INTEGER ) WHEN - 14 THEN - - 64 ELSE - 4 END - - COUNT ( * ) + - NULLIF ( + ( + 34 ), + COUNT ( * ) + - + 32 / - COALESCE ( 92, 80 ) + - 82 * + 55 ) * + 3 AS col0
----
-105

query I rowsort
SELECT + 7 / - CASE - + 72 WHEN + - 67 THEN 68 + - + 73 / - + 96 + 94 ELSE NULL END + + 71
----
NULL

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

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

query I rowsort
SELECT 55 + 8 * + 60 * - 0 AS col0
----
55

query I rowsort
SELECT 61 * 63 AS col0
----
3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-21
SELECT + 52 - - 88 * - - 89 * COUNT( * ) + CASE + 28 WHEN - 78 - + 60 * 6 THEN NULL WHEN + 98 * 46 THEN 12 - - 36 WHEN + - ( 1 ) THEN - 91 + - 12 * + CASE - - 1 WHEN - - 74 + 84 * COALESCE ( 58, - - 22 ) DIV - 31 + 6 THEN NULL WHEN + 52 * 58 + 84 DIV COUNT( * ) THEN CASE COUNT( ALL 41 ) WHEN - 2 * COALESCE ( + ( + AVG ( DISTINCT 0 ) ), 87 ) THEN + 61 WHEN + 43 THEN NULL ELSE NULL END WHEN 54 * ( 77 ) + 70 THEN NULL ELSE NULL END ELSE ( 58 ) * 86 END DIV - 59
----
7800

skipif mysql # not compatible
query I rowsort label-21
SELECT + 52 - - 88 * - - 89 * COUNT ( * ) + CASE + 28 WHEN - 78 - + 60 * 6 THEN NULL WHEN + 98 * 46 THEN 12 - - 36 WHEN + - ( 1 ) THEN - 91 + - 12 * + CASE - - 1 WHEN - - 74 + 84 * COALESCE ( 58, - - 22 ) / - 31 + 6 THEN NULL WHEN + 52 * 58 + 84 / COUNT ( * ) THEN CASE COUNT ( ALL 41 ) WHEN - 2 * COALESCE ( + ( + AVG ( DISTINCT 0 ) ), 87 ) THEN + 61 WHEN + 43 THEN NULL ELSE NULL END WHEN 54 * ( 77 ) + 70 THEN NULL ELSE NULL END ELSE ( 58 ) * 86 END / - 59
----
7800

query I rowsort
SELECT 47 * - + 81
----
-3807

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

query I rowsort
SELECT ALL - + 96
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-25
SELECT - + 41 * - 22 - - 74 - 99 AS col0, - MAX( - COALESCE ( 73, 13 ) )
----
877
73

skipif mysql # not compatible
query II rowsort label-25
SELECT - + 41 * - 22 - - 74 - 99 AS col0, - MAX ( - COALESCE ( 73, 13 ) )
----
877
73

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

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT ( - - COUNT ( * ) ) * 51 / + - 57
----
0

query I rowsort
SELECT + 79 * + 59 * 91 AS col2
----
424151

query I rowsort
SELECT ALL - - 18
----
18

query I rowsort
SELECT ALL - NULLIF ( + + 2, 86 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT DISTINCT - 89 + - NULLIF ( 55, + 48 + + MAX( DISTINCT - 22 ) )
----
-144

skipif mysql # not compatible
query I rowsort label-30
SELECT DISTINCT - 89 + - NULLIF ( 55, + 48 + + MAX ( DISTINCT - 22 ) )
----
-144

query I rowsort
SELECT 47 - 38
----
9

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

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

query I rowsort
SELECT ALL + 7 + 30 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-35
SELECT ( 15 ) + - + 46 + + ( + CAST( - 67 AS SIGNED ) ) DIV + 42
----
-32

skipif mysql # not compatible
query I rowsort label-35
SELECT ( 15 ) + - + 46 + + ( + CAST ( - 67 AS INTEGER ) ) / + 42
----
-32

query I rowsort
SELECT + 95 + + 97
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT COUNT( * ) - - 71 AS col1
----
72

skipif mysql # not compatible
query I rowsort label-37
SELECT COUNT ( * ) - - 71 AS col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - + NULLIF ( + 1, + - COUNT( * ) + - + 36 ) - 58
----
-59

skipif mysql # not compatible
query I rowsort label-38
SELECT - + NULLIF ( + 1, + - COUNT ( * ) + - + 36 ) - 58
----
-59

query I rowsort
SELECT ALL - 6
----
-6

query I rowsort
SELECT - + 50
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT - 92 DIV - + 32
----
2

skipif mysql # not compatible
query I rowsort label-41
SELECT - 92 / - + 32
----
2

query I rowsort
SELECT DISTINCT + 13 + 75 col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-43
SELECT ALL + 6 - + 6 + - ( - - 20 ) + - CASE ( 94 ) WHEN - COUNT( * ) / - - 99 + - - COUNT( * ) + - - SUM( 68 ) THEN + 24 * - ( + - 42 ) ELSE NULL END - - COALESCE ( + 3, - CAST( 93 AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-43
SELECT ALL + 6 - + 6 + - ( - - 20 ) + - CASE ( 94 ) WHEN - COUNT ( * ) / - - 99 + - - COUNT ( * ) + - - SUM ( 68 ) THEN + 24 * - ( + - 42 ) ELSE NULL END - - COALESCE ( + 3, - CAST ( 93 AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT - 20 + 50
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL MIN( - 43 ) col0
----
-43

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL MIN ( - 43 ) col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT - 96 + + - COUNT( * )
----
-97

skipif mysql # not compatible
query I rowsort label-46
SELECT - 96 + + - COUNT ( * )
----
-97

query I rowsort
SELECT - 14 * + - 15 * + - 69
----
-14490

query I rowsort
SELECT - 72 + 21
----
-51

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

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

query I rowsort
SELECT - 78 * - 70 AS col1
----
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT + NULLIF ( - 80, COALESCE ( COUNT( 42 ), - 53 * - 34 ) * 75 ) + - + CASE + 44 WHEN 16 THEN + + ( + + MAX( ALL + + 59 ) ) * + 97 * - + 92 + 52 + - 15 * 76 WHEN - + 77 THEN NULL ELSE NULL END / - - COUNT( * ) + + - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-51
SELECT + NULLIF ( - 80, COALESCE ( COUNT ( 42 ), - 53 * - 34 ) * 75 ) + - + CASE + 44 WHEN 16 THEN + + ( + + MAX ( ALL + + 59 ) ) * + 97 * - + 92 + 52 + - 15 * 76 WHEN - + 77 THEN NULL ELSE NULL END / - - COUNT ( * ) + + - 42
----
NULL

query I rowsort
SELECT ALL CASE + + 9 WHEN - 21 + 78 THEN + 34 / 25 + + 58 END
----
NULL

query I rowsort
SELECT DISTINCT - 16 * + 6
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-54
SELECT ALL - 44 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-54
SELECT ALL - 44 / - 67
----
0

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

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

query I rowsort
SELECT - 47 + + 38 * - + 87 col0
----
-3353

onlyif mysql # aggregate syntax: 
query I rowsort label-57
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-57
SELECT DISTINCT + CASE 56 WHEN + ( + - 5 ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-59
SELECT - 2 DIV - 6 * - 42 + - - 86 - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-59
SELECT - 2 / - 6 * - 42 + - - 86 - COUNT ( * )
----
85

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

query I rowsort
SELECT + 76 * + - 73 AS col0
----
-5548

query I rowsort
SELECT - 50 + + + 56
----
6

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-64
SELECT + COUNT( * ) - - 96 - 92 - + CAST( + NULLIF ( CASE + ( - MIN( ALL - 13 ) ) WHEN + 70 THEN NULL WHEN - SUM( - 62 ) THEN + - 85 ELSE 65 * - 11 * - 79 + - + 1 + 21 END, - COUNT( 49 ) * - CAST( - MIN( + - 7 ) AS SIGNED ) * - 49 * - 83 ) AS SIGNED ) AS col0
----
-56500

skipif mysql # not compatible
query I rowsort label-64
SELECT + COUNT ( * ) - - 96 - 92 - + CAST ( + NULLIF ( CASE + ( - MIN ( ALL - 13 ) ) WHEN + 70 THEN NULL WHEN - SUM ( - 62 ) THEN + - 85 ELSE 65 * - 11 * - 79 + - + 1 + 21 END, - COUNT ( 49 ) * - CAST ( - MIN ( + - 7 ) AS INTEGER ) * - 49 * - 83 ) AS INTEGER ) AS col0
----
-56500

query I rowsort
SELECT + COALESCE ( - 59, - 12, + 74 )
----
-59

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-67
SELECT ALL 64 * + SUM( + 69 ) + - 43 + + - COUNT( * ), - 58 AS col0
----
4372
-58

skipif mysql # not compatible
query II rowsort label-67
SELECT ALL 64 * + SUM ( + 69 ) + - 43 + + - COUNT ( * ), - 58 AS col0
----
4372
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-68
SELECT + ( + 38 ) * + + 63 + + COUNT( * ) * 15 AS col2, 36 * - 89 + 3
----
2409
-3201

skipif mysql # not compatible
query II rowsort label-68
SELECT + ( + 38 ) * + + 63 + + COUNT ( * ) * 15 AS col2, 36 * - 89 + 3
----
2409
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT + COALESCE ( - 51, - COUNT( * ) )
----
-51

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT + COALESCE ( - 51, - COUNT ( * ) )
----
-51

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

query II rowsort
SELECT DISTINCT + 65 * 55 + - 61 AS col0, 43 col2
----
3514
43

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + 93 * + MIN( DISTINCT - 34 ) + - 35
----
-3197

skipif mysql # not compatible
query I rowsort label-72
SELECT + 93 * + MIN ( DISTINCT - 34 ) + - 35
----
-3197

onlyif mysql # aggregate syntax: 
query II rowsort label-73
SELECT ALL + COUNT( * ) * - - COUNT( * ) * + + ( 84 ) + COUNT( * ), 99 * + ( + 76 ) AS col2
----
85
7524

skipif mysql # not compatible
query II rowsort label-73
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) * + + ( 84 ) + COUNT ( * ), 99 * + ( + 76 ) AS col2
----
85
7524

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

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

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

query I rowsort
SELECT ALL 23 * - 17 AS col1
----
-391

query I rowsort
SELECT + 36 col0
----
36

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

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

query I rowsort
SELECT + + 15 * 55 AS col1
----
825

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

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT ALL CASE + 74 WHEN 69 * + 80 + + 65 THEN + AVG ( DISTINCT 19 ) WHEN 21 * - COALESCE ( CASE - 18 WHEN - ( + - 95 ) * + COUNT( * ) / - 92 - + 48 THEN + COUNT( * ) ELSE NULL END, 72 ) THEN - 83 * ( - + COALESCE ( - SUM( DISTINCT NULLIF ( 43, 14 ) ), 36 * 24 + 73 * 90 ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL CASE + 74 WHEN 69 * + 80 + + 65 THEN + AVG ( DISTINCT 19 ) WHEN 21 * - COALESCE ( CASE - 18 WHEN - ( + - 95 ) * + COUNT ( * ) / - 92 - + 48 THEN + COUNT ( * ) ELSE NULL END, 72 ) THEN - 83 * ( - + COALESCE ( - SUM ( DISTINCT NULLIF ( 43, 14 ) ), 36 * 24 + 73 * 90 ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL - ( - 2 ) * - - 31
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-84
SELECT ALL COUNT( * ) col2, 45
----
1
45

skipif mysql # not compatible
query II rowsort label-84
SELECT ALL COUNT ( * ) col2, 45
----
1
45

query I rowsort
SELECT + 84 - + - ( - ( + 83 ) ) * 53 AS col1
----
-4315

query I rowsort
SELECT - 90 * 82
----
-7380

query I rowsort
SELECT + 60 - CASE 82 WHEN 75 THEN - 84 END
----
NULL

query II rowsort
SELECT 91 AS col1, 94 + + + 38
----
91
132

query I rowsort
SELECT 93
----
93

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

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

query I rowsort
SELECT ALL ( - + 38 ) AS col2
----
-38

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

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

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

query I rowsort
SELECT DISTINCT + 30 + - 17 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT DISTINCT + 85 + - + ( + ( - COUNT( * ) ) ) + 57 * 38
----
2252

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT + 85 + - + ( + ( - COUNT ( * ) ) ) + 57 * 38
----
2252

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL + 13 + + 7 + 52 + + - 55 * MIN( + - 50 ) * 62 - - - 34 * - 45 * + 10 AS col0
----
185872

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL + 13 + + 7 + 52 + + - 55 * MIN ( + - 50 ) * 62 - - - 34 * - 45 * + 10 AS col0
----
185872

query II rowsort
SELECT - 57, 33 AS col1
----
-57
33

query I rowsort
SELECT 36 col1
----
36

query I rowsort
SELECT - 88 * - 5
----
440

query I rowsort
SELECT - 47 + - 20
----
-67

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

query I rowsort
SELECT ( - 99 ) * 0 + - 13
----
-13

query I rowsort
SELECT + 22 - + 42 AS col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-104
SELECT DISTINCT + COALESCE ( - - 82, + 34 ) DIV 65 + + 46
----
47

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT + COALESCE ( - - 82, + 34 ) / 65 + + 46
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-105
SELECT ALL - 4 DIV - - 11 + + 84 * - + 3 + 20 col2
----
-232

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL - 4 / - - 11 + + 84 * - + 3 + 20 col2
----
-232

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-106
SELECT ALL 62 DIV - - 53 + - MIN( + - 70 ) + - - COUNT( * ) DIV - SUM( 44 ) AS col2, + 33 AS col2
----
71
33

skipif mysql # not compatible
query II rowsort label-106
SELECT ALL 62 / - - 53 + - MIN ( + - 70 ) + - - COUNT ( * ) / - SUM ( 44 ) AS col2, + 33 AS col2
----
71
33

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-108
SELECT ALL + 75 DIV + 15 - COUNT( * ) * + - 72 + - 18 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL + 75 / + 15 - COUNT ( * ) * + - 72 + - 18 AS col0
----
59

query I rowsort
SELECT ALL + + 41 col2
----
41

query II rowsort
SELECT NULLIF ( - ( 31 ), + + 72 ) AS col2, - 43
----
-31
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-111
SELECT + NULLIF ( - 73, - 72 + + 36 / + 72 * - 41 + - - CAST( NULL AS SIGNED ) + - 16 * + + 17 ) * - + ( 27 ) + + 66 AS col0
----
2037

skipif mysql # not compatible
query I rowsort label-111
SELECT + NULLIF ( - 73, - 72 + + 36 / + 72 * - 41 + - - CAST ( NULL AS INTEGER ) + - 16 * + + 17 ) * - + ( 27 ) + + 66 AS col0
----
2037

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-112
SELECT COALESCE ( - COUNT( + - CAST( NULL AS SIGNED ) ), - 26 )
----
0

skipif mysql # not compatible
query I rowsort label-112
SELECT COALESCE ( - COUNT ( + - CAST ( NULL AS INTEGER ) ), - 26 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-113
SELECT - COUNT( * ), COUNT( * ) + CAST( NULL AS SIGNED ) * + 65 * + MIN( ALL - - 84 ) * - 33 col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-113
SELECT - COUNT ( * ), COUNT ( * ) + CAST ( NULL AS INTEGER ) * + 65 * + MIN ( ALL - - 84 ) * - 33 col1
----
-1
NULL

query I rowsort
SELECT + 0 - 72 col1
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT ALL - CAST( 55 AS SIGNED )
----
-55

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

query II rowsort
SELECT ALL - + 74 AS col1, + 34 col1
----
-74
34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-117
SELECT ALL MAX( CAST( NULL AS DECIMAL ) ) * + - 29 * - COALESCE ( + - MAX( ALL 66 ), - 32 - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL MAX ( CAST ( NULL AS REAL ) ) * + - 29 * - COALESCE ( + - MAX ( ALL 66 ), - 32 - - 33 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-119
SELECT COALESCE ( + - COUNT( * ), 66 * + 66, - 12 * + 69 + + - ( - NULLIF ( ( 4 ), 63 + + - 95 + + 40 + - 46 * COUNT( * ) + + - ( 9 ) ) ) + COALESCE ( - COALESCE ( + 0, 24 DIV - + 14 + ( - - 53 ) + 13 ), 86 ) DIV + 57 ) * 0
----
0

skipif mysql # not compatible
query I rowsort label-119
SELECT COALESCE ( + - COUNT ( * ), 66 * + 66, - 12 * + 69 + + - ( - NULLIF ( ( 4 ), 63 + + - 95 + + 40 + - 46 * COUNT ( * ) + + - ( 9 ) ) ) + COALESCE ( - COALESCE ( + 0, 24 / - + 14 + ( - - 53 ) + 13 ), 86 ) / + 57 ) * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT COUNT( * ) + + 61 AS col2
----
62

skipif mysql # not compatible
query I rowsort label-120
SELECT COUNT ( * ) + + 61 AS col2
----
62

query I rowsort
SELECT 46 - - 77
----
123

query I rowsort
SELECT ALL 72 * + + ( 33 ) AS col1
----
2376

query I rowsort
SELECT ALL ( - 22 ) * 65
----
-1430

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT NULLIF ( 47, - 51 ) + + NULLIF ( 75, 45 + + 88 + + 27 + + 13 + - + COUNT( * ) * + 97 + + 59 ) + 76 * - MIN( DISTINCT + 27 ) + + 96 AS col0
----
-1834

skipif mysql # not compatible
query I rowsort label-124
SELECT NULLIF ( 47, - 51 ) + + NULLIF ( 75, 45 + + 88 + + 27 + + 13 + - + COUNT ( * ) * + 97 + + 59 ) + 76 * - MIN ( DISTINCT + 27 ) + + 96 AS col0
----
-1834

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-125
SELECT COALESCE ( NULLIF ( - ( - 87 ), - CASE 62 WHEN 79 * + COALESCE ( - 56, 77 ) + 45 + - - COUNT( * ) * - 18 * - - 91 THEN 94 ELSE NULL END ), + COUNT( DISTINCT + + 7 ), 39 * + COUNT( * ) + - 68 ) DIV 21 * - + ( COUNT( * ) ) * - 67 * + + 1 DIV - - CASE + 40 WHEN 77 * - CAST( NULL AS SIGNED ) + ( 22 ) THEN NULL ELSE - 49 * ( SUM( ALL - 27 ) DIV ( 39 DIV 22 + COUNT( * ) ) ) END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT COALESCE ( NULLIF ( - ( - 87 ), - CASE 62 WHEN 79 * + COALESCE ( - 56, 77 ) + 45 + - - COUNT ( * ) * - 18 * - - 91 THEN 94 ELSE NULL END ), + COUNT ( DISTINCT + + 7 ), 39 * + COUNT ( * ) + - 68 ) / 21 * - + ( COUNT ( * ) ) * - 67 * + + 1 / - - CASE + 40 WHEN 77 * - CAST ( NULL AS INTEGER ) + ( 22 ) THEN NULL ELSE - 49 * ( SUM ( ALL - 27 ) / ( 39 / 22 + COUNT ( * ) ) ) END AS col0
----
0

query I rowsort
SELECT 30 + 32
----
62

query I rowsort
SELECT 76
----
76

query I rowsort
SELECT ALL ( 15 ) + - 32 AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-129
SELECT CAST( NULL AS SIGNED ) + + ( - 34 ) - 46 / - 20 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT CAST ( NULL AS INTEGER ) + + ( - 34 ) - 46 / - 20 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL 82 + - 58 - 66 + - 46 * - 71 * + 62 * + MAX( ALL + 29 ) AS col0
----
5872226

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL 82 + - 58 - 66 + - 46 * - 71 * + 62 * + MAX ( ALL + 29 ) AS col0
----
5872226

query I rowsort
SELECT 42 + - - 72 AS col2
----
114

query I rowsort
SELECT ALL 59 * 69 * 35 * - 84
----
-11968740

query I rowsort
SELECT 87 * - 26 AS col0
----
-2262

query I rowsort
SELECT DISTINCT + 99 + 25 AS col0
----
124

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

query I rowsort
SELECT ALL + + ( 28 ) + + + 55 AS col2
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-138
SELECT - MAX( DISTINCT 19 ), - COALESCE ( 60, 95 * - 39 * - CAST( - - 8 AS SIGNED ) + - 34 ) col1
----
-19
-60

skipif mysql # not compatible
query II rowsort label-138
SELECT - MAX ( DISTINCT 19 ), - COALESCE ( 60, 95 * - 39 * - CAST ( - - 8 AS INTEGER ) + - 34 ) col1
----
-19
-60

query I rowsort
SELECT ALL - 60 * + 1 * 21
----
-1260

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT DISTINCT - 2 + + MIN( DISTINCT - + 22 ) - - + NULLIF ( - COALESCE ( - - 65, - CASE - + ( COUNT( * ) ) WHEN + - 43 THEN NULL WHEN - 93 THEN + 93 ELSE NULL END * + ( 72 ), + + 77 ), + 48 + + - 82 + - COUNT( * ) ) * + 49
----
-3209

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - 2 + + MIN ( DISTINCT - + 22 ) - - + NULLIF ( - COALESCE ( - - 65, - CASE - + ( COUNT ( * ) ) WHEN + - 43 THEN NULL WHEN - 93 THEN + 93 ELSE NULL END * + ( 72 ), + + 77 ), + 48 + + - 82 + - COUNT ( * ) ) * + 49
----
-3209

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

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL + COUNT( * ) * 80 * + 92 AS col0
----
7360

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL + COUNT ( * ) * 80 * + 92 AS col0
----
7360

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

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

query I rowsort
SELECT ALL - COALESCE ( - 78, - 78 ) AS col2
----
78

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

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

query I rowsort
SELECT - 22 * - ( + - 35 )
----
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT ALL + CAST( NULL AS SIGNED ) / + 98 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL + CAST ( NULL AS INTEGER ) / + 98 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-150
SELECT + SUM( DISTINCT + + CAST( - 22 AS SIGNED ) )
----
-22

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

query I rowsort
SELECT ALL - + 14 AS col2
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-152
SELECT + 89 * - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-153
SELECT ALL + + COALESCE ( + - 65, - + COALESCE ( 20, + 26, 28, + 69 ) + + 8, + + 85 ) DIV - 76
----
0

skipif mysql # not compatible
query I rowsort label-153
SELECT ALL + + COALESCE ( + - 65, - + COALESCE ( 20, + 26, 28, + 69 ) + + 8, + + 85 ) / - 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT ALL + MAX( ALL - 78 ) * - + 21 AS col0
----
1638

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL + MAX ( ALL - 78 ) * - + 21 AS col0
----
1638

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

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

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

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

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

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

query II rowsort
SELECT 24 AS col0, 94
----
24
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-160
SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), 3 - - CAST( NULL AS SIGNED ) * 51 ) ) * 11 + + + 48 AS col2
----
-91
543

skipif mysql # not compatible
query II rowsort label-160
SELECT ALL - 91, + COALESCE ( + 45, + + 69 * - 66 * COALESCE ( + 35, - ( - 0 ), 3 - - CAST ( NULL AS INTEGER ) * 51 ) ) * 11 + + + 48 AS col2
----
-91
543

query II rowsort
SELECT DISTINCT - 62 AS col1, 46 - 42 + - 1 AS col1
----
-62
3

query I rowsort
SELECT DISTINCT + COALESCE ( - 84, 73, ( - 23 ) + - - 22 ) + + + 10
----
-74

query I rowsort
SELECT ALL 77 + - 19
----
58

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

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL + CAST ( NULL AS INTEGER ) + 82 + - 40
----
NULL

query I rowsort
SELECT 36 - + + 73 AS col2
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT NULLIF ( + 87, - ( - 80 ) * 17 * + 93 * 43 * + MIN( 97 ) - - - 91 + + + 39 + + + 87 + - - 3 ) - + + COUNT( * ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-167
SELECT NULLIF ( + 87, - ( - 80 ) * 17 * + 93 * 43 * + MIN ( 97 ) - - - 91 + + + 39 + + + 87 + - - 3 ) - + + COUNT ( * ) AS col0
----
86

query I rowsort
SELECT DISTINCT 76 + + 28 AS col0
----
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-169
SELECT 71 * - CASE - CAST( NULL AS DECIMAL ) WHEN 34 * - 64 + + 4 THEN + 86 - - COUNT( * ) ELSE NULL END * - 95 * - ( CAST( - 93 AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-169
SELECT 71 * - CASE - CAST ( NULL AS REAL ) WHEN 34 * - 64 + + 4 THEN + 86 - - COUNT ( * ) ELSE NULL END * - 95 * - ( CAST ( - 93 AS INTEGER ) ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT ALL 29 DIV - 33 * + 28 col2
----
0

skipif mysql # not compatible
query I rowsort label-170
SELECT ALL 29 / - 33 * + 28 col2
----
0

query I rowsort
SELECT 77 + 75 AS col2
----
152

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-172
SELECT DISTINCT + 73 - 74 + + CAST( NULL AS DECIMAL ) + + COUNT( * ) + + - 71 + + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + 73 - 74 + + CAST ( NULL AS REAL ) + + COUNT ( * ) + + - 71 + + 42 AS col2
----
NULL

query I rowsort
SELECT - 30 AS col1
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-174
SELECT - MIN( DISTINCT 12 ) - + 0 * - CASE - 8 WHEN + 79 / - 74 * - + 9 * + + 81 THEN - SUM( ALL - 21 ) WHEN 78 THEN NULL WHEN + - COUNT( ALL + CASE 81 WHEN 84 * - 42 - CAST( NULL AS SIGNED ) THEN NULL ELSE - 58 END ) THEN NULL END / + - 42 + 85 col0, - COUNT( * ) - - 85 AS col2
----
NULL
84

skipif mysql # not compatible
query II rowsort label-174
SELECT - MIN ( DISTINCT 12 ) - + 0 * - CASE - 8 WHEN + 79 / - 74 * - + 9 * + + 81 THEN - SUM ( ALL - 21 ) WHEN 78 THEN NULL WHEN + - COUNT ( ALL + CASE 81 WHEN 84 * - 42 - CAST ( NULL AS INTEGER ) THEN NULL ELSE - 58 END ) THEN NULL END / + - 42 + 85 col0, - COUNT ( * ) - - 85 AS col2
----
NULL
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-175
SELECT + 23 * + - COALESCE ( - CAST( NULL AS SIGNED ), - 99 DIV + - 86 + + NULLIF ( + 0, + MAX( DISTINCT + 89 ) ) * 28 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-175
SELECT + 23 * + - COALESCE ( - CAST ( NULL AS INTEGER ), - 99 / + - 86 + + NULLIF ( + 0, + MAX ( DISTINCT + 89 ) ) * 28 ) AS col0
----
-23

query I rowsort
SELECT - - 60 AS col0
----
60

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

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

query I rowsort
SELECT - ( + 52 ) + ( - 6 ) * + 48 AS col2
----
-340

query II rowsort
SELECT ALL + 80 AS col2, - 27
----
80
-27

query I rowsort
SELECT + 59 * + + 68
----
4012

query I rowsort
SELECT ALL + - COALESCE ( - - 41, 93 )
----
-41

query I rowsort
SELECT 38 AS col2
----
38

query I rowsort
SELECT ALL + 60 col1
----
60

query I rowsort
SELECT - + ( - 36 ) * - 54
----
-1944

query I rowsort
SELECT ALL + 50
----
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT - + 78 DIV + ( - ( - - 81 ) ) - - 37 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-187
SELECT - + 78 / + ( - ( - - 81 ) ) - - 37 AS col0
----
37

query I rowsort
SELECT - 38 + + 62 - + 71
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL + CASE - - COUNT( * ) WHEN - 93 THEN + 56 * + MIN( ALL + 26 ) - + 3 WHEN - + 37 + - + 5 * + 20 + + MIN( 76 ) + - 54 - COUNT( 51 ) + + 69 * 57 * - + 71 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + CASE - - COUNT ( * ) WHEN - 93 THEN + 56 * + MIN ( ALL + 26 ) - + 3 WHEN - + 37 + - + 5 * + 20 + + MIN ( 76 ) + - 54 - COUNT ( 51 ) + + 69 * 57 * - + 71 THEN NULL END col0
----
NULL

query I rowsort
SELECT + 68
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT DISTINCT + SUM( ALL + 82 )
----
82

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + SUM ( ALL + 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT DISTINCT SUM( ALL 21 ) * + 82 + - 21 AS col1
----
1701

skipif mysql # not compatible
query I rowsort label-192
SELECT DISTINCT SUM ( ALL 21 ) * + 82 + - 21 AS col1
----
1701

onlyif mysql # aggregate syntax: 
query II rowsort label-193
SELECT ALL 31 * + 69 + COUNT( ALL + 88 ) AS col1, - 99
----
2140
-99

skipif mysql # not compatible
query II rowsort label-193
SELECT ALL 31 * + 69 + COUNT ( ALL + 88 ) AS col1, - 99
----
2140
-99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT ALL - 54 + - COUNT( * ) * COUNT( * ) - 15 + 78 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-196
SELECT ALL - 54 + - COUNT ( * ) * COUNT ( * ) - 15 + 78 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT - COALESCE ( + 44, - 84 ) + - 93 * - COUNT( * ) + 55 col1
----
104

skipif mysql # not compatible
query I rowsort label-197
SELECT - COALESCE ( + 44, - 84 ) + - 93 * - COUNT ( * ) + 55 col1
----
104

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-198
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col0, + 45
----
NULL
45

skipif mysql # not compatible
query II rowsort label-198
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col0, + 45
----
NULL
45

query I rowsort
SELECT - 99 AS col0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-200
SELECT ALL - NULLIF ( + COALESCE ( - - CASE - 72 WHEN - 61 + + - CAST( 45 AS SIGNED ) THEN 49 + + 2 WHEN - MIN( - - 35 ) THEN + 28 WHEN - - ( - - 74 ) / - COUNT( * ) + + SUM( - 45 ) - + + 11 * - + ( - 80 ) + - 15 THEN 98 * + CAST( + 94 AS SIGNED ) * - 26 * + 65 * 67 END, 49 ), - CASE 36 WHEN 73 THEN 71 / 41 ELSE NULL END ) * + 33 AS col1
----
-1617

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - NULLIF ( + COALESCE ( - - CASE - 72 WHEN - 61 + + - CAST ( 45 AS INTEGER ) THEN 49 + + 2 WHEN - MIN ( - - 35 ) THEN + 28 WHEN - - ( - - 74 ) / - COUNT ( * ) + + SUM ( - 45 ) - + + 11 * - + ( - 80 ) + - 15 THEN 98 * + CAST ( + 94 AS INTEGER ) * - 26 * + 65 * 67 END, 49 ), - CASE 36 WHEN 73 THEN 71 / 41 ELSE NULL END ) * + 33 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL + 54 + + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + 54 + + COUNT ( * )
----
55

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

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

query I rowsort
SELECT ALL ( - - ( + + 8 ) ) AS col2
----
8

query I rowsort
SELECT DISTINCT 62 col1
----
62

onlyif mysql # DIV for integer division: 
query II rowsort label-205
SELECT + CASE + 65 WHEN + + ( + 42 ) THEN + + 45 DIV 64 - - 55 - + CASE - 82 WHEN + 23 + + 30 THEN - 97 END DIV - ( - 2 ) ELSE + 41 END + ( + 47 ), + 31 AS col1
----
88
31

skipif mysql # not compatible
query II rowsort label-205
SELECT + CASE + 65 WHEN + + ( + 42 ) THEN + + 45 / 64 - - 55 - + CASE - 82 WHEN + 23 + + 30 THEN - 97 END / - ( - 2 ) ELSE + 41 END + ( + 47 ), + 31 AS col1
----
88
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-206
SELECT DISTINCT - 11 / - CAST( NULL AS SIGNED ) * + 20 * - 45 * - + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - 11 / - CAST ( NULL AS INTEGER ) * + 20 * - 45 * - + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-207
SELECT - + 89 DIV - 46 + - + 82
----
-81

skipif mysql # not compatible
query I rowsort label-207
SELECT - + 89 / - 46 + - + 82
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-208
SELECT - 16 + + CAST( + - 65 AS SIGNED ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-208
SELECT - 16 + + CAST ( + - 65 AS INTEGER ) AS col2
----
-81

query I rowsort
SELECT - NULLIF ( 52, - + 14 )
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + 4 + 16 + 61 - + SUM( + 31 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-210
SELECT + 4 + 16 + 61 - + SUM ( + 31 ) AS col1
----
50

query I rowsort
SELECT + 43 * 98
----
4214

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL - 17 * COALESCE ( 92, - + ( ( + - ( COUNT( * ) ) ) ) + - 95 * + ( - ( - 82 ) ) ) * - 21 AS col0
----
32844

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - 17 * COALESCE ( 92, - + ( ( + - ( COUNT ( * ) ) ) ) + - 95 * + ( - ( - 82 ) ) ) * - 21 AS col0
----
32844

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT + MIN( ALL - 73 ) * + CASE - 33 WHEN 20 + - 13 THEN 88 * - 47 * - 36 ELSE - 75 END + - 47
----
5428

skipif mysql # not compatible
query I rowsort label-213
SELECT + MIN ( ALL - 73 ) * + CASE - 33 WHEN 20 + - 13 THEN 88 * - 47 * - 36 ELSE - 75 END + - 47
----
5428

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-214
SELECT DISTINCT - 26 * + SUM( + 99 ) - + - 69 DIV + CAST( - 33 AS SIGNED ) AS col0
----
-2576

skipif mysql # not compatible
query I rowsort label-214
SELECT DISTINCT - 26 * + SUM ( + 99 ) - + - 69 / + CAST ( - 33 AS INTEGER ) AS col0
----
-2576

query I rowsort
SELECT 56 * - + 59 + + + 21 + + + 92
----
-3191

query I rowsort
SELECT DISTINCT + - 19
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-217
SELECT + + CAST( - 51 AS SIGNED ) * - CAST( - SUM( + 27 ) AS SIGNED ) AS col2
----
-1377

skipif mysql # not compatible
query I rowsort label-217
SELECT + + CAST ( - 51 AS INTEGER ) * - CAST ( - SUM ( + 27 ) AS INTEGER ) AS col2
----
-1377

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-218
SELECT - - COUNT( * ) DIV + - 46 + + 35 - - 17 + 27 + - COUNT( DISTINCT - 28 ) + + 3 + + + 10 + ( - 19 ) + + 58 * + 10 * - 56 DIV COUNT( * ) * - - NULLIF ( + - 42, - - ( + 71 ) * - 72 ) AS col1
----
1364232

skipif mysql # not compatible
query I rowsort label-218
SELECT - - COUNT ( * ) / + - 46 + + 35 - - 17 + 27 + - COUNT ( DISTINCT - 28 ) + + 3 + + + 10 + ( - 19 ) + + 58 * + 10 * - 56 / COUNT ( * ) * - - NULLIF ( + - 42, - - ( + 71 ) * - 72 ) AS col1
----
1364232

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT + 46 + - COUNT( * ) * - 8 + 45 + + - COUNT( * ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-219
SELECT + 46 + - COUNT ( * ) * - 8 + 45 + + - COUNT ( * ) AS col1
----
98

query II rowsort
SELECT + 60 * - 77 * 69 * + + 9, 52 * 26 + 50 - - 71 AS col2
----
-2869020
1473

query I rowsort
SELECT - 29 + - 62
----
-91

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-223
SELECT DISTINCT + 73 DIV - COUNT( * ) + - + 54
----
-127

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT + 73 / - COUNT ( * ) + - + 54
----
-127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-224
SELECT DISTINCT + 95 / - 23 + COUNT( * ) - - CAST( NULL AS SIGNED ) * COUNT( * ) / + + 37 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT DISTINCT + 95 / - 23 + COUNT ( * ) - - CAST ( NULL AS INTEGER ) * COUNT ( * ) / + + 37 * + COUNT ( * )
----
NULL

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

query I rowsort
SELECT + 8 + + + 65 * + 87 AS col1
----
5663

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ALL - 62 * + COUNT( DISTINCT - 11 ) * - 87 + - ( + 14 ) + - 66 col0
----
5314

skipif mysql # not compatible
query I rowsort label-227
SELECT ALL - 62 * + COUNT ( DISTINCT - 11 ) * - 87 + - ( + 14 ) + - 66 col0
----
5314

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

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

query I rowsort
SELECT ( - 39 )
----
-39

query I rowsort
SELECT - 78 * + 84
----
-6552

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

query I rowsort
SELECT + 26 * 10 + + 13 AS col1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT CASE - - 4 WHEN + 37 * + COUNT( * ) / - 59 * - + 17 THEN NULL ELSE CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT CASE - - 4 WHEN + 37 * + COUNT ( * ) / - 59 * - + 17 THEN NULL ELSE CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-235
SELECT - 42 * 55 DIV - 28 AS col2, - 23 col1
----
82
-23

skipif mysql # not compatible
query II rowsort label-235
SELECT - 42 * 55 / - 28 AS col2, - 23 col1
----
82
-23

query I rowsort
SELECT DISTINCT - 40 * - + 87 AS col2
----
3480

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

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

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

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + COUNT ( * ) * + 96 AS col0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-239
SELECT - COUNT( ALL + 53 ) DIV + NULLIF ( - + NULLIF ( - 94, CASE + 61 WHEN - ( ( + 16 ) ) THEN NULL WHEN - ( - 75 ) DIV - + 74 * - + 42 * + COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) DIV + - COUNT( * ) ) * + - 60 THEN NULL ELSE 67 + + + COUNT( * ) + + ( 72 ) END ), - 7 - 79 ) AS col0, + 37
----
0
37

skipif mysql # not compatible
query II rowsort label-239
SELECT - COUNT ( ALL + 53 ) / + NULLIF ( - + NULLIF ( - 94, CASE + 61 WHEN - ( ( + 16 ) ) THEN NULL WHEN - ( - 75 ) / - + 74 * - + 42 * + COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) / + - COUNT ( * ) ) * + - 60 THEN NULL ELSE 67 + + + COUNT ( * ) + + ( 72 ) END ), - 7 - 79 ) AS col0, + 37
----
0
37

query I rowsort
SELECT DISTINCT NULLIF ( - - 97, 20 * - - 91 * - 58 * 7 * 86 ) AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-241
SELECT COUNT( * ), - 37 + + 87 col2
----
1
50

skipif mysql # not compatible
query II rowsort label-241
SELECT COUNT ( * ), - 37 + + 87 col2
----
1
50

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT + + 58 * + + 79 + - COUNT( * ) - COUNT( * ) col1
----
4580

skipif mysql # not compatible
query I rowsort label-242
SELECT + + 58 * + + 79 + - COUNT ( * ) - COUNT ( * ) col1
----
4580

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

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT 0 - COUNT( * ) + COALESCE ( 40, + + 99, - 49 - + 3 ) + + 64 * ( + - 20 ) * ( 75 ) + NULLIF ( ( - 21 ), - - 13 ) * - 56 AS col1
----
-94785

skipif mysql # not compatible
query I rowsort label-244
SELECT 0 - COUNT ( * ) + COALESCE ( 40, + + 99, - 49 - + 3 ) + + 64 * ( + - 20 ) * ( 75 ) + NULLIF ( ( - 21 ), - - 13 ) * - 56 AS col1
----
-94785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-245
SELECT - MAX( - + NULLIF ( + 2, + CAST( NULL AS SIGNED ) ) ) * - 30 AS col0, 73
----
-60
73

skipif mysql # not compatible
query II rowsort label-245
SELECT - MAX ( - + NULLIF ( + 2, + CAST ( NULL AS INTEGER ) ) ) * - 30 AS col0, 73
----
-60
73

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

query I rowsort
SELECT + 84 + - 76
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - SUM( + NULLIF ( + 71, 60 ) ) AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-248
SELECT - SUM ( + NULLIF ( + 71, 60 ) ) AS col0
----
-71

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

query I rowsort
SELECT DISTINCT - 51
----
-51

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

query I rowsort
SELECT - - 0 AS col2
----
0

query I rowsort
SELECT - 77 * + 75 AS col1
----
-5775

query I rowsort
SELECT ALL - + 19 + + 64 AS col2
----
45

query I rowsort
SELECT - 17 * 58
----
-986

query I rowsort
SELECT - + 92 AS col2
----
-92

query I rowsort
SELECT - - 79
----
79

query I rowsort
SELECT + 0 + + 14
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT - NULLIF ( + 27, 21 + - 71 ) + ( - COUNT( * ) ) AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT - NULLIF ( + 27, 21 + - 71 ) + ( - COUNT ( * ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - ( 49 ) + - COUNT( 40 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - ( 49 ) + - COUNT ( 40 ) AS col2
----
-50

query I rowsort
SELECT 92 AS col1
----
92

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-263
SELECT ALL 2 + - COUNT( * ) + 15 * + + 15 * - CAST( + 29 AS SIGNED ) AS col1, + 87 DIV + 86 + - - 93
----
-6524
94

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL 2 + - COUNT ( * ) + 15 * + + 15 * - CAST ( + 29 AS INTEGER ) AS col1, + 87 / + 86 + - - 93
----
-6524
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-264
SELECT COUNT( * ) DIV + 79 AS col2, NULLIF ( - 7, + - 76 DIV COUNT( * ) * + AVG ( ( + 14 ) ) + - CAST( NULL AS SIGNED ) )
----
0
-7

skipif mysql # not compatible
query II rowsort label-264
SELECT COUNT ( * ) / + 79 AS col2, NULLIF ( - 7, + - 76 / COUNT ( * ) * + AVG ( ( + 14 ) ) + - CAST ( NULL AS INTEGER ) )
----
0
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-265
SELECT DISTINCT 20 DIV - 87
----
0

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT 20 / - 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-266
SELECT DISTINCT - 88, + 69 + + - COALESCE ( ( 89 ), 56 ) * 95 + + COUNT( * ) AS col1
----
-88
-8385

skipif mysql # not compatible
query II rowsort label-266
SELECT DISTINCT - 88, + 69 + + - COALESCE ( ( 89 ), 56 ) * 95 + + COUNT ( * ) AS col1
----
-88
-8385

onlyif mysql # DIV for integer division: 
query II rowsort label-267
SELECT 26 - - - 79 DIV + 16 - + 89, + 22 * 67 AS col2
----
-67
1474

skipif mysql # not compatible
query II rowsort label-267
SELECT 26 - - - 79 / + 16 - + 89, + 22 * 67 AS col2
----
-67
1474

query I rowsort
SELECT 83 col2
----
83

query I rowsort
SELECT 54 * - ( 12 ) + 35 + - 35
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT 81 * - COUNT( * ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-270
SELECT 81 * - COUNT ( * ) AS col2
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-271
SELECT ALL - 16 col0, COUNT( * )
----
-16
1

skipif mysql # not compatible
query II rowsort label-271
SELECT ALL - 16 col0, COUNT ( * )
----
-16
1

onlyif mysql # aggregate syntax: 
query II rowsort label-272
SELECT 69 AS col2, MAX( 53 ) AS col0
----
69
53

skipif mysql # not compatible
query II rowsort label-272
SELECT 69 AS col2, MAX ( 53 ) AS col0
----
69
53

query I rowsort
SELECT ALL 12 * + + 1
----
12

query I rowsort
SELECT ALL 24 * - NULLIF ( ( + 79 ), 79 * + 32 ) * 53
----
-100488

query I rowsort
SELECT ALL - COALESCE ( + 64, - 14 * + 81 + 0 - + - 37, - 80 ) AS col2
----
-64

query I rowsort
SELECT DISTINCT - 22
----
-22

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

skipif mysql # not compatible
query I rowsort label-277
SELECT COUNT ( - 13 ) * + 23 AS col2
----
23

query I rowsort
SELECT 99 + - 87 col1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-279
SELECT 70 + - 47 AS col2, CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-279
SELECT 70 + - 47 AS col2, CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-280
SELECT + COUNT( * ) * - CASE NULLIF ( CASE + 42 WHEN + 47 THEN NULL WHEN - - 22 * - - 73 + - 18 + 19 * + 84 THEN - + COALESCE ( COUNT( * ), 6 / + 76 * - COUNT( * ) ) * - 23 - - 96 * + CAST( NULL AS SIGNED ) WHEN + + ( 4 ) * MIN( + + 19 ) + 89 * 18 THEN + 18 * - + 41 ELSE NULL END, + + 63 * + + 81 - 15 ) WHEN + 51 THEN NULL WHEN + 28 THEN + 69 END * 51 + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-280
SELECT + COUNT ( * ) * - CASE NULLIF ( CASE + 42 WHEN + 47 THEN NULL WHEN - - 22 * - - 73 + - 18 + 19 * + 84 THEN - + COALESCE ( COUNT ( * ), 6 / + 76 * - COUNT ( * ) ) * - 23 - - 96 * + CAST ( NULL AS INTEGER ) WHEN + + ( 4 ) * MIN ( + + 19 ) + 89 * 18 THEN + 18 * - + 41 ELSE NULL END, + + 63 * + + 81 - 15 ) WHEN + 51 THEN NULL WHEN + 28 THEN + 69 END * 51 + 60
----
NULL

query I rowsort
SELECT 15 - - 62 AS col2
----
77

query II rowsort
SELECT ALL 60 AS col2, 1 AS col2
----
60
1

onlyif mysql # aggregate syntax: 
query II rowsort label-283
SELECT COUNT( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2
----
49
-5025

skipif mysql # not compatible
query II rowsort label-283
SELECT COUNT ( * ) + 48 AS col2, ( + + CASE + 24 WHEN - - 45 / - - COALESCE ( - ( + + MAX ( - 58 ) ), 84 ) THEN 50 ELSE + 68 * - 72 + - 37 + - 92 END ) AS col2
----
49
-5025

query I rowsort
SELECT ALL CASE - ( - 7 ) WHEN 65 + + 53 + 60 * + 31 THEN - + ( + ( - - 88 ) ) WHEN + 54 THEN NULL WHEN - 89 + 59 - - 23 * + + 80 + 32 THEN + 97 + + + 20 ELSE NULL END col0
----
NULL

query I rowsort
SELECT 45 * 3 + + - 38
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT ALL + - 96 * + - COUNT( * ) * - 33
----
-3168

skipif mysql # not compatible
query I rowsort label-286
SELECT ALL + - 96 * + - COUNT ( * ) * - 33
----
-3168

query I rowsort
SELECT 89 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT + 39 + - 70 + + - NULLIF ( + 70, + 90 + + + COUNT( * ) - - + 94 + 68 ) - + 48 * 97 * - ( - 93 ) + - 22 AS col0
----
-433131

skipif mysql # not compatible
query I rowsort label-288
SELECT + 39 + - 70 + + - NULLIF ( + 70, + 90 + + + COUNT ( * ) - - + 94 + 68 ) - + 48 * 97 * - ( - 93 ) + - 22 AS col0
----
-433131

query I rowsort
SELECT ALL - 20 * + 61
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT - COUNT( * ) * - 29 * + + 49
----
1421

skipif mysql # not compatible
query I rowsort label-290
SELECT - COUNT ( * ) * - 29 * + + 49
----
1421

query I rowsort
SELECT ALL - - 66 + 39
----
105

onlyif mysql # aggregate syntax: 
query II rowsort label-292
SELECT + 95 AS col2, 10 + COUNT( * )
----
95
11

skipif mysql # not compatible
query II rowsort label-292
SELECT + 95 AS col2, 10 + COUNT ( * )
----
95
11

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT + COUNT( * ) + 9 * + ( - + 30 ) * - - CASE - - CASE - - 46 WHEN + - 30 THEN - 51 ELSE + ( + - 58 ) END WHEN 24 THEN - 73 ELSE NULL END + - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT + COUNT ( * ) + 9 * + ( - + 30 ) * - - CASE - - CASE - - 46 WHEN + - 30 THEN - 51 ELSE + ( + - 58 ) END WHEN 24 THEN - 73 ELSE NULL END + - 42 AS col1
----
NULL

query I rowsort
SELECT - NULLIF ( - 56, + + 22 * - 53 ) AS col1
----
56

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

query I rowsort
SELECT ALL + 15 + + - 43 AS col2
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-297
SELECT ALL + 93 + 76 DIV - COUNT( + 92 ) + 29 * - 60 + ( - + 91 )
----
-1814

skipif mysql # not compatible
query I rowsort label-297
SELECT ALL + 93 + 76 / - COUNT ( + 92 ) + 29 * - 60 + ( - + 91 )
----
-1814

query I rowsort
SELECT - 64 + - 67 AS col0
----
-131

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

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

query I rowsort
SELECT ALL 8 * 64 col1
----
512

query I rowsort
SELECT 55 + 35
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT ALL + COUNT( * ) * - 28 * + 26 * - + MAX( ALL - - 70 ) + + + 42 col0
----
51002

skipif mysql # not compatible
query I rowsort label-302
SELECT ALL + COUNT ( * ) * - 28 * + 26 * - + MAX ( ALL - - 70 ) + + + 42 col0
----
51002

query I rowsort
SELECT 36 + - + 97 * 41 AS col0
----
-3941

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

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT DISTINCT 78 * - 40 * CASE 14 WHEN - 71 + - 42 + + + 77 * + 67 THEN - + 0 + - MAX( ALL - 62 ) + + 39 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT 78 * - 40 * CASE 14 WHEN - 71 + - 42 + + + 77 * + 67 THEN - + 0 + - MAX ( ALL - 62 ) + + 39 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-306
SELECT DISTINCT + COUNT( * ) * - 39 * - 17 - - 63 col0
----
726

skipif mysql # not compatible
query I rowsort label-306
SELECT DISTINCT + COUNT ( * ) * - 39 * - 17 - - 63 col0
----
726

onlyif mysql # DIV for integer division: 
query I rowsort label-307
SELECT + 18 DIV + + 33 + - 91 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-307
SELECT + 18 / + + 33 + - 91 AS col1
----
-91

query I rowsort
SELECT ALL + 50 * 55 AS col2
----
2750

query I rowsort
SELECT ALL - 95 * + + 95 AS col0
----
-9025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-310
SELECT ALL CASE COUNT( * ) WHEN + 14 THEN NULL WHEN - 60 * - ( ( COUNT( * ) ) ) + + 13 * - 78 DIV - 98 * - ( ( + - 10 ) ) + - + 72 THEN NULL ELSE + - 25 END DIV + 61
----
0

skipif mysql # not compatible
query I rowsort label-310
SELECT ALL CASE COUNT ( * ) WHEN + 14 THEN NULL WHEN - 60 * - ( ( COUNT ( * ) ) ) + + 13 * - 78 / - 98 * - ( ( + - 10 ) ) + - + 72 THEN NULL ELSE + - 25 END / + 61
----
0

query I rowsort
SELECT + 96 col1
----
96

query I rowsort
SELECT DISTINCT + 38
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT 23 * - COUNT( * ) * - 89 + + 63
----
2110

skipif mysql # not compatible
query I rowsort label-314
SELECT 23 * - COUNT ( * ) * - 89 + + 63
----
2110

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT ALL + NULLIF ( 23, + - 25 / + + CASE + 16 WHEN + + MAX( ALL - 39 ) THEN + 4 ELSE COUNT( + + 75 ) + - - 77 + + 77 END + - 38 + - COUNT( * ) ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-315
SELECT ALL + NULLIF ( 23, + - 25 / + + CASE + 16 WHEN + + MAX ( ALL - 39 ) THEN + 4 ELSE COUNT ( + + 75 ) + - - 77 + + 77 END + - 38 + - COUNT ( * ) ) AS col0
----
23

query I rowsort
SELECT DISTINCT + 28 AS col2
----
28

query I rowsort
SELECT ALL 40 + 85
----
125

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

query I rowsort
SELECT DISTINCT + 71 + 80 * - 91 * - 63
----
458711

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

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

skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - 38 + - - COUNT ( * ) AS col1
----
-37

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

query I rowsort
SELECT ( - 62 )
----
-62

query I rowsort
SELECT - - 29 col1
----
29

query I rowsort
SELECT DISTINCT + NULLIF ( 53, + 58 )
----
53

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

query I rowsort
SELECT - + 55
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-328
SELECT DISTINCT - 95 DIV MIN( - + ( 41 ) ) * + - 58 AS col2
----
-116

skipif mysql # not compatible
query I rowsort label-328
SELECT DISTINCT - 95 / MIN ( - + ( 41 ) ) * + - 58 AS col2
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-329
SELECT - 53 - - 60 DIV 32
----
-52

skipif mysql # not compatible
query I rowsort label-329
SELECT - 53 - - 60 / 32
----
-52

query I rowsort
SELECT ALL + 62 * + + 70 AS col1
----
4340

query I rowsort
SELECT - + 34
----
-34

query I rowsort
SELECT + 20 col2
----
20

query I rowsort
SELECT - ( 66 ) col1
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT DISTINCT + 81 * + 12 * COUNT( * ), COUNT( * ) AS col0
----
972
1

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + 81 * + 12 * COUNT ( * ), COUNT ( * ) AS col0
----
972
1

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - ( - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-335
SELECT - ( - COUNT ( * ) ) AS col0
----
1

query I rowsort
SELECT - ( ( - + 85 ) ) * 60
----
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT ALL + NULLIF ( + 61, COUNT( * ) * - ( + 58 ) * + 82 / MIN( ALL - + 31 ) + + 15 * - 63 + - 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-337
SELECT ALL + NULLIF ( + 61, COUNT ( * ) * - ( + 58 ) * + 82 / MIN ( ALL - + 31 ) + + 15 * - 63 + - 61 ) AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ( - NULLIF ( + - 7, CASE + - MAX( - 57 ) WHEN 36 / + 8 + - 34 * - 72 + + 55 + + 87 + + 60 * - - 79 + - 78 + 86 + NULLIF ( 41, + 88 ) + 21 / + + 11 THEN - 57 ELSE CASE + 96 WHEN - 96 * ( + + 50 ) THEN - MAX( DISTINCT - - 33 ) ELSE NULL END END + + - 99 + MAX( ALL + 50 ) ) ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-338
SELECT ( - NULLIF ( + - 7, CASE + - MAX ( - 57 ) WHEN 36 / + 8 + - 34 * - 72 + + 55 + + 87 + + 60 * - - 79 + - 78 + 86 + NULLIF ( 41, + 88 ) + 21 / + + 11 THEN - 57 ELSE CASE + 96 WHEN - 96 * ( + + 50 ) THEN - MAX ( DISTINCT - - 33 ) ELSE NULL END END + + - 99 + MAX ( ALL + 50 ) ) ) AS col0
----
7

query I rowsort
SELECT ALL + COALESCE ( - - 99, - 45, + 1 ) AS col2
----
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-342
SELECT ALL + 25 col1, - ( + 47 ) + - COUNT( * ) + - 44 AS col0
----
25
-92

skipif mysql # not compatible
query II rowsort label-342
SELECT ALL + 25 col1, - ( + 47 ) + - COUNT ( * ) + - 44 AS col0
----
25
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-343
SELECT + COUNT( * ) AS col2, - 72 * - 78 * - - 44 + COUNT( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST( ( + 20 ) AS SIGNED ) * - + COUNT( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-343
SELECT + COUNT ( * ) AS col2, - 72 * - 78 * - - 44 + COUNT ( * ) - CASE - 46 WHEN - 50 THEN NULL WHEN CAST ( ( + 20 ) AS INTEGER ) * - + COUNT ( * ) * 75 + + 2 THEN - 26 ELSE NULL END col2
----
1
NULL

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

skipif mysql # not compatible
query I rowsort label-344
SELECT COUNT ( * ) / + + 58 + + 89
----
89

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

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

query I rowsort
SELECT - 11 + 91 + 37 AS col2
----
117

query I rowsort
SELECT ALL - 92 * 54 AS col0
----
-4968

query I rowsort
SELECT NULLIF ( + 74, - + 55 * + 37 ) AS col0
----
74

query I rowsort
SELECT ALL - 19 * - - 13
----
-247

onlyif mysql # aggregate syntax: 
query II rowsort label-350
SELECT + - ( - + NULLIF ( - 21, + - 65 ) ), COUNT( * ) col2
----
-21
1

skipif mysql # not compatible
query II rowsort label-350
SELECT + - ( - + NULLIF ( - 21, + - 65 ) ), COUNT ( * ) col2
----
-21
1

query I rowsort
SELECT + + 15 + 27 AS col1
----
42

query I rowsort
SELECT ALL + - 19 * 97 + - 77 + + 67 - + 95 AS col1
----
-1948

query I rowsort
SELECT DISTINCT + - 95 col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT - + COUNT( * ) + 14 + + COALESCE ( - 46, - 43 ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-354
SELECT - + COUNT ( * ) + 14 + + COALESCE ( - 46, - 43 ) AS col0
----
-33

query I rowsort
SELECT ALL + 41
----
41

query I rowsort
SELECT 24 col0
----
24

query I rowsort
SELECT + 57 - 70 + - 30
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT + + 79 + - 79 + - ( - - ( + SUM( ALL 68 ) ) )
----
-68

skipif mysql # not compatible
query I rowsort label-358
SELECT + + 79 + - 79 + - ( - - ( + SUM ( ALL 68 ) ) )
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-359
SELECT ALL - 37 * - 63 * - 96 + + CASE ( 43 ) WHEN 64 + - NULLIF ( + 95, - + 55 ) - 98 + + 96 THEN - 70 WHEN - 94 THEN - MAX( ALL + - 0 ) ELSE NULL END - - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL - 37 * - 63 * - 96 + + CASE ( 43 ) WHEN 64 + - NULLIF ( + 95, - + 55 ) - 98 + + 96 THEN - 70 WHEN - 94 THEN - MAX ( ALL + - 0 ) ELSE NULL END - - - 65
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT + 24 * - - 97 + SUM( - 76 ) AS col1
----
2252

skipif mysql # not compatible
query I rowsort label-360
SELECT + 24 * - - 97 + SUM ( - 76 ) AS col1
----
2252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-361
SELECT ALL + 77 * ( - 44 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + 77 * ( - 44 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 80 AS col2
----
80

query I rowsort
SELECT DISTINCT + 66 - - 24
----
90

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-365
SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT( * ) - - COALESCE ( + - 40, - - 22 ) * CAST( NULL AS SIGNED ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST( NULL AS SIGNED ) ) * + 13 * + COUNT( * ) * + - 67 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-365
SELECT + - 38 + AVG ( ALL + 92 ) + - 64 + - COUNT ( * ) - - COALESCE ( + - 40, - - 22 ) * CAST ( NULL AS INTEGER ) + - 78 * 1 * - 89 * 56, - 56 * + ( CAST ( NULL AS INTEGER ) ) * + 13 * + COUNT ( * ) * + - 67 AS col2
----
NULL
NULL

query I rowsort
SELECT ALL + 33 - + 66 AS col2
----
-33

query I rowsort
SELECT + + 27 * + 52
----
1404

query I rowsort
SELECT + + 22 * + 80 + + + 19 + - 22 - 26
----
1731

query I rowsort
SELECT - ( 33 )
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-370
SELECT - COUNT( * ) AS col1, + CAST( ( - NULLIF ( - - 6, - 70 ) ) AS SIGNED )
----
-1
-6

skipif mysql # not compatible
query II rowsort label-370
SELECT - COUNT ( * ) AS col1, + CAST ( ( - NULLIF ( - - 6, - 70 ) ) AS INTEGER )
----
-1
-6

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

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

query I rowsort
SELECT 99 AS col0
----
99

query I rowsort
SELECT + 25 + - 95
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT ALL CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-374
SELECT ALL CASE + 19 WHEN + + CASE + 43 WHEN - ( + 22 ) THEN - SUM ( ALL - 48 ) ELSE NULL END * - 54 THEN NULL WHEN 58 THEN + + 71 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT + 78 DIV - - 97
----
0

skipif mysql # not compatible
query I rowsort label-375
SELECT + 78 / - - 97
----
0

query I rowsort
SELECT + 95 + + 49 + + 61 * + 52 * - - 10 AS col2
----
31864

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL 1 DIV - 15
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL 1 / - 15
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-378
SELECT 90 + + + 85 / - CAST( NULL AS DECIMAL ) + ( - 65 ) - + 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT 90 + + + 85 / - CAST ( NULL AS REAL ) + ( - 65 ) - + 54 AS col2
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-381
SELECT 23 DIV ( + COUNT( * ) ) + + 7 * - COUNT( ALL + - 19 ) * + COUNT( * ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-381
SELECT 23 / ( + COUNT ( * ) ) + + 7 * - COUNT ( ALL + - 19 ) * + COUNT ( * ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-382
SELECT ALL + 32 * - NULLIF ( COUNT( * ), 86 + - 69 ) * - 65
----
2080

skipif mysql # not compatible
query I rowsort label-382
SELECT ALL + 32 * - NULLIF ( COUNT ( * ), 86 + - 69 ) * - 65
----
2080

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT - SUM( 19 ) + 43
----
24

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - SUM ( 19 ) + 43
----
24

query I rowsort
SELECT DISTINCT 59 * + 64
----
3776

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT ALL - 60 + + CASE - 94 WHEN 14 THEN NULL WHEN - ( + 10 ) * + COUNT( * ) THEN + + 55 * 37 END * 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-385
SELECT ALL - 60 + + CASE - 94 WHEN 14 THEN NULL WHEN - ( + 10 ) * + COUNT ( * ) THEN + + 55 * 37 END * 31 AS col2
----
NULL

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

query I rowsort
SELECT ALL 94 + + 66 AS col1
----
160

query I rowsort
SELECT DISTINCT - 76
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-389
SELECT ALL + ( 82 ) + + + CAST( + ( + 38 ) AS SIGNED ) + - 46 * + - 58 AS col0
----
2788

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL + ( 82 ) + + + CAST ( + ( + 38 ) AS INTEGER ) + - 46 * + - 58 AS col0
----
2788

query I rowsort
SELECT + + 46
----
46

query I rowsort
SELECT NULLIF ( + 41, 95 )
----
41

query I rowsort
SELECT + + 66
----
66

query I rowsort
SELECT ALL - - 10 * - 19 * + + 42 col2
----
-7980

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

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + 97 - COUNT ( * ) / + 6
----
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT - - 34 * - 93 + - 98 + - MAX( - 36 ) * + - 77 * + + NULLIF ( + + 89, CAST( - - ( + 58 ) AS DECIMAL ) ) DIV COUNT( * )
----
-249968

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT - - 34 * - 93 + - 98 + - MAX ( - 36 ) * + - 77 * + + NULLIF ( + + 89, CAST ( - - ( + 58 ) AS REAL ) ) / COUNT ( * )
----
-249968

onlyif mysql # aggregate syntax: 
query I rowsort label-396
SELECT ALL - - 18 * COUNT( * ) * 91 AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-396
SELECT ALL - - 18 * COUNT ( * ) * 91 AS col1
----
1638

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT ALL + + COUNT( * ) * + CAST( NULL AS SIGNED ) * - NULLIF ( 8, - - ( + - 41 ) / - 67 + ( - 0 ) + + 13 ) * - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-398
SELECT ALL + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - NULLIF ( 8, - - ( + - 41 ) / - 67 + ( - 0 ) + + 13 ) * - 58
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-400
SELECT - 74 DIV - + 58 - + 10 AS col2
----
-9

skipif mysql # not compatible
query I rowsort label-400
SELECT - 74 / - + 58 - + 10 AS col2
----
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-402
SELECT 17 - - 64 DIV - 25
----
15

skipif mysql # not compatible
query I rowsort label-402
SELECT 17 - - 64 / - 25
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-403
SELECT - CASE + 29 WHEN + 84 THEN NULL WHEN - 46 + - COUNT( * ) THEN - - COUNT( * ) ELSE - COALESCE ( - 62, + + MIN( DISTINCT 78 ) DIV 72 * 61 ) * - 27 - - 13 * - 63 END * - 14
----
-34902

skipif mysql # not compatible
query I rowsort label-403
SELECT - CASE + 29 WHEN + 84 THEN NULL WHEN - 46 + - COUNT ( * ) THEN - - COUNT ( * ) ELSE - COALESCE ( - 62, + + MIN ( DISTINCT 78 ) / 72 * 61 ) * - 27 - - 13 * - 63 END * - 14
----
-34902

query I rowsort
SELECT DISTINCT + 22 AS col2
----
22

query I rowsort
SELECT 64 * 96 AS col1
----
6144

query I rowsort
SELECT - 67 AS col2
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-407
SELECT ALL 69, - 59 + - COUNT( * ) AS col2
----
69
-60

skipif mysql # not compatible
query II rowsort label-407
SELECT ALL 69, - 59 + - COUNT ( * ) AS col2
----
69
-60

query I rowsort
SELECT - 70 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-409
SELECT 84 - + ( + - 32 ) + + COUNT( * ) * + MAX( 95 ) * + 60 * - 66
----
-376084

skipif mysql # not compatible
query I rowsort label-409
SELECT 84 - + ( + - 32 ) + + COUNT ( * ) * + MAX ( 95 ) * + 60 * - 66
----
-376084

query I rowsort
SELECT ALL 60 * - 95
----
-5700

query I rowsort
SELECT 54 * - - 63
----
3402

query II rowsort
SELECT - 78 AS col0, 78 col2
----
-78
78

query I rowsort
SELECT ALL 54 + 78
----
132

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

query I rowsort
SELECT 80 * 80
----
6400

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT COUNT( * ) * 40 * + 38 AS col1
----
1520

skipif mysql # not compatible
query I rowsort label-416
SELECT COUNT ( * ) * 40 * + 38 AS col1
----
1520

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

skipif mysql # not compatible
query I rowsort label-417
SELECT ALL 47 + + + COUNT ( * ) / + 45
----
47

query I rowsort
SELECT DISTINCT - 19 * - 88 * 22 * + 73 AS col2
----
2685232

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

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT DISTINCT - MIN( 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - MIN ( 63 ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT MIN( - 89 ) + - 70 AS col1
----
-159

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT MIN ( - 89 ) + - 70 AS col1
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT ALL - ( - MAX( - COALESCE ( + 81, + 4 ) ) ) + + 91 * - 58
----
-5359

skipif mysql # not compatible
query I rowsort label-422
SELECT ALL - ( - MAX ( - COALESCE ( + 81, + 4 ) ) ) + + 91 * - 58
----
-5359

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

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

query I rowsort
SELECT ALL 88 + + + 11 AS col0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-425
SELECT ALL COUNT( * ) DIV + + COALESCE ( - - 26, + - 97, + ( - 22 ) + + 92, - COALESCE ( + 72, 99, COUNT( * ) ) ) * - ( ( + ( - - 72 ) ) ) + + CAST( + + 19 AS SIGNED ) * 30
----
570

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL COUNT ( * ) / + + COALESCE ( - - 26, + - 97, + ( - 22 ) + + 92, - COALESCE ( + 72, 99, COUNT ( * ) ) ) * - ( ( + ( - - 72 ) ) ) + + CAST ( + + 19 AS INTEGER ) * 30
----
570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-426
SELECT + 98 * - - CAST( + + 47 AS SIGNED ) + - 98 AS col2
----
4508

skipif mysql # not compatible
query I rowsort label-426
SELECT + 98 * - - CAST ( + + 47 AS INTEGER ) + - 98 AS col2
----
4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-427
SELECT COALESCE ( + - 49, - 52 ) DIV + + COUNT( * ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-427
SELECT COALESCE ( + - 49, - 52 ) / + + COUNT ( * ) AS col1
----
-49

query I rowsort
SELECT DISTINCT - 51 * + 65
----
-3315

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-431
SELECT ALL + 32 * + ( + 28 ) AS col2, + 39 DIV 66 + + 88 AS col1
----
896
88

skipif mysql # not compatible
query II rowsort label-431
SELECT ALL + 32 * + ( + 28 ) AS col2, + 39 / 66 + + 88 AS col1
----
896
88

query I rowsort
SELECT ALL - 73 AS col2
----
-73

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT - 15 * - + 30 * + 70 * - 35 - + 72 + - 55 * + 17 / - 1 + - CAST( CASE + CAST( NULL AS SIGNED ) WHEN - + CASE - + 46 WHEN CASE + - 42 WHEN - - 37 THEN 97 * - + 46 * - 93 END * - - 6 + - 81 * - + COUNT( + 58 ) THEN + 21 * + - 39 + - 31 END THEN + AVG ( 87 ) * 30 / 81 * + 34 - + 74 WHEN - 72 THEN - COUNT( * ) WHEN - ( - 12 ) / 3 + 13 THEN MAX( 53 ) + - 61 * - COUNT( * ) ELSE NULL END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-434
SELECT - 15 * - + 30 * + 70 * - 35 - + 72 + - 55 * + 17 / - 1 + - CAST ( CASE + CAST ( NULL AS INTEGER ) WHEN - + CASE - + 46 WHEN CASE + - 42 WHEN - - 37 THEN 97 * - + 46 * - 93 END * - - 6 + - 81 * - + COUNT ( + 58 ) THEN + 21 * + - 39 + - 31 END THEN + AVG ( 87 ) * 30 / 81 * + 34 - + 74 WHEN - 72 THEN - COUNT ( * ) WHEN - ( - 12 ) / 3 + 13 THEN MAX ( 53 ) + - 61 * - COUNT ( * ) ELSE NULL END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT 53 + - - COALESCE ( 56, + + ( - - COUNT( * ) ) * + + MAX( + 90 ) * - + 22, - 82 + + 29 ) AS col2
----
109

skipif mysql # not compatible
query I rowsort label-435
SELECT 53 + - - COALESCE ( 56, + + ( - - COUNT ( * ) ) * + + MAX ( + 90 ) * - + 22, - 82 + + 29 ) AS col2
----
109

query I rowsort
SELECT ALL - + 98 AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT ( ( + + 18 ) ) * - CASE + COUNT( ALL - 51 ) WHEN - 26 * + 91 - 46 * + 84 + - 28 + + ( - 67 ) + + 67 THEN COALESCE ( + 19, - NULLIF ( + 2, - - 60 ) ) ELSE NULL END + + + 39 + - - 94 - + 4 + - 27 / + + 47 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-437
SELECT ( ( + + 18 ) ) * - CASE + COUNT ( ALL - 51 ) WHEN - 26 * + 91 - 46 * + 84 + - 28 + + ( - 67 ) + + 67 THEN COALESCE ( + 19, - NULLIF ( + 2, - - 60 ) ) ELSE NULL END + + + 39 + - - 94 - + 4 + - 27 / + + 47 col0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-438
SELECT + 42 / COUNT ( * ) + COUNT ( * ) AS col2
----
43

query II rowsort
SELECT + 81 * + - 69 + + 99, 34 AS col2
----
-5490
34

query I rowsort
SELECT - 10 AS col2
----
-10

query I rowsort
SELECT ALL + + 65 * 22 AS col1
----
1430

query I rowsort
SELECT DISTINCT + 22 * 69
----
1518

query I rowsort
SELECT 5 AS col2
----
5

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-445
SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST( NULL AS SIGNED ), + 73 ) DIV 9 col1
----
-23
84

skipif mysql # not compatible
query II rowsort label-445
SELECT - 23 AS col1, 92 + - COALESCE ( + + CAST ( NULL AS INTEGER ), + 73 ) / 9 col1
----
-23
84

query I rowsort
SELECT ALL - 32 + COALESCE ( 68, - - 24 )
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-447
SELECT - 60 + + - 38 DIV + - 21 AS col0
----
-59

skipif mysql # not compatible
query I rowsort label-447
SELECT - 60 + + - 38 / + - 21 AS col0
----
-59

query II rowsort
SELECT 56 AS col0, 86
----
56
86

query I rowsort
SELECT - ( + 69 ) + - 86 AS col2
----
-155

onlyif mysql # DIV for integer division: 
query I rowsort label-450
SELECT + 42 DIV + + 14 col1
----
3

skipif mysql # not compatible
query I rowsort label-450
SELECT + 42 / + + 14 col1
----
3

query I rowsort
SELECT DISTINCT + 60 + + - 18 AS col0
----
42

query II rowsort
SELECT - 33 AS col2, - 3
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT + 78 + - - 34 * - 95 - + COUNT( * )
----
-3153

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT + 78 + - - 34 * - 95 - + COUNT ( * )
----
-3153

query I rowsort
SELECT 42 col0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-455
SELECT ALL ( + ( 80 ) ) + - 47 + + 56 DIV + 28 AS col0, - 25 AS col0
----
35
-25

skipif mysql # not compatible
query II rowsort label-455
SELECT ALL ( + ( 80 ) ) + - 47 + + 56 / + 28 AS col0, - 25 AS col0
----
35
-25

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

skipif mysql # not compatible
query I rowsort label-456
SELECT - 6 + - + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-457
SELECT ALL CASE + 68 WHEN - 57 * + - MAX( DISTINCT + 72 ) + - COALESCE ( 32, + + COUNT( * ) ) THEN NULL ELSE - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL CASE + 68 WHEN - 57 * + - MAX ( DISTINCT + 72 ) + - COALESCE ( 32, + + COUNT ( * ) ) THEN NULL ELSE - COUNT ( * ) END
----
-1

query I rowsort
SELECT DISTINCT - 88 * - 58 * 71 AS col0
----
362384

query I rowsort
SELECT + 2 col1
----
2

query II rowsort
SELECT ( 5 ) AS col0, - 34 + 44
----
5
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-461
SELECT + CASE 42 WHEN COUNT( DISTINCT + 10 ) * 86 - + 51 THEN NULL ELSE - 42 * - - 3 + 40 - 74 * - - CAST( + + 78 AS SIGNED ) + + 90 + + + 39 END AS col0
----
-5729

skipif mysql # not compatible
query I rowsort label-461
SELECT + CASE 42 WHEN COUNT ( DISTINCT + 10 ) * 86 - + 51 THEN NULL ELSE - 42 * - - 3 + 40 - 74 * - - CAST ( + + 78 AS INTEGER ) + + 90 + + + 39 END AS col0
----
-5729

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT ALL COUNT( * ) * + NULLIF ( + COUNT( * ), + + 58 + + 62 - + 0 * 68 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL COUNT ( * ) * + NULLIF ( + COUNT ( * ), + + 58 + + 62 - + 0 * 68 ) AS col1
----
1

query I rowsort
SELECT - 46 * 77
----
-3542

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-465
SELECT ALL - - 56 * 30 - + CAST( - 59 AS SIGNED ) + 37
----
1776

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL - - 56 * 30 - + CAST ( - 59 AS INTEGER ) + 37
----
1776

onlyif mysql # aggregate syntax: 
query II rowsort label-466
SELECT ALL + 9 AS col1, - 97 * - - 80 + COUNT( * ) AS col0
----
9
-7759

skipif mysql # not compatible
query II rowsort label-466
SELECT ALL + 9 AS col1, - 97 * - - 80 + COUNT ( * ) AS col0
----
9
-7759

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT SUM( DISTINCT 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-468
SELECT SUM ( DISTINCT 54 ) col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-469
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, COALESCE ( + COUNT( * ), 40 - + 78 * 52 * + - 8, - NULLIF ( 6, - 77 * + 34 ) * + 59 * - 14 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-469
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COALESCE ( + COUNT ( * ), 40 - + 78 * 52 * + - 8, - NULLIF ( 6, - 77 * + 34 ) * + 59 * - 14 )
----
NULL
1

query II rowsort
SELECT ALL + - 46 AS col1, + 17 AS col1
----
-46
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-471
SELECT COALESCE ( 71, - 40 * - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ), + 85 ) AS col0
----
71

skipif mysql # not compatible
query I rowsort label-471
SELECT COALESCE ( 71, - 40 * - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ), + 85 ) AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-472
SELECT + + 89 DIV NULLIF ( - 93, + + COUNT( * ) * - 57 - - COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-472
SELECT + + 89 / NULLIF ( - 93, + + COUNT ( * ) * - 57 - - COUNT ( * ) ) col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT + + 84 * SUM( - 73 )
----
-6132

skipif mysql # not compatible
query I rowsort label-473
SELECT + + 84 * SUM ( - 73 )
----
-6132

query I rowsort
SELECT 15 * + 26 - - + 42
----
432

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT + COUNT( * ) * + COUNT( * ) + - 19 + + + 60 AS col2, ( + - COALESCE ( + 22, 71 ) )
----
42
-22

skipif mysql # not compatible
query II rowsort label-475
SELECT + COUNT ( * ) * + COUNT ( * ) + - 19 + + + 60 AS col2, ( + - COALESCE ( + 22, 71 ) )
----
42
-22

query I rowsort
SELECT ALL + 45 * - + 47 * - 45
----
95175

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

query I rowsort
SELECT ALL + 54 * 29
----
1566

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

query I rowsort
SELECT DISTINCT - 26 * + 90 AS col0
----
-2340

onlyif mysql # aggregate syntax: 
query I rowsort label-481
SELECT ALL - 73 * - - COUNT( DISTINCT 71 ) + + 69 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - 73 * - - COUNT ( DISTINCT 71 ) + + 69 AS col2
----
-4

onlyif mysql # DIV for integer division: 
query II rowsort label-482
SELECT ALL CASE - 89 WHEN 73 THEN NULL WHEN - 88 + + 55 * + 35 DIV - - 1 THEN - 19 * + 9 + 90 * - - 55 * - 99 END * - 72 * 17 + 72 * - + 69 * + 6 AS col2, + 78 + 14 + - ( 38 ) - - + 41 * COALESCE ( - 21, - 34 * - 10 ) DIV 98 col1
----
NULL
46

skipif mysql # not compatible
query II rowsort label-482
SELECT ALL CASE - 89 WHEN 73 THEN NULL WHEN - 88 + + 55 * + 35 / - - 1 THEN - 19 * + 9 + 90 * - - 55 * - 99 END * - 72 * 17 + 72 * - + 69 * + 6 AS col2, + 78 + 14 + - ( 38 ) - - + 41 * COALESCE ( - 21, - 34 * - 10 ) / 98 col1
----
NULL
46

query I rowsort
SELECT + - 8 * + - ( + 95 ) + 34 col2
----
794

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT - COALESCE ( - 34, 73, - + 99 * + SUM( ALL + CASE + 69 WHEN - 65 THEN 73 ELSE NULL END ) DIV + MAX( DISTINCT 81 ) * 4 + + 20 * + 54 ) AS col2
----
34

skipif mysql # not compatible
query I rowsort label-485
SELECT - COALESCE ( - 34, 73, - + 99 * + SUM ( ALL + CASE + 69 WHEN - 65 THEN 73 ELSE NULL END ) / + MAX ( DISTINCT 81 ) * 4 + + 20 * + 54 ) AS col2
----
34

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

query I rowsort
SELECT + 19 + ( - - 15 ) + - 41 * + 79 * 32 AS col2
----
-103614

onlyif mysql # aggregate syntax: 
query II rowsort label-488
SELECT - 42 + - 70, + NULLIF ( + 73, 15 + + 20 ) + - + COALESCE ( + + 93, 63, COUNT( * ) + + 21 ) AS col2
----
-112
-20

skipif mysql # not compatible
query II rowsort label-488
SELECT - 42 + - 70, + NULLIF ( + 73, 15 + + 20 ) + - + COALESCE ( + + 93, 63, COUNT ( * ) + + 21 ) AS col2
----
-112
-20

query I rowsort
SELECT 4 AS col1
----
4

query I rowsort
SELECT ALL 18 + 7 + 21 + - 1 * + + 81
----
-35

query I rowsort
SELECT ALL 77 + - + 77 + - + ( + ( 42 ) ) * - 45 - - 61 AS col0
----
1951

query II rowsort
SELECT ALL ( + 75 ), + 89 AS col1
----
75
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT ALL + NULLIF ( ( + + 4 ), - CAST( 73 AS SIGNED ) ) + - 92
----
-88

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + NULLIF ( ( + + 4 ), - CAST ( 73 AS INTEGER ) ) + - 92
----
-88

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-495
SELECT ALL ( 36 ) AS col1, 16 DIV + 77
----
36
0

skipif mysql # not compatible
query II rowsort label-495
SELECT ALL ( 36 ) AS col1, 16 / + 77
----
36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT - COUNT( * ) * + NULLIF ( ( + COUNT( * ) ), + 10 ) * + 61 + + - 11
----
-72

skipif mysql # not compatible
query I rowsort label-496
SELECT - COUNT ( * ) * + NULLIF ( ( + COUNT ( * ) ), + 10 ) * + 61 + + - 11
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-497
SELECT DISTINCT - NULLIF ( + 90, - - 74 ) DIV + 26 AS col1
----
-3

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - NULLIF ( + 90, - - 74 ) / + 26 AS col1
----
-3

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

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

query I rowsort
SELECT DISTINCT + 95
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-501
SELECT - + 56 * + COALESCE ( COUNT( * ), COALESCE ( - + 34, - 53 DIV + + 31 + - 64 * - 7 ) ) * 49 - + - 52 + 42 - - 50
----
-2600

skipif mysql # not compatible
query I rowsort label-501
SELECT - + 56 * + COALESCE ( COUNT ( * ), COALESCE ( - + 34, - 53 / + + 31 + - 64 * - 7 ) ) * 49 - + - 52 + 42 - - 50
----
-2600

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT CASE - COUNT( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-505
SELECT CASE - COUNT ( * ) WHEN - - 21 - + - ( + 31 ) THEN + ( 58 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT - + 60 * 70 * + MIN( 33 ) - - + 57
----
-138543

skipif mysql # not compatible
query I rowsort label-506
SELECT - + 60 * 70 * + MIN ( 33 ) - - + 57
----
-138543

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT ALL + - COUNT( DISTINCT + + 33 ) * - + 96 * 41 + - - ( 0 ) AS col1
----
3936

skipif mysql # not compatible
query I rowsort label-507
SELECT ALL + - COUNT ( DISTINCT + + 33 ) * - + 96 * 41 + - - ( 0 ) AS col1
----
3936

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT + 97 * + COUNT( * ) + - 26 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-508
SELECT + 97 * + COUNT ( * ) + - 26 AS col0
----
71

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-510
SELECT - ( 73 ) + COUNT( * ) + - ( + CAST( NULL AS SIGNED ) ) AS col0, 18 AS col0
----
NULL
18

skipif mysql # not compatible
query II rowsort label-510
SELECT - ( 73 ) + COUNT ( * ) + - ( + CAST ( NULL AS INTEGER ) ) AS col0, 18 AS col0
----
NULL
18

query I rowsort
SELECT + 0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT ALL + 48 / - CAST( NULL AS SIGNED ) + NULLIF ( - COUNT( * ), - 85 + MIN( ALL 47 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + 48 / - CAST ( NULL AS INTEGER ) + NULLIF ( - COUNT ( * ), - 85 + MIN ( ALL 47 ) ) AS col1
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-515
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-515
SELECT ALL + + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-516
SELECT ALL 23 DIV - - ( - 20 ) + - 64 + + 57
----
-8

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL 23 / - - ( - 20 ) + - 64 + + 57
----
-8

query I rowsort
SELECT ALL - 36 AS col2
----
-36

query I rowsort
SELECT DISTINCT 83 + + 67 AS col2
----
150

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

query I rowsort
SELECT 64 * 2 * - + 28
----
-3584

query I rowsort
SELECT + 63 AS col2
----
63

query I rowsort
SELECT - 66 AS col0
----
-66

query I rowsort
SELECT ALL 1 + - + 88 AS col0
----
-87

query II rowsort
SELECT - 21 AS col1, - 65 AS col1
----
-21
-65

query I rowsort
SELECT ALL 25 + + 26
----
51

query I rowsort
SELECT 81 col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT ALL 95 * CASE + + COUNT( * ) WHEN - + ( + + 11 ) THEN + 84 WHEN + 69 THEN COUNT( * ) + - 14 ELSE - 65 END * COUNT( * ) + + 62 AS col0
----
-6113

skipif mysql # not compatible
query I rowsort label-527
SELECT ALL 95 * CASE + + COUNT ( * ) WHEN - + ( + + 11 ) THEN + 84 WHEN + 69 THEN COUNT ( * ) + - 14 ELSE - 65 END * COUNT ( * ) + + 62 AS col0
----
-6113

onlyif mysql # aggregate syntax: 
query I rowsort label-528
SELECT ( - 67 ) - - MIN( ALL 56 ) col0
----
-11

skipif mysql # not compatible
query I rowsort label-528
SELECT ( - 67 ) - - MIN ( ALL 56 ) col0
----
-11

query II rowsort
SELECT - 30, + 30 AS col1
----
-30
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-530
SELECT ALL 89 - - 62 + CAST( NULL AS SIGNED ) AS col2, 45 + - 75 * + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-530
SELECT ALL 89 - - 62 + CAST ( NULL AS INTEGER ) AS col2, 45 + - 75 * + CAST ( NULL AS INTEGER )
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-531
SELECT ( + + COUNT ( * ) ) + + CAST ( COUNT ( * ) AS INTEGER ) + + 57
----
59

query I rowsort
SELECT 40 - 32 AS col0
----
8

query II rowsort
SELECT DISTINCT 46 col1, 55
----
46
55

onlyif mysql # DIV for integer division: 
query I rowsort label-534
SELECT ALL + 43 DIV - 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-534
SELECT ALL + 43 / - 96 AS col1
----
0

query I rowsort
SELECT 50 - 91 - - 29 * - 76
----
-2245

query I rowsort
SELECT ALL 88 - - 41
----
129

query II rowsort
SELECT - 52, - 43 AS col0
----
-52
-43

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-538
SELECT ALL 54 AS col1, - ( CAST( NULL AS DECIMAL ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-538
SELECT ALL 54 AS col1, - ( CAST ( NULL AS REAL ) ) AS col2
----
54
NULL

query I rowsort
SELECT 30 + + ( 98 )
----
128

query II rowsort
SELECT DISTINCT 56 AS col2, 38 * - 4
----
56
-152

query I rowsort
SELECT ALL 81 * 15
----
1215

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT ALL + COUNT( * ), COALESCE ( MIN( + 30 ), - + ( - - 95 ) + 46 + + + 81 - - + 72 * - COUNT( * ), - + 78 ) * 75 - - CASE + 58 WHEN + ( + NULLIF ( ( - - 52 ), + MIN( DISTINCT - 51 ) ) ) * - + 61 + - - 5 THEN NULL WHEN + - 20 + - 20 - + - 78 * - + 44 THEN - 86 ELSE NULL END AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-542
SELECT ALL + COUNT ( * ), COALESCE ( MIN ( + 30 ), - + ( - - 95 ) + 46 + + + 81 - - + 72 * - COUNT ( * ), - + 78 ) * 75 - - CASE + 58 WHEN + ( + NULLIF ( ( - - 52 ), + MIN ( DISTINCT - 51 ) ) ) * - + 61 + - - 5 THEN NULL WHEN + - 20 + - 20 - + - 78 * - + 44 THEN - 86 ELSE NULL END AS col2
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL + CAST( + 26 AS SIGNED ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-543
SELECT ALL + CAST ( + 26 AS INTEGER ) AS col2
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-544
SELECT + 2 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-544
SELECT + 2 / + 35
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-545
SELECT 59 + + + 5 * + 64 * + - CAST( NULL AS SIGNED ) + - + 49 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT 59 + + + 5 * + 64 * + - CAST ( NULL AS INTEGER ) + - + 49 col0
----
NULL

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

query II rowsort
SELECT + - 89 AS col0, + 24
----
-89
24

onlyif mysql # aggregate syntax: 
query II rowsort label-548
SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2
----
22
-3808

skipif mysql # not compatible
query II rowsort label-548
SELECT 22 AS col2, - 68 * - NULLIF ( - 56, + 30 + - 8 + - 10 + 95 * - NULLIF ( COUNT ( * ), 13 * - 45 ) / + - NULLIF ( 31, + 38 ) ) AS col2
----
22
-3808

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-549
SELECT + 22 AS col2, CAST( ( - SUM( + ( 36 ) ) ) AS SIGNED ) AS col2
----
22
-36

skipif mysql # not compatible
query II rowsort label-549
SELECT + 22 AS col2, CAST ( ( - SUM ( + ( 36 ) ) ) AS INTEGER ) AS col2
----
22
-36

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

skipif mysql # not compatible
query I rowsort label-550
SELECT ALL - ( - + COUNT ( * ) ) / 37 + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT ALL NULLIF ( 29, COUNT( * ) ) + - 38 AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL NULLIF ( 29, COUNT ( * ) ) + - 38 AS col0
----
-9

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

query I rowsort
SELECT ALL + ( 99 ) + + COALESCE ( + NULLIF ( 87, 84 ), + 43 ) AS col0
----
186

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT + NULLIF ( - CAST( NULL AS SIGNED ), 83 ) AS col1, ( - 29 )
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-554
SELECT + NULLIF ( - CAST ( NULL AS INTEGER ), 83 ) AS col1, ( - 29 )
----
NULL
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-555
SELECT ALL - MAX( + 31 ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL - MAX ( + 31 ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-556
SELECT ALL - + 91 + + 76 + COUNT( * ) * 66 * + 88 col0
----
5793

skipif mysql # not compatible
query I rowsort label-556
SELECT ALL - + 91 + + 76 + COUNT ( * ) * 66 * + 88 col0
----
5793

query I rowsort
SELECT DISTINCT 9 + + ( - NULLIF ( + 65, 44 ) )
----
-56

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL + SUM( + 85 ) + ( + 59 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL + SUM ( + 85 ) + ( + 59 ) AS col0
----
144

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

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

query I rowsort
SELECT ALL + + 91 + - 76 AS col0
----
15

query I rowsort
SELECT + 13 AS col2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT 87 * - - 71 * + 6 * - 95 * - 88 + + ( - + NULLIF ( - + NULLIF ( + 44, COUNT( * ) ), + - 41 ) ) - - + 29 - + NULLIF ( - 35, 89 * - - 72 / COUNT( * ) ) AS col1
----
309838428

skipif mysql # not compatible
query I rowsort label-563
SELECT 87 * - - 71 * + 6 * - 95 * - 88 + + ( - + NULLIF ( - + NULLIF ( + 44, COUNT ( * ) ), + - 41 ) ) - - + 29 - + NULLIF ( - 35, 89 * - - 72 / COUNT ( * ) ) AS col1
----
309838428

query II rowsort
SELECT 9 * 78, + 78 * - 37 - - + 45 AS col2
----
702
-2841

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT( * ) - + - 3 AS col2
----
1825
45

skipif mysql # not compatible
query II rowsort label-565
SELECT ALL - 73 * - 25 AS col2, 42 * + COUNT ( * ) - + - 3 AS col2
----
1825
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-566
SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST( + 87 AS SIGNED ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1
----
-103738

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - 91 * + ( - 12 ) * NULLIF ( + COALESCE ( - 95, + + 46 - + CAST ( + 87 AS INTEGER ), - ( - - 75 ), - 43, + 22 ), 21 ) + 2 AS col1
----
-103738

query I rowsort
SELECT DISTINCT - 60
----
-60

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

query I rowsort
SELECT ALL - 35 col2
----
-35

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

onlyif mysql # aggregate syntax: 
query II rowsort label-571
SELECT DISTINCT MIN( ALL - - 40 ), COUNT( * ) + - 86 AS col2
----
40
-85

skipif mysql # not compatible
query II rowsort label-571
SELECT DISTINCT MIN ( ALL - - 40 ), COUNT ( * ) + - 86 AS col2
----
40
-85

query II rowsort
SELECT 89 * - 56 * - 8 * 82, - 84 AS col2
----
3269504
-84

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-575
SELECT DISTINCT 83 DIV + 74
----
1

skipif mysql # not compatible
query I rowsort label-575
SELECT DISTINCT 83 / + 74
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-576
SELECT 8 + 44, + COUNT( * ) col0
----
52
1

skipif mysql # not compatible
query II rowsort label-576
SELECT 8 + 44, + COUNT ( * ) col0
----
52
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-577
SELECT COUNT( * ) DIV - 68, - CAST( + SUM( + 43 ) AS SIGNED ) + 33 + - 92 col1
----
0
-102

skipif mysql # not compatible
query II rowsort label-577
SELECT COUNT ( * ) / - 68, - CAST ( + SUM ( + 43 ) AS INTEGER ) + 33 + - 92 col1
----
0
-102

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

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

query I rowsort
SELECT 14 * - 46
----
-644

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT ALL - 38 DIV + - 94
----
0

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL - 38 / + - 94
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT ALL MIN( DISTINCT 45 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-581
SELECT ALL MIN ( DISTINCT 45 ) AS col0
----
45

query I rowsort
SELECT DISTINCT - 29 * - 37 AS col2
----
1073

query I rowsort
SELECT ALL 50 col1
----
50

query I rowsort
SELECT ALL 52 AS col2
----
52

query I rowsort
SELECT DISTINCT 40 * + - 13
----
-520

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

query I rowsort
SELECT ALL - 25
----
-25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 14 - NULLIF ( + COALESCE ( 13, - 82, - COUNT( * ) ), + - 83 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-589
SELECT 14 - NULLIF ( + COALESCE ( 13, - 82, - COUNT ( * ) ), + - 83 ) AS col2
----
1

query I rowsort
SELECT 73 * - 97 AS col0
----
-7081

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

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

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

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

query I rowsort
SELECT DISTINCT - 66 col0
----
-66

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-596
SELECT ALL 15 DIV - - 76 + ( 80 ) + + MIN( 40 ) col2
----
120

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL 15 / - - 76 + ( 80 ) + + MIN ( 40 ) col2
----
120

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT ALL 39 * + CAST( NULL AS SIGNED ) + - 85 + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-599
SELECT ALL 39 * + CAST ( NULL AS INTEGER ) + - 85 + 65 AS col2
----
NULL

query I rowsort
SELECT + 12 * + 24
----
288

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

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT + 43 * - 11 + 13 DIV + 44 * 95 + 66
----
-407

skipif mysql # not compatible
query I rowsort label-602
SELECT + 43 * - 11 + 13 / + 44 * 95 + 66
----
-407

query I rowsort
SELECT 55 col0
----
55

query II rowsort
SELECT ALL + CASE 72 WHEN + - 95 THEN 62 END AS col0, + 18 * 81 + - 95 + + 7
----
NULL
1370

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT + - MIN( DISTINCT - COALESCE ( - 81, + 37 + + + 20, + 97 ) ) * + ( - COUNT( * ) ) + 5 + - 97 + + + 6 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-605
SELECT + - MIN ( DISTINCT - COALESCE ( - 81, + 37 + + + 20, + 97 ) ) * + ( - COUNT ( * ) ) + 5 + - 97 + + + 6 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - - 24 * - 16 - + - COUNT( * )
----
-383

skipif mysql # not compatible
query I rowsort label-606
SELECT - - 24 * - 16 - + - COUNT ( * )
----
-383

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

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

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

query I rowsort
SELECT ALL - ( + 28 ) * - 85 AS col2
----
2380

query I rowsort
SELECT ALL - 54 * 89 - - 82 AS col0
----
-4724

query I rowsort
SELECT DISTINCT - 60 * + - 39
----
2340

query II rowsort
SELECT - 18 + - ( 50 ) AS col2, - 80 AS col0
----
-68
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-613
SELECT - 36 * + - CAST( - 87 AS SIGNED )
----
-3132

skipif mysql # not compatible
query I rowsort label-613
SELECT - 36 * + - CAST ( - 87 AS INTEGER )
----
-3132

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT ALL - COUNT( * ) * - CASE - 93 WHEN - 45 + + COUNT( + 60 ) THEN 26 WHEN + 51 THEN NULL ELSE + + 20 END
----
20

skipif mysql # not compatible
query I rowsort label-614
SELECT ALL - COUNT ( * ) * - CASE - 93 WHEN - 45 + + COUNT ( + 60 ) THEN 26 WHEN + 51 THEN NULL ELSE + + 20 END
----
20

query I rowsort
SELECT - 47 + + 43
----
-4

query I rowsort
SELECT DISTINCT - ( - 39 ) * + 99
----
3861

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - 43 * + 50 * - COUNT( * )
----
2150

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - 43 * + 50 * - COUNT ( * )
----
2150

query I rowsort
SELECT ALL 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-620
SELECT 44 AS col0, 95 * + COUNT( + 70 ) AS col1
----
44
95

skipif mysql # not compatible
query II rowsort label-620
SELECT 44 AS col0, 95 * + COUNT ( + 70 ) AS col1
----
44
95

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM( 38 ) + + - 36 AS col1
----
-13
-88

skipif mysql # not compatible
query II rowsort label-621
SELECT DISTINCT COALESCE ( - 13, - + 29 ) AS col1, - ( 14 ) - SUM ( 38 ) + + - 36 AS col1
----
-13
-88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-623
SELECT ALL 64 DIV - - COUNT( * ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL 64 / - - COUNT ( * ) AS col0
----
64

query I rowsort
SELECT + 70 * ( - 45 )
----
-3150

query I rowsort
SELECT ALL ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT - + ( - + ( ( + - 90 ) ) ) + - ( - ( + COUNT( * ) ) )
----
-89

skipif mysql # not compatible
query I rowsort label-626
SELECT - + ( - + ( ( + - 90 ) ) ) + - ( - ( + COUNT ( * ) ) )
----
-89

query I rowsort
SELECT 40 col2
----
40

query I rowsort
SELECT ALL + 62 + - 13 AS col0
----
49

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

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

query I rowsort
SELECT + + 81 + - 68 + 33 * COALESCE ( - + 53, + 24 ) + 2 * - 55 AS col1
----
-1846

query I rowsort
SELECT DISTINCT 1 col1
----
1

query I rowsort
SELECT ALL 4 * - 99
----
-396

query I rowsort
SELECT DISTINCT + 68 + 93 + - 99 AS col2
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-634
SELECT ALL 13 + - 55 + - - 19 + - - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL 13 + - 55 + - - 19 + - - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 57 + + 32 AS col0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-636
SELECT ALL + 35 + 42 DIV - + NULLIF ( - 14, 0 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-636
SELECT ALL + 35 + 42 / - + NULLIF ( - 14, 0 ) AS col0
----
38

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

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

query I rowsort
SELECT + - 55 * 37
----
-2035

query I rowsort
SELECT + - 49 * + 49 AS col0
----
-2401

query I rowsort
SELECT DISTINCT + + 49
----
49

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-643
SELECT - + 70 / - + 54 + MIN( - - CAST( NULL AS SIGNED ) ) * + - 48 * - CASE - 43 WHEN - COUNT( * ) + 93 THEN NULL ELSE CASE + + COUNT( * ) WHEN NULLIF ( 24, + 41 ) THEN 15 * - 28 + + + COUNT( * ) + 31 * 90 ELSE + + COUNT( * ) * COUNT( * ) / - 52 / + COUNT( * ) END END * - 97 / + + CAST( NULL AS SIGNED ) + COUNT( * ) + + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-643
SELECT - + 70 / - + 54 + MIN ( - - CAST ( NULL AS INTEGER ) ) * + - 48 * - CASE - 43 WHEN - COUNT ( * ) + 93 THEN NULL ELSE CASE + + COUNT ( * ) WHEN NULLIF ( 24, + 41 ) THEN 15 * - 28 + + + COUNT ( * ) + 31 * 90 ELSE + + COUNT ( * ) * COUNT ( * ) / - 52 / + COUNT ( * ) END END * - 97 / + + CAST ( NULL AS INTEGER ) + COUNT ( * ) + + 21
----
NULL

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

query I rowsort
SELECT + 46 * - 57 AS col1
----
-2622

query I rowsort
SELECT DISTINCT + - 15 col0
----
-15

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

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

query I rowsort
SELECT ALL 72 * 32
----
2304

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-651
SELECT ALL + 54, CAST( NULL AS SIGNED ) + + ( - NULLIF ( + 54, + 69 / - CAST( - 13 AS SIGNED ) + - 65 * - SUM( DISTINCT 24 ) ) ) AS col2
----
54
NULL

skipif mysql # not compatible
query II rowsort label-651
SELECT ALL + 54, CAST ( NULL AS INTEGER ) + + ( - NULLIF ( + 54, + 69 / - CAST ( - 13 AS INTEGER ) + - 65 * - SUM ( DISTINCT 24 ) ) ) AS col2
----
54
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-654
SELECT - 36 DIV - 65 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-654
SELECT - 36 / - 65 AS col0
----
0

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

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

query I rowsort
SELECT + 7 - - 97 AS col0
----
104

query I rowsort
SELECT ( 3 ) col1
----
3

query I rowsort
SELECT + 83 * + + 93 AS col2
----
7719

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT ALL + CAST( + 67 AS SIGNED ) / + CAST( - CASE - 24 WHEN + + 10 THEN - 95 WHEN + 41 THEN NULL END AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + CAST ( + 67 AS INTEGER ) / + CAST ( - CASE - 24 WHEN + + 10 THEN - 95 WHEN + 41 THEN NULL END AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - 0 DIV 83 DIV + + 63 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-660
SELECT - 0 / 83 / + + 63 AS col2
----
0

query II rowsort
SELECT ALL + 63 col1, 89
----
63
89

query II rowsort
SELECT + 38, 27 + - 78 col2
----
38
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-663
SELECT DISTINCT - 83 * CAST( + 35 AS SIGNED ) + + COALESCE ( + - 63, + - ( + - 96 ), - 40 * 11 ), + 43 + 59 + + - 21 * - 12 * + 14 col0
----
-2968
3630

skipif mysql # not compatible
query II rowsort label-663
SELECT DISTINCT - 83 * CAST ( + 35 AS INTEGER ) + + COALESCE ( + - 63, + - ( + - 96 ), - 40 * 11 ), + 43 + 59 + + - 21 * - 12 * + 14 col0
----
-2968
3630

query II rowsort
SELECT DISTINCT + 75, + 71 col1
----
75
71

query I rowsort
SELECT CASE - 68 WHEN - + 73 * + 76 THEN - - 87 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-666
SELECT COALESCE ( - 85, - 11 * + + NULLIF ( SUM( + + 90 ), - 79 ) + + - COUNT( * ) )
----
-85

skipif mysql # not compatible
query I rowsort label-666
SELECT COALESCE ( - 85, - 11 * + + NULLIF ( SUM ( + + 90 ), - 79 ) + + - COUNT ( * ) )
----
-85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT ALL + 1 * + 20 + 99 * + 91 + 61 * - MIN( + + 80 )
----
4149

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL + 1 * + 20 + 99 * + 91 + 61 * - MIN ( + + 80 )
----
4149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-670
SELECT ALL 92 * + + MAX( - 93 ) + + - 37 DIV + + 79
----
-8556

skipif mysql # not compatible
query I rowsort label-670
SELECT ALL 92 * + + MAX ( - 93 ) + + - 37 / + + 79
----
-8556

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT DISTINCT - COUNT( * ) * + - 42 + 47
----
89

skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - COUNT ( * ) * + - 42 + 47
----
89

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

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

query II rowsort
SELECT DISTINCT + 72 AS col2, 50 AS col1
----
72
50

query II rowsort
SELECT ALL - 46, - ( - 5 ) AS col1
----
-46
5

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-676
SELECT DISTINCT + - ( - MIN( 17 ) ) + CAST( + 35 AS SIGNED ) * + + 31 * - 50 + 30 - 25 AS col0
----
-54228

skipif mysql # not compatible
query I rowsort label-676
SELECT DISTINCT + - ( - MIN ( 17 ) ) + CAST ( + 35 AS INTEGER ) * + + 31 * - 50 + 30 - 25 AS col0
----
-54228

query I rowsort
SELECT ALL - 23 AS col2
----
-23

query I rowsort
SELECT 67 * - 14 col2
----
-938

onlyif mysql # aggregate syntax: 
query II rowsort label-679
SELECT + 80 - + 38, - COUNT( * ) col2
----
42
-1

skipif mysql # not compatible
query II rowsort label-679
SELECT + 80 - + 38, - COUNT ( * ) col2
----
42
-1

query I rowsort
SELECT 15 * - - 65 + - - 15
----
990

query I rowsort
SELECT - ( - 50 )
----
50

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

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

query I rowsort
SELECT ( - - 64 ) - - 28 * + 33 + + 5 + 61 + + 63 AS col0
----
1117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT - 7 + + NULLIF ( - + CAST( NULL AS SIGNED ), - 12 * - 5 - 13 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-684
SELECT - 7 + + NULLIF ( - + CAST ( NULL AS INTEGER ), - 12 * - 5 - 13 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-685
SELECT ALL 42 AS col1, 52 DIV + 11 AS col2
----
42
4

skipif mysql # not compatible
query II rowsort label-685
SELECT ALL 42 AS col1, 52 / + 11 AS col2
----
42
4

query I rowsort
SELECT DISTINCT 64 col1
----
64

query I rowsort
SELECT ALL 60 - + 54 + + + 30 + + + ( + 65 ) AS col0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-688
SELECT DISTINCT + 12 * - 62 + - NULLIF ( + - 66, - - 83 ) + + - MAX( - 40 ) + + + 67 + + 42 * - 21 * 32 / - - CASE + CAST( + 78 AS SIGNED ) WHEN - COUNT( * ) THEN + - 45 ELSE NULL END + + ( + + 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT + 12 * - 62 + - NULLIF ( + - 66, - - 83 ) + + - MAX ( - 40 ) + + + 67 + + 42 * - 21 * 32 / - - CASE + CAST ( + 78 AS INTEGER ) WHEN - COUNT ( * ) THEN + - 45 ELSE NULL END + + ( + + 47 )
----
NULL

query I rowsort
SELECT DISTINCT + 96 * 61 AS col2
----
5856

query II rowsort
SELECT ALL - - 87 AS col2, - 50
----
87
-50

query I rowsort
SELECT ALL - 63 - - - ( + ( - 26 ) ) AS col0
----
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT NULLIF ( - + 1, 78 * + 42 * ( + 88 ) * - + MAX( - 35 ) / 43 * - + COUNT( * ) ) + - - COUNT( * ) + - 93 * - 37 AS col0
----
3441

skipif mysql # not compatible
query I rowsort label-693
SELECT NULLIF ( - + 1, 78 * + 42 * ( + 88 ) * - + MAX ( - 35 ) / 43 * - + COUNT ( * ) ) + - - COUNT ( * ) + - 93 * - 37 AS col0
----
3441

query I rowsort
SELECT 89 * - + 72
----
-6408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT COALESCE ( + + 88, + 0 * 3 ) * COALESCE ( - 0, - + 19 * 82 + + - ( - 35 ) / - 30 * - + COUNT( * ) ) - - - CASE + CAST( NULL AS SIGNED ) WHEN - ( + 57 ) THEN - 46 * - ( - 85 ) END * - 49 - + - 75 + 68 * + COUNT( * ) / MAX( + - 49 ) + + + NULLIF ( + - 86, + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT COALESCE ( + + 88, + 0 * 3 ) * COALESCE ( - 0, - + 19 * 82 + + - ( - 35 ) / - 30 * - + COUNT ( * ) ) - - - CASE + CAST ( NULL AS INTEGER ) WHEN - ( + 57 ) THEN - 46 * - ( - 85 ) END * - 49 - + - 75 + 68 * + COUNT ( * ) / MAX ( + - 49 ) + + + NULLIF ( + - 86, + 84 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT COUNT( + 44 ) * + 0 + - - 48 AS col0
----
48

skipif mysql # not compatible
query I rowsort label-697
SELECT COUNT ( + 44 ) * + 0 + - - 48 AS col0
----
48

query I rowsort
SELECT 18 + 83 AS col2
----
101

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-700
SELECT DISTINCT CAST( - 83 AS SIGNED ) * 8
----
-664

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT CAST ( - 83 AS INTEGER ) * 8
----
-664

query I rowsort
SELECT ALL + 79 + - 93 + - 13
----
-27

query I rowsort
SELECT ALL - 25 + 59
----
34

query I rowsort
SELECT ALL - 79 AS col2
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-704
SELECT + 63 * 29 + + CAST( - - 86 AS SIGNED ) AS col2
----
1913

skipif mysql # not compatible
query I rowsort label-704
SELECT + 63 * 29 + + CAST ( - - 86 AS INTEGER ) AS col2
----
1913

query I rowsort
SELECT ALL NULLIF ( + 39, + 21 ) + + + 70 + - + 56 - 70 AS col1
----
-17

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-707
SELECT 78 + - 72 DIV + COUNT( * ) col2
----
6

skipif mysql # not compatible
query I rowsort label-707
SELECT 78 + - 72 / + COUNT ( * ) col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-708
SELECT ALL 16 + 55 * - 78 + - - CAST( NULL AS SIGNED ) - - COUNT( * ) + - ( 90 ) + - COUNT( * ) + COUNT( DISTINCT + 84 ), 59 * - CASE - COUNT( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT( * ), 6 ) + 58 * + COUNT( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - COUNT( DISTINCT + 36 ) / - ( 24 ) + - COUNT( * ) THEN + 38 END AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-708
SELECT ALL 16 + 55 * - 78 + - - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + - ( 90 ) + - COUNT ( * ) + COUNT ( DISTINCT + 84 ), 59 * - CASE - COUNT ( * ) WHEN + 80 + COALESCE ( + 15, + COALESCE ( - + COUNT ( * ), 6 ) + 58 * + COUNT ( * ) * - 77 * 0 * + 46, - 29 ) * - - ( + AVG ( DISTINCT 4 ) ) * - COUNT ( DISTINCT + 36 ) / - ( 24 ) + - COUNT ( * ) THEN + 38 END AS col2
----
NULL
NULL

query I rowsort
SELECT + 19 col0
----
19

query I rowsort
SELECT ALL - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT 63 + 38 AS col0
----
101

query II rowsort
SELECT DISTINCT + 43 + 22 AS col2, - 92 + - 78 * 28 * - 51
----
65
111292

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

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

query I rowsort
SELECT + 12 + - + 29
----
-17

query I rowsort
SELECT DISTINCT 81 - - - 86
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-716
SELECT CASE - MAX( + 8 ) WHEN - - 57 * - CAST( NULL AS SIGNED ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST( - 83 AS SIGNED ) WHEN + 77 THEN NULL END + - 17 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-716
SELECT CASE - MAX ( + 8 ) WHEN - - 57 * - CAST ( NULL AS INTEGER ) THEN + 36 * 73 * + 94 + 44 + + 45 + - 2 - CAST ( - 83 AS INTEGER ) WHEN + 77 THEN NULL END + - 17 col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-717
SELECT - CAST( - 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-717
SELECT - CAST ( - 85 AS INTEGER )
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( * ) * + - 83 + - - 9 * 40 col2
----
277

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( * ) * + - 83 + - - 9 * 40 col2
----
277

onlyif mysql # aggregate syntax: 
query I rowsort label-721
SELECT - MIN( ALL - + ( + 66 ) ) * - COUNT( * )
----
-66

skipif mysql # not compatible
query I rowsort label-721
SELECT - MIN ( ALL - + ( + 66 ) ) * - COUNT ( * )
----
-66

query I rowsort
SELECT - 61 - - 85 + + 83
----
107

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

skipif mysql # not compatible
query I rowsort label-723
SELECT DISTINCT + - 20 - CAST ( NULL AS INTEGER ) - 73
----
NULL

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

query I rowsort
SELECT - + 7
----
-7

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-727
SELECT - COUNT( * ) * + - 44, + 95 - - 21 * 57 DIV + 95 AS col0
----
44
107

skipif mysql # not compatible
query II rowsort label-727
SELECT - COUNT ( * ) * + - 44, + 95 - - 21 * 57 / + 95 AS col0
----
44
107

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

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

query II rowsort
SELECT + 28 + 31 AS col1, + 22 - + 53 AS col0
----
59
-31

query I rowsort
SELECT ALL + 67 * - 55 * - - 61 * 24 + 2 AS col0
----
-5394838

onlyif mysql # aggregate syntax: 
query II rowsort label-731
SELECT ALL + SUM( + 7 ), + 52 * 80 col1
----
7
4160

skipif mysql # not compatible
query II rowsort label-731
SELECT ALL + SUM ( + 7 ), + 52 * 80 col1
----
7
4160

onlyif mysql # aggregate syntax: 
query I rowsort label-732
SELECT NULLIF ( - COUNT( * ), 10 * - + 23 ) + + + 21 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-732
SELECT NULLIF ( - COUNT ( * ), 10 * - + 23 ) + + + 21 AS col2
----
20

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

query I rowsort
SELECT ALL 88 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT + MAX( DISTINCT - + 92 ) * - 8 AS col1
----
736

skipif mysql # not compatible
query I rowsort label-735
SELECT + MAX ( DISTINCT - + 92 ) * - 8 AS col1
----
736

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT + 55 + - ( ( - MIN( - 21 ) ) )
----
34

skipif mysql # not compatible
query I rowsort label-736
SELECT + 55 + - ( ( - MIN ( - 21 ) ) )
----
34

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT 7 DIV - MAX( DISTINCT 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT 7 / - MAX ( DISTINCT 94 ) AS col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-739
SELECT 15 DIV 60 * - MIN( ALL - 14 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-739
SELECT 15 / 60 * - MIN ( ALL - 14 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT DISTINCT - 78 * 5 + - + 95 + 92 * + + 44 * MIN( ALL + 39 ) + - MAX( ALL - + 74 ) - - SUM( - 67 ) + 58 AS col2
----
157452

skipif mysql # not compatible
query I rowsort label-740
SELECT DISTINCT - 78 * 5 + - + 95 + 92 * + + 44 * MIN ( ALL + 39 ) + - MAX ( ALL - + 74 ) - - SUM ( - 67 ) + 58 AS col2
----
157452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-741
SELECT ALL + 95 * - 58 + + 40 * CAST( NULL AS SIGNED ) + - 42 + 86 AS col0, 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-741
SELECT ALL + 95 * - 58 + + 40 * CAST ( NULL AS INTEGER ) + - 42 + 86 AS col0, 83 AS col1
----
NULL
83

query I rowsort
SELECT DISTINCT 54 * - 98
----
-5292

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT 27 DIV - ( 70 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-743
SELECT 27 / - ( 70 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-744
SELECT ALL - ( + 6 ) * + - CAST( NULL AS SIGNED ) / + CAST( + MAX( 96 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-744
SELECT ALL - ( + 6 ) * + - CAST ( NULL AS INTEGER ) / + CAST ( + MAX ( 96 ) AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT SUM( - 35 ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-745
SELECT SUM ( - 35 ) AS col2
----
-35

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

skipif mysql # not compatible
query I rowsort label-746
SELECT MAX ( ALL 68 )
----
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL - 29 * + 39 + - COUNT( * ) * 59
----
-1190

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL - 29 * + 39 + - COUNT ( * ) * 59
----
-1190

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT COUNT( * ) - + 65 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( * ) - + 65 AS col2
----
-64

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT 43 - + 75 DIV + 18
----
39

skipif mysql # not compatible
query I rowsort label-751
SELECT 43 - + 75 / + 18
----
39

query II rowsort
SELECT DISTINCT - 17 AS col0, + 91 AS col0
----
-17
91

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT ALL - ( + 55 ) + + COUNT( * ) - + - 9
----
-45

skipif mysql # not compatible
query I rowsort label-753
SELECT ALL - ( + 55 ) + + COUNT ( * ) - + - 9
----
-45

query I rowsort
SELECT DISTINCT + 26
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-755
SELECT ALL + COUNT( * ) AS col0, + 54 * + - 60 + COALESCE ( - 99, + 92, - SUM( DISTINCT + 90 ) ) - - 58 col1
----
1
-3281

skipif mysql # not compatible
query II rowsort label-755
SELECT ALL + COUNT ( * ) AS col0, + 54 * + - 60 + COALESCE ( - 99, + 92, - SUM ( DISTINCT + 90 ) ) - - 58 col1
----
1
-3281

query I rowsort
SELECT + 76 * - 55 + 91
----
-4089

onlyif mysql # aggregate syntax: 
query II rowsort label-757
SELECT + + 44 - - + 23 - + + 23 * - ( COUNT( DISTINCT - 70 ) ) AS col1, 67
----
90
67

skipif mysql # not compatible
query II rowsort label-757
SELECT + + 44 - - + 23 - + + 23 * - ( COUNT ( DISTINCT - 70 ) ) AS col1, 67
----
90
67

query I rowsort
SELECT ALL + NULLIF ( + 52, - NULLIF ( 71, - 5 ) * + 37 ) * - 23
----
-1196

query I rowsort
SELECT + 40 * - 5 * - + 88 + 18 * 12 AS col1
----
17816

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT + 9 AS col2, - COALESCE ( + 12, + + 19 ) + + 45 * + + COUNT( + - 92 )
----
9
33

skipif mysql # not compatible
query II rowsort label-760
SELECT + 9 AS col2, - COALESCE ( + 12, + + 19 ) + + 45 * + + COUNT ( + - 92 )
----
9
33

query I rowsort
SELECT ALL 79 * 14
----
1106

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ALL MIN( ALL 40 )
----
40

skipif mysql # not compatible
query I rowsort label-762
SELECT ALL MIN ( ALL 40 )
----
40

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

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT - 36 * - 3 + - 93 + - + 63 DIV - 1 AS col1
----
78

skipif mysql # not compatible
query I rowsort label-764
SELECT - 36 * - 3 + - 93 + - + 63 / - 1 AS col1
----
78

query I rowsort
SELECT - NULLIF ( - + 96, - - ( + - 0 ) * - 53 )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT - - COUNT( - - 51 ) + 54 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-766
SELECT - - COUNT ( - - 51 ) + 54 AS col1
----
55

query II rowsort
SELECT DISTINCT + 56 - + 80 * 54, 31 AS col2
----
-4264
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT DISTINCT 55 * + CAST( NULL AS SIGNED ) * - ( + 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT 55 * + CAST ( NULL AS INTEGER ) * - ( + 79 )
----
NULL

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

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

query II rowsort
SELECT DISTINCT - 96 col0, - 61
----
-96
-61

query I rowsort
SELECT - + 99
----
-99

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

query I rowsort
SELECT + 83 * - - 35 AS col2
----
2905

query I rowsort
SELECT - 53 * - + 64
----
3392

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL - 71 + - MAX( ALL - ( - 67 ) ) + - 79 AS col2
----
-217

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL - 71 + - MAX ( ALL - ( - 67 ) ) + - 79 AS col2
----
-217

query I rowsort
SELECT 63 AS col1
----
63

query I rowsort
SELECT + 7 + - - 87
----
94

query I rowsort
SELECT ALL - ( 75 ) * + + ( + 13 ) + - 61
----
-1036

query I rowsort
SELECT ALL 89 + - - NULLIF ( + - 78, - - 87 ) AS col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT DISTINCT COUNT( * ) + - - 27 + - 57
----
-29

skipif mysql # not compatible
query I rowsort label-781
SELECT DISTINCT COUNT ( * ) + - - 27 + - 57
----
-29

query I rowsort
SELECT ALL + ( 8 ) + COALESCE ( 41, - 47 ) AS col2
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT ALL - COUNT( ALL + 35 ) * - 86 * + 71
----
6106

skipif mysql # not compatible
query I rowsort label-784
SELECT ALL - COUNT ( ALL + 35 ) * - 86 * + 71
----
6106

onlyif mysql # DIV for integer division: 
query I rowsort label-785
SELECT 25 DIV 50 - + - 26 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-785
SELECT 25 / 50 - + - 26 AS col1
----
26

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

onlyif mysql # aggregate syntax: 
query II rowsort label-787
SELECT - COUNT( * ) + COUNT( * ), + 97 AS col0
----
0
97

skipif mysql # not compatible
query II rowsort label-787
SELECT - COUNT ( * ) + COUNT ( * ), + 97 AS col0
----
0
97

query I rowsort
SELECT ( 89 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT + MIN( - 38 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-789
SELECT + MIN ( - 38 ) AS col1
----
-38

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

skipif mysql # not compatible
query I rowsort label-790
SELECT ( - SUM ( + 37 ) )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL - 85 * 37 * - 20 + - 79 * + NULLIF ( - - MIN( DISTINCT - 6 ), - 81 * 51 )
----
63374

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL - 85 * 37 * - 20 + - 79 * + NULLIF ( - - MIN ( DISTINCT - 6 ), - 81 * 51 )
----
63374

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT 25 * 93 + 33 * + + COUNT( * ) * + 96
----
5493

skipif mysql # not compatible
query I rowsort label-792
SELECT 25 * 93 + 33 * + + COUNT ( * ) * + 96
----
5493

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT ALL - 53 DIV - - 72 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-793
SELECT ALL - 53 / - - 72 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-794
SELECT - ( - 31 ) DIV + 22 + - 97 + 39
----
-57

skipif mysql # not compatible
query I rowsort label-794
SELECT - ( - 31 ) / + 22 + - 97 + 39
----
-57

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

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

query I rowsort
SELECT ALL + NULLIF ( + 24, + 45 ) * ( - 59 ) - - 67 + 46 AS col1
----
-1303

query II rowsort
SELECT DISTINCT + ( + 65 ) AS col0, + 43 + 83 AS col0
----
65
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-798
SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-163
-43

skipif mysql # not compatible
query II rowsort label-798
SELECT - 64 + - 14 + + ( - 85 ), - 44 + + + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-163
-43

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-800
SELECT ALL + CAST( NULL AS SIGNED ) * - 19 * - ( - + 80 ) - + 55 - + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-800
SELECT ALL + CAST ( NULL AS INTEGER ) * - 19 * - ( - + 80 ) - + 55 - + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - 38 * + - ( - 58 ) - - + MAX( ALL + 75 )
----
-2129

skipif mysql # not compatible
query I rowsort label-801
SELECT - 38 * + - ( - 58 ) - - + MAX ( ALL + 75 )
----
-2129

query I rowsort
SELECT + COALESCE ( 10, 93 )
----
10

query I rowsort
SELECT - - 71 + + + 43 AS col2
----
114

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-805
SELECT - + ( - 32 ) + COUNT( * ) col2
----
33

skipif mysql # not compatible
query I rowsort label-805
SELECT - + ( - 32 ) + COUNT ( * ) col2
----
33

query I rowsort
SELECT + - 14 AS col2
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT COUNT( * ) * - - 40 * + 25 + 50 + ( 0 )
----
1050

skipif mysql # not compatible
query I rowsort label-807
SELECT COUNT ( * ) * - - 40 * + 25 + 50 + ( 0 )
----
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT ALL - NULLIF ( - 75, + - 31 * + 9 * + 17 + - + COUNT( * ) + + ( - 96 ) * - - 57 )
----
75

skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - NULLIF ( - 75, + - 31 * + 9 * + 17 + - + COUNT ( * ) + + ( - 96 ) * - - 57 )
----
75

query I rowsort
SELECT + 88 AS col2
----
88

query I rowsort
SELECT DISTINCT + 65 AS col2
----
65

query I rowsort
SELECT ALL - 80 col0
----
-80

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

query I rowsort
SELECT - 89 AS col0
----
-89

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

query I rowsort
SELECT + 23 + - + 62 * 20 - + + 54 AS col1
----
-1271

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

skipif mysql # not compatible
query I rowsort label-816
SELECT + + 6 / - + 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT + + SUM( ALL 80 ) + 77 AS col1
----
157

skipif mysql # not compatible
query I rowsort label-817
SELECT + + SUM ( ALL 80 ) + 77 AS col1
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT + - SUM( + 8 ) - - 97 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-818
SELECT + - SUM ( + 8 ) - - 97 AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT 15 * + - 93 * + + ( - COUNT( * ) ) - + - SUM( DISTINCT + NULLIF ( + 35, + + 65 ) )
----
1430

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT 15 * + - 93 * + + ( - COUNT ( * ) ) - + - SUM ( DISTINCT + NULLIF ( + 35, + + 65 ) )
----
1430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT ALL - 26 + - CAST( + + COUNT( * ) AS SIGNED ) * 99 * + COUNT( * ) * - 6 AS col1
----
568

skipif mysql # not compatible
query I rowsort label-820
SELECT ALL - 26 + - CAST ( + + COUNT ( * ) AS INTEGER ) * 99 * + COUNT ( * ) * - 6 AS col1
----
568

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-821
SELECT + - CAST( NULL AS DECIMAL ) + - + 6 + - + 69 + - 68
----
NULL

skipif mysql # not compatible
query I rowsort label-821
SELECT + - CAST ( NULL AS REAL ) + - + 6 + - + 69 + - 68
----
NULL

query I rowsort
SELECT ALL + 15 + 1 - - 34 * + 34 * + 99 AS col1
----
114460

query I rowsort
SELECT ALL + ( NULLIF ( - + 79, 32 + ( - - 19 ) ) )
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT + 84 DIV 16
----
5

skipif mysql # not compatible
query I rowsort label-824
SELECT + 84 / 16
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-825
SELECT ALL COUNT( + 97 ) + - 6 AS col0, + COUNT( * ) DIV + + COUNT( * ) AS col1
----
-5
1

skipif mysql # not compatible
query II rowsort label-825
SELECT ALL COUNT ( + 97 ) + - 6 AS col0, + COUNT ( * ) / + + COUNT ( * ) AS col1
----
-5
1

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

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

query I rowsort
SELECT ALL - ( + 31 ) + + + 15
----
-16

query I rowsort
SELECT + 78 + - - 82 AS col1
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-830
SELECT DISTINCT 1 + - NULLIF ( 15, ( - + 43 ) ) col0, SUM( DISTINCT - 49 ) * + - COUNT( * ) * NULLIF ( - 96, - 18 )
----
-14
-4704

skipif mysql # not compatible
query II rowsort label-830
SELECT DISTINCT 1 + - NULLIF ( 15, ( - + 43 ) ) col0, SUM ( DISTINCT - 49 ) * + - COUNT ( * ) * NULLIF ( - 96, - 18 )
----
-14
-4704

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

query I rowsort
SELECT - 30 + - - 31
----
1

query I rowsort
SELECT ALL 36 + 92 * + 21 AS col0
----
1968

query I rowsort
SELECT DISTINCT - 75 + 24 AS col0
----
-51

query I rowsort
SELECT ALL - 66 * + 1
----
-66

query I rowsort
SELECT + 87 AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - SUM( - 32 )
----
32

skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - SUM ( - 32 )
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT + 90 col0, COALESCE ( + + 23, + 63 * COUNT( * ) * - - 54 - 36 )
----
90
23

skipif mysql # not compatible
query II rowsort label-838
SELECT + 90 col0, COALESCE ( + + 23, + 63 * COUNT ( * ) * - - 54 - 36 )
----
90
23

onlyif mysql # aggregate syntax: 
query I rowsort label-839
SELECT ALL - COUNT( - 19 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL - COUNT ( - 19 ) AS col1
----
-1

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

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

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

query I rowsort
SELECT ALL 70 * - 52
----
-3640

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-844
SELECT 84 + - + CAST( NULL AS SIGNED ) - + - CAST( ( 38 ) AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT 84 + - + CAST ( NULL AS INTEGER ) - + - CAST ( ( 38 ) AS REAL ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 19 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT + 91 * - CASE + 18 WHEN + + SUM( ALL 57 ) THEN - + 24 * + + 50 + 45 - 62 + - CASE + + 58 WHEN + COUNT( * ) * - 36 * + 95 * + 71 + 36 THEN NULL ELSE - + 48 END * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-846
SELECT + 91 * - CASE + 18 WHEN + + SUM ( ALL 57 ) THEN - + 24 * + + 50 + 45 - 62 + - CASE + + 58 WHEN + COUNT ( * ) * - 36 * + 95 * + 71 + 36 THEN NULL ELSE - + 48 END * - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT 36 - + 70 AS col2
----
-34

query II rowsort
SELECT + COALESCE ( - 89, 81 ) - + 90 + - 52 AS col0, 89 AS col1
----
-231
89

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

skipif mysql # not compatible
query I rowsort label-849
SELECT DISTINCT + COUNT ( * ) / - - 66 col2
----
0

query I rowsort
SELECT ALL - - 41 AS col2
----
41

query I rowsort
SELECT DISTINCT - 48 * 31 AS col2
----
-1488

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

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT 36 * + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-853
SELECT 36 * + COUNT ( * ) AS col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-854
SELECT DISTINCT + CASE + CAST( NULL AS SIGNED ) WHEN 22 + 80 - COUNT( * ) - 23 + - 33 / ( - 12 ) * 42 - + ( - 90 ) THEN + 59 WHEN - + AVG ( + + 79 ) THEN NULL END + - COUNT( DISTINCT - 21 ) + - 40 + + + 68 + CASE CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN NULL WHEN COUNT( * ) THEN + - 31 + - CAST( 91 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT + CASE + CAST ( NULL AS INTEGER ) WHEN 22 + 80 - COUNT ( * ) - 23 + - 33 / ( - 12 ) * 42 - + ( - 90 ) THEN + 59 WHEN - + AVG ( + + 79 ) THEN NULL END + - COUNT ( DISTINCT - 21 ) + - 40 + + + 68 + CASE CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN NULL WHEN COUNT ( * ) THEN + - 31 + - CAST ( 91 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT + 38 * + 44 * 7 AS col0
----
11704

query I rowsort
SELECT + ( - - 98 ) * 77
----
7546

query I rowsort
SELECT ALL - - 33 + 90 * + 48 + + 78
----
4431

onlyif mysql # aggregate syntax: 
query I rowsort label-858
SELECT DISTINCT - CASE - + 87 WHEN COALESCE ( - - COUNT( * ), - - 5, - 41 ) THEN + + 88 ELSE - + 37 * - 4 END * 75 - + 39 AS col2
----
-11139

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT - CASE - + 87 WHEN COALESCE ( - - COUNT ( * ), - - 5, - 41 ) THEN + + 88 ELSE - + 37 * - 4 END * 75 - + 39 AS col2
----
-11139

query I rowsort
SELECT + 65 + + - 34 * 97
----
-3233

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

onlyif mysql # aggregate syntax: 
query II rowsort label-861
SELECT ALL - 44 + 27 + + COUNT( * ) AS col0, ( - 31 ) AS col0
----
-16
-31

skipif mysql # not compatible
query II rowsort label-861
SELECT ALL - 44 + 27 + + COUNT ( * ) AS col0, ( - 31 ) AS col0
----
-16
-31

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

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

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

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

query I rowsort
SELECT ALL 54 col1
----
54

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

skipif mysql # not compatible
query I rowsort label-865
SELECT COUNT ( * ) * - - 3
----
3

query II rowsort
SELECT - 7, 15 AS col0
----
-7
15

onlyif mysql # aggregate syntax: 
query II rowsort label-867
SELECT ALL 8 AS col1, + 97 + 49 + + 71 + - + 60 * - - COUNT( * ) AS col0
----
8
157

skipif mysql # not compatible
query II rowsort label-867
SELECT ALL 8 AS col1, + 97 + 49 + + 71 + - + 60 * - - COUNT ( * ) AS col0
----
8
157

query II rowsort
SELECT - 10, 5 AS col1
----
-10
5

query I rowsort
SELECT ALL 60 + + + 82
----
142

query III rowsort
SELECT 76 AS col2, 95 AS col1, - 11 AS col1
----
76
95
-11

query I rowsort
SELECT ALL ( - 92 ) + NULLIF ( - - 5, + 27 )
----
-87

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-873
SELECT ALL 75, + 12 DIV - CAST( - ( + 42 ) AS SIGNED ) * + + 84 AS col1
----
75
0

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL 75, + 12 / - CAST ( - ( + 42 ) AS INTEGER ) * + + 84 AS col1
----
75
0

query I rowsort
SELECT ALL + 62 - - 65 + + - 41 + + 78
----
164

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

query I rowsort
SELECT 52 + + COALESCE ( + 91, 66 ) AS col2
----
143

onlyif mysql # aggregate syntax: 
query II rowsort label-877
SELECT 75, - COUNT( + 59 ) AS col2
----
75
-1

skipif mysql # not compatible
query II rowsort label-877
SELECT 75, - COUNT ( + 59 ) AS col2
----
75
-1

query II rowsort
SELECT ALL 86 AS col1, 81
----
86
81

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-880
SELECT ALL + COUNT( - 9 ) DIV - 53
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT ALL + COUNT ( - 9 ) / - 53
----
0

query I rowsort
SELECT 49 * - ( - 58 ) col1
----
2842

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

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

query I rowsort
SELECT 87 + + + 49 + - - 38 + - ( - - 54 ) * 7
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-884
SELECT ALL 22 DIV + - 83
----
0

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 22 / + - 83
----
0

query I rowsort
SELECT + 2 * - 95 + + 51
----
-139

query I rowsort
SELECT 15 AS col1
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-887
SELECT ALL CAST( + - 43 AS SIGNED ) * - - MIN( - 39 )
----
1677

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL CAST ( + - 43 AS INTEGER ) * - - MIN ( - 39 )
----
1677

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

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

query I rowsort
SELECT 51 + 33
----
84

query II rowsort
SELECT + - 82, + 6 AS col2
----
-82
6

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT - ( 41 ) + ( - - COUNT( * ) )
----
-40

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

query I rowsort
SELECT ALL + + 11 * 80 AS col1
----
880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-893
SELECT DISTINCT - 99 AS col0, 4 * - NULLIF ( + ( + MIN( ALL CAST( + 20 AS SIGNED ) ) ), - - 80 * + COUNT( * ) ) AS col2, 37
----
-99
-80
37

skipif mysql # not compatible
query III rowsort label-893
SELECT DISTINCT - 99 AS col0, 4 * - NULLIF ( + ( + MIN ( ALL CAST ( + 20 AS INTEGER ) ) ), - - 80 * + COUNT ( * ) ) AS col2, 37
----
-99
-80
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT + 15 * - NULLIF ( + + 84, - ( - - 12 ) ) + ( - 58 ) * + ( - NULLIF ( + 5, CAST( + 71 AS SIGNED ) ) )
----
-970

skipif mysql # not compatible
query I rowsort label-894
SELECT + 15 * - NULLIF ( + + 84, - ( - - 12 ) ) + ( - 58 ) * + ( - NULLIF ( + 5, CAST ( + 71 AS INTEGER ) ) )
----
-970

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

query I rowsort
SELECT 51 * - 44 AS col2
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT + COUNT( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + 57 * CASE + 74 WHEN 2 THEN NULL WHEN + - 98 + + 51 THEN 5 * SUM( - ( + 70 ) ) + + 81 ELSE NULL END + + NULLIF ( - 15, + 77 ) ) ) )
----
-44

skipif mysql # not compatible
query I rowsort label-897
SELECT + COUNT ( - 90 ) + - NULLIF ( + 45, ( - + COALESCE ( + + ( + - 74 ), - + 57 * CASE + 74 WHEN 2 THEN NULL WHEN + - 98 + + 51 THEN 5 * SUM ( - ( + 70 ) ) + + 81 ELSE NULL END + + NULLIF ( - 15, + 77 ) ) ) )
----
-44

query II rowsort
SELECT - 73 AS col0, 63 * + - ( + 58 ) AS col0
----
-73
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL - - NULLIF ( + 34, + 55 / MIN( DISTINCT 27 ) + + 43 ) + + + 93 AS col1
----
127

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL - - NULLIF ( + 34, + 55 / MIN ( DISTINCT 27 ) + + 43 ) + + + 93 AS col1
----
127

query I rowsort
SELECT - 45 + + - 82 * 94
----
-7753

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT 30 + + + 45 * - 96 + - CAST( - - 27 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT 30 + + + 45 * - 96 + - CAST ( - - 27 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT COALESCE ( + 58, + 18 * + 0 )
----
58

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-904
SELECT DISTINCT - + 37 AS col0, 0 * + COUNT( ALL 33 ) AS col1
----
-37
0

skipif mysql # not compatible
query II rowsort label-904
SELECT DISTINCT - + 37 AS col0, 0 * + COUNT ( ALL 33 ) AS col1
----
-37
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT DISTINCT - + SUM( ALL + 10 ) + 60 AS col1
----
50

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT - + SUM ( ALL + 10 ) + 60 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-908
SELECT - 8 col1, 26 * MAX( DISTINCT + 23 ) col1
----
-8
598

skipif mysql # not compatible
query II rowsort label-908
SELECT - 8 col1, 26 * MAX ( DISTINCT + 23 ) col1
----
-8
598

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL COALESCE ( + 23, - COUNT( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0
----
23

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL COALESCE ( + 23, - COUNT ( * ), 12 * - 12 + + 14 * + - 40 + 1 ) AS col0
----
23

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

skipif mysql # not compatible
query I rowsort label-910
SELECT 43 + - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-911
SELECT ALL + CASE - MAX( 43 ) WHEN 85 * + NULLIF ( 60, - 25 ) * - 30 THEN NULL ELSE - COUNT( * ) END - + 59 + + 89 * + CAST( - 61 AS SIGNED ) AS col1
----
-5489

skipif mysql # not compatible
query I rowsort label-911
SELECT ALL + CASE - MAX ( 43 ) WHEN 85 * + NULLIF ( 60, - 25 ) * - 30 THEN NULL ELSE - COUNT ( * ) END - + 59 + + 89 * + CAST ( - 61 AS INTEGER ) AS col1
----
-5489

query I rowsort
SELECT ALL - 39 * + - 77 * + 26 AS col2
----
78078

query I rowsort
SELECT 17 * + 43
----
731

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-914
SELECT 53 + CAST( NULL AS SIGNED ) + CASE ( + 23 ) WHEN + + 82 + + - COUNT( * ) THEN 64 END * + + COUNT( * ) * + + AVG ( ALL + 30 ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-914
SELECT 53 + CAST ( NULL AS INTEGER ) + CASE ( + 23 ) WHEN + + 82 + + - COUNT ( * ) THEN 64 END * + + COUNT ( * ) * + + AVG ( ALL + 30 ) * - 28
----
NULL

query I rowsort
SELECT 24 + 27 * + 3
----
105

query I rowsort
SELECT ALL CASE - + 95 WHEN + 1 THEN + + 46 / 6 + - 70 * + 44 WHEN - - 81 THEN NULL END
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 70, - ( + 54 ) ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT CASE + SUM( ALL - ( - 3 ) ) WHEN - - 94 THEN - 84 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT CASE + SUM ( ALL - ( - 3 ) ) WHEN - - 94 THEN - 84 END AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-920
SELECT DISTINCT 0 * COALESCE ( COUNT( * ), ( + 1 ) DIV 20 ) * + 35 * 25 * + 75 * - + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT 0 * COALESCE ( COUNT ( * ), ( + 1 ) / 20 ) * + 35 * 25 * + 75 * - + 47 AS col0
----
0

query I rowsort
SELECT DISTINCT 33
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT ALL + 31 DIV ( + - 18 )
----
-1

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL + 31 / ( + - 18 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-923
SELECT - CASE + 93 WHEN 72 * 89 THEN - 32 - 75 + - COUNT( * ) ELSE 28 END * - - COUNT( * ) + 43 AS col0
----
15

skipif mysql # not compatible
query I rowsort label-923
SELECT - CASE + 93 WHEN 72 * 89 THEN - 32 - 75 + - COUNT ( * ) ELSE 28 END * - - COUNT ( * ) + 43 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-924
SELECT DISTINCT 82 * NULLIF ( - 87, + 10 / + CASE - 46 WHEN + 93 + COUNT( DISTINCT + 16 ) THEN NULL WHEN + 64 * - 26 * - - 69 * + CAST( + + SUM( ALL ( - 83 ) ) AS DECIMAL ) * - - 99 THEN COALESCE ( - + 74, - + MIN( - - 1 ) * COALESCE ( - 97, - COUNT( * ), - 70 * - 90 ) * + 8 + 99 + 12, + 50 ) / + 67 + + 29 - - 14 ELSE NULL END * - + 4 - - 19 ) AS col1, 50 + + COUNT( * )
----
-7134
51

skipif mysql # not compatible
query II rowsort label-924
SELECT DISTINCT 82 * NULLIF ( - 87, + 10 / + CASE - 46 WHEN + 93 + COUNT ( DISTINCT + 16 ) THEN NULL WHEN + 64 * - 26 * - - 69 * + CAST ( + + SUM ( ALL ( - 83 ) ) AS REAL ) * - - 99 THEN COALESCE ( - + 74, - + MIN ( - - 1 ) * COALESCE ( - 97, - COUNT ( * ), - 70 * - 90 ) * + 8 + 99 + 12, + 50 ) / + 67 + + 29 - - 14 ELSE NULL END * - + 4 - - 19 ) AS col1, 50 + + COUNT ( * )
----
-7134
51

query I rowsort
SELECT + 11 + + 98 AS col2
----
109

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-928
SELECT ALL + ( 11 ) AS col2, + CAST( NULL AS DECIMAL )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL + ( 11 ) AS col2, + CAST ( NULL AS REAL )
----
11
NULL

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

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

query I rowsort
SELECT ALL + + 70
----
70

query I rowsort
SELECT ALL + + 10
----
10

query I rowsort
SELECT DISTINCT - 5 * + - 16 + + 84 + - + 3 + 7
----
168

query I rowsort
SELECT ALL + - 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-935
SELECT + + ( - SUM( + 47 ) ) * - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT + + ( - SUM ( + 47 ) ) * - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT DISTINCT + ( + CASE + - 92 WHEN 23 THEN NULL WHEN + 57 + - - NULLIF ( - 8, - 36 + 14 + + COALESCE ( + 35, - ( + MAX( DISTINCT - + 85 ) ) / - ( - 66 ) - 52, + - 2 - - - 56 ) ) THEN + - COUNT( * ) + 67 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + ( + CASE + - 92 WHEN 23 THEN NULL WHEN + 57 + - - NULLIF ( - 8, - 36 + 14 + + COALESCE ( + 35, - ( + MAX ( DISTINCT - + 85 ) ) / - ( - 66 ) - 52, + - 2 - - - 56 ) ) THEN + - COUNT ( * ) + 67 END ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-937
SELECT + - 10 * + NULLIF ( + - 83, - CAST( NULL AS SIGNED ) )
----
830

skipif mysql # not compatible
query I rowsort label-937
SELECT + - 10 * + NULLIF ( + - 83, - CAST ( NULL AS INTEGER ) )
----
830

onlyif mysql # DIV for integer division: 
query I rowsort label-938
SELECT DISTINCT - NULLIF ( - 89, + - 58 ) DIV - - 14 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT - NULLIF ( - 89, + - 58 ) / - - 14 AS col0
----
6

query I rowsort
SELECT ALL + - 59 col2
----
-59

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

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

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

query I rowsort
SELECT ALL + - 9
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT DISTINCT + 75 * + 97 - - - 22 * COUNT( * )
----
7253

skipif mysql # not compatible
query I rowsort label-945
SELECT DISTINCT + 75 * + 97 - - - 22 * COUNT ( * )
----
7253

query I rowsort
SELECT + + 68 col0
----
68

query I rowsort
SELECT DISTINCT + + 71
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT MIN( 45 )
----
45

skipif mysql # not compatible
query I rowsort label-948
SELECT MIN ( 45 )
----
45

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

query I rowsort
SELECT - 7 * - 72 col1
----
504

query I rowsort
SELECT - ( - 83 )
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT - 25 DIV + - 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-952
SELECT - 25 / + - 47 AS col1
----
0

query I rowsort
SELECT - 61 AS col1
----
-61

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-955
SELECT ALL + 62 - 54 + - 99 DIV + ( NULLIF ( 24, + AVG ( 12 ) ) ) + + - 74 col0, - NULLIF ( - - COUNT( DISTINCT + 83 ), + 33 ) AS col1
----
-70
-1

skipif mysql # not compatible
query II rowsort label-955
SELECT ALL + 62 - 54 + - 99 / + ( NULLIF ( 24, + AVG ( 12 ) ) ) + + - 74 col0, - NULLIF ( - - COUNT ( DISTINCT + 83 ), + 33 ) AS col1
----
-70
-1

query I rowsort
SELECT ALL - 7 * - 57 AS col2
----
399

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT - 72 AS col2, - MIN( - + 55 ) AS col2
----
-72
55

skipif mysql # not compatible
query II rowsort label-957
SELECT - 72 AS col2, - MIN ( - + 55 ) AS col2
----
-72
55

onlyif mysql # aggregate syntax: 
query I rowsort label-958
SELECT ALL COUNT( DISTINCT 92 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-958
SELECT ALL COUNT ( DISTINCT 92 ) AS col0
----
1

query I rowsort
SELECT ALL + 35 * 53
----
1855

query I rowsort
SELECT - 75 col0
----
-75

query I rowsort
SELECT + 35 + - 94
----
-59

query I rowsort
SELECT - 41 * - 24
----
984

query I rowsort
SELECT ALL + 45 * 93 AS col0
----
4185

onlyif mysql # DIV for integer division: 
query I rowsort label-964
SELECT - COALESCE ( 30, - 71 ) + 30 + 83 + 6 * 78 DIV - - 36 AS col0
----
96

skipif mysql # not compatible
query I rowsort label-964
SELECT - COALESCE ( 30, - 71 ) + 30 + 83 + 6 * 78 / - - 36 AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-965
SELECT - 88 DIV 19 col2
----
-4

skipif mysql # not compatible
query I rowsort label-965
SELECT - 88 / 19 col2
----
-4

query I rowsort
SELECT - 5 + - + 71 AS col2
----
-76

query I rowsort
SELECT + 70 * + 35
----
2450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-968
SELECT - CAST( - - COUNT( * ) AS SIGNED ) + - 85 * + - 11 - + - 26 + + 11 + - MAX( - ( - 20 ) ) + - 71 + - 49 - - 31 + + + 22 DIV - + 4 - + 10 AS col1
----
847

skipif mysql # not compatible
query I rowsort label-968
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) + - 85 * + - 11 - + - 26 + + 11 + - MAX ( - ( - 20 ) ) + - 71 + - 49 - - 31 + + + 22 / - + 4 - + 10 AS col1
----
847

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

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

query I rowsort
SELECT - 98 col0
----
-98

query I rowsort
SELECT DISTINCT + 27 * 40 col0
----
1080

query I rowsort
SELECT 38 col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT 64 + - COUNT( 56 ) AS col0
----
63

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT 64 + - COUNT ( 56 ) AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL COUNT( ( 82 ) ) + - + 22 * - + 87
----
1915

skipif mysql # not compatible
query I rowsort label-974
SELECT ALL COUNT ( ( 82 ) ) + - + 22 * - + 87
----
1915

query I rowsort
SELECT - 38 + + 97 col2
----
59

query I rowsort
SELECT ALL - 55
----
-55

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT ALL 39 / 82 + - 63 + + + 64 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-978
SELECT ALL 39 / 82 + - 63 + + + 64 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT DISTINCT + 36 DIV + 21 + 0 col1
----
1

skipif mysql # not compatible
query I rowsort label-979
SELECT DISTINCT + 36 / + 21 + 0 col1
----
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-981
SELECT DISTINCT - + CAST( + 23 AS SIGNED ) * 65 + CAST( NULL AS SIGNED ) * - + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT - + CAST ( + 23 AS INTEGER ) * 65 + CAST ( NULL AS INTEGER ) * - + 32 AS col0
----
NULL

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

query I rowsort
SELECT DISTINCT + COALESCE ( + + 48, + 1 ) AS col2
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-984
SELECT - COUNT( * ) * + 88 DIV 49 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-984
SELECT - COUNT ( * ) * + 88 / 49 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - + COUNT( * ) * + 17 + + CASE + NULLIF ( ( MAX( - 76 ) ), + - COALESCE ( - 91, - - 88 * + 42 - + COUNT( * ) + + - ( - + 97 ) + - COUNT( * ) + + COUNT( * ) ) * 89 - - 88 ) WHEN + 43 THEN - - 19 END * 63 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT - + COUNT ( * ) * + 17 + + CASE + NULLIF ( ( MAX ( - 76 ) ), + - COALESCE ( - 91, - - 88 * + 42 - + COUNT ( * ) + + - ( - + 97 ) + - COUNT ( * ) + + COUNT ( * ) ) * 89 - - 88 ) WHEN + 43 THEN - - 19 END * 63 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-986
SELECT ALL + - CAST( ( 16 ) AS SIGNED ) AS col0, 54
----
-16
54

skipif mysql # not compatible
query II rowsort label-986
SELECT ALL + - CAST ( ( 16 ) AS INTEGER ) AS col0, 54
----
-16
54

onlyif mysql # DIV for integer division: 
query I rowsort label-987
SELECT DISTINCT + 74 DIV + 4
----
18

skipif mysql # not compatible
query I rowsort label-987
SELECT DISTINCT + 74 / + 4
----
18

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

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

query I rowsort
SELECT + + 46 * + 94 + 31 - - 75 AS col1
----
4430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-990
SELECT + 19 + - CAST( + + 28 AS SIGNED ) * + COALESCE ( + - NULLIF ( + 38, + + ( - 75 ) ), + - ( + COUNT( * ) ) - - 75 )
----
1083

skipif mysql # not compatible
query I rowsort label-990
SELECT + 19 + - CAST ( + + 28 AS INTEGER ) * + COALESCE ( + - NULLIF ( + 38, + + ( - 75 ) ), + - ( + COUNT ( * ) ) - - 75 )
----
1083

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

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT 72 * + + MAX( 47 )
----
3384

skipif mysql # not compatible
query I rowsort label-992
SELECT 72 * + + MAX ( 47 )
----
3384

query I rowsort
SELECT DISTINCT - 75
----
-75

query I rowsort
SELECT DISTINCT 7 * 53 * - 20 * - + 88 * + - 94 AS col1
----
-61378240

query I rowsort
SELECT ALL - 17 col1
----
-17

query I rowsort
SELECT DISTINCT 24 * 4
----
96

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

query I rowsort
SELECT 62 * - 61 AS col0
----
-3782

query I rowsort
SELECT 68 + + 59 + + + 24 + - 89 * - 92 + + 85 AS col2
----
8424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1000
SELECT CAST( SUM( + 87 ) AS SIGNED ) + 13 col2
----
100

skipif mysql # not compatible
query I rowsort label-1000
SELECT CAST ( SUM ( + 87 ) AS INTEGER ) + 13 col2
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1001
SELECT 87 + + 24 AS col0, 46 - + COUNT( * )
----
111
45

skipif mysql # not compatible
query II rowsort label-1001
SELECT 87 + + 24 AS col0, 46 - + COUNT ( * )
----
111
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1002
SELECT ALL 23 + - + NULLIF ( + + 17, + 38 * + 10 + 19 + - 80 ) + - - 18 * - + COUNT( * ) AS col0, - 81 - CAST( NULL AS SIGNED ) + + ( - 40 )
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-1002
SELECT ALL 23 + - + NULLIF ( + + 17, + 38 * + 10 + 19 + - 80 ) + - - 18 * - + COUNT ( * ) AS col0, - 81 - CAST ( NULL AS INTEGER ) + + ( - 40 )
----
-12
NULL

query I rowsort
SELECT 80 col0
----
80

query I rowsort
SELECT 16 col2
----
16

query I rowsort
SELECT ALL + 40 + - 25 + - 71
----
-56

query I rowsort
SELECT 86 AS col0
----
86

query I rowsort
SELECT 3 + - + 4 AS col1
----
-1

query I rowsort
SELECT DISTINCT 29 + + - 79
----
-50

query I rowsort
SELECT DISTINCT - 59 + - - 13
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1010
SELECT DISTINCT 22 + - + 54 DIV - COALESCE ( + 73, + + COUNT( + 51 ) ) * + + 38 + - 91 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT 22 + - + 54 / - COALESCE ( + 73, + + COUNT ( + 51 ) ) * + + 38 + - 91 AS col2
----
-69

query I rowsort
SELECT DISTINCT 98 col1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1012
SELECT 3 * - 80 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-240
NULL

skipif mysql # not compatible
query II rowsort label-1012
SELECT 3 * - 80 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-240
NULL

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

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

query I rowsort
SELECT + 40 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT - CASE - - 64 WHEN - ( + MAX( DISTINCT 97 ) ) - - 56 * + 53 + + - 25 + + 45 * + + 7 * CAST( - 11 AS SIGNED ) * + NULLIF ( - COUNT( * ), + MAX( ( - 15 ) ) * + 82 + 98 + 73 + - 41 / + 99 ) + + + 85 THEN - + COUNT( * ) * + + 42 + + 50 + 2 + - - 47 * - - 59 / + 96 * - + 95 * + + 58 * + 76 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT - CASE - - 64 WHEN - ( + MAX ( DISTINCT 97 ) ) - - 56 * + 53 + + - 25 + + 45 * + + 7 * CAST ( - 11 AS INTEGER ) * + NULLIF ( - COUNT ( * ), + MAX ( ( - 15 ) ) * + 82 + 98 + 73 + - 41 / + 99 ) + + + 85 THEN - + COUNT ( * ) * + + 42 + + 50 + 2 + - - 47 * - - 59 / + 96 * - + 95 * + + 58 * + 76 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 21 * + - 55 AS col2
----
1155

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT ALL + 63 + - CASE 16 WHEN + 22 * 13 - COUNT( * ) - ( - 70 ) THEN NULL ELSE + COUNT( * ) - - 77 END AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL + 63 + - CASE 16 WHEN + 22 * 13 - COUNT ( * ) - ( - 70 ) THEN NULL ELSE + COUNT ( * ) - - 77 END AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1018
SELECT COUNT( ALL 20 ) * 46
----
46

skipif mysql # not compatible
query I rowsort label-1018
SELECT COUNT ( ALL 20 ) * 46
----
46

query I rowsort
SELECT + 58 * + + 5 * 29 AS col1
----
8410

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

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

query I rowsort
SELECT - - 49 AS col0
----
49

query I rowsort
SELECT DISTINCT + 64 AS col2
----
64

query I rowsort
SELECT DISTINCT - ( - + 27 ) * + 83 AS col1
----
2241

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

query I rowsort
SELECT DISTINCT - + CASE - - ( + - 76 ) WHEN - - 64 + - 61 THEN NULL ELSE + - 50 END
----
50

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

query I rowsort
SELECT ALL - - 99
----
99

query I rowsort
SELECT 28 * 18
----
504

query I rowsort
SELECT ALL - 15 AS col2
----
-15

query I rowsort
SELECT ALL - - 82
----
82

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1032
SELECT - 3 DIV + 10 * - 17 + - + 38 + - 20, + 98 AS col2
----
-58
98

skipif mysql # not compatible
query II rowsort label-1032
SELECT - 3 / + 10 * - 17 + - + 38 + - 20, + 98 AS col2
----
-58
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1033
SELECT COUNT( * ) * - MIN( 74 )
----
-74

skipif mysql # not compatible
query I rowsort label-1033
SELECT COUNT ( * ) * - MIN ( 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT + MIN( + + 98 ) * - ( - 19 ) + - - 8
----
1870

skipif mysql # not compatible
query I rowsort label-1034
SELECT + MIN ( + + 98 ) * - ( - 19 ) + - - 8
----
1870

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

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT + MIN ( ( 34 ) )
----
34

query I rowsort
SELECT + 10 col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT ALL - COUNT( * ) * - + ( + MAX( ALL + 6 ) ) AS col2, - 23
----
6
-23

skipif mysql # not compatible
query II rowsort label-1038
SELECT ALL - COUNT ( * ) * - + ( + MAX ( ALL + 6 ) ) AS col2, - 23
----
6
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-1039
SELECT + 32 + - + COALESCE ( + 27, - CASE - COUNT( ALL + - 38 ) WHEN - 55 * + COUNT( * ) * 80 - + 9 THEN ( 86 ) * + - CASE 59 WHEN - 64 THEN NULL WHEN - 75 * + 57 / + 40 + 57 THEN NULL ELSE + 26 * + COUNT( * ) * - 36 END + 77 WHEN 30 - 43 THEN NULL END + - + 51 ) + + + COUNT( * ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1039
SELECT + 32 + - + COALESCE ( + 27, - CASE - COUNT ( ALL + - 38 ) WHEN - 55 * + COUNT ( * ) * 80 - + 9 THEN ( 86 ) * + - CASE 59 WHEN - 64 THEN NULL WHEN - 75 * + 57 / + 40 + 57 THEN NULL ELSE + 26 * + COUNT ( * ) * - 36 END + 77 WHEN 30 - 43 THEN NULL END + - + 51 ) + + + COUNT ( * ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1040
SELECT ALL ( + AVG ( 44 ) ) * - COUNT( * ) * - + CAST( + - CAST( NULL AS DECIMAL ) AS SIGNED ) * - + 53
----
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL ( + AVG ( 44 ) ) * - COUNT ( * ) * - + CAST ( + - CAST ( NULL AS REAL ) AS INTEGER ) * - + 53
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1041
SELECT - 41 * - + 49 + 69 + 73 * 67 - - - ( + ( - 32 ) ) DIV - 72 * + 40 AS col1
----
6969

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 41 * - + 49 + 69 + 73 * 67 - - - ( + ( - 32 ) ) / - 72 * + 40 AS col1
----
6969

query II rowsort
SELECT DISTINCT - 20, 90 + - 37 col0
----
-20
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1043
SELECT ALL - 23 AS col1, + 69 + - - CAST( + 55 AS SIGNED ) + - 69 * 26
----
-23
-1670

skipif mysql # not compatible
query II rowsort label-1043
SELECT ALL - 23 AS col1, + 69 + - - CAST ( + 55 AS INTEGER ) + - 69 * 26
----
-23
-1670

query I rowsort
SELECT 72 - + ( + 3 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-1045
SELECT DISTINCT 89 + - COUNT( DISTINCT + 53 ), 69 col1
----
88
69

skipif mysql # not compatible
query II rowsort label-1045
SELECT DISTINCT 89 + - COUNT ( DISTINCT + 53 ), 69 col1
----
88
69

query II rowsort
SELECT DISTINCT - 20 AS col0, 46
----
-20
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1047
SELECT ALL 24 + + COUNT( * ) DIV - + 60 col0
----
24

skipif mysql # not compatible
query I rowsort label-1047
SELECT ALL 24 + + COUNT ( * ) / - + 60 col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-1048
SELECT MAX( - 46 ) * + 98 AS col2, 94 + + - 32 + + COUNT( * ) * 70
----
-4508
132

skipif mysql # not compatible
query II rowsort label-1048
SELECT MAX ( - 46 ) * + 98 AS col2, 94 + + - 32 + + COUNT ( * ) * 70
----
-4508
132

query II rowsort
SELECT - 26 AS col2, - 94 + - - 30 AS col0
----
-26
-64

query I rowsort
SELECT DISTINCT - 27 + - + 87
----
-114

query I rowsort
SELECT ALL + 72 + - + 73 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL 52 * - - COUNT( * )
----
52

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL 52 * - - COUNT ( * )
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-1053
SELECT SUM( 94 ) - - 43 * - + ( + 10 ), - COUNT( * ) col1
----
-336
-1

skipif mysql # not compatible
query II rowsort label-1053
SELECT SUM ( 94 ) - - 43 * - + ( + 10 ), - COUNT ( * ) col1
----
-336
-1

query I rowsort
SELECT DISTINCT 81 * 91
----
7371

onlyif mysql # aggregate syntax: 
query I rowsort label-1055
SELECT ALL + COUNT( * ) + + - 26 * + 65 AS col0
----
-1689

skipif mysql # not compatible
query I rowsort label-1055
SELECT ALL + COUNT ( * ) + + - 26 * + 65 AS col0
----
-1689

query I rowsort
SELECT 77 + - 61
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT NULLIF ( + 59, ( + 68 ) ) * - ( + + COUNT( * ) ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-1057
SELECT NULLIF ( + 59, ( + 68 ) ) * - ( + + COUNT ( * ) ) AS col2
----
-59

query I rowsort
SELECT - 2 col2
----
-2

query I rowsort
SELECT ALL 10 + + 72 AS col0
----
82

query I rowsort
SELECT 93 + 73 AS col2
----
166

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

query I rowsort
SELECT 12 + 0
----
12

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

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT + COUNT ( * ) / 44 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1064
SELECT ( - 13 ) + + 50 DIV 75
----
-13

skipif mysql # not compatible
query I rowsort label-1064
SELECT ( - 13 ) + + 50 / 75
----
-13

query I rowsort
SELECT ALL + NULLIF ( + 30, 0 ) - 91 AS col2
----
-61

query I rowsort
SELECT ALL CASE - 31 WHEN 32 THEN - 82 END / + 17 AS col1
----
NULL

query I rowsort
SELECT 37 + - 70 AS col2
----
-33

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

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

query I rowsort
SELECT ( 9 ) * + 35 AS col1
----
315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT CAST( NULL AS SIGNED ) / - ( 32 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1070
SELECT CAST ( NULL AS INTEGER ) / - ( 32 ) AS col2
----
NULL

query I rowsort
SELECT 53 * 15
----
795

onlyif mysql # aggregate syntax: 
query I rowsort label-1072
SELECT DISTINCT + COUNT( * ) * 28 col0
----
28

skipif mysql # not compatible
query I rowsort label-1072
SELECT DISTINCT + COUNT ( * ) * 28 col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT + NULLIF ( 5, 7 * - 12 + NULLIF ( - ( COUNT( 66 ) ) + 13 * + COUNT( * ), 59 ) ) AS col1
----
5

skipif mysql # not compatible
query I rowsort label-1073
SELECT + NULLIF ( 5, 7 * - 12 + NULLIF ( - ( COUNT ( 66 ) ) + 13 * + COUNT ( * ), 59 ) ) AS col1
----
5

query I rowsort
SELECT 63 * 65 AS col2
----
4095

query I rowsort
SELECT NULLIF ( - ( 89 ), 16 )
----
-89

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT ALL MIN( 98 ) * - 92 col0
----
-9016

skipif mysql # not compatible
query I rowsort label-1078
SELECT ALL MIN ( 98 ) * - 92 col0
----
-9016

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

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

query I rowsort
SELECT ALL + COALESCE ( 83, 79, - 8 * 16 ) AS col2
----
83

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

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

query I rowsort
SELECT ALL + 98 col1
----
98

query I rowsort
SELECT ALL 52 * + 29 + + 80
----
1588

query I rowsort
SELECT + 65 * - ( 48 ) + 71
----
-3049

query I rowsort
SELECT - 36 * + 5 AS col2
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT - NULLIF ( - NULLIF ( + 97, 75 * + 91 ), + 87 ) * COUNT( DISTINCT - 41 + 83 )
----
97

skipif mysql # not compatible
query I rowsort label-1086
SELECT - NULLIF ( - NULLIF ( + 97, 75 * + 91 ), + 87 ) * COUNT ( DISTINCT - 41 + 83 )
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1087
SELECT ALL 14 * 72 + 3 DIV 30
----
1008

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL 14 * 72 + 3 / 30
----
1008

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ALL 20 * + COALESCE ( - 36, - 44 * - COUNT( * ) + 53, - 36 ) + 1 AS col1
----
-719

skipif mysql # not compatible
query I rowsort label-1089
SELECT ALL 20 * + COALESCE ( - 36, - 44 * - COUNT ( * ) + 53, - 36 ) + 1 AS col1
----
-719

query I rowsort
SELECT - 30 + - 92
----
-122

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT SUM( DISTINCT 77 ) AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1092
SELECT SUM ( DISTINCT 77 ) AS col1
----
77

query I rowsort
SELECT - NULLIF ( 2, 90 ) + 54
----
52

query I rowsort
SELECT + 12 - + 96
----
-84

query I rowsort
SELECT DISTINCT 64 * - 87 + 84 AS col2
----
-5484

query I rowsort
SELECT ALL + 42 AS col2
----
42

query I rowsort
SELECT ( 56 ) * 37 + + 72
----
2144

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

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL + 86 + - COUNT ( * ) AS col0
----
85

query I rowsort
SELECT DISTINCT + 55
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL CASE - COUNT( * ) WHEN COUNT( * ) THEN + 66 + + CASE WHEN NOT + 33 - + 62 IS NOT NULL THEN NULL ELSE 69 END WHEN 60 THEN NULL END + + 96 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL CASE - COUNT ( * ) WHEN COUNT ( * ) THEN + 66 + + CASE WHEN NOT + 33 - + 62 IS NOT NULL THEN NULL ELSE 69 END WHEN 60 THEN NULL END + + 96 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT + 88 * + COUNT( * ) + 94
----
182

skipif mysql # not compatible
query I rowsort label-1101
SELECT + 88 * + COUNT ( * ) + 94
----
182

query I rowsort
SELECT DISTINCT + 68 * 47
----
3196

query I rowsort
SELECT ALL NULLIF ( + 47, + 59 ) AS col0
----
47

query I rowsort
SELECT + 11 * + 95
----
1045

query I rowsort
SELECT - 91 AS col2
----
-91

query I rowsort
SELECT + 28 + + 28
----
56

query I rowsort
SELECT ALL + 41 - ( 8 ) AS col2
----
33

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1111
SELECT - NULLIF ( 58, - 87 ) * - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1111
SELECT - NULLIF ( 58, - 87 ) * - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - NULLIF ( 24, - 74 ) AS col2
----
-24

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

query I rowsort
SELECT ALL + 45
----
45

query I rowsort
SELECT - - 89 AS col2
----
89

query I rowsort
SELECT DISTINCT 81
----
81

query I rowsort
SELECT DISTINCT 32 * 54
----
1728

query I rowsort
SELECT ALL + 22
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT COUNT( + 81 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1119
SELECT COUNT ( + 81 ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-1120
SELECT - 59 * - COUNT ( * )
----
59

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1122
SELECT + 47 * + CASE 68 WHEN 22 + - NULLIF ( - 95, 2 ) * 69 THEN - CAST( 53 AS SIGNED ) ELSE + 38 END AS col2
----
1786

skipif mysql # not compatible
query I rowsort label-1122
SELECT + 47 * + CASE 68 WHEN 22 + - NULLIF ( - 95, 2 ) * 69 THEN - CAST ( 53 AS INTEGER ) ELSE + 38 END AS col2
----
1786

query I rowsort
SELECT + 87 - + 92 AS col2
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1124
SELECT - 56 DIV COALESCE ( - 68 + 70, + COUNT( * ) - 67 DIV - MAX( ALL 94 ) )
----
-28

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 56 / COALESCE ( - 68 + 70, + COUNT ( * ) - 67 / - MAX ( ALL 94 ) )
----
-28

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

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

query I rowsort
SELECT + 14 * + 26 AS col2
----
364

query I rowsort
SELECT ALL + 27 col2
----
27

query I rowsort
SELECT DISTINCT + - 88
----
-88

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT 98 DIV + 3 + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT 98 / + 3 + COUNT ( * ) AS col2
----
33

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

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

query I rowsort
SELECT ( - 80 )
----
-80

query I rowsort
SELECT - 42 + - - 55
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT DISTINCT COUNT( * ) DIV + - 16 + NULLIF ( + 69 + NULLIF ( + 58, ( - 91 ) ), 18 ) AS col1
----
127

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT COUNT ( * ) / + - 16 + NULLIF ( + 69 + NULLIF ( + 58, ( - 91 ) ), 18 ) AS col1
----
127

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT ALL 10 DIV 7 * 12 + 19
----
31

skipif mysql # not compatible
query I rowsort label-1137
SELECT ALL 10 / 7 * 12 + 19
----
31

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

query I rowsort
SELECT ALL COALESCE ( ( - ( 68 ) ), 12, + 3, 67 ) * + 14 + 43
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT + 89 + + COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-1140
SELECT + 89 + + COUNT ( * )
----
90

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1142
SELECT + 6 DIV COUNT( 45 )
----
6

skipif mysql # not compatible
query I rowsort label-1142
SELECT + 6 / COUNT ( 45 )
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT 79 * + COUNT( * ) + - 24
----
55

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT 79 * + COUNT ( * ) + - 24
----
55

query I rowsort
SELECT ALL + COALESCE ( + - 60, - 31 * - 14 ) AS col2
----
-60

query I rowsort
SELECT ( + ( - 9 ) ) col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT DISTINCT ( - 47 ) * + 14 + MIN( 52 ) AS col2
----
-606

skipif mysql # not compatible
query I rowsort label-1146
SELECT DISTINCT ( - 47 ) * + 14 + MIN ( 52 ) AS col2
----
-606

query I rowsort
SELECT DISTINCT 6 * 35 AS col1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1148
SELECT ALL + 24 * + 97 + COALESCE ( CASE + NULLIF ( 61, 37 ) WHEN CASE - COUNT( * ) WHEN + 61 + 46 THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - 30 THEN 33 END THEN 65 END, + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + 24 * + 97 + COALESCE ( CASE + NULLIF ( 61, 37 ) WHEN CASE - COUNT ( * ) WHEN + 61 + 46 THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - 30 THEN 33 END THEN 65 END, + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

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

query I rowsort
SELECT DISTINCT + 35 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT - 11 - - - 65 * COUNT( ALL 59 - + 16 )
----
-76

skipif mysql # not compatible
query I rowsort label-1151
SELECT - 11 - - - 65 * COUNT ( ALL 59 - + 16 )
----
-76

query I rowsort
SELECT NULLIF ( ( 75 ), 84 * 28 )
----
75

query I rowsort
SELECT ALL 40 * - 24 - 88 AS col1
----
-1048

query I rowsort
SELECT ALL + ( + + COALESCE ( 86, + 16 ) )
----
86

query I rowsort
SELECT NULLIF ( - 95, - ( - NULLIF ( 89, 23 / + 72 ) ) + + 10 ) AS col0
----
-95

query I rowsort
SELECT - NULLIF ( 56, 44 - 56 )
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1157
SELECT ALL CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL CAST ( NULL AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL - 84 * + 78 * - 32
----
209664

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT - SUM( ALL - 60 ) * + 54
----
3240

skipif mysql # not compatible
query I rowsort label-1159
SELECT - SUM ( ALL - 60 ) * + 54
----
3240

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1160
SELECT DISTINCT - - COUNT( ALL CAST( NULL AS DECIMAL ) ) * 36
----
0

skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - - COUNT ( ALL CAST ( NULL AS REAL ) ) * 36
----
0

query I rowsort
SELECT - - NULLIF ( - 6, - 87 + - 43 ) * - 21
----
126

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

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

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

query I rowsort
SELECT 27 AS col1
----
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT SUM( ALL - + ( - ( ( 32 ) ) ) ) + - 46 * 86
----
-3924

skipif mysql # not compatible
query I rowsort label-1168
SELECT SUM ( ALL - + ( - ( ( 32 ) ) ) ) + - 46 * 86
----
-3924

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT + 84 + + - CASE 62 WHEN - COUNT( * ) THEN - 2 WHEN 41 THEN + 7 / - MAX( + 91 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT + 84 + + - CASE 62 WHEN - COUNT ( * ) THEN - 2 WHEN 41 THEN + 7 / - MAX ( + 91 ) END
----
NULL

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

query I rowsort
SELECT - 93 * - - 52
----
-4836

query I rowsort
SELECT DISTINCT 95
----
95

query I rowsort
SELECT + 11 + + + 93
----
104

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

skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL MAX ( 73 ) + COUNT ( * ) * - 51
----
22

query I rowsort
SELECT 29 + + 14 AS col0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1177
SELECT ALL 60 + - + NULLIF ( ( - 96 ), 16 ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL 60 + - + NULLIF ( ( - 96 ), 16 ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - NULLIF ( + 52, 57 + 72 )
----
-52

query I rowsort
SELECT ALL 7 + + 60 AS col0
----
67

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

query I rowsort
SELECT + 55 col1
----
55

query I rowsort
SELECT 93 col1
----
93

query II rowsort
SELECT 63 AS col2, - 62 AS col2
----
63
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1184
SELECT ALL 71 + - + COUNT( * ) * - 88 + COUNT( * ) AS col2
----
160

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 71 + - + COUNT ( * ) * - 88 + COUNT ( * ) AS col2
----
160

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1186
SELECT DISTINCT 94 + + CAST( - + 26 AS SIGNED )
----
68

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT 94 + + CAST ( - + 26 AS INTEGER )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL - MIN( DISTINCT + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL - MIN ( DISTINCT + 50 )
----
-50

query I rowsort
SELECT 79 col1
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1189
SELECT 3 + + + CAST( NULL AS SIGNED ) * + - 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1189
SELECT 3 + + + CAST ( NULL AS INTEGER ) * + - 53 col2
----
NULL

query I rowsort
SELECT DISTINCT 59 - + - 57
----
116

query II rowsort
SELECT + 78 AS col1, 51
----
78
51

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

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

query I rowsort
SELECT 22 * + CASE 68 WHEN 80 THEN NULL WHEN + 6 THEN + 43 END AS col0
----
NULL

query II rowsort
SELECT 17 AS col2, 16 * - - 11 * 60 AS col0
----
17
10560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1195
SELECT ALL + ( - 34 ) * - - MIN( 83 ) * 67 + CAST( - 60 + - 57 * - COUNT( * ) AS SIGNED )
----
-189077

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + ( - 34 ) * - - MIN ( 83 ) * 67 + CAST ( - 60 + - 57 * - COUNT ( * ) AS INTEGER )
----
-189077

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1196
SELECT CAST( NULL AS SIGNED ) + - 53 + - - MIN( DISTINCT + 61 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT CAST ( NULL AS INTEGER ) + - 53 + - - MIN ( DISTINCT + 61 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT ALL 58 * ( + COUNT( 90 ) )
----
58

skipif mysql # not compatible
query I rowsort label-1197
SELECT ALL 58 * ( + COUNT ( 90 ) )
----
58

query I rowsort
SELECT 51 * + + 85 + + 8
----
4343

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

query I rowsort
SELECT ALL 36 * 62 * - - 0 - 59
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT 33 * + - COALESCE ( 60, 89 + + 2 ) + - CAST( 7 AS SIGNED )
----
-1987

skipif mysql # not compatible
query I rowsort label-1201
SELECT 33 * + - COALESCE ( 60, 89 + + 2 ) + - CAST ( 7 AS INTEGER )
----
-1987

onlyif mysql # DIV for integer division: 
query II rowsort label-1202
SELECT 11 AS col2, 13 + + 5 DIV 38 AS col1
----
11
13

skipif mysql # not compatible
query II rowsort label-1202
SELECT 11 AS col2, 13 + + 5 / 38 AS col1
----
11
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL COALESCE ( + COUNT( + + 33 ), - 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL COALESCE ( + COUNT ( + + 33 ), - 77 ) AS col2
----
1

query I rowsort
SELECT - 32 * + 91 * + 25 AS col0
----
-72800

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

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

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

query I rowsort
SELECT ALL - - 98 + 58 AS col1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT NULLIF ( + 39, + COUNT( * ) * 72 )
----
39

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT NULLIF ( + 39, + COUNT ( * ) * 72 )
----
39

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

query I rowsort
SELECT ALL + 37 + - + 72
----
-35

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1212
SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT( * ) - - 59 * - 52 THEN CAST( 16 AS SIGNED ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST( NULL AS SIGNED ) END, 0 DIV + 59 ) + - 42
----
-42

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - - COALESCE ( - - CASE + + 10 WHEN 2 * + COUNT ( * ) - - 59 * - 52 THEN CAST ( 16 AS INTEGER ) * - 83 WHEN + 14 THEN NULL WHEN 6 * 55 + 10 THEN NULL ELSE 58 + + CAST ( NULL AS INTEGER ) END, 0 / + 59 ) + - 42
----
-42

query I rowsort
SELECT 97 * - 5 + + 6
----
-479

query II rowsort
SELECT DISTINCT - 84, + 13 AS col0
----
-84
13

query I rowsort
SELECT - ( 43 ) AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT 77 * + ( + + MAX( ALL 51 ) )
----
3927

skipif mysql # not compatible
query I rowsort label-1216
SELECT 77 * + ( + + MAX ( ALL 51 ) )
----
3927

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

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

query I rowsort
SELECT 62 - - 70 * 38 AS col0
----
2722

query I rowsort
SELECT ALL + 54 + 69
----
123

query I rowsort
SELECT DISTINCT 6
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1221
SELECT DISTINCT 52 * + CASE + 86 WHEN 80 THEN CAST( - COALESCE ( 43, COUNT( * ), 65 ) AS SIGNED ) WHEN 32 THEN + 35 * - 69 END - - 87 * + 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT 52 * + CASE + 86 WHEN 80 THEN CAST ( - COALESCE ( 43, COUNT ( * ), 65 ) AS INTEGER ) WHEN 32 THEN + 35 * - 69 END - - 87 * + 88 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + 3 * NULLIF ( CASE + 33 WHEN - 47 + + 60 THEN 10 WHEN + 50 * + COUNT( * ) THEN NULL WHEN + 76 * 11 THEN + 49 + - 54 END, + 96 ) - + 80 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + 3 * NULLIF ( CASE + 33 WHEN - 47 + + 60 THEN 10 WHEN + 50 * + COUNT ( * ) THEN NULL WHEN + 76 * 11 THEN + 49 + - 54 END, + 96 ) - + 80 AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1225
SELECT ALL - NULLIF ( - + 75, CASE COUNT( * ) WHEN CAST( 59 AS SIGNED ) THEN NULL ELSE ( - 11 ) END ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1225
SELECT ALL - NULLIF ( - + 75, CASE COUNT ( * ) WHEN CAST ( 59 AS INTEGER ) THEN NULL ELSE ( - 11 ) END ) AS col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT - 77 DIV - + NULLIF ( - - 91, + 57 * - 52 ) * 30 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-1226
SELECT - 77 / - + NULLIF ( - - 91, + 57 * - 52 ) * 30 + COUNT ( * )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1227
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ), 41 AS col1
----
NULL
41

skipif mysql # not compatible
query II rowsort label-1227
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ), 41 AS col1
----
NULL
41

query I rowsort
SELECT ALL 18 * + 20 AS col2
----
360

onlyif mysql # aggregate syntax: 
query II rowsort label-1229
SELECT MAX( + - 82 ), 7 AS col1
----
-82
7

skipif mysql # not compatible
query II rowsort label-1229
SELECT MAX ( + - 82 ), 7 AS col1
----
-82
7

query I rowsort
SELECT DISTINCT 53 * + 25 AS col0
----
1325

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1231
SELECT 32 * + ( + + COUNT( * ) ) * + - 52 - CASE COALESCE ( - 5, 25 + - 2 ) - + 66 WHEN + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) THEN NULL WHEN 93 / + 38 THEN CAST( + 51 AS SIGNED ) + ( 72 ) * - 2 WHEN 61 THEN ( - 61 ) ELSE + 60 END AS col2
----
-1724

skipif mysql # not compatible
query I rowsort label-1231
SELECT 32 * + ( + + COUNT ( * ) ) * + - 52 - CASE COALESCE ( - 5, 25 + - 2 ) - + 66 WHEN + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) THEN NULL WHEN 93 / + 38 THEN CAST ( + 51 AS INTEGER ) + ( 72 ) * - 2 WHEN 61 THEN ( - 61 ) ELSE + 60 END AS col2
----
-1724

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT MAX( + 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1232
SELECT MAX ( + 1 ) AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1233
SELECT ALL - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1234
SELECT ALL - COUNT( - 58 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL - COUNT ( - 58 ) AS col0
----
-1

query I rowsort
SELECT ALL - 86
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-1236
SELECT + MAX( 81 ), ( 44 ) + 23 AS col0
----
81
67

skipif mysql # not compatible
query II rowsort label-1236
SELECT + MAX ( 81 ), ( 44 ) + 23 AS col0
----
81
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1237
SELECT + ( NULLIF ( + COALESCE ( - - MAX( CAST( NULL AS SIGNED ) ), 18 ), + 89 ) )
----
18

skipif mysql # not compatible
query I rowsort label-1237
SELECT + ( NULLIF ( + COALESCE ( - - MAX ( CAST ( NULL AS INTEGER ) ), 18 ), + 89 ) )
----
18

query I rowsort
SELECT ALL - ( - 73 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1239
SELECT ALL + COUNT( * ) DIV - 5 * + 50 + + - 19 - COUNT( 39 )
----
-20

skipif mysql # not compatible
query I rowsort label-1239
SELECT ALL + COUNT ( * ) / - 5 * + 50 + + - 19 - COUNT ( 39 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT 63 * - COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-1240
SELECT 63 * - COUNT ( * ) AS col0
----
-63

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

skipif mysql # not compatible
query I rowsort label-1241
SELECT + + MAX ( + + 7 )
----
7

query I rowsort
SELECT + CASE - - COALESCE ( + + 52, - 44 ) WHEN - 89 - 73 THEN - 83 / + 64 END
----
NULL

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

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

query I rowsort
SELECT + 38 * - ( - 51 ) - - NULLIF ( + 94, 89 + - 71 ) AS col1
----
2032

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL + - COUNT( * ) + - - 0 + - - 42 * + - 15
----
-631

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL + - COUNT ( * ) + - - 0 + - - 42 * + - 15
----
-631

query I rowsort
SELECT DISTINCT + 29 + - + 57 + + - 23
----
-51

query I rowsort
SELECT ALL - 66 + + ( - 67 ) - + 35 + - 3 AS col0
----
-171

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1252
SELECT DISTINCT - CAST( 47 AS SIGNED ) AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - CAST ( 47 AS INTEGER ) AS col0
----
-47

query I rowsort
SELECT + - 16 + 65 col0
----
49

query I rowsort
SELECT - - 11 - - - NULLIF ( - 46, + 79 ) * - 11
----
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT ALL - COUNT( * ) + - - MIN( - 63 ) col2
----
-64

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - COUNT ( * ) + - - MIN ( - 63 ) col2
----
-64

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

query I rowsort
SELECT + + 41 + - 89 AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT + MAX( DISTINCT - CASE WHEN NOT - 65 <> + 0 / 52 + - 12 THEN 66 + 22 END ) + 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1258
SELECT + MAX ( DISTINCT - CASE WHEN NOT - 65 <> + 0 / 52 + - 12 THEN 66 + 22 END ) + 98 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 8
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT + MIN( DISTINCT + 96 ) + + - 47 + + 26 AS col2
----
75

skipif mysql # not compatible
query I rowsort label-1260
SELECT + MIN ( DISTINCT + 96 ) + + - 47 + + 26 AS col2
----
75

query I rowsort
SELECT - 39 * - 70 * 88 AS col0
----
240240

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT - SUM( DISTINCT + 22 ) + - COUNT( * )
----
-23

skipif mysql # not compatible
query I rowsort label-1262
SELECT - SUM ( DISTINCT + 22 ) + - COUNT ( * )
----
-23

query I rowsort
SELECT ALL CASE + - 34 WHEN + - 86 * - 57 THEN 47 * COALESCE ( - 93, - 78, 72 ) END
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1265
SELECT - COUNT( * ) + 83 - + 30 + - 74 * 70 * COUNT( * ) AS col0
----
-5128

skipif mysql # not compatible
query I rowsort label-1265
SELECT - COUNT ( * ) + 83 - + 30 + - 74 * 70 * COUNT ( * ) AS col0
----
-5128

query I rowsort
SELECT ALL + 22 - - 75 - + ( - 37 ) - - 15 + 24
----
173

query I rowsort
SELECT DISTINCT + 41 - + - 95 AS col2
----
136

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT - 12 + 15 * ( + 15 ) * - COUNT( * )
----
-237

skipif mysql # not compatible
query I rowsort label-1269
SELECT - 12 + 15 * ( + 15 ) * - COUNT ( * )
----
-237

query I rowsort
SELECT - 30 * - + 43
----
1290

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

query I rowsort
SELECT ALL + 58
----
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1274
SELECT + 74 AS col0, - CAST( - + 96 AS SIGNED ) AS col2
----
74
96

skipif mysql # not compatible
query II rowsort label-1274
SELECT + 74 AS col0, - CAST ( - + 96 AS INTEGER ) AS col2
----
74
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1275
SELECT + 82 DIV + 41
----
2

skipif mysql # not compatible
query I rowsort label-1275
SELECT + 82 / + 41
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - NULLIF ( + 60, SUM( DISTINCT - 25 ) * - COUNT( * ) - - 99 ) * - 63 + + 84 * 74
----
9996

skipif mysql # not compatible
query I rowsort label-1276
SELECT - NULLIF ( + 60, SUM ( DISTINCT - 25 ) * - COUNT ( * ) - - 99 ) * - 63 + + 84 * 74
----
9996

query II rowsort
SELECT + 29, 68 AS col1
----
29
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1278
SELECT + 32, + COUNT( * ) DIV + 22 AS col1
----
32
0

skipif mysql # not compatible
query II rowsort label-1278
SELECT + 32, + COUNT ( * ) / + 22 AS col1
----
32
0

query I rowsort
SELECT ALL + 47 AS col2
----
47

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

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

query I rowsort
SELECT - 34 * + - 89 AS col2
----
3026

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT + 40 + - CAST( NULL AS SIGNED ) + 86 + - 66 + - 86 + + 47 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT + 40 + - CAST ( NULL AS INTEGER ) + 86 + - 66 + - 86 + + 47 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT NULLIF ( - + 10, + + 17 - + - 40 - + - COUNT( * ) )
----
-10

skipif mysql # not compatible
query I rowsort label-1283
SELECT NULLIF ( - + 10, + + 17 - + - 40 - + - COUNT ( * ) )
----
-10

query I rowsort
SELECT + 84 * - 29 + - - 39 - 50 col2
----
-2447

query II rowsort
SELECT ALL + + 60 * - 26 + - 23 AS col1, - 8 AS col0
----
-1583
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1286
SELECT + 35 * + - 13 - + ( + + CASE 75 WHEN - AVG ( 77 ) THEN + CAST( NULL AS DECIMAL ) END ) * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-1286
SELECT + 35 * + - 13 - + ( + + CASE 75 WHEN - AVG ( 77 ) THEN + CAST ( NULL AS REAL ) END ) * - 66
----
NULL

query I rowsort
SELECT ALL + - 98 AS col2
----
-98

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

skipif mysql # not compatible
query I rowsort label-1288
SELECT - COUNT ( * ) * 39 + - COUNT ( * ) / 40
----
-39

query I rowsort
SELECT DISTINCT + ( - 91 ) * 57 + + + 26 AS col1
----
-5161

query I rowsort
SELECT ALL + - 81
----
-81

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

query I rowsort
SELECT ALL + 63 * 50 + + - 70
----
3080

query I rowsort
SELECT ALL - 98 * - 47 + - 39 + NULLIF ( - + 81, + 85 ) col1
----
4486

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

query I rowsort
SELECT + ( - COALESCE ( + 59, - ( 18 ) * 73 + + ( COALESCE ( + NULLIF ( 21, 37 ), - 98, 10 ) ), - 82 ) ) * + 33
----
-1947

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

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

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

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

query I rowsort
SELECT ALL 83 * - 86 AS col2
----
-7138

query I rowsort
SELECT - - 74 + + 58
----
132

query I rowsort
SELECT ALL + 19
----
19

query I rowsort
SELECT - - 6 AS col2
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-1303
SELECT + 75, + 31 * - 47 - 3 + - 54 DIV + COALESCE ( ( + 5 ) + + 54 * + 59, 64 + 14 ) AS col1
----
75
-1460

skipif mysql # not compatible
query II rowsort label-1303
SELECT + 75, + 31 * - 47 - 3 + - 54 / + COALESCE ( ( + 5 ) + + 54 * + 59, 64 + 14 ) AS col1
----
75
-1460

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT DISTINCT + CAST ( - - 45 AS INTEGER ) AS col0
----
45

query I rowsort
SELECT ALL - NULLIF ( + 56, + 16 ) * 17
----
-952

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT ALL 42 * - COUNT( DISTINCT + + ( + - 74 ) ) AS col1, 6 * - 21
----
-42
-126

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL 42 * - COUNT ( DISTINCT + + ( + - 74 ) ) AS col1, 6 * - 21
----
-42
-126

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

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

query II rowsort
SELECT 76 col0, 3 * 84 - + 34 + + 36 - + 63
----
76
191

query I rowsort
SELECT - 6 * - 16
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT ALL COALESCE ( - COUNT( * ), - COUNT( * ) + 51, - 94 * 45 )
----
-1

skipif mysql # not compatible
query I rowsort label-1311
SELECT ALL COALESCE ( - COUNT ( * ), - COUNT ( * ) + 51, - 94 * 45 )
----
-1

query I rowsort
SELECT + 76 - + 44 + - 59 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1313
SELECT - 19, 11 + + COUNT( * ) AS col0
----
-19
12

skipif mysql # not compatible
query II rowsort label-1313
SELECT - 19, 11 + + COUNT ( * ) AS col0
----
-19
12

query II rowsort
SELECT - 70 * + + 49 AS col0, 95
----
-3430
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT ALL MIN( ALL + 12 ) AS col2
----
12

skipif mysql # not compatible
query I rowsort label-1315
SELECT ALL MIN ( ALL + 12 ) AS col2
----
12

query II rowsort
SELECT + 30, - 46 AS col1
----
30
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1317
SELECT ALL + 5 DIV + + 86 + - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL + 5 / + + 86 + - COUNT ( * )
----
-1

query I rowsort
SELECT ALL + 92 * - 49
----
-4508

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1319
SELECT - 30 DIV + + 39 + + - COUNT( * ) - MAX( ALL + - 79 ) + + 74 * - 31
----
-2216

skipif mysql # not compatible
query I rowsort label-1319
SELECT - 30 / + + 39 + + - COUNT ( * ) - MAX ( ALL + - 79 ) + + 74 * - 31
----
-2216

query I rowsort
SELECT ALL - 20 + - 74 AS col2
----
-94

query II rowsort
SELECT + 96 col1, + 64 - - + 12 + + 57 + 19 * + ( - 40 ) * 5
----
96
-3667

query I rowsort
SELECT - 12 + 44 AS col2
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-1323
SELECT DISTINCT - - 87 AS col0, + ( + 65 ) * ( + MAX( + + 59 ) )
----
87
3835

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT - - 87 AS col0, + ( + 65 ) * ( + MAX ( + + 59 ) )
----
87
3835

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1324
SELECT ALL - + 91 / 44 * CAST( NULL AS DECIMAL ) + + 28 + + 66 - 47 * - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - + 91 / 44 * CAST ( NULL AS REAL ) + + 28 + + 66 - 47 * - 26 AS col1
----
NULL

query I rowsort
SELECT CASE 24 WHEN + 62 THEN + - 46 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1326
SELECT ALL - 29 + + MIN( 65 ) col2
----
36

skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL - 29 + + MIN ( 65 ) col2
----
36

query I rowsort
SELECT DISTINCT + 71 + + - 5
----
66

query II rowsort
SELECT + 41 AS col2, + 99 AS col1
----
41
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL MIN( ALL - - 50 ) + 73
----
123

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL MIN ( ALL - - 50 ) + 73
----
123

query I rowsort
SELECT 3 * - + 46 * - 18 + 81 + 60
----
2625

query II rowsort
SELECT ALL - 62, 50 AS col1
----
-62
50

query I rowsort
SELECT DISTINCT - COALESCE ( - - 35, - 33, + + 17 )
----
-35

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

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

query I rowsort
SELECT + + 98
----
98

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

query I rowsort
SELECT 8 * + - 55 - - 1 AS col0
----
-439

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT DISTINCT + + COUNT( * ) - 57 - 84 * - 81 AS col1
----
6748

skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT + + COUNT ( * ) - 57 - 84 * - 81 AS col1
----
6748

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT ALL 17 DIV - - 78 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL 17 / - - 78 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1340
SELECT - SUM( + 89 ) - COUNT( * ) AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-1340
SELECT - SUM ( + 89 ) - COUNT ( * ) AS col2
----
-90

query II rowsort
SELECT 71 + 21, - ( - 98 ) * - 82 * 12 * - + 94 * ( + 98 ) AS col2
----
92
888331584

onlyif mysql # aggregate syntax: 
query I rowsort label-1342
SELECT COUNT( * ) - + 43 + - + 88
----
-130

skipif mysql # not compatible
query I rowsort label-1342
SELECT COUNT ( * ) - + 43 + - + 88
----
-130

query I rowsort
SELECT 43 AS col0
----
43

query I rowsort
SELECT 16 * - 97 AS col0
----
-1552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1345
SELECT ALL 95 DIV - CAST( - 65 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL 95 / - CAST ( - 65 AS INTEGER )
----
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 22 DIV 71 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT 22 / 71 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1348
SELECT SUM( DISTINCT 7 ) + + COUNT( * ) + + 76 * - 38 * - + 31 * + + COALESCE ( NULLIF ( - 5, - 4 + 48 * 16 ), - 95 ) * + 67
----
-29991872

skipif mysql # not compatible
query I rowsort label-1348
SELECT SUM ( DISTINCT 7 ) + + COUNT ( * ) + + 76 * - 38 * - + 31 * + + COALESCE ( NULLIF ( - 5, - 4 + 48 * 16 ), - 95 ) * + 67
----
-29991872

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT DISTINCT + 51 + - COUNT( ALL 52 )
----
50

skipif mysql # not compatible
query I rowsort label-1349
SELECT DISTINCT + 51 + - COUNT ( ALL 52 )
----
50

query I rowsort
SELECT NULLIF ( - 86, - 66 ) + - 66
----
-152

query I rowsort
SELECT ALL - 33 + - 5 + + + 30 AS col0
----
-8

query I rowsort
SELECT 31 + 2 - - 31 AS col0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT DISTINCT CASE + MIN( - 22 ) WHEN 16 THEN NULLIF ( AVG ( - - 30 ), - 7 ) * COUNT( * ) ELSE NULL END + COALESCE ( - AVG ( 21 ) + + 45 * + 15, NULLIF ( 0, 64 + 41 * 87 ) ) * - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT CASE + MIN ( - 22 ) WHEN 16 THEN NULLIF ( AVG ( - - 30 ), - 7 ) * COUNT ( * ) ELSE NULL END + COALESCE ( - AVG ( 21 ) + + 45 * + 15, NULLIF ( 0, 64 + 41 * 87 ) ) * - 6 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1354
SELECT COALESCE ( + COUNT( DISTINCT + 94 ), 99 + 15 + - 17 * NULLIF ( - 43, - 83 ) * + 38 DIV COUNT( 41 ) ) * MIN( 83 + 50 ) AS col0
----
133

skipif mysql # not compatible
query I rowsort label-1354
SELECT COALESCE ( + COUNT ( DISTINCT + 94 ), 99 + 15 + - 17 * NULLIF ( - 43, - 83 ) * + 38 / COUNT ( 41 ) ) * MIN ( 83 + 50 ) AS col0
----
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1355
SELECT CAST( NULL AS SIGNED ) + CASE COUNT( * ) WHEN + 48 / - COUNT( * ) THEN NULL WHEN + AVG ( ALL + - ( + 65 ) ) THEN + 94 + 92 * - 51 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1355
SELECT CAST ( NULL AS INTEGER ) + CASE COUNT ( * ) WHEN + 48 / - COUNT ( * ) THEN NULL WHEN + AVG ( ALL + - ( + 65 ) ) THEN + 94 + 92 * - 51 ELSE NULL END AS col1
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1357
SELECT CAST( NULL AS SIGNED ) * + - 61 AS col1, NULLIF ( + + COUNT( * ), + 9 / - COUNT( * ) * + + CAST( NULL AS SIGNED ) + 54 ) * 66
----
NULL
66

skipif mysql # not compatible
query II rowsort label-1357
SELECT CAST ( NULL AS INTEGER ) * + - 61 AS col1, NULLIF ( + + COUNT ( * ), + 9 / - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) + 54 ) * 66
----
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-1358
SELECT ALL + 61 * + - 62 AS col2, - MAX( DISTINCT - 72 ) AS col2
----
-3782
72

skipif mysql # not compatible
query II rowsort label-1358
SELECT ALL + 61 * + - 62 AS col2, - MAX ( DISTINCT - 72 ) AS col2
----
-3782
72

query I rowsort
SELECT - 0 * - + 48 + + + 11 * 64
----
704

query I rowsort
SELECT ALL 75 + + + 9 AS col2
----
84

query I rowsort
SELECT + + 95
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1362
SELECT ALL + + COUNT( * ) + CASE 36 WHEN + 19 / + 88 - 0 THEN - - 9 + - 84 WHEN + MIN( ALL CAST( NULL AS DECIMAL ) ) * - COUNT( * ) THEN NULL END / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL + + COUNT ( * ) + CASE 36 WHEN + 19 / + 88 - 0 THEN - - 9 + - 84 WHEN + MIN ( ALL CAST ( NULL AS REAL ) ) * - COUNT ( * ) THEN NULL END / 43
----
NULL

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

query I rowsort
SELECT ALL - - 16
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1365
SELECT - MIN( DISTINCT + + 42 ) * - - 3 + - - 78 + - COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-1365
SELECT - MIN ( DISTINCT + + 42 ) * - - 3 + - - 78 + - COUNT ( * )
----
-49

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1368
SELECT 79 * + + 12 + - 20 - + COUNT( + 40 ) * + COUNT( * ) * - COUNT( * ) * + 56
----
984

skipif mysql # not compatible
query I rowsort label-1368
SELECT 79 * + + 12 + - 20 - + COUNT ( + 40 ) * + COUNT ( * ) * - COUNT ( * ) * + 56
----
984

onlyif mysql # DIV for integer division: 
query I rowsort label-1369
SELECT ALL - 68 DIV - 19 + + + 55 col2
----
58

skipif mysql # not compatible
query I rowsort label-1369
SELECT ALL - 68 / - 19 + + + 55 col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - 63 * - + 49 + + - 5 * - ( - 71 ) + + - COUNT( * ) + + - 10 AS col2
----
2721

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 63 * - + 49 + + - 5 * - ( - 71 ) + + - COUNT ( * ) + + - 10 AS col2
----
2721

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT DISTINCT - NULLIF ( + 96, - NULLIF ( 81, - MAX( + 64 ) ) + COALESCE ( - 27, 84 ) + 24 * + 31 * 61 ) / + ( 49 * ( COUNT( * ) ) + 38 / + NULLIF ( + COUNT( * ) / - CAST( NULL AS SIGNED ), - 64 + ( 78 + 76 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1371
SELECT DISTINCT - NULLIF ( + 96, - NULLIF ( 81, - MAX ( + 64 ) ) + COALESCE ( - 27, 84 ) + 24 * + 31 * 61 ) / + ( 49 * ( COUNT ( * ) ) + 38 / + NULLIF ( + COUNT ( * ) / - CAST ( NULL AS INTEGER ), - 64 + ( 78 + 76 ) ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1372
SELECT DISTINCT - 24 DIV SUM( DISTINCT - 70 ) + 10
----
10

skipif mysql # not compatible
query I rowsort label-1372
SELECT DISTINCT - 24 / SUM ( DISTINCT - 70 ) + 10
----
10

query II rowsort
SELECT - 76 * 17 AS col2, + 15
----
-1292
15

query I rowsort
SELECT - 27 AS col2
----
-27

query I rowsort
SELECT + 85 + - + ( + 90 )
----
-5

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

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

query II rowsort
SELECT 15, - 79 AS col0
----
15
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT 16 + + - CAST( - 3 AS SIGNED ) + - COUNT( * ) * - CASE - + 53 WHEN + 95 * CAST( NULL AS SIGNED ) THEN 28 + 83 WHEN 30 + COUNT( * ) * 93 THEN COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT 16 + + - CAST ( - 3 AS INTEGER ) + - COUNT ( * ) * - CASE - + 53 WHEN + 95 * CAST ( NULL AS INTEGER ) THEN 28 + 83 WHEN 30 + COUNT ( * ) * 93 THEN COUNT ( * ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - COUNT( * ) * 43 * + 8 * + + 68 * + ( - 29 )
----
678368

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - COUNT ( * ) * 43 * + 8 * + + 68 * + ( - 29 )
----
678368

query I rowsort
SELECT 25 * - - 74 AS col0
----
1850

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT ALL COUNT( * ) + 91 - + 41 col1
----
51

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL COUNT ( * ) + 91 - + 41 col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ALL + 64 + - - 7 - - COUNT( * ) * - 93 * - COUNT( * ) - + COUNT( * ) AS col1
----
163

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + 64 + - - 7 - - COUNT ( * ) * - 93 * - COUNT ( * ) - + COUNT ( * ) AS col1
----
163

query I rowsort
SELECT 42 AS col2
----
42

query I rowsort
SELECT 15 * 17 * + 54
----
13770

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

query I rowsort
SELECT - 93 * - 59 col1
----
5487

query I rowsort
SELECT + 99 * 71
----
7029

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT - MIN( ALL 19 ) col2
----
-19

skipif mysql # not compatible
query I rowsort label-1388
SELECT - MIN ( ALL 19 ) col2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT - 87 - + 81 * - + COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-1389
SELECT - 87 - + 81 * - + COUNT ( * )
----
-6

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

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

query I rowsort
SELECT DISTINCT + 20 + 13 AS col1
----
33

query I rowsort
SELECT ALL 75 * + 4 AS col2
----
300

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT 34 * + COALESCE ( 79, - - COUNT( * ) )
----
2686

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT 34 * + COALESCE ( 79, - - COUNT ( * ) )
----
2686

onlyif mysql # aggregate syntax: 
query I rowsort label-1394
SELECT ALL + COUNT( * ) + + 64
----
65

skipif mysql # not compatible
query I rowsort label-1394
SELECT ALL + COUNT ( * ) + + 64
----
65

query I rowsort
SELECT DISTINCT + + 43 AS col2
----
43

query I rowsort
SELECT + 17 * + 58 col2
----
986

onlyif mysql # aggregate syntax: 
query I rowsort label-1397
SELECT - COUNT( * ) * + 50 + 40
----
-10

skipif mysql # not compatible
query I rowsort label-1397
SELECT - COUNT ( * ) * + 50 + 40
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT + 30 - MAX( 92 )
----
-62

skipif mysql # not compatible
query I rowsort label-1398
SELECT + 30 - MAX ( 92 )
----
-62

query I rowsort
SELECT DISTINCT + + 9
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1400
SELECT + + ( CASE + 99 WHEN - 92 + CAST( NULL AS SIGNED ) THEN 86 ELSE 87 DIV - 54 END ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-1400
SELECT + + ( CASE + 99 WHEN - 92 + CAST ( NULL AS INTEGER ) THEN 86 ELSE 87 / - 54 END ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + - MAX( - 76 ) * + 3
----
228

skipif mysql # not compatible
query I rowsort label-1401
SELECT + - MAX ( - 76 ) * + 3
----
228

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

query I rowsort
SELECT ALL + - ( - 55 ) AS col1
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1404
SELECT ALL + 42 * - 2 - + 5, + NULLIF ( CAST( NULL AS SIGNED ), + 77 * - COUNT( + - 19 ) * 81 ) / 23 AS col2
----
-89
NULL

skipif mysql # not compatible
query II rowsort label-1404
SELECT ALL + 42 * - 2 - + 5, + NULLIF ( CAST ( NULL AS INTEGER ), + 77 * - COUNT ( + - 19 ) * 81 ) / 23 AS col2
----
-89
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT ALL - - 19 * + 67 + 22 + 97 + + 28 * + CASE - + AVG ( + - 30 ) WHEN + 83 / + 97 + MIN( DISTINCT 18 + 49 ) THEN + 29 * ( ( 65 ) ) WHEN + 34 THEN + 19 * - 3 ELSE NULL END * COUNT( * ) + + COUNT( * ) / ( + 37 + 60 ) * 59
----
NULL

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL - - 19 * + 67 + 22 + 97 + + 28 * + CASE - + AVG ( + - 30 ) WHEN + 83 / + 97 + MIN ( DISTINCT 18 + 49 ) THEN + 29 * ( ( 65 ) ) WHEN + 34 THEN + 19 * - 3 ELSE NULL END * COUNT ( * ) + + COUNT ( * ) / ( + 37 + 60 ) * 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT + + MIN( DISTINCT - 74 ) + + MAX( - 86 )
----
-160

skipif mysql # not compatible
query I rowsort label-1407
SELECT + + MIN ( DISTINCT - 74 ) + + MAX ( - 86 )
----
-160

query I rowsort
SELECT ALL - 45 * 0 col1
----
0

query I rowsort
SELECT ( - 51 ) AS col0
----
-51

query I rowsort
SELECT + 22 - + 64
----
-42

query I rowsort
SELECT 25 col1
----
25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1413
SELECT CAST( NULL AS SIGNED ) * - - 17 + - 76 + 50 / - 87 + - - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-1413
SELECT CAST ( NULL AS INTEGER ) * - - 17 + - 76 + 50 / - 87 + - - 85
----
NULL

query I rowsort
SELECT ALL 83 * - 55 AS col1
----
-4565

query I rowsort
SELECT ALL - 56 * + 54 + - 84 + 34
----
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT ALL 38 * + COUNT( * ) + + - 52
----
-14

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL 38 * + COUNT ( * ) + + - 52
----
-14

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT - 30 DIV - 53 * - 17
----
0

skipif mysql # not compatible
query I rowsort label-1418
SELECT - 30 / - 53 * - 17
----
0

query II rowsort
SELECT - 23 - 91, 44 AS col1
----
-114
44

query I rowsort
SELECT - 94 + - 60 AS col2
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT - COUNT( * ) + + + 68 * - + 6 * 35 AS col2
----
-14281

skipif mysql # not compatible
query I rowsort label-1421
SELECT - COUNT ( * ) + + + 68 * - + 6 * 35 AS col2
----
-14281

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT ALL + 33 + + + 80 + - COUNT( * ) * 66 - + 22 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + 33 + + + 80 + - COUNT ( * ) * 66 - + 22 AS col0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1423
SELECT - MIN( - - 85 ) AS col2, - CAST( NULL AS SIGNED ) AS col2
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-1423
SELECT - MIN ( - - 85 ) AS col2, - CAST ( NULL AS INTEGER ) AS col2
----
-85
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN( ALL + - 52 ) ) * 39 AS col1
----
-15
2847

skipif mysql # not compatible
query II rowsort label-1424
SELECT - 76 + 61, - NULLIF ( - + 73, + 7 + - + MIN ( ALL + - 52 ) ) * 39 AS col1
----
-15
2847

onlyif mysql # aggregate syntax: 
query II rowsort label-1425
SELECT - 40 + + COALESCE ( + - 18, - COUNT( * ) ) AS col1, 96
----
-58
96

skipif mysql # not compatible
query II rowsort label-1425
SELECT - 40 + + COALESCE ( + - 18, - COUNT ( * ) ) AS col1, 96
----
-58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT ALL - MAX( - - 97 ) - 66 * - 72 AS col2
----
4655

skipif mysql # not compatible
query I rowsort label-1426
SELECT ALL - MAX ( - - 97 ) - 66 * - 72 AS col2
----
4655

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1427
SELECT DISTINCT CASE - - ( - + 52 ) WHEN + CASE + + NULLIF ( - 99, + + CAST( + + 19 AS SIGNED ) ) WHEN ( 49 ) + 31 THEN + 31 * 77 ELSE 14 / - 87 END THEN MIN( ALL 74 ) WHEN 80 - - 7 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT CASE - - ( - + 52 ) WHEN + CASE + + NULLIF ( - 99, + + CAST ( + + 19 AS INTEGER ) ) WHEN ( 49 ) + 31 THEN + 31 * 77 ELSE 14 / - 87 END THEN MIN ( ALL 74 ) WHEN 80 - - 7 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1428
SELECT - NULLIF ( - 79, + + ( 4 ) + 34 * - 11 - COUNT( * ) ) + - + ( 42 ) + + CAST( - 54 AS SIGNED ) * + 30 AS col1
----
-1583

skipif mysql # not compatible
query I rowsort label-1428
SELECT - NULLIF ( - 79, + + ( 4 ) + 34 * - 11 - COUNT ( * ) ) + - + ( 42 ) + + CAST ( - 54 AS INTEGER ) * + 30 AS col1
----
-1583

query I rowsort
SELECT DISTINCT 43
----
43

query I rowsort
SELECT ALL ( 92 )
----
92

query I rowsort
SELECT - + 62 * + 4
----
-248

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

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

query I rowsort
SELECT + - 98 + 53
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL - 92 - COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL - 92 - COUNT ( * )
----
-93

query I rowsort
SELECT + + 23 + - 53 AS col2
----
-30

query I rowsort
SELECT ALL 21 * + 76 + + 54 / - CASE + 59 WHEN 77 * 10 * - + 50 + + + 83 THEN + 75 WHEN 65 * 11 THEN NULL END / 95 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 78 col0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-1438
SELECT ALL + - MAX( 12 ) AS col1, + 61
----
-12
61

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL + - MAX ( 12 ) AS col1, + 61
----
-12
61

query I rowsort
SELECT + 84 * + - 44 + + 66 AS col2
----
-3630

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT - - 85 DIV + 77 + + 5 + 4 * + + ( + COUNT( + + 36 ) ) * + - 84 * - - 3 col1
----
-1002

skipif mysql # not compatible
query I rowsort label-1443
SELECT - - 85 / + 77 + + 5 + 4 * + + ( + COUNT ( + + 36 ) ) * + - 84 * - - 3 col1
----
-1002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1444
SELECT ALL - ( - + 16 ) DIV + + CASE ( - 60 ) WHEN 16 + + + 85 + - - 62 * - + 9 * 95 THEN NULL WHEN 90 THEN NULL ELSE 63 END + + CASE - ( COUNT( * ) ) + 57 WHEN 48 THEN + 69 ELSE - 86 END
----
-86

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - ( - + 16 ) / + + CASE ( - 60 ) WHEN 16 + + + 85 + - - 62 * - + 9 * 95 THEN NULL WHEN 90 THEN NULL ELSE 63 END + + CASE - ( COUNT ( * ) ) + 57 WHEN 48 THEN + 69 ELSE - 86 END
----
-86

query II rowsort
SELECT ALL + ( + + 46 ) AS col1, ( 70 )
----
46
70

query I rowsort
SELECT + CASE + COALESCE ( 46, - - 7, 97 ) WHEN + 85 THEN NULL ELSE + - 55 * 93 END * 56
----
-286440

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ( + 52 ) * + COUNT( * ) + 35 + - 89
----
-2

skipif mysql # not compatible
query I rowsort label-1447
SELECT ( + 52 ) * + COUNT ( * ) + 35 + - 89
----
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT COALESCE ( - - 49, - + COUNT( * ), + 65 )
----
49

skipif mysql # not compatible
query I rowsort label-1449
SELECT COALESCE ( - - 49, - + COUNT ( * ), + 65 )
----
49

query I rowsort
SELECT + 20 + - - ( - + 44 ) AS col2
----
-24

query I rowsort
SELECT + 54 * 45 AS col2
----
2430

query I rowsort
SELECT DISTINCT + 48 AS col2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1453
SELECT 65 * - - CAST( 65 AS SIGNED ) + - - 7 AS col0
----
4232

skipif mysql # not compatible
query I rowsort label-1453
SELECT 65 * - - CAST ( 65 AS INTEGER ) + - - 7 AS col0
----
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT CASE + - 61 WHEN + COALESCE ( + + 37, + 77, 90 + + 21 ) * 68 THEN - COUNT( + 49 ) - + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1454
SELECT CASE + - 61 WHEN + COALESCE ( + + 37, + 77, 90 + + 21 ) * 68 THEN - COUNT ( + 49 ) - + COUNT ( * ) END
----
NULL

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

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

query I rowsort
SELECT + NULLIF ( 98, + + ( - 96 ) ) * - - 84 * 23 + - 24
----
189312

query I rowsort
SELECT + 24 + + - 16 + + 87 + 26 + 1 * - 36 + 66 * 89 AS col2
----
5959

query II rowsort
SELECT - 12, 36 AS col2
----
-12
36

query I rowsort
SELECT 41 + 84 col2
----
125

onlyif mysql # aggregate syntax: 
query II rowsort label-1460
SELECT - 68 col0, - SUM( DISTINCT 84 ) col1
----
-68
-84

skipif mysql # not compatible
query II rowsort label-1460
SELECT - 68 col0, - SUM ( DISTINCT 84 ) col1
----
-68
-84

query I rowsort
SELECT 57 * + 84 AS col1
----
4788

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

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

query I rowsort
SELECT ALL 70 - + 70
----
0

query I rowsort
SELECT ALL + 2 - - - 65
----
-63

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

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

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

query I rowsort
SELECT - 36 AS col2
----
-36

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

skipif mysql # not compatible
query I rowsort label-1469
SELECT CAST ( NULL AS INTEGER ) + + 2 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1470
SELECT 66 DIV - 67
----
0

skipif mysql # not compatible
query I rowsort label-1470
SELECT 66 / - 67
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT CAST( NULL AS SIGNED ) * 30 * + 24 / - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-1471
SELECT CAST ( NULL AS INTEGER ) * 30 * + 24 / - 15
----
NULL

query I rowsort
SELECT 72 + 42
----
114

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

skipif mysql # not compatible
query II rowsort label-1473
SELECT 29, - COUNT ( * ) AS col2
----
29
-1

query II rowsort
SELECT ALL - + 53 - + 59 * - - 13 col1, + 56 * + 11 AS col1
----
-820
616

query I rowsort
SELECT 26 * - - 58 * - - 68
----
102544

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - SUM( 26 )
----
-26

skipif mysql # not compatible
query I rowsort label-1476
SELECT - SUM ( 26 )
----
-26

query I rowsort
SELECT - - 85
----
85

query I rowsort
SELECT 72 - - 1 + - 12
----
61

query I rowsort
SELECT - - 16
----
16

query I rowsort
SELECT - 79 - + 91 * + + ( + ( 3 ) ) * + 41 + - - 71
----
-11201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1481
SELECT ALL + + MIN( + 23 ) * - 38 * + 2 * - NULLIF ( + + 74, + + ( + COUNT( * ) ) ) * - 89 * 81 DIV 9 AS col0
----
-103610952

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL + + MIN ( + 23 ) * - 38 * + 2 * - NULLIF ( + + 74, + + ( + COUNT ( * ) ) ) * - 89 * 81 / 9 AS col0
----
-103610952

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT 65 + + - 78 DIV - 67
----
66

skipif mysql # not compatible
query I rowsort label-1483
SELECT 65 + + - 78 / - 67
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT ALL + COUNT( * ) * - - ( 57 ) * + - 16
----
-912

skipif mysql # not compatible
query I rowsort label-1485
SELECT ALL + COUNT ( * ) * - - ( 57 ) * + - 16
----
-912

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT 72 * - 72 + + ( - 74 ) * + - MIN( - 26 ) + 17 * + COALESCE ( - - 61, CAST( NULL AS SIGNED ) * 64 - 51, COUNT( * ) ) * 7 + + 4 AS col1
----
155

skipif mysql # not compatible
query I rowsort label-1487
SELECT 72 * - 72 + + ( - 74 ) * + - MIN ( - 26 ) + 17 * + COALESCE ( - - 61, CAST ( NULL AS INTEGER ) * 64 - 51, COUNT ( * ) ) * 7 + + 4 AS col1
----
155

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

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

query I rowsort
SELECT ALL - - 12
----
12

query I rowsort
SELECT + - 21 AS col2
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT 64 DIV - - 26
----
2

skipif mysql # not compatible
query I rowsort label-1492
SELECT 64 / - - 26
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ALL - 54 + + COUNT( * ) * + + 16 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - 54 + + COUNT ( * ) * + + 16 AS col0
----
-38

query I rowsort
SELECT DISTINCT 39 + + 59 AS col2
----
98

query I rowsort
SELECT 13 + 72 AS col1
----
85

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

query I rowsort
SELECT ALL 57 + + 95 * - - 79 AS col2
----
7562

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

query I rowsort
SELECT ALL - 5 + + + 62 * + - 8 + - 71
----
-572

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT 31 DIV - 38 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1502
SELECT 31 / - 38 AS col2
----
0

query I rowsort
SELECT ALL 30 + - 14
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-1504
SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT( * ) WHEN 67 / + SUM( ALL - 65 ) THEN + 2 + COUNT( * ) * 56 END AS col1
----
44
NULL

skipif mysql # not compatible
query II rowsort label-1504
SELECT 44 AS col1, - CASE + 45 WHEN - - 27 * - 25 * - 91 THEN COALESCE ( + 19, + 5, + - 46 + - 63 ) WHEN + COUNT ( DISTINCT + 34 ) * AVG ( ALL 96 ) THEN + COUNT ( * ) WHEN 67 / + SUM ( ALL - 65 ) THEN + 2 + COUNT ( * ) * 56 END AS col1
----
44
NULL

query I rowsort
SELECT 15 * + - 98
----
-1470

onlyif mysql # aggregate syntax: 
query I rowsort label-1506
SELECT 70 * - 46 * - 5 + - - 62 * + NULLIF ( 70, MIN( ALL + 5 ) ) + - + SUM( 35 ) AS col0
----
20405

skipif mysql # not compatible
query I rowsort label-1506
SELECT 70 * - 46 * - 5 + - - 62 * + NULLIF ( 70, MIN ( ALL + 5 ) ) + - + SUM ( 35 ) AS col0
----
20405

query II rowsort
SELECT 87, 20 + - 18 AS col1
----
87
2

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

query I rowsort
SELECT DISTINCT - 69
----
-69

query I rowsort
SELECT DISTINCT 72 col0
----
72

query I rowsort
SELECT ALL 52 - - 23 - - 70
----
145

query I rowsort
SELECT DISTINCT 26 col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT 81 - + 45 * - NULLIF ( - 0, + COUNT( - + 55 ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT 81 - + 45 * - NULLIF ( - 0, + COUNT ( - + 55 ) ) AS col0
----
81

query I rowsort
SELECT 30 + 51
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1515
SELECT COALESCE ( - - 80, + 4 DIV - + MAX( DISTINCT - 52 ) ) * + 93 AS col2
----
7440

skipif mysql # not compatible
query I rowsort label-1515
SELECT COALESCE ( - - 80, + 4 / - + MAX ( DISTINCT - 52 ) ) * + 93 AS col2
----
7440

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1517
SELECT DISTINCT 10 * + - COALESCE ( SUM( ALL - 94 ), + - CAST( NULL AS SIGNED ) + - - 36 + - + 57 * + 24, - + 80 ), + 4 * 36 AS col2
----
940
144

skipif mysql # not compatible
query II rowsort label-1517
SELECT DISTINCT 10 * + - COALESCE ( SUM ( ALL - 94 ), + - CAST ( NULL AS INTEGER ) + - - 36 + - + 57 * + 24, - + 80 ), + 4 * 36 AS col2
----
940
144

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

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

query I rowsort
SELECT + COALESCE ( + ( - 3 ), + - ( + - 8 ) ) AS col2
----
-3

query I rowsort
SELECT ALL NULLIF ( - + 26, - 7 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT SUM( ALL + 92 ) + - + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( ALL + 92 ) + - + COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-1522
SELECT ALL + 90 * 44 + 95 + + COUNT( + 4 ) * + ( - - 13 ), + 99 AS col0
----
4068
99

skipif mysql # not compatible
query II rowsort label-1522
SELECT ALL + 90 * 44 + 95 + + COUNT ( + 4 ) * + ( - - 13 ), + 99 AS col0
----
4068
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT 18 * + CASE + 32 WHEN + ( 54 ) THEN NULL ELSE MAX( + - 93 ) END AS col1
----
-1674

skipif mysql # not compatible
query I rowsort label-1523
SELECT 18 * + CASE + 32 WHEN + ( 54 ) THEN NULL ELSE MAX ( + - 93 ) END AS col1
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT DISTINCT COALESCE ( - + 26, + 6, - 70, 87 ) + 55 * - - ( MAX( 0 ) ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT COALESCE ( - + 26, + 6, - 70, 87 ) + 55 * - - ( MAX ( 0 ) ) col1
----
-26

query I rowsort
SELECT - 86 * 28 col0
----
-2408

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

query I rowsort
SELECT ALL + 40 + + 37 * - + 57 AS col0
----
-2069

query I rowsort
SELECT 97 + - 34
----
63

query II rowsort
SELECT + 17, 28 col2
----
17
28

onlyif mysql # aggregate syntax: 
query II rowsort label-1530
SELECT 56 + COUNT( * ) AS col0, - ( + 57 ) col0
----
57
-57

skipif mysql # not compatible
query II rowsort label-1530
SELECT 56 + COUNT ( * ) AS col0, - ( + 57 ) col0
----
57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT - MIN( ALL - 3 )
----
3

skipif mysql # not compatible
query I rowsort label-1531
SELECT - MIN ( ALL - 3 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1532
SELECT MAX( + 15 ) * + 6 + + 83 - 97 * + - 18 + + CASE - COUNT( * ) WHEN - - ( + 94 ) + - 83 + - 74 * 51 THEN 13 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1532
SELECT MAX ( + 15 ) * + 6 + + 83 - 97 * + - 18 + + CASE - COUNT ( * ) WHEN - - ( + 94 ) + - 83 + - 74 * 51 THEN 13 END
----
NULL

query I rowsort
SELECT - 26 + + 90 * + 34 AS col2
----
3034

query II rowsort
SELECT DISTINCT 6 AS col2, + 28 AS col2
----
6
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - 58 + SUM( + 37 ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - 58 + SUM ( + 37 ) AS col2
----
-21

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

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

query II rowsort
SELECT 76 AS col2, 16
----
76
16

query I rowsort
SELECT + ( 57 ) col1
----
57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1540
SELECT DISTINCT - 55 * - + 3 / + ( 38 ) * + COUNT( * ) / - - CASE - + 1 WHEN + + 20 * 68 + - CAST( + 10 AS SIGNED ) THEN + 60 - 74 ELSE NULL END + + NULLIF ( 28 + + 20, + 94 - - 52 ) / 21
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT DISTINCT - 55 * - + 3 / + ( 38 ) * + COUNT ( * ) / - - CASE - + 1 WHEN + + 20 * 68 + - CAST ( + 10 AS INTEGER ) THEN + 60 - 74 ELSE NULL END + + NULLIF ( 28 + + 20, + 94 - - 52 ) / 21
----
NULL

query I rowsort
SELECT 13 AS col0
----
13

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1543
SELECT DISTINCT + + COUNT( * ) * - 63 + + - 83 + + 13 DIV 87
----
-146

skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT + + COUNT ( * ) * - 63 + + - 83 + + 13 / 87
----
-146

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

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

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

query I rowsort
SELECT DISTINCT - 80 * - 96 * - 57 - - 70 AS col0
----
-437690

query I rowsort
SELECT 74 * - 47 + ( - 2 ) + + + 91
----
-3389

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - 12 * COUNT( * ) * - 42 AS col0
----
504

skipif mysql # not compatible
query I rowsort label-1548
SELECT - 12 * COUNT ( * ) * - 42 AS col0
----
504

onlyif mysql # aggregate syntax: 
query II rowsort label-1549
SELECT + 69 * - - 88 + - + 93 col1, COUNT( * )
----
5979
1

skipif mysql # not compatible
query II rowsort label-1549
SELECT + 69 * - - 88 + - + 93 col1, COUNT ( * )
----
5979
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1550
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN CAST( + 78 AS SIGNED ) ELSE + 0 DIV 80 - - - MIN( ALL 0 ) END
----
0

skipif mysql # not compatible
query I rowsort label-1550
SELECT ALL + CASE WHEN NULL IS NOT NULL THEN CAST ( + 78 AS INTEGER ) ELSE + 0 / 80 - - - MIN ( ALL 0 ) END
----
0

query I rowsort
SELECT + 6 * - 23 + - 25
----
-163

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

query I rowsort
SELECT ALL 76 * - 18
----
-1368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT - ( - - 7 ) DIV SUM( DISTINCT + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - ( - - 7 ) / SUM ( DISTINCT + 39 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1555
SELECT ALL + CASE + COUNT( * ) WHEN CAST( - NULLIF ( 82, - - ( - - 4 ) * - 5 + 38 ) AS DECIMAL ) THEN - 4 + + 89 + + 70 / - 30 ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL + CASE + COUNT ( * ) WHEN CAST ( - NULLIF ( 82, - - ( - - 4 ) * - 5 + 38 ) AS REAL ) THEN - 4 + + 89 + + 70 / - 30 ELSE COUNT ( * ) END
----
1

query II rowsort
SELECT - 17 * + 91, - 95 * + ( 24 ) * 9 AS col2
----
-1547
-20520

query I rowsort
SELECT ALL - 11 * - 78 AS col1
----
858

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT ALL - COUNT( * ) * + - SUM( ALL 3 ) AS col2, 28 col2
----
3
28

skipif mysql # not compatible
query II rowsort label-1558
SELECT ALL - COUNT ( * ) * + - SUM ( ALL 3 ) AS col2, 28 col2
----
3
28

query I rowsort
SELECT - 81 * + 33 AS col1
----
-2673

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1561
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-1561
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + 77 )
----
77

query I rowsort
SELECT ALL - 43 AS col2
----
-43

query I rowsort
SELECT ALL + - 94 + 40
----
-54

query I rowsort
SELECT - ( + 22 ) + - + 78
----
-100

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

query I rowsort
SELECT + 41 + 16 - 88 AS col2
----
-31

query I rowsort
SELECT - + 71
----
-71

query I rowsort
SELECT - + CASE + 45 WHEN + 58 THEN + + 51 - + 39 * - AVG ( + 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT SUM( + 41 ) col1
----
41

skipif mysql # not compatible
query I rowsort label-1569
SELECT SUM ( + 41 ) col1
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT ALL + ( + 40 ) + - 61 DIV - 77 + MAX( DISTINCT + 42 ) * COALESCE ( + 32, - 96, + NULLIF ( + 50, + - 16 ) * 22 ) col1
----
1384

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + ( + 40 ) + - 61 / - 77 + MAX ( DISTINCT + 42 ) * COALESCE ( + 32, - 96, + NULLIF ( + 50, + - 16 ) * 22 ) col1
----
1384

query I rowsort
SELECT + - 23 - + 93
----
-116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + + COUNT( * ) - 15
----
-14

skipif mysql # not compatible
query I rowsort label-1573
SELECT + + COUNT ( * ) - 15
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1574
SELECT DISTINCT + 85 * + + 78 + - + 63 DIV MIN( + 1 ) col0, ( - 90 ) * - 35
----
6567
3150

skipif mysql # not compatible
query II rowsort label-1574
SELECT DISTINCT + 85 * + + 78 + - + 63 / MIN ( + 1 ) col0, ( - 90 ) * - 35
----
6567
3150

query I rowsort
SELECT ALL 60 + - 83 AS col0
----
-23

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

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

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

query I rowsort
SELECT - - 7 - - 90 AS col1
----
97

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1582
SELECT DISTINCT - ( - 68 ) DIV + NULLIF ( - 93, ( + - 92 ) ) - 21 - - COUNT( * ) AS col1, - COALESCE ( 77, 94 * + 82 + + - 55 + 82 ) AS col2
----
-20
-77

skipif mysql # not compatible
query II rowsort label-1582
SELECT DISTINCT - ( - 68 ) / + NULLIF ( - 93, ( + - 92 ) ) - 21 - - COUNT ( * ) AS col1, - COALESCE ( 77, 94 * + 82 + + - 55 + 82 ) AS col2
----
-20
-77

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1584
SELECT DISTINCT CASE - 24 WHEN - 34 * - - 54 * 51 / + + 72 * 19 * + + 78 THEN - - 37 + NULLIF ( 79, + ( + SUM( + 41 ) ) ) WHEN - 45 THEN NULL WHEN NULLIF ( 27, 31 ) / + 59 + 65 THEN NULL ELSE NULL END * CAST( NULL AS SIGNED ) - - MIN( ALL COALESCE ( 43, + 13 * 92, - ( CAST( NULL AS SIGNED ) ) * - 29 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT CASE - 24 WHEN - 34 * - - 54 * 51 / + + 72 * 19 * + + 78 THEN - - 37 + NULLIF ( 79, + ( + SUM ( + 41 ) ) ) WHEN - 45 THEN NULL WHEN NULLIF ( 27, 31 ) / + 59 + 65 THEN NULL ELSE NULL END * CAST ( NULL AS INTEGER ) - - MIN ( ALL COALESCE ( 43, + 13 * 92, - ( CAST ( NULL AS INTEGER ) ) * - 29 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 16 * 98
----
-1568

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT ( MIN( + + ( 29 ) ) ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-1586
SELECT ( MIN ( + + ( 29 ) ) ) AS col2
----
29

query I rowsort
SELECT ALL 47 * - 33 AS col0
----
-1551

query I rowsort
SELECT DISTINCT + 79
----
79

query II rowsort
SELECT DISTINCT + 18 col0, 67
----
18
67

query I rowsort
SELECT ( - - 85 ) AS col0
----
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT + 5 + + - CASE 63 WHEN - - MIN( ALL ( 61 ) ) - - 48 THEN + 96 * + 58 WHEN + + AVG ( - - 15 ) THEN + + 21 - - ( + 52 ) * - 19 END * 2
----
NULL

skipif mysql # not compatible
query I rowsort label-1592
SELECT + 5 + + - CASE 63 WHEN - - MIN ( ALL ( 61 ) ) - - 48 THEN + 96 * + 58 WHEN + + AVG ( - - 15 ) THEN + + 21 - - ( + 52 ) * - 19 END * 2
----
NULL

query II rowsort
SELECT + 21 AS col2, 82 AS col2
----
21
82

query I rowsort
SELECT - 58 * + - 54
----
3132

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT DISTINCT + ( - MAX( - 60 ) ) * COUNT( * ) + 40 AS col0
----
100

skipif mysql # not compatible
query I rowsort label-1596
SELECT DISTINCT + ( - MAX ( - 60 ) ) * COUNT ( * ) + 40 AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT ALL 19 * - - 43 * - - 55 * + + COUNT( * ) + - 47 * - 1 + - COUNT( ALL - + 70 ) AS col0, COUNT( 40 )
----
44981
1

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL 19 * - - 43 * - - 55 * + + COUNT ( * ) + - 47 * - 1 + - COUNT ( ALL - + 70 ) AS col0, COUNT ( 40 )
----
44981
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT - COUNT( * ) + 15
----
14

skipif mysql # not compatible
query I rowsort label-1598
SELECT - COUNT ( * ) + 15
----
14

query I rowsort
SELECT ALL 44 * - 95 * - 91 + - - 47 - - 40
----
380467

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

query I rowsort
SELECT - 59 + 72 AS col0
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1602
SELECT - + MIN( DISTINCT + + 82 ) + CAST( - 33 AS SIGNED ) AS col1
----
-115

skipif mysql # not compatible
query I rowsort label-1602
SELECT - + MIN ( DISTINCT + + 82 ) + CAST ( - 33 AS INTEGER ) AS col1
----
-115

onlyif mysql # DIV for integer division: 
query II rowsort label-1603
SELECT - - 18 DIV - - 48 - - - 81 col1, - 6 + 86
----
-81
80

skipif mysql # not compatible
query II rowsort label-1603
SELECT - - 18 / - - 48 - - - 81 col1, - 6 + 86
----
-81
80

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

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

query I rowsort
SELECT - 62 AS col1
----
-62

query I rowsort
SELECT - + 44 * + 50 - - + 18 + 67 + - ( + 51 ) * + 81 + - + 29 AS col1
----
-6275

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT + + COUNT( * ) + - - 43
----
44

skipif mysql # not compatible
query I rowsort label-1607
SELECT + + COUNT ( * ) + - - 43
----
44

query I rowsort
SELECT - - 70
----
70

query I rowsort
SELECT + - 63 + - 13
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1610
SELECT ALL 78 + + COUNT( + 73 ) + + + ( + - 84 ) + + 37 * - NULLIF ( 42, + COUNT( ALL - ( 72 ) ) + 74 ) * - 27 + 91 * 49
----
46412

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 78 + + COUNT ( + 73 ) + + + ( + - 84 ) + + 37 * - NULLIF ( 42, + COUNT ( ALL - ( 72 ) ) + 74 ) * - 27 + 91 * 49
----
46412

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

skipif mysql # not compatible
query I rowsort label-1611
SELECT DISTINCT + 30 + COUNT ( * ) AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT - - SUM( DISTINCT 81 ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-1612
SELECT - - SUM ( DISTINCT 81 ) AS col1
----
81

query I rowsort
SELECT ALL + - CASE - 54 WHEN + 99 THEN 49 * + 98 + + - 48 - - 1 WHEN + 52 THEN + - 82 WHEN 6 * + 49 THEN - 87 * - ( + 97 ) END - + 26 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 24
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1615
SELECT + 97 * + CAST( 45 AS SIGNED ) * + + NULLIF ( + 26, - - NULLIF ( 18, - 51 ) ) col2, + 48
----
113490
48

skipif mysql # not compatible
query II rowsort label-1615
SELECT + 97 * + CAST ( 45 AS INTEGER ) * + + NULLIF ( + 26, - - NULLIF ( 18, - 51 ) ) col2, + 48
----
113490
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1617
SELECT + MIN( NULLIF ( 72, + - CAST( 27 AS DECIMAL ) ) ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-1617
SELECT + MIN ( NULLIF ( 72, + - CAST ( 27 AS REAL ) ) ) AS col1
----
72

query II rowsort
SELECT ALL 42 AS col1, + 66
----
42
66

query III rowsort
SELECT 65 * 5 + + 39, - 92 col2, + 8 AS col0
----
364
-92
8

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

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

query I rowsort
SELECT ALL - 66 col1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1622
SELECT - 60 DIV 86 DIV COUNT( ALL - 42 ) + - NULLIF ( - 88, - 67 + + 93 - - COUNT( * ) ) AS col0, 71 + 89 AS col2
----
88
160

skipif mysql # not compatible
query II rowsort label-1622
SELECT - 60 / 86 / COUNT ( ALL - 42 ) + - NULLIF ( - 88, - 67 + + 93 - - COUNT ( * ) ) AS col0, 71 + 89 AS col2
----
88
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL COUNT( * ) * 74 * 41 AS col1
----
3034

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL COUNT ( * ) * 74 * 41 AS col1
----
3034

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 56 + - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1625
SELECT 56 + - COUNT ( * ) AS col1
----
55

query I rowsort
SELECT DISTINCT - 92
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1627
SELECT COUNT( * ) * - CAST( - CAST( 24 AS SIGNED ) AS SIGNED ) col2
----
24

skipif mysql # not compatible
query I rowsort label-1627
SELECT COUNT ( * ) * - CAST ( - CAST ( 24 AS INTEGER ) AS INTEGER ) col2
----
24

query I rowsort
SELECT ( - - 40 ) + - 3 AS col1
----
37

query I rowsort
SELECT ALL 93 + - 93 AS col0
----
0

query I rowsort
SELECT ALL 52 * + 26
----
1352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT DISTINCT CAST( - 1 AS SIGNED ) + + 69 AS col1
----
68

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT CAST ( - 1 AS INTEGER ) + + 69 AS col1
----
68

query I rowsort
SELECT ALL 57 + 50 AS col0
----
107

query I rowsort
SELECT ALL - NULLIF ( + 74, 61 * + 51 + 63 )
----
-74

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

query I rowsort
SELECT DISTINCT 92 + - 39 * - 80
----
3212

query I rowsort
SELECT ALL - 49 + + 34
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1637
SELECT ALL COUNT( * ) * + COUNT( - - 43 ) / CAST( 78 AS SIGNED ) * + + CASE + 67 WHEN + 21 THEN - - 35 WHEN - AVG ( 75 ) + + + 12 THEN NULL END * + CAST( 70 AS SIGNED ) - - COALESCE ( 26, - 87 + + MIN( DISTINCT + 23 ), + 86 / + ( 3 ) + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL COUNT ( * ) * + COUNT ( - - 43 ) / CAST ( 78 AS INTEGER ) * + + CASE + 67 WHEN + 21 THEN - - 35 WHEN - AVG ( 75 ) + + + 12 THEN NULL END * + CAST ( 70 AS INTEGER ) - - COALESCE ( 26, - 87 + + MIN ( DISTINCT + 23 ), + 86 / + ( 3 ) + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1638
SELECT ALL - ( + CAST( NULL AS SIGNED ) ), 7 * 84 * + CAST( - 60 AS SIGNED ) * - ( - CAST( - - 39 AS SIGNED ) ) AS col1
----
NULL
-1375920

skipif mysql # not compatible
query II rowsort label-1638
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ), 7 * 84 * + CAST ( - 60 AS INTEGER ) * - ( - CAST ( - - 39 AS INTEGER ) ) AS col1
----
NULL
-1375920

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

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

query I rowsort
SELECT COALESCE ( 67, - 20 )
----
67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + + COUNT( * ) + + MIN( - + 6 )
----
-5

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL + + COUNT ( * ) + + MIN ( - + 6 )
----
-5

query I rowsort
SELECT - - 54 AS col2
----
54

query I rowsort
SELECT + 19
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1645
SELECT ALL + - 35 - + 71 + + 74 - - 56 DIV - + 24
----
-34

skipif mysql # not compatible
query I rowsort label-1645
SELECT ALL + - 35 - + 71 + + 74 - - 56 / - + 24
----
-34

query I rowsort
SELECT DISTINCT + 79 * 87 AS col0
----
6873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT + COUNT( ALL 39 ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT + COUNT ( ALL 39 ) / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1648
SELECT - 82 DIV 79 * 0 * - 43
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT - 82 / 79 * 0 * - 43
----
0

query I rowsort
SELECT ALL + 35 * 34
----
1190

query II rowsort
SELECT - 21 * 92 AS col1, 75 AS col2
----
-1932
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT COUNT( * ) + - + 3
----
-2

skipif mysql # not compatible
query I rowsort label-1651
SELECT COUNT ( * ) + - + 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1652
SELECT DISTINCT - - COUNT( * ) * + 78 * - MIN( ALL + 57 )
----
-4446

skipif mysql # not compatible
query I rowsort label-1652
SELECT DISTINCT - - COUNT ( * ) * + 78 * - MIN ( ALL + 57 )
----
-4446

query I rowsort
SELECT ALL + 46 col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT - 48 DIV + 17 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-1654
SELECT - 48 / + 17 AS col1
----
-2

query I rowsort
SELECT 34 * - 36
----
-1224

query I rowsort
SELECT - 62 - + 23 AS col2
----
-85

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

query II rowsort
SELECT 45 AS col0, 50
----
45
50

query I rowsort
SELECT 50 * - 12
----
-600

query I rowsort
SELECT + 6 col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1661
SELECT SUM( - + CAST( NULL AS SIGNED ) ) - + + 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1661
SELECT SUM ( - + CAST ( NULL AS INTEGER ) ) - + + 1 AS col0
----
NULL

query I rowsort
SELECT 40 * + + 69 col1
----
2760

onlyif mysql # DIV for integer division: 
query III rowsort label-1663
SELECT + 17 col1, + 62 DIV + 14 AS col0, + 8 + - + 28 + - 68 + + COALESCE ( + 11, - ( + 17 ) * - 12 + + - 58 )
----
17
4
-77

skipif mysql # not compatible
query III rowsort label-1663
SELECT + 17 col1, + 62 / + 14 AS col0, + 8 + - + 28 + - 68 + + COALESCE ( + 11, - ( + 17 ) * - 12 + + - 58 )
----
17
4
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT SUM( ALL 53 ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1664
SELECT SUM ( ALL 53 ) AS col0
----
53

query I rowsort
SELECT ALL 46 + 66 * 73 AS col2
----
4864

onlyif mysql # DIV for integer division: 
query I rowsort label-1666
SELECT ALL + 81 + + 84 + - + 65 DIV + 81 * 14
----
165

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + 81 + + 84 + - + 65 / + 81 * 14
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT MAX( ALL + 23 ) col0
----
23

skipif mysql # not compatible
query I rowsort label-1667
SELECT MAX ( ALL + 23 ) col0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1668
SELECT DISTINCT - 17 AS col1, - CAST( - + AVG ( CAST( - - 92 AS SIGNED ) ) AS SIGNED ) col1
----
-17
92

skipif mysql # not compatible
query II rowsort label-1668
SELECT DISTINCT - 17 AS col1, - CAST ( - + AVG ( CAST ( - - 92 AS INTEGER ) ) AS INTEGER ) col1
----
-17
92

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

query III rowsort
SELECT - 74, - ( 65 ) AS col0, + 44 * 51 * 33 + + 24 AS col1
----
-74
-65
74076

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1671
SELECT + 3 + + COALESCE ( 33, + + AVG ( - 81 ) + + + CAST( - 37 AS SIGNED ) ) DIV - 52, + 98 AS col0
----
3
98

skipif mysql # not compatible
query II rowsort label-1671
SELECT + 3 + + COALESCE ( 33, + + AVG ( - 81 ) + + + CAST ( - 37 AS INTEGER ) ) / - 52, + 98 AS col0
----
3
98

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

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

query I rowsort
SELECT DISTINCT - 74 * + - 29 + - 98 - NULLIF ( - + 84, + 71 ) AS col2
----
2132

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

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

query I rowsort
SELECT ALL - 41 * 8 AS col2
----
-328

query I rowsort
SELECT + 30 + - 20
----
10

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1679
SELECT - 81 AS col2, 91 * + CAST( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS SIGNED ) AS col2
----
-81
-7007

skipif mysql # not compatible
query II rowsort label-1679
SELECT - 81 AS col2, 91 * + CAST ( - NULLIF ( + 77, + 2 + - ( - 52 ) ) AS INTEGER ) AS col2
----
-81
-7007

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT - 79 + 93 + COUNT( * ) * + + 25
----
39

skipif mysql # not compatible
query I rowsort label-1681
SELECT - 79 + 93 + COUNT ( * ) * + + 25
----
39

query I rowsort
SELECT + - 84 * + - 88 + - - 89
----
7481

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

query I rowsort
SELECT ALL - 46 col2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-1685
SELECT DISTINCT + 33, 8 + + + 40 + - COUNT( * ) + + 73 * - - 81 * - 7 AS col0
----
33
-41344

skipif mysql # not compatible
query II rowsort label-1685
SELECT DISTINCT + 33, 8 + + + 40 + - COUNT ( * ) + + 73 * - - 81 * - 7 AS col0
----
33
-41344

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT - 55 * COUNT( * ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-1686
SELECT - 55 * COUNT ( * ) AS col2
----
-55

query I rowsort
SELECT DISTINCT - 79
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT - - CAST( - 73 AS SIGNED ) * - 48 * - 40
----
-140160

skipif mysql # not compatible
query I rowsort label-1688
SELECT - - CAST ( - 73 AS INTEGER ) * - 48 * - 40
----
-140160

query I rowsort
SELECT ALL + 57 * 37 AS col2
----
2109

onlyif mysql # DIV for integer division: 
query I rowsort label-1690
SELECT ALL + 84 DIV 72
----
1

skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL + 84 / 72
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1691
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( + 59 ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-1691
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( + 59 ) * - 4
----
NULL

query I rowsort
SELECT - ( 65 )
----
-65

query I rowsort
SELECT - 49 col0
----
-49

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

skipif mysql # not compatible
query I rowsort label-1694
SELECT DISTINCT - ( 93 ) + - - CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL - 57 * 80, 68 col2
----
-4560
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT - 88 DIV + 15 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-1696
SELECT - 88 / + 15 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1697
SELECT ALL + 94 + + 16 + - + ( + - MAX( ALL - - 54 ) ) + - 84 AS col2
----
80

skipif mysql # not compatible
query I rowsort label-1697
SELECT ALL + 94 + + 16 + - + ( + - MAX ( ALL - - 54 ) ) + - 84 AS col2
----
80

query II rowsort
SELECT 17 AS col1, - 51
----
17
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-1699
SELECT 52 col0, SUM( ALL 12 )
----
52
12

skipif mysql # not compatible
query II rowsort label-1699
SELECT 52 col0, SUM ( ALL 12 )
----
52
12

query I rowsort
SELECT ALL + 85 + + 71 * + + 69
----
4984

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL COUNT( * ) * 31 + + 59 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL COUNT ( * ) * 31 + + 59 AS col1
----
90

query I rowsort
SELECT ALL + NULLIF ( + - 7, - 72 )
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1704
SELECT ( + CASE NULLIF ( 86, + - 85 * 43 + + 56 * - 89 ) WHEN - - NULLIF ( + CAST( - 79 AS SIGNED ), 34 ) THEN NULL WHEN 66 + + + 15 THEN 78 * - 91 WHEN + CAST( NULLIF ( 50, - 56 * CAST( CAST( NULL AS DECIMAL ) * ( 76 ) AS SIGNED ) + + 6 * CASE 52 WHEN 99 * - 49 THEN COUNT( * ) END ) AS SIGNED ) + - ( 97 ) / + CAST( NULL AS SIGNED ) THEN 74 / 47 WHEN 60 * - COUNT( * ) + + 30 * + 23 THEN NULL ELSE + 88 END )
----
88

skipif mysql # not compatible
query I rowsort label-1704
SELECT ( + CASE NULLIF ( 86, + - 85 * 43 + + 56 * - 89 ) WHEN - - NULLIF ( + CAST ( - 79 AS INTEGER ), 34 ) THEN NULL WHEN 66 + + + 15 THEN 78 * - 91 WHEN + CAST ( NULLIF ( 50, - 56 * CAST ( CAST ( NULL AS REAL ) * ( 76 ) AS INTEGER ) + + 6 * CASE 52 WHEN 99 * - 49 THEN COUNT ( * ) END ) AS INTEGER ) + - ( 97 ) / + CAST ( NULL AS INTEGER ) THEN 74 / 47 WHEN 60 * - COUNT ( * ) + + 30 * + 23 THEN NULL ELSE + 88 END )
----
88

query I rowsort
SELECT ALL + 20
----
20

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

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

query I rowsort
SELECT + 22 + + + 23 AS col1
----
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1708
SELECT + COUNT( DISTINCT + 26 ) AS col2, + AVG ( DISTINCT + 28 ) * - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-1708
SELECT + COUNT ( DISTINCT + 26 ) AS col2, + AVG ( DISTINCT + 28 ) * - CAST ( NULL AS INTEGER )
----
1
NULL

query II rowsort
SELECT + 83 AS col1, 13 AS col1
----
83
13

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT + 98 + - ( 56 ) * + + COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 98 + - ( 56 ) * + + COUNT ( * )
----
42

query I rowsort
SELECT NULLIF ( - 11, 22 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT 22 * + + 16 + 1 DIV 76 AS col1
----
352

skipif mysql # not compatible
query I rowsort label-1712
SELECT 22 * + + 16 + 1 / 76 AS col1
----
352

query II rowsort
SELECT + 40 AS col2, - CASE + 20 WHEN 79 * 12 THEN + - 26 * - 63 ELSE NULL END AS col0
----
40
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT ALL - 45 * - - ( + 12 ) * COUNT( * ) - ( + 74 ) + 15
----
-599

skipif mysql # not compatible
query I rowsort label-1714
SELECT ALL - 45 * - - ( + 12 ) * COUNT ( * ) - ( + 74 ) + 15
----
-599

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

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 1 / + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT ALL 43 * - ( + 37 ) - SUM( DISTINCT + 57 )
----
-1648

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL 43 * - ( + 37 ) - SUM ( DISTINCT + 57 )
----
-1648

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL + + ( ( - CASE - - ( + AVG ( - 64 ) ) WHEN - COUNT( ALL - + 66 ) THEN + 15 * + 77 - 97 WHEN - + 76 + - - 70 THEN NULL ELSE NULL END ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL + + ( ( - CASE - - ( + AVG ( - 64 ) ) WHEN - COUNT ( ALL - + 66 ) THEN + 15 * + 77 - 97 WHEN - + 76 + - - 70 THEN NULL ELSE NULL END ) ) col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 32 + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 32 + 77
----
NULL

query I rowsort
SELECT DISTINCT + + 93
----
93

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT( * ), 84 ) ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-1721
SELECT DISTINCT + NULLIF ( + + 7, NULLIF ( - COUNT ( * ), 84 ) ) AS col1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT - + COALESCE ( + - 58, - + 40, 83 ) * - COALESCE ( - COUNT( * ), - 64 ) / + 70 + COUNT( * ) - + 1 + + - CASE 25 WHEN - 58 * - 63 THEN CAST( + - 38 AS SIGNED ) * 23 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT - + COALESCE ( + - 58, - + 40, 83 ) * - COALESCE ( - COUNT ( * ), - 64 ) / + 70 + COUNT ( * ) - + 1 + + - CASE 25 WHEN - 58 * - 63 THEN CAST ( + - 38 AS INTEGER ) * 23 ELSE NULL END
----
NULL

query II rowsort
SELECT 62 col0, - 98
----
62
-98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT - 71 * + 2 + - 8 * - 39 - - 96 DIV + 99 + - + 49 AS col2
----
121

skipif mysql # not compatible
query I rowsort label-1726
SELECT - 71 * + 2 + - 8 * - 39 - - 96 / + 99 + - + 49 AS col2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT + MAX( DISTINCT + 96 ) * - 35 AS col1
----
-3360

skipif mysql # not compatible
query I rowsort label-1727
SELECT + MAX ( DISTINCT + 96 ) * - 35 AS col1
----
-3360

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

query I rowsort
SELECT ALL + 69 * + + 9 AS col1
----
621

onlyif mysql # DIV for integer division: 
query I rowsort label-1730
SELECT + 39 DIV 48 * + 74 DIV - - 10 * 11
----
0

skipif mysql # not compatible
query I rowsort label-1730
SELECT + 39 / 48 * + 74 / - - 10 * 11
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1731
SELECT ALL 50 AS col2, ( + 0 ) * + + CASE 58 WHEN - 39 THEN + CAST( NULL AS SIGNED ) * + COUNT( ALL - 53 ) ELSE NULL END AS col0
----
50
NULL

skipif mysql # not compatible
query II rowsort label-1731
SELECT ALL 50 AS col2, ( + 0 ) * + + CASE 58 WHEN - 39 THEN + CAST ( NULL AS INTEGER ) * + COUNT ( ALL - 53 ) ELSE NULL END AS col0
----
50
NULL

query II rowsort
SELECT ALL 11 AS col2, + 35 - - + 53 + - - 87 * - - CASE + 45 WHEN 59 THEN NULL ELSE 92 END col1
----
11
8092

query I rowsort
SELECT - COALESCE ( - 87, + - 77, 66 ) AS col0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-1734
SELECT ALL COUNT( * ), 38 col0
----
1
38

skipif mysql # not compatible
query II rowsort label-1734
SELECT ALL COUNT ( * ), 38 col0
----
1
38

onlyif mysql # aggregate syntax: 
query II rowsort label-1735
SELECT ALL 40 + 30 + - MIN( + 69 ) AS col2, + ( NULLIF ( - + ( 98 ), - 65 + 4 * 24 * + + 26 * + 87 ) ) + + 22
----
1
-76

skipif mysql # not compatible
query II rowsort label-1735
SELECT ALL 40 + 30 + - MIN ( + 69 ) AS col2, + ( NULLIF ( - + ( 98 ), - 65 + 4 * 24 * + + 26 * + 87 ) ) + + 22
----
1
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1736
SELECT - CASE 89 WHEN + + 42 + 11 THEN NULL ELSE 17 END - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1736
SELECT - CASE 89 WHEN + + 42 + 11 THEN NULL ELSE 17 END - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - ( - - 19 ) + + 51 * 54 AS col2
----
2735

query II rowsort
SELECT DISTINCT 18 + - 49 AS col0, 4 AS col2
----
-31
4

query I rowsort
SELECT - ( 31 )
----
-31

query I rowsort
SELECT 14 col1
----
14

query I rowsort
SELECT - 47 * + 94 AS col1
----
-4418

query I rowsort
SELECT ALL NULLIF ( + + 2, - 93 * - 39 ) AS col0
----
2

query I rowsort
SELECT + 76 * 7
----
532

onlyif mysql # DIV for integer division: 
query I rowsort label-1744
SELECT DISTINCT 82 + - 6 * 47 DIV - 43 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-1744
SELECT DISTINCT 82 + - 6 * 47 / - 43 AS col1
----
88

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1746
SELECT DISTINCT - 35 + + 12 DIV + COUNT( * ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT - 35 + + 12 / + COUNT ( * ) AS col2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT ALL CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL CAST ( 12 AS INTEGER )
----
12

query I rowsort
SELECT - 70 AS col1
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT DISTINCT - 36 + + CASE - CASE - COUNT( * ) WHEN + + AVG ( ALL + 9 ) - + 86 THEN - + 9 END WHEN + - 50 * - NULLIF ( NULLIF ( - COUNT( * ), - ( - 92 ) * + 73 + - 78 ), + NULLIF ( - 18, - ( 5 ) ) ) DIV 8 THEN NULL WHEN 28 + 25 THEN + 33 ELSE 40 DIV 52 END
----
-36

skipif mysql # not compatible
query I rowsort label-1749
SELECT DISTINCT - 36 + + CASE - CASE - COUNT ( * ) WHEN + + AVG ( ALL + 9 ) - + 86 THEN - + 9 END WHEN + - 50 * - NULLIF ( NULLIF ( - COUNT ( * ), - ( - 92 ) * + 73 + - 78 ), + NULLIF ( - 18, - ( 5 ) ) ) / 8 THEN NULL WHEN 28 + 25 THEN + 33 ELSE 40 / 52 END
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-1750
SELECT + 75 + - 97 * COUNT( * ), - COUNT( * ) + 6 AS col2
----
-22
5

skipif mysql # not compatible
query II rowsort label-1750
SELECT + 75 + - 97 * COUNT ( * ), - COUNT ( * ) + 6 AS col2
----
-22
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1751
SELECT - 81 * + 47, COUNT( * ) col2
----
-3807
1

skipif mysql # not compatible
query II rowsort label-1751
SELECT - 81 * + 47, COUNT ( * ) col2
----
-3807
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1752
SELECT ALL 3 DIV - + 23 * + 63 * 55 - + + COALESCE ( + 74, + 15, + - ( - - ( + + 61 ) ) + + 4 + - 83 * - 41 DIV + 46 DIV + COALESCE ( 20, - + CAST( NULL AS SIGNED ) ) ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 3 / - + 23 * + 63 * 55 - + + COALESCE ( + 74, + 15, + - ( - - ( + + 61 ) ) + + 4 + - 83 * - 41 / + 46 / + COALESCE ( 20, - + CAST ( NULL AS INTEGER ) ) ) AS col0
----
-74

query I rowsort
SELECT ALL + 63 * + 63
----
3969

query I rowsort
SELECT DISTINCT - 9 * + 58 AS col2
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT + 22 * + 3 * - 81 * + + COUNT( * ) - + + 61 * MAX( ALL + + 48 ) * - 71 + 99
----
202641

skipif mysql # not compatible
query I rowsort label-1755
SELECT + 22 * + 3 * - 81 * + + COUNT ( * ) - + + 61 * MAX ( ALL + + 48 ) * - 71 + 99
----
202641

query I rowsort
SELECT - 51 * - 57
----
2907

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1758
SELECT ( - - 24 ) / COUNT( ALL 26 ) + 17 - + + COUNT( 2 ) / 2 * + CAST( NULL AS SIGNED ) - 16 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1758
SELECT ( - - 24 ) / COUNT ( ALL 26 ) + 17 - + + COUNT ( 2 ) / 2 * + CAST ( NULL AS INTEGER ) - 16 AS col1
----
NULL

query I rowsort
SELECT ALL + 64 * 60 AS col2
----
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1760
SELECT DISTINCT - 41 DIV - CAST( + + COUNT( DISTINCT - 55 ) AS SIGNED ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - 41 / - CAST ( + + COUNT ( DISTINCT - 55 ) AS INTEGER ) AS col2
----
41

query II rowsort
SELECT DISTINCT - ( 31 ) AS col1, + 60 AS col0
----
-31
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1762
SELECT ALL - + CAST( + - 55 AS SIGNED ) AS col1, 59
----
55
59

skipif mysql # not compatible
query II rowsort label-1762
SELECT ALL - + CAST ( + - 55 AS INTEGER ) AS col1, 59
----
55
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT - COUNT( * ) * - COUNT( 66 ) + 79 + 68 * - 98 * - - 82 + + - 92 AS col2
----
-546460

skipif mysql # not compatible
query I rowsort label-1763
SELECT - COUNT ( * ) * - COUNT ( 66 ) + 79 + 68 * - 98 * - - 82 + + - 92 AS col2
----
-546460

query I rowsort
SELECT - 24 * 53 - 64
----
-1336

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1766
SELECT 19 + + 4 * 97 + + COUNT( * ) * + 98 DIV 75
----
408

skipif mysql # not compatible
query I rowsort label-1766
SELECT 19 + + 4 * 97 + + COUNT ( * ) * + 98 / 75
----
408

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT - 89 * - NULLIF ( + 96, 5 ) * - 89 * 45 + - 32 + + COUNT( * ) * - + 10 * + 64 * 29
----
-34237312

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - 89 * - NULLIF ( + 96, 5 ) * - 89 * 45 + - 32 + + COUNT ( * ) * - + 10 * + 64 * 29
----
-34237312

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + COUNT( ALL 81 ) * SUM( - - 7 ) + + 86 col0
----
93

skipif mysql # not compatible
query I rowsort label-1768
SELECT + COUNT ( ALL 81 ) * SUM ( - - 7 ) + + 86 col0
----
93

query I rowsort
SELECT ( 76 ) * - - 48 * - 30
----
-109440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1770
SELECT DISTINCT 40 * - 16 + + COALESCE ( - - 41, - CAST( - COALESCE ( - 98, + COUNT( * ) ) AS SIGNED ) DIV 30 ) * + MIN( ALL ( - - 59 ) ) + - CAST( + - 34 AS SIGNED )
----
1813

skipif mysql # not compatible
query I rowsort label-1770
SELECT DISTINCT 40 * - 16 + + COALESCE ( - - 41, - CAST ( - COALESCE ( - 98, + COUNT ( * ) ) AS INTEGER ) / 30 ) * + MIN ( ALL ( - - 59 ) ) + - CAST ( + - 34 AS INTEGER )
----
1813

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

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL COUNT ( * ) + - 7 * - - COUNT ( * ) AS col1
----
-6

query I rowsort
SELECT ALL - - CASE 44 WHEN - ( - 32 ) THEN NULL WHEN - 32 THEN 89 + + + 1 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT DISTINCT - - 73 * - - COUNT( 42 )
----
73

skipif mysql # not compatible
query I rowsort label-1773
SELECT DISTINCT - - 73 * - - COUNT ( 42 )
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT MAX( 17 ) + + NULLIF ( - COUNT( * ), NULLIF ( 71, 25 ) ) DIV + COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1774
SELECT MAX ( 17 ) + + NULLIF ( - COUNT ( * ), NULLIF ( 71, 25 ) ) / + COUNT ( * ) AS col2
----
16

query I rowsort
SELECT ALL - + 67
----
-67

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

query II rowsort
SELECT - 42 + - + 1 AS col1, 37
----
-43
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT + 64 + + - 20 + - - SUM( 82 )
----
126

skipif mysql # not compatible
query I rowsort label-1778
SELECT + 64 + + - 20 + - - SUM ( 82 )
----
126

query I rowsort
SELECT ALL COALESCE ( 35, + 47 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT + 88 * + - SUM( ( + + 3 ) ) * + 83 + + 66 + - ( 75 ) AS col2
----
-21921

skipif mysql # not compatible
query I rowsort label-1780
SELECT + 88 * + - SUM ( ( + + 3 ) ) * + 83 + + 66 + - ( 75 ) AS col2
----
-21921

onlyif mysql # aggregate syntax: 
query I rowsort label-1781
SELECT ALL 77 + - - 95 + 97 - + + COUNT( * )
----
268

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL 77 + - - 95 + 97 - + + COUNT ( * )
----
268

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

query I rowsort
SELECT - 94 AS col0
----
-94

query I rowsort
SELECT DISTINCT 94 + 81
----
175

query I rowsort
SELECT 50 * + + 8
----
400

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

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

query I rowsort
SELECT ALL 71 * 66 * + 2 AS col2
----
9372

query I rowsort
SELECT ALL 29 + + - 74
----
-45

query I rowsort
SELECT DISTINCT 88 + - 59 col1
----
29

query I rowsort
SELECT ALL 23 * + - 37 AS col2
----
-851

onlyif mysql # aggregate syntax: 
query II rowsort label-1791
SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT( * ) AS col0
----
-4346
-82

skipif mysql # not compatible
query II rowsort label-1791
SELECT DISTINCT 82 * - ( 53 ) AS col0, - 83 + - - COUNT ( * ) AS col0
----
-4346
-82

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

query I rowsort
SELECT 55 + - 12
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1794
SELECT - 67 col2, CASE WHEN + 29 IS NOT NULL THEN 69 ELSE + MIN( + 72 ) END AS col0
----
-67
69

skipif mysql # not compatible
query II rowsort label-1794
SELECT - 67 col2, CASE WHEN + 29 IS NOT NULL THEN 69 ELSE + MIN ( + 72 ) END AS col0
----
-67
69

query II rowsort
SELECT ALL 69, + 4 * - 69 * + 73 col1
----
69
-20148

query I rowsort
SELECT 4 * + 35
----
140

query I rowsort
SELECT 75 * + + 64 AS col2
----
4800

query II rowsort
SELECT DISTINCT - 32 AS col2, - 31 AS col0
----
-32
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT ALL - COUNT( - + 82 ) * + 8 * ( + ( + COALESCE ( 3, MIN( ALL - 46 ) ) ) ) + - - 7
----
-17

skipif mysql # not compatible
query I rowsort label-1799
SELECT ALL - COUNT ( - + 82 ) * + 8 * ( + ( + COALESCE ( 3, MIN ( ALL - 46 ) ) ) ) + - - 7
----
-17

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1801
SELECT ( + + 39 ) * + 39 + + 58 + - 93 + - SUM( DISTINCT 47 ) * - + 10 DIV - + 1 AS col0
----
1016

skipif mysql # not compatible
query I rowsort label-1801
SELECT ( + + 39 ) * + 39 + + 58 + - 93 + - SUM ( DISTINCT 47 ) * - + 10 / - + 1 AS col0
----
1016

query I rowsort
SELECT + 49 * + 21
----
1029

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT ALL - COALESCE ( + MIN( - 81 ), COUNT( * ) ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL - COALESCE ( + MIN ( - 81 ), COUNT ( * ) ) AS col0
----
81

query I rowsort
SELECT + + 88 AS col2
----
88

query I rowsort
SELECT + + 18 col0
----
18

query I rowsort
SELECT ALL + 2 + 97 AS col1
----
99

query I rowsort
SELECT 48 col2
----
48

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1810
SELECT ALL - + 13 + + - 15 - - + CAST( + COUNT( * ) AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL - + 13 + + - 15 - - + CAST ( + COUNT ( * ) AS INTEGER )
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1811
SELECT ALL - COUNT( * ) * + MIN( ALL + + ( + + CAST( NULL AS SIGNED ) ) ) * + + ( 78 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - COUNT ( * ) * + MIN ( ALL + + ( + + CAST ( NULL AS INTEGER ) ) ) * + + ( 78 )
----
NULL

query II rowsort
SELECT ALL - + 38, 74 - + 28 col2
----
-38
46

query I rowsort
SELECT ALL + - 0 + + - 37 AS col1
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1814
SELECT DISTINCT + - 83 + - 14 + - + CAST( - 90 AS SIGNED ) DIV 28 + + 67 DIV + + 74
----
-94

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + - 83 + - 14 + - + CAST ( - 90 AS INTEGER ) / 28 + + 67 / + + 74
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT DISTINCT + COALESCE ( 36, 80 ) + + COUNT( * ) + - 8
----
29

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT + COALESCE ( 36, 80 ) + + COUNT ( * ) + - 8
----
29

query I rowsort
SELECT DISTINCT + 8 + - 28 col1
----
-20

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

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

query I rowsort
SELECT 82 * - 91 AS col1
----
-7462

query I rowsort
SELECT - 62 * - 8 AS col0
----
496

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT ALL + - 33 + + - COUNT( * ) * NULLIF ( + - 99, - + 40 )
----
66

skipif mysql # not compatible
query I rowsort label-1820
SELECT ALL + - 33 + + - COUNT ( * ) * NULLIF ( + - 99, - + 40 )
----
66

query I rowsort
SELECT 50 - - + 24 * + NULLIF ( + 79, 99 * - 79 )
----
1946

query II rowsort
SELECT ALL - 35 + + 38 AS col0, - 86 + + 55 AS col0
----
3
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1823
SELECT 59 - + 99 * - + COALESCE ( - 38, MAX( ALL - 57 ) DIV + 77 + + - 47 ) + - - 8 DIV 17 DIV - 50 AS col2
----
-3703

skipif mysql # not compatible
query I rowsort label-1823
SELECT 59 - + 99 * - + COALESCE ( - 38, MAX ( ALL - 57 ) / + 77 + + - 47 ) + - - 8 / 17 / - 50 AS col2
----
-3703

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT ALL - SUM( ALL - 13 ) * - 42
----
-546

skipif mysql # not compatible
query I rowsort label-1824
SELECT ALL - SUM ( ALL - 13 ) * - 42
----
-546

query I rowsort
SELECT ALL 47 * + 13 * - 37
----
-22607

query I rowsort
SELECT DISTINCT + 53 * 60
----
3180

query I rowsort
SELECT DISTINCT 53
----
53

query I rowsort
SELECT - 54 col1
----
-54

query II rowsort
SELECT ALL + 35 * + + 28 * + - 40 * + 23, 12 AS col2
----
-901600
12

query I rowsort
SELECT 59 + - 98 AS col2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT 94 - + 5 DIV + 32 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-1831
SELECT 94 - + 5 / + 32 AS col1
----
94

query I rowsort
SELECT ALL NULLIF ( + CASE + 55 WHEN + 5 + + ( 75 ) THEN NULL ELSE + + 23 END, - + 56 ) AS col2
----
23

query I rowsort
SELECT DISTINCT 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT SUM( ALL - 41 ) * + 86 col1
----
-3526

skipif mysql # not compatible
query I rowsort label-1834
SELECT SUM ( ALL - 41 ) * + 86 col1
----
-3526

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1835
SELECT COALESCE ( 70, - + ( + 28 ) ) * ( - COUNT( * ) ) + - 8 + + + NULLIF ( - CAST( + 72 AS SIGNED ), 63 + - - 54 - - CAST( NULL AS SIGNED ) + - 17 + - 57 * - CASE - - 24 WHEN + 70 THEN NULL WHEN + 37 * 20 THEN ( - 8 ) ELSE 27 * 70 END + - 10 * 32 ) AS col1
----
-150

skipif mysql # not compatible
query I rowsort label-1835
SELECT COALESCE ( 70, - + ( + 28 ) ) * ( - COUNT ( * ) ) + - 8 + + + NULLIF ( - CAST ( + 72 AS INTEGER ), 63 + - - 54 - - CAST ( NULL AS INTEGER ) + - 17 + - 57 * - CASE - - 24 WHEN + 70 THEN NULL WHEN + 37 * 20 THEN ( - 8 ) ELSE 27 * 70 END + - 10 * 32 ) AS col1
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT ALL COUNT( ALL + 70 ) DIV 2 * + + SUM( + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL COUNT ( ALL + 70 ) / 2 * + + SUM ( + 30 )
----
0

query I rowsort
SELECT 84 * + 59 * + + 67
----
332052

query I rowsort
SELECT - 26 col2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT CASE + + 6 WHEN 1 THEN NULL ELSE - 68 END + - + MAX( - 4 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1839
SELECT CASE + + 6 WHEN 1 THEN NULL ELSE - 68 END + - + MAX ( - 4 ) AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT ALL + 0 DIV - 12 * - - 80
----
0

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL + 0 / - 12 * - - 80
----
0

query I rowsort
SELECT NULLIF ( - 50, + 44 * - 83 * + 52 - - + 89 + + + 59 ) * + 2
----
-100

onlyif mysql # DIV for integer division: 
query I rowsort label-1842
SELECT ALL + 91 DIV 20 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-1842
SELECT ALL + 91 / 20 AS col1
----
4

query I rowsort
SELECT ALL 10 * + 89 AS col2
----
890

query I rowsort
SELECT + 16 * + 83 * 14 AS col2
----
18592

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1846
SELECT - MIN( - - COALESCE ( + 26, 35 DIV - + 91 - + - 79 + + 9 ) )
----
-26

skipif mysql # not compatible
query I rowsort label-1846
SELECT - MIN ( - - COALESCE ( + 26, 35 / - + 91 - + - 79 + + 9 ) )
----
-26

query I rowsort
SELECT DISTINCT 94 col1
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1848
SELECT + 47 * + SUM( ALL 80 ) DIV - - COUNT( * ) + + + MIN( 72 ) AS col2
----
3832

skipif mysql # not compatible
query I rowsort label-1848
SELECT + 47 * + SUM ( ALL 80 ) / - - COUNT ( * ) + + + MIN ( 72 ) AS col2
----
3832

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1851
SELECT ALL + 23 * - ( - - NULLIF ( 38, - 6 + + 33 ) ) + + - 50 * MIN( ALL 81 ) + + 98 + - 51 + - 91 - - + 19 / + 62 + 34 - + 91 * + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1851
SELECT ALL + 23 * - ( - - NULLIF ( 38, - 6 + + 33 ) ) + + - 50 * MIN ( ALL 81 ) + + 98 + - 51 + - 91 - - + 19 / + 62 + 34 - + 91 * + CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT 25 * + 54 - + - 98 AS col2
----
1448

query I rowsort
SELECT DISTINCT + - NULLIF ( - + 56, + - 89 / - 98 * + 25 ) col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1854
SELECT ALL + 7 * - - 3 * - - 74 + + - CASE - + MAX( ALL 17 ) WHEN - 99 + - 76 THEN 15 * + 81 + - 7 WHEN + 18 THEN + 86 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1854
SELECT ALL + 7 * - - 3 * - - 74 + + - CASE - + MAX ( ALL 17 ) WHEN - 99 + - 76 THEN 15 * + 81 + - 7 WHEN + 18 THEN + 86 END AS col2
----
NULL

query I rowsort
SELECT + 57 AS col2
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL - ( - - 25 ) * + 38 + - 72 + - COUNT( * ) AS col0
----
-1023

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - ( - - 25 ) * + 38 + - 72 + - COUNT ( * ) AS col0
----
-1023

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1857
SELECT - 19 - + 66 * + CAST( 53 AS SIGNED ) + - 74 AS col2
----
-3591

skipif mysql # not compatible
query I rowsort label-1857
SELECT - 19 - + 66 * + CAST ( 53 AS INTEGER ) + - 74 AS col2
----
-3591

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

query II rowsort
SELECT + 63 + + 17 AS col2, 98 * 69 * 38
----
80
256956

query I rowsort
SELECT 10 * + 63 - + + 13
----
617

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT ALL 7 * - 15 * COUNT( + 54 )
----
-105

skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL 7 * - 15 * COUNT ( + 54 )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT + - ( MIN( ALL - 16 ) ) * - - 13 * MAX( ALL - 32 )
----
-6656

skipif mysql # not compatible
query I rowsort label-1862
SELECT + - ( MIN ( ALL - 16 ) ) * - - 13 * MAX ( ALL - 32 )
----
-6656

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1864
SELECT ALL + + CASE CASE + 23 WHEN - ( - COUNT( * ) ) * CAST( - 29 AS SIGNED ) THEN - - 34 END WHEN COALESCE ( + 49, + MIN( DISTINCT - 18 ) ) + - 35 * - - 33 THEN - 49 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + + CASE CASE + 23 WHEN - ( - COUNT ( * ) ) * CAST ( - 29 AS INTEGER ) THEN - - 34 END WHEN COALESCE ( + 49, + MIN ( DISTINCT - 18 ) ) + - 35 * - - 33 THEN - 49 ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT ALL + ( COUNT( * ) ) * + + COUNT( * ) + + 87 - - 12 + + 4 * 91 AS col2
----
464

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + ( COUNT ( * ) ) * + + COUNT ( * ) + + 87 - - 12 + + 4 * 91 AS col2
----
464

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

skipif mysql # not compatible
query I rowsort label-1866
SELECT + - CAST ( NULL AS INTEGER ) * - 67 + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL + ( + 85 ) AS col2
----
85

query I rowsort
SELECT DISTINCT 59 * 93 * - 55 AS col2
----
-301785

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1869
SELECT ALL 98 * + - ( + NULLIF ( - - 59, + CAST( - 10 AS DECIMAL ) / + NULLIF ( MIN( ALL 49 ), - + 70 - - - ( - - 58 ) - 86 * CAST( NULL AS SIGNED ) ) ) ) - - 90 * COUNT( * ) * + - 11 * + + 94
----
-98842

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL 98 * + - ( + NULLIF ( - - 59, + CAST ( - 10 AS REAL ) / + NULLIF ( MIN ( ALL 49 ), - + 70 - - - ( - - 58 ) - 86 * CAST ( NULL AS INTEGER ) ) ) ) - - 90 * COUNT ( * ) * + - 11 * + + 94
----
-98842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1870
SELECT DISTINCT + SUM( CAST( NULL AS SIGNED ) ) / - 16 AS col2, SUM( - 64 ) * - 74 - - ( + 52 ) * + 5 * - 70 - + 32 + - ( 16 ) * - 45 - + - 41 * - 5 + + + ( + 31 ) AS col1
----
NULL
-12950

skipif mysql # not compatible
query II rowsort label-1870
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) ) / - 16 AS col2, SUM ( - 64 ) * - 74 - - ( + 52 ) * + 5 * - 70 - + 32 + - ( 16 ) * - 45 - + - 41 * - 5 + + + ( + 31 ) AS col1
----
NULL
-12950

query I rowsort
SELECT ALL 17 * 3 - 75 + + 12
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1872
SELECT - 6 DIV ( + 49 ) * 1 * 18 DIV - COALESCE ( - - 69, 33 * + + COUNT( * ) + + 49 * + - COUNT( * ), 88 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1872
SELECT - 6 / ( + 49 ) * 1 * 18 / - COALESCE ( - - 69, 33 * + + COUNT ( * ) + + 49 * + - COUNT ( * ), 88 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT + 17 + + - 97 - - 6 + - 19 + 55 + + COUNT( * ) * + COUNT( * ) - - - COUNT( * ) DIV 8
----
-37

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 17 + + - 97 - - 6 + - 19 + 55 + + COUNT ( * ) * + COUNT ( * ) - - - COUNT ( * ) / 8
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT MIN( DISTINCT + 24 ) AS col0
----
24

skipif mysql # not compatible
query I rowsort label-1874
SELECT MIN ( DISTINCT + 24 ) AS col0
----
24

query I rowsort
SELECT ALL CASE 19 WHEN - 45 THEN NULL WHEN - 39 * - 52 THEN NULL WHEN - + 84 * 44 THEN + 74 ELSE NULL END
----
NULL

query I rowsort
SELECT - 58 col1
----
-58

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

query I rowsort
SELECT ALL + 4 * - + 79 AS col2
----
-316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1879
SELECT - ( COUNT( * ) ) + - 16 * 18 DIV - ( + 1 )
----
287

skipif mysql # not compatible
query I rowsort label-1879
SELECT - ( COUNT ( * ) ) + - 16 * 18 / - ( + 1 )
----
287

query I rowsort
SELECT - 21 AS col2
----
-21

query I rowsort
SELECT ALL + 5 * - 50 AS col0
----
-250

query I rowsort
SELECT - 16 * 29
----
-464

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

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

query I rowsort
SELECT ALL ( - 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - COUNT( * ) + + 65 * + - 77
----
-5006

skipif mysql # not compatible
query I rowsort label-1886
SELECT - COUNT ( * ) + + 65 * + - 77
----
-5006

query II rowsort
SELECT + 10 + - - 1 * + 72 AS col0, + ( 11 )
----
82
11

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1889
SELECT - 80 DIV 10 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-1889
SELECT - 80 / 10 AS col1
----
-8

query II rowsort
SELECT + + 40 + - + 51 + 91 AS col2, + 65 * + + 79
----
80
5135

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT ALL + CASE - 5 WHEN - COUNT( * ) THEN + ( + 87 ) * + 98 / + 67 * - COUNT( * ) / - + 17 END + + MAX( + + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL + CASE - 5 WHEN - COUNT ( * ) THEN + ( + 87 ) * + 98 / + 67 * - COUNT ( * ) / - + 17 END + + MAX ( + + 11 )
----
NULL

query I rowsort
SELECT - 54 + 85 + - 6 AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-1895
SELECT ALL ( + SUM( DISTINCT 76 ) ), - 19 * 50 col2
----
76
-950

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL ( + SUM ( DISTINCT 76 ) ), - 19 * 50 col2
----
76
-950

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT DISTINCT + 33 + + 66 * - 91 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT + 33 + + 66 * - 91 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1897
SELECT DISTINCT - - 91 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT - - 91 / - 75
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT ALL + - 3 DIV - 52 + + + 15 + - 42 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL + - 3 / - 52 + + + 15 + - 42 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT DISTINCT - 77 * - - COUNT( * ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-1899
SELECT DISTINCT - 77 * - - COUNT ( * ) AS col0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1900
SELECT ALL 33 DIV + + COUNT( * ) + - MIN( + - 50 ) + + 32 * 78 * + + ( + 59 ) AS col0
----
147347

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL 33 / + + COUNT ( * ) + - MIN ( + - 50 ) + + 32 * 78 * + + ( + 59 ) AS col0
----
147347

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1901
SELECT DISTINCT + 8 * 40 * ( 72 ) * 18 DIV 78 + 70 + + COUNT( DISTINCT - CASE 60 WHEN 56 THEN + 28 END ) * 53
----
5386

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT + 8 * 40 * ( 72 ) * 18 / 78 + 70 + + COUNT ( DISTINCT - CASE 60 WHEN 56 THEN + 28 END ) * 53
----
5386

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - + COUNT( * ) * 52 + 63 + - 39 col2
----
-28

skipif mysql # not compatible
query I rowsort label-1902
SELECT - + COUNT ( * ) * 52 + 63 + - 39 col2
----
-28

query II rowsort
SELECT ALL + 76 col0, + 27 col2
----
76
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT 64 * 70 + + 0 + COUNT( * ) AS col1
----
4481

skipif mysql # not compatible
query I rowsort label-1905
SELECT 64 * 70 + + 0 + COUNT ( * ) AS col1
----
4481

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

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

query I rowsort
SELECT 64 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1908
SELECT + COUNT( ALL 17 ) DIV + CAST( + - 61 AS SIGNED ) + + 52
----
52

skipif mysql # not compatible
query I rowsort label-1908
SELECT + COUNT ( ALL 17 ) / + CAST ( + - 61 AS INTEGER ) + + 52
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL + MIN( - 65 ) col1
----
-65

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL + MIN ( - 65 ) col1
----
-65

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

query I rowsort
SELECT DISTINCT + + 76 AS col2
----
76

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT DISTINCT + 7 col1, + COUNT( * ) + - - COALESCE ( - ( 38 ), - + COUNT( * ) ) AS col0
----
7
-37

skipif mysql # not compatible
query II rowsort label-1913
SELECT DISTINCT + 7 col1, + COUNT ( * ) + - - COALESCE ( - ( 38 ), - + COUNT ( * ) ) AS col0
----
7
-37

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1915
SELECT DISTINCT 0 * + - NULLIF ( - MIN( + 69 ), - 44 * - + COUNT( * ) ) - COUNT( * ) * + + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) DIV - 46 * 81 AS col2, + ( - 84 ) DIV - + 83 - 38 col1
----
NULL
-37

skipif mysql # not compatible
query II rowsort label-1915
SELECT DISTINCT 0 * + - NULLIF ( - MIN ( + 69 ), - 44 * - + COUNT ( * ) ) - COUNT ( * ) * + + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 46 * 81 AS col2, + ( - 84 ) / - + 83 - 38 col1
----
NULL
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-1916
SELECT ALL 71 DIV + 26
----
2

skipif mysql # not compatible
query I rowsort label-1916
SELECT ALL 71 / + 26
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + CASE + + 78 WHEN - - 59 THEN - + 9 * 60 WHEN 71 THEN NULL WHEN + 75 * + CASE + 12 WHEN 32 THEN NULL WHEN - + 81 + - + ( + 32 ) / - 84 THEN 69 ELSE NULL END + + 84 + 7 * - 25 THEN NULL ELSE NULL END * + 34 * - - 13 - - COUNT( * ) * - 85 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT + CASE + + 78 WHEN - - 59 THEN - + 9 * 60 WHEN 71 THEN NULL WHEN + 75 * + CASE + 12 WHEN 32 THEN NULL WHEN - + 81 + - + ( + 32 ) / - 84 THEN 69 ELSE NULL END + + 84 + 7 * - 25 THEN NULL ELSE NULL END * + 34 * - - 13 - - COUNT ( * ) * - 85 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1918
SELECT + CAST( ( + 27 ) AS SIGNED ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-1918
SELECT + CAST ( ( + 27 ) AS INTEGER ) AS col2
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT - 35 * ( - - CASE - 93 WHEN + - COUNT( * ) / + 58 THEN - + 96 + + 19 + + 71 / 35 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 35 * ( - - CASE - 93 WHEN + - COUNT ( * ) / + 58 THEN - + 96 + + 19 + + 71 / 35 END )
----
NULL

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT 3 * - 10 * + 73 * - 29 * + 22 AS col1
----
1397220

onlyif mysql # aggregate syntax: 
query I rowsort label-1927
SELECT DISTINCT - 28 + MIN( ALL 38 )
----
10

skipif mysql # not compatible
query I rowsort label-1927
SELECT DISTINCT - 28 + MIN ( ALL 38 )
----
10

query I rowsort
SELECT ( - 49 ) + 45
----
-4

query I rowsort
SELECT ( 43 ) * ( + + 43 ) * - - 95
----
175655

query I rowsort
SELECT 93 + 53
----
146

query I rowsort
SELECT DISTINCT + 83 + + + 45
----
128

query I rowsort
SELECT DISTINCT - ( + - 27 ) + - 58 + + 93 - 60 + - - 30 + 83 * - ( + 30 ) * 73 * - 10 * - + 99
----
-179952268

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1933
SELECT ALL + COUNT( DISTINCT + COALESCE ( - 43, - + 68, + 48 ) ) + - 70, - 46 * + CASE + - 88 WHEN 91 THEN - 2 + + 62 WHEN + CAST( NULL AS SIGNED ) THEN NULL END AS col1
----
-69
NULL

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL + COUNT ( DISTINCT + COALESCE ( - 43, - + 68, + 48 ) ) + - 70, - 46 * + CASE + - 88 WHEN 91 THEN - 2 + + 62 WHEN + CAST ( NULL AS INTEGER ) THEN NULL END AS col1
----
-69
NULL

query I rowsort
SELECT ALL 57 AS col2
----
57

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

query I rowsort
SELECT ALL + 40 * + 69 col2
----
2760

query I rowsort
SELECT DISTINCT - 23 + - 46
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1938
SELECT DISTINCT - - 64 * - NULLIF ( + COUNT( * ), - + 21 ) * - 18 + - ( - - 99 ) + 82 * + MAX( - 6 ) + - COUNT( * )
----
560

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT - - 64 * - NULLIF ( + COUNT ( * ), - + 21 ) * - 18 + - ( - - 99 ) + 82 * + MAX ( - 6 ) + - COUNT ( * )
----
560

query I rowsort
SELECT ALL + 48 + - 52
----
-4

query II rowsort
SELECT - 2, - 25 * - - 9 + - 0 + + - 84 AS col0
----
-2
-309

query I rowsort
SELECT ALL - ( + 81 ) * + - 99 AS col1
----
8019

onlyif mysql # aggregate syntax: 
query I rowsort label-1942
SELECT COUNT( * ) + + 17 col2
----
18

skipif mysql # not compatible
query I rowsort label-1942
SELECT COUNT ( * ) + + 17 col2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT DISTINCT - COUNT( + 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1943
SELECT DISTINCT - COUNT ( + 31 ) AS col0
----
-1

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

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

query I rowsort
SELECT + 59 * + 65 AS col2
----
3835

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1946
SELECT - 53 AS col0, CAST( + CASE - - 31 WHEN - ( - 17 ) + - 52 THEN + AVG ( DISTINCT - - 70 ) * + CASE + ( 33 ) WHEN - 85 * - ( 58 ) THEN - 74 + + ( - + 76 ) + - 55 + + 75 * - 3 * 55 END + 79 END AS SIGNED ) + - 67 * 94 AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-1946
SELECT - 53 AS col0, CAST ( + CASE - - 31 WHEN - ( - 17 ) + - 52 THEN + AVG ( DISTINCT - - 70 ) * + CASE + ( 33 ) WHEN - 85 * - ( 58 ) THEN - 74 + + ( - + 76 ) + - 55 + + 75 * - 3 * 55 END + 79 END AS INTEGER ) + - 67 * 94 AS col2
----
-53
NULL

query I rowsort
SELECT + 5 * 42 * + + 16 - + + 62 + 5 + 9 + 94 - + - 7 + + 25 * + NULLIF ( - - 77, + 68 )
----
5338

query II rowsort
SELECT - 92 AS col1, + 93 * ( 93 )
----
-92
8649

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + 27 - + 31 - COUNT( * )
----
-5

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + 27 - + 31 - COUNT ( * )
----
-5

query I rowsort
SELECT - 76 col0
----
-76

query I rowsort
SELECT ALL + 47 - - ( 57 ) + 5 * + 37 AS col2
----
289

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT 88 DIV 48 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1952
SELECT 88 / 48 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT + 17 * 94 - - + COUNT( * )
----
1599

skipif mysql # not compatible
query I rowsort label-1953
SELECT + 17 * 94 - - + COUNT ( * )
----
1599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT CAST( NULL AS SIGNED ) * - CAST( - - 32 AS SIGNED ) - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT CAST ( NULL AS INTEGER ) * - CAST ( - - 32 AS INTEGER ) - + 59 AS col0
----
NULL

query I rowsort
SELECT 49 col2
----
49

query I rowsort
SELECT ALL 17 + + 37 AS col1
----
54

query II rowsort
SELECT ALL 29 * NULLIF ( 37, - 48 ) * + + 7 AS col1, 60 AS col2
----
7511
60

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

query I rowsort
SELECT 79 AS col2
----
79

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

skipif mysql # not compatible
query I rowsort label-1960
SELECT ALL COUNT ( * ) + - + 61 AS col1
----
-60

query I rowsort
SELECT 60 col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT 3 * COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-1962
SELECT 3 * COUNT ( * ) AS col1
----
3

query I rowsort
SELECT 38 + - 23 * + + 4 - + 70 AS col0
----
-124

query I rowsort
SELECT ALL 51 + CASE + 76 WHEN - 23 THEN - 0 / - + 89 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT MAX( DISTINCT 92 ) * + 35 * 92 AS col0
----
296240

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT MAX ( DISTINCT 92 ) * + 35 * 92 AS col0
----
296240

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

query I rowsort
SELECT 85 + 47
----
132

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + 49 + + COUNT( * ) + - + 80 + - 6 * - NULLIF ( + 56, - COUNT( * ) + + + 71 ) AS col1
----
306

skipif mysql # not compatible
query I rowsort label-1970
SELECT + 49 + + COUNT ( * ) + - + 80 + - 6 * - NULLIF ( + 56, - COUNT ( * ) + + + 71 ) AS col1
----
306

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT DISTINCT - - COALESCE ( + 22, + 58 * ( - + COUNT( * ) ) ) + - + SUM( + 14 ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-1971
SELECT DISTINCT - - COALESCE ( + 22, + 58 * ( - + COUNT ( * ) ) ) + - + SUM ( + 14 ) AS col0
----
8

query I rowsort
SELECT ALL - 34 col1
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1973
SELECT ALL ( 99 ) AS col1, CAST( 31 AS SIGNED ) DIV - + 9 AS col1
----
99
-3

skipif mysql # not compatible
query II rowsort label-1973
SELECT ALL ( 99 ) AS col1, CAST ( 31 AS INTEGER ) / - + 9 AS col1
----
99
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1974
SELECT ALL - CAST( COUNT( * ) AS SIGNED ), + 90 / COUNT( * ) * - COUNT( * ) * + 85 + + 55 + + ( + COUNT( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-1974
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ), + 90 / COUNT ( * ) * - COUNT ( * ) * + 85 + + 55 + + ( + COUNT ( * ) ) * - + 24 * - 8 * 19 + - ( - 51 ) - + CASE - + 82 WHEN + - 63 THEN NULL WHEN + 24 + - 97 THEN - - 7 END - - 85 AS col2
----
-1
NULL

query I rowsort
SELECT - + 11
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT 54 + + 50 DIV COALESCE ( - - 40, - 54 * + 82 + 53 + - 23 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-1976
SELECT 54 + + 50 / COALESCE ( - - 40, - 54 * + 82 + 53 + - 23 ) AS col1
----
55

query I rowsort
SELECT - 99 + + 90 AS col0
----
-9

query I rowsort
SELECT ALL 86 AS col2
----
86

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

query I rowsort
SELECT DISTINCT COALESCE ( + - ( - 7 ), + 71 ) AS col1
----
7

query I rowsort
SELECT ALL - - ( 84 ) * + ( + 4 ) AS col0
----
336

query I rowsort
SELECT + ( 83 ) + - 94
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1983
SELECT ALL - NULLIF ( + - 43, CAST( NULL AS SIGNED ) )
----
43

skipif mysql # not compatible
query I rowsort label-1983
SELECT ALL - NULLIF ( + - 43, CAST ( NULL AS INTEGER ) )
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - - 94 * + COUNT( DISTINCT 78 ) + + SUM( DISTINCT 84 ) + - 27
----
151

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - - 94 * + COUNT ( DISTINCT 78 ) + + SUM ( DISTINCT 84 ) + - 27
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1986
SELECT 96 DIV + - COALESCE ( - 76, + COUNT( * ) + - - COUNT( CAST( NULL AS SIGNED ) ) ) + + + COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-1986
SELECT 96 / + - COALESCE ( - 76, + COUNT ( * ) + - - COUNT ( CAST ( NULL AS INTEGER ) ) ) + + + COUNT ( * ) AS col2
----
2

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

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

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

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

query I rowsort
SELECT + - 5
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1990
SELECT - COUNT( * ) + - - 73 AS col0, + COUNT( * )
----
72
1

skipif mysql # not compatible
query II rowsort label-1990
SELECT - COUNT ( * ) + - - 73 AS col0, + COUNT ( * )
----
72
1

query I rowsort
SELECT 68 * - - 54
----
3672

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1992
SELECT - 29 DIV - - COALESCE ( + CAST( NULL AS SIGNED ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20
----
20

skipif mysql # not compatible
query I rowsort label-1992
SELECT - 29 / - - COALESCE ( + CAST ( NULL AS INTEGER ), 24 * ( + - 18 ) * - 2, - 57, - 97 ) + 20
----
20

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

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

query I rowsort
SELECT DISTINCT + 32 AS col2
----
32

query II rowsort
SELECT + 6, 91 AS col0
----
6
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT + 76 DIV + 71 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1996
SELECT + 76 / + 71 AS col0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1998
SELECT ALL - CASE - 53 WHEN + 21 THEN - CAST( 41 AS DECIMAL ) + + - COUNT( * ) - + + 2 * - 57 END * - 51 AS col1, + NULLIF ( + 87, + - 0 ) - + 86
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1998
SELECT ALL - CASE - 53 WHEN + 21 THEN - CAST ( 41 AS REAL ) + + - COUNT ( * ) - + + 2 * - 57 END * - 51 AS col1, + NULLIF ( + 87, + - 0 ) - + 86
----
NULL
1

query I rowsort
SELECT + 87 + + + 95
----
182

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

skipif mysql # not compatible
query I rowsort label-2000
SELECT + MAX ( - + 74 )
----
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2001
SELECT ALL CASE + 17 WHEN MAX( - 10 ) THEN + 12 WHEN 53 THEN - 45 END + 12 + - - CASE + CAST( NULL AS DECIMAL ) WHEN 9 THEN + 29 END + - - 73 AS col1, - 13 * + ( - + 14 )
----
NULL
182

skipif mysql # not compatible
query II rowsort label-2001
SELECT ALL CASE + 17 WHEN MAX ( - 10 ) THEN + 12 WHEN 53 THEN - 45 END + 12 + - - CASE + CAST ( NULL AS REAL ) WHEN 9 THEN + 29 END + - - 73 AS col1, - 13 * + ( - + 14 )
----
NULL
182

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT + 9 - + - SUM( + 76 )
----
85

skipif mysql # not compatible
query I rowsort label-2004
SELECT + 9 - + - SUM ( + 76 )
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-2005
SELECT ALL + 10 + + ( - - 90 ) col2, COUNT( * ) * + ( + 74 ) * - - 41 - - COUNT( * )
----
100
3035

skipif mysql # not compatible
query II rowsort label-2005
SELECT ALL + 10 + + ( - - 90 ) col2, COUNT ( * ) * + ( + 74 ) * - - 41 - - COUNT ( * )
----
100
3035

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT DISTINCT + COALESCE ( COUNT( * ), - 12 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + COALESCE ( COUNT ( * ), - 12 ) AS col2
----
1

query I rowsort
SELECT - - 92 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT + SUM( ALL 57 ) - - 85
----
142

skipif mysql # not compatible
query I rowsort label-2009
SELECT + SUM ( ALL 57 ) - - 85
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT ALL CAST( NULL AS SIGNED ) / - - MAX( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL CAST ( NULL AS INTEGER ) / - - MAX ( - 21 )
----
NULL

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

query I rowsort
SELECT + 88 - - 28 - - 88 * 88
----
7860

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL 57 - 83 * COUNT( * ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL 57 - 83 * COUNT ( * ) AS col1
----
-26

query I rowsort
SELECT - 54 AS col1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT - CASE + SUM( DISTINCT 54 ) WHEN CASE - COALESCE ( - 57, - 7 ) WHEN - ( 46 ) THEN NULL WHEN + 11 + + ( MAX( + - 75 ) ) THEN - - CASE 86 WHEN 33 THEN - - 11 ELSE NULL END / - 61 ELSE NULL END * + + 38 * + + 73 THEN NULL ELSE + - ( + 49 ) END
----
49

skipif mysql # not compatible
query I rowsort label-2015
SELECT - CASE + SUM ( DISTINCT 54 ) WHEN CASE - COALESCE ( - 57, - 7 ) WHEN - ( 46 ) THEN NULL WHEN + 11 + + ( MAX ( + - 75 ) ) THEN - - CASE 86 WHEN 33 THEN - - 11 ELSE NULL END / - 61 ELSE NULL END * + + 38 * + + 73 THEN NULL ELSE + - ( + 49 ) END
----
49

query I rowsort
SELECT DISTINCT + 60 - - + 3 + + 45
----
108

query I rowsort
SELECT ALL - 96 * 45 AS col0
----
-4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT + + COUNT( * ) + CASE 6 WHEN - 77 * 70 THEN NULL WHEN + + ( + 76 ) * 70 THEN - 97 * 77 + - CAST( COALESCE ( + 79, - CAST( NULL AS SIGNED ) ) AS SIGNED ) WHEN COUNT( * ) + + + 69 * + + CAST( NULL AS SIGNED ) THEN + + 72 * - 41 * + - NULLIF ( - 54, - 56 * + - 94 ) + CAST( 63 AS SIGNED ) * COUNT( * ) + - 46 ELSE 86 END * - MIN( ALL + 42 - ( 43 ) ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-2018
SELECT + + COUNT ( * ) + CASE 6 WHEN - 77 * 70 THEN NULL WHEN + + ( + 76 ) * 70 THEN - 97 * 77 + - CAST ( COALESCE ( + 79, - CAST ( NULL AS INTEGER ) ) AS INTEGER ) WHEN COUNT ( * ) + + + 69 * + + CAST ( NULL AS INTEGER ) THEN + + 72 * - 41 * + - NULLIF ( - 54, - 56 * + - 94 ) + CAST ( 63 AS INTEGER ) * COUNT ( * ) + - 46 ELSE 86 END * - MIN ( ALL + 42 - ( 43 ) ) AS col2
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-2019
SELECT ALL 10 AS col1, 29 DIV + 7
----
10
4

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL 10 AS col1, 29 / + 7
----
10
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2020
SELECT + 77 DIV + 26 + - 52 + - + 29 + 99 + - - 30 + - 52 + - 31 DIV 65 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2020
SELECT + 77 / + 26 + - 52 + - + 29 + 99 + - - 30 + - 52 + - 31 / 65 AS col2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2021
SELECT + 16 + + MIN( CAST( + + 92 AS SIGNED ) )
----
108

skipif mysql # not compatible
query I rowsort label-2021
SELECT + 16 + + MIN ( CAST ( + + 92 AS INTEGER ) )
----
108

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

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

query I rowsort
SELECT + 30 + + 79 AS col1
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2024
SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST( + 48 AS SIGNED ) ) * - - 19 AS col0
----
17
-1691

skipif mysql # not compatible
query II rowsort label-2024
SELECT - - 17 AS col0, NULLIF ( - 89, + - CAST ( + 48 AS INTEGER ) ) * - - 19 AS col0
----
17
-1691

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2025
SELECT ALL COUNT( ALL + 7 ) DIV COUNT( * ) * 13 * + COALESCE ( 57, - - CAST( 84 AS SIGNED ) )
----
741

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL COUNT ( ALL + 7 ) / COUNT ( * ) * 13 * + COALESCE ( 57, - - CAST ( 84 AS INTEGER ) )
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT + COUNT( * ) * + 89 * MIN( DISTINCT + 76 ) * 70 + - 69 * 70 AS col0
----
468650

skipif mysql # not compatible
query I rowsort label-2026
SELECT + COUNT ( * ) * + 89 * MIN ( DISTINCT + 76 ) * 70 + - 69 * 70 AS col0
----
468650

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT COUNT( * ) * - 95 * + + 11 - 50 col1
----
-1095

skipif mysql # not compatible
query I rowsort label-2027
SELECT COUNT ( * ) * - 95 * + + 11 - 50 col1
----
-1095

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT 38 * 14 * - SUM( - 68 ) + 14 + - 89
----
36101

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT 38 * 14 * - SUM ( - 68 ) + 14 + - 89
----
36101

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL - 67 * - - ( 19 ) + + + SUM( 24 ) AS col0
----
-1249

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL - 67 * - - ( 19 ) + + + SUM ( 24 ) AS col0
----
-1249

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

query I rowsort
SELECT ALL 12 * CASE - - 42 WHEN + 37 / + 87 THEN + 50 * 37 + - 60 * - 58 WHEN + 11 * + 58 * 49 * + 96 THEN 8 + - 78 END * - 89 + COALESCE ( - 93, - 79 * ( - 42 ) ) col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2034
SELECT CAST( + 76 AS SIGNED ) / + 34 * - 20 + + COUNT( * ) + + 48 - - 13 * - ( 98 ) * + + CASE + 0 WHEN - - CAST( NULL AS SIGNED ) THEN NULL WHEN + + 31 / - - 80 * - - 73 THEN + 16 ELSE NULL END + 95 + 47 + + 26 * - 70 / + - MAX( - 64 ) / - NULLIF ( - AVG ( DISTINCT CAST( NULL AS SIGNED ) ), 1 / - 67 + COUNT( * ) ) + 83 * 7 * 70 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2034
SELECT CAST ( + 76 AS INTEGER ) / + 34 * - 20 + + COUNT ( * ) + + 48 - - 13 * - ( 98 ) * + + CASE + 0 WHEN - - CAST ( NULL AS INTEGER ) THEN NULL WHEN + + 31 / - - 80 * - - 73 THEN + 16 ELSE NULL END + 95 + 47 + + 26 * - 70 / + - MAX ( - 64 ) / - NULLIF ( - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ), 1 / - 67 + COUNT ( * ) ) + 83 * 7 * 70 AS col1
----
NULL

query I rowsort
SELECT 41 * + 56 - + 6
----
2290

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2036
SELECT ALL + CASE - 14 WHEN - - 38 * CAST( NULL AS DECIMAL ) + - + 29 THEN + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + CASE - 14 WHEN - - 38 * CAST ( NULL AS REAL ) + - + 29 THEN + COUNT ( * ) END
----
NULL

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

query I rowsort
SELECT - 46 + - 55 AS col1
----
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2039
SELECT NULLIF ( CAST( + 31 AS SIGNED ), + COALESCE ( - COUNT( * ), + 50 ) ) AS col2
----
31

skipif mysql # not compatible
query I rowsort label-2039
SELECT NULLIF ( CAST ( + 31 AS INTEGER ), + COALESCE ( - COUNT ( * ), + 50 ) ) AS col2
----
31

query I rowsort
SELECT NULLIF ( + - 40, + COALESCE ( - 0, + 77 ) )
----
-40

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

query I rowsort
SELECT ALL - 91 * 9 + 0 * + 41 - + 98
----
-917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT - 80 * - CAST( NULL AS SIGNED ) + + 52 + + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT - 80 * - CAST ( NULL AS INTEGER ) + + 52 + + - COUNT ( * ) AS col2
----
NULL

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

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

query I rowsort
SELECT - 10 + - 62
----
-72

query I rowsort
SELECT DISTINCT + 70
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2047
SELECT ALL CAST( NULL AS SIGNED ) * + 23 * + COUNT( * ) - + COUNT( * ) + - 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL CAST ( NULL AS INTEGER ) * + 23 * + COUNT ( * ) - + COUNT ( * ) + - 60 AS col2
----
NULL

query I rowsort
SELECT - 75 * - 38 * + 98 * ( - 40 ) AS col2
----
-11172000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2049
SELECT - COALESCE ( + ( - ( - - 41 ) ), - - COALESCE ( 76, + MIN( ALL + - 93 ), + + 7 + + COUNT( * ) + - 77 ) ) * - + CAST( NULL AS DECIMAL ) * - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COALESCE ( + ( - ( - - 41 ) ), - - COALESCE ( 76, + MIN ( ALL + - 93 ), + + 7 + + COUNT ( * ) + - 77 ) ) * - + CAST ( NULL AS REAL ) * - + 56
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2050
SELECT COUNT( DISTINCT + 93 ) * 29 + + 56 - - 62 * + - CASE WHEN NULL IS NOT NULL THEN COUNT( * ) END / - - CAST( NULL AS SIGNED ) * + 97 + 79 + AVG ( ALL - 28 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2050
SELECT COUNT ( DISTINCT + 93 ) * 29 + + 56 - - 62 * + - CASE WHEN NULL IS NOT NULL THEN COUNT ( * ) END / - - CAST ( NULL AS INTEGER ) * + 97 + 79 + AVG ( ALL - 28 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT + ( 61 ) * - 62 DIV COUNT( * ) + - 38 DIV ( + COUNT( * ) ) + + ( + 63 ) + + - 95 * + 48 AS col2
----
-8317

skipif mysql # not compatible
query I rowsort label-2051
SELECT + ( 61 ) * - 62 / COUNT ( * ) + - 38 / ( + COUNT ( * ) ) + + ( + 63 ) + + - 95 * + 48 AS col2
----
-8317

query I rowsort
SELECT ALL + 92 * 57
----
5244

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT + CASE - 24 WHEN 30 + - 94 + - + CASE COUNT( * ) WHEN 82 THEN NULL WHEN - COALESCE ( 94, - ( - 46 ) + + + 72 + CAST( NULL AS SIGNED ) + + NULLIF ( - 39, + 70 + + 19 ) + - - 4 * - - CAST( - 56 AS SIGNED ) / + 58 ) THEN NULL WHEN + - 35 THEN + + 87 ELSE NULL END THEN - + 4 END + - 48 * 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2053
SELECT + CASE - 24 WHEN 30 + - 94 + - + CASE COUNT ( * ) WHEN 82 THEN NULL WHEN - COALESCE ( 94, - ( - 46 ) + + + 72 + CAST ( NULL AS INTEGER ) + + NULLIF ( - 39, + 70 + + 19 ) + - - 4 * - - CAST ( - 56 AS INTEGER ) / + 58 ) THEN NULL WHEN + - 35 THEN + + 87 ELSE NULL END THEN - + 4 END + - 48 * 29 AS col0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2055
SELECT DISTINCT + - CAST( + + 19 AS SIGNED ) * - + CASE - CAST( NULL AS SIGNED ) WHEN 64 THEN - 85 WHEN - 78 THEN AVG ( 96 ) + - 91 / COUNT( * ) + - 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT + - CAST ( + + 19 AS INTEGER ) * - + CASE - CAST ( NULL AS INTEGER ) WHEN 64 THEN - 85 WHEN - 78 THEN AVG ( 96 ) + - 91 / COUNT ( * ) + - 81 END AS col1
----
NULL

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

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

query I rowsort
SELECT - 34 + - 96 AS col1
----
-130

query I rowsort
SELECT + NULLIF ( - 25, 41 * 97 )
----
-25

query I rowsort
SELECT + 47 + - + 58 AS col2
----
-11

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

query I rowsort
SELECT + 44 col1
----
44

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2062
SELECT - + 84 * - NULLIF ( + 49, - + 0 * + - 24 * 74 + + - 11 + - 2 * - 89 * - CAST( NULL AS DECIMAL ) - 74 * + ( COUNT( - - 85 ) ) )
----
4116

skipif mysql # not compatible
query I rowsort label-2062
SELECT - + 84 * - NULLIF ( + 49, - + 0 * + - 24 * 74 + + - 11 + - 2 * - 89 * - CAST ( NULL AS REAL ) - 74 * + ( COUNT ( - - 85 ) ) )
----
4116

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

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

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

query I rowsort
SELECT DISTINCT + 6 col0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL + 24 + + 34 - + + CASE + 30 WHEN MIN( - 81 ) THEN - COUNT( * ) * + 92 END + - - 55 + 8 + 11 + - 24 * - 26 + + 71, - 87 AS col2
----
NULL
-87

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL + 24 + + 34 - + + CASE + 30 WHEN MIN ( - 81 ) THEN - COUNT ( * ) * + 92 END + - - 55 + 8 + 11 + - 24 * - 26 + + 71, - 87 AS col2
----
NULL
-87

query I rowsort
SELECT ALL 20 + + - 25
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT MAX( 81 ) + - + 42
----
39

skipif mysql # not compatible
query I rowsort label-2068
SELECT MAX ( 81 ) + - + 42
----
39

query II rowsort
SELECT ALL 41 AS col1, 61
----
41
61

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2071
SELECT CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * + 33 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * + 33 col1
----
NULL

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

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

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

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

query I rowsort
SELECT + 4 col1
----
4

query I rowsort
SELECT 29 + - 32
----
-3

query I rowsort
SELECT 0 * + 92 * + 67
----
0

query I rowsort
SELECT COALESCE ( + 2, - + 51 ) * + + 10
----
20

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

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

query I rowsort
SELECT ALL - 57 col2
----
-57

query I rowsort
SELECT DISTINCT - ( 56 ) - + CASE 27 WHEN 65 / 53 THEN + 96 END col2
----
NULL

query I rowsort
SELECT ALL + 10 * 16
----
160

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2083
SELECT ALL - 73 AS col2, + 61 * + - CAST( NULL AS SIGNED )
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-2083
SELECT ALL - 73 AS col2, + 61 * + - CAST ( NULL AS INTEGER )
----
-73
NULL

query I rowsort
SELECT DISTINCT + 93 * - 88 col0
----
-8184

query I rowsort
SELECT 13 AS col1
----
13

query I rowsort
SELECT 54 * - 96 AS col0
----
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2087
SELECT ALL + CAST( NULL AS SIGNED ) * + + 53 * COUNT( * ) AS col2
----
NULL

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

query I rowsort
SELECT + ( - 41 ) col1
----
-41

query I rowsort
SELECT + - 63 AS col2
----
-63

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT - 9 - - 64 * - 57 * 50 + + SUM( ALL - ( - 33 ) ) * + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 8 END AS col0
----
-182145

skipif mysql # not compatible
query I rowsort label-2091
SELECT - 9 - - 64 * - 57 * 50 + + SUM ( ALL - ( - 33 ) ) * + CASE WHEN NOT ( NULL ) IS NULL THEN NULL ELSE 8 END AS col0
----
-182145

query I rowsort
SELECT ALL 27 AS col2
----
27

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

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

query I rowsort
SELECT ALL - 69 + - 49 AS col2
----
-118

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT 11 DIV - - 49 + - + ( 40 ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-2097
SELECT 11 / - - 49 + - + ( 40 ) AS col0
----
-40

query I rowsort
SELECT + 68 * + 28
----
1904

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

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

query I rowsort
SELECT 1 * - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ALL + - 75 + 6 + 18 + 10 + - + COUNT( * ) * 27
----
-68

skipif mysql # not compatible
query I rowsort label-2101
SELECT ALL + - 75 + 6 + 18 + 10 + - + COUNT ( * ) * 27
----
-68

query I rowsort
SELECT DISTINCT + 95 + - 81
----
14

query I rowsort
SELECT - 73
----
-73

query I rowsort
SELECT DISTINCT - 25 + + 31 AS col1
----
6

query I rowsort
SELECT DISTINCT - ( - 9 ) + 26 + - ( NULLIF ( - 91, ( - 73 ) + 69 ) ) AS col1
----
126

query I rowsort
SELECT DISTINCT + 59 + - + 41
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-2107
SELECT 84 + - COUNT( * ) AS col0, CASE + COUNT( * ) WHEN + ( - - MAX( + 26 ) ) THEN + 53 END * - 14 * + 84 + + MAX( ALL + - 86 ) + - 17 AS col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-2107
SELECT 84 + - COUNT ( * ) AS col0, CASE + COUNT ( * ) WHEN + ( - - MAX ( + 26 ) ) THEN + 53 END * - 14 * + 84 + + MAX ( ALL + - 86 ) + - 17 AS col2
----
83
NULL

query I rowsort
SELECT ( - 29 ) * - + 40 + + - 88 + 0
----
1072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2109
SELECT DISTINCT MIN( + CAST( + 74 AS SIGNED ) )
----
74

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT MIN ( + CAST ( + 74 AS INTEGER ) )
----
74

query I rowsort
SELECT 78 * + 68 + 1 AS col2
----
5305

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT - 35 DIV - COUNT( * ) + - COUNT( * ) DIV - 49 + COUNT( * ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-2112
SELECT - 35 / - COUNT ( * ) + - COUNT ( * ) / - 49 + COUNT ( * ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-2113
SELECT ALL - 73 AS col0, SUM( - 40 )
----
-73
-40

skipif mysql # not compatible
query II rowsort label-2113
SELECT ALL - 73 AS col0, SUM ( - 40 )
----
-73
-40

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

skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT 51 - MAX ( 77 ) + 22 AS col2
----
-4

query I rowsort
SELECT 47 * - 51 AS col2
----
-2397

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT 52 DIV + 69 + + 60 - - 56 * - 32 * + + 72 + + + 28
----
-128936

skipif mysql # not compatible
query I rowsort label-2116
SELECT 52 / + 69 + + 60 - - 56 * - 32 * + + 72 + + + 28
----
-128936

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2118
SELECT COALESCE ( - CAST( 54 AS SIGNED ), NULLIF ( - CASE - - 24 WHEN - + 26 + 21 THEN NULL ELSE - - 68 END, + 76 ) DIV 10 ) + - + 65
----
-119

skipif mysql # not compatible
query I rowsort label-2118
SELECT COALESCE ( - CAST ( 54 AS INTEGER ), NULLIF ( - CASE - - 24 WHEN - + 26 + 21 THEN NULL ELSE - - 68 END, + 76 ) / 10 ) + - + 65
----
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT + MIN( + + 33 ) * 69 + + 85 AS col0
----
2362

skipif mysql # not compatible
query I rowsort label-2119
SELECT + MIN ( + + 33 ) * 69 + + 85 AS col0
----
2362

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT COALESCE ( 53, + + 83 ) * COUNT( * ) AS col2
----
53

skipif mysql # not compatible
query I rowsort label-2120
SELECT COALESCE ( 53, + + 83 ) * COUNT ( * ) AS col2
----
53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2121
SELECT ALL 10 DIV - + 6, - CAST( 98 AS SIGNED ) DIV 98 + + 93 AS col2
----
-1
92

skipif mysql # not compatible
query II rowsort label-2121
SELECT ALL 10 / - + 6, - CAST ( 98 AS INTEGER ) / 98 + + 93 AS col2
----
-1
92

query II rowsort
SELECT ALL - - 49 AS col2, 23 AS col2
----
49
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2123
SELECT ALL - - NULLIF ( CAST( - 10 AS SIGNED ), + + 25 ) AS col1, 52 + + 12 AS col2
----
-10
64

skipif mysql # not compatible
query II rowsort label-2123
SELECT ALL - - NULLIF ( CAST ( - 10 AS INTEGER ), + + 25 ) AS col1, 52 + + 12 AS col2
----
-10
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - ( COUNT( * ) ) + - + 5 + + 62
----
56

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - ( COUNT ( * ) ) + - + 5 + + 62
----
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2126
SELECT COUNT( * ) + - + CASE + 94 WHEN - MIN( DISTINCT + 84 ) + 68 + + 19 * - COUNT( * ) * 21 THEN - 14 WHEN - 92 / - 12 + + SUM( DISTINCT + 14 ) + - + NULLIF ( + 37, - + 7 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT COUNT ( * ) + - + CASE + 94 WHEN - MIN ( DISTINCT + 84 ) + 68 + + 19 * - COUNT ( * ) * 21 THEN - 14 WHEN - 92 / - 12 + + SUM ( DISTINCT + 14 ) + - + NULLIF ( + 37, - + 7 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 75 col0
----
-75

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2129
SELECT + + COUNT( * ) AS col2, COALESCE ( - 90, COUNT( * ) ) col2
----
1
-90

skipif mysql # not compatible
query II rowsort label-2129
SELECT + + COUNT ( * ) AS col2, COALESCE ( - 90, COUNT ( * ) ) col2
----
1
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT - + CASE - 74 WHEN - COUNT( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END
----
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT - + CASE - 74 WHEN - COUNT ( DISTINCT - - 21 ) + + CASE 64 WHEN ( - - COUNT ( * ) ) + - - 16 THEN NULL WHEN + 88 * - 56 / 47 / - 57 * - + 50 THEN + + 85 ELSE NULL END + - - 87 THEN 91 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2131
SELECT CAST( - - CASE - 48 WHEN + 0 THEN 44 END AS SIGNED ) * - CAST( NULL AS SIGNED ) + + - MAX( + 56 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2131
SELECT CAST ( - - CASE - 48 WHEN + 0 THEN 44 END AS INTEGER ) * - CAST ( NULL AS INTEGER ) + + - MAX ( + 56 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2132
SELECT 79 * - CAST( NULL AS SIGNED ) + 82 * - + 59 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT 79 * - CAST ( NULL AS INTEGER ) + 82 * - + 59 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2133
SELECT + 29, CASE 22 WHEN + COUNT( * ) THEN 97 ELSE NULL END + 45 AS col1
----
29
NULL

skipif mysql # not compatible
query II rowsort label-2133
SELECT + 29, CASE 22 WHEN + COUNT ( * ) THEN 97 ELSE NULL END + 45 AS col1
----
29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2134
SELECT - 66 DIV - NULLIF ( + + 70, - 21 * - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT - 66 / - NULLIF ( + + 70, - 21 * - COUNT ( * ) )
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2136
SELECT ALL + - MIN( ALL + 42 ) + + + 69 / - - 18 * - CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2136
SELECT ALL + - MIN ( ALL + 42 ) + + + 69 / - - 18 * - CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2137
SELECT - 79 AS col1, + NULLIF ( + 61, - 74 * - CAST( - 52 AS SIGNED ) + MAX( ALL + 20 ) )
----
-79
61

skipif mysql # not compatible
query II rowsort label-2137
SELECT - 79 AS col1, + NULLIF ( + 61, - 74 * - CAST ( - 52 AS INTEGER ) + MAX ( ALL + 20 ) )
----
-79
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2138
SELECT - 23 * - 54 * + - 47 - + 31 AS col1, ( - - 60 ) * + 10 * - SUM( - 40 )
----
-58405
24000

skipif mysql # not compatible
query II rowsort label-2138
SELECT - 23 * - 54 * + - 47 - + 31 AS col1, ( - - 60 ) * + 10 * - SUM ( - 40 )
----
-58405
24000

query II rowsort
SELECT DISTINCT - 77 AS col2, 65
----
-77
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2140
SELECT ALL + 96 + + 53 + + MAX( CAST( + - 40 AS SIGNED ) )
----
109

skipif mysql # not compatible
query I rowsort label-2140
SELECT ALL + 96 + + 53 + + MAX ( CAST ( + - 40 AS INTEGER ) )
----
109

query I rowsort
SELECT - - COALESCE ( + 47, 51, + - 22 ) + + - 86
----
-39

query I rowsort
SELECT - + 52 * - 91 AS col2
----
4732

onlyif mysql # aggregate syntax: 
query II rowsort label-2143
SELECT - COALESCE ( - + COUNT( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0
----
1
91

skipif mysql # not compatible
query II rowsort label-2143
SELECT - COALESCE ( - + COUNT ( * ), - 91 + - 17, + + 57 ) AS col0, 91 AS col0
----
1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT ALL MIN( DISTINCT - 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-2144
SELECT ALL MIN ( DISTINCT - 1 )
----
-1

query II rowsort
SELECT DISTINCT - 0 * - 48 AS col1, - 16
----
0
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-2146
SELECT - 29 DIV 24 AS col1, + 26
----
-1
26

skipif mysql # not compatible
query II rowsort label-2146
SELECT - 29 / 24 AS col1, + 26
----
-1
26

query I rowsort
SELECT - 41 * - + 68 AS col0
----
2788

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT + COUNT( * ) * - + 13 * - - COUNT( * ) * - 51 * 90 AS col0
----
59670

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT + COUNT ( * ) * - + 13 * - - COUNT ( * ) * - 51 * 90 AS col0
----
59670

query II rowsort
SELECT DISTINCT ( + 68 ) AS col1, + 80
----
68
80

query II rowsort
SELECT DISTINCT ( + 19 ) col1, - 53 col0
----
19
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT ALL CASE + 47 WHEN 62 + CAST( NULL AS SIGNED ) THEN + + 86 ELSE - 62 + - 37 END
----
-99

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL CASE + 47 WHEN 62 + CAST ( NULL AS INTEGER ) THEN + + 86 ELSE - 62 + - 37 END
----
-99

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

query I rowsort
SELECT - 4 * 40
----
-160

query I rowsort
SELECT DISTINCT + 80
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT + COUNT( 7 ) + 92
----
93

skipif mysql # not compatible
query I rowsort label-2156
SELECT + COUNT ( 7 ) + 92
----
93

query II rowsort
SELECT - 51 * - + 58 * 38, 42 AS col0
----
112404
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT COUNT( * ) * + 75 + - - 51 col2
----
126

skipif mysql # not compatible
query I rowsort label-2158
SELECT COUNT ( * ) * + 75 + - - 51 col2
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT - 68 DIV + 87
----
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT - 68 / + 87
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2160
SELECT + CASE + 13 WHEN 86 / - COUNT( * ) * + 47 * + + CASE - 74 WHEN + - AVG ( ALL - 68 ) / + 56 + + + 89 * + 96 + + 29 * - 6 THEN NULL WHEN 44 / - 26 THEN 5 ELSE - - 92 END THEN - 48 WHEN + - CAST( + + 76 AS SIGNED ) * + + 97 * - 58 THEN - 55 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2160
SELECT + CASE + 13 WHEN 86 / - COUNT ( * ) * + 47 * + + CASE - 74 WHEN + - AVG ( ALL - 68 ) / + 56 + + + 89 * + 96 + + 29 * - 6 THEN NULL WHEN 44 / - 26 THEN 5 ELSE - - 92 END THEN - 48 WHEN + - CAST ( + + 76 AS INTEGER ) * + + 97 * - 58 THEN - 55 END AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT ALL + 13 * + CASE + - 48 WHEN COUNT( * ) THEN - 46 ELSE + 71 END AS col0
----
923

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL + 13 * + CASE + - 48 WHEN COUNT ( * ) THEN - 46 ELSE + 71 END AS col0
----
923

query I rowsort
SELECT ALL - 17 * + 33 + - - 37 + 93 * + + 31 AS col1
----
2359

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT ALL - - 13 * - 12 + - 0 + - + 75 + + - MIN( - + 99 )
----
-132

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL - - 13 * - 12 + - 0 + - + 75 + + - MIN ( - + 99 )
----
-132

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

skipif mysql # not compatible
query I rowsort label-2165
SELECT DISTINCT 38 * - COUNT ( * ) + - 24 AS col0
----
-62

query I rowsort
SELECT + - 74 * 97 AS col2
----
-7178

query I rowsort
SELECT + + 15
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT ALL CASE WHEN NOT 10 IS NULL THEN + - 68 ELSE + COUNT( + - 99 ) * 57 * - 53 * + 92 END * + 67 + - 1
----
-4557

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL CASE WHEN NOT 10 IS NULL THEN + - 68 ELSE + COUNT ( + - 99 ) * 57 * - 53 * + 92 END * + 67 + - 1
----
-4557

query I rowsort
SELECT - 58 + 6 AS col1
----
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2170
SELECT DISTINCT 46 * - + 26 DIV - - COUNT( * ) + + COUNT( * ) + + 15 + - 63 AS col2
----
-1243

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT 46 * - + 26 / - - COUNT ( * ) + + COUNT ( * ) + + 15 + - 63 AS col2
----
-1243

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

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

query I rowsort
SELECT ALL - 2 * + 43 + - - 52 + 35 * + 52 + - + 62
----
1724

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

query I rowsort
SELECT + + 47 - + - 54 + + 44 col2
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT - NULLIF ( + 5, 82 + - COALESCE ( AVG ( ALL - 54 ), + 21 + + + 31 + + + MAX( 53 ) * - - 60, + + COUNT( DISTINCT - 31 ) ) + - + 7 * + 59 + + - 72 - 78 + + COALESCE ( AVG ( + - 2 ), - 48 * + CAST( NULL AS SIGNED ) - + 35 + 52 ) * + COUNT( * ) ) AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-2175
SELECT - NULLIF ( + 5, 82 + - COALESCE ( AVG ( ALL - 54 ), + 21 + + + 31 + + + MAX ( 53 ) * - - 60, + + COUNT ( DISTINCT - 31 ) ) + - + 7 * + 59 + + - 72 - 78 + + COALESCE ( AVG ( + - 2 ), - 48 * + CAST ( NULL AS INTEGER ) - + 35 + 52 ) * + COUNT ( * ) ) AS col2
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT + 9 * - 89 * COUNT( * ) + - 71 col2
----
-872

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT + 9 * - 89 * COUNT ( * ) + - 71 col2
----
-872

query I rowsort
SELECT 3 AS col1
----
3

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

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

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

query I rowsort
SELECT - - 10
----
10

query I rowsort
SELECT + 41 col0
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT - 36, - 38 + + - 17 + + - 6 * - 30 * 38 + + + COUNT( * ) AS col0
----
-36
6786

skipif mysql # not compatible
query II rowsort label-2182
SELECT - 36, - 38 + + - 17 + + - 6 * - 30 * 38 + + + COUNT ( * ) AS col0
----
-36
6786

query I rowsort
SELECT DISTINCT 77 - 33
----
44

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

query I rowsort
SELECT 19 AS col2
----
19

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

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

query I rowsort
SELECT + 17 * + - 44
----
-748

query I rowsort
SELECT DISTINCT 97 col1
----
97

query I rowsort
SELECT ALL ( + CASE - 95 WHEN 74 THEN + 23 ELSE - 3 END )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT ALL SUM( DISTINCT - 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL SUM ( DISTINCT - 72 ) AS col0
----
-72

query I rowsort
SELECT - 87 * 4 * 2 AS col2
----
-696

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2192
SELECT - 5 - + - 97 + + CAST( 20 AS SIGNED ) - - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2192
SELECT - 5 - + - 97 + + CAST ( 20 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2193
SELECT DISTINCT + 79 DIV + NULLIF ( - 14, - 92 ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT + 79 / + NULLIF ( - 14, - 92 ) AS col0
----
-5

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

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

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

skipif mysql # not compatible
query I rowsort label-2195
SELECT - COUNT ( * ) / - - 75
----
0

query II rowsort
SELECT 5 AS col0, - 68 AS col0
----
5
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2197
SELECT 52 * - COUNT( * ) + + 42 / + CAST( NULL AS SIGNED ) + + ( - - 33 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2197
SELECT 52 * - COUNT ( * ) + + 42 / + CAST ( NULL AS INTEGER ) + + ( - - 33 )
----
NULL

query I rowsort
SELECT DISTINCT - 80 * 4 AS col2
----
-320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2199
SELECT DISTINCT + 78 / - 23 + CAST( NULL AS SIGNED ) AS col1, ( + 54 )
----
NULL
54

skipif mysql # not compatible
query II rowsort label-2199
SELECT DISTINCT + 78 / - 23 + CAST ( NULL AS INTEGER ) AS col1, ( + 54 )
----
NULL
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL ( + - 79 ) DIV - 75 - 44 + + + 95 + + 40 + + 32 + + 66 * - - 18
----
1312

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL ( + - 79 ) / - 75 - 44 + + + 95 + + 40 + + 32 + + 66 * - - 18
----
1312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2201
SELECT ALL - 45 DIV - 89 + - + COUNT( * ) * + 75 * - 38 * - - 9 + + - 77
----
25573

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 45 / - 89 + - + COUNT ( * ) * + 75 * - 38 * - - 9 + + - 77
----
25573

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2202
SELECT + + 99 * - 44 + - - 93 + - 7 * - 33 + + 96 * + COUNT( * ) + - 23 DIV - 95 * 16 + - + 25 AS col1
----
-3961

skipif mysql # not compatible
query I rowsort label-2202
SELECT + + 99 * - 44 + - - 93 + - 7 * - 33 + + 96 * + COUNT ( * ) + - 23 / - 95 * 16 + - + 25 AS col1
----
-3961

query I rowsort
SELECT - 73 * - + 45 + - - 83
----
3368

query I rowsort
SELECT + 18 col1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2205
SELECT ALL 94 DIV 94 DIV - COUNT( * ) + + - 2 + - 47 * + 42 col1
----
-1977

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL 94 / 94 / - COUNT ( * ) + + - 2 + - 47 * + 42 col1
----
-1977

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2206
SELECT - NULLIF ( + - COUNT( * ), + - MIN( - CAST( NULL AS DECIMAL ) ) * - + 23 * - - 92 ) + + + 36 AS col0
----
37

skipif mysql # not compatible
query I rowsort label-2206
SELECT - NULLIF ( + - COUNT ( * ), + - MIN ( - CAST ( NULL AS REAL ) ) * - + 23 * - - 92 ) + + + 36 AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - 77 * - 29 * - + COUNT( + + 51 ) + 90 + - + 89 + 36 * - - 50 + COUNT( * ) + - 63 AS col1
----
-494

skipif mysql # not compatible
query I rowsort label-2207
SELECT - 77 * - 29 * - + COUNT ( + + 51 ) + 90 + - + 89 + 36 * - - 50 + COUNT ( * ) + - 63 AS col1
----
-494

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2209
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 62 + - + 14 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT CAST ( NULL AS REAL ) / + 62 + - + 14 * 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2210
SELECT + COUNT( * ) AS col2, 27 * - 97
----
1
-2619

skipif mysql # not compatible
query II rowsort label-2210
SELECT + COUNT ( * ) AS col2, 27 * - 97
----
1
-2619

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + - NULLIF ( - COUNT( * ), + 59 / 85 * - + 51 / - 63 * + 23 * - ( AVG ( - 14 ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2211
SELECT + - NULLIF ( - COUNT ( * ), + 59 / 85 * - + 51 / - 63 * + 23 * - ( AVG ( - 14 ) ) ) AS col2
----
1

query I rowsort
SELECT + 39 + 87 AS col0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2213
SELECT + 78 * + COUNT( * ) - + CAST( NULL AS SIGNED ) AS col2, + 6 + + 14 + 18
----
NULL
38

skipif mysql # not compatible
query II rowsort label-2213
SELECT + 78 * + COUNT ( * ) - + CAST ( NULL AS INTEGER ) AS col2, + 6 + + 14 + 18
----
NULL
38

query I rowsort
SELECT ALL 17 * + 90 + - 66
----
1464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT + COALESCE ( - + 78, 91 + - - 23 * + 23 + - + 39 + - 87, 75 * COALESCE ( - 7, + 84 * + 48 DIV - COALESCE ( 93, + + 98 ) + - 85 - - + CAST( NULL AS SIGNED ) + - + 35 + 71 + - + NULLIF ( + 22, - NULLIF ( + 2, - 73 ) ), - COUNT( ALL + ( - + 41 ) ) ) + + CAST( 45 AS SIGNED ) ) + - SUM( ALL - 98 + 0 * + 10 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + COALESCE ( - + 78, 91 + - - 23 * + 23 + - + 39 + - 87, 75 * COALESCE ( - 7, + 84 * + 48 / - COALESCE ( 93, + + 98 ) + - 85 - - + CAST ( NULL AS INTEGER ) + - + 35 + 71 + - + NULLIF ( + 22, - NULLIF ( + 2, - 73 ) ), - COUNT ( ALL + ( - + 41 ) ) ) + + CAST ( 45 AS INTEGER ) ) + - SUM ( ALL - 98 + 0 * + 10 ) AS col0
----
20

query I rowsort
SELECT ALL + 7 * 13 AS col2
----
91

query I rowsort
SELECT + 5 + + 85
----
90

query I rowsort
SELECT DISTINCT - + 79
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ( 93 ) + - MAX( - + 26 ) AS col1
----
119

skipif mysql # not compatible
query I rowsort label-2219
SELECT ( 93 ) + - MAX ( - + 26 ) AS col1
----
119

query II rowsort
SELECT - 14 AS col0, 84
----
-14
84

onlyif mysql # DIV for integer division: 
query II rowsort label-2221
SELECT 24 DIV 52 * - + 94 AS col2, 49 col1
----
0
49

skipif mysql # not compatible
query II rowsort label-2221
SELECT 24 / 52 * - + 94 AS col2, 49 col1
----
0
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2222
SELECT - - CASE - 84 WHEN + ( CAST( NULL AS SIGNED ) ) THEN NULL ELSE - + COUNT( * ) * + NULLIF ( - + 8, AVG ( DISTINCT - 3 ) ) END AS col1
----
8

skipif mysql # not compatible
query I rowsort label-2222
SELECT - - CASE - 84 WHEN + ( CAST ( NULL AS INTEGER ) ) THEN NULL ELSE - + COUNT ( * ) * + NULLIF ( - + 8, AVG ( DISTINCT - 3 ) ) END AS col1
----
8

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

query I rowsort
SELECT - NULLIF ( + 4, + 4 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2225
SELECT NULLIF ( - CAST( + - 50 AS SIGNED ), - 45 - - 33 ) DIV + + 26
----
1

skipif mysql # not compatible
query I rowsort label-2225
SELECT NULLIF ( - CAST ( + - 50 AS INTEGER ), - 45 - - 33 ) / + + 26
----
1

query I rowsort
SELECT ( 23 ) + - 41 * - 55
----
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT COUNT( * ) + 95
----
96

skipif mysql # not compatible
query I rowsort label-2227
SELECT COUNT ( * ) + 95
----
96

query I rowsort
SELECT DISTINCT COALESCE ( + + 49, - 95, - 28 * + 93 ) * - + 28
----
-1372

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

skipif mysql # not compatible
query I rowsort label-2229
SELECT COUNT ( * ) * + + 82 * + 44 AS col1
----
3608

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2230
SELECT 63 + - 47 + - 76 + - - COUNT( * ) * + + 35 DIV + + 20
----
-59

skipif mysql # not compatible
query I rowsort label-2230
SELECT 63 + - 47 + - 76 + - - COUNT ( * ) * + + 35 / + + 20
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2231
SELECT NULLIF ( - + 21, + COUNT( * ) + + 40 + - 65 * - - 4 + + + MIN( DISTINCT - 12 ) ) * - ( 93 ) * + 68 * 84 * + 46 AS col2
----
513154656

skipif mysql # not compatible
query I rowsort label-2231
SELECT NULLIF ( - + 21, + COUNT ( * ) + + 40 + - 65 * - - 4 + + + MIN ( DISTINCT - 12 ) ) * - ( 93 ) * + 68 * 84 * + 46 AS col2
----
513154656

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT 73 + + COUNT( * ) - + + 77
----
-3

skipif mysql # not compatible
query I rowsort label-2232
SELECT 73 + + COUNT ( * ) - + + 77
----
-3

query II rowsort
SELECT ALL - 93 + + + 21 AS col2, 6 AS col2
----
-72
6

query I rowsort
SELECT ALL 27 + + - 79 AS col0
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2235
SELECT CAST( - + 77 AS SIGNED ) * + 59 * + + COUNT( * )
----
-4543

skipif mysql # not compatible
query I rowsort label-2235
SELECT CAST ( - + 77 AS INTEGER ) * + 59 * + + COUNT ( * )
----
-4543

query I rowsort
SELECT ALL + 21 + + - 55
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT ALL + 52 DIV + MIN( + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + 52 / + MIN ( + 85 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2238
SELECT + 26 DIV + ( + 53 ) * - ( + COUNT( ALL - 88 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2238
SELECT + 26 / + ( + 53 ) * - ( + COUNT ( ALL - 88 ) )
----
0

query I rowsort
SELECT + 96 * 99 AS col1
----
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL - + NULLIF ( + - MAX( - 21 ), - + 24 ) + 82
----
61

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - + NULLIF ( + - MAX ( - 21 ), - + 24 ) + 82
----
61

query I rowsort
SELECT + - 32
----
-32

query I rowsort
SELECT - NULLIF ( 98, - 47 ) AS col2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT - COUNT( + 18 ) - - COUNT( * ) - + + 98
----
-98

skipif mysql # not compatible
query I rowsort label-2243
SELECT - COUNT ( + 18 ) - - COUNT ( * ) - + + 98
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - 76 * COUNT( * ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-2244
SELECT - 76 * COUNT ( * ) AS col2
----
-76

query I rowsort
SELECT ALL - - 45
----
45

query I rowsort
SELECT - COALESCE ( 46, - 84 * 53 )
----
-46

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - COUNT( - ( - 2 ) ) * 50 + + + 30 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-2249
SELECT - COUNT ( - ( - 2 ) ) * 50 + + + 30 AS col0
----
-20

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

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

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

query I rowsort
SELECT ALL + 84 - - 16 * ( + 34 ) col1
----
628

query I rowsort
SELECT - 78 * + + 84 AS col0
----
-6552

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2254
SELECT 70 * - 13 + 83 * + 2 AS col1, + 51 + + - 84 DIV - + COALESCE ( - CASE COUNT( * ) WHEN + 90 + 14 * 18 THEN + + 51 ELSE + + 18 END, 96, + 81 )
----
-744
47

skipif mysql # not compatible
query II rowsort label-2254
SELECT 70 * - 13 + 83 * + 2 AS col1, + 51 + + - 84 / - + COALESCE ( - CASE COUNT ( * ) WHEN + 90 + 14 * 18 THEN + + 51 ELSE + + 18 END, 96, + 81 )
----
-744
47

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

query I rowsort
SELECT ALL - 60
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL + 96 DIV - 40 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL + 96 / - 40 AS col2
----
-2

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

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( * ) * - COUNT ( * ) * - - 16
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-2259
SELECT 32 + - + MIN( + 0 ) * - COUNT( * ) * - + 24 + + + 11 + + COALESCE ( + 37, 68, + 52 ) AS col1, - 39
----
80
-39

skipif mysql # not compatible
query II rowsort label-2259
SELECT 32 + - + MIN ( + 0 ) * - COUNT ( * ) * - + 24 + + + 11 + + COALESCE ( + 37, 68, + 52 ) AS col1, - 39
----
80
-39

query II rowsort
SELECT ALL 42, 17 * + 9 AS col2
----
42
153

onlyif mysql # aggregate syntax: 
query II rowsort label-2261
SELECT - 43, MAX( ALL - 65 ) col2
----
-43
-65

skipif mysql # not compatible
query II rowsort label-2261
SELECT - 43, MAX ( ALL - 65 ) col2
----
-43
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT 12 + + SUM( DISTINCT - + 96 ) - 64
----
-148

skipif mysql # not compatible
query I rowsort label-2262
SELECT 12 + + SUM ( DISTINCT - + 96 ) - 64
----
-148

query I rowsort
SELECT 18 * - + 16
----
-288

query I rowsort
SELECT 54 * + 61 * - - 18
----
59292

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT 38 AS col1, 5 - 46 - - + COALESCE ( - 56, - COUNT( * ) ) + + + ( - - 8 )
----
38
-89

skipif mysql # not compatible
query II rowsort label-2266
SELECT 38 AS col1, 5 - 46 - - + COALESCE ( - 56, - COUNT ( * ) ) + + + ( - - 8 )
----
38
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT DISTINCT + ( MAX( - - 25 ) ) + 94 AS col1
----
119

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT + ( MAX ( - - 25 ) ) + 94 AS col1
----
119

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT MAX( - - 52 ) * + + 58
----
3016

skipif mysql # not compatible
query I rowsort label-2269
SELECT MAX ( - - 52 ) * + + 58
----
3016

query I rowsort
SELECT ALL + 89 + + 42
----
131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL - CAST( NULL AS SIGNED ) / - - COUNT( * ) AS col2
----
NULL

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

query I rowsort
SELECT ALL 68 * 17 * 24
----
27744

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

skipif mysql # not compatible
query I rowsort label-2273
SELECT - SUM ( DISTINCT 90 )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL 80 + MIN( 61 ) * - 5 + - 72
----
-297

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL 80 + MIN ( 61 ) * - 5 + - 72
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT COUNT( * ) + - - 72 - - + 57 AS col1
----
130

skipif mysql # not compatible
query I rowsort label-2275
SELECT COUNT ( * ) + - - 72 - - + 57 AS col1
----
130

query I rowsort
SELECT ( - 13 ) - + + ( + - 48 ) + + - ( - 17 ) - + 70 * - 88 * + 40 * - - 64 col2
----
15769652

query I rowsort
SELECT 53 + + 27 * + 13
----
404

onlyif mysql # aggregate syntax: 
query I rowsort label-2278
SELECT SUM( - + 55 ) - - COUNT( ALL 84 ) - + COUNT( * ) * 18 * + 5 * - 86 AS col1
----
7686

skipif mysql # not compatible
query I rowsort label-2278
SELECT SUM ( - + 55 ) - - COUNT ( ALL 84 ) - + COUNT ( * ) * 18 * + 5 * - 86 AS col1
----
7686

query I rowsort
SELECT + 94 * - + 89
----
-8366

query I rowsort
SELECT ALL + - 90
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT + + 75 DIV 59 + + + 40 + + - 65 + - - COUNT( * ) DIV ( - ( - 82 ) ) + COUNT( * ) DIV + COALESCE ( 7, - - 70 + 43 )
----
-24

skipif mysql # not compatible
query I rowsort label-2281
SELECT + + 75 / 59 + + + 40 + + - 65 + - - COUNT ( * ) / ( - ( - 82 ) ) + COUNT ( * ) / + COALESCE ( 7, - - 70 + 43 )
----
-24

query I rowsort
SELECT ALL 10 * 67 * - - NULLIF ( + 92, - - 11 * - + 65 ) - - + 22 - 27 AS col0
----
61635

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

skipif mysql # not compatible
query I rowsort label-2283
SELECT DISTINCT + - COUNT ( * ) AS col2
----
-1

query II rowsort
SELECT 85, 49 AS col2
----
85
49

query I rowsort
SELECT DISTINCT + + 52
----
52

query I rowsort
SELECT + + ( - 37 ) AS col0
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2287
SELECT - + 69 DIV + 57 col1
----
-1

skipif mysql # not compatible
query I rowsort label-2287
SELECT - + 69 / + 57 col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2288
SELECT DISTINCT MIN( DISTINCT - 21 ) DIV 55
----
0

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT MIN ( DISTINCT - 21 ) / 55
----
0

query I rowsort
SELECT - 23 + - + 6
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-2290
SELECT + 62 DIV 76 * 85 AS col1, - 10
----
0
-10

skipif mysql # not compatible
query II rowsort label-2290
SELECT + 62 / 76 * 85 AS col1, - 10
----
0
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-2291
SELECT - 32 * + ( - 52 ) AS col1, 71 DIV + 14 AS col2
----
1664
5

skipif mysql # not compatible
query II rowsort label-2291
SELECT - 32 * + ( - 52 ) AS col1, 71 / + 14 AS col2
----
1664
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2292
SELECT DISTINCT + COUNT( - 29 ) DIV + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2292
SELECT DISTINCT + COUNT ( - 29 ) / + 25 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2294
SELECT ALL - 53 * + 63 * CAST( + + ( 50 ) AS SIGNED ) - + MIN( + 93 ) * - 20 + + + 50 DIV - 78
----
-165090

skipif mysql # not compatible
query I rowsort label-2294
SELECT ALL - 53 * + 63 * CAST ( + + ( 50 ) AS INTEGER ) - + MIN ( + 93 ) * - 20 + + + 50 / - 78
----
-165090

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

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT 64 * + COUNT ( * ) AS col2
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2296
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, - 19 + + 42 AS col1
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL + CAST ( NULL AS REAL ) AS col1, - 19 + + 42 AS col1
----
NULL
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2297
SELECT - MAX( DISTINCT + 10 ) * 34 * - CAST( 56 AS SIGNED ) * + - COUNT( DISTINCT 15 )
----
-19040

skipif mysql # not compatible
query I rowsort label-2297
SELECT - MAX ( DISTINCT + 10 ) * 34 * - CAST ( 56 AS INTEGER ) * + - COUNT ( DISTINCT 15 )
----
-19040

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2301
SELECT + 96 AS col2, - ( + 5 ) * MIN( + 90 )
----
96
-450

skipif mysql # not compatible
query II rowsort label-2301
SELECT + 96 AS col2, - ( + 5 ) * MIN ( + 90 )
----
96
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL CASE - 18 WHEN + - 64 THEN - - COUNT( ALL + - 14 ) ELSE 77 END AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL CASE - 18 WHEN + - 64 THEN - - COUNT ( ALL + - 14 ) ELSE 77 END AS col0
----
77

query I rowsort
SELECT - 52 * NULLIF ( - 10, + + 51 ) * 56
----
29120

query I rowsort
SELECT DISTINCT NULLIF ( 18, + 5 ) AS col0
----
18

query I rowsort
SELECT ALL + 93 + + 55 * - NULLIF ( - - 43, + + ( - ( + 72 ) ) + + 12 )
----
-2272

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - 22 + COUNT( * ) * + 85 + + 70 + 71 + 31
----
235

skipif mysql # not compatible
query I rowsort label-2307
SELECT - 22 + COUNT ( * ) * + 85 + + 70 + 71 + 31
----
235

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

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

query I rowsort
SELECT ALL 69 * + 48
----
3312

query II rowsort
SELECT 45, 52 * + + 72 AS col0
----
45
3744

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

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

query I rowsort
SELECT + ( + 14 ) + - + 49 AS col1
----
-35

query II rowsort
SELECT - 30 AS col0, + 88 * + 80 * + 39
----
-30
274560

query II rowsort
SELECT DISTINCT + 56 AS col0, 91 + + 88
----
56
179

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2315
SELECT ALL 47 AS col2, - CAST( NULL AS SIGNED ) AS col0
----
47
NULL

skipif mysql # not compatible
query II rowsort label-2315
SELECT ALL 47 AS col2, - CAST ( NULL AS INTEGER ) AS col0
----
47
NULL

query I rowsort
SELECT ALL CASE - 94 WHEN 75 THEN + 81 WHEN + 78 + + 94 THEN - 31 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2317
SELECT DISTINCT - - 45 DIV - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2317
SELECT DISTINCT - - 45 / - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT + SUM( ALL + 25 ) * + + 57 + - COUNT( * ) * - MAX( - 90 ) col2
----
1335

skipif mysql # not compatible
query I rowsort label-2318
SELECT + SUM ( ALL + 25 ) * + + 57 + - COUNT ( * ) * - MAX ( - 90 ) col2
----
1335

query I rowsort
SELECT - 11 - - 43 col1
----
32

query II rowsort
SELECT + + 84 col1, 69
----
84
69

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

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

query II rowsort
SELECT 25 AS col0, 34 AS col1
----
25
34

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

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

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

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

query I rowsort
SELECT ALL 91 * - 61 * - 44 AS col0
----
244244

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2326
SELECT + - 62 - MIN( + 42 ) DIV - MAX( + 4 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-2326
SELECT + - 62 - MIN ( + 42 ) / - MAX ( + 4 ) AS col1
----
-52

query I rowsort
SELECT ALL - 57 * - ( + - 37 ) AS col0
----
-2109

query I rowsort
SELECT ( - 28 )
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-2329
SELECT ALL + + COUNT( * ) col2, 51 * COUNT( * ) + + 46
----
1
97

skipif mysql # not compatible
query II rowsort label-2329
SELECT ALL + + COUNT ( * ) col2, 51 * COUNT ( * ) + + 46
----
1
97

query II rowsort
SELECT + + 33 col0, - ( - - 30 ) * + + 3 + + 77
----
33
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2331
SELECT ALL + 78 * + CAST( - 59 AS SIGNED ) + + ( - + 93 ) * - - 18 * + + COUNT( * ) AS col1, - 43 AS col1
----
-6276
-43

skipif mysql # not compatible
query II rowsort label-2331
SELECT ALL + 78 * + CAST ( - 59 AS INTEGER ) + + ( - + 93 ) * - - 18 * + + COUNT ( * ) AS col1, - 43 AS col1
----
-6276
-43

query III rowsort
SELECT + 59 + - + 19 AS col1, 6 AS col2, + 76 + + 94 + + 55
----
40
6
225

query I rowsort
SELECT ( + COALESCE ( + + 62, + - 9 + + - 4 ) )
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2334
SELECT 6 * 74 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2334
SELECT 6 * 74 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - 41 - - - 55 AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2336
SELECT ALL COUNT( * ) DIV 67 * 9 * + - 89 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2336
SELECT ALL COUNT ( * ) / 67 * 9 * + - 89 AS col2
----
0

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

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

query I rowsort
SELECT - 58 + 38 * + + NULLIF ( NULLIF ( + 59, - 67 ), 98 ) + + 88 AS col2
----
2272

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT ALL 79 * - 97 + + MAX( ALL 84 ) + + - ( 42 )
----
-7621

skipif mysql # not compatible
query I rowsort label-2339
SELECT ALL 79 * - 97 + + MAX ( ALL 84 ) + + - ( 42 )
----
-7621

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT ALL 48 * + - 65 + MAX( - + 46 )
----
-3166

skipif mysql # not compatible
query I rowsort label-2340
SELECT ALL 48 * + - 65 + MAX ( - + 46 )
----
-3166

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2341
SELECT + 5 * + + COUNT( * ) DIV COUNT( * ) * + 49
----
245

skipif mysql # not compatible
query I rowsort label-2341
SELECT + 5 * + + COUNT ( * ) / COUNT ( * ) * + 49
----
245

query I rowsort
SELECT - 81 + + NULLIF ( + 30, + - 35 ) AS col2
----
-51

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

query I rowsort
SELECT NULLIF ( - - 79, - 67 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - 69 * COUNT( * ) + + + 78
----
9

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - 69 * COUNT ( * ) + + + 78
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT - NULLIF ( + CASE - 32 WHEN CAST( NULL AS SIGNED ) THEN ( - 12 ) ELSE NULL END, + - 50 ) * + + COUNT( * ) / - 50 - - CAST( + COUNT( * ) AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT - NULLIF ( + CASE - 32 WHEN CAST ( NULL AS INTEGER ) THEN ( - 12 ) ELSE NULL END, + - 50 ) * + + COUNT ( * ) / - 50 - - CAST ( + COUNT ( * ) AS INTEGER ) col0
----
NULL

query I rowsort
SELECT + 45 * + 30 AS col2
----
1350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2348
SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST( NULL AS SIGNED ), - 44 * + CAST( NULL AS SIGNED ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT( * ) AS col1
----
-199584
NULL

skipif mysql # not compatible
query II rowsort label-2348
SELECT 72 * - 44 * 63 AS col1, 12 + - NULLIF ( + + CAST ( NULL AS INTEGER ), - 44 * + CAST ( NULL AS INTEGER ) + + - 5 * - 58 + + - 94 ) - - 70 * + COUNT ( * ) AS col1
----
-199584
NULL

query II rowsort
SELECT 78 - - + 15 AS col0, + 12 AS col0
----
93
12

query I rowsort
SELECT 17 col0
----
17

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

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

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL - 13 / CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT - CASE + 69 WHEN - CAST( + - 21 AS SIGNED ) + - - 30 THEN - + NULLIF ( + 99, + - 79 + + - 75 ) * + + 17 * - 42 END - + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2353
SELECT - CASE + 69 WHEN - CAST ( + - 21 AS INTEGER ) + - - 30 THEN - + NULLIF ( + 99, + - 79 + + - 75 ) * + + 17 * - 42 END - + 0 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 96
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - 22 + - COUNT( * ) + - ( 92 ) * - 84 AS col2
----
7705

skipif mysql # not compatible
query I rowsort label-2355
SELECT - 22 + - COUNT ( * ) + - ( 92 ) * - 84 AS col2
----
7705

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2356
SELECT DISTINCT - 61 * - 87 AS col0, 76 * + 21 * + CAST( NULL AS SIGNED )
----
5307
NULL

skipif mysql # not compatible
query II rowsort label-2356
SELECT DISTINCT - 61 * - 87 AS col0, 76 * + 21 * + CAST ( NULL AS INTEGER )
----
5307
NULL

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

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 97 + - - COUNT ( - 38 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2358
SELECT - - NULLIF ( - 68, 1 + + - 66 ) DIV - 3 + 15 + COUNT( * ) * - - 52 + 27 AS col0
----
116

skipif mysql # not compatible
query I rowsort label-2358
SELECT - - NULLIF ( - 68, 1 + + - 66 ) / - 3 + 15 + COUNT ( * ) * - - 52 + 27 AS col0
----
116

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

query I rowsort
SELECT ALL - - 97
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2361
SELECT 55 * - + NULLIF ( - COUNT( * ), + + CAST( + + 39 AS SIGNED ) - - + 0 )
----
55

skipif mysql # not compatible
query I rowsort label-2361
SELECT 55 * - + NULLIF ( - COUNT ( * ), + + CAST ( + + 39 AS INTEGER ) - - + 0 )
----
55

query I rowsort
SELECT ALL + - 75 + + 70 col0
----
-5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2364
SELECT 67 * - 14 * COUNT( * ) + + 60 + + 92 AS col0, - 74
----
-786
-74

skipif mysql # not compatible
query II rowsort label-2364
SELECT 67 * - 14 * COUNT ( * ) + + 60 + + 92 AS col0, - 74
----
-786
-74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2365
SELECT DISTINCT + NULLIF ( 28, + COALESCE ( 0, + CAST( - + MIN( + - 20 ) AS DECIMAL ), 95 ) + ( - 27 ) + - - 43 * - 43 ) + + ( + 79 )
----
107

skipif mysql # not compatible
query I rowsort label-2365
SELECT DISTINCT + NULLIF ( 28, + COALESCE ( 0, + CAST ( - + MIN ( + - 20 ) AS REAL ), 95 ) + ( - 27 ) + - - 43 * - 43 ) + + ( + 79 )
----
107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT 31 * 56 * + - COUNT( * )
----
-1736

skipif mysql # not compatible
query I rowsort label-2367
SELECT 31 * 56 * + - COUNT ( * )
----
-1736

query I rowsort
SELECT ALL - 66 * + 76 * + 61 * 85 AS col2
----
-26007960

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

query I rowsort
SELECT 44 + + NULLIF ( + 83, + 67 * + 43 ) + - 29 AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT CASE CASE - + ( 98 ) WHEN 31 THEN - - COALESCE ( - 57, ( - 9 ), - + 29 - NULLIF ( + + 62, ( - 99 ) * - COUNT( + 45 ) ) + + 83 ) - + 59 - + - 92 * - COALESCE ( - 32, COUNT( * ) ) ELSE + - 3 END WHEN 15 / - + 39 + - ( + 46 ) * - + 65 - - 79 THEN NULLIF ( - - 98, 35 - ( - ( - 8 ) ) * - COUNT( * ) ) ELSE NULL END * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT CASE CASE - + ( 98 ) WHEN 31 THEN - - COALESCE ( - 57, ( - 9 ), - + 29 - NULLIF ( + + 62, ( - 99 ) * - COUNT ( + 45 ) ) + + 83 ) - + 59 - + - 92 * - COALESCE ( - 32, COUNT ( * ) ) ELSE + - 3 END WHEN 15 / - + 39 + - ( + 46 ) * - + 65 - - 79 THEN NULLIF ( - - 98, 35 - ( - ( - 8 ) ) * - COUNT ( * ) ) ELSE NULL END * 82
----
NULL

query I rowsort
SELECT ( - + 30 ) + + 49 + - 81
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT DISTINCT 92 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT 92 / - 49
----
-1

query II rowsort
SELECT DISTINCT 21, + 63 * + + 6 AS col2
----
21
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT ALL 21 / 64 * CAST( NULL AS SIGNED ) * + + ( + 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL 21 / 64 * CAST ( NULL AS INTEGER ) * + + ( + 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT ( + 50 ) + ( - + COALESCE ( + 69, + SUM( DISTINCT - 62 ) * 48 + + - 62, COUNT( * ) ) ) AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-2376
SELECT ( + 50 ) + ( - + COALESCE ( + 69, + SUM ( DISTINCT - 62 ) * 48 + + - 62, COUNT ( * ) ) ) AS col0
----
-19

query I rowsort
SELECT 82 * + 44
----
3608

onlyif mysql # aggregate syntax: 
query II rowsort label-2378
SELECT ALL 27, COUNT( * ) AS col2
----
27
1

skipif mysql # not compatible
query II rowsort label-2378
SELECT ALL 27, COUNT ( * ) AS col2
----
27
1

query I rowsort
SELECT 44 + 86 AS col0
----
130

query I rowsort
SELECT ALL 0 * - + 86 AS col2
----
0

query I rowsort
SELECT - 70 * - - 15 AS col2
----
-1050

query II rowsort
SELECT 91 * ( 52 ) AS col2, + 70
----
4732
70

onlyif mysql # aggregate syntax: 
query II rowsort label-2383
SELECT + COUNT( * ) AS col0, 6 - - 80
----
1
86

skipif mysql # not compatible
query II rowsort label-2383
SELECT + COUNT ( * ) AS col0, 6 - - 80
----
1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT COUNT( * ) + - + 99 AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-2384
SELECT COUNT ( * ) + - + 99 AS col0
----
-98

query I rowsort
SELECT + 62 + 11 AS col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT ALL + + 15 + + - 95 * 68 + + MIN( + - 89 ) AS col2
----
-6534

skipif mysql # not compatible
query I rowsort label-2386
SELECT ALL + + 15 + + - 95 * 68 + + MIN ( + - 89 ) AS col2
----
-6534

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2388
SELECT DISTINCT MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT MAX ( ALL - 38 )
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2389
SELECT DISTINCT + 99 + COUNT( * ) * + 70 - + - 97 + 19 * 28 * - 41 + 76 + - - 28 + - CASE - COUNT( DISTINCT + - 54 ) WHEN + CAST( NULL AS SIGNED ) THEN + MAX( DISTINCT - 52 ) WHEN - 84 * - 49 + + 91 + - 10 THEN NULL WHEN - 40 THEN - 23 END * - 84 + + - 77 + + 48 - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2389
SELECT DISTINCT + 99 + COUNT ( * ) * + 70 - + - 97 + 19 * 28 * - 41 + 76 + - - 28 + - CASE - COUNT ( DISTINCT + - 54 ) WHEN + CAST ( NULL AS INTEGER ) THEN + MAX ( DISTINCT - 52 ) WHEN - 84 * - 49 + + 91 + - 10 THEN NULL WHEN - 40 THEN - 23 END * - 84 + + - 77 + + 48 - + COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 23 + - - ( 72 ) + - 12
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT ALL - 66 + + + COUNT( * ) + - - COUNT( * ) * 82 * + 29
----
2313

skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL - 66 + + + COUNT ( * ) + - - COUNT ( * ) * 82 * + 29
----
2313

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2392
SELECT DISTINCT + + 73 * + MAX( ALL + - CAST( 56 AS SIGNED ) ) + 16
----
-4072

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + + 73 * + MAX ( ALL + - CAST ( 56 AS INTEGER ) ) + 16
----
-4072

query I rowsort
SELECT + 78 * - - 59
----
4602

query I rowsort
SELECT - 63 AS col1
----
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2395
SELECT ALL 97 * 33 + + - COUNT( * ) + 56, - 58 + + - CASE + COUNT( * ) WHEN - - CAST( + 61 AS SIGNED ) THEN + 73 ELSE NULL END AS col2
----
3256
NULL

skipif mysql # not compatible
query II rowsort label-2395
SELECT ALL 97 * 33 + + - COUNT ( * ) + 56, - 58 + + - CASE + COUNT ( * ) WHEN - - CAST ( + 61 AS INTEGER ) THEN + 73 ELSE NULL END AS col2
----
3256
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2396
SELECT 38 * 37 * - - CAST( - COALESCE ( COUNT( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS SIGNED ) AS col2, 88 * 14 * + - 71 AS col2
----
-1406
-87472

skipif mysql # not compatible
query II rowsort label-2396
SELECT 38 * 37 * - - CAST ( - COALESCE ( COUNT ( * ), - 82, + 39 * 98 * AVG ( + 69 ) ) AS INTEGER ) AS col2, 88 * 14 * + - 71 AS col2
----
-1406
-87472

query I rowsort
SELECT ALL + 34 * 5 AS col0
----
170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2398
SELECT ALL - CAST( + 0 AS SIGNED ) * + COUNT( * ) * 29 DIV 21 + 19 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL - CAST ( + 0 AS INTEGER ) * + COUNT ( * ) * 29 / 21 + 19 AS col0
----
19

query I rowsort
SELECT 47 - 54 + + 38 AS col1
----
31

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2401
SELECT CASE 31 WHEN - 88 * + + 29 - 78 * 3 + + NULLIF ( + 74, + SUM( 61 ) ) THEN - 30 DIV + 75 ELSE + ( COUNT( * ) ) DIV - - 12 END * + ( 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2401
SELECT CASE 31 WHEN - 88 * + + 29 - 78 * 3 + + NULLIF ( + 74, + SUM ( 61 ) ) THEN - 30 / + 75 ELSE + ( COUNT ( * ) ) / - - 12 END * + ( 0 ) AS col0
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2403
SELECT ALL 40 * + COUNT( * ) * - 4 * SUM( DISTINCT - + 68 ) - + 68 DIV - COALESCE ( 95, + 0 * 77, 14 ) col0
----
10880

skipif mysql # not compatible
query I rowsort label-2403
SELECT ALL 40 * + COUNT ( * ) * - 4 * SUM ( DISTINCT - + 68 ) - + 68 / - COALESCE ( 95, + 0 * 77, 14 ) col0
----
10880

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT 37 * - + SUM( ALL + 82 )
----
-3034

skipif mysql # not compatible
query I rowsort label-2404
SELECT 37 * - + SUM ( ALL + 82 )
----
-3034

query I rowsort
SELECT + 50 col1
----
50

query I rowsort
SELECT ALL + 18 col2
----
18

query I rowsort
SELECT DISTINCT + NULLIF ( 25, - 27 )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT + NULLIF ( + ( + 47 ), + CAST( NULL AS SIGNED ) * - - 82 + - + 4 ) - + NULLIF ( - 53, + 96 * - 50 ) + + 19 - - + 95 * - 44
----
-4061

skipif mysql # not compatible
query I rowsort label-2408
SELECT + NULLIF ( + ( + 47 ), + CAST ( NULL AS INTEGER ) * - - 82 + - + 4 ) - + NULLIF ( - 53, + 96 * - 50 ) + + 19 - - + 95 * - 44
----
-4061

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

skipif mysql # not compatible
query I rowsort label-2409
SELECT - COUNT ( * ) * - - ( 5 )
----
-5

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

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

query II rowsort
SELECT DISTINCT 51 * - 29 col2, 46 + 23 + - + 74
----
-1479
-5

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

query I rowsort
SELECT DISTINCT + 99 * + 30 AS col1
----
2970

query I rowsort
SELECT 42 AS col1
----
42

query I rowsort
SELECT - - 90
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-2416
SELECT + ( 73 ), + SUM( 91 ) AS col1
----
73
91

skipif mysql # not compatible
query II rowsort label-2416
SELECT + ( 73 ), + SUM ( 91 ) AS col1
----
73
91

query I rowsort
SELECT - - 36
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2418
SELECT + 91 DIV 4
----
22

skipif mysql # not compatible
query I rowsort label-2418
SELECT + 91 / 4
----
22

query I rowsort
SELECT + 60 * - 99 + + 83
----
-5857

query I rowsort
SELECT - 50 AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL 74 + CASE - 87 WHEN + COUNT( * ) THEN + 80 / 2 + - COUNT( * ) + + 56 + - - 89 WHEN - 54 THEN 26 END * - - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL 74 + CASE - 87 WHEN + COUNT ( * ) THEN + 80 / 2 + - COUNT ( * ) + + 56 + - - 89 WHEN - 54 THEN 26 END * - - 66 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2422
SELECT DISTINCT + COUNT( * ) + - 85 col0, 2 * + - 53
----
-84
-106

skipif mysql # not compatible
query II rowsort label-2422
SELECT DISTINCT + COUNT ( * ) + - 85 col0, 2 * + - 53
----
-84
-106

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + - 75 + + 16 + COUNT( ALL 26 )
----
-58

skipif mysql # not compatible
query I rowsort label-2425
SELECT + - 75 + + 16 + COUNT ( ALL 26 )
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2426
SELECT ALL - 69 + + 8 * - + MIN( + - CAST( NULL AS SIGNED ) ) + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL - 69 + + 8 * - + MIN ( + - CAST ( NULL AS INTEGER ) ) + 78
----
NULL

query I rowsort
SELECT + + 0 * 3 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2428
SELECT MAX( - 94 ) col1, 73 AS col0
----
-94
73

skipif mysql # not compatible
query II rowsort label-2428
SELECT MAX ( - 94 ) col1, 73 AS col0
----
-94
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT + + COUNT( * ) + - + 94 - 12
----
-105

skipif mysql # not compatible
query I rowsort label-2429
SELECT + + COUNT ( * ) + - + 94 - 12
----
-105

query II rowsort
SELECT - + COALESCE ( + 23, 71 ) - - - 7 AS col1, + 44
----
-30
44

query I rowsort
SELECT + - 40 + - - 50 + - - 50 AS col2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT - 76 - 60 + + NULLIF ( - 0, 10 * - COUNT( * ) ) + - 54 - - - 73 AS col0
----
-263

skipif mysql # not compatible
query I rowsort label-2432
SELECT - 76 - 60 + + NULLIF ( - 0, 10 * - COUNT ( * ) ) + - 54 - - - 73 AS col0
----
-263

query I rowsort
SELECT + + 65 + - + 92 AS col2
----
-27

query I rowsort
SELECT - 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL - - COUNT( * ) - 38 * - 40 AS col1
----
1521

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - - COUNT ( * ) - 38 * - 40 AS col1
----
1521

query I rowsort
SELECT - + 79
----
-79

query I rowsort
SELECT ALL + 21 AS col2
----
21

query I rowsort
SELECT - 82 + + 79 + + - 29 + - ( COALESCE ( + - ( + + 5 ), + + 18 * 29 ) )
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2439
SELECT + 55 * - 62 + - COUNT( * )
----
-3411

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 55 * - 62 + - COUNT ( * )
----
-3411

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + SUM( DISTINCT - 14 ) * - SUM( + 28 ) col0
----
392

skipif mysql # not compatible
query I rowsort label-2440
SELECT + SUM ( DISTINCT - 14 ) * - SUM ( + 28 ) col0
----
392

query I rowsort
SELECT - ( - + 44 ) * + 59 * 24 AS col0
----
62304

onlyif mysql # aggregate syntax: 
query II rowsort label-2442
SELECT ALL + 3 * ( - - COUNT( * ) ) AS col0, 8
----
3
8

skipif mysql # not compatible
query II rowsort label-2442
SELECT ALL + 3 * ( - - COUNT ( * ) ) AS col0, 8
----
3
8

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT 12 DIV 37 + + 7 + - 60 * + 45
----
-2693

skipif mysql # not compatible
query I rowsort label-2445
SELECT 12 / 37 + + 7 + - 60 * + 45
----
-2693

query I rowsort
SELECT - 40 * 88 AS col0
----
-3520

query I rowsort
SELECT - 4 + - 21 col1
----
-25

query I rowsort
SELECT ALL + NULLIF ( - 10, 34 * + 46 * - 42 * - + 91 )
----
-10

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

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

query I rowsort
SELECT DISTINCT - 85 * + 40 AS col2
----
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT + 31 * + 38 * COUNT( * ) AS col2
----
1178

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + 31 * + 38 * COUNT ( * ) AS col2
----
1178

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT ALL - 40 DIV - + 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL - 40 / - + 76 AS col1
----
0

query I rowsort
SELECT DISTINCT + 30
----
30

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

query I rowsort
SELECT - 74 + - 83
----
-157

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT - 61 * COUNT( * ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-2458
SELECT - 61 * COUNT ( * ) AS col0
----
-61

query I rowsort
SELECT + 31 + - ( 1 ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT 94 * + 13 / + AVG ( + - 56 ) * COUNT( * ) * + + CASE - COUNT( * ) WHEN + 97 THEN NULL WHEN - + 25 THEN + ( 15 ) / + ( - + 62 ) * - + 15 * - 84 END + + 76 / + - 50 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT 94 * + 13 / + AVG ( + - 56 ) * COUNT ( * ) * + + CASE - COUNT ( * ) WHEN + 97 THEN NULL WHEN - + 25 THEN + ( 15 ) / + ( - + 62 ) * - + 15 * - 84 END + + 76 / + - 50 AS col1
----
NULL

query I rowsort
SELECT ALL + CASE - 29 WHEN - 47 THEN 5 END
----
NULL

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

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

query I rowsort
SELECT ALL - + 98 * + 54 - - + 70 + + 2
----
-5220

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2464
SELECT ALL - CAST( NULL AS DECIMAL ) * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL - CAST ( NULL AS REAL ) * + 97
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2466
SELECT + - COUNT( ALL - 80 ) * + + 12 * + + NULLIF ( + ( - SUM( ALL - - 28 ) ), ( + + CASE - MAX( ALL + + 51 ) WHEN CAST( NULL AS SIGNED ) THEN 43 ELSE NULL END ) * + - 22 + + 80 * 9 * 72 ) AS col2
----
336

skipif mysql # not compatible
query I rowsort label-2466
SELECT + - COUNT ( ALL - 80 ) * + + 12 * + + NULLIF ( + ( - SUM ( ALL - - 28 ) ), ( + + CASE - MAX ( ALL + + 51 ) WHEN CAST ( NULL AS INTEGER ) THEN 43 ELSE NULL END ) * + - 22 + + 80 * 9 * 72 ) AS col2
----
336

query I rowsort
SELECT - 63 col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2468
SELECT + CAST( + + 48 AS SIGNED ) + - 37 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-2468
SELECT + CAST ( + + 48 AS INTEGER ) + - 37 AS col2
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-2469
SELECT + 74 + + 27 DIV - 34 + + NULLIF ( - 25, ( - ( + - 76 ) ) * ( + - 26 ) )
----
49

skipif mysql # not compatible
query I rowsort label-2469
SELECT + 74 + + 27 / - 34 + + NULLIF ( - 25, ( - ( + - 76 ) ) * ( + - 26 ) )
----
49

query I rowsort
SELECT DISTINCT 48 * 79 AS col2
----
3792

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2473
SELECT ALL - 97 / + + CAST( NULL AS SIGNED ) * + + 16 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - 97 / + + CAST ( NULL AS INTEGER ) * + + 16 AS col0
----
NULL

query I rowsort
SELECT ALL - ( - 1 ) * + 59 * - 36
----
-2124

query II rowsort
SELECT DISTINCT 83 AS col0, 34
----
83
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2476
SELECT + 76 DIV NULLIF ( - 47, + - COUNT( * ) * + 83 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2476
SELECT + 76 / NULLIF ( - 47, + - COUNT ( * ) * + 83 ) AS col2
----
-1

query I rowsort
SELECT ALL 82 * - - 19 col2
----
1558

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT - COUNT( * ) * - 19 - 76
----
-57

skipif mysql # not compatible
query I rowsort label-2478
SELECT - COUNT ( * ) * - 19 - 76
----
-57

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

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

query II rowsort
SELECT 98 + + + 73, 87 AS col1
----
171
87

query I rowsort
SELECT ALL 5 * 33
----
165

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2483
SELECT ALL - SUM( DISTINCT - 72 ) + - CASE + 37 WHEN 74 * - + 43 THEN - - 44 * - + 61 / + - CAST( - - AVG ( DISTINCT - 62 ) AS SIGNED ) * + 54 * - CAST( 63 AS DECIMAL ) / + 82 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - SUM ( DISTINCT - 72 ) + - CASE + 37 WHEN 74 * - + 43 THEN - - 44 * - + 61 / + - CAST ( - - AVG ( DISTINCT - 62 ) AS INTEGER ) * + 54 * - CAST ( 63 AS REAL ) / + 82 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2484
SELECT ALL - 27 col0, COUNT( * ) AS col2
----
-27
1

skipif mysql # not compatible
query II rowsort label-2484
SELECT ALL - 27 col0, COUNT ( * ) AS col2
----
-27
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL + COUNT( * ) + + 80 + - + 50 + - 86
----
-55

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + COUNT ( * ) + + 80 + - + 50 + - 86
----
-55

query I rowsort
SELECT 86 col2
----
86

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2488
SELECT 88 DIV - - 7 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-2488
SELECT 88 / - - 7 AS col1
----
12

query II rowsort
SELECT 73 * + - 84 * + 88 + - 85 AS col0, 26 col2
----
-539701
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2490
SELECT DISTINCT - COUNT( * ) + + 17 * 93 * + 18 * - + 61 * + 64 + + + SUM( ALL + - 9 ) + COALESCE ( 0, + - CAST( NULL AS SIGNED ) ) + - ( 84 )
----
-111100126

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT - COUNT ( * ) + + 17 * 93 * + 18 * - + 61 * + 64 + + + SUM ( ALL + - 9 ) + COALESCE ( 0, + - CAST ( NULL AS INTEGER ) ) + - ( 84 )
----
-111100126

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT ALL 33 + ( + 46 ) - - COUNT( * ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL 33 + ( + 46 ) - - COUNT ( * ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2493
SELECT + CASE - + COUNT( * ) WHEN CASE + - COUNT( * ) WHEN + + MAX( - 13 ) THEN NULL WHEN + 25 + + 27 THEN + 13 END THEN + - 79 * - - 95 * + - 98 + - CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT + CASE - + COUNT ( * ) WHEN CASE + - COUNT ( * ) WHEN + + MAX ( - 13 ) THEN NULL WHEN + 25 + + 27 THEN + 13 END THEN + - 79 * - - 95 * + - 98 + - CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT ALL - - 8 + ( + + 66 ) * - + 54 * + - 6
----
21392

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT + 0 + 74 * - 67 + 39 * - + COALESCE ( - COUNT( * ), + - 59 ) * - - 47 * + 60 + - COUNT( * ) AS col1
----
105021

skipif mysql # not compatible
query I rowsort label-2496
SELECT + 0 + 74 * - 67 + 39 * - + COALESCE ( - COUNT ( * ), + - 59 ) * - - 47 * + 60 + - COUNT ( * ) AS col1
----
105021

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT SUM( ALL 56 ) AS col1
----
56

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT SUM ( ALL 56 ) AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - ( + - SUM( ALL - + 66 ) ) + - - 89 - - 54
----
77

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - ( + - SUM ( ALL - + 66 ) ) + - - 89 - - 54
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2499
SELECT 47 * 58 * + 34 * + MAX( + 97 ) * + COALESCE ( 23, + 24 + + - COUNT( * ) + - 23 + - + MAX( DISTINCT + 51 ) ) - 9 + - + ( 73 ) DIV + 71 col0
----
206777994

skipif mysql # not compatible
query I rowsort label-2499
SELECT 47 * 58 * + 34 * + MAX ( + 97 ) * + COALESCE ( 23, + 24 + + - COUNT ( * ) + - 23 + - + MAX ( DISTINCT + 51 ) ) - 9 + - + ( 73 ) / + 71 col0
----
206777994

query I rowsort
SELECT - 47 AS col1
----
-47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2502
SELECT SUM( ALL + ( - + 58 ) ) + - 47, 76 AS col0
----
-105
76

skipif mysql # not compatible
query II rowsort label-2502
SELECT SUM ( ALL + ( - + 58 ) ) + - 47, 76 AS col0
----
-105
76

query I rowsort
SELECT + 31 * - 2
----
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + 87 - - SUM( + 82 )
----
169

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + 87 - - SUM ( + 82 )
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2506
SELECT - - 17, CAST( NULL AS SIGNED ) * + 86 AS col1
----
17
NULL

skipif mysql # not compatible
query II rowsort label-2506
SELECT - - 17, CAST ( NULL AS INTEGER ) * + 86 AS col1
----
17
NULL

query I rowsort
SELECT DISTINCT - 76 col2
----
-76

query I rowsort
SELECT ALL + + 24 - 13 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL - - ( - 3 ) * - CAST( NULL AS SIGNED ) * - 75 + + + COUNT( * ) + 53 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - - ( - 3 ) * - CAST ( NULL AS INTEGER ) * - 75 + + + COUNT ( * ) + 53 col2
----
NULL

query I rowsort
SELECT 93 + + 62 - 67
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT DISTINCT COALESCE ( 55, + 7 * + 83 - NULLIF ( CAST( NULL AS SIGNED ), + 27 ) * + + 42 * + 88 * - + 53 - 38, - 52 )
----
55

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT COALESCE ( 55, + 7 * + 83 - NULLIF ( CAST ( NULL AS INTEGER ), + 27 ) * + + 42 * + 88 * - + 53 - 38, - 52 )
----
55

query I rowsort
SELECT DISTINCT - 35 * ( + 27 )
----
-945

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT ALL - 83, 39 * + COUNT( * ) AS col1
----
-83
39

skipif mysql # not compatible
query II rowsort label-2513
SELECT ALL - 83, 39 * + COUNT ( * ) AS col1
----
-83
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2514
SELECT 27 + - + COUNT( * ) + + - ( - 53 ) * + - 16 / + CAST( NULL AS SIGNED ) - + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-2514
SELECT 27 + - + COUNT ( * ) + + - ( - 53 ) * + - 16 / + CAST ( NULL AS INTEGER ) - + 77
----
NULL

query I rowsort
SELECT 61 col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-2516
SELECT 47 + + 35, + 32 * + 81 + + + 76 + + 22 * + + COUNT( ALL 62 ) * - COUNT( * ) AS col2
----
82
2646

skipif mysql # not compatible
query II rowsort label-2516
SELECT 47 + + 35, + 32 * + 81 + + + 76 + + 22 * + + COUNT ( ALL 62 ) * - COUNT ( * ) AS col2
----
82
2646

query II rowsort
SELECT ( + + 47 ) - + 40, - 84 col1
----
7
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT 66 * - MAX( 6 )
----
-396

skipif mysql # not compatible
query I rowsort label-2518
SELECT 66 * - MAX ( 6 )
----
-396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2519
SELECT CAST( NULL AS SIGNED ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT CAST ( NULL AS INTEGER ) / + 72 * + + 77 + ( + 33 ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2520
SELECT DISTINCT 57 DIV + + 6
----
9

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT 57 / + + 6
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT SUM( ALL - + 85 ) + COALESCE ( 11, ( + 3 ), + 4, 64 + + 64 * 44 + + 38, - MAX( + 28 ) ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-2521
SELECT SUM ( ALL - + 85 ) + COALESCE ( 11, ( + 3 ), + 4, 64 + + 64 * 44 + + 38, - MAX ( + 28 ) ) AS col1
----
-74

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

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

query I rowsort
SELECT DISTINCT 92 + 86
----
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2524
SELECT ALL COUNT( * ) + - 39 AS col0, - 42 DIV CAST( + - 12 AS SIGNED ) * + 78 * + 51 + 64 AS col2
----
-38
11998

skipif mysql # not compatible
query II rowsort label-2524
SELECT ALL COUNT ( * ) + - 39 AS col0, - 42 / CAST ( + - 12 AS INTEGER ) * + 78 * + 51 + 64 AS col2
----
-38
11998

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT MAX( ALL 60 ) * - + 13 - + + 70 + 75 * COUNT( * ) AS col0
----
-775

skipif mysql # not compatible
query I rowsort label-2525
SELECT MAX ( ALL 60 ) * - + 13 - + + 70 + 75 * COUNT ( * ) AS col0
----
-775

query I rowsort
SELECT - 51 * - 69 * + + 84 + - 44 AS col2
----
295552

onlyif mysql # DIV for integer division: 
query II rowsort label-2527
SELECT 91 * NULLIF ( 37, AVG ( + + 18 ) ), - 32 DIV - 9 AS col0
----
3367
3

skipif mysql # not compatible
query II rowsort label-2527
SELECT 91 * NULLIF ( 37, AVG ( + + 18 ) ), - 32 / - 9 AS col0
----
3367
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2528
SELECT 86 / - - CAST( NULL AS SIGNED ) * + + COUNT( * ) + + 69 + - COUNT( * ) / + 68 + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-2528
SELECT 86 / - - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + 69 + - COUNT ( * ) / + 68 + - - 65
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2529
SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + 33 + - 82 + + + COUNT( * ) DIV - 51, + 7 * - 86, + - 46 + + 89 + - 31 * - 68 ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 91 + - COALESCE ( - 52, + 84 * + + NULLIF ( - 51, 94 + + 6 ), 97 * + 33 + - 82 + + + COUNT ( * ) / - 51, + 7 * - 86, + - 46 + + 89 + - 31 * - 68 ) AS col1
----
143

query II rowsort
SELECT DISTINCT 50 + 92 AS col2, 24 AS col2
----
142
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2531
SELECT ALL - + 6 + + SUM( - - 20 ) DIV - 81 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - + 6 + + SUM ( - - 20 ) / - 81 AS col0
----
-6

query I rowsort
SELECT + 70 * + + 48 * - 22 + + - 80
----
-74000

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

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

query I rowsort
SELECT DISTINCT - 51 + 10 AS col1
----
-41

query I rowsort
SELECT + - 14 col1
----
-14

onlyif mysql # aggregate syntax: 
query III rowsort label-2536
SELECT ALL - + COUNT( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2
----
-1
64
-80

skipif mysql # not compatible
query III rowsort label-2536
SELECT ALL - + COUNT ( ALL - + 52 ) col2, 64, - 93 + - - 13 AS col2
----
-1
64
-80

query I rowsort
SELECT - 37 * - 60
----
2220

query I rowsort
SELECT + 46 + 95 AS col1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-2539
SELECT ALL - + MAX( 95 ), + SUM( 62 ) + - ( - 62 ) col0
----
-95
124

skipif mysql # not compatible
query II rowsort label-2539
SELECT ALL - + MAX ( 95 ), + SUM ( 62 ) + - ( - 62 ) col0
----
-95
124

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + COUNT( * ) + - 43 col0
----
-42

skipif mysql # not compatible
query I rowsort label-2540
SELECT + COUNT ( * ) + - 43 col0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-2541
SELECT 52 DIV 29, 41 + - + 64 AS col2
----
1
-23

skipif mysql # not compatible
query II rowsort label-2541
SELECT 52 / 29, 41 + - + 64 AS col2
----
1
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2542
SELECT ALL + 58 * 56 + + + 86 - COUNT( ALL 76 ) DIV + - 69 * COALESCE ( - - 42, + 45 * - - 33 + 3 + + + COUNT( DISTINCT + 74 ) ) AS col2
----
3334

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + 58 * 56 + + + 86 - COUNT ( ALL 76 ) / + - 69 * COALESCE ( - - 42, + 45 * - - 33 + 3 + + + COUNT ( DISTINCT + 74 ) ) AS col2
----
3334

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2544
SELECT DISTINCT + MIN( ALL 95 ) col2
----
95

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT + MIN ( ALL 95 ) col2
----
95

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2547
SELECT ALL + - MAX( DISTINCT - 19 ) DIV 52
----
0

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL + - MAX ( DISTINCT - 19 ) / 52
----
0

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

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

query I rowsort
SELECT ALL - 52 AS col2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT + 66 DIV 48
----
1

skipif mysql # not compatible
query I rowsort label-2550
SELECT + 66 / 48
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2551
SELECT - COUNT( * ) DIV - 64 AS col1, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-2551
SELECT - COUNT ( * ) / - 64 AS col1, + COUNT ( * )
----
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + 44 / - + COUNT ( * ) AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT - COUNT( * ) + COALESCE ( + 93, + 97, CASE - 9 WHEN 67 THEN - 72 WHEN + 17 THEN NULL ELSE NULL END )
----
92

skipif mysql # not compatible
query I rowsort label-2554
SELECT - COUNT ( * ) + COALESCE ( + 93, + 97, CASE - 9 WHEN 67 THEN - 72 WHEN + 17 THEN NULL ELSE NULL END )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL CASE - 48 WHEN + COUNT( * ) THEN 9 + - 98 WHEN - + 7 THEN - - 4 * - - 49 - - 94 - + - SUM( - 7 ) + - - 50 * + + 15 + COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL CASE - 48 WHEN + COUNT ( * ) THEN 9 + - 98 WHEN - + 7 THEN - - 4 * - - 49 - - 94 - + - SUM ( - 7 ) + - - 50 * + + 15 + COUNT ( * ) END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2556
SELECT 19 col2, 66 DIV + 27 AS col1
----
19
2

skipif mysql # not compatible
query II rowsort label-2556
SELECT 19 col2, 66 / + 27 AS col1
----
19
2

query II rowsort
SELECT 33, 15 col2
----
33
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2558
SELECT ALL - 81 * 84 DIV COUNT( * ) DIV + - COUNT( * )
----
6804

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - 81 * 84 / COUNT ( * ) / + - COUNT ( * )
----
6804

query I rowsort
SELECT ALL 0 col1
----
0

query II rowsort
SELECT - 1 AS col2, 7
----
-1
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT - COUNT( * ) + - 59 * + 62 * 63 * - 13 AS col2
----
2995901

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT - COUNT ( * ) + - 59 * + 62 * 63 * - 13 AS col2
----
2995901

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT - 33 - + 2 * + + NULLIF ( + - 85, + COUNT( * ) * + - NULLIF ( 88, 67 ) )
----
137

skipif mysql # not compatible
query I rowsort label-2562
SELECT - 33 - + 2 * + + NULLIF ( + - 85, + COUNT ( * ) * + - NULLIF ( 88, 67 ) )
----
137

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2565
SELECT + 15 * + 95 * - 84 * - + NULLIF ( - + COUNT( * ), - 42 ), + 41 AS col1
----
-119700
41

skipif mysql # not compatible
query II rowsort label-2565
SELECT + 15 * + 95 * - 84 * - + NULLIF ( - + COUNT ( * ), - 42 ), + 41 AS col1
----
-119700
41

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT ( - - COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2567
SELECT ( - - COUNT ( * ) ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2568
SELECT DISTINCT 60 * + - CAST( NULL AS SIGNED ) + - 4 * 62 * + CAST( - 70 AS DECIMAL ), - 80 * - 52 col2
----
NULL
4160

skipif mysql # not compatible
query II rowsort label-2568
SELECT DISTINCT 60 * + - CAST ( NULL AS INTEGER ) + - 4 * 62 * + CAST ( - 70 AS REAL ), - 80 * - 52 col2
----
NULL
4160

query II rowsort
SELECT ALL + 13 * + 51 + - + 48 AS col1, ( - 55 ) AS col0
----
615
-55

query I rowsort
SELECT + 79 - - 1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2571
SELECT CASE + 28 WHEN - 53 * - CAST( 73 AS SIGNED ) THEN + COUNT( * ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2571
SELECT CASE + 28 WHEN - 53 * - CAST ( 73 AS INTEGER ) THEN + COUNT ( * ) END col1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + + COUNT ( * ) / + + ( 45 ) AS col1
----
0

query II rowsort
SELECT + + 82 AS col0, 61 + - 40 + + 11 + ( - - 5 ) AS col2
----
82
37

query I rowsort
SELECT + + 42 * + 20 - - 73 AS col0
----
913

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT COUNT( 34 )
----
1

skipif mysql # not compatible
query I rowsort label-2575
SELECT COUNT ( 34 )
----
1

query I rowsort
SELECT - 78 * + ( 33 ) + 6 col2
----
-2568

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2577
SELECT ALL - 62 * - 84 + + COALESCE ( 56, 6 * + 97 + - ( 79 ) DIV 12 DIV SUM( DISTINCT - 59 ) DIV - 13 )
----
5264

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL - 62 * - 84 + + COALESCE ( 56, 6 * + 97 + - ( 79 ) / 12 / SUM ( DISTINCT - 59 ) / - 13 )
----
5264

query II rowsort
SELECT DISTINCT + + 78, 19 AS col0
----
78
19

query II rowsort
SELECT + 81, 47 AS col2
----
81
47

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

query II rowsort
SELECT DISTINCT + + 36 AS col0, - 90 col1
----
36
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT ALL COUNT( * ) * - 43 * CASE - 97 WHEN + 5 THEN - - ( - AVG ( - - 38 ) ) / + 62 WHEN - ( + ( COUNT( * ) ) ) + + 21 + + 35 + 39 + + 8 * - - 31 * + 36 THEN NULL WHEN - 18 THEN + ( + COUNT( * ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2582
SELECT ALL COUNT ( * ) * - 43 * CASE - 97 WHEN + 5 THEN - - ( - AVG ( - - 38 ) ) / + 62 WHEN - ( + ( COUNT ( * ) ) ) + + 21 + + 35 + 39 + + 8 * - - 31 * + 36 THEN NULL WHEN - 18 THEN + ( + COUNT ( * ) ) END
----
NULL

query I rowsort
SELECT + 65 col1
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT ALL + - MAX( DISTINCT + ( 66 ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + - MAX ( DISTINCT + ( 66 ) )
----
-66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT - - 61 * 49 + MIN( + + 52 ) AS col0
----
3041

skipif mysql # not compatible
query I rowsort label-2587
SELECT - - 61 * 49 + MIN ( + + 52 ) AS col0
----
3041

query I rowsort
SELECT + - 55 + 87 * - 70 col2
----
-6145

query I rowsort
SELECT - - 54
----
54

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

query I rowsort
SELECT ALL + 85 * - + 65 * + - ( + 60 )
----
331500

query I rowsort
SELECT - 43 * + + 24 AS col2
----
-1032

query II rowsort
SELECT - ( 86 ), - 47 - + ( - 73 ) col0
----
-86
26

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

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL - 85 + - COUNT ( * ) - + 85 AS col2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT + 17 - - - SUM( ALL - 93 ) - 34 * + 70
----
-2270

skipif mysql # not compatible
query I rowsort label-2595
SELECT + 17 - - - SUM ( ALL - 93 ) - 34 * + 70
----
-2270

query I rowsort
SELECT DISTINCT 34
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT ALL 82 + - 83 + + 21 DIV + 46 + - 81
----
-82

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL 82 + - 83 + + 21 / + 46 + - 81
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2598
SELECT - CAST( + 34 AS SIGNED ) + + + ( 65 ) * + COALESCE ( + COUNT( * ), - - 42, - MIN( ALL - + 48 ) ) DIV 67 * ( - + 87 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-2598
SELECT - CAST ( + 34 AS INTEGER ) + + + ( 65 ) * + COALESCE ( + COUNT ( * ), - - 42, - MIN ( ALL - + 48 ) ) / 67 * ( - + 87 ) AS col2
----
-34

query I rowsort
SELECT DISTINCT ( 22 ) AS col2
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL 75 + - - 2 - + CAST( NULL AS SIGNED ) * - 72 * - 57 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL 75 + - - 2 - + CAST ( NULL AS INTEGER ) * - 72 * - 57 AS col0
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT - 46 + MIN( ALL + 52 ) * 27 AS col2
----
1358

skipif mysql # not compatible
query I rowsort label-2602
SELECT - 46 + MIN ( ALL + 52 ) * 27 AS col2
----
1358

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT ALL + 22 + + ( COALESCE ( 52, + COALESCE ( - + CAST( - + 75 AS SIGNED ), - 10 ) + + 95 ) ) col1
----
74

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL + 22 + + ( COALESCE ( 52, + COALESCE ( - + CAST ( - + 75 AS INTEGER ), - 10 ) + + 95 ) ) col1
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2604
SELECT + NULLIF ( COUNT( * ), + + ( - COUNT( * ) ) + + 64 * - 32 + + - 16 ) + + 61 * 70 - 69 * - - MIN( ALL - CAST( NULL AS DECIMAL ) ) + + + 82 / - 64 * + 56, + 87 * - - 47 AS col1
----
NULL
4089

skipif mysql # not compatible
query II rowsort label-2604
SELECT + NULLIF ( COUNT ( * ), + + ( - COUNT ( * ) ) + + 64 * - 32 + + - 16 ) + + 61 * 70 - 69 * - - MIN ( ALL - CAST ( NULL AS REAL ) ) + + + 82 / - 64 * + 56, + 87 * - - 47 AS col1
----
NULL
4089

query I rowsort
SELECT - 39 - + 46
----
-85

query I rowsort
SELECT - 56 AS col0
----
-56

query I rowsort
SELECT - 10 + 63 AS col0
----
53

query I rowsort
SELECT - 16 + + + 19 - 81 col0
----
-78

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2610
SELECT ALL + ( 29 ) - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL + ( 29 ) - - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT - 3 + - 53 * COUNT( * ) * - + 99 - + - 92 * + 25
----
7544

skipif mysql # not compatible
query I rowsort label-2611
SELECT - 3 + - 53 * COUNT ( * ) * - + 99 - + - 92 * + 25
----
7544

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT ALL NULLIF ( 54, COUNT( * ) * - COUNT( * ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2612
SELECT ALL NULLIF ( 54, COUNT ( * ) * - COUNT ( * ) ) AS col1
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2613
SELECT - 80 + + 4 AS col2, - 63 * - CAST( + COUNT( * ) AS SIGNED )
----
-76
63

skipif mysql # not compatible
query II rowsort label-2613
SELECT - 80 + + 4 AS col2, - 63 * - CAST ( + COUNT ( * ) AS INTEGER )
----
-76
63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT ALL + 42 DIV - 11 - - - 86 AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL + 42 / - 11 - - - 86 AS col0
----
-89

query I rowsort
SELECT 96 * + + 33 * - + 4 + + 6 AS col2
----
-12666

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

query II rowsort
SELECT DISTINCT + 24 * - - 33 AS col2, + 82 * 63 col0
----
792
5166

query I rowsort
SELECT ALL + - 45 AS col2
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT 60 * + MIN( + 76 ) * - 14 + COUNT( - NULLIF ( - 0, + 82 ) ) - - 6 col2
----
-63833

skipif mysql # not compatible
query I rowsort label-2620
SELECT 60 * + MIN ( + 76 ) * - 14 + COUNT ( - NULLIF ( - 0, + 82 ) ) - - 6 col2
----
-63833

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT - 14 DIV 58 + 76 + - 93 * - + 3
----
355

skipif mysql # not compatible
query I rowsort label-2621
SELECT - 14 / 58 + 76 + - 93 * - + 3
----
355

query I rowsort
SELECT + 98 col0
----
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + COUNT( ALL - 14 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + COUNT ( ALL - 14 ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2625
SELECT ALL ( 31 ) DIV + 82 * COUNT( ALL + + 3 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL ( 31 ) / + 82 * COUNT ( ALL + + 3 ) col0
----
0

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

skipif mysql # not compatible
query I rowsort label-2626
SELECT - 55 / COUNT ( * )
----
-55

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2629
SELECT ALL - + MAX( DISTINCT 63 ) DIV + 57
----
-1

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - + MAX ( DISTINCT 63 ) / + 57
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT - - 75 DIV 29 + + 77
----
79

skipif mysql # not compatible
query I rowsort label-2630
SELECT - - 75 / 29 + + 77
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT + 91 + - COUNT( * ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 91 + - COUNT ( * ) AS col1
----
90

query I rowsort
SELECT 33 * - 76 AS col2
----
-2508

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT ALL - - COUNT( 11 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2633
SELECT ALL - - COUNT ( 11 ) AS col0
----
1

query I rowsort
SELECT 22 + 81
----
103

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2636
SELECT - 57 / CASE - SUM( DISTINCT - 80 ) WHEN - + COUNT( * ) * + - 62 * + + 30 + 17 THEN - 32 - + 77 + - + COUNT( + + 75 ) + - - 5 - + 17 + - 77 * - + 4 END / + 13 + ( - - 11 ) AS col0, + 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-2636
SELECT - 57 / CASE - SUM ( DISTINCT - 80 ) WHEN - + COUNT ( * ) * + - 62 * + + 30 + 17 THEN - 32 - + 77 + - + COUNT ( + + 75 ) + - - 5 - + 17 + - 77 * - + 4 END / + 13 + ( - - 11 ) AS col0, + 36 AS col1
----
NULL
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2637
SELECT ALL + 98 + 17 + + NULLIF ( + - 82, - 70 * - 8 + 20 + - - COUNT( * ) * 45 * + 1 - - COUNT( * ) * COUNT( * ) * + CAST( 63 AS SIGNED ) - + CAST( + 16 AS SIGNED ) )
----
33

skipif mysql # not compatible
query I rowsort label-2637
SELECT ALL + 98 + 17 + + NULLIF ( + - 82, - 70 * - 8 + 20 + - - COUNT ( * ) * 45 * + 1 - - COUNT ( * ) * COUNT ( * ) * + CAST ( 63 AS INTEGER ) - + CAST ( + 16 AS INTEGER ) )
----
33

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

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

query I rowsort
SELECT ALL - 23 + 2
----
-21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2640
SELECT 2 + 83 col0, 18 + - 54 DIV CAST( - 92 AS SIGNED ) * + 45
----
85
18

skipif mysql # not compatible
query II rowsort label-2640
SELECT 2 + 83 col0, 18 + - 54 / CAST ( - 92 AS INTEGER ) * + 45
----
85
18

query II rowsort
SELECT DISTINCT + 12 * - ( - 1 ) + + - 22 AS col0, NULLIF ( + - 7, - 64 + - - 64 )
----
-10
-7

query I rowsort
SELECT DISTINCT 41 + + - 56 + - 67
----
-82

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2644
SELECT ALL 76 + + - 66 * - 81 DIV + + COUNT( * ) col2
----
5422

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL 76 + + - 66 * - 81 / + + COUNT ( * ) col2
----
5422

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2645
SELECT DISTINCT COUNT( * ) + 89 - CASE - COUNT( * ) WHEN 36 - + COALESCE ( 24, 33, - ( + CAST( - 54 AS SIGNED ) ) * + + 90 ) + 11 / ( - - 32 ) * + COUNT( * ) * 81 * + + 61 - + 39 THEN NULL ELSE - ( + CAST( + 45 AS SIGNED ) ) * - CASE - CASE - + 88 WHEN + 3 - - ( 39 ) * - + 48 / + 87 THEN - - 7 WHEN AVG ( ALL + 85 ) * + 30 / - 64 + CAST( - 67 AS SIGNED ) * + AVG ( DISTINCT - 20 ) * + - 51 * ( - 51 ) THEN NULL END WHEN - MIN( ALL 75 ) THEN + 22 END END + 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT COUNT ( * ) + 89 - CASE - COUNT ( * ) WHEN 36 - + COALESCE ( 24, 33, - ( + CAST ( - 54 AS INTEGER ) ) * + + 90 ) + 11 / ( - - 32 ) * + COUNT ( * ) * 81 * + + 61 - + 39 THEN NULL ELSE - ( + CAST ( + 45 AS INTEGER ) ) * - CASE - CASE - + 88 WHEN + 3 - - ( 39 ) * - + 48 / + 87 THEN - - 7 WHEN AVG ( ALL + 85 ) * + 30 / - 64 + CAST ( - 67 AS INTEGER ) * + AVG ( DISTINCT - 20 ) * + - 51 * ( - 51 ) THEN NULL END WHEN - MIN ( ALL 75 ) THEN + 22 END END + 94 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2646
SELECT ALL NULLIF ( - + 3, + 99 - 66 + + CAST( 23 AS SIGNED ) * + - ( + 76 ) ) DIV - 4 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2646
SELECT ALL NULLIF ( - + 3, + 99 - 66 + + CAST ( 23 AS INTEGER ) * + - ( + 76 ) ) / - 4 AS col1
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2648
SELECT 17 + - ( + COUNT( * ) ) AS col1, - ( 35 ) + - + 9
----
16
-44

skipif mysql # not compatible
query II rowsort label-2648
SELECT 17 + - ( + COUNT ( * ) ) AS col1, - ( 35 ) + - + 9
----
16
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-2649
SELECT ALL 50 AS col0, 86 * + COUNT( * )
----
50
86

skipif mysql # not compatible
query II rowsort label-2649
SELECT ALL 50 AS col0, 86 * + COUNT ( * )
----
50
86

query I rowsort
SELECT DISTINCT 63 * - 56
----
-3528

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

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

query I rowsort
SELECT ALL - ( + 50 ) - 15 col0
----
-65

query I rowsort
SELECT ALL 10 * 44 AS col0
----
440

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

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

query I rowsort
SELECT 32 * - + 38 col0
----
-1216

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ( COUNT( * ) ) - + - 15
----
16

skipif mysql # not compatible
query I rowsort label-2657
SELECT ( COUNT ( * ) ) - + - 15
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-2658
SELECT 42 * + - COUNT( * ) * + + 31 AS col0, COUNT( * ) * - 57 AS col2
----
-1302
-57

skipif mysql # not compatible
query II rowsort label-2658
SELECT 42 * + - COUNT ( * ) * + + 31 AS col0, COUNT ( * ) * - 57 AS col2
----
-1302
-57

query I rowsort
SELECT 68 + - + 8
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2660
SELECT 99 * - CASE - - ( - COUNT( * ) ) WHEN - + 71 THEN NULL WHEN 62 - + CASE + 83 WHEN COUNT( * ) THEN 33 ELSE NULL END + + 75 * + + 44 - + - COALESCE ( + COALESCE ( 0, - 23 * + 62 * + - MIN( + + 60 ) * 74 * - 85 + + 28 + - 99, + COUNT( * ) ), - 31 ) * 9 THEN + - ( - 2 ) * - 1 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2660
SELECT 99 * - CASE - - ( - COUNT ( * ) ) WHEN - + 71 THEN NULL WHEN 62 - + CASE + 83 WHEN COUNT ( * ) THEN 33 ELSE NULL END + + 75 * + + 44 - + - COALESCE ( + COALESCE ( 0, - 23 * + 62 * + - MIN ( + + 60 ) * 74 * - 85 + + 28 + - 99, + COUNT ( * ) ), - 31 ) * 9 THEN + - ( - 2 ) * - 1 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2661
SELECT - 11 DIV + 91 + + 11 + - COUNT( * ) * 58
----
-47

skipif mysql # not compatible
query I rowsort label-2661
SELECT - 11 / + 91 + + 11 + - COUNT ( * ) * 58
----
-47

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

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

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

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

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

query I rowsort
SELECT ALL + 79 * - 49 AS col2
----
-3871

query I rowsort
SELECT DISTINCT + 68 + + 56 col0
----
124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2668
SELECT ALL - NULLIF ( + + 3, + 38 * + COUNT( * ) + - + 94 ) AS col0, + CAST( NULL AS SIGNED )
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2668
SELECT ALL - NULLIF ( + + 3, + 38 * + COUNT ( * ) + - + 94 ) AS col0, + CAST ( NULL AS INTEGER )
----
-3
NULL

query I rowsort
SELECT DISTINCT - - 53 * 94
----
4982

query I rowsort
SELECT 17 + 39
----
56

query I rowsort
SELECT ALL - 18 * + 69 * 93 * 20 AS col0
----
-2310120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT + - 9 * - 73 - + 47 + + MIN( - - 33 )
----
643

skipif mysql # not compatible
query I rowsort label-2673
SELECT + - 9 * - 73 - + 47 + + MIN ( - - 33 )
----
643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2674
SELECT DISTINCT - CASE - NULLIF ( - 10, 4 ) WHEN 5 + - 20 + 57 * + CAST( NULL AS SIGNED ) THEN NULL WHEN - - 6 THEN NULL ELSE - 50 * - + 62 + - - CAST( NULL AS SIGNED ) + 89 + - 96 / + + 88 + + 52 END + - + COUNT( + 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - CASE - NULLIF ( - 10, 4 ) WHEN 5 + - 20 + 57 * + CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 6 THEN NULL ELSE - 50 * - + 62 + - - CAST ( NULL AS INTEGER ) + 89 + - 96 / + + 88 + + 52 END + - + COUNT ( + 32 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT ALL + ( 43 ) + + COUNT( * ) + 97 AS col0
----
141

skipif mysql # not compatible
query I rowsort label-2675
SELECT ALL + ( 43 ) + + COUNT ( * ) + 97 AS col0
----
141

query II rowsort
SELECT ALL - 96 AS col2, + 10
----
-96
10

query I rowsort
SELECT ALL - + 11 + + 35 * + 90 - - + 64 AS col2
----
3203

query I rowsort
SELECT + 1 col0
----
1

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2682
SELECT ALL + COUNT( ALL 70 ) + + 24, + 48 - + - CAST( NULL AS SIGNED ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-2682
SELECT ALL + COUNT ( ALL 70 ) + + 24, + 48 - + - CAST ( NULL AS INTEGER ) AS col0
----
25
NULL

query I rowsort
SELECT ALL 64 * + 87 AS col2
----
5568

query I rowsort
SELECT ALL - 22 + - 97 + - - 49
----
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2685
SELECT DISTINCT - COUNT( * ) DIV - 70 * 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - COUNT ( * ) / - 70 * 46 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2686
SELECT 62 AS col2, + 74 * CAST( + 69 AS SIGNED ) * 64 AS col2
----
62
326784

skipif mysql # not compatible
query II rowsort label-2686
SELECT 62 AS col2, + 74 * CAST ( + 69 AS INTEGER ) * 64 AS col2
----
62
326784

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT MIN( ALL - 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT MIN ( ALL - 3 )
----
-3

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2689
SELECT COUNT( * ) DIV 58 col1
----
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT COUNT ( * ) / 58 col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2690
SELECT 78 AS col1, 81 * 13 DIV - - 31
----
78
33

skipif mysql # not compatible
query II rowsort label-2690
SELECT 78 AS col1, 81 * 13 / - - 31
----
78
33

query I rowsort
SELECT DISTINCT + 50 * CASE - - 55 WHEN - + 97 THEN + - 55 WHEN + + 36 + + 31 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL + SUM( + - 85 ) * MAX( + 36 ) AS col0
----
-3060

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL + SUM ( + - 85 ) * MAX ( + 36 ) AS col0
----
-3060

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT COUNT( * ) + - 29 + - 15 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-2693
SELECT COUNT ( * ) + - 29 + - 15 AS col2
----
-43

query II rowsort
SELECT DISTINCT 54 AS col0, + 36
----
54
36

query I rowsort
SELECT ALL 60 AS col2
----
60

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

query I rowsort
SELECT 97 + 49 AS col1
----
146

query II rowsort
SELECT DISTINCT 65 AS col1, 86
----
65
86

query I rowsort
SELECT 42 * - 48
----
-2016

query II rowsort
SELECT ALL 19 AS col1, - NULLIF ( - + 78, - + ( 13 ) ) AS col0
----
19
78

query II rowsort
SELECT ALL 71 AS col1, - 59 * 49
----
71
-2891

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT NULLIF ( + - MIN( DISTINCT - 62 ), 69 ) + 82
----
144

skipif mysql # not compatible
query I rowsort label-2702
SELECT NULLIF ( + - MIN ( DISTINCT - 62 ), 69 ) + 82
----
144

query II rowsort
SELECT 64 AS col2, - 30
----
64
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT 25 * - + CASE + 48 WHEN + - 87 * + 28 THEN + COUNT( * ) * - - 88 + - + 29 * + 75 ELSE 64 END
----
-1600

skipif mysql # not compatible
query I rowsort label-2704
SELECT 25 * - + CASE + 48 WHEN + - 87 * + 28 THEN + COUNT ( * ) * - - 88 + - + 29 * + 75 ELSE 64 END
----
-1600

onlyif mysql # aggregate syntax: 
query II rowsort label-2705
SELECT + 71 + + 61 * + 18 + - MAX( DISTINCT - 62 ) * - 11 AS col1, 90 AS col2
----
487
90

skipif mysql # not compatible
query II rowsort label-2705
SELECT + 71 + + 61 * + 18 + - MAX ( DISTINCT - 62 ) * - 11 AS col1, 90 AS col2
----
487
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT ALL - MIN( ALL + - 81 ) * 58
----
4698

skipif mysql # not compatible
query I rowsort label-2706
SELECT ALL - MIN ( ALL + - 81 ) * 58
----
4698

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2707
SELECT ALL SUM( - + 7 ) DIV COALESCE ( - 7, - 85 * 71 + 51 * 65 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL SUM ( - + 7 ) / COALESCE ( - 7, - 85 * 71 + 51 * 65 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2708
SELECT ALL - CASE + COUNT( * ) WHEN + - ( + COUNT( 16 ) ) + - 87 THEN ( 17 ) DIV + 81 ELSE - + 28 * - + 23 END, ( - COUNT( * ) ) col2
----
-644
-1

skipif mysql # not compatible
query II rowsort label-2708
SELECT ALL - CASE + COUNT ( * ) WHEN + - ( + COUNT ( 16 ) ) + - 87 THEN ( 17 ) / + 81 ELSE - + 28 * - + 23 END, ( - COUNT ( * ) ) col2
----
-644
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT + ( + SUM( ALL + 21 ) ) + - + 12 AS col1
----
9

skipif mysql # not compatible
query I rowsort label-2709
SELECT + ( + SUM ( ALL + 21 ) ) + - + 12 AS col1
----
9

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

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - COUNT ( * ) + + 42 * + 80 AS col2
----
3359

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - 37 + - - COUNT( * ) + + 64 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-2711
SELECT - 37 + - - COUNT ( * ) + + 64 AS col0
----
28

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT - COUNT( * ) DIV 69 DIV 15 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT - COUNT ( * ) / 69 / 15 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT + 51 + + - 98 * + - MAX( DISTINCT - - 4 )
----
443

skipif mysql # not compatible
query I rowsort label-2714
SELECT + 51 + + - 98 * + - MAX ( DISTINCT - - 4 )
----
443

query I rowsort
SELECT + + 39 AS col2
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2716
SELECT + ( - CAST( NULL AS SIGNED ) ) * - 74 + 42 + + - 11
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - 74 + 42 + + - 11
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - MAX( DISTINCT - 70 ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-2717
SELECT - MAX ( DISTINCT - 70 ) AS col2
----
70

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2719
SELECT DISTINCT 38 * + COUNT( * ) + 79 + + - 77 + CAST( NULL AS SIGNED ) - - 15 * + 26 + + 39
----
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT 38 * + COUNT ( * ) + 79 + + - 77 + CAST ( NULL AS INTEGER ) - - 15 * + 26 + + 39
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT - 56 AS col2, + NULLIF ( + 70, 37 + + 55 ) - 72 * + COUNT( - 68 ) - + 14 + 82
----
-56
66

skipif mysql # not compatible
query II rowsort label-2720
SELECT - 56 AS col2, + NULLIF ( + 70, 37 + + 55 ) - 72 * + COUNT ( - 68 ) - + 14 + 82
----
-56
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2721
SELECT ALL + + ( 56 ) DIV - 66 * - 65 + MAX( ALL + ( - 6 ) )
----
-6

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + + ( 56 ) / - 66 * - 65 + MAX ( ALL + ( - 6 ) )
----
-6

query I rowsort
SELECT - NULLIF ( + 40, 89 )
----
-40

query I rowsort
SELECT DISTINCT - 83 * - 28 - 71 + 83 AS col1
----
2336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2724
SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN( + - CAST( NULL AS SIGNED ) )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2724
SELECT + + CASE - - 77 WHEN 27 THEN - + 41 WHEN 74 * 16 THEN NULL ELSE NULL END, - MIN ( + - CAST ( NULL AS INTEGER ) )
----
NULL
NULL

query I rowsort
SELECT + 66 * - 40 + - 75
----
-2715

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT DISTINCT MIN( - 9 ) * - + 68 * - + 7 * 92 + - 41 + + - COALESCE ( - 41, + MAX( CAST( NULL AS SIGNED ) ) ) AS col0
----
-394128

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT MIN ( - 9 ) * - + 68 * - + 7 * 92 + - 41 + + - COALESCE ( - 41, + MAX ( CAST ( NULL AS INTEGER ) ) ) AS col0
----
-394128

query I rowsort
SELECT ALL + - 36
----
-36

query I rowsort
SELECT + 79 * + - 51 * - + 3 * - - 98 + 52 AS col1
----
1184578

query I rowsort
SELECT ALL + 97 * - 31 + - - 18 + + 91
----
-2898

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

skipif mysql # not compatible
query I rowsort label-2730
SELECT + MAX ( - 23 )
----
-23

query I rowsort
SELECT ALL - 26 * - 25 * 62 AS col1
----
40300

query II rowsort
SELECT + 58 * + + 64, + 61 + + - 36 AS col1
----
3712
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2733
SELECT + 38 * CASE 89 WHEN COUNT( DISTINCT + 52 ) THEN NULL WHEN + - 24 THEN - 93 END - + 91 + - + 87 + - - 25 * + 41 * - - 15 + + + CAST( + 98 AS SIGNED ) * + ( + - 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2733
SELECT + 38 * CASE 89 WHEN COUNT ( DISTINCT + 52 ) THEN NULL WHEN + - 24 THEN - 93 END - + 91 + - + 87 + - - 25 * + 41 * - - 15 + + + CAST ( + 98 AS INTEGER ) * + ( + - 43 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT - 40 + - 46 + + 64 DIV - - 57 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-2734
SELECT - 40 + - 46 + + 64 / - - 57 AS col1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT - 86 * + 83 - - 84 * COUNT( * ) AS col2
----
-7054

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - 86 * + 83 - - 84 * COUNT ( * ) AS col2
----
-7054

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2737
SELECT ALL + CAST( - + 57 AS SIGNED ), + 80 AS col0
----
-57
80

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

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

skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL - ( - 95 ) / - COUNT ( * )
----
-95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT NULLIF ( + - 86, - 34 + - COUNT( * ) ) * - CASE - - COUNT( * ) WHEN - COUNT( * ) THEN + 19 - - 13 + - + COUNT( * ) WHEN 10 THEN - + 11 * - SUM( DISTINCT + + 2 ) + - 44 ELSE NULL END + - ( + CAST( COUNT( * ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT NULLIF ( + - 86, - 34 + - COUNT ( * ) ) * - CASE - - COUNT ( * ) WHEN - COUNT ( * ) THEN + 19 - - 13 + - + COUNT ( * ) WHEN 10 THEN - + 11 * - SUM ( DISTINCT + + 2 ) + - 44 ELSE NULL END + - ( + CAST ( COUNT ( * ) AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2741
SELECT DISTINCT + 73 DIV 17 DIV + + 79 * - 15 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2741
SELECT DISTINCT + 73 / 17 / + + 79 * - 15 AS col1
----
0

query I rowsort
SELECT - 27 * - 29
----
783

query I rowsort
SELECT + 33 * - 97 AS col0
----
-3201

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT ALL + 64 * + + ( MIN( NULLIF ( - 8, + - 80 * - + 94 * 12 ) ) )
----
-512

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL + 64 * + + ( MIN ( NULLIF ( - 8, + - 80 * - + 94 * 12 ) ) )
----
-512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2745
SELECT DISTINCT + ( - COUNT( * ) ) * SUM( DISTINCT + - 38 ) * + - CASE + MAX( DISTINCT 34 ) WHEN - 26 THEN NULL ELSE CAST( NULL AS SIGNED ) + ( + COUNT( * ) ) END * 83 + 90 + - 6 + - 14 * - + CAST( NULL AS SIGNED ) * + 49
----
NULL

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + ( - COUNT ( * ) ) * SUM ( DISTINCT + - 38 ) * + - CASE + MAX ( DISTINCT 34 ) WHEN - 26 THEN NULL ELSE CAST ( NULL AS INTEGER ) + ( + COUNT ( * ) ) END * 83 + 90 + - 6 + - 14 * - + CAST ( NULL AS INTEGER ) * + 49
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT ALL - COUNT( + 21 ) * ( + 40 ) * - 74
----
2960

skipif mysql # not compatible
query I rowsort label-2746
SELECT ALL - COUNT ( + 21 ) * ( + 40 ) * - 74
----
2960

query I rowsort
SELECT ALL + 56 * 26 * 5
----
7280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2748
SELECT ALL MIN( - + CAST( NULL AS SIGNED ) ) + - 22 - ( 6 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL MIN ( - + CAST ( NULL AS INTEGER ) ) + - 22 - ( 6 ) AS col2
----
NULL

query II rowsort
SELECT + 35 * - + 54 AS col1, + 79 AS col2
----
-1890
79

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT ALL - 51 + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-2751
SELECT ALL - 51 + COUNT ( * )
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL - 93 + COALESCE ( - MAX( 62 ), - 26 )
----
-155

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL - 93 + COALESCE ( - MAX ( 62 ), - 26 )
----
-155

query I rowsort
SELECT 4 col2
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT + + 13 + - 45 - - CAST( - 59 AS SIGNED ) AS col2
----
-91

skipif mysql # not compatible
query I rowsort label-2754
SELECT + + 13 + - 45 - - CAST ( - 59 AS INTEGER ) AS col2
----
-91

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

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

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

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - COUNT ( * ) * + 31 AS col0
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2757
SELECT ALL 48 DIV - 52 + + + COUNT( - ( - + 79 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2757
SELECT ALL 48 / - 52 + + + COUNT ( - ( - + 79 ) ) AS col0
----
1

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

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT + COUNT ( - - 75 ) * 76 AS col1
----
76

query I rowsort
SELECT ALL + - 77
----
-77

query I rowsort
SELECT ALL + - 21 AS col2
----
-21

query I rowsort
SELECT DISTINCT 25 * 60
----
1500

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

query I rowsort
SELECT + + 11 + 31 * - 74 * + 79
----
-181215

query I rowsort
SELECT ( 54 )
----
54

query I rowsort
SELECT - 99 - 64
----
-163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2766
SELECT ALL COALESCE ( + 60, CAST( + 76 AS SIGNED ) ) DIV + 10
----
6

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL COALESCE ( + 60, CAST ( + 76 AS INTEGER ) ) / + 10
----
6

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

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

query I rowsort
SELECT ( - 55 )
----
-55

query I rowsort
SELECT DISTINCT + 50 * - 75
----
-3750

onlyif mysql # DIV for integer division: 
query II rowsort label-2770
SELECT ALL + 71 AS col1, - 45 DIV 42
----
71
-1

skipif mysql # not compatible
query II rowsort label-2770
SELECT ALL + 71 AS col1, - 45 / 42
----
71
-1

query I rowsort
SELECT DISTINCT 65 * - 64 - + 22 + - 87 + + 87 * 66 AS col2
----
1473

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

query I rowsort
SELECT COALESCE ( ( - 83 ), - 44 * 42, 78 ) AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT ALL + COUNT( DISTINCT - + CASE + - 34 WHEN - 80 THEN NULL WHEN 70 + 65 * - 2 + + 67 THEN - 85 + + 45 ELSE NULL END )
----
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL + COUNT ( DISTINCT - + CASE + - 34 WHEN - 80 THEN NULL WHEN 70 + 65 * - 2 + + 67 THEN - 85 + + 45 ELSE NULL END )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT + CASE COUNT( * ) WHEN SUM( - ( + ( + 24 ) ) ) THEN COUNT( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + CASE COUNT ( * ) WHEN SUM ( - ( + ( + 24 ) ) ) THEN COUNT ( * ) * - 50 - - + 44 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL COALESCE ( + - COUNT( * ), + + 60, - 64 * + 27 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL COALESCE ( + - COUNT ( * ), + + 60, - 64 * + 27 ) AS col1
----
-1

query I rowsort
SELECT 96 * - 2 * 9 + - ( + 2 ) col1
----
-1730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2779
SELECT - 51 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT - 51 - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 21 + + 75 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT - MIN( 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-2781
SELECT - MIN ( 97 )
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2782
SELECT ALL ( + - CASE + 27 WHEN + COUNT( * ) - + 92 THEN - 5 * 12 * - + 38 DIV - 76 WHEN + 50 THEN NULL ELSE + - 31 + + 69 END )
----
-38

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL ( + - CASE + 27 WHEN + COUNT ( * ) - + 92 THEN - 5 * 12 * - + 38 / - 76 WHEN + 50 THEN NULL ELSE + - 31 + + 69 END )
----
-38

query I rowsort
SELECT ALL ( 56 )
----
56

query I rowsort
SELECT - 97 + - 27 AS col0
----
-124

query I rowsort
SELECT ALL - 39 * - - 57 + - 54
----
-2277

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

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT CAST ( 79 AS INTEGER ) col2
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT - 74 DIV - 80 * + 73 DIV COUNT( ALL + 41 ) * 28 + - COALESCE ( - 80, - 19 + + 49 + - ( 69 ) )
----
80

skipif mysql # not compatible
query I rowsort label-2787
SELECT - 74 / - 80 * + 73 / COUNT ( ALL + 41 ) * 28 + - COALESCE ( - 80, - 19 + + 49 + - ( 69 ) )
----
80

query I rowsort
SELECT ALL + 89 * + 86 + 29
----
7683

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT ALL COUNT( * ) * - COUNT( * ) * - 84 + - 60
----
24

skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL COUNT ( * ) * - COUNT ( * ) * - 84 + - 60
----
24

query I rowsort
SELECT ALL - 70 + - - 1
----
-69

query I rowsort
SELECT - 67 + - - 82
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2792
SELECT ALL - + CASE - 42 WHEN 33 THEN NULL WHEN CAST( NULL AS DECIMAL ) THEN + - 67 + + 17 END + + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL - + CASE - 42 WHEN 33 THEN NULL WHEN CAST ( NULL AS REAL ) THEN + - 67 + + 17 END + + 94
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT ALL + ( + - COUNT( * ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2793
SELECT ALL + ( + - COUNT ( * ) ) AS col2
----
-1

query I rowsort
SELECT DISTINCT - 55 + + 74 + - + 21 * + + 15 + + 70 AS col0
----
-226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2795
SELECT + 58 * + COUNT( * ) DIV + + 86 + + 45
----
45

skipif mysql # not compatible
query I rowsort label-2795
SELECT + 58 * + COUNT ( * ) / + + 86 + + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - + 8 + COUNT( * ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-2796
SELECT ALL - + 8 + COUNT ( * ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT - MAX( ALL + 29 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-2797
SELECT - MAX ( ALL + 29 ) AS col0
----
-29

query II rowsort
SELECT - 96 AS col2, 2
----
-96
2

query I rowsort
SELECT 12 + - 22 + + - 88 - 63 * + 1
----
-161

query I rowsort
SELECT ALL + + 96 * - 5 col0
----
-480

query I rowsort
SELECT DISTINCT - + 33 * + + 14 AS col1
----
-462

query II rowsort
SELECT - - 15 AS col1, - 72 * + + 27 col1
----
15
-1944

query I rowsort
SELECT DISTINCT 41
----
41

query I rowsort
SELECT ALL 52 - - 70 col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT MAX( ALL - + 82 ) + - 91
----
-173

skipif mysql # not compatible
query I rowsort label-2805
SELECT MAX ( ALL - + 82 ) + - 91
----
-173

query I rowsort
SELECT ALL - - ( 76 ) * 84
----
6384

query I rowsort
SELECT + 35 + - 38 AS col2
----
-3

query I rowsort
SELECT ALL + 95 * + 22
----
2090

query I rowsort
SELECT ALL - + 74 AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2810
SELECT DISTINCT - 12, ( + 78 ) * NULLIF ( - 64, - - COUNT( * ) + 95 + - CAST( 1 AS SIGNED ) ) AS col0
----
-12
-4992

skipif mysql # not compatible
query II rowsort label-2810
SELECT DISTINCT - 12, ( + 78 ) * NULLIF ( - 64, - - COUNT ( * ) + 95 + - CAST ( 1 AS INTEGER ) ) AS col0
----
-12
-4992

query I rowsort
SELECT ALL - - 27
----
27

query I rowsort
SELECT + 2 * 75
----
150

query II rowsort
SELECT ALL - 50 AS col0, 6
----
-50
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2814
SELECT - 26 AS col0, - MAX( ALL 77 )
----
-26
-77

skipif mysql # not compatible
query II rowsort label-2814
SELECT - 26 AS col0, - MAX ( ALL 77 )
----
-26
-77

query I rowsort
SELECT ALL - ( + 15 )
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT ALL ( + + 74 ) * 81 + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL ( + + 74 ) * 81 + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2817
SELECT DISTINCT COUNT( * ) * + - 20 col0
----
-20

skipif mysql # not compatible
query I rowsort label-2817
SELECT DISTINCT COUNT ( * ) * + - 20 col0
----
-20

query I rowsort
SELECT ALL - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT 64 * + - COUNT( * ) + - + 57 AS col2
----
-121

skipif mysql # not compatible
query I rowsort label-2819
SELECT 64 * + - COUNT ( * ) + - + 57 AS col2
----
-121

query I rowsort
SELECT DISTINCT - 87 AS col2
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL - MIN( - 79 ), + 44 + + ( - - COUNT( * ) ) * COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1
----
79
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL - MIN ( - 79 ), + 44 + + ( - - COUNT ( * ) ) * COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1
----
79
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT - 92 * - SUM( DISTINCT 12 ) + 20 AS col1
----
1124

skipif mysql # not compatible
query I rowsort label-2822
SELECT - 92 * - SUM ( DISTINCT 12 ) + 20 AS col1
----
1124

query I rowsort
SELECT ALL ( ( 18 ) ) * - 71 col0
----
-1278

query I rowsort
SELECT 51 col0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT ALL COUNT( * ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL COUNT ( * ) + + 24
----
25

query I rowsort
SELECT DISTINCT - 74 AS col2
----
-74

query I rowsort
SELECT + 1
----
1

query I rowsort
SELECT 51 + 78 + + + 74 AS col2
----
203

query I rowsort
SELECT ALL - 90 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL COUNT( * ) + - 31 AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL COUNT ( * ) + - 31 AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT 62 + COUNT( * ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT 62 + COUNT ( * ) AS col2
----
63

query I rowsort
SELECT DISTINCT + 56 + 12 * + 33 * + 61 col2
----
24212

query I rowsort
SELECT 41 * + 52 * + - 45 * ( + + 64 ) * - 59
----
362269440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2834
SELECT ALL 97 DIV - ( - COUNT( * ) )
----
97

skipif mysql # not compatible
query I rowsort label-2834
SELECT ALL 97 / - ( - COUNT ( * ) )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT ( - 46 ) * + COUNT( DISTINCT + 66 )
----
-46

skipif mysql # not compatible
query I rowsort label-2835
SELECT ( - 46 ) * + COUNT ( DISTINCT + 66 )
----
-46

query I rowsort
SELECT ALL + 29 * 41 AS col0
----
1189

query I rowsort
SELECT DISTINCT 73 col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT - COUNT( * ) - + 33 + + 80 * - - 26 AS col1
----
2046

skipif mysql # not compatible
query I rowsort label-2838
SELECT - COUNT ( * ) - + 33 + + 80 * - - 26 AS col1
----
2046

query I rowsort
SELECT ALL 87 + - 12 * - - 64 AS col2
----
-681

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT 91 * - COUNT( ALL + 5 ) * 29
----
-2639

skipif mysql # not compatible
query I rowsort label-2840
SELECT 91 * - COUNT ( ALL + 5 ) * 29
----
-2639

query II rowsort
SELECT - 26 * - ( ( - - 83 ) ), - 61 AS col1
----
2158
-61

query I rowsort
SELECT - 2 AS col1
----
-2

query I rowsort
SELECT + 41 col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2844
SELECT ALL 53 + 73 + + 82 + + + 34 DIV 25 + + 69
----
278

skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL 53 + 73 + + 82 + + + 34 / 25 + + 69
----
278

query I rowsort
SELECT ALL - 10 - - - 95 + - - 2 * 93 AS col1
----
81

query I rowsort
SELECT + 25 AS col2
----
25

query I rowsort
SELECT - - ( + ( + 4 ) ) AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL - + 68 * - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - + 68 * - COUNT ( * )
----
68

query I rowsort
SELECT 37 * + NULLIF ( - 34, 6 + + - 10 )
----
-1258

query I rowsort
SELECT - ( + 56 ) AS col1
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2851
SELECT 29 DIV + + 67, - COALESCE ( - 46, + 46 - - CAST( NULL AS SIGNED ) ) AS col1
----
0
46

skipif mysql # not compatible
query II rowsort label-2851
SELECT 29 / + + 67, - COALESCE ( - 46, + 46 - - CAST ( NULL AS INTEGER ) ) AS col1
----
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2852
SELECT ALL - 58 * + + 0 * - MIN( + - 54 ) * + 66 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2852
SELECT ALL - 58 * + + 0 * - MIN ( + - 54 ) * + 66 AS col2
----
0

query I rowsort
SELECT 16 * + - 63 - + NULLIF ( 61, - 89 ) + + 80 AS col1
----
-989

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2854
SELECT - 99 + - - CAST( NULL AS SIGNED ) AS col0, - 60 AS col0
----
NULL
-60

skipif mysql # not compatible
query II rowsort label-2854
SELECT - 99 + - - CAST ( NULL AS INTEGER ) AS col0, - 60 AS col0
----
NULL
-60

query I rowsort
SELECT 39 col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + - MIN( - + 45 ) * + 9 + + 76 + - + 61 AS col1
----
420

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + - MIN ( - + 45 ) * + 9 + + 76 + - + 61 AS col1
----
420

query I rowsort
SELECT DISTINCT + 67 * + 7 + - 34
----
435

query I rowsort
SELECT DISTINCT - 37 AS col1
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-2859
SELECT ALL - 72 AS col1, - 14 + - 33 DIV - 28 + + 28
----
-72
15

skipif mysql # not compatible
query II rowsort label-2859
SELECT ALL - 72 AS col1, - 14 + - 33 / - 28 + + 28
----
-72
15

query I rowsort
SELECT ALL - 75 AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT COUNT( * ) - + - 20 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-2861
SELECT COUNT ( * ) - + - 20 AS col0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT ALL + COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT ALL + COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2863
SELECT 77 * - - 72 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2863
SELECT 77 * - - 72 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2864
SELECT ALL - 91 AS col1, + 9 * + COUNT( * ) + + 57 AS col0
----
-91
66

skipif mysql # not compatible
query II rowsort label-2864
SELECT ALL - 91 AS col1, + 9 * + COUNT ( * ) + + 57 AS col0
----
-91
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT MAX( - + 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-2865
SELECT MAX ( - + 88 )
----
-88

query I rowsort
SELECT ALL + 77 * - + ( + + 96 ) + - + 88 AS col2
----
-7480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL - CAST( + 30 AS SIGNED ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL - CAST ( + 30 AS INTEGER ) AS col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT 7 * CASE + 23 WHEN + COUNT( ALL - + 5 ) / 83 THEN NULL WHEN + + 96 THEN - 59 - + + 8 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT 7 * CASE + 23 WHEN + COUNT ( ALL - + 5 ) / 83 THEN NULL WHEN + + 96 THEN - 59 - + + 8 ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT 10 + + CAST( NULL AS SIGNED ) + - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-2869
SELECT 10 + + CAST ( NULL AS INTEGER ) + - 58
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT MIN( + ( - 4 ) )
----
-4

skipif mysql # not compatible
query I rowsort label-2870
SELECT MIN ( + ( - 4 ) )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2871
SELECT CAST( - 99 AS SIGNED ) - + 13 - - 84
----
-28

skipif mysql # not compatible
query I rowsort label-2871
SELECT CAST ( - 99 AS INTEGER ) - + 13 - - 84
----
-28

query I rowsort
SELECT ALL 92 * 63
----
5796

query I rowsort
SELECT 26 * - 52 AS col2
----
-1352

query I rowsort
SELECT ALL 10 + - 97 - 68 AS col2
----
-155

query II rowsort
SELECT ALL 86 + - ( - 92 ) * 13 + - 88, 75 AS col2
----
1194
75

query I rowsort
SELECT ALL - COALESCE ( - + 86, 32, + 62 ) * + ( 82 ) * - 50
----
-352600

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT 91 * MIN( - 37 )
----
-3367

skipif mysql # not compatible
query I rowsort label-2877
SELECT DISTINCT 91 * MIN ( - 37 )
----
-3367

query I rowsort
SELECT + COALESCE ( + 61, - + 92 )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT 70 * 27 + - 6 + + 2 + - 34 * + 72 + - CAST( - CASE - 32 WHEN - - 46 THEN NULL ELSE - + 25 END AS SIGNED ) * - COUNT( ALL + CAST( + 70 AS SIGNED ) )
----
-537

skipif mysql # not compatible
query I rowsort label-2879
SELECT 70 * 27 + - 6 + + 2 + - 34 * + 72 + - CAST ( - CASE - 32 WHEN - - 46 THEN NULL ELSE - + 25 END AS INTEGER ) * - COUNT ( ALL + CAST ( + 70 AS INTEGER ) )
----
-537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2880
SELECT + 38 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT + 38 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 35 AS col1
----
35

query I rowsort
SELECT + - 0 + + 33
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2883
SELECT ALL 98 DIV 83 * 87 + COALESCE ( + 30, + 74 - - 32 + - 23 * - 4 * 28, + 40 ) AS col2, + COUNT( * ) + + - 36 + 33 * + NULLIF ( 32, - MIN( - 87 ) * 47 )
----
117
1021

skipif mysql # not compatible
query II rowsort label-2883
SELECT ALL 98 / 83 * 87 + COALESCE ( + 30, + 74 - - 32 + - 23 * - 4 * 28, + 40 ) AS col2, + COUNT ( * ) + + - 36 + 33 * + NULLIF ( 32, - MIN ( - 87 ) * 47 )
----
117
1021

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + + COUNT( * ) + 88
----
89

skipif mysql # not compatible
query I rowsort label-2884
SELECT + + COUNT ( * ) + 88
----
89

query I rowsort
SELECT ALL - 14 - + + 38 + - 61
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - + COUNT( DISTINCT 70 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2886
SELECT - + COUNT ( DISTINCT 70 ) AS col2
----
-1

query I rowsort
SELECT ALL - ( + + 24 ) col1
----
-24

query I rowsort
SELECT + 90 + + + 17
----
107

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2889
SELECT ALL - ( 3 ) DIV - CAST( 85 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - ( 3 ) / - CAST ( 85 AS INTEGER )
----
0

query I rowsort
SELECT + 4 + - ( 43 )
----
-39

query II rowsort
SELECT - 70 AS col1, 98 AS col2
----
-70
98

query II rowsort
SELECT ALL 92 col1, + 75
----
92
75

query I rowsort
SELECT + 57 * - 97
----
-5529

query I rowsort
SELECT - - 68 * - 1 * 87 * 13 * + 9 AS col1
----
-692172

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT - 31 + 36 + COUNT( * ) * 24 AS col2
----
29

skipif mysql # not compatible
query I rowsort label-2895
SELECT - 31 + 36 + COUNT ( * ) * 24 AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT - - 18 + + 14
----
32

query I rowsort
SELECT ALL - ( + 77 )
----
-77

query I rowsort
SELECT ALL - 21 AS col2
----
-21

query I rowsort
SELECT ALL - 80 AS col2
----
-80

query II rowsort
SELECT DISTINCT COALESCE ( + 49, + + 72, ( + + 79 ) ) AS col1, + 41
----
49
41

query I rowsort
SELECT ALL - 11 AS col0
----
-11

query I rowsort
SELECT - 82 * 92
----
-7544

query II rowsort
SELECT ( - 12 ) AS col0, 35 + - 22 - 19 * + 49 * + 77 AS col1
----
-12
-71674

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2905
SELECT ALL + 33 DIV + 37 * 47 + - - 90 + 95 + - + ( - - ( 21 ) ) * CAST( + - 49 AS SIGNED ) + NULLIF ( + 93, - 7 DIV - COUNT( * ) * - ( 98 ) ) AS col0, - 92
----
1307
-92

skipif mysql # not compatible
query II rowsort label-2905
SELECT ALL + 33 / + 37 * 47 + - - 90 + 95 + - + ( - - ( 21 ) ) * CAST ( + - 49 AS INTEGER ) + NULLIF ( + 93, - 7 / - COUNT ( * ) * - ( 98 ) ) AS col0, - 92
----
1307
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2906
SELECT ALL - 50 DIV - + 88 + - 6
----
-6

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - 50 / - + 88 + - 6
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT 1 * + 93 * - + MIN( + 69 ) + + 87 * 5 col2
----
-5982

skipif mysql # not compatible
query I rowsort label-2907
SELECT 1 * + 93 * - + MIN ( + 69 ) + + 87 * 5 col2
----
-5982

query I rowsort
SELECT DISTINCT + 17 * + 15 + - 35
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2909
SELECT - 84 DIV COUNT( ALL 36 ) + - CAST( + 53 AS SIGNED )
----
-137

skipif mysql # not compatible
query I rowsort label-2909
SELECT - 84 / COUNT ( ALL 36 ) + - CAST ( + 53 AS INTEGER )
----
-137

query I rowsort
SELECT + 96 * - - 28 + - 17 AS col0
----
2671

query I rowsort
SELECT - 87 * 96
----
-8352

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT ALL - 18 * 54 * - 56 + - + 23 * - ( 34 ) * - COUNT( * )
----
53650

skipif mysql # not compatible
query I rowsort label-2912
SELECT ALL - 18 * 54 * - 56 + - + 23 * - ( 34 ) * - COUNT ( * )
----
53650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2913
SELECT ( - COALESCE ( + + 19, + 93 * + COUNT( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) ) ), 40 + + 7 AS col2
----
-19
47

skipif mysql # not compatible
query II rowsort label-2913
SELECT ( - COALESCE ( + + 19, + 93 * + COUNT ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) ) ), 40 + + 7 AS col2
----
-19
47

query I rowsort
SELECT ALL + 71 AS col1
----
71

query I rowsort
SELECT - 92 + - 90 AS col1
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT - 51 * + CAST( + + 80 AS SIGNED ) AS col0
----
-4080

skipif mysql # not compatible
query I rowsort label-2916
SELECT - 51 * + CAST ( + + 80 AS INTEGER ) AS col0
----
-4080

query I rowsort
SELECT ALL + 16 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2918
SELECT NULLIF ( - + CAST( NULL AS DECIMAL ), - 51 + 39 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2918
SELECT NULLIF ( - + CAST ( NULL AS REAL ), - 51 + 39 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT 75 DIV 95 * NULLIF ( - 24, - + 89 ) + COUNT( - - NULLIF ( + 24, - - ( + 56 ) + - + 11 ) ) * 48
----
48

skipif mysql # not compatible
query I rowsort label-2919
SELECT 75 / 95 * NULLIF ( - 24, - + 89 ) + COUNT ( - - NULLIF ( + 24, - - ( + 56 ) + - + 11 ) ) * 48
----
48

query I rowsort
SELECT - 56 * + 2 col0
----
-112

onlyif mysql # aggregate syntax: 
query II rowsort label-2921
SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT( * ) ) AS col0
----
2
-82

skipif mysql # not compatible
query II rowsort label-2921
SELECT DISTINCT + 2 AS col0, + NULLIF ( + - 82, + COUNT ( * ) ) AS col0
----
2
-82

query I rowsort
SELECT DISTINCT + ( 50 ) AS col0
----
50

query II rowsort
SELECT + 53, + 23 AS col2
----
53
23

query I rowsort
SELECT - 86 AS col2
----
-86

query I rowsort
SELECT DISTINCT - + 60 * + 1 col1
----
-60

query I rowsort
SELECT - 32 * 16 AS col0
----
-512

query II rowsort
SELECT - 37 AS col0, - 84 * - 67
----
-37
5628

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - + COUNT( * ) - + 78
----
-79

skipif mysql # not compatible
query I rowsort label-2928
SELECT - + COUNT ( * ) - + 78
----
-79

query I rowsort
SELECT - ( + 79 ) AS col2
----
-79

query I rowsort
SELECT + + CASE 2 WHEN - + NULLIF ( + - 15, 62 ) / + 47 * + 13 * 60 * 97 * - 86 THEN + - 63 END * + 67
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2931
SELECT DISTINCT - NULLIF ( + CAST( NULL AS SIGNED ), + 7 * + 84 - + COUNT( ALL - - 68 ) + + - 80 + 40 * ( - CAST( NULL AS SIGNED ) ) * - 23 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - NULLIF ( + CAST ( NULL AS INTEGER ), + 7 * + 84 - + COUNT ( ALL - - 68 ) + + - 80 + 40 * ( - CAST ( NULL AS INTEGER ) ) * - 23 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2932
SELECT ALL 65 + + 5 * + - CAST( - 13 AS SIGNED ) * + CAST( - - COUNT( * ) AS SIGNED ) * - 7 + - COALESCE ( - + 13, + SUM( + - 54 ) * 61 ) + - 17
----
-394

skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 65 + + 5 * + - CAST ( - 13 AS INTEGER ) * + CAST ( - - COUNT ( * ) AS INTEGER ) * - 7 + - COALESCE ( - + 13, + SUM ( + - 54 ) * 61 ) + - 17
----
-394

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL COUNT( * ) + SUM( - CAST( + 61 AS SIGNED ) ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL COUNT ( * ) + SUM ( - CAST ( + 61 AS INTEGER ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT ALL COUNT( ALL - 64 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2934
SELECT ALL COUNT ( ALL - 64 ) AS col0
----
1

query I rowsort
SELECT + + 95 * + 82
----
7790

query I rowsort
SELECT ALL NULLIF ( 96, - 17 ) + - 71 AS col1
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2937
SELECT + 29 + - - NULLIF ( 20, CASE - NULLIF ( + 19, - 34 ) WHEN + 77 THEN 76 END * 66 + - 44 + + CAST( NULL AS SIGNED ) - 5 / + + 38 * - + 40 * + 26 ) * + 80, + 26 * - COALESCE ( - - CAST( NULL AS SIGNED ), - COUNT( * ) ) AS col1
----
1629
26

skipif mysql # not compatible
query II rowsort label-2937
SELECT + 29 + - - NULLIF ( 20, CASE - NULLIF ( + 19, - 34 ) WHEN + 77 THEN 76 END * 66 + - 44 + + CAST ( NULL AS INTEGER ) - 5 / + + 38 * - + 40 * + 26 ) * + 80, + 26 * - COALESCE ( - - CAST ( NULL AS INTEGER ), - COUNT ( * ) ) AS col1
----
1629
26

query I rowsort
SELECT + 5 + - + 96 + 41
----
-50

query II rowsort
SELECT ALL 17 * 7 AS col2, + 48 AS col2
----
119
48

query I rowsort
SELECT DISTINCT ( - 66 ) + + 53 * 30
----
1524

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT + 81 + + - 79 * + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-2941
SELECT + 81 + + - 79 * + + COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL 11 DIV + 91 + - 45
----
-45

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL 11 / + 91 + - 45
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT ALL - ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL - ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT + 88 + + + ( - - 39 )
----
127

query I rowsort
SELECT + 35 * 4 + - 19 AS col0
----
121

query I rowsort
SELECT 41 + 84
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT ( + 0 ) DIV + 97 + ( + + 62 )
----
62

skipif mysql # not compatible
query I rowsort label-2947
SELECT ( + 0 ) / + 97 + ( + + 62 )
----
62

query I rowsort
SELECT ALL + 80 * - 22 * - 87 * + 9 AS col1
----
1378080

query I rowsort
SELECT DISTINCT - 18 AS col1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT DISTINCT ( - 83 ) DIV + 88 col1
----
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT ( - 83 ) / + 88 col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT ALL - COUNT( * ) * 58 * + + 92
----
-5336

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL - COUNT ( * ) * 58 * + + 92
----
-5336

query I rowsort
SELECT 71 * - - 58 - + 80
----
4038

onlyif mysql # DIV for integer division: 
query II rowsort label-2953
SELECT 35 * - 91 * + 88 AS col0, - 57 DIV 54 * + 78 AS col2
----
-280280
-78

skipif mysql # not compatible
query II rowsort label-2953
SELECT 35 * - 91 * + 88 AS col0, - 57 / 54 * + 78 AS col2
----
-280280
-78

query I rowsort
SELECT DISTINCT - 94
----
-94

query I rowsort
SELECT - 63 * CASE COALESCE ( - - 73, + 38 ) WHEN - 78 THEN 99 * 27 * 77 ELSE NULL END * - 19 * - 59
----
NULL

query I rowsort
SELECT ALL - + 2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT + ( ( + CASE - ( - - 96 ) WHEN 36 THEN - + 61 + + - 6 / + CASE + 70 WHEN 54 THEN NULL WHEN + MIN( 91 ) THEN NULL WHEN + - 45 THEN + 86 + + - 17 END - + AVG ( - ( 53 ) ) - + + COUNT( * ) END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2957
SELECT + ( ( + CASE - ( - - 96 ) WHEN 36 THEN - + 61 + + - 6 / + CASE + 70 WHEN 54 THEN NULL WHEN + MIN ( 91 ) THEN NULL WHEN + - 45 THEN + 86 + + - 17 END - + AVG ( - ( 53 ) ) - + + COUNT ( * ) END ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + 61 * 39 * COUNT( * ) + + 80 + - 34 * + - 87
----
5417

skipif mysql # not compatible
query I rowsort label-2958
SELECT + 61 * 39 * COUNT ( * ) + + 80 + - 34 * + - 87
----
5417

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT COUNT( * ) * + 58
----
58

skipif mysql # not compatible
query I rowsort label-2959
SELECT COUNT ( * ) * + 58
----
58

query I rowsort
SELECT ALL - + 69 col0
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-2961
SELECT 92 + - 19 + - 42 + + - 99 * - - COUNT( * ), - 89 AS col2
----
-68
-89

skipif mysql # not compatible
query II rowsort label-2961
SELECT 92 + - 19 + - 42 + + - 99 * - - COUNT ( * ), - 89 AS col2
----
-68
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT - 65 * + 99 - 13 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2962
SELECT - 65 * + 99 - 13 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 94 col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2964
SELECT - - ( + + COUNT( * ) ) * - - COUNT( * ) - - COUNT( * ) + - COUNT( * ) + + 61 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-2964
SELECT - - ( + + COUNT ( * ) ) * - - COUNT ( * ) - - COUNT ( * ) + - COUNT ( * ) + + 61 AS col0
----
62

onlyif mysql # aggregate syntax: 
query II rowsort label-2965
SELECT DISTINCT + MAX( + 61 ), 31 AS col2
----
61
31

skipif mysql # not compatible
query II rowsort label-2965
SELECT DISTINCT + MAX ( + 61 ), 31 AS col2
----
61
31

onlyif mysql # aggregate syntax: 
query II rowsort label-2966
SELECT 84 + + 39 AS col0, - CASE + COUNT( * ) WHEN - 22 THEN - AVG ( 8 ) + - COUNT( * ) ELSE NULL END
----
123
NULL

skipif mysql # not compatible
query II rowsort label-2966
SELECT 84 + + 39 AS col0, - CASE + COUNT ( * ) WHEN - 22 THEN - AVG ( 8 ) + - COUNT ( * ) ELSE NULL END
----
123
NULL

query I rowsort
SELECT ALL ( - - 14 ) + + - 48 AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2968
SELECT 15 + + 6 + 74 + + - 52 - - - CASE 61 WHEN + COALESCE ( - 83, 27 + - + 13 ) THEN + 91 WHEN - - 54 THEN NULL END / - + ( + 98 ) / COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT 15 + + 6 + 74 + + - 52 - - - CASE 61 WHEN + COALESCE ( - 83, 27 + - + 13 ) THEN + 91 WHEN - - 54 THEN NULL END / - + ( + 98 ) / COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 80 * - + 78 + + 57 + 7 * + + 32 AS col0
----
6521

query I rowsort
SELECT ALL + 47 + + 58
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL + COUNT( * ) + + + 49 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + COUNT ( * ) + + + 49 * + COUNT ( * )
----
50

query I rowsort
SELECT + 23 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT NULLIF ( + SUM( + ( 6 ) ), - 91 + + 45 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-2973
SELECT NULLIF ( + SUM ( + ( 6 ) ), - 91 + + 45 ) AS col2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2974
SELECT AVG ( ALL 93 ) + + 43 - 13 * CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2974
SELECT AVG ( ALL 93 ) + + 43 - 13 * CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT - CASE - - COUNT( * ) WHEN - CAST( NULL AS SIGNED ) THEN 41 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT - CASE - - COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) THEN 41 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT COUNT( * ) * + 52
----
52

skipif mysql # not compatible
query I rowsort label-2976
SELECT COUNT ( * ) * + 52
----
52

query I rowsort
SELECT NULLIF ( + + 35, 29 + + 96 ) + 89 AS col1
----
124

query II rowsort
SELECT DISTINCT 28 AS col2, 23 AS col2
----
28
23

query I rowsort
SELECT DISTINCT ( 17 ) + + 55
----
72

query I rowsort
SELECT ALL 69 + 93 AS col0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2981
SELECT DISTINCT ( + CAST( 81 AS SIGNED ) ) - + COUNT( * ) DIV - - 57 * 12 * + - 68 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-2981
SELECT DISTINCT ( + CAST ( 81 AS INTEGER ) ) - + COUNT ( * ) / - - 57 * 12 * + - 68 AS col2
----
81

query II rowsort
SELECT - 44 col2, - 84
----
-44
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT NULLIF ( - 49, COUNT( * ) + + 61 + - SUM( DISTINCT - + 38 ) - + 8 / + 95 ) * + 20 * 35 col0
----
-34300

skipif mysql # not compatible
query I rowsort label-2983
SELECT NULLIF ( - 49, COUNT ( * ) + + 61 + - SUM ( DISTINCT - + 38 ) - + 8 / + 95 ) * + 20 * 35 col0
----
-34300

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT COUNT( * ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-2984
SELECT COUNT ( * ) * + 3 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2985
SELECT - 31 * + + 72 + 60 DIV + NULLIF ( + + 96, - + NULLIF ( + 45, 83 ) * - 97 - 93 )
----
-2232

skipif mysql # not compatible
query I rowsort label-2985
SELECT - 31 * + + 72 + 60 / + NULLIF ( + + 96, - + NULLIF ( + 45, 83 ) * - 97 - 93 )
----
-2232

query I rowsort
SELECT DISTINCT 62 * + + 80 AS col2
----
4960

query I rowsort
SELECT ALL 79 * - 3 AS col2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT ALL 56 - 35 + + COUNT( * ) - 85
----
-63

skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL 56 - 35 + + COUNT ( * ) - 85
----
-63

query II rowsort
SELECT ALL - 41 AS col1, 70
----
-41
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT 76 + ( COUNT( * ) ) * - - COUNT( * ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2990
SELECT 76 + ( COUNT ( * ) ) * - - COUNT ( * ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + SUM( + + 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-2991
SELECT + SUM ( + + 63 ) AS col1
----
63

query I rowsort
SELECT ALL - ( - - 90 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2993
SELECT + + 83 * 21 / - - 17 + + + ( - - 53 ) + - - ( + 24 ) * - - COUNT( * ) / + 58 + + 90 + + 32 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT + + 83 * 21 / - - 17 + + + ( - - 53 ) + - - ( + 24 ) * - - COUNT ( * ) / + 58 + + 90 + + 32 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2994
SELECT - CAST( MIN( + 85 ) AS SIGNED ) * - 60 * - ( + 42 ) AS col2
----
-214200

skipif mysql # not compatible
query I rowsort label-2994
SELECT - CAST ( MIN ( + 85 ) AS INTEGER ) * - 60 * - ( + 42 ) AS col2
----
-214200

query II rowsort
SELECT 60 * ( + + 14 ) AS col1, 57 AS col0
----
840
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - 93 + - + COUNT( * ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-2996
SELECT - 93 + - + COUNT ( * ) AS col2
----
-94

query II rowsort
SELECT + - 19 AS col1, - 90 + + 35
----
-19
-55

query I rowsort
SELECT + - 6
----
-6

query I rowsort
SELECT ALL + 42 * + 1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3000
SELECT - 50 DIV + ( + + SUM( ALL + - 52 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 50 / + ( + + SUM ( ALL + - 52 ) )
----
0

query I rowsort
SELECT + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-3002
SELECT ALL + + 55 + - + ( + - 56 ) col2, - COUNT( * ) AS col1
----
111
-1

skipif mysql # not compatible
query II rowsort label-3002
SELECT ALL + + 55 + - + ( + - 56 ) col2, - COUNT ( * ) AS col1
----
111
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3003
SELECT ALL - COUNT( * ) + - - 83 col0
----
82

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - COUNT ( * ) + - - 83 col0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL - 76 + CASE - 49 WHEN + COUNT( * ) + + 20 THEN - 9 / + + 9 + + 23 + 59 + + 47 + 2 END - ( + COALESCE ( - - COUNT( * ), - 99 + + + 0 + + - 19, + + 61 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - 76 + CASE - 49 WHEN + COUNT ( * ) + + 20 THEN - 9 / + + 9 + + 23 + 59 + + 47 + 2 END - ( + COALESCE ( - - COUNT ( * ), - 99 + + + 0 + + - 19, + + 61 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3005
SELECT + CASE + 62 WHEN + 38 THEN 16 * + 24 WHEN + + ( + 30 ) * - 80 THEN - NULLIF ( + 52, + 47 ) ELSE NULL END / + + NULLIF ( 15, - 71 ) + - + COALESCE ( + 17, - + COUNT( * ) * - ( + CAST( - CASE - ( - - 49 ) WHEN 55 * - - 80 + + CAST( NULL AS SIGNED ) * - COUNT( * ) THEN + - CASE - ( + - COUNT( * ) ) WHEN - 27 - + AVG ( - - 48 ) THEN - 82 + + 67 ELSE + 86 * 30 + 31 END WHEN 9 * COUNT( * ) + - 2 + - 66 + 55 THEN NULL END AS SIGNED ) ) + - - 95, 1, + 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3005
SELECT + CASE + 62 WHEN + 38 THEN 16 * + 24 WHEN + + ( + 30 ) * - 80 THEN - NULLIF ( + 52, + 47 ) ELSE NULL END / + + NULLIF ( 15, - 71 ) + - + COALESCE ( + 17, - + COUNT ( * ) * - ( + CAST ( - CASE - ( - - 49 ) WHEN 55 * - - 80 + + CAST ( NULL AS INTEGER ) * - COUNT ( * ) THEN + - CASE - ( + - COUNT ( * ) ) WHEN - 27 - + AVG ( - - 48 ) THEN - 82 + + 67 ELSE + 86 * 30 + 31 END WHEN 9 * COUNT ( * ) + - 2 + - 66 + 55 THEN NULL END AS INTEGER ) ) + - - 95, 1, + 67 )
----
NULL

query I rowsort
SELECT DISTINCT - 50 AS col0
----
-50

query I rowsort
SELECT 9 - + - ( + 55 ) * + + ( + 75 ) * + 35 + - ( + 96 )
----
144288

query II rowsort
SELECT - 40 AS col1, 73
----
-40
73

query I rowsort
SELECT 3 AS col0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3010
SELECT ALL - - 75 + - COUNT( * ) DIV + 97 * + - 59
----
75

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL - - 75 + - COUNT ( * ) / + 97 * + - 59
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3011
SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT( * ) ELSE NULL END - + MAX( DISTINCT - ( + 67 ) ) / - 60 AS col0
----
41
NULL

skipif mysql # not compatible
query II rowsort label-3011
SELECT 41 AS col0, - CASE - - 20 WHEN 88 THEN + COUNT ( * ) ELSE NULL END - + MAX ( DISTINCT - ( + 67 ) ) / - 60 AS col0
----
41
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3012
SELECT - 66 * - COUNT( - - 53 ) * + + 79, - CAST( + 65 AS SIGNED ) * + 7 col2
----
5214
-455

skipif mysql # not compatible
query II rowsort label-3012
SELECT - 66 * - COUNT ( - - 53 ) * + + 79, - CAST ( + 65 AS INTEGER ) * + 7 col2
----
5214
-455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT ALL + CAST( NULL AS SIGNED ) + - MAX( - 47 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL + CAST ( NULL AS INTEGER ) + - MAX ( - 47 )
----
NULL

query I rowsort
SELECT DISTINCT + 97 * COALESCE ( 39, 23 )
----
3783

query I rowsort
SELECT ALL 46 * + + 69
----
3174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3016
SELECT ALL COUNT( ALL + 55 ) AS col1, - CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3016
SELECT ALL COUNT ( ALL + 55 ) AS col1, - CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT - COUNT( * ) + - 56 AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3017
SELECT - COUNT ( * ) + - 56 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT ALL NULLIF ( + 3, CAST( NULL AS SIGNED ) )
----
3

skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL NULLIF ( + 3, CAST ( NULL AS INTEGER ) )
----
3

query I rowsort
SELECT - 92 + 27 + + 40 AS col1
----
-25

query I rowsort
SELECT 67 col1
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-3021
SELECT + NULLIF ( + - 31, 65 + + - 31 * - COALESCE ( - - COALESCE ( - COUNT( * ), - MIN( DISTINCT - 77 ) + - + COUNT( * ) ), - 38 / 12 / - 10 ) ) + + + 8 AS col1, - 43 * - COALESCE ( + - 88, 43 )
----
-23
-3784

skipif mysql # not compatible
query II rowsort label-3021
SELECT + NULLIF ( + - 31, 65 + + - 31 * - COALESCE ( - - COALESCE ( - COUNT ( * ), - MIN ( DISTINCT - 77 ) + - + COUNT ( * ) ), - 38 / 12 / - 10 ) ) + + + 8 AS col1, - 43 * - COALESCE ( + - 88, 43 )
----
-23
-3784

query I rowsort
SELECT ALL + 96 col0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3023
SELECT + CASE - COALESCE ( + ( + 69 ), - 57 / ( 83 ) + + - 47 + + 27 / COUNT( * ) * - - 84 + - COUNT( * ) / COALESCE ( - 82, - 63, - 88 ), - 77 ) WHEN + + COUNT( * ) + + 86 THEN + 28 + 97 END * - + 76 / - 68 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT + CASE - COALESCE ( + ( + 69 ), - 57 / ( 83 ) + + - 47 + + 27 / COUNT ( * ) * - - 84 + - COUNT ( * ) / COALESCE ( - 82, - 63, - 88 ), - 77 ) WHEN + + COUNT ( * ) + + 86 THEN + 28 + 97 END * - + 76 / - 68 AS col1
----
NULL

query I rowsort
SELECT ALL + 41 AS col2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT + SUM( ALL - 60 ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-3025
SELECT + SUM ( ALL - 60 ) AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3026
SELECT + 55 * - - SUM( - CAST( + 28 AS SIGNED ) ) AS col1, - 49
----
-1540
-49

skipif mysql # not compatible
query II rowsort label-3026
SELECT + 55 * - - SUM ( - CAST ( + 28 AS INTEGER ) ) AS col1, - 49
----
-1540
-49

query I rowsort
SELECT + 89 * + + 8 + + 13 - 60 * - 84 AS col1
----
5765

onlyif mysql # DIV for integer division: 
query I rowsort label-3028
SELECT - COALESCE ( 66, + 70 * - + 81 DIV + ( 5 ) + ( 6 ) ) * 52
----
-3432

skipif mysql # not compatible
query I rowsort label-3028
SELECT - COALESCE ( 66, + 70 * - + 81 / + ( 5 ) + ( 6 ) ) * 52
----
-3432

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT + 54 * - 31 * - + 76 * + - CASE + - 68 WHEN + ( + 74 ) * MIN( DISTINCT 13 ) THEN NULL WHEN + + 1 THEN NULL ELSE + 5 * - + 92 END
----
58523040

skipif mysql # not compatible
query I rowsort label-3029
SELECT + 54 * - 31 * - + 76 * + - CASE + - 68 WHEN + ( + 74 ) * MIN ( DISTINCT 13 ) THEN NULL WHEN + + 1 THEN NULL ELSE + 5 * - + 92 END
----
58523040

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT ALL 90 * + 17 + ( COUNT( * ) )
----
1531

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL 90 * + 17 + ( COUNT ( * ) )
----
1531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3031
SELECT + + CAST( NULL AS SIGNED ) / - 12 - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3031
SELECT + + CAST ( NULL AS INTEGER ) / - 12 - - 92
----
NULL

query I rowsort
SELECT + + 15 + 84 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT + SUM( ALL - 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-3033
SELECT + SUM ( ALL - 57 ) AS col2
----
-57

query I rowsort
SELECT DISTINCT + 16
----
16

query I rowsort
SELECT + - 40 * + 94 + 82 + + 11 AS col0
----
-3667

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL - 28 * + ( + + COUNT( * ) ) * - - COUNT( ALL - + 46 ) + 17 + - 57 + + - 7
----
-75

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL - 28 * + ( + + COUNT ( * ) ) * - - COUNT ( ALL - + 46 ) + 17 + - 57 + + - 7
----
-75

query I rowsort
SELECT ALL 98 * + 72 + 44 + 37 AS col0
----
7137

query I rowsort
SELECT ALL + + NULLIF ( - + 86, - 82 + - 95 )
----
-86

query I rowsort
SELECT + 70 + - ( - + 50 ) col0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + 10 + + COUNT( * ) + 10
----
21

skipif mysql # not compatible
query I rowsort label-3040
SELECT + 10 + + COUNT ( * ) + 10
----
21

query I rowsort
SELECT DISTINCT + + 49 col2
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - - 7 * - - SUM( + ( + 94 ) ) + + - 6
----
652

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - - 7 * - - SUM ( + ( + 94 ) ) + + - 6
----
652

query I rowsort
SELECT - + 8 * 25
----
-200

query I rowsort
SELECT + + 36 AS col2
----
36

query I rowsort
SELECT + - 39 + + 17 + - 5 + - 95 * ( COALESCE ( + 75, 56 ) ) + - 52 AS col0
----
-7204

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3046
SELECT - - 13 * - + 59 - - COUNT( * ) * + + 0 DIV + 11 - 83 * - + 49
----
3300

skipif mysql # not compatible
query I rowsort label-3046
SELECT - - 13 * - + 59 - - COUNT ( * ) * + + 0 / + 11 - 83 * - + 49
----
3300

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3047
SELECT + - 47 * - CAST( 44 AS SIGNED ) * - - ( 38 ) + + - 98 DIV - 94 + - 81 + - 27 + 49 AS col1
----
78526

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - 47 * - CAST ( 44 AS INTEGER ) * - - ( 38 ) + + - 98 / - 94 + - 81 + - 27 + 49 AS col1
----
78526

query I rowsort
SELECT DISTINCT 23 - + 49
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT ALL NULLIF ( MAX( DISTINCT + 51 ), 60 * - 51 )
----
51

skipif mysql # not compatible
query I rowsort label-3049
SELECT ALL NULLIF ( MAX ( DISTINCT + 51 ), 60 * - 51 )
----
51

query II rowsort
SELECT - 52 + + 56 - - 46, 98 AS col2
----
50
98

query I rowsort
SELECT ALL 58 * - - 7 * - 36 * + 10
----
-146160

onlyif mysql # aggregate syntax: 
query II rowsort label-3052
SELECT DISTINCT ( - 67 ) * + NULLIF ( 32, + 58 ) col0, MAX( - - 73 )
----
-2144
73

skipif mysql # not compatible
query II rowsort label-3052
SELECT DISTINCT ( - 67 ) * + NULLIF ( 32, + 58 ) col0, MAX ( - - 73 )
----
-2144
73

query I rowsort
SELECT + 40 * - 13
----
-520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT + 16 / 20 * - CASE 86 WHEN 47 * 67 * 48 / CAST( - 60 AS SIGNED ) / CASE - 17 WHEN + COUNT( DISTINCT - 17 ) * + 11 + + 3 + - + MIN( 70 ) THEN NULL WHEN + SUM( ALL + 7 ) + + - 70 + 50 * + 24 * + + CAST( NULL AS SIGNED ) THEN + 65 ELSE NULL END * + - COUNT( * ) - - 77 * - 55 THEN + + 18 * 2 * - + NULLIF ( + - 4, - + 48 + + 43 - - - 39 * - - 34 ) + + - ( 13 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3054
SELECT + 16 / 20 * - CASE 86 WHEN 47 * 67 * 48 / CAST ( - 60 AS INTEGER ) / CASE - 17 WHEN + COUNT ( DISTINCT - 17 ) * + 11 + + 3 + - + MIN ( 70 ) THEN NULL WHEN + SUM ( ALL + 7 ) + + - 70 + 50 * + 24 * + + CAST ( NULL AS INTEGER ) THEN + 65 ELSE NULL END * + - COUNT ( * ) - - 77 * - 55 THEN + + 18 * 2 * - + NULLIF ( + - 4, - + 48 + + 43 - - - 39 * - - 34 ) + + - ( 13 ) END AS col2
----
NULL

query I rowsort
SELECT ALL ( 66 )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT - NULLIF ( NULLIF ( - + SUM( 53 ), + 93 ), - 84 + - 97 ) * + 9 * + 72 AS col1
----
34344

skipif mysql # not compatible
query I rowsort label-3056
SELECT - NULLIF ( NULLIF ( - + SUM ( 53 ), + 93 ), - 84 + - 97 ) * + 9 * + 72 AS col1
----
34344

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL ( + COUNT( DISTINCT 75 ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL ( + COUNT ( DISTINCT 75 ) ) col0
----
1

query II rowsort
SELECT 15 col2, - 84 + + 25 col1
----
15
-59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3059
SELECT DISTINCT CASE ( + 29 ) WHEN + 31 THEN NULL WHEN - NULLIF ( + COUNT( * ), - 57 ) * + + COUNT( * ) + + SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) * - - 64 + 89 + + 80 * - 71 * - - 6 THEN COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3059
SELECT DISTINCT CASE ( + 29 ) WHEN + 31 THEN NULL WHEN - NULLIF ( + COUNT ( * ), - 57 ) * + + COUNT ( * ) + + SUM ( DISTINCT + - CAST ( NULL AS REAL ) ) * - - 64 + 89 + + 80 * - 71 * - - 6 THEN COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) * + 45 * - 41 col2
----
1845

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) * + 45 * - 41 col2
----
1845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT ALL CAST( 70 AS SIGNED ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL CAST ( 70 AS INTEGER ) AS col2
----
70

query II rowsort
SELECT - 60 AS col0, - 27 * + 25 + + 51 AS col0
----
-60
-624

query I rowsort
SELECT ALL ( - 71 ) col2
----
-71

query I rowsort
SELECT DISTINCT - 67 * - - 22 AS col2
----
-1474

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - 32 * + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 32 * + + COUNT ( * )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT COUNT( * ) * + + ( COUNT( * ) ) + ( - + 54 ) * - 92 + - COUNT( * ) + - 12 * 63
----
4212

skipif mysql # not compatible
query I rowsort label-3066
SELECT COUNT ( * ) * + + ( COUNT ( * ) ) + ( - + 54 ) * - 92 + - COUNT ( * ) + - 12 * 63
----
4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3067
SELECT CAST( + 77 AS SIGNED ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-3067
SELECT CAST ( + 77 AS INTEGER ) AS col0
----
77

query I rowsort
SELECT + 26 + 39
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3069
SELECT DISTINCT 9 DIV + 38 + 73
----
73

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 9 / + 38 + 73
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3070
SELECT - 96 DIV + COUNT( * ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-3070
SELECT - 96 / + COUNT ( * ) AS col2
----
-96

query I rowsort
SELECT ALL + 59 AS col0
----
59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3072
SELECT CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3072
SELECT CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3073
SELECT ALL + 56 DIV + NULLIF ( COUNT( * ), 88 ) + + 36
----
92

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + 56 / + NULLIF ( COUNT ( * ), 88 ) + + 36
----
92

query I rowsort
SELECT - 90 + - 54 AS col1
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT 50 * 41 + - 37 AS col2
----
2013

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3077
SELECT - 9 DIV COUNT( * ) - + 49
----
-58

skipif mysql # not compatible
query I rowsort label-3077
SELECT - 9 / COUNT ( * ) - + 49
----
-58

query I rowsort
SELECT ( + 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3079
SELECT ALL COUNT( * ) DIV + 38
----
0

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL COUNT ( * ) / + 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT - 30 DIV + 7
----
-4

skipif mysql # not compatible
query I rowsort label-3080
SELECT - 30 / + 7
----
-4

query I rowsort
SELECT ( + 79 )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT + NULLIF ( ( 80 ), + COUNT( * ) ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-3082
SELECT + NULLIF ( ( 80 ), + COUNT ( * ) ) AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + 12 + + NULLIF ( 44 + 5, + COUNT( * ) ) * - 92
----
-4496

skipif mysql # not compatible
query I rowsort label-3083
SELECT + 12 + + NULLIF ( 44 + 5, + COUNT ( * ) ) * - 92
----
-4496

query I rowsort
SELECT ALL 18 * 79 AS col0
----
1422

query I rowsort
SELECT ALL + 84 AS col0
----
84

query I rowsort
SELECT + CASE - 43 WHEN + 39 THEN NULL ELSE 42 END AS col2
----
42

query I rowsort
SELECT ALL + CASE WHEN 68 IN ( + 31 ) THEN - 91 ELSE - 17 END AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + ( + MAX( ALL 16 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3088
SELECT + ( + MAX ( ALL 16 ) ) AS col0
----
16

query I rowsort
SELECT DISTINCT - 97
----
-97

query I rowsort
SELECT ALL 82 * 59
----
4838

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3091
SELECT DISTINCT 5 - COUNT( * ) DIV COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT 5 - COUNT ( * ) / COUNT ( * )
----
4

query I rowsort
SELECT ALL 17 * - 45 AS col0
----
-765

query I rowsort
SELECT DISTINCT 75 AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT 25 * COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3094
SELECT 25 * COUNT ( * ) AS col2
----
25

query I rowsort
SELECT 61 * 59
----
3599

query I rowsort
SELECT NULLIF ( - ( 62 ), 78 * + 18 ) - + 4 * 80
----
-382

query I rowsort
SELECT - 83 AS col2
----
-83

query I rowsort
SELECT 73 * + 0
----
0

query I rowsort
SELECT DISTINCT 41 AS col0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL - 25 * NULLIF ( 8, CASE ( - 16 ) WHEN COUNT( * ) + + COUNT( 72 + + 56 ) * - 13 THEN NULL WHEN + 98 + 44 THEN ( 56 ) ELSE 95 END * COUNT( 64 ) - - COUNT( 24 + + 12 ) * 74 )
----
-200

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - 25 * NULLIF ( 8, CASE ( - 16 ) WHEN COUNT ( * ) + + COUNT ( 72 + + 56 ) * - 13 THEN NULL WHEN + 98 + 44 THEN ( 56 ) ELSE 95 END * COUNT ( 64 ) - - COUNT ( 24 + + 12 ) * 74 )
----
-200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT ALL 68 * - CASE 85 WHEN - 80 - - 32 * - CAST( NULL AS SIGNED ) THEN + COUNT( * ) WHEN + 54 * - 69 + - 85 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL 68 * - CASE 85 WHEN - 80 - - 32 * - CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) WHEN + 54 * - 69 + - 85 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT ALL - 62 + 40
----
-22

query I rowsort
SELECT 79 - 0 AS col1
----
79

query I rowsort
SELECT DISTINCT 3 * 15 col2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT DISTINCT 62 + - ( - CAST( NULL AS SIGNED ) + + 2 * + COALESCE ( 59 / + 78, 51 ) ) / + 10 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT 62 + - ( - CAST ( NULL AS INTEGER ) + + 2 * + COALESCE ( 59 / + 78, 51 ) ) / + 10 AS col1
----
NULL

query I rowsort
SELECT 69 + + 90
----
159

query I rowsort
SELECT 76 * 89 col0
----
6764

query I rowsort
SELECT ( + 56 ) + - 92
----
-36

query I rowsort
SELECT 14 - - 10
----
24

query I rowsort
SELECT ALL 70 col0
----
70

query I rowsort
SELECT - + 12 AS col2
----
-12

query I rowsort
SELECT ALL + COALESCE ( 46, + 83 ) + 43 AS col2
----
89

query I rowsort
SELECT - + 58
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3114
SELECT ALL - 13 + - CAST( - 74 + + 84 AS SIGNED ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-3114
SELECT ALL - 13 + - CAST ( - 74 + + 84 AS INTEGER ) AS col2
----
-23

query I rowsort
SELECT ALL - - 86
----
86

query I rowsort
SELECT + 64 * + 91 + + ( 9 )
----
5833

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL - 63 * COUNT( * ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL - 63 * COUNT ( * ) AS col0
----
-63

query I rowsort
SELECT ALL - 52 + - 57 col0
----
-109

query I rowsort
SELECT - 63 col1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT + CAST( + AVG ( 14 ) AS SIGNED ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-3120
SELECT + CAST ( + AVG ( 14 ) AS INTEGER ) AS col0
----
14

query I rowsort
SELECT + 96 * 75
----
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT 4 DIV + 32 col0
----
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT 4 / + 32 col0
----
0

query I rowsort
SELECT CASE + 30 WHEN 21 * + 28 THEN NULL WHEN + 70 + 9 * 58 THEN - 13 END
----
NULL

query I rowsort
SELECT + + 7
----
7

query I rowsort
SELECT ALL - - 88
----
88

query I rowsort
SELECT DISTINCT + ( 90 ) - - 34 * - 14 col2
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT 53 * COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-3127
SELECT 53 * COUNT ( * )
----
53

query I rowsort
SELECT ALL - - 72
----
72

query I rowsort
SELECT - - 75 * 6 - - ( 65 + - 46 ) col1
----
469

query I rowsort
SELECT DISTINCT - + 11
----
-11

query I rowsort
SELECT DISTINCT - + 94
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( * ) * + 25 AS col2
----
25

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( * ) * + 25 AS col2
----
25

query I rowsort
SELECT + ( 48 ) + + 19 AS col0
----
67

query I rowsort
SELECT - 97 * - 81 * - 20 + + 50
----
-157090

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT 56 * - ( 7 ) + - 72 * CASE - NULLIF ( + 0, - 76 + ( - ( - 50 ) + 8 ) ) / ( 50 ) WHEN - MAX( - 71 ) THEN + 0 * 36 + 1 WHEN 79 * 39 THEN CASE 83 WHEN 73 * ( + 21 ) THEN 29 / + 44 END END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3135
SELECT 56 * - ( 7 ) + - 72 * CASE - NULLIF ( + 0, - 76 + ( - ( - 50 ) + 8 ) ) / ( 50 ) WHEN - MAX ( - 71 ) THEN + 0 * 36 + 1 WHEN 79 * 39 THEN CASE 83 WHEN 73 * ( + 21 ) THEN 29 / + 44 END END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3136
SELECT + NULLIF ( - - NULLIF ( + CAST( 41 AS SIGNED ), + CAST( + COUNT( * ) AS DECIMAL ) ), - 47 ) * ( ( 79 ) ) - 64
----
3175

skipif mysql # not compatible
query I rowsort label-3136
SELECT + NULLIF ( - - NULLIF ( + CAST ( 41 AS INTEGER ), + CAST ( + COUNT ( * ) AS REAL ) ), - 47 ) * ( ( 79 ) ) - 64
----
3175

query I rowsort
SELECT ALL 63 * - 69 * 51 AS col0
----
-221697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3138
SELECT 54 + - CAST( - CAST( + 6 AS SIGNED ) AS SIGNED ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-3138
SELECT 54 + - CAST ( - CAST ( + 6 AS INTEGER ) AS INTEGER ) AS col1
----
60

query I rowsort
SELECT ALL 36 col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL COUNT( + 32 ) + 40
----
41

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL COUNT ( + 32 ) + 40
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3141
SELECT ( + - 93 ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT ( + - 93 ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 66 + + 3 + + 37
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3143
SELECT MAX( DISTINCT 28 ) + 44 DIV CAST( COUNT( * ) AS SIGNED )
----
72

skipif mysql # not compatible
query I rowsort label-3143
SELECT MAX ( DISTINCT 28 ) + 44 / CAST ( COUNT ( * ) AS INTEGER )
----
72

query I rowsort
SELECT ALL 49 AS col2
----
49

query I rowsort
SELECT DISTINCT 62 + + CASE 2 WHEN 17 / 78 THEN 32 WHEN + 13 THEN NULL WHEN 76 THEN 65 END + ( - 98 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT 14 + - 31 DIV 2 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3146
SELECT 14 + - 31 / 2 AS col1
----
-1

query I rowsort
SELECT ALL 61 + 63 AS col0
----
124

query I rowsort
SELECT 78 col1
----
78

query I rowsort
SELECT ALL - - 21 + + 47 AS col1
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT - CASE - 74 WHEN - 17 + - COUNT( ALL + 39 - 40 ) * 21 THEN + 10 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT - CASE - 74 WHEN - 17 + - COUNT ( ALL + 39 - 40 ) * 21 THEN + 10 END AS col2
----
NULL

query I rowsort
SELECT ALL + 17 AS col1
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3152
SELECT COUNT( * ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3152
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 50 + + 43 col0
----
93

query I rowsort
SELECT ALL - 23 - 88 AS col2
----
-111

query I rowsort
SELECT + 95 * + 70 + + 75 + 31 AS col0
----
6756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3156
SELECT - + 79 DIV + COUNT( * ) - + 4
----
-83

skipif mysql # not compatible
query I rowsort label-3156
SELECT - + 79 / + COUNT ( * ) - + 4
----
-83

query I rowsort
SELECT 88 * + + 23 * 35 AS col2
----
70840

query I rowsort
SELECT COALESCE ( - - 44, 51 ) col0
----
44

query I rowsort
SELECT - - 60 + - 97 AS col1
----
-37

query I rowsort
SELECT - + 2 * - 33 + + 21
----
87

query I rowsort
SELECT ALL + + 0 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT - - 14 * CAST( NULL AS SIGNED ) + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT - - 14 * CAST ( NULL AS INTEGER ) + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( ( + 83 ) )
----
83

query I rowsort
SELECT DISTINCT + - 61 * 3 + - 70 AS col1
----
-253

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT + + COALESCE ( - 91, CAST( NULL AS SIGNED ), 12 ) * + 7
----
-637

skipif mysql # not compatible
query I rowsort label-3165
SELECT + + COALESCE ( - 91, CAST ( NULL AS INTEGER ), 12 ) * + 7
----
-637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - CAST( + 19 AS SIGNED ) * + COALESCE ( + 49, ( + 61 ), - 2 )
----
-931

skipif mysql # not compatible
query I rowsort label-3166
SELECT - CAST ( + 19 AS INTEGER ) * + COALESCE ( + 49, ( + 61 ), - 2 )
----
-931

query I rowsort
SELECT - COALESCE ( + 39, - 17 + + 81 * - 47 ) + 59 * 23 AS col1
----
1318

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT + 52 * - + CASE + - 22 WHEN 31 THEN NULLIF ( 95, + 5 ) * - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT + 52 * - + CASE + - 22 WHEN 31 THEN NULLIF ( 95, + 5 ) * - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3169
SELECT ALL + 9 AS col1, COUNT( * ) * - - 17
----
9
17

skipif mysql # not compatible
query II rowsort label-3169
SELECT ALL + 9 AS col1, COUNT ( * ) * - - 17
----
9
17

query I rowsort
SELECT - 99 + + 83 + 22 col1
----
6

query I rowsort
SELECT + 81 col2
----
81

query I rowsort
SELECT DISTINCT + 41 AS col0
----
41

query I rowsort
SELECT DISTINCT - 80 + 29 AS col1
----
-51

query II rowsort
SELECT - 92 AS col0, + 7 AS col0
----
-92
7

query I rowsort
SELECT - 10 * 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3176
SELECT - COUNT( * ) AS col2, + 17 + + + COUNT( * ) + + 0 AS col2
----
-1
18

skipif mysql # not compatible
query II rowsort label-3176
SELECT - COUNT ( * ) AS col2, + 17 + + + COUNT ( * ) + + 0 AS col2
----
-1
18

query I rowsort
SELECT ALL - 62 + + 24 AS col0
----
-38

query I rowsort
SELECT - 27 - + 32 AS col1
----
-59

query I rowsort
SELECT ALL - 90 * + 13 AS col0
----
-1170

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3180
SELECT - CASE 19 WHEN + CAST( NULL AS DECIMAL ) * - 38 THEN 99 * 17 END + - 33 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3180
SELECT - CASE 19 WHEN + CAST ( NULL AS REAL ) * - 38 THEN 99 * 17 END + - 33 AS col2
----
NULL

query I rowsort
SELECT - 59 col2
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3182
SELECT - 56 + + 99 + + + 68 + 57 * ( - 76 * - CAST( ( 86 ) AS SIGNED ) ) AS col1
----
372663

skipif mysql # not compatible
query I rowsort label-3182
SELECT - 56 + + 99 + + + 68 + 57 * ( - 76 * - CAST ( ( 86 ) AS INTEGER ) ) AS col1
----
372663

query I rowsort
SELECT DISTINCT ( - + 19 )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT + + 58 + - COUNT( * ) * - 49 + 88 * 6 AS col1
----
635

skipif mysql # not compatible
query I rowsort label-3184
SELECT + + 58 + - COUNT ( * ) * - 49 + 88 * 6 AS col1
----
635

query I rowsort
SELECT - 51 * 1 AS col2
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3186
SELECT + NULLIF ( + 8, 25 ) * CAST( + CAST( COUNT( * ) AS SIGNED ) * - NULLIF ( - 14, 63 * + CASE 27 WHEN 39 THEN 96 END ) AS SIGNED ) AS col1
----
112

skipif mysql # not compatible
query I rowsort label-3186
SELECT + NULLIF ( + 8, 25 ) * CAST ( + CAST ( COUNT ( * ) AS INTEGER ) * - NULLIF ( - 14, 63 * + CASE 27 WHEN 39 THEN 96 END ) AS INTEGER ) AS col1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT - 65 + - + CASE + 19 WHEN + 69 + NULLIF ( 65, ( NULLIF ( 11, CAST( 79 AS SIGNED ) ) ) - + AVG ( DISTINCT 44 ) ) THEN NULL WHEN - 24 THEN NULL ELSE + 66 END / CASE + 23 WHEN ( - 72 ) THEN 94 * 19 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 65 + - + CASE + 19 WHEN + 69 + NULLIF ( 65, ( NULLIF ( 11, CAST ( 79 AS INTEGER ) ) ) - + AVG ( DISTINCT 44 ) ) THEN NULL WHEN - 24 THEN NULL ELSE + 66 END / CASE + 23 WHEN ( - 72 ) THEN 94 * 19 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3188
SELECT ( + + CAST( + - CAST( - MIN( - 41 ) AS SIGNED ) AS SIGNED ) )
----
-41

skipif mysql # not compatible
query I rowsort label-3188
SELECT ( + + CAST ( + - CAST ( - MIN ( - 41 ) AS INTEGER ) AS INTEGER ) )
----
-41

query I rowsort
SELECT ALL 48 AS col2
----
48

query II rowsort
SELECT 65 col1, 48 col1
----
65
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT( ALL 2 * CAST( NULL AS SIGNED ) ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3191
SELECT - CASE - 53 WHEN - 17 THEN 10 + + 99 / + COUNT ( ALL 2 * CAST ( NULL AS INTEGER ) ) END AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - 20, - 77 + + 5 ) - - 8 * + ( 92 )
----
716

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3193
SELECT + - COUNT( + 46 ) * 3 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT + - COUNT ( + 46 ) * 3 + + CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT DISTINCT 54, ( - 80 ) AS col1
----
54
-80

query I rowsort
SELECT ALL - ( + - 66 ) AS col0
----
66

query II rowsort
SELECT + + 21, 82 + + 47 AS col1
----
21
129

onlyif mysql # DIV for integer division: 
query I rowsort label-3197
SELECT + - 31 DIV ( + + ( - 3 ) ) * 18 col2
----
180

skipif mysql # not compatible
query I rowsort label-3197
SELECT + - 31 / ( + + ( - 3 ) ) * 18 col2
----
180

query I rowsort
SELECT ALL 54 * 63 AS col2
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT + COUNT( * ) * 82 + - 94
----
-12

skipif mysql # not compatible
query I rowsort label-3199
SELECT + COUNT ( * ) * 82 + - 94
----
-12

query I rowsort
SELECT ALL 93 * + 33
----
3069

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT - 76 * + 1 + + - 52 + - CAST( NULL AS SIGNED ) * 42 * - 5 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3201
SELECT - 76 * + 1 + + - 52 + - CAST ( NULL AS INTEGER ) * 42 * - 5 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT + 81 DIV - + NULLIF ( 71, 39 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 81 / - + NULLIF ( 71, 39 ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3203
SELECT - 50 DIV - + 43
----
1

skipif mysql # not compatible
query I rowsort label-3203
SELECT - 50 / - + 43
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT + COUNT( ALL - 47 )
----
1

skipif mysql # not compatible
query I rowsort label-3204
SELECT + COUNT ( ALL - 47 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3205
SELECT + 94, COUNT( * ) AS col0
----
94
1

skipif mysql # not compatible
query II rowsort label-3205
SELECT + 94, COUNT ( * ) AS col0
----
94
1

query I rowsort
SELECT + + 36 col2
----
36

query I rowsort
SELECT ALL + 83 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT ALL CAST( 20 AS SIGNED ) * + + COUNT( * ) + - 97 + + 50 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL CAST ( 20 AS INTEGER ) * + + COUNT ( * ) + - 97 + + 50 AS col0
----
-27

query I rowsort
SELECT ( - 42 ) AS col1
----
-42

query I rowsort
SELECT DISTINCT + 96 AS col0
----
96

query I rowsort
SELECT ALL + ( - + 41 ) * 53 * 91 + 23 * + 68
----
-196179

query I rowsort
SELECT ( + 23 ) col1
----
23

query I rowsort
SELECT ALL 7 * - ( - 15 ) + + 38
----
143

query I rowsort
SELECT - 39 + 13 AS col0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL NULLIF ( - 18, 22 ) * - CAST( NULL AS SIGNED ) * 7 + 47 * - 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL NULLIF ( - 18, 22 ) * - CAST ( NULL AS INTEGER ) * 7 + 47 * - 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT CASE - + 38 WHEN - AVG ( 30 ) THEN COUNT( * ) + + COALESCE ( - 82, - 35 + 26 ) * 14 ELSE - 54 END AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3216
SELECT CASE - + 38 WHEN - AVG ( 30 ) THEN COUNT ( * ) + + COALESCE ( - 82, - 35 + 26 ) * 14 ELSE - 54 END AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3217
SELECT + CAST( + + 4 AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3217
SELECT + CAST ( + + 4 AS INTEGER ) AS col1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT - CAST( NULL AS SIGNED ) + + - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT - CAST ( NULL AS INTEGER ) + + - 83 AS col0
----
NULL

query I rowsort
SELECT + 50 * + + 49 + - 32 AS col1
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT 30 * - CAST( NULL AS SIGNED ) + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT 30 * - CAST ( NULL AS INTEGER ) + 63
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - 9 - + + COALESCE ( - 14, + MIN( DISTINCT + 65 ) + - MIN( 74 ) ) * - ( 77 ) AS col1
----
-1087

skipif mysql # not compatible
query I rowsort label-3221
SELECT - 9 - + + COALESCE ( - 14, + MIN ( DISTINCT + 65 ) + - MIN ( 74 ) ) * - ( 77 ) AS col1
----
-1087

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3222
SELECT COALESCE ( COUNT( * ), 81 DIV - 16, - 0 * + CAST( + 35 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3222
SELECT COALESCE ( COUNT ( * ), 81 / - 16, - 0 * + CAST ( + 35 AS INTEGER ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3223
SELECT ALL + COUNT( * ) * + - 40, + 27 * + 24 * 25 AS col2
----
-40
16200

skipif mysql # not compatible
query II rowsort label-3223
SELECT ALL + COUNT ( * ) * + - 40, + 27 * + 24 * 25 AS col2
----
-40
16200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3224
SELECT - CAST( COUNT( - CAST( + 32 AS SIGNED ) ) AS SIGNED ) + + 24 col2
----
23

skipif mysql # not compatible
query I rowsort label-3224
SELECT - CAST ( COUNT ( - CAST ( + 32 AS INTEGER ) ) AS INTEGER ) + + 24 col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 4 * + ( 62 )
----
-248

query I rowsort
SELECT - 50 + 89
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT ALL 30 * - + 65 - + CAST( + 60 AS SIGNED )
----
-2010

skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL 30 * - + 65 - + CAST ( + 60 AS INTEGER )
----
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT - MAX( - 42 )
----
42

skipif mysql # not compatible
query I rowsort label-3229
SELECT - MAX ( - 42 )
----
42

query I rowsort
SELECT - 96 + - ( + 72 ) * - - 43
----
-3192

query I rowsort
SELECT - - 70 * + 6
----
420

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3232
SELECT ALL - + COALESCE ( 68, - + 16 ) DIV + COUNT( * ) AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3232
SELECT ALL - + COALESCE ( 68, - + 16 ) / + COUNT ( * ) AS col0
----
-68

query I rowsort
SELECT + + 95 * 7 AS col2
----
665

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT - - MAX( ALL + 92 ) + + 30
----
122

skipif mysql # not compatible
query I rowsort label-3234
SELECT - - MAX ( ALL + 92 ) + + 30
----
122

query I rowsort
SELECT DISTINCT 37 col0
----
37

query I rowsort
SELECT DISTINCT 59
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - 40 * - CAST( + 65 AS SIGNED )
----
2600

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - 40 * - CAST ( + 65 AS INTEGER )
----
2600

query I rowsort
SELECT 59 * - 6 + + 49 * - - 23
----
773

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT ALL COUNT( 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT ALL COUNT ( 88 ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 48 * 79 / - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 48 * 79 / - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 38 * + + 82 + 39 col1
----
3155

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + COUNT( * ) + - + ( + 94 ) * - - 18
----
-1691

skipif mysql # not compatible
query I rowsort label-3242
SELECT + COUNT ( * ) + - + ( + 94 ) * - - 18
----
-1691

query I rowsort
SELECT ALL - 88 + - 42 AS col1
----
-130

query I rowsort
SELECT + NULLIF ( 99, + 41 ) AS col2
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3245
SELECT 25 DIV - 86 - + ( - ( 9 ) ) AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3245
SELECT 25 / - 86 - + ( - ( 9 ) ) AS col0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3246
SELECT DISTINCT COALESCE ( - 1, + COALESCE ( + - ( 84 ), - 99 ) + - 0, + 80 ) + - 19 DIV - 2 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT COALESCE ( - 1, + COALESCE ( + - ( 84 ), - 99 ) + - 0, + 80 ) + - 19 / - 2 AS col0
----
8

query I rowsort
SELECT DISTINCT - - 66 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL + COUNT( * ) + + + ( - 72 ) + + 60 AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL + COUNT ( * ) + + + ( - 72 ) + + 60 AS col1
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3249
SELECT ALL - NULLIF ( + 52, 73 ) + + 30 - CAST( 8 AS SIGNED ) DIV 20
----
-22

skipif mysql # not compatible
query I rowsort label-3249
SELECT ALL - NULLIF ( + 52, 73 ) + + 30 - CAST ( 8 AS INTEGER ) / 20
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT 11 + + + 40 DIV + + 69 AS col2
----
11

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT 11 + + + 40 / + + 69 AS col2
----
11

query I rowsort
SELECT ALL 4 * 56 AS col2
----
224

query I rowsort
SELECT + 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT 60 * + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-3253
SELECT 60 * + COUNT ( * ) AS col0
----
60

query I rowsort
SELECT DISTINCT 39 * - - 9
----
351

query I rowsort
SELECT ( 91 ) * + 96
----
8736

query I rowsort
SELECT 8 * - - 42 * 53
----
17808

query I rowsort
SELECT + 43 AS col2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT COUNT( + 88 ) * - + 98 + - 46
----
-144

skipif mysql # not compatible
query I rowsort label-3258
SELECT COUNT ( + 88 ) * - + 98 + - 46
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT 80 col2, - COUNT( * ) AS col1
----
80
-1

skipif mysql # not compatible
query II rowsort label-3259
SELECT 80 col2, - COUNT ( * ) AS col1
----
80
-1

query I rowsort
SELECT ALL 62 * + 45
----
2790

query I rowsort
SELECT DISTINCT 97 - - 0 AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3262
SELECT ALL 32 - + NULLIF ( - CAST( NULL AS SIGNED ), + - CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL 32 - + NULLIF ( - CAST ( NULL AS INTEGER ), + - CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT 85 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT 85 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 20 * + ( + 95 ) AS col0, 71 AS col1
----
1900
71

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3265
SELECT CASE + 69 WHEN CAST( + ( - COUNT( * ) ) AS DECIMAL ) / 54 + 83 THEN NULL WHEN 92 THEN - 97 END - - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT CASE + 69 WHEN CAST ( + ( - COUNT ( * ) ) AS REAL ) / 54 + 83 THEN NULL WHEN 92 THEN - 97 END - - 94
----
NULL

query I rowsort
SELECT ALL 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT ALL - COUNT( * ) * - 89 + - 70 - + 37 - 17 * 63
----
-1089

skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL - COUNT ( * ) * - 89 + - 70 - + 37 - 17 * 63
----
-1089

onlyif mysql # aggregate syntax: 
query I rowsort label-3268
SELECT COUNT( * ) - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT COUNT ( * ) - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT NULLIF ( - 49, COUNT( * ) * - ( - 74 ) * 84 ) * - COUNT( * ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-3269
SELECT NULLIF ( - 49, COUNT ( * ) * - ( - 74 ) * 84 ) * - COUNT ( * ) AS col2
----
49

query I rowsort
SELECT 35 * 22 AS col0
----
770

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + COALESCE ( - + 44, 99 * - COUNT( * ) * 12 + + 26, 68, 4 * 64 ) + - 7 * 12 AS col2
----
-128

skipif mysql # not compatible
query I rowsort label-3271
SELECT + COALESCE ( - + 44, 99 * - COUNT ( * ) * 12 + + 26, 68, 4 * 64 ) + - 7 * 12 AS col2
----
-128

query I rowsort
SELECT DISTINCT - 91 * - - 56
----
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT SUM( ALL + + 70 ) + - 61 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-3273
SELECT SUM ( ALL + + 70 ) + - 61 AS col0
----
9

query I rowsort
SELECT ALL 30 * - 3
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT 27 DIV + - COALESCE ( + + NULLIF ( + 96, 25 ), + 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3275
SELECT 27 / + - COALESCE ( + + NULLIF ( + 96, 25 ), + 24 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3276
SELECT ALL - NULLIF ( + 44, - COUNT( * ) ) AS col2, 29 + + 74
----
-44
103

skipif mysql # not compatible
query II rowsort label-3276
SELECT ALL - NULLIF ( + 44, - COUNT ( * ) ) AS col2, 29 + + 74
----
-44
103

query I rowsort
SELECT DISTINCT - 42 * - 13
----
546

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL - + 47 + + 77 + - - COUNT( * ) * - 32 * - + 84 AS col2
----
2718

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL - + 47 + + 77 + - - COUNT ( * ) * - 32 * - + 84 AS col2
----
2718

query I rowsort
SELECT - 96 - 58
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT + 5 DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-3280
SELECT + 5 / - 59
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT 66 + - - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3281
SELECT 66 + - - COUNT ( * )
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT ALL + - 17 + - - 31 DIV 86
----
-17

skipif mysql # not compatible
query I rowsort label-3282
SELECT ALL + - 17 + - - 31 / 86
----
-17

query I rowsort
SELECT 12 AS col0
----
12

query I rowsort
SELECT DISTINCT + - 4 + - 16 col1
----
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3285
SELECT DISTINCT + - 88 DIV - + 42 + COUNT( * ) + - 70 * COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-3285
SELECT DISTINCT + - 88 / - + 42 + COUNT ( * ) + - 70 * COUNT ( * )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT ALL - - COUNT( * ) + - COUNT( * ) * + 6 * 77 + 58
----
-403

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - - COUNT ( * ) + - COUNT ( * ) * + 6 * 77 + 58
----
-403

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT + - CASE - CAST( NULL AS SIGNED ) WHEN - - 73 THEN - ( - 44 ) + + 22 WHEN CASE - 73 WHEN + 99 + 45 * + 73 THEN NULL ELSE + 75 END + 16 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT + - CASE - CAST ( NULL AS INTEGER ) WHEN - - 73 THEN - ( - 44 ) + + 22 WHEN CASE - 73 WHEN + 99 + 45 * + 73 THEN NULL ELSE + 75 END + 16 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT + 72 * COUNT( * ) + - 16 + + 31 * SUM( 87 )
----
2753

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + 72 * COUNT ( * ) + - 16 + + 31 * SUM ( 87 )
----
2753

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT 80 * COUNT( * ) AS col2, + 43 * - 39 AS col2
----
80
-1677

skipif mysql # not compatible
query II rowsort label-3289
SELECT 80 * COUNT ( * ) AS col2, + 43 * - 39 AS col2
----
80
-1677

query I rowsort
SELECT ALL - ( + - 95 )
----
95

query I rowsort
SELECT DISTINCT - 21 * 76
----
-1596

onlyif mysql # aggregate syntax: 
query I rowsort label-3292
SELECT 69 + COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-3292
SELECT 69 + COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT COUNT( + 64 )
----
1

skipif mysql # not compatible
query I rowsort label-3293
SELECT COUNT ( + 64 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT COUNT( + 93 ) + + 22 * + + 33 col2
----
727

skipif mysql # not compatible
query I rowsort label-3294
SELECT COUNT ( + 93 ) + + 22 * + + 33 col2
----
727

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT ALL + 8 * ( 20 ) - 42 - + - 80 - + COUNT( * ) * 9 * + COUNT( * ) AS col0
----
189

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + 8 * ( 20 ) - 42 - + - 80 - + COUNT ( * ) * 9 * + COUNT ( * ) AS col0
----
189

query I rowsort
SELECT DISTINCT + 49 - - 52 col1
----
101

query I rowsort
SELECT + 96 AS col0
----
96

query I rowsort
SELECT DISTINCT - COALESCE ( 44, - 62 )
----
-44

query I rowsort
SELECT ALL - 40 AS col0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( * ) + + + 66 + + COUNT( * ) + - 49 AS col0
----
19

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( * ) + + + 66 + + COUNT ( * ) + - 49 AS col0
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT 85 DIV ( + - 36 ) DIV + - 58 + 41 * 96 - + 12
----
3924

skipif mysql # not compatible
query I rowsort label-3301
SELECT 85 / ( + - 36 ) / + - 58 + 41 * 96 - + 12
----
3924

query I rowsort
SELECT + 6 col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3303
SELECT 68 * + 1 + + COALESCE ( + - ( 68 ), NULLIF ( - COALESCE ( - CASE - 58 WHEN + 12 THEN NULL WHEN - 29 THEN + 38 ELSE NULLIF ( + CASE - 7 WHEN 35 - 32 * + 59 THEN + 95 * ( 62 * 47 ) WHEN 15 * CAST( ( - ( + 58 ) ) * + 10 AS SIGNED ) THEN 30 END, - MAX( ALL + 42 ) - + 38 / + COUNT( * ) ) + - 89 END, + 21 ), - 90 ), 80 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3303
SELECT 68 * + 1 + + COALESCE ( + - ( 68 ), NULLIF ( - COALESCE ( - CASE - 58 WHEN + 12 THEN NULL WHEN - 29 THEN + 38 ELSE NULLIF ( + CASE - 7 WHEN 35 - 32 * + 59 THEN + 95 * ( 62 * 47 ) WHEN 15 * CAST ( ( - ( + 58 ) ) * + 10 AS INTEGER ) THEN 30 END, - MAX ( ALL + 42 ) - + 38 / + COUNT ( * ) ) + - 89 END, + 21 ), - 90 ), 80 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT ALL CASE 11 WHEN + 15 THEN + + ( - - 13 ) / - 29 * + COUNT( * ) WHEN 32 THEN - 98 * + 3 END * MAX( 27 * + 59 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL CASE 11 WHEN + 15 THEN + + ( - - 13 ) / - 29 * + COUNT ( * ) WHEN 32 THEN - 98 * + 3 END * MAX ( 27 * + 59 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3305
SELECT - ( - + CASE + + COUNT( * ) WHEN + 78 THEN NULL WHEN - ( CAST( NULL AS SIGNED ) ) / 31 THEN 81 * + 14 WHEN 44 THEN NULL ELSE NULL END ) * - COUNT( * ) - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3305
SELECT - ( - + CASE + + COUNT ( * ) WHEN + 78 THEN NULL WHEN - ( CAST ( NULL AS INTEGER ) ) / 31 THEN 81 * + 14 WHEN 44 THEN NULL ELSE NULL END ) * - COUNT ( * ) - 34
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3306
SELECT + 67 + + 64 AS col0, 12 DIV - 63
----
131
0

skipif mysql # not compatible
query II rowsort label-3306
SELECT + 67 + + 64 AS col0, 12 / - 63
----
131
0

query I rowsort
SELECT ALL + - 70 AS col2
----
-70

query I rowsort
SELECT + + 68 * + - 50 * - 82 * + + COALESCE ( + + 44, - ( - 55 ), + 5 )
----
12267200

query I rowsort
SELECT DISTINCT + 62 * - 14 + + 16 - - 25
----
-827

query II rowsort
SELECT DISTINCT 19 * + 61, - 54 * + - 89 col2
----
1159
4806

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3311
SELECT DISTINCT - CAST( + CASE + 61 WHEN + 98 THEN NULL WHEN + - 32 THEN NULL ELSE - 57 END AS SIGNED ) + + 90
----
147

skipif mysql # not compatible
query I rowsort label-3311
SELECT DISTINCT - CAST ( + CASE + 61 WHEN + 98 THEN NULL WHEN + - 32 THEN NULL ELSE - 57 END AS INTEGER ) + + 90
----
147

query I rowsort
SELECT ALL - + 94 + - 3 + + ( 38 ) * - 40 AS col1
----
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT - 86 * + + ( COUNT( * ) ) + - + COUNT( * ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-3313
SELECT - 86 * + + ( COUNT ( * ) ) + - + COUNT ( * ) AS col1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3314
SELECT + - CAST( NULL AS DECIMAL ) + + 24 AS col2, - 2 col1
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-3314
SELECT + - CAST ( NULL AS REAL ) + + 24 AS col2, - 2 col1
----
NULL
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-3315
SELECT 96 AS col0, - NULLIF ( + COUNT( * ), 66 ) AS col1
----
96
-1

skipif mysql # not compatible
query II rowsort label-3315
SELECT 96 AS col0, - NULLIF ( + COUNT ( * ), 66 ) AS col1
----
96
-1

query I rowsort
SELECT ALL - 88 + - 46 AS col1
----
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT + COUNT( * ) + - 82 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT + COUNT ( * ) + - 82 AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3318
SELECT + CAST( + 11 AS SIGNED ) + 58
----
69

skipif mysql # not compatible
query I rowsort label-3318
SELECT + CAST ( + 11 AS INTEGER ) + 58
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3319
SELECT DISTINCT + 61 + - NULLIF ( + CAST( - 71 AS SIGNED ), + - CASE + ( 74 ) WHEN - SUM( DISTINCT - 0 ) THEN - ( + 16 ) ELSE NULL END ) col2
----
132

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT + 61 + - NULLIF ( + CAST ( - 71 AS INTEGER ), + - CASE + ( 74 ) WHEN - SUM ( DISTINCT - 0 ) THEN - ( + 16 ) ELSE NULL END ) col2
----
132

onlyif mysql # aggregate syntax: 
query II rowsort label-3320
SELECT ALL + 97 * + 7 AS col2, COUNT( * ) - - 55 AS col0
----
679
56

skipif mysql # not compatible
query II rowsort label-3320
SELECT ALL + 97 * + 7 AS col2, COUNT ( * ) - - 55 AS col0
----
679
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3321
SELECT + COUNT( * ), COUNT( * ) AS col2
----
1
1

skipif mysql # not compatible
query II rowsort label-3321
SELECT + COUNT ( * ), COUNT ( * ) AS col2
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT ALL 44 + - - COUNT( ALL - 80 )
----
45

skipif mysql # not compatible
query I rowsort label-3322
SELECT ALL 44 + - - COUNT ( ALL - 80 )
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-3323
SELECT DISTINCT 48 * + + 52 AS col1, 16 + + ( COUNT( 76 ) ) + NULLIF ( - 78 + - 15 * COUNT( * ), 83 ) * 85
----
2496
-7888

skipif mysql # not compatible
query II rowsort label-3323
SELECT DISTINCT 48 * + + 52 AS col1, 16 + + ( COUNT ( 76 ) ) + NULLIF ( - 78 + - 15 * COUNT ( * ), 83 ) * 85
----
2496
-7888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3324
SELECT - - 0 + - 84 + + - CAST( - COUNT( * ) AS SIGNED ) * + CASE - COUNT( * ) WHEN CAST( 77 AS SIGNED ) THEN - 12 END + - 61 / + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT - - 0 + - 84 + + - CAST ( - COUNT ( * ) AS INTEGER ) * + CASE - COUNT ( * ) WHEN CAST ( 77 AS INTEGER ) THEN - 12 END + - 61 / + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT ALL - NULLIF ( + 92, - 47 ) * - COUNT( * ) + - 0 * - 51 + - 48
----
44

skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL - NULLIF ( + 92, - 47 ) * - COUNT ( * ) + - 0 * - 51 + - 48
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + CASE - 65 WHEN NULLIF ( + + CASE 60 WHEN 36 * - 74 + 23 THEN NULL ELSE - 76 END, ( MAX( ALL - 76 ) ) + 22 ) * - 51 THEN 22 * + 41 + - 88 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3326
SELECT + CASE - 65 WHEN NULLIF ( + + CASE 60 WHEN 36 * - 74 + 23 THEN NULL ELSE - 76 END, ( MAX ( ALL - 76 ) ) + 22 ) * - 51 THEN 22 * + 41 + - 88 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT DISTINCT MAX( DISTINCT - - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT MAX ( DISTINCT - - 15 ) AS col0
----
15

query I rowsort
SELECT + CASE 16 WHEN 32 THEN NULL ELSE 5 * - - 28 + - 82 END * + ( - 19 ) AS col0
----
-1102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - CAST( - + COUNT( * ) AS SIGNED ) * - 71 * - 77 AS col1
----
5467

skipif mysql # not compatible
query I rowsort label-3329
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) * - 71 * - 77 AS col1
----
5467

query I rowsort
SELECT DISTINCT + 37 AS col2
----
37

query I rowsort
SELECT + 30 col1
----
30

query I rowsort
SELECT ALL + 14 AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3333
SELECT - CAST( - 60 AS SIGNED ) * + 9 AS col0
----
540

skipif mysql # not compatible
query I rowsort label-3333
SELECT - CAST ( - 60 AS INTEGER ) * + 9 AS col0
----
540

query I rowsort
SELECT DISTINCT + 27
----
27

onlyif mysql # DIV for integer division: 
query II rowsort label-3335
SELECT DISTINCT + 63 DIV 4 DIV 56 AS col0, 82 AS col2
----
0
82

skipif mysql # not compatible
query II rowsort label-3335
SELECT DISTINCT + 63 / 4 / 56 AS col0, 82 AS col2
----
0
82

query I rowsort
SELECT ( + 61 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3337
SELECT ALL + ( + 74 ) AS col0, MAX( + ( + 91 ) ) AS col0
----
74
91

skipif mysql # not compatible
query II rowsort label-3337
SELECT ALL + ( + 74 ) AS col0, MAX ( + ( + 91 ) ) AS col0
----
74
91

query I rowsort
SELECT + 99 AS col0
----
99

query I rowsort
SELECT - CASE - - ( - + 19 ) WHEN - 29 THEN + - 1 ELSE NULL END * 7 + - 84 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT COALESCE ( 61, 99 - - CAST( + 53 AS SIGNED ), + - 6 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-3340
SELECT COALESCE ( 61, 99 - - CAST ( + 53 AS INTEGER ), + - 6 ) AS col0
----
61

query I rowsort
SELECT ALL + 73 * 15 AS col0
----
1095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT COALESCE ( + + ( + ( - + 57 ) ), - 47 + MIN( - - 9 ) DIV - COUNT( * ), - ( + 1 ) ) col2
----
-57

skipif mysql # not compatible
query I rowsort label-3342
SELECT COALESCE ( + + ( + ( - + 57 ) ), - 47 + MIN ( - - 9 ) / - COUNT ( * ), - ( + 1 ) ) col2
----
-57

query I rowsort
SELECT ALL + 75
----
75

query II rowsort
SELECT - 67 * 13 AS col1, + 71 * - 48
----
-871
-3408

query I rowsort
SELECT ALL - 61 * + + 36 + + + ( + 28 )
----
-2168

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3346
SELECT DISTINCT + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT ALL + COUNT( - 34 ) * - 42 + - COALESCE ( 15, - 82 ) * + 19 - + 15
----
-342

skipif mysql # not compatible
query I rowsort label-3347
SELECT ALL + COUNT ( - 34 ) * - 42 + - COALESCE ( 15, - 82 ) * + 19 - + 15
----
-342

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT DISTINCT + - COUNT( ALL 70 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + - COUNT ( ALL 70 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3349
SELECT - + 78 + - COUNT( * ) - CAST( - 85 AS SIGNED ) * ( + 27 ) - - - 89
----
2127

skipif mysql # not compatible
query I rowsort label-3349
SELECT - + 78 + - COUNT ( * ) - CAST ( - 85 AS INTEGER ) * ( + 27 ) - - - 89
----
2127

query I rowsort
SELECT ALL + ( + 63 ) * 11 + - 25
----
668

query I rowsort
SELECT - COALESCE ( - 39, 67 ) - 65
----
-26

query I rowsort
SELECT ALL - 23 AS col1
----
-23

query I rowsort
SELECT ALL + - 71 + 27 + 98 * 75
----
7306

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3354
SELECT - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT DISTINCT 93 + - + 94 + - 6, 32 + COUNT( * ) col2
----
-7
33

skipif mysql # not compatible
query II rowsort label-3355
SELECT DISTINCT 93 + - + 94 + - 6, 32 + COUNT ( * ) col2
----
-7
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3356
SELECT + + 71 - + - 3 DIV 6 * - + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-3356
SELECT + + 71 - + - 3 / 6 * - + COUNT ( * )
----
71

query I rowsort
SELECT DISTINCT - 64 AS col2
----
-64

query I rowsort
SELECT + 14 AS col2
----
14

query I rowsort
SELECT - + 28
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3360
SELECT - 69 * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3360
SELECT - 69 * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT 80 col1, + 75 * 73 AS col1
----
80
5475

query I rowsort
SELECT ALL 45 - - 3
----
48

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3363
SELECT - CAST( NULL AS DECIMAL ) AS col0, CAST( + 16 AS SIGNED ) AS col1
----
NULL
16

skipif mysql # not compatible
query II rowsort label-3363
SELECT - CAST ( NULL AS REAL ) AS col0, CAST ( + 16 AS INTEGER ) AS col1
----
NULL
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3364
SELECT + CAST( NULL AS SIGNED ) * + + 73 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3364
SELECT + CAST ( NULL AS INTEGER ) * + + 73 * 34
----
NULL

query II rowsort
SELECT DISTINCT + 72, + 15 AS col2
----
72
15

query I rowsort
SELECT 77 * + 98 * + 95 * - + 30 + COALESCE ( + 15, + - 18 ) AS col0
----
-21506085

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3367
SELECT + CAST( + 75 AS SIGNED ) DIV + MAX( ALL + - 65 ), 65 + 69 AS col0
----
-1
134

skipif mysql # not compatible
query II rowsort label-3367
SELECT + CAST ( + 75 AS INTEGER ) / + MAX ( ALL + - 65 ), 65 + 69 AS col0
----
-1
134

query I rowsort
SELECT - 3 * - + 22 AS col2
----
66

query I rowsort
SELECT ALL + CASE - + 99 WHEN 80 * - + 97 + - 73 + 23 THEN + 8 ELSE - - 53 * + 3 END
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3370
SELECT + 58 DIV + + NULLIF ( - - 79, + 75 * - - 54 * + - ( - 70 ) DIV - ( - SUM( ALL 86 ) ) - 49 + ( ( 81 ) + 53 ) ) * - 25 + 73 DIV 62 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3370
SELECT + 58 / + + NULLIF ( - - 79, + 75 * - - 54 * + - ( - 70 ) / - ( - SUM ( ALL 86 ) ) - 49 + ( ( 81 ) + 53 ) ) * - 25 + 73 / 62 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3371
SELECT ALL - COALESCE ( ( + 45 ), 20, - + CAST( NULL AS SIGNED ) ) DIV - ( - + 88 )
----
0

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL - COALESCE ( ( + 45 ), 20, - + CAST ( NULL AS INTEGER ) ) / - ( - + 88 )
----
0

query I rowsort
SELECT 78 * + 52 + - 68
----
3988

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL 73 + - - 34 - COUNT( * ) * + - ( COUNT( * ) ) AS col2
----
108

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL 73 + - - 34 - COUNT ( * ) * + - ( COUNT ( * ) ) AS col2
----
108

onlyif mysql # aggregate syntax: 
query II rowsort label-3374
SELECT DISTINCT - 52, - 40 + SUM( 78 ) AS col2
----
-52
38

skipif mysql # not compatible
query II rowsort label-3374
SELECT DISTINCT - 52, - 40 + SUM ( 78 ) AS col2
----
-52
38

query I rowsort
SELECT ALL + NULLIF ( 42, + 78 + - 82 * + + 8 ) + - 34 + + - 79 + 32 AS col2
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT - 14 * - 43 * - COUNT( * ) + ( - + 90 ) * 24 col1
----
-2762

skipif mysql # not compatible
query I rowsort label-3376
SELECT - 14 * - 43 * - COUNT ( * ) + ( - + 90 ) * 24 col1
----
-2762

onlyif mysql # aggregate syntax: 
query I rowsort label-3377
SELECT ALL - 14 + - - COUNT( + + 57 ) * - + 79 col0
----
-93

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL - 14 + - - COUNT ( + + 57 ) * - + 79 col0
----
-93

query I rowsort
SELECT ALL - - 75 AS col2
----
75

query I rowsort
SELECT 82 * - - 78
----
6396

query I rowsort
SELECT - CASE - 72 WHEN 44 THEN + - 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3381
SELECT SUM( + + 70 ) + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT SUM ( + + 70 ) + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL - 21 + + - 59 AS col2
----
-80

query I rowsort
SELECT DISTINCT + 63 * + 35
----
2205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3384
SELECT + COUNT( * ) * + ( ( + MIN( 94 ) ) ) + - - 88 + - 30 - + 84 DIV 1 * - NULLIF ( - 76 + 2, - 15 ) AS col1
----
-6064

skipif mysql # not compatible
query I rowsort label-3384
SELECT + COUNT ( * ) * + ( ( + MIN ( 94 ) ) ) + - - 88 + - 30 - + 84 / 1 * - NULLIF ( - 76 + 2, - 15 ) AS col1
----
-6064

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT + 16 * COUNT( * ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-3385
SELECT + 16 * COUNT ( * ) AS col2
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT ALL - CAST( + CASE + - 32 WHEN COUNT( * ) THEN + + 49 ELSE NULL END AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT ALL - CAST ( + CASE + - 32 WHEN COUNT ( * ) THEN + + 49 ELSE NULL END AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3387
SELECT ALL - + 59 AS col2, - 9 + + 95 * + COUNT( - 77 ) AS col0
----
-59
86

skipif mysql # not compatible
query II rowsort label-3387
SELECT ALL - + 59 AS col2, - 9 + + 95 * + COUNT ( - 77 ) AS col0
----
-59
86

query I rowsort
SELECT DISTINCT - 10
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - COUNT( - + 94 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3389
SELECT - COUNT ( - + 94 ) AS col0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT ALL CAST( - NULLIF ( - CAST( NULL AS SIGNED ), 59 * - 50 ) AS SIGNED ) - 53 * - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT ALL CAST ( - NULLIF ( - CAST ( NULL AS INTEGER ), 59 * - 50 ) AS INTEGER ) - 53 * - 5 AS col0
----
NULL

query I rowsort
SELECT 28 * + - 18 AS col1
----
-504

query I rowsort
SELECT ALL - 71
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3393
SELECT ALL COALESCE ( - 23, + - CAST( - 14 AS SIGNED ) * - COUNT( * ) )
----
-23

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL COALESCE ( - 23, + - CAST ( - 14 AS INTEGER ) * - COUNT ( * ) )
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-3394
SELECT DISTINCT - - 68 DIV NULLIF ( + - 26, - - 70 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-3394
SELECT DISTINCT - - 68 / NULLIF ( + - 26, - - 70 ) col1
----
-2

query I rowsort
SELECT - + 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT ALL - COUNT( * ) - - NULLIF ( - - 88, - CASE - - COUNT( * ) WHEN + 80 * - 75 + + 85 + 31 THEN - 37 WHEN 33 THEN NULL WHEN 79 + - COALESCE ( 22, - MIN( 76 ) * 71 ) THEN - 76 ELSE NULL END ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-3396
SELECT ALL - COUNT ( * ) - - NULLIF ( - - 88, - CASE - - COUNT ( * ) WHEN + 80 * - 75 + + 85 + 31 THEN - 37 WHEN 33 THEN NULL WHEN 79 + - COALESCE ( 22, - MIN ( 76 ) * 71 ) THEN - 76 ELSE NULL END ) AS col2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT 7 * - MAX( + 11 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-3397
SELECT 7 * - MAX ( + 11 ) AS col2
----
-77

query I rowsort
SELECT 51 * - - 38
----
1938

query I rowsort
SELECT - + 66 AS col0
----
-66

query I rowsort
SELECT ALL - 10 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - + MAX( 85 )
----
-85

skipif mysql # not compatible
query I rowsort label-3401
SELECT - + MAX ( 85 )
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT + COUNT( 38 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3402
SELECT + COUNT ( 38 ) AS col0
----
1

query I rowsort
SELECT + 41 + 86 AS col1
----
127

query II rowsort
SELECT + 20 AS col1, - 48 AS col2
----
20
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL - COUNT( ALL + 52 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL - COUNT ( ALL + 52 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3406
SELECT 79 + + 81 AS col1, COALESCE ( - 87, - ( - COUNT( * ) ) )
----
160
-87

skipif mysql # not compatible
query II rowsort label-3406
SELECT 79 + + 81 AS col1, COALESCE ( - 87, - ( - COUNT ( * ) ) )
----
160
-87

query I rowsort
SELECT ALL - 71 * ( + 0 ) AS col2
----
0

query I rowsort
SELECT DISTINCT - 63 * ( + 65 ) col0
----
-4095

query I rowsort
SELECT ALL 74 col0
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3410
SELECT ALL 28 DIV NULLIF ( - COUNT( ALL + - 97 ), + + 31 )
----
-28

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL 28 / NULLIF ( - COUNT ( ALL + - 97 ), + + 31 )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3411
SELECT 98 DIV + 8 AS col1
----
12

skipif mysql # not compatible
query I rowsort label-3411
SELECT 98 / + 8 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3412
SELECT 5 + + - MIN( 9 ) * - 9
----
86

skipif mysql # not compatible
query I rowsort label-3412
SELECT 5 + + - MIN ( 9 ) * - 9
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT ( - 23 ) + + COUNT( * ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-3413
SELECT ( - 23 ) + + COUNT ( * ) AS col0
----
-22

query I rowsort
SELECT DISTINCT 42 AS col0
----
42

query I rowsort
SELECT ( + 94 ) * 32 AS col2
----
3008

onlyif mysql # DIV for integer division: 
query II rowsort label-3416
SELECT 39 + 21 DIV - - 51 * - - 76 AS col0, + 74 AS col2
----
39
74

skipif mysql # not compatible
query II rowsort label-3416
SELECT 39 + 21 / - - 51 * - - 76 AS col0, + 74 AS col2
----
39
74

query I rowsort
SELECT ALL - 78 col0
----
-78

query I rowsort
SELECT DISTINCT 20 + 8
----
28

query I rowsort
SELECT DISTINCT 32 + - - 71 * - 53 - - 35 AS col2
----
-3696

query I rowsort
SELECT DISTINCT - 55 AS col1
----
-55

query I rowsort
SELECT ALL - NULLIF ( - - 10, 93 * 8 ) + 44 + 12 * - 30 * + 18
----
-6446

query I rowsort
SELECT ALL 19 + 19
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3423
SELECT + NULLIF ( + ( - CAST( NULL AS SIGNED ) ), 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT + NULLIF ( + ( - CAST ( NULL AS INTEGER ) ), 73 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ( COUNT( * ) ) - - MAX( + CASE WHEN NULL IS NOT NULL THEN 22 ELSE - 44 - - 20 * 23 END ) AS col2
----
417

skipif mysql # not compatible
query I rowsort label-3424
SELECT ( COUNT ( * ) ) - - MAX ( + CASE WHEN NULL IS NOT NULL THEN 22 ELSE - 44 - - 20 * 23 END ) AS col2
----
417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3425
SELECT + CAST( + + 2 AS SIGNED )
----
2

skipif mysql # not compatible
query I rowsort label-3425
SELECT + CAST ( + + 2 AS INTEGER )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3426
SELECT 73 DIV COUNT( * ) + - 73 + - + 86 DIV + + 14 + - + 35 * 81 * 15 AS col0
----
-42531

skipif mysql # not compatible
query I rowsort label-3426
SELECT 73 / COUNT ( * ) + - 73 + - + 86 / + + 14 + - + 35 * 81 * 15 AS col0
----
-42531

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT ALL - CASE + + 96 WHEN + + 4 + + 28 / + ( + CAST( + 36 AS SIGNED ) ) THEN - - CAST( NULL AS SIGNED ) * + + 36 WHEN - 73 * 66 THEN - 31 WHEN 44 THEN NULL ELSE 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL - CASE + + 96 WHEN + + 4 + + 28 / + ( + CAST ( + 36 AS INTEGER ) ) THEN - - CAST ( NULL AS INTEGER ) * + + 36 WHEN - 73 * 66 THEN - 31 WHEN 44 THEN NULL ELSE 56 END
----
-56

query I rowsort
SELECT + + ( 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT DISTINCT - + CAST( 38 AS SIGNED ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - + CAST ( 38 AS INTEGER ) AS col1
----
-38

query I rowsort
SELECT DISTINCT - 94 AS col1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - COUNT( * ) - - - COUNT( * ) * 24 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - COUNT ( * ) - - - COUNT ( * ) * 24 AS col0
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT ALL + 99 DIV - - 87 + - 22
----
-21

skipif mysql # not compatible
query I rowsort label-3432
SELECT ALL + 99 / - - 87 + - 22
----
-21

query I rowsort
SELECT DISTINCT - + 54 * - - 18
----
-972

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT + NULLIF ( - 82, - - 42 + 36 - + 97 + - 65 * + 19 * CASE - COUNT( * ) WHEN 58 THEN + 37 WHEN NULLIF ( 2, + ( + CASE COALESCE ( + COALESCE ( + 18, SUM( ALL 29 ), - SUM( + ( - 50 ) ) ), 38, MAX( + 64 ) ) WHEN MIN( + 31 ) THEN - 99 * - 7 WHEN - ( - ( - 22 ) ) THEN NULL END ) ) THEN NULL ELSE NULL END / + 94 )
----
-82

skipif mysql # not compatible
query I rowsort label-3434
SELECT + NULLIF ( - 82, - - 42 + 36 - + 97 + - 65 * + 19 * CASE - COUNT ( * ) WHEN 58 THEN + 37 WHEN NULLIF ( 2, + ( + CASE COALESCE ( + COALESCE ( + 18, SUM ( ALL 29 ), - SUM ( + ( - 50 ) ) ), 38, MAX ( + 64 ) ) WHEN MIN ( + 31 ) THEN - 99 * - 7 WHEN - ( - ( - 22 ) ) THEN NULL END ) ) THEN NULL ELSE NULL END / + 94 )
----
-82

query I rowsort
SELECT 45 + + - 45 * - - 50
----
-2205

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT - - COUNT( * ) * - - 53 - - 23 * + - 75 col1
----
-1672

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT - - COUNT ( * ) * - - 53 - - 23 * + - 75 col1
----
-1672

query I rowsort
SELECT 22 + 33 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT COUNT( DISTINCT - - 74 ) * + - 36 * - + 9 * + 56
----
18144

skipif mysql # not compatible
query I rowsort label-3438
SELECT COUNT ( DISTINCT - - 74 ) * + - 36 * - + 9 * + 56
----
18144

query I rowsort
SELECT ALL + 9 col1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3440
SELECT 12 - - 87 DIV + - ( - - 50 ) + + + 61 * - 61 AS col0
----
-3710

skipif mysql # not compatible
query I rowsort label-3440
SELECT 12 - - 87 / + - ( - - 50 ) + + + 61 * - 61 AS col0
----
-3710

query I rowsort
SELECT ALL - 13 * - 93 + - ( 5 ) AS col1
----
1204

query I rowsort
SELECT 45 * - - 53
----
2385

query I rowsort
SELECT ALL 69 AS col0
----
69

query II rowsort
SELECT DISTINCT 87 * + ( - 75 ) AS col2, + 82 * - + 0 AS col2
----
-6525
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3445
SELECT DISTINCT COUNT( * ), + COUNT( * ) col1
----
1
1

skipif mysql # not compatible
query II rowsort label-3445
SELECT DISTINCT COUNT ( * ), + COUNT ( * ) col1
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT MIN( ALL - + 4 )
----
-4

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT MIN ( ALL - + 4 )
----
-4

query I rowsort
SELECT 79 * 33
----
2607

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT 14 * CAST( - 33 AS SIGNED ) * 40 * + - 36 - 46
----
665234

skipif mysql # not compatible
query I rowsort label-3448
SELECT 14 * CAST ( - 33 AS INTEGER ) * 40 * + - 36 - 46
----
665234

query I rowsort
SELECT ALL - 40 + - 48
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT ALL MIN( DISTINCT - 9 )
----
-9

skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL MIN ( DISTINCT - 9 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT - COUNT( * ) * - 37
----
37

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT - COUNT ( * ) * - 37
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT 95 - COUNT( * ) col0
----
94

skipif mysql # not compatible
query I rowsort label-3452
SELECT 95 - COUNT ( * ) col0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - ( - SUM( DISTINCT 86 ) ) + NULLIF ( + 93, 76 ) - + COUNT( * )
----
178

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - ( - SUM ( DISTINCT 86 ) ) + NULLIF ( + 93, 76 ) - + COUNT ( * )
----
178

query II rowsort
SELECT - 92 * - - 58 * + 24 AS col0, 10 * ( - + 46 )
----
-128064
-460

query I rowsort
SELECT + 97 * - ( - - 72 ) AS col2
----
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL MIN( DISTINCT - 28 )
----
-28

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL MIN ( DISTINCT - 28 )
----
-28

query I rowsort
SELECT - 68 * 33 * - 8 AS col1
----
17952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3458
SELECT ALL CAST( - + ( 9 ) AS SIGNED ) + + + 1 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL CAST ( - + ( 9 ) AS INTEGER ) + + + 1 AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3459
SELECT DISTINCT + CASE 60 WHEN + 67 THEN + - 82 / - + 31 + ( + 23 ) + + CASE WHEN ( - 16 ) >= - CAST( + 82 AS SIGNED ) / - 58 THEN - ( 30 ) * - 92 + MAX( 32 + + 86 ) END / - 86 END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT + CASE 60 WHEN + 67 THEN + - 82 / - + 31 + ( + 23 ) + + CASE WHEN ( - 16 ) >= - CAST ( + 82 AS INTEGER ) / - 58 THEN - ( 30 ) * - 92 + MAX ( 32 + + 86 ) END / - 86 END * + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - COUNT( * ) + + - 10 col2
----
-11

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - COUNT ( * ) + + - 10 col2
----
-11

query I rowsort
SELECT + 62 - + 30 col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT DISTINCT 73 DIV + - 69
----
-1

skipif mysql # not compatible
query I rowsort label-3462
SELECT DISTINCT 73 / + - 69
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3463
SELECT DISTINCT + ( + 67 ) + - 2 / + SUM( + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) * + + COALESCE ( + 1, - 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + ( + 67 ) + - 2 / + SUM ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * + + COALESCE ( + 1, - 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT - 68 * NULLIF ( - + 86, - 46 + - MIN( DISTINCT - - 63 ) * + 9 ) + - - 53 * 77 AS col0
----
9929

skipif mysql # not compatible
query I rowsort label-3464
SELECT - 68 * NULLIF ( - + 86, - 46 + - MIN ( DISTINCT - - 63 ) * + 9 ) + - - 53 * 77 AS col0
----
9929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT + COUNT( * ) DIV - 39 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT + COUNT ( * ) / - 39 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) * - CAST( NULL AS SIGNED ) * 72 + 47 + 26 * + CASE 42 WHEN - + 41 + - - 12 + NULLIF ( 54 + ( 45 ), - 66 * - NULLIF ( - 11, COUNT( * ) + 62 * + 49 ) + - 35 ) THEN NULL WHEN - 27 + - 67 THEN + CASE + COUNT( * ) WHEN - 71 + - MIN( ALL + 85 ) * 87 THEN MAX( - 67 ) * 92 WHEN 75 * + 99 THEN NULL ELSE + 14 END * - 71 + 21 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 72 + 47 + 26 * + CASE 42 WHEN - + 41 + - - 12 + NULLIF ( 54 + ( 45 ), - 66 * - NULLIF ( - 11, COUNT ( * ) + 62 * + 49 ) + - 35 ) THEN NULL WHEN - 27 + - 67 THEN + CASE + COUNT ( * ) WHEN - 71 + - MIN ( ALL + 85 ) * 87 THEN MAX ( - 67 ) * 92 WHEN 75 * + 99 THEN NULL ELSE + 14 END * - 71 + 21 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - 6 * + COUNT( * ) + + COUNT( * ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-3467
SELECT - 6 * + COUNT ( * ) + + COUNT ( * ) AS col0
----
-5

query II rowsort
SELECT + 13, + 66 * - 94 + - 10 AS col0
----
13
-6214

query I rowsort
SELECT + 40 * - + 82 AS col0
----
-3280

query I rowsort
SELECT ALL + - ( 84 ) AS col0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3471
SELECT + COUNT( 53 ) + 73 AS col0, 19
----
74
19

skipif mysql # not compatible
query II rowsort label-3471
SELECT + COUNT ( 53 ) + 73 AS col0, 19
----
74
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL - 95 * + 61 - SUM( ALL + - 49 ) AS col0
----
-5746

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - 95 * + 61 - SUM ( ALL + - 49 ) AS col0
----
-5746

query I rowsort
SELECT ALL + - ( - 89 ) AS col2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT + 25 * + 6 + + 81 - + 21 * - + 2 + + - 57 + COUNT( * ) * - + 51 - - 82 + - + 39 * COUNT( - 35 ) * + 90 col2
----
-3263

skipif mysql # not compatible
query I rowsort label-3474
SELECT + 25 * + 6 + + 81 - + 21 * - + 2 + + - 57 + COUNT ( * ) * - + 51 - - 82 + - + 39 * COUNT ( - 35 ) * + 90 col2
----
-3263

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL 94 * + - 17 * + ( + CASE COUNT( * ) WHEN - - 22 * 29 * - 51 / 99 THEN NULL WHEN - COUNT( * ) THEN + 31 ELSE NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL 94 * + - 17 * + ( + CASE COUNT ( * ) WHEN - - 22 * 29 * - 51 / 99 THEN NULL WHEN - COUNT ( * ) THEN + 31 ELSE NULL END )
----
NULL

query I rowsort
SELECT DISTINCT + 39 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + 53 * + + COUNT( * ) + - 92 AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + 53 * + + COUNT ( * ) + - 92 AS col1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT + + CAST( NULL AS SIGNED ) * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT + + CAST ( NULL AS INTEGER ) * - - 9
----
NULL

query I rowsort
SELECT + + ( 58 ) AS col0
----
58

query I rowsort
SELECT + - 84 + 79 + CASE - + 14 WHEN + 52 + - 19 THEN + + 63 END
----
NULL

query I rowsort
SELECT - 42 AS col1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT - 85 * - 26 + + MAX( + - 71 )
----
2139

skipif mysql # not compatible
query I rowsort label-3482
SELECT - 85 * - 26 + + MAX ( + - 71 )
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3483
SELECT - COUNT( ALL + 15 ) DIV - 68 * + 24 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3483
SELECT - COUNT ( ALL + 15 ) / - 68 * + 24 AS col2
----
0

query I rowsort
SELECT ALL + - 44
----
-44

query I rowsort
SELECT + ( 70 ) * + 71
----
4970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3486
SELECT ALL + COALESCE ( - + 94, 58 * 53 DIV - - 62 * - - 85 - - CASE + - 80 WHEN + COUNT( * ) * COALESCE ( + 55, + 1 * CAST( NULL AS SIGNED ) ) + 66 + 16 THEN NULL WHEN 15 THEN 42 END, COUNT( * ) * + CASE - 27 WHEN SUM( - 55 ) THEN NULL ELSE + 58 END, + 88 ) * 32 AS col1
----
-3008

skipif mysql # not compatible
query I rowsort label-3486
SELECT ALL + COALESCE ( - + 94, 58 * 53 / - - 62 * - - 85 - - CASE + - 80 WHEN + COUNT ( * ) * COALESCE ( + 55, + 1 * CAST ( NULL AS INTEGER ) ) + 66 + 16 THEN NULL WHEN 15 THEN 42 END, COUNT ( * ) * + CASE - 27 WHEN SUM ( - 55 ) THEN NULL ELSE + 58 END, + 88 ) * 32 AS col1
----
-3008

onlyif mysql # DIV for integer division: 
query I rowsort label-3487
SELECT ALL - 26 DIV + + 1 AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL - 26 / + + 1 AS col1
----
-26

query I rowsort
SELECT - 66 AS col2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT ALL - - COUNT( 4 ) * + 82
----
82

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL - - COUNT ( 4 ) * + 82
----
82

query I rowsort
SELECT DISTINCT 58 + - 68
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL COUNT( * ) * + 23
----
23

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL COUNT ( * ) * + 23
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3492
SELECT + COALESCE ( + - SUM( DISTINCT + + CASE 33 WHEN 15 THEN + - CAST( + 59 AS SIGNED ) * ( + ( - 5 ) ) ELSE - 9 * CASE 82 WHEN + 23 THEN NULL WHEN CAST( + 80 AS SIGNED ) - + ( + 88 ) * 35 THEN NULL WHEN 37 * 33 THEN 73 * 12 END END ), 91 * - 61 - 46 * - 38 ) DIV 61
----
-62

skipif mysql # not compatible
query I rowsort label-3492
SELECT + COALESCE ( + - SUM ( DISTINCT + + CASE 33 WHEN 15 THEN + - CAST ( + 59 AS INTEGER ) * ( + ( - 5 ) ) ELSE - 9 * CASE 82 WHEN + 23 THEN NULL WHEN CAST ( + 80 AS INTEGER ) - + ( + 88 ) * 35 THEN NULL WHEN 37 * 33 THEN 73 * 12 END END ), 91 * - 61 - 46 * - 38 ) / 61
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3493
SELECT - 28 DIV + 58
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT - 28 / + 58
----
0

query I rowsort
SELECT - ( - ( + 53 ) ) col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT ALL - 45 + ( - COALESCE ( - - COUNT( * ), - 16 + - 57 * 66 * + 84, NULLIF ( - 11, - - 97 ), - 17 - 37 * + NULLIF ( 42 * 83 + 58, 10 + MAX( ALL - 50 ) ) ) ) + 33
----
-13

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - 45 + ( - COALESCE ( - - COUNT ( * ), - 16 + - 57 * 66 * + 84, NULLIF ( - 11, - - 97 ), - 17 - 37 * + NULLIF ( 42 * 83 + 58, 10 + MAX ( ALL - 50 ) ) ) ) + 33
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3496
SELECT + CAST( 50 AS SIGNED ) - 39
----
11

skipif mysql # not compatible
query I rowsort label-3496
SELECT + CAST ( 50 AS INTEGER ) - 39
----
11

query I rowsort
SELECT - 92 + - 26
----
-118

query I rowsort
SELECT ALL 57 * - 69 col1
----
-3933

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT MIN( - 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT MIN ( - 78 )
----
-78

query I rowsort
SELECT DISTINCT - ( + 24 ) + + 19
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL CASE + 88 WHEN + 92 + ( + 87 ) * + COUNT( * ) THEN + 96 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL CASE + 88 WHEN + 92 + ( + 87 ) * + COUNT ( * ) THEN + 96 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 28 + - - 54
----
26

query I rowsort
SELECT - 45
----
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-3504
SELECT ALL - 82 * - CASE 13 WHEN - + COUNT( * ) / 75 THEN COUNT( * ) - - 3 ELSE NULL END / - 81 * + 92 AS col1, + ( - 82 ) AS col2
----
NULL
-82

skipif mysql # not compatible
query II rowsort label-3504
SELECT ALL - 82 * - CASE 13 WHEN - + COUNT ( * ) / 75 THEN COUNT ( * ) - - 3 ELSE NULL END / - 81 * + 92 AS col1, + ( - 82 ) AS col2
----
NULL
-82

query I rowsort
SELECT - 38 + + + 7 + 33
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3506
SELECT DISTINCT - COUNT( * ) + CAST( NULL AS SIGNED ) + + COUNT( * ) * COUNT( - + 48 ) * 37 * - 68 + + + 48 + - ( + 62 ) + 27
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT - COUNT ( * ) + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * COUNT ( - + 48 ) * 37 * - 68 + + + 48 + - ( + 62 ) + 27
----
NULL

query I rowsort
SELECT ALL ( - + 81 ) AS col2
----
-81

query I rowsort
SELECT - 14 + + 38
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3509
SELECT ALL + ( + 35 ) DIV 68 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + ( + 35 ) / 68 AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3510
SELECT - 2 DIV + 91 * - NULLIF ( + + ( - 49 ), COALESCE ( 47, 67 * + 68 * 9 * 22 * - ( - 89 ) ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3510
SELECT - 2 / + 91 * - NULLIF ( + + ( - 49 ), COALESCE ( 47, 67 * + 68 * 9 * 22 * - ( - 89 ) ) ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query III rowsort label-3511
SELECT - 14, + 44 AS col0, - 12 + + COUNT( * ) * + ( 94 ) AS col2
----
-14
44
82

skipif mysql # not compatible
query III rowsort label-3511
SELECT - 14, + 44 AS col0, - 12 + + COUNT ( * ) * + ( 94 ) AS col2
----
-14
44
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ( 29 ) * + COUNT( * ) + + 13 + 50 AS col0
----
92

skipif mysql # not compatible
query I rowsort label-3512
SELECT ( 29 ) * + COUNT ( * ) + + 13 + 50 AS col0
----
92

query I rowsort
SELECT ALL + + 37 * + 6 AS col2
----
222

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3514
SELECT ALL 4 DIV MAX( ALL 97 ) + + SUM( - 34 ) - 40
----
-74

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL 4 / MAX ( ALL 97 ) + + SUM ( - 34 ) - 40
----
-74

query I rowsort
SELECT ALL + - 26 AS col2
----
-26

query I rowsort
SELECT DISTINCT + + 62 * + ( + 53 ) + + + NULLIF ( + 34, ( ( + 97 ) ) + 59 ) AS col2
----
3320

query I rowsort
SELECT + + 4 * - 94 * - - 64
----
-24064

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL - 93 DIV 75
----
-1

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL - 93 / 75
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3519
SELECT CASE - 98 WHEN + ( - - ( 43 ) ) THEN - COUNT( + CAST( NULL AS SIGNED ) ) WHEN + 91 - CASE + + 76 WHEN + + COALESCE ( 40, ( - 78 ) ) THEN NULL ELSE - 45 END THEN 41 ELSE 70 END
----
70

skipif mysql # not compatible
query I rowsort label-3519
SELECT CASE - 98 WHEN + ( - - ( 43 ) ) THEN - COUNT ( + CAST ( NULL AS INTEGER ) ) WHEN + 91 - CASE + + 76 WHEN + + COALESCE ( 40, ( - 78 ) ) THEN NULL ELSE - 45 END THEN 41 ELSE 70 END
----
70

query I rowsort
SELECT - 71 - + 49 AS col0
----
-120

query II rowsort
SELECT DISTINCT + + 10 AS col2, - 74 AS col0
----
10
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT - 84 - - ( - + COUNT( * ) ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-3522
SELECT - 84 - - ( - + COUNT ( * ) ) AS col0
----
-85

query II rowsort
SELECT DISTINCT + 77, 56 AS col1
----
77
56

query II rowsort
SELECT DISTINCT + 64 col1, - NULLIF ( + 35, - ( 44 ) + - 52 ) - - - 13
----
64
-48

query I rowsort
SELECT DISTINCT + + 77
----
77

query I rowsort
SELECT ALL + + 51 AS col2
----
51

query I rowsort
SELECT + - ( - 76 )
----
76

query II rowsort
SELECT ALL + 26 AS col2, 88
----
26
88

query II rowsort
SELECT DISTINCT + 57 AS col0, - 85
----
57
-85

query II rowsort
SELECT ALL + 15 AS col0, 44
----
15
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT + + COUNT( * ) - - + 82
----
83

skipif mysql # not compatible
query I rowsort label-3531
SELECT + + COUNT ( * ) - - + 82
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT ALL + - 17, COUNT( * ) * - 6 * 37 AS col0
----
-17
-222

skipif mysql # not compatible
query II rowsort label-3532
SELECT ALL + - 17, COUNT ( * ) * - 6 * 37 AS col0
----
-17
-222

query I rowsort
SELECT DISTINCT - 47 * - + 29 AS col2
----
1363

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT + 87 * - - SUM( + - 7 ) AS col2
----
-609

skipif mysql # not compatible
query I rowsort label-3534
SELECT + 87 * - - SUM ( + - 7 ) AS col2
----
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT ALL COUNT( * ) + + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL COUNT ( * ) + + 76 AS col2
----
77

query II rowsort
SELECT ALL 69 + - - 41 AS col2, 15 - + - 60 AS col0
----
110
75

query I rowsort
SELECT 98 + + 2 + + 36 AS col1
----
136

query I rowsort
SELECT ( + 77 ) + 39 + 52 * 35
----
1936

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL MAX( DISTINCT + 78 ) + - - COUNT( * ) * + 2
----
80

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL MAX ( DISTINCT + 78 ) + - - COUNT ( * ) * + 2
----
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3540
SELECT ALL AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) + + + 14 + + - 3 * - - 6 * 80 + + + 28 / 92 * + 40 - - - 85 * SUM( 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL AVG ( DISTINCT - CAST ( NULL AS REAL ) ) + + + 14 + + - 3 * - - 6 * 80 + + + 28 / 92 * + 40 - - - 85 * SUM ( 91 )
----
NULL

query I rowsort
SELECT DISTINCT 68 + + + 78 AS col0
----
146

query I rowsort
SELECT ALL + 51 * - 44 AS col0
----
-2244

query II rowsort
SELECT ALL - 96 - 38, 35 AS col1
----
-134
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT 42 + + + COUNT( * ) * - 71
----
-29

skipif mysql # not compatible
query I rowsort label-3544
SELECT 42 + + + COUNT ( * ) * - 71
----
-29

query I rowsort
SELECT ALL 44 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT DISTINCT CAST( - - 33 AS SIGNED ) * ( + - 96 ) + - 85
----
-3253

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT CAST ( - - 33 AS INTEGER ) * ( + - 96 ) + - 85
----
-3253

query I rowsort
SELECT 23 * - ( 51 ) AS col0
----
-1173

query I rowsort
SELECT - 1 col1
----
-1

query I rowsort
SELECT ALL 2 col1
----
2

query I rowsort
SELECT 29 - - 5 AS col1
----
34

query I rowsort
SELECT 27 AS col0
----
27

query I rowsort
SELECT 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3553
SELECT DISTINCT + 79 - + + COUNT( * ) col0, 51 col0
----
78
51

skipif mysql # not compatible
query II rowsort label-3553
SELECT DISTINCT + 79 - + + COUNT ( * ) col0, 51 col0
----
78
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT CAST( + 34 AS SIGNED ) * - 19 col0
----
-646

skipif mysql # not compatible
query I rowsort label-3554
SELECT CAST ( + 34 AS INTEGER ) * - 19 col0
----
-646

query I rowsort
SELECT DISTINCT - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-3556
SELECT - COUNT( * ) - 45, MAX( 66 ) + COUNT( * ) AS col2
----
-46
67

skipif mysql # not compatible
query II rowsort label-3556
SELECT - COUNT ( * ) - 45, MAX ( 66 ) + COUNT ( * ) AS col2
----
-46
67

query I rowsort
SELECT ALL - - 76 AS col2
----
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3558
SELECT 51 * + CASE - 51 WHEN + 35 + - 5 THEN 18 * 31 - - + 41 - - + 79 WHEN + - 93 THEN NULL END * CASE 95 WHEN 49 * - 42 THEN - 46 WHEN 35 THEN COUNT( * ) - CAST( - CASE + 15 WHEN 57 * 68 THEN 94 WHEN ( 72 ) THEN NULL ELSE - ( - 37 ) END + + 48 * + 46 AS SIGNED ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT 51 * + CASE - 51 WHEN + 35 + - 5 THEN 18 * 31 - - + 41 - - + 79 WHEN + - 93 THEN NULL END * CASE 95 WHEN 49 * - 42 THEN - 46 WHEN 35 THEN COUNT ( * ) - CAST ( - CASE + 15 WHEN 57 * 68 THEN 94 WHEN ( 72 ) THEN NULL ELSE - ( - 37 ) END + + 48 * + 46 AS INTEGER ) END AS col0
----
NULL

query I rowsort
SELECT - 16 * 75
----
-1200

query I rowsort
SELECT + + 93 * + 66 - 70 + 49 AS col0
----
6117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3561
SELECT + COUNT( - 50 ) + - - 92 - + CAST( + 65 AS SIGNED ) * - 5 AS col1
----
418

skipif mysql # not compatible
query I rowsort label-3561
SELECT + COUNT ( - 50 ) + - - 92 - + CAST ( + 65 AS INTEGER ) * - 5 AS col1
----
418

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3562
SELECT ALL - + ( + COUNT( * ) ) AS col2, 27 + COUNT( * ) - - - 74 DIV + - 67
----
-1
29

skipif mysql # not compatible
query II rowsort label-3562
SELECT ALL - + ( + COUNT ( * ) ) AS col2, 27 + COUNT ( * ) - - - 74 / + - 67
----
-1
29

query I rowsort
SELECT - 13 * - 32 + + + 99
----
515

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL - COUNT( * ) + - 48 + 29
----
-20

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - COUNT ( * ) + - 48 + 29
----
-20

query I rowsort
SELECT DISTINCT - + 40
----
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3566
SELECT + COUNT( * ) DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3566
SELECT + COUNT ( * ) / 64 AS col1
----
0

query I rowsort
SELECT DISTINCT + - ( 0 ) + + 67
----
67

query I rowsort
SELECT ALL 62 + ( ( - 44 ) )
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT - 32 + - - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-3569
SELECT - 32 + - - COUNT ( * )
----
-31

query I rowsort
SELECT ALL + 35 + + 80
----
115

query I rowsort
SELECT DISTINCT - - 6 AS col0
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3572
SELECT - SUM( + 20 ) DIV - - 80 * 54 - - + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3572
SELECT - SUM ( + 20 ) / - - 80 * 54 - - + COUNT ( * )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3573
SELECT 89 + + CASE + - 41 WHEN 26 * + 27 THEN NULL WHEN - 37 * - ( + COALESCE ( - + CASE + 87 WHEN - 84 + CAST( COALESCE ( MAX( 95 ), - 67 * COUNT( * ) ) AS DECIMAL ) / + 99 THEN 82 + + 62 ELSE NULL END, 47 * 37 ) ) + - CAST( - 45 + - 39 * - 86 AS SIGNED ) THEN 60 + 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT 89 + + CASE + - 41 WHEN 26 * + 27 THEN NULL WHEN - 37 * - ( + COALESCE ( - + CASE + 87 WHEN - 84 + CAST ( COALESCE ( MAX ( 95 ), - 67 * COUNT ( * ) ) AS REAL ) / + 99 THEN 82 + + 62 ELSE NULL END, 47 * 37 ) ) + - CAST ( - 45 + - 39 * - 86 AS INTEGER ) THEN 60 + 95 END
----
NULL

query I rowsort
SELECT DISTINCT - + 24
----
-24

query I rowsort
SELECT + 66 col1
----
66

query I rowsort
SELECT DISTINCT NULLIF ( + + 12, + 67 ) + - ( - 91 )
----
103

query I rowsort
SELECT DISTINCT - ( 34 ) AS col2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT COUNT( * ) * 41 col1
----
41

skipif mysql # not compatible
query I rowsort label-3578
SELECT COUNT ( * ) * 41 col1
----
41

query I rowsort
SELECT DISTINCT - 91 AS col2
----
-91

query I rowsort
SELECT DISTINCT + COALESCE ( 57, - 54, + - 27 ) - - 96 col1
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT COUNT( * ) * 40
----
40

skipif mysql # not compatible
query I rowsort label-3581
SELECT COUNT ( * ) * 40
----
40

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3582
SELECT ALL CAST( NULL AS DECIMAL ) * 80
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL CAST ( NULL AS REAL ) * 80
----
NULL

query II rowsort
SELECT - 44, 5 AS col0
----
-44
5

query II rowsort
SELECT ALL 46 AS col2, + 52 col2
----
46
52

query I rowsort
SELECT 29 + + + 97
----
126

query I rowsort
SELECT ( 48 ) - - - CASE - 21 WHEN - 50 - + + ( COALESCE ( + 92, 78 - + 33 + + 72 / - 19 ) ) THEN NULL ELSE 62 END
----
-14

query I rowsort
SELECT 39 + 17 AS col0
----
56

query II rowsort
SELECT 69 AS col1, 92
----
69
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3589
SELECT ALL 54, - 55 + + - 52 + + MAX( - 52 ) AS col1
----
54
-159

skipif mysql # not compatible
query II rowsort label-3589
SELECT ALL 54, - 55 + + - 52 + + MAX ( - 52 ) AS col1
----
54
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3590
SELECT DISTINCT 8 DIV - 52 * ( - 89 ) * - 86 * - + SUM( ALL - - 36 ) + - + 35 AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-3590
SELECT DISTINCT 8 / - 52 * ( - 89 ) * - 86 * - + SUM ( ALL - - 36 ) + - + 35 AS col0
----
-35

query I rowsort
SELECT ALL 8 AS col2
----
8

query I rowsort
SELECT 58 * - 2
----
-116

query I rowsort
SELECT ALL - 20 * 60
----
-1200

onlyif mysql # DIV for integer division: 
query I rowsort label-3594
SELECT DISTINCT 55 DIV 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3594
SELECT DISTINCT 55 / 59 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3595
SELECT 17 + - - 72 * - - 26 * ( - COUNT( * ) )
----
-1855

skipif mysql # not compatible
query I rowsort label-3595
SELECT 17 + - - 72 * - - 26 * ( - COUNT ( * ) )
----
-1855

query I rowsort
SELECT - 91 - - ( 12 ) / CASE + 69 WHEN - 47 THEN 22 ELSE NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT - 30 DIV + 64 * + + 55
----
0

skipif mysql # not compatible
query I rowsort label-3597
SELECT - 30 / + 64 * + + 55
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT + COALESCE ( + 74, - + ( - 41 ) ) + + - ( - COUNT( * ) ) AS col1
----
75

skipif mysql # not compatible
query I rowsort label-3598
SELECT + COALESCE ( + 74, - + ( - 41 ) ) + + - ( - COUNT ( * ) ) AS col1
----
75

query I rowsort
SELECT ALL + 65 * + 97 + - - 28 + - + ( 21 ) * + + 98
----
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT - CAST( + + 75 AS SIGNED ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3600
SELECT - CAST ( + + 75 AS INTEGER ) AS col1
----
-75

query I rowsort
SELECT 66 * + 68
----
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT + 14 * + - COUNT( * ) + + + 69 * - 94 AS col2
----
-6500

skipif mysql # not compatible
query I rowsort label-3602
SELECT + 14 * + - COUNT ( * ) + + + 69 * - 94 AS col2
----
-6500

query II rowsort
SELECT DISTINCT 55 AS col2, 16 AS col0
----
55
16

query I rowsort
SELECT - - ( - 53 )
----
-53

query II rowsort
SELECT - + 43 AS col0, + 12
----
-43
12

query I rowsort
SELECT ALL - - 6 AS col0
----
6

query I rowsort
SELECT ALL 65 * - - 30 + - 24 + 26 * - - 82 * - 54
----
-113202

query II rowsort
SELECT - 0, CASE - 40 WHEN - + 9 THEN NULL ELSE 97 END + - 6 AS col2
----
0
91

query I rowsort
SELECT - 34 AS col1
----
-34

query I rowsort
SELECT ALL - 25 col1
----
-25

query I rowsort
SELECT + ( - 57 ) AS col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT DISTINCT - - 79 * - - ( + ( 92 ) ) + + - COUNT( + 28 ) + - + 37 * - + 85 * 25 + + 88 * + 57 * - 31 * - + 2 + 33
----
396917

skipif mysql # not compatible
query I rowsort label-3612
SELECT DISTINCT - - 79 * - - ( + ( 92 ) ) + + - COUNT ( + 28 ) + - + 37 * - + 85 * 25 + + 88 * + 57 * - 31 * - + 2 + 33
----
396917

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3613
SELECT ALL + + COALESCE ( + + 49, - COUNT( * ) * 76 ) * + 96 - 70 + + COUNT( * ) + - + 59, 70 + + 28 * + 18 DIV 9 + + 43 AS col2
----
4576
169

skipif mysql # not compatible
query II rowsort label-3613
SELECT ALL + + COALESCE ( + + 49, - COUNT ( * ) * 76 ) * + 96 - 70 + + COUNT ( * ) + - + 59, 70 + + 28 * + 18 / 9 + + 43 AS col2
----
4576
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3614
SELECT + CAST( + - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-3614
SELECT + CAST ( + - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - 52 * COUNT( * ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-3615
SELECT - 52 * COUNT ( * ) AS col1
----
-52

query I rowsort
SELECT DISTINCT - 68 * + 60
----
-4080

query I rowsort
SELECT DISTINCT + ( - + 5 )
----
-5

query I rowsort
SELECT DISTINCT + 94 AS col1
----
94

query I rowsort
SELECT - 21 - + - ( - 15 )
----
-36

query I rowsort
SELECT DISTINCT + 71 AS col0
----
71

query I rowsort
SELECT - 15 * + 46 * - 41 AS col2
----
28290

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT + MAX( ALL - 48 )
----
-48

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + MAX ( ALL - 48 )
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3623
SELECT - 62 + + COUNT( * ) DIV 99 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3623
SELECT - 62 + + COUNT ( * ) / 99 AS col0
----
-62

query I rowsort
SELECT DISTINCT COALESCE ( - 2, + 56 )
----
-2

query I rowsort
SELECT ALL COALESCE ( + 62, + 70 * + 52, 52 )
----
62

query I rowsort
SELECT ALL 2 * - 40 AS col1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT DISTINCT ( - MIN( DISTINCT + - 24 ) )
----
24

skipif mysql # not compatible
query I rowsort label-3627
SELECT DISTINCT ( - MIN ( DISTINCT + - 24 ) )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT 49 * + 42 + + + 58 + + ( - CASE WHEN NOT - 76 IS NULL THEN + 34 + 26 - + COUNT( * ) END ) + - 84 AS col0
----
1973

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT 49 * + 42 + + + 58 + + ( - CASE WHEN NOT - 76 IS NULL THEN + 34 + 26 - + COUNT ( * ) END ) + - 84 AS col0
----
1973

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT + CAST( 82 AS SIGNED )
----
82

skipif mysql # not compatible
query I rowsort label-3629
SELECT + CAST ( 82 AS INTEGER )
----
82

query II rowsort
SELECT + 37 + + + 95 AS col1, 65 AS col1
----
132
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT NULLIF ( - MIN( DISTINCT 72 ), 2 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-3631
SELECT NULLIF ( - MIN ( DISTINCT 72 ), 2 ) AS col2
----
-72

query I rowsort
SELECT + 51 + + + 1 col0
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT + 64 DIV - 2 + 87
----
55

skipif mysql # not compatible
query I rowsort label-3633
SELECT + 64 / - 2 + 87
----
55

query I rowsort
SELECT ALL 34 + - 87 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT ALL + 79 + + - COALESCE ( + 74, - SUM( - - 99 ), + 6 ) + - 21 + + 92 AS col2
----
76

skipif mysql # not compatible
query I rowsort label-3635
SELECT ALL + 79 + + - COALESCE ( + 74, - SUM ( - - 99 ), + 6 ) + - 21 + + 92 AS col2
----
76

query I rowsort
SELECT DISTINCT COALESCE ( 42, - + 84 )
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3637
SELECT ALL - ( + COUNT( * ) ) DIV - SUM( + 33 )
----
0

skipif mysql # not compatible
query I rowsort label-3637
SELECT ALL - ( + COUNT ( * ) ) / - SUM ( + 33 )
----
0

query I rowsort
SELECT + - 4 + - - 53
----
49

query I rowsort
SELECT + + ( - 41 )
----
-41

query I rowsort
SELECT + - 54 * - 88
----
4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3641
SELECT + MAX( + - 46 ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3641
SELECT + MAX ( + - 46 ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3642
SELECT - 33 * - 43 - - 10 + + 3 * - + COUNT( * ) DIV 22 * + - 48 * + CASE + 87 WHEN - SUM( DISTINCT + 11 ) THEN NULL ELSE 36 * - 4 + - 5 + 64 END * 19 AS col1
----
1429

skipif mysql # not compatible
query I rowsort label-3642
SELECT - 33 * - 43 - - 10 + + 3 * - + COUNT ( * ) / 22 * + - 48 * + CASE + 87 WHEN - SUM ( DISTINCT + 11 ) THEN NULL ELSE 36 * - 4 + - 5 + 64 END * 19 AS col1
----
1429

query I rowsort
SELECT ALL 11 * + 55 + - 64 col0
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT - + ( 55 ) * + 63 + NULLIF ( + 42, COALESCE ( + COUNT( * ), - 79 * 70 * - COUNT( * ) * ( + 55 ) + + 66, - 79 + - 59 * 47 ) * + 64 + 52 ) AS col1
----
-3423

skipif mysql # not compatible
query I rowsort label-3644
SELECT - + ( 55 ) * + 63 + NULLIF ( + 42, COALESCE ( + COUNT ( * ), - 79 * 70 * - COUNT ( * ) * ( + 55 ) + + 66, - 79 + - 59 * 47 ) * + 64 + 52 ) AS col1
----
-3423

query I rowsort
SELECT ALL - 86 * 42 - + - 99 + 91 AS col1
----
-3422

query I rowsort
SELECT ( + + 43 )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL + COUNT( + - 73 )
----
1

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL + COUNT ( + - 73 )
----
1

query I rowsort
SELECT ( + 11 )
----
11

query I rowsort
SELECT ( 64 )
----
64

query I rowsort
SELECT ALL + 87 col1
----
87

query I rowsort
SELECT + 86 * 77 AS col2
----
6622

query I rowsort
SELECT - 92 * - + 16
----
1472

query I rowsort
SELECT + 92 * + 53 + 84 AS col1
----
4960

query I rowsort
SELECT DISTINCT - 47 * - 36
----
1692

query I rowsort
SELECT ALL + ( - 67 )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT + COUNT( + 19 )
----
1

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + COUNT ( + 19 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3657
SELECT ALL COUNT( * ) DIV - - 81 * 59 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL COUNT ( * ) / - - 81 * 59 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - 56 * + - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-3658
SELECT - 56 * + - COUNT ( * )
----
56

query I rowsort
SELECT DISTINCT - 20 * - 7
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL + CASE + CAST( - - 61 AS SIGNED ) WHEN + + CAST( NULL AS SIGNED ) / + NULLIF ( - 55, + - AVG ( DISTINCT + 30 ) * - + 1 + - 61 ) + - - 48 + + 45 + - + 79 + + + ( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) THEN - 21 WHEN + 57 THEN - 40 + 68 / 66 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL + CASE + CAST ( - - 61 AS INTEGER ) WHEN + + CAST ( NULL AS INTEGER ) / + NULLIF ( - 55, + - AVG ( DISTINCT + 30 ) * - + 1 + - 61 ) + - - 48 + + 45 + - + 79 + + + ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) THEN - 21 WHEN + 57 THEN - 40 + 68 / 66 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT ALL CAST( + 91 AS SIGNED )
----
91

skipif mysql # not compatible
query I rowsort label-3662
SELECT ALL CAST ( + 91 AS INTEGER )
----
91

query I rowsort
SELECT - 52 AS col2
----
-52

query I rowsort
SELECT ALL + 29 * - - 14
----
406

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT - 20 DIV + - 77
----
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT - 20 / + - 77
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - COUNT( * ) + - 15
----
-16

skipif mysql # not compatible
query I rowsort label-3666
SELECT - COUNT ( * ) + - 15
----
-16

query I rowsort
SELECT DISTINCT 22 * - 13 * 13 + 5
----
-3713

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 93 * - 93 + COUNT( * )
----
-8648

skipif mysql # not compatible
query I rowsort label-3668
SELECT 93 * - 93 + COUNT ( * )
----
-8648

query I rowsort
SELECT ALL 29 * - 68 + - 75 * + - 18 AS col0
----
-622

query I rowsort
SELECT - 21 + 38 AS col1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT - COUNT( * ) - - 99 AS col1
----
98

skipif mysql # not compatible
query I rowsort label-3671
SELECT - COUNT ( * ) - - 99 AS col1
----
98

query I rowsort
SELECT - + 93 col0
----
-93

query I rowsort
SELECT ALL - 36 col2
----
-36

query I rowsort
SELECT - - 69 * - 35 + - - ( 0 ) AS col2
----
-2415

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3675
SELECT ALL - 63 + + 93 * - + 65 + + + COUNT( * ) + + 44 + 75 + - COUNT( 90 ) * 23 / + 61 - - - ( - AVG ( ALL + 6 ) ) * 79 * + - COUNT( * ) * CAST( NULL AS DECIMAL ) * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - 63 + + 93 * - + 65 + + + COUNT ( * ) + + 44 + 75 + - COUNT ( 90 ) * 23 / + 61 - - - ( - AVG ( ALL + 6 ) ) * 79 * + - COUNT ( * ) * CAST ( NULL AS REAL ) * 30
----
NULL

query I rowsort
SELECT ALL + 5 + 67
----
72

query II rowsort
SELECT DISTINCT ( + + 61 ) + - 5 col1, + 67
----
56
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3678
SELECT ALL + 83 + - 49 DIV + - 16 col1
----
86

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL + 83 + - 49 / + - 16 col1
----
86

query I rowsort
SELECT ALL - 24 * 35 * + 88 * 11 AS col1
----
-813120

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - COALESCE ( + 76, COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-3680
SELECT - COALESCE ( + 76, COUNT ( * ) )
----
-76

query I rowsort
SELECT + 71 + 67 AS col0
----
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3682
SELECT - - COALESCE ( - MIN( DISTINCT - 57 ), + ( + 9 ) * - 33 + + ( CAST( 84 AS SIGNED ) ) + 66 * + - ( - 28 ) DIV + 74 ) col0
----
57

skipif mysql # not compatible
query I rowsort label-3682
SELECT - - COALESCE ( - MIN ( DISTINCT - 57 ), + ( + 9 ) * - 33 + + ( CAST ( 84 AS INTEGER ) ) + 66 * + - ( - 28 ) / + 74 ) col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT ALL CASE + 84 WHEN - 66 THEN - MAX( ALL - 82 ) * 61 + + ( - 9 ) - + + 36 ELSE + 22 END
----
22

skipif mysql # not compatible
query I rowsort label-3683
SELECT ALL CASE + 84 WHEN - 66 THEN - MAX ( ALL - 82 ) * 61 + + ( - 9 ) - + + 36 ELSE + 22 END
----
22

query I rowsort
SELECT ALL + COALESCE ( + 84, 13 * 37, + ( 20 ) * + + ( 97 ) - - 59, - + 57 * + - ( + 22 ) ) + 74
----
158

query II rowsort
SELECT + 35 AS col0, + NULLIF ( + 93, 88 ) AS col1
----
35
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3686
SELECT 95 + + 31 + + - CAST( NULL AS DECIMAL ) * - CAST( NULL AS DECIMAL ) * 73 * + - 88 + - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT 95 + + 31 + + - CAST ( NULL AS REAL ) * - CAST ( NULL AS REAL ) * 73 * + - 88 + - 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3687
SELECT ALL 68 + CAST( NULL AS SIGNED ) - + 72 - + MIN( 1 ) + + 72 * + - 55 * + - 0 * + 80 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL 68 + CAST ( NULL AS INTEGER ) - + 72 - + MIN ( 1 ) + + 72 * + - 55 * + - 0 * + 80 AS col2
----
NULL

query I rowsort
SELECT - + 28 AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT + 21 + - + 71 * + COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-3689
SELECT + 21 + - + 71 * + COUNT ( * )
----
-50

query I rowsort
SELECT 87 * - 50 AS col1
----
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-3691
SELECT ALL 58, - 56 * + COUNT( * ) AS col1
----
58
-56

skipif mysql # not compatible
query II rowsort label-3691
SELECT ALL 58, - 56 * + COUNT ( * ) AS col1
----
58
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT ALL + - COUNT( * ) - - 97 - + 3
----
93

skipif mysql # not compatible
query I rowsort label-3692
SELECT ALL + - COUNT ( * ) - - 97 - + 3
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3693
SELECT DISTINCT 13 DIV + - 92
----
0

skipif mysql # not compatible
query I rowsort label-3693
SELECT DISTINCT 13 / + - 92
----
0

query I rowsort
SELECT ALL - 6 - 28 col1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3695
SELECT DISTINCT + 48 DIV - MIN( - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT + 48 / - MIN ( - 86 )
----
0

query II rowsort
SELECT ALL - 72 AS col0, 8 * 14
----
-72
112

query I rowsort
SELECT 13 * - 99
----
-1287

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT COUNT( * ) * - - 44 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-3698
SELECT COUNT ( * ) * - - 44 AS col2
----
44

query I rowsort
SELECT ALL ( + 36 ) * + - 89 AS col2
----
-3204

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3700
SELECT CAST( 96 AS SIGNED ) DIV + 78 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3700
SELECT CAST ( 96 AS INTEGER ) / + 78 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL 74 * + MAX( ALL - + 41 )
----
-3034

skipif mysql # not compatible
query I rowsort label-3701
SELECT ALL 74 * + MAX ( ALL - + 41 )
----
-3034

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT DISTINCT COUNT( * ) * - 61 * + 76 AS col2
----
-4636

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT COUNT ( * ) * - 61 * + 76 AS col2
----
-4636

query II rowsort
SELECT ALL - 22, + ( - 92 ) AS col1
----
-22
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3704
SELECT DISTINCT - COALESCE ( + NULLIF ( CASE COUNT( * ) WHEN - CAST( NULL AS SIGNED ) - 60 THEN COUNT( * ) + + 40 WHEN - 18 + 21 THEN - 65 * 67 * 51 + - 71 END, + - COUNT( * ) ), - 41 + - 75, COALESCE ( - 57, - 25 ) * COUNT( + 95 * - 44 ), + COUNT( * ) DIV 65 ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT - COALESCE ( + NULLIF ( CASE COUNT ( * ) WHEN - CAST ( NULL AS INTEGER ) - 60 THEN COUNT ( * ) + + 40 WHEN - 18 + 21 THEN - 65 * 67 * 51 + - 71 END, + - COUNT ( * ) ), - 41 + - 75, COALESCE ( - 57, - 25 ) * COUNT ( + 95 * - 44 ), + COUNT ( * ) / 65 ) AS col0
----
116

query I rowsort
SELECT + ( + - 99 ) * - 39 * - 33 + 29 + + - 78 * - 76 * - + 32 * + + 89 - - ( 63 )
----
-17010265

query I rowsort
SELECT ALL - 12 AS col0
----
-12

query II rowsort
SELECT + 52, 53 AS col0
----
52
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT 83 * + COUNT( * ) col2
----
83

skipif mysql # not compatible
query I rowsort label-3708
SELECT 83 * + COUNT ( * ) col2
----
83

query I rowsort
SELECT ALL - 71 + - 26
----
-97

query I rowsort
SELECT + 7 col1
----
7

query I rowsort
SELECT ALL - 62 + - 9 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-3712
SELECT ( - 61 ) + + ( + 91 ) + + + COUNT ( * )
----
31

query II rowsort
SELECT 28 AS col1, + 26 AS col1
----
28
26

query I rowsort
SELECT ALL + - 50 * 13 * + 28
----
-18200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3715
SELECT + COUNT( * ) DIV - - 10 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3715
SELECT + COUNT ( * ) / - - 10 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3716
SELECT ALL - ( - MIN( ALL + - 81 ) ) + + 90 AS col2, - CAST( - + 28 AS SIGNED ) DIV - 73 AS col1
----
9
0

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL - ( - MIN ( ALL + - 81 ) ) + + 90 AS col2, - CAST ( - + 28 AS INTEGER ) / - 73 AS col1
----
9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT - MIN( + + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-3717
SELECT - MIN ( + + 82 ) AS col1
----
-82

query I rowsort
SELECT ALL + + 58 * - 10 * + 87
----
-50460

query I rowsort
SELECT DISTINCT - - 96 + - + NULLIF ( + 70, + 65 * + 62 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ( - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-3720
SELECT ( - + COUNT ( * ) ) AS col1
----
-1

query II rowsort
SELECT ALL - + 46 - + + 96 AS col2, - 96
----
-142
-96

query I rowsort
SELECT 20 * + ( 37 ) + + 71 + 27 AS col1
----
838

query II rowsort
SELECT - + 64 col1, + 32 AS col2
----
-64
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT 51 + - + COUNT( * ) + + ( 42 )
----
92

skipif mysql # not compatible
query I rowsort label-3724
SELECT 51 + - + COUNT ( * ) + + ( 42 )
----
92

query I rowsort
SELECT + 41 AS col2
----
41

query II rowsort
SELECT - - 10 AS col1, - 54 * ( + + 71 ) + - 90
----
10
-3924

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3727
SELECT + CAST( NULL AS DECIMAL ) + + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + CAST ( NULL AS REAL ) + + - 15
----
NULL

query I rowsort
SELECT ALL + 10 - - - 95 + 66 AS col0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT ALL CAST( NULL AS SIGNED ) * + AVG ( ALL + 71 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL CAST ( NULL AS INTEGER ) * + AVG ( ALL + 71 ) AS col0
----
NULL

query I rowsort
SELECT 20 - + + 48 AS col1
----
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT ALL 37 AS col2, COUNT( ALL + 44 )
----
37
1

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL 37 AS col2, COUNT ( ALL + 44 )
----
37
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT + MIN( + - 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + MIN ( + - 46 ) AS col2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3733
SELECT CAST( - + 69 AS SIGNED ) * + 24
----
-1656

skipif mysql # not compatible
query I rowsort label-3733
SELECT CAST ( - + 69 AS INTEGER ) * + 24
----
-1656

query II rowsort
SELECT - - 69, - 26 AS col2
----
69
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT 12 + 14 DIV + + 94 + + + 84 + + + 64 * COUNT( * )
----
160

skipif mysql # not compatible
query I rowsort label-3735
SELECT 12 + 14 / + + 94 + + + 84 + + + 64 * COUNT ( * )
----
160

query I rowsort
SELECT 13 * NULLIF ( - 15, + - 55 )
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT COUNT( * ) * - COUNT( * ) + - 15 + - 12
----
-28

skipif mysql # not compatible
query I rowsort label-3737
SELECT COUNT ( * ) * - COUNT ( * ) + - 15 + - 12
----
-28

query I rowsort
SELECT DISTINCT - 94 col0
----
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-3739
SELECT 32 + - SUM( 80 ) + NULLIF ( + - 21, COUNT( * ) * - 54 ) AS col0, + ( + 39 )
----
-69
39

skipif mysql # not compatible
query II rowsort label-3739
SELECT 32 + - SUM ( 80 ) + NULLIF ( + - 21, COUNT ( * ) * - 54 ) AS col0, + ( + 39 )
----
-69
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + CASE + 75 WHEN - - COUNT( * ) + - - COUNT( * ) THEN 98 + 27 / - 93 WHEN - 95 THEN + NULLIF ( + + COALESCE ( - 83, + - 34 ), + 67 + - 68 ) END * + 1 * - - NULLIF ( + 78, - 57 ) - - 40 * ( + 27 / - 12 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT + CASE + 75 WHEN - - COUNT ( * ) + - - COUNT ( * ) THEN 98 + 27 / - 93 WHEN - 95 THEN + NULLIF ( + + COALESCE ( - 83, + - 34 ), + 67 + - 68 ) END * + 1 * - - NULLIF ( + 78, - 57 ) - - 40 * ( + 27 / - 12 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 13 AS col0
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3742
SELECT MAX( - 11 ) AS col2, CAST( + NULLIF ( + ( - + 23 ), 20 ) AS SIGNED ) * - COUNT( - + 24 ) AS col2
----
-11
23

skipif mysql # not compatible
query II rowsort label-3742
SELECT MAX ( - 11 ) AS col2, CAST ( + NULLIF ( + ( - + 23 ), 20 ) AS INTEGER ) * - COUNT ( - + 24 ) AS col2
----
-11
23

query I rowsort
SELECT + 84 * - 65 + - 6
----
-5466

onlyif mysql # DIV for integer division: 
query I rowsort label-3744
SELECT ALL 27 DIV - 71 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT ALL 27 / - 71 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT 44 + - 92 + - CAST( ( CASE + 0 WHEN + + COUNT( * ) * - 96 / 92 / + - 47 * + CAST( NULL AS SIGNED ) + + 60 THEN - + 36 * + - CASE 20 WHEN + - ( + - ( ( - 16 ) ) ) + - 42 THEN 73 * SUM( 88 / 91 ) WHEN 77 THEN + 85 ELSE COUNT( * ) * - 67 + 28 END ELSE 92 + + 31 * COUNT( * ) END ) AS SIGNED ) + 97 * 49
----
4582

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT 44 + - 92 + - CAST ( ( CASE + 0 WHEN + + COUNT ( * ) * - 96 / 92 / + - 47 * + CAST ( NULL AS INTEGER ) + + 60 THEN - + 36 * + - CASE 20 WHEN + - ( + - ( ( - 16 ) ) ) + - 42 THEN 73 * SUM ( 88 / 91 ) WHEN 77 THEN + 85 ELSE COUNT ( * ) * - 67 + 28 END ELSE 92 + + 31 * COUNT ( * ) END ) AS INTEGER ) + 97 * 49
----
4582

query I rowsort
SELECT DISTINCT 56 + 49 - - ( - - 39 ) AS col0
----
144

query I rowsort
SELECT ALL 91 + + 15 - 71 col0
----
35

query I rowsort
SELECT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT MIN( DISTINCT - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3749
SELECT MIN ( DISTINCT - 43 ) col1
----
-43

query I rowsort
SELECT ALL - 28 AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3751
SELECT ALL - 3 DIV - COUNT( * ) col0
----
3

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL - 3 / - COUNT ( * ) col0
----
3

query I rowsort
SELECT ALL 87 * 17 AS col2
----
1479

query I rowsort
SELECT ALL 61 + + 5 AS col1
----
66

query I rowsort
SELECT DISTINCT - + 65
----
-65

query I rowsort
SELECT ALL 46 AS col0
----
46

query I rowsort
SELECT - + 14 * + 94 + + 21 AS col0
----
-1295

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT - 80 - - 32 + 96 * - COUNT( * )
----
-144

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - 80 - - 32 + 96 * - COUNT ( * )
----
-144

query I rowsort
SELECT + 47 AS col1
----
47

query I rowsort
SELECT - + 11 + 10
----
-1

query I rowsort
SELECT + + 42 * - 50 * + 43 * 94 AS col2
----
-8488200

query II rowsort
SELECT - - ( + 67 ) * - 83 * + ( - 91 ) AS col0, + 0 + 7 col2
----
506051
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3762
SELECT ALL - 31 DIV 78 * - + MIN( + 67 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3762
SELECT ALL - 31 / 78 * - + MIN ( + 67 ) col0
----
0

query I rowsort
SELECT DISTINCT + + ( - 62 ) * 66 col0
----
-4092

onlyif mysql # DIV for integer division: 
query II rowsort label-3764
SELECT ALL + 81 * - - 43 col0, + 97 DIV + + 27
----
3483
3

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL + 81 * - - 43 col0, + 97 / + + 27
----
3483
3

onlyif mysql # aggregate syntax: 
query III rowsort label-3765
SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT( * ) AS col2
----
-1602
81
-11

skipif mysql # not compatible
query III rowsort label-3765
SELECT - 47 * - - 34 - 4 AS col2, + 15 + + 66 AS col1, - + 12 + + + COUNT ( * ) AS col2
----
-1602
81
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3766
SELECT ALL 16 DIV - + NULLIF ( 50, 69 DIV COALESCE ( 69, + 10 ) + - CAST( NULL AS SIGNED ) - - - 48 * + - 41 * 20 * 90 DIV NULLIF ( + 75, + 41 ) * - 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL 16 / - + NULLIF ( 50, 69 / COALESCE ( 69, + 10 ) + - CAST ( NULL AS INTEGER ) - - - 48 * + - 41 * 20 * 90 / NULLIF ( + 75, + 41 ) * - 85 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3767
SELECT DISTINCT - ( - COUNT( * ) ), CAST( NULL AS SIGNED ) AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3767
SELECT DISTINCT - ( - COUNT ( * ) ), CAST ( NULL AS INTEGER ) AS col1
----
1
NULL

query I rowsort
SELECT DISTINCT 34 * - 62 * - COALESCE ( + 50, - 83 ) + - + 35
----
105365

query II rowsort
SELECT 0 AS col0, 62 col0
----
0
62

onlyif mysql # aggregate syntax: 
query II rowsort label-3770
SELECT - 13, SUM( DISTINCT 34 ) * + 74 * 98 AS col2
----
-13
246568

skipif mysql # not compatible
query II rowsort label-3770
SELECT - 13, SUM ( DISTINCT 34 ) * + 74 * 98 AS col2
----
-13
246568

query I rowsort
SELECT - 63 * + + 43 AS col1
----
-2709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT DISTINCT - 88 + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT - 88 + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 74, - 17 col1
----
74
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT DISTINCT + SUM( DISTINCT + 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-3774
SELECT DISTINCT + SUM ( DISTINCT + 7 ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL - 0 * - - MAX( ALL - 99 ) + - 33 AS col1
----
-33

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL - 0 * - - MAX ( ALL - 99 ) + - 33 AS col1
----
-33

query I rowsort
SELECT ( + 3 ) AS col2
----
3

query I rowsort
SELECT ( + - 22 )
----
-22

query I rowsort
SELECT ALL + ( + - 13 ) AS col2
----
-13

query I rowsort
SELECT - 79 + 44 AS col0
----
-35

query II rowsort
SELECT + 39, ( + 88 ) AS col2
----
39
88

query I rowsort
SELECT ( + 29 )
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3782
SELECT + CAST( + 19 AS SIGNED ) * - 82 + - 68 + + COUNT( * ) * + ( - + ( 37 ) ) AS col2, 22 AS col0
----
-1663
22

skipif mysql # not compatible
query II rowsort label-3782
SELECT + CAST ( + 19 AS INTEGER ) * - 82 + - 68 + + COUNT ( * ) * + ( - + ( 37 ) ) AS col2, 22 AS col0
----
-1663
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3783
SELECT ALL + 98 * - CAST( + - 18 AS SIGNED ) AS col0, - 63 AS col1
----
1764
-63

skipif mysql # not compatible
query II rowsort label-3783
SELECT ALL + 98 * - CAST ( + - 18 AS INTEGER ) AS col0, - 63 AS col1
----
1764
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT ALL 85 * ( 94 ) DIV 93 + 62
----
147

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL 85 * ( 94 ) / 93 + 62
----
147

query I rowsort
SELECT DISTINCT - 16 * + 29
----
-464

query I rowsort
SELECT DISTINCT + 50 AS col1
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-3787
SELECT ALL 22 * + - 98 - + - COUNT( * ) col1, COUNT( * ) - + 4 AS col0
----
-2155
-3

skipif mysql # not compatible
query II rowsort label-3787
SELECT ALL 22 * + - 98 - + - COUNT ( * ) col1, COUNT ( * ) - + 4 AS col0
----
-2155
-3

query I rowsort
SELECT ALL + + 54 AS col1
----
54

query I rowsort
SELECT + - 32 - + 58
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3790
SELECT ALL + + 98, - NULLIF ( - - 87, - COUNT( * ) + COALESCE ( - ( 4 ), - 85 + + - 89, - MAX( ALL - - ( 81 ) ) ) * + + COALESCE ( + CAST( NULL AS SIGNED ), - - 61 * + + CAST( NULL AS SIGNED ), - - 37 * + 42 + 71 ) + CASE + SUM( - 4 ) + ( 14 + + 67 * 60 ) * 17 WHEN 24 THEN NULL WHEN ( 87 ) THEN - MIN( ALL 60 ) END ) * - 57 col1
----
98
4959

skipif mysql # not compatible
query II rowsort label-3790
SELECT ALL + + 98, - NULLIF ( - - 87, - COUNT ( * ) + COALESCE ( - ( 4 ), - 85 + + - 89, - MAX ( ALL - - ( 81 ) ) ) * + + COALESCE ( + CAST ( NULL AS INTEGER ), - - 61 * + + CAST ( NULL AS INTEGER ), - - 37 * + 42 + 71 ) + CASE + SUM ( - 4 ) + ( 14 + + 67 * 60 ) * 17 WHEN 24 THEN NULL WHEN ( 87 ) THEN - MIN ( ALL 60 ) END ) * - 57 col1
----
98
4959

query I rowsort
SELECT - + 21 * - 92 AS col2
----
1932

onlyif mysql # aggregate syntax: 
query II rowsort label-3792
SELECT 91 AS col0, - COALESCE ( - MAX( ALL - - 18 ), - COALESCE ( 24, 41 * + - 24 * 53 + 85 ) + - - 10 ) * 52 * 39 + - COUNT( * )
----
91
36503

skipif mysql # not compatible
query II rowsort label-3792
SELECT 91 AS col0, - COALESCE ( - MAX ( ALL - - 18 ), - COALESCE ( 24, 41 * + - 24 * 53 + 85 ) + - - 10 ) * 52 * 39 + - COUNT ( * )
----
91
36503

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3793
SELECT - - 24 * + + 66 + + + SUM( DISTINCT + 2 ) * + 30 - - + 58 * + + 7 + ( + - CAST( + 41 AS SIGNED ) )
----
2009

skipif mysql # not compatible
query I rowsort label-3793
SELECT - - 24 * + + 66 + + + SUM ( DISTINCT + 2 ) * + 30 - - + 58 * + + 7 + ( + - CAST ( + 41 AS INTEGER ) )
----
2009

query I rowsort
SELECT + + 57 AS col0
----
57

query II rowsort
SELECT + - 1 AS col1, 40
----
-1
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3796
SELECT - + 71 DIV 42 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3796
SELECT - + 71 / 42 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + SUM( ALL + 54 ) * + - 69
----
-3726

skipif mysql # not compatible
query I rowsort label-3797
SELECT + SUM ( ALL + 54 ) * + - 69
----
-3726

query I rowsort
SELECT ALL ( - 49 ) * + 23 AS col1
----
-1127

query I rowsort
SELECT ALL + 2 * + 5
----
10

query II rowsort
SELECT + - 96 + - 75 + - 87 AS col1, - 70
----
-258
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT + 33 * + - 97 + + ( - COUNT( * ) ) - - - 8
----
-3210

skipif mysql # not compatible
query I rowsort label-3801
SELECT + 33 * + - 97 + + ( - COUNT ( * ) ) - - - 8
----
-3210

query I rowsort
SELECT ALL 76 AS col0
----
76

query I rowsort
SELECT ALL 5 * - 8
----
-40

query I rowsort
SELECT + 44 * 91
----
4004

query II rowsort
SELECT ALL 60 AS col0, 34 col1
----
60
34

query I rowsort
SELECT DISTINCT + 8 * + 98 AS col1
----
784

query I rowsort
SELECT ALL - ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + + 69 * - 1 * - 89 * - CASE 13 WHEN - COUNT( * ) THEN NULL WHEN 1 THEN - COUNT( * ) * - + AVG ( - + 95 ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT + + 69 * - 1 * - 89 * - CASE 13 WHEN - COUNT ( * ) THEN NULL WHEN 1 THEN - COUNT ( * ) * - + AVG ( - + 95 ) ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT ALL MIN( - 5 ) + + 95, 10 + + - MAX( ALL + + 81 ) AS col2
----
90
-71

skipif mysql # not compatible
query II rowsort label-3809
SELECT ALL MIN ( - 5 ) + + 95, 10 + + - MAX ( ALL + + 81 ) AS col2
----
90
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT + CAST( NULL AS SIGNED ) + - - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-3810
SELECT + CAST ( NULL AS INTEGER ) + - - 65
----
NULL

query II rowsort
SELECT - - 42 AS col0, 97 + + 77
----
42
174

query I rowsort
SELECT + 33 + + 20 + - - 31
----
84

query I rowsort
SELECT ALL - 1 + + 97
----
96

query I rowsort
SELECT DISTINCT - 92 + + ( - 11 ) * - 2 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-3815
SELECT DISTINCT 80 + + + 2, COUNT( * ) AS col1
----
82
1

skipif mysql # not compatible
query II rowsort label-3815
SELECT DISTINCT 80 + + + 2, COUNT ( * ) AS col1
----
82
1

query I rowsort
SELECT DISTINCT ( 54 ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3817
SELECT ALL - 74 + - 46, 60 * - MIN( 64 ) AS col2
----
-120
-3840

skipif mysql # not compatible
query II rowsort label-3817
SELECT ALL - 74 + - 46, 60 * - MIN ( 64 ) AS col2
----
-120
-3840

query I rowsort
SELECT - 9 + 7 - - + 57 - 93 * + 55
----
-5060

query I rowsort
SELECT ALL 15 * 29 AS col2
----
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3820
SELECT - CAST( - 20 AS SIGNED )
----
20

skipif mysql # not compatible
query I rowsort label-3820
SELECT - CAST ( - 20 AS INTEGER )
----
20

query I rowsort
SELECT - ( + + 68 ) + + - 78
----
-146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT + CAST( 78 AS SIGNED )
----
78

skipif mysql # not compatible
query I rowsort label-3822
SELECT + CAST ( 78 AS INTEGER )
----
78

query I rowsort
SELECT DISTINCT + NULLIF ( + 41, 94 )
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3824
SELECT ALL NULLIF ( + ( + 46 ), + COUNT( * ) ) DIV - 62 + COUNT( * ) + - + 50 AS col0, MAX( DISTINCT - + ( + 12 ) ) + - 58 AS col1
----
-49
-70

skipif mysql # not compatible
query II rowsort label-3824
SELECT ALL NULLIF ( + ( + 46 ), + COUNT ( * ) ) / - 62 + COUNT ( * ) + - + 50 AS col0, MAX ( DISTINCT - + ( + 12 ) ) + - 58 AS col1
----
-49
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + COUNT( 26 )
----
1

skipif mysql # not compatible
query I rowsort label-3825
SELECT + COUNT ( 26 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3826
SELECT ALL + ( + + CAST( + - COUNT( * ) AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-3826
SELECT ALL + ( + + CAST ( + - COUNT ( * ) AS INTEGER ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT - ( - + COUNT( + + 59 ) ) + - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-3827
SELECT - ( - + COUNT ( + + 59 ) ) + - COUNT ( * ) col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3828
SELECT ALL 56 DIV + COUNT( * ) - - - 76 * + 24 AS col0
----
-1768

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL 56 / + COUNT ( * ) - - - 76 * + 24 AS col0
----
-1768

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT - COUNT( * ) * MIN( ALL + 95 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-3829
SELECT - COUNT ( * ) * MIN ( ALL + 95 ) AS col1
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3830
SELECT DISTINCT COUNT( * ) DIV - 40 - + 21
----
-21

skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT COUNT ( * ) / - 40 - + 21
----
-21

query I rowsort
SELECT 95 col0
----
95

query I rowsort
SELECT DISTINCT - 40 col0
----
-40

query I rowsort
SELECT + - 95 col0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT COUNT( * ) + + - 55 + + 80 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-3834
SELECT COUNT ( * ) + + - 55 + + 80 AS col1
----
26

query I rowsort
SELECT 69 * - 93 + - 19 * + 77 * + 38 * - + 25
----
1383433

query I rowsort
SELECT ALL - 31 * + 96 AS col0
----
-2976

query I rowsort
SELECT 24 AS col0
----
24

query I rowsort
SELECT DISTINCT - 77 AS col1
----
-77

query I rowsort
SELECT ALL - + 46
----
-46

query I rowsort
SELECT DISTINCT - 67 AS col2
----
-67

query I rowsort
SELECT DISTINCT - - ( + 90 )
----
90

query I rowsort
SELECT - 38 + - 36 col2
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3843
SELECT - - MIN( DISTINCT 97 ) AS col0, 49
----
97
49

skipif mysql # not compatible
query II rowsort label-3843
SELECT - - MIN ( DISTINCT 97 ) AS col0, 49
----
97
49

query I rowsort
SELECT DISTINCT - - 22 + - 28 * - + 76 AS col0
----
2150

query I rowsort
SELECT - + 21 col0
----
-21

query I rowsort
SELECT 64 + 2 * - + 68
----
-72

query I rowsort
SELECT ALL 34 + - + 9 * 24 - + 18 + + 3 + - 33 AS col1
----
-230

query I rowsort
SELECT - - 97
----
97

query I rowsort
SELECT - 22 - - 82
----
60

query I rowsort
SELECT ALL 62 * + 52 - 27 AS col1
----
3197

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3851
SELECT COUNT( * ) DIV 96 * 78
----
0

skipif mysql # not compatible
query I rowsort label-3851
SELECT COUNT ( * ) / 96 * 78
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3852
SELECT ALL + + 80 + COUNT( * ) DIV - 43
----
80

skipif mysql # not compatible
query I rowsort label-3852
SELECT ALL + + 80 + COUNT ( * ) / - 43
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ALL 28 + COUNT( * ) + + + MIN( DISTINCT + 95 )
----
124

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL 28 + COUNT ( * ) + + + MIN ( DISTINCT + 95 )
----
124

query I rowsort
SELECT DISTINCT 39 * 50
----
1950

query I rowsort
SELECT ALL 4 + + 79 * + - 71 * + 34 + 43
----
-190659

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT CASE + - 57 WHEN - 44 THEN COALESCE ( - COUNT( * ), + - COUNT( * ) + - COUNT( * ) - 88 * - + CASE - + 82 WHEN + - 48 + + + 82 THEN NULL ELSE - COUNT( * ) * + 5 END ) WHEN 17 * + + SUM( ALL + 55 ) * + SUM( ALL + 79 ) + 82 THEN NULL END + 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3856
SELECT CASE + - 57 WHEN - 44 THEN COALESCE ( - COUNT ( * ), + - COUNT ( * ) + - COUNT ( * ) - 88 * - + CASE - + 82 WHEN + - 48 + + + 82 THEN NULL ELSE - COUNT ( * ) * + 5 END ) WHEN 17 * + + SUM ( ALL + 55 ) * + SUM ( ALL + 79 ) + 82 THEN NULL END + 44
----
NULL

query I rowsort
SELECT DISTINCT 74
----
74

query I rowsort
SELECT 57 AS col0
----
57

query I rowsort
SELECT 92 col2
----
92

query I rowsort
SELECT ALL 68 + - + 81
----
-13

query I rowsort
SELECT 61 * 88 AS col2
----
5368

query I rowsort
SELECT ALL 62 * + - 45 AS col1
----
-2790

query II rowsort
SELECT DISTINCT 39, - 88 AS col0
----
39
-88

query I rowsort
SELECT ALL 32 - - 39 AS col2
----
71

query I rowsort
SELECT ALL - 44 * + - 92 AS col0
----
4048

query I rowsort
SELECT ALL 26 * - 2 AS col1
----
-52

query I rowsort
SELECT + 3 AS col1
----
3

query II rowsort
SELECT + 56, 16 AS col2
----
56
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT 18 * + - COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-3869
SELECT 18 * + - COUNT ( * )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT DISTINCT - COUNT( + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT - COUNT ( + 13 )
----
-1

query I rowsort
SELECT ALL - - CASE + 41 WHEN + + COALESCE ( - + ( - 77 ), - - 64 ) THEN 60 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 61 AS col1
----
-61

query I rowsort
SELECT ALL - + ( + 67 )
----
-67

query I rowsort
SELECT DISTINCT - 52 + + 51
----
-1

query I rowsort
SELECT ALL - + 43 AS col2
----
-43

query I rowsort
SELECT 43 * - + 25
----
-1075

onlyif mysql # aggregate syntax: 
query I rowsort label-3877
SELECT - COUNT( * ) * - + 32 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-3877
SELECT - COUNT ( * ) * - + 32 AS col2
----
32

query I rowsort
SELECT DISTINCT - 91 + + 77 AS col0
----
-14

query I rowsort
SELECT ALL + + 32 + + 77
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT ALL - 58 + + 33 + - 38 - - - SUM( 52 ) + 60 * - - 66 - + 38 * + COUNT( * ) AS col1
----
3807

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL - 58 + + 33 + - 38 - - - SUM ( 52 ) + 60 * - - 66 - + 38 * + COUNT ( * ) AS col1
----
3807

query I rowsort
SELECT DISTINCT - - 28
----
28

query II rowsort
SELECT DISTINCT + COALESCE ( 21, + 70 ) + + 49 * 82 AS col1, 70
----
4039
70

query I rowsort
SELECT ALL + ( + 44 ) + - - 53 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT ALL SUM( + - ( - 16 ) ) + + 14 AS col0
----
30

skipif mysql # not compatible
query I rowsort label-3884
SELECT ALL SUM ( + - ( - 16 ) ) + + 14 AS col0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3885
SELECT ALL + COALESCE ( + 90, - - 56 + - 24 + - 93 + COUNT( ALL + 27 ) ) + - 48 + + 89 + - 98 DIV ( - - 33 ) * + - 27 * - 52 AS col2
----
-2677

skipif mysql # not compatible
query I rowsort label-3885
SELECT ALL + COALESCE ( + 90, - - 56 + - 24 + - 93 + COUNT ( ALL + 27 ) ) + - 48 + + 89 + - 98 / ( - - 33 ) * + - 27 * - 52 AS col2
----
-2677

query I rowsort
SELECT 42 + + 48 * - 45
----
-2118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3887
SELECT 53 col0, - 60 DIV - + COUNT( * )
----
53
60

skipif mysql # not compatible
query II rowsort label-3887
SELECT 53 col0, - 60 / - + COUNT ( * )
----
53
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3888
SELECT ALL + 75 - - ( MIN( + 64 ) ) AS col2, ( - 72 )
----
139
-72

skipif mysql # not compatible
query II rowsort label-3888
SELECT ALL + 75 - - ( MIN ( + 64 ) ) AS col2, ( - 72 )
----
139
-72

query I rowsort
SELECT - 22 AS col1
----
-22

query I rowsort
SELECT ALL NULLIF ( 44, - 54 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT 57 + + COUNT( * ) * + 44 * 98 + + COUNT( * ) AS col1
----
4370

skipif mysql # not compatible
query I rowsort label-3891
SELECT 57 + + COUNT ( * ) * + 44 * 98 + + COUNT ( * ) AS col1
----
4370

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3892
SELECT 61 * CAST( NULL AS SIGNED ) col0, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-3892
SELECT 61 * CAST ( NULL AS INTEGER ) col0, - 73
----
NULL
-73

query II rowsort
SELECT 77 + + + 41 AS col1, + 55
----
118
55

query I rowsort
SELECT ALL 90 AS col0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3895
SELECT + CAST( NULL AS SIGNED ) + + NULLIF ( - 53, + 62 ) * - ( - + 13 ), 51 col0
----
NULL
51

skipif mysql # not compatible
query II rowsort label-3895
SELECT + CAST ( NULL AS INTEGER ) + + NULLIF ( - 53, + 62 ) * - ( - + 13 ), 51 col0
----
NULL
51

query I rowsort
SELECT + 96 + - 48 AS col0
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-3897
SELECT - COUNT( * ) * COUNT( * ) AS col0, 79 DIV + 31, + 49 + - 57 * - - 18 AS col0
----
-1
2
-977

skipif mysql # not compatible
query III rowsort label-3897
SELECT - COUNT ( * ) * COUNT ( * ) AS col0, 79 / + 31, + 49 + - 57 * - - 18 AS col0
----
-1
2
-977

query I rowsort
SELECT - 99 col0
----
-99

query I rowsort
SELECT + 72 + 61 - + + 67
----
66

query I rowsort
SELECT ALL 1
----
1

query II rowsort
SELECT - 2 col2, + 66 + - + 51 AS col1
----
-2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT - COUNT( * ) * - 53 + + - 12 + + 9
----
50

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( * ) * - 53 + + - 12 + + 9
----
50

query II rowsort
SELECT ALL + 56 AS col0, + 98 AS col0
----
56
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3904
SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT( * ) THEN - CAST( 32 AS SIGNED ) + 99 + COALESCE ( + COUNT( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM( ALL - 56 + + CAST( - 67 AS SIGNED ) / - 3 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3904
SELECT + CASE + - 56 WHEN + 24 / - 85 - 40 * 51 + - 4 + - 91 THEN NULL WHEN - - COUNT ( * ) THEN - CAST ( 32 AS INTEGER ) + 99 + COALESCE ( + COUNT ( + - ( - 59 ) ), + + 49 ) + - CASE 37 WHEN + + 19 / + - COUNT ( * ) * - 98 THEN NULL WHEN + NULLIF ( - 1, - 35 * 76 ) THEN NULL WHEN + ( 22 ) - - 70 THEN + 75 END - + 66 / 5 * SUM ( ALL - 56 + + CAST ( - 67 AS INTEGER ) / - 3 ) END
----
NULL

query II rowsort
SELECT ALL + 63 AS col1, + CASE 54 WHEN + 8 + - 38 THEN + + 25 * + + 46 + + 30 + + 12 ELSE NULL END AS col1
----
63
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3906
SELECT ALL + - COUNT( * ) AS col2, 86 AS col1
----
-1
86

skipif mysql # not compatible
query II rowsort label-3906
SELECT ALL + - COUNT ( * ) AS col2, 86 AS col1
----
-1
86

query I rowsort
SELECT + - 9 * - 88
----
792

query I rowsort
SELECT ALL + + 44
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT 22 AS col2, + NULLIF ( + COUNT( * ), - ( + + 25 ) + COUNT( * ) - - COUNT( * ) )
----
22
1

skipif mysql # not compatible
query II rowsort label-3909
SELECT 22 AS col2, + NULLIF ( + COUNT ( * ), - ( + + 25 ) + COUNT ( * ) - - COUNT ( * ) )
----
22
1

query I rowsort
SELECT + - ( + ( + 11 ) ) AS col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3911
SELECT ALL - 4 * - 21 + + - 10 + - + 41 DIV - 87 DIV 1 * - + 31 - + CAST( + 80 AS SIGNED ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-3911
SELECT ALL - 4 * - 21 + + - 10 + - + 41 / - 87 / 1 * - + 31 - + CAST ( + 80 AS INTEGER ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3912
SELECT + 5 AS col0, + CAST( + COUNT( * ) AS SIGNED )
----
5
1

skipif mysql # not compatible
query II rowsort label-3912
SELECT + 5 AS col0, + CAST ( + COUNT ( * ) AS INTEGER )
----
5
1

query II rowsort
SELECT ALL + - 67, + 5 AS col1
----
-67
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3914
SELECT ALL + + 11 * + CASE 93 WHEN 46 + - + 45 THEN NULL WHEN - 37 + + COUNT( * ) THEN NULL ELSE + CASE - - CAST( NULL AS SIGNED ) WHEN - 32 THEN - + AVG ( ALL + 66 ) ELSE NULL END + 79 END + + SUM( DISTINCT 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + + 11 * + CASE 93 WHEN 46 + - + 45 THEN NULL WHEN - 37 + + COUNT ( * ) THEN NULL ELSE + CASE - - CAST ( NULL AS INTEGER ) WHEN - 32 THEN - + AVG ( ALL + 66 ) ELSE NULL END + 79 END + + SUM ( DISTINCT 85 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT + COUNT( * ) * + 1
----
1

skipif mysql # not compatible
query I rowsort label-3915
SELECT + COUNT ( * ) * + 1
----
1

query I rowsort
SELECT + 11 + 84 - + 78 + - + 6 * + + 23
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - - 46 * + 17 + + 33 + + + COUNT( * ) AS col0
----
816

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - - 46 * + 17 + + 33 + + + COUNT ( * ) AS col0
----
816

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT ALL + + 80 * 47 + + COUNT( * ) AS col1
----
3761

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL + + 80 * 47 + + COUNT ( * ) AS col1
----
3761

query I rowsort
SELECT + ( + + 61 ) col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT + COUNT( * ) * CASE - COUNT( DISTINCT - + 2 ) WHEN - - 12 THEN MAX( ALL 0 ) ELSE NULL END * - 64 + 14 * 21 - + - 22 / + - 22 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT + COUNT ( * ) * CASE - COUNT ( DISTINCT - + 2 ) WHEN - - 12 THEN MAX ( ALL 0 ) ELSE NULL END * - 64 + 14 * 21 - + - 22 / + - 22 + - 92
----
NULL

query I rowsort
SELECT + + 82 * - 55 AS col1
----
-4510

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3922
SELECT + - CAST( NULL AS SIGNED ), - NULLIF ( - + CAST( - 96 AS SIGNED ), + 18 / 50 * 8 ) * + - CAST( + + 89 AS SIGNED ) * + 21 * - + ( + 2 ) + - 41 AS col1
----
NULL
-358889

skipif mysql # not compatible
query II rowsort label-3922
SELECT + - CAST ( NULL AS INTEGER ), - NULLIF ( - + CAST ( - 96 AS INTEGER ), + 18 / 50 * 8 ) * + - CAST ( + + 89 AS INTEGER ) * + 21 * - + ( + 2 ) + - 41 AS col1
----
NULL
-358889

onlyif mysql # aggregate syntax: 
query II rowsort label-3923
SELECT ALL + + 17 AS col1, COUNT( * ) AS col2
----
17
1

skipif mysql # not compatible
query II rowsort label-3923
SELECT ALL + + 17 AS col1, COUNT ( * ) AS col2
----
17
1

query I rowsort
SELECT - ( + + 38 ) * 94 + - 86 + + 41 AS col2
----
-3617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 56 - - COUNT( * ) / ( + - COUNT( * ) ) * - ( + 50 ) / 48 * + 12 * + CAST( NULL AS SIGNED ) + + + MAX( - 60 ) + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 56 - - COUNT ( * ) / ( + - COUNT ( * ) ) * - ( + 50 ) / 48 * + 12 * + CAST ( NULL AS INTEGER ) + + + MAX ( - 60 ) + - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 37
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3927
SELECT + COALESCE ( CAST( NULL AS SIGNED ), + 7 ) + 79 AS col0, 4 AS col2
----
86
4

skipif mysql # not compatible
query II rowsort label-3927
SELECT + COALESCE ( CAST ( NULL AS INTEGER ), + 7 ) + 79 AS col0, 4 AS col2
----
86
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT + + 32 DIV 48 * - - 84 * - - 27 * - 99 - 72 + + + 2 - - 20 AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-3928
SELECT + + 32 / 48 * - - 84 * - - 27 * - 99 - 72 + + + 2 - - 20 AS col0
----
-50

query I rowsort
SELECT ALL - - 61 * - 56 + 32
----
-3384

query II rowsort
SELECT DISTINCT + 55 col0, 68 AS col0
----
55
68

query I rowsort
SELECT ALL 42 * + 88 + 69 AS col1
----
3765

query I rowsort
SELECT + + 73
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + SUM( ALL 12 )
----
12

skipif mysql # not compatible
query I rowsort label-3933
SELECT + SUM ( ALL 12 )
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3934
SELECT + COUNT( * ), COUNT( * ) * 52 col0
----
1
52

skipif mysql # not compatible
query II rowsort label-3934
SELECT + COUNT ( * ), COUNT ( * ) * 52 col0
----
1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT ALL + 88 - + 6 * - COUNT( ALL 8 )
----
94

skipif mysql # not compatible
query I rowsort label-3935
SELECT ALL + 88 - + 6 * - COUNT ( ALL 8 )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT - ( + 39 ) + + COUNT( DISTINCT + 33 ) AS col1
----
-38

skipif mysql # not compatible
query I rowsort label-3936
SELECT - ( + 39 ) + + COUNT ( DISTINCT + 33 ) AS col1
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT - 25 - - COUNT( * ) AS col0
----
-24

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - 25 - - COUNT ( * ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL NULLIF ( MAX( + ( 82 ) ), - 83 )
----
82

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL NULLIF ( MAX ( + ( 82 ) ), - 83 )
----
82

query I rowsort
SELECT ALL ( - 44 ) AS col0
----
-44

query I rowsort
SELECT DISTINCT ( 16 ) AS col1
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-3941
SELECT DISTINCT + 71 * + - COUNT( * ) AS col2, + ( COUNT( * ) ) * - + 11 * COALESCE ( - 56, 32 ) col0
----
-71
616

skipif mysql # not compatible
query II rowsort label-3941
SELECT DISTINCT + 71 * + - COUNT ( * ) AS col2, + ( COUNT ( * ) ) * - + 11 * COALESCE ( - 56, 32 ) col0
----
-71
616

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3942
SELECT - CAST( + 9 AS SIGNED ) * + SUM( DISTINCT + - CASE - + CAST( NULL AS SIGNED ) WHEN 4 THEN - 99 / + 47 WHEN + ( + + 20 ) THEN - - 37 / - 51 * 76 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT - CAST ( + 9 AS INTEGER ) * + SUM ( DISTINCT + - CASE - + CAST ( NULL AS INTEGER ) WHEN 4 THEN - 99 / + 47 WHEN + ( + + 20 ) THEN - - 37 / - 51 * 76 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT ALL CASE + - 41 WHEN + AVG ( + - CASE + 94 WHEN - 28 + + 51 THEN NULL ELSE 80 END ) THEN NULL WHEN COUNT( * ) * ( - 93 ) THEN + + 45 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL CASE + - 41 WHEN + AVG ( + - CASE + 94 WHEN - 28 + + 51 THEN NULL ELSE 80 END ) THEN NULL WHEN COUNT ( * ) * ( - 93 ) THEN + + 45 ELSE NULL END
----
NULL

query I rowsort
SELECT - ( + + ( - - 97 ) ) * + + ( ( 53 ) ) + 81
----
-5060

query I rowsort
SELECT ALL ( + 4 ) col0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3946
SELECT - CAST( NULL AS DECIMAL ) / + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT - CAST ( NULL AS REAL ) / + 56
----
NULL

query I rowsort
SELECT DISTINCT - NULLIF ( - 54, + 57 ) * + + 73 AS col0
----
3942

query II rowsort
SELECT - 13 * - + 13 col0, 8
----
169
8

query I rowsort
SELECT DISTINCT + 29
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3950
SELECT ALL - MAX( DISTINCT 11 ) DIV 39 + 33 + - + 46, + 38 * + COUNT( * ) AS col0
----
-13
38

skipif mysql # not compatible
query II rowsort label-3950
SELECT ALL - MAX ( DISTINCT 11 ) / 39 + 33 + - + 46, + 38 * + COUNT ( * ) AS col0
----
-13
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT + + COUNT( * ) - - - 98 * + + 86 AS col1
----
-8427

skipif mysql # not compatible
query I rowsort label-3951
SELECT + + COUNT ( * ) - - - 98 * + + 86 AS col1
----
-8427

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL + + 34 DIV ( + 29 ) + + ( - 91 ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + + 34 / ( + 29 ) + + ( - 91 ) AS col0
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3953
SELECT 77 DIV - 99 + + 86 + + COUNT( * ) * 87 * + + 65 col1
----
5741

skipif mysql # not compatible
query I rowsort label-3953
SELECT 77 / - 99 + + 86 + + COUNT ( * ) * 87 * + + 65 col1
----
5741

query I rowsort
SELECT + - 93 col2
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3955
SELECT + - MAX( DISTINCT 79 ), + NULLIF ( - + 59, 78 ) * - 41 * + - CAST( NULL AS SIGNED ) / + + 29 + - 68 + - COUNT( * ) * - + 94 - - 68 + ( 92 ) * - + 13 / + + 7 * 95 AS col1
----
-79
NULL

skipif mysql # not compatible
query II rowsort label-3955
SELECT + - MAX ( DISTINCT 79 ), + NULLIF ( - + 59, 78 ) * - 41 * + - CAST ( NULL AS INTEGER ) / + + 29 + - 68 + - COUNT ( * ) * - + 94 - - 68 + ( 92 ) * - + 13 / + + 7 * 95 AS col1
----
-79
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3956
SELECT ALL + + 2 DIV - COUNT( * ) + 56
----
54

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL + + 2 / - COUNT ( * ) + 56
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-3957
SELECT ( + + NULLIF ( COUNT( * ), - + 48 + 59 + + COUNT( * ) / - 50 ) ), ( + 9 ) AS col2
----
1
9

skipif mysql # not compatible
query II rowsort label-3957
SELECT ( + + NULLIF ( COUNT ( * ), - + 48 + 59 + + COUNT ( * ) / - 50 ) ), ( + 9 ) AS col2
----
1
9

query I rowsort
SELECT - ( - 35 )
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT ALL - 6 DIV - 94 + + + 82 * - 25 AS col1
----
-2050

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL - 6 / - 94 + + + 82 * - 25 AS col1
----
-2050

query I rowsort
SELECT + 89 + 8 AS col0
----
97

query I rowsort
SELECT DISTINCT + ( + 50 )
----
50

query I rowsort
SELECT ALL - 20 * - 78 - 15 * + + 15 AS col0
----
1335

query I rowsort
SELECT DISTINCT + 1 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3964
SELECT - 14 * NULLIF ( COALESCE ( + CAST( NULL AS SIGNED ), - - ( COUNT( * ) ) + + 80, + COUNT( * ), - 4 + CASE - MAX( + 58 ) WHEN + ( - 7 ) THEN - COUNT( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT( * ) + 91 THEN 16 * 92 + + COUNT( * ) DIV + 91 WHEN 95 THEN + NULLIF ( - 71, - 89 ) WHEN - ( 60 ) * 38 THEN NULL END * - 38 END ), CAST( NULL AS SIGNED ) + + 12 ) * 70 + 4 + 13 * - 92
----
-80572

skipif mysql # not compatible
query I rowsort label-3964
SELECT - 14 * NULLIF ( COALESCE ( + CAST ( NULL AS INTEGER ), - - ( COUNT ( * ) ) + + 80, + COUNT ( * ), - 4 + CASE - MAX ( + 58 ) WHEN + ( - 7 ) THEN - COUNT ( 81 ) * - 34 ELSE - + CASE + 54 WHEN - - 76 * + 50 * - + COUNT ( * ) + 91 THEN 16 * 92 + + COUNT ( * ) / + 91 WHEN 95 THEN + NULLIF ( - 71, - 89 ) WHEN - ( 60 ) * 38 THEN NULL END * - 38 END ), CAST ( NULL AS INTEGER ) + + 12 ) * 70 + 4 + 13 * - 92
----
-80572

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT + NULLIF ( - 98, + - MIN( DISTINCT 92 ) - + 46 ) AS col0
----
-98

skipif mysql # not compatible
query I rowsort label-3965
SELECT + NULLIF ( - 98, + - MIN ( DISTINCT 92 ) - + 46 ) AS col0
----
-98

query I rowsort
SELECT - 63 * - + 11
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-3967
SELECT + ( + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3968
SELECT + COUNT( * ) + - + 38 * - 31 * MIN( - CAST( 42 AS SIGNED ) ) + + SUM( - 49 ) AS col1
----
-49524

skipif mysql # not compatible
query I rowsort label-3968
SELECT + COUNT ( * ) + - + 38 * - 31 * MIN ( - CAST ( 42 AS INTEGER ) ) + + SUM ( - 49 ) AS col1
----
-49524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3969
SELECT ALL 57 * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL 57 * CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + 27 * - 64
----
-1728

query I rowsort
SELECT ALL ( - 99 ) AS col2
----
-99

query I rowsort
SELECT 92 - + + 1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT 96 DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-3973
SELECT 96 / + - 71
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3974
SELECT 67 + + 77 - - 41 - + + CAST( NULL AS DECIMAL ) + - - 13 * + + COALESCE ( 47, - 14 ) * + 23 / 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3974
SELECT 67 + + 77 - - 41 - + + CAST ( NULL AS REAL ) + - - 13 * + + COALESCE ( 47, - 14 ) * + 23 / 79
----
NULL

query II rowsort
SELECT 5 + + + 45 * + 5 AS col2, + ( - 83 ) AS col1
----
230
-83

query II rowsort
SELECT 16 AS col2, 77 * + - 25 * + + 9
----
16
-17325

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT SUM( + 10 ) + + 49 - - 51 AS col0
----
110

skipif mysql # not compatible
query I rowsort label-3977
SELECT SUM ( + 10 ) + + 49 - - 51 AS col0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT 27 - + COUNT( * ) + + COALESCE ( + 7, - 34 ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-3978
SELECT 27 - + COUNT ( * ) + + COALESCE ( + 7, - 34 ) AS col2
----
33

query I rowsort
SELECT ALL + 22 + + 98 AS col0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT 1 + - 59 - + + 61 DIV - 81 * 58
----
-58

skipif mysql # not compatible
query I rowsort label-3980
SELECT 1 + - 59 - + + 61 / - 81 * 58
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT ALL COUNT( * ) + - 12 + - - COUNT( * )
----
-10

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL COUNT ( * ) + - 12 + - - COUNT ( * )
----
-10

query I rowsort
SELECT 11 + 24
----
35

query II rowsort
SELECT 16 AS col0, ( + 53 )
----
16
53

query I rowsort
SELECT DISTINCT 56 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT + 66 + + COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-3985
SELECT + 66 + + COUNT ( * )
----
67

query I rowsort
SELECT ( - + 50 ) AS col0
----
-50

query II rowsort
SELECT 76 AS col0, + 28
----
76
28

query I rowsort
SELECT - + 64
----
-64

query I rowsort
SELECT 8 + 64 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT - COUNT( * ) * 49
----
-49

skipif mysql # not compatible
query I rowsort label-3990
SELECT - COUNT ( * ) * 49
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT DISTINCT - + 13 DIV + - 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT - + 13 / + - 87 AS col1
----
0

query I rowsort
SELECT + + 85
----
85

query I rowsort
SELECT ALL - - 46 + - 22 AS col2
----
24

query I rowsort
SELECT DISTINCT - 46
----
-46

query II rowsort
SELECT + 91, 92 * - 34 col2
----
91
-3128

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT ALL - COUNT( * ) AS col1, 28
----
-1
28

skipif mysql # not compatible
query II rowsort label-3996
SELECT ALL - COUNT ( * ) AS col1, 28
----
-1
28

query I rowsort
SELECT ALL - - 71 * 9 col0
----
639

query I rowsort
SELECT 56 + - - 0 - 99
----
-43

query I rowsort
SELECT + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT + 22 + - + 99 + 17 + + ( + 56 ) * - 40 - - - 98 * + - COUNT( * )
----
-2202

skipif mysql # not compatible
query I rowsort label-4000
SELECT + 22 + - + 99 + 17 + + ( + 56 ) * - 40 - - - 98 * + - COUNT ( * )
----
-2202

query I rowsort
SELECT DISTINCT - + 97 AS col0
----
-97

query I rowsort
SELECT DISTINCT - 38 AS col0
----
-38

query I rowsort
SELECT DISTINCT - 9 AS col0
----
-9

query I rowsort
SELECT DISTINCT - 48
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT ALL 98 * COUNT( * ) AS col1, - 23
----
98
-23

skipif mysql # not compatible
query II rowsort label-4005
SELECT ALL 98 * COUNT ( * ) AS col1, - 23
----
98
-23

query I rowsort
SELECT 86 * + 17 * + ( 91 ) AS col0
----
133042

query I rowsort
SELECT DISTINCT - 25 col0
----
-25

query I rowsort
SELECT 42 col1
----
42

query I rowsort
SELECT ALL 62 * 28
----
1736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4010
SELECT 76 DIV + COALESCE ( + 71, + 18 + + COUNT( * ), + + 95 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4010
SELECT 76 / + COALESCE ( + 71, + 18 + + COUNT ( * ), + + 95 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT COUNT( * ) * ( + 64 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-4011
SELECT COUNT ( * ) * ( + 64 ) AS col0
----
64

query I rowsort
SELECT ALL + 18 + + - 20 - - + 73 AS col1
----
71

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4013
SELECT ALL - CAST( 56 AS SIGNED ) DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL - CAST ( 56 AS INTEGER ) / - 50
----
1

query I rowsort
SELECT DISTINCT 1 AS col0
----
1

query I rowsort
SELECT DISTINCT 54 + - 72
----
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4016
SELECT 1 * + COUNT( * ) DIV + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86
----
0
-90
5310

skipif mysql # not compatible
query III rowsort label-4016
SELECT 1 * + COUNT ( * ) / + - 37 * 75 AS col0, - 90 AS col0, + 76 * + + 71 + - 86
----
0
-90
5310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4017
SELECT 36 * + CAST( - 92 AS SIGNED )
----
-3312

skipif mysql # not compatible
query I rowsort label-4017
SELECT 36 * + CAST ( - 92 AS INTEGER )
----
-3312

query I rowsort
SELECT ALL ( + 52 ) AS col1
----
52

query I rowsort
SELECT - + 76 AS col2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4020
SELECT CASE - 7 WHEN COALESCE ( - ( 18 ), + 53, - 83 * AVG ( - 27 ) + - NULLIF ( + - 25, - 75 / + COALESCE ( COUNT( * ), + + MAX( DISTINCT + - 35 ), - 44 ) * + - 20 ), + 90 + + CAST( + - 69 AS DECIMAL ) - - MAX( - 53 ) * COUNT( * ) / - 50 ) / COUNT( * ) - 30 THEN NULL WHEN 36 THEN NULL WHEN - 54 + 74 THEN 77 ELSE NULL END - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-4020
SELECT CASE - 7 WHEN COALESCE ( - ( 18 ), + 53, - 83 * AVG ( - 27 ) + - NULLIF ( + - 25, - 75 / + COALESCE ( COUNT ( * ), + + MAX ( DISTINCT + - 35 ), - 44 ) * + - 20 ), + 90 + + CAST ( + - 69 AS REAL ) - - MAX ( - 53 ) * COUNT ( * ) / - 50 ) / COUNT ( * ) - 30 THEN NULL WHEN 36 THEN NULL WHEN - 54 + 74 THEN 77 ELSE NULL END - + 95
----
NULL

query I rowsort
SELECT - + 7 AS col2
----
-7

query I rowsort
SELECT DISTINCT 18 * + 42
----
756

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT ALL - + 10 - - COUNT( * ) + - - COUNT( * ) + 11 * ( + 34 ) * + 38 * + COUNT( * ) * + 82 * - 72 AS col1
----
-83907656

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - + 10 - - COUNT ( * ) + - - COUNT ( * ) + 11 * ( + 34 ) * + 38 * + COUNT ( * ) * + 82 * - 72 AS col1
----
-83907656

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT 33 * - MAX( DISTINCT ( - 92 ) )
----
3036

skipif mysql # not compatible
query I rowsort label-4024
SELECT 33 * - MAX ( DISTINCT ( - 92 ) )
----
3036

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT - COALESCE ( ( COUNT( + - 45 ) ), + - 5 * + + ( - - 9 ) ) * COUNT( * ) * - + 2 - + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - COALESCE ( ( COUNT ( + - 45 ) ), + - 5 * + + ( - - 9 ) ) * COUNT ( * ) * - + 2 - + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4026
SELECT 81 + - COALESCE ( 75, - COUNT( * ) DIV - + 51 DIV - 90 + + 74 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4026
SELECT 81 + - COALESCE ( 75, - COUNT ( * ) / - + 51 / - 90 + + 74 ) AS col2
----
6

query I rowsort
SELECT + + 25 AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT ALL + 90 * - 92 + - 78 * COALESCE ( + - 24, - COUNT( * ) * - ( + 54 ) + - - 58 ) - + COUNT( * ) col2
----
-6409

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + 90 * - 92 + - 78 * COALESCE ( + - 24, - COUNT ( * ) * - ( + 54 ) + - - 58 ) - + COUNT ( * ) col2
----
-6409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4029
SELECT 12 * CAST( NULL AS SIGNED ) AS col1, 92 + CAST( 94 AS SIGNED ) AS col2
----
NULL
186

skipif mysql # not compatible
query II rowsort label-4029
SELECT 12 * CAST ( NULL AS INTEGER ) AS col1, 92 + CAST ( 94 AS INTEGER ) AS col2
----
NULL
186

query I rowsort
SELECT + 2 * + 16 * + 73 AS col1
----
2336

onlyif mysql # aggregate syntax: 
query II rowsort label-4031
SELECT ALL - + MIN( - 24 ) AS col2, COUNT( * ) AS col2
----
24
1

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL - + MIN ( - 24 ) AS col2, COUNT ( * ) AS col2
----
24
1

query I rowsort
SELECT ALL - + 29 AS col2
----
-29

query I rowsort
SELECT + 69 * - 55
----
-3795

query I rowsort
SELECT + 47 * 38 + 86 * 52 + - - 22 AS col0
----
6280

onlyif mysql # DIV for integer division: 
query II rowsort label-4035
SELECT DISTINCT + - 76 DIV - 91, + 11 * ( + 80 ) AS col1
----
0
880

skipif mysql # not compatible
query II rowsort label-4035
SELECT DISTINCT + - 76 / - 91, + 11 * ( + 80 ) AS col1
----
0
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4036
SELECT - COALESCE ( COUNT( * ), - 95 ) DIV 78 - - - 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-4036
SELECT - COALESCE ( COUNT ( * ), - 95 ) / 78 - - - 15 AS col0
----
-15

query I rowsort
SELECT ALL + 57
----
57

query I rowsort
SELECT DISTINCT + 12 * + 28
----
336

query I rowsort
SELECT - 92 * 39 AS col2
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT - 13 * 33 * + 48 + - COUNT( * ) col2
----
-20593

skipif mysql # not compatible
query I rowsort label-4040
SELECT - 13 * 33 * + 48 + - COUNT ( * ) col2
----
-20593

query I rowsort
SELECT ALL + ( + - 85 )
----
-85

query I rowsort
SELECT + 73 AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4043
SELECT SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-4043
SELECT SUM ( 16 )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT ALL - COUNT( * ) + 65 AS col1
----
64

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - COUNT ( * ) + 65 AS col1
----
64

query I rowsort
SELECT ALL + ( 17 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4046
SELECT COUNT( * ) AS col0, + 3
----
1
3

skipif mysql # not compatible
query II rowsort label-4046
SELECT COUNT ( * ) AS col0, + 3
----
1
3

query I rowsort
SELECT DISTINCT ( 9 ) + - 24 * - + 53
----
1281

query I rowsort
SELECT ALL - 22 + 71
----
49

query II rowsort
SELECT ALL 93 AS col2, + 52 + 69 * + - 89 + - - ( - + 92 ) AS col2
----
93
-6181

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT - MAX( DISTINCT - 34 )
----
34

skipif mysql # not compatible
query I rowsort label-4050
SELECT - MAX ( DISTINCT - 34 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT ( + COALESCE ( 32, - - 76 * - 65 + COUNT( * ) + + - 29 * + - 69 * - 1 * + 19 + 66, COUNT( * ) * + - 21 ) )
----
32

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT ( + COALESCE ( 32, - - 76 * - 65 + COUNT ( * ) + + - 29 * + - 69 * - 1 * + 19 + 66, COUNT ( * ) * + - 21 ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT - 78 + + 31 + + - COUNT( ALL + 75 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-4052
SELECT - 78 + + 31 + + - COUNT ( ALL + 75 ) AS col2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4053
SELECT + 84 * CAST( NULL AS DECIMAL ) * - - 99, + ( - - COUNT( * ) ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4053
SELECT + 84 * CAST ( NULL AS REAL ) * - - 99, + ( - - COUNT ( * ) ) AS col1
----
NULL
1

query I rowsort
SELECT - + 73 + - - 93
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4055
SELECT ALL + 4 * + 91 + MAX( ALL + 58 ) + 66 AS col1, - 81 * + MIN( - + 77 ) * - 52 * + 10 * + 40 + + 50
----
488
-129729550

skipif mysql # not compatible
query II rowsort label-4055
SELECT ALL + 4 * + 91 + MAX ( ALL + 58 ) + 66 AS col1, - 81 * + MIN ( - + 77 ) * - 52 * + 10 * + 40 + + 50
----
488
-129729550

onlyif mysql # aggregate syntax: 
query II rowsort label-4056
SELECT + - 98 + + COUNT( * ) * 57 AS col0, + 19 + + MIN( DISTINCT - + 4 )
----
-41
15

skipif mysql # not compatible
query II rowsort label-4056
SELECT + - 98 + + COUNT ( * ) * 57 AS col0, + 19 + + MIN ( DISTINCT - + 4 )
----
-41
15

query I rowsort
SELECT ALL + 93 - - + 88 AS col1
----
181

query I rowsort
SELECT DISTINCT 97 AS col1
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT - - COALESCE ( + 96, 5 ), + COUNT( * ) * - COUNT( * ) + + + 20 AS col2
----
96
19

skipif mysql # not compatible
query II rowsort label-4059
SELECT - - COALESCE ( + 96, 5 ), + COUNT ( * ) * - COUNT ( * ) + + + 20 AS col2
----
96
19

query I rowsort
SELECT ALL + 4 col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4061
SELECT + MIN( ALL - + 14 ) + COALESCE ( + 36, - - 67, - CAST( NULL AS SIGNED ) * 11 - + 14 * - 27 ) + - - MIN( - 68 ) AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-4061
SELECT + MIN ( ALL - + 14 ) + COALESCE ( + 36, - - 67, - CAST ( NULL AS INTEGER ) * 11 - + 14 * - 27 ) + - - MIN ( - 68 ) AS col1
----
-46

query I rowsort
SELECT ALL CASE - + CASE + + 3 WHEN + 99 THEN + 64 + - + 32 WHEN - 79 * - 95 - - 95 THEN NULL END WHEN + 15 THEN 81 + - - 4 + - 88 WHEN - 36 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4063
SELECT + 8 * + 11 * - CAST( 26 AS SIGNED )
----
-2288

skipif mysql # not compatible
query I rowsort label-4063
SELECT + 8 * + 11 * - CAST ( 26 AS INTEGER )
----
-2288

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT + COUNT( DISTINCT - 95 ) + + 71 * 18 AS col2
----
1279

skipif mysql # not compatible
query I rowsort label-4064
SELECT + COUNT ( DISTINCT - 95 ) + + 71 * 18 AS col2
----
1279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT DISTINCT - CAST( 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - CAST ( 72 AS INTEGER ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT - - 91 * - + 64 * - - 12 * - SUM( DISTINCT - 59 ) AS col1
----
-4123392

skipif mysql # not compatible
query I rowsort label-4066
SELECT - - 91 * - + 64 * - - 12 * - SUM ( DISTINCT - 59 ) AS col1
----
-4123392

query I rowsort
SELECT ALL + + 74
----
74

query II rowsort
SELECT + 66 * - 69 - - + 36, + 42 AS col2
----
-4518
42

query I rowsort
SELECT ALL + - 41 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT - COUNT( * ) * - MIN( - 12 ) * 62 * 98 + + 9
----
-72903

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT - COUNT ( * ) * - MIN ( - 12 ) * 62 * 98 + + 9
----
-72903

query I rowsort
SELECT ( 39 ) AS col1
----
39

query I rowsort
SELECT + 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + COUNT( DISTINCT - - 45 ) * + 66 AS col2
----
66

skipif mysql # not compatible
query I rowsort label-4073
SELECT + COUNT ( DISTINCT - - 45 ) * + 66 AS col2
----
66

query II rowsort
SELECT - 98 * + + 73 AS col2, 81 - - 33
----
-7154
114

query I rowsort
SELECT ( COALESCE ( + 90, + - 19, + 12 ) ) AS col2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4076
SELECT ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ( - + 15 ) col1
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4078
SELECT + CAST( - 93 AS SIGNED ) col0
----
-93

skipif mysql # not compatible
query I rowsort label-4078
SELECT + CAST ( - 93 AS INTEGER ) col0
----
-93

query I rowsort
SELECT ( + + 68 ) AS col0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT + COUNT( * ) * - 69 + + COUNT( * ) col1
----
-68

skipif mysql # not compatible
query I rowsort label-4080
SELECT + COUNT ( * ) * - 69 + + COUNT ( * ) col1
----
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4081
SELECT - 21 - - - ( + 18 ) DIV + + COUNT( * ) + - 98 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-4081
SELECT - 21 - - - ( + 18 ) / + + COUNT ( * ) + - 98 AS col1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4082
SELECT - 97 * - 57 AS col1, 12 + - CASE - + ( 25 ) WHEN ( - 15 ) * + 6 THEN NULL WHEN 58 * - + 13 * + + AVG ( ALL + 49 ) * + + COUNT( * ) + CAST( - 28 AS SIGNED ) THEN NULL ELSE - - 73 END + COUNT( * )
----
5529
-60

skipif mysql # not compatible
query II rowsort label-4082
SELECT - 97 * - 57 AS col1, 12 + - CASE - + ( 25 ) WHEN ( - 15 ) * + 6 THEN NULL WHEN 58 * - + 13 * + + AVG ( ALL + 49 ) * + + COUNT ( * ) + CAST ( - 28 AS INTEGER ) THEN NULL ELSE - - 73 END + COUNT ( * )
----
5529
-60

query I rowsort
SELECT ALL + 63 * 92
----
5796

query I rowsort
SELECT ALL 34 * - 74 + - 5 * - + ( - 46 )
----
-2746

query I rowsort
SELECT ALL + 29 * - 77 + - - 30 + + 71 * - + 32 AS col1
----
-4475

query I rowsort
SELECT - 8 + + 53 * - 58 AS col0
----
-3082

query I rowsort
SELECT DISTINCT - 96 * + 43 + - 87 AS col1
----
-4215

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT COALESCE ( 80, - COALESCE ( - ( - 59 ), + - 64 ), - CASE - 78 WHEN - 14 * - 45 + + ( + ( + + ( + 70 ) ) ) + - 37 * - + 18 * COUNT( * ) THEN NULL ELSE + - 79 END ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4088
SELECT COALESCE ( 80, - COALESCE ( - ( - 59 ), + - 64 ), - CASE - 78 WHEN - 14 * - 45 + + ( + ( + + ( + 70 ) ) ) + - 37 * - + 18 * COUNT ( * ) THEN NULL ELSE + - 79 END ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4089
SELECT - CAST( - ( + COUNT( * ) ) AS SIGNED ) * + - 77 + COALESCE ( 31, + 33 ) * 49 * + 50 * - 97 * + COUNT( * ) AS col0
----
-7367227

skipif mysql # not compatible
query I rowsort label-4089
SELECT - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) * + - 77 + COALESCE ( 31, + 33 ) * 49 * + 50 * - 97 * + COUNT ( * ) AS col0
----
-7367227

query I rowsort
SELECT - 43 * 37 AS col1
----
-1591

query I rowsort
SELECT DISTINCT ( - - NULLIF ( - + 72, 12 + 37 + - 90 * - + 48 ) )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT - 72 * - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-4092
SELECT - 72 * - COUNT ( * ) AS col0
----
72

query I rowsort
SELECT - + 69 * - 5 AS col0
----
345

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL + - CASE COUNT( * ) WHEN 92 THEN + MAX( - 55 ) END * 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL + - CASE COUNT ( * ) WHEN 92 THEN + MAX ( - 55 ) END * 63 AS col2
----
NULL

query II rowsort
SELECT ALL - 96 AS col2, 77
----
-96
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4096
SELECT DISTINCT + + 77 - + - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST( NULL AS SIGNED ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 DIV - NULLIF ( 90, - CASE + + ( - - COUNT( * ) ) WHEN - 86 + + 63 THEN 67 + 54 WHEN 10 - + 89 THEN - ( - ( COUNT( * ) ) ) ELSE + 52 END + 75 ) + 71, - CAST( NULL AS SIGNED ) ) ) * - COALESCE ( - 1 - 62, 60 + NULLIF ( 28, ( - NULLIF ( 27, 63 DIV - 93 ) ) * - COUNT( * ) + 77 * + 41 ) * + 95 ) ELSE NULL END * + 31 + + 34, + 88 DIV - 9, - 73 )
----
40

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT + + 77 - + - COALESCE ( ( - + 37 ), + - CASE 4 WHEN + + 55 + - 19 THEN NULL WHEN + 60 * + CASE ( - CAST ( NULL AS INTEGER ) ) WHEN + 87 THEN + - 71 END THEN - - NULLIF ( + 72, COALESCE ( - 29, - + 78 / - NULLIF ( 90, - CASE + + ( - - COUNT ( * ) ) WHEN - 86 + + 63 THEN 67 + 54 WHEN 10 - + 89 THEN - ( - ( COUNT ( * ) ) ) ELSE + 52 END + 75 ) + 71, - CAST ( NULL AS INTEGER ) ) ) * - COALESCE ( - 1 - 62, 60 + NULLIF ( 28, ( - NULLIF ( 27, 63 / - 93 ) ) * - COUNT ( * ) + 77 * + 41 ) * + 95 ) ELSE NULL END * + 31 + + 34, + 88 / - 9, - 73 )
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT + 39 * 62, - COUNT( * ) AS col1
----
2418
-1

skipif mysql # not compatible
query II rowsort label-4097
SELECT + 39 * 62, - COUNT ( * ) AS col1
----
2418
-1

query II rowsort
SELECT - - 72 AS col0, - 29
----
72
-29

query II rowsort
SELECT + ( 41 ), - 89 AS col1
----
41
-89

query I rowsort
SELECT ALL CASE - 0 WHEN 47 THEN 59 ELSE 23 END AS col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4101
SELECT ALL - MAX( + + ( - 31 ) ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - MAX ( + + ( - 31 ) ) AS col0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT COUNT( + - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4102
SELECT COUNT ( + - 80 ) AS col0
----
1

query I rowsort
SELECT - - ( - - 79 ) col1
----
79

query I rowsort
SELECT - + 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT - - 43 * + 28 + COUNT( * )
----
1205

skipif mysql # not compatible
query I rowsort label-4105
SELECT - - 43 * + 28 + COUNT ( * )
----
1205

query I rowsort
SELECT + - 37 * - 85 * - - 59
----
185555

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL + 32 * + COALESCE ( + - 83, - - 53 * - CAST( COUNT( * ) AS SIGNED ) + - 71, - 59 ) AS col0
----
-2656

skipif mysql # not compatible
query I rowsort label-4107
SELECT ALL + 32 * + COALESCE ( + - 83, - - 53 * - CAST ( COUNT ( * ) AS INTEGER ) + - 71, - 59 ) AS col0
----
-2656

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT - ( - + CAST( NULL AS SIGNED ) ) - - + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-4108
SELECT - ( - + CAST ( NULL AS INTEGER ) ) - - + 97
----
NULL

query I rowsort
SELECT - 93 col2
----
-93

query I rowsort
SELECT DISTINCT - 49 + - + 56 + - + 90 + + 33 AS col0
----
-162

query I rowsort
SELECT DISTINCT - 93
----
-93

query I rowsort
SELECT DISTINCT + 74 + - 3 AS col2
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4113
SELECT ALL - + 47, + MIN( DISTINCT - 73 ) AS col2
----
-47
-73

skipif mysql # not compatible
query II rowsort label-4113
SELECT ALL - + 47, + MIN ( DISTINCT - 73 ) AS col2
----
-47
-73

query II rowsort
SELECT + + 98, - 10 AS col1
----
98
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT MIN( + + 67 ) + - 26 - 69 + + COUNT( * )
----
-27

skipif mysql # not compatible
query I rowsort label-4115
SELECT MIN ( + + 67 ) + - 26 - 69 + + COUNT ( * )
----
-27

query I rowsort
SELECT + 60 col2
----
60

query I rowsort
SELECT ALL 39 + + + 20 + + 55 * - 4
----
-161

query I rowsort
SELECT DISTINCT 44 + - 25 AS col2
----
19

query I rowsort
SELECT 66 AS col1
----
66

query I rowsort
SELECT ALL - 66 AS col2
----
-66

query I rowsort
SELECT - 67 * + 34 + 84 + + 90
----
-2104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4122
SELECT CAST( NULL AS SIGNED ) * - + 6 * - 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT CAST ( NULL AS INTEGER ) * - + 6 * - 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 59 col0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4124
SELECT 30 DIV + 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT 30 / + 40 AS col2
----
0

query I rowsort
SELECT ALL - 32 * 26
----
-832

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT - MIN( DISTINCT - 42 ) * - - 54 + 89 DIV + + 99 AS col2
----
2268

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT - MIN ( DISTINCT - 42 ) * - - 54 + 89 / + + 99 AS col2
----
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT + MAX( - 28 ) + - 54 + - 84 + - 20 AS col2
----
-186

skipif mysql # not compatible
query I rowsort label-4127
SELECT + MAX ( - 28 ) + - 54 + - 84 + - 20 AS col2
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-4128
SELECT 0 * 89 AS col0, COUNT( * ) + + 24
----
0
25

skipif mysql # not compatible
query II rowsort label-4128
SELECT 0 * 89 AS col0, COUNT ( * ) + + 24
----
0
25

query I rowsort
SELECT ALL + 52 * 54 col2
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT SUM( + 72 ) + + 87 AS col1
----
159

skipif mysql # not compatible
query I rowsort label-4130
SELECT SUM ( + 72 ) + + 87 AS col1
----
159

query I rowsort
SELECT + 46 + + + 13
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT + SUM( + + 75 ) DIV - + 57 + + + ( + 47 ) + + NULLIF ( - 28, - ( + 15 ) )
----
18

skipif mysql # not compatible
query I rowsort label-4132
SELECT + SUM ( + + 75 ) / - + 57 + + + ( + 47 ) + + NULLIF ( - 28, - ( + 15 ) )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-4133
SELECT 77 * + + 73 AS col2, 81 * + COUNT( - + 96 )
----
5621
81

skipif mysql # not compatible
query II rowsort label-4133
SELECT 77 * + + 73 AS col2, 81 * + COUNT ( - + 96 )
----
5621
81

query I rowsort
SELECT - 73 * - + 26 + - - NULLIF ( + + 8, - - 45 )
----
1906

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT DISTINCT - - 70 + + COUNT( * )
----
71

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - - 70 + + COUNT ( * )
----
71

query I rowsort
SELECT ALL - 11 + + + ( 92 ) + - 30 AS col1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT - 39 + + MIN( + 80 ) + - 62 * 62
----
-3803

skipif mysql # not compatible
query I rowsort label-4137
SELECT - 39 + + MIN ( + 80 ) + - 62 * 62
----
-3803

query I rowsort
SELECT - NULLIF ( + - 22, - 36 )
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4139
SELECT ALL - - 57 DIV + - 22 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - - 57 / + - 22 AS col2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4140
SELECT + CAST( NULL AS SIGNED ) * - 2 AS col2, - 65
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-4140
SELECT + CAST ( NULL AS INTEGER ) * - 2 AS col2, - 65
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT ALL COUNT( * ) + - + 78 + 91 AS col0
----
14

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL COUNT ( * ) + - + 78 + 91 AS col0
----
14

query II rowsort
SELECT - 58 AS col0, + 96 AS col2
----
-58
96

query I rowsort
SELECT ALL - 8 * - 20
----
160

query I rowsort
SELECT DISTINCT + 53 + + 64
----
117

query II rowsort
SELECT ALL - 66, 18 * + 66 - + - ( + - 52 ) + - + 84 AS col1
----
-66
1052

query I rowsort
SELECT DISTINCT - 90 * + + 28
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT SUM( - + 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-4147
SELECT SUM ( - + 16 )
----
-16

query I rowsort
SELECT ALL 85 - + + 66 col1
----
19

query I rowsort
SELECT 21 * - 80
----
-1680

query II rowsort
SELECT ALL - 56 col2, 28 + + 52
----
-56
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4151
SELECT DISTINCT 32 DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT 32 / + 92 AS col2
----
0

query II rowsort
SELECT DISTINCT - 72 AS col1, + 81 * + + 97 * + 47 AS col0
----
-72
369279

query I rowsort
SELECT 11 * - + 62 AS col1
----
-682

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT COUNT( * ) * + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-4154
SELECT COUNT ( * ) * + - 30
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL CAST( NULL AS SIGNED ) - - 78 + CAST( + 89 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL CAST ( NULL AS INTEGER ) - - 78 + CAST ( + 89 AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( + 82, - 6 * + 49 + - 65 + + 8 * - 19 * 78 ) * - 4 AS col2
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT COUNT( ALL + - 36 )
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT COUNT ( ALL + - 36 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT DISTINCT - COUNT( - 30 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT - COUNT ( - 30 ) AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4159
SELECT COUNT( * ) - + NULLIF ( - SUM( + 42 ), + CAST( NULL AS SIGNED ) ) AS col1
----
43

skipif mysql # not compatible
query I rowsort label-4159
SELECT COUNT ( * ) - + NULLIF ( - SUM ( + 42 ), + CAST ( NULL AS INTEGER ) ) AS col1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT 78 * - COUNT( * ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT 78 * - COUNT ( * ) col0
----
-78

query I rowsort
SELECT 46 * - 17 * - 83 * 6
----
389436

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT ALL - SUM( DISTINCT 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - SUM ( DISTINCT 88 )
----
-88

query I rowsort
SELECT + + 10
----
10

query I rowsort
SELECT 53 + - + 19
----
34

query I rowsort
SELECT + + ( 46 ) AS col0
----
46

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4166
SELECT 56 * + + 16 - + + COUNT( * ) - ( + + CASE - + 25 WHEN + - 71 + + - 24 THEN NULL WHEN - + COALESCE ( + 91, - - ( 85 ) / - CAST( 96 AS DECIMAL ) * + - 37 + + MIN( ALL + 36 ), 85 * + 15 + - 10 - - 66 ) THEN ( - 70 ) * 89 - + 26 / + + 82 ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT 56 * + + 16 - + + COUNT ( * ) - ( + + CASE - + 25 WHEN + - 71 + + - 24 THEN NULL WHEN - + COALESCE ( + 91, - - ( 85 ) / - CAST ( 96 AS REAL ) * + - 37 + + MIN ( ALL + 36 ), 85 * + 15 + - 10 - - 66 ) THEN ( - 70 ) * 89 - + 26 / + + 82 ELSE NULL END ) col1
----
NULL

query II rowsort
SELECT + 77, 42 AS col2
----
77
42

query I rowsort
SELECT DISTINCT 62 + - + ( + ( - COALESCE ( 78, + ( 47 ) * - 37, + - 71 ) ) ) + + 10 + ( 13 ) AS col1
----
163

query I rowsort
SELECT ALL - 4 + + 31
----
27

query I rowsort
SELECT ALL + + 97 + - 52 * - - 10 + 79
----
-344

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT DISTINCT - + COUNT( * ) + + + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - + COUNT ( * ) + + + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL - + SUM( DISTINCT 94 ) + - 43 AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL - + SUM ( DISTINCT 94 ) + - 43 AS col2
----
-137

query I rowsort
SELECT - 33 * - 43 AS col0
----
1419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4174
SELECT DISTINCT COUNT( * ) DIV ( + 54 ) + - 34 * + 4 + - 58 col2
----
-194

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT COUNT ( * ) / ( + 54 ) + - 34 * + 4 + - 58 col2
----
-194

query I rowsort
SELECT ALL - - 92 + 28
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4176
SELECT + ( - + 69 ) * - + 28 + 47 + - COUNT( * ) DIV + - 17 AS col1
----
1979

skipif mysql # not compatible
query I rowsort label-4176
SELECT + ( - + 69 ) * - + 28 + 47 + - COUNT ( * ) / + - 17 AS col1
----
1979

query I rowsort
SELECT - 1 AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4178
SELECT - - 8 - + + COUNT( ALL + 59 ) DIV 30 * - + 11 AS col2
----
8

skipif mysql # not compatible
query I rowsort label-4178
SELECT - - 8 - + + COUNT ( ALL + 59 ) / 30 * - + 11 AS col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - - COUNT( - 65 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4179
SELECT - - COUNT ( - 65 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT + COALESCE ( 14, CASE - 81 WHEN 61 + COUNT( * ) THEN - 90 END, - 30 * - 97 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT + COALESCE ( 14, CASE - 81 WHEN 61 + COUNT ( * ) THEN - 90 END, - 30 * - 97 ) AS col2
----
14

query I rowsort
SELECT DISTINCT 69 + - 98 - 36 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT ALL COALESCE ( + ( + MAX( DISTINCT ( - - ( 32 ) ) ) ), 92 + COUNT( * ) * - ( + ( + 46 ) ) )
----
32

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL COALESCE ( + ( + MAX ( DISTINCT ( - - ( 32 ) ) ) ), 92 + COUNT ( * ) * - ( + ( + 46 ) ) )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT DISTINCT + COUNT( * ) - + 64 AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT + COUNT ( * ) - + 64 AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT DISTINCT MIN( ALL + - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT MIN ( ALL + - 53 ) AS col2
----
-53

query I rowsort
SELECT 29 AS col2
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4186
SELECT ALL + CAST( NULL AS SIGNED ) - 70 * - + MAX( + 50 ) * - 66 * - + COUNT( * ) * + CAST( NULL AS SIGNED ) * - - 52 * + - 83 * COUNT( ALL + 73 ) - - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL + CAST ( NULL AS INTEGER ) - 70 * - + MAX ( + 50 ) * - 66 * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - - 52 * + - 83 * COUNT ( ALL + 73 ) - - 64 AS col1
----
NULL

query I rowsort
SELECT DISTINCT 44 * + - 96 AS col1
----
-4224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4188
SELECT ( - - CAST( + - 38 AS SIGNED ) ) DIV + + 47 + + 22
----
22

skipif mysql # not compatible
query I rowsort label-4188
SELECT ( - - CAST ( + - 38 AS INTEGER ) ) / + + 47 + + 22
----
22

query I rowsort
SELECT - 79 * - COALESCE ( 40, + 44 ) AS col2
----
3160

onlyif mysql # aggregate syntax: 
query II rowsort label-4190
SELECT - 38 + 71, - COUNT( * ) AS col0
----
33
-1

skipif mysql # not compatible
query II rowsort label-4190
SELECT - 38 + 71, - COUNT ( * ) AS col0
----
33
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4191
SELECT - 21 DIV - 40 - + 96 + - COUNT( * ) + 97 * + 44 - - + 69
----
4240

skipif mysql # not compatible
query I rowsort label-4191
SELECT - 21 / - 40 - + 96 + - COUNT ( * ) + 97 * + 44 - - + 69
----
4240

query I rowsort
SELECT ( 10 ) AS col1
----
10

query I rowsort
SELECT + 37 * + ( + 21 ) AS col2
----
777

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT ALL + ( - SUM( 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL + ( - SUM ( 21 ) )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4195
SELECT ALL - ( - - 89 ) * 91 + + - 41 - + 56 * - 33 * - - 85 DIV - + COUNT( * ) AS col2
----
-165220

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - ( - - 89 ) * 91 + + - 41 - + 56 * - 33 * - - 85 / - + COUNT ( * ) AS col2
----
-165220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4196
SELECT DISTINCT + CAST( 37 AS SIGNED ) AS col0, - 81 AS col2
----
37
-81

skipif mysql # not compatible
query II rowsort label-4196
SELECT DISTINCT + CAST ( 37 AS INTEGER ) AS col0, - 81 AS col2
----
37
-81

query I rowsort
SELECT ALL + 91 AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT - 45 DIV 66 * - - 34 * - 8 * 62 * + 20
----
0

skipif mysql # not compatible
query I rowsort label-4198
SELECT - 45 / 66 * - - 34 * - 8 * 62 * + 20
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + + 99 * + MIN( DISTINCT - - ( + 63 ) ) * - 83 * + - 57
----
29507247

skipif mysql # not compatible
query I rowsort label-4199
SELECT + + 99 * + MIN ( DISTINCT - - ( + 63 ) ) * - 83 * + - 57
----
29507247

query I rowsort
SELECT DISTINCT + 88
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4201
SELECT + + COUNT( * ) + 72, 46 * - 38 + COALESCE ( + + COUNT( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
73
-1696

skipif mysql # not compatible
query II rowsort label-4201
SELECT + + COUNT ( * ) + 72, 46 * - 38 + COALESCE ( + + COUNT ( * ), + + 78 * + 19, + 87 + 28 ) + 51 AS col2
----
73
-1696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4202
SELECT ALL - - 93 * - + 71 * + 82 + - - CAST( 99 AS SIGNED ) * - 54 * - - COUNT( * )
----
-546792

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL - - 93 * - + 71 * + 82 + - - CAST ( 99 AS INTEGER ) * - 54 * - - COUNT ( * )
----
-546792

query I rowsort
SELECT ALL - 26 * - + 52 + + 54 AS col0
----
1406

query I rowsort
SELECT + 34 AS col2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT + 31 - - CAST( NULL AS SIGNED ) * - 33 / 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 31 - - CAST ( NULL AS INTEGER ) * - 33 / 91 AS col1
----
NULL

query I rowsort
SELECT - - 19 AS col0
----
19

query I rowsort
SELECT + - 23 + - 5
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - + COUNT( 5 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4208
SELECT - + COUNT ( 5 ) AS col1
----
-1

query I rowsort
SELECT - 57 AS col2
----
-57

query I rowsort
SELECT - - 31 * - ( + 66 )
----
-2046

query I rowsort
SELECT ALL 30 AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT + - 62 + + COUNT( * )
----
-61

skipif mysql # not compatible
query I rowsort label-4212
SELECT + - 62 + + COUNT ( * )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL + COALESCE ( + 12, - + CASE - CAST( 57 AS SIGNED ) WHEN - 10 THEN NULL WHEN - COUNT( * ) * - 40 THEN NULL WHEN 36 THEN - + CASE 64 WHEN + + 65 THEN NULL WHEN + CASE + 66 WHEN - - COUNT( * ) THEN - 93 ELSE - NULLIF ( - ( 89 ), - - 46 ) + + 88 * 84 END THEN COALESCE ( - 38, - 28 ) + CASE - 59 WHEN 88 THEN + 13 ELSE NULL END END ELSE NULL END * 56 + + 44 )
----
12

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + COALESCE ( + 12, - + CASE - CAST ( 57 AS INTEGER ) WHEN - 10 THEN NULL WHEN - COUNT ( * ) * - 40 THEN NULL WHEN 36 THEN - + CASE 64 WHEN + + 65 THEN NULL WHEN + CASE + 66 WHEN - - COUNT ( * ) THEN - 93 ELSE - NULLIF ( - ( 89 ), - - 46 ) + + 88 * 84 END THEN COALESCE ( - 38, - 28 ) + CASE - 59 WHEN 88 THEN + 13 ELSE NULL END END ELSE NULL END * 56 + + 44 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT ALL + 36 - + - 81 + + MAX( + 87 ) + NULLIF ( + - 32, COUNT( ALL 54 ) * - + COUNT( * ) + - COUNT( * ) ) AS col0
----
172

skipif mysql # not compatible
query I rowsort label-4214
SELECT ALL + 36 - + - 81 + + MAX ( + 87 ) + NULLIF ( + - 32, COUNT ( ALL 54 ) * - + COUNT ( * ) + - COUNT ( * ) ) AS col0
----
172

query I rowsort
SELECT + 15 * - - 36 AS col2
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT DISTINCT 21 DIV - 41 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT 21 / - 41 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT + COUNT( * ) * + + 88 col1
----
88

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + COUNT ( * ) * + + 88 col1
----
88

query I rowsort
SELECT 76 col0
----
76

query I rowsort
SELECT - 68 + 7 AS col1
----
-61

query I rowsort
SELECT + 56 * 6
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT - COUNT( * ) + 77 col0
----
76

skipif mysql # not compatible
query I rowsort label-4221
SELECT - COUNT ( * ) + 77 col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT + MIN( + 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + MIN ( + 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT DISTINCT + SUM( 72 ) AS col1
----
72

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + SUM ( 72 ) AS col1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4224
SELECT ALL + CAST( NULL AS DECIMAL ), - 66 + - + 58 + CAST( NULL AS DECIMAL ) * + - 89 AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4224
SELECT ALL + CAST ( NULL AS REAL ), - 66 + - + 58 + CAST ( NULL AS REAL ) * + - 89 AS col2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT ALL + CASE + + COALESCE ( + - ( - 98 ), - - 20 * + + COUNT( * ) / AVG ( + 16 ) ) WHEN + CASE - SUM( + + 19 ) WHEN + 83 - + + 73 + - 49 - - - COUNT( * ) / 10 THEN - - 45 END THEN - 37 WHEN - - 68 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL + CASE + + COALESCE ( + - ( - 98 ), - - 20 * + + COUNT ( * ) / AVG ( + 16 ) ) WHEN + CASE - SUM ( + + 19 ) WHEN + 83 - + + 73 + - 49 - - - COUNT ( * ) / 10 THEN - - 45 END THEN - 37 WHEN - - 68 THEN NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4226
SELECT + 90 * CAST( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS SIGNED ) AS col1, 66 AS col1
----
4860
66

skipif mysql # not compatible
query II rowsort label-4226
SELECT + 90 * CAST ( + - NULLIF ( + - 54, 32 * + 42 + - 19 + + CASE ( - 16 ) WHEN - + 74 * - 20 THEN NULL WHEN + 73 THEN NULL ELSE - 16 * 90 END ) AS INTEGER ) AS col1, 66 AS col1
----
4860
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT - COUNT( * ) - + + 20
----
-21

skipif mysql # not compatible
query I rowsort label-4227
SELECT - COUNT ( * ) - + + 20
----
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4228
SELECT COALESCE ( - CAST( - 99 AS SIGNED ), - NULLIF ( - CAST( - 75 AS SIGNED ), - 12 ) ) DIV - 58 - - COALESCE ( 95, + 9 ) - MAX( - + 67 ) + + - 39 * - + 93 * COALESCE ( + ( + 53 ), + + 73 ) - - 10 - - - 87 * COUNT( * ) * - NULLIF ( - 49, - 32 - - 56 - 71 * - 87 ) + - + ( + ( 69 ) ) AS col2
----
188070

skipif mysql # not compatible
query I rowsort label-4228
SELECT COALESCE ( - CAST ( - 99 AS INTEGER ), - NULLIF ( - CAST ( - 75 AS INTEGER ), - 12 ) ) / - 58 - - COALESCE ( 95, + 9 ) - MAX ( - + 67 ) + + - 39 * - + 93 * COALESCE ( + ( + 53 ), + + 73 ) - - 10 - - - 87 * COUNT ( * ) * - NULLIF ( - 49, - 32 - - 56 - 71 * - 87 ) + - + ( + ( 69 ) ) AS col2
----
188070

query I rowsort
SELECT ALL + 11 * - 84 AS col0
----
-924

query I rowsort
SELECT - + 54 * - ( - 84 )
----
-4536

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT ALL + 50 DIV + 86 + + + 49 + + 44
----
93

skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + 50 / + 86 + + + 49 + + 44
----
93

query I rowsort
SELECT DISTINCT - + 88 + - 83
----
-171

query I rowsort
SELECT ALL + + 26 * - 20
----
-520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - 52 AS col0
----
-52

query I rowsort
SELECT + - 42
----
-42

query I rowsort
SELECT - 21 * + 93 + - 99
----
-2052

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4238
SELECT ALL - 88 / + 32 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL - 88 / + 32 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT 34 * + + 34 col0
----
1156

onlyif mysql # DIV for integer division: 
query I rowsort label-4240
SELECT 65 DIV + + 89 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4240
SELECT 65 / + + 89 AS col1
----
0

query I rowsort
SELECT ALL + 8 AS col0
----
8

query I rowsort
SELECT ALL 86 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4243
SELECT - 97, 69 * + - 13 * - 99 + + CAST( NULL AS SIGNED ) + 62 + + 11 * COUNT( * ) AS col0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-4243
SELECT - 97, 69 * + - 13 * - 99 + + CAST ( NULL AS INTEGER ) + 62 + + 11 * COUNT ( * ) AS col0
----
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL - MAX( ( - 77 ) ) - + 46
----
31

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL - MAX ( ( - 77 ) ) - + 46
----
31

query I rowsort
SELECT ALL - 70 AS col2
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT DISTINCT ( SUM( DISTINCT + + 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-4246
SELECT DISTINCT ( SUM ( DISTINCT + + 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL COUNT( * ) - + ( 29 ) + - 31 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL COUNT ( * ) - + ( 29 ) + - 31 AS col2
----
-59

query I rowsort
SELECT DISTINCT 5 AS col0
----
5

query I rowsort
SELECT ALL 11 AS col2
----
11

query II rowsort
SELECT - 12, + 78 + - ( - 79 ) AS col2
----
-12
157

query I rowsort
SELECT 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT COUNT( * ) * - - 98
----
98

skipif mysql # not compatible
query I rowsort label-4252
SELECT COUNT ( * ) * - - 98
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ( + + 62 ) * + MIN( - 32 ) col1
----
-1984

skipif mysql # not compatible
query I rowsort label-4253
SELECT ( + + 62 ) * + MIN ( - 32 ) col1
----
-1984

query I rowsort
SELECT DISTINCT 68 AS col0
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT 20 - 2, NULLIF ( 46, + 15 ) + - COUNT( * ) AS col2
----
18
45

skipif mysql # not compatible
query II rowsort label-4255
SELECT 20 - 2, NULLIF ( 46, + 15 ) + - COUNT ( * ) AS col2
----
18
45

query I rowsort
SELECT ALL 22 AS col0
----
22

query II rowsort
SELECT ALL 74 AS col0, 32 * - 31 * - - ( - + 54 ) + - 79
----
74
53489

query I rowsort
SELECT ( 52 ) - + - 63 + + CASE + - 85 WHEN + 91 THEN + - 78 * + 27 / + 51 / - - 89 END * + 62 * + 50 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT CAST( NULL AS SIGNED ) * 57 * + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4259
SELECT CAST ( NULL AS INTEGER ) * 57 * + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL - 0 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4261
SELECT 71 * + - NULLIF ( - 82, + 20 - + NULLIF ( - 10, + COUNT( * ) ) * + AVG ( ALL + ( - 40 ) ) * + + 14 + + 15 + - - 40 * + 31 / + + ( - + 36 ) ) AS col1, 15 AS col0
----
5822
15

skipif mysql # not compatible
query II rowsort label-4261
SELECT 71 * + - NULLIF ( - 82, + 20 - + NULLIF ( - 10, + COUNT ( * ) ) * + AVG ( ALL + ( - 40 ) ) * + + 14 + + 15 + - - 40 * + 31 / + + ( - + 36 ) ) AS col1, 15 AS col0
----
5822
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT + 6 * + + 15 + - CAST( NULL AS SIGNED ) - - + 51 * 73
----
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT + 6 * + + 15 + - CAST ( NULL AS INTEGER ) - - + 51 * 73
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4263
SELECT - CAST( NULL AS DECIMAL ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4263
SELECT - CAST ( NULL AS REAL ) * + 42 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4264
SELECT 39 * - - COUNT( DISTINCT 10 ) * 91 + + ( + - 49 ) + + + COUNT( + CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT 39 * - - COUNT ( DISTINCT 10 ) * 91 + + ( + - 49 ) + + + COUNT ( + CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4265
SELECT ALL 24 * + 55 + - 62 * - 96 DIV + COUNT( * )
----
7272

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 24 * + 55 + - 62 * - 96 / + COUNT ( * )
----
7272

query I rowsort
SELECT DISTINCT - 75 * 89
----
-6675

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + 17 + + COUNT( * ) * - 36
----
-19

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + 17 + + COUNT ( * ) * - 36
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT ALL - - COUNT( * ) col1
----
1

skipif mysql # not compatible
query I rowsort label-4268
SELECT ALL - - COUNT ( * ) col1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4269
SELECT ALL - 20, + CAST( NULL AS DECIMAL ) AS col1
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-4269
SELECT ALL - 20, + CAST ( NULL AS REAL ) AS col1
----
-20
NULL

query I rowsort
SELECT + - 79
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT + ( 25 ), SUM( - 37 ) col0
----
25
-37

skipif mysql # not compatible
query II rowsort label-4271
SELECT + ( 25 ), SUM ( - 37 ) col0
----
25
-37

query I rowsort
SELECT ALL - + 73 col1
----
-73

query II rowsort
SELECT + - 56, ( 27 ) AS col1
----
-56
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4274
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4274
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 35 - + + NULLIF ( + - 25, + 69 ) * + 2 - + ( + + 56 ) + + 62
----
91

query I rowsort
SELECT 79 + - - 63
----
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4277
SELECT DISTINCT + + 73 * + - 14 col0, + COUNT( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN( - + CAST( NULL AS SIGNED ) ) ), + + COUNT( * ) ) ) AS col0
----
-1022
-72

skipif mysql # not compatible
query II rowsort label-4277
SELECT DISTINCT + + 73 * + - 14 col0, + COUNT ( * ) - - + ( - NULLIF ( NULLIF ( + 73, - + 42 * + + 65 + - + 42 - + 42 * - ( 20 ) * - MAX ( ALL + - COALESCE ( 78, - ( + 79 ) ) ) + - 77 * + 52 - - 21 / + CASE 81 WHEN - 58 THEN + 33 + - 78 ELSE NULL END + MIN ( - + CAST ( NULL AS INTEGER ) ) ), + + COUNT ( * ) ) ) AS col0
----
-1022
-72

query I rowsort
SELECT DISTINCT + + ( 72 ) * ( + 80 ) + - - 83 AS col0
----
5843

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT ALL - 69 AS col1, MAX( + 45 )
----
-69
45

skipif mysql # not compatible
query II rowsort label-4279
SELECT ALL - 69 AS col1, MAX ( + 45 )
----
-69
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4280
SELECT + COUNT( * ) * - CASE + + MAX( - 70 ) WHEN + - 8 THEN 16 * COUNT( * ) / 55 WHEN - CAST( + 22 AS DECIMAL ) + - CAST( NULL AS SIGNED ) + + COUNT( * ) + ( + 31 ) * 37 - - 99 THEN NULL WHEN - 8 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT + COUNT ( * ) * - CASE + + MAX ( - 70 ) WHEN + - 8 THEN 16 * COUNT ( * ) / 55 WHEN - CAST ( + 22 AS REAL ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + ( + 31 ) * 37 - - 99 THEN NULL WHEN - 8 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT ALL + - NULLIF ( + CAST( NULL AS SIGNED ), - 50 / + 10 ) * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + - NULLIF ( + CAST ( NULL AS INTEGER ), - 50 / + 10 ) * 9
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT DISTINCT MAX( ALL + 11 )
----
11

skipif mysql # not compatible
query I rowsort label-4282
SELECT DISTINCT MAX ( ALL + 11 )
----
11

query I rowsort
SELECT DISTINCT - 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 5 + + - MAX( ALL + 99 ) + - 55 * + - 71
----
3811

skipif mysql # not compatible
query I rowsort label-4284
SELECT 5 + + - MAX ( ALL + 99 ) + - 55 * + - 71
----
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL SUM( DISTINCT + 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL SUM ( DISTINCT + 83 ) AS col1
----
83

query II rowsort
SELECT 14 * - 85 AS col1, - 58
----
-1190
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4287
SELECT ALL MIN( 80 )
----
80

skipif mysql # not compatible
query I rowsort label-4287
SELECT ALL MIN ( 80 )
----
80

query I rowsort
SELECT ALL 20 * + 19 AS col1
----
380

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL + ( - SUM( DISTINCT 5 ) ) + - NULLIF ( 66, 46 * - 29 + ( + NULLIF ( + + 50, + - MAX( + 33 ) + - 92 ) ) ) * - - MIN( + + 52 ) AS col0
----
-3437

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL + ( - SUM ( DISTINCT 5 ) ) + - NULLIF ( 66, 46 * - 29 + ( + NULLIF ( + + 50, + - MAX ( + 33 ) + - 92 ) ) ) * - - MIN ( + + 52 ) AS col0
----
-3437

query I rowsort
SELECT DISTINCT 14 + - 10 col2
----
4

onlyif mysql # aggregate syntax: 
query III rowsort label-4291
SELECT DISTINCT + 28 + + 3, + 67 * - COUNT( * ) + - 21 AS col0, + COUNT( - 51 ) * MIN( 55 ) AS col0
----
31
-88
55

skipif mysql # not compatible
query III rowsort label-4291
SELECT DISTINCT + 28 + + 3, + 67 * - COUNT ( * ) + - 21 AS col0, + COUNT ( - 51 ) * MIN ( 55 ) AS col0
----
31
-88
55

query I rowsort
SELECT ALL 32 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT COUNT( * ) * - 35
----
-35

skipif mysql # not compatible
query I rowsort label-4293
SELECT COUNT ( * ) * - 35
----
-35

query I rowsort
SELECT ( NULLIF ( 63, + 53 ) ) + NULLIF ( - CASE 54 WHEN - - 39 THEN - 52 ELSE 39 + 59 END, + 93 )
----
-35

query I rowsort
SELECT ALL 61 * - 65 AS col2
----
-3965

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT ALL 13 + + 12 + - SUM( ALL 20 ) * 89
----
-1755

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL 13 + + 12 + - SUM ( ALL 20 ) * 89
----
-1755

onlyif mysql # aggregate syntax: 
query II rowsort label-4297
SELECT DISTINCT COALESCE ( + 48, COUNT( * ) ) AS col0, 48 AS col0
----
48
48

skipif mysql # not compatible
query II rowsort label-4297
SELECT DISTINCT COALESCE ( + 48, COUNT ( * ) ) AS col0, 48 AS col0
----
48
48

query I rowsort
SELECT DISTINCT + - 12
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT + 52 DIV + 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4299
SELECT + 52 / + 57 AS col2
----
0

query I rowsort
SELECT DISTINCT + - 96
----
-96

query I rowsort
SELECT ALL - - 25 * + - 38
----
-950

query I rowsort
SELECT + + 7 - + ( - 22 ) - 40 * ( - + 68 )
----
2749

query I rowsort
SELECT + - 92 AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT + CAST( NULL AS SIGNED ) * - 58 + 73 - + + COUNT( * ) + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4304
SELECT + CAST ( NULL AS INTEGER ) * - 58 + 73 - + + COUNT ( * ) + COUNT ( * ) col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4305
SELECT ALL CASE + COUNT( * ) WHEN COUNT( * ) + + 28 + + - 53 + + CASE 76 WHEN - - 68 * - 75 * - + COUNT( * ) THEN 43 WHEN 31 * + 66 + - 48 THEN - + 97 * - COUNT( * ) ELSE 58 * - SUM( ALL ( + 16 ) ) END + - COALESCE ( + 26, 41 ) * 61 - - + 40 * + + 10 * + 77 THEN + SUM( ALL + + 65 ) * - 44 WHEN 62 THEN - 59 WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE NULL END * 30 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL CASE + COUNT ( * ) WHEN COUNT ( * ) + + 28 + + - 53 + + CASE 76 WHEN - - 68 * - 75 * - + COUNT ( * ) THEN 43 WHEN 31 * + 66 + - 48 THEN - + 97 * - COUNT ( * ) ELSE 58 * - SUM ( ALL ( + 16 ) ) END + - COALESCE ( + 26, 41 ) * 61 - - + 40 * + + 10 * + 77 THEN + SUM ( ALL + + 65 ) * - 44 WHEN 62 THEN - 59 WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE NULL END * 30 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT + 27 * + 78 * + COUNT( * )
----
2106

skipif mysql # not compatible
query I rowsort label-4306
SELECT + 27 * + 78 * + COUNT ( * )
----
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-4307
SELECT + 37 * - 3 + - 95 DIV - 75 + - - 77
----
-33

skipif mysql # not compatible
query I rowsort label-4307
SELECT + 37 * - 3 + - 95 / - 75 + - - 77
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4308
SELECT ALL COALESCE ( 57, - + COUNT( * ) DIV + 86 * - COUNT( * ) ) * - 24 * + 29 * - - MIN( + 58 ) + 81
----
-2300895

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL COALESCE ( 57, - + COUNT ( * ) / + 86 * - COUNT ( * ) ) * - 24 * + 29 * - - MIN ( + 58 ) + 81
----
-2300895

query I rowsort
SELECT DISTINCT 28 * - 56 * - 44 * - 12 * + + 13
----
-10762752

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT ALL + CASE - COUNT( * ) WHEN + 90 * 26 + 26 THEN - 10 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT ALL + CASE - COUNT ( * ) WHEN + 90 * 26 + 26 THEN - 10 END
----
NULL

query I rowsort
SELECT ALL + - 30 AS col0
----
-30

query I rowsort
SELECT DISTINCT + 15 AS col0
----
15

query I rowsort
SELECT + - 73
----
-73

query I rowsort
SELECT ALL + - 87
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT + COUNT( ALL - 45 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + COUNT ( ALL - 45 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT MIN( - 53 ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-4316
SELECT MIN ( - 53 ) AS col1
----
-53

query I rowsort
SELECT - 21 * - - 48
----
-1008

query I rowsort
SELECT ALL - 14 + - 18 + + 34
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL MIN( DISTINCT - 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL MIN ( DISTINCT - 86 )
----
-86

query I rowsort
SELECT DISTINCT 56 + + 7
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4321
SELECT ALL - 87 * - + COALESCE ( 5, 44 * + + COUNT( * ) + + + ( - 37 ), + 7 DIV AVG ( ALL + ( + 2 ) ) * - 42 )
----
435

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL - 87 * - + COALESCE ( 5, 44 * + + COUNT ( * ) + + + ( - 37 ), + 7 / AVG ( ALL + ( + 2 ) ) * - 42 )
----
435

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT - 85 * + - CASE - 97 WHEN - 67 * 52 + + + COUNT( * ) THEN NULL WHEN - - 17 THEN - + COUNT( * ) * + 46 * + - 28 ELSE - - 81 + + 59 - - 27 END
----
14195

skipif mysql # not compatible
query I rowsort label-4322
SELECT - 85 * + - CASE - 97 WHEN - 67 * 52 + + + COUNT ( * ) THEN NULL WHEN - - 17 THEN - + COUNT ( * ) * + 46 * + - 28 ELSE - - 81 + + 59 - - 27 END
----
14195

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT SUM( DISTINCT + 48 )
----
48

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT SUM ( DISTINCT + 48 )
----
48

query II rowsort
SELECT 30 AS col2, + 93 AS col2
----
30
93

query I rowsort
SELECT - 73 + - - 36
----
-37

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4326
SELECT DISTINCT - 69 + - 95 DIV + + 13 + - 95 + CAST( 60 AS SIGNED ) AS col1
----
-111

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT - 69 + - 95 / + + 13 + - 95 + CAST ( 60 AS INTEGER ) AS col1
----
-111

query I rowsort
SELECT 22 AS col2
----
22

query I rowsort
SELECT ALL - 52 + 22 AS col1
----
-30

query I rowsort
SELECT - 19 - + 23
----
-42

query I rowsort
SELECT ALL COALESCE ( + 19, + 61 )
----
19

query I rowsort
SELECT ALL 96
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - SUM( + - 60 ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-4332
SELECT - SUM ( + - 60 ) AS col2
----
60

query I rowsort
SELECT DISTINCT ( - + ( - 20 ) ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-4334
SELECT ALL + 52 - - 6 DIV - 68 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL + 52 - - 6 / - 68 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4335
SELECT DISTINCT 30, COUNT( * ) * + - ( - 51 ) * NULLIF ( + + CAST( + + 72 AS SIGNED ), - AVG ( 11 ) + + NULLIF ( + 46, - - 92 - - 57 ) ) + + ( - - 3 ) AS col2
----
30
3675

skipif mysql # not compatible
query II rowsort label-4335
SELECT DISTINCT 30, COUNT ( * ) * + - ( - 51 ) * NULLIF ( + + CAST ( + + 72 AS INTEGER ), - AVG ( 11 ) + + NULLIF ( + 46, - - 92 - - 57 ) ) + + ( - - 3 ) AS col2
----
30
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-4336
SELECT - 89 + - + 35 + - 40 DIV + 77 AS col1
----
-124

skipif mysql # not compatible
query I rowsort label-4336
SELECT - 89 + - + 35 + - 40 / + 77 AS col1
----
-124

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + MAX( - 80 ) * - 78 * 55 AS col2
----
343200

skipif mysql # not compatible
query I rowsort label-4337
SELECT + MAX ( - 80 ) * - 78 * 55 AS col2
----
343200

query I rowsort
SELECT ALL - - 6 * + - 22
----
-132

onlyif mysql # aggregate syntax: 
query II rowsort label-4339
SELECT - - COUNT( * ) AS col2, 47 - - 62 + + 27 * + - MIN( + - 35 ) AS col2
----
1
1054

skipif mysql # not compatible
query II rowsort label-4339
SELECT - - COUNT ( * ) AS col2, 47 - - 62 + + 27 * + - MIN ( + - 35 ) AS col2
----
1
1054

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT + COUNT( * ) * 71 + + - COUNT( * ) - - 47 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-4340
SELECT + COUNT ( * ) * 71 + + - COUNT ( * ) - - 47 AS col1
----
117

query I rowsort
SELECT + + 94
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT DISTINCT + MIN( + 13 ) AS col2
----
13

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT + MIN ( + 13 ) AS col2
----
13

query I rowsort
SELECT - + 70 * 96 + - 35 + - + 23 col2
----
-6778

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4344
SELECT + + CAST( + 56 AS SIGNED ) * + 22 + 92 + + 22
----
1346

skipif mysql # not compatible
query I rowsort label-4344
SELECT + + CAST ( + 56 AS INTEGER ) * + 22 + 92 + + 22
----
1346

query I rowsort
SELECT ALL + - 69
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT + - COUNT( ALL + 48 ) * + 74 + - + 95
----
-169

skipif mysql # not compatible
query I rowsort label-4346
SELECT + - COUNT ( ALL + 48 ) * + 74 + - + 95
----
-169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT DISTINCT - - 64 * - CAST( 24 AS SIGNED ) * 33
----
-50688

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT - - 64 * - CAST ( 24 AS INTEGER ) * 33
----
-50688

query I rowsort
SELECT - 47 * + 79 * + 44 + - ( + ( - - 15 ) ) * - - ( + 26 ) * 41 AS col0
----
-179362

query I rowsort
SELECT ALL + 19 AS col1
----
19

query I rowsort
SELECT ALL + + 35
----
35

query I rowsort
SELECT DISTINCT + + 53
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT ALL 58 DIV 53
----
1

skipif mysql # not compatible
query I rowsort label-4352
SELECT ALL 58 / 53
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT - 59 * + + 27 / - CASE - - 97 WHEN - 52 THEN NULL WHEN 52 * - - 83 * COUNT( * ) + 2 THEN + 60 END + - 51 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-4353
SELECT - 59 * + + 27 / - CASE - - 97 WHEN - 52 THEN NULL WHEN 52 * - - 83 * COUNT ( * ) + 2 THEN + 60 END + - 51 + + 89
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT COUNT( + 89 )
----
1

skipif mysql # not compatible
query I rowsort label-4354
SELECT COUNT ( + 89 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4355
SELECT - + 88 DIV 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-4355
SELECT - + 88 / 31 AS col2
----
-2

query I rowsort
SELECT DISTINCT + 17 * 68 * 6 + CASE ( + 38 ) WHEN + 1 THEN - ( - - 89 ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT ALL - 33 * - 90 + 69 * - ( + ( + 57 ) ) * + + 57 + 16 - - - 55 AS col0, 0
----
-221250
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4358
SELECT ALL + 84 * - 65 + MIN( 13 ) AS col1, - 47
----
-5447
-47

skipif mysql # not compatible
query II rowsort label-4358
SELECT ALL + 84 * - 65 + MIN ( 13 ) AS col1, - 47
----
-5447
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4359
SELECT DISTINCT + 0 * + 78 * 33 + - COALESCE ( 50, - ( - 72 ), + 92 + + - COUNT( DISTINCT 89 ) * - COUNT( * ) ) + CAST( 0 AS SIGNED ) * 28 * - CAST( + 29 AS SIGNED ) * + 56 + - 42 col1
----
-92

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + 0 * + 78 * 33 + - COALESCE ( 50, - ( - 72 ), + 92 + + - COUNT ( DISTINCT 89 ) * - COUNT ( * ) ) + CAST ( 0 AS INTEGER ) * 28 * - CAST ( + 29 AS INTEGER ) * + 56 + - 42 col1
----
-92

query I rowsort
SELECT + 73 + - 99 + - 2
----
-28

query I rowsort
SELECT COALESCE ( - - 10, + 83 ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT - CAST( + 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-4362
SELECT - CAST ( + 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT SUM( + - 89 )
----
-89

skipif mysql # not compatible
query I rowsort label-4363
SELECT SUM ( + - 89 )
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT ALL SUM( ALL - 40 ) * COUNT( * ) * - COUNT( * ) * + ( + 40 ) * + - COUNT( * ) + + 94 AS col1
----
-1506

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL SUM ( ALL - 40 ) * COUNT ( * ) * - COUNT ( * ) * + ( + 40 ) * + - COUNT ( * ) + + 94 AS col1
----
-1506

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT 84 + - - 3 + + 72 + + MIN( ALL + 20 ) AS col0
----
179

skipif mysql # not compatible
query I rowsort label-4365
SELECT 84 + - - 3 + + 72 + + MIN ( ALL + 20 ) AS col0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4366
SELECT CAST( - - 54 AS DECIMAL ) + + 33 - + 23 - - + CASE + 50 WHEN + - CAST( NULL AS SIGNED ) + - 95 THEN - - 26 WHEN 45 + - 99 THEN NULL END * + - 4 / - - 97 / - 37 + - + NULLIF ( ( + - 52 ), - MAX( + 69 ) ), + 18 AS col1
----
NULL
18

skipif mysql # not compatible
query II rowsort label-4366
SELECT CAST ( - - 54 AS REAL ) + + 33 - + 23 - - + CASE + 50 WHEN + - CAST ( NULL AS INTEGER ) + - 95 THEN - - 26 WHEN 45 + - 99 THEN NULL END * + - 4 / - - 97 / - 37 + - + NULLIF ( ( + - 52 ), - MAX ( + 69 ) ), + 18 AS col1
----
NULL
18

query I rowsort
SELECT ALL 36 col2
----
36

query I rowsort
SELECT DISTINCT 88 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT 74 + - COUNT( * ) + NULLIF ( + 26, - 67 ) * + - 23 AS col2
----
-525

skipif mysql # not compatible
query I rowsort label-4369
SELECT 74 + - COUNT ( * ) + NULLIF ( + 26, - 67 ) * + - 23 AS col2
----
-525

query I rowsort
SELECT - 47 AS col0
----
-47

query I rowsort
SELECT ALL + 48 * - - ( 78 ) * - 54
----
-202176

onlyif mysql # aggregate syntax: 
query II rowsort label-4372
SELECT DISTINCT - NULLIF ( 74, COUNT( + 11 ) * MIN( 92 ) + - 16 * + COALESCE ( MAX( + - 69 ), - 79, COUNT( * ) ) ) AS col0, 94
----
-74
94

skipif mysql # not compatible
query II rowsort label-4372
SELECT DISTINCT - NULLIF ( 74, COUNT ( + 11 ) * MIN ( 92 ) + - 16 * + COALESCE ( MAX ( + - 69 ), - 79, COUNT ( * ) ) ) AS col0, 94
----
-74
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT + SUM( DISTINCT 10 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-4373
SELECT + SUM ( DISTINCT 10 ) AS col0
----
10

query I rowsort
SELECT + 70 + - 61
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT + 9 DIV + + NULLIF ( + - 65, + 14 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT + 9 / + + NULLIF ( + - 65, + 14 ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + COUNT( 53 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + COUNT ( 53 ) AS col0
----
1

query I rowsort
SELECT - 87 AS col2
----
-87

query I rowsort
SELECT ALL 9
----
9

query I rowsort
SELECT 85 + - + 43 + 71 + - 14 AS col1
----
99

query I rowsort
SELECT DISTINCT - - 1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT 31 DIV + 67 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT 31 / + 67 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4382
SELECT - 59 * + COUNT( * ) * 55 col1
----
-3245

skipif mysql # not compatible
query I rowsort label-4382
SELECT - 59 * + COUNT ( * ) * 55 col1
----
-3245

query I rowsort
SELECT + - 65 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - + COALESCE ( 96, + 97 - + + MIN( + 11 ) - + 39 )
----
-96

skipif mysql # not compatible
query I rowsort label-4384
SELECT ALL - + COALESCE ( 96, + 97 - + + MIN ( + 11 ) - + 39 )
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4385
SELECT - + CASE 0 WHEN - 79 THEN MIN( ALL 61 ) + + CASE 90 WHEN + 51 * + 89 * - 52 * - COUNT( * ) / - - 1 + 98 + + - 45 + 40 * - 31 + - 85 THEN NULL WHEN + COUNT( * ) * - + ( - - CAST( + - 36 AS SIGNED ) ) THEN + - COALESCE ( + 96, - ( - 29 ) / - 54, + - 99 ) END ELSE NULL END * ( + NULLIF ( - 49, + 1 - 63 * - CASE - 28 WHEN - CAST( NULL AS SIGNED ) THEN + COUNT( ALL 94 ) / 73 + 7 END / - CAST( NULL AS SIGNED ) - + CASE + COUNT( * ) WHEN + 31 / 97 THEN 42 + + 54 * 46 END ) ) * 24 + 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT - + CASE 0 WHEN - 79 THEN MIN ( ALL 61 ) + + CASE 90 WHEN + 51 * + 89 * - 52 * - COUNT ( * ) / - - 1 + 98 + + - 45 + 40 * - 31 + - 85 THEN NULL WHEN + COUNT ( * ) * - + ( - - CAST ( + - 36 AS INTEGER ) ) THEN + - COALESCE ( + 96, - ( - 29 ) / - 54, + - 99 ) END ELSE NULL END * ( + NULLIF ( - 49, + 1 - 63 * - CASE - 28 WHEN - CAST ( NULL AS INTEGER ) THEN + COUNT ( ALL 94 ) / 73 + 7 END / - CAST ( NULL AS INTEGER ) - + CASE + COUNT ( * ) WHEN + 31 / 97 THEN 42 + + 54 * 46 END ) ) * 24 + 84 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT + 25 * - + ( + - COUNT( * ) )
----
25

skipif mysql # not compatible
query I rowsort label-4386
SELECT + 25 * - + ( + - COUNT ( * ) )
----
25

query I rowsort
SELECT DISTINCT - 75 AS col0
----
-75

query I rowsort
SELECT DISTINCT - 59 + + + 65 AS col0
----
6

query I rowsort
SELECT ALL - - 92
----
92

query I rowsort
SELECT - ( - 6 ) * - 31 + + - 3
----
-189

query I rowsort
SELECT ALL - 69 AS col0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4392
SELECT DISTINCT 39 + - ( COUNT( * ) ) * + 99 DIV + 57, 15 - 12 + COALESCE ( + + 68, + + 94 + + + 71 DIV + 26 ) * + COUNT( * ) + + - 18 AS col1
----
38
53

skipif mysql # not compatible
query II rowsort label-4392
SELECT DISTINCT 39 + - ( COUNT ( * ) ) * + 99 / + 57, 15 - 12 + COALESCE ( + + 68, + + 94 + + + 71 / + 26 ) * + COUNT ( * ) + + - 18 AS col1
----
38
53

query I rowsort
SELECT ALL 98 + - 17 AS col1
----
81

query I rowsort
SELECT ALL - 85 AS col2
----
-85

query I rowsort
SELECT 20 * + - 62
----
-1240

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL 38 - - 25 * + + 31 + - NULLIF ( + - 62, MIN( ALL 5 ) ) + - - 37 - + 46 + 39 * + 18 col1
----
1568

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL 38 - - 25 * + + 31 + - NULLIF ( + - 62, MIN ( ALL 5 ) ) + - - 37 - + 46 + 39 * + 18 col1
----
1568

query I rowsort
SELECT DISTINCT 55 * + NULLIF ( + 16, - + 83 * - - 45 * + - 24 ) AS col2
----
880

query I rowsort
SELECT DISTINCT ( ( - 25 ) ) - - + 70
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4399
SELECT DISTINCT 31 * - COUNT( * )
----
-31

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT 31 * - COUNT ( * )
----
-31

query I rowsort
SELECT DISTINCT 31 AS col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL 2 - COUNT( + 21 )
----
1

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL 2 - COUNT ( + 21 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT COUNT( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4402
SELECT COUNT ( 4 ) * NULLIF ( - 62, + 36 * ( + 25 ) )
----
-62

query II rowsort
SELECT DISTINCT 96 * + 36 * - - 93 AS col2, 56 AS col2
----
321408
56

query II rowsort
SELECT 98 col1, + ( + + 81 )
----
98
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT MAX( + + 28 ) + + + 96 + - 60 - - 73 * 69 * + COUNT( - 45 ) * + 54
----
272062

skipif mysql # not compatible
query I rowsort label-4405
SELECT MAX ( + + 28 ) + + + 96 + - 60 - - 73 * 69 * + COUNT ( - 45 ) * + 54
----
272062

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT ALL 48 - - 47 * - COUNT( * ) - + 36 * + 25
----
-899

skipif mysql # not compatible
query I rowsort label-4406
SELECT ALL 48 - - 47 * - COUNT ( * ) - + 36 * + 25
----
-899

query I rowsort
SELECT + 84 + + 11 AS col2
----
95

query I rowsort
SELECT DISTINCT - ( + + 12 )
----
-12

query I rowsort
SELECT DISTINCT 15 AS col0
----
15

query I rowsort
SELECT - 7 - - + 67
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT ALL + - 39 * - - CASE + 63 WHEN 90 - - 78 THEN NULL WHEN - + 60 + - 15 + + SUM( - 29 ) + - 72 THEN NULL ELSE - COUNT( + 67 ) + 52 END + + 65 col1
----
-1924

skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL + - 39 * - - CASE + 63 WHEN 90 - - 78 THEN NULL WHEN - + 60 + - 15 + + SUM ( - 29 ) + - 72 THEN NULL ELSE - COUNT ( + 67 ) + 52 END + + 65 col1
----
-1924

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + COUNT( * ) * 90 * 85 col0
----
7650

skipif mysql # not compatible
query I rowsort label-4412
SELECT + COUNT ( * ) * 90 * 85 col0
----
7650

query I rowsort
SELECT ALL + 13 AS col0
----
13

query I rowsort
SELECT - 34 + - - 1 + - - 94 AS col1
----
61

query I rowsort
SELECT DISTINCT 71 AS col0
----
71

query I rowsort
SELECT ALL + 82 * - 80 AS col2
----
-6560

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + SUM( - + 15 ) * + 24 AS col1
----
-360

skipif mysql # not compatible
query I rowsort label-4417
SELECT + SUM ( - + 15 ) * + 24 AS col1
----
-360

query I rowsort
SELECT 49 + - - 67
----
116

query I rowsort
SELECT ( 28 )
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4421
SELECT 69 DIV - + 90 + + - 75 + CAST( - 40 AS SIGNED ) * - ( + + CASE - MIN( DISTINCT 31 ) WHEN - + 68 THEN NULL ELSE - ( + 1 ) END ) * 25 + + 74 - - 31 AS col2
----
-970

skipif mysql # not compatible
query I rowsort label-4421
SELECT 69 / - + 90 + + - 75 + CAST ( - 40 AS INTEGER ) * - ( + + CASE - MIN ( DISTINCT 31 ) WHEN - + 68 THEN NULL ELSE - ( + 1 ) END ) * 25 + + 74 - - 31 AS col2
----
-970

query I rowsort
SELECT DISTINCT - + 58 AS col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4423
SELECT ALL - - 54 * 98 + CAST( 43 AS SIGNED ) AS col0
----
5335

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL - - 54 * 98 + CAST ( 43 AS INTEGER ) AS col0
----
5335

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT DISTINCT - 13 * COUNT( * ) + 62 + - 59 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - 13 * COUNT ( * ) + 62 + - 59 AS col1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4425
SELECT ALL + 66 / - - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + 66 / - - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4426
SELECT 48 DIV 25 * - - 93 + + 69 AS col1
----
162

skipif mysql # not compatible
query I rowsort label-4426
SELECT 48 / 25 * - - 93 + + 69 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ALL - COUNT( * ) * 41 + - - 61 + 38 + - 67
----
-9

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - COUNT ( * ) * 41 + - - 61 + 38 + - 67
----
-9

query I rowsort
SELECT ALL 57 * 58
----
3306

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT ALL - ( + ( - COALESCE ( - - 29, CASE 21 WHEN + COUNT( * ) THEN + - 48 + - 58 END ) ) ) * - + ( - 86 ) AS col2
----
2494

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - ( + ( - COALESCE ( - - 29, CASE 21 WHEN + COUNT ( * ) THEN + - 48 + - 58 END ) ) ) * - + ( - 86 ) AS col2
----
2494

query I rowsort
SELECT 20 + + 95 AS col0
----
115

query II rowsort
SELECT + 5 col2, - 45 + + 70 AS col2
----
5
25

onlyif mysql # aggregate syntax: 
query II rowsort label-4432
SELECT COUNT( * ) AS col0, 80
----
1
80

skipif mysql # not compatible
query II rowsort label-4432
SELECT COUNT ( * ) AS col0, 80
----
1
80

query I rowsort
SELECT - 93 * 81 + + - 15
----
-7548

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT MIN( + + 28 ) * - 88 * 8 col2
----
-19712

skipif mysql # not compatible
query I rowsort label-4434
SELECT MIN ( + + 28 ) * - 88 * 8 col2
----
-19712

query II rowsort
SELECT ALL NULLIF ( 13, - 4 ) * + + ( - 96 ) - - 91 AS col1, 58 * 46
----
-1157
2668

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4436
SELECT + COUNT( * ) AS col0, - 5 DIV 88 + - - 96
----
1
96

skipif mysql # not compatible
query II rowsort label-4436
SELECT + COUNT ( * ) AS col0, - 5 / 88 + - - 96
----
1
96

query I rowsort
SELECT ALL + 92 * 19 AS col0
----
1748

query I rowsort
SELECT DISTINCT + 87 AS col1
----
87

query I rowsort
SELECT ALL + 83 - - 95 AS col1
----
178

query I rowsort
SELECT ALL + 29 AS col2
----
29

query I rowsort
SELECT ALL + ( 36 ) AS col2
----
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4442
SELECT ALL MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) / + 5 + - 97 AS col2, 61
----
NULL
61

skipif mysql # not compatible
query II rowsort label-4442
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS REAL ) ) / + 5 + - 97 AS col2, 61
----
NULL
61

query I rowsort
SELECT + ( + 61 ) * - 37
----
-2257

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT DISTINCT CASE + 54 WHEN - COUNT( * ) THEN + NULLIF ( + + 8, + 92 * + 10 ) WHEN + 86 - - 44 * 90 * + 65 + - 8 * 68 - + 83 * 40 * 54 THEN NULL WHEN - 92 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-4444
SELECT DISTINCT CASE + 54 WHEN - COUNT ( * ) THEN + NULLIF ( + + 8, + 92 * + 10 ) WHEN + 86 - - 44 * 90 * + 65 + - 8 * 68 - + 83 * 40 * 54 THEN NULL WHEN - 92 THEN NULL ELSE COUNT ( * ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT ALL NULLIF ( - 72, + - COUNT( * ) + - 61 * + 79 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL NULLIF ( - 72, + - COUNT ( * ) + - 61 * + 79 ) AS col1
----
-72

query II rowsort
SELECT 32, 0 col2
----
32
0

query I rowsort
SELECT ( + 18 ) * + - 36 + - 94 + + 54 AS col0
----
-688

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT + CAST( NULL AS SIGNED ) * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-4448
SELECT + CAST ( NULL AS INTEGER ) * 82
----
NULL

query I rowsort
SELECT - ( - 56 ) * - 78 AS col0
----
-4368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4450
SELECT ALL COUNT( * ) DIV + 44 * - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL COUNT ( * ) / + 44 * - + 86 AS col1
----
0

query I rowsort
SELECT - 45 AS col2
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4452
SELECT ALL - 30 DIV + 64 * - 9
----
0

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL - 30 / + 64 * - 9
----
0

query I rowsort
SELECT ALL - 77 * - 23 AS col0
----
1771

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT ALL COUNT( * ) + + + MIN( ALL + CASE - 46 WHEN - 40 * + - ( 3 ) - - + 92 THEN + + 90 * 93 * + 13 END ), - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4454
SELECT ALL COUNT ( * ) + + + MIN ( ALL + CASE - 46 WHEN - 40 * + - ( 3 ) - - + 92 THEN + + 90 * 93 * + 13 END ), - COUNT ( * ) AS col0
----
NULL
-1

query I rowsort
SELECT + 5 + - ( 3 ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4456
SELECT DISTINCT + 86 + - COUNT( * ) DIV + + 36 AS col1
----
86

skipif mysql # not compatible
query I rowsort label-4456
SELECT DISTINCT + 86 + - COUNT ( * ) / + + 36 AS col1
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4457
SELECT ALL - COUNT( * ) DIV + 14
----
0

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL - COUNT ( * ) / + 14
----
0

query I rowsort
SELECT ALL + 58 AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT - CAST( + 34 AS SIGNED ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-4459
SELECT - CAST ( + 34 AS INTEGER ) AS col2
----
-34

query I rowsort
SELECT + + 42 + 87 AS col1
----
129

query I rowsort
SELECT DISTINCT 20 + + 90 - - + 78 AS col0
----
188

query I rowsort
SELECT 28 col1
----
28

query I rowsort
SELECT ALL NULLIF ( 32, + - 31 )
----
32

query I rowsort
SELECT + 34 * ( 31 ) + - - 9 * - + 65 + - - 63 col0
----
532

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT ALL + 51 DIV - ( - 67 ) * SUM( DISTINCT - 35 ) - - 98 - + 68 + - - 22 + + - 0
----
52

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + 51 / - ( - 67 ) * SUM ( DISTINCT - 35 ) - - 98 - + 68 + - - 22 + + - 0
----
52

query I rowsort
SELECT + + 96 AS col2
----
96

query I rowsort
SELECT + - 71 - - - 12
----
-83

query I rowsort
SELECT - 39 * + + 44 * + ( - 5 ) AS col2
----
8580

onlyif mysql # aggregate syntax: 
query I rowsort label-4469
SELECT ( COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4469
SELECT ( COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4470
SELECT DISTINCT COUNT( * ) * - 29 - 56 DIV - 51 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT COUNT ( * ) * - 29 - 56 / - 51 AS col1
----
-28

query II rowsort
SELECT ( + 56 ) AS col0, - 91 col1
----
56
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4472
SELECT - NULLIF ( - 19, + 49 * - 53 ) + - 89, - NULLIF ( + + 18, - 25 + + 71 + + + COALESCE ( + - 29, + 62, 39 * + - 61 ) - 14 * 2 * COALESCE ( - - 87, + 91, + 46 ) * COUNT( * ) + + 77 / + 16 ) + + 42 + 3 * + 4 * + - 5 AS col0
----
-70
-36

skipif mysql # not compatible
query II rowsort label-4472
SELECT - NULLIF ( - 19, + 49 * - 53 ) + - 89, - NULLIF ( + + 18, - 25 + + 71 + + + COALESCE ( + - 29, + 62, 39 * + - 61 ) - 14 * 2 * COALESCE ( - - 87, + 91, + 46 ) * COUNT ( * ) + + 77 / + 16 ) + + 42 + 3 * + 4 * + - 5 AS col0
----
-70
-36

query I rowsort
SELECT - 3 * - + 42
----
126

query I rowsort
SELECT DISTINCT + COALESCE ( + 55, + 8 )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2
----
0

query I rowsort
SELECT + 69 AS col2
----
69

query I rowsort
SELECT ALL 1 * + + ( - ( + - 26 ) ) - 10 AS col2
----
16

query I rowsort
SELECT - 73 * + + 2
----
-146

onlyif mysql # DIV for integer division: 
query I rowsort label-4479
SELECT ALL - 25 DIV - 32
----
0

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - 25 / - 32
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4480
SELECT - 90 DIV - 43 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-4480
SELECT - 90 / - 43 AS col0
----
2

query I rowsort
SELECT - ( + + 94 ) * - + 2 col1
----
188

query I rowsort
SELECT ALL + COALESCE ( + + 28, - + 74 ) AS col2
----
28

query I rowsort
SELECT DISTINCT - 7 * + - 44 AS col0
----
308

query I rowsort
SELECT ALL + ( + 65 )
----
65

query I rowsort
SELECT NULLIF ( 46, ( - - 28 ) * + 36 ) AS col0
----
46

query I rowsort
SELECT NULLIF ( - - 87, + 67 )
----
87

query I rowsort
SELECT DISTINCT + 16 * - 97 * + - 8 AS col0
----
12416

query I rowsort
SELECT ALL + 35 * + + 4
----
140

query I rowsort
SELECT - - 37 * - 42 - - 20 col0
----
-1534

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4490
SELECT ( + - 40 ), + CAST( NULL AS SIGNED ) * - 69 AS col1
----
-40
NULL

skipif mysql # not compatible
query II rowsort label-4490
SELECT ( + - 40 ), + CAST ( NULL AS INTEGER ) * - 69 AS col1
----
-40
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4491
SELECT - 55 + SUM( + 40 ) / - 51 + - CAST( NULL AS SIGNED ) / - - 70
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT - 55 + SUM ( + 40 ) / - 51 + - CAST ( NULL AS INTEGER ) / - - 70
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT + 25 * + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-4492
SELECT + 25 * + COUNT ( * )
----
25

query I rowsort
SELECT ALL + 73 col0
----
73

query I rowsort
SELECT - 69 + + ( - 32 ) AS col0
----
-101

query II rowsort
SELECT - 83 + NULLIF ( + 10, - 11 * 0 ) col0, 48
----
-73
48

onlyif mysql # DIV for integer division: 
query II rowsort label-4496
SELECT + 52 DIV 79, - NULLIF ( - 88, + + 52 ) AS col2
----
0
88

skipif mysql # not compatible
query II rowsort label-4496
SELECT + 52 / 79, - NULLIF ( - 88, + + 52 ) AS col2
----
0
88

onlyif mysql # aggregate syntax: 
query II rowsort label-4497
SELECT - + 10 * - 33 AS col0, + CASE + 27 WHEN - COUNT( * ) + - 77 + + 97 * + 33 THEN 35 END
----
330
NULL

skipif mysql # not compatible
query II rowsort label-4497
SELECT - + 10 * - 33 AS col0, + CASE + 27 WHEN - COUNT ( * ) + - 77 + + 97 * + 33 THEN 35 END
----
330
NULL

query I rowsort
SELECT + - 35 + - 59 AS col0
----
-94

query I rowsort
SELECT ALL - 98 AS col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4500
SELECT DISTINCT - 72 * CASE - - CAST( - 70 AS SIGNED ) WHEN - 17 * + - MIN( ALL - + 44 ) THEN + 41 ELSE + 79 END
----
-5688

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT - 72 * CASE - - CAST ( - 70 AS INTEGER ) WHEN - 17 * + - MIN ( ALL - + 44 ) THEN + 41 ELSE + 79 END
----
-5688

query I rowsort
SELECT + + 61 + 23 AS col0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4502
SELECT ALL - CAST( - + NULLIF ( ( - + CAST( 34 AS SIGNED ) ), + COALESCE ( 65, + 9 ) ) AS SIGNED ) col1
----
-34

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL - CAST ( - + NULLIF ( ( - + CAST ( 34 AS INTEGER ) ), + COALESCE ( 65, + 9 ) ) AS INTEGER ) col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT ALL 97 * COUNT( * ) - - + 98 * - COALESCE ( 26, 59 * COUNT( * ) ) * 68 col0
----
-173167

skipif mysql # not compatible
query I rowsort label-4503
SELECT ALL 97 * COUNT ( * ) - - + 98 * - COALESCE ( 26, 59 * COUNT ( * ) ) * 68 col0
----
-173167

query I rowsort
SELECT ALL - 80 - 90
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT ALL MAX( + 70 )
----
70

skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL MAX ( + 70 )
----
70

query I rowsort
SELECT + 55 - 49 + + ( - 92 ) col1
----
-86

query I rowsort
SELECT ALL 8 AS col0
----
8

query I rowsort
SELECT - + 11 AS col0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + 99 + - + MAX( - + 55 ) AS col2
----
154

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 99 + - + MAX ( - + 55 ) AS col2
----
154

query I rowsort
SELECT ALL - - 38
----
38

query I rowsort
SELECT DISTINCT - 7 AS col2
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4512
SELECT DISTINCT 50 - - CASE + 88 WHEN - + CAST( NULL AS SIGNED ) / 85 + 85 + AVG ( + 37 ) THEN NULL WHEN 44 THEN + 50 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT 50 - - CASE + 88 WHEN - + CAST ( NULL AS INTEGER ) / 85 + 85 + AVG ( + 37 ) THEN NULL WHEN 44 THEN + 50 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4513
SELECT ALL - 20, - COUNT( * ) AS col1
----
-20
-1

skipif mysql # not compatible
query II rowsort label-4513
SELECT ALL - 20, - COUNT ( * ) AS col1
----
-20
-1

query II rowsort
SELECT 76 AS col1, 62 AS col1
----
76
62

query I rowsort
SELECT ALL - 94 col2
----
-94

query I rowsort
SELECT DISTINCT - 20 * - 68 col2
----
1360

onlyif mysql # aggregate syntax: 
query II rowsort label-4517
SELECT ALL - COUNT( * ) col1, - 2 + 11
----
-1
9

skipif mysql # not compatible
query II rowsort label-4517
SELECT ALL - COUNT ( * ) col1, - 2 + 11
----
-1
9

query I rowsort
SELECT DISTINCT 38 * 66 AS col1
----
2508

query I rowsort
SELECT 84 * + 44
----
3696

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4520
SELECT ( - + MAX( - + 68 ) ) DIV + 51 - 62
----
-61

skipif mysql # not compatible
query I rowsort label-4520
SELECT ( - + MAX ( - + 68 ) ) / + 51 - 62
----
-61

query I rowsort
SELECT DISTINCT 73 * - 92 AS col1
----
-6716

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT + 46 * - 49 + 26 * COUNT( * ) + - 32 + COUNT( * ) + + 84 * + ( MAX( - 65 ) ) * + - 88 + - - COUNT( * ) AS col1
----
478222

skipif mysql # not compatible
query I rowsort label-4522
SELECT + 46 * - 49 + 26 * COUNT ( * ) + - 32 + COUNT ( * ) + + 84 * + ( MAX ( - 65 ) ) * + - 88 + - - COUNT ( * ) AS col1
----
478222

query II rowsort
SELECT 14 AS col2, 42 AS col0
----
14
42

query I rowsort
SELECT ALL - 38
----
-38

query I rowsort
SELECT 57 * + ( + - 16 ) + - 71 + 43 AS col1
----
-940

query I rowsort
SELECT DISTINCT 37 * 81
----
2997

onlyif mysql # DIV for integer division: 
query II rowsort label-4527
SELECT 90 + - ( + 65 ) AS col2, 7 DIV - 19
----
25
0

skipif mysql # not compatible
query II rowsort label-4527
SELECT 90 + - ( + 65 ) AS col2, 7 / - 19
----
25
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL 13 + COUNT( * ) col2
----
14

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 13 + COUNT ( * ) col2
----
14

query I rowsort
SELECT DISTINCT - ( - 35 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT DISTINCT COUNT( * ) + - - 57 AS col2
----
58

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT COUNT ( * ) + - - 57 AS col2
----
58

query II rowsort
SELECT ALL - ( - 82 ) + - 27 AS col2, - 69
----
55
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4532
SELECT ALL - CAST( 1 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL - CAST ( 1 AS INTEGER )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT ALL - COUNT( * ) + + - 67 + 93
----
25

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL - COUNT ( * ) + + - 67 + 93
----
25

query II rowsort
SELECT 14 AS col0, 89 col1
----
14
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - - 8 * + - COUNT( * ) + 72 AS col2
----
64

skipif mysql # not compatible
query I rowsort label-4535
SELECT - - 8 * + - COUNT ( * ) + 72 AS col2
----
64

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4536
SELECT 44 + - COUNT( - CAST( 45 AS DECIMAL ) ) + 70 AS col0
----
113

skipif mysql # not compatible
query I rowsort label-4536
SELECT 44 + - COUNT ( - CAST ( 45 AS REAL ) ) + 70 AS col0
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT - CASE + 96 WHEN ( + COUNT( * ) ) THEN - COALESCE ( 98, - - 60, - CAST( NULL AS SIGNED ) ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - CASE + 96 WHEN ( + COUNT ( * ) ) THEN - COALESCE ( 98, - - 60, - CAST ( NULL AS INTEGER ) ) END AS col1
----
NULL

query I rowsort
SELECT ALL + 45 + + 30 AS col1
----
75

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4539
SELECT - CAST( NULL AS DECIMAL ), + 74 DIV 3 AS col2
----
NULL
24

skipif mysql # not compatible
query II rowsort label-4539
SELECT - CAST ( NULL AS REAL ), + 74 / 3 AS col2
----
NULL
24

query II rowsort
SELECT ( 75 ) * + 9, - 29 * - 89 AS col2
----
675
2581

query I rowsort
SELECT DISTINCT - ( + 91 ) * - - 8 AS col0
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT COUNT( * ) * - - 77 * 38 + 44 + + - 53
----
2917

skipif mysql # not compatible
query I rowsort label-4542
SELECT COUNT ( * ) * - - 77 * 38 + 44 + + - 53
----
2917

query I rowsort
SELECT - 25 * + + 53 col0
----
-1325

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT 34 + + + 6 + - COUNT( * ) * COUNT( * ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-4544
SELECT 34 + + + 6 + - COUNT ( * ) * COUNT ( * ) AS col1
----
39

query I rowsort
SELECT ALL ( 63 ) AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4546
SELECT + 92 * - NULLIF ( + 72, - AVG ( DISTINCT + 69 ) ) + COUNT( * ) + + COUNT( * ) AS col0
----
-6622

skipif mysql # not compatible
query I rowsort label-4546
SELECT + 92 * - NULLIF ( + 72, - AVG ( DISTINCT + 69 ) ) + COUNT ( * ) + + COUNT ( * ) AS col0
----
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT + 62 * COUNT( * ) * 82 AS col0
----
5084

skipif mysql # not compatible
query I rowsort label-4547
SELECT + 62 * COUNT ( * ) * 82 AS col0
----
5084

query I rowsort
SELECT ALL 31 * + NULLIF ( - 83, + + 18 ) AS col0
----
-2573

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL + NULLIF ( - COUNT( * ), CASE + ( - 30 ) WHEN + ( + 89 ) THEN 84 / + 99 END * - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL + NULLIF ( - COUNT ( * ), CASE + ( - 30 ) WHEN + ( + 89 ) THEN 84 / + 99 END * - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT - SUM( - 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4550
SELECT - SUM ( - 1 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT 55 + + ( CASE - COUNT( * ) WHEN - - COUNT( * ) + + 74 THEN + 95 * - 63 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT 55 + + ( CASE - COUNT ( * ) WHEN - - COUNT ( * ) + + 74 THEN + 95 * - 63 END )
----
NULL

query II rowsort
SELECT DISTINCT 33 * - 25 AS col2, - 24 AS col0
----
-825
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT COUNT( ALL + 51 ) + + CASE 29 WHEN + 81 THEN - COUNT( * ) + + - ( 86 ) + - 75 WHEN + 7 THEN NULL ELSE 40 * + 75 END * - 56
----
-167999

skipif mysql # not compatible
query I rowsort label-4553
SELECT COUNT ( ALL + 51 ) + + CASE 29 WHEN + 81 THEN - COUNT ( * ) + + - ( 86 ) + - 75 WHEN + 7 THEN NULL ELSE 40 * + 75 END * - 56
----
-167999

query I rowsort
SELECT ALL + 24 * + 61 * - 48 AS col2
----
-70272

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL - 61 * - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL - 61 * - COUNT ( * )
----
61

query I rowsort
SELECT ALL 38 * 89 AS col0
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-4557
SELECT 55 * + COUNT ( * )
----
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT + 80 * + - COUNT( * ) * + 65 + + - 87 * - 86 / - CAST( NULL AS SIGNED ) + + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT + 80 * + - COUNT ( * ) * + 65 + + - 87 * - 86 / - CAST ( NULL AS INTEGER ) + + 34
----
NULL

query I rowsort
SELECT DISTINCT - 26 col0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT 64 * COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-4560
SELECT 64 * COUNT ( * )
----
64

query I rowsort
SELECT DISTINCT - 41 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT ALL COUNT( * ) + 59
----
60

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL COUNT ( * ) + 59
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT SUM( ALL - 12 ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-4563
SELECT SUM ( ALL - 12 ) AS col1
----
-12

query I rowsort
SELECT + 30 col2
----
30

query I rowsort
SELECT ( + 69 ) - - 79
----
148

query I rowsort
SELECT ALL - 28 AS col2
----
-28

query I rowsort
SELECT 78 col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ( COUNT( ALL + 45 ) ) * - ( - 49 ) - + NULLIF ( - 62, - 53 * + 86 ) AS col2
----
111

skipif mysql # not compatible
query I rowsort label-4568
SELECT ( COUNT ( ALL + 45 ) ) * - ( - 49 ) - + NULLIF ( - 62, - 53 * + 86 ) AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT COUNT( * ) * - ( 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) * - ( 22 )
----
-22

query II rowsort
SELECT DISTINCT 83 * + - CASE - 30 WHEN 85 THEN - - 7 END * - - 71 / + COALESCE ( - 11, 90 ) col2, 21 AS col0
----
NULL
21

query I rowsort
SELECT ALL - ( - 51 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT ALL + 65 * - COUNT( * )
----
-65

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + 65 * - COUNT ( * )
----
-65

query I rowsort
SELECT + ( - - 50 )
----
50

query I rowsort
SELECT ALL - - ( 4 ) + + 31
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-4575
SELECT - SUM( - ( - 88 ) ) - - 92 AS col1, 42 * + 68 * - - 57 AS col0
----
4
162792

skipif mysql # not compatible
query II rowsort label-4575
SELECT - SUM ( - ( - 88 ) ) - - 92 AS col1, 42 * + 68 * - - 57 AS col0
----
4
162792

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT ALL - 5 * - 13 * + COUNT( * ) col0
----
65

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - 5 * - 13 * + COUNT ( * ) col0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4577
SELECT 92 DIV + 4 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-4577
SELECT 92 / + 4 AS col0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4578
SELECT DISTINCT SUM( DISTINCT + - 26 ) AS col2, + 78 * - - 18 - - 6 * - ( ( + 39 ) ) * + 63 - + 86 + + + NULLIF ( - 94, - AVG ( + 68 ) ) + - NULLIF ( 30, - 67 * + + 8 + - 75 + + COUNT( * ) - + ( - CAST( COUNT( * ) AS SIGNED ) ) ) * COUNT( * ) * + - 29 col0
----
-26
-12648

skipif mysql # not compatible
query II rowsort label-4578
SELECT DISTINCT SUM ( DISTINCT + - 26 ) AS col2, + 78 * - - 18 - - 6 * - ( ( + 39 ) ) * + 63 - + 86 + + + NULLIF ( - 94, - AVG ( + 68 ) ) + - NULLIF ( 30, - 67 * + + 8 + - 75 + + COUNT ( * ) - + ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) * COUNT ( * ) * + - 29 col0
----
-26
-12648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4579
SELECT ALL ( + CAST( NULL AS SIGNED ) ) - - 88 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4579
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) - - 88 AS col0
----
NULL

query I rowsort
SELECT - - 69 AS col1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4581
SELECT ALL 70 DIV SUM( DISTINCT + 7 ) * COUNT( * )
----
10

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL 70 / SUM ( DISTINCT + 7 ) * COUNT ( * )
----
10

query I rowsort
SELECT 72 + + 54 + - 15
----
111

onlyif mysql # DIV for integer division: 
query I rowsort label-4583
SELECT + 10 DIV + ( + - 17 )
----
0

skipif mysql # not compatible
query I rowsort label-4583
SELECT + 10 / + ( + - 17 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4584
SELECT ALL + + 21 DIV - 16 AS col2, - 0 + + 71 col1
----
-1
71

skipif mysql # not compatible
query II rowsort label-4584
SELECT ALL + + 21 / - 16 AS col2, - 0 + + 71 col1
----
-1
71

onlyif mysql # aggregate syntax: 
query II rowsort label-4585
SELECT ( + + 91 ) + - - 64 + + COUNT( * ) col0, + 64 AS col2
----
156
64

skipif mysql # not compatible
query II rowsort label-4585
SELECT ( + + 91 ) + - - 64 + + COUNT ( * ) col0, + 64 AS col2
----
156
64

query I rowsort
SELECT 61 - 83
----
-22

query I rowsort
SELECT - - 48 AS col0
----
48

query I rowsort
SELECT 8 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + ( + MAX( DISTINCT + 3 ) ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + ( + MAX ( DISTINCT + 3 ) ) AS col2
----
3

query I rowsort
SELECT ALL 43 col1
----
43

query I rowsort
SELECT DISTINCT - ( 61 )
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4592
SELECT - CAST( NULL AS SIGNED ) + + + 65 - - 96 * + 29 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4592
SELECT - CAST ( NULL AS INTEGER ) + + + 65 - - 96 * + 29 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4593
SELECT DISTINCT - NULLIF ( - - 43, 82 + - ( COUNT( * ) ) + CASE 24 WHEN - COUNT( * ) THEN NULL ELSE - - AVG ( 98 ) * - ( 93 ) END * - + NULLIF ( + + 24, - - 69 + - CAST( MAX( ALL 3 ) AS SIGNED ) + - 71 + + 76 * 62 * 45 + COUNT( * ) ) * 66 * 38 * + CASE + COUNT( * ) WHEN + 58 * + + 95 * 25 + - 75 * 17 + NULLIF ( COUNT( * ), 47 * 99 ) + 4 * + + 83 THEN + - 95 WHEN - 27 THEN - CAST( NULL AS DECIMAL ) + 20 END ) * + 23 col2
----
-989

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - NULLIF ( - - 43, 82 + - ( COUNT ( * ) ) + CASE 24 WHEN - COUNT ( * ) THEN NULL ELSE - - AVG ( 98 ) * - ( 93 ) END * - + NULLIF ( + + 24, - - 69 + - CAST ( MAX ( ALL 3 ) AS INTEGER ) + - 71 + + 76 * 62 * 45 + COUNT ( * ) ) * 66 * 38 * + CASE + COUNT ( * ) WHEN + 58 * + + 95 * 25 + - 75 * 17 + NULLIF ( COUNT ( * ), 47 * 99 ) + 4 * + + 83 THEN + - 95 WHEN - 27 THEN - CAST ( NULL AS REAL ) + 20 END ) * + 23 col2
----
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT - SUM( - 14 ) + + 78 * - 3 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-4594
SELECT - SUM ( - 14 ) + + 78 * - 3 AS col2
----
-220

query I rowsort
SELECT ALL + 38 * - 13
----
-494

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT - SUM( DISTINCT + ( + - 79 ) ) * - 38 AS col1
----
-3002

skipif mysql # not compatible
query I rowsort label-4596
SELECT - SUM ( DISTINCT + ( + - 79 ) ) * - 38 AS col1
----
-3002

query I rowsort
SELECT ALL NULLIF ( 74, + 11 * - 71 )
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4598
SELECT - ( + COALESCE ( - ( - 57 ), 72 DIV + + 63 ) ) + + 49 * + MIN( - 2 ) DIV + + 99
----
-57

skipif mysql # not compatible
query I rowsort label-4598
SELECT - ( + COALESCE ( - ( - 57 ), 72 / + + 63 ) ) + + 49 * + MIN ( - 2 ) / + + 99
----
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4599
SELECT + 44 * COALESCE ( SUM( ALL ( - 72 ) ), + - 17 DIV + - COUNT( + 32 ) + 23 ) * 86 * - - 75 + + 32
----
-20433568

skipif mysql # not compatible
query I rowsort label-4599
SELECT + 44 * COALESCE ( SUM ( ALL ( - 72 ) ), + - 17 / + - COUNT ( + 32 ) + 23 ) * 86 * - - 75 + + 32
----
-20433568

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT + 93 + MAX( + ( + 37 ) )
----
130

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT + 93 + MAX ( + ( + 37 ) )
----
130

query I rowsort
SELECT ( + 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL 32 * + COUNT( * ) + - MAX( 59 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL 32 * + COUNT ( * ) + - MAX ( 59 ) AS col2
----
-27

query I rowsort
SELECT ( + 75 ) AS col2
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL + 3 DIV - COALESCE ( + 42, + 3, + 34 - - 90 + - + 31 * + 44 )
----
0

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL + 3 / - COALESCE ( + 42, + 3, + 34 - - 90 + - + 31 * + 44 )
----
0

query II rowsort
SELECT ALL + 64 AS col1, 89
----
64
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4606
SELECT ALL 69 * + CAST( NULL AS SIGNED ) + - + ( - 10 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL 69 * + CAST ( NULL AS INTEGER ) + - + ( - 10 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-4607
SELECT - ( - + 27 ) + - + NULLIF ( + - 82, - CAST( NULL AS SIGNED ) ) * + 70, COUNT( * ) * + 5 AS col2, COUNT( * ) AS col0
----
5767
5
1

skipif mysql # not compatible
query III rowsort label-4607
SELECT - ( - + 27 ) + - + NULLIF ( + - 82, - CAST ( NULL AS INTEGER ) ) * + 70, COUNT ( * ) * + 5 AS col2, COUNT ( * ) AS col0
----
5767
5
1

query I rowsort
SELECT ALL - 4 * + 25 * + 35 AS col1
----
-3500

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - COUNT( * ) + 9 + + 73 * COUNT( * )
----
81

skipif mysql # not compatible
query I rowsort label-4609
SELECT - COUNT ( * ) + 9 + + 73 * COUNT ( * )
----
81

query I rowsort
SELECT + 54 - 11
----
43

query I rowsort
SELECT + 12 * + 43
----
516

query I rowsort
SELECT ALL + - 75
----
-75

query I rowsort
SELECT DISTINCT + + ( + 86 ) AS col0
----
86

query I rowsort
SELECT ALL + + 97
----
97

query I rowsort
SELECT ALL 2 * - 75
----
-150

query I rowsort
SELECT + - 48 + + + 27 AS col1
----
-21

query I rowsort
SELECT DISTINCT + 66
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4618
SELECT ALL - AVG ( DISTINCT + + 73 ) * ( CAST( NULL AS SIGNED ) ) * - + 14 + - - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT ALL - AVG ( DISTINCT + + 73 ) * ( CAST ( NULL AS INTEGER ) ) * - + 14 + - - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT + 8 + + 49 AS col0
----
57

query I rowsort
SELECT + 47 * + 50 AS col1
----
2350

query I rowsort
SELECT - 37 col2
----
-37

query I rowsort
SELECT ALL - 66
----
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-4623
SELECT ALL - NULLIF ( - 20, 31 ) AS col0, 9 DIV - + 75 AS col1
----
20
0

skipif mysql # not compatible
query II rowsort label-4623
SELECT ALL - NULLIF ( - 20, 31 ) AS col0, 9 / - + 75 AS col1
----
20
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT + CAST( 22 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-4624
SELECT + CAST ( 22 AS INTEGER )
----
22

query I rowsort
SELECT DISTINCT + 24 + 7
----
31

query I rowsort
SELECT DISTINCT 94 AS col2
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT - - 55 DIV - 62 * 32 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT - - 55 / - 62 * 32 AS col0
----
0

query I rowsort
SELECT - 49 AS col1
----
-49

query II rowsort
SELECT - 52 AS col2, 36
----
-52
36

query I rowsort
SELECT - 26 * 14 AS col1
----
-364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4631
SELECT DISTINCT + COUNT( * ) + - 45 * + CAST( + 65 AS SIGNED ) + 86
----
-2838

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT + COUNT ( * ) + - 45 * + CAST ( + 65 AS INTEGER ) + 86
----
-2838

query I rowsort
SELECT ALL + 7 + 9 AS col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4633
SELECT - CAST( + 47 AS SIGNED ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4633
SELECT - CAST ( + 47 AS INTEGER ) AS col2
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL - COUNT( * ) + - 61
----
-62

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - COUNT ( * ) + - 61
----
-62

query I rowsort
SELECT - 18 AS col1
----
-18

query I rowsort
SELECT ALL ( + - 44 )
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL CAST( - 18 AS SIGNED )
----
-18

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL CAST ( - 18 AS INTEGER )
----
-18

query I rowsort
SELECT 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT ALL + COUNT( + + 99 ) + - 31
----
-30

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL + COUNT ( + + 99 ) + - 31
----
-30

query I rowsort
SELECT DISTINCT + 90 * - 61
----
-5490

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT + ( - - ( - - 13 ) ) + + + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-4641
SELECT + ( - - ( - - 13 ) ) + + + COUNT ( * )
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-4642
SELECT + 86 AS col0, - COUNT( * ) AS col2
----
86
-1

skipif mysql # not compatible
query II rowsort label-4642
SELECT + 86 AS col0, - COUNT ( * ) AS col2
----
86
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT + CAST( - 88 AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT + CAST ( - 88 AS INTEGER )
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-4644
SELECT - 1 * COALESCE ( - 6, + 50 + - 39, - - ( - 60 ) - + SUM( - 36 ) ) AS col2, - 4 AS col1
----
6
-4

skipif mysql # not compatible
query II rowsort label-4644
SELECT - 1 * COALESCE ( - 6, + 50 + - 39, - - ( - 60 ) - + SUM ( - 36 ) ) AS col2, - 4 AS col1
----
6
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-4645
SELECT - 18 DIV 13 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4645
SELECT - 18 / 13 AS col2
----
-1

query II rowsort
SELECT + - 99, - 56 * - 80 * + ( + 14 ) * + + 15 AS col0
----
-99
940800

query II rowsort
SELECT ALL + + 72 AS col0, ( - 12 ) * - 71 AS col1
----
72
852

query II rowsort
SELECT + - 29, + ( + 65 ) * - 4 AS col1
----
-29
-260

onlyif mysql # DIV for integer division: 
query I rowsort label-4649
SELECT ALL - 53 DIV 66 - + 70 + + + 24 * 12 AS col2
----
218

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - 53 / 66 - + 70 + + + 24 * 12 AS col2
----
218

query I rowsort
SELECT ALL + 83 * + + 78
----
6474

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL - - 54 * - COUNT( * ) col1
----
-54

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - - 54 * - COUNT ( * ) col1
----
-54

query I rowsort
SELECT ALL + 63 AS col2
----
63

query I rowsort
SELECT - 58 * + - 23 - - 81 - + 63
----
1352

query I rowsort
SELECT 26 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT DISTINCT + + COUNT( * ) * + + 26 * + 55
----
1430

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + + COUNT ( * ) * + + 26 * + 55
----
1430

query I rowsort
SELECT - 22 * 79 + + ( - 89 )
----
-1827

onlyif mysql # aggregate syntax: 
query II rowsort label-4657
SELECT 26 AS col1, NULLIF ( + + 71, COUNT( * ) )
----
26
71

skipif mysql # not compatible
query II rowsort label-4657
SELECT 26 AS col1, NULLIF ( + + 71, COUNT ( * ) )
----
26
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT ALL - SUM( + 64 )
----
-64

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL - SUM ( + 64 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4659
SELECT 63 AS col0, 45 * + 67 * 67 * COUNT( * ) * + CAST( NULL AS SIGNED ) col0
----
63
NULL

skipif mysql # not compatible
query II rowsort label-4659
SELECT 63 AS col0, 45 * + 67 * 67 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) col0
----
63
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT MIN( DISTINCT 33 ) - - 14 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4660
SELECT MIN ( DISTINCT 33 ) - - 14 AS col1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL + 81 + - ( + - ( 99 ) ) + - - 90 + - + 85 * - - COUNT( * ) * + 22
----
-1600

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + 81 + - ( + - ( 99 ) ) + - - 90 + - + 85 * - - COUNT ( * ) * + 22
----
-1600

query II rowsort
SELECT ALL - 68, 87 AS col0
----
-68
87

query I rowsort
SELECT ALL - 6 + + + ( + - 55 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4664
SELECT + 44 AS col2, 85 / + 49 + CAST( NULL AS SIGNED ) / - - 70 * - 15
----
44
NULL

skipif mysql # not compatible
query II rowsort label-4664
SELECT + 44 AS col2, 85 / + 49 + CAST ( NULL AS INTEGER ) / - - 70 * - 15
----
44
NULL

query I rowsort
SELECT ALL + 95 + + + 58 + + 85 + + 58
----
296

query I rowsort
SELECT - - 1 col0
----
1

query I rowsort
SELECT - 38 + - - 46
----
8

query I rowsort
SELECT - 52 AS col1
----
-52

query I rowsort
SELECT 67 + + + 89 * + 0
----
67

query I rowsort
SELECT 3 * 79
----
237

query I rowsort
SELECT DISTINCT 57
----
57

query I rowsort
SELECT ALL 63 AS col2
----
63

query II rowsort
SELECT ALL 61 + 11, - 49 AS col0
----
72
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4674
SELECT 93 + + - COUNT( * ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-4674
SELECT 93 + + - COUNT ( * ) AS col1
----
92

query I rowsort
SELECT DISTINCT 69 AS col2
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT 83 DIV 29 DIV - + 29
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT 83 / 29 / - + 29
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4677
SELECT ALL 43 DIV 77 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4677
SELECT ALL 43 / 77 AS col1
----
0

query I rowsort
SELECT DISTINCT 80 AS col0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4679
SELECT 28 + COALESCE ( - COALESCE ( - 6, + 99, + + MIN( DISTINCT - 75 ) ), NULLIF ( COUNT( * ), 20 + + CAST( + + COALESCE ( + + CAST( NULL AS SIGNED ), + 71, - 24 + - - 36 ) AS SIGNED ) - - 97 * COALESCE ( 94, 47, 56 - + - 28 ) * + - 30 * + + 46 ) * + + COALESCE ( + COUNT( * ), + - 59 ) - 32 + 93 + - COUNT( * ) + - - MIN( 13 ), - 86 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4679
SELECT 28 + COALESCE ( - COALESCE ( - 6, + 99, + + MIN ( DISTINCT - 75 ) ), NULLIF ( COUNT ( * ), 20 + + CAST ( + + COALESCE ( + + CAST ( NULL AS INTEGER ), + 71, - 24 + - - 36 ) AS INTEGER ) - - 97 * COALESCE ( 94, 47, 56 - + - 28 ) * + - 30 * + + 46 ) * + + COALESCE ( + COUNT ( * ), + - 59 ) - 32 + 93 + - COUNT ( * ) + - - MIN ( 13 ), - 86 ) col1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT 37 + - MIN( - 12 ) + - 32 * - 19 * + + COUNT( * ) col1
----
657

skipif mysql # not compatible
query I rowsort label-4680
SELECT 37 + - MIN ( - 12 ) + - 32 * - 19 * + + COUNT ( * ) col1
----
657

onlyif mysql # aggregate syntax: 
query II rowsort label-4681
SELECT COUNT( * ) * 35 AS col0, - 19 + + + 77
----
35
58

skipif mysql # not compatible
query II rowsort label-4681
SELECT COUNT ( * ) * 35 AS col0, - 19 + + + 77
----
35
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT ALL 7 DIV + 31 * 92
----
0

skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL 7 / + 31 * 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT COUNT( * ) - - - 32
----
-31

skipif mysql # not compatible
query I rowsort label-4683
SELECT COUNT ( * ) - - - 32
----
-31

query I rowsort
SELECT 24 + 85 - + + 90 AS col0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL ( + ( + CASE - 54 WHEN COUNT( * ) + - COUNT( * ) THEN NULL ELSE - 46 + - 59 END ) ) * COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL ( + ( + CASE - 54 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL ELSE - 46 + - 59 END ) ) * COUNT ( * )
----
-105

query I rowsort
SELECT + - 44
----
-44

query I rowsort
SELECT ALL - - 79 AS col0
----
79

query I rowsort
SELECT DISTINCT - + 19 AS col2
----
-19

query I rowsort
SELECT ALL - 26 * - 61 AS col2
----
1586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT 15 * + 14 * + CAST( NULL AS SIGNED ) - - 14
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT 15 * + 14 * + CAST ( NULL AS INTEGER ) - - 14
----
NULL

query I rowsort
SELECT ALL - - COALESCE ( 50, + 97 )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - 31 * - COUNT( * ) + - - 41 * - 68
----
-2757

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 31 * - COUNT ( * ) + - - 41 * - 68
----
-2757

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4693
SELECT CASE 34 WHEN 83 * + 67 THEN + + 79 / + + COUNT( * ) WHEN - - NULLIF ( - - COUNT( * ), 15 ) + - + 99 - + 79 * + - 71 THEN NULL WHEN + 10 + - 73 + - - 48 - - 22 / - 17 + + COUNT( * ) + + + 75 THEN + CAST( - 74 AS SIGNED ) + - - 77 * 40 + - COUNT( * ) + + 14 END - - - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT CASE 34 WHEN 83 * + 67 THEN + + 79 / + + COUNT ( * ) WHEN - - NULLIF ( - - COUNT ( * ), 15 ) + - + 99 - + 79 * + - 71 THEN NULL WHEN + 10 + - 73 + - - 48 - - 22 / - 17 + + COUNT ( * ) + + + 75 THEN + CAST ( - 74 AS INTEGER ) + - - 77 * 40 + - COUNT ( * ) + + 14 END - - - 38 AS col0
----
NULL

query I rowsort
SELECT + + 82 AS col0
----
82

query II rowsort
SELECT + 20 * - - 51, 52 * + - 85 * + 35 AS col1
----
1020
-154700

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-4696
SELECT ALL - MIN( ALL - + 21 ) AS col2, - 94 AS col1, 38 DIV + - 93 * - + 74 * 93 * - - COUNT( - 11 ) + - 21 AS col1
----
21
-94
-21

skipif mysql # not compatible
query III rowsort label-4696
SELECT ALL - MIN ( ALL - + 21 ) AS col2, - 94 AS col1, 38 / + - 93 * - + 74 * 93 * - - COUNT ( - 11 ) + - 21 AS col1
----
21
-94
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT DISTINCT - + COUNT( * ) DIV COUNT( DISTINCT - 26 ) * 86 + - MAX( DISTINCT + 17 ) AS col1
----
-103

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT - + COUNT ( * ) / COUNT ( DISTINCT - 26 ) * 86 + - MAX ( DISTINCT + 17 ) AS col1
----
-103

query I rowsort
SELECT DISTINCT - + 84 + - - 49
----
-35

query I rowsort
SELECT DISTINCT - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4700
SELECT ALL - COALESCE ( - 54, 61 DIV - - 4 * + 92 ) + + + 55 - NULLIF ( - ( - 64 ), - 16 * SUM( + - 31 ) ) * + NULLIF ( + ( 54 ), 20 ) * - 32 + + 58 AS col2
----
110759

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL - COALESCE ( - 54, 61 / - - 4 * + 92 ) + + + 55 - NULLIF ( - ( - 64 ), - 16 * SUM ( + - 31 ) ) * + NULLIF ( + ( 54 ), 20 ) * - 32 + + 58 AS col2
----
110759

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT 93 + COUNT( - 85 )
----
94

skipif mysql # not compatible
query I rowsort label-4701
SELECT 93 + COUNT ( - 85 )
----
94

query I rowsort
SELECT ALL - - 34 + 1 * - - 85
----
119

query I rowsort
SELECT + 55 * 79 + - 92
----
4253

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL 9 + + SUM( DISTINCT + 29 ) col0
----
38

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 9 + + SUM ( DISTINCT + 29 ) col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4705
SELECT 85 DIV + 78
----
1

skipif mysql # not compatible
query I rowsort label-4705
SELECT 85 / + 78
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT - COUNT( * ) * COUNT( * ) + - - ( + 31 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4706
SELECT - COUNT ( * ) * COUNT ( * ) + - - ( + 31 ) AS col1
----
30

query I rowsort
SELECT - ( ( - 29 ) ) AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4708
SELECT 68 DIV - + ( 59 )
----
-1

skipif mysql # not compatible
query I rowsort label-4708
SELECT 68 / - + ( 59 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT COUNT( * ) + + 0
----
1

skipif mysql # not compatible
query I rowsort label-4709
SELECT COUNT ( * ) + + 0
----
1

query I rowsort
SELECT 74 * + 39 AS col2
----
2886

query I rowsort
SELECT DISTINCT + 62 + - 19
----
43

query I rowsort
SELECT ALL 7 AS col0
----
7

query II rowsort
SELECT ALL 58 AS col2, - 73 + + + 14
----
58
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT 20 - + COUNT( * ) * + ( 22 ) * 54 * + SUM( - + 5 ) * - - 52 * - MIN( DISTINCT + - 0 ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT 20 - + COUNT ( * ) * + ( 22 ) * 54 * + SUM ( - + 5 ) * - - 52 * - MIN ( DISTINCT + - 0 ) AS col0
----
20

query I rowsort
SELECT 55 col2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT ALL 55 * NULLIF ( - + 40, - - 87 * - + CAST( - 36 AS SIGNED ) )
----
-2200

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL 55 * NULLIF ( - + 40, - - 87 * - + CAST ( - 36 AS INTEGER ) )
----
-2200

query I rowsort
SELECT 83 - + 62
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-4718
SELECT 41 AS col2, ( - 0 ) DIV + + 8 AS col1
----
41
0

skipif mysql # not compatible
query II rowsort label-4718
SELECT 41 AS col2, ( - 0 ) / + + 8 AS col1
----
41
0

query I rowsort
SELECT ALL 19 * + 46
----
874

query II rowsort
SELECT 99 * + ( 55 ), + 9 AS col1
----
5445
9

query I rowsort
SELECT 34 + - + 66 + 67 AS col0
----
35

query II rowsort
SELECT ALL ( + 77 ) - 55, ( - 88 ) AS col2
----
22
-88

query I rowsort
SELECT DISTINCT 54 * 35 col1
----
1890

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT ( - MAX( + - 11 ) ) - - 72 * - 51
----
-3661

skipif mysql # not compatible
query I rowsort label-4724
SELECT ( - MAX ( + - 11 ) ) - - 72 * - 51
----
-3661

query II rowsort
SELECT DISTINCT 44 AS col2, 32 col2
----
44
32

onlyif mysql # DIV for integer division: 
query I rowsort label-4726
SELECT ALL - 66 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL - 66 / + 94
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4727
SELECT 59 DIV - COUNT( * ) + - + 33 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-4727
SELECT 59 / - COUNT ( * ) + - + 33 AS col0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4728
SELECT + MIN( DISTINCT 75 ) * + + CAST( 58 AS SIGNED ) AS col0
----
4350

skipif mysql # not compatible
query I rowsort label-4728
SELECT + MIN ( DISTINCT 75 ) * + + CAST ( 58 AS INTEGER ) AS col0
----
4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4729
SELECT + 51 * - 99 + - 96 + - SUM( DISTINCT - ( + 77 ) ) DIV - COUNT( * )
----
-5222

skipif mysql # not compatible
query I rowsort label-4729
SELECT + 51 * - 99 + - 96 + - SUM ( DISTINCT - ( + 77 ) ) / - COUNT ( * )
----
-5222

query II rowsort
SELECT 74, 88 col2
----
74
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4731
SELECT ALL + COUNT( * ) DIV - COALESCE ( + - 90, - 44 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL + COUNT ( * ) / - COALESCE ( + - 90, - 44 ) AS col2
----
0

query I rowsort
SELECT + + 84
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4733
SELECT ALL + 36 * CAST( NULL AS SIGNED ) + + 52 + + 43 * + 6 / + - 95 AS col1, - 97
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-4733
SELECT ALL + 36 * CAST ( NULL AS INTEGER ) + + 52 + + 43 * + 6 / + - 95 AS col1, - 97
----
NULL
-97

query II rowsort
SELECT ALL + 59 AS col0, - 17
----
59
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT ALL 11 * + CASE - 72 WHEN + + 28 THEN + 30 END + - ( + - 37 ) + - 13 * COUNT( * ) + 90 * + 58 + + 90 * - 16 AS col1, - 86
----
NULL
-86

skipif mysql # not compatible
query II rowsort label-4735
SELECT ALL 11 * + CASE - 72 WHEN + + 28 THEN + 30 END + - ( + - 37 ) + - 13 * COUNT ( * ) + 90 * + 58 + + 90 * - 16 AS col1, - 86
----
NULL
-86

query I rowsort
SELECT ALL + 48 AS col1
----
48

query I rowsort
SELECT DISTINCT 70 * - 15 + + 28 + + + 17
----
-1005

query II rowsort
SELECT + 95, 22 AS col2
----
95
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT - 11 * CAST( NULL AS SIGNED ) - - COUNT( * ) * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT - 11 * CAST ( NULL AS INTEGER ) - - COUNT ( * ) * COUNT ( * ) AS col2
----
NULL

query I rowsort
SELECT + ( + 92 ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4741
SELECT + + 98 * + COUNT( + 87 ), 33 + - - 58 + + - 9 + + 82 - 42 * + ( 61 ) col0
----
98
-2398

skipif mysql # not compatible
query II rowsort label-4741
SELECT + + 98 * + COUNT ( + 87 ), 33 + - - 58 + + - 9 + + 82 - 42 * + ( 61 ) col0
----
98
-2398

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT - + 93 * + 78 + - + MAX( ( 4 ) )
----
-7258

skipif mysql # not compatible
query I rowsort label-4742
SELECT - + 93 * + 78 + - + MAX ( ( 4 ) )
----
-7258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4743
SELECT ALL + 21 * + COUNT( * ) + + + COUNT( - 42 ), CAST( NULL AS SIGNED ) * - CAST( NULLIF ( - - 5, 54 ) AS SIGNED ) AS col2
----
22
NULL

skipif mysql # not compatible
query II rowsort label-4743
SELECT ALL + 21 * + COUNT ( * ) + + + COUNT ( - 42 ), CAST ( NULL AS INTEGER ) * - CAST ( NULLIF ( - - 5, 54 ) AS INTEGER ) AS col2
----
22
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4744
SELECT + ( - MAX( 54 ) ) AS col0, + 15 AS col2
----
-54
15

skipif mysql # not compatible
query II rowsort label-4744
SELECT + ( - MAX ( 54 ) ) AS col0, + 15 AS col2
----
-54
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4745
SELECT + COALESCE ( + CASE - - 43 WHEN - MAX( DISTINCT 28 ) * 0 - + 32 THEN NULL ELSE + 32 DIV 82 DIV - ( - COALESCE ( + - 65, - 26 ) ) + - - COUNT( * ) END, + 17 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4745
SELECT + COALESCE ( + CASE - - 43 WHEN - MAX ( DISTINCT 28 ) * 0 - + 32 THEN NULL ELSE + 32 / 82 / - ( - COALESCE ( + - 65, - 26 ) ) + - - COUNT ( * ) END, + 17 ) AS col1
----
1

query II rowsort
SELECT - 62 AS col0, - ( 33 ) col2
----
-62
-33

query I rowsort
SELECT + - ( - 34 )
----
34

query I rowsort
SELECT ALL + 19 AS col0
----
19

query I rowsort
SELECT - 6 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL + COUNT( * ) - - + ( 83 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL + COUNT ( * ) - - + ( 83 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL NULLIF ( - COUNT( * ), COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL NULLIF ( - COUNT ( * ), COUNT ( * ) )
----
-1

query I rowsort
SELECT - ( - 26 ) + + 37 AS col0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT - 14 - + CAST( + 56 AS SIGNED ) * + 78 + - COUNT( * ) * + 44 AS col2
----
-4426

skipif mysql # not compatible
query I rowsort label-4753
SELECT - 14 - + CAST ( + 56 AS INTEGER ) * + 78 + - COUNT ( * ) * + 44 AS col2
----
-4426

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4754
SELECT ALL ( + 83 ) col2, - 77 * - CAST( NULL AS DECIMAL ) + + 80 col2
----
83
NULL

skipif mysql # not compatible
query II rowsort label-4754
SELECT ALL ( + 83 ) col2, - 77 * - CAST ( NULL AS REAL ) + + 80 col2
----
83
NULL

query I rowsort
SELECT + 31 * 1 AS col2
----
31

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT + 90 - + 10 DIV - 32 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-4756
SELECT + 90 - + 10 / - 32 AS col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT ALL ( MAX( + - 34 ) )
----
-34

skipif mysql # not compatible
query I rowsort label-4757
SELECT ALL ( MAX ( + - 34 ) )
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4758
SELECT ALL ( ( - SUM( - - 50 ) ) ) DIV + - 93 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL ( ( - SUM ( - - 50 ) ) ) / + - 93 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT - 54 + COUNT( * ) + 42 * + 48 AS col1
----
1963

skipif mysql # not compatible
query I rowsort label-4759
SELECT - 54 + COUNT ( * ) + 42 * + 48 AS col1
----
1963

query I rowsort
SELECT DISTINCT ( 8 ) col0
----
8

query I rowsort
SELECT ALL ( - + 83 ) AS col1
----
-83

query I rowsort
SELECT 56 AS col0
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT DISTINCT CAST( ( - + 83 ) AS SIGNED )
----
-83

skipif mysql # not compatible
query I rowsort label-4763
SELECT DISTINCT CAST ( ( - + 83 ) AS INTEGER )
----
-83

query I rowsort
SELECT + 45 * - + 82 AS col0
----
-3690

onlyif mysql # aggregate syntax: 
query I rowsort label-4765
SELECT DISTINCT - 76 + - 74 + + COUNT( * )
----
-149

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT - 76 + - 74 + + COUNT ( * )
----
-149

query I rowsort
SELECT + - 38 + 21 + ( 66 ) + + + 98
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4767
SELECT DISTINCT - - COUNT( * ) DIV 9 + - 91 + 14
----
-77

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - - COUNT ( * ) / 9 + - 91 + 14
----
-77

query I rowsort
SELECT ALL + - 85 AS col1
----
-85

query I rowsort
SELECT - 63 * + 7 + - - 62
----
-379

query I rowsort
SELECT ALL + + 68 col1
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4771
SELECT + - SUM( - 8 ) DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-4771
SELECT + - SUM ( - 8 ) / - 23
----
0

query I rowsort
SELECT 57 col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT - MAX( ALL - 59 ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-4773
SELECT - MAX ( ALL - 59 ) AS col0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4774
SELECT + ( 84 ) DIV - - 61 - + + COUNT( * ) * - + 79 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4774
SELECT + ( 84 ) / - - 61 - + + COUNT ( * ) * - + 79 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT ALL 67 * + ( + + ( 12 ) ) * - MIN( + CAST( + 23 AS SIGNED ) ) + - COUNT( * ) AS col0
----
-18493

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL 67 * + ( + + ( 12 ) ) * - MIN ( + CAST ( + 23 AS INTEGER ) ) + - COUNT ( * ) AS col0
----
-18493

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4776
SELECT ALL + + COALESCE ( 27, - 62 + + 37 + - - 54 + - + 66 * + - 96 - + 23 DIV - - 78 DIV + 86 + - 50 + + - COUNT( * ) DIV - 0 )
----
27

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL + + COALESCE ( 27, - 62 + + 37 + - - 54 + - + 66 * + - 96 - + 23 / - - 78 / + 86 + - 50 + + - COUNT ( * ) / - 0 )
----
27

query I rowsort
SELECT + + 2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT 36 * - 49 + + + CASE 21 WHEN - 64 THEN - COUNT( * ) + - 43 * + 33 + - + 69 WHEN + + 20 THEN NULL WHEN 94 THEN + ( + 60 ) + - 28 + - 35 ELSE 61 * + + COUNT( * ) * 74 END
----
2750

skipif mysql # not compatible
query I rowsort label-4778
SELECT 36 * - 49 + + + CASE 21 WHEN - 64 THEN - COUNT ( * ) + - 43 * + 33 + - + 69 WHEN + + 20 THEN NULL WHEN 94 THEN + ( + 60 ) + - 28 + - 35 ELSE 61 * + + COUNT ( * ) * 74 END
----
2750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4779
SELECT + 32 * - + 42 AS col2, + CAST( NULL AS SIGNED ) AS col0
----
-1344
NULL

skipif mysql # not compatible
query II rowsort label-4779
SELECT + 32 * - + 42 AS col2, + CAST ( NULL AS INTEGER ) AS col0
----
-1344
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT ALL 71 * + - 82 + CAST( NULL AS SIGNED ) * + - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL 71 * + - 82 + CAST ( NULL AS INTEGER ) * + - 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT + + COUNT( DISTINCT + 33 ) + + 25
----
26

skipif mysql # not compatible
query I rowsort label-4781
SELECT + + COUNT ( DISTINCT + 33 ) + + 25
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL + - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL + - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT ALL - COALESCE ( + MIN( ALL - 7 ), + + 88 ) * - 33 + - COUNT( * )
----
-232

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - COALESCE ( + MIN ( ALL - 7 ), + + 88 ) * - 33 + - COUNT ( * )
----
-232

query I rowsort
SELECT ALL + 67
----
67

query I rowsort
SELECT 53 * + + 79 + + 29 AS col2
----
4216

query I rowsort
SELECT + ( + + COALESCE ( - + 21, + 5, - 22 ) ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT - COUNT( * ) * - - 83 + - - 41 AS col2
----
-42

skipif mysql # not compatible
query I rowsort label-4787
SELECT - COUNT ( * ) * - - 83 + - - 41 AS col2
----
-42

query I rowsort
SELECT - 14 + + 86 AS col1
----
72

query I rowsort
SELECT ALL COALESCE ( - + 28, - 46 + + 60 )
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT NULLIF ( 87, + 70 + - ( 49 ) * + + COUNT( * ) )
----
87

skipif mysql # not compatible
query I rowsort label-4790
SELECT NULLIF ( 87, + 70 + - ( 49 ) * + + COUNT ( * ) )
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT COALESCE ( - + 83, + CAST( + - 38 AS SIGNED ) + 64, + - ( 73 ) ) AS col1
----
-83

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT COALESCE ( - + 83, + CAST ( + - 38 AS INTEGER ) + 64, + - ( 73 ) ) AS col1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT + 2 DIV - 39 * - 48 * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT + 2 / - 39 * - 48 * + COUNT ( * )
----
0

query I rowsort
SELECT ALL ( 58 ) AS col2
----
58

query I rowsort
SELECT DISTINCT + 0 * + 53
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ALL + ( - 30 ) * - - 22 + - 20 + SUM( - 50 ) AS col0
----
-730

skipif mysql # not compatible
query I rowsort label-4795
SELECT ALL + ( - 30 ) * - - 22 + - 20 + SUM ( - 50 ) AS col0
----
-730

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT - 72 * - COALESCE ( - 98, 46, + + COALESCE ( + ( - 39 ), + SUM( + - 92 ) ) + + ( 10 ) * + 25 + 91 ) * + COUNT( * ) - - + CASE - 50 WHEN + - NULLIF ( + 58, + 10 ) * + 76 + + 51 + MIN( - 20 ) * SUM( DISTINCT - 82 ) / - - 31 * - - 94 THEN - 46 WHEN ( + + CASE + ( + - 20 ) WHEN + 40 THEN + 57 WHEN 43 THEN - 79 END ) THEN NULL END * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT - 72 * - COALESCE ( - 98, 46, + + COALESCE ( + ( - 39 ), + SUM ( + - 92 ) ) + + ( 10 ) * + 25 + 91 ) * + COUNT ( * ) - - + CASE - 50 WHEN + - NULLIF ( + 58, + 10 ) * + 76 + + 51 + MIN ( - 20 ) * SUM ( DISTINCT - 82 ) / - - 31 * - - 94 THEN - 46 WHEN ( + + CASE + ( + - 20 ) WHEN + 40 THEN + 57 WHEN 43 THEN - 79 END ) THEN NULL END * + - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4797
SELECT ALL + NULLIF ( 54, + COUNT( * ) DIV - - 7 + + MAX( ALL - - CAST( - - 64 AS SIGNED ) ) * - 41 * + COUNT( * ) ) + - - CAST( NULL AS SIGNED ) col2, - 84 * + 15 + + 45 DIV + 34
----
NULL
-1259

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL + NULLIF ( 54, + COUNT ( * ) / - - 7 + + MAX ( ALL - - CAST ( - - 64 AS INTEGER ) ) * - 41 * + COUNT ( * ) ) + - - CAST ( NULL AS INTEGER ) col2, - 84 * + 15 + + 45 / + 34
----
NULL
-1259

query I rowsort
SELECT ALL COALESCE ( - + 94, - 65 ) AS col2
----
-94

query I rowsort
SELECT + 42 - 19 AS col0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4800
SELECT 24 DIV - 86
----
0

skipif mysql # not compatible
query I rowsort label-4800
SELECT 24 / - 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT MIN( - 73 ) + - + 33 AS col0
----
-106

skipif mysql # not compatible
query I rowsort label-4801
SELECT MIN ( - 73 ) + - + 33 AS col0
----
-106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL - 47 + + + CAST( + 68 AS SIGNED )
----
21

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - 47 + + + CAST ( + 68 AS INTEGER )
----
21

query I rowsort
SELECT DISTINCT + 36 * - - 62
----
2232

query I rowsort
SELECT ALL - ( - 43 )
----
43

query I rowsort
SELECT 98 * 52 * - 93 AS col0
----
-473928

query I rowsort
SELECT + 13 - + ( - CASE + 0 WHEN - ( + NULLIF ( + + 23, - 75 ) ) + - 7 / - 10 THEN - 74 ELSE NULL END ) + + 92 + - + 8 + + 99 AS col1
----
NULL

query I rowsort
SELECT ALL - COALESCE ( + 89, - 79 ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4808
SELECT + CAST( - 63 AS SIGNED ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-4808
SELECT + CAST ( - 63 AS INTEGER ) AS col2
----
-63

query I rowsort
SELECT ALL - + 28 + + 1 * + 34
----
6

query I rowsort
SELECT 78 * - - 53 col0
----
4134

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT + 23 * - 63 + 99 AS col2, + COUNT( * ) AS col0
----
-1350
1

skipif mysql # not compatible
query II rowsort label-4811
SELECT + 23 * - 63 + 99 AS col2, + COUNT ( * ) AS col0
----
-1350
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) / 28 + - - 86 + + - MIN( DISTINCT - 10 ) + + 37 * + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-4812
SELECT MAX ( ALL - CAST ( NULL AS INTEGER ) ) / 28 + - - 86 + + - MIN ( DISTINCT - 10 ) + + 37 * + - COUNT ( * )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4813
SELECT - 63 - + + ( 51 ) DIV + 55
----
-63

skipif mysql # not compatible
query I rowsort label-4813
SELECT - 63 - + + ( 51 ) / + 55
----
-63

query I rowsort
SELECT + 41 AS col1
----
41

query I rowsort
SELECT - 72 + + - 47 * + 39
----
-1905

query I rowsort
SELECT ALL + 71 - + 10
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT NULLIF ( ( + 82 ), COUNT( * ) ) * 71 + + 56
----
5878

skipif mysql # not compatible
query I rowsort label-4817
SELECT NULLIF ( ( + 82 ), COUNT ( * ) ) * 71 + + 56
----
5878

query I rowsort
SELECT ALL - + 55 col0
----
-55

query I rowsort
SELECT + - 47
----
-47

query I rowsort
SELECT ALL + - 73 * + 93 col0
----
-6789

query I rowsort
SELECT + + ( 63 ) col1
----
63

query I rowsort
SELECT ALL - 80 AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT COUNT( * ) * - COUNT( * ) - 26
----
-27

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( * ) * - COUNT ( * ) - 26
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT CAST( NULL AS SIGNED ) * + 64 * + 69 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT CAST ( NULL AS INTEGER ) * + 64 * + 69 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT 85 * - COUNT( * ) + - + 94 AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-4825
SELECT 85 * - COUNT ( * ) + - + 94 AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT MAX( - 88 ) * 37 AS col0
----
-3256

skipif mysql # not compatible
query I rowsort label-4826
SELECT MAX ( - 88 ) * 37 AS col0
----
-3256

query I rowsort
SELECT 38 * - 81
----
-3078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4828
SELECT ALL 8 DIV + COUNT( * )
----
8

skipif mysql # not compatible
query I rowsort label-4828
SELECT ALL 8 / + COUNT ( * )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4829
SELECT ALL CASE + 17 WHEN 21 + - CAST( + 19 AS SIGNED ) + 50 THEN + 96 ELSE NULL END * - + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL CASE + 17 WHEN 21 + - CAST ( + 19 AS INTEGER ) + 50 THEN + 96 ELSE NULL END * - + 47
----
NULL

query I rowsort
SELECT ALL ( - 83 ) * - 13 AS col1
----
1079

query I rowsort
SELECT DISTINCT NULLIF ( - 65, 9 ) + + - 52 AS col1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4832
SELECT ALL 24 AS col0, - CASE + 37 WHEN + 40 * - COALESCE ( - - 65, + 12 / + SUM( ALL + - 14 ), - CAST( - 81 AS SIGNED ) ) THEN - 92 WHEN + 69 THEN NULL ELSE NULL END + + + 31 AS col2
----
24
NULL

skipif mysql # not compatible
query II rowsort label-4832
SELECT ALL 24 AS col0, - CASE + 37 WHEN + 40 * - COALESCE ( - - 65, + 12 / + SUM ( ALL + - 14 ), - CAST ( - 81 AS INTEGER ) ) THEN - 92 WHEN + 69 THEN NULL ELSE NULL END + + + 31 AS col2
----
24
NULL

query I rowsort
SELECT DISTINCT 75
----
75

query I rowsort
SELECT ( + 41 ) * - + 99
----
-4059

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT 17 + 53 + COALESCE ( + 65, COUNT( * ), + + COUNT( * ) ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-4835
SELECT 17 + 53 + COALESCE ( + 65, COUNT ( * ), + + COUNT ( * ) ) AS col2
----
135

query I rowsort
SELECT 53 - - 25 col1
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-4837
SELECT ALL 35 AS col1, - 90 + + COUNT( - 94 ) AS col0
----
35
-89

skipif mysql # not compatible
query II rowsort label-4837
SELECT ALL 35 AS col1, - 90 + + COUNT ( - 94 ) AS col0
----
35
-89

query I rowsort
SELECT ( 6 ) + - 5 AS col0
----
1

query I rowsort
SELECT 62 - 74
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT 69 * - CAST( NULL AS SIGNED ) * - ( 9 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT 69 * - CAST ( NULL AS INTEGER ) * - ( 9 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4841
SELECT DISTINCT + 78 + + 27 - 69 + + CAST( NULL AS DECIMAL ) + - 75 * CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + 78 + + 27 - 69 + + CAST ( NULL AS REAL ) + - 75 * CAST ( NULL AS INTEGER ) * 21
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT ALL - 23 + 32 * - COUNT( * ) + - COUNT( * ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-4842
SELECT ALL - 23 + 32 * - COUNT ( * ) + - COUNT ( * ) AS col0
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4843
SELECT 89, + COUNT( * ) DIV - + 52 - + - 11 DIV - 64 col0
----
89
0

skipif mysql # not compatible
query II rowsort label-4843
SELECT 89, + COUNT ( * ) / - + 52 - + - 11 / - 64 col0
----
89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4844
SELECT ALL + 43 + - 63, - CASE COALESCE ( + 96, 98, + + COUNT( * ) + CAST( NULL AS SIGNED ) ) WHEN - 39 * COUNT( * ) THEN - 53 / + SUM( 60 ) / - - 58 + + 93 + + + 83 + + + COUNT( * ) / 72 ELSE - 87 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + 3 END AS col2
----
-20
NULL

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL + 43 + - 63, - CASE COALESCE ( + 96, 98, + + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) WHEN - 39 * COUNT ( * ) THEN - 53 / + SUM ( 60 ) / - - 58 + + 93 + + + 83 + + + COUNT ( * ) / 72 ELSE - 87 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + 3 END AS col2
----
-20
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4845
SELECT COUNT( * ) + 28 AS col1, MAX( 39 )
----
29
39

skipif mysql # not compatible
query II rowsort label-4845
SELECT COUNT ( * ) + 28 AS col1, MAX ( 39 )
----
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL - - 92 * + + COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL - - 92 * + + COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT 63 + + + COUNT( * ) + + 55
----
119

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT 63 + + + COUNT ( * ) + + 55
----
119

query I rowsort
SELECT ALL + ( + 97 ) + - + 24 + + 50 AS col0
----
123

onlyif mysql # aggregate syntax: 
query II rowsort label-4849
SELECT - 13 AS col0, - COUNT( * ) + - 85
----
-13
-86

skipif mysql # not compatible
query II rowsort label-4849
SELECT - 13 AS col0, - COUNT ( * ) + - 85
----
-13
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT - COUNT( * ) + + 8
----
7

skipif mysql # not compatible
query I rowsort label-4850
SELECT - COUNT ( * ) + + 8
----
7

query I rowsort
SELECT DISTINCT 65 * + ( - ( + 11 ) ) AS col1
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL + 31 * + MIN( ALL + + 47 )
----
1457

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL + 31 * + MIN ( ALL + + 47 )
----
1457

query I rowsort
SELECT 16 + - 12
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT ALL - 50 DIV 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL - 50 / 51 AS col0
----
0

query I rowsort
SELECT ALL - 64 AS col0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-4856
SELECT - 29 DIV - + 58 + + 91 * + 62 + - - 83 AS col0
----
5725

skipif mysql # not compatible
query I rowsort label-4856
SELECT - 29 / - + 58 + + 91 * + 62 + - - 83 AS col0
----
5725

query I rowsort
SELECT 95 + + 34 * - 91
----
-2999

query I rowsort
SELECT + 45 * - 36 * - 65 AS col0
----
105300

query I rowsort
SELECT 83 + 21
----
104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4860
SELECT 17 DIV + - NULLIF ( + COUNT( * ), + 87 ) - - 96 + + 43 AS col1
----
122

skipif mysql # not compatible
query I rowsort label-4860
SELECT 17 / + - NULLIF ( + COUNT ( * ), + 87 ) - - 96 + + 43 AS col1
----
122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4861
SELECT COALESCE ( 50, COUNT( * ) DIV - CASE CAST( NULL AS SIGNED ) WHEN - - 28 THEN COUNT( * ) ELSE NULL END, 31 ) * - 39 AS col1
----
-1950

skipif mysql # not compatible
query I rowsort label-4861
SELECT COALESCE ( 50, COUNT ( * ) / - CASE CAST ( NULL AS INTEGER ) WHEN - - 28 THEN COUNT ( * ) ELSE NULL END, 31 ) * - 39 AS col1
----
-1950

query I rowsort
SELECT 93 * 43
----
3999

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT 28 + - - COUNT( - 64 ) col0
----
29

skipif mysql # not compatible
query I rowsort label-4863
SELECT 28 + - - COUNT ( - 64 ) col0
----
29

query I rowsort
SELECT + 2 AS col2
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT - CAST( - + 11 AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 20 * - + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT - CAST ( - + 11 AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 20 * - + 92
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - 97 * + - MAX( DISTINCT - 9 ) + + 79 AS col1
----
-794

skipif mysql # not compatible
query I rowsort label-4866
SELECT - 97 * + - MAX ( DISTINCT - 9 ) + + 79 AS col1
----
-794

query I rowsort
SELECT 12 * + + 33 col0
----
396

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL - COUNT( * ) * - - 96
----
-96

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - COUNT ( * ) * - - 96
----
-96

query I rowsort
SELECT 18 + - ( 76 ) * 65 AS col2
----
-4922

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL ( + COUNT( * ) ) + - - 31 * + 74
----
2295

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL ( + COUNT ( * ) ) + - - 31 * + 74
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-4871
SELECT ALL + MAX( - - 95 ) + 81 AS col0, 4 AS col0
----
176
4

skipif mysql # not compatible
query II rowsort label-4871
SELECT ALL + MAX ( - - 95 ) + 81 AS col0, 4 AS col0
----
176
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT SUM( + 26 )
----
26

skipif mysql # not compatible
query I rowsort label-4872
SELECT SUM ( + 26 )
----
26

query I rowsort
SELECT 27 * - 5 * + 79 + - 50 AS col0
----
-10715

query I rowsort
SELECT - 43 * - 77
----
3311

query I rowsort
SELECT ALL + 79 col2
----
79

query I rowsort
SELECT 37 AS col2
----
37

query I rowsort
SELECT + 59 * + 57 + + - 30 AS col0
----
3333

query I rowsort
SELECT ALL + 92 AS col1
----
92

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4879
SELECT - 95 DIV 65 AS col2, 29 * - NULLIF ( 49, - 41 DIV + - COALESCE ( - + CAST( + 35 AS DECIMAL ), 37 * + - 24 + + + 48 - 85, - - 93 ) ) + 35 AS col1
----
-1
-1386

skipif mysql # not compatible
query II rowsort label-4879
SELECT - 95 / 65 AS col2, 29 * - NULLIF ( 49, - 41 / + - COALESCE ( - + CAST ( + 35 AS REAL ), 37 * + - 24 + + + 48 - 85, - - 93 ) ) + 35 AS col1
----
-1
-1386

query I rowsort
SELECT + 1 + - 5 * - 67
----
336

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT - MAX( DISTINCT - - 20 ) AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-4881
SELECT - MAX ( DISTINCT - - 20 ) AS col2
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT - MIN( DISTINCT - 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4882
SELECT - MIN ( DISTINCT - 88 ) AS col1
----
88

query I rowsort
SELECT ALL CASE WHEN NOT ( NULL ) IS NOT NULL THEN NULL WHEN - 24 IS NOT NULL THEN NULL ELSE - 43 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + 65 * - COUNT( * ) * COUNT( * ) * + 51 AS col2
----
-3315

skipif mysql # not compatible
query I rowsort label-4884
SELECT + 65 * - COUNT ( * ) * COUNT ( * ) * + 51 AS col2
----
-3315

query I rowsort
SELECT ALL 8 * + 95
----
760

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT DISTINCT - COUNT( * ) + - + 34 + - + 65 * - 38 AS col2
----
2435

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT - COUNT ( * ) + - + 34 + - + 65 * - 38 AS col2
----
2435

query I rowsort
SELECT + 79 col1
----
79

query I rowsort
SELECT - 96 AS col2
----
-96

query I rowsort
SELECT ALL 41 col1
----
41

query I rowsort
SELECT - ( - 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + 48 - - COUNT( + 3 ) AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4891
SELECT + 48 - - COUNT ( + 3 ) AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4892
SELECT - - 9 + + 56 * + 45 + + CAST( - NULLIF ( - COUNT( * ), + 92 ) AS SIGNED ), + 53 AS col0
----
2530
53

skipif mysql # not compatible
query II rowsort label-4892
SELECT - - 9 + + 56 * + 45 + + CAST ( - NULLIF ( - COUNT ( * ), + 92 ) AS INTEGER ), + 53 AS col0
----
2530
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4893
SELECT - COUNT( * ) + + + ( + + 79 ) AS col2, + 51 + + + 82 * - - 20
----
78
1691

skipif mysql # not compatible
query II rowsort label-4893
SELECT - COUNT ( * ) + + + ( + + 79 ) AS col2, + 51 + + + 82 * - - 20
----
78
1691

query I rowsort
SELECT ALL + 71 - + 99 * + - 36
----
3635

query I rowsort
SELECT ALL + 97 AS col1
----
97

query I rowsort
SELECT - + 84 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT DISTINCT - - 22 * - 11 / + ( + 80 ) * - ( 11 ) + - 98 * CASE - 3 WHEN + + 45 * 19 THEN NULL WHEN + - 66 + - - 54 * COUNT( * ) THEN + - COUNT( * ) END * + 11 - - 46 - - 61 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4897
SELECT DISTINCT - - 22 * - 11 / + ( + 80 ) * - ( 11 ) + - 98 * CASE - 3 WHEN + + 45 * 19 THEN NULL WHEN + - 66 + - - 54 * COUNT ( * ) THEN + - COUNT ( * ) END * + 11 - - 46 - - 61 AS col1
----
NULL

query I rowsort
SELECT ALL 15 AS col0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4899
SELECT - + SUM( DISTINCT + ( CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4899
SELECT - + SUM ( DISTINCT + ( CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT ALL + + ( + 33 ) AS col2
----
33

query I rowsort
SELECT - - 39 * 54 + 39 + - + 21 AS col1
----
2124

query I rowsort
SELECT + + COALESCE ( + 60, + + 9 ) * + ( - 88 ) * - 80
----
422400

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + 89 DIV 12 + 24
----
31

skipif mysql # not compatible
query I rowsort label-4903
SELECT + 89 / 12 + 24
----
31

query I rowsort
SELECT ALL - 85 * + 59 AS col0
----
-5015

query I rowsort
SELECT ( - - 46 ) AS col1
----
46

query I rowsort
SELECT ( - 74 )
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4907
SELECT ALL ( + 73 ) * - 36 + - 83 + - COUNT( * ) AS col1
----
-2712

skipif mysql # not compatible
query I rowsort label-4907
SELECT ALL ( + 73 ) * - 36 + - 83 + - COUNT ( * ) AS col1
----
-2712

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4908
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( * ) / - 69 / + 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4908
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( * ) / - 69 / + 9 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT ALL - 33 * + - 86 + COUNT( * ) - + 73 - + 35 * + + COUNT( DISTINCT - - 26 ) * + 62 + - 54 * SUM( - COALESCE ( + + 35, + - 85 ) ) - - CAST( + 81 AS SIGNED ) * - - 38
----
5564

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - 33 * + - 86 + COUNT ( * ) - + 73 - + 35 * + + COUNT ( DISTINCT - - 26 ) * + 62 + - 54 * SUM ( - COALESCE ( + + 35, + - 85 ) ) - - CAST ( + 81 AS INTEGER ) * - - 38
----
5564

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( ALL 34 ) col1
----
34

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( ALL 34 ) col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4911
SELECT COALESCE ( + 69, - 58 ) AS col1, 9 + - COUNT( * ) col0
----
69
8

skipif mysql # not compatible
query II rowsort label-4911
SELECT COALESCE ( + 69, - 58 ) AS col1, 9 + - COUNT ( * ) col0
----
69
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT - 68 * + COALESCE ( ( 79 ), - 73, 89 ) - SUM( - + 5 )
----
-5367

skipif mysql # not compatible
query I rowsort label-4912
SELECT - 68 * + COALESCE ( ( 79 ), - 73, 89 ) - SUM ( - + 5 )
----
-5367

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT COALESCE ( - 52, + ( - + COUNT( + 96 ) ) + + 60 + - 63 - + 45 * - + 92 * - COALESCE ( + + 82, + 27 ) * + 53 - - 80 ) col1
----
-52

skipif mysql # not compatible
query I rowsort label-4913
SELECT COALESCE ( - 52, + ( - + COUNT ( + 96 ) ) + + 60 + - 63 - + 45 * - + 92 * - COALESCE ( + + 82, + 27 ) * + 53 - - 80 ) col1
----
-52

query II rowsort
SELECT NULLIF ( - 26, - 30 * - 19 ) AS col1, 60
----
-26
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT + SUM( - 88 )
----
-88

skipif mysql # not compatible
query I rowsort label-4915
SELECT + SUM ( - 88 )
----
-88

query I rowsort
SELECT ALL - 40 * + 62 + - + 16
----
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT NULLIF ( - - 98, - 17 + + - COUNT( * ) )
----
98

skipif mysql # not compatible
query I rowsort label-4917
SELECT NULLIF ( - - 98, - 17 + + - COUNT ( * ) )
----
98

query I rowsort
SELECT - 89 - + 66 AS col2
----
-155

query I rowsort
SELECT ALL - 51 * 67 * - 25 AS col2
----
85425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4920
SELECT ALL + 23 AS col2, CAST( NULL AS SIGNED )
----
23
NULL

skipif mysql # not compatible
query II rowsort label-4920
SELECT ALL + 23 AS col2, CAST ( NULL AS INTEGER )
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT + MIN( DISTINCT 44 )
----
44

skipif mysql # not compatible
query I rowsort label-4921
SELECT + MIN ( DISTINCT 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT ALL - COUNT( * ) * - 7 - + - 15 + - 74
----
-52

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL - COUNT ( * ) * - 7 - + - 15 + - 74
----
-52

query I rowsort
SELECT DISTINCT ( + 22 ) AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4924
SELECT + MIN( DISTINCT + + 75 ) + 84 AS col2
----
159

skipif mysql # not compatible
query I rowsort label-4924
SELECT + MIN ( DISTINCT + + 75 ) + 84 AS col2
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT - + 35 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4925
SELECT - + 35 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4926
SELECT ALL CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT + - COUNT( * ) * + 22 + - NULLIF ( + 55, + 27 + - - 88 * 33 ) AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-4927
SELECT + - COUNT ( * ) * + 22 + - NULLIF ( + 55, + 27 + - - 88 * 33 ) AS col2
----
-77

query I rowsort
SELECT - 42 * 33
----
-1386

query I rowsort
SELECT - + 86 + 93
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4930
SELECT + 69 DIV + - NULLIF ( - 5, COUNT( * ) * 90 )
----
13

skipif mysql # not compatible
query I rowsort label-4930
SELECT + 69 / + - NULLIF ( - 5, COUNT ( * ) * 90 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + MIN( DISTINCT - + 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-4931
SELECT + MIN ( DISTINCT - + 81 )
----
-81

query I rowsort
SELECT ALL - 9 * 12
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT COUNT( * ) * + - 39
----
-39

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT COUNT ( * ) * + - 39
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL MAX( DISTINCT + 11 ) * + 7 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL MAX ( DISTINCT + 11 ) * + 7 AS col0
----
77

query I rowsort
SELECT DISTINCT - 73 AS col1
----
-73

query I rowsort
SELECT - - 17 + + - 80
----
-63

query I rowsort
SELECT - ( + 49 )
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4938
SELECT + - 53 * + - COUNT( - 20 ) + 68 + + ( + 23 ) DIV + NULLIF ( 30, - - 69 - 47 - + + 64 )
----
121

skipif mysql # not compatible
query I rowsort label-4938
SELECT + - 53 * + - COUNT ( - 20 ) + 68 + + ( + 23 ) / + NULLIF ( 30, - - 69 - 47 - + + 64 )
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL + COUNT( * ) * + 65
----
65

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL + COUNT ( * ) * + 65
----
65

query I rowsort
SELECT - - ( + + 30 ) AS col2
----
30

query I rowsort
SELECT ALL 10 + + 57
----
67

onlyif mysql # aggregate syntax: 
query II rowsort label-4942
SELECT + 3 + - ( + ( - + SUM( 76 ) ) ) AS col1, 96 * 72
----
79
6912

skipif mysql # not compatible
query II rowsort label-4942
SELECT + 3 + - ( + ( - + SUM ( 76 ) ) ) AS col1, 96 * 72
----
79
6912

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4943
SELECT ALL + 39 DIV 3 + - ( - COUNT( * ) ) AS col0, + COUNT( * ) + ( - - 94 ) col1
----
14
95

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL + 39 / 3 + - ( - COUNT ( * ) ) AS col0, + COUNT ( * ) + ( - - 94 ) col1
----
14
95

query I rowsort
SELECT + 79 + + 8 * 10
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4945
SELECT ALL + COUNT( DISTINCT + 48 ) DIV 53 + MAX( ALL - 56 ) * COUNT( ALL + 19 )
----
-56

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL + COUNT ( DISTINCT + 48 ) / 53 + MAX ( ALL - 56 ) * COUNT ( ALL + 19 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT - 64 * COUNT( * ) + - 35 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-4946
SELECT - 64 * COUNT ( * ) + - 35 AS col0
----
-99

query I rowsort
SELECT DISTINCT - 69 AS col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4948
SELECT 54 * + 11 - + MIN( - 25 ) + 58 DIV - + 20 + 49
----
666

skipif mysql # not compatible
query I rowsort label-4948
SELECT 54 * + 11 - + MIN ( - 25 ) + 58 / - + 20 + 49
----
666

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT ALL COALESCE ( + - 40, - MAX( ALL - + 54 ), - ( - 2 ) ) * 69
----
-2760

skipif mysql # not compatible
query I rowsort label-4949
SELECT ALL COALESCE ( + - 40, - MAX ( ALL - + 54 ), - ( - 2 ) ) * 69
----
-2760

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT NULLIF ( + - 22, 44 ) + COUNT( * ) * - - 57
----
35

skipif mysql # not compatible
query I rowsort label-4950
SELECT NULLIF ( + - 22, 44 ) + COUNT ( * ) * - - 57
----
35

query I rowsort
SELECT 53 + + 96 col1
----
149

query I rowsort
SELECT 63 + 15 + + 80 AS col1
----
158

query I rowsort
SELECT ALL - 91 + + 25
----
-66

query I rowsort
SELECT DISTINCT + 37 * 78
----
2886

query I rowsort
SELECT ALL - 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT 52 + - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-4956
SELECT 52 + - COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL 71 - 96 * COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL 71 - 96 * COUNT ( * )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT + 63 * + + CAST( NULL AS SIGNED ) + 81
----
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT + 63 * + + CAST ( NULL AS INTEGER ) + 81
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4959
SELECT ALL + 92 DIV + + 98 * 86
----
0

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL + 92 / + + 98 * 86
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT 68 * + COUNT( * ) col2
----
68

skipif mysql # not compatible
query I rowsort label-4960
SELECT 68 * + COUNT ( * ) col2
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - COALESCE ( COUNT( * ), - 93 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - COALESCE ( COUNT ( * ), - 93 ) col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4962
SELECT COUNT( * ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4962
SELECT COUNT ( * ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT 78 * + SUM( ALL 57 ) AS col2
----
4446

skipif mysql # not compatible
query I rowsort label-4963
SELECT 78 * + SUM ( ALL 57 ) AS col2
----
4446

query I rowsort
SELECT ALL - ( - - ( - 30 ) )
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - COALESCE ( - - 38, + - CASE + COUNT( * ) WHEN 20 + + 47 * - 12 * 64 THEN NULL WHEN 17 THEN + 63 ELSE NULL END, 22 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - COALESCE ( - - 38, + - CASE + COUNT ( * ) WHEN 20 + + 47 * - 12 * 64 THEN NULL WHEN 17 THEN + 63 ELSE NULL END, 22 ) AS col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT - COUNT( * ) * + 42
----
-42

skipif mysql # not compatible
query I rowsort label-4966
SELECT - COUNT ( * ) * + 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL COUNT( ( 9 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL COUNT ( ( 9 ) )
----
1

query I rowsort
SELECT - - 91 AS col2
----
91

query I rowsort
SELECT ALL + + NULLIF ( - 70, - 22 ) * + - 41 AS col0
----
2870

query I rowsort
SELECT ALL + + 14 * 8
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT + ( + 3 ) + - MAX( + 68 )
----
-65

skipif mysql # not compatible
query I rowsort label-4971
SELECT + ( + 3 ) + - MAX ( + 68 )
----
-65

query I rowsort
SELECT ALL 38 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT CASE COUNT( * ) WHEN + COUNT( * ) * COUNT( * ) THEN - 8 * 31 - COUNT( * ) ELSE NULL END col2
----
-249

skipif mysql # not compatible
query I rowsort label-4973
SELECT CASE COUNT ( * ) WHEN + COUNT ( * ) * COUNT ( * ) THEN - 8 * 31 - COUNT ( * ) ELSE NULL END col2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - + COUNT( * ) + - + 7 * - 52
----
363

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - + COUNT ( * ) + - + 7 * - 52
----
363

query I rowsort
SELECT + 33 - - 84 AS col2
----
117

query II rowsort
SELECT ( + 8 ) AS col2, 9
----
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - COUNT( DISTINCT - + NULLIF ( - - 57, + + 2 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-4977
SELECT - COUNT ( DISTINCT - + NULLIF ( - - 57, + + 2 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT - COUNT( * ) + + ( + 62 ) col2
----
61

skipif mysql # not compatible
query I rowsort label-4978
SELECT - COUNT ( * ) + + ( + 62 ) col2
----
61

query I rowsort
SELECT 52 * 68 col1
----
3536

onlyif mysql # DIV for integer division: 
query I rowsort label-4980
SELECT ALL 99 DIV 17 DIV 21 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL 99 / 17 / 21 AS col1
----
0

query I rowsort
SELECT - - 39 AS col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT ALL + COUNT( * ) + - - 40 + - 66
----
-25

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + COUNT ( * ) + - - 40 + - 66
----
-25

query I rowsort
SELECT DISTINCT - + 59 + + 38
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4984
SELECT - + COUNT( + 84 ) AS col2, 0 AS col1
----
-1
0

skipif mysql # not compatible
query II rowsort label-4984
SELECT - + COUNT ( + 84 ) AS col2, 0 AS col1
----
-1
0

query I rowsort
SELECT - + 16 AS col2
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT ALL - COUNT( * ) + + 91 AS col0, COUNT( - - 20 ) * + 91 col0
----
90
91

skipif mysql # not compatible
query II rowsort label-4986
SELECT ALL - COUNT ( * ) + + 91 AS col0, COUNT ( - - 20 ) * + 91 col0
----
90
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4987
SELECT ALL + 68 DIV - MIN( + - 24 )
----
2

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + 68 / - MIN ( + - 24 )
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4988
SELECT ( - - 25 ) DIV 77 AS col2, - 88 + - COUNT( * ) * + COUNT( * ) * ( + 5 ) * ( - 66 )
----
0
242

skipif mysql # not compatible
query II rowsort label-4988
SELECT ( - - 25 ) / 77 AS col2, - 88 + - COUNT ( * ) * + COUNT ( * ) * ( + 5 ) * ( - 66 )
----
0
242

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL COUNT( * ) + 57 + 80
----
138

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL COUNT ( * ) + 57 + 80
----
138

query I rowsort
SELECT 8 * + 31
----
248

query I rowsort
SELECT ALL 31 + 16 AS col2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT COUNT( * ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4992
SELECT COUNT ( * ) * - 1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT + 16, 42 + - - COALESCE ( + + 40, - 96 * - 62, - COUNT( * ) ) AS col0
----
16
82

skipif mysql # not compatible
query II rowsort label-4993
SELECT + 16, 42 + - - COALESCE ( + + 40, - 96 * - 62, - COUNT ( * ) ) AS col0
----
16
82

query II rowsort
SELECT ALL - 72 AS col2, 10 * - 90 col0
----
-72
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT + 78 - + 60 - + - COUNT( * ) * - 40 + - ( - 47 ) col1
----
25

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + 78 - + 60 - + - COUNT ( * ) * - 40 + - ( - 47 ) col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT NULLIF ( + 96, + - SUM( - 23 ) ) * + 72 AS col2
----
6912

skipif mysql # not compatible
query I rowsort label-4996
SELECT NULLIF ( + 96, + - SUM ( - 23 ) ) * + 72 AS col2
----
6912

query I rowsort
SELECT + 74 col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4998
SELECT ALL - 60 - CAST( - - COUNT( * ) AS SIGNED ) + + - MIN( + 14 ), 81 - - ( 88 ) AS col2
----
-75
169

skipif mysql # not compatible
query II rowsort label-4998
SELECT ALL - 60 - CAST ( - - COUNT ( * ) AS INTEGER ) + + - MIN ( + 14 ), 81 - - ( 88 ) AS col2
----
-75
169

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT NULLIF ( 42, - COUNT( * ) ) * + - 66 * + NULLIF ( 55, - + 9 ) + + + 92 * 33 + - - COUNT( * )
----
-149423

skipif mysql # not compatible
query I rowsort label-4999
SELECT NULLIF ( 42, - COUNT ( * ) ) * + - 66 * + NULLIF ( 55, - + 9 ) + + + 92 * 33 + - - COUNT ( * )
----
-149423

query II rowsort
SELECT 91 AS col2, 48 AS col0
----
91
48

query I rowsort
SELECT + 40 AS col1
----
40

query I rowsort
SELECT + 42 AS col1
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5003
SELECT CAST( 49 AS SIGNED ) DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-5003
SELECT CAST ( 49 AS INTEGER ) / - 73
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5004
SELECT COUNT( * ) * 28 + + CAST( 30 AS SIGNED ) DIV 35 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-5004
SELECT COUNT ( * ) * 28 + + CAST ( 30 AS INTEGER ) / 35 AS col0
----
28

query I rowsort
SELECT DISTINCT 23 * 88
----
2024

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT( * ) ) * - COUNT( * ) + 67
----
68

skipif mysql # not compatible
query I rowsort label-5006
SELECT COALESCE ( CASE 88 WHEN + 19 / 66 THEN + 65 END, - COUNT ( * ) ) * - COUNT ( * ) + 67
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT 96 + + COUNT( * ) AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5007
SELECT 96 + + COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 3 * 5 col2
----
15

query I rowsort
SELECT ALL 52 + 81 AS col1
----
133

query I rowsort
SELECT ALL - 71 + 99 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 77 + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-5011
SELECT 77 + COUNT ( * )
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5012
SELECT + ( COUNT( * ) ) * - COALESCE ( + 92, - COUNT( - 2 ) * + CAST( - 68 * 85 AS SIGNED ) + 38 ) + - CASE + ( 55 ) - 82 WHEN 75 + - 87 * - ( 82 ) THEN 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT + ( COUNT ( * ) ) * - COALESCE ( + 92, - COUNT ( - 2 ) * + CAST ( - 68 * 85 AS INTEGER ) + 38 ) + - CASE + ( 55 ) - 82 WHEN 75 + - 87 * - ( 82 ) THEN 14 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT 22 - - COUNT( * ) * 1 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5013
SELECT 22 - - COUNT ( * ) * 1 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5014
SELECT ALL MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT ALL MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - CASE 4 WHEN 33 * + 68 THEN + 17 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 28 * 39
----
1092

query I rowsort
SELECT 31 - 7 * 95 AS col0
----
-634

query I rowsort
SELECT DISTINCT + 81 * ( - 52 ) AS col2
----
-4212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ALL - CAST( NULL AS SIGNED ) + ( 38 + 91 ) / + 99
----
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - CAST ( NULL AS INTEGER ) + ( 38 + 91 ) / + 99
----
NULL

query I rowsort
SELECT DISTINCT 9 + 29 col0
----
38

query I rowsort
SELECT 18 * - 85 AS col1
----
-1530

query I rowsort
SELECT 21 + + 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT DISTINCT + 81 * - COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT + 81 * - COUNT ( * )
----
-81

query I rowsort
SELECT ALL + 63 * 72
----
4536

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - 20 + - 55 * - COUNT( 22 )
----
35

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 20 + - 55 * - COUNT ( 22 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + COUNT( DISTINCT 78 ) - + 75
----
-74

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + COUNT ( DISTINCT 78 ) - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT - 96 + + COUNT( * ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-5027
SELECT - 96 + + COUNT ( * ) col0
----
-95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT - 19 DIV COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT - 19 / COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT SUM( DISTINCT + 37 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT SUM ( DISTINCT + 37 ) AS col0
----
37

query I rowsort
SELECT - 66 + 83
----
17

query I rowsort
SELECT DISTINCT 78 * - 45 col0
----
-3510

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT - 13 DIV - 63
----
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT - 13 / - 63
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT 38 DIV 32 + - 32
----
-31

skipif mysql # not compatible
query I rowsort label-5033
SELECT 38 / 32 + - 32
----
-31

query I rowsort
SELECT ALL - 1 * 2
----
-2

query I rowsort
SELECT NULLIF ( + 81, + 18 ) AS col0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5036
SELECT COUNT( * ) DIV + 17 + - 95 AS col0
----
-95

skipif mysql # not compatible
query I rowsort label-5036
SELECT COUNT ( * ) / + 17 + - 95 AS col0
----
-95

query I rowsort
SELECT + ( 88 ) * 84 AS col2
----
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT COALESCE ( COUNT( * ), - 46 )
----
1

skipif mysql # not compatible
query I rowsort label-5038
SELECT COALESCE ( COUNT ( * ), - 46 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + CAST( NULL AS SIGNED ) + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT + CAST ( NULL AS INTEGER ) + - 96
----
NULL

query I rowsort
SELECT ALL 18 * 92
----
1656

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5041
SELECT + AVG ( DISTINCT - 44 ) + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5041
SELECT + AVG ( DISTINCT - 44 ) + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + 47 * 73
----
3431

query I rowsort
SELECT DISTINCT + - 87
----
-87

query I rowsort
SELECT ALL + ( + 4 ) * 53
----
212

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT ALL + SUM( ALL 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL + SUM ( ALL 20 ) AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT SUM( - 76 ) * 2 + 89
----
-63

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT SUM ( - 76 ) * 2 + 89
----
-63

query I rowsort
SELECT + - 30 + 53 AS col2
----
23

query I rowsort
SELECT + + 72 * - 70
----
-5040

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + + MIN( ALL + 17 ) + - ( - 9 )
----
26

skipif mysql # not compatible
query I rowsort label-5049
SELECT + + MIN ( ALL + 17 ) + - ( - 9 )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT ALL + CASE + 62 WHEN - CAST( 64 AS SIGNED ) THEN + 71 END * + 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + CASE + 62 WHEN - CAST ( 64 AS INTEGER ) THEN + 71 END * + 64
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5051
SELECT DISTINCT 3 DIV 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT 3 / 83 AS col2
----
0

query I rowsort
SELECT ALL + + 6 * - 97 + 97
----
-485

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + ( 83 ) + + COUNT( * ) * COUNT( * ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + ( 83 ) + + COUNT ( * ) * COUNT ( * ) AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT + 51 * COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5054
SELECT + 51 * COUNT ( * )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL ( + 32 ) * - COUNT( * ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL ( + 32 ) * - COUNT ( * ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5056
SELECT MAX( DISTINCT 3 ) * NULLIF ( 50 DIV ( SUM( + 31 ) ), 94 * - 79 ) + + COUNT( * ) * - COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5056
SELECT MAX ( DISTINCT 3 ) * NULLIF ( 50 / ( SUM ( + 31 ) ), 94 * - 79 ) + + COUNT ( * ) * - COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT - MAX( DISTINCT + 48 ) + + 15
----
-33

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - MAX ( DISTINCT + 48 ) + + 15
----
-33

query I rowsort
SELECT DISTINCT CASE 79 WHEN - 22 THEN 33 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5059
SELECT ALL + NULLIF ( 65, CASE 7 WHEN - COALESCE ( + ( + 8 ), + 82 ) * + 81 + + CAST( - 9 AS SIGNED ) * 9 THEN NULL WHEN 66 THEN 97 + + 52 / - 65 ELSE NULL END )
----
65

skipif mysql # not compatible
query I rowsort label-5059
SELECT ALL + NULLIF ( 65, CASE 7 WHEN - COALESCE ( + ( + 8 ), + 82 ) * + 81 + + CAST ( - 9 AS INTEGER ) * 9 THEN NULL WHEN 66 THEN 97 + + 52 / - 65 ELSE NULL END )
----
65

query I rowsort
SELECT + 17 * 9 AS col1
----
153

query I rowsort
SELECT 84 AS col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT - COALESCE ( + - 16, - 33 * - 99, + COUNT( * ) ) + 27 * + 43
----
1177

skipif mysql # not compatible
query I rowsort label-5062
SELECT - COALESCE ( + - 16, - 33 * - 99, + COUNT ( * ) ) + 27 * + 43
----
1177

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL COALESCE ( + - 75, 57 * - 18 - 61 * COUNT ( * ) )
----
-75

query I rowsort
SELECT - 61 * + 46
----
-2806

query I rowsort
SELECT DISTINCT 53 AS col1
----
53

query I rowsort
SELECT ALL - 32 * - 68 col0
----
2176

query I rowsort
SELECT ALL + 78 - - 83 AS col2
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT ALL COUNT( ALL + 67 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5068
SELECT ALL COUNT ( ALL + 67 ) AS col0
----
1

query I rowsort
SELECT - 25 - + + 41 + + 23 AS col2
----
-43

query I rowsort
SELECT ALL - 5 * - 38 AS col2
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT ALL - COALESCE ( - 1, - COALESCE ( 14, + COUNT( * ), + 69 * 8 ) + + 20 ) * - 64 col1
----
-64

skipif mysql # not compatible
query I rowsort label-5071
SELECT ALL - COALESCE ( - 1, - COALESCE ( 14, + COUNT ( * ), + 69 * 8 ) + + 20 ) * - 64 col1
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5072
SELECT - CAST( - 14 AS SIGNED ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5072
SELECT - CAST ( - 14 AS INTEGER ) AS col1
----
14

query I rowsort
SELECT DISTINCT ( 74 )
----
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5074
SELECT CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5074
SELECT CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT ALL + ( - + COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5075
SELECT ALL + ( - + COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT + + 43
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL - + 13 / - - 62 * CASE + 88 * - 38 WHEN + 13 / - COUNT( * ) THEN 59 END + - 43 * + ( 89 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - + 13 / - - 62 * CASE + 88 * - 38 WHEN + 13 / - COUNT ( * ) THEN 59 END + - 43 * + ( 89 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - CAST( NULL AS SIGNED ) / - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5078
SELECT - CAST ( NULL AS INTEGER ) / - 37 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5079
SELECT ALL 7 DIV + 22 + + 72 col1
----
72

skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL 7 / + 22 + + 72 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT + 46 * - - COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-5080
SELECT + 46 * - - COUNT ( * )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT ALL - - 95 * + CASE 21 WHEN + NULLIF ( NULLIF ( - COUNT( * ), COUNT( * ) * - 39 + NULLIF ( COUNT( * ), 89 - + ( 48 ) ) ), 67 * 2 ) * + CASE + 16 WHEN + 46 + - 35 THEN NULL ELSE + 50 END + 18 * COUNT( * ) THEN NULL WHEN 67 THEN NULL ELSE + 48 * + 40 END * 87 AS col0
----
15868800

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - - 95 * + CASE 21 WHEN + NULLIF ( NULLIF ( - COUNT ( * ), COUNT ( * ) * - 39 + NULLIF ( COUNT ( * ), 89 - + ( 48 ) ) ), 67 * 2 ) * + CASE + 16 WHEN + 46 + - 35 THEN NULL ELSE + 50 END + 18 * COUNT ( * ) THEN NULL WHEN 67 THEN NULL ELSE + 48 * + 40 END * 87 AS col0
----
15868800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5082
SELECT + + 90 DIV + + ( 87 ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-5082
SELECT + + 90 / + + ( 87 ) + + COUNT ( * )
----
2

query I rowsort
SELECT + + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5084
SELECT DISTINCT - COUNT( * ) * 70 + - COUNT( * )
----
-71

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - COUNT ( * ) * 70 + - COUNT ( * )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5085
SELECT ALL - CAST( NULL AS SIGNED ) * 55 + + 68 * + 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5085
SELECT ALL - CAST ( NULL AS INTEGER ) * 55 + + 68 * + 40 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT + COUNT( * ) + + 93 AS col1
----
94

skipif mysql # not compatible
query I rowsort label-5086
SELECT + COUNT ( * ) + + 93 AS col1
----
94

query I rowsort
SELECT DISTINCT - + 52 * 58 + + 46
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - COUNT( * ) * + ( 36 ) + - COUNT( * ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-5088
SELECT - COUNT ( * ) * + ( 36 ) + - COUNT ( * ) AS col1
----
-37

query I rowsort
SELECT + + 68 AS col0
----
68

query I rowsort
SELECT DISTINCT - + 27
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5091
SELECT ALL + 79 - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + 79 - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT 17 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT 17 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + 85 * - + 29 AS col2
----
-2465

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT ALL - 88 DIV 81 DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-5094
SELECT ALL - 88 / 81 / 61
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5095
SELECT - - 60 * + CAST( NULL AS DECIMAL ) + - CASE - 86 WHEN + CAST( - 47 AS SIGNED ) THEN COUNT( * ) * 26 WHEN + 68 THEN NULL END * 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5095
SELECT - - 60 * + CAST ( NULL AS REAL ) + - CASE - 86 WHEN + CAST ( - 47 AS INTEGER ) THEN COUNT ( * ) * 26 WHEN + 68 THEN NULL END * 76
----
NULL

query I rowsort
SELECT ( + 62 ) - 41 AS col0
----
21

query II rowsort
SELECT - 93, - 27 + - 42 AS col2
----
-93
-69

query I rowsort
SELECT DISTINCT 95 AS col1
----
95

query I rowsort
SELECT DISTINCT 97 AS col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL MAX( - 16 ) * 99 * - ( 99 ) AS col2
----
156816

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL MAX ( - 16 ) * 99 * - ( 99 ) AS col2
----
156816

query I rowsort
SELECT ALL 3 AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT NULLIF ( + + 26, - - 20 * 73 ) * COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT NULLIF ( + + 26, - - 20 * 73 ) * COUNT ( * )
----
26

query I rowsort
SELECT DISTINCT 73 * + 33
----
2409

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT COUNT( * ) + - 87 * - COUNT( * ) + + 21
----
109

skipif mysql # not compatible
query I rowsort label-5104
SELECT COUNT ( * ) + - 87 * - COUNT ( * ) + + 21
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT 72 * CASE WHEN NOT ( COUNT( * ) ) IS NULL THEN NULL ELSE 28 + COUNT( - 81 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT 72 * CASE WHEN NOT ( COUNT ( * ) ) IS NULL THEN NULL ELSE 28 + COUNT ( - 81 ) END
----
NULL

query I rowsort
SELECT 78 - 76
----
2

query I rowsort
SELECT DISTINCT 17
----
17

query I rowsort
SELECT 88 * 9
----
792

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT 62 + + COUNT( * ) * + 27
----
89

skipif mysql # not compatible
query I rowsort label-5109
SELECT 62 + + COUNT ( * ) * + 27
----
89

query I rowsort
SELECT 97 * - 43 AS col2
----
-4171

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - COUNT( * ) + - - 58
----
57

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - COUNT ( * ) + - - 58
----
57

query I rowsort
SELECT 68 + + - 46 col2
----
22

query I rowsort
SELECT DISTINCT 28
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5114
SELECT CAST( - + COUNT( * ) AS SIGNED ) + - + COUNT( * ) DIV + 46
----
-1

skipif mysql # not compatible
query I rowsort label-5114
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) / + 46
----
-1

query I rowsort
SELECT DISTINCT 84
----
84

query I rowsort
SELECT DISTINCT 0 + - + 12
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT ALL 59 + + 26 + + 5 + - COALESCE ( - COUNT( 29 ), 3 ) * 3 AS col1
----
93

skipif mysql # not compatible
query I rowsort label-5117
SELECT ALL 59 + + 26 + + 5 + - COALESCE ( - COUNT ( 29 ), 3 ) * 3 AS col1
----
93

query II rowsort
SELECT + 73 AS col1, 96
----
73
96

query I rowsort
SELECT 91 * - + 32 AS col2
----
-2912

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT 99 / + CASE - SUM( ALL 56 ) WHEN 13 * 1 THEN NULL WHEN 71 + 11 THEN + 56 * 83 END / 63 + 75 + COALESCE ( 70, + 77 * - 19, 91 ) * - 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5120
SELECT 99 / + CASE - SUM ( ALL 56 ) WHEN 13 * 1 THEN NULL WHEN 71 + 11 THEN + 56 * 83 END / 63 + 75 + COALESCE ( 70, + 77 * - 19, 91 ) * - 10 AS col0
----
NULL

query I rowsort
SELECT ALL - 94 * - 21 AS col2
----
1974

query I rowsort
SELECT + + 37 AS col1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5123
SELECT 80 + + ( - ( + ( 70 ) ) ) + 46 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5123
SELECT 80 + + ( - ( + ( 70 ) ) ) + 46 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - SUM( ALL + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-5124
SELECT - SUM ( ALL + 14 )
----
-14

query I rowsort
SELECT + - 83 col0
----
-83

query I rowsort
SELECT ALL + 44 + - - ( + 80 ) + 67
----
191

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT ALL - + MAX( ALL + + 98 ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-5127
SELECT ALL - + MAX ( ALL + + 98 ) AS col1
----
-98

query II rowsort
SELECT 57 AS col1, 0 AS col1
----
57
0

query I rowsort
SELECT ALL - + 59 AS col1
----
-59

query I rowsort
SELECT DISTINCT - - 98
----
98

query I rowsort
SELECT ALL + + 88 - + + 17 * + ( 3 )
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5132
SELECT - COUNT( * ) * + + SUM( ALL + 98 ) DIV + 81
----
-1

skipif mysql # not compatible
query I rowsort label-5132
SELECT - COUNT ( * ) * + + SUM ( ALL + 98 ) / + 81
----
-1

query I rowsort
SELECT ALL - 9 - + ( - 23 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT COUNT( * ) * - + 63 - + - 61 col2
----
-2

skipif mysql # not compatible
query I rowsort label-5134
SELECT COUNT ( * ) * - + 63 - + - 61 col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT + + SUM( - 96 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5135
SELECT + + SUM ( - 96 ) AS col0
----
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5136
SELECT ALL + + 87 * - - 8 + COUNT( * ) + 61 DIV - 73 AS col1
----
697

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL + + 87 * - - 8 + COUNT ( * ) + 61 / - 73 AS col1
----
697

query I rowsort
SELECT - 8 * 79 + - - 95
----
-537

query I rowsort
SELECT - 83 * 36
----
-2988

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL + SUM( ALL - 70 ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL + SUM ( ALL - 70 ) AS col2
----
-70

query I rowsort
SELECT ALL 92 AS col1
----
92

query I rowsort
SELECT 46 - - 71 * 30
----
2176

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT DISTINCT COUNT( + 66 )
----
1

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT COUNT ( + 66 )
----
1

query I rowsort
SELECT 43 * 19 col1
----
817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT 46 + - - CAST( - 1 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-5145
SELECT 46 + - - CAST ( - 1 AS INTEGER )
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT DISTINCT 60 + + 69 DIV + - 22
----
57

skipif mysql # not compatible
query I rowsort label-5146
SELECT DISTINCT 60 + + 69 / + - 22
----
57

query I rowsort
SELECT 84 col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT ALL 95 + + COALESCE ( COUNT( * ), - 97 ) * 18 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-5148
SELECT ALL 95 + + COALESCE ( COUNT ( * ), - 97 ) * 18 AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5149
SELECT DISTINCT + 97 DIV + + 64 * + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + 97 / + + 64 * + ( + COUNT ( * ) )
----
1

query I rowsort
SELECT ALL - 43 + - 42 * + ( + 15 ) * 32 AS col1
----
-20203

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT DISTINCT 24 + + CASE - 98 WHEN + COUNT( DISTINCT + 51 ) THEN NULL WHEN - MAX( DISTINCT 12 ) THEN 81 * - ( 68 * 41 ) ELSE - NULLIF ( - 7, 6 * 36 ) END AS col2
----
31

skipif mysql # not compatible
query I rowsort label-5151
SELECT DISTINCT 24 + + CASE - 98 WHEN + COUNT ( DISTINCT + 51 ) THEN NULL WHEN - MAX ( DISTINCT 12 ) THEN 81 * - ( 68 * 41 ) ELSE - NULLIF ( - 7, 6 * 36 ) END AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT ALL COUNT( * ) + NULLIF ( 27, - + 20 ) * ( 90 * - COUNT( * ) ) AS col0
----
-2429

skipif mysql # not compatible
query I rowsort label-5152
SELECT ALL COUNT ( * ) + NULLIF ( 27, - + 20 ) * ( 90 * - COUNT ( * ) ) AS col0
----
-2429

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ( + 6 ) * + COUNT( * ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5153
SELECT ( + 6 ) * + COUNT ( * ) AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5154
SELECT ALL 59 + - + CASE + 39 WHEN - + 48 + + CAST( 90 + 92 AS SIGNED ) / 48 THEN 87 WHEN - SUM( DISTINCT 21 ) * 36 - 58 * - CASE - COUNT( * ) * 27 + ( + 56 - - 50 ) WHEN ( - 13 ) THEN NULL ELSE + CASE - 13 WHEN 36 THEN - 16 * + COUNT( 86 ) ELSE NULL END END THEN NULL END + ( + 56 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5154
SELECT ALL 59 + - + CASE + 39 WHEN - + 48 + + CAST ( 90 + 92 AS INTEGER ) / 48 THEN 87 WHEN - SUM ( DISTINCT 21 ) * 36 - 58 * - CASE - COUNT ( * ) * 27 + ( + 56 - - 50 ) WHEN ( - 13 ) THEN NULL ELSE + CASE - 13 WHEN 36 THEN - 16 * + COUNT ( 86 ) ELSE NULL END END THEN NULL END + ( + 56 ) col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5155
SELECT MAX( 43 ) * 21 DIV - 10
----
-90

skipif mysql # not compatible
query I rowsort label-5155
SELECT MAX ( 43 ) * 21 / - 10
----
-90

query II rowsort
SELECT 68 - 43 AS col2, 97 * + 6 * 74 col0
----
25
43068

query I rowsort
SELECT - 88 AS col2
----
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-5158
SELECT 59 DIV - + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5158
SELECT 59 / - + 62 AS col0
----
0

query I rowsort
SELECT - 24 * + 81 AS col0
----
-1944

query I rowsort
SELECT ALL + 62 AS col1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + MIN( DISTINCT - + 22 ) AS col0
----
-22

skipif mysql # not compatible
query I rowsort label-5161
SELECT + MIN ( DISTINCT - + 22 ) AS col0
----
-22

query II rowsort
SELECT ( - 3 ) AS col0, ( + 61 ) AS col1
----
-3
61

query I rowsort
SELECT DISTINCT - 26 AS col1
----
-26

query I rowsort
SELECT ALL - + 64
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5165
SELECT DISTINCT + CASE 70 WHEN + COALESCE ( + 30, 69 + + 61 * 84 ) + + 40 * 66 THEN NULL WHEN CASE - 61 WHEN 96 - 99 THEN - 12 + 64 ELSE NULL END * 48 THEN + NULLIF ( + 61, - MAX( 74 ) ) END * - CAST( NULL AS SIGNED ) - - COUNT( * ) * 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + CASE 70 WHEN + COALESCE ( + 30, 69 + + 61 * 84 ) + + 40 * 66 THEN NULL WHEN CASE - 61 WHEN 96 - 99 THEN - 12 + 64 ELSE NULL END * 48 THEN + NULLIF ( + 61, - MAX ( 74 ) ) END * - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * 97 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT + - COUNT( * ) * + 3 + COUNT( DISTINCT + 21 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + - COUNT ( * ) * + 3 + COUNT ( DISTINCT + 21 ) AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5167
SELECT ALL - - 87 * + MIN( ALL 4 ) - + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL - - 87 * + MIN ( ALL 4 ) - + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT DISTINCT - COUNT( ALL + 83 ) * - + 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - COUNT ( ALL + 83 ) * - + 82 AS col2
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5169
SELECT - NULLIF ( - CAST( 29 AS SIGNED ), - 4 ) * + 84
----
2436

skipif mysql # not compatible
query I rowsort label-5169
SELECT - NULLIF ( - CAST ( 29 AS INTEGER ), - 4 ) * + 84
----
2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5170
SELECT CASE + 6 WHEN - + 63 + + - 47 + CAST( - 6 AS SIGNED ) * COALESCE ( - 97 - 95, COUNT( * ) + - COALESCE ( ( - 19 ), 6 ), - CAST( NULL AS DECIMAL ) + COUNT( * ) * 15 ) THEN NULL WHEN 93 + COALESCE ( 55, - 83 ) THEN - 59 * 73 WHEN CAST( 61 AS SIGNED ) - COUNT( ALL 21 ) THEN AVG ( DISTINCT 76 ) + + 40 END * - 19 + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5170
SELECT CASE + 6 WHEN - + 63 + + - 47 + CAST ( - 6 AS INTEGER ) * COALESCE ( - 97 - 95, COUNT ( * ) + - COALESCE ( ( - 19 ), 6 ), - CAST ( NULL AS REAL ) + COUNT ( * ) * 15 ) THEN NULL WHEN 93 + COALESCE ( 55, - 83 ) THEN - 59 * 73 WHEN CAST ( 61 AS INTEGER ) - COUNT ( ALL 21 ) THEN AVG ( DISTINCT 76 ) + + 40 END * - 19 + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT - MIN( ALL + 34 ) - 64
----
-98

skipif mysql # not compatible
query I rowsort label-5171
SELECT - MIN ( ALL + 34 ) - 64
----
-98

query I rowsort
SELECT + 59 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT + 97 + MIN( + + 48 ) * - - 78
----
3841

skipif mysql # not compatible
query I rowsort label-5173
SELECT + 97 + MIN ( + + 48 ) * - - 78
----
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT + - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-5174
SELECT + - COUNT ( * ) col2
----
-1

query I rowsort
SELECT - - ( - 91 ) * - 15 AS col2
----
1365

query I rowsort
SELECT ALL + COALESCE ( - 43, - 73 * - 5 + + 28, - 57 ) AS col2
----
-43

query I rowsort
SELECT DISTINCT + - 99 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT ALL + 73 DIV + 24
----
3

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + 73 / + 24
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5179
SELECT DISTINCT + CASE NULLIF ( + AVG ( DISTINCT 74 ), + + 78 ) WHEN - ( - 29 ) * - 39 + CAST( COALESCE ( COUNT( * ), 86 / COUNT( * ) + - 91 ) - + 65 AS SIGNED ) * ( CASE ( - MAX( ALL - 92 ) ) WHEN COUNT( * ) THEN NULL ELSE + 97 + - 34 END * 30 ) THEN NULL ELSE NULLIF ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ), - CASE - 54 WHEN + COALESCE ( 44, + 67 * + 38 - + 52, 63 ) + + 63 THEN NULL WHEN 88 THEN 99 / AVG ( ALL 13 * 98 ) ELSE NULL END * ( CAST( NULL AS SIGNED ) ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT + CASE NULLIF ( + AVG ( DISTINCT 74 ), + + 78 ) WHEN - ( - 29 ) * - 39 + CAST ( COALESCE ( COUNT ( * ), 86 / COUNT ( * ) + - 91 ) - + 65 AS INTEGER ) * ( CASE ( - MAX ( ALL - 92 ) ) WHEN COUNT ( * ) THEN NULL ELSE + 97 + - 34 END * 30 ) THEN NULL ELSE NULLIF ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ), - CASE - 54 WHEN + COALESCE ( 44, + 67 * + 38 - + 52, 63 ) + + 63 THEN NULL WHEN 88 THEN 99 / AVG ( ALL 13 * 98 ) ELSE NULL END * ( CAST ( NULL AS INTEGER ) ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT CASE + COUNT( DISTINCT + 20 ) WHEN 41 THEN NULL WHEN + 11 + + 84 / 96 THEN - 91 - - 69 WHEN 97 THEN ( + 57 ) / 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT CASE + COUNT ( DISTINCT + 20 ) WHEN 41 THEN NULL WHEN + 11 + + 84 / 96 THEN - 91 - - 69 WHEN 97 THEN ( + 57 ) / 29 END
----
NULL

query I rowsort
SELECT ALL - 74 + - + 80 col2
----
-154

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5182
SELECT - 54, + CAST( - 0 AS SIGNED ) DIV - 84 * 5 AS col1
----
-54
0

skipif mysql # not compatible
query II rowsort label-5182
SELECT - 54, + CAST ( - 0 AS INTEGER ) / - 84 * 5 AS col1
----
-54
0

query I rowsort
SELECT 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - COUNT( * ) * + + ( + + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5184
SELECT - COUNT ( * ) * + + ( + + COUNT ( * ) )
----
-1

query I rowsort
SELECT - 66 * 32 AS col1
----
-2112

query I rowsort
SELECT ALL + 84 + 2 AS col0
----
86

query I rowsort
SELECT 32 AS col1
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL + 11 * - + COUNT( * ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + 11 * - + COUNT ( * ) AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT - 56 + SUM( ALL - - 62 )
----
6

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT - 56 + SUM ( ALL - - 62 )
----
6

query I rowsort
SELECT DISTINCT + 2 + - 56 AS col1
----
-54

query I rowsort
SELECT ALL ( + 8 )
----
8

query I rowsort
SELECT DISTINCT ( 36 ) AS col1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT - NULLIF ( - - 13, COUNT( * ) + - 3 ) + 14 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5193
SELECT - NULLIF ( - - 13, COUNT ( * ) + - 3 ) + 14 AS col1
----
1

query I rowsort
SELECT DISTINCT ( + 11 ) AS col0
----
11

query I rowsort
SELECT ALL ( + 62 ) AS col0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5196
SELECT + 24 - - CAST( + 85 AS SIGNED ) AS col0, + 69 + 92 + - 47
----
109
114

skipif mysql # not compatible
query II rowsort label-5196
SELECT + 24 - - CAST ( + 85 AS INTEGER ) AS col0, + 69 + 92 + - 47
----
109
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT + 82 * - SUM( + 13 )
----
-1066

skipif mysql # not compatible
query I rowsort label-5197
SELECT + 82 * - SUM ( + 13 )
----
-1066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT - CAST( - 76 AS SIGNED ) + - COUNT( * )
----
75

skipif mysql # not compatible
query I rowsort label-5198
SELECT - CAST ( - 76 AS INTEGER ) + - COUNT ( * )
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5199
SELECT + + 83 - - 21 + - 93 DIV - 98 + + 2 * 87
----
278

skipif mysql # not compatible
query I rowsort label-5199
SELECT + + 83 - - 21 + - 93 / - 98 + + 2 * 87
----
278

query I rowsort
SELECT - - 20 AS col0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT ALL - MAX( + 17 ) AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL - MAX ( + 17 ) AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + + NULLIF ( + - NULLIF ( + + 36, - 87 ), - 62 * - 28 ) * MAX( 90 )
----
-3240

skipif mysql # not compatible
query I rowsort label-5202
SELECT + + NULLIF ( + - NULLIF ( + + 36, - 87 ), - 62 * - 28 ) * MAX ( 90 )
----
-3240

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL + - 21 DIV - + 55 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + - 21 / - + 55 AS col2
----
0

query I rowsort
SELECT ALL - 16 * + 4 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT - 17 * + ( - 24 ) * CAST( NULL AS SIGNED ) + - 46 + ( - 10 - CAST( NULL AS SIGNED ) ) * + 82 * + ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT - 17 * + ( - 24 ) * CAST ( NULL AS INTEGER ) + - 46 + ( - 10 - CAST ( NULL AS INTEGER ) ) * + 82 * + ( - 6 )
----
NULL

query I rowsort
SELECT ALL + - ( + 8 ) col2
----
-8

query I rowsort
SELECT DISTINCT + 83 * 24 col2
----
1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5208
SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT( * ) END, + COUNT( * ) DIV - 12 ) * 71
----
0

skipif mysql # not compatible
query I rowsort label-5208
SELECT - COALESCE ( - CASE 36 WHEN - 17 THEN - COUNT ( * ) END, + COUNT ( * ) / - 12 ) * 71
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT 72 / CASE - 73 WHEN 79 THEN NULL WHEN COUNT( * ) * CAST( + 96 AS SIGNED ) THEN - 79 ELSE NULL END + 73 * + 82 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5209
SELECT 72 / CASE - 73 WHEN 79 THEN NULL WHEN COUNT ( * ) * CAST ( + 96 AS INTEGER ) THEN - 79 ELSE NULL END + 73 * + 82 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5210
SELECT + - 56 DIV 19 + - 86 AS col2, NULLIF ( + + 37, - 88 ) AS col1
----
-88
37

skipif mysql # not compatible
query II rowsort label-5210
SELECT + - 56 / 19 + - 86 AS col2, NULLIF ( + + 37, - 88 ) AS col1
----
-88
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT DISTINCT + COUNT( DISTINCT 61 )
----
1

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT + COUNT ( DISTINCT 61 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT - - 48 DIV + ( - 82 ) * + 80 + - 39 AS col0
----
-39

skipif mysql # not compatible
query I rowsort label-5212
SELECT - - 48 / + ( - 82 ) * + 80 + - 39 AS col0
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5213
SELECT + - NULLIF ( - + 73, 29 * 8 / - COALESCE ( 36, 13 * - 15 ) * + 22 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5213
SELECT + - NULLIF ( - + 73, 29 * 8 / - COALESCE ( 36, 13 * - 15 ) * + 22 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT + - 6 + + + CASE + 22 WHEN 49 * - COUNT( CAST( NULL AS SIGNED ) ) THEN + SUM( + 20 ) WHEN - COALESCE ( 5, 93 ) THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT + - 6 + + + CASE + 22 WHEN 49 * - COUNT ( CAST ( NULL AS INTEGER ) ) THEN + SUM ( + 20 ) WHEN - COALESCE ( 5, 93 ) THEN NULL ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT ALL + 1 DIV + 22 - 37 * + 3 col0
----
-111

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL + 1 / + 22 - 37 * + 3 col0
----
-111

query I rowsort
SELECT DISTINCT + 43 AS col2
----
43

query I rowsort
SELECT DISTINCT + + 39 AS col0
----
39

query II rowsort
SELECT ALL + + 78 AS col2, + ( - 26 ) AS col2
----
78
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT DISTINCT + COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + COUNT ( * ) col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5220
SELECT ALL + CASE - 44 WHEN 72 / + 24 / + + CASE + 52 WHEN + 16 / 27 THEN NULL WHEN - 1 THEN ( + 26 ) END THEN + COUNT( * ) / 57 END * + 74 + CAST( + 25 AS SIGNED ) * + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5220
SELECT ALL + CASE - 44 WHEN 72 / + 24 / + + CASE + 52 WHEN + 16 / 27 THEN NULL WHEN - 1 THEN ( + 26 ) END THEN + COUNT ( * ) / 57 END * + 74 + CAST ( + 25 AS INTEGER ) * + 25
----
NULL

query I rowsort
SELECT DISTINCT + 10 AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT + + NULLIF ( COUNT( * ), - + 29 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT + + NULLIF ( COUNT ( * ), - + 29 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5223
SELECT DISTINCT + 60 * CASE - - COUNT( * ) WHEN - 1 * + 50 * + + 44 * 13 + - NULLIF ( 54, 27 * SUM( DISTINCT 27 ) ) - + 99 THEN NULL WHEN - COUNT( * ) / + CAST( NULL AS SIGNED ) THEN NULL WHEN - 44 - + 64 THEN MAX( DISTINCT + 84 ) END + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT + 60 * CASE - - COUNT ( * ) WHEN - 1 * + 50 * + + 44 * 13 + - NULLIF ( 54, 27 * SUM ( DISTINCT 27 ) ) - + 99 THEN NULL WHEN - COUNT ( * ) / + CAST ( NULL AS INTEGER ) THEN NULL WHEN - 44 - + 64 THEN MAX ( DISTINCT + 84 ) END + 93 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5224
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - - 75 * 2 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - - 75 * 2 col2
----
NULL

query II rowsort
SELECT + 99 AS col2, 73 AS col2
----
99
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT + 8 DIV - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 8 / - 48 AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5227
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5227
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5228
SELECT ALL + COUNT( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 DIV - 53 ) AS col0
----
1
46

skipif mysql # not compatible
query II rowsort label-5228
SELECT ALL + COUNT ( * ) AS col0, - COALESCE ( - 46, 46 * - ( - - ( 1 ) ) + 29 / - 53 ) AS col0
----
1
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5229
SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX( ALL + CAST( - 63 AS SIGNED ) ) THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT CASE - 82 WHEN 3 / + - 58 + - 89 THEN - 66 + 46 WHEN MAX ( ALL + CAST ( - 63 AS INTEGER ) ) THEN NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL + 34 * 53 + ( - 73 ) + - COUNT( DISTINCT - - 97 ) + 18 * 57 AS col1
----
2754

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + 34 * 53 + ( - 73 ) + - COUNT ( DISTINCT - - 97 ) + 18 * 57 AS col1
----
2754

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5231
SELECT ALL COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL COUNT ( * ) * - CAST ( NULL AS REAL ) + - 20
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT DISTINCT ( 59 ) * + 2 + - - COUNT( * ) - ( + MAX( 65 ) ) + 92 * 21 AS col1
----
1986

skipif mysql # not compatible
query I rowsort label-5232
SELECT DISTINCT ( 59 ) * + 2 + - - COUNT ( * ) - ( + MAX ( 65 ) ) + 92 * 21 AS col1
----
1986

query I rowsort
SELECT - 13 * - 10 * 58 AS col2
----
7540

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL NULLIF ( 86, MIN( ALL - 90 ) )
----
86

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL NULLIF ( 86, MIN ( ALL - 90 ) )
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ALL - 43 DIV - 69 * - 40 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - 43 / - 69 * - 40 AS col1
----
0

query I rowsort
SELECT ALL ( + - 43 )
----
-43

query I rowsort
SELECT - 83 * + + ( - + 84 )
----
6972

query I rowsort
SELECT - 0 + CASE 58 WHEN + + 53 THEN 60 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 7 - - 1 AS col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT ALL + COUNT( ALL + 19 ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-5240
SELECT ALL + COUNT ( ALL + 19 ) * + 97
----
97

query II rowsort
SELECT 17 col0, + ( - 11 ) * - - 73
----
17
-803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL CASE 88 WHEN + - 90 THEN CAST( 37 AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL CASE 88 WHEN + - 90 THEN CAST ( 37 AS INTEGER ) END
----
NULL

query I rowsort
SELECT DISTINCT - 79 - + 18 AS col0
----
-97

query II rowsort
SELECT - 30, 79 AS col2
----
-30
79

query I rowsort
SELECT - - 66 AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL - - 56 - - - COUNT( * ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - - 56 - - - COUNT ( * ) AS col1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5247
SELECT ALL + - COUNT( DISTINCT - 32 ) * - ( + - COUNT( * ) ), 94 AS col2
----
-1
94

skipif mysql # not compatible
query II rowsort label-5247
SELECT ALL + - COUNT ( DISTINCT - 32 ) * - ( + - COUNT ( * ) ), 94 AS col2
----
-1
94

query I rowsort
SELECT ALL - 65 - 43 * - 49 + - 6 + - 36 AS col0
----
2000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT ALL CASE - + 9 WHEN MAX( DISTINCT + 75 ) + + NULLIF ( + 76, + 8 * CAST( NULL AS SIGNED ) + - 16 ) + 81 THEN + 26 + + 31 / + 30 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL CASE - + 9 WHEN MAX ( DISTINCT + 75 ) + + NULLIF ( + 76, + 8 * CAST ( NULL AS INTEGER ) + - 16 ) + 81 THEN + 26 + + 31 / + 30 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ( - ( - 90 ) ) - - 5 + - SUM( ALL - 45 )
----
140

skipif mysql # not compatible
query I rowsort label-5250
SELECT ( - ( - 90 ) ) - - 5 + - SUM ( ALL - 45 )
----
140

query I rowsort
SELECT + 13 * 76 AS col0
----
988

query II rowsort
SELECT ALL - 48 AS col0, 42 * - ( + 67 ) AS col2
----
-48
-2814

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - + MAX( ALL 10 )
----
-10

skipif mysql # not compatible
query I rowsort label-5253
SELECT - + MAX ( ALL 10 )
----
-10

query II rowsort
SELECT 88 AS col1, - 4 AS col0
----
88
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-5255
SELECT + + 81, - 88 * MIN( + 27 ) AS col1
----
81
-2376

skipif mysql # not compatible
query II rowsort label-5255
SELECT + + 81, - 88 * MIN ( + 27 ) AS col1
----
81
-2376

query I rowsort
SELECT DISTINCT - - 44
----
44

query II rowsort
SELECT + 88, - 99 AS col1
----
88
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT ALL 32 + CASE ( - COUNT( * ) ) WHEN + ( - 13 ) * 64 + COUNT( * ) THEN NULL ELSE 78 + - COUNT( * ) END
----
109

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL 32 + CASE ( - COUNT ( * ) ) WHEN + ( - 13 ) * 64 + COUNT ( * ) THEN NULL ELSE 78 + - COUNT ( * ) END
----
109

query II rowsort
SELECT ALL - 4 col0, 91 col0
----
-4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL - 11 * - COALESCE ( - 34, + COUNT( * ) + + 19 ) AS col1
----
-374

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - 11 * - COALESCE ( - 34, + COUNT ( * ) + + 19 ) AS col1
----
-374

query I rowsort
SELECT ALL - ( - 47 )
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT - 59 * - MAX( - + 28 )
----
-1652

skipif mysql # not compatible
query I rowsort label-5262
SELECT - 59 * - MAX ( - + 28 )
----
-1652

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5263
SELECT - 22 AS col0, 98 DIV - + ( - + COUNT( * ) ) AS col0
----
-22
98

skipif mysql # not compatible
query II rowsort label-5263
SELECT - 22 AS col0, 98 / - + ( - + COUNT ( * ) ) AS col0
----
-22
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT - COUNT( 1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5264
SELECT - COUNT ( 1 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT SUM( DISTINCT + 2 ) DIV 7 + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-5265
SELECT SUM ( DISTINCT + 2 ) / 7 + 43 AS col1
----
43

query I rowsort
SELECT ALL 85 + - 82 * + + 46 * - 82 AS col2
----
309389

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT COUNT( * ) * + 61 + + 5 - - 89 + + + 87
----
242

skipif mysql # not compatible
query I rowsort label-5267
SELECT COUNT ( * ) * + 61 + + 5 - - 89 + + + 87
----
242

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5268
SELECT + 0 * + + COUNT( * ) - 8 / + + 43 / - COALESCE ( 49, + NULLIF ( 89, - ( - CASE 41 WHEN 72 + COUNT( DISTINCT + 96 ) / - 15 THEN + 21 END ) ) ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT + 0 * + + COUNT ( * ) - 8 / + + 43 / - COALESCE ( 49, + NULLIF ( 89, - ( - CASE 41 WHEN 72 + COUNT ( DISTINCT + 96 ) / - 15 THEN + 21 END ) ) ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 26 AS col2
----
-26

query I rowsort
SELECT 62 col1
----
62

query I rowsort
SELECT ALL - 97 AS col2
----
-97

query II rowsort
SELECT DISTINCT 8 + 56 AS col0, - 32 AS col1
----
64
-32

query I rowsort
SELECT + 43 * 92 + - 69 AS col1
----
3887

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT 71 * - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-5274
SELECT 71 * - COUNT ( * ) AS col2
----
-71

query II rowsort
SELECT 77 + 82, 50 * - 17 AS col2
----
159
-850

query I rowsort
SELECT - 73 AS col2
----
-73

query I rowsort
SELECT ALL 75 col0
----
75

query I rowsort
SELECT 14 AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT 25 + + + ( - - 53 ) + + 19 * - - CASE + - 37 WHEN - - 65 THEN COUNT( * ) + 27 * 26 ELSE - 28 END * 94
----
-49930

skipif mysql # not compatible
query I rowsort label-5279
SELECT 25 + + + ( - - 53 ) + + 19 * - - CASE + - 37 WHEN - - 65 THEN COUNT ( * ) + 27 * 26 ELSE - 28 END * 94
----
-49930

query I rowsort
SELECT ALL 30 AS col0
----
30

query I rowsort
SELECT 96 * + - 90 AS col0
----
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL 77 * - CASE 26 WHEN - COUNT( * ) / - - 91 + + 97 THEN - 4 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL 77 * - CASE 26 WHEN - COUNT ( * ) / - - 91 + + 97 THEN - 4 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT 94 * 53 AS col1
----
4982

query I rowsort
SELECT 12 + - ( + 67 ) AS col1
----
-55

query I rowsort
SELECT ALL 48 AS col1
----
48

query I rowsort
SELECT DISTINCT + 9
----
9

query I rowsort
SELECT DISTINCT - 55
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL COALESCE ( + 48, CAST( 70 AS SIGNED ) * 99 * + 1 + + + 54 - - 85 + 35, - 99 + 49 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL COALESCE ( + 48, CAST ( 70 AS INTEGER ) * 99 * + 1 + + + 54 - - 85 + 35, - 99 + 49 ) AS col1
----
48

query I rowsort
SELECT 14 + 59 AS col1
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5290
SELECT + 27 DIV + ( - + COUNT( DISTINCT - - 70 ) ) + 38 + + 97 * + 94 AS col0
----
9129

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 27 / + ( - + COUNT ( DISTINCT - - 70 ) ) + 38 + + 97 * + 94 AS col0
----
9129

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT - NULLIF ( - - NULLIF ( - COUNT( * ), - - ( - ( - - 41 ) ) + 35 ), - 61 ) + 0 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5291
SELECT - NULLIF ( - - NULLIF ( - COUNT ( * ), - - ( - ( - - 41 ) ) + 35 ), - 61 ) + 0 AS col1
----
1

query I rowsort
SELECT 3 - + 86 AS col1
----
-83

query I rowsort
SELECT - 50 + 77 * - 56 * - 2 AS col1
----
8574

query I rowsort
SELECT - 20 - + 54
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT 52 DIV + 83 * 62 * 81 + + 38
----
38

skipif mysql # not compatible
query I rowsort label-5295
SELECT 52 / + 83 * 62 * 81 + + 38
----
38

query I rowsort
SELECT ALL 33 + 87 - 23 * - 18 * - 8 * + 91 + + + 48
----
-301224

query I rowsort
SELECT DISTINCT 21
----
21

query I rowsort
SELECT DISTINCT + 73 * - 34 AS col1
----
-2482

query I rowsort
SELECT ALL - + 66 + - - 43 AS col0
----
-23

query II rowsort
SELECT + 86 + 85 AS col1, + 21 * - 30 AS col2
----
171
-630

query I rowsort
SELECT ALL 5 AS col2
----
5

query I rowsort
SELECT DISTINCT - 82 + - 89 AS col0
----
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-5303
SELECT ( - COUNT( * ) ) AS col2, 52 col2
----
-1
52

skipif mysql # not compatible
query II rowsort label-5303
SELECT ( - COUNT ( * ) ) AS col2, 52 col2
----
-1
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + COUNT( * ) * - COUNT( * ) + - 19 AS col0
----
-20

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + COUNT ( * ) * - COUNT ( * ) + - 19 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + COALESCE ( + MAX( - 29 ), - 31, + - 58 ) AS col0
----
-29

skipif mysql # not compatible
query I rowsort label-5305
SELECT + COALESCE ( + MAX ( - 29 ), - 31, + - 58 ) AS col0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5306
SELECT CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5306
SELECT CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - COUNT( DISTINCT + 3 )
----
-1

skipif mysql # not compatible
query I rowsort label-5307
SELECT - COUNT ( DISTINCT + 3 )
----
-1

query I rowsort
SELECT 56 * - + 6
----
-336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5309
SELECT 91 + + 28 + - - COUNT( + 35 ) + + COUNT( * ) + - MAX( + 54 ) + 93 * + CAST( NULL AS SIGNED ) / - COALESCE ( + 85, CAST( NULL AS SIGNED ) ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-5309
SELECT 91 + + 28 + - - COUNT ( + 35 ) + + COUNT ( * ) + - MAX ( + 54 ) + 93 * + CAST ( NULL AS INTEGER ) / - COALESCE ( + 85, CAST ( NULL AS INTEGER ) ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT DISTINCT 96 * - COUNT( * ) AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT 96 * - COUNT ( * ) AS col1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT 2 * - SUM( ALL + 67 ) + + 60 + + - 91
----
-165

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT 2 * - SUM ( ALL + 67 ) + + 60 + + - 91
----
-165

query I rowsort
SELECT 81 * 73 AS col1
----
5913

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL + 52 * - COALESCE ( COUNT( * ), - ( 39 ) - - 37 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL + 52 * - COALESCE ( COUNT ( * ), - ( 39 ) - - 37 ) AS col1
----
-52

query I rowsort
SELECT DISTINCT + 43 * - 17 AS col0
----
-731

query I rowsort
SELECT ALL - 80 * - 3
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL + COUNT( * ) - - + 4 * + + 46 * - + 68 - 60 * - 22 + - NULLIF ( - + ( NULLIF ( + MIN( ALL + ( 35 ) ), - 2 * + COUNT( * ) ) ), 97 ) + 11 AS col1
----
-11145

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL + COUNT ( * ) - - + 4 * + + 46 * - + 68 - 60 * - 22 + - NULLIF ( - + ( NULLIF ( + MIN ( ALL + ( 35 ) ), - 2 * + COUNT ( * ) ) ), 97 ) + 11 AS col1
----
-11145

onlyif mysql # aggregate syntax: 
query I rowsort label-5317
SELECT 71 - - COUNT( * ) AS col0
----
72

skipif mysql # not compatible
query I rowsort label-5317
SELECT 71 - - COUNT ( * ) AS col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5318
SELECT NULLIF ( + - 62, - 95 + + COUNT( ALL - CAST( NULL AS SIGNED ) ) ) * + 2 * - 17 + - + 65 AS col1
----
2043

skipif mysql # not compatible
query I rowsort label-5318
SELECT NULLIF ( + - 62, - 95 + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) ) * + 2 * - 17 + - + 65 AS col1
----
2043

query I rowsort
SELECT 80 - 62
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT 16 * + - 23 * + - COUNT( * ) AS col2
----
368

skipif mysql # not compatible
query I rowsort label-5320
SELECT 16 * + - 23 * + - COUNT ( * ) AS col2
----
368

query I rowsort
SELECT ALL - 51 AS col0
----
-51

query I rowsort
SELECT 80 * + 67 * 94 + - 47 AS col0
----
503793

query I rowsort
SELECT + 47 * + 72 AS col1
----
3384

onlyif mysql # aggregate syntax: 
query II rowsort label-5324
SELECT 81 * + + NULLIF ( - + 13, - 54 ) + COUNT( * ) * - 57 AS col0, 19 + - COUNT( ALL 55 )
----
-1110
18

skipif mysql # not compatible
query II rowsort label-5324
SELECT 81 * + + NULLIF ( - + 13, - 54 ) + COUNT ( * ) * - 57 AS col0, 19 + - COUNT ( ALL 55 )
----
-1110
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5325
SELECT + 24 - - CASE - 85 WHEN + 42 THEN + - COUNT( ALL 77 ) * + ( - 33 ) WHEN CAST( + 78 AS SIGNED ) THEN 92 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5325
SELECT + 24 - - CASE - 85 WHEN + 42 THEN + - COUNT ( ALL 77 ) * + ( - 33 ) WHEN CAST ( + 78 AS INTEGER ) THEN 92 ELSE NULL END col1
----
NULL

query I rowsort
SELECT ALL 84 AS col2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5327
SELECT ALL COUNT( * ) * - 71
----
-71

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL COUNT ( * ) * - 71
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5328
SELECT - 99 AS col2, + COUNT( * ) DIV COUNT( * ) AS col1
----
-99
1

skipif mysql # not compatible
query II rowsort label-5328
SELECT - 99 AS col2, + COUNT ( * ) / COUNT ( * ) AS col1
----
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT - COUNT( * ) * - 26
----
26

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - COUNT ( * ) * - 26
----
26

query I rowsort
SELECT ALL 65 * + 19 * - + 52 AS col1
----
-64220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT + CAST( NULL AS SIGNED ) * - 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + CAST ( NULL AS INTEGER ) * - 4
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT - - 94 + + + COUNT( * ) + + + CASE 92 WHEN - - 12 THEN - + 93 - - CAST( + + COALESCE ( 56, 88 ) AS SIGNED ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5332
SELECT - - 94 + + + COUNT ( * ) + + + CASE 92 WHEN - - 12 THEN - + 93 - - CAST ( + + COALESCE ( 56, 88 ) AS INTEGER ) ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5333
SELECT ALL - - 14 + - 88 + + CAST( - COUNT( * ) AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5333
SELECT ALL - - 14 + - 88 + + CAST ( - COUNT ( * ) AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ( - MIN( DISTINCT 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5334
SELECT ( - MIN ( DISTINCT 0 ) ) AS col0
----
0

query I rowsort
SELECT ALL - 44 + - 81
----
-125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5336
SELECT + - ( - CASE + SUM( DISTINCT - + 68 ) WHEN - 92 THEN 85 END ) * + 27 / CAST( + NULLIF ( - 23, COUNT( * ) ) AS SIGNED ) * + 87 + NULLIF ( - ( - 30 ), + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5336
SELECT + - ( - CASE + SUM ( DISTINCT - + 68 ) WHEN - 92 THEN 85 END ) * + 27 / CAST ( + NULLIF ( - 23, COUNT ( * ) ) AS INTEGER ) * + 87 + NULLIF ( - ( - 30 ), + 53 ) AS col2
----
NULL

query II rowsort
SELECT ALL 61 AS col1, - 51 AS col0
----
61
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT NULLIF ( - COUNT( * ), 94 ) + + 84 AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT NULLIF ( - COUNT ( * ), 94 ) + + 84 AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5339
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) + + - 76 DIV - 40 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5339
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) + + - 76 / - 40 AS col0
----
2

query I rowsort
SELECT + 23 - - 77
----
100

query II rowsort
SELECT - - 46, 21 + + 28 col0
----
46
49

query I rowsort
SELECT - 34 col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT ALL 67 + - SUM( - + 50 ) AS col0
----
117

skipif mysql # not compatible
query I rowsort label-5343
SELECT ALL 67 + - SUM ( - + 50 ) AS col0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT + + NULLIF ( + 94, - - 37 ) DIV + - 71
----
-1

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + + NULLIF ( + 94, - - 37 ) / + - 71
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT + 50 + - - 46 * + - NULLIF ( - 30, + - NULLIF ( - COUNT( * ), 60 * - + 39 ) + ( 52 + AVG ( 26 ) ) ) * + 49
----
67670

skipif mysql # not compatible
query I rowsort label-5345
SELECT + 50 + - - 46 * + - NULLIF ( - 30, + - NULLIF ( - COUNT ( * ), 60 * - + 39 ) + ( 52 + AVG ( 26 ) ) ) * + 49
----
67670

query I rowsort
SELECT - - 67
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5347
SELECT ALL NULLIF ( - 49, + + CASE + 4 WHEN 47 * - 31 + - - 35 * 43 THEN NULL WHEN 27 * COUNT( * ) THEN + CAST( - 67 AS SIGNED ) * COALESCE ( 55, 94 ) END + 40 * 32 )
----
-49

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL NULLIF ( - 49, + + CASE + 4 WHEN 47 * - 31 + - - 35 * 43 THEN NULL WHEN 27 * COUNT ( * ) THEN + CAST ( - 67 AS INTEGER ) * COALESCE ( 55, 94 ) END + 40 * 32 )
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL + 28 * + 78 * 79 * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + 28 * + 78 * 79 * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + SUM( ALL - 8 ) col0
----
-8

skipif mysql # not compatible
query I rowsort label-5349
SELECT + SUM ( ALL - 8 ) col0
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT - + 17 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-5350
SELECT - + 17 / + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT DISTINCT + 28, + COUNT( * ) AS col1
----
28
1

skipif mysql # not compatible
query II rowsort label-5351
SELECT DISTINCT + 28, + COUNT ( * ) AS col1
----
28
1

query I rowsort
SELECT ALL + 7 col1
----
7

query I rowsort
SELECT ALL 26 * + 59
----
1534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5354
SELECT + 91 * + + ( MIN( DISTINCT - COALESCE ( NULLIF ( 15, - 85 ), + - 40 * - ( + 11 ) ) ) ) - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5354
SELECT + 91 * + + ( MIN ( DISTINCT - COALESCE ( NULLIF ( 15, - 85 ), + - 40 * - ( + 11 ) ) ) ) - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - ( + 75 ) )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT ALL 10 * + + 77 - - - 88 * + ( 16 ) + - SUM( 17 ) + - + CASE - + MIN( ALL 76 ) WHEN 48 THEN NULL WHEN - CASE - CAST( - 15 AS SIGNED ) WHEN - ( - 71 ) THEN NULL WHEN + ( + 99 ) * COUNT( * ) + - 55 THEN NULLIF ( - 68, - 53 ) + + COUNT( * ) END + + 35 THEN + 30 END * - 72 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT ALL 10 * + + 77 - - - 88 * + ( 16 ) + - SUM ( 17 ) + - + CASE - + MIN ( ALL 76 ) WHEN 48 THEN NULL WHEN - CASE - CAST ( - 15 AS INTEGER ) WHEN - ( - 71 ) THEN NULL WHEN + ( + 99 ) * COUNT ( * ) + - 55 THEN NULLIF ( - 68, - 53 ) + + COUNT ( * ) END + + 35 THEN + 30 END * - 72 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT + COUNT( * ) * - ( - 8 )
----
8

skipif mysql # not compatible
query I rowsort label-5357
SELECT + COUNT ( * ) * - ( - 8 )
----
8

query I rowsort
SELECT ( - 58 ) col0
----
-58

query I rowsort
SELECT ALL + 35 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT NULLIF ( - SUM( DISTINCT + + 13 ), 62 * 4 * + 3 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-5360
SELECT NULLIF ( - SUM ( DISTINCT + + 13 ), 62 * 4 * + 3 ) AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT + CAST( NULL AS SIGNED ) / - 3 + + + 57 - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT + CAST ( NULL AS INTEGER ) / - 3 + + + 57 - 39
----
NULL

query I rowsort
SELECT ALL + 25 col0
----
25

query I rowsort
SELECT NULLIF ( - ( - 88 ), 35 ) AS col2
----
88

query I rowsort
SELECT DISTINCT + 67 AS col2
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT ALL + SUM( DISTINCT - CAST( 49 AS SIGNED ) ) * - 79
----
3871

skipif mysql # not compatible
query I rowsort label-5365
SELECT ALL + SUM ( DISTINCT - CAST ( 49 AS INTEGER ) ) * - 79
----
3871

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT - 48 DIV + + 64
----
0

skipif mysql # not compatible
query I rowsort label-5366
SELECT - 48 / + + 64
----
0

query I rowsort
SELECT ALL + COALESCE ( - 83, 67 )
----
-83

query I rowsort
SELECT ALL + 86
----
86

query I rowsort
SELECT DISTINCT + 57
----
57

query I rowsort
SELECT ALL + 95 * - 65
----
-6175

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT + 18 DIV 25 * 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT + 18 / 25 * 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT ALL + COUNT( - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL + COUNT ( - 23 )
----
1

query I rowsort
SELECT + + 66 AS col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT COALESCE ( CASE 58 WHEN 27 * - COUNT( * ) + - 51 * SUM( DISTINCT + - 24 ) THEN NULL ELSE 12 * - 17 END, + 36 ) AS col2
----
-204

skipif mysql # not compatible
query I rowsort label-5374
SELECT COALESCE ( CASE 58 WHEN 27 * - COUNT ( * ) + - 51 * SUM ( DISTINCT + - 24 ) THEN NULL ELSE 12 * - 17 END, + 36 ) AS col2
----
-204

query I rowsort
SELECT - + 56 AS col2
----
-56

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT - + 28 DIV + NULLIF ( CAST( + 86 AS SIGNED ), + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT - + 28 / + NULLIF ( CAST ( + 86 AS INTEGER ), + 67 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5377
SELECT + + CAST( NULL AS SIGNED ) * + 96 + + + COALESCE ( - AVG ( 18 ), - + 15 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT + + CAST ( NULL AS INTEGER ) * + 96 + + + COALESCE ( - AVG ( 18 ), - + 15 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5378
SELECT ALL 71 + + - CASE - + 3 WHEN 77 + + - 15 THEN NULL WHEN - COUNT( * ) THEN 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT ALL 71 + + - CASE - + 3 WHEN 77 + + - 15 THEN NULL WHEN - COUNT ( * ) THEN 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT - 66 * + 77 - + COUNT( * ) AS col0
----
-5083

skipif mysql # not compatible
query I rowsort label-5379
SELECT - 66 * + 77 - + COUNT ( * ) AS col0
----
-5083

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT MIN( + 57 )
----
57

skipif mysql # not compatible
query I rowsort label-5380
SELECT MIN ( + 57 )
----
57

query I rowsort
SELECT ALL CASE + - 17 WHEN - 72 * 89 THEN NULL WHEN - 77 THEN 29 * - 56 - - - 56 END
----
NULL

query I rowsort
SELECT DISTINCT + + 32 + + 27
----
59

query I rowsort
SELECT DISTINCT - 53 AS col2
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT ALL 99 * + + 79 + + + 34 * + 16 * - COUNT( * )
----
7277

skipif mysql # not compatible
query I rowsort label-5384
SELECT ALL 99 * + + 79 + + + 34 * + 16 * - COUNT ( * )
----
7277

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5385
SELECT ALL COUNT( * ) + - - CAST( - COUNT( 90 ) AS SIGNED ) DIV 12 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL COUNT ( * ) + - - CAST ( - COUNT ( 90 ) AS INTEGER ) / 12 AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5386
SELECT - - 1 + + COUNT( * ) * + COUNT( * ) DIV - + 61
----
1

skipif mysql # not compatible
query I rowsort label-5386
SELECT - - 1 + + COUNT ( * ) * + COUNT ( * ) / - + 61
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT ALL + COUNT( * ) * 71
----
71

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL + COUNT ( * ) * 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5388
SELECT + + 21 - 63, COALESCE ( 39, + 77 * + CAST( 74 AS SIGNED ) - - 21 + 29 ) AS col2
----
-42
39

skipif mysql # not compatible
query II rowsort label-5388
SELECT + + 21 - 63, COALESCE ( 39, + 77 * + CAST ( 74 AS INTEGER ) - - 21 + 29 ) AS col2
----
-42
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT + - 52 + SUM( - 44 ) AS col0
----
-96

skipif mysql # not compatible
query I rowsort label-5389
SELECT + - 52 + SUM ( - 44 ) AS col0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5390
SELECT - - 46 + + COUNT( * ) AS col0
----
47

skipif mysql # not compatible
query I rowsort label-5390
SELECT - - 46 + + COUNT ( * ) AS col0
----
47

query I rowsort
SELECT ALL - 41 - + - 87 - - 86 + + 5 + + - 95 * + COALESCE ( + 77, + 61 ) + + 26 * - 76
----
-9154

query I rowsort
SELECT - + 69 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT - CAST( 43 AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-5393
SELECT - CAST ( 43 AS INTEGER )
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5394
SELECT ALL ( + 49 ) - - - 39 / + 9 / + - CAST( NULL AS SIGNED ) * 27 + + CASE + + 46 WHEN - 64 THEN 71 WHEN CASE 98 WHEN + CAST( 93 AS DECIMAL ) THEN - 12 * - COUNT( * ) WHEN 65 THEN - 25 + 27 END * SUM( ALL 0 ) THEN 87 + - 25 ELSE NULL END * + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT ALL ( + 49 ) - - - 39 / + 9 / + - CAST ( NULL AS INTEGER ) * 27 + + CASE + + 46 WHEN - 64 THEN 71 WHEN CASE 98 WHEN + CAST ( 93 AS REAL ) THEN - 12 * - COUNT ( * ) WHEN 65 THEN - 25 + 27 END * SUM ( ALL 0 ) THEN 87 + - 25 ELSE NULL END * + 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5395
SELECT + COUNT( * ) + + 33 + + 50 DIV + 30
----
35

skipif mysql # not compatible
query I rowsort label-5395
SELECT + COUNT ( * ) + + 33 + + 50 / + 30
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ALL + 97 DIV 9
----
10

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL + 97 / 9
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT + CAST( NULL AS SIGNED ) + - - CAST( 61 AS SIGNED ) AS col2, 69 + - 61
----
NULL
8

skipif mysql # not compatible
query II rowsort label-5397
SELECT + CAST ( NULL AS INTEGER ) + - - CAST ( 61 AS INTEGER ) AS col2, 69 + - 61
----
NULL
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5398
SELECT + ( 2 ) DIV 91
----
0

skipif mysql # not compatible
query I rowsort label-5398
SELECT + ( 2 ) / 91
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT 98 DIV 80 + + - 41 * - 75
----
3076

skipif mysql # not compatible
query I rowsort label-5399
SELECT 98 / 80 + + - 41 * - 75
----
3076

query I rowsort
SELECT - 66 * - 84
----
5544

query I rowsort
SELECT - 84 + + 28
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + 96 * + COUNT( * ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5402
SELECT + 96 * + COUNT ( * ) AS col1
----
96

query I rowsort
SELECT DISTINCT - 80 * - 44
----
3520

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT ALL + COUNT( * ) * + COALESCE ( + 57, + 34 * - CASE - ( - COUNT( * ) ) WHEN + - 55 * - 10 * - 22 + + 55 THEN NULL ELSE NULLIF ( 3, COUNT( ALL + 34 ) + 69 ) * - ( - 75 ) END + 96 ) AS col2
----
57

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL + COUNT ( * ) * + COALESCE ( + 57, + 34 * - CASE - ( - COUNT ( * ) ) WHEN + - 55 * - 10 * - 22 + + 55 THEN NULL ELSE NULLIF ( 3, COUNT ( ALL + 34 ) + 69 ) * - ( - 75 ) END + 96 ) AS col2
----
57

query I rowsort
SELECT ALL - 32 AS col0
----
-32

query I rowsort
SELECT DISTINCT + 8 * + - 85
----
-680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT 71 * + CAST( NULL AS SIGNED ) * + 0 * 36 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT 71 * + CAST ( NULL AS INTEGER ) * + 0 * 36 AS col2
----
NULL

query I rowsort
SELECT ALL - ( 88 ) AS col2
----
-88

query I rowsort
SELECT 22 + - - 89
----
111

query I rowsort
SELECT DISTINCT + 17 + - - 41 * 22 * + 66 * + - ( + 41 )
----
-2440795

query II rowsort
SELECT + 27 AS col1, - ( - + 32 ) * - 74
----
27
-2368

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5412
SELECT CAST( NULL AS DECIMAL ) - + 79 + - ( + + 44 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT CAST ( NULL AS REAL ) - + 79 + - ( + + 44 )
----
NULL

query I rowsort
SELECT 12 * 78 * + + 21 AS col1
----
19656

query I rowsort
SELECT 15 - + + 43 - ( + 61 ) AS col2
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT CAST( - 75 AS SIGNED )
----
-75

skipif mysql # not compatible
query I rowsort label-5415
SELECT CAST ( - 75 AS INTEGER )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT MAX( ALL COALESCE ( 82, 23, - 42 * + 39 ) ) * - 29 * 93 + + - ( + 29 ) * - 12 AS col0
----
-220806

skipif mysql # not compatible
query I rowsort label-5416
SELECT MAX ( ALL COALESCE ( 82, 23, - 42 * + 39 ) ) * - 29 * 93 + + - ( + 29 ) * - 12 AS col0
----
-220806

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT DISTINCT - COUNT( * ) + - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-5417
SELECT DISTINCT - COUNT ( * ) + - + COUNT ( * )
----
-2

query I rowsort
SELECT + - 58
----
-58

query I rowsort
SELECT ALL - - 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - COUNT( * ) + + - ( - - CASE - + 32 WHEN 53 THEN - 47 WHEN - 23 + - COUNT( * ) + - 18 THEN NULL END ) * + 24 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - COUNT ( * ) + + - ( - - CASE - + 32 WHEN 53 THEN - 47 WHEN - 23 + - COUNT ( * ) + - 18 THEN NULL END ) * + 24 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5421
SELECT ALL COUNT( * ) col1, 0 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-5421
SELECT ALL COUNT ( * ) col1, 0 AS col2
----
1
0

query I rowsort
SELECT DISTINCT + + 30 + + 41 * - - 18 * 5 * 51 + 76 AS col1
----
188296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT ALL - 11 + + NULLIF ( 11, - CAST( NULL AS SIGNED ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT ALL - 11 + + NULLIF ( 11, - CAST ( NULL AS INTEGER ) ) AS col0
----
0

query I rowsort
SELECT - + 83 AS col2
----
-83

query I rowsort
SELECT NULLIF ( + 42, + 93 ) * + 26
----
1092

query I rowsort
SELECT - + 60
----
-60

query I rowsort
SELECT - 89 + 88 col0
----
-1

query I rowsort
SELECT DISTINCT 74 AS col0
----
74

query I rowsort
SELECT ALL - 96
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5430
SELECT DISTINCT - + 25 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-5430
SELECT DISTINCT - + 25 / + 73
----
0

query I rowsort
SELECT 61 - + - 26 AS col0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT CAST( NULL AS SIGNED ) * - - 83 * 47 * + - COALESCE ( NULLIF ( + 63, - NULLIF ( + 28, + COUNT( * ) ) ), - + 48, - 40 + 41 * + 1 ) * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5432
SELECT CAST ( NULL AS INTEGER ) * - - 83 * 47 * + - COALESCE ( NULLIF ( + 63, - NULLIF ( + 28, + COUNT ( * ) ) ), - + 48, - 40 + 41 * + 1 ) * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5433
SELECT DISTINCT COUNT( * ) * + 79 DIV - + 71 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT COUNT ( * ) * + 79 / - + 71 AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT 81 + + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT 81 + + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL 66 * - + COUNT( * ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 66 * - + COUNT ( * ) AS col0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5436
SELECT ALL - 21 * + CAST( NULL AS SIGNED ) * + ( - COUNT( ALL - + 79 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL - 21 * + CAST ( NULL AS INTEGER ) * + ( - COUNT ( ALL - + 79 ) ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5437
SELECT - NULLIF ( - 4, 90 * 48 * - 76 + - 36 + - - COUNT( * ) + + 80 + - CAST( - COUNT( * ) AS SIGNED ) * ( + ( 32 ) ) + - COUNT( * ) ) * 9 - + 96 * - 87
----
8388

skipif mysql # not compatible
query I rowsort label-5437
SELECT - NULLIF ( - 4, 90 * 48 * - 76 + - 36 + - - COUNT ( * ) + + 80 + - CAST ( - COUNT ( * ) AS INTEGER ) * ( + ( 32 ) ) + - COUNT ( * ) ) * 9 - + 96 * - 87
----
8388

query I rowsort
SELECT ALL 13 * 12 col2
----
156

query I rowsort
SELECT ALL 19 + 0 AS col2
----
19

query I rowsort
SELECT 22 * - 20 * - + 62 AS col0
----
27280

query I rowsort
SELECT ( - 95 ) + - - 83
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL COUNT( * ) + ( COUNT( * ) )
----
2

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL COUNT ( * ) + ( COUNT ( * ) )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5443
SELECT 58 AS col2, - NULLIF ( - 19, - 98 + + + 83 ) * + + CAST( 50 AS SIGNED ) + - 62 + - - 55
----
58
943

skipif mysql # not compatible
query II rowsort label-5443
SELECT 58 AS col2, - NULLIF ( - 19, - 98 + + + 83 ) * + + CAST ( 50 AS INTEGER ) + - 62 + - - 55
----
58
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT( * ) ) AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-5444
SELECT ALL NULLIF ( - 12, - ( - + 57 ) ) + + ( - - COUNT ( * ) ) AS col2
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5445
SELECT ALL 0 DIV - - COALESCE ( - CASE + 30 WHEN - + 37 * - 14 + - 77 + - - 76 THEN - COUNT( * ) END, + 74 DIV + NULLIF ( ( 60 ), - 15 ) + 70 )
----
0

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL 0 / - - COALESCE ( - CASE + 30 WHEN - + 37 * - 14 + - 77 + - - 76 THEN - COUNT ( * ) END, + 74 / + NULLIF ( ( 60 ), - 15 ) + 70 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5446
SELECT 12 DIV + ( 81 ) col1
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT 12 / + ( 81 ) col1
----
0

query I rowsort
SELECT + 0 * + 49 - - ( - 33 )
----
-33

query II rowsort
SELECT + 82, - 74 - - 30 AS col0
----
82
-44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5449
SELECT 24 + + - 60 - + CAST( 40 AS SIGNED ) - - - ( - - 11 ) DIV - - 27 AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5449
SELECT 24 + + - 60 - + CAST ( 40 AS INTEGER ) - - - ( - - 11 ) / - - 27 AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT NULLIF ( 92, COUNT( * ) ) col1
----
92

skipif mysql # not compatible
query I rowsort label-5450
SELECT NULLIF ( 92, COUNT ( * ) ) col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5451
SELECT ALL MIN( - - 15 ) + - 14 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5451
SELECT ALL MIN ( - - 15 ) + - 14 AS col2
----
1

query II rowsort
SELECT DISTINCT - ( - 6 ) AS col1, ( + - 91 ) + - 42 AS col2
----
6
-133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL - + CASE 1 WHEN + 14 * + COUNT( * ) + - 53 + + CAST( - - 34 AS SIGNED ) + + 7 * ( - 30 ) - + ( COUNT( * ) ) * + 85 * - 55 THEN NULL WHEN - 37 THEN NULL WHEN 82 + 62 THEN 74 * 49 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - + CASE 1 WHEN + 14 * + COUNT ( * ) + - 53 + + CAST ( - - 34 AS INTEGER ) + + 7 * ( - 30 ) - + ( COUNT ( * ) ) * + 85 * - 55 THEN NULL WHEN - 37 THEN NULL WHEN 82 + 62 THEN 74 * 49 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT 3 * + CASE + - COUNT( * ) WHEN COUNT( * ) * - ( - - 51 ) * - + ( + 16 ) THEN + 25 WHEN - - 32 - - COUNT( * ) THEN - 31 WHEN 46 * 67 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5454
SELECT 3 * + CASE + - COUNT ( * ) WHEN COUNT ( * ) * - ( - - 51 ) * - + ( + 16 ) THEN + 25 WHEN - - 32 - - COUNT ( * ) THEN - 31 WHEN 46 * 67 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - ( - 59 ) * + 50 * + + 73 * - 39 col1
----
-8398650

onlyif mysql # aggregate syntax: 
query II rowsort label-5456
SELECT MIN( ALL 89 ) + + NULLIF ( 96, - 35 ) + - 66 AS col1, + 15 - - 95 AS col0
----
119
110

skipif mysql # not compatible
query II rowsort label-5456
SELECT MIN ( ALL 89 ) + + NULLIF ( 96, - 35 ) + - 66 AS col1, + 15 - - 95 AS col0
----
119
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COUNT( DISTINCT - 15 )
----
1

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( DISTINCT - 15 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5458
SELECT + CAST( NULL AS SIGNED ) AS col0, 27
----
NULL
27

skipif mysql # not compatible
query II rowsort label-5458
SELECT + CAST ( NULL AS INTEGER ) AS col0, 27
----
NULL
27

query I rowsort
SELECT 83 + - + 25 * + ( - 64 ) + + 52 AS col2
----
1735

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + + COUNT( + ( - 28 ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5460
SELECT + + COUNT ( + ( - 28 ) ) AS col0
----
1

query I rowsort
SELECT - 3 + + + 31
----
28

query II rowsort
SELECT + 85 col0, - 46
----
85
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + - COUNT( * ) - + 28
----
-29

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + - COUNT ( * ) - + 28
----
-29

query II rowsort
SELECT ALL - 62 AS col0, 95 * - 65
----
-62
-6175

query I rowsort
SELECT ALL 64 AS col1
----
64

query I rowsort
SELECT DISTINCT 3 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5467
SELECT - 44 * + + CAST( + - AVG ( + NULLIF ( + 50, - - 35 ) ) AS SIGNED ), + 10 * - COALESCE ( - + 31, + 18 DIV - 93 ) * 48 AS col2
----
2200
14880

skipif mysql # not compatible
query II rowsort label-5467
SELECT - 44 * + + CAST ( + - AVG ( + NULLIF ( + 50, - - 35 ) ) AS INTEGER ), + 10 * - COALESCE ( - + 31, + 18 / - 93 ) * 48 AS col2
----
2200
14880

query I rowsort
SELECT + ( + 97 ) + + 79 + - 8 col0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL MIN( - - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL MIN ( - - 47 )
----
47

query I rowsort
SELECT + 66 + 59
----
125

query I rowsort
SELECT 31 + 72
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT + 10 * 77 DIV + - 1 + + 88 * - 71
----
-7018

skipif mysql # not compatible
query I rowsort label-5472
SELECT + 10 * 77 / + - 1 + + 88 * - 71
----
-7018

query II rowsort
SELECT ALL - - COALESCE ( - 28, + 93, 10, + 62 ) * - 41 * 80 AS col1, + 57 * 25
----
91840
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT 71 + ( - + 25 ) + - 60 + + COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-5474
SELECT 71 + ( - + 25 ) + - 60 + + COUNT ( * ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-5475
SELECT ALL MIN( ALL + 50 ) col0, + 46 + - 56 AS col0
----
50
-10

skipif mysql # not compatible
query II rowsort label-5475
SELECT ALL MIN ( ALL + 50 ) col0, + 46 + - 56 AS col0
----
50
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5476
SELECT 81 + ( + - COUNT( * ) ) DIV + + 60 AS col2
----
81

skipif mysql # not compatible
query I rowsort label-5476
SELECT 81 + ( + - COUNT ( * ) ) / + + 60 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL COALESCE ( - ( - 79 ), ( + 2 ) + - + COUNT( DISTINCT - + COALESCE ( - 74, + - 44 ) ), + 51 ) AS col2
----
79

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL COALESCE ( - ( - 79 ), ( + 2 ) + - + COUNT ( DISTINCT - + COALESCE ( - 74, + - 44 ) ), + 51 ) AS col2
----
79

query I rowsort
SELECT DISTINCT 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - 31 * - COUNT( * ) * - 76
----
-2356

skipif mysql # not compatible
query I rowsort label-5479
SELECT - 31 * - COUNT ( * ) * - 76
----
-2356

query I rowsort
SELECT ALL - 35 + - 20 + + 99
----
44

query I rowsort
SELECT DISTINCT 5 col2
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT ALL NULLIF ( + 78, + 91 + 47 ) + - 70 + - SUM( DISTINCT + - 92 ) + + COUNT( - 94 ) * 64
----
164

skipif mysql # not compatible
query I rowsort label-5482
SELECT ALL NULLIF ( + 78, + 91 + 47 ) + - 70 + - SUM ( DISTINCT + - 92 ) + + COUNT ( - 94 ) * 64
----
164

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT - 25 + + CAST( NULL AS SIGNED ) / - + 62 + + MAX( ALL - CASE - 89 WHEN + + 20 THEN - 59 ELSE 74 / - - 27 END ) * + NULLIF ( 64, 17 ) + - 84 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT - 25 + + CAST ( NULL AS INTEGER ) / - + 62 + + MAX ( ALL - CASE - 89 WHEN + + 20 THEN - 59 ELSE 74 / - - 27 END ) * + NULLIF ( 64, 17 ) + - 84 AS col0
----
NULL

query I rowsort
SELECT + 1 + - 90 - + + 7 AS col2
----
-96

query I rowsort
SELECT DISTINCT + ( + - 1 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT + MIN( DISTINCT - 55 ) AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5487
SELECT + MIN ( DISTINCT - 55 ) AS col1
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL + 78 * + - COUNT( * ) + 94 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + 78 * + - COUNT ( * ) + 94 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5489
SELECT + 71 + 66 col1, CAST( NULL AS DECIMAL )
----
137
NULL

skipif mysql # not compatible
query II rowsort label-5489
SELECT + 71 + 66 col1, CAST ( NULL AS REAL )
----
137
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT NULLIF ( - 13, + COUNT( * ) - + + 25 )
----
-13

skipif mysql # not compatible
query I rowsort label-5490
SELECT NULLIF ( - 13, + COUNT ( * ) - + + 25 )
----
-13

query I rowsort
SELECT DISTINCT + 57 col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT ALL + 62 * - 42 * - COUNT( * ) * + ( + ( + 78 ) ) + + 68 AS col0
----
203180

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL + 62 * - 42 * - COUNT ( * ) * + ( + ( + 78 ) ) + + 68 AS col0
----
203180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5493
SELECT ALL + CAST( - 16 AS SIGNED )
----
-16

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + CAST ( - 16 AS INTEGER )
----
-16

query I rowsort
SELECT DISTINCT + 2 col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT DISTINCT + 18 * + 32 + + 33 - + 4 * - + 76 - + + 70 + - ( + + MAX( ALL - - 50 ) ) * + 88 * 13
----
-56357

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT + 18 * + 32 + + 33 - + 4 * - + 76 - + + 70 + - ( + + MAX ( ALL - - 50 ) ) * + 88 * 13
----
-56357

query I rowsort
SELECT + 65 * 74 - + ( - - 92 ) * + 86
----
-3102

query I rowsort
SELECT ALL + + 9
----
9

query I rowsort
SELECT + - 10
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-5499
SELECT DISTINCT 22 DIV - - 6, - 25 + - 79 * + 38 AS col2
----
3
-3027

skipif mysql # not compatible
query II rowsort label-5499
SELECT DISTINCT 22 / - - 6, - 25 + - 79 * + 38 AS col2
----
3
-3027

query I rowsort
SELECT + 92 - - 0 - + 48 AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT - MIN( - 52 ) DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-5501
SELECT - MIN ( - 52 ) / - 40
----
-1

query I rowsort
SELECT ALL 31 * + 46 AS col0
----
1426

onlyif mysql # aggregate syntax: 
query I rowsort label-5503
SELECT + + 39 * + - COALESCE ( CASE WHEN NOT ( NULL ) <= NULL THEN + ( SUM( 88 ) ) END, + 53 ) * - 97 * - ( - - 13 ) * 11 AS col0
----
-28671357

skipif mysql # not compatible
query I rowsort label-5503
SELECT + + 39 * + - COALESCE ( CASE WHEN NOT ( NULL ) <= NULL THEN + ( SUM ( 88 ) ) END, + 53 ) * - 97 * - ( - - 13 ) * 11 AS col0
----
-28671357

query I rowsort
SELECT ALL + 46
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT 49 * COALESCE ( COUNT( * ), 75, + 2 ) AS col1
----
49

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT 49 * COALESCE ( COUNT ( * ), 75, + 2 ) AS col1
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT ALL - + SUM( ALL - - ( 40 ) ) * - - 29 AS col2
----
-1160

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - + SUM ( ALL - - ( 40 ) ) * - - 29 AS col2
----
-1160

query II rowsort
SELECT + + ( - 49 ), 35 AS col0
----
-49
35

query I rowsort
SELECT + 37 * + + 70 AS col1
----
2590

query I rowsort
SELECT ALL 7 * + + 49 * 65 + - + 26
----
22269

query I rowsort
SELECT DISTINCT + 54 AS col2
----
54

query I rowsort
SELECT - - 15 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - - ( 22 ) + COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-5512
SELECT - - ( 22 ) + COUNT ( * )
----
23

query I rowsort
SELECT - 78 * 86
----
-6708

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5514
SELECT + CAST( NULL AS SIGNED ) * + - 31 + - ( + 45 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT + CAST ( NULL AS INTEGER ) * + - 31 + - ( + 45 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - 85 + - - COUNT( * ) col2
----
-84

skipif mysql # not compatible
query I rowsort label-5515
SELECT - 85 + - - COUNT ( * ) col2
----
-84

query I rowsort
SELECT 97 col0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT ALL 61 + CAST( + 83 AS SIGNED ) * - 72 AS col0
----
-5915

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL 61 + CAST ( + 83 AS INTEGER ) * - 72 AS col0
----
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5518
SELECT 2 col2, - 37 + 96 + - CAST( NULL AS SIGNED ) AS col2
----
2
NULL

skipif mysql # not compatible
query II rowsort label-5518
SELECT 2 col2, - 37 + 96 + - CAST ( NULL AS INTEGER ) AS col2
----
2
NULL

query I rowsort
SELECT - 31 * + 41 * + + 75
----
-95325

query I rowsort
SELECT ALL 37 + - - 52 AS col1
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5521
SELECT ALL - COUNT( ( 94 ) ) + + + 76 + + 19 - - 95 * 29 * - ( - SUM( - + 19 ) ) + 91 + + + 18 DIV SUM( DISTINCT + NULLIF ( - ( + 92 ), 79 ) ) * - 57 AS col2
----
-52160

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - COUNT ( ( 94 ) ) + + + 76 + + 19 - - 95 * 29 * - ( - SUM ( - + 19 ) ) + 91 + + + 18 / SUM ( DISTINCT + NULLIF ( - ( + 92 ), 79 ) ) * - 57 AS col2
----
-52160

query I rowsort
SELECT ALL ( - 97 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5523
SELECT - CAST( - MAX( ( + 51 ) ) AS SIGNED ) AS col1
----
51

skipif mysql # not compatible
query I rowsort label-5523
SELECT - CAST ( - MAX ( ( + 51 ) ) AS INTEGER ) AS col1
----
51

query I rowsort
SELECT - 1 * 37 AS col0
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5525
SELECT - CAST( NULL AS DECIMAL ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5525
SELECT - CAST ( NULL AS REAL ) col0
----
NULL

query I rowsort
SELECT - 89 + - 2
----
-91

query II rowsort
SELECT 40, 78 AS col2
----
40
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5528
SELECT - MIN( DISTINCT + + 55 ) AS col2
----
-55

skipif mysql # not compatible
query I rowsort label-5528
SELECT - MIN ( DISTINCT + + 55 ) AS col2
----
-55

query I rowsort
SELECT - 65 + 94 + - - 53
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - SUM( DISTINCT 10 ) * + 22 AS col2
----
-220

skipif mysql # not compatible
query I rowsort label-5530
SELECT - SUM ( DISTINCT 10 ) * + 22 AS col2
----
-220

query I rowsort
SELECT ALL ( + + COALESCE ( - - 59, + + 38 ) )
----
59

query II rowsort
SELECT - 70, + 56 AS col2
----
-70
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL - COUNT( * ) + - 55 + + + 14
----
-42

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - COUNT ( * ) + - 55 + + + 14
----
-42

query I rowsort
SELECT DISTINCT + 2 AS col1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5535
SELECT 5 DIV - 73 + + 79
----
79

skipif mysql # not compatible
query I rowsort label-5535
SELECT 5 / - 73 + + 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-5536
SELECT ALL - 41 DIV 93 * + 58 - - 57 col2
----
57

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL - 41 / 93 * + 58 - - 57 col2
----
57

query I rowsort
SELECT + + ( 26 ) AS col1
----
26

query I rowsort
SELECT + 10 + - 11
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5539
SELECT 71 * - 88 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT 71 * - 88 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 92 AS col2
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5541
SELECT - AVG ( DISTINCT CAST( NULL AS DECIMAL ) ) * + 55 + + + 45 + SUM( DISTINCT 76 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT - AVG ( DISTINCT CAST ( NULL AS REAL ) ) * + 55 + + + 45 + SUM ( DISTINCT 76 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5542
SELECT + COALESCE ( COUNT( * ), + + COUNT( * ) * - - 26 + + - CAST( - + AVG ( - 24 ) AS SIGNED ) ) * + 20 + + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5542
SELECT + COALESCE ( COUNT ( * ), + + COUNT ( * ) * - - 26 + + - CAST ( - + AVG ( - 24 ) AS INTEGER ) ) * + 20 + + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT + + ( 18 )
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT - 76 + + 99 + - COUNT( * ) * + 2 DIV 85
----
23

skipif mysql # not compatible
query I rowsort label-5544
SELECT - 76 + + 99 + - COUNT ( * ) * + 2 / 85
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + MIN( ALL - 44 ) * - 99 - + 15 AS col0
----
4341

skipif mysql # not compatible
query I rowsort label-5545
SELECT + MIN ( ALL - 44 ) * - 99 - + 15 AS col0
----
4341

query I rowsort
SELECT ALL + + 16 col1
----
16

query I rowsort
SELECT ALL + + 81 * + 14 AS col2
----
1134

query I rowsort
SELECT + + ( - - 93 ) * - + 15 AS col0
----
-1395

query I rowsort
SELECT ALL + - 38 AS col0
----
-38

query I rowsort
SELECT ALL + 61
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5551
SELECT + - COUNT( * ) * - 25 + - CAST( NULL AS SIGNED ), COUNT( * ) AS col2
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5551
SELECT + - COUNT ( * ) * - 25 + - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2
----
NULL
1

query I rowsort
SELECT - 65 * + 19 - - + 46 AS col1
----
-1189

query I rowsort
SELECT + 35 * 24 AS col2
----
840

onlyif mysql # aggregate syntax: 
query I rowsort label-5554
SELECT ALL - COUNT( ALL + 44 ) * - - 1 + - 63 col0
----
-64

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - COUNT ( ALL + 44 ) * - - 1 + - 63 col0
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5555
SELECT + + 42 + - - 25 + - 17 AS col0, - COUNT( * ) * - 60
----
50
60

skipif mysql # not compatible
query II rowsort label-5555
SELECT + + 42 + - - 25 + - 17 AS col0, - COUNT ( * ) * - 60
----
50
60

query I rowsort
SELECT + - 30 col2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + 71 * + 24 + + 0 - COUNT( * ) AS col2
----
1703

skipif mysql # not compatible
query I rowsort label-5557
SELECT + 71 * + 24 + + 0 - COUNT ( * ) AS col2
----
1703

onlyif mysql # DIV for integer division: 
query II rowsort label-5558
SELECT DISTINCT + 56 DIV + 37 + 32 AS col1, - 7
----
33
-7

skipif mysql # not compatible
query II rowsort label-5558
SELECT DISTINCT + 56 / + 37 + 32 AS col1, - 7
----
33
-7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5559
SELECT ALL - CASE - - 99 WHEN ( - - 89 ) + NULLIF ( 89, 88 + 70 + 91 ) THEN NULL WHEN + 41 + + CAST( CAST( - 27 AS DECIMAL ) AS SIGNED ) THEN - 11 ELSE - 51 * 33 END AS col2
----
1683

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL - CASE - - 99 WHEN ( - - 89 ) + NULLIF ( 89, 88 + 70 + 91 ) THEN NULL WHEN + 41 + + CAST ( CAST ( - 27 AS REAL ) AS INTEGER ) THEN - 11 ELSE - 51 * 33 END AS col2
----
1683

query I rowsort
SELECT - 85 * 31 * - 87 * - 63 * 37 + + + 81 + NULLIF ( + 90, - 4 ) AS col2
----
-534369924

query I rowsort
SELECT DISTINCT 20 + - - 27 * - + 36
----
-952

query I rowsort
SELECT DISTINCT 38 col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5563
SELECT CAST( NULL AS SIGNED ) + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5563
SELECT CAST ( NULL AS INTEGER ) + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT DISTINCT SUM( - 45 ) * - - 31 AS col2
----
-1395

skipif mysql # not compatible
query I rowsort label-5564
SELECT DISTINCT SUM ( - 45 ) * - - 31 AS col2
----
-1395

onlyif mysql # aggregate syntax: 
query II rowsort label-5565
SELECT COUNT( * ) + - 1 AS col0, 98 AS col2
----
0
98

skipif mysql # not compatible
query II rowsort label-5565
SELECT COUNT ( * ) + - 1 AS col0, 98 AS col2
----
0
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT COUNT( * ) * + + 21
----
21

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT COUNT ( * ) * + + 21
----
21

query I rowsort
SELECT ALL 7 + - 52
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT 42 + + - COALESCE ( - 23, 52 * + COUNT( * ) + - + 37 ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT 42 + + - COALESCE ( - 23, 52 * + COUNT ( * ) + - + 37 ) AS col2
----
65

query I rowsort
SELECT DISTINCT 58 AS col2
----
58

query I rowsort
SELECT 51 + - 47 AS col0
----
4

query I rowsort
SELECT ALL - ( + + 47 ) + 29
----
-18

query I rowsort
SELECT DISTINCT 15 col0
----
15

query I rowsort
SELECT DISTINCT 6 - + + 85
----
-79

query I rowsort
SELECT 40 + 3 col2
----
43

query I rowsort
SELECT 50 + 7 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ( - 86 ) * - 39 * - COUNT( * )
----
-3354

skipif mysql # not compatible
query I rowsort label-5576
SELECT ( - 86 ) * - 39 * - COUNT ( * )
----
-3354

query I rowsort
SELECT 56 * - 78
----
-4368

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + COUNT( * ) * - + ( - 38 ) AS col2
----
38

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + COUNT ( * ) * - + ( - 38 ) AS col2
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT CASE - ( COALESCE ( + 80, 49, + 67 * + 56 * 52, + 16 ) ) WHEN - 63 THEN - 22 * + CAST( - 24 AS SIGNED ) + + 68 + 10 + 7 / 40 WHEN + 70 - + 2 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT CASE - ( COALESCE ( + 80, 49, + 67 * + 56 * 52, + 16 ) ) WHEN - 63 THEN - 22 * + CAST ( - 24 AS INTEGER ) + + 68 + 10 + 7 / 40 WHEN + 70 - + 2 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5580
SELECT 48 DIV 96
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT 48 / 96
----
0

query I rowsort
SELECT - 56 + + 91 + + 61 + 7 * + + 52
----
460

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + ( - 61 ) + + 87 * - - COUNT( * ) + - 81 AS col1
----
-55

skipif mysql # not compatible
query I rowsort label-5582
SELECT + ( - 61 ) + + 87 * - - COUNT ( * ) + - 81 AS col1
----
-55

query I rowsort
SELECT + 92 col0
----
92

query I rowsort
SELECT ALL - 34 * 49 - 24 AS col0
----
-1690

query I rowsort
SELECT ALL - - 22
----
22

query I rowsort
SELECT DISTINCT - + 71 AS col2
----
-71

query I rowsort
SELECT DISTINCT - + NULLIF ( - 98, + 85 / 19 ) AS col0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5588
SELECT COUNT( * ) DIV COUNT( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1
----
1
18

skipif mysql # not compatible
query II rowsort label-5588
SELECT COUNT ( * ) / COUNT ( * ) AS col1, ( - ( + 61 ) ) - - 79 AS col1
----
1
18

query I rowsort
SELECT ALL - + NULLIF ( + 26, + + 43 * - - 74 ) + - 5 + 13 AS col1
----
-18

query I rowsort
SELECT ALL - 9 col2
----
-9

query I rowsort
SELECT + + 53 AS col1
----
53

query I rowsort
SELECT 96 * - ( + 29 )
----
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT SUM( 28 ) - - 62
----
90

skipif mysql # not compatible
query I rowsort label-5593
SELECT SUM ( 28 ) - - 62
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5594
SELECT ALL - CAST( 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - CAST ( 0 AS INTEGER ) AS col2
----
0

query I rowsort
SELECT ALL - 27 * - + 72
----
1944

query I rowsort
SELECT DISTINCT + 68 + - + 45 + + 7 * 0 + - 25 + + 91 * + 13 * + 16 AS col1
----
18926

query II rowsort
SELECT ALL 52 + 84 + NULLIF ( + 68, 40 ) AS col0, 55 AS col1
----
204
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5598
SELECT ALL ( + + 59 ) + - COUNT( * ) AS col2, 65 col2
----
58
65

skipif mysql # not compatible
query II rowsort label-5598
SELECT ALL ( + + 59 ) + - COUNT ( * ) AS col2, 65 col2
----
58
65

query I rowsort
SELECT 52 AS col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT ALL + 76 * COUNT( * ) * + NULLIF ( 46, + 45 ) col0
----
3496

skipif mysql # not compatible
query I rowsort label-5600
SELECT ALL + 76 * COUNT ( * ) * + NULLIF ( 46, + 45 ) col0
----
3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5601
SELECT DISTINCT - COUNT( * ) + 17 + + 39 DIV 32 AS col2
----
17

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT - COUNT ( * ) + 17 + + 39 / 32 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT MIN( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT MIN ( 1 )
----
1

query II rowsort
SELECT ALL 8 + ( - 5 ) col0, - 48 * - + 46 + + 65
----
3
2273

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT - 97, 97 * - 87 + - COUNT( * ) AS col1
----
-97
-8440

skipif mysql # not compatible
query II rowsort label-5604
SELECT - 97, 97 * - 87 + - COUNT ( * ) AS col1
----
-97
-8440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5605
SELECT COALESCE ( + COUNT( * ), + 5 ) DIV + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5605
SELECT COALESCE ( + COUNT ( * ), + 5 ) / + COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT 41 * + - COUNT( * ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-5606
SELECT 41 * + - COUNT ( * ) AS col2
----
-41

query I rowsort
SELECT ALL 53 AS col2
----
53

query II rowsort
SELECT 51 AS col1, - 31
----
51
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5609
SELECT - MIN( ALL + + 80 )
----
-80

skipif mysql # not compatible
query I rowsort label-5609
SELECT - MIN ( ALL + + 80 )
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5610
SELECT ALL 36 DIV + ( - ( - NULLIF ( 5, - CAST( + COUNT( * ) AS SIGNED ) - + 81 ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL 36 / + ( - ( - NULLIF ( 5, - CAST ( + COUNT ( * ) AS INTEGER ) - + 81 ) ) )
----
7

query I rowsort
SELECT DISTINCT 59 col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5612
SELECT ALL 54 - 18 + - COALESCE ( COUNT( * ), + MIN( DISTINCT 57 ) ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL 54 - 18 + - COALESCE ( COUNT ( * ), + MIN ( DISTINCT 57 ) ) AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT 31 - ( - 61 ) * + 13 * + COALESCE ( + 75, - - COUNT( * ) * + 29 * + - 59 ) AS col2
----
59506

skipif mysql # not compatible
query I rowsort label-5613
SELECT 31 - ( - 61 ) * + 13 * + COALESCE ( + 75, - - COUNT ( * ) * + 29 * + - 59 ) AS col2
----
59506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5614
SELECT DISTINCT 65 DIV COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT 65 / COUNT ( * )
----
65

query I rowsort
SELECT ALL 30 * + NULLIF ( - 23, - 76 ) AS col1
----
-690

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5616
SELECT NULLIF ( + + 29, - - 49 ) * + MIN( + 25 ) * + - MAX( ALL + 1 ) + + COUNT( ALL + 79 ) DIV + 89 * 88 * 91 * - COUNT( * ), COUNT( * ) AS col0
----
-725
1

skipif mysql # not compatible
query II rowsort label-5616
SELECT NULLIF ( + + 29, - - 49 ) * + MIN ( + 25 ) * + - MAX ( ALL + 1 ) + + COUNT ( ALL + 79 ) / + 89 * 88 * 91 * - COUNT ( * ), COUNT ( * ) AS col0
----
-725
1

query I rowsort
SELECT DISTINCT 47 * 10
----
470

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT COUNT( * ) + 71 - + 9 AS col2
----
63

skipif mysql # not compatible
query I rowsort label-5618
SELECT COUNT ( * ) + 71 - + 9 AS col2
----
63

query II rowsort
SELECT 89 col2, - 44
----
89
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL CAST( + + 19 AS SIGNED ) * + ( 34 ) AS col2
----
646

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL CAST ( + + 19 AS INTEGER ) * + ( 34 ) AS col2
----
646

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT NULLIF ( + - COUNT( * ), - + SUM( DISTINCT + 70 ) * COUNT( * ) + + + 95 + - 66 + - 28 * 73 * - 26 ) + - 91 + + 99
----
7

skipif mysql # not compatible
query I rowsort label-5621
SELECT NULLIF ( + - COUNT ( * ), - + SUM ( DISTINCT + 70 ) * COUNT ( * ) + + + 95 + - 66 + - 28 * 73 * - 26 ) + - 91 + + 99
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5622
SELECT CAST( + ( 33 ) AS SIGNED ) * + - COUNT( * ) col2
----
-33

skipif mysql # not compatible
query I rowsort label-5622
SELECT CAST ( + ( 33 ) AS INTEGER ) * + - COUNT ( * ) col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT SUM( 83 ) * + 61 + - 57 / CASE - 77 WHEN + 63 THEN 31 * + 31 ELSE NULL END * - 96 * + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT SUM ( 83 ) * + 61 + - 57 / CASE - 77 WHEN + 63 THEN 31 * + 31 ELSE NULL END * - 96 * + 6
----
NULL

query I rowsort
SELECT 40 + + 84
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5625
SELECT + 45 + 86 + + CAST( NULL AS SIGNED ) - - - 78 * 89 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT + 45 + 86 + + CAST ( NULL AS INTEGER ) - - - 78 * 89 AS col2
----
NULL

query I rowsort
SELECT - - 62
----
62

query II rowsort
SELECT ALL - 52 col2, - 52 AS col1
----
-52
-52

query I rowsort
SELECT - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT ALL + 83 * 70 * - 98 + + ( - - COUNT( * ) ) + - - 95 + + + 29 + 64
----
-569191

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + 83 * 70 * - 98 + + ( - - COUNT ( * ) ) + - - 95 + + + 29 + 64
----
-569191

query I rowsort
SELECT ALL + - 81 * + 94 - 93 * + - 39
----
-3987

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT DISTINCT COUNT( + + 11 ) * 43 + + COUNT( * )
----
44

skipif mysql # not compatible
query I rowsort label-5631
SELECT DISTINCT COUNT ( + + 11 ) * 43 + + COUNT ( * )
----
44

query II rowsort
SELECT - 21 AS col2, + 37
----
-21
37

query I rowsort
SELECT + ( - 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5634
SELECT ALL + 40 * - SUM( - + NULLIF ( - 91, + 92 ) ) + - 28 / + CASE - + 16 WHEN - 42 THEN NULL WHEN + + 26 THEN - 62 ELSE 16 * + NULLIF ( + + CAST( 89 AS SIGNED ), CASE 72 WHEN + 83 THEN 68 END * 85 ) - - COUNT( + 57 ) END * - CASE - 7 WHEN 41 THEN NULL WHEN 46 * 81 + 25 THEN NULL WHEN + 82 - + 56 * - COUNT( * ) THEN + 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL + 40 * - SUM ( - + NULLIF ( - 91, + 92 ) ) + - 28 / + CASE - + 16 WHEN - 42 THEN NULL WHEN + + 26 THEN - 62 ELSE 16 * + NULLIF ( + + CAST ( 89 AS INTEGER ), CASE 72 WHEN + 83 THEN 68 END * 85 ) - - COUNT ( + 57 ) END * - CASE - 7 WHEN 41 THEN NULL WHEN 46 * 81 + 25 THEN NULL WHEN + 82 - + 56 * - COUNT ( * ) THEN + 85 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT + MAX( + - 59 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5635
SELECT + MAX ( + - 59 ) AS col2
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5636
SELECT + + 76 * + COUNT( * ) + + - 55 * 84 + + - 16 + - - COUNT( * ) * - - 42 DIV ( + + 19 )
----
-4558

skipif mysql # not compatible
query I rowsort label-5636
SELECT + + 76 * + COUNT ( * ) + + - 55 * 84 + + - 16 + - - COUNT ( * ) * - - 42 / ( + + 19 )
----
-4558

query I rowsort
SELECT + + 98 AS col0
----
98

query I rowsort
SELECT + + 67 + + - 42
----
25

query I rowsort
SELECT + - 44 AS col2
----
-44

query I rowsort
SELECT ALL - 46 * 90 + + 5 + + 95 * + + 19 AS col0
----
-2330

query I rowsort
SELECT 38 col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT ALL - 39 * + MAX( + 62 ) + - 35
----
-2453

skipif mysql # not compatible
query I rowsort label-5642
SELECT ALL - 39 * + MAX ( + 62 ) + - 35
----
-2453

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5643
SELECT ALL - 90 DIV COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-5643
SELECT ALL - 90 / COUNT ( * )
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT - - 84 DIV 63 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5644
SELECT - - 84 / 63 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5645
SELECT ALL + ( - + COALESCE ( ( - + 63 ), + + 82 * + MIN( DISTINCT + 59 ) ) )
----
63

skipif mysql # not compatible
query I rowsort label-5645
SELECT ALL + ( - + COALESCE ( ( - + 63 ), + + 82 * + MIN ( DISTINCT + 59 ) ) )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT - COUNT( ALL - 38 ) * 25 AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-5646
SELECT - COUNT ( ALL - 38 ) * 25 AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT - 78 * COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-5647
SELECT - 78 * COUNT ( * )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5648
SELECT COUNT( * ) * 14 - + - 43
----
57

skipif mysql # not compatible
query I rowsort label-5648
SELECT COUNT ( * ) * 14 - + - 43
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5649
SELECT ALL + CAST( + 65 AS SIGNED )
----
65

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL + CAST ( + 65 AS INTEGER )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-5650
SELECT ALL + 18 - + 93 + + 8 * + MAX( DISTINCT 32 ) * - 63 AS col0, - 5
----
-16203
-5

skipif mysql # not compatible
query II rowsort label-5650
SELECT ALL + 18 - + 93 + + 8 * + MAX ( DISTINCT 32 ) * - 63 AS col0, - 5
----
-16203
-5

query I rowsort
SELECT ALL ( - + 82 ) AS col2
----
-82

query I rowsort
SELECT - 68 * + + 43 + - 9 + + 4
----
-2929

query I rowsort
SELECT DISTINCT CASE - 2 WHEN + 19 * 5 THEN 66 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT ALL - 45 * - ( - - CASE - - 90 WHEN - 97 THEN NULL WHEN + 10 * - ( SUM( DISTINCT + + 48 ) ) THEN - 37 END ) / - + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT ALL - 45 * - ( - - CASE - - 90 WHEN - 97 THEN NULL WHEN + 10 * - ( SUM ( DISTINCT + + 48 ) ) THEN - 37 END ) / - + 60 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - MIN( ALL + ( 74 ) ) AS col2
----
-74

skipif mysql # not compatible
query I rowsort label-5655
SELECT - MIN ( ALL + ( 74 ) ) AS col2
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT DISTINCT - NULLIF ( - - COUNT( * ), CAST( + - COUNT( * ) AS SIGNED ) / COALESCE ( + + 61, + + 16 ) ) * - - 84
----
-84

skipif mysql # not compatible
query I rowsort label-5656
SELECT DISTINCT - NULLIF ( - - COUNT ( * ), CAST ( + - COUNT ( * ) AS INTEGER ) / COALESCE ( + + 61, + + 16 ) ) * - - 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT ALL CASE - MAX( - 67 ) WHEN + - 96 * + 86 THEN - 58 WHEN + - ( + - 58 ) - CASE - - 71 WHEN 80 * - - ( - 75 ) THEN - COUNT( * ) * - 78 / - - COUNT( * ) WHEN COUNT( * ) / 38 THEN - ( 92 ) + + AVG ( ALL + ( 98 ) + + ( 28 ) * - 99 ) END THEN + 58 ELSE COUNT( * ) * - 73 END col2
----
-73

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL CASE - MAX ( - 67 ) WHEN + - 96 * + 86 THEN - 58 WHEN + - ( + - 58 ) - CASE - - 71 WHEN 80 * - - ( - 75 ) THEN - COUNT ( * ) * - 78 / - - COUNT ( * ) WHEN COUNT ( * ) / 38 THEN - ( 92 ) + + AVG ( ALL + ( 98 ) + + ( 28 ) * - 99 ) END THEN + 58 ELSE COUNT ( * ) * - 73 END col2
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT - 83 * + - CAST( NULL AS SIGNED ) * - 74
----
NULL

skipif mysql # not compatible
query I rowsort label-5658
SELECT - 83 * + - CAST ( NULL AS INTEGER ) * - 74
----
NULL

query I rowsort
SELECT ALL ( + 75 )
----
75

query I rowsort
SELECT DISTINCT ( + - 18 )
----
-18

query I rowsort
SELECT 37 AS col0
----
37

query I rowsort
SELECT - 53 * + 10 AS col2
----
-530

query I rowsort
SELECT DISTINCT ( - + 89 ) AS col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT - CASE + 62 WHEN - + SUM( + 96 ) - + - 41 * + 13 THEN + - 80 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5664
SELECT - CASE + 62 WHEN - + SUM ( + 96 ) - + - 41 * + 13 THEN + - 80 END AS col0
----
NULL

query I rowsort
SELECT ALL - NULLIF ( - + 62, + 64 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT ALL - - 74 + + SUM( - - 88 ) + + - ( + 7 ) + - - 30
----
185

skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL - - 74 + + SUM ( - - 88 ) + + - ( + 7 ) + - - 30
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT ALL - 95 * 21 DIV 28 + + - 73 + - 58
----
-202

skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - 95 * 21 / 28 + + - 73 + - 58
----
-202

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5668
SELECT + MIN( ALL - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5668
SELECT + MIN ( ALL - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1
----
NULL

query I rowsort
SELECT ALL + 26 + - 81 * + 96
----
-7750

onlyif mysql # DIV for integer division: 
query II rowsort label-5670
SELECT - 89 AS col1, - 62 DIV + 11 AS col1
----
-89
-5

skipif mysql # not compatible
query II rowsort label-5670
SELECT - 89 AS col1, - 62 / + 11 AS col1
----
-89
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5671
SELECT ALL - SUM( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST( - 13 * + 7 + 96 AS SIGNED ) WHEN COUNT( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END
----
NULL

skipif mysql # not compatible
query I rowsort label-5671
SELECT ALL - SUM ( DISTINCT 50 ) + CASE CASE + 66 WHEN + NULLIF ( + 15, + 90 * - AVG ( + 62 ) - - 45 ) THEN 75 ELSE NULL END WHEN + CASE - + 78 WHEN + - 95 THEN - - CASE 43 WHEN 35 THEN NULL WHEN 79 THEN - 6 * + 4 + 92 END / + CAST ( - 13 * + 7 + 96 AS INTEGER ) WHEN COUNT ( * ) THEN NULL WHEN 78 THEN NULL ELSE 10 END THEN + 3 * - CASE 54 * 95 WHEN - 26 THEN 14 WHEN 3 * - 23 THEN NULL END END
----
NULL

query I rowsort
SELECT + 31 * 67 * + NULLIF ( - 55, - 21 * + 90 ) AS col2
----
-114235

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5673
SELECT + 78, CASE + COUNT( * ) WHEN + CAST( NULL AS SIGNED ) THEN 92 + COUNT( * ) ELSE + 95 END + + - 22 - CAST( - COUNT( * ) AS SIGNED ) * 31 AS col0
----
78
104

skipif mysql # not compatible
query II rowsort label-5673
SELECT + 78, CASE + COUNT ( * ) WHEN + CAST ( NULL AS INTEGER ) THEN 92 + COUNT ( * ) ELSE + 95 END + + - 22 - CAST ( - COUNT ( * ) AS INTEGER ) * 31 AS col0
----
78
104

query I rowsort
SELECT ALL + - 84 AS col2
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-5675
SELECT + 11 AS col1, 39 + + 55 + - + 1 * - 9 DIV + 14 AS col2
----
11
94

skipif mysql # not compatible
query II rowsort label-5675
SELECT + 11 AS col1, 39 + + 55 + - + 1 * - 9 / + 14 AS col2
----
11
94

query I rowsort
SELECT DISTINCT 33 * 63 AS col1
----
2079

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5677
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) + - - 79 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - - 79 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + - 16 AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5679
SELECT DISTINCT + 18 AS col1, + COUNT( * ) - COUNT( * ) + - 43 AS col2
----
18
-43

skipif mysql # not compatible
query II rowsort label-5679
SELECT DISTINCT + 18 AS col1, + COUNT ( * ) - COUNT ( * ) + - 43 AS col2
----
18
-43

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5680
SELECT 71 AS col0, CAST( NULL AS SIGNED )
----
71
NULL

skipif mysql # not compatible
query II rowsort label-5680
SELECT 71 AS col0, CAST ( NULL AS INTEGER )
----
71
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT ALL + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT + COUNT( * ) + - - 43 + COUNT( * ) + - 35, + 11 * 43 + + 7 AS col0
----
10
480

skipif mysql # not compatible
query II rowsort label-5682
SELECT + COUNT ( * ) + - - 43 + COUNT ( * ) + - 35, + 11 * 43 + + 7 AS col0
----
10
480

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT DISTINCT - - COALESCE ( - 71, + + COUNT( * ) ) * 14 * 12 + + + MAX( ALL 3 ) + + 69 AS col2
----
-11856

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - - COALESCE ( - 71, + + COUNT ( * ) ) * 14 * 12 + + + MAX ( ALL 3 ) + + 69 AS col2
----
-11856

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT ALL + - ( - NULLIF ( + 39, - 68 ) ) * - 7 * COUNT( * ) + + 66 * 64 AS col0
----
3951

skipif mysql # not compatible
query I rowsort label-5684
SELECT ALL + - ( - NULLIF ( + 39, - 68 ) ) * - 7 * COUNT ( * ) + + 66 * 64 AS col0
----
3951

query II rowsort
SELECT + - 38, + 66 AS col1
----
-38
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5686
SELECT ALL + + 50 * + - 86 - - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL + + 50 * + - 86 - - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT ( + 13 )
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5688
SELECT + ( 3 ), SUM( ALL - ( + 19 ) ) * + COUNT( * ) + - + 79 DIV - 8 AS col2
----
3
-10

skipif mysql # not compatible
query II rowsort label-5688
SELECT + ( 3 ), SUM ( ALL - ( + 19 ) ) * + COUNT ( * ) + - + 79 / - 8 AS col2
----
3
-10

query I rowsort
SELECT + 49 - - 64 AS col2
----
113

query I rowsort
SELECT - 55 * 28 * - 15 AS col0
----
23100

query I rowsort
SELECT CASE + + 78 WHEN - - 96 THEN - 21 * 37 - + 31 * - 96 * + 79 ELSE 39 END AS col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT DISTINCT 90 * + ( + + MAX( CAST( 35 AS SIGNED ) ) ) AS col2
----
3150

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT 90 * + ( + + MAX ( CAST ( 35 AS INTEGER ) ) ) AS col2
----
3150

onlyif mysql # aggregate syntax: 
query II rowsort label-5693
SELECT ALL + ( - - 56 ) AS col2, COUNT( * ) + 31
----
56
32

skipif mysql # not compatible
query II rowsort label-5693
SELECT ALL + ( - - 56 ) AS col2, COUNT ( * ) + 31
----
56
32

query I rowsort
SELECT - 19 * + 36 col2
----
-684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5695
SELECT ALL COUNT( * ) * 89 DIV + 66 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL COUNT ( * ) * 89 / + 66 AS col1
----
1

query I rowsort
SELECT DISTINCT + 73 AS col2
----
73

query I rowsort
SELECT - 95 * + 40
----
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL COALESCE ( 16, + 70 + + 98, - + COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL COALESCE ( 16, + 70 + + 98, - + COUNT ( * ) )
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT + 83 / - + ( - CAST( NULL AS SIGNED ) ) * + - NULLIF ( - 72, - 18 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5699
SELECT + 83 / - + ( - CAST ( NULL AS INTEGER ) ) * + - NULLIF ( - 72, - 18 ) AS col0
----
NULL

query I rowsort
SELECT - 65 * - + 4 * 82 AS col1
----
21320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5701
SELECT ALL CAST( - 40 AS SIGNED ) AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL CAST ( - 40 AS INTEGER ) AS col0
----
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5702
SELECT DISTINCT CASE WHEN ( CASE - 25 WHEN - 20 THEN NULL ELSE + COUNT( * ) * - CAST( NULL AS DECIMAL ) + - 3 - + + 42 * - CAST( + 47 AS SIGNED ) + - 23 + - COALESCE ( + - 16, 7, COUNT( * ) + - + 73, SUM( 52 ) * - COUNT( * ) + - ( + 3 - 54 ) * 7 ) - - ( + 98 ) * 44 END ) IS NULL THEN 68 * ( + CASE 27 WHEN + COUNT( * ) THEN NULL ELSE COUNT( * ) END ) END
----
68

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT CASE WHEN ( CASE - 25 WHEN - 20 THEN NULL ELSE + COUNT ( * ) * - CAST ( NULL AS REAL ) + - 3 - + + 42 * - CAST ( + 47 AS INTEGER ) + - 23 + - COALESCE ( + - 16, 7, COUNT ( * ) + - + 73, SUM ( 52 ) * - COUNT ( * ) + - ( + 3 - 54 ) * 7 ) - - ( + 98 ) * 44 END ) IS NULL THEN 68 * ( + CASE 27 WHEN + COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) END
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT ALL - 78 + - MAX( - 71 ) DIV + - 53
----
-79

skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - 78 + - MAX ( - 71 ) / + - 53
----
-79

query I rowsort
SELECT - 47 - - 61 * - CASE + 90 WHEN 14 + - 76 THEN NULL ELSE - 47 END
----
2820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT ALL - CAST( 33 AS SIGNED ) + - + 25 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - CAST ( 33 AS INTEGER ) + - + 25 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ALL - 55 + MAX( 43 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - 55 + MAX ( 43 ) AS col2
----
-12

query I rowsort
SELECT + 61 col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5708
SELECT - COALESCE ( - - 45, - + 65 ) + + CAST( NULL AS SIGNED ) * - COALESCE ( + 40, - COUNT( * ) + - 55, - MAX( - + 95 ) ) - 45 + + NULLIF ( 35, 54 * - 25 ) * + 49 * + 78 * + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5708
SELECT - COALESCE ( - - 45, - + 65 ) + + CAST ( NULL AS INTEGER ) * - COALESCE ( + 40, - COUNT ( * ) + - 55, - MAX ( - + 95 ) ) - 45 + + NULLIF ( 35, 54 * - 25 ) * + 49 * + 78 * + 58 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5709
SELECT COUNT( 40 ), - 71 AS col2
----
1
-71

skipif mysql # not compatible
query II rowsort label-5709
SELECT COUNT ( 40 ), - 71 AS col2
----
1
-71

query I rowsort
SELECT - + 17 AS col2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL - COUNT( * ) + 0 - 14 * - ( + MIN( DISTINCT - 52 ) ) AS col1
----
-729

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - COUNT ( * ) + 0 - 14 * - ( + MIN ( DISTINCT - 52 ) ) AS col1
----
-729

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT 4 + MAX( 88 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5712
SELECT 4 + MAX ( 88 ) AS col1
----
92

query I rowsort
SELECT + 99 - ( - 45 )
----
144

query II rowsort
SELECT - - NULLIF ( NULLIF ( - ( - 56 ), + 72 - 37 + 17 + + 73 + - 32 / - 92 + + 73 ), + 36 ), - 53 col2
----
56
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5715
SELECT + 65 * MIN( ALL - 16 ) * - 20 DIV + 2, COUNT( ALL + 20 ) * + + 84 AS col0
----
10400
84

skipif mysql # not compatible
query II rowsort label-5715
SELECT + 65 * MIN ( ALL - 16 ) * - 20 / + 2, COUNT ( ALL + 20 ) * + + 84 AS col0
----
10400
84

query I rowsort
SELECT ALL 5 * 45 * - 15
----
-3375

query I rowsort
SELECT DISTINCT + 12 - 85
----
-73

query I rowsort
SELECT ALL 18 * 26 * + - 31
----
-14508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5719
SELECT CAST( NULL AS SIGNED ) / - + 68 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT CAST ( NULL AS INTEGER ) / - + 68 AS col2
----
NULL

query I rowsort
SELECT 18 + - 74
----
-56

query I rowsort
SELECT DISTINCT - 57 AS col2
----
-57

query I rowsort
SELECT ALL 49 * 21 AS col1
----
1029

query I rowsort
SELECT DISTINCT - 2 AS col0
----
-2

query I rowsort
SELECT ALL - NULLIF ( ( + - 24 ), + 69 ) AS col0
----
24

query I rowsort
SELECT 81 AS col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT COUNT( DISTINCT + 57 ) * 44 * 83 - - 87 + - - 2 AS col2, + 58
----
3741
58

skipif mysql # not compatible
query II rowsort label-5726
SELECT COUNT ( DISTINCT + 57 ) * 44 * 83 - - 87 + - - 2 AS col2, + 58
----
3741
58

query I rowsort
SELECT + 51 AS col1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT ALL - 89 AS col1, + 66 * - 95 * + + CAST( - 17 AS SIGNED )
----
-89
106590

skipif mysql # not compatible
query II rowsort label-5728
SELECT ALL - 89 AS col1, + 66 * - 95 * + + CAST ( - 17 AS INTEGER )
----
-89
106590

query I rowsort
SELECT + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT COALESCE ( - 12, - 45, + + 23 * - 11, + COUNT( * ) ) + 22 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-5730
SELECT COALESCE ( - 12, - 45, + + 23 * - 11, + COUNT ( * ) ) + 22 AS col0
----
10

query I rowsort
SELECT 76 - - + 35 AS col0
----
111

onlyif mysql # DIV for integer division: 
query III rowsort label-5732
SELECT ( - - 46 ) DIV + + 34 AS col1, 77, + 29 AS col0
----
1
77
29

skipif mysql # not compatible
query III rowsort label-5732
SELECT ( - - 46 ) / + + 34 AS col1, 77, + 29 AS col0
----
1
77
29

query I rowsort
SELECT + 21 * - 19 * 19 * + 85 + - + NULLIF ( 25, - NULLIF ( 87, - 93 * - 83 + + 46 * 45 ) )
----
-644410

query II rowsort
SELECT ALL - 83 + + 96 + 30 AS col1, 58 * - - 12 AS col1
----
43
696

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT 75 + + COUNT( * ) col0
----
76

skipif mysql # not compatible
query I rowsort label-5735
SELECT 75 + + COUNT ( * ) col0
----
76

query I rowsort
SELECT ALL 29 + - 94 AS col1
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5737
SELECT ( + 10 ) DIV 44 + COUNT( * ) DIV 76 * - + ( 17 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT ( + 10 ) / 44 + COUNT ( * ) / 76 * - + ( 17 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5738
SELECT - ( + 44 ) + + COUNT( * ) - 76 * 39 + + - 86 - + CAST( - 84 AS SIGNED ) + 55 AS col2
----
-2954

skipif mysql # not compatible
query I rowsort label-5738
SELECT - ( + 44 ) + + COUNT ( * ) - 76 * 39 + + - 86 - + CAST ( - 84 AS INTEGER ) + 55 AS col2
----
-2954

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT - - SUM( DISTINCT + 20 ) AS col2
----
20

skipif mysql # not compatible
query I rowsort label-5739
SELECT - - SUM ( DISTINCT + 20 ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-5740
SELECT + ( - 35 ) DIV + 3 col0, + 31 DIV 92 AS col2
----
-11
0

skipif mysql # not compatible
query II rowsort label-5740
SELECT + ( - 35 ) / + 3 col0, + 31 / 92 AS col2
----
-11
0

query I rowsort
SELECT 17 + + 60
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-5742
SELECT DISTINCT + COALESCE ( 35, + - MAX( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2
----
53
67

skipif mysql # not compatible
query II rowsort label-5742
SELECT DISTINCT + COALESCE ( 35, + - MAX ( DISTINCT - + 53 ) * 53 + + 85 + 99 ) + + 18 AS col2, + ( 67 ) AS col2
----
53
67

query I rowsort
SELECT - - 50
----
50

query I rowsort
SELECT DISTINCT + 94
----
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5745
SELECT DISTINCT + ( 87 ) * - - 89 * + MIN( ALL - - 37 ) * + - 56 + + 13 DIV - ( 27 )
----
-16043496

skipif mysql # not compatible
query I rowsort label-5745
SELECT DISTINCT + ( 87 ) * - - 89 * + MIN ( ALL - - 37 ) * + - 56 + + 13 / - ( 27 )
----
-16043496

onlyif mysql # aggregate syntax: 
query II rowsort label-5746
SELECT - COUNT( 79 ) * - - COUNT( * ), 7 + 51 AS col0
----
-1
58

skipif mysql # not compatible
query II rowsort label-5746
SELECT - COUNT ( 79 ) * - - COUNT ( * ), 7 + 51 AS col0
----
-1
58

query I rowsort
SELECT - + 45
----
-45

query I rowsort
SELECT DISTINCT + - 52 * - 58
----
3016

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT DISTINCT ( + MIN( - 25 ) )
----
-25

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT ( + MIN ( - 25 ) )
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-5750
SELECT + 30 - + + 50 - - - ( + COALESCE ( + 61, - + 76 ) ) + + - 11 + - 92, + 7 DIV + + 75 * - - 39 AS col0
----
-184
0

skipif mysql # not compatible
query II rowsort label-5750
SELECT + 30 - + + 50 - - - ( + COALESCE ( + 61, - + 76 ) ) + + - 11 + - 92, + 7 / + + 75 * - - 39 AS col0
----
-184
0

query I rowsort
SELECT ALL - + 73 AS col2
----
-73

query I rowsort
SELECT DISTINCT - 40 AS col0
----
-40

query I rowsort
SELECT 7 col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT COUNT( * ) * + 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5754
SELECT COUNT ( * ) * + 54 AS col1
----
54

query I rowsort
SELECT ALL - ( - + 47 )
----
47

query I rowsort
SELECT DISTINCT 72 * + - 5
----
-360

query I rowsort
SELECT ALL 90 * - - 95
----
8550

onlyif mysql # aggregate syntax: 
query II rowsort label-5758
SELECT COUNT( - 42 ) col1, - 49 * + - COUNT( * ) AS col1
----
1
49

skipif mysql # not compatible
query II rowsort label-5758
SELECT COUNT ( - 42 ) col1, - 49 * + - COUNT ( * ) AS col1
----
1
49

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT ALL + 86 DIV 64 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + 86 / 64 AS col2
----
1

query I rowsort
SELECT + 46 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5761
SELECT MIN( DISTINCT CASE + - 77 WHEN 84 THEN NULL ELSE - + 88 END ) AS col2
----
-88

skipif mysql # not compatible
query I rowsort label-5761
SELECT MIN ( DISTINCT CASE + - 77 WHEN 84 THEN NULL ELSE - + 88 END ) AS col2
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-5762
SELECT ALL CASE - COUNT( * ) WHEN 6 + + ( + 62 ) THEN NULL ELSE 16 END + + 62 AS col2, - COUNT( * ) + + - COUNT( * ) + + 80 + - 88 * + COUNT( * ) - COUNT( * )
----
78
-11

skipif mysql # not compatible
query II rowsort label-5762
SELECT ALL CASE - COUNT ( * ) WHEN 6 + + ( + 62 ) THEN NULL ELSE 16 END + + 62 AS col2, - COUNT ( * ) + + - COUNT ( * ) + + 80 + - 88 * + COUNT ( * ) - COUNT ( * )
----
78
-11

query I rowsort
SELECT 40 * - 4
----
-160

query I rowsort
SELECT DISTINCT - 11 AS col0
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-5765
SELECT ALL 65 + + + CAST( CASE COUNT( * ) WHEN - ( - + CASE + NULLIF ( - 59, + - 16 - - + CAST( NULL AS SIGNED ) ) WHEN - COUNT( * ) THEN 51 END ) + + AVG ( + + 63 ) THEN 94 * CAST( NULL AS DECIMAL ) - - 71 ELSE NULL END AS SIGNED ) AS col0, 53 DIV + 32
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5765
SELECT ALL 65 + + + CAST ( CASE COUNT ( * ) WHEN - ( - + CASE + NULLIF ( - 59, + - 16 - - + CAST ( NULL AS INTEGER ) ) WHEN - COUNT ( * ) THEN 51 END ) + + AVG ( + + 63 ) THEN 94 * CAST ( NULL AS REAL ) - - 71 ELSE NULL END AS INTEGER ) AS col0, 53 / + 32
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5766
SELECT ALL COUNT( * ) + + + 27 + COALESCE ( + 95, - - 91 + + + COUNT( 24 ) * + 29 ) DIV + + ( - + ( 87 ) )
----
27

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL COUNT ( * ) + + + 27 + COALESCE ( + 95, - - 91 + + + COUNT ( 24 ) * + 29 ) / + + ( - + ( 87 ) )
----
27

query I rowsort
SELECT ALL - 14 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5768
SELECT 56 - - - COUNT( * ) + + + 37 * - 34
----
-1203

skipif mysql # not compatible
query I rowsort label-5768
SELECT 56 - - - COUNT ( * ) + + + 37 * - 34
----
-1203

query I rowsort
SELECT 90 col2
----
90

query I rowsort
SELECT ALL + 38 + - 95 AS col1
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5771
SELECT + + CAST( NULL AS SIGNED ) - + 27 * 86 + + + 32 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5771
SELECT + + CAST ( NULL AS INTEGER ) - + 27 * 86 + + + 32 AS col1
----
NULL

query I rowsort
SELECT + 54 * - 65 AS col2
----
-3510

query I rowsort
SELECT - - 55 col2
----
55

query I rowsort
SELECT - - 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5775
SELECT + - 17 - - - COUNT( ALL + 57 ) * - 79 * + 2 AS col2
----
141

skipif mysql # not compatible
query I rowsort label-5775
SELECT + - 17 - - - COUNT ( ALL + 57 ) * - 79 * + 2 AS col2
----
141

query I rowsort
SELECT ALL - 12 - + 67 - - + 21 * 59 AS col1
----
1160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5777
SELECT CAST( - - 55 AS SIGNED )
----
55

skipif mysql # not compatible
query I rowsort label-5777
SELECT CAST ( - - 55 AS INTEGER )
----
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5778
SELECT - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5778
SELECT - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT - - 68 * + - 63 AS col2
----
-4284

query I rowsort
SELECT + + 57 + - 86 + - 50
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5781
SELECT - 84 DIV + NULLIF ( + 50, - CAST( NULL AS SIGNED ) DIV - 21 - + - 70 * + 6 ) - ( + + CAST( + 76 AS SIGNED ) ) * - + COUNT( * ) DIV 87 * 98 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5781
SELECT - 84 / + NULLIF ( + 50, - CAST ( NULL AS INTEGER ) / - 21 - + - 70 * + 6 ) - ( + + CAST ( + 76 AS INTEGER ) ) * - + COUNT ( * ) / 87 * 98 AS col2
----
-1

query I rowsort
SELECT ALL - 24 col0
----
-24

query I rowsort
SELECT - + 67
----
-67

query I rowsort
SELECT DISTINCT - 11
----
-11

query I rowsort
SELECT 40 AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5786
SELECT - 54 + COALESCE ( + + 27, - - COUNT( 70 ), + 61 * - + CAST( NULL AS SIGNED ) ), + MIN( - 40 ) AS col2
----
-27
-40

skipif mysql # not compatible
query II rowsort label-5786
SELECT - 54 + COALESCE ( + + 27, - - COUNT ( 70 ), + 61 * - + CAST ( NULL AS INTEGER ) ), + MIN ( - 40 ) AS col2
----
-27
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT + MAX( ALL + + 43 )
----
43

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + MAX ( ALL + + 43 )
----
43

query I rowsort
SELECT ALL + 81 * + 90 AS col2
----
7290

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5789
SELECT CASE + 72 WHEN + - CAST( NULL AS SIGNED ) + + COALESCE ( - 34, - 0 ) THEN NULL WHEN - 93 THEN - NULLIF ( + - 26, - 79 ) WHEN + 25 + - - 87 + + - ( 38 ) + + 66 * - 7 * + SUM( DISTINCT 25 ) THEN - CASE + ( COALESCE ( - 36, 34 * ( + 39 * + COUNT( * ) ) + 53 * + 14 ) ) WHEN + NULLIF ( + COUNT( * ), + 31 * - 88 ) THEN CASE COUNT( * ) WHEN - AVG ( ALL + 55 ) THEN - 80 ELSE NULL END END END / 37 + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-5789
SELECT CASE + 72 WHEN + - CAST ( NULL AS INTEGER ) + + COALESCE ( - 34, - 0 ) THEN NULL WHEN - 93 THEN - NULLIF ( + - 26, - 79 ) WHEN + 25 + - - 87 + + - ( 38 ) + + 66 * - 7 * + SUM ( DISTINCT 25 ) THEN - CASE + ( COALESCE ( - 36, 34 * ( + 39 * + COUNT ( * ) ) + 53 * + 14 ) ) WHEN + NULLIF ( + COUNT ( * ), + 31 * - 88 ) THEN CASE COUNT ( * ) WHEN - AVG ( ALL + 55 ) THEN - 80 ELSE NULL END END END / 37 + 42
----
NULL

query I rowsort
SELECT ALL + 79
----
79

query I rowsort
SELECT ( - 75 )
----
-75

query I rowsort
SELECT + 38 AS col2
----
38

query I rowsort
SELECT ( + 61 ) AS col1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5794
SELECT ALL + 83 * CAST( + 28 AS SIGNED ) DIV COUNT( * ) + ( COUNT( * ) ) AS col1
----
2325

skipif mysql # not compatible
query I rowsort label-5794
SELECT ALL + 83 * CAST ( + 28 AS INTEGER ) / COUNT ( * ) + ( COUNT ( * ) ) AS col1
----
2325

query I rowsort
SELECT ALL + 99 * + 74 + + 63 + - - 27
----
7416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5796
SELECT + 46, 35 + + + COUNT( - CAST( NULL AS SIGNED ) ) AS col1
----
46
35

skipif mysql # not compatible
query II rowsort label-5796
SELECT + 46, 35 + + + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1
----
46
35

query I rowsort
SELECT ( 85 ) AS col2
----
85

query I rowsort
SELECT NULLIF ( 40, - - 39 ) AS col1
----
40

query I rowsort
SELECT - 36 * 61
----
-2196

onlyif mysql # aggregate syntax: 
query II rowsort label-5800
SELECT + COUNT( * ) AS col0, + 22 * + - 29
----
1
-638

skipif mysql # not compatible
query II rowsort label-5800
SELECT + COUNT ( * ) AS col0, + 22 * + - 29
----
1
-638

query I rowsort
SELECT ALL + 14
----
14

query I rowsort
SELECT ALL + NULLIF ( - 21, + - 50 * 69 ) AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT COALESCE ( 45, - COUNT( * ) + SUM( DISTINCT + 14 ) * 78 )
----
45

skipif mysql # not compatible
query I rowsort label-5803
SELECT COALESCE ( 45, - COUNT ( * ) + SUM ( DISTINCT + 14 ) * 78 )
----
45

query I rowsort
SELECT DISTINCT + COALESCE ( + 12, 17, + 98 ) AS col2
----
12

query I rowsort
SELECT ALL 18 * 9 col1
----
162

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5806
SELECT - 24 + CAST( NULL AS DECIMAL ) / 64, - COALESCE ( - 53, - + COUNT( * ) ) AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-5806
SELECT - 24 + CAST ( NULL AS REAL ) / 64, - COALESCE ( - 53, - + COUNT ( * ) ) AS col1
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + SUM( ALL - 7 )
----
-7

skipif mysql # not compatible
query I rowsort label-5807
SELECT + SUM ( ALL - 7 )
----
-7

query I rowsort
SELECT ALL + COALESCE ( - + 36, 26 + - - 95 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5809
SELECT + 78 AS col2, + 75 + - CAST( NULL AS SIGNED ) + + 73
----
78
NULL

skipif mysql # not compatible
query II rowsort label-5809
SELECT + 78 AS col2, + 75 + - CAST ( NULL AS INTEGER ) + + 73
----
78
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5810
SELECT + 52 - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-5810
SELECT + 52 - COUNT ( * )
----
51

query I rowsort
SELECT ALL + - 26
----
-26

query II rowsort
SELECT DISTINCT + 74, 38 AS col1
----
74
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT ALL MAX( DISTINCT 19 )
----
19

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL MAX ( DISTINCT 19 )
----
19

query I rowsort
SELECT + + 46 + + - 73
----
-27

query I rowsort
SELECT - + 82 AS col1
----
-82

query I rowsort
SELECT + - 71 + + 89 AS col1
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT - 85 * - + ( 86 ) col2, - COUNT( ALL - + 96 ) + + NULLIF ( 76, - 63 * - ( 65 ) ) + - + 67
----
7310
8

skipif mysql # not compatible
query II rowsort label-5817
SELECT - 85 * - + ( 86 ) col2, - COUNT ( ALL - + 96 ) + + NULLIF ( 76, - 63 * - ( 65 ) ) + - + 67
----
7310
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5818
SELECT + + MIN( DISTINCT 81 ) + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5818
SELECT + + MIN ( DISTINCT 81 ) + COUNT ( * )
----
82

query II rowsort
SELECT 18, 64 AS col1
----
18
64

query I rowsort
SELECT + - 22 * + + 81
----
-1782

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5821
SELECT ALL CAST( 67 AS SIGNED ) * + 69 DIV - NULLIF ( - - ( + 3 ), - - 55 * + 71 ) AS col0, + 92 AS col1
----
-1541
92

skipif mysql # not compatible
query II rowsort label-5821
SELECT ALL CAST ( 67 AS INTEGER ) * + 69 / - NULLIF ( - - ( + 3 ), - - 55 * + 71 ) AS col0, + 92 AS col1
----
-1541
92

query I rowsort
SELECT + + 94 * - 29
----
-2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5823
SELECT DISTINCT - CAST( + CASE + - ( - 91 ) WHEN + COUNT( * ) + + COUNT( * ) + + 39 * 36 THEN + + COUNT( * ) * + + 98 + + 82 + 75 * 33 * + ( - COUNT( * ) ) WHEN - MIN( 62 ) + - 27 THEN NULL ELSE NULL END AS SIGNED ) / + 90 * + 96 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT - CAST ( + CASE + - ( - 91 ) WHEN + COUNT ( * ) + + COUNT ( * ) + + 39 * 36 THEN + + COUNT ( * ) * + + 98 + + 82 + 75 * 33 * + ( - COUNT ( * ) ) WHEN - MIN ( 62 ) + - 27 THEN NULL ELSE NULL END AS INTEGER ) / + 90 * + 96 * 48
----
NULL

query I rowsort
SELECT ALL 21 AS col1
----
21

query I rowsort
SELECT - ( - 89 ) AS col1
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5826
SELECT + ( 29 ) * + 85 AS col0, - 33 DIV - 24 AS col0
----
2465
1

skipif mysql # not compatible
query II rowsort label-5826
SELECT + ( 29 ) * + 85 AS col0, - 33 / - 24 AS col0
----
2465
1

query I rowsort
SELECT ALL - 39 * - 19 AS col2
----
741

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL + 75 + COUNT( * ) + + - 97 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL + 75 + COUNT ( * ) + + - 97 AS col2
----
-21

query I rowsort
SELECT ( + 70 ) AS col1
----
70

query I rowsort
SELECT + 67 * 14 col1
----
938

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT - ( + CASE + MIN( - 98 ) WHEN + 67 * + 34 THEN - COUNT( * ) WHEN - + 52 THEN NULL ELSE NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5831
SELECT - ( + CASE + MIN ( - 98 ) WHEN + 67 * + 34 THEN - COUNT ( * ) WHEN - + 52 THEN NULL ELSE NULL END ) col2
----
NULL

query II rowsort
SELECT - 88 AS col2, + 20 + + 85 - - 27 AS col1
----
-88
132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5833
SELECT + 91 AS col0, + 75 + - ( + CAST( + + MIN( ALL + 43 ) AS SIGNED ) )
----
91
32

skipif mysql # not compatible
query II rowsort label-5833
SELECT + 91 AS col0, + 75 + - ( + CAST ( + + MIN ( ALL + 43 ) AS INTEGER ) )
----
91
32

onlyif mysql # aggregate syntax: 
query II rowsort label-5834
SELECT + 37 * - - 21 col0, MAX( - 50 ) col2
----
777
-50

skipif mysql # not compatible
query II rowsort label-5834
SELECT + 37 * - - 21 col0, MAX ( - 50 ) col2
----
777
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT ALL - 23 DIV - 82 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL - 23 / - 82 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5836
SELECT ALL - COUNT( - 83 ) DIV + 41 + 72 + CAST( 31 AS SIGNED ) AS col1
----
103

skipif mysql # not compatible
query I rowsort label-5836
SELECT ALL - COUNT ( - 83 ) / + 41 + 72 + CAST ( 31 AS INTEGER ) AS col1
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5837
SELECT ALL 91 DIV - 49 + - ( + + 94 ) * + - 99 - 77 + 19 + + - ( + + COUNT( * ) ) * COUNT( * ) AS col2
----
9246

skipif mysql # not compatible
query I rowsort label-5837
SELECT ALL 91 / - 49 + - ( + + 94 ) * + - 99 - 77 + 19 + + - ( + + COUNT ( * ) ) * COUNT ( * ) AS col2
----
9246

query I rowsort
SELECT + 56 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-5839
SELECT + 9 DIV + - NULLIF ( + - 98, MAX( + 54 ) ) * 71 + - 16 AS col0, - 74 * - - 37 AS col1, - 52
----
-16
-2738
-52

skipif mysql # not compatible
query III rowsort label-5839
SELECT + 9 / + - NULLIF ( + - 98, MAX ( + 54 ) ) * 71 + - 16 AS col0, - 74 * - - 37 AS col1, - 52
----
-16
-2738
-52

query I rowsort
SELECT - 0 + - 55 AS col2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-5841
SELECT ALL 28 DIV + 37 * - 74 + + 72 + + + 8 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-5841
SELECT ALL 28 / + 37 * - 74 + + 72 + + + 8 AS col1
----
80

query I rowsort
SELECT 29 col0
----
29

query I rowsort
SELECT + 70 AS col1
----
70

query I rowsort
SELECT 68 * - 35 col1
----
-2380

query I rowsort
SELECT 4 * + ( + 53 )
----
212

query II rowsort
SELECT 7, + 91 * 25 + - 85 AS col2
----
7
2190

query I rowsort
SELECT 52 * + + 61 + - 80 AS col0
----
3092

query I rowsort
SELECT ALL - ( - - 16 ) AS col2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT ALL - CASE - 5 WHEN 94 * NULLIF ( + COUNT( * ), + 94 ) * 19 + 10 THEN NULL ELSE - 18 END - 93 + + 54 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-5849
SELECT ALL - CASE - 5 WHEN 94 * NULLIF ( + COUNT ( * ), + 94 ) * 19 + 10 THEN NULL ELSE - 18 END - 93 + + 54 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT + SUM( - - 61 ) * 99
----
6039

skipif mysql # not compatible
query I rowsort label-5850
SELECT + SUM ( - - 61 ) * 99
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT ALL + + COUNT( * ) - 89 col0
----
-88

skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + + COUNT ( * ) - 89 col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5852
SELECT ALL - + 77 AS col2, - 24 + 69 + - - 39 + + MAX( ALL - 85 ) * - 96 + - CASE - CAST( NULL AS SIGNED ) WHEN - 54 THEN + + 95 * 39 * + 58 + 46 + - + 99 / - 86 + + + COUNT( * ) ELSE NULL END * + 78
----
-77
NULL

skipif mysql # not compatible
query II rowsort label-5852
SELECT ALL - + 77 AS col2, - 24 + 69 + - - 39 + + MAX ( ALL - 85 ) * - 96 + - CASE - CAST ( NULL AS INTEGER ) WHEN - 54 THEN + + 95 * 39 * + 58 + 46 + - + 99 / - 86 + + + COUNT ( * ) ELSE NULL END * + 78
----
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5853
SELECT 94 * - CAST( NULL AS SIGNED ) * - 72 / + 45 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5853
SELECT 94 * - CAST ( NULL AS INTEGER ) * - 72 / + 45 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5854
SELECT ALL - COUNT( DISTINCT - 37 ) * - COUNT( - CAST( NULL AS SIGNED ) ), - 85 * - AVG ( DISTINCT + - CAST( NULL AS DECIMAL ) ) AS col2
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5854
SELECT ALL - COUNT ( DISTINCT - 37 ) * - COUNT ( - CAST ( NULL AS INTEGER ) ), - 85 * - AVG ( DISTINCT + - CAST ( NULL AS REAL ) ) AS col2
----
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5855
SELECT - 69 - 95 + + + ( - COUNT( * ) ) DIV - 57 AS col0
----
-164

skipif mysql # not compatible
query I rowsort label-5855
SELECT - 69 - 95 + + + ( - COUNT ( * ) ) / - 57 AS col0
----
-164

query I rowsort
SELECT - 82 - 52
----
-134

query I rowsort
SELECT DISTINCT - - 83 * 10 AS col1
----
830

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT 74 * - + CASE + 14 WHEN COUNT( 36 ) THEN - ( + + 7 ) + - COUNT( + 5 ) WHEN - COUNT( * ) * - 65 + - + 53 + 13 THEN NULL WHEN + 70 / - 13 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5858
SELECT 74 * - + CASE + 14 WHEN COUNT ( 36 ) THEN - ( + + 7 ) + - COUNT ( + 5 ) WHEN - COUNT ( * ) * - 65 + - + 53 + 13 THEN NULL WHEN + 70 / - 13 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5859
SELECT - + 17 AS col1, - 31 + CASE COUNT( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN( + + 47 ) + + - CAST( 3 AS SIGNED ) * - 36 THEN 81 * - 76 + 15 * + + COUNT( * ) * + CAST( NULL AS SIGNED ) END AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-5859
SELECT - + 17 AS col1, - 31 + CASE COUNT ( * ) WHEN 25 / + - 90 + - 91 THEN 12 WHEN MIN ( + + 47 ) + + - CAST ( 3 AS INTEGER ) * - 36 THEN 81 * - 76 + 15 * + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) END AS col1
----
-17
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5860
SELECT DISTINCT ( - - 82 ) + + 32 DIV 29 + - COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT ( - - 82 ) + + 32 / 29 + - COUNT ( * )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT + + 54 * COUNT( * ) - 44 + ( + 83 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT + + 54 * COUNT ( * ) - 44 + ( + 83 ) AS col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5862
SELECT + 23 DIV - - MIN( DISTINCT + - ( - 12 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5862
SELECT + 23 / - - MIN ( DISTINCT + - ( - 12 ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL - MAX( ALL + + 65 ) + - 34 * 65 - + 63 AS col1
----
-2338

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL - MAX ( ALL + + 65 ) + - 34 * 65 - + 63 AS col1
----
-2338

query I rowsort
SELECT ALL - + 41 + - 46
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5865
SELECT 43 - CASE - 16 WHEN 98 * COUNT( * ) + CAST( + 76 AS SIGNED ) + ( + 26 ) * - + 44 * + 34 * 38 THEN 39 * + + CAST( - + 68 AS SIGNED ) WHEN + + COUNT( * ) / - 92 - + 62 THEN SUM( DISTINCT - - 88 ) ELSE CAST( + 7 AS SIGNED ) END * COUNT( * ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-5865
SELECT 43 - CASE - 16 WHEN 98 * COUNT ( * ) + CAST ( + 76 AS INTEGER ) + ( + 26 ) * - + 44 * + 34 * 38 THEN 39 * + + CAST ( - + 68 AS INTEGER ) WHEN + + COUNT ( * ) / - 92 - + 62 THEN SUM ( DISTINCT - - 88 ) ELSE CAST ( + 7 AS INTEGER ) END * COUNT ( * ) AS col2
----
36

query I rowsort
SELECT 45 + - 13 AS col1
----
32

query I rowsort
SELECT ALL 29 + - ( - - 72 )
----
-43

query II rowsort
SELECT 34 + 75, + 84 * + 45 AS col0
----
109
3780

query I rowsort
SELECT ALL 72 * + ( - 13 ) col0
----
-936

query I rowsort
SELECT NULLIF ( - - 61, 93 ) + + 87 * 9 col1
----
844

query I rowsort
SELECT DISTINCT 7 * 67 * 35 AS col1
----
16415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5872
SELECT 53 + - - CAST( NULL AS SIGNED ), - 53 AS col0
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-5872
SELECT 53 + - - CAST ( NULL AS INTEGER ), - 53 AS col0
----
NULL
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT ALL COUNT( * ) + - 12 * + - 3 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL COUNT ( * ) + - 12 * + - 3 AS col1
----
37

query I rowsort
SELECT DISTINCT 71 * 99 col0
----
7029

query I rowsort
SELECT + 57 AS col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5876
SELECT CASE + NULLIF ( + 16, + 31 * 91 + - 95 + 91 * - ( COUNT( * ) ) ) WHEN ( 41 ) THEN + 32 END / + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5876
SELECT CASE + NULLIF ( + 16, + 31 * 91 + - 95 + 91 * - ( COUNT ( * ) ) ) WHEN ( 41 ) THEN + 32 END / + 17 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5877
SELECT ALL 59 / + MAX( 52 ) * - CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL 59 / + MAX ( 52 ) * - CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL - 55 AS col2
----
-55

query I rowsort
SELECT DISTINCT - 26 AS col0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-5880
SELECT 71 - - 45 DIV 59 DIV + 47 col2
----
71

skipif mysql # not compatible
query I rowsort label-5880
SELECT 71 - - 45 / 59 / + 47 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + CASE - 3 WHEN - 56 - + MAX( ALL 29 ) THEN + 59 END * + 69 / SUM( + 60 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT + CASE - 3 WHEN - 56 - + MAX ( ALL 29 ) THEN + 59 END * + 69 / SUM ( + 60 ) AS col1
----
NULL

query I rowsort
SELECT ALL - 30 AS col0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT DISTINCT - + MIN( - + 97 )
----
97

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - + MIN ( - + 97 )
----
97

query I rowsort
SELECT ALL - + 83
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5885
SELECT NULLIF ( - + 35, COUNT( * ) ) * + + 52 + - CAST( NULL AS SIGNED ) + + 85 * - - NULLIF ( + 67, + - 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT NULLIF ( - + 35, COUNT ( * ) ) * + + 52 + - CAST ( NULL AS INTEGER ) + + 85 * - - NULLIF ( + 67, + - 84 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT 38 * - 35 + + + COUNT( * ) - - - 87 + 85 + + MIN( + ( - - 76 ) ) col0
----
-1255

skipif mysql # not compatible
query I rowsort label-5886
SELECT 38 * - 35 + + + COUNT ( * ) - - - 87 + 85 + + MIN ( + ( - - 76 ) ) col0
----
-1255

query I rowsort
SELECT ALL - + ( + - 50 )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5888
SELECT ALL + 83 + - NULLIF ( - CAST( - 15 AS SIGNED ), COUNT( * ) * + COALESCE ( - + 20, - - ( 17 ) / - 8 + 90 * + COUNT( * ) + SUM( 64 ) + + + 33 + + + 21 ) )
----
68

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + 83 + - NULLIF ( - CAST ( - 15 AS INTEGER ), COUNT ( * ) * + COALESCE ( - + 20, - - ( 17 ) / - 8 + 90 * + COUNT ( * ) + SUM ( 64 ) + + + 33 + + + 21 ) )
----
68

query I rowsort
SELECT DISTINCT + 63 AS col0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - - 84 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - - 84 AS col1
----
NULL

query I rowsort
SELECT - 78 AS col2
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5892
SELECT COALESCE ( - - 67, + 11, + + CAST( NULL AS SIGNED ) ) col0
----
67

skipif mysql # not compatible
query I rowsort label-5892
SELECT COALESCE ( - - 67, + 11, + + CAST ( NULL AS INTEGER ) ) col0
----
67

query I rowsort
SELECT ALL - 48 + - ( - + 42 ) AS col1
----
-6

query I rowsort
SELECT - + 45 AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT - - MIN( - - 52 )
----
52

skipif mysql # not compatible
query I rowsort label-5895
SELECT - - MIN ( - - 52 )
----
52

query I rowsort
SELECT - 57 + + + 87 AS col2
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT + CAST( + 36 AS SIGNED ) * 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5897
SELECT + CAST ( + 36 AS INTEGER ) * 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT + SUM( DISTINCT - 41 ) * + NULLIF ( + 3, + - 16 / + 98 ) + + 57 AS col2
----
-66

skipif mysql # not compatible
query I rowsort label-5898
SELECT + SUM ( DISTINCT - 41 ) * + NULLIF ( + 3, + - 16 / + 98 ) + + 57 AS col2
----
-66

query I rowsort
SELECT ALL + 57 * - 15 * - + 53 AS col2
----
45315

query I rowsort
SELECT ALL - 69 * - - ( + 12 )
----
-828

query I rowsort
SELECT 44 * 37
----
1628

onlyif mysql # aggregate syntax: 
query III rowsort label-5902
SELECT - 86 AS col2, + CASE - + 71 WHEN + + 35 * - + 72 + 0 - - - 49 + + + 12 * - 44 * - COUNT( * ) THEN NULL WHEN + 56 / COUNT( * ) THEN - 5 + 16 END AS col0, 32 AS col2
----
-86
NULL
32

skipif mysql # not compatible
query III rowsort label-5902
SELECT - 86 AS col2, + CASE - + 71 WHEN + + 35 * - + 72 + 0 - - - 49 + + + 12 * - 44 * - COUNT ( * ) THEN NULL WHEN + 56 / COUNT ( * ) THEN - 5 + 16 END AS col0, 32 AS col2
----
-86
NULL
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5903
SELECT ALL 25 + - NULLIF ( + CAST( 91 AS SIGNED ), - - 38 ) + + 87 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-5903
SELECT ALL 25 + - NULLIF ( + CAST ( 91 AS INTEGER ), - - 38 ) + + 87 AS col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT MAX( ALL + 80 ) * + - ( - - 47 ) AS col2
----
-3760

skipif mysql # not compatible
query I rowsort label-5904
SELECT MAX ( ALL + 80 ) * + - ( - - 47 ) AS col2
----
-3760

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL + COUNT( * ) * - 8 AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL + COUNT ( * ) * - 8 AS col1
----
-8

query I rowsort
SELECT DISTINCT - 51 - - 76 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT + 1 + + COUNT( - 83 )
----
2

skipif mysql # not compatible
query I rowsort label-5907
SELECT + 1 + + COUNT ( - 83 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT - COUNT( DISTINCT 79 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5908
SELECT - COUNT ( DISTINCT 79 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - COUNT( DISTINCT - 18 ) * - + 85 col0
----
85

skipif mysql # not compatible
query I rowsort label-5909
SELECT - COUNT ( DISTINCT - 18 ) * - + 85 col0
----
85

query I rowsort
SELECT - 47 - 79 AS col2
----
-126

query II rowsort
SELECT ALL + 39 col1, - 58 AS col1
----
39
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT + 76 * - - 52 - 22 DIV - 38 AS col2
----
3952

skipif mysql # not compatible
query I rowsort label-5912
SELECT + 76 * - - 52 - 22 / - 38 AS col2
----
3952

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + COALESCE ( 35, 6 ) * - SUM( ALL - 88 ) AS col2
----
3080

skipif mysql # not compatible
query I rowsort label-5913
SELECT + COALESCE ( 35, 6 ) * - SUM ( ALL - 88 ) AS col2
----
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT DISTINCT COUNT( - 89 ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-5914
SELECT DISTINCT COUNT ( - 89 ) * + COUNT ( * )
----
1

query I rowsort
SELECT DISTINCT + 16 * + + 54 * - 7 AS col1
----
-6048

onlyif mysql # DIV for integer division: 
query II rowsort label-5916
SELECT + 93 DIV 25 * - 70 col1, 98 * + 53 AS col1
----
-210
5194

skipif mysql # not compatible
query II rowsort label-5916
SELECT + 93 / 25 * - 70 col1, 98 * + 53 AS col1
----
-210
5194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5917
SELECT - 63 DIV + 26 + COUNT( * ) + + COUNT( * ) * + 62 col0
----
61

skipif mysql # not compatible
query I rowsort label-5917
SELECT - 63 / + 26 + COUNT ( * ) + + COUNT ( * ) * + 62 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT COUNT( * ) * + 97
----
97

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT COUNT ( * ) * + 97
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT + + CASE + MAX( ALL 5 ) WHEN - ( + 87 ) + + - 1 THEN - 47 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5919
SELECT + + CASE + MAX ( ALL 5 ) WHEN - ( + 87 ) + + - 1 THEN - 47 ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT ALL + + COUNT( ALL ( + 2 ) )
----
1

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL + + COUNT ( ALL ( + 2 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT + + 84 DIV 20 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5921
SELECT + + 84 / 20 AS col0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5922
SELECT + + COALESCE ( 65, CASE + - 95 WHEN - 54 THEN - ( + + 32 ) WHEN 67 + COUNT( * ) THEN + 29 WHEN 46 THEN NULL END + - 74 ) + CASE + COUNT( * ) WHEN + + 17 THEN NULL ELSE - COUNT( * ) END, ( + 54 ) DIV + 39 + + 56 - - 50 * - - 95 + - - 3 AS col0
----
64
4810

skipif mysql # not compatible
query II rowsort label-5922
SELECT + + COALESCE ( 65, CASE + - 95 WHEN - 54 THEN - ( + + 32 ) WHEN 67 + COUNT ( * ) THEN + 29 WHEN 46 THEN NULL END + - 74 ) + CASE + COUNT ( * ) WHEN + + 17 THEN NULL ELSE - COUNT ( * ) END, ( + 54 ) / + 39 + + 56 - - 50 * - - 95 + - - 3 AS col0
----
64
4810

query I rowsort
SELECT ALL + + 95
----
95

query I rowsort
SELECT DISTINCT - - 44 * + 0 * + 53 + + 95 + 81
----
176

query I rowsort
SELECT ALL - 91 * - + 33 + - 10 * + - 39
----
3393

query I rowsort
SELECT ALL + - 22 AS col0
----
-22

query I rowsort
SELECT ALL 53 * + 75 + + - 32 AS col0
----
3943

query I rowsort
SELECT + + 80
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5929
SELECT ALL - + 59 * - - 66 * + 90 + + CAST( + - COUNT( * ) AS SIGNED ) + 44
----
-350417

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - + 59 * - - 66 * + 90 + + CAST ( + - COUNT ( * ) AS INTEGER ) + 44
----
-350417

query I rowsort
SELECT + - 82 col2
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-5931
SELECT + + 71 - - 8 * + ( + - COUNT( * ) ) AS col1, 66
----
63
66

skipif mysql # not compatible
query II rowsort label-5931
SELECT + + 71 - - 8 * + ( + - COUNT ( * ) ) AS col1, 66
----
63
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - NULLIF ( + 81, - + 8 * + + 88 * + + SUM( ( + 63 ) ) )
----
-81

skipif mysql # not compatible
query I rowsort label-5932
SELECT - NULLIF ( + 81, - + 8 * + + 88 * + + SUM ( ( + 63 ) ) )
----
-81

query I rowsort
SELECT - - 72
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5934
SELECT CASE - - 16 WHEN + 35 * + + 6 THEN NULL WHEN CAST( NULL AS SIGNED ) THEN NULL ELSE SUM( ALL 1 ) DIV - 90 + ( 71 ) END * 97 DIV + ( ( 81 ) ) + - 74 - + 88 col1
----
-77

skipif mysql # not compatible
query I rowsort label-5934
SELECT CASE - - 16 WHEN + 35 * + + 6 THEN NULL WHEN CAST ( NULL AS INTEGER ) THEN NULL ELSE SUM ( ALL 1 ) / - 90 + ( 71 ) END * 97 / + ( ( 81 ) ) + - 74 - + 88 col1
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5935
SELECT - ( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5935
SELECT - ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query II rowsort
SELECT DISTINCT 12 AS col2, 35 * + 43 * 80 * - 15 AS col1
----
12
-1806000

query I rowsort
SELECT - 84 col0
----
-84

query I rowsort
SELECT - ( 96 ) - + 41
----
-137

query I rowsort
SELECT ALL + 92 * - - 10
----
920

query I rowsort
SELECT + 78 + - 88 + + 83
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5941
SELECT + CASE - 78 WHEN + - 29 + 43 THEN + + 86 - + 87 * + COUNT( * ) + - 15 / CAST( - COUNT( ALL - + 58 ) AS SIGNED ) END + - 89 + + - COUNT( * ) * + 12 * + - 75 * + - CAST( NULL AS SIGNED ) + - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-5941
SELECT + CASE - 78 WHEN + - 29 + 43 THEN + + 86 - + 87 * + COUNT ( * ) + - 15 / CAST ( - COUNT ( ALL - + 58 ) AS INTEGER ) END + - 89 + + - COUNT ( * ) * + 12 * + - 75 * + - CAST ( NULL AS INTEGER ) + - 29
----
NULL

query I rowsort
SELECT 32 col1
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT - ( + - 46 ) DIV 59 * - - 46 * COUNT( * ) * ( + 17 )
----
0

skipif mysql # not compatible
query I rowsort label-5943
SELECT - ( + - 46 ) / 59 * - - 46 * COUNT ( * ) * ( + 17 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5944
SELECT ALL - 92 * + 44, CAST( NULL AS DECIMAL ) col2
----
-4048
NULL

skipif mysql # not compatible
query II rowsort label-5944
SELECT ALL - 92 * + 44, CAST ( NULL AS REAL ) col2
----
-4048
NULL

query I rowsort
SELECT 45 AS col1
----
45

query I rowsort
SELECT - 56 col1
----
-56

query I rowsort
SELECT - 24 + - NULLIF ( + 0, + 97 * 86 + 8 * + 75 ) AS col1
----
-24

query I rowsort
SELECT ALL - 2 * + 77 * - - 83
----
-12782

query I rowsort
SELECT - ( 73 ) * - 84
----
6132

query I rowsort
SELECT ALL + 30 * - + 98 * + 96 col1
----
-282240

query I rowsort
SELECT ALL NULLIF ( + 85, - 40 )
----
85

query I rowsort
SELECT DISTINCT + 45
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT - ( NULLIF ( 6, 77 ) ) * + + ( - ( + 6 ) ) * + 63 + 28 + - COUNT( * )
----
2295

skipif mysql # not compatible
query I rowsort label-5953
SELECT - ( NULLIF ( 6, 77 ) ) * + + ( - ( + 6 ) ) * + 63 + 28 + - COUNT ( * )
----
2295

onlyif mysql # aggregate syntax: 
query II rowsort label-5954
SELECT + 87 * + COUNT( * ) AS col2, 4 AS col0
----
87
4

skipif mysql # not compatible
query II rowsort label-5954
SELECT + 87 * + COUNT ( * ) AS col2, 4 AS col0
----
87
4

query I rowsort
SELECT DISTINCT + - 61 AS col2
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-5956
SELECT ALL + - 32 DIV - + 71 * - + 21 + - + 17
----
-17

skipif mysql # not compatible
query I rowsort label-5956
SELECT ALL + - 32 / - + 71 * - + 21 + - + 17
----
-17

query I rowsort
SELECT - 35 + - + 47 AS col1
----
-82

query I rowsort
SELECT 8 AS col1
----
8

query I rowsort
SELECT DISTINCT + + 27
----
27

query I rowsort
SELECT 45 col2
----
45

query I rowsort
SELECT + - 18 AS col1
----
-18

query I rowsort
SELECT ALL + + 29 AS col0
----
29

query I rowsort
SELECT ALL + 23 * 8 * + 61 AS col0
----
11224

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT 12 * COUNT( * ) * + 63 * 94 * - - COUNT( * ) + COUNT( * ) * - 13 + + COALESCE ( - 50, + - 27 ) + + 20
----
71021

skipif mysql # not compatible
query I rowsort label-5964
SELECT 12 * COUNT ( * ) * + 63 * 94 * - - COUNT ( * ) + COUNT ( * ) * - 13 + + COALESCE ( - 50, + - 27 ) + + 20
----
71021

query I rowsort
SELECT DISTINCT + 69 col0
----
69

query I rowsort
SELECT ALL + - ( - 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT + 65 + + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-5967
SELECT + 65 + + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT + - 79 * + + 40 - ( + - 68 )
----
-3092

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT ( - 72 ) * - COUNT( * ) + - + 59 + - 53
----
-40

skipif mysql # not compatible
query I rowsort label-5969
SELECT ( - 72 ) * - COUNT ( * ) + - + 59 + - 53
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT ALL - 14 * - + 15 * + 96 - - - ( + COALESCE ( + 74, - CASE + 92 WHEN - 30 THEN NULL ELSE + + ( ( 23 ) ) * + 13 DIV - - 95 END ) )
----
20086

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - 14 * - + 15 * + 96 - - - ( + COALESCE ( + 74, - CASE + 92 WHEN - 30 THEN NULL ELSE + + ( ( 23 ) ) * + 13 / - - 95 END ) )
----
20086

query I rowsort
SELECT DISTINCT + ( 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5972
SELECT DISTINCT 36 * 67 + - + ( + + CAST( NULL AS SIGNED ) ) + + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT 36 * 67 + - + ( + + CAST ( NULL AS INTEGER ) ) + + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5973
SELECT + 5 * - COUNT( * ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 5 * - COUNT ( * ) col2
----
-5

query I rowsort
SELECT + 8 + + 12 AS col2
----
20

query I rowsort
SELECT 88 + + 9 + 18 - - - 90
----
25

query I rowsort
SELECT - 43 col0
----
-43

query II rowsort
SELECT DISTINCT 44, - 19 AS col1
----
44
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT ALL COUNT( * ) * + 3
----
3

skipif mysql # not compatible
query I rowsort label-5978
SELECT ALL COUNT ( * ) * + 3
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5979
SELECT - 51 AS col0, + 34 + NULLIF ( - + 11, + 76 * - COALESCE ( + + 18, - - 15, - - CAST( - SUM( DISTINCT - - 37 ) AS SIGNED ) + - + COUNT( * ) + + - NULLIF ( + + 37, - 84 ), + - 17 ) + - ( + + 60 ) ) - + 67
----
-51
-44

skipif mysql # not compatible
query II rowsort label-5979
SELECT - 51 AS col0, + 34 + NULLIF ( - + 11, + 76 * - COALESCE ( + + 18, - - 15, - - CAST ( - SUM ( DISTINCT - - 37 ) AS INTEGER ) + - + COUNT ( * ) + + - NULLIF ( + + 37, - 84 ), + - 17 ) + - ( + + 60 ) ) - + 67
----
-51
-44

query I rowsort
SELECT DISTINCT 89 * 50
----
4450

query I rowsort
SELECT 88 * 91
----
8008

query I rowsort
SELECT DISTINCT 59 AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5983
SELECT ALL - 44 + + + 82 - - 98 + - + 45 + 80 * MIN( ALL 97 ) + - 73
----
7778

skipif mysql # not compatible
query I rowsort label-5983
SELECT ALL - 44 + + + 82 - - 98 + - + 45 + 80 * MIN ( ALL 97 ) + - 73
----
7778

query I rowsort
SELECT 3 - + 21 AS col1
----
-18

query I rowsort
SELECT - 16 col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-5986
SELECT + 33 DIV + - 98
----
0

skipif mysql # not compatible
query I rowsort label-5986
SELECT + 33 / + - 98
----
0

query I rowsort
SELECT ALL + + ( 38 ) * + NULLIF ( 12, + - 49 ) AS col1
----
456

query I rowsort
SELECT ALL + 76 + - 51 AS col2
----
25

query I rowsort
SELECT ALL - 18 + - 86
----
-104

query I rowsort
SELECT + ( + + 23 ) * 54 + + 3 + + 49
----
1294

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT DISTINCT - - COUNT( * ) + 28 AS col0
----
29

skipif mysql # not compatible
query I rowsort label-5991
SELECT DISTINCT - - COUNT ( * ) + 28 AS col0
----
29

query I rowsort
SELECT 17 * - - 3
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT ALL - CASE 13 WHEN + 83 * + - AVG ( ALL + 78 ) * 40 + - COUNT( * ) + 64 - 40 / + 52 THEN - COUNT( ALL 38 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5993
SELECT ALL - CASE 13 WHEN + 83 * + - AVG ( ALL + 78 ) * 40 + - COUNT ( * ) + 64 - 40 / + 52 THEN - COUNT ( ALL 38 ) END
----
NULL

query I rowsort
SELECT + + 20
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-5995
SELECT + + 9, + COUNT( DISTINCT 46 ) * + 92 AS col0
----
9
92

skipif mysql # not compatible
query II rowsort label-5995
SELECT + + 9, + COUNT ( DISTINCT 46 ) * + 92 AS col0
----
9
92

query I rowsort
SELECT ALL - 53 col1
----
-53

query I rowsort
SELECT + - 97
----
-97

query I rowsort
SELECT + 74 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT DISTINCT - - ( - - COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5999
SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT ALL - 69 - - 92 * 77 col0, COUNT( * ) * 65 AS col0
----
7015
65

skipif mysql # not compatible
query II rowsort label-6000
SELECT ALL - 69 - - 92 * 77 col0, COUNT ( * ) * 65 AS col0
----
7015
65

query I rowsort
SELECT ALL - 11 * - 78
----
858

query I rowsort
SELECT - COALESCE ( + 32, + 88 )
----
-32

query I rowsort
SELECT DISTINCT + - 27 - + 3 col1
----
-30

query I rowsort
SELECT + - ( - + 19 )
----
19

query I rowsort
SELECT ALL - - 68
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT 43 + - ( - 88 ) * 70 AS col2, + COUNT( * ) * COUNT( ALL 68 ) * CASE - 46 WHEN + 44 THEN COUNT( ALL - 37 ) + - 19 ELSE + - COUNT( * ) END * + 68 AS col2
----
6203
-68

skipif mysql # not compatible
query II rowsort label-6006
SELECT 43 + - ( - 88 ) * 70 AS col2, + COUNT ( * ) * COUNT ( ALL 68 ) * CASE - 46 WHEN + 44 THEN COUNT ( ALL - 37 ) + - 19 ELSE + - COUNT ( * ) END * + 68 AS col2
----
6203
-68

query I rowsort
SELECT + 29 AS col0
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6008
SELECT 50 DIV + - MAX( ALL 75 ) * + COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT 50 / + - MAX ( ALL 75 ) * + COUNT ( * ) AS col1
----
0

query II rowsort
SELECT DISTINCT 8 * + + 40 AS col1, 83 AS col0
----
320
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT SUM( + - 4 ) - 75 AS col2
----
-79

skipif mysql # not compatible
query I rowsort label-6010
SELECT SUM ( + - 4 ) - 75 AS col2
----
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT 76 col1, COUNT( * ) + - 49 AS col2
----
76
-48

skipif mysql # not compatible
query II rowsort label-6011
SELECT 76 col1, COUNT ( * ) + - 49 AS col2
----
76
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT MAX( - 16 ) * ( - - NULLIF ( - + MAX( 66 ), - COUNT( * ) * - COUNT( * ) * 71 ) ) AS col0
----
1056

skipif mysql # not compatible
query I rowsort label-6012
SELECT MAX ( - 16 ) * ( - - NULLIF ( - + MAX ( 66 ), - COUNT ( * ) * - COUNT ( * ) * 71 ) ) AS col0
----
1056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6013
SELECT COUNT( * ) * - - 73 + - 57 DIV 76 * 9
----
73

skipif mysql # not compatible
query I rowsort label-6013
SELECT COUNT ( * ) * - - 73 + - 57 / 76 * 9
----
73

query I rowsort
SELECT ( - - 29 ) * 40
----
1160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6015
SELECT DISTINCT MAX( + COALESCE ( + ( - 54 ), - CAST( - NULLIF ( - + CAST( NULL AS SIGNED ), - + 6 ) AS SIGNED ) ) )
----
-54

skipif mysql # not compatible
query I rowsort label-6015
SELECT DISTINCT MAX ( + COALESCE ( + ( - 54 ), - CAST ( - NULLIF ( - + CAST ( NULL AS INTEGER ), - + 6 ) AS INTEGER ) ) )
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6016
SELECT ALL 7 + - + SUM( + 1 ) * - 33 AS col0
----
40

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL 7 + - + SUM ( + 1 ) * - 33 AS col0
----
40

query I rowsort
SELECT 97 * - - 60
----
5820

query I rowsort
SELECT 74 * - 97 AS col2
----
-7178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6019
SELECT COALESCE ( - + 83, - - COUNT( * ) ) - - 40 / + 39 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6019
SELECT COALESCE ( - + 83, - - COUNT ( * ) ) - - 40 / + 39 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT 56 col0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT DISTINCT MAX( DISTINCT - 52 ) + 86 col0
----
34

skipif mysql # not compatible
query I rowsort label-6021
SELECT DISTINCT MAX ( DISTINCT - 52 ) + 86 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT 93 + COUNT( * )
----
94

skipif mysql # not compatible
query I rowsort label-6022
SELECT 93 + COUNT ( * )
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT ALL NULLIF ( + MAX( DISTINCT + 82 ), + + COUNT( * ) * 59 ) + - + 69 * 58 AS col2
----
-3920

skipif mysql # not compatible
query I rowsort label-6023
SELECT ALL NULLIF ( + MAX ( DISTINCT + 82 ), + + COUNT ( * ) * 59 ) + - + 69 * 58 AS col2
----
-3920

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6024
SELECT NULLIF ( 78, - CAST( NULL AS DECIMAL ) * + 49 * 82 * + 39 ) + - - 58 col0
----
136

skipif mysql # not compatible
query I rowsort label-6024
SELECT NULLIF ( 78, - CAST ( NULL AS REAL ) * + 49 * 82 * + 39 ) + - - 58 col0
----
136

query II rowsort
SELECT 8 AS col1, + 31 * - - 39
----
8
1209

query I rowsort
SELECT DISTINCT + 35 AS col1
----
35

query I rowsort
SELECT ALL + 47 + + + 66
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT DISTINCT COUNT( * ) * + 87 AS col0
----
87

skipif mysql # not compatible
query I rowsort label-6028
SELECT DISTINCT COUNT ( * ) * + 87 AS col0
----
87

query I rowsort
SELECT ALL 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6030
SELECT ALL - 67 + + 56 + + - 18 * 91 - ( + 52 ) AS col1, - CAST( + 53 AS SIGNED ) AS col2
----
-1701
-53

skipif mysql # not compatible
query II rowsort label-6030
SELECT ALL - 67 + + 56 + + - 18 * 91 - ( + 52 ) AS col1, - CAST ( + 53 AS INTEGER ) AS col2
----
-1701
-53

query I rowsort
SELECT - 58 + 31
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT + + SUM( - ( + - 88 ) ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6032
SELECT + + SUM ( - ( + - 88 ) ) AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT ALL - + SUM( + 50 )
----
-50

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - + SUM ( + 50 )
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6034
SELECT - - COUNT( * ) * 85 + + 59 + 82 + - SUM( 23 ) AS col2, 90 + - 39 + - + 69 * + 39 + + 17 + + 48 * 56
----
203
65

skipif mysql # not compatible
query II rowsort label-6034
SELECT - - COUNT ( * ) * 85 + + 59 + 82 + - SUM ( 23 ) AS col2, 90 + - 39 + - + 69 * + 39 + + 17 + + 48 * 56
----
203
65

query II rowsort
SELECT + 19 AS col2, - 34 * + ( + 73 ) AS col1
----
19
-2482

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - NULLIF ( + 55, COUNT( * ) * + 75 )
----
-55

skipif mysql # not compatible
query I rowsort label-6036
SELECT - NULLIF ( + 55, COUNT ( * ) * + 75 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT ALL + - SUM( + 77 ) * 44
----
-3388

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL + - SUM ( + 77 ) * 44
----
-3388

query I rowsort
SELECT 57 + - 98 AS col0
----
-41

query I rowsort
SELECT ALL 30 * + 19
----
570

query II rowsort
SELECT DISTINCT - + 35 AS col1, 49 col0
----
-35
49

query II rowsort
SELECT ALL - 91, 19 AS col2
----
-91
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - MIN( - - 39 ) + - 63 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-6042
SELECT - MIN ( - - 39 ) + - 63 AS col0
----
-102

query II rowsort
SELECT ALL + - 57 AS col0, 43 AS col2
----
-57
43

query I rowsort
SELECT + 27 * + - 17
----
-459

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6045
SELECT - ( + CAST( NULL AS SIGNED ) ) * + 26 + 15 * - - 91 - 82 col1, + 68
----
NULL
68

skipif mysql # not compatible
query II rowsort label-6045
SELECT - ( + CAST ( NULL AS INTEGER ) ) * + 26 + 15 * - - 91 - 82 col1, + 68
----
NULL
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6046
SELECT - 71 * 41 - 15 + + 99 + - 18 + ( + + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6046
SELECT - 71 * 41 - 15 + + 99 + - 18 + ( + + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

query II rowsort
SELECT - ( - 54 ) + + 23, 98 AS col1
----
77
98

query I rowsort
SELECT DISTINCT 54 + - NULLIF ( - - 72, - 0 )
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6049
SELECT ALL CASE 72 WHEN - + AVG ( - 20 ) THEN - + 86 - COUNT( * ) WHEN - NULLIF ( ( + 97 ), - 31 ) THEN MAX( - - 37 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6049
SELECT ALL CASE 72 WHEN - + AVG ( - 20 ) THEN - + 86 - COUNT ( * ) WHEN - NULLIF ( ( + 97 ), - 31 ) THEN MAX ( - - 37 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL MIN( + - 95 ) + CAST( + + 84 AS SIGNED )
----
-11

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL MIN ( + - 95 ) + CAST ( + + 84 AS INTEGER )
----
-11

query I rowsort
SELECT - 95 + 86
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6052
SELECT ALL + 71 * 36 * COUNT( * )
----
2556

skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + 71 * 36 * COUNT ( * )
----
2556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT ALL NULLIF ( - CAST( NULL AS SIGNED ), - AVG ( ALL - 37 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL NULLIF ( - CAST ( NULL AS INTEGER ), - AVG ( ALL - 37 ) ) AS col0
----
NULL

query I rowsort
SELECT - 3 col0
----
-3

query I rowsort
SELECT - 6 col1
----
-6

query I rowsort
SELECT 28 AS col0
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-6057
SELECT + 47 + 88 * 4 + 5 * + 90 * - 18 DIV - 9 col1, 8
----
1299
8

skipif mysql # not compatible
query II rowsort label-6057
SELECT + 47 + 88 * 4 + 5 * + 90 * - 18 / - 9 col1, 8
----
1299
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT ALL + COUNT( * ) + - 7 * + - CASE + - 81 WHEN + + 59 + + + 47 THEN + MAX( 17 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT ALL + COUNT ( * ) + - 7 * + - CASE + - 81 WHEN + + 59 + + + 47 THEN + MAX ( 17 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - ( - 76 ) * + COUNT( * ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-6059
SELECT - ( - 76 ) * + COUNT ( * ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT - CASE COUNT( * ) WHEN + 68 * + + 56 THEN NULL WHEN - ( + 91 ) * - SUM( - 38 ) + + - ( + 59 ) THEN - + 47 / - 2 WHEN + 27 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT - CASE COUNT ( * ) WHEN + 68 * + + 56 THEN NULL WHEN - ( + 91 ) * - SUM ( - 38 ) + + - ( + 59 ) THEN - + 47 / - 2 WHEN + 27 THEN NULL END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 99 + + 28
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT ALL + 44 + - 8 DIV - 38 AS col2
----
44

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL + 44 + - 8 / - 38 AS col2
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT ( - COUNT( * ) ) + + 49 + - 89 + - + 1 * - 76 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT ( - COUNT ( * ) ) + + 49 + - 89 + - + 1 * - 76 AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6064
SELECT DISTINCT + COUNT( * ) + ( CAST( NULL AS SIGNED ) ), 77 AS col1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-6064
SELECT DISTINCT + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ), 77 AS col1
----
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT ALL MAX( DISTINCT 58 ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL MAX ( DISTINCT 58 ) AS col2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL CAST( + 38 AS SIGNED ) - - - CASE - COALESCE ( - 39, + 60, - 74 ) WHEN + 31 THEN + 42 * - - 85 + - + 25 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL CAST ( + 38 AS INTEGER ) - - - CASE - COALESCE ( - 39, + 60, - 74 ) WHEN + 31 THEN + 42 * - - 85 + - + 25 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6067
SELECT ALL 12 DIV - 30 * - COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6067
SELECT ALL 12 / - 30 * - COUNT ( * ) col0
----
0

query I rowsort
SELECT - - 79 * + 80
----
6320

query II rowsort
SELECT + - 74 + - - 21, 77 AS col2
----
-53
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6070
SELECT - - CASE + CAST( - 35 AS DECIMAL ) WHEN + 87 THEN - + 75 WHEN - 12 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT - - CASE + CAST ( - 35 AS REAL ) WHEN + 87 THEN - + 75 WHEN - 12 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - - 34
----
34

query I rowsort
SELECT + + 55 - - - 73
----
-18

query I rowsort
SELECT ALL 1 * - 67
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6074
SELECT ALL CAST( NULL AS SIGNED ) * + + 78 AS col1, + 51
----
NULL
51

skipif mysql # not compatible
query II rowsort label-6074
SELECT ALL CAST ( NULL AS INTEGER ) * + + 78 AS col1, + 51
----
NULL
51

query I rowsort
SELECT DISTINCT + + 23
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-6076
SELECT ALL + MIN( - + 86 ) AS col1, 33 * + + 13 - - + 64 AS col1
----
-86
493

skipif mysql # not compatible
query II rowsort label-6076
SELECT ALL + MIN ( - + 86 ) AS col1, 33 * + + 13 - - + 64 AS col1
----
-86
493

query I rowsort
SELECT DISTINCT + - ( ( + 78 ) )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT + - 28 * COUNT( * ) AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-6078
SELECT + - 28 * COUNT ( * ) AS col1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6079
SELECT ALL + 17 DIV 52, - COALESCE ( - - 76, + + COUNT( * ), + - 57 + - 48 * - - 17 + + SUM( ALL - 55 ) ) AS col0
----
0
-76

skipif mysql # not compatible
query II rowsort label-6079
SELECT ALL + 17 / 52, - COALESCE ( - - 76, + + COUNT ( * ), + - 57 + - 48 * - - 17 + + SUM ( ALL - 55 ) ) AS col0
----
0
-76

query I rowsort
SELECT + - 82
----
-82

query I rowsort
SELECT + ( 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6082
SELECT 38 * CAST( - - 93 AS SIGNED ) + 62 AS col1, + 39 * + COUNT( * ) * - COUNT( * ) * - COALESCE ( - 61, - 7 + + 95 * + 5 * - + 98 ) * COUNT( * ) * + ( - + 29 ) + 99 * - 6
----
3596
68397

skipif mysql # not compatible
query II rowsort label-6082
SELECT 38 * CAST ( - - 93 AS INTEGER ) + 62 AS col1, + 39 * + COUNT ( * ) * - COUNT ( * ) * - COALESCE ( - 61, - 7 + + 95 * + 5 * - + 98 ) * COUNT ( * ) * + ( - + 29 ) + 99 * - 6
----
3596
68397

query I rowsort
SELECT DISTINCT + 40 AS col1
----
40

query I rowsort
SELECT + ( + 72 ) * 39 AS col2
----
2808

query I rowsort
SELECT DISTINCT + 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT - COUNT( * ) * + 13
----
-13

skipif mysql # not compatible
query I rowsort label-6086
SELECT - COUNT ( * ) * + 13
----
-13

query II rowsort
SELECT + 90 col0, - 0 AS col1
----
90
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6088
SELECT ALL - 84 * + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - 84 * + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6089
SELECT + MIN( ALL + 36 ) + - ( + + SUM( ALL - CAST( NULL AS SIGNED ) ) ) * + + 69 - NULLIF ( - 48, - - 8 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6089
SELECT + MIN ( ALL + 36 ) + - ( + + SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) * + + 69 - NULLIF ( - 48, - - 8 ) AS col0
----
NULL

query I rowsort
SELECT - 71 * 66
----
-4686

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6091
SELECT - 59 - - COUNT( * ) DIV - NULLIF ( 58, 91 )
----
-59

skipif mysql # not compatible
query I rowsort label-6091
SELECT - 59 - - COUNT ( * ) / - NULLIF ( 58, 91 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT - MAX( + - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6092
SELECT - MAX ( + - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT - 5 * - ( - ( + + COUNT( * ) ) ) + - 67 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6093
SELECT - 5 * - ( - ( + + COUNT ( * ) ) ) + - 67 AS col0
----
-72

query I rowsort
SELECT - 41 * - + 23 AS col1
----
943

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6095
SELECT ALL CAST( 98 AS SIGNED ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-6095
SELECT ALL CAST ( 98 AS INTEGER ) AS col1
----
98

query I rowsort
SELECT - 5 * + - 53
----
265

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL ( - COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL ( - COUNT ( * ) )
----
-1

query I rowsort
SELECT ALL ( 78 ) AS col0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT - 81 - + MIN( - 27 )
----
-54

skipif mysql # not compatible
query I rowsort label-6099
SELECT - 81 - + MIN ( - 27 )
----
-54

query I rowsort
SELECT - - ( - + 39 )
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT - + ( - + 44 ) + + 80 + - COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-6101
SELECT - + ( - + 44 ) + + 80 + - COUNT ( * )
----
123

query I rowsort
SELECT - - 45 + 63
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT - - 34 * + + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-6103
SELECT - - 34 * + + COUNT ( * )
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6104
SELECT + COUNT( * ) * ( - - CAST( NULL AS SIGNED ) ) / - - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT + COUNT ( * ) * ( - - CAST ( NULL AS INTEGER ) ) / - - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT - + ( + 77 ) + + - COUNT( * )
----
-78

skipif mysql # not compatible
query I rowsort label-6105
SELECT - + ( + 77 ) + + - COUNT ( * )
----
-78

query II rowsort
SELECT + 92, 69 * - 48 - 11 col1
----
92
-3323

onlyif mysql # DIV for integer division: 
query I rowsort label-6107
SELECT - 6 + 43 DIV 10 + + 35 + + - 12 + - 37 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-6107
SELECT - 6 + 43 / 10 + + 35 + + - 12 + - 37 AS col1
----
-16

query I rowsort
SELECT DISTINCT + 23 AS col2
----
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6109
SELECT DISTINCT 37 col1, 14 + + NULLIF ( + 31, + + 25 / + + COALESCE ( + - CAST( NULL AS DECIMAL ), 24 ) ) - 64 - - NULLIF ( - 62, - - COUNT( * ) ) * - - NULLIF ( - 20, + 72 * - 51 / 89 )
----
37
1221

skipif mysql # not compatible
query II rowsort label-6109
SELECT DISTINCT 37 col1, 14 + + NULLIF ( + 31, + + 25 / + + COALESCE ( + - CAST ( NULL AS REAL ), 24 ) ) - 64 - - NULLIF ( - 62, - - COUNT ( * ) ) * - - NULLIF ( - 20, + 72 * - 51 / 89 )
----
37
1221

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6110
SELECT COUNT( * ) DIV 44 DIV - MIN( - - 80 )
----
0

skipif mysql # not compatible
query I rowsort label-6110
SELECT COUNT ( * ) / 44 / - MIN ( - - 80 )
----
0

query I rowsort
SELECT ALL + CASE 35 WHEN 84 THEN COALESCE ( AVG ( ALL - ( + 66 ) ), + AVG ( ALL - 87 ) ) ELSE + + 88 END
----
88

query I rowsort
SELECT + 56 + + 2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6113
SELECT + 95 * - COUNT( * ) * - 37 - - ( + 27 ) col1
----
3542

skipif mysql # not compatible
query I rowsort label-6113
SELECT + 95 * - COUNT ( * ) * - 37 - - ( + 27 ) col1
----
3542

query I rowsort
SELECT + - COALESCE ( + - 40, - 33, - 38 * + 95 )
----
40

query I rowsort
SELECT 51 + + - 9
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT + COALESCE ( - - NULLIF ( - 28, - 61 * 86 + - - COUNT( * ) ), ( - + 37 ) * 53, + 89 )
----
-28

skipif mysql # not compatible
query I rowsort label-6116
SELECT + COALESCE ( - - NULLIF ( - 28, - 61 * 86 + - - COUNT ( * ) ), ( - + 37 ) * 53, + 89 )
----
-28

query I rowsort
SELECT 10 * + + 47 AS col2
----
470

query I rowsort
SELECT 91 * + 28 + + 96
----
2644

query I rowsort
SELECT ALL 90 + - 86 AS col1
----
4

query I rowsort
SELECT DISTINCT 25 * + + 53 * - - 29
----
38425

onlyif mysql # aggregate syntax: 
query I rowsort label-6121
SELECT DISTINCT 19 + - 93 + CASE + COUNT( * ) WHEN - 85 THEN CASE + 29 WHEN + 39 THEN NULL WHEN + COUNT( * ) THEN - 87 END * - ( - 97 ) WHEN - 75 THEN + 42 WHEN - COUNT( * ) * - + 41 + - 38 * + 80 THEN + 18 ELSE NULL END * + 90 + - 30 * 80 / + 97 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6121
SELECT DISTINCT 19 + - 93 + CASE + COUNT ( * ) WHEN - 85 THEN CASE + 29 WHEN + 39 THEN NULL WHEN + COUNT ( * ) THEN - 87 END * - ( - 97 ) WHEN - 75 THEN + 42 WHEN - COUNT ( * ) * - + 41 + - 38 * + 80 THEN + 18 ELSE NULL END * + 90 + - 30 * 80 / + 97 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT 16 * CAST( NULL AS SIGNED ) + - + 42 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT 16 * CAST ( NULL AS INTEGER ) + - + 42 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT 3 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT 3 / + 69
----
0

query II rowsort
SELECT ALL 41 + 13, - 4 AS col0
----
54
-4

query I rowsort
SELECT DISTINCT - 54
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL - 81 - 20 * + + 92 + + - 90 + - - 32 * 41 * + COUNT( * )
----
-699

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL - 81 - 20 * + + 92 + + - 90 + - - 32 * 41 * + COUNT ( * )
----
-699

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT 44 * + - 7 + - COUNT( * )
----
-309

skipif mysql # not compatible
query I rowsort label-6127
SELECT 44 * + - 7 + - COUNT ( * )
----
-309

query II rowsort
SELECT ALL 11 * 74 * ( - 65 ) AS col0, 71 AS col2
----
-52910
71

query II rowsort
SELECT DISTINCT 29 * - - 64, 1 * - 6 * 11 + - 39 * - 68 AS col0
----
1856
2586

query I rowsort
SELECT DISTINCT + 36 * - 49 AS col1
----
-1764

query I rowsort
SELECT ALL - CASE + 7 WHEN - 64 + + 29 THEN - - 2 + - 92 + - 26 + + - 53 ELSE - - 53 END - 89
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6132
SELECT 84 * + COUNT( ALL + ( - 1 ) ) col0
----
84

skipif mysql # not compatible
query I rowsort label-6132
SELECT 84 * + COUNT ( ALL + ( - 1 ) ) col0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL MAX( ALL 68 ) col2
----
68

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL MAX ( ALL 68 ) col2
----
68

query I rowsort
SELECT DISTINCT + 89
----
89

query I rowsort
SELECT - + 33
----
-33

query I rowsort
SELECT DISTINCT + 91 col0
----
91

query I rowsort
SELECT DISTINCT 65 AS col0
----
65

query I rowsort
SELECT 86 + - 38 + + 30
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6139
SELECT DISTINCT - 50 + - MIN( + + 88 ) AS col2
----
-138

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - 50 + - MIN ( + + 88 ) AS col2
----
-138

query I rowsort
SELECT - + 89 col0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6141
SELECT ALL - 1 + + 38 * + + ( 65 ) + + + 48 + - 23 * + + 55 AS col2, + MIN( 4 )
----
1252
4

skipif mysql # not compatible
query II rowsort label-6141
SELECT ALL - 1 + + 38 * + + ( 65 ) + + + 48 + - 23 * + + 55 AS col2, + MIN ( 4 )
----
1252
4

query I rowsort
SELECT 66 * - 39 + 67
----
-2507

query I rowsort
SELECT DISTINCT - 90 + - 22
----
-112

query I rowsort
SELECT DISTINCT - 86
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT 31 DIV 32 DIV + - 23 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT 31 / 32 / + - 23 AS col2
----
0

query I rowsort
SELECT + 34 col0
----
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6147
SELECT 13 DIV - 43 * - + 8 col2
----
0

skipif mysql # not compatible
query I rowsort label-6147
SELECT 13 / - 43 * - + 8 col2
----
0

query I rowsort
SELECT DISTINCT 95 * - 50 AS col1
----
-4750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT SUM( - 87 ) * + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT SUM ( - 87 ) * + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT ( + 98 ) * - 71 + + + ( + COALESCE ( - 13, - - 14 ) )
----
-6971

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6151
SELECT ALL - 12 - 96 + + COUNT( * ) DIV + - 93 AS col1
----
-108

skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL - 12 - 96 + + COUNT ( * ) / + - 93 AS col1
----
-108

query I rowsort
SELECT ALL 24 - + + 72
----
-48

query I rowsort
SELECT ALL - 58 col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT COUNT( * ) - - 34
----
35

skipif mysql # not compatible
query I rowsort label-6154
SELECT COUNT ( * ) - - 34
----
35

query I rowsort
SELECT ALL 70 * - 1 AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT 9 * + + SUM( ALL - 70 ) AS col0
----
-630

skipif mysql # not compatible
query I rowsort label-6156
SELECT 9 * + + SUM ( ALL - 70 ) AS col0
----
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT COUNT( * ) + CASE 97 WHEN - 57 THEN NULL WHEN - - 95 + + ( + 57 ) THEN - 24 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT COUNT ( * ) + CASE 97 WHEN - 57 THEN NULL WHEN - - 95 + + ( + 57 ) THEN - 24 END
----
NULL

query I rowsort
SELECT ALL - 83 AS col0
----
-83

query I rowsort
SELECT 58 AS col0
----
58

query I rowsort
SELECT DISTINCT - 89 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6161
SELECT 50 * + - MIN( + COALESCE ( - 96, + - 44 DIV - - 75, - 49, 61 + COALESCE ( - + 64, ( - 60 ), - 42 ) + + 31 + - + CAST( - ( + 56 ) AS SIGNED ) * - 58 ) ) + + ( - + 79 ), COUNT( * ) col2
----
4721
1

skipif mysql # not compatible
query II rowsort label-6161
SELECT 50 * + - MIN ( + COALESCE ( - 96, + - 44 / - - 75, - 49, 61 + COALESCE ( - + 64, ( - 60 ), - 42 ) + + 31 + - + CAST ( - ( + 56 ) AS INTEGER ) * - 58 ) ) + + ( - + 79 ), COUNT ( * ) col2
----
4721
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6162
SELECT 63 DIV - 32
----
-1

skipif mysql # not compatible
query I rowsort label-6162
SELECT 63 / - 32
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL COUNT( - + 79 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL COUNT ( - + 79 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ( + COUNT( * ) ) + 65
----
66

skipif mysql # not compatible
query I rowsort label-6164
SELECT ( + COUNT ( * ) ) + 65
----
66

query I rowsort
SELECT ALL - 56 * - 34
----
1904

onlyif mysql # DIV for integer division: 
query I rowsort label-6166
SELECT 32 DIV + ( + 65 )
----
0

skipif mysql # not compatible
query I rowsort label-6166
SELECT 32 / + ( + 65 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6167
SELECT ALL MIN( ALL - 21 ) DIV 88 col0
----
0

skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL MIN ( ALL - 21 ) / 88 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT ALL + ( - COUNT( * ) ) + + + 84 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + ( - COUNT ( * ) ) + + + 84 AS col0
----
83

query I rowsort
SELECT + 77 AS col0
----
77

query II rowsort
SELECT ALL 99 AS col2, 67 AS col2
----
99
67

query II rowsort
SELECT + 55 + - ( - - 88 ) AS col0, 96 AS col2
----
-33
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6172
SELECT - 24 + - 38 - + 67 + - 49 * - COUNT( * ) DIV + + COUNT( * ) + COUNT( * ) - + 51 AS col0, COUNT( ALL + - 44 ) * CASE - 22 WHEN + 85 * + - 85 THEN COUNT( * ) WHEN + 63 * - 96 + - 3 THEN COUNT( * ) + + COUNT( * ) END DIV 7 * + 19 AS col2
----
-130
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT - 24 + - 38 - + 67 + - 49 * - COUNT ( * ) / + + COUNT ( * ) + COUNT ( * ) - + 51 AS col0, COUNT ( ALL + - 44 ) * CASE - 22 WHEN + 85 * + - 85 THEN COUNT ( * ) WHEN + 63 * - 96 + - 3 THEN COUNT ( * ) + + COUNT ( * ) END / 7 * + 19 AS col2
----
-130
NULL

query I rowsort
SELECT ALL 94 * - + 53 AS col2
----
-4982

query I rowsort
SELECT - NULLIF ( - 30, + + AVG ( - 38 ) ) + - 54 col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL 8 + - COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL 8 + - COUNT ( * ) AS col1
----
7

query II rowsort
SELECT + 99 AS col0, - 27 AS col0
----
99
-27

query I rowsort
SELECT - - 1
----
1

query I rowsort
SELECT ALL - 5 + + 36 AS col2
----
31

query I rowsort
SELECT + + 41 + - - 28 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6180
SELECT - MIN( ALL + - 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-6180
SELECT - MIN ( ALL + - 78 ) AS col2
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6181
SELECT DISTINCT CAST( - SUM( + 84 ) AS SIGNED ) + + 28 * - SUM( 48 ) / - + 1 / + 2 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT CAST ( - SUM ( + 84 ) AS INTEGER ) + + 28 * - SUM ( 48 ) / - + 1 / + 2 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6182
SELECT ALL ( + + MAX( CAST( NULL AS SIGNED ) ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6182
SELECT ALL ( + + MAX ( CAST ( NULL AS INTEGER ) ) ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 9 AS col1
----
-9

query I rowsort
SELECT - + 91 + - - 24 - + + 28 AS col1
----
-95

query I rowsort
SELECT ALL + ( + + 19 )
----
19

query I rowsort
SELECT ALL 95 col0
----
95

query I rowsort
SELECT + 34 AS col1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL - + CAST( NULL AS SIGNED ) * - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT - 50 * - COUNT( * ) col1
----
50

skipif mysql # not compatible
query I rowsort label-6189
SELECT - 50 * - COUNT ( * ) col1
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6190
SELECT ALL MIN( DISTINCT - CASE WHEN NOT + CAST( - + 92 AS SIGNED ) IS NULL THEN - 16 END )
----
16

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL MIN ( DISTINCT - CASE WHEN NOT + CAST ( - + 92 AS INTEGER ) IS NULL THEN - 16 END )
----
16

query I rowsort
SELECT 98 col1
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT ALL - 46 * + 75 * + 99 * + 83 + + COUNT( * ) * 33 AS col2, 88 * - + 95 col0
----
-28348617
-8360

skipif mysql # not compatible
query II rowsort label-6192
SELECT ALL - 46 * + 75 * + 99 * + 83 + + COUNT ( * ) * 33 AS col2, 88 * - + 95 col0
----
-28348617
-8360

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL - COUNT( * ) * + 48 AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL - COUNT ( * ) * + 48 AS col0
----
-48

query I rowsort
SELECT ( - - 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT ALL + CAST( + 42 AS SIGNED ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + CAST ( + 42 AS INTEGER ) AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT - 87 * - 6 + 53 + + COUNT( * ) * + 53 AS col0
----
628

skipif mysql # not compatible
query I rowsort label-6196
SELECT - 87 * - 6 + 53 + + COUNT ( * ) * + 53 AS col0
----
628

query I rowsort
SELECT ALL - 13 * + 36 - 68 * - 57 * - 38
----
-147756

query II rowsort
SELECT ALL + 87 AS col0, 78 col2
----
87
78

onlyif mysql # DIV for integer division: 
query II rowsort label-6199
SELECT COALESCE ( 11, 27, + + 49 + + COALESCE ( - ( - - 20 ), + 30 ) * + 86 * - 67 DIV 47 ) AS col0, 89 * - 79 * + - 96 * + 46 + - 46 + - - 35
----
11
31048885

skipif mysql # not compatible
query II rowsort label-6199
SELECT COALESCE ( 11, 27, + + 49 + + COALESCE ( - ( - - 20 ), + 30 ) * + 86 * - 67 / 47 ) AS col0, 89 * - 79 * + - 96 * + 46 + - 46 + - - 35
----
11
31048885

query I rowsort
SELECT ALL + 58 AS col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT - 65 * 20 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT - 65 * 20 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 82 + 46 - + + ( - - 36 )
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT 54 * + 95 + - - 66 + - + MAX( 22 ) AS col2
----
5174

skipif mysql # not compatible
query I rowsort label-6203
SELECT 54 * + 95 + - - 66 + - + MAX ( 22 ) AS col2
----
5174

onlyif mysql # DIV for integer division: 
query I rowsort label-6204
SELECT - 29 DIV + 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6204
SELECT - 29 / + 55 AS col0
----
0

query I rowsort
SELECT COALESCE ( - - 88, + 79 + - 45 )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT + 11 * + COUNT( * ) AS col2
----
11

skipif mysql # not compatible
query I rowsort label-6206
SELECT + 11 * + COUNT ( * ) AS col2
----
11

onlyif mysql # DIV for integer division: 
query II rowsort label-6207
SELECT DISTINCT + 5 AS col0, 47 DIV ( + 24 ) AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-6207
SELECT DISTINCT + 5 AS col0, 47 / ( + 24 ) AS col1
----
5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT DISTINCT + ( - COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0
----
-1

query I rowsort
SELECT DISTINCT + 98
----
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6210
SELECT DISTINCT + 75 AS col0, + COUNT( * ) * + + 55 - - + 81
----
75
136

skipif mysql # not compatible
query II rowsort label-6210
SELECT DISTINCT + 75 AS col0, + COUNT ( * ) * + + 55 - - + 81
----
75
136

query II rowsort
SELECT DISTINCT 55, ( - 0 ) AS col1
----
55
0

query II rowsort
SELECT - + 49, - 79 AS col2
----
-49
-79

query I rowsort
SELECT + 83 AS col2
----
83

query I rowsort
SELECT - + 80
----
-80

query I rowsort
SELECT DISTINCT 61 col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6216
SELECT ALL + 75 + 47 + + NULLIF ( + ( 91 ), + NULLIF ( - SUM( DISTINCT - 22 ), - - 23 + + COUNT( + - 16 ) ) )
----
213

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL + 75 + 47 + + NULLIF ( + ( 91 ), + NULLIF ( - SUM ( DISTINCT - 22 ), - - 23 + + COUNT ( + - 16 ) ) )
----
213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6217
SELECT - COALESCE ( 62, - - 23 * - + 59 DIV + - 94 * + 84 + + 44 * + + 95 - + 31 * - 67 - - NULLIF ( CAST( NULL AS SIGNED ), ( CAST( 63 AS SIGNED ) ) * + - 87 * - 75 * + NULLIF ( - + COUNT( * ), + COUNT( * ) + 93 DIV - + 85 * + CAST( NULL AS SIGNED ) ) * + 40 * - 50 - + + MAX( - 27 ) ) ) AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-6217
SELECT - COALESCE ( 62, - - 23 * - + 59 / + - 94 * + 84 + + 44 * + + 95 - + 31 * - 67 - - NULLIF ( CAST ( NULL AS INTEGER ), ( CAST ( 63 AS INTEGER ) ) * + - 87 * - 75 * + NULLIF ( - + COUNT ( * ), + COUNT ( * ) + 93 / - + 85 * + CAST ( NULL AS INTEGER ) ) * + 40 * - 50 - + + MAX ( - 27 ) ) ) AS col0
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6218
SELECT ALL - 1 + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL - 1 + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + + 95 * 3
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT ALL + COUNT( - + 70 ) + + 24
----
25

skipif mysql # not compatible
query I rowsort label-6220
SELECT ALL + COUNT ( - + 70 ) + + 24
----
25

query I rowsort
SELECT ALL 42 + + 78 AS col1
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT ALL MIN( + 97 ) + + - COUNT( * ) + 19 + + + 2 * - - ( + 96 ) * + COUNT( * ) * - + SUM( DISTINCT 17 )
----
-3149

skipif mysql # not compatible
query I rowsort label-6222
SELECT ALL MIN ( + 97 ) + + - COUNT ( * ) + 19 + + + 2 * - - ( + 96 ) * + COUNT ( * ) * - + SUM ( DISTINCT 17 )
----
-3149

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT + ( + ( + COUNT( * ) ) ) + - ( - - 37 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + ( + ( + COUNT ( * ) ) ) + - ( - - 37 ) AS col0
----
-36

query I rowsort
SELECT + NULLIF ( - 57, + - 28 ) AS col1
----
-57

query I rowsort
SELECT + 69 + - + 2
----
67

query I rowsort
SELECT ALL + 49 * 24 AS col1
----
1176

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT - - SUM( + 86 )
----
86

skipif mysql # not compatible
query I rowsort label-6227
SELECT - - SUM ( + 86 )
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6228
SELECT - SUM( - 15 ) DIV COUNT( * ) * - 87
----
-1305

skipif mysql # not compatible
query I rowsort label-6228
SELECT - SUM ( - 15 ) / COUNT ( * ) * - 87
----
-1305

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT + ( + + COUNT( * ) ) * + + 87
----
87

skipif mysql # not compatible
query I rowsort label-6229
SELECT + ( + + COUNT ( * ) ) * + + 87
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL MIN( DISTINCT + - 51 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL MIN ( DISTINCT + - 51 ) AS col2
----
-51

query I rowsort
SELECT DISTINCT 37
----
37

query I rowsort
SELECT ALL + 48
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT ALL + COUNT( ALL - 99 )
----
1

skipif mysql # not compatible
query I rowsort label-6233
SELECT ALL + COUNT ( ALL - 99 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT - 89 * - MAX( - - 6 )
----
534

skipif mysql # not compatible
query I rowsort label-6234
SELECT - 89 * - MAX ( - - 6 )
----
534

query I rowsort
SELECT ALL + 58 AS col0
----
58

query I rowsort
SELECT DISTINCT + 64
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6237
SELECT CAST( - 67 AS SIGNED )
----
-67

skipif mysql # not compatible
query I rowsort label-6237
SELECT CAST ( - 67 AS INTEGER )
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ALL + MIN( - 39 ) * + ( 70 ) - COALESCE ( - - 82, + 51 )
----
-2812

skipif mysql # not compatible
query I rowsort label-6238
SELECT ALL + MIN ( - 39 ) * + ( 70 ) - COALESCE ( - - 82, + 51 )
----
-2812

query I rowsort
SELECT + 53 * + 30 AS col0
----
1590

query II rowsort
SELECT - 59 * - 97 AS col1, + 45
----
5723
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT - COUNT( * ) * + + 56
----
-56

skipif mysql # not compatible
query I rowsort label-6241
SELECT - COUNT ( * ) * + + 56
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT ALL + NULLIF ( - MAX( 60 ), + 19 )
----
-60

skipif mysql # not compatible
query I rowsort label-6242
SELECT ALL + NULLIF ( - MAX ( 60 ), + 19 )
----
-60

query I rowsort
SELECT ALL - ( NULLIF ( - + 6, + 13 + + 13 ) ) AS col2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT ALL + - 49 + + 63 DIV 6
----
-39

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL + - 49 + + 63 / 6
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6245
SELECT DISTINCT - - SUM( + - CAST( 45 AS SIGNED ) ) + + 25
----
-20

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT - - SUM ( + - CAST ( 45 AS INTEGER ) ) + + 25
----
-20

query I rowsort
SELECT ALL - + 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT ALL - - COUNT( * ) + 43 - - + 79
----
123

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL - - COUNT ( * ) + 43 - - + 79
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT SUM( - - 35 ) AS col2
----
35

skipif mysql # not compatible
query I rowsort label-6248
SELECT SUM ( - - 35 ) AS col2
----
35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6249
SELECT + 6 DIV + COUNT( * ) + - 0 * - ( - 29 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-6249
SELECT + 6 / + COUNT ( * ) + - 0 * - ( - 29 ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT - 46 * - MIN( DISTINCT 23 ) AS col0
----
1058

skipif mysql # not compatible
query I rowsort label-6250
SELECT - 46 * - MIN ( DISTINCT 23 ) AS col0
----
1058

onlyif mysql # aggregate syntax: 
query I rowsort label-6251
SELECT - 73 + COUNT( * ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-6251
SELECT - 73 + COUNT ( * ) AS col0
----
-72

query I rowsort
SELECT DISTINCT 57 AS col0
----
57

query I rowsort
SELECT ALL + 23 col1
----
23

query I rowsort
SELECT - + ( - - 83 )
----
-83

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6255
SELECT - CASE - - 34 WHEN - - ( + 88 ) + - 40 + + ( - + 47 ) THEN NULL WHEN + - COUNT( * ) * - 54 / 74 + + 35 THEN - + COALESCE ( - CAST( NULL AS DECIMAL ), + 56 + + CAST( NULL AS DECIMAL ) * + 12 / MIN( - 57 ) * - - 72 + + - CASE + 12 WHEN 74 THEN + 95 WHEN + 18 THEN - 71 * + 1 END * - + 91 - + 89 ) / + COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6255
SELECT - CASE - - 34 WHEN - - ( + 88 ) + - 40 + + ( - + 47 ) THEN NULL WHEN + - COUNT ( * ) * - 54 / 74 + + 35 THEN - + COALESCE ( - CAST ( NULL AS REAL ), + 56 + + CAST ( NULL AS REAL ) * + 12 / MIN ( - 57 ) * - - 72 + + - CASE + 12 WHEN 74 THEN + 95 WHEN + 18 THEN - 71 * + 1 END * - + 91 - + 89 ) / + COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT + COALESCE ( + NULLIF ( - 12, + 31 + - 70 ), + + COUNT( * ) + 60 ) + - 15 AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-6256
SELECT + COALESCE ( + NULLIF ( - 12, + 31 + - 70 ), + + COUNT ( * ) + 60 ) + - 15 AS col1
----
-27

query I rowsort
SELECT ALL - 0 col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6258
SELECT + 62 * + + COUNT( * ) * + + 94 AS col1, 3
----
5828
3

skipif mysql # not compatible
query II rowsort label-6258
SELECT + 62 * + + COUNT ( * ) * + + 94 AS col1, 3
----
5828
3

query I rowsort
SELECT + 36 + - 46
----
-10

query I rowsort
SELECT - 69 col2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT ( + 45 ) * + 98 * - - 67 + - SUM( ALL 61 )
----
295409

skipif mysql # not compatible
query I rowsort label-6261
SELECT ( + 45 ) * + 98 * - - 67 + - SUM ( ALL 61 )
----
295409

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT 6 + - + 35 + + NULLIF ( - 16, 4 ) DIV ( + - NULLIF ( + 43, - 82 ) )
----
-29

skipif mysql # not compatible
query I rowsort label-6262
SELECT 6 + - + 35 + + NULLIF ( - 16, 4 ) / ( + - NULLIF ( + 43, - 82 ) )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT ( + 4 ) * + + COUNT( * ) + + + 15 * - + 77 * + COUNT( + 22 ) - - ( 82 ) + - - COUNT( + + 95 ) * 88 AS col0
----
-981

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT ( + 4 ) * + + COUNT ( * ) + + + 15 * - + 77 * + COUNT ( + 22 ) - - ( 82 ) + - - COUNT ( + + 95 ) * 88 AS col0
----
-981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL CAST( NULL AS SIGNED ) * - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL CAST ( NULL AS INTEGER ) * - 18
----
NULL

query I rowsort
SELECT DISTINCT ( 60 ) * - + ( - + 46 ) AS col2
----
2760

query I rowsort
SELECT ALL 41 AS col2
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT 3 + + - 41 + - 79 DIV + - 79 col1
----
-37

skipif mysql # not compatible
query I rowsort label-6267
SELECT 3 + + - 41 + - 79 / + - 79 col1
----
-37

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6268
SELECT ALL CAST( NULL AS DECIMAL ) * + - 26
----
NULL

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL CAST ( NULL AS REAL ) * + - 26
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6269
SELECT ( 23 ) DIV + 70 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6269
SELECT ( 23 ) / + 70 AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6270
SELECT ALL - SUM( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6270
SELECT ALL - SUM ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT 57 * - COUNT( * ) AS col0
----
-57

skipif mysql # not compatible
query I rowsort label-6271
SELECT 57 * - COUNT ( * ) AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT COUNT( * ) + - 21 AS col2
----
-20

skipif mysql # not compatible
query I rowsort label-6272
SELECT COUNT ( * ) + - 21 AS col2
----
-20

query I rowsort
SELECT DISTINCT - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6274
SELECT DISTINCT - 18 DIV - + COUNT( * )
----
18

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT - 18 / - + COUNT ( * )
----
18

onlyif mysql # aggregate syntax: 
query II rowsort label-6275
SELECT ALL - COUNT( * ) AS col1, - 64 * - 99 AS col0
----
-1
6336

skipif mysql # not compatible
query II rowsort label-6275
SELECT ALL - COUNT ( * ) AS col1, - 64 * - 99 AS col0
----
-1
6336

onlyif mysql # DIV for integer division: 
query I rowsort label-6276
SELECT - 47 DIV - 82 + + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-6276
SELECT - 47 / - 82 + + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT ALL COALESCE ( - - ( CASE 79 WHEN 47 * + 9 * 57 + 27 + + COUNT( * ) - - MIN( ALL 81 ) - 2 THEN NULL WHEN - + 9 THEN NULL WHEN + COUNT( * ) THEN - - 51 - - 20 + - COALESCE ( + 36, + 48 ) ELSE NULL END ), - 85 ) + + + 4
----
-81

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL COALESCE ( - - ( CASE 79 WHEN 47 * + 9 * 57 + 27 + + COUNT ( * ) - - MIN ( ALL 81 ) - 2 THEN NULL WHEN - + 9 THEN NULL WHEN + COUNT ( * ) THEN - - 51 - - 20 + - COALESCE ( + 36, + 48 ) ELSE NULL END ), - 85 ) + + + 4
----
-81

query I rowsort
SELECT DISTINCT 64 + + 33
----
97

query II rowsort
SELECT 98, 34 * + 23 col2
----
98
782

query II rowsort
SELECT + 72 AS col1, + 26
----
72
26

onlyif mysql # aggregate syntax: 
query II rowsort label-6281
SELECT + - COUNT( * ), - 27 * COALESCE ( - ( + ( - 97 ) ), + 17 + + + 11 ) AS col2
----
-1
-2619

skipif mysql # not compatible
query II rowsort label-6281
SELECT + - COUNT ( * ), - 27 * COALESCE ( - ( + ( - 97 ) ), + 17 + + + 11 ) AS col2
----
-1
-2619

query I rowsort
SELECT - 4 + 17 + - ( + - 47 )
----
60

query I rowsort
SELECT - 13 * NULLIF ( + + 23, - - 19 - - 56 )
----
-299

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6284
SELECT ALL + CAST( NULL AS DECIMAL ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT ALL + CAST ( NULL AS REAL ) * 83
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL - + MIN( + 11 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - + MIN ( + 11 ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-6286
SELECT + + 2 AS col2, - 27 * - ( + + ( + SUM( + 60 ) ) )
----
2
1620

skipif mysql # not compatible
query II rowsort label-6286
SELECT + + 2 AS col2, - 27 * - ( + + ( + SUM ( + 60 ) ) )
----
2
1620

query I rowsort
SELECT ALL - 73 - - - 90
----
-163

query I rowsort
SELECT DISTINCT - 15 - + - 13 * + 11
----
128

query I rowsort
SELECT DISTINCT - - 19 col0
----
19

query I rowsort
SELECT + 24 AS col0
----
24

query I rowsort
SELECT 55 * - 71
----
-3905

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6292
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) / - - CAST( 84 AS SIGNED ) * - COUNT( * ) * - 53 * + ( + - 39 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT - + CAST ( NULL AS REAL ) / - - CAST ( 84 AS INTEGER ) * - COUNT ( * ) * - 53 * + ( + - 39 )
----
NULL

query I rowsort
SELECT - 60 * + 86 AS col2
----
-5160

query I rowsort
SELECT ALL - + 54 * - 49 AS col1
----
2646

query I rowsort
SELECT 4 - + 54 * - ( + 69 ) AS col0
----
3730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6296
SELECT - COUNT( * ) DIV - 87 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT - COUNT ( * ) / - 87 AS col2
----
0

query I rowsort
SELECT ALL - + 29 * 68 + - 20
----
-1992

query I rowsort
SELECT 35 * - 40
----
-1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6299
SELECT DISTINCT - COUNT( * ) / ( CASE - 74 WHEN - - 85 + - - COUNT( DISTINCT - ( + NULLIF ( - - 88, + CAST( NULL AS SIGNED ) ) ) ) * - - 87 + - CAST( NULL AS SIGNED ) THEN NULL ELSE 51 * - 1 + - COALESCE ( CAST( NULL AS DECIMAL ), + + COUNT( ALL 42 ) ) * - - CAST( NULL AS SIGNED ) + + - 41 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - COUNT ( * ) / ( CASE - 74 WHEN - - 85 + - - COUNT ( DISTINCT - ( + NULLIF ( - - 88, + CAST ( NULL AS INTEGER ) ) ) ) * - - 87 + - CAST ( NULL AS INTEGER ) THEN NULL ELSE 51 * - 1 + - COALESCE ( CAST ( NULL AS REAL ), + + COUNT ( ALL 42 ) ) * - - CAST ( NULL AS INTEGER ) + + - 41 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6300
SELECT ALL ( + COUNT( DISTINCT - CAST( - 19 AS SIGNED ) ) ) * 65 * + 96 col1
----
6240

skipif mysql # not compatible
query I rowsort label-6300
SELECT ALL ( + COUNT ( DISTINCT - CAST ( - 19 AS INTEGER ) ) ) * 65 * + 96 col1
----
6240

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6301
SELECT ALL MIN( - + 42 ) col2, - 95 DIV - 61 + + 78 AS col0
----
-42
79

skipif mysql # not compatible
query II rowsort label-6301
SELECT ALL MIN ( - + 42 ) col2, - 95 / - 61 + + 78 AS col0
----
-42
79

query II rowsort
SELECT DISTINCT + 12 * 11, 91 col2
----
132
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6303
SELECT ( + + ( - - 77 ) ) * - 0 + - CAST( + 88 AS SIGNED ) col2
----
-88

skipif mysql # not compatible
query I rowsort label-6303
SELECT ( + + ( - - 77 ) ) * - 0 + - CAST ( + 88 AS INTEGER ) col2
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT COUNT( * ) * - 33 AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-6304
SELECT COUNT ( * ) * - 33 AS col0
----
-33

query I rowsort
SELECT 31 + - ( + 71 ) col2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL SUM( + CASE + - 68 WHEN 68 / + - 61 * 57 THEN NULL ELSE - COALESCE ( - 85, + - 3 ) * 59 END )
----
5015

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL SUM ( + CASE + - 68 WHEN 68 / + - 61 * 57 THEN NULL ELSE - COALESCE ( - 85, + - 3 ) * 59 END )
----
5015

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT ALL 18 + 92 + + - 10 + - - 80 * + 35 * - - 69 + - CASE + 49 WHEN + + ( - 31 ) THEN MAX( + 61 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL 18 + 92 + + - 10 + - - 80 * + 35 * - - 69 + - CASE + 49 WHEN + + ( - 31 ) THEN MAX ( + 61 ) END AS col0
----
NULL

query I rowsort
SELECT ALL + 23 + - 28 * + 50
----
-1377

query I rowsort
SELECT ALL 94 * + 33 col1
----
3102

onlyif mysql # DIV for integer division: 
query II rowsort label-6310
SELECT + 0 DIV + + 82 AS col2, 14 AS col2
----
0
14

skipif mysql # not compatible
query II rowsort label-6310
SELECT + 0 / + + 82 AS col2, 14 AS col2
----
0
14

query I rowsort
SELECT ALL - 59 + 5 - - 71
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT DISTINCT - 50 DIV 70
----
0

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - 50 / 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6313
SELECT + SUM( ALL + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-6313
SELECT + SUM ( ALL + 9 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6314
SELECT ALL 58 * ( MIN( DISTINCT - + 38 ) ), 60 - - 33 AS col1
----
-2204
93

skipif mysql # not compatible
query II rowsort label-6314
SELECT ALL 58 * ( MIN ( DISTINCT - + 38 ) ), 60 - - 33 AS col1
----
-2204
93

query I rowsort
SELECT NULLIF ( + 28, 7 + 28 )
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6316
SELECT + 69 DIV - + 43 col0
----
-1

skipif mysql # not compatible
query I rowsort label-6316
SELECT + 69 / - + 43 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + MIN( - 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-6317
SELECT + MIN ( - 76 )
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6318
SELECT ALL - 1 * + CAST( NULL AS SIGNED ) + + + 8 + - + 89 + - + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6318
SELECT ALL - 1 * + CAST ( NULL AS INTEGER ) + + + 8 + - + 89 + - + 86
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6319
SELECT + 61 * + COUNT( ALL - + 84 ) DIV + 85 * - 31 + - - 14 - + + 36 - + COALESCE ( + - 45, + ( + ( - + 59 ) ) ) - + 12 * + - 49 + + 0 AS col1
----
611

skipif mysql # not compatible
query I rowsort label-6319
SELECT + 61 * + COUNT ( ALL - + 84 ) / + 85 * - 31 + - - 14 - + + 36 - + COALESCE ( + - 45, + ( + ( - + 59 ) ) ) - + 12 * + - 49 + + 0 AS col1
----
611

query I rowsort
SELECT + 19 * + + 94 * 93 AS col1
----
166098

query I rowsort
SELECT + 51 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT + 74 * 65 + + - COUNT( DISTINCT + 27 ) - - CASE - 49 WHEN + 91 THEN + - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT + 74 * 65 + + - COUNT ( DISTINCT + 27 ) - - CASE - 49 WHEN + 91 THEN + - COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT - + 52 * + 38
----
-1976

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT + + ( - - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT + + ( - - COUNT ( * ) ) AS col2
----
1

query I rowsort
SELECT ALL + 81 col2
----
81

query I rowsort
SELECT - ( 89 )
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6327
SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST( - COUNT( * ) AS SIGNED ) * + 88 AS col1
----
-95
88

skipif mysql # not compatible
query II rowsort label-6327
SELECT ALL - ( - 18 ) * + 2 - 46 - - - 85 AS col1, - CAST ( - COUNT ( * ) AS INTEGER ) * + 88 AS col1
----
-95
88

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT ALL + 13 DIV 28 - + - 63
----
63

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL + 13 / 28 - + - 63
----
63

query I rowsort
SELECT ALL + + 25
----
25

query I rowsort
SELECT DISTINCT + - 34 col1
----
-34

query I rowsort
SELECT ALL + - 8
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT + 86 * + 61 * + MAX( ALL + 76 ) + - 87 - 51
----
398558

skipif mysql # not compatible
query I rowsort label-6332
SELECT + 86 * + 61 * + MAX ( ALL + 76 ) + - 87 - 51
----
398558

query I rowsort
SELECT ALL + + 52 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6334
SELECT + NULLIF ( 73, - 97 ) + - 19 + + - CAST( + 95 AS SIGNED ) - - - CASE + 23 WHEN - COUNT( 29 ) / + 7 + - 14 * 36 THEN MIN( ALL 89 ) ELSE NULL END * + - ( - + 20 ) + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT + NULLIF ( 73, - 97 ) + - 19 + + - CAST ( + 95 AS INTEGER ) - - - CASE + 23 WHEN - COUNT ( 29 ) / + 7 + - 14 * 36 THEN MIN ( ALL 89 ) ELSE NULL END * + - ( - + 20 ) + + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT + + 93 AS col1
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6336
SELECT ALL ( - 2 ) * NULLIF ( - + 72, - 20 ) DIV + MAX( + - 87 ) + + - 59 * - + 68
----
4011

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL ( - 2 ) * NULLIF ( - + 72, - 20 ) / + MAX ( + - 87 ) + + - 59 * - + 68
----
4011

onlyif mysql # DIV for integer division: 
query II rowsort label-6337
SELECT + + 7 * 69 + - 67 DIV + 47, ( - 58 ) AS col0
----
482
-58

skipif mysql # not compatible
query II rowsort label-6337
SELECT + + 7 * 69 + - 67 / + 47, ( - 58 ) AS col0
----
482
-58

query I rowsort
SELECT ALL 53 col2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL - + 27 * + COUNT( * ) * ( + - 52 ) + + 8 - + MIN( - + 91 ) * + + COUNT( * ) * + 32
----
4324

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL - + 27 * + COUNT ( * ) * ( + - 52 ) + + 8 - + MIN ( - + 91 ) * + + COUNT ( * ) * + 32
----
4324

onlyif mysql # DIV for integer division: 
query II rowsort label-6340
SELECT + + 6 + + 95 AS col0, + 54 DIV - + 22 AS col1
----
101
-2

skipif mysql # not compatible
query II rowsort label-6340
SELECT + + 6 + + 95 AS col0, + 54 / - + 22 AS col1
----
101
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT ALL + 1 * 36 * + COUNT( * ) * + 5 AS col1, COUNT( * )
----
180
1

skipif mysql # not compatible
query II rowsort label-6341
SELECT ALL + 1 * 36 * + COUNT ( * ) * + 5 AS col1, COUNT ( * )
----
180
1

query I rowsort
SELECT - 80 * + + 4
----
-320

query I rowsort
SELECT 12 AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT ALL MIN( ALL + 14 ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-6344
SELECT ALL MIN ( ALL + 14 ) AS col2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL ( - MIN( DISTINCT - 25 ) )
----
25

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL ( - MIN ( DISTINCT - 25 ) )
----
25

query I rowsort
SELECT - 66 + 81 AS col0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT + 78 DIV 87 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 78 / 87 AS col1
----
0

query I rowsort
SELECT 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6349
SELECT - COUNT( * ) + + 27 AS col1
----
26

skipif mysql # not compatible
query I rowsort label-6349
SELECT - COUNT ( * ) + + 27 AS col1
----
26

query I rowsort
SELECT ALL - 36 + - ( - 56 )
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT - 47 + + ( - 49 ) DIV + - MAX( DISTINCT + 57 ) * + 3
----
-47

skipif mysql # not compatible
query I rowsort label-6351
SELECT - 47 + + ( - 49 ) / + - MAX ( DISTINCT + 57 ) * + 3
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT DISTINCT - ( + + ( - - 48 ) ) * - + COUNT( + + ( 15 ) ) AS col2
----
48

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT - ( + + ( - - 48 ) ) * - + COUNT ( + + ( 15 ) ) AS col2
----
48

query I rowsort
SELECT ALL ( + 35 ) AS col0
----
35

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6354
SELECT - COUNT( * ) * CASE + + 93 WHEN + + CAST( - 54 AS DECIMAL ) * 30 + - 18 * + + 44 + - 55 + + + MIN( + 53 ) THEN 24 + + 38 + 88 * - + 1 WHEN MAX( ALL + 83 ) + - + 10 + - 79 * - 42 + + 85 THEN NULL END / - + 65 * + - 91 / - CAST( - 38 AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6354
SELECT - COUNT ( * ) * CASE + + 93 WHEN + + CAST ( - 54 AS REAL ) * 30 + - 18 * + + 44 + - 55 + + + MIN ( + 53 ) THEN 24 + + 38 + 88 * - + 1 WHEN MAX ( ALL + 83 ) + - + 10 + - 79 * - 42 + + 85 THEN NULL END / - + 65 * + - 91 / - CAST ( - 38 AS REAL ) AS col2
----
NULL

query I rowsort
SELECT ALL + 91 + 3 + + + 8 * 87 AS col0
----
790

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT DISTINCT - 45 * + 51 * + 52 * - + CASE + 23 WHEN - + COUNT( * ) THEN NULL WHEN + 75 THEN 41 / 2 ELSE NULL END * - + 17 + + 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6356
SELECT DISTINCT - 45 * + 51 * + 52 * - + CASE + 23 WHEN - + COUNT ( * ) THEN NULL WHEN + 75 THEN 41 / 2 ELSE NULL END * - + 17 + + 43 AS col0
----
NULL

query I rowsort
SELECT ALL + 91 + 89
----
180

query I rowsort
SELECT ALL 70 * 70
----
4900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6359
SELECT ALL - CAST( 24 AS SIGNED ) * + 43 * + COUNT( DISTINCT 78 )
----
-1032

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - CAST ( 24 AS INTEGER ) * + 43 * + COUNT ( DISTINCT 78 )
----
-1032

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT - 94 - - SUM( - NULLIF ( - + 14, + 77 ) ) * + 80 AS col1
----
1026

skipif mysql # not compatible
query I rowsort label-6360
SELECT - 94 - - SUM ( - NULLIF ( - + 14, + 77 ) ) * + 80 AS col1
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6361
SELECT - SUM( ALL + + CAST( - 90 AS SIGNED ) )
----
90

skipif mysql # not compatible
query I rowsort label-6361
SELECT - SUM ( ALL + + CAST ( - 90 AS INTEGER ) )
----
90

query I rowsort
SELECT ALL ( + + ( + - ( + 24 ) ) )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT DISTINCT - 46 * - + COUNT( * )
----
46

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT - 46 * - + COUNT ( * )
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6364
SELECT - COALESCE ( + 92, ( - 23 ) + + CAST( - SUM( ALL - 0 ) AS SIGNED ) )
----
-92

skipif mysql # not compatible
query I rowsort label-6364
SELECT - COALESCE ( + 92, ( - 23 ) + + CAST ( - SUM ( ALL - 0 ) AS INTEGER ) )
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-6365
SELECT - 58 + + - 62 DIV + 61
----
-59

skipif mysql # not compatible
query I rowsort label-6365
SELECT - 58 + + - 62 / + 61
----
-59

query I rowsort
SELECT DISTINCT + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT + 34 * - 83 + - MIN( DISTINCT 83 ) AS col1
----
-2905

skipif mysql # not compatible
query I rowsort label-6367
SELECT + 34 * - 83 + - MIN ( DISTINCT 83 ) AS col1
----
-2905

query I rowsort
SELECT - - 28 * - ( + + 12 ) AS col0
----
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6369
SELECT + 46 * - + 34 * - 21 + + - CAST( - 93 AS SIGNED ) AS col0
----
32937

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 46 * - + 34 * - 21 + + - CAST ( - 93 AS INTEGER ) AS col0
----
32937

query I rowsort
SELECT ALL + 36 AS col0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6371
SELECT + 59 DIV - 48 + + 91 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6371
SELECT + 59 / - 48 + + 91 AS col1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6372
SELECT + - 96 / - CASE - CASE COALESCE ( - 75, 54 / + 96 ) WHEN - COUNT( * ) / - 67 - 52 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE + COUNT( + + ( + - 71 ) ) END WHEN + 68 THEN NULL WHEN + CASE 46 WHEN 91 * + - NULLIF ( - 76, - COALESCE ( + AVG ( ALL - 44 ), + + 95, 28 ) ) * + 62 THEN NULL WHEN - + ( + 12 ) / - 57 + + + 50 THEN - 63 + COUNT( * ) WHEN - + 23 THEN + + 91 * - CAST( - 78 AS SIGNED ) * 33 - - 36 ELSE NULL END THEN + 26 + COUNT( * ) WHEN - 6 * + COUNT( 12 ) THEN - 22 + - 90 ELSE CAST( NULL AS SIGNED ) END * COUNT( * ) + 68 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6372
SELECT + - 96 / - CASE - CASE COALESCE ( - 75, 54 / + 96 ) WHEN - COUNT ( * ) / - 67 - 52 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE + COUNT ( + + ( + - 71 ) ) END WHEN + 68 THEN NULL WHEN + CASE 46 WHEN 91 * + - NULLIF ( - 76, - COALESCE ( + AVG ( ALL - 44 ), + + 95, 28 ) ) * + 62 THEN NULL WHEN - + ( + 12 ) / - 57 + + + 50 THEN - 63 + COUNT ( * ) WHEN - + 23 THEN + + 91 * - CAST ( - 78 AS INTEGER ) * 33 - - 36 ELSE NULL END THEN + 26 + COUNT ( * ) WHEN - 6 * + COUNT ( 12 ) THEN - 22 + - 90 ELSE CAST ( NULL AS INTEGER ) END * COUNT ( * ) + 68 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + 18
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6374
SELECT ALL - - 63 DIV 71
----
0

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - - 63 / 71
----
0

query I rowsort
SELECT + 62 + + - 90
----
-28

query II rowsort
SELECT ALL + 75, + CASE + - 19 WHEN 63 THEN + - AVG ( + 48 ) END col2
----
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6377
SELECT - + COUNT( 51 ) * + COUNT( ALL + 56 ) * + COALESCE ( - COUNT( * ), - COUNT( * ), MAX( ALL + 10 ) ) * - COALESCE ( - SUM( + CAST( + 69 AS SIGNED ) ), + 0 / 38 ) * - 82 / - 50 + - - AVG ( - - NULLIF ( - 94, 40 ) ) - - SUM( ALL 15 ) + + + 46 + CASE - 64 WHEN CAST( - 70 AS SIGNED ) + - 8 THEN NULL WHEN + 73 THEN - 65 + - - 10 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6377
SELECT - + COUNT ( 51 ) * + COUNT ( ALL + 56 ) * + COALESCE ( - COUNT ( * ), - COUNT ( * ), MAX ( ALL + 10 ) ) * - COALESCE ( - SUM ( + CAST ( + 69 AS INTEGER ) ), + 0 / 38 ) * - 82 / - 50 + - - AVG ( - - NULLIF ( - 94, 40 ) ) - - SUM ( ALL 15 ) + + + 46 + CASE - 64 WHEN CAST ( - 70 AS INTEGER ) + - 8 THEN NULL WHEN + 73 THEN - 65 + - - 10 END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + NULLIF ( COUNT( * ), AVG ( DISTINCT + - 16 ) )
----
1

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + NULLIF ( COUNT ( * ), AVG ( DISTINCT + - 16 ) )
----
1

query I rowsort
SELECT + + ( + + 49 ) AS col0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT 96 * + - 60 * + CAST( NULL AS SIGNED ) + ( + 29 ) + + 31 + - - 45 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6380
SELECT 96 * + - 60 * + CAST ( NULL AS INTEGER ) + ( + 29 ) + + 31 + - - 45 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT ALL - SUM( - + ( 67 ) ) * 3 * - 54
----
-10854

skipif mysql # not compatible
query I rowsort label-6381
SELECT ALL - SUM ( - + ( 67 ) ) * 3 * - 54
----
-10854

query I rowsort
SELECT - 37 AS col1
----
-37

query I rowsort
SELECT - ( + - 23 )
----
23

query I rowsort
SELECT ALL + - 81 AS col1
----
-81

query I rowsort
SELECT ALL + 44 AS col0
----
44

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6386
SELECT + - COALESCE ( - CAST( + 11 AS SIGNED ), 30 ) * 12 + 6 + - 60 + - 49 DIV + 75 * + 76 + + 60 - 80 col2
----
58

skipif mysql # not compatible
query I rowsort label-6386
SELECT + - COALESCE ( - CAST ( + 11 AS INTEGER ), 30 ) * 12 + 6 + - 60 + - 49 / + 75 * + 76 + + 60 - 80 col2
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6387
SELECT DISTINCT + 71 * + COUNT( * ) + MAX( - - 20 ) * 93, COUNT( * ) + 20 AS col2
----
1931
21

skipif mysql # not compatible
query II rowsort label-6387
SELECT DISTINCT + 71 * + COUNT ( * ) + MAX ( - - 20 ) * 93, COUNT ( * ) + 20 AS col2
----
1931
21

query I rowsort
SELECT + - 64 AS col2
----
-64

query I rowsort
SELECT ALL + - 48
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6390
SELECT ALL + + ( + - 56 ) * 83 + - 22 + + 2 * + CAST( - ( 8 ) AS SIGNED ) AS col1
----
-4686

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL + + ( + - 56 ) * 83 + - 22 + + 2 * + CAST ( - ( 8 ) AS INTEGER ) AS col1
----
-4686

query I rowsort
SELECT COALESCE ( 7, - + 49 )
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6392
SELECT CASE 4 WHEN + - SUM( ALL + - 24 ) THEN + ( - - 18 ) * + 93 END AS col1, 96 + 14 AS col1
----
NULL
110

skipif mysql # not compatible
query II rowsort label-6392
SELECT CASE 4 WHEN + - SUM ( ALL + - 24 ) THEN + ( - - 18 ) * + 93 END AS col1, 96 + 14 AS col1
----
NULL
110

query I rowsort
SELECT + 37 * 43
----
1591

query I rowsort
SELECT - ( 17 )
----
-17

query I rowsort
SELECT - 60 * + + 47
----
-2820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6396
SELECT ALL - 83 * + CAST( NULL AS SIGNED ) / + 44 + - - COUNT( * ) + - COUNT( * ) + COUNT( * ) * - 97 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6396
SELECT ALL - 83 * + CAST ( NULL AS INTEGER ) / + 44 + - - COUNT ( * ) + - COUNT ( * ) + COUNT ( * ) * - 97 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6397
SELECT ALL - 17 * + + ( - 53 ) + - + 58 + 85 + + + 69, - 97 + COUNT( * ) AS col2
----
997
-96

skipif mysql # not compatible
query II rowsort label-6397
SELECT ALL - 17 * + + ( - 53 ) + - + 58 + 85 + + + 69, - 97 + COUNT ( * ) AS col2
----
997
-96

query I rowsort
SELECT + 7 - 87
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL - 31 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL - 31 * - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT DISTINCT COUNT( * ) * + 40 * - MIN( + - 39 )
----
1560

skipif mysql # not compatible
query I rowsort label-6400
SELECT DISTINCT COUNT ( * ) * + 40 * - MIN ( + - 39 )
----
1560

query II rowsort
SELECT DISTINCT + 59 + + 6, - 10 * - 40 AS col0
----
65
400

query I rowsort
SELECT ALL - 5 + + 98
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6403
SELECT - 48 col1, + 45 + + + COUNT( * ) - - 71 AS col0
----
-48
117

skipif mysql # not compatible
query II rowsort label-6403
SELECT - 48 col1, + 45 + + + COUNT ( * ) - - 71 AS col0
----
-48
117

query I rowsort
SELECT DISTINCT 41 + 73 AS col2
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT 31 + CAST( - + 28 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-6405
SELECT 31 + CAST ( - + 28 AS INTEGER )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT DISTINCT - 60 - + + 1 DIV + 44
----
-60

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT - 60 - + + 1 / + 44
----
-60

query I rowsort
SELECT ALL - 42 - - 43 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT DISTINCT + 87 DIV - 29 AS col0
----
-3

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT + 87 / - 29 AS col0
----
-3

query I rowsort
SELECT DISTINCT 40 - + ( 55 ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6410
SELECT ALL + 69 * COUNT( * )
----
69

skipif mysql # not compatible
query I rowsort label-6410
SELECT ALL + 69 * COUNT ( * )
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6411
SELECT DISTINCT + - 90 - - MIN( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + - 90 - - MIN ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6412
SELECT DISTINCT + - 73 DIV + - 38 + 27 AS col0
----
28

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + - 73 / + - 38 + 27 AS col0
----
28

query I rowsort
SELECT ALL - ( - + 64 ) * - + 23
----
-1472

query I rowsort
SELECT DISTINCT - 38 * - 32 + 36
----
1252

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT COUNT( * ) * - + 49 + + 96
----
47

skipif mysql # not compatible
query I rowsort label-6415
SELECT COUNT ( * ) * - + 49 + + 96
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6416
SELECT + COALESCE ( + - COUNT( * ), - + 55, 44 ) AS col0, + 35 AS col2
----
-1
35

skipif mysql # not compatible
query II rowsort label-6416
SELECT + COALESCE ( + - COUNT ( * ), - + 55, 44 ) AS col0, + 35 AS col2
----
-1
35

query I rowsort
SELECT ALL - 94 * + 88 + - 38 AS col0
----
-8310

query I rowsort
SELECT 83 col0
----
83

query I rowsort
SELECT 79 * - 66
----
-5214

query I rowsort
SELECT 23 * + - 25 AS col1
----
-575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6421
SELECT 39 DIV 39 - + COUNT( * ) - 49 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-6421
SELECT 39 / 39 - + COUNT ( * ) - 49 AS col2
----
-49

query I rowsort
SELECT ( - 0 )
----
0

query I rowsort
SELECT ALL - - 79 AS col1
----
79

query I rowsort
SELECT 2 * + + 4 + - 41 AS col0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT ALL + CAST( + 65 AS SIGNED ) + COUNT( * ) AS col1
----
66

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + CAST ( + 65 AS INTEGER ) + COUNT ( * ) AS col1
----
66

query I rowsort
SELECT DISTINCT + 62 + - 55 AS col2
----
7

query I rowsort
SELECT + 6 + + - 90
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6428
SELECT + + CASE + + ( + 65 ) WHEN MIN( 6 ) * - + 44 + - 93 + + 73 * - - 70 / + 32 - NULLIF ( + COUNT( * ), + - COUNT( * ) ) THEN 2 / - 68 + - 32 / 0 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT + + CASE + + ( + 65 ) WHEN MIN ( 6 ) * - + 44 + - 93 + + 73 * - - 70 / + 32 - NULLIF ( + COUNT ( * ), + - COUNT ( * ) ) THEN 2 / - 68 + - 32 / 0 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6429
SELECT + 89 - + 22 + 98 + 2 DIV - COUNT( * ) + - 5 * - + 22 AS col1
----
273

skipif mysql # not compatible
query I rowsort label-6429
SELECT + 89 - + 22 + 98 + 2 / - COUNT ( * ) + - 5 * - + 22 AS col1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6430
SELECT NULLIF ( CAST( 58 AS SIGNED ), + 37 * - NULLIF ( - COUNT( ALL 99 ), AVG ( DISTINCT + 53 ) + 27 ) * + COUNT( * ) - - 34 )
----
58

skipif mysql # not compatible
query I rowsort label-6430
SELECT NULLIF ( CAST ( 58 AS INTEGER ), + 37 * - NULLIF ( - COUNT ( ALL 99 ), AVG ( DISTINCT + 53 ) + 27 ) * + COUNT ( * ) - - 34 )
----
58

query II rowsort
SELECT 22 + 26 AS col1, + 51 col1
----
48
51

query I rowsort
SELECT ALL - 93
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6433
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT - 13 * MAX( - 57 ) * 82 + - - CASE 29 WHEN - NULLIF ( - 55, ( + - 93 ) ) THEN + - 79 END + 16 + + MAX( ALL + + 82 ) / - 24
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT - 13 * MAX ( - 57 ) * 82 + - - CASE 29 WHEN - NULLIF ( - 55, ( + - 93 ) ) THEN + - 79 END + 16 + + MAX ( ALL + + 82 ) / - 24
----
NULL

query I rowsort
SELECT ALL + 36 * - 8
----
-288

query I rowsort
SELECT 41 + + 63 col0
----
104

query I rowsort
SELECT DISTINCT 87 AS col0
----
87

query I rowsort
SELECT ( + 40 ) + 23 AS col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT ALL 71 + - 90 * MAX( ( + - 67 ) ) + - 30 AS col2
----
6071

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL 71 + - 90 * MAX ( ( + - 67 ) ) + - 30 AS col2
----
6071

query I rowsort
SELECT ALL 44 AS col1
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6441
SELECT 31 * 32, - 81 * + - COUNT( * ) * - 35 AS col1
----
992
-2835

skipif mysql # not compatible
query II rowsort label-6441
SELECT 31 * 32, - 81 * + - COUNT ( * ) * - 35 AS col1
----
992
-2835

query II rowsort
SELECT 76 + - - 51 AS col1, 17 + + 93 * - - 11 - + 5
----
127
1035

query I rowsort
SELECT ALL 29 * + 21
----
609

query I rowsort
SELECT DISTINCT 61 AS col1
----
61

query I rowsort
SELECT - 15 AS col1
----
-15

query I rowsort
SELECT 86 col1
----
86

query II rowsort
SELECT ( - - 36 ) * - - 84 * CASE + 22 WHEN - 77 THEN - 74 END, 57 + 21 AS col2
----
NULL
78

query I rowsort
SELECT ALL 93 * + 63
----
5859

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6449
SELECT ALL - + 0 - 42 + + 36 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL - + 0 - 42 + + 36 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6450
SELECT 25 - - CAST( NULL AS SIGNED ) * 68 * - 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6450
SELECT 25 - - CAST ( NULL AS INTEGER ) * 68 * - 39 AS col0
----
NULL

query II rowsort
SELECT 99 + + 92, 40 * - + 52 * + - 66 col0
----
191
137280

query I rowsort
SELECT - 97 + - 92 AS col1
----
-189

query I rowsort
SELECT DISTINCT - + 36
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT + - ( + 4 ) * + COUNT( * ) + 89
----
85

skipif mysql # not compatible
query I rowsort label-6454
SELECT + - ( + 4 ) * + COUNT ( * ) + 89
----
85

query I rowsort
SELECT ALL - + 80 col2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6456
SELECT ALL - - CASE NULLIF ( + + 95, + 87 * + COUNT( * ) - + + 89 * + COUNT( * ) + - 92 + - 31 ) WHEN + 68 THEN - 9 + - - NULLIF ( - 32, CAST( - COUNT( * ) AS SIGNED ) ) ELSE + - 49 * COUNT( ALL - 25 ) + + 65 END * 40 AS col2
----
640

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - - CASE NULLIF ( + + 95, + 87 * + COUNT ( * ) - + + 89 * + COUNT ( * ) + - 92 + - 31 ) WHEN + 68 THEN - 9 + - - NULLIF ( - 32, CAST ( - COUNT ( * ) AS INTEGER ) ) ELSE + - 49 * COUNT ( ALL - 25 ) + + 65 END * 40 AS col2
----
640

query I rowsort
SELECT ALL - - 20 * - 13 * + ( 66 ) * 14 + + 99 - + - 43 AS col1
----
-240098

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6458
SELECT + ( + - 11 ) DIV COUNT( * ) DIV + 73 + - CAST( - ( + 61 ) AS SIGNED ) * CASE - - 84 WHEN 97 * - ( + 48 ) THEN - + 26 * - + COUNT( * ) ELSE + - COALESCE ( + 85, + ( 42 ) DIV 63 * 33 + - + 32 ) END col2
----
-5185

skipif mysql # not compatible
query I rowsort label-6458
SELECT + ( + - 11 ) / COUNT ( * ) / + 73 + - CAST ( - ( + 61 ) AS INTEGER ) * CASE - - 84 WHEN 97 * - ( + 48 ) THEN - + 26 * - + COUNT ( * ) ELSE + - COALESCE ( + 85, + ( 42 ) / 63 * 33 + - + 32 ) END col2
----
-5185

onlyif mysql # aggregate syntax: 
query II rowsort label-6459
SELECT ALL + 72 * - - 58 + 12, COUNT( * ) AS col2
----
4188
1

skipif mysql # not compatible
query II rowsort label-6459
SELECT ALL + 72 * - - 58 + 12, COUNT ( * ) AS col2
----
4188
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT DISTINCT - + COUNT( + 98 ) * - + NULLIF ( + 8, + 11 ) + + COUNT( * ) col1
----
9

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT - + COUNT ( + 98 ) * - + NULLIF ( + 8, + 11 ) + + COUNT ( * ) col1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6461
SELECT CAST( NULL AS SIGNED ) + + + COUNT( * ) * + ( - 19 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6461
SELECT CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + ( - 19 ) col1
----
NULL

query I rowsort
SELECT ( NULLIF ( 16, + COALESCE ( + - 33, + 94 ) ) ) * - 87 + 93 * + + 42 + ( + 86 ) + 46 + 66 + + 20
----
2732

query I rowsort
SELECT ALL - 86 * - - 57 + 85 + 90 * 78 AS col2
----
2203

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT DISTINCT + + COALESCE ( 67, + 92 + - 1, - - 90 + COUNT( * ) + + MAX( ALL - - 86 ) * + 21 + + + 16 * + ( + - 55 ), + - COUNT( * ) + - + 29 * + ( - 95 ) * - 22 ) * - 11
----
-737

skipif mysql # not compatible
query I rowsort label-6464
SELECT DISTINCT + + COALESCE ( 67, + 92 + - 1, - - 90 + COUNT ( * ) + + MAX ( ALL - - 86 ) * + 21 + + + 16 * + ( + - 55 ), + - COUNT ( * ) + - + 29 * + ( - 95 ) * - 22 ) * - 11
----
-737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT 27 * CAST( + + 38 AS SIGNED ) AS col0
----
1026

skipif mysql # not compatible
query I rowsort label-6465
SELECT 27 * CAST ( + + 38 AS INTEGER ) AS col0
----
1026

query I rowsort
SELECT DISTINCT - ( 91 )
----
-91

query I rowsort
SELECT ALL - 45 * - 94 + - + 25 * 99 + + 63 AS col2
----
1818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6468
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + 13 * - 59 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + 13 * - 59 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - SUM( 20 ) * - 43 * - 58 AS col1
----
-49880

skipif mysql # not compatible
query I rowsort label-6469
SELECT - SUM ( 20 ) * - 43 * - 58 AS col1
----
-49880

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT ALL 95 DIV 37
----
2

skipif mysql # not compatible
query I rowsort label-6470
SELECT ALL 95 / 37
----
2

query I rowsort
SELECT DISTINCT + 15 AS col1
----
15

query I rowsort
SELECT DISTINCT + 28 AS col0
----
28

query I rowsort
SELECT + ( + 32 ) * + COALESCE ( ( - 86 ), - - 54 + + 32 * - - 51, - 66 ) AS col0
----
-2752

onlyif mysql # DIV for integer division: 
query I rowsort label-6474
SELECT ALL + 5 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-6474
SELECT ALL + 5 / 89
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6475
SELECT - SUM( + 68 ) * SUM( - CAST( NULLIF ( - 87, 21 - + 84 + + + 4 + + + NULLIF ( + 57, - 79 ) ) AS SIGNED ) ) col0
----
-5916

skipif mysql # not compatible
query I rowsort label-6475
SELECT - SUM ( + 68 ) * SUM ( - CAST ( NULLIF ( - 87, 21 - + 84 + + + 4 + + + NULLIF ( + 57, - 79 ) ) AS INTEGER ) ) col0
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT - COUNT( - 46 )
----
-1

skipif mysql # not compatible
query I rowsort label-6476
SELECT - COUNT ( - 46 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT - 17 DIV - 64
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT - 17 / - 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6478
SELECT + 23 * - COUNT( * ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-6478
SELECT + 23 * - COUNT ( * ) AS col0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - SUM( - + 38 ) - - 65 col1
----
103

skipif mysql # not compatible
query I rowsort label-6479
SELECT - SUM ( - + 38 ) - - 65 col1
----
103

query I rowsort
SELECT ALL CASE + ( - - 68 ) WHEN + 96 THEN 86 WHEN - + 94 THEN NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 87 * + 55
----
-4785

onlyif mysql # DIV for integer division: 
query I rowsort label-6482
SELECT + 87 DIV ( 10 ) * - 81 * + - 8
----
5184

skipif mysql # not compatible
query I rowsort label-6482
SELECT + 87 / ( 10 ) * - 81 * + - 8
----
5184

query I rowsort
SELECT ALL ( 31 ) AS col1
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6484
SELECT + ( + 53 ) * - + COUNT( * ), 8 - - + ( 67 ) + - 75 + CAST( NULL AS SIGNED ) + 81 + + CAST( + - 64 AS SIGNED ) + + 20 AS col2
----
-53
NULL

skipif mysql # not compatible
query II rowsort label-6484
SELECT + ( + 53 ) * - + COUNT ( * ), 8 - - + ( 67 ) + - 75 + CAST ( NULL AS INTEGER ) + 81 + + CAST ( + - 64 AS INTEGER ) + + 20 AS col2
----
-53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6485
SELECT DISTINCT 28 DIV + 18 DIV + + ( COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-6485
SELECT DISTINCT 28 / + 18 / + + ( COUNT ( * ) )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT + + 75 - - 34 * - SUM( - NULLIF ( 39, 41 * - - 18 ) )
----
1401

skipif mysql # not compatible
query I rowsort label-6486
SELECT + + 75 - - 34 * - SUM ( - NULLIF ( 39, 41 * - - 18 ) )
----
1401

query I rowsort
SELECT ALL 9 col1
----
9

query II rowsort
SELECT + 21, 54 AS col0
----
21
54

query I rowsort
SELECT + 28 + ( + + 39 ) + + - 51 AS col2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT + COUNT( * ) - + - 97 + NULLIF ( - 4, + COUNT( * ) ) + COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-6490
SELECT + COUNT ( * ) - + - 97 + NULLIF ( - 4, + COUNT ( * ) ) + COUNT ( * )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + 42 * + 57 * - MIN( ALL + 43 )
----
-102942

skipif mysql # not compatible
query I rowsort label-6491
SELECT + 42 * + 57 * - MIN ( ALL + 43 )
----
-102942

onlyif mysql # aggregate syntax: 
query II rowsort label-6492
SELECT ALL + COUNT( * ) AS col2, 0
----
1
0

skipif mysql # not compatible
query II rowsort label-6492
SELECT ALL + COUNT ( * ) AS col2, 0
----
1
0

query I rowsort
SELECT DISTINCT 73 + + + 54
----
127

query I rowsort
SELECT ALL 47 + - - 46
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT ALL + MIN( DISTINCT + + ( + 17 ) )
----
17

skipif mysql # not compatible
query I rowsort label-6495
SELECT ALL + MIN ( DISTINCT + + ( + 17 ) )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6496
SELECT ALL + CAST( NULL AS SIGNED ) + - - 55 - + 43, - MIN( + - 80 ) AS col1
----
NULL
80

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL + CAST ( NULL AS INTEGER ) + - - 55 - + 43, - MIN ( + - 80 ) AS col1
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT + 44 * + 88 * - COUNT( * ) * - + 86 * + - 6 - + 67
----
-1998019

skipif mysql # not compatible
query I rowsort label-6497
SELECT + 44 * + 88 * - COUNT ( * ) * - + 86 * + - 6 - + 67
----
-1998019

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL + 39 / - + CAST( NULL AS SIGNED ) + 51 + - 87 + - - 52 * + 66 * - + 1 + - + 66 / + 44 * NULLIF ( + 73, - 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6498
SELECT ALL + 39 / - + CAST ( NULL AS INTEGER ) + 51 + - 87 + - - 52 * + 66 * - + 1 + - + 66 / + 44 * NULLIF ( + 73, - 85 )
----
NULL

query II rowsort
SELECT 30 AS col2, 22 AS col1
----
30
22

query I rowsort
SELECT DISTINCT + + 36 AS col1
----
36

query I rowsort
SELECT ALL - 25 * - + 31 + - 71 + - + 28 * - 46 AS col1
----
1992

query I rowsort
SELECT ALL + 1 AS col2
----
1

query I rowsort
SELECT DISTINCT - 64 * + 94
----
-6016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6504
SELECT DISTINCT - COALESCE ( + 10, 33 - - CAST( - 97 AS SIGNED ) * + + 81 DIV + - 40 + - - COUNT( * ), 88 * CAST( MIN( ALL + 61 ) AS SIGNED ) + + CAST( NULL AS SIGNED ) ) * COUNT( * ) - - 17 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT - COALESCE ( + 10, 33 - - CAST ( - 97 AS INTEGER ) * + + 81 / + - 40 + - - COUNT ( * ), 88 * CAST ( MIN ( ALL + 61 ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) - - 17 AS col0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6505
SELECT - 36 * CAST( NULL AS SIGNED ) * + COUNT( * ) * - 82 * 22
----
NULL

skipif mysql # not compatible
query I rowsort label-6505
SELECT - 36 * CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - 82 * 22
----
NULL

query II rowsort
SELECT + 48 + + - 64 AS col1, 7 AS col0
----
-16
7

onlyif mysql # aggregate syntax: 
query I rowsort label-6507
SELECT COUNT( * ) * - 25 * - 31 - 13 * + + 41
----
242

skipif mysql # not compatible
query I rowsort label-6507
SELECT COUNT ( * ) * - 25 * - 31 - 13 * + + 41
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT + COUNT( * ) + 60 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-6508
SELECT + COUNT ( * ) + 60 AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT - ( - + CASE + AVG ( - 54 ) WHEN + 46 THEN 3 ELSE - CASE + 40 WHEN + MAX( - - 49 ) * - 79 THEN NULL WHEN 12 * - 83 / + 84 / - 40 + 94 * - 20 / - 10 * - ( + 55 ) + 49 + - 26 THEN + 13 * - + 44 END END ) - - MAX( ALL - 13 ) - + NULLIF ( - 83, - 30 ) * - 84 * + CASE + - 37 WHEN - COUNT( * ) THEN + 67 ELSE NULL END * - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6509
SELECT - ( - + CASE + AVG ( - 54 ) WHEN + 46 THEN 3 ELSE - CASE + 40 WHEN + MAX ( - - 49 ) * - 79 THEN NULL WHEN 12 * - 83 / + 84 / - 40 + 94 * - 20 / - 10 * - ( + 55 ) + 49 + - 26 THEN + 13 * - + 44 END END ) - - MAX ( ALL - 13 ) - + NULLIF ( - 83, - 30 ) * - 84 * + CASE + - 37 WHEN - COUNT ( * ) THEN + 67 ELSE NULL END * - - 41
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6510
SELECT - CAST( NULL AS SIGNED ) * + + 49 / COUNT( * ) * - + 88 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6510
SELECT - CAST ( NULL AS INTEGER ) * + + 49 / COUNT ( * ) * - + 88 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 1 * + - 47 * + - 85 * - + 70 col1
----
-279650

query II rowsort
SELECT 10 * - 35 + - - 67 + - + 33 AS col2, + 52 AS col2
----
-316
52

query I rowsort
SELECT NULLIF ( 11, - 51 )
----
11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6514
SELECT ALL + CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL + CAST ( NULL AS REAL ) col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT + CASE + COUNT( * ) WHEN - 46 THEN - 46 ELSE NULL END * + - CAST( NULL AS SIGNED ) + 66 * 30 * - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT + CASE + COUNT ( * ) WHEN - 46 THEN - 46 ELSE NULL END * + - CAST ( NULL AS INTEGER ) + 66 * 30 * - 77
----
NULL

query I rowsort
SELECT DISTINCT + 5 AS col2
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6517
SELECT DISTINCT NULLIF ( 14, - + 8 * 76 * + + NULLIF ( NULLIF ( 99, ( - CAST( NULL AS SIGNED ) ) ), 11 ) + - - MAX( + ( + + ( - - ( - 65 ) ) ) ) )
----
14

skipif mysql # not compatible
query I rowsort label-6517
SELECT DISTINCT NULLIF ( 14, - + 8 * 76 * + + NULLIF ( NULLIF ( 99, ( - CAST ( NULL AS INTEGER ) ) ), 11 ) + - - MAX ( + ( + + ( - - ( - 65 ) ) ) ) )
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6518
SELECT ALL CAST( - + 27 AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL CAST ( - + 27 AS INTEGER )
----
-27

query I rowsort
SELECT DISTINCT 58 AS col1
----
58

query I rowsort
SELECT DISTINCT ( + - 71 )
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT - 75 + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 75 + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6522
SELECT DISTINCT - SUM( - - 60 ) DIV - - 28 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT - SUM ( - - 60 ) / - - 28 AS col1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6523
SELECT ALL CAST( - 37 AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL CAST ( - 37 AS INTEGER )
----
-37

query I rowsort
SELECT DISTINCT - 56 * - 91 AS col1
----
5096

query I rowsort
SELECT + 16 + 52 AS col2
----
68

query I rowsort
SELECT DISTINCT + 11 AS col1
----
11

query I rowsort
SELECT ALL - 7 + - + 15 + + - 1 col0
----
-23

query I rowsort
SELECT - 77 AS col0
----
-77

query I rowsort
SELECT - - 68 * - 87 col1
----
-5916

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL - NULLIF ( 8, + COUNT( * ) ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL - NULLIF ( 8, + COUNT ( * ) ) AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT - MIN( - 62 ) + - ( - + 91 ) + - 25
----
128

skipif mysql # not compatible
query I rowsort label-6531
SELECT - MIN ( - 62 ) + - ( - + 91 ) + - 25
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL - - COUNT( * ) + - 53 + - 86 + - COUNT( * ) * + 97 * - 74 + ( 23 ) AS col2
----
7063

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - - COUNT ( * ) + - 53 + - 86 + - COUNT ( * ) * + 97 * - 74 + ( 23 ) AS col2
----
7063

query I rowsort
SELECT ALL - 64
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6534
SELECT DISTINCT - COUNT( * ) DIV - 52 + - CAST( + 36 AS SIGNED ) * 6 DIV - 25 AS col0
----
8

skipif mysql # not compatible
query I rowsort label-6534
SELECT DISTINCT - COUNT ( * ) / - 52 + - CAST ( + 36 AS INTEGER ) * 6 / - 25 AS col0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT + COUNT( DISTINCT 47 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + COUNT ( DISTINCT 47 ) AS col2
----
1

query I rowsort
SELECT + + 86 + + 50
----
136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6537
SELECT DISTINCT - 80 + - 15 + 60 + 17 DIV + COUNT( * ) * COUNT( * )
----
-18

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - 80 + - 15 + 60 + 17 / + COUNT ( * ) * COUNT ( * )
----
-18

query I rowsort
SELECT + - 11 + 30 AS col1
----
19

query I rowsort
SELECT + + 80 AS col2
----
80

query I rowsort
SELECT ALL - + 52 AS col0
----
-52

query I rowsort
SELECT ALL - - 92 AS col2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT ALL + COUNT( * ) * - + 57 * - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL + COUNT ( * ) * - + 57 * - COUNT ( * )
----
57

onlyif mysql # aggregate syntax: 
query III rowsort label-6543
SELECT ALL - 22 AS col2, - 10 + 59, - COUNT( DISTINCT 15 ) * - 95 + + ( + + 28 ) + + 17 AS col1
----
-22
49
140

skipif mysql # not compatible
query III rowsort label-6543
SELECT ALL - 22 AS col2, - 10 + 59, - COUNT ( DISTINCT 15 ) * - 95 + + ( + + 28 ) + + 17 AS col1
----
-22
49
140

query I rowsort
SELECT 57 + 75
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT ALL 83 * - COUNT( * )
----
-83

skipif mysql # not compatible
query I rowsort label-6545
SELECT ALL 83 * - COUNT ( * )
----
-83

query I rowsort
SELECT ( + + 47 ) + + 13 + - 1 AS col0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6547
SELECT 14 * - ( 4 ) + 96 + - - COUNT( * ) * + COUNT( * ) col0, + 40 + COUNT( * ) AS col0
----
41
41

skipif mysql # not compatible
query II rowsort label-6547
SELECT 14 * - ( 4 ) + 96 + - - COUNT ( * ) * + COUNT ( * ) col0, + 40 + COUNT ( * ) AS col0
----
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-6548
SELECT 47 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6548
SELECT 47 / 91 AS col1
----
0

query I rowsort
SELECT 82 * - 43 AS col1
----
-3526

onlyif mysql # aggregate syntax: 
query II rowsort label-6550
SELECT 77 AS col2, 44 * - + COUNT( * )
----
77
-44

skipif mysql # not compatible
query II rowsort label-6550
SELECT 77 AS col2, 44 * - + COUNT ( * )
----
77
-44

query I rowsort
SELECT ALL - 95 col0
----
-95

query I rowsort
SELECT DISTINCT - NULLIF ( - 36, + 52 ) AS col1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT 17 DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT 17 / - 95
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6554
SELECT 85 * - ( + - COALESCE ( COUNT( + + 71 ), + 63 * + 15 + - CAST( AVG ( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ), - + 14 * + 12 + - + 36 ) ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-6554
SELECT 85 * - ( + - COALESCE ( COUNT ( + + 71 ), + 63 * + 15 + - CAST ( AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - + 14 * + 12 + - + 36 ) ) AS col1
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL + COUNT( * ) * - 41 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL + COUNT ( * ) * - 41 AS col0
----
-41

query I rowsort
SELECT 72 * - COALESCE ( 29, + - 40, - 23 ) col0
----
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-6557
SELECT 7 + - COUNT( * )
----
6

skipif mysql # not compatible
query I rowsort label-6557
SELECT 7 + - COUNT ( * )
----
6

query I rowsort
SELECT DISTINCT - 70 + - 2 * - 93 * 11 AS col2
----
1976

query I rowsort
SELECT - 65 AS col2
----
-65

query II rowsort
SELECT 28 AS col1, 98 AS col0
----
28
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6561
SELECT ALL - CASE - 67 WHEN 26 THEN + - 62 WHEN + + 65 / - 87 THEN - 53 - 69 * + CASE + + COALESCE ( + + 46, + CASE + 9 WHEN - NULLIF ( - - 6, 11 ) THEN NULL ELSE 38 END * - 86 * + 50 * + 87 ) WHEN + + 88 + - + 94 THEN + CASE + - 52 WHEN 71 THEN - + SUM( DISTINCT - 12 ) END / - - 24 END * 25 * + ( - + 76 ) * + 73 + + 57 + - - 57 / + - 23 END + 72, 25 col1
----
NULL
25

skipif mysql # not compatible
query II rowsort label-6561
SELECT ALL - CASE - 67 WHEN 26 THEN + - 62 WHEN + + 65 / - 87 THEN - 53 - 69 * + CASE + + COALESCE ( + + 46, + CASE + 9 WHEN - NULLIF ( - - 6, 11 ) THEN NULL ELSE 38 END * - 86 * + 50 * + 87 ) WHEN + + 88 + - + 94 THEN + CASE + - 52 WHEN 71 THEN - + SUM ( DISTINCT - 12 ) END / - - 24 END * 25 * + ( - + 76 ) * + 73 + + 57 + - - 57 / + - 23 END + 72, 25 col1
----
NULL
25

query I rowsort
SELECT ALL - 67 * + 81 + 52
----
-5375

query I rowsort
SELECT DISTINCT + 8 + 37
----
45

query I rowsort
SELECT + 68 - + 7
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL + SUM( + 11 ) + - 19 * 86 + + 79 AS col0
----
-1544

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + SUM ( + 11 ) + - 19 * 86 + + 79 AS col0
----
-1544

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL - NULLIF ( - 62, 92 * ( - + 90 ) + + MIN( + 26 ) ) + 95 * - 88
----
-8298

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - NULLIF ( - 62, 92 * ( - + 90 ) + + MIN ( + 26 ) ) + 95 * - 88
----
-8298

query II rowsort
SELECT - + 77 AS col2, 29 + - 7 + - 52 + - 13 * ( - 85 ) * + 28 * + 1 AS col0
----
-77
30910

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - + MIN( ALL ( - 73 ) ) + + 17 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - + MIN ( ALL ( - 73 ) ) + + 17 AS col1
----
90

query I rowsort
SELECT ALL + 66 AS col0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6570
SELECT - COALESCE ( 47, - - COALESCE ( - ( - - 98 ), - NULLIF ( - - 47, - 75 * + CAST( NULL AS SIGNED ) * + 41 + + - 17 ) ) * + 35 - - 85 * 39, - 8 + + + 52 * 17 ) - + 90 AS col1
----
-137

skipif mysql # not compatible
query I rowsort label-6570
SELECT - COALESCE ( 47, - - COALESCE ( - ( - - 98 ), - NULLIF ( - - 47, - 75 * + CAST ( NULL AS INTEGER ) * + 41 + + - 17 ) ) * + 35 - - 85 * 39, - 8 + + + 52 * 17 ) - + 90 AS col1
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT - ( COUNT( + + 32 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-6571
SELECT - ( COUNT ( + + 32 ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT ALL - COUNT( * ) - 50
----
-51

skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - COUNT ( * ) - 50
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6573
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6573
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT DISTINCT + - 34 - + ( 34 ) * - + ( + COUNT( * ) ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6574
SELECT DISTINCT + - 34 - + ( 34 ) * - + ( + COUNT ( * ) ) col0
----
0

query I rowsort
SELECT ( 54 ) AS col0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT ALL - + CAST( NULL AS SIGNED ) * - COALESCE ( + 20, + 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - + CAST ( NULL AS INTEGER ) * - COALESCE ( + 20, + 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT DISTINCT + ( + - ( - + COUNT( DISTINCT 41 ) ) ) - - ( 70 ) AS col2
----
71

skipif mysql # not compatible
query I rowsort label-6577
SELECT DISTINCT + ( + - ( - + COUNT ( DISTINCT 41 ) ) ) - - ( 70 ) AS col2
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6578
SELECT 71 * - CASE - COALESCE ( - + 47, - - CAST( 94 AS SIGNED ), - 42 ) WHEN - + 51 THEN + 65 END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6578
SELECT 71 * - CASE - COALESCE ( - + 47, - - CAST ( 94 AS INTEGER ), - 42 ) WHEN - + 51 THEN + 65 END col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6579
SELECT ALL - COUNT( * ) DIV 36 * + ( - COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL - COUNT ( * ) / 36 * + ( - COUNT ( * ) )
----
0

query I rowsort
SELECT + 21 AS col2
----
21

query I rowsort
SELECT DISTINCT - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT MAX( ALL - 38 )
----
-38

skipif mysql # not compatible
query I rowsort label-6582
SELECT MAX ( ALL - 38 )
----
-38

query I rowsort
SELECT DISTINCT 30 * - 35 AS col0
----
-1050

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL 65 * - + MAX( - 35 )
----
2275

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL 65 * - + MAX ( - 35 )
----
2275

query I rowsort
SELECT 76 + 7 AS col2
----
83

query II rowsort
SELECT 68, 23 + - - 35 * - 30 col2
----
68
-1027

query II rowsort
SELECT + 95 AS col0, + 22
----
95
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL CASE + SUM( DISTINCT 8 ) WHEN 95 THEN - COUNT( * ) * 15 ELSE + - 5 END + - 21
----
-26

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL CASE + SUM ( DISTINCT 8 ) WHEN 95 THEN - COUNT ( * ) * 15 ELSE + - 5 END + - 21
----
-26

query I rowsort
SELECT ALL - 27 AS col0
----
-27

query I rowsort
SELECT ALL 29 + ( - 87 ) AS col0
----
-58

query I rowsort
SELECT 66 + + + 27
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - SUM( + 67 ) * + 41 - - 99 AS col1
----
-2648

skipif mysql # not compatible
query I rowsort label-6592
SELECT - SUM ( + 67 ) * + 41 - - 99 AS col1
----
-2648

query I rowsort
SELECT 56 * - - 22 * - 32 * + - 85 + - 67 AS col2
----
3350973

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT 11 + - 78 - - - COUNT( * ) AS col2
----
-68

skipif mysql # not compatible
query I rowsort label-6594
SELECT 11 + - 78 - - - COUNT ( * ) AS col2
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT 20 + - 53 * + 31 * COUNT( * )
----
-1623

skipif mysql # not compatible
query I rowsort label-6595
SELECT 20 + - 53 * + 31 * COUNT ( * )
----
-1623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6596
SELECT ALL MAX( - 75 ) + - CAST( COUNT( * ) AS SIGNED ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL MAX ( - 75 ) + - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6597
SELECT + 13 * - - COUNT( DISTINCT 68 ) * 57 + 1 * 99 * - + 69 AS col0
----
-6090

skipif mysql # not compatible
query I rowsort label-6597
SELECT + 13 * - - COUNT ( DISTINCT 68 ) * 57 + 1 * 99 * - + 69 AS col0
----
-6090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6598
SELECT ALL COUNT( * ) DIV - 95
----
0

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL COUNT ( * ) / - 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT DISTINCT 28 + + COUNT( * )
----
29

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT 28 + + COUNT ( * )
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6600
SELECT + - SUM( - ( + + 40 ) ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6600
SELECT + - SUM ( - ( + + 40 ) ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ALL 35 + + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL 35 + + COUNT ( * )
----
36

query I rowsort
SELECT ALL - - 74 + + 13 - - 78
----
165

query I rowsort
SELECT ALL - ( - - 51 )
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT 37 + + + COALESCE ( - 72, + COUNT( + 2 ) ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-6604
SELECT 37 + + + COALESCE ( - 72, + COUNT ( + 2 ) ) AS col2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT 25 * 82 + - - COUNT( * ) AS col2
----
2051

skipif mysql # not compatible
query I rowsort label-6605
SELECT 25 * 82 + - - COUNT ( * ) AS col2
----
2051

query I rowsort
SELECT - 57 AS col1
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6607
SELECT ALL + 12 AS col2, + COUNT( * )
----
12
1

skipif mysql # not compatible
query II rowsort label-6607
SELECT ALL + 12 AS col2, + COUNT ( * )
----
12
1

query I rowsort
SELECT ALL - - 82 - 18
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6609
SELECT 6 AS col0, + 63 + MAX( + - 79 ) + - + 95 col2
----
6
-111

skipif mysql # not compatible
query II rowsort label-6609
SELECT 6 AS col0, + 63 + MAX ( + - 79 ) + - + 95 col2
----
6
-111

query I rowsort
SELECT - - 17 AS col2
----
17

query II rowsort
SELECT ALL + 50, - 42 + + 70 AS col0
----
50
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6612
SELECT - - CAST( NULL AS DECIMAL ) + - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6612
SELECT - - CAST ( NULL AS REAL ) + - 34
----
NULL

query I rowsort
SELECT DISTINCT 75 AS col1
----
75

query I rowsort
SELECT - - 42 + 56
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6615
SELECT - - 84 * + COALESCE ( - - 42, + 54 * + COUNT( * ) DIV - 15 * + 51 + - - 9 ) AS col1
----
3528

skipif mysql # not compatible
query I rowsort label-6615
SELECT - - 84 * + COALESCE ( - - 42, + 54 * + COUNT ( * ) / - 15 * + 51 + - - 9 ) AS col1
----
3528

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL ( - CASE - ( 0 ) WHEN - 67 THEN - 77 * + - 6 * COUNT( * ) * + COUNT( - + 13 ) / + 57 ELSE NULL END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL ( - CASE - ( 0 ) WHEN - 67 THEN - 77 * + - 6 * COUNT ( * ) * + COUNT ( - + 13 ) / + 57 ELSE NULL END ) AS col1
----
NULL

query I rowsort
SELECT - 27 + 42 * + 71
----
2955

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT - CASE + + 83 WHEN + COUNT( * ) + COUNT( * ) / ( - 42 ) THEN - 37 WHEN - 71 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6618
SELECT - CASE + + 83 WHEN + COUNT ( * ) + COUNT ( * ) / ( - 42 ) THEN - 37 WHEN - 71 THEN NULL END
----
NULL

query I rowsort
SELECT - 31 + - 65 AS col0
----
-96

query I rowsort
SELECT DISTINCT + 42 * - 9 * - 18 col1
----
6804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6621
SELECT ALL CAST( NULL AS SIGNED ) * COALESCE ( - CASE - 28 WHEN 36 THEN + CAST( 21 AS SIGNED ) * + 32 * - - 90 * + 55 ELSE COUNT( * ) END, - 68 ) + 23 + - COUNT( * ) * - - 90 - - 20 * + 22 * - 66 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL CAST ( NULL AS INTEGER ) * COALESCE ( - CASE - 28 WHEN 36 THEN + CAST ( 21 AS INTEGER ) * + 32 * - - 90 * + 55 ELSE COUNT ( * ) END, - 68 ) + 23 + - COUNT ( * ) * - - 90 - - 20 * + 22 * - 66 AS col1
----
NULL

query I rowsort
SELECT ALL + 47 AS col0
----
47

query I rowsort
SELECT + 87 col2
----
87

query I rowsort
SELECT DISTINCT + 42 * + 80 * 23
----
77280

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT + COUNT( 71 )
----
1

skipif mysql # not compatible
query I rowsort label-6625
SELECT + COUNT ( 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6626
SELECT ALL 79 * + NULLIF ( + 50, 37 ) + 55 + COUNT( * )
----
4006

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL 79 * + NULLIF ( + 50, 37 ) + 55 + COUNT ( * )
----
4006

onlyif mysql # aggregate syntax: 
query II rowsort label-6627
SELECT + 41 + + COUNT( * ) AS col1, 43 * + 69 + - - 18
----
42
2985

skipif mysql # not compatible
query II rowsort label-6627
SELECT + 41 + + COUNT ( * ) AS col1, 43 * + 69 + - - 18
----
42
2985

query I rowsort
SELECT + 98 AS col0
----
98

query I rowsort
SELECT DISTINCT + 49 col0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6630
SELECT NULLIF ( - 56, + 55 + + MAX( ALL + 37 ) ) AS col1, - MIN( 20 ) AS col0
----
-56
-20

skipif mysql # not compatible
query II rowsort label-6630
SELECT NULLIF ( - 56, + 55 + + MAX ( ALL + 37 ) ) AS col1, - MIN ( 20 ) AS col0
----
-56
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6631
SELECT CASE - 64 WHEN CASE 92 WHEN 73 THEN - + 7 * + - COUNT( * ) + + 16 + - + 96 WHEN - - 50 * - 83 * + 20 THEN - 59 * 68 + - - COUNT( * ) * - + COUNT( * ) + - 51 ELSE 40 + - COALESCE ( 82, - CASE CAST( + 21 AS SIGNED ) WHEN - + 0 + ( + + 73 ) + - 30 * 20 * 80 THEN NULL ELSE + ( + - ( + MAX( - 46 ) ) ) * + COALESCE ( - ( 50 ), - COALESCE ( - CAST( NULL AS SIGNED ), 59 + + 59, + 63 - + 43 ) * 88 + 26 ) - + COUNT( + 5 ) / - 25 END ) END + - 43 THEN MIN( 80 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT CASE - 64 WHEN CASE 92 WHEN 73 THEN - + 7 * + - COUNT ( * ) + + 16 + - + 96 WHEN - - 50 * - 83 * + 20 THEN - 59 * 68 + - - COUNT ( * ) * - + COUNT ( * ) + - 51 ELSE 40 + - COALESCE ( 82, - CASE CAST ( + 21 AS INTEGER ) WHEN - + 0 + ( + + 73 ) + - 30 * 20 * 80 THEN NULL ELSE + ( + - ( + MAX ( - 46 ) ) ) * + COALESCE ( - ( 50 ), - COALESCE ( - CAST ( NULL AS INTEGER ), 59 + + 59, + 63 - + 43 ) * 88 + 26 ) - + COUNT ( + 5 ) / - 25 END ) END + - 43 THEN MIN ( 80 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6632
SELECT NULLIF ( - 39, - + 47 / + MAX( 33 ) - + CASE + 42 WHEN - - 6 THEN NULL WHEN + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + - 79 + SUM( DISTINCT - 20 ) * ( - 60 ) THEN 75 END )
----
-39

skipif mysql # not compatible
query I rowsort label-6632
SELECT NULLIF ( - 39, - + 47 / + MAX ( 33 ) - + CASE + 42 WHEN - - 6 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + - 79 + SUM ( DISTINCT - 20 ) * ( - 60 ) THEN 75 END )
----
-39

query I rowsort
SELECT ALL + 62
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT ALL + 84 * + + 32 * - - 68 + COUNT( * ) - 96
----
182689

skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + 84 * + + 32 * - - 68 + COUNT ( * ) - 96
----
182689

onlyif mysql # DIV for integer division: 
query II rowsort label-6635
SELECT - 81 * - 42 AS col2, + 12 DIV 48 + - 18 + + + 41
----
3402
23

skipif mysql # not compatible
query II rowsort label-6635
SELECT - 81 * - 42 AS col2, + 12 / 48 + - 18 + + + 41
----
3402
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6636
SELECT CASE MIN( - 35 ) WHEN ( ( 35 ) ) THEN - + 63 WHEN + 17 + - + 85 THEN - CASE - MAX( DISTINCT + NULLIF ( + 48, - + 63 * - 74 + 62 ) ) WHEN - 9 * - COUNT( * ) - + + 51 THEN + 20 * - 91 WHEN 52 * CAST( - 70 AS SIGNED ) + + + ( - COUNT( * ) ) + + 90 + - NULLIF ( + COUNT( * ), 29 + - COUNT( * ) ) + + NULLIF ( + + 60, + 26 + + 15 - + 18 / + + 74 * + 40 + 3 + 78 ) + - 2 + + 11 / - 56 * - CASE - 84 WHEN + 6 * 26 + + 61 * 30 THEN NULL WHEN - COUNT( * ) THEN 7 WHEN + CASE + 56 WHEN 52 THEN MIN( DISTINCT 32 ) + - 86 END THEN NULL END THEN + 64 + - 43 ELSE + COUNT( * ) END * CAST( NULL AS SIGNED ) + - 71 WHEN ( 56 ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT CASE MIN ( - 35 ) WHEN ( ( 35 ) ) THEN - + 63 WHEN + 17 + - + 85 THEN - CASE - MAX ( DISTINCT + NULLIF ( + 48, - + 63 * - 74 + 62 ) ) WHEN - 9 * - COUNT ( * ) - + + 51 THEN + 20 * - 91 WHEN 52 * CAST ( - 70 AS INTEGER ) + + + ( - COUNT ( * ) ) + + 90 + - NULLIF ( + COUNT ( * ), 29 + - COUNT ( * ) ) + + NULLIF ( + + 60, + 26 + + 15 - + 18 / + + 74 * + 40 + 3 + 78 ) + - 2 + + 11 / - 56 * - CASE - 84 WHEN + 6 * 26 + + 61 * 30 THEN NULL WHEN - COUNT ( * ) THEN 7 WHEN + CASE + 56 WHEN 52 THEN MIN ( DISTINCT 32 ) + - 86 END THEN NULL END THEN + 64 + - 43 ELSE + COUNT ( * ) END * CAST ( NULL AS INTEGER ) + - 71 WHEN ( 56 ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6637
SELECT DISTINCT - 51 * + - ( + COUNT( * ) ) * COUNT( * ) + + - CASE WHEN NOT - 39 > NULL THEN + ( + 1 ) DIV - - 84 WHEN NOT - 46 IS NOT NULL THEN NULL ELSE 35 - - + 80 END * + 98
----
-11219

skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - 51 * + - ( + COUNT ( * ) ) * COUNT ( * ) + + - CASE WHEN NOT - 39 > NULL THEN + ( + 1 ) / - - 84 WHEN NOT - 46 IS NOT NULL THEN NULL ELSE 35 - - + 80 END * + 98
----
-11219

onlyif mysql # aggregate syntax: 
query I rowsort label-6638
SELECT ALL + SUM( DISTINCT 0 ) * - 0 * - 95 * + + 11 + - 28
----
-28

skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + SUM ( DISTINCT 0 ) * - 0 * - 95 * + + 11 + - 28
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL + - COALESCE ( SUM( ALL - + ( - 87 ) ), - COUNT( * ) * 84 ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL + - COALESCE ( SUM ( ALL - + ( - 87 ) ), - COUNT ( * ) * 84 ) AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT + - CASE + - 47 WHEN + 34 - - CASE - CASE - MAX( ALL 84 ) WHEN - - COALESCE ( - + 38, 45 - 9 + 9 + - - 49 / CASE - 88 WHEN + 58 / - 55 - + - ( 63 ) THEN NULL WHEN + 80 THEN NULL ELSE 3 - COALESCE ( NULLIF ( CAST( + 71 AS SIGNED ), ( 95 ) ), 65 / 52 * 49, - 77 ) END * - - 99 * + 55 ) * - 75 + 26 THEN - - 84 WHEN 36 THEN - + 42 ELSE NULL END WHEN 84 THEN 65 * 23 WHEN - - 46 THEN NULL END THEN 98 END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT + - CASE + - 47 WHEN + 34 - - CASE - CASE - MAX ( ALL 84 ) WHEN - - COALESCE ( - + 38, 45 - 9 + 9 + - - 49 / CASE - 88 WHEN + 58 / - 55 - + - ( 63 ) THEN NULL WHEN + 80 THEN NULL ELSE 3 - COALESCE ( NULLIF ( CAST ( + 71 AS INTEGER ), ( 95 ) ), 65 / 52 * 49, - 77 ) END * - - 99 * + 55 ) * - 75 + 26 THEN - - 84 WHEN 36 THEN - + 42 ELSE NULL END WHEN 84 THEN 65 * 23 WHEN - - 46 THEN NULL END THEN 98 END * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT + + 46
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6642
SELECT + 46 * + COUNT( * ) * SUM( + + 41 ) + - 13, 36 AS col2
----
1873
36

skipif mysql # not compatible
query II rowsort label-6642
SELECT + 46 * + COUNT ( * ) * SUM ( + + 41 ) + - 13, 36 AS col2
----
1873
36

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT ALL - - COUNT( * ) * + 51 - 87 - + - 32 * + 7 * + 22 * 26 AS col2, MAX( + 38 ) * - 88 + 5
----
128092
-3339

skipif mysql # not compatible
query II rowsort label-6643
SELECT ALL - - COUNT ( * ) * + 51 - 87 - + - 32 * + 7 * + 22 * 26 AS col2, MAX ( + 38 ) * - 88 + 5
----
128092
-3339

query II rowsort
SELECT + 39 * 34 AS col0, 91
----
1326
91

query I rowsort
SELECT + 52 - + 16
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6646
SELECT DISTINCT COUNT( DISTINCT 74 ) DIV 26 + - 72 * - 93 AS col1
----
6696

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT COUNT ( DISTINCT 74 ) / 26 + - 72 * - 93 AS col1
----
6696

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + 66 - + 33 * + CASE - 32 WHEN + COALESCE ( - - ( - 63 ), - + COUNT( * ), 95 ) THEN + 10 END * + + 3 + 78 + 26 - + 76 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-6647
SELECT + 66 - + 33 * + CASE - 32 WHEN + COALESCE ( - - ( - 63 ), - + COUNT ( * ), 95 ) THEN + 10 END * + + 3 + 78 + 26 - + 76 * 34
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6648
SELECT DISTINCT 53 DIV 25 col0, COUNT( * )
----
2
1

skipif mysql # not compatible
query II rowsort label-6648
SELECT DISTINCT 53 / 25 col0, COUNT ( * )
----
2
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6649
SELECT + + 19 + 24 * 48 * + + 1 * + + COUNT( + 99 ) AS col2
----
1171

skipif mysql # not compatible
query I rowsort label-6649
SELECT + + 19 + 24 * 48 * + + 1 * + + COUNT ( + 99 ) AS col2
----
1171

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6650
SELECT + + 13 DIV - - COUNT( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END DIV - - ( + SUM( DISTINCT 73 ) ) - - 66 - + + MIN( ALL 61 ) + - + ( - COUNT( * ) ) * 43 * - 78 AS col0
----
13
-3350

skipif mysql # not compatible
query II rowsort label-6650
SELECT + + 13 / - - COUNT ( * ), + CASE WHEN NOT + ( 39 ) BETWEEN 86 + SUM ( ALL 1 ) * + 57 + + 57 - - + 26 AND + + 95 THEN - CASE WHEN 3 < 28 THEN + + ( + 78 ) END ELSE NULL END / - - ( + SUM ( DISTINCT 73 ) ) - - 66 - + + MIN ( ALL 61 ) + - + ( - COUNT ( * ) ) * 43 * - 78 AS col0
----
13
-3350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6651
SELECT + 41 * 96, CAST( - ( 29 ) AS SIGNED ) AS col2
----
3936
-29

skipif mysql # not compatible
query II rowsort label-6651
SELECT + 41 * 96, CAST ( - ( 29 ) AS INTEGER ) AS col2
----
3936
-29

query I rowsort
SELECT ALL - 90 AS col1
----
-90

query I rowsort
SELECT DISTINCT - 0 * + 11 * - 96 AS col0
----
0

query I rowsort
SELECT DISTINCT NULLIF ( + 38, - 94 ) col2
----
38

query I rowsort
SELECT ALL + 55 + + + 95 * 9 AS col2
----
910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT + CASE 24 WHEN + 1 THEN NULL WHEN - 67 THEN NULL ELSE 16 END * - - ( + CAST( - 18 AS SIGNED ) )
----
-288

skipif mysql # not compatible
query I rowsort label-6656
SELECT + CASE 24 WHEN + 1 THEN NULL WHEN - 67 THEN NULL ELSE 16 END * - - ( + CAST ( - 18 AS INTEGER ) )
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-6657
SELECT ALL 1 + + ( + 3 ) DIV + + 49
----
1

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL 1 + + ( + 3 ) / + + 49
----
1

query I rowsort
SELECT ALL ( + 79 )
----
79

query I rowsort
SELECT - 85 col0
----
-85

query I rowsort
SELECT + 35 + - 33 AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6661
SELECT CAST( 88 AS SIGNED ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-6661
SELECT CAST ( 88 AS INTEGER ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6662
SELECT - 17 * - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6662
SELECT - 17 * - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT + 62 * - + 40 * - ( 11 ) - 9 + - 28 * - - 6 * + + 30
----
22231

query I rowsort
SELECT DISTINCT + 11 * + + 88 AS col1
----
968

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6665
SELECT DISTINCT 12 DIV + CAST( - ( + 9 ) AS SIGNED ) + SUM( 78 )
----
77

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT 12 / + CAST ( - ( + 9 ) AS INTEGER ) + SUM ( 78 )
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - 81 + + 52 - + + 2 + + 5 + + COUNT( * ) * + 44 * ( - 19 ) * + 22
----
-18418

skipif mysql # not compatible
query I rowsort label-6666
SELECT - 81 + + 52 - + + 2 + + 5 + + COUNT ( * ) * + 44 * ( - 19 ) * + 22
----
-18418

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT ALL 86 DIV - + ( - 94 ) + - 99 AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL 86 / - + ( - 94 ) + - 99 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6668
SELECT DISTINCT + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-6668
SELECT DISTINCT + COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6669
SELECT CAST( NULL AS SIGNED ) AS col1, 43
----
NULL
43

skipif mysql # not compatible
query II rowsort label-6669
SELECT CAST ( NULL AS INTEGER ) AS col1, 43
----
NULL
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL + COUNT( * ) * - COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + COUNT ( * ) * - COUNT ( * )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6671
SELECT - 96 * CASE + + 66 WHEN + + 11 * + 92 + + + 41 * + - 75 THEN COUNT( * ) - 71 ELSE NULL END + + 88
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT - 96 * CASE + + 66 WHEN + + 11 * + 92 + + + 41 * + - 75 THEN COUNT ( * ) - 71 ELSE NULL END + + 88
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6672
SELECT - + CASE - + 11 WHEN - + 71 + ( CAST( NULL AS DECIMAL ) ) + - COUNT( * ) THEN 25 ELSE COUNT( * ) * - CAST( NULL AS DECIMAL ) + 97 + + 35 END * 41 + + 6 AS col2, + 97 - + + 69 col2
----
NULL
28

skipif mysql # not compatible
query II rowsort label-6672
SELECT - + CASE - + 11 WHEN - + 71 + ( CAST ( NULL AS REAL ) ) + - COUNT ( * ) THEN 25 ELSE COUNT ( * ) * - CAST ( NULL AS REAL ) + 97 + + 35 END * 41 + + 6 AS col2, + 97 - + + 69 col2
----
NULL
28

query II rowsort
SELECT ALL + 18, 1 AS col1
----
18
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT 8 / CAST( NULL AS SIGNED ) + + 13 * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT 8 / CAST ( NULL AS INTEGER ) + + 13 * + 93 AS col0
----
NULL

query I rowsort
SELECT - ( 48 ) AS col2
----
-48

query I rowsort
SELECT ALL - 95 AS col1
----
-95

query I rowsort
SELECT DISTINCT - - NULLIF ( 70, + - 52 ) AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6678
SELECT ALL - + SUM( ALL + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL - + SUM ( ALL + 47 )
----
-47

query II rowsort
SELECT + 92 AS col2, - 42
----
92
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6680
SELECT + 50 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6680
SELECT + 50 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - + 20
----
-20

query II rowsort
SELECT + + 31 col2, - 85 AS col1
----
31
-85

query I rowsort
SELECT ALL 3 * + 10
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT ALL + 12 * - CASE - 17 WHEN + + COUNT( * ) THEN + 13 * + - 36 * 91 * - 39 ELSE + 62 END + - + 23 col0
----
-767

skipif mysql # not compatible
query I rowsort label-6684
SELECT ALL + 12 * - CASE - 17 WHEN + + COUNT ( * ) THEN + 13 * + - 36 * 91 * - 39 ELSE + 62 END + - + 23 col0
----
-767

query I rowsort
SELECT - 32 AS col0
----
-32

query II rowsort
SELECT - 43, 40 - + 68 AS col2
----
-43
-28

query II rowsort
SELECT - 2 * + - 54 + - 74, + 76 AS col1
----
34
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + MIN( ALL 9 )
----
9

skipif mysql # not compatible
query I rowsort label-6688
SELECT + MIN ( ALL 9 )
----
9

query II rowsort
SELECT 56 * + 67 * + 95 * - 3 AS col2, - 47 * + 51 + - 93 AS col0
----
-1069320
-2490

onlyif mysql # aggregate syntax: 
query II rowsort label-6690
SELECT + 9 * - CASE - COUNT( * ) WHEN - - 70 THEN - + 59 + - 11 + - + 5 ELSE NULL END + - + MIN( ALL 46 ) AS col2, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6690
SELECT + 9 * - CASE - COUNT ( * ) WHEN - - 70 THEN - + 59 + - 11 + - + 5 ELSE NULL END + - + MIN ( ALL 46 ) AS col2, COUNT ( * ) AS col0
----
NULL
1

query I rowsort
SELECT 15 + 76 AS col0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6692
SELECT ALL + CAST( + 61 AS SIGNED ) + + - 30 AS col2, COUNT( * )
----
31
1

skipif mysql # not compatible
query II rowsort label-6692
SELECT ALL + CAST ( + 61 AS INTEGER ) + + - 30 AS col2, COUNT ( * )
----
31
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT + SUM( 74 ) + - 58
----
16

skipif mysql # not compatible
query I rowsort label-6693
SELECT + SUM ( 74 ) + - 58
----
16

query I rowsort
SELECT DISTINCT + 60 + + 95 AS col0
----
155

query II rowsort
SELECT ALL 42 * - 79, 93 col0
----
-3318
93

query I rowsort
SELECT ALL 54 + - 83 AS col0
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-6697
SELECT 56 DIV + 27 AS col1, 65 + 5 col1
----
2
70

skipif mysql # not compatible
query II rowsort label-6697
SELECT 56 / + 27 AS col1, 65 + 5 col1
----
2
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6698
SELECT 92 + 84 * CASE 60 WHEN + - COUNT( * ) + + NULLIF ( - 41, - 91 + CAST( NULL AS SIGNED ) + - 33 + - ( - - 48 ) * 8 ) + + + 14 * - 58 * - - COUNT( DISTINCT - 93 ) THEN NULL ELSE + CASE + - MIN( + CAST( + + 12 AS SIGNED ) ) WHEN COUNT( * ) THEN + + 95 * + 54 + - - 56 * - 81 + + - ( - 95 ) END * + 68 - + - 36 * - 99 - + 53 + ( + 17 ) + - - COALESCE ( MIN( + 14 ), - - COUNT( * ) * 91 * - 25 + + - 83 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6698
SELECT 92 + 84 * CASE 60 WHEN + - COUNT ( * ) + + NULLIF ( - 41, - 91 + CAST ( NULL AS INTEGER ) + - 33 + - ( - - 48 ) * 8 ) + + + 14 * - 58 * - - COUNT ( DISTINCT - 93 ) THEN NULL ELSE + CASE + - MIN ( + CAST ( + + 12 AS INTEGER ) ) WHEN COUNT ( * ) THEN + + 95 * + 54 + - - 56 * - 81 + + - ( - 95 ) END * + 68 - + - 36 * - 99 - + 53 + ( + 17 ) + - - COALESCE ( MIN ( + 14 ), - - COUNT ( * ) * 91 * - 25 + + - 83 ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6699
SELECT CASE 34 WHEN - ( - 4 ) THEN + CAST( COUNT( 8 ) AS SIGNED ) * 53 + + + 64 + - NULLIF ( 20, + ( 84 ) ) + COALESCE ( + 93, - 8 * + 94 ) / + - 5 END * - - ( 50 ) * - 48 + + 0 + + - 45 / + + CAST( + MAX( - NULLIF ( 91, + - 27 ) ) AS SIGNED ) + 2 * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT CASE 34 WHEN - ( - 4 ) THEN + CAST ( COUNT ( 8 ) AS INTEGER ) * 53 + + + 64 + - NULLIF ( 20, + ( 84 ) ) + COALESCE ( + 93, - 8 * + 94 ) / + - 5 END * - - ( 50 ) * - 48 + + 0 + + - 45 / + + CAST ( + MAX ( - NULLIF ( 91, + - 27 ) ) AS INTEGER ) + 2 * COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT CAST( NULL AS SIGNED ) + 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT CAST ( NULL AS INTEGER ) + 37 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL COUNT( * ) + - 84 * + + 37 AS col1
----
-3107

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL COUNT ( * ) + - 84 * + + 37 AS col1
----
-3107

query I rowsort
SELECT 11 + + - ( - 2 ) + - + 62 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT 20 + NULLIF ( 40, + COUNT( * ) - - - 32 + + 32 * - 4 * + 91 / 91 ) * + 16 col0
----
660

skipif mysql # not compatible
query I rowsort label-6703
SELECT 20 + NULLIF ( 40, + COUNT ( * ) - - - 32 + + 32 * - 4 * + 91 / 91 ) * + 16 col0
----
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6704
SELECT CAST( + COUNT( * ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) / + 63 / 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6704
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) / + 63 / 26 AS col1
----
NULL

query I rowsort
SELECT ALL 11 + + - 72 + + - 35 + 17 * + 95 * - 28 * 50
----
-2261096

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL - COUNT( ALL - 18 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL - COUNT ( ALL - 18 ) AS col1
----
-1

query I rowsort
SELECT DISTINCT - 42
----
-42

query I rowsort
SELECT 17 * + 67
----
1139

query I rowsort
SELECT DISTINCT - 87 col0
----
-87

query I rowsort
SELECT + 60 AS col1
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6711
SELECT 26 + - 73 * + + 12 + - CAST( NULL AS SIGNED ) * 43 * + SUM( + 4 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT 26 + - 73 * + + 12 + - CAST ( NULL AS INTEGER ) * 43 * + SUM ( + 4 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6712
SELECT 26 * + NULLIF ( - + 58, - NULLIF ( - - 68, + 15 DIV 67 ) + + - COUNT( * ) ) * - 67 + + NULLIF ( - 42, - 75 ) DIV - 76 + + COUNT( * )
----
101037

skipif mysql # not compatible
query I rowsort label-6712
SELECT 26 * + NULLIF ( - + 58, - NULLIF ( - - 68, + 15 / 67 ) + + - COUNT ( * ) ) * - 67 + + NULLIF ( - 42, - 75 ) / - 76 + + COUNT ( * )
----
101037

query I rowsort
SELECT + 94 * - + ( - 64 )
----
6016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6714
SELECT ALL 90 DIV COALESCE ( - 92, CASE - COUNT( * ) WHEN 26 THEN - 89 WHEN + 14 DIV + 47 * 77 THEN - ( - AVG ( DISTINCT - - 91 ) ) * + 57 DIV + 59 DIV + + ( + NULLIF ( - - 50, + MIN( ALL + 50 ) ) ) END, - 57 * - 58 + 51 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6714
SELECT ALL 90 / COALESCE ( - 92, CASE - COUNT ( * ) WHEN 26 THEN - 89 WHEN + 14 / + 47 * 77 THEN - ( - AVG ( DISTINCT - - 91 ) ) * + 57 / + 59 / + + ( + NULLIF ( - - 50, + MIN ( ALL + 50 ) ) ) END, - 57 * - 58 + 51 ) AS col0
----
0

query II rowsort
SELECT DISTINCT - - ( - - 81 ) * + - ( + 63 ), 10 AS col1
----
-5103
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6716
SELECT ALL - - CASE 58 WHEN + + 71 - - ( + 35 ) THEN NULL ELSE 5 DIV + COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - - CASE 58 WHEN + + 71 - - ( + 35 ) THEN NULL ELSE 5 / + COUNT ( * ) END
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6717
SELECT - 57 DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-6717
SELECT - 57 / + 60
----
0

query I rowsort
SELECT ALL + - 96 + 60 col2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6719
SELECT - COALESCE ( 77, + 98 ) + + 83 + - 84 + - SUM( + 21 ) + - 42 * - 94 + + 91 * - 60 * 55, - 77 / - NULLIF ( - CASE + + 30 WHEN + 0 * - - 74 THEN MIN( + + CAST( - + 33 AS SIGNED ) ) WHEN - 22 THEN + - 40 END, + 77 + - COUNT( * ) * 52 + - 68 + ( 56 ) ) + + 86 AS col0
----
-296451
NULL

skipif mysql # not compatible
query II rowsort label-6719
SELECT - COALESCE ( 77, + 98 ) + + 83 + - 84 + - SUM ( + 21 ) + - 42 * - 94 + + 91 * - 60 * 55, - 77 / - NULLIF ( - CASE + + 30 WHEN + 0 * - - 74 THEN MIN ( + + CAST ( - + 33 AS INTEGER ) ) WHEN - 22 THEN + - 40 END, + 77 + - COUNT ( * ) * 52 + - 68 + ( 56 ) ) + + 86 AS col0
----
-296451
NULL

query I rowsort
SELECT - 99 col2
----
-99

query I rowsort
SELECT + 10 * + ( 91 ) - + + 30
----
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6722
SELECT COUNT( * ) + + - 9 * - COUNT( * ) DIV + ( + COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-6722
SELECT COUNT ( * ) + + - 9 * - COUNT ( * ) / + ( + COUNT ( * ) ) AS col0
----
10

query I rowsort
SELECT + 84 * + + 0 col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL - MIN( DISTINCT - - 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL - MIN ( DISTINCT - - 47 )
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT + CAST( + 95 AS SIGNED ) col2
----
95

skipif mysql # not compatible
query I rowsort label-6725
SELECT + CAST ( + 95 AS INTEGER ) col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT + ( - - COALESCE ( + 74, - - 86 * + 22 ) ) + + 57 - + MAX( 24 ) AS col1
----
107

skipif mysql # not compatible
query I rowsort label-6726
SELECT + ( - - COALESCE ( + 74, - - 86 * + 22 ) ) + + 57 - + MAX ( 24 ) AS col1
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT 2 * 99 + - + 25 + - + MIN( DISTINCT - 7 )
----
180

skipif mysql # not compatible
query I rowsort label-6727
SELECT 2 * 99 + - + 25 + - + MIN ( DISTINCT - 7 )
----
180

query II rowsort
SELECT DISTINCT - - 53 + - + 48 AS col1, ( + 43 )
----
5
43

query I rowsort
SELECT ALL 3 * + 60 + + - 48 AS col1
----
132

query I rowsort
SELECT - + 94 AS col2
----
-94

query I rowsort
SELECT ALL - - 78 + + 82 AS col1
----
160

query II rowsort
SELECT ALL 69 AS col0, 39 * - 58 AS col0
----
69
-2262

query I rowsort
SELECT DISTINCT 1 * 16 AS col0
----
16

query I rowsort
SELECT DISTINCT - 38 + + + 95 AS col2
----
57

query I rowsort
SELECT 1 * ( - + 72 ) AS col1
----
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-6736
SELECT NULLIF ( NULLIF ( + NULLIF ( - 31, - 93 * + 14 + MIN( + 55 ) ), - - 72 ), + 39 * CASE - - 54 WHEN 50 / - - 80 + - + ( - 94 ) + - + MIN( + 3 ) + - 19 + - + COUNT( * ) * - 20 * 15 / - 86 * 33 THEN ( + 81 ) * - ( 47 ) - - - 43 ELSE NULL END / + 97 * COUNT( * ) * - 54 * + 37 + - COUNT( * ) ) - - 6 AS col0, + 55
----
-25
55

skipif mysql # not compatible
query II rowsort label-6736
SELECT NULLIF ( NULLIF ( + NULLIF ( - 31, - 93 * + 14 + MIN ( + 55 ) ), - - 72 ), + 39 * CASE - - 54 WHEN 50 / - - 80 + - + ( - 94 ) + - + MIN ( + 3 ) + - 19 + - + COUNT ( * ) * - 20 * 15 / - 86 * 33 THEN ( + 81 ) * - ( 47 ) - - - 43 ELSE NULL END / + 97 * COUNT ( * ) * - 54 * + 37 + - COUNT ( * ) ) - - 6 AS col0, + 55
----
-25
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT ALL MIN( 29 )
----
29

skipif mysql # not compatible
query I rowsort label-6737
SELECT ALL MIN ( 29 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6738
SELECT DISTINCT 65 * + 42 DIV - COUNT( ALL + - 93 ) AS col2
----
-2730

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT 65 * + 42 / - COUNT ( ALL + - 93 ) AS col2
----
-2730

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6739
SELECT MAX( + - 18 ) - - COUNT( * ) DIV - COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-6739
SELECT MAX ( + - 18 ) - - COUNT ( * ) / - COUNT ( * )
----
-19

query I rowsort
SELECT ALL 37 AS col0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT 91 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6741
SELECT 91 / - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL - 20 - COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 20 - COUNT ( * ) AS col2
----
-21

query I rowsort
SELECT 56 AS col2
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6744
SELECT ALL SUM( 86 ) DIV + ( - 67 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL SUM ( 86 ) / + ( - 67 ) AS col1
----
-1

query I rowsort
SELECT ALL - 62 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT + MAX( + 69 ) col1
----
69

skipif mysql # not compatible
query I rowsort label-6746
SELECT + MAX ( + 69 ) col1
----
69

query I rowsort
SELECT 67 * + 26 + ( - 97 ) AS col2
----
1645

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6748
SELECT CASE - - CASE + 39 WHEN + + CAST( NULL AS DECIMAL ) THEN 36 WHEN + 75 THEN NULL END WHEN - 24 THEN NULL ELSE - 20 * - CAST( NULL AS SIGNED ) END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6748
SELECT CASE - - CASE + 39 WHEN + + CAST ( NULL AS REAL ) THEN 36 WHEN + 75 THEN NULL END WHEN - 24 THEN NULL ELSE - 20 * - CAST ( NULL AS INTEGER ) END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT 58 * NULLIF ( - COALESCE ( - - 26, - 3, - 82 ), - COUNT( * ) * + 9 - 25 + + 51 ) + - MAX( ALL + 40 ) AS col2
----
-1548

skipif mysql # not compatible
query I rowsort label-6749
SELECT 58 * NULLIF ( - COALESCE ( - - 26, - 3, - 82 ), - COUNT ( * ) * + 9 - 25 + + 51 ) + - MAX ( ALL + 40 ) AS col2
----
-1548

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ALL + - MAX( - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL + - MAX ( - 38 )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT + 18 + - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-6751
SELECT + 18 + - COUNT ( * )
----
17

query I rowsort
SELECT ALL + + 58 AS col1
----
58

query I rowsort
SELECT + + 50 * 8 col1
----
400

query I rowsort
SELECT DISTINCT + 45 * 26 AS col1
----
1170

onlyif mysql # aggregate syntax: 
query II rowsort label-6755
SELECT DISTINCT + 86 AS col2, + COUNT( * ) AS col2
----
86
1

skipif mysql # not compatible
query II rowsort label-6755
SELECT DISTINCT + 86 AS col2, + COUNT ( * ) AS col2
----
86
1

query I rowsort
SELECT + - 6 + + + 3
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6757
SELECT + 39 * - 24 + + CASE - + 98 WHEN - 52 / - - CASE - + 50 WHEN + - 29 THEN + + CAST( NULL AS DECIMAL ) / + - 81 / - 8 END / + + NULLIF ( 88, + 53 ) - + + CAST( NULL AS SIGNED ) + 93 THEN NULL ELSE + - 0 END AS col0
----
-936

skipif mysql # not compatible
query I rowsort label-6757
SELECT + 39 * - 24 + + CASE - + 98 WHEN - 52 / - - CASE - + 50 WHEN + - 29 THEN + + CAST ( NULL AS REAL ) / + - 81 / - 8 END / + + NULLIF ( 88, + 53 ) - + + CAST ( NULL AS INTEGER ) + 93 THEN NULL ELSE + - 0 END AS col0
----
-936

query I rowsort
SELECT ALL + + 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT + COUNT( 95 ) * + 3 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-6759
SELECT + COUNT ( 95 ) * + 3 AS col2
----
3

query I rowsort
SELECT 70 col0
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT + 51 DIV - - 69 * + 66 + 48 + + + 1 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-6761
SELECT + 51 / - - 69 * + 66 + 48 + + + 1 AS col0
----
49

query II rowsort
SELECT DISTINCT + 66, - 8 AS col0
----
66
-8

query I rowsort
SELECT DISTINCT - 23 * - 43 + - 40 - - + 61
----
1010

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL CASE + 29 WHEN + + COUNT( + 1 ) THEN - 26 END * - + ( + 83 ) + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL CASE + 29 WHEN + + COUNT ( + 1 ) THEN - 26 END * - + ( + 83 ) + 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6765
SELECT ALL + - 4 AS col0, COUNT( ALL 98 ) DIV - - COUNT( * ) - - 93 + + 12 * 29 * - - COUNT( * ) col2
----
-4
442

skipif mysql # not compatible
query II rowsort label-6765
SELECT ALL + - 4 AS col0, COUNT ( ALL 98 ) / - - COUNT ( * ) - - 93 + + 12 * 29 * - - COUNT ( * ) col2
----
-4
442

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT DISTINCT 9 DIV - NULLIF ( 54, - 93 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT 9 / - NULLIF ( 54, - 93 ) col0
----
0

query I rowsort
SELECT ALL + 79 * - COALESCE ( - + 17, + - 72 ) AS col2
----
1343

query II rowsort
SELECT ALL - 68 * 65 - 83, 47 + - ( 26 ) AS col2
----
-4503
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT + + 88 + - 67 - COUNT( ALL 81 ) * - 5 + - ( - 60 ) + + 15 * - - 69 AS col0
----
1121

skipif mysql # not compatible
query I rowsort label-6769
SELECT + + 88 + - 67 - COUNT ( ALL 81 ) * - 5 + - ( - 60 ) + + 15 * - - 69 AS col0
----
1121

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT + COUNT( * ) * + + 79, 89 + 36 AS col2
----
79
125

skipif mysql # not compatible
query II rowsort label-6770
SELECT + COUNT ( * ) * + + 79, 89 + 36 AS col2
----
79
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL MAX( 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL MAX ( 26 ) AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT + 0 * MIN( DISTINCT + 71 ) + - 24 AS col1
----
-24

skipif mysql # not compatible
query I rowsort label-6772
SELECT + 0 * MIN ( DISTINCT + 71 ) + - 24 AS col1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6773
SELECT - CAST( NULL AS SIGNED ) + - - 36 * 54 * - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-6773
SELECT - CAST ( NULL AS INTEGER ) + - - 36 * 54 * - 52
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6774
SELECT - SUM( + 63 ) * + + 88 * 27 * + CASE NULLIF ( + COUNT( * ), + 66 + 86 / + 7 ) WHEN - + CASE - CASE + - 96 WHEN NULLIF ( 74, - 88 ) THEN NULL WHEN - 76 + - 69 + + + COUNT( * ) * + 80 / + 33 THEN - ( + + 56 ) ELSE + + 23 END WHEN + ( CAST( - 2 AS SIGNED ) ) THEN NULL ELSE + + COUNT( * ) END * + + 72 THEN NULL WHEN 41 THEN + ( COUNT( * ) ) * - - 77 - - - 36 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6774
SELECT - SUM ( + 63 ) * + + 88 * 27 * + CASE NULLIF ( + COUNT ( * ), + 66 + 86 / + 7 ) WHEN - + CASE - CASE + - 96 WHEN NULLIF ( 74, - 88 ) THEN NULL WHEN - 76 + - 69 + + + COUNT ( * ) * + 80 / + 33 THEN - ( + + 56 ) ELSE + + 23 END WHEN + ( CAST ( - 2 AS INTEGER ) ) THEN NULL ELSE + + COUNT ( * ) END * + + 72 THEN NULL WHEN 41 THEN + ( COUNT ( * ) ) * - - 77 - - - 36 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT DISTINCT MAX( + 89 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6775
SELECT DISTINCT MAX ( + 89 ) AS col0
----
89

query I rowsort
SELECT DISTINCT NULLIF ( - 75, - 74 )
----
-75

query I rowsort
SELECT - 35 * 46 AS col0
----
-1610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6778
SELECT - 47 AS col2, CAST( NULL AS SIGNED ) - 67 + 37 - + ( 66 ) + + + 89
----
-47
NULL

skipif mysql # not compatible
query II rowsort label-6778
SELECT - 47 AS col2, CAST ( NULL AS INTEGER ) - 67 + 37 - + ( 66 ) + + + 89
----
-47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT - 52 + - NULLIF ( - COUNT( * ), - 68 )
----
-51

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 52 + - NULLIF ( - COUNT ( * ), - 68 )
----
-51

query I rowsort
SELECT ALL ( + 59 ) AS col2
----
59

query I rowsort
SELECT + 28 + 61 AS col0
----
89

query II rowsort
SELECT - 4, 96 + - 88 + - + 76 AS col2
----
-4
-68

query I rowsort
SELECT - 99 * - 12 * + 19
----
22572

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + 5 + - COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-6784
SELECT + 5 + - COUNT ( * )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT ALL CAST( - 10 AS SIGNED ) col1
----
-10

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL CAST ( - 10 AS INTEGER ) col1
----
-10

query II rowsort
SELECT 33 AS col0, COALESCE ( + 82, - - 92 ) + + 99
----
33
181

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6787
SELECT + COUNT( * ) DIV + - ( 35 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6787
SELECT + COUNT ( * ) / + - ( 35 ) col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6788
SELECT + + 37, - COUNT( * ) AS col2
----
37
-1

skipif mysql # not compatible
query II rowsort label-6788
SELECT + + 37, - COUNT ( * ) AS col2
----
37
-1

query I rowsort
SELECT DISTINCT + 11 AS col2
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6790
SELECT + + COUNT( * ) / 5 - - 4 - + - COALESCE ( CAST( + 92 AS DECIMAL ), NULLIF ( 67, + 15 ) * - - ( - 54 ) * ( 42 ) + - 40, 16 ) / ( 67 ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT + + COUNT ( * ) / 5 - - 4 - + - COALESCE ( CAST ( + 92 AS REAL ), NULLIF ( 67, + 15 ) * - - ( - 54 ) * ( 42 ) + - 40, 16 ) / ( 67 ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6791
SELECT - + ( + 49 ) * - 1 DIV COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-6791
SELECT - + ( + 49 ) * - 1 / COUNT ( * )
----
49

query I rowsort
SELECT + 39 * 78
----
3042

onlyif mysql # DIV for integer division: 
query I rowsort label-6793
SELECT ALL 8 DIV 31 + + NULLIF ( + 1, 5 )
----
1

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL 8 / 31 + + NULLIF ( + 1, 5 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT + MAX( DISTINCT + - 16 ) AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-6794
SELECT + MAX ( DISTINCT + - 16 ) AS col0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-6795
SELECT + 61 AS col0, 12 * - - COUNT( * )
----
61
12

skipif mysql # not compatible
query II rowsort label-6795
SELECT + 61 AS col0, 12 * - - COUNT ( * )
----
61
12

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT + 83 AS col2, - MIN( DISTINCT - 12 ) + + CASE + - COALESCE ( + ( + 48 ), - - 42 * 1, - 22 ) WHEN - + 38 / - + COUNT( * ) THEN - 36 END AS col0
----
83
NULL

skipif mysql # not compatible
query II rowsort label-6796
SELECT + 83 AS col2, - MIN ( DISTINCT - 12 ) + + CASE + - COALESCE ( + ( + 48 ), - - 42 * 1, - 22 ) WHEN - + 38 / - + COUNT ( * ) THEN - 36 END AS col0
----
83
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT - CASE + 81 WHEN 44 THEN + 42 ELSE NULL END AS col1, 36 * 57 * COUNT( * ) AS col0
----
NULL
2052

skipif mysql # not compatible
query II rowsort label-6797
SELECT - CASE + 81 WHEN 44 THEN + 42 ELSE NULL END AS col1, 36 * 57 * COUNT ( * ) AS col0
----
NULL
2052

query I rowsort
SELECT ALL - 33 * - + 20 + - 98 + 21 * + + 6 * + ( + 62 ) * - 63 + - - 58
----
-491536

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT + 5 * - 95 + + + MIN( ALL + 48 ) + - - 24 AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-6799
SELECT + 5 * - 95 + + + MIN ( ALL + 48 ) + - - 24 AS col1
----
-403

query I rowsort
SELECT + 45 AS col2
----
45

query II rowsort
SELECT + 84 AS col0, - 18 - 0 + + - 19 + 2 * + 8
----
84
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6802
SELECT DISTINCT + 14 AS col2, + CAST( - 31 AS SIGNED ) col0
----
14
-31

skipif mysql # not compatible
query II rowsort label-6802
SELECT DISTINCT + 14 AS col2, + CAST ( - 31 AS INTEGER ) col0
----
14
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT DISTINCT ( - COUNT( * ) ) * - 6 + 25 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT ( - COUNT ( * ) ) * - 6 + 25 AS col2
----
31

query I rowsort
SELECT + - ( 15 ) AS col1
----
-15

query I rowsort
SELECT DISTINCT + - 20 AS col2
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT + 40 AS col0, - 87 + + COUNT( * )
----
40
-86

skipif mysql # not compatible
query II rowsort label-6806
SELECT + 40 AS col0, - 87 + + COUNT ( * )
----
40
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6807
SELECT + ( - CAST( NULL AS SIGNED ) ) * 23 * + 16 + 59 * + 60 / - + 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6807
SELECT + ( - CAST ( NULL AS INTEGER ) ) * 23 * + 16 + 59 * + 60 / - + 58
----
NULL

query I rowsort
SELECT ALL + - NULLIF ( - 69, - 8 * - + 30 + + + 84 + - + 78 * - 6 + - 5 * - + 88 ) AS col1
----
69

query I rowsort
SELECT + COALESCE ( - 69, + - 56 ) * 15 AS col1
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT - 18 + - + ( - 73 ) + - - 57 * - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-6810
SELECT - 18 + - + ( - 73 ) + - - 57 * - COUNT ( * ) AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT ALL MIN( - - 27 )
----
27

skipif mysql # not compatible
query I rowsort label-6811
SELECT ALL MIN ( - - 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL COUNT( * ) * + 49 - - - 71 AS col1
----
-22

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL COUNT ( * ) * + 49 - - - 71 AS col1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT CASE 74 WHEN - - 91 / - - 21 * + CAST( NULL AS SIGNED ) + + 38 THEN NULL WHEN - 47 THEN + 72 / - 25 WHEN 16 * - 57 - + CAST( NULL AS SIGNED ) * - 73 THEN + + ( - + ( - CASE + ( 36 ) WHEN 74 THEN NULL WHEN - 94 THEN - 21 + - 73 END ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6813
SELECT CASE 74 WHEN - - 91 / - - 21 * + CAST ( NULL AS INTEGER ) + + 38 THEN NULL WHEN - 47 THEN + 72 / - 25 WHEN 16 * - 57 - + CAST ( NULL AS INTEGER ) * - 73 THEN + + ( - + ( - CASE + ( 36 ) WHEN 74 THEN NULL WHEN - 94 THEN - 21 + - 73 END ) ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6814
SELECT + CAST( 88 AS SIGNED ) - + - 7 DIV + MIN( DISTINCT + 55 ) - + 32 + + 27 - 55 * COALESCE ( + - NULLIF ( MIN( + 74 ), - 40 ), + 34 ) * + - 2 * - 7
----
57063

skipif mysql # not compatible
query I rowsort label-6814
SELECT + CAST ( 88 AS INTEGER ) - + - 7 / + MIN ( DISTINCT + 55 ) - + 32 + + 27 - 55 * COALESCE ( + - NULLIF ( MIN ( + 74 ), - 40 ), + 34 ) * + - 2 * - 7
----
57063

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT COUNT( - 61 )
----
1

skipif mysql # not compatible
query I rowsort label-6815
SELECT COUNT ( - 61 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT ALL COUNT( DISTINCT - 27 ) DIV - MIN( - 38 )
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL COUNT ( DISTINCT - 27 ) / - MIN ( - 38 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6817
SELECT ALL CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6817
SELECT ALL CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT - 35 * + COUNT( * ) * + + 39
----
-1365

skipif mysql # not compatible
query I rowsort label-6818
SELECT - 35 * + COUNT ( * ) * + + 39
----
-1365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6819
SELECT + CAST( NULL AS SIGNED ) * + 10
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT + CAST ( NULL AS INTEGER ) * + 10
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6820
SELECT - 11 * + COUNT( * ) AS col1, + 91 * MAX( - 78 ) AS col0
----
-11
-7098

skipif mysql # not compatible
query II rowsort label-6820
SELECT - 11 * + COUNT ( * ) AS col1, + 91 * MAX ( - 78 ) AS col0
----
-11
-7098

query I rowsort
SELECT ALL COALESCE ( + + 94, + NULLIF ( - - 34, - 72 ) * + 76, - ( 46 ) * - 53 + 68 + + 28 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6822
SELECT 10 DIV - + 85
----
0

skipif mysql # not compatible
query I rowsort label-6822
SELECT 10 / - + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6823
SELECT 45 * CASE + ( - - 92 ) WHEN - 26 * - 45 * - + 63 THEN - 23 * + COUNT( * ) + + COALESCE ( + - 24, - 59 * - 23 + 13 + - - ( + + 56 ) + + 2 * - 99 ) WHEN + NULLIF ( - - 66, + - NULLIF ( + 50, - + 11 ) * + - 63 + - 13 ) + - 87 THEN + 21 * + 92 * + + COUNT( * ) + COUNT( * ) DIV + - CAST( NULL AS SIGNED ) ELSE + 78 END AS col1, 57 + ( + COUNT( * ) )
----
3510
58

skipif mysql # not compatible
query II rowsort label-6823
SELECT 45 * CASE + ( - - 92 ) WHEN - 26 * - 45 * - + 63 THEN - 23 * + COUNT ( * ) + + COALESCE ( + - 24, - 59 * - 23 + 13 + - - ( + + 56 ) + + 2 * - 99 ) WHEN + NULLIF ( - - 66, + - NULLIF ( + 50, - + 11 ) * + - 63 + - 13 ) + - 87 THEN + 21 * + 92 * + + COUNT ( * ) + COUNT ( * ) / + - CAST ( NULL AS INTEGER ) ELSE + 78 END AS col1, 57 + ( + COUNT ( * ) )
----
3510
58

query I rowsort
SELECT ALL 2 AS col1
----
2

query I rowsort
SELECT 5 AS col1
----
5

query I rowsort
SELECT ALL - 4 + 21
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6827
SELECT ALL - COALESCE ( - - CASE + 37 WHEN COUNT( * ) THEN - + 9 DIV + CAST( + 42 AS SIGNED ) + + 84 + + 65 + + 53 * + + CAST( NULL AS SIGNED ) * 15 * 19 WHEN - 93 * - + 98 THEN NULL END, + COUNT( * ) ) + - - 99, 41 * 51 AS col1
----
98
2091

skipif mysql # not compatible
query II rowsort label-6827
SELECT ALL - COALESCE ( - - CASE + 37 WHEN COUNT ( * ) THEN - + 9 / + CAST ( + 42 AS INTEGER ) + + 84 + + 65 + + 53 * + + CAST ( NULL AS INTEGER ) * 15 * 19 WHEN - 93 * - + 98 THEN NULL END, + COUNT ( * ) ) + - - 99, 41 * 51 AS col1
----
98
2091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT CAST( NULL AS SIGNED ) * - - 52 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT CAST ( NULL AS INTEGER ) * - - 52 * 48
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6829
SELECT ALL + 39 + - 14 AS col1, - 8 * + ( CASE - - 54 WHEN + 83 THEN CASE + 69 WHEN + 97 THEN + - 22 * + SUM( + 78 ) + - - 47 WHEN - 11 THEN NULL END * - COUNT( * ) ELSE NULL END ) AS col1
----
25
NULL

skipif mysql # not compatible
query II rowsort label-6829
SELECT ALL + 39 + - 14 AS col1, - 8 * + ( CASE - - 54 WHEN + 83 THEN CASE + 69 WHEN + 97 THEN + - 22 * + SUM ( + 78 ) + - - 47 WHEN - 11 THEN NULL END * - COUNT ( * ) ELSE NULL END ) AS col1
----
25
NULL

query I rowsort
SELECT + 16 AS col1
----
16

query I rowsort
SELECT DISTINCT + 95 AS col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT - SUM( ALL + 89 ) + 33
----
-56

skipif mysql # not compatible
query I rowsort label-6832
SELECT - SUM ( ALL + 89 ) + 33
----
-56

query I rowsort
SELECT 98 - + 94 col2
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT - 37 * + + COALESCE ( COALESCE ( - - 80, - 45 ), - + 62 ) DIV 83 DIV 77 + 13 AS col1
----
13

skipif mysql # not compatible
query I rowsort label-6834
SELECT - 37 * + + COALESCE ( COALESCE ( - - 80, - 45 ), - + 62 ) / 83 / 77 + 13 AS col1
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-6835
SELECT - 93 DIV - 75 + 61 + + 25 AS col1
----
87

skipif mysql # not compatible
query I rowsort label-6835
SELECT - 93 / - 75 + 61 + + 25 AS col1
----
87

query I rowsort
SELECT + 67 AS col2
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6837
SELECT ALL + 34 * - - COUNT( * ) DIV - 52
----
0

skipif mysql # not compatible
query I rowsort label-6837
SELECT ALL + 34 * - - COUNT ( * ) / - 52
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT - MAX( ALL - 70 ) + MIN( ALL + + 27 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT - MAX ( ALL - 70 ) + MIN ( ALL + + 27 ) AS col0
----
97

query I rowsort
SELECT ALL - - 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6840
SELECT ALL - NULLIF ( - 24, - CAST( NULL AS SIGNED ) ) AS col2
----
24

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL - NULLIF ( - 24, - CAST ( NULL AS INTEGER ) ) AS col2
----
24

query I rowsort
SELECT ALL - 43 + - 68 + + 63 * 53 AS col0
----
3228

query I rowsort
SELECT ALL 69 - + 32 * + + 63
----
-1947

query I rowsort
SELECT 46 * + 41 + + 66 + + + 53
----
2005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + COALESCE ( + + 3, + 22 )
----
3

query I rowsort
SELECT ( 68 ) * + 87
----
5916

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT - 79 * COUNT( * ) * + - 89 AS col0
----
7031

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT - 79 * COUNT ( * ) * + - 89 AS col0
----
7031

query I rowsort
SELECT DISTINCT - ( + 82 ) col2
----
-82

query I rowsort
SELECT ALL - 65 AS col0
----
-65

query I rowsort
SELECT 1 * + 90
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL COUNT( * ) * - 82
----
-82

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL COUNT ( * ) * - 82
----
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6852
SELECT ALL 33 AS col1, 99 DIV - CAST( 9 AS SIGNED )
----
33
-11

skipif mysql # not compatible
query II rowsort label-6852
SELECT ALL 33 AS col1, 99 / - CAST ( 9 AS INTEGER )
----
33
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6853
SELECT NULLIF ( - - 8, COUNT( * ) ) * MAX( ALL - - CAST( NULL AS SIGNED ) ) * 62 * + + 62 * - 55
----
NULL

skipif mysql # not compatible
query I rowsort label-6853
SELECT NULLIF ( - - 8, COUNT ( * ) ) * MAX ( ALL - - CAST ( NULL AS INTEGER ) ) * 62 * + + 62 * - 55
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT CAST( NULL AS SIGNED ) * - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT CAST ( NULL AS INTEGER ) * - 42 AS col1
----
NULL

query I rowsort
SELECT ALL 91 AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COUNT( * ) + + - ( + COUNT( * ) )
----
0

skipif mysql # not compatible
query I rowsort label-6856
SELECT COUNT ( * ) + + - ( + COUNT ( * ) )
----
0

query I rowsort
SELECT ALL 99 col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT DISTINCT COUNT( * ) + + 22
----
23

skipif mysql # not compatible
query I rowsort label-6858
SELECT DISTINCT COUNT ( * ) + + 22
----
23

query I rowsort
SELECT ALL 99 + 2 AS col2
----
101

onlyif mysql # DIV for integer division: 
query I rowsort label-6860
SELECT ALL + 72 + - ( - 73 ) DIV 64 DIV 71 * + ( - - ( + 97 ) ) DIV 85 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + 72 + - ( - 73 ) / 64 / 71 * + ( - - ( + 97 ) ) / 85 AS col2
----
72

query I rowsort
SELECT COALESCE ( - 46, + 78 ) + - 5
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT ALL COUNT( 66 ) + + 25 DIV - ( - 26 ) * COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL COUNT ( 66 ) + + 25 / - ( - 26 ) * COUNT ( * )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6863
SELECT ALL 34 * - ( + 27 ) AS col2, + 96 * + - COALESCE ( + 98, + 43 DIV + - COUNT( * ) ) AS col0
----
-918
-9408

skipif mysql # not compatible
query II rowsort label-6863
SELECT ALL 34 * - ( + 27 ) AS col2, + 96 * + - COALESCE ( + 98, + 43 / + - COUNT ( * ) ) AS col0
----
-918
-9408

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6864
SELECT 45 DIV MIN( ALL + - 6 ) * - - 5 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6864
SELECT 45 / MIN ( ALL + - 6 ) * - - 5 AS col1
----
-35

query I rowsort
SELECT ALL - 99 + - 44
----
-143

onlyif mysql # aggregate syntax: 
query II rowsort label-6866
SELECT - 11, MIN( DISTINCT - 51 ) AS col1
----
-11
-51

skipif mysql # not compatible
query II rowsort label-6866
SELECT - 11, MIN ( DISTINCT - 51 ) AS col1
----
-11
-51

query I rowsort
SELECT ALL - + 24 + - + ( + 46 ) AS col0
----
-70

query I rowsort
SELECT + 60 * + 85
----
5100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6869
SELECT + 34 + - 64 - - + COUNT( * ) + - + 35 * - COALESCE ( - 50, + COUNT( DISTINCT ( 57 ) ) ) DIV CASE + SUM( DISTINCT - 56 ) WHEN + CAST( + 30 AS SIGNED ) THEN - 66 WHEN + 79 + COUNT( * ) THEN - 18 END, NULLIF ( 19, MIN( DISTINCT - 36 ) ) DIV + 51 AS col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6869
SELECT + 34 + - 64 - - + COUNT ( * ) + - + 35 * - COALESCE ( - 50, + COUNT ( DISTINCT ( 57 ) ) ) / CASE + SUM ( DISTINCT - 56 ) WHEN + CAST ( + 30 AS INTEGER ) THEN - 66 WHEN + 79 + COUNT ( * ) THEN - 18 END, NULLIF ( 19, MIN ( DISTINCT - 36 ) ) / + 51 AS col0
----
NULL
0

query I rowsort
SELECT ALL - ( - 31 ) AS col1
----
31

query I rowsort
SELECT ALL 57 + - 76 - - + 8 AS col0
----
-11

query II rowsort
SELECT + + 38, - 52 * + 13 AS col1
----
38
-676

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6873
SELECT ALL + COUNT( - - 55 ) * + 15 * - - ( - CASE + SUM( DISTINCT + 42 ) WHEN - + 2 THEN NULL WHEN + 17 THEN NULL ELSE - - 63 / COUNT( * ) + + CAST( NULL AS SIGNED ) END ) * - 41 * - COUNT( * ) / + - 96 - + COUNT( * ) - - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL + COUNT ( - - 55 ) * + 15 * - - ( - CASE + SUM ( DISTINCT + 42 ) WHEN - + 2 THEN NULL WHEN + 17 THEN NULL ELSE - - 63 / COUNT ( * ) + + CAST ( NULL AS INTEGER ) END ) * - 41 * - COUNT ( * ) / + - 96 - + COUNT ( * ) - - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT DISTINCT - + CAST( - 32 AS SIGNED ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - + CAST ( - 32 AS INTEGER ) AS col0
----
32

query II rowsort
SELECT - 96 AS col1, - 52 - + 64 AS col1
----
-96
-116

query I rowsort
SELECT ALL - + 93 AS col1
----
-93

query I rowsort
SELECT ALL - 74 AS col2
----
-74

query I rowsort
SELECT + 76 * 24 AS col1
----
1824

query II rowsort
SELECT + - 63 AS col0, 27 AS col0
----
-63
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT + NULLIF ( COUNT( * ), - - 2 * - + 44 )
----
1

skipif mysql # not compatible
query I rowsort label-6880
SELECT + NULLIF ( COUNT ( * ), - - 2 * - + 44 )
----
1

query II rowsort
SELECT 1 AS col0, + 65 AS col1
----
1
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT + - CASE + 41 WHEN + + COUNT( * ) THEN + - ( COUNT( * ) ) * 61 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6882
SELECT + - CASE + 41 WHEN + + COUNT ( * ) THEN + - ( COUNT ( * ) ) * 61 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6883
SELECT 40 - - - COALESCE ( 12, 26 DIV 60, + 53 DIV 65 + CAST( NULL AS SIGNED ) * - + 53 ) + + + 89 DIV - + 37
----
26

skipif mysql # not compatible
query I rowsort label-6883
SELECT 40 - - - COALESCE ( 12, 26 / 60, + 53 / 65 + CAST ( NULL AS INTEGER ) * - + 53 ) + + + 89 / - + 37
----
26

query I rowsort
SELECT ALL - - 43
----
43

query I rowsort
SELECT DISTINCT - 29 * - 48
----
1392

query I rowsort
SELECT DISTINCT - 72 col0
----
-72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6887
SELECT DISTINCT - NULLIF ( 75, + 11 * + 55 * + CAST( NULL AS DECIMAL ) + + 87 + 51 * 28 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - NULLIF ( 75, + 11 * + 55 * + CAST ( NULL AS REAL ) + + 87 + 51 * 28 ) AS col1
----
-75

query I rowsort
SELECT ALL - ( - + 21 ) col0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT DISTINCT - 48 + - + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT - 48 + - + COUNT ( * )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT 12 * 67 * 17 + 66 AS col0, + ( - 46 ) * + COUNT( ALL + 97 )
----
13734
-46

skipif mysql # not compatible
query II rowsort label-6890
SELECT 12 * 67 * 17 + 66 AS col0, + ( - 46 ) * + COUNT ( ALL + 97 )
----
13734
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-6891
SELECT - 23 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-6891
SELECT - 23 / 94
----
0

query I rowsort
SELECT + 29 + - - 27 + + 74 * - 59 + - 31
----
-4341

query I rowsort
SELECT ALL + 74 col2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6894
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6895
SELECT - 93 DIV - - SUM( 22 )
----
-4

skipif mysql # not compatible
query I rowsort label-6895
SELECT - 93 / - - SUM ( 22 )
----
-4

query I rowsort
SELECT DISTINCT - ( + + 77 ) + 41 AS col1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT ALL CASE + 40 WHEN 76 THEN + COUNT( * ) + - 60 * + 18 WHEN - 32 * - 72 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL CASE + 40 WHEN 76 THEN + COUNT ( * ) + - 60 * + 18 WHEN - 32 * - 72 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 81 + + 7 - - 18
----
106

query I rowsort
SELECT ALL 9 AS col1
----
9

query I rowsort
SELECT - 34 * 45 AS col2
----
-1530

query I rowsort
SELECT + 39 * + - 9
----
-351

query I rowsort
SELECT 81 col0
----
81

query I rowsort
SELECT + 58 - + 7 * + 23 * - 83 * - 42
----
-561188

query I rowsort
SELECT DISTINCT 46 AS col1
----
46

query I rowsort
SELECT DISTINCT 7 AS col1
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6906
SELECT ALL - 96 - - + COUNT( * ) - 37 DIV 74, + 38 * + - ( + - SUM( ALL + COALESCE ( 83, 25 + 55 - - 81 ) ) ) AS col2
----
-95
3154

skipif mysql # not compatible
query II rowsort label-6906
SELECT ALL - 96 - - + COUNT ( * ) - 37 / 74, + 38 * + - ( + - SUM ( ALL + COALESCE ( 83, 25 + 55 - - 81 ) ) ) AS col2
----
-95
3154

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + - COUNT( 17 ) * COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6907
SELECT + - COUNT ( 17 ) * COUNT ( * ) AS col0
----
-1

query I rowsort
SELECT DISTINCT - CASE WHEN NOT + 40 <= - - 26 THEN - 60 ELSE NULL END * + 55
----
3300

query I rowsort
SELECT + + 21 + + 35 + + 83 AS col2
----
139

onlyif mysql # aggregate syntax: 
query II rowsort label-6910
SELECT + + 15 - - 63 AS col2, 83 + + - 67 + CASE + 96 WHEN + 79 THEN + 64 * - AVG ( ALL - ( 27 ) ) * + - 72 - COUNT( * ) END AS col0
----
78
NULL

skipif mysql # not compatible
query II rowsort label-6910
SELECT + + 15 - - 63 AS col2, 83 + + - 67 + CASE + 96 WHEN + 79 THEN + 64 * - AVG ( ALL - ( 27 ) ) * + - 72 - COUNT ( * ) END AS col0
----
78
NULL

query II rowsort
SELECT + 12 * - - 18, ( 13 ) AS col0
----
216
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6912
SELECT ALL - MAX( - 38 ) * MAX( ALL + 83 ) * 55 - 9 + + 66 + - - CAST( 42 AS SIGNED )
----
173569

skipif mysql # not compatible
query I rowsort label-6912
SELECT ALL - MAX ( - 38 ) * MAX ( ALL + 83 ) * 55 - 9 + + 66 + - - CAST ( 42 AS INTEGER )
----
173569

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6913
SELECT + - NULLIF ( CAST( NULL AS DECIMAL ), - - ( + 87 ) + 95 ) + - - COUNT( * ) * - + 85 AS col1, - CAST( - SUM( DISTINCT + 79 ) AS SIGNED ) + - + CASE - - 4 WHEN + - NULLIF ( + 75, 13 ) + - 98 + - + 96 * - 52 + 87 * + ( - 92 ) * + 34 * 5 * - ( 29 ) * + 92 * + - 81 / NULLIF ( - CASE + 4 WHEN + + 88 THEN + 87 ELSE + CAST( + + 90 AS DECIMAL ) + 54 END, + - 35 - - + 70 ) + + 89 * + 92 + + + AVG ( DISTINCT - 11 ) THEN NULL ELSE 40 END, - 6 AS col1
----
NULL
39
-6

skipif mysql # not compatible
query III rowsort label-6913
SELECT + - NULLIF ( CAST ( NULL AS REAL ), - - ( + 87 ) + 95 ) + - - COUNT ( * ) * - + 85 AS col1, - CAST ( - SUM ( DISTINCT + 79 ) AS INTEGER ) + - + CASE - - 4 WHEN + - NULLIF ( + 75, 13 ) + - 98 + - + 96 * - 52 + 87 * + ( - 92 ) * + 34 * 5 * - ( 29 ) * + 92 * + - 81 / NULLIF ( - CASE + 4 WHEN + + 88 THEN + 87 ELSE + CAST ( + + 90 AS REAL ) + 54 END, + - 35 - - + 70 ) + + 89 * + 92 + + + AVG ( DISTINCT - 11 ) THEN NULL ELSE 40 END, - 6 AS col1
----
NULL
39
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6914
SELECT - - 41 - - + CAST( NULL AS DECIMAL ) + - + 35 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT - - 41 - - + CAST ( NULL AS REAL ) + - + 35 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6915
SELECT + 61 * 63 - + MAX( + - CAST( 3 AS SIGNED ) ) * 14 AS col0
----
3885

skipif mysql # not compatible
query I rowsort label-6915
SELECT + 61 * 63 - + MAX ( + - CAST ( 3 AS INTEGER ) ) * 14 AS col0
----
3885

query I rowsort
SELECT - 9 AS col0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6917
SELECT + - ( 45 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6917
SELECT + - ( 45 ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT - - 91 * - MIN( - 93 ) - - 81 AS col0
----
8544

skipif mysql # not compatible
query I rowsort label-6918
SELECT - - 91 * - MIN ( - 93 ) - - 81 AS col0
----
8544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6919
SELECT DISTINCT + 33 * + SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT + 33 * + SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT ALL + + 4 DIV - + 86 + 18 * ( - + 8 ) AS col2
----
-144

skipif mysql # not compatible
query I rowsort label-6920
SELECT ALL + + 4 / - + 86 + 18 * ( - + 8 ) AS col2
----
-144

query I rowsort
SELECT ALL + - 31
----
-31

query I rowsort
SELECT DISTINCT + - 75
----
-75

query I rowsort
SELECT - 15 + + + 29 + - 41
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL + COUNT( * ) * + - 64
----
-64

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL + COUNT ( * ) * + - 64
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT ALL + COUNT( * ) AS col0, 27 * - 94
----
1
-2538

skipif mysql # not compatible
query II rowsort label-6925
SELECT ALL + COUNT ( * ) AS col0, 27 * - 94
----
1
-2538

query I rowsort
SELECT + ( 17 )
----
17

query I rowsort
SELECT + 48 * - 19 * - + 18
----
16416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT - 84 * - COUNT( * ) * - MAX( ALL - 62 ) + CASE COUNT( * ) WHEN + 10 THEN NULL ELSE + 57 * + + CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT - 84 * - COUNT ( * ) * - MAX ( ALL - 62 ) + CASE COUNT ( * ) WHEN + 10 THEN NULL ELSE + 57 * + + CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT - 82 * + 18 AS col1
----
-1476

query I rowsort
SELECT NULLIF ( - 43, - 99 * 2 + - + 58 )
----
-43

query I rowsort
SELECT - 6 * - 24 * + 67 col1
----
9648

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT DISTINCT - COUNT( * ) * + 87 + - CASE 14 WHEN - 71 THEN - 6 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT - COUNT ( * ) * + 87 + - CASE 14 WHEN - 71 THEN - 6 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT ALL + CAST( + COUNT( * ) AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT ALL - COUNT( * ) * + 78
----
-78

skipif mysql # not compatible
query I rowsort label-6934
SELECT ALL - COUNT ( * ) * + 78
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6935
SELECT COALESCE ( - 66, - ( + 48 ), - + COUNT( * ) * + 33 ) AS col0
----
-66

skipif mysql # not compatible
query I rowsort label-6935
SELECT COALESCE ( - 66, - ( + 48 ), - + COUNT ( * ) * + 33 ) AS col0
----
-66

query I rowsort
SELECT ALL + ( - NULLIF ( 61, 96 * - 31 ) )
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6937
SELECT - 64 * - COALESCE ( 47, + 57 * CAST( NULL AS SIGNED ), + COALESCE ( + 90, - COUNT( * ) * 6 * - COUNT( * ) + + - 2 + 48 * - 55 ) - 67 DIV - 39 * ( - 86 ) ) - - 5 col0
----
3013

skipif mysql # not compatible
query I rowsort label-6937
SELECT - 64 * - COALESCE ( 47, + 57 * CAST ( NULL AS INTEGER ), + COALESCE ( + 90, - COUNT ( * ) * 6 * - COUNT ( * ) + + - 2 + 48 * - 55 ) - 67 / - 39 * ( - 86 ) ) - - 5 col0
----
3013

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT - COUNT( * ) - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-6938
SELECT - COUNT ( * ) - + COUNT ( * )
----
-2

query I rowsort
SELECT ALL + 82 * + 9
----
738

query I rowsort
SELECT - 86 * 70 AS col2
----
-6020

query I rowsort
SELECT DISTINCT ( - 3 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT DISTINCT + 0 DIV + 80
----
0

skipif mysql # not compatible
query I rowsort label-6942
SELECT DISTINCT + 0 / + 80
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT ALL - CAST( NULL AS SIGNED ) - COALESCE ( - 52, - 98 + + 62 * 56 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL - CAST ( NULL AS INTEGER ) - COALESCE ( - 52, - 98 + + 62 * 56 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT ALL MAX( DISTINCT 49 ) - 34
----
15

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL MAX ( DISTINCT 49 ) - 34
----
15

query I rowsort
SELECT DISTINCT + 64 * 48
----
3072

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6946
SELECT + 50 + COALESCE ( - 39, COUNT( * ) + 68, + 97 * 33 + 87 * COALESCE ( - COUNT( * ), 57 DIV + 50 ) )
----
11

skipif mysql # not compatible
query I rowsort label-6946
SELECT + 50 + COALESCE ( - 39, COUNT ( * ) + 68, + 97 * 33 + 87 * COALESCE ( - COUNT ( * ), 57 / + 50 ) )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-6947
SELECT - SUM( + 33 )
----
-33

skipif mysql # not compatible
query I rowsort label-6947
SELECT - SUM ( + 33 )
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6948
SELECT + CAST( NULL AS SIGNED ) + + 61 / + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6948
SELECT + CAST ( NULL AS INTEGER ) + + 61 / + 96
----
NULL

query I rowsort
SELECT + 2 + 95 AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT + COUNT( * ) * 31 col1
----
31

skipif mysql # not compatible
query I rowsort label-6950
SELECT + COUNT ( * ) * 31 col1
----
31

query I rowsort
SELECT 53 col2
----
53

query I rowsort
SELECT + 78 + + 98
----
176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6953
SELECT DISTINCT ( + 97 ) DIV 71 + - COUNT( 77 + 41 )
----
0

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT ( + 97 ) / 71 + - COUNT ( 77 + 41 )
----
0

query I rowsort
SELECT ALL + 75 col1
----
75

query I rowsort
SELECT DISTINCT NULLIF ( 86, 49 ) * 91
----
7826

query I rowsort
SELECT + 19 * + 12 AS col2
----
228

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6957
SELECT ALL 80 DIV + ( 81 ) + 47 DIV NULLIF ( 16, + NULLIF ( + 86, + SUM( ALL + 50 ) ) * + 3 + - NULLIF ( 46, CAST( NULL AS DECIMAL ) ) ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-6957
SELECT ALL 80 / + ( 81 ) + 47 / NULLIF ( 16, + NULLIF ( + 86, + SUM ( ALL + 50 ) ) * + 3 + - NULLIF ( 46, CAST ( NULL AS REAL ) ) ) AS col2
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6958
SELECT + 92 * - COUNT( * ) - ( 75 ) DIV + 99
----
-92

skipif mysql # not compatible
query I rowsort label-6958
SELECT + 92 * - COUNT ( * ) - ( 75 ) / + 99
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT DISTINCT MAX( ALL 23 ) + + 15 col0
----
38

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT MAX ( ALL 23 ) + + 15 col0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-6960
SELECT COALESCE ( 73, 24 * 94 ) DIV - 81
----
0

skipif mysql # not compatible
query I rowsort label-6960
SELECT COALESCE ( 73, 24 * 94 ) / - 81
----
0

query I rowsort
SELECT 39 * - 39
----
-1521

query I rowsort
SELECT DISTINCT - 78 col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT COUNT( * ) + - ( + 75 - 68 ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT COUNT ( * ) + - ( + 75 - 68 ) AS col0
----
-6

query I rowsort
SELECT ALL 82 * + 71
----
5822

query I rowsort
SELECT 26 + - 16 AS col0
----
10

query I rowsort
SELECT - 54 * 58 - 32 AS col0
----
-3164

query I rowsort
SELECT ALL - 64 AS col1
----
-64

query I rowsort
SELECT DISTINCT - 68
----
-68

query I rowsort
SELECT ALL ( - ( + 88 ) ) + CASE 76 WHEN 11 + 64 THEN 46 WHEN + 82 / 2 THEN NULL WHEN 3 * 72 THEN - 77 + - NULLIF ( 76, 79 / 33 - + 93 / 3 ) ELSE 69 * 58 - - 49 * 18 END AS col0
----
4796

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6970
SELECT DISTINCT + 58 * - COALESCE ( MIN( - COALESCE ( 48, 42 DIV - 12 ) ), COUNT( * ) DIV ( - 80 ) ) AS col0
----
2784

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + 58 * - COALESCE ( MIN ( - COALESCE ( 48, 42 / - 12 ) ), COUNT ( * ) / ( - 80 ) ) AS col0
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT COUNT( * ) * - 82 col2
----
-82

skipif mysql # not compatible
query I rowsort label-6971
SELECT COUNT ( * ) * - 82 col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT CAST( NULL AS SIGNED ) + - 49 * - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT CAST ( NULL AS INTEGER ) + - 49 * - 85
----
NULL

query I rowsort
SELECT + 41 * + NULLIF ( + 15, - 9 * ( + 58 ) ) + - 78 col0
----
537

query I rowsort
SELECT DISTINCT + CASE + 32 WHEN + 87 THEN 89 ELSE - NULLIF ( 80, - 51 / - ( - 66 ) ) END - 47
----
-127

query I rowsort
SELECT ALL + 13 * 34
----
442

query I rowsort
SELECT 70 + 74
----
144

query I rowsort
SELECT DISTINCT CASE - 96 WHEN 75 THEN NULL WHEN - 4 / 83 THEN + 65 END * + 41 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 10 - - 49 * 3 AS col1
----
157

query I rowsort
SELECT ALL CASE 45 WHEN 6 THEN COALESCE ( - 51, - ( + 67 ) + 85 ) * - 50 WHEN 91 + 25 * + 32 THEN NULL ELSE NULL END * 85
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + COUNT( 95 )
----
1

skipif mysql # not compatible
query I rowsort label-6980
SELECT + COUNT ( 95 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT + 45 + - 82 * + ( 31 - COUNT( * ) ) AS col0
----
-2415

skipif mysql # not compatible
query I rowsort label-6981
SELECT + 45 + - 82 * + ( 31 - COUNT ( * ) ) AS col0
----
-2415

query I rowsort
SELECT DISTINCT + 18 * + 26
----
468

query I rowsort
SELECT ( + 65 ) * 19 AS col2
----
1235

query I rowsort
SELECT + - 69 * 5 + + 16 * - 23
----
-713

query I rowsort
SELECT - 48 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6986
SELECT ALL + - 63 DIV 76
----
0

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + - 63 / 76
----
0

query I rowsort
SELECT 0 - 17 AS col1
----
-17

query I rowsort
SELECT - + 15
----
-15

query I rowsort
SELECT - - 59
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT + + 96 DIV + 14 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT + + 96 / + 14 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6991
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT ALL + - 71 DIV - 15
----
4

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + - 71 / - 15
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT + 70 - 68 * - ( + 39 * + CAST( MIN( + 30 ) AS SIGNED ) )
----
79630

skipif mysql # not compatible
query I rowsort label-6993
SELECT + 70 - 68 * - ( + 39 * + CAST ( MIN ( + 30 ) AS INTEGER ) )
----
79630

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT ALL COALESCE ( + 88, + 50 * COUNT( * ) + 23 )
----
88

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL COALESCE ( + 88, + 50 * COUNT ( * ) + 23 )
----
88

query I rowsort
SELECT DISTINCT + + 20 + + 75
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT ALL + + CASE COUNT( * ) WHEN - CASE + 49 WHEN CAST( + CAST( - 54 AS SIGNED ) AS SIGNED ) * - 20 + 31 THEN 16 * - 57 WHEN - 67 THEN ( 75 ) ELSE NULL END THEN 80 * - 5 END + - ( - 74 - 43 ) * MIN( DISTINCT + 29 * - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6996
SELECT ALL + + CASE COUNT ( * ) WHEN - CASE + 49 WHEN CAST ( + CAST ( - 54 AS INTEGER ) AS INTEGER ) * - 20 + 31 THEN 16 * - 57 WHEN - 67 THEN ( 75 ) ELSE NULL END THEN 80 * - 5 END + - ( - 74 - 43 ) * MIN ( DISTINCT + 29 * - 87 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6997
SELECT - COUNT( * ) + ( 0 )
----
-1

skipif mysql # not compatible
query I rowsort label-6997
SELECT - COUNT ( * ) + ( 0 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT 15 - + COUNT( * )
----
14

skipif mysql # not compatible
query I rowsort label-6998
SELECT 15 - + COUNT ( * )
----
14

query I rowsort
SELECT ALL 66 col1
----
66

query I rowsort
SELECT 18 + - ( + 13 ) AS col1
----
5

query I rowsort
SELECT - 19 - + 76 AS col0
----
-95

query I rowsort
SELECT 36 AS col0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7003
SELECT 53 * + 88 * + COALESCE ( + 13 * 61, 19 * + 60 + + 62 ) + + COUNT( * )
----
3698553

skipif mysql # not compatible
query I rowsort label-7003
SELECT 53 * + 88 * + COALESCE ( + 13 * 61, 19 * + 60 + + 62 ) + + COUNT ( * )
----
3698553

query I rowsort
SELECT ALL ( 84 ) + 77
----
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7005
SELECT - ( - COUNT( * ) ) / CAST( NULL AS SIGNED ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT - ( - COUNT ( * ) ) / CAST ( NULL AS INTEGER ) + 32
----
NULL

query I rowsort
SELECT ALL - ( + ( 37 ) )
----
-37

query I rowsort
SELECT DISTINCT - 58
----
-58

query I rowsort
SELECT 29 + + - 58 - + ( 19 ) AS col0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7009
SELECT NULLIF ( CAST( NULL AS DECIMAL ), - ( ( + 77 ) ) ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7009
SELECT NULLIF ( CAST ( NULL AS REAL ), - ( ( + 77 ) ) ) + + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT DISTINCT CAST( - - 99 AS SIGNED ) - 84
----
15

skipif mysql # not compatible
query I rowsort label-7010
SELECT DISTINCT CAST ( - - 99 AS INTEGER ) - 84
----
15

query I rowsort
SELECT 9 * - 50 + 86 col1
----
-364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7012
SELECT + 37 * + + 17 * CAST( 80 * 67 AS SIGNED ) + NULLIF ( 80, 56 * + 71 + 22 )
----
3371520

skipif mysql # not compatible
query I rowsort label-7012
SELECT + 37 * + + 17 * CAST ( 80 * 67 AS INTEGER ) + NULLIF ( 80, 56 * + 71 + 22 )
----
3371520

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ( 95 ) * COUNT( * ) col0
----
95

skipif mysql # not compatible
query I rowsort label-7013
SELECT ( 95 ) * COUNT ( * ) col0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + SUM( + 72 )
----
72

skipif mysql # not compatible
query I rowsort label-7014
SELECT + SUM ( + 72 )
----
72

query I rowsort
SELECT ALL - 15 AS col1
----
-15

query I rowsort
SELECT ALL - 18 AS col2
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT 54 DIV - - 41
----
1

skipif mysql # not compatible
query I rowsort label-7017
SELECT 54 / - - 41
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7018
SELECT ALL 69 * + 0 DIV - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7018
SELECT ALL 69 * + 0 / - COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT NULLIF ( + COUNT( ALL + 20 ), + COALESCE ( - 65, 87 * ( 63 * - 3 ), - MAX( ALL - 85 ) / - NULLIF ( 84 * 97, + 98 ) ) + + COUNT( * ) * 57 ) * - 45 + 8 AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-7019
SELECT NULLIF ( + COUNT ( ALL + 20 ), + COALESCE ( - 65, 87 * ( 63 * - 3 ), - MAX ( ALL - 85 ) / - NULLIF ( 84 * 97, + 98 ) ) + + COUNT ( * ) * 57 ) * - 45 + 8 AS col1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT - COUNT( * ) - + 10 + + 31
----
20

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT - COUNT ( * ) - + 10 + + 31
----
20

query I rowsort
SELECT DISTINCT - 2
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7022
SELECT ALL - + ( CASE - 40 WHEN 52 + + CASE - 53 WHEN + 86 * COUNT( * ) THEN NULL WHEN 36 + NULLIF ( + 20, AVG ( - 97 ) ) * + 66 THEN NULL WHEN - ( 72 ) / + 17 THEN - ( + CAST( NULL AS DECIMAL ) ) ELSE ( 43 ) / + COUNT( * ) END * - ( 97 ) THEN + ( 35 ) * 37 END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL - + ( CASE - 40 WHEN 52 + + CASE - 53 WHEN + 86 * COUNT ( * ) THEN NULL WHEN 36 + NULLIF ( + 20, AVG ( - 97 ) ) * + 66 THEN NULL WHEN - ( 72 ) / + 17 THEN - ( + CAST ( NULL AS REAL ) ) ELSE ( 43 ) / + COUNT ( * ) END * - ( 97 ) THEN + ( 35 ) * 37 END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7023
SELECT + + 80 * + COUNT( * ) - 19 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-7023
SELECT + + 80 * + COUNT ( * ) - 19 AS col1
----
61

query I rowsort
SELECT 5 * - 91 * 24
----
-10920

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT ALL MIN( + 15 )
----
15

skipif mysql # not compatible
query I rowsort label-7025
SELECT ALL MIN ( + 15 )
----
15

query I rowsort
SELECT 35 + + - ( 52 ) AS col0
----
-17

query I rowsort
SELECT - + 51 AS col0
----
-51

query I rowsort
SELECT + NULLIF ( + 37, 10 )
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT COUNT( ALL + 18 ) + + COUNT( * ) * - 41
----
-40

skipif mysql # not compatible
query I rowsort label-7029
SELECT COUNT ( ALL + 18 ) + + COUNT ( * ) * - 41
----
-40

query I rowsort
SELECT ( + 28 ) * 10
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7031
SELECT ALL + CASE + CAST( - COUNT( * ) AS SIGNED ) WHEN + 44 * COUNT( DISTINCT 22 ) + - 76 THEN NULL WHEN - AVG ( 50 ) THEN + 82 END + COUNT( * ) / - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL + CASE + CAST ( - COUNT ( * ) AS INTEGER ) WHEN + 44 * COUNT ( DISTINCT 22 ) + - 76 THEN NULL WHEN - AVG ( 50 ) THEN + 82 END + COUNT ( * ) / - 7
----
NULL

query I rowsort
SELECT 15 + + ( 46 ) AS col2
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL - CASE 90 WHEN + 45 * 88 - - CAST( - 35 AS SIGNED ) THEN 78 WHEN + 65 * COUNT( * ) THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - CASE 90 WHEN + 45 * 88 - - CAST ( - 35 AS INTEGER ) THEN 78 WHEN + 65 * COUNT ( * ) THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7034
SELECT DISTINCT - 71 + - - COUNT( * ) DIV + 73 AS col0
----
-71

skipif mysql # not compatible
query I rowsort label-7034
SELECT DISTINCT - 71 + - - COUNT ( * ) / + 73 AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT ALL 37 + - + 30 + 40 * COUNT( * )
----
47

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL 37 + - + 30 + 40 * COUNT ( * )
----
47

query I rowsort
SELECT DISTINCT - + 56 + + - 17 AS col2
----
-73

query I rowsort
SELECT DISTINCT - 79 + + - ( 31 ) + + 7 * 23 col2
----
51

query I rowsort
SELECT ALL NULLIF ( - - 69, 3 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT - + MAX( ALL 83 ) * ( + 57 )
----
-4731

skipif mysql # not compatible
query I rowsort label-7039
SELECT - + MAX ( ALL 83 ) * ( + 57 )
----
-4731

query I rowsort
SELECT - + 52 + + 95
----
43

query I rowsort
SELECT - ( - ( + 72 ) )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7042
SELECT DISTINCT - 30 + 23 - CASE WHEN NOT - 44 IS NULL THEN - 21 + 6 * ( COUNT( * ) ) END DIV - 70 AS col0
----
-7

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT - 30 + 23 - CASE WHEN NOT - 44 IS NULL THEN - 21 + 6 * ( COUNT ( * ) ) END / - 70 AS col0
----
-7

query I rowsort
SELECT - 34 AS col0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT ALL - ( - - 97 ) + - - 51 + ( - 97 - COUNT( - 58 + + 21 ) ) * 8
----
-830

skipif mysql # not compatible
query I rowsort label-7044
SELECT ALL - ( - - 97 ) + - - 51 + ( - 97 - COUNT ( - 58 + + 21 ) ) * 8
----
-830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT - 77 * - CAST( 9 AS SIGNED )
----
693

skipif mysql # not compatible
query I rowsort label-7045
SELECT - 77 * - CAST ( 9 AS INTEGER )
----
693

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7046
SELECT DISTINCT - 3 + - CASE + - 8 WHEN - 82 + 90 THEN NULL WHEN - CASE + 47 WHEN NULLIF ( - COUNT( * ), + 17 / 93 - + AVG ( 45 ) * 93 ) - - 63 THEN NULL WHEN 42 THEN CAST( NULL AS SIGNED ) ELSE 18 END THEN NULL WHEN 99 THEN ( COUNT( * ) ) END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7046
SELECT DISTINCT - 3 + - CASE + - 8 WHEN - 82 + 90 THEN NULL WHEN - CASE + 47 WHEN NULLIF ( - COUNT ( * ), + 17 / 93 - + AVG ( 45 ) * 93 ) - - 63 THEN NULL WHEN 42 THEN CAST ( NULL AS INTEGER ) ELSE 18 END THEN NULL WHEN 99 THEN ( COUNT ( * ) ) END col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT DISTINCT + CASE 19 WHEN + 52 THEN - 13 * COUNT( * ) WHEN 75 * 18 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT + CASE 19 WHEN + 52 THEN - 13 * COUNT ( * ) WHEN 75 * 18 THEN NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL - 96 * - COUNT( * ) - + COUNT( * ) - - 70
----
165

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL - 96 * - COUNT ( * ) - + COUNT ( * ) - - 70
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7049
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 10 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7050
SELECT COALESCE ( + COUNT( * ), + - COUNT( DISTINCT - 86 ) * - 54 + - 88 * 7 )
----
1

skipif mysql # not compatible
query I rowsort label-7050
SELECT COALESCE ( + COUNT ( * ), + - COUNT ( DISTINCT - 86 ) * - 54 + - 88 * 7 )
----
1

query I rowsort
SELECT - 46 * - - 54 - + + 89 * - 33
----
453

query I rowsort
SELECT + NULLIF ( 65, 69 ) * 59 AS col1
----
3835

query I rowsort
SELECT ALL + 13 * + 10
----
130

query I rowsort
SELECT COALESCE ( + 37, 99, COALESCE ( - 36, + 73 ), 24 ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT + SUM( ALL + - 16 )
----
-16

skipif mysql # not compatible
query I rowsort label-7055
SELECT + SUM ( ALL + - 16 )
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT - MIN( DISTINCT + ( - 38 ) ) * 32
----
1216

skipif mysql # not compatible
query I rowsort label-7056
SELECT - MIN ( DISTINCT + ( - 38 ) ) * 32
----
1216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7057
SELECT ALL + CAST( NULL AS SIGNED ) * MIN( - COALESCE ( 22, + 2 ) ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7057
SELECT ALL + CAST ( NULL AS INTEGER ) * MIN ( - COALESCE ( 22, + 2 ) ) col0
----
NULL

query I rowsort
SELECT - 63 - - 3 AS col1
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-7059
SELECT DISTINCT + 93, CASE NULLIF ( + 33, 77 + - 36 * - 40 ) WHEN CASE MAX( 5 ) WHEN 79 + - 13 THEN - 9 + SUM( - 47 ) ELSE + 91 * COUNT( * ) END THEN 87 + 61 WHEN 91 THEN NULL END * 37 + + 41 col0
----
93
NULL

skipif mysql # not compatible
query II rowsort label-7059
SELECT DISTINCT + 93, CASE NULLIF ( + 33, 77 + - 36 * - 40 ) WHEN CASE MAX ( 5 ) WHEN 79 + - 13 THEN - 9 + SUM ( - 47 ) ELSE + 91 * COUNT ( * ) END THEN 87 + 61 WHEN 91 THEN NULL END * 37 + + 41 col0
----
93
NULL

query I rowsort
SELECT ALL 51 * - - 41 AS col2
----
2091

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT + 57 * NULLIF ( 85, 36 + COUNT( + 22 ) )
----
4845

skipif mysql # not compatible
query I rowsort label-7061
SELECT + 57 * NULLIF ( 85, 36 + COUNT ( + 22 ) )
----
4845

query I rowsort
SELECT ALL + 5 AS col1
----
5

query I rowsort
SELECT ALL + NULLIF ( + ( 2 ), - 16 + - 84 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT ALL - 68 * - - CASE + 96 WHEN CAST( NULL AS SIGNED ) * - 68 + 53 THEN 19 ELSE NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - 68 * - - CASE + 96 WHEN CAST ( NULL AS INTEGER ) * - 68 + 53 THEN 19 ELSE NULL END * 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT ALL - COALESCE ( - 49, + 11, 85 * 12 ) * 91 + + COUNT( * )
----
4460

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - COALESCE ( - 49, + 11, 85 * 12 ) * 91 + + COUNT ( * )
----
4460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7066
SELECT + + CASE - + COUNT( * ) WHEN - - CAST( NULL AS SIGNED ) THEN 53 + COUNT( + ( + 44 ) + 14 ) ELSE 42 + + 7 END AS col1
----
49

skipif mysql # not compatible
query I rowsort label-7066
SELECT + + CASE - + COUNT ( * ) WHEN - - CAST ( NULL AS INTEGER ) THEN 53 + COUNT ( + ( + 44 ) + 14 ) ELSE 42 + + 7 END AS col1
----
49

query I rowsort
SELECT + ( + + 47 ) * + + 64 + + 67 AS col0
----
3075

query I rowsort
SELECT DISTINCT 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT ALL - 3 * - ( - + COUNT( DISTINCT NULLIF ( 4, 58 ) ) ) + + NULLIF ( - 17, + 77 * + COALESCE ( ( 91 ), CASE 70 WHEN + 39 + 68 THEN NULL ELSE + MIN( ALL - 30 ) * - MIN( DISTINCT - 78 * + 57 ) END ) + 66 ) + + COUNT( * ) * + 32 AS col2
----
12

skipif mysql # not compatible
query I rowsort label-7069
SELECT ALL - 3 * - ( - + COUNT ( DISTINCT NULLIF ( 4, 58 ) ) ) + + NULLIF ( - 17, + 77 * + COALESCE ( ( 91 ), CASE 70 WHEN + 39 + 68 THEN NULL ELSE + MIN ( ALL - 30 ) * - MIN ( DISTINCT - 78 * + 57 ) END ) + 66 ) + + COUNT ( * ) * + 32 AS col2
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT ALL 82 DIV + - 21
----
-3

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL 82 / + - 21
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT DISTINCT 26 + + - COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7071
SELECT DISTINCT 26 + + - COUNT ( * )
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT + + 61 + + CAST( 25 AS SIGNED )
----
86

skipif mysql # not compatible
query I rowsort label-7072
SELECT + + 61 + + CAST ( 25 AS INTEGER )
----
86

query I rowsort
SELECT - ( - - 23 ) AS col0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT ALL + 92 DIV 32 * - 45 + 30 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL + 92 / 32 * - 45 + 30 AS col0
----
-60

query I rowsort
SELECT - 17 col2
----
-17

query I rowsort
SELECT - + NULLIF ( - 48, + - 48 * - 18 + COALESCE ( - 44 + 69, - 67, + 40 + 12 * 0, 55 + 37 ) )
----
48

query I rowsort
SELECT - + 6 * + - ( + + 97 ) AS col2
----
582

query I rowsort
SELECT ALL ( - 43 ) + - - 54
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7079
SELECT + COUNT( * ) - 50 DIV - - 22 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7079
SELECT + COUNT ( * ) - 50 / - - 22 AS col1
----
-1

query II rowsort
SELECT DISTINCT 1 AS col2, + 16 AS col0
----
1
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7081
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) - 64 * + 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7081
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) - 64 * + 53 AS col2
----
NULL

query I rowsort
SELECT 6 AS col2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7083
SELECT ALL SUM( - + NULLIF ( + 41, + CAST( NULL AS SIGNED ) + + 20 ) ) col1
----
-41

skipif mysql # not compatible
query I rowsort label-7083
SELECT ALL SUM ( - + NULLIF ( + 41, + CAST ( NULL AS INTEGER ) + + 20 ) ) col1
----
-41

query I rowsort
SELECT DISTINCT 94 * - 14
----
-1316

query I rowsort
SELECT + 18 + - 43 * - - ( - 58 )
----
2512

onlyif mysql # aggregate syntax: 
query I rowsort label-7086
SELECT - 23 - MIN( DISTINCT - - 53 )
----
-76

skipif mysql # not compatible
query I rowsort label-7086
SELECT - 23 - MIN ( DISTINCT - - 53 )
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT ALL COALESCE ( + 91, - COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-7087
SELECT ALL COALESCE ( + 91, - COUNT ( * ) )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT 27 * - + 51 + - 52 - + COUNT( * ) * 35 * + 53 AS col1
----
-3284

skipif mysql # not compatible
query I rowsort label-7088
SELECT 27 * - + 51 + - 52 - + COUNT ( * ) * 35 * + 53 AS col1
----
-3284

onlyif mysql # DIV for integer division: 
query II rowsort label-7089
SELECT - 87 DIV 61 AS col1, 17
----
-1
17

skipif mysql # not compatible
query II rowsort label-7089
SELECT - 87 / 61 AS col1, 17
----
-1
17

query I rowsort
SELECT ALL + 80 AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7091
SELECT + COUNT( * ) DIV + + 24 + - + 21 DIV - 40 + - COUNT( * ) * + CAST( - COUNT( * ) DIV - 45 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7091
SELECT + COUNT ( * ) / + + 24 + - + 21 / - 40 + - COUNT ( * ) * + CAST ( - COUNT ( * ) / - 45 AS INTEGER )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7092
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT DISTINCT + CASE + + COUNT( * ) WHEN - ( - 16 ) * - 3 THEN 36 WHEN 5 * 44 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + CASE + + COUNT ( * ) WHEN - ( - 16 ) * - 3 THEN 36 WHEN 5 * 44 THEN NULL ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7094
SELECT - COUNT( DISTINCT 42 ) DIV - + 27 * + 72 + 31 AS col0
----
31

skipif mysql # not compatible
query I rowsort label-7094
SELECT - COUNT ( DISTINCT 42 ) / - + 27 * + 72 + 31 AS col0
----
31

query I rowsort
SELECT 28 * + 57 + + 5 AS col2
----
1601

query I rowsort
SELECT DISTINCT + 37 * - ( NULLIF ( 14, - 45 ) )
----
-518

query I rowsort
SELECT ALL - 82 * - - ( - 19 ) AS col2
----
1558

onlyif mysql # aggregate syntax: 
query II rowsort label-7098
SELECT + COUNT( 48 ) AS col2, 43 AS col2
----
1
43

skipif mysql # not compatible
query II rowsort label-7098
SELECT + COUNT ( 48 ) AS col2, 43 AS col2
----
1
43

query I rowsort
SELECT ALL + NULLIF ( - + 3, - - 99 )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT + 9 DIV 92 + + 61 + + 28 * + 15
----
481

skipif mysql # not compatible
query I rowsort label-7100
SELECT + 9 / 92 + + 61 + + 28 * + 15
----
481

query I rowsort
SELECT + CASE - - 61 WHEN + - 5 THEN + + 32 END AS col2
----
NULL

query I rowsort
SELECT + 56 * 82
----
4592

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT ALL - 78 DIV + 4 + 46 + + 27 AS col0
----
54

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL - 78 / + 4 + 46 + + 27 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL - 42 * + COUNT( * ) + 68 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - 42 * + COUNT ( * ) + 68 AS col2
----
26

query I rowsort
SELECT + + 21
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7106
SELECT DISTINCT + ( - ( - 47 ) ) * + - ( CAST( NULL AS SIGNED ) ) + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT DISTINCT + ( - ( - 47 ) ) * + - ( CAST ( NULL AS INTEGER ) ) + 2
----
NULL

query I rowsort
SELECT + + 67
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT ALL + MIN( ALL - + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-7108
SELECT ALL + MIN ( ALL - + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7109
SELECT ALL COUNT( * ) * SUM( - 82 ) + + 0 DIV + COALESCE ( + COUNT( * ) * COUNT( 29 ), + 39, COALESCE ( 7, 69 + 93, 46 ) ) col2
----
-82

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL COUNT ( * ) * SUM ( - 82 ) + + 0 / + COALESCE ( + COUNT ( * ) * COUNT ( 29 ), + 39, COALESCE ( 7, 69 + 93, 46 ) ) col2
----
-82

query I rowsort
SELECT ALL + - 97 AS col0
----
-97

query I rowsort
SELECT - 89 + 1 * + - 11 AS col1
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7112
SELECT - + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL CASE 58 WHEN 3 * - ( - 0 ) THEN + 67 END AS col1
----
NULL

query I rowsort
SELECT ALL 42 + - 68
----
-26

query I rowsort
SELECT ALL 55 - 99 AS col2
----
-44

query I rowsort
SELECT 1 + 42
----
43

query II rowsort
SELECT DISTINCT + - 34 * 57, - 14 col1
----
-1938
-14

query I rowsort
SELECT DISTINCT + + 9 * + 11 + + 63 - 7
----
155

query I rowsort
SELECT 62 * 52 - 90
----
3134

query I rowsort
SELECT ALL + 69 - - 54 AS col2
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-7121
SELECT DISTINCT 83 DIV 79 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7121
SELECT DISTINCT 83 / 79 AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7122
SELECT ALL 42 - - 27 + - 5 DIV - + CAST( - - 65 AS SIGNED )
----
69

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL 42 - - 27 + - 5 / - + CAST ( - - 65 AS INTEGER )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT 45 * + NULLIF ( - COUNT( * ), - 90 )
----
-45

skipif mysql # not compatible
query I rowsort label-7123
SELECT 45 * + NULLIF ( - COUNT ( * ), - 90 )
----
-45

query I rowsort
SELECT DISTINCT 16 AS col0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7125
SELECT ALL ( - 76 ) / + 34 + - CAST( NULL AS DECIMAL ) * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-7125
SELECT ALL ( - 76 ) / + 34 + - CAST ( NULL AS REAL ) * 64
----
NULL

query I rowsort
SELECT ( 50 ) + + ( 73 )
----
123

query I rowsort
SELECT 58 * - - 31 AS col0
----
1798

query I rowsort
SELECT ALL 22 col2
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT - 23, - 60 * + COALESCE ( - 49, + COUNT( * ), 69 * 69 ) AS col2
----
-23
2940

skipif mysql # not compatible
query II rowsort label-7129
SELECT - 23, - 60 * + COALESCE ( - 49, + COUNT ( * ), 69 * 69 ) AS col2
----
-23
2940

query I rowsort
SELECT 64 + + 46
----
110

query I rowsort
SELECT 35 * 68 AS col0
----
2380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7132
SELECT 74 + 55 * - 27 - CAST( + 43 AS SIGNED ) - + COALESCE ( 98, + 69, 22 ) * - 53
----
3740

skipif mysql # not compatible
query I rowsort label-7132
SELECT 74 + 55 * - 27 - CAST ( + 43 AS INTEGER ) - + COALESCE ( 98, + 69, 22 ) * - 53
----
3740

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT 41 * - 6 DIV + COUNT( ALL - 8 ) AS col2
----
-246

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT 41 * - 6 / + COUNT ( ALL - 8 ) AS col2
----
-246

query I rowsort
SELECT ALL 33 col0
----
33

query I rowsort
SELECT ALL - 50 * + 10 * 54 AS col1
----
-27000

query I rowsort
SELECT DISTINCT 5 * - 49 AS col0
----
-245

query I rowsort
SELECT 73 * - 87 AS col1
----
-6351

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT COUNT( * ) - + 7
----
-6

skipif mysql # not compatible
query I rowsort label-7138
SELECT COUNT ( * ) - + 7
----
-6

query I rowsort
SELECT ALL 40 * - - 67
----
2680

query I rowsort
SELECT 60 * - 93 - + ( + + 76 ) AS col2
----
-5656

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7141
SELECT + CAST( NULL AS SIGNED ) DIV + - 77 + + - 20 AS col1, + 29 DIV 10 * + CASE - NULLIF ( - 14, - 15 + 22 ) WHEN 15 THEN NULL ELSE 28 + 31 END AS col0
----
NULL
118

skipif mysql # not compatible
query II rowsort label-7141
SELECT + CAST ( NULL AS INTEGER ) / + - 77 + + - 20 AS col1, + 29 / 10 * + CASE - NULLIF ( - 14, - 15 + 22 ) WHEN 15 THEN NULL ELSE 28 + 31 END AS col0
----
NULL
118

query I rowsort
SELECT + 58 col1
----
58

query I rowsort
SELECT 5 + - + 39 + + - 53
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7144
SELECT ALL - - 16 + - - 45 + + 34 + + - 72 DIV COUNT( * ) * COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL - - 16 + - - 45 + + 34 + + - 72 / COUNT ( * ) * COUNT ( * )
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-7145
SELECT DISTINCT + + 54 DIV + 20
----
2

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT + + 54 / + 20
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT ALL - + 91 + - 54 + CAST( NULL AS SIGNED ) + 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL - + 91 + - 54 + CAST ( NULL AS INTEGER ) + 55 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7147
SELECT + COUNT( * ) DIV + 52 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7147
SELECT + COUNT ( * ) / + 52 AS col0
----
0

query I rowsort
SELECT DISTINCT 76 + + 23 * - + 66
----
-1442

query I rowsort
SELECT ALL - - 24 + 62 + 59
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT + - CASE + COUNT( * ) WHEN - 14 + + + 54 + + + 27 + 44 THEN NULL ELSE 1 * - 40 END * 45
----
1800

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT + - CASE + COUNT ( * ) WHEN - 14 + + + 54 + + + 27 + 44 THEN NULL ELSE 1 * - 40 END * 45
----
1800

query I rowsort
SELECT DISTINCT - 94 + + - 4 + - 1 AS col1
----
-99

query I rowsort
SELECT + 64 * - 98 col2
----
-6272

onlyif mysql # aggregate syntax: 
query II rowsort label-7153
SELECT 59 * MAX( - 89 ) AS col2, + COUNT( * )
----
-5251
1

skipif mysql # not compatible
query II rowsort label-7153
SELECT 59 * MAX ( - 89 ) AS col2, + COUNT ( * )
----
-5251
1

query I rowsort
SELECT ALL + - 11 * + - 78 AS col1
----
858

query I rowsort
SELECT DISTINCT - - 49 + - 60 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7156
SELECT + COALESCE ( + + 2, 89, + - MAX( ALL - ( ( + 8 ) ) ) + + COUNT( * ) ) * + COALESCE ( + CAST( + 19 AS SIGNED ) * 72, 76, + 18 * 7 ) + COALESCE ( - ( 49 ), CAST( NULL AS SIGNED ) + SUM( ALL + CAST( NULL AS SIGNED ) ) * - COALESCE ( 26, - 72 ) ) AS col0
----
2687

skipif mysql # not compatible
query I rowsort label-7156
SELECT + COALESCE ( + + 2, 89, + - MAX ( ALL - ( ( + 8 ) ) ) + + COUNT ( * ) ) * + COALESCE ( + CAST ( + 19 AS INTEGER ) * 72, 76, + 18 * 7 ) + COALESCE ( - ( 49 ), CAST ( NULL AS INTEGER ) + SUM ( ALL + CAST ( NULL AS INTEGER ) ) * - COALESCE ( 26, - 72 ) ) AS col0
----
2687

query I rowsort
SELECT DISTINCT - + 21 AS col0
----
-21

query I rowsort
SELECT DISTINCT - 34 - - - 9
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7159
SELECT CAST( + 1 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-7159
SELECT CAST ( + 1 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL - 0 - - ( - 95 ) - - 87 + + COUNT( * ) * 84
----
76

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - 0 - - ( - 95 ) - - 87 + + COUNT ( * ) * 84
----
76

query I rowsort
SELECT DISTINCT - 56
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7162
SELECT + + NULLIF ( 91, - COUNT( * ) ), + 6 col2
----
91
6

skipif mysql # not compatible
query II rowsort label-7162
SELECT + + NULLIF ( 91, - COUNT ( * ) ), + 6 col2
----
91
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT - + ( + + SUM( DISTINCT - 7 ) ) - + 52 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT - + ( + + SUM ( DISTINCT - 7 ) ) - + 52 AS col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT COUNT( * ) * - - 75
----
75

skipif mysql # not compatible
query I rowsort label-7164
SELECT COUNT ( * ) * - - 75
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT DISTINCT + CASE + COALESCE ( - 94, - + COALESCE ( + 88, - COUNT( * ), - 2 ) ) WHEN + 50 THEN NULL WHEN 90 * - MAX( - 58 ) THEN 58 / + 78 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7165
SELECT DISTINCT + CASE + COALESCE ( - 94, - + COALESCE ( + 88, - COUNT ( * ), - 2 ) ) WHEN + 50 THEN NULL WHEN 90 * - MAX ( - 58 ) THEN 58 / + 78 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT 19 + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-7166
SELECT 19 + COUNT ( * )
----
20

query II rowsort
SELECT - 13 AS col1, + 58
----
-13
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT COUNT( ALL + 84 ) * - 22
----
-22

skipif mysql # not compatible
query I rowsort label-7168
SELECT COUNT ( ALL + 84 ) * - 22
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT 29 + 5 + - SUM( DISTINCT 4 ) + 89 AS col0
----
119

skipif mysql # not compatible
query I rowsort label-7169
SELECT 29 + 5 + - SUM ( DISTINCT 4 ) + 89 AS col0
----
119

query II rowsort
SELECT 67 AS col2, 81
----
67
81

query I rowsort
SELECT ALL 6 * + 80 AS col2
----
480

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT 35 DIV 14
----
2

skipif mysql # not compatible
query I rowsort label-7172
SELECT 35 / 14
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7173
SELECT COUNT( * ) DIV + 77 * 28 * - 34, + 24 AS col0
----
0
24

skipif mysql # not compatible
query II rowsort label-7173
SELECT COUNT ( * ) / + 77 * 28 * - 34, + 24 AS col0
----
0
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT SUM( DISTINCT - 74 ) + + CASE + 50 WHEN SUM( ALL 39 ) THEN NULL WHEN - ( + 22 ) - 46 * COUNT( * ) THEN COUNT( * ) * - 27 END + MAX( + 65 + ( - COALESCE ( 56, 13 ) ) * - 18 ) * ( 72 / ( COUNT( * ) ) + - 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7174
SELECT SUM ( DISTINCT - 74 ) + + CASE + 50 WHEN SUM ( ALL 39 ) THEN NULL WHEN - ( + 22 ) - 46 * COUNT ( * ) THEN COUNT ( * ) * - 27 END + MAX ( + 65 + ( - COALESCE ( 56, 13 ) ) * - 18 ) * ( 72 / ( COUNT ( * ) ) + - 87 )
----
NULL

query I rowsort
SELECT ALL 35 + - - 72 + - + 42 * ( - + 88 ) AS col1
----
3803

query I rowsort
SELECT 64 + + + 71 + + - 72
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7177
SELECT DISTINCT 64 + + 66 col0, 91 DIV - + 56 - COALESCE ( - 42, ( + 54 ), + MIN( DISTINCT - 21 ) * + 50 ) AS col2
----
130
41

skipif mysql # not compatible
query II rowsort label-7177
SELECT DISTINCT 64 + + 66 col0, 91 / - + 56 - COALESCE ( - 42, ( + 54 ), + MIN ( DISTINCT - 21 ) * + 50 ) AS col2
----
130
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT COUNT( + + ( 70 ) ) * 25 * - 70 - - 94 + 0 * + 29
----
-1656

skipif mysql # not compatible
query I rowsort label-7178
SELECT COUNT ( + + ( 70 ) ) * 25 * - 70 - - 94 + 0 * + 29
----
-1656

query I rowsort
SELECT ALL 99 + + + 7 + ( + 43 )
----
149

query I rowsort
SELECT 54 + + 83 AS col0
----
137

query I rowsort
SELECT ALL 92 + + 48 * 51
----
2540

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT - NULLIF ( + 97, COUNT( * ) )
----
-97

skipif mysql # not compatible
query I rowsort label-7182
SELECT - NULLIF ( + 97, COUNT ( * ) )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT - COUNT( ALL + 95 ) * - - 7 + - 27 + - + 33 * - COALESCE ( + MIN( ALL 35 ), + 78 - 2 )
----
1121

skipif mysql # not compatible
query I rowsort label-7183
SELECT - COUNT ( ALL + 95 ) * - - 7 + - 27 + - + 33 * - COALESCE ( + MIN ( ALL 35 ), + 78 - 2 )
----
1121

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + SUM( DISTINCT + 76 )
----
76

skipif mysql # not compatible
query I rowsort label-7184
SELECT + SUM ( DISTINCT + 76 )
----
76

query I rowsort
SELECT + - 35 AS col2
----
-35

query I rowsort
SELECT ALL 74 * 50 AS col0
----
3700

query I rowsort
SELECT ALL + - 88 AS col0
----
-88

query I rowsort
SELECT + 62 * - - 56
----
3472

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT - COUNT( * ) * + - 85 AS col0
----
85

skipif mysql # not compatible
query I rowsort label-7189
SELECT - COUNT ( * ) * + - 85 AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT - COUNT( * ) * + MAX( ALL + + 6 ) - + COUNT( * ) - + COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - COUNT ( * ) * + MAX ( ALL + + 6 ) - + COUNT ( * ) - + COUNT ( * ) AS col1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7191
SELECT CAST( - - 82 AS SIGNED ) col0, 48
----
82
48

skipif mysql # not compatible
query II rowsort label-7191
SELECT CAST ( - - 82 AS INTEGER ) col0, 48
----
82
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT - + COUNT( * ) + + SUM( + - 21 )
----
-22

skipif mysql # not compatible
query I rowsort label-7192
SELECT - + COUNT ( * ) + + SUM ( + - 21 )
----
-22

query I rowsort
SELECT DISTINCT + - 67 * 16 - + - 13
----
-1059

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT - 88 * + + 60 + + 84 - - - COUNT( * ) + 83 * + MAX( DISTINCT - ( + 76 ) ) AS col0
----
-11505

skipif mysql # not compatible
query I rowsort label-7194
SELECT - 88 * + + 60 + + 84 - - - COUNT ( * ) + 83 * + MAX ( DISTINCT - ( + 76 ) ) AS col0
----
-11505

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7195
SELECT DISTINCT + - 60, 44 * CAST( NULL AS SIGNED ) / + + 46 * + - CAST( + + 16 AS DECIMAL ) AS col0
----
-60
NULL

skipif mysql # not compatible
query II rowsort label-7195
SELECT DISTINCT + - 60, 44 * CAST ( NULL AS INTEGER ) / + + 46 * + - CAST ( + + 16 AS REAL ) AS col0
----
-60
NULL

query I rowsort
SELECT DISTINCT + 4 AS col1
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT ALL 4 * + ( + MIN( + 77 ) ) * + 61
----
18788

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL 4 * + ( + MIN ( + 77 ) ) * + 61
----
18788

onlyif mysql # aggregate syntax: 
query I rowsort label-7198
SELECT + 73 + - 8 * + 92 * CASE - + COUNT( * ) WHEN 17 THEN + 77 WHEN + 5 + 54 * - 54 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT + 73 + - 8 * + 92 * CASE - + COUNT ( * ) WHEN 17 THEN + 77 WHEN + 5 + 54 * - 54 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( ( - + 33 ) ) * + - 21 * - SUM( + 6 ) * + 69
----
8694

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( ( - + 33 ) ) * + - 21 * - SUM ( + 6 ) * + 69
----
8694

query I rowsort
SELECT ALL + - COALESCE ( - ( - 42 ), + - 67 ) AS col2
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7201
SELECT - + COUNT( ALL - + 37 ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) + + 0
----
NULL

skipif mysql # not compatible
query I rowsort label-7201
SELECT - + COUNT ( ALL - + 37 ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT DISTINCT + 61 * - COUNT( * ) * - COUNT( * ) * + 67 * + - 17 col0
----
-69479

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + 61 * - COUNT ( * ) * - COUNT ( * ) * + 67 * + - 17 col0
----
-69479

query II rowsort
SELECT - 95 * + 23 AS col2, 35
----
-2185
35

query II rowsort
SELECT - 71 * 62, + 68 AS col0
----
-4402
68

query I rowsort
SELECT ALL - 95 + 44 * + 72 * + - 90
----
-285215

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7206
SELECT - COALESCE ( + 0, COUNT( ALL 91 ) ) + - + 48 AS col0, CASE + 64 WHEN 16 THEN + 92 + 1 * 97 WHEN - 45 * + ( + 58 ) THEN NULL WHEN 19 THEN + 72 + NULLIF ( 97, - COUNT( * ) + 61 ) ELSE COUNT( * ) DIV - 21 + 92 END
----
-48
92

skipif mysql # not compatible
query II rowsort label-7206
SELECT - COALESCE ( + 0, COUNT ( ALL 91 ) ) + - + 48 AS col0, CASE + 64 WHEN 16 THEN + 92 + 1 * 97 WHEN - 45 * + ( + 58 ) THEN NULL WHEN 19 THEN + 72 + NULLIF ( 97, - COUNT ( * ) + 61 ) ELSE COUNT ( * ) / - 21 + 92 END
----
-48
92

query I rowsort
SELECT DISTINCT NULLIF ( 43, - 91 )
----
43

query I rowsort
SELECT DISTINCT + 50 + + 28 * + 16 AS col0
----
498

query I rowsort
SELECT ALL - 96 + 20
----
-76

query I rowsort
SELECT 46 col2
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-7211
SELECT ALL + 32 + - COUNT( * ) AS col1, - 70 * 13 - COUNT( * ) col1
----
31
-911

skipif mysql # not compatible
query II rowsort label-7211
SELECT ALL + 32 + - COUNT ( * ) AS col1, - 70 * 13 - COUNT ( * ) col1
----
31
-911

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7212
SELECT + CAST( NULL AS SIGNED ) + + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7212
SELECT + CAST ( NULL AS INTEGER ) + + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7213
SELECT ALL + 23 * + + 74 AS col2, COUNT( - 36 ) * + + 21 * 26 AS col2
----
1702
546

skipif mysql # not compatible
query II rowsort label-7213
SELECT ALL + 23 * + + 74 AS col2, COUNT ( - 36 ) * + + 21 * 26 AS col2
----
1702
546

query I rowsort
SELECT DISTINCT + 6 * - - 77
----
462

query I rowsort
SELECT DISTINCT 10 + 40 + + ( - - 18 ) AS col2
----
68

query I rowsort
SELECT DISTINCT - 78 + - 67 - 66 AS col2
----
-211

query I rowsort
SELECT DISTINCT 1 col0
----
1

query I rowsort
SELECT ALL 45 + + 32
----
77

query I rowsort
SELECT DISTINCT - 6 * + - 61 * + 99 AS col2
----
36234

query I rowsort
SELECT DISTINCT + 94 AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7221
SELECT - CAST( - 4 AS SIGNED )
----
4

skipif mysql # not compatible
query I rowsort label-7221
SELECT - CAST ( - 4 AS INTEGER )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT + 61 * + - 39 - - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT + 61 * + - 39 - - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT + - 14 / - + COUNT( * ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7223
SELECT + - 14 / - + COUNT ( * ) * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7224
SELECT ALL - CAST( NULL AS SIGNED ) / 37 - 89 AS col2, 0 - + 30 + + 90
----
NULL
60

skipif mysql # not compatible
query II rowsort label-7224
SELECT ALL - CAST ( NULL AS INTEGER ) / 37 - 89 AS col2, 0 - + 30 + + 90
----
NULL
60

query I rowsort
SELECT + + 39 * - 57
----
-2223

query I rowsort
SELECT ALL + + 99
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7227
SELECT + + CAST( - 32 AS SIGNED ) AS col2
----
-32

skipif mysql # not compatible
query I rowsort label-7227
SELECT + + CAST ( - 32 AS INTEGER ) AS col2
----
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7228
SELECT - 40 * COUNT( * ) + - + 80 + + 23 DIV 82 DIV + ( + - 91 ) + ( 96 ) * - 2 col1
----
-312

skipif mysql # not compatible
query I rowsort label-7228
SELECT - 40 * COUNT ( * ) + - + 80 + + 23 / 82 / + ( + - 91 ) + ( 96 ) * - 2 col1
----
-312

query I rowsort
SELECT ALL + + 43 AS col1
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7230
SELECT DISTINCT - 71 DIV - - 65 - NULLIF ( 85, 1 * 86 * - MAX( ALL 61 ) + + MAX( DISTINCT + ( 52 ) - 10 ) ) + SUM( DISTINCT 38 ) * + 41 AS col2
----
1472

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT - 71 / - - 65 - NULLIF ( 85, 1 * 86 * - MAX ( ALL 61 ) + + MAX ( DISTINCT + ( 52 ) - 10 ) ) + SUM ( DISTINCT 38 ) * + 41 AS col2
----
1472

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7231
SELECT DISTINCT + + CAST( 52 AS SIGNED ) col1, 15
----
52
15

skipif mysql # not compatible
query II rowsort label-7231
SELECT DISTINCT + + CAST ( 52 AS INTEGER ) col1, 15
----
52
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT + NULLIF ( 60, + + 39 + SUM( DISTINCT - 56 ) )
----
60

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + NULLIF ( 60, + + 39 + SUM ( DISTINCT - 56 ) )
----
60

query I rowsort
SELECT DISTINCT + 27 AS col2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT 4 * + + 34 - + - COUNT( * ) * - 86 + + 55 AS col1
----
105

skipif mysql # not compatible
query I rowsort label-7234
SELECT 4 * + + 34 - + - COUNT ( * ) * - 86 + + 55 AS col1
----
105

query I rowsort
SELECT ALL + - 49 AS col0
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-7236
SELECT + MIN( - - 52 ), COUNT( * ) AS col1
----
52
1

skipif mysql # not compatible
query II rowsort label-7236
SELECT + MIN ( - - 52 ), COUNT ( * ) AS col1
----
52
1

query I rowsort
SELECT + ( + 59 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT + - COUNT( * ) * + - 72
----
72

skipif mysql # not compatible
query I rowsort label-7238
SELECT + - COUNT ( * ) * + - 72
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT DISTINCT + - COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + - COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7240
SELECT ALL + + ( - COUNT( * ) ) col1, + 48 AS col1
----
-1
48

skipif mysql # not compatible
query II rowsort label-7240
SELECT ALL + + ( - COUNT ( * ) ) col1, + 48 AS col1
----
-1
48

query I rowsort
SELECT ( + 62 )
----
62

query I rowsort
SELECT - 77 * - - COALESCE ( - 39, + 85 ) AS col2
----
3003

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7243
SELECT ALL 19 * + COUNT( * ) * 65 + + - COUNT( + ( CAST( - 93 AS SIGNED ) ) ) AS col2
----
1234

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL 19 * + COUNT ( * ) * 65 + + - COUNT ( + ( CAST ( - 93 AS INTEGER ) ) ) AS col2
----
1234

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-7244
SELECT DISTINCT + 80 AS col2, - 68 DIV CAST( - - 78 AS SIGNED ) AS col0, - 97
----
80
0
-97

skipif mysql # not compatible
query III rowsort label-7244
SELECT DISTINCT + 80 AS col2, - 68 / CAST ( - - 78 AS INTEGER ) AS col0, - 97
----
80
0
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7245
SELECT + CAST( - 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-7245
SELECT + CAST ( - 79 AS INTEGER )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT ALL + COALESCE ( + 15, 96 * + 25 * + 61 * + 47, 14 ) * - - COUNT( DISTINCT ( + 46 ) ) + + 15 AS col2
----
30

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + COALESCE ( + 15, 96 * + 25 * + 61 * + 47, 14 ) * - - COUNT ( DISTINCT ( + 46 ) ) + + 15 AS col2
----
30

query I rowsort
SELECT DISTINCT CASE 75 WHEN 26 * + 5 THEN NULL ELSE + 99 END
----
99

query I rowsort
SELECT ALL + 37 * 52 AS col0
----
1924

query II rowsort
SELECT - 29 AS col1, 6 AS col1
----
-29
6

onlyif mysql # aggregate syntax: 
query II rowsort label-7250
SELECT + 5 + + 55 * - + 56 * - 70 * MAX( 40 ) AS col0, - ( + - NULLIF ( ( 2 ), 16 * + 85 ) )
----
8624005
2

skipif mysql # not compatible
query II rowsort label-7250
SELECT + 5 + + 55 * - + 56 * - 70 * MAX ( 40 ) AS col0, - ( + - NULLIF ( ( 2 ), 16 * + 85 ) )
----
8624005
2

query I rowsort
SELECT ALL - 92 * - 24 AS col0
----
2208

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT ALL + 37 * - NULLIF ( NULLIF ( + MAX( + + 74 ), + + 24 / + NULLIF ( 25, + 57 ) + 43 ), - COALESCE ( 47, SUM( 64 ) ) ) AS col2
----
-2738

skipif mysql # not compatible
query I rowsort label-7252
SELECT ALL + 37 * - NULLIF ( NULLIF ( + MAX ( + + 74 ), + + 24 / + NULLIF ( 25, + 57 ) + 43 ), - COALESCE ( 47, SUM ( 64 ) ) ) AS col2
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT COUNT( DISTINCT 88 )
----
1

skipif mysql # not compatible
query I rowsort label-7253
SELECT COUNT ( DISTINCT 88 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7254
SELECT - MAX( DISTINCT + 63 ) + - COUNT( * ) * 85 + + 37 DIV + 93
----
-148

skipif mysql # not compatible
query I rowsort label-7254
SELECT - MAX ( DISTINCT + 63 ) + - COUNT ( * ) * 85 + + 37 / + 93
----
-148

query I rowsort
SELECT ALL 63 * - 33 AS col2
----
-2079

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - MAX( - 83 ) + + 49 + + 46
----
178

skipif mysql # not compatible
query I rowsort label-7256
SELECT - MAX ( - 83 ) + + 49 + + 46
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ALL + 29 + + COUNT( * ) * + 87 - - 37 * + MIN( DISTINCT 16 ) * + 72
----
42740

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + 29 + + COUNT ( * ) * + 87 - - 37 * + MIN ( DISTINCT 16 ) * + 72
----
42740

query I rowsort
SELECT 98 + 76 AS col2
----
174

query III rowsort
SELECT ALL 54 AS col2, 61 * + - ( - 38 ) + 25 - 41, + + 23 AS col2
----
54
2302
23

query I rowsort
SELECT 8 + 79 AS col0
----
87

query I rowsort
SELECT 79 + - 40
----
39

query I rowsort
SELECT 65 * - - 86 * 89 AS col1
----
497510

onlyif mysql # aggregate syntax: 
query II rowsort label-7263
SELECT + 0 - + + 82 + + - 58 col0, 33 * + - COUNT( * ) * + - 92 AS col2
----
-140
3036

skipif mysql # not compatible
query II rowsort label-7263
SELECT + 0 - + + 82 + + - 58 col0, 33 * + - COUNT ( * ) * + - 92 AS col2
----
-140
3036

query II rowsort
SELECT DISTINCT - + ( - 81 ) * 61 AS col0, + ( + - 13 ) AS col1
----
4941
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7265
SELECT 13 + CASE + + CAST( NULL AS SIGNED ) WHEN COUNT( * ) THEN - 51 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7265
SELECT 13 + CASE + + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) THEN - 51 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7266
SELECT 57 + MAX( - 92 ) + - - COUNT( * ) * - 52 DIV - 33 AS col2, CAST( - 3 AS SIGNED ) AS col2
----
-34
-3

skipif mysql # not compatible
query II rowsort label-7266
SELECT 57 + MAX ( - 92 ) + - - COUNT ( * ) * - 52 / - 33 AS col2, CAST ( - 3 AS INTEGER ) AS col2
----
-34
-3

query I rowsort
SELECT 44 * + 70
----
3080

query II rowsort
SELECT ALL - 47 AS col2, 45 * - 49 * + + 49 AS col0
----
-47
-108045

query I rowsort
SELECT + + 90 AS col1
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7270
SELECT COUNT( * ) DIV + ( + 98 ) + + 76 AS col2, - 42 * - 53 * - 95 + + - 32 - 47 DIV - 64 * 39
----
76
-211502

skipif mysql # not compatible
query II rowsort label-7270
SELECT COUNT ( * ) / + ( + 98 ) + + 76 AS col2, - 42 * - 53 * - 95 + + - 32 - 47 / - 64 * 39
----
76
-211502

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT + CASE + - CASE - 27 WHEN MAX( + 87 ) + 97 THEN + + ( - 77 ) + - 40 END WHEN 24 THEN COUNT( * ) WHEN NULLIF ( 47, COUNT( * ) ) THEN NULL END * 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7271
SELECT + CASE + - CASE - 27 WHEN MAX ( + 87 ) + 97 THEN + + ( - 77 ) + - 40 END WHEN 24 THEN COUNT ( * ) WHEN NULLIF ( 47, COUNT ( * ) ) THEN NULL END * 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT - - NULLIF ( - COUNT( * ), - 57 ) * - 63 * 86 AS col0
----
5418

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT - - NULLIF ( - COUNT ( * ), - 57 ) * - 63 * 86 AS col0
----
5418

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT ALL - SUM( DISTINCT - COALESCE ( + 62, - 4 ) ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-7273
SELECT ALL - SUM ( DISTINCT - COALESCE ( + 62, - 4 ) ) AS col0
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7274
SELECT - 17 * CASE + COUNT( * ) WHEN - + 29 * + 92 THEN + CASE CAST( NULL AS SIGNED ) WHEN 44 * - 2 THEN NULL WHEN + 55 THEN 86 * - 73 - - 51 END END * - 65 + + 68 / 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7274
SELECT - 17 * CASE + COUNT ( * ) WHEN - + 29 * + 92 THEN + CASE CAST ( NULL AS INTEGER ) WHEN 44 * - 2 THEN NULL WHEN + 55 THEN 86 * - 73 - - 51 END END * - 65 + + 68 / 94
----
NULL

query I rowsort
SELECT ALL - - 99 AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT 93 + + 7 + + 55 * - 25 * ( COUNT( * ) ) * 15 - - + 51 + + 30 * 66 * 35 AS col2
----
48826

skipif mysql # not compatible
query I rowsort label-7276
SELECT 93 + + 7 + + 55 * - 25 * ( COUNT ( * ) ) * 15 - - + 51 + + 30 * 66 * 35 AS col2
----
48826

query I rowsort
SELECT ( CASE - + 87 WHEN + - 99 THEN 13 ELSE NULL END ) + - 71 * + 99 * 51 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT COALESCE ( + 74, 74 * + + 38 * 32 * + COUNT( ALL 18 ) + 64 * + 79, - 19 * - 87 + - 40 * 10 ) col1
----
74

skipif mysql # not compatible
query I rowsort label-7278
SELECT COALESCE ( + 74, 74 * + + 38 * 32 * + COUNT ( ALL 18 ) + 64 * + 79, - 19 * - 87 + - 40 * 10 ) col1
----
74

query I rowsort
SELECT ALL 22 + 92
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT ALL 26 + - + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL 26 + - + COUNT ( * )
----
25

query I rowsort
SELECT ALL - - 66
----
66

query I rowsort
SELECT DISTINCT 88 + + 82 - 26 + + 66 AS col1
----
210

query I rowsort
SELECT ALL 23 + + + 53
----
76

query I rowsort
SELECT 44 * - 56
----
-2464

query I rowsort
SELECT DISTINCT 41 * 34 AS col1
----
1394

query I rowsort
SELECT ( + ( 13 ) ) + 34 * - + 58 AS col1
----
-1959

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7287
SELECT COUNT( - 11 ) + - 94 + 22 AS col1, 28 DIV - + COUNT( * ) + + 85 * + COUNT( * ) AS col1
----
-71
57

skipif mysql # not compatible
query II rowsort label-7287
SELECT COUNT ( - 11 ) + - 94 + 22 AS col1, 28 / - + COUNT ( * ) + + 85 * + COUNT ( * ) AS col1
----
-71
57

query I rowsort
SELECT 70 * + - 43
----
-3010

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT ALL MAX( - - 11 ) + + - 21
----
-10

skipif mysql # not compatible
query I rowsort label-7289
SELECT ALL MAX ( - - 11 ) + + - 21
----
-10

query I rowsort
SELECT 77 col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT MAX( + ( + - 66 ) ) * - - 7
----
-462

skipif mysql # not compatible
query I rowsort label-7291
SELECT MAX ( + ( + - 66 ) ) * - - 7
----
-462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7292
SELECT MIN( - + 1 ) DIV + - 48
----
0

skipif mysql # not compatible
query I rowsort label-7292
SELECT MIN ( - + 1 ) / + - 48
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7293
SELECT ALL - COUNT( DISTINCT + + 35 ) * + - 55 AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - COUNT ( DISTINCT + + 35 ) * + - 55 AS col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT ALL COUNT( * ) - - 91
----
92

skipif mysql # not compatible
query I rowsort label-7294
SELECT ALL COUNT ( * ) - - 91
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7295
SELECT ALL - CAST( NULL AS SIGNED ) * + - SUM( DISTINCT - - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - CAST ( NULL AS INTEGER ) * + - SUM ( DISTINCT - - 10 )
----
NULL

query I rowsort
SELECT ALL 10 * + - 1
----
-10

query II rowsort
SELECT ALL 27 * - + 91, - 74 AS col1
----
-2457
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT 24 + + - 59 + - - 44 * + CAST( NULL AS SIGNED ) / 30 * CAST( 88 AS SIGNED ) * 65 + - + 67 * ( 2 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7298
SELECT 24 + + - 59 + - - 44 * + CAST ( NULL AS INTEGER ) / 30 * CAST ( 88 AS INTEGER ) * 65 + - + 67 * ( 2 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL - 67 * + CAST( NULL AS SIGNED ) / ( + 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL - 67 * + CAST ( NULL AS INTEGER ) / ( + 63 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7300
SELECT ALL + 8 * 69 AS col1, - COALESCE ( 2, - 1 + + 74 + 27 - - COUNT( * ), + 32 * 34 )
----
552
-2

skipif mysql # not compatible
query II rowsort label-7300
SELECT ALL + 8 * 69 AS col1, - COALESCE ( 2, - 1 + + 74 + 27 - - COUNT ( * ), + 32 * 34 )
----
552
-2

query I rowsort
SELECT 82 * 15 AS col0
----
1230

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7302
SELECT - 98 + - + CAST( - 22 AS DECIMAL ) + - - CAST( NULL AS SIGNED ) / + + 1 + 67 * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7302
SELECT - 98 + - + CAST ( - 22 AS REAL ) + - - CAST ( NULL AS INTEGER ) / + + 1 + 67 * + COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - 0 AS col2
----
0

query I rowsort
SELECT ALL + 6 * - 48 + - - 29 AS col1
----
-259

query I rowsort
SELECT ALL ( - 89 ) AS col2
----
-89

query I rowsort
SELECT - ( 75 ) * - 49 AS col0
----
3675

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT COUNT( DISTINCT 33 )
----
1

skipif mysql # not compatible
query I rowsort label-7307
SELECT COUNT ( DISTINCT 33 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7308
SELECT - - 48 * + - 68 + - 27 - + 8 - - 58 - - 78 - CAST( NULL AS SIGNED ) * - COUNT( * ) * 63 * - 86 + - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7308
SELECT - - 48 * + - 68 + - 27 - + 8 - - 58 - - 78 - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 63 * - 86 + - 92 AS col2
----
NULL

query I rowsort
SELECT ALL - - 70 AS col1
----
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7310
SELECT - 14 * 67 / COUNT( * ) + + 35 + 84 - CAST( + 45 AS SIGNED ) * 3 + - 48 * + COUNT( * ) / - CASE 79 WHEN - 62 THEN ( + 10 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7310
SELECT - 14 * 67 / COUNT ( * ) + + 35 + 84 - CAST ( + 45 AS INTEGER ) * 3 + - 48 * + COUNT ( * ) / - CASE 79 WHEN - 62 THEN ( + 10 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7311
SELECT ALL - - CAST( 49 AS SIGNED ) * 75
----
3675

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - - CAST ( 49 AS INTEGER ) * 75
----
3675

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7312
SELECT + 23 + + CASE + 97 WHEN + CASE - CAST( NULL AS SIGNED ) WHEN + CASE - 13 WHEN 65 THEN NULL WHEN - 91 THEN 44 / 42 END * + 67 THEN COUNT( * ) WHEN CAST( NULL AS SIGNED ) + 30 THEN - COUNT( * ) ELSE + COUNT( * ) / - ( COUNT( DISTINCT 97 ) ) END * + 97 THEN 37 ELSE NULL END * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT + 23 + + CASE + 97 WHEN + CASE - CAST ( NULL AS INTEGER ) WHEN + CASE - 13 WHEN 65 THEN NULL WHEN - 91 THEN 44 / 42 END * + 67 THEN COUNT ( * ) WHEN CAST ( NULL AS INTEGER ) + 30 THEN - COUNT ( * ) ELSE + COUNT ( * ) / - ( COUNT ( DISTINCT 97 ) ) END * + 97 THEN 37 ELSE NULL END * - 98
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7313
SELECT DISTINCT ( - 87 ) * COUNT( * ) + - MIN( ALL + CAST( NULL AS SIGNED ) ) + + 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7313
SELECT DISTINCT ( - 87 ) * COUNT ( * ) + - MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + 58 col0
----
NULL

query I rowsort
SELECT + - 8 AS col1
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7315
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) * - 69 + 73 + 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL - CAST ( NULL AS INTEGER ) * - COUNT ( * ) * - 69 + 73 + 98
----
NULL

query I rowsort
SELECT ALL - ( - 35 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT DISTINCT + 91 + - 5 * + 4 + + 63, - NULLIF ( + 69, - - 12 ) * + COUNT( * ) AS col1
----
134
-69

skipif mysql # not compatible
query II rowsort label-7317
SELECT DISTINCT + 91 + - 5 * + 4 + + 63, - NULLIF ( + 69, - - 12 ) * + COUNT ( * ) AS col1
----
134
-69

query I rowsort
SELECT ALL + 9 + + 34
----
43

query I rowsort
SELECT 89 * 89 col2
----
7921

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT CASE 95 WHEN - 47 THEN + + 64 WHEN - 56 THEN ( - 8 ) * - 68 END * + - COUNT( * ) * 8 * - 23 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7320
SELECT CASE 95 WHEN - 47 THEN + + 64 WHEN - 56 THEN ( - 8 ) * - 68 END * + - COUNT ( * ) * 8 * - 23 col1
----
NULL

query I rowsort
SELECT 79 * + 49
----
3871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7322
SELECT ALL + 74 DIV + + COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + 74 / + + COUNT ( * )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7323
SELECT 54 AS col0, MAX( ALL 43 )
----
54
43

skipif mysql # not compatible
query II rowsort label-7323
SELECT 54 AS col0, MAX ( ALL 43 )
----
54
43

query I rowsort
SELECT DISTINCT + 60 AS col0
----
60

query I rowsort
SELECT DISTINCT 90 AS col1
----
90

query II rowsort
SELECT 35 col0, 98 + + 95
----
35
193

query I rowsort
SELECT + 28 * 21 + + + 87
----
675

query I rowsort
SELECT + 22 - - 48 AS col2
----
70

query I rowsort
SELECT DISTINCT 98 AS col1
----
98

query I rowsort
SELECT ALL 86 * - + 76 AS col0
----
-6536

query I rowsort
SELECT + 68 + 92 AS col0
----
160

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT DISTINCT - COALESCE ( ( - 54 ), - 8, - - NULLIF ( - - 36, 76 + - 90 * + + 86 * - 68 + + MAX( ALL ( 65 ) ) / + COUNT( * ) ) )
----
54

skipif mysql # not compatible
query I rowsort label-7332
SELECT DISTINCT - COALESCE ( ( - 54 ), - 8, - - NULLIF ( - - 36, 76 + - 90 * + + 86 * - 68 + + MAX ( ALL ( 65 ) ) / + COUNT ( * ) ) )
----
54

query I rowsort
SELECT ALL - ( 89 ) col1
----
-89

query I rowsort
SELECT + + 41 + + 65 + + + 95
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-7335
SELECT DISTINCT 74 DIV 94 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT 74 / 94 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT + - MIN( - 89 ) + - COALESCE ( + 12, + ( - - 85 ) + - 11 * - + COUNT( * ) ) + + - ( + 8 )
----
69

skipif mysql # not compatible
query I rowsort label-7336
SELECT + - MIN ( - 89 ) + - COALESCE ( + 12, + ( - - 85 ) + - 11 * - + COUNT ( * ) ) + + - ( + 8 )
----
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT + + 91 + 72 + + + 63 DIV - - 48 AS col2
----
164

skipif mysql # not compatible
query I rowsort label-7337
SELECT + + 91 + 72 + + + 63 / - - 48 AS col2
----
164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7338
SELECT ALL 32 DIV + - 96 + + COALESCE ( - MAX( NULLIF ( 59, + - 50 ) ), + + 82, 73 + - 16 ) + - 83 DIV + 38 AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL 32 / + - 96 + + COALESCE ( - MAX ( NULLIF ( 59, + - 50 ) ), + + 82, 73 + - 16 ) + - 83 / + 38 AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL MIN( DISTINCT - + 72 ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL MIN ( DISTINCT - + 72 ) AS col0
----
-72

query I rowsort
SELECT + 29 + + 75 AS col0
----
104

query I rowsort
SELECT - 98 + 78 AS col2
----
-20

query I rowsort
SELECT ( 76 )
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-7343
SELECT - + 8 DIV 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7343
SELECT - + 8 / 95 AS col2
----
0

query I rowsort
SELECT DISTINCT + 3 + - 50
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT ALL - - SUM( DISTINCT - 89 ) + + + ( + 18 ) * - - COUNT( * ) * - - 9
----
73

skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL - - SUM ( DISTINCT - 89 ) + + + ( + 18 ) * - - COUNT ( * ) * - - 9
----
73

query I rowsort
SELECT + - 53 AS col0
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7347
SELECT DISTINCT + 72 * 35 + MAX( ALL CAST( - - 17 AS SIGNED ) ) + - - 17 DIV - 52 + - + 84 DIV - + 81
----
2538

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT + 72 * 35 + MAX ( ALL CAST ( - - 17 AS INTEGER ) ) + - - 17 / - 52 + - + 84 / - + 81
----
2538

query I rowsort
SELECT + 39 col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL - + COUNT( * ) * + 81 + + - 36
----
-117

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL - + COUNT ( * ) * + 81 + + - 36
----
-117

query II rowsort
SELECT DISTINCT - 7 * 89 + - + 93 + 4 + - 98, + 61 AS col0
----
-810
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT DISTINCT + ( - + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT + ( - + COUNT ( * ) )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT + 89 * - + COUNT( * ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7352
SELECT + 89 * - + COUNT ( * ) AS col0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7353
SELECT + 60 AS col1, + CAST( NULL AS SIGNED )
----
60
NULL

skipif mysql # not compatible
query II rowsort label-7353
SELECT + 60 AS col1, + CAST ( NULL AS INTEGER )
----
60
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT + 63 * + 28 * + + COUNT( * ) * + + ( + 38 ) + + 26 AS col2
----
67058

skipif mysql # not compatible
query I rowsort label-7354
SELECT + 63 * + 28 * + + COUNT ( * ) * + + ( + 38 ) + + 26 AS col2
----
67058

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT - NULLIF ( - + 53, - ( 34 ) + + 87 ) * - - CAST( NULL AS SIGNED ) - - 89 - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-7355
SELECT - NULLIF ( - + 53, - ( 34 ) + + 87 ) * - - CAST ( NULL AS INTEGER ) - - 89 - + 7
----
NULL

query II rowsort
SELECT NULLIF ( 37, 95 + + 73 ) AS col0, 92 + - 86 * + 39
----
37
-3262

query I rowsort
SELECT ALL + 78 * + 75 AS col0
----
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT - CASE - 33 WHEN + 20 THEN - 91 / - COUNT( * ) + + ( + SUM( 38 ) ) + + 8 * + ( 98 ) * CASE 58 * 3 + 69 WHEN 57 / - 0 THEN + COALESCE ( ( + 4 ), - 55 + 76 ) / 8 ELSE NULL END * COUNT( * ) END * 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7358
SELECT - CASE - 33 WHEN + 20 THEN - 91 / - COUNT ( * ) + + ( + SUM ( 38 ) ) + + 8 * + ( 98 ) * CASE 58 * 3 + 69 WHEN 57 / - 0 THEN + COALESCE ( ( + 4 ), - 55 + 76 ) / 8 ELSE NULL END * COUNT ( * ) END * 17 col0
----
NULL

query I rowsort
SELECT DISTINCT + 88 * - - 93 AS col1
----
8184

query II rowsort
SELECT ALL + 24 AS col1, 1
----
24
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7361
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col0
----
1

query I rowsort
SELECT ALL + 69
----
69

query I rowsort
SELECT NULLIF ( - 71, - 86 + - 28 + - 14 * 1 + 52 )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT NULLIF ( + 93, - COUNT( * ) ) col2
----
93

skipif mysql # not compatible
query I rowsort label-7364
SELECT NULLIF ( + 93, - COUNT ( * ) ) col2
----
93

query I rowsort
SELECT - 22 + + 50 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL + CAST( + 85 AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-7366
SELECT ALL + CAST ( + 85 AS INTEGER )
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT - CAST( - 66 AS SIGNED ) * - - ( + + 52 ) - + 11 + - - 67
----
3488

skipif mysql # not compatible
query I rowsort label-7367
SELECT - CAST ( - 66 AS INTEGER ) * - - ( + + 52 ) - + 11 + - - 67
----
3488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7368
SELECT + 98 + - 34 * - CAST( + ( + 1 ) AS SIGNED ) AS col2
----
132

skipif mysql # not compatible
query I rowsort label-7368
SELECT + 98 + - 34 * - CAST ( + ( + 1 ) AS INTEGER ) AS col2
----
132

query I rowsort
SELECT 7 * + - 55 + - + 77
----
-462

query II rowsort
SELECT - 51, + 43 * 79 AS col2
----
-51
3397

query I rowsort
SELECT ALL ( - 8 ) AS col0
----
-8

query II rowsort
SELECT DISTINCT 56 AS col2, ( - - 99 ) + 94 * 61 * + 82
----
56
470287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7373
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7373
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL SUM( ALL 12 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL SUM ( ALL 12 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-7375
SELECT 67, + 50 - + - SUM( - 26 ) col1
----
67
24

skipif mysql # not compatible
query II rowsort label-7375
SELECT 67, + 50 - + - SUM ( - 26 ) col1
----
67
24

query I rowsort
SELECT ALL + 23 * + 18 AS col1
----
414

query I rowsort
SELECT ALL 43 + - - 43 AS col2
----
86

query I rowsort
SELECT - - 99
----
99

query I rowsort
SELECT + - 85 * + 21 AS col0
----
-1785

query I rowsort
SELECT ALL + 74 + + + 93 AS col1
----
167

query I rowsort
SELECT + 49 - + ( + 63 ) AS col0
----
-14

query II rowsort
SELECT ALL - 78 AS col0, 26 AS col2
----
-78
26

query I rowsort
SELECT + 62 * 44 AS col2
----
2728

query II rowsort
SELECT - 95 AS col0, + ( + 82 )
----
-95
82

query II rowsort
SELECT - 12 AS col1, + ( 94 ) col1
----
-12
94

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT DISTINCT 50 DIV + + 72
----
0

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT 50 / + + 72
----
0

query I rowsort
SELECT ALL 57 AS col0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7388
SELECT - 55 * + 65 + - 40 + + ( - CAST( + 38 AS SIGNED ) ) AS col0
----
-3653

skipif mysql # not compatible
query I rowsort label-7388
SELECT - 55 * + 65 + - 40 + + ( - CAST ( + 38 AS INTEGER ) ) AS col0
----
-3653

query I rowsort
SELECT DISTINCT + 19 col1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT - ( 15 ) + + + 50 + + + 81 * CAST( NULL AS SIGNED ) - - 15 * - 98
----
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT - ( 15 ) + + + 50 + + + 81 * CAST ( NULL AS INTEGER ) - - 15 * - 98
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7391
SELECT DISTINCT 94 * 71 DIV - SUM( ALL 68 ) col1
----
-98

skipif mysql # not compatible
query I rowsort label-7391
SELECT DISTINCT 94 * 71 / - SUM ( ALL 68 ) col1
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT ALL 90 DIV ( 36 ) * - 96 - - 16
----
-176

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL 90 / ( 36 ) * - 96 - - 16
----
-176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7393
SELECT ALL 65 * - 47, + 43 + + - CAST( + 4 AS SIGNED ) + - 27 / - - CAST( NULL AS SIGNED ) AS col0
----
-3055
NULL

skipif mysql # not compatible
query II rowsort label-7393
SELECT ALL 65 * - 47, + 43 + + - CAST ( + 4 AS INTEGER ) + - 27 / - - CAST ( NULL AS INTEGER ) AS col0
----
-3055
NULL

query I rowsort
SELECT DISTINCT + 12
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT ALL - MIN( ALL 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-7395
SELECT ALL - MIN ( ALL 75 )
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7396
SELECT DISTINCT - 19 DIV + 36 AS col0, - 29 + + 34 DIV - MAX( ALL + 6 )
----
0
-34

skipif mysql # not compatible
query II rowsort label-7396
SELECT DISTINCT - 19 / + 36 AS col0, - 29 + + 34 / - MAX ( ALL + 6 )
----
0
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-7397
SELECT 83 * ( 98 ) * - CASE WHEN NOT ( 56 ) < NULL THEN ( - - 50 ) * - 44 END + - 81 / MIN( DISTINCT - 60 ) + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-7397
SELECT 83 * ( 98 ) * - CASE WHEN NOT ( 56 ) < NULL THEN ( - - 50 ) * - 44 END + - 81 / MIN ( DISTINCT - 60 ) + 37
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7398
SELECT DISTINCT - CASE NULLIF ( 92, 96 * 86 ) WHEN 63 * + + 37 * - 63 * - COUNT( * ) * - CAST( + 97 AS SIGNED ) * + 55 + ( + COUNT( * ) ) + + 68 * 7 THEN NULL ELSE 99 END
----
-99

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT - CASE NULLIF ( 92, 96 * 86 ) WHEN 63 * + + 37 * - 63 * - COUNT ( * ) * - CAST ( + 97 AS INTEGER ) * + 55 + ( + COUNT ( * ) ) + + 68 * 7 THEN NULL ELSE 99 END
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT ( - 74 ) * CAST( + - 83 AS SIGNED ) AS col2
----
6142

skipif mysql # not compatible
query I rowsort label-7399
SELECT ( - 74 ) * CAST ( + - 83 AS INTEGER ) AS col2
----
6142

onlyif mysql # aggregate syntax: 
query I rowsort label-7400
SELECT 8 * COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-7400
SELECT 8 * COUNT ( * ) AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7401
SELECT SUM( DISTINCT - - 40 ) + 91 AS col1, + CAST( NULL AS SIGNED ) * AVG ( DISTINCT ( - + 86 ) )
----
131
NULL

skipif mysql # not compatible
query II rowsort label-7401
SELECT SUM ( DISTINCT - - 40 ) + 91 AS col1, + CAST ( NULL AS INTEGER ) * AVG ( DISTINCT ( - + 86 ) )
----
131
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT - SUM( DISTINCT - 14 )
----
14

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - SUM ( DISTINCT - 14 )
----
14

query I rowsort
SELECT 23 * 15
----
345

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7404
SELECT DISTINCT - 97 + + + COALESCE ( - + 90, + COUNT( * ) + 3 + - - CAST( + 72 AS SIGNED ) * 19 * - 0 ) + 62 - - 24 + + - 48
----
-149

skipif mysql # not compatible
query I rowsort label-7404
SELECT DISTINCT - 97 + + + COALESCE ( - + 90, + COUNT ( * ) + 3 + - - CAST ( + 72 AS INTEGER ) * 19 * - 0 ) + 62 - - 24 + + - 48
----
-149

query I rowsort
SELECT 44 + + 71 AS col1
----
115

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7406
SELECT COUNT( * ) DIV + 93 - + COALESCE ( - SUM( DISTINCT 32 ), - + 52 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7406
SELECT COUNT ( * ) / + 93 - + COALESCE ( - SUM ( DISTINCT 32 ), - + 52 ) AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT + NULLIF ( + + 92, 16 + - MAX( ALL 57 ) * - + 32 ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-7407
SELECT + NULLIF ( + + 92, 16 + - MAX ( ALL 57 ) * - + 32 ) AS col0
----
92

query I rowsort
SELECT - + 80 col0
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT CAST( - 3 AS SIGNED ) + - 36
----
-39

skipif mysql # not compatible
query I rowsort label-7409
SELECT CAST ( - 3 AS INTEGER ) + - 36
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-7410
SELECT 26 DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-7410
SELECT 26 / - + 84
----
0

query I rowsort
SELECT 13 * - 99 - 60 AS col2
----
-1347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + - 45 - 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + - 45 - 83 AS col0
----
NULL

query I rowsort
SELECT ALL - COALESCE ( - 62, - 60 - - 40 ) AS col0
----
62

query I rowsort
SELECT ALL 77 * - - COALESCE ( - 57, + 79 ) AS col0
----
-4389

query I rowsort
SELECT 6 + + 61
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT - SUM( + - 91 ) + - 2 * + - ( 89 )
----
269

skipif mysql # not compatible
query I rowsort label-7416
SELECT - SUM ( + - 91 ) + - 2 * + - ( 89 )
----
269

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT + COUNT( * ) * - 1 + + 49 + + 10 * - + 98
----
-932

skipif mysql # not compatible
query I rowsort label-7417
SELECT + COUNT ( * ) * - 1 + + 49 + + 10 * - + 98
----
-932

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7418
SELECT - + COALESCE ( + - 39, - COALESCE ( + ( - 80 ), + CAST( NULL AS SIGNED ), - 61 ) * + COALESCE ( 43, - 29 - + 39 DIV 13 + 51 DIV + AVG ( DISTINCT 70 ), 33 ) )
----
39

skipif mysql # not compatible
query I rowsort label-7418
SELECT - + COALESCE ( + - 39, - COALESCE ( + ( - 80 ), + CAST ( NULL AS INTEGER ), - 61 ) * + COALESCE ( 43, - 29 - + 39 / 13 + 51 / + AVG ( DISTINCT 70 ), 33 ) )
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7419
SELECT ALL + NULLIF ( - - MAX( - 40 ), + 75 ) * 29 * 35 DIV + - 18 AS col1, - 56 * - NULLIF ( 71, - - 36 * + COALESCE ( - 55, + NULLIF ( 66, 2 - - CASE 71 WHEN 45 * + SUM( ALL - 9 ) THEN + 93 WHEN 27 THEN 59 + - 25 END ) * 0 ) )
----
2255
3976

skipif mysql # not compatible
query II rowsort label-7419
SELECT ALL + NULLIF ( - - MAX ( - 40 ), + 75 ) * 29 * 35 / + - 18 AS col1, - 56 * - NULLIF ( 71, - - 36 * + COALESCE ( - 55, + NULLIF ( 66, 2 - - CASE 71 WHEN 45 * + SUM ( ALL - 9 ) THEN + 93 WHEN 27 THEN 59 + - 25 END ) * 0 ) )
----
2255
3976

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7420
SELECT 75 + + COALESCE ( - 60, - 22 * + 85 ) + - - 52 + + 63 * + 27 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7420
SELECT 75 + + COALESCE ( - 60, - 22 * + 85 ) + - - 52 + + 63 * + 27 * + CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL 66 * + 36 * + + 77
----
182952

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7422
SELECT 62 * 24 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT 62 * 24 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - - 5
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT - 10 + + NULLIF ( + 0, MAX( - 33 ) )
----
-10

skipif mysql # not compatible
query I rowsort label-7424
SELECT - 10 + + NULLIF ( + 0, MAX ( - 33 ) )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 58, - ( COALESCE ( + - CASE CASE - 31 WHEN + 11 THEN 54 ELSE - - CASE + 19 WHEN - COALESCE ( + 44, - 1, + 35, ( - ( 35 ) ) ) * 9 - - COUNT( * ) THEN ( + COUNT( * ) ) * - 19 WHEN + 99 THEN NULL ELSE + SUM( ALL ( 61 ) ) + - COUNT( * ) * - 44 END END WHEN 96 * - 36 + 35 * SUM( 24 ) THEN + 81 + + 35 END, + 53 + - 57, + 75 ) ) ), + 36 + + ( 22 ), 38 )
----
-58

skipif mysql # not compatible
query I rowsort label-7425
SELECT DISTINCT - COALESCE ( + - NULLIF ( - 58, - ( COALESCE ( + - CASE CASE - 31 WHEN + 11 THEN 54 ELSE - - CASE + 19 WHEN - COALESCE ( + 44, - 1, + 35, ( - ( 35 ) ) ) * 9 - - COUNT ( * ) THEN ( + COUNT ( * ) ) * - 19 WHEN + 99 THEN NULL ELSE + SUM ( ALL ( 61 ) ) + - COUNT ( * ) * - 44 END END WHEN 96 * - 36 + 35 * SUM ( 24 ) THEN + 81 + + 35 END, + 53 + - 57, + 75 ) ) ), + 36 + + ( 22 ), 38 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7426
SELECT DISTINCT 64 DIV ( CAST( + ( + 72 ) AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT 64 / ( CAST ( + ( + 72 ) AS INTEGER ) )
----
0

query I rowsort
SELECT 8 * 72 * - 23 AS col2
----
-13248

onlyif mysql # DIV for integer division: 
query I rowsort label-7428
SELECT ALL 11 DIV - 39 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7428
SELECT ALL 11 / - 39 AS col1
----
0

query I rowsort
SELECT 6 * ( 26 ) + + 68 AS col2
----
224

query II rowsort
SELECT + 78 AS col2, - 73
----
78
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - 29 * + 9 - + NULLIF ( - + MAX( 99 ), - ( 58 ) + - 0 + NULLIF ( + - SUM( DISTINCT + 97 ), + ( COUNT( * ) ) + 29 ) ) AS col0
----
-162

skipif mysql # not compatible
query I rowsort label-7431
SELECT - 29 * + 9 - + NULLIF ( - + MAX ( 99 ), - ( 58 ) + - 0 + NULLIF ( + - SUM ( DISTINCT + 97 ), + ( COUNT ( * ) ) + 29 ) ) AS col0
----
-162

query I rowsort
SELECT ALL 63 * 12
----
756

query I rowsort
SELECT 33 * - 90 col0
----
-2970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL ( - 20 ) * - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL ( - 20 ) * - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 75 col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7436
SELECT ALL - SUM( + CAST( + 11 AS SIGNED ) ) + + 65 + - 55 * - - MAX( ALL - 22 )
----
1264

skipif mysql # not compatible
query I rowsort label-7436
SELECT ALL - SUM ( + CAST ( + 11 AS INTEGER ) ) + + 65 + - 55 * - - MAX ( ALL - 22 )
----
1264

query I rowsort
SELECT 44 * - + 67 + COALESCE ( + 34, - - 38 * - 61 )
----
-2914

query II rowsort
SELECT DISTINCT - 65 AS col1, - 63 * - 0 AS col0
----
-65
0

query I rowsort
SELECT + + ( - + 26 )
----
-26

query I rowsort
SELECT - 81 * 23 * + + 86 * - - 9
----
-1441962

query I rowsort
SELECT 49 + 32 AS col1
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7442
SELECT ALL - 7 + + MIN( DISTINCT - 58 ) AS col0, 1
----
-65
1

skipif mysql # not compatible
query II rowsort label-7442
SELECT ALL - 7 + + MIN ( DISTINCT - 58 ) AS col0, 1
----
-65
1

query I rowsort
SELECT + + 60 * 37 * - - 45 + + - 58
----
99842

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7444
SELECT DISTINCT - CAST( - CASE + - CAST( NULL AS SIGNED ) WHEN 69 - CASE COUNT( * ) WHEN 89 THEN 86 END THEN - 55 + + 43 + - 75 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT - CAST ( - CASE + - CAST ( NULL AS INTEGER ) WHEN 69 - CASE COUNT ( * ) WHEN 89 THEN 86 END THEN - 55 + + 43 + - 75 END AS INTEGER )
----
NULL

query I rowsort
SELECT 28 * - 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7446
SELECT ALL - ( 49 ) DIV 61 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7446
SELECT ALL - ( 49 ) / 61 AS col0
----
0

query I rowsort
SELECT - ( + 83 ) AS col2
----
-83

query I rowsort
SELECT ALL 96 AS col1
----
96

query I rowsort
SELECT DISTINCT 18
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7450
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, + ( + 19 ) + SUM( ALL - - 69 ) - + + 36 + + SUM( - 14 ) col0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-7450
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, + ( + 19 ) + SUM ( ALL - - 69 ) - + + 36 + + SUM ( - 14 ) col0
----
NULL
38

query I rowsort
SELECT - + 54 AS col0
----
-54

query II rowsort
SELECT + 8 AS col2, 24 - - 89 col2
----
8
113

query II rowsort
SELECT ALL - 87 AS col2, - 93 col0
----
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT COUNT( * ) * SUM( ALL - 53 ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-7454
SELECT COUNT ( * ) * SUM ( ALL - 53 ) AS col2
----
-53

query I rowsort
SELECT ALL 8 col2
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT 77 * + 19 + + 42 + + COUNT( * ) + - 74
----
1432

skipif mysql # not compatible
query I rowsort label-7456
SELECT 77 * + 19 + + 42 + + COUNT ( * ) + - 74
----
1432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7457
SELECT ALL + + ( + ( - 63 ) ) / - 70 * - CAST( NULL AS SIGNED ) * + 17 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7457
SELECT ALL + + ( + ( - 63 ) ) / - 70 * - CAST ( NULL AS INTEGER ) * + 17 - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT - COALESCE ( - 0, 89, + 16 * - - CAST( NULL AS SIGNED ) ) - - + 57
----
57

skipif mysql # not compatible
query I rowsort label-7458
SELECT - COALESCE ( - 0, 89, + 16 * - - CAST ( NULL AS INTEGER ) ) - - + 57
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL 23 * + CASE - 62 WHEN COALESCE ( + 67, - 9 * - COALESCE ( + MAX( - 65 ), 97 ) + - - 74 / - CASE 56 WHEN - - 25 THEN 96 * - 91 WHEN 83 * + 86 + 33 / + COALESCE ( ( 4 ), - 27 ) THEN 35 + 79 / + 50 END ) * 55 THEN NULL WHEN + 76 + 58 THEN 97 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL 23 * + CASE - 62 WHEN COALESCE ( + 67, - 9 * - COALESCE ( + MAX ( - 65 ), 97 ) + - - 74 / - CASE 56 WHEN - - 25 THEN 96 * - 91 WHEN 83 * + 86 + 33 / + COALESCE ( ( 4 ), - 27 ) THEN 35 + 79 / + 50 END ) * 55 THEN NULL WHEN + 76 + 58 THEN 97 END AS col2
----
NULL

query I rowsort
SELECT - 29 * + 47
----
-1363

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT ALL - COUNT( - + 73 ) + ( 35 ) + - - 3 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7461
SELECT ALL - COUNT ( - + 73 ) + ( 35 ) + - - 3 AS col1
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-7462
SELECT - 93 * 23 AS col1, + CASE + COUNT( * ) WHEN - + 65 THEN NULL WHEN - COALESCE ( + NULLIF ( 10, 45 * + MIN( DISTINCT + 9 ) ), COUNT( * ) + - 14 ) THEN + 24 * - 89 END
----
-2139
NULL

skipif mysql # not compatible
query II rowsort label-7462
SELECT - 93 * 23 AS col1, + CASE + COUNT ( * ) WHEN - + 65 THEN NULL WHEN - COALESCE ( + NULLIF ( 10, 45 * + MIN ( DISTINCT + 9 ) ), COUNT ( * ) + - 14 ) THEN + 24 * - 89 END
----
-2139
NULL

query I rowsort
SELECT + 99 + + 7 * - + 65 AS col2
----
-356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7464
SELECT DISTINCT - 10 * + 81 + CASE CAST( NULL AS SIGNED ) WHEN - 41 + + COUNT( * ) THEN + SUM( ALL + - CASE 64 WHEN + 29 THEN NULL WHEN - 20 THEN 54 ELSE NULL END ) - 75 + - COUNT( * ) - + CASE - 42 WHEN 68 - 3 THEN NULL ELSE - NULLIF ( - 14, - 82 / + 61 ) END * - 45 ELSE + 31 END + 75 * ( + 48 )
----
2821

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - 10 * + 81 + CASE CAST ( NULL AS INTEGER ) WHEN - 41 + + COUNT ( * ) THEN + SUM ( ALL + - CASE 64 WHEN + 29 THEN NULL WHEN - 20 THEN 54 ELSE NULL END ) - 75 + - COUNT ( * ) - + CASE - 42 WHEN 68 - 3 THEN NULL ELSE - NULLIF ( - 14, - 82 / + 61 ) END * - 45 ELSE + 31 END + 75 * ( + 48 )
----
2821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7465
SELECT ALL + CAST( + NULLIF ( + + NULLIF ( + COUNT( * ), + - 0 ), - 83 ) AS SIGNED ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL + CAST ( + NULLIF ( + + NULLIF ( + COUNT ( * ), + - 0 ), - 83 ) AS INTEGER ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT - 44 * + 64 + COUNT( * )
----
-2815

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT - 44 * + 64 + COUNT ( * )
----
-2815

query II rowsort
SELECT ALL 31 * + COALESCE ( + 53, - 78 ) + - 65 col0, - 78 + 37 * + + 63
----
1578
2253

query I rowsort
SELECT NULLIF ( + - 3, - 6 / - 8 + + - 43 )
----
-3

query I rowsort
SELECT ALL + 11 * - 30 + + 14 col1
----
-316

query I rowsort
SELECT - 63 * + + 91 * + 28
----
-160524

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL + CAST( + MAX( ALL + 76 ) AS SIGNED ) AS col2
----
76

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + CAST ( + MAX ( ALL + 76 ) AS INTEGER ) AS col2
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT CASE + COALESCE ( + NULLIF ( - + 62, + 2 ), - ( - 58 ) * + COUNT( * ) + - - COUNT( * ) ) WHEN + 15 + + + 96 * - COUNT( * ) * - 73 * NULLIF ( 77, COUNT( * ) ) * - 72 + 40 / 12 THEN + 71 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT CASE + COALESCE ( + NULLIF ( - + 62, + 2 ), - ( - 58 ) * + COUNT ( * ) + - - COUNT ( * ) ) WHEN + 15 + + + 96 * - COUNT ( * ) * - 73 * NULLIF ( 77, COUNT ( * ) ) * - 72 + 40 / 12 THEN + 71 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL - 33 * 20 * - 74 + COUNT( * ) AS col2
----
48841

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - 33 * 20 * - 74 + COUNT ( * ) AS col2
----
48841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7474
SELECT COALESCE ( - MAX( - + 83 ), 33 + - CAST( NULL AS SIGNED ) + MIN( DISTINCT 83 ) )
----
83

skipif mysql # not compatible
query I rowsort label-7474
SELECT COALESCE ( - MAX ( - + 83 ), 33 + - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT 83 ) )
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT + NULLIF ( ( + - ( + + CAST( NULL AS SIGNED ) ) ), 93 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT + NULLIF ( ( + - ( + + CAST ( NULL AS INTEGER ) ) ), 93 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT - 3 + - - COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-7476
SELECT - 3 + - - COUNT ( * )
----
-2

query I rowsort
SELECT + NULLIF ( ( + 28 ), - 1 * - 47 ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + MAX( + 45 ) * + 56
----
2520

skipif mysql # not compatible
query I rowsort label-7478
SELECT + MAX ( + 45 ) * + 56
----
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT + + 41 DIV ( 28 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7479
SELECT + + 41 / ( 28 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7480
SELECT DISTINCT - - MAX( 73 ) * - CASE - 11 WHEN - 11 + COUNT( * ) THEN NULL WHEN + + 50 * - 93 THEN NULL WHEN - MIN( DISTINCT - COALESCE ( + 99, 62, + - 93 ) ) * + 59 + - 94 * + 2 THEN CAST( NULL AS SIGNED ) * 42 END + - 81 - + 14 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7480
SELECT DISTINCT - - MAX ( 73 ) * - CASE - 11 WHEN - 11 + COUNT ( * ) THEN NULL WHEN + + 50 * - 93 THEN NULL WHEN - MIN ( DISTINCT - COALESCE ( + 99, 62, + - 93 ) ) * + 59 + - 94 * + 2 THEN CAST ( NULL AS INTEGER ) * 42 END + - 81 - + 14 AS col0
----
NULL

query I rowsort
SELECT ALL + + 34 * + 75 - 34 AS col1
----
2516

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL - NULLIF ( + 56, + 28 * + 48 * - COUNT( * ) ) * - 58
----
3248

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - NULLIF ( + 56, + 28 * + 48 * - COUNT ( * ) ) * - 58
----
3248

query I rowsort
SELECT - NULLIF ( + 54, - 23 ) AS col2
----
-54

query I rowsort
SELECT ALL + - 55 AS col0
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7485
SELECT - + 55 * CASE - 19 WHEN + 54 THEN - ( 7 ) ELSE - SUM( DISTINCT + - 73 ) END + - - 38 * + 89 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7485
SELECT - + 55 * CASE - 19 WHEN + 54 THEN - ( 7 ) ELSE - SUM ( DISTINCT + - 73 ) END + - - 38 * + 89 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7486
SELECT + 82 + + MAX( + NULLIF ( 69, - NULLIF ( CAST( NULL AS SIGNED ), CASE - + ( - 65 ) WHEN + 14 THEN NULL WHEN + 79 THEN NULLIF ( - 28, - + 25 ) + 12 END + 82 ) ) ) col0
----
151

skipif mysql # not compatible
query I rowsort label-7486
SELECT + 82 + + MAX ( + NULLIF ( 69, - NULLIF ( CAST ( NULL AS INTEGER ), CASE - + ( - 65 ) WHEN + 14 THEN NULL WHEN + 79 THEN NULLIF ( - 28, - + 25 ) + 12 END + 82 ) ) ) col0
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7487
SELECT + 95 + 89 + + CAST( NULL AS SIGNED ) * - + SUM( ALL + - 12 ) - 62 + - AVG ( 31 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7487
SELECT + 95 + 89 + + CAST ( NULL AS INTEGER ) * - + SUM ( ALL + - 12 ) - 62 + - AVG ( 31 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - - 65 - - SUM( + - 9 ) * - CASE - 44 WHEN - COALESCE ( 73, - - 82, + COUNT( * ) ) THEN - - 43 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7488
SELECT - - 65 - - SUM ( + - 9 ) * - CASE - 44 WHEN - COALESCE ( 73, - - 82, + COUNT ( * ) ) THEN - - 43 END AS col0
----
NULL

query I rowsort
SELECT ALL CASE - 44 WHEN - ( - + 93 ) THEN - 33 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT - 68 * 44 + - 28 AS col1
----
-3020

query II rowsort
SELECT ALL ( 62 ) AS col0, 36
----
62
36

onlyif mysql # aggregate syntax: 
query II rowsort label-7492
SELECT + - COUNT( * ) + - + 30 AS col0, + 91 AS col0
----
-31
91

skipif mysql # not compatible
query II rowsort label-7492
SELECT + - COUNT ( * ) + - + 30 AS col0, + 91 AS col0
----
-31
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7493
SELECT - COALESCE ( MIN( DISTINCT - - 45 ), - CAST( NULL AS SIGNED ) + - COUNT( * ) ) * - - 42 + - 72
----
-1962

skipif mysql # not compatible
query I rowsort label-7493
SELECT - COALESCE ( MIN ( DISTINCT - - 45 ), - CAST ( NULL AS INTEGER ) + - COUNT ( * ) ) * - - 42 + - 72
----
-1962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7494
SELECT + CASE 91 WHEN + 2 - + 93 THEN + 22 + - CAST( ( COUNT( * ) ) AS SIGNED ) END * - - 9
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT + CASE 91 WHEN + 2 - + 93 THEN + 22 + - CAST ( ( COUNT ( * ) ) AS INTEGER ) END * - - 9
----
NULL

query I rowsort
SELECT ALL CASE + 71 WHEN 17 THEN + - 0 ELSE NULL END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7496
SELECT + ( + 41 ) DIV + 69 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7496
SELECT + ( + 41 ) / + 69 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7497
SELECT ALL COALESCE ( + 76, - - CAST( + - 20 AS SIGNED ) )
----
76

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL COALESCE ( + 76, - - CAST ( + - 20 AS INTEGER ) )
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7498
SELECT DISTINCT COUNT( * ), 64 AS col1
----
1
64

skipif mysql # not compatible
query II rowsort label-7498
SELECT DISTINCT COUNT ( * ), 64 AS col1
----
1
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT ALL - 25 + + 92 - - COUNT( DISTINCT + + 64 ) + + + COUNT( * ) * + 75 * 14 * + 25 + + + COALESCE ( NULLIF ( - COUNT( * ), + 75 * - ( 80 ) + + + 79 ), + 89 ) AS col0
----
26317

skipif mysql # not compatible
query I rowsort label-7499
SELECT ALL - 25 + + 92 - - COUNT ( DISTINCT + + 64 ) + + + COUNT ( * ) * + 75 * 14 * + 25 + + + COALESCE ( NULLIF ( - COUNT ( * ), + 75 * - ( 80 ) + + + 79 ), + 89 ) AS col0
----
26317

query I rowsort
SELECT DISTINCT + ( - ( 64 ) ) * + 71 + NULLIF ( ( 87 ), 75 + + - 6 * + 9 * + 58 ) * - 88 AS col0
----
-12200

query I rowsort
SELECT - 98 * + 83 AS col2
----
-8134

query I rowsort
SELECT ALL + 53 * - 59
----
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT 80 * + 35 + + COALESCE ( - + 71, COUNT( * ) ) col0
----
2729

skipif mysql # not compatible
query I rowsort label-7503
SELECT 80 * + 35 + + COALESCE ( - + 71, COUNT ( * ) ) col0
----
2729

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - 62 - - 49 + + COUNT( * )
----
-12

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 62 - - 49 + + COUNT ( * )
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7505
SELECT 17 DIV - 75 * + 28 + MAX( + 78 )
----
78

skipif mysql # not compatible
query I rowsort label-7505
SELECT 17 / - 75 * + 28 + MAX ( + 78 )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT + COUNT( * ) * 21 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7506
SELECT + COUNT ( * ) * 21 AS col0
----
21

query I rowsort
SELECT - 86 + 54 AS col2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT - + CAST( + + 64 AS SIGNED ) * - 28
----
1792

skipif mysql # not compatible
query I rowsort label-7508
SELECT - + CAST ( + + 64 AS INTEGER ) * - 28
----
1792

query I rowsort
SELECT DISTINCT + COALESCE ( - 54, + + 23 * 46 ) AS col1
----
-54

query I rowsort
SELECT ALL - 8 * 24 - - 38 * - 51 AS col0
----
-2130

query I rowsort
SELECT ALL + - 43 AS col2
----
-43

query I rowsort
SELECT + 13 + - 36
----
-23

query I rowsort
SELECT 56 AS col1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT + COUNT( 92 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7514
SELECT + COUNT ( 92 ) AS col2
----
1

query I rowsort
SELECT + - 91 col2
----
-91

query II rowsort
SELECT + - 69 + + ( - 10 ), 56 + - + 62 AS col0
----
-79
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7517
SELECT ALL - 63 DIV + 68 * - + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-7517
SELECT ALL - 63 / + 68 * - + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT ALL + + NULLIF ( - 27, + ( - - 73 ) * + 51 + 47 + + 41 * + 60 + - - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL + + NULLIF ( - 27, + ( - - 73 ) * + 51 + 47 + + 41 * + 60 + - - COUNT ( * ) )
----
-27

query I rowsort
SELECT + - 68 col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7520
SELECT + - CAST( NULL AS SIGNED ) * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-7520
SELECT + - CAST ( NULL AS INTEGER ) * + 67
----
NULL

query I rowsort
SELECT ALL 32 * 12 AS col2
----
384

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7523
SELECT ALL ( 64 ) DIV + 8 + + MIN( + 18 ) AS col1, 52 * 56 * - 54 * + 43
----
26
-6761664

skipif mysql # not compatible
query II rowsort label-7523
SELECT ALL ( 64 ) / + 8 + + MIN ( + 18 ) AS col1, 52 * 56 * - 54 * + 43
----
26
-6761664

query II rowsort
SELECT 39 - + 71 * + 10 col0, 38
----
-671
38

query I rowsort
SELECT 82 - + 4 * - 29 + + - 27
----
171

query II rowsort
SELECT ALL 11 col2, 40 * + 79
----
11
3160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7527
SELECT - 64, - 91 / - 70 * - ( 39 ) * SUM( ALL + NULLIF ( + - 8, - 17 ) ) + + - CASE - - 27 WHEN - 59 THEN - 90 * - CAST( NULL AS SIGNED ) / - 26 + 3 * CASE NULLIF ( COUNT( * ), + 10 * - 72 ) * 87 WHEN + 38 THEN 97 END ELSE NULL END col0
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-7527
SELECT - 64, - 91 / - 70 * - ( 39 ) * SUM ( ALL + NULLIF ( + - 8, - 17 ) ) + + - CASE - - 27 WHEN - 59 THEN - 90 * - CAST ( NULL AS INTEGER ) / - 26 + 3 * CASE NULLIF ( COUNT ( * ), + 10 * - 72 ) * 87 WHEN + 38 THEN 97 END ELSE NULL END col0
----
-64
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7528
SELECT DISTINCT CASE - 17 WHEN + 73 THEN NULLIF ( + + COUNT( * ), NULLIF ( 80, 90 * - 77 * - 51 ) ) END + + 9 AS col1, + ( + MAX( + 31 ) ) + - 92 + - + 88 * 43
----
NULL
-3845

skipif mysql # not compatible
query II rowsort label-7528
SELECT DISTINCT CASE - 17 WHEN + 73 THEN NULLIF ( + + COUNT ( * ), NULLIF ( 80, 90 * - 77 * - 51 ) ) END + + 9 AS col1, + ( + MAX ( + 31 ) ) + - 92 + - + 88 * 43
----
NULL
-3845

query I rowsort
SELECT ALL 41 + - - ( - 33 ) * + - 25
----
866

query I rowsort
SELECT ( - - 78 ) - + 78
----
0

query II rowsort
SELECT 94 AS col1, + 97 * - 88 AS col1
----
94
-8536

onlyif mysql # aggregate syntax: 
query II rowsort label-7532
SELECT DISTINCT NULLIF ( + COUNT( * ), 54 + 46 * + + 10 ) + + + 13, - 88 col1
----
14
-88

skipif mysql # not compatible
query II rowsort label-7532
SELECT DISTINCT NULLIF ( + COUNT ( * ), 54 + 46 * + + 10 ) + + + 13, - 88 col1
----
14
-88

query I rowsort
SELECT ALL ( 20 ) + 70 AS col1
----
90

onlyif mysql # aggregate syntax: 
query II rowsort label-7534
SELECT ( - MIN( ALL 61 ) ) * + + NULLIF ( - 98, + 99 * 89 ) AS col2, 62 * + + MAX( 50 ) AS col2
----
5978
3100

skipif mysql # not compatible
query II rowsort label-7534
SELECT ( - MIN ( ALL 61 ) ) * + + NULLIF ( - 98, + 99 * 89 ) AS col2, 62 * + + MAX ( 50 ) AS col2
----
5978
3100

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT 42 * - - CASE - 46 WHEN + - 58 + 5 * - 34 THEN + 81 / + 28 + + COUNT( * ) / + - 63 * 14 - - + 60 / - 42 + - + 48 WHEN + + 45 THEN 22 WHEN - MIN( 8 ) THEN NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7535
SELECT 42 * - - CASE - 46 WHEN + - 58 + 5 * - 34 THEN + 81 / + 28 + + COUNT ( * ) / + - 63 * 14 - - + 60 / - 42 + - + 48 WHEN + + 45 THEN 22 WHEN - MIN ( 8 ) THEN NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT 94 * - 20 + - ( - - SUM( ALL - 54 ) )
----
-1826

skipif mysql # not compatible
query I rowsort label-7536
SELECT 94 * - 20 + - ( - - SUM ( ALL - 54 ) )
----
-1826

query II rowsort
SELECT ALL - 3 AS col0, - 36
----
-3
-36

query I rowsort
SELECT + - COALESCE ( - 23, - 75 - 14 )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT - COALESCE ( 61, + MIN( DISTINCT - 76 ), - ( - 51 ) * + - 66 ) AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-7539
SELECT - COALESCE ( 61, + MIN ( DISTINCT - 76 ), - ( - 51 ) * + - 66 ) AS col0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7540
SELECT + 92, CAST( NULL AS SIGNED ) AS col2
----
92
NULL

skipif mysql # not compatible
query II rowsort label-7540
SELECT + 92, CAST ( NULL AS INTEGER ) AS col2
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT - COUNT( * ) * 82 + - 97 - + - NULLIF ( - 22, + SUM( + 25 ) ) - 96 + - 26 * - COUNT( * )
----
-271

skipif mysql # not compatible
query I rowsort label-7541
SELECT - COUNT ( * ) * 82 + - 97 - + - NULLIF ( - 22, + SUM ( + 25 ) ) - 96 + - 26 * - COUNT ( * )
----
-271

onlyif mysql # DIV for integer division: 
query I rowsort label-7542
SELECT + 41 DIV + 56 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7542
SELECT + 41 / + 56 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT + 24 * - COUNT( * ) + COUNT( * ) * + 27 + + - 91 col1
----
-88

skipif mysql # not compatible
query I rowsort label-7543
SELECT + 24 * - COUNT ( * ) + COUNT ( * ) * + 27 + + - 91 col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7544
SELECT - 91 * + - CASE - 40 WHEN + + COUNT( * ) THEN CAST( + + 13 AS SIGNED ) END AS col0, - 38 * 59 DIV 49 * 54 * - 20 * 55 * - 88 + + COALESCE ( - 90, + 65 DIV 8, - ( 14 ) + 26 * 23 )
----
NULL
-235224090

skipif mysql # not compatible
query II rowsort label-7544
SELECT - 91 * + - CASE - 40 WHEN + + COUNT ( * ) THEN CAST ( + + 13 AS INTEGER ) END AS col0, - 38 * 59 / 49 * 54 * - 20 * 55 * - 88 + + COALESCE ( - 90, + 65 / 8, - ( 14 ) + 26 * 23 )
----
NULL
-235224090

query I rowsort
SELECT + 69 * 73 - + 53 AS col2
----
4984

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - 82 + + COUNT( * ) * 87
----
5

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - 82 + + COUNT ( * ) * 87
----
5

query I rowsort
SELECT + + 77 AS col2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT - COUNT( * ) - - 68 - + 78
----
-11

skipif mysql # not compatible
query I rowsort label-7548
SELECT - COUNT ( * ) - - 68 - + 78
----
-11

query I rowsort
SELECT 92 + + 34 AS col2
----
126

query I rowsort
SELECT 27 - ( + 7 ) + - - 67 AS col0
----
87

query I rowsort
SELECT 1 + 30
----
31

query I rowsort
SELECT DISTINCT 0 * + 66 AS col1
----
0

query I rowsort
SELECT 17 + 36 col1
----
53

query I rowsort
SELECT ALL 21 AS col2
----
21

query I rowsort
SELECT ALL 72 col1
----
72

query I rowsort
SELECT ALL NULLIF ( 0, 67 ) - - 85
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7557
SELECT 36 + - COALESCE ( ( + 88 ), + 61 + + + CAST( NULL AS SIGNED ) ) DIV - + ( - - 17 ) + + + ( 0 ) AS col0
----
41

skipif mysql # not compatible
query I rowsort label-7557
SELECT 36 + - COALESCE ( ( + 88 ), + 61 + + + CAST ( NULL AS INTEGER ) ) / - + ( - - 17 ) + + + ( 0 ) AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT 7 DIV - 75 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT 7 / - 75 AS col1
----
0

query II rowsort
SELECT 42 * + 64, 87 * + 9 col2
----
2688
783

onlyif mysql # aggregate syntax: 
query I rowsort label-7560
SELECT 13 + - COUNT( * ) AS col1
----
12

skipif mysql # not compatible
query I rowsort label-7560
SELECT 13 + - COUNT ( * ) AS col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT COALESCE ( - 83, - 91 * + 89 * - COALESCE ( + 51, + COUNT( * ) ) - 35 ) * + 86 AS col1
----
-7138

skipif mysql # not compatible
query I rowsort label-7561
SELECT COALESCE ( - 83, - 91 * + 89 * - COALESCE ( + 51, + COUNT ( * ) ) - 35 ) * + 86 AS col1
----
-7138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7562
SELECT CAST( - AVG ( + 50 ) AS SIGNED ) * COUNT( * )
----
-50

skipif mysql # not compatible
query I rowsort label-7562
SELECT CAST ( - AVG ( + 50 ) AS INTEGER ) * COUNT ( * )
----
-50

query I rowsort
SELECT DISTINCT 38 AS col2
----
38

query I rowsort
SELECT DISTINCT 89 col1
----
89

query I rowsort
SELECT ALL 27 - + 42 AS col0
----
-15

query I rowsort
SELECT ALL 97 AS col1
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7567
SELECT CAST( NULL AS SIGNED ) + + 57 * 96 + - ( + 9 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7567
SELECT CAST ( NULL AS INTEGER ) + + 57 * 96 + - ( + 9 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7568
SELECT + MIN( + 85 )
----
85

skipif mysql # not compatible
query I rowsort label-7568
SELECT + MIN ( + 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT ALL - 30 * COUNT( * ) * - + 33
----
990

skipif mysql # not compatible
query I rowsort label-7569
SELECT ALL - 30 * COUNT ( * ) * - + 33
----
990

query I rowsort
SELECT 51 * 22
----
1122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7571
SELECT + 4 * + 98 * - 97 + - + CAST( NULL AS SIGNED ) + + CASE + COUNT( * ) WHEN + ( 82 ) / - ( + 75 ) + COUNT( * ) + - - MAX( - + 74 ) / - - CASE 84 WHEN 12 + 45 + AVG ( ALL + 30 ) THEN - 13 * CAST( 93 * - 48 AS SIGNED ) WHEN 97 THEN NULL ELSE NULL END * 79 - - 77 + 89 * ( + COUNT( * ) ) THEN 37 * + 94 ELSE 98 END + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7571
SELECT + 4 * + 98 * - 97 + - + CAST ( NULL AS INTEGER ) + + CASE + COUNT ( * ) WHEN + ( 82 ) / - ( + 75 ) + COUNT ( * ) + - - MAX ( - + 74 ) / - - CASE 84 WHEN 12 + 45 + AVG ( ALL + 30 ) THEN - 13 * CAST ( 93 * - 48 AS INTEGER ) WHEN 97 THEN NULL ELSE NULL END * 79 - - 77 + 89 * ( + COUNT ( * ) ) THEN 37 * + 94 ELSE 98 END + 81 AS col2
----
NULL

query II rowsort
SELECT + + ( + 52 ) AS col1, + NULLIF ( + - 9, - - 19 * - ( - 39 ) ) * - 33
----
52
297

query I rowsort
SELECT ALL - - 65
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-7574
SELECT - 17 * + - 22 + - ( + - COUNT( * ) ) + + COALESCE ( - 77, + 13, - 41 ), - 0 * 78 * - 67 col1
----
298
0

skipif mysql # not compatible
query II rowsort label-7574
SELECT - 17 * + - 22 + - ( + - COUNT ( * ) ) + + COALESCE ( - 77, + 13, - 41 ), - 0 * 78 * - 67 col1
----
298
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT 72 - SUM( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7575
SELECT 72 - SUM ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT - COALESCE ( + 11, CAST( - COUNT( * ) AS SIGNED ) ) * - 9 - 84
----
15

skipif mysql # not compatible
query I rowsort label-7576
SELECT - COALESCE ( + 11, CAST ( - COUNT ( * ) AS INTEGER ) ) * - 9 - 84
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT - 21 * 86 * - CASE + - CASE - - COUNT( * ) WHEN + + NULLIF ( + - MAX( - 16 ), + COUNT( * ) ) + - 98 / 72 + - 64 THEN 56 ELSE NULL END WHEN 17 + - 55 THEN + 3 / - 78 WHEN - CASE WHEN - 48 < ( 87 * 39 + + 15 ) THEN - 81 / - 92 END THEN + 32 / MAX( DISTINCT 17 ) + - 69 END + + 40 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT - 21 * 86 * - CASE + - CASE - - COUNT ( * ) WHEN + + NULLIF ( + - MAX ( - 16 ), + COUNT ( * ) ) + - 98 / 72 + - 64 THEN 56 ELSE NULL END WHEN 17 + - 55 THEN + 3 / - 78 WHEN - CASE WHEN - 48 < ( 87 * 39 + + 15 ) THEN - 81 / - 92 END THEN + 32 / MAX ( DISTINCT 17 ) + - 69 END + + 40 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL - CASE + 36 WHEN - 39 THEN - 82 / 74 * 27 * + 40 * - COUNT( * ) + + 60 + - 8 + + 70 * + 15 + + 97 * - AVG ( ALL 48 ) + + - 75 / + - 87 * COUNT( * ) - + 91 / - ( NULLIF ( 11, CASE + 68 WHEN COUNT( * ) THEN NULL ELSE 88 END ) ) WHEN COUNT( * ) + - 10 THEN 49 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - CASE + 36 WHEN - 39 THEN - 82 / 74 * 27 * + 40 * - COUNT ( * ) + + 60 + - 8 + + 70 * + 15 + + 97 * - AVG ( ALL 48 ) + + - 75 / + - 87 * COUNT ( * ) - + 91 / - ( NULLIF ( 11, CASE + 68 WHEN COUNT ( * ) THEN NULL ELSE 88 END ) ) WHEN COUNT ( * ) + - 10 THEN 49 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT DISTINCT + ( MAX( - 21 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + ( MAX ( - 21 ) )
----
-21

query I rowsort
SELECT DISTINCT 83 * - - 34 + + + 64 col1
----
2886

query I rowsort
SELECT + - 13 AS col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL + 27 * - 76 + + COUNT( * ) + - 33 AS col0
----
-2084

skipif mysql # not compatible
query I rowsort label-7582
SELECT ALL + 27 * - 76 + + COUNT ( * ) + - 33 AS col0
----
-2084

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7583
SELECT ALL + 53 DIV + ( + 94 ) AS col0, + COUNT( * )
----
0
1

skipif mysql # not compatible
query II rowsort label-7583
SELECT ALL + 53 / + ( + 94 ) AS col0, + COUNT ( * )
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7584
SELECT - - 42 DIV + 25 + - - 79 + + 82 + + - 91
----
71

skipif mysql # not compatible
query I rowsort label-7584
SELECT - - 42 / + 25 + - - 79 + + 82 + + - 91
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT + 50 * + MAX( ALL - 15 ) * + 37 AS col0
----
-27750

skipif mysql # not compatible
query I rowsort label-7585
SELECT + 50 * + MAX ( ALL - 15 ) * + 37 AS col0
----
-27750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7586
SELECT ALL + + ( + ( 63 ) ) + 23 DIV + ( - + 47 ) + SUM( + 98 ) col1
----
161

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL + + ( + ( 63 ) ) + 23 / + ( - + 47 ) + SUM ( + 98 ) col1
----
161

query II rowsort
SELECT + 64 * - 28 AS col2, 50 AS col0
----
-1792
50

query I rowsort
SELECT + - 69 col1
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7589
SELECT ALL + + 45 + ( COUNT( * ) ) + + 6 - + COUNT( * ) + + 34 + 73 * + 29 * 27 * 69 DIV - COALESCE ( + 3, + - 30 + + - 19 ) AS col2
----
-1314572

skipif mysql # not compatible
query I rowsort label-7589
SELECT ALL + + 45 + ( COUNT ( * ) ) + + 6 - + COUNT ( * ) + + 34 + 73 * + 29 * 27 * 69 / - COALESCE ( + 3, + - 30 + + - 19 ) AS col2
----
-1314572

query I rowsort
SELECT DISTINCT + 34 col2
----
34

query I rowsort
SELECT - 47 * + 11
----
-517

query I rowsort
SELECT DISTINCT COALESCE ( 85, - 8 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT DISTINCT - COUNT( * ) - 31 + 91 AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7593
SELECT DISTINCT - COUNT ( * ) - 31 + 91 AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL ( + - MIN( DISTINCT 71 ) ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL ( + - MIN ( DISTINCT 71 ) ) AS col1
----
-71

query I rowsort
SELECT ALL 16 col1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT DISTINCT ( + COUNT( * ) ) - + 27 AS col2
----
-26

skipif mysql # not compatible
query I rowsort label-7596
SELECT DISTINCT ( + COUNT ( * ) ) - + 27 AS col2
----
-26

query I rowsort
SELECT - 11 * - - NULLIF ( + + 57, - 35 )
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - 17 * MAX( ALL 86 )
----
-1462

skipif mysql # not compatible
query I rowsort label-7598
SELECT - 17 * MAX ( ALL 86 )
----
-1462

onlyif mysql # aggregate syntax: 
query II rowsort label-7599
SELECT 43 AS col2, + 54 + COUNT( * ) + 28
----
43
83

skipif mysql # not compatible
query II rowsort label-7599
SELECT 43 AS col2, + 54 + COUNT ( * ) + 28
----
43
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT - MIN( DISTINCT + + 3 )
----
-3

skipif mysql # not compatible
query I rowsort label-7600
SELECT - MIN ( DISTINCT + + 3 )
----
-3

query II rowsort
SELECT ALL COALESCE ( + 98, - + 61 ) AS col2, - 83
----
98
-83

query I rowsort
SELECT - 63 - ( - + 13 ) AS col1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - 81 * + COUNT( + 46 ) AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-7603
SELECT - 81 * + COUNT ( + 46 ) AS col2
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT DISTINCT COALESCE ( - 93, ( + CAST( NULL AS SIGNED ) ), + 81 )
----
-93

skipif mysql # not compatible
query I rowsort label-7604
SELECT DISTINCT COALESCE ( - 93, ( + CAST ( NULL AS INTEGER ) ), + 81 )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT ALL CASE + - CASE + 10 WHEN - 88 THEN - 32 WHEN COUNT( * ) * + ( + 85 ) + - 57 THEN - COUNT( * ) WHEN - 77 THEN + SUM( ALL 62 ) + + + ( - + 56 ) + + COUNT( * ) * - - 68 * 3 * + CASE 13 WHEN COUNT( * ) / - 60 + - COUNT( * ) THEN 61 WHEN - 98 / + 77 THEN 14 ELSE NULL END END WHEN + 8 * - 9 THEN + 33 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL CASE + - CASE + 10 WHEN - 88 THEN - 32 WHEN COUNT ( * ) * + ( + 85 ) + - 57 THEN - COUNT ( * ) WHEN - 77 THEN + SUM ( ALL 62 ) + + + ( - + 56 ) + + COUNT ( * ) * - - 68 * 3 * + CASE 13 WHEN COUNT ( * ) / - 60 + - COUNT ( * ) THEN 61 WHEN - 98 / + 77 THEN 14 ELSE NULL END END WHEN + 8 * - 9 THEN + 33 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7606
SELECT - 33 DIV + - CASE 16 WHEN - COUNT( * ) THEN NULL ELSE - 20 END
----
-1

skipif mysql # not compatible
query I rowsort label-7606
SELECT - 33 / + - CASE 16 WHEN - COUNT ( * ) THEN NULL ELSE - 20 END
----
-1

query I rowsort
SELECT ALL 45 * 47
----
2115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7608
SELECT DISTINCT - NULLIF ( - 61, 56 - - CAST( + 94 AS SIGNED ) ) * + 97 AS col1
----
5917

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - NULLIF ( - 61, 56 - - CAST ( + 94 AS INTEGER ) ) * + 97 AS col1
----
5917

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7609
SELECT + COUNT( * ) DIV - + COUNT( * ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7609
SELECT + COUNT ( * ) / - + COUNT ( * ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT - COUNT( * ) + - 39 AS col0
----
-40

skipif mysql # not compatible
query I rowsort label-7610
SELECT - COUNT ( * ) + - 39 AS col0
----
-40

query I rowsort
SELECT + 79 * + 36 AS col1
----
2844

query I rowsort
SELECT - 23 + + 22 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT + - 82 + + - 10 * + - COUNT( ALL - NULLIF ( + - 23, + 56 + + 27 ) ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7613
SELECT + - 82 + + - 10 * + - COUNT ( ALL - NULLIF ( + - 23, + 56 + + 27 ) ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7614
SELECT ALL 98 DIV + 27 + - ( + 3 ) + + ( - 73 ) * - 76 + - 19 DIV - 73 * + 44
----
5548

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL 98 / + 27 + - ( + 3 ) + + ( - 73 ) * - 76 + - 19 / - 73 * + 44
----
5548

query II rowsort
SELECT - 61 AS col2, 48 * + + 84 * 47 AS col0
----
-61
189504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT DISTINCT 81 / + + ( - CAST( ( - CASE + 55 WHEN 97 THEN - COUNT( * ) + - 12 - + MAX( - 65 ) * + - AVG ( 35 ) WHEN + - 49 THEN NULL END ) AS SIGNED ) ) + - 48 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT 81 / + + ( - CAST ( ( - CASE + 55 WHEN 97 THEN - COUNT ( * ) + - 12 - + MAX ( - 65 ) * + - AVG ( 35 ) WHEN + - 49 THEN NULL END ) AS INTEGER ) ) + - 48 AS col1
----
NULL

query I rowsort
SELECT + 82 * - 57
----
-4674

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL - COUNT( * ) * + + COUNT( * ) * 60 + + 58 * + - 94 * NULLIF ( + + ( - + 21 ), + 86 )
----
114432

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) * 60 + + 58 * + - 94 * NULLIF ( + + ( - + 21 ), + 86 )
----
114432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7619
SELECT ALL 79 * - - 23 + NULLIF ( + 90, 20 ) - - 28 DIV - SUM( ALL + ( 66 ) ) + + 1
----
1908

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL 79 * - - 23 + NULLIF ( + 90, 20 ) - - 28 / - SUM ( ALL + ( 66 ) ) + + 1
----
1908

query I rowsort
SELECT - - 80 * 77 AS col0
----
6160

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7621
SELECT + 22 * + CAST( NULL AS DECIMAL ) * - NULLIF ( + COUNT( * ), - 67 * 71 ) + + + 73 + - - 17
----
NULL

skipif mysql # not compatible
query I rowsort label-7621
SELECT + 22 * + CAST ( NULL AS REAL ) * - NULLIF ( + COUNT ( * ), - 67 * 71 ) + + + 73 + - - 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT COUNT( ALL + 67 )
----
1

skipif mysql # not compatible
query I rowsort label-7622
SELECT COUNT ( ALL + 67 )
----
1

query I rowsort
SELECT DISTINCT + + 40 col0
----
40

query I rowsort
SELECT ALL - 30 * 42
----
-1260

query I rowsort
SELECT - 9 * - 11 + - 54 - + 77 col0
----
-32

query I rowsort
SELECT CASE + + 6 WHEN + ( - 52 ) THEN + 73 * - 73 END
----
NULL

query I rowsort
SELECT DISTINCT + 49 AS col0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7628
SELECT ALL - 29 * 84 - 5 * - COALESCE ( + - CAST( NULL AS SIGNED ), 75 ) * + SUM( + 75 )
----
25689

skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - 29 * 84 - 5 * - COALESCE ( + - CAST ( NULL AS INTEGER ), 75 ) * + SUM ( + 75 )
----
25689

query I rowsort
SELECT - 0 + - ( 87 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7630
SELECT + ( + COUNT( + 51 ) ) DIV - 4, COUNT( * ) col2
----
0
1

skipif mysql # not compatible
query II rowsort label-7630
SELECT + ( + COUNT ( + 51 ) ) / - 4, COUNT ( * ) col2
----
0
1

query II rowsort
SELECT - 17 * - 99 AS col2, + 36 * + 57
----
1683
2052

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT 62 * 89 * - + AVG ( DISTINCT - 61 ) * CAST( NULL AS SIGNED ) + - 43 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT 62 * 89 * - + AVG ( DISTINCT - 61 ) * CAST ( NULL AS INTEGER ) + - 43 AS col0
----
NULL

query I rowsort
SELECT - 93 * - 3
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - SUM( - 66 ) * + - 71 * - + ( + 37 ) AS col1
----
173382

skipif mysql # not compatible
query I rowsort label-7634
SELECT - SUM ( - 66 ) * + - 71 * - + ( + 37 ) AS col1
----
173382

query I rowsort
SELECT ALL + NULLIF ( + 51, + 89 + + + 65 + 14 ) * 40 AS col1
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-7636
SELECT + 64 + - - COUNT( * ) * - - SUM( 50 ) AS col2
----
114

skipif mysql # not compatible
query I rowsort label-7636
SELECT + 64 + - - COUNT ( * ) * - - SUM ( 50 ) AS col2
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT + CASE - 84 WHEN + + 37 THEN NULL ELSE - SUM( + 74 ) END * + 3 - - + 48 col1
----
-174

skipif mysql # not compatible
query I rowsort label-7637
SELECT + CASE - 84 WHEN + + 37 THEN NULL ELSE - SUM ( + 74 ) END * + 3 - - + 48 col1
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT SUM( + - 99 ) col0
----
-99

skipif mysql # not compatible
query I rowsort label-7638
SELECT SUM ( + - 99 ) col0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT + 40 + - MAX( 62 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-7639
SELECT + 40 + - MAX ( 62 ) AS col2
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT - 46 - - CAST( COUNT( * ) AS SIGNED ) * 85 * + 53 AS col1
----
4459

skipif mysql # not compatible
query I rowsort label-7640
SELECT - 46 - - CAST ( COUNT ( * ) AS INTEGER ) * 85 * + 53 AS col1
----
4459

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7642
SELECT - COUNT( * ) + 79 * + - COUNT( * ) * ( - + ( + - COALESCE ( - 88, - 42 ) ) ) AS col2
----
6951

skipif mysql # not compatible
query I rowsort label-7642
SELECT - COUNT ( * ) + 79 * + - COUNT ( * ) * ( - + ( + - COALESCE ( - 88, - 42 ) ) ) AS col2
----
6951

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7643
SELECT ALL CAST( + - 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-7643
SELECT ALL CAST ( + - 22 AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-7644
SELECT ALL - 63 * - 14 * + COALESCE ( + 21, + 63 ) * - COUNT( * ) AS col2
----
-18522

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL - 63 * - 14 * + COALESCE ( + 21, + 63 ) * - COUNT ( * ) AS col2
----
-18522

query I rowsort
SELECT - 27 * - 55
----
1485

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7646
SELECT - CASE + - 0 WHEN - 38 THEN - - 38 * 98 + 45 END + - CASE + ( + CAST( 58 AS DECIMAL ) ) WHEN + 41 THEN COUNT( * ) ELSE NULL END + + 69 + 98 + COUNT( * ) * - 20 + - 70 + ( - + 7 ) * 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT - CASE + - 0 WHEN - 38 THEN - - 38 * 98 + 45 END + - CASE + ( + CAST ( 58 AS REAL ) ) WHEN + 41 THEN COUNT ( * ) ELSE NULL END + + 69 + 98 + COUNT ( * ) * - 20 + - 70 + ( - + 7 ) * 81 AS col2
----
NULL

query I rowsort
SELECT ALL ( + - 71 ) AS col1
----
-71

query I rowsort
SELECT ALL + 47 * - + 10
----
-470

query I rowsort
SELECT DISTINCT - - 91 + - - 57 * - + 62
----
-3443

query I rowsort
SELECT - 53 + - 32 AS col1
----
-85

query I rowsort
SELECT DISTINCT - 45 + - 38 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7652
SELECT ALL + 86 * + - COUNT( * ) AS col1, - 89 * - - 5 AS col1
----
-86
-445

skipif mysql # not compatible
query II rowsort label-7652
SELECT ALL + 86 * + - COUNT ( * ) AS col1, - 89 * - - 5 AS col1
----
-86
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + + CASE + 71 WHEN + + 22 + - 21 THEN - COUNT( * ) WHEN COALESCE ( + 22, + CASE - MIN( DISTINCT - 80 ) WHEN - COALESCE ( + COUNT( * ), 12 + - + MAX( 6 ) + - + 60 ) * - + 32 - 93 * 47 * 81 THEN + 30 + + 10 * + ( + 29 ) ELSE NULL END ) THEN NULL END / - 33 + 41 * + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT + + CASE + 71 WHEN + + 22 + - 21 THEN - COUNT ( * ) WHEN COALESCE ( + 22, + CASE - MIN ( DISTINCT - 80 ) WHEN - COALESCE ( + COUNT ( * ), 12 + - + MAX ( 6 ) + - + 60 ) * - + 32 - 93 * 47 * 81 THEN + 30 + + 10 * + ( + 29 ) ELSE NULL END ) THEN NULL END / - 33 + 41 * + 79
----
NULL

query I rowsort
SELECT + - 83
----
-83

query I rowsort
SELECT ( + - 98 ) AS col1
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT ALL - SUM( + + 33 ) + + + 4 AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - SUM ( + + 33 ) + + + 4 AS col1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT COUNT( - 3 ) * 98 col1
----
98

skipif mysql # not compatible
query I rowsort label-7657
SELECT COUNT ( - 3 ) * 98 col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT DISTINCT - COUNT( * ) + + 28 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT - COUNT ( * ) + + 28 AS col1
----
27

query I rowsort
SELECT DISTINCT - - 94
----
94

query II rowsort
SELECT DISTINCT - 1 - - 20 AS col0, 26 * 77 col2
----
19
2002

query I rowsort
SELECT - ( + 35 ) * - 25 + + 78 + - - 24 + + 71 col1
----
1048

query I rowsort
SELECT ALL - 88 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7663
SELECT 66 * + 39 / + + 93 + + - 27 + SUM( 63 ) * - 90 * + COUNT( ALL - 24 ) + + CASE 57 WHEN 27 + 12 THEN + + 90 WHEN + - 66 THEN - 84 * - 48 ELSE CASE - CAST( NULLIF ( + 41, COUNT( * ) ) AS SIGNED ) WHEN - 17 * 13 THEN MAX( + 87 ) - 72 * + COALESCE ( + 9 + - 64, 69 ) END END + 72 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7663
SELECT 66 * + 39 / + + 93 + + - 27 + SUM ( 63 ) * - 90 * + COUNT ( ALL - 24 ) + + CASE 57 WHEN 27 + 12 THEN + + 90 WHEN + - 66 THEN - 84 * - 48 ELSE CASE - CAST ( NULLIF ( + 41, COUNT ( * ) ) AS INTEGER ) WHEN - 17 * 13 THEN MAX ( + 87 ) - 72 * + COALESCE ( + 9 + - 64, 69 ) END END + 72 AS col2
----
NULL

query I rowsort
SELECT 1 * - 76
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT NULLIF ( - 40, + COUNT( * ) ) * + - 37 AS col1
----
1480

skipif mysql # not compatible
query I rowsort label-7665
SELECT DISTINCT NULLIF ( - 40, + COUNT ( * ) ) * + - 37 AS col1
----
1480

query I rowsort
SELECT ALL - 88 col2
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7667
SELECT + AVG ( + - 44 ) * - - COUNT( * ) + 48 + 38 - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT + AVG ( + - 44 ) * - - COUNT ( * ) + 48 + 38 - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7668
SELECT ALL 25 AS col2, CASE - CAST( NULL AS SIGNED ) WHEN 10 THEN + 25 ELSE NULL END * COUNT( * ) * - 33 + 60 + - 33
----
25
NULL

skipif mysql # not compatible
query II rowsort label-7668
SELECT ALL 25 AS col2, CASE - CAST ( NULL AS INTEGER ) WHEN 10 THEN + 25 ELSE NULL END * COUNT ( * ) * - 33 + 60 + - 33
----
25
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT ALL + 4 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + 4 / 64 AS col1
----
0

query I rowsort
SELECT ALL 10 + 35 * 77 * - 89
----
-239845

query I rowsort
SELECT ALL 68 + - 9
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7672
SELECT ( + 88 ) - + + CAST( NULL AS DECIMAL ) + - 66 * MAX( - 12 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT ( + 88 ) - + + CAST ( NULL AS REAL ) + - 66 * MAX ( - 12 ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7673
SELECT CAST( NULL AS DECIMAL ) / + NULLIF ( CAST( - - COALESCE ( + COUNT( * ), + + COUNT( * ) + - 96 ) AS SIGNED ), 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7673
SELECT CAST ( NULL AS REAL ) / + NULLIF ( CAST ( - - COALESCE ( + COUNT ( * ), + + COUNT ( * ) + - 96 ) AS INTEGER ), 97 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7674
SELECT MIN( + 4 ) - + 85 * + - 8 * - 48 AS col1, 49
----
-32636
49

skipif mysql # not compatible
query II rowsort label-7674
SELECT MIN ( + 4 ) - + 85 * + - 8 * - 48 AS col1, 49
----
-32636
49

query I rowsort
SELECT ALL - 32 * - + 64 col1
----
2048

onlyif mysql # aggregate syntax: 
query I rowsort label-7676
SELECT ALL + MAX( + 98 ) + 3 * 8 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL + MAX ( + 98 ) + 3 * 8 AS col0
----
122

query I rowsort
SELECT DISTINCT + + 68 * 17 * - 7 * - 67
----
542164

query I rowsort
SELECT ALL - 59 + 0 AS col1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT 18 - + MIN( ALL + 85 ) + + 88 AS col0
----
21

skipif mysql # not compatible
query I rowsort label-7679
SELECT 18 - + MIN ( ALL + 85 ) + + 88 AS col0
----
21

query I rowsort
SELECT ALL 0 AS col1
----
0

query I rowsort
SELECT DISTINCT + 57 * - 43 + - ( + 15 )
----
-2466

query I rowsort
SELECT 65 - + 57 + + - 49 AS col2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT + MIN( ALL + + 34 ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-7683
SELECT + MIN ( ALL + + 34 ) AS col0
----
34

query I rowsort
SELECT ALL + ( 18 ) AS col1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7685
SELECT + CAST( NULL AS SIGNED ) * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-7685
SELECT + CAST ( NULL AS INTEGER ) * 58
----
NULL

query I rowsort
SELECT 98 + + 51
----
149

query I rowsort
SELECT - + 72 AS col1
----
-72

query I rowsort
SELECT + - 75
----
-75

query I rowsort
SELECT ( + 48 ) AS col1
----
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT ALL - 5 - COUNT( * ) DIV 79
----
-5

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL - 5 - COUNT ( * ) / 79
----
-5

query I rowsort
SELECT ALL - - 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7692
SELECT + MIN( DISTINCT 86 ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-7692
SELECT + MIN ( DISTINCT 86 ) AS col0
----
86

query II rowsort
SELECT 53, - 67 AS col1
----
53
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + 38 * + - 59 + + 14 * - - COUNT( * )
----
-2228

skipif mysql # not compatible
query I rowsort label-7694
SELECT + 38 * + - 59 + + 14 * - - COUNT ( * )
----
-2228

query I rowsort
SELECT ALL - 72 AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7696
SELECT 98 DIV + + CAST( - + COUNT( * ) AS SIGNED ) + - 39
----
-137

skipif mysql # not compatible
query I rowsort label-7696
SELECT 98 / + + CAST ( - + COUNT ( * ) AS INTEGER ) + - 39
----
-137

onlyif mysql # aggregate syntax: 
query II rowsort label-7697
SELECT + 5, COUNT( * ) AS col1
----
5
1

skipif mysql # not compatible
query II rowsort label-7697
SELECT + 5, COUNT ( * ) AS col1
----
5
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7698
SELECT COUNT( * ) * - + ( - + AVG ( + + CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7698
SELECT COUNT ( * ) * - + ( - + AVG ( + + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 17 + - + ( 75 )
----
-58

query I rowsort
SELECT + 60 col0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-7701
SELECT 55 DIV 70 col2
----
0

skipif mysql # not compatible
query I rowsort label-7701
SELECT 55 / 70 col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7702
SELECT ALL 35 DIV + 32, + 99 AS col1
----
1
99

skipif mysql # not compatible
query II rowsort label-7702
SELECT ALL 35 / + 32, + 99 AS col1
----
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT 71 * - 49 * + + 54 + COUNT( * ) + - 1 * - 68
----
-187797

skipif mysql # not compatible
query I rowsort label-7703
SELECT 71 * - 49 * + + 54 + COUNT ( * ) + - 1 * - 68
----
-187797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT DISTINCT + 81 * + + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT + 81 * + + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 52 + + 81 - - 91
----
224

query I rowsort
SELECT DISTINCT 34 + - 46 + + - 41
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7707
SELECT 73 AS col1, ( - NULLIF ( - 11, + 75 * - COALESCE ( - 13, + - 32, + - 83 + + 43 ) + + + CASE - 8 WHEN - - 20 THEN CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + - ( 53 ) WHEN ( + - 47 ) * 93 * + + 57 THEN - 68 + 16 END - + ( + CAST( 12 AS SIGNED ) ) * 70 * + ( COUNT( * ) + + 96 ) ) ) AS col2
----
73
11

skipif mysql # not compatible
query II rowsort label-7707
SELECT 73 AS col1, ( - NULLIF ( - 11, + 75 * - COALESCE ( - 13, + - 32, + - 83 + + 43 ) + + + CASE - 8 WHEN - - 20 THEN CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + - ( 53 ) WHEN ( + - 47 ) * 93 * + + 57 THEN - 68 + 16 END - + ( + CAST ( 12 AS INTEGER ) ) * 70 * + ( COUNT ( * ) + + 96 ) ) ) AS col2
----
73
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7708
SELECT COALESCE ( - + COUNT( 76 ), + 88 * 15 + - + 65, + CAST( + 19 AS SIGNED ) ) * - 65 + - + ( + 50 )
----
15

skipif mysql # not compatible
query I rowsort label-7708
SELECT COALESCE ( - + COUNT ( 76 ), + 88 * 15 + - + 65, + CAST ( + 19 AS INTEGER ) ) * - 65 + - + ( + 50 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT ALL 69 + + + CAST( - 44 AS SIGNED ) - 14 * - 58
----
837

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL 69 + + + CAST ( - 44 AS INTEGER ) - 14 * - 58
----
837

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT COUNT( * ) * - - 17 * 59 + + - COALESCE ( - - 40, 16 * + 4 * + 72 * - 37 ) + 48 AS col2
----
1011

skipif mysql # not compatible
query I rowsort label-7710
SELECT COUNT ( * ) * - - 17 * 59 + + - COALESCE ( - - 40, 16 * + 4 * + 72 * - 37 ) + 48 AS col2
----
1011

query I rowsort
SELECT ALL 62 * + 91 AS col0
----
5642

query II rowsort
SELECT 59 AS col1, - 82 + + 11 * 77 * - - 64 AS col1
----
59
54126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7713
SELECT + 27 + - 37 + - CASE + - 60 WHEN COUNT( * ) / + - COUNT( * ) * + + 12 * - MIN( - 27 ) THEN NULL WHEN + 18 THEN NULL ELSE + + CAST( NULL AS SIGNED ) * + + 34 * + - CAST( NULL AS SIGNED ) END + - CAST( NULL AS SIGNED ) * - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT + 27 + - 37 + - CASE + - 60 WHEN COUNT ( * ) / + - COUNT ( * ) * + + 12 * - MIN ( - 27 ) THEN NULL WHEN + 18 THEN NULL ELSE + + CAST ( NULL AS INTEGER ) * + + 34 * + - CAST ( NULL AS INTEGER ) END + - CAST ( NULL AS INTEGER ) * - 35
----
NULL

query I rowsort
SELECT DISTINCT 56 + + - 66 + - + 31 AS col0
----
-41

onlyif mysql # aggregate syntax: 
query II rowsort label-7715
SELECT ALL 6 AS col2, - COUNT( ALL - 95 )
----
6
-1

skipif mysql # not compatible
query II rowsort label-7715
SELECT ALL 6 AS col2, - COUNT ( ALL - 95 )
----
6
-1

query I rowsort
SELECT + - 50 + + - 77
----
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-7717
SELECT DISTINCT + 46, COUNT( * ) * 53 AS col1
----
46
53

skipif mysql # not compatible
query II rowsort label-7717
SELECT DISTINCT + 46, COUNT ( * ) * 53 AS col1
----
46
53

query II rowsort
SELECT + + 75 + + ( - ( 38 ) ) + + 97 + + 13 AS col0, + 95 + - 71
----
147
24

query I rowsort
SELECT + - 64 * - 62 AS col2
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL + 95 - - - CASE - - 4 WHEN + 7 THEN 24 WHEN - MAX( ALL - 25 ) THEN + + COUNT( * ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL + 95 - - - CASE - - 4 WHEN + 7 THEN 24 WHEN - MAX ( ALL - 25 ) THEN + + COUNT ( * ) ELSE NULL END
----
NULL

query I rowsort
SELECT - + ( - - 67 )
----
-67

query II rowsort
SELECT - - 10 AS col1, + 74 AS col2
----
10
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT - 75 + + 62 + - + 17 + - CAST( + 48 AS SIGNED ) + + 40
----
-38

skipif mysql # not compatible
query I rowsort label-7723
SELECT - 75 + + 62 + - + 17 + - CAST ( + 48 AS INTEGER ) + + 40
----
-38

query I rowsort
SELECT ALL 45 * + 15 AS col2
----
675

query I rowsort
SELECT ALL 89 - - 49 + + 81 * 65 * 58 col2
----
305508

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7726
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7727
SELECT - MAX( + - 69 ) AS col2, 81
----
69
81

skipif mysql # not compatible
query II rowsort label-7727
SELECT - MAX ( + - 69 ) AS col2, 81
----
69
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT - + COUNT( * ) + COUNT( * ) col0
----
0

skipif mysql # not compatible
query I rowsort label-7728
SELECT - + COUNT ( * ) + COUNT ( * ) col0
----
0

query II rowsort
SELECT 49, 81 AS col1
----
49
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7730
SELECT - COUNT( * ) DIV + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0
----
-5807676
60

skipif mysql # not compatible
query II rowsort label-7730
SELECT - COUNT ( * ) / + 6 + 98 * - 17 * + 83 * 42 AS col0, 60 AS col0
----
-5807676
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL - 52 * MAX( ALL COALESCE ( - NULLIF ( - 13, 12 / + 33 - + + 89 ), 12 ) ) - 61
----
-737

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL - 52 * MAX ( ALL COALESCE ( - NULLIF ( - 13, 12 / + 33 - + + 89 ), 12 ) ) - 61
----
-737

query I rowsort
SELECT + + ( 4 )
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT COUNT( DISTINCT CAST( + 86 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7733
SELECT COUNT ( DISTINCT CAST ( + 86 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT + 18 AS col1
----
18

query I rowsort
SELECT + 26 AS col1
----
26

query II rowsort
SELECT - - 7 * 1, 23 + - + 46 AS col2
----
7
-23

query I rowsort
SELECT + 65 * - 75 AS col1
----
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL + MAX( ALL - - 56 )
----
56

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + MAX ( ALL - - 56 )
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT ALL - 21 * - 38 * - + 47 + - + 46 * - SUM( 37 )
----
-35804

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL - 21 * - 38 * - + 47 + - + 46 * - SUM ( 37 )
----
-35804

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT - 34 + - COUNT( * ) * - + 68 + + 97 AS col2
----
131

skipif mysql # not compatible
query I rowsort label-7740
SELECT - 34 + - COUNT ( * ) * - + 68 + + 97 AS col2
----
131

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7741
SELECT ALL - COUNT( * ) DIV - - 58, 87 * + 0
----
0
0

skipif mysql # not compatible
query II rowsort label-7741
SELECT ALL - COUNT ( * ) / - - 58, 87 * + 0
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7742
SELECT ALL + COUNT( DISTINCT 29 ) AS col1, 61 AS col0
----
1
61

skipif mysql # not compatible
query II rowsort label-7742
SELECT ALL + COUNT ( DISTINCT 29 ) AS col1, 61 AS col0
----
1
61

query I rowsort
SELECT ALL + ( 11 ) AS col1
----
11

query I rowsort
SELECT - 87 * - 92 AS col1
----
8004

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT - 99 * - COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-7745
SELECT - 99 * - COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT 73 * - + 46 + - - SUM( DISTINCT + 85 ) AS col1
----
-3273

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT 73 * - + 46 + - - SUM ( DISTINCT + 85 ) AS col1
----
-3273

query I rowsort
SELECT ALL + ( ( - - 99 ) ) AS col0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7748
SELECT - 51 DIV - 68 * - 95
----
0

skipif mysql # not compatible
query I rowsort label-7748
SELECT - 51 / - 68 * - 95
----
0

query I rowsort
SELECT ALL + ( - 8 ) col2
----
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-7750
SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT( * ) - 30 - + CASE - - COUNT( * ) WHEN COUNT( * ) THEN + 64 * + 16 ELSE + 55 END AS col1
----
76
-967

skipif mysql # not compatible
query II rowsort label-7750
SELECT ALL ( + 76 ) AS col1, + 86 + + + COUNT ( * ) - 30 - + CASE - - COUNT ( * ) WHEN COUNT ( * ) THEN + 64 * + 16 ELSE + 55 END AS col1
----
76
-967

query I rowsort
SELECT ALL ( + 26 ) AS col1
----
26

query I rowsort
SELECT + 97 * + 48 AS col2
----
4656

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL 49 * + NULLIF ( - 8, - CASE - NULLIF ( 2, + 79 * - 79 + - 40 ) WHEN - 92 THEN - 2 + + 58 WHEN + + 46 / 19 THEN NULL WHEN - 54 * + NULLIF ( + 73, - 63 * - SUM( + 99 ) - - 44 - + + 93 ) * + NULLIF ( 73 + 22, + 40 ) THEN 32 END ) + 93 * - COUNT( * )
----
-485

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL 49 * + NULLIF ( - 8, - CASE - NULLIF ( 2, + 79 * - 79 + - 40 ) WHEN - 92 THEN - 2 + + 58 WHEN + + 46 / 19 THEN NULL WHEN - 54 * + NULLIF ( + 73, - 63 * - SUM ( + 99 ) - - 44 - + + 93 ) * + NULLIF ( 73 + 22, + 40 ) THEN 32 END ) + 93 * - COUNT ( * )
----
-485

query I rowsort
SELECT - 35 AS col1
----
-35

query I rowsort
SELECT DISTINCT 46
----
46

query I rowsort
SELECT + 74 col1
----
74

query II rowsort
SELECT ALL 16 * - 64 AS col0, 81
----
-1024
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - ( + CASE - CASE 7 WHEN 47 * - 61 * + 57 * + ( - COUNT( * ) ) THEN - 17 ELSE + COUNT( + + 69 ) / - 73 END WHEN + - 78 * + 78 * + + 76 * - 99 THEN + 1 + - + COUNT( * ) ELSE NULL END ) + + COUNT( * ) + + + 99 * - ( - 37 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7758
SELECT - ( + CASE - CASE 7 WHEN 47 * - 61 * + 57 * + ( - COUNT ( * ) ) THEN - 17 ELSE + COUNT ( + + 69 ) / - 73 END WHEN + - 78 * + 78 * + + 76 * - 99 THEN + 1 + - + COUNT ( * ) ELSE NULL END ) + + COUNT ( * ) + + + 99 * - ( - 37 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT 34 * - SUM( ALL ( - 16 ) ) AS col2
----
544

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT 34 * - SUM ( ALL ( - 16 ) ) AS col2
----
544

query I rowsort
SELECT DISTINCT - 86 AS col1
----
-86

query I rowsort
SELECT DISTINCT - 76 AS col2
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7762
SELECT + CAST( NULL AS DECIMAL ) * - 41, 16 AS col2
----
NULL
16

skipif mysql # not compatible
query II rowsort label-7762
SELECT + CAST ( NULL AS REAL ) * - 41, 16 AS col2
----
NULL
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7763
SELECT + 92 * + COUNT( * ) AS col2, - 66 * - + 44 AS col0
----
92
2904

skipif mysql # not compatible
query II rowsort label-7763
SELECT + 92 * + COUNT ( * ) AS col2, - 66 * - + 44 AS col0
----
92
2904

onlyif mysql # DIV for integer division: 
query I rowsort label-7764
SELECT ALL 45 DIV 86 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL 45 / 86 AS col2
----
0

query I rowsort
SELECT + - 26 * + 49 AS col2
----
-1274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT - - 20 * + + ( - + CAST( NULL AS SIGNED ) ) * - 53 + + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT - - 20 * + + ( - + CAST ( NULL AS INTEGER ) ) * - 53 + + 40
----
NULL

query I rowsort
SELECT DISTINCT + 68 AS col0
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7768
SELECT ALL - 27 DIV - COUNT( * ) + 70 AS col2, 26 * - COUNT( * ) AS col1
----
97
-26

skipif mysql # not compatible
query II rowsort label-7768
SELECT ALL - 27 / - COUNT ( * ) + 70 AS col2, 26 * - COUNT ( * ) AS col1
----
97
-26

query I rowsort
SELECT ALL 99 * - 32
----
-3168

query I rowsort
SELECT + ( 54 ) AS col1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7771
SELECT CAST( NULL AS SIGNED ) AS col1, + 27 * + 6 + 17 - + + 74 AS col2
----
NULL
105

skipif mysql # not compatible
query II rowsort label-7771
SELECT CAST ( NULL AS INTEGER ) AS col1, + 27 * + 6 + 17 - + + 74 AS col2
----
NULL
105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7772
SELECT ALL + 61 DIV COUNT( * ) DIV + + 7 + 24 AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + 61 / COUNT ( * ) / + + 7 + 24 AS col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - COUNT( * ) * + 72 * - - 2 + + + 17 AS col0
----
-127

skipif mysql # not compatible
query I rowsort label-7773
SELECT - COUNT ( * ) * + 72 * - - 2 + + + 17 AS col0
----
-127

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT CAST( + - 96 AS SIGNED )
----
-96

skipif mysql # not compatible
query I rowsort label-7774
SELECT CAST ( + - 96 AS INTEGER )
----
-96

query I rowsort
SELECT + 21 AS col0
----
21

query I rowsort
SELECT + 75 + 30
----
105

query II rowsort
SELECT DISTINCT - 13 AS col1, - CASE + NULLIF ( + COALESCE ( + NULLIF ( 36, - ( + 73 ) ), - 64 ), 36 ) WHEN + 83 * - 74 * + - 41 + 88 * + - 33 THEN + 19 * + 88 END * + + 74
----
-13
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL - 73 + - 73 * 24 + - MIN( ALL 88 ) * - - ( + 63 )
----
-7369

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL - 73 + - 73 * 24 + - MIN ( ALL 88 ) * - - ( + 63 )
----
-7369

query I rowsort
SELECT 67 * + 33
----
2211

query II rowsort
SELECT + 86 AS col1, + 19
----
86
19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT ALL - 82 DIV - NULLIF ( + COUNT( * ), + 97 )
----
82

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL - 82 / - NULLIF ( + COUNT ( * ), + 97 )
----
82

query I rowsort
SELECT + 97 col2
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT SUM( - 87 ) + - 97 * - MAX( ALL 79 ) AS col1
----
7576

skipif mysql # not compatible
query I rowsort label-7783
SELECT SUM ( - 87 ) + - 97 * - MAX ( ALL 79 ) AS col1
----
7576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT ALL + 10 - CAST( + 50 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL + 10 - CAST ( + 50 AS INTEGER )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT 22 * + COUNT( * ) + - - 54 * - COUNT( * ) * - 79 - - 88 + - - 61 AS col1
----
4437

skipif mysql # not compatible
query I rowsort label-7785
SELECT 22 * + COUNT ( * ) + - - 54 * - COUNT ( * ) * - 79 - - 88 + - - 61 AS col1
----
4437

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT - 53 * 67 + - 59 * - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7786
SELECT - 53 * 67 + - 59 * - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT COUNT( * ) + 58
----
59

skipif mysql # not compatible
query I rowsort label-7787
SELECT COUNT ( * ) + 58
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7788
SELECT + NULLIF ( 8, + 0 DIV - COUNT( * ) * - 99 + - + ( 2 ) ) DIV 93 * - - 29 + 78 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7788
SELECT + NULLIF ( 8, + 0 / - COUNT ( * ) * - 99 + - + ( 2 ) ) / 93 * - - 29 + 78 AS col2
----
78

query I rowsort
SELECT 34 * - 12 * + 4
----
-1632

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + COUNT( DISTINCT + - 9 )
----
1

skipif mysql # not compatible
query I rowsort label-7790
SELECT + COUNT ( DISTINCT + - 9 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7791
SELECT ALL + 87 DIV + COUNT( * ) - - + COUNT( * ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + 87 / + COUNT ( * ) - - + COUNT ( * ) AS col2
----
88

query II rowsort
SELECT ALL 25 col0, 27
----
25
27

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT ALL + SUM( - + 94 )
----
-94

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + SUM ( - + 94 )
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT ( + + 6 ) + COUNT( + - 12 ) + - + 89 + - 10 * + - 6 * - + 87
----
-5302

skipif mysql # not compatible
query I rowsort label-7794
SELECT ( + + 6 ) + COUNT ( + - 12 ) + - + 89 + - 10 * + - 6 * - + 87
----
-5302

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7795
SELECT ALL 87 AS col0, - COALESCE ( 44, - 59 + - CAST( NULL AS SIGNED ) * - - NULLIF ( - 59, + 17 + - 66 ) ) + 72 AS col2
----
87
28

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL 87 AS col0, - COALESCE ( 44, - 59 + - CAST ( NULL AS INTEGER ) * - - NULLIF ( - 59, + 17 + - 66 ) ) + 72 AS col2
----
87
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7796
SELECT DISTINCT COUNT( * ), CASE 19 WHEN - 6 THEN - ( + 66 ) ELSE NULL END * + CAST( NULL AS SIGNED ) AS col2
----
1
NULL

skipif mysql # not compatible
query II rowsort label-7796
SELECT DISTINCT COUNT ( * ), CASE 19 WHEN - 6 THEN - ( + 66 ) ELSE NULL END * + CAST ( NULL AS INTEGER ) AS col2
----
1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7797
SELECT ALL - 62 AS col1, 20 + - 85 + - 44 DIV + 50 AS col2
----
-62
-65

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL - 62 AS col1, 20 + - 85 + - 44 / + 50 AS col2
----
-62
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT - COUNT( * ) + - 80 * - COUNT( * ) col2
----
79

skipif mysql # not compatible
query I rowsort label-7798
SELECT - COUNT ( * ) + - 80 * - COUNT ( * ) col2
----
79

query I rowsort
SELECT 83 + 17 AS col0
----
100

onlyif mysql # aggregate syntax: 
query II rowsort label-7800
SELECT 41, + 57 * + 67 * + COUNT( * ) + + - 13 * - COUNT( * ) AS col1
----
41
3832

skipif mysql # not compatible
query II rowsort label-7800
SELECT 41, + 57 * + 67 * + COUNT ( * ) + + - 13 * - COUNT ( * ) AS col1
----
41
3832

query II rowsort
SELECT - - 42 AS col0, - 58 * 41 * + - 63
----
42
149814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT COALESCE ( 8, 16, + 90 + + 17 ) + - COUNT( - 35 ) + - 5 * 65 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7802
SELECT COALESCE ( 8, 16, + 90 + + 17 ) + - COUNT ( - 35 ) + - 5 * 65 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ( - 67 ) + + 21
----
-46

query I rowsort
SELECT DISTINCT + 3 AS col2
----
3

query I rowsort
SELECT ALL 52 + - + 80 + + 10
----
-18

query I rowsort
SELECT ALL + + 60 + - 90 AS col2
----
-30

query I rowsort
SELECT DISTINCT + ( 99 ) + + NULLIF ( + 29, - 5 ) AS col0
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL 5 + + 97 + - - 84 * - - SUM( ALL + 20 ) AS col0
----
1782

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL 5 + + 97 + - - 84 * - - SUM ( ALL + 20 ) AS col0
----
1782

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7809
SELECT COUNT( * ) DIV - + ( 82 )
----
0

skipif mysql # not compatible
query I rowsort label-7809
SELECT COUNT ( * ) / - + ( 82 )
----
0

query I rowsort
SELECT ( + 4 ) + 96 AS col2
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT 4 + 48 + 70 + + COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT 4 + 48 + 70 + + COUNT ( * )
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL 39 - 14 + - COALESCE ( - MIN( - 20 ), 94 )
----
5

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL 39 - 14 + - COALESCE ( - MIN ( - 20 ), 94 )
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7813
SELECT DISTINCT 51 DIV - - COUNT( * )
----
51

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT 51 / - - COUNT ( * )
----
51

query I rowsort
SELECT DISTINCT 69 - - 81 * + 23
----
1932

query I rowsort
SELECT DISTINCT - 69 * + - 82 AS col2
----
5658

onlyif mysql # aggregate syntax: 
query I rowsort label-7816
SELECT COUNT( + 36 ) * - + NULLIF ( - 54, + 4 ) + + 3 + 47 * - ( + 68 ) AS col1
----
-3139

skipif mysql # not compatible
query I rowsort label-7816
SELECT COUNT ( + 36 ) * - + NULLIF ( - 54, + 4 ) + + 3 + 47 * - ( + 68 ) AS col1
----
-3139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7817
SELECT 2 * - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) + - ( - + 49 ) AS col1
----
NULL
50

skipif mysql # not compatible
query II rowsort label-7817
SELECT 2 * - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) + - ( - + 49 ) AS col1
----
NULL
50

query I rowsort
SELECT DISTINCT - 38 col0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT DISTINCT - - COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT - - COUNT ( * ) AS col2
----
1

query I rowsort
SELECT 19 col0
----
19

query I rowsort
SELECT ALL - 39 AS col0
----
-39

query I rowsort
SELECT DISTINCT + 70 col1
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT ALL + 25 * - 19 - - - ( + 78 ) AS col1, COUNT( * ) + - 15 * + 17 * + 7 AS col2
----
-553
-1784

skipif mysql # not compatible
query II rowsort label-7823
SELECT ALL + 25 * - 19 - - - ( + 78 ) AS col1, COUNT ( * ) + - 15 * + 17 * + 7 AS col2
----
-553
-1784

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT DISTINCT + 14 DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT + 14 / - 61
----
0

query I rowsort
SELECT - - CASE + 7 WHEN + 73 * - - ( + - 86 ) THEN + 50 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( ( - 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT - - MAX( ALL - 54 ) col0
----
-54

skipif mysql # not compatible
query I rowsort label-7827
SELECT - - MAX ( ALL - 54 ) col0
----
-54

query I rowsort
SELECT ALL + - 0 * - 79
----
0

query I rowsort
SELECT 98 * + 26
----
2548

query I rowsort
SELECT + 88 + 25 AS col1
----
113

query I rowsort
SELECT ALL + + 8 + 24 * 3
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-7832
SELECT DISTINCT + 81 DIV + 57 AS col2, + 9
----
1
9

skipif mysql # not compatible
query II rowsort label-7832
SELECT DISTINCT + 81 / + 57 AS col2, + 9
----
1
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT + - ( 76 ) + + + CASE - 7 WHEN - 32 * - 62 + + - CAST( NULL AS SIGNED ) THEN 73 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + - ( 76 ) + + + CASE - 7 WHEN - 32 * - 62 + + - CAST ( NULL AS INTEGER ) THEN 73 END
----
NULL

query I rowsort
SELECT DISTINCT 65 + + 69 AS col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-7835
SELECT 55 - - - SUM( 71 ) + 15 + + - 96 + + MIN( 87 ) * - 40
----
-3577

skipif mysql # not compatible
query I rowsort label-7835
SELECT 55 - - - SUM ( 71 ) + 15 + + - 96 + + MIN ( 87 ) * - 40
----
-3577

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL COUNT( ALL + ( + - 90 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL COUNT ( ALL + ( + - 90 ) )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7837
SELECT - 53, - COUNT( * ) + 83 + 73 AS col1
----
-53
155

skipif mysql # not compatible
query II rowsort label-7837
SELECT - 53, - COUNT ( * ) + 83 + 73 AS col1
----
-53
155

query I rowsort
SELECT ALL NULLIF ( + 23, + 18 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT - 34 + - CAST( NULL AS SIGNED ) * 53 + + 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT - 34 + - CAST ( NULL AS INTEGER ) * 53 + + 17 col0
----
NULL

query II rowsort
SELECT 61 AS col0, 59 AS col2
----
61
59

query I rowsort
SELECT DISTINCT NULLIF ( 11, - - 8 )
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7842
SELECT DISTINCT + ( - - 76 ) * 79 AS col0, COUNT( - 31 ) - - 63 + + COALESCE ( + - SUM( + 32 ), - 24, - 9 DIV - - 33 + + 69, 48 ) + - - 38 DIV - 82 + - + COUNT( * ) AS col2
----
6004
31

skipif mysql # not compatible
query II rowsort label-7842
SELECT DISTINCT + ( - - 76 ) * 79 AS col0, COUNT ( - 31 ) - - 63 + + COALESCE ( + - SUM ( + 32 ), - 24, - 9 / - - 33 + + 69, 48 ) + - - 38 / - 82 + - + COUNT ( * ) AS col2
----
6004
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7843
SELECT MIN( DISTINCT + 9 ) * + - 0 + + COUNT( * ) DIV + + 84 - + 96
----
-96

skipif mysql # not compatible
query I rowsort label-7843
SELECT MIN ( DISTINCT + 9 ) * + - 0 + + COUNT ( * ) / + + 84 - + 96
----
-96

query I rowsort
SELECT ALL + 82 * - 96 AS col2
----
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT + SUM( + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-7845
SELECT + SUM ( + 36 )
----
36

query I rowsort
SELECT ALL + 51 AS col1
----
51

query I rowsort
SELECT + 33 AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT + COUNT( DISTINCT - - 54 )
----
1

skipif mysql # not compatible
query I rowsort label-7848
SELECT + COUNT ( DISTINCT - - 54 )
----
1

query I rowsort
SELECT DISTINCT + 38 AS col1
----
38

query I rowsort
SELECT 10 * 94 - ( 69 ) col0
----
871

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT + CAST( NULL AS SIGNED ) + + 88 * + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT + CAST ( NULL AS INTEGER ) + + 88 * + 92
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT + 52 DIV 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7852
SELECT + 52 / 62 AS col0
----
0

query I rowsort
SELECT ALL + - 26 AS col1
----
-26

query I rowsort
SELECT ALL 39 * + 85 AS col1
----
3315

query I rowsort
SELECT DISTINCT + + 44
----
44

query I rowsort
SELECT ALL + 59 * - 65 col1
----
-3835

query I rowsort
SELECT ALL - 85 * - 46 AS col0
----
3910

onlyif mysql # aggregate syntax: 
query I rowsort label-7858
SELECT - 6 * - - MIN( ALL + - 59 ) * - 73 + - 47 + - - 89 AS col0
----
-25800

skipif mysql # not compatible
query I rowsort label-7858
SELECT - 6 * - - MIN ( ALL + - 59 ) * - 73 + - 47 + - - 89 AS col0
----
-25800

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT ALL - - 24 * 37 * + CASE + COUNT( * ) WHEN - 11 * ( - 44 ) THEN 82 + - - 71 + + + COALESCE ( - 58, + 61, + 49 ) / - 93 END + + - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - - 24 * 37 * + CASE + COUNT ( * ) WHEN - 11 * ( - 44 ) THEN 82 + - - 71 + + + COALESCE ( - 58, + 61, + 49 ) / - 93 END + + - 22
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT MIN( - 36 )
----
-36

skipif mysql # not compatible
query I rowsort label-7860
SELECT MIN ( - 36 )
----
-36

query III rowsort
SELECT 2, ( + - 54 ) AS col1, 67 AS col0
----
2
-54
67

query I rowsort
SELECT ALL 22 AS col2
----
22

query I rowsort
SELECT + 86 * - + 97 AS col1
----
-8342

query II rowsort
SELECT - 83 col2, - 32 AS col1
----
-83
-32

query I rowsort
SELECT ALL + 52 * + - 51 * 10
----
-26520

query I rowsort
SELECT DISTINCT - 41 + 88 AS col0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - ( + MAX( - 26 ) ) AS col1
----
26

skipif mysql # not compatible
query I rowsort label-7867
SELECT - ( + MAX ( - 26 ) ) AS col1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL 1 * + COUNT( - 84 ) * + + 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL 1 * + COUNT ( - 84 ) * + + 24 AS col0
----
24

query I rowsort
SELECT - ( + - 87 )
----
87

query I rowsort
SELECT ALL CASE - 46 WHEN + 60 THEN + + 23 ELSE 6 END AS col1
----
6

query I rowsort
SELECT + 76 + - 27 AS col2
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7872
SELECT + 35 DIV - 46 AS col2, 77 - - 63 * + COUNT( * ) AS col0
----
0
140

skipif mysql # not compatible
query II rowsort label-7872
SELECT + 35 / - 46 AS col2, 77 - - 63 * + COUNT ( * ) AS col0
----
0
140

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - 41 * - COUNT( * )
----
41

skipif mysql # not compatible
query I rowsort label-7873
SELECT - 41 * - COUNT ( * )
----
41

query I rowsort
SELECT - 52 + ( - 98 ) + - - NULLIF ( 35, 16 ) + - 91 AS col2
----
-206

query I rowsort
SELECT DISTINCT - 41 - - 73 + 57 * + 10 + - 33
----
569

onlyif mysql # aggregate syntax: 
query I rowsort label-7876
SELECT ALL ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-7876
SELECT ALL ( + COUNT ( * ) ) AS col0
----
1

query II rowsort
SELECT 8 AS col1, + 25
----
8
25

query I rowsort
SELECT ALL ( + 50 ) * 93 + - 75
----
4575

query I rowsort
SELECT - 5 * - 56 col2
----
280

onlyif mysql # DIV for integer division: 
query I rowsort label-7880
SELECT ALL - 14 DIV + 17 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL - 14 / + 17 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7881
SELECT DISTINCT - 41 - + - ( - 27 ) DIV 82 AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-7881
SELECT DISTINCT - 41 - + - ( - 27 ) / 82 AS col0
----
-41

query I rowsort
SELECT ALL CASE - 12 WHEN - + 2 THEN - 65 * + 64 ELSE 9 * + 10 END AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL NULLIF ( NULLIF ( + 5, - COUNT( * ) * - COUNT( * ) ), + 37 + - COALESCE ( + + COUNT( * ), + 70 ) * CAST( NULL AS SIGNED ) - - + NULLIF ( 81, COUNT( * ) ) + 47 / + COUNT( * ) )
----
5

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL NULLIF ( NULLIF ( + 5, - COUNT ( * ) * - COUNT ( * ) ), + 37 + - COALESCE ( + + COUNT ( * ), + 70 ) * CAST ( NULL AS INTEGER ) - - + NULLIF ( 81, COUNT ( * ) ) + 47 / + COUNT ( * ) )
----
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7884
SELECT CAST( NULL AS SIGNED ) col1, - 6 DIV + 25
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7884
SELECT CAST ( NULL AS INTEGER ) col1, - 6 / + 25
----
NULL
0

query I rowsort
SELECT ALL + 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT - ( COUNT( * ) ) * - 75 col1
----
75

skipif mysql # not compatible
query I rowsort label-7886
SELECT - ( COUNT ( * ) ) * - 75 col1
----
75

query I rowsort
SELECT - 51 * - 44 * + 89
----
199716

query I rowsort
SELECT ALL + ( - 61 ) AS col1
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7889
SELECT + NULLIF ( + + CAST( + ( - + 32 ) AS SIGNED ), + 83 )
----
-32

skipif mysql # not compatible
query I rowsort label-7889
SELECT + NULLIF ( + + CAST ( + ( - + 32 ) AS INTEGER ), + 83 )
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT ALL + MIN( DISTINCT ( + 86 ) )
----
86

skipif mysql # not compatible
query I rowsort label-7890
SELECT ALL + MIN ( DISTINCT ( + 86 ) )
----
86

query I rowsort
SELECT ALL + 24 * - 10 * + + 58
----
-13920

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7892
SELECT ALL 49 DIV - + COUNT( * ) + + - 54 + - + 20 AS col2, 0
----
-123
0

skipif mysql # not compatible
query II rowsort label-7892
SELECT ALL 49 / - + COUNT ( * ) + + - 54 + - + 20 AS col2, 0
----
-123
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7893
SELECT CAST( NULL AS SIGNED ), 80 + - 6 * + 28 col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-7893
SELECT CAST ( NULL AS INTEGER ), 80 + - 6 * + 28 col0
----
NULL
-88

query I rowsort
SELECT DISTINCT + 20 AS col1
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-7895
SELECT ALL - - 65 DIV + + 99 + 98 * + - 96 * 6 col0
----
-56448

skipif mysql # not compatible
query I rowsort label-7895
SELECT ALL - - 65 / + + 99 + 98 * + - 96 * 6 col0
----
-56448

onlyif mysql # aggregate syntax: 
query II rowsort label-7896
SELECT ALL + + 33 AS col1, - 82 + COUNT( * ) col0
----
33
-81

skipif mysql # not compatible
query II rowsort label-7896
SELECT ALL + + 33 AS col1, - 82 + COUNT ( * ) col0
----
33
-81

query I rowsort
SELECT DISTINCT + + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT - + 12 * - 5 + + COUNT( - - NULLIF ( 27, + + 42 ) ) + 23
----
84

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - + 12 * - 5 + + COUNT ( - - NULLIF ( 27, + + 42 ) ) + 23
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT - COUNT( * ) - - 80
----
79

skipif mysql # not compatible
query I rowsort label-7899
SELECT - COUNT ( * ) - - 80
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT ALL - + COUNT( * ) * + + 73 + 54 * - 27 + + - MIN( - - 65 ) * 85
----
-7056

skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL - + COUNT ( * ) * + + 73 + 54 * - 27 + + - MIN ( - - 65 ) * 85
----
-7056

query I rowsort
SELECT - 43 * + + 27 AS col1
----
-1161

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT + 13 * - - CASE - COUNT( * ) WHEN 17 THEN - 47 - + 73 ELSE + 17 + 95 END AS col1
----
1456

skipif mysql # not compatible
query I rowsort label-7902
SELECT + 13 * - - CASE - COUNT ( * ) WHEN 17 THEN - 47 - + 73 ELSE + 17 + 95 END AS col1
----
1456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7903
SELECT ALL - + COUNT( * ) * 13 * + CAST( NULL AS SIGNED ) * + 36 + + + CASE - - 94 WHEN 3 THEN - MAX( ALL - 84 ) WHEN 48 - + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * 62 * + - 14 THEN NULL END - - CASE 39 WHEN - COUNT( * ) THEN NULL WHEN + COALESCE ( - 31, - 56 + 64 ) THEN + + 2 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7903
SELECT ALL - + COUNT ( * ) * 13 * + CAST ( NULL AS INTEGER ) * + 36 + + + CASE - - 94 WHEN 3 THEN - MAX ( ALL - 84 ) WHEN 48 - + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * 62 * + - 14 THEN NULL END - - CASE 39 WHEN - COUNT ( * ) THEN NULL WHEN + COALESCE ( - 31, - 56 + 64 ) THEN + + 2 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7904
SELECT 35, - 20 + COUNT( * ) + 68 DIV COUNT( * ) + - + 92 + - 40 * COALESCE ( 67, + + 43 ) + + + 20 AS col2
----
35
-2703

skipif mysql # not compatible
query II rowsort label-7904
SELECT 35, - 20 + COUNT ( * ) + 68 / COUNT ( * ) + - + 92 + - 40 * COALESCE ( 67, + + 43 ) + + + 20 AS col2
----
35
-2703

query I rowsort
SELECT ALL - 38 * 44 * - 14 + NULLIF ( + 6, + 99 - 90 * - + 87 ) AS col0
----
23414

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7906
SELECT ALL + 81 * - 33 AS col1, MAX( ALL 57 ) DIV + ( - - COUNT( * ) ) + - ( + 56 )
----
-2673
1

skipif mysql # not compatible
query II rowsort label-7906
SELECT ALL + 81 * - 33 AS col1, MAX ( ALL 57 ) / + ( - - COUNT ( * ) ) + - ( + 56 )
----
-2673
1

query I rowsort
SELECT ALL 70 * - - 40 + - 2 AS col2
----
2798

query II rowsort
SELECT 10 AS col0, + 51 AS col2
----
10
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT ALL 89 - + 30 * - 50 + + COUNT( DISTINCT 57 ) + + + 44 * - ( - - 97 ) AS col0
----
-2678

skipif mysql # not compatible
query I rowsort label-7909
SELECT ALL 89 - + 30 * - 50 + + COUNT ( DISTINCT 57 ) + + + 44 * - ( - - 97 ) AS col0
----
-2678

query I rowsort
SELECT - 59 + 24 * + 15
----
301

query II rowsort
SELECT - - 96, 86 AS col1
----
96
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT MIN( DISTINCT - + 74 ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-7912
SELECT MIN ( DISTINCT - + 74 ) AS col1
----
-74

query I rowsort
SELECT 87 + - - ( + 60 ) + 92
----
239

query I rowsort
SELECT 61 * - 62 * 46 AS col1
----
-173972

query I rowsort
SELECT 90 + + + 93
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT 5 DIV + 93 * 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT 5 / + 93 * 76 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7917
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 36 * + 48 + 65 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7917
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 36 * + 48 + 65 col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT ALL 45 + + - 82 * - 10 + + - 6 DIV 77 DIV + 51
----
865

skipif mysql # not compatible
query I rowsort label-7918
SELECT ALL 45 + + - 82 * - 10 + + - 6 / 77 / + 51
----
865

onlyif mysql # DIV for integer division: 
query I rowsort label-7919
SELECT 95 DIV 71
----
1

skipif mysql # not compatible
query I rowsort label-7919
SELECT 95 / 71
----
1

query I rowsort
SELECT DISTINCT - 37
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7921
SELECT ALL + 20 + CASE - 23 WHEN + + CAST( NULL AS SIGNED ) + - 11 THEN + - COALESCE ( - + 24, 34 + + - 81, - CAST( - 4 AS SIGNED ) DIV - 67 * 65 * CASE - - 53 WHEN - + 52 + + 10 * - CAST( NULL AS SIGNED ) THEN + 30 - - 61 + - 76 WHEN 15 THEN NULL END * + 26 - CASE + 59 WHEN + 17 DIV - 56 THEN CASE 26 WHEN 59 * 6 THEN 85 * - COUNT( * ) + 85 * 87 ELSE AVG ( ALL 53 ) * - 72 END DIV ( 18 * 84 ) END ) WHEN 38 THEN COUNT( * ) * CAST( NULL AS SIGNED ) ELSE - 5 + COUNT( * ) * 67 END + + SUM( DISTINCT - 57 ) DIV + COUNT( * )
----
25

skipif mysql # not compatible
query I rowsort label-7921
SELECT ALL + 20 + CASE - 23 WHEN + + CAST ( NULL AS INTEGER ) + - 11 THEN + - COALESCE ( - + 24, 34 + + - 81, - CAST ( - 4 AS INTEGER ) / - 67 * 65 * CASE - - 53 WHEN - + 52 + + 10 * - CAST ( NULL AS INTEGER ) THEN + 30 - - 61 + - 76 WHEN 15 THEN NULL END * + 26 - CASE + 59 WHEN + 17 / - 56 THEN CASE 26 WHEN 59 * 6 THEN 85 * - COUNT ( * ) + 85 * 87 ELSE AVG ( ALL 53 ) * - 72 END / ( 18 * 84 ) END ) WHEN 38 THEN COUNT ( * ) * CAST ( NULL AS INTEGER ) ELSE - 5 + COUNT ( * ) * 67 END + + SUM ( DISTINCT - 57 ) / + COUNT ( * )
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-7922
SELECT 11 - + 92 + - 18 DIV 61 DIV - 99, - 50 AS col2
----
-81
-50

skipif mysql # not compatible
query II rowsort label-7922
SELECT 11 - + 92 + - 18 / 61 / - 99, - 50 AS col2
----
-81
-50

query II rowsort
SELECT ALL + 47 + - - 22, - 3 AS col1
----
69
-3

query I rowsort
SELECT ALL - + 21 AS col0
----
-21

query I rowsort
SELECT + - 81
----
-81

query I rowsort
SELECT DISTINCT - + NULLIF ( - 90, ( 11 ) * + + 79 )
----
90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7927
SELECT 63 DIV + + COUNT( * ) + - 15 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-7927
SELECT 63 / + + COUNT ( * ) + - 15 AS col1
----
48

query I rowsort
SELECT + - 70 col0
----
-70

query I rowsort
SELECT + 39 col0
----
39

query I rowsort
SELECT DISTINCT - 21 AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL + - 26 + - 74 + + - 57 * - COUNT( * ) * + 26
----
1382

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL + - 26 + - 74 + + - 57 * - COUNT ( * ) * + 26
----
1382

query I rowsort
SELECT DISTINCT - - 64 + - 22 * - + 37 col2
----
878

query I rowsort
SELECT ALL - 39
----
-39

query I rowsort
SELECT ALL - 52 + + 74 col0
----
22

query II rowsort
SELECT ALL - + 14 * 76 col1, + 42 + + 43 + - + 1
----
-1064
84

query I rowsort
SELECT DISTINCT - ( - 24 )
----
24

query I rowsort
SELECT DISTINCT - - 89 * + 41 AS col1
----
3649

query I rowsort
SELECT DISTINCT - 62 AS col0
----
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7939
SELECT + COALESCE ( 71, + MIN( + NULLIF ( + 90, - 45 ) ) + - - 14 DIV - 47, 83, - COUNT( * ) ) * - + 50 AS col1
----
-3550

skipif mysql # not compatible
query I rowsort label-7939
SELECT + COALESCE ( 71, + MIN ( + NULLIF ( + 90, - 45 ) ) + - - 14 / - 47, 83, - COUNT ( * ) ) * - + 50 AS col1
----
-3550

query I rowsort
SELECT DISTINCT 92 - - 6 * - 70 AS col0
----
-328

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - CASE - 6 WHEN - ( - - 55 ) + - COUNT( * ) THEN + - 95 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7941
SELECT - CASE - 6 WHEN - ( - - 55 ) + - COUNT ( * ) THEN + - 95 END
----
NULL

query II rowsort
SELECT ALL 48 AS col2, - 54 AS col1
----
48
-54

query I rowsort
SELECT 61 * - 79
----
-4819

query I rowsort
SELECT DISTINCT 41 * 58
----
2378

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT + 41 - - MAX( DISTINCT - - ( + 65 ) ) + + 90 AS col0
----
196

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + 41 - - MAX ( DISTINCT - - ( + 65 ) ) + + 90 AS col0
----
196

query I rowsort
SELECT - 59 AS col0
----
-59

query I rowsort
SELECT DISTINCT 5 * 38 AS col1
----
190

query I rowsort
SELECT 96 * + - 23 col2
----
-2208

query I rowsort
SELECT DISTINCT 98 * - 93
----
-9114

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT SUM( DISTINCT - 12 ) + + COALESCE ( - 77, 79 ) AS col0
----
-89

skipif mysql # not compatible
query I rowsort label-7950
SELECT SUM ( DISTINCT - 12 ) + + COALESCE ( - 77, 79 ) AS col0
----
-89

query II rowsort
SELECT DISTINCT 75, 4 AS col1
----
75
4

query II rowsort
SELECT ALL 26 AS col2, - 9 + - + 13
----
26
-22

query I rowsort
SELECT 86 + + - 62 * + + 79 + + 82 * + + 52 AS col2
----
-548

query I rowsort
SELECT ALL - 51 + 4 AS col2
----
-47

query I rowsort
SELECT ALL COALESCE ( - 1, + ( - 2 ) ) + - - 79 * 18 AS col2
----
1421

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7956
SELECT ( - - CASE 87 WHEN - 73 THEN NULL ELSE + 52 * - - 95 END ) + - ( + 67 ) + + 7 * + - 59 + + 9 + + + ( 26 ) + ( 28 ) + CAST( NULL AS SIGNED ) - + + 52 - 28 / 4 / + ( - + 36 ) * + SUM( DISTINCT + 81 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT ( - - CASE 87 WHEN - 73 THEN NULL ELSE + 52 * - - 95 END ) + - ( + 67 ) + + 7 * + - 59 + + 9 + + + ( 26 ) + ( 28 ) + CAST ( NULL AS INTEGER ) - + + 52 - 28 / 4 / + ( - + 36 ) * + SUM ( DISTINCT + 81 ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT 86
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT COUNT( * ) + - 89
----
-88

skipif mysql # not compatible
query I rowsort label-7958
SELECT COUNT ( * ) + - 89
----
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-7959
SELECT ALL 92 AS col0, COUNT( * ) + - CASE + 41 WHEN - ( + COUNT( * ) ) * 84 + - 9 - - + 7 + 83 THEN COUNT( ALL - + ( 13 ) ) END
----
92
NULL

skipif mysql # not compatible
query II rowsort label-7959
SELECT ALL 92 AS col0, COUNT ( * ) + - CASE + 41 WHEN - ( + COUNT ( * ) ) * 84 + - 9 - - + 7 + 83 THEN COUNT ( ALL - + ( 13 ) ) END
----
92
NULL

query I rowsort
SELECT DISTINCT 32 + + - 0 AS col1
----
32

query I rowsort
SELECT 63 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT 8 + - ( + + COUNT( * ) )
----
7

skipif mysql # not compatible
query I rowsort label-7962
SELECT 8 + - ( + + COUNT ( * ) )
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7963
SELECT ALL + ( - CAST( + COUNT( * ) AS SIGNED ) ) * + - 12 * 62 + + 50 col2, 91 * - 92
----
794
-8372

skipif mysql # not compatible
query II rowsort label-7963
SELECT ALL + ( - CAST ( + COUNT ( * ) AS INTEGER ) ) * + - 12 * 62 + + 50 col2, 91 * - 92
----
794
-8372

query I rowsort
SELECT + ( 69 ) * ( 98 ) AS col1
----
6762

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT + MIN( DISTINCT + 56 ) * + COALESCE ( - 66, - 30 ) + - - NULLIF ( - 46, - + COUNT( * ) * + 40 * - ( - + 69 ) ) + 62 + + SUM( DISTINCT - 45 ) * + 52 * - 6 * + - 7 AS col2
----
-101960

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT + MIN ( DISTINCT + 56 ) * + COALESCE ( - 66, - 30 ) + - - NULLIF ( - 46, - + COUNT ( * ) * + 40 * - ( - + 69 ) ) + 62 + + SUM ( DISTINCT - 45 ) * + 52 * - 6 * + - 7 AS col2
----
-101960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7966
SELECT + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7966
SELECT + ( CAST ( NULL AS INTEGER ) )
----
NULL

query II rowsort
SELECT + 81 + 33 + + 46 AS col0, - 66
----
160
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7968
SELECT ALL - 29 AS col2, COUNT( * ) col0
----
-29
1

skipif mysql # not compatible
query II rowsort label-7968
SELECT ALL - 29 AS col2, COUNT ( * ) col0
----
-29
1

query II rowsort
SELECT 84 AS col1, 1 * + 6
----
84
6

query I rowsort
SELECT DISTINCT - 5 AS col0
----
-5

query I rowsort
SELECT ALL - - 22 AS col2
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-7972
SELECT - 61 DIV + 1
----
-61

skipif mysql # not compatible
query I rowsort label-7972
SELECT - 61 / + 1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - MIN( ALL - 22 )
----
22

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - MIN ( ALL - 22 )
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7974
SELECT ALL + CAST( NULL AS SIGNED ) * + 60 - - 41
----
NULL

skipif mysql # not compatible
query I rowsort label-7974
SELECT ALL + CAST ( NULL AS INTEGER ) * + 60 - - 41
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7975
SELECT + COUNT( * ) * + 88 DIV - - 31
----
2

skipif mysql # not compatible
query I rowsort label-7975
SELECT + COUNT ( * ) * + 88 / - - 31
----
2

query I rowsort
SELECT + - ( - 43 )
----
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7977
SELECT + - 15 - - + 8 DIV CASE - 99 WHEN + CAST( NULL AS SIGNED ) THEN + COUNT( * ) * - 78 * - ( - 59 ) + AVG ( + 1 ) + + 35 + - 39 - - 92 DIV - 1 WHEN 40 THEN NULL ELSE + 39 END
----
-15

skipif mysql # not compatible
query I rowsort label-7977
SELECT + - 15 - - + 8 / CASE - 99 WHEN + CAST ( NULL AS INTEGER ) THEN + COUNT ( * ) * - 78 * - ( - 59 ) + AVG ( + 1 ) + + 35 + - 39 - - 92 / - 1 WHEN 40 THEN NULL ELSE + 39 END
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT + NULLIF ( COALESCE ( + 20, - 57, 34 * + 33 * + ( CASE - + 14 WHEN + AVG ( + ( - + 13 ) ) + + - 10 THEN NULL WHEN + COUNT( * ) THEN 81 * 57 - + 69 + SUM( DISTINCT - + ( + 41 ) ) * 77 + 3 - + 30 + + 85 - - 59 * + 39 - 85 WHEN - + 45 THEN ( + 51 ) END ), SUM( ALL ( + ( + 78 ) ) ) ), - 87 )
----
20

skipif mysql # not compatible
query I rowsort label-7978
SELECT + NULLIF ( COALESCE ( + 20, - 57, 34 * + 33 * + ( CASE - + 14 WHEN + AVG ( + ( - + 13 ) ) + + - 10 THEN NULL WHEN + COUNT ( * ) THEN 81 * 57 - + 69 + SUM ( DISTINCT - + ( + 41 ) ) * 77 + 3 - + 30 + + 85 - - 59 * + 39 - 85 WHEN - + 45 THEN ( + 51 ) END ), SUM ( ALL ( + ( + 78 ) ) ) ), - 87 )
----
20

query I rowsort
SELECT - 50 * + 40
----
-2000

query I rowsort
SELECT DISTINCT + - 20
----
-20

query I rowsort
SELECT DISTINCT + + 29
----
29

query I rowsort
SELECT - + 91 * - 12 * - + 89 * 34 AS col0
----
-3304392

query II rowsort
SELECT ALL - 27 * 24 AS col1, 50 + 87
----
-648
137

query I rowsort
SELECT ALL + 9 AS col1
----
9

query I rowsort
SELECT ALL 5 col1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT - ( 17 ) * - - ( + + 45 ) * - + 77 * 25 * - COUNT( * )
----
-1472625

skipif mysql # not compatible
query I rowsort label-7986
SELECT - ( 17 ) * - - ( + + 45 ) * - + 77 * 25 * - COUNT ( * )
----
-1472625

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT ALL NULLIF ( - SUM( ALL - 28 ), + 74 * 20 ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7987
SELECT ALL NULLIF ( - SUM ( ALL - 28 ), + 74 * 20 ) AS col2
----
28

query I rowsort
SELECT - 46 + + - 30 col2
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT ALL NULLIF ( - 36, + SUM( DISTINCT - 16 ) ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL NULLIF ( - 36, + SUM ( DISTINCT - 16 ) ) AS col2
----
-36

query I rowsort
SELECT - COALESCE ( 71, 6 * 3 ) + + 85 + - 83 - 38 * - 47
----
1717

onlyif mysql # DIV for integer division: 
query I rowsort label-7991
SELECT ALL + 92 DIV 76 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + 92 / 76 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7992
SELECT - ( - 20 ) DIV 24 * + 90 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7992
SELECT - ( - 20 ) / 24 * + 90 AS col1
----
0

query I rowsort
SELECT ALL + 19 + 7
----
26

onlyif mysql # aggregate syntax: 
query II rowsort label-7994
SELECT DISTINCT CASE 18 WHEN - 89 * - - 33 THEN NULL WHEN + 62 / + 34 THEN NULL ELSE + 80 END AS col1, COUNT( * ) + - COALESCE ( + 87, 97 ) + - 48
----
80
-134

skipif mysql # not compatible
query II rowsort label-7994
SELECT DISTINCT CASE 18 WHEN - 89 * - - 33 THEN NULL WHEN + 62 / + 34 THEN NULL ELSE + 80 END AS col1, COUNT ( * ) + - COALESCE ( + 87, 97 ) + - 48
----
80
-134

query II rowsort
SELECT ALL 27 + 65 AS col1, + 86 * ( + - 29 ) + 22 AS col2
----
92
-2472

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7996
SELECT ALL CASE - ( - - CASE - - 90 WHEN - ( MAX( + - 4 ) ) THEN NULL WHEN + CAST( + + 6 AS SIGNED ) * 0 + + 60 + ( + - 1 ) * 45 + - 75 - - 99 THEN + + 24 + 93 + + 38 END ) WHEN + 64 * 8 THEN 85 + - 36 * - 51 END + - ( - 34 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT ALL CASE - ( - - CASE - - 90 WHEN - ( MAX ( + - 4 ) ) THEN NULL WHEN + CAST ( + + 6 AS INTEGER ) * 0 + + 60 + ( + - 1 ) * 45 + - 75 - - 99 THEN + + 24 + 93 + + 38 END ) WHEN + 64 * 8 THEN 85 + - 36 * - 51 END + - ( - 34 ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 38 + - 89 AS col0
----
-127

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7998
SELECT ALL COUNT( ALL 48 ) * COUNT( + 29 ) DIV - + 10 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL COUNT ( ALL 48 ) * COUNT ( + 29 ) / - + 10 AS col0
----
0

query I rowsort
SELECT + 86 * + 58 col2
----
4988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8000
SELECT ALL CASE - + 76 WHEN - COALESCE ( - COALESCE ( - NULLIF ( + 42, - 60 + - 28 + - COALESCE ( 29, - + MIN( 21 ), + 52 + 68 * + 6 ) ), 91 * + - AVG ( ALL - 72 ) * + 55 + MAX( DISTINCT 28 ), - 33 + - 15, + + CAST( NULL AS SIGNED ) * COALESCE ( - - 79, + + ( - 53 ) * - CAST( - 26 AS DECIMAL ) ) ), - COALESCE ( + 67, - COUNT( * ) ), - COUNT( * ) ) + - 26 * - COUNT( ALL + 30 + ( + 32 ) ) THEN NULL WHEN - COALESCE ( + 55, + 54 + - 33, + 64 + + 97 ) THEN + 36 END * 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL CASE - + 76 WHEN - COALESCE ( - COALESCE ( - NULLIF ( + 42, - 60 + - 28 + - COALESCE ( 29, - + MIN ( 21 ), + 52 + 68 * + 6 ) ), 91 * + - AVG ( ALL - 72 ) * + 55 + MAX ( DISTINCT 28 ), - 33 + - 15, + + CAST ( NULL AS INTEGER ) * COALESCE ( - - 79, + + ( - 53 ) * - CAST ( - 26 AS REAL ) ) ), - COALESCE ( + 67, - COUNT ( * ) ), - COUNT ( * ) ) + - 26 * - COUNT ( ALL + 30 + ( + 32 ) ) THEN NULL WHEN - COALESCE ( + 55, + 54 + - 33, + 64 + + 97 ) THEN + 36 END * 30
----
NULL

query I rowsort
SELECT 35 col0
----
35

query I rowsort
SELECT - 73 - - 82 + - + 2
----
7

query I rowsort
SELECT DISTINCT 96 AS col0
----
96

query I rowsort
SELECT ALL + 52 * - 72 AS col2
----
-3744

query I rowsort
SELECT - 96 * + 29
----
-2784

query I rowsort
SELECT - 23 AS col1
----
-23

query I rowsort
SELECT ALL 49 - + 21
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT MAX( ALL - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT MAX ( ALL - 55 )
----
-55

query I rowsort
SELECT DISTINCT + + 1 AS col1
----
1

query I rowsort
SELECT DISTINCT + - 10 AS col0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT + + CASE - 46 WHEN + 90 / - 68 THEN NULL WHEN - 88 + 76 + + 5 THEN NULL WHEN - 12 * ( - COUNT( * ) ) - - 84 THEN NULL WHEN - + 47 + + - 1 * - 9 THEN - + COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT + + CASE - 46 WHEN + 90 / - 68 THEN NULL WHEN - 88 + 76 + + 5 THEN NULL WHEN - 12 * ( - COUNT ( * ) ) - - 84 THEN NULL WHEN - + 47 + + - 1 * - 9 THEN - + COUNT ( * ) END AS col0
----
NULL

query I rowsort
SELECT + ( 10 ) AS col0
----
10

query I rowsort
SELECT ALL + + 29
----
29

query I rowsort
SELECT + 58 AS col2
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT + 51 DIV 49 + 34 + - 91 * + - 64 * + 10 AS col0
----
58275

skipif mysql # not compatible
query I rowsort label-8015
SELECT + 51 / 49 + 34 + - 91 * + - 64 * + 10 AS col0
----
58275

query I rowsort
SELECT + - 2 AS col2
----
-2

query I rowsort
SELECT DISTINCT + - 51
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT + 25 + + COUNT( * ) * + 17 + + ( + ( + COUNT( * ) ) ) + - + CAST( - COALESCE ( 94, + MAX( - CAST( - 10 AS SIGNED ) ), - COUNT( * ) * + 53 ) AS SIGNED ) * + + 33 AS col1
----
3145

skipif mysql # not compatible
query I rowsort label-8018
SELECT + 25 + + COUNT ( * ) * + 17 + + ( + ( + COUNT ( * ) ) ) + - + CAST ( - COALESCE ( 94, + MAX ( - CAST ( - 10 AS INTEGER ) ), - COUNT ( * ) * + 53 ) AS INTEGER ) * + + 33 AS col1
----
3145

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT + ( + - 57 ) DIV - + 18 - 33 + - 19
----
-49

skipif mysql # not compatible
query I rowsort label-8019
SELECT + ( + - 57 ) / - + 18 - 33 + - 19
----
-49

query I rowsort
SELECT ALL + + 69
----
69

query I rowsort
SELECT ALL + - 78 col1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + 48 * + COUNT( + 45 )
----
48

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 48 * + COUNT ( + 45 )
----
48

query I rowsort
SELECT DISTINCT + + 18 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT ALL + - CASE + - CAST( 13 AS SIGNED ) WHEN 52 THEN + + 11 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + - CASE + - CAST ( 13 AS INTEGER ) WHEN 52 THEN + + 11 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT + 63 * 78 + COUNT( * )
----
4915

skipif mysql # not compatible
query I rowsort label-8025
SELECT + 63 * 78 + COUNT ( * )
----
4915

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8026
SELECT ALL + 98 * + - ( + + 11 ) * - CAST( NULL AS SIGNED ) AS col1, 18 DIV 3
----
NULL
6

skipif mysql # not compatible
query II rowsort label-8026
SELECT ALL + 98 * + - ( + + 11 ) * - CAST ( NULL AS INTEGER ) AS col1, 18 / 3
----
NULL
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL CAST( NULL AS SIGNED ) * 0
----
NULL

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL CAST ( NULL AS INTEGER ) * 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + COUNT( - 16 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + COUNT ( - 16 ) AS col1
----
1

query I rowsort
SELECT ALL + 25 col2
----
25

query I rowsort
SELECT + ( - 3 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8031
SELECT - 76 DIV CAST( - 88 AS SIGNED ) * 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8031
SELECT - 76 / CAST ( - 88 AS INTEGER ) * 31 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8032
SELECT + 72 * 74 + - ( + - CASE + 30 WHEN - 31 THEN NULL WHEN - 4 THEN NULL WHEN - 38 THEN NULL ELSE + - 77 DIV 30 * 45 + - + 6 END ) * + 26 * - + 89 AS col2
----
227472

skipif mysql # not compatible
query I rowsort label-8032
SELECT + 72 * 74 + - ( + - CASE + 30 WHEN - 31 THEN NULL WHEN - 4 THEN NULL WHEN - 38 THEN NULL ELSE + - 77 / 30 * 45 + - + 6 END ) * + 26 * - + 89 AS col2
----
227472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT + CAST( - 94 AS SIGNED ) AS col2
----
-94

skipif mysql # not compatible
query I rowsort label-8033
SELECT + CAST ( - 94 AS INTEGER ) AS col2
----
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8034
SELECT + COALESCE ( - + 5, + 34 * + - 30, - 58 + - 81 ) * + 76 + - - 34 + + MAX( - - 49 ), - 36 DIV CAST( ( + 95 ) AS SIGNED ) + NULLIF ( + 67, - CAST( 61 AS SIGNED ) ) * + 24 AS col0
----
-297
1608

skipif mysql # not compatible
query II rowsort label-8034
SELECT + COALESCE ( - + 5, + 34 * + - 30, - 58 + - 81 ) * + 76 + - - 34 + + MAX ( - - 49 ), - 36 / CAST ( ( + 95 ) AS INTEGER ) + NULLIF ( + 67, - CAST ( 61 AS INTEGER ) ) * + 24 AS col0
----
-297
1608

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT - ( - 64 ) * - + SUM( + + NULLIF ( + - 58, - 43 ) ) + + + 7
----
3719

skipif mysql # not compatible
query I rowsort label-8035
SELECT - ( - 64 ) * - + SUM ( + + NULLIF ( + - 58, - 43 ) ) + + + 7
----
3719

query I rowsort
SELECT ALL 21 * + + 4 + + 33 AS col1
----
117

onlyif mysql # aggregate syntax: 
query II rowsort label-8037
SELECT ALL + 97 * + CASE - 19 WHEN 27 THEN 21 END, + COUNT( * ) + + 57 + - 36 AS col2
----
NULL
22

skipif mysql # not compatible
query II rowsort label-8037
SELECT ALL + 97 * + CASE - 19 WHEN 27 THEN 21 END, + COUNT ( * ) + + 57 + - 36 AS col2
----
NULL
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + 11 * - COUNT( * ) * - 6 * + 94 + - - 10 + - - 73 AS col2
----
6287

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + 11 * - COUNT ( * ) * - 6 * + 94 + - - 10 + - - 73 AS col2
----
6287

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT ALL NULLIF ( - 22, 79 / CAST( NULL AS SIGNED ) + - + 64 ) AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-8039
SELECT ALL NULLIF ( - 22, 79 / CAST ( NULL AS INTEGER ) + - + 64 ) AS col2
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT DISTINCT 33 * + 66 + - COUNT( * ) AS col0, 10 * + 60 * - 62
----
2177
-37200

skipif mysql # not compatible
query II rowsort label-8040
SELECT DISTINCT 33 * + 66 + - COUNT ( * ) AS col0, 10 * + 60 * - 62
----
2177
-37200

query I rowsort
SELECT DISTINCT - 52 + + 44 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT COUNT( DISTINCT ( - - 60 ) )
----
1

skipif mysql # not compatible
query I rowsort label-8042
SELECT COUNT ( DISTINCT ( - - 60 ) )
----
1

query I rowsort
SELECT ALL + CASE + 75 WHEN - 39 THEN 66 END + - 20 + - + ( + - 28 ) * 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - COUNT( * ) + + 10
----
9

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - COUNT ( * ) + + 10
----
9

query I rowsort
SELECT - 34 col2
----
-34

query I rowsort
SELECT - 74 + - 40 + NULLIF ( + 17, - - 53 )
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8047
SELECT - 32 * + CAST( - 18 AS SIGNED ) * + 89
----
51264

skipif mysql # not compatible
query I rowsort label-8047
SELECT - 32 * + CAST ( - 18 AS INTEGER ) * + 89
----
51264

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT - 50 + + 99 + - NULLIF ( 96, + 50 * + - COUNT( * ) * - 87 + - MIN( + + 28 ) ) * - 49 AS col1
----
4753

skipif mysql # not compatible
query I rowsort label-8048
SELECT - 50 + + 99 + - NULLIF ( 96, + 50 * + - COUNT ( * ) * - 87 + - MIN ( + + 28 ) ) * - 49 AS col1
----
4753

query I rowsort
SELECT - NULLIF ( - 10, + 27 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT DISTINCT + + 49 DIV 38
----
1

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT + + 49 / 38
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL - 89 - MIN( - - 29 ) * - - COUNT( * ) * + 97 + + 72 AS col2
----
-2830

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL - 89 - MIN ( - - 29 ) * - - COUNT ( * ) * + 97 + + 72 AS col2
----
-2830

onlyif mysql # DIV for integer division: 
query I rowsort label-8052
SELECT ALL - 31 DIV - 25 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL - 31 / - 25 AS col1
----
1

query I rowsort
SELECT - 7 * + 25 AS col1
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT CAST( + AVG ( ALL - - 38 ) AS SIGNED ) * - 65
----
-2470

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT CAST ( + AVG ( ALL - - 38 ) AS INTEGER ) * - 65
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + ( - COUNT( * ) ) + - 29 * + COALESCE ( - + 47, + 6 * 75 - + 97 )
----
1362

skipif mysql # not compatible
query I rowsort label-8055
SELECT + ( - COUNT ( * ) ) + - 29 * + COALESCE ( - + 47, + 6 * 75 - + 97 )
----
1362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8056
SELECT - ( + MAX( CAST( NULL AS SIGNED ) ) ) / + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8056
SELECT - ( + MAX ( CAST ( NULL AS INTEGER ) ) ) / + 64 AS col0
----
NULL

query I rowsort
SELECT 96 * + - 9 col0
----
-864

query I rowsort
SELECT ALL - - 40
----
40

query II rowsort
SELECT + 86 AS col0, - 65 - 32 + + COALESCE ( 77, - 38 * + 56 )
----
86
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8060
SELECT - CAST( NULL AS SIGNED ) * 43 - 25 + + ( + 90 ) * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT - CAST ( NULL AS INTEGER ) * 43 - 25 + + ( + 90 ) * COUNT ( * )
----
NULL

query I rowsort
SELECT 19 * 29 * - 22
----
-12122

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8062
SELECT + ( - CAST( COUNT( * ) AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8062
SELECT + ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT + + 2 * - 47
----
-94

query I rowsort
SELECT ALL - NULLIF ( 13, - + 26 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT - - MAX( - 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT - - MAX ( - 34 )
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT NULLIF ( + 37, + COUNT( - 39 ) ) + - 91 AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT NULLIF ( + 37, + COUNT ( - 39 ) ) + - 91 AS col2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8067
SELECT ALL - CAST( + 24 AS SIGNED )
----
-24

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL - CAST ( + 24 AS INTEGER )
----
-24

query I rowsort
SELECT + + 30 AS col1
----
30

query I rowsort
SELECT + - 89 AS col1
----
-89

query I rowsort
SELECT ALL 42 + 59 AS col2
----
101

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT 49, COUNT( * ) + + - 16 * 81 AS col1
----
49
-1295

skipif mysql # not compatible
query II rowsort label-8071
SELECT 49, COUNT ( * ) + + - 16 * 81 AS col1
----
49
-1295

query I rowsort
SELECT + 47 col0
----
47

query I rowsort
SELECT DISTINCT 82 + + 7
----
89

query I rowsort
SELECT ALL 58 * - 59 * + 28
----
-95816

query I rowsort
SELECT ALL 17 + - 10 AS col0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT + 30 * COUNT( * ) - - - 33 col0
----
-3

skipif mysql # not compatible
query I rowsort label-8076
SELECT + 30 * COUNT ( * ) - - - 33 col0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8077
SELECT 89 DIV - 32, + 32 AS col2
----
-2
32

skipif mysql # not compatible
query II rowsort label-8077
SELECT 89 / - 32, + 32 AS col2
----
-2
32

query I rowsort
SELECT ALL 81 + - 16
----
65

onlyif mysql # aggregate syntax: 
query III rowsort label-8079
SELECT 87 AS col1, 64 col1, - ( - COUNT( * ) ) col2
----
87
64
1

skipif mysql # not compatible
query III rowsort label-8079
SELECT 87 AS col1, 64 col1, - ( - COUNT ( * ) ) col2
----
87
64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT ALL - COALESCE ( - - COUNT( * ), + 27 ) + 21 * + - 63 AS col1
----
-1324

skipif mysql # not compatible
query I rowsort label-8080
SELECT ALL - COALESCE ( - - COUNT ( * ), + 27 ) + 21 * + - 63 AS col1
----
-1324

query I rowsort
SELECT 85 * - + 47
----
-3995

query I rowsort
SELECT 24 * - 41 * ( + + 28 ) col1
----
-27552

query I rowsort
SELECT 73 col1
----
73

query I rowsort
SELECT ALL 80 col1
----
80

query I rowsort
SELECT DISTINCT 86 AS col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT 50 * COUNT( * ) AS col0
----
50

skipif mysql # not compatible
query I rowsort label-8086
SELECT 50 * COUNT ( * ) AS col0
----
50

query I rowsort
SELECT DISTINCT 39 AS col0
----
39

query II rowsort
SELECT ALL 43 AS col1, + 18 - - 68 + - + 21 + + - 55 col2
----
43
10

onlyif mysql # aggregate syntax: 
query II rowsort label-8089
SELECT DISTINCT + 98 AS col0, COUNT( * ) - + - 8 * + 63
----
98
505

skipif mysql # not compatible
query II rowsort label-8089
SELECT DISTINCT + 98 AS col0, COUNT ( * ) - + - 8 * + 63
----
98
505

query I rowsort
SELECT - + 19 col2
----
-19

query I rowsort
SELECT + 20 AS col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT - 67 - + NULLIF ( + 39, - 91 * - - 42 * - ( COUNT( * ) ) - COUNT( * ) - - COUNT( * ) + 40 + + 91 ) + ( 25 ) * + COALESCE ( - 99, - - 77, ( - 40 ) )
----
-2581

skipif mysql # not compatible
query I rowsort label-8092
SELECT - 67 - + NULLIF ( + 39, - 91 * - - 42 * - ( COUNT ( * ) ) - COUNT ( * ) - - COUNT ( * ) + 40 + + 91 ) + ( 25 ) * + COALESCE ( - 99, - - 77, ( - 40 ) )
----
-2581

query I rowsort
SELECT 65 * - - 21 - 82
----
1283

query I rowsort
SELECT - 41 * - 58 AS col1
----
2378

query II rowsort
SELECT - + 39 col1, + 78 AS col2
----
-39
78

query I rowsort
SELECT - 20 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT 42 + - COUNT( * ) AS col2
----
41

skipif mysql # not compatible
query I rowsort label-8097
SELECT 42 + - COUNT ( * ) AS col2
----
41

query I rowsort
SELECT - ( + + 59 ) AS col1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT ALL - COUNT( * ) DIV + + 60 + - 13 AS col2
----
-13

skipif mysql # not compatible
query I rowsort label-8099
SELECT ALL - COUNT ( * ) / + + 60 + - 13 AS col2
----
-13

query I rowsort
SELECT DISTINCT - + 37 + - - 94 AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + COUNT( + 78 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8101
SELECT + COUNT ( + 78 ) AS col0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT 11 - - + 29 + + - 36 + + 32 + + 33 + + CAST( NULL AS SIGNED ) * + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT 11 - - + 29 + + - 36 + + 32 + + 33 + + CAST ( NULL AS INTEGER ) * + 13
----
NULL

query I rowsort
SELECT ALL - 81 + - 46 * 2 AS col1
----
-173

query I rowsort
SELECT + 49 col2
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8105
SELECT + 91 * + CAST( NULL AS SIGNED ) + + - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8105
SELECT + 91 * + CAST ( NULL AS INTEGER ) + + - 38
----
NULL

query II rowsort
SELECT - 16 AS col0, - 89
----
-16
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT 3 DIV - + 44
----
0

skipif mysql # not compatible
query I rowsort label-8107
SELECT 3 / - + 44
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8108
SELECT 90 + + ( 88 ) + 72 AS col0, 51 * + - 51 - + COUNT( * )
----
250
-2602

skipif mysql # not compatible
query II rowsort label-8108
SELECT 90 + + ( 88 ) + 72 AS col0, 51 * + - 51 - + COUNT ( * )
----
250
-2602

onlyif mysql # aggregate syntax: 
query I rowsort label-8109
SELECT COUNT( + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-8109
SELECT COUNT ( + 71 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT ALL NULLIF ( COUNT( * ), COUNT( ALL + + 53 ) + + - COUNT( DISTINCT + 39 ) * - 89 ) + - 9 AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL NULLIF ( COUNT ( * ), COUNT ( ALL + + 53 ) + + - COUNT ( DISTINCT + 39 ) * - 89 ) + - 9 AS col2
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT MAX( DISTINCT + 80 ) + SUM( DISTINCT 80 )
----
160

skipif mysql # not compatible
query I rowsort label-8111
SELECT MAX ( DISTINCT + 80 ) + SUM ( DISTINCT 80 )
----
160

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8112
SELECT 33 DIV - 30 - 95 + + + 74 * 69 AS col1, 8 * - COUNT( * ) + + 22 col0
----
5010
14

skipif mysql # not compatible
query II rowsort label-8112
SELECT 33 / - 30 - 95 + + + 74 * 69 AS col1, 8 * - COUNT ( * ) + + 22 col0
----
5010
14

query I rowsort
SELECT DISTINCT - 24 * + 20
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL COUNT( * ) + + ( + 77 ) + - 45 AS col0
----
33

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL COUNT ( * ) + + ( + 77 ) + - 45 AS col0
----
33

query I rowsort
SELECT ALL - NULLIF ( + - 37, 51 )
----
37

query I rowsort
SELECT ALL - 6 * - 1
----
6

query I rowsort
SELECT 34 col2
----
34

query I rowsort
SELECT + 19 AS col0
----
19

query I rowsort
SELECT 24 + 94
----
118

query I rowsort
SELECT 95 * - 4
----
-380

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8121
SELECT ALL 68 DIV + MIN( - 47 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8121
SELECT ALL 68 / + MIN ( - 47 ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT + MIN( 66 ) AS col2
----
66

skipif mysql # not compatible
query I rowsort label-8122
SELECT + MIN ( 66 ) AS col2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - MIN( NULLIF ( - 66, + 13 ) ) * 69 + - 81 col1
----
4473

skipif mysql # not compatible
query I rowsort label-8123
SELECT - MIN ( NULLIF ( - 66, + 13 ) ) * 69 + - 81 col1
----
4473

query I rowsort
SELECT DISTINCT ( - ( 89 ) ) - 37
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-8125
SELECT ALL 21 * - MAX( + 17 ) col2, ( + 28 ) AS col0
----
-357
28

skipif mysql # not compatible
query II rowsort label-8125
SELECT ALL 21 * - MAX ( + 17 ) col2, ( + 28 ) AS col0
----
-357
28

query I rowsort
SELECT ALL - 62 * 7 AS col2
----
-434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL CAST( - - 7 AS SIGNED ) - 98
----
-91

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL CAST ( - - 7 AS INTEGER ) - 98
----
-91

query I rowsort
SELECT DISTINCT 67 * + 37 * - + 21 col2
----
-52059

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8129
SELECT COUNT( * ) DIV + + 38 * + + 77 col0
----
0

skipif mysql # not compatible
query I rowsort label-8129
SELECT COUNT ( * ) / + + 38 * + + 77 col0
----
0

query I rowsort
SELECT - 98 + - - 3
----
-95

query I rowsort
SELECT ALL + 44 AS col2
----
44

query I rowsort
SELECT DISTINCT 70 col2
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8133
SELECT + 55 DIV + 57 * + - 62 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8133
SELECT + 55 / + 57 * + - 62 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8134
SELECT - - 43 DIV + 16 + 70 * - 85 - 72
----
-6020

skipif mysql # not compatible
query I rowsort label-8134
SELECT - - 43 / + 16 + 70 * - 85 - 72
----
-6020

onlyif mysql # DIV for integer division: 
query II rowsort label-8135
SELECT ALL - 37 DIV 7 AS col2, 88
----
-5
88

skipif mysql # not compatible
query II rowsort label-8135
SELECT ALL - 37 / 7 AS col2, 88
----
-5
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT + - COUNT( * ) + 96 + + - 68 AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8136
SELECT + - COUNT ( * ) + 96 + + - 68 AS col1
----
27

query I rowsort
SELECT - - 52 + + + 20 * - 4 AS col0
----
-28

query I rowsort
SELECT ALL ( 55 ) col2
----
55

query I rowsort
SELECT ALL 61 + - 79 * + ( 63 ) * - 16
----
79693

query I rowsort
SELECT ALL - + 77 * - + 92
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-8141
SELECT - 14 + 20 * - COUNT( * )
----
-34

skipif mysql # not compatible
query I rowsort label-8141
SELECT - 14 + 20 * - COUNT ( * )
----
-34

query I rowsort
SELECT DISTINCT 44 col1
----
44

query I rowsort
SELECT ALL + - 64 + - 61 AS col0
----
-125

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT - ( COUNT( * ) ) + + - NULLIF ( + + 49, + 48 / 91 ) * - + 58 * 65 + + 69 AS col0
----
184798

skipif mysql # not compatible
query I rowsort label-8144
SELECT - ( COUNT ( * ) ) + + - NULLIF ( + + 49, + 48 / 91 ) * - + 58 * 65 + + 69 AS col0
----
184798

onlyif mysql # aggregate syntax: 
query II rowsort label-8145
SELECT ALL 2 * + MIN( - 12 ) col2, 32 col1
----
-24
32

skipif mysql # not compatible
query II rowsort label-8145
SELECT ALL 2 * + MIN ( - 12 ) col2, 32 col1
----
-24
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + + 30 * - COUNT( * ) + + + 98
----
68

skipif mysql # not compatible
query I rowsort label-8146
SELECT + + 30 * - COUNT ( * ) + + + 98
----
68

query I rowsort
SELECT DISTINCT - - 35 * - 89 + 55 + 29 AS col0
----
-3031

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8148
SELECT - + 81 DIV - 65 * COUNT( * ) + - 28 + + + MAX( 3 ) * - 46 - - 96 AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-8148
SELECT - + 81 / - 65 * COUNT ( * ) + - 28 + + + MAX ( 3 ) * - 46 - - 96 AS col2
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT ALL + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8149
SELECT ALL + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL + CAST( - COALESCE ( - 55, 7 + - 96 ) AS SIGNED ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL + CAST ( - COALESCE ( - 55, 7 + - 96 ) AS INTEGER ) AS col0
----
55

query I rowsort
SELECT NULLIF ( - + 11, 66 + + 26 / - + 80 / + 70 )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT - 93 * COUNT( * ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-8152
SELECT - 93 * COUNT ( * ) AS col2
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8153
SELECT ALL + MIN( - 0 ) DIV + + 34, ( - 91 ) AS col1
----
0
-91

skipif mysql # not compatible
query II rowsort label-8153
SELECT ALL + MIN ( - 0 ) / + + 34, ( - 91 ) AS col1
----
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - 69 * COUNT( * ) * + - 97 AS col0
----
6693

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 69 * COUNT ( * ) * + - 97 AS col0
----
6693

query II rowsort
SELECT + 11 col1, + ( 68 ) col0
----
11
68

query I rowsort
SELECT ALL + COALESCE ( - + 84, - + 86 ) * - 4
----
336

query I rowsort
SELECT ALL - 75 * + - 81 col1
----
6075

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT + 39 * 97 DIV + 67 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-8158
SELECT + 39 * 97 / + 67 AS col2
----
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8159
SELECT NULLIF ( - COALESCE ( + COUNT( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0
----
-1
-148

skipif mysql # not compatible
query II rowsort label-8159
SELECT NULLIF ( - COALESCE ( + COUNT ( * ), - 29 + + 96 * - 76 * - 18 ), 14 + + 23 ) AS col0, - 97 - 51 AS col0
----
-1
-148

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8160
SELECT - 83 * - 34 - + CAST( NULL AS SIGNED ) AS col2, 62 * - COUNT( * ) * - - COUNT( * ) col1
----
NULL
-62

skipif mysql # not compatible
query II rowsort label-8160
SELECT - 83 * - 34 - + CAST ( NULL AS INTEGER ) AS col2, 62 * - COUNT ( * ) * - - COUNT ( * ) col1
----
NULL
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT ALL + CAST( + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-8161
SELECT ALL + CAST ( + 8 AS INTEGER )
----
8

query I rowsort
SELECT DISTINCT + 88 AS col1
----
88

query I rowsort
SELECT NULLIF ( 87, + - NULLIF ( + 54, 51 ) ) col0
----
87

query I rowsort
SELECT ALL - CASE ( - 29 ) WHEN + + 78 THEN - - 76 END * + 75 col2
----
NULL

query I rowsort
SELECT - 3 * 28 * + - 17 AS col2
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT DISTINCT + MAX( DISTINCT + + 88 ) AS col1
----
88

skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT + MAX ( DISTINCT + + 88 ) AS col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL + CAST( - 77 AS SIGNED )
----
-77

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + CAST ( - 77 AS INTEGER )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT COUNT( - 26 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8168
SELECT COUNT ( - 26 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT - 67 * - ( - 29 ) AS col2, + COUNT( * )
----
-1943
1

skipif mysql # not compatible
query II rowsort label-8169
SELECT - 67 * - ( - 29 ) AS col2, + COUNT ( * )
----
-1943
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8170
SELECT ALL - COUNT( * ) AS col2, - 68
----
-1
-68

skipif mysql # not compatible
query II rowsort label-8170
SELECT ALL - COUNT ( * ) AS col2, - 68
----
-1
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT ALL + 66 * - NULLIF ( + 34, - 29 + 98 / COUNT( * ) ) + + 5
----
-2239

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + 66 * - NULLIF ( + 34, - 29 + 98 / COUNT ( * ) ) + + 5
----
-2239

query I rowsort
SELECT - - 3 + + - 85 AS col1
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8173
SELECT - CASE + NULLIF ( - ( - 37 ), - 29 + - 56 + + - COUNT( * ) * - + 46 * + - 42 ) WHEN - 41 THEN - 8 WHEN 6 + NULLIF ( COALESCE ( + COUNT( * ), - 86 + - + NULLIF ( - CAST( NULL AS SIGNED ), - + 99 * COALESCE ( MIN( ALL - 43 ), + + 31 / + 55 ) * - 66 + - COUNT( * ) + + + CASE 29 WHEN - 15 * - + 60 + + 11 THEN + - COUNT( * ) ELSE NULL END - + 12 - - 68 ) * CAST( + 33 AS SIGNED ) ), ( + COUNT( * ) ) * - 42 ) + - 6 THEN NULL WHEN 23 THEN NULL END * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8173
SELECT - CASE + NULLIF ( - ( - 37 ), - 29 + - 56 + + - COUNT ( * ) * - + 46 * + - 42 ) WHEN - 41 THEN - 8 WHEN 6 + NULLIF ( COALESCE ( + COUNT ( * ), - 86 + - + NULLIF ( - CAST ( NULL AS INTEGER ), - + 99 * COALESCE ( MIN ( ALL - 43 ), + + 31 / + 55 ) * - 66 + - COUNT ( * ) + + + CASE 29 WHEN - 15 * - + 60 + + 11 THEN + - COUNT ( * ) ELSE NULL END - + 12 - - 68 ) * CAST ( + 33 AS INTEGER ) ), ( + COUNT ( * ) ) * - 42 ) + - 6 THEN NULL WHEN 23 THEN NULL END * 48
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8174
SELECT + 32 + - 18 DIV - + COUNT( * ) AS col0, - 76 AS col0
----
50
-76

skipif mysql # not compatible
query II rowsort label-8174
SELECT + 32 + - 18 / - + COUNT ( * ) AS col0, - 76 AS col0
----
50
-76

query I rowsort
SELECT DISTINCT - 59 + - 55 AS col1
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT ALL + COUNT( * ) + - + 67
----
-66

skipif mysql # not compatible
query I rowsort label-8176
SELECT ALL + COUNT ( * ) + - + 67
----
-66

query II rowsort
SELECT + 55 AS col0, + ( - 32 )
----
55
-32

query I rowsort
SELECT ALL + 26 + 65 AS col0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8179
SELECT DISTINCT - COUNT( * ) + - 54 * - + 9 AS col1, 23 + COUNT( * ) + + 64
----
485
88

skipif mysql # not compatible
query II rowsort label-8179
SELECT DISTINCT - COUNT ( * ) + - 54 * - + 9 AS col1, 23 + COUNT ( * ) + + 64
----
485
88

query I rowsort
SELECT ALL 73 * - + 65 AS col1
----
-4745

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8181
SELECT + NULLIF ( + 95, + + 24 / SUM( - - 70 ) * + CAST( NULL AS SIGNED ) + + 14 - - - 58 ) col1
----
95

skipif mysql # not compatible
query I rowsort label-8181
SELECT + NULLIF ( + 95, + + 24 / SUM ( - - 70 ) * + CAST ( NULL AS INTEGER ) + + 14 - - - 58 ) col1
----
95

query I rowsort
SELECT - - CASE 98 WHEN 68 THEN + 28 ELSE - + 84 END
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT - COUNT( * ), 84 col1
----
-1
84

skipif mysql # not compatible
query II rowsort label-8183
SELECT - COUNT ( * ), 84 col1
----
-1
84

query I rowsort
SELECT ALL 50 AS col0
----
50

query I rowsort
SELECT - - 71
----
71

query I rowsort
SELECT DISTINCT + 15
----
15

query I rowsort
SELECT + 92 + + 50 AS col2
----
142

query I rowsort
SELECT ALL 31 + + + 8 AS col2
----
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT + ( - COUNT( * ) ) - COALESCE ( - COUNT( * ), ( + 88 ) ) DIV + - 94
----
-1

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + ( - COUNT ( * ) ) - COALESCE ( - COUNT ( * ), ( + 88 ) ) / + - 94
----
-1

query I rowsort
SELECT DISTINCT - 60 * - - 74
----
-4440

query II rowsort
SELECT ALL + ( + - 4 ), + 77 AS col2
----
-4
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8192
SELECT - ( 45 ) DIV + 77 + 82 * + 57 - 54 - + 50
----
4570

skipif mysql # not compatible
query I rowsort label-8192
SELECT - ( 45 ) / + 77 + 82 * + 57 - 54 - + 50
----
4570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8193
SELECT ALL 58 * - + 67 AS col2, 8 * + 70 * - - 97 * + 9 + + 2 - - CAST( NULL AS SIGNED ) - - - COUNT( * ) + 1 * - - COUNT( * )
----
-3886
NULL

skipif mysql # not compatible
query II rowsort label-8193
SELECT ALL 58 * - + 67 AS col2, 8 * + 70 * - - 97 * + 9 + + 2 - - CAST ( NULL AS INTEGER ) - - - COUNT ( * ) + 1 * - - COUNT ( * )
----
-3886
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8194
SELECT - 70 + - - 30 AS col1, 11 * - 77 - + 59 * COUNT( * )
----
-40
-906

skipif mysql # not compatible
query II rowsort label-8194
SELECT - 70 + - - 30 AS col1, 11 * - 77 - + 59 * COUNT ( * )
----
-40
-906

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT + ( ( CAST( - MIN( CAST( 5 AS SIGNED ) ) AS SIGNED ) ) ) AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8195
SELECT + ( ( CAST ( - MIN ( CAST ( 5 AS INTEGER ) ) AS INTEGER ) ) ) AS col0
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT 43 * - - 48 * - 51 * + COUNT( * ) + + 1 * - CAST( NULL AS SIGNED ) + 41 + - AVG ( ALL COALESCE ( - 84, + - 32, - 79 * + 18 * 23 ) ) * + + 46 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT 43 * - - 48 * - 51 * + COUNT ( * ) + + 1 * - CAST ( NULL AS INTEGER ) + 41 + - AVG ( ALL COALESCE ( - 84, + - 32, - 79 * + 18 * 23 ) ) * + + 46 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL + MAX( - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + MAX ( - 42 )
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8198
SELECT - 39 DIV - COUNT( DISTINCT + 7 ) AS col2
----
39

skipif mysql # not compatible
query I rowsort label-8198
SELECT - 39 / - COUNT ( DISTINCT + 7 ) AS col2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8199
SELECT ALL + MIN( - 29 ) AS col1, COUNT( * ) AS col0
----
-29
1

skipif mysql # not compatible
query II rowsort label-8199
SELECT ALL + MIN ( - 29 ) AS col1, COUNT ( * ) AS col0
----
-29
1

query I rowsort
SELECT + 10 + + + 75
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT - ( - + MAX( + 28 ) ) * + 82 * + 36 * ( + - ( 17 ) ) * 95 + + 45 + + 84
----
-133489311

skipif mysql # not compatible
query I rowsort label-8201
SELECT - ( - + MAX ( + 28 ) ) * + 82 * + 36 * ( + - ( 17 ) ) * 95 + + 45 + + 84
----
-133489311

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL + COUNT( + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL + COUNT ( + 61 )
----
1

query I rowsort
SELECT DISTINCT + 62 col1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8204
SELECT DISTINCT + 98 DIV + COUNT( DISTINCT - - CAST( - - 8 AS SIGNED ) )
----
98

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT + 98 / + COUNT ( DISTINCT - - CAST ( - - 8 AS INTEGER ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT DISTINCT + MAX( + 35 )
----
35

skipif mysql # not compatible
query I rowsort label-8205
SELECT DISTINCT + MAX ( + 35 )
----
35

query I rowsort
SELECT DISTINCT + 89 * COALESCE ( 22, + 99, - 54 ) AS col2
----
1958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8207
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8208
SELECT 49 + + 89 col0, + 0 * COALESCE ( - 48, + 44, + 73 * + ( 6 ) * CAST( + 73 AS SIGNED ) ) * 84 + + + 20 * - 31
----
138
-620

skipif mysql # not compatible
query II rowsort label-8208
SELECT 49 + + 89 col0, + 0 * COALESCE ( - 48, + 44, + 73 * + ( 6 ) * CAST ( + 73 AS INTEGER ) ) * 84 + + + 20 * - 31
----
138
-620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT CAST( NULL AS SIGNED ) / + NULLIF ( - 16, + + 56 ) * - MAX( ALL - 95 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8209
SELECT CAST ( NULL AS INTEGER ) / + NULLIF ( - 16, + + 56 ) * - MAX ( ALL - 95 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8210
SELECT SUM( + - COALESCE ( + 27, + 98 + + - 38 + + + 13, + 40 ) ) DIV + 81 * - COALESCE ( + 4, + 71 * - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-8210
SELECT SUM ( + - COALESCE ( + 27, + 98 + + - 38 + + + 13, + 40 ) ) / + 81 * - COALESCE ( + 4, + 71 * - 5 )
----
0

query II rowsort
SELECT ALL + + 98 + + - 28, 11 AS col0
----
70
11

query I rowsort
SELECT 17 * - 39
----
-663

query I rowsort
SELECT ALL - - 77
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8214
SELECT - 64 * + 36 + - 15 / + COUNT( * ) + + 54 * + 2 - + CAST( NULL AS SIGNED ) / 91 + + - 88 - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8214
SELECT - 64 * + 36 + - 15 / + COUNT ( * ) + + 54 * + 2 - + CAST ( NULL AS INTEGER ) / 91 + + - 88 - + COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8215
SELECT DISTINCT + 10 + COUNT( * ) * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + 10 + COUNT ( * ) * + COUNT ( * )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT - COUNT( ALL - 35 )
----
-1

skipif mysql # not compatible
query I rowsort label-8216
SELECT - COUNT ( ALL - 35 )
----
-1

query I rowsort
SELECT ALL - 55 + + - 27
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8218
SELECT ALL 18 + + - ( - - COUNT( * ) ) + - 66 + + - 72 + - 63
----
-184

skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL 18 + + - ( - - COUNT ( * ) ) + - 66 + + - 72 + - 63
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT - - COUNT( ALL + + 54 )
----
1

skipif mysql # not compatible
query I rowsort label-8219
SELECT - - COUNT ( ALL + + 54 )
----
1

query II rowsort
SELECT ALL - COALESCE ( + + 61, - - 36, + 37 ) col0, - 7 * - 84 col0
----
-61
588

query II rowsort
SELECT DISTINCT - - 31 + + 68 col0, 19 * + + 72
----
99
1368

onlyif mysql # aggregate syntax: 
query II rowsort label-8222
SELECT - COUNT( * ) + 95 AS col0, COUNT( * ) AS col1
----
94
1

skipif mysql # not compatible
query II rowsort label-8222
SELECT - COUNT ( * ) + 95 AS col0, COUNT ( * ) AS col1
----
94
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT ALL - - CAST( - 66 AS SIGNED ) + + COUNT( * ) AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-8223
SELECT ALL - - CAST ( - 66 AS INTEGER ) + + COUNT ( * ) AS col0
----
-65

query I rowsort
SELECT 50 + + 15 * - 37
----
-505

query I rowsort
SELECT 96 + - 34
----
62

query I rowsort
SELECT DISTINCT - 3 * - ( ( + 74 ) ) + + 24
----
246

query I rowsort
SELECT ALL - + 89 - - ( - 80 ) AS col1
----
-169

query I rowsort
SELECT ALL 20 * - - 66 col0
----
1320

query I rowsort
SELECT - 18 col0
----
-18

query I rowsort
SELECT COALESCE ( - 76, - + 11, 25 ) + + 52 + 69 + + 40 * + 37
----
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT + + COUNT( DISTINCT - 26 ) * 29 * - 83 + COUNT( * ) AS col2
----
-2406

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT + + COUNT ( DISTINCT - 26 ) * 29 * - 83 + COUNT ( * ) AS col2
----
-2406

onlyif mysql # aggregate syntax: 
query II rowsort label-8232
SELECT ALL + ( + 55 ) AS col0, COUNT( * ) AS col0
----
55
1

skipif mysql # not compatible
query II rowsort label-8232
SELECT ALL + ( + 55 ) AS col0, COUNT ( * ) AS col0
----
55
1

query I rowsort
SELECT 65 + - ( + 64 ) AS col2
----
1

query I rowsort
SELECT + 17 * 73
----
1241

query II rowsort
SELECT 45 AS col1, + 82
----
45
82

query I rowsort
SELECT ALL 52 AS col0
----
52

query I rowsort
SELECT 50 col1
----
50

query I rowsort
SELECT 34 * - 95
----
-3230

query I rowsort
SELECT DISTINCT - 72 col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-8240
SELECT ALL 46 DIV 51
----
0

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL 46 / 51
----
0

query I rowsort
SELECT DISTINCT - 47 AS col0
----
-47

query I rowsort
SELECT ALL - 50
----
-50

query I rowsort
SELECT ALL - 95 col2
----
-95

query I rowsort
SELECT ALL + 12 * - + 46
----
-552

query I rowsort
SELECT 14 + + CASE + 14 WHEN + NULLIF ( 61, 98 * - NULLIF ( ( + 30 ), - ( - + 41 ) ) ) + + 59 THEN - 8 ELSE - ( + 65 ) + - 97 + - ( - 74 ) END + + 92 AS col0
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8246
SELECT ( 53 ) - - CAST( NULL AS DECIMAL ) + COALESCE ( + + 24, - CAST( NULL AS SIGNED ) * 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8246
SELECT ( 53 ) - - CAST ( NULL AS REAL ) + COALESCE ( + + 24, - CAST ( NULL AS INTEGER ) * 62 )
----
NULL

query II rowsort
SELECT + 85 AS col1, + 82
----
85
82

query I rowsort
SELECT 13 * + 10 - - - 96 + ( 18 ) AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL + 86 + + - 42 + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL + 86 + + - 42 + COUNT ( * )
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8250
SELECT ALL CAST( NULL AS SIGNED ) + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL CAST ( NULL AS INTEGER ) + 32
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8251
SELECT + COUNT( * ) AS col1, - MAX( ALL CAST( NULL AS SIGNED ) ) * - + 0 * + - 72 + + 84 + 71 + 0 * - 64
----
1
NULL

skipif mysql # not compatible
query II rowsort label-8251
SELECT + COUNT ( * ) AS col1, - MAX ( ALL CAST ( NULL AS INTEGER ) ) * - + 0 * + - 72 + + 84 + 71 + 0 * - 64
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT DISTINCT + MAX( DISTINCT - ( 94 ) ) + + 63 + + 45 * 56
----
2489

skipif mysql # not compatible
query I rowsort label-8252
SELECT DISTINCT + MAX ( DISTINCT - ( 94 ) ) + + 63 + + 45 * 56
----
2489

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT ALL + + 58 + - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL + + 58 + - CAST ( NULL AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT + ( + + 52 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT ALL - CAST( + 45 AS SIGNED ) col0
----
-45

skipif mysql # not compatible
query I rowsort label-8255
SELECT ALL - CAST ( + 45 AS INTEGER ) col0
----
-45

query I rowsort
SELECT ALL - 26 + 63
----
37

onlyif mysql # aggregate syntax: 
query II rowsort label-8257
SELECT 55 - + 58 + - NULLIF ( + + NULLIF ( + 71, 85 ), - 98 * 77 - - 41 + + - 6 * - 19 ) + 82 * - - COUNT( * ), - 50 AS col2
----
8
-50

skipif mysql # not compatible
query II rowsort label-8257
SELECT 55 - + 58 + - NULLIF ( + + NULLIF ( + 71, 85 ), - 98 * 77 - - 41 + + - 6 * - 19 ) + 82 * - - COUNT ( * ), - 50 AS col2
----
8
-50

query I rowsort
SELECT ALL - 9 * + 72 + - 51
----
-699

query I rowsort
SELECT - - 32 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8260
SELECT 34 * 83 DIV - - COUNT( * ) + + 45 * - + CAST( - + 57 AS SIGNED )
----
5387

skipif mysql # not compatible
query I rowsort label-8260
SELECT 34 * 83 / - - COUNT ( * ) + + 45 * - + CAST ( - + 57 AS INTEGER )
----
5387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8261
SELECT - COUNT( * ) * + + 26 * - 79 + - + 62 - 10 + - - CAST( + COUNT( * ) AS SIGNED ) - - - 5 AS col1
----
1978

skipif mysql # not compatible
query I rowsort label-8261
SELECT - COUNT ( * ) * + + 26 * - 79 + - + 62 - 10 + - - CAST ( + COUNT ( * ) AS INTEGER ) - - - 5 AS col1
----
1978

query I rowsort
SELECT ALL + ( - 81 ) * - 45
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - + 86 - - + COALESCE ( + ( - + 94 ), 87 ) * + COUNT( * ) - - 0 + - 74 AS col1
----
-254

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - + 86 - - + COALESCE ( + ( - + 94 ), 87 ) * + COUNT ( * ) - - 0 + - 74 AS col1
----
-254

query I rowsort
SELECT - ( - ( - 8 ) )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT 3 * - COUNT( ALL + 76 ) + + + 54
----
51

skipif mysql # not compatible
query I rowsort label-8265
SELECT 3 * - COUNT ( ALL + 76 ) + + + 54
----
51

query I rowsort
SELECT ALL + 13 * + + ( ( + 56 ) ) AS col0
----
728

query I rowsort
SELECT - - 34 AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT - COUNT( * ) + + 39 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8268
SELECT - COUNT ( * ) + + 39 AS col1
----
38

query I rowsort
SELECT 89 * - 63 * - 71 * + 2 col1
----
796194

onlyif mysql # aggregate syntax: 
query II rowsort label-8270
SELECT - 94, COUNT( * ) * + 85 * - - 83 AS col1
----
-94
7055

skipif mysql # not compatible
query II rowsort label-8270
SELECT - 94, COUNT ( * ) * + 85 * - - 83 AS col1
----
-94
7055

onlyif mysql # aggregate syntax: 
query I rowsort label-8271
SELECT DISTINCT SUM( ALL NULLIF ( - - 95, + + 84 ) )
----
95

skipif mysql # not compatible
query I rowsort label-8271
SELECT DISTINCT SUM ( ALL NULLIF ( - - 95, + + 84 ) )
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8272
SELECT 5 + - COUNT( * ) + - + 89 DIV 88 AS col0, - COUNT( * )
----
3
-1

skipif mysql # not compatible
query II rowsort label-8272
SELECT 5 + - COUNT ( * ) + - + 89 / 88 AS col0, - COUNT ( * )
----
3
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT - MIN( + + 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-8273
SELECT - MIN ( + + 82 )
----
-82

query I rowsort
SELECT ALL 5 * + 83 AS col0
----
415

onlyif mysql # aggregate syntax: 
query II rowsort label-8275
SELECT ALL COUNT( * ) AS col2, + ( - 18 ) + - + ( 24 ) + 58
----
1
16

skipif mysql # not compatible
query II rowsort label-8275
SELECT ALL COUNT ( * ) AS col2, + ( - 18 ) + - + ( 24 ) + 58
----
1
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8276
SELECT DISTINCT MIN( DISTINCT + 56 ) AS col2, NULLIF ( - 27, + - 70 )
----
56
-27

skipif mysql # not compatible
query II rowsort label-8276
SELECT DISTINCT MIN ( DISTINCT + 56 ) AS col2, NULLIF ( - 27, + - 70 )
----
56
-27

query I rowsort
SELECT 24 + - COALESCE ( + - 73, ( - + 89 ) + + 46 )
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8278
SELECT DISTINCT SUM( + - 30 ) AS col1, + 36 - + COUNT( * ) AS col0
----
-30
35

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT SUM ( + - 30 ) AS col1, + 36 - + COUNT ( * ) AS col0
----
-30
35

query I rowsort
SELECT ALL - COALESCE ( + + 55, + 91 - + + 18, - 52 + + 20 ) + + - 47
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8280
SELECT COUNT( * ) DIV - MIN( - + 7 ) + - 44 AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8280
SELECT COUNT ( * ) / - MIN ( - + 7 ) + - 44 AS col1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT 17 * + MIN( ALL 98 ) * + + COALESCE ( 4, + - 22 * + 20 ) + - 11 AS col0
----
6653

skipif mysql # not compatible
query I rowsort label-8281
SELECT 17 * + MIN ( ALL 98 ) * + + COALESCE ( 4, + - 22 * + 20 ) + - 11 AS col0
----
6653

query II rowsort
SELECT ALL + 1 col1, - 59 AS col0
----
1
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + COUNT( * ) + 80 * + + MIN( - 58 ) + + - 24
----
-4663

skipif mysql # not compatible
query I rowsort label-8283
SELECT + COUNT ( * ) + 80 * + + MIN ( - 58 ) + + - 24
----
-4663

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT + 70 * - 9 - - 66 + + 36 DIV - - 34
----
-563

skipif mysql # not compatible
query I rowsort label-8284
SELECT + 70 * - 9 - - 66 + + 36 / - - 34
----
-563

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8285
SELECT ALL - ( MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) ) * - - 21 * - 27 + + MIN( 5 ) + + + 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - ( MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) * - - 21 * - 27 + + MIN ( 5 ) + + + 2 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT + MIN( DISTINCT 42 )
----
42

skipif mysql # not compatible
query I rowsort label-8286
SELECT + MIN ( DISTINCT 42 )
----
42

query I rowsort
SELECT + - 77
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8288
SELECT ALL + + 16 AS col1, - CAST( COUNT( * ) AS SIGNED ) AS col0
----
16
-1

skipif mysql # not compatible
query II rowsort label-8288
SELECT ALL + + 16 AS col1, - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
16
-1

query I rowsort
SELECT + + 54 AS col1
----
54

query I rowsort
SELECT + - 57
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-8291
SELECT ALL + 90 AS col2, - MAX( DISTINCT 91 ) AS col1
----
90
-91

skipif mysql # not compatible
query II rowsort label-8291
SELECT ALL + 90 AS col2, - MAX ( DISTINCT 91 ) AS col1
----
90
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT + 5 * 90 + - COUNT( * ) + COUNT( * ) AS col2
----
450

skipif mysql # not compatible
query I rowsort label-8292
SELECT + 5 * 90 + - COUNT ( * ) + COUNT ( * ) AS col2
----
450

query I rowsort
SELECT + - 14 * 1 * - 57 AS col1
----
798

onlyif mysql # DIV for integer division: 
query I rowsort label-8294
SELECT ALL + COALESCE ( + 17, - 79 DIV + - 39 ) col0
----
17

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL + COALESCE ( + 17, - 79 / + - 39 ) col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + COUNT( + 97 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8295
SELECT + COUNT ( + 97 ) AS col1
----
1

query I rowsort
SELECT ALL - 33 - - + 83 + 11
----
61

query I rowsort
SELECT DISTINCT 23 * + 91
----
2093

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8298
SELECT + ( - - 36 ) * - + CASE 21 WHEN + 82 THEN COUNT( * ) - CAST( NULL AS SIGNED ) - - 88 + + 68 + + - 25 * - CASE 73 WHEN + 64 THEN NULL WHEN AVG ( ALL 24 ) THEN - - 92 END * CAST( 89 AS SIGNED ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT + ( - - 36 ) * - + CASE 21 WHEN + 82 THEN COUNT ( * ) - CAST ( NULL AS INTEGER ) - - 88 + + 68 + + - 25 * - CASE 73 WHEN + 64 THEN NULL WHEN AVG ( ALL 24 ) THEN - - 92 END * CAST ( 89 AS INTEGER ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 81 + 45 AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8300
SELECT ALL + CASE + MIN( + 94 ) WHEN + 20 * - - 49 * + + 40 THEN NULL WHEN + 31 * + 52 / COUNT( * ) THEN + 82 * + COALESCE ( CAST( NULL AS SIGNED ), - 35, + + COUNT( * ) ) * COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8300
SELECT ALL + CASE + MIN ( + 94 ) WHEN + 20 * - - 49 * + + 40 THEN NULL WHEN + 31 * + 52 / COUNT ( * ) THEN + 82 * + COALESCE ( CAST ( NULL AS INTEGER ), - 35, + + COUNT ( * ) ) * COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8301
SELECT + 38 DIV + + NULLIF ( 26, - 88 ) + - - COUNT( * ) AS col2
----
2

skipif mysql # not compatible
query I rowsort label-8301
SELECT + 38 / + + NULLIF ( 26, - 88 ) + - - COUNT ( * ) AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT - - 81 + COUNT( * ) - 25 AS col1
----
57

skipif mysql # not compatible
query I rowsort label-8302
SELECT - - 81 + COUNT ( * ) - 25 AS col1
----
57

query I rowsort
SELECT + ( - - 7 )
----
7

query I rowsort
SELECT - ( - 93 ) AS col1
----
93

query I rowsort
SELECT ALL - 84 * - 84
----
7056

query I rowsort
SELECT - 11 * - 46 * + 55
----
27830

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL CASE - COUNT( * ) WHEN - 13 THEN + 51 WHEN - - 25 THEN + 9 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL CASE - COUNT ( * ) WHEN - 13 THEN + 51 WHEN - - 25 THEN + 9 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT DISTINCT COUNT( * ) * - MAX( + 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT COUNT ( * ) * - MAX ( + 95 )
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8309
SELECT DISTINCT ( 54 ) AS col1, 16 + + CAST( - 73 AS SIGNED ) AS col0
----
54
-57

skipif mysql # not compatible
query II rowsort label-8309
SELECT DISTINCT ( 54 ) AS col1, 16 + + CAST ( - 73 AS INTEGER ) AS col0
----
54
-57

query I rowsort
SELECT DISTINCT - 30 + 21 * + 70 AS col2
----
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8311
SELECT DISTINCT CAST( + - 32 AS SIGNED ) AS col1
----
-32

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT CAST ( + - 32 AS INTEGER ) AS col1
----
-32

query I rowsort
SELECT - 51 * - 4 * + 50 col2
----
10200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT - 57 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT - 57 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT ( 65 ) AS col1
----
65

query I rowsort
SELECT + 27 + + + 5
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8316
SELECT DISTINCT COUNT( * ) DIV - 14 + - + 86
----
-86

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT COUNT ( * ) / - 14 + - + 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + MIN( + 45 )
----
45

skipif mysql # not compatible
query I rowsort label-8317
SELECT + MIN ( + 45 )
----
45

query I rowsort
SELECT DISTINCT + ( ( + 8 ) )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT 2 * COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT 2 * COUNT ( * )
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT DISTINCT 85 DIV ( + 30 ) - 45 + - 99 * + - 72 * 15
----
106877

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT 85 / ( + 30 ) - 45 + - 99 * + - 72 * 15
----
106877

query I rowsort
SELECT - 29 AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL + - NULLIF ( - + ( - 38 ), + + COUNT( * ) - 68 + + 77 ) AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL + - NULLIF ( - + ( - 38 ), + + COUNT ( * ) - 68 + + 77 ) AS col0
----
-38

query I rowsort
SELECT + 3 * + 36 - - 39 AS col1
----
147

query I rowsort
SELECT + + 68 + + 67
----
135

query I rowsort
SELECT ALL + - 86 AS col0
----
-86

query I rowsort
SELECT ALL + + 95 AS col2
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-8327
SELECT DISTINCT + ( + ( + - 68 ) ) AS col2, + 5 DIV 72, - COUNT( * ) col0
----
-68
0
-1

skipif mysql # not compatible
query III rowsort label-8327
SELECT DISTINCT + ( + ( + - 68 ) ) AS col2, + 5 / 72, - COUNT ( * ) col0
----
-68
0
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - - 91 * - 64 - SUM( DISTINCT - 0 ) AS col2
----
-5824

skipif mysql # not compatible
query I rowsort label-8328
SELECT - - 91 * - 64 - SUM ( DISTINCT - 0 ) AS col2
----
-5824

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8329
SELECT CASE + 64 WHEN + - 5 + - + 33 - 12 THEN + 82 WHEN CAST( NULL AS SIGNED ) THEN - COUNT( * ) + - 5 ELSE - 6 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-8329
SELECT CASE + 64 WHEN + - 5 + - + 33 - 12 THEN + 82 WHEN CAST ( NULL AS INTEGER ) THEN - COUNT ( * ) + - 5 ELSE - 6 END AS col1
----
-6

query I rowsort
SELECT - 27 * - 26 + + 29 - - 43
----
774

onlyif mysql # aggregate syntax: 
query I rowsort label-8331
SELECT - ( - CASE COUNT( * ) WHEN 49 * + 81 * + + 56 THEN 49 WHEN - COUNT( * ) THEN NULL WHEN - 30 * + 25 THEN COUNT( * ) * + - 13 / 14 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT - ( - CASE COUNT ( * ) WHEN 49 * + 81 * + + 56 THEN 49 WHEN - COUNT ( * ) THEN NULL WHEN - 30 * + 25 THEN COUNT ( * ) * + - 13 / 14 END ) AS col1
----
NULL

query I rowsort
SELECT + - 36 * 59 * 82 AS col0
----
-174168

query I rowsort
SELECT ALL 75 * + ( 71 )
----
5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT - CAST( 49 AS SIGNED )
----
-49

skipif mysql # not compatible
query I rowsort label-8334
SELECT - CAST ( 49 AS INTEGER )
----
-49

query I rowsort
SELECT ALL COALESCE ( 44, - + 42 ) col2
----
44

query I rowsort
SELECT ALL + 55 * 2 + 42
----
152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8337
SELECT NULLIF ( + CAST( COUNT( * ) AS SIGNED ), + 3 * AVG ( DISTINCT + 66 ) ) - + MAX( ( + ( + CAST( NULL AS SIGNED ) ) ) ) + - 67 + - 56 + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * - + 42 * ( + 46 ) - - 73 * 21 AS col2, + 21 * + 39 AS col2
----
NULL
819

skipif mysql # not compatible
query II rowsort label-8337
SELECT NULLIF ( + CAST ( COUNT ( * ) AS INTEGER ), + 3 * AVG ( DISTINCT + 66 ) ) - + MAX ( ( + ( + CAST ( NULL AS INTEGER ) ) ) ) + - 67 + - 56 + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * - + 42 * ( + 46 ) - - 73 * 21 AS col2, + 21 * + 39 AS col2
----
NULL
819

query I rowsort
SELECT ALL - 16 + 55
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8339
SELECT COUNT( * ) + + - 7 AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-8339
SELECT COUNT ( * ) + + - 7 AS col0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT 49 DIV - 13
----
-3

skipif mysql # not compatible
query I rowsort label-8340
SELECT 49 / - 13
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT DISTINCT ( + - CAST( NULL AS SIGNED ) ) / + + 81 * 49 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT ( + - CAST ( NULL AS INTEGER ) ) / + + 81 * 49 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT 30 + + ( - 42 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT 30 + + ( - 42 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT - 16 AS col0, ( + 12 )
----
-16
12

query I rowsort
SELECT ALL + 53 * 97 AS col1
----
5141

onlyif mysql # aggregate syntax: 
query II rowsort label-8345
SELECT ( + + 70 ) + + + COUNT( * ) AS col2, 25
----
71
25

skipif mysql # not compatible
query II rowsort label-8345
SELECT ( + + 70 ) + + + COUNT ( * ) AS col2, 25
----
71
25

query I rowsort
SELECT 75 * 45 AS col0
----
3375

query I rowsort
SELECT 49 + + 21 + - 12 * ( + 66 ) AS col0
----
-722

query I rowsort
SELECT ALL - 81 + - 4 AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8349
SELECT ALL CAST( - 22 AS SIGNED ) * - 78 - + 63 + - 41 + - 84 * + 95 AS col2
----
-6368

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL CAST ( - 22 AS INTEGER ) * - 78 - + 63 + - 41 + - 84 * + 95 AS col2
----
-6368

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8350
SELECT 65 + + 40 DIV + - COUNT( * ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8350
SELECT 65 + + 40 / + - COUNT ( * ) AS col2
----
25

query II rowsort
SELECT ALL 35, + 73 AS col1
----
35
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8352
SELECT 74 + + COALESCE ( - + 32, - - MIN( ALL + - 69 ) * + - 58 * + - 31 - - COALESCE ( + 30, - 85 ), 16 * + - 14 + - 12 - + 72 * - 30 + - CAST( NULL AS SIGNED ) * + 67 * - COUNT( * ) DIV 7 DIV + 16 + MAX( CAST( NULL AS SIGNED ) ) - COUNT( * ) * - ( + CAST( 82 AS SIGNED ) ) * + ( + NULLIF ( + 17, - COUNT( * ) * - NULLIF ( - CASE 93 WHEN - - CAST( + 47 AS SIGNED ) THEN NULL WHEN - - 28 THEN - 61 - + 2 + + 29 * + 57 ELSE COUNT( * ) END, 17 ) - 59 + - 93 ) ) * 35 )
----
42

skipif mysql # not compatible
query I rowsort label-8352
SELECT 74 + + COALESCE ( - + 32, - - MIN ( ALL + - 69 ) * + - 58 * + - 31 - - COALESCE ( + 30, - 85 ), 16 * + - 14 + - 12 - + 72 * - 30 + - CAST ( NULL AS INTEGER ) * + 67 * - COUNT ( * ) / 7 / + 16 + MAX ( CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * - ( + CAST ( 82 AS INTEGER ) ) * + ( + NULLIF ( + 17, - COUNT ( * ) * - NULLIF ( - CASE 93 WHEN - - CAST ( + 47 AS INTEGER ) THEN NULL WHEN - - 28 THEN - 61 - + 2 + + 29 * + 57 ELSE COUNT ( * ) END, 17 ) - 59 + - 93 ) ) * 35 )
----
42

query I rowsort
SELECT ALL - 82 * + + 74 AS col0
----
-6068

query II rowsort
SELECT 90, 74 * - 88 AS col0
----
90
-6512

query I rowsort
SELECT + + ( 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8356
SELECT COUNT( * ) DIV + 88 * - - MAX( ALL - 32 ) + 12
----
12

skipif mysql # not compatible
query I rowsort label-8356
SELECT COUNT ( * ) / + 88 * - - MAX ( ALL - 32 ) + 12
----
12

query I rowsort
SELECT - 60 * + 61
----
-3660

query I rowsort
SELECT ALL - + 35 AS col1
----
-35

query I rowsort
SELECT - COALESCE ( + 86, + ( 94 ), + - 6 ) + - ( - + 31 ) col1
----
-55

query I rowsort
SELECT + 76 * - 54 + - - 61 - 28 * - 53 + + + 31
----
-2528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-8361
SELECT ALL + 86 * + 15 DIV + COUNT( * ) AS col2, 67 * + COUNT( * ) + 60 + + COUNT( * ) - + COALESCE ( - 56, + - 62 * + 97 + CASE 71 WHEN COALESCE ( - 9, - 56 * - CAST( + COUNT( * ) AS SIGNED ) ) * + 66 + - 80 THEN 14 END, - + NULLIF ( - COUNT( + - 70 ), 0 * - - 83 - - COUNT( * ) ) + - + 38 * - COALESCE ( + NULLIF ( - 19, - COALESCE ( - - 6, CAST( + - MIN( ALL - 64 ) AS DECIMAL ), - 33 * + SUM( DISTINCT - 8 ) - - COUNT( DISTINCT + 50 ) * + COUNT( * ) ) + 42 ), 98 * COUNT( * ) ) DIV 20 + AVG ( ( - 34 ) ) * 17 ) DIV + 87
----
1290
128

skipif mysql # not compatible
query II rowsort label-8361
SELECT ALL + 86 * + 15 / + COUNT ( * ) AS col2, 67 * + COUNT ( * ) + 60 + + COUNT ( * ) - + COALESCE ( - 56, + - 62 * + 97 + CASE 71 WHEN COALESCE ( - 9, - 56 * - CAST ( + COUNT ( * ) AS INTEGER ) ) * + 66 + - 80 THEN 14 END, - + NULLIF ( - COUNT ( + - 70 ), 0 * - - 83 - - COUNT ( * ) ) + - + 38 * - COALESCE ( + NULLIF ( - 19, - COALESCE ( - - 6, CAST ( + - MIN ( ALL - 64 ) AS REAL ), - 33 * + SUM ( DISTINCT - 8 ) - - COUNT ( DISTINCT + 50 ) * + COUNT ( * ) ) + 42 ), 98 * COUNT ( * ) ) / 20 + AVG ( ( - 34 ) ) * 17 ) / + 87
----
1290
128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8362
SELECT + 27 * + - CASE + 20 WHEN CAST( NULL AS SIGNED ) * + - 45 - - 91 DIV + - 83 + + 66 * - + 16 * - + 39 THEN - 26 DIV - 39 ELSE + 10 + + 49 + - MAX( + 94 ) * - COUNT( * ) END
----
-4131

skipif mysql # not compatible
query I rowsort label-8362
SELECT + 27 * + - CASE + 20 WHEN CAST ( NULL AS INTEGER ) * + - 45 - - 91 / + - 83 + + 66 * - + 16 * - + 39 THEN - 26 / - 39 ELSE + 10 + + 49 + - MAX ( + 94 ) * - COUNT ( * ) END
----
-4131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8363
SELECT + - NULLIF ( CAST( CASE - + ( + 82 ) WHEN - COALESCE ( - 42, + 9 * + - NULLIF ( + 94, + 21 ) ) * 88 + - - 6 + 33 THEN NULL ELSE + 23 * + - 46 END AS SIGNED ), - + 5 )
----
1058

skipif mysql # not compatible
query I rowsort label-8363
SELECT + - NULLIF ( CAST ( CASE - + ( + 82 ) WHEN - COALESCE ( - 42, + 9 * + - NULLIF ( + 94, + 21 ) ) * 88 + - - 6 + 33 THEN NULL ELSE + 23 * + - 46 END AS INTEGER ), - + 5 )
----
1058

onlyif mysql # DIV for integer division: 
query II rowsort label-8364
SELECT ALL - 96 AS col2, + COALESCE ( 38, + 3 * + 77, - - 62 + + - 69 ) DIV + 83 AS col1
----
-96
0

skipif mysql # not compatible
query II rowsort label-8364
SELECT ALL - 96 AS col2, + COALESCE ( 38, + 3 * + 77, - - 62 + + - 69 ) / + 83 AS col1
----
-96
0

query I rowsort
SELECT ALL - + 84
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT + 54 + - ( COUNT( * ) ) + - - ( + + 11 ) AS col0
----
64

skipif mysql # not compatible
query I rowsort label-8366
SELECT + 54 + - ( COUNT ( * ) ) + - - ( + + 11 ) AS col0
----
64

query I rowsort
SELECT ALL + + 67 * 50 AS col1
----
3350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8368
SELECT 86 * - ( 51 ) * + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8368
SELECT 86 * - ( 51 ) * + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 15 AS col2, - 20 AS col2
----
15
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT ALL - COUNT( * ) + - - 99 + - + 21
----
77

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL - COUNT ( * ) + - - 99 + - + 21
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT + 76 col2, - CASE 71 WHEN - + 68 * + 72 + 13 * COALESCE ( + COUNT( * ), + COUNT( * ) * 54 + - ( + 95 ), - 61 ) * + 36 THEN SUM( DISTINCT - + 9 ) - MIN( 9 ) + 22 / + 35 WHEN - - COUNT( * ) THEN NULL END * + - 6 / - - 28 - - 57 AS col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-8371
SELECT + 76 col2, - CASE 71 WHEN - + 68 * + 72 + 13 * COALESCE ( + COUNT ( * ), + COUNT ( * ) * 54 + - ( + 95 ), - 61 ) * + 36 THEN SUM ( DISTINCT - + 9 ) - MIN ( 9 ) + 22 / + 35 WHEN - - COUNT ( * ) THEN NULL END * + - 6 / - - 28 - - 57 AS col2
----
76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - - SUM( ALL + 55 ) * 19 + + 48 * + 83 AS col0
----
5029

skipif mysql # not compatible
query I rowsort label-8372
SELECT - - SUM ( ALL + 55 ) * 19 + + 48 * + 83 AS col0
----
5029

query I rowsort
SELECT DISTINCT - + 69
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT ALL 87 DIV - 30 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL 87 / - 30 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT ALL + CASE + - 63 WHEN - 60 / COUNT( * ) - - MIN( DISTINCT 54 ) * + 1 + COUNT( * ) * + 11 THEN NULL WHEN 15 THEN - 14 WHEN - 54 THEN - + 0 WHEN - COUNT( * ) + - 44 * + 72 * + NULLIF ( - 41, 37 - + ( + - COUNT( * ) ) ) THEN NULL ELSE - 94 END + - COUNT( * ) - 42 * - 30 col0
----
1165

skipif mysql # not compatible
query I rowsort label-8375
SELECT ALL + CASE + - 63 WHEN - 60 / COUNT ( * ) - - MIN ( DISTINCT 54 ) * + 1 + COUNT ( * ) * + 11 THEN NULL WHEN 15 THEN - 14 WHEN - 54 THEN - + 0 WHEN - COUNT ( * ) + - 44 * + 72 * + NULLIF ( - 41, 37 - + ( + - COUNT ( * ) ) ) THEN NULL ELSE - 94 END + - COUNT ( * ) - 42 * - 30 col0
----
1165

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT - COUNT( * ) + + 21 AS col1
----
20

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - COUNT ( * ) + + 21 AS col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8377
SELECT ALL 75 + 65 DIV + COUNT( * ) AS col0
----
140

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL 75 + 65 / + COUNT ( * ) AS col0
----
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8378
SELECT AVG ( + 79 ) * + 88 * - - 6 + + CAST( NULL AS SIGNED ) * + COUNT( * ) + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT AVG ( + 79 ) * + 88 * - - 6 + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + 26
----
NULL

query I rowsort
SELECT - 11 AS col0
----
-11

query I rowsort
SELECT ALL + ( + 15 ) * + 42
----
630

query I rowsort
SELECT DISTINCT 17 AS col2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT - SUM( DISTINCT + ( - 15 ) ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8382
SELECT - SUM ( DISTINCT + ( - 15 ) ) AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT ALL 73 - + - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL 73 - + - COUNT ( * )
----
74

query I rowsort
SELECT 93 * 40 col2
----
3720

onlyif mysql # DIV for integer division: 
query I rowsort label-8385
SELECT ALL 26 DIV - ( + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL 26 / - ( + 25 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8386
SELECT - COUNT( * ) DIV - + 79 + 75
----
75

skipif mysql # not compatible
query I rowsort label-8386
SELECT - COUNT ( * ) / - + 79 + 75
----
75

query I rowsort
SELECT ALL - + 28 AS col1
----
-28

query I rowsort
SELECT DISTINCT - + 67 col0
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8389
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8390
SELECT + COUNT( * ) / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8390
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + NULLIF ( COUNT( * ), + 2 + 19 + COUNT( + 72 ) * - + 22 )
----
1

skipif mysql # not compatible
query I rowsort label-8391
SELECT + NULLIF ( COUNT ( * ), + 2 + 19 + COUNT ( + 72 ) * - + 22 )
----
1

query I rowsort
SELECT ALL - + 85
----
-85

query I rowsort
SELECT DISTINCT 90 * + - 67 AS col1
----
-6030

query I rowsort
SELECT ALL - + ( 62 ) AS col0
----
-62

query I rowsort
SELECT ALL - - 8 AS col0
----
8

query I rowsort
SELECT + + 11 AS col0
----
11

query I rowsort
SELECT - 71 col0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT - 61 * - CAST( - - SUM( - ( - - 11 ) ) AS SIGNED ) AS col2
----
-671

skipif mysql # not compatible
query I rowsort label-8398
SELECT - 61 * - CAST ( - - SUM ( - ( - - 11 ) ) AS INTEGER ) AS col2
----
-671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8399
SELECT ALL + 89 * + 40 + + - 30 - - COUNT( * ) DIV 63 + - + 51 AS col0
----
3479

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + 89 * + 40 + + - 30 - - COUNT ( * ) / 63 + - + 51 AS col0
----
3479

query I rowsort
SELECT 0 * 59 - - 41 AS col0
----
41

query I rowsort
SELECT ALL - - 77 * 80 + - 11 AS col1
----
6149

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT + + NULLIF ( - - 67, 34 * - 52 * + - SUM( DISTINCT + + 50 ) )
----
67

skipif mysql # not compatible
query I rowsort label-8402
SELECT + + NULLIF ( - - 67, 34 * - 52 * + - SUM ( DISTINCT + + 50 ) )
----
67

query I rowsort
SELECT ALL - - 27 + - ( 35 ) + + 43 + - 65 * + 46 * 9 AS col1
----
-26875

query I rowsort
SELECT DISTINCT - 11 + - 90 + + 94 col0
----
-7

query II rowsort
SELECT ALL 76 * - - 29 * + 78 AS col2, - 98
----
171912
-98

query I rowsort
SELECT DISTINCT + 71 * + 66 AS col2
----
4686

query I rowsort
SELECT + 99 * + 64 + 74
----
6410

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - 28 * + COALESCE ( + 53, - + MIN( DISTINCT - 27 ), - 16 )
----
-1484

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 28 * + COALESCE ( + 53, - + MIN ( DISTINCT - 27 ), - 16 )
----
-1484

onlyif mysql # DIV for integer division: 
query I rowsort label-8409
SELECT - 46 DIV - 17 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-8409
SELECT - 46 / - 17 AS col0
----
2

query I rowsort
SELECT 24 AS col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT DISTINCT + COUNT( * ) * ( + MIN( - 97 ) ) AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + COUNT ( * ) * ( + MIN ( - 97 ) ) AS col2
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT DISTINCT 27 DIV 86 col0
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT 27 / 86 col0
----
0

query II rowsort
SELECT DISTINCT COALESCE ( + 16, + 56 ) AS col0, + 91 + + 98
----
16
189

query I rowsort
SELECT ALL 62 * - + 78 AS col2
----
-4836

query I rowsort
SELECT ALL ( 33 )
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8416
SELECT - COALESCE ( ( + SUM( DISTINCT 44 ) ), + 62 * + - 51 * + ( - CAST( NULL AS SIGNED ) ) + + + 5 )
----
-44

skipif mysql # not compatible
query I rowsort label-8416
SELECT - COALESCE ( ( + SUM ( DISTINCT 44 ) ), + 62 * + - 51 * + ( - CAST ( NULL AS INTEGER ) ) + + + 5 )
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8417
SELECT - 32 + - 95 + - 64 * - 44 * + COUNT( * ) * + 23, + 48 + - 51 * - 81 AS col0
----
64641
4179

skipif mysql # not compatible
query II rowsort label-8417
SELECT - 32 + - 95 + - 64 * - 44 * + COUNT ( * ) * + 23, + 48 + - 51 * - 81 AS col0
----
64641
4179

query I rowsort
SELECT - NULLIF ( ( 74 ), - AVG ( - 1 ) * ( + 86 ) + - 82 )
----
-74

query I rowsort
SELECT + 96 * - 46 AS col0
----
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + ( - COUNT( ALL - 10 ) ) + + - 93
----
-94

skipif mysql # not compatible
query I rowsort label-8420
SELECT + ( - COUNT ( ALL - 10 ) ) + + - 93
----
-94

query I rowsort
SELECT ALL + 19 * + 33
----
627

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT + COALESCE ( + 31, + + 59 * - + COUNT( * ) * - SUM( + 73 ) + + 84 ) * 76 * COUNT( DISTINCT 39 ) AS col2
----
2356

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT + COALESCE ( + 31, + + 59 * - + COUNT ( * ) * - SUM ( + 73 ) + + 84 ) * 76 * COUNT ( DISTINCT 39 ) AS col2
----
2356

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT + 9 + + COUNT( * ) * - - 96 - - 56 col1
----
161

skipif mysql # not compatible
query I rowsort label-8423
SELECT + 9 + + COUNT ( * ) * - - 96 - - 56 col1
----
161

query I rowsort
SELECT ALL - 90 AS col0
----
-90

query II rowsort
SELECT DISTINCT + 51 AS col2, - 96 col0
----
51
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL - 99 * + + 1 + + + 63 * + - 70 * - 70 * + + CASE + COUNT( * ) WHEN + 55 + - - 83 THEN 9 ELSE ( 42 ) END
----
12965301

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL - 99 * + + 1 + + + 63 * + - 70 * - 70 * + + CASE + COUNT ( * ) WHEN + 55 + - - 83 THEN 9 ELSE ( 42 ) END
----
12965301

query I rowsort
SELECT + - 54 * 62 * + + 99
----
-331452

query I rowsort
SELECT ALL + 43 * - 0 * 52 AS col0
----
0

query II rowsort
SELECT 2 AS col1, 95 + 48
----
2
143

query I rowsort
SELECT NULLIF ( - 64, 54 * - + 94 + + + 45 )
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8431
SELECT DISTINCT - + COUNT( + - 94 ) * - SUM( DISTINCT + + 5 ) * CASE - 95 WHEN 91 * 98 * + 85 THEN + + CASE + 34 WHEN 17 * + + CASE + 42 WHEN + - COALESCE ( - + CAST( + + 31 AS SIGNED ), 77 * - + 99 + + 63 + - 18 * 28, + COUNT( * ) - + - ( + COUNT( + + 23 ) ) ) THEN + NULLIF ( 46, 74 + + 33 * + ( - 69 ) ) WHEN CAST( NULL AS DECIMAL ) * - 7 * 19 THEN NULL ELSE - SUM( + - 5 ) END * ( 61 ) * + 67 - 92 THEN NULL WHEN - AVG ( ALL 32 ) * - 58 + + 55 THEN 83 DIV 35 + + 39 ELSE 92 END WHEN MIN( + 48 ) + + ( + 10 ) * 38 THEN - 16 * 46 ELSE - 25 END + 71 + + 65
----
11

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT - + COUNT ( + - 94 ) * - SUM ( DISTINCT + + 5 ) * CASE - 95 WHEN 91 * 98 * + 85 THEN + + CASE + 34 WHEN 17 * + + CASE + 42 WHEN + - COALESCE ( - + CAST ( + + 31 AS INTEGER ), 77 * - + 99 + + 63 + - 18 * 28, + COUNT ( * ) - + - ( + COUNT ( + + 23 ) ) ) THEN + NULLIF ( 46, 74 + + 33 * + ( - 69 ) ) WHEN CAST ( NULL AS REAL ) * - 7 * 19 THEN NULL ELSE - SUM ( + - 5 ) END * ( 61 ) * + 67 - 92 THEN NULL WHEN - AVG ( ALL 32 ) * - 58 + + 55 THEN 83 / 35 + + 39 ELSE 92 END WHEN MIN ( + 48 ) + + ( + 10 ) * 38 THEN - 16 * 46 ELSE - 25 END + 71 + + 65
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT ALL + + 24 * - 86 + - CASE + CAST( - 9 AS SIGNED ) WHEN - 56 * + 55 * 70 THEN NULL ELSE + - ( + - 88 ) * + 99 END
----
-10776

skipif mysql # not compatible
query I rowsort label-8432
SELECT ALL + + 24 * - 86 + - CASE + CAST ( - 9 AS INTEGER ) WHEN - 56 * + 55 * 70 THEN NULL ELSE + - ( + - 88 ) * + 99 END
----
-10776

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT + 38 * - + COUNT( DISTINCT + 74 ) AS col2
----
-38

skipif mysql # not compatible
query I rowsort label-8433
SELECT + 38 * - + COUNT ( DISTINCT + 74 ) AS col2
----
-38

query I rowsort
SELECT + 82 * + 80 + + - 26 + - 84 + - - 38
----
6488

query I rowsort
SELECT - 52 + 32 col2
----
-20

query I rowsort
SELECT DISTINCT + ( + 6 ) * 62 + - - 99
----
471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT NULLIF ( + - 34, + CAST( NULL AS SIGNED ) * 92 + + 23 + + + ( + 64 ) ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8437
SELECT NULLIF ( + - 34, + CAST ( NULL AS INTEGER ) * 92 + + 23 + + + ( + 64 ) ) AS col1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8438
SELECT ALL + COUNT( * ) * 20 - - + COUNT( * ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL + COUNT ( * ) * 20 - - + COUNT ( * ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT + COUNT( * ) * - 97 AS col2
----
-97

skipif mysql # not compatible
query I rowsort label-8439
SELECT + COUNT ( * ) * - 97 AS col2
----
-97

query I rowsort
SELECT 22 * + 52 + + 80 col2
----
1224

query I rowsort
SELECT - 98 + 37 AS col0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8442
SELECT ALL - 22 * COUNT( * ) DIV - + 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - 22 * COUNT ( * ) / - + 88 AS col2
----
0

query II rowsort
SELECT - 92 + + 36 * + 35 + - 7 + 82 + - 55 * + + 26 AS col2, 40 AS col2
----
-187
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8444
SELECT DISTINCT - 49 DIV - - COUNT( * ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - 49 / - - COUNT ( * ) AS col0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT MIN( - 71 ) * - + 51 + + NULLIF ( + 85, + + 57 + 34 ) AS col1
----
3706

skipif mysql # not compatible
query I rowsort label-8445
SELECT MIN ( - 71 ) * - + 51 + + NULLIF ( + 85, + + 57 + 34 ) AS col1
----
3706

query I rowsort
SELECT ALL - 23 * - - 35
----
-805

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8447
SELECT - CAST( NULL AS DECIMAL ) + ( + + 53 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT - CAST ( NULL AS REAL ) + ( + + 53 ) col1
----
NULL

query II rowsort
SELECT - 78 AS col2, ( + - 98 ) AS col2
----
-78
-98

query I rowsort
SELECT - 38 + + 88
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8450
SELECT DISTINCT CAST( + CAST( - 57 AS SIGNED ) AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-8450
SELECT DISTINCT CAST ( + CAST ( - 57 AS INTEGER ) AS INTEGER )
----
-57

query I rowsort
SELECT ALL + 60 + - + 76 + + 65
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT ALL COUNT( * ) + 24 * - ( - + 83 ) * + 8
----
15937

skipif mysql # not compatible
query I rowsort label-8452
SELECT ALL COUNT ( * ) + 24 * - ( - + 83 ) * + 8
----
15937

query I rowsort
SELECT ALL + + 73 + - 28 AS col2
----
45

query I rowsort
SELECT - 37 * + 95 + - 99
----
-3614

query I rowsort
SELECT - + 61
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-8456
SELECT - 49 AS col2, + 43 * COUNT( ALL 10 ) + - + 55 AS col1
----
-49
-12

skipif mysql # not compatible
query II rowsort label-8456
SELECT - 49 AS col2, + 43 * COUNT ( ALL 10 ) + - + 55 AS col1
----
-49
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT - CASE + COUNT( * ) WHEN - COUNT( * ) / - 64 * + - 98 / - + CASE - COUNT( * ) WHEN - CASE - - 46 WHEN - COUNT( * ) THEN + 7 ELSE NULL END THEN NULL WHEN - COUNT( DISTINCT + 26 ) THEN - - 76 END THEN NULL WHEN - 84 THEN - 68 ELSE + + 23 END
----
-23

skipif mysql # not compatible
query I rowsort label-8457
SELECT - CASE + COUNT ( * ) WHEN - COUNT ( * ) / - 64 * + - 98 / - + CASE - COUNT ( * ) WHEN - CASE - - 46 WHEN - COUNT ( * ) THEN + 7 ELSE NULL END THEN NULL WHEN - COUNT ( DISTINCT + 26 ) THEN - - 76 END THEN NULL WHEN - 84 THEN - 68 ELSE + + 23 END
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT ALL + + MIN( ALL 53 ) + - ( 89 ) col1
----
-36

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL + + MIN ( ALL 53 ) + - ( 89 ) col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT - CAST( + + 56 AS SIGNED ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8459
SELECT - CAST ( + + 56 AS INTEGER ) AS col0
----
-56

query II rowsort
SELECT 98, ( - 94 ) AS col1
----
98
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT ALL 12 * + MAX( DISTINCT + ( + 11 ) ) + - MIN( + 19 ) * + - 17 - - 64
----
519

skipif mysql # not compatible
query I rowsort label-8461
SELECT ALL 12 * + MAX ( DISTINCT + ( + 11 ) ) + - MIN ( + 19 ) * + - 17 - - 64
----
519

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8462
SELECT DISTINCT - - 31 + - 68 AS col1, - 6 * + COUNT( * ) DIV + 91 * 32 col0
----
-37
0

skipif mysql # not compatible
query II rowsort label-8462
SELECT DISTINCT - - 31 + - 68 AS col1, - 6 * + COUNT ( * ) / + 91 * 32 col0
----
-37
0

query I rowsort
SELECT ALL - COALESCE ( - 20, - 88 ) + COALESCE ( - - 11, 27 * + 25 ) + 54 AS col2
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8464
SELECT DISTINCT - + COALESCE ( 78, 81 DIV + COUNT( * ) * - - ( ( + 70 ) ) * + 11 + 56, + 46 )
----
-78

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT - + COALESCE ( 78, 81 / + COUNT ( * ) * - - ( ( + 70 ) ) * + 11 + 56, + 46 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT ALL - - MIN( - - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL - - MIN ( - - 74 )
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT - COUNT( * ) * 23 - 14
----
-37

skipif mysql # not compatible
query I rowsort label-8466
SELECT - COUNT ( * ) * 23 - 14
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8467
SELECT ( MAX( - 88 ) ) * CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT ( MAX ( - 88 ) ) * CAST ( NULL AS INTEGER ) AS col2
----
NULL

query II rowsort
SELECT DISTINCT - + 15, - 41 AS col1
----
-15
-41

query II rowsort
SELECT ALL - 62 - 68 AS col0, + 70 AS col1
----
-130
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL 17 * + COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL 17 * + COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT 51 * 93 * + 61 * + + 26 * - 26 AS col0
----
-195582348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT 10 * + - ( COUNT( * ) ) * 18 + + 83 + + - 22 - + - 77 * + + 24 + + 62 * + 57 * ( - + NULLIF ( + - 63, - 89 ) ) * + - 50 + - 99 + - COUNT( * ) * - CAST( NULL AS SIGNED ) * + NULLIF ( CAST( - - 5 AS SIGNED ), + 68 * + ( + 5 ) ) + + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 10 * + - ( COUNT ( * ) ) * 18 + + 83 + + - 22 - + - 77 * + + 24 + + 62 * + 57 * ( - + NULLIF ( + - 63, - 89 ) ) * + - 50 + - 99 + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + NULLIF ( CAST ( - - 5 AS INTEGER ), + 68 * + ( + 5 ) ) + + - 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL - COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - COUNT ( * ) col1
----
-1

query I rowsort
SELECT 68 * + 88 col2
----
5984

query I rowsort
SELECT DISTINCT 16 * - 58
----
-928

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT + 46 * + CAST( NULL AS SIGNED ) + + 62 * - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT + 46 * + CAST ( NULL AS INTEGER ) + + 62 * - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 19 col2
----
-19

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8478
SELECT 58 * 32 DIV + COUNT( * )
----
1856

skipif mysql # not compatible
query I rowsort label-8478
SELECT 58 * 32 / + COUNT ( * )
----
1856

query I rowsort
SELECT 93 * + 57 col0
----
5301

query I rowsort
SELECT 64 - + 19 AS col1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT DISTINCT 56 + + - MAX( ( + 5 ) )
----
51

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT 56 + + - MAX ( ( + 5 ) )
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT 83 * + 38, + COUNT( * ) * + 15 AS col1
----
3154
15

skipif mysql # not compatible
query II rowsort label-8482
SELECT 83 * + 38, + COUNT ( * ) * + 15 AS col1
----
3154
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL - CASE + ( - 88 ) WHEN + + MIN( ALL 60 ) + - AVG ( + + 84 ) * 36 * - + 84 THEN NULL ELSE - 0 END + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - CASE + ( - 88 ) WHEN + + MIN ( ALL 60 ) + - AVG ( + + 84 ) * 36 * - + 84 THEN NULL ELSE - 0 END + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8484
SELECT 99 - + COUNT( * ) DIV + + COUNT( * ) AS col1, - 58 AS col2
----
98
-58

skipif mysql # not compatible
query II rowsort label-8484
SELECT 99 - + COUNT ( * ) / + + COUNT ( * ) AS col1, - 58 AS col2
----
98
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT + COALESCE ( COUNT( * ), + - 67 * - 32 ) + - - MAX( ALL + 41 ) + + - 46 + 45
----
41

skipif mysql # not compatible
query I rowsort label-8485
SELECT + COALESCE ( COUNT ( * ), + - 67 * - 32 ) + - - MAX ( ALL + 41 ) + + - 46 + 45
----
41

query I rowsort
SELECT - COALESCE ( - + 80, 10 )
----
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8487
SELECT ALL + 67 + - + NULLIF ( - - 94, + COUNT( * ) ) + - 82, 42 + + 16 + - + 53 * - 20 * + MAX( + 9 ) * - 93 + - 5 DIV ( 37 ) - + + 73 + - COUNT( * ) + - ( 73 ) AS col2
----
-109
-887309

skipif mysql # not compatible
query II rowsort label-8487
SELECT ALL + 67 + - + NULLIF ( - - 94, + COUNT ( * ) ) + - 82, 42 + + 16 + - + 53 * - 20 * + MAX ( + 9 ) * - 93 + - 5 / ( 37 ) - + + 73 + - COUNT ( * ) + - ( 73 ) AS col2
----
-109
-887309

onlyif mysql # aggregate syntax: 
query I rowsort label-8488
SELECT - SUM( - + 36 )
----
36

skipif mysql # not compatible
query I rowsort label-8488
SELECT - SUM ( - + 36 )
----
36

onlyif mysql # DIV for integer division: 
query II rowsort label-8489
SELECT 9 + + - 62 * 90 + - 82 DIV 51 * - ( - - 97 ), + 21 + - - 34 * + 37 col0
----
-5474
1279

skipif mysql # not compatible
query II rowsort label-8489
SELECT 9 + + - 62 * 90 + - 82 / 51 * - ( - - 97 ), + 21 + - - 34 * + 37 col0
----
-5474
1279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT DISTINCT - COUNT( + 96 ) + ( + 51 ) DIV + + MAX( DISTINCT 82 ) * 66 * 85 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - COUNT ( + 96 ) + ( + 51 ) / + + MAX ( DISTINCT 82 ) * 66 * 85 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8491
SELECT 1 + 17 AS col1, ( 9 ) / - - 60 - - + COALESCE ( NULLIF ( - COUNT( * ), - - AVG ( + 28 ) ), + 50, - ( + 85 ) - + - CASE + CAST( - ( - 4 ) AS DECIMAL ) WHEN COALESCE ( - 67, SUM( - 69 ) ) THEN - 45 END / MIN( DISTINCT + 51 ) ) + + 13 * - 36 + - + COUNT( * ) + - + CAST( NULL AS DECIMAL ) + 46 AS col2
----
18
NULL

skipif mysql # not compatible
query II rowsort label-8491
SELECT 1 + 17 AS col1, ( 9 ) / - - 60 - - + COALESCE ( NULLIF ( - COUNT ( * ), - - AVG ( + 28 ) ), + 50, - ( + 85 ) - + - CASE + CAST ( - ( - 4 ) AS REAL ) WHEN COALESCE ( - 67, SUM ( - 69 ) ) THEN - 45 END / MIN ( DISTINCT + 51 ) ) + + 13 * - 36 + - + COUNT ( * ) + - + CAST ( NULL AS REAL ) + 46 AS col2
----
18
NULL

query I rowsort
SELECT ALL + 26 + - - ( + 30 ) AS col2
----
56

query I rowsort
SELECT + 93 * 97 AS col0
----
9021

query I rowsort
SELECT ALL + 76 AS col2
----
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT ALL + SUM( - - 10 ) DIV - 36 + - COUNT( * ) * - COUNT( * ) DIV + 79 * - 49 + - + 61 DIV - - 47 + + 34 * + 31 + + 63 + 11
----
1127

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL + SUM ( - - 10 ) / - 36 + - COUNT ( * ) * - COUNT ( * ) / + 79 * - 49 + - + 61 / - - 47 + + 34 * + 31 + + 63 + 11
----
1127

query I rowsort
SELECT - 12 AS col1
----
-12

query I rowsort
SELECT + 20 + 45 * 2
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - 60 * - + 59 * - COUNT( ALL - ( + + 8 ) ) AS col2
----
-3540

skipif mysql # not compatible
query I rowsort label-8498
SELECT - 60 * - + 59 * - COUNT ( ALL - ( + + 8 ) ) AS col2
----
-3540

query II rowsort
SELECT ALL - - 53 - - 6 * - 68, 92 AS col2
----
-355
92

query I rowsort
SELECT 58 * + + 56 col1
----
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-8501
SELECT + 74 DIV 76 + ( - + 97 ) + - 64
----
-161

skipif mysql # not compatible
query I rowsort label-8501
SELECT + 74 / 76 + ( - + 97 ) + - 64
----
-161

onlyif mysql # aggregate syntax: 
query II rowsort label-8502
SELECT + MAX( DISTINCT 45 ), + SUM( ALL + + 3 ) * + 13 AS col2
----
45
39

skipif mysql # not compatible
query II rowsort label-8502
SELECT + MAX ( DISTINCT 45 ), + SUM ( ALL + + 3 ) * + 13 AS col2
----
45
39

query I rowsort
SELECT DISTINCT - ( + 88 ) AS col0
----
-88

query I rowsort
SELECT 49 * + 8 AS col0
----
392

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8505
SELECT ALL - 23 AS col2, - 99 / - CAST( NULL AS SIGNED ) * + + 73 * ( + 42 ) col0
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-8505
SELECT ALL - 23 AS col2, - 99 / - CAST ( NULL AS INTEGER ) * + + 73 * ( + 42 ) col0
----
-23
NULL

query I rowsort
SELECT + 51 AS col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + COUNT( * ) * - + ( 33 ) + + + 77
----
44

skipif mysql # not compatible
query I rowsort label-8507
SELECT + COUNT ( * ) * - + ( 33 ) + + + 77
----
44

query I rowsort
SELECT DISTINCT - 10 AS col2
----
-10

query I rowsort
SELECT 68 - + 4
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT 96 * - 95 + SUM( 50 ) * - 96 col1
----
-13920

skipif mysql # not compatible
query I rowsort label-8510
SELECT 96 * - 95 + SUM ( 50 ) * - 96 col1
----
-13920

query I rowsort
SELECT ALL - 59 + + - 64 AS col0
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-8512
SELECT ALL + 5 DIV - ( + - ( + 69 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + 5 / - ( + - ( + 69 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT 99 + + - SUM( ALL 11 ) + - COUNT( * ) * + + 42 * 99 AS col2
----
-4070

skipif mysql # not compatible
query I rowsort label-8513
SELECT 99 + + - SUM ( ALL 11 ) + - COUNT ( * ) * + + 42 * 99 AS col2
----
-4070

onlyif mysql # aggregate syntax: 
query II rowsort label-8514
SELECT ALL SUM( - 35 ) + - 67 AS col0, 32 * - + 0 * 83
----
-102
0

skipif mysql # not compatible
query II rowsort label-8514
SELECT ALL SUM ( - 35 ) + - 67 AS col0, 32 * - + 0 * 83
----
-102
0

query I rowsort
SELECT - ( - 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT 44 + - + COUNT( * ) AS col2
----
43

skipif mysql # not compatible
query I rowsort label-8516
SELECT 44 + - + COUNT ( * ) AS col2
----
43

query I rowsort
SELECT DISTINCT + 19 AS col2
----
19

query I rowsort
SELECT + 11 + 26 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL + COUNT( + 3 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL + COUNT ( + 3 ) AS col0
----
1

query I rowsort
SELECT COALESCE ( + + 16, + 73 ) * 40
----
640

query I rowsort
SELECT CASE - + ( - 95 ) WHEN - 71 THEN 0 * - + 44 * 58 * + 13 + 30 * + 12 + - 63 - + 22 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL - + 93 - 75 * + 38 AS col2
----
-2943

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8523
SELECT CASE - 87 WHEN + 96 THEN - - 28 * 66 * - 45 + - + 63 + - - 31 ELSE COALESCE ( 77, + 18 + - COUNT( - ( - + 0 ) ) ) + CAST( NULL AS DECIMAL ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8523
SELECT CASE - 87 WHEN + 96 THEN - - 28 * 66 * - 45 + - + 63 + - - 31 ELSE COALESCE ( 77, + 18 + - COUNT ( - ( - + 0 ) ) ) + CAST ( NULL AS REAL ) END
----
NULL

query I rowsort
SELECT DISTINCT 70 * + - 41
----
-2870

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT ALL - - ( - ( - - ( - CASE - CAST( NULL AS SIGNED ) WHEN ( + 94 ) + - COUNT( * ) THEN - + 71 * + 32 * + 39 END ) ) ) - - COUNT( * ) - - 80 - + 52 + 87 * + - COUNT( * ) - + + 83 * - 8 / NULLIF ( + - 2, - MIN( - CAST( NULL AS SIGNED ) ) ) + - 59 + + 85 - 55 + - - 60 + + - 61 + + - 33 * - 88 * - 17 * + 67 + 94 * COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL - - ( - ( - - ( - CASE - CAST ( NULL AS INTEGER ) WHEN ( + 94 ) + - COUNT ( * ) THEN - + 71 * + 32 * + 39 END ) ) ) - - COUNT ( * ) - - 80 - + 52 + 87 * + - COUNT ( * ) - + + 83 * - 8 / NULLIF ( + - 2, - MIN ( - CAST ( NULL AS INTEGER ) ) ) + - 59 + + 85 - 55 + - - 60 + + - 61 + + - 33 * - 88 * - 17 * + 67 + 94 * COUNT ( * ) col2
----
NULL

query II rowsort
SELECT - + 80, 41 col1
----
-80
41

query II rowsort
SELECT 96, + 57 AS col1
----
96
57

query I rowsort
SELECT + 58 - + + 0 AS col1
----
58

query I rowsort
SELECT DISTINCT + - 88 * - 94
----
8272

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT - 71 - COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-8530
SELECT - 71 - COUNT ( * )
----
-72

query I rowsort
SELECT - NULLIF ( + ( + ( 94 ) ), 45 )
----
-94

query I rowsort
SELECT - + 18 AS col1
----
-18

query I rowsort
SELECT DISTINCT ( - 8 ) * 57
----
-456

query II rowsort
SELECT - 75 * + 43 AS col1, + 25
----
-3225
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8535
SELECT ALL + CASE + 96 WHEN + - COUNT( * ) + - CAST( NULL AS DECIMAL ) THEN + 18 + + - COUNT( ALL - CAST( NULL AS SIGNED ) ) * + ( - 16 ) + - 10 WHEN + 49 * + COUNT( * ) * - 54 + - - 53 + - + COUNT( * ) THEN + 42 * 15 - + - COUNT( - 2 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8535
SELECT ALL + CASE + 96 WHEN + - COUNT ( * ) + - CAST ( NULL AS REAL ) THEN + 18 + + - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * + ( - 16 ) + - 10 WHEN + 49 * + COUNT ( * ) * - 54 + - - 53 + - + COUNT ( * ) THEN + 42 * 15 - + - COUNT ( - 2 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - 22 + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8536
SELECT - 22 + COUNT ( * )
----
-21

query I rowsort
SELECT 72 * 50 - + 92
----
3508

query I rowsort
SELECT - 4 * 35 AS col1
----
-140

query I rowsort
SELECT ALL 57 * 70 + 2
----
3992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8540
SELECT - COALESCE ( COUNT( * ), + CAST( NULL AS SIGNED ) ) * COUNT( - 21 ) AS col2, 61
----
-1
61

skipif mysql # not compatible
query II rowsort label-8540
SELECT - COALESCE ( COUNT ( * ), + CAST ( NULL AS INTEGER ) ) * COUNT ( - 21 ) AS col2, 61
----
-1
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT ALL CASE - + 2 WHEN - - 67 - COUNT( * ) THEN + 62 END * + 81 + 13
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL CASE - + 2 WHEN - - 67 - COUNT ( * ) THEN + 62 END * + 81 + 13
----
NULL

query I rowsort
SELECT DISTINCT + 19 * - 5 col2
----
-95

query I rowsort
SELECT ALL + 58 col2
----
58

query I rowsort
SELECT DISTINCT 69 * 81 + - 19 AS col2
----
5570

query I rowsort
SELECT CASE - 77 WHEN + ( + 78 ) THEN + CASE - 40 WHEN + 97 * 92 THEN + 28 + + 84 * + + ( 52 ) ELSE NULL END END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL 43 * - NULLIF ( 91, + 85 + + MAX( DISTINCT 3 ) ) + - 1 AS col0
----
-3914

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL 43 * - NULLIF ( 91, + 85 + + MAX ( DISTINCT 3 ) ) + - 1 AS col0
----
-3914

query I rowsort
SELECT - - 45 - 20
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT - 30 * + COUNT( * ) + - + 81 * + COALESCE ( - 81, - 97 ) * + - 54 + - 12
----
-354336

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 30 * + COUNT ( * ) + - + 81 * + COALESCE ( - 81, - 97 ) * + - 54 + - 12
----
-354336

query I rowsort
SELECT ALL + ( 18 ) - 93 AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8550
SELECT + + COALESCE ( ( ( + 82 ) ), 58 + - + ( - 18 ) + - CAST( + 80 AS SIGNED ) * + + 94 - + COUNT( * ) ) * + COUNT( * ) AS col1, NULLIF ( + CASE + - 21 WHEN + - CAST( NULL AS SIGNED ) THEN 67 * - 18 + - COUNT( * ) + - 18 ELSE NULL END, - - 77 ) AS col1
----
82
NULL

skipif mysql # not compatible
query II rowsort label-8550
SELECT + + COALESCE ( ( ( + 82 ) ), 58 + - + ( - 18 ) + - CAST ( + 80 AS INTEGER ) * + + 94 - + COUNT ( * ) ) * + COUNT ( * ) AS col1, NULLIF ( + CASE + - 21 WHEN + - CAST ( NULL AS INTEGER ) THEN 67 * - 18 + - COUNT ( * ) + - 18 ELSE NULL END, - - 77 ) AS col1
----
82
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8551
SELECT ALL + 15 * - + CASE + ( CAST( NULL AS SIGNED ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST( NULL AS SIGNED ) / + + COUNT( * ) THEN NULL ELSE + MIN( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2
----
1967625
-95

skipif mysql # not compatible
query II rowsort label-8551
SELECT ALL + 15 * - + CASE + ( CAST ( NULL AS INTEGER ) ) WHEN + - 32 THEN + - 73 * - 84 WHEN 61 * + + 22 + - 21 * - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) THEN NULL ELSE + MIN ( DISTINCT + 40 ) * + - 71 + - COALESCE ( + 75, - 54 * + - COUNT ( * ) * + ( + - 30 ) ) END * 45 AS col2, - 95 AS col2
----
1967625
-95

query I rowsort
SELECT DISTINCT ( - 81 )
----
-81

query II rowsort
SELECT ALL 59 - + - 71 AS col2, NULLIF ( - 69, - 79 ) * 85 + - 86 AS col0
----
130
-5951

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8554
SELECT + + 18 * - SUM( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT + + 18 * - SUM ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT + COALESCE ( - + 4, + 19 + + 14 ) * 94 + - + COUNT( * ) AS col0
----
-377

skipif mysql # not compatible
query I rowsort label-8555
SELECT + COALESCE ( - + 4, + 19 + + 14 ) * 94 + - + COUNT ( * ) AS col0
----
-377

query I rowsort
SELECT + 3 * + + ( + 54 ) * ( - 55 ) - 86 * - + 8
----
-8222

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT + - COUNT( * ) + - 34 col1
----
-35

skipif mysql # not compatible
query I rowsort label-8557
SELECT + - COUNT ( * ) + - 34 col1
----
-35

query I rowsort
SELECT - + 54
----
-54

query I rowsort
SELECT ALL 47 col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT + + 69 + 77 DIV COALESCE ( + 46, + 23 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-8560
SELECT + + 69 + 77 / COALESCE ( + 46, + 23 ) AS col0
----
70

query II rowsort
SELECT - + 63 - + 97 AS col0, + 9 AS col1
----
-160
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT + - ( - COUNT( * ) ) + + + 97
----
98

skipif mysql # not compatible
query I rowsort label-8562
SELECT + - ( - COUNT ( * ) ) + + + 97
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8563
SELECT + + 19 + - 68 + + - ( 87 ) + + + CAST( NULL AS SIGNED ) * - 67 / 54 * COUNT( * ) * + 99 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT + + 19 + - 68 + + - ( 87 ) + + + CAST ( NULL AS INTEGER ) * - 67 / 54 * COUNT ( * ) * + 99 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - + 64 AS col0
----
-64

query I rowsort
SELECT - 52 + 69 AS col0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT - CAST( NULL AS SIGNED ) + 27 + - ( + 71 ) + + + 19 * - 71 + - + 22 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT - CAST ( NULL AS INTEGER ) + 27 + - ( + 71 ) + + + 19 * - 71 + - + 22 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL 34 * COUNT( * ) AS col0
----
34

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL 34 * COUNT ( * ) AS col0
----
34

query I rowsort
SELECT + ( - 45 ) AS col2
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8569
SELECT - CAST( NULL AS SIGNED ) * 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8569
SELECT - CAST ( NULL AS INTEGER ) * 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8570
SELECT 77 * NULLIF ( + SUM( + + 69 ), - - 15 ) + CAST( - + 41 AS SIGNED ) AS col2
----
5272

skipif mysql # not compatible
query I rowsort label-8570
SELECT 77 * NULLIF ( + SUM ( + + 69 ), - - 15 ) + CAST ( - + 41 AS INTEGER ) AS col2
----
5272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8571
SELECT ALL ( + COUNT( * ) ) DIV - 55 + + 51 + + 37 * - + 50 * NULLIF ( + + 72, + 68 DIV - COUNT( * ) + - ( - - 14 ) ) * 12 AS col1
----
-1598349

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL ( + COUNT ( * ) ) / - 55 + + 51 + + 37 * - + 50 * NULLIF ( + + 72, + 68 / - COUNT ( * ) + - ( - - 14 ) ) * 12 AS col1
----
-1598349

query I rowsort
SELECT + 92 * - 71 AS col2
----
-6532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL 98 * 15 * + + CAST( 86 AS SIGNED ) * 20 + + 25 AS col2
----
2528425

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL 98 * 15 * + + CAST ( 86 AS INTEGER ) * 20 + + 25 AS col2
----
2528425

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8574
SELECT CAST( NULL AS SIGNED ) col2, 45 * - ( COUNT( * ) ) * 93
----
NULL
-4185

skipif mysql # not compatible
query II rowsort label-8574
SELECT CAST ( NULL AS INTEGER ) col2, 45 * - ( COUNT ( * ) ) * 93
----
NULL
-4185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8575
SELECT ALL + COALESCE ( 91, - - 85 + - COUNT( * ) + + 50 + 57 DIV + - 32 * + 92 )
----
91

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL + COALESCE ( 91, - - 85 + - COUNT ( * ) + + 50 + 57 / + - 32 * + 92 )
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT CAST( + 11 AS SIGNED )
----
11

skipif mysql # not compatible
query I rowsort label-8576
SELECT CAST ( + 11 AS INTEGER )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - 58 * - 8 * COUNT( * ) + + - 13
----
451

skipif mysql # not compatible
query I rowsort label-8577
SELECT - 58 * - 8 * COUNT ( * ) + + - 13
----
451

onlyif mysql # DIV for integer division: 
query I rowsort label-8578
SELECT - 14 DIV - 62 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-8578
SELECT - 14 / - 62 * - 55
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8579
SELECT ALL - 42 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL - 42 / 56
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT - 26 * + 63 * - COUNT( * ) AS col1
----
1638

skipif mysql # not compatible
query I rowsort label-8580
SELECT - 26 * + 63 * - COUNT ( * ) AS col1
----
1638

query I rowsort
SELECT ( + + 64 ) AS col1
----
64

query I rowsort
SELECT ALL + ( - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + 95 * - - 83 + - + 52 * - COUNT( * ) * ( + - ( + ( - COUNT( * ) ) ) ) + + + 84 AS col1
----
8021

skipif mysql # not compatible
query I rowsort label-8583
SELECT + 95 * - - 83 + - + 52 * - COUNT ( * ) * ( + - ( + ( - COUNT ( * ) ) ) ) + + + 84 AS col1
----
8021

query II rowsort
SELECT ALL - 37 AS col2, + 44 + + 0
----
-37
44

query I rowsort
SELECT DISTINCT - - 89 AS col0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8586
SELECT DISTINCT - AVG ( + - CAST( NULL AS SIGNED ) ) - + - COUNT( * ) * + 59 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - AVG ( + - CAST ( NULL AS INTEGER ) ) - + - COUNT ( * ) * + 59 AS col2
----
NULL

query I rowsort
SELECT ALL + + 22 * - 6
----
-132

query I rowsort
SELECT DISTINCT - 25 col2
----
-25

query I rowsort
SELECT DISTINCT - 86 * + + 16 AS col0
----
-1376

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT DISTINCT + - 9 - - COALESCE ( + 49, - 2 + - 51 * - 0 * - - COALESCE ( + 53, - + 95 + - COALESCE ( - ( - 12 ), + COUNT( * ) ) ) * - + 86 + + 16 + + + 32 * - - 76 * + + 35 * - + 96 + + + 79 ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT + - 9 - - COALESCE ( + 49, - 2 + - 51 * - 0 * - - COALESCE ( + 53, - + 95 + - COALESCE ( - ( - 12 ), + COUNT ( * ) ) ) * - + 86 + + 16 + + + 32 * - - 76 * + + 35 * - + 96 + + + 79 ) AS col2
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8591
SELECT - COALESCE ( - + 40, - 42 + 56 ) * - 54 + COALESCE ( - + 11, - ( - ( + 49 ) ) ) + COUNT( * ) * CASE + + 58 WHEN + CASE - 98 WHEN - MAX( 3 ) * - CASE - 83 WHEN 35 / + 23 + 1 * - 6 * + 21 * - ( - CAST( - + CAST( - 33 AS SIGNED ) AS SIGNED ) ) / + ( + 40 ) / + COUNT( * ) + - 36 THEN 69 + - + CAST( - 81 AS SIGNED ) - + + COALESCE ( + 22, + COALESCE ( 24, - 39, 72 * 35 * - + 97 ) + COUNT( * ) + CAST( NULL AS SIGNED ) ) / COUNT( * ) ELSE + 61 * - 70 END - - SUM( 68 ) THEN 92 END * COUNT( DISTINCT 85 + 37 ) + - 54 THEN 0 * + CAST( NULL AS SIGNED ) + 78 WHEN 28 THEN NULL ELSE NULL END - - 73 * - 65 * 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT - COALESCE ( - + 40, - 42 + 56 ) * - 54 + COALESCE ( - + 11, - ( - ( + 49 ) ) ) + COUNT ( * ) * CASE + + 58 WHEN + CASE - 98 WHEN - MAX ( 3 ) * - CASE - 83 WHEN 35 / + 23 + 1 * - 6 * + 21 * - ( - CAST ( - + CAST ( - 33 AS INTEGER ) AS INTEGER ) ) / + ( + 40 ) / + COUNT ( * ) + - 36 THEN 69 + - + CAST ( - 81 AS INTEGER ) - + + COALESCE ( + 22, + COALESCE ( 24, - 39, 72 * 35 * - + 97 ) + COUNT ( * ) + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) ELSE + 61 * - 70 END - - SUM ( 68 ) THEN 92 END * COUNT ( DISTINCT 85 + 37 ) + - 54 THEN 0 * + CAST ( NULL AS INTEGER ) + 78 WHEN 28 THEN NULL ELSE NULL END - - 73 * - 65 * 25 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + ( - 79 ) * COALESCE ( + - COUNT( * ), - 17 + + + 72, - 40 ) - - - 74 + COUNT( * ) * + 27 + 16 + SUM( DISTINCT - 59 ) * + 14 * 29 AS col0
----
-23906

skipif mysql # not compatible
query I rowsort label-8592
SELECT + ( - 79 ) * COALESCE ( + - COUNT ( * ), - 17 + + + 72, - 40 ) - - - 74 + COUNT ( * ) * + 27 + 16 + SUM ( DISTINCT - 59 ) * + 14 * 29 AS col0
----
-23906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8593
SELECT ( COALESCE ( 14, - - ( + CAST( NULL AS SIGNED ) ), + + 87 ) ) * - 42
----
-588

skipif mysql # not compatible
query I rowsort label-8593
SELECT ( COALESCE ( 14, - - ( + CAST ( NULL AS INTEGER ) ), + + 87 ) ) * - 42
----
-588

query I rowsort
SELECT - ( 8 ) AS col2
----
-8

query I rowsort
SELECT - - 56 AS col1
----
56

query I rowsort
SELECT ALL - 43 AS col0
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT ALL - 43 + - MIN( DISTINCT + 87 ) * + NULLIF ( + MIN( DISTINCT + + 57 ), - + 18 )
----
-5002

skipif mysql # not compatible
query I rowsort label-8597
SELECT ALL - 43 + - MIN ( DISTINCT + 87 ) * + NULLIF ( + MIN ( DISTINCT + + 57 ), - + 18 )
----
-5002

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT - SUM( ALL + 79 ) * + 57 AS col1
----
-4503

skipif mysql # not compatible
query I rowsort label-8598
SELECT - SUM ( ALL + 79 ) * + 57 AS col1
----
-4503

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT ALL COUNT( * ) + 8 * + 61
----
489

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL COUNT ( * ) + 8 * + 61
----
489

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT + SUM( DISTINCT - + 99 ) AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-8600
SELECT + SUM ( DISTINCT - + 99 ) AS col0
----
-99

query I rowsort
SELECT - + 66
----
-66

query I rowsort
SELECT 25 * 15 + + 71 AS col0
----
446

query I rowsort
SELECT DISTINCT 93 * 70 * + - 83 AS col1
----
-540330

query I rowsort
SELECT - 94 AS col2
----
-94

query II rowsort
SELECT 93, - 16 col2
----
93
-16

query I rowsort
SELECT ALL 87 + - 15 * - 54 AS col1
----
897

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT COUNT( - - 97 ) - + 7 * + - 46 AS col2
----
323

skipif mysql # not compatible
query I rowsort label-8607
SELECT COUNT ( - - 97 ) - + 7 * + - 46 AS col2
----
323

query I rowsort
SELECT DISTINCT 57 * - 18
----
-1026

query I rowsort
SELECT DISTINCT 16 + NULLIF ( + 76, 11 * - COALESCE ( - + 88, - 12 * + 76 * - + 28, - 18 ) - + 89 * - 20 ) + 20 - 55
----
57

query I rowsort
SELECT ALL - 48 AS col1
----
-48

query I rowsort
SELECT ALL - 19 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8612
SELECT ALL 51 + - + CAST( NULL AS SIGNED ) + + 54 + - 37 + + COUNT( * ) * 67 * 57
----
NULL

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL 51 + - + CAST ( NULL AS INTEGER ) + + 54 + - 37 + + COUNT ( * ) * 67 * 57
----
NULL

query II rowsort
SELECT DISTINCT - 25, - 88 AS col2
----
-25
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT ALL - SUM( - ( - 63 ) ) AS col1
----
-63

skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - SUM ( - ( - 63 ) ) AS col1
----
-63

query I rowsort
SELECT ALL - 46 + - 1 + - ( 89 ) + 84 AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT 10 * - 22 - - - COUNT( * ) AS col2
----
-221

skipif mysql # not compatible
query I rowsort label-8616
SELECT 10 * - 22 - - - COUNT ( * ) AS col2
----
-221

onlyif mysql # aggregate syntax: 
query II rowsort label-8617
SELECT ALL - 38, - 37 - + 20 + + 46 / - + CASE NULLIF ( - 18, + 96 ) WHEN + 71 THEN + COUNT( DISTINCT + 61 ) ELSE NULL END AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-8617
SELECT ALL - 38, - 37 - + 20 + + 46 / - + CASE NULLIF ( - 18, + 96 ) WHEN + 71 THEN + COUNT ( DISTINCT + 61 ) ELSE NULL END AS col2
----
-38
NULL

query II rowsort
SELECT + 16 AS col2, - 56
----
16
-56

query I rowsort
SELECT DISTINCT 79 * - 36
----
-2844

query I rowsort
SELECT 93 * + 52 * 96 col0
----
464256

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8621
SELECT 28 * - 82 DIV COUNT( DISTINCT + - 59 ), 26 AS col0
----
-2296
26

skipif mysql # not compatible
query II rowsort label-8621
SELECT 28 * - 82 / COUNT ( DISTINCT + - 59 ), 26 AS col0
----
-2296
26

onlyif mysql # aggregate syntax: 
query II rowsort label-8622
SELECT ALL - 38 AS col1, 3 * - COUNT( * )
----
-38
-3

skipif mysql # not compatible
query II rowsort label-8622
SELECT ALL - 38 AS col1, 3 * - COUNT ( * )
----
-38
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8623
SELECT 84 DIV + - 24 + - - 75 col0
----
72

skipif mysql # not compatible
query I rowsort label-8623
SELECT 84 / + - 24 + - - 75 col0
----
72

query I rowsort
SELECT ALL - 82 AS col0
----
-82

query I rowsort
SELECT 18 * + + 16
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT ALL 91 * + COUNT( * ) + - COUNT( - - 55 )
----
90

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL 91 * + COUNT ( * ) + - COUNT ( - - 55 )
----
90

query II rowsort
SELECT ALL - - 96 AS col0, + 23 + - + 69
----
96
-46

query I rowsort
SELECT ALL - ( + + 45 )
----
-45

query I rowsort
SELECT DISTINCT - + 14 AS col1
----
-14

query I rowsort
SELECT + 88 * + 91 + 51
----
8059

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8631
SELECT MIN( DISTINCT - 93 ) * 90 + + + CASE 22 WHEN CAST( 36 AS SIGNED ) THEN - 33 WHEN - + 64 * 24 / + COALESCE ( + 98, - 5 ) + + AVG ( - 51 ) THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8631
SELECT MIN ( DISTINCT - 93 ) * 90 + + + CASE 22 WHEN CAST ( 36 AS INTEGER ) THEN - 33 WHEN - + 64 * 24 / + COALESCE ( + 98, - 5 ) + + AVG ( - 51 ) THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ( + 32 ) * 20 AS col2
----
640

query I rowsort
SELECT + ( 60 ) AS col1
----
60

query I rowsort
SELECT CASE 30 WHEN 58 THEN - 15 * - 88 END / 5 AS col1
----
NULL

query I rowsort
SELECT 78 + + - ( + 25 )
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT SUM( ALL - COALESCE ( CAST( NULL AS SIGNED ), + 64 + 46 ) ) AS col2
----
-110

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT SUM ( ALL - COALESCE ( CAST ( NULL AS INTEGER ), + 64 + 46 ) ) AS col2
----
-110

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8637
SELECT DISTINCT ( + 52 ), + ( + + 37 ) + 64 * + CAST( NULL AS DECIMAL ) * + SUM( 13 ) AS col1
----
52
NULL

skipif mysql # not compatible
query II rowsort label-8637
SELECT DISTINCT ( + 52 ), + ( + + 37 ) + 64 * + CAST ( NULL AS REAL ) * + SUM ( 13 ) AS col1
----
52
NULL

query II rowsort
SELECT - - 70 AS col2, - 31 AS col2
----
70
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT ALL + - 15 + CASE 95 WHEN - - 59 - + - 99 * + + 81 + - 86 / + 28 + 92 + - + COUNT( * ) * + COUNT( * ) THEN NULL ELSE - 20 * - COUNT( * ) END
----
5

skipif mysql # not compatible
query I rowsort label-8639
SELECT ALL + - 15 + CASE 95 WHEN - - 59 - + - 99 * + + 81 + - 86 / + 28 + 92 + - + COUNT ( * ) * + COUNT ( * ) THEN NULL ELSE - 20 * - COUNT ( * ) END
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8640
SELECT DISTINCT + 45, - 8 + - + 92 DIV - COUNT( * ) AS col2
----
45
84

skipif mysql # not compatible
query II rowsort label-8640
SELECT DISTINCT + 45, - 8 + - + 92 / - COUNT ( * ) AS col2
----
45
84

query I rowsort
SELECT ALL - 92 + NULLIF ( - 34, + + 97 * - 58 * 2 + + ( + + 28 ) + - + 33 * + - 59 )
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT ALL - + COUNT( * ) * 72 * + 50 + - ( + 26 ) + + 5 + + + 44 * + 97
----
647

skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL - + COUNT ( * ) * 72 * + 50 + - ( + 26 ) + + 5 + + + 44 * + 97
----
647

query I rowsort
SELECT ( 12 ) + - - 75 * 43 + - + 23 AS col1
----
3214

query I rowsort
SELECT + 87 + - 97
----
-10

query II rowsort
SELECT - 27 AS col0, 7 * - 36
----
-27
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8646
SELECT 58 + COALESCE ( - 26, CAST( - 8 AS SIGNED ) ) AS col2
----
32

skipif mysql # not compatible
query I rowsort label-8646
SELECT 58 + COALESCE ( - 26, CAST ( - 8 AS INTEGER ) ) AS col2
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT ALL - 78 + - - 96 - - - 95 * - + 90 + 92 - + ( COUNT( * ) )
----
8659

skipif mysql # not compatible
query I rowsort label-8647
SELECT ALL - 78 + - - 96 - - - 95 * - + 90 + 92 - + ( COUNT ( * ) )
----
8659

onlyif mysql # aggregate syntax: 
query II rowsort label-8648
SELECT 87 + - COUNT( * ) AS col0, 37 AS col1
----
86
37

skipif mysql # not compatible
query II rowsort label-8648
SELECT 87 + - COUNT ( * ) AS col0, 37 AS col1
----
86
37

query I rowsort
SELECT ALL - 14 + + 31 + 53 + - 94 AS col2
----
-24

query I rowsort
SELECT DISTINCT + 60 + 12 AS col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT ALL COUNT( * ) - + 26 + + + 60 AS col2
----
35

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL COUNT ( * ) - + 26 + + + 60 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT COUNT( * ) + - + 15 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-8652
SELECT COUNT ( * ) + - + 15 AS col1
----
-14

query I rowsort
SELECT ALL + 42 * - 42
----
-1764

query I rowsort
SELECT 74 * - - 77 AS col2
----
5698

query I rowsort
SELECT 12 + + + CASE + + 1 WHEN 62 THEN + 35 + 99 ELSE - 64 * + + 35 - + 38 END
----
-2266

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT CASE ( 71 ) WHEN + 80 THEN NULL WHEN - 31 + + - 94 * + 99 + - 41 + + + 94 * - - 58 / 86 + + 67 THEN + NULLIF ( - 73, 77 ) ELSE - 45 + + COUNT( * ) END, + 23 + + 46 AS col1
----
-44
69

skipif mysql # not compatible
query II rowsort label-8656
SELECT CASE ( 71 ) WHEN + 80 THEN NULL WHEN - 31 + + - 94 * + 99 + - 41 + + + 94 * - - 58 / 86 + + 67 THEN + NULLIF ( - 73, 77 ) ELSE - 45 + + COUNT ( * ) END, + 23 + + 46 AS col1
----
-44
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ( - + 43 ) * - + COUNT( * )
----
43

skipif mysql # not compatible
query I rowsort label-8657
SELECT ( - + 43 ) * - + COUNT ( * )
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT + 79 * COUNT( * ) * - + 56
----
-4424

skipif mysql # not compatible
query I rowsort label-8658
SELECT + 79 * COUNT ( * ) * - + 56
----
-4424

query I rowsort
SELECT ALL + 73 AS col0
----
73

query I rowsort
SELECT DISTINCT - 70 * - + 76
----
5320

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8661
SELECT CASE - 12 WHEN - - 20 THEN NULL WHEN 64 THEN NULL ELSE - - 60 END AS col1, + 88 * - 12 + NULLIF ( 86, + CAST( NULL AS SIGNED ) )
----
60
-970

skipif mysql # not compatible
query II rowsort label-8661
SELECT CASE - 12 WHEN - - 20 THEN NULL WHEN 64 THEN NULL ELSE - - 60 END AS col1, + 88 * - 12 + NULLIF ( 86, + CAST ( NULL AS INTEGER ) )
----
60
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT DISTINCT + COUNT( DISTINCT + 61 )
----
1

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT + COUNT ( DISTINCT + 61 )
----
1

query I rowsort
SELECT + 49 * + - 89 AS col1
----
-4361

query I rowsort
SELECT ALL + 63 AS col0
----
63

query I rowsort
SELECT ALL + + ( - 50 ) AS col0
----
-50

query I rowsort
SELECT DISTINCT + CASE + 59 WHEN + 69 THEN - 13 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT + MIN( ALL 77 ) * - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT + MIN ( ALL 77 ) * - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT - 55 * + 53 * + 26 + + 1 + 19 * + COUNT( * ) AS col0
----
-75770

skipif mysql # not compatible
query I rowsort label-8668
SELECT - 55 * + 53 * + 26 + + 1 + 19 * + COUNT ( * ) AS col0
----
-75770

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT ALL COUNT( * ) * + ( + 9 ) DIV - NULLIF ( ( + 67 ), - 24 * + 90 ) - - + 11 DIV + 48 + - 51 + + 22 + - 47 - 68 * - COUNT( * ) AS col1
----
-8

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL COUNT ( * ) * + ( + 9 ) / - NULLIF ( ( + 67 ), - 24 * + 90 ) - - + 11 / + 48 + - 51 + + 22 + - 47 - 68 * - COUNT ( * ) AS col1
----
-8

onlyif mysql # DIV for integer division: 
query II rowsort label-8670
SELECT + 95 + - 64, - 35 DIV - 9 AS col0
----
31
3

skipif mysql # not compatible
query II rowsort label-8670
SELECT + 95 + - 64, - 35 / - 9 AS col0
----
31
3

query I rowsort
SELECT + - 16 col0
----
-16

query I rowsort
SELECT + + 60 col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT 56 * - + 56 * - NULLIF ( COUNT( + - 74 ), - 12 ) * + 96 + 63 * - 23
----
299607

skipif mysql # not compatible
query I rowsort label-8673
SELECT 56 * - + 56 * - NULLIF ( COUNT ( + - 74 ), - 12 ) * + 96 + 63 * - 23
----
299607

query I rowsort
SELECT ALL + - 96
----
-96

query I rowsort
SELECT + NULLIF ( + - 77, - - ( 91 ) )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT - + MIN( - + 20 ) + + 92 AS col2
----
112

skipif mysql # not compatible
query I rowsort label-8676
SELECT - + MIN ( - + 20 ) + + 92 AS col2
----
112

query I rowsort
SELECT - 58 + - 50
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8678
SELECT + + 46 * + 88 * + COALESCE ( + - CAST( NULL AS SIGNED ), - 72 ) + + 53
----
-291403

skipif mysql # not compatible
query I rowsort label-8678
SELECT + + 46 * + 88 * + COALESCE ( + - CAST ( NULL AS INTEGER ), - 72 ) + + 53
----
-291403

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT + MAX( + + 59 ) * - 1 + 41 DIV + 60 AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-8679
SELECT + MAX ( + + 59 ) * - 1 + 41 / + 60 AS col2
----
-59

query I rowsort
SELECT - - 65
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT - 85 DIV + 60 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8681
SELECT - 85 / + 60 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL + COUNT( ALL - 19 ) + + 36 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + COUNT ( ALL - 19 ) + + 36 AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT + COUNT( * ) * + MAX( DISTINCT - - 24 )
----
24

skipif mysql # not compatible
query I rowsort label-8683
SELECT + COUNT ( * ) * + MAX ( DISTINCT - - 24 )
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT + 33 + - + COUNT( - - 22 ) - 75 - 9 + + 95 + 33 * + + 54 * - + COUNT( * ) + + NULLIF ( + + 24, 77 * + CASE + - AVG ( - 57 ) WHEN - + 85 * - + 81 - - + 39 - - + 55 * - SUM( - CAST( NULL AS SIGNED ) ) / - - ( 92 ) * 14 / + + 1 + + + MAX( DISTINCT - + 13 ) * 75 THEN COUNT( * ) + + - 55 + - - 61 WHEN - 51 THEN NULL END ) + + 22 + + CASE + 37 WHEN 34 THEN + - 77 WHEN - 78 * - 42 - COUNT( * ) + 99 THEN - - NULLIF ( 2, + 74 * - 35 ) WHEN + NULLIF ( - CAST( COUNT( * ) AS SIGNED ), - 80 * + 99 ) THEN 63 * 45 + + CASE - COALESCE ( 85, 86, 16 + + 57 * 32 ) + 34 WHEN 2 / - NULLIF ( - SUM( DISTINCT 52 ), + 18 ) THEN - ( 9 ) WHEN + CAST( NULL AS SIGNED ) THEN 87 ELSE COUNT( * ) END END * MAX( ALL 88 * ( + 78 ) ) * - 40 * 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT + 33 + - + COUNT ( - - 22 ) - 75 - 9 + + 95 + 33 * + + 54 * - + COUNT ( * ) + + NULLIF ( + + 24, 77 * + CASE + - AVG ( - 57 ) WHEN - + 85 * - + 81 - - + 39 - - + 55 * - SUM ( - CAST ( NULL AS INTEGER ) ) / - - ( 92 ) * 14 / + + 1 + + + MAX ( DISTINCT - + 13 ) * 75 THEN COUNT ( * ) + + - 55 + - - 61 WHEN - 51 THEN NULL END ) + + 22 + + CASE + 37 WHEN 34 THEN + - 77 WHEN - 78 * - 42 - COUNT ( * ) + 99 THEN - - NULLIF ( 2, + 74 * - 35 ) WHEN + NULLIF ( - CAST ( COUNT ( * ) AS INTEGER ), - 80 * + 99 ) THEN 63 * 45 + + CASE - COALESCE ( 85, 86, 16 + + 57 * 32 ) + 34 WHEN 2 / - NULLIF ( - SUM ( DISTINCT 52 ), + 18 ) THEN - ( 9 ) WHEN + CAST ( NULL AS INTEGER ) THEN 87 ELSE COUNT ( * ) END END * MAX ( ALL 88 * ( + 78 ) ) * - 40 * 48
----
NULL

query I rowsort
SELECT - 92 col2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT ALL - COUNT( * ) - - ( - CASE + 7 WHEN 27 THEN - COALESCE ( + - 51, - 50 ) ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8686
SELECT ALL - COUNT ( * ) - - ( - CASE + 7 WHEN 27 THEN - COALESCE ( + - 51, - 50 ) ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT ALL - 73 * + COALESCE ( 1, - 22, + 44 + - + ( + 41 ) )
----
-73

query II rowsort
SELECT - 3 AS col0, 5 - 5 col0
----
-3
0

query I rowsort
SELECT 5 AS col0
----
5

query I rowsort
SELECT - 33 * - - 78 AS col0
----
-2574

query I rowsort
SELECT ALL ( - + 30 ) AS col0
----
-30

query I rowsort
SELECT - 3 - + 77 + + + 78 + - 52 * 23 AS col2
----
-1198

query I rowsort
SELECT ALL NULLIF ( - 21, - 57 * 95 ) col0
----
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8694
SELECT ALL CAST( NULL AS DECIMAL ) * - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL CAST ( NULL AS REAL ) * - 83
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT - 49 DIV 27 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 49 / 27 col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8696
SELECT ALL + COUNT( * ) DIV 44
----
0

skipif mysql # not compatible
query I rowsort label-8696
SELECT ALL + COUNT ( * ) / 44
----
0

query II rowsort
SELECT DISTINCT + 66, 41 + + 5 + - 61 AS col0
----
66
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT DISTINCT + ( + - 98 ) * 20 * - 42 DIV + 42
----
1960

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT + ( + - 98 ) * 20 * - 42 / + 42
----
1960

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT + COUNT( 66 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + COUNT ( 66 ) AS col0
----
1

query I rowsort
SELECT ALL 14 * - 50 AS col1
----
-700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8701
SELECT DISTINCT + + COUNT( * ), 85 * - - ( + 26 ) + + - 56 + + COALESCE ( + - CAST( + SUM( - 71 ) AS SIGNED ), + - 18 ) * + 66 AS col1
----
1
6840

skipif mysql # not compatible
query II rowsort label-8701
SELECT DISTINCT + + COUNT ( * ), 85 * - - ( + 26 ) + + - 56 + + COALESCE ( + - CAST ( + SUM ( - 71 ) AS INTEGER ), + - 18 ) * + 66 AS col1
----
1
6840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8702
SELECT ALL - - COALESCE ( + - 40, - CAST( NULL AS SIGNED ), 5 * 15 ) * + 87 + - 18 * + + 3 + + 27
----
-3507

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL - - COALESCE ( + - 40, - CAST ( NULL AS INTEGER ), 5 * 15 ) * + 87 + - 18 * + + 3 + + 27
----
-3507

query II rowsort
SELECT DISTINCT + - 85 AS col1, 63 - + 69
----
-85
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-8704
SELECT ALL + 50 * + 5 + - 67 DIV 93 AS col1
----
250

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL + 50 * + 5 + - 67 / 93 AS col1
----
250

query II rowsort
SELECT + 66 AS col0, ( - + 26 )
----
66
-26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8706
SELECT + 39 * - 59 + + 98 + 93 + - - 74 * COUNT( * ) * + + 32 + 12 DIV + 56 AS col2
----
258

skipif mysql # not compatible
query I rowsort label-8706
SELECT + 39 * - 59 + + 98 + 93 + - - 74 * COUNT ( * ) * + + 32 + 12 / + 56 AS col2
----
258

query I rowsort
SELECT + 13 * - 48 * 14 AS col2
----
-8736

query I rowsort
SELECT + NULLIF ( + - 43, 84 + 86 )
----
-43

onlyif mysql # aggregate syntax: 
query II rowsort label-8709
SELECT DISTINCT + 38 AS col0, - MAX( - + 1 )
----
38
1

skipif mysql # not compatible
query II rowsort label-8709
SELECT DISTINCT + 38 AS col0, - MAX ( - + 1 )
----
38
1

query I rowsort
SELECT ALL + COALESCE ( - 99, 25, + 47 * + 29 )
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8711
SELECT + + 34 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8711
SELECT + + 34 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL 55 * - COALESCE ( - + 3, + 97 ) + - COUNT( * ) - 97 + + 95 * - 14
----
-1263

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL 55 * - COALESCE ( - + 3, + 97 ) + - COUNT ( * ) - 97 + + 95 * - 14
----
-1263

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8713
SELECT - CAST( 67 AS SIGNED ) AS col0
----
-67

skipif mysql # not compatible
query I rowsort label-8713
SELECT - CAST ( 67 AS INTEGER ) AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + COUNT( * ) + 63
----
64

skipif mysql # not compatible
query I rowsort label-8714
SELECT + COUNT ( * ) + 63
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT - 39 - + 66 + COUNT( * )
----
-104

skipif mysql # not compatible
query I rowsort label-8715
SELECT - 39 - + 66 + COUNT ( * )
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT - CAST( - AVG ( DISTINCT 33 ) AS SIGNED ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-8716
SELECT - CAST ( - AVG ( DISTINCT 33 ) AS INTEGER ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT - 16 + - + 94 - - - COUNT( * )
----
-111

skipif mysql # not compatible
query I rowsort label-8717
SELECT - 16 + - + 94 - - - COUNT ( * )
----
-111

query I rowsort
SELECT ALL NULLIF ( + 50, - 42 * - - 3 + 49 / - + 24 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8719
SELECT - 33 * + 75 * - COUNT( ALL 50 ) AS col1, 86 DIV + + 80 AS col2
----
2475
1

skipif mysql # not compatible
query II rowsort label-8719
SELECT - 33 * + 75 * - COUNT ( ALL 50 ) AS col1, 86 / + + 80 AS col2
----
2475
1

query I rowsort
SELECT 28 * 69 AS col0
----
1932

query I rowsort
SELECT ALL 58 AS col2
----
58

query I rowsort
SELECT 2 + - 30 * + + 92 AS col2
----
-2758

query I rowsort
SELECT 12 + + 78 + 96 * + 70 AS col2
----
6810

query I rowsort
SELECT DISTINCT 17 AS col1
----
17

query I rowsort
SELECT ALL 21 AS col0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT DISTINCT + 97 * - + COUNT( * ) AS col1, - 72 + - - MIN( + 6 ) + + 9 * + - ( + COUNT( * ) ) AS col1
----
-97
-75

skipif mysql # not compatible
query II rowsort label-8726
SELECT DISTINCT + 97 * - + COUNT ( * ) AS col1, - 72 + - - MIN ( + 6 ) + + 9 * + - ( + COUNT ( * ) ) AS col1
----
-97
-75

query I rowsort
SELECT 99 + - 29 AS col1
----
70

query I rowsort
SELECT DISTINCT 26 col2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT CAST( NULL AS SIGNED ) * - - 96 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT CAST ( NULL AS INTEGER ) * - - 96 * 31
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8730
SELECT DISTINCT + COUNT( * ) + - COUNT( ALL + 90 ) + + + 54 DIV 35
----
1

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT + COUNT ( * ) + - COUNT ( ALL + 90 ) + + + 54 / 35
----
1

query I rowsort
SELECT + + 53 AS col2
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-8732
SELECT ALL + 20 + 1 DIV 24 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + 20 + 1 / 24 AS col2
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8733
SELECT - + 25 DIV - 85 * + 42 + - - COUNT( * ) * - - 0 - + 29 - - CAST( + - 95 AS SIGNED ) + - + 76 AS col0
----
-200

skipif mysql # not compatible
query I rowsort label-8733
SELECT - + 25 / - 85 * + 42 + - - COUNT ( * ) * - - 0 - + 29 - - CAST ( + - 95 AS INTEGER ) + - + 76 AS col0
----
-200

query I rowsort
SELECT DISTINCT + 9 + 17 * 6 + - 21 - - 21 AS col2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL - + MIN( 7 ) AS col2
----
-7

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL - + MIN ( 7 ) AS col2
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT - 90 + 85 + - + 67 + - MAX( - 1 ) * - 68 col1
----
-140

skipif mysql # not compatible
query I rowsort label-8736
SELECT - 90 + 85 + - + 67 + - MAX ( - 1 ) * - 68 col1
----
-140

query I rowsort
SELECT 45 * + + 64
----
2880

query II rowsort
SELECT ALL + ( + 65 ) + - 36 * 45, 9 AS col2
----
-1555
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8739
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( + 19 ) + 58 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( + 19 ) + 58 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8740
SELECT + COUNT( * ) DIV - COUNT( * ) + - - 63 AS col1
----
62

skipif mysql # not compatible
query I rowsort label-8740
SELECT + COUNT ( * ) / - COUNT ( * ) + - - 63 AS col1
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8741
SELECT ALL - - 95 + - + 22 * + + 81 + + 84 AS col0, 12 AS col1, CAST( NULL AS DECIMAL ) * 57 col1
----
-1603
12
NULL

skipif mysql # not compatible
query III rowsort label-8741
SELECT ALL - - 95 + - + 22 * + + 81 + + 84 AS col0, 12 AS col1, CAST ( NULL AS REAL ) * 57 col1
----
-1603
12
NULL

query I rowsort
SELECT ALL - - 14
----
14

query I rowsort
SELECT DISTINCT - 77 * + 98
----
-7546

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT + 99 * - 56 + - MAX( ALL + 25 )
----
-5569

skipif mysql # not compatible
query I rowsort label-8744
SELECT + 99 * - 56 + - MAX ( ALL + 25 )
----
-5569

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT - COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT - COUNT ( * ) col2
----
-1

query II rowsort
SELECT ALL - 33 - + 92 AS col1, - 84
----
-125
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - MIN( - 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - MIN ( - 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT ALL 59 - - + SUM( + 85 ) AS col0
----
144

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL 59 - - + SUM ( + 85 ) AS col0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-8749
SELECT 2 + + COUNT( * ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-8749
SELECT 2 + + COUNT ( * ) AS col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT ALL COUNT( * ) - + 24
----
-23

skipif mysql # not compatible
query I rowsort label-8750
SELECT ALL COUNT ( * ) - + 24
----
-23

query I rowsort
SELECT 28 * - 91 AS col2
----
-2548

query I rowsort
SELECT DISTINCT 15 * 80 AS col1
----
1200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8753
SELECT ALL 55, CAST( NULL AS SIGNED ) AS col1
----
55
NULL

skipif mysql # not compatible
query II rowsort label-8753
SELECT ALL 55, CAST ( NULL AS INTEGER ) AS col1
----
55
NULL

query I rowsort
SELECT DISTINCT 45 * + 92
----
4140

query I rowsort
SELECT 12 * + + 27 AS col0
----
324

query I rowsort
SELECT ALL 10 col0
----
10

query I rowsort
SELECT DISTINCT 80 * - 97
----
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT ALL COUNT( * ) + - + 3 AS col0
----
-2

skipif mysql # not compatible
query I rowsort label-8758
SELECT ALL COUNT ( * ) + - + 3 AS col0
----
-2

query II rowsort
SELECT DISTINCT 16 AS col0, 7 AS col0
----
16
7

query I rowsort
SELECT ALL 14 + + 41 col0
----
55

query I rowsort
SELECT 2 + - ( - NULLIF ( + - 9, + - CASE 80 WHEN 99 THEN - + 0 WHEN + + 50 + - 26 / + 70 * - 10 THEN NULL END ) )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT 37 * - MAX( - 3 )
----
111

skipif mysql # not compatible
query I rowsort label-8762
SELECT 37 * - MAX ( - 3 )
----
111

query I rowsort
SELECT DISTINCT 27 AS col1
----
27

query I rowsort
SELECT DISTINCT ( - + 84 ) + + 49 * + CASE + 10 WHEN + + 53 * - 25 THEN - - NULLIF ( - 88, 35 ) WHEN - 98 * + + 50 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT 27 - + CASE 57 WHEN + 44 / - - 78 THEN - COALESCE ( - COUNT( * ), + + SUM( ALL + 49 ) ) ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8765
SELECT 27 - + CASE 57 WHEN + 44 / - - 78 THEN - COALESCE ( - COUNT ( * ), + + SUM ( ALL + 49 ) ) ELSE NULL END col0
----
NULL

query II rowsort
SELECT 16, 98 * - 69 + - 97 col1
----
16
-6859

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8767
SELECT ALL - 48 / 49 * - CAST( NULL AS SIGNED ) * - 14 * + 21, ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8767
SELECT ALL - 48 / 49 * - CAST ( NULL AS INTEGER ) * - 14 * + 21, ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT ALL + 94 + + ( - 90 ) DIV + 7
----
82

skipif mysql # not compatible
query I rowsort label-8768
SELECT ALL + 94 + + ( - 90 ) / + 7
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT CAST( NULL AS SIGNED ) - + ( CASE SUM( 86 ) WHEN 24 THEN 26 * + MIN( ALL - 58 / 19 ) + + 9 END + + 76 * + 53 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8769
SELECT CAST ( NULL AS INTEGER ) - + ( CASE SUM ( 86 ) WHEN 24 THEN 26 * + MIN ( ALL - 58 / 19 ) + + 9 END + + 76 * + 53 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT ALL ( CASE + 38 WHEN + 88 THEN + NULLIF ( + 27, 62 ) * ( + 54 ) + + 88 WHEN - SUM( DISTINCT 66 ) THEN NULL END ) + 75 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL ( CASE + 38 WHEN + 88 THEN + NULLIF ( + 27, 62 ) * ( + 54 ) + + 88 WHEN - SUM ( DISTINCT 66 ) THEN NULL END ) + 75 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT DISTINCT COUNT( * ) DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT COUNT ( * ) / + 40
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT COUNT( * ) + 89 * COALESCE ( + 70 DIV 38 - - MAX( 93 ) DIV 10, 24 * + 76 )
----
891

skipif mysql # not compatible
query I rowsort label-8772
SELECT COUNT ( * ) + 89 * COALESCE ( + 70 / 38 - - MAX ( 93 ) / 10, 24 * + 76 )
----
891

query I rowsort
SELECT DISTINCT 92 AS col2
----
92

query I rowsort
SELECT ALL - 22 * 93 + + 78 AS col1
----
-1968

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + MAX( 3 )
----
3

skipif mysql # not compatible
query I rowsort label-8775
SELECT + MAX ( 3 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT - 42 DIV + 97 + + ( + 44 ) * 36 AS col0
----
1584

skipif mysql # not compatible
query I rowsort label-8776
SELECT - 42 / + 97 + + ( + 44 ) * 36 AS col0
----
1584

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + MIN( 4 )
----
4

skipif mysql # not compatible
query I rowsort label-8777
SELECT + MIN ( 4 )
----
4

query I rowsort
SELECT 58 * 1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT ALL - COALESCE ( + CAST( + 7 AS SIGNED ), 89 )
----
-7

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - COALESCE ( + CAST ( + 7 AS INTEGER ), 89 )
----
-7

query I rowsort
SELECT ALL - 7 AS col2
----
-7

query I rowsort
SELECT + 20 col1
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8782
SELECT ALL - COUNT( * ) DIV - SUM( 26 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL - COUNT ( * ) / - SUM ( 26 ) AS col1
----
0

query I rowsort
SELECT ALL - ( - 83 ) col2
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT ALL - COALESCE ( ( + 39 ), - 46 - + 52 * 4, MIN( + 88 ) ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-8784
SELECT ALL - COALESCE ( ( + 39 ), - 46 - + 52 * 4, MIN ( + 88 ) ) AS col1
----
-39

query I rowsort
SELECT DISTINCT - 26
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT 96 * COUNT( * ) AS col0
----
96

skipif mysql # not compatible
query I rowsort label-8786
SELECT 96 * COUNT ( * ) AS col0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8787
SELECT ALL - 14 DIV - 21 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8787
SELECT ALL - 14 / - 21 AS col0
----
0

query I rowsort
SELECT ALL - ( - 54 ) AS col2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT + 79 * - COALESCE ( 74, - SUM( 59 ) ) + 61
----
-5785

skipif mysql # not compatible
query I rowsort label-8789
SELECT + 79 * - COALESCE ( 74, - SUM ( 59 ) ) + 61
----
-5785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8790
SELECT + 16 * COALESCE ( CAST( - 34 AS SIGNED ), + CASE - 15 WHEN + 7 THEN - 74 END, - 71 * - 35 ) + 61 AS col1
----
-483

skipif mysql # not compatible
query I rowsort label-8790
SELECT + 16 * COALESCE ( CAST ( - 34 AS INTEGER ), + CASE - 15 WHEN + 7 THEN - 74 END, - 71 * - 35 ) + 61 AS col1
----
-483

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8791
SELECT - SUM( ALL + 0 ) DIV - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT - SUM ( ALL + 0 ) / - COUNT ( * ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT + 92 * COUNT( * ) AS col0
----
92

skipif mysql # not compatible
query I rowsort label-8792
SELECT + 92 * COUNT ( * ) AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - COUNT( * ) + + 92
----
91

skipif mysql # not compatible
query I rowsort label-8793
SELECT - COUNT ( * ) + + 92
----
91

query I rowsort
SELECT - 80 + 91
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8795
SELECT ALL + MIN( 86 ) * 50 AS col0
----
4300

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL + MIN ( 86 ) * 50 AS col0
----
4300

query I rowsort
SELECT ALL + 97 * 94
----
9118

query I rowsort
SELECT DISTINCT - 42 * + 69 col2
----
-2898

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8798
SELECT DISTINCT CASE + ( 27 ) WHEN - ( + 81 ) * + CAST( NULL AS SIGNED ) THEN NULL ELSE + 49 END AS col0
----
49

skipif mysql # not compatible
query I rowsort label-8798
SELECT DISTINCT CASE + ( 27 ) WHEN - ( + 81 ) * + CAST ( NULL AS INTEGER ) THEN NULL ELSE + 49 END AS col0
----
49

query I rowsort
SELECT ALL - 25 + - 39
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8800
SELECT DISTINCT + ( + 78 ) + - CAST( NULL AS SIGNED ) * - 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + ( + 78 ) + - CAST ( NULL AS INTEGER ) * - 53
----
NULL

query I rowsort
SELECT - 21 + + 25 AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT + 26 + + 97 DIV 64 AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8802
SELECT + 26 + + 97 / 64 AS col2
----
27

query I rowsort
SELECT - 97 * + 14 AS col0
----
-1358

query I rowsort
SELECT DISTINCT 71 AS col2
----
71

query I rowsort
SELECT ALL ( + 88 ) + + 39
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT + 90 + MAX( DISTINCT 18 + - 44 )
----
64

skipif mysql # not compatible
query I rowsort label-8806
SELECT + 90 + MAX ( DISTINCT 18 + - 44 )
----
64

query I rowsort
SELECT ALL 61 + + 46
----
107

query I rowsort
SELECT + 67 + - 37 AS col1
----
30

query I rowsort
SELECT ALL - CASE - 70 WHEN + 39 THEN - 34 END + 83 * + 66
----
NULL

query I rowsort
SELECT DISTINCT ( + 66 ) AS col2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8811
SELECT DISTINCT - CAST( 32 AS SIGNED ) * + 55
----
-1760

skipif mysql # not compatible
query I rowsort label-8811
SELECT DISTINCT - CAST ( 32 AS INTEGER ) * + 55
----
-1760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT ALL - 29 + - NULLIF ( 11 + + 6, 66 / CAST( NULL AS SIGNED ) ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - 29 + - NULLIF ( 11 + + 6, 66 / CAST ( NULL AS INTEGER ) ) AS col2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + MIN( 65 ) + 70
----
135

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + MIN ( 65 ) + 70
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT CAST( 22 AS SIGNED ) + + 12
----
34

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT CAST ( 22 AS INTEGER ) + + 12
----
34

query I rowsort
SELECT + 25 + - 11 AS col1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT - COALESCE ( MAX( + 65 ), 78 ) AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-8816
SELECT - COALESCE ( MAX ( + 65 ), 78 ) AS col2
----
-65

query I rowsort
SELECT + + 73 + + 46 * - 48 AS col2
----
-2135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT DISTINCT - CASE AVG ( 35 ) WHEN MIN( ALL 3 ) THEN NULL WHEN + 83 THEN SUM( 16 ) * - COALESCE ( - NULLIF ( 88, 28 ) + 7, - CAST( NULL AS SIGNED ) * - 10 ) + + 99 WHEN 35 * + 38 THEN NULL ELSE 15 END AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - CASE AVG ( 35 ) WHEN MIN ( ALL 3 ) THEN NULL WHEN + 83 THEN SUM ( 16 ) * - COALESCE ( - NULLIF ( 88, 28 ) + 7, - CAST ( NULL AS INTEGER ) * - 10 ) + + 99 WHEN 35 * + 38 THEN NULL ELSE 15 END AS col0
----
-15

query I rowsort
SELECT + - 99 + - 28 * - 12
----
237

query I rowsort
SELECT + 52 * - 14
----
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-8821
SELECT - COUNT( * ) * - 82 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-8821
SELECT - COUNT ( * ) * - 82 AS col2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT ALL 92 DIV - 49
----
-1

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL 92 / - 49
----
-1

query I rowsort
SELECT ALL + - 35
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8824
SELECT 96 / CAST( NULL AS SIGNED ) + 35 * 49 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8824
SELECT 96 / CAST ( NULL AS INTEGER ) + 35 * 49 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8825
SELECT DISTINCT 16 * + CASE 99 WHEN + CAST( MAX( 23 ) AS DECIMAL ) THEN 11 + - CASE - 63 - 53 / 87 WHEN COALESCE ( + 0, 23 * 20 ) THEN + 60 * + 84 ELSE - 9 + + 32 * - COUNT( * ) END WHEN + 80 + 8 * 49 THEN - 82 ELSE COUNT( * ) END - + ( + 80 ) AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-8825
SELECT DISTINCT 16 * + CASE 99 WHEN + CAST ( MAX ( 23 ) AS REAL ) THEN 11 + - CASE - 63 - 53 / 87 WHEN COALESCE ( + 0, 23 * 20 ) THEN + 60 * + 84 ELSE - 9 + + 32 * - COUNT ( * ) END WHEN + 80 + 8 * 49 THEN - 82 ELSE COUNT ( * ) END - + ( + 80 ) AS col2
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8826
SELECT ALL + 16 DIV 92
----
0

skipif mysql # not compatible
query I rowsort label-8826
SELECT ALL + 16 / 92
----
0

query I rowsort
SELECT ALL - + 65 * 58 AS col1
----
-3770

query I rowsort
SELECT + - 47 * + 89 AS col2
----
-4183

query I rowsort
SELECT ALL + + 72
----
72

query I rowsort
SELECT DISTINCT + 67 col2
----
67

query I rowsort
SELECT - - 93 * - 76 + 11
----
-7057

query I rowsort
SELECT DISTINCT + - 94 AS col1
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT ALL - CASE + 87 WHEN 85 DIV - 13 THEN NULL ELSE + 8 DIV - 33 + - 67 END * 47
----
3149

skipif mysql # not compatible
query I rowsort label-8833
SELECT ALL - CASE + 87 WHEN 85 / - 13 THEN NULL ELSE + 8 / - 33 + - 67 END * 47
----
3149

query I rowsort
SELECT DISTINCT + 54
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT + CAST( + + 8 AS SIGNED )
----
8

skipif mysql # not compatible
query I rowsort label-8835
SELECT + CAST ( + + 8 AS INTEGER )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8836
SELECT CASE - + COUNT( * ) WHEN - 55 THEN 88 * NULLIF ( - 72, + 40 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT CASE - + COUNT ( * ) WHEN - 55 THEN 88 * NULLIF ( - 72, + 40 ) END
----
NULL

query I rowsort
SELECT ALL 69 * ( 59 )
----
4071

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT - 81 * + + COUNT( + 37 )
----
-81

skipif mysql # not compatible
query I rowsort label-8838
SELECT - 81 * + + COUNT ( + 37 )
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT + COUNT( DISTINCT 70 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT + COUNT ( DISTINCT 70 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT - 33 DIV + 88 col2
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT - 33 / + 88 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8841
SELECT ALL - CAST( 80 AS DECIMAL ) * + 63 + - CAST( NULL AS SIGNED ) * - 20 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8841
SELECT ALL - CAST ( 80 AS REAL ) * + 63 + - CAST ( NULL AS INTEGER ) * - 20 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT DISTINCT + 93 * - 99 * - 84 + - 34 DIV 28
----
773387

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT + 93 * - 99 * - 84 + - 34 / 28
----
773387

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT DISTINCT + MIN( ALL 89 )
----
89

skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT + MIN ( ALL 89 )
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL - 60 * COUNT( * ) + ( 19 + - NULLIF ( 98, 44 ) ) * 22
----
-1798

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - 60 * COUNT ( * ) + ( 19 + - NULLIF ( 98, 44 ) ) * 22
----
-1798

query I rowsort
SELECT ALL + ( + 36 ) * - 23 col1
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT DISTINCT + 94 * - - COUNT( * ) + 23 * 49
----
1221

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + 94 * - - COUNT ( * ) + 23 * 49
----
1221

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - 15 * + COUNT( * ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8847
SELECT - 15 * + COUNT ( * ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + 48 * - - 78 * 52 AS col2
----
194688

query I rowsort
SELECT DISTINCT - 78 * 4 + 23
----
-289

onlyif mysql # DIV for integer division: 
query I rowsort label-8850
SELECT - 67 DIV + - 42
----
1

skipif mysql # not compatible
query I rowsort label-8850
SELECT - 67 / + - 42
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8851
SELECT ALL CAST( + - 98 AS SIGNED )
----
-98

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL CAST ( + - 98 AS INTEGER )
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT - MIN( DISTINCT + - 5 )
----
5

skipif mysql # not compatible
query I rowsort label-8852
SELECT - MIN ( DISTINCT + - 5 )
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 48 * + ( + 61 * - ( + 83 ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 48 * + ( + 61 * - ( + 83 ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL - SUM( DISTINCT + 46 ) + ( + 90 )
----
44

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - SUM ( DISTINCT + 46 ) + ( + 90 )
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT DISTINCT 14 DIV - ( 53 ) * + 25 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT 14 / - ( 53 ) * + 25 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT - MIN( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-8856
SELECT - MIN ( - 39 )
----
39

query I rowsort
SELECT ALL ( + 12 ) col0
----
12

query I rowsort
SELECT DISTINCT - + 51 - - 95
----
44

query I rowsort
SELECT - + 8 + + + 46 + 75 * 71 AS col2
----
5363

query I rowsort
SELECT + 84 * - CASE - 90 WHEN + 21 THEN - 68 END * AVG ( + 28 - + 12 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL 80 * + MIN( - 19 ) AS col1
----
-1520

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL 80 * + MIN ( - 19 ) AS col1
----
-1520

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - 50 - + ( - COUNT( * ) ) + - 51
----
-100

skipif mysql # not compatible
query I rowsort label-8862
SELECT - 50 - + ( - COUNT ( * ) ) + - 51
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT + CAST( 44 AS SIGNED ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-8863
SELECT + CAST ( 44 AS INTEGER ) AS col2
----
44

query I rowsort
SELECT + + 67 + - + COALESCE ( 72, 28 * 65 ) col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8865
SELECT DISTINCT + 3 * - CAST( + 72 AS SIGNED ) + + 39 AS col0
----
-177

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + 3 * - CAST ( + 72 AS INTEGER ) + + 39 AS col0
----
-177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8866
SELECT + - MIN( DISTINCT 52 ) + ( 90 ) DIV + 58
----
-51

skipif mysql # not compatible
query I rowsort label-8866
SELECT + - MIN ( DISTINCT 52 ) + ( 90 ) / + 58
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL + MAX( 15 ) * - 27
----
-405

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL + MAX ( 15 ) * - 27
----
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8868
SELECT + + ( + 99 ) * SUM( + 57 DIV 46 ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8868
SELECT + + ( + 99 ) * SUM ( + 57 / 46 ) AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT 65 * + + 79 - COUNT( * ) * CASE 90 * - 82 WHEN + 13 THEN - 15 ELSE + 22 END
----
5113

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT 65 * + + 79 - COUNT ( * ) * CASE 90 * - 82 WHEN + 13 THEN - 15 ELSE + 22 END
----
5113

query I rowsort
SELECT ALL + - 69 AS col0
----
-69

query I rowsort
SELECT - + 32 + - ( + 16 ) col1
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8872
SELECT - - 3 * + CAST( 35 AS SIGNED ) - 80 * COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-8872
SELECT - - 3 * + CAST ( 35 AS INTEGER ) - 80 * COUNT ( * ) AS col0
----
25

query I rowsort
SELECT NULLIF ( - 2, 14 * ( 43 ) + + 51 * - 12 ) * + 8 col1
----
-16

query I rowsort
SELECT ALL - + 92
----
-92

query I rowsort
SELECT - ( 23 ) AS col1
----
-23

query I rowsort
SELECT DISTINCT - + ( + 36 )
----
-36

query I rowsort
SELECT DISTINCT 28 + - 41 AS col1
----
-13

query I rowsort
SELECT ALL - 76 col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT COUNT( * ) * + - ( + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8879
SELECT COUNT ( * ) * + - ( + 66 )
----
-66

query I rowsort
SELECT ALL 63 + + - 20 + 66
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT ALL COALESCE ( - COALESCE ( - + 85, - 69 - NULLIF ( - 34 + - COUNT( DISTINCT + 18 ), 76 ) ), 96, - 20 ) + - 98 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-8881
SELECT ALL COALESCE ( - COALESCE ( - + 85, - 69 - NULLIF ( - 34 + - COUNT ( DISTINCT + 18 ), 76 ) ), 96, - 20 ) + - 98 AS col0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT DISTINCT - CAST( - - 72 AS SIGNED ) + - 77 AS col0
----
-149

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT - CAST ( - - 72 AS INTEGER ) + - 77 AS col0
----
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL + COUNT( * ) + + 56 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL + COUNT ( * ) + + 56 AS col0
----
57

onlyif mysql # aggregate syntax: 
query II rowsort label-8884
SELECT + 96, COUNT( * ) AS col1
----
96
1

skipif mysql # not compatible
query II rowsort label-8884
SELECT + 96, COUNT ( * ) AS col1
----
96
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT ALL COUNT( * ) * - - 56
----
56

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL COUNT ( * ) * - - 56
----
56

query I rowsort
SELECT 37 * 9
----
333

query I rowsort
SELECT 98 * + 71 + + 48 - + 97 * - 68 AS col2
----
13602

query I rowsort
SELECT ALL 9 + - 4
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT 89 * + - 4 + 33 DIV - 2
----
-372

skipif mysql # not compatible
query I rowsort label-8889
SELECT 89 * + - 4 + 33 / - 2
----
-372

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT COALESCE ( COUNT( * ), + 86 * - ( 92 ) - + 7, - 73 ) + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8890
SELECT COALESCE ( COUNT ( * ), + 86 * - ( 92 ) - + 7, - 73 ) + - COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL COUNT( ALL - ( + + 98 ) ) + 82 * + 67
----
5495

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL COUNT ( ALL - ( + + 98 ) ) + 82 * + 67
----
5495

query I rowsort
SELECT - CASE - ( + ( 6 ) ) WHEN 44 THEN 17 * 25 END * - 42 + 85 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT 8 - + COUNT( * ) AS col1
----
7

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT 8 - + COUNT ( * ) AS col1
----
7

query I rowsort
SELECT 56 + + - 14 AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - - 15 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - - 15 AS col1
----
NULL

query I rowsort
SELECT ALL 29 AS col1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-8897
SELECT ALL + 35 DIV + 18 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + 35 / + 18 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT 72 + + SUM( - 84 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-8898
SELECT 72 + + SUM ( - 84 ) AS col2
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT + 7 * - 59 + - 10 DIV + 16
----
-413

skipif mysql # not compatible
query I rowsort label-8899
SELECT + 7 * - 59 + - 10 / + 16
----
-413

query I rowsort
SELECT ALL + 33 AS col0
----
33

query II rowsort
SELECT - 35 AS col1, - ( + + 94 ) AS col1
----
-35
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT COUNT( * ) + - + 57 + + + COUNT( * ) + + 56 DIV 8
----
-48

skipif mysql # not compatible
query I rowsort label-8902
SELECT COUNT ( * ) + - + 57 + + + COUNT ( * ) + + 56 / 8
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT ALL + + CASE + + 53 WHEN - 22 THEN NULL WHEN 3 * - 55 THEN COUNT( * ) WHEN - 35 THEN 88 ELSE NULL END * 53 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8903
SELECT ALL + + CASE + + 53 WHEN - 22 THEN NULL WHEN 3 * - 55 THEN COUNT ( * ) WHEN - 35 THEN 88 ELSE NULL END * 53 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT + 34 + - - 32 * + COUNT( * ) + - 19 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-8904
SELECT + 34 + - - 32 * + COUNT ( * ) + - 19 AS col1
----
47

query I rowsort
SELECT ALL + 66 * + + 9 AS col2
----
594

query I rowsort
SELECT ALL + 10 AS col1
----
10

query I rowsort
SELECT DISTINCT + 49 * + 95 AS col2
----
4655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8908
SELECT CAST( NULL AS SIGNED ) * AVG ( - 78 ) * - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8908
SELECT CAST ( NULL AS INTEGER ) * AVG ( - 78 ) * - 80 AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 58 * 20 AS col2
----
1160

onlyif mysql # DIV for integer division: 
query I rowsort label-8910
SELECT DISTINCT 10 DIV + + CASE + - 67 WHEN 46 + ( 78 ) THEN 84 + ( 65 ) WHEN 57 THEN NULL ELSE + 33 + 29 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT 10 / + + CASE + - 67 WHEN 46 + ( 78 ) THEN 84 + ( 65 ) WHEN 57 THEN NULL ELSE + 33 + 29 END AS col0
----
0

query I rowsort
SELECT DISTINCT + NULLIF ( + - 83, - 31 - 6 ) col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT + CAST( NULL AS SIGNED ) * 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8912
SELECT + CAST ( NULL AS INTEGER ) * 66 AS col2
----
NULL

query I rowsort
SELECT - - 94
----
94

query I rowsort
SELECT 38 + - 62 + 47 * 83 AS col1
----
3877

query I rowsort
SELECT DISTINCT - - 69 + + 96 + - 65 AS col1
----
100

query I rowsort
SELECT ALL - COALESCE ( - + 14, + - 15 ) AS col1
----
14

query I rowsort
SELECT - + ( - 19 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT 14 * COUNT( * ) + - - ( 13 ) AS col2
----
27

skipif mysql # not compatible
query I rowsort label-8918
SELECT 14 * COUNT ( * ) + - - ( 13 ) AS col2
----
27

query I rowsort
SELECT ALL - ( - 39 )
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL 17 * COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL 17 * COUNT ( * )
----
17

query I rowsort
SELECT DISTINCT 10 + - 97 AS col1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL ( - 92 ) + - 72 + 87 + + 89 * ( 26 + - CAST( NULL AS SIGNED ) * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL ( - 92 ) + - 72 + 87 + + 89 * ( 26 + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT DISTINCT + CASE - 30 WHEN 31 THEN NULL ELSE - 73 END * + 51 col0
----
-3723

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL COUNT( * ) + + 52 * - - 15
----
781

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL COUNT ( * ) + + 52 * - - 15
----
781

query I rowsort
SELECT 56 * - + 1 + + 4 * 26
----
48

query I rowsort
SELECT ALL ( - 87 ) * 25
----
-2175

query I rowsort
SELECT DISTINCT - 79 AS col0
----
-79

query II rowsort
SELECT ALL 68 + + 57 AS col0, + 52 AS col2
----
125
52

query I rowsort
SELECT 21 * - + CASE - + 74 WHEN ( 65 ) THEN - 10 END * 12
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT DISTINCT 3 DIV + 29 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT 3 / + 29 AS col1
----
0

query I rowsort
SELECT ALL - 1 col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8932
SELECT ALL CASE - + 76 WHEN - 23 THEN - CAST( NULL AS SIGNED ) WHEN 88 THEN - COUNT( * ) * 28 ELSE NULL END - 43
----
NULL

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL CASE - + 76 WHEN - 23 THEN - CAST ( NULL AS INTEGER ) WHEN 88 THEN - COUNT ( * ) * 28 ELSE NULL END - 43
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8933
SELECT ALL 38 * 58, + COUNT( * ) AS col1
----
2204
1

skipif mysql # not compatible
query II rowsort label-8933
SELECT ALL 38 * 58, + COUNT ( * ) AS col1
----
2204
1

query I rowsort
SELECT DISTINCT - 14 AS col2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8935
SELECT ALL 55 - - + CAST( 78 AS SIGNED ) * + 30 * - NULLIF ( + 30, - 21 ) + - COALESCE ( - 45, - 93 * 95 )
----
-70100

skipif mysql # not compatible
query I rowsort label-8935
SELECT ALL 55 - - + CAST ( 78 AS INTEGER ) * + 30 * - NULLIF ( + 30, - 21 ) + - COALESCE ( - 45, - 93 * 95 )
----
-70100

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ( - 32 ) * + + COUNT( * )
----
-32

skipif mysql # not compatible
query I rowsort label-8936
SELECT ( - 32 ) * + + COUNT ( * )
----
-32

query I rowsort
SELECT DISTINCT 61 * 72 AS col2
----
4392

query I rowsort
SELECT ALL 96 * - 82 AS col0
----
-7872

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT + COUNT( * ) - + 93 + + CASE - 13 WHEN 30 + - ( + 9 + - 53 ) THEN - MAX( DISTINCT - ( 96 ) ) / - 66 END + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-8939
SELECT + COUNT ( * ) - + 93 + + CASE - 13 WHEN 30 + - ( + 9 + - 53 ) THEN - MAX ( DISTINCT - ( 96 ) ) / - 66 END + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT - 75 * - + 87 + 98 + - + COUNT( * ) AS col1
----
6622

skipif mysql # not compatible
query I rowsort label-8940
SELECT - 75 * - + 87 + 98 + - + COUNT ( * ) AS col1
----
6622

query I rowsort
SELECT - - 91
----
91

query I rowsort
SELECT ALL + COALESCE ( 99, + 0 + + 38 + + 87 * - 11 * 64 ) * 77 AS col0
----
7623

query I rowsort
SELECT ALL 2 * 70
----
140

query I rowsort
SELECT ALL 65 AS col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL + CASE + + 48 WHEN + + 21 + + COUNT( * ) / 41 THEN - ( - COUNT( * ) ) * - COUNT( 65 ) WHEN - COUNT( * ) + - 24 THEN NULL WHEN + 2 THEN NULL ELSE 52 * - 61 END AS col1
----
-3172

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL + CASE + + 48 WHEN + + 21 + + COUNT ( * ) / 41 THEN - ( - COUNT ( * ) ) * - COUNT ( 65 ) WHEN - COUNT ( * ) + - 24 THEN NULL WHEN + 2 THEN NULL ELSE 52 * - 61 END AS col1
----
-3172

onlyif mysql # aggregate syntax: 
query II rowsort label-8946
SELECT ALL ( COUNT( * ) ), 74 * - 35 col0
----
1
-2590

skipif mysql # not compatible
query II rowsort label-8946
SELECT ALL ( COUNT ( * ) ), 74 * - 35 col0
----
1
-2590

onlyif mysql # DIV for integer division: 
query I rowsort label-8947
SELECT + 8 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8947
SELECT + 8 / 88 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8948
SELECT - CAST( 15 AS SIGNED ) AS col0, 36 AS col2
----
-15
36

skipif mysql # not compatible
query II rowsort label-8948
SELECT - CAST ( 15 AS INTEGER ) AS col0, 36 AS col2
----
-15
36

query I rowsort
SELECT - + 83
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8950
SELECT ALL + ( + CASE - 11 WHEN - ( CAST( - 35 AS SIGNED ) ) + 77 THEN 90 - 69 * AVG ( DISTINCT CAST( 83 AS SIGNED ) - + 2 ) END ) * + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + ( + CASE - 11 WHEN - ( CAST ( - 35 AS INTEGER ) ) + 77 THEN 90 - 69 * AVG ( DISTINCT CAST ( 83 AS INTEGER ) - + 2 ) END ) * + 52
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8951
SELECT - 57 * + 67 * - COALESCE ( + CAST( - 65 AS SIGNED ), + 41 ) + 37
----
-248198

skipif mysql # not compatible
query I rowsort label-8951
SELECT - 57 * + 67 * - COALESCE ( + CAST ( - 65 AS INTEGER ), + 41 ) + 37
----
-248198

query I rowsort
SELECT DISTINCT - 2 + 75 - + - ( - 26 ) - 45
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL NULLIF ( 65, - 46 * - 37 + 88 * COUNT( * ) ) + + 46 * + COUNT( * ) AS col1
----
111

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL NULLIF ( 65, - 46 * - 37 + 88 * COUNT ( * ) ) + + 46 * + COUNT ( * ) AS col1
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8954
SELECT - + SUM( + 63 ) col2, - CAST( - 77 AS SIGNED )
----
-63
77

skipif mysql # not compatible
query II rowsort label-8954
SELECT - + SUM ( + 63 ) col2, - CAST ( - 77 AS INTEGER )
----
-63
77

query I rowsort
SELECT DISTINCT - 22 + + + 88 + + 71 AS col1
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL + SUM( + 40 ) * - - 20 + 59 * + COUNT( * ) AS col1
----
859

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + SUM ( + 40 ) * - - 20 + 59 * + COUNT ( * ) AS col1
----
859

onlyif mysql # DIV for integer division: 
query I rowsort label-8957
SELECT 6 DIV - 77 + + 29 * 0
----
0

skipif mysql # not compatible
query I rowsort label-8957
SELECT 6 / - 77 + + 29 * 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT + ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + ( COUNT ( * ) ) AS col1
----
1

query I rowsort
SELECT DISTINCT - 28 * + 80 + 96
----
-2144

query I rowsort
SELECT COALESCE ( + + 29, - - 61, - 55 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8961
SELECT + MIN( + CASE - 18 WHEN + + 27 THEN NULL ELSE + 80 DIV 89 + 21 END ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-8961
SELECT + MIN ( + CASE - 18 WHEN + + 27 THEN NULL ELSE + 80 / 89 + 21 END ) AS col2
----
21

query I rowsort
SELECT ALL + 95 * + 46 - 26 AS col1
----
4344

query I rowsort
SELECT NULLIF ( 61, - + 19 )
----
61

query I rowsort
SELECT DISTINCT + ( - 59 )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT 7 * + 23 + COUNT( * ) AS col0
----
162

skipif mysql # not compatible
query I rowsort label-8965
SELECT 7 * + 23 + COUNT ( * ) AS col0
----
162

query I rowsort
SELECT ALL 62 * 80
----
4960

query II rowsort
SELECT + 3, + 15 AS col0
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL + MAX( - 37 ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + MAX ( - 37 ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT 97 * COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT 97 * COUNT ( * )
----
97

query I rowsort
SELECT ALL 14 * - 16 AS col0
----
-224

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8971
SELECT ALL - 35 * - - 67 DIV - COUNT( * ) col1, - COUNT( * )
----
2345
-1

skipif mysql # not compatible
query II rowsort label-8971
SELECT ALL - 35 * - - 67 / - COUNT ( * ) col1, - COUNT ( * )
----
2345
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT CASE + ( - - 52 ) WHEN + - 30 + + - 47 * + 84 THEN + MIN( ALL + ( 31 ) ) / 49 WHEN 18 + + 81 THEN 24 / + 55 ELSE - 9 * - 51 + 91 END AS col0
----
550

skipif mysql # not compatible
query I rowsort label-8972
SELECT CASE + ( - - 52 ) WHEN + - 30 + + - 47 * + 84 THEN + MIN ( ALL + ( 31 ) ) / 49 WHEN 18 + + 81 THEN 24 / + 55 ELSE - 9 * - 51 + 91 END AS col0
----
550

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL + ( + + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL + ( + + COUNT ( * ) )
----
1

query I rowsort
SELECT - 79 * - - 9 + - 75 + 90 * - 37 AS col1
----
-4116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT CASE WHEN ( ( NULL < ( NULL ) ) ) THEN - 39 WHEN ( 61 * CAST( NULL AS SIGNED ) ) BETWEEN ( + ( 37 ) * COUNT( * ) ) AND NULL THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT CASE WHEN ( ( NULL < ( NULL ) ) ) THEN - 39 WHEN ( 61 * CAST ( NULL AS INTEGER ) ) BETWEEN ( + ( 37 ) * COUNT ( * ) ) AND NULL THEN NULL END AS col2
----
NULL

query I rowsort
SELECT - 84 * + 26
----
-2184

query I rowsort
SELECT + 90 * 41 AS col1
----
3690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8978
SELECT 63 * - 4 + + CAST( + COUNT( * ) AS SIGNED )
----
-251

skipif mysql # not compatible
query I rowsort label-8978
SELECT 63 * - 4 + + CAST ( + COUNT ( * ) AS INTEGER )
----
-251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8979
SELECT ALL 47 DIV - NULLIF ( - COUNT( * ), + + 84 )
----
47

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL 47 / - NULLIF ( - COUNT ( * ), + + 84 )
----
47

query I rowsort
SELECT + 16 + 42 col2
----
58

query I rowsort
SELECT DISTINCT 76 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT + NULLIF ( ( + ( - CASE - + 75 WHEN + COUNT( * ) THEN + 91 / + 94 END ) ), MAX( DISTINCT 34 ) ) / 38
----
NULL

skipif mysql # not compatible
query I rowsort label-8982
SELECT + NULLIF ( ( + ( - CASE - + 75 WHEN + COUNT ( * ) THEN + 91 / + 94 END ) ), MAX ( DISTINCT 34 ) ) / 38
----
NULL

query I rowsort
SELECT ALL + 99 + 27
----
126

query I rowsort
SELECT - + ( - 79 ) * + 85
----
6715

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8985
SELECT + - COUNT( * ) * 95 DIV - COUNT( ALL - 26 )
----
95

skipif mysql # not compatible
query I rowsort label-8985
SELECT + - COUNT ( * ) * 95 / - COUNT ( ALL - 26 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + - NULLIF ( + 7, - 79 * + 81 + COUNT( * ) ) + 76
----
69

skipif mysql # not compatible
query I rowsort label-8986
SELECT + - NULLIF ( + 7, - 79 * + 81 + COUNT ( * ) ) + 76
----
69

query I rowsort
SELECT ALL 36 + + + 24 AS col2
----
60

query II rowsort
SELECT 28 AS col2, 38
----
28
38

onlyif mysql # aggregate syntax: 
query II rowsort label-8989
SELECT + + 39 + + SUM( DISTINCT - + 10 ) AS col2, 92 AS col0
----
29
92

skipif mysql # not compatible
query II rowsort label-8989
SELECT + + 39 + + SUM ( DISTINCT - + 10 ) AS col2, 92 AS col0
----
29
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT ALL ( + 74 ) + + 3 DIV + 6 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-8990
SELECT ALL ( + 74 ) + + 3 / + 6 AS col0
----
74

query I rowsort
SELECT ALL 27 AS col0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8992
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - 84 + 1 + + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT + CAST ( NULL AS REAL ) + - 84 + 1 + + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8993
SELECT ALL CASE 99 WHEN - - 60 * + - 81 * + ( 94 ) - 73 THEN NULL WHEN - 50 / NULLIF ( + COUNT( ALL 64 ), + 11 ) THEN - COUNT( * ) * + CAST( - COUNT( * ) AS SIGNED ) END + - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL CASE 99 WHEN - - 60 * + - 81 * + ( 94 ) - 73 THEN NULL WHEN - 50 / NULLIF ( + COUNT ( ALL 64 ), + 11 ) THEN - COUNT ( * ) * + CAST ( - COUNT ( * ) AS INTEGER ) END + - 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT DISTINCT - ( COUNT( * ) ) + 95
----
94

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT - ( COUNT ( * ) ) + 95
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8995
SELECT DISTINCT 20 * CAST( 1 AS SIGNED ) * - - 90 * 81 AS col2
----
145800

skipif mysql # not compatible
query I rowsort label-8995
SELECT DISTINCT 20 * CAST ( 1 AS INTEGER ) * - - 90 * 81 AS col2
----
145800

query I rowsort
SELECT - 89 col0
----
-89

query I rowsort
SELECT ALL ( - ( + 55 ) ) AS col2
----
-55

query I rowsort
SELECT + 8 + 96
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT - COALESCE ( COUNT( * ), - 51, - 71 * + 40 * - 73 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8999
SELECT - COALESCE ( COUNT ( * ), - 51, - 71 * + 40 * - 73 ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9000
SELECT DISTINCT COUNT( * ) AS col1, + 31 * - 66 AS col1
----
1
-2046

skipif mysql # not compatible
query II rowsort label-9000
SELECT DISTINCT COUNT ( * ) AS col1, + 31 * - 66 AS col1
----
1
-2046

query I rowsort
SELECT - ( - - 13 )
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-9002
SELECT ALL 92 DIV 33 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-9002
SELECT ALL 92 / 33 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + 98 * COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9003
SELECT + 98 * COUNT ( * )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT - CASE 80 WHEN - 15 THEN + - COUNT( * ) + - + 84 ELSE - 95 END + 44 * - 91 col1
----
-3909

skipif mysql # not compatible
query I rowsort label-9004
SELECT - CASE 80 WHEN - 15 THEN + - COUNT ( * ) + - + 84 ELSE - 95 END + 44 * - 91 col1
----
-3909

query I rowsort
SELECT ALL + ( + - 9 ) - - 6 * + 11 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9006
SELECT - CAST( 64 AS SIGNED ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9006
SELECT - CAST ( 64 AS INTEGER ) AS col0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9007
SELECT DISTINCT + ( + 93 ) DIV - 66 - + 44 - - COUNT( - ( - 76 ) ) DIV 62 AS col2
----
-45

skipif mysql # not compatible
query I rowsort label-9007
SELECT DISTINCT + ( + 93 ) / - 66 - + 44 - - COUNT ( - ( - 76 ) ) / 62 AS col2
----
-45

query I rowsort
SELECT ALL - 3 * - - ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT ALL MAX( DISTINCT - 45 ) * + 44 col0
----
-1980

skipif mysql # not compatible
query I rowsort label-9009
SELECT ALL MAX ( DISTINCT - 45 ) * + 44 col0
----
-1980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9010
SELECT DISTINCT CAST( + 61 AS SIGNED ) / 20 - + + 42 / 92 - CAST( CASE - COUNT( * ) WHEN 2 - + COUNT( * ) THEN + 57 WHEN 22 THEN 30 + 65 WHEN 8 THEN COUNT( * ) - + 92 * + 12 ELSE - 1 END AS SIGNED ) + - CASE + 56 WHEN - 78 * 54 THEN - 6 / ( - COUNT( DISTINCT - 28 ) ) + 23 WHEN + COALESCE ( COUNT( * ), 98 + 35 * 6, + 35, 65 ) * 10 THEN NULLIF ( 18, COUNT( * ) * 96 ) END * + SUM( CAST( NULL AS SIGNED ) + 52 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT CAST ( + 61 AS INTEGER ) / 20 - + + 42 / 92 - CAST ( CASE - COUNT ( * ) WHEN 2 - + COUNT ( * ) THEN + 57 WHEN 22 THEN 30 + 65 WHEN 8 THEN COUNT ( * ) - + 92 * + 12 ELSE - 1 END AS INTEGER ) + - CASE + 56 WHEN - 78 * 54 THEN - 6 / ( - COUNT ( DISTINCT - 28 ) ) + 23 WHEN + COALESCE ( COUNT ( * ), 98 + 35 * 6, + 35, 65 ) * 10 THEN NULLIF ( 18, COUNT ( * ) * 96 ) END * + SUM ( CAST ( NULL AS INTEGER ) + 52 ) AS col2
----
NULL

query I rowsort
SELECT ALL + NULLIF ( 75, + 88 )
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT - COUNT( * ) DIV + COALESCE ( - 52, + - 11, + 18 + + 55 ) DIV 1
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT - COUNT ( * ) / + COALESCE ( - 52, + - 11, + 18 + + 55 ) / 1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL + MAX( - 95 )
----
-95

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + MAX ( - 95 )
----
-95

query I rowsort
SELECT + 32 * - + 99 * 67
----
-212256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT CAST( + 76 AS SIGNED ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9015
SELECT CAST ( + 76 AS INTEGER ) AS col0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL + COALESCE ( + COUNT( * ), 88 )
----
1

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + COALESCE ( + COUNT ( * ), 88 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9017
SELECT - CASE CAST( NULL AS DECIMAL ) WHEN + + CAST( NULL AS DECIMAL ) THEN 83 * - - 81 END + + + 61 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT - CASE CAST ( NULL AS REAL ) WHEN + + CAST ( NULL AS REAL ) THEN 83 * - - 81 END + + + 61 col2
----
NULL

query I rowsort
SELECT ( - - 31 )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT - 61 * - - CAST( NULL AS SIGNED ) * + + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT - 61 * - - CAST ( NULL AS INTEGER ) * + + 36
----
NULL

query II rowsort
SELECT ALL + 97 AS col1, + 82
----
97
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9021
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 27 AS col2
----
NULL
27

skipif mysql # not compatible
query II rowsort label-9021
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 27 AS col2
----
NULL
27

query I rowsort
SELECT ( - - 36 ) col1
----
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9023
SELECT ALL + COALESCE ( + COUNT( * ), + COUNT( * ), CAST( NULL AS SIGNED ) ), + 64 * + CASE + COUNT( * ) WHEN 14 * + 97 THEN 45 * - 56 END / 36 AS col0
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9023
SELECT ALL + COALESCE ( + COUNT ( * ), + COUNT ( * ), CAST ( NULL AS INTEGER ) ), + 64 * + CASE + COUNT ( * ) WHEN 14 * + 97 THEN 45 * - 56 END / 36 AS col0
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9024
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, 82
----
NULL
82

skipif mysql # not compatible
query II rowsort label-9024
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, 82
----
NULL
82

query II rowsort
SELECT DISTINCT + - 79 AS col0, - 85 + - + 52 AS col2
----
-79
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT ALL - + COUNT( * ) * - + COALESCE ( + CASE - 3 WHEN - - 86 * 27 * 97 + - NULLIF ( 41, + 26 ) * 53 THEN - 6 WHEN - 86 THEN + 90 - + 10 * + 66 WHEN 3 + + COUNT( * ) THEN - 44 * ( 57 ) END, - COUNT( * ), 99 ) * 19 - - 97 * + COUNT( * ) + 12 * - 87
----
-966

skipif mysql # not compatible
query I rowsort label-9026
SELECT ALL - + COUNT ( * ) * - + COALESCE ( + CASE - 3 WHEN - - 86 * 27 * 97 + - NULLIF ( 41, + 26 ) * 53 THEN - 6 WHEN - 86 THEN + 90 - + 10 * + 66 WHEN 3 + + COUNT ( * ) THEN - 44 * ( 57 ) END, - COUNT ( * ), 99 ) * 19 - - 97 * + COUNT ( * ) + 12 * - 87
----
-966

query I rowsort
SELECT - 88 AS col1
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT - + CAST( - 30 AS SIGNED ) * COALESCE ( + + ( - 27 ), 3, COUNT( * ) ) AS col0
----
-810

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT - + CAST ( - 30 AS INTEGER ) * COALESCE ( + + ( - 27 ), 3, COUNT ( * ) ) AS col0
----
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-9029
SELECT ALL 88 * - 62 + COUNT( ALL + + 33 ) col1, - 94
----
-5455
-94

skipif mysql # not compatible
query II rowsort label-9029
SELECT ALL 88 * - 62 + COUNT ( ALL + + 33 ) col1, - 94
----
-5455
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9030
SELECT 0 * - - 97 DIV + COALESCE ( + - COALESCE ( - 75, + + COUNT( * ), + 76 + 47 DIV 45 ), + ( ( - CASE - COUNT( * ) WHEN + 81 - 47 * - ( 29 ) THEN - SUM( ALL COALESCE ( + 24, - 0 ) ) + 40 WHEN - COUNT( * ) THEN NULL ELSE COUNT( * ) END ) ) ) + 24 AS col2
----
24

skipif mysql # not compatible
query I rowsort label-9030
SELECT 0 * - - 97 / + COALESCE ( + - COALESCE ( - 75, + + COUNT ( * ), + 76 + 47 / 45 ), + ( ( - CASE - COUNT ( * ) WHEN + 81 - 47 * - ( 29 ) THEN - SUM ( ALL COALESCE ( + 24, - 0 ) ) + 40 WHEN - COUNT ( * ) THEN NULL ELSE COUNT ( * ) END ) ) ) + 24 AS col2
----
24

query I rowsort
SELECT 43 * - - NULLIF ( - - 85, 12 ) - - - 68 - + - ( - 26 ) AS col1
----
3561

query I rowsort
SELECT ALL - + 75 + - - 81 + - COALESCE ( - 58, - 38 ) AS col2
----
64

query II rowsort
SELECT - 10, 15 + 77 AS col2
----
-10
92

query I rowsort
SELECT - + 46 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT - COALESCE ( - 84, + + 94 * + NULLIF ( 88, 27 ) + 36 * ( 88 * + ( 59 * + COUNT( * ) ) ), 72 + 77 ) - + 73 col2
----
11

skipif mysql # not compatible
query I rowsort label-9035
SELECT - COALESCE ( - 84, + + 94 * + NULLIF ( 88, 27 ) + 36 * ( 88 * + ( 59 * + COUNT ( * ) ) ), 72 + 77 ) - + 73 col2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT SUM( 79 )
----
79

skipif mysql # not compatible
query I rowsort label-9036
SELECT SUM ( 79 )
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT DISTINCT CAST( - 36 AS SIGNED )
----
-36

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT CAST ( - 36 AS INTEGER )
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-9038
SELECT 23 * CASE + 52 WHEN + 10 THEN - COUNT( * ) ELSE + 22 * - 72 END - 59 * + CASE + 76 * 16 WHEN 7 THEN NULL WHEN - 81 * - 9 THEN NULL ELSE - 1 + + 61 END AS col1
----
-39972

skipif mysql # not compatible
query I rowsort label-9038
SELECT 23 * CASE + 52 WHEN + 10 THEN - COUNT ( * ) ELSE + 22 * - 72 END - 59 * + CASE + 76 * 16 WHEN 7 THEN NULL WHEN - 81 * - 9 THEN NULL ELSE - 1 + + 61 END AS col1
----
-39972

query I rowsort
SELECT ALL + ( - 73 ) + - 9
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT ALL - - 95 + + 12 + 58 DIV + 17 + 82 * - ( 96 )
----
-7762

skipif mysql # not compatible
query I rowsort label-9040
SELECT ALL - - 95 + + 12 + 58 / + 17 + 82 * - ( 96 )
----
-7762

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT ALL + CAST( 48 AS SIGNED )
----
48

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL + CAST ( 48 AS INTEGER )
----
48

query II rowsort
SELECT DISTINCT + 43, + 13 * 89 AS col2
----
43
1157

query I rowsort
SELECT - 53 * + 71 + + - 33
----
-3796

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9044
SELECT ALL NULLIF ( + 4, - CAST( 66 AS SIGNED ) DIV - 59 * - 40 ) DIV - COUNT( - 76 )
----
-4

skipif mysql # not compatible
query I rowsort label-9044
SELECT ALL NULLIF ( + 4, - CAST ( 66 AS INTEGER ) / - 59 * - 40 ) / - COUNT ( - 76 )
----
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9045
SELECT ALL + ( - + 64 ) AS col1, + 20 * 77 DIV - + 78 - + 41 * - COUNT( * )
----
-64
22

skipif mysql # not compatible
query II rowsort label-9045
SELECT ALL + ( - + 64 ) AS col1, + 20 * 77 / - + 78 - + 41 * - COUNT ( * )
----
-64
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9046
SELECT CAST( NULL AS SIGNED ) + - + COUNT( * ) + - 85 + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-9046
SELECT CAST ( NULL AS INTEGER ) + - + COUNT ( * ) + - 85 + + 78
----
NULL

query I rowsort
SELECT - 18 AS col2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT - COUNT( * ) + + SUM( ALL + 78 )
----
77

skipif mysql # not compatible
query I rowsort label-9048
SELECT - COUNT ( * ) + + SUM ( ALL + 78 )
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9049
SELECT - - 38 AS col1, - 46 + + 88 - SUM( - - 35 ) DIV - 53 * COUNT( * )
----
38
42

skipif mysql # not compatible
query II rowsort label-9049
SELECT - - 38 AS col1, - 46 + + 88 - SUM ( - - 35 ) / - 53 * COUNT ( * )
----
38
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL CASE - - 74 WHEN - 76 THEN - COUNT( * ) * 33 END - 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL CASE - - 74 WHEN - 76 THEN - COUNT ( * ) * 33 END - 15
----
NULL

query I rowsort
SELECT 21 * - - 27
----
567

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT COUNT( DISTINCT - 73 ) * COUNT( 97 ) + - 13 - - + ( - 68 ) * - COALESCE ( 47, 20 DIV + 98 + 81 ) AS col0
----
3184

skipif mysql # not compatible
query I rowsort label-9052
SELECT COUNT ( DISTINCT - 73 ) * COUNT ( 97 ) + - 13 - - + ( - 68 ) * - COALESCE ( 47, 20 / + 98 + 81 ) AS col0
----
3184

query I rowsort
SELECT DISTINCT 98 * + - 38 AS col1
----
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT COUNT( * ) + - ( - + 61 ) + - 83 col2
----
-21

skipif mysql # not compatible
query I rowsort label-9054
SELECT COUNT ( * ) + - ( - + 61 ) + - 83 col2
----
-21

query I rowsort
SELECT DISTINCT 95 col1
----
95

query I rowsort
SELECT ALL 1 AS col0
----
1

query I rowsort
SELECT DISTINCT - 95 AS col0
----
-95

query I rowsort
SELECT + 54 AS col0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT COUNT( * ) * 79 * - SUM( + 58 ) col1
----
-4582

skipif mysql # not compatible
query I rowsort label-9059
SELECT COUNT ( * ) * 79 * - SUM ( + 58 ) col1
----
-4582

query II rowsort
SELECT 72 * 63 AS col2, - ( - + 85 ) * + 22
----
4536
1870

onlyif mysql # DIV for integer division: 
query II rowsort label-9061
SELECT DISTINCT 38 DIV + - 60 AS col0, ( - 36 )
----
0
-36

skipif mysql # not compatible
query II rowsort label-9061
SELECT DISTINCT 38 / + - 60 AS col0, ( - 36 )
----
0
-36

query I rowsort
SELECT DISTINCT - 23
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT ( + + ( + 36 ) ) - + CASE 4 WHEN 59 * + - 12 * + 99 + 7 * 61 THEN + ( + CAST( 85 AS SIGNED ) ) + - 6 WHEN 60 + 35 * 0 THEN NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT ( + + ( + 36 ) ) - + CASE 4 WHEN 59 * + - 12 * + 99 + 7 * 61 THEN + ( + CAST ( 85 AS INTEGER ) ) + - 6 WHEN 60 + 35 * 0 THEN NULL END col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT ALL ( - 84 ) DIV + 16 + 76 AS col1
----
71

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL ( - 84 ) / + 16 + 76 AS col1
----
71

query I rowsort
SELECT DISTINCT + 54 + 89 AS col2
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL - COUNT( * ) + 40 AS col2
----
39

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - COUNT ( * ) + 40 AS col2
----
39

onlyif mysql # DIV for integer division: 
query II rowsort label-9067
SELECT 81 DIV - 68 AS col0, + 42
----
-1
42

skipif mysql # not compatible
query II rowsort label-9067
SELECT 81 / - 68 AS col0, + 42
----
-1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + 33 * COUNT( * ) - + MIN( + 45 ) - + 81 AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-9068
SELECT + 33 * COUNT ( * ) - + MIN ( + 45 ) - + 81 AS col0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT - 51 + - - MAX( ALL - - 80 ) col1
----
29

skipif mysql # not compatible
query I rowsort label-9069
SELECT - 51 + - - MAX ( ALL - - 80 ) col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT MAX( - 32 ) - - 91 AS col0
----
59

skipif mysql # not compatible
query I rowsort label-9070
SELECT MAX ( - 32 ) - - 91 AS col0
----
59

query I rowsort
SELECT ALL - 10 AS col2
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-9072
SELECT - 35 DIV - + 54 AS col0, 27 AS col1
----
0
27

skipif mysql # not compatible
query II rowsort label-9072
SELECT - 35 / - + 54 AS col0, 27 AS col1
----
0
27

query I rowsort
SELECT ALL - - NULLIF ( - 20, + COALESCE ( + 39, + - 37 ) ) AS col1
----
-20

query I rowsort
SELECT DISTINCT - - 27 AS col2
----
27

query I rowsort
SELECT ALL + - 60 + - 13
----
-73

query I rowsort
SELECT + ( ( + 56 ) ) + COALESCE ( 95, - ( + - 23 ) * 66 - - 87 )
----
151

query I rowsort
SELECT ALL + 6 + - 19
----
-13

query I rowsort
SELECT 38 + + - 68 AS col2
----
-30

query I rowsort
SELECT ALL + 25 + + 65 * - 27 + - 16
----
-1746

query I rowsort
SELECT 25 AS col0
----
25

query I rowsort
SELECT DISTINCT + 12 AS col2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT - ( + 16 ) * + 70 + + 40 - + NULLIF ( + SUM( ALL - 93 ), 57 - 15 * - COUNT( * ) ) AS col1
----
-987

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT - ( + 16 ) * + 70 + + 40 - + NULLIF ( + SUM ( ALL - 93 ), 57 - 15 * - COUNT ( * ) ) AS col1
----
-987

query I rowsort
SELECT DISTINCT - 23 - 46 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT ALL + - 55 * + 15 * - + 56 * - - COUNT( * ) AS col2
----
46200

skipif mysql # not compatible
query I rowsort label-9084
SELECT ALL + - 55 * + 15 * - + 56 * - - COUNT ( * ) AS col2
----
46200

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9085
SELECT 7 + + ( - + CASE + MIN( 84 ) WHEN - COALESCE ( + + CAST( NULL AS DECIMAL ), + 88, + 38 - 78 ) THEN NULL WHEN + ( 32 ) THEN + COUNT( * ) + 68 END ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-9085
SELECT 7 + + ( - + CASE + MIN ( 84 ) WHEN - COALESCE ( + + CAST ( NULL AS REAL ), + 88, + 38 - 78 ) THEN NULL WHEN + ( 32 ) THEN + COUNT ( * ) + 68 END ) * 17
----
NULL

query I rowsort
SELECT ALL - 90 - - 16
----
-74

query I rowsort
SELECT DISTINCT ( - + 87 )
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9088
SELECT + COUNT( * ) DIV + 24 + 44 DIV - + 73 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9088
SELECT + COUNT ( * ) / + 24 + 44 / - + 73 AS col1
----
0

query I rowsort
SELECT ALL - 27 col2
----
-27

query I rowsort
SELECT DISTINCT 82 AS col1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT SUM( - - 23 )
----
23

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT SUM ( - - 23 )
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-9092
SELECT ALL 39 DIV - 76 * - - 76, 51 * 80 AS col0
----
0
4080

skipif mysql # not compatible
query II rowsort label-9092
SELECT ALL 39 / - 76 * - - 76, 51 * 80 AS col0
----
0
4080

query I rowsort
SELECT NULLIF ( + 42, - 14 / 94 * - 94 ) * 95
----
3990

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9094
SELECT 56 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9094
SELECT 56 * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 27 + + - 30
----
-3

query I rowsort
SELECT DISTINCT 47 AS col2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9097
SELECT ALL 3 * - ( - - 19 ) * CAST( NULL AS SIGNED ) / - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL 3 * - ( - - 19 ) * CAST ( NULL AS INTEGER ) / - - 87
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT 36 DIV ( + 24 )
----
1

skipif mysql # not compatible
query I rowsort label-9098
SELECT 36 / ( + 24 )
----
1

query I rowsort
SELECT 72 * - 30 * + 72
----
-155520

query I rowsort
SELECT 76 col1
----
76

query I rowsort
SELECT ALL 79 * 31 AS col0
----
2449

query II rowsort
SELECT 46 * + COALESCE ( + 94, + - 78 ) AS col0, NULLIF ( + 61, ( 98 ) ) AS col0
----
4324
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9103
SELECT CASE - 97 WHEN 33 * - 31 THEN + COUNT( * ) WHEN - 13 THEN NULL ELSE NULL END * - 91 + + + CAST( + 68 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9103
SELECT CASE - 97 WHEN 33 * - 31 THEN + COUNT ( * ) WHEN - 13 THEN NULL ELSE NULL END * - 91 + + + CAST ( + 68 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL 97 + - COUNT( * ) + + 10 AS col2
----
106

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL 97 + - COUNT ( * ) + + 10 AS col2
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9105
SELECT ALL 73 + - ( - + 54 ) * + CASE - 48 WHEN - CAST( NULL AS SIGNED ) THEN - + 78 - 97 * ( - ( + COUNT( * ) ) ) WHEN 20 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL 73 + - ( - + 54 ) * + CASE - 48 WHEN - CAST ( NULL AS INTEGER ) THEN - + 78 - 97 * ( - ( + COUNT ( * ) ) ) WHEN 20 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL + 13 * + - COUNT( * ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + 13 * + - COUNT ( * ) AS col1
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9107
SELECT DISTINCT 61 * CAST( - COUNT( * ) AS SIGNED ) * + 2 + - 81
----
-203

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT 61 * CAST ( - COUNT ( * ) AS INTEGER ) * + 2 + - 81
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL 35 * - - ( 12 ) + - - 82 * + COUNT( * ) + + 88 + - ( 31 )
----
559

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL 35 * - - ( 12 ) + - - 82 * + COUNT ( * ) + + 88 + - ( 31 )
----
559

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9109
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - 74 + - + CASE 0 WHEN + COUNT( * ) THEN - COALESCE ( - COUNT( * ), 19 + 76, 37 ) + COUNT( * ) WHEN + 56 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - 74 + - + CASE 0 WHEN + COUNT ( * ) THEN - COALESCE ( - COUNT ( * ), 19 + 76, 37 ) + COUNT ( * ) WHEN + 56 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9110
SELECT + NULLIF ( COUNT( * ), + - 89 * + - 1 * - 15 ) * + 79
----
79

skipif mysql # not compatible
query I rowsort label-9110
SELECT + NULLIF ( COUNT ( * ), + - 89 * + - 1 * - 15 ) * + 79
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT DISTINCT 79 * + 49 + + SUM( DISTINCT 17 )
----
3888

skipif mysql # not compatible
query I rowsort label-9111
SELECT DISTINCT 79 * + 49 + + SUM ( DISTINCT 17 )
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL + SUM( 59 )
----
59

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL + SUM ( 59 )
----
59

query I rowsort
SELECT + CASE - 51 WHEN + 96 THEN NULL ELSE - - 73 END
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9114
SELECT 1 DIV 85 + - MAX( ALL + + 18 ) + NULLIF ( MIN( + 11 ), 49 ) * + 19 + 55 AS col1
----
246

skipif mysql # not compatible
query I rowsort label-9114
SELECT 1 / 85 + - MAX ( ALL + + 18 ) + NULLIF ( MIN ( + 11 ), 49 ) * + 19 + 55 AS col1
----
246

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT ALL - COUNT( * ) DIV + 22 * 72 - + 85
----
-85

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL - COUNT ( * ) / + 22 * 72 - + 85
----
-85

query I rowsort
SELECT + - 83 AS col0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-9117
SELECT ALL + 14 * + COUNT( * ) + + ( - 56 ) * + 77 - - 92, 73 * + 51 AS col1
----
-4206
3723

skipif mysql # not compatible
query II rowsort label-9117
SELECT ALL + 14 * + COUNT ( * ) + + ( - 56 ) * + 77 - - 92, 73 * + 51 AS col1
----
-4206
3723

query I rowsort
SELECT + 72 * 39 AS col2
----
2808

query I rowsort
SELECT DISTINCT + - NULLIF ( + ( 54 ), + ( - 98 ) ) AS col2
----
-54

query I rowsort
SELECT + - 60 AS col1
----
-60

query I rowsort
SELECT DISTINCT + + 64
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT ALL + 28 * 51 + - 8 - COUNT( * ) AS col1
----
1419

skipif mysql # not compatible
query I rowsort label-9122
SELECT ALL + 28 * 51 + - 8 - COUNT ( * ) AS col1
----
1419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9123
SELECT DISTINCT + + 47, ( 70 ) + - COALESCE ( - - 82, + 49 ) + - - 48 + + + 75 * 91 * 13 * MIN( DISTINCT - CAST( - 81 AS SIGNED ) ) AS col0
----
47
7186761

skipif mysql # not compatible
query II rowsort label-9123
SELECT DISTINCT + + 47, ( 70 ) + - COALESCE ( - - 82, + 49 ) + - - 48 + + + 75 * 91 * 13 * MIN ( DISTINCT - CAST ( - 81 AS INTEGER ) ) AS col0
----
47
7186761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT - CAST( NULL AS SIGNED ) * - 9 * 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT - CAST ( NULL AS INTEGER ) * - 9 * 72
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + COUNT( ALL - 6 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9125
SELECT + COUNT ( ALL - 6 ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9126
SELECT - - 99 DIV + 93
----
1

skipif mysql # not compatible
query I rowsort label-9126
SELECT - - 99 / + 93
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT + + MIN( 84 ) AS col1
----
84

skipif mysql # not compatible
query I rowsort label-9127
SELECT + + MIN ( 84 ) AS col1
----
84

query I rowsort
SELECT - + ( 4 )
----
-4

query I rowsort
SELECT + 1 - - 24 - - 84
----
109

query II rowsort
SELECT ALL - 52 AS col2, 23 AS col1
----
-52
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9131
SELECT - 24 * CASE WHEN NOT ( 43 ) <= + CASE COUNT( * ) WHEN + COUNT( * ) * - 94 THEN + 30 END * - 30 + 77 THEN NULL WHEN NOT 40 * - 72 IN ( ( 37 ) * CAST( NULL AS SIGNED ) ) THEN + MAX( + 21 ) + 40 ELSE - 19 + - 14 END * + ( 29 ) AS col1
----
22968

skipif mysql # not compatible
query I rowsort label-9131
SELECT - 24 * CASE WHEN NOT ( 43 ) <= + CASE COUNT ( * ) WHEN + COUNT ( * ) * - 94 THEN + 30 END * - 30 + 77 THEN NULL WHEN NOT 40 * - 72 IN ( ( 37 ) * CAST ( NULL AS INTEGER ) ) THEN + MAX ( + 21 ) + 40 ELSE - 19 + - 14 END * + ( 29 ) AS col1
----
22968

query I rowsort
SELECT DISTINCT - 29 AS col2
----
-29

query I rowsort
SELECT DISTINCT + 89 * + 25
----
2225

onlyif mysql # aggregate syntax: 
query I rowsort label-9134
SELECT ALL COUNT( - 19 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9134
SELECT ALL COUNT ( - 19 ) col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT + 33 * + 33 / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT + 33 * + 33 / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 92 + + - 81
----
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT - 98 - - COUNT( * ) * - CASE 67 WHEN - CAST( MAX( + ( + 61 ) ) AS SIGNED ) * - - 25 THEN 59 - 82 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT - 98 - - COUNT ( * ) * - CASE 67 WHEN - CAST ( MAX ( + ( + 61 ) ) AS INTEGER ) * - - 25 THEN 59 - 82 ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT ALL NULLIF ( + 57, - 43 )
----
57

query I rowsort
SELECT DISTINCT + 90 * - ( + 36 ) AS col0
----
-3240

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT - SUM( ALL - 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9140
SELECT - SUM ( ALL - 1 )
----
1

query I rowsort
SELECT ALL - 72 + 39 col0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT ALL + 17 + + + 11 / + - ( + 50 ) + - CASE - + MIN( + 13 ) WHEN 91 THEN - 24 + 77 END * 4 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL + 17 + + + 11 / + - ( + 50 ) + - CASE - + MIN ( + 13 ) WHEN 91 THEN - 24 + 77 END * 4 AS col0
----
NULL

query I rowsort
SELECT - 38 + - 43 AS col0
----
-81

query I rowsort
SELECT ALL - 72 + - 95 * + 50
----
-4822

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL COUNT( * ) + + COUNT( * ) + 61 * ( + MAX( ALL - + 29 ) ) col0
----
-1767

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL COUNT ( * ) + + COUNT ( * ) + 61 * ( + MAX ( ALL - + 29 ) ) col0
----
-1767

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT - 2 * COALESCE ( + 15, + 25 + + MIN( - - 62 ) + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-9146
SELECT - 2 * COALESCE ( + 15, + 25 + + MIN ( - - 62 ) + COUNT ( * ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9147
SELECT DISTINCT 6 DIV 64 * - 77 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT 6 / 64 * - 77 + + COUNT ( * )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9148
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL + CAST ( NULL AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9149
SELECT - + 61 * + - COUNT( * ) AS col0, - 21 AS col1
----
61
-21

skipif mysql # not compatible
query II rowsort label-9149
SELECT - + 61 * + - COUNT ( * ) AS col0, - 21 AS col1
----
61
-21

query I rowsort
SELECT + - 95
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT - 56 - + CAST( + 5 AS SIGNED )
----
-61

skipif mysql # not compatible
query I rowsort label-9151
SELECT - 56 - + CAST ( + 5 AS INTEGER )
----
-61

query I rowsort
SELECT ALL + - 30 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9153
SELECT + 69 + + 74 * + 82 - - 1 * - COALESCE ( - 57, + + SUM( DISTINCT - 17 ), + 43 DIV - COUNT( * ), 39 )
----
6194

skipif mysql # not compatible
query I rowsort label-9153
SELECT + 69 + + 74 * + 82 - - 1 * - COALESCE ( - 57, + + SUM ( DISTINCT - 17 ), + 43 / - COUNT ( * ), 39 )
----
6194

query I rowsort
SELECT ALL + 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT + MAX( ALL 17 )
----
17

skipif mysql # not compatible
query I rowsort label-9155
SELECT + MAX ( ALL 17 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9156
SELECT DISTINCT + + 88 * - 42 / - - COUNT( * ) - + - 96 - CAST( NULL AS SIGNED ) * 96 * - 16
----
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT DISTINCT + + 88 * - 42 / - - COUNT ( * ) - + - 96 - CAST ( NULL AS INTEGER ) * 96 * - 16
----
NULL

query I rowsort
SELECT DISTINCT + 95 col1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT + - MIN( ALL + 54 ) * - + 74 + - 15 + + ( + 52 ) - - COUNT( * ) AS col2
----
4034

skipif mysql # not compatible
query I rowsort label-9158
SELECT + - MIN ( ALL + 54 ) * - + 74 + - 15 + + ( + 52 ) - - COUNT ( * ) AS col2
----
4034

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT + + 29 - ( - - COUNT( * ) ) AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9159
SELECT + + 29 - ( - - COUNT ( * ) ) AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL - - COUNT( * ) * + MIN( + 97 ) - + 20 AS col0
----
77

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - - COUNT ( * ) * + MIN ( + 97 ) - + 20 AS col0
----
77

query I rowsort
SELECT ALL + ( + 13 )
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT 59 * COUNT( * ) + - 37
----
22

skipif mysql # not compatible
query I rowsort label-9162
SELECT 59 * COUNT ( * ) + - 37
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-9163
SELECT + - 54 + - 20 DIV - 63 + + - 45 AS col0
----
-99

skipif mysql # not compatible
query I rowsort label-9163
SELECT + - 54 + - 20 / - 63 + + - 45 AS col0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + 72 DIV - 11 + 73 AS col2
----
67

skipif mysql # not compatible
query I rowsort label-9164
SELECT + 72 / - 11 + 73 AS col2
----
67

query I rowsort
SELECT + 99 + - + 31 + + ( 70 ) + - 45 * COALESCE ( + + 52, + 59 ) * + - 31
----
72678

query II rowsort
SELECT ALL + 82 * + 42, - 48 AS col1
----
3444
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9167
SELECT DISTINCT + CAST( ( - 14 ) AS SIGNED ) DIV - COUNT( * ) + - 13 + + 14
----
15

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + CAST ( ( - 14 ) AS INTEGER ) / - COUNT ( * ) + - 13 + + 14
----
15

query I rowsort
SELECT + - 2 * + 70 * + 13 + + + 62 AS col2
----
-1758

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT 44 * - 67 * - COUNT( * ) + 23
----
2971

skipif mysql # not compatible
query I rowsort label-9169
SELECT 44 * - 67 * - COUNT ( * ) + 23
----
2971

query I rowsort
SELECT ALL ( - - 71 )
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL COUNT( * ) * + - MAX( DISTINCT - 95 ) AS col2
----
95

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL COUNT ( * ) * + - MAX ( DISTINCT - 95 ) AS col2
----
95

query I rowsort
SELECT - ( 91 ) AS col1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9173
SELECT COUNT( - + 6 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9173
SELECT COUNT ( - + 6 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT + 68 DIV 76 DIV + 50
----
0

skipif mysql # not compatible
query I rowsort label-9174
SELECT + 68 / 76 / + 50
----
0

query I rowsort
SELECT DISTINCT - 40 + 42
----
2

query I rowsort
SELECT ALL + 85 + 35 + - 98 AS col2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9177
SELECT DISTINCT COALESCE ( + 54, - 76 - + 58 + + 63 - + COUNT( * ) + - ( + 31 ) + - + CAST( - 46 AS SIGNED ) * 92 DIV - COALESCE ( + 41 DIV 54 + + 9, 43, + 75 + NULLIF ( - 50, - COUNT( ALL 28 ) * - MIN( 60 * 38 ) ), - AVG ( DISTINCT + 15 ) ) * - 48 * - 26, 58, - 69 + ( + 96 ) DIV SUM( DISTINCT 1 ) ) + 89 col1
----
143

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT COALESCE ( + 54, - 76 - + 58 + + 63 - + COUNT ( * ) + - ( + 31 ) + - + CAST ( - 46 AS INTEGER ) * 92 / - COALESCE ( + 41 / 54 + + 9, 43, + 75 + NULLIF ( - 50, - COUNT ( ALL 28 ) * - MIN ( 60 * 38 ) ), - AVG ( DISTINCT + 15 ) ) * - 48 * - 26, 58, - 69 + ( + 96 ) / SUM ( DISTINCT 1 ) ) + 89 col1
----
143

query I rowsort
SELECT ALL ( 97 )
----
97

query I rowsort
SELECT - 14 * 69
----
-966

query II rowsort
SELECT - 8 AS col2, 52 AS col1
----
-8
52

query I rowsort
SELECT DISTINCT - 41 + + + 1
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9182
SELECT 0 * + 82 DIV ( 54 )
----
0

skipif mysql # not compatible
query I rowsort label-9182
SELECT 0 * + 82 / ( 54 )
----
0

query I rowsort
SELECT 6 + 42 AS col1
----
48

query I rowsort
SELECT ALL - 41 - + 2 AS col1
----
-43

query I rowsort
SELECT 44 AS col0
----
44

query I rowsort
SELECT 87 + - - 54 * - 58 AS col1
----
-3045

query I rowsort
SELECT 90 * 13
----
1170

query I rowsort
SELECT 13 - - 40
----
53

query I rowsort
SELECT ALL - + 98
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9190
SELECT DISTINCT - - 91 DIV - 16 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT - - 91 / - 16 AS col1
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT ALL - 60 - - CASE + 96 WHEN + ( - ( + 86 ) ) THEN NULL WHEN 65 * COUNT( ALL + 62 ) + - - 97 - 8 - 37 DIV 86 THEN NULL ELSE - 26 DIV + 43 END
----
-60

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - 60 - - CASE + 96 WHEN + ( - ( + 86 ) ) THEN NULL WHEN 65 * COUNT ( ALL + 62 ) + - - 97 - 8 - 37 / 86 THEN NULL ELSE - 26 / + 43 END
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9192
SELECT ALL NULLIF ( CAST( NULL AS SIGNED ), SUM( - 64 ) ) * MAX( + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9192
SELECT ALL NULLIF ( CAST ( NULL AS INTEGER ), SUM ( - 64 ) ) * MAX ( + - 71 )
----
NULL

query I rowsort
SELECT 20 + 31 AS col2
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT DISTINCT - + 24 DIV - 8 + + + 9 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-9194
SELECT DISTINCT - + 24 / - 8 + + + 9 AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9195
SELECT - - 48 * + + CAST( + 92 AS SIGNED ) + + COUNT( * ) + 55, 26 AS col0
----
4472
26

skipif mysql # not compatible
query II rowsort label-9195
SELECT - - 48 * + + CAST ( + 92 AS INTEGER ) + + COUNT ( * ) + 55, 26 AS col0
----
4472
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9196
SELECT ALL - 94 DIV + 72 * - COUNT( * ) + + 95
----
96

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - 94 / + 72 * - COUNT ( * ) + + 95
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - COUNT( * ) * + 91 - - 29 + + 96
----
34

skipif mysql # not compatible
query I rowsort label-9197
SELECT - COUNT ( * ) * + 91 - - 29 + + 96
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT - 57 / - CASE SUM( - + 79 ) WHEN - COUNT( * ) THEN + + ( - 38 ) WHEN - + 93 THEN - COUNT( * ) * + 86 / + 45 ELSE NULL END + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9198
SELECT - 57 / - CASE SUM ( - + 79 ) WHEN - COUNT ( * ) THEN + + ( - 38 ) WHEN - + 93 THEN - COUNT ( * ) * + 86 / + 45 ELSE NULL END + - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT ALL 0 * + 69 * 94 * + COALESCE ( + 13, - CASE + 2 WHEN + ( - ( + + 76 ) ) / - 36 THEN + ( 97 ) + CASE + MAX( 78 ) WHEN 77 + AVG ( ALL 18 ) THEN + 63 - ( 22 ) END WHEN COUNT( * ) THEN 91 * + 15 ELSE NULL END ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL 0 * + 69 * 94 * + COALESCE ( + 13, - CASE + 2 WHEN + ( - ( + + 76 ) ) / - 36 THEN + ( 97 ) + CASE + MAX ( 78 ) WHEN 77 + AVG ( ALL 18 ) THEN + 63 - ( 22 ) END WHEN COUNT ( * ) THEN 91 * + 15 ELSE NULL END ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 46 col0
----
46

query II rowsort
SELECT + 59 AS col2, + 91
----
59
91

query I rowsort
SELECT ALL - - 44
----
44

query I rowsort
SELECT + - ( + 89 ) col1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL - + COUNT( * ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - + COUNT ( * ) col1
----
-1

query I rowsort
SELECT + 97 * + 80 col1
----
7760

query I rowsort
SELECT DISTINCT - + ( 87 )
----
-87

query I rowsort
SELECT - ( - 77 )
----
77

query I rowsort
SELECT ALL - 59 AS col2
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT - 63 + + - 42 DIV - 53
----
-63

skipif mysql # not compatible
query I rowsort label-9209
SELECT - 63 + + - 42 / - 53
----
-63

query II rowsort
SELECT + 29 AS col0, ( + 89 ) AS col1
----
29
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT DISTINCT 22 + COUNT( * ) * - 90 AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT 22 + COUNT ( * ) * - 90 AS col1
----
-68

query I rowsort
SELECT ALL 80 + + 43
----
123

query I rowsort
SELECT ALL 57 + + 95 col2
----
152

query II rowsort
SELECT ALL 96, - 61 * + 40 + + 94 col0
----
96
-2346

query I rowsort
SELECT DISTINCT 9 * 82 * 80
----
59040

query I rowsort
SELECT ALL 21 + + 61 * - + 86
----
-5225

query I rowsort
SELECT 83 AS col2
----
83

onlyif mysql # aggregate syntax: 
query II rowsort label-9218
SELECT DISTINCT 53 AS col0, + 40 + - COUNT( * )
----
53
39

skipif mysql # not compatible
query II rowsort label-9218
SELECT DISTINCT 53 AS col0, + 40 + - COUNT ( * )
----
53
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT 55 + + MIN( ALL - 12 ) + - + 96 * - 48
----
4651

skipif mysql # not compatible
query I rowsort label-9219
SELECT 55 + + MIN ( ALL - 12 ) + - + 96 * - 48
----
4651

onlyif mysql # aggregate syntax: 
query I rowsort label-9220
SELECT ALL 14 * - - COUNT( * ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9220
SELECT ALL 14 * - - COUNT ( * ) AS col0
----
14

query I rowsort
SELECT - 8 AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT SUM( ALL - 51 ) + + 32
----
-19

skipif mysql # not compatible
query I rowsort label-9222
SELECT SUM ( ALL - 51 ) + + 32
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ( + 22 ) - - COUNT( * )
----
23

skipif mysql # not compatible
query I rowsort label-9223
SELECT ( + 22 ) - - COUNT ( * )
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT 10 - - COUNT( ALL + + 25 ) * 93 * + 36
----
3358

skipif mysql # not compatible
query I rowsort label-9224
SELECT 10 - - COUNT ( ALL + + 25 ) * 93 * + 36
----
3358

onlyif mysql # aggregate syntax: 
query II rowsort label-9225
SELECT ALL + 91 - + + 74 AS col2, - 28 * + - MAX( + 82 ) * + - 49 + - 63 AS col0
----
17
-112567

skipif mysql # not compatible
query II rowsort label-9225
SELECT ALL + 91 - + + 74 AS col2, - 28 * + - MAX ( + 82 ) * + - 49 + - 63 AS col0
----
17
-112567

query I rowsort
SELECT ALL 73 col2
----
73

query II rowsort
SELECT 91 col1, + 72
----
91
72

query I rowsort
SELECT ALL 28 AS col2
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9229
SELECT - CAST( NULL AS SIGNED ) AS col0, 26
----
NULL
26

skipif mysql # not compatible
query II rowsort label-9229
SELECT - CAST ( NULL AS INTEGER ) AS col0, 26
----
NULL
26

query I rowsort
SELECT 45 + 61 + - 58 + 50
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9231
SELECT - 79 * CAST( - + 75 AS SIGNED )
----
5925

skipif mysql # not compatible
query I rowsort label-9231
SELECT - 79 * CAST ( - + 75 AS INTEGER )
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT - + 58 * CASE - + 34 WHEN - 88 * + + COALESCE ( + - ( + 75 ), - 46, + 74 ) - ( + 37 ) - - 27 THEN COUNT( ALL - 39 ) WHEN 15 THEN 64 END + + ( 74 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT - + 58 * CASE - + 34 WHEN - 88 * + + COALESCE ( + - ( + 75 ), - 46, + 74 ) - ( + 37 ) - - 27 THEN COUNT ( ALL - 39 ) WHEN 15 THEN 64 END + + ( 74 )
----
NULL

query I rowsort
SELECT + - 38
----
-38

onlyif mysql # aggregate syntax: 
query II rowsort label-9234
SELECT ALL - 25 AS col0, COUNT( * ) * - - 21
----
-25
21

skipif mysql # not compatible
query II rowsort label-9234
SELECT ALL - 25 AS col0, COUNT ( * ) * - - 21
----
-25
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL - - COUNT( * ) * - + 89 AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL - - COUNT ( * ) * - + 89 AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9236
SELECT NULLIF ( 87, 63 ) * + 72 + + 69 + CAST( - 14 AS SIGNED ) DIV + COUNT( DISTINCT 3 )
----
6319

skipif mysql # not compatible
query I rowsort label-9236
SELECT NULLIF ( 87, 63 ) * + 72 + + 69 + CAST ( - 14 AS INTEGER ) / + COUNT ( DISTINCT 3 )
----
6319

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT CAST( NULL AS SIGNED ) - - - 14 + 41
----
NULL

skipif mysql # not compatible
query I rowsort label-9237
SELECT CAST ( NULL AS INTEGER ) - - - 14 + 41
----
NULL

query I rowsort
SELECT ALL + 66 + - 43 AS col2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT DISTINCT - - MIN( - 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-9239
SELECT DISTINCT - - MIN ( - 54 ) AS col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT - COUNT( * ) + - 82 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-9240
SELECT - COUNT ( * ) + - 82 AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT + 25 DIV - 67 - 27
----
-27

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 25 / - 67 - 27
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9242
SELECT ALL + COUNT( * ) + CAST( + 96 AS SIGNED ) * 16
----
1537

skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + COUNT ( * ) + CAST ( + 96 AS INTEGER ) * 16
----
1537

query I rowsort
SELECT - 61 * - 95
----
5795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9244
SELECT + 50 * - - 33 + + SUM( DISTINCT CAST( + 85 AS SIGNED ) ) * + 84 + + 56 + ( + + 28 ) AS col2, + 37 * + 0
----
8874
0

skipif mysql # not compatible
query II rowsort label-9244
SELECT + 50 * - - 33 + + SUM ( DISTINCT CAST ( + 85 AS INTEGER ) ) * + 84 + + 56 + ( + + 28 ) AS col2, + 37 * + 0
----
8874
0

query II rowsort
SELECT DISTINCT + 31 * + 12 AS col1, + 0
----
372
0

query I rowsort
SELECT 56 + 75 + - - 1 + + 5 + - + 61 * + 62 * + - 76 AS col0
----
287569

query I rowsort
SELECT ALL 74 * 90
----
6660

query II rowsort
SELECT ALL 33 * + + 87 AS col2, - 70
----
2871
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT 65 + - - COUNT( * ) + - - 45
----
111

skipif mysql # not compatible
query I rowsort label-9249
SELECT 65 + - - COUNT ( * ) + - - 45
----
111

query I rowsort
SELECT ALL - 86 + + - 23 + - 22
----
-131

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9251
SELECT + 95 * - 4 + + + 31 * - CAST( 42 AS SIGNED ) DIV COUNT( * ) col2
----
-1682

skipif mysql # not compatible
query I rowsort label-9251
SELECT + 95 * - 4 + + + 31 * - CAST ( 42 AS INTEGER ) / COUNT ( * ) col2
----
-1682

query I rowsort
SELECT - 3 * ( 35 ) AS col1
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT + COALESCE ( - 42, - 35, COUNT( * ) * + 78 ) * - 73
----
3066

skipif mysql # not compatible
query I rowsort label-9253
SELECT + COALESCE ( - 42, - 35, COUNT ( * ) * + 78 ) * - 73
----
3066

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT - COUNT( * ) + + 77 - - 47
----
123

skipif mysql # not compatible
query I rowsort label-9254
SELECT - COUNT ( * ) + + 77 - - 47
----
123

query I rowsort
SELECT - 3 AS col0
----
-3

query I rowsort
SELECT + 85 + - + 85 AS col2
----
0

query I rowsort
SELECT - 57 col1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT + 61 + MIN( ALL - 81 ) + 9
----
-11

skipif mysql # not compatible
query I rowsort label-9258
SELECT + 61 + MIN ( ALL - 81 ) + 9
----
-11

query I rowsort
SELECT + 79 * + + 39 AS col1
----
3081

query I rowsort
SELECT ALL NULLIF ( + 7, 83 ) col2
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9261
SELECT DISTINCT COUNT( * ) * 59 * + 24 AS col2, - 53 AS col0
----
1416
-53

skipif mysql # not compatible
query II rowsort label-9261
SELECT DISTINCT COUNT ( * ) * 59 * + 24 AS col2, - 53 AS col0
----
1416
-53

query I rowsort
SELECT + 66 + 84
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9263
SELECT DISTINCT NULLIF ( + 54, 7 * - - NULLIF ( + ( + 71 ), - - NULLIF ( + 47, - 37 ) * - COUNT( * ) / - 29 + + 72 ) + 98 * + COALESCE ( - CASE COUNT( * ) WHEN - 75 / NULLIF ( ( COUNT( * ) ) * 73, 67 * - 20 ) THEN + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - 66 WHEN + 99 THEN + 9 WHEN 38 + + 15 THEN NULL ELSE NULL END, ( + AVG ( - 17 ) ) ) ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-9263
SELECT DISTINCT NULLIF ( + 54, 7 * - - NULLIF ( + ( + 71 ), - - NULLIF ( + 47, - 37 ) * - COUNT ( * ) / - 29 + + 72 ) + 98 * + COALESCE ( - CASE COUNT ( * ) WHEN - 75 / NULLIF ( ( COUNT ( * ) ) * 73, 67 * - 20 ) THEN + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - 66 WHEN + 99 THEN + 9 WHEN 38 + + 15 THEN NULL ELSE NULL END, ( + AVG ( - 17 ) ) ) ) AS col1
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9264
SELECT ALL + 24 - + + 52 - COUNT( * ) - + 72 * + 20 AS col2, 24
----
-1469
24

skipif mysql # not compatible
query II rowsort label-9264
SELECT ALL + 24 - + + 52 - COUNT ( * ) - + 72 * + 20 AS col2, 24
----
-1469
24

query I rowsort
SELECT DISTINCT ( + 38 ) * + 78
----
2964

query I rowsort
SELECT ALL 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT - NULLIF ( 88, - - 12 + + 7 + + - 46 + 4 * COUNT( * ) * + + MIN( DISTINCT 80 ) )
----
-88

skipif mysql # not compatible
query I rowsort label-9267
SELECT - NULLIF ( 88, - - 12 + + 7 + + - 46 + 4 * COUNT ( * ) * + + MIN ( DISTINCT 80 ) )
----
-88

query I rowsort
SELECT + 93 - - 6 * - 64 col1
----
-291

query I rowsort
SELECT + - 21 * + + 79 AS col1
----
-1659

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9270
SELECT DISTINCT - 10 * + + COUNT( * ) * + - 73 DIV - COUNT( * ) col2
----
-730

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - 10 * + + COUNT ( * ) * + - 73 / - COUNT ( * ) col2
----
-730

query I rowsort
SELECT + + 47 * + - 62 AS col0
----
-2914

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9272
SELECT - ( - CASE - 98 WHEN - 49 + - - 60 * + - 83 THEN 24 WHEN - COALESCE ( - COUNT( * ), 41 * 69 + + - 62 + 75 - 17 ) + + CAST( NULL AS SIGNED ) * 45 THEN - CASE - 44 WHEN + 43 * - 18 THEN NULL WHEN - 27 THEN - 60 + - 64 ELSE 42 END * 80 WHEN 14 THEN NULL ELSE NULL END ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT - ( - CASE - 98 WHEN - 49 + - - 60 * + - 83 THEN 24 WHEN - COALESCE ( - COUNT ( * ), 41 * 69 + + - 62 + 75 - 17 ) + + CAST ( NULL AS INTEGER ) * 45 THEN - CASE - 44 WHEN + 43 * - 18 THEN NULL WHEN - 27 THEN - 60 + - 64 ELSE 42 END * 80 WHEN 14 THEN NULL ELSE NULL END ) * 74 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 26
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9274
SELECT ALL CAST( 8 AS SIGNED ) + - ( + 33 ) * - 81 * - 8
----
-21376

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL CAST ( 8 AS INTEGER ) + - ( + 33 ) * - 81 * - 8
----
-21376

onlyif mysql # DIV for integer division: 
query I rowsort label-9275
SELECT + 52 + + NULLIF ( - 0, + 26 ) DIV - ( 35 ) AS col2
----
52

skipif mysql # not compatible
query I rowsort label-9275
SELECT + 52 + + NULLIF ( - 0, + 26 ) / - ( 35 ) AS col2
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9276
SELECT DISTINCT 44 * - 58 * - + 88 * - COALESCE ( + 77, + CAST( NULL AS SIGNED ) + - 79 ) + 46 AS col2
----
-17292306

skipif mysql # not compatible
query I rowsort label-9276
SELECT DISTINCT 44 * - 58 * - + 88 * - COALESCE ( + 77, + CAST ( NULL AS INTEGER ) + - 79 ) + 46 AS col2
----
-17292306

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT ALL + + 19 * COALESCE ( + + 74, CASE + 37 WHEN + 98 THEN - COALESCE ( - ( 7 ), ( - MIN( DISTINCT - 35 ) ) ) ELSE CAST( NULL AS SIGNED ) END ) + CASE WHEN NOT ( NULL ) > + CASE - 41 WHEN + 49 THEN NULL WHEN 14 THEN - 34 ELSE NULL END THEN + 59 / 47 + 61 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + + 19 * COALESCE ( + + 74, CASE + 37 WHEN + 98 THEN - COALESCE ( - ( 7 ), ( - MIN ( DISTINCT - 35 ) ) ) ELSE CAST ( NULL AS INTEGER ) END ) + CASE WHEN NOT ( NULL ) > + CASE - 41 WHEN + 49 THEN NULL WHEN 14 THEN - 34 ELSE NULL END THEN + 59 / 47 + 61 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT + + 17 * - - 15 + - 38 AS col0, - NULLIF ( + COUNT( * ), + - 38 )
----
217
-1

skipif mysql # not compatible
query II rowsort label-9278
SELECT + + 17 * - - 15 + - 38 AS col0, - NULLIF ( + COUNT ( * ), + - 38 )
----
217
-1

query I rowsort
SELECT + + 68 AS col2
----
68

query I rowsort
SELECT ALL 89 * - 10 * + + 94 + + ( - 18 )
----
-83678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT - - 65 + - + ( - 96 ) + + + CAST( - 22 AS SIGNED )
----
139

skipif mysql # not compatible
query I rowsort label-9281
SELECT - - 65 + - + ( - 96 ) + + + CAST ( - 22 AS INTEGER )
----
139

query I rowsort
SELECT + 54 * + ( - 52 ) AS col0
----
-2808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9283
SELECT DISTINCT - 59 * - - CAST( NULL AS SIGNED ) + 36 * - 88 / - 38 + + 65 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - 59 * - - CAST ( NULL AS INTEGER ) + 36 * - 88 / - 38 + + 65 AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 27 AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL + ( - + CASE SUM( ALL 8 ) WHEN - ( 46 ) * - 51 THEN - 70 * - - 34 WHEN + 31 + - - CAST( 48 AS SIGNED ) / + 64 THEN + 31 + - ( + 12 ) * 45 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + ( - + CASE SUM ( ALL 8 ) WHEN - ( 46 ) * - 51 THEN - 70 * - - 34 WHEN + 31 + - - CAST ( 48 AS INTEGER ) / + 64 THEN + 31 + - ( + 12 ) * 45 END ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - COALESCE ( - AVG ( DISTINCT + - 99 ), - 66 + - 83 ) / + + 8 + + + CASE - + 21 WHEN ( + COUNT( DISTINCT + - 11 ) ) THEN + - 65 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT - COALESCE ( - AVG ( DISTINCT + - 99 ), - 66 + - 83 ) / + + 8 + + + CASE - + 21 WHEN ( + COUNT ( DISTINCT + - 11 ) ) THEN + - 65 END
----
NULL

query I rowsort
SELECT ALL 29 * + 55 - - 69 + - 85 AS col2
----
1579

query II rowsort
SELECT DISTINCT + 4, 4 * - - NULLIF ( + - 99, - 73 ) AS col1
----
4
-396

query I rowsort
SELECT NULLIF ( + + 52, - - AVG ( 31 ) + - 93 ) col2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL 47 * - 8 - - COUNT( * )
----
-375

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL 47 * - 8 - - COUNT ( * )
----
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-9291
SELECT ALL + COALESCE ( COUNT( * ), COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL + COALESCE ( COUNT ( * ), COUNT ( * ) )
----
1

query I rowsort
SELECT + 53 * - 60 - + 52
----
-3232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9293
SELECT - CAST( NULL AS SIGNED ) / - CASE WHEN NOT AVG ( 66 ) < ( COUNT( * ) ) AND NOT + 72 IS NULL THEN + - 46 * 67 * 48 ELSE 15 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9293
SELECT - CAST ( NULL AS INTEGER ) / - CASE WHEN NOT AVG ( 66 ) < ( COUNT ( * ) ) AND NOT + 72 IS NULL THEN + - 46 * 67 * 48 ELSE 15 END
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9294
SELECT - MAX( ALL 21 ) + + - 79 AS col1, + 9 + + 10
----
-100
19

skipif mysql # not compatible
query II rowsort label-9294
SELECT - MAX ( ALL 21 ) + + - 79 AS col1, + 9 + + 10
----
-100
19

query II rowsort
SELECT + 50 AS col2, 94 col2
----
50
94

query I rowsort
SELECT + 79 * ( - NULLIF ( + 44, - + 43 ) ) * - - 97 AS col0
----
-337172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9297
SELECT DISTINCT - 10 / + - ( 44 ) * + - 73 + 2 * - CAST( NULL AS SIGNED ) * - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - 10 / + - ( 44 ) * + - 73 + 2 * - CAST ( NULL AS INTEGER ) * - 72
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9298
SELECT ALL + COUNT( * ) * + 42 * + 18 AS col2, 0 AS col2
----
756
0

skipif mysql # not compatible
query II rowsort label-9298
SELECT ALL + COUNT ( * ) * + 42 * + 18 AS col2, 0 AS col2
----
756
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9299
SELECT DISTINCT + COUNT( * ) * - + 85 * - + 82, - 13 DIV COUNT( * ) * - ( - 15 ) * 86 + 14 + - 84 AS col1
----
6970
-16840

skipif mysql # not compatible
query II rowsort label-9299
SELECT DISTINCT + COUNT ( * ) * - + 85 * - + 82, - 13 / COUNT ( * ) * - ( - 15 ) * 86 + 14 + - 84 AS col1
----
6970
-16840

query I rowsort
SELECT - 2 + + - 69
----
-71

query II rowsort
SELECT ALL 69 AS col1, + 77 * + 62 AS col2
----
69
4774

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - 19 * + COUNT( * )
----
-19

skipif mysql # not compatible
query I rowsort label-9302
SELECT - 19 * + COUNT ( * )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - 90 + - NULLIF ( + COUNT( * ), COUNT( * ) + 43 ) - + - 30 + - + 91 AS col1
----
-152

skipif mysql # not compatible
query I rowsort label-9303
SELECT - 90 + - NULLIF ( + COUNT ( * ), COUNT ( * ) + 43 ) - + - 30 + - + 91 AS col1
----
-152

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9304
SELECT - 76, - 57 DIV 16 * - COALESCE ( ( COUNT( * ) ), + - 27 * - - CASE 40 WHEN + 3 THEN + CASE + 10 WHEN + COALESCE ( 85, + 72, - 31 * - 63, NULLIF ( AVG ( + 6 ), + ( - 97 ) ) + 94 ) * + COUNT( * ) THEN NULL WHEN + 0 THEN NULL ELSE + 52 * COUNT( DISTINCT - 49 ) END * - 22 WHEN - 87 THEN - 24 DIV - 47 WHEN MAX( DISTINCT + 71 ) THEN NULL ELSE NULL END + 48 DIV + SUM( + 46 ) ) AS col1
----
-76
3

skipif mysql # not compatible
query II rowsort label-9304
SELECT - 76, - 57 / 16 * - COALESCE ( ( COUNT ( * ) ), + - 27 * - - CASE 40 WHEN + 3 THEN + CASE + 10 WHEN + COALESCE ( 85, + 72, - 31 * - 63, NULLIF ( AVG ( + 6 ), + ( - 97 ) ) + 94 ) * + COUNT ( * ) THEN NULL WHEN + 0 THEN NULL ELSE + 52 * COUNT ( DISTINCT - 49 ) END * - 22 WHEN - 87 THEN - 24 / - 47 WHEN MAX ( DISTINCT + 71 ) THEN NULL ELSE NULL END + 48 / + SUM ( + 46 ) ) AS col1
----
-76
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9305
SELECT - + SUM( CASE - NULLIF ( - 0, ( + 54 ) ) WHEN + ( - 11 ) * - 71 * + + 45 - - 14 THEN + + 63 END ) + - CAST( 81 AS SIGNED ) + 92 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT - + SUM ( CASE - NULLIF ( - 0, ( + 54 ) ) WHEN + ( - 11 ) * - 71 * + + 45 - - 14 THEN + + 63 END ) + - CAST ( 81 AS INTEGER ) + 92 * 12
----
NULL

query I rowsort
SELECT - - 76 * + 8 * 89 col2
----
54112

query I rowsort
SELECT + 70 * - 89
----
-6230

query I rowsort
SELECT + + 12 - - 0
----
12

query I rowsort
SELECT ( + 68 )
----
68

query I rowsort
SELECT ALL 66 + - 32
----
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9311
SELECT + 41 + - 61 + - ( + + 35 ) + + 83 - 35 - + + CAST( 55 AS SIGNED ) * + - 70 * - 75 * - 20 * - CASE - 11 WHEN SUM( ALL - 35 ) * - CASE - ( - 83 ) WHEN 40 THEN + 72 + 2 END THEN NULL ELSE - 73 * 52 END * + CASE 59 WHEN 92 + AVG ( 19 ) THEN 36 / - 77 + + 90 * 96 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9311
SELECT + 41 + - 61 + - ( + + 35 ) + + 83 - 35 - + + CAST ( 55 AS INTEGER ) * + - 70 * - 75 * - 20 * - CASE - 11 WHEN SUM ( ALL - 35 ) * - CASE - ( - 83 ) WHEN 40 THEN + 72 + 2 END THEN NULL ELSE - 73 * 52 END * + CASE 59 WHEN 92 + AVG ( 19 ) THEN 36 / - 77 + + 90 * 96 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9312
SELECT DISTINCT + 88 DIV ( MAX( 12 ) )
----
7

skipif mysql # not compatible
query I rowsort label-9312
SELECT DISTINCT + 88 / ( MAX ( 12 ) )
----
7

query II rowsort
SELECT ALL - 24 + - - 24 - 77 AS col0, + 33
----
-77
33

query I rowsort
SELECT ALL 93 * + 37 AS col0
----
3441

query I rowsort
SELECT - + 49 + - + 33 AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9316
SELECT - - 74 + - 50 + - - CAST( 23 AS SIGNED ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9316
SELECT - - 74 + - 50 + - - CAST ( 23 AS INTEGER ) AS col1
----
47

query II rowsort
SELECT + 44 col1, - 4 + - 8
----
44
-12

query I rowsort
SELECT ALL + ( 33 ) AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9319
SELECT + + CAST( - 7 AS SIGNED ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9319
SELECT + + CAST ( - 7 AS INTEGER ) AS col1
----
-7

query II rowsort
SELECT + + 13 col1, 80 * + ( + + 64 ) AS col0
----
13
5120

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT 83 DIV - - 73 - - 24 + 98 AS col1
----
123

skipif mysql # not compatible
query I rowsort label-9321
SELECT 83 / - - 73 - - 24 + 98 AS col1
----
123

query II rowsort
SELECT ALL + - 82, + 75 * 37 AS col2
----
-82
2775

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT ALL + 69 DIV 41 - + 54
----
-53

skipif mysql # not compatible
query I rowsort label-9323
SELECT ALL + 69 / 41 - + 54
----
-53

query I rowsort
SELECT ALL + 36 col1
----
36

query I rowsort
SELECT DISTINCT - 7 AS col1
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9326
SELECT CAST( - - NULLIF ( + 19, + 24 ) AS SIGNED ) * 37 - + + 81 + + 29 + - 48 * - + 65 + + + 90 * NULLIF ( + 18, + - 36 * + CAST( - 98 AS DECIMAL ) + COUNT( * ) ) + 48 AS col0
----
5439

skipif mysql # not compatible
query I rowsort label-9326
SELECT CAST ( - - NULLIF ( + 19, + 24 ) AS INTEGER ) * 37 - + + 81 + + 29 + - 48 * - + 65 + + + 90 * NULLIF ( + 18, + - 36 * + CAST ( - 98 AS REAL ) + COUNT ( * ) ) + 48 AS col0
----
5439

query I rowsort
SELECT ALL - 20 col0
----
-20

query I rowsort
SELECT 55 + - - 63 AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9329
SELECT 22 DIV + + 43 * - - 18 - 81 * + 91, 11 * - - SUM( ALL + 67 ) col2
----
-7371
737

skipif mysql # not compatible
query II rowsort label-9329
SELECT 22 / + + 43 * - - 18 - 81 * + 91, 11 * - - SUM ( ALL + 67 ) col2
----
-7371
737

query I rowsort
SELECT 94 * + 62 AS col0
----
5828

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT 0 + - 79 - - 54 - + COUNT( * ) * - + 27 - + + 32
----
-30

skipif mysql # not compatible
query I rowsort label-9331
SELECT 0 + - 79 - - 54 - + COUNT ( * ) * - + 27 - + + 32
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9332
SELECT CAST( + 52 AS SIGNED ) * + COUNT( * ) * - - 83, + 37 + - 82 AS col1
----
4316
-45

skipif mysql # not compatible
query II rowsort label-9332
SELECT CAST ( + 52 AS INTEGER ) * + COUNT ( * ) * - - 83, + 37 + - 82 AS col1
----
4316
-45

query I rowsort
SELECT 96 * 57 + + 9 + 31
----
5512

query I rowsort
SELECT ALL - 96 * 29
----
-2784

query I rowsort
SELECT ALL 55 * ( + - 78 ) * + - 17 * + 92 AS col0
----
6709560

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL - MAX( + 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL - MAX ( + 76 ) AS col1
----
-76

query I rowsort
SELECT 0 + 75 + - 15
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT ALL - MAX( + + ( + ( + + 28 ) ) ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL - MAX ( + + ( + ( + + 28 ) ) ) col2
----
-28

query I rowsort
SELECT 88 col2
----
88

query I rowsort
SELECT - ( + 53 ) * - - 72 * - 24 + - 14 + 90 + 38 + + 69 AS col1
----
91767

query I rowsort
SELECT 99 * - 92
----
-9108

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT 35 + - 65 DIV + 91
----
35

skipif mysql # not compatible
query I rowsort label-9342
SELECT 35 + - 65 / + 91
----
35

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9343
SELECT 41 / + 96 * CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT 41 / + 96 * CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT 2 + 45 - - 52 AS col1
----
99

query I rowsort
SELECT - + 90 AS col2
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9346
SELECT ALL + + 2 + - + MAX( DISTINCT 60 ) - - 74 + 34 + + 92 DIV + 93 - + 42 * + + ( - - ( - 94 ) ) + + + NULLIF ( + + COUNT( * ), 55 ) + - 33
----
3966

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL + + 2 + - + MAX ( DISTINCT 60 ) - - 74 + 34 + + 92 / + 93 - + 42 * + + ( - - ( - 94 ) ) + + + NULLIF ( + + COUNT ( * ), 55 ) + - 33
----
3966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9347
SELECT ALL - + COUNT( * ) DIV + ( - 67 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - + COUNT ( * ) / + ( - 67 ) AS col1
----
0

query I rowsort
SELECT + 20 + - 52
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT ALL + + NULLIF ( + + 89, 73 * 34 + 61 + 93 + - - 71 / 76 - - 71 * 78 * + + 16 * + + COALESCE ( - + 60, + CAST( + 19 AS SIGNED ), NULLIF ( + 26, + CASE - 83 WHEN - 41 + 0 THEN 70 * MAX( ALL + 24 ) WHEN 69 - - 59 THEN NULL END + - 57 ) / - 72 + - 57 ) ) * + 34 AS col0
----
3026

skipif mysql # not compatible
query I rowsort label-9349
SELECT ALL + + NULLIF ( + + 89, 73 * 34 + 61 + 93 + - - 71 / 76 - - 71 * 78 * + + 16 * + + COALESCE ( - + 60, + CAST ( + 19 AS INTEGER ), NULLIF ( + 26, + CASE - 83 WHEN - 41 + 0 THEN 70 * MAX ( ALL + 24 ) WHEN 69 - - 59 THEN NULL END + - 57 ) / - 72 + - 57 ) ) * + 34 AS col0
----
3026

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL + + 10 + ( - 10 ) + + - COUNT( * ) + + 81 * - 90 * + 21 * + - ( - MAX( ALL 98 ) ) * - 34 + - 48 * - 63 + COUNT( * )
----
510098904

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + + 10 + ( - 10 ) + + - COUNT ( * ) + + 81 * - 90 * + 21 * + - ( - MAX ( ALL 98 ) ) * - 34 + - 48 * - 63 + COUNT ( * )
----
510098904

query I rowsort
SELECT DISTINCT + 25 + 14 * 12 + - 98
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT CASE + - 61 WHEN + 42 + + + 13 + + + 31 THEN NULL WHEN + SUM( 94 ) THEN - + 4 END - - 31 + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT CASE + - 61 WHEN + 42 + + + 13 + + + 31 THEN NULL WHEN + SUM ( 94 ) THEN - + 4 END - - 31 + COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT - + ( NULLIF ( - AVG ( - CAST( NULL AS SIGNED ) ), - 44 * + - 48 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9353
SELECT - + ( NULLIF ( - AVG ( - CAST ( NULL AS INTEGER ) ), - 44 * + - 48 ) )
----
NULL

query II rowsort
SELECT - 70 + 69 AS col2, + 74 - + + 46 * + 82
----
-1
-3698

query I rowsort
SELECT - + 38
----
-38

query I rowsort
SELECT 82 + + 49
----
131

query I rowsort
SELECT ALL - 71 AS col0
----
-71

query II rowsort
SELECT + 36 + + 91, 58 AS col1
----
127
58

query II rowsort
SELECT DISTINCT - 32 - + 0 col2, 79 AS col1
----
-32
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT - NULLIF ( - COUNT( * ), + COUNT( * ) * ( + COUNT( * ) ) / COUNT( * ) + + 32 )
----
1

skipif mysql # not compatible
query I rowsort label-9360
SELECT - NULLIF ( - COUNT ( * ), + COUNT ( * ) * ( + COUNT ( * ) ) / COUNT ( * ) + + 32 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9361
SELECT ALL - 82 DIV 8 AS col0
----
-10

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - 82 / 8 AS col0
----
-10

query I rowsort
SELECT 28 AS col1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT DISTINCT 57 * COALESCE ( + + MAX( ALL + ( - - 14 ) ), 86 + 6 ) AS col2
----
798

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT 57 * COALESCE ( + + MAX ( ALL + ( - - 14 ) ), 86 + 6 ) AS col2
----
798

query I rowsort
SELECT 65 * + 63 AS col0
----
4095

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9365
SELECT 27 DIV + 34 + - - 4 - COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-9365
SELECT 27 / + 34 + - - 4 - COUNT ( * )
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9366
SELECT ALL - 39 AS col2, + 32 + 14 DIV - 20 - + 29 * - 94
----
-39
2758

skipif mysql # not compatible
query II rowsort label-9366
SELECT ALL - 39 AS col2, + 32 + 14 / - 20 - + 29 * - 94
----
-39
2758

query I rowsort
SELECT + 88 AS col0
----
88

query I rowsort
SELECT + 46 AS col1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9369
SELECT ALL - COALESCE ( + 29, - + CAST( + + NULLIF ( + - 4, - ( - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) * - + 38 )
----
-29

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL - COALESCE ( + 29, - + CAST ( + + NULLIF ( + - 4, - ( - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) * - + 38 )
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL COUNT( * ) * + 43 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL COUNT ( * ) * + 43 AS col1
----
43

query I rowsort
SELECT 6 * 81 * - 70 AS col2
----
-34020

onlyif mysql # aggregate syntax: 
query II rowsort label-9372
SELECT 79 AS col0, - COUNT( * ) col2
----
79
-1

skipif mysql # not compatible
query II rowsort label-9372
SELECT 79 AS col0, - COUNT ( * ) col2
----
79
-1

query I rowsort
SELECT 19 * - 35 AS col2
----
-665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9374
SELECT 96 * - 71 * + - 30 col1, COUNT( * ) - - + CAST( COUNT( * ) AS SIGNED ) AS col0
----
204480
2

skipif mysql # not compatible
query II rowsort label-9374
SELECT 96 * - 71 * + - 30 col1, COUNT ( * ) - - + CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
204480
2

query I rowsort
SELECT DISTINCT 37 * - 61
----
-2257

query I rowsort
SELECT 9 * + 16
----
144

query I rowsort
SELECT 44 * - 81 * - + 15 AS col2
----
53460

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT MAX( - 67 ) * - 56 * - 28 + ( COUNT( * ) ) AS col1
----
-105055

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT MAX ( - 67 ) * - 56 * - 28 + ( COUNT ( * ) ) AS col1
----
-105055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9379
SELECT + 4 * NULLIF ( + COALESCE ( - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) / - - 36 + + + 78 ), + 65 ) * + 55 + - - NULLIF ( + 32, 26 + + - 48 ) + + + 97 * + 77 + + 22 + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9379
SELECT + 4 * NULLIF ( + COALESCE ( - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) / - - 36 + + + 78 ), + 65 ) * + 55 + - - NULLIF ( + 32, 26 + + - 48 ) + + + 97 * + 77 + + 22 + 81 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9380
SELECT DISTINCT + 53 AS col1, 26 * + + CAST( NULL AS SIGNED ) AS col2
----
53
NULL

skipif mysql # not compatible
query II rowsort label-9380
SELECT DISTINCT + 53 AS col1, 26 * + + CAST ( NULL AS INTEGER ) AS col2
----
53
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9381
SELECT ALL + COUNT( * ) + - - CASE 70 WHEN - 82 THEN NULL ELSE - + ( - 72 ) DIV COUNT( * ) * - COUNT( * ) END col2
----
-71

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL + COUNT ( * ) + - - CASE 70 WHEN - 82 THEN NULL ELSE - + ( - 72 ) / COUNT ( * ) * - COUNT ( * ) END col2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT 30 + + - 48 * COUNT( * ) + + - ( - 60 ) AS col0
----
42

skipif mysql # not compatible
query I rowsort label-9382
SELECT 30 + + - 48 * COUNT ( * ) + + - ( - 60 ) AS col0
----
42

query I rowsort
SELECT - 45 * - 99 AS col1
----
4455

query I rowsort
SELECT - + 61 AS col0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT 20 - + + 44 * - COUNT( + 75 ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-9385
SELECT 20 - + + 44 * - COUNT ( + 75 ) AS col1
----
64

query II rowsort
SELECT 49 AS col1, 0 col2
----
49
0

query I rowsort
SELECT - + 50 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9388
SELECT 66 - + - 31 DIV + 94 + + - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-9388
SELECT 66 - + - 31 / + 94 + + - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ( + COUNT( * ) ) + - 29
----
-28

skipif mysql # not compatible
query I rowsort label-9389
SELECT ( + COUNT ( * ) ) + - 29
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT DISTINCT 99 DIV 95 + 88
----
89

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT 99 / 95 + 88
----
89

query I rowsort
SELECT - - 33 + - 77 - - + 9 col1
----
-35

query I rowsort
SELECT ALL ( - 6 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT - ( MIN( DISTINCT - + NULLIF ( - 72, + 90 * - 73 + - 74 - ( - 92 ) + + + 81 * - + 97 + + 11 / - 24 * 27 - + - 10 ) ) ) * 80 AS col1
----
-5760

skipif mysql # not compatible
query I rowsort label-9393
SELECT - ( MIN ( DISTINCT - + NULLIF ( - 72, + 90 * - 73 + - 74 - ( - 92 ) + + + 81 * - + 97 + + 11 / - 24 * 27 - + - 10 ) ) ) * 80 AS col1
----
-5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT + - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 61 * ( + ( - 40 ) )
----
2440

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT - 1 + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9396
SELECT - 1 + + COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL MAX( DISTINCT 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL MAX ( DISTINCT 4 )
----
4

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT - 57 * - ( SUM( - 15 ) ) AS col2, + COUNT( * ) + - - MIN( DISTINCT - 95 ) - - 15
----
-855
-79

skipif mysql # not compatible
query II rowsort label-9398
SELECT - 57 * - ( SUM ( - 15 ) ) AS col2, + COUNT ( * ) + - - MIN ( DISTINCT - 95 ) - - 15
----
-855
-79

onlyif mysql # aggregate syntax: 
query II rowsort label-9399
SELECT ALL + COUNT( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2
----
1
-9067

skipif mysql # not compatible
query II rowsort label-9399
SELECT ALL + COUNT ( * ) col2, + 11 * - 0 + 47 + + 98 * - 93 AS col2
----
1
-9067

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9400
SELECT ( - - 27 ) DIV + - 32 + COUNT( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0
----
-91
7

skipif mysql # not compatible
query II rowsort label-9400
SELECT ( - - 27 ) / + - 32 + COUNT ( * ) + - 93 + + 1 AS col0, + 97 + - 90 AS col0
----
-91
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9401
SELECT DISTINCT - 23 * + 98 * + - CAST( 99 AS SIGNED )
----
223146

skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT - 23 * + 98 * + - CAST ( 99 AS INTEGER )
----
223146

query II rowsort
SELECT DISTINCT + 61 AS col1, 78 AS col1
----
61
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9403
SELECT - 3 DIV + 33 + + 77
----
77

skipif mysql # not compatible
query I rowsort label-9403
SELECT - 3 / + 33 + + 77
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9404
SELECT ALL 15 * 56 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9404
SELECT ALL 15 * 56 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9405
SELECT DISTINCT + COUNT( ALL + 79 ) DIV - - 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + COUNT ( ALL + 79 ) / - - 48 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT + 96 + - 40 * COUNT( * ) AS col0
----
56

skipif mysql # not compatible
query I rowsort label-9406
SELECT + 96 + - 40 * COUNT ( * ) AS col0
----
56

query I rowsort
SELECT ALL + 60 * - 31 col1
----
-1860

query I rowsort
SELECT ALL + 49 * 39 + + 71 * + + 34
----
4325

query II rowsort
SELECT + 9 AS col1, - 8 AS col2
----
9
-8

query I rowsort
SELECT + 73 + + ( 76 ) AS col2
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9411
SELECT - MAX( + - 60 ) * - + 7 - - MAX( CAST( NULL AS SIGNED ) ) + + 30 / - 45 * + COALESCE ( - - 22, 24 ) * + 37 + - + COUNT( ( ( - 66 ) ) ) * 99 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT - MAX ( + - 60 ) * - + 7 - - MAX ( CAST ( NULL AS INTEGER ) ) + + 30 / - 45 * + COALESCE ( - - 22, 24 ) * + 37 + - + COUNT ( ( ( - 66 ) ) ) * 99 AS col1
----
NULL

query I rowsort
SELECT ALL + 33 * + 28 + + 49
----
973

query I rowsort
SELECT - ( + 55 ) * - + 38 + - ( + ( + + 13 ) ) + 12 - ( - - 99 )
----
1990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9414
SELECT ALL + COUNT( DISTINCT + + 36 ) * MIN( DISTINCT - 61 ) + NULLIF ( + CAST( NULL AS SIGNED ), - CASE 93 WHEN COUNT( + 40 ) * - 88 THEN NULL WHEN + ( - 82 ) * 56 + - 98 + + CAST( NULL AS SIGNED ) + CAST( CAST( 34 AS SIGNED ) - 39 AS SIGNED ) * 26 THEN 53 ELSE - 18 END * ( + 81 + + 14 ) + 2 ) + - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT ALL + COUNT ( DISTINCT + + 36 ) * MIN ( DISTINCT - 61 ) + NULLIF ( + CAST ( NULL AS INTEGER ), - CASE 93 WHEN COUNT ( + 40 ) * - 88 THEN NULL WHEN + ( - 82 ) * 56 + - 98 + + CAST ( NULL AS INTEGER ) + CAST ( CAST ( 34 AS INTEGER ) - 39 AS INTEGER ) * 26 THEN 53 ELSE - 18 END * ( + 81 + + 14 ) + 2 ) + - 56 AS col0
----
NULL

query I rowsort
SELECT + 37 + + 46 AS col1
----
83

query I rowsort
SELECT DISTINCT + + 64 * - - 76 + + + 32
----
4896

query II rowsort
SELECT 33 AS col0, - 9
----
33
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT + - 65, + COUNT( * ) AS col0
----
-65
1

skipif mysql # not compatible
query II rowsort label-9418
SELECT + - 65, + COUNT ( * ) AS col0
----
-65
1

query I rowsort
SELECT - 46 * + - 55
----
2530

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9420
SELECT + COUNT( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST( NULL AS DECIMAL ) ) / 9 col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-9420
SELECT + COUNT ( * ) AS col1, 16 / 29 * 86 * - + 22 * - 24 + + ( + - CAST ( NULL AS REAL ) ) / 9 col1
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT COALESCE ( + SUM( DISTINCT 6 ), - 19 * COUNT( * ), COUNT( * ) * - + 2 + 85 ) AS col1
----
6

skipif mysql # not compatible
query I rowsort label-9421
SELECT COALESCE ( + SUM ( DISTINCT 6 ), - 19 * COUNT ( * ), COUNT ( * ) * - + 2 + 85 ) AS col1
----
6

query II rowsort
SELECT ( ( + ( - 28 ) ) ), - 67 + 18 + + - 6 AS col0
----
-28
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9423
SELECT + - SUM( DISTINCT 67 ) + - - 38 + + + NULLIF ( - + 29, 94 / + CAST( NULL AS SIGNED ) - + - 37 )
----
-58

skipif mysql # not compatible
query I rowsort label-9423
SELECT + - SUM ( DISTINCT 67 ) + - - 38 + + + NULLIF ( - + 29, 94 / + CAST ( NULL AS INTEGER ) - + - 37 )
----
-58

query I rowsort
SELECT + + ( 86 ) * - 39 + + 20
----
-3334

query I rowsort
SELECT DISTINCT COALESCE ( + 75, + - 74 - - 45 ) * + 53 AS col1
----
3975

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9426
SELECT ALL + 18 - - + ( + 48 ) + + 20 * + 98 DIV - - COUNT( * ) + - 7
----
2019

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL + 18 - - + ( + 48 ) + + 20 * + 98 / - - COUNT ( * ) + - 7
----
2019

query I rowsort
SELECT + 5 + + + 61 * - 93 col2
----
-5668

query I rowsort
SELECT + + 37 * - ( - 73 ) + 90 * 5 col0
----
3151

query I rowsort
SELECT DISTINCT + COALESCE ( - 29, + 59 * + + 72 * + + 25 + + 84 )
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9430
SELECT ALL 58, - CAST( 70 AS SIGNED ) AS col0
----
58
-70

skipif mysql # not compatible
query II rowsort label-9430
SELECT ALL 58, - CAST ( 70 AS INTEGER ) AS col0
----
58
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9431
SELECT + SUM( DISTINCT + 82 ) DIV + 53 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9431
SELECT + SUM ( DISTINCT + 82 ) / + 53 AS col0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9432
SELECT - CAST( NULL AS DECIMAL ) * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT - CAST ( NULL AS REAL ) * 12
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-9433
SELECT + COUNT( * ), 92 AS col0, - COUNT( DISTINCT + 64 ) AS col2
----
1
92
-1

skipif mysql # not compatible
query III rowsort label-9433
SELECT + COUNT ( * ), 92 AS col0, - COUNT ( DISTINCT + 64 ) AS col2
----
1
92
-1

query II rowsort
SELECT ALL - 80, 77 AS col2
----
-80
77

query II rowsort
SELECT + 59, 50 AS col0
----
59
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT + CASE 31 WHEN + + 77 + 69 THEN NULL WHEN ( - + COUNT( * ) ) + + + 74 + - 0 THEN 87 + + MAX( + 53 ) * + 10 ELSE NULL END / - NULLIF ( + + NULLIF ( + COUNT( * ), - 44 * + - 11 + - 93 ), + MIN( ALL 72 ) / 54 ) + - COUNT( DISTINCT 7 + 35 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9436
SELECT + CASE 31 WHEN + + 77 + 69 THEN NULL WHEN ( - + COUNT ( * ) ) + + + 74 + - 0 THEN 87 + + MAX ( + 53 ) * + 10 ELSE NULL END / - NULLIF ( + + NULLIF ( + COUNT ( * ), - 44 * + - 11 + - 93 ), + MIN ( ALL 72 ) / 54 ) + - COUNT ( DISTINCT 7 + 35 ) AS col0
----
NULL

query I rowsort
SELECT - 63 + + 77 AS col1
----
14

query I rowsort
SELECT 94 col0
----
94

query I rowsort
SELECT - 33 AS col0
----
-33

query I rowsort
SELECT - 27 * 31 * + - 35 * - ( - + 68 ) AS col1
----
1992060

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL COUNT( * ) + - - NULLIF ( - 59, 41 )
----
-58

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL COUNT ( * ) + - - NULLIF ( - 59, 41 )
----
-58

query I rowsort
SELECT - 3 * - 39
----
117

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9443
SELECT CAST( + CASE 80 WHEN + 18 THEN NULL WHEN 2 THEN COUNT( * ) ELSE NULL END AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9443
SELECT CAST ( + CASE 80 WHEN + 18 THEN NULL WHEN 2 THEN COUNT ( * ) ELSE NULL END AS REAL )
----
NULL

query I rowsort
SELECT - 73 * 77 * - 9
----
50589

query I rowsort
SELECT DISTINCT + CASE 86 WHEN + 43 - 91 THEN - CASE - 11 WHEN - 96 THEN NULL ELSE - + 20 + + COALESCE ( + + 61, 23 + - 70 + + - 40 + + 89 ) END * 89 - 38 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + MAX( DISTINCT 69 )
----
69

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + MAX ( DISTINCT 69 )
----
69

query I rowsort
SELECT - 37 * 30 AS col0
----
-1110

query I rowsort
SELECT ALL + 99
----
99

query I rowsort
SELECT - + 77 * + 75
----
-5775

query I rowsort
SELECT + - 11
----
-11

query I rowsort
SELECT - + 32 + 3 col2
----
-29

query I rowsort
SELECT + - ( 88 ) col0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9453
SELECT - 67 * CAST( + 29 AS SIGNED ) * + + COALESCE ( + - 36, + MIN( ALL + 90 ) + + ( - COUNT( DISTINCT 24 ) ) + + 1 DIV - 52, - + 92 ) * 47 + 74
----
3287630

skipif mysql # not compatible
query I rowsort label-9453
SELECT - 67 * CAST ( + 29 AS INTEGER ) * + + COALESCE ( + - 36, + MIN ( ALL + 90 ) + + ( - COUNT ( DISTINCT 24 ) ) + + 1 / - 52, - + 92 ) * 47 + 74
----
3287630

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT + 36 * ( - SUM( + - 65 ) )
----
2340

skipif mysql # not compatible
query I rowsort label-9454
SELECT + 36 * ( - SUM ( + - 65 ) )
----
2340

query I rowsort
SELECT - ( - - 61 ) AS col2
----
-61

query I rowsort
SELECT ALL + - 50
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT DISTINCT + - COUNT( 60 ) * 30 * - MIN( - 45 ) - ( + - 10 ) AS col1
----
-1340

skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT + - COUNT ( 60 ) * 30 * - MIN ( - 45 ) - ( + - 10 ) AS col1
----
-1340

query I rowsort
SELECT + 16 * - 62 + + 24 * 96 AS col2
----
1312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9460
SELECT 16 + - COALESCE ( + 17, - + 54 ) + + + 78 + CAST( NULL AS DECIMAL ) - + CAST( NULL AS DECIMAL ) / - + 90 + + 37 * - 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9460
SELECT 16 + - COALESCE ( + 17, - + 54 ) + + + 78 + CAST ( NULL AS REAL ) - + CAST ( NULL AS REAL ) / - + 90 + + 37 * - 47
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT - MIN( DISTINCT - - 81 )
----
-81

skipif mysql # not compatible
query I rowsort label-9461
SELECT - MIN ( DISTINCT - - 81 )
----
-81

query I rowsort
SELECT - - ( + 71 ) AS col2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9463
SELECT + 57 - - + 66 + + + COUNT( * ) * - + 25 DIV - + COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-9463
SELECT + 57 - - + 66 + + + COUNT ( * ) * - + 25 / - + COUNT ( * )
----
148

query I rowsort
SELECT - + 82 AS col0
----
-82

query I rowsort
SELECT DISTINCT 24 AS col1
----
24

query I rowsort
SELECT 94 + - 31 AS col0
----
63

query I rowsort
SELECT ALL 30 AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT DISTINCT CASE - COUNT( * ) WHEN + + 5 - + CASE 27 WHEN 97 THEN - + 81 WHEN 48 + 16 - - 10 + - - 26 + - 26 + + 17 THEN NULL WHEN - - 79 + + - CAST( NULL AS SIGNED ) - + ( - - 23 ) THEN NULL ELSE NULL END + + SUM( ALL + 93 ) * - COUNT( * ) THEN NULL WHEN COUNT( * ) + - 61 THEN NULL ELSE 70 END + 42 col1
----
112

skipif mysql # not compatible
query I rowsort label-9468
SELECT DISTINCT CASE - COUNT ( * ) WHEN + + 5 - + CASE 27 WHEN 97 THEN - + 81 WHEN 48 + 16 - - 10 + - - 26 + - 26 + + 17 THEN NULL WHEN - - 79 + + - CAST ( NULL AS INTEGER ) - + ( - - 23 ) THEN NULL ELSE NULL END + + SUM ( ALL + 93 ) * - COUNT ( * ) THEN NULL WHEN COUNT ( * ) + - 61 THEN NULL ELSE 70 END + 42 col1
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL SUM( - - 68 ) + + - 47 + 82 * - COUNT( * ) AS col2
----
-61

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL SUM ( - - 68 ) + + - 47 + 82 * - COUNT ( * ) AS col2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT CASE 5 WHEN + 19 + + 18 * + + 81 THEN - 0 WHEN - - 79 + COUNT( * ) * 60 + 53 + - + 30 * - 34 * + ( 45 ) THEN + 95 END + 89 * 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9470
SELECT CASE 5 WHEN + 19 + + 18 * + + 81 THEN - 0 WHEN - - 79 + COUNT ( * ) * 60 + 53 + - + 30 * - 34 * + ( 45 ) THEN + 95 END + 89 * 24 AS col2
----
NULL

query I rowsort
SELECT - 39 col1
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9472
SELECT 90 + + CASE CAST( - 51 AS SIGNED ) WHEN + COUNT( * ) + - 33 THEN + 66 END * + + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT 90 + + CASE CAST ( - 51 AS INTEGER ) WHEN + COUNT ( * ) + - 33 THEN + 66 END * + + 15 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9473
SELECT CAST( - 91 AS SIGNED ) + + 29 col1, 1 + ( - COUNT( * ) ) col0
----
-62
0

skipif mysql # not compatible
query II rowsort label-9473
SELECT CAST ( - 91 AS INTEGER ) + + 29 col1, 1 + ( - COUNT ( * ) ) col0
----
-62
0

query I rowsort
SELECT 35 / + CASE 20 WHEN + 18 THEN + - 37 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT ALL ( - - COUNT( * ) ) + 81 + 21
----
103

skipif mysql # not compatible
query I rowsort label-9475
SELECT ALL ( - - COUNT ( * ) ) + 81 + 21
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9476
SELECT 18 * - ( + CAST( + - COUNT( * ) AS SIGNED ) ) * COUNT( * ) - - + 59 - + - 12
----
89

skipif mysql # not compatible
query I rowsort label-9476
SELECT 18 * - ( + CAST ( + - COUNT ( * ) AS INTEGER ) ) * COUNT ( * ) - - + 59 - + - 12
----
89

query I rowsort
SELECT ALL 43 - - 52 AS col1
----
95

query I rowsort
SELECT ALL + 43 * - 53
----
-2279

query I rowsort
SELECT DISTINCT 78 * 76
----
5928

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT COUNT( * ) / - CASE - NULLIF ( - - 62, 49 ) WHEN MAX( 73 ) * + 15 THEN 29 * + COALESCE ( 15, - 47 + - - 96 / - 38 - + 57 ) + 36 + - COUNT( * ) + + + 80 + + 59 END + 87 * + 82 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9480
SELECT COUNT ( * ) / - CASE - NULLIF ( - - 62, 49 ) WHEN MAX ( 73 ) * + 15 THEN 29 * + COALESCE ( 15, - 47 + - - 96 / - 38 - + 57 ) + 36 + - COUNT ( * ) + + + 80 + + 59 END + 87 * + 82 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9481
SELECT 15 DIV 21
----
0

skipif mysql # not compatible
query I rowsort label-9481
SELECT 15 / 21
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT 50 DIV - COALESCE ( + 3, + 78, 43 + 82 * + ( 9 ) + - + 79 )
----
-16

skipif mysql # not compatible
query I rowsort label-9482
SELECT 50 / - COALESCE ( + 3, + 78, 43 + 82 * + ( 9 ) + - + 79 )
----
-16

query I rowsort
SELECT ALL - 98 * - 89 AS col0
----
8722

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT ALL + ( - ( - COUNT( * ) ) ) * + + ( + 81 ) col1
----
81

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL + ( - ( - COUNT ( * ) ) ) * + + ( + 81 ) col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT DISTINCT + COUNT( * ) * - + 69 + + 74
----
5

skipif mysql # not compatible
query I rowsort label-9485
SELECT DISTINCT + COUNT ( * ) * - + 69 + + 74
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9486
SELECT + CASE COALESCE ( 18, - 8 ) WHEN - 74 THEN COALESCE ( 34, 65 * - COUNT( - 57 ) ) - COUNT( DISTINCT 40 ) + - - 58 WHEN + CASE + COUNT( * ) WHEN - COUNT( ALL + ( - 23 ) ) + - COALESCE ( CAST( COUNT( * ) AS SIGNED ), 59 ) THEN CAST( NULL AS SIGNED ) WHEN 54 THEN 46 - 31 END + + 83 THEN NULL WHEN MAX( 93 ) THEN + 81 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT + CASE COALESCE ( 18, - 8 ) WHEN - 74 THEN COALESCE ( 34, 65 * - COUNT ( - 57 ) ) - COUNT ( DISTINCT 40 ) + - - 58 WHEN + CASE + COUNT ( * ) WHEN - COUNT ( ALL + ( - 23 ) ) + - COALESCE ( CAST ( COUNT ( * ) AS INTEGER ), 59 ) THEN CAST ( NULL AS INTEGER ) WHEN 54 THEN 46 - 31 END + + 83 THEN NULL WHEN MAX ( 93 ) THEN + 81 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT - 64 * + 93 AS col0
----
-5952

query I rowsort
SELECT ALL - + 4 AS col2
----
-4

query II rowsort
SELECT DISTINCT - NULLIF ( - 26, + 26 ) col0, 52 * - - 57 AS col0
----
26
2964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9490
SELECT - CAST( - 86 AS SIGNED ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9490
SELECT - CAST ( - 86 AS INTEGER ) AS col2
----
86

query I rowsort
SELECT ALL - 71 AS col2
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9492
SELECT COUNT( * ) * - 76 * - CASE + + 99 WHEN 65 THEN - 73 ELSE - + COALESCE ( + - 50, - 14 * + - SUM( + 1 ) + CAST( NULL AS SIGNED ) DIV + + 43 * - - 46 * + ( + 33 ) + - + 38 ) END + - COUNT( * ) col2
----
3799

skipif mysql # not compatible
query I rowsort label-9492
SELECT COUNT ( * ) * - 76 * - CASE + + 99 WHEN 65 THEN - 73 ELSE - + COALESCE ( + - 50, - 14 * + - SUM ( + 1 ) + CAST ( NULL AS INTEGER ) / + + 43 * - - 46 * + ( + 33 ) + - + 38 ) END + - COUNT ( * ) col2
----
3799

query I rowsort
SELECT DISTINCT - - 84 + + 32 AS col0
----
116

query II rowsort
SELECT - + 7 AS col0, 36
----
-7
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT ALL - COUNT( * ) + + 18 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL - COUNT ( * ) + + 18 AS col0
----
17

query I rowsort
SELECT ALL + 83 + 67
----
150

query I rowsort
SELECT 84 + 34 AS col0
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL + COUNT( * ) * + ( - SUM( DISTINCT - 6 ) ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL + COUNT ( * ) * + ( - SUM ( DISTINCT - 6 ) ) AS col0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT COUNT( * ) + + 12 AS col0
----
13

skipif mysql # not compatible
query I rowsort label-9499
SELECT COUNT ( * ) + + 12 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT 3 * + COUNT( - - 95 )
----
3

skipif mysql # not compatible
query I rowsort label-9500
SELECT 3 * + COUNT ( - - 95 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL - COUNT( * ) + 31 * + 86
----
2665

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL - COUNT ( * ) + 31 * + 86
----
2665

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT DISTINCT MIN( DISTINCT + 78 ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9502
SELECT DISTINCT MIN ( DISTINCT + 78 ) AS col0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-9503
SELECT 80 DIV - 4
----
-20

skipif mysql # not compatible
query I rowsort label-9503
SELECT 80 / - 4
----
-20

query I rowsort
SELECT ALL 85 col0
----
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9505
SELECT ( + ( + 93 ) ) + CAST( + + 45 AS SIGNED ) AS col0, COUNT( * ) * 94 AS col2
----
138
94

skipif mysql # not compatible
query II rowsort label-9505
SELECT ( + ( + 93 ) ) + CAST ( + + 45 AS INTEGER ) AS col0, COUNT ( * ) * 94 AS col2
----
138
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT CAST( NULL AS SIGNED ) + - 2 * - - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT CAST ( NULL AS INTEGER ) + - 2 * - - 42 AS col1
----
NULL

query I rowsort
SELECT DISTINCT - 20 - + 49
----
-69

query I rowsort
SELECT ALL + 2 - - - 38 * + 18
----
-682

query I rowsort
SELECT ALL 2 * 98
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL 25 - + COUNT( * ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL 25 - + COUNT ( * ) AS col1
----
24

query I rowsort
SELECT DISTINCT 37 * 33
----
1221

query I rowsort
SELECT 53 * - + ( + - 17 )
----
901

query I rowsort
SELECT + COALESCE ( + 95, + 92, + ( - NULLIF ( - 82, 28 * 19 ) ) ) AS col2
----
95

query I rowsort
SELECT DISTINCT - - 70
----
70

query I rowsort
SELECT 97 * 49 AS col1
----
4753

query I rowsort
SELECT ALL + 30 AS col0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT + COALESCE ( MIN( ALL + 78 ), + 76 )
----
78

skipif mysql # not compatible
query I rowsort label-9517
SELECT + COALESCE ( MIN ( ALL + 78 ), + 76 )
----
78

query I rowsort
SELECT + + 50 * + + 77 AS col2
----
3850

query I rowsort
SELECT ALL - - 61 * 76
----
4636

onlyif mysql # DIV for integer division: 
query I rowsort label-9520
SELECT - 85 DIV + 32 + - - 71
----
69

skipif mysql # not compatible
query I rowsort label-9520
SELECT - 85 / + 32 + - - 71
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9521
SELECT DISTINCT 54 * NULLIF ( - 69, COUNT( * ) * - + 55 ) / + + COUNT( * ) + + COUNT( ALL + ( 18 ) ) + + 88 + + 50 - ( + CAST( NULL AS SIGNED ) ) + + 98, - 6 * + 46 AS col0
----
NULL
-276

skipif mysql # not compatible
query II rowsort label-9521
SELECT DISTINCT 54 * NULLIF ( - 69, COUNT ( * ) * - + 55 ) / + + COUNT ( * ) + + COUNT ( ALL + ( 18 ) ) + + 88 + + 50 - ( + CAST ( NULL AS INTEGER ) ) + + 98, - 6 * + 46 AS col0
----
NULL
-276

query I rowsort
SELECT + 54 col1
----
54

query I rowsort
SELECT + + 42
----
42

query I rowsort
SELECT + - 30 AS col1
----
-30

query I rowsort
SELECT ALL - - 81 + - 96 + + 15 AS col1
----
0

query I rowsort
SELECT + 77 col2
----
77

query I rowsort
SELECT + - ( - 17 )
----
17

query I rowsort
SELECT ALL 39 + - + 53 AS col0
----
-14

query I rowsort
SELECT DISTINCT 43 + + 90 AS col1
----
133

query I rowsort
SELECT ALL + NULLIF ( - 19, - 72 * ( - + 29 ) )
----
-19

query I rowsort
SELECT ALL ( + 0 )
----
0

query I rowsort
SELECT DISTINCT - 27 AS col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT - - 73 + + + CASE - COUNT( * ) WHEN MIN( + - 38 ) * + 91 THEN NULLIF ( + - 48, - 16 * 79 ) ELSE + COUNT( * ) END + 94 - + 94 AS col1
----
74

skipif mysql # not compatible
query I rowsort label-9533
SELECT - - 73 + + + CASE - COUNT ( * ) WHEN MIN ( + - 38 ) * + 91 THEN NULLIF ( + - 48, - 16 * 79 ) ELSE + COUNT ( * ) END + 94 - + 94 AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT DISTINCT + COUNT( + + 51 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9534
SELECT DISTINCT + COUNT ( + + 51 ) AS col1
----
1

query I rowsort
SELECT + 74 + 43 AS col2
----
117

query I rowsort
SELECT DISTINCT + 87 + - 58 * + 72 * + 87
----
-363225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9537
SELECT - CAST( 33 AS DECIMAL ) + + - CASE 94 WHEN + + 52 + + - 29 + + COUNT( * ) + - - 12 / + NULLIF ( - 58, + - 94 ) THEN 78 - - + 11 + + 9 + - 2 + + 76 / + 72 * + 65 * + 72 + + NULLIF ( MAX( DISTINCT 31 ), - 13 + NULLIF ( - 90 - + COUNT( * ), 5 * - CASE SUM( 24 ) WHEN NULLIF ( + 84, ( + CAST( NULL AS SIGNED ) ) - COUNT( * ) * - 67 ) THEN + 47 / + 87 WHEN 46 * + 84 THEN NULL ELSE + 83 END ) ) * 23 WHEN - COUNT( * ) THEN 57 * 92 + CASE COUNT( * ) + 44 WHEN - 87 * + 70 THEN COUNT( * ) END * + 64 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT - CAST ( 33 AS REAL ) + + - CASE 94 WHEN + + 52 + + - 29 + + COUNT ( * ) + - - 12 / + NULLIF ( - 58, + - 94 ) THEN 78 - - + 11 + + 9 + - 2 + + 76 / + 72 * + 65 * + 72 + + NULLIF ( MAX ( DISTINCT 31 ), - 13 + NULLIF ( - 90 - + COUNT ( * ), 5 * - CASE SUM ( 24 ) WHEN NULLIF ( + 84, ( + CAST ( NULL AS INTEGER ) ) - COUNT ( * ) * - 67 ) THEN + 47 / + 87 WHEN 46 * + 84 THEN NULL ELSE + 83 END ) ) * 23 WHEN - COUNT ( * ) THEN 57 * 92 + CASE COUNT ( * ) + 44 WHEN - 87 * + 70 THEN COUNT ( * ) END * + 64 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT - MAX( ALL + 82 ) AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9538
SELECT - MAX ( ALL + 82 ) AS col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9539
SELECT + 32 + - 18 + - + CAST( NULL AS SIGNED ) * + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-9539
SELECT + 32 + - 18 + - + CAST ( NULL AS INTEGER ) * + 15
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT ALL - COUNT( * ) * SUM( 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9540
SELECT ALL - COUNT ( * ) * SUM ( 2 )
----
-2

query I rowsort
SELECT - 44 * + 21
----
-924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9542
SELECT ALL - 42 DIV - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - 42 / - - COUNT ( * )
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9543
SELECT DISTINCT - COUNT( * ) - 64 - 12 + + + CAST( - CASE - 77 WHEN + 23 * 57 THEN NULL WHEN - + 71 + - 75 + + 31 * ( + ( ( 5 ) ) ) - + 48 THEN + 63 + - 62 + - + 40 ELSE - - 86 END AS SIGNED ) + + ( - 48 ) DIV + 3 * COUNT( * ) AS col1
----
-179

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT - COUNT ( * ) - 64 - 12 + + + CAST ( - CASE - 77 WHEN + 23 * 57 THEN NULL WHEN - + 71 + - 75 + + 31 * ( + ( ( 5 ) ) ) - + 48 THEN + 63 + - 62 + - + 40 ELSE - - 86 END AS INTEGER ) + + ( - 48 ) / + 3 * COUNT ( * ) AS col1
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL ( - MIN( ALL - - 69 ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL ( - MIN ( ALL - - 69 ) ) AS col1
----
-69

query I rowsort
SELECT DISTINCT 46 col1
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-9546
SELECT - 97 + 10 * + NULLIF ( + 73, - 98 * 28 + + 37 * 39 * - - COALESCE ( - - 63, 1, + COUNT( * ) * + NULLIF ( - CASE + + 14 WHEN + - ( + CAST( NULL AS SIGNED ) ) + CAST( + 39 AS DECIMAL ) * + NULLIF ( - 36, + ( + 33 ) * - 67 + COUNT( * ) ) THEN NULL WHEN 71 THEN 4 * 1 ELSE - COUNT( * ) END, - 61 + COUNT( * ) * - COUNT( * ) ) * 95 + + COUNT( * ) ) ) + COALESCE ( COUNT( * ), 19 DIV + CASE 34 WHEN - 74 * + 94 THEN - 19 + + 53 ELSE NULL END ) * - 66 AS col0
----
567

skipif mysql # not compatible
query I rowsort label-9546
SELECT - 97 + 10 * + NULLIF ( + 73, - 98 * 28 + + 37 * 39 * - - COALESCE ( - - 63, 1, + COUNT ( * ) * + NULLIF ( - CASE + + 14 WHEN + - ( + CAST ( NULL AS INTEGER ) ) + CAST ( + 39 AS REAL ) * + NULLIF ( - 36, + ( + 33 ) * - 67 + COUNT ( * ) ) THEN NULL WHEN 71 THEN 4 * 1 ELSE - COUNT ( * ) END, - 61 + COUNT ( * ) * - COUNT ( * ) ) * 95 + + COUNT ( * ) ) ) + COALESCE ( COUNT ( * ), 19 / + CASE 34 WHEN - 74 * + 94 THEN - 19 + + 53 ELSE NULL END ) * - 66 AS col0
----
567

query I rowsort
SELECT ALL - 16 * - 4
----
64

query I rowsort
SELECT ALL 26 - + + 15
----
11

query I rowsort
SELECT DISTINCT ( 84 )
----
84

query I rowsort
SELECT ALL ( + 63 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + 8 - + + COUNT( * ) + + 95 * - + 87
----
-8258

skipif mysql # not compatible
query I rowsort label-9551
SELECT + 8 - + + COUNT ( * ) + + 95 * - + 87
----
-8258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT + AVG ( CAST( NULL AS SIGNED ) ) / - 25 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) / - 25 AS col0
----
NULL

query II rowsort
SELECT - 78 + + - 35 - + 68 AS col1, ( - 80 ) AS col1
----
-181
-80

query I rowsort
SELECT ALL ( + 17 ) col1
----
17

query I rowsort
SELECT - 54 + + 88 * + 72
----
6282

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT + COUNT( * ), SUM( + + 60 ) col0
----
1
60

skipif mysql # not compatible
query II rowsort label-9556
SELECT + COUNT ( * ), SUM ( + + 60 ) col0
----
1
60

query I rowsort
SELECT DISTINCT + 82 AS col0
----
82

query I rowsort
SELECT ALL + - 3
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9559
SELECT ALL + CAST( - 93 AS SIGNED ) * + 41 + + COUNT( * )
----
-3812

skipif mysql # not compatible
query I rowsort label-9559
SELECT ALL + CAST ( - 93 AS INTEGER ) * + 41 + + COUNT ( * )
----
-3812

query I rowsort
SELECT ALL + + 21 AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT DISTINCT + MAX( ALL - - 76 )
----
76

skipif mysql # not compatible
query I rowsort label-9561
SELECT DISTINCT + MAX ( ALL - - 76 )
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT DISTINCT COUNT( DISTINCT + 64 ) * + 49 + + MAX( - 37 ) + + NULLIF ( 60, + MAX( ALL + 61 ) ) * + + 25 * 90
----
135012

skipif mysql # not compatible
query I rowsort label-9562
SELECT DISTINCT COUNT ( DISTINCT + 64 ) * + 49 + + MAX ( - 37 ) + + NULLIF ( 60, + MAX ( ALL + 61 ) ) * + + 25 * 90
----
135012

query I rowsort
SELECT ALL + CASE 52 WHEN + 22 + + 82 THEN + 3 ELSE NULL END col0
----
NULL

query I rowsort
SELECT + ( + 2 ) AS col1
----
2

query II rowsort
SELECT DISTINCT + - 84 AS col1, - 48 AS col0
----
-84
-48

query I rowsort
SELECT + - 77 * + 57 AS col1
----
-4389

query I rowsort
SELECT DISTINCT + + ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9568
SELECT DISTINCT COUNT( * ) * + + 3 * + + 3 + 91 - + NULLIF ( + ( + - 12 ), + 59 ) + - 78 AS col2
----
34

skipif mysql # not compatible
query I rowsort label-9568
SELECT DISTINCT COUNT ( * ) * + + 3 * + + 3 + 91 - + NULLIF ( + ( + - 12 ), + 59 ) + - 78 AS col2
----
34

query I rowsort
SELECT ALL - 92 * + 28 - - 76
----
-2500

query I rowsort
SELECT ALL + + 68 AS col1
----
68

query I rowsort
SELECT ALL + 10 * - 77 + 26
----
-744

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT + 42 DIV - 86 + + 28 + - 11 * 47 AS col2
----
-489

skipif mysql # not compatible
query I rowsort label-9572
SELECT + 42 / - 86 + + 28 + - 11 * 47 AS col2
----
-489

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - COUNT( * ) * + 71 + COUNT( * ) + 34
----
-36

skipif mysql # not compatible
query I rowsort label-9573
SELECT - COUNT ( * ) * + 71 + COUNT ( * ) + 34
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9574
SELECT + 51 * CAST( NULL AS SIGNED ) * - 66 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9574
SELECT + 51 * CAST ( NULL AS INTEGER ) * - 66 AS col2
----
NULL

query I rowsort
SELECT - 57 * + + COALESCE ( - 98, - 81 )
----
5586

query I rowsort
SELECT ALL 62 * 78 * + - 19
----
-91884

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT MAX( - 64 ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-9577
SELECT MAX ( - 64 ) AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9578
SELECT - CAST( + 25 AS SIGNED )
----
-25

skipif mysql # not compatible
query I rowsort label-9578
SELECT - CAST ( + 25 AS INTEGER )
----
-25

query I rowsort
SELECT DISTINCT + 35 * 9 - 88 AS col2
----
227

query I rowsort
SELECT ALL 26 * + 71
----
1846

query I rowsort
SELECT - 38 + - 61 AS col2
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT COUNT( * ) AS col0, 73
----
1
73

skipif mysql # not compatible
query II rowsort label-9582
SELECT COUNT ( * ) AS col0, 73
----
1
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL SUM( + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL SUM ( + 28 )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT - COUNT( * ) + - 13 AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9584
SELECT - COUNT ( * ) + - 13 AS col2
----
-14

query I rowsort
SELECT ALL - 84 * - 10 AS col0
----
840

query I rowsort
SELECT - 90 * ( - 37 ) col0
----
3330

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL COALESCE ( - + 66, - COUNT( * ) ) col1
----
-66

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL COALESCE ( - + 66, - COUNT ( * ) ) col1
----
-66

query I rowsort
SELECT + 61 - 95
----
-34

query I rowsort
SELECT - 3 col1
----
-3

query I rowsort
SELECT DISTINCT ( - + 49 )
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9591
SELECT - 55 * 70 DIV - 41 AS col0
----
93

skipif mysql # not compatible
query I rowsort label-9591
SELECT - 55 * 70 / - 41 AS col0
----
93

onlyif mysql # DIV for integer division: 
query II rowsort label-9592
SELECT - 13, + 6 DIV + 79 * - 29 col2
----
-13
0

skipif mysql # not compatible
query II rowsort label-9592
SELECT - 13, + 6 / + 79 * - 29 col2
----
-13
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9593
SELECT DISTINCT + CAST( - 75 AS SIGNED ) * + - 89
----
6675

skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + CAST ( - 75 AS INTEGER ) * + - 89
----
6675

query I rowsort
SELECT DISTINCT 17 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9595
SELECT 59 * CAST( - ( + COUNT( * ) ) AS SIGNED )
----
-59

skipif mysql # not compatible
query I rowsort label-9595
SELECT 59 * CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
-59

query I rowsort
SELECT DISTINCT 54 col2
----
54

query I rowsort
SELECT DISTINCT + + 52 + 97 + + 18 AS col0
----
167

query II rowsort
SELECT - 15 AS col2, - 69 AS col1
----
-15
-69

query I rowsort
SELECT ALL + 28 + - - 74
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-9600
SELECT + - COUNT( * ) AS col1, 21 AS col2
----
-1
21

skipif mysql # not compatible
query II rowsort label-9600
SELECT + - COUNT ( * ) AS col1, 21 AS col2
----
-1
21

query I rowsort
SELECT 36 * 79 AS col2
----
2844

query I rowsort
SELECT ALL - 36 + ( - 62 ) col2
----
-98

query I rowsort
SELECT - ( - 65 ) AS col1
----
65

query I rowsort
SELECT ALL 77 + - 60 + - 23
----
-6

query I rowsort
SELECT 81 * 72 - 96 AS col1
----
5736

onlyif mysql # DIV for integer division: 
query II rowsort label-9606
SELECT ALL - - 16 col0, + 0 DIV 61 * - - 98 * - 44 - + - 85 AS col2
----
16
85

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL - - 16 col0, + 0 / 61 * - - 98 * - 44 - + - 85 AS col2
----
16
85

query II rowsort
SELECT ALL - ( - 28 ), - 5 AS col0
----
28
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9608
SELECT DISTINCT + CAST( 67 AS SIGNED ) + - CASE ( 71 ) WHEN + - 29 THEN NULL WHEN + 59 * 20 THEN - + CASE + - 40 WHEN CASE 4 WHEN + 23 THEN 56 ELSE NULL END THEN - 85 * + ( + ( 33 ) ) * 24 * + - COUNT( * ) + - + 52 WHEN - CAST( - COUNT( * ) AS SIGNED ) THEN NULL END ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT + CAST ( 67 AS INTEGER ) + - CASE ( 71 ) WHEN + - 29 THEN NULL WHEN + 59 * 20 THEN - + CASE + - 40 WHEN CASE 4 WHEN + 23 THEN 56 ELSE NULL END THEN - 85 * + ( + ( 33 ) ) * 24 * + - COUNT ( * ) + - + 52 WHEN - CAST ( - COUNT ( * ) AS INTEGER ) THEN NULL END ELSE NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9609
SELECT ALL - - 0 AS col0, 95 * - COALESCE ( - + 62, 81 + - + 43 DIV - NULLIF ( + + NULLIF ( 61, + 94 ), 60 ) ) + 40 * ( + - 83 )
----
0
2570

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL - - 0 AS col0, 95 * - COALESCE ( - + 62, 81 + - + 43 / - NULLIF ( + + NULLIF ( 61, + 94 ), 60 ) ) + 40 * ( + - 83 )
----
0
2570

query I rowsort
SELECT ALL + + 22 - - + 27 AS col0
----
49

query I rowsort
SELECT 67 col0
----
67

query I rowsort
SELECT ALL - - 57 AS col0
----
57

query I rowsort
SELECT + - NULLIF ( + 58, - 16 ) AS col1
----
-58

query I rowsort
SELECT + 40 + - 3 AS col2
----
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9615
SELECT - - 34 * - - 0 DIV + 16 - + + COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-9615
SELECT - - 34 * - - 0 / + 16 - + + COUNT ( * )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9616
SELECT ALL - CAST( NULL AS SIGNED ), - 10 DIV + - 35 AS col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9616
SELECT ALL - CAST ( NULL AS INTEGER ), - 10 / + - 35 AS col2
----
NULL
0

query I rowsort
SELECT - ( + 57 ) * 46 AS col2
----
-2622

query I rowsort
SELECT 3 + - + 9 + + 29 AS col2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT ALL ( 2 ) DIV 61
----
0

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL ( 2 ) / 61
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT NULLIF ( + 58, 8 ) + + - 77 + - COUNT( * ) * + 63 AS col1
----
-82

skipif mysql # not compatible
query I rowsort label-9620
SELECT NULLIF ( + 58, 8 ) + + - 77 + - COUNT ( * ) * + 63 AS col1
----
-82

query I rowsort
SELECT DISTINCT - 57 col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT 88 * + ( - COALESCE ( + 14, - + 52 ) ) + + 26 + + - NULLIF ( NULLIF ( - 14, 33 / 97 ), + 22 + - ( + 43 ) * - + 33 - - 48 * 18 - - - COUNT( * ) + - 67 + 71 )
----
-1192

skipif mysql # not compatible
query I rowsort label-9622
SELECT 88 * + ( - COALESCE ( + 14, - + 52 ) ) + + 26 + + - NULLIF ( NULLIF ( - 14, 33 / 97 ), + 22 + - ( + 43 ) * - + 33 - - 48 * 18 - - - COUNT ( * ) + - 67 + 71 )
----
-1192

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT ( + + 87 ) DIV - 26 + - - 72 - - - 98
----
-29

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT ( + + 87 ) / - 26 + - - 72 - - - 98
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9624
SELECT CAST( NULL AS SIGNED ) + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9624
SELECT CAST ( NULL AS INTEGER ) + + 12 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9625
SELECT COALESCE ( 11, + 85 * + 31 * - - 48 - - 86, + + 19 * 27 + + 69 * - 68 ) DIV + SUM( DISTINCT + + 70 ) * + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9625
SELECT COALESCE ( 11, + 85 * + 31 * - - 48 - - 86, + + 19 * 27 + + 69 * - 68 ) / + SUM ( DISTINCT + + 70 ) * + COUNT ( * )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9626
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT NULLIF ( + 15, + 93 ) + + COUNT( * ) + ( + 0 ) * + + 90
----
16

skipif mysql # not compatible
query I rowsort label-9627
SELECT NULLIF ( + 15, + 93 ) + + COUNT ( * ) + ( + 0 ) * + + 90
----
16

query II rowsort
SELECT 63 + - - 6 + + ( 51 ) * + 77 AS col1, 92 * - 68 + + - 40 + - + 43 * - 48 AS col2
----
3996
-4232

query I rowsort
SELECT ALL 2 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT 34 / - - 75 * - CASE - COUNT( * ) WHEN + 17 THEN - 48 END * ( + ( COALESCE ( - + 91, - 11 ) ) ) + ( - CASE + COUNT( ALL - - 28 ) WHEN ( + + 58 ) * + 37 THEN + - 5 + + 39 ELSE - 78 * + + 0 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9630
SELECT 34 / - - 75 * - CASE - COUNT ( * ) WHEN + 17 THEN - 48 END * ( + ( COALESCE ( - + 91, - 11 ) ) ) + ( - CASE + COUNT ( ALL - - 28 ) WHEN ( + + 58 ) * + 37 THEN + - 5 + + 39 ELSE - 78 * + + 0 END )
----
NULL

query I rowsort
SELECT - 4 AS col0
----
-4

query I rowsort
SELECT DISTINCT 7 col1
----
7

query I rowsort
SELECT ALL + 80 + - 99 + - 52 AS col1
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT CASE 17 WHEN + NULLIF ( + 43, - ( - 30 ) + - - ( - 35 ) ) THEN 64 * + COUNT( - - 20 ) END - + + SUM( ALL + 11 ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT CASE 17 WHEN + NULLIF ( + 43, - ( - 30 ) + - - ( - 35 ) ) THEN 64 * + COUNT ( - - 20 ) END - + + SUM ( ALL + 11 ) col1
----
NULL

query I rowsort
SELECT ALL 13 AS col0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT DISTINCT ( + - 90 ) + + - COUNT( * ) + - - 29 AS col1
----
-62

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT ( + - 90 ) + + - COUNT ( * ) + - - 29 AS col1
----
-62

query I rowsort
SELECT DISTINCT 16
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9638
SELECT DISTINCT 48 + COUNT( * ) + + + 92 DIV + + 61 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT 48 + COUNT ( * ) + + + 92 / + + 61 AS col0
----
50

query I rowsort
SELECT ALL 7 + - 81 * 75 col1
----
-6068

query I rowsort
SELECT DISTINCT 65 + + 85
----
150

query I rowsort
SELECT ( - + 80 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT + 81 + + 9 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT + 81 + + 9 + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 2 - - 60
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT ALL + MAX( DISTINCT - - NULLIF ( ( 16 ), + + 73 * + + 97 ) ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-9644
SELECT ALL + MAX ( DISTINCT - - NULLIF ( ( 16 ), + + 73 * + + 97 ) ) AS col0
----
16

query I rowsort
SELECT ( + - 96 ) + + - 79 AS col2
----
-175

query II rowsort
SELECT - 8 + + + 92 AS col1, - 8
----
84
-8

query I rowsort
SELECT - 22 col2
----
-22

query I rowsort
SELECT ALL + + 75 + - 86 AS col1
----
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9649
SELECT - 31 + - 38 AS col0, + 38 + COUNT( * ) DIV - 77
----
-69
38

skipif mysql # not compatible
query II rowsort label-9649
SELECT - 31 + - 38 AS col0, + 38 + COUNT ( * ) / - 77
----
-69
38

query I rowsort
SELECT ALL - 5 * - 88
----
440

query I rowsort
SELECT ALL - - 5
----
5

query I rowsort
SELECT DISTINCT + 88 * 76 col0
----
6688

query I rowsort
SELECT ALL - - ( + 60 ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9654
SELECT ALL - 55 - SUM( - 30 ) - - COUNT( * )
----
-24

skipif mysql # not compatible
query I rowsort label-9654
SELECT ALL - 55 - SUM ( - 30 ) - - COUNT ( * )
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-9655
SELECT + 97 DIV + - 78 col1, - 71 AS col1
----
-1
-71

skipif mysql # not compatible
query II rowsort label-9655
SELECT + 97 / + - 78 col1, - 71 AS col1
----
-1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT 51 * - 7 + - ( 81 ) + COUNT( * ) + CASE WHEN NULL BETWEEN - ( - 29 ) AND NULL THEN - - COUNT( * ) END + COUNT( - - 5 ) * 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT 51 * - 7 + - ( 81 ) + COUNT ( * ) + CASE WHEN NULL BETWEEN - ( - 29 ) AND NULL THEN - - COUNT ( * ) END + COUNT ( - - 5 ) * 14
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9657
SELECT + COUNT( + - CAST( 73 AS DECIMAL ) ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT + COUNT ( + - CAST ( 73 AS REAL ) ) + - COUNT ( * )
----
0

query I rowsort
SELECT ( CASE + 15 WHEN - 10 * + + 67 THEN - 44 + + 17 END ) * + COALESCE ( + - 24, 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9659
SELECT - + CASE - SUM( ALL - + 63 ) WHEN - ( + - CASE - AVG ( DISTINCT 48 ) WHEN + 70 THEN - 4 WHEN + + 46 - - - NULLIF ( 74, + + 46 * + AVG ( ALL - 71 ) ) + + 57 * - - 91 THEN 86 + 6 ELSE 48 END ) / + 83 + COALESCE ( - ( ( 35 ) ), - COUNT( * ) ) * 53 + 83 THEN NULL WHEN - COUNT( * ) * 45 THEN 63 ELSE - CAST( NULL AS SIGNED ) END / - 54 + + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT - + CASE - SUM ( ALL - + 63 ) WHEN - ( + - CASE - AVG ( DISTINCT 48 ) WHEN + 70 THEN - 4 WHEN + + 46 - - - NULLIF ( 74, + + 46 * + AVG ( ALL - 71 ) ) + + 57 * - - 91 THEN 86 + 6 ELSE 48 END ) / + 83 + COALESCE ( - ( ( 35 ) ), - COUNT ( * ) ) * 53 + 83 THEN NULL WHEN - COUNT ( * ) * 45 THEN 63 ELSE - CAST ( NULL AS INTEGER ) END / - 54 + + 14
----
NULL

query I rowsort
SELECT ALL - + 55
----
-55

query I rowsort
SELECT + + 99
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT 43 + ( + 6 ) DIV - + ( + 87 ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-9662
SELECT 43 + ( + 6 ) / - + ( + 87 ) AS col0
----
43

query I rowsort
SELECT DISTINCT - - 41 - - 16
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9664
SELECT DISTINCT ( + 62 ) * + CAST( + 74 AS SIGNED ) AS col2
----
4588

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT ( + 62 ) * + CAST ( + 74 AS INTEGER ) AS col2
----
4588

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9665
SELECT ALL CAST( NULL AS DECIMAL ) * - 8 * 66 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL CAST ( NULL AS REAL ) * - 8 * 66 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT COUNT( * ) * + NULLIF ( + 23, - - COUNT( * ) ) * + 38 * - 18
----
-15732

skipif mysql # not compatible
query I rowsort label-9666
SELECT COUNT ( * ) * + NULLIF ( + 23, - - COUNT ( * ) ) * + 38 * - 18
----
-15732

query I rowsort
SELECT DISTINCT + 11 * - 65
----
-715

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT DISTINCT + COUNT( * ) * - 55
----
-55

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + COUNT ( * ) * - 55
----
-55

query I rowsort
SELECT 11 * + 81 + - - 72 + + 73 * 14 AS col1
----
1985

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT + MIN( ALL 91 )
----
91

skipif mysql # not compatible
query I rowsort label-9670
SELECT + MIN ( ALL 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT COUNT( * ) * - 66 * ( + COUNT( * ) ) col0
----
-66

skipif mysql # not compatible
query I rowsort label-9671
SELECT COUNT ( * ) * - 66 * ( + COUNT ( * ) ) col0
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9672
SELECT + 36 * - - 46 DIV + COUNT( DISTINCT + 56 ) + + - 59
----
1597

skipif mysql # not compatible
query I rowsort label-9672
SELECT + 36 * - - 46 / + COUNT ( DISTINCT + 56 ) + + - 59
----
1597

query I rowsort
SELECT ALL 67 + 11 AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL - MIN( ALL + + 55 ) * - - 18 - - - 45 AS col2
----
-1035

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - MIN ( ALL + + 55 ) * - - 18 - - - 45 AS col2
----
-1035

query I rowsort
SELECT + 49 + - 32 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9676
SELECT DISTINCT 60 DIV MIN( ALL + 96 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT DISTINCT 60 / MIN ( ALL + 96 ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9677
SELECT ALL NULLIF ( + COUNT( * ), SUM( - CAST( NULL AS SIGNED ) ) / + + CASE - + COUNT( * ) WHEN + - 76 THEN + 0 ELSE NULL END ) + + - ( + - 96 ) - - + 41 AS col2
----
138

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL NULLIF ( + COUNT ( * ), SUM ( - CAST ( NULL AS INTEGER ) ) / + + CASE - + COUNT ( * ) WHEN + - 76 THEN + 0 ELSE NULL END ) + + - ( + - 96 ) - - + 41 AS col2
----
138

onlyif mysql # DIV for integer division: 
query I rowsort label-9678
SELECT + 1 DIV + 26 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9678
SELECT + 1 / + 26 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL 7 + + COUNT( * ) * - 56 AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL 7 + + COUNT ( * ) * - 56 AS col2
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL 66 + - CAST( NULL AS SIGNED ) * 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL 66 + - CAST ( NULL AS INTEGER ) * 75
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT - MIN( ALL - 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9681
SELECT - MIN ( ALL - 22 ) AS col0
----
22

query I rowsort
SELECT ALL 10 * - 96 AS col0
----
-960

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT + 79 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-9683
SELECT + 79 / 83
----
0

query I rowsort
SELECT + 49 + + 38 AS col2
----
87

query I rowsort
SELECT + 53 - + 65
----
-12

query I rowsort
SELECT DISTINCT - ( 78 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT - COUNT( + - 8 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9687
SELECT - COUNT ( + - 8 ) AS col2
----
-1

query I rowsort
SELECT - ( 31 ) AS col1
----
-31

query I rowsort
SELECT DISTINCT 57 AS col2
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9690
SELECT + + CAST( NULL AS SIGNED ) * - + 74 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9690
SELECT + + CAST ( NULL AS INTEGER ) * - + 74 col2
----
NULL

query II rowsort
SELECT + + 35 AS col0, + ( - - 76 ) + - 89
----
35
-13

query I rowsort
SELECT - 65 * - 36 col0
----
2340

query I rowsort
SELECT ALL + - 39
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9694
SELECT + 74 AS col1, 59 + + 50 + + 82 - + MIN( ALL CAST( NULL AS SIGNED ) )
----
74
NULL

skipif mysql # not compatible
query II rowsort label-9694
SELECT + 74 AS col1, 59 + + 50 + + 82 - + MIN ( ALL CAST ( NULL AS INTEGER ) )
----
74
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT + + COUNT( * ) AS col0, - 72
----
1
-72

skipif mysql # not compatible
query II rowsort label-9695
SELECT + + COUNT ( * ) AS col0, - 72
----
1
-72

query II rowsort
SELECT 40, NULLIF ( - + 26, + + 29 ) col1
----
40
-26

query I rowsort
SELECT ALL - 43 * + + 26 col1
----
-1118

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT + + 38 DIV 38 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9698
SELECT + + 38 / 38 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT ALL + 32 DIV 56
----
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL + 32 / 56
----
0

query I rowsort
SELECT ALL + - 6 AS col1
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT - - MAX( + 9 ) * + 78 / + - COUNT( * ) * + 19 + + 95 * 87 * - + 98 * - CAST( NULL AS SIGNED ) + - - 61 - + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT - - MAX ( + 9 ) * + 78 / + - COUNT ( * ) * + 19 + + 95 * 87 * - + 98 * - CAST ( NULL AS INTEGER ) + - - 61 - + 74
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL + COUNT( ALL 35 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL + COUNT ( ALL 35 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT DISTINCT + MIN( - CASE + 51 WHEN + 38 / - 10 THEN - - 45 / + - 53 + - 54 + 60 WHEN - ( - 13 ) * - 94 + 4 THEN NULL ELSE - - 34 END )
----
-34

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT + MIN ( - CASE + 51 WHEN + 38 / - 10 THEN - - 45 / + - 53 + - 54 + 60 WHEN - ( - 13 ) * - 94 + 4 THEN NULL ELSE - - 34 END )
----
-34

query I rowsort
SELECT ALL 4 * + - 65
----
-260

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9705
SELECT - 15 DIV COUNT( * ) * 60
----
-900

skipif mysql # not compatible
query I rowsort label-9705
SELECT - 15 / COUNT ( * ) * 60
----
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT COALESCE ( + 39, - ( MAX( + + 31 ) ) ) AS col1
----
39

skipif mysql # not compatible
query I rowsort label-9706
SELECT COALESCE ( + 39, - ( MAX ( + + 31 ) ) ) AS col1
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-9707
SELECT ALL + ( + 3 ) * - + COUNT( * ) + + - 34 AS col2, + 12 + + + 97
----
-37
109

skipif mysql # not compatible
query II rowsort label-9707
SELECT ALL + ( + 3 ) * - + COUNT ( * ) + + - 34 AS col2, + 12 + + + 97
----
-37
109

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT - CAST( NULL AS SIGNED ) * + NULLIF ( + 19, - + 28 ) + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT - CAST ( NULL AS INTEGER ) * + NULLIF ( + 19, - + 28 ) + + 42
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9709
SELECT - MIN( 27 ) * COALESCE ( + + NULLIF ( - CAST( + NULLIF ( 64, + 46 * + 42 * + 38 ) AS SIGNED ), 95 ), + 87 )
----
1728

skipif mysql # not compatible
query I rowsort label-9709
SELECT - MIN ( 27 ) * COALESCE ( + + NULLIF ( - CAST ( + NULLIF ( 64, + 46 * + 42 * + 38 ) AS INTEGER ), 95 ), + 87 )
----
1728

query I rowsort
SELECT 25 * + 66 + - - 86
----
1736

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT NULLIF ( + + 10, - COUNT( * ) ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-9711
SELECT NULLIF ( + + 10, - COUNT ( * ) ) AS col0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9712
SELECT ALL 51 * COUNT( * ) * - ( + 74 ) * + + 41 * - 36 DIV + + 3 + 74
----
1856882

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL 51 * COUNT ( * ) * - ( + 74 ) * + + 41 * - 36 / + + 3 + 74
----
1856882

query I rowsort
SELECT NULLIF ( + 68, + + ( + - 49 ) )
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT DISTINCT + COALESCE ( + 30, + COUNT( DISTINCT CASE 5 WHEN + 26 THEN + 9 + - - 20 * - - 94 ELSE NULL END ) + + - ( + 80 ) * + 1 ) * + - 47 + - + ( - - COUNT( * ) ) AS col2
----
-1411

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT + COALESCE ( + 30, + COUNT ( DISTINCT CASE 5 WHEN + 26 THEN + 9 + - - 20 * - - 94 ELSE NULL END ) + + - ( + 80 ) * + 1 ) * + - 47 + - + ( - - COUNT ( * ) ) AS col2
----
-1411

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT + 69 * + COUNT( * ) * - 95 + - - 13
----
-6542

skipif mysql # not compatible
query I rowsort label-9715
SELECT + 69 * + COUNT ( * ) * - 95 + - - 13
----
-6542

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - 25 * + COUNT( * )
----
-25

skipif mysql # not compatible
query I rowsort label-9716
SELECT - 25 * + COUNT ( * )
----
-25

query I rowsort
SELECT ALL ( NULLIF ( + 79, + - 58 ) )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT - SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9718
SELECT - SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL - 54 * - 3 AS col1
----
162

query I rowsort
SELECT - 64 AS col0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9721
SELECT DISTINCT - 36 * + CAST( NULL AS SIGNED ) / - + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - 36 * + CAST ( NULL AS INTEGER ) / - + 7
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT ALL ( - - COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL ( - - COUNT ( * ) )
----
1

query II rowsort
SELECT + - 69 - + 16 * - 71 + - - 30, 23 + + 38 AS col0
----
1097
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9724
SELECT + 13 + + COUNT( * ) DIV + - COUNT( + 46 ) AS col1, COUNT( * ) AS col2
----
12
1

skipif mysql # not compatible
query II rowsort label-9724
SELECT + 13 + + COUNT ( * ) / + - COUNT ( + 46 ) AS col1, COUNT ( * ) AS col2
----
12
1

query I rowsort
SELECT DISTINCT - 66 * + 29 + - 92 AS col0
----
-2006

onlyif mysql # aggregate syntax: 
query II rowsort label-9726
SELECT - 66 + - COUNT( * ) AS col0, 21
----
-67
21

skipif mysql # not compatible
query II rowsort label-9726
SELECT - 66 + - COUNT ( * ) AS col0, 21
----
-67
21

query I rowsort
SELECT + 40 * 84 * + 62 * - + ( - 8 ) AS col2
----
1666560

onlyif mysql # DIV for integer division: 
query I rowsort label-9728
SELECT + + 28 - - 82 DIV ( - - 38 )
----
30

skipif mysql # not compatible
query I rowsort label-9728
SELECT + + 28 - - 82 / ( - - 38 )
----
30

query I rowsort
SELECT ALL 19 AS col0
----
19

query I rowsort
SELECT + 93 + 22
----
115

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9731
SELECT + + 84 * CAST( NULL AS SIGNED ) AS col0, - ( + SUM( ALL + ( + ( - 4 ) ) ) ) * - - 37 AS col2
----
NULL
148

skipif mysql # not compatible
query II rowsort label-9731
SELECT + + 84 * CAST ( NULL AS INTEGER ) AS col0, - ( + SUM ( ALL + ( + ( - 4 ) ) ) ) * - - 37 AS col2
----
NULL
148

query I rowsort
SELECT + + 78 * 77 + - 67
----
5939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL COALESCE ( + ( - CAST( 10 AS SIGNED ) ), - + 97 * + - 65, 67 * NULLIF ( - CAST( NULL AS SIGNED ), + 30 / 66 * + 89 + - COUNT( * ) ) * + - 68 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL COALESCE ( + ( - CAST ( 10 AS INTEGER ) ), - + 97 * + - 65, 67 * NULLIF ( - CAST ( NULL AS INTEGER ), + 30 / 66 * + 89 + - COUNT ( * ) ) * + - 68 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT + - 67 + + MAX( ALL - 12 )
----
-79

skipif mysql # not compatible
query I rowsort label-9734
SELECT + - 67 + + MAX ( ALL - 12 )
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT ALL - ( + - ( - - MAX( + 84 ) ) ) * + 57 - - COUNT( * ) DIV ( - + 6 ) AS col1
----
4788

skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL - ( + - ( - - MAX ( + 84 ) ) ) * + 57 - - COUNT ( * ) / ( - + 6 ) AS col1
----
4788

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT ALL + - COUNT( + 85 )
----
-1

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + - COUNT ( + 85 )
----
-1

query I rowsort
SELECT DISTINCT 8 * + 69 * - 75 * - ( - ( - 71 ) ) * 36 AS col2
----
105818400

query I rowsort
SELECT ALL + 80 col0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT ALL + 26 DIV 29 + 71
----
71

skipif mysql # not compatible
query I rowsort label-9739
SELECT ALL + 26 / 29 + 71
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9740
SELECT CAST( 56 AS SIGNED )
----
56

skipif mysql # not compatible
query I rowsort label-9740
SELECT CAST ( 56 AS INTEGER )
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9741
SELECT CAST( - + 82 AS SIGNED ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-9741
SELECT CAST ( - + 82 AS INTEGER ) AS col0
----
-82

query I rowsort
SELECT + 38 * + 67
----
2546

query I rowsort
SELECT - 44 + + + 36 * - + 65 * - 31 * - 60 * COALESCE ( - + 90, + - 77 ) + + 73
----
391716029

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9744
SELECT ALL MIN( ALL + 15 ) * + - MIN( - 85 ) + 74 + + CAST( NULL AS SIGNED ) * - AVG ( - 12 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL MIN ( ALL + 15 ) * + - MIN ( - 85 ) + 74 + + CAST ( NULL AS INTEGER ) * - AVG ( - 12 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT 70 DIV + - ( + - 9 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-9745
SELECT 70 / + - ( + - 9 ) AS col2
----
7

query II rowsort
SELECT ALL + 94 + - 36 * + 97, + ( - + 89 ) AS col1
----
-3398
-89

query I rowsort
SELECT DISTINCT - 39 * - 82 col1
----
3198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9748
SELECT DISTINCT CAST( - 28 AS SIGNED ) + + 45 + - + ( - + COUNT( * ) ) col0, 45 * - 42 AS col0
----
18
-1890

skipif mysql # not compatible
query II rowsort label-9748
SELECT DISTINCT CAST ( - 28 AS INTEGER ) + + 45 + - + ( - + COUNT ( * ) ) col0, 45 * - 42 AS col0
----
18
-1890

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9749
SELECT ALL - 21 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - 21 * CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9750
SELECT 60 + + CAST( + - 40 AS SIGNED ) + 50
----
70

skipif mysql # not compatible
query I rowsort label-9750
SELECT 60 + + CAST ( + - 40 AS INTEGER ) + 50
----
70

query I rowsort
SELECT DISTINCT NULLIF ( + 15, 8 ) + - 66 AS col0
----
-51

query I rowsort
SELECT DISTINCT 49 * + 50
----
2450

query I rowsort
SELECT DISTINCT - 49 - + + 47
----
-96

query I rowsort
SELECT 69 * + 94 * - 3 * + + 1
----
-19458

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT 4 + + COUNT( * )
----
5

skipif mysql # not compatible
query I rowsort label-9755
SELECT 4 + + COUNT ( * )
----
5

query I rowsort
SELECT ALL - 32 - - - 94
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-9757
SELECT DISTINCT + 62 DIV 50
----
1

skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT + 62 / 50
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT 80 + - COUNT( * )
----
79

skipif mysql # not compatible
query I rowsort label-9758
SELECT 80 + - COUNT ( * )
----
79

query I rowsort
SELECT ALL - 39 col0
----
-39

query I rowsort
SELECT DISTINCT ( + 66 )
----
66

query I rowsort
SELECT - CASE + ( + - 36 ) WHEN 6 THEN NULL WHEN 51 + 44 THEN + + 16 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT DISTINCT - 26 * 81 * - ( + - 55 ) DIV - COUNT( DISTINCT + + 59 ) + 9 AS col2
----
115839

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT - 26 * 81 * - ( + - 55 ) / - COUNT ( DISTINCT + + 59 ) + 9 AS col2
----
115839

query I rowsort
SELECT ALL + 16 col1
----
16

query II rowsort
SELECT - - 59 AS col2, - 74
----
59
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9765
SELECT + 33 + - - COUNT( * ) * - - 37 * + 67 * - 59 DIV COUNT( * ) - - + ( - 86 ) + 20 AS col0
----
-146294

skipif mysql # not compatible
query I rowsort label-9765
SELECT + 33 + - - COUNT ( * ) * - - 37 * + 67 * - 59 / COUNT ( * ) - - + ( - 86 ) + 20 AS col0
----
-146294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9766
SELECT COUNT( * ) * + 55 - ( 63 ) DIV 53 col2
----
54

skipif mysql # not compatible
query I rowsort label-9766
SELECT COUNT ( * ) * + 55 - ( 63 ) / 53 col2
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT + 77 * + 38 * - 4 - - - ( + - 1 ) + + - 87 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT + 77 * + 38 * - 4 - - - ( + - 1 ) + + - 87 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9768
SELECT CAST( - - 17 AS SIGNED ) DIV 16 + + ( - CAST( + 65 AS SIGNED ) ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-9768
SELECT CAST ( - - 17 AS INTEGER ) / 16 + + ( - CAST ( + 65 AS INTEGER ) ) AS col1
----
-64

query I rowsort
SELECT DISTINCT - 56 AS col2
----
-56

query I rowsort
SELECT ALL 57 + 13 AS col1
----
70

query I rowsort
SELECT ( + - 47 )
----
-47

query I rowsort
SELECT DISTINCT - 25 + 87
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT 8 - ( + 68 ) * - COUNT( 33 ) + - 49
----
27

skipif mysql # not compatible
query I rowsort label-9773
SELECT 8 - ( + 68 ) * - COUNT ( 33 ) + - 49
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT CAST( + 85 AS SIGNED ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-9774
SELECT CAST ( + 85 AS INTEGER ) AS col1
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9775
SELECT DISTINCT + 50 DIV - 39 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9775
SELECT DISTINCT + 50 / - 39 AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9776
SELECT COUNT( * ) DIV 45 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT COUNT ( * ) / 45 AS col2
----
0

query I rowsort
SELECT ( 85 ) * + ( + 25 ) + 34 AS col2
----
2159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT ALL CAST( + 85 AS SIGNED ) + 18
----
103

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL CAST ( + 85 AS INTEGER ) + 18
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9779
SELECT DISTINCT 9 * + ( CASE - - 78 WHEN + 81 + - - 78 THEN NULL ELSE MIN( DISTINCT - + 49 ) * + - COUNT( * ) + COUNT( * ) DIV + 32 + - 89 END ) AS col0, - 94 + 99 AS col1
----
-360
5

skipif mysql # not compatible
query II rowsort label-9779
SELECT DISTINCT 9 * + ( CASE - - 78 WHEN + 81 + - - 78 THEN NULL ELSE MIN ( DISTINCT - + 49 ) * + - COUNT ( * ) + COUNT ( * ) / + 32 + - 89 END ) AS col0, - 94 + 99 AS col1
----
-360
5

query I rowsort
SELECT 37 * 49 * 88 AS col2
----
159544

query I rowsort
SELECT ALL - 98 + + 73
----
-25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9782
SELECT ALL + CAST( NULL AS DECIMAL ) * 90
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL + CAST ( NULL AS REAL ) * 90
----
NULL

query I rowsort
SELECT ALL 3 + + + 50 + + + 1 AS col2
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9784
SELECT ALL SUM( - ( + CAST( NULL AS SIGNED ) ) ) + + 22
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL SUM ( - ( + CAST ( NULL AS INTEGER ) ) ) + + 22
----
NULL

query II rowsort
SELECT DISTINCT - 5, - CASE + 88 WHEN + 47 THEN - 95 END col0
----
-5
NULL

query II rowsort
SELECT - CASE - 90 WHEN - 87 THEN + + 20 END * - 51 + - 31 col0, 4 AS col0
----
NULL
4

query I rowsort
SELECT 90 col0
----
90

query II rowsort
SELECT ALL - 14 col0, + 67 AS col0
----
-14
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9789
SELECT 62 + - 89 + + COUNT( * ) + + + 96 * + + CAST( 11 AS SIGNED ) AS col2
----
1030

skipif mysql # not compatible
query I rowsort label-9789
SELECT 62 + - 89 + + COUNT ( * ) + + + 96 * + + CAST ( 11 AS INTEGER ) AS col2
----
1030

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT COUNT( + + 72 ) * - + 35 * - 47 * + - 24 * + 85 - - 51
----
-3355749

skipif mysql # not compatible
query I rowsort label-9790
SELECT COUNT ( + + 72 ) * - + 35 * - 47 * + - 24 * + 85 - - 51
----
-3355749

query II rowsort
SELECT ALL - 33, - 11 AS col1
----
-33
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9792
SELECT 76, COUNT( * ) AS col0
----
76
1

skipif mysql # not compatible
query II rowsort label-9792
SELECT 76, COUNT ( * ) AS col0
----
76
1

query I rowsort
SELECT ALL + 91 * 47
----
4277

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT DISTINCT 42 DIV 27 col2
----
1

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT 42 / 27 col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT + CASE 87 WHEN MAX( ALL + NULLIF ( 20, - - 33 / - 97 * + - 4 + - 46 ) ) THEN NULL WHEN + 23 THEN - - 66 WHEN - + SUM( - + 92 ) / + 68 THEN NULL ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9795
SELECT + CASE 87 WHEN MAX ( ALL + NULLIF ( 20, - - 33 / - 97 * + - 4 + - 46 ) ) THEN NULL WHEN + 23 THEN - - 66 WHEN - + SUM ( - + 92 ) / + 68 THEN NULL ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT ALL - 72 * - 77 * - + 23 AS col1
----
-127512

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + COUNT( * ) + 44
----
45

skipif mysql # not compatible
query I rowsort label-9797
SELECT + COUNT ( * ) + 44
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9798
SELECT SUM( + 61 ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-9798
SELECT SUM ( + 61 ) AS col0
----
61

query II rowsort
SELECT ALL - ( + 83 ) AS col1, 50 AS col0
----
-83
50

query I rowsort
SELECT + 48 + + 97
----
145

query II rowsort
SELECT NULLIF ( 82, - - 72 + 15 ), - 14 * - 95 AS col1
----
82
1330

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9802
SELECT DISTINCT - 15 AS col0, - CAST( NULL AS SIGNED ) * + CAST( - NULLIF ( + 39, + + 11 * 2 + - ( 78 ) * CAST( 48 AS SIGNED ) ) AS SIGNED ) * - 82 * - CASE 58 WHEN + 80 + + 74 + + + AVG ( - 28 ) + 5 + ( + + 83 ) * ( - 77 ) + COALESCE ( + COUNT( * ), - 96 ) + - 85 THEN SUM( 25 ) * ( + CASE 30 WHEN MAX( DISTINCT - 36 ) + - 88 THEN NULL ELSE - ( 42 ) END / 0 + 79 / - 64 ) END * + AVG ( DISTINCT + ( - 2 ) )
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-9802
SELECT DISTINCT - 15 AS col0, - CAST ( NULL AS INTEGER ) * + CAST ( - NULLIF ( + 39, + + 11 * 2 + - ( 78 ) * CAST ( 48 AS INTEGER ) ) AS INTEGER ) * - 82 * - CASE 58 WHEN + 80 + + 74 + + + AVG ( - 28 ) + 5 + ( + + 83 ) * ( - 77 ) + COALESCE ( + COUNT ( * ), - 96 ) + - 85 THEN SUM ( 25 ) * ( + CASE 30 WHEN MAX ( DISTINCT - 36 ) + - 88 THEN NULL ELSE - ( 42 ) END / 0 + 79 / - 64 ) END * + AVG ( DISTINCT + ( - 2 ) )
----
-15
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT 74 + + COUNT( * ) AS col0
----
75

skipif mysql # not compatible
query I rowsort label-9803
SELECT 74 + + COUNT ( * ) AS col0
----
75

query I rowsort
SELECT - 31 * + 11
----
-341

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ( 92 ) + COUNT( * ) col1
----
93

skipif mysql # not compatible
query I rowsort label-9805
SELECT ( 92 ) + COUNT ( * ) col1
----
93

query I rowsort
SELECT - 75 * 97 col1
----
-7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9807
SELECT DISTINCT + 79, COUNT( * ) * - 72 DIV + 26 AS col0
----
79
-2

skipif mysql # not compatible
query II rowsort label-9807
SELECT DISTINCT + 79, COUNT ( * ) * - 72 / + 26 AS col0
----
79
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9808
SELECT ALL + + 48 + COUNT( * ) - 93 - NULLIF ( 95, - - AVG ( DISTINCT 10 ) * CAST( NULL AS SIGNED ) ) + 96 + + + 6 * 76
----
413

skipif mysql # not compatible
query I rowsort label-9808
SELECT ALL + + 48 + COUNT ( * ) - 93 - NULLIF ( 95, - - AVG ( DISTINCT 10 ) * CAST ( NULL AS INTEGER ) ) + 96 + + + 6 * 76
----
413

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT + CAST( - 29 AS SIGNED ) + - - 67
----
38

skipif mysql # not compatible
query I rowsort label-9809
SELECT + CAST ( - 29 AS INTEGER ) + - - 67
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL MIN( ALL - + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL MIN ( ALL - + 84 ) AS col1
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT ALL + 65 * COUNT( * ) AS col2
----
65

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + 65 * COUNT ( * ) AS col2
----
65

query I rowsort
SELECT DISTINCT + - COALESCE ( + + 20, + - 95 ) + - 84
----
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9813
SELECT + CAST( + COUNT( * ) AS SIGNED ) + + 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-9813
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + + 76 AS col1
----
77

query II rowsort
SELECT - + 20, 62 - - 76 AS col2
----
-20
138

query I rowsort
SELECT ALL + 21 + 32 * 27
----
885

query I rowsort
SELECT - 91 + + 0 AS col0
----
-91

query I rowsort
SELECT + 61 + + 36 + - 37
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9818
SELECT ALL CASE + 43 WHEN + + CAST( NULL AS SIGNED ) * 72 THEN NULL WHEN - + 51 * + 40 * COALESCE ( + 72, + COUNT( * ) ) THEN + 46 * 81 * 1 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL CASE + 43 WHEN + + CAST ( NULL AS INTEGER ) * 72 THEN NULL WHEN - + 51 * + 40 * COALESCE ( + 72, + COUNT ( * ) ) THEN + 46 * 81 * 1 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9819
SELECT DISTINCT NULLIF ( + 41, - 8 * CAST( NULL AS SIGNED ) )
----
41

skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT NULLIF ( + 41, - 8 * CAST ( NULL AS INTEGER ) )
----
41

query I rowsort
SELECT DISTINCT - ( 90 ) + + 26
----
-64

query I rowsort
SELECT ALL 39 * + ( - 80 ) * 58 + - + 97
----
-181057

query I rowsort
SELECT - 9 + 83 AS col2
----
74

query I rowsort
SELECT DISTINCT + ( - 86 )
----
-86

query I rowsort
SELECT + ( + ( 51 ) ) * - + 34 * 15 + + - 38 * - 69
----
-23388

onlyif mysql # aggregate syntax: 
query II rowsort label-9825
SELECT ALL COUNT( ALL 73 ) * - + 50 AS col0, COUNT( * ) * + 8 - - 89 + 38 AS col0
----
-50
135

skipif mysql # not compatible
query II rowsort label-9825
SELECT ALL COUNT ( ALL 73 ) * - + 50 AS col0, COUNT ( * ) * + 8 - - 89 + 38 AS col0
----
-50
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT + ( + - COUNT( * ) ) * + 74
----
-74

skipif mysql # not compatible
query I rowsort label-9826
SELECT + ( + - COUNT ( * ) ) * + 74
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL CASE + 8 WHEN + + 34 * + 74 THEN 54 WHEN 2 THEN NULL END * + 89 * - 23 * - - 50 - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL CASE + 8 WHEN + + 34 * + 74 THEN 54 WHEN 2 THEN NULL END * + 89 * - 23 * - - 50 - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9828
SELECT ALL + 4 DIV + 69 AS col1, 1 * - 93 * - CASE + 17 WHEN - 89 THEN NULL ELSE + + 33 * + 61 * - 24 END AS col1
----
0
-4493016

skipif mysql # not compatible
query II rowsort label-9828
SELECT ALL + 4 / + 69 AS col1, 1 * - 93 * - CASE + 17 WHEN - 89 THEN NULL ELSE + + 33 * + 61 * - 24 END AS col1
----
0
-4493016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9829
SELECT - COALESCE ( + - ( + 11 ), - - 56, + MIN( DISTINCT ( - 22 ) ) + + CAST( + COALESCE ( - COUNT( * ), 57, + + 37 * + 81 ) AS SIGNED ) DIV 71 * - + NULLIF ( - + 6, + 92 + + COUNT( * ) + - ( + 2 ) DIV - 94 ) + MAX( ALL - 83 ), + 10 ) DIV + - NULLIF ( - + 69, - - 36 * 15 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9829
SELECT - COALESCE ( + - ( + 11 ), - - 56, + MIN ( DISTINCT ( - 22 ) ) + + CAST ( + COALESCE ( - COUNT ( * ), 57, + + 37 * + 81 ) AS INTEGER ) / 71 * - + NULLIF ( - + 6, + 92 + + COUNT ( * ) + - ( + 2 ) / - 94 ) + MAX ( ALL - 83 ), + 10 ) / + - NULLIF ( - + 69, - - 36 * 15 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT + CAST( 65 AS SIGNED ) + 51
----
116

skipif mysql # not compatible
query I rowsort label-9830
SELECT + CAST ( 65 AS INTEGER ) + 51
----
116

query I rowsort
SELECT ALL 61 * - + 59 AS col0
----
-3599

onlyif mysql # aggregate syntax: 
query II rowsort label-9832
SELECT - ( + COUNT( * ) ) * 19 + + 5 + + - 27 * 14 * 93 AS col2, COUNT( * ) + - 29 * + 92
----
-35168
-2667

skipif mysql # not compatible
query II rowsort label-9832
SELECT - ( + COUNT ( * ) ) * 19 + + 5 + + - 27 * 14 * 93 AS col2, COUNT ( * ) + - 29 * + 92
----
-35168
-2667

query I rowsort
SELECT + 49 AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL 26 * + 49 * - 27 - - + 15 + COUNT( * ) - 44 AS col1
----
-34426

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL 26 * + 49 * - 27 - - + 15 + COUNT ( * ) - 44 AS col1
----
-34426

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9835
SELECT DISTINCT 96 * + 57 * - + 99, 82 * + - CAST( NULL AS SIGNED ) AS col1
----
-541728
NULL

skipif mysql # not compatible
query II rowsort label-9835
SELECT DISTINCT 96 * + 57 * - + 99, 82 * + - CAST ( NULL AS INTEGER ) AS col1
----
-541728
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9836
SELECT DISTINCT MAX( ALL - CASE + 42 WHEN + 17 THEN NULL WHEN 30 THEN - 79 ELSE NULL END ) * - + 38 - - - COUNT( * ) * + 75 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT MAX ( ALL - CASE + 42 WHEN + 17 THEN NULL WHEN 30 THEN - 79 ELSE NULL END ) * - + 38 - - - COUNT ( * ) * + 75 AS col1
----
NULL

query I rowsort
SELECT ALL + 52 AS col2
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9838
SELECT SUM( DISTINCT - CAST( - 22 AS SIGNED ) ) col1, - 5 AS col1
----
22
-5

skipif mysql # not compatible
query II rowsort label-9838
SELECT SUM ( DISTINCT - CAST ( - 22 AS INTEGER ) ) col1, - 5 AS col1
----
22
-5

query I rowsort
SELECT DISTINCT + 26 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT DISTINCT 36 * - COUNT( * ) * - COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT 36 * - COUNT ( * ) * - COUNT ( * )
----
36

query I rowsort
SELECT ALL + - 49
----
-49

query I rowsort
SELECT - - 37 - - - 79
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + + 62 - - - ( - + 80 ) + + ( COUNT( * ) ) AS col1
----
143

skipif mysql # not compatible
query I rowsort label-9843
SELECT + + 62 - - - ( - + 80 ) + + ( COUNT ( * ) ) AS col1
----
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9844
SELECT + MIN( + CAST( + 90 AS SIGNED ) ) AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9844
SELECT + MIN ( + CAST ( + 90 AS INTEGER ) ) AS col0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT 40 * - 38 * + COUNT( * ) * + ( - - 74 ) * - - 15 + + 21 AS col2
----
-1687179

skipif mysql # not compatible
query I rowsort label-9845
SELECT 40 * - 38 * + COUNT ( * ) * + ( - - 74 ) * - - 15 + + 21 AS col2
----
-1687179

query II rowsort
SELECT ALL 29 + 6 AS col0, + 24 col1
----
35
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ALL + CAST( - 84 AS SIGNED ) + + 1 AS col2
----
-83

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL + CAST ( - 84 AS INTEGER ) + + 1 AS col2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT DISTINCT + CAST( + 11 AS SIGNED ) col0
----
11

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT + CAST ( + 11 AS INTEGER ) col0
----
11

query I rowsort
SELECT ALL - 85 + 81 - 56
----
-60

query I rowsort
SELECT DISTINCT 54 AS col2
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-9851
SELECT DISTINCT MIN( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2
----
-665
-68

skipif mysql # not compatible
query II rowsort label-9851
SELECT DISTINCT MIN ( DISTINCT - 1 ) + NULLIF ( 32, + - ( - COUNT ( * ) ) ) + - 12 + - - 76 * - 9 * 1 AS col2, - 68 AS col2
----
-665
-68

query I rowsort
SELECT - + 14
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT DISTINCT + 66 + 34 * + - 68 * + COUNT( * ) AS col2
----
-2246

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + 66 + 34 * + - 68 * + COUNT ( * ) AS col2
----
-2246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT - 32 + + - COUNT( * ) + - 51 * + 40 AS col1
----
-2073

skipif mysql # not compatible
query I rowsort label-9855
SELECT - 32 + + - COUNT ( * ) + - 51 * + 40 AS col1
----
-2073

query I rowsort
SELECT - COALESCE ( - + 45, + 82 ) + 85 * 63 AS col1
----
5400

query I rowsort
SELECT ALL - 84 + - COALESCE ( - 29, - + 4 ) AS col2
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9858
SELECT ALL CASE COUNT( * ) WHEN + + 83 THEN - - 6 - - CAST( - 63 AS SIGNED ) / - 85 * MAX( - ( 35 ) ) WHEN + 20 THEN NULL ELSE - 63 + - 1 + + - 81 END, 86 - 79 col2
----
-145
7

skipif mysql # not compatible
query II rowsort label-9858
SELECT ALL CASE COUNT ( * ) WHEN + + 83 THEN - - 6 - - CAST ( - 63 AS INTEGER ) / - 85 * MAX ( - ( 35 ) ) WHEN + 20 THEN NULL ELSE - 63 + - 1 + + - 81 END, 86 - 79 col2
----
-145
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT - COUNT( * ) * + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9859
SELECT - COUNT ( * ) * + COUNT ( * ) col2
----
-1

query I rowsort
SELECT ALL ( + ( + 12 ) ) - + 3
----
9

query I rowsort
SELECT ALL ( 34 ) AS col2
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT DISTINCT COUNT( - - 88 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT COUNT ( - - 88 ) AS col2
----
1

query I rowsort
SELECT ALL ( + 51 ) AS col0
----
51

query I rowsort
SELECT - ( - + 85 ) AS col1
----
85

query II rowsort
SELECT 23 AS col2, 46 AS col0
----
23
46

query I rowsort
SELECT - ( 29 ) * + - ( 71 ) * + + ( 34 )
----
70006

query II rowsort
SELECT + 37 AS col2, 50 AS col0
----
37
50

query I rowsort
SELECT ALL + 8 * + 56 * + 38 * + 80 AS col2
----
1361920

onlyif mysql # aggregate syntax: 
query I rowsort label-9869
SELECT - ( + 58 ) + 5 * - COALESCE ( CASE - + 91 WHEN + 80 + - COUNT( * ) THEN 80 WHEN 99 / MAX( ALL + - 67 ) THEN NULL WHEN - + COUNT( * ) THEN 1 ELSE 7 END, - COUNT( * ) * - 58, + 80 ) AS col2
----
-93

skipif mysql # not compatible
query I rowsort label-9869
SELECT - ( + 58 ) + 5 * - COALESCE ( CASE - + 91 WHEN + 80 + - COUNT ( * ) THEN 80 WHEN 99 / MAX ( ALL + - 67 ) THEN NULL WHEN - + COUNT ( * ) THEN 1 ELSE 7 END, - COUNT ( * ) * - 58, + 80 ) AS col2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT + COUNT( + ( 31 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9870
SELECT + COUNT ( + ( 31 ) )
----
1

query I rowsort
SELECT ALL + NULLIF ( 67, + 51 ) col0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT + 71 * - SUM( ALL + 77 ) - + + 77 AS col0
----
-5544

skipif mysql # not compatible
query I rowsort label-9872
SELECT + 71 * - SUM ( ALL + 77 ) - + + 77 AS col0
----
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT CAST( NULL AS SIGNED ) / - - 51 - - + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9873
SELECT CAST ( NULL AS INTEGER ) / - - 51 - - + 32 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9874
SELECT - 13 * ( - + COUNT( * ) ) * + - MAX( DISTINCT 88 ) AS col0
----
-1144

skipif mysql # not compatible
query I rowsort label-9874
SELECT - 13 * ( - + COUNT ( * ) ) * + - MAX ( DISTINCT 88 ) AS col0
----
-1144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9875
SELECT - ( + 11 ) + COUNT( * ) DIV - CAST( + + 12 AS SIGNED ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-9875
SELECT - ( + 11 ) + COUNT ( * ) / - CAST ( + + 12 AS INTEGER ) AS col1
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-9876
SELECT ALL + 68 AS col0, - 31 - - 42 + COUNT( * ) + - 51 * + 26 AS col2
----
68
-1314

skipif mysql # not compatible
query II rowsort label-9876
SELECT ALL + 68 AS col0, - 31 - - 42 + COUNT ( * ) + - 51 * + 26 AS col2
----
68
-1314

onlyif mysql # aggregate syntax: 
query II rowsort label-9877
SELECT ALL + 42 AS col1, CASE - COALESCE ( - 0, - - 73 * + CASE + 50 WHEN - + COUNT( ALL + 61 ) THEN - COUNT( * ) / 28 WHEN - + COALESCE ( + COUNT( * ), + 0 * + 90 - - - 5 * - MAX( ALL - - 48 ) ) THEN NULL END ) WHEN - 86 * 52 THEN - 89 WHEN - 44 THEN NULL ELSE NULL END
----
42
NULL

skipif mysql # not compatible
query II rowsort label-9877
SELECT ALL + 42 AS col1, CASE - COALESCE ( - 0, - - 73 * + CASE + 50 WHEN - + COUNT ( ALL + 61 ) THEN - COUNT ( * ) / 28 WHEN - + COALESCE ( + COUNT ( * ), + 0 * + 90 - - - 5 * - MAX ( ALL - - 48 ) ) THEN NULL END ) WHEN - 86 * 52 THEN - 89 WHEN - 44 THEN NULL ELSE NULL END
----
42
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT ( - CAST( + 57 AS SIGNED ) ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-9878
SELECT ( - CAST ( + 57 AS INTEGER ) ) AS col1
----
-57

query I rowsort
SELECT - - 50 * 72
----
3600

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9880
SELECT + - CAST( - 11 AS SIGNED ) DIV + 97 + - 54
----
-54

skipif mysql # not compatible
query I rowsort label-9880
SELECT + - CAST ( - 11 AS INTEGER ) / + 97 + - 54
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9881
SELECT - CAST( - 13 AS SIGNED ) * - - 6 - + 31 * + COUNT( * ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-9881
SELECT - CAST ( - 13 AS INTEGER ) * - - 6 - + 31 * + COUNT ( * ) AS col1
----
47

query II rowsort
SELECT ALL + 67 col2, + 75 AS col2
----
67
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - 35 + + ( CAST( + 37 AS SIGNED ) )
----
2

skipif mysql # not compatible
query I rowsort label-9883
SELECT - 35 + + ( CAST ( + 37 AS INTEGER ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT 78 * + ( + MIN( 28 ) )
----
2184

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT 78 * + ( + MIN ( 28 ) )
----
2184

query II rowsort
SELECT 70 AS col0, 28 AS col0
----
70
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9886
SELECT ALL + NULLIF ( - CAST( NULL AS SIGNED ), - 83 * + COUNT( - - ( 59 ) ) * 99 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT ALL + NULLIF ( - CAST ( NULL AS INTEGER ), - 83 * + COUNT ( - - ( 59 ) ) * 99 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT ALL - COUNT( * ) * - + 82 col2
----
82

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - COUNT ( * ) * - + 82 col2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9888
SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) col1, 91 * + CAST( + 32 AS SIGNED ) + + - COUNT( * ) * + - COUNT( * ) * + - COALESCE ( - ( COUNT( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST( NULL AS SIGNED ), - 49 ) ) - SUM( ALL + ( 9 ) ) AS col1
----
NULL
2904

skipif mysql # not compatible
query II rowsort label-9888
SELECT DISTINCT + 87 * - 69 * - + 74 / ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) col1, 91 * + CAST ( + 32 AS INTEGER ) + + - COUNT ( * ) * + - COUNT ( * ) * + - COALESCE ( - ( COUNT ( * ) ), 52 + + + 93, + 38 + NULLIF ( CAST ( NULL AS INTEGER ), - 49 ) ) - SUM ( ALL + ( 9 ) ) AS col1
----
NULL
2904

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT ALL - 62 * COUNT( * ) + - 39 + - 80 + + 92 * COUNT( * ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL - 62 * COUNT ( * ) + - 39 + - 80 + + 92 * COUNT ( * ) AS col1
----
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9890
SELECT 7 AS col1, + COUNT( * ) + + CAST( NULL AS SIGNED ) - - NULLIF ( - + 55, + + 57 ) + + COUNT( * ) + - + NULLIF ( 47, + - CAST( - + 19 AS DECIMAL ) ) * - 27 AS col1
----
7
NULL

skipif mysql # not compatible
query II rowsort label-9890
SELECT 7 AS col1, + COUNT ( * ) + + CAST ( NULL AS INTEGER ) - - NULLIF ( - + 55, + + 57 ) + + COUNT ( * ) + - + NULLIF ( 47, + - CAST ( - + 19 AS REAL ) ) * - 27 AS col1
----
7
NULL

query I rowsort
SELECT - - 26 col0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9892
SELECT ALL + + COUNT( * ) * - 98 + - 19 AS col0, - 51 DIV + 5 col0
----
-117
-10

skipif mysql # not compatible
query II rowsort label-9892
SELECT ALL + + COUNT ( * ) * - 98 + - 19 AS col0, - 51 / + 5 col0
----
-117
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + 29 * + + COUNT( * ) col0
----
29

skipif mysql # not compatible
query I rowsort label-9893
SELECT + 29 * + + COUNT ( * ) col0
----
29

query I rowsort
SELECT + 87 * + COALESCE ( + 59, + + 24, + - 12 )
----
5133

onlyif mysql # aggregate syntax: 
query II rowsort label-9895
SELECT DISTINCT 21 * - + 24, - COUNT( * ) AS col0
----
-504
-1

skipif mysql # not compatible
query II rowsort label-9895
SELECT DISTINCT 21 * - + 24, - COUNT ( * ) AS col0
----
-504
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9896
SELECT DISTINCT 33 * COUNT( * ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT 33 * COUNT ( * ) AS col0
----
33

query I rowsort
SELECT ALL 72 col0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT 37 * + 4 * + COUNT( * )
----
148

skipif mysql # not compatible
query I rowsort label-9898
SELECT 37 * + 4 * + COUNT ( * )
----
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT 72 + CAST( - 10 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-9899
SELECT 72 + CAST ( - 10 AS INTEGER ) AS col2
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9900
SELECT ( + COALESCE ( + 55, + NULLIF ( - COALESCE ( COALESCE ( + + 22, + ( - - 62 ), - COUNT( * ) ), - - 67 + - 21 + + - 51 * COUNT( * ) DIV - COALESCE ( ( - - 8 ), 24 + + + 95 - COUNT( * ) * - COUNT( ALL + 14 ), 10 ) ), + 42 + + MAX( CAST( + - 35 AS SIGNED ) ) ) ) ) + 85 - 94 - 5 DIV 12 * COALESCE ( - MIN( 53 ), 29 ) AS col0
----
46

skipif mysql # not compatible
query I rowsort label-9900
SELECT ( + COALESCE ( + 55, + NULLIF ( - COALESCE ( COALESCE ( + + 22, + ( - - 62 ), - COUNT ( * ) ), - - 67 + - 21 + + - 51 * COUNT ( * ) / - COALESCE ( ( - - 8 ), 24 + + + 95 - COUNT ( * ) * - COUNT ( ALL + 14 ), 10 ) ), + 42 + + MAX ( CAST ( + - 35 AS INTEGER ) ) ) ) ) + 85 - 94 - 5 / 12 * COALESCE ( - MIN ( 53 ), 29 ) AS col0
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-9901
SELECT 88 - - 67 * + COUNT( + 81 ) - - 3 AS col2, COUNT( * ) * - 23
----
158
-23

skipif mysql # not compatible
query II rowsort label-9901
SELECT 88 - - 67 * + COUNT ( + 81 ) - - 3 AS col2, COUNT ( * ) * - 23
----
158
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT MAX( 27 ) * - 93 + + 13 + + 18 AS col1, 32 * - 3 * - 42
----
-2480
4032

skipif mysql # not compatible
query II rowsort label-9902
SELECT MAX ( 27 ) * - 93 + + 13 + + 18 AS col1, 32 * - 3 * - 42
----
-2480
4032

query I rowsort
SELECT 98 + + + 12
----
110

query I rowsort
SELECT DISTINCT 90 - + + 73 + - - 24 AS col0
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT DISTINCT - 59 DIV 14 * - - 24
----
-96

skipif mysql # not compatible
query I rowsort label-9905
SELECT DISTINCT - 59 / 14 * - - 24
----
-96

query I rowsort
SELECT ALL - 17 col2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT CAST( NULL AS SIGNED ) * 18 + - 91 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT CAST ( NULL AS INTEGER ) * 18 + - 91 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9908
SELECT DISTINCT 19 DIV + - 46
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT DISTINCT 19 / + - 46
----
0

query I rowsort
SELECT ALL + 41 + - 23 AS col1
----
18

query I rowsort
SELECT 23 + + + 62 - 10 AS col1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL - 69 * + COUNT( * ) col2
----
-69

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - 69 * + COUNT ( * ) col2
----
-69

query I rowsort
SELECT 94 * - 88
----
-8272

query I rowsort
SELECT DISTINCT - + 76
----
-76

query I rowsort
SELECT DISTINCT - + 4 + - 49 + - + 90 AS col0
----
-143

query I rowsort
SELECT ALL - - 94 AS col2
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9916
SELECT COUNT( * ) + - - COUNT( * ) * - COALESCE ( + CASE + 49 WHEN + 3 THEN + 51 * SUM( DISTINCT + 43 ) + 65 END, + - 44 * + + CASE CAST( + + 49 AS SIGNED ) WHEN CAST( NULL AS SIGNED ) THEN 58 ELSE NULL END - - - 62, - 81 DIV + 70 - - + SUM( ALL - 86 ), - 38 ) + + - 73 + 71 + + + 46 AS col1
----
132

skipif mysql # not compatible
query I rowsort label-9916
SELECT COUNT ( * ) + - - COUNT ( * ) * - COALESCE ( + CASE + 49 WHEN + 3 THEN + 51 * SUM ( DISTINCT + 43 ) + 65 END, + - 44 * + + CASE CAST ( + + 49 AS INTEGER ) WHEN CAST ( NULL AS INTEGER ) THEN 58 ELSE NULL END - - - 62, - 81 / + 70 - - + SUM ( ALL - 86 ), - 38 ) + + - 73 + 71 + + + 46 AS col1
----
132

query I rowsort
SELECT + + 95 AS col1
----
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9918
SELECT + COALESCE ( - - SUM( DISTINCT - 37 ), + COUNT( * ) * + 38 + - + 22 + + + 95 ) DIV + 21 * - ( + - COALESCE ( + 1, + + 68 * COUNT( * ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9918
SELECT + COALESCE ( - - SUM ( DISTINCT - 37 ), + COUNT ( * ) * + 38 + - + 22 + + + 95 ) / + 21 * - ( + - COALESCE ( + 1, + + 68 * COUNT ( * ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + - COALESCE ( + 29, - - 59, + COUNT( * ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-9919
SELECT + - COALESCE ( + 29, - - 59, + COUNT ( * ) ) AS col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9920
SELECT + - MAX( - - NULLIF ( + + 31, + 89 ) ) * - COUNT( * ) + - 22 * CAST( + 64 AS SIGNED ) - - + 55 * + + NULLIF ( + + 63, + 30 * - 41 * + COALESCE ( + COUNT( * ), 93 / - 1 / + + 58 * + 92 ) + 3 )
----
2088

skipif mysql # not compatible
query I rowsort label-9920
SELECT + - MAX ( - - NULLIF ( + + 31, + 89 ) ) * - COUNT ( * ) + - 22 * CAST ( + 64 AS INTEGER ) - - + 55 * + + NULLIF ( + + 63, + 30 * - 41 * + COALESCE ( + COUNT ( * ), 93 / - 1 / + + 58 * + 92 ) + 3 )
----
2088

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT 87 * MIN( + 45 ) AS col2
----
3915

skipif mysql # not compatible
query I rowsort label-9921
SELECT 87 * MIN ( + 45 ) AS col2
----
3915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT ALL - - 62 * + CAST( - - COUNT( * ) AS SIGNED ) * + - 60 + + 70 * - 2 * COUNT( * ) * - + 4 AS col0
----
-3160

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL - - 62 * + CAST ( - - COUNT ( * ) AS INTEGER ) * + - 60 + + 70 * - 2 * COUNT ( * ) * - + 4 AS col0
----
-3160

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT DISTINCT - - SUM( + ( - - 22 ) ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT - - SUM ( + ( - - 22 ) ) AS col0
----
22

query I rowsort
SELECT ALL + + 37 - + + 60
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9925
SELECT DISTINCT + 6 DIV - COUNT( * )
----
-6

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT + 6 / - COUNT ( * )
----
-6

query I rowsort
SELECT ALL 97 * COALESCE ( + + 4, - 53 * + - 96 * 92 + 12 - + ( + 20 ) + + + 13 + 83 )
----
388

query I rowsort
SELECT - 67 * + 9 AS col0
----
-603

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL + - MIN( + 24 ) * - - SUM( + 82 ) AS col0
----
-1968

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL + - MIN ( + 24 ) * - - SUM ( + 82 ) AS col0
----
-1968

query I rowsort
SELECT - 85 - 49 col2
----
-134

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9930
SELECT DISTINCT + COUNT( * ) * ( + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT + COUNT ( * ) * ( + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT + 33 * - - 94 AS col0
----
3102

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-9932
SELECT DISTINCT 73, 30 DIV - 11 + - COALESCE ( + 89, 87 ) * + - 40 + + 32 AS col2, + 60 * - 90 + - COUNT( * ) * 20 * - COUNT( * ) * 93 * - + NULLIF ( 82, + + 84 + ( + - 70 ) * - COUNT( * ) * - COUNT( * ) * - 83 ) + - 6 + - 45 * - - 88 AS col1
----
73
3590
-161886

skipif mysql # not compatible
query III rowsort label-9932
SELECT DISTINCT 73, 30 / - 11 + - COALESCE ( + 89, 87 ) * + - 40 + + 32 AS col2, + 60 * - 90 + - COUNT ( * ) * 20 * - COUNT ( * ) * 93 * - + NULLIF ( 82, + + 84 + ( + - 70 ) * - COUNT ( * ) * - COUNT ( * ) * - 83 ) + - 6 + - 45 * - - 88 AS col1
----
73
3590
-161886

query I rowsort
SELECT 88 + + ( - 94 )
----
-6

query II rowsort
SELECT DISTINCT 31, 21 AS col2
----
31
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT ALL 14 * - + COUNT( * ) AS col2
----
-14

skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL 14 * - + COUNT ( * ) AS col2
----
-14

query I rowsort
SELECT 64 col2
----
64

query II rowsort
SELECT - 92 col0, 67 AS col2
----
-92
67

onlyif mysql # DIV for integer division: 
query II rowsort label-9938
SELECT ALL 94 AS col1, - 17 - - + 91 DIV 44 * + 68 AS col2
----
94
119

skipif mysql # not compatible
query II rowsort label-9938
SELECT ALL 94 AS col1, - 17 - - + 91 / 44 * + 68 AS col2
----
94
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9939
SELECT ALL MIN( + 44 ) * + 37 * - + CASE + + 48 WHEN + 70 THEN + COUNT( * ) + - 93 WHEN MIN( - 18 ) THEN NULL END * 83 * - - 7 * AVG ( + 14 ) / - CAST( + 90 AS SIGNED ) * + - COUNT( * ) + 78 + - + 67 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL MIN ( + 44 ) * + 37 * - + CASE + + 48 WHEN + 70 THEN + COUNT ( * ) + - 93 WHEN MIN ( - 18 ) THEN NULL END * 83 * - - 7 * AVG ( + 14 ) / - CAST ( + 90 AS INTEGER ) * + - COUNT ( * ) + 78 + - + 67 AS col2
----
NULL

query I rowsort
SELECT ALL 78 * + - 31 AS col2
----
-2418

query I rowsort
SELECT 78 + + - 35 * - - 59 AS col2
----
-1987

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL - COUNT( * ) * - 61 + + ( - COUNT( * ) )
----
60

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - COUNT ( * ) * - 61 + + ( - COUNT ( * ) )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9943
SELECT MAX( - ( - 69 ) ) + 20 + + + 1 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-9943
SELECT MAX ( - ( - 69 ) ) + 20 + + + 1 AS col0
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9944
SELECT ( + CASE - 72 WHEN + 59 THEN + SUM( - CAST( 75 AS SIGNED ) ) * - 70 END ) * + 48 / + 71 * - - 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9944
SELECT ( + CASE - 72 WHEN + 59 THEN + SUM ( - CAST ( 75 AS INTEGER ) ) * - 70 END ) * + 48 / + 71 * - - 42 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT + COUNT( ALL - 70 )
----
1

skipif mysql # not compatible
query I rowsort label-9945
SELECT + COUNT ( ALL - 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT ALL - 5 * - 18 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - 5 * - 18 + COUNT ( * )
----
91

query I rowsort
SELECT ALL 36 * + 50
----
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT DISTINCT + + COUNT( * ) * 63 AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT + + COUNT ( * ) * 63 AS col1
----
63

query I rowsort
SELECT 33 + - 92 AS col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT ALL + 18 * 26 + 31 + COUNT( * ) - + + 14 + - - COUNT( * ) - - 43 AS col2
----
530

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL + 18 * 26 + 31 + COUNT ( * ) - + + 14 + - - COUNT ( * ) - - 43 AS col2
----
530

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT MIN( - + 65 ) col0
----
-65

skipif mysql # not compatible
query I rowsort label-9951
SELECT MIN ( - + 65 ) col0
----
-65

query I rowsort
SELECT ALL - + 10 * ( 79 ) + COALESCE ( + 57, 70 - - - 17 ) AS col0
----
-733

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9953
SELECT + + 89 * - - ( + - COALESCE ( 14, + 20 ) ) - - + 13 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT + + 89 * - - ( + - COALESCE ( 14, + 20 ) ) - - + 13 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT - 4 * + - 83 AS col2
----
332

query I rowsort
SELECT ALL - - ( + - 27 ) * + 64 col0
----
-1728

query I rowsort
SELECT - ( + 20 ) * - 47
----
940

query I rowsort
SELECT ALL 11 * - + 8
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9958
SELECT ALL - CAST( NULL AS SIGNED ) - + COUNT( * ) * - + 51 col0, - 70
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-9958
SELECT ALL - CAST ( NULL AS INTEGER ) - + COUNT ( * ) * - + 51 col0, - 70
----
NULL
-70

query I rowsort
SELECT + - 35 AS col1
----
-35

query I rowsort
SELECT DISTINCT + + 34 AS col0
----
34

query I rowsort
SELECT ALL + + ( - + 87 ) AS col1
----
-87

query I rowsort
SELECT + - 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9963
SELECT ALL - MIN( DISTINCT - - 63 ) - 54 AS col1, - SUM( - 29 ) col0
----
-117
29

skipif mysql # not compatible
query II rowsort label-9963
SELECT ALL - MIN ( DISTINCT - - 63 ) - 54 AS col1, - SUM ( - 29 ) col0
----
-117
29

query I rowsort
SELECT DISTINCT 52 col2
----
52

query I rowsort
SELECT - + 30 + + 26 - 89 AS col0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9966
SELECT - COUNT( * ) DIV + 92 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9966
SELECT - COUNT ( * ) / + 92 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9967
SELECT ALL + 76 DIV - 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-9967
SELECT ALL + 76 / - 31 AS col2
----
-2

query I rowsort
SELECT 44 col0
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-9969
SELECT - COUNT( * ) AS col0, + 47 + + 68 - 11 AS col1
----
-1
104

skipif mysql # not compatible
query II rowsort label-9969
SELECT - COUNT ( * ) AS col0, + 47 + + 68 - 11 AS col1
----
-1
104

query I rowsort
SELECT ALL NULLIF ( + 80, + 40 ) AS col0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT ALL + COUNT( * ) * + 1 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9971
SELECT ALL + COUNT ( * ) * + 1 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT - ( - ( - - 28 ) ) DIV + 10 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-9972
SELECT - ( - ( - - 28 ) ) / + 10 AS col0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT ALL + 77 DIV + 61 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9973
SELECT ALL + 77 / + 61 AS col2
----
1

query I rowsort
SELECT - ( + CASE COALESCE ( 47, - 59 * - 22 ) WHEN - 11 + + 61 THEN - 33 END ) + 30
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9975
SELECT - MIN( ALL - ( CAST( + + 3 AS SIGNED ) ) ) + - 39 + NULLIF ( + COUNT( * ), - COUNT( * ) ) * + + COUNT( * ) AS col2
----
-35

skipif mysql # not compatible
query I rowsort label-9975
SELECT - MIN ( ALL - ( CAST ( + + 3 AS INTEGER ) ) ) + - 39 + NULLIF ( + COUNT ( * ), - COUNT ( * ) ) * + + COUNT ( * ) AS col2
----
-35

query I rowsort
SELECT ALL NULLIF ( - 49, 80 )
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9977
SELECT ALL 89 AS col1, + 80 * + - CASE 98 WHEN 14 THEN NULL WHEN 78 + - 50 * + 24 * 35 THEN + 85 WHEN + + 59 * + NULLIF ( 78, + - 38 ) + + + MIN( 25 ) * - 49 / + COUNT( ALL 60 ) * - - COUNT( * ) THEN NULL END
----
89
NULL

skipif mysql # not compatible
query II rowsort label-9977
SELECT ALL 89 AS col1, + 80 * + - CASE 98 WHEN 14 THEN NULL WHEN 78 + - 50 * + 24 * 35 THEN + 85 WHEN + + 59 * + NULLIF ( 78, + - 38 ) + + + MIN ( 25 ) * - 49 / + COUNT ( ALL 60 ) * - - COUNT ( * ) THEN NULL END
----
89
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT DISTINCT ( COUNT( * ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT ( COUNT ( * ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT - MIN( ALL + 41 ) + 61 * MAX( DISTINCT + ( 48 ) ) * ( 54 ) + 28 * - - 69 AS col2
----
160003

skipif mysql # not compatible
query I rowsort label-9979
SELECT - MIN ( ALL + 41 ) + 61 * MAX ( DISTINCT + ( 48 ) ) * ( 54 ) + 28 * - - 69 AS col2
----
160003

query I rowsort
SELECT + 66 - + 30 AS col0
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9981
SELECT ALL ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9981
SELECT ALL ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT + 42 + - - COALESCE ( - 88, 91, - + ( + - 48 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL COUNT( * ) + - ( + 90 )
----
-89

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL COUNT ( * ) + - ( + 90 )
----
-89

query I rowsort
SELECT ALL ( - 37 )
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL - COUNT( * ) + - 95 AS col1
----
-96

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL - COUNT ( * ) + - 95 AS col1
----
-96

query I rowsort
SELECT + 6 + 83 AS col0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9987
SELECT ALL 15 AS col2, MIN( DISTINCT 92 ) AS col0
----
15
92

skipif mysql # not compatible
query II rowsort label-9987
SELECT ALL 15 AS col2, MIN ( DISTINCT 92 ) AS col0
----
15
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9988
SELECT ALL + - CAST( NULL AS SIGNED ) / 97 * - 19 * + 16 * + COUNT( * ) + - 75, ( + 5 ) * + ( + 78 ) * + + CAST( NULL AS SIGNED ) + + 41 + - 17
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9988
SELECT ALL + - CAST ( NULL AS INTEGER ) / 97 * - 19 * + 16 * + COUNT ( * ) + - 75, ( + 5 ) * + ( + 78 ) * + + CAST ( NULL AS INTEGER ) + + 41 + - 17
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT - - COUNT( * ) * 57 + + - 57 + + - ( 45 ) + - + ( + 36 ) + - + COUNT( * ) + - 91 + + ( - + 57 ) col1
----
-230

skipif mysql # not compatible
query I rowsort label-9989
SELECT - - COUNT ( * ) * 57 + + - 57 + + - ( 45 ) + - + ( + 36 ) + - + COUNT ( * ) + - 91 + + ( - + 57 ) col1
----
-230

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9990
SELECT ALL + - NULLIF ( 22, + CAST( NULL AS SIGNED ) ) DIV 9 + 11 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + - NULLIF ( 22, + CAST ( NULL AS INTEGER ) ) / 9 + 11 AS col2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT + - SUM( DISTINCT - - 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9991
SELECT + - SUM ( DISTINCT - - 77 )
----
-77

query II rowsort
SELECT + - 32, - 37 * - 54 AS col2
----
-32
1998

query I rowsort
SELECT ALL + - NULLIF ( - + 91, - 29 ) AS col2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT - + COUNT( ALL - + 19 ) * - 9
----
9

skipif mysql # not compatible
query I rowsort label-9994
SELECT - + COUNT ( ALL - + 19 ) * - 9
----
9

query I rowsort
SELECT + 60 * + 15 AS col1
----
900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9996
SELECT + 99 + - ( + CAST( NULL AS SIGNED ) ) + + + 31 * - CASE - 74 WHEN 59 THEN NULL WHEN - + 49 THEN - + CAST( - 71 AS SIGNED ) ELSE NULL END / 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9996
SELECT + 99 + - ( + CAST ( NULL AS INTEGER ) ) + + + 31 * - CASE - 74 WHEN 59 THEN NULL WHEN - + 49 THEN - + CAST ( - 71 AS INTEGER ) ELSE NULL END / 25
----
NULL

query I rowsort
SELECT + 46 AS col2
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-9998
SELECT + 73 + - 43 DIV - + 53 + - 20 AS col1, + 14 * + - 89
----
53
-1246

skipif mysql # not compatible
query II rowsort label-9998
SELECT + 73 + - 43 / - + 53 + - 20 AS col1, + 14 * + - 89
----
53
-1246

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - MIN( DISTINCT + 59 )
----
-59

skipif mysql # not compatible
query I rowsort label-9999
SELECT - MIN ( DISTINCT + 59 )
----
-59

