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 II rowsort
SELECT ALL - 20 * - 91 AS col0, + 93
----
1820
93

query II rowsort
SELECT + + 15 * + - 57, + ( 84 ) AS col2
----
-855
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT DISTINCT + 38 * + 34 * - ( CASE WHEN NOT + COUNT( * ) > 65 THEN - + 57 ELSE - COALESCE ( - 43, + 73, 78 ) * + 35 END ) + 20 * + COUNT( * ) + 19 * - 38
----
72942

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT + 38 * + 34 * - ( CASE WHEN NOT + COUNT ( * ) > 65 THEN - + 57 ELSE - COALESCE ( - 43, + 73, 78 ) * + 35 END ) + 20 * + COUNT ( * ) + 19 * - 38
----
72942

query I rowsort
SELECT ALL 89 * + 10 + 49
----
939

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + 95 * - 29 + + 87 + - 12 * - 40 + - COUNT( * ) AS col2
----
-2189

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + 95 * - 29 + + 87 + - 12 * - 40 + - COUNT ( * ) AS col2
----
-2189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5
SELECT DISTINCT + 38 DIV + - 51 + + 86 * 5 + - 74 + + 84 DIV + 91 + COALESCE ( - + 81, 83 * - 37, + COUNT( * ) ) * 90 col0
----
-6934

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT + 38 / + - 51 + + 86 * 5 + - 74 + + 84 / + 91 + COALESCE ( - + 81, 83 * - 37, + COUNT ( * ) ) * 90 col0
----
-6934

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT DISTINCT - - MIN( - 14 ) * - - 50 * + - 10 * - 69 + + 49 AS col0
----
-482951

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT - - MIN ( - 14 ) * - - 50 * + - 10 * - 69 + + 49 AS col0
----
-482951

query II rowsort
SELECT + - 88 + 13 AS col2, 21 AS col1
----
-75
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8
SELECT DISTINCT - CASE + - 71 WHEN NULLIF ( + - 94, 39 ) + - 59 THEN NULL WHEN + CAST( + CASE + 49 WHEN - 17 * - COUNT( * ) + - COUNT( * ) * 6 THEN 7 * 5 WHEN 54 THEN NULL ELSE NULL END AS SIGNED ) THEN - CAST( NULL AS SIGNED ) END / - MIN( DISTINCT CAST( + ( 72 ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT - CASE + - 71 WHEN NULLIF ( + - 94, 39 ) + - 59 THEN NULL WHEN + CAST ( + CASE + 49 WHEN - 17 * - COUNT ( * ) + - COUNT ( * ) * 6 THEN 7 * 5 WHEN 54 THEN NULL ELSE NULL END AS INTEGER ) THEN - CAST ( NULL AS INTEGER ) END / - MIN ( DISTINCT CAST ( + ( 72 ) AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT + - 29 * - ( - + SUM( 37 ) ) + - - COUNT( * ) col0
----
-1072

skipif mysql # not compatible
query I rowsort label-9
SELECT + - 29 * - ( - + SUM ( 37 ) ) + - - COUNT ( * ) col0
----
-1072

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT ALL - COUNT( * ) * + 12 * - + 58 AS col0
----
696

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - COUNT ( * ) * + 12 * - + 58 AS col0
----
696

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-12
SELECT ALL - CAST( NULL AS SIGNED ) - - 6 / + + 36 + 87 AS col1, + 91 * + - 37
----
NULL
-3367

skipif mysql # not compatible
query II rowsort label-12
SELECT ALL - CAST ( NULL AS INTEGER ) - - 6 / + + 36 + 87 AS col1, + 91 * + - 37
----
NULL
-3367

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT ALL + - NULLIF ( CAST( - - 58 AS SIGNED ), + 4 * - 0 * + COALESCE ( + - 63, - 31 ) ) * - 58 * + 19 + 98 * 50
----
68816

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + - NULLIF ( CAST ( - - 58 AS INTEGER ), + 4 * - 0 * + COALESCE ( + - 63, - 31 ) ) * - 58 * + 19 + 98 * 50
----
68816

query I rowsort
SELECT - 67 + 46 + + 28 AS col0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-15
SELECT DISTINCT CAST( - 95 AS SIGNED ) col0
----
-95

skipif mysql # not compatible
query I rowsort label-15
SELECT DISTINCT CAST ( - 95 AS INTEGER ) col0
----
-95

query I rowsort
SELECT DISTINCT + 20 * - 88
----
-1760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-17
SELECT - 39 + - 76 + - + MIN( - 5 ) DIV + 58 * + + 22 - + 87 AS col2
----
-202

skipif mysql # not compatible
query I rowsort label-17
SELECT - 39 + - 76 + - + MIN ( - 5 ) / + 58 * + + 22 - + 87 AS col2
----
-202

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT + NULLIF ( COUNT( * ), - 88 ) + - - 76 col0
----
77

skipif mysql # not compatible
query I rowsort label-20
SELECT + NULLIF ( COUNT ( * ), - 88 ) + - - 76 col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-21
SELECT - 21 * 60 * + + ( + + NULLIF ( - + 55, 76 ) ) * - COUNT( * )
----
-69300

skipif mysql # not compatible
query I rowsort label-21
SELECT - 21 * 60 * + + ( + + NULLIF ( - + 55, 76 ) ) * - COUNT ( * )
----
-69300

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-22
SELECT - ( - ( 95 ) ) AS col0, CAST( NULL AS SIGNED )
----
95
NULL

skipif mysql # not compatible
query II rowsort label-22
SELECT - ( - ( 95 ) ) AS col0, CAST ( NULL AS INTEGER )
----
95
NULL

query I rowsort
SELECT ALL 67 * + 61
----
4087

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL 85 + + ( MIN( ALL 65 ) ) col0
----
150

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL 85 + + ( MIN ( ALL 65 ) ) col0
----
150

query I rowsort
SELECT 57 + 60 + 83 + + CASE 80 WHEN + 72 THEN + ( + + 62 ) END + + 91 * + 24 * 42 + 35 * 91 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL - COUNT( * ) + 82 * - 80 + - 11
----
-6572

skipif mysql # not compatible
query I rowsort label-26
SELECT ALL - COUNT ( * ) + 82 * - 80 + - 11
----
-6572

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-28
SELECT - 41 * - 75 + - COUNT( DISTINCT CAST( - ( + 19 ) AS SIGNED ) ) + COUNT( * ) + - 73 * - 88 * - ( 81 )
----
-517269

skipif mysql # not compatible
query I rowsort label-28
SELECT - 41 * - 75 + - COUNT ( DISTINCT CAST ( - ( + 19 ) AS INTEGER ) ) + COUNT ( * ) + - 73 * - 88 * - ( 81 )
----
-517269

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + SUM( DISTINCT 7 ) * - ( + 91 )
----
-637

skipif mysql # not compatible
query I rowsort label-29
SELECT + SUM ( DISTINCT 7 ) * - ( + 91 )
----
-637

query II rowsort
SELECT + 16 AS col1, + 58 * - + 44
----
16
-2552

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT 17 DIV - + 52
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-34
SELECT + 17 AS col2, - 96 * 79 + - CAST( - + COUNT( * ) AS SIGNED ) + - ( COUNT( * ) ) DIV 92 * - 5
----
17
-7583

skipif mysql # not compatible
query II rowsort label-34
SELECT + 17 AS col2, - 96 * 79 + - CAST ( - + COUNT ( * ) AS INTEGER ) + - ( COUNT ( * ) ) / 92 * - 5
----
17
-7583

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT MAX( DISTINCT + - 1 ) + + + MIN( - - 75 )
----
74

skipif mysql # not compatible
query I rowsort label-35
SELECT MAX ( DISTINCT + - 1 ) + + + MIN ( - - 75 )
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-36
SELECT DISTINCT + 72 + ( - 77 ) col2, 5 + - + COUNT( * )
----
-5
4

skipif mysql # not compatible
query II rowsort label-36
SELECT DISTINCT + 72 + ( - 77 ) col2, 5 + - + COUNT ( * )
----
-5
4

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

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

query II rowsort
SELECT + 17 AS col0, 10 AS col2
----
17
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-39
SELECT + CAST( NULL AS DECIMAL ) * SUM( - 35 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-39
SELECT + CAST ( NULL AS REAL ) * SUM ( - 35 ) AS col2
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-41
SELECT - 98 + ( - + COUNT( * ) ) * 98 + - CASE WHEN + - 1 IN ( CAST( NULL AS SIGNED ) ) AND NOT + 60 IS NULL THEN + 72 * + SUM( DISTINCT 64 ) END * 23
----
NULL

skipif mysql # not compatible
query I rowsort label-41
SELECT - 98 + ( - + COUNT ( * ) ) * 98 + - CASE WHEN + - 1 IN ( CAST ( NULL AS INTEGER ) ) AND NOT + 60 IS NULL THEN + 72 * + SUM ( DISTINCT 64 ) END * 23
----
NULL

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

query I rowsort
SELECT ALL 12 * + 21 col0
----
252

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

onlyif mysql # DIV for integer division: 
query II rowsort label-45
SELECT ALL - 34, 32 DIV + + 11 AS col0
----
-34
2

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL - 34, 32 / + + 11 AS col0
----
-34
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-47
SELECT ALL - COALESCE ( + + 7, + + 72 + + - 14 ) * + + 93 - - - 40 DIV + 43 * 8 + + 43 + + MAX( ( 47 ) ) + 36
----
-525

skipif mysql # not compatible
query I rowsort label-47
SELECT ALL - COALESCE ( + + 7, + + 72 + + - 14 ) * + + 93 - - - 40 / + 43 * 8 + + 43 + + MAX ( ( 47 ) ) + 36
----
-525

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-49
SELECT ALL - CAST( NULL AS DECIMAL ) / + 96 AS col2, + CAST( - 39 AS SIGNED ) AS col2
----
NULL
-39

skipif mysql # not compatible
query II rowsort label-49
SELECT ALL - CAST ( NULL AS REAL ) / + 96 AS col2, + CAST ( - 39 AS INTEGER ) AS col2
----
NULL
-39

query I rowsort
SELECT 12 * 45 col1
----
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-51
SELECT ALL + CAST( 43 AS SIGNED ) * 45 AS col2
----
1935

skipif mysql # not compatible
query I rowsort label-51
SELECT ALL + CAST ( 43 AS INTEGER ) * 45 AS col2
----
1935

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT 31 DIV + 80
----
0

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

query I rowsort
SELECT 38 - 57 * + + 64
----
-3610

query I rowsort
SELECT ALL + 44 + - 2
----
42

query II rowsort
SELECT 15 AS col0, 63 AS col1
----
15
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-56
SELECT DISTINCT - 26 + - COALESCE ( + 93, + CAST( + + COUNT( * ) AS SIGNED ) ) + - 30 * - 52 - + 41 AS col1
----
1400

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - 26 + - COALESCE ( + 93, + CAST ( + + COUNT ( * ) AS INTEGER ) ) + - 30 * - 52 - + 41 AS col1
----
1400

query II rowsort
SELECT ALL 55, 51 AS col1
----
55
51

query I rowsort
SELECT 37 + 16 + 97 AS col2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT COUNT( + 45 ) - + + 99 + 42
----
-56

skipif mysql # not compatible
query I rowsort label-59
SELECT COUNT ( + 45 ) - + + 99 + 42
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-60
SELECT COUNT( * ) AS col1, + COUNT( * ) * CAST( NULL AS SIGNED ) * - 82 col1, - 77 AS col2
----
1
NULL
-77

skipif mysql # not compatible
query III rowsort label-60
SELECT COUNT ( * ) AS col1, + COUNT ( * ) * CAST ( NULL AS INTEGER ) * - 82 col1, - 77 AS col2
----
1
NULL
-77

query I rowsort
SELECT 1 * - 68
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-62
SELECT ALL - 4 DIV - 64 * - + 34 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - 4 / - 64 * - + 34 AS col0
----
0

query II rowsort
SELECT + + 88 AS col1, - 33 * + - 41 AS col2
----
88
1353

query II rowsort
SELECT ALL - 31 AS col2, + 44
----
-31
44

query I rowsort
SELECT ALL + - 56 + - 46
----
-102

query I rowsort
SELECT + - NULLIF ( + - ( - 72 ), - 88 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT ALL - 54 - ( - + 43 ) * + NULLIF ( COUNT( * ), - 36 ) AS col1
----
-11

skipif mysql # not compatible
query I rowsort label-67
SELECT ALL - 54 - ( - + 43 ) * + NULLIF ( COUNT ( * ), - 36 ) AS col1
----
-11

query I rowsort
SELECT 80 + - 45 AS col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT DISTINCT - SUM( DISTINCT - 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT - SUM ( DISTINCT - 68 ) AS col1
----
68

query I rowsort
SELECT + 64 * - 36 * + ( 55 ) + - 96 + - 42
----
-126858

query II rowsort
SELECT - 7 AS col1, ( - 85 ) + + 79
----
-7
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-72
SELECT + COUNT( * ) * - ( + + COUNT( * ) ) - - + 21 * 20 + 80 * - 57 + 29 DIV MAX( + + 91 ) * COUNT( * ) - COUNT( * ) + 53
----
-4089

skipif mysql # not compatible
query I rowsort label-72
SELECT + COUNT ( * ) * - ( + + COUNT ( * ) ) - - + 21 * 20 + 80 * - 57 + 29 / MAX ( + + 91 ) * COUNT ( * ) - COUNT ( * ) + 53
----
-4089

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-73
SELECT 59 / + 60 * CAST( NULL AS SIGNED ) / - 46 + - 50 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT 59 / + 60 * CAST ( NULL AS INTEGER ) / - 46 + - 50 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-74
SELECT 3 * + 93 * - - 64 DIV - COUNT( * ) AS col1, 37 AS col0
----
-17856
37

skipif mysql # not compatible
query II rowsort label-74
SELECT 3 * + 93 * - - 64 / - COUNT ( * ) AS col1, 37 AS col0
----
-17856
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-75
SELECT DISTINCT - CAST( - 18 AS SIGNED ) AS col1, + 32
----
18
32

skipif mysql # not compatible
query II rowsort label-75
SELECT DISTINCT - CAST ( - 18 AS INTEGER ) AS col1, + 32
----
18
32

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - 4 + + + MAX( + - 90 )
----
-94

skipif mysql # not compatible
query I rowsort label-76
SELECT - 4 + + + MAX ( + - 90 )
----
-94

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

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

query II rowsort
SELECT + - 80 AS col1, - 29 * 99
----
-80
-2871

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT ALL 57 DIV + 46 + - - 52 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL 57 / + 46 + - - 52 AS col0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT MAX( 71 ) * - 55 col1
----
-3905

skipif mysql # not compatible
query I rowsort label-80
SELECT MAX ( 71 ) * - 55 col1
----
-3905

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-81
SELECT DISTINCT - 41, 9 - 42 + - COUNT( * ) DIV - COUNT( * ) + + 8 AS col0
----
-41
-24

skipif mysql # not compatible
query II rowsort label-81
SELECT DISTINCT - 41, 9 - 42 + - COUNT ( * ) / - COUNT ( * ) + + 8 AS col0
----
-41
-24

query I rowsort
SELECT 29 * + 92 + + 28
----
2696

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-83
SELECT 63 AS col2, + COALESCE ( + 64, - - 67 DIV - 86 DIV COUNT( ALL - 20 ) * 34 )
----
63
64

skipif mysql # not compatible
query II rowsort label-83
SELECT 63 AS col2, + COALESCE ( + 64, - - 67 / - 86 / COUNT ( ALL - 20 ) * 34 )
----
63
64

query I rowsort
SELECT ALL 10 * + 69 col0
----
690

query II rowsort
SELECT 32 * - 5 * 38, + 22 AS col2
----
-6080
22

query I rowsort
SELECT 3 + + 46 + - 4 col1
----
45

query II rowsort
SELECT - 37 * + 60 * + 85 + - - ( + 51 ) AS col0, + 43
----
-188649
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT - MAX( ALL + + 52 ) AS col1
----
-52

skipif mysql # not compatible
query I rowsort label-89
SELECT - MAX ( ALL + + 52 ) AS col1
----
-52

query II rowsort
SELECT ALL ( + 4 ) + + 73 AS col1, + 29 + 90 * + - 94 + - + 29
----
77
-8460

query I rowsort
SELECT ALL 44 + + 12 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT + 50 + + 8 - ( - 27 ) * - - 46 * + 30 / + - 80 + - 60 * + 36 / - CASE + 58 WHEN + 18 * + 81 THEN NULL WHEN + 76 + + COUNT( * ) THEN 3 * 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-92
SELECT + 50 + + 8 - ( - 27 ) * - - 46 * + 30 / + - 80 + - 60 * + 36 / - CASE + 58 WHEN + 18 * + 81 THEN NULL WHEN + 76 + + COUNT ( * ) THEN 3 * 55 END
----
NULL

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

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

query I rowsort
SELECT - COALESCE ( + ( 15 ), - ( + - 57 ) ) col2
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-95
SELECT - COUNT( * ) + + ( + + COUNT( * ) ) AS col1, 2 - - 40 + 57 AS col0
----
0
99

skipif mysql # not compatible
query II rowsort label-95
SELECT - COUNT ( * ) + + ( + + COUNT ( * ) ) AS col1, 2 - - 40 + 57 AS col0
----
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT ALL 8 + + 57 - + NULLIF ( + - COUNT( * ), + - 27 * - 83 ) * 3 + - - 22
----
90

skipif mysql # not compatible
query I rowsort label-96
SELECT ALL 8 + + 57 - + NULLIF ( + - COUNT ( * ), + - 27 * - 83 ) * 3 + - - 22
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT - 96 + COUNT( * ) * + + 50 + - 51 * - 48 AS col0
----
2402

skipif mysql # not compatible
query I rowsort label-97
SELECT - 96 + COUNT ( * ) * + + 50 + - 51 * - 48 AS col0
----
2402

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT - COALESCE ( - COUNT( * ), 19 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-98
SELECT - COALESCE ( - COUNT ( * ), 19 ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-99
SELECT - ( 8 ) + - 91, CASE - 7 WHEN - 27 THEN - - 2 * + + CAST( + + 97 AS SIGNED ) + + + 17 ELSE NULL END * 46 * - 62 + - 79 AS col2
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-99
SELECT - ( 8 ) + - 91, CASE - 7 WHEN - 27 THEN - - 2 * + + CAST ( + + 97 AS INTEGER ) + + + 17 ELSE NULL END * 46 * - 62 + - 79 AS col2
----
-99
NULL

query I rowsort
SELECT ALL - + 82 * - + 75
----
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-101
SELECT DISTINCT 57 * + + 46 - COALESCE ( + 96, + NULLIF ( + - ( + SUM( ALL + - 26 ) ), - COUNT( * ) / + - 85 + - 90 + + 69 - COUNT( * ) ), - 82 )
----
2526

skipif mysql # not compatible
query I rowsort label-101
SELECT DISTINCT 57 * + + 46 - COALESCE ( + 96, + NULLIF ( + - ( + SUM ( ALL + - 26 ) ), - COUNT ( * ) / + - 85 + - 90 + + 69 - COUNT ( * ) ), - 82 )
----
2526

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-102
SELECT - COALESCE ( - ( + 64 ), 3 DIV + + COUNT( * ) )
----
64

skipif mysql # not compatible
query I rowsort label-102
SELECT - COALESCE ( - ( + 64 ), 3 / + + COUNT ( * ) )
----
64

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

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

query I rowsort
SELECT - + 26 * + 72 + 97 * 2
----
-1678

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

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

query II rowsort
SELECT - 33 + - - 56 AS col0, 0
----
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT + NULLIF ( 91, COUNT( * ) )
----
91

skipif mysql # not compatible
query I rowsort label-108
SELECT + NULLIF ( 91, COUNT ( * ) )
----
91

query II rowsort
SELECT DISTINCT + + ( 76 ) col1, 95
----
76
95

onlyif mysql # DIV for integer division: 
query II rowsort label-110
SELECT - 60 DIV - 67, 19 col1
----
0
19

skipif mysql # not compatible
query II rowsort label-110
SELECT - 60 / - 67, 19 col1
----
0
19

query II rowsort
SELECT - - 99 * 3 AS col2, - 60
----
297
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-112
SELECT + 10 + COUNT( * ) - - - COALESCE ( + 1, + 33, 4 DIV 99 )
----
10

skipif mysql # not compatible
query I rowsort label-112
SELECT + 10 + COUNT ( * ) - - - COALESCE ( + 1, + 33, 4 / 99 )
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-113
SELECT - 80 DIV + 58
----
-1

skipif mysql # not compatible
query I rowsort label-113
SELECT - 80 / + 58
----
-1

query I rowsort
SELECT DISTINCT ( + 64 ) AS col1
----
64

query I rowsort
SELECT ALL 44 + + - 69 - 8
----
-33

query I rowsort
SELECT DISTINCT + ( - 61 ) + - 1 + + - 70 + 77
----
-55

query I rowsort
SELECT ALL 38 + + - 87 AS col2
----
-49

query I rowsort
SELECT ALL 8 + - 89 + 92 * + + NULLIF ( - + 46, 75 + - 31 + + ( + 53 ) ) * + NULLIF ( - 74, + 40 ) - 93 AS col1
----
312994

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT - COUNT( * ) - 17
----
-18

skipif mysql # not compatible
query I rowsort label-119
SELECT - COUNT ( * ) - 17
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-120
SELECT 78, - CAST( NULL AS SIGNED ) AS col2
----
78
NULL

skipif mysql # not compatible
query II rowsort label-120
SELECT 78, - CAST ( NULL AS INTEGER ) AS col2
----
78
NULL

query I rowsort
SELECT - 90 * + - 2 AS col2
----
180

query II rowsort
SELECT 64 AS col1, + 60 - + - 59 AS col2
----
64
119

query I rowsort
SELECT ALL 54 - - + 7 AS col2
----
61

query I rowsort
SELECT ALL 66 * + 91 AS col0
----
6006

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

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

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

skipif mysql # not compatible
query I rowsort label-126
SELECT + MIN ( 27 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT - CASE WHEN NULL NOT IN ( COUNT( * ) ) THEN - 61 * - + 96 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT - CASE WHEN NULL NOT IN ( COUNT ( * ) ) THEN - 61 * - + 96 ELSE NULL END
----
NULL

query I rowsort
SELECT + - 16 * - 95 AS col2
----
1520

onlyif mysql # aggregate syntax: 
query I rowsort label-129
SELECT - MIN( + 32 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-129
SELECT - MIN ( + 32 ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-130
SELECT + - COUNT( ALL - 18 ) + + + 27 col2, + CAST( + 46 AS SIGNED ) col1
----
26
46

skipif mysql # not compatible
query II rowsort label-130
SELECT + - COUNT ( ALL - 18 ) + + + 27 col2, + CAST ( + 46 AS INTEGER ) col1
----
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT - - COUNT( + 28 ) - - - 75 * + - 21
----
1576

skipif mysql # not compatible
query I rowsort label-131
SELECT - - COUNT ( + 28 ) - - - 75 * + - 21
----
1576

onlyif mysql # aggregate syntax: 
query I rowsort label-132
SELECT ALL - 61 * + MAX( 91 )
----
-5551

skipif mysql # not compatible
query I rowsort label-132
SELECT ALL - 61 * + MAX ( 91 )
----
-5551

query I rowsort
SELECT + - ( + 80 ) * 86 * 0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-134
SELECT - 59 DIV 63 + + NULLIF ( + 43, - MAX( + + 61 ) ) + - 37
----
6

skipif mysql # not compatible
query I rowsort label-134
SELECT - 59 / 63 + + NULLIF ( + 43, - MAX ( + + 61 ) ) + - 37
----
6

query I rowsort
SELECT ALL - 69 * + + 72
----
-4968

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

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

query II rowsort
SELECT + 42 AS col2, 60 * - - ( + 67 ) * + - 3
----
42
-12060

query I rowsort
SELECT ALL 78 * + 69 * + 6 AS col1
----
32292

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-139
SELECT + CAST( NULL AS DECIMAL ) * 90 + - 61
----
NULL

skipif mysql # not compatible
query I rowsort label-139
SELECT + CAST ( NULL AS REAL ) * 90 + - 61
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT - - 14 * - 96 + CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) * - - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-140
SELECT - - 14 * - 96 + CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * - - 92
----
NULL

query I rowsort
SELECT + 75 * - 75 - - 95 col1
----
-5530

onlyif mysql # aggregate syntax: 
query II rowsort label-142
SELECT + + 35 AS col2, - CASE - COUNT( * ) WHEN + + 68 THEN + 18 WHEN - 61 THEN - 61 ELSE 90 + 63 END
----
35
-153

skipif mysql # not compatible
query II rowsort label-142
SELECT + + 35 AS col2, - CASE - COUNT ( * ) WHEN + + 68 THEN + 18 WHEN - 61 THEN - 61 ELSE 90 + 63 END
----
35
-153

query I rowsort
SELECT + - 53 * + 62 AS col1
----
-3286

query II rowsort
SELECT + 77 col0, 24 * + 23 AS col1
----
77
552

query II rowsort
SELECT ALL + + 41 AS col1, + 92 AS col1
----
41
92

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL 29 * - + 18 * + 69 + - COUNT( ALL - 49 ) - 10 - + 28 AS col1
----
-36057

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL 29 * - + 18 * + 69 + - COUNT ( ALL - 49 ) - 10 - + 28 AS col1
----
-36057

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT - SUM( - - 7 ) - + + 40 * + 3 AS col1
----
-127

skipif mysql # not compatible
query I rowsort label-147
SELECT - SUM ( - - 7 ) - + + 40 * + 3 AS col1
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT DISTINCT - COUNT( - COALESCE ( - 64, + 92 + - 31 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT - COUNT ( - COALESCE ( - 64, + 92 + - 31 ) ) AS col1
----
-1

query I rowsort
SELECT 12 * 46 - - - 13
----
539

query I rowsort
SELECT ALL + 85 * 71 * + 0 * 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT ALL + COUNT( * ) + + 19 * - 53 * - + COALESCE ( 70, + - 66 * - + CASE - 22 WHEN - 36 THEN NULL WHEN - - ( + 5 ) THEN - 17 WHEN 99 THEN NULL END ) AS col2
----
70491

skipif mysql # not compatible
query I rowsort label-151
SELECT ALL + COUNT ( * ) + + 19 * - 53 * - + COALESCE ( 70, + - 66 * - + CASE - 22 WHEN - 36 THEN NULL WHEN - - ( + 5 ) THEN - 17 WHEN 99 THEN NULL END ) AS col2
----
70491

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT 13 * + + 25 + COUNT( * )
----
326

skipif mysql # not compatible
query I rowsort label-152
SELECT 13 * + + 25 + COUNT ( * )
----
326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-153
SELECT 73 - + NULLIF ( + + 57, - 76 * + 17 + - 32 - + 18 + CASE - - 90 WHEN 75 * + 26 THEN NULL WHEN + 63 * + + CAST( + ( + AVG ( ALL 4 ) ) AS SIGNED ) * 84 THEN 51 WHEN + 0 THEN NULL ELSE ( COUNT( * ) ) END * 6 ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-153
SELECT 73 - + NULLIF ( + + 57, - 76 * + 17 + - 32 - + 18 + CASE - - 90 WHEN 75 * + 26 THEN NULL WHEN + 63 * + + CAST ( + ( + AVG ( ALL 4 ) ) AS INTEGER ) * 84 THEN 51 WHEN + 0 THEN NULL ELSE ( COUNT ( * ) ) END * 6 ) AS col2
----
16

query I rowsort
SELECT CASE + 32 WHEN + 11 THEN CASE - - 97 WHEN + - 30 THEN NULL WHEN - 50 * - - 85 THEN NULL ELSE 42 END * + + 59 ELSE NULL END * - 66 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-155
SELECT 47 + + CAST( NULL AS SIGNED ) * + + COUNT( * ) / - 40 * + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-155
SELECT 47 + + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) / - 40 * + 50
----
NULL

query I rowsort
SELECT 56 + - + 17 * + - 40
----
736

onlyif mysql # aggregate syntax: 
query II rowsort label-157
SELECT DISTINCT - SUM( ALL - + 42 ) - + 26 * + COUNT( * ) AS col0, 18 - + - COALESCE ( + 48, - 59 * - ( - + 31 ), + 16 )
----
16
66

skipif mysql # not compatible
query II rowsort label-157
SELECT DISTINCT - SUM ( ALL - + 42 ) - + 26 * + COUNT ( * ) AS col0, 18 - + - COALESCE ( + 48, - 59 * - ( - + 31 ), + 16 )
----
16
66

onlyif mysql # DIV for integer division: 
query I rowsort label-158
SELECT 72 + COALESCE ( - - 69, + 56, + 83 * 33 DIV + 80 )
----
141

skipif mysql # not compatible
query I rowsort label-158
SELECT 72 + COALESCE ( - - 69, + 56, + 83 * 33 / + 80 )
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-159
SELECT MAX( ALL + 81 ) + - + ( - - 23 ) col1, 0
----
58
0

skipif mysql # not compatible
query II rowsort label-159
SELECT MAX ( ALL + 81 ) + - + ( - - 23 ) col1, 0
----
58
0

query I rowsort
SELECT 91 + - + 89 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-161
SELECT CASE 93 WHEN - + 98 THEN - - 29 * 1 + + 13 / 75 - 81 - - 5 + - + COALESCE ( + - COUNT( * ), + 20 ) * - + NULLIF ( + 93, 3 ) * + 98 END + CAST( + 83 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT CASE 93 WHEN - + 98 THEN - - 29 * 1 + + 13 / 75 - 81 - - 5 + - + COALESCE ( + - COUNT ( * ), + 20 ) * - + NULLIF ( + 93, 3 ) * + 98 END + CAST ( + 83 AS REAL ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT 9 * NULLIF ( + CAST( + - ( 9 ) AS SIGNED ), 20 * + + 61 )
----
-81

skipif mysql # not compatible
query I rowsort label-162
SELECT 9 * NULLIF ( + CAST ( + - ( 9 ) AS INTEGER ), 20 * + + 61 )
----
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-163
SELECT ALL 83 * - 43 col1, + ( + MAX( - 5 ) ) AS col2
----
-3569
-5

skipif mysql # not compatible
query II rowsort label-163
SELECT ALL 83 * - 43 col1, + ( + MAX ( - 5 ) ) AS col2
----
-3569
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT - COUNT( * ) + - 8 - + 74 + + 99 - + 34 * 33
----
-1106

skipif mysql # not compatible
query I rowsort label-165
SELECT - COUNT ( * ) + - 8 - + 74 + + 99 - + 34 * 33
----
-1106

query I rowsort
SELECT 57 * - 98 col2
----
-5586

query I rowsort
SELECT - 40 + - 67
----
-107

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT DISTINCT 67 + + 75 * 27 + + MAX( - ( - 66 ) ) + + - 78
----
2080

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT 67 + + 75 * 27 + + MAX ( - ( - 66 ) ) + + - 78
----
2080

query I rowsort
SELECT ALL - CASE + - 88 WHEN - 2 - 14 + 59 THEN + + 53 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT + 15 * COUNT( * ) * - + 17
----
-255

skipif mysql # not compatible
query I rowsort label-170
SELECT + 15 * COUNT ( * ) * - + 17
----
-255

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

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

query II rowsort
SELECT 45 + - + 20 * 10 * + 68, - 15 + + 97 AS col0
----
-13555
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-173
SELECT + CAST( + 40 AS SIGNED ) * - SUM( - - 4 ) - - - 33 * - SUM( DISTINCT + 79 ) * - + 15 + + 92 AS col1
----
-39173

skipif mysql # not compatible
query I rowsort label-173
SELECT + CAST ( + 40 AS INTEGER ) * - SUM ( - - 4 ) - - - 33 * - SUM ( DISTINCT + 79 ) * - + 15 + + 92 AS col1
----
-39173

onlyif mysql # DIV for integer division: 
query I rowsort label-174
SELECT ALL COALESCE ( + 66, + - 0, + 41 ) DIV + 21 col1
----
3

skipif mysql # not compatible
query I rowsort label-174
SELECT ALL COALESCE ( + 66, + - 0, + 41 ) / + 21 col1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-175
SELECT CAST( - - CAST( + - 45 AS SIGNED ) AS SIGNED ) * + + 5 * 80 + - 37 * - 64 + COUNT( * ) * - 43 + + 25 AS col2
----
-15650

skipif mysql # not compatible
query I rowsort label-175
SELECT CAST ( - - CAST ( + - 45 AS INTEGER ) AS INTEGER ) * + + 5 * 80 + - 37 * - 64 + COUNT ( * ) * - 43 + + 25 AS col2
----
-15650

query I rowsort
SELECT 34 + + + 15 * + 97 col2
----
1489

query I rowsort
SELECT DISTINCT + 55 + - 53 + + COALESCE ( + 0, ( 42 ) ) AS col1
----
2

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

query I rowsort
SELECT 38 + - 82 AS col2
----
-44

query I rowsort
SELECT 26 * - 62 - + 96 col1
----
-1708

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT 17 * - MIN( 97 ) * + 16 + - 69 * - - 78 + 41 - 22 - + COUNT( 44 )
----
-31748

skipif mysql # not compatible
query I rowsort label-181
SELECT 17 * - MIN ( 97 ) * + 16 + - 69 * - - 78 + 41 - 22 - + COUNT ( 44 )
----
-31748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-182
SELECT ALL 33 - + SUM( 82 ) + + ( - - 10 ) DIV 39 - - 19 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-182
SELECT ALL 33 - + SUM ( 82 ) + + ( - - 10 ) / 39 - - 19 AS col2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-183
SELECT 73 AS col2, 96 - ( 99 ) + - 2 + CAST( COUNT( * ) AS SIGNED ) * + 7 + + + CASE + COUNT( * ) WHEN - 2 THEN - 52 ELSE + CASE - 30 WHEN + 58 * 68 THEN NULL WHEN 53 + - 6 THEN + 30 WHEN + 19 THEN NULL ELSE NULL END END * + ( + 42 ) AS col0
----
73
NULL

skipif mysql # not compatible
query II rowsort label-183
SELECT 73 AS col2, 96 - ( 99 ) + - 2 + CAST ( COUNT ( * ) AS INTEGER ) * + 7 + + + CASE + COUNT ( * ) WHEN - 2 THEN - 52 ELSE + CASE - 30 WHEN + 58 * 68 THEN NULL WHEN 53 + - 6 THEN + 30 WHEN + 19 THEN NULL ELSE NULL END END * + ( + 42 ) AS col0
----
73
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-184
SELECT 8 AS col1, 14 - + - 95 - + - 46 + - COALESCE ( - 91, - 18 DIV - - COUNT( - - COALESCE ( - 42, 75 ) ) * - 2 + - - 5 ) AS col1
----
8
246

skipif mysql # not compatible
query II rowsort label-184
SELECT 8 AS col1, 14 - + - 95 - + - 46 + - COALESCE ( - 91, - 18 / - - COUNT ( - - COALESCE ( - 42, 75 ) ) * - 2 + - - 5 ) AS col1
----
8
246

query I rowsort
SELECT ( ( + 81 ) ) * - 21
----
-1701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-186
SELECT + 24 * 50 * + - ( - 94 ) + 22 - - 90 * - CAST( NULL AS SIGNED ) * 16 - - + NULLIF ( - ( CAST( NULL AS SIGNED ) ), - 29 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-186
SELECT + 24 * 50 * + - ( - 94 ) + 22 - - 90 * - CAST ( NULL AS INTEGER ) * 16 - - + NULLIF ( - ( CAST ( NULL AS INTEGER ) ), - 29 ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-187
SELECT 82 + 81 DIV 92
----
82

skipif mysql # not compatible
query I rowsort label-187
SELECT 82 + 81 / 92
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-188
SELECT + MIN( DISTINCT + 62 ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-188
SELECT + MIN ( DISTINCT + 62 ) AS col2
----
62

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-190
SELECT 8 AS col2, - CAST( NULL AS SIGNED )
----
8
NULL

skipif mysql # not compatible
query II rowsort label-190
SELECT 8 AS col2, - CAST ( NULL AS INTEGER )
----
8
NULL

query I rowsort
SELECT 76 * + 24 AS col2
----
1824

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-194
SELECT + 4 * ( + 65 ) DIV 8 * + 26 - - COUNT( * ) AS col0
----
833

skipif mysql # not compatible
query I rowsort label-194
SELECT + 4 * ( + 65 ) / 8 * + 26 - - COUNT ( * ) AS col0
----
833

query I rowsort
SELECT 65 * - 4
----
-260

query I rowsort
SELECT 1 * + + 44 * 0 * + 88 * - 32
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-197
SELECT 72 - COALESCE ( + + COUNT( 42 ), - 96, + 5 ) col0
----
71

skipif mysql # not compatible
query I rowsort label-197
SELECT 72 - COALESCE ( + + COUNT ( 42 ), - 96, + 5 ) col0
----
71

query II rowsort
SELECT ALL + 36 AS col0, ( 90 ) + - 45 AS col0
----
36
45

query I rowsort
SELECT - 41 - + - 4
----
-37

query I rowsort
SELECT - ( 67 ) * 76 * 12
----
-61104

onlyif mysql # aggregate syntax: 
query II rowsort label-201
SELECT ALL - COALESCE ( + - 63, - COUNT( * ) ) AS col0, - 17 * + - 42 + + NULLIF ( - 63, - + 54 ) col1
----
63
651

skipif mysql # not compatible
query II rowsort label-201
SELECT ALL - COALESCE ( + - 63, - COUNT ( * ) ) AS col0, - 17 * + - 42 + + NULLIF ( - 63, - + 54 ) col1
----
63
651

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT COUNT( * ) - - MAX( ALL - 0 ) * - ( + 8 ) + - 66 AS col0
----
-65

skipif mysql # not compatible
query I rowsort label-203
SELECT COUNT ( * ) - - MAX ( ALL - 0 ) * - ( + 8 ) + - 66 AS col0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT - + 42 + - - COUNT( * ) * - COUNT( * ) col2
----
-43

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - + 42 + - - COUNT ( * ) * - COUNT ( * ) col2
----
-43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-205
SELECT 80 DIV NULLIF ( 15, 36 + + 56 DIV CAST( NULL AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-205
SELECT 80 / NULLIF ( 15, 36 + + 56 / CAST ( NULL AS INTEGER ) )
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT + NULLIF ( 7, + 53 + MIN( - - 58 ) + - + 86 * 5 + - 33 * + 78 - - 9 * 53 ) * - 28 * - MIN( ALL + 97 )
----
19012

skipif mysql # not compatible
query I rowsort label-206
SELECT + NULLIF ( 7, + 53 + MIN ( - - 58 ) + - + 86 * 5 + - 33 * + 78 - - 9 * 53 ) * - 28 * - MIN ( ALL + 97 )
----
19012

query I rowsort
SELECT ALL + - 29 + 57
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-208
SELECT DISTINCT - CASE - + ( - - CASE 15 WHEN ( 6 ) * COALESCE ( 28, + 94 - + + 82 + + 27 * - 65, - 36 * 92 ) THEN NULL ELSE - CAST( NULL AS SIGNED ) END ) WHEN 10 THEN 54 + - ( 55 ) WHEN SUM( ALL 62 ) * 54 THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-208
SELECT DISTINCT - CASE - + ( - - CASE 15 WHEN ( 6 ) * COALESCE ( 28, + 94 - + + 82 + + 27 * - 65, - 36 * 92 ) THEN NULL ELSE - CAST ( NULL AS INTEGER ) END ) WHEN 10 THEN 54 + - ( 55 ) WHEN SUM ( ALL 62 ) * 54 THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 57 + - 72
----
-129

query I rowsort
SELECT DISTINCT 1 + - + 70 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT - ( - 95 ) + COUNT( * ) - 30 * 14
----
-324

skipif mysql # not compatible
query I rowsort label-211
SELECT - ( - 95 ) + COUNT ( * ) - 30 * 14
----
-324

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-214
SELECT ALL + + ( - NULLIF ( MAX( DISTINCT + 94 ), + + 35 ) ) col2
----
-94

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + + ( - NULLIF ( MAX ( DISTINCT + 94 ), + + 35 ) ) col2
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-215
SELECT + - 87 * - ( - CAST( 26 AS SIGNED ) ) + + ( - 86 ) AS col2
----
-2348

skipif mysql # not compatible
query I rowsort label-215
SELECT + - 87 * - ( - CAST ( 26 AS INTEGER ) ) + + ( - 86 ) AS col2
----
-2348

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

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

query I rowsort
SELECT DISTINCT + 56 * + + 68 - 79
----
3729

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-218
SELECT ALL + CAST( NULL AS SIGNED ) * 76 * 49 - 49 AS col2, + 60
----
NULL
60

skipif mysql # not compatible
query II rowsort label-218
SELECT ALL + CAST ( NULL AS INTEGER ) * 76 * 49 - 49 AS col2, + 60
----
NULL
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-219
SELECT + COUNT( + - ( - 0 ) ) DIV 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-219
SELECT + COUNT ( + - ( - 0 ) ) / 99 AS col1
----
0

query I rowsort
SELECT + 68 * + 53 AS col0
----
3604

onlyif mysql # aggregate syntax: 
query I rowsort label-221
SELECT ALL 79 * 19 * COUNT( * )
----
1501

skipif mysql # not compatible
query I rowsort label-221
SELECT ALL 79 * 19 * COUNT ( * )
----
1501

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

skipif mysql # not compatible
query I rowsort label-222
SELECT + SUM ( + + 34 )
----
34

onlyif mysql # aggregate syntax: 
query III rowsort label-223
SELECT ALL + 1 AS col0, - 63 col2, - MIN( - 27 )
----
1
-63
27

skipif mysql # not compatible
query III rowsort label-223
SELECT ALL + 1 AS col0, - 63 col2, - MIN ( - 27 )
----
1
-63
27

onlyif mysql # aggregate syntax: 
query I rowsort label-224
SELECT + MIN( ALL ( 43 ) ) * 90 - + CASE - 93 WHEN - 23 THEN NULL WHEN 84 THEN + ( - 58 ) END + - AVG ( 49 ) / 53 * - + 94
----
NULL

skipif mysql # not compatible
query I rowsort label-224
SELECT + MIN ( ALL ( 43 ) ) * 90 - + CASE - 93 WHEN - 23 THEN NULL WHEN 84 THEN + ( - 58 ) END + - AVG ( 49 ) / 53 * - + 94
----
NULL

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

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

query I rowsort
SELECT ALL 43 * - 31 AS col1
----
-1333

query I rowsort
SELECT DISTINCT 37 * + - 52 * - + 52 col2
----
100048

query I rowsort
SELECT + 38 * 50 + + 97 AS col1
----
1997

onlyif mysql # aggregate syntax: 
query II rowsort label-229
SELECT - 7 - + COUNT( * ) + - + 9 * + 27 + - - 26 + 60, 87 AS col1
----
-165
87

skipif mysql # not compatible
query II rowsort label-229
SELECT - 7 - + COUNT ( * ) + - + 9 * + 27 + - - 26 + 60, 87 AS col1
----
-165
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-230
SELECT ALL COUNT( * ), 18 * - CAST( NULL AS SIGNED ) / 25 AS col1
----
1
NULL

skipif mysql # not compatible
query II rowsort label-230
SELECT ALL COUNT ( * ), 18 * - CAST ( NULL AS INTEGER ) / 25 AS col1
----
1
NULL

query I rowsort
SELECT + 78 + - - 79 AS col2
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT + - COUNT( 1 ) + 26 * + 98 * - 51 + - + 69
----
-130018

skipif mysql # not compatible
query I rowsort label-232
SELECT + - COUNT ( 1 ) + 26 * + 98 * - 51 + - + 69
----
-130018

onlyif mysql # aggregate syntax: 
query II rowsort label-233
SELECT ALL + ( + MIN( ALL - 33 ) ) + + 85 AS col0, - 9
----
52
-9

skipif mysql # not compatible
query II rowsort label-233
SELECT ALL + ( + MIN ( ALL - 33 ) ) + + 85 AS col0, - 9
----
52
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + CASE - 52 WHEN - 65 * 94 * - 55 + + + 79 THEN NULL WHEN - 30 * 24 * - 24 + + 3 THEN 73 * + 54 * + + 44 + - SUM( DISTINCT - 64 ) END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-234
SELECT + CASE - 52 WHEN - 65 * 94 * - 55 + + + 79 THEN NULL WHEN - 30 * 24 * - 24 + + 3 THEN 73 * + 54 * + + 44 + - SUM ( DISTINCT - 64 ) END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT ALL + 4 + - 32 * + + COALESCE ( - MIN( ALL + 71 ), NULLIF ( + 17, - ( - COUNT( * ) ) ) ) * MIN( DISTINCT + 93 ) + - 53 AS col2
----
211247

skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + 4 + - 32 * + + COALESCE ( - MIN ( ALL + 71 ), NULLIF ( + 17, - ( - COUNT ( * ) ) ) ) * MIN ( DISTINCT + 93 ) + - 53 AS col2
----
211247

query I rowsort
SELECT ALL - 82 * - 7 AS col2
----
574

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-237
SELECT ALL + 24 + + + MAX( DISTINCT + 52 ) DIV - + MAX( + 37 ) + COUNT( DISTINCT + 3 )
----
24

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL + 24 + + + MAX ( DISTINCT + 52 ) / - + MAX ( + 37 ) + COUNT ( DISTINCT + 3 )
----
24

query I rowsort
SELECT - 88 + 35 * - 8
----
-368

query I rowsort
SELECT + 28 * 16 AS col1
----
448

query II rowsort
SELECT 43, 90 AS col1
----
43
90

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - - MIN( DISTINCT + 22 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-241
SELECT - - MIN ( DISTINCT + 22 ) AS col1
----
22

query I rowsort
SELECT - - 41 + 63
----
104

onlyif mysql # DIV for integer division: 
query I rowsort label-243
SELECT - 55 DIV - 90 + + 93 AS col2
----
93

skipif mysql # not compatible
query I rowsort label-243
SELECT - 55 / - 90 + + 93 AS col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT - + CASE 29 WHEN - NULLIF ( 50, + 41 ) + + 38 THEN NULL ELSE + COUNT( * ) END AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-244
SELECT - + CASE 29 WHEN - NULLIF ( 50, + 41 ) + + 38 THEN NULL ELSE + COUNT ( * ) END AS col2
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT CASE + - 93 WHEN 90 THEN NULL ELSE COUNT( * ) END
----
1

skipif mysql # not compatible
query I rowsort label-246
SELECT CASE + - 93 WHEN 90 THEN NULL ELSE COUNT ( * ) END
----
1

query I rowsort
SELECT ALL ( 19 )
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT - + ( - 57 ) * + COUNT( 23 ), - 79 col0
----
57
-79

skipif mysql # not compatible
query II rowsort label-248
SELECT - + ( - 57 ) * + COUNT ( 23 ), - 79 col0
----
57
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-249
SELECT ALL + + 89 DIV + + MAX( + 65 )
----
1

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL + + 89 / + + MAX ( + 65 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-250
SELECT - 0 + COUNT( * ) - + 4
----
-3

skipif mysql # not compatible
query I rowsort label-250
SELECT - 0 + COUNT ( * ) - + 4
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT + SUM( DISTINCT 65 ) - - 84 AS col2
----
149

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT + SUM ( DISTINCT 65 ) - - 84 AS col2
----
149

query I rowsort
SELECT - 15 + 17 + - - 14
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-253
SELECT MAX( - 78 ) DIV - COUNT( * ) - - - 18 * - - 99 + - + 81 * 0 AS col1
----
-1704

skipif mysql # not compatible
query I rowsort label-253
SELECT MAX ( - 78 ) / - COUNT ( * ) - - - 18 * - - 99 + - + 81 * 0 AS col1
----
-1704

query II rowsort
SELECT + 80 * - 93, 14 AS col2
----
-7440
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-255
SELECT + 97 + + + CAST( 25 AS SIGNED )
----
122

skipif mysql # not compatible
query I rowsort label-255
SELECT + 97 + + + CAST ( 25 AS INTEGER )
----
122

query I rowsort
SELECT DISTINCT - 81 * + - 79 * + 91
----
582309

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT + MAX( + + 63 ) * 33 + - + 1 + 59
----
2137

skipif mysql # not compatible
query I rowsort label-257
SELECT + MAX ( + + 63 ) * 33 + - + 1 + 59
----
2137

query II rowsort
SELECT ALL 38 * + 68, 87 + - 68 col2
----
2584
19

query II rowsort
SELECT - 44 * 68, - ( + 93 ) AS col2
----
-2992
-93

query I rowsort
SELECT ALL - 90 * + 65 AS col2
----
-5850

query II rowsort
SELECT DISTINCT + ( + 92 ) AS col1, - 81
----
92
-81

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

skipif mysql # not compatible
query I rowsort label-262
SELECT + SUM ( 10 )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - 88 + + + CASE - 93 WHEN 65 THEN - 95 * - 2 ELSE NULL END * - 60 * + - 34 * - 97 / 46 - - 62 * 12
----
NULL

skipif mysql # not compatible
query I rowsort label-263
SELECT + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - 88 + + + CASE - 93 WHEN 65 THEN - 95 * - 2 ELSE NULL END * - 60 * + - 34 * - 97 / 46 - - 62 * 12
----
NULL

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

query I rowsort
SELECT 19 * + 71 + - - 51 AS col0
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-266
SELECT ALL CASE - 80 WHEN ( 45 ) THEN NULL WHEN - COUNT( * ) THEN NULL WHEN - - ( - 96 ) THEN NULL WHEN - 67 * + - AVG ( + 18 ) THEN + CAST( NULL AS SIGNED ) END * - COALESCE ( COUNT( * ), 80, - 71 ) / - + COUNT( * ) + - 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL CASE - 80 WHEN ( 45 ) THEN NULL WHEN - COUNT ( * ) THEN NULL WHEN - - ( - 96 ) THEN NULL WHEN - 67 * + - AVG ( + 18 ) THEN + CAST ( NULL AS INTEGER ) END * - COALESCE ( COUNT ( * ), 80, - 71 ) / - + COUNT ( * ) + - 0 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-267
SELECT DISTINCT + + 65 * 72 + CASE SUM( + - 12 ) WHEN - - AVG ( + 83 ) * + 93 THEN + - 98 ELSE COUNT( * ) END + 42 + 57 DIV 10 * + 62 * - COUNT( * )
----
4413

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT + + 65 * 72 + CASE SUM ( + - 12 ) WHEN - - AVG ( + 83 ) * + 93 THEN + - 98 ELSE COUNT ( * ) END + 42 + 57 / 10 * + 62 * - COUNT ( * )
----
4413

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT ALL - + 0 * 23 * + ( + + 2 ) DIV - + 94 + - 86 + 89
----
3

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL - + 0 * 23 * + ( + + 2 ) / - + 94 + - 86 + 89
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-269
SELECT DISTINCT 33 * + - 55 DIV + COUNT( * ) AS col2
----
-1815

skipif mysql # not compatible
query I rowsort label-269
SELECT DISTINCT 33 * + - 55 / + COUNT ( * ) AS col2
----
-1815

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-270
SELECT + 73 DIV + 90 + + + MAX( + 24 ) * 59
----
1416

skipif mysql # not compatible
query I rowsort label-270
SELECT + 73 / + 90 + + + MAX ( + 24 ) * 59
----
1416

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-271
SELECT + - CASE - + 66 WHEN - - 82 THEN + 76 ELSE + - 29 DIV 39 * + CAST( + - COUNT( * ) AS SIGNED ) END * + + 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-271
SELECT + - CASE - + 66 WHEN - - 82 THEN + 76 ELSE + - 29 / 39 * + CAST ( + - COUNT ( * ) AS INTEGER ) END * + + 76 AS col0
----
0

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

query I rowsort
SELECT ALL + + ( - 5 ) * 5 + - - 84 + + + 1 AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT + - 86 - - - MAX( ALL - 75 )
----
-11

skipif mysql # not compatible
query I rowsort label-274
SELECT + - 86 - - - MAX ( ALL - 75 )
----
-11

query I rowsort
SELECT + + 12 + - - 48 AS col1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-276
SELECT DISTINCT - 98 - - 97 + + NULLIF ( + 3, - 25 ) * 1 + + + 73 + - ( + 80 ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT - 98 - - 97 + + NULLIF ( + 3, - 25 ) * 1 + + + 73 + - ( + 80 ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - 87 * + 43
----
-3741

query I rowsort
SELECT ALL 58 - 48 + + 43 * + + 79 * 37 AS col0
----
125699

query I rowsort
SELECT 12 * + - 83 + - 12 * - NULLIF ( - 89, - - 65 )
----
-2064

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT - 2 + - 21 DIV + 77
----
-2

skipif mysql # not compatible
query I rowsort label-280
SELECT - 2 + - 21 / + 77
----
-2

query I rowsort
SELECT ALL + 67 * + - 87
----
-5829

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

skipif mysql # not compatible
query I rowsort label-282
SELECT 76 / + COUNT ( * ) col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-283
SELECT ( + CASE AVG ( - 67 ) WHEN - - COALESCE ( - + 76, 36 * 32 ) THEN + COALESCE ( + 80, + ( + - COUNT( * ) ) ) * ( ( + CASE - 4 WHEN + MIN( ALL ( + 56 ) ) THEN NULL WHEN - 38 / ( + ( - COUNT( * ) ) / - 39 ) THEN NULL WHEN 17 * 94 THEN ( - 77 ) WHEN + 56 THEN 50 * 91 ELSE NULL END ) ) * - COUNT( 98 ) + - 28 END ) * 32
----
NULL

skipif mysql # not compatible
query I rowsort label-283
SELECT ( + CASE AVG ( - 67 ) WHEN - - COALESCE ( - + 76, 36 * 32 ) THEN + COALESCE ( + 80, + ( + - COUNT ( * ) ) ) * ( ( + CASE - 4 WHEN + MIN ( ALL ( + 56 ) ) THEN NULL WHEN - 38 / ( + ( - COUNT ( * ) ) / - 39 ) THEN NULL WHEN 17 * 94 THEN ( - 77 ) WHEN + 56 THEN 50 * 91 ELSE NULL END ) ) * - COUNT ( 98 ) + - 28 END ) * 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-284
SELECT 83 + + CAST( NULL AS SIGNED ) / - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-284
SELECT 83 + + CAST ( NULL AS INTEGER ) / - 44
----
NULL

query I rowsort
SELECT DISTINCT + 49 * 42
----
2058

query I rowsort
SELECT ALL - 21 col2
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-287
SELECT ALL - 92 AS col2, + 99 * COALESCE ( - + COUNT( + + 58 ), + 96 ) + - 29 * + 12
----
-92
-447

skipif mysql # not compatible
query II rowsort label-287
SELECT ALL - 92 AS col2, + 99 * COALESCE ( - + COUNT ( + + 58 ), + 96 ) + - 29 * + 12
----
-92
-447

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-288
SELECT ALL CAST( NULL AS DECIMAL ) * 65 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL CAST ( NULL AS REAL ) * 65 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT 66 DIV - 91
----
0

skipif mysql # not compatible
query I rowsort label-289
SELECT 66 / - 91
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT DISTINCT - COALESCE ( COALESCE ( - 52, ( 21 ) * - + 90, - COUNT( * ) ), - 84 )
----
52

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT - COALESCE ( COALESCE ( - 52, ( 21 ) * - + 90, - COUNT ( * ) ), - 84 )
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-292
SELECT DISTINCT + NULLIF ( - 64, - 36 ) + - 41 AS col2, CAST( NULL AS SIGNED )
----
-105
NULL

skipif mysql # not compatible
query II rowsort label-292
SELECT DISTINCT + NULLIF ( - 64, - 36 ) + - 41 AS col2, CAST ( NULL AS INTEGER )
----
-105
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-293
SELECT + ( + 77 ) * + 7 * 69 + + + 58 + + + CASE + COUNT( * ) WHEN 26 - + 17 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN + 90 * + COALESCE ( 32, + NULLIF ( - 43, + COUNT( * ) * + 22 ) + + 61, CASE + 51 WHEN 70 THEN NULL WHEN - 12 THEN - 35 + + CAST( NULL AS SIGNED ) END, 82 ) * MAX( ALL 45 ) + + 78 WHEN - 79 THEN NULL ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT + ( + 77 ) * + 7 * 69 + + + 58 + + + CASE + COUNT ( * ) WHEN 26 - + 17 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN + 90 * + COALESCE ( 32, + NULLIF ( - 43, + COUNT ( * ) * + 22 ) + + 61, CASE + 51 WHEN 70 THEN NULL WHEN - 12 THEN - 35 + + CAST ( NULL AS INTEGER ) END, 82 ) * MAX ( ALL 45 ) + + 78 WHEN - 79 THEN NULL ELSE NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL - NULLIF ( - - COUNT( * ), + 60 / + - 79 * + 30 )
----
-1

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL - NULLIF ( - - COUNT ( * ), + 60 / + - 79 * + 30 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT + 86 * + 2 + - MAX( + 89 )
----
83

skipif mysql # not compatible
query I rowsort label-295
SELECT + 86 * + 2 + - MAX ( + 89 )
----
83

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

query II rowsort
SELECT 13 AS col2, 57 * + - 43
----
13
-2451

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT 81 + + - 69 * 87 + COUNT( ALL - 84 ) - + COUNT( * ) * + 89
----
-6010

skipif mysql # not compatible
query I rowsort label-298
SELECT 81 + + - 69 * 87 + COUNT ( ALL - 84 ) - + COUNT ( * ) * + 89
----
-6010

query I rowsort
SELECT ALL + 33 * - + 59
----
-1947

query II rowsort
SELECT ALL + 60 + + - 93 + + 88 col0, + 59
----
55
59

query I rowsort
SELECT DISTINCT - 5 + - 41 * - - 76
----
-3121

onlyif mysql # aggregate syntax: 
query II rowsort label-302
SELECT ALL 42 + 78 + - 32 AS col0, COUNT( * ) * 72
----
88
72

skipif mysql # not compatible
query II rowsort label-302
SELECT ALL 42 + 78 + - 32 AS col0, COUNT ( * ) * 72
----
88
72

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT - - 13 * MIN( 8 ) + + 41 + + 77 + - 26
----
196

skipif mysql # not compatible
query I rowsort label-303
SELECT - - 13 * MIN ( 8 ) + + 41 + + 77 + - 26
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT COUNT( ALL 27 ) + + 2
----
3

skipif mysql # not compatible
query I rowsort label-304
SELECT COUNT ( ALL 27 ) + + 2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-305
SELECT + - COALESCE ( - 78, - ( + ( 26 ) ) DIV - 59, - 94 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-305
SELECT + - COALESCE ( - 78, - ( + ( 26 ) ) / - 59, - 94 ) AS col2
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT - 14 * + 87 * + - 34 + + 46 * + ( 53 ) * + COUNT( * ) + - + 95 * 72 - 36
----
36974

skipif mysql # not compatible
query I rowsort label-307
SELECT - 14 * + 87 * + - 34 + + 46 * + ( 53 ) * + COUNT ( * ) + - + 95 * 72 - 36
----
36974

query I rowsort
SELECT 78 - - 60 col1
----
138

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + COUNT( * ) + + + 30 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-310
SELECT + COUNT ( * ) + + + 30 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT - COUNT( * ) * 87 - + COUNT( * ) - 10 * - 7 * 8
----
472

skipif mysql # not compatible
query I rowsort label-311
SELECT - COUNT ( * ) * 87 - + COUNT ( * ) - 10 * - 7 * 8
----
472

query I rowsort
SELECT DISTINCT - 2 - - - 28 * + 21 - + - 56 AS col0
----
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT ALL SUM( DISTINCT + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-313
SELECT ALL SUM ( DISTINCT + 78 ) AS col2
----
78

query I rowsort
SELECT - 59 + + 81
----
22

query I rowsort
SELECT + 73 + + 64
----
137

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT + CASE + ( + - 18 ) WHEN + 0 + + SUM( + 35 ) + + CASE - MIN( + 28 ) WHEN - + COUNT( * ) THEN - + 60 WHEN + - 62 * 20 + + - ( + CASE + 62 WHEN 25 + - + 40 THEN NULL WHEN - ( - COUNT( * ) ) THEN NULL ELSE 34 * + 77 + - 21 END ) THEN + 53 / + 59 WHEN 43 THEN NULL END THEN - COUNT( * ) END * 61 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-316
SELECT + CASE + ( + - 18 ) WHEN + 0 + + SUM ( + 35 ) + + CASE - MIN ( + 28 ) WHEN - + COUNT ( * ) THEN - + 60 WHEN + - 62 * 20 + + - ( + CASE + 62 WHEN 25 + - + 40 THEN NULL WHEN - ( - COUNT ( * ) ) THEN NULL ELSE 34 * + 77 + - 21 END ) THEN + 53 / + 59 WHEN 43 THEN NULL END THEN - COUNT ( * ) END * 61 AS col0
----
NULL

query I rowsort
SELECT DISTINCT 52 * - - 56
----
2912

query I rowsort
SELECT 26 * - - 38
----
988

query II rowsort
SELECT - + NULLIF ( + - 85, - 45 ), + 40 AS col2
----
85
40

onlyif mysql # aggregate syntax: 
query I rowsort label-320
SELECT 86 + COUNT( * ) * + COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-320
SELECT 86 + COUNT ( * ) * + COUNT ( * )
----
87

query I rowsort
SELECT ALL ( + 30 ) * + + 43 AS col2
----
1290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-322
SELECT ALL - 90 + - CAST( + CASE + 92 WHEN - COALESCE ( - + 53, + + 11 + + 74, + 71 ) + - 50 THEN - + 77 END AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - 90 + - CAST ( + CASE + 92 WHEN - COALESCE ( - + 53, + + 11 + + 74, + 71 ) + - 50 THEN - + 77 END AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-323
SELECT - SUM( + 4 ) AS col1, 40
----
-4
40

skipif mysql # not compatible
query II rowsort label-323
SELECT - SUM ( + 4 ) AS col1, 40
----
-4
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-324
SELECT CAST( + + 59 AS SIGNED ) + - ( 23 ) AS col1
----
36

skipif mysql # not compatible
query I rowsort label-324
SELECT CAST ( + + 59 AS INTEGER ) + - ( 23 ) AS col1
----
36

query I rowsort
SELECT DISTINCT + 18 * COALESCE ( + 24, + 92 )
----
432

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-326
SELECT COALESCE ( + CAST( NULL AS SIGNED ), - 29 + - + 96, + CAST( NULL AS SIGNED ) + - - COUNT( * ) ) DIV 12 - - + 63 AS col1
----
53

skipif mysql # not compatible
query I rowsort label-326
SELECT COALESCE ( + CAST ( NULL AS INTEGER ), - 29 + - + 96, + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) ) / 12 - - + 63 AS col1
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-327
SELECT ALL - ( - + CASE - 33 WHEN - CASE - 14 WHEN - - 58 / + - ( + ( - 4 ) ) + - CASE 44 WHEN + 61 THEN NULL ELSE - + NULLIF ( + 26, 86 + - 50 ) END + - - 88 THEN 25 * - CAST( - 29 AS SIGNED ) * - 78 + 58 ELSE NULL END THEN - 15 END ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-327
SELECT ALL - ( - + CASE - 33 WHEN - CASE - 14 WHEN - - 58 / + - ( + ( - 4 ) ) + - CASE 44 WHEN + 61 THEN NULL ELSE - + NULLIF ( + 26, 86 + - 50 ) END + - - 88 THEN 25 * - CAST ( - 29 AS INTEGER ) * - 78 + 58 ELSE NULL END THEN - 15 END ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-328
SELECT ALL 44 * 6 * CAST( + 52 AS SIGNED ) + - - 98
----
13826

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL 44 * 6 * CAST ( + 52 AS INTEGER ) + - - 98
----
13826

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-329
SELECT DISTINCT 13 * + 14 + - - 24 + 76 * 62 DIV - COALESCE ( - ( COUNT( 90 ) ), + ( + - 17 ) * + - CASE - + 64 WHEN + AVG ( + CASE - 87 WHEN + 26 THEN + 64 END ) THEN 53 WHEN - 91 + - COUNT( * ) * COUNT( * ) THEN - 34 WHEN 4 THEN NULL END * + 73 + 69, + 96 ) AS col1
----
4918

skipif mysql # not compatible
query I rowsort label-329
SELECT DISTINCT 13 * + 14 + - - 24 + 76 * 62 / - COALESCE ( - ( COUNT ( 90 ) ), + ( + - 17 ) * + - CASE - + 64 WHEN + AVG ( + CASE - 87 WHEN + 26 THEN + 64 END ) THEN 53 WHEN - 91 + - COUNT ( * ) * COUNT ( * ) THEN - 34 WHEN 4 THEN NULL END * + 73 + 69, + 96 ) AS col1
----
4918

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 7 + - 63 + - COUNT( * ) * + COALESCE ( - ( - 81 ), - 75 ) + - 53 * - 91 * + COUNT( * ) + - COUNT( * ) * 50
----
4636

skipif mysql # not compatible
query I rowsort label-330
SELECT 7 + - 63 + - COUNT ( * ) * + COALESCE ( - ( - 81 ), - 75 ) + - 53 * - 91 * + COUNT ( * ) + - COUNT ( * ) * 50
----
4636

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT 29 * - - SUM( ALL 17 ) + 88
----
581

skipif mysql # not compatible
query I rowsort label-331
SELECT 29 * - - SUM ( ALL 17 ) + 88
----
581

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

query I rowsort
SELECT - 81 * - ( + 65 ) AS col0
----
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-334
SELECT 72 * + + COUNT( ALL + - 6 ) * 76 + NULLIF ( - - 96, + 57 * - 33 * - COUNT( DISTINCT 91 ) ) col1
----
5568

skipif mysql # not compatible
query I rowsort label-334
SELECT 72 * + + COUNT ( ALL + - 6 ) * 76 + NULLIF ( - - 96, + 57 * - 33 * - COUNT ( DISTINCT 91 ) ) col1
----
5568

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT 16 * + 64 + - + ( - + ( + - MAX( + 30 ) ) )
----
994

skipif mysql # not compatible
query I rowsort label-335
SELECT 16 * + 64 + - + ( - + ( + - MAX ( + 30 ) ) )
----
994

query I rowsort
SELECT DISTINCT + + 20 - + 68 AS col0
----
-48

query I rowsort
SELECT 93 + 9 - + - 83 * - + 63 * - 6
----
31476

query I rowsort
SELECT - - 53 * + ( - - 97 ) AS col2
----
5141

query I rowsort
SELECT DISTINCT + + 45 * 48
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT + + COUNT( * ) - + ( 26 )
----
-25

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT + + COUNT ( * ) - + ( 26 )
----
-25

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-342
SELECT ALL + 9 * + CAST( - + COUNT( * ) AS SIGNED ) DIV + + 11 + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-342
SELECT ALL + 9 * + CAST ( - + COUNT ( * ) AS INTEGER ) / + + 11 + + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-343
SELECT DISTINCT 79 - - 53 + 41 * COALESCE ( - - 22, + + NULLIF ( SUM( DISTINCT - 52 ), - 54 ), - COALESCE ( - 53, + 63 ) ) AS col1, 80 * + + COUNT( * ) + COUNT( * ) AS col2
----
1034
81

skipif mysql # not compatible
query II rowsort label-343
SELECT DISTINCT 79 - - 53 + 41 * COALESCE ( - - 22, + + NULLIF ( SUM ( DISTINCT - 52 ), - 54 ), - COALESCE ( - 53, + 63 ) ) AS col1, 80 * + + COUNT ( * ) + COUNT ( * ) AS col2
----
1034
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - COUNT( * ) - + + ( + 36 ) * + COUNT( 82 ) * 81 * 81 * - + 85
----
20076659

skipif mysql # not compatible
query I rowsort label-345
SELECT - COUNT ( * ) - + + ( + 36 ) * + COUNT ( 82 ) * 81 * 81 * - + 85
----
20076659

query I rowsort
SELECT + ( + 98 ) * - 60 col2
----
-5880

query I rowsort
SELECT - 37 + + - 88 AS col1
----
-125

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

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

query I rowsort
SELECT ALL 15 + - 52
----
-37

query I rowsort
SELECT + 21 - - + 35 * - 25 + + 17
----
-837

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT ALL - 31 DIV - 21 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL - 31 / - 21 AS col1
----
1

query I rowsort
SELECT DISTINCT + 77 + - 58 AS col1
----
19

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

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

query I rowsort
SELECT ALL 79 + 91 AS col0
----
170

query I rowsort
SELECT - 85 * - 17
----
1445

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT - NULLIF ( + 76, - COUNT( * ) * 16 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-357
SELECT - NULLIF ( + 76, - COUNT ( * ) * 16 ) AS col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-358
SELECT - 3 DIV - 20
----
0

skipif mysql # not compatible
query I rowsort label-358
SELECT - 3 / - 20
----
0

query I rowsort
SELECT + 43 - 22 col0
----
21

query I rowsort
SELECT + COALESCE ( - + 56, 17 * + - 16 )
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT ALL + CASE ( 71 ) WHEN + 48 THEN - CASE SUM( 80 ) WHEN 20 * + 61 THEN 66 / 51 + - + 72 ELSE 68 * 93 END ELSE NULL END * + 73 + + 33 + 41 - 79 + - + 65 + - + 37 * + 9 / 32 * 23 + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-361
SELECT ALL + CASE ( 71 ) WHEN + 48 THEN - CASE SUM ( 80 ) WHEN 20 * + 61 THEN 66 / 51 + - + 72 ELSE 68 * 93 END ELSE NULL END * + 73 + + 33 + 41 - 79 + - + 65 + - + 37 * + 9 / 32 * 23 + - 71
----
NULL

query I rowsort
SELECT + 49 * - 33 AS col2
----
-1617

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

query II rowsort
SELECT ALL + 46, + 40 + - + 32 + + 87 + + 26 AS col0
----
46
121

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - 95 * 72 - - COUNT( * )
----
-6839

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - 95 * 72 - - COUNT ( * )
----
-6839

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-367
SELECT 61 * COUNT( + 10 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-367
SELECT 61 * COUNT ( + 10 ) + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-368
SELECT - + 76 DIV NULLIF ( + 81, 25 * + 89 * 41 * - - 74 ) + - 66 + + 95 + - MIN( DISTINCT - 67 ) col0
----
96

skipif mysql # not compatible
query I rowsort label-368
SELECT - + 76 / NULLIF ( + 81, 25 * + 89 * 41 * - - 74 ) + - 66 + + 95 + - MIN ( DISTINCT - 67 ) col0
----
96

query I rowsort
SELECT - 53 * - 61 + 26 - 72
----
3187

query I rowsort
SELECT + + CASE WHEN NOT ( ( - 63 ) = ( NULL ) ) THEN + 20 * - + CASE - 72 WHEN - + 80 THEN 55 END END AS col2
----
NULL

query I rowsort
SELECT - - 61 * - 62 + - COALESCE ( ( - 43 ), + 62 + 55 + ( 3 ) ) + - 40 * + + 43 - - + 23 + - - CASE - 78 WHEN + 87 THEN NULL WHEN + 83 + - 95 + + + 64 - - 20 - - ( - AVG ( 71 ) ) - 69 * 22 * + 39 * 36 THEN NULL ELSE + 7 END
----
-5429

query II rowsort
SELECT DISTINCT + 38 AS col0, - 18 AS col0
----
38
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-373
SELECT ALL + COALESCE ( - 97, - 10 ) * + COUNT( * ) * COUNT( * ) + + 13 AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-373
SELECT ALL + COALESCE ( - 97, - 10 ) * + COUNT ( * ) * COUNT ( * ) + + 13 AS col2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - 47 * - + 83 + + MIN( + + 98 ) AS col1
----
3999

skipif mysql # not compatible
query I rowsort label-374
SELECT - 47 * - + 83 + + MIN ( + + 98 ) AS col1
----
3999

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-375
SELECT DISTINCT - 22 DIV 21 + + 54 - - + 76 * COUNT( * ) DIV + + 77
----
53

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - 22 / 21 + + 54 - - + 76 * COUNT ( * ) / + + 77
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT - COUNT( * ) + - - 40 - + CASE 17 WHEN - + 41 + + 74 - 68 / + - 47 + + 13 + + 69 THEN NULL WHEN 84 THEN 87 END * MIN( ALL + + ( ( - - 17 ) ) ) + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-376
SELECT - COUNT ( * ) + - - 40 - + CASE 17 WHEN - + 41 + + 74 - 68 / + - 47 + + 13 + + 69 THEN NULL WHEN 84 THEN 87 END * MIN ( ALL + + ( ( - - 17 ) ) ) + 67 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-377
SELECT + CAST( - COUNT( * ) AS SIGNED ) DIV + 41 * + + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-377
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) / + 41 * + + 74 AS col0
----
0

query II rowsort
SELECT + 94 + + 16 * + 14 AS col2, 95 AS col0
----
318
95

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

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

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

query I rowsort
SELECT - - 23 + - 22 AS col1
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-383
SELECT + NULLIF ( 93, - 1 * + 59 * - COUNT( * ) + 6 ) AS col2, 2
----
93
2

skipif mysql # not compatible
query II rowsort label-383
SELECT + NULLIF ( 93, - 1 * + 59 * - COUNT ( * ) + 6 ) AS col2, 2
----
93
2

query I rowsort
SELECT - + 48 * - 29 + - - ( 94 ) AS col0
----
1486

query I rowsort
SELECT DISTINCT + 91 + 39 * 23 AS col2
----
988

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-386
SELECT DISTINCT CAST( NULL AS SIGNED ), CASE + 3 WHEN + 86 THEN COUNT( * ) ELSE - + 57 END * + COALESCE ( - MIN( ALL 90 ), + - 13 * + 10 ) AS col0
----
NULL
5130

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT CAST ( NULL AS INTEGER ), CASE + 3 WHEN + 86 THEN COUNT ( * ) ELSE - + 57 END * + COALESCE ( - MIN ( ALL 90 ), + - 13 * + 10 ) AS col0
----
NULL
5130

query I rowsort
SELECT - 62 * - 99 AS col2
----
6138

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

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

query I rowsort
SELECT ALL 26 + 86 * - 12 + + 4 + + - 91
----
-1093

query I rowsort
SELECT - 32 * 58 * 20
----
-37120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-391
SELECT DISTINCT CAST( ( 94 ) AS SIGNED ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT CAST ( ( 94 ) AS INTEGER ) AS col1
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-392
SELECT + 25 + 4 + - + CASE - + ( + COUNT( * ) ) WHEN - 30 THEN - 59 * - + 57 + 10 * - + 69 WHEN 36 + CAST( NULL AS SIGNED ) THEN NULL ELSE + + ( + 67 ) * - 85 END AS col0
----
5724

skipif mysql # not compatible
query I rowsort label-392
SELECT + 25 + 4 + - + CASE - + ( + COUNT ( * ) ) WHEN - 30 THEN - 59 * - + 57 + 10 * - + 69 WHEN 36 + CAST ( NULL AS INTEGER ) THEN NULL ELSE + + ( + 67 ) * - 85 END AS col0
----
5724

onlyif mysql # DIV for integer division: 
query II rowsort label-393
SELECT - 42 DIV - 56 * + - 46 + 13 AS col0, 6 + - + 66 AS col0
----
13
-60

skipif mysql # not compatible
query II rowsort label-393
SELECT - 42 / - 56 * + - 46 + 13 AS col0, 6 + - + 66 AS col0
----
13
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT ALL + 18 DIV + - 67 - - 93 + + 94 * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-394
SELECT ALL + 18 / + - 67 - - 93 + + 94 * - 1
----
-1

query I rowsort
SELECT + 95 + + 81
----
176

onlyif mysql # DIV for integer division: 
query I rowsort label-396
SELECT + 54 DIV + 27 AS col2
----
2

skipif mysql # not compatible
query I rowsort label-396
SELECT + 54 / + 27 AS col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-397
SELECT + 99 * + 51 + + COUNT( * ) + + 59 * + - 16 + 67 + + + CASE WHEN NULL > 89 THEN NULL WHEN NULL BETWEEN - COUNT( * ) AND - 29 THEN + ( - 1 ) * + 64 / ( - + ( - - 27 ) ) * - - 16 - - - AVG ( DISTINCT + - 79 ) + 52 WHEN NOT 5 <= COUNT( * ) THEN NULL END * + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-397
SELECT + 99 * + 51 + + COUNT ( * ) + + 59 * + - 16 + 67 + + + CASE WHEN NULL > 89 THEN NULL WHEN NULL BETWEEN - COUNT ( * ) AND - 29 THEN + ( - 1 ) * + 64 / ( - + ( - - 27 ) ) * - - 16 - - - AVG ( DISTINCT + - 79 ) + 52 WHEN NOT 5 <= COUNT ( * ) THEN NULL END * + 75
----
NULL

query II rowsort
SELECT ALL - 35, 46 AS col2
----
-35
46

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

query I rowsort
SELECT 76 * + 72 - + + 66 AS col1
----
5406

query II rowsort
SELECT + 81, 1 * - ( - 42 ) * + 52 AS col0
----
81
2184

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

query I rowsort
SELECT 35 * - 46 AS col1
----
-1610

query I rowsort
SELECT + 62 + + 89
----
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-405
SELECT ALL - + 36 AS col0, + COUNT( * ) + + CAST( - MIN( - + 5 ) AS SIGNED ) AS col0
----
-36
6

skipif mysql # not compatible
query II rowsort label-405
SELECT ALL - + 36 AS col0, + COUNT ( * ) + + CAST ( - MIN ( - + 5 ) AS INTEGER ) AS col0
----
-36
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-406
SELECT CAST( NULL AS SIGNED ) + 25 + - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-406
SELECT CAST ( NULL AS INTEGER ) + 25 + - 12
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-407
SELECT DISTINCT - COALESCE ( + - 99, - 93 - 55 * + 84 * - - 58 + + 82, + 88 DIV 27 + + - COUNT( * ) DIV + + 57 ), 54 AS col2
----
99
54

skipif mysql # not compatible
query II rowsort label-407
SELECT DISTINCT - COALESCE ( + - 99, - 93 - 55 * + 84 * - - 58 + + 82, + 88 / 27 + + - COUNT ( * ) / + + 57 ), 54 AS col2
----
99
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-408
SELECT ALL 3 + - 99 * - CASE - ( ( 87 ) ) WHEN - + 36 + + + NULLIF ( - - 45, + - 20 * 23 + - - 44 ) THEN - 41 * 50 WHEN COUNT( * ) + + AVG ( - 88 ) * + 3 + + + ( + + COUNT( * ) ) THEN NULL END + + 53 + + CAST( + 88 - COUNT( * ) / - 40 AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-408
SELECT ALL 3 + - 99 * - CASE - ( ( 87 ) ) WHEN - + 36 + + + NULLIF ( - - 45, + - 20 * 23 + - - 44 ) THEN - 41 * 50 WHEN COUNT ( * ) + + AVG ( - 88 ) * + 3 + + + ( + + COUNT ( * ) ) THEN NULL END + + 53 + + CAST ( + 88 - COUNT ( * ) / - 40 AS REAL ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-409
SELECT DISTINCT + 38 + + MIN( ALL + 60 ) DIV 36 AS col0, COUNT( * ) - - 91 col1
----
39
92

skipif mysql # not compatible
query II rowsort label-409
SELECT DISTINCT + 38 + + MIN ( ALL + 60 ) / 36 AS col0, COUNT ( * ) - - 91 col1
----
39
92

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

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

query I rowsort
SELECT ALL + 16 + + - 94 AS col1
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-412
SELECT 50 DIV - COALESCE ( - COUNT( * ), - + 35 * - + 13 - + + COUNT( * ) + 26 ) + - - 50 col2
----
100

skipif mysql # not compatible
query I rowsort label-412
SELECT 50 / - COALESCE ( - COUNT ( * ), - + 35 * - + 13 - + + COUNT ( * ) + 26 ) + - - 50 col2
----
100

query I rowsort
SELECT ALL 4 + + - 69 col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT CASE 16 WHEN - 20 THEN COUNT( * ) * - 28 + 27 ELSE NULL END * - + 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-414
SELECT CASE 16 WHEN - 20 THEN COUNT ( * ) * - 28 + 27 ELSE NULL END * - + 56 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-415
SELECT ( + 79 ) + - 94 - - COUNT( * ) * - 82 * + 11 * COUNT( - 12 ) AS col0, 88
----
-917
88

skipif mysql # not compatible
query II rowsort label-415
SELECT ( + 79 ) + - 94 - - COUNT ( * ) * - 82 * + 11 * COUNT ( - 12 ) AS col0, 88
----
-917
88

onlyif mysql # aggregate syntax: 
query I rowsort label-416
SELECT 85 + - + ( - SUM( + 0 ) )
----
85

skipif mysql # not compatible
query I rowsort label-416
SELECT 85 + - + ( - SUM ( + 0 ) )
----
85

query I rowsort
SELECT DISTINCT - 97 * - + 78 * - 41 AS col0
----
-310206

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

query I rowsort
SELECT 36 * - ( - 82 ) AS col1
----
2952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-420
SELECT 26 * + CASE + + CAST( NULL AS SIGNED ) WHEN + + 31 THEN NULL WHEN + 90 * 68 - + 47 * - - 42 THEN - ( - COUNT( * ) ) ELSE NULL END col1, - 95 DIV + CAST( + 67 AS SIGNED )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-420
SELECT 26 * + CASE + + CAST ( NULL AS INTEGER ) WHEN + + 31 THEN NULL WHEN + 90 * 68 - + 47 * - - 42 THEN - ( - COUNT ( * ) ) ELSE NULL END col1, - 95 / + CAST ( + 67 AS INTEGER )
----
NULL
-1

query I rowsort
SELECT ALL - - 44 col2
----
44

query I rowsort
SELECT DISTINCT + 55 * + 59 * + 40
----
129800

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT - 1 + - COALESCE ( - COUNT( * ), + 48 * - COALESCE ( - COUNT( * ), - 37 ) - + ( - + 33 ) + - + 87, + - 53, + - 2 ) + COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-423
SELECT - 1 + - COALESCE ( - COUNT ( * ), + 48 * - COALESCE ( - COUNT ( * ), - 37 ) - + ( - + 33 ) + - + 87, + - 53, + - 2 ) + COUNT ( * ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT + 10 * 58 DIV - 72 + ( 6 ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-424
SELECT + 10 * 58 / - 72 + ( 6 ) AS col1
----
-2

query I rowsort
SELECT ALL + + 71 * + 89
----
6319

query I rowsort
SELECT ALL - - ( - 36 )
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-427
SELECT COALESCE ( - 9, + 7 ) * + CAST( + AVG ( 75 ) AS SIGNED ) AS col1
----
-675

skipif mysql # not compatible
query I rowsort label-427
SELECT COALESCE ( - 9, + 7 ) * + CAST ( + AVG ( 75 ) AS INTEGER ) AS col1
----
-675

onlyif mysql # aggregate syntax: 
query II rowsort label-428
SELECT COUNT( * ) * - 44 + + + 23 * - + 92 + - + 89 * - + ( 88 ), + 94 * - 23 AS col0
----
5672
-2162

skipif mysql # not compatible
query II rowsort label-428
SELECT COUNT ( * ) * - 44 + + + 23 * - + 92 + - + 89 * - + ( 88 ), + 94 * - 23 AS col0
----
5672
-2162

query I rowsort
SELECT CASE - 31 WHEN - 32 + 72 + + - ( 74 ) * + - 65 THEN + - 51 WHEN + - 44 + + 42 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-430
SELECT COUNT( * ) DIV + 55 AS col2, ( - 91 ) + - 82 + ( + 31 ) AS col2
----
0
-142

skipif mysql # not compatible
query II rowsort label-430
SELECT COUNT ( * ) / + 55 AS col2, ( - 91 ) + - 82 + ( + 31 ) AS col2
----
0
-142

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-431
SELECT ALL + 61 + - - 15 DIV - + MIN( ALL + ( - - 47 ) ) * + 62
----
61

skipif mysql # not compatible
query I rowsort label-431
SELECT ALL + 61 + - - 15 / - + MIN ( ALL + ( - - 47 ) ) * + 62
----
61

query II rowsort
SELECT - ( 47 ) AS col0, + 22 AS col1
----
-47
22

onlyif mysql # DIV for integer division: 
query II rowsort label-433
SELECT 50 + - 91 DIV 62, 32 AS col2
----
49
32

skipif mysql # not compatible
query II rowsort label-433
SELECT 50 + - 91 / 62, 32 AS col2
----
49
32

query I rowsort
SELECT + + 93 col2
----
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-435
SELECT ALL 29 + - ( 6 ) + 33 * + 0 DIV + 24 + - COUNT( * ) + 14 + - 28 + 37 * - ( - - 62 ) * 76 * + 27
----
-4707280

skipif mysql # not compatible
query I rowsort label-435
SELECT ALL 29 + - ( 6 ) + 33 * + 0 / + 24 + - COUNT ( * ) + 14 + - 28 + 37 * - ( - - 62 ) * 76 * + 27
----
-4707280

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT + 87 * - - CASE 63 WHEN 99 THEN - COUNT( * ) END + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-436
SELECT + 87 * - - CASE 63 WHEN 99 THEN - COUNT ( * ) END + 77
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT - - ( CAST ( NULL AS INTEGER ) ) + - - 1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT ALL + 9 + + - 22 + - 65 DIV - 76 AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-439
SELECT ALL + 9 + + - 22 + - 65 / - 76 AS col0
----
-13

query I rowsort
SELECT 19 + 10
----
29

query I rowsort
SELECT ALL - 34 + + 38
----
4

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-444
SELECT COALESCE ( 49, COUNT( * ) ) * COUNT( * ) DIV - 85 * - + 90 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-444
SELECT COALESCE ( 49, COUNT ( * ) ) * COUNT ( * ) / - 85 * - + 90 AS col0
----
0

query I rowsort
SELECT ALL 98 * 64 AS col2
----
6272

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-446
SELECT COALESCE ( 53, + COUNT( * ) ) * - COUNT( * ) + - 18 * + - ( + - 46 ) + + ( - 65 ) + + + 30 * MAX( ALL + 38 ) / 97 + - CASE 97 WHEN CASE - 87 WHEN + 69 * - - 69 THEN + MIN( - 13 ) * - 74 + + 99 WHEN 79 THEN + ( CAST( 61 AS SIGNED ) ) ELSE - 57 END THEN NULL WHEN + 3 THEN + 83 + + 27 WHEN 29 / 86 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT COALESCE ( 53, + COUNT ( * ) ) * - COUNT ( * ) + - 18 * + - ( + - 46 ) + + ( - 65 ) + + + 30 * MAX ( ALL + 38 ) / 97 + - CASE 97 WHEN CASE - 87 WHEN + 69 * - - 69 THEN + MIN ( - 13 ) * - 74 + + 99 WHEN 79 THEN + ( CAST ( 61 AS INTEGER ) ) ELSE - 57 END THEN NULL WHEN + 3 THEN + 83 + + 27 WHEN 29 / 86 THEN NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT ALL SUM( + - 28 ) - 98 AS col1
----
-126

skipif mysql # not compatible
query I rowsort label-447
SELECT ALL SUM ( + - 28 ) - 98 AS col1
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-448
SELECT CASE - 20 WHEN 67 THEN - 76 / + 29 + - - COUNT( DISTINCT - - 53 ) END * + COUNT( * ), 36 + + 28 + 50 * + 98 + 99 + + + 34 + ( 13 ) + + CAST( + NULLIF ( - - COUNT( * ), - 12 + + 49 / 57 * - 87 ) AS SIGNED ) * - 6 * CAST( NULL AS SIGNED ) * 97
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-448
SELECT CASE - 20 WHEN 67 THEN - 76 / + 29 + - - COUNT ( DISTINCT - - 53 ) END * + COUNT ( * ), 36 + + 28 + 50 * + 98 + 99 + + + 34 + ( 13 ) + + CAST ( + NULLIF ( - - COUNT ( * ), - 12 + + 49 / 57 * - 87 ) AS INTEGER ) * - 6 * CAST ( NULL AS INTEGER ) * 97
----
NULL
NULL

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

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

query II rowsort
SELECT DISTINCT 79 AS col0, 40
----
79
40

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT ALL COUNT( ( + 77 ) ) * COUNT( * ) + + ( - 44 ) * + + 57 * + 36 + 61 AS col2
----
-90226

skipif mysql # not compatible
query I rowsort label-451
SELECT ALL COUNT ( ( + 77 ) ) * COUNT ( * ) + + ( - 44 ) * + + 57 * + 36 + 61 AS col2
----
-90226

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

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

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

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

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

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

query I rowsort
SELECT ALL 90 - + 32 AS col2
----
58

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT ALL ( + MIN( DISTINCT - 25 ) ) DIV + + 79
----
0

skipif mysql # not compatible
query I rowsort label-457
SELECT ALL ( + MIN ( DISTINCT - 25 ) ) / + + 79
----
0

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

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

query I rowsort
SELECT + 25 * - + 25 AS col2
----
-625

query II rowsort
SELECT DISTINCT 55 col2, 84 - - 1
----
55
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT + NULLIF ( + 21, - - 90 * + 1 + - + SUM( + 81 ) ) * - 6 AS col2
----
-126

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + NULLIF ( + 21, - - 90 * + 1 + - + SUM ( + 81 ) ) * - 6 AS col2
----
-126

query I rowsort
SELECT + NULLIF ( + 54, + 71 + - 68 + + 18 + + + 93 * - 53 ) AS col0
----
54

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-465
SELECT + 47 * - 95 * NULLIF ( - - 39, - COUNT( * ) ) + + + COUNT( * ) AS col1, - 99
----
-174134
-99

skipif mysql # not compatible
query II rowsort label-465
SELECT + 47 * - 95 * NULLIF ( - - 39, - COUNT ( * ) ) + + + COUNT ( * ) AS col1, - 99
----
-174134
-99

query II rowsort
SELECT + 10 AS col1, - 0 AS col1
----
10
0

onlyif mysql # aggregate syntax: 
query II rowsort label-467
SELECT + - 72 AS col2, + 74 + - ( COUNT( * ) ) * - - COUNT( ( + 79 ) ) + + 54
----
-72
127

skipif mysql # not compatible
query II rowsort label-467
SELECT + - 72 AS col2, + 74 + - ( COUNT ( * ) ) * - - COUNT ( ( + 79 ) ) + + 54
----
-72
127

query I rowsort
SELECT - 30 + ( CASE 11 WHEN - - 39 THEN - + 10 + 95 * + + 52 * 38 END )
----
NULL

query I rowsort
SELECT DISTINCT - 69 * ( - 29 ) + - 62 AS col2
----
1939

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-470
SELECT - 74 DIV COALESCE ( - + CASE + 8 WHEN 44 THEN 12 + + 96 WHEN ( + COUNT( * ) ) THEN NULL END, 79 DIV 27, 85 * 52 ) * 78 + + 76 + + 32 + + COUNT( * )
----
-2777

skipif mysql # not compatible
query I rowsort label-470
SELECT - 74 / COALESCE ( - + CASE + 8 WHEN 44 THEN 12 + + 96 WHEN ( + COUNT ( * ) ) THEN NULL END, 79 / 27, 85 * 52 ) * 78 + + 76 + + 32 + + COUNT ( * )
----
-2777

query I rowsort
SELECT ALL 44 * - + 39 + + + ( 89 ) AS col2
----
-1627

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL - COUNT( * ) * - 52 + - 98 * + 60
----
-5828

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL - COUNT ( * ) * - 52 + - 98 * + 60
----
-5828

query II rowsort
SELECT ALL + + 85 col1, 5 * 98
----
85
490

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

query I rowsort
SELECT ALL - 89 * - 79 * + + 87
----
611697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT - 77 / + - CASE + CAST( NULL AS SIGNED ) WHEN - COUNT( * ) * 14 THEN - - 67 * + + COALESCE ( + 77, + - 55, 9 ) + CAST( NULL AS SIGNED ) * + ( + 14 ) + - - 70 * - 58 WHEN + + 53 THEN NULL WHEN 95 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-477
SELECT - 77 / + - CASE + CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) * 14 THEN - - 67 * + + COALESCE ( + 77, + - 55, 9 ) + CAST ( NULL AS INTEGER ) * + ( + 14 ) + - - 70 * - 58 WHEN + + 53 THEN NULL WHEN 95 THEN NULL END
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-479
SELECT 0 AS col0, 42 DIV - ( - ( - 71 ) ) AS col1
----
0
0

skipif mysql # not compatible
query II rowsort label-479
SELECT 0 AS col0, 42 / - ( - ( - 71 ) ) AS col1
----
0
0

query I rowsort
SELECT ALL + - 89 * 15
----
-1335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-481
SELECT DISTINCT 26 * + 38 - CAST( - 53 AS SIGNED ) col0
----
1041

skipif mysql # not compatible
query I rowsort label-481
SELECT DISTINCT 26 * + 38 - CAST ( - 53 AS INTEGER ) col0
----
1041

onlyif mysql # aggregate syntax: 
query I rowsort label-482
SELECT ALL + COUNT( * ) * - - 92 * - 35
----
-3220

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL + COUNT ( * ) * - - 92 * - 35
----
-3220

query I rowsort
SELECT ALL + 14 * - 16 * - 47 col1
----
10528

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

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

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

query I rowsort
SELECT DISTINCT ( - 33 ) AS col2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT - CASE - COALESCE ( + 41, 0, - 69 / + - COUNT( * ) * - COUNT( * ) + - 45 * - - 86 ) WHEN - 50 THEN 45 ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-487
SELECT - CASE - COALESCE ( + 41, 0, - 69 / + - COUNT ( * ) * - COUNT ( * ) + - 45 * - - 86 ) WHEN - 50 THEN 45 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-488
SELECT - CAST( + 64 AS SIGNED ) * - - 65 col1
----
-4160

skipif mysql # not compatible
query I rowsort label-488
SELECT - CAST ( + 64 AS INTEGER ) * - - 65 col1
----
-4160

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT + 2 * + COUNT( 22 )
----
2

skipif mysql # not compatible
query I rowsort label-489
SELECT + 2 * + COUNT ( 22 )
----
2

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

skipif mysql # not compatible
query I rowsort label-490
SELECT - NULLIF ( - + 10, + COUNT ( * ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-491
SELECT - 73 + - + SUM( - - 57 )
----
-130

skipif mysql # not compatible
query I rowsort label-491
SELECT - 73 + - + SUM ( - - 57 )
----
-130

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

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

query I rowsort
SELECT + 49 + ( - + ( + 70 ) ) AS col0
----
-21

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

query I rowsort
SELECT ALL 7 + + + 68 AS col2
----
75

query II rowsort
SELECT + 36 * - + 81, 15 col2
----
-2916
15

query I rowsort
SELECT DISTINCT 42 + ( 70 ) AS col1
----
112

query I rowsort
SELECT DISTINCT 60 + + + 17 AS col0
----
77

query I rowsort
SELECT ALL 62 + + - 65 - + + 62 AS col2
----
-65

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

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

query I rowsort
SELECT + + 14 * 10 * - - 66
----
9240

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-503
SELECT ALL + 34 + - - 4 col2, 38 + 72 - COUNT( * ) AS col1, 99 AS col0
----
38
109
99

skipif mysql # not compatible
query III rowsort label-503
SELECT ALL + 34 + - - 4 col2, 38 + 72 - COUNT ( * ) AS col1, 99 AS col0
----
38
109
99

query I rowsort
SELECT ALL + ( - - 86 ) AS col1
----
86

query I rowsort
SELECT - + 15 + + 79 AS col0
----
64

onlyif mysql # aggregate syntax: 
query II rowsort label-506
SELECT ALL - NULLIF ( + + 46, + + 3 ) * + 45 * - 64 - + + 13 * + NULLIF ( 31, + - 83 ) * - NULLIF ( + 95, + COUNT( * ) ), - ( + + 26 ) + + - COUNT( ALL 8 ) AS col2
----
170765
-27

skipif mysql # not compatible
query II rowsort label-506
SELECT ALL - NULLIF ( + + 46, + + 3 ) * + 45 * - 64 - + + 13 * + NULLIF ( 31, + - 83 ) * - NULLIF ( + 95, + COUNT ( * ) ), - ( + + 26 ) + + - COUNT ( ALL 8 ) AS col2
----
170765
-27

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT + 28 * + COUNT( + 59 ) * - + 62 - - + 16 / ( CASE - 66 WHEN ( + 65 ) - + CASE COUNT( * ) WHEN 52 THEN NULL WHEN - + 98 THEN NULL ELSE - 88 END * - CAST( - - 7 AS SIGNED ) + + 0 + + + 2 + + + COUNT( * ) + - ( - COUNT( * ) ) * 71 * ( 69 ) + 36 * + AVG ( + 19 ) THEN ( ( 54 ) ) + 44 * 88 END ) * - COUNT( - 28 + 5 * + 87 ) + 92 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT + 28 * + COUNT ( + 59 ) * - + 62 - - + 16 / ( CASE - 66 WHEN ( + 65 ) - + CASE COUNT ( * ) WHEN 52 THEN NULL WHEN - + 98 THEN NULL ELSE - 88 END * - CAST ( - - 7 AS INTEGER ) + + 0 + + + 2 + + + COUNT ( * ) + - ( - COUNT ( * ) ) * 71 * ( 69 ) + 36 * + AVG ( + 19 ) THEN ( ( 54 ) ) + 44 * 88 END ) * - COUNT ( - 28 + 5 * + 87 ) + 92 AS col1
----
NULL

query I rowsort
SELECT - - 7 - - 27 col0
----
34

query I rowsort
SELECT - 35 * 77 * + - 20
----
53900

query I rowsort
SELECT + - 38 + 31 AS col0
----
-7

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

skipif mysql # not compatible
query I rowsort label-513
SELECT - + COUNT ( * ) * ( - - 2 ) / - COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT - + CAST( - + 71 AS SIGNED ) + COALESCE ( - ( + 8 ), + + 74 )
----
63

skipif mysql # not compatible
query I rowsort label-514
SELECT - + CAST ( - + 71 AS INTEGER ) + COALESCE ( - ( + 8 ), + + 74 )
----
63

query I rowsort
SELECT ( - 34 ) AS col0
----
-34

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-517
SELECT DISTINCT + COUNT( * ) AS col2, 16 * - - 2 * MIN( + + 75 ) * COUNT( * ) + + COALESCE ( + 97, - - NULLIF ( + 79, - NULLIF ( + 9, MIN( + 80 ) + - - 1 ) + - 2 * - COUNT( * ) * - 4 + - + 4 * 42 ) DIV + - 51 * - - 55 )
----
1
2497

skipif mysql # not compatible
query II rowsort label-517
SELECT DISTINCT + COUNT ( * ) AS col2, 16 * - - 2 * MIN ( + + 75 ) * COUNT ( * ) + + COALESCE ( + 97, - - NULLIF ( + 79, - NULLIF ( + 9, MIN ( + 80 ) + - - 1 ) + - 2 * - COUNT ( * ) * - 4 + - + 4 * 42 ) / + - 51 * - - 55 )
----
1
2497

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-519
SELECT - 8 * 76 * + + COUNT( * ) * + AVG ( ALL + 7 ) * - 43 + + + 37 + + CAST( NULL AS SIGNED ) + + 87
----
NULL

skipif mysql # not compatible
query I rowsort label-519
SELECT - 8 * 76 * + + COUNT ( * ) * + AVG ( ALL + 7 ) * - 43 + + + 37 + + CAST ( NULL AS INTEGER ) + + 87
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT ALL + NULLIF ( - - CAST( + 68 AS SIGNED ), + + ( + 30 ) ) AS col2
----
68

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL + NULLIF ( - - CAST ( + 68 AS INTEGER ), + + ( + 30 ) ) AS col2
----
68

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

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

query I rowsort
SELECT - 85 + + 37 AS col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-523
SELECT - 3 DIV + 33 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-523
SELECT - 3 / + 33 AS col2
----
0

query I rowsort
SELECT DISTINCT - 38 * - + 39 AS col1
----
1482

query I rowsort
SELECT DISTINCT - 29 * 3
----
-87

query I rowsort
SELECT 47 * - 83 * 51 + - 0
----
-198951

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT - COUNT( * ) + 45 AS col2
----
44

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-528
SELECT 36 AS col0, SUM( + - CAST( NULL AS SIGNED ) ) / - - 98 + + + 70 AS col1
----
36
NULL

skipif mysql # not compatible
query II rowsort label-528
SELECT 36 AS col0, SUM ( + - CAST ( NULL AS INTEGER ) ) / - - 98 + + + 70 AS col1
----
36
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT + CASE COUNT( * ) WHEN - 47 THEN 3 WHEN 11 THEN NULL ELSE NULL END + + + ( - AVG ( DISTINCT - + 84 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-529
SELECT DISTINCT + CASE COUNT ( * ) WHEN - 47 THEN 3 WHEN 11 THEN NULL ELSE NULL END + + + ( - AVG ( DISTINCT - + 84 ) ) col2
----
NULL

query I rowsort
SELECT ALL 90 + + - 67
----
23

query II rowsort
SELECT - 2, 62 * + 8 + + 69 col1
----
-2
565

query I rowsort
SELECT 51 * - 23 AS col0
----
-1173

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT - 39 + - 35 + - COUNT( - 25 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT - 39 + - 35 + - COUNT ( - 25 ) AS col1
----
-75

query I rowsort
SELECT DISTINCT ( - - 40 ) + - 32
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-535
SELECT - - CAST( 94 AS SIGNED )
----
94

skipif mysql # not compatible
query I rowsort label-535
SELECT - - CAST ( 94 AS INTEGER )
----
94

query I rowsort
SELECT ALL - 5 + 40 AS col2
----
35

query I rowsort
SELECT - NULLIF ( + 9, 30 / + - 42 + + 82 - - 2 )
----
-9

query I rowsort
SELECT DISTINCT ( + 42 ) + - - 55 + - 65 AS col2
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-539
SELECT ALL 6 AS col2, 61 * + 10 + - SUM( - CAST( NULL AS SIGNED ) )
----
6
NULL

skipif mysql # not compatible
query II rowsort label-539
SELECT ALL 6 AS col2, 61 * + 10 + - SUM ( - CAST ( NULL AS INTEGER ) )
----
6
NULL

query I rowsort
SELECT - 79 + + 48 AS col2
----
-31

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

query I rowsort
SELECT ALL 53 * - 66 AS col2
----
-3498

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-544
SELECT ALL CASE 16 WHEN + 81 + - 75 THEN + + 92 ELSE - COALESCE ( 76, 19 ) * - MIN( - NULLIF ( 58, 60 + - + 72 * COALESCE ( + 64, + + CAST( NULL AS SIGNED ) ) + 14 ) ) - + + 5 + + 65 END
----
-4348

skipif mysql # not compatible
query I rowsort label-544
SELECT ALL CASE 16 WHEN + 81 + - 75 THEN + + 92 ELSE - COALESCE ( 76, 19 ) * - MIN ( - NULLIF ( 58, 60 + - + 72 * COALESCE ( + 64, + + CAST ( NULL AS INTEGER ) ) + 14 ) ) - + + 5 + + 65 END
----
-4348

onlyif mysql # aggregate syntax: 
query III rowsort label-545
SELECT + 29 AS col0, + 43 * + 76 AS col1, + COUNT( * ) + + + 43 * - - 17
----
29
3268
732

skipif mysql # not compatible
query III rowsort label-545
SELECT + 29 AS col0, + 43 * + 76 AS col1, + COUNT ( * ) + + + 43 * - - 17
----
29
3268
732

query I rowsort
SELECT DISTINCT 80 - + - 83 AS col1
----
163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-547
SELECT MIN( ALL + - 66 ) DIV + - 28 + 29
----
31

skipif mysql # not compatible
query I rowsort label-547
SELECT MIN ( ALL + - 66 ) / + - 28 + 29
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-548
SELECT DISTINCT 98 - COUNT( * ) * CASE + - COUNT( * ) WHEN - - ( - 2 ) * + - CASE WHEN NOT + 84 IS NOT NULL THEN - CAST( - 6 AS SIGNED ) * 94 END + 43 THEN NULL WHEN - ( + CAST( - ( - + 46 ) AS SIGNED ) ) THEN + 89 WHEN + 93 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT 98 - COUNT ( * ) * CASE + - COUNT ( * ) WHEN - - ( - 2 ) * + - CASE WHEN NOT + 84 IS NOT NULL THEN - CAST ( - 6 AS INTEGER ) * 94 END + 43 THEN NULL WHEN - ( + CAST ( - ( - + 46 ) AS INTEGER ) ) THEN + 89 WHEN + 93 THEN NULL END AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT DISTINCT + 28 DIV 61 + - MIN( + 78 ) + - 9
----
-87

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + 28 / 61 + - MIN ( + 78 ) + - 9
----
-87

query I rowsort
SELECT ALL + 6 * 6
----
36

onlyif mysql # aggregate syntax: 
query II rowsort label-553
SELECT 4 * - 5 * + CASE 71 WHEN + 17 THEN - + COUNT( * ) ELSE NULL END, - 4 AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-553
SELECT 4 * - 5 * + CASE 71 WHEN + 17 THEN - + COUNT ( * ) ELSE NULL END, - 4 AS col1
----
NULL
-4

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

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

query I rowsort
SELECT ALL - 42 * - 55 AS col1
----
2310

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-556
SELECT ALL - 55 AS col1, CAST( NULL AS SIGNED ) AS col1
----
-55
NULL

skipif mysql # not compatible
query II rowsort label-556
SELECT ALL - 55 AS col1, CAST ( NULL AS INTEGER ) AS col1
----
-55
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-557
SELECT + CAST( 94 AS SIGNED ) DIV - + 3 - - - 38 col0, 51 + + COUNT( ALL - + 37 ) AS col1
----
-69
52

skipif mysql # not compatible
query II rowsort label-557
SELECT + CAST ( 94 AS INTEGER ) / - + 3 - - - 38 col0, 51 + + COUNT ( ALL - + 37 ) AS col1
----
-69
52

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

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

query I rowsort
SELECT 29 * + - 13 col0
----
-377

query I rowsort
SELECT ALL 68 * + 81 AS col1
----
5508

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT - MAX( ALL 39 )
----
-39

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT - MAX ( ALL 39 )
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-562
SELECT + 79, - COUNT( * ) - - - 17 + + + COUNT( * ) * + 95 - - COUNT( * ) * + 74 DIV + 23 + - COUNT( * ) AS col2
----
79
79

skipif mysql # not compatible
query II rowsort label-562
SELECT + 79, - COUNT ( * ) - - - 17 + + + COUNT ( * ) * + 95 - - COUNT ( * ) * + 74 / + 23 + - COUNT ( * ) AS col2
----
79
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-564
SELECT DISTINCT - COUNT( DISTINCT 58 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT - COUNT ( DISTINCT 58 ) AS col2
----
-1

query II rowsort
SELECT 8 AS col0, + 59 AS col1
----
8
59

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

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL + 52 + + - COUNT ( * ) AS col1
----
51

query I rowsort
SELECT 35 - 62 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT ALL - CASE + 32 WHEN COUNT( * ) THEN 85 * - - 72 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - CASE + 32 WHEN COUNT ( * ) THEN 85 * - - 72 ELSE NULL END
----
NULL

query II rowsort
SELECT 45 * + 78 AS col2, 30 AS col1
----
3510
30

query I rowsort
SELECT ALL - 80 * + 17
----
-1360

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-571
SELECT ALL - ( + - CAST( + + 35 AS SIGNED ) ) + NULLIF ( - + 33, - 25 ) AS col0, + 70
----
2
70

skipif mysql # not compatible
query II rowsort label-571
SELECT ALL - ( + - CAST ( + + 35 AS INTEGER ) ) + NULLIF ( - + 33, - 25 ) AS col0, + 70
----
2
70

onlyif mysql # DIV for integer division: 
query I rowsort label-572
SELECT 64 DIV - 80 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-572
SELECT 64 / - 80 AS col1
----
0

query I rowsort
SELECT 35 + + + 11 col0
----
46

query II rowsort
SELECT ALL + 80 * + - 13 AS col1, - 31 AS col2
----
-1040
-31

query I rowsort
SELECT + 18 + + ( - 89 )
----
-71

query I rowsort
SELECT + 88 - - 32 + - 7 AS col1
----
113

query I rowsort
SELECT NULLIF ( - + 46, + 60 ) + + 55
----
9

query I rowsort
SELECT ALL + + 70 - + + 36 col2
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-579
SELECT DISTINCT - + 8 * + - COALESCE ( + + 24, + COUNT( * ) + + 42 - + 58 * + 30 ) - 69 * COUNT( * ) DIV COUNT( * )
----
123

skipif mysql # not compatible
query I rowsort label-579
SELECT DISTINCT - + 8 * + - COALESCE ( + + 24, + COUNT ( * ) + + 42 - + 58 * + 30 ) - 69 * COUNT ( * ) / COUNT ( * )
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-580
SELECT ALL MIN( DISTINCT + - 71 ) - + + 56 + COUNT( * ) + + - 21 DIV + 69 * - 63
----
-126

skipif mysql # not compatible
query I rowsort label-580
SELECT ALL MIN ( DISTINCT + - 71 ) - + + 56 + COUNT ( * ) + + - 21 / + 69 * - 63
----
-126

onlyif mysql # aggregate syntax: 
query II rowsort label-581
SELECT - 54 * - COUNT( * ) + - MIN( - 28 ), - 60 AS col2
----
82
-60

skipif mysql # not compatible
query II rowsort label-581
SELECT - 54 * - COUNT ( * ) + - MIN ( - 28 ), - 60 AS col2
----
82
-60

query I rowsort
SELECT ALL - + 58 * 98 * + 25
----
-142100

query I rowsort
SELECT - 68 + - 9 * + ( + 24 )
----
-284

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-585
SELECT 9 + ( - 65 ) DIV + 16 + - COUNT( * ) + 96 DIV - - 52
----
5

skipif mysql # not compatible
query I rowsort label-585
SELECT 9 + ( - 65 ) / + 16 + - COUNT ( * ) + 96 / - - 52
----
5

query I rowsort
SELECT 26 - + 39 - - 93 col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-587
SELECT + 34 + - COUNT( * ) + - COUNT( DISTINCT + ( - 25 ) )
----
32

skipif mysql # not compatible
query I rowsort label-587
SELECT + 34 + - COUNT ( * ) + - COUNT ( DISTINCT + ( - 25 ) )
----
32

query I rowsort
SELECT ALL - COALESCE ( - 42, - + 43 ) AS col1
----
42

query II rowsort
SELECT + 58 AS col1, 24
----
58
24

query I rowsort
SELECT 19 * - + 84 + - 45
----
-1641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-591
SELECT - 84 DIV + + COUNT( - 67 ) + - NULLIF ( + MIN( ALL - + 35 ), + 61 ) AS col0
----
-49

skipif mysql # not compatible
query I rowsort label-591
SELECT - 84 / + + COUNT ( - 67 ) + - NULLIF ( + MIN ( ALL - + 35 ), + 61 ) AS col0
----
-49

query I rowsort
SELECT + 93 * + - 35 + + 52
----
-3203

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-594
SELECT - COUNT( * ) * + CASE + 5 WHEN - - AVG ( - - 50 ) THEN - COUNT( * ) + 7 WHEN + 33 * + + CASE + 98 WHEN - 44 * + - CAST( + 94 AS SIGNED ) + + 25 THEN 53 ELSE NULL END THEN + 74 ELSE NULL END - + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-594
SELECT - COUNT ( * ) * + CASE + 5 WHEN - - AVG ( - - 50 ) THEN - COUNT ( * ) + 7 WHEN + 33 * + + CASE + 98 WHEN - 44 * + - CAST ( + 94 AS INTEGER ) + + 25 THEN 53 ELSE NULL END THEN + 74 ELSE NULL END - + 65
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT + NULLIF ( - 49, - NULLIF ( 8, + 78 * + AVG ( + 30 ) ) * 77 + - COALESCE ( - + ( - - 3 ), 89 * + CAST( NULL AS SIGNED ) + + - 74 ) - + COUNT( * ) + - 75 + + 0 * CAST( NULL AS SIGNED ) * + - 87 / + 17 * + 76 * + 4 )
----
-49

skipif mysql # not compatible
query I rowsort label-595
SELECT + NULLIF ( - 49, - NULLIF ( 8, + 78 * + AVG ( + 30 ) ) * 77 + - COALESCE ( - + ( - - 3 ), 89 * + CAST ( NULL AS INTEGER ) + + - 74 ) - + COUNT ( * ) + - 75 + + 0 * CAST ( NULL AS INTEGER ) * + - 87 / + 17 * + 76 * + 4 )
----
-49

query I rowsort
SELECT + 50 + 49 + - 35
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT 83 * - 31 - + COUNT( * ) AS col1
----
-2574

skipif mysql # not compatible
query I rowsort label-597
SELECT 83 * - 31 - + COUNT ( * ) AS col1
----
-2574

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

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

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

skipif mysql # not compatible
query I rowsort label-599
SELECT - 12 * - COUNT ( * ) + 11 AS col0
----
23

query I rowsort
SELECT ALL - 77 * + 85 + + 7
----
-6538

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-601
SELECT ALL - AVG ( + CAST( NULL AS DECIMAL ) ) * + 94 * ( 47 ) + + ( 91 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL - AVG ( + CAST ( NULL AS REAL ) ) * + 94 * ( 47 ) + + ( 91 ) AS col2
----
NULL

query I rowsort
SELECT ALL 43 * 32 + - + 85 + + - 97
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT COUNT( + 99 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-603
SELECT COUNT ( + 99 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL + 61 * - MAX( + + 0 ) + 3 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + 61 * - MAX ( + + 0 ) + 3 AS col0
----
3

query I rowsort
SELECT - ( - 70 ) + + - 22
----
48

query I rowsort
SELECT + 36 * - 90 AS col2
----
-3240

query I rowsort
SELECT + 17 * - + ( 59 ) + + 7 * + 2 + + 8
----
-981

query I rowsort
SELECT ALL 86 - + - 72 + 13 * + 66 AS col2
----
1016

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-609
SELECT ALL - CASE - + COUNT( * ) WHEN - SUM( - 98 ) THEN 44 WHEN + - COUNT( * ) + + 78 THEN 31 END - + CAST( - 96 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT ALL - CASE - + COUNT ( * ) WHEN - SUM ( - 98 ) THEN 44 WHEN + - COUNT ( * ) + + 78 THEN 31 END - + CAST ( - 96 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-610
SELECT ALL ( - - 32 ) AS col0, + 28 * COUNT( - 39 )
----
32
28

skipif mysql # not compatible
query II rowsort label-610
SELECT ALL ( - - 32 ) AS col0, + 28 * COUNT ( - 39 )
----
32
28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-611
SELECT + CAST( - 96 AS SIGNED ), + 94 + ( + - 30 ) AS col0
----
-96
64

skipif mysql # not compatible
query II rowsort label-611
SELECT + CAST ( - 96 AS INTEGER ), + 94 + ( + - 30 ) AS col0
----
-96
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-612
SELECT + ( + CAST( NULL AS SIGNED ) ), COALESCE ( + 57, SUM( ALL - + 82 ) - 93 + 88 + + + 0 + 84 * - 60 * + + 32 * + COUNT( * ) ) AS col0
----
NULL
57

skipif mysql # not compatible
query II rowsort label-612
SELECT + ( + CAST ( NULL AS INTEGER ) ), COALESCE ( + 57, SUM ( ALL - + 82 ) - 93 + 88 + + + 0 + 84 * - 60 * + + 32 * + COUNT ( * ) ) AS col0
----
NULL
57

onlyif mysql # DIV for integer division: 
query I rowsort label-613
SELECT ALL + 22 DIV - 13
----
-1

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL + 22 / - 13
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-614
SELECT + - 16 DIV - 42 AS col0, - 5 * 7 col1
----
0
-35

skipif mysql # not compatible
query II rowsort label-614
SELECT + - 16 / - 42 AS col0, - 5 * 7 col1
----
0
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-615
SELECT - 75 * + COUNT( * ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-615
SELECT - 75 * + COUNT ( * ) AS col1
----
-75

query I rowsort
SELECT - 27 + + 36 AS col1
----
9

query I rowsort
SELECT - 97 + + + 36 AS col1
----
-61

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

query I rowsort
SELECT ALL - NULLIF ( + 53, + 11 )
----
-53

query II rowsort
SELECT ALL ( 9 ) AS col1, + 24
----
9
24

query I rowsort
SELECT - + 84 + + 37 - + + 50 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - - 15 * + 8 * - COALESCE ( - - 98, - 63 * - ( 87 ) + + 92 ) - - + COUNT( * ) AS col1
----
-11759

skipif mysql # not compatible
query I rowsort label-622
SELECT - - 15 * + 8 * - COALESCE ( - - 98, - 63 * - ( 87 ) + + 92 ) - - + COUNT ( * ) AS col1
----
-11759

query I rowsort
SELECT - - NULLIF ( - 22, 40 ) + + - ( + + ( - 26 ) )
----
4

query I rowsort
SELECT ALL + - 38 + 92 * - 36
----
-3350

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-626
SELECT - 9 AS col2, - 20 + + CAST( NULL AS DECIMAL ) col0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-626
SELECT - 9 AS col2, - 20 + + CAST ( NULL AS REAL ) col0
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-627
SELECT CAST( NULL AS SIGNED ) AS col0, - ( - 1 )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-627
SELECT CAST ( NULL AS INTEGER ) AS col0, - ( - 1 )
----
NULL
1

query I rowsort
SELECT + 80 + - 0
----
80

query II rowsort
SELECT DISTINCT + 71 AS col1, 7
----
71
7

query I rowsort
SELECT - 50 * - - 92 AS col1
----
-4600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-631
SELECT ALL - COUNT( * ) DIV - 9 + 87 * + 52 AS col0
----
4524

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL - COUNT ( * ) / - 9 + 87 * + 52 AS col0
----
4524

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-633
SELECT ALL - 83 DIV + + 99 + - 25 - + 95 + + COUNT( ALL 77 )
----
-119

skipif mysql # not compatible
query I rowsort label-633
SELECT ALL - 83 / + + 99 + - 25 - + 95 + + COUNT ( ALL 77 )
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT + 20 * + 59 DIV 62 DIV + - 93 * - + 4 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-634
SELECT + 20 * + 59 / 62 / + - 93 * - + 4 AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-635
SELECT + NULLIF ( - 35, - CAST( NULL AS SIGNED ) ) AS col0, + 61 + + 38
----
-35
99

skipif mysql # not compatible
query II rowsort label-635
SELECT + NULLIF ( - 35, - CAST ( NULL AS INTEGER ) ) AS col0, + 61 + + 38
----
-35
99

query I rowsort
SELECT ALL - 67 * - 73 * - + 95 * + 81 + - 91 AS col0
----
-37636336

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT ( + - CASE - - ( 8 ) WHEN 85 THEN 54 + - 75 - - - COUNT( ALL 40 ) * 51 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-637
SELECT ( + - CASE - - ( 8 ) WHEN 85 THEN 54 + - 75 - - - COUNT ( ALL 40 ) * 51 END ) AS col2
----
NULL

query I rowsort
SELECT + CASE ( - + 92 ) WHEN + + ( + 92 ) THEN NULL ELSE + - 60 END AS col1
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT + CASE - SUM( 34 ) WHEN + 52 THEN - COUNT( * ) WHEN + CAST( - - 11 AS SIGNED ) + - 38 THEN - - COUNT( * ) END * - 40 + + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-639
SELECT + CASE - SUM ( 34 ) WHEN + 52 THEN - COUNT ( * ) WHEN + CAST ( - - 11 AS INTEGER ) + - 38 THEN - - COUNT ( * ) END * - 40 + + - 2 AS col2
----
NULL

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

query I rowsort
SELECT + ( ( + 95 ) ) * 49 * + ( - 13 ) AS col2
----
-60515

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT + CAST( NULL AS SIGNED ) / ( + 52 ) * + + 5 + - 93 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-642
SELECT + CAST ( NULL AS INTEGER ) / ( + 52 ) * + + 5 + - 93 col2
----
NULL

query I rowsort
SELECT DISTINCT + CASE 84 WHEN - 57 THEN + - 81 + + 43 ELSE + 49 END AS col0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-644
SELECT + CASE + COUNT( * ) WHEN 49 THEN 30 ELSE NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-644
SELECT + CASE + COUNT ( * ) WHEN 49 THEN 30 ELSE NULL END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-645
SELECT ALL 63 * 61 DIV - 3 - + + 8 AS col1
----
-1289

skipif mysql # not compatible
query I rowsort label-645
SELECT ALL 63 * 61 / - 3 - + + 8 AS col1
----
-1289

onlyif mysql # DIV for integer division: 
query I rowsort label-646
SELECT ALL 95 DIV + 44 col2
----
2

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL 95 / + 44 col2
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-647
SELECT + + 6 - COUNT( * ) - CAST( NULL AS SIGNED ) / + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-647
SELECT + + 6 - COUNT ( * ) - CAST ( NULL AS INTEGER ) / + 86
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT + MAX( DISTINCT - COALESCE ( - + 34, + 81 DIV - + 9 ) ) * SUM( + 56 )
----
1904

skipif mysql # not compatible
query I rowsort label-649
SELECT + MAX ( DISTINCT - COALESCE ( - + 34, + 81 / - + 9 ) ) * SUM ( + 56 )
----
1904

onlyif mysql # aggregate syntax: 
query II rowsort label-650
SELECT - + ( + NULLIF ( + 18, + + COALESCE ( - - 45, - SUM( - 77 ), COUNT( * ) ) * - + 15 - - 60 * - COUNT( * ) + + 70 + + 38 ) ) AS col2, COUNT( * )
----
-18
1

skipif mysql # not compatible
query II rowsort label-650
SELECT - + ( + NULLIF ( + 18, + + COALESCE ( - - 45, - SUM ( - 77 ), COUNT ( * ) ) * - + 15 - - 60 * - COUNT ( * ) + + 70 + + 38 ) ) AS col2, COUNT ( * )
----
-18
1

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT + COUNT( * ) + + - 43 AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-651
SELECT + COUNT ( * ) + + - 43 AS col0
----
-42

query II rowsort
SELECT - 72 * + + 0 + + 85 AS col1, 4
----
85
4

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

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

query I rowsort
SELECT + 16 + 94 AS col2
----
110

onlyif mysql # aggregate syntax: 
query III rowsort label-655
SELECT ALL 97 col0, SUM( - 62 ) - + 83, - 68 AS col2
----
97
-145
-68

skipif mysql # not compatible
query III rowsort label-655
SELECT ALL 97 col0, SUM ( - 62 ) - + 83, - 68 AS col2
----
97
-145
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-656
SELECT DISTINCT 90 * - 12 / CAST( NULL AS SIGNED ) / + - 95 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT 90 * - 12 / CAST ( NULL AS INTEGER ) / + - 95 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-657
SELECT DISTINCT - 30, + COALESCE ( + + COALESCE ( + 68, - 67, + 76 ), + 19 ) * ( 36 ) DIV 33 * - 66 * 99 * + + 47 AS col1
----
-30
-22725252

skipif mysql # not compatible
query II rowsort label-657
SELECT DISTINCT - 30, + COALESCE ( + + COALESCE ( + 68, - 67, + 76 ), + 19 ) * ( 36 ) / 33 * - 66 * 99 * + + 47 AS col1
----
-30
-22725252

query II rowsort
SELECT DISTINCT + 74 AS col2, - 63 AS col2
----
74
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT DISTINCT + 41 + - COUNT( * )
----
40

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT + 41 + - COUNT ( * )
----
40

query I rowsort
SELECT DISTINCT - 66 + - 77 * 5
----
-451

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-661
SELECT DISTINCT + + ( 69 ) + - 68 * + ( - - CASE 73 WHEN - CAST( + 31 AS SIGNED ) THEN NULL ELSE MAX( DISTINCT - 31 ) + - CASE 81 WHEN 29 THEN NULL WHEN 46 THEN - 85 WHEN + + AVG ( - 33 ) THEN NULL END END ) + + 14 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT + + ( 69 ) + - 68 * + ( - - CASE 73 WHEN - CAST ( + 31 AS INTEGER ) THEN NULL ELSE MAX ( DISTINCT - 31 ) + - CASE 81 WHEN 29 THEN NULL WHEN 46 THEN - 85 WHEN + + AVG ( - 33 ) THEN NULL END END ) + + 14 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT ALL + MAX( ALL 30 ) + + MAX( DISTINCT + - 95 ) + - 67 + + 83
----
-49

skipif mysql # not compatible
query I rowsort label-662
SELECT ALL + MAX ( ALL 30 ) + + MAX ( DISTINCT + - 95 ) + - 67 + + 83
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-663
SELECT DISTINCT - COALESCE ( - - 72, + - 33 ) DIV - - 92
----
0

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - COALESCE ( - - 72, + - 33 ) / - - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-664
SELECT ALL + - COUNT( * ) + - 45 col0
----
-46

skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + - COUNT ( * ) + - 45 col0
----
-46

query I rowsort
SELECT 45 * - - ( 96 ) col1
----
4320

query I rowsort
SELECT DISTINCT 74 * + 57
----
4218

onlyif mysql # aggregate syntax: 
query I rowsort label-667
SELECT ALL + COUNT( * ) + 22 - - MAX( - 65 ) col0
----
-42

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + COUNT ( * ) + 22 - - MAX ( - 65 ) col0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT DISTINCT - 48 DIV + 3 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-668
SELECT DISTINCT - 48 / + 3 AS col1
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT 45 + + 83 * + 95 + - ( + COUNT( * ) ) + MAX( DISTINCT - + 22 ) AS col2
----
7907

skipif mysql # not compatible
query I rowsort label-669
SELECT 45 + + 83 * + 95 + - ( + COUNT ( * ) ) + MAX ( DISTINCT - + 22 ) AS col2
----
7907

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-671
SELECT 21 * 40 + - CASE - ( - 91 ) WHEN CASE - COUNT( * ) WHEN - - MIN( DISTINCT - + ( + 68 ) ) - 97 THEN NULL WHEN - 41 THEN NULL ELSE - 59 * + 72 END THEN + 59 WHEN - 66 THEN + 56 END + COALESCE ( - 91, + CASE - 83 WHEN MAX( + 68 ) + + + NULLIF ( 89, 63 ) * - COUNT( * ) * + 36 THEN - CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN + 1 - - CAST( - 78 AS DECIMAL ) END ) + + 97 * 15 * + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-671
SELECT 21 * 40 + - CASE - ( - 91 ) WHEN CASE - COUNT ( * ) WHEN - - MIN ( DISTINCT - + ( + 68 ) ) - 97 THEN NULL WHEN - 41 THEN NULL ELSE - 59 * + 72 END THEN + 59 WHEN - 66 THEN + 56 END + COALESCE ( - 91, + CASE - 83 WHEN MAX ( + 68 ) + + + NULLIF ( 89, 63 ) * - COUNT ( * ) * + 36 THEN - CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN + 1 - - CAST ( - 78 AS REAL ) END ) + + 97 * 15 * + 47
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-672
SELECT - MAX( DISTINCT - 25 ) DIV - 9 + - + 23 + 62 * + 20
----
1215

skipif mysql # not compatible
query I rowsort label-672
SELECT - MAX ( DISTINCT - 25 ) / - 9 + - + 23 + 62 * + 20
----
1215

query I rowsort
SELECT + 66 * - 21 - 64 AS col1
----
-1450

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT 44 + + COUNT( * ) * + - 85
----
-41

skipif mysql # not compatible
query I rowsort label-674
SELECT 44 + + COUNT ( * ) * + - 85
----
-41

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-676
SELECT ALL 25 * + 86 AS col0, MIN( DISTINCT + 44 ) AS col1
----
2150
44

skipif mysql # not compatible
query II rowsort label-676
SELECT ALL 25 * + 86 AS col0, MIN ( DISTINCT + 44 ) AS col1
----
2150
44

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT MAX( 7 ) * 98 AS col1
----
686

skipif mysql # not compatible
query I rowsort label-677
SELECT MAX ( 7 ) * 98 AS col1
----
686

query II rowsort
SELECT DISTINCT 42 * - 89 AS col2, + 19 * 66 * + 88
----
-3738
110352

query I rowsort
SELECT DISTINCT - 76 * - 40
----
3040

query I rowsort
SELECT DISTINCT - NULLIF ( 85, - 67 )
----
-85

query I rowsort
SELECT + 29 * 73 * - 4 AS col2
----
-8468

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

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

query I rowsort
SELECT + + 91 col1
----
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-686
SELECT + COUNT( * ) * + 17 - + 11 * + 87 * - COUNT( * ) * - CASE + 47 WHEN - - 2 THEN - 54 WHEN 81 THEN 91 ELSE - 97 + - 82 + 12 END + - 53
----
159783

skipif mysql # not compatible
query I rowsort label-686
SELECT + COUNT ( * ) * + 17 - + 11 * + 87 * - COUNT ( * ) * - CASE + 47 WHEN - - 2 THEN - 54 WHEN 81 THEN 91 ELSE - 97 + - 82 + 12 END + - 53
----
159783

query I rowsort
SELECT ALL 62 + + 42 col2
----
104

query I rowsort
SELECT DISTINCT + 12 + COALESCE ( + 57, - 91 )
----
69

query I rowsort
SELECT ALL 76 * 92 + - - ( + 62 ) AS col1
----
7054

query I rowsort
SELECT - 46 + - 10
----
-56

query I rowsort
SELECT DISTINCT - 37 + + - 4 + 55 * + ( ( + 89 ) ) + + - 43 AS col0
----
4811

query I rowsort
SELECT ALL 20 + + 60 * + 20 AS col0
----
1220

onlyif mysql # aggregate syntax: 
query II rowsort label-693
SELECT DISTINCT MAX( - + 87 ) col1, - 81 AS col0
----
-87
-81

skipif mysql # not compatible
query II rowsort label-693
SELECT DISTINCT MAX ( - + 87 ) col1, - 81 AS col0
----
-87
-81

query I rowsort
SELECT - 64 * 89
----
-5696

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - + CASE + 37 WHEN + COUNT( * ) * + - 85 + - 34 + 78 + - + 94 * - 45 THEN 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT - + CASE + 37 WHEN + COUNT ( * ) * + - 85 + - 34 + 78 + - + 94 * - 45 THEN 54 ELSE NULL END
----
NULL

query II rowsort
SELECT 42 - + ( + ( - + 11 ) ), CASE 23 WHEN + 30 THEN + 89 WHEN + ( ( + 8 ) ) * + ( - 63 ) - + COALESCE ( + 27, + 54 ) * - 45 THEN NULL END col0
----
53
NULL

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

query I rowsort
SELECT + 30 * - 42
----
-1260

query I rowsort
SELECT ALL 33 * 89
----
2937

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT ALL - 61 DIV + 88
----
0

skipif mysql # not compatible
query I rowsort label-701
SELECT ALL - 61 / + 88
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-702
SELECT 45 + - NULLIF ( + 15, - MAX( ALL 0 ) ) AS col2
----
30

skipif mysql # not compatible
query I rowsort label-702
SELECT 45 + - NULLIF ( + 15, - MAX ( ALL 0 ) ) AS col2
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL 3 - 35 + + 34 * - ( + 70 ) - MIN( DISTINCT 16 ) + + 13 * 51 AS col0
----
-1765

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL 3 - 35 + + 34 * - ( + 70 ) - MIN ( DISTINCT 16 ) + + 13 * 51 AS col0
----
-1765

query I rowsort
SELECT 64 * 91 col0
----
5824

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT MAX( 18 ) AS col1
----
18

skipif mysql # not compatible
query I rowsort label-706
SELECT MAX ( 18 ) AS col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-707
SELECT + MIN( ( - 54 ) ) AS col0, 42 / 62 / CAST( 61 AS SIGNED ) * + COUNT( ALL 45 ) - - 65 / CAST( NULL AS SIGNED ) * + - 70 * - 52 AS col2, + SUM( DISTINCT - - 15 ) / - - CAST( NULL AS SIGNED ) - - - 33 + - CASE - - COUNT( * ) WHEN COUNT( * ) * - 76 * + + 73 + - 60 + - + 39 * - + 67 / - 67 THEN + + 64 + 25 * 35 + + + 97 + 81 * 87 END + - 14
----
-54
NULL
NULL

skipif mysql # not compatible
query III rowsort label-707
SELECT + MIN ( ( - 54 ) ) AS col0, 42 / 62 / CAST ( 61 AS INTEGER ) * + COUNT ( ALL 45 ) - - 65 / CAST ( NULL AS INTEGER ) * + - 70 * - 52 AS col2, + SUM ( DISTINCT - - 15 ) / - - CAST ( NULL AS INTEGER ) - - - 33 + - CASE - - COUNT ( * ) WHEN COUNT ( * ) * - 76 * + + 73 + - 60 + - + 39 * - + 67 / - 67 THEN + + 64 + 25 * 35 + + + 97 + 81 * 87 END + - 14
----
-54
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT ALL - 35 * + MAX( - 20 ) AS col0
----
700

skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - 35 * + MAX ( - 20 ) AS col0
----
700

query I rowsort
SELECT 54 * + 52
----
2808

onlyif mysql # aggregate syntax: 
query I rowsort label-710
SELECT ALL COUNT( * ) * - 97 AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-710
SELECT ALL COUNT ( * ) * - 97 AS col1
----
-97

query I rowsort
SELECT ALL + 90 * 83 * + 80 AS col2
----
597600

query I rowsort
SELECT 79 * + - 40 AS col0
----
-3160

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

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

query I rowsort
SELECT 53 * - 33 AS col0
----
-1749

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

skipif mysql # not compatible
query I rowsort label-715
SELECT CAST ( - 18 AS INTEGER ) - - + COUNT ( * )
----
-17

query I rowsort
SELECT + 71 - + 87
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-717
SELECT CAST( + + 66 AS SIGNED ) * + ( - COUNT( ALL + 82 ) ) * + 34 + 52 + - - 37 AS col1, 56
----
-2155
56

skipif mysql # not compatible
query II rowsort label-717
SELECT CAST ( + + 66 AS INTEGER ) * + ( - COUNT ( ALL + 82 ) ) * + 34 + 52 + - - 37 AS col1, 56
----
-2155
56

query I rowsort
SELECT ALL - 43 * + 35
----
-1505

query I rowsort
SELECT DISTINCT - + 29 col0
----
-29

query I rowsort
SELECT DISTINCT - - 73 * - 50 AS col1
----
-3650

query I rowsort
SELECT DISTINCT - 52 + 77
----
25

query I rowsort
SELECT ALL 51 + + 83 * + - 11
----
-862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-723
SELECT + + 3 * - + COUNT( * ) * - + CAST( NULL AS SIGNED ) + + 56 * NULLIF ( + + COUNT( - CASE + - 41 WHEN + CAST( NULL AS SIGNED ) * 27 * + 4 THEN - 37 END ), 5 / + 20 )
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT + + 3 * - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) + + 56 * NULLIF ( + + COUNT ( - CASE + - 41 WHEN + CAST ( NULL AS INTEGER ) * 27 * + 4 THEN - 37 END ), 5 / + 20 )
----
NULL

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

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

query I rowsort
SELECT DISTINCT - 49 * + 0 + + - 60
----
-60

query I rowsort
SELECT - + ( - 80 ) + 32 AS col0
----
112

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-727
SELECT - - COALESCE ( - CAST( - NULLIF ( - - 25, 69 ) AS SIGNED ), + NULLIF ( 86, - 71 ) DIV - + 52, - + 18, - 74 * 27 * - - 13 + + 68 ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-727
SELECT - - COALESCE ( - CAST ( - NULLIF ( - - 25, 69 ) AS INTEGER ), + NULLIF ( 86, - 71 ) / - + 52, - + 18, - 74 * 27 * - - 13 + + 68 ) AS col0
----
25

query I rowsort
SELECT - - 53 + - 44 + 1 * - 72
----
-63

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-730
SELECT DISTINCT - 20 - - + SUM( + + 61 ) * - 14 + COUNT( * ) + + 68 * + + ( - 46 ) * - 42, + 95 - 13 AS col2
----
130503
82

skipif mysql # not compatible
query II rowsort label-730
SELECT DISTINCT - 20 - - + SUM ( + + 61 ) * - 14 + COUNT ( * ) + + 68 * + + ( - 46 ) * - 42, + 95 - 13 AS col2
----
130503
82

onlyif mysql # DIV for integer division: 
query I rowsort label-731
SELECT ALL + ( 32 ) DIV 49 - 20 AS col1
----
-20

skipif mysql # not compatible
query I rowsort label-731
SELECT ALL + ( 32 ) / 49 - 20 AS col1
----
-20

query I rowsort
SELECT + 56 + 4 AS col2
----
60

query II rowsort
SELECT - 17, 64 AS col0
----
-17
64

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT - 85 + - + COUNT( * ) col0
----
-86

skipif mysql # not compatible
query I rowsort label-734
SELECT - 85 + - + COUNT ( * ) col0
----
-86

query I rowsort
SELECT - CASE - 12 WHEN - 52 THEN - + 43 END
----
NULL

query I rowsort
SELECT + 61 + 39
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - CASE - COUNT( DISTINCT - 76 ) WHEN + 84 * + - COUNT( * ) / - - 40 THEN NULLIF ( - 62, - + 90 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-737
SELECT - CASE - COUNT ( DISTINCT - 76 ) WHEN + 84 * + - COUNT ( * ) / - - 40 THEN NULLIF ( - 62, - + 90 ) END AS col1
----
NULL

query II rowsort
SELECT + 26 * + 69 AS col1, + 59 AS col0
----
1794
59

query I rowsort
SELECT + 37 + - - 56
----
93

query II rowsort
SELECT ALL 31, 85 AS col2
----
31
85

onlyif mysql # aggregate syntax: 
query I rowsort label-741
SELECT DISTINCT SUM( + 79 ) * 45
----
3555

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT SUM ( + 79 ) * 45
----
3555

query II rowsort
SELECT + 90 * 75, 37 AS col1
----
6750
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query II rowsort label-743
SELECT + 54 * 56 AS col2, CASE ( + - 64 ) WHEN - - 95 * - - CAST( 18 AS DECIMAL ) DIV - - 56 + + + COUNT( * ) + + 99 * ( - 47 ) THEN CAST( NULL AS SIGNED ) WHEN 45 THEN NULL ELSE - 67 END DIV + - SUM( ALL + 44 ) AS col0
----
3024
1

skipif mysql # not compatible
query II rowsort label-743
SELECT + 54 * 56 AS col2, CASE ( + - 64 ) WHEN - - 95 * - - CAST ( 18 AS REAL ) / - - 56 + + + COUNT ( * ) + + 99 * ( - 47 ) THEN CAST ( NULL AS INTEGER ) WHEN 45 THEN NULL ELSE - 67 END / + - SUM ( ALL + 44 ) AS col0
----
3024
1

onlyif mysql # DIV for integer division: 
query II rowsort label-744
SELECT ALL + 24 AS col1, 54 DIV - NULLIF ( 24, + - 16 + - - 41 ) AS col0
----
24
-2

skipif mysql # not compatible
query II rowsort label-744
SELECT ALL + 24 AS col1, 54 / - NULLIF ( 24, + - 16 + - - 41 ) AS col0
----
24
-2

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

query II rowsort
SELECT + 4 AS col2, 83 AS col0
----
4
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-747
SELECT ALL COUNT( + - 47 ) * + 29 * - COUNT( ( - - 71 ) ) + - NULLIF ( - + CAST( + - 89 AS SIGNED ), + 90 * - 19 ) + 48 * 92 * - CASE 74 WHEN + 2 THEN NULL WHEN + + MAX( + 69 ) - + CASE - 11 WHEN + AVG ( ALL - 51 ) + - 49 THEN NULL WHEN - COUNT( * ) * - ( - 5 ) * + - COUNT( * ) THEN 48 * + + 0 ELSE + + 35 DIV - 20 * + 55 END THEN NULL WHEN + CAST( + 18 AS SIGNED ) + - 27 THEN NULL ELSE + 48 DIV 88 END * 26 * + 8 + 88 AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-747
SELECT ALL COUNT ( + - 47 ) * + 29 * - COUNT ( ( - - 71 ) ) + - NULLIF ( - + CAST ( + - 89 AS INTEGER ), + 90 * - 19 ) + 48 * 92 * - CASE 74 WHEN + 2 THEN NULL WHEN + + MAX ( + 69 ) - + CASE - 11 WHEN + AVG ( ALL - 51 ) + - 49 THEN NULL WHEN - COUNT ( * ) * - ( - 5 ) * + - COUNT ( * ) THEN 48 * + + 0 ELSE + + 35 / - 20 * + 55 END THEN NULL WHEN + CAST ( + 18 AS INTEGER ) + - 27 THEN NULL ELSE + 48 / 88 END * 26 * + 8 + 88 AS col2
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT COUNT( * ) DIV + 1 + 82
----
83

skipif mysql # not compatible
query I rowsort label-748
SELECT COUNT ( * ) / + 1 + 82
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT 53 * - + 7 - COUNT( * ) + 88
----
-284

skipif mysql # not compatible
query I rowsort label-749
SELECT 53 * - + 7 - COUNT ( * ) + 88
----
-284

query I rowsort
SELECT DISTINCT - 64 * - 74 + + 46
----
4782

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT DISTINCT 42 * - - COUNT( * ) + + 53 + - + 99 - + 86 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT 42 * - - COUNT ( * ) + + 53 + - + 99 - + 86 AS col2
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-752
SELECT DISTINCT + CASE + 39 WHEN + CAST( + 61 AS SIGNED ) / - + 28 THEN + - COUNT( * ) * - 7 * + - 78 WHEN + + 17 THEN + + 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT DISTINCT + CASE + 39 WHEN + CAST ( + 61 AS INTEGER ) / - + 28 THEN + - COUNT ( * ) * - 7 * + - 78 WHEN + + 17 THEN + + 29 END
----
NULL

query I rowsort
SELECT - - 99 * + 5 * + 32 + - 68
----
15772

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-756
SELECT + - 48 * + 68, 87 + COUNT( * ) AS col0
----
-3264
88

skipif mysql # not compatible
query II rowsort label-756
SELECT + - 48 * + 68, 87 + COUNT ( * ) AS col0
----
-3264
88

query I rowsort
SELECT - - 42 + + 42
----
84

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

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

query II rowsort
SELECT DISTINCT + 74 AS col1, 36 AS col2
----
74
36

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL + 27 * - 6 + + + 32 + + COUNT( * ) AS col1
----
-129

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL + 27 * - 6 + + + 32 + + COUNT ( * ) AS col1
----
-129

query I rowsort
SELECT ( CASE - 25 WHEN 21 THEN - 3 ELSE NULL END )
----
NULL

query I rowsort
SELECT - 55 + 26 + - 28
----
-57

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-763
SELECT - ( + 2 ) * + 65 * - + 91 + COALESCE ( 76, 2 + CAST( NULL AS DECIMAL ) + - 84 ) + ( - CAST( NULL AS SIGNED ) ) AS col1, + 11 * - 12 + + - 94 AS col0
----
NULL
-226

skipif mysql # not compatible
query II rowsort label-763
SELECT - ( + 2 ) * + 65 * - + 91 + COALESCE ( 76, 2 + CAST ( NULL AS REAL ) + - 84 ) + ( - CAST ( NULL AS INTEGER ) ) AS col1, + 11 * - 12 + + - 94 AS col0
----
NULL
-226

query III rowsort
SELECT DISTINCT + 54 col1, + 15 AS col1, 74
----
54
15
74

query I rowsort
SELECT DISTINCT - - 54 * - 60 + + 45 AS col0
----
-3195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-766
SELECT DISTINCT + + COUNT( * ) * + - AVG ( + ( + - 84 ) ) - - CAST( - 64 AS SIGNED ) + - + 7 + 25 + - CASE + ( - CAST( - - AVG ( DISTINCT - ( 65 ) ) AS SIGNED ) ) WHEN - 85 * + - 86 * + 32 * 16 THEN - 29 + - - 88 + - 2 + 13 WHEN - 72 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + + COUNT ( * ) * + - AVG ( + ( + - 84 ) ) - - CAST ( - 64 AS INTEGER ) + - + 7 + 25 + - CASE + ( - CAST ( - - AVG ( DISTINCT - ( 65 ) ) AS INTEGER ) ) WHEN - 85 * + - 86 * + 32 * 16 THEN - 29 + - - 88 + - 2 + 13 WHEN - 72 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-767
SELECT ALL + NULLIF ( - 23, + 49 + + CAST( - 35 AS SIGNED ) * - 23 ) * COUNT( * ) * - 30
----
690

skipif mysql # not compatible
query I rowsort label-767
SELECT ALL + NULLIF ( - 23, + 49 + + CAST ( - 35 AS INTEGER ) * - 23 ) * COUNT ( * ) * - 30
----
690

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT ALL - 5 AS col0, - MIN( - 9 )
----
-5
9

skipif mysql # not compatible
query II rowsort label-768
SELECT ALL - 5 AS col0, - MIN ( - 9 )
----
-5
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-769
SELECT - COUNT( - + 36 ) * + + ( + SUM( + CAST( NULL AS DECIMAL ) ) ) + - 5 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT - COUNT ( - + 36 ) * + + ( + SUM ( + CAST ( NULL AS REAL ) ) ) + - 5 col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-770
SELECT ALL + CAST( - 41 AS DECIMAL ) * + CASE - 83 WHEN + - COALESCE ( - - 33, + - 85, - MAX( + 50 ) * + CAST( NULL AS SIGNED ) + + COUNT( * ) + - 18 ) THEN 91 WHEN - 39 THEN + AVG ( DISTINCT 52 ) WHEN CAST( NULL AS DECIMAL ) + - MIN( DISTINCT - 97 ) THEN + - 23 / + 38 * ( 48 ) END + - COUNT( ALL + NULLIF ( - - 53, - 67 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL + CAST ( - 41 AS REAL ) * + CASE - 83 WHEN + - COALESCE ( - - 33, + - 85, - MAX ( + 50 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + - 18 ) THEN 91 WHEN - 39 THEN + AVG ( DISTINCT 52 ) WHEN CAST ( NULL AS REAL ) + - MIN ( DISTINCT - 97 ) THEN + - 23 / + 38 * ( 48 ) END + - COUNT ( ALL + NULLIF ( - - 53, - 67 ) )
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-773
SELECT - 20 - 25 AS col0, CAST( NULL AS DECIMAL )
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-773
SELECT - 20 - 25 AS col0, CAST ( NULL AS REAL )
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-774
SELECT ALL CAST( + ( - CAST( - NULLIF ( CAST( NULL AS SIGNED ), + 64 ) AS SIGNED ) ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-774
SELECT ALL CAST ( + ( - CAST ( - NULLIF ( CAST ( NULL AS INTEGER ), + 64 ) AS INTEGER ) ) AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT - COUNT( * ) * - ( - ( + 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-775
SELECT - COUNT ( * ) * - ( - ( + 0 ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT ALL + MIN( ALL - - 89 ) * - 84 * - + 42 AS col1
----
313992

skipif mysql # not compatible
query I rowsort label-776
SELECT ALL + MIN ( ALL - - 89 ) * - 84 * - + 42 AS col1
----
313992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-777
SELECT DISTINCT 67 DIV + COUNT( * ) AS col2, - CAST( NULL AS SIGNED ) * NULLIF ( + MIN( - 0 ), + 35 + + - COUNT( * ) ) AS col1
----
67
NULL

skipif mysql # not compatible
query II rowsort label-777
SELECT DISTINCT 67 / + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) * NULLIF ( + MIN ( - 0 ), + 35 + + - COUNT ( * ) ) AS col1
----
67
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-778
SELECT ALL COUNT( * ) * + 25, + 25 * - 99 col2
----
25
-2475

skipif mysql # not compatible
query II rowsort label-778
SELECT ALL COUNT ( * ) * + 25, + 25 * - 99 col2
----
25
-2475

query I rowsort
SELECT - COALESCE ( + - 9, ( - - 56 ) + - 6 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT + COUNT( ALL + + 68 ) + - - 70
----
71

skipif mysql # not compatible
query I rowsort label-780
SELECT + COUNT ( ALL + + 68 ) + - - 70
----
71

query I rowsort
SELECT ALL 66 + + + 65 + + 64 * - - 52 AS col0
----
3459

query I rowsort
SELECT - ( - 95 ) AS col0
----
95

query I rowsort
SELECT + COALESCE ( + - 87, - + 53, + 81 * + + 86 + + + 73, - 61 ) * - + 42 * + - 30 AS col1
----
-109620

query I rowsort
SELECT + 54 + + 47 AS col0
----
101

query I rowsort
SELECT ALL 59 * - 74 AS col1
----
-4366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-786
SELECT ALL 28 / + 25 * ( + + COALESCE ( - 9, + + 83 + - - 82 ) ) + CASE COUNT( ALL NULLIF ( + 30, - - 86 ) ) WHEN + CASE - 17 WHEN + 1 + + 7 THEN NULL WHEN + 94 * CAST( 30 AS SIGNED ) THEN NULL WHEN + 79 THEN 62 - + NULLIF ( - 94, COUNT( * ) * + 16 + - NULLIF ( + 89, + + 52 ) + + COUNT( * ) * + 22 ) END * - 78 * - - 74 THEN NULL WHEN CAST( NULL AS DECIMAL ) + - CASE - 47 WHEN + NULLIF ( 1, - COUNT( * ) ) THEN - ( - COALESCE ( + 63, COUNT( * ), + 83 / + 9 ) ) WHEN 19 * + 23 - + COUNT( * ) THEN NULL ELSE NULL END THEN + 90 + 63 ELSE NULL END col0
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL 28 / + 25 * ( + + COALESCE ( - 9, + + 83 + - - 82 ) ) + CASE COUNT ( ALL NULLIF ( + 30, - - 86 ) ) WHEN + CASE - 17 WHEN + 1 + + 7 THEN NULL WHEN + 94 * CAST ( 30 AS INTEGER ) THEN NULL WHEN + 79 THEN 62 - + NULLIF ( - 94, COUNT ( * ) * + 16 + - NULLIF ( + 89, + + 52 ) + + COUNT ( * ) * + 22 ) END * - 78 * - - 74 THEN NULL WHEN CAST ( NULL AS REAL ) + - CASE - 47 WHEN + NULLIF ( 1, - COUNT ( * ) ) THEN - ( - COALESCE ( + 63, COUNT ( * ), + 83 / + 9 ) ) WHEN 19 * + 23 - + COUNT ( * ) THEN NULL ELSE NULL END THEN + 90 + 63 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-787
SELECT + COALESCE ( - + COUNT( * ), + 56 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-787
SELECT + COALESCE ( - + COUNT ( * ), + 56 ) col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT - MIN( ALL - - 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-788
SELECT - MIN ( ALL - - 25 )
----
-25

query I rowsort
SELECT ALL - 16 * + 56 AS col2
----
-896

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT - 66 DIV + + 98 + - + 71 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - 66 / + + 98 + - + 71 AS col1
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-791
SELECT ALL COUNT( DISTINCT + + CAST( + 57 AS SIGNED ) ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( DISTINCT + + CAST ( + 57 AS INTEGER ) ) + + COUNT ( * )
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-792
SELECT 92 * - ( - 46 ) * COUNT( * ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-792
SELECT 92 * - ( - 46 ) * COUNT ( * ) + + + CAST ( NULL AS INTEGER )
----
NULL

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

query II rowsort
SELECT DISTINCT - 8 * - 33 AS col1, + 10 * + 87
----
264
870

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-795
SELECT ALL + 50 - + 27 DIV + ( + COUNT( * ) ) + - 37 AS col1, + 37
----
-14
37

skipif mysql # not compatible
query II rowsort label-795
SELECT ALL + 50 - + 27 / + ( + COUNT ( * ) ) + - 37 AS col1, + 37
----
-14
37

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT ALL + 39 * + - 14 * - ( COUNT( * ) ) + - + 58
----
488

skipif mysql # not compatible
query I rowsort label-796
SELECT ALL + 39 * + - 14 * - ( COUNT ( * ) ) + - + 58
----
488

query II rowsort
SELECT ALL - + ( 36 ) AS col1, - 67
----
-36
-67

query I rowsort
SELECT 17 - - - 81 AS col1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT + COUNT( * ) - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-799
SELECT + COUNT ( * ) - COUNT ( * ) AS col1
----
0

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

skipif mysql # not compatible
query I rowsort label-800
SELECT - CAST ( NULL AS REAL ) * - 18 * - COUNT ( * )
----
NULL

query II rowsort
SELECT ALL 6 AS col1, + 4 + - 52
----
6
-48

query I rowsort
SELECT 64 * - 39
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-803
SELECT 93 AS col0, 11 - - - CAST( - + 35 AS SIGNED ) AS col0
----
93
46

skipif mysql # not compatible
query II rowsort label-803
SELECT 93 AS col0, 11 - - - CAST ( - + 35 AS INTEGER ) AS col0
----
93
46

query I rowsort
SELECT 54 * 99
----
5346

query I rowsort
SELECT ALL + 30 * + 51
----
1530

query II rowsort
SELECT ALL 24, 46 AS col1
----
24
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-807
SELECT CAST( NULL AS SIGNED ) * 43 / 84 AS col0, 15 * - - 73 + - COUNT( * )
----
NULL
1094

skipif mysql # not compatible
query II rowsort label-807
SELECT CAST ( NULL AS INTEGER ) * 43 / 84 AS col0, 15 * - - 73 + - COUNT ( * )
----
NULL
1094

query I rowsort
SELECT ALL + 31 + - 13 + - - 42 * 17
----
732

query II rowsort
SELECT ALL - 68 + + 96 + + NULLIF ( + - 30, - 16 ) + NULLIF ( + 94, - 52 - 73 ), + NULLIF ( 73, + + 37 ) col2
----
92
73

query I rowsort
SELECT 60 + + + 97 AS col2
----
157

query I rowsort
SELECT 69 + - + 50 AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT COALESCE ( 71, + - COUNT( * ) - + 89 ) * 13
----
923

skipif mysql # not compatible
query I rowsort label-812
SELECT COALESCE ( 71, + - COUNT ( * ) - + 89 ) * 13
----
923

query II rowsort
SELECT DISTINCT 95, - 51 AS col0
----
95
-51

query I rowsort
SELECT 79 + + + 2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-815
SELECT DISTINCT - 14 + + 87 - - ( + 99 ) + + - MIN( DISTINCT 10 ) * + + ( 45 ) * - 82 * + 93 * - 61 + - 0 * + 43 DIV NULLIF ( + 51, - 98 * - 97 + 17 + + + COUNT( * ) * 91 ) * 91 + 13
----
-209333515

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT - 14 + + 87 - - ( + 99 ) + + - MIN ( DISTINCT 10 ) * + + ( 45 ) * - 82 * + 93 * - 61 + - 0 * + 43 / NULLIF ( + 51, - 98 * - 97 + 17 + + + COUNT ( * ) * 91 ) * 91 + 13
----
-209333515

onlyif mysql # DIV for integer division: 
query I rowsort label-816
SELECT ALL 12 + + 15 DIV + + 8
----
13

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL 12 + + 15 / + + 8
----
13

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

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

query I rowsort
SELECT - + CASE WHEN - 58 > NULL THEN NULL WHEN NOT - 35 <= + + 15 THEN - 56 + 84 ELSE + 88 END AS col1
----
-88

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT COALESCE ( - 52, - 53 ) + + + COUNT( - - 99 ) AS col2
----
-51

skipif mysql # not compatible
query I rowsort label-821
SELECT COALESCE ( - 52, - 53 ) + + + COUNT ( - - 99 ) AS col2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-822
SELECT 63 + + CAST( NULL AS SIGNED ) * - - NULLIF ( - - 76, + 71 * 37 + - - 11 ) * + 26 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT 63 + + CAST ( NULL AS INTEGER ) * - - NULLIF ( - - 76, + 71 * 37 + - - 11 ) * + 26 AS col0
----
NULL

query II rowsort
SELECT DISTINCT - - 41, 96 + + + 58 col0
----
41
154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-824
SELECT + + COALESCE ( + 79, + ( + - ( + - 8 ) ) DIV - 2 + COUNT( * ) + - - ( CAST( NULL AS SIGNED ) ) )
----
79

skipif mysql # not compatible
query I rowsort label-824
SELECT + + COALESCE ( + 79, + ( + - ( + - 8 ) ) / - 2 + COUNT ( * ) + - - ( CAST ( NULL AS INTEGER ) ) )
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-825
SELECT ALL - 83 AS col0, COALESCE ( - 23, ( + 61 ) * 45 DIV - NULLIF ( + CAST( NULL AS SIGNED ), - + CASE + 10 WHEN 23 THEN + 84 + + COUNT( * ) WHEN - + 16 THEN + ( + ( + NULLIF ( + 80, + + 26 * + + ( - 23 ) + - - 84 DIV 17 + + 71 DIV + MAX( ALL + - 13 ) ) ) ) * - - 68 ELSE NULL END * + 2 - - COUNT( DISTINCT 24 ) ) )
----
-83
-23

skipif mysql # not compatible
query II rowsort label-825
SELECT ALL - 83 AS col0, COALESCE ( - 23, ( + 61 ) * 45 / - NULLIF ( + CAST ( NULL AS INTEGER ), - + CASE + 10 WHEN 23 THEN + 84 + + COUNT ( * ) WHEN - + 16 THEN + ( + ( + NULLIF ( + 80, + + 26 * + + ( - 23 ) + - - 84 / 17 + + 71 / + MAX ( ALL + - 13 ) ) ) ) * - - 68 ELSE NULL END * + 2 - - COUNT ( DISTINCT 24 ) ) )
----
-83
-23

query I rowsort
SELECT ALL - ( - 35 ) * 41 + 98
----
1533

onlyif mysql # aggregate syntax: 
query I rowsort label-827
SELECT MIN( ALL 68 ) * - COALESCE ( - COUNT( * ), 66 )
----
68

skipif mysql # not compatible
query I rowsort label-827
SELECT MIN ( ALL 68 ) * - COALESCE ( - COUNT ( * ), 66 )
----
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-828
SELECT ALL - 76 AS col2, 1 DIV + + 12 + - - 94 + SUM( ALL - 31 ) * + - 16 col1
----
-76
590

skipif mysql # not compatible
query II rowsort label-828
SELECT ALL - 76 AS col2, 1 / + + 12 + - - 94 + SUM ( ALL - 31 ) * + - 16 col1
----
-76
590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT NULLIF ( - NULLIF ( + - ( - CAST( COUNT( * ) AS SIGNED ) ), - + 40 * - + COALESCE ( + 30, - 42 ) + + COUNT( * ) ), + SUM( DISTINCT - ( 50 ) ) * - COUNT( * ) * 10 )
----
-1

skipif mysql # not compatible
query I rowsort label-829
SELECT NULLIF ( - NULLIF ( + - ( - CAST ( COUNT ( * ) AS INTEGER ) ), - + 40 * - + COALESCE ( + 30, - 42 ) + + COUNT ( * ) ), + SUM ( DISTINCT - ( 50 ) ) * - COUNT ( * ) * 10 )
----
-1

query II rowsort
SELECT + 41 AS col1, - 12 * + 18 + 68 AS col1
----
41
-148

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT ALL - 27 DIV - 68 * 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-832
SELECT ALL - 27 / - 68 * 56 AS col0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-835
SELECT 54 DIV NULLIF ( 93, - 37 ) AS col2, - 35 - + - 1 + 68 - + 81 + + + 9 - - COUNT( * ) * + 87 DIV - 93 AS col1
----
0
-38

skipif mysql # not compatible
query II rowsort label-835
SELECT 54 / NULLIF ( 93, - 37 ) AS col2, - 35 - + - 1 + 68 - + 81 + + + 9 - - COUNT ( * ) * + 87 / - 93 AS col1
----
0
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT ALL 26 + - 92 + COUNT( DISTINCT - 55 )
----
-65

skipif mysql # not compatible
query I rowsort label-836
SELECT ALL 26 + - 92 + COUNT ( DISTINCT - 55 )
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT - SUM( ALL - - ( 85 ) ) AS col2
----
-85

skipif mysql # not compatible
query I rowsort label-837
SELECT - SUM ( ALL - - ( 85 ) ) AS col2
----
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-838
SELECT DISTINCT 55 + + - COUNT( * ), - COUNT( * ) * - + 99 + 15 + 48 AS col2
----
54
162

skipif mysql # not compatible
query II rowsort label-838
SELECT DISTINCT 55 + + - COUNT ( * ), - COUNT ( * ) * - + 99 + 15 + 48 AS col2
----
54
162

query I rowsort
SELECT 80 + - - 46 AS col1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-840
SELECT ALL 90 + COUNT( * ) * - NULLIF ( + 92, 24 + COUNT( * ) ) + 5 + + 42 * 29
----
1221

skipif mysql # not compatible
query I rowsort label-840
SELECT ALL 90 + COUNT ( * ) * - NULLIF ( + 92, 24 + COUNT ( * ) ) + 5 + + 42 * 29
----
1221

query I rowsort
SELECT 89 + + - 96 * - 75
----
7289

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

query I rowsort
SELECT 63 * + 25 AS col1
----
1575

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT 5 + + COALESCE ( + CASE + + 6 WHEN + + 36 THEN NULL ELSE - + 68 END, - 32 * COUNT( * ) )
----
-63

skipif mysql # not compatible
query I rowsort label-844
SELECT 5 + + COALESCE ( + CASE + + 6 WHEN + + 36 THEN NULL ELSE - + 68 END, - 32 * COUNT ( * ) )
----
-63

query I rowsort
SELECT - CASE + ( - 52 ) WHEN + + COALESCE ( + 40, + 15 ) THEN - - 94 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT ALL + 0 + 13 + + NULLIF ( - - 85, - SUM( 1 ) ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-846
SELECT ALL + 0 + 13 + + NULLIF ( - - 85, - SUM ( 1 ) ) AS col1
----
98

query I rowsort
SELECT ALL - 36 + + + 81 + + + 96 * 22 * - 8
----
-16851

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

query I rowsort
SELECT DISTINCT 42 + + 95 * 83
----
7927

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - MAX( + 93 ) * 58 + - - SUM( DISTINCT - 46 )
----
-5440

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - MAX ( + 93 ) * 58 + - - SUM ( DISTINCT - 46 )
----
-5440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-851
SELECT - + 44 DIV - 9 col0, - CAST( NULL AS SIGNED ) AS col0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-851
SELECT - + 44 / - 9 col0, - CAST ( NULL AS INTEGER ) AS col0
----
4
NULL

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

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

query I rowsort
SELECT DISTINCT - 33 * + CASE - 84 WHEN + 66 THEN 54 WHEN - - 73 + - + 0 - + + 35 + + 80 + - - 82 THEN NULL ELSE NULL END
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-855
SELECT - 7 + 80 + + CAST( - 79 AS SIGNED ) * - 67 * + MAX( DISTINCT - CAST( - 96 AS SIGNED ) ) AS col1
----
508201

skipif mysql # not compatible
query I rowsort label-855
SELECT - 7 + 80 + + CAST ( - 79 AS INTEGER ) * - 67 * + MAX ( DISTINCT - CAST ( - 96 AS INTEGER ) ) AS col1
----
508201

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-856
SELECT ALL - + CAST( NULL AS DECIMAL ) * - 12 - + - 73 + 15 * 33 - 94 + + 1 * - - ( + - 76 ) col2, CASE 63 WHEN + COUNT( * ) + + 64 + MAX( ALL 33 ) THEN - ( - + 23 ) END / + 30 + + + 25
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-856
SELECT ALL - + CAST ( NULL AS REAL ) * - 12 - + - 73 + 15 * 33 - 94 + + 1 * - - ( + - 76 ) col2, CASE 63 WHEN + COUNT ( * ) + + 64 + MAX ( ALL 33 ) THEN - ( - + 23 ) END / + 30 + + + 25
----
NULL
NULL

query I rowsort
SELECT - 60 * + 51 AS col2
----
-3060

query I rowsort
SELECT DISTINCT + - 30 col0
----
-30

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

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

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

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

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

query II rowsort
SELECT + - ( - 82 ) AS col1, + 57
----
82
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-863
SELECT + + 37 * + CAST( NULL AS DECIMAL ) * - 46
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT + + 37 * + CAST ( NULL AS REAL ) * - 46
----
NULL

query I rowsort
SELECT + - 79 * + 75 * 68
----
-402900

onlyif mysql # aggregate syntax: 
query I rowsort label-865
SELECT - - 68 - - MIN( DISTINCT 49 ) AS col1
----
117

skipif mysql # not compatible
query I rowsort label-865
SELECT - - 68 - - MIN ( DISTINCT 49 ) AS col1
----
117

query I rowsort
SELECT + - CASE - AVG ( - - 35 ) WHEN - 47 THEN NULL WHEN 9 THEN 94 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT + ( - - 99 ) * - 38 + + 18 + + COUNT( * ) + + + 36 * + - 23 + + 80 AS col2
----
-4491

skipif mysql # not compatible
query I rowsort label-867
SELECT + ( - - 99 ) * - 38 + + 18 + + COUNT ( * ) + + + 36 * + - 23 + + 80 AS col2
----
-4491

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-869
SELECT - 76 * - 24 + - - CAST( NULL AS SIGNED ) * + - 96 * - + 30 * 97
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT - 76 * - 24 + - - CAST ( NULL AS INTEGER ) * + - 96 * - + 30 * 97
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-870
SELECT - CASE + 24 WHEN + 56 THEN - 70 ELSE 19 END * - 74 + + MAX( - 98 ) AS col1, - 0 + + 60
----
1308
60

skipif mysql # not compatible
query II rowsort label-870
SELECT - CASE + 24 WHEN + 56 THEN - 70 ELSE 19 END * - 74 + + MAX ( - 98 ) AS col1, - 0 + + 60
----
1308
60

query I rowsort
SELECT DISTINCT - CASE 64 WHEN + 2 THEN NULL ELSE + 84 END * 23
----
-1932

query I rowsort
SELECT ALL 23 * COALESCE ( 14, - 20, - - 14 * + 74, + - 48, + 5 * + - 94 * - 36 ) + - - 37 AS col0
----
359

onlyif mysql # DIV for integer division: 
query I rowsort label-873
SELECT ALL 60 * - 96 + - 24 + + 64 * + + 9 + 98 + 34 DIV 37
----
-5110

skipif mysql # not compatible
query I rowsort label-873
SELECT ALL 60 * - 96 + - 24 + + 64 * + + 9 + 98 + 34 / 37
----
-5110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-874
SELECT DISTINCT 85 * + CAST( - 94 AS SIGNED ) + + - 35 + NULLIF ( + + COUNT( * ), 11 + - + 38 ) AS col1, + 34 AS col1
----
-8024
34

skipif mysql # not compatible
query II rowsort label-874
SELECT DISTINCT 85 * + CAST ( - 94 AS INTEGER ) + + - 35 + NULLIF ( + + COUNT ( * ), 11 + - + 38 ) AS col1, + 34 AS col1
----
-8024
34

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT SUM( DISTINCT 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-875
SELECT SUM ( DISTINCT 94 ) AS col1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT COUNT( * ) * + 27 + + + 16 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-876
SELECT COUNT ( * ) * + 27 + + + 16 AS col0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-877
SELECT ALL 60 * 70 * NULLIF ( - 44, - + MAX( DISTINCT 49 ) ) + + + 93
----
-184707

skipif mysql # not compatible
query I rowsort label-877
SELECT ALL 60 * 70 * NULLIF ( - 44, - + MAX ( DISTINCT 49 ) ) + + + 93
----
-184707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT - COALESCE ( 92, - 37, CAST( + + NULLIF ( + 76, + 71 ) AS SIGNED ) * - - 48 + + + ( 46 ), - 65, - ( COALESCE ( - + 97, - + 24 * - NULLIF ( - MAX( DISTINCT + 72 ), + 44 ) + + + 21, 2 + + + ( 22 ) ) ) DIV - AVG ( + 97 ) + 99 + 31 ) AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-878
SELECT - COALESCE ( 92, - 37, CAST ( + + NULLIF ( + 76, + 71 ) AS INTEGER ) * - - 48 + + + ( 46 ), - 65, - ( COALESCE ( - + 97, - + 24 * - NULLIF ( - MAX ( DISTINCT + 72 ), + 44 ) + + + 21, 2 + + + ( 22 ) ) ) / - AVG ( + 97 ) + 99 + 31 ) AS col1
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-879
SELECT + NULLIF ( - 66, + ( + 93 ) ) + + + CAST( NULL AS SIGNED ) * - + 13 * 69 + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-879
SELECT + NULLIF ( - 66, + ( + 93 ) ) + + + CAST ( NULL AS INTEGER ) * - + 13 * 69 + - COUNT ( * ) AS col2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT + 7 + - - MIN( ALL + 75 ) * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-881
SELECT + 7 + - - MIN ( ALL + 75 ) * + COUNT ( * )
----
82

query II rowsort
SELECT DISTINCT 37 + 85 + + 91 * - 59 + 37 AS col2, 0 * 12 col0
----
-5210
0

query I rowsort
SELECT DISTINCT 1 - - 40 * - 4
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-884
SELECT ALL COUNT( * ) - - 18
----
19

skipif mysql # not compatible
query I rowsort label-884
SELECT ALL COUNT ( * ) - - 18
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT + - CAST( 85 AS SIGNED ) * + 14 + COUNT( * ) AS col0
----
-1189

skipif mysql # not compatible
query I rowsort label-885
SELECT + - CAST ( 85 AS INTEGER ) * + 14 + COUNT ( * ) AS col0
----
-1189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-886
SELECT - - 84 * + 86 - - 52 + - - 95 + COUNT( * ) DIV - + 98 AS col0
----
7371

skipif mysql # not compatible
query I rowsort label-886
SELECT - - 84 * + 86 - - 52 + - - 95 + COUNT ( * ) / - + 98 AS col0
----
7371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-887
SELECT + 9 + - 13 * + 80 * + - CAST( - 53 AS SIGNED )
----
-55111

skipif mysql # not compatible
query I rowsort label-887
SELECT + 9 + - 13 * + 80 * + - CAST ( - 53 AS INTEGER )
----
-55111

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

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

query II rowsort
SELECT - 63 AS col2, 84
----
-63
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-890
SELECT + COALESCE ( - 8, - - 88 * + COUNT( * ) * + 4 + + 82 * - 49 + 13 * - 50 DIV + - 46 ) + + 39 AS col2
----
31

skipif mysql # not compatible
query I rowsort label-890
SELECT + COALESCE ( - 8, - - 88 * + COUNT ( * ) * + 4 + + 82 * - 49 + 13 * - 50 / + - 46 ) + + 39 AS col2
----
31

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

onlyif mysql # aggregate syntax: 
query II rowsort label-892
SELECT ALL + 3 col2, + COUNT( * ) AS col0
----
3
1

skipif mysql # not compatible
query II rowsort label-892
SELECT ALL + 3 col2, + COUNT ( * ) AS col0
----
3
1

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

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

query I rowsort
SELECT - - COALESCE ( - - 7, - - 24 ) + - 82 - + + ( 99 ) AS col1
----
-174

onlyif mysql # aggregate syntax: 
query II rowsort label-895
SELECT COUNT( * ), 31 * - COUNT( * ) * - - 22 AS col1
----
1
-682

skipif mysql # not compatible
query II rowsort label-895
SELECT COUNT ( * ), 31 * - COUNT ( * ) * - - 22 AS col1
----
1
-682

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-897
SELECT 71 * - 48 + - 61 + + + CAST( NULL AS SIGNED ) * + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-897
SELECT 71 * - 48 + - 61 + + + CAST ( NULL AS INTEGER ) * + 34
----
NULL

query I rowsort
SELECT - 94 * + - 77
----
7238

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-899
SELECT ALL 3 DIV - 19 + - COUNT( * ) * 51
----
-51

skipif mysql # not compatible
query I rowsort label-899
SELECT ALL 3 / - 19 + - COUNT ( * ) * 51
----
-51

query I rowsort
SELECT - 52 + - 4
----
-56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-901
SELECT ALL NULLIF ( + + 74, + + 66 * - AVG ( ALL + 32 ) ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL NULLIF ( + + 74, + + 66 * - AVG ( ALL + 32 ) ) * + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT - + COALESCE ( + - 50, - 81 ) DIV NULLIF ( 8, 33 - - 7 ) AS col0
----
6

skipif mysql # not compatible
query I rowsort label-902
SELECT - + COALESCE ( + - 50, - 81 ) / NULLIF ( 8, 33 - - 7 ) AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-903
SELECT DISTINCT - COALESCE ( 6, - CAST( NULL AS SIGNED ) + - 95 / 3 / + + ( + 2 ) ) / CAST( NULL AS SIGNED ) + - CASE - 78 WHEN + COUNT( * ) THEN NULL WHEN + - 88 THEN - 83 * - 29 + 77 + 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-903
SELECT DISTINCT - COALESCE ( 6, - CAST ( NULL AS INTEGER ) + - 95 / 3 / + + ( + 2 ) ) / CAST ( NULL AS INTEGER ) + - CASE - 78 WHEN + COUNT ( * ) THEN NULL WHEN + - 88 THEN - 83 * - 29 + 77 + 6 END AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-904
SELECT ALL - COUNT( - 51 ) DIV COUNT( - 4 ) + + - 46 AS col0
----
-47

skipif mysql # not compatible
query I rowsort label-904
SELECT ALL - COUNT ( - 51 ) / COUNT ( - 4 ) + + - 46 AS col0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT + SUM( DISTINCT - 69 ) * + 20 + - 24 + - 58 col1
----
-1462

skipif mysql # not compatible
query I rowsort label-905
SELECT + SUM ( DISTINCT - 69 ) * + 20 + - 24 + - 58 col1
----
-1462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-906
SELECT ALL + 71 DIV + 46 * + + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-906
SELECT ALL + 71 / + 46 * + + COUNT ( * )
----
1

query I rowsort
SELECT ALL 56 * - 50 + 99
----
-2701

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-909
SELECT + COUNT( * ) col0, + 62 + 92 DIV + + 55
----
1
63

skipif mysql # not compatible
query II rowsort label-909
SELECT + COUNT ( * ) col0, + 62 + 92 / + + 55
----
1
63

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

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL + 72 / COUNT ( * ) / + 78 AS col0
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-912
SELECT MIN( ALL + 64 ) * - 78 + - - 36 + - 42 - + 3 - 57 + - COUNT( * ) * + COALESCE ( - COUNT( * ), + - 37, ( + 68 ) * CASE - 82 WHEN + + 33 * + ( + 4 ) + - + 58 + 20 * 69 THEN + 40 WHEN + CASE + 0 WHEN 58 THEN - 48 + + - 98 - + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - + 40 * - 87 WHEN 6 THEN NULL ELSE + 93 * + 22 + - + 31 + 66 DIV 24 * 41 END * + 2 + AVG ( 11 + 75 * + 53 ) THEN 89 WHEN + 27 + - 10 THEN NULL ELSE NULL END DIV 33 - ( 64 ) ) AS col0
----
-5057

skipif mysql # not compatible
query I rowsort label-912
SELECT MIN ( ALL + 64 ) * - 78 + - - 36 + - 42 - + 3 - 57 + - COUNT ( * ) * + COALESCE ( - COUNT ( * ), + - 37, ( + 68 ) * CASE - 82 WHEN + + 33 * + ( + 4 ) + - + 58 + 20 * 69 THEN + 40 WHEN + CASE + 0 WHEN 58 THEN - 48 + + - 98 - + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 40 * - 87 WHEN 6 THEN NULL ELSE + 93 * + 22 + - + 31 + 66 / 24 * 41 END * + 2 + AVG ( 11 + 75 * + 53 ) THEN 89 WHEN + 27 + - 10 THEN NULL ELSE NULL END / 33 - ( 64 ) ) AS col0
----
-5057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-913
SELECT - NULLIF ( 17, + 77 ) DIV CAST( + 51 AS SIGNED ) * + 6 * - - COUNT( * ) + - + 6 + 73 * + - MIN( DISTINCT + 90 ) AS col0
----
-6576

skipif mysql # not compatible
query I rowsort label-913
SELECT - NULLIF ( 17, + 77 ) / CAST ( + 51 AS INTEGER ) * + 6 * - - COUNT ( * ) + - + 6 + 73 * + - MIN ( DISTINCT + 90 ) AS col0
----
-6576

query I rowsort
SELECT ALL 24 * 78 + 46 AS col1
----
1918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-915
SELECT NULLIF ( + - 67, + CASE + + 94 WHEN COUNT( * ) * + ( - SUM( ALL - 95 ) ) + - CAST( + + 47 AS SIGNED ) THEN NULL WHEN + 13 + - 16 + 67 - - 90 * - - 9 * - 59 * + 5 THEN 3 / + 40 + - 24 * - 18 ELSE NULL END ), + 57 col1
----
-67
57

skipif mysql # not compatible
query II rowsort label-915
SELECT NULLIF ( + - 67, + CASE + + 94 WHEN COUNT ( * ) * + ( - SUM ( ALL - 95 ) ) + - CAST ( + + 47 AS INTEGER ) THEN NULL WHEN + 13 + - 16 + 67 - - 90 * - - 9 * - 59 * + 5 THEN 3 / + 40 + - 24 * - 18 ELSE NULL END ), + 57 col1
----
-67
57

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

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

query I rowsort
SELECT NULLIF ( 63, - 27 )
----
63

query I rowsort
SELECT ALL - 9 * + - 64 AS col1
----
576

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

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

query II rowsort
SELECT DISTINCT + 37 - 97 + + 48 + - 13, 43 + + - 13 AS col0
----
-25
30

query I rowsort
SELECT ALL - 82 * + 24 AS col1
----
-1968

query II rowsort
SELECT 27, 69 * - 48 * - 12 AS col2
----
27
39744

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

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

query II rowsort
SELECT 35 AS col2, 46 AS col2
----
35
46

query II rowsort
SELECT ALL 0 AS col0, 17 AS col2
----
0
17

query I rowsort
SELECT 98 - 11
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-927
SELECT DISTINCT + 16 DIV - 54 + 86 + 42 AS col1, + COALESCE ( + 52, - 7 ) col0
----
128
52

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT + 16 / - 54 + 86 + 42 AS col1, + COALESCE ( + 52, - 7 ) col0
----
128
52

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-929
SELECT ALL COALESCE ( + NULLIF ( + COUNT( * ), - - CAST( + 24 AS SIGNED ) ), + CAST( NULL AS SIGNED ) )
----
1

skipif mysql # not compatible
query I rowsort label-929
SELECT ALL COALESCE ( + NULLIF ( + COUNT ( * ), - - CAST ( + 24 AS INTEGER ) ), + CAST ( NULL AS INTEGER ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT ALL + 72 DIV - 62 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + 72 / - 62 AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-931
SELECT ALL - 48 AS col1, COUNT( * ) * 28
----
-48
28

skipif mysql # not compatible
query II rowsort label-931
SELECT ALL - 48 AS col1, COUNT ( * ) * 28
----
-48
28

query I rowsort
SELECT ALL + 23 * - 7 * - ( - + 93 ) * - + 38 - - + 82 AS col2
----
569056

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-933
SELECT + ( - - CAST( - + 3 AS SIGNED ) ) DIV - 57 * - 57 + - + 58 col2, 42 AS col0
----
-58
42

skipif mysql # not compatible
query II rowsort label-933
SELECT + ( - - CAST ( - + 3 AS INTEGER ) ) / - 57 * - 57 + - + 58 col2, 42 AS col0
----
-58
42

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT 40 * - MAX( + 88 )
----
-3520

skipif mysql # not compatible
query I rowsort label-934
SELECT 40 * - MAX ( + 88 )
----
-3520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT - 83 * + 87 + CAST( NULL AS SIGNED ) * + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-935
SELECT - 83 * + 87 + CAST ( NULL AS INTEGER ) * + - 96
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - 29 + - + 45 - + 91
----
-165

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

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 18
----
NULL

query I rowsort
SELECT DISTINCT 37 + + - 9 + + 29
----
57

query II rowsort
SELECT DISTINCT - 27, 30 AS col2
----
-27
30

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL 74 + - MAX( DISTINCT 47 )
----
27

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL 74 + - MAX ( DISTINCT 47 )
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL + 86 + CASE - + 87 WHEN - 97 THEN COUNT( * ) / + 87 ELSE NULL END + - 27 * - 59
----
NULL

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + 86 + CASE - + 87 WHEN - 97 THEN COUNT ( * ) / + 87 ELSE NULL END + - 27 * - 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT 99 * COUNT( DISTINCT - 56 )
----
99

skipif mysql # not compatible
query I rowsort label-944
SELECT 99 * COUNT ( DISTINCT - 56 )
----
99

query II rowsort
SELECT DISTINCT 73 * - 2 AS col2, + 20
----
-146
20

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT + 45 * COUNT( * ) + 82 + - COUNT( * ) + CASE + - 35 WHEN 20 * - 67 + - 37 THEN + + 84 + - 78 + - 42 WHEN 1 + + ( + 76 ) THEN + 2 ELSE NULL END + - 76 * - COALESCE ( + + 59, + COALESCE ( - 59, - 44 + + CASE WHEN + 50 IS NULL THEN NULL WHEN NOT 42 * ( 10 ) + - 14 IS NULL THEN 48 - - COUNT( * ) + - + COALESCE ( 95, COALESCE ( - - 96, + 26 ) + + SUM( DISTINCT + 10 ) * 51 ) END / + 73 ) * SUM( 53 * + 82 ) ) - ( 6 ) * 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-946
SELECT + 45 * COUNT ( * ) + 82 + - COUNT ( * ) + CASE + - 35 WHEN 20 * - 67 + - 37 THEN + + 84 + - 78 + - 42 WHEN 1 + + ( + 76 ) THEN + 2 ELSE NULL END + - 76 * - COALESCE ( + + 59, + COALESCE ( - 59, - 44 + + CASE WHEN + 50 IS NULL THEN NULL WHEN NOT 42 * ( 10 ) + - 14 IS NULL THEN 48 - - COUNT ( * ) + - + COALESCE ( 95, COALESCE ( - - 96, + 26 ) + + SUM ( DISTINCT + 10 ) * 51 ) END / + 73 ) * SUM ( 53 * + 82 ) ) - ( 6 ) * 74 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-947
SELECT ALL + CASE + + 56 WHEN + ( - ( CAST( - 87 AS SIGNED ) ) ) - - 99 THEN NULL WHEN - ( 69 ) * - + 16 / + 52 * - 98 THEN - + 6 WHEN 36 THEN + 48 + 47 ELSE - - 37 END - 22
----
15

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL + CASE + + 56 WHEN + ( - ( CAST ( - 87 AS INTEGER ) ) ) - - 99 THEN NULL WHEN - ( 69 ) * - + 16 / + 52 * - 98 THEN - + 6 WHEN 36 THEN + 48 + 47 ELSE - - 37 END - 22
----
15

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-950
SELECT CAST( - 66 AS SIGNED ) * - 17 + - - 62 * + COUNT( * ) AS col2, 20 + + 25
----
1184
45

skipif mysql # not compatible
query II rowsort label-950
SELECT CAST ( - 66 AS INTEGER ) * - 17 + - - 62 * + COUNT ( * ) AS col2, 20 + + 25
----
1184
45

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT COUNT( * ) * + NULLIF ( COUNT( * ), 37 * - 92 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-951
SELECT COUNT ( * ) * + NULLIF ( COUNT ( * ), 37 * - 92 ) AS col1
----
1

query I rowsort
SELECT 23 * 50 + + COALESCE ( - 95, 37 )
----
1055

query I rowsort
SELECT 88 * - 44 AS col0
----
-3872

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-955
SELECT 98 + 77 + - + 93 DIV 59 * ( - COUNT( 22 ) ) AS col0, + 80 + + 71 AS col1
----
176
151

skipif mysql # not compatible
query II rowsort label-955
SELECT 98 + 77 + - + 93 / 59 * ( - COUNT ( 22 ) ) AS col0, + 80 + + 71 AS col1
----
176
151

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-956
SELECT NULLIF ( + - 6, CAST( NULL AS SIGNED ) ) DIV - 59
----
0

skipif mysql # not compatible
query I rowsort label-956
SELECT NULLIF ( + - 6, CAST ( NULL AS INTEGER ) ) / - 59
----
0

query I rowsort
SELECT 7 + 93
----
100

query I rowsort
SELECT ALL + 51 * - - 31 col0
----
1581

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-959
SELECT COUNT( * ) * COUNT( * ) DIV - 40 * - - 52 - 33, ( 35 ) + CASE - COUNT( * ) WHEN + 16 THEN NULL WHEN + + NULLIF ( + 68, - ( + - MIN( - 29 ) ) DIV - - 63 + - 8 + + COUNT( * ) + - + 22 ) THEN - 31 ELSE NULL END + 71 * + 1 AS col0
----
-33
NULL

skipif mysql # not compatible
query II rowsort label-959
SELECT COUNT ( * ) * COUNT ( * ) / - 40 * - - 52 - 33, ( 35 ) + CASE - COUNT ( * ) WHEN + 16 THEN NULL WHEN + + NULLIF ( + 68, - ( + - MIN ( - 29 ) ) / - - 63 + - 8 + + COUNT ( * ) + - + 22 ) THEN - 31 ELSE NULL END + 71 * + 1 AS col0
----
-33
NULL

query II rowsort
SELECT ALL ( - 22 ), - COALESCE ( - 50, - + 14 * + 69 ) AS col0
----
-22
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT - + CAST( + 27 AS SIGNED ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-961
SELECT - + CAST ( + 27 AS INTEGER ) AS col1
----
-27

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-964
SELECT COUNT( + - 21 ) + + + 52 + - 6 DIV - 26 AS col0
----
53

skipif mysql # not compatible
query I rowsort label-964
SELECT COUNT ( + - 21 ) + + + 52 + - 6 / - 26 AS col0
----
53

query I rowsort
SELECT + 7 + 11 AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT 83 - - COUNT( * ) * CAST( NULL AS SIGNED ) * + - 36 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-966
SELECT 83 - - COUNT ( * ) * CAST ( NULL AS INTEGER ) * + - 36 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL + ( AVG ( + 21 ) ) * + + CASE MAX( DISTINCT - 55 ) WHEN - 51 * + 16 THEN - 88 WHEN - - 10 * + - 85 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL + ( AVG ( + 21 ) ) * + + CASE MAX ( DISTINCT - 55 ) WHEN - 51 * + 16 THEN - 88 WHEN - - 10 * + - 85 THEN NULL END
----
NULL

query I rowsort
SELECT + 34 + + 3 + 84 AS col0
----
121

query I rowsort
SELECT ALL + 0 + - 93 + - 49 - + 36
----
-178

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

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

query II rowsort
SELECT DISTINCT + 17 * + + 18, 30 AS col0
----
306
30

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

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

query I rowsort
SELECT 99 * 75 * + + 38 AS col2
----
282150

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT SUM( ALL 22 ) AS col0
----
22

skipif mysql # not compatible
query I rowsort label-974
SELECT SUM ( ALL 22 ) AS col0
----
22

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

skipif mysql # not compatible
query I rowsort label-975
SELECT MAX ( ALL 55 )
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-977
SELECT + 16 * + 21 + + COUNT( * )
----
337

skipif mysql # not compatible
query I rowsort label-977
SELECT + 16 * + 21 + + COUNT ( * )
----
337

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT MAX( DISTINCT - - 7 ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-978
SELECT MAX ( DISTINCT - - 7 ) AS col0
----
7

query II rowsort
SELECT + 32, 65 AS col1
----
32
65

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-981
SELECT + CAST( NULL AS SIGNED ) * + 84 * + NULLIF ( - 61, - - COUNT( * ) / - 8 / - 4 + - - 78 + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT + CAST ( NULL AS INTEGER ) * + 84 * + NULLIF ( - 61, - - COUNT ( * ) / - 8 / - 4 + - - 78 + + 97 )
----
NULL

query I rowsort
SELECT - 48 * + 31 AS col0
----
-1488

query II rowsort
SELECT ALL + 62, - ( - 62 )
----
62
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT COUNT( - - 65 )
----
1

skipif mysql # not compatible
query I rowsort label-985
SELECT COUNT ( - - 65 )
----
1

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

query I rowsort
SELECT + 12 * - + 81
----
-972

query I rowsort
SELECT ALL + - 51 + 36 AS col0
----
-15

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

skipif mysql # not compatible
query I rowsort label-989
SELECT + 55 / + COUNT ( * ) AS col1
----
55

query I rowsort
SELECT - - 45 + + ( 80 ) * + 79
----
6365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT DISTINCT - - 21 + + 68 + - 23 * + - CAST( NULL AS SIGNED ) / + 16
----
NULL

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT - - 21 + + 68 + - 23 * + - CAST ( NULL AS INTEGER ) / + 16
----
NULL

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-994
SELECT 1 AS col1, - 23 * CAST( NULL AS SIGNED )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-994
SELECT 1 AS col1, - 23 * CAST ( NULL AS INTEGER )
----
1
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-995
SELECT ALL - - 79 + - - 23 DIV - 93, - 33 col1
----
79
-33

skipif mysql # not compatible
query II rowsort label-995
SELECT ALL - - 79 + - - 23 / - 93, - 33 col1
----
79
-33

query I rowsort
SELECT DISTINCT + + ( 17 ) + + + 19 AS col2
----
36

query I rowsort
SELECT ALL + 49 + + 59
----
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-998
SELECT - COUNT( * ) * COUNT( * ) + CAST( + - NULLIF ( - + 32, 28 ) AS SIGNED ) AS col0, + 40
----
31
40

skipif mysql # not compatible
query II rowsort label-998
SELECT - COUNT ( * ) * COUNT ( * ) + CAST ( + - NULLIF ( - + 32, 28 ) AS INTEGER ) AS col0, + 40
----
31
40

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

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

query I rowsort
SELECT - - 11 AS col1
----
11

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

skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL + - COUNT ( - 98 ) - - COUNT ( * ) AS col0
----
0

query I rowsort
SELECT + + 77 * + CASE 50 WHEN + ( + - 11 ) * + NULLIF ( - + ( + - 54 ), AVG ( ALL 3 ) ) - 79 THEN 3 * + - 8 / + 42 + - - NULLIF ( 51, 12 ) ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 67 - + 91 AS col2
----
-158

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT 38 * 70 * - COUNT( * ) AS col1
----
-2660

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT 38 * 70 * - COUNT ( * ) AS col1
----
-2660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1006
SELECT DISTINCT MIN( ALL 63 ) DIV + + 49 - + - CAST( - 66 AS SIGNED ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT MIN ( ALL 63 ) / + + 49 - + - CAST ( - 66 AS INTEGER ) AS col1
----
-65

query I rowsort
SELECT ALL 73 * - 32 AS col1
----
-2336

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1008
SELECT + COUNT( * ) DIV - 76 + - 52 + + 57
----
5

skipif mysql # not compatible
query I rowsort label-1008
SELECT + COUNT ( * ) / - 76 + - 52 + + 57
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1009
SELECT + CASE - - 40 WHEN + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) THEN NULL WHEN - - 36 + + 76 + COUNT( * ) * - 5 * - - ( + 38 ) / - 80 THEN - 99 * 75 + ( COUNT( * ) ) + - 18 * - + 74 ELSE - - 84 END
----
84

skipif mysql # not compatible
query I rowsort label-1009
SELECT + CASE - - 40 WHEN + + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) THEN NULL WHEN - - 36 + + 76 + COUNT ( * ) * - 5 * - - ( + 38 ) / - 80 THEN - 99 * 75 + ( COUNT ( * ) ) + - 18 * - + 74 ELSE - - 84 END
----
84

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

query I rowsort
SELECT + 31 * + 7 AS col2
----
217

query I rowsort
SELECT ALL 37 * 1 AS col2
----
37

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1015
SELECT + CAST( NULL AS SIGNED ) + - 59 / + + 66 * - - COUNT( * ) - + + 78 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT + CAST ( NULL AS INTEGER ) + - 59 / + + 66 * - - COUNT ( * ) - + + 78 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1016
SELECT ( + 26 ) AS col0, MAX( + 63 )
----
26
63

skipif mysql # not compatible
query II rowsort label-1016
SELECT ( + 26 ) AS col0, MAX ( + 63 )
----
26
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1017
SELECT DISTINCT - COUNT( * ) * - 65 * 2 * 59 AS col0, 54 + - 14 + - + 17 * COALESCE ( - 73, - + 61 ) * + CAST( 44 AS SIGNED ) * - + 62 + + 75 + - COUNT( * ) - - 93 * - 88 * - ( + 97 ) + - ( - - 63 ) * - 46 col2
----
7670
-2588588

skipif mysql # not compatible
query II rowsort label-1017
SELECT DISTINCT - COUNT ( * ) * - 65 * 2 * 59 AS col0, 54 + - 14 + - + 17 * COALESCE ( - 73, - + 61 ) * + CAST ( 44 AS INTEGER ) * - + 62 + + 75 + - COUNT ( * ) - - 93 * - 88 * - ( + 97 ) + - ( - - 63 ) * - 46 col2
----
7670
-2588588

query I rowsort
SELECT DISTINCT + 78 * + 16 col2
----
1248

onlyif mysql # DIV for integer division: 
query I rowsort label-1019
SELECT + 13 DIV - 52 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT + 13 / - 52 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1020
SELECT + ( COUNT( + - ( - + COALESCE ( + ( + - 88 ), - 46 * + 88 + ( 91 ) ) ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-1020
SELECT + ( COUNT ( + - ( - + COALESCE ( + ( + - 88 ), - 46 * + 88 + ( 91 ) ) ) ) )
----
1

query I rowsort
SELECT ALL + 48 * + 58 + + 69 AS col2
----
2853

query II rowsort
SELECT + 65 - + + 19 AS col2, 61 * - 73 AS col2
----
46
-4453

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL NULLIF ( - 39, COUNT( * ) ) * - 38 AS col0
----
1482

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL NULLIF ( - 39, COUNT ( * ) ) * - 38 AS col0
----
1482

onlyif mysql # DIV for integer division: 
query I rowsort label-1026
SELECT + 89 DIV 56 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1026
SELECT + 89 / 56 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1027
SELECT ALL - 78 * - + COUNT( * ) + - + 59 + COUNT( * ) + 62 + + 15 DIV CAST( - 44 AS SIGNED ) * + 45 * + + MAX( ALL + ( - - 20 ) ) + - 59 + + 88 DIV + 55 col1
----
24

skipif mysql # not compatible
query I rowsort label-1027
SELECT ALL - 78 * - + COUNT ( * ) + - + 59 + COUNT ( * ) + 62 + + 15 / CAST ( - 44 AS INTEGER ) * + 45 * + + MAX ( ALL + ( - - 20 ) ) + - 59 + + 88 / + 55 col1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT + - COUNT( * ) + + COUNT( * ) - - + 11 * - + SUM( DISTINCT - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-1028
SELECT + - COUNT ( * ) + + COUNT ( * ) - - + 11 * - + SUM ( DISTINCT - 0 ) AS col0
----
0

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

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

query I rowsort
SELECT - NULLIF ( - 20, - COALESCE ( 91, + 2, - - 51 ) )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL - SUM( 43 ) * - 54 AS col2
----
2322

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - SUM ( 43 ) * - 54 AS col2
----
2322

query I rowsort
SELECT - 85 + + + ( - ( + - 22 ) )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT 98 + - 60 + - + 81 * + 75 * - 79 * - CAST( 58 AS SIGNED ) + - + 91 * + 91 AS col2
----
-27843893

skipif mysql # not compatible
query I rowsort label-1033
SELECT 98 + - 60 + - + 81 * + 75 * - 79 * - CAST ( 58 AS INTEGER ) + - + 91 * + 91 AS col2
----
-27843893

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - 64 * + + CASE 51 WHEN COUNT( DISTINCT - 34 ) THEN NULL WHEN 14 THEN 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - 64 * + + CASE 51 WHEN COUNT ( DISTINCT - 34 ) THEN NULL WHEN 14 THEN 8 END AS col2
----
NULL

query I rowsort
SELECT 8 + + + 91 * 86 AS col1
----
7834

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

skipif mysql # not compatible
query I rowsort label-1036
SELECT 79 * - COUNT ( * )
----
-79

query I rowsort
SELECT - 83 * - 51 * - 12 + 12 AS col2
----
-50784

onlyif mysql # aggregate syntax: 
query II rowsort label-1038
SELECT 64 * - - 85 + COUNT( * ) AS col0, 67 AS col1
----
5441
67

skipif mysql # not compatible
query II rowsort label-1038
SELECT 64 * - - 85 + COUNT ( * ) AS col0, 67 AS col1
----
5441
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1039
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) + - 10 + - 11 * 92 - 63 AS col0, 9 + - COUNT( * ) + + NULLIF ( - - 80, + - 0 ) + + 96 AS col1
----
NULL
184

skipif mysql # not compatible
query II rowsort label-1039
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) + - 10 + - 11 * 92 - 63 AS col0, 9 + - COUNT ( * ) + + NULLIF ( - - 80, + - 0 ) + + 96 AS col1
----
NULL
184

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL COUNT( DISTINCT + 34 ) + + 12 * - 55
----
-659

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL COUNT ( DISTINCT + 34 ) + + 12 * - 55
----
-659

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

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

query II rowsort
SELECT + 94, + 45 AS col2
----
94
45

query I rowsort
SELECT DISTINCT - 2 + + NULLIF ( - 70, + ( + - 15 ) - 24 * - 74 ) col2
----
-72

query I rowsort
SELECT 7 * 3 col2
----
21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT - NULLIF ( COUNT( * ), - - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1046
SELECT - NULLIF ( COUNT ( * ), - - COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1047
SELECT DISTINCT - CAST( NULL AS SIGNED ) * AVG ( + 81 ) col1, - 52 * + 80 * 12 * + 7 * 57
----
NULL
-19918080

skipif mysql # not compatible
query II rowsort label-1047
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * AVG ( + 81 ) col1, - 52 * + 80 * 12 * + 7 * 57
----
NULL
-19918080

query I rowsort
SELECT 61 * + 79 * + 66 AS col1
----
318054

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1050
SELECT ALL + 62 + - + 50 / CAST( NULL AS SIGNED ) + - + 56
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + 62 + - + 50 / CAST ( NULL AS INTEGER ) + - + 56
----
NULL

query I rowsort
SELECT ALL - + 25 + + + 55 + - 87 + + 33
----
-24

query I rowsort
SELECT ALL + 82 + 33
----
115

query I rowsort
SELECT + 0 * - 46 * 81 * - 41
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1054
SELECT NULLIF ( + 37, - - 48 * - + 36 + 39 * - NULLIF ( + 2, - 12 * + + 68 / 75 * - 81 ) ) * - CAST( NULL AS SIGNED ) * - ( 66 ) * + - COUNT( ALL - 27 ) * - 22 + + ( - - 27 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1054
SELECT NULLIF ( + 37, - - 48 * - + 36 + 39 * - NULLIF ( + 2, - 12 * + + 68 / 75 * - 81 ) ) * - CAST ( NULL AS INTEGER ) * - ( 66 ) * + - COUNT ( ALL - 27 ) * - 22 + + ( - - 27 ) AS col1
----
NULL

query I rowsort
SELECT 61 + - ( - 71 ) AS col0
----
132

query I rowsort
SELECT ALL 92 - + - 48 AS col0
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT + SUM( + 26 ) + + + 77 * MIN( - - 96 ) * + + 50
----
369626

skipif mysql # not compatible
query I rowsort label-1057
SELECT + SUM ( + 26 ) + + + 77 * MIN ( - - 96 ) * + + 50
----
369626

onlyif mysql # aggregate syntax: 
query I rowsort label-1058
SELECT - COUNT( - 87 )
----
-1

skipif mysql # not compatible
query I rowsort label-1058
SELECT - COUNT ( - 87 )
----
-1

query II rowsort
SELECT ALL 91, 23 col2
----
91
23

query I rowsort
SELECT ALL 77 * 6
----
462

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT + 16 * COUNT( 72 ) * + - 44 * - COUNT( * ) AS col0, 24
----
704
24

skipif mysql # not compatible
query II rowsort label-1061
SELECT + 16 * COUNT ( 72 ) * + - 44 * - COUNT ( * ) AS col0, 24
----
704
24

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

skipif mysql # not compatible
query II rowsort label-1062
SELECT ALL - COUNT ( * ) AS col2, - 21 AS col2
----
-1
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT 9 * - 78 DIV + - 3
----
234

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT 9 * - 78 / + - 3
----
234

query II rowsort
SELECT 95, 57 AS col2
----
95
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT NULLIF ( + + 36, + 95 ) DIV - ( 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-1065
SELECT NULLIF ( + + 36, + 95 ) / - ( 34 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1066
SELECT MIN( DISTINCT + COALESCE ( + 79, - 32, 95, - 86 * + CAST( NULL AS SIGNED ) ) ) * 61 * - 83 - + 38
----
-400015

skipif mysql # not compatible
query I rowsort label-1066
SELECT MIN ( DISTINCT + COALESCE ( + 79, - 32, 95, - 86 * + CAST ( NULL AS INTEGER ) ) ) * 61 * - 83 - + 38
----
-400015

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1067
SELECT - 62 col0, + 74 * CAST( NULL AS SIGNED ) * + 21 * + - 48 AS col0
----
-62
NULL

skipif mysql # not compatible
query II rowsort label-1067
SELECT - 62 col0, + 74 * CAST ( NULL AS INTEGER ) * + 21 * + - 48 AS col0
----
-62
NULL

query II rowsort
SELECT 88 - 99 AS col1, 60 AS col0
----
-11
60

query II rowsort
SELECT DISTINCT 19 AS col1, - 29
----
19
-29

query I rowsort
SELECT ( 89 ) * 84
----
7476

onlyif mysql # aggregate syntax: 
query II rowsort label-1071
SELECT 25 AS col0, - MAX( ALL - - 67 ) + + MIN( ( + 75 ) ) * + SUM( DISTINCT + 24 )
----
25
1733

skipif mysql # not compatible
query II rowsort label-1071
SELECT 25 AS col0, - MAX ( ALL - - 67 ) + + MIN ( ( + 75 ) ) * + SUM ( DISTINCT + 24 )
----
25
1733

query I rowsort
SELECT ALL - ( 52 ) + + 83 * + 86
----
7086

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1074
SELECT ALL + CAST( + ( + 24 ) AS SIGNED ) + 10 * 85 * - - 98 AS col2, 53
----
83324
53

skipif mysql # not compatible
query II rowsort label-1074
SELECT ALL + CAST ( + ( + 24 ) AS INTEGER ) + 10 * 85 * - - 98 AS col2, 53
----
83324
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1075
SELECT DISTINCT - COUNT( * ) * - 2 * - - CASE - ( - COUNT( DISTINCT - + NULLIF ( 65, - CAST( NULL AS SIGNED ) ) ) ) WHEN - 63 DIV + + COUNT( DISTINCT 72 ) * - + 84 * 3 THEN NULL WHEN + 27 * + - 91 THEN - COUNT( * ) * COALESCE ( + - 16, + - 54 + + - MAX( 38 ), - 94 DIV + + 65 ) + + 76 ELSE - + 85 END
----
-170

skipif mysql # not compatible
query I rowsort label-1075
SELECT DISTINCT - COUNT ( * ) * - 2 * - - CASE - ( - COUNT ( DISTINCT - + NULLIF ( 65, - CAST ( NULL AS INTEGER ) ) ) ) WHEN - 63 / + + COUNT ( DISTINCT 72 ) * - + 84 * 3 THEN NULL WHEN + 27 * + - 91 THEN - COUNT ( * ) * COALESCE ( + - 16, + - 54 + + - MAX ( 38 ), - 94 / + + 65 ) + + 76 ELSE - + 85 END
----
-170

query I rowsort
SELECT ALL 54 + 63
----
117

query I rowsort
SELECT 33 - 70 + - 71 * + + 66 * + ( 54 )
----
-253081

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1078
SELECT + COUNT( * ), + COALESCE ( + COUNT( * ), COUNT( * ) DIV ( + 72 ) - COUNT( * ) * - + 87, + + ( 99 ), - + 48 ) AS col1
----
1
1

skipif mysql # not compatible
query II rowsort label-1078
SELECT + COUNT ( * ), + COALESCE ( + COUNT ( * ), COUNT ( * ) / ( + 72 ) - COUNT ( * ) * - + 87, + + ( 99 ), - + 48 ) AS col1
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1079
SELECT + AVG ( ALL + CAST( NULL AS SIGNED ) ), 73 * NULLIF ( CAST( - - 87 AS SIGNED ), - ( - 93 ) ) * - 51 + - CASE WHEN NULL IS NOT NULL THEN ( 57 ) ELSE NULL END
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1079
SELECT + AVG ( ALL + CAST ( NULL AS INTEGER ) ), 73 * NULLIF ( CAST ( - - 87 AS INTEGER ), - ( - 93 ) ) * - 51 + - CASE WHEN NULL IS NOT NULL THEN ( 57 ) ELSE NULL END
----
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1080
SELECT 23 + + COUNT ( * ) - + 51 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL - MIN( DISTINCT + - 72 )
----
72

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL - MIN ( DISTINCT + - 72 )
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1082
SELECT 13 * + + 86 / - COUNT( * ) + + NULLIF ( + 88, - + 9 ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1082
SELECT 13 * + + 86 / - COUNT ( * ) + + NULLIF ( + 88, - + 9 ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 77 AS col2, 82 * 79 col0
----
77
6478

query I rowsort
SELECT 86 * - 57 + + 54 AS col2
----
-4848

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

skipif mysql # not compatible
query I rowsort label-1085
SELECT + MAX ( + 49 )
----
49

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1089
SELECT - 34 * - SUM( - ( - 35 ) ) * + - CASE + MIN( + - 29 ) WHEN - 18 THEN 78 * + COUNT( * ) * + + 25 + 1 * + ( - 80 ) ELSE MAX( - 73 ) END - - MAX( ALL 35 ) + + + 25 - 61 * 0 * + 88, CASE + - 90 WHEN - + AVG ( ALL - 12 ) / - - 97 THEN + - COUNT( * ) END AS col1
----
86930
NULL

skipif mysql # not compatible
query II rowsort label-1089
SELECT - 34 * - SUM ( - ( - 35 ) ) * + - CASE + MIN ( + - 29 ) WHEN - 18 THEN 78 * + COUNT ( * ) * + + 25 + 1 * + ( - 80 ) ELSE MAX ( - 73 ) END - - MAX ( ALL 35 ) + + + 25 - 61 * 0 * + 88, CASE + - 90 WHEN - + AVG ( ALL - 12 ) / - - 97 THEN + - COUNT ( * ) END AS col1
----
86930
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL + - COUNT( * ) * - 55 * 97
----
5335

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + - COUNT ( * ) * - 55 * 97
----
5335

query I rowsort
SELECT DISTINCT - - ( + 75 ) * - 15
----
-1125

query I rowsort
SELECT - 50 + - ( + + 43 ) + + 62 AS col1
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1095
SELECT - NULLIF ( 68, - COALESCE ( - NULLIF ( - 18, - + 55 + - 2 - ( + - 74 ) + + 53 ), - + CAST( + 40 AS DECIMAL ) ) * 98 * - - COUNT( * ) + - CAST( NULL AS SIGNED ) ) * - + 33
----
2244

skipif mysql # not compatible
query I rowsort label-1095
SELECT - NULLIF ( 68, - COALESCE ( - NULLIF ( - 18, - + 55 + - 2 - ( + - 74 ) + + 53 ), - + CAST ( + 40 AS REAL ) ) * 98 * - - COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) * - + 33
----
2244

query I rowsort
SELECT + 32 * - NULLIF ( + 20, - 41 )
----
-640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1097
SELECT + COALESCE ( - 53, 33 ) + - CAST( - 98 AS SIGNED )
----
45

skipif mysql # not compatible
query I rowsort label-1097
SELECT + COALESCE ( - 53, 33 ) + - CAST ( - 98 AS INTEGER )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT ALL 14 + COUNT( * ) * + 47
----
61

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL 14 + COUNT ( * ) * + 47
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1099
SELECT ALL - 92 + + ( + + 13 ) * - + CASE CAST( NULL AS SIGNED ) WHEN - COUNT( * ) THEN + - COUNT( - 57 ) + + COUNT( DISTINCT + - 2 ) + - 74 WHEN + + 88 THEN NULL WHEN - + COUNT( * ) THEN NULL END + - ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL - 92 + + ( + + 13 ) * - + CASE CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) THEN + - COUNT ( - 57 ) + + COUNT ( DISTINCT + - 2 ) + - 74 WHEN + + 88 THEN NULL WHEN - + COUNT ( * ) THEN NULL END + - ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1100
SELECT ALL COALESCE ( 25, - + COUNT( * ) ) + 46 DIV 48 AS col0
----
25

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL COALESCE ( 25, - + COUNT ( * ) ) + 46 / 48 AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT DISTINCT COUNT( * ) * 17 AS col0
----
17

skipif mysql # not compatible
query I rowsort label-1101
SELECT DISTINCT COUNT ( * ) * 17 AS col0
----
17

query I rowsort
SELECT ALL 78 + + 19 * - - 62
----
1256

query I rowsort
SELECT + 90 + - 98
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1104
SELECT + CASE + 55 WHEN - + 72 * - 23 * 67 THEN CASE 70 WHEN - AVG ( - + 35 ) + - - CASE - 27 WHEN + 80 THEN + 8 * - 84 / + - MIN( - - 28 ) END THEN - CAST( NULL AS SIGNED ) WHEN - + 57 THEN + COUNT( * ) ELSE - NULLIF ( - 39, + + 65 ) END * 65 * + CASE ( 39 ) WHEN + ( 38 ) THEN 94 + + 29 * + + 79 END WHEN 13 + CASE + 89 WHEN - 35 * 35 * CASE + 5 WHEN + COUNT( * ) THEN COUNT( * ) * - 67 / - - 3 ELSE - 82 END THEN - 45 + - 36 * - CAST( 12 AS SIGNED ) WHEN + MIN( DISTINCT 10 ) THEN NULL END THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1104
SELECT + CASE + 55 WHEN - + 72 * - 23 * 67 THEN CASE 70 WHEN - AVG ( - + 35 ) + - - CASE - 27 WHEN + 80 THEN + 8 * - 84 / + - MIN ( - - 28 ) END THEN - CAST ( NULL AS INTEGER ) WHEN - + 57 THEN + COUNT ( * ) ELSE - NULLIF ( - 39, + + 65 ) END * 65 * + CASE ( 39 ) WHEN + ( 38 ) THEN 94 + + 29 * + + 79 END WHEN 13 + CASE + 89 WHEN - 35 * 35 * CASE + 5 WHEN + COUNT ( * ) THEN COUNT ( * ) * - 67 / - - 3 ELSE - 82 END THEN - 45 + - 36 * - CAST ( 12 AS INTEGER ) WHEN + MIN ( DISTINCT 10 ) THEN NULL END THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + 36 * 84 + + 15 + + 37 + 97 + 45 * 84 col0
----
6953

onlyif mysql # aggregate syntax: 
query II rowsort label-1106
SELECT ( - 29 ), + 3 * - 94 * 78 - - 19 + 23 + - ( NULLIF ( + + SUM( + - 48 ), - + ( MAX( ALL 22 ) ) + - + 28 - - 72 ) ) - 53 AS col1
----
-29
-21959

skipif mysql # not compatible
query II rowsort label-1106
SELECT ( - 29 ), + 3 * - 94 * 78 - - 19 + 23 + - ( NULLIF ( + + SUM ( + - 48 ), - + ( MAX ( ALL 22 ) ) + - + 28 - - 72 ) ) - 53 AS col1
----
-29
-21959

query I rowsort
SELECT ALL - 12 * 10 - + 2 - 96 AS col2
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT 0 * NULLIF ( COALESCE ( + 64, - 22 - + 46, + + COUNT( * ) ), 47 ) * + 20 + - 98 + + + 42 - + + 36 * - 71 + - 70 + + + 49 + 72 AS col2
----
2551

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT 0 * NULLIF ( COALESCE ( + 64, - 22 - + 46, + + COUNT ( * ) ), 47 ) * + 20 + - 98 + + + 42 - + + 36 * - 71 + - 70 + + + 49 + 72 AS col2
----
2551

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1109
SELECT + ( 76 ) * + ( - COALESCE ( 60, 17 * + COUNT( * ) * 47 ) ) + + 87 * + MAX( + 57 ) * - + NULLIF ( + 32, + COUNT( 61 ) ) + CAST( NULL AS SIGNED ) * - ( - 55 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1109
SELECT + ( 76 ) * + ( - COALESCE ( 60, 17 * + COUNT ( * ) * 47 ) ) + + 87 * + MAX ( + 57 ) * - + NULLIF ( + 32, + COUNT ( 61 ) ) + CAST ( NULL AS INTEGER ) * - ( - 55 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1110
SELECT ALL 25 DIV NULLIF ( + + ( COUNT( * ) ), - ( - - 46 ) ) col2
----
25

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL 25 / NULLIF ( + + ( COUNT ( * ) ), - ( - - 46 ) ) col2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT - 69 * - 16 * - MAX( ALL + 85 ) AS col1
----
-93840

skipif mysql # not compatible
query I rowsort label-1111
SELECT - 69 * - 16 * - MAX ( ALL + 85 ) AS col1
----
-93840

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT - ( + + 9 ) DIV + + 2 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-1112
SELECT - ( + + 9 ) / + + 2 AS col2
----
-4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1114
SELECT ALL + 51 * - + 48 DIV + 1 - + - 96 AS col1
----
-2352

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL + 51 * - + 48 / + 1 - + - 96 AS col1
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1115
SELECT ALL + 60 * - CAST( - 1 AS SIGNED ) * COUNT( * ) + + - 98 + - 70
----
-108

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL + 60 * - CAST ( - 1 AS INTEGER ) * COUNT ( * ) + + - 98 + - 70
----
-108

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

query I rowsort
SELECT - - 83 + 92 AS col1
----
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1118
SELECT 25 * + CAST( NULL AS SIGNED ) - CAST( 2 AS SIGNED ) * + - 45 * + - 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1118
SELECT 25 * + CAST ( NULL AS INTEGER ) - CAST ( 2 AS INTEGER ) * + - 45 * + - 38 AS col2
----
NULL

query I rowsort
SELECT - + 8 + - 83 AS col2
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT ( + MIN( ALL - - 0 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT ( + MIN ( ALL - - 0 ) ) AS col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1121
SELECT - 58 AS col2, 10 * - 76 + + 22 + + - ( - 22 ) + AVG ( DISTINCT CAST( NULL AS DECIMAL ) )
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-1121
SELECT - 58 AS col2, 10 * - 76 + + 22 + + - ( - 22 ) + AVG ( DISTINCT CAST ( NULL AS REAL ) )
----
-58
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + 51 + 97
----
148

query I rowsort
SELECT ALL 8 + - + 64
----
-56

query I rowsort
SELECT DISTINCT - 87 * + 63
----
-5481

query I rowsort
SELECT DISTINCT - 78 + 51 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-1128
SELECT DISTINCT 72 AS col2, ( COUNT( * ) ) + 46 + - 97 * 4 * - + 72 * 28 + + - 72
----
72
782183

skipif mysql # not compatible
query II rowsort label-1128
SELECT DISTINCT 72 AS col2, ( COUNT ( * ) ) + 46 + - 97 * 4 * - + 72 * 28 + + - 72
----
72
782183

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

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

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

skipif mysql # not compatible
query I rowsort label-1130
SELECT + 66 / + + COUNT ( * ) col1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT + COUNT( * ) * + ( - 29 ) * + 19 AS col1
----
-551

skipif mysql # not compatible
query I rowsort label-1131
SELECT + COUNT ( * ) * + ( - 29 ) * + 19 AS col1
----
-551

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT - 30 - - 72 + - - 55 DIV - 55 AS col2
----
41

skipif mysql # not compatible
query I rowsort label-1132
SELECT - 30 - - 72 + - - 55 / - 55 AS col2
----
41

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1133
SELECT DISTINCT CAST( NULL AS DECIMAL ), + 75 * + 97 * + COUNT( * ) AS col1
----
NULL
7275

skipif mysql # not compatible
query II rowsort label-1133
SELECT DISTINCT CAST ( NULL AS REAL ), + 75 * + 97 * + COUNT ( * ) AS col1
----
NULL
7275

query II rowsort
SELECT - NULLIF ( 93, 11 ), + 15 AS col2
----
-93
15

query I rowsort
SELECT ALL 94 - 65 AS col1
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1136
SELECT DISTINCT 53 * COUNT( * ) AS col0
----
53

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT 53 * COUNT ( * ) AS col0
----
53

query I rowsort
SELECT ALL 13 * 58
----
754

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1138
SELECT DISTINCT - COUNT( * ) DIV + 38 - + 81 DIV 38 + 38
----
36

skipif mysql # not compatible
query I rowsort label-1138
SELECT DISTINCT - COUNT ( * ) / + 38 - + 81 / 38 + 38
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1139
SELECT - + 18 DIV - 53 * + - 36 * + COUNT( * ) * + 45 + 60 AS col0, + 66
----
60
66

skipif mysql # not compatible
query II rowsort label-1139
SELECT - + 18 / - 53 * + - 36 * + COUNT ( * ) * + 45 + 60 AS col0, + 66
----
60
66

query I rowsort
SELECT + - 30 - - 23
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1141
SELECT + 74 AS col2, + NULLIF ( + CASE ( + 91 ) WHEN 32 * - CASE - + 38 WHEN - 15 * COALESCE ( 46, + - 63 ) * - + CAST( - NULLIF ( 38, 81 ) AS SIGNED ) THEN + 83 END + - 91 - + - CAST( NULL AS SIGNED ) * 60 / - COUNT( * ) THEN 43 * 79 + - NULLIF ( 25, - 1 ) END, - + 50 ) AS col0
----
74
NULL

skipif mysql # not compatible
query II rowsort label-1141
SELECT + 74 AS col2, + NULLIF ( + CASE ( + 91 ) WHEN 32 * - CASE - + 38 WHEN - 15 * COALESCE ( 46, + - 63 ) * - + CAST ( - NULLIF ( 38, 81 ) AS INTEGER ) THEN + 83 END + - 91 - + - CAST ( NULL AS INTEGER ) * 60 / - COUNT ( * ) THEN 43 * 79 + - NULLIF ( 25, - 1 ) END, - + 50 ) AS col0
----
74
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1143
SELECT + - 45 DIV - 44 + - 38 * + 20 * - + 30 * + + COUNT( * ), 54 + ( 94 ) AS col0
----
22801
148

skipif mysql # not compatible
query II rowsort label-1143
SELECT + - 45 / - 44 + - 38 * + 20 * - + 30 * + + COUNT ( * ), 54 + ( 94 ) AS col0
----
22801
148

query I rowsort
SELECT + + 70 + + + 2 - + 50 + 12 * 38 AS col1
----
478

query II rowsort
SELECT + 75 AS col0, 15 + - 77
----
75
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT MAX( - 5 ) * - COUNT( * ) + - 37
----
-32

skipif mysql # not compatible
query I rowsort label-1146
SELECT MAX ( - 5 ) * - COUNT ( * ) + - 37
----
-32

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT + 47 * + 99 - CASE + 18 WHEN - 60 THEN NULL WHEN + - 72 THEN NULL WHEN - 88 THEN NULL WHEN - SUM( ALL - 86 ) THEN - 43 END + + ( - 76 ) + 6 * + 54 * - + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-1148
SELECT + 47 * + 99 - CASE + 18 WHEN - 60 THEN NULL WHEN + - 72 THEN NULL WHEN - 88 THEN NULL WHEN - SUM ( ALL - 86 ) THEN - 43 END + + ( - 76 ) + 6 * + 54 * - + 30
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1149
SELECT ALL 43 + + - 39 + - 72 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1149
SELECT ALL 43 + + - 39 + - 72 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT DISTINCT - + 48 AS col0, + 1
----
-48
1

query I rowsort
SELECT ALL - + 17 + + 28
----
11

query I rowsort
SELECT ( + 11 ) * 78 + + ( 78 )
----
936

query II rowsort
SELECT ALL - NULLIF ( 78, + + 25 * + 87 - - 99 ) * 13 AS col0, + ( 20 ) AS col0
----
-1014
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT 18 * CAST( 81 AS SIGNED )
----
1458

skipif mysql # not compatible
query I rowsort label-1154
SELECT 18 * CAST ( 81 AS INTEGER )
----
1458

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1155
SELECT 79 * - + 85 + + COALESCE ( - 41, + 5 ) + - 12 + NULLIF ( + 85, + - ( 84 ) + - 97 * - CAST( + COUNT( * ) AS DECIMAL ) ) DIV - 21
----
-6772

skipif mysql # not compatible
query I rowsort label-1155
SELECT 79 * - + 85 + + COALESCE ( - 41, + 5 ) + - 12 + NULLIF ( + 85, + - ( 84 ) + - 97 * - CAST ( + COUNT ( * ) AS REAL ) ) / - 21
----
-6772

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

skipif mysql # not compatible
query I rowsort label-1156
SELECT + SUM ( - 34 )
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT ALL - + COALESCE ( 28, - - 41 ) + ( + + COALESCE ( + CAST( - + ( + 97 ) AS SIGNED ), - CASE - 10 WHEN 87 + 36 + + + 27 THEN - 48 * + COUNT( + 81 ) WHEN COALESCE ( - AVG ( + + 64 ), 37, + 47 - MAX( - - 3 ) ) THEN NULL ELSE NULL END * - - NULLIF ( - + 81, - + COUNT( * ) ), + - 89 ) ) AS col1
----
-125

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL - + COALESCE ( 28, - - 41 ) + ( + + COALESCE ( + CAST ( - + ( + 97 ) AS INTEGER ), - CASE - 10 WHEN 87 + 36 + + + 27 THEN - 48 * + COUNT ( + 81 ) WHEN COALESCE ( - AVG ( + + 64 ), 37, + 47 - MAX ( - - 3 ) ) THEN NULL ELSE NULL END * - - NULLIF ( - + 81, - + COUNT ( * ) ), + - 89 ) ) AS col1
----
-125

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

query I rowsort
SELECT 98 + 39
----
137

query I rowsort
SELECT DISTINCT - 92 + - + 74 * 46 * ( - ( 89 ) ) AS col1
----
302864

query I rowsort
SELECT DISTINCT 44 * + 9 AS col2
----
396

query I rowsort
SELECT ALL 2 + + 51 col0
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1163
SELECT DISTINCT + 47 + + - 99 + + 28 + CASE 18 WHEN - CAST( NULL AS SIGNED ) THEN + SUM( - ( - 77 ) ) - - 67 WHEN - COUNT( * ) - + CAST( NULL AS SIGNED ) THEN 20 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT + 47 + + - 99 + + 28 + CASE 18 WHEN - CAST ( NULL AS INTEGER ) THEN + SUM ( - ( - 77 ) ) - - 67 WHEN - COUNT ( * ) - + CAST ( NULL AS INTEGER ) THEN 20 END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1164
SELECT 33 - + NULLIF ( - 59, - 41 * - COUNT( * ) + - + 23 DIV - 68 ) * + 10 * + COUNT( * ) DIV COUNT( * ) * - COALESCE ( + 2, + + NULLIF ( - 55, + AVG ( + - 20 ) * + 61 * 56 ) * + + 43 ) + - + COUNT( * ) AS col2
----
-1148

skipif mysql # not compatible
query I rowsort label-1164
SELECT 33 - + NULLIF ( - 59, - 41 * - COUNT ( * ) + - + 23 / - 68 ) * + 10 * + COUNT ( * ) / COUNT ( * ) * - COALESCE ( + 2, + + NULLIF ( - 55, + AVG ( + - 20 ) * + 61 * 56 ) * + + 43 ) + - + COUNT ( * ) AS col2
----
-1148

onlyif mysql # aggregate syntax: 
query I rowsort label-1165
SELECT ALL + COALESCE ( + + 91, + MIN( + 50 ) * 11 * - 16, 91 ) + + 1
----
92

skipif mysql # not compatible
query I rowsort label-1165
SELECT ALL + COALESCE ( + + 91, + MIN ( + 50 ) * 11 * - 16, 91 ) + + 1
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT ALL - 74 DIV + 90 * - ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - 74 / + 90 * - ( - 68 )
----
0

query I rowsort
SELECT 13 + 91
----
104

query I rowsort
SELECT 26 * - ( + 68 ) AS col1
----
-1768

query I rowsort
SELECT 62 * + 79 AS col1
----
4898

query II rowsort
SELECT 32 + - NULLIF ( + + 86, 3 ), 82 AS col1
----
-54
82

query I rowsort
SELECT DISTINCT - 57 * + - 18
----
1026

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1172
SELECT 52 * + + COALESCE ( 48, - COUNT( * ) + - 57 * - MAX( - + 82 ) ) col2, + CAST( NULL AS SIGNED )
----
2496
NULL

skipif mysql # not compatible
query II rowsort label-1172
SELECT 52 * + + COALESCE ( 48, - COUNT ( * ) + - 57 * - MAX ( - + 82 ) ) col2, + CAST ( NULL AS INTEGER )
----
2496
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1174
SELECT 92 * - ( - + 17 ) + + - ( - + ( + + NULLIF ( COUNT( * ), + 96 * + 94 + + ( 85 ) + - 97 * - 74 / + COALESCE ( 20, + + CAST( NULL AS SIGNED ) * 79 / + CAST( NULL AS SIGNED ), - 95 ) ) ) ) * - - 71 / + + CASE + 66 WHEN 2 THEN CAST( NULL AS DECIMAL ) WHEN - COUNT( * ) THEN NULL END / + 29 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT 92 * - ( - + 17 ) + + - ( - + ( + + NULLIF ( COUNT ( * ), + 96 * + 94 + + ( 85 ) + - 97 * - 74 / + COALESCE ( 20, + + CAST ( NULL AS INTEGER ) * 79 / + CAST ( NULL AS INTEGER ), - 95 ) ) ) ) * - - 71 / + + CASE + 66 WHEN 2 THEN CAST ( NULL AS REAL ) WHEN - COUNT ( * ) THEN NULL END / + 29 AS col0
----
NULL

query I rowsort
SELECT + 94 * + 20
----
1880

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

query I rowsort
SELECT ALL - - 70
----
70

query I rowsort
SELECT DISTINCT + 2 + - 19 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1179
SELECT ALL - 44 + - + 13 - + COUNT( * ) col1
----
-58

skipif mysql # not compatible
query I rowsort label-1179
SELECT ALL - 44 + - + 13 - + COUNT ( * ) col1
----
-58

query I rowsort
SELECT + 11 * - + 72
----
-792

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL + 78 * - - COUNT( * ) * 46
----
3588

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + 78 * - - COUNT ( * ) * 46
----
3588

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + COUNT( * ) + 2 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + COUNT ( * ) + 2 AS col2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT ALL 72 + + 44 DIV + 98 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1184
SELECT ALL 72 + + 44 / + 98 AS col2
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1185
SELECT + 15 * 8 * CAST( NULL AS SIGNED ) - - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-1185
SELECT + 15 * 8 * CAST ( NULL AS INTEGER ) - - 25
----
NULL

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

query I rowsort
SELECT - 60 - - 8
----
-52

query II rowsort
SELECT + 0, 69 + + - 56 AS col0
----
0
13

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1190
SELECT ALL + CAST( NULL AS SIGNED ) + - 15 + ( - 60 ) + 48 + + + 52 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1190
SELECT ALL + CAST ( NULL AS INTEGER ) + - 15 + ( - 60 ) + 48 + + + 52 AS col0
----
NULL

query I rowsort
SELECT 33 + - NULLIF ( - - 60, - 74 ) - + 24 AS col2
----
-51

query I rowsort
SELECT - 75 * 79 - - + 95 AS col0
----
-5830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1193
SELECT ALL NULLIF ( 47, + CAST( NULL AS SIGNED ) * - 68 + - - AVG ( - 80 ) / + 44 ) * + + 53 AS col0, 11 AS col1
----
2491
11

skipif mysql # not compatible
query II rowsort label-1193
SELECT ALL NULLIF ( 47, + CAST ( NULL AS INTEGER ) * - 68 + - - AVG ( - 80 ) / + 44 ) * + + 53 AS col0, 11 AS col1
----
2491
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT - COUNT( * ) * + 12 + + + CASE + - 5 WHEN + ( - 92 ) * - + COUNT( * ) * 46 + 2 / 72 + 48 + - 94 / + COUNT( * ) * - COUNT( * ) * + - ( + 32 ) + + 72 * + + 26 THEN + 49 WHEN COUNT( * ) THEN - + 94 * - + 5 END * 13
----
NULL

skipif mysql # not compatible
query I rowsort label-1194
SELECT - COUNT ( * ) * + 12 + + + CASE + - 5 WHEN + ( - 92 ) * - + COUNT ( * ) * 46 + 2 / 72 + 48 + - 94 / + COUNT ( * ) * - COUNT ( * ) * + - ( + 32 ) + + 72 * + + 26 THEN + 49 WHEN COUNT ( * ) THEN - + 94 * - + 5 END * 13
----
NULL

query I rowsort
SELECT ALL 25 * - 6 AS col1
----
-150

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

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

query I rowsort
SELECT DISTINCT 54 * + 68 * - 39 * 67 AS col2
----
-9594936

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL 89 * + - 82 * - SUM( + 69 ) * + COUNT( * ) AS col1
----
503562

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL 89 * + - 82 * - SUM ( + 69 ) * + COUNT ( * ) AS col1
----
503562

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT ALL MAX( DISTINCT 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL MAX ( DISTINCT 86 ) AS col2
----
86

query I rowsort
SELECT 61 * 25 col2
----
1525

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT COUNT( * ) * + 6 * + 61 AS col0
----
366

skipif mysql # not compatible
query I rowsort label-1202
SELECT COUNT ( * ) * + 6 * + 61 AS col0
----
366

query II rowsort
SELECT 94 AS col1, 66
----
94
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1204
SELECT - COALESCE ( - COUNT( * ), 79 * - - 9 + - 48, - 5 + - + 59 * 69 * + + 59 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1204
SELECT - COALESCE ( - COUNT ( * ), 79 * - - 9 + - 48, - 5 + - + 59 * 69 * + + 59 ) AS col2
----
1

query I rowsort
SELECT 65 * - 25 * - - 44 * - - 4 AS col0
----
-286000

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

skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT - + COUNT ( * ) + + ( ( + - 48 ) ) / - COUNT ( * ) AS col0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT DISTINCT - 15 * - CAST( 64 AS SIGNED ) col1
----
960

skipif mysql # not compatible
query I rowsort label-1207
SELECT DISTINCT - 15 * - CAST ( 64 AS INTEGER ) col1
----
960

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL + + COALESCE ( + MIN( - - 50 ), - COUNT( * ), - ( ( CASE + 0 WHEN - 57 THEN NULL WHEN + 59 + 41 THEN NULL ELSE ( + - 6 ) + - COUNT( * ) END ) ) * - 58 ) * - - 60 * - + ( + ( + 20 ) ) + 26
----
-59974

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + + COALESCE ( + MIN ( - - 50 ), - COUNT ( * ), - ( ( CASE + 0 WHEN - 57 THEN NULL WHEN + 59 + 41 THEN NULL ELSE ( + - 6 ) + - COUNT ( * ) END ) ) * - 58 ) * - - 60 * - + ( + ( + 20 ) ) + 26
----
-59974

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1210
SELECT + 75 DIV - - 67 + 24 + 56 + - COUNT( * ) * + 52 + - 47 - ( - 30 )
----
12

skipif mysql # not compatible
query I rowsort label-1210
SELECT + 75 / - - 67 + 24 + 56 + - COUNT ( * ) * + 52 + - 47 - ( - 30 )
----
12

query I rowsort
SELECT - + 23 * + 15 - 89
----
-434

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT COUNT( * ) * + 84 * + 15 * - 0 + - + ( - 4 )
----
4

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT COUNT ( * ) * + 84 * + 15 * - 0 + - + ( - 4 )
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1213
SELECT ALL - 58 * - - CAST( NULL AS SIGNED ) + 61 + + 29
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1214
SELECT ALL + + CASE + 44 WHEN + ( + COUNT( DISTINCT - - 81 ) ) THEN + - 71 * - 7 END * + - 16 - + 32 + CAST( - 4 AS SIGNED ) + - COUNT( * ) * + 79 + 34
----
NULL

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + + CASE + 44 WHEN + ( + COUNT ( DISTINCT - - 81 ) ) THEN + - 71 * - 7 END * + - 16 - + 32 + CAST ( - 4 AS INTEGER ) + - COUNT ( * ) * + 79 + 34
----
NULL

query I rowsort
SELECT - 31 + - 41 * + 54 AS col1
----
-2245

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT DISTINCT 41 * - 74 + + - 70 + + 41 + - - 23 + + COUNT( * ) - NULLIF ( NULLIF ( + - 39, 2 + + 77 ), + ( + + 46 ) / + 75 * NULLIF ( - MAX( + + 52 ), 0 * - COUNT( * ) ) + - CASE + 1 WHEN 36 THEN - - COUNT( * ) + - 60 + + ( 30 ) * - + 39 / + 66 * - - 41 + COUNT( * ) * + 32 ELSE NULL END + - 13 - + 86 ) * + - COUNT( * ) + + 32 * + + 3, 88 AS col1
----
-2982
88

skipif mysql # not compatible
query II rowsort label-1216
SELECT DISTINCT 41 * - 74 + + - 70 + + 41 + - - 23 + + COUNT ( * ) - NULLIF ( NULLIF ( + - 39, 2 + + 77 ), + ( + + 46 ) / + 75 * NULLIF ( - MAX ( + + 52 ), 0 * - COUNT ( * ) ) + - CASE + 1 WHEN 36 THEN - - COUNT ( * ) + - 60 + + ( 30 ) * - + 39 / + 66 * - - 41 + COUNT ( * ) * + 32 ELSE NULL END + - 13 - + 86 ) * + - COUNT ( * ) + + 32 * + + 3, 88 AS col1
----
-2982
88

query I rowsort
SELECT ALL - ( + 17 ) * + + 56
----
-952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT - + 29 * - - MAX( DISTINCT + - ( - 20 ) ) * - 58 + + 75 DIV + 23 AS col2
----
33643

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT - + 29 * - - MAX ( DISTINCT + - ( - 20 ) ) * - 58 + + 75 / + 23 AS col2
----
33643

query I rowsort
SELECT - CASE - 33 WHEN + + 46 * - CASE + 98 WHEN - 83 + - + 24 THEN - 86 ELSE NULL END + - + 38 + + 94 + + 65 THEN NULL WHEN 98 THEN + + 56 * + 65 END + - - 86 + - 54
----
NULL

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

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

query I rowsort
SELECT + 26 + + - 59 + 18
----
-15

query II rowsort
SELECT + 9, - 14 col2
----
9
-14

query I rowsort
SELECT ALL - 29 * + + ( ( 51 ) ) - + 7 AS col1
----
-1486

query I rowsort
SELECT - 14 * - 67 * + 60 * + 7
----
393960

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT - 71 * - 69 + COUNT( * )
----
4900

skipif mysql # not compatible
query I rowsort label-1225
SELECT - 71 * - 69 + COUNT ( * )
----
4900

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

query I rowsort
SELECT ALL ( 21 )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT ALL 78 DIV - 92
----
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL 78 / - 92
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT + SUM( DISTINCT 19 ) * - 75 AS col1
----
-1425

skipif mysql # not compatible
query I rowsort label-1229
SELECT + SUM ( DISTINCT 19 ) * - 75 AS col1
----
-1425

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1230
SELECT DISTINCT ( + + 71 ) DIV - COUNT( ALL + + ( 35 ) ) + - 99
----
-170

skipif mysql # not compatible
query I rowsort label-1230
SELECT DISTINCT ( + + 71 ) / - COUNT ( ALL + + ( 35 ) ) + - 99
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1231
SELECT ALL COUNT( * ), - 56 DIV + 79 AS col2
----
1
0

skipif mysql # not compatible
query II rowsort label-1231
SELECT ALL COUNT ( * ), - 56 / + 79 AS col2
----
1
0

query I rowsort
SELECT + 77 - + + 42 AS col1
----
35

query II rowsort
SELECT DISTINCT 34 col1, 4 + 75 + + + 66 AS col0
----
34
145

query I rowsort
SELECT + 48 + + - 56
----
-8

query I rowsort
SELECT + 32 * + 80 + - 82 AS col2
----
2478

query I rowsort
SELECT + 24 * 85
----
2040

onlyif mysql # aggregate syntax: 
query I rowsort label-1237
SELECT + COUNT( * ) + + + 91
----
92

skipif mysql # not compatible
query I rowsort label-1237
SELECT + COUNT ( * ) + + + 91
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT ALL 35 * MIN( ALL - - 15 )
----
525

skipif mysql # not compatible
query I rowsort label-1238
SELECT ALL 35 * MIN ( ALL - - 15 )
----
525

query I rowsort
SELECT + 41 + + - 13
----
28

query I rowsort
SELECT + - 57 + - + 59 + + + 29
----
-87

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) + - 80 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) + - 80 AS col1
----
-79

query I rowsort
SELECT ALL + 77 + - 20 - + - 41 + 49
----
147

query I rowsort
SELECT ALL - NULLIF ( + + ( + 64 ), 38 ) + 3 AS col0
----
-61

query II rowsort
SELECT DISTINCT 60 AS col1, - 98 + + COALESCE ( 35, 86 )
----
60
-63

query II rowsort
SELECT - CASE 66 WHEN + 15 THEN - + 0 END AS col0, 25 AS col2
----
NULL
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1247
SELECT ALL + COUNT( * ) + + CAST( NULL AS SIGNED ) + - CAST( 62 AS SIGNED ), 58 + - - 49 AS col2
----
NULL
107

skipif mysql # not compatible
query II rowsort label-1247
SELECT ALL + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - CAST ( 62 AS INTEGER ), 58 + - - 49 AS col2
----
NULL
107

onlyif mysql # aggregate syntax: 
query III rowsort label-1248
SELECT - 35 + - - 43 AS col0, 83 * - COUNT( * ), 85 AS col1
----
8
-83
85

skipif mysql # not compatible
query III rowsort label-1248
SELECT - 35 + - - 43 AS col0, 83 * - COUNT ( * ), 85 AS col1
----
8
-83
85

query III rowsort
SELECT - 5, + 58 AS col2, + 31 * + 17 + - ( + 53 ) AS col0
----
-5
58
474

query I rowsort
SELECT - 62 + - + 56 AS col2
----
-118

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

query II rowsort
SELECT 80, 80 - + 38 AS col2
----
80
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1253
SELECT DISTINCT 89 DIV + 51
----
1

skipif mysql # not compatible
query I rowsort label-1253
SELECT DISTINCT 89 / + 51
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1254
SELECT DISTINCT + + CASE 61 WHEN + + 90 + COUNT( * ) THEN NULL WHEN COUNT( * ) * - 71 + + - 87 + + CASE + 65 WHEN + 20 THEN + 18 * - + 20 WHEN + 54 THEN NULL WHEN ( 82 ) THEN NULL WHEN + - 8 * - 45 - - + 81 THEN NULL ELSE NULL END THEN NULL ELSE + - 53 END AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT + + CASE 61 WHEN + + 90 + COUNT ( * ) THEN NULL WHEN COUNT ( * ) * - 71 + + - 87 + + CASE + 65 WHEN + 20 THEN + 18 * - + 20 WHEN + 54 THEN NULL WHEN ( 82 ) THEN NULL WHEN + - 8 * - 45 - - + 81 THEN NULL ELSE NULL END THEN NULL ELSE + - 53 END AS col1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT ALL - 68 DIV - + 50 - 18
----
-17

skipif mysql # not compatible
query I rowsort label-1255
SELECT ALL - 68 / - + 50 - 18
----
-17

query I rowsort
SELECT DISTINCT + 67 * - 86 AS col0
----
-5762

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1258
SELECT ALL - - 87 DIV - 45 - 21 * - 37
----
776

skipif mysql # not compatible
query I rowsort label-1258
SELECT ALL - - 87 / - 45 - 21 * - 37
----
776

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT - 26 * + SUM( - 13 ) AS col0
----
338

skipif mysql # not compatible
query I rowsort label-1260
SELECT - 26 * + SUM ( - 13 ) AS col0
----
338

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL + CASE 63 WHEN + 81 / - ( COUNT( * ) ) THEN 6 / 65 / - 54 ELSE + - 90 END
----
-90

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + CASE 63 WHEN + 81 / - ( COUNT ( * ) ) THEN 6 / 65 / - 54 ELSE + - 90 END
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT ALL - 85 * + CASE + 50 WHEN + NULLIF ( 79, - CAST( NULL AS SIGNED ) ) THEN 23 * - 43 + + - 23 END * 29 - + ( + 11 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT ALL - 85 * + CASE + 50 WHEN + NULLIF ( 79, - CAST ( NULL AS INTEGER ) ) THEN 23 * - 43 + + - 23 END * 29 - + ( + 11 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT - 14 DIV + - 6 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-1264
SELECT - 14 / + - 6 AS col0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1265
SELECT + 20 * - 95, - CAST( NULL AS DECIMAL ) AS col0
----
-1900
NULL

skipif mysql # not compatible
query II rowsort label-1265
SELECT + 20 * - 95, - CAST ( NULL AS REAL ) AS col0
----
-1900
NULL

query I rowsort
SELECT ALL + CASE 65 WHEN + ( + + 13 ) THEN + 93 ELSE + 98 END col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT - COUNT( 79 ) * - 61
----
61

skipif mysql # not compatible
query I rowsort label-1267
SELECT - COUNT ( 79 ) * - 61
----
61

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1269
SELECT + CASE + CASE + - 79 WHEN - COALESCE ( + 86, + + 95 ) THEN NULL ELSE - 46 END WHEN - 17 * + 23 - + + 27 * + + 27 + AVG ( + + 86 ) THEN 36 ELSE 94 + ( - - CAST( - 62 AS SIGNED ) ) END + - 96 * - 46 * - + 76 + + 24 col1, CAST( NULL AS SIGNED ) * 33
----
-335560
NULL

skipif mysql # not compatible
query II rowsort label-1269
SELECT + CASE + CASE + - 79 WHEN - COALESCE ( + 86, + + 95 ) THEN NULL ELSE - 46 END WHEN - 17 * + 23 - + + 27 * + + 27 + AVG ( + + 86 ) THEN 36 ELSE 94 + ( - - CAST ( - 62 AS INTEGER ) ) END + - 96 * - 46 * - + 76 + + 24 col1, CAST ( NULL AS INTEGER ) * 33
----
-335560
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1270
SELECT + ( - 58 ) * + COALESCE ( 40, - + MAX( DISTINCT - 47 ) + 87 - + 7 * - 34 + 70 + + + 70 + + COUNT( ALL + 97 ) + + COALESCE ( + + 28, + 55 * - 78, - - 11 DIV + + COUNT( - ( 33 ) ) * - 77 - - 24 - + 8 + - - 2 + NULLIF ( - 86, + - ( - + COALESCE ( - ( + + NULLIF ( + + 41, - - SUM( + + CAST( NULL AS SIGNED ) ) ) ), + 18 * + + CAST( NULL AS SIGNED ), - 40 ) ) ) ) + + 98 + - 70 - 98 + + COUNT( * ) + + ( - + 1 ) DIV - 54 * - 10 ) AS col2
----
-2320

skipif mysql # not compatible
query I rowsort label-1270
SELECT + ( - 58 ) * + COALESCE ( 40, - + MAX ( DISTINCT - 47 ) + 87 - + 7 * - 34 + 70 + + + 70 + + COUNT ( ALL + 97 ) + + COALESCE ( + + 28, + 55 * - 78, - - 11 / + + COUNT ( - ( 33 ) ) * - 77 - - 24 - + 8 + - - 2 + NULLIF ( - 86, + - ( - + COALESCE ( - ( + + NULLIF ( + + 41, - - SUM ( + + CAST ( NULL AS INTEGER ) ) ) ), + 18 * + + CAST ( NULL AS INTEGER ), - 40 ) ) ) ) + + 98 + - 70 - 98 + + COUNT ( * ) + + ( - + 1 ) / - 54 * - 10 ) AS col2
----
-2320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1271
SELECT ALL 78 * 16 * - CASE COUNT( * ) WHEN 18 - + COALESCE ( + + NULLIF ( + 63, + COUNT( * ) * - 57 * + 81 ), - 19 * 46 + - CAST( + 25 AS DECIMAL ) - 72 / - + 45 + - 88 * - 2 * + 28 + 1 / COUNT( * ), + 66 / + 61 + + - CAST( - + 49 AS SIGNED ) + + - 42 ) THEN CAST( NULL AS SIGNED ) - + - 61 / + COUNT( * ) - 2 ELSE NULL END + ( + SUM( ALL + 88 ) ) + CASE + 33 WHEN - 86 THEN + MAX( DISTINCT 10 ) WHEN 5 THEN + COUNT( * ) END / + + 6 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL 78 * 16 * - CASE COUNT ( * ) WHEN 18 - + COALESCE ( + + NULLIF ( + 63, + COUNT ( * ) * - 57 * + 81 ), - 19 * 46 + - CAST ( + 25 AS REAL ) - 72 / - + 45 + - 88 * - 2 * + 28 + 1 / COUNT ( * ), + 66 / + 61 + + - CAST ( - + 49 AS INTEGER ) + + - 42 ) THEN CAST ( NULL AS INTEGER ) - + - 61 / + COUNT ( * ) - 2 ELSE NULL END + ( + SUM ( ALL + 88 ) ) + CASE + 33 WHEN - 86 THEN + MAX ( DISTINCT 10 ) WHEN 5 THEN + COUNT ( * ) END / + + 6 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT COALESCE ( + 77, + ( + - MAX( DISTINCT + 92 ) ) )
----
77

skipif mysql # not compatible
query I rowsort label-1272
SELECT COALESCE ( + 77, + ( + - MAX ( DISTINCT + 92 ) ) )
----
77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1274
SELECT ALL COUNT( ALL - 37 ) + - 9 + - 67 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL COUNT ( ALL - 37 ) + - 9 + - 67 AS col1
----
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1275
SELECT CASE - 46 WHEN 66 THEN NULL WHEN - 3 THEN NULL ELSE + SUM( 46 ) DIV + 83 END * 92
----
0

skipif mysql # not compatible
query I rowsort label-1275
SELECT CASE - 46 WHEN 66 THEN NULL WHEN - 3 THEN NULL ELSE + SUM ( 46 ) / + 83 END * 92
----
0

query I rowsort
SELECT DISTINCT + 84 + 17 AS col1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1277
SELECT ALL MIN( ALL - - 94 ) + - + CAST( ( + 60 ) AS SIGNED ) * - 81 + 48 AS col1
----
5002

skipif mysql # not compatible
query I rowsort label-1277
SELECT ALL MIN ( ALL - - 94 ) + - + CAST ( ( + 60 ) AS INTEGER ) * - 81 + 48 AS col1
----
5002

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT - 63 + 27 DIV - - 5 - + 2 * + + MIN( + 46 ) * - + 85
----
7762

skipif mysql # not compatible
query I rowsort label-1278
SELECT - 63 + 27 / - - 5 - + 2 * + + MIN ( + 46 ) * - + 85
----
7762

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1279
SELECT 5 * 35 + COUNT( * ) DIV 89 AS col0
----
175

skipif mysql # not compatible
query I rowsort label-1279
SELECT 5 * 35 + COUNT ( * ) / 89 AS col0
----
175

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1281
SELECT - + SUM( DISTINCT - 50 ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-1281
SELECT - + SUM ( DISTINCT - 50 ) AS col1
----
50

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1282
SELECT CAST( NULL AS DECIMAL ) - 7 / + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-1282
SELECT CAST ( NULL AS REAL ) - 7 / + 75
----
NULL

query I rowsort
SELECT - 56 * + + 42
----
-2352

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1284
SELECT ALL - CAST( + 73 AS SIGNED ) AS col1, + 77 + + - 17 AS col0
----
-73
60

skipif mysql # not compatible
query II rowsort label-1284
SELECT ALL - CAST ( + 73 AS INTEGER ) AS col1, + 77 + + - 17 AS col0
----
-73
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT - COUNT( * ) + - 13
----
-14

skipif mysql # not compatible
query I rowsort label-1285
SELECT - COUNT ( * ) + - 13
----
-14

query I rowsort
SELECT ALL 83 - 3 col2
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1287
SELECT DISTINCT - CAST( 86 AS SIGNED ) * + 38 AS col0
----
-3268

skipif mysql # not compatible
query I rowsort label-1287
SELECT DISTINCT - CAST ( 86 AS INTEGER ) * + 38 AS col0
----
-3268

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

skipif mysql # not compatible
query I rowsort label-1288
SELECT ALL + + COUNT ( * ) - + 84 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT COUNT( * ) * 51 * + 30 + + COUNT( * ) * - 26 + 21 AS col2
----
1525

skipif mysql # not compatible
query I rowsort label-1289
SELECT COUNT ( * ) * 51 * + 30 + + COUNT ( * ) * - 26 + 21 AS col2
----
1525

query I rowsort
SELECT 54 - + 9 + + ( + - 88 ) * - 43 * - 47
----
-177803

query I rowsort
SELECT - ( 72 ) * - 66 - + 82 * 77
----
-1562

onlyif mysql # aggregate syntax: 
query II rowsort label-1292
SELECT ALL - ( - 64 ) AS col1, ( + CASE + + 26 WHEN - + ( + COUNT( * ) ) * + 69 THEN 42 * + ( + 10 ) * - - 74 ELSE + MAX( DISTINCT 96 ) END )
----
64
96

skipif mysql # not compatible
query II rowsort label-1292
SELECT ALL - ( - 64 ) AS col1, ( + CASE + + 26 WHEN - + ( + COUNT ( * ) ) * + 69 THEN 42 * + ( + 10 ) * - - 74 ELSE + MAX ( DISTINCT 96 ) END )
----
64
96

query I rowsort
SELECT 87 * 58 * + 41 AS col1
----
206886

query I rowsort
SELECT 43 * + 67 AS col2
----
2881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1295
SELECT 20 DIV - - 72 + COUNT( * ) - - + 46
----
47

skipif mysql # not compatible
query I rowsort label-1295
SELECT 20 / - - 72 + COUNT ( * ) - - + 46
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1296
SELECT + 52 AS col0, CASE - 83 WHEN - 58 * - ( CASE 0 WHEN - - CAST( NULL AS SIGNED ) DIV + + 24 - + - COUNT( 13 ) THEN + - 84 WHEN + 31 + - 72 THEN + ( 62 ) - - 4 ELSE NULL END ) THEN NULL ELSE - - 3 DIV + 53 END * - - 39 * - 42 AS col2
----
52
0

skipif mysql # not compatible
query II rowsort label-1296
SELECT + 52 AS col0, CASE - 83 WHEN - 58 * - ( CASE 0 WHEN - - CAST ( NULL AS INTEGER ) / + + 24 - + - COUNT ( 13 ) THEN + - 84 WHEN + 31 + - 72 THEN + ( 62 ) - - 4 ELSE NULL END ) THEN NULL ELSE - - 3 / + 53 END * - - 39 * - 42 AS col2
----
52
0

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT ALL - MAX ( ALL 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1298
SELECT 26 + - 55 DIV + COUNT( * ), + 67 - + 35 + - - 63 DIV - - 31 AS col0
----
-29
34

skipif mysql # not compatible
query II rowsort label-1298
SELECT 26 + - 55 / + COUNT ( * ), + 67 - + 35 + - - 63 / - - 31 AS col0
----
-29
34

query I rowsort
SELECT ALL - 11 * 45
----
-495

query I rowsort
SELECT 33 * 84
----
2772

onlyif mysql # DIV for integer division: 
query I rowsort label-1301
SELECT DISTINCT 14 DIV 37 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT 14 / 37 AS col2
----
0

query I rowsort
SELECT DISTINCT 31 * + 83 AS col0
----
2573

query I rowsort
SELECT DISTINCT - COALESCE ( 11, + + NULLIF ( - 51, ( + + 45 ) + - + 19 ), + - 32 ) AS col1
----
-11

query II rowsort
SELECT ALL - 16 AS col0, 24
----
-16
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT DISTINCT + 57 + - + COUNT( * ) col0
----
56

skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + 57 + - + COUNT ( * ) col0
----
56

query II rowsort
SELECT 23 AS col2, + 51 + 21
----
23
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT + 39 + 80 + - - COUNT( * ) * COUNT( * )
----
120

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + 39 + 80 + - - COUNT ( * ) * COUNT ( * )
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-1309
SELECT 77 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-1309
SELECT 77 / 83
----
0

query I rowsort
SELECT ALL + 12 + 92 AS col0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-1311
SELECT 18, COUNT( * ) + 33 + - 17 + + + 60 AS col2
----
18
77

skipif mysql # not compatible
query II rowsort label-1311
SELECT 18, COUNT ( * ) + 33 + - 17 + + + 60 AS col2
----
18
77

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

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

query I rowsort
SELECT 67 + 72
----
139

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1317
SELECT DISTINCT - COUNT( * ) + 89 * + 21 AS col2, 90
----
1868
90

skipif mysql # not compatible
query II rowsort label-1317
SELECT DISTINCT - COUNT ( * ) + 89 * + 21 AS col2, 90
----
1868
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT - MAX( 22 ) col1
----
-22

skipif mysql # not compatible
query I rowsort label-1318
SELECT - MAX ( 22 ) col1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1319
SELECT ( + + 30 ) + - - 58 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1319
SELECT ( + + 30 ) + - - 58 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1320
SELECT ALL - - CAST( NULL AS SIGNED ) + 57 + - AVG ( DISTINCT - 93 ) AS col0, COUNT( * ) * 27 + - 85 AS col2
----
NULL
-58

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL - - CAST ( NULL AS INTEGER ) + 57 + - AVG ( DISTINCT - 93 ) AS col0, COUNT ( * ) * 27 + - 85 AS col2
----
NULL
-58

query I rowsort
SELECT 61 * + 86
----
5246

query I rowsort
SELECT - ( 18 )
----
-18

query I rowsort
SELECT + 31 + + 17 + + 93 col2
----
141

query I rowsort
SELECT - 70 + - 83
----
-153

query I rowsort
SELECT ( - 74 ) * - 70 * 73 + 85 AS col1
----
378225

query I rowsort
SELECT 53 + - - ( + 9 )
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL - NULLIF ( 45, - COUNT( DISTINCT + + 15 ) * + ( - 67 ) ) - + - 66 AS col2
----
21

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL - NULLIF ( 45, - COUNT ( DISTINCT + + 15 ) * + ( - 67 ) ) - + - 66 AS col2
----
21

query II rowsort
SELECT ALL + 56, ( + + 55 ) + - 6 * - ( 13 ) AS col1
----
56
133

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT ALL + - SUM( + 68 ) - - 0 - 25 * COUNT( * )
----
-93

skipif mysql # not compatible
query I rowsort label-1329
SELECT ALL + - SUM ( + 68 ) - - 0 - 25 * COUNT ( * )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT COUNT( 22 )
----
1

skipif mysql # not compatible
query I rowsort label-1330
SELECT COUNT ( 22 )
----
1

query I rowsort
SELECT ALL - 78 - + 72
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1332
SELECT DISTINCT MIN( + 28 ) DIV + 77 + SUM( + 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-1332
SELECT DISTINCT MIN ( + 28 ) / + 77 + SUM ( + 65 ) AS col1
----
65

query I rowsort
SELECT + 47 + 94 AS col0
----
141

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

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

query I rowsort
SELECT 99 * - 81 * + NULLIF ( + 30, - 2 / ( + 83 ) - + 84 )
----
-240570

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT + 60 + - - MIN( + + 50 ) * 51
----
2610

skipif mysql # not compatible
query I rowsort label-1336
SELECT + 60 + - - MIN ( + + 50 ) * 51
----
2610

query I rowsort
SELECT DISTINCT - 85 * ( + 82 )
----
-6970

onlyif mysql # DIV for integer division: 
query I rowsort label-1338
SELECT ALL 39 * ( + 28 ) * + 60 * - - 64 * - 53 + + 62 DIV 20
----
-222243837

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL 39 * ( + 28 ) * + 60 * - - 64 * - 53 + + 62 / 20
----
-222243837

onlyif mysql # aggregate syntax: 
query I rowsort label-1339
SELECT ALL - CASE - - MAX( ALL - 18 ) WHEN - - COUNT( * ) * - - 25 THEN NULL WHEN + - 17 THEN - 36 * - 47 * - + ( + - 76 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL - CASE - - MAX ( ALL - 18 ) WHEN - - COUNT ( * ) * - - 25 THEN NULL WHEN + - 17 THEN - 36 * - 47 * - + ( + - 76 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1340
SELECT AVG ( + CAST( NULL AS SIGNED ) ) col2, - 1 DIV + 50 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1340
SELECT AVG ( + CAST ( NULL AS INTEGER ) ) col2, - 1 / + 50 AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1341
SELECT 42 * + + 95, + COUNT( * ) * 29 AS col1
----
3990
29

skipif mysql # not compatible
query II rowsort label-1341
SELECT 42 * + + 95, + COUNT ( * ) * 29 AS col1
----
3990
29

query I rowsort
SELECT ALL - 87 col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1343
SELECT 26 - - CAST( + NULLIF ( ( + 96 ), + COUNT( * ) * + - 6 ) AS SIGNED ) - + + 65 AS col0
----
57

skipif mysql # not compatible
query I rowsort label-1343
SELECT 26 - - CAST ( + NULLIF ( ( + 96 ), + COUNT ( * ) * + - 6 ) AS INTEGER ) - + + 65 AS col0
----
57

query I rowsort
SELECT + COALESCE ( - 40, 15 + 48 ) AS col2
----
-40

query II rowsort
SELECT 32 * 94 AS col2, - 47 + + 96 * 9 + + 86 AS col0
----
3008
903

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1347
SELECT ALL 39 * + 58 * - + 55 * - CASE COUNT( * ) WHEN - 26 THEN - - 44 WHEN - - COUNT( * ) THEN 71 ELSE + 57 DIV - 98 * - 79 + + NULLIF ( - 69, + - 50 ) DIV 21 + - ( 79 ) END * - 28 + + 81 * - ( - COUNT( * ) ), + 43 AS col2
----
-247326999
43

skipif mysql # not compatible
query II rowsort label-1347
SELECT ALL 39 * + 58 * - + 55 * - CASE COUNT ( * ) WHEN - 26 THEN - - 44 WHEN - - COUNT ( * ) THEN 71 ELSE + 57 / - 98 * - 79 + + NULLIF ( - 69, + - 50 ) / 21 + - ( 79 ) END * - 28 + + 81 * - ( - COUNT ( * ) ), + 43 AS col2
----
-247326999
43

query I rowsort
SELECT DISTINCT - 10 * - ( + 93 ) + - 21
----
909

query I rowsort
SELECT ALL - 54 * + - ( - - 25 ) col2
----
1350

onlyif mysql # aggregate syntax: 
query II rowsort label-1350
SELECT ALL 77 + 89 * 40 * - + 34 + - SUM( DISTINCT - 56 ) * 22 AS col1, + 70
----
-119731
70

skipif mysql # not compatible
query II rowsort label-1350
SELECT ALL 77 + 89 * 40 * - + 34 + - SUM ( DISTINCT - 56 ) * 22 AS col1, + 70
----
-119731
70

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1352
SELECT DISTINCT COUNT( DISTINCT - 15 ) + COALESCE ( + + 81, - 95 ) * - 51 + + 38 * NULLIF ( 98, - CAST( + + 30 AS DECIMAL ) / 97 + + + 55 )
----
-406

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT COUNT ( DISTINCT - 15 ) + COALESCE ( + + 81, - 95 ) * - 51 + + 38 * NULLIF ( 98, - CAST ( + + 30 AS REAL ) / 97 + + + 55 )
----
-406

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1353
SELECT DISTINCT - COALESCE ( - CAST( - 78 AS SIGNED ), + 56 )
----
-78

skipif mysql # not compatible
query I rowsort label-1353
SELECT DISTINCT - COALESCE ( - CAST ( - 78 AS INTEGER ), + 56 )
----
-78

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

skipif mysql # not compatible
query I rowsort label-1354
SELECT - 54 * COUNT ( * )
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1355
SELECT - 59 * - COALESCE ( ( CAST( + + 69 AS SIGNED ) ), 40 ) AS col1
----
4071

skipif mysql # not compatible
query I rowsort label-1355
SELECT - 59 * - COALESCE ( ( CAST ( + + 69 AS INTEGER ) ), 40 ) AS col1
----
4071

query I rowsort
SELECT - 29 * - 31 - 50
----
849

query I rowsort
SELECT ALL - 82 - - 99 AS col0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1358
SELECT MIN( - ( + + NULLIF ( COALESCE ( + 33, + CAST( + - 47 AS SIGNED ) * - 1 + + - 64 + + 95, + + 41 * + + 3 / 85 * + + 65 ), 37 / + 61 + - 60 ) ) ) AS col0
----
-33

skipif mysql # not compatible
query I rowsort label-1358
SELECT MIN ( - ( + + NULLIF ( COALESCE ( + 33, + CAST ( + - 47 AS INTEGER ) * - 1 + + - 64 + + 95, + + 41 * + + 3 / 85 * + + 65 ), 37 / + 61 + - 60 ) ) ) AS col0
----
-33

query I rowsort
SELECT DISTINCT - - 62 * ( + - 14 ) + - 33 col1
----
-901

query I rowsort
SELECT - - 44 * + 98 * 35
----
150920

query I rowsort
SELECT DISTINCT - 19 col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT ALL - - 20 * COUNT( * ) * 10
----
200

skipif mysql # not compatible
query I rowsort label-1362
SELECT ALL - - 20 * COUNT ( * ) * 10
----
200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1363
SELECT - + ( - 53 ) + + + 31 * + + ( - COUNT( * ) ) DIV - 52
----
53

skipif mysql # not compatible
query I rowsort label-1363
SELECT - + ( - 53 ) + + + 31 * + + ( - COUNT ( * ) ) / - 52
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1364
SELECT DISTINCT - 89 * + + 13 * 88 * 11 + + COUNT( * ) + - MIN( DISTINCT COALESCE ( - 6, - 26 + + 31 ) )
----
-1119969

skipif mysql # not compatible
query I rowsort label-1364
SELECT DISTINCT - 89 * + + 13 * 88 * 11 + + COUNT ( * ) + - MIN ( DISTINCT COALESCE ( - 6, - 26 + + 31 ) )
----
-1119969

query I rowsort
SELECT - 75 * + 84 * 46
----
-289800

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT + + 61 DIV + 53
----
1

skipif mysql # not compatible
query I rowsort label-1367
SELECT + + 61 / + 53
----
1

query I rowsort
SELECT - 97 - + 10 * - 11
----
13

query I rowsort
SELECT DISTINCT - COALESCE ( + 64, - 82 ) * - + COALESCE ( + + 41, + 72 + 57 + - 36 + + + 85 + 7 )
----
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT - 67 + + MIN( ( 25 ) )
----
-42

skipif mysql # not compatible
query I rowsort label-1370
SELECT - 67 + + MIN ( ( 25 ) )
----
-42

query II rowsort
SELECT ALL 49, 7 AS col0
----
49
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - MIN( ALL - 72 ) AS col2
----
72

skipif mysql # not compatible
query I rowsort label-1372
SELECT - MIN ( ALL - 72 ) AS col2
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1373
SELECT ALL - SUM( + ( + + 36 ) ) + + ( + + 5 ) - + - 3 DIV COUNT( * ) - + - 91
----
63

skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL - SUM ( + ( + + 36 ) ) + + ( + + 5 ) - + - 3 / COUNT ( * ) - + - 91
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT DISTINCT 14 * + 88 * + SUM( 86 )
----
105952

skipif mysql # not compatible
query I rowsort label-1374
SELECT DISTINCT 14 * + 88 * + SUM ( 86 )
----
105952

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1375
SELECT ALL 23 DIV - - COUNT( * ) + 68 * - 77 AS col2
----
-5213

skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL 23 / - - COUNT ( * ) + 68 * - 77 AS col2
----
-5213

query I rowsort
SELECT - 92 * - 90 + - 89 AS col0
----
8191

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

skipif mysql # not compatible
query I rowsort label-1377
SELECT + COUNT ( * ) - + + 89 AS col0
----
-88

query I rowsort
SELECT DISTINCT 78 * + 53
----
4134

query I rowsort
SELECT ALL 60 * - + 7 + 12
----
-408

query I rowsort
SELECT ALL 13 * + 58 col0
----
754

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1382
SELECT ALL + 96 AS col2, - ( - + 53 ) * + + COUNT( * ) - + MIN( + 12 ) + CAST( - + 72 AS SIGNED ) + + 12 * - 98 AS col2
----
96
-1207

skipif mysql # not compatible
query II rowsort label-1382
SELECT ALL + 96 AS col2, - ( - + 53 ) * + + COUNT ( * ) - + MIN ( + 12 ) + CAST ( - + 72 AS INTEGER ) + + 12 * - 98 AS col2
----
96
-1207

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT + CAST ( - 37 AS INTEGER ) AS col2
----
-37

query I rowsort
SELECT DISTINCT 18 * - 99
----
-1782

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

query I rowsort
SELECT + ( - 28 ) + - 40
----
-68

query I rowsort
SELECT CASE + - 27 WHEN - - ( + - 41 ) * 25 + + 32 THEN NULL ELSE - 6 END
----
-6

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

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

query I rowsort
SELECT + 71 * - 64 + - 61
----
-4605

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT CASE 95 WHEN MAX( ALL - ( - 95 ) ) * 10 THEN NULL ELSE - 30 + + COUNT( * ) END
----
-29

skipif mysql # not compatible
query I rowsort label-1390
SELECT CASE 95 WHEN MAX ( ALL - ( - 95 ) ) * 10 THEN NULL ELSE - 30 + + COUNT ( * ) END
----
-29

query I rowsort
SELECT + 5 + + 96 * + 21
----
2021

query I rowsort
SELECT ALL 90 * 92 - 46 * 70 AS col1
----
5060

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT + 81 + - 98 / + CASE + 45 WHEN 88 THEN + ( + 84 ) * 57 + COUNT( * ) WHEN + 77 * + 7 THEN NULL WHEN 19 / + 99 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1393
SELECT + 81 + - 98 / + CASE + 45 WHEN 88 THEN + ( + 84 ) * 57 + COUNT ( * ) WHEN + 77 * + 7 THEN NULL WHEN 19 / + 99 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL + ( 76 ) * 91
----
6916

query I rowsort
SELECT ALL COALESCE ( 66, 39 )
----
66

query I rowsort
SELECT + 57 + ( - 94 )
----
-37

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

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

query I rowsort
SELECT - 34 * + 93 AS col0
----
-3162

query I rowsort
SELECT + ( ( 67 ) ) * - 98 AS col1
----
-6566

query I rowsort
SELECT - 51 + + 88
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT MAX( 80 ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-1401
SELECT MAX ( 80 ) AS col0
----
80

query I rowsort
SELECT - 27 + 23 * - 75
----
-1752

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT + 98 DIV - 59
----
-1

skipif mysql # not compatible
query I rowsort label-1403
SELECT + 98 / - 59
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1405
SELECT ALL CASE 58 WHEN + 36 THEN - CASE - 63 WHEN - 28 / + COUNT( * ) + - 91 THEN + 3 * + 58 END * - 81 + ( + 35 ) WHEN - 11 THEN + ( - 28 ) ELSE - 47 END AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL CASE 58 WHEN + 36 THEN - CASE - 63 WHEN - 28 / + COUNT ( * ) + - 91 THEN + 3 * + 58 END * - 81 + ( + 35 ) WHEN - 11 THEN + ( - 28 ) ELSE - 47 END AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - 80 + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 80 + COUNT ( * )
----
-79

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT - 91 + - 49 DIV 46
----
-92

skipif mysql # not compatible
query I rowsort label-1408
SELECT - 91 + - 49 / 46
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT SUM( DISTINCT 14 ) col0
----
14

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT SUM ( DISTINCT 14 ) col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT 15 + SUM( ALL - ( - 16 ) )
----
31

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT 15 + SUM ( ALL - ( - 16 ) )
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1411
SELECT ALL CAST( 5 AS SIGNED ) col1
----
5

skipif mysql # not compatible
query I rowsort label-1411
SELECT ALL CAST ( 5 AS INTEGER ) col1
----
5

query I rowsort
SELECT DISTINCT - 97 * + 77
----
-7469

query I rowsort
SELECT - 44 * + COALESCE ( 80, 17, + 79 )
----
-3520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1414
SELECT ALL - COUNT( * ) + NULLIF ( CAST( NULL AS SIGNED ), 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL - COUNT ( * ) + NULLIF ( CAST ( NULL AS INTEGER ), 72 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT DISTINCT + 70 + CASE MIN( - 35 ) WHEN - ( CASE COUNT( * ) WHEN 15 * + 75 THEN NULL WHEN 48 * - COUNT( * ) THEN 48 + 65 ELSE 70 + 7 END ) * + 20 + - 54 THEN + 37 + - 87 WHEN 60 THEN 96 ELSE + 14 END DIV + 86 AS col1
----
70

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + 70 + CASE MIN ( - 35 ) WHEN - ( CASE COUNT ( * ) WHEN 15 * + 75 THEN NULL WHEN 48 * - COUNT ( * ) THEN 48 + 65 ELSE 70 + 7 END ) * + 20 + - 54 THEN + 37 + - 87 WHEN 60 THEN 96 ELSE + 14 END / + 86 AS col1
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT + 80 + + COUNT( DISTINCT 79 ) AS col0
----
81

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT + 80 + + COUNT ( DISTINCT 79 ) AS col0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 43 / 60
----
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 43 / 60
----
NULL

query I rowsort
SELECT DISTINCT + 98 * 6
----
588

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - COUNT( * ) + 5
----
4

skipif mysql # not compatible
query I rowsort label-1419
SELECT - COUNT ( * ) + 5
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT - CASE - 66 WHEN - 63 + 18 THEN - 16 WHEN + 89 + - 73 THEN NULL ELSE + COUNT( * ) END col1
----
-1

skipif mysql # not compatible
query I rowsort label-1420
SELECT - CASE - 66 WHEN - 63 + 18 THEN - 16 WHEN + 89 + - 73 THEN NULL ELSE + COUNT ( * ) END col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT + 80 + - NULLIF ( + COUNT( * ), 21 ) * 61
----
19

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + 80 + - NULLIF ( + COUNT ( * ), 21 ) * 61
----
19

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

query I rowsort
SELECT 61 * - 80
----
-4880

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

skipif mysql # not compatible
query I rowsort label-1424
SELECT ALL + CAST ( 73 AS INTEGER ) * - 63
----
-4599

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1426
SELECT + 12 DIV - 16 + + COUNT( * ) * 9
----
9

skipif mysql # not compatible
query I rowsort label-1426
SELECT + 12 / - 16 + + COUNT ( * ) * 9
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT DISTINCT + 81 * MAX( ( + 78 ) )
----
6318

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + 81 * MAX ( ( + 78 ) )
----
6318

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

skipif mysql # not compatible
query I rowsort label-1428
SELECT DISTINCT COUNT ( * ) / 28 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT ALL + 63 - + CAST( 81 AS SIGNED ) * - 28 AS col2
----
2331

skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL + 63 - + CAST ( 81 AS INTEGER ) * - 28 AS col2
----
2331

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT MIN( ALL + 58 ) * 72 AS col1
----
4176

skipif mysql # not compatible
query I rowsort label-1430
SELECT MIN ( ALL + 58 ) * 72 AS col1
----
4176

query I rowsort
SELECT 60 - 91
----
-31

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

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

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

skipif mysql # not compatible
query I rowsort label-1433
SELECT - 74 / - 41 + + COUNT ( * ) * 39
----
40

query I rowsort
SELECT ALL NULLIF ( 93, - 6 * ( - ( 44 ) ) ) * 49
----
4557

query I rowsort
SELECT 86 * - 28
----
-2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1436
SELECT DISTINCT + 74 * + ( CASE 80 WHEN 67 THEN NULL ELSE ( + 55 ) * - 89 END + + COUNT( * ) DIV + CAST( - 45 * - 52 + + 57 AS SIGNED ) )
----
-362230

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT + 74 * + ( CASE 80 WHEN 67 THEN NULL ELSE ( + 55 ) * - 89 END + + COUNT ( * ) / + CAST ( - 45 * - 52 + + 57 AS INTEGER ) )
----
-362230

query I rowsort
SELECT ALL - - 66 * - 70
----
-4620

query I rowsort
SELECT DISTINCT - + 15
----
-15

query I rowsort
SELECT ALL - 46 * 35 col1
----
-1610

onlyif mysql # aggregate syntax: 
query I rowsort label-1440
SELECT - SUM( DISTINCT - 61 ) * - 54 col0
----
-3294

skipif mysql # not compatible
query I rowsort label-1440
SELECT - SUM ( DISTINCT - 61 ) * - 54 col0
----
-3294

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

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

query I rowsort
SELECT DISTINCT - 55 * 42 AS col2
----
-2310

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

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

query I rowsort
SELECT DISTINCT 65 + 47 AS col1
----
112

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1448
SELECT 66 * CASE WHEN NOT ( - CASE - 5 WHEN CAST( NULL AS SIGNED ) + - 15 THEN 53 END ) IN ( + 37 * + 91 ) THEN + 97 * 26 WHEN NOT - AVG ( DISTINCT + ( ( 4 ) ) ) * + 64 IS NOT NULL THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1448
SELECT 66 * CASE WHEN NOT ( - CASE - 5 WHEN CAST ( NULL AS INTEGER ) + - 15 THEN 53 END ) IN ( + 37 * + 91 ) THEN + 97 * 26 WHEN NOT - AVG ( DISTINCT + ( ( 4 ) ) ) * + 64 IS NOT NULL THEN NULL END AS col1
----
NULL

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

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

query I rowsort
SELECT ALL 5 * 50 AS col0
----
250

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT ALL + 81 + + 10 DIV 41
----
81

skipif mysql # not compatible
query I rowsort label-1451
SELECT ALL + 81 + + 10 / 41
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1452
SELECT ALL COUNT( * ) + + COUNT( * ) * ( - 82 + - 38 ) col0
----
-119

skipif mysql # not compatible
query I rowsort label-1452
SELECT ALL COUNT ( * ) + + COUNT ( * ) * ( - 82 + - 38 ) col0
----
-119

query I rowsort
SELECT ALL + 6 * ( - 91 + - 99 ) col1
----
-1140

onlyif mysql # DIV for integer division: 
query I rowsort label-1454
SELECT 46 DIV - 73
----
0

skipif mysql # not compatible
query I rowsort label-1454
SELECT 46 / - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT ALL COUNT( DISTINCT 42 ) + 76 AS col1
----
77

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL COUNT ( DISTINCT 42 ) + 76 AS col1
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT ALL + 89 + + MAX( 54 )
----
143

skipif mysql # not compatible
query I rowsort label-1456
SELECT ALL + 89 + + MAX ( 54 )
----
143

query I rowsort
SELECT ALL + 78 * + 34
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-1458
SELECT ALL 2 * - - 69 * COUNT( * ) AS col0
----
138

skipif mysql # not compatible
query I rowsort label-1458
SELECT ALL 2 * - - 69 * COUNT ( * ) AS col0
----
138

query I rowsort
SELECT 42 * - 34 * - 54
----
77112

onlyif mysql # DIV for integer division: 
query I rowsort label-1460
SELECT COALESCE ( - 95, + 67 DIV + 10, + 10 ) + + 3 DIV + 33
----
-95

skipif mysql # not compatible
query I rowsort label-1460
SELECT COALESCE ( - 95, + 67 / + 10, + 10 ) + + 3 / + 33
----
-95

query I rowsort
SELECT ALL + 94 + - 31 + 24 AS col1
----
87

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

skipif mysql # not compatible
query I rowsort label-1462
SELECT 61 + COUNT ( * ) - 69 / - 20 AS col0
----
65

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

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL - COUNT ( * ) / + 65 col2
----
0

query I rowsort
SELECT 70 + 88 AS col0
----
158

query I rowsort
SELECT ALL 60 - 20
----
40

query I rowsort
SELECT ALL - 95 - 61
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1467
SELECT MAX( DISTINCT + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1467
SELECT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1468
SELECT + 45 DIV + 13 + 27
----
30

skipif mysql # not compatible
query I rowsort label-1468
SELECT + 45 / + 13 + 27
----
30

query I rowsort
SELECT ALL + 59 * + + NULLIF ( 71, - 54 / 42 )
----
4189

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

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

query I rowsort
SELECT 31 * - 36 + - 91 col1
----
-1207

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT COUNT( * ) * + 11 * 54 AS col0
----
594

skipif mysql # not compatible
query I rowsort label-1474
SELECT COUNT ( * ) * + 11 * 54 AS col0
----
594

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

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

query I rowsort
SELECT ALL + 17 * 19 AS col2
----
323

query I rowsort
SELECT - 48 * 56 AS col2
----
-2688

onlyif mysql # DIV for integer division: 
query I rowsort label-1479
SELECT ALL - 95 DIV 92 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL - 95 / 92 AS col0
----
-1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT CAST( + - 97 AS SIGNED ) + 89 * 80
----
7023

skipif mysql # not compatible
query I rowsort label-1481
SELECT CAST ( + - 97 AS INTEGER ) + 89 * 80
----
7023

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT ALL - 51 DIV 39
----
-1

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - 51 / 39
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT 45 * 7 DIV NULLIF ( - 98, COUNT( * ) ) + - ( 82 ) AS col0
----
-85

skipif mysql # not compatible
query I rowsort label-1483
SELECT 45 * 7 / NULLIF ( - 98, COUNT ( * ) ) + - ( 82 ) AS col0
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1484
SELECT COALESCE ( + CAST( - 54 AS SIGNED ), - 69 ) * + 86 AS col1
----
-4644

skipif mysql # not compatible
query I rowsort label-1484
SELECT COALESCE ( + CAST ( - 54 AS INTEGER ), - 69 ) * + 86 AS col1
----
-4644

query I rowsort
SELECT ALL - + 13 + + 7
----
-6

query I rowsort
SELECT - 97 * - 75 * + 86 AS col1
----
625650

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT ALL + 60 + CASE 52 WHEN + 88 + COUNT( * ) THEN - 74 WHEN AVG ( ALL + 81 ) THEN NULL WHEN 65 - 57 THEN - 13 * 15 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-1487
SELECT ALL + 60 + CASE 52 WHEN + 88 + COUNT ( * ) THEN - 74 WHEN AVG ( ALL + 81 ) THEN NULL WHEN 65 - 57 THEN - 13 * 15 - - COUNT ( * ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1488
SELECT ALL - - 46 DIV + 57 col1
----
0

skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL - - 46 / + 57 col1
----
0

query I rowsort
SELECT DISTINCT + + 84 + + 70 + 39
----
193

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1491
SELECT ALL 94 * + NULLIF ( 86, CAST( NULL AS SIGNED ) ) AS col0
----
8084

skipif mysql # not compatible
query I rowsort label-1491
SELECT ALL 94 * + NULLIF ( 86, CAST ( NULL AS INTEGER ) ) AS col0
----
8084

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

query I rowsort
SELECT DISTINCT - - 71 * - - 7 + 44 AS col0
----
541

query I rowsort
SELECT - 77 + + 93
----
16

query I rowsort
SELECT ALL - 19 + - + 79 AS col1
----
-98

query I rowsort
SELECT + 86 + + 48 col0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT ALL - 49 * - MIN( 86 ) - COUNT( * )
----
4213

skipif mysql # not compatible
query I rowsort label-1497
SELECT ALL - 49 * - MIN ( 86 ) - COUNT ( * )
----
4213

onlyif mysql # aggregate syntax: 
query I rowsort label-1498
SELECT + 30 * MIN( 42 ) * 17 AS col1
----
21420

skipif mysql # not compatible
query I rowsort label-1498
SELECT + 30 * MIN ( 42 ) * 17 AS col1
----
21420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1499
SELECT + - 92 * - CAST( NULL AS SIGNED ) - - 35 * 53 + + 33 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1499
SELECT + - 92 * - CAST ( NULL AS INTEGER ) - - 35 * 53 + + 33 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT + 13 + 94 + + COUNT( * ) * 98 * 35 AS col0
----
3537

skipif mysql # not compatible
query I rowsort label-1500
SELECT + 13 + 94 + + COUNT ( * ) * 98 * 35 AS col0
----
3537

query I rowsort
SELECT ALL 20 + + 55 - + + 49 + 54
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT ALL 96 - - - 62 - - + 99 + 43 DIV 89
----
133

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL 96 - - - 62 - - + 99 + 43 / 89
----
133

query I rowsort
SELECT + 2 * - 5 * - - 7 AS col2
----
-70

query I rowsort
SELECT + 8 * - 26
----
-208

query I rowsort
SELECT DISTINCT COALESCE ( 95, + 25 )
----
95

query I rowsort
SELECT ALL 49 * 58 AS col1
----
2842

onlyif mysql # aggregate syntax: 
query II rowsort label-1507
SELECT 72, - 45 * - + 92 + MIN( ALL - 29 ) AS col2
----
72
4111

skipif mysql # not compatible
query II rowsort label-1507
SELECT 72, - 45 * - + 92 + MIN ( ALL - 29 ) AS col2
----
72
4111

query I rowsort
SELECT ALL 60 - - 11 col0
----
71

query I rowsort
SELECT + 72 * + 69 AS col0
----
4968

query I rowsort
SELECT - CASE + + 68 WHEN - 32 * 31 THEN - 2 WHEN 51 THEN 19 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1511
SELECT + MIN( + 39 ) + + - 16 AS col2
----
23

skipif mysql # not compatible
query I rowsort label-1511
SELECT + MIN ( + 39 ) + + - 16 AS col2
----
23

query I rowsort
SELECT + 24 + 65 + - 66 * + 57 AS col1
----
-3673

query I rowsort
SELECT + 36 * - - 54 * + 49
----
95256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1514
SELECT + 42 * - CAST( 92 AS SIGNED )
----
-3864

skipif mysql # not compatible
query I rowsort label-1514
SELECT + 42 * - CAST ( 92 AS INTEGER )
----
-3864

query I rowsort
SELECT - 1 + - 12 + - 98 AS col1
----
-111

query I rowsort
SELECT - 77 * 12 * 99 AS col0
----
-91476

query I rowsort
SELECT - COALESCE ( - - 67, + 86, 96 )
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1518
SELECT - 94 DIV + ( + 88 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-1518
SELECT - 94 / + ( + 88 ) col2
----
-1

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

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - 91 / - COUNT ( * )
----
91

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1521
SELECT - CAST( + - 23 AS SIGNED ) DIV 25 + 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-1521
SELECT - CAST ( + - 23 AS INTEGER ) / 25 + 76 AS col1
----
76

query I rowsort
SELECT + 41 * - 26
----
-1066

onlyif mysql # DIV for integer division: 
query I rowsort label-1523
SELECT ALL 47 DIV ( + 80 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT ALL 47 / ( + 80 ) AS col1
----
0

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

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

query I rowsort
SELECT ALL + - 45 * + + 70 + COALESCE ( 49, - 20 ) * 83 col2
----
917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT + NULLIF ( + COUNT( * ), COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1527
SELECT + NULLIF ( + COUNT ( * ), COUNT ( * ) )
----
NULL

query I rowsort
SELECT + 85 * + 6
----
510

query I rowsort
SELECT - CASE - 55 WHEN + 48 THEN 63 WHEN 24 THEN NULL WHEN + 1 THEN NULL END * - 17 + + 61 col2
----
NULL

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1532
SELECT - + 83 * - CAST ( NULL AS INTEGER ) * 70
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1535
SELECT ALL - COALESCE ( 87, + COUNT( * ) + 18, - SUM( 70 ) ) * - 43 + 15 AS col2
----
3756

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL - COALESCE ( 87, + COUNT ( * ) + 18, - SUM ( 70 ) ) * - 43 + 15 AS col2
----
3756

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

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

query II rowsort
SELECT + 89, + 10 col0
----
89
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1538
SELECT ALL - NULLIF ( - - COALESCE ( - 86, - COUNT( * ) * MAX( + 35 * 45 ), - 30 DIV 94 + COUNT( * ), 75 ), 59 ) DIV 45
----
1

skipif mysql # not compatible
query I rowsort label-1538
SELECT ALL - NULLIF ( - - COALESCE ( - 86, - COUNT ( * ) * MAX ( + 35 * 45 ), - 30 / 94 + COUNT ( * ), 75 ), 59 ) / 45
----
1

query I rowsort
SELECT - 42 * 24 AS col2
----
-1008

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT - 2 / + 37
----
0

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

skipif mysql # not compatible
query I rowsort label-1541
SELECT ALL + 67 * + COUNT ( * ) * + 45 col0
----
3015

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT - SUM( DISTINCT 76 ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-1543
SELECT - SUM ( DISTINCT 76 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT - CASE MAX( 46 ) WHEN + 48 + 57 THEN CASE - 45 WHEN - 54 THEN 98 WHEN COUNT( * ) + CASE 64 WHEN 30 THEN - 35 * + ( 16 / 10 ) ELSE NULL END * + ( + 17 - + 56 ) THEN NULL END WHEN + 81 THEN NULL WHEN + 22 THEN NULL ELSE NULL END / - 0
----
NULL

skipif mysql # not compatible
query I rowsort label-1544
SELECT - CASE MAX ( 46 ) WHEN + 48 + 57 THEN CASE - 45 WHEN - 54 THEN 98 WHEN COUNT ( * ) + CASE 64 WHEN 30 THEN - 35 * + ( 16 / 10 ) ELSE NULL END * + ( + 17 - + 56 ) THEN NULL END WHEN + 81 THEN NULL WHEN + 22 THEN NULL ELSE NULL END / - 0
----
NULL

query II rowsort
SELECT DISTINCT + 22 * 15 AS col0, 26 - - 88 + 51 AS col0
----
330
165

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

query I rowsort
SELECT ALL - 58 * 68 * + - 37
----
145928

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

skipif mysql # not compatible
query I rowsort label-1548
SELECT ALL CAST ( + 74 AS INTEGER ) AS col1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1549
SELECT - COUNT( * ) + - 86 + - SUM( - 26 ) + - 34 DIV 66 AS col1
----
-61

skipif mysql # not compatible
query I rowsort label-1549
SELECT - COUNT ( * ) + - 86 + - SUM ( - 26 ) + - 34 / 66 AS col1
----
-61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1550
SELECT - 95 + + 46 + COUNT( * ) * - 29 + + COUNT( * ) * + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1550
SELECT - 95 + + 46 + COUNT ( * ) * - 29 + + COUNT ( * ) * + CAST ( NULL AS REAL )
----
NULL

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

query I rowsort
SELECT ALL 59 + 17 AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT + SUM( DISTINCT 4 ) + + MIN( 49 ) * + COUNT( * )
----
53

skipif mysql # not compatible
query I rowsort label-1553
SELECT + SUM ( DISTINCT 4 ) + + MIN ( 49 ) * + COUNT ( * )
----
53

query I rowsort
SELECT + 82 * + 3
----
246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1555
SELECT + 41 + - 31, SUM( + CAST( NULL AS SIGNED ) ) AS col2
----
10
NULL

skipif mysql # not compatible
query II rowsort label-1555
SELECT + 41 + - 31, SUM ( + CAST ( NULL AS INTEGER ) ) AS col2
----
10
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL SUM( + 27 ) + 58 + + 90
----
175

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL SUM ( + 27 ) + 58 + + 90
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL COUNT( * ) + + + 81 * ( NULLIF ( ( COUNT( * ) ), 51 * - 62 - COUNT( * ) ) ) AS col0
----
82

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL COUNT ( * ) + + + 81 * ( NULLIF ( ( COUNT ( * ) ), 51 * - 62 - COUNT ( * ) ) ) AS col0
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1558
SELECT + 75 DIV + 22 + + COUNT( * ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-1558
SELECT + 75 / + 22 + + COUNT ( * ) AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT - 67 * + + 76 + - + COUNT( + 31 )
----
-5093

skipif mysql # not compatible
query I rowsort label-1559
SELECT - 67 * + + 76 + - + COUNT ( + 31 )
----
-5093

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT - COUNT( * ) DIV - 17 * 6 + + MAX( 55 ) * 13
----
715

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - COUNT ( * ) / - 17 * 6 + + MAX ( 55 ) * 13
----
715

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT ALL + 13 DIV + - 42 * - 25 DIV 1 + 56
----
56

skipif mysql # not compatible
query I rowsort label-1562
SELECT ALL + 13 / + - 42 * - 25 / 1 + 56
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1563
SELECT + NULLIF ( 54, - CAST( NULL AS SIGNED ) + + 20 * 1 ) AS col0
----
54

skipif mysql # not compatible
query I rowsort label-1563
SELECT + NULLIF ( 54, - CAST ( NULL AS INTEGER ) + + 20 * 1 ) AS col0
----
54

query I rowsort
SELECT COALESCE ( + + 17, - ( + + 94 ) ) col0
----
17

query I rowsort
SELECT + + 38 * + 61 AS col1
----
2318

onlyif mysql # DIV for integer division: 
query I rowsort label-1566
SELECT DISTINCT + - 29 DIV - 61 * - 38 + + 67 AS col1
----
67

skipif mysql # not compatible
query I rowsort label-1566
SELECT DISTINCT + - 29 / - 61 * - 38 + + 67 AS col1
----
67

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

query II rowsort
SELECT ( + + 80 ) AS col0, 10 * 95
----
80
950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1569
SELECT DISTINCT + 55 DIV COALESCE ( 84, - COUNT( * ) ) + + 68 + - 72 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-1569
SELECT DISTINCT + 55 / COALESCE ( 84, - COUNT ( * ) ) + + 68 + - 72 AS col1
----
-4

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

query I rowsort
SELECT + ( 7 ) + - 14 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1572
SELECT ALL - COALESCE ( - + 58, - 8 ) DIV + - 63 * 62 + - 92 * 25 - + CAST( 8 + - 20 AS SIGNED )
----
-2288

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL - COALESCE ( - + 58, - 8 ) / + - 63 * 62 + - 92 * 25 - + CAST ( 8 + - 20 AS INTEGER )
----
-2288

query I rowsort
SELECT - COALESCE ( - + 66, 26 )
----
66

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT MAX( - - 32 ) + - 57
----
-25

skipif mysql # not compatible
query I rowsort label-1575
SELECT MAX ( - - 32 ) + - 57
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - - 41 * + 47 * COUNT( * )
----
1927

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - - 41 * + 47 * COUNT ( * )
----
1927

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + 48 + 78 + + - COUNT( * ) * 92 * + 38
----
-3370

skipif mysql # not compatible
query I rowsort label-1577
SELECT + 48 + 78 + + - COUNT ( * ) * 92 * + 38
----
-3370

query I rowsort
SELECT 71 + - 61
----
10

query II rowsort
SELECT DISTINCT 1, + 73 * + + NULLIF ( + 35, + 94 ) AS col1
----
1
2555

query I rowsort
SELECT 86 + - 85 - CASE 98 WHEN 26 / 23 THEN NULL ELSE + 10 END
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1581
SELECT 99 * + 22 + - MIN( + - 59 ) AS col0
----
2237

skipif mysql # not compatible
query I rowsort label-1581
SELECT 99 * + 22 + - MIN ( + - 59 ) AS col0
----
2237

query I rowsort
SELECT 70 * + - 69 col0
----
-4830

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

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

query I rowsort
SELECT DISTINCT + 91 * - 27 AS col2
----
-2457

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1586
SELECT 95 * - COUNT( * ) * - 51 AS col0
----
4845

skipif mysql # not compatible
query I rowsort label-1586
SELECT 95 * - COUNT ( * ) * - 51 AS col0
----
4845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1587
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) + - + 36 + - 17 * + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) + - + 36 + - 17 * + - 52
----
NULL

query II rowsort
SELECT ALL 30 AS col0, - 30 AS col2
----
30
-30

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

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

query I rowsort
SELECT ALL + 73 + + - 41 AS col2
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1591
SELECT ALL - 10 + COUNT( * ) + + 92 DIV + 61
----
-8

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - 10 + COUNT ( * ) + + 92 / + 61
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT 95 * 26 * - + COUNT( * ) AS col1
----
-2470

skipif mysql # not compatible
query I rowsort label-1592
SELECT 95 * 26 * - + COUNT ( * ) AS col1
----
-2470

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL + 63 + - COUNT( * ) + - COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL + 63 + - COUNT ( * ) + - COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1594
SELECT COALESCE ( - 13, ( - MAX( ALL CAST( 77 AS SIGNED ) ) ) - 91, 67 + + ( + CAST( NULL AS SIGNED ) - + 38 ), 66 * 37, 8 ) * 13 AS col2
----
-169

skipif mysql # not compatible
query I rowsort label-1594
SELECT COALESCE ( - 13, ( - MAX ( ALL CAST ( 77 AS INTEGER ) ) ) - 91, 67 + + ( + CAST ( NULL AS INTEGER ) - + 38 ), 66 * 37, 8 ) * 13 AS col2
----
-169

query I rowsort
SELECT DISTINCT - 36 + + 10 + + 74 * - + 44 + + + 92 * + 98 AS col2
----
5734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1596
SELECT - 10 DIV + COUNT( * ) + - 26
----
-36

skipif mysql # not compatible
query I rowsort label-1596
SELECT - 10 / + COUNT ( * ) + - 26
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT SUM( - 30 ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-1597
SELECT SUM ( - 30 ) AS col0
----
-30

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL MAX( + 70 ) * - MAX( - 45 ) AS col0
----
3150

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL MAX ( + 70 ) * - MAX ( - 45 ) AS col0
----
3150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1600
SELECT - MIN( DISTINCT + 5 ) DIV 29 + 8
----
8

skipif mysql # not compatible
query I rowsort label-1600
SELECT - MIN ( DISTINCT + 5 ) / 29 + 8
----
8

query I rowsort
SELECT DISTINCT - 20 - + 55 AS col1
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT COALESCE ( 32, - 91 * - - 80 ) * - + 88 * COUNT( * ) col0
----
-2816

skipif mysql # not compatible
query I rowsort label-1603
SELECT COALESCE ( 32, - 91 * - - 80 ) * - + 88 * COUNT ( * ) col0
----
-2816

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT + COUNT( * ) * 62 + NULLIF ( 43, 42 )
----
105

skipif mysql # not compatible
query I rowsort label-1604
SELECT + COUNT ( * ) * 62 + NULLIF ( 43, 42 )
----
105

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1606
SELECT DISTINCT - - NULLIF ( - CAST( 38 AS SIGNED ), - 30 ) - MIN( DISTINCT + 26 )
----
-64

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT - - NULLIF ( - CAST ( 38 AS INTEGER ), - 30 ) - MIN ( DISTINCT + 26 )
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1607
SELECT DISTINCT 72 DIV - COUNT( * ) - + NULLIF ( - 23, + 45 + + 81 )
----
-49

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT 72 / - COUNT ( * ) - + NULLIF ( - 23, + 45 + + 81 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT ALL - COUNT( 61 )
----
-1

skipif mysql # not compatible
query I rowsort label-1608
SELECT ALL - COUNT ( 61 )
----
-1

query I rowsort
SELECT ALL + 76 * 71 * + 42 col1
----
226632

onlyif mysql # DIV for integer division: 
query I rowsort label-1610
SELECT ALL 37 DIV 6 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-1610
SELECT ALL 37 / 6 AS col0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1611
SELECT DISTINCT - 19 AS col1, NULLIF ( - CAST( NULL AS SIGNED ), 29 * + + COUNT( * ) * - COUNT( * ) * 46 ) + - COUNT( * )
----
-19
NULL

skipif mysql # not compatible
query II rowsort label-1611
SELECT DISTINCT - 19 AS col1, NULLIF ( - CAST ( NULL AS INTEGER ), 29 * + + COUNT ( * ) * - COUNT ( * ) * 46 ) + - COUNT ( * )
----
-19
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1612
SELECT CASE + 22 WHEN - 63 THEN 50 DIV CAST( - ( 70 ) AS SIGNED ) ELSE + 42 * + 74 END * MIN( + 3 DIV 68 + - 99 )
----
-307692

skipif mysql # not compatible
query I rowsort label-1612
SELECT CASE + 22 WHEN - 63 THEN 50 / CAST ( - ( 70 ) AS INTEGER ) ELSE + 42 * + 74 END * MIN ( + 3 / 68 + - 99 )
----
-307692

onlyif mysql # DIV for integer division: 
query II rowsort label-1613
SELECT 2 AS col2, 58 DIV 47
----
2
1

skipif mysql # not compatible
query II rowsort label-1613
SELECT 2 AS col2, 58 / 47
----
2
1

query II rowsort
SELECT ALL - 31, + 84 AS col1
----
-31
84

query II rowsort
SELECT ALL - 35 AS col0, + 32 AS col1
----
-35
32

query I rowsort
SELECT 15 * - ( - 68 )
----
1020

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1617
SELECT ALL + COUNT( * ) + 70 - + 54 + 44 + - ( 90 ) + 80 * - ( + MIN( 86 ) + + 94 DIV - 93 ) * 60 AS col2
----
-408029

skipif mysql # not compatible
query I rowsort label-1617
SELECT ALL + COUNT ( * ) + 70 - + 54 + 44 + - ( 90 ) + 80 * - ( + MIN ( 86 ) + + 94 / - 93 ) * 60 AS col2
----
-408029

query I rowsort
SELECT ALL 95 * + 22 AS col0
----
2090

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1619
SELECT ALL - COUNT( * ) + + 23 * + 4 - + 36 + - 63 DIV + COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-1619
SELECT ALL - COUNT ( * ) + + 23 * + 4 - + 36 + - 63 / + COUNT ( * )
----
-8

query I rowsort
SELECT DISTINCT + 86 + - 51 * - + 86
----
4472

query I rowsort
SELECT DISTINCT 30 * - ( - + 32 ) AS col2
----
960

query I rowsort
SELECT DISTINCT 89 + - 25 + 99 * - + 31 AS col2
----
-3005

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT ALL + MIN( + 75 ) + COUNT( * ) AS col0
----
76

skipif mysql # not compatible
query I rowsort label-1623
SELECT ALL + MIN ( + 75 ) + COUNT ( * ) AS col0
----
76

query I rowsort
SELECT DISTINCT + ( - 16 ) + 16
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 85 + 90 - + COUNT( * ) AS col0
----
174

skipif mysql # not compatible
query I rowsort label-1625
SELECT 85 + 90 - + COUNT ( * ) AS col0
----
174

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1626
SELECT 21 - + + 47 + + + MIN( - 64 ) + - + 81 DIV 58 * 40 AS col1
----
-130

skipif mysql # not compatible
query I rowsort label-1626
SELECT 21 - + + 47 + + + MIN ( - 64 ) + - + 81 / 58 * 40 AS col1
----
-130

query II rowsort
SELECT 88, + 49 AS col2
----
88
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1628
SELECT CAST( 14 AS SIGNED ) + + + 47 AS col1
----
61

skipif mysql # not compatible
query I rowsort label-1628
SELECT CAST ( 14 AS INTEGER ) + + + 47 AS col1
----
61

query I rowsort
SELECT 30 * + 74 * - 44
----
-97680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1630
SELECT - 38, - CASE - 2 WHEN - SUM( + 35 ) THEN - 82 WHEN 83 + - NULLIF ( - 68, + 79 + + 28 ) THEN COUNT( * ) + 82 WHEN + 96 / CAST( - 24 AS SIGNED ) THEN NULL END AS col2
----
-38
NULL

skipif mysql # not compatible
query II rowsort label-1630
SELECT - 38, - CASE - 2 WHEN - SUM ( + 35 ) THEN - 82 WHEN 83 + - NULLIF ( - 68, + 79 + + 28 ) THEN COUNT ( * ) + 82 WHEN + 96 / CAST ( - 24 AS INTEGER ) THEN NULL END AS col2
----
-38
NULL

query I rowsort
SELECT ALL + - 4 + 41 + 42 * + 43 + 35 AS col0
----
1878

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1632
SELECT ALL 48 DIV 86 - - COALESCE ( - NULLIF ( - 16, + NULLIF ( 49, + COUNT( * ) + + 10 ) * + COUNT( * ) ), + CAST( NULL AS SIGNED ) )
----
16

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL 48 / 86 - - COALESCE ( - NULLIF ( - 16, + NULLIF ( 49, + COUNT ( * ) + + 10 ) * + COUNT ( * ) ), + CAST ( NULL AS INTEGER ) )
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT 12 + 96 * + 26 * - COUNT( * ) + - 61 AS col1
----
-2545

skipif mysql # not compatible
query I rowsort label-1633
SELECT 12 + 96 * + 26 * - COUNT ( * ) + - 61 AS col1
----
-2545

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1634
SELECT ALL + COUNT( * ) * - + ( + 71 ) * + + 64 + CAST( 76 AS SIGNED ) + COUNT( * ) AS col0
----
-4467

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL + COUNT ( * ) * - + ( + 71 ) * + + 64 + CAST ( 76 AS INTEGER ) + COUNT ( * ) AS col0
----
-4467

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

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

query I rowsort
SELECT + 14 * - 68 * + 60 * - 69 + + 87 AS col1
----
3941367

query II rowsort
SELECT ALL + 76 AS col1, ( + 40 ) AS col1
----
76
40

query I rowsort
SELECT 91 * + - 31 * + 36
----
-101556

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT + + COALESCE ( 34, + COUNT( * ), + 10 * - COALESCE ( + - 72, + 59 * 21, + 73 + - 13 ) - - CASE 67 + 70 * - 83 WHEN 50 THEN 63 WHEN 63 + 74 * + 77 THEN + 8 ELSE NULL END ) col0
----
34

skipif mysql # not compatible
query I rowsort label-1639
SELECT + + COALESCE ( 34, + COUNT ( * ), + 10 * - COALESCE ( + - 72, + 59 * 21, + 73 + - 13 ) - - CASE 67 + 70 * - 83 WHEN 50 THEN 63 WHEN 63 + 74 * + 77 THEN + 8 ELSE NULL END ) col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1640
SELECT MAX( - - 73 ) * - 5 + + 35 AS col0, 27 + - COUNT( * ) AS col1
----
-330
26

skipif mysql # not compatible
query II rowsort label-1640
SELECT MAX ( - - 73 ) * - 5 + + 35 AS col0, 27 + - COUNT ( * ) AS col1
----
-330
26

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1642
SELECT + 33 DIV 46 + 83 * - COUNT( * ) * 74 - - - 89 AS col1
----
-6231

skipif mysql # not compatible
query I rowsort label-1642
SELECT + 33 / 46 + 83 * - COUNT ( * ) * 74 - - - 89 AS col1
----
-6231

query I rowsort
SELECT DISTINCT + - 73 col0
----
-73

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL 61 * - + 15 + + - 26 + + MIN( ALL + 5 ) AS col2
----
-936

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL 61 * - + 15 + + - 26 + + MIN ( ALL + 5 ) AS col2
----
-936

query I rowsort
SELECT + 30 * 90 AS col2
----
2700

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1649
SELECT + 78 DIV 73 * 95 * - 85
----
-8075

skipif mysql # not compatible
query I rowsort label-1649
SELECT + 78 / 73 * 95 * - 85
----
-8075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1650
SELECT CAST( NULL AS SIGNED ) * - 58 + - + 7 * + 8 + 12
----
NULL

skipif mysql # not compatible
query I rowsort label-1650
SELECT CAST ( NULL AS INTEGER ) * - 58 + - + 7 * + 8 + 12
----
NULL

query I rowsort
SELECT ALL 44 * + - 19 + - 84
----
-920

query I rowsort
SELECT ALL + 45 * - 58 AS col1
----
-2610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1654
SELECT + 42 + - 72 + + ( + + 7 ) + - - 28 * SUM( ALL - 99 ) + + 39
----
-2756

skipif mysql # not compatible
query I rowsort label-1654
SELECT + 42 + - 72 + + ( + + 7 ) + - - 28 * SUM ( ALL - 99 ) + + 39
----
-2756

query I rowsort
SELECT + 60 * 94 * 30
----
169200

query I rowsort
SELECT + ( - 81 ) * - + 11
----
891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT + 36 + - + 92 + - 36 - - CAST( - 72 AS SIGNED ) * - 23 * 81 AS col1
----
134044

skipif mysql # not compatible
query I rowsort label-1657
SELECT + 36 + - + 92 + - 36 - - CAST ( - 72 AS INTEGER ) * - 23 * 81 AS col1
----
134044

onlyif mysql # DIV for integer division: 
query I rowsort label-1658
SELECT + 12 + - - 75 DIV 16 AS col0
----
16

skipif mysql # not compatible
query I rowsort label-1658
SELECT + 12 + - - 75 / 16 AS col0
----
16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1660
SELECT DISTINCT COALESCE ( + - 61, - NULLIF ( - CAST( NULL AS SIGNED ), - - 54 + - - 57 + 66 - 0 ) + - 51 ) * 1
----
-61

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT COALESCE ( + - 61, - NULLIF ( - CAST ( NULL AS INTEGER ), - - 54 + - - 57 + 66 - 0 ) + - 51 ) * 1
----
-61

query I rowsort
SELECT DISTINCT - + 14 - + ( - - 19 )
----
-33

query I rowsort
SELECT DISTINCT 77 - + 28 + - + 44
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1663
SELECT DISTINCT - ( - MAX( DISTINCT - + CASE - 84 WHEN + CAST( + 22 AS SIGNED ) - - 1 THEN ( - ( ( 12 ) ) ) * 62 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT - ( - MAX ( DISTINCT - + CASE - 84 WHEN + CAST ( + 22 AS INTEGER ) - - 1 THEN ( - ( ( 12 ) ) ) * 62 END ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1664
SELECT + COALESCE ( 9, + COALESCE ( - MIN( DISTINCT + - 27 ), 6 + + + 21 * + CAST( + 52 AS SIGNED ) ) + 26, - 94 ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-1664
SELECT + COALESCE ( 9, + COALESCE ( - MIN ( DISTINCT + - 27 ), 6 + + + 21 * + CAST ( + 52 AS INTEGER ) ) + 26, - 94 ) AS col1
----
9

query II rowsort
SELECT - 48 * 80 AS col2, + 89 + 24 + 56 col1
----
-3840
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1666
SELECT ALL - + 59 DIV COUNT( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL - + 59 / COUNT ( * ) + - ( + 56 ) - + - 28 AS col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT - 92 - + 69 + + - 38 * + - COUNT( * ) AS col1
----
-123

skipif mysql # not compatible
query I rowsort label-1667
SELECT - 92 - + 69 + + - 38 * + - COUNT ( * ) AS col1
----
-123

onlyif mysql # DIV for integer division: 
query I rowsort label-1668
SELECT DISTINCT 66 DIV - 8 AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-1668
SELECT DISTINCT 66 / - 8 AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT ALL - + MAX( DISTINCT - 32 ) * - 22 + 35
----
-669

skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - + MAX ( DISTINCT - 32 ) * - 22 + 35
----
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT - - 99 * + - 58 + + 45 + - - ( - 2 ) + + - 44 * 22 * 80 + + CAST( + 20 AS SIGNED ) * ( + 22 + 29 )
----
-82119

skipif mysql # not compatible
query I rowsort label-1670
SELECT - - 99 * + - 58 + + 45 + - - ( - 2 ) + + - 44 * 22 * 80 + + CAST ( + 20 AS INTEGER ) * ( + 22 + 29 )
----
-82119

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT - + COUNT( * ) + + ( - - SUM( ALL + - NULLIF ( + 21, - 83 ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-1671
SELECT - + COUNT ( * ) + + ( - - SUM ( ALL + - NULLIF ( + 21, - 83 ) ) )
----
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1672
SELECT - CAST( - 61 AS SIGNED ) DIV - 86 + 12
----
12

skipif mysql # not compatible
query I rowsort label-1672
SELECT - CAST ( - 61 AS INTEGER ) / - 86 + 12
----
12

query I rowsort
SELECT - - 49 - + - 33 - 59 AS col2
----
23

query I rowsort
SELECT - ( - CASE - 19 WHEN 63 * 52 * + - 96 + - 35 THEN NULL WHEN - 84 + 97 THEN + 40 ELSE NULL END ) * - 32
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1675
SELECT ALL 40 DIV - 84 + CAST( - 94 AS SIGNED )
----
-94

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL 40 / - 84 + CAST ( - 94 AS INTEGER )
----
-94

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

query II rowsort
SELECT + 47 AS col0, 37 AS col1
----
47
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1678
SELECT ALL + 15 * - COUNT( + 89 ) + - 90
----
-105

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + 15 * - COUNT ( + 89 ) + - 90
----
-105

query I rowsort
SELECT ( - - 37 )
----
37

query I rowsort
SELECT DISTINCT 9 * + + 65 + 86 AS col2
----
671

query I rowsort
SELECT ALL + ( 50 ) * + 74 + + 54 + + 43
----
3797

query I rowsort
SELECT ( - 94 )
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1683
SELECT ALL 83 * - 43 + + CAST( NULL AS SIGNED ), + 80 AS col2
----
NULL
80

skipif mysql # not compatible
query II rowsort label-1683
SELECT ALL 83 * - 43 + + CAST ( NULL AS INTEGER ), + 80 AS col2
----
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT DISTINCT 52 * + 94 + 53 + - COUNT( - 93 ) + 23
----
4963

skipif mysql # not compatible
query I rowsort label-1684
SELECT DISTINCT 52 * + 94 + 53 + - COUNT ( - 93 ) + 23
----
4963

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1686
SELECT 41 * 57 - 40 * + 35 AS col1, ( - - 67 ) * 30 + CAST( NULL AS SIGNED ) AS col0
----
937
NULL

skipif mysql # not compatible
query II rowsort label-1686
SELECT 41 * 57 - 40 * + 35 AS col1, ( - - 67 ) * 30 + CAST ( NULL AS INTEGER ) AS col0
----
937
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT NULLIF ( + 16, + - 91 + MAX( - 26 ) ) AS col2
----
16

skipif mysql # not compatible
query I rowsort label-1689
SELECT NULLIF ( + 16, + - 91 + MAX ( - 26 ) ) AS col2
----
16

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

query I rowsort
SELECT ALL + 23 * - 38 - + 77
----
-951

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

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

query I rowsort
SELECT + 6 * + + 30
----
180

query II rowsort
SELECT ALL 81 col1, + 89
----
81
89

query I rowsort
SELECT DISTINCT + 97 * - 6 AS col2
----
-582

onlyif mysql # DIV for integer division: 
query I rowsort label-1696
SELECT ALL 64 DIV - 10
----
-6

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL 64 / - 10
----
-6

query I rowsort
SELECT + 70 * - NULLIF ( 61, - 44 * - 66 ) * - 42 AS col1
----
179340

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + - COUNT( * ) * - CASE 79 WHEN + - COUNT( DISTINCT ( - 80 ) ) THEN NULL ELSE + 70 / 1 * 77 - 44 * CASE - 64 WHEN COUNT( * ) * + COUNT( * ) THEN - 61 END END / - MIN( DISTINCT ( - 63 ) + 51 ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-1698
SELECT + - COUNT ( * ) * - CASE 79 WHEN + - COUNT ( DISTINCT ( - 80 ) ) THEN NULL ELSE + 70 / 1 * 77 - 44 * CASE - 64 WHEN COUNT ( * ) * + COUNT ( * ) THEN - 61 END END / - MIN ( DISTINCT ( - 63 ) + 51 ) + - COUNT ( * )
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1701
SELECT ALL 66 DIV - 28 col0
----
-2

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL 66 / - 28 col0
----
-2

query I rowsort
SELECT - NULLIF ( - 86, - + 91 ) * + + 28 + - + ( + 76 ) * - 2 AS col2
----
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1703
SELECT 75 + + 80 + - + 17 + - CAST( NULL AS SIGNED ) * 58 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1703
SELECT 75 + + 80 + - + 17 + - CAST ( NULL AS INTEGER ) * 58 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT - MIN( 20 )
----
-20

skipif mysql # not compatible
query I rowsort label-1704
SELECT - MIN ( 20 )
----
-20

query II rowsort
SELECT - - 64, + 43 col1
----
64
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1707
SELECT ALL 7 * - COUNT( * ) + - 53 AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 7 * - COUNT ( * ) + - 53 AS col0
----
-60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1708
SELECT ALL + 83 * ( + 8 ) * 39 - - ( COALESCE ( - + CAST( + - COALESCE ( - COUNT( * ), COUNT( 98 ) * COALESCE ( + 15, + 96, - 20 * - 75 ) + CASE 24 WHEN + MAX( + 80 ) THEN + 44 + COUNT( ALL + 86 ) ELSE 64 + + 55 END, + CAST( + 51 AS DECIMAL ) ) AS SIGNED ), - MAX( 54 ), ( 52 ) ) ) AS col2
----
25895

skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL + 83 * ( + 8 ) * 39 - - ( COALESCE ( - + CAST ( + - COALESCE ( - COUNT ( * ), COUNT ( 98 ) * COALESCE ( + 15, + 96, - 20 * - 75 ) + CASE 24 WHEN + MAX ( + 80 ) THEN + 44 + COUNT ( ALL + 86 ) ELSE 64 + + 55 END, + CAST ( + 51 AS REAL ) ) AS INTEGER ), - MAX ( 54 ), ( 52 ) ) ) AS col2
----
25895

query I rowsort
SELECT + 85 * - - 55 AS col0
----
4675

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT ( + COUNT( * ) ) * - 29 col1
----
-29

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT ( + COUNT ( * ) ) * - 29 col1
----
-29

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

query II rowsort
SELECT - 48 AS col1, + ( - 4 ) col1
----
-48
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1713
SELECT - COUNT( - - CAST( NULL AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT - COUNT ( - - CAST ( NULL AS INTEGER ) ) AS col2
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1714
SELECT 44 DIV + CAST( + + 41 AS SIGNED ) AS col0, 96 + + 23 AS col1
----
1
119

skipif mysql # not compatible
query II rowsort label-1714
SELECT 44 / + CAST ( + + 41 AS INTEGER ) AS col0, 96 + + 23 AS col1
----
1
119

query I rowsort
SELECT ALL - 56 + + 88 AS col2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1716
SELECT ALL + 98 + - - 87 + + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL + 98 + - - 87 + + + CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1717
SELECT ALL - COUNT( * ) * - - 92 AS col1
----
-92

skipif mysql # not compatible
query I rowsort label-1717
SELECT ALL - COUNT ( * ) * - - 92 AS col1
----
-92

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

skipif mysql # not compatible
query I rowsort label-1718
SELECT 96 + - COUNT ( ALL + 94 ) AS col2
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL 72 + - 52 + - 83 + - COUNT( * ) AS col0
----
-64

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL 72 + - 52 + - 83 + - COUNT ( * ) AS col0
----
-64

query I rowsort
SELECT ALL - 82 * + - 45 col1
----
3690

query I rowsort
SELECT DISTINCT + ( - + 28 ) * 84 col2
----
-2352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1722
SELECT CASE + COUNT( * ) WHEN - 60 THEN - 20 - - 46 * + 65 WHEN + 30 THEN - CAST( NULL AS SIGNED ) + - + 21 WHEN + ( COUNT( * ) ) * 75 THEN NULL END + + 46 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1722
SELECT CASE + COUNT ( * ) WHEN - 60 THEN - 20 - - 46 * + 65 WHEN + 30 THEN - CAST ( NULL AS INTEGER ) + - + 21 WHEN + ( COUNT ( * ) ) * 75 THEN NULL END + + 46 AS col0
----
NULL

query I rowsort
SELECT - 42 * - 99 - - 82
----
4240

query I rowsort
SELECT ALL - 82 * - 85 AS col0
----
6970

query I rowsort
SELECT 31 + - 45 col1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT 10 * - + MAX( + 57 ) + 40 AS col0
----
-530

skipif mysql # not compatible
query I rowsort label-1726
SELECT 10 * - + MAX ( + 57 ) + 40 AS col0
----
-530

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT 30 + + + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-1728
SELECT 30 + + + COUNT ( * )
----
31

query I rowsort
SELECT ALL 23 * - 90
----
-2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1730
SELECT 40 + - - CASE + + 50 WHEN 87 * + 3 + 6 * 15 * 91 THEN COUNT( * ) + - 23 * - 21 END + CAST( 56 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1730
SELECT 40 + - - CASE + + 50 WHEN 87 * + 3 + 6 * 15 * 91 THEN COUNT ( * ) + - 23 * - 21 END + CAST ( 56 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 41 * ( + 15 ) * 81 AS col2
----
49815

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

skipif mysql # not compatible
query I rowsort label-1732
SELECT 46 * + COUNT ( * ) / + - COUNT ( * ) AS col0
----
-46

query I rowsort
SELECT - 25 * - + 11
----
275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1734
SELECT + CAST( NULL AS DECIMAL ) / - ( 65 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1734
SELECT + CAST ( NULL AS REAL ) / - ( 65 )
----
NULL

query I rowsort
SELECT + 8 + + ( - ( 21 ) ) + + + 63 + 56
----
106

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT - - CAST( 98 AS SIGNED )
----
98

skipif mysql # not compatible
query I rowsort label-1736
SELECT - - CAST ( 98 AS INTEGER )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT 97 + + - SUM( + 87 ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-1737
SELECT 97 + + - SUM ( + 87 ) AS col0
----
10

query I rowsort
SELECT DISTINCT + 1 + + - 91 + + 2 - + 48 col0
----
-136

query I rowsort
SELECT ALL 27 + + 75
----
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1740
SELECT MAX( - - 57 ) DIV - 66
----
0

skipif mysql # not compatible
query I rowsort label-1740
SELECT MAX ( - - 57 ) / - 66
----
0

query I rowsort
SELECT - NULLIF ( - 14, - 23 ) AS col1
----
14

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

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

query I rowsort
SELECT DISTINCT - 60 + + 16
----
-44

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1745
SELECT NULLIF ( - 76, 87 ) * + COALESCE ( 95, - ( CAST( + 64 AS SIGNED ) ) + + 5 )
----
-7220

skipif mysql # not compatible
query I rowsort label-1745
SELECT NULLIF ( - 76, 87 ) * + COALESCE ( 95, - ( CAST ( + 64 AS INTEGER ) ) + + 5 )
----
-7220

query I rowsort
SELECT ALL + 27 + + CASE 80 WHEN - 13 THEN - - 9 END - + 18
----
NULL

query I rowsort
SELECT - - 15 AS col0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT DISTINCT + MIN( + 75 ) + + + 42 col2
----
117

skipif mysql # not compatible
query I rowsort label-1748
SELECT DISTINCT + MIN ( + 75 ) + + + 42 col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-1749
SELECT + MIN( 42 ) - - + 82 AS col0
----
124

skipif mysql # not compatible
query I rowsort label-1749
SELECT + MIN ( 42 ) - - + 82 AS col0
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1750
SELECT ALL 1 * + 47 + - 76 + - + CASE 88 WHEN - AVG ( ALL ( - 29 ) ) + - 98 THEN + CAST( NULL AS SIGNED ) ELSE NULL END / - 35
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL 1 * + 47 + - 76 + - + CASE 88 WHEN - AVG ( ALL ( - 29 ) ) + - 98 THEN + CAST ( NULL AS INTEGER ) ELSE NULL END / - 35
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT MIN( + NULLIF ( + 52, 61 ) ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1751
SELECT MIN ( + NULLIF ( + 52, 61 ) ) AS col1
----
52

query I rowsort
SELECT DISTINCT 66 * + - 95 AS col0
----
-6270

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT 21 + - - COUNT( * ) col0
----
22

skipif mysql # not compatible
query I rowsort label-1753
SELECT 21 + - - COUNT ( * ) col0
----
22

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT COALESCE ( + 14, SUM( ALL 15 ) * CASE + CAST( + - 17 AS SIGNED ) WHEN + COUNT( * ) - - + CAST( NULL AS SIGNED ) THEN + 20 END ) * 35
----
490

skipif mysql # not compatible
query I rowsort label-1755
SELECT COALESCE ( + 14, SUM ( ALL 15 ) * CASE + CAST ( + - 17 AS INTEGER ) WHEN + COUNT ( * ) - - + CAST ( NULL AS INTEGER ) THEN + 20 END ) * 35
----
490

query I rowsort
SELECT + NULLIF ( 75, - - 44 ) col1
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1757
SELECT 40 * NULLIF ( 34, + NULLIF ( + + 14, COUNT( * ) * - COUNT( * ) - + NULLIF ( - - COALESCE ( - 36, - ( 17 ), - COUNT( * ) + 46 ), 6 - + CAST( + COUNT( * ) AS SIGNED ) ) + - 54 ) + - 26 * MAX( - ( - 52 ) ) ) col2
----
1360

skipif mysql # not compatible
query I rowsort label-1757
SELECT 40 * NULLIF ( 34, + NULLIF ( + + 14, COUNT ( * ) * - COUNT ( * ) - + NULLIF ( - - COALESCE ( - 36, - ( 17 ), - COUNT ( * ) + 46 ), 6 - + CAST ( + COUNT ( * ) AS INTEGER ) ) + - 54 ) + - 26 * MAX ( - ( - 52 ) ) ) col2
----
1360

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT ALL + 79 * + ( - COUNT( * ) ) * - 73 * MAX( 83 ) + 3
----
478664

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + 79 * + ( - COUNT ( * ) ) * - 73 * MAX ( 83 ) + 3
----
478664

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT DISTINCT ( MAX( + 54 ) ) * - 34
----
-1836

skipif mysql # not compatible
query I rowsort label-1759
SELECT DISTINCT ( MAX ( + 54 ) ) * - 34
----
-1836

query I rowsort
SELECT 15 * + + 35 * - 96 + + 27
----
-50373

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT - + 44 * + 79 * 42 * + 76 - + COUNT( ALL NULLIF ( 79, - + 52 ) ) AS col1
----
-11095393

skipif mysql # not compatible
query I rowsort label-1761
SELECT - + 44 * + 79 * 42 * + 76 - + COUNT ( ALL NULLIF ( 79, - + 52 ) ) AS col1
----
-11095393

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

query II rowsort
SELECT - 31 - + 51 + + 37 * - + 83 * + 14 col1, ( - 36 ) col2
----
-43076
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT ALL - 63 + + 35 + 52 + - CASE 70 WHEN 94 / - + 83 - + - MIN( DISTINCT + 26 ) * - + MAX( DISTINCT + 75 ) THEN + 19 + COUNT( * ) WHEN + 15 THEN - 72 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL - 63 + + 35 + 52 + - CASE 70 WHEN 94 / - + 83 - + - MIN ( DISTINCT + 26 ) * - + MAX ( DISTINCT + 75 ) THEN + 19 + COUNT ( * ) WHEN + 15 THEN - 72 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT - 5 + - NULLIF ( + 55, + + 44 ) + + 68 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1765
SELECT DISTINCT - 5 + - NULLIF ( + 55, + + 44 ) + + 68 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + ( 83 ) * - 57 + - 67
----
-4798

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

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL + 72 + + + COUNT ( * ) AS col0
----
73

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

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT + + 40 + ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1769
SELECT - CASE + - 77 WHEN + MAX( + 99 ) * - - COUNT( * ) + - 77 DIV - 39 - + AVG ( + + NULLIF ( + + 53, 3 * + 15 ) ) * - SUM( DISTINCT - 37 ) THEN - 37 + - 12 DIV 65 ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-1769
SELECT - CASE + - 77 WHEN + MAX ( + 99 ) * - - COUNT ( * ) + - 77 / - 39 - + AVG ( + + NULLIF ( + + 53, 3 * + 15 ) ) * - SUM ( DISTINCT - 37 ) THEN - 37 + - 12 / 65 ELSE COUNT ( * ) END AS col1
----
-1

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1771
SELECT - - 17 + - 73 + + - CAST( NULL AS DECIMAL ) - - 78 * + 6 / + 92 * - + 25 + + 65 AS col1, - COUNT( * ) * + 65
----
NULL
-65

skipif mysql # not compatible
query II rowsort label-1771
SELECT - - 17 + - 73 + + - CAST ( NULL AS REAL ) - - 78 * + 6 / + 92 * - + 25 + + 65 AS col1, - COUNT ( * ) * + 65
----
NULL
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT - COUNT( 40 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-1772
SELECT - COUNT ( 40 ) AS col2
----
-1

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

query I rowsort
SELECT ALL - + 86 + + - 16 - + 23
----
-125

query I rowsort
SELECT + - 62 * 22
----
-1364

query I rowsort
SELECT DISTINCT + 29 + - 77
----
-48

query II rowsort
SELECT + 45 col2, 55 * 13 * 69 * 44 - + - 22 AS col0
----
45
2170762

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT NULLIF ( - 41, ( - + COUNT( * ) ) - - + 47 )
----
-41

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT NULLIF ( - 41, ( - + COUNT ( * ) ) - - + 47 )
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT + 96 DIV + ( 33 ) col0
----
2

skipif mysql # not compatible
query I rowsort label-1780
SELECT + 96 / + ( 33 ) col0
----
2

query II rowsort
SELECT - 7 * + + ( + + ( + - 0 ) ) AS col1, - 55 * - - 5
----
0
-275

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT ( CASE COALESCE ( - + MAX( 46 ), - + 48 ) WHEN - 19 THEN + 75 + 4 WHEN + 47 THEN + MAX( 32 ) ELSE 57 END ) col1
----
57

skipif mysql # not compatible
query I rowsort label-1783
SELECT ( CASE COALESCE ( - + MAX ( 46 ), - + 48 ) WHEN - 19 THEN + 75 + 4 WHEN + 47 THEN + MAX ( 32 ) ELSE 57 END ) col1
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT - 33 DIV - 11 - + 1
----
2

skipif mysql # not compatible
query I rowsort label-1784
SELECT - 33 / - 11 - + 1
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1787
SELECT ALL + 56 AS col1, - COUNT( * ) * 10 * ( - 56 ) AS col0
----
56
560

skipif mysql # not compatible
query II rowsort label-1787
SELECT ALL + 56 AS col1, - COUNT ( * ) * 10 * ( - 56 ) AS col0
----
56
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1788
SELECT + 53 + 39 * + ( + ( COUNT( * ) ) ) DIV - 93 - COUNT( * ) + + CASE - 54 WHEN 69 * + 73 + 13 THEN NULL ELSE COUNT( * ) * - COUNT( * ) + 64 * - MIN( ALL - 7 + 19 * 76 ) END * + 0
----
52

skipif mysql # not compatible
query I rowsort label-1788
SELECT + 53 + 39 * + ( + ( COUNT ( * ) ) ) / - 93 - COUNT ( * ) + + CASE - 54 WHEN 69 * + 73 + 13 THEN NULL ELSE COUNT ( * ) * - COUNT ( * ) + 64 * - MIN ( ALL - 7 + 19 * 76 ) END * + 0
----
52

query I rowsort
SELECT ALL 65 * + 45
----
2925

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1790
SELECT DISTINCT CASE - 12 WHEN + 73 THEN - 90 DIV - 1 DIV 76 + - 90 ELSE - - COUNT( * ) END * + - 42 + 68
----
26

skipif mysql # not compatible
query I rowsort label-1790
SELECT DISTINCT CASE - 12 WHEN + 73 THEN - 90 / - 1 / 76 + - 90 ELSE - - COUNT ( * ) END * + - 42 + 68
----
26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT + 95 * - 23 - + 14 + - SUM( + 91 ) - - SUM( DISTINCT + + NULLIF ( 74, 45 * + ( - 68 ) ) ) - - 70
----
-2146

skipif mysql # not compatible
query I rowsort label-1792
SELECT + 95 * - 23 - + 14 + - SUM ( + 91 ) - - SUM ( DISTINCT + + NULLIF ( 74, 45 * + ( - 68 ) ) ) - - 70
----
-2146

query II rowsort
SELECT + 99 + - 76, - 79 AS col2
----
23
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT CASE - NULLIF ( - 0, 85 + - 29 * + NULLIF ( 35, + SUM( ALL + 67 ) ) * - 56 ) WHEN 46 THEN - 68 END
----
NULL

skipif mysql # not compatible
query I rowsort label-1794
SELECT CASE - NULLIF ( - 0, 85 + - 29 * + NULLIF ( 35, + SUM ( ALL + 67 ) ) * - 56 ) WHEN 46 THEN - 68 END
----
NULL

query I rowsort
SELECT + 29 + - 65 + - + 72
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT ALL + + 73 * - COUNT( * ) + - 55 + + 69 + + 43 AS col1
----
-16

skipif mysql # not compatible
query I rowsort label-1796
SELECT ALL + + 73 * - COUNT ( * ) + - 55 + + 69 + + 43 AS col1
----
-16

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1798
SELECT ALL - - CAST( NULL AS SIGNED ) * CASE - 45 WHEN 9 * - + COALESCE ( - COUNT( * ), 20 ) * 40 THEN NULL WHEN - 26 THEN - 8 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1798
SELECT ALL - - CAST ( NULL AS INTEGER ) * CASE - 45 WHEN 9 * - + COALESCE ( - COUNT ( * ), 20 ) * 40 THEN NULL WHEN - 26 THEN - 8 END AS col2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT DISTINCT - 85 DIV 42
----
-2

skipif mysql # not compatible
query I rowsort label-1800
SELECT DISTINCT - 85 / 42
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1801
SELECT ALL + 11 * - + NULLIF ( + 71, - 30 ) * - + COUNT( * ) * + 48 + - 51 + + + 58 + - ( + COALESCE ( + COALESCE ( + MIN( DISTINCT + CAST( NULL AS SIGNED ) ), 99 ), 66, 93 * - 31 ) )
----
37396

skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL + 11 * - + NULLIF ( + 71, - 30 ) * - + COUNT ( * ) * + 48 + - 51 + + + 58 + - ( + COALESCE ( + COALESCE ( + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ), 99 ), 66, 93 * - 31 ) )
----
37396

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

skipif mysql # not compatible
query II rowsort label-1802
SELECT - + COUNT ( * ) AS col0, + 81 col2
----
-1
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1803
SELECT ALL - SUM( + 78 ) * - 45 + - + CAST( NULL AS DECIMAL ) * + + COUNT( * ) * + - 68 + COALESCE ( + ( + 70 ), - - 65 + 22 * - 24 ) / - 72 + 95 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1803
SELECT ALL - SUM ( + 78 ) * - 45 + - + CAST ( NULL AS REAL ) * + + COUNT ( * ) * + - 68 + COALESCE ( + ( + 70 ), - - 65 + 22 * - 24 ) / - 72 + 95 AS col2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT + COUNT( * ) * + 50 + COUNT( * ) + 69
----
120

skipif mysql # not compatible
query I rowsort label-1805
SELECT + COUNT ( * ) * + 50 + COUNT ( * ) + 69
----
120

query I rowsort
SELECT + - 71 * + 22
----
-1562

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT - 92 + + - ( + - 53 ) - - 85 + - 95 * + COUNT( * ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-1807
SELECT - 92 + + - ( + - 53 ) - - 85 + - 95 * + COUNT ( * ) AS col2
----
-49

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

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

query I rowsort
SELECT - ( - NULLIF ( + 23, 65 * 4 + - 95 ) ) + + 81
----
104

query II rowsort
SELECT ALL 56 AS col2, 19
----
56
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL COUNT( * ) * 52 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL COUNT ( * ) * 52 AS col1
----
52

query II rowsort
SELECT - - 89 + 86 AS col1, ( - 86 ) AS col2
----
175
-86

query I rowsort
SELECT + + 45 - + 7 * + 47
----
-284

query I rowsort
SELECT - - 39 * - 18 AS col2
----
-702

query II rowsort
SELECT DISTINCT ( 66 ) AS col1, 24 - 16
----
66
8

query I rowsort
SELECT - 13 + + - 57 AS col2
----
-70

query I rowsort
SELECT ALL + NULLIF ( + + 43, + - 49 ) * - 99 AS col1
----
-4257

query I rowsort
SELECT - 84 * - + 71 * + 55
----
328020

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 90 + COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 90 + COUNT ( * )
----
91

query I rowsort
SELECT - 78 + - 22 + + 75 AS col1
----
-25

query I rowsort
SELECT - 54 * + - NULLIF ( - 56, - + NULLIF ( 89, - 91 ) )
----
-3024

onlyif mysql # DIV for integer division: 
query I rowsort label-1822
SELECT 49 DIV ( - - 42 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-1822
SELECT 49 / ( - - 42 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1823
SELECT 15 * - 93 + - 26 AS col2, + CASE + + 21 WHEN - 55 THEN + 11 END * - 72 - - - MAX( ALL - + 97 )
----
-1421
NULL

skipif mysql # not compatible
query II rowsort label-1823
SELECT 15 * - 93 + - 26 AS col2, + CASE + + 21 WHEN - 55 THEN + 11 END * - 72 - - - MAX ( ALL - + 97 )
----
-1421
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT 30 * + - 78 * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1824
SELECT 30 * + - 78 * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 28 * ( - 68 ) * - 29 + + + 38 * - 99 - NULLIF ( + + 95, 6 ) AS col0
----
51359

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT ALL 64 DIV - 71
----
0

skipif mysql # not compatible
query I rowsort label-1826
SELECT ALL 64 / - 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1827
SELECT DISTINCT 23 + + + CAST( 44 AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT 23 + + + CAST ( 44 AS INTEGER )
----
67

query I rowsort
SELECT 45 * - + 41
----
-1845

query I rowsort
SELECT CASE + - 45 WHEN 97 * + + 86 + + ( - + 20 ) + + 8 * - - 31 + - - ( + ( - - 65 ) ) THEN + + 48 - ( + 68 ) / 65 ELSE NULL END * 38 AS col0
----
NULL

query II rowsort
SELECT + ( - + 7 ) AS col1, 48 AS col0
----
-7
48

onlyif mysql # DIV for integer division: 
query II rowsort label-1831
SELECT ALL + 56 + - 71 AS col2, 12 DIV + 94 AS col0
----
-15
0

skipif mysql # not compatible
query II rowsort label-1831
SELECT ALL + 56 + - 71 AS col2, 12 / + 94 AS col0
----
-15
0

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

query I rowsort
SELECT 44 + + 40 + NULLIF ( 73, 98 ) AS col0
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT 75 * + 0 - - 8 - + - 0 + - 21 * + - COUNT( + 81 ) * + COUNT( * ) + + 67
----
96

skipif mysql # not compatible
query I rowsort label-1834
SELECT 75 * + 0 - - 8 - + - 0 + - 21 * + - COUNT ( + 81 ) * + COUNT ( * ) + + 67
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT SUM( ALL - - 6 ) - - - 57
----
-51

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT SUM ( ALL - - 6 ) - - - 57
----
-51

query II rowsort
SELECT ALL - 40 / CASE 10 WHEN - + 28 + - ( - 62 ) THEN - 77 END, + 66 AS col0
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1837
SELECT + 43 - + - COUNT( * ) AS col1, - CASE 19 WHEN - 11 THEN - 19 WHEN + 84 THEN 4 ELSE - 27 * + CAST( - 89 AS SIGNED ) + + 9 * - 59 END - - NULLIF ( - 7, - 90 + COUNT( * ) ) AS col1
----
44
-1879

skipif mysql # not compatible
query II rowsort label-1837
SELECT + 43 - + - COUNT ( * ) AS col1, - CASE 19 WHEN - 11 THEN - 19 WHEN + 84 THEN 4 ELSE - 27 * + CAST ( - 89 AS INTEGER ) + + 9 * - 59 END - - NULLIF ( - 7, - 90 + COUNT ( * ) ) AS col1
----
44
-1879

query I rowsort
SELECT ALL - 29 - 51 AS col0
----
-80

query I rowsort
SELECT ALL CASE 57 WHEN - - 31 * - 28 * ( 85 ) THEN - 44 * - ( - 0 ) + + 53 * 10 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1840
SELECT DISTINCT - 90 * + MIN( ALL - + 44 ) col2
----
3960

skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT - 90 * + MIN ( ALL - + 44 ) col2
----
3960

query I rowsort
SELECT - 9 + 80
----
71

query I rowsort
SELECT - ( + + 19 ) * - 73 AS col1
----
1387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1843
SELECT 92 + + 61 AS col0, CASE - + ( - - ( MIN( + 86 ) ) ) WHEN + + CAST( NULL AS SIGNED ) THEN NULL WHEN + CASE - 38 WHEN 30 + + + 15 * - 42 THEN NULL ELSE CAST( NULL AS SIGNED ) END THEN - 11 * - 50 + CAST( NULL AS SIGNED ) ELSE NULL END * 77
----
153
NULL

skipif mysql # not compatible
query II rowsort label-1843
SELECT 92 + + 61 AS col0, CASE - + ( - - ( MIN ( + 86 ) ) ) WHEN + + CAST ( NULL AS INTEGER ) THEN NULL WHEN + CASE - 38 WHEN 30 + + + 15 * - 42 THEN NULL ELSE CAST ( NULL AS INTEGER ) END THEN - 11 * - 50 + CAST ( NULL AS INTEGER ) ELSE NULL END * 77
----
153
NULL

query I rowsort
SELECT 34 - 14 + + + 5 col1
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1845
SELECT COUNT( * ) DIV + 8 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT COUNT ( * ) / + 8 AS col1
----
0

query I rowsort
SELECT 40 * - 97
----
-3880

query I rowsort
SELECT 43 + - 87 col2
----
-44

query I rowsort
SELECT DISTINCT 7 * + 27 AS col1
----
189

query I rowsort
SELECT DISTINCT 1 * + 34 AS col2
----
34

query I rowsort
SELECT 33 + - 18 AS col2
----
15

query I rowsort
SELECT 40 * + 79 AS col1
----
3160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1852
SELECT ALL + CAST( + - ( + AVG ( ALL 73 ) ) AS SIGNED ) + CASE COUNT( * ) WHEN + + 34 THEN - - ( - + 69 ) + - 94 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT ALL + CAST ( + - ( + AVG ( ALL 73 ) ) AS INTEGER ) + CASE COUNT ( * ) WHEN + + 34 THEN - - ( - + 69 ) + - 94 END col2
----
NULL

query I rowsort
SELECT ( - 37 ) + + - 43 AS col1
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1854
SELECT - 17, - ( - - 77 ) / 72 - + - SUM( DISTINCT - 50 ) * - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-1854
SELECT - 17, - ( - - 77 ) / 72 - + - SUM ( DISTINCT - 50 ) * - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1
----
-17
NULL

query II rowsort
SELECT 30, - ( 54 ) AS col2
----
30
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT ALL - CAST( + - 75 AS SIGNED ) * - 19
----
-1425

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL - CAST ( + - 75 AS INTEGER ) * - 19
----
-1425

onlyif mysql # aggregate syntax: 
query I rowsort label-1857
SELECT 30 + - COUNT( * ) * - + COUNT( * ) + + 70 AS col0
----
101

skipif mysql # not compatible
query I rowsort label-1857
SELECT 30 + - COUNT ( * ) * - + COUNT ( * ) + + 70 AS col0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-1858
SELECT 65 * SUM( DISTINCT 56 ) * - 86 AS col0
----
-313040

skipif mysql # not compatible
query I rowsort label-1858
SELECT 65 * SUM ( DISTINCT 56 ) * - 86 AS col0
----
-313040

query II rowsort
SELECT + 75, 86 + - 33 AS col1
----
75
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT DISTINCT - COUNT( 84 ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - COUNT ( 84 ) col1
----
-1

query I rowsort
SELECT ALL - 89 col2
----
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1862
SELECT ALL - CAST( + 9 AS DECIMAL ) + + CASE ( + + CASE + + COUNT( * ) WHEN 53 - 87 + + - 0 + - 7 * - - COUNT( - 35 ) THEN - 77 END ) WHEN 82 + 51 THEN - COALESCE ( 85, + CAST( NULL AS DECIMAL ) * 53, 70 * ( COUNT( * ) ) ) END + 15 * 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - CAST ( + 9 AS REAL ) + + CASE ( + + CASE + + COUNT ( * ) WHEN 53 - 87 + + - 0 + - 7 * - - COUNT ( - 35 ) THEN - 77 END ) WHEN 82 + 51 THEN - COALESCE ( 85, + CAST ( NULL AS REAL ) * 53, 70 * ( COUNT ( * ) ) ) END + 15 * 23 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1863
SELECT 79 DIV - 43 + SUM( DISTINCT - + 23 )
----
-24

skipif mysql # not compatible
query I rowsort label-1863
SELECT 79 / - 43 + SUM ( DISTINCT - + 23 )
----
-24

query II rowsort
SELECT - ( - ( - - 81 ) ) + 84 * - 59 * + + 55 AS col1, 46 + - - 11
----
-272499
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1865
SELECT ALL + 93 + - + 3 * + NULLIF ( + 66, - COUNT( * ) DIV 49 + - CASE + 39 WHEN - + COUNT( * ) + + ( 51 ) THEN - 12 * - - 35 * - AVG ( 68 ) + ( AVG ( ALL + 31 ) + COUNT( * ) ) END - 35 ) DIV + 53 - - 26 col1
----
116

skipif mysql # not compatible
query I rowsort label-1865
SELECT ALL + 93 + - + 3 * + NULLIF ( + 66, - COUNT ( * ) / 49 + - CASE + 39 WHEN - + COUNT ( * ) + + ( 51 ) THEN - 12 * - - 35 * - AVG ( 68 ) + ( AVG ( ALL + 31 ) + COUNT ( * ) ) END - 35 ) / + 53 - - 26 col1
----
116

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT + MAX( ALL - - 82 ) + - 79 AS col0
----
3

skipif mysql # not compatible
query I rowsort label-1867
SELECT + MAX ( ALL - - 82 ) + - 79 AS col0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + - CASE - + 98 WHEN + 93 THEN NULL WHEN - 55 THEN 34 ELSE + COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-1869
SELECT + - CASE - + 98 WHEN + 93 THEN NULL WHEN - 55 THEN 34 ELSE + COUNT ( * ) END
----
-1

query I rowsort
SELECT 38 * - + 93 + - ( - 62 ) + - - 88
----
-3384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1871
SELECT + 27 + + - CASE + - 40 WHEN 0 * - 77 - + 18 THEN NULL ELSE 85 + - ( - + 11 ) END * - 32 * + - CAST( NULL AS SIGNED ), 68 * - - 48 AS col1
----
NULL
3264

skipif mysql # not compatible
query II rowsort label-1871
SELECT + 27 + + - CASE + - 40 WHEN 0 * - 77 - + 18 THEN NULL ELSE 85 + - ( - + 11 ) END * - 32 * + - CAST ( NULL AS INTEGER ), 68 * - - 48 AS col1
----
NULL
3264

query I rowsort
SELECT ALL - - 67 col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT + 41 + - + 0 + ( + 77 ) DIV + COUNT( * ) * + + ( COUNT( * ) ) AS col1
----
118

skipif mysql # not compatible
query I rowsort label-1873
SELECT + 41 + - + 0 + ( + 77 ) / + COUNT ( * ) * + + ( COUNT ( * ) ) AS col1
----
118

query I rowsort
SELECT - 50 * + + 36 * - - 57
----
-102600

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - 95 * 49 + - - 98 + + - 84 + + - 78 - + - COUNT( * ) + - 34 * - 89 * - + 56
----
-174174

skipif mysql # not compatible
query I rowsort label-1875
SELECT - 95 * 49 + - - 98 + + - 84 + + - 78 - + - COUNT ( * ) + - 34 * - 89 * - + 56
----
-174174

query I rowsort
SELECT ALL + 17 * + - 89
----
-1513

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1877
SELECT + CAST( NULL AS SIGNED ) * - SUM( ALL - + 62 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT + CAST ( NULL AS INTEGER ) * - SUM ( ALL - + 62 )
----
NULL

query I rowsort
SELECT + 90 + + 87 col1
----
177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL COALESCE ( COALESCE ( - 72, + - ( + + ( + COUNT( * ) ) ), - - NULLIF ( 52, + - 95 - COUNT( * ) ), - - 82 * + 15 - + - CAST( NULL AS SIGNED ) + + 16 ), 43 ) AS col1
----
-72

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL COALESCE ( COALESCE ( - 72, + - ( + + ( + COUNT ( * ) ) ), - - NULLIF ( 52, + - 95 - COUNT ( * ) ), - - 82 * + 15 - + - CAST ( NULL AS INTEGER ) + + 16 ), 43 ) AS col1
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT CAST( NULL AS SIGNED ) + + SUM( DISTINCT 9 ) + + 29 - + 71 * 65 + + 65
----
NULL

skipif mysql # not compatible
query I rowsort label-1880
SELECT CAST ( NULL AS INTEGER ) + + SUM ( DISTINCT 9 ) + + 29 - + 71 * 65 + + 65
----
NULL

query I rowsort
SELECT DISTINCT ( 91 ) + + 51 AS col1
----
142

query I rowsort
SELECT ALL 95 + 57 + + 21 AS col0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT + 1 - - NULLIF ( - 42, + - 87 + - ( - + 78 ) + - NULLIF ( - 2, AVG ( ALL 52 ) ) - + 0 * - 96 + - COUNT( * ) - + 14 ) col0
----
-41

skipif mysql # not compatible
query I rowsort label-1883
SELECT + 1 - - NULLIF ( - 42, + - 87 + - ( - + 78 ) + - NULLIF ( - 2, AVG ( ALL 52 ) ) - + 0 * - 96 + - COUNT ( * ) - + 14 ) col0
----
-41

query I rowsort
SELECT - NULLIF ( - - 40, 55 ) AS col2
----
-40

query I rowsort
SELECT + 77 - 39 AS col0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT DISTINCT 47 + COUNT( * ) + + + 49 * + - COUNT( * ) * 97 AS col1
----
-4705

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT 47 + COUNT ( * ) + + + 49 * + - COUNT ( * ) * 97 AS col1
----
-4705

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

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

query I rowsort
SELECT ALL 82 + 74
----
156

query I rowsort
SELECT ALL + 34 + - ( 2 ) AS col2
----
32

query II rowsort
SELECT DISTINCT 12 + - 40 AS col1, 85
----
-28
85

query II rowsort
SELECT - ( + 43 ) AS col2, 41 * 15
----
-43
615

query I rowsort
SELECT ALL 46 + + 4 * - 35 AS col1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1893
SELECT ( COUNT( * ) ) col1, - 18 DIV COUNT( * ) AS col0
----
1
-18

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

query I rowsort
SELECT - ( NULLIF ( - + 12, - + 53 ) ) + 64 AS col0
----
76

query I rowsort
SELECT + 23 * - + 60 + - + ( 43 ) AS col2
----
-1423

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

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

query I rowsort
SELECT + COALESCE ( + - 1, 74, + 83 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1898
SELECT - + 84 * - CAST( NULL AS DECIMAL ) * + CAST( + 91 AS SIGNED ) * + 37 / CASE - 62 WHEN + 14 THEN NULL WHEN + + 4 + - + 54 THEN + NULLIF ( - 14, 34 * - NULLIF ( SUM( - 5 ), CAST( 11 AS SIGNED ) ) ) + 45 / - 15 ELSE NULL END * + NULLIF ( CAST( + 95 AS DECIMAL ), 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1898
SELECT - + 84 * - CAST ( NULL AS REAL ) * + CAST ( + 91 AS INTEGER ) * + 37 / CASE - 62 WHEN + 14 THEN NULL WHEN + + 4 + - + 54 THEN + NULLIF ( - 14, 34 * - NULLIF ( SUM ( - 5 ), CAST ( 11 AS INTEGER ) ) ) + 45 / - 15 ELSE NULL END * + NULLIF ( CAST ( + 95 AS REAL ), 91 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1899
SELECT SUM ( DISTINCT ( 40 ) )
----
40

query I rowsort
SELECT ALL + - 39 * 34 AS col1
----
-1326

query I rowsort
SELECT DISTINCT - 45 * - + 53 * + 6
----
14310

query I rowsort
SELECT DISTINCT + + ( NULLIF ( + 23, 55 ) )
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1903
SELECT + 51 * CASE 40 WHEN - + 86 * 22 * - 21 * + - 53 / + ( - 54 ) + 59 + + - 9 THEN - 10 WHEN COALESCE ( - CAST( NULL AS SIGNED ), 51 ) THEN 40 * - COUNT( * ) + + 11 WHEN - 83 + 70 * NULLIF ( 77, + ( 83 ) ) THEN NULL ELSE NULL END + 71
----
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT + 51 * CASE 40 WHEN - + 86 * 22 * - 21 * + - 53 / + ( - 54 ) + 59 + + - 9 THEN - 10 WHEN COALESCE ( - CAST ( NULL AS INTEGER ), 51 ) THEN 40 * - COUNT ( * ) + + 11 WHEN - 83 + 70 * NULLIF ( 77, + ( 83 ) ) THEN NULL ELSE NULL END + 71
----
NULL

query II rowsort
SELECT ALL + + ( 34 ), 40 col1
----
34
40

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT - - 41 DIV + 30
----
1

skipif mysql # not compatible
query I rowsort label-1905
SELECT - - 41 / + 30
----
1

query II rowsort
SELECT - + 82 + - 32 AS col2, + 26
----
-114
26

query I rowsort
SELECT - 28 - + 83 * - + 96 AS col1
----
7940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1908
SELECT ALL + + CAST( - + 32 AS SIGNED ) DIV + MAX( - 66 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-1908
SELECT ALL + + CAST ( - + 32 AS INTEGER ) / + MAX ( - 66 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1909
SELECT ALL COUNT( * ) * - - 73
----
73

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL COUNT ( * ) * - - 73
----
73

query I rowsort
SELECT - 55 * + - 3
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT - COUNT( * ) + - COALESCE ( 71, + - COUNT( * ) * ( + 31 ), - + 5, - COALESCE ( + + 89, + - 14, + + NULLIF ( ( - + 27 ), + 87 + + NULLIF ( 20, 98 + - 58 ) / + 82 ) ) ) + 27 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT - COUNT ( * ) + - COALESCE ( 71, + - COUNT ( * ) * ( + 31 ), - + 5, - COALESCE ( + + 89, + - 14, + + NULLIF ( ( - + 27 ), + 87 + + NULLIF ( 20, 98 + - 58 ) / + 82 ) ) ) + 27 AS col0
----
-45

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

skipif mysql # not compatible
query I rowsort label-1912
SELECT - MIN ( + 88 )
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT + 90 + + - 16 + + COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-1913
SELECT + 90 + + - 16 + + COUNT ( * ) col1
----
75

query I rowsort
SELECT ALL + 93 * - - 33
----
3069

query I rowsort
SELECT - 19 * + - 34
----
646

query I rowsort
SELECT - 77 + - 85 AS col2
----
-162

query I rowsort
SELECT + 83 - + + 53 * + ( + 97 ) AS col2
----
-5058

onlyif mysql # aggregate syntax: 
query II rowsort label-1918
SELECT - COUNT( * ), - COUNT( ALL + 99 ) * - ( 9 ) col1
----
-1
9

skipif mysql # not compatible
query II rowsort label-1918
SELECT - COUNT ( * ), - COUNT ( ALL + 99 ) * - ( 9 ) col1
----
-1
9

query I rowsort
SELECT DISTINCT 7 + + 88 AS col0
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT DISTINCT CAST( 43 AS SIGNED )
----
43

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT CAST ( 43 AS INTEGER )
----
43

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1924
SELECT - CASE - 92 WHEN - COUNT( * ) + 34 THEN - 15 + - + CAST( + + 15 AS SIGNED ) WHEN + + NULLIF ( 81, 71 ) - - 14 THEN + CAST( - + NULLIF ( + ( + 14 ), + 33 / - 60 ) AS DECIMAL ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1924
SELECT - CASE - 92 WHEN - COUNT ( * ) + 34 THEN - 15 + - + CAST ( + + 15 AS INTEGER ) WHEN + + NULLIF ( 81, 71 ) - - 14 THEN + CAST ( - + NULLIF ( + ( + 14 ), + 33 / - 60 ) AS REAL ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - AVG ( DISTINCT - 66 ) * CASE - COUNT( * ) WHEN + 77 * 78 + + - COUNT( * ) + - 78 + - - ( 19 ) / + 26 THEN 95 WHEN 65 * - + 34 THEN NULL WHEN - COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1925
SELECT - AVG ( DISTINCT - 66 ) * CASE - COUNT ( * ) WHEN + 77 * 78 + + - COUNT ( * ) + - 78 + - - ( 19 ) / + 26 THEN 95 WHEN 65 * - + 34 THEN NULL WHEN - COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1926
SELECT ALL 99 * MIN( DISTINCT - - 87 ) * - + 36 / - - ( + + 66 ) + + + 70 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL 99 * MIN ( DISTINCT - - 87 ) * - + 36 / - - ( + + 66 ) + + + 70 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1927
SELECT + COALESCE ( + 6, - 96 * CAST( NULL AS SIGNED ) + + + 14 * + COUNT( * ), + CASE - - COUNT( * ) WHEN - - 13 THEN NULL WHEN - 83 + + - NULLIF ( + 33, 1 ) + + - COUNT( * ) THEN 27 WHEN 21 THEN ( 87 ) ELSE + 26 + 4 END, CAST( NULL AS SIGNED ) * + 45 ) + - 89 AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-1927
SELECT + COALESCE ( + 6, - 96 * CAST ( NULL AS INTEGER ) + + + 14 * + COUNT ( * ), + CASE - - COUNT ( * ) WHEN - - 13 THEN NULL WHEN - 83 + + - NULLIF ( + 33, 1 ) + + - COUNT ( * ) THEN 27 WHEN 21 THEN ( 87 ) ELSE + 26 + 4 END, CAST ( NULL AS INTEGER ) * + 45 ) + - 89 AS col0
----
-83

query I rowsort
SELECT + - 99 + + 29
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT ALL SUM( DISTINCT - 98 ) * - 80 * 60 AS col0
----
470400

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL SUM ( DISTINCT - 98 ) * - 80 * 60 AS col0
----
470400

query I rowsort
SELECT + 73 * + 58 AS col0
----
4234

query I rowsort
SELECT ALL 43 * + 77 AS col0
----
3311

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1932
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV + 98 + + COUNT( DISTINCT - - 79 ) + 10 * + - 36
----
-359

skipif mysql # not compatible
query I rowsort label-1932
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / + 98 + + COUNT ( DISTINCT - - 79 ) + 10 * + - 36
----
-359

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1933
SELECT ALL ( + 17 ) * - - NULLIF ( - SUM( + 92 ), - AVG ( - 10 ) ) DIV - COUNT( * ), - 71 DIV 27 AS col1
----
1564
-2

skipif mysql # not compatible
query II rowsort label-1933
SELECT ALL ( + 17 ) * - - NULLIF ( - SUM ( + 92 ), - AVG ( - 10 ) ) / - COUNT ( * ), - 71 / 27 AS col1
----
1564
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1934
SELECT DISTINCT + 74 * + + 79 * CAST( NULL AS DECIMAL ) * + 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT + 74 * + + 79 * CAST ( NULL AS REAL ) * + 60 AS col0
----
NULL

query I rowsort
SELECT ALL - 16 * - + 56 AS col2
----
896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1936
SELECT ALL + - 40 AS col1, 75 + - + CAST( - 58 AS SIGNED ) * + ( - 25 ) + + 57 + + MIN( + 1 ) * + ( 71 ) + - + 38
----
-40
-1285

skipif mysql # not compatible
query II rowsort label-1936
SELECT ALL + - 40 AS col1, 75 + - + CAST ( - 58 AS INTEGER ) * + ( - 25 ) + + 57 + + MIN ( + 1 ) * + ( 71 ) + - + 38
----
-40
-1285

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT 47 * + 16 + COUNT( * ) AS col2
----
753

skipif mysql # not compatible
query I rowsort label-1937
SELECT 47 * + 16 + COUNT ( * ) AS col2
----
753

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1939
SELECT - - 79 DIV + COUNT( * ) + + 12 AS col0
----
91

skipif mysql # not compatible
query I rowsort label-1939
SELECT - - 79 / + COUNT ( * ) + + 12 AS col0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1940
SELECT - - 7 * + CAST( NULL AS SIGNED ) + 12, CASE + 36 WHEN + 13 THEN NULL WHEN - - 74 THEN - - 98 WHEN + CAST( - - 45 AS SIGNED ) * + 3 * - + 90 THEN NULL END * 4 + - 94 + - - 24 * CAST( NULL AS SIGNED ) AS col1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1940
SELECT - - 7 * + CAST ( NULL AS INTEGER ) + 12, CASE + 36 WHEN + 13 THEN NULL WHEN - - 74 THEN - - 98 WHEN + CAST ( - - 45 AS INTEGER ) * + 3 * - + 90 THEN NULL END * 4 + - 94 + - - 24 * CAST ( NULL AS INTEGER ) AS col1
----
NULL
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1942
SELECT - COUNT( * ) DIV + 19 + - - CAST( - - COALESCE ( - 35, - 54 ) AS SIGNED ) + - 47
----
-82

skipif mysql # not compatible
query I rowsort label-1942
SELECT - COUNT ( * ) / + 19 + - - CAST ( - - COALESCE ( - 35, - 54 ) AS INTEGER ) + - 47
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-1943
SELECT + - COUNT( * ) * 72 * + COUNT( * ) AS col1, - ( - + AVG ( + CASE - 77 WHEN - + 12 THEN - 65 ELSE NULL END ) ) * + CASE - COALESCE ( - - 0, + 9, - + AVG ( - + 11 ) + + COUNT( * ) ) WHEN NULLIF ( + 81, 29 + 70 / ( COUNT( ALL 17 ) ) ) THEN - 10 * 7 ELSE NULL END AS col0
----
-72
NULL

skipif mysql # not compatible
query II rowsort label-1943
SELECT + - COUNT ( * ) * 72 * + COUNT ( * ) AS col1, - ( - + AVG ( + CASE - 77 WHEN - + 12 THEN - 65 ELSE NULL END ) ) * + CASE - COALESCE ( - - 0, + 9, - + AVG ( - + 11 ) + + COUNT ( * ) ) WHEN NULLIF ( + 81, 29 + 70 / ( COUNT ( ALL 17 ) ) ) THEN - 10 * 7 ELSE NULL END AS col0
----
-72
NULL

query II rowsort
SELECT - 59 + + 6 + + 15 + + 34 * + - 30 AS col0, - 19 AS col0
----
-1058
-19

query II rowsort
SELECT ALL + 0 * ( - + 48 ) AS col0, - 42 + 35
----
0
-7

query II rowsort
SELECT + + 75 AS col2, 54
----
75
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT ALL 86 DIV + NULLIF ( 71, COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-1947
SELECT ALL 86 / + NULLIF ( 71, COUNT ( * ) ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT + + COUNT( * ) * - + 37 * 40 + + - 60 + COUNT( + 50 ) AS col2
----
-1539

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT + + COUNT ( * ) * - + 37 * 40 + + - 60 + COUNT ( + 50 ) AS col2
----
-1539

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1949
SELECT ALL - - 68 * - + 73 + 83 - - 85 - ( + + COUNT( * ) ) + + 39 + - CASE MIN( 11 ) WHEN + 97 THEN NULL WHEN 59 THEN CAST( NULL AS SIGNED ) ELSE + 20 END * + - 68 * 45
----
56442

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL - - 68 * - + 73 + 83 - - 85 - ( + + COUNT ( * ) ) + + 39 + - CASE MIN ( 11 ) WHEN + 97 THEN NULL WHEN 59 THEN CAST ( NULL AS INTEGER ) ELSE + 20 END * + - 68 * 45
----
56442

query I rowsort
SELECT DISTINCT + 51 + + 80 AS col0
----
131

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

skipif mysql # not compatible
query I rowsort label-1951
SELECT 43 / - + COUNT ( * ) AS col1
----
-43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1952
SELECT ALL - ( + 47 ) + 66 + CAST( NULL AS SIGNED ) + - ( + 22 ) * - CAST( 69 AS SIGNED ) + + 5 - - 71 - MAX( + - ( - + 23 ) ) * - 67 * - SUM( 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1952
SELECT ALL - ( + 47 ) + 66 + CAST ( NULL AS INTEGER ) + - ( + 22 ) * - CAST ( 69 AS INTEGER ) + + 5 - - 71 - MAX ( + - ( - + 23 ) ) * - 67 * - SUM ( 44 ) AS col0
----
NULL

query II rowsort
SELECT - 52 AS col1, ( 20 )
----
-52
20

query I rowsort
SELECT ALL - 34 + NULLIF ( - NULLIF ( + 38, - 89 ), - 44 ) AS col1
----
-72

query I rowsort
SELECT 39 * + 29 AS col2
----
1131

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

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT - 16 * + + COUNT ( * ) AS col2
----
-16

query II rowsort
SELECT ALL 62, 40 AS col0
----
62
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT 55 + + + MAX( - 21 )
----
34

skipif mysql # not compatible
query I rowsort label-1958
SELECT 55 + + + MAX ( - 21 )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL + 71 - + 69 * 71 * - + 29 * SUM( + + CASE - 58 WHEN + 13 THEN - 14 - - - 43 * + 71 WHEN 13 THEN + 3 WHEN + - 99 - 40 THEN 77 END ) * 77
----
NULL

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL + 71 - + 69 * 71 * - + 29 * SUM ( + + CASE - 58 WHEN + 13 THEN - 14 - - - 43 * + 71 WHEN 13 THEN + 3 WHEN + - 99 - 40 THEN 77 END ) * 77
----
NULL

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

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

query II rowsort
SELECT - 28 AS col0, + COALESCE ( 7, + 40 * 33 + - 12 ) AS col0
----
-28
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1962
SELECT 90 + CASE + COUNT( * ) WHEN + 18 THEN - CAST( NULL AS SIGNED ) ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT 90 + CASE + COUNT ( * ) WHEN + 18 THEN - CAST ( NULL AS INTEGER ) ELSE NULL END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1963
SELECT CASE WHEN NOT NULL <> NULL THEN NULL WHEN ( NULL ) NOT BETWEEN 81 AND - + 15 / - 60 THEN + 31 + + + COALESCE ( + 43, - COUNT( * ) * ( + AVG ( + ( 63 ) ) ) * CAST( NULL AS SIGNED ) + + 14 + 44, - CASE + 5 WHEN - ( + 9 ) / + 2 - + COUNT( * ) THEN 29 ELSE NULL END, 87 ) END * + 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1963
SELECT CASE WHEN NOT NULL <> NULL THEN NULL WHEN ( NULL ) NOT BETWEEN 81 AND - + 15 / - 60 THEN + 31 + + + COALESCE ( + 43, - COUNT ( * ) * ( + AVG ( + ( 63 ) ) ) * CAST ( NULL AS INTEGER ) + + 14 + 44, - CASE + 5 WHEN - ( + 9 ) / + 2 - + COUNT ( * ) THEN 29 ELSE NULL END, 87 ) END * + 17 AS col1
----
NULL

query I rowsort
SELECT 64 * + 80
----
5120

query I rowsort
SELECT COALESCE ( 48, - - ( - 37 ) ) + - 13
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT ALL 52 - - SUM( + - 32 ) + - 28, 79 AS col0
----
-8
79

skipif mysql # not compatible
query II rowsort label-1966
SELECT ALL 52 - - SUM ( + - 32 ) + - 28, 79 AS col0
----
-8
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT DISTINCT + - 6 * + SUM( + 19 ) col1
----
-114

skipif mysql # not compatible
query I rowsort label-1967
SELECT DISTINCT + - 6 * + SUM ( + 19 ) col1
----
-114

query I rowsort
SELECT - 71 * + 72
----
-5112

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

query I rowsort
SELECT DISTINCT 28 * - 32 * + COALESCE ( + 68, + 55 )
----
-60928

query II rowsort
SELECT ALL - 46 AS col1, 20
----
-46
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT - 46 * + - 88 * + COUNT( * ) AS col1
----
4048

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 46 * + - 88 * + COUNT ( * ) AS col1
----
4048

query II rowsort
SELECT 23 AS col2, 45 col0
----
23
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT DISTINCT - MAX( - 65 ) + - 58
----
7

skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT - MAX ( - 65 ) + - 58
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT 13 DIV - 6 - 12
----
-14

skipif mysql # not compatible
query I rowsort label-1975
SELECT 13 / - 6 - 12
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1976
SELECT MIN( + 6 ) * - + 1 + - CAST( + 11 AS SIGNED )
----
-17

skipif mysql # not compatible
query I rowsort label-1976
SELECT MIN ( + 6 ) * - + 1 + - CAST ( + 11 AS INTEGER )
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT ALL 13 + - - NULLIF ( - + 15, + 98 * - - MIN( DISTINCT - 12 ) * 97 * - + 3 + + COUNT( * ) + - - 14 )
----
-2

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL 13 + - - NULLIF ( - + 15, + 98 * - - MIN ( DISTINCT - 12 ) * 97 * - + 3 + + COUNT ( * ) + - - 14 )
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1978
SELECT 44 - - ( + ( + NULLIF ( - COALESCE ( 79, - + 47 DIV - + 96 ), - 43 ) ) ) - - ( - COUNT( * ) ) AS col1, - 57 AS col0
----
-36
-57

skipif mysql # not compatible
query II rowsort label-1978
SELECT 44 - - ( + ( + NULLIF ( - COALESCE ( 79, - + 47 / - + 96 ), - 43 ) ) ) - - ( - COUNT ( * ) ) AS col1, - 57 AS col0
----
-36
-57

onlyif mysql # DIV for integer division: 
query II rowsort label-1979
SELECT + 20 col0, + 58 DIV + 83 + 93 - 85 * + - 68
----
20
5873

skipif mysql # not compatible
query II rowsort label-1979
SELECT + 20 col0, + 58 / + 83 + 93 - 85 * + - 68
----
20
5873

query I rowsort
SELECT ALL + 60 + + 64
----
124

query II rowsort
SELECT DISTINCT 61 + + - 0 AS col1, + 61
----
61
61

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1984
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - CAST( COUNT( - ( - - 17 ) ) AS SIGNED ) / + COUNT( * ) AS col1, - 87 * 12 * 34
----
NULL
-35496

skipif mysql # not compatible
query II rowsort label-1984
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - CAST ( COUNT ( - ( - - 17 ) ) AS INTEGER ) / + COUNT ( * ) AS col1, - 87 * 12 * 34
----
NULL
-35496

query I rowsort
SELECT CASE - - 46 WHEN - 96 THEN 59 WHEN - 26 THEN NULL END * + + 81
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1986
SELECT 1 * ( CAST( NULL AS DECIMAL ) ) + - 84 + 75 + - 9 * - 17 / + + 32 + 83 - - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-1986
SELECT 1 * ( CAST ( NULL AS REAL ) ) + - 84 + 75 + - 9 * - 17 / + + 32 + 83 - - 42
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ALL - SUM( ALL 25 ) col0
----
-25

skipif mysql # not compatible
query I rowsort label-1987
SELECT ALL - SUM ( ALL 25 ) col0
----
-25

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

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

query I rowsort
SELECT 59 * - 72 AS col1
----
-4248

query I rowsort
SELECT DISTINCT 71 * - + 91
----
-6461

query I rowsort
SELECT 68 + - 65 + - 51
----
-48

query I rowsort
SELECT ALL - 3 - + - 88
----
85

query II rowsort
SELECT ALL - 30 * 13 AS col1, 48
----
-390
48

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

query I rowsort
SELECT 58 + - + 8 * + 88 AS col1
----
-646

query I rowsort
SELECT 93 - 53
----
40

query II rowsort
SELECT 64 * + 2 AS col0, - CASE WHEN NOT - 13 IN ( - - 25, + 76, - 69 ) THEN NULL ELSE - 36 + + + 24 - + + 4 * - 26 END
----
128
NULL

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

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

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

query I rowsort
SELECT 83 + + - 1 + - + 64 AS col0
----
18

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT - COALESCE ( 6, + 55 - + COUNT ( * ) )
----
-6

query II rowsort
SELECT ALL - 25 + + 66 AS col0, + 37 AS col2
----
41
37

query I rowsort
SELECT 89 + 59
----
148

onlyif mysql # aggregate syntax: 
query II rowsort label-2006
SELECT + 0 - - + COUNT( - 56 ) AS col1, 32 + + + 26 * + ( + 10 )
----
1
292

skipif mysql # not compatible
query II rowsort label-2006
SELECT + 0 - - + COUNT ( - 56 ) AS col1, 32 + + + 26 * + ( + 10 )
----
1
292

query I rowsort
SELECT CASE + + 67 WHEN 95 THEN NULL ELSE - + 45 - - - 14 END * + 87
----
-5133

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL - - COUNT( * ) + + - MIN( ALL - - 91 )
----
-90

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - - COUNT ( * ) + + - MIN ( ALL - - 91 )
----
-90

query I rowsort
SELECT + 67 + - ( - 88 )
----
155

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2010
SELECT ALL - CASE 20 WHEN - + CAST( NULL AS SIGNED ) THEN + 25 * - 91 + + 85 + CAST( - 78 AS SIGNED ) - - 54 END * + 10 + COUNT( * ) * NULLIF ( + CASE - NULLIF ( + NULLIF ( - - NULLIF ( COUNT( * ), - 15 * 61 ), - 40 + 75 ), 65 ) WHEN - COUNT( * ) * 19 THEN 4 END, 29 + - 43 ) + COUNT( * ) * 17
----
NULL

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL - CASE 20 WHEN - + CAST ( NULL AS INTEGER ) THEN + 25 * - 91 + + 85 + CAST ( - 78 AS INTEGER ) - - 54 END * + 10 + COUNT ( * ) * NULLIF ( + CASE - NULLIF ( + NULLIF ( - - NULLIF ( COUNT ( * ), - 15 * 61 ), - 40 + 75 ), 65 ) WHEN - COUNT ( * ) * 19 THEN 4 END, 29 + - 43 ) + COUNT ( * ) * 17
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2011
SELECT - 94 + - 49 + + 53 + - CASE + 73 WHEN - 70 THEN + 81 ELSE NULL END AS col2, 90 * + CAST( + - SUM( + 33 ) AS SIGNED )
----
NULL
-2970

skipif mysql # not compatible
query II rowsort label-2011
SELECT - 94 + - 49 + + 53 + - CASE + 73 WHEN - 70 THEN + 81 ELSE NULL END AS col2, 90 * + CAST ( + - SUM ( + 33 ) AS INTEGER )
----
NULL
-2970

query I rowsort
SELECT ALL - + NULLIF ( - 53, + - 8 + - + ( - 62 ) + 16 ) * + + 90 * 11 + + 30 AS col2
----
52500

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT 29 * - 25 * COUNT( * ) + MIN( ALL ( - - ( + 70 ) ) ) * + 47
----
2565

skipif mysql # not compatible
query I rowsort label-2013
SELECT 29 * - 25 * COUNT ( * ) + MIN ( ALL ( - - ( + 70 ) ) ) * + 47
----
2565

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2014
SELECT ALL 52 * + NULLIF ( + 73, + COUNT( * ) + - CAST( NULL AS SIGNED ) ) + + + CASE 10 WHEN + COUNT( * ) + + COUNT( * ) THEN + 94 ELSE 55 * + 33 + + 82 * 40 / CAST( NULL AS SIGNED ) END + + CAST( - - 24 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL 52 * + NULLIF ( + 73, + COUNT ( * ) + - CAST ( NULL AS INTEGER ) ) + + + CASE 10 WHEN + COUNT ( * ) + + COUNT ( * ) THEN + 94 ELSE 55 * + 33 + + 82 * 40 / CAST ( NULL AS INTEGER ) END + + CAST ( - - 24 AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2015
SELECT ALL + 56 * - ( - 58 ) + + - COUNT( * ) * 99
----
3149

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL + 56 * - ( - 58 ) + + - COUNT ( * ) * 99
----
3149

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

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

query I rowsort
SELECT + 31 * + 11 col0
----
341

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

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL )
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL - 29 * + 48 * 96 - + 94 * + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL - 29 * + 48 * 96 - + 94 * + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2021
SELECT DISTINCT + 97 AS col1, CAST( 66 AS SIGNED ) * - + 83 * - - 73 col2
----
97
-399894

skipif mysql # not compatible
query II rowsort label-2021
SELECT DISTINCT + 97 AS col1, CAST ( 66 AS INTEGER ) * - + 83 * - - 73 col2
----
97
-399894

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT 48 * - + MIN( ALL + 92 )
----
-4416

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT 48 * - + MIN ( ALL + 92 )
----
-4416

onlyif mysql # aggregate syntax: 
query II rowsort label-2023
SELECT ALL 29 * - + 51 - 99 AS col1, COUNT( * ) AS col1
----
-1578
1

skipif mysql # not compatible
query II rowsort label-2023
SELECT ALL 29 * - + 51 - 99 AS col1, COUNT ( * ) AS col1
----
-1578
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT MIN( ALL 70 ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-2024
SELECT MIN ( ALL 70 ) AS col0
----
70

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

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

query I rowsort
SELECT - ( + - NULLIF ( 99, + 71 ) ) + + + 1 AS col2
----
100

query I rowsort
SELECT - 47 + - 65
----
-112

query I rowsort
SELECT + 58 * + - 38 col1
----
-2204

onlyif mysql # aggregate syntax: 
query I rowsort label-2029
SELECT ALL 70 * - 67 * - COUNT( * )
----
4690

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL 70 * - 67 * - COUNT ( * )
----
4690

query I rowsort
SELECT - ( 23 )
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2031
SELECT + CAST( 32 AS SIGNED ) + COUNT( * ) AS col2
----
33

skipif mysql # not compatible
query I rowsort label-2031
SELECT + CAST ( 32 AS INTEGER ) + COUNT ( * ) AS col2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT SUM( ALL - 67 )
----
-67

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT SUM ( ALL - 67 )
----
-67

query II rowsort
SELECT DISTINCT + 53, 17 AS col1
----
53
17

query I rowsort
SELECT ALL 32 + + 45 AS col2
----
77

query I rowsort
SELECT ALL + 54 + + + 95 AS col2
----
149

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2038
SELECT + - 74 DIV ( + 95 ) * + 50 - - 55
----
55

skipif mysql # not compatible
query I rowsort label-2038
SELECT + - 74 / ( + 95 ) * + 50 - - 55
----
55

query I rowsort
SELECT ALL - COALESCE ( - - ( + 56 ), - - 98 ) col0
----
-56

query I rowsort
SELECT - + 93 + + - 85 AS col2
----
-178

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT - 32 AS col0, + CASE 22 WHEN + - CASE - 63 WHEN + 6 * - COUNT( * ) THEN + 94 END THEN + - 63 ELSE - COUNT( * ) END AS col1
----
-32
-1

skipif mysql # not compatible
query II rowsort label-2041
SELECT - 32 AS col0, + CASE 22 WHEN + - CASE - 63 WHEN + 6 * - COUNT ( * ) THEN + 94 END THEN + - 63 ELSE - COUNT ( * ) END AS col1
----
-32
-1

query I rowsort
SELECT ALL + + 13 + - + 93 * + 40 col0
----
-3707

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2043
SELECT DISTINCT NULLIF ( + 71, + COALESCE ( 90, - 32 ) - - + 9 / + + COUNT( * ) * + 64 ) + 92 + + - CASE WHEN NOT MIN( DISTINCT ( + 63 ) ) NOT BETWEEN + COALESCE ( + 15, - 45 ) / COUNT( * ) AND + AVG ( ALL 31 ) * + COUNT( * ) + 40 * 77 THEN NULLIF ( 67, ( - ( 88 ) ) ) * + ( + 32 * CAST( NULL AS SIGNED ) ) - 72 * + 84 ELSE NULL END + 95 * - ( 47 - NULLIF ( + 50, 65 ) * + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT NULLIF ( + 71, + COALESCE ( 90, - 32 ) - - + 9 / + + COUNT ( * ) * + 64 ) + 92 + + - CASE WHEN NOT MIN ( DISTINCT ( + 63 ) ) NOT BETWEEN + COALESCE ( + 15, - 45 ) / COUNT ( * ) AND + AVG ( ALL 31 ) * + COUNT ( * ) + 40 * 77 THEN NULLIF ( 67, ( - ( 88 ) ) ) * + ( + 32 * CAST ( NULL AS INTEGER ) ) - 72 * + 84 ELSE NULL END + 95 * - ( 47 - NULLIF ( + 50, 65 ) * + COUNT ( * ) )
----
NULL

query I rowsort
SELECT - 78 * - 75
----
5850

query I rowsort
SELECT - + 67 * 94 AS col2
----
-6298

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

query I rowsort
SELECT ALL - 28 * - 88
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT + + CASE - - 5 WHEN - - 37 * 34 + - + 12 THEN 73 + - COUNT( * ) WHEN + - 30 * 50 - 80 + 90 + - - ( + 78 ) + 36 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT + + CASE - - 5 WHEN - - 37 * 34 + - + 12 THEN 73 + - COUNT ( * ) WHEN + - 30 * 50 - 80 + 90 + - - ( + 78 ) + 36 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2049
SELECT DISTINCT - CAST( + COALESCE ( - 98, 44 / - CAST( NULL AS SIGNED ) * - 70 ) AS SIGNED ) * + 95 * - - SUM( DISTINCT - + 29 ) - - - 36 col0
----
-270026

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT - CAST ( + COALESCE ( - 98, 44 / - CAST ( NULL AS INTEGER ) * - 70 ) AS INTEGER ) * + 95 * - - SUM ( DISTINCT - + 29 ) - - - 36 col0
----
-270026

query II rowsort
SELECT ALL + ( + + 59 ) AS col0, ( 93 ) * + 26 + - 38 + 97 AS col0
----
59
2477

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

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

query II rowsort
SELECT ( + 22 ), - 95 AS col0
----
22
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT + COALESCE ( 75, + + 62 * + 62, + 20 + - MIN( DISTINCT 17 ) + + + 0 * + ( - NULLIF ( - - 48, + 61 ) ) + - + 3, - + 40 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-2054
SELECT + COALESCE ( 75, + + 62 * + 62, + 20 + - MIN ( DISTINCT 17 ) + + + 0 * + ( - NULLIF ( - - 48, + 61 ) ) + - + 3, - + 40 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT + MIN( - 84 ) * - 90
----
7560

skipif mysql # not compatible
query I rowsort label-2055
SELECT + MIN ( - 84 ) * - 90
----
7560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2056
SELECT ALL + 3 DIV - - 12 * - - MIN( ALL - + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL + 3 / - - 12 * - - MIN ( ALL - + 55 )
----
0

query II rowsort
SELECT + ( - - 24 ), + 32 AS col0
----
24
32

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2058
SELECT DISTINCT 35 * + + CAST( NULL AS DECIMAL ) AS col1, + ( + 78 ) AS col0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-2058
SELECT DISTINCT 35 * + + CAST ( NULL AS REAL ) AS col1, + ( + 78 ) AS col0
----
NULL
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2059
SELECT - NULLIF ( - 46, - + 16 * + 66 ) + 36 AS col0, 92 + CAST( - 21 AS SIGNED ) AS col1
----
82
71

skipif mysql # not compatible
query II rowsort label-2059
SELECT - NULLIF ( - 46, - + 16 * + 66 ) + 36 AS col0, 92 + CAST ( - 21 AS INTEGER ) AS col1
----
82
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT ALL SUM( 91 ) * 91 AS col2
----
8281

skipif mysql # not compatible
query I rowsort label-2060
SELECT ALL SUM ( 91 ) * 91 AS col2
----
8281

query I rowsort
SELECT ALL 6 * + + 34 + 41 * 78 * - 26 AS col1
----
-82944

query I rowsort
SELECT + 35 + - + 95
----
-60

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

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

query I rowsort
SELECT ALL 74 * - 76 + 95
----
-5529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT ALL 43 * + 60 / - 78 * CAST( NULL AS SIGNED ) * 73 / + 2 * 79 + 52 + + 87 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL 43 * + 60 / - 78 * CAST ( NULL AS INTEGER ) * 73 / + 2 * 79 + 52 + + 87 col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2066
SELECT ALL - ( + COUNT( * ) ), 94 * + 15 * 69 AS col0
----
-1
97290

skipif mysql # not compatible
query II rowsort label-2066
SELECT ALL - ( + COUNT ( * ) ), 94 * + 15 * 69 AS col0
----
-1
97290

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

query I rowsort
SELECT + 49 - + 50 AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2069
SELECT DISTINCT - 31 + - 54 * + + COUNT( - + 14 ) + - CAST( - - 21 AS SIGNED ) AS col2
----
-106

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - 31 + - 54 * + + COUNT ( - + 14 ) + - CAST ( - - 21 AS INTEGER ) AS col2
----
-106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT DISTINCT 41 * - CASE + 86 WHEN 54 * + 62 + + + COUNT( * ) THEN - + NULLIF ( 13, + NULLIF ( - 7, + - ( 15 ) * - ( - 26 ) ) / 75 ) * 83 - - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT 41 * - CASE + 86 WHEN 54 * + 62 + + + COUNT ( * ) THEN - + NULLIF ( 13, + NULLIF ( - 7, + - ( 15 ) * - ( - 26 ) ) / 75 ) * 83 - - COUNT ( * ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + COUNT( * ) + - + 73 * + 15
----
-1094

skipif mysql # not compatible
query I rowsort label-2072
SELECT + COUNT ( * ) + - + 73 * + 15
----
-1094

query I rowsort
SELECT - + COALESCE ( + 53, + ( - - 26 ) + - 81 ) AS col1
----
-53

query I rowsort
SELECT DISTINCT 68 * + - 28 * 48 col1
----
-91392

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

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

skipif mysql # not compatible
query I rowsort label-2076
SELECT 49 + COUNT ( * ) - 62 + + - 55 AS col0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT ALL SUM( DISTINCT 56 ) - MAX( DISTINCT + NULLIF ( 79, + 37 / - 95 + ( - - ( + 6 ) ) ) ) * - 64 col2
----
5112

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL SUM ( DISTINCT 56 ) - MAX ( DISTINCT + NULLIF ( 79, + 37 / - 95 + ( - - ( + 6 ) ) ) ) * - 64 col2
----
5112

query I rowsort
SELECT DISTINCT - 91 col0
----
-91

query I rowsort
SELECT ALL + 71 - + - 15 * + 76
----
1211

onlyif mysql # DIV for integer division: 
query I rowsort label-2080
SELECT DISTINCT + 89 DIV 62 * 90
----
90

skipif mysql # not compatible
query I rowsort label-2080
SELECT DISTINCT + 89 / 62 * 90
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT 78 DIV - 24 col0
----
-3

skipif mysql # not compatible
query I rowsort label-2081
SELECT 78 / - 24 col0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT CAST( NULL AS SIGNED ) / - + 45 + + - 50 + + - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT CAST ( NULL AS INTEGER ) / - + 45 + + - 50 + + - 77 AS col1
----
NULL

query I rowsort
SELECT ALL + 17 * + 13
----
221

query I rowsort
SELECT 93 + 88 AS col0
----
181

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT 6 * - COALESCE ( + COUNT( * ), 21 + 69 ) * 17
----
-102

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT 6 * - COALESCE ( + COUNT ( * ), 21 + 69 ) * 17
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-2086
SELECT ALL - 9 AS col2, 95 * + - COUNT( * )
----
-9
-95

skipif mysql # not compatible
query II rowsort label-2086
SELECT ALL - 9 AS col2, 95 * + - COUNT ( * )
----
-9
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT ALL + 81 + - CASE - COALESCE ( + CASE 55 WHEN - 35 * COUNT( * ) + - 23 / + + COUNT( * ) * - 40 THEN + 40 * + 58 * + - COUNT( * ) END, COUNT( * ) + + MIN( - 2 ) ) WHEN NULLIF ( + 2, - ( 86 ) ) / + 83 THEN - 18 + ( 25 ) ELSE 49 END + 66
----
98

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL + 81 + - CASE - COALESCE ( + CASE 55 WHEN - 35 * COUNT ( * ) + - 23 / + + COUNT ( * ) * - 40 THEN + 40 * + 58 * + - COUNT ( * ) END, COUNT ( * ) + + MIN ( - 2 ) ) WHEN NULLIF ( + 2, - ( 86 ) ) / + 83 THEN - 18 + ( 25 ) ELSE 49 END + 66
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2088
SELECT DISTINCT + 99 + + 68 DIV - 80
----
99

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT + 99 + + 68 / - 80
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL - COUNT( - 62 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL - COUNT ( - 62 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT DISTINCT + 79 DIV - 56
----
-1

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + 79 / - 56
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT ( + + ( + 34 ) ) DIV - 48
----
0

skipif mysql # not compatible
query I rowsort label-2091
SELECT ( + + ( + 34 ) ) / - 48
----
0

query I rowsort
SELECT NULLIF ( - 95, + 39 ) AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT - COUNT( * ) + + 52
----
51

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - COUNT ( * ) + + 52
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT + NULLIF ( + 66, + 90 + 21 + + + NULLIF ( - COUNT( * ), 64 - + 66 ) * + + ( + 13 ) - - 34 * 25 - - 78 ) + 36
----
102

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT + NULLIF ( + 66, + 90 + 21 + + + NULLIF ( - COUNT ( * ), 64 - + 66 ) * + + ( + 13 ) - - 34 * 25 - - 78 ) + 36
----
102

query I rowsort
SELECT ALL + 2 * - ( 82 ) * + 52
----
-8528

query I rowsort
SELECT + 47 + + 87 + - - 88 * 55
----
4974

query I rowsort
SELECT DISTINCT - 85 - + + 99 + - - 26 AS col1
----
-158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2098
SELECT DISTINCT 95 DIV + COALESCE ( - 7, - CASE - 10 WHEN CASE - 36 WHEN 83 * + 75 * - - COUNT( * ) * - 3 + + 84 + 52 THEN NULL ELSE COUNT( * ) + + + 96 + SUM( DISTINCT 71 ) END THEN - + 51 WHEN + 59 * + ( 99 ) * + 64 THEN NULL ELSE - 5 END + + 50 )
----
-13

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT 95 / + COALESCE ( - 7, - CASE - 10 WHEN CASE - 36 WHEN 83 * + 75 * - - COUNT ( * ) * - 3 + + 84 + 52 THEN NULL ELSE COUNT ( * ) + + + 96 + SUM ( DISTINCT 71 ) END THEN - + 51 WHEN + 59 * + ( 99 ) * + 64 THEN NULL ELSE - 5 END + + 50 )
----
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2099
SELECT ALL - 52 - - - 74 / + 10 + 37 + + 67 * - 66 - - 25 * 20 * ( - - 64 ) / CASE - 2 WHEN - - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + - 46 THEN NULL WHEN + 12 THEN - + ( + 25 ) * - + MAX( COALESCE ( 82, + 51 ) ) / - 60 + 23 WHEN + 61 + 98 THEN 11 ELSE - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-2099
SELECT ALL - 52 - - - 74 / + 10 + 37 + + 67 * - 66 - - 25 * 20 * ( - - 64 ) / CASE - 2 WHEN - - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + - 46 THEN NULL WHEN + 12 THEN - + ( + 25 ) * - + MAX ( COALESCE ( 82, + 51 ) ) / - 60 + 23 WHEN + 61 + 98 THEN 11 ELSE - CAST ( NULL AS INTEGER ) END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT + 4 DIV - 83 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2100
SELECT + 4 / - 83 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 3 * - 81 + + COUNT( * ) col2
----
-242

skipif mysql # not compatible
query I rowsort label-2101
SELECT 3 * - 81 + + COUNT ( * ) col2
----
-242

query I rowsort
SELECT 33 + - 68 AS col1
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2103
SELECT - 29 AS col2, 80 * - SUM( - 86 ) + 83 + + + 22 + 33 * 24 DIV + 61
----
-29
6997

skipif mysql # not compatible
query II rowsort label-2103
SELECT - 29 AS col2, 80 * - SUM ( - 86 ) + 83 + + + 22 + 33 * 24 / + 61
----
-29
6997

query I rowsort
SELECT 26 + + - 54
----
-28

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2106
SELECT - COALESCE ( 39, - CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
-39

skipif mysql # not compatible
query I rowsort label-2106
SELECT - COALESCE ( 39, - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
-39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2108
SELECT ALL + SUM( + - CAST( COALESCE ( - 97, 71, 10 + + ( - 3 ) + CAST( 59 AS SIGNED ) / 46 * + 32 / 1 ) AS SIGNED ) ) * 55
----
5335

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + SUM ( + - CAST ( COALESCE ( - 97, 71, 10 + + ( - 3 ) + CAST ( 59 AS INTEGER ) / 46 * + 32 / 1 ) AS INTEGER ) ) * 55
----
5335

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

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

query I rowsort
SELECT DISTINCT 25 * 2
----
50

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

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

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

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

query I rowsort
SELECT 94 * - + 67 AS col1
----
-6298

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT + COUNT( * ) AS col1, - 62 + + - COALESCE ( + + COUNT( * ), 16, + - 43 * 19 + - COUNT( - + 27 ) + COUNT( * ) * + + 91 ) + - 77 * - ( 69 ) - - + 79
----
1
5329

skipif mysql # not compatible
query II rowsort label-2114
SELECT + COUNT ( * ) AS col1, - 62 + + - COALESCE ( + + COUNT ( * ), 16, + - 43 * 19 + - COUNT ( - + 27 ) + COUNT ( * ) * + + 91 ) + - 77 * - ( 69 ) - - + 79
----
1
5329

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT ALL - 9 AS col1, + 13 - - 63 + - - ( + COUNT( 99 ) )
----
-9
77

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL - 9 AS col1, + 13 - - 63 + - - ( + COUNT ( 99 ) )
----
-9
77

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

skipif mysql # not compatible
query I rowsort label-2116
SELECT COUNT ( * ) * + 94 - + 40 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT ALL - 40 DIV - MAX( + NULLIF ( + - 38, 60 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2117
SELECT ALL - 40 / - MAX ( + NULLIF ( + - 38, 60 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2118
SELECT DISTINCT COUNT( * ) * - 29 * - - COALESCE ( - + 62, - 71, - 55 DIV - 78 ) + - 88 DIV - 47, 61 - + COUNT( * ) - + + 84 + + - ( + 32 ) * - 11 * 98 AS col1
----
1799
34472

skipif mysql # not compatible
query II rowsort label-2118
SELECT DISTINCT COUNT ( * ) * - 29 * - - COALESCE ( - + 62, - 71, - 55 / - 78 ) + - 88 / - 47, 61 - + COUNT ( * ) - + + 84 + + - ( + 32 ) * - 11 * 98 AS col1
----
1799
34472

onlyif mysql # DIV for integer division: 
query II rowsort label-2119
SELECT 3 DIV + - 17 AS col1, + 86 AS col1
----
0
86

skipif mysql # not compatible
query II rowsort label-2119
SELECT 3 / + - 17 AS col1, + 86 AS col1
----
0
86

query I rowsort
SELECT ALL 94 + + - 9 * + 71
----
-545

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT 9 * CASE - 61 WHEN - NULLIF ( + - 67, - - CASE + - COUNT( * ) WHEN - + 7 + - AVG ( ( + 11 ) ) + + - 45 * + 53 / 9 + COUNT( * ) + - 84 THEN - - COUNT( * ) + + 11 WHEN ( - 91 ) * COUNT( 25 ) THEN NULL END ) * 74 THEN NULL ELSE + ( - 63 ) END AS col2
----
-567

skipif mysql # not compatible
query I rowsort label-2122
SELECT 9 * CASE - 61 WHEN - NULLIF ( + - 67, - - CASE + - COUNT ( * ) WHEN - + 7 + - AVG ( ( + 11 ) ) + + - 45 * + 53 / 9 + COUNT ( * ) + - 84 THEN - - COUNT ( * ) + + 11 WHEN ( - 91 ) * COUNT ( 25 ) THEN NULL END ) * 74 THEN NULL ELSE + ( - 63 ) END AS col2
----
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + COUNT( * ) * + + 68 + - COUNT( * ) + MIN( - 35 ) * CASE + + SUM( DISTINCT 93 ) WHEN - ( - 90 ) THEN + 32 WHEN + COUNT( * ) THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2123
SELECT + COUNT ( * ) * + + 68 + - COUNT ( * ) + MIN ( - 35 ) * CASE + + SUM ( DISTINCT 93 ) WHEN - ( - 90 ) THEN + 32 WHEN + COUNT ( * ) THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT 18 - COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-2124
SELECT 18 - COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT MIN( ALL + ( + - 6 ) ) + 82
----
76

skipif mysql # not compatible
query I rowsort label-2125
SELECT MIN ( ALL + ( + - 6 ) ) + 82
----
76

query II rowsort
SELECT + 33 col1, - 47 col1
----
33
-47

query I rowsort
SELECT + - COALESCE ( + 87, - 60 * 63 + + 11 * + 82 + + - 98 )
----
-87

query I rowsort
SELECT DISTINCT - ( 53 ) col1
----
-53

query I rowsort
SELECT 2 * + 53
----
106

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2131
SELECT - + 37 + COUNT( * ) + - ( - 44 )
----
8

skipif mysql # not compatible
query I rowsort label-2131
SELECT - + 37 + COUNT ( * ) + - ( - 44 )
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT DISTINCT + - ( - - 83 ) * MAX( 69 ) + + + 85 * 67 + - COALESCE ( + + 51, - 35 ) + CASE - 28 WHEN + ( + + 66 ) THEN COUNT( * ) END + 52 * + AVG ( ALL + - 27 ) + + 1 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT + - ( - - 83 ) * MAX ( 69 ) + + + 85 * 67 + - COALESCE ( + + 51, - 35 ) + CASE - 28 WHEN + ( + + 66 ) THEN COUNT ( * ) END + 52 * + AVG ( ALL + - 27 ) + + 1 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT - - 3 * COUNT( * ) * + - 36 + 96 AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-2133
SELECT - - 3 * COUNT ( * ) * + - 36 + 96 AS col2
----
-12

query I rowsort
SELECT ALL + 56 - - 49
----
105

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT - 72 * - COALESCE ( + + COUNT( * ), + 43 )
----
72

skipif mysql # not compatible
query I rowsort label-2136
SELECT - 72 * - COALESCE ( + + COUNT ( * ), + 43 )
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2137
SELECT ALL - 90 DIV COUNT( * ) AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-2137
SELECT ALL - 90 / COUNT ( * ) AS col0
----
-90

query I rowsort
SELECT - + 85 * 51
----
-4335

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

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - + COUNT ( * ) * + + ( - 65 ) AS col0
----
65

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2140
SELECT - + 94 AS col1, 61 * COALESCE ( + - COUNT( * ), + - 47 ) + - CAST( NULL AS DECIMAL ) + - 16 + + 34 / - 92
----
-94
NULL

skipif mysql # not compatible
query II rowsort label-2140
SELECT - + 94 AS col1, 61 * COALESCE ( + - COUNT ( * ), + - 47 ) + - CAST ( NULL AS REAL ) + - 16 + + 34 / - 92
----
-94
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2141
SELECT ALL - 38 AS col2, 62 * 27 * + SUM( + - 34 ) col0
----
-38
-56916

skipif mysql # not compatible
query II rowsort label-2141
SELECT ALL - 38 AS col2, 62 * 27 * + SUM ( + - 34 ) col0
----
-38
-56916

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT ALL - - 35 DIV 59 - + + 64
----
-64

skipif mysql # not compatible
query I rowsort label-2143
SELECT ALL - - 35 / 59 - + + 64
----
-64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT - 13 + - + 87 + - + 93 + COUNT( * ) + - 44 * + 85 AS col0, 36 + 50 AS col2
----
-3932
86

skipif mysql # not compatible
query II rowsort label-2145
SELECT - 13 + - + 87 + - + 93 + COUNT ( * ) + - 44 * + 85 AS col0, 36 + 50 AS col2
----
-3932
86

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

query I rowsort
SELECT ALL ( - - 19 )
----
19

query I rowsort
SELECT - 66 + - 96 + - 4 AS col2
----
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL 78 + + - COUNT( - ( 4 ) ) * + 48 * + 21 + - 22
----
-952

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL 78 + + - COUNT ( - ( 4 ) ) * + 48 * + 21 + - 22
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + ( - 56 ) * - CASE WHEN NOT - 7 NOT IN ( + + 75 ) THEN SUM( ALL - 79 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT + ( - 56 ) * - CASE WHEN NOT - 7 NOT IN ( + + 75 ) THEN SUM ( ALL - 79 ) ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT + CAST( + 75 AS SIGNED ) + + - 38 AS col2
----
37

skipif mysql # not compatible
query I rowsort label-2151
SELECT + CAST ( + 75 AS INTEGER ) + + - 38 AS col2
----
37

query I rowsort
SELECT DISTINCT ( 29 ) AS col2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 23 * + 92 + 10 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 23 * + 92 + 10 AS col0
----
NULL

query I rowsort
SELECT ALL 6 * + - 40 AS col0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT 17 * ( - 9 ) * - - 68 + - + ( COUNT( - 96 ) ) + - 70 AS col2
----
-10475

skipif mysql # not compatible
query I rowsort label-2155
SELECT 17 * ( - 9 ) * - - 68 + - + ( COUNT ( - 96 ) ) + - 70 AS col2
----
-10475

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - NULLIF ( 28, 32 ) * + 24 * + COUNT( * ) + + 72
----
-600

skipif mysql # not compatible
query I rowsort label-2156
SELECT - NULLIF ( 28, 32 ) * + 24 * + COUNT ( * ) + + 72
----
-600

query I rowsort
SELECT + CASE - 23 WHEN - 58 * - 27 / + 2 + + 54 THEN 93 WHEN 32 THEN + - 61 / + + 23 ELSE 89 END AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL + ( 25 ) * - 31 + - 26 + COUNT( * ) + - 11 + - NULLIF ( + - 76, 31 )
----
-735

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL + ( 25 ) * - 31 + - 26 + COUNT ( * ) + - 11 + - NULLIF ( + - 76, 31 )
----
-735

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT COALESCE ( - 50, COALESCE ( + - 50, 73 + + - 58, 39 DIV - + 16 * + - 55 * - 32, - 55 * + 69 ) ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-2159
SELECT COALESCE ( - 50, COALESCE ( + - 50, 73 + + - 58, 39 / - + 16 * + - 55 * - 32, - 55 * + 69 ) ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT ALL - 45 * + COUNT( * ) - + 5 * - + COALESCE ( 3, - 58 )
----
-30

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - 45 * + COUNT ( * ) - + 5 * - + COALESCE ( 3, - 58 )
----
-30

query I rowsort
SELECT + 46 * + - ( 86 ) * 98 col1
----
-387688

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT ALL - 96 DIV 7 col1
----
-13

skipif mysql # not compatible
query I rowsort label-2162
SELECT ALL - 96 / 7 col1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT COALESCE ( + ( COUNT( * ) ), 86 + COUNT( * ), + 19 + 92 )
----
1

skipif mysql # not compatible
query I rowsort label-2163
SELECT COALESCE ( + ( COUNT ( * ) ), 86 + COUNT ( * ), + 19 + 92 )
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2164
SELECT - CAST( NULL AS DECIMAL ) * - ( + - NULLIF ( - 15, - 22 * 28 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT - CAST ( NULL AS REAL ) * - ( + - NULLIF ( - 15, - 22 * 28 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2165
SELECT - 42 * + COUNT( * ) + + - 25 AS col1
----
-67

skipif mysql # not compatible
query I rowsort label-2165
SELECT - 42 * + COUNT ( * ) + + - 25 AS col1
----
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2166
SELECT ALL ( 96 ) * + 82 * + COALESCE ( - - COUNT( * ), 34 DIV - 80 * + 91 * + 69 )
----
7872

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL ( 96 ) * + 82 * + COALESCE ( - - COUNT ( * ), 34 / - 80 * + 91 * + 69 )
----
7872

query I rowsort
SELECT + + 39 * - 83
----
-3237

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

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL - CAST ( + 53 AS INTEGER ) AS col1
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-2169
SELECT ALL NULLIF ( 80, 11 ), 17 * - - COUNT( * ) + - + 60 col2
----
80
-43

skipif mysql # not compatible
query II rowsort label-2169
SELECT ALL NULLIF ( 80, 11 ), 17 * - - COUNT ( * ) + - + 60 col2
----
80
-43

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

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - 0 * CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - + 89 - - 43
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-2172
SELECT - COUNT( * ) * + 44 * + + SUM( ALL + 39 ) + 53 - - 84 - + SUM( + 23 ) col0, - 15 AS col0
----
-1602
-15

skipif mysql # not compatible
query II rowsort label-2172
SELECT - COUNT ( * ) * + 44 * + + SUM ( ALL + 39 ) + 53 - - 84 - + SUM ( + 23 ) col0, - 15 AS col0
----
-1602
-15

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

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

query I rowsort
SELECT - - COALESCE ( + 3, 54 + 35, + ( - - 55 ) ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT ALL - COUNT( * ) + + 95 - 48 AS col0
----
46

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL - COUNT ( * ) + + 95 - 48 AS col0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT - - COALESCE ( - 90, - CASE + COUNT( * ) WHEN + 21 THEN 95 ELSE - - 65 * + + 51 + + 41 * - + ( - - 7 ) + 3 END * - 27 ) + - + 56 AS col2
----
-146

skipif mysql # not compatible
query I rowsort label-2176
SELECT - - COALESCE ( - 90, - CASE + COUNT ( * ) WHEN + 21 THEN 95 ELSE - - 65 * + + 51 + + 41 * - + ( - - 7 ) + 3 END * - 27 ) + - + 56 AS col2
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT - COUNT( DISTINCT 31 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-2177
SELECT - COUNT ( DISTINCT 31 ) AS col0
----
-1

query II rowsort
SELECT 12 AS col2, - 54 AS col1
----
12
-54

query I rowsort
SELECT ALL + 12 + + + 3
----
15

query I rowsort
SELECT ALL - 58 * - + ( + - 31 ) AS col0
----
-1798

query I rowsort
SELECT ALL - 85 + - 54
----
-139

onlyif mysql # aggregate syntax: 
query II rowsort label-2182
SELECT - 94 AS col2, + COUNT( * ) * + 35
----
-94
35

skipif mysql # not compatible
query II rowsort label-2182
SELECT - 94 AS col2, + COUNT ( * ) * + 35
----
-94
35

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

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

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

query I rowsort
SELECT ALL + 13 + 33
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT ALL 50 AS col0, CASE - COUNT( * ) WHEN + 79 THEN + AVG ( ALL 78 ) * + + 48 ELSE 12 + 97 - 15 END
----
50
94

skipif mysql # not compatible
query II rowsort label-2186
SELECT ALL 50 AS col0, CASE - COUNT ( * ) WHEN + 79 THEN + AVG ( ALL 78 ) * + + 48 ELSE 12 + 97 - 15 END
----
50
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT - COALESCE ( - 59, + 52 ) DIV + + 83 + - 78
----
-78

skipif mysql # not compatible
query I rowsort label-2187
SELECT - COALESCE ( - 59, + 52 ) / + + 83 + - 78
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2188
SELECT ALL + 49 + - CAST( - CAST( - 19 AS SIGNED ) AS SIGNED ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL + 49 + - CAST ( - CAST ( - 19 AS INTEGER ) AS INTEGER ) AS col1
----
30

query I rowsort
SELECT DISTINCT - 95 * - 85
----
8075

onlyif mysql # aggregate syntax: 
query I rowsort label-2190
SELECT DISTINCT + 40 * - ( - - CASE + + 98 WHEN - - COUNT( * ) THEN - 0 + - + 76 END ) / 2 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT DISTINCT + 40 * - ( - - CASE + + 98 WHEN - - COUNT ( * ) THEN - 0 + - + 76 END ) / 2 AS col0
----
NULL

query I rowsort
SELECT - 0 - 5
----
-5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT ALL + ( + COALESCE ( - 8, - MIN( - 87 ), - SUM( 34 ) ) )
----
-8

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL + ( + COALESCE ( - 8, - MIN ( - 87 ), - SUM ( 34 ) ) )
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT + 82 DIV + 80
----
1

skipif mysql # not compatible
query I rowsort label-2194
SELECT + 82 / + 80
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2195
SELECT ALL + 51 DIV + - COUNT( 80 ) - + - 57 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + 51 / + - COUNT ( 80 ) - + - 57 AS col0
----
6

query I rowsort
SELECT ALL + ( - + 20 ) AS col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT COUNT( * ) - 22 AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-2197
SELECT COUNT ( * ) - 22 AS col2
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT ALL - 51 - + MAX( 51 ) + - 48
----
-150

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL - 51 - + MAX ( 51 ) + - 48
----
-150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT + 51 * + + 75 / COUNT( * ) + CAST( NULL AS SIGNED ) + COUNT( * ) * CASE - + MAX( - 53 ) WHEN + + 28 THEN + 65 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 51 * + + 75 / COUNT ( * ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) * CASE - + MAX ( - 53 ) WHEN + + 28 THEN + 65 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT + 27 * + 94 AS col2
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT - SUM( DISTINCT 6 ) * 78 + - 13 col0
----
-481

skipif mysql # not compatible
query I rowsort label-2202
SELECT - SUM ( DISTINCT 6 ) * 78 + - 13 col0
----
-481

query I rowsort
SELECT + 40 - ( 19 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT - CASE - - 97 WHEN - + ( - 28 ) THEN NULL ELSE SUM( + 90 ) + 18 + - 18 END * - 11 + + 76 - + MIN( + 46 ) - - 53 * + 98 AS col2
----
6214

skipif mysql # not compatible
query I rowsort label-2204
SELECT - CASE - - 97 WHEN - + ( - 28 ) THEN NULL ELSE SUM ( + 90 ) + 18 + - 18 END * - 11 + + 76 - + MIN ( + 46 ) - - 53 * + 98 AS col2
----
6214

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT - 93 / + + CASE - 40 WHEN 28 THEN - + COUNT( * ) * - + 6 END + - - SUM( ALL - ( + - 60 ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2206
SELECT - 93 / + + CASE - 40 WHEN 28 THEN - + COUNT ( * ) * - + 6 END + - - SUM ( ALL - ( + - 60 ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 63 * - + 3 AS col0
----
-189

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

skipif mysql # not compatible
query II rowsort label-2208
SELECT ALL - COUNT ( * ), - 85 AS col0
----
-1
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT 80 + + - COUNT( * ) + 99
----
178

skipif mysql # not compatible
query I rowsort label-2210
SELECT 80 + + - COUNT ( * ) + 99
----
178

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2212
SELECT - 88 * - 33 - - 86 + - - 40 AS col2, + COUNT( * )
----
3030
1

skipif mysql # not compatible
query II rowsort label-2212
SELECT - 88 * - 33 - - 86 + - - 40 AS col2, + COUNT ( * )
----
3030
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2213
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 3 * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 3 * + 7
----
NULL

query I rowsort
SELECT ALL - 22 + - 12 AS col1
----
-34

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

query II rowsort
SELECT 49 + + 67 * 15 col0, - 27 * - 66 + 29 col0
----
1054
1811

query II rowsort
SELECT - + 36, 12 AS col1
----
-36
12

query I rowsort
SELECT 80 * + 36
----
2880

query I rowsort
SELECT ALL - 56 + + ( - - 47 ) AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT DISTINCT - SUM( DISTINCT + - ( 25 ) ) * + 30 AS col1
----
750

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - SUM ( DISTINCT + - ( 25 ) ) * + 30 AS col1
----
750

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT DISTINCT 7 + - 83 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT 7 + - 83 / 23
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT DISTINCT + CASE - 44 WHEN - 15 THEN NULL WHEN + ( - + 73 ) * + ( + - 96 ) + + + 62 * COUNT( * ) THEN + - 92 * + + 59 * + - 76 * + + 59 END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + CASE - 44 WHEN - 15 THEN NULL WHEN + ( - + 73 ) * + ( + - 96 ) + + + 62 * COUNT ( * ) THEN + - 92 * + + 59 * + - 76 * + + 59 END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT DISTINCT - COUNT( * ) + + - 27
----
-28

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - COUNT ( * ) + + - 27
----
-28

query I rowsort
SELECT ALL + 81 + + - 14
----
67

query I rowsort
SELECT CASE - + 68 WHEN - 54 THEN 66 END + 0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT 83 + - + 69 + + - 64 + + + 60 * + CASE + 40 WHEN + ( - - 36 ) * 95 THEN NULL ELSE - 96 END * - 86 * + 67 * - 15 * - ( + + COUNT( * ) )
----
497836750

skipif mysql # not compatible
query I rowsort label-2226
SELECT 83 + - + 69 + + - 64 + + + 60 * + CASE + 40 WHEN + ( - - 36 ) * 95 THEN NULL ELSE - 96 END * - 86 * + 67 * - 15 * - ( + + COUNT ( * ) )
----
497836750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2227
SELECT 19 - + 11 AS col0, + 32 + - CAST( - + ( + - 47 ) AS SIGNED ) AS col0
----
8
-15

skipif mysql # not compatible
query II rowsort label-2227
SELECT 19 - + 11 AS col0, + 32 + - CAST ( - + ( + - 47 ) AS INTEGER ) AS col0
----
8
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT ALL + COUNT( * ) - 42 + 75 col1
----
34

skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL + COUNT ( * ) - 42 + 75 col1
----
34

query I rowsort
SELECT 99 * + + 97 AS col2
----
9603

query I rowsort
SELECT 8 + + 42
----
50

query I rowsort
SELECT 12 * - 48
----
-576

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2232
SELECT ALL + 91 * 37 AS col1, CASE - 48 WHEN 1 THEN NULL WHEN + + 86 THEN + ( ( + CAST( NULL AS SIGNED ) ) ) ELSE NULL END * + + 50 AS col0
----
3367
NULL

skipif mysql # not compatible
query II rowsort label-2232
SELECT ALL + 91 * 37 AS col1, CASE - 48 WHEN 1 THEN NULL WHEN + + 86 THEN + ( ( + CAST ( NULL AS INTEGER ) ) ) ELSE NULL END * + + 50 AS col0
----
3367
NULL

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

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

query I rowsort
SELECT ALL + 19 - - + 11
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT 92 * + 12 + 7 - + COUNT( * )
----
1110

skipif mysql # not compatible
query I rowsort label-2235
SELECT 92 * + 12 + 7 - + COUNT ( * )
----
1110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT + COUNT( * ) * COUNT( ALL - CAST( NULL AS SIGNED ) ) * 2 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT + COUNT ( * ) * COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * 2 AS col2
----
0

query I rowsort
SELECT 2 * + - 45 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-2238
SELECT SUM( ALL - 22 ) AS col0, 78 * + + 68 col1
----
-22
5304

skipif mysql # not compatible
query II rowsort label-2238
SELECT SUM ( ALL - 22 ) AS col0, 78 * + + 68 col1
----
-22
5304

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2240
SELECT DISTINCT - + CASE 93 WHEN AVG ( + 9 ) * + 92 DIV + ( - 67 ) * - COALESCE ( + 32, MAX( ALL + CAST( NULL AS SIGNED ) ) ) + COALESCE ( COUNT( * ), - - 68 * + - NULLIF ( 26, 68 ) ) * + MAX( ALL + 0 ) + + COALESCE ( + + NULLIF ( - ( + 67 ), + 64 + - 24 * 77 ), + 53 + COUNT( - 61 ) * 48 ) * + 72 THEN + 28 DIV - 38 WHEN 89 + COUNT( * ) * 68 THEN 42 * - 69 + + 73 ELSE - 74 * + 89 + 75 END AS col1
----
6511

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT - + CASE 93 WHEN AVG ( + 9 ) * + 92 / + ( - 67 ) * - COALESCE ( + 32, MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) + COALESCE ( COUNT ( * ), - - 68 * + - NULLIF ( 26, 68 ) ) * + MAX ( ALL + 0 ) + + COALESCE ( + + NULLIF ( - ( + 67 ), + 64 + - 24 * 77 ), + 53 + COUNT ( - 61 ) * 48 ) * + 72 THEN + 28 / - 38 WHEN 89 + COUNT ( * ) * 68 THEN 42 * - 69 + + 73 ELSE - 74 * + 89 + 75 END AS col1
----
6511

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT + - SUM( ALL - - NULLIF ( - 8, 45 ) ) AS col0, 9 - - - 73 AS col2
----
8
-64

skipif mysql # not compatible
query II rowsort label-2241
SELECT + - SUM ( ALL - - NULLIF ( - 8, 45 ) ) AS col0, 9 - - - 73 AS col2
----
8
-64

query I rowsort
SELECT - ( - - 33 ) * + 46 AS col0
----
-1518

query I rowsort
SELECT ALL - 33 + - + 69
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL 35 + + + COUNT( - 24 ) + 74 AS col1
----
110

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL 35 + + + COUNT ( - 24 ) + 74 AS col1
----
110

query II rowsort
SELECT + 13 + 13, 49 * 55 AS col1
----
26
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT 95 * 57 * COALESCE ( + - COUNT( * ), + 77 ) * - - 11 + + 11 col0
----
-59554

skipif mysql # not compatible
query I rowsort label-2246
SELECT 95 * 57 * COALESCE ( + - COUNT ( * ), + 77 ) * - - 11 + + 11 col0
----
-59554

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

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

query I rowsort
SELECT ALL + + COALESCE ( - 89, - ( 50 ) * - - 43 ) + - 5 AS col2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT ALL + 93 + - CASE 32 WHEN + - 90 / ( + 54 ) THEN - + 15 WHEN 33 THEN NULL END - + 51 * - COUNT( ALL - 66 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL + 93 + - CASE 32 WHEN + - 90 / ( + 54 ) THEN - + 15 WHEN 33 THEN NULL END - + 51 * - COUNT ( ALL - 66 )
----
NULL

query I rowsort
SELECT + 71 - - 62 * - 36
----
-2161

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2252
SELECT CASE - 88 WHEN - + 11 - COUNT( * ) + 54 THEN NULL WHEN + 68 * + 68 THEN - COUNT( * ) WHEN 18 THEN - SUM( - CAST( NULL AS SIGNED ) ) END - - CASE + 22 WHEN - 82 THEN + + COALESCE ( + 42, - 62, + 70 - 28 + - 92 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2252
SELECT CASE - 88 WHEN - + 11 - COUNT ( * ) + 54 THEN NULL WHEN + 68 * + 68 THEN - COUNT ( * ) WHEN 18 THEN - SUM ( - CAST ( NULL AS INTEGER ) ) END - - CASE + 22 WHEN - 82 THEN + + COALESCE ( + 42, - 62, + 70 - 28 + - 92 ) END AS col0
----
NULL

query I rowsort
SELECT - 54 * 21 AS col0
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL NULLIF ( + 13, - + 4 + - 55 * + 90 + - - 21 + + 82 ) * - 19 * - COUNT( * ) * - 6 AS col0
----
-1482

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL NULLIF ( + 13, - + 4 + - 55 * + 90 + - - 21 + + 82 ) * - 19 * - COUNT ( * ) * - 6 AS col0
----
-1482

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2255
SELECT ALL 37 + - ( + - ( - 43 ) ), - CAST( NULL AS SIGNED ) AS col0
----
-6
NULL

skipif mysql # not compatible
query II rowsort label-2255
SELECT ALL 37 + - ( + - ( - 43 ) ), - CAST ( NULL AS INTEGER ) AS col0
----
-6
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2256
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-2256
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + + 75
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ( - 78 ) + + 68 - - + 44 + + 61 * - + ( - 98 ) + - 97 DIV + - 94 AS col1
----
6013

skipif mysql # not compatible
query I rowsort label-2257
SELECT ( - 78 ) + + 68 - - + 44 + + 61 * - + ( - 98 ) + - 97 / + - 94 AS col1
----
6013

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT DISTINCT 42 + - - COUNT( DISTINCT - + 95 ) * + COUNT( * ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-2258
SELECT DISTINCT 42 + - - COUNT ( DISTINCT - + 95 ) * + COUNT ( * ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT NULLIF ( 86, - 59 ) + - 32 - 68 DIV - 36
----
55

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT NULLIF ( 86, - 59 ) + - 32 - 68 / - 36
----
55

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

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - 49 - + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2261
SELECT CAST( NULL AS DECIMAL ) * - 27 * - + 98 AS col2
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2262
SELECT ALL MAX( + 18 ) DIV + + CASE + 52 WHEN + CASE - - 7 WHEN + + 17 + + + 97 + - 26 * + 28 * + + 44 THEN NULL WHEN MIN( DISTINCT - - 69 ) THEN NULL WHEN - - COUNT( * ) THEN NULL ELSE 11 END + 35 THEN NULL ELSE + 37 END AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL MAX ( + 18 ) / + + CASE + 52 WHEN + CASE - - 7 WHEN + + 17 + + + 97 + - 26 * + 28 * + + 44 THEN NULL WHEN MIN ( DISTINCT - - 69 ) THEN NULL WHEN - - COUNT ( * ) THEN NULL ELSE 11 END + 35 THEN NULL ELSE + 37 END AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2263
SELECT DISTINCT 54 - + CAST( - ( - 9 ) AS SIGNED ) * + - 70 DIV - 2 + + COUNT( + - 27 ) AS col2, 25 * 42 * 69 * + - 28
----
-260
-2028600

skipif mysql # not compatible
query II rowsort label-2263
SELECT DISTINCT 54 - + CAST ( - ( - 9 ) AS INTEGER ) * + - 70 / - 2 + + COUNT ( + - 27 ) AS col2, 25 * 42 * 69 * + - 28
----
-260
-2028600

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT MIN( + 74 ) + - 46
----
28

skipif mysql # not compatible
query I rowsort label-2264
SELECT MIN ( + 74 ) + - 46
----
28

query I rowsort
SELECT DISTINCT 89 - - 98
----
187

query I rowsort
SELECT ALL 47 * - - 27
----
1269

onlyif mysql # aggregate syntax: 
query II rowsort label-2267
SELECT 93 * + CASE - - 46 WHEN + 87 THEN + - COUNT( * ) END col1, COUNT( * ) + 20 AS col1
----
NULL
21

skipif mysql # not compatible
query II rowsort label-2267
SELECT 93 * + CASE - - 46 WHEN + 87 THEN + - COUNT ( * ) END col1, COUNT ( * ) + 20 AS col1
----
NULL
21

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2271
SELECT ALL COUNT( * ) AS col2, 66 * COUNT( * ) * + 36 + 43 + + - 95 - 56 DIV COUNT( * ) AS col1
----
1
2268

skipif mysql # not compatible
query II rowsort label-2271
SELECT ALL COUNT ( * ) AS col2, 66 * COUNT ( * ) * + 36 + 43 + + - 95 - 56 / COUNT ( * ) AS col1
----
1
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT - NULLIF ( + 44, - 71 * + + 33 - COUNT( * ) * CASE 93 WHEN - COUNT( * ) * - 4 - - 68 + - 59 - + 78 * + - 8 THEN + COUNT( * ) / 6 + - MIN( + - 36 ) + AVG ( DISTINCT - + 40 ) END + - - 20 )
----
-44

skipif mysql # not compatible
query I rowsort label-2272
SELECT - NULLIF ( + 44, - 71 * + + 33 - COUNT ( * ) * CASE 93 WHEN - COUNT ( * ) * - 4 - - 68 + - 59 - + 78 * + - 8 THEN + COUNT ( * ) / 6 + - MIN ( + - 36 ) + AVG ( DISTINCT - + 40 ) END + - - 20 )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL MAX( ALL + - 6 ) * 18
----
-108

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL MAX ( ALL + - 6 ) * 18
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT + CAST( NULL AS SIGNED ) - 55 + - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT + CAST ( NULL AS INTEGER ) - 55 + - 96
----
NULL

query II rowsort
SELECT ALL 26 AS col0, 88
----
26
88

query I rowsort
SELECT + 87 - - 62
----
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2277
SELECT - MAX( ALL 37 ) * - 12 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2277
SELECT - MAX ( ALL 37 ) * - 12 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT - 84 DIV - - 56 + - - 90 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-2278
SELECT - 84 / - - 56 + - - 90 AS col2
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT CASE + 24 WHEN 10 THEN NULL WHEN + 24 + 78 * - CASE + CAST( NULL AS SIGNED ) WHEN COUNT( * ) * - 13 * - 18 * 18 THEN NULL ELSE + 28 * 79 + + + 42 * + CASE + - 79 WHEN - 84 * - 47 * - 65 - + - 50 THEN + 7 WHEN - COUNT( * ) THEN NULL WHEN + + 85 THEN NULL WHEN - 7 + + + 33 + 8 THEN 88 ELSE NULL END + 71 END THEN 14 ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT CASE + 24 WHEN 10 THEN NULL WHEN + 24 + 78 * - CASE + CAST ( NULL AS INTEGER ) WHEN COUNT ( * ) * - 13 * - 18 * 18 THEN NULL ELSE + 28 * 79 + + + 42 * + CASE + - 79 WHEN - 84 * - 47 * - 65 - + - 50 THEN + 7 WHEN - COUNT ( * ) THEN NULL WHEN + + 85 THEN NULL WHEN - 7 + + + 33 + 8 THEN 88 ELSE NULL END + 71 END THEN 14 ELSE NULL END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT - 66 DIV - 85 col2
----
0

skipif mysql # not compatible
query I rowsort label-2280
SELECT - 66 / - 85 col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL 93 * 8 + + 69 * - CAST( NULL AS SIGNED ) / - - 9 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL 93 * 8 + + 69 * - CAST ( NULL AS INTEGER ) / - - 9 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL - 21 * - CAST( NULL AS SIGNED ) + + - MAX( ALL + 76 ) * - COUNT( * ) * COUNT( ALL + + 16 ) + - 29 + + CAST( + - COUNT( 80 ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - 21 * - CAST ( NULL AS INTEGER ) + + - MAX ( ALL + 76 ) * - COUNT ( * ) * COUNT ( ALL + + 16 ) + - 29 + + CAST ( + - COUNT ( 80 ) AS INTEGER )
----
NULL

query I rowsort
SELECT 77 * + 46 + - + 85 - + 84
----
3373

query I rowsort
SELECT DISTINCT - + 26 * - 22
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT DISTINCT - + 47 * + 29 - + 32 + + NULLIF ( + - 77, + - 43 + + 47 ) + - - MAX( DISTINCT - + 49 ) AS col1
----
-1521

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT - + 47 * + 29 - + 32 + + NULLIF ( + - 77, + - 43 + + 47 ) + - - MAX ( DISTINCT - + 49 ) AS col1
----
-1521

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2286
SELECT + 41 + - + 56 / + - 29 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT + 41 + - + 56 / + - 29 + - CAST ( NULL AS REAL )
----
NULL

query II rowsort
SELECT + 15 AS col2, 73 * 6
----
15
438

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT ALL - SUM( + 30 ) * - 82
----
2460

skipif mysql # not compatible
query I rowsort label-2288
SELECT ALL - SUM ( + 30 ) * - 82
----
2460

query II rowsort
SELECT CASE - 13 WHEN 25 THEN 85 WHEN 79 + + + 55 THEN NULL ELSE NULL END, 17 AS col2
----
NULL
17

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT - CASE + 81 WHEN - 28 THEN + 87 WHEN CAST( NULL AS SIGNED ) THEN NULL END + - 38 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2291
SELECT - CASE + 81 WHEN - 28 THEN + 87 WHEN CAST ( NULL AS INTEGER ) THEN NULL END + - 38 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT - - 75 + - CASE + 26 WHEN + 90 * + 40 + COUNT( * ) + + 30 THEN 43 END + - 1 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2292
SELECT - - 75 + - CASE + 26 WHEN + 90 * + 40 + COUNT ( * ) + + 30 THEN 43 END + - 1 AS col0
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 78, + 3 + + 81 )
----
-78

query I rowsort
SELECT ALL + CASE + AVG ( ALL + ( - 64 ) ) WHEN 84 * 22 + + ( - - 71 ) THEN NULL WHEN - 67 THEN + 64 + - NULLIF ( - 66, + - 79 ) END
----
NULL

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

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

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

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

query I rowsort
SELECT - ( - + 10 ) * + + 25 + 97 - + 50 * - 97 * + ( + - 56 )
----
-271253

onlyif mysql # aggregate syntax: 
query II rowsort label-2298
SELECT - COUNT( * ) AS col1, - 4 * + 34 AS col2
----
-1
-136

skipif mysql # not compatible
query II rowsort label-2298
SELECT - COUNT ( * ) AS col1, - 4 * + 34 AS col2
----
-1
-136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2299
SELECT ALL - 36 * 4 DIV - COUNT( * ) AS col1
----
144

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - 36 * 4 / - COUNT ( * ) AS col1
----
144

query I rowsort
SELECT + 30 * + 55
----
1650

query I rowsort
SELECT + 47 + - + 19
----
28

query I rowsort
SELECT DISTINCT - 18 * 7 * + - 42 AS col2
----
5292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2303
SELECT + 23 + - COALESCE ( - - 3, - CAST( NULL AS SIGNED ) DIV - 16 + - + COUNT( * ) + - + CAST( NULL AS SIGNED ) ) + CASE 17 WHEN - COUNT( * ) + - 63 * + 31 THEN NULL ELSE 3 END + - 35 - 59 AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-2303
SELECT + 23 + - COALESCE ( - - 3, - CAST ( NULL AS INTEGER ) / - 16 + - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) ) + CASE 17 WHEN - COUNT ( * ) + - 63 * + 31 THEN NULL ELSE 3 END + - 35 - 59 AS col1
----
-71

query II rowsort
SELECT ALL 12 AS col2, 13
----
12
13

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT ALL 94 DIV - ( - 65 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL 94 / - ( - 65 ) AS col2
----
1

query I rowsort
SELECT + 0 + - + 68 AS col0
----
-68

query II rowsort
SELECT ALL 15 AS col0, 86 col0
----
15
86

query I rowsort
SELECT - 11 + 53
----
42

query II rowsort
SELECT - 70 * CASE + 44 WHEN + 6 + - 31 THEN - 94 WHEN - 61 + 13 - ( - ( + + 99 ) ) + - 41 * NULLIF ( 52, - 59 * + 52 ) * + 26 THEN NULL WHEN - ( + + 7 ) THEN NULL WHEN - + 12 * - 45 THEN NULL ELSE NULL END AS col1, 26
----
NULL
26

query I rowsort
SELECT - ( CASE - 90 WHEN - COALESCE ( - 91, ( + 59 ) ) THEN - NULLIF ( 36, + 48 ) END ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + MIN( DISTINCT + 41 ) - + 95
----
-54

skipif mysql # not compatible
query I rowsort label-2311
SELECT + MIN ( DISTINCT + 41 ) - + 95
----
-54

query II rowsort
SELECT DISTINCT 72 AS col2, + 5 AS col2
----
72
5

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

query I rowsort
SELECT + 69 + - - 69 * ( + 14 ) * + 95 col2
----
91839

query I rowsort
SELECT ALL 75 * + 43 AS col2
----
3225

query I rowsort
SELECT + 40 * + + 9 AS col1
----
360

query I rowsort
SELECT - NULLIF ( + 90, - 78 ) + - 25
----
-115

query I rowsort
SELECT DISTINCT 85 + 81 + - 32 AS col0
----
134

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2319
SELECT + 59 + - COALESCE ( + + 57, 49 - 95 + - 62 * - 21 + + 49 + + + ( - + 51 ) + 31 * ( - - MIN( DISTINCT - + 4 ) ) * - COUNT( * ) + + - NULLIF ( SUM( + + 24 ), + - 93 ) * + + 13, 9 - - 36 * + + 68 DIV - 81 + - - 56 DIV - + 78 ) * + ( 18 )
----
-967

skipif mysql # not compatible
query I rowsort label-2319
SELECT + 59 + - COALESCE ( + + 57, 49 - 95 + - 62 * - 21 + + 49 + + + ( - + 51 ) + 31 * ( - - MIN ( DISTINCT - + 4 ) ) * - COUNT ( * ) + + - NULLIF ( SUM ( + + 24 ), + - 93 ) * + + 13, 9 - - 36 * + + 68 / - 81 + - - 56 / - + 78 ) * + ( 18 )
----
-967

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT + CAST( + 44 AS SIGNED ) + + 91
----
135

skipif mysql # not compatible
query I rowsort label-2321
SELECT + CAST ( + 44 AS INTEGER ) + + 91
----
135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2322
SELECT ALL + - 4 DIV + 34 * + COUNT( * ) * CASE - AVG ( - - 5 ) WHEN + 1 * - - 27 THEN + 91 * - 82 ELSE + 68 END + - - COALESCE ( - NULLIF ( 44, + ( - 45 ) ), - COUNT( * ) )
----
-44

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL + - 4 / + 34 * + COUNT ( * ) * CASE - AVG ( - - 5 ) WHEN + 1 * - - 27 THEN + 91 * - 82 ELSE + 68 END + - - COALESCE ( - NULLIF ( 44, + ( - 45 ) ), - COUNT ( * ) )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2323
SELECT ALL MAX( + 86 ) DIV + + 6 + 72 + - - 64 * - 50 + + 21
----
-3093

skipif mysql # not compatible
query I rowsort label-2323
SELECT ALL MAX ( + 86 ) / + + 6 + 72 + - - 64 * - 50 + + 21
----
-3093

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT + 39 * COUNT( * ) + SUM( DISTINCT - - 83 ) col0
----
122

skipif mysql # not compatible
query I rowsort label-2324
SELECT + 39 * COUNT ( * ) + SUM ( DISTINCT - - 83 ) col0
----
122

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT + 11 col2, - ( 50 ) * - NULLIF ( + 40, - NULLIF ( + 85, - 42 * - 36 * - 99 + SUM( - 40 ) + 80 * + 52 / 9 ) ) + - CASE - 62 WHEN - - 83 + + + ( - + 66 ) THEN NULL WHEN + 22 THEN - + 54 END + 85 AS col2
----
11
NULL

skipif mysql # not compatible
query II rowsort label-2325
SELECT + 11 col2, - ( 50 ) * - NULLIF ( + 40, - NULLIF ( + 85, - 42 * - 36 * - 99 + SUM ( - 40 ) + 80 * + 52 / 9 ) ) + - CASE - 62 WHEN - - 83 + + + ( - + 66 ) THEN NULL WHEN + 22 THEN - + 54 END + 85 AS col2
----
11
NULL

query I rowsort
SELECT - - 90 + - 77 AS col1
----
13

query I rowsort
SELECT DISTINCT - + 48 * - 30 * - 84
----
-120960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2328
SELECT ALL - 45 DIV - - 97 * + 78 * 70 * - COUNT( * ) - + + 36 AS col2, + CAST( - COUNT( * ) AS SIGNED ) AS col0
----
-36
-1

skipif mysql # not compatible
query II rowsort label-2328
SELECT ALL - 45 / - - 97 * + 78 * 70 * - COUNT ( * ) - + + 36 AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) AS col0
----
-36
-1

query I rowsort
SELECT DISTINCT - 52 * + NULLIF ( - 39, - 59 + + 7 )
----
2028

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

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

query I rowsort
SELECT - 11 + - 21 AS col0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT DISTINCT - + 56 * - - 53 * COUNT( * ) AS col2
----
-2968

skipif mysql # not compatible
query I rowsort label-2332
SELECT DISTINCT - + 56 * - - 53 * COUNT ( * ) AS col2
----
-2968

query I rowsort
SELECT + 60 - + - 40 + + 54 - + 47 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-2334
SELECT - 66 DIV + COUNT( + + CAST( - - CAST( - 29 AS SIGNED ) AS DECIMAL ) )
----
-66

skipif mysql # not compatible
query I rowsort label-2334
SELECT - 66 / + COUNT ( + + CAST ( - - CAST ( - 29 AS INTEGER ) AS REAL ) )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2335
SELECT ALL + ( - - COUNT( * ) ) col1, 42 col0
----
1
42

skipif mysql # not compatible
query II rowsort label-2335
SELECT ALL + ( - - COUNT ( * ) ) col1, 42 col0
----
1
42

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

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

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

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

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

query I rowsort
SELECT 37 * - - ( - + 44 )
----
-1628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2340
SELECT DISTINCT - CAST( - + 65 AS SIGNED ) * + 25 * + - 41 * - + 8
----
533000

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT - CAST ( - + 65 AS INTEGER ) * + 25 * + - 41 * - + 8
----
533000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2341
SELECT CASE + - 62 WHEN - CASE 84 WHEN - 65 + - + AVG ( DISTINCT NULLIF ( - 35, 22 ) ) + - COUNT( * ) * - 48 * - - COUNT( - 75 ) THEN + 53 WHEN 97 * - 67 * - ( + NULLIF ( + 4, 20 * ( + - 11 ) * - 68 + - - CAST( - + 34 AS SIGNED ) ) ) THEN COUNT( * ) ELSE NULL END + + 99 THEN + COUNT( * ) END + - AVG ( + 93 + + CAST( - 84 AS SIGNED ) * + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT CASE + - 62 WHEN - CASE 84 WHEN - 65 + - + AVG ( DISTINCT NULLIF ( - 35, 22 ) ) + - COUNT ( * ) * - 48 * - - COUNT ( - 75 ) THEN + 53 WHEN 97 * - 67 * - ( + NULLIF ( + 4, 20 * ( + - 11 ) * - 68 + - - CAST ( - + 34 AS INTEGER ) ) ) THEN COUNT ( * ) ELSE NULL END + + 99 THEN + COUNT ( * ) END + - AVG ( + 93 + + CAST ( - 84 AS INTEGER ) * + 86 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL 34 * + CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL 52 + 59 col0
----
111

query I rowsort
SELECT ALL 28 + + 27 AS col2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT COALESCE ( COALESCE ( 43, - - 30, - COUNT( * ) ), - COUNT( * ) )
----
43

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT COALESCE ( COALESCE ( 43, - - 30, - COUNT ( * ) ), - COUNT ( * ) )
----
43

query I rowsort
SELECT DISTINCT + 88 + + - 97 AS col1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2347
SELECT ALL - 55 + COUNT( * ) + - 63 AS col1
----
-117

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL - 55 + COUNT ( * ) + - 63 AS col1
----
-117

query I rowsort
SELECT + 10 - 39
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-2349
SELECT + 24 + - 15, + 67 * + - SUM( 71 ) + + 53 AS col2
----
9
-4704

skipif mysql # not compatible
query II rowsort label-2349
SELECT + 24 + - 15, + 67 * + - SUM ( 71 ) + + 53 AS col2
----
9
-4704

query I rowsort
SELECT + ( 98 ) * + - 58
----
-5684

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT ALL + 63 DIV - ( 97 ) * + + 84 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL + 63 / - ( 97 ) * + + 84 AS col1
----
0

query I rowsort
SELECT + 7 * - 86
----
-602

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

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

query I rowsort
SELECT ALL 90 - + + 68
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2355
SELECT ALL 29 DIV + 23 AS col1, 94
----
1
94

skipif mysql # not compatible
query II rowsort label-2355
SELECT ALL 29 / + 23 AS col1, 94
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2356
SELECT ALL 3 * 19 + 26 + + COUNT( * ) * 35 AS col2
----
118

skipif mysql # not compatible
query I rowsort label-2356
SELECT ALL 3 * 19 + 26 + + COUNT ( * ) * 35 AS col2
----
118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2357
SELECT ALL + 22 * 88 DIV + COUNT( * ) AS col2
----
1936

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + 22 * 88 / + COUNT ( * ) AS col2
----
1936

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT - COALESCE ( - 8, COUNT( + 30 ) * - 50, 89 * + - MIN( ALL - 53 ) + 5 ) + - 76 + + + 59
----
-9

skipif mysql # not compatible
query I rowsort label-2359
SELECT - COALESCE ( - 8, COUNT ( + 30 ) * - 50, 89 * + - MIN ( ALL - 53 ) + 5 ) + - 76 + + + 59
----
-9

query I rowsort
SELECT ALL + 78 * + - 69
----
-5382

query I rowsort
SELECT + ( + + 69 ) + + 43
----
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT SUM( DISTINCT - 91 ) * - 14 * + ( - 26 ) + ( 97 ) * - 99 * - 25 AS col0
----
206951

skipif mysql # not compatible
query I rowsort label-2364
SELECT SUM ( DISTINCT - 91 ) * - 14 * + ( - 26 ) + ( 97 ) * - 99 * - 25 AS col0
----
206951

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2365
SELECT 36 * + CASE 72 WHEN + 39 / + 6 + 65 THEN - CAST( NULL AS SIGNED ) END - 38, + 2 AS col0
----
NULL
2

skipif mysql # not compatible
query II rowsort label-2365
SELECT 36 * + CASE 72 WHEN + 39 / + 6 + 65 THEN - CAST ( NULL AS INTEGER ) END - 38, + 2 AS col0
----
NULL
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT MIN( ALL - 74 ) * - 10 col2
----
740

skipif mysql # not compatible
query I rowsort label-2366
SELECT MIN ( ALL - 74 ) * - 10 col2
----
740

query I rowsort
SELECT 28 * - 26 AS col1
----
-728

query I rowsort
SELECT ALL - 73 * + 68 AS col1
----
-4964

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2369
SELECT ALL - 64 * - - SUM( ALL 51 ) AS col0, - 36 * - 75 * - COALESCE ( + 86, + 20 * + - MIN( - 9 ), - ( - + 59 ) / 50 ) / + + 83 - + 35 + 13 + - + COUNT( + 55 ) * CASE - - 60 WHEN - 71 * - 11 * - 67 THEN - 64 * + CAST( NULL AS SIGNED ) - - - COUNT( * ) * - 26 * - 33 + 85 END / + 48 + 97 * 67 / 32 col2
----
-3264
NULL

skipif mysql # not compatible
query II rowsort label-2369
SELECT ALL - 64 * - - SUM ( ALL 51 ) AS col0, - 36 * - 75 * - COALESCE ( + 86, + 20 * + - MIN ( - 9 ), - ( - + 59 ) / 50 ) / + + 83 - + 35 + 13 + - + COUNT ( + 55 ) * CASE - - 60 WHEN - 71 * - 11 * - 67 THEN - 64 * + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) * - 26 * - 33 + 85 END / + 48 + 97 * 67 / 32 col2
----
-3264
NULL

query I rowsort
SELECT 18 * 32
----
576

query I rowsort
SELECT DISTINCT + NULLIF ( 8, + 76 * 38 ) + + - ( - 12 )
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-2372
SELECT ALL SUM( ALL + ( + 16 ) ) * ( - - ( - 76 ) ) + + - ( - 97 ), ( 70 ) AS col2
----
-1119
70

skipif mysql # not compatible
query II rowsort label-2372
SELECT ALL SUM ( ALL + ( + 16 ) ) * ( - - ( - 76 ) ) + + - ( - 97 ), ( 70 ) AS col2
----
-1119
70

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

skipif mysql # not compatible
query II rowsort label-2373
SELECT - COUNT ( * ), - 22 AS col2
----
-1
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL - COALESCE ( + COUNT( * ), - COUNT( * ), + COUNT( * ) ) * - SUM( DISTINCT - - CAST( + 46 AS SIGNED ) )
----
46

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - COALESCE ( + COUNT ( * ), - COUNT ( * ), + COUNT ( * ) ) * - SUM ( DISTINCT - - CAST ( + 46 AS INTEGER ) )
----
46

query I rowsort
SELECT 18 + + - 46 * 33 * - + 28 * - 97 * 75
----
-309216582

query I rowsort
SELECT 56 + - 30 AS col1
----
26

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2377
SELECT 27 + + ( + CAST( NULL AS SIGNED ) ) AS col1, CAST( NULL AS DECIMAL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2377
SELECT 27 + + ( + CAST ( NULL AS INTEGER ) ) AS col1, CAST ( NULL AS REAL )
----
NULL
NULL

query I rowsort
SELECT ALL + NULLIF ( + - 79, - + 50 ) + + 40 - + 43 * + 2
----
-125

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2379
SELECT ALL 22 * COUNT( * ) DIV + 34 * + 63
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL 22 * COUNT ( * ) / + 34 * + 63
----
0

query I rowsort
SELECT ALL + 59 + 86 + - + ( - 54 )
----
199

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT MIN( DISTINCT + CAST( - 35 AS SIGNED ) ) + 78 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-2382
SELECT MIN ( DISTINCT + CAST ( - 35 AS INTEGER ) ) + 78 AS col2
----
43

query I rowsort
SELECT ALL - - 81 + + 73 AS col2
----
154

query II rowsort
SELECT - - 15 AS col2, - 68 * - 19 col2
----
15
1292

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

query I rowsort
SELECT ALL - - 6 * - NULLIF ( 74, - - 51 ) AS col0
----
-444

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT ALL MIN( ALL - 31 ) - + 12 + + 97 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL MIN ( ALL - 31 ) - + 12 + + 97 AS col1
----
54

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

query I rowsort
SELECT ALL + + 14 * - + ( 10 )
----
-140

query I rowsort
SELECT + 57 + 66 * + + 46 + 91
----
3184

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2391
SELECT ALL CAST( NULL AS DECIMAL ) col2, COUNT( * ) * - 25 + 23 AS col2
----
NULL
-2

skipif mysql # not compatible
query II rowsort label-2391
SELECT ALL CAST ( NULL AS REAL ) col2, COUNT ( * ) * - 25 + 23 AS col2
----
NULL
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT DISTINCT + - 64 * + + CAST( 67 AS SIGNED ) * + + 58 + + 11 AS col1
----
-248693

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + - 64 * + + CAST ( 67 AS INTEGER ) * + + 58 + + 11 AS col1
----
-248693

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2393
SELECT ALL + 19 DIV NULLIF ( SUM( + 37 ), - SUM( DISTINCT + 63 ) * - 59 + - + 31 + - COUNT( ALL + 0 ) ) * 66 col0, + 89
----
0
89

skipif mysql # not compatible
query II rowsort label-2393
SELECT ALL + 19 / NULLIF ( SUM ( + 37 ), - SUM ( DISTINCT + 63 ) * - 59 + - + 31 + - COUNT ( ALL + 0 ) ) * 66 col0, + 89
----
0
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2394
SELECT + CASE - 85 WHEN + COUNT( 45 ) THEN NULL WHEN + 58 THEN - + 19 * + 69 * + 95 END AS col0, - 13 * + - 98
----
NULL
1274

skipif mysql # not compatible
query II rowsort label-2394
SELECT + CASE - 85 WHEN + COUNT ( 45 ) THEN NULL WHEN + 58 THEN - + 19 * + 69 * + 95 END AS col0, - 13 * + - 98
----
NULL
1274

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2395
SELECT + 80 AS col0, CAST( NULL AS DECIMAL ) AS col0
----
80
NULL

skipif mysql # not compatible
query II rowsort label-2395
SELECT + 80 AS col0, CAST ( NULL AS REAL ) AS col0
----
80
NULL

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

skipif mysql # not compatible
query I rowsort label-2396
SELECT + COUNT ( * ) + + 39 AS col1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2397
SELECT - 90 * + CAST( - - 44 AS SIGNED ) + - + 97 AS col1
----
-4057

skipif mysql # not compatible
query I rowsort label-2397
SELECT - 90 * + CAST ( - - 44 AS INTEGER ) + - + 97 AS col1
----
-4057

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - 9 * 68 + + 20 * + SUM( + - 17 )
----
-952

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - 9 * 68 + + 20 * + SUM ( + - 17 )
----
-952

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT ALL 89 * + 19 * - NULLIF ( - NULLIF ( - MIN( ALL 75 ), - 62 ), - 43 + - + 84 ) AS col0
----
-126825

skipif mysql # not compatible
query I rowsort label-2399
SELECT ALL 89 * + 19 * - NULLIF ( - NULLIF ( - MIN ( ALL 75 ), - 62 ), - 43 + - + 84 ) AS col0
----
-126825

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

query I rowsort
SELECT + 47 - + 30 * + - 70
----
2147

onlyif mysql # aggregate syntax: 
query I rowsort label-2402
SELECT + CASE 55 WHEN + 13 THEN - - COUNT( * ) WHEN + - 96 THEN 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2402
SELECT + CASE 55 WHEN + 13 THEN - - COUNT ( * ) WHEN + - 96 THEN 29 ELSE NULL END
----
NULL

query I rowsort
SELECT + 64 * 11
----
704

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT + ( 62 ) * - - 22 + + 8 * + - SUM( + 28 ) col2
----
1140

skipif mysql # not compatible
query I rowsort label-2404
SELECT + ( 62 ) * - - 22 + + 8 * + - SUM ( + 28 ) col2
----
1140

query I rowsort
SELECT ALL 52 + - 12 * + - 21 AS col1
----
304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT 81 + CAST( NULL AS SIGNED ) + + COUNT( * ) + + + COUNT( * ) * + MAX( DISTINCT + 19 ) + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT 81 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) + + + COUNT ( * ) * + MAX ( DISTINCT + 19 ) + COUNT ( * ) AS col0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2408
SELECT ALL 16 + - + CAST( 31 AS SIGNED ) - - 72 AS col2
----
57

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL 16 + - + CAST ( 31 AS INTEGER ) - - 72 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-2409
SELECT + 98 DIV - 96 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2409
SELECT + 98 / - 96 AS col1
----
-1

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

query I rowsort
SELECT ALL + 63 * + 53 AS col1
----
3339

query I rowsort
SELECT DISTINCT COALESCE ( 95, + + 51 * - + 57 * + 22 ) col2
----
95

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

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

query II rowsort
SELECT - - 67 * - 50, 61 AS col0
----
-3350
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2415
SELECT DISTINCT COUNT( * ) * - 46 DIV 14
----
-3

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT COUNT ( * ) * - 46 / 14
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT - - ( - 92 ) DIV 35 + - 44 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - - ( - 92 ) / 35 + - 44 AS col1
----
-46

query I rowsort
SELECT + 8 + - 24
----
-16

query I rowsort
SELECT - 82 * + 96 AS col1
----
-7872

query I rowsort
SELECT - 22 + - 57 * - 34 * - 32 + 58 AS col1
----
-61980

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2420
SELECT - 35 + - COUNT( * ) DIV - + CAST( + 44 AS SIGNED ) + + + MIN( DISTINCT - 60 ) AS col1
----
-95

skipif mysql # not compatible
query I rowsort label-2420
SELECT - 35 + - COUNT ( * ) / - + CAST ( + 44 AS INTEGER ) + + + MIN ( DISTINCT - 60 ) AS col1
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2421
SELECT + MIN( CAST( - 27 AS SIGNED ) ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-2421
SELECT + MIN ( CAST ( - 27 AS INTEGER ) ) AS col2
----
-27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT DISTINCT NULLIF ( - ( - CAST( NULL AS SIGNED ) ), + 50 ) / - 28 + - - CAST( + - AVG ( + + 8 ) AS SIGNED ) + + 5 - - 90 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT NULLIF ( - ( - CAST ( NULL AS INTEGER ) ), + 50 ) / - 28 + - - CAST ( + - AVG ( + + 8 ) AS INTEGER ) + + 5 - - 90 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2425
SELECT - 86 DIV + + 40 + 81
----
79

skipif mysql # not compatible
query I rowsort label-2425
SELECT - 86 / + + 40 + 81
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2426
SELECT ALL + CAST( - CASE 0 WHEN - 82 THEN + + 97 * - 92 + 65 * 83 END AS SIGNED ) / + ( - 82 ) + + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT ALL + CAST ( - CASE 0 WHEN - 82 THEN + + 97 * - 92 + 65 * 83 END AS INTEGER ) / + ( - 82 ) + + 90 AS col0
----
NULL

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

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

query I rowsort
SELECT + 59 + + + 0 * + 24
----
59

query I rowsort
SELECT - 71 + + 75
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT ( - COALESCE ( + 83, + + 39, + COUNT( * ), - + 70 ) ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-2430
SELECT ( - COALESCE ( + 83, + + 39, + COUNT ( * ), - + 70 ) ) AS col0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT ALL + COUNT( + + 15 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL + COUNT ( + + 15 ) AS col0
----
1

query I rowsort
SELECT ALL - 82 * + 50 + + 96 AS col0
----
-4004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2433
SELECT - 23 * + - 11 + - CASE + 15 WHEN - CAST( NULL AS SIGNED ) THEN NULL WHEN 88 THEN - NULLIF ( - 7, - 99 ) + - 6 + + COUNT( * ) / + 42 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2433
SELECT - 23 * + - 11 + - CASE + 15 WHEN - CAST ( NULL AS INTEGER ) THEN NULL WHEN 88 THEN - NULLIF ( - 7, - 99 ) + - 6 + + COUNT ( * ) / + 42 ELSE NULL END
----
NULL

query I rowsort
SELECT - 24 + + 80 AS col1
----
56

query I rowsort
SELECT + 42 * + + 46 - + - ( + 17 ) AS col2
----
1949

onlyif mysql # aggregate syntax: 
query I rowsort label-2436
SELECT + MAX( + + 26 ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-2436
SELECT + MAX ( + + 26 ) AS col2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2437
SELECT ALL 60 * COUNT( * ) + - + COUNT( * ) + 37 + + - COUNT( * ) * - + CAST( - 40 AS SIGNED ) AS col2
----
56

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL 60 * COUNT ( * ) + - + COUNT ( * ) + 37 + + - COUNT ( * ) * - + CAST ( - 40 AS INTEGER ) AS col2
----
56

query I rowsort
SELECT + 17 * + 29 AS col2
----
493

query I rowsort
SELECT ALL 5 * 15 AS col1
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2440
SELECT COUNT( * ) * - - 39 + - COUNT( * ) AS col2, + 42
----
38
42

skipif mysql # not compatible
query II rowsort label-2440
SELECT COUNT ( * ) * - - 39 + - COUNT ( * ) AS col2, + 42
----
38
42

query I rowsort
SELECT NULLIF ( + + 50, + + 82 ) AS col1
----
50

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

query I rowsort
SELECT - 57 * - 75 col0
----
4275

query I rowsort
SELECT ALL 69 * - 10
----
-690

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

skipif mysql # not compatible
query I rowsort label-2445
SELECT + + CAST ( 63 AS INTEGER ) + 88 col0
----
151

query I rowsort
SELECT DISTINCT + 60 col0
----
60

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT + COALESCE ( 3, - COUNT( * ) * + 80 - - - 11 ) + + COALESCE ( - - ( + 60 ), - 68 * 51 + + 21 )
----
63

skipif mysql # not compatible
query I rowsort label-2448
SELECT + COALESCE ( 3, - COUNT ( * ) * + 80 - - - 11 ) + + COALESCE ( - - ( + 60 ), - 68 * 51 + + 21 )
----
63

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

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

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

query I rowsort
SELECT ALL + - 14 * - ( - 41 ) AS col2
----
-574

onlyif mysql # DIV for integer division: 
query I rowsort label-2452
SELECT DISTINCT - 24 DIV - + 47 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - 24 / - + 47 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2453
SELECT + 97 DIV 91
----
1

skipif mysql # not compatible
query I rowsort label-2453
SELECT + 97 / 91
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2454
SELECT - COUNT( ALL + 44 ) DIV + 53 * + NULLIF ( 24, - 89 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT - COUNT ( ALL + 44 ) / + 53 * + NULLIF ( 24, - 89 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2455
SELECT ALL CAST( NULL AS SIGNED ) * - + 49 - + MAX( + 45 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2455
SELECT ALL CAST ( NULL AS INTEGER ) * - + 49 - + MAX ( + 45 ) AS col2
----
NULL

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

query I rowsort
SELECT - - ( - 33 ) + 84 + + 32
----
83

query II rowsort
SELECT 33, + 44 AS col0
----
33
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2459
SELECT - COALESCE ( 74, - 98 * + - 9 * + - 49, - 50 * + + 24 * + 39 DIV + COUNT( * ) + - + MIN( + 76 ) )
----
-74

skipif mysql # not compatible
query I rowsort label-2459
SELECT - COALESCE ( 74, - 98 * + - 9 * + - 49, - 50 * + + 24 * + 39 / + COUNT ( * ) + - + MIN ( + 76 ) )
----
-74

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT ( - 80 ) DIV + 5 AS col0
----
-16

skipif mysql # not compatible
query I rowsort label-2461
SELECT ( - 80 ) / + 5 AS col0
----
-16

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

skipif mysql # not compatible
query I rowsort label-2462
SELECT 57 + SUM ( DISTINCT - - ( - + CAST ( NULL AS INTEGER ) ) )
----
NULL

query I rowsort
SELECT 4 + - 50
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT DISTINCT - 32 + - COUNT( * ) * - 5 + 65
----
38

skipif mysql # not compatible
query I rowsort label-2465
SELECT DISTINCT - 32 + - COUNT ( * ) * - 5 + 65
----
38

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

skipif mysql # not compatible
query II rowsort label-2466
SELECT + 86, - 86 * + + COUNT ( * ) AS col2
----
86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT ALL - COUNT( * ) + + 14
----
13

skipif mysql # not compatible
query I rowsort label-2467
SELECT ALL - COUNT ( * ) + + 14
----
13

query I rowsort
SELECT DISTINCT + 60 + + 59 + - - ( - 91 ) + 93 + 57 + + 98 AS col1
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT 21 * COUNT( 42 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-2469
SELECT 21 * COUNT ( 42 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT MAX( DISTINCT 59 ) + + 70
----
129

skipif mysql # not compatible
query I rowsort label-2470
SELECT MAX ( DISTINCT 59 ) + + 70
----
129

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2472
SELECT 14 AS col0, COALESCE ( - 74, 99 * - 72, + COUNT( ALL + + 62 ) )
----
14
-74

skipif mysql # not compatible
query II rowsort label-2472
SELECT 14 AS col0, COALESCE ( - 74, 99 * - 72, + COUNT ( ALL + + 62 ) )
----
14
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT ALL - CASE + - 86 WHEN - 66 THEN NULL WHEN - - NULLIF ( - 16, 90 ) / - 92 + + 76 THEN COUNT( * ) ELSE - + 75 END AS col1
----
75

skipif mysql # not compatible
query I rowsort label-2473
SELECT ALL - CASE + - 86 WHEN - 66 THEN NULL WHEN - - NULLIF ( - 16, 90 ) / - 92 + + 76 THEN COUNT ( * ) ELSE - + 75 END AS col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL + 15 + + CAST( NULL AS SIGNED ) * - - 63 * - + 5 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + 15 + + CAST ( NULL AS INTEGER ) * - - 63 * - + 5 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 24 * + 11 AS col2
----
-264

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

skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - NULLIF ( 88, + 25 * - COUNT ( * ) )
----
-88

query I rowsort
SELECT ALL - 15 - - - 49 - 30
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL - 43 * CASE MAX( + + 49 ) WHEN - + COALESCE ( + + 72, - COUNT( * ), + 75 ) / 26 + + ( - 88 ) THEN 76 ELSE - - 0 * 30 END * - 94 * 51 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL - 43 * CASE MAX ( + + 49 ) WHEN - + COALESCE ( + + 72, - COUNT ( * ), + 75 ) / 26 + + ( - 88 ) THEN 76 ELSE - - 0 * 30 END * - 94 * 51 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT 70 * 91 * + - COALESCE ( 79, MIN( 44 ), + 4 ) + + ( + 43 )
----
-503187

skipif mysql # not compatible
query I rowsort label-2479
SELECT 70 * 91 * + - COALESCE ( 79, MIN ( 44 ), + 4 ) + + ( + 43 )
----
-503187

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2480
SELECT DISTINCT 23 - CAST( - 85 AS SIGNED ) DIV + - 52
----
22

skipif mysql # not compatible
query I rowsort label-2480
SELECT DISTINCT 23 - CAST ( - 85 AS INTEGER ) / + - 52
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2481
SELECT + 63, + COUNT( * ) * - ( + + 19 ) * - + COUNT( * ) * 77 col2
----
63
1463

skipif mysql # not compatible
query II rowsort label-2481
SELECT + 63, + COUNT ( * ) * - ( + + 19 ) * - + COUNT ( * ) * 77 col2
----
63
1463

query I rowsort
SELECT 79 * + 62 - - 74 * + + 19 * + 2 col1
----
7710

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT 46 - MIN( + 43 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-2483
SELECT 46 - MIN ( + 43 ) AS col1
----
3

query II rowsort
SELECT 30 AS col0, - 0 AS col2
----
30
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT + MIN( ALL + 91 ) * - NULLIF ( - 95, - COALESCE ( 2, 24, - 91 / 75, + 49 ) ) + + 15 + ( + 29 ) + - - 78
----
8767

skipif mysql # not compatible
query I rowsort label-2485
SELECT + MIN ( ALL + 91 ) * - NULLIF ( - 95, - COALESCE ( 2, 24, - 91 / 75, + 49 ) ) + + 15 + ( + 29 ) + - - 78
----
8767

onlyif mysql # DIV for integer division: 
query I rowsort label-2486
SELECT ALL + 47 DIV + 16
----
2

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL + 47 / + 16
----
2

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2488
SELECT ALL - 44 AS col1, COUNT( * ) + + 74
----
-44
75

skipif mysql # not compatible
query II rowsort label-2488
SELECT ALL - 44 AS col1, COUNT ( * ) + + 74
----
-44
75

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

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

skipif mysql # not compatible
query I rowsort label-2490
SELECT DISTINCT + 97 * COUNT ( * ) AS col2
----
97

query I rowsort
SELECT 93 - 38
----
55

query I rowsort
SELECT - 68 * 89 AS col0
----
-6052

query III rowsort
SELECT - 14 AS col0, 85, 40 * 46 AS col1
----
-14
85
1840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2494
SELECT - + 16 AS col2, + 85 + + CAST( NULL AS SIGNED ) + + MAX( ALL - + 60 )
----
-16
NULL

skipif mysql # not compatible
query II rowsort label-2494
SELECT - + 16 AS col2, + 85 + + CAST ( NULL AS INTEGER ) + + MAX ( ALL - + 60 )
----
-16
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2495
SELECT DISTINCT COUNT( * ) + 77, 1 + + + 66 + ( + - 73 ) * - + 3 AS col2
----
78
286

skipif mysql # not compatible
query II rowsort label-2495
SELECT DISTINCT COUNT ( * ) + 77, 1 + + + 66 + ( + - 73 ) * - + 3 AS col2
----
78
286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2496
SELECT - 76 AS col0, CAST( + COALESCE ( - CASE + - 10 WHEN + COALESCE ( + 37, - 73 * - ( 34 ) ) - 20 THEN NULL WHEN - COALESCE ( - + 26, - COALESCE ( + 11, COUNT( * ) ) + - - 89 ) * - CAST( NULL AS DECIMAL ) + + + 22 THEN NULL WHEN + - 91 * 42 * + - 72 + 99 THEN 20 END, CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
-76
NULL

skipif mysql # not compatible
query II rowsort label-2496
SELECT - 76 AS col0, CAST ( + COALESCE ( - CASE + - 10 WHEN + COALESCE ( + 37, - 73 * - ( 34 ) ) - 20 THEN NULL WHEN - COALESCE ( - + 26, - COALESCE ( + 11, COUNT ( * ) ) + - - 89 ) * - CAST ( NULL AS REAL ) + + + 22 THEN NULL WHEN + - 91 * 42 * + - 72 + 99 THEN 20 END, CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
-76
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT 93 * - 22 * SUM( + 59 )
----
-120714

skipif mysql # not compatible
query I rowsort label-2497
SELECT 93 * - 22 * SUM ( + 59 )
----
-120714

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

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

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

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

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL 70 + COUNT ( * ) AS col1
----
71

query I rowsort
SELECT 72 * CASE WHEN NOT NULL > ( NULL ) THEN NULL ELSE - 53 END AS col0
----
-3816

query I rowsort
SELECT ALL 9 + + 65
----
74

query II rowsort
SELECT DISTINCT 27 AS col2, 15 AS col1
----
27
15

query I rowsort
SELECT ALL 66 + 61 AS col2
----
127

query I rowsort
SELECT 2 + + - ( 57 )
----
-55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2506
SELECT COUNT( * ) * + 21 DIV - + NULLIF ( + 81, - 36 )
----
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT COUNT ( * ) * + 21 / - + NULLIF ( + 81, - 36 )
----
0

query I rowsort
SELECT ( - + 4 ) + - 31 * + 92
----
-2856

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT 56 DIV 48 * + + 89 * 58
----
5162

skipif mysql # not compatible
query I rowsort label-2509
SELECT 56 / 48 * + + 89 * 58
----
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-2510
SELECT ALL - 78 * - 35 + + - COUNT( * ) + - + 2 AS col1
----
2727

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL - 78 * - 35 + + - COUNT ( * ) + - + 2 AS col1
----
2727

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT ALL - 83 DIV - 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL - 83 / - 92 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT - COALESCE ( + + 58, - 51 ) * + 79 + - 98 * - - 12 + - COUNT( * ) AS col1
----
-5759

skipif mysql # not compatible
query I rowsort label-2513
SELECT - COALESCE ( + + 58, - 51 ) * + 79 + - 98 * - - 12 + - COUNT ( * ) AS col1
----
-5759

query I rowsort
SELECT 53 * + 50 AS col0
----
2650

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2515
SELECT MIN( + + 45 ) DIV 11 - - - 50 + - 59 - - 53
----
-52

skipif mysql # not compatible
query I rowsort label-2515
SELECT MIN ( + + 45 ) / 11 - - - 50 + - 59 - - 53
----
-52

query II rowsort
SELECT 27 * - 62, - 78 AS col1
----
-1674
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT SUM( 99 ) AS col2
----
99

skipif mysql # not compatible
query I rowsort label-2517
SELECT SUM ( 99 ) AS col2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT 84 * + 90 * + - 64 + 57 + COUNT( * )
----
-483782

skipif mysql # not compatible
query I rowsort label-2518
SELECT 84 * + 90 * + - 64 + 57 + COUNT ( * )
----
-483782

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

query I rowsort
SELECT 52 * + 31
----
1612

query II rowsort
SELECT 55 + - 23, + 50 AS col2
----
32
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL - NULLIF ( + CAST( + 11 AS SIGNED ), 23 ) col2
----
-11

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - NULLIF ( + CAST ( + 11 AS INTEGER ), 23 ) col2
----
-11

query I rowsort
SELECT DISTINCT - 94 * + + ( - - 82 ) col2
----
-7708

query I rowsort
SELECT 15 * + + 87
----
1305

query I rowsort
SELECT + + 27 * - 26 + + - 41 + - 25
----
-768

query I rowsort
SELECT - 89 * + 8 * + - NULLIF ( - - 51, + 9 * 70 ) + - 31 AS col0
----
36281

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2527
SELECT ALL - CAST( NULL AS DECIMAL ) + + MIN( ALL - 89 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT ALL - CAST ( NULL AS REAL ) + + MIN ( ALL - 89 ) col2
----
NULL

query I rowsort
SELECT 26 + + 23
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT - 88 + + + 77 * - - SUM( ALL + - 44 )
----
-3476

skipif mysql # not compatible
query I rowsort label-2530
SELECT - 88 + + + 77 * - - SUM ( ALL + - 44 )
----
-3476

query II rowsort
SELECT DISTINCT + 41 + - 27 AS col0, 55 * ( 97 )
----
14
5335

query I rowsort
SELECT ALL 41 + 63 * 34 * 15 * + 5
----
160691

query I rowsort
SELECT - - 78 + - 20
----
58

query I rowsort
SELECT DISTINCT - 92 * - + ( + + 74 )
----
6808

query I rowsort
SELECT - - 64 AS col1
----
64

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

skipif mysql # not compatible
query I rowsort label-2536
SELECT - MAX ( - + 13 )
----
13

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT DISTINCT 47 - - - COUNT( * ) + - 35
----
11

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT 47 - - - COUNT ( * ) + - 35
----
11

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2541
SELECT - 82 * + ( - 75 ), COUNT( ALL + 37 ) AS col1
----
6150
1

skipif mysql # not compatible
query II rowsort label-2541
SELECT - 82 * + ( - 75 ), COUNT ( ALL + 37 ) AS col1
----
6150
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT + MIN( - 74 ) * COUNT( * ) + - 47
----
-121

skipif mysql # not compatible
query I rowsort label-2542
SELECT + MIN ( - 74 ) * COUNT ( * ) + - 47
----
-121

query I rowsort
SELECT + COALESCE ( + - 79, - + 63 )
----
-79

query II rowsort
SELECT ALL + 1 AS col1, 97 AS col2
----
1
97

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

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

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

query I rowsort
SELECT DISTINCT 52 * + 91
----
4732

query I rowsort
SELECT ALL 10 * + 92
----
920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2549
SELECT ALL ( CAST( - 54 AS SIGNED ) ) * - 98 + - + 36 * 35 AS col2
----
4032

skipif mysql # not compatible
query I rowsort label-2549
SELECT ALL ( CAST ( - 54 AS INTEGER ) ) * - 98 + - + 36 * 35 AS col2
----
4032

query II rowsort
SELECT DISTINCT + - 57 col2, - 70
----
-57
-70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2552
SELECT - 6 DIV - - 57 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT - 6 / - - 57 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT ALL + NULLIF ( + + 60, - 70 / - COUNT( * ) + + 71 ) * + 63 - 98 - - 87 + + MAX( 83 ) + 92 AS col2
----
3944

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL + NULLIF ( + + 60, - 70 / - COUNT ( * ) + + 71 ) * + 63 - 98 - - 87 + + MAX ( 83 ) + 92 AS col2
----
3944

query I rowsort
SELECT 89 * 2 - NULLIF ( - 86, - - 5 ) AS col0
----
264

query II rowsort
SELECT - ( - 71 ) + 99 AS col2, - 17 * + - 89
----
170
1513

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2556
SELECT DISTINCT + MIN( - 15 ) * + 23 + 55 AS col0, CAST( NULL AS DECIMAL ) col1
----
-290
NULL

skipif mysql # not compatible
query II rowsort label-2556
SELECT DISTINCT + MIN ( - 15 ) * + 23 + 55 AS col0, CAST ( NULL AS REAL ) col1
----
-290
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT ALL 61 * - CAST( NULL AS SIGNED ) + 20 / - 80 * + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL 61 * - CAST ( NULL AS INTEGER ) + 20 / - 80 * + 66
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL - 43 * - - CAST( + - 79 AS SIGNED ) + - 13
----
3384

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - 43 * - - CAST ( + - 79 AS INTEGER ) + - 13
----
3384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2559
SELECT - + ( - + MAX( ALL - 22 ) ) * CAST( 65 AS SIGNED )
----
-1430

skipif mysql # not compatible
query I rowsort label-2559
SELECT - + ( - + MAX ( ALL - 22 ) ) * CAST ( 65 AS INTEGER )
----
-1430

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

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - 1 * + COUNT ( * ) * - 33 * 96
----
3168

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT + ( + 50 ) * + + 23 * + 51 + 88 + + - COUNT( * )
----
58737

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + ( + 50 ) * + + 23 * + 51 + 88 + + - COUNT ( * )
----
58737

query I rowsort
SELECT - + 74 - + 96
----
-170

query I rowsort
SELECT + 61 - + + 81 col1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT - + SUM( DISTINCT 12 ) AS col0
----
-12

skipif mysql # not compatible
query I rowsort label-2564
SELECT - + SUM ( DISTINCT 12 ) AS col0
----
-12

query I rowsort
SELECT DISTINCT + + 85 - - 93
----
178

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - NULLIF ( + 81, - COUNT( * ) ) * ( 96 )
----
-7776

skipif mysql # not compatible
query I rowsort label-2567
SELECT - NULLIF ( + 81, - COUNT ( * ) ) * ( 96 )
----
-7776

query II rowsort
SELECT - 17, - 68 AS col0
----
-17
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2569
SELECT - 45 AS col2, ( + CAST( + 69 AS SIGNED ) )
----
-45
69

skipif mysql # not compatible
query II rowsort label-2569
SELECT - 45 AS col2, ( + CAST ( + 69 AS INTEGER ) )
----
-45
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT DISTINCT + + 10 DIV - 93 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2570
SELECT DISTINCT + + 10 / - 93 AS col2
----
0

query I rowsort
SELECT - 1 * - - 27
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT ALL + 83 * - MIN( 9 )
----
-747

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + 83 * - MIN ( 9 )
----
-747

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT - COUNT( * ) - 98 * - COUNT( * ) + - ( - 36 ) col1
----
133

skipif mysql # not compatible
query I rowsort label-2573
SELECT - COUNT ( * ) - 98 * - COUNT ( * ) + - ( - 36 ) col1
----
133

onlyif mysql # DIV for integer division: 
query I rowsort label-2574
SELECT ALL + 10 DIV + - 46 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2574
SELECT ALL + 10 / + - 46 AS col0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2576
SELECT ALL 6 * 63 DIV 41
----
9

skipif mysql # not compatible
query I rowsort label-2576
SELECT ALL 6 * 63 / 41
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2577
SELECT - MIN( ALL - 33 ) col0, 42 DIV + 90 AS col1
----
33
0

skipif mysql # not compatible
query II rowsort label-2577
SELECT - MIN ( ALL - 33 ) col0, 42 / + 90 AS col1
----
33
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2579
SELECT + ( + + 82 ) DIV 36 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-2579
SELECT + ( + + 82 ) / 36 AS col0
----
2

query I rowsort
SELECT - 59 + 33
----
-26

query I rowsort
SELECT ALL + 11 * - 65 * + + 39
----
-27885

query I rowsort
SELECT - 35 + - 57
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2583
SELECT ( - + 13 ) * - - 77 * - + CAST( NULL AS SIGNED ) * 3 + - - 87 + + - COALESCE ( - 29, COUNT( * ) + + 66, - + 23 ) / 98 * - + 50 * - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2583
SELECT ( - + 13 ) * - - 77 * - + CAST ( NULL AS INTEGER ) * 3 + - - 87 + + - COALESCE ( - 29, COUNT ( * ) + + 66, - + 23 ) / 98 * - + 50 * - 73
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2584
SELECT + 5 + + + NULLIF ( - 30, + + COUNT( * ) ) DIV - - 96 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-2584
SELECT + 5 + + + NULLIF ( - 30, + + COUNT ( * ) ) / - - 96 AS col0
----
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2585
SELECT DISTINCT ( 94 ) DIV + 42 + + + COUNT( * ) * + + 15
----
17

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT ( 94 ) / + 42 + + + COUNT ( * ) * + + 15
----
17

query I rowsort
SELECT + 87 * + - 24 + + + 53
----
-2035

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL MIN( 38 ) * - COUNT( * ) - + 41 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL MIN ( 38 ) * - COUNT ( * ) - + 41 AS col1
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-2588
SELECT ALL 5 DIV + ( + 21 ) + + 45 col2, COALESCE ( - 1, 82 )
----
45
-1

skipif mysql # not compatible
query II rowsort label-2588
SELECT ALL 5 / + ( + 21 ) + + 45 col2, COALESCE ( - 1, 82 )
----
45
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT COALESCE ( - - 73, - - 85 DIV - 8 + + - NULLIF ( + - 62, ( - - ( - 56 ) ) ) * + COUNT( * ) + - 50, + 97 * + COUNT( * ) + - MAX( DISTINCT - 85 ) ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-2590
SELECT COALESCE ( - - 73, - - 85 / - 8 + + - NULLIF ( + - 62, ( - - ( - 56 ) ) ) * + COUNT ( * ) + - 50, + 97 * + COUNT ( * ) + - MAX ( DISTINCT - 85 ) ) AS col1
----
73

onlyif mysql # DIV for integer division: 
query II rowsort label-2591
SELECT 9 DIV + 95 col0, 23 + - 90 * - 13
----
0
1193

skipif mysql # not compatible
query II rowsort label-2591
SELECT 9 / + 95 col0, 23 + - 90 * - 13
----
0
1193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2592
SELECT 38 * - 9 + - 71 DIV MIN( ALL + 52 ) + - 51 * - 34
----
1391

skipif mysql # not compatible
query I rowsort label-2592
SELECT 38 * - 9 + - 71 / MIN ( ALL + 52 ) + - 51 * - 34
----
1391

query I rowsort
SELECT - ( 48 )
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT ALL + CASE + + 56 WHEN + 92 THEN NULL WHEN 87 THEN NULL WHEN - + COUNT( * ) THEN - 85 * + 42 * + COUNT( * ) * + + 18 + - COUNT( * ) ELSE NULL END * 97 - ( 84 ) + AVG ( DISTINCT + ( 81 ) ) * + 12 * + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL + CASE + + 56 WHEN + 92 THEN NULL WHEN 87 THEN NULL WHEN - + COUNT ( * ) THEN - 85 * + 42 * + COUNT ( * ) * + + 18 + - COUNT ( * ) ELSE NULL END * 97 - ( 84 ) + AVG ( DISTINCT + ( 81 ) ) * + 12 * + 12 AS col2
----
NULL

query I rowsort
SELECT ALL ( 94 ) - + 31 AS col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT 57 + COUNT( * ) - - 70
----
128

skipif mysql # not compatible
query I rowsort label-2596
SELECT 57 + COUNT ( * ) - - 70
----
128

query I rowsort
SELECT + 73 + + + 28 AS col2
----
101

query I rowsort
SELECT - 47 * - - 21 * + 59 AS col2
----
-58233

query I rowsort
SELECT 37 + 22
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT 40 * + MAX( - 2 ), 23 AS col2
----
-80
23

skipif mysql # not compatible
query II rowsort label-2600
SELECT 40 * + MAX ( - 2 ), 23 AS col2
----
-80
23

query I rowsort
SELECT ALL ( + 81 ) * 64
----
5184

query I rowsort
SELECT 47 + - 36 * 12 * + 5 + - 67 + - 16 * + 71 - - + 6 AS col0
----
-3310

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT 56 + - COUNT( * ) * + + 78 col1
----
-22

skipif mysql # not compatible
query I rowsort label-2603
SELECT 56 + - COUNT ( * ) * + + 78 col1
----
-22

query I rowsort
SELECT 66 + - 85 + 26 AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-2605
SELECT 72 + + 68 + - + CASE - + 81 WHEN - 96 / + - 80 + - - 25 THEN NULL ELSE - 60 END, - 99 + COUNT( * ) * + + 16 AS col1
----
200
-83

skipif mysql # not compatible
query II rowsort label-2605
SELECT 72 + + 68 + - + CASE - + 81 WHEN - 96 / + - 80 + - - 25 THEN NULL ELSE - 60 END, - 99 + COUNT ( * ) * + + 16 AS col1
----
200
-83

query I rowsort
SELECT 81 + - 39 AS col2
----
42

query I rowsort
SELECT 56 * + 94 * 32 AS col0
----
168448

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

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL - 52 / - 54
----
0

query I rowsort
SELECT DISTINCT - 35 * + - 17
----
595

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

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT + 7 + - + COUNT ( * ) AS col1
----
6

query I rowsort
SELECT ALL 93 * + 20 * - 10 AS col0
----
-18600

query I rowsort
SELECT ALL + 90 + - + 95 col0
----
-5

query I rowsort
SELECT DISTINCT - 35 * + 65
----
-2275

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

skipif mysql # not compatible
query I rowsort label-2614
SELECT 0 / + COUNT ( * ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2615
SELECT ALL - COALESCE ( 7, - 30 * - 67 * + 68 * - 78 * SUM( ALL 65 ) ) col0, 82
----
-7
82

skipif mysql # not compatible
query II rowsort label-2615
SELECT ALL - COALESCE ( 7, - 30 * - 67 * + 68 * - 78 * SUM ( ALL 65 ) ) col0, 82
----
-7
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT CASE - + 38 WHEN + - 38 THEN + 25 + - - COALESCE ( - 83, + - MIN( DISTINCT + - 63 ) ) WHEN + 72 + - + ( 56 ) THEN NULL ELSE - 62 + 45 END * 84
----
-4872

skipif mysql # not compatible
query I rowsort label-2617
SELECT CASE - + 38 WHEN + - 38 THEN + 25 + - - COALESCE ( - 83, + - MIN ( DISTINCT + - 63 ) ) WHEN + 72 + - + ( 56 ) THEN NULL ELSE - 62 + 45 END * 84
----
-4872

query II rowsort
SELECT + + 39, 28 AS col1
----
39
28

query I rowsort
SELECT - 68 * COALESCE ( - 20, 73 )
----
1360

query II rowsort
SELECT ALL - 3, - ( 37 ) - 37 + + + 27 + + 8 AS col1
----
-3
-39

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

query I rowsort
SELECT - NULLIF ( - + 58, + 71 * + 11 - + 97 ) * - - 64 AS col0
----
3712

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT NULLIF ( CAST( ( + + 97 ) AS SIGNED ), + + 4 ) + + - 9 + - - ( - ( - CAST( NULL AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2624
SELECT NULLIF ( CAST ( ( + + 97 ) AS INTEGER ), + + 4 ) + + - 9 + - - ( - ( - CAST ( NULL AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2625
SELECT + ( + MIN( DISTINCT - 27 ) ) AS col0, ( - - 62 ) AS col0
----
-27
62

skipif mysql # not compatible
query II rowsort label-2625
SELECT + ( + MIN ( DISTINCT - 27 ) ) AS col0, ( - - 62 ) AS col0
----
-27
62

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

query I rowsort
SELECT DISTINCT 92 * 97
----
8924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2628
SELECT COUNT( * ) DIV + COALESCE ( 44, 69, + 13 * 73 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT COUNT ( * ) / + COALESCE ( 44, 69, + 13 * 73 ) AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT + 70 * + + CAST( - + 13 AS SIGNED )
----
-910

skipif mysql # not compatible
query I rowsort label-2629
SELECT + 70 * + + CAST ( - + 13 AS INTEGER )
----
-910

query I rowsort
SELECT ALL 10 * + + 45 col0
----
450

onlyif mysql # aggregate syntax: 
query II rowsort label-2631
SELECT ALL - - 54, + COUNT( - + 47 ) AS col0
----
54
1

skipif mysql # not compatible
query II rowsort label-2631
SELECT ALL - - 54, + COUNT ( - + 47 ) AS col0
----
54
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT 11 DIV - - 52
----
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT 11 / - - 52
----
0

query II rowsort
SELECT 85 AS col1, + NULLIF ( + + CASE - 20 WHEN - + 25 THEN 28 ELSE NULL END, + - 48 ) + + + 27 + + + 18 + - + 25 * 31 * + 39 * - 1 * + 97 * 87 AS col2
----
85
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT 30 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-2634
SELECT 30 / + 86
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2635
SELECT MIN( DISTINCT 96 ) / 59 * + - CAST( NULL AS SIGNED ) col1, + 23
----
NULL
23

skipif mysql # not compatible
query II rowsort label-2635
SELECT MIN ( DISTINCT 96 ) / 59 * + - CAST ( NULL AS INTEGER ) col1, + 23
----
NULL
23

query I rowsort
SELECT 37 - - 14
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT - MIN( - - 34 ) AS col0
----
-34

skipif mysql # not compatible
query I rowsort label-2637
SELECT - MIN ( - - 34 ) AS col0
----
-34

query I rowsort
SELECT ALL 23 + - 25 + + 53
----
51

query I rowsort
SELECT DISTINCT + 66 * + ( - 19 )
----
-1254

query I rowsort
SELECT ALL 94 + - 68 AS col0
----
26

query I rowsort
SELECT 71 - 60 col0
----
11

query I rowsort
SELECT DISTINCT - 48 * - 20 col1
----
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL + MAX( DISTINCT - 19 ) + + 41 - - + 25 * - 77 AS col2
----
-1903

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL + MAX ( DISTINCT - 19 ) + + 41 - - + 25 * - 77 AS col2
----
-1903

query II rowsort
SELECT - 56 AS col1, 69 AS col2
----
-56
69

query I rowsort
SELECT ALL 87 + + 23
----
110

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

query I rowsort
SELECT 91 * + 30 * - - 10 AS col1
----
27300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT - 28 - + + 95 * + CAST( NULL AS SIGNED ) * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT - 28 - + + 95 * + CAST ( NULL AS INTEGER ) * + COUNT ( * )
----
NULL

query III rowsort
SELECT - 25 AS col0, + COALESCE ( + 21, + - 47 * - 91 * + + 47 + + + 76 ) AS col0, - ( - + 68 ) * - 4
----
-25
21
-272

query II rowsort
SELECT DISTINCT 89, 13 * 39 * + COALESCE ( 87, + 34 ) + + ( - 25 ) + 59 * - 76 AS col1
----
89
39600

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT ALL - - 86 * - 8 - + 56 + - 37 + NULLIF ( - MAX( 94 ), 4 + - 12 * + + 51 ) * + 65
----
-6891

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - - 86 * - 8 - + 56 + - 37 + NULLIF ( - MAX ( 94 ), 4 + - 12 * + + 51 ) * + 65
----
-6891

onlyif mysql # DIV for integer division: 
query I rowsort label-2652
SELECT DISTINCT - 58 DIV - + 61 col2
----
0

skipif mysql # not compatible
query I rowsort label-2652
SELECT DISTINCT - 58 / - + 61 col2
----
0

query I rowsort
SELECT + 38 * + + 93 + 98
----
3632

query I rowsort
SELECT ALL - ( + - 56 ) * + - 16 AS col0
----
-896

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2655
SELECT ALL + 87 AS col1, - 22 * 37 DIV + SUM( + 10 )
----
87
-81

skipif mysql # not compatible
query II rowsort label-2655
SELECT ALL + 87 AS col1, - 22 * 37 / + SUM ( + 10 )
----
87
-81

query I rowsort
SELECT - ( + 77 ) + 94 + + 60 * + + ( + + 60 ) * + 32 + + 1 col2
----
115218

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT - - 75 DIV + 19 + + COALESCE ( - 3, + 52 ) * - + 98 * + 77 + 92 * 92
----
31105

skipif mysql # not compatible
query I rowsort label-2657
SELECT - - 75 / + 19 + + COALESCE ( - 3, + 52 ) * - + 98 * + 77 + 92 * 92
----
31105

query I rowsort
SELECT - - 70 * + 59
----
4130

query I rowsort
SELECT - + 0 * + - 80 + - CASE 99 WHEN + 67 THEN + 92 + ( - 28 ) / - - 78 ELSE NULL END + - 60 + - 4 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT COALESCE ( - CAST( 59 AS SIGNED ), + 88 ) AS col1
----
-59

skipif mysql # not compatible
query I rowsort label-2660
SELECT COALESCE ( - CAST ( 59 AS INTEGER ), + 88 ) AS col1
----
-59

query II rowsort
SELECT + 2 AS col2, ( + 45 ) + - 76
----
2
-31

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2662
SELECT + 62 * - 86 + - 57 DIV - CAST( - 62 AS SIGNED )
----
-5332

skipif mysql # not compatible
query I rowsort label-2662
SELECT + 62 * - 86 + - 57 / - CAST ( - 62 AS INTEGER )
----
-5332

query I rowsort
SELECT DISTINCT - 62 * + 13
----
-806

query I rowsort
SELECT ALL - + 49 * - 24 AS col2
----
1176

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2665
SELECT NULLIF ( + 78, - 44 - MIN( 72 ) * - NULLIF ( + - SUM( DISTINCT + - 69 ), + 86 ) * + + NULLIF ( - 81, CAST( NULL AS SIGNED ) ) * CASE - COALESCE ( + + 25, - 83, 55 / + - 13 * - 27 * 25 ) WHEN - 42 * + CASE + 98 WHEN + 4 + COALESCE ( + + 94, 18, + 94 ) - 12 THEN NULL WHEN - 72 THEN - 24 * + 61 + + + 27 ELSE - COUNT( * ) END THEN NULL ELSE SUM( DISTINCT 64 ) / CAST( - 4 AS SIGNED ) - - 32 END * + 8 + 4 * CAST( + 63 AS DECIMAL ) + 20 + 34 * - ( - ( CAST( NULL AS SIGNED ) ) * 27 ) ) * 20 - ( COUNT( * ) + 85 ) AS col0
----
1474

skipif mysql # not compatible
query I rowsort label-2665
SELECT NULLIF ( + 78, - 44 - MIN ( 72 ) * - NULLIF ( + - SUM ( DISTINCT + - 69 ), + 86 ) * + + NULLIF ( - 81, CAST ( NULL AS INTEGER ) ) * CASE - COALESCE ( + + 25, - 83, 55 / + - 13 * - 27 * 25 ) WHEN - 42 * + CASE + 98 WHEN + 4 + COALESCE ( + + 94, 18, + 94 ) - 12 THEN NULL WHEN - 72 THEN - 24 * + 61 + + + 27 ELSE - COUNT ( * ) END THEN NULL ELSE SUM ( DISTINCT 64 ) / CAST ( - 4 AS INTEGER ) - - 32 END * + 8 + 4 * CAST ( + 63 AS REAL ) + 20 + 34 * - ( - ( CAST ( NULL AS INTEGER ) ) * 27 ) ) * 20 - ( COUNT ( * ) + 85 ) AS col0
----
1474

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + MAX( - ( - 76 ) ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + MAX ( - ( - 76 ) ) AS col1
----
76

query I rowsort
SELECT - + 43 + - + ( 76 ) * + - 80 AS col1
----
6037

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

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

query I rowsort
SELECT - - 74 * - + 74
----
-5476

query I rowsort
SELECT + - 68 * + 93 - 41 col2
----
-6365

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2671
SELECT ALL 95 * - + 73 + + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2671
SELECT ALL 95 * - + 73 + + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT - COUNT( + 12 ) + - + 68
----
-69

skipif mysql # not compatible
query I rowsort label-2672
SELECT - COUNT ( + 12 ) + - + 68
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2673
SELECT + COUNT( * ) * - 38 * + 86 * - COUNT( * ) - + CAST( + + 81 AS SIGNED )
----
3187

skipif mysql # not compatible
query I rowsort label-2673
SELECT + COUNT ( * ) * - 38 * + 86 * - COUNT ( * ) - + CAST ( + + 81 AS INTEGER )
----
3187

query I rowsort
SELECT - 36 + + 66
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2675
SELECT + COUNT( * ) - + + 70 AS col2, 3 * - 64 DIV COUNT( * ) * - 84 AS col0
----
-69
16128

skipif mysql # not compatible
query II rowsort label-2675
SELECT + COUNT ( * ) - + + 70 AS col2, 3 * - 64 / COUNT ( * ) * - 84 AS col0
----
-69
16128

onlyif mysql # aggregate syntax: 
query II rowsort label-2676
SELECT ALL + 25 + - 44 AS col1, COALESCE ( - + 75, - 84, + - MAX( ALL 46 ) ) AS col0
----
-19
-75

skipif mysql # not compatible
query II rowsort label-2676
SELECT ALL + 25 + - 44 AS col1, COALESCE ( - + 75, - 84, + - MAX ( ALL 46 ) ) AS col0
----
-19
-75

query I rowsort
SELECT + ( - - 59 ) + + 69 + + 79 AS col0
----
207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2678
SELECT MIN( DISTINCT + + CAST( + 46 AS SIGNED ) ) AS col1
----
46

skipif mysql # not compatible
query I rowsort label-2678
SELECT MIN ( DISTINCT + + CAST ( + 46 AS INTEGER ) ) AS col1
----
46

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2680
SELECT ALL CASE - 13 WHEN - COUNT( * ) * + - 46 THEN - + 4 WHEN + 21 THEN NULL END + - ( + 9 ) + - + CAST( NULL AS SIGNED ) / - 67 - + - ( - MAX( DISTINCT - + 26 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL CASE - 13 WHEN - COUNT ( * ) * + - 46 THEN - + 4 WHEN + 21 THEN NULL END + - ( + 9 ) + - + CAST ( NULL AS INTEGER ) / - 67 - + - ( - MAX ( DISTINCT - + 26 ) )
----
NULL

query I rowsort
SELECT + 82 + - 25
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT + CASE - + 87 WHEN 18 THEN NULL ELSE + 41 END * - COUNT( ALL - 67 ) AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-2682
SELECT + CASE - + 87 WHEN 18 THEN NULL ELSE + 41 END * - COUNT ( ALL - 67 ) AS col2
----
-41

query II rowsort
SELECT - ( 6 ), + 52 col1
----
-6
52

query I rowsort
SELECT ALL 40 + 25 * - ( + + 85 )
----
-2085

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT + 46 * 66 DIV 18
----
168

skipif mysql # not compatible
query I rowsort label-2685
SELECT + 46 * 66 / 18
----
168

query I rowsort
SELECT + 52 + - NULLIF ( - 23, - 70 * + 81 + - 16 )
----
75

query I rowsort
SELECT + 10 * 52 col1
----
520

query I rowsort
SELECT DISTINCT 75 - 16
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2689
SELECT DISTINCT - ( - 5 ) * - + 19 - - CAST( + MAX( + 57 ) AS SIGNED )
----
-38

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - ( - 5 ) * - + 19 - - CAST ( + MAX ( + 57 ) AS INTEGER )
----
-38

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT + - CAST( - 98 AS SIGNED ) * - ( + 33 )
----
-3234

skipif mysql # not compatible
query I rowsort label-2691
SELECT + - CAST ( - 98 AS INTEGER ) * - ( + 33 )
----
-3234

onlyif mysql # aggregate syntax: 
query II rowsort label-2692
SELECT + 59 * + + NULLIF ( 80, + 14 ) + - - 80 AS col2, MIN( - 18 )
----
4800
-18

skipif mysql # not compatible
query II rowsort label-2692
SELECT + 59 * + + NULLIF ( 80, + 14 ) + - - 80 AS col2, MIN ( - 18 )
----
4800
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + - NULLIF ( COUNT( * ), + 88 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2693
SELECT + - NULLIF ( COUNT ( * ), + 88 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT COALESCE ( - COUNT( * ), 7 DIV - 54, + - 27 DIV - + COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-2694
SELECT COALESCE ( - COUNT ( * ), 7 / - 54, + - 27 / - + COUNT ( * ) ) AS col1
----
-1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2696
SELECT ALL + 35 * + 67 * - 34 / + - COALESCE ( 6, + 39 ) + CASE 20 WHEN 69 + CASE 2 WHEN + 47 THEN - 98 / + - COUNT( * ) END THEN + 80 / - 70 + + + 80 WHEN + 76 THEN NULL ELSE NULL END AS col0, COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL + 35 * + 67 * - 34 / + - COALESCE ( 6, + 39 ) + CASE 20 WHEN 69 + CASE 2 WHEN + 47 THEN - 98 / + - COUNT ( * ) END THEN + 80 / - 70 + + + 80 WHEN + 76 THEN NULL ELSE NULL END AS col0, COUNT ( * ) AS col1
----
NULL
1

query I rowsort
SELECT + 16 - + - 60
----
76

query I rowsort
SELECT - 86 * + 30
----
-2580

query I rowsort
SELECT + 25 * 50 AS col0
----
1250

onlyif mysql # aggregate syntax: 
query II rowsort label-2700
SELECT DISTINCT + + ( + COUNT( * ) ), 97 * - 83 AS col2
----
1
-8051

skipif mysql # not compatible
query II rowsort label-2700
SELECT DISTINCT + + ( + COUNT ( * ) ), 97 * - 83 AS col2
----
1
-8051

query I rowsort
SELECT DISTINCT + 91 * + - 49 AS col2
----
-4459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2702
SELECT ALL + + COALESCE ( COUNT( + 61 ), - - CASE 10 WHEN + 92 THEN + 53 WHEN + 50 THEN - - 35 END * + + 14 ) DIV + 6 * - + CASE + 23 WHEN - 87 THEN NULL ELSE - NULLIF ( + COUNT( * ), - 56 + + 24 ) END * + + 6 + + COALESCE ( 85, MAX( 39 ) )
----
85

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + + COALESCE ( COUNT ( + 61 ), - - CASE 10 WHEN + 92 THEN + 53 WHEN + 50 THEN - - 35 END * + + 14 ) / + 6 * - + CASE + 23 WHEN - 87 THEN NULL ELSE - NULLIF ( + COUNT ( * ), - 56 + + 24 ) END * + + 6 + + COALESCE ( 85, MAX ( 39 ) )
----
85

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2704
SELECT ( - 2 ) * - + CASE 9 WHEN - ( CAST( NULL AS SIGNED ) ) THEN + 16 END + 46 AS col1, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-2704
SELECT ( - 2 ) * - + CASE 9 WHEN - ( CAST ( NULL AS INTEGER ) ) THEN + 16 END + 46 AS col1, COUNT ( * )
----
NULL
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT ALL + - 34 DIV 14 * + + 80
----
-160

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL + - 34 / 14 * + + 80
----
-160

onlyif mysql # DIV for integer division: 
query II rowsort label-2706
SELECT + + 3 DIV - 69, - 14 AS col2
----
0
-14

skipif mysql # not compatible
query II rowsort label-2706
SELECT + + 3 / - 69, - 14 AS col2
----
0
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT CASE - 83 WHEN - 52 THEN - - 58 ELSE 85 - - - 90 * - 19 + 86 END * 19 + - - 42 DIV - 67 AS col2
----
35739

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT CASE - 83 WHEN - 52 THEN - - 58 ELSE 85 - - - 90 * - 19 + 86 END * 19 + - - 42 / - 67 AS col2
----
35739

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT 66 * + 70 + 92 DIV - 46 - - 52 AS col1
----
4670

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 66 * + 70 + 92 / - 46 - - 52 AS col1
----
4670

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2711
SELECT ALL - 66 * 21 DIV + - COUNT( DISTINCT - - 9 ) AS col0
----
1386

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - 66 * 21 / + - COUNT ( DISTINCT - - 9 ) AS col0
----
1386

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2712
SELECT NULLIF ( + 47, - CAST( NULL AS SIGNED ) + - COUNT( * ) * COALESCE ( CAST( NULL AS SIGNED ), - - 65 * - 26 * + - COUNT( * ) + 91 ) ) AS col1
----
47

skipif mysql # not compatible
query I rowsort label-2712
SELECT NULLIF ( + 47, - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * COALESCE ( CAST ( NULL AS INTEGER ), - - 65 * - 26 * + - COUNT ( * ) + 91 ) ) AS col1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2713
SELECT + 86 col1, CAST( 7 AS SIGNED ) * + 83 + 1 AS col1
----
86
582

skipif mysql # not compatible
query II rowsort label-2713
SELECT + 86 col1, CAST ( 7 AS INTEGER ) * + 83 + 1 AS col1
----
86
582

query I rowsort
SELECT ALL 78 * + 75 + - - 66 + + + 77
----
5993

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

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

query I rowsort
SELECT DISTINCT 3 * + ( 37 ) + 3 + - 49 * + - 97 AS col1
----
4867

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2718
SELECT 62 - + ( + + CAST( - + 3 AS SIGNED ) ) * - 65 AS col0
----
-133

skipif mysql # not compatible
query I rowsort label-2718
SELECT 62 - + ( + + CAST ( - + 3 AS INTEGER ) ) * - 65 AS col0
----
-133

query II rowsort
SELECT - 9 AS col1, 78 * - + 47 * - 60 + - + 47 * + 98 * - 30
----
-9
358140

onlyif mysql # DIV for integer division: 
query II rowsort label-2720
SELECT ALL + 31 DIV - 60 * - - 70, - ( - ( - 21 ) ) AS col2
----
0
-21

skipif mysql # not compatible
query II rowsort label-2720
SELECT ALL + 31 / - 60 * - - 70, - ( - ( - 21 ) ) AS col2
----
0
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT DISTINCT COALESCE ( 13, - COUNT( * ) + + 33, - 18 ) * + - 15 + + CASE + 93 WHEN + - 33 THEN NULL WHEN + 78 THEN - + MIN( ALL - + 24 ) + + - 78 END * + + 21 / 57
----
NULL

skipif mysql # not compatible
query I rowsort label-2721
SELECT DISTINCT COALESCE ( 13, - COUNT ( * ) + + 33, - 18 ) * + - 15 + + CASE + 93 WHEN + - 33 THEN NULL WHEN + 78 THEN - + MIN ( ALL - + 24 ) + + - 78 END * + + 21 / 57
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2722
SELECT ALL 20 AS col2, + CAST( NULL AS DECIMAL )
----
20
NULL

skipif mysql # not compatible
query II rowsort label-2722
SELECT ALL 20 AS col2, + CAST ( NULL AS REAL )
----
20
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT ALL 22, COUNT( * ) + SUM( ALL - 59 ) AS col2
----
22
-58

skipif mysql # not compatible
query II rowsort label-2723
SELECT ALL 22, COUNT ( * ) + SUM ( ALL - 59 ) AS col2
----
22
-58

query I rowsort
SELECT 99 * + 39 AS col1
----
3861

query I rowsort
SELECT - 87 + - + 88
----
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2726
SELECT 60 * + + 19 + 5 AS col2, + 62, + 77 DIV - COUNT( * ) col0
----
1145
62
-77

skipif mysql # not compatible
query III rowsort label-2726
SELECT 60 * + + 19 + 5 AS col2, + 62, + 77 / - COUNT ( * ) col0
----
1145
62
-77

query I rowsort
SELECT 47 + - 93 AS col2
----
-46

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ( - + SUM( + 22 ) ) * - - 53 col1
----
-1166

skipif mysql # not compatible
query I rowsort label-2729
SELECT ( - + SUM ( + 22 ) ) * - - 53 col1
----
-1166

query I rowsort
SELECT + 23 * + + 72 + - - 61 + - 94
----
1623

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT COUNT( * ) + + 54 AS col0
----
55

skipif mysql # not compatible
query I rowsort label-2731
SELECT COUNT ( * ) + + 54 AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT ALL + CASE - - 42 WHEN + 35 - - 89 THEN NULL WHEN ( + - 48 ) * CASE 39 WHEN + 35 THEN - + MAX( + + 20 ) WHEN - 65 * 47 THEN NULL ELSE NULL END THEN - COUNT( * ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2732
SELECT ALL + CASE - - 42 WHEN + 35 - - 89 THEN NULL WHEN ( + - 48 ) * CASE 39 WHEN + 35 THEN - + MAX ( + + 20 ) WHEN - 65 * 47 THEN NULL ELSE NULL END THEN - COUNT ( * ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT ALL 76 + - - ( + COUNT( * ) ) + - 40 * + 40
----
-1523

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL 76 + - - ( + COUNT ( * ) ) + - 40 * + 40
----
-1523

query II rowsort
SELECT ALL - ( - 70 ) * - - 16 AS col0, 92
----
1120
92

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

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

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

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

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

query I rowsort
SELECT ALL 42 + 18
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT + MAX( DISTINCT 65 ) AS col1
----
65

skipif mysql # not compatible
query I rowsort label-2739
SELECT + MAX ( DISTINCT 65 ) AS col1
----
65

query I rowsort
SELECT 27 + - - 82 AS col2
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-2741
SELECT + 86 * - ( MAX( + 90 ) ) * + MIN( DISTINCT NULLIF ( + 71, - 43 ) ) + - 39 - - 68 * - 38 AS col1, + 9 AS col2
----
-552163
9

skipif mysql # not compatible
query II rowsort label-2741
SELECT + 86 * - ( MAX ( + 90 ) ) * + MIN ( DISTINCT NULLIF ( + 71, - 43 ) ) + - 39 - - 68 * - 38 AS col1, + 9 AS col2
----
-552163
9

query I rowsort
SELECT 88 * + 76
----
6688

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

query I rowsort
SELECT ALL 77 + 81 AS col0
----
158

query I rowsort
SELECT ALL - 62 + - 7 AS col0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2746
SELECT 72 + + 68 - + MAX( ALL + 23 ) AS col2
----
117

skipif mysql # not compatible
query I rowsort label-2746
SELECT 72 + + 68 - + MAX ( ALL + 23 ) AS col2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT 12 + + MAX( - 40 )
----
-28

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT 12 + + MAX ( - 40 )
----
-28

query I rowsort
SELECT 81 + - 43 * 19 * + 20 AS col0
----
-16259

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT DISTINCT 6 DIV 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT 6 / 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT COALESCE ( 75, - 33 ) * SUM( + 40 ) * + MIN( 90 ) + + 73 + + 8
----
270081

skipif mysql # not compatible
query I rowsort label-2750
SELECT COALESCE ( 75, - 33 ) * SUM ( + 40 ) * + MIN ( 90 ) + + 73 + + 8
----
270081

query II rowsort
SELECT 0 * 34 AS col1, + 95
----
0
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT - 90 * + - 60 * - COUNT( * ) AS col1
----
-5400

skipif mysql # not compatible
query I rowsort label-2752
SELECT DISTINCT - 90 * + - 60 * - COUNT ( * ) AS col1
----
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT 81 + - SUM( ALL - 37 ) + + MAX( - 38 ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-2753
SELECT 81 + - SUM ( ALL - 37 ) + + MAX ( - 38 ) AS col2
----
80

query II rowsort
SELECT 16 + - + 90, + 59 * + + 58 + - 27 AS col0
----
-74
3395

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT + COUNT( * ) * - 83 col1
----
-83

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + COUNT ( * ) * - 83 col1
----
-83

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

query I rowsort
SELECT 6 + - + 64 * + 28 * + - 28 AS col0
----
50182

query I rowsort
SELECT 83 + ( - - 16 )
----
99

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

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

query II rowsort
SELECT + 54 + 13, 3 AS col1
----
67
3

query I rowsort
SELECT CASE 95 WHEN + 94 * + 45 THEN NULL WHEN NULLIF ( - - ( - 91 ), 32 ) * + 38 + - + 32 * + 20 THEN NULL ELSE + 95 END * - 73 + - ( - 88 ) * 80
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2762
SELECT 93 DIV 23
----
4

skipif mysql # not compatible
query I rowsort label-2762
SELECT 93 / 23
----
4

query I rowsort
SELECT DISTINCT 47 + + - 20 AS col2
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2764
SELECT DISTINCT + ( - 39 ) DIV 11 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-2764
SELECT DISTINCT + ( - 39 ) / 11 AS col2
----
-3

query I rowsort
SELECT DISTINCT ( 77 ) col2
----
77

query I rowsort
SELECT DISTINCT - 83 + 15 - - + 84
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT DISTINCT + - 30 + + + SUM( DISTINCT - - 25 ) + + 51 * - 79 * 97
----
-390818

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT + - 30 + + + SUM ( DISTINCT - - 25 ) + + 51 * - 79 * 97
----
-390818

query I rowsort
SELECT ALL 31 + + ( 13 ) * + + 6 * 87 AS col0
----
6817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2769
SELECT 86 DIV + - COUNT( * ) + - 20 - - ( COUNT( * ) )
----
-105

skipif mysql # not compatible
query I rowsort label-2769
SELECT 86 / + - COUNT ( * ) + - 20 - - ( COUNT ( * ) )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT NULLIF ( + 73, + + COUNT( * ) + - - 7 * - 68 ) - 73 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2770
SELECT NULLIF ( + 73, + + COUNT ( * ) + - - 7 * - 68 ) - 73 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2771
SELECT + 28 DIV - COUNT( * ) + 9 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-2771
SELECT + 28 / - COUNT ( * ) + 9 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2772
SELECT ALL - - CAST( - - 33 AS SIGNED ) * - 18 + + + COUNT( * ) + - 42 * 45 + - 67 + + ( + + 0 ) + - + COUNT( * )
----
-2551

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL - - CAST ( - - 33 AS INTEGER ) * - 18 + + + COUNT ( * ) + - 42 * 45 + - 67 + + ( + + 0 ) + - + COUNT ( * )
----
-2551

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL + 66 * - 43 + + SUM( DISTINCT - 7 ) * 25 - + - 99 AS col2
----
-2914

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + 66 * - 43 + + SUM ( DISTINCT - 7 ) * 25 - + - 99 AS col2
----
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT + 45 * 21 + COUNT( * ) col2
----
946

skipif mysql # not compatible
query I rowsort label-2774
SELECT + 45 * 21 + COUNT ( * ) col2
----
946

query I rowsort
SELECT 75 - 32 + - - 77
----
120

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2777
SELECT + COUNT( * ) AS col1, + SUM( DISTINCT + 65 ) + - + CASE 95 WHEN + 16 THEN - CASE + COUNT( * ) WHEN - 27 + + MIN( - 80 ) THEN NULL WHEN + 90 THEN + + CASE + 53 WHEN + 36 THEN + 92 ELSE NULL END + 39 END END + 94
----
1
NULL

skipif mysql # not compatible
query II rowsort label-2777
SELECT + COUNT ( * ) AS col1, + SUM ( DISTINCT + 65 ) + - + CASE 95 WHEN + 16 THEN - CASE + COUNT ( * ) WHEN - 27 + + MIN ( - 80 ) THEN NULL WHEN + 90 THEN + + CASE + 53 WHEN + 36 THEN + 92 ELSE NULL END + 39 END END + 94
----
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2778
SELECT + NULLIF ( + 20, + 10 + + AVG ( DISTINCT - 89 ) * CASE + CAST( NULL AS SIGNED ) WHEN 33 THEN NULL ELSE 87 END )
----
20

skipif mysql # not compatible
query I rowsort label-2778
SELECT + NULLIF ( + 20, + 10 + + AVG ( DISTINCT - 89 ) * CASE + CAST ( NULL AS INTEGER ) WHEN 33 THEN NULL ELSE 87 END )
----
20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2779
SELECT - 7 * + + COALESCE ( - + 76, - - 11 ) + CAST( NULL AS DECIMAL ), + 39 * + 5 * 34 AS col0
----
NULL
6630

skipif mysql # not compatible
query II rowsort label-2779
SELECT - 7 * + + COALESCE ( - + 76, - - 11 ) + CAST ( NULL AS REAL ), + 39 * + 5 * 34 AS col0
----
NULL
6630

query I rowsort
SELECT ALL ( 46 ) * - 87 * + 68 * 18 - 65 AS col1
----
-4898513

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

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

query I rowsort
SELECT DISTINCT 64 * - 97
----
-6208

query I rowsort
SELECT + 75 * - 32 AS col1
----
-2400

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2786
SELECT + 40 DIV 81 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT + 40 / 81 AS col2
----
0

query I rowsort
SELECT - 45 * 70
----
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT + 57 - COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2788
SELECT + 57 - COUNT ( * )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2789
SELECT + + ( + + ( + MAX( + 63 ) ) ) + + 18 + - CAST( + - 27 AS SIGNED ) AS col1
----
108

skipif mysql # not compatible
query I rowsort label-2789
SELECT + + ( + + ( + MAX ( + 63 ) ) ) + + 18 + - CAST ( + - 27 AS INTEGER ) AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT ALL - 48 * + 13 + - CASE - - COALESCE ( + + 16, - - 26 ) WHEN - 9 THEN NULL ELSE - SUM( ALL 16 ) * + + 29 END
----
-160

skipif mysql # not compatible
query I rowsort label-2790
SELECT ALL - 48 * + 13 + - CASE - - COALESCE ( + + 16, - - 26 ) WHEN - 9 THEN NULL ELSE - SUM ( ALL 16 ) * + + 29 END
----
-160

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT + - 42 + + + MAX( - ( - 24 ) ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-2791
SELECT + - 42 + + + MAX ( - ( - 24 ) ) AS col1
----
-18

query I rowsort
SELECT ALL 52 + - 27
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT DISTINCT - MIN( ALL - 74 )
----
74

skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT - MIN ( ALL - 74 )
----
74

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2794
SELECT - + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) * 33 - + - 24 + - 38 * - ( + - NULLIF ( 32, - + ( + 19 ) ) ) + + 51 AS col1, CAST( 90 AS SIGNED )
----
NULL
90

skipif mysql # not compatible
query II rowsort label-2794
SELECT - + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) * 33 - + - 24 + - 38 * - ( + - NULLIF ( 32, - + ( + 19 ) ) ) + + 51 AS col1, CAST ( 90 AS INTEGER )
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL 75 * COUNT( * ) * + - 52 - 27
----
-3927

skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL 75 * COUNT ( * ) * + - 52 - 27
----
-3927

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT - COUNT( * ) - 4 AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-2796
SELECT - COUNT ( * ) - 4 AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT ALL + COALESCE ( - ( - ( - 14 ) ), - COUNT( ALL - 1 ), + 86 )
----
-14

skipif mysql # not compatible
query I rowsort label-2797
SELECT ALL + COALESCE ( - ( - ( - 14 ) ), - COUNT ( ALL - 1 ), + 86 )
----
-14

query I rowsort
SELECT DISTINCT - 54 + + - 4
----
-58

query I rowsort
SELECT ALL + 96 + 67 + + 40 * + - 17 + 98
----
-419

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-2800
SELECT - + COUNT( * ), - 74 DIV + 69, - 36 - + 86 + + 55 AS col1
----
-1
-1
-67

skipif mysql # not compatible
query III rowsort label-2800
SELECT - + COUNT ( * ), - 74 / + 69, - 36 - + 86 + + 55 AS col1
----
-1
-1
-67

query I rowsort
SELECT ALL + + 28 + - - 53
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT - SUM( ALL - 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-2803
SELECT - SUM ( ALL - 26 ) AS col0
----
26

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

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

query I rowsort
SELECT - - 35 - - - 82 - + 28
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + ( + NULLIF ( + - 75, + 65 * - COUNT( * ) ) ) col2
----
-75

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + ( + NULLIF ( + - 75, + 65 * - COUNT ( * ) ) ) col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2808
SELECT - + 66 + + MAX( + + 64 ) * 19 AS col2
----
1150

skipif mysql # not compatible
query I rowsort label-2808
SELECT - + 66 + + MAX ( + + 64 ) * 19 AS col2
----
1150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT ALL + + NULLIF ( 21, + 71 * CAST( NULL AS SIGNED ) * + - 29 + - 53 / + 2 ) + 88 AS col1
----
109

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + + NULLIF ( 21, + 71 * CAST ( NULL AS INTEGER ) * + - 29 + - 53 / + 2 ) + 88 AS col1
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2810
SELECT ALL + COUNT( DISTINCT - 40 ) DIV + + 62 * + 2 - - - 72 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + COUNT ( DISTINCT - 40 ) / + + 62 * + 2 - - - 72 AS col0
----
-72

query I rowsort
SELECT - 35 * - - 52
----
-1820

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT ALL + 46 AS col1, 53 + MAX( ALL - 58 ) * - 12 AS col1
----
46
749

skipif mysql # not compatible
query II rowsort label-2813
SELECT ALL + 46 AS col1, 53 + MAX ( ALL - 58 ) * - 12 AS col1
----
46
749

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

query I rowsort
SELECT + 59 * 40 col1
----
2360

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL 66 * 8 - COUNT( * ) * 90 * + + 44 col2
----
-3432

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL 66 * 8 - COUNT ( * ) * 90 * + + 44 col2
----
-3432

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

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

query I rowsort
SELECT - ( - 26 ) + + - 42 AS col1
----
-16

onlyif mysql # DIV for integer division: 
query II rowsort label-2819
SELECT + 12 DIV + 68 col1, 14 AS col2
----
0
14

skipif mysql # not compatible
query II rowsort label-2819
SELECT + 12 / + 68 col1, 14 AS col2
----
0
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2820
SELECT ALL 18 DIV - MIN( ALL - 88 ) * + - COUNT( * ) + 50 AS col2
----
50

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL 18 / - MIN ( ALL - 88 ) * + - COUNT ( * ) + 50 AS col2
----
50

query I rowsort
SELECT 35 * 3 + - 84 AS col0
----
21

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ALL + 61, - 50 + - ( - COUNT( DISTINCT - - 32 ) ) AS col0
----
61
-49

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL + 61, - 50 + - ( - COUNT ( DISTINCT - - 32 ) ) AS col0
----
61
-49

query II rowsort
SELECT ALL + 64 AS col0, 78 AS col0
----
64
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT ALL + COALESCE ( + 14, - 4, - + 74 - - - COUNT( * ) + MAX( 44 ) ) AS col2
----
14

skipif mysql # not compatible
query I rowsort label-2826
SELECT ALL + COALESCE ( + 14, - 4, - + 74 - - - COUNT ( * ) + MAX ( 44 ) ) AS col2
----
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2827
SELECT + 93 + + - SUM( DISTINCT 18 ) DIV - 83
----
93

skipif mysql # not compatible
query I rowsort label-2827
SELECT + 93 + + - SUM ( DISTINCT 18 ) / - 83
----
93

query I rowsort
SELECT + NULLIF ( - + 79, - - 57 )
----
-79

query I rowsort
SELECT ALL 64 * + + 29 AS col0
----
1856

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT + 69 + COUNT( * ) + + 39 + - + 54 * 81
----
-4265

skipif mysql # not compatible
query I rowsort label-2830
SELECT + 69 + COUNT ( * ) + + 39 + - + 54 * 81
----
-4265

query I rowsort
SELECT + 8 * - 48 * + - 89 + - - 96 * 74
----
41280

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT ALL - COUNT( * ) * - CASE 38 WHEN + - 9 / - + 61 * 45 + - - 39 + 2 + 16 / ( - - COUNT( * ) ) * - 15 THEN NULL WHEN 59 THEN - - 50 END + - - 17 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL - COUNT ( * ) * - CASE 38 WHEN + - 9 / - + 61 * 45 + - - 39 + 2 + 16 / ( - - COUNT ( * ) ) * - 15 THEN NULL WHEN 59 THEN - - 50 END + - - 17 col0
----
NULL

query I rowsort
SELECT DISTINCT 41 * 79 col2
----
3239

onlyif mysql # DIV for integer division: 
query I rowsort label-2834
SELECT + 80 DIV + 60 + 78 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-2834
SELECT + 80 / + 60 + 78 AS col0
----
79

query I rowsort
SELECT ALL + ( + 99 ) * - + 76 + - + 59
----
-7583

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2836
SELECT ALL + - 64 * 74 + - - 13 + 66 + COUNT( - 7 ) - CAST( 77 AS SIGNED ) * MIN( ALL - 98 ) DIV - 36
----
-4865

skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + - 64 * 74 + - - 13 + 66 + COUNT ( - 7 ) - CAST ( 77 AS INTEGER ) * MIN ( ALL - 98 ) / - 36
----
-4865

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT ALL - - 92 + - COUNT( * ) + NULLIF ( + - COUNT( ALL 37 ), 83 * - 90 )
----
90

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - - 92 + - COUNT ( * ) + NULLIF ( + - COUNT ( ALL 37 ), 83 * - 90 )
----
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT + CASE + 1 WHEN - - ( - 82 ) THEN - 22 * - - 97 ELSE - 90 + + - COUNT( * ) END * 84 AS col2
----
-7644

skipif mysql # not compatible
query I rowsort label-2839
SELECT + CASE + 1 WHEN - - ( - 82 ) THEN - 22 * - - 97 ELSE - 90 + + - COUNT ( * ) END * 84 AS col2
----
-7644

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

skipif mysql # not compatible
query I rowsort label-2840
SELECT - SUM ( + 61 )
----
-61

query I rowsort
SELECT - 53 + + 83 * + 22
----
1773

query I rowsort
SELECT DISTINCT + 42 + + 6
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-2843
SELECT - - 3 DIV + + 36
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT - - 3 / + + 36
----
0

query II rowsort
SELECT ALL - 14 col0, - 20 * - 67 AS col2
----
-14
1340

query I rowsort
SELECT ALL 93 * 93 AS col2
----
8649

query I rowsort
SELECT - 42 + + 74 col0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT - 7 * - - MAX( DISTINCT - 69 )
----
483

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - 7 * - - MAX ( DISTINCT - 69 )
----
483

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL + 48 - - MIN( ALL + 29 ) AS col0
----
77

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL + 48 - - MIN ( ALL + 29 ) AS col0
----
77

query I rowsort
SELECT ( - 90 ) * 76 - 19 AS col2
----
-6859

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2850
SELECT DISTINCT - NULLIF ( + 35, CAST( - - 41 AS DECIMAL ) ) AS col0
----
-35

skipif mysql # not compatible
query I rowsort label-2850
SELECT DISTINCT - NULLIF ( + 35, CAST ( - - 41 AS REAL ) ) AS col0
----
-35

query II rowsort
SELECT 16 * - 14 AS col2, + 92
----
-224
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2852
SELECT ALL + 41 + + + ( + 98 ) AS col1, + SUM( 58 ) AS col1
----
139
58

skipif mysql # not compatible
query II rowsort label-2852
SELECT ALL + 41 + + + ( + 98 ) AS col1, + SUM ( 58 ) AS col1
----
139
58

query II rowsort
SELECT 6 * 27 AS col1, 8 AS col2
----
162
8

query I rowsort
SELECT 15 * - 96
----
-1440

query I rowsort
SELECT ALL 22 + + 74 * + + 58 + - 12 AS col0
----
4302

query I rowsort
SELECT DISTINCT 13 * - - 64
----
832

query I rowsort
SELECT ALL - - 23 + 98 * - 8 - - + 88
----
-673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2858
SELECT + 31 + + - CAST( NULL AS SIGNED ) + + + 54 / + 57 * + COUNT( * ) * ( 6 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 31 + + - CAST ( NULL AS INTEGER ) + + + 54 / + 57 * + COUNT ( * ) * ( 6 ) AS col0
----
NULL

query I rowsort
SELECT ALL 70 + + ( - 91 ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT DISTINCT - CASE 35 WHEN - 88 - - COUNT( * ) * - + COUNT( * ) THEN NULL WHEN + 3 THEN - 99 + - + 63 ELSE - 1 + + 84 END * + + 11 AS col2
----
-913

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT - CASE 35 WHEN - 88 - - COUNT ( * ) * - + COUNT ( * ) THEN NULL WHEN + 3 THEN - 99 + - + 63 ELSE - 1 + + 84 END * + + 11 AS col2
----
-913

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT 16 + + 81 + + - 51 DIV 7 AS col1
----
90

skipif mysql # not compatible
query I rowsort label-2861
SELECT 16 + + 81 + + - 51 / 7 AS col1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2862
SELECT - ( 61 ) + CAST( + 28 AS SIGNED ) * + 58 col0
----
1563

skipif mysql # not compatible
query I rowsort label-2862
SELECT - ( 61 ) + CAST ( + 28 AS INTEGER ) * + 58 col0
----
1563

query I rowsort
SELECT + 90 * 80 AS col0
----
7200

query I rowsort
SELECT DISTINCT + 2 * 73 * - 2 AS col0
----
-292

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

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

query I rowsort
SELECT ( 71 ) - + + 61 AS col1
----
10

query I rowsort
SELECT 86 - - 15 AS col1
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ( 51 ) + + 75 + 78 - + 15 * - CAST( NULL AS SIGNED ) * 84
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT ( 51 ) + + 75 + 78 - + 15 * - CAST ( NULL AS INTEGER ) * 84
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT - 30 + COUNT( * ) - - + 1 * + 81 AS col2
----
52

skipif mysql # not compatible
query I rowsort label-2869
SELECT - 30 + COUNT ( * ) - - + 1 * + 81 AS col2
----
52

query I rowsort
SELECT 78 + + - 19 AS col1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2871
SELECT 65 + + - ( + + 94 ) DIV + COUNT( * ) col1
----
-29

skipif mysql # not compatible
query I rowsort label-2871
SELECT 65 + + - ( + + 94 ) / + COUNT ( * ) col1
----
-29

onlyif mysql # DIV for integer division: 
query II rowsort label-2872
SELECT ALL 42 * + + ( + 77 ) AS col2, + ( - 36 ) + + 20 DIV + 28 * 17
----
3234
-36

skipif mysql # not compatible
query II rowsort label-2872
SELECT ALL 42 * + + ( + 77 ) AS col2, + ( - 36 ) + + 20 / + 28 * 17
----
3234
-36

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

query I rowsort
SELECT 10 - - 21 + + 59
----
90

query I rowsort
SELECT ( - + 88 ) + + 78 + - - 65 * 37 col2
----
2395

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL + COALESCE ( - COUNT( * ), - 37 DIV + + 70 ) * - SUM( 21 ) AS col1
----
21

skipif mysql # not compatible
query I rowsort label-2876
SELECT ALL + COALESCE ( - COUNT ( * ), - 37 / + + 70 ) * - SUM ( 21 ) AS col1
----
21

query I rowsort
SELECT ALL 6 * + - 9 col2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2878
SELECT MAX( + 21 ) col1
----
21

skipif mysql # not compatible
query I rowsort label-2878
SELECT MAX ( + 21 ) col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT DISTINCT COUNT( * ) + NULLIF ( - 24, 3 ) * - - 37
----
-887

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT COUNT ( * ) + NULLIF ( - 24, 3 ) * - - 37
----
-887

query I rowsort
SELECT DISTINCT 0 * - + 85
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2881
SELECT + 93, - COUNT( 23 ) * + - 72 / 73 * CAST( NULL AS SIGNED ) AS col1
----
93
NULL

skipif mysql # not compatible
query II rowsort label-2881
SELECT + 93, - COUNT ( 23 ) * + - 72 / 73 * CAST ( NULL AS INTEGER ) AS col1
----
93
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2882
SELECT MIN( ALL + ( 83 ) ), - 18 + + 85 AS col0
----
83
67

skipif mysql # not compatible
query II rowsort label-2882
SELECT MIN ( ALL + ( 83 ) ), - 18 + + 85 AS col0
----
83
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2884
SELECT ALL - MIN( ALL - 70 ) + 89 AS col1, 86 DIV + - 15 AS col1
----
159
-5

skipif mysql # not compatible
query II rowsort label-2884
SELECT ALL - MIN ( ALL - 70 ) + 89 AS col1, 86 / + - 15 AS col1
----
159
-5

query I rowsort
SELECT ALL - 9 + 66 col0
----
57

query I rowsort
SELECT 6 + - - 66
----
72

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

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

query I rowsort
SELECT ALL + 37 + + 17
----
54

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

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

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

skipif mysql # not compatible
query II rowsort label-2890
SELECT COUNT ( * ) AS col2, 44
----
1
44

onlyif mysql # aggregate syntax: 
query II rowsort label-2891
SELECT ALL + 10 * COUNT( - - 31 ), 47 + - 75 AS col2
----
10
-28

skipif mysql # not compatible
query II rowsort label-2891
SELECT ALL + 10 * COUNT ( - - 31 ), 47 + - 75 AS col2
----
10
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2892
SELECT - 71 + + MIN( - 2 ) * CAST( 38 AS SIGNED ) * 8 * - COUNT( * ) + + - 75 AS col0
----
462

skipif mysql # not compatible
query I rowsort label-2892
SELECT - 71 + + MIN ( - 2 ) * CAST ( 38 AS INTEGER ) * 8 * - COUNT ( * ) + + - 75 AS col0
----
462

query I rowsort
SELECT ALL + 58 + + 13 AS col0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2894
SELECT 6 + - + COUNT( * ) DIV 48 AS col0
----
6

skipif mysql # not compatible
query I rowsort label-2894
SELECT 6 + - + COUNT ( * ) / 48 AS col0
----
6

query I rowsort
SELECT - 29 * - 45
----
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT + 38 + + - SUM( ALL 5 ) + COUNT( * ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-2896
SELECT + 38 + + - SUM ( ALL 5 ) + COUNT ( * ) AS col1
----
34

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

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

query I rowsort
SELECT ALL - COALESCE ( 20, + 29 * + + 13 + 46, 15 )
----
-20

query I rowsort
SELECT 85 + + 78 AS col0
----
163

query I rowsort
SELECT 22 * 71 + 60 + + + ( - 1 )
----
1621

onlyif mysql # DIV for integer division: 
query I rowsort label-2901
SELECT 44 * 29 * 61 DIV + + 76
----
1024

skipif mysql # not compatible
query I rowsort label-2901
SELECT 44 * 29 * 61 / + + 76
----
1024

query I rowsort
SELECT ALL + - 8 - 10
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-2903
SELECT 62 DIV - 38
----
-1

skipif mysql # not compatible
query I rowsort label-2903
SELECT 62 / - 38
----
-1

query II rowsort
SELECT - + 77 AS col0, - 40 col0
----
-77
-40

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

query I rowsort
SELECT ALL 31 * - 67 AS col0
----
-2077

query I rowsort
SELECT + 15 + + ( - 25 ) + - 13
----
-23

query I rowsort
SELECT + + 96 * - 57 * 83
----
-454176

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2909
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + 41 - - 30 AS col2, 10
----
NULL
10

skipif mysql # not compatible
query II rowsort label-2909
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + 41 - - 30 AS col2, 10
----
NULL
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT - COALESCE ( 63, + COUNT( * ) ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-2910
SELECT - COALESCE ( 63, + COUNT ( * ) ) AS col0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL - 57 * + + COUNT( * ) col0
----
-57

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL - 57 * + + COUNT ( * ) col0
----
-57

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL + 40 * 77 * - CASE - 26 WHEN + 8 THEN - COUNT( * ) END * + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL + 40 * 77 * - CASE - 26 WHEN + 8 THEN - COUNT ( * ) END * + COUNT ( * )
----
NULL

query I rowsort
SELECT + ( - - 24 ) * + - 20 AS col1
----
-480

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

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT + 3 * ( COUNT ( * ) ) AS col0
----
3

query I rowsort
SELECT ALL NULLIF ( + 44, - + 9 ) AS col0
----
44

query I rowsort
SELECT ALL + 85 + + 52 * + - 75 + - 22 - + 6 - + - 64 * 51 + COALESCE ( + - 14, + 58 ) * - + 60 * ( 68 ) AS col1
----
56541

query I rowsort
SELECT ALL ( + 28 ) + - 57 AS col2
----
-29

query I rowsort
SELECT ALL 47 + - 61 AS col0
----
-14

query I rowsort
SELECT + 70 + + 12 + + - 3 AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT - COUNT( - 90 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-2921
SELECT - COUNT ( - 90 ) AS col2
----
-1

query I rowsort
SELECT ALL CASE + - 37 WHEN - NULLIF ( + 98, + + 58 - + - 91 + - - 97 - - 62 ) THEN 85 ELSE NULL END + ( 81 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + COALESCE ( + 54, - - COUNT( * ) ) - 30
----
24

skipif mysql # not compatible
query I rowsort label-2923
SELECT + COALESCE ( + 54, - - COUNT ( * ) ) - 30
----
24

query I rowsort
SELECT DISTINCT + 4 * 43 * - 14 * 87 + + 29
----
-209467

query I rowsort
SELECT - 99 * + + 37 * + + 20 * - + 51 AS col0
----
3736260

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

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

query I rowsort
SELECT ALL - 60 * NULLIF ( + 50, - + 89 ) + + 34
----
-2966

query I rowsort
SELECT DISTINCT + 27 * + 86 + - 73 AS col1
----
2249

onlyif mysql # aggregate syntax: 
query II rowsort label-2929
SELECT DISTINCT - COUNT( * ) * + COUNT( ALL - 9 ) + 69 AS col0, - COUNT( - + 33 ) AS col2
----
68
-1

skipif mysql # not compatible
query II rowsort label-2929
SELECT DISTINCT - COUNT ( * ) * + COUNT ( ALL - 9 ) + 69 AS col0, - COUNT ( - + 33 ) AS col2
----
68
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT + 80 DIV + 8
----
10

skipif mysql # not compatible
query I rowsort label-2930
SELECT + 80 / + 8
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2931
SELECT COALESCE ( + CAST( - 28 AS SIGNED ), - NULLIF ( 67, - + COUNT( * ) * - 59 / CAST( - 6 AS DECIMAL ) ) )
----
-28

skipif mysql # not compatible
query I rowsort label-2931
SELECT COALESCE ( + CAST ( - 28 AS INTEGER ), - NULLIF ( 67, - + COUNT ( * ) * - 59 / CAST ( - 6 AS REAL ) ) )
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT DISTINCT + + 36 * - + ( + + 22 ) * + 69 - + 64 + - 21 DIV + 36 + + ( + 59 ) * + 71 + + - 26 * 42 + - + 24 - - 52 AS col0
----
-51587

skipif mysql # not compatible
query I rowsort label-2932
SELECT DISTINCT + + 36 * - + ( + + 22 ) * + 69 - + 64 + - 21 / + 36 + + ( + 59 ) * + 71 + + - 26 * 42 + - + 24 - - 52 AS col0
----
-51587

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL + + CASE WHEN - 12 BETWEEN + 10 / 97 AND - - 84 * COUNT( * ) + - 57 THEN - 63 + - 74 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL + + CASE WHEN - 12 BETWEEN + 10 / 97 AND - - 84 * COUNT ( * ) + - 57 THEN - 63 + - 74 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL + 13 * + 79 * 68 AS col2
----
69836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2935
SELECT - 63 * - COUNT( * ) DIV - + 88 - 76
----
-76

skipif mysql # not compatible
query I rowsort label-2935
SELECT - 63 * - COUNT ( * ) / - + 88 - 76
----
-76

query I rowsort
SELECT DISTINCT + 63 * + 62 col0
----
3906

onlyif mysql # aggregate syntax: 
query II rowsort label-2937
SELECT + 29 + + COUNT( * ) AS col1, - 5 + - MAX( ALL - 75 ) col0
----
30
70

skipif mysql # not compatible
query II rowsort label-2937
SELECT + 29 + + COUNT ( * ) AS col1, - 5 + - MAX ( ALL - 75 ) col0
----
30
70

query I rowsort
SELECT - + ( + 84 ) * + 22
----
-1848

query I rowsort
SELECT + - 30 - 43 * - 60
----
2550

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT - - 25 DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT - - 25 / - 65 AS col1
----
0

query I rowsort
SELECT ALL 52 col0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT - + 55 + + - 58 * MIN( + + 6 ) AS col1
----
-403

skipif mysql # not compatible
query I rowsort label-2942
SELECT - + 55 + + - 58 * MIN ( + + 6 ) AS col1
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT DISTINCT + 17 * - 39 + 54 - - 54 * - COUNT( * ) AS col2
----
-663

skipif mysql # not compatible
query I rowsort label-2943
SELECT DISTINCT + 17 * - 39 + 54 - - 54 * - COUNT ( * ) AS col2
----
-663

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2944
SELECT - + CAST( NULL AS SIGNED ) + + 58 AS col2, 28 AS col0
----
NULL
28

skipif mysql # not compatible
query II rowsort label-2944
SELECT - + CAST ( NULL AS INTEGER ) + + 58 AS col2, 28 AS col0
----
NULL
28

query II rowsort
SELECT ALL + - 9 + - 12 AS col0, - 17 AS col1
----
-21
-17

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT - 59 + 37 + + 92 * - - 62 + + MIN( ALL 87 ) + - 52 AS col0
----
5717

skipif mysql # not compatible
query I rowsort label-2947
SELECT - 59 + 37 + + 92 * - - 62 + + MIN ( ALL 87 ) + - 52 AS col0
----
5717

query I rowsort
SELECT ALL - 54 + + + 88 col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + 99 + + - 52 + + 31 - + 90 * COUNT( * ) * + - 79 + - 39 col0
----
7149

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + 99 + + - 52 + + 31 - + 90 * COUNT ( * ) * + - 79 + - 39 col0
----
7149

query I rowsort
SELECT ALL ( - ( - 20 ) ) col2
----
20

onlyif mysql # DIV for integer division: 
query II rowsort label-2951
SELECT ALL ( - 72 ) + + 72 DIV - 10 + + 49 col0, 93 AS col2
----
-30
93

skipif mysql # not compatible
query II rowsort label-2951
SELECT ALL ( - 72 ) + + 72 / - 10 + + 49 col0, 93 AS col2
----
-30
93

query I rowsort
SELECT - 53 + - 64 AS col0
----
-117

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2954
SELECT DISTINCT ( - NULLIF ( - COUNT( * ), - MIN( DISTINCT 32 ) ) ) AS col1, 91 + - 28 + - 95 AS col0
----
1
-32

skipif mysql # not compatible
query II rowsort label-2954
SELECT DISTINCT ( - NULLIF ( - COUNT ( * ), - MIN ( DISTINCT 32 ) ) ) AS col1, 91 + - 28 + - 95 AS col0
----
1
-32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2955
SELECT DISTINCT + COUNT( + - NULLIF ( - 73, - 90 ) ) + - - 97 DIV - SUM( DISTINCT - 92 )
----
2

skipif mysql # not compatible
query I rowsort label-2955
SELECT DISTINCT + COUNT ( + - NULLIF ( - 73, - 90 ) ) + - - 97 / - SUM ( DISTINCT - 92 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT - NULLIF ( 52, + 21 + + COUNT( * ) )
----
-52

skipif mysql # not compatible
query I rowsort label-2956
SELECT - NULLIF ( 52, + 21 + + COUNT ( * ) )
----
-52

query I rowsort
SELECT + 6 + - 87 + + - 28 * + 89 AS col1
----
-2573

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT - 93 + - 25 * - - COUNT( * ) + 71
----
-47

skipif mysql # not compatible
query I rowsort label-2959
SELECT - 93 + - 25 * - - COUNT ( * ) + 71
----
-47

query I rowsort
SELECT DISTINCT + 64 * + 71 AS col0
----
4544

query III rowsort
SELECT DISTINCT 51 AS col2, 58 + - 33 AS col1, + 73 AS col1
----
51
25
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT 55 DIV - ( + 62 ) + 53 + - + COUNT( * ) * - 2 + + + COUNT( * )
----
56

skipif mysql # not compatible
query I rowsort label-2962
SELECT 55 / - ( + 62 ) + 53 + - + COUNT ( * ) * - 2 + + + COUNT ( * )
----
56

query II rowsort
SELECT - 51 * + 83 * - + 86, 34 AS col2
----
364038
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT + COUNT( * ) + + - 71 * + 25 * 7 AS col2
----
-12424

skipif mysql # not compatible
query I rowsort label-2965
SELECT + COUNT ( * ) + + - 71 * + 25 * 7 AS col2
----
-12424

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

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

query I rowsort
SELECT + 45 + + 37
----
82

query II rowsort
SELECT 86 * - 60 + + - 83 AS col0, 85 * 56
----
-5243
4760

query I rowsort
SELECT DISTINCT + 59 * - 43 + - + 56 + - 67 AS col2
----
-2660

onlyif mysql # DIV for integer division: 
query I rowsort label-2970
SELECT DISTINCT 8 DIV 91 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT 8 / 91 AS col1
----
0

query I rowsort
SELECT + 47 * + 10
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2972
SELECT 20 DIV 77 + COUNT( * ) * - - 98 * - 96 * 37 + 77 + + 37 * - 81
----
-351016

skipif mysql # not compatible
query I rowsort label-2972
SELECT 20 / 77 + COUNT ( * ) * - - 98 * - 96 * 37 + 77 + + 37 * - 81
----
-351016

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

query II rowsort
SELECT + 36 AS col1, NULLIF ( + 54, + 2 )
----
36
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL - CASE 12 WHEN ( 56 ) THEN - + COUNT( DISTINCT + + 45 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL - CASE 12 WHEN ( 56 ) THEN - + COUNT ( DISTINCT + + 45 ) ELSE NULL END
----
NULL

query I rowsort
SELECT ALL 66 + 18 * + 56
----
1074

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2977
SELECT 79 * - COALESCE ( 48, 13 * + 93 - + 93 * - COUNT( * ) - - 55 + + AVG ( DISTINCT - - 70 ), - - COUNT( * ), + COUNT( * ) ) + + + 42 / COUNT( * ) * + CAST( NULL AS SIGNED ) * - 75 * + + AVG ( 65 ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2977
SELECT 79 * - COALESCE ( 48, 13 * + 93 - + 93 * - COUNT ( * ) - - 55 + + AVG ( DISTINCT - - 70 ), - - COUNT ( * ), + COUNT ( * ) ) + + + 42 / COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - 75 * + + AVG ( 65 ) col2
----
NULL

query I rowsort
SELECT 60 + - 38 + 79 AS col2
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT DISTINCT - 88 + 76 + - 4 + + - MAX( + + 63 ) * + 69 + - COUNT( * ) - 95 * - 54 + + 13 + 69 * 59 + - 84 * + + 11 + COUNT( * ) * - - 70 AS col2
----
3996

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - 88 + 76 + - 4 + + - MAX ( + + 63 ) * + 69 + - COUNT ( * ) - 95 * - 54 + + 13 + 69 * 59 + - 84 * + + 11 + COUNT ( * ) * - - 70 AS col2
----
3996

onlyif mysql # aggregate syntax: 
query I rowsort label-2980
SELECT DISTINCT + MAX( + 55 ) + - + 8 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT + MAX ( + 55 ) + - + 8 AS col0
----
47

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

query I rowsort
SELECT ALL + + 74 + 42 * 8 * 74
----
24938

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2983
SELECT ALL 42 + + 6 + + MAX( DISTINCT - CAST( + 19 AS SIGNED ) ) * + - MAX( + 6 )
----
162

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL 42 + + 6 + + MAX ( DISTINCT - CAST ( + 19 AS INTEGER ) ) * + - MAX ( + 6 )
----
162

onlyif mysql # aggregate syntax: 
query III rowsort label-2984
SELECT 83, + 70 * + 35 + - + 37 + NULLIF ( - 83, ( 93 ) ) * ( - + 79 ) * + NULLIF ( + + 42, 76 * + COUNT( * ) ) col1, - 80 AS col0
----
83
277807
-80

skipif mysql # not compatible
query III rowsort label-2984
SELECT 83, + 70 * + 35 + - + 37 + NULLIF ( - 83, ( 93 ) ) * ( - + 79 ) * + NULLIF ( + + 42, 76 * + COUNT ( * ) ) col1, - 80 AS col0
----
83
277807
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL + 86 + + COUNT( * ) - 16
----
71

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + 86 + + COUNT ( * ) - 16
----
71

query I rowsort
SELECT ALL - 23 + 73 AS col0
----
50

query I rowsort
SELECT 35 * 25
----
875

query II rowsort
SELECT ALL 34 AS col1, + ( - 38 ) + 97 * + 68
----
34
6558

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT ALL 89 AS col1, 75 + MIN( DISTINCT + - 52 ) AS col2
----
89
23

skipif mysql # not compatible
query II rowsort label-2989
SELECT ALL 89 AS col1, 75 + MIN ( DISTINCT + - 52 ) AS col2
----
89
23

query II rowsort
SELECT 12 AS col0, - 56 AS col2
----
12
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2991
SELECT DISTINCT COALESCE ( - CAST( NULL AS SIGNED ), + 3, COUNT( * ), - - 61, - 73 + 24 + 56 + + - 86 * - - SUM( - 34 ) * COUNT( * ) ) * + + 0 + - + COUNT( * ) + CASE + + 19 WHEN - - 16 THEN NULL WHEN + 96 * - COALESCE ( 27, + 11 + - 78 * - + 63 + + 4, - 16 ) * + 41 / - - 13 THEN NULL ELSE + - 60 * - 20 END
----
1199

skipif mysql # not compatible
query I rowsort label-2991
SELECT DISTINCT COALESCE ( - CAST ( NULL AS INTEGER ), + 3, COUNT ( * ), - - 61, - 73 + 24 + 56 + + - 86 * - - SUM ( - 34 ) * COUNT ( * ) ) * + + 0 + - + COUNT ( * ) + CASE + + 19 WHEN - - 16 THEN NULL WHEN + 96 * - COALESCE ( 27, + 11 + - 78 * - + 63 + + 4, - 16 ) * + 41 / - - 13 THEN NULL ELSE + - 60 * - 20 END
----
1199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT DISTINCT + 41 + 62 + - 84 / + CASE + 22 WHEN 44 THEN - 79 WHEN CAST( NULL AS SIGNED ) * - 66 * - 39 THEN NULL ELSE NULL END + - MAX( - 97 ) + + 87 + 60 * - 21 + - COALESCE ( - 56, - + 42 / 16 * - 31 + MAX( + 62 ) + + 60 * - COUNT( * ) ) + + 76 * + - 74 - + NULLIF ( + + 3, - COUNT( DISTINCT + 70 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + 41 + 62 + - 84 / + CASE + 22 WHEN 44 THEN - 79 WHEN CAST ( NULL AS INTEGER ) * - 66 * - 39 THEN NULL ELSE NULL END + - MAX ( - 97 ) + + 87 + 60 * - 21 + - COALESCE ( - 56, - + 42 / 16 * - 31 + MAX ( + 62 ) + + 60 * - COUNT ( * ) ) + + 76 * + - 74 - + NULLIF ( + + 3, - COUNT ( DISTINCT + 70 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT 25 * + CAST( + + 29 AS SIGNED ) AS col0
----
725

skipif mysql # not compatible
query I rowsort label-2993
SELECT 25 * + CAST ( + + 29 AS INTEGER ) AS col0
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-2994
SELECT ALL + ( - COUNT( * ) ) - 40 - - 21 - + 5 * - 17 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + ( - COUNT ( * ) ) - 40 - - 21 - + 5 * - 17 AS col0
----
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT DISTINCT + 96 DIV + - 84 col2
----
-1

skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT + 96 / + - 84 col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2997
SELECT 44 DIV 81 col2
----
0

skipif mysql # not compatible
query I rowsort label-2997
SELECT 44 / 81 col2
----
0

query I rowsort
SELECT 15 * + + 86 * 34
----
43860

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2999
SELECT 50 + - COUNT( ALL + CAST( - + 72 AS SIGNED ) ) AS col2, + 9 * + 25 col1
----
49
225

skipif mysql # not compatible
query II rowsort label-2999
SELECT 50 + - COUNT ( ALL + CAST ( - + 72 AS INTEGER ) ) AS col2, + 9 * + 25 col1
----
49
225

query I rowsort
SELECT 24 * - 69
----
-1656

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT + 62 * - 93 + + + 11 + + CASE - - 20 WHEN + - 57 + 42 THEN 57 * + + MIN( + 65 ) WHEN + 91 / - 56 THEN NULL ELSE - + 50 + MAX( 95 ) END * - COUNT( * )
----
-5800

skipif mysql # not compatible
query I rowsort label-3002
SELECT + 62 * - 93 + + + 11 + + CASE - - 20 WHEN + - 57 + 42 THEN 57 * + + MIN ( + 65 ) WHEN + 91 / - 56 THEN NULL ELSE - + 50 + MAX ( 95 ) END * - COUNT ( * )
----
-5800

query I rowsort
SELECT ALL 48 * - 40
----
-1920

query II rowsort
SELECT ALL - ( + 81 ) * + + 43 * + 32 AS col2, + 40 + + 99 AS col2
----
-111456
139

query I rowsort
SELECT DISTINCT - - 72 * 27 - - + 80
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3006
SELECT ALL - CAST( - - 37 AS SIGNED ) AS col1
----
-37

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL - CAST ( - - 37 AS INTEGER ) AS col1
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT DISTINCT - 57, COUNT( * ) - - 61 col0
----
-57
62

skipif mysql # not compatible
query II rowsort label-3007
SELECT DISTINCT - 57, COUNT ( * ) - - 61 col0
----
-57
62

query I rowsort
SELECT ALL - 85 * - 68 / - - 88 * + - ( CASE + - 7 WHEN 9 THEN NULL WHEN 57 THEN - 27 END )
----
NULL

query I rowsort
SELECT + CASE - + 65 WHEN + + 19 THEN NULL WHEN + 66 THEN 80 * 65 END - + 57 + + 59
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL 37 + + MIN( ALL + 72 ) - - 34 col0
----
143

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL 37 + + MIN ( ALL + 72 ) - - 34 col0
----
143

query I rowsort
SELECT - 7 - + 96 + ( 23 ) AS col2
----
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-3012
SELECT - 81 DIV 51
----
-1

skipif mysql # not compatible
query I rowsort label-3012
SELECT - 81 / 51
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3013
SELECT COUNT( * ) * - CAST( 25 AS SIGNED ) * - 71 * + - ( - 63 )
----
111825

skipif mysql # not compatible
query I rowsort label-3013
SELECT COUNT ( * ) * - CAST ( 25 AS INTEGER ) * - 71 * + - ( - 63 )
----
111825

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

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

query I rowsort
SELECT ALL 64 + - 27 AS col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT ALL - 33 + - - CAST( - 24 AS SIGNED )
----
-57

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL - 33 + - - CAST ( - 24 AS INTEGER )
----
-57

query I rowsort
SELECT ALL ( 65 ) * + 48 * + - 34 AS col2
----
-106080

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3018
SELECT + 47 / - + 31 * + CASE + 97 WHEN - COUNT( * ) THEN NULL WHEN - NULLIF ( - + 71, 0 ) THEN - 69 END + - 44 * + 53 + + 43 + + 27 + + CAST( NULL AS DECIMAL ) + - COUNT( * ) * SUM( DISTINCT - + 4 ) * - + 48 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT + 47 / - + 31 * + CASE + 97 WHEN - COUNT ( * ) THEN NULL WHEN - NULLIF ( - + 71, 0 ) THEN - 69 END + - 44 * + 53 + + 43 + + 27 + + CAST ( NULL AS REAL ) + - COUNT ( * ) * SUM ( DISTINCT - + 4 ) * - + 48 AS col0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3020
SELECT DISTINCT 26 DIV + 17 AS col2, + MAX( DISTINCT 70 ) * 87
----
1
6090

skipif mysql # not compatible
query II rowsort label-3020
SELECT DISTINCT 26 / + 17 AS col2, + MAX ( DISTINCT 70 ) * 87
----
1
6090

query II rowsort
SELECT ALL - 78 + - + 60 AS col1, 85 - + ( 64 ) - 41 AS col0
----
-138
-20

query I rowsort
SELECT DISTINCT + 20 + + + 42 * 73
----
3086

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL + COUNT( * ) * + 92 + + NULLIF ( + 45, + ( ( 92 ) ) ) + 49 AS col2
----
186

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + COUNT ( * ) * + 92 + + NULLIF ( + 45, + ( ( 92 ) ) ) + 49 AS col2
----
186

query I rowsort
SELECT DISTINCT 49 + - 1 * + 73
----
-24

query I rowsort
SELECT - 23 * - - 67 AS col0
----
-1541

query II rowsort
SELECT ALL 36 + - + 57 AS col2, - 50 AS col0
----
-21
-50

query I rowsort
SELECT 90 + 24 - - - 34 AS col2
----
80

query I rowsort
SELECT 91 * 29 * - 52 + - - 1
----
-137227

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT ALL 0 - - NULLIF ( + 60, - COUNT( * ) - 67 ), 1 AS col2
----
60
1

skipif mysql # not compatible
query II rowsort label-3030
SELECT ALL 0 - - NULLIF ( + 60, - COUNT ( * ) - 67 ), 1 AS col2
----
60
1

query I rowsort
SELECT ALL - ( - 49 ) * - 12 + CASE 68 WHEN 31 THEN NULL WHEN 25 * - NULLIF ( - 65, - 90 ) THEN - 5 END AS col0
----
NULL

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

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

query I rowsort
SELECT 60 * 48 AS col1
----
2880

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

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

query II rowsort
SELECT - NULLIF ( - + 6, + - 18 ) col1, 19 col0
----
6
19

query I rowsort
SELECT 50 * - + 94 AS col2
----
-4700

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT MAX( - 25 ) AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT MAX ( - 25 ) AS col1
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3038
SELECT ALL + + 99 DIV + + CAST( - + 41 AS SIGNED ) * - COUNT( * ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-3038
SELECT ALL + + 99 / + + CAST ( - + 41 AS INTEGER ) * - COUNT ( * ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3039
SELECT DISTINCT SUM( DISTINCT 49 ), + 25 AS col0
----
49
25

skipif mysql # not compatible
query II rowsort label-3039
SELECT DISTINCT SUM ( DISTINCT 49 ), + 25 AS col0
----
49
25

query I rowsort
SELECT DISTINCT - 11 * + 38 + - + 93 + - 57 + 93
----
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT - CASE 33 WHEN + 8 / - 70 THEN + COUNT( * ) END * 9 + - + 26 + - 44
----
NULL

skipif mysql # not compatible
query I rowsort label-3041
SELECT - CASE 33 WHEN + 8 / - 70 THEN + COUNT ( * ) END * 9 + - + 26 + - 44
----
NULL

query I rowsort
SELECT ALL 70 * - + 84 + + 12 + 3
----
-5865

onlyif mysql # aggregate syntax: 
query II rowsort label-3043
SELECT - SUM( DISTINCT - + COALESCE ( - 41, + - 76 - 4 ) ), - 47 AS col0
----
-41
-47

skipif mysql # not compatible
query II rowsort label-3043
SELECT - SUM ( DISTINCT - + COALESCE ( - 41, + - 76 - 4 ) ), - 47 AS col0
----
-41
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3044
SELECT - - 43 + - ( - - 44 ) AS col0, - CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3044
SELECT - - 43 + - ( - - 44 ) AS col0, - CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL MIN( - + 77 ) * + - 5 + - COUNT( * ) * - + 17 * 86 * + 60 + - + 4 + + 91 col1
----
88192

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL MIN ( - + 77 ) * + - 5 + - COUNT ( * ) * - + 17 * 86 * + 60 + - + 4 + + 91 col1
----
88192

query I rowsort
SELECT + 86 * - ( + 90 ) + 7
----
-7733

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + COUNT( + 16 ) * - - 33 + - 21 + - - 99 + 41 + 62
----
214

skipif mysql # not compatible
query I rowsort label-3047
SELECT + COUNT ( + 16 ) * - - 33 + - 21 + - - 99 + 41 + 62
----
214

query I rowsort
SELECT ALL + COALESCE ( - 38, 45, + + 96 ) AS col1
----
-38

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

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

query I rowsort
SELECT - 54 + 34 + 82
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3051
SELECT + 68 + - 82 + + CAST( NULL AS SIGNED ) - + + 6 * 81 + 4 * - 3 * + - 81 * + COUNT( * ) * 61 + + 54
----
NULL

skipif mysql # not compatible
query I rowsort label-3051
SELECT + 68 + - 82 + + CAST ( NULL AS INTEGER ) - + + 6 * 81 + 4 * - 3 * + - 81 * + COUNT ( * ) * 61 + + 54
----
NULL

query I rowsort
SELECT - + 96 * + + 69 + - 66 col1
----
-6690

query I rowsort
SELECT ALL - - 73 * - 77 + 68 AS col1
----
-5553

query I rowsort
SELECT + + 36 * - ( + + 40 ) + + - 24
----
-1464

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT 86 * - + 63 * - NULLIF ( 80, 12 ) + + + 68 - + COUNT( * ) * - + CASE - 90 WHEN COUNT( * ) THEN NULL WHEN + + 51 - + 95 THEN 51 - 87 * - 8 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT 86 * - + 63 * - NULLIF ( 80, 12 ) + + + 68 - + COUNT ( * ) * - + CASE - 90 WHEN COUNT ( * ) THEN NULL WHEN + + 51 - + 95 THEN 51 - 87 * - 8 ELSE NULL END
----
NULL

query II rowsort
SELECT ALL 87 * + + 92 - - 5 AS col2, 16 * + + 72
----
8009
1152

onlyif mysql # aggregate syntax: 
query II rowsort label-3057
SELECT + 12 * - 33 * 10 col2, COUNT( * )
----
-3960
1

skipif mysql # not compatible
query II rowsort label-3057
SELECT + 12 * - 33 * 10 col2, COUNT ( * )
----
-3960
1

query I rowsort
SELECT ALL 82 - 63 AS col2
----
19

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

skipif mysql # not compatible
query II rowsort label-3059
SELECT - COUNT ( * ), - 86 AS col2
----
-1
-86

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

query II rowsort
SELECT ALL 88, - 39 AS col0
----
88
-39

query II rowsort
SELECT - 39, 33 AS col1
----
-39
33

query I rowsort
SELECT - 52 * + 58
----
-3016

query I rowsort
SELECT - 11 * + 60
----
-660

query I rowsort
SELECT + 28 - + 44
----
-16

query I rowsort
SELECT - ( - 96 ) AS col2
----
96

query I rowsort
SELECT - ( - 98 ) AS col2
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3068
SELECT 75, + MIN( 8 ) DIV + 58 AS col1
----
75
0

skipif mysql # not compatible
query II rowsort label-3068
SELECT 75, + MIN ( 8 ) / + 58 AS col1
----
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT + MAX( ALL 72 ) * 55 AS col1
----
3960

skipif mysql # not compatible
query I rowsort label-3069
SELECT + MAX ( ALL 72 ) * 55 AS col1
----
3960

query I rowsort
SELECT - ( - + 40 )
----
40

query II rowsort
SELECT ALL 64 col0, - 20
----
64
-20

query I rowsort
SELECT ALL 39 + + - 40 + - NULLIF ( 51, - 14 ) * - 15 col2
----
764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3073
SELECT ALL CASE + SUM( DISTINCT - CAST( 43 AS SIGNED ) ) WHEN + + 90 + 76 * - - 15 THEN - COUNT( + 46 ) END * + 90 * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL CASE + SUM ( DISTINCT - CAST ( 43 AS INTEGER ) ) WHEN + + 90 + 76 * - - 15 THEN - COUNT ( + 46 ) END * + 90 * + 82
----
NULL

query II rowsort
SELECT - 4, 14 AS col1
----
-4
14

query II rowsort
SELECT ALL 10 + - + 8 * + ( 68 ) AS col0, 81 AS col2
----
-534
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - MIN( DISTINCT + 63 )
----
-63

skipif mysql # not compatible
query I rowsort label-3076
SELECT - MIN ( DISTINCT + 63 )
----
-63

query II rowsort
SELECT - 65 AS col1, 19 AS col1
----
-65
19

query I rowsort
SELECT ALL + 77 + - 21
----
56

query II rowsort
SELECT - + 36 AS col1, 55
----
-36
55

query I rowsort
SELECT ALL + 3 * - + 98
----
-294

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3081
SELECT + 2 DIV - COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-3081
SELECT + 2 / - COUNT ( * ) col0
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3082
SELECT ALL + 49 / + - ( + COUNT( * ) ) * + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) + - COUNT( * ) * + + COUNT( * ) + ( 60 ) * + - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL + 49 / + - ( + COUNT ( * ) ) * + MIN ( DISTINCT CAST ( NULL AS REAL ) ) + - COUNT ( * ) * + + COUNT ( * ) + ( 60 ) * + - 79
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT + CAST( 7 AS SIGNED ) * + - COUNT( * ) + - + SUM( ALL - 51 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT + CAST ( 7 AS INTEGER ) * + - COUNT ( * ) + - + SUM ( ALL - 51 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3084
SELECT ALL + - 15 DIV + 39 * - 96 + - 73 + + 15 * + COUNT( * ) * 88 AS col2
----
1247

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + - 15 / + 39 * - 96 + - 73 + + 15 * + COUNT ( * ) * 88 AS col2
----
1247

query II rowsort
SELECT ALL + - 60 col1, 53 * - 46 + - 42 + + 31 + - + 28 * ( + + 13 ) + + 97 + - 58
----
-60
-2774

query II rowsort
SELECT + + 15, + 97 AS col0
----
15
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3087
SELECT DISTINCT - 35 DIV - 89 + CAST( + COUNT( * ) AS SIGNED ), - 44 DIV + 30 + - - 35 * 83 + + 68 * 14 AS col2
----
1
3856

skipif mysql # not compatible
query II rowsort label-3087
SELECT DISTINCT - 35 / - 89 + CAST ( + COUNT ( * ) AS INTEGER ), - 44 / + 30 + - - 35 * 83 + + 68 * 14 AS col2
----
1
3856

query II rowsort
SELECT - 11, 17 * ( + 59 ) * + + 74 AS col0
----
-11
74222

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3089
SELECT - - CASE 40 WHEN + 89 + - CAST( + 80 AS SIGNED ) THEN 16 * + COALESCE ( + 74, - + 93, - + 78 ) END * + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3089
SELECT - - CASE 40 WHEN + 89 + - CAST ( + 80 AS INTEGER ) THEN 16 * + COALESCE ( + 74, - + 93, - + 78 ) END * + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3090
SELECT ALL 50 DIV + - 31 + - COUNT( * ) AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL 50 / + - 31 + - COUNT ( * ) AS col1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT ALL - + 88 DIV - 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL - + 88 / - 98 col2
----
0

query I rowsort
SELECT + + 70 - + 95
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-3093
SELECT DISTINCT - 59 DIV ( - 46 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3093
SELECT DISTINCT - 59 / ( - 46 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT + - COALESCE ( COUNT( 52 ), 20 * + 29 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3094
SELECT + - COALESCE ( COUNT ( 52 ), 20 * + 29 ) AS col0
----
-1

query I rowsort
SELECT ALL + + ( + 77 ) AS col0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT + COUNT( * ) * - 73 AS col0
----
-73

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT + COUNT ( * ) * - 73 AS col0
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-3097
SELECT ALL - 18 * - 46 * - COALESCE ( - 3, - COALESCE ( 96, - 37 * 60 + - + 15 ) DIV + - 99 * + - 91 ) - - + 72 AS col2
----
2556

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL - 18 * - 46 * - COALESCE ( - 3, - COALESCE ( 96, - 37 * 60 + - + 15 ) / + - 99 * + - 91 ) - - + 72 AS col2
----
2556

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT ALL + CAST( + + 56 AS SIGNED ) * - 99 col2
----
-5544

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL + CAST ( + + 56 AS INTEGER ) * - 99 col2
----
-5544

query I rowsort
SELECT DISTINCT + ( 14 ) * + - 89
----
-1246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT + CAST( - ( + 64 ) AS SIGNED )
----
-64

skipif mysql # not compatible
query I rowsort label-3100
SELECT DISTINCT + CAST ( - ( + 64 ) AS INTEGER )
----
-64

query II rowsort
SELECT DISTINCT + 10 * - 3 col0, 74 * + 73
----
-30
5402

query I rowsort
SELECT - 35 + - - 40 col0
----
5

query I rowsort
SELECT ALL + ( ( + 58 ) )
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3104
SELECT - 52 * + - 14 AS col1, - COUNT( * ) * + + COUNT( * ) DIV 71
----
728
0

skipif mysql # not compatible
query II rowsort label-3104
SELECT - 52 * + - 14 AS col1, - COUNT ( * ) * + + COUNT ( * ) / 71
----
728
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT + ( 33 ) - - CAST( NULL AS SIGNED ) + 34 + - - ( 27 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3105
SELECT + ( 33 ) - - CAST ( NULL AS INTEGER ) + 34 + - - ( 27 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT - 81 + - MIN( + ( 89 ) )
----
-170

skipif mysql # not compatible
query I rowsort label-3106
SELECT - 81 + - MIN ( + ( 89 ) )
----
-170

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT 53 + MIN( - 70 )
----
-17

skipif mysql # not compatible
query I rowsort label-3107
SELECT 53 + MIN ( - 70 )
----
-17

query I rowsort
SELECT ALL 69 * - 87
----
-6003

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3109
SELECT ALL - CAST( - + 47 AS SIGNED ) DIV + 10 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - CAST ( - + 47 AS INTEGER ) / + 10 AS col2
----
4

query I rowsort
SELECT DISTINCT 86 + + + 26
----
112

query I rowsort
SELECT 78 + - - 12 col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT ALL 33 + COUNT( * )
----
34

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL 33 + COUNT ( * )
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT NULLIF ( 21, - COUNT( * ) ) + 13 AS col0
----
34

skipif mysql # not compatible
query I rowsort label-3113
SELECT NULLIF ( 21, - COUNT ( * ) ) + 13 AS col0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT 45 * - + 62 * COUNT( * ) - - 52 AS col2
----
-2738

skipif mysql # not compatible
query I rowsort label-3114
SELECT 45 * - + 62 * COUNT ( * ) - - 52 AS col2
----
-2738

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT 7 * + ( - ( - + COUNT( * ) ) )
----
7

skipif mysql # not compatible
query I rowsort label-3115
SELECT 7 * + ( - ( - + COUNT ( * ) ) )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT DISTINCT 88 + + + COUNT( * ) col0
----
89

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT 88 + + + COUNT ( * ) col0
----
89

query I rowsort
SELECT + ( - - 52 )
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT SUM( ALL + 42 ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3118
SELECT SUM ( ALL + 42 ) AS col2
----
42

query I rowsort
SELECT ALL + 80 - 6 AS col1
----
74

query I rowsort
SELECT DISTINCT 15 * + + 10 * 98 + - 21 AS col0
----
14679

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3121
SELECT + + 73 DIV + 29 + 64 + - COUNT( DISTINCT + 38 ) * + 78 col1
----
-12

skipif mysql # not compatible
query I rowsort label-3121
SELECT + + 73 / + 29 + 64 + - COUNT ( DISTINCT + 38 ) * + 78 col1
----
-12

query I rowsort
SELECT + 94 * 81
----
7614

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3123
SELECT CAST( COUNT( * ) AS SIGNED ) * + + 79 - 16 * + 10 AS col0
----
-81

skipif mysql # not compatible
query I rowsort label-3123
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + + 79 - 16 * + 10 AS col0
----
-81

query II rowsort
SELECT - 3 + - + 35, + 29 - - 84 + 38 AS col0
----
-38
151

query I rowsort
SELECT ( + 24 ) AS col0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-3126
SELECT - - 58 * - 17 + - 20 + + 76 * + 30, COUNT( * ) AS col2
----
1274
1

skipif mysql # not compatible
query II rowsort label-3126
SELECT - - 58 * - 17 + - 20 + + 76 * + 30, COUNT ( * ) AS col2
----
1274
1

query I rowsort
SELECT ALL + + 23 - 93 + 52 * 99
----
5078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL - - CAST( + CAST( - 88 AS SIGNED ) AS SIGNED )
----
-88

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL - - CAST ( + CAST ( - 88 AS INTEGER ) AS INTEGER )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3129
SELECT 23 * - + CASE - - CAST( NULL AS SIGNED ) WHEN + 7 * COUNT( 34 ) + COUNT( * ) + 22 / + 53 THEN 67 END + - 9 * + + NULLIF ( + + 62, + 30 - + - 68 * + 61 + - - 60 * + MAX( DISTINCT + 53 ) + + 3 ) + - AVG ( - 94 ) + 56, 99 * + + ( 55 ) - - 51 AS col2
----
NULL
5496

skipif mysql # not compatible
query II rowsort label-3129
SELECT 23 * - + CASE - - CAST ( NULL AS INTEGER ) WHEN + 7 * COUNT ( 34 ) + COUNT ( * ) + 22 / + 53 THEN 67 END + - 9 * + + NULLIF ( + + 62, + 30 - + - 68 * + 61 + - - 60 * + MAX ( DISTINCT + 53 ) + + 3 ) + - AVG ( - 94 ) + 56, 99 * + + ( 55 ) - - 51 AS col2
----
NULL
5496

query I rowsort
SELECT 35 + - 60 + 56 * - 28 AS col0
----
-1593

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL - SUM( 79 ) AS col0
----
-79

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - SUM ( 79 ) AS col0
----
-79

query I rowsort
SELECT 9 * - 92
----
-828

query I rowsort
SELECT 44 + + - ( + - ( 26 ) ) * - ( + 86 ) AS col0
----
-2192

query I rowsort
SELECT + 90 * - 27 * 61 + + 2
----
-148228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3135
SELECT COUNT( * ) DIV - + 20 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3135
SELECT COUNT ( * ) / - + 20 AS col1
----
0

query I rowsort
SELECT DISTINCT - ( 53 ) col2
----
-53

query I rowsort
SELECT DISTINCT - 15 + + - 58
----
-73

query I rowsort
SELECT ALL + 61 * - - 44 * + 30 * + 92 col2
----
7407840

onlyif mysql # aggregate syntax: 
query II rowsort label-3139
SELECT ALL - COUNT( * ) AS col1, CASE + - SUM( DISTINCT - 30 ) WHEN - - 96 THEN + + 11 / - + 46 END + - 36
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3139
SELECT ALL - COUNT ( * ) AS col1, CASE + - SUM ( DISTINCT - 30 ) WHEN - - 96 THEN + + 11 / - + 46 END + - 36
----
-1
NULL

query II rowsort
SELECT - 50 AS col2, 29 col1
----
-50
29

query II rowsort
SELECT DISTINCT + 88 + ( + 5 ) col2, - 12 AS col0
----
93
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT ALL - 34 + - + CASE + COUNT( * ) WHEN COUNT( DISTINCT 3 ) THEN NULL ELSE + 55 - + 81 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL - 34 + - + CASE + COUNT ( * ) WHEN COUNT ( DISTINCT 3 ) THEN NULL ELSE + 55 - + 81 END AS col1
----
NULL

query I rowsort
SELECT ALL - 61 * + - 63
----
3843

query II rowsort
SELECT 38 AS col1, 16
----
38
16

query I rowsort
SELECT ALL + 98 + + 77 AS col1
----
175

query I rowsort
SELECT DISTINCT + 89 + - 60
----
29

query I rowsort
SELECT DISTINCT - 16 + 38
----
22

onlyif mysql # DIV for integer division: 
query I rowsort label-3148
SELECT 78 DIV + 75 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3148
SELECT 78 / + 75 AS col2
----
1

query I rowsort
SELECT ALL 79 * + COALESCE ( + 97, 12 + - 48, 94 )
----
7663

query I rowsort
SELECT ALL + 71 + + 34
----
105

query I rowsort
SELECT DISTINCT 14 * - 33 AS col0
----
-462

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT DISTINCT - 8 DIV + 42
----
0

skipif mysql # not compatible
query I rowsort label-3152
SELECT DISTINCT - 8 / + 42
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL 32 - 69 * - COUNT( * )
----
101

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL 32 - 69 * - COUNT ( * )
----
101

query I rowsort
SELECT 3 - - 31
----
34

query I rowsort
SELECT 74 * 23 AS col2
----
1702

query I rowsort
SELECT 10 + 20
----
30

query I rowsort
SELECT NULLIF ( - 0, + 66 ) * - 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT ALL NULLIF ( + MAX( - 36 ), 51 ) * + 80
----
-2880

skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL NULLIF ( + MAX ( - 36 ), 51 ) * + 80
----
-2880

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT 93 DIV 23 col0
----
4

skipif mysql # not compatible
query I rowsort label-3159
SELECT 93 / 23 col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT COUNT( * ) * 34
----
34

skipif mysql # not compatible
query I rowsort label-3160
SELECT COUNT ( * ) * 34
----
34

query I rowsort
SELECT 38 * - 67 AS col0
----
-2546

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT MIN( 97 )
----
97

skipif mysql # not compatible
query I rowsort label-3162
SELECT MIN ( 97 )
----
97

query I rowsort
SELECT 28 * 8
----
224

query I rowsort
SELECT ALL 59 * + 67
----
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT SUM( 82 )
----
82

skipif mysql # not compatible
query I rowsort label-3165
SELECT SUM ( 82 )
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT + MIN( 4 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-3166
SELECT + MIN ( 4 ) AS col0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT ALL 6 DIV + 24 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL 6 / + 24 AS col0
----
0

query I rowsort
SELECT 18 * 31
----
558

query I rowsort
SELECT 54 * 42 AS col0
----
2268

query I rowsort
SELECT ALL - 53 * 16 + + 12 * 75
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT 28 * COUNT( * ) - + CAST( - 37 AS SIGNED ) col1
----
65

skipif mysql # not compatible
query I rowsort label-3171
SELECT 28 * COUNT ( * ) - + CAST ( - 37 AS INTEGER ) col1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT + MAX( DISTINCT 99 ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-3172
SELECT + MAX ( DISTINCT 99 ) AS col0
----
99

query I rowsort
SELECT ALL - 3 * - 39 + 69 AS col1
----
186

query I rowsort
SELECT - 49 * 77 - - 99 AS col0
----
-3674

query I rowsort
SELECT ALL 70 * - 91
----
-6370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3176
SELECT DISTINCT - 59 * + CASE NULLIF ( - CAST( NULL AS SIGNED ), + 48 ) * - CASE - COUNT( * ) DIV - 66 WHEN - CASE + ( + ( + COALESCE ( - 62, 4 ) ) ) WHEN 27 * 13 THEN NULL WHEN + 33 THEN 77 * - 53 END THEN COUNT( * ) + + 99 WHEN - 63 THEN + 70 ELSE + 12 + 31 * + COUNT( * ) END WHEN COUNT( * ) THEN NULL WHEN - ( + 73 ) THEN NULL WHEN 51 * 32 THEN NULL ELSE - 77 END + COUNT( * ) DIV - 52 AS col1
----
4543

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT - 59 * + CASE NULLIF ( - CAST ( NULL AS INTEGER ), + 48 ) * - CASE - COUNT ( * ) / - 66 WHEN - CASE + ( + ( + COALESCE ( - 62, 4 ) ) ) WHEN 27 * 13 THEN NULL WHEN + 33 THEN 77 * - 53 END THEN COUNT ( * ) + + 99 WHEN - 63 THEN + 70 ELSE + 12 + 31 * + COUNT ( * ) END WHEN COUNT ( * ) THEN NULL WHEN - ( + 73 ) THEN NULL WHEN 51 * 32 THEN NULL ELSE - 77 END + COUNT ( * ) / - 52 AS col1
----
4543

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3177
SELECT ALL + COALESCE ( 97, + 96 * - CAST( - 81 AS SIGNED ) - + COUNT( * ) ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + COALESCE ( 97, + 96 * - CAST ( - 81 AS INTEGER ) - + COUNT ( * ) ) AS col0
----
97

query I rowsort
SELECT ALL + 26 * 36 + + 38 AS col1
----
974

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT DISTINCT COUNT( * ) + 64 AS col2
----
65

skipif mysql # not compatible
query I rowsort label-3179
SELECT DISTINCT COUNT ( * ) + 64 AS col2
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT ALL - 2 + 65 DIV NULLIF ( 17, MIN( DISTINCT + 27 ) * 70 )
----
1

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - 2 + 65 / NULLIF ( 17, MIN ( DISTINCT + 27 ) * 70 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT + MIN( DISTINCT 50 ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-3181
SELECT + MIN ( DISTINCT 50 ) AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT + 22 + COUNT( * ) * + 19 AS col0
----
41

skipif mysql # not compatible
query I rowsort label-3182
SELECT + 22 + COUNT ( * ) * + 19 AS col0
----
41

query I rowsort
SELECT ALL + 2 + NULLIF ( + 53, 77 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT + COUNT( * ) + 76
----
77

skipif mysql # not compatible
query I rowsort label-3184
SELECT + COUNT ( * ) + 76
----
77

query I rowsort
SELECT - ( 2 ) * 72
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT ALL - COUNT( * ) + + 9
----
8

skipif mysql # not compatible
query I rowsort label-3186
SELECT ALL - COUNT ( * ) + + 9
----
8

query I rowsort
SELECT ( 36 ) * - 75 + 72 col0
----
-2628

query I rowsort
SELECT DISTINCT COALESCE ( 95, 49 ) AS col2
----
95

query I rowsort
SELECT ALL - ( 29 ) AS col1
----
-29

query I rowsort
SELECT DISTINCT 47 - 23 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT DISTINCT - - ( 9 ) * NULLIF ( - 11 * 99, COALESCE ( - 33, MIN( 39 ) ) * 35 ) col1
----
-9801

skipif mysql # not compatible
query I rowsort label-3191
SELECT DISTINCT - - ( 9 ) * NULLIF ( - 11 * 99, COALESCE ( - 33, MIN ( 39 ) ) * 35 ) col1
----
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3192
SELECT - CAST( 35 AS SIGNED )
----
-35

skipif mysql # not compatible
query I rowsort label-3192
SELECT - CAST ( 35 AS INTEGER )
----
-35

query I rowsort
SELECT - 9 + + 88 * 13 AS col1
----
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT - 49 * + COUNT( * )
----
-49

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 49 * + COUNT ( * )
----
-49

query I rowsort
SELECT - + 8 * + 79
----
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT COUNT( ( 35 ) )
----
1

skipif mysql # not compatible
query I rowsort label-3196
SELECT COUNT ( ( 35 ) )
----
1

query I rowsort
SELECT - + 69 AS col1
----
-69

query I rowsort
SELECT ALL NULLIF ( + 0, 52 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT - + 59 DIV - 50
----
1

skipif mysql # not compatible
query I rowsort label-3199
SELECT - + 59 / - 50
----
1

query I rowsort
SELECT ALL 51 * 36 AS col1
----
1836

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT - NULLIF ( - 13, COUNT( + 31 ) + COUNT( * ) ) + COUNT( * ) * 85
----
98

skipif mysql # not compatible
query I rowsort label-3201
SELECT - NULLIF ( - 13, COUNT ( + 31 ) + COUNT ( * ) ) + COUNT ( * ) * 85
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT + 20 * COUNT( * ) AS col0
----
20

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT + 20 * COUNT ( * ) AS col0
----
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3203
SELECT + COUNT( * ) DIV - 55 * - ( - 19 )
----
0

skipif mysql # not compatible
query I rowsort label-3203
SELECT + COUNT ( * ) / - 55 * - ( - 19 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT - 29 + + + CAST( NULL AS SIGNED ) / 4
----
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT - 29 + + + CAST ( NULL AS INTEGER ) / 4
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ( SUM( - 54 ) )
----
-54

skipif mysql # not compatible
query I rowsort label-3205
SELECT ( SUM ( - 54 ) )
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3206
SELECT 97 DIV + + COUNT( * ) - 84
----
13

skipif mysql # not compatible
query I rowsort label-3206
SELECT 97 / + + COUNT ( * ) - 84
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3207
SELECT DISTINCT - 15 * - 79 * CASE ( 0 ) WHEN - 43 * + CAST( NULL AS SIGNED ) THEN - 63 ELSE NULL END + - 56 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT - 15 * - 79 * CASE ( 0 ) WHEN - 43 * + CAST ( NULL AS INTEGER ) THEN - 63 ELSE NULL END + - 56 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL + COUNT( * ) * + + 22 * COUNT( * ) + + 67 AS col0
----
89

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL + COUNT ( * ) * + + 22 * COUNT ( * ) + + 67 AS col0
----
89

query I rowsort
SELECT DISTINCT 44 * - - ( ( - 71 ) ) + 46 * + 88 AS col2
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT CASE + COUNT( * ) WHEN - 85 * 3 THEN + ( 47 ) ELSE - 52 END * 89 + 2
----
-4626

skipif mysql # not compatible
query I rowsort label-3210
SELECT CASE + COUNT ( * ) WHEN - 85 * 3 THEN + ( 47 ) ELSE - 52 END * 89 + 2
----
-4626

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT ALL COUNT( * ) * + 67 + - COUNT( * )
----
66

skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL COUNT ( * ) * + 67 + - COUNT ( * )
----
66

query I rowsort
SELECT DISTINCT ( - 57 ) * - 18 + 51
----
1077

query I rowsort
SELECT - 40 * + - 47
----
1880

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT NULLIF ( - COUNT( DISTINCT - 23 ), - MIN( - 92 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3214
SELECT NULLIF ( - COUNT ( DISTINCT - 23 ), - MIN ( - 92 ) ) AS col2
----
-1

query I rowsort
SELECT 7 * 1 + - 0 * + 78
----
7

query I rowsort
SELECT CASE 40 WHEN + 84 + + NULLIF ( - 47, 3 ) * 96 THEN 61 END
----
NULL

query I rowsort
SELECT ALL 4 * - + 77
----
-308

query I rowsort
SELECT + ( 93 ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT ALL + + 39 * - - CAST( NULL AS SIGNED ) - 35 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL + + 39 * - - CAST ( NULL AS INTEGER ) - 35 AS col1
----
NULL

query I rowsort
SELECT ALL 36 * - 30
----
-1080

query I rowsort
SELECT + NULLIF ( - 6, 5 )
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3222
SELECT DISTINCT - COALESCE ( + 42, 25 * - 8 + 18 * COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-3222
SELECT DISTINCT - COALESCE ( + 42, 25 * - 8 + 18 * COUNT ( * ) )
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3223
SELECT + + 3 DIV 13
----
0

skipif mysql # not compatible
query I rowsort label-3223
SELECT + + 3 / 13
----
0

query I rowsort
SELECT - + 98 * 32
----
-3136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT + - 29 - - CASE + 0 WHEN + ( 36 ) THEN CASE + 48 WHEN - 3 THEN NULL WHEN 2 * 58 + + 69 * COALESCE ( + 66, + 56, + CAST( NULL AS SIGNED ) + - 42, 20 / + COALESCE ( COUNT( * ), COUNT( * ) ) ) THEN - 39 - - 96 ELSE - 83 END WHEN + 71 THEN NULL END - 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT + - 29 - - CASE + 0 WHEN + ( 36 ) THEN CASE + 48 WHEN - 3 THEN NULL WHEN 2 * 58 + + 69 * COALESCE ( + 66, + 56, + CAST ( NULL AS INTEGER ) + - 42, 20 / + COALESCE ( COUNT ( * ), COUNT ( * ) ) ) THEN - 39 - - 96 ELSE - 83 END WHEN + 71 THEN NULL END - 29 col1
----
NULL

query I rowsort
SELECT - - 23 * + 17 AS col2
----
391

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3227
SELECT ALL + NULLIF ( + - 70, CAST( + 92 AS DECIMAL ) ) * 79 AS col2
----
-5530

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + NULLIF ( + - 70, CAST ( + 92 AS REAL ) ) * 79 AS col2
----
-5530

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT + 69 DIV - COALESCE ( + 15, 38 )
----
-4

skipif mysql # not compatible
query I rowsort label-3228
SELECT + 69 / - COALESCE ( + 15, 38 )
----
-4

query I rowsort
SELECT - 82 * - 27 - - 80 * 47 AS col0
----
5974

query I rowsort
SELECT - + 71 + + 28 AS col0
----
-43

query I rowsort
SELECT + + 2 * 62 + - 17 * 78 AS col1
----
-1202

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - - 96 + COUNT( * )
----
97

skipif mysql # not compatible
query I rowsort label-3232
SELECT - - 96 + COUNT ( * )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3233
SELECT - COALESCE ( + SUM( DISTINCT - 73 ), + 20 )
----
73

skipif mysql # not compatible
query I rowsort label-3233
SELECT - COALESCE ( + SUM ( DISTINCT - 73 ), + 20 )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT ALL - + 36 + - + COUNT( * ) + COUNT( * ) AS col2
----
-36

skipif mysql # not compatible
query I rowsort label-3234
SELECT ALL - + 36 + - + COUNT ( * ) + COUNT ( * ) AS col2
----
-36

query I rowsort
SELECT - ( - 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - SUM( DISTINCT + 46 )
----
-46

skipif mysql # not compatible
query I rowsort label-3236
SELECT - SUM ( DISTINCT + 46 )
----
-46

query I rowsort
SELECT - 6 * - 11 * + 95 col1
----
6270

query I rowsort
SELECT DISTINCT + 28 + 12
----
40

query II rowsort
SELECT 16, 69 * + 22 * 74 - 62 * + 52 col2
----
16
109108

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL - ( - + COUNT( * ) ) + + - COUNT( * ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - ( - + COUNT ( * ) ) + + - COUNT ( * ) AS col1
----
0

query II rowsort
SELECT DISTINCT - 21, - COALESCE ( 69, 57 ) AS col1
----
-21
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3242
SELECT ALL + 2 + - CAST( NULL AS SIGNED ) + - COUNT( * ) + - 99 * - 72 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3242
SELECT ALL + 2 + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) + - 99 * - 72 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT DISTINCT - CASE 75 WHEN 84 - + COUNT( * ) THEN NULL WHEN 95 THEN + 75 * + AVG ( ALL - 41 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - CASE 75 WHEN 84 - + COUNT ( * ) THEN NULL WHEN 95 THEN + 75 * + AVG ( ALL - 41 ) END
----
NULL

query II rowsort
SELECT 46 AS col1, + 22
----
46
22

query I rowsort
SELECT ALL + 2 + 46 * 81 AS col2
----
3728

query I rowsort
SELECT 50 - + 30 + + 86 * - 17
----
-1442

onlyif mysql # aggregate syntax: 
query I rowsort label-3247
SELECT ALL - 39 * - CASE CASE 47 WHEN 97 * 28 THEN NULL ELSE + 18 + - 0 END WHEN 34 * + 44 THEN - 70 ELSE MIN( DISTINCT + 62 ) END
----
2418

skipif mysql # not compatible
query I rowsort label-3247
SELECT ALL - 39 * - CASE CASE 47 WHEN 97 * 28 THEN NULL ELSE + 18 + - 0 END WHEN 34 * + 44 THEN - 70 ELSE MIN ( DISTINCT + 62 ) END
----
2418

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT 2 * - + 77 - + MIN( DISTINCT 21 ) col0
----
-175

skipif mysql # not compatible
query I rowsort label-3248
SELECT 2 * - + 77 - + MIN ( DISTINCT 21 ) col0
----
-175

query I rowsort
SELECT 62 * - + 16
----
-992

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ( COUNT( * ) ) * - 32 + 97
----
65

skipif mysql # not compatible
query I rowsort label-3250
SELECT ( COUNT ( * ) ) * - 32 + 97
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT DISTINCT 21 DIV + 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT 21 / + 56 AS col0
----
0

query I rowsort
SELECT 94 - - + 36
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT MAX( - CASE - - 59 WHEN + 20 THEN 76 END ) * + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3253
SELECT MAX ( - CASE - - 59 WHEN + 20 THEN 76 END ) * + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT + CAST( NULL AS SIGNED ) * ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3254
SELECT + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3255
SELECT 7 + CAST( - ( 44 ) AS SIGNED ) AS col0
----
-37

skipif mysql # not compatible
query I rowsort label-3255
SELECT 7 + CAST ( - ( 44 ) AS INTEGER ) AS col0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT COUNT( * ) * - - 89 - - SUM( ALL - 68 )
----
21

skipif mysql # not compatible
query I rowsort label-3256
SELECT COUNT ( * ) * - - 89 - - SUM ( ALL - 68 )
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3257
SELECT ALL + 63 * + COALESCE ( + 88, - 72 ) DIV COUNT( * ) + 42 AS col2
----
5586

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + 63 * + COALESCE ( + 88, - 72 ) / COUNT ( * ) + 42 AS col2
----
5586

query I rowsort
SELECT 27 * - 9 + 96
----
-147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT ALL 70 * CAST( - 64 AS SIGNED )
----
-4480

skipif mysql # not compatible
query I rowsort label-3259
SELECT ALL 70 * CAST ( - 64 AS INTEGER )
----
-4480

query I rowsort
SELECT 83 * - 8 * + + 52 + 21 * - 40
----
-35368

query I rowsort
SELECT 76 + 92
----
168

query I rowsort
SELECT ALL + 3 * - ( COALESCE ( 95, + 31 - 82, 60 ) ) * 62
----
-17670

onlyif mysql # DIV for integer division: 
query I rowsort label-3263
SELECT 7 DIV + 5
----
1

skipif mysql # not compatible
query I rowsort label-3263
SELECT 7 / + 5
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT DISTINCT - 81 + - + COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-3264
SELECT DISTINCT - 81 + - + COUNT ( * )
----
-82

query I rowsort
SELECT DISTINCT 54 + ( - 84 )
----
-30

query I rowsort
SELECT 55 * 76
----
4180

query I rowsort
SELECT + 94 + 89
----
183

query I rowsort
SELECT DISTINCT CASE - 51 WHEN + 65 + + 87 * - 53 THEN ( - 59 ) - 50 * 58 ELSE NULL END + - 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3269
SELECT ALL + ( + NULLIF ( + - 58, + ( + ( 69 ) ) ) ) + - ( CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + ( + NULLIF ( + - 58, + ( + ( 69 ) ) ) ) + - ( CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3270
SELECT ALL COALESCE ( COUNT( * ), - - 20 ) DIV - 38 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL COALESCE ( COUNT ( * ), - - 20 ) / - 38 AS col1
----
0

query I rowsort
SELECT - 69 + + ( - 92 )
----
-161

query II rowsort
SELECT ALL - 70 + - + 35 AS col0, 60 AS col0
----
-105
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3273
SELECT ALL CAST( NULL AS SIGNED ) * 22 col1, - 28
----
NULL
-28

skipif mysql # not compatible
query II rowsort label-3273
SELECT ALL CAST ( NULL AS INTEGER ) * 22 col1, - 28
----
NULL
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT 69 + - + CAST( NULL AS SIGNED ) * MAX( ALL + CAST( + 2 AS SIGNED ) ) * + 63 - 77 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT 69 + - + CAST ( NULL AS INTEGER ) * MAX ( ALL + CAST ( + 2 AS INTEGER ) ) * + 63 - 77 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT 7 * - 68 + + + COUNT( * ) AS col0
----
-475

skipif mysql # not compatible
query I rowsort label-3275
SELECT 7 * - 68 + + + COUNT ( * ) AS col0
----
-475

query I rowsort
SELECT ALL - 70 - - 32
----
-38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3277
SELECT ALL + 16 * - CAST( NULL AS DECIMAL ) * COUNT( DISTINCT + 86 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + 16 * - CAST ( NULL AS REAL ) * COUNT ( DISTINCT + 86 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT COUNT( DISTINCT - + 56 )
----
1

skipif mysql # not compatible
query I rowsort label-3278
SELECT COUNT ( DISTINCT - + 56 )
----
1

query I rowsort
SELECT DISTINCT - ( - ( 73 ) ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ( - 54 ) * 31 * 53 + - 1 * - COUNT( * ) col1
----
-88721

skipif mysql # not compatible
query I rowsort label-3280
SELECT ( - 54 ) * 31 * 53 + - 1 * - COUNT ( * ) col1
----
-88721

query I rowsort
SELECT ALL 98 - - 72 + + 34 * - 60 - + 22 AS col2
----
-1892

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT + COUNT( * ) * + + 36 * - 16 + 26 + 93 AS col0
----
-457

skipif mysql # not compatible
query I rowsort label-3282
SELECT + COUNT ( * ) * + + 36 * - 16 + 26 + 93 AS col0
----
-457

query II rowsort
SELECT 85 * - - 3 AS col2, 6 AS col2
----
255
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT ALL - CASE 55 WHEN + + MIN( DISTINCT - 79 ) + 28 THEN - 15 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL - CASE 55 WHEN + + MIN ( DISTINCT - 79 ) + 28 THEN - 15 END AS col2
----
NULL

query I rowsort
SELECT 97 * + 54 * + - ( - 84 ) * + 92 AS col1
----
40479264

onlyif mysql # DIV for integer division: 
query I rowsort label-3286
SELECT 74 DIV - + 93 * + - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT 74 / - + 93 * + - 19 AS col2
----
0

query I rowsort
SELECT + ( - 39 ) AS col2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3288
SELECT DISTINCT - COUNT( * ) * + 90 * + 36 - 30 DIV 71 col2
----
-3240

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - COUNT ( * ) * + 90 * + 36 - 30 / 71 col2
----
-3240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT 21 / - 84 * - 19 * - CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT 21 / - 84 * - 19 * - CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT + - 99 * - 87 + + + 74 * - COUNT( * ) + + 97
----
8636

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT + - 99 * - 87 + + + 74 * - COUNT ( * ) + + 97
----
8636

query I rowsort
SELECT 11 * - + 89 + - 91
----
-1070

query I rowsort
SELECT ALL + + 74 * 86 + 6
----
6370

query I rowsort
SELECT 29 * + 39 + 66 - - 71 col2
----
1268

query I rowsort
SELECT - 42 * + 42 + + 39 AS col0
----
-1725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3295
SELECT ALL + 26 DIV - 69 * ( COUNT( * ) ) + - 22 AS col2
----
-22

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + 26 / - 69 * ( COUNT ( * ) ) + - 22 AS col2
----
-22

query I rowsort
SELECT + + ( + 20 )
----
20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3297
SELECT ALL - CAST( + - 49 AS SIGNED ) + - + 8 + 28 DIV 92
----
41

skipif mysql # not compatible
query I rowsort label-3297
SELECT ALL - CAST ( + - 49 AS INTEGER ) + - + 8 + 28 / 92
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3298
SELECT ALL 4 + - + COUNT( * )
----
3

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL 4 + - + COUNT ( * )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3299
SELECT - - CAST( + 79 AS SIGNED ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-3299
SELECT - - CAST ( + 79 AS INTEGER ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT ALL 88 + - + 71 + - + COUNT( - 96 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL 88 + - + 71 + - + COUNT ( - 96 ) AS col1
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3301
SELECT - CASE + 3 WHEN + 50 THEN NULL ELSE 65 DIV 49 END - - 46
----
45

skipif mysql # not compatible
query I rowsort label-3301
SELECT - CASE + 3 WHEN + 50 THEN NULL ELSE 65 / 49 END - - 46
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3302
SELECT ALL - - 90 + - COALESCE ( - + NULLIF ( - + 71, 60 ), 60 ) DIV - 98 col0
----
90

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL - - 90 + - COALESCE ( - + NULLIF ( - + 71, 60 ), 60 ) / - 98 col0
----
90

query I rowsort
SELECT ( + ( + 10 ) ) AS col1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT - 8 + + 22 + CAST( NULL AS SIGNED ) + 57 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT - 8 + + 22 + CAST ( NULL AS INTEGER ) + 57 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + 35 * + COUNT( * ) col0
----
35

skipif mysql # not compatible
query I rowsort label-3305
SELECT + 35 * + COUNT ( * ) col0
----
35

query I rowsort
SELECT + 53 + - 76 AS col0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-3307
SELECT DISTINCT 58 - - 2 + 34 AS col1, ( 84 ) * COUNT( * )
----
94
84

skipif mysql # not compatible
query II rowsort label-3307
SELECT DISTINCT 58 - - 2 + 34 AS col1, ( 84 ) * COUNT ( * )
----
94
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT + COUNT( * ) * NULLIF ( - ( - 13 ), 45 * ( 75 ) )
----
13

skipif mysql # not compatible
query I rowsort label-3308
SELECT + COUNT ( * ) * NULLIF ( - ( - 13 ), 45 * ( 75 ) )
----
13

onlyif mysql # aggregate syntax: 
query III rowsort label-3309
SELECT - 86 AS col0, MIN( ALL - - 78 ) AS col0, + COALESCE ( - 22, - 7, COUNT( * ) ) AS col0
----
-86
78
-22

skipif mysql # not compatible
query III rowsort label-3309
SELECT - 86 AS col0, MIN ( ALL - - 78 ) AS col0, + COALESCE ( - 22, - 7, COUNT ( * ) ) AS col0
----
-86
78
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - SUM( DISTINCT - 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-3310
SELECT - SUM ( DISTINCT - 15 ) AS col0
----
15

query I rowsort
SELECT ALL 81 * 6
----
486

query I rowsort
SELECT ALL + 85 * + - 40 AS col1
----
-3400

query I rowsort
SELECT + ( 44 ) AS col0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT NULLIF ( - - COUNT( * ), + 25 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-3314
SELECT NULLIF ( - - COUNT ( * ), + 25 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + 27 - + - 6 - + COUNT( ALL - + 71 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 27 - + - 6 - + COUNT ( ALL - + 71 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3316
SELECT COALESCE ( 99, 74, + + 21 + - COALESCE ( + CAST( 19 AS SIGNED ), 77 * + 16, COUNT( * ), + 31 ) + 2 * + 31 ) col2
----
99

skipif mysql # not compatible
query I rowsort label-3316
SELECT COALESCE ( 99, 74, + + 21 + - COALESCE ( + CAST ( 19 AS INTEGER ), 77 * + 16, COUNT ( * ), + 31 ) + 2 * + 31 ) col2
----
99

query I rowsort
SELECT + 14 * - COALESCE ( - - 23, 11 ) - + 31
----
-353

query I rowsort
SELECT - 73 * - - 85
----
-6205

query I rowsort
SELECT ALL + 62 * + 66 * 75 + 79 AS col1
----
306979

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3320
SELECT DISTINCT - 97 DIV - - 21 * + - COUNT( * ) - 20 * - 62 + 50 * + 85 AS col0
----
5494

skipif mysql # not compatible
query I rowsort label-3320
SELECT DISTINCT - 97 / - - 21 * + - COUNT ( * ) - 20 * - 62 + 50 * + 85 AS col0
----
5494

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ALL - COUNT( * ) * - - 28 + - - 21 * + 99
----
2051

skipif mysql # not compatible
query I rowsort label-3321
SELECT ALL - COUNT ( * ) * - - 28 + - - 21 * + 99
----
2051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT - CAST( NULL AS SIGNED ) - + 44 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT - CAST ( NULL AS INTEGER ) - + 44 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3323
SELECT - 38 * - CASE 50 WHEN + 92 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN AVG ( - 79 ) END - CASE 80 WHEN - 55 * - 30 THEN 82 END * - 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT - 38 * - CASE 50 WHEN + 92 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN AVG ( - 79 ) END - CASE 80 WHEN - 55 * - 30 THEN 82 END * - 92 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3324
SELECT - CAST( + + 84 AS SIGNED ) + - ( - 89 ) DIV + + 81 + NULLIF ( 89, 48 ) * + 22
----
1875

skipif mysql # not compatible
query I rowsort label-3324
SELECT - CAST ( + + 84 AS INTEGER ) + - ( - 89 ) / + + 81 + NULLIF ( 89, 48 ) * + 22
----
1875

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT - 15 * COUNT( * ) AS col2
----
-15

skipif mysql # not compatible
query I rowsort label-3325
SELECT - 15 * COUNT ( * ) AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT - COUNT( * ) * + MAX( + + 87 )
----
-87

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT - COUNT ( * ) * + MAX ( + + 87 )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT - 29 + - ( + COUNT( * ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3327
SELECT - 29 + - ( + COUNT ( * ) )
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT DISTINCT - 1 * + CAST( + 60 AS SIGNED ) * 6 * + 29 + - COUNT( * )
----
-10441

skipif mysql # not compatible
query I rowsort label-3328
SELECT DISTINCT - 1 * + CAST ( + 60 AS INTEGER ) * 6 * + 29 + - COUNT ( * )
----
-10441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3329
SELECT - + 90 + - - ( - + ( + 41 ) ) * 43 + CAST( COALESCE ( 93, + COUNT( DISTINCT + ( NULLIF ( + CAST( 74 AS SIGNED ), - 60 ) ) ) - + COUNT( ALL + 33 + - 62 ) ) AS SIGNED ) * - 30 AS col1
----
-4643

skipif mysql # not compatible
query I rowsort label-3329
SELECT - + 90 + - - ( - + ( + 41 ) ) * 43 + CAST ( COALESCE ( 93, + COUNT ( DISTINCT + ( NULLIF ( + CAST ( 74 AS INTEGER ), - 60 ) ) ) - + COUNT ( ALL + 33 + - 62 ) ) AS INTEGER ) * - 30 AS col1
----
-4643

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT + CAST( SUM( + 85 ) AS SIGNED )
----
85

skipif mysql # not compatible
query I rowsort label-3330
SELECT + CAST ( SUM ( + 85 ) AS INTEGER )
----
85

query I rowsort
SELECT ALL ( 61 ) col0
----
61

query I rowsort
SELECT - 47 + + - 64
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-3333
SELECT 45 AS col0, NULLIF ( - - SUM( DISTINCT ( - + 11 ) ), 94 * + 80 + - 81 )
----
45
-11

skipif mysql # not compatible
query II rowsort label-3333
SELECT 45 AS col0, NULLIF ( - - SUM ( DISTINCT ( - + 11 ) ), 94 * + 80 + - 81 )
----
45
-11

query I rowsort
SELECT DISTINCT + 70 - - + 12 + - 64 * - 41
----
2706

query I rowsort
SELECT ALL ( ( 46 ) )
----
46

query I rowsort
SELECT - COALESCE ( 99, + 12 + - 16 )
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3337
SELECT + ( COUNT( - CAST( - 29 AS SIGNED ) ) ) + 3 AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3337
SELECT + ( COUNT ( - CAST ( - 29 AS INTEGER ) ) ) + 3 AS col1
----
4

query II rowsort
SELECT 26 AS col0, - 38 * - - 79
----
26
-3002

query II rowsort
SELECT ALL ( - - 22 ) AS col0, 66
----
22
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT DISTINCT - 98 DIV 24 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT - 98 / 24 AS col1
----
-4

query I rowsort
SELECT ALL 40 * + - ( 3 )
----
-120

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT + COUNT( * ) * + MIN( 94 ) AS col2
----
94

skipif mysql # not compatible
query I rowsort label-3342
SELECT + COUNT ( * ) * + MIN ( 94 ) AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT DISTINCT CAST( + ( + - 90 ) AS SIGNED ) AS col1
----
-90

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT CAST ( + ( + - 90 ) AS INTEGER ) AS col1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT - SUM( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT - SUM ( + 0 )
----
0

query I rowsort
SELECT + 39 + - 97 AS col1
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT + 71 DIV - 51 + - 41 + + - 76 * - 45 * 87
----
297498

skipif mysql # not compatible
query I rowsort label-3346
SELECT + 71 / - 51 + - 41 + + - 76 * - 45 * 87
----
297498

query II rowsort
SELECT DISTINCT + 55, - 95 AS col1
----
55
-95

query I rowsort
SELECT + 3 + - 54 + - 5 * 31
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT - ( - ( - + 84 ) ) * + MAX( + + 98 ) - COUNT( * ) + + COUNT( * ) col0
----
-8232

skipif mysql # not compatible
query I rowsort label-3349
SELECT - ( - ( - + 84 ) ) * + MAX ( + + 98 ) - COUNT ( * ) + + COUNT ( * ) col0
----
-8232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3350
SELECT ALL + + 81 DIV + + 41 + - 57 * COUNT( * )
----
-56

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL + + 81 / + + 41 + - 57 * COUNT ( * )
----
-56

query II rowsort
SELECT + - 12, - 88 AS col1
----
-12
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3352
SELECT DISTINCT + + COUNT( * ) DIV + - 17 + 92 + - 86 + + + 58 * - 64 * 21 AS col1
----
-77946

skipif mysql # not compatible
query I rowsort label-3352
SELECT DISTINCT + + COUNT ( * ) / + - 17 + 92 + - 86 + + + 58 * - 64 * 21 AS col1
----
-77946

query I rowsort
SELECT + 47 + + - 1 AS col2
----
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT ALL - 0 DIV + 58 + + - 1 * - + 72 + 79 + - 49 AS col1
----
102

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL - 0 / + 58 + + - 1 * - + 72 + 79 + - 49 AS col1
----
102

query II rowsort
SELECT + + 7 AS col0, 32 AS col0
----
7
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3356
SELECT - 77 AS col2, + 17 + + COUNT( * ) + + 9 + COUNT( * ) DIV - 17 DIV ( - 7 )
----
-77
27

skipif mysql # not compatible
query II rowsort label-3356
SELECT - 77 AS col2, + 17 + + COUNT ( * ) + + 9 + COUNT ( * ) / - 17 / ( - 7 )
----
-77
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3357
SELECT ALL - 74 + - + ( + + COUNT( * ) )
----
-75

skipif mysql # not compatible
query I rowsort label-3357
SELECT ALL - 74 + - + ( + + COUNT ( * ) )
----
-75

query I rowsort
SELECT + 13 * - ( + 22 ) AS col1
----
-286

query I rowsort
SELECT DISTINCT - - 65 - - 14 * 88 AS col1
----
1297

query I rowsort
SELECT DISTINCT + 30 * 34 AS col0
----
1020

query I rowsort
SELECT DISTINCT - - 5 col0
----
5

query I rowsort
SELECT 7 * + 60
----
420

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3363
SELECT DISTINCT + + CAST( - + 38 AS SIGNED ) DIV - 61
----
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT DISTINCT + + CAST ( - + 38 AS INTEGER ) / - 61
----
0

query I rowsort
SELECT DISTINCT + 81 - + - 80
----
161

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3365
SELECT ALL + - 23 DIV - COUNT( * ) + - 1
----
22

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + - 23 / - COUNT ( * ) + - 1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT NULLIF ( 28, - + ( + CASE - 61 WHEN + CASE + 45 WHEN NULLIF ( + 62, 22 * 46 ) THEN NULL ELSE COUNT( - 66 ) END THEN 44 + 60 * 95 WHEN ( 96 ) THEN NULL ELSE NULL END ) ) * + 64
----
1792

skipif mysql # not compatible
query I rowsort label-3366
SELECT NULLIF ( 28, - + ( + CASE - 61 WHEN + CASE + 45 WHEN NULLIF ( + 62, 22 * 46 ) THEN NULL ELSE COUNT ( - 66 ) END THEN 44 + 60 * 95 WHEN ( 96 ) THEN NULL ELSE NULL END ) ) * + 64
----
1792

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT 79 + + + COUNT( * ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-3367
SELECT 79 + + + COUNT ( * ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT ALL + 57 * + - COUNT( * ) * + 48
----
-2736

skipif mysql # not compatible
query I rowsort label-3368
SELECT ALL + 57 * + - COUNT ( * ) * + 48
----
-2736

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3369
SELECT COUNT( DISTINCT 39 ) DIV - 43 * - 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( DISTINCT 39 ) / - 43 * - 75 AS col0
----
0

query II rowsort
SELECT 69 * - - 32 AS col0, 30
----
2208
30

query I rowsort
SELECT 72 - - - 92
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT + 66 * + AVG ( CAST( NULL AS SIGNED ) ) * + - 61 * + 36 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + 66 * + AVG ( CAST ( NULL AS INTEGER ) ) * + - 61 * + 36 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3373
SELECT ALL - 12 * - CAST( + 13 AS SIGNED ) * + ( + - 30 ) + + 33
----
-4647

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - 12 * - CAST ( + 13 AS INTEGER ) * + ( + - 30 ) + + 33
----
-4647

onlyif mysql # DIV for integer division: 
query I rowsort label-3374
SELECT 88 DIV - 75
----
-1

skipif mysql # not compatible
query I rowsort label-3374
SELECT 88 / - 75
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3375
SELECT 68 * 91 col2, - 2 + - COUNT( * ) AS col0
----
6188
-3

skipif mysql # not compatible
query II rowsort label-3375
SELECT 68 * 91 col2, - 2 + - COUNT ( * ) AS col0
----
6188
-3

query I rowsort
SELECT 23 * + + 54 AS col2
----
1242

query I rowsort
SELECT ALL + ( - 32 ) + - NULLIF ( 73, - 67 ) AS col1
----
-105

query I rowsort
SELECT 94 * + 24 AS col0
----
2256

query II rowsort
SELECT DISTINCT 92 + + 60, + 44 AS col2
----
152
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT ALL CASE - CAST( - 74 AS SIGNED ) WHEN 67 + - 50 THEN + 23 WHEN + + 67 * COUNT( * ) THEN NULL END * + 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL CASE - CAST ( - 74 AS INTEGER ) WHEN 67 + - 50 THEN + 23 WHEN + + 67 * COUNT ( * ) THEN NULL END * + 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3381
SELECT 13 DIV + - 11 * + + COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-3381
SELECT 13 / + - 11 * + + COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL + ( 94 ) + - 12 * 46 col2
----
-458

query I rowsort
SELECT DISTINCT - CASE - 12 WHEN - 53 * - - 17 THEN - 17 ELSE + 62 END
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ALL CAST( NULL AS SIGNED ) + ( + 95 ) + - 53 + - - ( 2 ) / 44 * - 73 + + 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL CAST ( NULL AS INTEGER ) + ( + 95 ) + - 53 + - - ( 2 ) / 44 * - 73 + + 77 AS col1
----
NULL

query I rowsort
SELECT + - ( - + 97 )
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + COUNT( * ) * + COALESCE ( + - 18, 78 ) AS col1
----
-18

skipif mysql # not compatible
query I rowsort label-3386
SELECT + COUNT ( * ) * + COALESCE ( + - 18, 78 ) AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT + CASE - 48 WHEN - + COUNT( * ) THEN + COUNT( * ) ELSE 55 END * - - COALESCE ( 85, ( SUM( ALL 93 ) ) ) AS col0
----
4675

skipif mysql # not compatible
query I rowsort label-3387
SELECT + CASE - 48 WHEN - + COUNT ( * ) THEN + COUNT ( * ) ELSE 55 END * - - COALESCE ( 85, ( SUM ( ALL 93 ) ) ) AS col0
----
4675

query I rowsort
SELECT 7 - - + 88 * NULLIF ( 20, - 73 ) * + 15 AS col2
----
26407

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT + 88 * + ( + COUNT( * ) ) + - + 38
----
50

skipif mysql # not compatible
query I rowsort label-3389
SELECT + 88 * + ( + COUNT ( * ) ) + - + 38
----
50

query I rowsort
SELECT - + ( - - 88 ) * + CASE + 84 WHEN - 64 THEN 43 ELSE NULL END + + - 49 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3391
SELECT 96 * + 49 AS col0, 4 DIV + 86 * - NULLIF ( + MIN( ALL + + 1 ), CAST( AVG ( DISTINCT + 4 ) AS SIGNED ) + + 16 ) AS col2
----
4704
0

skipif mysql # not compatible
query II rowsort label-3391
SELECT 96 * + 49 AS col0, 4 / + 86 * - NULLIF ( + MIN ( ALL + + 1 ), CAST ( AVG ( DISTINCT + 4 ) AS INTEGER ) + + 16 ) AS col2
----
4704
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL 55 * - 83 * COALESCE ( + 15, - - 47 * COUNT( * ), - - 34 + COUNT( * ) )
----
-68475

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL 55 * - 83 * COALESCE ( + 15, - - 47 * COUNT ( * ), - - 34 + COUNT ( * ) )
----
-68475

query I rowsort
SELECT 45 + + 75 + + 16 AS col0
----
136

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3394
SELECT ALL CAST( + 27 AS SIGNED ) DIV + 18 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-3394
SELECT ALL CAST ( + 27 AS INTEGER ) / + 18 AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT 76 DIV 56 * - 42
----
-42

skipif mysql # not compatible
query I rowsort label-3395
SELECT 76 / 56 * - 42
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT DISTINCT - COALESCE ( + 69, - 69, - 91, - + ( 63 ) * COALESCE ( ( + 10 ), COUNT( * ) * + 46, - MIN( + 8 ) + - 32 ) ) * 71 AS col0
----
-4899

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - COALESCE ( + 69, - 69, - 91, - + ( 63 ) * COALESCE ( ( + 10 ), COUNT ( * ) * + 46, - MIN ( + 8 ) + - 32 ) ) * 71 AS col0
----
-4899

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3397
SELECT ALL SUM( ALL - - 1 ) * 60 DIV - 23
----
-2

skipif mysql # not compatible
query I rowsort label-3397
SELECT ALL SUM ( ALL - - 1 ) * 60 / - 23
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + 47 - + + MIN( ALL + 7 ) + CASE - 26 WHEN - 31 THEN NULL ELSE 42 + 29 END * 50 AS col1
----
3590

skipif mysql # not compatible
query I rowsort label-3398
SELECT + 47 - + + MIN ( ALL + 7 ) + CASE - 26 WHEN - 31 THEN NULL ELSE 42 + 29 END * 50 AS col1
----
3590

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3399
SELECT ALL - CASE - CASE + SUM( 89 ) WHEN + 86 * - 13 + - + 81 THEN NULL WHEN - 37 * + CAST( - 8 AS DECIMAL ) + + 59 THEN NULL WHEN + 8 THEN - 48 END WHEN 96 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - CASE - CASE + SUM ( 89 ) WHEN + 86 * - 13 + - + 81 THEN NULL WHEN - 37 * + CAST ( - 8 AS REAL ) + + 59 THEN NULL WHEN + 8 THEN - 48 END WHEN 96 THEN COUNT ( * ) END
----
NULL

query I rowsort
SELECT COALESCE ( - 46, 59, 87 ) + + 50 * + - 6 - 16
----
-362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3401
SELECT COUNT( ALL 75 ) * - 61 + + 78 * + CASE WHEN NOT 45 = ( NULL ) THEN 3 * 17 ELSE NULL END + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT COUNT ( ALL 75 ) * - 61 + + 78 * + CASE WHEN NOT 45 = ( NULL ) THEN 3 * 17 ELSE NULL END + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT 35 * + CASE 18 WHEN + - COALESCE ( 9, - 47 ) * + 54 + COUNT( * ) THEN + 27 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT 35 * + CASE 18 WHEN + - COALESCE ( 9, - 47 ) * + 54 + COUNT ( * ) THEN + 27 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT COUNT( * ) + - 63 AS col0
----
-62

skipif mysql # not compatible
query I rowsort label-3403
SELECT COUNT ( * ) + - 63 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT CASE 24 WHEN + 76 THEN + COUNT( * ) END * - 86 + + CASE - 58 WHEN + 23 * 25 THEN ( 66 ) - + 13 WHEN 37 THEN ( - 30 ) ELSE - AVG ( DISTINCT - 86 ) END + COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT CASE 24 WHEN + 76 THEN + COUNT ( * ) END * - 86 + + CASE - 58 WHEN + 23 * 25 THEN ( 66 ) - + 13 WHEN 37 THEN ( - 30 ) ELSE - AVG ( DISTINCT - 86 ) END + COUNT ( * ) col0
----
NULL

query I rowsort
SELECT DISTINCT 41 * + 77 col0
----
3157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3406
SELECT ( - CASE - CAST( NULL AS SIGNED ) WHEN + + 82 * AVG ( DISTINCT ( - + 66 ) ) + - 61 THEN 54 WHEN + CASE 19 WHEN + 47 * - NULLIF ( - COUNT( * ) * ( 98 ), CAST( NULL AS SIGNED ) ) + COUNT( 32 ) THEN NULL ELSE + 63 END / - 82 THEN + 94 END ) + + 39 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT ( - CASE - CAST ( NULL AS INTEGER ) WHEN + + 82 * AVG ( DISTINCT ( - + 66 ) ) + - 61 THEN 54 WHEN + CASE 19 WHEN + 47 * - NULLIF ( - COUNT ( * ) * ( 98 ), CAST ( NULL AS INTEGER ) ) + COUNT ( 32 ) THEN NULL ELSE + 63 END / - 82 THEN + 94 END ) + + 39 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3407
SELECT ( - CASE + 53 WHEN - 66 * 45 THEN ( + + COUNT( ALL 53 ) ) + 16 WHEN COUNT( * ) THEN NULL END ) * 38
----
NULL

skipif mysql # not compatible
query I rowsort label-3407
SELECT ( - CASE + 53 WHEN - 66 * 45 THEN ( + + COUNT ( ALL 53 ) ) + 16 WHEN COUNT ( * ) THEN NULL END ) * 38
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL 76 * + - ( - - CAST( + + 24 AS SIGNED ) )
----
-1824

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL 76 * + - ( - - CAST ( + + 24 AS INTEGER ) )
----
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT ALL - SUM( DISTINCT + 52 ) + - 92 + + 99 AS col0
----
-45

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL - SUM ( DISTINCT + 52 ) + - 92 + + 99 AS col0
----
-45

query I rowsort
SELECT ALL + 26 * 55 AS col1
----
1430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT 4 * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT 4 * + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 7 + + 95 + 67
----
169

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3413
SELECT DISTINCT MAX( - 22 ) DIV + 84, - ( + 43 ) AS col2
----
0
-43

skipif mysql # not compatible
query II rowsort label-3413
SELECT DISTINCT MAX ( - 22 ) / + 84, - ( + 43 ) AS col2
----
0
-43

query II rowsort
SELECT 89 col2, - 27
----
89
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3415
SELECT - COUNT( * ) AS col0, + 45 * + CAST( NULL AS SIGNED ) AS col1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-3415
SELECT - COUNT ( * ) AS col0, + 45 * + CAST ( NULL AS INTEGER ) AS col1
----
-1
NULL

query I rowsort
SELECT 3 + 71
----
74

query I rowsort
SELECT 13 + 75
----
88

query I rowsort
SELECT ALL 62 + + 15 AS col0
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3419
SELECT DISTINCT COUNT( * ) + + COALESCE ( + 1, + ( + 47 ) DIV - 0 DIV 63 + - + COUNT( * ), 0 ) + 50 AS col1
----
52

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT COUNT ( * ) + + COALESCE ( + 1, + ( + 47 ) / - 0 / 63 + - + COUNT ( * ), 0 ) + 50 AS col1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL + COUNT( * ) + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + COUNT ( * ) + - COUNT ( * )
----
0

query I rowsort
SELECT + COALESCE ( + - 97, 84, + CASE + 26 WHEN + 73 THEN 0 * - ( - 0 ) + + 41 WHEN + 89 THEN NULL END ) + 10 AS col1
----
-87

query I rowsort
SELECT 42 + 66
----
108

query II rowsort
SELECT DISTINCT + 16 col0, NULLIF ( + 33, - 67 ) col1
----
16
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - - 8 * + + 51 * + - 98 - + - COUNT( * ) - 39
----
-40022

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - - 8 * + + 51 * + - 98 - + - COUNT ( * ) - 39
----
-40022

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3425
SELECT - + 28 DIV - + COALESCE ( - - 7, - 79, 16 + 8 - - - CAST( NULL AS SIGNED ) ) + - 77 + COUNT( * )
----
-72

skipif mysql # not compatible
query I rowsort label-3425
SELECT - + 28 / - + COALESCE ( - - 7, - 79, 16 + 8 - - - CAST ( NULL AS INTEGER ) ) + - 77 + COUNT ( * )
----
-72

query II rowsort
SELECT 93 col1, ( - 78 )
----
93
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3427
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) + + + 7 + + NULLIF ( + 12, - + MAX( + 39 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) + + + 7 + + NULLIF ( + 12, - + MAX ( + 39 ) )
----
NULL

query I rowsort
SELECT DISTINCT + + ( - + 11 ) AS col2
----
-11

query II rowsort
SELECT ALL + 70, - 52 AS col1
----
70
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - COUNT( * ) * - 90
----
90

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - COUNT ( * ) * - 90
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3431
SELECT DISTINCT - - 23 * MIN( DISTINCT - + 60 ) * + 40 - + SUM( + CAST( NULL AS SIGNED ) ) - + + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT - - 23 * MIN ( DISTINCT - + 60 ) * + 40 - + SUM ( + CAST ( NULL AS INTEGER ) ) - + + 6
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - - MAX( - 90 ) + - + 81 AS col0
----
-171

skipif mysql # not compatible
query I rowsort label-3432
SELECT - - MAX ( - 90 ) + - + 81 AS col0
----
-171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3433
SELECT ALL + 81 * 95 DIV COUNT( * ) + - COUNT( * )
----
7694

skipif mysql # not compatible
query I rowsort label-3433
SELECT ALL + 81 * 95 / COUNT ( * ) + - COUNT ( * )
----
7694

query I rowsort
SELECT + + 11 + - + 73 AS col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT - - COUNT( * ) * + 43 - + NULLIF ( + + 91, + 72 )
----
-48

skipif mysql # not compatible
query I rowsort label-3435
SELECT - - COUNT ( * ) * + 43 - + NULLIF ( + + 91, + 72 )
----
-48

query II rowsort
SELECT + 35 AS col1, 77
----
35
77

query II rowsort
SELECT + - 29 AS col0, - 0 AS col2
----
-29
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT DISTINCT + CAST( + 18 AS SIGNED )
----
18

skipif mysql # not compatible
query I rowsort label-3438
SELECT DISTINCT + CAST ( + 18 AS INTEGER )
----
18

query II rowsort
SELECT DISTINCT + NULLIF ( - 27, 55 / - 38 + - 50 * + 85 + - 56 ) AS col2, 49 - 7 + + 49
----
-27
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT + COUNT( 83 )
----
1

skipif mysql # not compatible
query I rowsort label-3440
SELECT + COUNT ( 83 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT DISTINCT - 39 DIV ( + - 4 )
----
9

skipif mysql # not compatible
query I rowsort label-3441
SELECT DISTINCT - 39 / ( + - 4 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3442
SELECT ALL 17 + - SUM( ALL + 29 ) + - + 1 * + COUNT( * ) DIV + - MIN( DISTINCT + + 93 ) * - CAST( - + COUNT( * ) AS SIGNED ) * 74 + + COUNT( * ) * - 79 DIV + 70
----
-13

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 17 + - SUM ( ALL + 29 ) + - + 1 * + COUNT ( * ) / + - MIN ( DISTINCT + + 93 ) * - CAST ( - + COUNT ( * ) AS INTEGER ) * 74 + + COUNT ( * ) * - 79 / + 70
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT MAX( ALL 16 ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-3443
SELECT MAX ( ALL 16 ) AS col0
----
16

query I rowsort
SELECT ALL 29 * 10 AS col1
----
290

onlyif mysql # DIV for integer division: 
query I rowsort label-3445
SELECT - 34 DIV - + 66
----
0

skipif mysql # not compatible
query I rowsort label-3445
SELECT - 34 / - + 66
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3446
SELECT 49 * - 68 * - + ( 64 ) * + - ( MIN( - - CAST( NULL AS SIGNED ) ) ) + + + 82 * 49 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-3446
SELECT 49 * - 68 * - + ( 64 ) * + - ( MIN ( - - CAST ( NULL AS INTEGER ) ) ) + + + 82 * 49 + 37
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT - SUM( + 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-3447
SELECT - SUM ( + 75 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT + 16 + + - COALESCE ( - COUNT( * ), + 94 ) AS col0
----
17

skipif mysql # not compatible
query I rowsort label-3448
SELECT + 16 + + - COALESCE ( - COUNT ( * ), + 94 ) AS col0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3449
SELECT ALL COUNT( * ) + - + 3 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL COUNT ( * ) + - + 3 AS col2
----
-2

query I rowsort
SELECT ALL 81 + - 10 AS col0
----
71

query I rowsort
SELECT - COALESCE ( 38, 49 )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT COUNT( + 86 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT COUNT ( + 86 ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3453
SELECT ALL + ( + 13 ) + - 14 * - 5 * - COUNT( * ) * + 43 + 41, - ( + 23 ) * 15 AS col2
----
-2956
-345

skipif mysql # not compatible
query II rowsort label-3453
SELECT ALL + ( + 13 ) + - 14 * - 5 * - COUNT ( * ) * + 43 + 41, - ( + 23 ) * 15 AS col2
----
-2956
-345

query I rowsort
SELECT - ( - + ( - 60 ) ) AS col1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT - + 59 - + - CASE + 93 WHEN + COUNT( * ) THEN 12 ELSE NULL END + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT - + 59 - + - CASE + 93 WHEN + COUNT ( * ) THEN 12 ELSE NULL END + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT + 43 * 88 * + COUNT( * ) AS col1
----
3784

skipif mysql # not compatible
query I rowsort label-3456
SELECT + 43 * 88 * + COUNT ( * ) AS col1
----
3784

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3457
SELECT ALL 83 DIV + MIN( + NULLIF ( - + 89, - 41 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL 83 / + MIN ( + NULLIF ( - + 89, - 41 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3458
SELECT + - 31 DIV + 75 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT + - 31 / + 75 AS col0
----
0

query I rowsort
SELECT + 70 + - 1 col0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - 87 * - COALESCE ( + SUM( ALL - + 64 ), + + 92 ) col1
----
-5568

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - 87 * - COALESCE ( + SUM ( ALL - + 64 ), + + 92 ) col1
----
-5568

onlyif mysql # aggregate syntax: 
query II rowsort label-3461
SELECT ALL - COUNT( 41 ) * + ( + + 7 ), MIN( ALL - 28 ) - + 67 AS col0
----
-7
-95

skipif mysql # not compatible
query II rowsort label-3461
SELECT ALL - COUNT ( 41 ) * + ( + + 7 ), MIN ( ALL - 28 ) - + 67 AS col0
----
-7
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3462
SELECT DISTINCT 72 * + - 72 * + MAX( ALL - 5 ) AS col1, 9 + - 39 + 92
----
25920
62

skipif mysql # not compatible
query II rowsort label-3462
SELECT DISTINCT 72 * + - 72 * + MAX ( ALL - 5 ) AS col1, 9 + - 39 + 92
----
25920
62

query I rowsort
SELECT - + 57 * ( + 0 ) col0
----
0

query I rowsort
SELECT + 59 + 36 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3465
SELECT - NULLIF ( - + AVG ( ALL CAST( NULL AS DECIMAL ) ), + + 29 ) * - 52 * COUNT( ALL - - 10 ) + + 86 / - + 76 + - 0 + + ( 57 - 94 * - 63 ) * - 77 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3465
SELECT - NULLIF ( - + AVG ( ALL CAST ( NULL AS REAL ) ), + + 29 ) * - 52 * COUNT ( ALL - - 10 ) + + 86 / - + 76 + - 0 + + ( 57 - 94 * - 63 ) * - 77 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - 86 * - COUNT( * ) * + + 77 AS col0
----
6622

skipif mysql # not compatible
query I rowsort label-3466
SELECT - 86 * - COUNT ( * ) * + + 77 AS col0
----
6622

query I rowsort
SELECT - 56 * - - 40 + + + 13 AS col0
----
-2227

query I rowsort
SELECT ALL + + COALESCE ( + 35, + 4 ) col1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT ALL - 86 * - COUNT( * ) + - 94 + + COUNT( * ) + + + COUNT( * ) * - 92 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3469
SELECT ALL - 86 * - COUNT ( * ) + - 94 + + COUNT ( * ) + + + COUNT ( * ) * - 92 AS col1
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT ALL - 65 * + COALESCE ( 40, - 75 ) + - 70 * + CAST( + 38 AS SIGNED ) * - - COUNT( * ) * - 73 * + COALESCE ( ( - 72 ), 97 * + COALESCE ( + 73, - 24 ) - 77, 42 ) - + 79 * + 98
----
-13991302

skipif mysql # not compatible
query I rowsort label-3470
SELECT ALL - 65 * + COALESCE ( 40, - 75 ) + - 70 * + CAST ( + 38 AS INTEGER ) * - - COUNT ( * ) * - 73 * + COALESCE ( ( - 72 ), 97 * + COALESCE ( + 73, - 24 ) - 77, 42 ) - + 79 * + 98
----
-13991302

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT - COUNT( * ) * + 1 * - - COUNT( DISTINCT - + 78 )
----
-1

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - COUNT ( * ) * + 1 * - - COUNT ( DISTINCT - + 78 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3472
SELECT - 93 * - - AVG ( DISTINCT - 7 ) * ( - + COUNT( * ) ) - + 83 + + 43 + - CAST( NULL AS SIGNED ) * + 3 / ( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3472
SELECT - 93 * - - AVG ( DISTINCT - 7 ) * ( - + COUNT ( * ) ) - + 83 + + 43 + - CAST ( NULL AS INTEGER ) * + 3 / ( - 67 )
----
NULL

query II rowsort
SELECT NULLIF ( + 45, - + 55 ) col2, + NULLIF ( + 3, 74 ) + - + 74
----
45
-71

query I rowsort
SELECT + NULLIF ( - + 24, 70 ) AS col0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + 75 + + 94 + - + COUNT( * ) * 65 AS col1
----
104

skipif mysql # not compatible
query I rowsort label-3475
SELECT + 75 + + 94 + - + COUNT ( * ) * 65 AS col1
----
104

query I rowsort
SELECT COALESCE ( 13, - + 55 * 25, - 59 + - 21 )
----
13

query II rowsort
SELECT DISTINCT 99 * - + 63 + 75 - + CASE - 93 WHEN + - ( - + 91 ) THEN + 16 END col2, 94
----
NULL
94

query I rowsort
SELECT - CASE - 8 WHEN - + 59 THEN - NULLIF ( + 65, + - 38 - - - 35 * 68 ) + - 32 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT + 5 * + 73 + + 1 * + - COUNT( * ) - - ( - 96 ) + + 73
----
341

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + 5 * + 73 + + 1 * + - COUNT ( * ) - - ( - 96 ) + + 73
----
341

query I rowsort
SELECT ALL - ( - + 4 ) * + 41 * 84 + + 92 - + 27 + - 35 + - 80 * 13 * - + 45 AS col0
----
60606

query I rowsort
SELECT + 33 * 95
----
3135

onlyif mysql # DIV for integer division: 
query II rowsort label-3482
SELECT ALL - 91 DIV NULLIF ( 56, - + 77 * - 59 ) col0, 98 AS col1
----
-1
98

skipif mysql # not compatible
query II rowsort label-3482
SELECT ALL - 91 / NULLIF ( 56, - + 77 * - 59 ) col0, 98 AS col1
----
-1
98

query I rowsort
SELECT - 4 * + 72
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT DISTINCT SUM( ALL - 60 ) * 80 AS col1
----
-4800

skipif mysql # not compatible
query I rowsort label-3484
SELECT DISTINCT SUM ( ALL - 60 ) * 80 AS col1
----
-4800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3485
SELECT ALL CAST( - - 44 AS SIGNED ) - + 42 * + 49 AS col1
----
-2014

skipif mysql # not compatible
query I rowsort label-3485
SELECT ALL CAST ( - - 44 AS INTEGER ) - + 42 * + 49 AS col1
----
-2014

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3486
SELECT + 50 + + 54 * - MAX( ALL 36 ) * + NULLIF ( - COUNT( * ), 45 ) - + 11 + - - ( - CAST( NULL AS SIGNED ) ) * + NULLIF ( 86, - COUNT( DISTINCT 66 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3486
SELECT + 50 + + 54 * - MAX ( ALL 36 ) * + NULLIF ( - COUNT ( * ), 45 ) - + 11 + - - ( - CAST ( NULL AS INTEGER ) ) * + NULLIF ( 86, - COUNT ( DISTINCT 66 ) )
----
NULL

query I rowsort
SELECT ALL - ( - + 32 ) AS col0
----
32

query I rowsort
SELECT + 64 + 72 + - + 47
----
89

query I rowsort
SELECT ALL - 47 - + 59 + + 86 * 45
----
3764

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT SUM( + 8 ) * 71 + + + MAX( 89 ) + + 16 * + - COUNT( 14 ) * - ( + + 94 ) + 50 * + 40 col0
----
4161

skipif mysql # not compatible
query I rowsort label-3490
SELECT SUM ( + 8 ) * 71 + + + MAX ( 89 ) + + 16 * + - COUNT ( 14 ) * - ( + + 94 ) + 50 * + 40 col0
----
4161

query I rowsort
SELECT - 0 + + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-3492
SELECT - - 43, COUNT( * ) AS col0
----
43
1

skipif mysql # not compatible
query II rowsort label-3492
SELECT - - 43, COUNT ( * ) AS col0
----
43
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3493
SELECT - 97 AS col1, NULLIF ( - + CAST( - COUNT( * ) AS SIGNED ), - COUNT( * ) / + - 31 * 16 )
----
-97
1

skipif mysql # not compatible
query II rowsort label-3493
SELECT - 97 AS col1, NULLIF ( - + CAST ( - COUNT ( * ) AS INTEGER ), - COUNT ( * ) / + - 31 * 16 )
----
-97
1

query II rowsort
SELECT NULLIF ( 92, - 57 ) AS col1, 19 col1
----
92
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT 20 + - ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3495
SELECT 20 + - ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3496
SELECT ALL - COALESCE ( - 29, COUNT( * ) * NULLIF ( + 22, - 70 ) ) DIV 39 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3496
SELECT ALL - COALESCE ( - 29, COUNT ( * ) * NULLIF ( + 22, - 70 ) ) / 39 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL - 40 + 95 - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL - 40 + 95 - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL 63 + 85 AS col0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT + MAX( ALL 1 ) * + CASE - NULLIF ( - 94, - 78 - - - COUNT( DISTINCT - 27 ) ) WHEN - 22 + - COUNT( * ) THEN - 41 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT + MAX ( ALL 1 ) * + CASE - NULLIF ( - 94, - 78 - - - COUNT ( DISTINCT - 27 ) ) WHEN - 22 + - COUNT ( * ) THEN - 41 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3500
SELECT + COALESCE ( + CAST( NULL AS DECIMAL ), 52 + 64 + COUNT( * ) - + 3 * - CAST( NULL AS DECIMAL ) ) / + 15 / + + 49 * + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT + COALESCE ( + CAST ( NULL AS REAL ), 52 + 64 + COUNT ( * ) - + 3 * - CAST ( NULL AS REAL ) ) / + 15 / + + 49 * + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - 16 * 23 - SUM( DISTINCT - 61 ) * 12 * 81 AS col1
----
58924

skipif mysql # not compatible
query I rowsort label-3501
SELECT - 16 * 23 - SUM ( DISTINCT - 61 ) * 12 * 81 AS col1
----
58924

query I rowsort
SELECT ALL 85 * ( 49 ) col2
----
4165

query I rowsort
SELECT ALL 12 + - 83 - - + 98 + - 20 * - - 38
----
-733

query I rowsort
SELECT ALL + 94 + - 48
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-3505
SELECT 24 AS col0, + CASE + - COUNT( * ) WHEN - - 15 THEN + 46 + 97 ELSE NULL END * - - COALESCE ( - 30, - + 83 - - 7 ) / 50 * - ( + ( + NULLIF ( 30, 24 + + 51 ) ) * COUNT( * ) ) + MAX( ALL 75 ) * - 74 AS col1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-3505
SELECT 24 AS col0, + CASE + - COUNT ( * ) WHEN - - 15 THEN + 46 + 97 ELSE NULL END * - - COALESCE ( - 30, - + 83 - - 7 ) / 50 * - ( + ( + NULLIF ( 30, 24 + + 51 ) ) * COUNT ( * ) ) + MAX ( ALL 75 ) * - 74 AS col1
----
24
NULL

query I rowsort
SELECT 17 * + 69 AS col1
----
1173

query II rowsort
SELECT ALL - 58 AS col0, 55 AS col0
----
-58
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3508
SELECT DISTINCT 11 + + 98 + - AVG ( ALL 97 ) * + 59 + COUNT( * ) + - CAST( NULL AS SIGNED ) + - + 89 + + - 64 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3508
SELECT DISTINCT 11 + + 98 + - AVG ( ALL 97 ) * + 59 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) + - + 89 + + - 64 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3509
SELECT ALL - COUNT( * ) col2, - 69 + + 73 DIV + + 65 AS col1
----
-1
-68

skipif mysql # not compatible
query II rowsort label-3509
SELECT ALL - COUNT ( * ) col2, - 69 + + 73 / + + 65 AS col1
----
-1
-68

query I rowsort
SELECT 7 * 45
----
315

query I rowsort
SELECT DISTINCT - NULLIF ( + + 7, - 21 * - 49 * + - 3 ) AS col2
----
-7

query III rowsort
SELECT + 91, - 75 AS col1, - 91 AS col1
----
91
-75
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3513
SELECT ALL - ( CAST( + AVG ( DISTINCT - 90 ) AS SIGNED ) ) AS col2, 51 * + + 95 - - 21 AS col2
----
90
4866

skipif mysql # not compatible
query II rowsort label-3513
SELECT ALL - ( CAST ( + AVG ( DISTINCT - 90 ) AS INTEGER ) ) AS col2, 51 * + + 95 - - 21 AS col2
----
90
4866

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL - ( - 67 ) * + + CAST( NULL AS SIGNED ) + - 54 + + - 85
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - ( - 67 ) * + + CAST ( NULL AS INTEGER ) + - 54 + + - 85
----
NULL

query I rowsort
SELECT 32 * + 19
----
608

query I rowsort
SELECT 3 * + 97 AS col2
----
291

query I rowsort
SELECT 23 * + + 29 + - 96 + - 96 * 62 AS col2
----
-5381

query I rowsort
SELECT DISTINCT - 86 * + + 11 * - - 40
----
-37840

onlyif mysql # DIV for integer division: 
query I rowsort label-3519
SELECT 22 DIV - 99 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3519
SELECT 22 / - 99 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3520
SELECT COUNT( DISTINCT + 74 ) * + COUNT( * ) + CASE 93 WHEN + 64 * + - 31 + 66 THEN NULL ELSE + 65 + CAST( NULL AS SIGNED ) + + 11 * + 36 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3520
SELECT COUNT ( DISTINCT + 74 ) * + COUNT ( * ) + CASE 93 WHEN + 64 * + - 31 + 66 THEN NULL ELSE + 65 + CAST ( NULL AS INTEGER ) + + 11 * + 36 END
----
NULL

query I rowsort
SELECT DISTINCT + ( - ( - 83 ) ) * + 76 AS col1
----
6308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT + COUNT( - CAST( 15 AS SIGNED ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3522
SELECT DISTINCT + COUNT ( - CAST ( 15 AS INTEGER ) ) AS col0
----
1

query I rowsort
SELECT DISTINCT - ( 67 )
----
-67

query I rowsort
SELECT 66 * + 80 * - 58 * + NULLIF ( 27, - + 82 )
----
-8268480

onlyif mysql # DIV for integer division: 
query II rowsort label-3525
SELECT DISTINCT + - 74 DIV 22 * - - 42 + + 63, 56 AS col1
----
-63
56

skipif mysql # not compatible
query II rowsort label-3525
SELECT DISTINCT + - 74 / 22 * - - 42 + + 63, 56 AS col1
----
-63
56

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT + 28 DIV - 26
----
-1

skipif mysql # not compatible
query I rowsort label-3526
SELECT + 28 / - 26
----
-1

query I rowsort
SELECT + 98 * - ( - 83 )
----
8134

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT ALL + ( - MIN( + 33 ) ) * ( - 61 ) * 8 AS col0
----
16104

skipif mysql # not compatible
query I rowsort label-3528
SELECT ALL + ( - MIN ( + 33 ) ) * ( - 61 ) * 8 AS col0
----
16104

onlyif mysql # aggregate syntax: 
query II rowsort label-3529
SELECT ALL + COUNT( * ) AS col1, - 71 * - + 78 * + 41 + - 95 * - ( + 68 ) + 23
----
1
233541

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL + COUNT ( * ) AS col1, - 71 * - + 78 * + 41 + - 95 * - ( + 68 ) + 23
----
1
233541

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3530
SELECT NULLIF ( + 54, - + 50 ) * COUNT( * ) * + 72 + + 41 AS col1, NULLIF ( NULLIF ( + CAST( ( + 82 ) AS SIGNED ), - 46 * + ( + CASE 53 WHEN CAST( NULL AS SIGNED ) THEN 34 * CAST( 27 AS SIGNED ) + - 10 ELSE NULL END ) ), 33 DIV - 58 ) DIV 66 + ( 54 ) * 71 AS col1
----
3929
3835

skipif mysql # not compatible
query II rowsort label-3530
SELECT NULLIF ( + 54, - + 50 ) * COUNT ( * ) * + 72 + + 41 AS col1, NULLIF ( NULLIF ( + CAST ( ( + 82 ) AS INTEGER ), - 46 * + ( + CASE 53 WHEN CAST ( NULL AS INTEGER ) THEN 34 * CAST ( 27 AS INTEGER ) + - 10 ELSE NULL END ) ), 33 / - 58 ) / 66 + ( 54 ) * 71 AS col1
----
3929
3835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3531
SELECT + CAST( NULL AS SIGNED ) * - 40 - + - 52 + - AVG ( - 92 ) * + - 29 * + - 5 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3531
SELECT + CAST ( NULL AS INTEGER ) * - 40 - + - 52 + - AVG ( - 92 ) * + - 29 * + - 5 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT 76 - CAST( - 89 AS SIGNED ) AS col0
----
165

skipif mysql # not compatible
query I rowsort label-3532
SELECT 76 - CAST ( - 89 AS INTEGER ) AS col0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT DISTINCT 90 * 44 * - + COUNT( * ) col2
----
-3960

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT 90 * 44 * - + COUNT ( * ) col2
----
-3960

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3534
SELECT ALL - CAST( NULL AS SIGNED ) + NULLIF ( COUNT( * ), + + COUNT( - + 34 ) + - - 28 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3534
SELECT ALL - CAST ( NULL AS INTEGER ) + NULLIF ( COUNT ( * ), + + COUNT ( - + 34 ) + - - 28 )
----
NULL

query I rowsort
SELECT - + 22 AS col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3536
SELECT ALL + + 32 + + + COUNT( + 2 ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-3536
SELECT ALL + + 32 + + + COUNT ( + 2 ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL - + MAX( + 74 ) * 40 AS col2
----
-2960

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - + MAX ( + 74 ) * 40 AS col2
----
-2960

query I rowsort
SELECT ALL 17 + - 46 + - 44 - + 41 AS col0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - 40 * - 42 * - - MAX( 33 ) * + ( 98 ) - - 80 + 96 col0
----
5433296

skipif mysql # not compatible
query I rowsort label-3539
SELECT - 40 * - 42 * - - MAX ( 33 ) * + ( 98 ) - - 80 + 96 col0
----
5433296

query II rowsort
SELECT DISTINCT - + 39 AS col2, + 8 * - + 19 * + ( 25 )
----
-39
-3800

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT + COUNT( * ) * + ( + - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( * ) * + ( + - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT ALL 85 * + + 49 * + COUNT( * ) + 33
----
4198

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL 85 * + + 49 * + COUNT ( * ) + 33
----
4198

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT SUM( 25 )
----
25

skipif mysql # not compatible
query I rowsort label-3543
SELECT SUM ( 25 )
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3544
SELECT + COALESCE ( + - 19, 98 DIV - AVG ( ALL + 5 ) ) * + 89 * ( + - 46 ) + ( - SUM( 62 ) ) * - 64 + 72 + CAST( - 61 AS SIGNED ) AS col2
----
81765

skipif mysql # not compatible
query I rowsort label-3544
SELECT + COALESCE ( + - 19, 98 / - AVG ( ALL + 5 ) ) * + 89 * ( + - 46 ) + ( - SUM ( 62 ) ) * - 64 + 72 + CAST ( - 61 AS INTEGER ) AS col2
----
81765

query I rowsort
SELECT 23 * - 59
----
-1357

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT DISTINCT COUNT( - ( 85 ) ) * + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT COUNT ( - ( 85 ) ) * + COUNT ( * )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT ALL + 84 * - 51 * + 33 - + - COUNT( * )
----
-141371

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL + 84 * - 51 * + 33 - + - COUNT ( * )
----
-141371

query I rowsort
SELECT ( - + 51 ) * + - 28
----
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT COUNT( ALL + 80 ) * 6 + 13 AS col2
----
19

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT COUNT ( ALL + 80 ) * 6 + 13 AS col2
----
19

query I rowsort
SELECT DISTINCT - CASE ( 44 ) WHEN - ( NULLIF ( - - 88, 14 ) ) * 39 THEN - ( 3 ) ELSE NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT COUNT( ALL 47 )
----
1

skipif mysql # not compatible
query I rowsort label-3551
SELECT COUNT ( ALL 47 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3552
SELECT - 65 * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 65 * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT ( + MAX( DISTINCT + + 77 ) ) * - COALESCE ( + 15, - 81 )
----
-1155

skipif mysql # not compatible
query I rowsort label-3553
SELECT ( + MAX ( DISTINCT + + 77 ) ) * - COALESCE ( + 15, - 81 )
----
-1155

onlyif mysql # aggregate syntax: 
query II rowsort label-3554
SELECT MIN( + + 98 ) col2, SUM( ALL - + 80 )
----
98
-80

skipif mysql # not compatible
query II rowsort label-3554
SELECT MIN ( + + 98 ) col2, SUM ( ALL - + 80 )
----
98
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3555
SELECT COUNT( * ) * - 2 * + COUNT( * ) + - 71 * + 42
----
-2984

skipif mysql # not compatible
query I rowsort label-3555
SELECT COUNT ( * ) * - 2 * + COUNT ( * ) + - 71 * + 42
----
-2984

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT ALL AVG ( DISTINCT - 0 ) - - - CAST( NULL AS SIGNED ) * + - 52
----
NULL

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL AVG ( DISTINCT - 0 ) - - - CAST ( NULL AS INTEGER ) * + - 52
----
NULL

query I rowsort
SELECT + 74 + - 37 AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3558
SELECT ALL + MIN( DISTINCT 94 )
----
94

skipif mysql # not compatible
query I rowsort label-3558
SELECT ALL + MIN ( DISTINCT 94 )
----
94

query I rowsort
SELECT - 26 + - 42
----
-68

query I rowsort
SELECT DISTINCT + NULLIF ( + 19, - 10 * 0 )
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT + - 8 + + + CASE - 42 WHEN + ( - + 24 ) THEN 91 END * - - ( - + NULLIF ( MIN( - 17 ), - 30 ) ) * + MAX( DISTINCT 5 ) * - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3561
SELECT + - 8 + + + CASE - 42 WHEN + ( - + 24 ) THEN 91 END * - - ( - + NULLIF ( MIN ( - 17 ), - 30 ) ) * + MAX ( DISTINCT 5 ) * - 16 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT DISTINCT + 97 * + ( - + COUNT( * ) ) * + 27
----
-2619

skipif mysql # not compatible
query I rowsort label-3562
SELECT DISTINCT + 97 * + ( - + COUNT ( * ) ) * + 27
----
-2619

query I rowsort
SELECT - ( + 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - - 70 + + MIN( 57 )
----
127

skipif mysql # not compatible
query I rowsort label-3564
SELECT - - 70 + + MIN ( 57 )
----
127

query I rowsort
SELECT ALL - - ( + 55 ) + + - 28
----
27

query II rowsort
SELECT - 48 + - + 57 AS col0, 54 + + 6
----
-105
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL - 62 + + 21 + - COUNT( * ) + + 40
----
-2

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - 62 + + 21 + - COUNT ( * ) + + 40
----
-2

query I rowsort
SELECT ALL + 3 * 13 + 26 + - - 42 AS col2
----
107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3569
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) col0
----
1

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL - 12 + MAX( ALL + - 47 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL - 12 + MAX ( ALL + - 47 ) AS col2
----
-59

query I rowsort
SELECT DISTINCT + 54 + NULLIF ( 50, - 33 ) * - 84 AS col1
----
-4146

onlyif mysql # DIV for integer division: 
query I rowsort label-3572
SELECT - + 32 DIV 61 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + 32 / 61 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3573
SELECT - + ( - 96 ) + - 39 + CAST( CASE 81 WHEN - + ( - 12 ) / 75 - - 7 THEN - 32 ELSE NULL END AS SIGNED ) * 55 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3573
SELECT - + ( - 96 ) + - 39 + CAST ( CASE 81 WHEN - + ( - 12 ) / 75 - - 7 THEN - 32 ELSE NULL END AS INTEGER ) * 55 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3574
SELECT ALL - 21 + 63 - 93 DIV + COUNT( * ) + 30 + + - 30 + + 93 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - 21 + 63 - 93 / + COUNT ( * ) + 30 + + - 30 + + 93 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT - - MIN( ALL + 98 )
----
98

skipif mysql # not compatible
query I rowsort label-3575
SELECT - - MIN ( ALL + 98 )
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT ALL - + CAST( - 90 AS SIGNED ) * - 3
----
-270

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - + CAST ( - 90 AS INTEGER ) * - 3
----
-270

query I rowsort
SELECT - + 82 * 26
----
-2132

query I rowsort
SELECT + 76 + + 21 AS col1
----
97

query I rowsort
SELECT + NULLIF ( 72, - - 45 * + 73 + 42 + 65 )
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ( COUNT( DISTINCT 85 ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-3580
SELECT ( COUNT ( DISTINCT 85 ) ) col2
----
1

query I rowsort
SELECT ALL 49 * - - 46 - + 82
----
2172

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT DISTINCT + COUNT( * ) * - 4 AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-3582
SELECT DISTINCT + COUNT ( * ) * - 4 AS col1
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-3583
SELECT + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-3583
SELECT + COUNT ( * ), + COUNT ( * )
----
1
1

query I rowsort
SELECT DISTINCT + 48 col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + 4 * + + COUNT( + + 88 ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + 4 * + + COUNT ( + + 88 ) AS col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3586
SELECT DISTINCT + 96 * COUNT( * ) - + 15 - - CAST( NULL AS SIGNED ) + + - 69
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT + 96 * COUNT ( * ) - + 15 - - CAST ( NULL AS INTEGER ) + + - 69
----
NULL

query I rowsort
SELECT ( 10 ) AS col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT + ( COALESCE ( - + CAST( - 9 AS SIGNED ), + - 24, + + 38 ) ) col1
----
9

skipif mysql # not compatible
query I rowsort label-3588
SELECT + ( COALESCE ( - + CAST ( - 9 AS INTEGER ), + - 24, + + 38 ) ) col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3589
SELECT + 98 * 75 DIV + + 74 * - COUNT( * ) AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-3589
SELECT + 98 * 75 / + + 74 * - COUNT ( * ) AS col1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT + COALESCE ( - 82, 80 + - 27 + 42 + - + ( 94 ) * + COUNT( * ) * 46 + - 17 + + + 93 - - + 24 + + COUNT( * ) ) * COUNT( * )
----
-82

skipif mysql # not compatible
query I rowsort label-3590
SELECT + COALESCE ( - 82, 80 + - 27 + 42 + - + ( 94 ) * + COUNT ( * ) * 46 + - 17 + + + 93 - - + 24 + + COUNT ( * ) ) * COUNT ( * )
----
-82

query I rowsort
SELECT + ( - + 40 )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT + 74 - - - ( 62 ) - + + 8 * - - 46 * - ( - COUNT( * ) ) AS col1
----
-356

skipif mysql # not compatible
query I rowsort label-3592
SELECT + 74 - - - ( 62 ) - + + 8 * - - 46 * - ( - COUNT ( * ) ) AS col1
----
-356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3593
SELECT + CAST( NULL AS SIGNED ), COALESCE ( - - COALESCE ( - + 86, - - 86 * + - AVG ( ALL + - 56 ), + 18 * - 49 + - 65 + - 97 * - - 46 ), 45 ) DIV 20 + CASE CASE 77 WHEN - ( 89 ) THEN CASE - 41 WHEN - 1 * - COUNT( * ) THEN 51 WHEN + MAX( 88 ) * 18 + COALESCE ( 51, - 12 * + 13 ) * + 88 THEN NULL END ELSE NULL END WHEN 92 * NULLIF ( + 43, + 98 + - 10 ) + - COUNT( - 20 ) THEN 15 ELSE + COUNT( * ) + 61 END DIV + COALESCE ( 57 DIV 57 + 38 * + 85, 72 ) AS col1
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-3593
SELECT + CAST ( NULL AS INTEGER ), COALESCE ( - - COALESCE ( - + 86, - - 86 * + - AVG ( ALL + - 56 ), + 18 * - 49 + - 65 + - 97 * - - 46 ), 45 ) / 20 + CASE CASE 77 WHEN - ( 89 ) THEN CASE - 41 WHEN - 1 * - COUNT ( * ) THEN 51 WHEN + MAX ( 88 ) * 18 + COALESCE ( 51, - 12 * + 13 ) * + 88 THEN NULL END ELSE NULL END WHEN 92 * NULLIF ( + 43, + 98 + - 10 ) + - COUNT ( - 20 ) THEN 15 ELSE + COUNT ( * ) + 61 END / + COALESCE ( 57 / 57 + 38 * + 85, 72 ) AS col1
----
NULL
-4

query I rowsort
SELECT + 68 * + 23
----
1564

query I rowsort
SELECT ALL 27 * + - 72
----
-1944

onlyif mysql # aggregate syntax: 
query II rowsort label-3596
SELECT - MIN( ALL - - 44 ) + + + COUNT( * ) AS col1, 28 * - NULLIF ( 26, + - 13 / - COUNT( ALL 10 ) + - + COUNT( * ) )
----
-43
-728

skipif mysql # not compatible
query II rowsort label-3596
SELECT - MIN ( ALL - - 44 ) + + + COUNT ( * ) AS col1, 28 * - NULLIF ( 26, + - 13 / - COUNT ( ALL 10 ) + - + COUNT ( * ) )
----
-43
-728

query I rowsort
SELECT - + ( - 42 ) * 94
----
3948

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL - CASE + AVG ( ALL + 45 ) WHEN - 13 THEN NULL WHEN + 38 THEN - - COALESCE ( + 78, + 41 + COUNT( * ) - 59 ) + - 87 * - 48 ELSE + 54 END * 70 + 39
----
-3741

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL - CASE + AVG ( ALL + 45 ) WHEN - 13 THEN NULL WHEN + 38 THEN - - COALESCE ( + 78, + 41 + COUNT ( * ) - 59 ) + - 87 * - 48 ELSE + 54 END * 70 + 39
----
-3741

query II rowsort
SELECT - + 72 AS col1, + 73 * + ( + 67 )
----
-72
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT + ( - 58 ) + - COUNT( + - 72 ) * + + COUNT( * )
----
-59

skipif mysql # not compatible
query I rowsort label-3600
SELECT + ( - 58 ) + - COUNT ( + - 72 ) * + + COUNT ( * )
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT - CASE + 93 WHEN 42 THEN NULL WHEN COUNT( 53 ) / - 13 THEN - 76 * 17 * 99 * COALESCE ( 11, + 39 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3601
SELECT - CASE + 93 WHEN 42 THEN NULL WHEN COUNT ( 53 ) / - 13 THEN - 76 * 17 * 99 * COALESCE ( 11, + 39 ) END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 83 + + 97
----
180

query II rowsort
SELECT - 16 col2, + 56
----
-16
56

onlyif mysql # aggregate syntax: 
query II rowsort label-3604
SELECT - 39 AS col2, COUNT( * ) / + ( + CASE - - 99 WHEN 28 THEN + 20 + + - 88 ELSE NULL END ) / + 33 * + - 96 AS col1
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-3604
SELECT - 39 AS col2, COUNT ( * ) / + ( + CASE - - 99 WHEN 28 THEN + 20 + + - 88 ELSE NULL END ) / + 33 * + - 96 AS col1
----
-39
NULL

query I rowsort
SELECT DISTINCT - + 65 - + 90
----
-155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3606
SELECT ALL + + NULLIF ( - 60, 29 + + 20 * - 70 ) * + 76 DIV COUNT( * ) + + 47 + + - 19 DIV + 98
----
-4513

skipif mysql # not compatible
query I rowsort label-3606
SELECT ALL + + NULLIF ( - 60, 29 + + 20 * - 70 ) * + 76 / COUNT ( * ) + + 47 + + - 19 / + 98
----
-4513

onlyif mysql # aggregate syntax: 
query II rowsort label-3607
SELECT DISTINCT - MIN( DISTINCT + - 44 ) * - 8 AS col2, 78 AS col1
----
-352
78

skipif mysql # not compatible
query II rowsort label-3607
SELECT DISTINCT - MIN ( DISTINCT + - 44 ) * - 8 AS col2, 78 AS col1
----
-352
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3608
SELECT - + 95 - - - 97 + COUNT( 70 ) DIV 88 * - SUM( - 38 )
----
-192

skipif mysql # not compatible
query I rowsort label-3608
SELECT - + 95 - - - 97 + COUNT ( 70 ) / 88 * - SUM ( - 38 )
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ( - COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-3609
SELECT ( - COUNT ( * ) ) col1
----
-1

query I rowsort
SELECT ALL 23 * 85 AS col0
----
1955

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT ALL CASE - 40 WHEN + 36 / COUNT( * ) * - 57 + - - 58 + - - 95 - - - 96 * - 68 THEN NULL ELSE - CAST( + SUM( - - 62 ) AS SIGNED ) END
----
-62

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL CASE - 40 WHEN + 36 / COUNT ( * ) * - 57 + - - 58 + - - 95 - - - 96 * - 68 THEN NULL ELSE - CAST ( + SUM ( - - 62 ) AS INTEGER ) END
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3612
SELECT ALL - 45 DIV - 14 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL - 45 / - 14 AS col1
----
3

query I rowsort
SELECT - 17 * - 82 * + 42 AS col0
----
58548

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT + MAX( ALL 41 )
----
41

skipif mysql # not compatible
query I rowsort label-3614
SELECT + MAX ( ALL 41 )
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3615
SELECT 3 * + CAST( + 32 AS SIGNED )
----
96

skipif mysql # not compatible
query I rowsort label-3615
SELECT 3 * + CAST ( + 32 AS INTEGER )
----
96

query II rowsort
SELECT 42 * + 88 AS col0, 3 AS col2
----
3696
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3617
SELECT 48 / CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3617
SELECT 48 / CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3618
SELECT - 57 * + NULLIF ( 93, - 0 / + + CAST( - - COALESCE ( + 34, + + COUNT( + 9 ) ) AS SIGNED ) ) + - 12 + + 35 + + - 93 * CAST( MIN( ALL COALESCE ( - 80, 73 ) ) AS SIGNED )
----
2162

skipif mysql # not compatible
query I rowsort label-3618
SELECT - 57 * + NULLIF ( 93, - 0 / + + CAST ( - - COALESCE ( + 34, + + COUNT ( + 9 ) ) AS INTEGER ) ) + - 12 + + 35 + + - 93 * CAST ( MIN ( ALL COALESCE ( - 80, 73 ) ) AS INTEGER )
----
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT DISTINCT + 82 * + MAX( + 25 ) * + + 49
----
100450

skipif mysql # not compatible
query I rowsort label-3619
SELECT DISTINCT + 82 * + MAX ( + 25 ) * + + 49
----
100450

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT + 75 * - - 49 + - - 67 + - - 18 DIV + 90 DIV ( - - 79 ) * + - 41 + 94 AS col0
----
3836

skipif mysql # not compatible
query I rowsort label-3620
SELECT + 75 * - - 49 + - - 67 + - - 18 / + 90 / ( - - 79 ) * + - 41 + 94 AS col0
----
3836

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3621
SELECT DISTINCT - ( 46 ) + + + CASE + 90 WHEN + 26 THEN NULL WHEN + 9 + COUNT( * ) * - 88 * - 92 - - 94 DIV - ( - + ( + 15 ) ) + + 87 THEN - 76 * + 55 ELSE 30 END DIV COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-3621
SELECT DISTINCT - ( 46 ) + + + CASE + 90 WHEN + 26 THEN NULL WHEN + 9 + COUNT ( * ) * - 88 * - 92 - - 94 / - ( - + ( + 15 ) ) + + 87 THEN - 76 * + 55 ELSE 30 END / COUNT ( * )
----
-16

query I rowsort
SELECT 31 * - 51 * - + 57 AS col0
----
90117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col0
----
NULL

query II rowsort
SELECT 64 + + - 63, + 28 col2
----
1
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT + - SUM( 54 ) col2
----
-54

skipif mysql # not compatible
query I rowsort label-3625
SELECT + - SUM ( 54 ) col2
----
-54

query I rowsort
SELECT ALL + 6 + + 62
----
68

query I rowsort
SELECT ALL - ( - 12 )
----
12

query I rowsort
SELECT DISTINCT - - 82 AS col1
----
82

query I rowsort
SELECT ALL - COALESCE ( - + 83, + + 31 )
----
83

query I rowsort
SELECT ALL 0 + + 38 AS col0
----
38

query I rowsort
SELECT DISTINCT + 54 * 76 * - - 88 AS col1
----
361152

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT COUNT( ALL - 4 ) + + NULLIF ( + 97, + ( 61 ) )
----
98

skipif mysql # not compatible
query I rowsort label-3632
SELECT COUNT ( ALL - 4 ) + + NULLIF ( + 97, + ( 61 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT - 66 + + + 68 + ( + 36 ) + - ( - - 82 ) * + COUNT( * ) * - 93 * - 36 * - + COUNT( * ) * - 73
----
-20041090

skipif mysql # not compatible
query I rowsort label-3633
SELECT - 66 + + + 68 + ( + 36 ) + - ( - - 82 ) * + COUNT ( * ) * - 93 * - 36 * - + COUNT ( * ) * - 73
----
-20041090

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + MIN( - + 46 ) AS col2
----
-46

skipif mysql # not compatible
query I rowsort label-3634
SELECT + MIN ( - + 46 ) AS col2
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-3635
SELECT 92 DIV - 82 + + 4 AS col1
----
3

skipif mysql # not compatible
query I rowsort label-3635
SELECT 92 / - 82 + + 4 AS col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT CAST( NULL AS SIGNED ) + - ( - ( - 34 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3636
SELECT CAST ( NULL AS INTEGER ) + - ( - ( - 34 ) ) AS col2
----
NULL

query I rowsort
SELECT DISTINCT + 38 - 61 AS col1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3638
SELECT ALL ( + 89 ) AS col2, CAST( - - 74 AS SIGNED ) * - 36
----
89
-2664

skipif mysql # not compatible
query II rowsort label-3638
SELECT ALL ( + 89 ) AS col2, CAST ( - - 74 AS INTEGER ) * - 36
----
89
-2664

query I rowsort
SELECT 23 + + 25 AS col1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT 26 * - 20 * COUNT( * )
----
-520

skipif mysql # not compatible
query I rowsort label-3640
SELECT 26 * - 20 * COUNT ( * )
----
-520

query I rowsort
SELECT ALL 18 col0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT 32 + 39 + - 64 - + + 65 * - ( - 93 ) * - 23 + - COALESCE ( - 76, 33, - ( - - COUNT( * ) ) ) * - 90 * + - 15
----
241642

skipif mysql # not compatible
query I rowsort label-3642
SELECT 32 + 39 + - 64 - + + 65 * - ( - 93 ) * - 23 + - COALESCE ( - 76, 33, - ( - - COUNT ( * ) ) ) * - 90 * + - 15
----
241642

onlyif mysql # aggregate syntax: 
query II rowsort label-3643
SELECT - 73, + COUNT( - - 72 ) + + ( + ( - - 74 ) ) + 13 * - + MAX( 29 ) * - + 19 - - 15 AS col0
----
-73
7253

skipif mysql # not compatible
query II rowsort label-3643
SELECT - 73, + COUNT ( - - 72 ) + + ( + ( - - 74 ) ) + 13 * - + MAX ( 29 ) * - + 19 - - 15 AS col0
----
-73
7253

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT 42 + COUNT( - 51 ) * - - 99 col2
----
141

skipif mysql # not compatible
query I rowsort label-3644
SELECT 42 + COUNT ( - 51 ) * - - 99 col2
----
141

query I rowsort
SELECT 16 * - + 72 AS col1
----
-1152

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3646
SELECT ALL - ( + 10 ) + - 44 - - + COUNT( * ) + + AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * - MIN( ALL + + 58 ) * - 0 * 53 * - 61 + + 82 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3646
SELECT ALL - ( + 10 ) + - 44 - - + COUNT ( * ) + + AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - MIN ( ALL + + 58 ) * - 0 * 53 * - 61 + + 82 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3647
SELECT ALL - MIN( - 39 )
----
39

skipif mysql # not compatible
query I rowsort label-3647
SELECT ALL - MIN ( - 39 )
----
39

query I rowsort
SELECT DISTINCT 98 + - 48
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL COUNT( * ) + - 57 + - COUNT( * ) AS col1
----
-57

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL COUNT ( * ) + - 57 + - COUNT ( * ) AS col1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT DISTINCT - 96 + - - NULLIF ( - 2, COALESCE ( - 7, - - 17 - 85 * 43 * - - 14 + 50 * + - CAST( - 25 AS SIGNED ) * - + 62 + + - 67 / - + MAX( 4 ), SUM( ALL + 22 ) ) ) + 51 * - 65
----
-3413

skipif mysql # not compatible
query I rowsort label-3650
SELECT DISTINCT - 96 + - - NULLIF ( - 2, COALESCE ( - 7, - - 17 - 85 * 43 * - - 14 + 50 * + - CAST ( - 25 AS INTEGER ) * - + 62 + + - 67 / - + MAX ( 4 ), SUM ( ALL + 22 ) ) ) + 51 * - 65
----
-3413

query I rowsort
SELECT ALL + 42 + - 35
----
7

query I rowsort
SELECT ALL - ( + - 90 )
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL - CAST( NULL AS SIGNED ) + + 17 + + - 16 - + 13 / - 68 + - + 34 / + - CASE 75 WHEN + 10 THEN + COALESCE ( ( ( - + ( AVG ( ALL + 53 ) ) ) ), 87 + 14, 65 * - COUNT( * ) + 63 * - CAST( 41 * - 34 AS SIGNED ) ) END + - 90 / - COUNT( ALL 44 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - CAST ( NULL AS INTEGER ) + + 17 + + - 16 - + 13 / - 68 + - + 34 / + - CASE 75 WHEN + 10 THEN + COALESCE ( ( ( - + ( AVG ( ALL + 53 ) ) ) ), 87 + 14, 65 * - COUNT ( * ) + 63 * - CAST ( 41 * - 34 AS INTEGER ) ) END + - 90 / - COUNT ( ALL 44 ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3654
SELECT 31 DIV + 73
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT 31 / + 73
----
0

query I rowsort
SELECT 67 * - 62 AS col2
----
-4154

query I rowsort
SELECT 76 * + - 95 AS col2
----
-7220

onlyif mysql # aggregate syntax: 
query I rowsort label-3657
SELECT + ( MIN( + 2 ) )
----
2

skipif mysql # not compatible
query I rowsort label-3657
SELECT + ( MIN ( + 2 ) )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL 45 * - COUNT( * ) * + 27 * + - 31 col2
----
37665

skipif mysql # not compatible
query I rowsort label-3658
SELECT ALL 45 * - COUNT ( * ) * + 27 * + - 31 col2
----
37665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3659
SELECT ALL - CAST( - SUM( DISTINCT + + 46 ) AS SIGNED ) * + COALESCE ( - + 2, - 77, - 67 * 8 DIV 78 ) + - 52 AS col0, + 2 AS col1
----
-144
2

skipif mysql # not compatible
query II rowsort label-3659
SELECT ALL - CAST ( - SUM ( DISTINCT + + 46 ) AS INTEGER ) * + COALESCE ( - + 2, - 77, - 67 * 8 / 78 ) + - 52 AS col0, + 2 AS col1
----
-144
2

query I rowsort
SELECT ALL + - 23 - - 6 AS col0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3661
SELECT ALL 72 - - CASE - 42 WHEN + CAST( NULL AS SIGNED ) + - 90 THEN NULL ELSE - + 97 * 3 END AS col1
----
-219

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL 72 - - CASE - 42 WHEN + CAST ( NULL AS INTEGER ) + - 90 THEN NULL ELSE - + 97 * 3 END AS col1
----
-219

query I rowsort
SELECT 35 * 48
----
1680

query I rowsort
SELECT ALL - 25 * 35
----
-875

query II rowsort
SELECT + - 68 AS col2, 76 col1
----
-68
76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3665
SELECT + 64 + - COALESCE ( - 40, + 28 + + + 26, 99 ) + + 38 - 21 * CASE + + CAST( NULL AS DECIMAL ) WHEN - - 10 / - 73 / COUNT( * ) THEN NULL WHEN + 48 THEN NULL ELSE 90 + - CASE 23 WHEN 99 THEN NULL WHEN - COUNT( * ) * 5 THEN - COUNT( * ) * CAST( 0 AS DECIMAL ) END END * + 24
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT + 64 + - COALESCE ( - 40, + 28 + + + 26, 99 ) + + 38 - 21 * CASE + + CAST ( NULL AS REAL ) WHEN - - 10 / - 73 / COUNT ( * ) THEN NULL WHEN + 48 THEN NULL ELSE 90 + - CASE 23 WHEN 99 THEN NULL WHEN - COUNT ( * ) * 5 THEN - COUNT ( * ) * CAST ( 0 AS REAL ) END END * + 24
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT COUNT( * ) * 18 * + 90 AS col1
----
1620

skipif mysql # not compatible
query I rowsort label-3666
SELECT COUNT ( * ) * 18 * + 90 AS col1
----
1620

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3667
SELECT - ( + - COALESCE ( - NULLIF ( 84, 52 + + + SUM( + 39 ) ), + 88 * + COUNT( * ) DIV 2 DIV CASE WHEN NOT ( - 28 ) IS NOT NULL THEN 48 WHEN ( - ( - 5 ) ) >= CASE + 17 WHEN - 19 THEN + 75 END THEN NULL END, 32 - 61 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-3667
SELECT - ( + - COALESCE ( - NULLIF ( 84, 52 + + + SUM ( + 39 ) ), + 88 * + COUNT ( * ) / 2 / CASE WHEN NOT ( - 28 ) IS NOT NULL THEN 48 WHEN ( - ( - 5 ) ) >= CASE + 17 WHEN - 19 THEN + 75 END THEN NULL END, 32 - 61 ) ) AS col0
----
-84

query I rowsort
SELECT DISTINCT NULLIF ( + + 83, - + 94 * - 28 ) AS col2
----
83

query I rowsort
SELECT NULLIF ( - - COALESCE ( - 72, - ( + 82 ) ), + - 95 ) + + + 91
----
19

query I rowsort
SELECT 37 * 38 * 91 * - 17
----
-2175082

query I rowsort
SELECT DISTINCT - 81 * - - 49
----
-3969

query II rowsort
SELECT ALL 8 AS col1, + 57 AS col0
----
8
57

query II rowsort
SELECT DISTINCT 10 AS col2, ( ( - - 34 ) ) AS col1
----
10
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT ALL COUNT( * ) * 54 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL COUNT ( * ) * 54 AS col1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT - ( COUNT( * ) ) * - - 80 AS col2
----
-80

skipif mysql # not compatible
query I rowsort label-3675
SELECT - ( COUNT ( * ) ) * - - 80 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT + 11 * + COUNT( * )
----
11

skipif mysql # not compatible
query I rowsort label-3676
SELECT + 11 * + COUNT ( * )
----
11

query II rowsort
SELECT 89, 95 * + - 92 AS col1
----
89
-8740

query II rowsort
SELECT ALL 19 col2, 86 col1
----
19
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3679
SELECT + MIN( ALL 95 ) DIV + - 35 + - - 2
----
0

skipif mysql # not compatible
query I rowsort label-3679
SELECT + MIN ( ALL 95 ) / + - 35 + - - 2
----
0

query I rowsort
SELECT + 75 - - 48 AS col0
----
123

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3681
SELECT DISTINCT CAST( - 96 AS SIGNED ) DIV 52 * - - COALESCE ( - 31, + + NULLIF ( + NULLIF ( - SUM( ALL + 34 ), + NULLIF ( + + 23, 82 ) ), + SUM( DISTINCT - + 30 ) ) + - + 60 - + - 3 * 32 ) DIV + 15 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT CAST ( - 96 AS INTEGER ) / 52 * - - COALESCE ( - 31, + + NULLIF ( + NULLIF ( - SUM ( ALL + 34 ), + NULLIF ( + + 23, 82 ) ), + SUM ( DISTINCT - + 30 ) ) + - + 60 - + - 3 * 32 ) / + 15 AS col0
----
2

query I rowsort
SELECT ALL 57 + - 1 AS col0
----
56

query I rowsort
SELECT DISTINCT - 28 + - - 92 + + 17 * + 15
----
319

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3684
SELECT DISTINCT MIN( - ( + 57 ) ) + - ( - CASE + COUNT( * ) WHEN AVG ( DISTINCT - 15 ) THEN NULL ELSE + - 40 * + COUNT( * ) + 20 + 55 END ) * + MIN( DISTINCT + 42 ) - + - 64 + + ( - 12 ) DIV 20
----
1477

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT MIN ( - ( + 57 ) ) + - ( - CASE + COUNT ( * ) WHEN AVG ( DISTINCT - 15 ) THEN NULL ELSE + - 40 * + COUNT ( * ) + 20 + 55 END ) * + MIN ( DISTINCT + 42 ) - + - 64 + + ( - 12 ) / 20
----
1477

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3685
SELECT - COALESCE ( + - COUNT( * ), CAST( NULL AS SIGNED ) * + 46 * 46 * 42 + - - 71 * - CASE - + COALESCE ( 74, - + 58 - + 58 - - 67 ) WHEN + 79 THEN + + COALESCE ( - + 25, + 88 - + 2 * + 75, - 83, - 45 * COUNT( * ) + + ( 68 - + 11 ) ) DIV 83 + + 68 DIV 5 WHEN + COUNT( * ) THEN + 46 WHEN CASE 89 WHEN + 35 * + 35 THEN + 35 + - 0 WHEN + CAST( NULL AS SIGNED ) THEN COUNT( * ) ELSE 34 * + COUNT( * ) END THEN NULL END * 27 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3685
SELECT - COALESCE ( + - COUNT ( * ), CAST ( NULL AS INTEGER ) * + 46 * 46 * 42 + - - 71 * - CASE - + COALESCE ( 74, - + 58 - + 58 - - 67 ) WHEN + 79 THEN + + COALESCE ( - + 25, + 88 - + 2 * + 75, - 83, - 45 * COUNT ( * ) + + ( 68 - + 11 ) ) / 83 + + 68 / 5 WHEN + COUNT ( * ) THEN + 46 WHEN CASE 89 WHEN + 35 * + 35 THEN + 35 + - 0 WHEN + CAST ( NULL AS INTEGER ) THEN COUNT ( * ) ELSE 34 * + COUNT ( * ) END THEN NULL END * 27 ) AS col0
----
1

query I rowsort
SELECT ALL - 10 + - - 99
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3687
SELECT 74 * - + COALESCE ( - ( ( - - 40 ) ), + 59, - 0 DIV + COUNT( * ), - 29 * - 48 ) - + - 84 AS col0
----
3044

skipif mysql # not compatible
query I rowsort label-3687
SELECT 74 * - + COALESCE ( - ( ( - - 40 ) ), + 59, - 0 / + COUNT ( * ), - 29 * - 48 ) - + - 84 AS col0
----
3044

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL + COUNT( ALL - 80 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL + COUNT ( ALL - 80 ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT ALL 92 * 70 * - - 7 * - + COUNT( * ) + + 37 + - - COUNT( * ) col1
----
-45042

skipif mysql # not compatible
query I rowsort label-3689
SELECT ALL 92 * 70 * - - 7 * - + COUNT ( * ) + + 37 + - - COUNT ( * ) col1
----
-45042

query I rowsort
SELECT + 85 * - - 31 * + 42 AS col2
----
110670

query I rowsort
SELECT NULLIF ( + 83, + 79 )
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT COUNT( * ) * - 93 + - + COUNT( * ) col0
----
-94

skipif mysql # not compatible
query I rowsort label-3692
SELECT COUNT ( * ) * - 93 + - + COUNT ( * ) col0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3693
SELECT ALL + 21, CAST( + 48 AS SIGNED ) AS col2
----
21
48

skipif mysql # not compatible
query II rowsort label-3693
SELECT ALL + 21, CAST ( + 48 AS INTEGER ) AS col2
----
21
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT ALL 71 * + 53 - - CAST( NULL AS SIGNED ) * + COUNT( * ) + - 60 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT ALL 71 * + 53 - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 60 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT + - COALESCE ( - 37, COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-3695
SELECT + - COALESCE ( - 37, COUNT ( * ) ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT - 3 + - 86 + + COUNT( * ) * - 15
----
-104

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 3 + - 86 + + COUNT ( * ) * - 15
----
-104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3697
SELECT + + COUNT( ALL + 59 ) DIV + 60
----
0

skipif mysql # not compatible
query I rowsort label-3697
SELECT + + COUNT ( ALL + 59 ) / + 60
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3698
SELECT - + 59 DIV - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-3698
SELECT - + 59 / - 65 AS col1
----
0

query I rowsort
SELECT + - ( - - 5 ) * + 54 AS col2
----
-270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3700
SELECT + NULLIF ( + NULLIF ( + CAST( NULL AS SIGNED ), - + 7 / + 1 + - + 87 / + 2 / - 52 ), + 41 + 82 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3700
SELECT + NULLIF ( + NULLIF ( + CAST ( NULL AS INTEGER ), - + 7 / + 1 + - + 87 / + 2 / - 52 ), + 41 + 82 ) AS col1
----
NULL

query I rowsort
SELECT 84 * - + 71 + - ( + ( + 65 ) ) + 22 + + 65
----
-5942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT + CAST( 41 AS SIGNED )
----
41

skipif mysql # not compatible
query I rowsort label-3702
SELECT + CAST ( 41 AS INTEGER )
----
41

query II rowsort
SELECT DISTINCT + 24, - 48 col0
----
24
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT ALL + - 96 DIV - 39 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-3704
SELECT ALL + - 96 / - 39 AS col0
----
2

query I rowsort
SELECT - 62 * + CASE + 64 WHEN - + 57 THEN 94 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT + - COUNT( * ) * + 49
----
-49

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT + - COUNT ( * ) * + 49
----
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-3707
SELECT DISTINCT + 3 AS col2, COUNT( * )
----
3
1

skipif mysql # not compatible
query II rowsort label-3707
SELECT DISTINCT + 3 AS col2, COUNT ( * )
----
3
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3708
SELECT DISTINCT - CASE 62 WHEN + + 88 + - ( - 26 ) + - - 14 THEN NULL ELSE - - CAST( NULL AS SIGNED ) + 24 * MAX( - 71 ) * - 21 END AS col1, 28
----
NULL
28

skipif mysql # not compatible
query II rowsort label-3708
SELECT DISTINCT - CASE 62 WHEN + + 88 + - ( - 26 ) + - - 14 THEN NULL ELSE - - CAST ( NULL AS INTEGER ) + 24 * MAX ( - 71 ) * - 21 END AS col1, 28
----
NULL
28

query I rowsort
SELECT - + 58 * + 12
----
-696

query I rowsort
SELECT ALL + 52 * + - 20 + - 28
----
-1068

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT CASE - - COUNT( * ) WHEN - 97 / - 95 / + + 68 THEN - - 76 + + 26 + + + 67 END
----
NULL

skipif mysql # not compatible
query I rowsort label-3711
SELECT CASE - - COUNT ( * ) WHEN - 97 / - 95 / + + 68 THEN - - 76 + + 26 + + + 67 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - ( + MIN( + 81 ) ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-3712
SELECT - ( + MIN ( + 81 ) ) col2
----
-81

query I rowsort
SELECT DISTINCT ( + 46 )
----
46

query I rowsort
SELECT - 82 * - NULLIF ( + 59, - 29 )
----
4838

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3715
SELECT + 88 * - + CAST( NULL AS SIGNED ) / - + 85 * + - 98 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT + 88 * - + CAST ( NULL AS INTEGER ) / - + 85 * + - 98 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3716
SELECT ALL + CAST( NULL AS SIGNED ) + + + MAX( ALL + ( - 56 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + CAST ( NULL AS INTEGER ) + + + MAX ( ALL + ( - 56 ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3717
SELECT DISTINCT CAST( ( - 76 ) AS SIGNED ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3717
SELECT DISTINCT CAST ( ( - 76 ) AS INTEGER ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT - 52 + 92 * + COUNT( * ) + - 6 * + + 56 AS col1
----
-296

skipif mysql # not compatible
query I rowsort label-3718
SELECT - 52 + 92 * + COUNT ( * ) + - 6 * + + 56 AS col1
----
-296

query I rowsort
SELECT ALL ( - - 44 ) AS col2
----
44

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT + 28 + - SUM( + 72 ) AS col2, + 22 + + COUNT( * ) col0
----
-44
23

skipif mysql # not compatible
query II rowsort label-3720
SELECT + 28 + - SUM ( + 72 ) AS col2, + 22 + + COUNT ( * ) col0
----
-44
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3721
SELECT ALL 40 + + CASE - 38 WHEN + 31 THEN - 33 * ( - ( + CAST( + COALESCE ( 59, 10, - + 18 * - 58 + + 49 ) AS SIGNED ) ) ) + + + 74 * + - NULLIF ( - + CAST( NULL AS DECIMAL ), + 28 ) WHEN + 96 THEN NULL END - - NULLIF ( + 90, + MAX( 74 ) ) * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL 40 + + CASE - 38 WHEN + 31 THEN - 33 * ( - ( + CAST ( + COALESCE ( 59, 10, - + 18 * - 58 + + 49 ) AS INTEGER ) ) ) + + + 74 * + - NULLIF ( - + CAST ( NULL AS REAL ), + 28 ) WHEN + 96 THEN NULL END - - NULLIF ( + 90, + MAX ( 74 ) ) * 79 AS col2
----
NULL

query I rowsort
SELECT - NULLIF ( - + 10, + 92 ) col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL + 15 + - 56 * - - COUNT( * )
----
-41

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + 15 + - 56 * - - COUNT ( * )
----
-41

query I rowsort
SELECT ALL 80 + - - 34
----
114

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3725
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + COUNT( * ) + - - 96 * 23
----
2207

skipif mysql # not compatible
query I rowsort label-3725
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + - - 96 * 23
----
2207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT DISTINCT + 97 - + 67 * + + ( CAST( 73 AS SIGNED ) )
----
-4794

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT + 97 - + 67 * + + ( CAST ( 73 AS INTEGER ) )
----
-4794

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT ALL 32 DIV - 27
----
-1

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL 32 / - 27
----
-1

query I rowsort
SELECT + ( + ( 50 ) )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3729
SELECT + + 63 * CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3729
SELECT + + 63 * CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) col1
----
NULL

query I rowsort
SELECT ALL + + 71 col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT 94 * 39 * + + 87 - - + 48 + + - 10 * - 54 + + CASE + NULLIF ( - 25, 11 ) WHEN 90 + - + 65 THEN ( - + COUNT( * ) ) WHEN + 42 * - NULLIF ( + + 21, 26 + ( - 22 ) * 96 ) THEN NULL END - - 8
----
NULL

skipif mysql # not compatible
query I rowsort label-3731
SELECT 94 * 39 * + + 87 - - + 48 + + - 10 * - 54 + + CASE + NULLIF ( - 25, 11 ) WHEN 90 + - + 65 THEN ( - + COUNT ( * ) ) WHEN + 42 * - NULLIF ( + + 21, 26 + ( - 22 ) * 96 ) THEN NULL END - - 8
----
NULL

query I rowsort
SELECT + + ( - 97 )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT ALL 93 * COUNT( 95 ) * + 6 * 70 - - 99 * + - 94
----
29754

skipif mysql # not compatible
query I rowsort label-3733
SELECT ALL 93 * COUNT ( 95 ) * + 6 * 70 - - 99 * + - 94
----
29754

query I rowsort
SELECT - 33 * - - 24 AS col1
----
-792

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3735
SELECT DISTINCT + 75 * + 8 DIV COUNT( * ) - 86
----
514

skipif mysql # not compatible
query I rowsort label-3735
SELECT DISTINCT + 75 * + 8 / COUNT ( * ) - 86
----
514

query I rowsort
SELECT ALL + NULLIF ( 69, - 6 )
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT + 90 - ( - - SUM( + 70 ) )
----
20

skipif mysql # not compatible
query I rowsort label-3737
SELECT + 90 - ( - - SUM ( + 70 ) )
----
20

query II rowsort
SELECT + - 36 * - 43 AS col1, 64 + + 25 AS col1
----
1548
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3739
SELECT DISTINCT + NULLIF ( + - 15, + 45 + - 0 ) * + 33 AS col1, + COUNT( * ) DIV 98
----
-495
0

skipif mysql # not compatible
query II rowsort label-3739
SELECT DISTINCT + NULLIF ( + - 15, + 45 + - 0 ) * + 33 AS col1, + COUNT ( * ) / 98
----
-495
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT 78 * + MIN( + 67 )
----
5226

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT 78 * + MIN ( + 67 )
----
5226

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT - 17 * ( + COUNT( * ) )
----
-17

skipif mysql # not compatible
query I rowsort label-3741
SELECT - 17 * ( + COUNT ( * ) )
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT - - 87 DIV + + 62 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-3742
SELECT - - 87 / + + 62 AS col0
----
1

query I rowsort
SELECT ALL + ( - 22 )
----
-22

query I rowsort
SELECT + 70 + - 60
----
10

query I rowsort
SELECT DISTINCT - 48 + - 64 AS col2
----
-112

query I rowsort
SELECT DISTINCT + 90 + - 99 AS col0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3747
SELECT ALL - + 76 DIV - - 97 * 79 DIV + COUNT( ALL + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL - + 76 / - - 97 * 79 / + COUNT ( ALL + 55 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3748
SELECT COUNT( * ) DIV - + 82 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-3748
SELECT COUNT ( * ) / - + 82 + + 59
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL + CASE - CAST( NULL AS SIGNED ) WHEN + - 11 * + + COUNT( * ) THEN NULL WHEN 10 THEN NULL ELSE + 62 END + - 65
----
-3

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + CASE - CAST ( NULL AS INTEGER ) WHEN + - 11 * + + COUNT ( * ) THEN NULL WHEN 10 THEN NULL ELSE + 62 END + - 65
----
-3

query I rowsort
SELECT DISTINCT - 0 * - 87
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3751
SELECT DISTINCT SUM( DISTINCT 20 ) + - 21 AS col0, 0 AS col0
----
-1
0

skipif mysql # not compatible
query II rowsort label-3751
SELECT DISTINCT SUM ( DISTINCT 20 ) + - 21 AS col0, 0 AS col0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT 32 DIV - + 13 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3752
SELECT 32 / - + 13 AS col1
----
-2

query I rowsort
SELECT ALL 58 + - 70 + 28 AS col1
----
16

query II rowsort
SELECT DISTINCT 20 AS col0, 44 col0
----
20
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3755
SELECT ALL + 10 + + + 10 + + - 68 + - 39 - - ( SUM( ALL + - NULLIF ( 58, 50 ) ) ) DIV - + 68 - - 85 * COUNT( * ) col0
----
-2

skipif mysql # not compatible
query I rowsort label-3755
SELECT ALL + 10 + + + 10 + + - 68 + - 39 - - ( SUM ( ALL + - NULLIF ( 58, 50 ) ) ) / - + 68 - - 85 * COUNT ( * ) col0
----
-2

query I rowsort
SELECT 22 + - 28
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3757
SELECT 38 AS col1, MAX( ALL + 53 )
----
38
53

skipif mysql # not compatible
query II rowsort label-3757
SELECT 38 AS col1, MAX ( ALL + 53 )
----
38
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT COUNT( + + 21 ) * - COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-3758
SELECT COUNT ( + + 21 ) * - COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL + 10 - ( + SUM( - 60 ) ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + 10 - ( + SUM ( - 60 ) ) AS col0
----
70

query II rowsort
SELECT 52, 18 * - 81 AS col1
----
52
-1458

query I rowsort
SELECT 47 - + 88
----
-41

query I rowsort
SELECT 50 * 92
----
4600

query II rowsort
SELECT - 91 AS col1, 19 col2
----
-91
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3764
SELECT ALL 92, MIN( DISTINCT 63 ) * + - ( + - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-3764
SELECT ALL 92, MIN ( DISTINCT 63 ) * + - ( + - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0
----
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL + ( + + 48 ) - COALESCE ( - 86, + + COUNT( * ) ) + COUNT( * ) AS col2
----
135

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + ( + + 48 ) - COALESCE ( - 86, + + COUNT ( * ) ) + COUNT ( * ) AS col2
----
135

query I rowsort
SELECT 66 + + 59
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT ALL - 47 - + COUNT( * ) * 21 AS col0
----
-68

skipif mysql # not compatible
query I rowsort label-3767
SELECT ALL - 47 - + COUNT ( * ) * 21 AS col0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT ALL 26 * + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT ALL 26 * + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT 82 * - ( + ( ( 57 ) ) ) * + + COUNT( * )
----
-4674

skipif mysql # not compatible
query I rowsort label-3769
SELECT 82 * - ( + ( ( 57 ) ) ) * + + COUNT ( * )
----
-4674

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3770
SELECT DISTINCT - 75 DIV - COALESCE ( - + ( + 72 ), 49 ) * COUNT( * )
----
-1

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - 75 / - COALESCE ( - + ( + 72 ), 49 ) * COUNT ( * )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3771
SELECT ALL - ( + CAST( + COALESCE ( + 99, + 16 * 2, - 0 * - COUNT( * ) * 91 ) AS SIGNED ) ) AS col0, 41 AS col2
----
-99
41

skipif mysql # not compatible
query II rowsort label-3771
SELECT ALL - ( + CAST ( + COALESCE ( + 99, + 16 * 2, - 0 * - COUNT ( * ) * 91 ) AS INTEGER ) ) AS col0, 41 AS col2
----
-99
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3772
SELECT - CAST( NULL AS SIGNED ) + - 84 - - CAST( NULL AS SIGNED ) / + 68 + + + 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3772
SELECT - CAST ( NULL AS INTEGER ) + - 84 - - CAST ( NULL AS INTEGER ) / + 68 + + + 15
----
NULL

query I rowsort
SELECT 40 - 10
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3774
SELECT 43 / - CAST( NULL AS SIGNED ) - - 26 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3774
SELECT 43 / - CAST ( NULL AS INTEGER ) - - 26 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT ALL 78 * - 27 * - ( + SUM( DISTINCT + 31 ) )
----
65286

skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL 78 * - 27 * - ( + SUM ( DISTINCT + 31 ) )
----
65286

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3776
SELECT MIN( - CAST( NULL AS SIGNED ) ) / + - 49 - + + ( + 5 ) * 43 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) / + - 49 - + + ( + 5 ) * 43 AS col2
----
NULL

query II rowsort
SELECT + + 70 * - + 54 + + - 36 * - 74 AS col1, - 93
----
-1116
-93

query II rowsort
SELECT + 19, 66 AS col1
----
19
66

query I rowsort
SELECT 63 * + 14
----
882

query II rowsort
SELECT DISTINCT - + 0, 23 AS col2
----
0
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT 12 + 59 + - + 28 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3781
SELECT 12 + 59 + - + 28 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 43 * + 82
----
3526

onlyif mysql # aggregate syntax: 
query II rowsort label-3783
SELECT DISTINCT - 61, - 10 + + MAX( DISTINCT - NULLIF ( + 90, - 71 ) ) col1
----
-61
-100

skipif mysql # not compatible
query II rowsort label-3783
SELECT DISTINCT - 61, - 10 + + MAX ( DISTINCT - NULLIF ( + 90, - 71 ) ) col1
----
-61
-100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3784
SELECT COUNT( * ) * + COUNT( * ) * + + 78 + - MIN( DISTINCT - 2 ) + - - CASE 38 WHEN + 30 THEN - + 60 * 49 / - - 52 - + 44 + - + COALESCE ( - + 74, - 55 ) * 27 * + 19 + + 49 + - 80 * COUNT( * ) + ( CAST( - COALESCE ( 23, - 38 + NULLIF ( 71, - 42 ), ( 8 ) + + 24 * COALESCE ( - COALESCE ( + 83, + 47 / 22 ), 28, + CASE + 59 WHEN + 16 THEN + 88 END / 96 ) ) AS SIGNED ) ) ELSE NULL END - 42
----
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT COUNT ( * ) * + COUNT ( * ) * + + 78 + - MIN ( DISTINCT - 2 ) + - - CASE 38 WHEN + 30 THEN - + 60 * 49 / - - 52 - + 44 + - + COALESCE ( - + 74, - 55 ) * 27 * + 19 + + 49 + - 80 * COUNT ( * ) + ( CAST ( - COALESCE ( 23, - 38 + NULLIF ( 71, - 42 ), ( 8 ) + + 24 * COALESCE ( - COALESCE ( + 83, + 47 / 22 ), 28, + CASE + 59 WHEN + 16 THEN + 88 END / 96 ) ) AS INTEGER ) ) ELSE NULL END - 42
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT + - 92 AS col1, SUM( + - 28 ) * + ( 59 ) AS col0
----
-92
-1652

skipif mysql # not compatible
query II rowsort label-3785
SELECT + - 92 AS col1, SUM ( + - 28 ) * + ( 59 ) AS col0
----
-92
-1652

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT - 32 * - + 78 + + 42 * + COUNT( * ) * 28 + COALESCE ( 49, - - 4 * - 55 * + + NULLIF ( 78, COUNT( * ) * - + 75 ) * + + 9 )
----
3721

skipif mysql # not compatible
query I rowsort label-3786
SELECT - 32 * - + 78 + + 42 * + COUNT ( * ) * 28 + COALESCE ( 49, - - 4 * - 55 * + + NULLIF ( 78, COUNT ( * ) * - + 75 ) * + + 9 )
----
3721

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT COUNT( * ) * - 51
----
-51

skipif mysql # not compatible
query I rowsort label-3787
SELECT COUNT ( * ) * - 51
----
-51

query II rowsort
SELECT + ( + 76 ) * + 10 AS col0, 66
----
760
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3789
SELECT DISTINCT + 19 + - COUNT( * ) DIV COUNT( * ) AS col1, 6
----
18
6

skipif mysql # not compatible
query II rowsort label-3789
SELECT DISTINCT + 19 + - COUNT ( * ) / COUNT ( * ) AS col1, 6
----
18
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT MAX( DISTINCT 55 )
----
55

skipif mysql # not compatible
query I rowsort label-3790
SELECT MAX ( DISTINCT 55 )
----
55

query I rowsort
SELECT - 51 + + 26 * 79 * + 2
----
4057

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3792
SELECT CASE - - 89 WHEN + - COUNT( * ) - + CASE 24 WHEN + ( - CASE ( - 24 ) WHEN + 33 THEN COUNT( * ) END ) * 92 THEN - 20 WHEN + 33 THEN NULL ELSE - COUNT( * ) * + 94 END * CAST( - 74 AS SIGNED ) + - 6 THEN NULL ELSE ( + ( 25 ) ) END
----
25

skipif mysql # not compatible
query I rowsort label-3792
SELECT CASE - - 89 WHEN + - COUNT ( * ) - + CASE 24 WHEN + ( - CASE ( - 24 ) WHEN + 33 THEN COUNT ( * ) END ) * 92 THEN - 20 WHEN + 33 THEN NULL ELSE - COUNT ( * ) * + 94 END * CAST ( - 74 AS INTEGER ) + - 6 THEN NULL ELSE ( + ( 25 ) ) END
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT + MIN( DISTINCT - + 75 )
----
-75

skipif mysql # not compatible
query I rowsort label-3793
SELECT + MIN ( DISTINCT - + 75 )
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3794
SELECT + 99 + + CASE + 70 WHEN 95 THEN NULL ELSE - + COALESCE ( CASE + AVG ( + 42 ) WHEN - 11 - + + 44 - - 93 * - SUM( ALL + 97 ) * - COUNT( * ) THEN - - 8 END, CAST( - 67 AS SIGNED ) * + - 28 + 64 ) - 99 END AS col2
----
-1940

skipif mysql # not compatible
query I rowsort label-3794
SELECT + 99 + + CASE + 70 WHEN 95 THEN NULL ELSE - + COALESCE ( CASE + AVG ( + 42 ) WHEN - 11 - + + 44 - - 93 * - SUM ( ALL + 97 ) * - COUNT ( * ) THEN - - 8 END, CAST ( - 67 AS INTEGER ) * + - 28 + 64 ) - 99 END AS col2
----
-1940

query I rowsort
SELECT ALL 17 + + 61 AS col2
----
78

query I rowsort
SELECT 57 + 2
----
59

query I rowsort
SELECT DISTINCT ( + 21 ) + + - ( + 20 ) AS col1
----
1

query I rowsort
SELECT 67 + - 26 + + + 38
----
79

query I rowsort
SELECT ALL 4 - + ( + 9 ) * - 1 * + 9 AS col2
----
85

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT DISTINCT - 69 DIV 76 col1
----
0

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - 69 / 76 col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3801
SELECT CAST( NULL AS DECIMAL ) + - 22 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT CAST ( NULL AS REAL ) + - 22 AS col0
----
NULL

query I rowsort
SELECT 86 * + + 74 * + 48
----
305472

query I rowsort
SELECT ALL - 52 * + - 1 * 64 AS col0
----
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-3804
SELECT SUM( + 10 ) + 38 AS col2
----
48

skipif mysql # not compatible
query I rowsort label-3804
SELECT SUM ( + 10 ) + 38 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3805
SELECT 66 + - - 85 + - ( - COUNT( * ) )
----
152

skipif mysql # not compatible
query I rowsort label-3805
SELECT 66 + - - 85 + - ( - COUNT ( * ) )
----
152

query I rowsort
SELECT ALL + 79 - + - 34 AS col1
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT 76 * - COUNT( * ) AS col1
----
-76

skipif mysql # not compatible
query I rowsort label-3807
SELECT 76 * - COUNT ( * ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL MIN( DISTINCT - + 54 ) AS col2
----
-54

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL MIN ( DISTINCT - + 54 ) AS col2
----
-54

query I rowsort
SELECT ALL - 89 * + 50
----
-4450

query I rowsort
SELECT 92 + + 10
----
102

query I rowsort
SELECT ALL - 80 * + 40
----
-3200

query I rowsort
SELECT + 92 + + 93 - - ( ( - 89 ) ) * 63 + - ( 11 ) * + 93 AS col0
----
-6445

query II rowsort
SELECT 58 * 91 col2, 31 + - + 12
----
5278
19

onlyif mysql # DIV for integer division: 
query I rowsort label-3814
SELECT + 6 + + 89 DIV - 89
----
5

skipif mysql # not compatible
query I rowsort label-3814
SELECT + 6 + + 89 / - 89
----
5

query I rowsort
SELECT + 15 * + + 0 + + 74 - + - 89 AS col1
----
163

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3816
SELECT ALL + CAST( NULL AS DECIMAL ) + + + 58 * 49 + - AVG ( - 28 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + CAST ( NULL AS REAL ) + + + 58 * 49 + - AVG ( - 28 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT - NULLIF ( 50, - + NULLIF ( + + COUNT( * ), + 89 ) / + + 92 ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-3817
SELECT - NULLIF ( 50, - + NULLIF ( + + COUNT ( * ), + 89 ) / + + 92 ) AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT - + NULLIF ( 27, 10 * - 35 + - COUNT( * ) )
----
-27

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT - + NULLIF ( 27, 10 * - 35 + - COUNT ( * ) )
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT + ( 56 ) * - 37 + SUM( + 26 ) AS col1, + 31 * COUNT( * ) + - 97 AS col1
----
-2046
-66

skipif mysql # not compatible
query II rowsort label-3819
SELECT + ( 56 ) * - 37 + SUM ( + 26 ) AS col1, + 31 * COUNT ( * ) + - 97 AS col1
----
-2046
-66

query I rowsort
SELECT DISTINCT + 1 * + 84 + - 48
----
36

query I rowsort
SELECT ALL + + 78 * - 62 + + - 84 - 55 * - + 87 * - 32 AS col1
----
-158040

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT + COUNT( * ) * ( + 22 ) * + - 53 + + 25 - + - 28 - 28 AS col2
----
-1141

skipif mysql # not compatible
query I rowsort label-3822
SELECT + COUNT ( * ) * ( + 22 ) * + - 53 + + 25 - + - 28 - 28 AS col2
----
-1141

query I rowsort
SELECT + 8 * + + 67
----
536

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL - COUNT( ALL 75 ) * + + 72 * 13 * - + 76 - - COUNT( * ) + + COUNT( * ) col2
----
71138

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL - COUNT ( ALL 75 ) * + + 72 * 13 * - + 76 - - COUNT ( * ) + + COUNT ( * ) col2
----
71138

query I rowsort
SELECT - ( - 85 ) col1
----
85

query II rowsort
SELECT ( 9 ), NULLIF ( + + 67, 97 ) + - 94 AS col2
----
9
-27

query I rowsort
SELECT + - ( - 60 ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + + 79 + 90 * - COALESCE ( + + 51, 18 ) * + CASE - - 48 WHEN CAST( - 32 AS SIGNED ) + - - 40 THEN - - 66 ELSE NULL END + + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + + 79 + 90 * - COALESCE ( + + 51, 18 ) * + CASE - - 48 WHEN CAST ( - 32 AS INTEGER ) + - - 40 THEN - - 66 ELSE NULL END + + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT + NULLIF ( + ( ( + COUNT( * ) ) ), + 76 ) * - + 99 + 50 * + SUM( - - 60 )
----
2901

skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT + NULLIF ( + ( ( + COUNT ( * ) ) ), + 76 ) * - + 99 + 50 * + SUM ( - - 60 )
----
2901

query I rowsort
SELECT - - ( + COALESCE ( + + 60, - 16 * + 93 * - - 60 ) ) * + 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT - + 35 - - MAX( DISTINCT + 76 ) + - 50 + - 71
----
-80

skipif mysql # not compatible
query I rowsort label-3831
SELECT - + 35 - - MAX ( DISTINCT + 76 ) + - 50 + - 71
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3832
SELECT ALL - + 5 * - 18, MIN( + - ( + + CAST( 74 AS SIGNED ) ) ) DIV - - 23 + + 58 AS col2
----
90
55

skipif mysql # not compatible
query II rowsort label-3832
SELECT ALL - + 5 * - 18, MIN ( + - ( + + CAST ( 74 AS INTEGER ) ) ) / - - 23 + + 58 AS col2
----
90
55

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT ALL 23 DIV - 7
----
-3

skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 23 / - 7
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3834
SELECT ALL + 94 * + 10 - + + 22, NULLIF ( 43, + 69 + + + COUNT( * ) + COUNT( * ) ) * - ( - COUNT( * ) ) + + + 97 + - + 69 AS col2
----
918
71

skipif mysql # not compatible
query II rowsort label-3834
SELECT ALL + 94 * + 10 - + + 22, NULLIF ( 43, + 69 + + + COUNT ( * ) + COUNT ( * ) ) * - ( - COUNT ( * ) ) + + + 97 + - + 69 AS col2
----
918
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT - 75 + + COUNT( * ) - 42 * - 48 AS col1
----
1942

skipif mysql # not compatible
query I rowsort label-3835
SELECT - 75 + + COUNT ( * ) - 42 * - 48 AS col1
----
1942

onlyif mysql # aggregate syntax: 
query I rowsort label-3836
SELECT SUM( DISTINCT - - 95 )
----
95

skipif mysql # not compatible
query I rowsort label-3836
SELECT SUM ( DISTINCT - - 95 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3837
SELECT COUNT( * ) AS col0, - CASE + + COUNT( * ) WHEN + + 69 / - 39 THEN - COUNT( * ) END / - + COUNT( * ) / 29 + - COUNT( DISTINCT - 92 )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-3837
SELECT COUNT ( * ) AS col0, - CASE + + COUNT ( * ) WHEN + + 69 / - 39 THEN - COUNT ( * ) END / - + COUNT ( * ) / 29 + - COUNT ( DISTINCT - 92 )
----
1
NULL

query I rowsort
SELECT + 58 - 19
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT MAX( DISTINCT 74 ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3839
SELECT MAX ( DISTINCT 74 ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT ALL 81 * - CASE + NULLIF ( - COUNT( * ), 11 + + 53 ) WHEN - 30 THEN 70 * + - 29 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL 81 * - CASE + NULLIF ( - COUNT ( * ), 11 + + 53 ) WHEN - 30 THEN 70 * + - 29 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - MIN( + 14 )
----
-14

skipif mysql # not compatible
query I rowsort label-3841
SELECT - MIN ( + 14 )
----
-14

query I rowsort
SELECT + 22 + + 29 col2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL COUNT( * ) * - + 13 * - 2 AS col2
----
26

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL COUNT ( * ) * - + 13 * - 2 AS col2
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT ALL MIN( - - 33 )
----
33

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL MIN ( - - 33 )
----
33

query I rowsort
SELECT DISTINCT 80 * - - 50
----
4000

query I rowsort
SELECT - ( 0 )
----
0

query II rowsort
SELECT ALL 99, 26 AS col0
----
99
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3848
SELECT + COUNT( DISTINCT 9 ) DIV 73 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3848
SELECT + COUNT ( DISTINCT 9 ) / 73 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT - - ( - + 36 ) * NULLIF ( + - 29, - COUNT( * ) * - + 61 )
----
1044

skipif mysql # not compatible
query I rowsort label-3849
SELECT - - ( - + 36 ) * NULLIF ( + - 29, - COUNT ( * ) * - + 61 )
----
1044

query I rowsort
SELECT ALL + 21 + + 21
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3851
SELECT ALL - + COUNT( * ) + - 5 - 67 DIV - 16 col1
----
-2

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL - + COUNT ( * ) + - 5 - 67 / - 16 col1
----
-2

query I rowsort
SELECT + 43 + - + 84
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-3853
SELECT ALL - 77 DIV + + 60 col1
----
-1

skipif mysql # not compatible
query I rowsort label-3853
SELECT ALL - 77 / + + 60 col1
----
-1

query I rowsort
SELECT DISTINCT - 18 + + - 67 + 56 + + - 51 + + 96 AS col1
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3855
SELECT ALL + - COALESCE ( + 9, + CAST( - + COUNT( ( - - 73 ) ) AS SIGNED ) * - - 79 DIV + 64 - - ( 78 ) + COALESCE ( + 63, + + NULLIF ( - COALESCE ( + + COUNT( ALL + 87 ), - - 36 + - CASE - 18 WHEN 94 * - 93 THEN + 39 WHEN 67 DIV + 63 THEN NULL END + 30 ), + 66 + 94 ) ), 59 ) * 9 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-3855
SELECT ALL + - COALESCE ( + 9, + CAST ( - + COUNT ( ( - - 73 ) ) AS INTEGER ) * - - 79 / + 64 - - ( 78 ) + COALESCE ( + 63, + + NULLIF ( - COALESCE ( + + COUNT ( ALL + 87 ), - - 36 + - CASE - 18 WHEN 94 * - 93 THEN + 39 WHEN 67 / + 63 THEN NULL END + 30 ), + 66 + 94 ) ), 59 ) * 9 AS col2
----
-81

query I rowsort
SELECT ALL - + 74 * 62
----
-4588

onlyif mysql # aggregate syntax: 
query I rowsort label-3857
SELECT ALL COUNT( * ) + - NULLIF ( - CASE + 80 WHEN - - 37 THEN + 74 WHEN + 18 THEN + COUNT( ALL 24 ) - + 25 END, - 78 * + 46 * + COUNT( * ) - + 34 / + + 55 + + - 83 ) * + - 24 * + 3 * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-3857
SELECT ALL COUNT ( * ) + - NULLIF ( - CASE + 80 WHEN - - 37 THEN + 74 WHEN + 18 THEN + COUNT ( ALL 24 ) - + 25 END, - 78 * + 46 * + COUNT ( * ) - + 34 / + + 55 + + - 83 ) * + - 24 * + 3 * - 56
----
NULL

query I rowsort
SELECT DISTINCT 44 + - + 89 col1
----
-45

query I rowsort
SELECT + + 5 + - 17 AS col2
----
-12

query I rowsort
SELECT - + ( + + 24 ) - - ( 24 ) * - 42
----
-1032

query II rowsort
SELECT ALL + + 62 AS col2, 37
----
62
37

query I rowsort
SELECT + - 30 + - 24 AS col1
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3863
SELECT 25 DIV + + 33 - 51 DIV - COUNT( * ) + + - 94, + 25 + + + 42 * 47 AS col1
----
-43
1999

skipif mysql # not compatible
query II rowsort label-3863
SELECT 25 / + + 33 - 51 / - COUNT ( * ) + + - 94, + 25 + + + 42 * 47 AS col1
----
-43
1999

onlyif mysql # DIV for integer division: 
query I rowsort label-3864
SELECT ALL + - 70 DIV + 87 + - 49 * + + 24 + + 2 * + + 98
----
-980

skipif mysql # not compatible
query I rowsort label-3864
SELECT ALL + - 70 / + 87 + - 49 * + + 24 + + 2 * + + 98
----
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3865
SELECT ALL - ( + 66 ) DIV - + 17 + + 45 * - - 86 + - - SUM( + 60 ) AS col0
----
3933

skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL - ( + 66 ) / - + 17 + + 45 * - - 86 + - - SUM ( + 60 ) AS col0
----
3933

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3866
SELECT CAST( - 19 AS SIGNED ) DIV - - 13 + - 94 DIV - - 76 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-3866
SELECT CAST ( - 19 AS INTEGER ) / - - 13 + - 94 / - - 76 AS col1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT DISTINCT + CASE 93 WHEN + COUNT( * ) - 58 THEN + 74 WHEN - ( - + 63 ) / 46 * - CAST( + 64 AS SIGNED ) THEN SUM( DISTINCT - + ( - 77 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + CASE 93 WHEN + COUNT ( * ) - 58 THEN + 74 WHEN - ( - + 63 ) / 46 * - CAST ( + 64 AS INTEGER ) THEN SUM ( DISTINCT - + ( - 77 ) ) END
----
NULL

query II rowsort
SELECT ALL + 31, - 72 * 34 AS col1
----
31
-2448

query I rowsort
SELECT + COALESCE ( + 93, + - 10, - + 1 )
----
93

query I rowsort
SELECT ALL + + 65 AS col0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT + MAX( ALL - 43 ) col1
----
-43

skipif mysql # not compatible
query I rowsort label-3871
SELECT DISTINCT + MAX ( ALL - 43 ) col1
----
-43

query II rowsort
SELECT DISTINCT + 83 AS col2, 26 * + 32 * + 60 + + 27 * - - 8 col0
----
83
50136

onlyif mysql # aggregate syntax: 
query II rowsort label-3873
SELECT + 9, SUM( - 87 ) AS col2
----
9
-87

skipif mysql # not compatible
query II rowsort label-3873
SELECT + 9, SUM ( - 87 ) AS col2
----
9
-87

query I rowsort
SELECT ( + ( - + 71 ) )
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - 69 * COUNT( * ) AS col2
----
-69

skipif mysql # not compatible
query I rowsort label-3875
SELECT - 69 * COUNT ( * ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-3876
SELECT ALL + 51 * - COUNT( * ), 35 AS col0
----
-51
35

skipif mysql # not compatible
query II rowsort label-3876
SELECT ALL + 51 * - COUNT ( * ), 35 AS col0
----
-51
35

query II rowsort
SELECT ALL + 15, 78 AS col2
----
15
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3878
SELECT NULLIF ( 79, + CAST( 8 AS SIGNED ) ) col0
----
79

skipif mysql # not compatible
query I rowsort label-3878
SELECT NULLIF ( 79, + CAST ( 8 AS INTEGER ) ) col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT + SUM( - 27 ) AS col1
----
-27

skipif mysql # not compatible
query I rowsort label-3879
SELECT + SUM ( - 27 ) AS col1
----
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3880
SELECT ALL + 61 * COALESCE ( + COUNT( * ), + - 43 * - - ( 79 ) ) * - 12 + 57 + - + 5 * 18 - + 30 DIV + 68 AS col2
----
-765

skipif mysql # not compatible
query I rowsort label-3880
SELECT ALL + 61 * COALESCE ( + COUNT ( * ), + - 43 * - - ( 79 ) ) * - 12 + 57 + - + 5 * 18 - + 30 / + 68 AS col2
----
-765

query I rowsort
SELECT ALL + ( + + 25 )
----
25

query I rowsort
SELECT + COALESCE ( 73, 29 ) AS col0
----
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-3883
SELECT ALL + COUNT( * ), CAST( COUNT( * ) AS SIGNED ) * + - 37 - + MAX( + 14 ) + + 76 AS col1, - 83 * 89 AS col1
----
1
25
-7387

skipif mysql # not compatible
query III rowsort label-3883
SELECT ALL + COUNT ( * ), CAST ( COUNT ( * ) AS INTEGER ) * + - 37 - + MAX ( + 14 ) + + 76 AS col1, - 83 * 89 AS col1
----
1
25
-7387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3884
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) AS col1, + 94 * + + 37 AS col1
----
NULL
3478

skipif mysql # not compatible
query II rowsort label-3884
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1, + 94 * + + 37 AS col1
----
NULL
3478

query II rowsort
SELECT ALL 43, + 91 AS col1
----
43
91

query I rowsort
SELECT DISTINCT 9 * 7 col1
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-3887
SELECT ALL ( + COUNT( * ) ) * 25 + 66 AS col2, COUNT( * ) * + 4 AS col0
----
91
4

skipif mysql # not compatible
query II rowsort label-3887
SELECT ALL ( + COUNT ( * ) ) * 25 + 66 AS col2, COUNT ( * ) * + 4 AS col0
----
91
4

query I rowsort
SELECT + 73 + - 46
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT MIN( ALL - + 34 )
----
-34

skipif mysql # not compatible
query I rowsort label-3889
SELECT MIN ( ALL - + 34 )
----
-34

query I rowsort
SELECT + 27 + - 82
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT + COUNT( - 24 ) * 95 AS col2
----
95

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + COUNT ( - 24 ) * 95 AS col2
----
95

query I rowsort
SELECT ALL ( + COALESCE ( + + 69, + 5 ) ) + - 32
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT + + 95 + 32 + COUNT( * ) + 78 + 40 * 57 * + 25 * - 94
----
-5357794

skipif mysql # not compatible
query I rowsort label-3893
SELECT + + 95 + 32 + COUNT ( * ) + 78 + 40 * 57 * + 25 * - 94
----
-5357794

query I rowsort
SELECT ALL + 89 + 50 AS col2
----
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3895
SELECT + ( + - 23 ) + COUNT( * ) * - + 31 DIV + - 19 + - 54
----
-76

skipif mysql # not compatible
query I rowsort label-3895
SELECT + ( + - 23 ) + COUNT ( * ) * - + 31 / + - 19 + - 54
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3896
SELECT DISTINCT COUNT( * ) * + 88 - - MAX( ALL - 55 ) + - 40
----
-7

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT COUNT ( * ) * + 88 - - MAX ( ALL - 55 ) + - 40
----
-7

query II rowsort
SELECT ALL 32 AS col0, + 78
----
32
78

query I rowsort
SELECT DISTINCT + 7 + - 54 + - 47 * + + 50
----
-2397

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT - ( COUNT( * ) ) * + NULLIF ( - 45, - - ( + 73 ) * + 61 ) AS col0
----
45

skipif mysql # not compatible
query I rowsort label-3899
SELECT - ( COUNT ( * ) ) * + NULLIF ( - 45, - - ( + 73 ) * + 61 ) AS col0
----
45

query II rowsort
SELECT 1, + 82 col0
----
1
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - 4 + COALESCE ( - 38, + + 85, COUNT( * ) )
----
-42

skipif mysql # not compatible
query I rowsort label-3901
SELECT - 4 + COALESCE ( - 38, + + 85, COUNT ( * ) )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL 73 + + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL 73 + + COUNT ( * ) AS col1
----
74

query I rowsort
SELECT NULLIF ( - + 21, + 11 )
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT MIN( ALL 4 ) DIV - 68 + - - 48 AS col1
----
48

skipif mysql # not compatible
query I rowsort label-3904
SELECT MIN ( ALL 4 ) / - 68 + - - 48 AS col1
----
48

query I rowsort
SELECT ALL + 13 - + - 73 + - - 89
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + CASE 20 WHEN - + COUNT( DISTINCT 89 ) * COUNT( * ) + + ( 15 ) THEN NULL ELSE - 91 * + 84 * + 17 END col2
----
-129948

skipif mysql # not compatible
query I rowsort label-3906
SELECT + CASE 20 WHEN - + COUNT ( DISTINCT 89 ) * COUNT ( * ) + + ( 15 ) THEN NULL ELSE - 91 * + 84 * + 17 END col2
----
-129948

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3907
SELECT + - CASE + CAST( NULL AS SIGNED ) WHEN 36 - MAX( 5 ) THEN + - 19 ELSE - ( + ( ( + COALESCE ( + 97, - 98, + 5 ) ) ) ) * 67 END, + ( + 7 ) * + - 82 AS col2
----
6499
-574

skipif mysql # not compatible
query II rowsort label-3907
SELECT + - CASE + CAST ( NULL AS INTEGER ) WHEN 36 - MAX ( 5 ) THEN + - 19 ELSE - ( + ( ( + COALESCE ( + 97, - 98, + 5 ) ) ) ) * 67 END, + ( + 7 ) * + - 82 AS col2
----
6499
-574

query I rowsort
SELECT ALL - 38 * - 39 AS col2
----
1482

query II rowsort
SELECT ALL + 32 - + + 98 AS col2, 27
----
-66
27

onlyif mysql # DIV for integer division: 
query I rowsort label-3910
SELECT + 93 DIV 97 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-3910
SELECT + 93 / 97 AS col0
----
0

query I rowsort
SELECT ALL 62 * - 10
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT - - SUM( DISTINCT 57 ) * 97 * - MAX( DISTINCT - 28 ) + COUNT( * )
----
154813

skipif mysql # not compatible
query I rowsort label-3912
SELECT - - SUM ( DISTINCT 57 ) * 97 * - MAX ( DISTINCT - 28 ) + COUNT ( * )
----
154813

query I rowsort
SELECT 36 * 34 col0
----
1224

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3914
SELECT ALL + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) * 68
----
NULL

skipif mysql # not compatible
query I rowsort label-3914
SELECT ALL + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) * 68
----
NULL

query I rowsort
SELECT 67 + 41
----
108

query I rowsort
SELECT ALL - NULLIF ( + - 68, - 90 )
----
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3917
SELECT 60 - + COUNT( * ), 27 AS col0
----
59
27

skipif mysql # not compatible
query II rowsort label-3917
SELECT 60 - + COUNT ( * ), 27 AS col0
----
59
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT - ( - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - ( - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3919
SELECT + 49 * - NULLIF ( + SUM( DISTINCT - + 18 ), + + NULLIF ( - 78, - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + + COUNT( * ) ) ) * - 53 * + + 93 - 18 AS col0
----
-4347396

skipif mysql # not compatible
query I rowsort label-3919
SELECT + 49 * - NULLIF ( + SUM ( DISTINCT - + 18 ), + + NULLIF ( - 78, - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + + COUNT ( * ) ) ) * - 53 * + + 93 - 18 AS col0
----
-4347396

query I rowsort
SELECT 76 * 90
----
6840

query I rowsort
SELECT ALL + 20 * ( 22 ) AS col0
----
440

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT COUNT( DISTINCT + ( 22 ) ) + + 78 * - COALESCE ( - + 85, 21 )
----
6631

skipif mysql # not compatible
query I rowsort label-3922
SELECT COUNT ( DISTINCT + ( 22 ) ) + + 78 * - COALESCE ( - + 85, 21 )
----
6631

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT 59 + - NULLIF ( - 19, COUNT( * ) * - 59 ) + + 22 AS col1
----
100

skipif mysql # not compatible
query I rowsort label-3923
SELECT 59 + - NULLIF ( - 19, COUNT ( * ) * - 59 ) + + 22 AS col1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + 30 * - ( COUNT( - 44 ) )
----
-30

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + 30 * - ( COUNT ( - 44 ) )
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3925
SELECT 66 DIV + + NULLIF ( + - MAX( DISTINCT 31 ), 58 * 73 )
----
-2

skipif mysql # not compatible
query I rowsort label-3925
SELECT 66 / + + NULLIF ( + - MAX ( DISTINCT 31 ), 58 * 73 )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-3926
SELECT COUNT( * ) * + + 1 col0
----
1

skipif mysql # not compatible
query I rowsort label-3926
SELECT COUNT ( * ) * + + 1 col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT ALL - MIN( + 89 ) + 11 AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-3927
SELECT ALL - MIN ( + 89 ) + 11 AS col1
----
-78

query I rowsort
SELECT ALL + 30 * + 37
----
1110

query I rowsort
SELECT DISTINCT - 76 + + 9
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT 94 + - MIN( - 51 )
----
145

skipif mysql # not compatible
query I rowsort label-3930
SELECT 94 + - MIN ( - 51 )
----
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT SUM( 51 ) + - + 38 * 25 AS col2
----
-899

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT SUM ( 51 ) + - + 38 * 25 AS col2
----
-899

query II rowsort
SELECT ALL - - ( 99 ) + - + 25 * 39 + + 15 col1, 65 + 17
----
-861
82

query I rowsort
SELECT ALL 78 + 31 AS col2
----
109

query I rowsort
SELECT 63 * + 73
----
4599

onlyif mysql # aggregate syntax: 
query II rowsort label-3935
SELECT - + MIN( DISTINCT + 87 ) AS col2, - 61 + - - ( + COUNT( * ) ) - + 68 AS col1
----
-87
-128

skipif mysql # not compatible
query II rowsort label-3935
SELECT - + MIN ( DISTINCT + 87 ) AS col2, - 61 + - - ( + COUNT ( * ) ) - + 68 AS col1
----
-87
-128

query I rowsort
SELECT - 61 * + - 41
----
2501

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3937
SELECT 12 + - + 36 + CAST( NULL AS DECIMAL ) * - 58 - - 42 / - 34
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT 12 + - + 36 + CAST ( NULL AS REAL ) * - 58 - - 42 / - 34
----
NULL

query I rowsort
SELECT ( + 21 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT ALL COUNT( * ) - COALESCE ( - 71, - COUNT( * ) * + + COUNT( ALL + 55 ) + + + 32, - - 94 ) * + ( - - 34 )
----
2415

skipif mysql # not compatible
query I rowsort label-3939
SELECT ALL COUNT ( * ) - COALESCE ( - 71, - COUNT ( * ) * + + COUNT ( ALL + 55 ) + + + 32, - - 94 ) * + ( - - 34 )
----
2415

query I rowsort
SELECT ALL + 3 - - 13
----
16

query I rowsort
SELECT + 41 + + 38 AS col2
----
79

query I rowsort
SELECT 81 + + 21
----
102

query I rowsort
SELECT ALL + 42 * + 39 - + + 86 + + 82 col1
----
1634

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3944
SELECT 12 * - COUNT( * ) + + - CAST( NULL AS SIGNED ) * + + 21 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT 12 * - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * + + 21 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3945
SELECT + 68 + NULLIF ( + - 28, - - CAST( - 64 AS SIGNED ) ), 14 + + - 32 AS col2
----
40
-18

skipif mysql # not compatible
query II rowsort label-3945
SELECT + 68 + NULLIF ( + - 28, - - CAST ( - 64 AS INTEGER ) ), 14 + + - 32 AS col2
----
40
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT DISTINCT + COUNT( * ) - 79 + - 12 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT + COUNT ( * ) - 79 + - 12 AS col0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3947
SELECT 61 + - CAST( NULL AS SIGNED ), 83 AS col1
----
NULL
83

skipif mysql # not compatible
query II rowsort label-3947
SELECT 61 + - CAST ( NULL AS INTEGER ), 83 AS col1
----
NULL
83

query I rowsort
SELECT - 91 - + 41 AS col2
----
-132

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3949
SELECT MAX( DISTINCT - 77 ) * - CAST( NULL AS DECIMAL ) * - 31 + + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-3949
SELECT MAX ( DISTINCT - 77 ) * - CAST ( NULL AS REAL ) * - 31 + + 32
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT + SUM( ALL + - 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-3950
SELECT + SUM ( ALL + - 79 )
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3951
SELECT 80 + - ( + - 5 ) + + + 93, CAST( NULL AS DECIMAL ) AS col0
----
178
NULL

skipif mysql # not compatible
query II rowsort label-3951
SELECT 80 + - ( + - 5 ) + + + 93, CAST ( NULL AS REAL ) AS col0
----
178
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3952
SELECT ALL 40 DIV + 84 * - 31 * 58 * + + 49 col2
----
0

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL 40 / + 84 * - 31 * 58 * + + 49 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT 97 * + COUNT( * ) + + ( + 98 ) * - 59 * - COUNT( * ) + + 74
----
5953

skipif mysql # not compatible
query I rowsort label-3953
SELECT 97 * + COUNT ( * ) + + ( + 98 ) * - 59 * - COUNT ( * ) + + 74
----
5953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3954
SELECT ALL 58 DIV COUNT( ALL + 17 ) DIV - COUNT( * ) AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL 58 / COUNT ( ALL + 17 ) / - COUNT ( * ) AS col0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3955
SELECT + 70 DIV COUNT( * ) + - COUNT( ( - 96 ) ) + 59 + - ( - + 20 ) * 4 * - 42
----
-3232

skipif mysql # not compatible
query I rowsort label-3955
SELECT + 70 / COUNT ( * ) + - COUNT ( ( - 96 ) ) + 59 + - ( - + 20 ) * 4 * - 42
----
-3232

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT + SUM( 16 )
----
16

skipif mysql # not compatible
query I rowsort label-3956
SELECT + SUM ( 16 )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3957
SELECT DISTINCT COUNT( * ) * - COUNT( * ) DIV + 54 + - 61 AS col0
----
-61

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / + 54 + - 61 AS col0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT ALL 5 DIV - 35
----
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL 5 / - 35
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT 76 DIV + 26 col0
----
2

skipif mysql # not compatible
query I rowsort label-3959
SELECT 76 / + 26 col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT DISTINCT 39 * NULLIF ( - + 85, - - 35 * + 66 ) * - 33 * 42 + COUNT( * ) AS col1
----
4594591

skipif mysql # not compatible
query I rowsort label-3960
SELECT DISTINCT 39 * NULLIF ( - + 85, - - 35 * + 66 ) * - 33 * 42 + COUNT ( * ) AS col1
----
4594591

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + MIN( ALL 91 ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-3961
SELECT + MIN ( ALL 91 ) AS col2
----
91

query II rowsort
SELECT ALL - 21 AS col1, 27
----
-21
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 59 * + COUNT( * )
----
59

skipif mysql # not compatible
query I rowsort label-3963
SELECT 59 * + COUNT ( * )
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3964
SELECT ( + CASE WHEN NOT COUNT( - 63 ) BETWEEN - 68 * - NULLIF ( CAST( 12 AS SIGNED ), 71 ) * + 62 - + 68 AND NULL THEN + 37 END ) * ( + ( 54 ) ) * + ( 22 ) + 91 DIV - + 23 + - 73 + + - 78 AS col0
----
43802

skipif mysql # not compatible
query I rowsort label-3964
SELECT ( + CASE WHEN NOT COUNT ( - 63 ) BETWEEN - 68 * - NULLIF ( CAST ( 12 AS INTEGER ), 71 ) * + 62 - + 68 AND NULL THEN + 37 END ) * ( + ( 54 ) ) * + ( 22 ) + 91 / - + 23 + - 73 + + - 78 AS col0
----
43802

query I rowsort
SELECT ALL + 34 * 48 AS col2
----
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COUNT( DISTINCT 5 )
----
1

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( DISTINCT 5 )
----
1

query I rowsort
SELECT 11 * + 97 AS col0
----
1067

onlyif mysql # aggregate syntax: 
query I rowsort label-3968
SELECT ALL - 71 + COUNT( * ) AS col2
----
-70

skipif mysql # not compatible
query I rowsort label-3968
SELECT ALL - 71 + COUNT ( * ) AS col2
----
-70

query I rowsort
SELECT 91 + 22 AS col1
----
113

query I rowsort
SELECT DISTINCT 56 + + + 64 AS col1
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3971
SELECT ALL - CAST( - 73 AS SIGNED ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-3971
SELECT ALL - CAST ( - 73 AS INTEGER ) AS col1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT - 6 * + - COUNT( NULLIF ( + 4, + 57 ) ) + 60 + + - 7 col2
----
59

skipif mysql # not compatible
query I rowsort label-3972
SELECT - 6 * + - COUNT ( NULLIF ( + 4, + 57 ) ) + 60 + + - 7 col2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL COUNT( * ) + - 22 - 99 + - COUNT( * )
----
-121

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL COUNT ( * ) + - 22 - 99 + - COUNT ( * )
----
-121

query I rowsort
SELECT DISTINCT + 90 + + 0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT ALL + + COUNT( * ) + - 12 * + + 16 col1
----
-191

skipif mysql # not compatible
query I rowsort label-3975
SELECT ALL + + COUNT ( * ) + - 12 * + + 16 col1
----
-191

query I rowsort
SELECT - 67 * + 51 * - 51 - 18 + - ( 21 ) + + 7 * + 78 AS col1
----
174774

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3977
SELECT ALL - 98 DIV - ( - - 9 ) * + COUNT( * ) AS col0
----
10

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - 98 / - ( - - 9 ) * + COUNT ( * ) AS col0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT - - MAX( + + 23 ) + 99 AS col0
----
122

skipif mysql # not compatible
query I rowsort label-3978
SELECT - - MAX ( + + 23 ) + 99 AS col0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT - + COUNT( - 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-3979
SELECT - + COUNT ( - 25 )
----
-1

query I rowsort
SELECT - + 12 + - 84 AS col0
----
-96

query I rowsort
SELECT ALL + + 38 - - 79
----
117

query I rowsort
SELECT - + 26 + + + 19 + - - 81 * + 54 * - 14 AS col1
----
-61243

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT - COUNT( * ) * - 32 + + - COUNT( DISTINCT + 98 )
----
31

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - COUNT ( * ) * - 32 + + - COUNT ( DISTINCT + 98 )
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3984
SELECT - CAST( NULL AS SIGNED ) / + 73 - - 63 * 58 * + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3984
SELECT - CAST ( NULL AS INTEGER ) / + 73 - - 63 * 58 * + COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3985
SELECT COUNT( * ), 99 AS col1
----
1
99

skipif mysql # not compatible
query II rowsort label-3985
SELECT COUNT ( * ), 99 AS col1
----
1
99

query II rowsort
SELECT 36, 36 AS col1
----
36
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3987
SELECT ALL CASE MAX( + 93 ) WHEN 12 THEN NULL ELSE 57 * - - COUNT( * ) END, 26 / + 52 * - CAST( NULL AS SIGNED ) + - 36 col2
----
57
NULL

skipif mysql # not compatible
query II rowsort label-3987
SELECT ALL CASE MAX ( + 93 ) WHEN 12 THEN NULL ELSE 57 * - - COUNT ( * ) END, 26 / + 52 * - CAST ( NULL AS INTEGER ) + - 36 col2
----
57
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT ALL - + 83 DIV 2
----
-41

skipif mysql # not compatible
query I rowsort label-3988
SELECT ALL - + 83 / 2
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - 5 * COUNT( * ) * 94 + + 7 AS col2
----
-463

skipif mysql # not compatible
query I rowsort label-3989
SELECT - 5 * COUNT ( * ) * 94 + + 7 AS col2
----
-463

query I rowsort
SELECT + + COALESCE ( + 1, + 80 ) + 95 * - 64 AS col1
----
-6079

query II rowsort
SELECT - - 75, 74 AS col0
----
75
74

onlyif mysql # DIV for integer division: 
query II rowsort label-3992
SELECT + - 36 + - - 39 DIV - 71, 19 + + - 9 AS col0
----
-36
10

skipif mysql # not compatible
query II rowsort label-3992
SELECT + - 36 + - - 39 / - 71, 19 + + - 9 AS col0
----
-36
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL + MIN( 55 ) AS col2
----
55

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL + MIN ( 55 ) AS col2
----
55

query I rowsort
SELECT - - NULLIF ( - 47, - 8 + + 40 + ( 31 ) * + 73 ) AS col1
----
-47

query I rowsort
SELECT DISTINCT 76 * - 54 * 48
----
-196992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3996
SELECT ALL 17 + + - COUNT( * ) - - + 23 + - - 5 * 47 DIV - 23
----
29

skipif mysql # not compatible
query I rowsort label-3996
SELECT ALL 17 + + - COUNT ( * ) - - + 23 + - - 5 * 47 / - 23
----
29

query I rowsort
SELECT + 40 * - 42 * + 46
----
-77280

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT + SUM( ALL + + 77 )
----
77

skipif mysql # not compatible
query I rowsort label-3998
SELECT + SUM ( ALL + + 77 )
----
77

query I rowsort
SELECT ALL 53 * - 95 + + - 74
----
-5109

query I rowsort
SELECT - 87 - + + 78 AS col0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + COALESCE ( - - COUNT( * ), - + 69 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4001
SELECT + COALESCE ( - - COUNT ( * ), - + 69 ) AS col1
----
1

query I rowsort
SELECT ALL 98 * 2 * 70
----
13720

query I rowsort
SELECT - 4 * + + 32
----
-128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4004
SELECT + 41 * COALESCE ( - - ( + 68 ), - CAST( + - 18 AS SIGNED ) * + - 42 DIV CAST( - 59 AS SIGNED ) ) + 94 + - 70 * - 2 * - - 36
----
7922

skipif mysql # not compatible
query I rowsort label-4004
SELECT + 41 * COALESCE ( - - ( + 68 ), - CAST ( + - 18 AS INTEGER ) * + - 42 / CAST ( - 59 AS INTEGER ) ) + 94 + - 70 * - 2 * - - 36
----
7922

query I rowsort
SELECT ( + - 1 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4006
SELECT + 86 + - 27 DIV + - 75 + COALESCE ( + + 84, + 38 ) AS col0
----
170

skipif mysql # not compatible
query I rowsort label-4006
SELECT + 86 + - 27 / + - 75 + COALESCE ( + + 84, + 38 ) AS col0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL 72 * 72 + COALESCE ( 65, - - COUNT( * ) + - + 32 ) AS col1
----
5249

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL 72 * 72 + COALESCE ( 65, - - COUNT ( * ) + - + 32 ) AS col1
----
5249

query I rowsort
SELECT ( - - 54 ) col1
----
54

query I rowsort
SELECT + ( + 4 ) col1
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4010
SELECT + CAST( + ( - CAST( 22 AS SIGNED ) ) AS SIGNED ) * + + 32 * + - COUNT( + 4 ) * - + 79 + + COUNT( * ) - + CAST( - 62 AS SIGNED ) * - 4, COUNT( * ) * 27 AS col0
----
-55863
27

skipif mysql # not compatible
query II rowsort label-4010
SELECT + CAST ( + ( - CAST ( 22 AS INTEGER ) ) AS INTEGER ) * + + 32 * + - COUNT ( + 4 ) * - + 79 + + COUNT ( * ) - + CAST ( - 62 AS INTEGER ) * - 4, COUNT ( * ) * 27 AS col0
----
-55863
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT DISTINCT COUNT( * ) * - 20 * - - 57 + + 47 AS col2
----
-1093

skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT COUNT ( * ) * - 20 * - - 57 + + 47 AS col2
----
-1093

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4012
SELECT ALL + CAST( NULL AS SIGNED ) * 12 AS col0, 3
----
NULL
3

skipif mysql # not compatible
query II rowsort label-4012
SELECT ALL + CAST ( NULL AS INTEGER ) * 12 AS col0, 3
----
NULL
3

query I rowsort
SELECT + ( - 12 )
----
-12

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4014
SELECT + CAST( NULL AS DECIMAL ) * 38 / + ( + 91 ), 28 * + 34 AS col2
----
NULL
952

skipif mysql # not compatible
query II rowsort label-4014
SELECT + CAST ( NULL AS REAL ) * 38 / + ( + 91 ), 28 * + 34 AS col2
----
NULL
952

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4015
SELECT + MIN( 7 ) + 37 + + - COALESCE ( + 87, - CASE + 52 WHEN - COUNT( * ) THEN + 84 + 8 ELSE NULL END, 77 ) * - 9 * + + AVG ( ALL + 32 ) * + + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4015
SELECT + MIN ( 7 ) + 37 + + - COALESCE ( + 87, - CASE + 52 WHEN - COUNT ( * ) THEN + 84 + 8 ELSE NULL END, 77 ) * - 9 * + + AVG ( ALL + 32 ) * + + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 79 * 2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL SUM( DISTINCT + 98 ) * - - CASE 54 WHEN - - 59 - 68 * 88 / + 97 THEN - - 16 WHEN + 33 THEN COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL SUM ( DISTINCT + 98 ) * - - CASE 54 WHEN - - 59 - 68 * 88 / + 97 THEN - - 16 WHEN + 33 THEN COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4018
SELECT CASE + + CASE 47 WHEN - CAST( NULL AS SIGNED ) THEN 58 * - 91 - 93 * MIN( + 20 ) WHEN 26 THEN + 86 END WHEN + 21 * - - CASE - + 16 WHEN SUM( + 81 ) + - MIN( DISTINCT + + 42 ) THEN - + COUNT( * ) ELSE NULL END + + + COUNT( * ) THEN - 67 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4018
SELECT CASE + + CASE 47 WHEN - CAST ( NULL AS INTEGER ) THEN 58 * - 91 - 93 * MIN ( + 20 ) WHEN 26 THEN + 86 END WHEN + 21 * - - CASE - + 16 WHEN SUM ( + 81 ) + - MIN ( DISTINCT + + 42 ) THEN - + COUNT ( * ) ELSE NULL END + + + COUNT ( * ) THEN - 67 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 13 * 33 * + 88 AS col0
----
37752

query I rowsort
SELECT DISTINCT + - ( - 30 )
----
30

query I rowsort
SELECT DISTINCT - NULLIF ( + 65, + 84 )
----
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4022
SELECT ALL NULLIF ( + + ( + ( 96 ) ), - 70 / - NULLIF ( - ( 75 ), + ( CAST( - 44 AS SIGNED ) ) ) + + 50 * + COUNT( * ) * + 72 ), + 68 AS col2
----
96
68

skipif mysql # not compatible
query II rowsort label-4022
SELECT ALL NULLIF ( + + ( + ( 96 ) ), - 70 / - NULLIF ( - ( 75 ), + ( CAST ( - 44 AS INTEGER ) ) ) + + 50 * + COUNT ( * ) * + 72 ), + 68 AS col2
----
96
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - COUNT( * ) * + 74 * + + COUNT( * ) AS col1
----
-74

skipif mysql # not compatible
query I rowsort label-4023
SELECT - COUNT ( * ) * + 74 * + + COUNT ( * ) AS col1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT + + COUNT( * ) + 44 col0
----
45

skipif mysql # not compatible
query I rowsort label-4024
SELECT + + COUNT ( * ) + 44 col0
----
45

query I rowsort
SELECT + + 70 + 52 * - 43 * + ( - + 45 )
----
100690

onlyif mysql # aggregate syntax: 
query II rowsort label-4026
SELECT DISTINCT - COUNT( * ) * - 69 * + - 32 * 22, 15 AS col2
----
-48576
15

skipif mysql # not compatible
query II rowsort label-4026
SELECT DISTINCT - COUNT ( * ) * - 69 * + - 32 * 22, 15 AS col2
----
-48576
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ALL - 10 + - 19 * - CASE - 70 WHEN COUNT( * ) THEN - 68 + 30 WHEN 93 THEN NULL END * - - 7 + + 99 + + + 3 + - 1 * + 83 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT ALL - 10 + - 19 * - CASE - 70 WHEN COUNT ( * ) THEN - 68 + 30 WHEN 93 THEN NULL END * - - 7 + + 99 + + + 3 + - 1 * + 83 col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4028
SELECT - 39 + + 30 AS col1, COUNT( - - 77 )
----
-9
1

skipif mysql # not compatible
query II rowsort label-4028
SELECT - 39 + + 30 AS col1, COUNT ( - - 77 )
----
-9
1

query I rowsort
SELECT ALL + 99 * + 25 + + 46 AS col0
----
2521

onlyif mysql # DIV for integer division: 
query II rowsort label-4030
SELECT DISTINCT COALESCE ( - 70, - 95 DIV 49 * - 36, 39 * + - 55 DIV - 22 * - + COALESCE ( 28, 28 ) ) AS col1, - 57 col0
----
-70
-57

skipif mysql # not compatible
query II rowsort label-4030
SELECT DISTINCT COALESCE ( - 70, - 95 / 49 * - 36, 39 * + - 55 / - 22 * - + COALESCE ( 28, 28 ) ) AS col1, - 57 col0
----
-70
-57

query I rowsort
SELECT - 99 + - 96
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4032
SELECT ALL - 34 + + ( COALESCE ( - + 71, + ( - 9 ) + - COUNT( * ) DIV + 90 * COUNT( * ) ) ) + + COUNT( * ) * + + 23 AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-4032
SELECT ALL - 34 + + ( COALESCE ( - + 71, + ( - 9 ) + - COUNT ( * ) / + 90 * COUNT ( * ) ) ) + + COUNT ( * ) * + + 23 AS col2
----
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4033
SELECT DISTINCT + MAX( + 24 ) DIV + 65 AS col0, - 28 - + - NULLIF ( CASE - 11 WHEN + + ( 5 ) * + 16 + 53 THEN NULL ELSE + 97 END, + ( - 49 ) ) DIV - - 90 AS col2
----
0
-27

skipif mysql # not compatible
query II rowsort label-4033
SELECT DISTINCT + MAX ( + 24 ) / + 65 AS col0, - 28 - + - NULLIF ( CASE - 11 WHEN + + ( 5 ) * + 16 + 53 THEN NULL ELSE + 97 END, + ( - 49 ) ) / - - 90 AS col2
----
0
-27

query I rowsort
SELECT ALL + 6 + + 81
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4035
SELECT ALL - 43 + + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL - 43 + + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT - 63 + + + 16 AS col1
----
-47

query I rowsort
SELECT - 69 + + 11 * + + 55
----
536

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + NULLIF ( - 85, - COUNT( * ) + + 64 )
----
-85

skipif mysql # not compatible
query I rowsort label-4038
SELECT + NULLIF ( - 85, - COUNT ( * ) + + 64 )
----
-85

query I rowsort
SELECT + 45 + + - 52 AS col0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4040
SELECT ALL - 66 DIV - 61 + + - COALESCE ( + 90, - + COUNT( * ) * + ( - - 69 ) + + 67 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL - 66 / - 61 + + - COALESCE ( + 90, - + COUNT ( * ) * + ( - - 69 ) + + 67 ) AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4041
SELECT + 24 DIV + + 37 * + 99 * - 66 + - SUM( ALL + 80 ) AS col0
----
-80

skipif mysql # not compatible
query I rowsort label-4041
SELECT + 24 / + + 37 * + 99 * - 66 + - SUM ( ALL + 80 ) AS col0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4042
SELECT ALL SUM( DISTINCT 3 ) * + 22 AS col1
----
66

skipif mysql # not compatible
query I rowsort label-4042
SELECT ALL SUM ( DISTINCT 3 ) * + 22 AS col1
----
66

query I rowsort
SELECT ALL - 99 * + 69
----
-6831

query I rowsort
SELECT 81 + + - 16
----
65

query II rowsort
SELECT ALL - 65 col2, 58
----
-65
58

query I rowsort
SELECT 0 * - + 29 AS col1
----
0

query II rowsort
SELECT + 51, + 66 * + 84 AS col2
----
51
5544

query I rowsort
SELECT 77 + - 89
----
-12

query I rowsort
SELECT ALL - 6 - - 45 AS col2
----
39

query I rowsort
SELECT - ( 73 ) + - + 95 col2
----
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-4051
SELECT ALL 24 DIV 85 + 57
----
57

skipif mysql # not compatible
query I rowsort label-4051
SELECT ALL 24 / 85 + 57
----
57

query I rowsort
SELECT 41 + + - 44 AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT DISTINCT - 99 - - SUM( DISTINCT + + 46 ) * + COUNT( * ) AS col2
----
-53

skipif mysql # not compatible
query I rowsort label-4053
SELECT DISTINCT - 99 - - SUM ( DISTINCT + + 46 ) * + COUNT ( * ) AS col2
----
-53

query I rowsort
SELECT DISTINCT - - 72 AS col0
----
72

query I rowsort
SELECT ALL - + ( + + 53 )
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4056
SELECT ALL - CASE - MAX( ALL + CAST( NULL AS SIGNED ) ) WHEN + - 11 * - 6 THEN NULL ELSE - 13 END * + - 31 AS col2
----
-403

skipif mysql # not compatible
query I rowsort label-4056
SELECT ALL - CASE - MAX ( ALL + CAST ( NULL AS INTEGER ) ) WHEN + - 11 * - 6 THEN NULL ELSE - 13 END * + - 31 AS col2
----
-403

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT - COUNT( * ) + - + 8 + + 9 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT - COUNT ( * ) + - + 8 + + 9 AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4058
SELECT CASE - + 32 WHEN - - COUNT( * ) THEN NULL WHEN - - 55 * + 85 THEN - 15 * 58 * - 33 END * 0 + - + 54 col2, - COUNT( * ) AS col0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-4058
SELECT CASE - + 32 WHEN - - COUNT ( * ) THEN NULL WHEN - - 55 * + 85 THEN - 15 * 58 * - 33 END * 0 + - + 54 col2, - COUNT ( * ) AS col0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT 10 + + + COUNT( * ) col1
----
11

skipif mysql # not compatible
query I rowsort label-4059
SELECT 10 + + + COUNT ( * ) col1
----
11

query I rowsort
SELECT ALL 13 * + + 72
----
936

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL - 5 * - SUM( DISTINCT 42 ) + 14 - - 6 AS col2
----
230

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL - 5 * - SUM ( DISTINCT 42 ) + 14 - - 6 AS col2
----
230

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT - 87 DIV - 62 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4062
SELECT - 87 / - 62 AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4063
SELECT 56 + 86 + - 51 * NULLIF ( + 55, + ( - + 25 ) ) * 71, - COUNT( * ) + + 32 * + + 42 + + CAST( NULL AS SIGNED ) AS col2
----
-199013
NULL

skipif mysql # not compatible
query II rowsort label-4063
SELECT 56 + 86 + - 51 * NULLIF ( + 55, + ( - + 25 ) ) * 71, - COUNT ( * ) + + 32 * + + 42 + + CAST ( NULL AS INTEGER ) AS col2
----
-199013
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL + 30 * - 68 + - CAST( + 72 AS SIGNED ) + + COALESCE ( 48, + + 88 - + - 15 )
----
-2064

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + 30 * - 68 + - CAST ( + 72 AS INTEGER ) + + COALESCE ( 48, + + 88 - + - 15 )
----
-2064

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4065
SELECT 59 * - CAST( - 49 AS SIGNED ), + 90 AS col2
----
2891
90

skipif mysql # not compatible
query II rowsort label-4065
SELECT 59 * - CAST ( - 49 AS INTEGER ), + 90 AS col2
----
2891
90

query I rowsort
SELECT ALL 40 + - 97
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-4067
SELECT ALL CASE - 31 WHEN - + COUNT( DISTINCT + 59 ) THEN - 69 END AS col2, 71 + - 4 + - + COUNT( * ) AS col1
----
NULL
66

skipif mysql # not compatible
query II rowsort label-4067
SELECT ALL CASE - 31 WHEN - + COUNT ( DISTINCT + 59 ) THEN - 69 END AS col2, 71 + - 4 + - + COUNT ( * ) AS col1
----
NULL
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4068
SELECT DISTINCT 2 + + 9 + - COALESCE ( 97, - - 38 - - + 50, + + COALESCE ( 36, - CAST( - 52 AS SIGNED ) * COUNT( * ) * - COUNT( * ) ) )
----
-86

skipif mysql # not compatible
query I rowsort label-4068
SELECT DISTINCT 2 + + 9 + - COALESCE ( 97, - - 38 - - + 50, + + COALESCE ( 36, - CAST ( - 52 AS INTEGER ) * COUNT ( * ) * - COUNT ( * ) ) )
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL + NULLIF ( CAST( NULL AS SIGNED ), - + 77 ) + + 47 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + NULLIF ( CAST ( NULL AS INTEGER ), - + 77 ) + + 47 AS col0
----
NULL

query I rowsort
SELECT - ( + 3 ) col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4071
SELECT ALL 82 + + 60 * - 28 * + + MAX( ALL - 9 ) AS col2
----
15202

skipif mysql # not compatible
query I rowsort label-4071
SELECT ALL 82 + + 60 * - 28 * + + MAX ( ALL - 9 ) AS col2
----
15202

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT 74, 52 * COUNT( + - 57 ) AS col2
----
74
52

skipif mysql # not compatible
query II rowsort label-4072
SELECT 74, 52 * COUNT ( + - 57 ) AS col2
----
74
52

onlyif mysql # aggregate syntax: 
query II rowsort label-4073
SELECT - 62 col0, - 38 * NULLIF ( 4, CASE - AVG ( 41 ) WHEN - - 71 * - 56 THEN COUNT( ALL 85 ) * 79 * - CASE - - COUNT( * ) WHEN - + 75 * + 77 THEN + COUNT( * ) + 68 + + 1 WHEN - CASE COUNT( * ) WHEN - 40 THEN NULL ELSE - 21 END THEN NULL END END * + + COUNT( * ) + + 33 ) AS col0
----
-62
-152

skipif mysql # not compatible
query II rowsort label-4073
SELECT - 62 col0, - 38 * NULLIF ( 4, CASE - AVG ( 41 ) WHEN - - 71 * - 56 THEN COUNT ( ALL 85 ) * 79 * - CASE - - COUNT ( * ) WHEN - + 75 * + 77 THEN + COUNT ( * ) + 68 + + 1 WHEN - CASE COUNT ( * ) WHEN - 40 THEN NULL ELSE - 21 END THEN NULL END END * + + COUNT ( * ) + + 33 ) AS col0
----
-62
-152

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT DISTINCT + 84 * - - 40 * - COUNT( * )
----
-3360

skipif mysql # not compatible
query I rowsort label-4074
SELECT DISTINCT + 84 * - - 40 * - COUNT ( * )
----
-3360

query I rowsort
SELECT ALL + 75 + + 51
----
126

query I rowsort
SELECT ALL 39 * 66
----
2574

query I rowsort
SELECT DISTINCT 74 * - - 79
----
5846

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT - 30 * COUNT( * ) AS col2
----
-30

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT - 30 * COUNT ( * ) AS col2
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT ALL + CAST( NULL AS SIGNED ) - - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL + CAST ( NULL AS INTEGER ) - - 87
----
NULL

query I rowsort
SELECT 10 * + 47 AS col1
----
470

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4081
SELECT ALL - 49 AS col1, - 7 DIV + - MIN( 12 ) + COALESCE ( + 44, + 31, + + 49 ) AS col2
----
-49
44

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL - 49 AS col1, - 7 / + - MIN ( 12 ) + COALESCE ( + 44, + 31, + + 49 ) AS col2
----
-49
44

query I rowsort
SELECT + 94 * + 22 + + 71
----
2139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4083
SELECT COUNT( * ) DIV + 49 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4083
SELECT COUNT ( * ) / + 49 AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4084
SELECT ALL + COUNT( * ) DIV 40
----
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL + COUNT ( * ) / 40
----
0

query I rowsort
SELECT 0 * - 60 * - 82 AS col0
----
0

query I rowsort
SELECT 10 * - 28
----
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT - MIN( ALL ( - 20 ) ) - - - 57
----
-37

skipif mysql # not compatible
query I rowsort label-4087
SELECT - MIN ( ALL ( - 20 ) ) - - - 57
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4088
SELECT ALL - COUNT( * ), - 29 * ( - 23 ) + - 94 * - 28 + + 82 AS col2
----
-1
3381

skipif mysql # not compatible
query II rowsort label-4088
SELECT ALL - COUNT ( * ), - 29 * ( - 23 ) + - 94 * - 28 + + 82 AS col2
----
-1
3381

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4089
SELECT - ( - 52 ) * + AVG ( ALL 61 ) + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4089
SELECT - ( - 52 ) * + AVG ( ALL 61 ) + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 69 * + + NULLIF ( 3, + - 96 ) * + 89 - + + 99 * 47 AS col1
----
-23076

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL + ( COUNT( * ) ) * - 33 AS col2
----
-33

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL + ( COUNT ( * ) ) * - 33 AS col2
----
-33

query II rowsort
SELECT + - ( - + 14 ) AS col0, 83 AS col1
----
14
83

query II rowsort
SELECT + 97 AS col1, 30 AS col2
----
97
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4094
SELECT 4 + + 18, MIN( ALL + 35 ) DIV + + 88 AS col0
----
22
0

skipif mysql # not compatible
query II rowsort label-4094
SELECT 4 + + 18, MIN ( ALL + 35 ) / + + 88 AS col0
----
22
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT 35 * - - 97 + + COUNT( ( + + 77 ) ) AS col1
----
3396

skipif mysql # not compatible
query I rowsort label-4095
SELECT 35 * - - 97 + + COUNT ( ( + + 77 ) ) AS col1
----
3396

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4096
SELECT - COALESCE ( + 40, + + 48 DIV - ( - + NULLIF ( 58, - CASE WHEN NOT COUNT( * ) IS NOT NULL THEN NULL WHEN ( + CASE 14 WHEN 63 THEN NULL WHEN + COUNT( * ) + - 66 THEN + 11 - + NULLIF ( + COUNT( * ), + COALESCE ( - + 1, + - 23 ) + + 63 ) ELSE NULL END + + CAST( NULL AS SIGNED ) ) IS NULL THEN NULL ELSE - 47 + - AVG ( 42 ) - NULLIF ( + ( - 62 ), + 61 ) END + 72 ) ) + 53 * + COUNT( * ), COUNT( * ) ) * 74
----
-2960

skipif mysql # not compatible
query I rowsort label-4096
SELECT - COALESCE ( + 40, + + 48 / - ( - + NULLIF ( 58, - CASE WHEN NOT COUNT ( * ) IS NOT NULL THEN NULL WHEN ( + CASE 14 WHEN 63 THEN NULL WHEN + COUNT ( * ) + - 66 THEN + 11 - + NULLIF ( + COUNT ( * ), + COALESCE ( - + 1, + - 23 ) + + 63 ) ELSE NULL END + + CAST ( NULL AS INTEGER ) ) IS NULL THEN NULL ELSE - 47 + - AVG ( 42 ) - NULLIF ( + ( - 62 ), + 61 ) END + 72 ) ) + 53 * + COUNT ( * ), COUNT ( * ) ) * 74
----
-2960

onlyif mysql # aggregate syntax: 
query II rowsort label-4097
SELECT ALL - - COUNT( * ), + ( - ( - COALESCE ( 18, + 87, + CASE 65 WHEN - 18 THEN NULL ELSE - 91 END, - 21 ) ) ) * - + 9 + - 75 + 4 AS col2
----
1
-233

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL - - COUNT ( * ), + ( - ( - COALESCE ( 18, + 87, + CASE 65 WHEN - 18 THEN NULL ELSE - 91 END, - 21 ) ) ) * - + 9 + - 75 + 4 AS col2
----
1
-233

onlyif mysql # aggregate syntax: 
query I rowsort label-4098
SELECT + - SUM( + 84 ) AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-4098
SELECT + - SUM ( + 84 ) AS col1
----
-84

query I rowsort
SELECT 12 - 48 AS col0
----
-36

query I rowsort
SELECT ALL + 43 + + 9 + 97 + - 52 * - - 68 AS col0
----
-3387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4101
SELECT + CASE 78 WHEN + 36 * + COUNT( * ) + - + 96 / + + 41 / 6 * + 48 THEN NULL WHEN + 13 * - 38 * - 73 + + 29 THEN + - 44 ELSE NULL END * + ( + + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + CASE 78 WHEN + 36 * + COUNT ( * ) + - + 96 / + + 41 / 6 * + 48 THEN NULL WHEN + 13 * - 38 * - 73 + + 29 THEN + - 44 ELSE NULL END * + ( + + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 47 + 87
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL NULLIF ( + 87, + COUNT( ALL + 22 ) ) AS col0
----
87

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL NULLIF ( + 87, + COUNT ( ALL + 22 ) ) AS col0
----
87

query I rowsort
SELECT ALL + 93 * - 85 col1
----
-7905

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4105
SELECT 81 * 38 * + 11 + + 67 * + - 21 * + 21 AS col0, 38 DIV + - ( - - COUNT( * ) ) - + 92 AS col1
----
4311
-130

skipif mysql # not compatible
query II rowsort label-4105
SELECT 81 * 38 * + 11 + + 67 * + - 21 * + 21 AS col0, 38 / + - ( - - COUNT ( * ) ) - + 92 AS col1
----
4311
-130

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT - + MAX( - 47 )
----
47

skipif mysql # not compatible
query I rowsort label-4106
SELECT - + MAX ( - 47 )
----
47

query I rowsort
SELECT - 44 - - - 86 * + - 52
----
4428

query I rowsort
SELECT 60 + + 98
----
158

onlyif mysql # aggregate syntax: 
query II rowsort label-4109
SELECT 66 * - + 9 * 67, - NULLIF ( + + 56, + COUNT( * ) ) AS col0
----
-39798
-56

skipif mysql # not compatible
query II rowsort label-4109
SELECT 66 * - + 9 * 67, - NULLIF ( + + 56, + COUNT ( * ) ) AS col0
----
-39798
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT MIN( ALL - + 76 ) + - COUNT( * ) col2
----
-77

skipif mysql # not compatible
query I rowsort label-4110
SELECT MIN ( ALL - + 76 ) + - COUNT ( * ) col2
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4111
SELECT DISTINCT COUNT( ALL + + 8 ) * - 84 + - + CAST( 27 AS SIGNED ) DIV + 7 AS col2
----
-87

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT COUNT ( ALL + + 8 ) * - 84 + - + CAST ( 27 AS INTEGER ) / + 7 AS col2
----
-87

query I rowsort
SELECT 85 + - - 14 AS col2
----
99

query I rowsort
SELECT ALL 98 * - 2 AS col0
----
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4114
SELECT - COUNT( ALL - 81 ) AS col1, 53 DIV + 54
----
-1
0

skipif mysql # not compatible
query II rowsort label-4114
SELECT - COUNT ( ALL - 81 ) AS col1, 53 / + 54
----
-1
0

query I rowsort
SELECT - 80 + + 73 AS col0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4116
SELECT + CAST( + 55 AS SIGNED ) * + - 10 AS col2
----
-550

skipif mysql # not compatible
query I rowsort label-4116
SELECT + CAST ( + 55 AS INTEGER ) * + - 10 AS col2
----
-550

query I rowsort
SELECT - 56 + + - 1 + + + 66 + + 24 AS col2
----
33

query I rowsort
SELECT DISTINCT ( + 19 ) * + 70
----
1330

onlyif mysql # DIV for integer division: 
query II rowsort label-4119
SELECT + 44 DIV - 90, + 45 * 14 AS col2
----
0
630

skipif mysql # not compatible
query II rowsort label-4119
SELECT + 44 / - 90, + 45 * 14 AS col2
----
0
630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4120
SELECT ALL + COALESCE ( + COALESCE ( 15, + 60 ), - 12 * COUNT( * ) - - ( + CAST( NULL AS SIGNED ) ) ) * + 62 * - - 38 / + AVG ( ALL - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + COALESCE ( + COALESCE ( 15, + 60 ), - 12 * COUNT ( * ) - - ( + CAST ( NULL AS INTEGER ) ) ) * + 62 * - - 38 / + AVG ( ALL - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT DISTINCT ( - ( + COUNT( * ) ) ) * + 49 AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT ( - ( + COUNT ( * ) ) ) * + 49 AS col1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL ( - 62 ) * COUNT( * ) * - 29 + + 37
----
1835

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL ( - 62 ) * COUNT ( * ) * - 29 + + 37
----
1835

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL - COUNT( * ) * 86
----
-86

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL - COUNT ( * ) * 86
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT - 89 * - COUNT( * ) AS col1
----
89

skipif mysql # not compatible
query I rowsort label-4124
SELECT - 89 * - COUNT ( * ) AS col1
----
89

query I rowsort
SELECT - - 45 * 50 + + 51 * - 15
----
1485

onlyif mysql # aggregate syntax: 
query I rowsort label-4126
SELECT ALL + SUM( + 1 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL + SUM ( + 1 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 32 * + MAX( ALL - 74 ) + - 80
----
-2448

skipif mysql # not compatible
query I rowsort label-4127
SELECT 32 * + MAX ( ALL - 74 ) + - 80
----
-2448

query I rowsort
SELECT - - 27 * 17 - - 68
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT + - COUNT( * ) * + 73 + + 56 col0
----
-17

skipif mysql # not compatible
query I rowsort label-4129
SELECT + - COUNT ( * ) * + 73 + + 56 col0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4130
SELECT - 78 + + COUNT( * ) + 2 * - + COUNT( * ) * + COUNT( * ) AS col2, + NULLIF ( 93, + COALESCE ( + 30, - - 41 + + + NULLIF ( + 77, + - 59 + - 16 ) - - 33 ) ) + - CASE CASE + 20 WHEN - COUNT( + 91 ) THEN + + 90 * - 70 * + 68 * + 66 * - + 22 WHEN + COUNT( * ) + - 20 * CASE + COALESCE ( 34, COUNT( * ) ) WHEN + AVG ( ALL ( 19 ) ) DIV + 85 THEN 9 ELSE NULL END THEN NULL ELSE NULL END WHEN 12 + + 95 THEN NULL WHEN 36 THEN - ( + 62 ) * - 7 ELSE 28 DIV COUNT( * ) + - CAST( - COUNT( * ) AS SIGNED ) * 15 END col0
----
-79
50

skipif mysql # not compatible
query II rowsort label-4130
SELECT - 78 + + COUNT ( * ) + 2 * - + COUNT ( * ) * + COUNT ( * ) AS col2, + NULLIF ( 93, + COALESCE ( + 30, - - 41 + + + NULLIF ( + 77, + - 59 + - 16 ) - - 33 ) ) + - CASE CASE + 20 WHEN - COUNT ( + 91 ) THEN + + 90 * - 70 * + 68 * + 66 * - + 22 WHEN + COUNT ( * ) + - 20 * CASE + COALESCE ( 34, COUNT ( * ) ) WHEN + AVG ( ALL ( 19 ) ) / + 85 THEN 9 ELSE NULL END THEN NULL ELSE NULL END WHEN 12 + + 95 THEN NULL WHEN 36 THEN - ( + 62 ) * - 7 ELSE 28 / COUNT ( * ) + - CAST ( - COUNT ( * ) AS INTEGER ) * 15 END col0
----
-79
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL + CASE - - MIN( ALL - 52 ) WHEN 1 + COUNT( * ) THEN - - COUNT( * ) * 78 * ( 96 ) / + 70 + - + SUM( 91 ) + - 60 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL + CASE - - MIN ( ALL - 52 ) WHEN 1 + COUNT ( * ) THEN - - COUNT ( * ) * 78 * ( 96 ) / + 70 + - + SUM ( 91 ) + - 60 END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4132
SELECT 17 * - 77 * CAST( NULL AS SIGNED ) + 0 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4132
SELECT 17 * - 77 * CAST ( NULL AS INTEGER ) + 0 AS col1
----
NULL

query I rowsort
SELECT ALL + 79 * - 34 + - + 47 + - 9 AS col1
----
-2742

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT - 58 * 44 * + NULLIF ( 58, + 10 ) * - 78 * - COUNT( * )
----
-11545248

skipif mysql # not compatible
query I rowsort label-4134
SELECT - 58 * 44 * + NULLIF ( 58, + 10 ) * - 78 * - COUNT ( * )
----
-11545248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4135
SELECT - - 25 + CASE 68 WHEN - ( - + 5 ) + - COALESCE ( 20, COUNT( * ), CAST( - + 29 AS SIGNED ) ) - + - 36 THEN - 96 WHEN + AVG ( 92 ) THEN NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4135
SELECT - - 25 + CASE 68 WHEN - ( - + 5 ) + - COALESCE ( 20, COUNT ( * ), CAST ( - + 29 AS INTEGER ) ) - + - 36 THEN - 96 WHEN + AVG ( 92 ) THEN NULL END col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT - - SUM( ALL 15 ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4136
SELECT - - SUM ( ALL 15 ) AS col0
----
15

query I rowsort
SELECT + + 51 + - 61
----
-10

query I rowsort
SELECT + 46 + - 45 + 97 AS col1
----
98

query I rowsort
SELECT ALL - 75 - 64
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT DISTINCT - 2 * CAST( + 11 AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - 2 * CAST ( + 11 AS INTEGER ) * + - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 87 - 70 + + 62
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL ( SUM( DISTINCT + 1 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL ( SUM ( DISTINCT + 1 ) ) AS col1
----
1

query II rowsort
SELECT DISTINCT ( + ( + 83 ) ) col1, - 54 - + - ( 84 ) + - 78
----
83
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-4144
SELECT ALL 22 DIV 95 * - 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL 22 / 95 * - 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT ALL 66 col2, COALESCE ( - MAX( 86 ), 12 ) + + 61 * COALESCE ( 23, + 11, + - MIN( DISTINCT + COALESCE ( + CASE + 30 WHEN + 12 THEN - + ( + 87 ) ELSE - 14 END, + + 45 ) ) + 92 ) AS col0
----
66
1317

skipif mysql # not compatible
query II rowsort label-4145
SELECT ALL 66 col2, COALESCE ( - MAX ( 86 ), 12 ) + + 61 * COALESCE ( 23, + 11, + - MIN ( DISTINCT + COALESCE ( + CASE + 30 WHEN + 12 THEN - + ( + 87 ) ELSE - 14 END, + + 45 ) ) + 92 ) AS col0
----
66
1317

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT - CASE 73 WHEN COUNT( * ) THEN - 23 * + 16 + - 33 + - COUNT( * ) ELSE 74 * + 46 END
----
-3404

skipif mysql # not compatible
query I rowsort label-4146
SELECT - CASE 73 WHEN COUNT ( * ) THEN - 23 * + 16 + - 33 + - COUNT ( * ) ELSE 74 * + 46 END
----
-3404

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4147
SELECT ALL CAST( - + 97 AS SIGNED )
----
-97

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL CAST ( - + 97 AS INTEGER )
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT - 58 - - - MIN( DISTINCT - 89 ) AS col0
----
31

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - 58 - - - MIN ( DISTINCT - 89 ) AS col0
----
31

query I rowsort
SELECT + 63 * - + 5 AS col2
----
-315

onlyif mysql # aggregate syntax: 
query II rowsort label-4150
SELECT ALL 86 * COUNT( - - ( + 62 ) ), 10 AS col1
----
86
10

skipif mysql # not compatible
query II rowsort label-4150
SELECT ALL 86 * COUNT ( - - ( + 62 ) ), 10 AS col1
----
86
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT - COUNT( ALL + - 74 )
----
-1

skipif mysql # not compatible
query I rowsort label-4151
SELECT - COUNT ( ALL + - 74 )
----
-1

query I rowsort
SELECT + 68 * + 64
----
4352

query I rowsort
SELECT + 27 * + + 36 AS col2
----
972

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4154
SELECT + 33 * COUNT( ALL + 46 ) DIV 59 - + + 11 * + + COUNT( * ) * COUNT( * ) + + 9 * 49 - + 94 + - COUNT( * )
----
335

skipif mysql # not compatible
query I rowsort label-4154
SELECT + 33 * COUNT ( ALL + 46 ) / 59 - + + 11 * + + COUNT ( * ) * COUNT ( * ) + + 9 * 49 - + 94 + - COUNT ( * )
----
335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT - NULLIF ( - 75, - CAST( - 38 AS SIGNED ) ) col2
----
75

skipif mysql # not compatible
query I rowsort label-4155
SELECT - NULLIF ( - 75, - CAST ( - 38 AS INTEGER ) ) col2
----
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4156
SELECT 66 AS col0, COUNT( * ) DIV - COUNT( * ) AS col2
----
66
-1

skipif mysql # not compatible
query II rowsort label-4156
SELECT 66 AS col0, COUNT ( * ) / - COUNT ( * ) AS col2
----
66
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL COUNT( - 70 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL COUNT ( - 70 ) AS col2
----
1

query I rowsort
SELECT DISTINCT + COALESCE ( - 80, - 46 * 1 * - + 11, + 81 )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4159
SELECT ALL + 64 DIV - 1 + - + 74 + - MAX( NULLIF ( - 15, + + 31 ) ) AS col2
----
-123

skipif mysql # not compatible
query I rowsort label-4159
SELECT ALL + 64 / - 1 + - + 74 + - MAX ( NULLIF ( - 15, + + 31 ) ) AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT DISTINCT + + NULLIF ( + 11, ( + 79 ) - - COUNT( * ) * ( - + COUNT( * ) ) / - - 8 - - 48 )
----
11

skipif mysql # not compatible
query I rowsort label-4160
SELECT DISTINCT + + NULLIF ( + 11, ( + 79 ) - - COUNT ( * ) * ( - + COUNT ( * ) ) / - - 8 - - 48 )
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT + - 36 * + ( COUNT( * ) ) AS col0, + 81
----
-36
81

skipif mysql # not compatible
query II rowsort label-4161
SELECT + - 36 * + ( COUNT ( * ) ) AS col0, + 81
----
-36
81

query II rowsort
SELECT + 37 col2, 74 - - 45 - - + 69 AS col0
----
37
188

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT MIN( ALL + 88 ) col1
----
88

skipif mysql # not compatible
query I rowsort label-4163
SELECT MIN ( ALL + 88 ) col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - MAX( 41 ) AS col1
----
-41

skipif mysql # not compatible
query I rowsort label-4164
SELECT - MAX ( 41 ) AS col1
----
-41

onlyif mysql # aggregate syntax: 
query III rowsort label-4165
SELECT + + 18, + 52 * - 76 * - COUNT( * ) AS col2, + 65 AS col0
----
18
3952
65

skipif mysql # not compatible
query III rowsort label-4165
SELECT + + 18, + 52 * - 76 * - COUNT ( * ) AS col2, + 65 AS col0
----
18
3952
65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4166
SELECT - - 81 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT - - 81 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4167
SELECT ALL 9 DIV 20 + - - 64 * - + COUNT( * ) * - - 22 * - 80 + - 47 + + 46 * - + 98 AS col1
----
108085

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL 9 / 20 + - - 64 * - + COUNT ( * ) * - - 22 * - 80 + - 47 + + 46 * - + 98 AS col1
----
108085

query I rowsort
SELECT + - 37 + 15
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT ALL - 33 DIV - - 72 * 20 + - - COUNT( * ) + + 26 + + - 2 * - 24 DIV + 22
----
29

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - 33 / - - 72 * 20 + - - COUNT ( * ) + + 26 + + - 2 * - 24 / + 22
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - COUNT( ALL - 62 )
----
-1

skipif mysql # not compatible
query I rowsort label-4170
SELECT - COUNT ( ALL - 62 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4171
SELECT + COUNT( * ) * - - 49 AS col2
----
49

skipif mysql # not compatible
query I rowsort label-4171
SELECT + COUNT ( * ) * - - 49 AS col2
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4172
SELECT + - NULLIF ( + 66, + ( + 58 ) + + 70 + 95 - + + 98 + ( - ( - 33 ) ) + + CAST( NULL AS SIGNED ) + - - COALESCE ( - COUNT( * ), - 27 - + COUNT( * ) ) / + 27 / + 11 + + 23 + 37 )
----
-66

skipif mysql # not compatible
query I rowsort label-4172
SELECT + - NULLIF ( + 66, + ( + 58 ) + + 70 + 95 - + + 98 + ( - ( - 33 ) ) + + CAST ( NULL AS INTEGER ) + - - COALESCE ( - COUNT ( * ), - 27 - + COUNT ( * ) ) / + 27 / + 11 + + 23 + 37 )
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT - + 55 DIV - + ( + - 49 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4173
SELECT - + 55 / - + ( + - 49 ) AS col2
----
-1

query II rowsort
SELECT + 94 AS col0, - 46 AS col0
----
94
-46

query I rowsort
SELECT - - 21 - - 31
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4176
SELECT + + 10 * - ( - NULLIF ( - - 40, - NULLIF ( + ( - - CAST( - + COUNT( * ) AS SIGNED ) ), 68 ) ) ) + - ( CAST( 55 AS SIGNED ) ) + - 11
----
334

skipif mysql # not compatible
query I rowsort label-4176
SELECT + + 10 * - ( - NULLIF ( - - 40, - NULLIF ( + ( - - CAST ( - + COUNT ( * ) AS INTEGER ) ), 68 ) ) ) + - ( CAST ( 55 AS INTEGER ) ) + - 11
----
334

onlyif mysql # aggregate syntax: 
query I rowsort label-4177
SELECT SUM( ALL + - 69 )
----
-69

skipif mysql # not compatible
query I rowsort label-4177
SELECT SUM ( ALL + - 69 )
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4178
SELECT ALL - - 5 DIV - COALESCE ( - - 96, + + 33, + - 7 )
----
0

skipif mysql # not compatible
query I rowsort label-4178
SELECT ALL - - 5 / - COALESCE ( - - 96, + + 33, + - 7 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT - 79 - + - 69 DIV + + 80 + + - 0 AS col1
----
-79

skipif mysql # not compatible
query I rowsort label-4179
SELECT - 79 - + - 69 / + + 80 + + - 0 AS col1
----
-79

query II rowsort
SELECT DISTINCT + - 48 AS col1, + 55
----
-48
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4181
SELECT COUNT( * ) * MIN( CAST( NULL AS SIGNED ) ) - + 78 + - MAX( - 51 ) * + + CAST( - ( 80 ) AS SIGNED ) * + - 28 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4181
SELECT COUNT ( * ) * MIN ( CAST ( NULL AS INTEGER ) ) - + 78 + - MAX ( - 51 ) * + + CAST ( - ( 80 ) AS INTEGER ) * + - 28 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT ALL - CAST( NULL AS SIGNED ) * + 74 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4182
SELECT ALL - CAST ( NULL AS INTEGER ) * + 74 col1
----
NULL

query I rowsort
SELECT 11 * 81
----
891

query I rowsort
SELECT DISTINCT - 71 * + 30
----
-2130

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT + ( - 64 ) * 7 + ( COUNT( * ) )
----
-447

skipif mysql # not compatible
query I rowsort label-4185
SELECT + ( - 64 ) * 7 + ( COUNT ( * ) )
----
-447

query I rowsort
SELECT 20 - - ( + 78 ) * 41 AS col2
----
3218

query I rowsort
SELECT ALL - 54 * + - 31 AS col0
----
1674

onlyif mysql # aggregate syntax: 
query I rowsort label-4188
SELECT 94 + + 23 + + + 82 * + COUNT( * ) + + CASE - 9 WHEN 39 THEN 1 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT 94 + + 23 + + + 82 * + COUNT ( * ) + + CASE - 9 WHEN 39 THEN 1 END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT 1 * - + 33 DIV 40 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4189
SELECT 1 * - + 33 / 40 AS col2
----
0

query I rowsort
SELECT 4 + - 26 col0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4191
SELECT ALL - 54 * 37 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4191
SELECT ALL - 54 * 37 * CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT ALL CAST( + + 44 AS SIGNED ) + + MAX( 37 ) * - 91 AS col2
----
-3323

skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL CAST ( + + 44 AS INTEGER ) + + MAX ( 37 ) * - 91 AS col2
----
-3323

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4193
SELECT ALL - CAST( NULL AS SIGNED ) / - 3 * - CASE + 59 WHEN - 76 / - 28 THEN + 9 + - 92 / - + 36 / - ( + COUNT( * ) ) WHEN + + 93 THEN - 79 END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL - CAST ( NULL AS INTEGER ) / - 3 * - CASE + 59 WHEN - 76 / - 28 THEN + 9 + - 92 / - + 36 / - ( + COUNT ( * ) ) WHEN + + 93 THEN - 79 END col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4194
SELECT + 15 DIV + 30 - + NULLIF ( 72, + - 43 ) * - 64 AS col2
----
4608

skipif mysql # not compatible
query I rowsort label-4194
SELECT + 15 / + 30 - + NULLIF ( 72, + - 43 ) * - 64 AS col2
----
4608

query I rowsort
SELECT ALL 68 + + + 5 col0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT + 77 + + CASE ( - SUM( ALL + 69 ) ) WHEN 66 THEN NULL WHEN 7 THEN 76 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT + 77 + + CASE ( - SUM ( ALL + 69 ) ) WHEN 66 THEN NULL WHEN 7 THEN 76 END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + 64 - + 60 AS col2
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + - CASE + - 10 WHEN - 18 - + 78 THEN NULL WHEN - - 80 - - 18 + + 64 THEN NULLIF ( - COUNT( * ), - 79 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4198
SELECT + - CASE + - 10 WHEN - 18 - + 78 THEN NULL WHEN - - 80 - - 18 + + 64 THEN NULLIF ( - COUNT ( * ), - 79 ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + - COALESCE ( 93, + 76 + - 0, + 63 ) * - + ( + ( 41 ) ) + 5 - + + COUNT( * )
----
3817

skipif mysql # not compatible
query I rowsort label-4199
SELECT + - COALESCE ( 93, + 76 + - 0, + 63 ) * - + ( + ( 41 ) ) + 5 - + + COUNT ( * )
----
3817

query I rowsort
SELECT + 31 * - 68 - - + 16
----
-2092

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) * 13
----
13

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) * 13
----
13

query I rowsort
SELECT DISTINCT 80 - + 94 AS col0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL - - ( + COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL - - ( + COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4204
SELECT 59 + + 56 * + - MAX( DISTINCT + - 66 ) * + - CAST( - ( + 24 ) AS SIGNED ), ( + + 82 ) AS col0
----
88763
82

skipif mysql # not compatible
query II rowsort label-4204
SELECT 59 + + 56 * + - MAX ( DISTINCT + - 66 ) * + - CAST ( - ( + 24 ) AS INTEGER ), ( + + 82 ) AS col0
----
88763
82

query I rowsort
SELECT ALL - - 20 col2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT 48 * + - COUNT( * ) * - - SUM( ( + + 34 ) ) + 51
----
-1581

skipif mysql # not compatible
query I rowsort label-4206
SELECT 48 * + - COUNT ( * ) * - - SUM ( ( + + 34 ) ) + 51
----
-1581

query I rowsort
SELECT ALL 76 * - 42
----
-3192

query I rowsort
SELECT DISTINCT 10 * + 47
----
470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4209
SELECT + 11 AS col2, + NULLIF ( - 6, - 0 * + MIN( 48 ) + + 54 ) * 16 - - CAST( NULL AS SIGNED )
----
11
NULL

skipif mysql # not compatible
query II rowsort label-4209
SELECT + 11 AS col2, + NULLIF ( - 6, - 0 * + MIN ( 48 ) + + 54 ) * 16 - - CAST ( NULL AS INTEGER )
----
11
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT 20 + - COUNT( ALL 95 ), COUNT( * ) AS col0
----
19
1

skipif mysql # not compatible
query II rowsort label-4210
SELECT 20 + - COUNT ( ALL 95 ), COUNT ( * ) AS col0
----
19
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT 23 DIV 84 col1
----
0

skipif mysql # not compatible
query I rowsort label-4211
SELECT 23 / 84 col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4212
SELECT - 68, 70 + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) - 99 AS col0
----
-68
NULL

skipif mysql # not compatible
query II rowsort label-4212
SELECT - 68, 70 + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) - 99 AS col0
----
-68
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4213
SELECT 4 * COUNT( * ) * 9 AS col1, MIN( 7 ) AS col0
----
36
7

skipif mysql # not compatible
query II rowsort label-4213
SELECT 4 * COUNT ( * ) * 9 AS col1, MIN ( 7 ) AS col0
----
36
7

query I rowsort
SELECT 39 + 90
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL COUNT( * ) + - COUNT( * ) + + - 21
----
-21

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + - 21
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT 68 + - + 22 + COUNT( * ) * + + 44 AS col0
----
90

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT 68 + - + 22 + COUNT ( * ) * + + 44 AS col0
----
90

query I rowsort
SELECT 29 * + - 33 col0
----
-957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4218
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) / - - MIN( ALL - - 63 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) / - - MIN ( ALL - - 63 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT COUNT( * ) * + 8 DIV + - 12 DIV - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4219
SELECT COUNT ( * ) * + 8 / + - 12 / - COUNT ( * )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + 51 + - COUNT( ALL - 63 )
----
50

skipif mysql # not compatible
query I rowsort label-4220
SELECT ALL + 51 + - COUNT ( ALL - 63 )
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4221
SELECT - 22 * - + 97 + + COALESCE ( 79, + MIN( DISTINCT + ( - 1 ) ) ) DIV - NULLIF ( - - 65, - - MAX( + + 30 ) ) AS col1
----
2133

skipif mysql # not compatible
query I rowsort label-4221
SELECT - 22 * - + 97 + + COALESCE ( 79, + MIN ( DISTINCT + ( - 1 ) ) ) / - NULLIF ( - - 65, - - MAX ( + + 30 ) ) AS col1
----
2133

query I rowsort
SELECT DISTINCT + 48 + 30 + + COALESCE ( + + ( 31 ), 22 * + - ( - 57 ) )
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4223
SELECT MIN( - 96 ) DIV + 17 + - + 12 + + 46
----
29

skipif mysql # not compatible
query I rowsort label-4223
SELECT MIN ( - 96 ) / + 17 + - + 12 + + 46
----
29

query I rowsort
SELECT ALL + - 38 - + 9 * 12 * - COALESCE ( + - 44, 58, + 19 * + 64 + 92 )
----
-4790

onlyif mysql # aggregate syntax: 
query II rowsort label-4225
SELECT DISTINCT 0 AS col2, COUNT( * ) + MAX( DISTINCT - 70 ) AS col1
----
0
-69

skipif mysql # not compatible
query II rowsort label-4225
SELECT DISTINCT 0 AS col2, COUNT ( * ) + MAX ( DISTINCT - 70 ) AS col1
----
0
-69

query I rowsort
SELECT + 2 + 31
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4227
SELECT DISTINCT + - SUM( DISTINCT - - 16 ) DIV ( + 4 ) AS col1
----
-4

skipif mysql # not compatible
query I rowsort label-4227
SELECT DISTINCT + - SUM ( DISTINCT - - 16 ) / ( + 4 ) AS col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT + - COUNT( * ) * - - 61 + + + 84
----
23

skipif mysql # not compatible
query I rowsort label-4228
SELECT + - COUNT ( * ) * - - 61 + + + 84
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-4229
SELECT - 85 DIV - ( 57 )
----
1

skipif mysql # not compatible
query I rowsort label-4229
SELECT - 85 / - ( 57 )
----
1

query I rowsort
SELECT 4 * 99
----
396

query I rowsort
SELECT - 94 + - - 64 col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4232
SELECT - COUNT( ALL + ( + - 58 ) ) DIV - - 52 + ( + - COUNT( * ) ) + - MAX( DISTINCT - + 8 ) + 5 col1
----
12

skipif mysql # not compatible
query I rowsort label-4232
SELECT - COUNT ( ALL + ( + - 58 ) ) / - - 52 + ( + - COUNT ( * ) ) + - MAX ( DISTINCT - + 8 ) + 5 col1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL + COUNT( ALL - - 67 )
----
1

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + COUNT ( ALL - - 67 )
----
1

query I rowsort
SELECT + ( + 79 ) AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT + + 21 * + CASE - 27 WHEN - CASE + 40 WHEN + 79 - - 71 THEN + - 94 ELSE NULL END * + 46 THEN + 58 * 15 + + 96 - COUNT( DISTINCT + - ( + 39 ) ) + 91 + - - 90 * + + 22 * 11 / CASE 76 WHEN + 74 THEN NULL WHEN + 31 THEN - + 32 + 9 ELSE 26 - - - MAX( 45 ) END ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT + + 21 * + CASE - 27 WHEN - CASE + 40 WHEN + 79 - - 71 THEN + - 94 ELSE NULL END * + 46 THEN + 58 * 15 + + 96 - COUNT ( DISTINCT + - ( + 39 ) ) + 91 + - - 90 * + + 22 * 11 / CASE 76 WHEN + 74 THEN NULL WHEN + 31 THEN - + 32 + 9 ELSE 26 - - - MAX ( 45 ) END ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4236
SELECT CAST( 42 AS SIGNED ) * 6 - - 45 + - 63 + - 7 * + - 23 * CASE + 54 WHEN - 96 + + + 14 - + COUNT( * ) - + + ( 8 ) * CAST( 60 AS SIGNED ) THEN - 33 - - CASE + SUM( 96 ) WHEN + 19 + + - ( + - 50 ) + 99 + 76 + + COALESCE ( + 57, + 19 ) THEN NULL WHEN + 39 THEN - - 55 ELSE NULL END WHEN + NULLIF ( - CAST( NULL AS SIGNED ), 24 / ( 16 ) ) THEN NULL ELSE 1 END * MIN( 5 ) AS col0
----
1039

skipif mysql # not compatible
query I rowsort label-4236
SELECT CAST ( 42 AS INTEGER ) * 6 - - 45 + - 63 + - 7 * + - 23 * CASE + 54 WHEN - 96 + + + 14 - + COUNT ( * ) - + + ( 8 ) * CAST ( 60 AS INTEGER ) THEN - 33 - - CASE + SUM ( 96 ) WHEN + 19 + + - ( + - 50 ) + 99 + 76 + + COALESCE ( + 57, + 19 ) THEN NULL WHEN + 39 THEN - - 55 ELSE NULL END WHEN + NULLIF ( - CAST ( NULL AS INTEGER ), 24 / ( 16 ) ) THEN NULL ELSE 1 END * MIN ( 5 ) AS col0
----
1039

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT + CASE + COUNT( * ) WHEN + ( + ( - + COUNT( * ) ) ) + 55 + - 20 * + + AVG ( ALL - 36 ) * 69 * 67 THEN - 99 WHEN - - 75 THEN NULL WHEN - - 37 / - + 73 THEN + 75 + + + 88 * ( + 86 ) / - 89 * - 9 - 40 + - ( 4 ) / 80 + - - NULLIF ( + + 30, + 18 + + 2 ) * + + 78 - 81 WHEN + 52 + 65 THEN NULL END col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4237
SELECT + CASE + COUNT ( * ) WHEN + ( + ( - + COUNT ( * ) ) ) + 55 + - 20 * + + AVG ( ALL - 36 ) * 69 * 67 THEN - 99 WHEN - - 75 THEN NULL WHEN - - 37 / - + 73 THEN + 75 + + + 88 * ( + 86 ) / - 89 * - 9 - 40 + - ( 4 ) / 80 + - - NULLIF ( + + 30, + 18 + + 2 ) * + + 78 - 81 WHEN + 52 + 65 THEN NULL END col1
----
NULL

query I rowsort
SELECT + 28 * - - 25 * + 80 AS col0
----
56000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT + 34 * - + COALESCE ( - 24, 12 + 94 + - + CASE - - 0 WHEN + + COUNT( * ) + + - 49 THEN - 15 * MAX( - - 88 ) DIV + - COUNT( * ) WHEN + - 56 THEN NULL ELSE NULL END + - - 99 ) AS col1
----
816

skipif mysql # not compatible
query I rowsort label-4239
SELECT + 34 * - + COALESCE ( - 24, 12 + 94 + - + CASE - - 0 WHEN + + COUNT ( * ) + + - 49 THEN - 15 * MAX ( - - 88 ) / + - COUNT ( * ) WHEN + - 56 THEN NULL ELSE NULL END + - - 99 ) AS col1
----
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4240
SELECT DISTINCT CASE CAST( - - 28 AS SIGNED ) WHEN + 48 - - 97 + - 72 THEN - - 68 ELSE + - ( COUNT( * ) ) * - COUNT( * ) + + 63 - 53 + + + COUNT( * ) + ( + + 37 ) + COUNT( * ) END * + CASE + + MAX( ALL 4 ) WHEN + COUNT( * ) THEN - COALESCE ( + 44, - 36 ) WHEN COUNT( * ) THEN NULL ELSE - COUNT( * ) - - - 84 END
----
-4250

skipif mysql # not compatible
query I rowsort label-4240
SELECT DISTINCT CASE CAST ( - - 28 AS INTEGER ) WHEN + 48 - - 97 + - 72 THEN - - 68 ELSE + - ( COUNT ( * ) ) * - COUNT ( * ) + + 63 - 53 + + + COUNT ( * ) + ( + + 37 ) + COUNT ( * ) END * + CASE + + MAX ( ALL 4 ) WHEN + COUNT ( * ) THEN - COALESCE ( + 44, - 36 ) WHEN COUNT ( * ) THEN NULL ELSE - COUNT ( * ) - - - 84 END
----
-4250

query I rowsort
SELECT ALL 16 + 21 * - - 10 AS col2
----
226

query I rowsort
SELECT 18 * - 82 - - ( + 21 ) * 74
----
78

query I rowsort
SELECT + 98 * + - 68 AS col0
----
-6664

query I rowsort
SELECT ALL + 82 + - 79
----
3

query I rowsort
SELECT + 85 + 13 AS col0
----
98

query II rowsort
SELECT 95, - 43 AS col1
----
95
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4247
SELECT ALL CAST( + 92 AS SIGNED ) + + 69 AS col1
----
161

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL CAST ( + 92 AS INTEGER ) + + 69 AS col1
----
161

query I rowsort
SELECT + 62 + - - 10 + 78
----
150

query I rowsort
SELECT + 38 + + 96 - 1 + 48 * - 87 * - 16 - + + 28
----
66921

onlyif mysql # aggregate syntax: 
query I rowsort label-4250
SELECT - 44 - - COUNT( * ) + - - COUNT( * )
----
-42

skipif mysql # not compatible
query I rowsort label-4250
SELECT - 44 - - COUNT ( * ) + - - COUNT ( * )
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT ALL 50 + + MAX( - + 29 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL 50 + + MAX ( - + 29 ) AS col0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4252
SELECT DISTINCT - + COUNT( DISTINCT - - 25 ) DIV COUNT( * ) * - 98 - - 53 AS col2
----
151

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT - + COUNT ( DISTINCT - - 25 ) / COUNT ( * ) * - 98 - - 53 AS col2
----
151

query I rowsort
SELECT ALL ( - + 80 )
----
-80

query II rowsort
SELECT - - 50 + + + 97 AS col0, - 52 AS col2
----
147
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + 86 * - - 64 + + - COUNT( * )
----
5503

skipif mysql # not compatible
query I rowsort label-4255
SELECT + 86 * - - 64 + + - COUNT ( * )
----
5503

query I rowsort
SELECT - 56 * + + 51
----
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT + - 61 * - - NULLIF ( 92, COUNT( DISTINCT 46 ) )
----
-5612

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT + - 61 * - - NULLIF ( 92, COUNT ( DISTINCT 46 ) )
----
-5612

query I rowsort
SELECT - - ( 79 ) AS col2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - 83 + + 83 + - 23 + - 34 + + 66 + + COUNT( * ) * + 65 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-4259
SELECT - 83 + + 83 + - 23 + - 34 + + 66 + + COUNT ( * ) * + 65 AS col0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL + COUNT( * ) * + 42 col0
----
42

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + COUNT ( * ) * + 42 col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT - - ( + - 27 ) * + NULLIF ( - 43, 84 ) + + + 45 + 87 * + MAX( ALL + + 72 )
----
7470

skipif mysql # not compatible
query I rowsort label-4261
SELECT - - ( + - 27 ) * + NULLIF ( - 43, 84 ) + + + 45 + 87 * + MAX ( ALL + + 72 )
----
7470

onlyif mysql # aggregate syntax: 
query I rowsort label-4262
SELECT ALL + COUNT( - ( + 34 ) )
----
1

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL + COUNT ( - ( + 34 ) )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT COALESCE ( + 20, + - 62, + + 7 * 83 + 93 - + 87 ) * 20 + - 68 + 87 * 89 DIV + ( + ( - 62 ) ) AS col2
----
208

skipif mysql # not compatible
query I rowsort label-4263
SELECT COALESCE ( + 20, + - 62, + + 7 * 83 + 93 - + 87 ) * 20 + - 68 + 87 * 89 / + ( + ( - 62 ) ) AS col2
----
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT ALL + 43 * - 17 * - CAST( + + 8 AS SIGNED ) AS col0
----
5848

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL + 43 * - 17 * - CAST ( + + 8 AS INTEGER ) AS col0
----
5848

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT - MAX( - - ( - 63 ) ) * 77 + + 95 AS col2
----
4946

skipif mysql # not compatible
query I rowsort label-4265
SELECT - MAX ( - - ( - 63 ) ) * 77 + + 95 AS col2
----
4946

query II rowsort
SELECT + 86 AS col1, 60 AS col0
----
86
60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4267
SELECT ALL + - 2 AS col0, - NULLIF ( + 21, 32 ) DIV + CAST( + 62 AS SIGNED ) AS col0
----
-2
0

skipif mysql # not compatible
query II rowsort label-4267
SELECT ALL + - 2 AS col0, - NULLIF ( + 21, 32 ) / + CAST ( + 62 AS INTEGER ) AS col0
----
-2
0

query II rowsort
SELECT 21, 36 AS col2
----
21
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT - COUNT( * ) + - + 52 * - 25 AS col0
----
1299

skipif mysql # not compatible
query I rowsort label-4269
SELECT - COUNT ( * ) + - + 52 * - 25 AS col0
----
1299

query I rowsort
SELECT + 10 * + 88 * CASE 36 WHEN + + ( + - 87 ) * - + 56 THEN NULL WHEN + + 64 THEN - + 76 + - AVG ( 86 ) ELSE NULL END * + 44 + - + 78 + - 63 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT - 81 + NULLIF ( - 87, ( - - MIN( + 1 ) ) / + 66 * - 58 + - COUNT( * ) ) + + 20 AS col1
----
-148

skipif mysql # not compatible
query I rowsort label-4271
SELECT - 81 + NULLIF ( - 87, ( - - MIN ( + 1 ) ) / + 66 * - 58 + - COUNT ( * ) ) + + 20 AS col1
----
-148

query I rowsort
SELECT ALL - 95 * + 67 AS col0
----
-6365

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT DISTINCT ( + COUNT( * ) ) * + 26 + + + 35 + 86 + + COUNT( * ) + + 9 + + 36 + - 15 AS col0
----
178

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT ( + COUNT ( * ) ) * + 26 + + + 35 + 86 + + COUNT ( * ) + + 9 + + 36 + - 15 AS col0
----
178

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT ALL - 65 * - 85 + 40 + + - COUNT( * ) AS col2
----
5564

skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL - 65 * - 85 + 40 + + - COUNT ( * ) AS col2
----
5564

onlyif mysql # aggregate syntax: 
query II rowsort label-4275
SELECT - 22 + + + COUNT( * ) AS col1, ( CASE - ( + 39 ) WHEN - - 71 + 44 THEN 54 END ) * + 73 AS col0
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-4275
SELECT - 22 + + + COUNT ( * ) AS col1, ( CASE - ( + 39 ) WHEN - - 71 + 44 THEN 54 END ) * + 73 AS col0
----
-21
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT COUNT( * ) * + ( + 20 ) * + ( - 41 ) + - + 46
----
-866

skipif mysql # not compatible
query I rowsort label-4276
SELECT COUNT ( * ) * + ( + 20 ) * + ( - 41 ) + - + 46
----
-866

query I rowsort
SELECT - 86 * - 28
----
2408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT + NULLIF ( - MAX( - 10 ), - CAST( NULL AS SIGNED ) * - - NULLIF ( 23, + MIN( 76 ) / + 84 / + 22 ) + 83 + 80 ) + - + 33 col2
----
-23

skipif mysql # not compatible
query I rowsort label-4278
SELECT + NULLIF ( - MAX ( - 10 ), - CAST ( NULL AS INTEGER ) * - - NULLIF ( 23, + MIN ( 76 ) / + 84 / + 22 ) + 83 + 80 ) + - + 33 col2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT MAX( - - 6 )
----
6

skipif mysql # not compatible
query I rowsort label-4279
SELECT MAX ( - - 6 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4280
SELECT ALL 2 * + - 4 AS col0, 36 DIV - 43 * - COUNT( + 68 )
----
-8
0

skipif mysql # not compatible
query II rowsort label-4280
SELECT ALL 2 * + - 4 AS col0, 36 / - 43 * - COUNT ( + 68 )
----
-8
0

query I rowsort
SELECT ALL 1 * + - 85
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT + COUNT( ALL 83 ) - + - NULLIF ( 13, - 77 ) + + 1
----
15

skipif mysql # not compatible
query I rowsort label-4282
SELECT + COUNT ( ALL 83 ) - + - NULLIF ( 13, - 77 ) + + 1
----
15

query I rowsort
SELECT + 84 - ( + ( + - 35 ) ) - 54
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT + NULLIF ( - - MIN( + - ( 47 ) ), - - 12 + - 8 + NULLIF ( 35, 63 * + 64 / - 39 + + 91 + - - ( CAST( - 22 AS SIGNED ) ) ) + - 54 * SUM( ALL + + 44 ) ) AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4284
SELECT + NULLIF ( - - MIN ( + - ( 47 ) ), - - 12 + - 8 + NULLIF ( 35, 63 * + 64 / - 39 + + 91 + - - ( CAST ( - 22 AS INTEGER ) ) ) + - 54 * SUM ( ALL + + 44 ) ) AS col2
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4285
SELECT + + 27 DIV - + 26 - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-4285
SELECT + + 27 / - + 26 - + COUNT ( * )
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT - 76 * + COUNT( * ) * + 51 * - - 72 + + 50 * 70 AS col1
----
-275572

skipif mysql # not compatible
query I rowsort label-4286
SELECT - 76 * + COUNT ( * ) * + 51 * - - 72 + + 50 * 70 AS col1
----
-275572

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4287
SELECT - CAST( NULL AS DECIMAL ) - + 13 - + + 32 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4287
SELECT - CAST ( NULL AS REAL ) - + 13 - + + 32 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4288
SELECT - 43 DIV + - 10
----
4

skipif mysql # not compatible
query I rowsort label-4288
SELECT - 43 / + - 10
----
4

query I rowsort
SELECT ALL + 80 + 19 * - 9
----
-91

query I rowsort
SELECT - 0 + + - 22 AS col1
----
-22

query I rowsort
SELECT + 8 * + 77 * + 14 + + 17 + + - 6 * - - 90
----
8101

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT + MAX( ALL - 80 ) - + - 64 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-4292
SELECT + MAX ( ALL - 80 ) - + - 64 AS col2
----
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4293
SELECT ALL + + 91 * - + COUNT( * ) + - 43 + + CASE + - 34 WHEN + COALESCE ( - ( + COUNT( * ) ), 77, + 68 ) THEN - + 9 + - 72 END * + + 8 AS col2, - 78 * - 22 + 30 - + + CAST( 1 AS SIGNED ) * - COUNT( * ) AS col1
----
NULL
1747

skipif mysql # not compatible
query II rowsort label-4293
SELECT ALL + + 91 * - + COUNT ( * ) + - 43 + + CASE + - 34 WHEN + COALESCE ( - ( + COUNT ( * ) ), 77, + 68 ) THEN - + 9 + - 72 END * + + 8 AS col2, - 78 * - 22 + 30 - + + CAST ( 1 AS INTEGER ) * - COUNT ( * ) AS col1
----
NULL
1747

onlyif mysql # aggregate syntax: 
query I rowsort label-4294
SELECT + COUNT( * ) * COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4294
SELECT + COUNT ( * ) * COUNT ( * ) AS col2
----
1

query I rowsort
SELECT + 92 + - + 56
----
36

query I rowsort
SELECT 99 * - 28 - + ( - 59 ) AS col1
----
-2713

query I rowsort
SELECT 20 * + 89 AS col0
----
1780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4298
SELECT 23 + COUNT( * ) + 3 + + + 99 + + CASE SUM( ALL + ( 53 ) ) WHEN - ( + 2 ) THEN + 52 END * - SUM( - + 45 ), + 54 DIV + 66 * MIN( + 99 ) AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4298
SELECT 23 + COUNT ( * ) + 3 + + + 99 + + CASE SUM ( ALL + ( 53 ) ) WHEN - ( + 2 ) THEN + 52 END * - SUM ( - + 45 ), + 54 / + 66 * MIN ( + 99 ) AS col1
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL - COUNT( ALL - 83 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL - COUNT ( ALL - 83 ) col0
----
-1

query II rowsort
SELECT 20 AS col2, + 89 * + + 57 - 29
----
20
5044

onlyif mysql # DIV for integer division: 
query I rowsort label-4301
SELECT ALL - 63 DIV 4
----
-15

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - 63 / 4
----
-15

query II rowsort
SELECT ALL - 74 col1, + 52 + 89
----
-74
141

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4303
SELECT 19 + - 55 * + 16 / - - COUNT( * ) + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT 19 + - 55 * + 16 / - - COUNT ( * ) + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4304
SELECT ALL - SUM( - 65 ) DIV + ( + - 7 ) AS col0
----
-9

skipif mysql # not compatible
query I rowsort label-4304
SELECT ALL - SUM ( - 65 ) / + ( + - 7 ) AS col0
----
-9

query I rowsort
SELECT DISTINCT - 46 * + 14 AS col1
----
-644

query II rowsort
SELECT ALL + ( - 20 ) * 79, + 33 AS col0
----
-1580
33

onlyif mysql # aggregate syntax: 
query II rowsort label-4307
SELECT DISTINCT - COUNT( * ) * - - 3 * SUM( - 62 ) AS col1, 66
----
186
66

skipif mysql # not compatible
query II rowsort label-4307
SELECT DISTINCT - COUNT ( * ) * - - 3 * SUM ( - 62 ) AS col1, 66
----
186
66

query I rowsort
SELECT + COALESCE ( - 62, - 49 * 63 * - + 95, 96 ) AS col1
----
-62

query I rowsort
SELECT 92 * 85 AS col1
----
7820

query I rowsort
SELECT + 38 - - + 96
----
134

onlyif mysql # aggregate syntax: 
query II rowsort label-4311
SELECT - 47 col0, SUM( + 41 ) + + 42
----
-47
83

skipif mysql # not compatible
query II rowsort label-4311
SELECT - 47 col0, SUM ( + 41 ) + + 42
----
-47
83

query I rowsort
SELECT ALL COALESCE ( 46, + - 53 ) * + + 77
----
3542

query I rowsort
SELECT - 4 + + 29
----
25

query I rowsort
SELECT 48 + + 29 + - 83 AS col1
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-4315
SELECT - 81 AS col0, COUNT( * ) - 63 * - COUNT( * ) * - + 49 - 48
----
-81
-3134

skipif mysql # not compatible
query II rowsort label-4315
SELECT - 81 AS col0, COUNT ( * ) - 63 * - COUNT ( * ) * - + 49 - 48
----
-81
-3134

query I rowsort
SELECT DISTINCT + 84 + - 57 AS col1
----
27

query I rowsort
SELECT ALL + 51 + + + 24 * - 62
----
-1437

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4318
SELECT - - COALESCE ( 16, - 8, 24 + + COUNT( * ) - + ( + 4 ) * - 92, - 63 DIV + 21 + 44 + - COUNT( * ) )
----
16

skipif mysql # not compatible
query I rowsort label-4318
SELECT - - COALESCE ( 16, - 8, 24 + + COUNT ( * ) - + ( + 4 ) * - 92, - 63 / + 21 + 44 + - COUNT ( * ) )
----
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT ( - ( + ( + COALESCE ( - SUM( - 98 ), + 64 * - 9 + - 89 + 89 + - 78 * - 4 * + 31 DIV - 17 + + - COUNT( + 26 ) * - COUNT( * ) * ( + - 16 ) ) ) ) ) AS col1
----
-98

skipif mysql # not compatible
query I rowsort label-4319
SELECT ( - ( + ( + COALESCE ( - SUM ( - 98 ), + 64 * - 9 + - 89 + 89 + - 78 * - 4 * + 31 / - 17 + + - COUNT ( + 26 ) * - COUNT ( * ) * ( + - 16 ) ) ) ) ) AS col1
----
-98

query I rowsort
SELECT 59 + + 20
----
79

query I rowsort
SELECT 18 + + - 12 * - 98 col1
----
1194

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT + COUNT( * ) + + - 91 + + 67 * + CASE + ( + - 17 ) WHEN + 18 THEN - - NULLIF ( 73, + 1 ) END / + 79 * + 91 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + COUNT ( * ) + + - 91 + + 67 * + CASE + ( + - 17 ) WHEN + 18 THEN - - NULLIF ( 73, + 1 ) END / + 79 * + 91 AS col2
----
NULL

query I rowsort
SELECT ALL 60 + 39
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL + 43 * + - COUNT( * ) * + MAX( ALL + 6 ) + - MIN( 63 ) + - 49
----
-370

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL + 43 * + - COUNT ( * ) * + MAX ( ALL + 6 ) + - MIN ( 63 ) + - 49
----
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT COUNT( * ) * - 63 * + 43
----
-2709

skipif mysql # not compatible
query I rowsort label-4325
SELECT COUNT ( * ) * - 63 * + 43
----
-2709

query II rowsort
SELECT - 62 * - 52 + - 76 * - 99 col2, + 4 AS col0
----
10748
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT DISTINCT - NULLIF ( - 43, + 78 * - 76 ) * + - 45 + COUNT( * ) AS col1
----
-1934

skipif mysql # not compatible
query I rowsort label-4327
SELECT DISTINCT - NULLIF ( - 43, + 78 * - 76 ) * + - 45 + COUNT ( * ) AS col1
----
-1934

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4328
SELECT DISTINCT COUNT( * ) DIV - 13 AS col2, 89 col0
----
0
89

skipif mysql # not compatible
query II rowsort label-4328
SELECT DISTINCT COUNT ( * ) / - 13 AS col2, 89 col0
----
0
89

query I rowsort
SELECT ALL - 49 * 5 + ( - 47 ) + + 2
----
-290

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT SUM( - 1 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-4330
SELECT SUM ( - 1 ) AS col0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4331
SELECT COALESCE ( + 20, COUNT( * ) ) + - 25 * COUNT( DISTINCT - 42 ) DIV + SUM( 31 )
----
20

skipif mysql # not compatible
query I rowsort label-4331
SELECT COALESCE ( + 20, COUNT ( * ) ) + - 25 * COUNT ( DISTINCT - 42 ) / + SUM ( 31 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT 55 + + 80 - - + CASE - 57 WHEN + COUNT( - - 71 ) THEN NULL WHEN - 69 THEN COUNT( * ) + + 22 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4332
SELECT 55 + + 80 - - + CASE - 57 WHEN + COUNT ( - - 71 ) THEN NULL WHEN - 69 THEN COUNT ( * ) + + 22 END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + MAX( + + ( 9 ) ) AS col1
----
9

skipif mysql # not compatible
query I rowsort label-4333
SELECT + MAX ( + + ( 9 ) ) AS col1
----
9

query I rowsort
SELECT 38 * - 95 AS col2
----
-3610

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT COUNT( * ) + + - 3 + + 18
----
16

skipif mysql # not compatible
query I rowsort label-4335
SELECT COUNT ( * ) + + - 3 + + 18
----
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4336
SELECT ALL - COUNT( + 19 ) AS col0, + CAST( NULL AS SIGNED ) + + ( + 47 )
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-4336
SELECT ALL - COUNT ( + 19 ) AS col0, + CAST ( NULL AS INTEGER ) + + ( + 47 )
----
-1
NULL

query I rowsort
SELECT 54 + - 15 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT DISTINCT - ( MIN( - + 16 ) )
----
16

skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - ( MIN ( - + 16 ) )
----
16

query I rowsort
SELECT 83 * 14 * - + CASE WHEN 29 IS NULL THEN NULL ELSE + 7 END AS col0
----
-8134

onlyif mysql # aggregate syntax: 
query II rowsort label-4340
SELECT - 22 + 30 * + ( + - ( + - ( - 81 ) ) ) * 25 AS col2, - ( CASE + + 90 WHEN - - 46 THEN COUNT( * ) * - - COUNT( 56 ) + 7 + - ( + + 56 ) ELSE NULL END ) * 40 * - 19 / + COUNT( * )
----
-60772
NULL

skipif mysql # not compatible
query II rowsort label-4340
SELECT - 22 + 30 * + ( + - ( + - ( - 81 ) ) ) * 25 AS col2, - ( CASE + + 90 WHEN - - 46 THEN COUNT ( * ) * - - COUNT ( 56 ) + 7 + - ( + + 56 ) ELSE NULL END ) * 40 * - 19 / + COUNT ( * )
----
-60772
NULL

query I rowsort
SELECT ALL ( + 42 )
----
42

query I rowsort
SELECT ALL + 16 + + 82 + 75
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-4343
SELECT - SUM( ALL + NULLIF ( 60, + 60 ) ) AS col2, + COALESCE ( - 66, - 97 ) * - - 74 + - NULLIF ( COUNT( * ), - 87 ) AS col0
----
NULL
-4885

skipif mysql # not compatible
query II rowsort label-4343
SELECT - SUM ( ALL + NULLIF ( 60, + 60 ) ) AS col2, + COALESCE ( - 66, - 97 ) * - - 74 + - NULLIF ( COUNT ( * ), - 87 ) AS col0
----
NULL
-4885

query I rowsort
SELECT + ( - 47 ) AS col2
----
-47

query I rowsort
SELECT ALL - 66 + + 13
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - - 86 * + 76 * COUNT( * ) * 60 AS col2
----
392160

skipif mysql # not compatible
query I rowsort label-4346
SELECT - - 86 * + 76 * COUNT ( * ) * 60 AS col2
----
392160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4347
SELECT - - ( CAST( NULL AS SIGNED ) ) - 69 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT - - ( CAST ( NULL AS INTEGER ) ) - 69 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + - 78 + 63 * - COUNT( * )
----
-141

skipif mysql # not compatible
query I rowsort label-4348
SELECT + - 78 + 63 * - COUNT ( * )
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT - 73 + + ( 72 ) DIV + 15
----
-69

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - 73 + + ( 72 ) / + 15
----
-69

query I rowsort
SELECT ALL 49 + - 20 + 26
----
55

query I rowsort
SELECT - - 34 - - + ( 13 ) AS col0
----
47

query II rowsort
SELECT 59 AS col0, 12 AS col0
----
59
12

onlyif mysql # DIV for integer division: 
query I rowsort label-4353
SELECT ALL + 91 DIV 93 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4353
SELECT ALL + 91 / 93 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4354
SELECT ALL - COALESCE ( - COUNT( * ), - 9 * 97 ) - 60
----
-59

skipif mysql # not compatible
query I rowsort label-4354
SELECT ALL - COALESCE ( - COUNT ( * ), - 9 * 97 ) - 60
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT - NULLIF ( + CASE + 80 WHEN + - ( COUNT( * ) ) + - 37 + - - 25 * 47 THEN - 89 + - 37 - + - 48 - COUNT( 73 ) * COUNT( * ) END, + + ( - - 42 ) / - - 46 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT - NULLIF ( + CASE + 80 WHEN + - ( COUNT ( * ) ) + - 37 + - - 25 * 47 THEN - 89 + - 37 - + - 48 - COUNT ( 73 ) * COUNT ( * ) END, + + ( - - 42 ) / - - 46 ) AS col0
----
NULL

query I rowsort
SELECT - 45 + + - 79 * - 90
----
7065

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4357
SELECT + ( SUM( 14 ) ) DIV 14 + - COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4357
SELECT + ( SUM ( 14 ) ) / 14 + - COUNT ( * ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4358
SELECT + 27 - COALESCE ( - 48, - CAST( 90 AS SIGNED ) * + 20, 23 * - 24, - CAST( - - 18 AS SIGNED ) ) + 53 AS col0, 42 * COUNT( DISTINCT - + 20 ) AS col0
----
128
42

skipif mysql # not compatible
query II rowsort label-4358
SELECT + 27 - COALESCE ( - 48, - CAST ( 90 AS INTEGER ) * + 20, 23 * - 24, - CAST ( - - 18 AS INTEGER ) ) + 53 AS col0, 42 * COUNT ( DISTINCT - + 20 ) AS col0
----
128
42

query I rowsort
SELECT ALL + 0 col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT + 15 * COUNT( * ) AS col0
----
15

skipif mysql # not compatible
query I rowsort label-4360
SELECT + 15 * COUNT ( * ) AS col0
----
15

query I rowsort
SELECT ALL + 64 * - 60
----
-3840

query I rowsort
SELECT + CASE 60 WHEN - - 57 THEN NULL WHEN + - 80 * + + 3 THEN 57 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT + 91 * + 79
----
7189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4364
SELECT ALL 79 DIV + COUNT( * ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL 79 / + COUNT ( * ) AS col1
----
79

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4365
SELECT ALL CAST( - 37 AS SIGNED ) DIV - 91 * + - CAST( - 91 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL CAST ( - 37 AS INTEGER ) / - 91 * + - CAST ( - 91 AS INTEGER )
----
0

query I rowsort
SELECT + 56 * + 21
----
1176

query I rowsort
SELECT + ( + ( + - 31 ) )
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT + CAST( + 13 AS SIGNED )
----
13

skipif mysql # not compatible
query I rowsort label-4368
SELECT + CAST ( + 13 AS INTEGER )
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT + COALESCE ( - 68, 0 ) + ( - + CAST( - + 78 AS SIGNED ) ) * + 2 AS col1
----
88

skipif mysql # not compatible
query I rowsort label-4369
SELECT + COALESCE ( - 68, 0 ) + ( - + CAST ( - + 78 AS INTEGER ) ) * + 2 AS col1
----
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4370
SELECT NULLIF ( - - CAST( + COUNT( * ) AS SIGNED ), + 21 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4370
SELECT NULLIF ( - - CAST ( + COUNT ( * ) AS INTEGER ), + 21 ) AS col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4371
SELECT ALL - COALESCE ( COALESCE ( + 73, 66 * - 48 + + ( + 78 ) * 0 - - 98 - + - 51 ), 2 - - - 79 * + COUNT( * ) ) * 73 * CAST( NULL AS SIGNED ) * 79 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4371
SELECT ALL - COALESCE ( COALESCE ( + 73, 66 * - 48 + + ( + 78 ) * 0 - - 98 - + - 51 ), 2 - - - 79 * + COUNT ( * ) ) * 73 * CAST ( NULL AS INTEGER ) * 79 AS col2
----
NULL

query I rowsort
SELECT - ( - + 85 )
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4373
SELECT COUNT( * ) * + - 0 - 56 DIV + 66 * - COUNT( 28 ) DIV + COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4373
SELECT COUNT ( * ) * + - 0 - 56 / + 66 * - COUNT ( 28 ) / + COUNT ( * ) AS col2
----
0

query I rowsort
SELECT DISTINCT 22 * 32 + 81 + + 19 * - 10 * - 34 * 53 AS col2
----
343165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4375
SELECT ALL COUNT( + ( - + 57 ) ) * + 80 + 36 AS col2, 51 - - 95 + - 3 * - - MIN( DISTINCT - ( - 65 ) ) * 57 * NULLIF ( COALESCE ( - 8, + ( - + 26 ) ), - 77 + + - COUNT( * ) + + 80 + - CASE + 9 WHEN + COUNT( DISTINCT + 90 ) * 76 + - 15 THEN + - 49 + 98 * + 42 WHEN + + 85 THEN - 27 + CAST( NULL AS SIGNED ) ELSE NULL END )
----
116
89066

skipif mysql # not compatible
query II rowsort label-4375
SELECT ALL COUNT ( + ( - + 57 ) ) * + 80 + 36 AS col2, 51 - - 95 + - 3 * - - MIN ( DISTINCT - ( - 65 ) ) * 57 * NULLIF ( COALESCE ( - 8, + ( - + 26 ) ), - 77 + + - COUNT ( * ) + + 80 + - CASE + 9 WHEN + COUNT ( DISTINCT + 90 ) * 76 + - 15 THEN + - 49 + 98 * + 42 WHEN + + 85 THEN - 27 + CAST ( NULL AS INTEGER ) ELSE NULL END )
----
116
89066

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - - 90 + - - 26 * + + COUNT( * ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-4376
SELECT - - 90 + - - 26 * + + COUNT ( * ) AS col1
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT - SUM( - 1 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-4377
SELECT - SUM ( - 1 ) col0
----
1

query I rowsort
SELECT + 66 + - 0
----
66

query I rowsort
SELECT - 36 - - - 88 AS col2
----
-124

query I rowsort
SELECT - 50 + + ( - - 79 ) * + 1
----
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4381
SELECT ALL + 43 + 60 DIV - 69 AS col2
----
43

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + 43 + 60 / - 69 AS col2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4382
SELECT - - CAST( NULL AS SIGNED ) * + 8 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4382
SELECT - - CAST ( NULL AS INTEGER ) * + 8 col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4383
SELECT ALL CAST( NULL AS SIGNED ), + 76 AS col0
----
NULL
76

skipif mysql # not compatible
query II rowsort label-4383
SELECT ALL CAST ( NULL AS INTEGER ), + 76 AS col0
----
NULL
76

query I rowsort
SELECT - + 63 + + 15 AS col0
----
-48

query I rowsort
SELECT ALL - - 72 * COALESCE ( - NULLIF ( 6, - 80 + + ( - 66 ) ), + + 37, 55 )
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-4386
SELECT DISTINCT - 41 - + COUNT( * ) + - COUNT( * ) + 4
----
-39

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - 41 - + COUNT ( * ) + - COUNT ( * ) + 4
----
-39

query I rowsort
SELECT ALL + 83 - - + 84 * + 53
----
4535

query I rowsort
SELECT - + 14 + - - 29 AS col1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT ALL - + 5 - - - COUNT( * ) * + + COUNT( * ) col2
----
-6

skipif mysql # not compatible
query I rowsort label-4389
SELECT ALL - + 5 - - - COUNT ( * ) * + + COUNT ( * ) col2
----
-6

query I rowsort
SELECT - 69 * - - 75 col0
----
-5175

query II rowsort
SELECT 45, 11 AS col2
----
45
11

query I rowsort
SELECT - 63 + - - 65 * 52 AS col0
----
3317

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4393
SELECT 17 AS col1, - 25 * ( - - 81 ) * + ( + 81 ) * CAST( + - COUNT( * ) AS SIGNED ) col1
----
17
164025

skipif mysql # not compatible
query II rowsort label-4393
SELECT 17 AS col1, - 25 * ( - - 81 ) * + ( + 81 ) * CAST ( + - COUNT ( * ) AS INTEGER ) col1
----
17
164025

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + COUNT( * ) + 75 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-4394
SELECT + COUNT ( * ) + 75 AS col0
----
76

query I rowsort
SELECT - 39 * 39 AS col0
----
-1521

query II rowsort
SELECT ALL - 5 - - 74 + - 49 * - 49 col0, 50 AS col2
----
2470
50

query I rowsort
SELECT ALL ( - 22 ) AS col0
----
-22

query I rowsort
SELECT DISTINCT ( 46 ) AS col2
----
46

query I rowsort
SELECT ALL 3 * - 92 col1
----
-276

query I rowsort
SELECT + 16 * + ( - + 92 ) + 51
----
-1421

onlyif mysql # DIV for integer division: 
query II rowsort label-4401
SELECT DISTINCT + 6, 36 DIV + 29 col0
----
6
1

skipif mysql # not compatible
query II rowsort label-4401
SELECT DISTINCT + 6, 36 / + 29 col0
----
6
1

query I rowsort
SELECT + ( - + ( - - 79 ) ) + - 4 AS col0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4403
SELECT CAST( 52 AS SIGNED ) AS col1
----
52

skipif mysql # not compatible
query I rowsort label-4403
SELECT CAST ( 52 AS INTEGER ) AS col1
----
52

query I rowsort
SELECT + 77 * + + 34 + - 89 * - - 18 AS col1
----
1016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4405
SELECT ALL COUNT( * ) + - + 70 DIV + - 90
----
1

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL COUNT ( * ) + - + 70 / + - 90
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT DISTINCT + 25 * + COUNT( * ) AS col0
----
25

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT + 25 * + COUNT ( * ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL - 80 + + COUNT( * )
----
-79

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - 80 + + COUNT ( * )
----
-79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4408
SELECT + - ( - - MAX( + CAST( NULL AS SIGNED ) ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4408
SELECT + - ( - - MAX ( + CAST ( NULL AS INTEGER ) ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT ALL 40 + - 13 + - 61 + + CAST( + 94 AS SIGNED )
----
60

skipif mysql # not compatible
query I rowsort label-4409
SELECT ALL 40 + - 13 + - 61 + + CAST ( + 94 AS INTEGER )
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - 84 * - 0 + - - COUNT( * ) * COALESCE ( - 22, + 56, - - COALESCE ( + 12, + COUNT( * ) ) )
----
-22

skipif mysql # not compatible
query I rowsort label-4410
SELECT - 84 * - 0 + - - COUNT ( * ) * COALESCE ( - 22, + 56, - - COALESCE ( + 12, + COUNT ( * ) ) )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + CASE COUNT( * ) WHEN - 74 + - 47 THEN - + 33 WHEN COUNT( * ) * + 3 / + 39 / - 10 THEN - 37 END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4411
SELECT + CASE COUNT ( * ) WHEN - 74 + - 47 THEN - + 33 WHEN COUNT ( * ) * + 3 / + 39 / - 10 THEN - 37 END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT + + ( + COUNT( * ) )
----
1

skipif mysql # not compatible
query I rowsort label-4412
SELECT + + ( + COUNT ( * ) )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4413
SELECT 26, MAX( DISTINCT - 93 ) * - + COUNT( * ) + - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) + 31 AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-4413
SELECT 26, MAX ( DISTINCT - 93 ) * - + COUNT ( * ) + - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) + 31 AS col1
----
26
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4414
SELECT 34 DIV + 28 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4414
SELECT 34 / + 28 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT + COUNT( * ) + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-4415
SELECT + COUNT ( * ) + COUNT ( * )
----
2

query II rowsort
SELECT 32 AS col2, 51 AS col0
----
32
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4417
SELECT ALL - COUNT( * ) AS col0, + 89 + NULLIF ( - ( 56 ), - 86 )
----
-1
33

skipif mysql # not compatible
query II rowsort label-4417
SELECT ALL - COUNT ( * ) AS col0, + 89 + NULLIF ( - ( 56 ), - 86 )
----
-1
33

query I rowsort
SELECT ( 21 ) + + - 90 + - COALESCE ( - 38, 70 ) AS col0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT + COUNT( * ) + 29 * - - 28 * + 37
----
30045

skipif mysql # not compatible
query I rowsort label-4419
SELECT + COUNT ( * ) + 29 * - - 28 * + 37
----
30045

query I rowsort
SELECT ALL + 73 - + 86 AS col1
----
-13

query I rowsort
SELECT DISTINCT + 14 * - ( + 53 ) AS col1
----
-742

query I rowsort
SELECT ALL - 3 * + ( - 5 ) * - + 51
----
-765

query II rowsort
SELECT ALL 45 AS col0, - ( + 68 )
----
45
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT ALL CAST( - 43 AS SIGNED ) - - MAX( - NULLIF ( - 16, 98 - - CAST( 16 AS SIGNED ) ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL CAST ( - 43 AS INTEGER ) - - MAX ( - NULLIF ( - 16, 98 - - CAST ( 16 AS INTEGER ) ) )
----
-27

query II rowsort
SELECT - - 95, 21 AS col0
----
95
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4426
SELECT COUNT( * ) * - ( + 98 ) DIV - + 30
----
3

skipif mysql # not compatible
query I rowsort label-4426
SELECT COUNT ( * ) * - ( + 98 ) / - + 30
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT 29 * + MAX( 96 )
----
2784

skipif mysql # not compatible
query I rowsort label-4427
SELECT 29 * + MAX ( 96 )
----
2784

onlyif mysql # aggregate syntax: 
query I rowsort label-4428
SELECT 64 + + COUNT( * ) + - 31 - - 50 + 33 * - 51 * 65 + - - 22 + + COUNT( * ) + 78 * - + 99 * + 67 AS col0
----
-626662

skipif mysql # not compatible
query I rowsort label-4428
SELECT 64 + + COUNT ( * ) + - 31 - - 50 + 33 * - 51 * 65 + - - 22 + + COUNT ( * ) + 78 * - + 99 * + 67 AS col0
----
-626662

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4429
SELECT DISTINCT 80 DIV ( COUNT( * ) ) col1, 67
----
80
67

skipif mysql # not compatible
query II rowsort label-4429
SELECT DISTINCT 80 / ( COUNT ( * ) ) col1, 67
----
80
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT 48 - - CAST( NULL AS SIGNED ) / + - 72
----
NULL

skipif mysql # not compatible
query I rowsort label-4430
SELECT 48 - - CAST ( NULL AS INTEGER ) / + - 72
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4431
SELECT DISTINCT 15 * 17 DIV + CAST( - SUM( DISTINCT + 68 ) AS SIGNED ) col2
----
-3

skipif mysql # not compatible
query I rowsort label-4431
SELECT DISTINCT 15 * 17 / + CAST ( - SUM ( DISTINCT + 68 ) AS INTEGER ) col2
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4432
SELECT ALL - 1 + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4432
SELECT ALL - 1 + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT 44 * + COUNT( * ) AS col2
----
44

skipif mysql # not compatible
query I rowsort label-4433
SELECT 44 * + COUNT ( * ) AS col2
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4434
SELECT - 49 * - 36 + - + NULLIF ( - CASE + 27 WHEN 14 THEN + 65 WHEN - COUNT( * ) + 17 THEN - 88 ELSE - - 90 END, + 61 ) DIV COALESCE ( - COUNT( * ), + 66, 88 )
----
1674

skipif mysql # not compatible
query I rowsort label-4434
SELECT - 49 * - 36 + - + NULLIF ( - CASE + 27 WHEN 14 THEN + 65 WHEN - COUNT ( * ) + 17 THEN - 88 ELSE - - 90 END, + 61 ) / COALESCE ( - COUNT ( * ), + 66, 88 )
----
1674

query I rowsort
SELECT 54 * - + 85
----
-4590

query I rowsort
SELECT DISTINCT + 29 + - 84
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL - NULLIF ( COUNT( * ), + ( 95 ) ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - NULLIF ( COUNT ( * ), + ( 95 ) ) col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT - 84 + ( + CASE - 94 WHEN - 75 THEN COUNT( DISTINCT - - 62 ) WHEN + 0 * 68 * 46 + 42 THEN NULL END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT - 84 + ( + CASE - 94 WHEN - 75 THEN COUNT ( DISTINCT - - 62 ) WHEN + 0 * 68 * 46 + 42 THEN NULL END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT DISTINCT + 29 + + COUNT( - 94 ) AS col1
----
30

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT + 29 + + COUNT ( - 94 ) AS col1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4440
SELECT 37 * - 87 * - 83 + - CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4440
SELECT 37 * - 87 * - 83 + - CAST ( NULL AS REAL ) AS col0
----
NULL

query I rowsort
SELECT ALL - CASE 65 WHEN 59 THEN + 36 + - 98 * - - 69 END col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4442
SELECT + 97 DIV CAST( - COUNT( * ) AS SIGNED ) + + 27
----
-70

skipif mysql # not compatible
query I rowsort label-4442
SELECT + 97 / CAST ( - COUNT ( * ) AS INTEGER ) + + 27
----
-70

query I rowsort
SELECT + + 46 col1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4444
SELECT COUNT( * ) + - SUM( + 15 ) AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-4444
SELECT COUNT ( * ) + - SUM ( + 15 ) AS col1
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-4445
SELECT ALL 74 - - 25 DIV + 90 AS col2
----
74

skipif mysql # not compatible
query I rowsort label-4445
SELECT ALL 74 - - 25 / + 90 AS col2
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4446
SELECT - 58 - - 21 DIV - 54 * + 13 AS col0
----
-58

skipif mysql # not compatible
query I rowsort label-4446
SELECT - 58 - - 21 / - 54 * + 13 AS col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT COALESCE ( 83, + COUNT( * ), - 45 + + + 12 * ( - + MIN( DISTINCT - 26 ) ) + - 56 ) * - ( 71 ) * - + COUNT( DISTINCT - 50 ) + - + 80
----
5813

skipif mysql # not compatible
query I rowsort label-4447
SELECT COALESCE ( 83, + COUNT ( * ), - 45 + + + 12 * ( - + MIN ( DISTINCT - 26 ) ) + - 56 ) * - ( 71 ) * - + COUNT ( DISTINCT - 50 ) + - + 80
----
5813

query II rowsort
SELECT DISTINCT + - 63 * ( - - 25 ) AS col0, + 45
----
-1575
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4449
SELECT ALL - - 0 * - - NULLIF ( + COALESCE ( - + COUNT( * ), + + 28 * + ( + CAST( NULL AS SIGNED ) ) + + 81 + - - 13 ), - CAST( NULL AS SIGNED ) * - ( - 96 ) + - 7 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL - - 0 * - - NULLIF ( + COALESCE ( - + COUNT ( * ), + + 28 * + ( + CAST ( NULL AS INTEGER ) ) + + 81 + - - 13 ), - CAST ( NULL AS INTEGER ) * - ( - 96 ) + - 7 ) AS col1
----
0

query I rowsort
SELECT 51 + - 46
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4451
SELECT + 7 DIV - 11 * - COALESCE ( + + 88, + + 32 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4451
SELECT + 7 / - 11 * - COALESCE ( + + 88, + + 32 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL COALESCE ( + 77, + + MIN( + - 38 ) * + 84 + - + 63 )
----
77

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL COALESCE ( + 77, + + MIN ( + - 38 ) * + 84 + - + 63 )
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4453
SELECT - + 86 * + 16 + - 9 / - + CAST( NULL AS SIGNED ) * + 93 * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4453
SELECT - + 86 * + 16 + - 9 / - + CAST ( NULL AS INTEGER ) * + 93 * 83 AS col0
----
NULL

query II rowsort
SELECT + 65 + - 92, + 92 AS col1
----
-27
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT 87 - - COUNT( * ) col1
----
88

skipif mysql # not compatible
query I rowsort label-4455
SELECT 87 - - COUNT ( * ) col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4456
SELECT ALL CASE 12 WHEN - CAST( NULL AS SIGNED ) + 75 THEN - 39 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL CASE 12 WHEN - CAST ( NULL AS INTEGER ) + 75 THEN - 39 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT ALL 28 * 64
----
1792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4458
SELECT - MIN( + CAST( NULL AS SIGNED ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0
----
NULL

query I rowsort
SELECT 58 + - 72 * + 49 + - CASE - + 63 WHEN - ( 31 ) * 89 THEN - 27 + - - 58 + - 20 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT ALL 74 * ( + 44 ) * SUM( ALL - - 11 )
----
35816

skipif mysql # not compatible
query I rowsort label-4460
SELECT ALL 74 * ( + 44 ) * SUM ( ALL - - 11 )
----
35816

query I rowsort
SELECT 64 * + - 21 AS col1
----
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL 92 + + 78 - - 55 + - 73 - + CAST( NULL AS SIGNED ) * - COUNT( * ) * + 9 * 67 * - CAST( - 81 AS SIGNED ) + + - 1 + - 7
----
NULL

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL 92 + + 78 - - 55 + - 73 - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) * + 9 * 67 * - CAST ( - 81 AS INTEGER ) + + - 1 + - 7
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4463
SELECT 99 AS col0, COUNT( * )
----
99
1

skipif mysql # not compatible
query II rowsort label-4463
SELECT 99 AS col0, COUNT ( * )
----
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4464
SELECT ALL 68 + + CAST( NULL AS SIGNED ) / 57 + - COUNT( * ) + - - 99 + 31 - - 3 + 78, - SUM( DISTINCT + - 91 ) AS col2
----
NULL
91

skipif mysql # not compatible
query II rowsort label-4464
SELECT ALL 68 + + CAST ( NULL AS INTEGER ) / 57 + - COUNT ( * ) + - - 99 + 31 - - 3 + 78, - SUM ( DISTINCT + - 91 ) AS col2
----
NULL
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4465
SELECT COALESCE ( - + 62, - COUNT( * ), + - 20 + - 66 ) + + COALESCE ( ( 57 ), + 37 + 93 - - 2 DIV + + NULLIF ( + COUNT( * ), MIN( DISTINCT - CASE - 85 WHEN - 85 + 25 THEN 30 WHEN - 6 THEN NULL END ) + - MAX( - 40 ) ) + + - 45 * + 28 * - - 91 - + + 99 ) col2
----
-5

skipif mysql # not compatible
query I rowsort label-4465
SELECT COALESCE ( - + 62, - COUNT ( * ), + - 20 + - 66 ) + + COALESCE ( ( 57 ), + 37 + 93 - - 2 / + + NULLIF ( + COUNT ( * ), MIN ( DISTINCT - CASE - 85 WHEN - 85 + 25 THEN 30 WHEN - 6 THEN NULL END ) + - MAX ( - 40 ) ) + + - 45 * + 28 * - - 91 - + + 99 ) col2
----
-5

query I rowsort
SELECT + 50 + - ( - 51 ) AS col2
----
101

query II rowsort
SELECT - 56 * 23 * + 33 AS col2, ( + 79 ) + + 66 + + 55 * + 84
----
-42504
4765

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT DISTINCT 62 + + 71 * - COALESCE ( - - 59, + 68 DIV + 62 + + 81 )
----
-4127

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT 62 + + 71 * - COALESCE ( - - 59, + 68 / + 62 + + 81 )
----
-4127

query I rowsort
SELECT ALL 91 + + 44 AS col1
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT MIN( ALL - 68 ) AS col1
----
-68

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT MIN ( ALL - 68 ) AS col1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT + 20 + - COUNT( * ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-4471
SELECT + 20 + - COUNT ( * ) AS col2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT DISTINCT 75 * + - COUNT( * ) + - 7 + - 17 + - + SUM( ALL + 14 ) AS col1
----
-113

skipif mysql # not compatible
query I rowsort label-4472
SELECT DISTINCT 75 * + - COUNT ( * ) + - 7 + - 17 + - + SUM ( ALL + 14 ) AS col1
----
-113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4473
SELECT + ( 15 ) * + + SUM( ALL + CAST( 31 AS SIGNED ) ) + + 43 + - - 78 col0
----
586

skipif mysql # not compatible
query I rowsort label-4473
SELECT + ( 15 ) * + + SUM ( ALL + CAST ( 31 AS INTEGER ) ) + + 43 + - - 78 col0
----
586

query I rowsort
SELECT ALL 61 * + + 64 col1
----
3904

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4475
SELECT DISTINCT + NULLIF ( - CASE + 82 WHEN 51 * + - 77 * - COUNT( * ) / + 34 THEN NULL WHEN CAST( COUNT( DISTINCT 14 ) AS SIGNED ) + COUNT( DISTINCT + + 66 ) + 47 THEN NULL WHEN - 39 THEN NULL WHEN - - 96 * + 17 THEN 87 + + 65 * - + 34 END, 91 - - SUM( + 17 ) ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4475
SELECT DISTINCT + NULLIF ( - CASE + 82 WHEN 51 * + - 77 * - COUNT ( * ) / + 34 THEN NULL WHEN CAST ( COUNT ( DISTINCT 14 ) AS INTEGER ) + COUNT ( DISTINCT + + 66 ) + 47 THEN NULL WHEN - 39 THEN NULL WHEN - - 96 * + 17 THEN 87 + + 65 * - + 34 END, 91 - - SUM ( + 17 ) ) col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT ALL - COUNT( * ) * - + 96 * + COUNT( * ) + + - 91 * - ( 39 )
----
3645

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL - COUNT ( * ) * - + 96 * + COUNT ( * ) + + - 91 * - ( 39 )
----
3645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4477
SELECT + 92 DIV - - 21 + ( - CAST( + - COUNT( * ) AS SIGNED ) )
----
5

skipif mysql # not compatible
query I rowsort label-4477
SELECT + 92 / - - 21 + ( - CAST ( + - COUNT ( * ) AS INTEGER ) )
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT ALL + 97 * - + 40 + + 45 + 54, NULLIF ( - + COUNT( * ), + + 12 ) AS col0
----
-3781
-1

skipif mysql # not compatible
query II rowsort label-4478
SELECT ALL + 97 * - + 40 + + 45 + 54, NULLIF ( - + COUNT ( * ), + + 12 ) AS col0
----
-3781
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4479
SELECT - 75 + + 57 * + - 39 * + MIN( ( - - ( CAST( NULL AS SIGNED ) ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4479
SELECT - 75 + + 57 * + - 39 * + MIN ( ( - - ( CAST ( NULL AS INTEGER ) ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT DISTINCT - + COUNT( * ) * - SUM( DISTINCT - 4 ) + + 35 - - - 22 AS col2
----
9

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - + COUNT ( * ) * - SUM ( DISTINCT - 4 ) + + 35 - - - 22 AS col2
----
9

query I rowsort
SELECT - + 97 * + + 34 + 97 + + - 46
----
-3247

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - - 66 * - MIN( + 63 ) - + - 15 * 81 * + 51 AS col2
----
57807

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - - 66 * - MIN ( + 63 ) - + - 15 * 81 * + 51 AS col2
----
57807

query II rowsort
SELECT - 50 AS col2, 78 * - - 97
----
-50
7566

onlyif mysql # aggregate syntax: 
query I rowsort label-4484
SELECT DISTINCT 11 * - - COUNT( * ) + + 40 + + - COUNT( * ) - + NULLIF ( 37, - 63 )
----
13

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT 11 * - - COUNT ( * ) + + 40 + + - COUNT ( * ) - + NULLIF ( 37, - 63 )
----
13

query I rowsort
SELECT - - 51 + 34 * + + 99
----
3417

query I rowsort
SELECT ALL - 11 * 42 * + 24 - + + 23 AS col0
----
-11111

query I rowsort
SELECT ALL + - ( - 4 )
----
4

query I rowsort
SELECT + - ( - 24 )
----
24

query I rowsort
SELECT ALL - 65 * - 57 AS col0
----
3705

query I rowsort
SELECT DISTINCT + - 48 AS col0
----
-48

query I rowsort
SELECT + - 63 col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT - + CAST( NULL AS SIGNED ) * - + 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT - + CAST ( NULL AS INTEGER ) * - + 95 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT ALL - - 98 * + CAST( + CAST( - 46 AS SIGNED ) AS SIGNED ) col2
----
-4508

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - - 98 * + CAST ( + CAST ( - 46 AS INTEGER ) AS INTEGER ) col2
----
-4508

query I rowsort
SELECT + 5 + - - 8
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL - COUNT( * ) * - + COUNT( * ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - COUNT ( * ) * - + COUNT ( * ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT + COUNT( * ) + - 12
----
-11

skipif mysql # not compatible
query I rowsort label-4496
SELECT + COUNT ( * ) + - 12
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4497
SELECT ALL + - CAST( + + 48 AS SIGNED ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL + - CAST ( + + 48 AS INTEGER ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT DISTINCT - - ( 69 ) * - 69 + - COUNT( * ) AS col2, 31
----
-4762
31

skipif mysql # not compatible
query II rowsort label-4498
SELECT DISTINCT - - ( 69 ) * - 69 + - COUNT ( * ) AS col2, 31
----
-4762
31

query I rowsort
SELECT - 62 * - 67 AS col2
----
4154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4500
SELECT + MIN( ALL 30 ) * - 76 * - 40 * - 63 * - 99 + + 37 DIV + 58
----
568814400

skipif mysql # not compatible
query I rowsort label-4500
SELECT + MIN ( ALL 30 ) * - 76 * - 40 * - 63 * - 99 + + 37 / + 58
----
568814400

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT ALL - 47 + + + ( - COUNT( * ) )
----
-48

skipif mysql # not compatible
query I rowsort label-4501
SELECT ALL - 47 + + + ( - COUNT ( * ) )
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-4502
SELECT - 57 - COUNT( * ) AS col0, 7
----
-58
7

skipif mysql # not compatible
query II rowsort label-4502
SELECT - 57 - COUNT ( * ) AS col0, 7
----
-58
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT - COALESCE ( SUM( 70 ), - - 93 ) col1
----
-70

skipif mysql # not compatible
query I rowsort label-4503
SELECT - COALESCE ( SUM ( 70 ), - - 93 ) col1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-4504
SELECT ALL 45 DIV - ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL 45 / - ( + 80 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT - 9 + + COUNT( DISTINCT + 46 ) AS col2
----
-8

skipif mysql # not compatible
query I rowsort label-4505
SELECT - 9 + + COUNT ( DISTINCT + 46 ) AS col2
----
-8

query I rowsort
SELECT + 32 + + 96
----
128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4507
SELECT DISTINCT - 29 + COUNT( * ) - - SUM( DISTINCT + - 64 ) * + + 50 + + 32 - + 32 DIV 55
----
-3196

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT - 29 + COUNT ( * ) - - SUM ( DISTINCT + - 64 ) * + + 50 + + 32 - + 32 / 55
----
-3196

query I rowsort
SELECT ALL 73 + - 35 * - - 37
----
-1222

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + 79 - COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-4509
SELECT + 79 - COUNT ( * )
----
78

query I rowsort
SELECT ALL 85 * + 1 * + - 51
----
-4335

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4511
SELECT ALL SUM( ALL - 14 ), 84 * + + 25 DIV - - COUNT( * ) AS col0
----
-14
2100

skipif mysql # not compatible
query II rowsort label-4511
SELECT ALL SUM ( ALL - 14 ), 84 * + + 25 / - - COUNT ( * ) AS col0
----
-14
2100

query I rowsort
SELECT + 17 * - 12
----
-204

onlyif mysql # DIV for integer division: 
query I rowsort label-4513
SELECT - - 21 * - - 1 DIV + + 72 - 68
----
-68

skipif mysql # not compatible
query I rowsort label-4513
SELECT - - 21 * - - 1 / + + 72 - 68
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT + - MAX( DISTINCT + 20 ) col1
----
-20

skipif mysql # not compatible
query I rowsort label-4514
SELECT + - MAX ( DISTINCT + 20 ) col1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT ALL - 16 DIV - ( + 74 ) col2
----
0

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL - 16 / - ( + 74 ) col2
----
0

query I rowsort
SELECT ( 32 ) AS col1
----
32

query I rowsort
SELECT ALL + ( + - 26 )
----
-26

query I rowsort
SELECT 19 * 97 + + - 58 * + 59 + + 20 * 44 AS col1
----
-699

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + - 61 DIV - - 13 + 2
----
-2

skipif mysql # not compatible
query I rowsort label-4519
SELECT + - 61 / - - 13 + 2
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT - 80 DIV + COALESCE ( 1, - + ( - - 31 ) * 10 + + 12 ) - + 20
----
-100

skipif mysql # not compatible
query I rowsort label-4520
SELECT - 80 / + COALESCE ( 1, - + ( - - 31 ) * 10 + + 12 ) - + 20
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT ALL - 75 * - + 16 - + 76 * - SUM( + - 80 ) AS col2
----
-4880

skipif mysql # not compatible
query I rowsort label-4521
SELECT ALL - 75 * - + 16 - + 76 * - SUM ( + - 80 ) AS col2
----
-4880

query I rowsort
SELECT + 33 + - - 40 - - 26 + - 91 * 55 AS col1
----
-4906

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4523
SELECT - - COALESCE ( ( - - 29 ), - 67, - - 75 * - - 40 / - COUNT( * ) * - - CAST( NULL AS DECIMAL ), + - ( - 64 ) ) * + CASE + 81 WHEN - 13 / COALESCE ( + ( COUNT( * ) ), - 35, - - AVG ( DISTINCT + 62 ) ) / 83 THEN - + MAX( DISTINCT 32 ) ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-4523
SELECT - - COALESCE ( ( - - 29 ), - 67, - - 75 * - - 40 / - COUNT ( * ) * - - CAST ( NULL AS REAL ), + - ( - 64 ) ) * + CASE + 81 WHEN - 13 / COALESCE ( + ( COUNT ( * ) ), - 35, - - AVG ( DISTINCT + 62 ) ) / 83 THEN - + MAX ( DISTINCT 32 ) ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL 12 * - MAX( ALL + - 64 ) + 45
----
813

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL 12 * - MAX ( ALL + - 64 ) + 45
----
813

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4525
SELECT - COALESCE ( 18, - 79 + + + CAST( NULL AS SIGNED ), - ( - 46 ) - - 95 ) * 75 + 49 AS col0
----
-1301

skipif mysql # not compatible
query I rowsort label-4525
SELECT - COALESCE ( 18, - 79 + + + CAST ( NULL AS INTEGER ), - ( - 46 ) - - 95 ) * 75 + 49 AS col0
----
-1301

query I rowsort
SELECT COALESCE ( 93, - 39 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT 88 * + COUNT( * ) + MIN( ALL 54 ) + COUNT( DISTINCT 37 ) * + 40 * 29 + ( + 60 )
----
1362

skipif mysql # not compatible
query I rowsort label-4527
SELECT 88 * + COUNT ( * ) + MIN ( ALL 54 ) + COUNT ( DISTINCT 37 ) * + 40 * 29 + ( + 60 )
----
1362

query I rowsort
SELECT 48 + - 83
----
-35

query I rowsort
SELECT 83 + + 13
----
96

query I rowsort
SELECT 57 * - 69 * - ( 10 )
----
39330

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4531
SELECT DISTINCT + 70 + - 93 + - CASE - 86 WHEN - 23 THEN - 49 * 91 * - 65 + + + CAST( 94 AS DECIMAL ) END AS col2, + COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-4531
SELECT DISTINCT + 70 + - 93 + - CASE - 86 WHEN - 23 THEN - 49 * 91 * - 65 + + + CAST ( 94 AS REAL ) END AS col2, + COUNT ( * )
----
NULL
1

query I rowsort
SELECT DISTINCT + 97 + + + 95
----
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4533
SELECT ALL MIN( DISTINCT + 41 ) + 40 DIV 25 AS col0
----
42

skipif mysql # not compatible
query I rowsort label-4533
SELECT ALL MIN ( DISTINCT + 41 ) + 40 / 25 AS col0
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT SUM( + - 3 ) + ( - 61 ) + + - 47 DIV 72 DIV + - 11
----
-64

skipif mysql # not compatible
query I rowsort label-4534
SELECT SUM ( + - 3 ) + ( - 61 ) + + - 47 / 72 / + - 11
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT 92 + + COUNT( * ) AS col0
----
93

skipif mysql # not compatible
query I rowsort label-4535
SELECT 92 + + COUNT ( * ) AS col0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4536
SELECT 54, 50 * - - CAST( NULL AS SIGNED ) - + + 88 AS col1
----
54
NULL

skipif mysql # not compatible
query II rowsort label-4536
SELECT 54, 50 * - - CAST ( NULL AS INTEGER ) - + + 88 AS col1
----
54
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4537
SELECT 72 DIV + 65 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4537
SELECT 72 / + 65 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT SUM( + CASE WHEN 39 IS NULL THEN + 22 * + - 33 + - + 93 / + 71 * - COALESCE ( ( 0 ), + + 81, + 34 ) * 41 + + 58 ELSE NULL END ) + 56 + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-4538
SELECT SUM ( + CASE WHEN 39 IS NULL THEN + 22 * + - 33 + - + 93 / + 71 * - COALESCE ( ( 0 ), + + 81, + 34 ) * 41 + + 58 ELSE NULL END ) + 56 + 90
----
NULL

query I rowsort
SELECT 82 * + 66 AS col0
----
5412

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT 17 * COUNT( * ) * + ( + - 36 ) AS col2
----
-612

skipif mysql # not compatible
query I rowsort label-4540
SELECT 17 * COUNT ( * ) * + ( + - 36 ) AS col2
----
-612

query I rowsort
SELECT 88 + - - 19 + - - NULLIF ( 79, + - 82 )
----
186

query I rowsort
SELECT - 62 + + 89 AS col0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4543
SELECT DISTINCT + CASE - MIN( DISTINCT 70 ) WHEN 99 THEN + 64 END AS col2, 36 AS col1
----
NULL
36

skipif mysql # not compatible
query II rowsort label-4543
SELECT DISTINCT + CASE - MIN ( DISTINCT 70 ) WHEN 99 THEN + 64 END AS col2, 36 AS col1
----
NULL
36

query I rowsort
SELECT DISTINCT 7 col2
----
7

query I rowsort
SELECT 77 + + 1 col0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4546
SELECT DISTINCT + 87 * - - 20 + + NULLIF ( + MAX( DISTINCT - 1 ), - 61 ) DIV - 15 AS col1
----
1740

skipif mysql # not compatible
query I rowsort label-4546
SELECT DISTINCT + 87 * - - 20 + + NULLIF ( + MAX ( DISTINCT - 1 ), - 61 ) / - 15 AS col1
----
1740

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT - MIN( - + 68 ) + + 66 + 90 * - - 3
----
404

skipif mysql # not compatible
query I rowsort label-4547
SELECT - MIN ( - + 68 ) + + 66 + 90 * - - 3
----
404

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL 21 * - - SUM( DISTINCT + - 40 ) * - 9 - + CASE SUM( ALL - CAST( NULL AS SIGNED ) ) WHEN 11 THEN NULL ELSE - 12 END
----
7572

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL 21 * - - SUM ( DISTINCT + - 40 ) * - 9 - + CASE SUM ( ALL - CAST ( NULL AS INTEGER ) ) WHEN 11 THEN NULL ELSE - 12 END
----
7572

onlyif mysql # aggregate syntax: 
query II rowsort label-4549
SELECT DISTINCT - - 25 AS col0, 38 + - 52 - - NULLIF ( - + SUM( - + 73 ), + 73 ) AS col0
----
25
NULL

skipif mysql # not compatible
query II rowsort label-4549
SELECT DISTINCT - - 25 AS col0, 38 + - 52 - - NULLIF ( - + SUM ( - + 73 ), + 73 ) AS col0
----
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4550
SELECT DISTINCT + 37 * - 27 + COUNT( * ) + - - 86 + - 86 * + COALESCE ( + 85, - + COUNT( - - 86 ) * + 35 + - ( 57 ) )
----
-8222

skipif mysql # not compatible
query I rowsort label-4550
SELECT DISTINCT + 37 * - 27 + COUNT ( * ) + - - 86 + - 86 * + COALESCE ( + 85, - + COUNT ( - - 86 ) * + 35 + - ( 57 ) )
----
-8222

onlyif mysql # aggregate syntax: 
query II rowsort label-4551
SELECT DISTINCT - + COUNT( * ) AS col1, + 30 * 11 AS col2
----
-1
330

skipif mysql # not compatible
query II rowsort label-4551
SELECT DISTINCT - + COUNT ( * ) AS col1, + 30 * 11 AS col2
----
-1
330

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT + + 59 * - - ( + 53 ) + 71 * - + COUNT( * ) * + CASE - - 60 WHEN + 51 * - - 10 THEN 73 END + COUNT( * ) + + + 9 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT + + 59 * - - ( + 53 ) + 71 * - + COUNT ( * ) * + CASE - - 60 WHEN + 51 * - - 10 THEN 73 END + COUNT ( * ) + + + 9 AS col2
----
NULL

query I rowsort
SELECT DISTINCT 66 + - 57 + 62 * - 58
----
-3587

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4554
SELECT DISTINCT - - NULLIF ( NULLIF ( + CAST( NULL AS SIGNED ), + - 60 + - 29 + AVG ( + 13 ) ), + 87 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT - - NULLIF ( NULLIF ( + CAST ( NULL AS INTEGER ), + - 60 + - 29 + AVG ( + 13 ) ), + 87 ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT ALL + 43 + - MAX( DISTINCT - 83 ) - - 72
----
198

skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + 43 + - MAX ( DISTINCT - 83 ) - - 72
----
198

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4556
SELECT 72 * - + CAST( COUNT( * ) AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-4556
SELECT 72 * - + CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-72

query I rowsort
SELECT DISTINCT - 10 + - 37 AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT 67 DIV + 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4558
SELECT 67 / + 57 AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4559
SELECT ALL 52 + + + COUNT( * ) * + 78 * + - CAST( AVG ( - - 37 ) AS SIGNED ) + - 54 + - NULLIF ( - - 75, + - MAX( + 11 ) - + 2 ) * 1 AS col2
----
-2963

skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL 52 + + + COUNT ( * ) * + 78 * + - CAST ( AVG ( - - 37 ) AS INTEGER ) + - 54 + - NULLIF ( - - 75, + - MAX ( + 11 ) - + 2 ) * 1 AS col2
----
-2963

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4560
SELECT ( - + ( ( - NULLIF ( ( 45 ), - CAST( NULL AS SIGNED ) * 56 * + 43 ) ) ) ) * 90 * - 37 AS col1, 98 AS col2, + 76 * - 76 col1
----
-149850
98
-5776

skipif mysql # not compatible
query III rowsort label-4560
SELECT ( - + ( ( - NULLIF ( ( 45 ), - CAST ( NULL AS INTEGER ) * 56 * + 43 ) ) ) ) * 90 * - 37 AS col1, 98 AS col2, + 76 * - 76 col1
----
-149850
98
-5776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4561
SELECT 74 * - 19 / - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT 74 * - 19 / - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT DISTINCT 69 * + 96 * - + 74
----
-490176

query II rowsort
SELECT 15 AS col1, - COALESCE ( - - 70, + 46 )
----
15
-70

query I rowsort
SELECT ALL + 10 * + - 48 col2
----
-480

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT 57 DIV 86
----
0

skipif mysql # not compatible
query I rowsort label-4565
SELECT 57 / 86
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4566
SELECT 93 DIV 67 * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-4566
SELECT 93 / 67 * - 3
----
-3

query II rowsort
SELECT 96 col1, 83
----
96
83

query I rowsort
SELECT 73 - 6
----
67

query I rowsort
SELECT ALL 9 * 95 AS col0
----
855

query II rowsort
SELECT 10, 7 + + 92 AS col2
----
10
99

query II rowsort
SELECT ALL 19 AS col1, - 8 * + 38 * - 53
----
19
16112

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT ALL + 84 - + + AVG ( ALL - 39 ) + + CAST( NULL AS SIGNED ) * 61 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL + 84 - + + AVG ( ALL - 39 ) + + CAST ( NULL AS INTEGER ) * 61 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT 73 + - 54 + CAST( NULL AS SIGNED ) * - 41 / - 82 * + 50 * - 52 + 34 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT 73 + - 54 + CAST ( NULL AS INTEGER ) * - 41 / - 82 * + 50 * - 52 + 34 col2
----
NULL

query II rowsort
SELECT 1, + 94 * 75 AS col2
----
1
7050

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT COUNT( * ) * 6 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-4575
SELECT COUNT ( * ) * 6 AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4576
SELECT 88 * - CASE - 57 WHEN COUNT( COALESCE ( + 93, - 4 * - 96 * + ( - - 46 ), - + 71 ) ) THEN + 95 WHEN + - 84 THEN + - 85 DIV + ( - CAST( NULL AS SIGNED ) ) + - + 88 * CASE - CAST( + 96 AS SIGNED ) WHEN - + 35 THEN NULL WHEN - 62 THEN - - MIN( 66 ) ELSE 20 DIV - SUM( 18 ) END + - + 78 WHEN + 85 + - - 21 THEN + 50 ELSE + + 86 + - 69 END
----
-1496

skipif mysql # not compatible
query I rowsort label-4576
SELECT 88 * - CASE - 57 WHEN COUNT ( COALESCE ( + 93, - 4 * - 96 * + ( - - 46 ), - + 71 ) ) THEN + 95 WHEN + - 84 THEN + - 85 / + ( - CAST ( NULL AS INTEGER ) ) + - + 88 * CASE - CAST ( + 96 AS INTEGER ) WHEN - + 35 THEN NULL WHEN - 62 THEN - - MIN ( 66 ) ELSE 20 / - SUM ( 18 ) END + - + 78 WHEN + 85 + - - 21 THEN + 50 ELSE + + 86 + - 69 END
----
-1496

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT + COUNT( * ) * 94 col0
----
94

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT + COUNT ( * ) * 94 col0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-4578
SELECT DISTINCT + 67 DIV 69 * - 84
----
0

skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT + 67 / 69 * - 84
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT - 99 DIV + + 50 + - - 49 DIV + 66
----
-1

skipif mysql # not compatible
query I rowsort label-4579
SELECT - 99 / + + 50 + - - 49 / + 66
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT ALL + + MAX( - 62 ) * 83 * 18 AS col1
----
-92628

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + + MAX ( - 62 ) * 83 * 18 AS col1
----
-92628

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT DISTINCT + CAST( 42 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT + CAST ( 42 AS INTEGER )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4582
SELECT DISTINCT - 16 * COUNT( * ) * CAST( + 93 AS SIGNED ) * + - CAST( - + 53 AS SIGNED ) + 17
----
-78847

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT - 16 * COUNT ( * ) * CAST ( + 93 AS INTEGER ) * + - CAST ( - + 53 AS INTEGER ) + 17
----
-78847

onlyif mysql # aggregate syntax: 
query I rowsort label-4583
SELECT - 26 + + - COUNT( * ) + - 79 AS col1
----
-106

skipif mysql # not compatible
query I rowsort label-4583
SELECT - 26 + + - COUNT ( * ) + - 79 AS col1
----
-106

query I rowsort
SELECT + 75 * + + 11 AS col2
----
825

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4585
SELECT 87 col0, + COUNT( * ) * - 83 * + NULLIF ( + COUNT( * ), + NULLIF ( - CASE - 73 WHEN + COUNT( * ) * - - 76 + CASE + - CASE - - 94 WHEN + ( - + 30 ) THEN NULL WHEN + 57 THEN NULL WHEN - 0 + - 4 THEN + + COUNT( * ) / COUNT( * ) WHEN + 61 * 50 / 9 + - NULLIF ( + 26, 59 ) + - + COUNT( * ) / + 94 THEN 46 / - 81 + + 11 ELSE 5 END WHEN + COUNT( * ) - 27 THEN 56 + - NULLIF ( CAST( - 39 AS SIGNED ), 35 ) WHEN + - COUNT( * ) * - 30 THEN + 84 END * 32 + 1 * AVG ( ALL 7 ) THEN NULL WHEN + 96 THEN NULL WHEN COUNT( * ) * COUNT( * ) THEN + 14 + 35 ELSE NULL END, 49 ) * 63 )
----
87
-83

skipif mysql # not compatible
query II rowsort label-4585
SELECT 87 col0, + COUNT ( * ) * - 83 * + NULLIF ( + COUNT ( * ), + NULLIF ( - CASE - 73 WHEN + COUNT ( * ) * - - 76 + CASE + - CASE - - 94 WHEN + ( - + 30 ) THEN NULL WHEN + 57 THEN NULL WHEN - 0 + - 4 THEN + + COUNT ( * ) / COUNT ( * ) WHEN + 61 * 50 / 9 + - NULLIF ( + 26, 59 ) + - + COUNT ( * ) / + 94 THEN 46 / - 81 + + 11 ELSE 5 END WHEN + COUNT ( * ) - 27 THEN 56 + - NULLIF ( CAST ( - 39 AS INTEGER ), 35 ) WHEN + - COUNT ( * ) * - 30 THEN + 84 END * 32 + 1 * AVG ( ALL 7 ) THEN NULL WHEN + 96 THEN NULL WHEN COUNT ( * ) * COUNT ( * ) THEN + 14 + 35 ELSE NULL END, 49 ) * 63 )
----
87
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT ALL - 33 DIV - - 69 * 38
----
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL - 33 / - - 69 * 38
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT + 2 DIV + 77 DIV 14 + + - 56 AS col1
----
-56

skipif mysql # not compatible
query I rowsort label-4587
SELECT + 2 / + 77 / 14 + + - 56 AS col1
----
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4588
SELECT ALL - 47 * + ( CAST( NULL AS SIGNED ) ) + 0 + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - 47 * + ( CAST ( NULL AS INTEGER ) ) + 0 + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4589
SELECT ALL + COUNT( * ) * + - ( + MAX( - 26 ) ) + - CAST( + 16 AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-4589
SELECT ALL + COUNT ( * ) * + - ( + MAX ( - 26 ) ) + - CAST ( + 16 AS INTEGER )
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4590
SELECT - - 83 * - - MIN( + 93 ) / + + 45 - - + COUNT( * ) - + - ( + 42 ) * 84 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT - - 83 * - - MIN ( + 93 ) / + + 45 - - + COUNT ( * ) - + - ( + 42 ) * 84 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4591
SELECT DISTINCT - 38 AS col0, + MAX( ALL - 39 ) col0
----
-38
-39

skipif mysql # not compatible
query II rowsort label-4591
SELECT DISTINCT - 38 AS col0, + MAX ( ALL - 39 ) col0
----
-38
-39

query II rowsort
SELECT ALL - - 98 col0, 96 * - 13
----
98
-1248

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4593
SELECT DISTINCT - 54 * - 83 DIV - NULLIF ( + COUNT( DISTINCT + 98 ), + 79 * + + 14 ) - + - 99 + ( - 75 ) AS col2
----
-4458

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT - 54 * - 83 / - NULLIF ( + COUNT ( DISTINCT + 98 ), + 79 * + + 14 ) - + - 99 + ( - 75 ) AS col2
----
-4458

query I rowsort
SELECT - 51 * + 35 + + - 5
----
-1790

query I rowsort
SELECT ALL + ( - + 6 ) * 80 + 94 AS col2
----
-386

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + CASE - COUNT( * ) WHEN 70 THEN - + 28 / - + 47 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4596
SELECT + CASE - COUNT ( * ) WHEN 70 THEN - + 28 / - + 47 ELSE NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT - 91 * - ( + ( 78 ) ) + - + 17 + 69 + + - 83 * + - COUNT( * )
----
7233

skipif mysql # not compatible
query I rowsort label-4597
SELECT - 91 * - ( + ( 78 ) ) + - + 17 + 69 + + - 83 * + - COUNT ( * )
----
7233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT + CAST( 73 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-4598
SELECT + CAST ( 73 AS INTEGER )
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT + 98 * - MIN( - ( - 86 ) ) - + 32 + 77
----
-8383

skipif mysql # not compatible
query I rowsort label-4599
SELECT + 98 * - MIN ( - ( - 86 ) ) - + 32 + 77
----
-8383

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT MIN( ALL - 82 )
----
-82

skipif mysql # not compatible
query I rowsort label-4600
SELECT MIN ( ALL - 82 )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT MIN( ALL 13 )
----
13

skipif mysql # not compatible
query I rowsort label-4601
SELECT MIN ( ALL 13 )
----
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4602
SELECT ALL COALESCE ( COUNT( * ), - 82 DIV - 18 + + ( + 11 ) * + 17 ) * + COALESCE ( + CAST( NULL AS SIGNED ), 0, - 37 * 54 * MIN( ALL + 19 ) + - 95 + + 3 * + 50 - COUNT( * ) + - 29 + + - 19 + 46 ) - - 55 * 13 + + - 96 - + 30 - - CASE + + 3 WHEN 8 THEN NULL ELSE 55 END
----
644

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL COALESCE ( COUNT ( * ), - 82 / - 18 + + ( + 11 ) * + 17 ) * + COALESCE ( + CAST ( NULL AS INTEGER ), 0, - 37 * 54 * MIN ( ALL + 19 ) + - 95 + + 3 * + 50 - COUNT ( * ) + - 29 + + - 19 + 46 ) - - 55 * 13 + + - 96 - + 30 - - CASE + + 3 WHEN 8 THEN NULL ELSE 55 END
----
644

query I rowsort
SELECT 15 * 85 + + ( - 71 ) AS col2
----
1204

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT ALL - COUNT( * ) * COUNT( * ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL - COUNT ( * ) * COUNT ( * ) AS col2
----
-1

query I rowsort
SELECT ALL 62 - - 63
----
125

onlyif mysql # DIV for integer division: 
query I rowsort label-4606
SELECT + 68 DIV - 27 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-4606
SELECT + 68 / - 27 AS col1
----
-2

query I rowsort
SELECT + COALESCE ( 85, - 24 ) * 62
----
5270

query I rowsort
SELECT ALL 14 * - 67 col1
----
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT - 26 + COUNT( * ) * + - 17 + - COALESCE ( + 65, + + ( - + 92 ) )
----
-108

skipif mysql # not compatible
query I rowsort label-4609
SELECT - 26 + COUNT ( * ) * + - 17 + - COALESCE ( + 65, + + ( - + 92 ) )
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT + 38 * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4610
SELECT + 38 * - COUNT ( * )
----
-38

onlyif mysql # DIV for integer division: 
query II rowsort label-4611
SELECT - 2 + + 21 AS col1, + 53 DIV + - 1 + 12
----
19
-41

skipif mysql # not compatible
query II rowsort label-4611
SELECT - 2 + + 21 AS col1, + 53 / + - 1 + 12
----
19
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4612
SELECT + CAST( NULL AS SIGNED ) * - - 7 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4612
SELECT + CAST ( NULL AS INTEGER ) * - - 7 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL COUNT( * ) * - NULLIF ( 75, + 5 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL COUNT ( * ) * - NULLIF ( 75, + 5 ) AS col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT DISTINCT SUM( 19 ) * - 36 + - - 28
----
-656

skipif mysql # not compatible
query I rowsort label-4614
SELECT DISTINCT SUM ( 19 ) * - 36 + - - 28
----
-656

onlyif mysql # aggregate syntax: 
query II rowsort label-4615
SELECT - - 92 * COUNT( * ) AS col0, 63 AS col0
----
92
63

skipif mysql # not compatible
query II rowsort label-4615
SELECT - - 92 * COUNT ( * ) AS col0, 63 AS col0
----
92
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT - 87 + COUNT( * )
----
-86

skipif mysql # not compatible
query I rowsort label-4616
SELECT DISTINCT - 87 + COUNT ( * )
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL NULLIF ( + MIN( - 20 ), 60 )
----
-20

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL NULLIF ( + MIN ( - 20 ), 60 )
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-4618
SELECT - ( + + COUNT( * ) ) AS col2, 22
----
-1
22

skipif mysql # not compatible
query II rowsort label-4618
SELECT - ( + + COUNT ( * ) ) AS col2, 22
----
-1
22

query I rowsort
SELECT + 72 + 83 AS col2
----
155

query I rowsort
SELECT DISTINCT - + 89 + 73 AS col1
----
-16

query I rowsort
SELECT DISTINCT + 46 + - 8
----
38

query I rowsort
SELECT ALL - 88 * + + 65
----
-5720

query II rowsort
SELECT - + 65 + 5 AS col1, + 89
----
-60
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4624
SELECT DISTINCT ( + CAST( 10 AS SIGNED ) ) col0
----
10

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT ( + CAST ( 10 AS INTEGER ) ) col0
----
10

query I rowsort
SELECT - - 91 + 88 AS col0
----
179

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT + 43 DIV 60 + 78
----
78

skipif mysql # not compatible
query I rowsort label-4626
SELECT + 43 / 60 + 78
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4627
SELECT ALL + - ( - - COUNT( * ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4627
SELECT ALL + - ( - - COUNT ( * ) ) AS col1
----
-1

query I rowsort
SELECT DISTINCT 9 * - 48 - - 6
----
-426

query I rowsort
SELECT + - 94 col2
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-4630
SELECT DISTINCT - 38 DIV - - 56 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - 38 / - - 56 AS col1
----
0

query I rowsort
SELECT ALL 44 * + 46 * + 54 - + - 53
----
109349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4632
SELECT - COUNT( + + COALESCE ( - + ( + - 17 ), - COALESCE ( 73, + 75, 97 ) + + - 18 ) ) * - COALESCE ( - 90, + + 45 + + NULLIF ( - CAST( + 29 AS SIGNED ), + ( - 37 ) * - 77 - - + COALESCE ( + 46, - 50 * - 39, - 83 * + + 15 DIV 29 * + 8 DIV CASE - - NULLIF ( - COALESCE ( + COUNT( * ), 33, + - CAST( NULL AS SIGNED ) ), - 81 + - - 88 ) WHEN + 93 THEN - 75 + + ( - 26 ) WHEN ( + COUNT( * ) ) * - 23 THEN NULL ELSE NULL END ) + - 66 + - + 4 ) - 45 ) + + COUNT( * ) DIV - 71 AS col0
----
-90

skipif mysql # not compatible
query I rowsort label-4632
SELECT - COUNT ( + + COALESCE ( - + ( + - 17 ), - COALESCE ( 73, + 75, 97 ) + + - 18 ) ) * - COALESCE ( - 90, + + 45 + + NULLIF ( - CAST ( + 29 AS INTEGER ), + ( - 37 ) * - 77 - - + COALESCE ( + 46, - 50 * - 39, - 83 * + + 15 / 29 * + 8 / CASE - - NULLIF ( - COALESCE ( + COUNT ( * ), 33, + - CAST ( NULL AS INTEGER ) ), - 81 + - - 88 ) WHEN + 93 THEN - 75 + + ( - 26 ) WHEN ( + COUNT ( * ) ) * - 23 THEN NULL ELSE NULL END ) + - 66 + - + 4 ) - 45 ) + + COUNT ( * ) / - 71 AS col0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT ALL - 56 DIV - 55 col2
----
1

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL - 56 / - 55 col2
----
1

query I rowsort
SELECT ALL + COALESCE ( 75, - 22 + - COALESCE ( + ( + 8 ), 8 ) ) AS col1
----
75

query I rowsort
SELECT DISTINCT + ( 67 ) AS col1
----
67

query I rowsort
SELECT - 44 - + 18
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT + COUNT( + - 40 )
----
1

skipif mysql # not compatible
query I rowsort label-4637
SELECT + COUNT ( + - 40 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT CASE - NULLIF ( + COUNT( * ), COUNT( * ) * 85 / 93 ) WHEN - - 41 + + 11 THEN + 20 * - 36 + + COUNT( * ) * + 95 * + + CASE WHEN NOT 52 IS NULL THEN NULL ELSE + COUNT( * ) + - COUNT( * ) END * + 47 * + 34 - - 71 WHEN 79 THEN - + 22 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4638
SELECT CASE - NULLIF ( + COUNT ( * ), COUNT ( * ) * 85 / 93 ) WHEN - - 41 + + 11 THEN + 20 * - 36 + + COUNT ( * ) * + 95 * + + CASE WHEN NOT 52 IS NULL THEN NULL ELSE + COUNT ( * ) + - COUNT ( * ) END * + 47 * + 34 - - 71 WHEN 79 THEN - + 22 END
----
NULL

query I rowsort
SELECT + 97 * - 17
----
-1649

query I rowsort
SELECT DISTINCT + ( + 40 ) AS col0
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4641
SELECT DISTINCT + 66 AS col1, COUNT( * ) + - 49 AS col2
----
66
-48

skipif mysql # not compatible
query II rowsort label-4641
SELECT DISTINCT + 66 AS col1, COUNT ( * ) + - 49 AS col2
----
66
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4642
SELECT ALL CAST( - - 63 AS SIGNED ) AS col2
----
63

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL CAST ( - - 63 AS INTEGER ) AS col2
----
63

query I rowsort
SELECT + 90 - + 78
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL + COALESCE ( - COUNT( * ), - COUNT( * ) * + + 80 ) * - NULLIF ( - COUNT( ALL - 80 ), + 57 ) * + - CAST( NULL AS SIGNED ) / 24 * 35 + + COALESCE ( 57, - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + COALESCE ( - COUNT ( * ), - COUNT ( * ) * + + 80 ) * - NULLIF ( - COUNT ( ALL - 80 ), + 57 ) * + - CAST ( NULL AS INTEGER ) / 24 * 35 + + COALESCE ( 57, - 75 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT MAX( - - 0 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4645
SELECT MAX ( - - 0 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4646
SELECT + 84 * CAST( + - 41 AS SIGNED ) AS col1, + SUM( CAST( 13 AS SIGNED ) ) * + 34 * + 70 AS col2
----
-3444
30940

skipif mysql # not compatible
query II rowsort label-4646
SELECT + 84 * CAST ( + - 41 AS INTEGER ) AS col1, + SUM ( CAST ( 13 AS INTEGER ) ) * + 34 * + 70 AS col2
----
-3444
30940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4647
SELECT - CAST( 83 AS SIGNED ) AS col0
----
-83

skipif mysql # not compatible
query I rowsort label-4647
SELECT - CAST ( 83 AS INTEGER ) AS col0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-4648
SELECT DISTINCT - 99 DIV 25 DIV + 94 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT - 99 / 25 / + 94 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ALL 73 + + COUNT( * ) + 14 * 32 + 29
----
551

skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL 73 + + COUNT ( * ) + 14 * 32 + 29
----
551

query I rowsort
SELECT + 61 + + 6 + - 76
----
-9

query I rowsort
SELECT - 31 - + 33
----
-64

query II rowsort
SELECT 47, - 29 * + 72 AS col2
----
47
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT - - COUNT( ALL + + 58 ) + 55
----
56

skipif mysql # not compatible
query I rowsort label-4653
SELECT - - COUNT ( ALL + + 58 ) + 55
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT DISTINCT 58 + + + 22 + + CAST( NULL AS SIGNED ) * - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT DISTINCT 58 + + + 22 + + CAST ( NULL AS INTEGER ) * - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT CASE - COUNT( * ) WHEN - 65 * + + COUNT( + 97 ) + 48 + + + 5 + - 77 + + 16 / - 17 / + - COUNT( * ) THEN NULL ELSE + COUNT( * ) END AS col2
----
1

skipif mysql # not compatible
query I rowsort label-4655
SELECT CASE - COUNT ( * ) WHEN - 65 * + + COUNT ( + 97 ) + 48 + + + 5 + - 77 + + 16 / - 17 / + - COUNT ( * ) THEN NULL ELSE + COUNT ( * ) END AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT + + 20 * + COUNT( * )
----
20

skipif mysql # not compatible
query I rowsort label-4656
SELECT + + 20 * + COUNT ( * )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT 76 + ( COUNT( ALL - 47 ) ) AS col2
----
77

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT 76 + ( COUNT ( ALL - 47 ) ) AS col2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4658
SELECT ALL + CAST( NULL AS SIGNED ), 99 AS col0
----
NULL
99

skipif mysql # not compatible
query II rowsort label-4658
SELECT ALL + CAST ( NULL AS INTEGER ), 99 AS col0
----
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4659
SELECT DISTINCT COUNT( * ) col1, + 24 * - MIN( 74 )
----
1
-1776

skipif mysql # not compatible
query II rowsort label-4659
SELECT DISTINCT COUNT ( * ) col1, + 24 * - MIN ( 74 )
----
1
-1776

query I rowsort
SELECT - ( + 3 ) AS col0
----
-3

query II rowsort
SELECT 3, - 16 col2
----
3
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT - 22, COUNT( * ) * + COUNT( * ) col1
----
-22
1

skipif mysql # not compatible
query II rowsort label-4662
SELECT - 22, COUNT ( * ) * + COUNT ( * ) col1
----
-22
1

query I rowsort
SELECT DISTINCT + + 7 - - - 40
----
-33

query I rowsort
SELECT - COALESCE ( 9, COALESCE ( - - 18, + 18 * - 49 * - 15 * 36 ) ) AS col0
----
-9

query I rowsort
SELECT ALL - 99 - + - ( + 91 ) AS col0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT DISTINCT - 42 * + 5 * - - COUNT( * ) AS col2
----
-210

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - 42 * + 5 * - - COUNT ( * ) AS col2
----
-210

query I rowsort
SELECT DISTINCT 51 * - 12 * + 61 AS col0
----
-37332

query I rowsort
SELECT 76 * + + 43
----
3268

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT - CASE + 77 WHEN - + 39 + 48 * - ( - - 15 ) THEN NULL WHEN + - COUNT( * ) THEN - + ( - - COALESCE ( - + 41, - - 59 + 24 ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT - CASE + 77 WHEN - + 39 + 48 * - ( - - 15 ) THEN NULL WHEN + - COUNT ( * ) THEN - + ( - - COALESCE ( - + 41, - - 59 + 24 ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT CASE + MAX( DISTINCT + + 46 ) WHEN - 25 + - + 62 * 71 * + + 28 * 56 * + COUNT( * ) + - COUNT( * ) * MIN( + ( + + 93 ) ) THEN 0 END * - 33 - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4670
SELECT CASE + MAX ( DISTINCT + + 46 ) WHEN - 25 + - + 62 * 71 * + + 28 * 56 * + COUNT ( * ) + - COUNT ( * ) * MIN ( + ( + + 93 ) ) THEN 0 END * - 33 - 23 AS col2
----
NULL

query I rowsort
SELECT 2 * + 78 AS col2
----
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4672
SELECT + COUNT( * ) * + + 3 + + ( ( + 86 ) ) + 39 DIV 66 AS col0, + 95 + - 47
----
89
48

skipif mysql # not compatible
query II rowsort label-4672
SELECT + COUNT ( * ) * + + 3 + + ( ( + 86 ) ) + 39 / 66 AS col0, + 95 + - 47
----
89
48

query I rowsort
SELECT 89 * - 37 - + 90
----
-3383

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4674
SELECT 92 + + 52 * - 39 * - ( + + CAST( + - AVG ( - 39 ) AS SIGNED ) )
----
79184

skipif mysql # not compatible
query I rowsort label-4674
SELECT 92 + + 52 * - 39 * - ( + + CAST ( + - AVG ( - 39 ) AS INTEGER ) )
----
79184

onlyif mysql # DIV for integer division: 
query I rowsort label-4675
SELECT ALL + 89 DIV + - 28 AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL + 89 / + - 28 AS col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT DISTINCT + 17 DIV + - 29 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-4676
SELECT DISTINCT + 17 / + - 29 AS col0
----
0

query I rowsort
SELECT DISTINCT + 80 * 33
----
2640

query I rowsort
SELECT ALL 2 * 5
----
10

query I rowsort
SELECT ALL ( + 5 ) + - - 81 + 48 + - 86 * 80 AS col1
----
-6746

query I rowsort
SELECT - 94 * + 33 + - ( - 60 ) + - 14 - + 52 + - - CASE - + 89 WHEN 34 * - 9 + + 7 + - - 50 * 21 THEN NULL WHEN ( - 64 ) THEN - - 6 ELSE - - 12 END
----
-3096

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL - ( ( - - MAX( - 22 ) ) )
----
22

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL - ( ( - - MAX ( - 22 ) ) )
----
22

query I rowsort
SELECT 27 + - 38 col0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT DISTINCT - CAST( - - 59 AS SIGNED ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-4683
SELECT DISTINCT - CAST ( - - 59 AS INTEGER ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT ALL 76 + - 87 + - - 41 * + MAX( ALL - 66 )
----
-2717

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL 76 + - 87 + - - 41 * + MAX ( ALL - 66 )
----
-2717

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4685
SELECT 67 DIV CAST( - + 39 AS SIGNED )
----
-1

skipif mysql # not compatible
query I rowsort label-4685
SELECT 67 / CAST ( - + 39 AS INTEGER )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT ALL + - COUNT( * ) + 58 - - 56 + - + NULLIF ( + 58, 66 ) * + + 29 + COUNT( * ) * + - COALESCE ( - CAST( - MAX( ALL - 33 ) AS SIGNED ), 7, + 85 + - 92 ) - + 75 * - 79 AS col2
----
4389

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL + - COUNT ( * ) + 58 - - 56 + - + NULLIF ( + 58, 66 ) * + + 29 + COUNT ( * ) * + - COALESCE ( - CAST ( - MAX ( ALL - 33 ) AS INTEGER ), 7, + 85 + - 92 ) - + 75 * - 79 AS col2
----
4389

onlyif mysql # aggregate syntax: 
query II rowsort label-4687
SELECT DISTINCT - - 43 + 97 AS col0, NULLIF ( + - 7, 26 ) * - + 20 - - COUNT( * ) + - 16 * + - 76 + + - 29 AS col2
----
140
1328

skipif mysql # not compatible
query II rowsort label-4687
SELECT DISTINCT - - 43 + 97 AS col0, NULLIF ( + - 7, 26 ) * - + 20 - - COUNT ( * ) + - 16 * + - 76 + + - 29 AS col2
----
140
1328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4688
SELECT DISTINCT + COALESCE ( 0, - 51, + 74, + CAST( NULL AS SIGNED ) * + - 24 * + + 72 ) + - - 91
----
91

skipif mysql # not compatible
query I rowsort label-4688
SELECT DISTINCT + COALESCE ( 0, - 51, + 74, + CAST ( NULL AS INTEGER ) * + - 24 * + + 72 ) + - - 91
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT ALL COUNT( ALL + 55 ) * - 1
----
-1

skipif mysql # not compatible
query I rowsort label-4689
SELECT ALL COUNT ( ALL + 55 ) * - 1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT COUNT( * ) + + 74 * + 99 AS col0
----
7327

skipif mysql # not compatible
query I rowsort label-4690
SELECT COUNT ( * ) + + 74 * + 99 AS col0
----
7327

query I rowsort
SELECT - 61 - 7
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4692
SELECT + 70 + - + CAST( + 95 AS SIGNED ) AS col0
----
-25

skipif mysql # not compatible
query I rowsort label-4692
SELECT + 70 + - + CAST ( + 95 AS INTEGER ) AS col0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL - 44 * - COUNT( * ) * 86
----
3784

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - 44 * - COUNT ( * ) * 86
----
3784

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + 84 * - COUNT( + 0 ) - SUM( - 27 ) - + + 46 - 69 + + 4
----
-168

skipif mysql # not compatible
query I rowsort label-4694
SELECT + 84 * - COUNT ( + 0 ) - SUM ( - 27 ) - + + 46 - 69 + + 4
----
-168

query I rowsort
SELECT ALL + ( 56 )
----
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4696
SELECT CASE - - NULLIF ( - - CAST( NULL AS SIGNED ), ( - 0 ) * CAST( NULL AS SIGNED ) / + COUNT( * ) + - ( + ( + + AVG ( DISTINCT + - 77 ) ) ) ) WHEN 42 / 47 THEN NULL WHEN COUNT( * ) + + + 22 THEN + 43 END / CAST( NULL AS SIGNED ) + - 33 + - MIN( DISTINCT + 44 ) * + ( - 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT CASE - - NULLIF ( - - CAST ( NULL AS INTEGER ), ( - 0 ) * CAST ( NULL AS INTEGER ) / + COUNT ( * ) + - ( + ( + + AVG ( DISTINCT + - 77 ) ) ) ) WHEN 42 / 47 THEN NULL WHEN COUNT ( * ) + + + 22 THEN + 43 END / CAST ( NULL AS INTEGER ) + - 33 + - MIN ( DISTINCT + 44 ) * + ( - 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT MIN( DISTINCT + + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-4697
SELECT MIN ( DISTINCT + + 61 )
----
61

query II rowsort
SELECT + 0 AS col0, 1
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4699
SELECT 8 + - 27 + - - COUNT( * ) DIV - 4
----
-19

skipif mysql # not compatible
query I rowsort label-4699
SELECT 8 + - 27 + - - COUNT ( * ) / - 4
----
-19

query I rowsort
SELECT 11 * - 1
----
-11

query I rowsort
SELECT CASE - 22 WHEN + + AVG ( + NULLIF ( - 50, + + 10 * 89 * + 80 + - 78 ) ) THEN 66 * - 28 + + 23 END * - 75
----
NULL

query I rowsort
SELECT 18 + + + 77
----
95

query I rowsort
SELECT ALL + 21 * + 57 col2
----
1197

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4704
SELECT ALL 3 + + 19 DIV - + COALESCE ( ( + 49 ), + NULLIF ( 61, - 3 ) + - CAST( MAX( DISTINCT - 96 ) AS SIGNED ) + + 28 * 89 * - - CAST( NULL AS SIGNED ) + 19 - 2 + + 7 ) + - 13 + - + 70 * - ( - ( 78 ) ) + + + COALESCE ( - + COUNT( * ), + + 3 ) AS col2
----
-5471

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL 3 + + 19 / - + COALESCE ( ( + 49 ), + NULLIF ( 61, - 3 ) + - CAST ( MAX ( DISTINCT - 96 ) AS INTEGER ) + + 28 * 89 * - - CAST ( NULL AS INTEGER ) + 19 - 2 + + 7 ) + - 13 + - + 70 * - ( - ( 78 ) ) + + + COALESCE ( - + COUNT ( * ), + + 3 ) AS col2
----
-5471

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT DISTINCT + COALESCE ( + 77, 43, - COALESCE ( + 88, - COUNT( * ) ) * - 56 ) * + 40 + + 74
----
3154

skipif mysql # not compatible
query I rowsort label-4705
SELECT DISTINCT + COALESCE ( + 77, 43, - COALESCE ( + 88, - COUNT ( * ) ) * - 56 ) * + 40 + + 74
----
3154

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4706
SELECT ( - + CAST( + NULLIF ( COUNT( * ), + + 47 ) AS SIGNED ) ) * - COUNT( 58 )
----
1

skipif mysql # not compatible
query I rowsort label-4706
SELECT ( - + CAST ( + NULLIF ( COUNT ( * ), + + 47 ) AS INTEGER ) ) * - COUNT ( 58 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT ALL 79 + - + COUNT( * ) - + 14
----
64

skipif mysql # not compatible
query I rowsort label-4707
SELECT ALL 79 + - + COUNT ( * ) - + 14
----
64

query I rowsort
SELECT ALL + ( - - 41 ) + - 7
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4709
SELECT ALL MAX( NULLIF ( + - 74, - 52 ) ) * - 8 AS col0
----
592

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL MAX ( NULLIF ( + - 74, - 52 ) ) * - 8 AS col0
----
592

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT - COALESCE ( + 40, - + 43, + 59 ) + + COUNT( * ) + + + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - COALESCE ( + 40, - + 43, + 59 ) + + COUNT ( * ) + + + COUNT ( * )
----
-38

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4711
SELECT CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) - - 95 + - 92
----
NULL

skipif mysql # not compatible
query I rowsort label-4711
SELECT CAST ( CAST ( NULL AS REAL ) AS INTEGER ) - - 95 + - 92
----
NULL

query I rowsort
SELECT ALL - 31 + - - 32
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT COUNT( * ) - + 74
----
-73

skipif mysql # not compatible
query I rowsort label-4713
SELECT COUNT ( * ) - + 74
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4714
SELECT 17 DIV COUNT( * )
----
17

skipif mysql # not compatible
query I rowsort label-4714
SELECT 17 / COUNT ( * )
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT - SUM( DISTINCT - 29 ) AS col2
----
29

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - SUM ( DISTINCT - 29 ) AS col2
----
29

query I rowsort
SELECT ( - + 1 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4717
SELECT DISTINCT + 17 * + + CAST( NULL AS SIGNED ) / + CAST( - 74 AS SIGNED ) * - + 54, - 23 * - + 99 * - CASE + 90 WHEN + 63 * + MIN( - 32 ) * + CAST( NULL AS DECIMAL ) + - AVG ( ALL - 14 ) * - 89 THEN NULL ELSE - 97 END + 82 + + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4717
SELECT DISTINCT + 17 * + + CAST ( NULL AS INTEGER ) / + CAST ( - 74 AS INTEGER ) * - + 54, - 23 * - + 99 * - CASE + 90 WHEN + 63 * + MIN ( - 32 ) * + CAST ( NULL AS REAL ) + - AVG ( ALL - 14 ) * - 89 THEN NULL ELSE - 97 END + 82 + + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4718
SELECT DISTINCT - - 92 AS col2, CAST( NULL AS SIGNED ) AS col0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-4718
SELECT DISTINCT - - 92 AS col2, CAST ( NULL AS INTEGER ) AS col0
----
92
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4719
SELECT ALL - COUNT( * ) + - 55 + + + 4 * + COUNT( * ) + + - 87 * - - 51 * - NULLIF ( 78, - - 54 DIV - 52 + + + COALESCE ( 62, - + ( + + 4 ) * - 74 + + + ( + + 35 ) + 69 ) ) + - 69 + - - 52 DIV + COALESCE ( + 48, + + 22 - - MAX( + 73 ) * MIN( DISTINCT - + 47 ) )
----
345966

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - COUNT ( * ) + - 55 + + + 4 * + COUNT ( * ) + + - 87 * - - 51 * - NULLIF ( 78, - - 54 / - 52 + + + COALESCE ( 62, - + ( + + 4 ) * - 74 + + + ( + + 35 ) + 69 ) ) + - 69 + - - 52 / + COALESCE ( + 48, + + 22 - - MAX ( + 73 ) * MIN ( DISTINCT - + 47 ) )
----
345966

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT ALL - - COUNT( * ) DIV + 23 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL - - COUNT ( * ) / + 23 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT 30 - - + COUNT( * )
----
31

skipif mysql # not compatible
query I rowsort label-4721
SELECT 30 - - + COUNT ( * )
----
31

query II rowsort
SELECT ALL 19 * 37 * - 32 AS col2, 22
----
-22496
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4723
SELECT ALL - CAST( SUM( DISTINCT - 99 ) AS SIGNED )
----
99

skipif mysql # not compatible
query I rowsort label-4723
SELECT ALL - CAST ( SUM ( DISTINCT - 99 ) AS INTEGER )
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT - + COUNT( DISTINCT 91 ) + 24 * 95 AS col0
----
2279

skipif mysql # not compatible
query I rowsort label-4724
SELECT - + COUNT ( DISTINCT 91 ) + 24 * 95 AS col0
----
2279

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT + + SUM( 92 ) - - 42
----
134

skipif mysql # not compatible
query I rowsort label-4725
SELECT + + SUM ( 92 ) - - 42
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT ALL + 4 * - 72 * + COUNT( * ) + - COUNT( * )
----
-289

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + 4 * - 72 * + COUNT ( * ) + - COUNT ( * )
----
-289

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4727
SELECT DISTINCT - CAST( - + 35 AS SIGNED ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-4727
SELECT DISTINCT - CAST ( - + 35 AS INTEGER ) AS col1
----
35

query I rowsort
SELECT ALL 48 * + COALESCE ( + 44, - + 19 ) + 30 - - 57
----
2199

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT ALL + 25 DIV - - ( + - 24 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL + 25 / - - ( + - 24 ) col2
----
-1

query I rowsort
SELECT - NULLIF ( 8, - + 57 + ( - 82 ) ) AS col1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT - COUNT( * ) + + 27
----
26

skipif mysql # not compatible
query I rowsort label-4731
SELECT - COUNT ( * ) + + 27
----
26

query I rowsort
SELECT - NULLIF ( 91, - 85 )
----
-91

query II rowsort
SELECT DISTINCT 48, + COALESCE ( + 61, 62 * 58 ) AS col1
----
48
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4734
SELECT + 21 * + CASE + - 97 WHEN + 34 / NULLIF ( CASE 95 WHEN + - 64 * + - 16 + - 76 THEN 95 WHEN + SUM( + 48 ) THEN NULL END, - + 45 ) * - NULLIF ( + COUNT( * ), - 68 + - - 6 * - - 24 * + - 1 ) + - 29 THEN - - 61 ELSE - 65 END * - 97
----
132405

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 21 * + CASE + - 97 WHEN + 34 / NULLIF ( CASE 95 WHEN + - 64 * + - 16 + - 76 THEN 95 WHEN + SUM ( + 48 ) THEN NULL END, - + 45 ) * - NULLIF ( + COUNT ( * ), - 68 + - - 6 * - - 24 * + - 1 ) + - 29 THEN - - 61 ELSE - 65 END * - 97
----
132405

query I rowsort
SELECT ALL 33 * - + ( - 95 ) AS col2
----
3135

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4736
SELECT ALL 12 * - - 40 + + COUNT( * ) DIV + COALESCE ( + 10, 51 * 40 + - + 73, + 93 + COUNT( * ) * 39 DIV - 93 DIV + 68 - 92 + + - 36 ) + + 45 AS col1
----
525

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL 12 * - - 40 + + COUNT ( * ) / + COALESCE ( + 10, 51 * 40 + - + 73, + 93 + COUNT ( * ) * 39 / - 93 / + 68 - 92 + + - 36 ) + + 45 AS col1
----
525

query I rowsort
SELECT DISTINCT 81 * - 84 + 40 AS col1
----
-6764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4738
SELECT 26 DIV - COALESCE ( - 40, - 79 - - 95 DIV 26 ) - 87 * COALESCE ( - ( + 36 ), + 55, + 46, + 27 * - COUNT( * ) - 82, + - 39 DIV COUNT( 73 ) ) AS col1
----
3132

skipif mysql # not compatible
query I rowsort label-4738
SELECT 26 / - COALESCE ( - 40, - 79 - - 95 / 26 ) - 87 * COALESCE ( - ( + 36 ), + 55, + 46, + 27 * - COUNT ( * ) - 82, + - 39 / COUNT ( 73 ) ) AS col1
----
3132

query I rowsort
SELECT + 67 - - + 11
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL + SUM( DISTINCT + - 42 )
----
-42

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL + SUM ( DISTINCT + - 42 )
----
-42

query I rowsort
SELECT DISTINCT + 43 * - 55 + + - 98
----
-2463

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4742
SELECT COALESCE ( + - CAST( NULL AS SIGNED ), - 23 DIV - + ( + 16 ) - 73 * + 74 + + COUNT( * ) * + 89 ) * 38 + + 67 col2, 71
----
-201789
71

skipif mysql # not compatible
query II rowsort label-4742
SELECT COALESCE ( + - CAST ( NULL AS INTEGER ), - 23 / - + ( + 16 ) - 73 * + 74 + + COUNT ( * ) * + 89 ) * 38 + + 67 col2, 71
----
-201789
71

query I rowsort
SELECT + ( + + 60 ) AS col0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4744
SELECT ALL - CAST( NULL AS SIGNED ) * - 76 + + 14 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - CAST ( NULL AS INTEGER ) * - 76 + + 14 AS col1
----
NULL

query I rowsort
SELECT - 99 * + 38 * 40 - - 53 AS col2
----
-150427

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT ALL + MIN( ALL - - 68 )
----
68

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL + MIN ( ALL - - 68 )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4747
SELECT 63 * ( ( + 70 ) ) DIV - - 7 * 1 - - 82 AS col2
----
712

skipif mysql # not compatible
query I rowsort label-4747
SELECT 63 * ( ( + 70 ) ) / - - 7 * 1 - - 82 AS col2
----
712

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT CASE COUNT( * ) WHEN + 96 THEN - - 25 WHEN 27 THEN ( - 72 ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4748
SELECT CASE COUNT ( * ) WHEN + 96 THEN - - 25 WHEN 27 THEN ( - 72 ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT - MAX( ALL 72 ) * - - 50 + - - 2 AS col2, - 6 col1
----
-3598
-6

skipif mysql # not compatible
query II rowsort label-4749
SELECT - MAX ( ALL 72 ) * - - 50 + - - 2 AS col2, - 6 col1
----
-3598
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT DISTINCT - MAX( - 54 ) * - - 71 + - ( + CASE + 40 WHEN - 55 - + 94 THEN 79 END ) + 66
----
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT DISTINCT - MAX ( - 54 ) * - - 71 + - ( + CASE + 40 WHEN - 55 - + 94 THEN 79 END ) + 66
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT DISTINCT + + ( - - COUNT( * ) ) * - ( + COUNT( * ) ) + - 88
----
-89

skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + + ( - - COUNT ( * ) ) * - ( + COUNT ( * ) ) + - 88
----
-89

query I rowsort
SELECT ALL + ( - 65 ) AS col2
----
-65

query I rowsort
SELECT - + 32 * + 22 * + 63 col1
----
-44352

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4754
SELECT DISTINCT - COUNT( * ) * - + CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT - COUNT ( * ) * - + CAST ( NULL AS INTEGER ) - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT + NULLIF ( - 74, + MIN( - + 67 ) ) AS col1, 22 col2
----
-74
22

skipif mysql # not compatible
query II rowsort label-4755
SELECT + NULLIF ( - 74, + MIN ( - + 67 ) ) AS col1, 22 col2
----
-74
22

query II rowsort
SELECT - 40 col0, 82
----
-40
82

query I rowsort
SELECT DISTINCT + 62 * + 84 * - 67 - - 1 - + 81
----
-349016

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT 72 * - COUNT( * ) + - + 71 + + - 94 + + - 75 * 99 + - COUNT( * )
----
-7663

skipif mysql # not compatible
query I rowsort label-4758
SELECT 72 * - COUNT ( * ) + - + 71 + + - 94 + + - 75 * 99 + - COUNT ( * )
----
-7663

onlyif mysql # aggregate syntax: 
query I rowsort label-4759
SELECT + - 76 * - - 85 * + - 60 * MAX( DISTINCT + 95 ) + 1 - - COUNT( * ) + + 38 + - 46 * + 80 * + 68 * - + ( - - 32 )
----
44829720

skipif mysql # not compatible
query I rowsort label-4759
SELECT + - 76 * - - 85 * + - 60 * MAX ( DISTINCT + 95 ) + 1 - - COUNT ( * ) + + 38 + - 46 * + 80 * + 68 * - + ( - - 32 )
----
44829720

onlyif mysql # aggregate syntax: 
query II rowsort label-4760
SELECT - 62 col0, - COUNT( * )
----
-62
-1

skipif mysql # not compatible
query II rowsort label-4760
SELECT - 62 col0, - COUNT ( * )
----
-62
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4761
SELECT ALL - 11 * + 96 col2, + CAST( NULL AS SIGNED )
----
-1056
NULL

skipif mysql # not compatible
query II rowsort label-4761
SELECT ALL - 11 * + 96 col2, + CAST ( NULL AS INTEGER )
----
-1056
NULL

query II rowsort
SELECT - - 47 AS col1, + 23
----
47
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL + MIN( - 36 ) AS col0
----
-36

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + MIN ( - 36 ) AS col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT ALL - + COUNT( * ) + + ( - 77 ) + - 93
----
-171

skipif mysql # not compatible
query I rowsort label-4764
SELECT ALL - + COUNT ( * ) + + ( - 77 ) + - 93
----
-171

query I rowsort
SELECT ALL + + ( 74 ) * - 40
----
-2960

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT - + 81 * COUNT( * ) AS col1
----
-81

skipif mysql # not compatible
query I rowsort label-4766
SELECT - + 81 * COUNT ( * ) AS col1
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4767
SELECT - ( + - CAST( NULL AS SIGNED ) ) + + + NULLIF ( + + 99, - - 34 ) * ( + 81 ) * + COUNT( * ) * - + 3 - 62 + + - ( + 84 ) * - + CASE - + 27 WHEN + 69 - - 56 THEN NULL WHEN 17 + - 26 THEN + 40 + - 72 + + 33 + MAX( + + 76 ) ELSE 90 * - 20 + CAST( NULL AS DECIMAL ) + + 68 END - + 35 * + 32 + + 32 * + 90 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + + + NULLIF ( + + 99, - - 34 ) * ( + 81 ) * + COUNT ( * ) * - + 3 - 62 + + - ( + 84 ) * - + CASE - + 27 WHEN + 69 - - 56 THEN NULL WHEN 17 + - 26 THEN + 40 + - 72 + + 33 + MAX ( + + 76 ) ELSE 90 * - 20 + CAST ( NULL AS REAL ) + + 68 END - + 35 * + 32 + + 32 * + 90 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT - COUNT( * ) - CAST( 44 AS SIGNED ) + + 16
----
-29

skipif mysql # not compatible
query I rowsort label-4768
SELECT - COUNT ( * ) - CAST ( 44 AS INTEGER ) + + 16
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT - NULLIF ( - COUNT( * ), - + 83 + - + 38 )
----
1

skipif mysql # not compatible
query I rowsort label-4769
SELECT - NULLIF ( - COUNT ( * ), - + 83 + - + 38 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - COUNT( * ) + - + COUNT( * ) + - - 30
----
28

skipif mysql # not compatible
query I rowsort label-4770
SELECT - COUNT ( * ) + - + COUNT ( * ) + - - 30
----
28

query I rowsort
SELECT + 28 + - 74 + - 6 + + - 28
----
-80

query I rowsort
SELECT - CASE 61 WHEN + 98 / - 32 * + NULLIF ( 59, - COALESCE ( - 4, + 69, + 42 + - - 96 * - ( - - ( - 81 ) ) ) ) + - - 18 THEN - - 69 + + 89 WHEN - 53 - + - 67 THEN NULL ELSE + - 83 * + 6 END AS col0
----
498

query I rowsort
SELECT ALL - 94 + 36 AS col1
----
-58

query I rowsort
SELECT DISTINCT - 21 * + 83
----
-1743

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL MAX( DISTINCT 3 ) + + 71 + - - COUNT( * ) * + - 58 - - 62
----
78

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL MAX ( DISTINCT 3 ) + + 71 + - - COUNT ( * ) * + - 58 - - 62
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT + 49 + - NULLIF ( + 46, + COUNT( * ) ) AS col0
----
3

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + 49 + - NULLIF ( + 46, + COUNT ( * ) ) AS col0
----
3

query I rowsort
SELECT DISTINCT + 59 AS col2
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4778
SELECT ALL + COUNT( * ) DIV - - 43 DIV - 20 + 52 + 68 * + 84 * 41
----
234244

skipif mysql # not compatible
query I rowsort label-4778
SELECT ALL + COUNT ( * ) / - - 43 / - 20 + 52 + 68 * + 84 * 41
----
234244

onlyif mysql # DIV for integer division: 
query I rowsort label-4779
SELECT - 32 DIV ( - 87 ) * - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT - 32 / ( - 87 ) * - + 86 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4780
SELECT + 38 + + - 44 + - - CAST( NULL AS SIGNED ) / + 58 * + ( 70 ) + + 30 + + 37 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4780
SELECT + 38 + + - 44 + - - CAST ( NULL AS INTEGER ) / + 58 * + ( 70 ) + + 30 + + 37 AS col2
----
NULL

query II rowsort
SELECT DISTINCT 44 * - 18, - 11 col2
----
-792
-11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4782
SELECT + 32 * + COUNT( * ) + + 57 * - COALESCE ( + 98, + + 46 DIV + COUNT( * ) ) AS col2, + 0 AS col1
----
-5554
0

skipif mysql # not compatible
query II rowsort label-4782
SELECT + 32 * + COUNT ( * ) + + 57 * - COALESCE ( + 98, + + 46 / + COUNT ( * ) ) AS col2, + 0 AS col1
----
-5554
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4783
SELECT ALL 78 * + COALESCE ( - - 73, - - 95, 59 ) AS col1, + COUNT( - + 4 )
----
5694
1

skipif mysql # not compatible
query II rowsort label-4783
SELECT ALL 78 * + COALESCE ( - - 73, - - 95, 59 ) AS col1, + COUNT ( - + 4 )
----
5694
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT ALL + 0 DIV + 27 * - 29 * - - 17 * + 32 - - + 10 * 31 AS col1
----
310

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL + 0 / + 27 * - 29 * - - 17 * + 32 - - + 10 * 31 AS col1
----
310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4785
SELECT + 2 * + - COALESCE ( - - 31, - 61 * + + MIN( 45 ) + 15 + - + 96, - COUNT( * ) + 15 + + + 49 + - 47 * - 83, + + 36 * - 74 + - 79 DIV - COALESCE ( - + COUNT( 10 ), + - 33 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4785
SELECT + 2 * + - COALESCE ( - - 31, - 61 * + + MIN ( 45 ) + 15 + - + 96, - COUNT ( * ) + 15 + + + 49 + - 47 * - 83, + + 36 * - 74 + - 79 / - COALESCE ( - + COUNT ( 10 ), + - 33 ) )
----
-62

query II rowsort
SELECT DISTINCT - 59 * - - 55, 67 * - 91 AS col1
----
-3245
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT + MAX( DISTINCT 9 ) * - 33 AS col1
----
-297

skipif mysql # not compatible
query I rowsort label-4787
SELECT + MAX ( DISTINCT 9 ) * - 33 AS col1
----
-297

query I rowsort
SELECT DISTINCT + + 74
----
74

query I rowsort
SELECT DISTINCT 13 * - 49 + - 26 AS col1
----
-663

onlyif mysql # DIV for integer division: 
query II rowsort label-4790
SELECT ALL 87 DIV + - 20 AS col2, + CASE - 78 WHEN 72 THEN - 1 + + - 9 END + 96 AS col2
----
-4
NULL

skipif mysql # not compatible
query II rowsort label-4790
SELECT ALL 87 / + - 20 AS col2, + CASE - 78 WHEN 72 THEN - 1 + + - 9 END + 96 AS col2
----
-4
NULL

query I rowsort
SELECT 1 - + 0
----
1

query II rowsort
SELECT - 14 - - - 12 AS col0, 21 AS col0
----
-26
21

query I rowsort
SELECT + 37 * + 64 * + + NULLIF ( + - 11, 72 ) AS col2
----
-26048

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT - 15 * + - 15 + COUNT( * ) AS col0
----
226

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - 15 * + - 15 + COUNT ( * ) AS col0
----
226

query I rowsort
SELECT ALL - - 81 col0
----
81

query I rowsort
SELECT + - CASE - + 17 WHEN - 38 THEN 26 WHEN - 60 THEN - - 2 WHEN + 32 + - + 30 + - + 51 THEN NULL ELSE + + 84 END
----
-84

query I rowsort
SELECT ALL - 65 * + + 89 - + + 57
----
-5842

query I rowsort
SELECT DISTINCT ( - 5 ) + - ( 69 ) * - 83
----
5722

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL 56 + - 16 + - COUNT( * ) - + + 26 * + 29 * + - 2 * ( - ( - + NULLIF ( + 73, + + 58 - ( + ( - + AVG ( ALL + 97 ) ) ) ) ) ) * 80 + + + 55 * + 96 AS col0
----
8812039

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL 56 + - 16 + - COUNT ( * ) - + + 26 * + 29 * + - 2 * ( - ( - + NULLIF ( + 73, + + 58 - ( + ( - + AVG ( ALL + 97 ) ) ) ) ) ) * 80 + + + 55 * + 96 AS col0
----
8812039

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL - COUNT( * ) + - - ( + 35 ) AS col1
----
34

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL - COUNT ( * ) + - - ( + 35 ) AS col1
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-4801
SELECT DISTINCT + SUM( DISTINCT 53 ) AS col2, - 4
----
53
-4

skipif mysql # not compatible
query II rowsort label-4801
SELECT DISTINCT + SUM ( DISTINCT 53 ) AS col2, - 4
----
53
-4

query I rowsort
SELECT - 39 * + 20 + + 57 AS col1
----
-723

query I rowsort
SELECT 42 + 47 + - - 29 + + 85
----
203

query I rowsort
SELECT - COALESCE ( + 75, - 66 )
----
-75

query I rowsort
SELECT 18 + - 98 AS col2
----
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT 21 - ( - - COUNT( * ) ) AS col1, 41 - ( - + 97 ) - 71 AS col1
----
20
67

skipif mysql # not compatible
query II rowsort label-4806
SELECT 21 - ( - - COUNT ( * ) ) AS col1, 41 - ( - + 97 ) - 71 AS col1
----
20
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4807
SELECT DISTINCT + COUNT( * ) + - - 41 + - 89 AS col2
----
-47

skipif mysql # not compatible
query I rowsort label-4807
SELECT DISTINCT + COUNT ( * ) + - - 41 + - 89 AS col2
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL - 62 + 35 + + 3 DIV 18 AS col0
----
-27

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 62 + 35 + + 3 / 18 AS col0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT ALL + NULLIF ( 28, 55 ) + + + MIN( - 38 ) * + ( 71 ) AS col1
----
-2670

skipif mysql # not compatible
query I rowsort label-4809
SELECT ALL + NULLIF ( 28, 55 ) + + + MIN ( - 38 ) * + ( 71 ) AS col1
----
-2670

onlyif mysql # DIV for integer division: 
query II rowsort label-4810
SELECT - 97, + 57 * - 93 * + 84 + 12 DIV + - 61 col2
----
-97
-445284

skipif mysql # not compatible
query II rowsort label-4810
SELECT - 97, + 57 * - 93 * + 84 + 12 / + - 61 col2
----
-97
-445284

onlyif mysql # aggregate syntax: 
query II rowsort label-4811
SELECT - 0, 64 - - MIN( 6 ) AS col1
----
0
70

skipif mysql # not compatible
query II rowsort label-4811
SELECT - 0, 64 - - MIN ( 6 ) AS col1
----
0
70

query I rowsort
SELECT 11 * - 51
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT ALL + COALESCE ( - COUNT( * ), - CASE COUNT( * ) WHEN + 33 THEN 76 ELSE 55 * - COUNT( * ) END ) * + + 55
----
-55

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + COALESCE ( - COUNT ( * ), - CASE COUNT ( * ) WHEN + 33 THEN 76 ELSE 55 * - COUNT ( * ) END ) * + + 55
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4814
SELECT 17 DIV + - 19
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT 17 / + - 19
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - MAX( ALL - CASE + 30 WHEN - + 42 - 20 THEN NULL ELSE 6 END ) + CASE SUM( - 84 ) WHEN - 72 + - - 47 THEN - 27 ELSE + + 78 END * - NULLIF ( - NULLIF ( + 29, + AVG ( DISTINCT 72 ) ), + 30 ) * + 50 - - - 22 + - COUNT( * )
----
113083

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - MAX ( ALL - CASE + 30 WHEN - + 42 - 20 THEN NULL ELSE 6 END ) + CASE SUM ( - 84 ) WHEN - 72 + - - 47 THEN - 27 ELSE + + 78 END * - NULLIF ( - NULLIF ( + 29, + AVG ( DISTINCT 72 ) ), + 30 ) * + 50 - - - 22 + - COUNT ( * )
----
113083

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT 98 - + + SUM( DISTINCT + ( - + 6 ) ) * + 10
----
158

skipif mysql # not compatible
query I rowsort label-4816
SELECT 98 - + + SUM ( DISTINCT + ( - + 6 ) ) * + 10
----
158

query I rowsort
SELECT 10 * - + 63
----
-630

query I rowsort
SELECT ALL - 72 * 98
----
-7056

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4819
SELECT 17 + 3 + 86 DIV 22 + + 89 DIV - - ( - 66 ) * COUNT( * ) + 99 + 48 * 51
----
2569

skipif mysql # not compatible
query I rowsort label-4819
SELECT 17 + 3 + 86 / 22 + + 89 / - - ( - 66 ) * COUNT ( * ) + 99 + 48 * 51
----
2569

query II rowsort
SELECT + 74, 15 AS col0
----
74
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4821
SELECT ALL - ( - CASE WHEN CASE + + 9 WHEN - ( - + 63 ) THEN + CAST( - CASE 50 WHEN + + 25 THEN 45 ELSE NULL END AS SIGNED ) * - - 69 * - 16 * 1 * + 14 + - 39 + + 97 * - COUNT( * ) ELSE NULL END IS NULL THEN NULL WHEN + 11 * 19 IS NULL THEN NULL ELSE - - 90 * - - ( + 28 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-4821
SELECT ALL - ( - CASE WHEN CASE + + 9 WHEN - ( - + 63 ) THEN + CAST ( - CASE 50 WHEN + + 25 THEN 45 ELSE NULL END AS INTEGER ) * - - 69 * - 16 * 1 * + 14 + - 39 + + 97 * - COUNT ( * ) ELSE NULL END IS NULL THEN NULL WHEN + 11 * 19 IS NULL THEN NULL ELSE - - 90 * - - ( + 28 ) END )
----
NULL

query II rowsort
SELECT - 90 * - + 41 - + 48 AS col0, + 89
----
3642
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4823
SELECT COUNT( * ) DIV - + ( 25 ) - - 83 AS col0
----
83

skipif mysql # not compatible
query I rowsort label-4823
SELECT COUNT ( * ) / - + ( 25 ) - - 83 AS col0
----
83

query II rowsort
SELECT DISTINCT - 13 AS col1, 95
----
-13
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT MIN( + 53 ) + - 94 AS col2
----
-41

skipif mysql # not compatible
query I rowsort label-4825
SELECT MIN ( + 53 ) + - 94 AS col2
----
-41

query I rowsort
SELECT 39 * - 78
----
-3042

query II rowsort
SELECT - 18 AS col1, 10
----
-18
10

query I rowsort
SELECT ( + 97 ) * - 88 + + 32
----
-8504

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4829
SELECT - 55 DIV ( COUNT( * ) ) * + + 44
----
-2420

skipif mysql # not compatible
query I rowsort label-4829
SELECT - 55 / ( COUNT ( * ) ) * + + 44
----
-2420

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT DISTINCT - + 21 DIV 50
----
0

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT - + 21 / 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - CASE + 71 WHEN 70 THEN - 67 END / 96 * - 66 + - 15 * - 35 * - - COUNT( * ) * + COUNT( * ) / - + 81 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-4831
SELECT - CASE + 71 WHEN 70 THEN - 67 END / 96 * - 66 + - 15 * - 35 * - - COUNT ( * ) * + COUNT ( * ) / - + 81 * 31
----
NULL

query I rowsort
SELECT + + 75 * 22 + - 34 - - - 20
----
1596

query II rowsort
SELECT - 12 + 53 * 0 AS col2, + 50 + + 44 AS col0
----
-12
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4834
SELECT - 75 * 59 * + CAST( NULL AS SIGNED ) + + 43 AS col1, 8 + 68
----
NULL
76

skipif mysql # not compatible
query II rowsort label-4834
SELECT - 75 * 59 * + CAST ( NULL AS INTEGER ) + + 43 AS col1, 8 + 68
----
NULL
76

query II rowsort
SELECT DISTINCT - - 69, + 66 AS col1
----
69
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL + + 79 + COUNT( * ) AS col0
----
80

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL + + 79 + COUNT ( * ) AS col0
----
80

query I rowsort
SELECT + - 38 * - 36 + + 46 + + 71
----
1485

query I rowsort
SELECT ALL - - ( - - 11 )
----
11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4839
SELECT ALL - CAST( NULL AS DECIMAL ) + + MIN( ALL - 17 ) + + 21 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL - CAST ( NULL AS REAL ) + + MIN ( ALL - 17 ) + + 21 AS col1
----
NULL

query I rowsort
SELECT - 62 + 81
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-4841
SELECT ALL 45 + 6 * - 43 col0, - COUNT( * ) col2
----
-213
-1

skipif mysql # not compatible
query II rowsort label-4841
SELECT ALL 45 + 6 * - 43 col0, - COUNT ( * ) col2
----
-213
-1

query I rowsort
SELECT ALL - 34 + + 22 * + + 44 AS col1
----
934

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4843
SELECT - 59 col2, CAST( NULL AS SIGNED ) + + 17 / + 96 AS col0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-4843
SELECT - 59 col2, CAST ( NULL AS INTEGER ) + + 17 / + 96 AS col0
----
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4844
SELECT ALL 70 AS col1, + CAST( + 31 AS SIGNED )
----
70
31

skipif mysql # not compatible
query II rowsort label-4844
SELECT ALL 70 AS col1, + CAST ( + 31 AS INTEGER )
----
70
31

query I rowsort
SELECT DISTINCT 76 + 46
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT NULLIF ( - + 90, + 76 ) + + + 50 - - COUNT( * ) AS col1
----
-39

skipif mysql # not compatible
query I rowsort label-4846
SELECT DISTINCT NULLIF ( - + 90, + 76 ) + + + 50 - - COUNT ( * ) AS col1
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4847
SELECT ALL COUNT( * ) * - - COALESCE ( - COUNT( * ), 79 - + - 45 DIV - + 62 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL COUNT ( * ) * - - COALESCE ( - COUNT ( * ), 79 - + - 45 / - + 62 ) AS col1
----
-1

query I rowsort
SELECT NULLIF ( - ( - ( - - 14 ) ), + 24 ) + + 88 AS col0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT MIN( - - 93 ) + COUNT( * ) * - 98 AS col2
----
-5

skipif mysql # not compatible
query I rowsort label-4849
SELECT MIN ( - - 93 ) + COUNT ( * ) * - 98 AS col2
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT 7 + + 73 + + CAST( NULL AS SIGNED ) + - ( 7 ) / - - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT 7 + + 73 + + CAST ( NULL AS INTEGER ) + - ( 7 ) / - - 6 AS col2
----
NULL

query I rowsort
SELECT 43 + - - 54
----
97

query I rowsort
SELECT 46 * + - 9 AS col2
----
-414

query I rowsort
SELECT 52 + + 51
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-4854
SELECT ALL + 31 - + ( + 54 ) * + 15 AS col0, - 17 * MAX( ALL 7 ) col2
----
-779
-119

skipif mysql # not compatible
query II rowsort label-4854
SELECT ALL + 31 - + ( + 54 ) * + 15 AS col0, - 17 * MAX ( ALL 7 ) col2
----
-779
-119

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT 33 + - CASE + + 87 WHEN + - 96 THEN + - 64 WHEN 11 THEN NULL WHEN - - COUNT( ALL + 62 ) THEN - 25 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT 33 + - CASE + + 87 WHEN + - 96 THEN + - 64 WHEN 11 THEN NULL WHEN - - COUNT ( ALL + 62 ) THEN - 25 END AS col1
----
NULL

query I rowsort
SELECT 42 + - + 40 * + - 9 + - - 53
----
455

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT 45 * 55 DIV + 10 AS col0
----
247

skipif mysql # not compatible
query I rowsort label-4857
SELECT 45 * 55 / + 10 AS col0
----
247

query I rowsort
SELECT + 66 * + 67 * - + 79 AS col0
----
-349338

query I rowsort
SELECT - NULLIF ( 54, + - 90 ) * + 24 AS col1
----
-1296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4860
SELECT CASE + 9 WHEN - 72 + - - 48 + COUNT( * ) + + - COUNT( * ) * 73 THEN - NULLIF ( + + 15, + COALESCE ( + CAST( - 52 AS SIGNED ), + - 39 ) * + 45 / 47 + + ( + 50 ) ) WHEN + 34 + - 65 THEN NULL ELSE - + 56 END
----
-56

skipif mysql # not compatible
query I rowsort label-4860
SELECT CASE + 9 WHEN - 72 + - - 48 + COUNT ( * ) + + - COUNT ( * ) * 73 THEN - NULLIF ( + + 15, + COALESCE ( + CAST ( - 52 AS INTEGER ), + - 39 ) * + 45 / 47 + + ( + 50 ) ) WHEN + 34 + - 65 THEN NULL ELSE - + 56 END
----
-56

query I rowsort
SELECT + 1 * 7 * - 36
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT - 43 * - 27 - - SUM( DISTINCT + + ( + 13 ) ) AS col1
----
1174

skipif mysql # not compatible
query I rowsort label-4862
SELECT - 43 * - 27 - - SUM ( DISTINCT + + ( + 13 ) ) AS col1
----
1174

query I rowsort
SELECT ALL - 81 * + 35
----
-2835

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT - + 70 + + + COUNT( * ) col1
----
-69

skipif mysql # not compatible
query I rowsort label-4864
SELECT - + 70 + + + COUNT ( * ) col1
----
-69

query I rowsort
SELECT + - ( - - ( 63 ) )
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT + + 13 * + + COUNT( * ) + + 5
----
18

skipif mysql # not compatible
query I rowsort label-4866
SELECT + + 13 * + + COUNT ( * ) + + 5
----
18

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4867
SELECT DISTINCT - ( + CAST( NULL AS DECIMAL ) ) * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT - ( + CAST ( NULL AS REAL ) ) * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + + ( COALESCE ( - 79, + 8 ) ) AS col0
----
-79

query I rowsort
SELECT DISTINCT + - 58 col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT - CAST( NULL AS SIGNED ) * - + ( 82 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4870
SELECT - CAST ( NULL AS INTEGER ) * - + ( 82 )
----
NULL

query I rowsort
SELECT ALL 27 * - 21 * 30 * 97 * + 21 + - 8 AS col1
----
-34649378

query I rowsort
SELECT + - 94 * - ( + 61 ) AS col0
----
5734

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT - 48 * COUNT( * ) DIV + 76
----
0

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 48 * COUNT ( * ) / + 76
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT + ( - SUM( 62 ) )
----
-62

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT + ( - SUM ( 62 ) )
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT MIN( - + NULLIF ( + 27, - + 94 * + 50 + - 49 ) )
----
-27

skipif mysql # not compatible
query I rowsort label-4875
SELECT MIN ( - + NULLIF ( + 27, - + 94 * + 50 + - 49 ) )
----
-27

query I rowsort
SELECT + 27 - + 63 - 0
----
-36

query II rowsort
SELECT ALL + 44 - 87 + + - 98 + + + 77 + - - 64 AS col1, 15 col0
----
0
15

query I rowsort
SELECT - 15 * + 16
----
-240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-4879
SELECT - CASE + - CAST( 89 AS DECIMAL ) WHEN - 26 + 34 THEN - - 57 + - - COUNT( * ) WHEN 19 THEN NULL WHEN - 33 THEN - ( + 74 ) DIV COUNT( DISTINCT - + CAST( + - 58 AS SIGNED ) ) DIV + 17 * + + 45 + 34 ELSE - COUNT( * ) END AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4879
SELECT - CASE + - CAST ( 89 AS REAL ) WHEN - 26 + 34 THEN - - 57 + - - COUNT ( * ) WHEN 19 THEN NULL WHEN - 33 THEN - ( + 74 ) / COUNT ( DISTINCT - + CAST ( + - 58 AS INTEGER ) ) / + 17 * + + 45 + 34 ELSE - COUNT ( * ) END AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT - 91 + 28 * + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-4880
SELECT - 91 + 28 * + COUNT ( * )
----
-63

query I rowsort
SELECT DISTINCT ( 31 )
----
31

query I rowsort
SELECT ALL 56 - + + 99
----
-43

query I rowsort
SELECT DISTINCT 14 * 92 AS col2
----
1288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4884
SELECT - NULLIF ( - - COALESCE ( - ( + COALESCE ( + 7, - 92, - 54 + - 17 ) ), - - ( + 82 ) * 40 + 16 - - + 7 + + 17 * + 10 * + 32 + + COUNT( * ), + 31 + + 17 DIV 56 ), + 27 + NULLIF ( + - MIN( DISTINCT + + 98 ), + 99 + + COUNT( * ) + - + 59 - 23 ) * + 62 )
----
7

skipif mysql # not compatible
query I rowsort label-4884
SELECT - NULLIF ( - - COALESCE ( - ( + COALESCE ( + 7, - 92, - 54 + - 17 ) ), - - ( + 82 ) * 40 + 16 - - + 7 + + 17 * + 10 * + 32 + + COUNT ( * ), + 31 + + 17 / 56 ), + 27 + NULLIF ( + - MIN ( DISTINCT + + 98 ), + 99 + + COUNT ( * ) + - + 59 - 23 ) * + 62 )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4885
SELECT + COUNT( * ) * - 67 DIV 83
----
0

skipif mysql # not compatible
query I rowsort label-4885
SELECT + COUNT ( * ) * - 67 / 83
----
0

query I rowsort
SELECT ALL 49 * + 69
----
3381

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4887
SELECT DISTINCT CAST( + MIN( + + 81 ) AS SIGNED ) * + + 23 col1
----
1863

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT CAST ( + MIN ( + + 81 ) AS INTEGER ) * + + 23 col1
----
1863

query I rowsort
SELECT + 43 + - 66 + 13
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4889
SELECT + COUNT( * ) + - + 4 DIV - + CAST( 65 AS SIGNED ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) + - + 4 / - + CAST ( 65 AS INTEGER ) AS col1
----
1

query I rowsort
SELECT + 95 + + 83
----
178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4891
SELECT + ( + 99 ) DIV + COUNT( * ) AS col0
----
99

skipif mysql # not compatible
query I rowsort label-4891
SELECT + ( + 99 ) / + COUNT ( * ) AS col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT + COUNT( * ) * 39 - + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-4892
SELECT + COUNT ( * ) * 39 - + COUNT ( * )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4893
SELECT CAST( + 8 AS SIGNED ) AS col0
----
8

skipif mysql # not compatible
query I rowsort label-4893
SELECT CAST ( + 8 AS INTEGER ) AS col0
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4894
SELECT ALL 37 DIV + COUNT( ALL 54 * - 97 ) + + 78 * 16 AS col1
----
1285

skipif mysql # not compatible
query I rowsort label-4894
SELECT ALL 37 / + COUNT ( ALL 54 * - 97 ) + + 78 * 16 AS col1
----
1285

onlyif mysql # DIV for integer division: 
query I rowsort label-4895
SELECT ALL - 26 DIV ( - 35 ) + 58
----
58

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL - 26 / ( - 35 ) + 58
----
58

query I rowsort
SELECT - 41 + 89 AS col2
----
48

query I rowsort
SELECT + ( + 16 ) AS col2
----
16

query I rowsort
SELECT + 62 * - 8 + 44 AS col0
----
-452

query I rowsort
SELECT + 87 * 3 + 40 AS col0
----
301

query I rowsort
SELECT ( - 98 ) AS col0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT ALL 80 DIV 34 + + 80 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL 80 / 34 + + 80 AS col2
----
82

query I rowsort
SELECT + 5 + - 3 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT 75 * ( CAST( NULL AS SIGNED ) ) - - COALESCE ( + CAST( NULL AS SIGNED ), 44 * - 19, 49 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4903
SELECT 75 * ( CAST ( NULL AS INTEGER ) ) - - COALESCE ( + CAST ( NULL AS INTEGER ), 44 * - 19, 49 )
----
NULL

query I rowsort
SELECT - ( 86 ) + 68 AS col1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL + 33 * - MAX( DISTINCT 22 ) + 74
----
-652

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + 33 * - MAX ( DISTINCT 22 ) + 74
----
-652

query I rowsort
SELECT ALL 5 * 68 AS col1
----
340

query I rowsort
SELECT DISTINCT + ( 49 )
----
49

query I rowsort
SELECT ALL + ( + 57 )
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT - 48 * 87 + CASE 27 WHEN + CASE 63 WHEN + 59 THEN NULL WHEN CAST( + ( + 36 ) AS SIGNED ) THEN 24 + 2 WHEN MAX( ALL - 21 ) THEN - 49 END THEN NULL WHEN - 92 - 92 THEN + 79 WHEN COUNT( * ) + - 82 THEN 98 END
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT - 48 * 87 + CASE 27 WHEN + CASE 63 WHEN + 59 THEN NULL WHEN CAST ( + ( + 36 ) AS INTEGER ) THEN 24 + 2 WHEN MAX ( ALL - 21 ) THEN - 49 END THEN NULL WHEN - 92 - 92 THEN + 79 WHEN COUNT ( * ) + - 82 THEN 98 END
----
NULL

query I rowsort
SELECT ALL + COALESCE ( - 20, - 22 )
----
-20

query I rowsort
SELECT - 28 + + 28 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT NULLIF ( + 79, - 88 + 66 * - COALESCE ( 15 * COUNT( * ), + 96 * + 95 + + 27, - 34 * + 92 ) ) AS col1
----
79

skipif mysql # not compatible
query I rowsort label-4912
SELECT NULLIF ( + 79, - 88 + 66 * - COALESCE ( 15 * COUNT ( * ), + 96 * + 95 + + 27, - 34 * + 92 ) ) AS col1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT NULLIF ( + 21, + 80 + COUNT( * ) * - 31 ) AS col2
----
21

skipif mysql # not compatible
query I rowsort label-4913
SELECT NULLIF ( + 21, + 80 + COUNT ( * ) * - 31 ) AS col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT ALL + MIN( + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL + MIN ( + 1 )
----
1

query I rowsort
SELECT - 16 * ( 58 )
----
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - COUNT( * ) * + MAX( + 76 )
----
-76

skipif mysql # not compatible
query I rowsort label-4916
SELECT - COUNT ( * ) * + MAX ( + 76 )
----
-76

query I rowsort
SELECT - 33 + 10 AS col2
----
-23

query I rowsort
SELECT NULLIF ( 36, + 74 ) AS col1
----
36

query I rowsort
SELECT - NULLIF ( - 90, - 0 )
----
90

query I rowsort
SELECT - CASE 57 WHEN 83 THEN NULL WHEN NULLIF ( 35, - 24 ) * ( + 66 ) THEN 10 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL - CAST( NULL AS SIGNED ) * + 42 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - CAST ( NULL AS INTEGER ) * + 42 AS col1
----
NULL

query I rowsort
SELECT - 85 * - 49 AS col2
----
4165

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT ALL - ( - 72 ) DIV 47
----
1

skipif mysql # not compatible
query I rowsort label-4923
SELECT ALL - ( - 72 ) / 47
----
1

query I rowsort
SELECT ALL ( 97 ) col2
----
97

query I rowsort
SELECT 42 + + ( - 51 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL - COUNT( * ) * - 6
----
6

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL - COUNT ( * ) * - 6
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4927
SELECT 52 + - MAX( ALL 58 + ( + 15 ) )
----
-21

skipif mysql # not compatible
query I rowsort label-4927
SELECT 52 + - MAX ( ALL 58 + ( + 15 ) )
----
-21

query I rowsort
SELECT 26 * 75
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT MAX( DISTINCT - 24 ) + 22 * - 45 AS col2
----
-1014

skipif mysql # not compatible
query I rowsort label-4929
SELECT MAX ( DISTINCT - 24 ) + 22 * - 45 AS col2
----
-1014

onlyif mysql # aggregate syntax: 
query I rowsort label-4930
SELECT ALL + COUNT( * ) + 27
----
28

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + COUNT ( * ) + 27
----
28

query I rowsort
SELECT 32 + 38
----
70

query I rowsort
SELECT DISTINCT 72 + + ( 10 + + 18 )
----
100

query I rowsort
SELECT ALL 7 + 48
----
55

query I rowsort
SELECT DISTINCT + 32 + + 32 AS col2
----
64

query I rowsort
SELECT DISTINCT + + 85 + 54
----
139

query I rowsort
SELECT ALL - 99 + 36 AS col1
----
-63

query I rowsort
SELECT ALL + 87 + - 20 AS col1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT + COUNT( * ) + + 89
----
90

skipif mysql # not compatible
query I rowsort label-4938
SELECT + COUNT ( * ) + + 89
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL 98 + COUNT( * )
----
99

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL 98 + COUNT ( * )
----
99

query I rowsort
SELECT 70 * - 70
----
-4900

query I rowsort
SELECT 14 * 90 col1
----
1260

query I rowsort
SELECT DISTINCT - 5 + 46
----
41

query I rowsort
SELECT + - 62 col0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL + 72 - + COUNT( * ) AS col1
----
71

skipif mysql # not compatible
query I rowsort label-4944
SELECT ALL + 72 - + COUNT ( * ) AS col1
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT 93 * MIN( + 78 * 44 )
----
319176

skipif mysql # not compatible
query I rowsort label-4945
SELECT 93 * MIN ( + 78 * 44 )
----
319176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4946
SELECT ALL - - 84 DIV MIN( DISTINCT - 8 ) col2
----
-10

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL - - 84 / MIN ( DISTINCT - 8 ) col2
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT + 30 DIV COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-4947
SELECT + 30 / COUNT ( * )
----
30

query I rowsort
SELECT DISTINCT - + 5 AS col1
----
-5

query I rowsort
SELECT 18 * - 21 AS col0
----
-378

query I rowsort
SELECT ALL 27 * + 6 AS col1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT COUNT( * ) - - 16 col0
----
17

skipif mysql # not compatible
query I rowsort label-4951
SELECT COUNT ( * ) - - 16 col0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-4952
SELECT 37 DIV + NULLIF ( - 80, 84 )
----
0

skipif mysql # not compatible
query I rowsort label-4952
SELECT 37 / + NULLIF ( - 80, 84 )
----
0

query I rowsort
SELECT - 19 * - 13 - 96
----
151

query I rowsort
SELECT 46 * + - 14 * 32 AS col1
----
-20608

query I rowsort
SELECT ALL + 45 * 14 * + 79
----
49770

query I rowsort
SELECT 54 * 81 + + 5 * 27 AS col2
----
4509

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT ALL - COUNT( DISTINCT - - 16 )
----
-1

skipif mysql # not compatible
query I rowsort label-4957
SELECT ALL - COUNT ( DISTINCT - - 16 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT + COUNT( * ) * 17
----
17

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT + COUNT ( * ) * 17
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - COUNT( DISTINCT 28 )
----
-1

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - COUNT ( DISTINCT 28 )
----
-1

query I rowsort
SELECT ALL - NULLIF ( 75, 34 ) AS col2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT 61 * - COUNT( + 49 )
----
-61

skipif mysql # not compatible
query I rowsort label-4961
SELECT 61 * - COUNT ( + 49 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT ALL - COUNT( * ) + + 81 AS col1
----
80

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - COUNT ( * ) + + 81 AS col1
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT 45 + - 8 * COUNT( * )
----
37

skipif mysql # not compatible
query I rowsort label-4963
SELECT 45 + - 8 * COUNT ( * )
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4964
SELECT 51 DIV - - 40 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4964
SELECT 51 / - - 40 AS col0
----
1

query I rowsort
SELECT ALL 2 + + 33 AS col1
----
35

query I rowsort
SELECT DISTINCT - 65 * + 96 * 10 AS col1
----
-62400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4967
SELECT ALL + 10 + - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + 10 + - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL + 28 + 96 - + COUNT( * ) AS col0
----
123

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + 28 + 96 - + COUNT ( * ) AS col0
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT 59 DIV - 95 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT 59 / - 95 AS col2
----
0

query I rowsort
SELECT + 90 + - + 9 AS col2
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT DISTINCT - 0 * + + COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-4971
SELECT DISTINCT - 0 * + + COUNT ( * )
----
0

query I rowsort
SELECT - ( + NULLIF ( 40, - 98 ) ) + + 84 AS col1
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4973
SELECT ALL - CAST( - CAST( + 49 AS SIGNED ) AS SIGNED ) + 60
----
109

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL - CAST ( - CAST ( + 49 AS INTEGER ) AS INTEGER ) + 60
----
109

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4974
SELECT 39 + + COUNT( * ) - 70 DIV - 67 col1
----
41

skipif mysql # not compatible
query I rowsort label-4974
SELECT 39 + + COUNT ( * ) - 70 / - 67 col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT SUM( ALL - - 48 ) + + 46 * - 20 col1
----
-872

skipif mysql # not compatible
query I rowsort label-4975
SELECT SUM ( ALL - - 48 ) + + 46 * - 20 col1
----
-872

query I rowsort
SELECT + 79 + + - 13 AS col0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4977
SELECT - ( COALESCE ( + 14, + MIN( - 26 ) + + 32 ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-4977
SELECT - ( COALESCE ( + 14, + MIN ( - 26 ) + + 32 ) ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4978
SELECT ALL - CAST( + 72 AS SIGNED ) AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - CAST ( + 72 AS INTEGER ) AS col0
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4979
SELECT 21 * 44 + 11 DIV + COALESCE ( ( 29 ) + CAST( NULL AS SIGNED ), - COUNT( * ) ) + - 49 AS col0
----
864

skipif mysql # not compatible
query I rowsort label-4979
SELECT 21 * 44 + 11 / + COALESCE ( ( 29 ) + CAST ( NULL AS INTEGER ), - COUNT ( * ) ) + - 49 AS col0
----
864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4980
SELECT - - 92 DIV - - 9 * + COUNT( * ) + MIN( - 57 ) + 94 AS col1
----
47

skipif mysql # not compatible
query I rowsort label-4980
SELECT - - 92 / - - 9 * + COUNT ( * ) + MIN ( - 57 ) + 94 AS col1
----
47

query I rowsort
SELECT 87 * + 85 AS col0
----
7395

query I rowsort
SELECT - 37 * - 92 AS col2
----
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT - SUM( ALL + + 70 ) * - 3 + 92 col2
----
302

skipif mysql # not compatible
query I rowsort label-4983
SELECT - SUM ( ALL + + 70 ) * - 3 + 92 col2
----
302

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT ALL - - ( + + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-4984
SELECT ALL - - ( + + COUNT ( * ) ) AS col0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT - ( - 77 ) DIV 32 + 22 DIV 41
----
2

skipif mysql # not compatible
query I rowsort label-4985
SELECT - ( - 77 ) / 32 + 22 / 41
----
2

query I rowsort
SELECT - 55 * + 74 + 86
----
-3984

query I rowsort
SELECT - 95 + - - 88 + 42 AS col0
----
35

query I rowsort
SELECT DISTINCT - 40 * + 12
----
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT COUNT( + COALESCE ( 18, ( + 30 ) / 31 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-4989
SELECT COUNT ( + COALESCE ( 18, ( + 30 ) / 31 ) ) AS col1
----
1

query II rowsort
SELECT ALL - 1 col1, ( + + 33 )
----
-1
33

query I rowsort
SELECT ALL 33 + 8 AS col0
----
41

query I rowsort
SELECT 86 * + 38 + - - 33
----
3301

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT DISTINCT + 84, - CASE + COUNT( - 17 ) WHEN + 53 * 92 THEN - 20 END / COUNT( - 23 - 12 ) col0
----
84
NULL

skipif mysql # not compatible
query II rowsort label-4993
SELECT DISTINCT + 84, - CASE + COUNT ( - 17 ) WHEN + 53 * 92 THEN - 20 END / COUNT ( - 23 - 12 ) col0
----
84
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT + MAX( + 59 ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-4994
SELECT + MAX ( + 59 ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4995
SELECT + COUNT( * ) DIV + CAST( + 88 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4995
SELECT + COUNT ( * ) / + CAST ( + 88 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4996
SELECT ALL 97 + COUNT( * ) + + ( - COUNT( ALL - 41 ) ) - + SUM( - 71 + + 46 ) * 7 AS col0
----
272

skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL 97 + COUNT ( * ) + + ( - COUNT ( ALL - 41 ) ) - + SUM ( - 71 + + 46 ) * 7 AS col0
----
272

query I rowsort
SELECT DISTINCT 55 * + 46
----
2530

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + MAX( + 65 ) * - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-4998
SELECT + MAX ( + 65 ) * - - COUNT ( * )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4999
SELECT + CAST( + 50 AS SIGNED ) * 95 + + 6 + - 38 AS col2
----
4718

skipif mysql # not compatible
query I rowsort label-4999
SELECT + CAST ( + 50 AS INTEGER ) * 95 + + 6 + - 38 AS col2
----
4718

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5000
SELECT ALL ( + 84 ) + + COUNT( * ) - CAST( - 0 + - CASE 21 WHEN + 24 THEN - 36 END AS DECIMAL ) * 24
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL ( + 84 ) + + COUNT ( * ) - CAST ( - 0 + - CASE 21 WHEN + 24 THEN - 36 END AS REAL ) * 24
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT ALL 61 + + ( CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT ALL 61 + + ( CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5002
SELECT ALL + 24 + + 26 - + + CAST( + 7 AS SIGNED ) col0
----
43

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL + 24 + + 26 - + + CAST ( + 7 AS INTEGER ) col0
----
43

query I rowsort
SELECT - 25 * - 29
----
725

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT ALL COALESCE ( + 88, + 62 * + SUM( - 75 * + 95 ), + NULLIF ( + 42, 71 / COUNT( 30 ) ) ) AS col2
----
88

skipif mysql # not compatible
query I rowsort label-5004
SELECT ALL COALESCE ( + 88, + 62 * + SUM ( - 75 * + 95 ), + NULLIF ( + 42, 71 / COUNT ( 30 ) ) ) AS col2
----
88

query I rowsort
SELECT - 83 + 72 - + + 88 * 8
----
-715

query I rowsort
SELECT ALL - 71 + 8 AS col2
----
-63

query I rowsort
SELECT - 96 + - + 21
----
-117

query I rowsort
SELECT + 40 * 70 * - 91
----
-254800

query I rowsort
SELECT - - 27 * 46 AS col2
----
1242

query I rowsort
SELECT - - 10 + - 75 * 59
----
-4415

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL + CASE - + COUNT( * ) WHEN - - 21 THEN - 69 WHEN 15 * + 65 THEN NULL WHEN - 88 THEN COUNT( * ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL + CASE - + COUNT ( * ) WHEN - - 21 THEN - 69 WHEN 15 * + 65 THEN NULL WHEN - 88 THEN COUNT ( * ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT DISTINCT - 77 - - COUNT( * ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT - 77 - - COUNT ( * ) AS col0
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-5013
SELECT DISTINCT + - 75 DIV + - 82
----
0

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + - 75 / + - 82
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5014
SELECT ALL 90, COUNT( * ) AS col1
----
90
1

skipif mysql # not compatible
query II rowsort label-5014
SELECT ALL 90, COUNT ( * ) AS col1
----
90
1

query II rowsort
SELECT DISTINCT - 10, 10 * 62 AS col0
----
-10
620

query I rowsort
SELECT - 43 * 69
----
-2967

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5017
SELECT ALL + - CAST( NULL AS DECIMAL ) * + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL + - CAST ( NULL AS REAL ) * + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - + COUNT( * ) * CASE WHEN NOT + 55 IS NULL THEN NULL ELSE 57 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT - + COUNT ( * ) * CASE WHEN NOT + 55 IS NULL THEN NULL ELSE 57 END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT + + NULLIF ( 32, + CAST( ( 35 ) AS SIGNED ) ) + + NULLIF ( 92 + 23, - 53 + + 74 ) AS col1
----
147

skipif mysql # not compatible
query I rowsort label-5019
SELECT + + NULLIF ( 32, + CAST ( ( 35 ) AS INTEGER ) ) + + NULLIF ( 92 + 23, - 53 + + 74 ) AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT + + COUNT( ALL - + ( + 17 ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-5020
SELECT + + COUNT ( ALL - + ( + 17 ) ) col1
----
1

query I rowsort
SELECT ( + + 24 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT ALL COUNT( * ) * + 25 + - - MIN( ALL + 10 ) AS col0
----
35

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL COUNT ( * ) * + 25 + - - MIN ( ALL + 10 ) AS col0
----
35

query I rowsort
SELECT ( 44 )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5024
SELECT ALL + CAST( + - ( + 20 ) AS SIGNED )
----
-20

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL + CAST ( + - ( + 20 ) AS INTEGER )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL - 47 * - CASE AVG ( ALL - + 29 ) WHEN + COUNT( * ) THEN + 22 END + - 6 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL - 47 * - CASE AVG ( ALL - + 29 ) WHEN + COUNT ( * ) THEN + 22 END + - 6 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT ALL 50 * + CAST( + 15 AS SIGNED ) * - 48 * + 50
----
-1800000

skipif mysql # not compatible
query I rowsort label-5026
SELECT ALL 50 * + CAST ( + 15 AS INTEGER ) * - 48 * + 50
----
-1800000

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT ALL - 31 * 31 + - - COUNT( * ) AS col1
----
-960

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL - 31 * 31 + - - COUNT ( * ) AS col1
----
-960

query I rowsort
SELECT ( - - ( 15 ) ) AS col2
----
15

query I rowsort
SELECT + COALESCE ( - 49, 87 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT + MAX( - 48 ) * - 57 * + 22
----
60192

skipif mysql # not compatible
query I rowsort label-5030
SELECT + MAX ( - 48 ) * - 57 * + 22
----
60192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5031
SELECT - 3 - - + CASE - - 84 WHEN + 21 - - CAST( + 94 AS SIGNED ) THEN NULL WHEN COUNT( * ) THEN NULL ELSE - 91 DIV 43 END * + 39 AS col2
----
-81

skipif mysql # not compatible
query I rowsort label-5031
SELECT - 3 - - + CASE - - 84 WHEN + 21 - - CAST ( + 94 AS INTEGER ) THEN NULL WHEN COUNT ( * ) THEN NULL ELSE - 91 / 43 END * + 39 AS col2
----
-81

query I rowsort
SELECT + ( 89 ) AS col2
----
89

query I rowsort
SELECT ALL 14 * + ( + 55 ) AS col0
----
770

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT - 20 DIV 88 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 20 / 88 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT SUM( 0 ) * - 5 * - 50 + - 8 * 1
----
-8

skipif mysql # not compatible
query I rowsort label-5035
SELECT SUM ( 0 ) * - 5 * - 50 + - 8 * 1
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + 78 * + 4 * COUNT( * ) + + - ( + 38 )
----
274

skipif mysql # not compatible
query I rowsort label-5036
SELECT + 78 * + 4 * COUNT ( * ) + + - ( + 38 )
----
274

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5037
SELECT ALL COUNT( * ) * - 43 + - + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT ALL COUNT ( * ) * - 43 + - + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5038
SELECT ALL 48 DIV 48 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL 48 / 48 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT ALL 46 * - + 77 - - CASE + - 92 WHEN MIN( 89 ) * - 59 THEN COUNT( * ) ELSE NULL END * COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL 46 * - + 77 - - CASE + - 92 WHEN MIN ( 89 ) * - 59 THEN COUNT ( * ) ELSE NULL END * COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5040
SELECT MAX( ALL 6 ) AS col2
----
6

skipif mysql # not compatible
query I rowsort label-5040
SELECT MAX ( ALL 6 ) AS col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT - COALESCE ( 69, COUNT( * ) ) AS col1
----
-69

skipif mysql # not compatible
query I rowsort label-5041
SELECT - COALESCE ( 69, COUNT ( * ) ) AS col1
----
-69

query I rowsort
SELECT + + 61 + - 43 * + - 73 AS col2
----
3200

onlyif mysql # aggregate syntax: 
query I rowsort label-5043
SELECT DISTINCT CASE 55 WHEN - - 14 * + - 99 * + 61 THEN NULL WHEN 10 THEN 50 + 35 * COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT CASE 55 WHEN - - 14 * + - 99 * + 61 THEN NULL WHEN 10 THEN 50 + 35 * COUNT ( * ) END
----
NULL

query I rowsort
SELECT ALL 44 * - 4 * 37 - + 0 AS col0
----
-6512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT DISTINCT - CAST( - COALESCE ( + 46, - 51 * COUNT( * ) ) AS SIGNED )
----
46

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - CAST ( - COALESCE ( + 46, - 51 * COUNT ( * ) ) AS INTEGER )
----
46

query II rowsort
SELECT ALL ( 87 ) AS col1, 10 AS col1
----
87
10

query I rowsort
SELECT + - 18 + - 86
----
-104

query I rowsort
SELECT + + 60 * - - 86 * - 31 AS col2
----
-159960

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT - + 54 * + - SUM( ALL - 11 )
----
-594

skipif mysql # not compatible
query I rowsort label-5049
SELECT - + 54 * + - SUM ( ALL - 11 )
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + 63 + 99 * + + MAX( DISTINCT + 3 ) AS col2
----
360

skipif mysql # not compatible
query I rowsort label-5050
SELECT + 63 + 99 * + + MAX ( DISTINCT + 3 ) AS col2
----
360

query I rowsort
SELECT - ( + 85 ) + + 80
----
-5

query I rowsort
SELECT ALL + 83 * - 19 + - + 15 AS col0
----
-1592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT NULLIF ( - 76, + CAST( NULL AS SIGNED ) - - 85 * NULLIF ( 13, - 45 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-5053
SELECT NULLIF ( - 76, + CAST ( NULL AS INTEGER ) - - 85 * NULLIF ( 13, - 45 ) )
----
-76

query I rowsort
SELECT ALL + 95 + + + 24 AS col2
----
119

query II rowsort
SELECT DISTINCT - ( - 93 ) + - 56 AS col2, 13
----
37
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT COUNT( * ) * 63 * - + MAX( ALL 77 ) * - 77 * 51
----
19049877

skipif mysql # not compatible
query I rowsort label-5056
SELECT COUNT ( * ) * 63 * - + MAX ( ALL 77 ) * - 77 * 51
----
19049877

query I rowsort
SELECT 55 + + 4
----
59

query I rowsort
SELECT ALL - 23 + + 85 - - 92 * - 92 * + 31
----
-262322

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT 71 * CASE - - 21 WHEN - 35 THEN NULL WHEN - + COUNT( * ) THEN - MAX( ALL + 77 ) * - COALESCE ( - 87 * CASE 41 WHEN + 65 THEN - CAST( NULL AS SIGNED ) END + 20, - COUNT( * ) - 61 * 67 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5059
SELECT 71 * CASE - - 21 WHEN - 35 THEN NULL WHEN - + COUNT ( * ) THEN - MAX ( ALL + 77 ) * - COALESCE ( - 87 * CASE 41 WHEN + 65 THEN - CAST ( NULL AS INTEGER ) END + 20, - COUNT ( * ) - 61 * 67 ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT 45 + COUNT( * ) - - 82 * + + 95
----
7836

skipif mysql # not compatible
query I rowsort label-5060
SELECT 45 + COUNT ( * ) - - 82 * + + 95
----
7836

query I rowsort
SELECT + 12 * - 40 + - 55 col2
----
-535

onlyif mysql # DIV for integer division: 
query I rowsort label-5062
SELECT 55 DIV + 45 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-5062
SELECT 55 / + 45 AS col2
----
1

query I rowsort
SELECT ALL - 24 + 93 AS col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT + 49 * 95 + - SUM( + - 7 ) AS col1
----
4662

skipif mysql # not compatible
query I rowsort label-5064
SELECT + 49 * 95 + - SUM ( + - 7 ) AS col1
----
4662

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL MIN( DISTINCT - 20 ) * + 61 AS col0
----
-1220

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL MIN ( DISTINCT - 20 ) * + 61 AS col0
----
-1220

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT AVG ( DISTINCT - 21 ) + + CASE 0 WHEN + 63 THEN + 66 WHEN 43 * SUM( ALL - COALESCE ( + 95, 65 / + 77 ) ) THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5066
SELECT AVG ( DISTINCT - 21 ) + + CASE 0 WHEN + 63 THEN + 66 WHEN 43 * SUM ( ALL - COALESCE ( + 95, 65 / + 77 ) ) THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5067
SELECT ALL + 61 - - - COUNT( * ) * 79 col0, 87
----
-18
87

skipif mysql # not compatible
query II rowsort label-5067
SELECT ALL + 61 - - - COUNT ( * ) * 79 col0, 87
----
-18
87

query I rowsort
SELECT 60 * + 94
----
5640

query I rowsort
SELECT 52 * 31 + + + 71 AS col1
----
1683

query I rowsort
SELECT - 34 * 62 + 83
----
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT - COUNT( * ) * - - 20
----
-20

skipif mysql # not compatible
query I rowsort label-5071
SELECT - COUNT ( * ) * - - 20
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5072
SELECT ALL + 39 AS col1, CAST( 91 AS SIGNED ) + COUNT( * ) - + 19
----
39
73

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL + 39 AS col1, CAST ( 91 AS INTEGER ) + COUNT ( * ) - + 19
----
39
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT - 58 DIV - + ( - - 58 )
----
1

skipif mysql # not compatible
query I rowsort label-5073
SELECT - 58 / - + ( - - 58 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT ALL - 39 DIV 47 + - 65 AS col2
----
-65

skipif mysql # not compatible
query I rowsort label-5074
SELECT ALL - 39 / 47 + - 65 AS col2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT + 68 + - COUNT( * )
----
67

skipif mysql # not compatible
query I rowsort label-5075
SELECT + 68 + - COUNT ( * )
----
67

query I rowsort
SELECT + 81 + 49
----
130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5077
SELECT ALL - MIN( CASE - 6 WHEN - 18 THEN + 4 DIV + 5 + + 90 WHEN - 27 THEN NULL ELSE + 8 END ) DIV - COUNT( * ) AS col1
----
8

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL - MIN ( CASE - 6 WHEN - 18 THEN + 4 / + 5 + + 90 WHEN - 27 THEN NULL ELSE + 8 END ) / - COUNT ( * ) AS col1
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5078
SELECT 52 DIV + 69
----
0

skipif mysql # not compatible
query I rowsort label-5078
SELECT 52 / + 69
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5079
SELECT - 34 * - CASE + 61 WHEN + CAST( NULL AS SIGNED ) / - 2 THEN - ( + 0 ) * 52 WHEN COUNT( * ) + 81 * 87 THEN NULL END / - 77
----
NULL

skipif mysql # not compatible
query I rowsort label-5079
SELECT - 34 * - CASE + 61 WHEN + CAST ( NULL AS INTEGER ) / - 2 THEN - ( + 0 ) * 52 WHEN COUNT ( * ) + 81 * 87 THEN NULL END / - 77
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5080
SELECT - CAST( NULL AS SIGNED ) * - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-5080
SELECT - CAST ( NULL AS INTEGER ) * - 80
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5081
SELECT DISTINCT - COALESCE ( CAST( + 28 AS SIGNED ), - + 17 * - 86 DIV + 47 + COUNT( * ) ) + 39 DIV - 61 AS col1
----
-28

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT - COALESCE ( CAST ( + 28 AS INTEGER ), - + 17 * - 86 / + 47 + COUNT ( * ) ) + 39 / - 61 AS col1
----
-28

query I rowsort
SELECT ALL + 12 + - - 27
----
39

query I rowsort
SELECT - - ( + - 36 )
----
-36

query I rowsort
SELECT ALL - 43 + - 15 + 68 AS col1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5085
SELECT MAX( - 23 ) AS col0
----
-23

skipif mysql # not compatible
query I rowsort label-5085
SELECT MAX ( - 23 ) AS col0
----
-23

query I rowsort
SELECT ALL - - 58 + + - ( - 67 ) * + - COALESCE ( + + 57, 35 - 89 )
----
-3761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT - CAST( - NULLIF ( - - 61, + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1
----
61

skipif mysql # not compatible
query I rowsort label-5087
SELECT - CAST ( - NULLIF ( - - 61, + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT ALL + ( COUNT( * ) ) + + COUNT( * ) col2
----
2

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL + ( COUNT ( * ) ) + + COUNT ( * ) col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT 55 * CASE - 68 WHEN - 4 * + MAX( + - 88 ) THEN NULL WHEN 45 * + 50 THEN - 32 ELSE 67 * 97 END AS col0
----
357445

skipif mysql # not compatible
query I rowsort label-5089
SELECT 55 * CASE - 68 WHEN - 4 * + MAX ( + - 88 ) THEN NULL WHEN 45 * + 50 THEN - 32 ELSE 67 * 97 END AS col0
----
357445

query I rowsort
SELECT ( + 14 ) - - 58
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5091
SELECT DISTINCT 91 AS col1, CAST( + 36 AS SIGNED ) * 52 + - 83
----
91
1789

skipif mysql # not compatible
query II rowsort label-5091
SELECT DISTINCT 91 AS col1, CAST ( + 36 AS INTEGER ) * 52 + - 83
----
91
1789

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5092
SELECT MIN( + CAST( - + 82 AS SIGNED ) )
----
-82

skipif mysql # not compatible
query I rowsort label-5092
SELECT MIN ( + CAST ( - + 82 AS INTEGER ) )
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL - COALESCE ( - 99, 75 + 75, - 16 + - COUNT( * ) * - 31 )
----
99

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - COALESCE ( - 99, 75 + 75, - 16 + - COUNT ( * ) * - 31 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT DISTINCT - 10 + - + 61 * 56 * + 14 AS col2, 66 * + CASE + 28 WHEN + 40 - 87 THEN - COUNT( * ) - - 74 ELSE NULL END AS col1
----
-47834
NULL

skipif mysql # not compatible
query II rowsort label-5094
SELECT DISTINCT - 10 + - + 61 * 56 * + 14 AS col2, 66 * + CASE + 28 WHEN + 40 - 87 THEN - COUNT ( * ) - - 74 ELSE NULL END AS col1
----
-47834
NULL

query I rowsort
SELECT ALL + 92 - ( 80 )
----
12

query I rowsort
SELECT DISTINCT - 37 * 91 AS col1
----
-3367

onlyif mysql # DIV for integer division: 
query I rowsort label-5097
SELECT ALL 38 DIV + - 73 * + 39 col1
----
0

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL 38 / + - 73 * + 39 col1
----
0

query I rowsort
SELECT 71 * + + 61 AS col1
----
4331

query I rowsort
SELECT ALL - 19 * + 46 AS col2
----
-874

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT ALL + 92 - + 38 * + COUNT( * ) AS col1
----
54

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL + 92 - + 38 * + COUNT ( * ) AS col1
----
54

query II rowsort
SELECT + 18 AS col2, 5 + + 72 AS col0
----
18
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5102
SELECT 61 DIV + COUNT( * )
----
61

skipif mysql # not compatible
query I rowsort label-5102
SELECT 61 / + COUNT ( * )
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5103
SELECT 96 * ( SUM( + 46 ) ) AS col1, - CAST( + 82 AS SIGNED ) + + 5 AS col2
----
4416
-77

skipif mysql # not compatible
query II rowsort label-5103
SELECT 96 * ( SUM ( + 46 ) ) AS col1, - CAST ( + 82 AS INTEGER ) + + 5 AS col2
----
4416
-77

query I rowsort
SELECT 70 + - 1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5105
SELECT COUNT( * ) * + - 9 * 56 DIV + + COALESCE ( - COUNT( * ), - ( 98 ) * - 33 )
----
504

skipif mysql # not compatible
query I rowsort label-5105
SELECT COUNT ( * ) * + - 9 * 56 / + + COALESCE ( - COUNT ( * ), - ( 98 ) * - 33 )
----
504

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5106
SELECT 8 AS col0, 76 * NULLIF ( + 42, 46 * 9 - 70 ) DIV - COUNT( * )
----
8
-3192

skipif mysql # not compatible
query II rowsort label-5106
SELECT 8 AS col0, 76 * NULLIF ( + 42, 46 * 9 - 70 ) / - COUNT ( * )
----
8
-3192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5107
SELECT CASE 92 WHEN - NULLIF ( 87, - COUNT( * ) ) * - CAST( NULL AS DECIMAL ) * - 27 THEN 78 / - 70 WHEN - CASE 59 WHEN + 26 * + 18 + 44 THEN 41 ELSE MIN( ALL 51 ) * + CAST( NULL AS SIGNED ) END THEN NULL ELSE NULL END * CASE 46 WHEN COUNT( * ) + 9 * 74 THEN + ( COUNT( * ) ) * + 60 WHEN + 31 + + 59 THEN 70 END + 81 * 83 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT CASE 92 WHEN - NULLIF ( 87, - COUNT ( * ) ) * - CAST ( NULL AS REAL ) * - 27 THEN 78 / - 70 WHEN - CASE 59 WHEN + 26 * + 18 + 44 THEN 41 ELSE MIN ( ALL 51 ) * + CAST ( NULL AS INTEGER ) END THEN NULL ELSE NULL END * CASE 46 WHEN COUNT ( * ) + 9 * 74 THEN + ( COUNT ( * ) ) * + 60 WHEN + 31 + + 59 THEN 70 END + 81 * 83 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT ALL 72 * CAST( NULL AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL 72 * CAST ( NULL AS INTEGER ) col0
----
NULL

query I rowsort
SELECT DISTINCT 31 * - 12 * + 41
----
-15252

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL - COALESCE ( - 26, + COALESCE ( COALESCE ( + - 13, 60 ), + 79, - 98 ), + 77 + - 14, + MAX( 62 ) * 91 )
----
26

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - COALESCE ( - 26, + COALESCE ( COALESCE ( + - 13, 60 ), + 79, - 98 ), + 77 + - 14, + MAX ( 62 ) * 91 )
----
26

query I rowsort
SELECT ALL - - ( - ( ( - + 14 ) ) ) AS col2
----
14

query III rowsort
SELECT 12 AS col1, + 73 col2, - 58
----
12
73
-58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5113
SELECT DISTINCT - - ( + + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - - ( + + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5114
SELECT ALL COUNT( * ) AS col0, + 37
----
1
37

skipif mysql # not compatible
query II rowsort label-5114
SELECT ALL COUNT ( * ) AS col0, + 37
----
1
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5115
SELECT DISTINCT - - MIN( + 64 ) * - 94 - + + 20, 97 AS col2
----
-6036
97

skipif mysql # not compatible
query II rowsort label-5115
SELECT DISTINCT - - MIN ( + 64 ) * - 94 - + + 20, 97 AS col2
----
-6036
97

query I rowsort
SELECT ALL + + 93 + - - 77
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT - 23 + 96 + + CAST( + + 98 AS SIGNED ) AS col0
----
171

skipif mysql # not compatible
query I rowsort label-5117
SELECT - 23 + 96 + + CAST ( + + 98 AS INTEGER ) AS col0
----
171

onlyif mysql # aggregate syntax: 
query II rowsort label-5118
SELECT 31, NULLIF ( + 43, - COUNT( * ) ) AS col2
----
31
43

skipif mysql # not compatible
query II rowsort label-5118
SELECT 31, NULLIF ( + 43, - COUNT ( * ) ) AS col2
----
31
43

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5119
SELECT CASE - 89 WHEN 52 THEN COALESCE ( + - 85, 67 * - COUNT( - CAST( NULL AS DECIMAL ) ) ) * + 64 WHEN ( AVG ( ALL + 93 ) ) THEN + 36 WHEN MAX( ALL + 3 ) THEN - 41 + 44 ELSE NULL END * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT CASE - 89 WHEN 52 THEN COALESCE ( + - 85, 67 * - COUNT ( - CAST ( NULL AS REAL ) ) ) * + 64 WHEN ( AVG ( ALL + 93 ) ) THEN + 36 WHEN MAX ( ALL + 3 ) THEN - 41 + 44 ELSE NULL END * COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT + COUNT( * ) + + 81 AS col1
----
82

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT + COUNT ( * ) + + 81 AS col1
----
82

query I rowsort
SELECT DISTINCT - - 64 * 95 + 92 AS col2
----
6172

query II rowsort
SELECT - 54, 20 AS col1
----
-54
20

query I rowsort
SELECT ALL - + 14 + 37
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT DISTINCT + - 51 + + COUNT( * ) + - COUNT( * ) + - 8 * + - 17 * + 3 AS col0
----
357

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT + - 51 + + COUNT ( * ) + - COUNT ( * ) + - 8 * + - 17 * + 3 AS col0
----
357

query I rowsort
SELECT ALL - 91 + - 1
----
-92

query I rowsort
SELECT ALL ( - 0 ) AS col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT + ( + + 62 ) DIV - 31 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-5127
SELECT + ( + + 62 ) / - 31 AS col2
----
-2

query I rowsort
SELECT - 34 + + 41 AS col1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT - COUNT( * ) + - - 52 AS col0
----
51

skipif mysql # not compatible
query I rowsort label-5129
SELECT - COUNT ( * ) + - - 52 AS col0
----
51

query I rowsort
SELECT + ( + 82 ) - - 54 AS col0
----
136

query I rowsort
SELECT + 80 + + 17 * + 13
----
301

query I rowsort
SELECT ALL 92 - + NULLIF ( 72, + + COALESCE ( + - 54, - 70 ) ) AS col2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT DISTINCT - 51 DIV + 36
----
-1

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT - 51 / + 36
----
-1

query I rowsort
SELECT - CASE + 13 WHEN - 33 THEN 61 + 29 WHEN - 66 * - + 81 + - 20 THEN 58 * 93 ELSE - 27 END
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5135
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 48 - + - 35 * 47 + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 48 - + - 35 * 47 + 78
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-5136
SELECT + 26 + - - 33 AS col0, 10 AS col0, + 44 + - ( 31 ) DIV 21 AS col0
----
59
10
43

skipif mysql # not compatible
query III rowsort label-5136
SELECT + 26 + - - 33 AS col0, 10 AS col0, + 44 + - ( 31 ) / 21 AS col0
----
59
10
43

query I rowsort
SELECT + 38 * - 78
----
-2964

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT + 16 * COUNT( * ) + - 88 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 16 * COUNT ( * ) + - 88 AS col0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + SUM( 79 ) AS col0
----
79

skipif mysql # not compatible
query I rowsort label-5139
SELECT + SUM ( 79 ) AS col0
----
79

query I rowsort
SELECT - 96 * + 53
----
-5088

query I rowsort
SELECT + 8 * + 88 AS col0
----
704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5142
SELECT + SUM( DISTINCT ( + 57 ) ) DIV - + 63
----
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT + SUM ( DISTINCT ( + 57 ) ) / - + 63
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL COUNT( * ) * - SUM( - 48 ) AS col1
----
48

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL COUNT ( * ) * - SUM ( - 48 ) AS col1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5144
SELECT DISTINCT + CAST( - - AVG ( - 54 ) AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-5144
SELECT DISTINCT + CAST ( - - AVG ( - 54 ) AS INTEGER )
----
-54

query I rowsort
SELECT ( + - 12 )
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-5146
SELECT + + COALESCE ( - + NULLIF ( + 36, 15 DIV - 52 ), - 65, + 53 DIV 30 )
----
-36

skipif mysql # not compatible
query I rowsort label-5146
SELECT + + COALESCE ( - + NULLIF ( + 36, 15 / - 52 ), - 65, + 53 / 30 )
----
-36

query I rowsort
SELECT - 58 * + + 2 + 68 * - + 23 AS col2
----
-1680

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT DISTINCT - - COUNT( * ) * - 93 + - ( + COUNT( * ) ) + - 43 + - 54 * + 48 * CASE 27 * + COUNT( * ) WHEN - 12 + - 34 THEN NULL ELSE + 26 + + MAX( 31 ) END AS col2
----
-147881

skipif mysql # not compatible
query I rowsort label-5148
SELECT DISTINCT - - COUNT ( * ) * - 93 + - ( + COUNT ( * ) ) + - 43 + - 54 * + 48 * CASE 27 * + COUNT ( * ) WHEN - 12 + - 34 THEN NULL ELSE + 26 + + MAX ( 31 ) END AS col2
----
-147881

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT CASE - 64 WHEN 44 * ( - 7 ) * + 88 THEN NULL WHEN 95 + 97 * 84 THEN COUNT( * ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT CASE - 64 WHEN 44 * ( - 7 ) * + 88 THEN NULL WHEN 95 + 97 * 84 THEN COUNT ( * ) END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT CASE - 51 WHEN 22 / - - 57 + 52 + + - 26 THEN NULL WHEN - 27 THEN + SUM( DISTINCT - 59 ) - + 33 * 56 WHEN MAX( DISTINCT - ( 7 ) ) THEN + 15 - 33 WHEN 91 + + 18 THEN 25 + - COUNT( * ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT CASE - 51 WHEN 22 / - - 57 + 52 + + - 26 THEN NULL WHEN - 27 THEN + SUM ( DISTINCT - 59 ) - + 33 * 56 WHEN MAX ( DISTINCT - ( 7 ) ) THEN + 15 - 33 WHEN 91 + + 18 THEN 25 + - COUNT ( * ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT ALL + 95 + - - COALESCE ( 85, + ( + - COUNT( * ) ) * - 91 * - 22 * + 41, ( - 93 ) ) * - 56 col1
----
-4665

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL + 95 + - - COALESCE ( 85, + ( + - COUNT ( * ) ) * - 91 * - 22 * + 41, ( - 93 ) ) * - 56 col1
----
-4665

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - 52 + - - ( - + 39 ) * + + NULLIF ( + CASE - 17 WHEN + ( + COUNT( * ) ) + 63 THEN - 46 WHEN 37 THEN - ( + 48 ) WHEN + 99 THEN + 81 ELSE NULL END, 77 ) + + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-5152
SELECT - 52 + - - ( - + 39 ) * + + NULLIF ( + CASE - 17 WHEN + ( + COUNT ( * ) ) + 63 THEN - 46 WHEN 37 THEN - ( + 48 ) WHEN + 99 THEN + 81 ELSE NULL END, 77 ) + + 18
----
NULL

query I rowsort
SELECT DISTINCT + + 49 + 42 AS col1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-5154
SELECT DISTINCT + MIN( ALL - - 20 ) AS col0, - 75 AS col1
----
20
-75

skipif mysql # not compatible
query II rowsort label-5154
SELECT DISTINCT + MIN ( ALL - - 20 ) AS col0, - 75 AS col1
----
20
-75

query I rowsort
SELECT - - 54 * + 98 AS col1
----
5292

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT + - 49 + MAX( + 97 ) + 80 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-5156
SELECT + - 49 + MAX ( + 97 ) + 80 AS col1
----
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT ALL + 91 - + 15 + CASE + 80 WHEN + + COUNT( * ) + - + 3 THEN NULL WHEN - + 47 THEN - 79 ELSE - 33 END + - 80
----
-37

skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL + 91 - + 15 + CASE + 80 WHEN + + COUNT ( * ) + - + 3 THEN NULL WHEN - + 47 THEN - 79 ELSE - 33 END + - 80
----
-37

query I rowsort
SELECT ALL - 37 * - 61
----
2257

query I rowsort
SELECT DISTINCT + 10 - 52
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT 41 AS col1, COUNT( * ) AS col0
----
41
1

skipif mysql # not compatible
query II rowsort label-5160
SELECT 41 AS col1, COUNT ( * ) AS col0
----
41
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT - 46 * + COUNT( * )
----
-46

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - 46 * + COUNT ( * )
----
-46

query I rowsort
SELECT ALL ( ( - 90 ) )
----
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5163
SELECT - CASE - 81 WHEN + 65 THEN NULL WHEN + CAST( + + 62 AS DECIMAL ) * + + 69 THEN - 49 / - 71 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT - CASE - 81 WHEN + 65 THEN NULL WHEN + CAST ( + + 62 AS REAL ) * + + 69 THEN - 49 / - 71 END AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5164
SELECT - 38 DIV + - COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5164
SELECT - 38 / + - COUNT ( * )
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT - COALESCE ( 71, - COUNT( * ) )
----
-71

skipif mysql # not compatible
query I rowsort label-5165
SELECT - COALESCE ( 71, - COUNT ( * ) )
----
-71

query I rowsort
SELECT - ( + 62 ) AS col2
----
-62

query I rowsort
SELECT + ( 46 ) * - ( - 38 )
----
1748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5168
SELECT ALL 85 DIV - ( + + ( NULLIF ( 61, COUNT( * ) + + 18 * + 92 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL 85 / - ( + + ( NULLIF ( 61, COUNT ( * ) + + 18 * + 92 ) ) )
----
-1

query I rowsort
SELECT + COALESCE ( - + 65, + 51, + 41 * - 40 )
----
-65

query II rowsort
SELECT DISTINCT + 21 AS col2, - 76 * 3 AS col2
----
21
-228

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5171
SELECT ALL + 2 DIV + + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL + 2 / + + COUNT ( * ) AS col0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT CAST( 43 AS SIGNED ) AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5172
SELECT CAST ( 43 AS INTEGER ) AS col0
----
43

onlyif mysql # DIV for integer division: 
query II rowsort label-5173
SELECT DISTINCT + 30 DIV - 22 + - 46 AS col1, 20 AS col0
----
-47
20

skipif mysql # not compatible
query II rowsort label-5173
SELECT DISTINCT + 30 / - 22 + - 46 AS col1, 20 AS col0
----
-47
20

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5174
SELECT ALL - 47 DIV - - 26 * + COUNT( * ) + COUNT( * ) col2, - 28
----
0
-28

skipif mysql # not compatible
query II rowsort label-5174
SELECT ALL - 47 / - - 26 * + COUNT ( * ) + COUNT ( * ) col2, - 28
----
0
-28

query I rowsort
SELECT + 36 - - 73 AS col1
----
109

query I rowsort
SELECT ALL 42 * - 74 * 0 * - NULLIF ( - + 64, - + COALESCE ( 64, - - 34 - - 13 ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT - ( + - CAST( NULL AS SIGNED ) ) + 65 * - - 88 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT - ( + - CAST ( NULL AS INTEGER ) ) + 65 * - - 88 col1
----
NULL

query I rowsort
SELECT DISTINCT 99 * + - 58 AS col2
----
-5742

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5179
SELECT DISTINCT - 3 DIV + 66 + 20 AS col2, MIN( DISTINCT - CAST( NULL AS SIGNED ) ) * + - 25
----
20
NULL

skipif mysql # not compatible
query II rowsort label-5179
SELECT DISTINCT - 3 / + 66 + 20 AS col2, MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) * + - 25
----
20
NULL

query I rowsort
SELECT - + 3 * + 65 + 25 AS col1
----
-170

query II rowsort
SELECT DISTINCT - 9, + 64 + - 81 AS col1
----
-9
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5182
SELECT ALL - CAST( NULL AS SIGNED ) + 61
----
NULL

skipif mysql # not compatible
query I rowsort label-5182
SELECT ALL - CAST ( NULL AS INTEGER ) + 61
----
NULL

query I rowsort
SELECT DISTINCT - + 92 col1
----
-92

query I rowsort
SELECT ALL - - ( + + ( + - 65 ) ) AS col1
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT + + ( - ( + MIN( DISTINCT + CASE + - 5 WHEN - + 75 THEN + CASE - + 97 WHEN + 99 + - 67 THEN NULL WHEN 71 + 67 THEN NULL WHEN - 2 THEN + 48 * 5 END / 51 END ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5185
SELECT + + ( - ( + MIN ( DISTINCT + CASE + - 5 WHEN - + 75 THEN + CASE - + 97 WHEN + 99 + - 67 THEN NULL WHEN 71 + 67 THEN NULL WHEN - 2 THEN + 48 * 5 END / 51 END ) ) )
----
NULL

query I rowsort
SELECT DISTINCT - 13 + + 77
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT MIN( DISTINCT + - ( - 66 ) )
----
66

skipif mysql # not compatible
query I rowsort label-5187
SELECT MIN ( DISTINCT + - ( - 66 ) )
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT 76 + - + CASE 30 WHEN + COALESCE ( + 76, + 1, + 38 ) + - + 40 THEN + ( + 49 ) ELSE + 34 END * + COALESCE ( + 27 + COUNT( * ), 1 ) AS col2
----
-876

skipif mysql # not compatible
query I rowsort label-5188
SELECT 76 + - + CASE 30 WHEN + COALESCE ( + 76, + 1, + 38 ) + - + 40 THEN + ( + 49 ) ELSE + 34 END * + COALESCE ( + 27 + COUNT ( * ), 1 ) AS col2
----
-876

query I rowsort
SELECT 58 * 45 - 18
----
2592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5190
SELECT 9 * + CAST( NULL AS SIGNED ) * - COALESCE ( 55, - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5190
SELECT 9 * + CAST ( NULL AS INTEGER ) * - COALESCE ( 55, - 6 )
----
NULL

query I rowsort
SELECT + 77 * + + 32
----
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT - COUNT( * ) + + 94 col2
----
93

skipif mysql # not compatible
query I rowsort label-5192
SELECT - COUNT ( * ) + + 94 col2
----
93

query II rowsort
SELECT DISTINCT 95, 48 col1
----
95
48

query I rowsort
SELECT ALL 0 * 57
----
0

query I rowsort
SELECT 55 * + ( + 9 ) AS col2
----
495

onlyif mysql # aggregate syntax: 
query II rowsort label-5196
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1, - 18 + - 13 AS col1
----
-1
-31

skipif mysql # not compatible
query II rowsort label-5196
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1, - 18 + - 13 AS col1
----
-1
-31

query I rowsort
SELECT ALL - 60 - + 48 * 43
----
-2124

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT 61 + + + MIN( ALL 96 ) AS col2
----
157

skipif mysql # not compatible
query I rowsort label-5198
SELECT 61 + + + MIN ( ALL 96 ) AS col2
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT 6 - - 92 / - CAST( NULL AS SIGNED ) + - ( - - 91 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5199
SELECT 6 - - 92 / - CAST ( NULL AS INTEGER ) + - ( - - 91 )
----
NULL

query I rowsort
SELECT ALL + 34 * - 88 AS col0
----
-2992

query I rowsort
SELECT DISTINCT + 16 * + - 73
----
-1168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5202
SELECT - 57 / - COUNT( * ) * - 51 + CASE CAST( NULL AS SIGNED ) WHEN ( 18 ) THEN + 11 WHEN MAX( DISTINCT + 50 ) * - 56 THEN - ( 55 ) * - 47 END * + 15 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5202
SELECT - 57 / - COUNT ( * ) * - 51 + CASE CAST ( NULL AS INTEGER ) WHEN ( 18 ) THEN + 11 WHEN MAX ( DISTINCT + 50 ) * - 56 THEN - ( 55 ) * - 47 END * + 15 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT 89 DIV - 70 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5203
SELECT 89 / - 70 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5204
SELECT - 69 * + ( + - 13 ) + ( - - COUNT( * ) ) + + 89 - - CAST( NULL AS SIGNED ) + + 88 * + 96 / 53 + + 39 * - 47 * + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT - 69 * + ( + - 13 ) + ( - - COUNT ( * ) ) + + 89 - - CAST ( NULL AS INTEGER ) + + 88 * + 96 / 53 + + 39 * - 47 * + 85
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT ALL + ( COUNT( 51 ) ) + + - 19 + + - 84 * - 28 * + 36 AS col0, 79
----
84654
79

skipif mysql # not compatible
query II rowsort label-5205
SELECT ALL + ( COUNT ( 51 ) ) + + - 19 + + - 84 * - 28 * + 36 AS col0, 79
----
84654
79

query I rowsort
SELECT DISTINCT - 9 + + + 38
----
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5207
SELECT ALL + 50 + - 20 + + SUM( - 37 ) * + CASE 92 WHEN + 55 * - ( 94 ) + NULLIF ( + 46 + + COUNT( * ) / NULLIF ( - 5 / - 95 + MAX( DISTINCT 67 ) * 45, + ( - 94 ) ), - 97 + 21 ) THEN + 29 * CAST( NULL AS SIGNED ) WHEN - COUNT( * ) + + 69 THEN - AVG ( DISTINCT 83 ) ELSE NULL END * + 9
----
NULL

skipif mysql # not compatible
query I rowsort label-5207
SELECT ALL + 50 + - 20 + + SUM ( - 37 ) * + CASE 92 WHEN + 55 * - ( 94 ) + NULLIF ( + 46 + + COUNT ( * ) / NULLIF ( - 5 / - 95 + MAX ( DISTINCT 67 ) * 45, + ( - 94 ) ), - 97 + 21 ) THEN + 29 * CAST ( NULL AS INTEGER ) WHEN - COUNT ( * ) + + 69 THEN - AVG ( DISTINCT 83 ) ELSE NULL END * + 9
----
NULL

query I rowsort
SELECT ALL - ( + 47 ) AS col1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT 44 * MIN( DISTINCT - 69 )
----
-3036

skipif mysql # not compatible
query I rowsort label-5209
SELECT 44 * MIN ( DISTINCT - 69 )
----
-3036

query I rowsort
SELECT 13 * + + 6 + 71 - 50 + 94 col1
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT - MIN( - + 68 ) * - 48 AS col0
----
-3264

skipif mysql # not compatible
query I rowsort label-5211
SELECT - MIN ( - + 68 ) * - 48 AS col0
----
-3264

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5212
SELECT ALL 88 - + CAST( NULL AS DECIMAL ) AS col2, 90 * 48
----
NULL
4320

skipif mysql # not compatible
query II rowsort label-5212
SELECT ALL 88 - + CAST ( NULL AS REAL ) AS col2, 90 * 48
----
NULL
4320

query I rowsort
SELECT DISTINCT + ( NULLIF ( + 72, - - 59 ) ) col0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT CAST( + SUM( 49 ) AS SIGNED ) + 88 AS col1
----
137

skipif mysql # not compatible
query I rowsort label-5214
SELECT CAST ( + SUM ( 49 ) AS INTEGER ) + 88 AS col1
----
137

query I rowsort
SELECT DISTINCT + 92 * 62 * - 93
----
-530472

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT DISTINCT 74 DIV + 45 col2
----
1

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT 74 / + 45 col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5217
SELECT ( 65 ) * 86 AS col2, ( - - MIN( ALL - 66 ) ) + CAST( NULL AS SIGNED ) AS col0
----
5590
NULL

skipif mysql # not compatible
query II rowsort label-5217
SELECT ( 65 ) * 86 AS col2, ( - - MIN ( ALL - 66 ) ) + CAST ( NULL AS INTEGER ) AS col0
----
5590
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5218
SELECT 90 + - - ( - + CAST( NULL AS DECIMAL ) ) + + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT 90 + - - ( - + CAST ( NULL AS REAL ) ) + + 72
----
NULL

query I rowsort
SELECT ALL 9 * 19 AS col1
----
171

query II rowsort
SELECT DISTINCT 14 + + 10 * 4 AS col2, + 88 col1
----
54
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT ALL 73 + + CAST( + - 0 AS SIGNED )
----
73

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL 73 + + CAST ( + - 0 AS INTEGER )
----
73

query I rowsort
SELECT DISTINCT 32 * + 94 AS col2
----
3008

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL + COUNT( * ) + + + 81
----
82

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL + COUNT ( * ) + + + 81
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ( - + 0 ) * + COUNT( * ) + - - 31
----
31

skipif mysql # not compatible
query I rowsort label-5224
SELECT ( - + 0 ) * + COUNT ( * ) + - - 31
----
31

query I rowsort
SELECT 15 * - 80
----
-1200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5226
SELECT - COUNT( - CAST( - - 23 AS SIGNED ) )
----
-1

skipif mysql # not compatible
query I rowsort label-5226
SELECT - COUNT ( - CAST ( - - 23 AS INTEGER ) )
----
-1

query II rowsort
SELECT ALL - ( 9 ) + 26 AS col0, + 19 * + 35
----
17
665

query I rowsort
SELECT 41 * 8
----
328

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT ALL + + COALESCE ( 60, COUNT( * ) + COUNT( * ) ) * - 90 * - 9 AS col1
----
48600

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL + + COALESCE ( 60, COUNT ( * ) + COUNT ( * ) ) * - 90 * - 9 AS col1
----
48600

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT SUM( - 56 ) AS col2
----
-56

skipif mysql # not compatible
query I rowsort label-5230
SELECT SUM ( - 56 ) AS col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-5231
SELECT DISTINCT + + ( - - MAX( 47 ) ) AS col0, - 97 * - - 0 AS col0
----
47
0

skipif mysql # not compatible
query II rowsort label-5231
SELECT DISTINCT + + ( - - MAX ( 47 ) ) AS col0, - 97 * - - 0 AS col0
----
47
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5232
SELECT ALL + COALESCE ( + 14, - 39 DIV - COUNT( * ) * - 53, - 35 * + SUM( 18 ) * - + 60 ) * + 84 + + 14 AS col2
----
1190

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL + COALESCE ( + 14, - 39 / - COUNT ( * ) * - 53, - 35 * + SUM ( 18 ) * - + 60 ) * + 84 + + 14 AS col2
----
1190

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT DISTINCT 47 * + 66 * + 68 * - COUNT( * )
----
-210936

skipif mysql # not compatible
query I rowsort label-5233
SELECT DISTINCT 47 * + 66 * + 68 * - COUNT ( * )
----
-210936

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5234
SELECT 40, - 28 * - + 44 * + + CAST( - COALESCE ( + 56, 10 ) AS SIGNED ) DIV 7 + + 65 AS col1
----
40
-9791

skipif mysql # not compatible
query II rowsort label-5234
SELECT 40, - 28 * - + 44 * + + CAST ( - COALESCE ( + 56, 10 ) AS INTEGER ) / 7 + + 65 AS col1
----
40
-9791

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT ALL - CAST( - 94 AS SIGNED ) * + ( - ( + 31 ) ) - - 12 AS col0
----
-2902

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL - CAST ( - 94 AS INTEGER ) * + ( - ( + 31 ) ) - - 12 AS col0
----
-2902

onlyif mysql # aggregate syntax: 
query II rowsort label-5236
SELECT - + 94 * - + 30 * 25, - 45 * + 94 * - COUNT( DISTINCT - 82 ) AS col0
----
70500
4230

skipif mysql # not compatible
query II rowsort label-5236
SELECT - + 94 * - + 30 * 25, - 45 * + 94 * - COUNT ( DISTINCT - 82 ) AS col0
----
70500
4230

onlyif mysql # aggregate syntax: 
query II rowsort label-5237
SELECT ALL + + ( + COUNT( * ) ) * + COUNT( * ) AS col0, 14 - + + 79 AS col0
----
1
-65

skipif mysql # not compatible
query II rowsort label-5237
SELECT ALL + + ( + COUNT ( * ) ) * + COUNT ( * ) AS col0, 14 - + + 79 AS col0
----
1
-65

query II rowsort
SELECT DISTINCT - - NULLIF ( + 18, - 35 * - 36 ) * + 54 AS col0, 95 * 29 AS col2
----
972
2755

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT - + 44 DIV + 47 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5239
SELECT - + 44 / + 47 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT - 62 * + 26 + - COUNT( * ) AS col0
----
-1613

skipif mysql # not compatible
query I rowsort label-5240
SELECT - 62 * + 26 + - COUNT ( * ) AS col0
----
-1613

query I rowsort
SELECT - 32 * 79 AS col0
----
-2528

query II rowsort
SELECT ALL + - 6 AS col0, + 5
----
-6
5

onlyif mysql # aggregate syntax: 
query II rowsort label-5243
SELECT COUNT( * ) AS col1, 51
----
1
51

skipif mysql # not compatible
query II rowsort label-5243
SELECT COUNT ( * ) AS col1, 51
----
1
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5244
SELECT + 59 DIV + + SUM( - 72 )
----
0

skipif mysql # not compatible
query I rowsort label-5244
SELECT + 59 / + + SUM ( - 72 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT ALL - 72 DIV + - NULLIF ( + + 25, ( + 0 ) ) - 69 + - 9
----
-76

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - 72 / + - NULLIF ( + + 25, ( + 0 ) ) - 69 + - 9
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + SUM( DISTINCT - 99 ) AS col2
----
-99

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + SUM ( DISTINCT - 99 ) AS col2
----
-99

query I rowsort
SELECT + - ( - - 6 ) col2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5248
SELECT ALL - COUNT( * ) * - CAST( + 6 AS SIGNED ) * + NULLIF ( + AVG ( - 19 ), - ( 39 ) ) + AVG ( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5248
SELECT ALL - COUNT ( * ) * - CAST ( + 6 AS INTEGER ) * + NULLIF ( + AVG ( - 19 ), - ( 39 ) ) + AVG ( + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5249
SELECT - - 17 DIV + 41 + - COUNT( * ) * - 4 AS col0
----
4

skipif mysql # not compatible
query I rowsort label-5249
SELECT - - 17 / + 41 + - COUNT ( * ) * - 4 AS col0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT ALL - COALESCE ( + 50, + 17 ) * - COUNT( * ) AS col1
----
50

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL - COALESCE ( + 50, + 17 ) * - COUNT ( * ) AS col1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT COUNT( ALL 1 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5251
SELECT COUNT ( ALL 1 ) AS col0
----
1

query I rowsort
SELECT ALL + 33 * - 53
----
-1749

onlyif mysql # aggregate syntax: 
query II rowsort label-5253
SELECT - 35 AS col0, 33 * 64 * + 52 * COUNT( * ) * - 34 * 47
----
-35
-175498752

skipif mysql # not compatible
query II rowsort label-5253
SELECT - 35 AS col0, 33 * 64 * + 52 * COUNT ( * ) * - 34 * 47
----
-35
-175498752

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT 33 * + - ( 4 ) - ( - 82 ) + + - COUNT( * )
----
-51

skipif mysql # not compatible
query I rowsort label-5254
SELECT 33 * + - ( 4 ) - ( - 82 ) + + - COUNT ( * )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5255
SELECT - ( 59 ) + - 52 - + CAST( NULL AS SIGNED ) + + - 4 + + CAST( NULL AS SIGNED ) + - 0 + 68 * - - 67 - COALESCE ( + - NULLIF ( 94, 32 / 2 - - 76 ), 33, + 58 + 92 * 98, + 36 * - COUNT( + CAST( NULL AS SIGNED ) / + 32 ) ) + 75 * + 14
----
NULL

skipif mysql # not compatible
query I rowsort label-5255
SELECT - ( 59 ) + - 52 - + CAST ( NULL AS INTEGER ) + + - 4 + + CAST ( NULL AS INTEGER ) + - 0 + 68 * - - 67 - COALESCE ( + - NULLIF ( 94, 32 / 2 - - 76 ), 33, + 58 + 92 * 98, + 36 * - COUNT ( + CAST ( NULL AS INTEGER ) / + 32 ) ) + 75 * + 14
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL - 70 + + + COUNT( * ) - + + 84
----
-153

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL - 70 + + + COUNT ( * ) - + + 84
----
-153

query I rowsort
SELECT DISTINCT ( + COALESCE ( - 93, 57, + 40 ) ) AS col2
----
-93

query I rowsort
SELECT DISTINCT ( ( - 39 ) )
----
-39

query I rowsort
SELECT ALL 55 + - - 77 * 61
----
4752

query II rowsort
SELECT + 8 + - 34 AS col2, + 59 * 4
----
-26
236

query I rowsort
SELECT ALL 19 + - + 1
----
18

query II rowsort
SELECT 0 AS col1, + 77 * - 69
----
0
-5313

query II rowsort
SELECT - 23, - 39 AS col2
----
-23
-39

query II rowsort
SELECT + 78 + + 51 + 12 + + - 93 AS col1, - 11
----
48
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT - 83 - 72 * + + 34 + + COUNT( * ) + - + 44
----
-2574

skipif mysql # not compatible
query I rowsort label-5265
SELECT - 83 - 72 * + + 34 + + COUNT ( * ) + - + 44
----
-2574

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT ALL SUM( + 25 ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-5266
SELECT ALL SUM ( + 25 ) AS col1
----
25

query I rowsort
SELECT DISTINCT COALESCE ( 80, 0 ) * 57 AS col1
----
4560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT DISTINCT CAST( NULL AS SIGNED ) * 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT ALL - 28 - - - COUNT( * )
----
-29

skipif mysql # not compatible
query I rowsort label-5269
SELECT ALL - 28 - - - COUNT ( * )
----
-29

query I rowsort
SELECT - 7 + - - 37 + 83 * - 56 AS col1
----
-4618

query II rowsort
SELECT DISTINCT + + 81, 47 * - + 94 AS col0
----
81
-4418

onlyif mysql # aggregate syntax: 
query II rowsort label-5272
SELECT - 61 * 71 + - - COALESCE ( MAX( DISTINCT - 12 ), + 58 ) + - + 42 AS col2, - 51 - + + 28 AS col2
----
-4385
-79

skipif mysql # not compatible
query II rowsort label-5272
SELECT - 61 * 71 + - - COALESCE ( MAX ( DISTINCT - 12 ), + 58 ) + - + 42 AS col2, - 51 - + + 28 AS col2
----
-4385
-79

query I rowsort
SELECT + 60 * - ( + 95 ) AS col0
----
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT MIN( DISTINCT + 78 ) AS col2
----
78

skipif mysql # not compatible
query I rowsort label-5274
SELECT MIN ( DISTINCT + 78 ) AS col2
----
78

query I rowsort
SELECT + 48 * - + 48 + - 45 AS col0
----
-2349

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5276
SELECT + - CAST( MIN( ALL + ( 23 ) ) AS SIGNED ), + CASE MIN( ALL - 11 ) WHEN 28 / - 99 THEN NULL WHEN - 58 THEN - COALESCE ( CAST( NULL AS SIGNED ), COUNT( 67 ) ) END * + CAST( NULL AS SIGNED ) AS col1
----
-23
NULL

skipif mysql # not compatible
query II rowsort label-5276
SELECT + - CAST ( MIN ( ALL + ( 23 ) ) AS INTEGER ), + CASE MIN ( ALL - 11 ) WHEN 28 / - 99 THEN NULL WHEN - 58 THEN - COALESCE ( CAST ( NULL AS INTEGER ), COUNT ( 67 ) ) END * + CAST ( NULL AS INTEGER ) AS col1
----
-23
NULL

query II rowsort
SELECT DISTINCT + - 61 AS col1, + 40
----
-61
40

query I rowsort
SELECT DISTINCT + + COALESCE ( + ( + 5 ), - - 73, 15 ) AS col0
----
5

query I rowsort
SELECT + 44 * + 85 + + 56
----
3796

query I rowsort
SELECT ALL 35 * + - 9 + + 35 + - 12
----
-292

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5281
SELECT - NULLIF ( - 11, 50 * + 92 + - + CAST( - 1 AS SIGNED ) ) + + + COUNT( * ) + - 96 * + 50
----
-4788

skipif mysql # not compatible
query I rowsort label-5281
SELECT - NULLIF ( - 11, 50 * + 92 + - + CAST ( - 1 AS INTEGER ) ) + + + COUNT ( * ) + - 96 * + 50
----
-4788

query I rowsort
SELECT + 97 - 84 + + 98 AS col1
----
111

query II rowsort
SELECT DISTINCT 46 * + 28 + - 37 AS col0, 52 + - ( - - 15 ) AS col2
----
1251
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT ALL + 70 * + ( - NULLIF ( + COALESCE ( + - 31, + SUM( DISTINCT + 25 ) ), + 19 + + 74 ) ) + + - 90 + + 57 col1
----
2137

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL + 70 * + ( - NULLIF ( + COALESCE ( + - 31, + SUM ( DISTINCT + 25 ) ), + 19 + + 74 ) ) + + - 90 + + 57 col1
----
2137

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COUNT( * ) * 44 + + 53 + + ( + 36 ) AS col2
----
133

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COUNT ( * ) * 44 + + 53 + + ( + 36 ) AS col2
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT - CASE - 40 WHEN 34 THEN NULL WHEN + 49 THEN + - 72 ELSE NULL END + - 98 + + 81 + + 60 + ( + COUNT( * ) ) * + 13 * - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-5286
SELECT - CASE - 40 WHEN 34 THEN NULL WHEN + 49 THEN + - 72 ELSE NULL END + - 98 + + 81 + + 60 + ( + COUNT ( * ) ) * + 13 * - 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT MAX( DISTINCT + 77 ) * 31 * COUNT( * ) AS col2
----
2387

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT MAX ( DISTINCT + 77 ) * 31 * COUNT ( * ) AS col2
----
2387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5288
SELECT ALL 52 * + CAST( NULL AS SIGNED ) * 25 * - + 37 + 36 * + CASE - 0 WHEN - 10 * - 17 - + - COALESCE ( - 0, 23 - SUM( + COALESCE ( 25, + 32 ) ) ) / CASE - 42 WHEN - 44 THEN + 62 WHEN MIN( + 26 ) + 69 THEN NULL END + 28 THEN NULL WHEN 24 + 62 THEN COUNT( * ) END / + 79
----
NULL

skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL 52 * + CAST ( NULL AS INTEGER ) * 25 * - + 37 + 36 * + CASE - 0 WHEN - 10 * - 17 - + - COALESCE ( - 0, 23 - SUM ( + COALESCE ( 25, + 32 ) ) ) / CASE - 42 WHEN - 44 THEN + 62 WHEN MIN ( + 26 ) + 69 THEN NULL END + 28 THEN NULL WHEN 24 + 62 THEN COUNT ( * ) END / + 79
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5289
SELECT + 14 + + - 91 * - ( COUNT( * ) ) * 99 AS col0, + 77 * 33 AS col1
----
9023
2541

skipif mysql # not compatible
query II rowsort label-5289
SELECT + 14 + + - 91 * - ( COUNT ( * ) ) * 99 AS col0, + 77 * 33 AS col1
----
9023
2541

query I rowsort
SELECT ALL - 43 * - - 65 + - + ( + + 18 )
----
-2813

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - MAX( ALL - 64 ) * - 24 AS col2
----
-1536

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - MAX ( ALL - 64 ) * - 24 AS col2
----
-1536

query I rowsort
SELECT - 2 * + 34
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-5293
SELECT + 8 * + COUNT( * ) col2
----
8

skipif mysql # not compatible
query I rowsort label-5293
SELECT + 8 * + COUNT ( * ) col2
----
8

onlyif mysql # aggregate syntax: 
query II rowsort label-5294
SELECT SUM( - 60 ) AS col2, + 5 * COUNT( * ) col0
----
-60
5

skipif mysql # not compatible
query II rowsort label-5294
SELECT SUM ( - 60 ) AS col2, + 5 * COUNT ( * ) col0
----
-60
5

query I rowsort
SELECT ALL - 85 * + - 95
----
8075

query I rowsort
SELECT DISTINCT 27 col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT DISTINCT + MAX( - - 13 ) * + + 40
----
520

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + MAX ( - - 13 ) * + + 40
----
520

onlyif mysql # aggregate syntax: 
query II rowsort label-5298
SELECT COALESCE ( + - 48, + - 83, - NULLIF ( 80, - 7 ) + + 37 ) AS col2, COUNT( * )
----
-48
1

skipif mysql # not compatible
query II rowsort label-5298
SELECT COALESCE ( + - 48, + - 83, - NULLIF ( 80, - 7 ) + + 37 ) AS col2, COUNT ( * )
----
-48
1

query I rowsort
SELECT ALL COALESCE ( + 65, - 24 )
----
65

query I rowsort
SELECT DISTINCT 66 * 52 + 4 * + 69 AS col2
----
3708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5301
SELECT - 35 * + COUNT( * ) DIV + 63
----
0

skipif mysql # not compatible
query I rowsort label-5301
SELECT - 35 * + COUNT ( * ) / + 63
----
0

query I rowsort
SELECT ALL ( 33 ) * - - 91 * - 57
----
-171171

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT 42 * + COUNT( * ) + - + 95 + ( + - 51 ) - COUNT( * )
----
-105

skipif mysql # not compatible
query I rowsort label-5303
SELECT 42 * + COUNT ( * ) + - + 95 + ( + - 51 ) - COUNT ( * )
----
-105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5304
SELECT DISTINCT - MIN( DISTINCT + 25 ) * + 90 + 66 / - COUNT( * ) * + + CASE - + 54 WHEN ( + - 70 ) + + 34 + - CAST( - + 16 AS SIGNED ) + 80 * - MIN( ALL - 82 ) THEN NULL WHEN + 58 * 9 THEN + 60 * ( 9 * COUNT( * ) ) END * - 99 + - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - MIN ( DISTINCT + 25 ) * + 90 + 66 / - COUNT ( * ) * + + CASE - + 54 WHEN ( + - 70 ) + + 34 + - CAST ( - + 16 AS INTEGER ) + 80 * - MIN ( ALL - 82 ) THEN NULL WHEN + 58 * 9 THEN + 60 * ( 9 * COUNT ( * ) ) END * - 99 + - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT ALL - - COALESCE ( 62, - + SUM( DISTINCT 6 ) )
----
62

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - - COALESCE ( 62, - + SUM ( DISTINCT 6 ) )
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT 6 DIV + 23
----
0

skipif mysql # not compatible
query I rowsort label-5306
SELECT 6 / + 23
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5307
SELECT ALL 50 * - 34, - 87 + 4 * - ( COUNT( * ) ) * COUNT( * ) + + 59 AS col2
----
-1700
-32

skipif mysql # not compatible
query II rowsort label-5307
SELECT ALL 50 * - 34, - 87 + 4 * - ( COUNT ( * ) ) * COUNT ( * ) + + 59 AS col2
----
-1700
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT ALL 55 * - 12 + + COUNT( * ) + + 20
----
-639

skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL 55 * - 12 + + COUNT ( * ) + + 20
----
-639

onlyif mysql # DIV for integer division: 
query I rowsort label-5309
SELECT DISTINCT + - 62 DIV + - 13 + - 81 AS col2
----
-77

skipif mysql # not compatible
query I rowsort label-5309
SELECT DISTINCT + - 62 / + - 13 + - 81 AS col2
----
-77

query I rowsort
SELECT DISTINCT 68 + + 16 + - + 0 * + - 53
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT 86 DIV 55 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5311
SELECT 86 / 55 AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT 26 * - 57 - COALESCE ( + - 93, 48, + + CASE 10 WHEN + - COUNT( * ) THEN 25 END )
----
-1389

skipif mysql # not compatible
query I rowsort label-5312
SELECT 26 * - 57 - COALESCE ( + - 93, 48, + + CASE 10 WHEN + - COUNT ( * ) THEN 25 END )
----
-1389

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT ALL - COUNT( + - 84 ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5313
SELECT ALL - COUNT ( + - 84 ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ( - 93 ) * CASE + + COUNT( + 54 ) WHEN + 12 THEN - 21 + 85 * + ( 92 ) ELSE + ( + 6 ) END
----
-558

skipif mysql # not compatible
query I rowsort label-5314
SELECT ( - 93 ) * CASE + + COUNT ( + 54 ) WHEN + 12 THEN - 21 + 85 * + ( 92 ) ELSE + ( + 6 ) END
----
-558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL + 4 + + ( + - CAST( - 48 AS SIGNED ) ) col2
----
52

skipif mysql # not compatible
query I rowsort label-5315
SELECT ALL + 4 + + ( + - CAST ( - 48 AS INTEGER ) ) col2
----
52

query I rowsort
SELECT 78 + 82 AS col0
----
160

onlyif mysql # aggregate syntax: 
query II rowsort label-5317
SELECT DISTINCT - 88 + + - 48 * + 8 AS col1, SUM( + 95 ) + - - 59
----
-472
154

skipif mysql # not compatible
query II rowsort label-5317
SELECT DISTINCT - 88 + + - 48 * + 8 AS col1, SUM ( + 95 ) + - - 59
----
-472
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5318
SELECT ALL - 9 AS col2, - CAST( NULL AS SIGNED )
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-5318
SELECT ALL - 9 AS col2, - CAST ( NULL AS INTEGER )
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT DISTINCT - MIN( + - 51 ) + 64 col2
----
115

skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT - MIN ( + - 51 ) + 64 col2
----
115

query I rowsort
SELECT ALL - ( - + 80 ) AS col2
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT ALL - COUNT( * ) AS col1, 5 + + + COUNT( * ) AS col2
----
-1
6

skipif mysql # not compatible
query II rowsort label-5321
SELECT ALL - COUNT ( * ) AS col1, 5 + + + COUNT ( * ) AS col2
----
-1
6

query I rowsort
SELECT DISTINCT 9 + + 85 AS col2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT DISTINCT - CAST( - - 93 AS SIGNED )
----
-93

skipif mysql # not compatible
query I rowsort label-5323
SELECT DISTINCT - CAST ( - - 93 AS INTEGER )
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT ALL - MAX( - 83 ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-5324
SELECT ALL - MAX ( - 83 ) AS col1
----
83

query I rowsort
SELECT 5 * 68
----
340

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT DISTINCT - 71 + - + COUNT( * ) * - 65
----
-6

skipif mysql # not compatible
query I rowsort label-5326
SELECT DISTINCT - 71 + - + COUNT ( * ) * - 65
----
-6

query I rowsort
SELECT ALL - NULLIF ( 49, 63 ) AS col2
----
-49

query II rowsort
SELECT + 0 AS col1, 74
----
0
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT ALL - SUM( DISTINCT + 53 )
----
-53

skipif mysql # not compatible
query I rowsort label-5329
SELECT ALL - SUM ( DISTINCT + 53 )
----
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-5330
SELECT 5 + 46 * 39 AS col1, 84 + + MIN( + 91 )
----
1799
175

skipif mysql # not compatible
query II rowsort label-5330
SELECT 5 + 46 * 39 AS col1, 84 + + MIN ( + 91 )
----
1799
175

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5331
SELECT - 66, CAST( NULL AS SIGNED ) * + - 92 / - 74 AS col0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-5331
SELECT - 66, CAST ( NULL AS INTEGER ) * + - 92 / - 74 AS col0
----
-66
NULL

query I rowsort
SELECT 33 * - 32
----
-1056

query I rowsort
SELECT ALL 19 * + + 12
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-5334
SELECT COUNT( * ) - + 45 + COUNT( * ) AS col0, 13 + + 75
----
-43
88

skipif mysql # not compatible
query II rowsort label-5334
SELECT COUNT ( * ) - + 45 + COUNT ( * ) AS col0, 13 + + 75
----
-43
88

query I rowsort
SELECT ALL + 8 - + 6
----
2

query I rowsort
SELECT + 76 + 20 AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT DISTINCT - + 36 * + COUNT( * ) AS col1
----
-36

skipif mysql # not compatible
query I rowsort label-5337
SELECT DISTINCT - + 36 * + COUNT ( * ) AS col1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5338
SELECT 52 + - 54 + - 12 DIV - 8 * ( COUNT( * ) ) col1
----
-1

skipif mysql # not compatible
query I rowsort label-5338
SELECT 52 + - 54 + - 12 / - 8 * ( COUNT ( * ) ) col1
----
-1

query II rowsort
SELECT + 29 AS col1, + 79 AS col0
----
29
79

query I rowsort
SELECT + 3 * + + 46 * + - 89 * + + 25
----
-307050

query I rowsort
SELECT - ( + ( - - 20 ) ) + - 8 AS col0
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5342
SELECT ALL - - 69 * COALESCE ( + 58, + - COUNT( * ), + + 19 - - CASE - COUNT( * ) WHEN + COUNT( * ) THEN - 93 DIV + COUNT( * ) * + - 24 END ) * + + MIN( - 89 ) * 38
----
-13534764

skipif mysql # not compatible
query I rowsort label-5342
SELECT ALL - - 69 * COALESCE ( + 58, + - COUNT ( * ), + + 19 - - CASE - COUNT ( * ) WHEN + COUNT ( * ) THEN - 93 / + COUNT ( * ) * + - 24 END ) * + + MIN ( - 89 ) * 38
----
-13534764

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT - 51 * + 52 * + 96 DIV + - COUNT( * ) AS col1
----
254592

skipif mysql # not compatible
query I rowsort label-5343
SELECT - 51 * + 52 * + 96 / + - COUNT ( * ) AS col1
----
254592

onlyif mysql # aggregate syntax: 
query II rowsort label-5344
SELECT ALL + COUNT( * ), 20 col1
----
1
20

skipif mysql # not compatible
query II rowsort label-5344
SELECT ALL + COUNT ( * ), 20 col1
----
1
20

query I rowsort
SELECT ALL + - 94 + + 56 AS col2
----
-38

query I rowsort
SELECT 21 + - 44 + - 56 * 58
----
-3271

query I rowsort
SELECT ALL - 35 + - NULLIF ( + + 61, - ( - 62 ) / 80 - - NULLIF ( + - NULLIF ( - 84, - 94 ), 86 ) ) * + + 33 * + 34
----
-68477

query I rowsort
SELECT ALL - COALESCE ( + 9, 13 ) AS col0
----
-9

query II rowsort
SELECT 89 AS col0, 64 AS col2
----
89
64

query I rowsort
SELECT + ( - 38 ) * + 51
----
-1938

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT 93 * + COUNT( * ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-5351
SELECT 93 * + COUNT ( * ) AS col2
----
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL COUNT( * ) * 40 * 17 + + + ( 65 ) * 14 + CAST( + + 3 AS SIGNED ) * - 51 * 52 * 52
----
-412122

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL COUNT ( * ) * 40 * 17 + + + ( 65 ) * 14 + CAST ( + + 3 AS INTEGER ) * - 51 * 52 * 52
----
-412122

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT MAX( ALL - ( 82 ) ) AS col0
----
-82

skipif mysql # not compatible
query I rowsort label-5353
SELECT MAX ( ALL - ( 82 ) ) AS col0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL 50 * + COUNT( * )
----
50

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL 50 * + COUNT ( * )
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5355
SELECT DISTINCT 0 * - 60 * - CAST( - MAX( + 13 ) AS SIGNED ) DIV COUNT( ALL + 8 ) + + 29 * - COUNT( * ) col0
----
-29

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT 0 * - 60 * - CAST ( - MAX ( + 13 ) AS INTEGER ) / COUNT ( ALL + 8 ) + + 29 * - COUNT ( * ) col0
----
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5356
SELECT DISTINCT 6 * + 91 - - 31 - - + 59 AS col2, + 39 * - CAST( COUNT( * ) AS SIGNED ) AS col0
----
636
-39

skipif mysql # not compatible
query II rowsort label-5356
SELECT DISTINCT 6 * + 91 - - 31 - - + 59 AS col2, + 39 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0
----
636
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5357
SELECT ( + - CASE NULLIF ( + + ( - CASE - 56 WHEN 5 THEN - 34 WHEN CAST( - - 14 AS SIGNED ) THEN + ( - 6 ) * - 40 * COALESCE ( - 96, 1 ) ELSE NULL END ), 75 ) WHEN - 49 THEN NULL ELSE - ( - COALESCE ( 56, 73 ) ) END ) * - 82 AS col1
----
4592

skipif mysql # not compatible
query I rowsort label-5357
SELECT ( + - CASE NULLIF ( + + ( - CASE - 56 WHEN 5 THEN - 34 WHEN CAST ( - - 14 AS INTEGER ) THEN + ( - 6 ) * - 40 * COALESCE ( - 96, 1 ) ELSE NULL END ), 75 ) WHEN - 49 THEN NULL ELSE - ( - COALESCE ( 56, 73 ) ) END ) * - 82 AS col1
----
4592

query I rowsort
SELECT 24 * - - 57
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT + CASE + + 0 WHEN + 15 THEN - + 61 * - - 57 + 49 WHEN - COUNT( * ) THEN NULL END * + - 72 + - ( - 6 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5359
SELECT + CASE + + 0 WHEN + 15 THEN - + 61 * - - 57 + 49 WHEN - COUNT ( * ) THEN NULL END * + - 72 + - ( - 6 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5360
SELECT + 37 - + + 93, + 12 + 58 * + CAST( + 94 AS SIGNED ) AS col1
----
-56
5464

skipif mysql # not compatible
query II rowsort label-5360
SELECT + 37 - + + 93, + 12 + 58 * + CAST ( + 94 AS INTEGER ) AS col1
----
-56
5464

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT + 31 * - COUNT( * ) AS col1
----
-31

skipif mysql # not compatible
query I rowsort label-5361
SELECT + 31 * - COUNT ( * ) AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT ALL COUNT( * ) * 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-5362
SELECT ALL COUNT ( * ) * 43 AS col0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT - COUNT( * ) + + NULLIF ( - - COUNT( * ), + ( - COUNT( ALL + 12 ) ) ) * + - 92, 0 AS col0
----
-93
0

skipif mysql # not compatible
query II rowsort label-5363
SELECT - COUNT ( * ) + + NULLIF ( - - COUNT ( * ), + ( - COUNT ( ALL + 12 ) ) ) * + - 92, 0 AS col0
----
-93
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5364
SELECT DISTINCT CAST( 92 AS SIGNED ), + 40 AS col2
----
92
40

skipif mysql # not compatible
query II rowsort label-5364
SELECT DISTINCT CAST ( 92 AS INTEGER ), + 40 AS col2
----
92
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - 26 * COUNT( * )
----
-26

skipif mysql # not compatible
query I rowsort label-5365
SELECT - 26 * COUNT ( * )
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-5366
SELECT DISTINCT - ( - COUNT( * ) ), + 1
----
1
1

skipif mysql # not compatible
query II rowsort label-5366
SELECT DISTINCT - ( - COUNT ( * ) ), + 1
----
1
1

query I rowsort
SELECT DISTINCT + 56 * + + 66 * + 40
----
147840

onlyif mysql # DIV for integer division: 
query I rowsort label-5368
SELECT - 53 DIV + - 92 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT - 53 / + - 92 AS col0
----
0

query I rowsort
SELECT DISTINCT - - 91 + - 44 col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5370
SELECT ALL - - 29 DIV 8
----
3

skipif mysql # not compatible
query I rowsort label-5370
SELECT ALL - - 29 / 8
----
3

query II rowsort
SELECT ALL + + 58 + 27 AS col0, + 38
----
85
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5372
SELECT - NULLIF ( + - CAST( 11 AS SIGNED ), + 20 / - - 93 * + CASE + 98 WHEN + 66 THEN + 96 END * + 51 + + + COUNT( * ) * - + 7 )
----
11

skipif mysql # not compatible
query I rowsort label-5372
SELECT - NULLIF ( + - CAST ( 11 AS INTEGER ), + 20 / - - 93 * + CASE + 98 WHEN + 66 THEN + 96 END * + 51 + + + COUNT ( * ) * - + 7 )
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT - CASE + 77 WHEN + - 25 THEN NULL WHEN + - COUNT( * ) * 54 * - COUNT( * ) * 20 * - - 31 + - COUNT( * ) THEN + 84 ELSE + COUNT( * ) END * - + ( + - 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - CASE + 77 WHEN + - 25 THEN NULL WHEN + - COUNT ( * ) * 54 * - COUNT ( * ) * 20 * - - 31 + - COUNT ( * ) THEN + 84 ELSE + COUNT ( * ) END * - + ( + - 14 ) AS col0
----
-14

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5374
SELECT - + CAST( - + 83 AS SIGNED ) DIV + ( + + 9 )
----
9

skipif mysql # not compatible
query I rowsort label-5374
SELECT - + CAST ( - + 83 AS INTEGER ) / + ( + + 9 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT ALL + COALESCE ( - + 86, COUNT( * ) DIV - ( - - 76 ) + - 16 ) + 42 * - - 48 col0
----
1930

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + COALESCE ( - + 86, COUNT ( * ) / - ( - - 76 ) + - 16 ) + 42 * - - 48 col0
----
1930

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5376
SELECT - 42 - COALESCE ( + 26, + ( 54 ) * + + CASE - COALESCE ( - NULLIF ( + COUNT( * ), + 87 ), - - 8 ) WHEN - 64 THEN 60 WHEN + 13 THEN 20 * CASE + 15 * - 92 WHEN + 25 * - 31 THEN 53 * 68 - COALESCE ( - 26, 17, COUNT( * ) DIV - 54 ) * + 66 ELSE 99 - 24 * + 75 END ELSE + 21 END - CAST( NULL AS SIGNED ) + + 15 ) * 70
----
-1862

skipif mysql # not compatible
query I rowsort label-5376
SELECT - 42 - COALESCE ( + 26, + ( 54 ) * + + CASE - COALESCE ( - NULLIF ( + COUNT ( * ), + 87 ), - - 8 ) WHEN - 64 THEN 60 WHEN + 13 THEN 20 * CASE + 15 * - 92 WHEN + 25 * - 31 THEN 53 * 68 - COALESCE ( - 26, 17, COUNT ( * ) / - 54 ) * + 66 ELSE 99 - 24 * + 75 END ELSE + 21 END - CAST ( NULL AS INTEGER ) + + 15 ) * 70
----
-1862

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5377
SELECT DISTINCT + 60 * - - 59 * CAST( NULL AS SIGNED ) - + - COUNT( * ) / + 79 + + + ( - 99 ) + + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT + 60 * - - 59 * CAST ( NULL AS INTEGER ) - + - COUNT ( * ) / + 79 + + + ( - 99 ) + + 90
----
NULL

query I rowsort
SELECT DISTINCT + - 0 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5379
SELECT DISTINCT NULLIF ( + 23, + 0 * - 15 ) * + - 60 + 7 DIV + 97 - + + 0 + + 62
----
-1318

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT NULLIF ( + 23, + 0 * - 15 ) * + - 60 + 7 / + 97 - + + 0 + + 62
----
-1318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5380
SELECT DISTINCT + COUNT( * ) col2, + 0 DIV 86 * 0 * CAST( - 18 AS SIGNED ) * 99
----
1
0

skipif mysql # not compatible
query II rowsort label-5380
SELECT DISTINCT + COUNT ( * ) col2, + 0 / 86 * 0 * CAST ( - 18 AS INTEGER ) * 99
----
1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT 25 DIV - 41 - - - 15 DIV + 17 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5381
SELECT 25 / - 41 - - - 15 / + 17 AS col0
----
0

query II rowsort
SELECT ALL + 60 AS col1, + ( + 32 ) - - 43 * - 8 AS col1
----
60
-312

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5383
SELECT + COUNT( * ) AS col1, - 64 * + CASE ( CASE + 99 WHEN + 74 + - 51 / 66 + - COUNT( * ) + 72 * + 17 - - COUNT( * ) THEN - - 8 END ) WHEN + - 58 + + 49 THEN - 89 * CASE WHEN + 5 NOT BETWEEN - 20 * 16 AND NULLIF ( + 28, - 6 ) THEN NULL ELSE 71 END + 46 WHEN 75 THEN 55 * ( + CASE COUNT( * ) WHEN 35 THEN NULL WHEN 52 + COUNT( * ) THEN + MIN( CASE 0 WHEN 48 THEN NULL ELSE 40 END ) ELSE - 57 * - 58 END / + ( - 17 + 45 ) ) + - 46 * 44 WHEN 1 + + 61 THEN 59 + - 80 * 59 ELSE NULL END * CAST( NULL AS DECIMAL )
----
1
NULL

skipif mysql # not compatible
query II rowsort label-5383
SELECT + COUNT ( * ) AS col1, - 64 * + CASE ( CASE + 99 WHEN + 74 + - 51 / 66 + - COUNT ( * ) + 72 * + 17 - - COUNT ( * ) THEN - - 8 END ) WHEN + - 58 + + 49 THEN - 89 * CASE WHEN + 5 NOT BETWEEN - 20 * 16 AND NULLIF ( + 28, - 6 ) THEN NULL ELSE 71 END + 46 WHEN 75 THEN 55 * ( + CASE COUNT ( * ) WHEN 35 THEN NULL WHEN 52 + COUNT ( * ) THEN + MIN ( CASE 0 WHEN 48 THEN NULL ELSE 40 END ) ELSE - 57 * - 58 END / + ( - 17 + 45 ) ) + - 46 * 44 WHEN 1 + + 61 THEN 59 + - 80 * 59 ELSE NULL END * CAST ( NULL AS REAL )
----
1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5384
SELECT + MIN( 36 ) * + 57 + - 83 + - 34 + - 39 AS col1
----
1896

skipif mysql # not compatible
query I rowsort label-5384
SELECT + MIN ( 36 ) * + 57 + - 83 + - 34 + - 39 AS col1
----
1896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5385
SELECT - 33 * - COALESCE ( CASE - COUNT( * ) WHEN - 6 THEN + + MAX( ALL - ( - CAST( - 99 AS SIGNED ) ) ) * + CAST( + 81 AS SIGNED ) + + 19 ELSE NULL END, 26, + 96, + + COUNT( * ) + + 28 ) + ( MAX( + 74 ) + 73 )
----
1005

skipif mysql # not compatible
query I rowsort label-5385
SELECT - 33 * - COALESCE ( CASE - COUNT ( * ) WHEN - 6 THEN + + MAX ( ALL - ( - CAST ( - 99 AS INTEGER ) ) ) * + CAST ( + 81 AS INTEGER ) + + 19 ELSE NULL END, 26, + 96, + + COUNT ( * ) + + 28 ) + ( MAX ( + 74 ) + 73 )
----
1005

query I rowsort
SELECT + 31 * + - ( - 61 )
----
1891

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5387
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + - 4 * - + 30 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + - 4 * - + 30 col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT 55 * COALESCE ( + COUNT( * ), + 19 * NULLIF ( 6, + 84 ) + - - 57 * + + 23 + + 36, 57 * ( 48 ) - 59 ) col0
----
55

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT 55 * COALESCE ( + COUNT ( * ), + 19 * NULLIF ( 6, + 84 ) + - - 57 * + + 23 + + 36, 57 * ( 48 ) - 59 ) col0
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-5389
SELECT ALL + 69, + COUNT( ( + - 36 ) ) * - 21 - + MIN( ALL 19 ) AS col1
----
69
-40

skipif mysql # not compatible
query II rowsort label-5389
SELECT ALL + 69, + COUNT ( ( + - 36 ) ) * - 21 - + MIN ( ALL 19 ) AS col1
----
69
-40

query I rowsort
SELECT + 84 + + 62 AS col0
----
146

query I rowsort
SELECT + 95 / - - CASE - 78 WHEN 15 THEN + 38 * + - 54 + + 35 END / 21 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5392
SELECT + 13 - - + COUNT( * ) + + CASE + 12 WHEN - + CAST( NULL AS DECIMAL ) + + - 97 - 9 THEN - 93 * + + 36 + 20 * - 57 ELSE + 51 END + + CASE + 76 WHEN - - 60 THEN NULL ELSE 14 + 75 END AS col0
----
154

skipif mysql # not compatible
query I rowsort label-5392
SELECT + 13 - - + COUNT ( * ) + + CASE + 12 WHEN - + CAST ( NULL AS REAL ) + + - 97 - 9 THEN - 93 * + + 36 + 20 * - 57 ELSE + 51 END + + CASE + 76 WHEN - - 60 THEN NULL ELSE 14 + 75 END AS col0
----
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5393
SELECT + 72 * - COALESCE ( + CAST( NULL AS SIGNED ), - - 10 )
----
-720

skipif mysql # not compatible
query I rowsort label-5393
SELECT + 72 * - COALESCE ( + CAST ( NULL AS INTEGER ), - - 10 )
----
-720

query I rowsort
SELECT ALL + 19 * 79 * - 4 + - + 62 AS col2
----
-6066

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5395
SELECT - CAST( 42 AS SIGNED ) * + SUM( - CAST( NULL AS SIGNED ) ) + 29 AS col1, COALESCE ( + 92, - 53 + 18 - - - 30 )
----
NULL
92

skipif mysql # not compatible
query II rowsort label-5395
SELECT - CAST ( 42 AS INTEGER ) * + SUM ( - CAST ( NULL AS INTEGER ) ) + 29 AS col1, COALESCE ( + 92, - 53 + 18 - - - 30 )
----
NULL
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT + MIN( ALL + 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-5396
SELECT + MIN ( ALL + 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5397
SELECT + + 29 + 26 DIV 40 AS col2, - ( - COUNT( * ) ) AS col1
----
29
1

skipif mysql # not compatible
query II rowsort label-5397
SELECT + + 29 + 26 / 40 AS col2, - ( - COUNT ( * ) ) AS col1
----
29
1

query I rowsort
SELECT + - 54 + 50
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL - - 17 * - COUNT( * ) + 90 * - + 29 AS col1
----
-2627

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL - - 17 * - COUNT ( * ) + 90 * - + 29 AS col1
----
-2627

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT DISTINCT + MAX( DISTINCT - 93 ) + COUNT( * ) - - 12 AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-5400
SELECT DISTINCT + MAX ( DISTINCT - 93 ) + COUNT ( * ) - - 12 AS col1
----
-80

query I rowsort
SELECT - ( - - 41 )
----
-41

query II rowsort
SELECT ALL - 69 + 17 + + 1, ( - - 27 ) AS col1
----
-51
27

query I rowsort
SELECT + 47 - - 62 - + + 42 + - CASE - 73 WHEN NULLIF ( - 50, 21 ) + - 45 THEN NULL ELSE 43 END * 95 + + + 50
----
-3968

query I rowsort
SELECT ALL - 99 * 37 AS col2
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT + COUNT( + 14 ) + - + 73
----
-72

skipif mysql # not compatible
query I rowsort label-5405
SELECT + COUNT ( + 14 ) + - + 73
----
-72

query II rowsort
SELECT - 60 + + 12 + - + 19 AS col2, + 73
----
-67
73

query II rowsort
SELECT 43 AS col2, 33
----
43
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5408
SELECT + 13 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT + 13 + + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 26 + - 94
----
-68

query I rowsort
SELECT + + 28 + + + 2
----
30

query I rowsort
SELECT - + 22 * 93 AS col0
----
-2046

query I rowsort
SELECT ALL + COALESCE ( + + 38, 76 ) AS col0
----
38

query I rowsort
SELECT + CASE + 40 WHEN - - 26 THEN + + 50 + - 42 + - - NULLIF ( - 0, + 7 ) ELSE NULL END
----
NULL

query I rowsort
SELECT - 63 * - + 29 + - 74
----
1753

query I rowsort
SELECT DISTINCT - 50 * 31 AS col0
----
-1550

query I rowsort
SELECT ALL + - 38 - + 80 AS col2
----
-118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5417
SELECT - COUNT( ( - - 99 ) ) + 87 + - + MIN( + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT - COUNT ( ( - - 99 ) ) + 87 + - + MIN ( + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5418
SELECT DISTINCT - 23 DIV + 28 + - COUNT( * ) + + 28 AS col0
----
27

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT - 23 / + 28 + - COUNT ( * ) + + 28 AS col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT - 98 + 76 - CAST( NULL AS SIGNED ) * + CAST( 68 AS SIGNED ) * 82 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-5419
SELECT - 98 + 76 - CAST ( NULL AS INTEGER ) * + CAST ( 68 AS INTEGER ) * 82 + - 76
----
NULL

query I rowsort
SELECT + 9 * - 42
----
-378

query I rowsort
SELECT - 15 * - 10
----
150

query I rowsort
SELECT DISTINCT - 12 * + 67
----
-804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5423
SELECT - CAST( - 78 AS SIGNED ) * + ( + 53 ) AS col2
----
4134

skipif mysql # not compatible
query I rowsort label-5423
SELECT - CAST ( - 78 AS INTEGER ) * + ( + 53 ) AS col2
----
4134

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT ALL - SUM( DISTINCT - CASE WHEN + 41 IS NULL THEN NULL ELSE - + ( + + 81 ) END ), 27 AS col0
----
-81
27

skipif mysql # not compatible
query II rowsort label-5424
SELECT ALL - SUM ( DISTINCT - CASE WHEN + 41 IS NULL THEN NULL ELSE - + ( + + 81 ) END ), 27 AS col0
----
-81
27

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT 22 AS col2, COUNT( * ) * + 50 * - 55 * - 50 + - 42 + - - 21 * - + 77
----
22
135841

skipif mysql # not compatible
query II rowsort label-5425
SELECT 22 AS col2, COUNT ( * ) * + 50 * - 55 * - 50 + - 42 + - - 21 * - + 77
----
22
135841

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT 14 * + + COUNT( * ) * + 99 * 24 AS col2
----
33264

skipif mysql # not compatible
query I rowsort label-5426
SELECT 14 * + + COUNT ( * ) * + 99 * 24 AS col2
----
33264

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT ALL + COUNT( * ) * 23 AS col0
----
23

skipif mysql # not compatible
query I rowsort label-5427
SELECT ALL + COUNT ( * ) * 23 AS col0
----
23

query I rowsort
SELECT DISTINCT - NULLIF ( ( 55 ), 2 ) * - 13 * 36 + 68 * - 24
----
24108

query I rowsort
SELECT 4 * COALESCE ( + 5, COALESCE ( + ( 10 ), + 72 ) + - 68 )
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - 53 * + ( - 33 ) + + 38 * - 98 * + SUM( + + 23 )
----
-83903

skipif mysql # not compatible
query I rowsort label-5430
SELECT - 53 * + ( - 33 ) + + 38 * - 98 * + SUM ( + + 23 )
----
-83903

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5431
SELECT ALL - ( + COUNT( * ) ) DIV - COUNT( * ) col2
----
1

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - ( + COUNT ( * ) ) / - COUNT ( * ) col2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5432
SELECT 30 * + 44 * MIN( - - 88 ), ( - MAX( DISTINCT - 93 ) ) AS col1
----
116160
93

skipif mysql # not compatible
query II rowsort label-5432
SELECT 30 * + 44 * MIN ( - - 88 ), ( - MAX ( DISTINCT - 93 ) ) AS col1
----
116160
93

query I rowsort
SELECT - CASE 92 WHEN - + 64 * + - 93 THEN - 1 - + 10 WHEN 0 THEN NULL WHEN 84 + ( + 33 ) THEN NULL END * + 11 * - 73 - - + 97 AS col0
----
NULL

query I rowsort
SELECT ALL 36 * + - 95 * + 26
----
-88920

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5435
SELECT ALL 48 + + + COALESCE ( - 86, - CAST( + 14 AS SIGNED ) ) * - + 23 + + 91 DIV - + 72 AS col1
----
2025

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL 48 + + + COALESCE ( - 86, - CAST ( + 14 AS INTEGER ) ) * - + 23 + + 91 / - + 72 AS col1
----
2025

query I rowsort
SELECT DISTINCT - 61 * 58
----
-3538

query I rowsort
SELECT - 31 + 62 - + 65 * 20 AS col2
----
-1269

query I rowsort
SELECT DISTINCT + 87 * + 91
----
7917

query II rowsort
SELECT ALL 98 AS col2, - 42 AS col0
----
98
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5440
SELECT 29 DIV - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5440
SELECT 29 / - 50 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT COALESCE ( ( + CASE + COUNT( * ) WHEN + 22 THEN 70 * - 18 END ), + 15 * 65, + + 33 ) AS col2
----
975

skipif mysql # not compatible
query I rowsort label-5441
SELECT COALESCE ( ( + CASE + COUNT ( * ) WHEN + 22 THEN 70 * - 18 END ), + 15 * 65, + + 33 ) AS col2
----
975

onlyif mysql # aggregate syntax: 
query II rowsort label-5442
SELECT COUNT( * ) * - + 86, - ( 43 ) + - + 38 * - ( 53 ) - + 53 AS col1
----
-86
1918

skipif mysql # not compatible
query II rowsort label-5442
SELECT COUNT ( * ) * - + 86, - ( 43 ) + - + 38 * - ( 53 ) - + 53 AS col1
----
-86
1918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT ALL + 37 + + - 73 * + CAST( 97 AS SIGNED )
----
-7044

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL + 37 + + - 73 * + CAST ( 97 AS INTEGER )
----
-7044

onlyif mysql # DIV for integer division: 
query I rowsort label-5444
SELECT + 11 DIV + 6 AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5444
SELECT + 11 / + 6 AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5445
SELECT + CASE 55 WHEN - COUNT( * ) / - ( + + 75 ) THEN NULL WHEN - 27 * COALESCE ( ( - - MAX( + - 27 ) ), 32, + COUNT( * ) ) / + ( - + MAX( ALL 67 ) ) THEN + - 36 - - ( 71 ) ELSE + 16 * - 58 END + 1 * 82
----
-846

skipif mysql # not compatible
query I rowsort label-5445
SELECT + CASE 55 WHEN - COUNT ( * ) / - ( + + 75 ) THEN NULL WHEN - 27 * COALESCE ( ( - - MAX ( + - 27 ) ), 32, + COUNT ( * ) ) / + ( - + MAX ( ALL 67 ) ) THEN + - 36 - - ( 71 ) ELSE + 16 * - 58 END + 1 * 82
----
-846

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL 50 / - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL 50 / - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT - - CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-5447
SELECT - - CAST ( + 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT ALL 94 - 43 * + 23 * + 63 AS col2
----
-62213

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5449
SELECT ALL 55 AS col2, - COUNT( * ) DIV + - 14 * + + NULLIF ( COUNT( * ), 18 ) * + 62 + + + 10 + + COALESCE ( 90, 9 ) AS col1
----
55
100

skipif mysql # not compatible
query II rowsort label-5449
SELECT ALL 55 AS col2, - COUNT ( * ) / + - 14 * + + NULLIF ( COUNT ( * ), 18 ) * + 62 + + + 10 + + COALESCE ( 90, 9 ) AS col1
----
55
100

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5450
SELECT ALL - CAST( NULL AS DECIMAL ) * - + 6
----
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL - CAST ( NULL AS REAL ) * - + 6
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT - 4 + + COUNT( * ), - 43 AS col0
----
-3
-43

skipif mysql # not compatible
query II rowsort label-5451
SELECT - 4 + + COUNT ( * ), - 43 AS col0
----
-3
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT - - SUM( - - 61 ) AS col2
----
61

skipif mysql # not compatible
query I rowsort label-5452
SELECT - - SUM ( - - 61 ) AS col2
----
61

query II rowsort
SELECT 82, - 57 AS col1
----
82
-57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5454
SELECT DISTINCT CAST( NULL AS SIGNED ), - 56 * + 18 * 18 col1
----
NULL
-18144

skipif mysql # not compatible
query II rowsort label-5454
SELECT DISTINCT CAST ( NULL AS INTEGER ), - 56 * + 18 * 18 col1
----
NULL
-18144

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT 25 * + COUNT( * ) * + 0 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT 25 * + COUNT ( * ) * + 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ( - COUNT( * ) ) - + + ( + 58 ) AS col2
----
-59

skipif mysql # not compatible
query I rowsort label-5456
SELECT ( - COUNT ( * ) ) - + + ( + 58 ) AS col2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT COUNT( * ) + + 85 + 84 * + + 65
----
5546

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( * ) + + 85 + 84 * + + 65
----
5546

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COUNT( * ) * + + 35
----
35

skipif mysql # not compatible
query I rowsort label-5458
SELECT COUNT ( * ) * + + 35
----
35

query I rowsort
SELECT ALL - ( ( - + 90 ) ) col1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL - MAX( ALL 67 ) AS col2
----
-67

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - MAX ( ALL 67 ) AS col2
----
-67

query II rowsort
SELECT ALL - 63 * 74 AS col1, - 84 + + 33 AS col0
----
-4662
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5462
SELECT NULLIF ( - 31, - 50 ) DIV - 95 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5462
SELECT NULLIF ( - 31, - 50 ) / - 95 AS col0
----
0

query I rowsort
SELECT 40 * - 91
----
-3640

query I rowsort
SELECT DISTINCT + 81 + + 61 AS col0
----
142

query I rowsort
SELECT 14 * + - 81 AS col2
----
-1134

query I rowsort
SELECT 49 * 48 * + ( COALESCE ( 19, 81 ) ) AS col0
----
44688

query I rowsort
SELECT ALL + ( - 77 ) * 58 * + 32
----
-142912

query I rowsort
SELECT DISTINCT - 9 * + 9 AS col0
----
-81

query I rowsort
SELECT 30 * - - ( - 73 )
----
-2190

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL - 91 * COUNT( * ) col1
----
-91

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL - 91 * COUNT ( * ) col1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT 39 * + + 76 * + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5471
SELECT 39 * + + 76 * + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT ALL 72 + COUNT( * ) AS col1
----
73

skipif mysql # not compatible
query I rowsort label-5472
SELECT ALL 72 + COUNT ( * ) AS col1
----
73

query II rowsort
SELECT ALL + 64 + + 97 AS col1, - 25 * 49
----
161
-1225

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT DISTINCT - 73 + + + 50 * + ( + - MIN( ( - - 50 ) ) ) AS col0
----
-2573

skipif mysql # not compatible
query I rowsort label-5474
SELECT DISTINCT - 73 + + + 50 * + ( + - MIN ( ( - - 50 ) ) ) AS col0
----
-2573

query I rowsort
SELECT ALL + 18 + - 41 AS col2
----
-23

query I rowsort
SELECT DISTINCT - CASE + - 60 WHEN 91 THEN - 72 END
----
NULL

query I rowsort
SELECT ALL - 32 * + 95 AS col0
----
-3040

query I rowsort
SELECT + ( 30 ) + - 69 * - - 34 * 72
----
-168882

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT - MIN( - ( 0 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5479
SELECT - MIN ( - ( 0 ) ) AS col0
----
0

query I rowsort
SELECT ALL - 66 + 60 + + 77
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ( + 9 ) * - - 95 + + + COUNT( - 51 ) AS col2
----
856

skipif mysql # not compatible
query I rowsort label-5481
SELECT ( + 9 ) * - - 95 + + + COUNT ( - 51 ) AS col2
----
856

query I rowsort
SELECT + - ( - 0 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5483
SELECT - 95 + - COUNT( * ) + + + SUM( 17 ) - + COALESCE ( + ( 34 ), 50 ) * ( + - 69 ) - 59 + - 66 DIV - + 70 * 43 * + NULLIF ( + + ( - + 94 ), - 45 + 79 * COUNT( + 16 ) ) DIV 58 * + 9 * - 92 AS col1
----
2208

skipif mysql # not compatible
query I rowsort label-5483
SELECT - 95 + - COUNT ( * ) + + + SUM ( 17 ) - + COALESCE ( + ( 34 ), 50 ) * ( + - 69 ) - 59 + - 66 / - + 70 * 43 * + NULLIF ( + + ( - + 94 ), - 45 + 79 * COUNT ( + 16 ) ) / 58 * + 9 * - 92 AS col1
----
2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5484
SELECT ALL 39 * + 1, NULLIF ( - 96, + COUNT( * ) / - + 23 ) + - - MIN( ALL + - 56 ) * - - 31 + CASE - + ( + - 24 ) WHEN - 2 THEN NULL ELSE + CAST( - MAX( 92 ) AS SIGNED ) * + - 27 END AS col2
----
39
652

skipif mysql # not compatible
query II rowsort label-5484
SELECT ALL 39 * + 1, NULLIF ( - 96, + COUNT ( * ) / - + 23 ) + - - MIN ( ALL + - 56 ) * - - 31 + CASE - + ( + - 24 ) WHEN - 2 THEN NULL ELSE + CAST ( - MAX ( 92 ) AS INTEGER ) * + - 27 END AS col2
----
39
652

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT - COUNT( * ) + - 42 + + 56
----
13

skipif mysql # not compatible
query I rowsort label-5485
SELECT - COUNT ( * ) + - 42 + + 56
----
13

onlyif mysql # aggregate syntax: 
query II rowsort label-5486
SELECT ALL + - 43 - 78 AS col1, + COUNT( DISTINCT + 77 )
----
-121
1

skipif mysql # not compatible
query II rowsort label-5486
SELECT ALL + - 43 - 78 AS col1, + COUNT ( DISTINCT + 77 )
----
-121
1

query I rowsort
SELECT 13 + - - 41
----
54

query II rowsort
SELECT ALL 62 - + 11, - 72 col1
----
51
-72

query I rowsort
SELECT DISTINCT - 16 col2
----
-16

query I rowsort
SELECT ALL + - 67 * - 9 AS col0
----
603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5491
SELECT + CAST( NULL AS SIGNED ) + - 35 * + + ( - 67 ) * + CASE + + 93 WHEN + AVG ( - 33 ) THEN NULL ELSE 72 END * 98 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5491
SELECT + CAST ( NULL AS INTEGER ) + - 35 * + + ( - 67 ) * + CASE + + 93 WHEN + AVG ( - 33 ) THEN NULL ELSE 72 END * 98 col2
----
NULL

query I rowsort
SELECT - - 93 col0
----
93

query I rowsort
SELECT + 58 + - + 3 * + + 51 AS col1
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT ALL COALESCE ( MAX( ALL + - 18 ), 6 * + - 19 ) AS col2
----
-18

skipif mysql # not compatible
query I rowsort label-5494
SELECT ALL COALESCE ( MAX ( ALL + - 18 ), 6 * + - 19 ) AS col2
----
-18

query I rowsort
SELECT + + ( 14 ) + 97
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - 11 + 31 * ( + COUNT( * ) ) + - - COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-5496
SELECT - 11 + 31 * ( + COUNT ( * ) ) + - - COUNT ( * )
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT + 81 DIV + 99 + - + 84 * - 52 AS col0
----
4368

skipif mysql # not compatible
query I rowsort label-5497
SELECT + 81 / + 99 + - + 84 * - 52 AS col0
----
4368

onlyif mysql # DIV for integer division: 
query II rowsort label-5498
SELECT DISTINCT 51 DIV - 77 AS col1, 11 + 34 * - - 83 AS col2
----
0
2833

skipif mysql # not compatible
query II rowsort label-5498
SELECT DISTINCT 51 / - 77 AS col1, 11 + 34 * - - 83 AS col2
----
0
2833

query I rowsort
SELECT + 25 + + 97
----
122

query I rowsort
SELECT - NULLIF ( - + 41, + + 53 - + 43 ) AS col2
----
41

query I rowsort
SELECT + 39 + 43
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT NULLIF ( + 53, - + ( COUNT( - 65 ) ) - - + 5 + + + 24 ) col2
----
53

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT NULLIF ( + 53, - + ( COUNT ( - 65 ) ) - - + 5 + + + 24 ) col2
----
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5503
SELECT ALL COUNT( * ) * - - ( - 78 ) * - - 38 + CAST( NULL AS SIGNED ) * MAX( 62 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL COUNT ( * ) * - - ( - 78 ) * - - 38 + CAST ( NULL AS INTEGER ) * MAX ( 62 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL ( - 86 ) + + COUNT( * ) * - COUNT( * )
----
-87

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL ( - 86 ) + + COUNT ( * ) * - COUNT ( * )
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT + COUNT( * ) + + - 0 + - + 28 + - 75 * COUNT( DISTINCT - + ( - 92 ) )
----
-102

skipif mysql # not compatible
query I rowsort label-5505
SELECT + COUNT ( * ) + + - 0 + - + 28 + - 75 * COUNT ( DISTINCT - + ( - 92 ) )
----
-102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5506
SELECT 52 AS col0, + NULLIF ( + - 78, - - 28 / - 73 + - 9 - 25 - - CAST( NULL AS SIGNED ) * - COUNT( * ) / + 46 * + AVG ( DISTINCT - 6 ) * + + ( CAST( NULL AS SIGNED ) ) ) * 14 * - 17 * + ( 97 ) + 46 * 78
----
52
1804296

skipif mysql # not compatible
query II rowsort label-5506
SELECT 52 AS col0, + NULLIF ( + - 78, - - 28 / - 73 + - 9 - 25 - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) / + 46 * + AVG ( DISTINCT - 6 ) * + + ( CAST ( NULL AS INTEGER ) ) ) * 14 * - 17 * + ( 97 ) + 46 * 78
----
52
1804296

query I rowsort
SELECT + 2 * - 72 * 31 AS col1
----
-4464

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT ALL + 53 * 24 + + + 72 DIV - 59
----
1271

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL + 53 * 24 + + + 72 / - 59
----
1271

onlyif mysql # aggregate syntax: 
query II rowsort label-5509
SELECT NULLIF ( 25, COUNT( * ) ), - SUM( DISTINCT 3 ) AS col0
----
25
-3

skipif mysql # not compatible
query II rowsort label-5509
SELECT NULLIF ( 25, COUNT ( * ) ), - SUM ( DISTINCT 3 ) AS col0
----
25
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5510
SELECT ALL + 87 * + + 52 + 28 * + - MAX( + 75 ) * + - COUNT( ALL - 54 ) + - 6 + + 76 - 45 - COUNT( * ) AS col0, + 90 * + ( 8 ) col0
----
6648
720

skipif mysql # not compatible
query II rowsort label-5510
SELECT ALL + 87 * + + 52 + 28 * + - MAX ( + 75 ) * + - COUNT ( ALL - 54 ) + - 6 + + 76 - 45 - COUNT ( * ) AS col0, + 90 * + ( 8 ) col0
----
6648
720

query I rowsort
SELECT + 49 * 28 AS col0
----
1372

onlyif mysql # aggregate syntax: 
query II rowsort label-5512
SELECT ALL + COUNT( * ) AS col1, - 67 col1
----
1
-67

skipif mysql # not compatible
query II rowsort label-5512
SELECT ALL + COUNT ( * ) AS col1, - 67 col1
----
1
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-5513
SELECT - 45 DIV ( + - 3 ) + + 15 + + + 7
----
37

skipif mysql # not compatible
query I rowsort label-5513
SELECT - 45 / ( + - 3 ) + + 15 + + + 7
----
37

query II rowsort
SELECT ALL - 76 * 30 + 80 col2, - 33 col0
----
-2200
-33

query I rowsort
SELECT DISTINCT + 81 col2
----
81

query I rowsort
SELECT ALL 45 * - 83 + + 68 AS col2
----
-3667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5517
SELECT + ( CAST( 64 AS SIGNED ) ) AS col1
----
64

skipif mysql # not compatible
query I rowsort label-5517
SELECT + ( CAST ( 64 AS INTEGER ) ) AS col1
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + 77 * + 10 + MIN( ALL 53 ) * - ( - + COUNT( * ) ) col1
----
823

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + 77 * + 10 + MIN ( ALL 53 ) * - ( - + COUNT ( * ) ) col1
----
823

onlyif mysql # DIV for integer division: 
query II rowsort label-5519
SELECT + 25 AS col1, 38 DIV ( - + 15 )
----
25
-2

skipif mysql # not compatible
query II rowsort label-5519
SELECT + 25 AS col1, 38 / ( - + 15 )
----
25
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5520
SELECT DISTINCT 78 DIV + 57 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT 78 / + 57 AS col1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
SELECT ALL + ( + - COALESCE ( 22, - 92 ) ) / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL + ( + - COALESCE ( 22, - 92 ) ) / - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + + 6 * 73 - + + 29 * + + ( + - 79 ) AS col1
----
2729

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5523
SELECT + 66 DIV + - CAST( - 85 AS SIGNED ) col2
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT + 66 / + - CAST ( - 85 AS INTEGER ) col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5524
SELECT DISTINCT + 79 * - 56 * CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT + 79 * - 56 * CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + COALESCE ( + 40, + 95 ) AS col0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5526
SELECT - + 49 * - CASE 44 WHEN 73 THEN NULL WHEN + CAST( NULL AS SIGNED ) THEN NULL ELSE - 78 END
----
-3822

skipif mysql # not compatible
query I rowsort label-5526
SELECT - + 49 * - CASE 44 WHEN 73 THEN NULL WHEN + CAST ( NULL AS INTEGER ) THEN NULL ELSE - 78 END
----
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT + CAST( 12 AS SIGNED )
----
12

skipif mysql # not compatible
query I rowsort label-5527
SELECT + CAST ( 12 AS INTEGER )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5528
SELECT - 82 * - MAX( - 83 ) * + 86 * CAST( + MAX( + 19 ) AS SIGNED ) / - 15 + + 42 + 32 - - 40 + SUM( ALL + ( - - 90 ) ) + + - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT - 82 * - MAX ( - 83 ) * + 86 * CAST ( + MAX ( + 19 ) AS INTEGER ) / - 15 + + 42 + 32 - - 40 + SUM ( ALL + ( - - 90 ) ) + + - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT - + SUM( 78 ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-5529
SELECT - + SUM ( 78 ) col0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT DISTINCT + NULLIF ( - ( COUNT( * ) ), - 52 )
----
-1

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT + NULLIF ( - ( COUNT ( * ) ), - 52 )
----
-1

query I rowsort
SELECT ALL + 44 * + 43
----
1892

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - MAX( - 14 ) AS col1
----
14

skipif mysql # not compatible
query I rowsort label-5532
SELECT - MAX ( - 14 ) AS col1
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT + 8 DIV + 59 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + 8 / + 59 AS col2
----
0

query I rowsort
SELECT DISTINCT COALESCE ( + 97, - 89 ) AS col2
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT ALL CAST( NULL AS SIGNED ) * + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL CAST ( NULL AS INTEGER ) * + 68
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT ALL + 90 * + COUNT( * ) AS col2
----
90

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + 90 * + COUNT ( * ) AS col2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5537
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 69 + - - CAST( NULL AS SIGNED ) + - - 27 * - - 0 * + + 79 * - 93 * - - COALESCE ( - 3, + 81 ) AS col2, - 91 AS col1
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-5537
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 69 + - - CAST ( NULL AS INTEGER ) + - - 27 * - - 0 * + + 79 * - 93 * - - COALESCE ( - 3, + 81 ) AS col2, - 91 AS col1
----
NULL
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5538
SELECT DISTINCT + MAX( DISTINCT - CAST( 70 AS SIGNED ) ) + + - 98 + 50
----
-118

skipif mysql # not compatible
query I rowsort label-5538
SELECT DISTINCT + MAX ( DISTINCT - CAST ( 70 AS INTEGER ) ) + + - 98 + 50
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT - 79 + COUNT( * ) AS col0
----
-78

skipif mysql # not compatible
query I rowsort label-5539
SELECT - 79 + COUNT ( * ) AS col0
----
-78

query I rowsort
SELECT - ( - 28 ) col1
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5541
SELECT ALL 43 + - + 21 + - - 71 * + 76 * + + 38 * - - 98 + - + ( - 40 ) * CAST( NULL AS DECIMAL ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL 43 + - + 21 + - - 71 * + 76 * + + 38 * - - 98 + - + ( - 40 ) * CAST ( NULL AS REAL ) col2
----
NULL

query I rowsort
SELECT - 49 + + - 90
----
-139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5543
SELECT DISTINCT 19 + + 57 - - 95 + - NULLIF ( - 1, + CAST( + 70 AS SIGNED ) )
----
172

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT 19 + + 57 - - 95 + - NULLIF ( - 1, + CAST ( + 70 AS INTEGER ) )
----
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5544
SELECT ALL 72 DIV + SUM( ALL + + 6 ) + 48 + + + 70 - 84 * - 79 * - - 82 AS col2
----
544282

skipif mysql # not compatible
query I rowsort label-5544
SELECT ALL 72 / + SUM ( ALL + + 6 ) + 48 + + + 70 - 84 * - 79 * - - 82 AS col2
----
544282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT 34 DIV 91 - - - COUNT( * ) * - 71 AS col0
----
71

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT 34 / 91 - - - COUNT ( * ) * - 71 AS col0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT + MAX( 23 ) AS col2
----
23

skipif mysql # not compatible
query I rowsort label-5546
SELECT + MAX ( 23 ) AS col2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5547
SELECT CAST( + + 79 AS SIGNED )
----
79

skipif mysql # not compatible
query I rowsort label-5547
SELECT CAST ( + + 79 AS INTEGER )
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT DISTINCT 40 DIV COUNT( * ) * - COUNT( * ) - + NULLIF ( COUNT( - 0 ), - ( + 75 ) ) + - 9 * - 26
----
193

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT 40 / COUNT ( * ) * - COUNT ( * ) - + NULLIF ( COUNT ( - 0 ), - ( + 75 ) ) + - 9 * - 26
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT + 55 * + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-5549
SELECT + 55 * + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT + ( - + ( 85 ) ) * - COUNT( * )
----
85

skipif mysql # not compatible
query I rowsort label-5550
SELECT + ( - + ( 85 ) ) * - COUNT ( * )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + ( + COUNT( * ) ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-5551
SELECT + ( + COUNT ( * ) ) AS col0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL + MAX( 44 ) AS col1
----
44

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + MAX ( 44 ) AS col1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5553
SELECT DISTINCT + + 42 DIV - COUNT( * ) + - 5 AS col1
----
-47

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + + 42 / - COUNT ( * ) + - 5 AS col1
----
-47

query I rowsort
SELECT DISTINCT + ( + + 39 )
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5555
SELECT + - 45 DIV - 57 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5555
SELECT + - 45 / - 57 AS col2
----
0

query I rowsort
SELECT 34 * - - 72 * + - 5 * + 79 + 42 - + 4 AS col2
----
-966922

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT - COUNT( * ) * 44 + + + 44 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-5557
SELECT - COUNT ( * ) * 44 + + + 44 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5558
SELECT ALL 97 DIV + 17 - + + 72
----
-67

skipif mysql # not compatible
query I rowsort label-5558
SELECT ALL 97 / + 17 - + + 72
----
-67

query I rowsort
SELECT DISTINCT + 6 * - + 13 - - 2 col1
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-5560
SELECT 22 DIV + 76 * 45
----
0

skipif mysql # not compatible
query I rowsort label-5560
SELECT 22 / + 76 * 45
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5561
SELECT 66 DIV + + COUNT( * ), 95 + MAX( + 26 ) DIV + + 28 AS col1
----
66
95

skipif mysql # not compatible
query II rowsort label-5561
SELECT 66 / + + COUNT ( * ), 95 + MAX ( + 26 ) / + + 28 AS col1
----
66
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5562
SELECT ALL - - 0 + - COUNT( DISTINCT 82 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL - - 0 + - COUNT ( DISTINCT 82 ) AS col1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5563
SELECT ALL + ( + + ( 62 ) ) DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-5563
SELECT ALL + ( + + ( 62 ) ) / - 98
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT ALL + MIN( DISTINCT - - CAST( + 84 AS SIGNED ) ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + MIN ( DISTINCT - - CAST ( + 84 AS INTEGER ) ) AS col2
----
84

query I rowsort
SELECT ALL + 67 + + 47
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT 34 + COUNT( + 58 )
----
35

skipif mysql # not compatible
query I rowsort label-5566
SELECT 34 + COUNT ( + 58 )
----
35

onlyif mysql # aggregate syntax: 
query II rowsort label-5567
SELECT 43 + + + ( - MAX( ALL + - 44 ) ) * - - 43, - 44 AS col1
----
1935
-44

skipif mysql # not compatible
query II rowsort label-5567
SELECT 43 + + + ( - MAX ( ALL + - 44 ) ) * - - 43, - 44 AS col1
----
1935
-44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5568
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT DISTINCT - 22 + 89 - + 76 * + - NULLIF ( - 57, 64 / + + COUNT( * ) - - COALESCE ( + 89, COALESCE ( - + COUNT( * ), 31 ), + 33 ) + - NULLIF ( + 55, - + 91 ) + 23 )
----
-4265

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT - 22 + 89 - + 76 * + - NULLIF ( - 57, 64 / + + COUNT ( * ) - - COALESCE ( + 89, COALESCE ( - + COUNT ( * ), 31 ), + 33 ) + - NULLIF ( + 55, - + 91 ) + 23 )
----
-4265

query I rowsort
SELECT 24 * - - 20
----
480

query II rowsort
SELECT 42 AS col2, - 44
----
42
-44

query II rowsort
SELECT ALL 94 col2, 69 - - + 2
----
94
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL - COALESCE ( + + 72, + 32 + - 84 * - 43 ) + - COUNT( * )
----
-73

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - COALESCE ( + + 72, + 32 + - 84 * - 43 ) + - COUNT ( * )
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5574
SELECT 33 + - 53 * + 68 - 80 - - - 27 - CAST( NULL AS SIGNED ) * + 74 * - MAX( - 51 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT 33 + - 53 * + 68 - 80 - - - 27 - CAST ( NULL AS INTEGER ) * + 74 * - MAX ( - 51 ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL - COUNT( * ) + + - 3 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL - COUNT ( * ) + + - 3 AS col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL - 32 * + + COUNT( * ) col0
----
-32

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - 32 * + + COUNT ( * ) col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5577
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT ALL 90 - + 41 AS col2
----
49

query I rowsort
SELECT 68 + 32 + - + 64 * + - 10 - 98 + + 25
----
667

query I rowsort
SELECT ALL - 32 * 5 AS col1
----
-160

query I rowsort
SELECT 39 * 87
----
3393

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT ALL + 69 - + 73 + - + 54 + 69 - + 76 DIV 44
----
10

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + 69 - + 73 + - + 54 + 69 - + 76 / 44
----
10

query II rowsort
SELECT 58 col2, 17 AS col0
----
58
17

query I rowsort
SELECT ALL - ( 96 ) AS col0
----
-96

query I rowsort
SELECT 93 * - - 47
----
4371

query II rowsort
SELECT ALL - 29 col1, 11 col0
----
-29
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT - COUNT( * ) * 17 - + - MAX( ALL 75 ) + - 25 + + - 49 * - + ( COUNT( ALL 52 ) ) * - - 33 + + + 77 AS col0
----
1727

skipif mysql # not compatible
query I rowsort label-5587
SELECT - COUNT ( * ) * 17 - + - MAX ( ALL 75 ) + - 25 + + - 49 * - + ( COUNT ( ALL 52 ) ) * - - 33 + + + 77 AS col0
----
1727

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5588
SELECT DISTINCT 87 - + CASE ( + COUNT( ALL + - 51 ) ) WHEN + CAST( NULL AS SIGNED ) THEN NULL WHEN 21 + + 81 THEN 19 + + + 15 + - - COALESCE ( + 44, - + NULLIF ( 53, + SUM( 57 ) DIV - COUNT( * ) DIV - 59 * 80 + - + CASE 69 WHEN - 63 THEN + 2 * + NULLIF ( - 3, 3 ) END ) ) DIV 55 ELSE 85 * COUNT( * ) + + 11 END AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-5588
SELECT DISTINCT 87 - + CASE ( + COUNT ( ALL + - 51 ) ) WHEN + CAST ( NULL AS INTEGER ) THEN NULL WHEN 21 + + 81 THEN 19 + + + 15 + - - COALESCE ( + 44, - + NULLIF ( 53, + SUM ( 57 ) / - COUNT ( * ) / - 59 * 80 + - + CASE 69 WHEN - 63 THEN + 2 * + NULLIF ( - 3, 3 ) END ) ) / 55 ELSE 85 * COUNT ( * ) + + 11 END AS col1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT 19 / - + CAST( NULL AS SIGNED ) + - 6 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT 19 / - + CAST ( NULL AS INTEGER ) + - 6 col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL - CAST( + 79 AS SIGNED )
----
-79

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL - CAST ( + 79 AS INTEGER )
----
-79

query I rowsort
SELECT ALL 28 * - 13
----
-364

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT + + 7 * + NULLIF ( 44, - - SUM( - 89 ) ) + - + 74
----
234

skipif mysql # not compatible
query I rowsort label-5592
SELECT + + 7 * + NULLIF ( 44, - - SUM ( - 89 ) ) + - + 74
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT ALL - - CASE - - 92 WHEN - 15 * + CASE 73 WHEN + 33 + + 12 THEN NULL WHEN - ( - 53 ) * + - ( + COALESCE ( 79, - 14 + + 99, + - NULLIF ( - 8, - 9 * - - 11 ) ) ) + + - COALESCE ( + + MAX( - 37 ), + 71 ) * + CASE + 15 + MIN( ALL - 51 ) * + 25 WHEN COUNT( * ) THEN 80 WHEN + 49 THEN 9 WHEN - COUNT( * ) THEN NULL ELSE NULL END THEN NULL ELSE 13 END * COUNT( * ) + 79 + 6 THEN NULL WHEN - ( - COUNT( * ) ) * + NULLIF ( 42, 51 + - 0 * + COUNT( * ) ) THEN + 91 / - 84 ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - - CASE - - 92 WHEN - 15 * + CASE 73 WHEN + 33 + + 12 THEN NULL WHEN - ( - 53 ) * + - ( + COALESCE ( 79, - 14 + + 99, + - NULLIF ( - 8, - 9 * - - 11 ) ) ) + + - COALESCE ( + + MAX ( - 37 ), + 71 ) * + CASE + 15 + MIN ( ALL - 51 ) * + 25 WHEN COUNT ( * ) THEN 80 WHEN + 49 THEN 9 WHEN - COUNT ( * ) THEN NULL ELSE NULL END THEN NULL ELSE 13 END * COUNT ( * ) + 79 + 6 THEN NULL WHEN - ( - COUNT ( * ) ) * + NULLIF ( 42, 51 + - 0 * + COUNT ( * ) ) THEN + 91 / - 84 ELSE NULL END AS col2
----
NULL

query I rowsort
SELECT 57 * + 36 + 26
----
2078

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT MAX( DISTINCT - + 74 ) + - 23 * + - 88
----
1950

skipif mysql # not compatible
query I rowsort label-5595
SELECT MAX ( DISTINCT - + 74 ) + - 23 * + - 88
----
1950

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL + MIN( - - 16 ) + - NULLIF ( + + COUNT( DISTINCT + 29 ), 11 )
----
15

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL + MIN ( - - 16 ) + - NULLIF ( + + COUNT ( DISTINCT + 29 ), 11 )
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5597
SELECT ALL - 2 + + CAST( NULL AS SIGNED ) - + - 50 AS col0, ( + 37 )
----
NULL
37

skipif mysql # not compatible
query II rowsort label-5597
SELECT ALL - 2 + + CAST ( NULL AS INTEGER ) - + - 50 AS col0, ( + 37 )
----
NULL
37

query I rowsort
SELECT ALL - + 81 * + + 33 AS col1
----
-2673

query I rowsort
SELECT ALL NULLIF ( + 68, + 87 ) + 7 * - + 74 * + 47 * - - 39 * 87 + + + 1 col0
----
-82605909

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT DISTINCT - MAX( DISTINCT + 42 ) + + 40 + - NULLIF ( 88, 29 ) + - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5600
SELECT DISTINCT - MAX ( DISTINCT + 42 ) + + 40 + - NULLIF ( 88, 29 ) + - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT DISTINCT + ( COUNT( * ) ) + 52 + 71 AS col2
----
124

skipif mysql # not compatible
query I rowsort label-5601
SELECT DISTINCT + ( COUNT ( * ) ) + 52 + 71 AS col2
----
124

onlyif mysql # aggregate syntax: 
query II rowsort label-5602
SELECT + - 60, + COUNT( * ) + + 12 - 28 * + + 28 * + ( + ( 79 ) ) * - 63 AS col1
----
-60
3901981

skipif mysql # not compatible
query II rowsort label-5602
SELECT + - 60, + COUNT ( * ) + + 12 - 28 * + + 28 * + ( + ( 79 ) ) * - 63 AS col1
----
-60
3901981

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT ALL - - MAX( + - ( + 75 ) ) + + - 33
----
-108

skipif mysql # not compatible
query I rowsort label-5603
SELECT ALL - - MAX ( + - ( + 75 ) ) + + - 33
----
-108

query I rowsort
SELECT - 27 * + 5 * 90
----
-12150

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT - MIN( ALL + 64 ) AS col1
----
-64

skipif mysql # not compatible
query I rowsort label-5605
SELECT - MIN ( ALL + 64 ) AS col1
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5606
SELECT 24 - + COUNT( * ) - + 54 DIV - MIN( DISTINCT - 60 )
----
23

skipif mysql # not compatible
query I rowsort label-5606
SELECT 24 - + COUNT ( * ) - + 54 / - MIN ( DISTINCT - 60 )
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5607
SELECT 59 * + + CAST( 89 AS SIGNED ) AS col1
----
5251

skipif mysql # not compatible
query I rowsort label-5607
SELECT 59 * + + CAST ( 89 AS INTEGER ) AS col1
----
5251

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5608
SELECT 14 AS col0, - CAST( + - 3 AS SIGNED ) AS col1
----
14
3

skipif mysql # not compatible
query II rowsort label-5608
SELECT 14 AS col0, - CAST ( + - 3 AS INTEGER ) AS col1
----
14
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT CAST( NULL AS SIGNED ) * + 91 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT CAST ( NULL AS INTEGER ) * + 91 AS col0
----
NULL

query I rowsort
SELECT ALL + 63 * - 51 AS col1
----
-3213

query I rowsort
SELECT ALL - 0 - - 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5612
SELECT NULLIF ( - COALESCE ( + 23, + ( + 51 ) ), - - 91 ) * + + 1 + + + CAST( + COUNT( ALL + + 33 ) AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-5612
SELECT NULLIF ( - COALESCE ( + 23, + ( + 51 ) ), - - 91 ) * + + 1 + + + CAST ( + COUNT ( ALL + + 33 ) AS INTEGER )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5613
SELECT COALESCE ( - COUNT( - 10 ), 31 ) + - 56 - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-5613
SELECT COALESCE ( - COUNT ( - 10 ), 31 ) + - 56 - COUNT ( * )
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5614
SELECT 14 col1, 4 - - - COALESCE ( - - COALESCE ( - 23, + ( COALESCE ( 90, + + 21 + + COALESCE ( - - COUNT( * ), - 61 ) + + 53, - 43 ) ) ), - COUNT( * ) + ( - 60 ) + 66 )
----
14
27

skipif mysql # not compatible
query II rowsort label-5614
SELECT 14 col1, 4 - - - COALESCE ( - - COALESCE ( - 23, + ( COALESCE ( 90, + + 21 + + COALESCE ( - - COUNT ( * ), - 61 ) + + 53, - 43 ) ) ), - COUNT ( * ) + ( - 60 ) + 66 )
----
14
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT - MAX( + 40 ) col1
----
-40

skipif mysql # not compatible
query I rowsort label-5615
SELECT - MAX ( + 40 ) col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5616
SELECT 42 + CAST( - - CAST( + 12 AS DECIMAL ) AS SIGNED )
----
54

skipif mysql # not compatible
query I rowsort label-5616
SELECT 42 + CAST ( - - CAST ( + 12 AS REAL ) AS INTEGER )
----
54

query I rowsort
SELECT 49 * - + 55 AS col2
----
-2695

query I rowsort
SELECT 84 * + - 99 * - + 20
----
166320

query I rowsort
SELECT 58 + + 67 col0
----
125

query II rowsort
SELECT ALL - 10 * - + 3, 32 AS col0
----
30
32

query I rowsort
SELECT ALL - 1 * 97
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT 74 * + COUNT( * ) AS col1
----
74

skipif mysql # not compatible
query I rowsort label-5622
SELECT 74 * + COUNT ( * ) AS col1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - - COUNT( * ) * + 94 AS col0
----
94

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - - COUNT ( * ) * + 94 AS col0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT - + NULLIF ( + + 48, CAST( NULL AS SIGNED ) * - 7 + - 86 )
----
-48

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT - + NULLIF ( + + 48, CAST ( NULL AS INTEGER ) * - 7 + - 86 )
----
-48

query I rowsort
SELECT ALL - + 12 AS col2
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-5626
SELECT 65 * + + COUNT( * ) + + - COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-5626
SELECT 65 * + + COUNT ( * ) + + - COUNT ( * )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT + - MAX( ALL - 33 ) AS col0
----
33

skipif mysql # not compatible
query I rowsort label-5627
SELECT + - MAX ( ALL - 33 ) AS col0
----
33

onlyif mysql # DIV for integer division: 
query II rowsort label-5628
SELECT - 42 * - 30 + 59 DIV 29 col2, 45
----
1262
45

skipif mysql # not compatible
query II rowsort label-5628
SELECT - 42 * - 30 + 59 / 29 col2, 45
----
1262
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5629
SELECT + - CAST( NULL AS SIGNED ), - 19 AS col0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-5629
SELECT + - CAST ( NULL AS INTEGER ), - 19 AS col0
----
NULL
-19

query I rowsort
SELECT ALL + - 76 * - 28 + - 8 AS col2
----
2120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5631
SELECT 1 DIV SUM( DISTINCT + - 41 ) - + 23 - - 52
----
29

skipif mysql # not compatible
query I rowsort label-5631
SELECT 1 / SUM ( DISTINCT + - 41 ) - + 23 - - 52
----
29

query II rowsort
SELECT + - NULLIF ( + + 48, + 93 * 43 ), - 15 col0
----
-48
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5633
SELECT ALL 6 DIV - 35 + - 50 col2
----
-50

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL 6 / - 35 + - 50 col2
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-5634
SELECT - 75 DIV - 29
----
2

skipif mysql # not compatible
query I rowsort label-5634
SELECT - 75 / - 29
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT ALL - 88 * - NULLIF ( - 76, 93 ) + ( + - 22 ) DIV + + 37
----
-6688

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - 88 * - NULLIF ( - 76, 93 ) + ( + - 22 ) / + + 37
----
-6688

query I rowsort
SELECT 60 * + 94 - - 70 * 13 + - 18
----
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-5637
SELECT COUNT( * ) * 88 * - 48 + COUNT( * ) * 66 + + MIN( 51 ) col0
----
-4107

skipif mysql # not compatible
query I rowsort label-5637
SELECT COUNT ( * ) * 88 * - 48 + COUNT ( * ) * 66 + + MIN ( 51 ) col0
----
-4107

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5638
SELECT DISTINCT 9 * - CAST( NULL AS DECIMAL ) AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5638
SELECT DISTINCT 9 * - CAST ( NULL AS REAL ) AS col2, COUNT ( * )
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT ALL ( 45 ) + + COUNT( * ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL ( 45 ) + + COUNT ( * ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT COUNT( DISTINCT 59 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-5640
SELECT COUNT ( DISTINCT 59 ) AS col1
----
1

query I rowsort
SELECT ALL + 4 - + 33 + + + 84 col1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT + 2 + - CASE + CASE - 75 WHEN + - 92 THEN 45 * - 16 + + + 22 + - - 76 + - + 40 * + 26 + + 81 * + + COUNT( * ) + 8 END WHEN - 48 + - + 6 + + - 88 THEN + 24 * 5 + + + 49 * - - 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5642
SELECT + 2 + - CASE + CASE - 75 WHEN + - 92 THEN 45 * - 16 + + + 22 + - - 76 + - + 40 * + 26 + + 81 * + + COUNT ( * ) + 8 END WHEN - 48 + - + 6 + + - 88 THEN + 24 * 5 + + + 49 * - - 19 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5643
SELECT ( COUNT( * ) ) * + 64 * - COUNT( * ) + - + COALESCE ( - COUNT( * ), + 25 * - CAST( + 5 AS SIGNED ), 98 * + + CAST( NULL AS SIGNED ) )
----
-63

skipif mysql # not compatible
query I rowsort label-5643
SELECT ( COUNT ( * ) ) * + 64 * - COUNT ( * ) + - + COALESCE ( - COUNT ( * ), + 25 * - CAST ( + 5 AS INTEGER ), 98 * + + CAST ( NULL AS INTEGER ) )
----
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT DISTINCT 95 DIV - 68
----
-1

skipif mysql # not compatible
query I rowsort label-5644
SELECT DISTINCT 95 / - 68
----
-1

query I rowsort
SELECT DISTINCT 89 * 15 AS col1
----
1335

query I rowsort
SELECT ALL 48 * - 7 * - - 41 AS col2
----
-13776

query I rowsort
SELECT DISTINCT 60 * + 11 AS col2
----
660

query I rowsort
SELECT + 30 * + 60 * - + 95 AS col2
----
-171000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5649
SELECT DISTINCT COALESCE ( + + 92, 33 * - + CASE - - 97 WHEN 91 * - 29 THEN - 33 * 63 WHEN - COUNT( * ) + + 23 + 23 - + + 67 * 33 / - CAST( + ( 16 ) AS DECIMAL ) THEN NULL END * 86 + - CASE - 3 WHEN COUNT( * ) THEN NULL WHEN + CASE + SUM( ALL + 33 ) WHEN 11 * 16 THEN NULL WHEN + 31 + + SUM( + 72 ) THEN 77 END + 31 THEN + COUNT( * ) * 27 WHEN 8 THEN - 97 ELSE NULL END + COUNT( * ), 24 )
----
92

skipif mysql # not compatible
query I rowsort label-5649
SELECT DISTINCT COALESCE ( + + 92, 33 * - + CASE - - 97 WHEN 91 * - 29 THEN - 33 * 63 WHEN - COUNT ( * ) + + 23 + 23 - + + 67 * 33 / - CAST ( + ( 16 ) AS REAL ) THEN NULL END * 86 + - CASE - 3 WHEN COUNT ( * ) THEN NULL WHEN + CASE + SUM ( ALL + 33 ) WHEN 11 * 16 THEN NULL WHEN + 31 + + SUM ( + 72 ) THEN 77 END + 31 THEN + COUNT ( * ) * 27 WHEN 8 THEN - 97 ELSE NULL END + COUNT ( * ), 24 )
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT DISTINCT 22 * - 57 + + COUNT( * )
----
-1253

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT 22 * - 57 + + COUNT ( * )
----
-1253

query I rowsort
SELECT DISTINCT 49 + - NULLIF ( - 88, - 25 )
----
137

query I rowsort
SELECT COALESCE ( + 89, + - 98 * - 87 + + 3 )
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT ALL - + 33 DIV 27 + 25 + - MAX( DISTINCT - 47 ) + - + MIN( - + ( + - 70 ) ) + 76 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL - + 33 / 27 + 25 + - MAX ( DISTINCT - 47 ) + - + MIN ( - + ( + - 70 ) ) + 76 AS col2
----
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5654
SELECT DISTINCT + - 67 DIV 78 + - 54 DIV + MAX( + 86 ) + 61 DIV + + 23 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT + - 67 / 78 + - 54 / + MAX ( + 86 ) + 61 / + + 23 AS col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT ALL + COUNT( DISTINCT - 18 )
----
1

skipif mysql # not compatible
query I rowsort label-5655
SELECT ALL + COUNT ( DISTINCT - 18 )
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL 77 DIV + + 72 + 95 - ( + - ( + - 77 ) )
----
19

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL 77 / + + 72 + 95 - ( + - ( + - 77 ) )
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-5657
SELECT ALL - 62 DIV 68 + - 21 AS col0
----
-21

skipif mysql # not compatible
query I rowsort label-5657
SELECT ALL - 62 / 68 + - 21 AS col0
----
-21

query I rowsort
SELECT DISTINCT + - 8 AS col1
----
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5659
SELECT ALL + 98 DIV 36 + - + 16 + + 13 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL + 98 / 36 + - + 16 + + 13 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5660
SELECT - - SUM( 89 ) * + - CAST( NULL AS SIGNED ) + - MAX( 43 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT - - SUM ( 89 ) * + - CAST ( NULL AS INTEGER ) + - MAX ( 43 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5661
SELECT ALL + - 50 * + - 17 + - + 35 - 70 DIV + 14 + + - 22 * + ( - 94 ) AS col2
----
2878

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + - 50 * + - 17 + - + 35 - 70 / + 14 + + - 22 * + ( - 94 ) AS col2
----
2878

query I rowsort
SELECT - 23 + + 41
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5663
SELECT - 67 * - - COUNT( ALL - 15 ) * - 1 + COALESCE ( + - ( + ( 16 ) ), + 81 DIV - CAST( NULL AS SIGNED ) + + 7 )
----
51

skipif mysql # not compatible
query I rowsort label-5663
SELECT - 67 * - - COUNT ( ALL - 15 ) * - 1 + COALESCE ( + - ( + ( 16 ) ), + 81 / - CAST ( NULL AS INTEGER ) + + 7 )
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + NULLIF ( - 7, + 33 ) * + COALESCE ( CASE + CASE - 49 WHEN + 68 * + - CASE - 38 WHEN 80 THEN + ( - ( + + COUNT( * ) ) ) ELSE + + COUNT( * ) + 78 + + 96 + 7 END + 89 THEN + 27 WHEN - AVG ( + 26 ) / + 44 THEN NULL WHEN 70 * 83 THEN 63 END WHEN 65 * + SUM( - 80 * ( 74 ) ) + + 98 THEN 48 WHEN 52 THEN NULL ELSE ( 71 ) END, + 74 )
----
-497

skipif mysql # not compatible
query I rowsort label-5664
SELECT + NULLIF ( - 7, + 33 ) * + COALESCE ( CASE + CASE - 49 WHEN + 68 * + - CASE - 38 WHEN 80 THEN + ( - ( + + COUNT ( * ) ) ) ELSE + + COUNT ( * ) + 78 + + 96 + 7 END + 89 THEN + 27 WHEN - AVG ( + 26 ) / + 44 THEN NULL WHEN 70 * 83 THEN 63 END WHEN 65 * + SUM ( - 80 * ( 74 ) ) + + 98 THEN 48 WHEN 52 THEN NULL ELSE ( 71 ) END, + 74 )
----
-497

query II rowsort
SELECT DISTINCT - ( 90 ) * - + 35 AS col1, - 69 * - + 84 AS col1
----
3150
5796

onlyif mysql # DIV for integer division: 
query II rowsort label-5666
SELECT DISTINCT + 0 DIV - - ( 53 ) * - - COALESCE ( - 35, + - 81 * - - 53 + + + 29 ) AS col1, 82
----
0
82

skipif mysql # not compatible
query II rowsort label-5666
SELECT DISTINCT + 0 / - - ( 53 ) * - - COALESCE ( - 35, + - 81 * - - 53 + + + 29 ) AS col1, 82
----
0
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT NULLIF ( + + 12, + - 88 + CAST( + - COUNT( * ) AS SIGNED ) ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-5667
SELECT NULLIF ( + + 12, + - 88 + CAST ( + - COUNT ( * ) AS INTEGER ) ) AS col0
----
12

query I rowsort
SELECT ALL 14 * + 2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5669
SELECT ALL + 0 DIV + 62 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + 0 / + 62 AS col0
----
0

query I rowsort
SELECT - 8 * 90
----
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-5671
SELECT COUNT( * ), - 47 * 19 AS col0
----
1
-893

skipif mysql # not compatible
query II rowsort label-5671
SELECT COUNT ( * ), - 47 * 19 AS col0
----
1
-893

query I rowsort
SELECT - ( + + 8 )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT MIN( ALL - - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-5673
SELECT MIN ( ALL - - 55 ) AS col0
----
55

query I rowsort
SELECT ALL 54 * - 48
----
-2592

onlyif mysql # aggregate syntax: 
query II rowsort label-5675
SELECT ALL 72 * - ( - COUNT( * ) ) col2, 69 * + 79 * - 45 AS col1
----
72
-245295

skipif mysql # not compatible
query II rowsort label-5675
SELECT ALL 72 * - ( - COUNT ( * ) ) col2, 69 * + 79 * - 45 AS col1
----
72
-245295

query I rowsort
SELECT - COALESCE ( 79, - - 94 )
----
-79

query I rowsort
SELECT + NULLIF ( + + 97, - + 93 ) * + 46 * 88 AS col2
----
392656

onlyif mysql # aggregate syntax: 
query I rowsort label-5678
SELECT DISTINCT SUM( DISTINCT - + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-5678
SELECT DISTINCT SUM ( DISTINCT - + 77 )
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT SUM( + 93 ) + + COUNT( * ) + - - 96 col1
----
190

skipif mysql # not compatible
query I rowsort label-5679
SELECT SUM ( + 93 ) + + COUNT ( * ) + - - 96 col1
----
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5680
SELECT COUNT( * ) - - 44 + - 68 * + 95 + SUM( ALL + 40 ) * + - NULLIF ( + 99, + 8 + + 2 )
----
-10375

skipif mysql # not compatible
query I rowsort label-5680
SELECT COUNT ( * ) - - 44 + - 68 * + 95 + SUM ( ALL + 40 ) * + - NULLIF ( + 99, + 8 + + 2 )
----
-10375

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT DISTINCT CAST( NULL AS SIGNED ) + 74 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5681
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 74 AS col2
----
NULL

query I rowsort
SELECT ALL 52 + 13 AS col1
----
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5683
SELECT 97 + + - MIN( CAST( NULL AS SIGNED ) ) + ( + - COUNT( * ) ) + - + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT 97 + + - MIN ( CAST ( NULL AS INTEGER ) ) + ( + - COUNT ( * ) ) + - + 4
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT ( 8 ) DIV - 98 col2
----
0

skipif mysql # not compatible
query I rowsort label-5684
SELECT ( 8 ) / - 98 col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5685
SELECT DISTINCT - 79 + - COALESCE ( - 34, + CAST( 74 AS SIGNED ) * ( 42 ), + ( CASE + NULLIF ( 7, MAX( DISTINCT + 88 ) ) WHEN - - COALESCE ( 39, - - 89 ) * 60 THEN - 39 WHEN SUM( + - NULLIF ( + 30, 85 ) ) THEN + 0 - + 48 END ) )
----
-45

skipif mysql # not compatible
query I rowsort label-5685
SELECT DISTINCT - 79 + - COALESCE ( - 34, + CAST ( 74 AS INTEGER ) * ( 42 ), + ( CASE + NULLIF ( 7, MAX ( DISTINCT + 88 ) ) WHEN - - COALESCE ( 39, - - 89 ) * 60 THEN - 39 WHEN SUM ( + - NULLIF ( + 30, 85 ) ) THEN + 0 - + 48 END ) )
----
-45

query I rowsort
SELECT ALL - 15 * + + ( + 49 )
----
-735

query I rowsort
SELECT ALL + 46 + - 42
----
4

query I rowsort
SELECT + ( - ( - - NULLIF ( 59, + 4 ) ) )
----
-59

query I rowsort
SELECT ALL - 24 + - 70 AS col1
----
-94

query I rowsort
SELECT ALL + 65 + 29 * + 23 AS col1
----
732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5691
SELECT ALL 41 * + CAST( NULL AS SIGNED ) * ( AVG ( + + 70 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5691
SELECT ALL 41 * + CAST ( NULL AS INTEGER ) * ( AVG ( + + 70 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5692
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED ) * + CAST( NULL AS SIGNED ) * - ( + 39 ) + - CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5692
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - ( + 39 ) + - CAST ( NULL AS INTEGER ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT ALL SUM( + + 93 ) - - + 75
----
168

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL SUM ( + + 93 ) - - + 75
----
168

query II rowsort
SELECT 34, 74 + - - 62 + + 89 col0
----
34
225

onlyif mysql # aggregate syntax: 
query II rowsort label-5695
SELECT 72 AS col0, SUM( + + 80 ) * 99 * 37 + - ( - 12 )
----
72
293052

skipif mysql # not compatible
query II rowsort label-5695
SELECT 72 AS col0, SUM ( + + 80 ) * 99 * 37 + - ( - 12 )
----
72
293052

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT ALL - CASE + SUM( + + 82 ) WHEN - 84 THEN + - ( 94 ) + + - COUNT( * ) WHEN - - 34 THEN - 14 END
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT ALL - CASE + SUM ( + + 82 ) WHEN - 84 THEN + - ( 94 ) + + - COUNT ( * ) WHEN - - 34 THEN - 14 END
----
NULL

query I rowsort
SELECT ALL + 13 * + - 45 * - + ( 7 )
----
4095

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL + 4 * + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + 4 * + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5699
SELECT DISTINCT - MIN( 50 ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-5699
SELECT DISTINCT - MIN ( 50 ) AS col1
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5700
SELECT 5 * 1 * - CAST( COALESCE ( + + 52, - + COUNT( * ), + 88 + + CAST( 63 AS SIGNED ) ) AS SIGNED ) - + 71
----
-331

skipif mysql # not compatible
query I rowsort label-5700
SELECT 5 * 1 * - CAST ( COALESCE ( + + 52, - + COUNT ( * ), + 88 + + CAST ( 63 AS INTEGER ) ) AS INTEGER ) - + 71
----
-331

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT 62 * + - COUNT( * )
----
-62

skipif mysql # not compatible
query I rowsort label-5701
SELECT 62 * + - COUNT ( * )
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT ALL + CAST( NULL AS SIGNED ) * COALESCE ( + 53, - 75 ) / 78 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL + CAST ( NULL AS INTEGER ) * COALESCE ( + 53, - 75 ) / 78 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5703
SELECT COUNT( * ) * NULLIF ( MIN( ALL + 81 ), SUM( DISTINCT COALESCE ( + - 64, - + 45 - + CAST( - - 38 AS SIGNED ) ) ) ) * + - 50 + - - 42
----
-4008

skipif mysql # not compatible
query I rowsort label-5703
SELECT COUNT ( * ) * NULLIF ( MIN ( ALL + 81 ), SUM ( DISTINCT COALESCE ( + - 64, - + 45 - + CAST ( - - 38 AS INTEGER ) ) ) ) * + - 50 + - - 42
----
-4008

onlyif mysql # DIV for integer division: 
query I rowsort label-5704
SELECT 52 DIV - 48 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-5704
SELECT 52 / - 48 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5705
SELECT + 64 * + COALESCE ( + 89, - ( + COUNT( * ) ) - 34 * COUNT( DISTINCT + NULLIF ( + 35, - 3 ) ) ) * - SUM( DISTINCT + - 28 ) + 74 + - 7 AS col2, + MAX( - 3 ) + NULLIF ( - COUNT( * ), - MAX( ALL - 27 ) - - 52 * 64 ) - CAST( - + 0 AS SIGNED ) AS col1
----
159555
-4

skipif mysql # not compatible
query II rowsort label-5705
SELECT + 64 * + COALESCE ( + 89, - ( + COUNT ( * ) ) - 34 * COUNT ( DISTINCT + NULLIF ( + 35, - 3 ) ) ) * - SUM ( DISTINCT + - 28 ) + 74 + - 7 AS col2, + MAX ( - 3 ) + NULLIF ( - COUNT ( * ), - MAX ( ALL - 27 ) - - 52 * 64 ) - CAST ( - + 0 AS INTEGER ) AS col1
----
159555
-4

query I rowsort
SELECT DISTINCT - 29 col2
----
-29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5707
SELECT DISTINCT 84 + CASE CASE 69 WHEN + - 15 * + 57 * 42 - - + 0 THEN - 53 * 28 * COUNT( * ) + 7 + + + COALESCE ( 67, - 12 * 63 + + 56 * - + 43 * + COUNT( + 28 ) ) WHEN 26 * 31 * + + COUNT( * ) * - + COUNT( * ) THEN NULL END WHEN - COUNT( * ) THEN - CAST( 10 AS DECIMAL ) ELSE NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT 84 + CASE CASE 69 WHEN + - 15 * + 57 * 42 - - + 0 THEN - 53 * 28 * COUNT ( * ) + 7 + + + COALESCE ( 67, - 12 * 63 + + 56 * - + 43 * + COUNT ( + 28 ) ) WHEN 26 * 31 * + + COUNT ( * ) * - + COUNT ( * ) THEN NULL END WHEN - COUNT ( * ) THEN - CAST ( 10 AS REAL ) ELSE NULL END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT ALL + 42 * - - COUNT( * )
----
42

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL + 42 * - - COUNT ( * )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT ALL - 51 DIV - - 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL - 51 / - - 64 AS col1
----
0

query I rowsort
SELECT 77 + + 9 AS col1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5711
SELECT ALL - 42 DIV - SUM( ALL - - NULLIF ( - 70, + CAST( - + ( + 84 ) AS SIGNED ) ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - 42 / - SUM ( ALL - - NULLIF ( - 70, + CAST ( - + ( + 84 ) AS INTEGER ) ) ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5712
SELECT ALL COUNT( * ) + 31 + + 17 * - 66 * + + 0 AS col2
----
32

skipif mysql # not compatible
query I rowsort label-5712
SELECT ALL COUNT ( * ) + 31 + + 17 * - 66 * + + 0 AS col2
----
32

query I rowsort
SELECT DISTINCT + 97 + 82 * - 47
----
-3757

onlyif mysql # aggregate syntax: 
query II rowsort label-5714
SELECT COUNT( * ) + COUNT( * ) AS col0, - ( - 48 )
----
2
48

skipif mysql # not compatible
query II rowsort label-5714
SELECT COUNT ( * ) + COUNT ( * ) AS col0, - ( - 48 )
----
2
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT ALL + + 14 + COUNT( * ) DIV 24 - 57 + 21 + - - 48 * + COUNT( * )
----
26

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + + 14 + COUNT ( * ) / 24 - 57 + 21 + - - 48 * + COUNT ( * )
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5716
SELECT - CAST( - ( - - 52 ) AS SIGNED ) + + 31 * - - 35
----
1137

skipif mysql # not compatible
query I rowsort label-5716
SELECT - CAST ( - ( - - 52 ) AS INTEGER ) + + 31 * - - 35
----
1137

query I rowsort
SELECT - COALESCE ( - 78, 71 ) AS col0
----
78

query I rowsort
SELECT - - 9 AS col2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5719
SELECT ALL - MIN( + CAST( NULL AS SIGNED ) ) AS col2, 61 + - COUNT( * ) * - 56 AS col1
----
NULL
117

skipif mysql # not compatible
query II rowsort label-5719
SELECT ALL - MIN ( + CAST ( NULL AS INTEGER ) ) AS col2, 61 + - COUNT ( * ) * - 56 AS col1
----
NULL
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL + MAX( DISTINCT - 73 ) + - + COALESCE ( 28, + - COUNT( - + 70 ) + - 9 * + + 13, - + 52 ) AS col0
----
-101

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL + MAX ( DISTINCT - 73 ) + - + COALESCE ( 28, + - COUNT ( - + 70 ) + - 9 * + + 13, - + 52 ) AS col0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT NULLIF ( - - COUNT( * ), + 80 ) * + 42
----
42

skipif mysql # not compatible
query I rowsort label-5721
SELECT NULLIF ( - - COUNT ( * ), + 80 ) * + 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL + + COALESCE ( + 89, + 60 ) + + CAST( NULLIF ( - 4, + 58 ) AS SIGNED ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + + COALESCE ( + 89, + 60 ) + + CAST ( NULLIF ( - 4, + 58 ) AS INTEGER ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT + 17 * - COUNT( * ) AS col2
----
-17

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT + 17 * - COUNT ( * ) AS col2
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5724
SELECT + 64 + - 46 AS col1, - 79 * 10 + - - 24 + + COUNT( * )
----
18
-765

skipif mysql # not compatible
query II rowsort label-5724
SELECT + 64 + - 46 AS col1, - 79 * 10 + - - 24 + + COUNT ( * )
----
18
-765

query I rowsort
SELECT - - COALESCE ( 75, + 71 ) col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5726
SELECT ALL 52 - - COUNT( * ) AS col0, + COUNT( * ) * - - 7
----
53
7

skipif mysql # not compatible
query II rowsort label-5726
SELECT ALL 52 - - COUNT ( * ) AS col0, + COUNT ( * ) * - - 7
----
53
7

query I rowsort
SELECT + 22 * - 88 AS col1
----
-1936

onlyif mysql # aggregate syntax: 
query II rowsort label-5728
SELECT - 13 * - COUNT( ALL - + 1 ) + 97 + + 21 * + ( 65 ) * + + ( + 47 ) AS col1, 15 * 88 * 33
----
64265
43560

skipif mysql # not compatible
query II rowsort label-5728
SELECT - 13 * - COUNT ( ALL - + 1 ) + 97 + + 21 * + ( 65 ) * + + ( + 47 ) AS col1, 15 * 88 * 33
----
64265
43560

query I rowsort
SELECT 37 * + 28
----
1036

query I rowsort
SELECT ALL + 93 * + + ( 2 ) AS col0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT ( - 4 ) + + - 15 + - + COUNT( * ) + - 2
----
-22

skipif mysql # not compatible
query I rowsort label-5731
SELECT ( - 4 ) + + - 15 + - + COUNT ( * ) + - 2
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5732
SELECT 62 DIV - 90
----
0

skipif mysql # not compatible
query I rowsort label-5732
SELECT 62 / - 90
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT 33 * - SUM( DISTINCT ( + 93 ) ) AS col1
----
-3069

skipif mysql # not compatible
query I rowsort label-5733
SELECT 33 * - SUM ( DISTINCT ( + 93 ) ) AS col1
----
-3069

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT COALESCE ( - CASE - 81 WHEN - + 83 * - 31 THEN + ( 26 ) * 24 + - 47 + + - COUNT( * ) + 18 END, + + 29 ) * + 16 AS col2
----
464

skipif mysql # not compatible
query I rowsort label-5734
SELECT COALESCE ( - CASE - 81 WHEN - + 83 * - 31 THEN + ( 26 ) * 24 + - 47 + + - COUNT ( * ) + 18 END, + + 29 ) * + 16 AS col2
----
464

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT COUNT( - 29 )
----
1

skipif mysql # not compatible
query I rowsort label-5735
SELECT COUNT ( - 29 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5736
SELECT DISTINCT - COUNT( * ) AS col2, CAST( 10 AS SIGNED ) col1
----
-1
10

skipif mysql # not compatible
query II rowsort label-5736
SELECT DISTINCT - COUNT ( * ) AS col2, CAST ( 10 AS INTEGER ) col1
----
-1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT 94 + - COUNT( * ) * + 32 * + 16
----
-418

skipif mysql # not compatible
query I rowsort label-5737
SELECT 94 + - COUNT ( * ) * + 32 * + 16
----
-418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5738
SELECT CAST( + 49 AS SIGNED ) * - 65 AS col2
----
-3185

skipif mysql # not compatible
query I rowsort label-5738
SELECT CAST ( + 49 AS INTEGER ) * - 65 AS col2
----
-3185

query I rowsort
SELECT ALL 43 + - 15 AS col0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT MIN( ALL + + 57 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-5740
SELECT MIN ( ALL + + 57 ) AS col0
----
57

query I rowsort
SELECT ALL + 10 + 68
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT + CASE - + COUNT( * ) WHEN + COALESCE ( + - 53, - - 49 + - 67 + + COALESCE ( COALESCE ( + 31, 74 ), + AVG ( DISTINCT + - 46 ), + 62, 87, 93 ), COUNT( * ) * - 18 * - 76 ) THEN + 98 WHEN + + 20 - - 37 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-5742
SELECT + CASE - + COUNT ( * ) WHEN + COALESCE ( + - 53, - - 49 + - 67 + + COALESCE ( COALESCE ( + 31, 74 ), + AVG ( DISTINCT + - 46 ), + 62, 87, 93 ), COUNT ( * ) * - 18 * - 76 ) THEN + 98 WHEN + + 20 - - 37 THEN NULL END
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5743
SELECT 87 DIV - ( + - 67 ) col0, 81
----
1
81

skipif mysql # not compatible
query II rowsort label-5743
SELECT 87 / - ( + - 67 ) col0, 81
----
1
81

query I rowsort
SELECT ALL 95 + - 20
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5745
SELECT + SUM( DISTINCT + + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5745
SELECT + SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT - 59 * + + 45
----
-2655

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ALL 73 + COUNT( * ) * 10 * - COUNT( * ) + + + 31 * - 44
----
-1301

skipif mysql # not compatible
query I rowsort label-5747
SELECT ALL 73 + COUNT ( * ) * 10 * - COUNT ( * ) + + + 31 * - 44
----
-1301

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT - + COUNT( * ) + - - 50 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT - + COUNT ( * ) + - - 50 AS col0
----
49

query II rowsort
SELECT - 5 AS col2, - 30
----
-5
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5750
SELECT ALL COUNT( * ), - 11 DIV COUNT( * ) AS col2
----
1
-11

skipif mysql # not compatible
query II rowsort label-5750
SELECT ALL COUNT ( * ), - 11 / COUNT ( * ) AS col2
----
1
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT - 39 DIV 53 - + - 76 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-5751
SELECT - 39 / 53 - + - 76 AS col0
----
76

query I rowsort
SELECT - - 43 - + - 77 AS col1
----
120

query I rowsort
SELECT ( + + 64 )
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT SUM( ALL - + 23 )
----
-23

skipif mysql # not compatible
query I rowsort label-5754
SELECT SUM ( ALL - + 23 )
----
-23

query I rowsort
SELECT - + 8 + 54 + + + 47 - + + 74 + + 55 AS col2
----
74

query I rowsort
SELECT ALL + - 15 - + 48 + + + ( 56 )
----
-7

query II rowsort
SELECT DISTINCT - 44 * - 63 + - + 9 col2, - 13
----
2763
-13

query I rowsort
SELECT ALL - + 2 * - - 5 AS col0
----
-10

query I rowsort
SELECT ( - + 59 )
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5760
SELECT ALL + 7 col2, CAST( NULL AS SIGNED )
----
7
NULL

skipif mysql # not compatible
query II rowsort label-5760
SELECT ALL + 7 col2, CAST ( NULL AS INTEGER )
----
7
NULL

query I rowsort
SELECT - 68 * + 45
----
-3060

query I rowsort
SELECT + CASE - + 29 WHEN 98 THEN 91 END AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5763
SELECT + COALESCE ( + + 68, - 35 * + 81 + + 50 ) DIV - 5 - + - CASE - COALESCE ( + MAX( - 60 ), + 24, + NULLIF ( - 61, 34 - + 85 ) + - + COUNT( * ) ) WHEN - 18 THEN 69 WHEN - 17 THEN NULL WHEN - COUNT( + 66 ) * + COALESCE ( 18, CAST( NULLIF ( COALESCE ( NULLIF ( 94, CAST( + 37 AS SIGNED ) * - 31 ), - 23, - 10 + COALESCE ( + 37, CASE - ( + 6 ) WHEN 56 * + 56 THEN NULL WHEN + CAST( COUNT( * ) AS SIGNED ) * + 24 - 77 THEN 32 WHEN + 54 THEN - ( + 26 ) + - 2 END * + SUM( 15 - + 95 ) ) ), - CAST( NULL AS SIGNED ) * MIN( DISTINCT ( 24 ) ) ) AS SIGNED ) ) THEN NULL ELSE 18 END + ( ( 29 ) + 82 ) DIV COUNT( * ) AS col1
----
116

skipif mysql # not compatible
query I rowsort label-5763
SELECT + COALESCE ( + + 68, - 35 * + 81 + + 50 ) / - 5 - + - CASE - COALESCE ( + MAX ( - 60 ), + 24, + NULLIF ( - 61, 34 - + 85 ) + - + COUNT ( * ) ) WHEN - 18 THEN 69 WHEN - 17 THEN NULL WHEN - COUNT ( + 66 ) * + COALESCE ( 18, CAST ( NULLIF ( COALESCE ( NULLIF ( 94, CAST ( + 37 AS INTEGER ) * - 31 ), - 23, - 10 + COALESCE ( + 37, CASE - ( + 6 ) WHEN 56 * + 56 THEN NULL WHEN + CAST ( COUNT ( * ) AS INTEGER ) * + 24 - 77 THEN 32 WHEN + 54 THEN - ( + 26 ) + - 2 END * + SUM ( 15 - + 95 ) ) ), - CAST ( NULL AS INTEGER ) * MIN ( DISTINCT ( 24 ) ) ) AS INTEGER ) ) THEN NULL ELSE 18 END + ( ( 29 ) + 82 ) / COUNT ( * ) AS col1
----
116

query I rowsort
SELECT ( + NULLIF ( - 28, - 53 * - 10 ) ) AS col2
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT + 37 + COUNT( * )
----
38

skipif mysql # not compatible
query I rowsort label-5765
SELECT + 37 + COUNT ( * )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT ALL 56 * + CASE 7 WHEN 81 THEN - - 23 END + - 1 * + - 57 + + 40 * - 56 - + - 30 / + - CAST( - CAST( 79 AS SIGNED ) AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL 56 * + CASE 7 WHEN 81 THEN - - 23 END + - 1 * + - 57 + + 40 * - 56 - + - 30 / + - CAST ( - CAST ( 79 AS INTEGER ) AS INTEGER ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5767
SELECT ALL CASE COUNT( * ) WHEN + 27 THEN CAST( NULL AS SIGNED ) END * - + 80 * - COUNT( * ) - + + ( - 74 ) + - 92 + + 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL CASE COUNT ( * ) WHEN + 27 THEN CAST ( NULL AS INTEGER ) END * - + 80 * - COUNT ( * ) - + + ( - 74 ) + - 92 + + 12 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5768
SELECT - 78 + 33 * COUNT( * ) * - + 6 * - + 30 / + CAST( NULL AS SIGNED ) * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5768
SELECT - 78 + 33 * COUNT ( * ) * - + 6 * - + 30 / + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0
----
NULL

query I rowsort
SELECT + 84 - 51 col1
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5770
SELECT ALL CAST( - + 6 AS SIGNED ) * 97 + - MAX( 41 )
----
-623

skipif mysql # not compatible
query I rowsort label-5770
SELECT ALL CAST ( - + 6 AS INTEGER ) * 97 + - MAX ( 41 )
----
-623

query I rowsort
SELECT CASE 16 WHEN - 97 * + 27 + - 2 THEN NULL WHEN + 47 THEN + + 6 - + 14 ELSE CASE - 39 WHEN 36 * - 12 * 6 THEN + 87 + + 63 + + 11 ELSE NULL END * + 29 * - 66 END col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5772
SELECT + CASE + 8 WHEN AVG ( + 29 ) THEN NULLIF ( + COUNT( * ), - COUNT( * ) - COUNT( * ) + + COUNT( * ) * + + 84 ) * 18 + COALESCE ( + - COUNT( * ), + AVG ( ALL + 38 ) ) - + + 16 END, 93 + 11 AS col1
----
NULL
104

skipif mysql # not compatible
query II rowsort label-5772
SELECT + CASE + 8 WHEN AVG ( + 29 ) THEN NULLIF ( + COUNT ( * ), - COUNT ( * ) - COUNT ( * ) + + COUNT ( * ) * + + 84 ) * 18 + COALESCE ( + - COUNT ( * ), + AVG ( ALL + 38 ) ) - + + 16 END, 93 + 11 AS col1
----
NULL
104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5773
SELECT CASE - 20 WHEN - 85 THEN + + 59 * 8 * CASE + CAST( NULL AS SIGNED ) WHEN - 63 THEN - ( - + COUNT( * ) ) - - 48 + - + 49 * - 55 * + 20 ELSE NULL END WHEN - 6 + - 48 * 16 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5773
SELECT CASE - 20 WHEN - 85 THEN + + 59 * 8 * CASE + CAST ( NULL AS INTEGER ) WHEN - 63 THEN - ( - + COUNT ( * ) ) - - 48 + - + 49 * - 55 * + 20 ELSE NULL END WHEN - 6 + - 48 * 16 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT + ( ( 61 ) ) * 39 + - 98
----
2281

query I rowsort
SELECT ALL - 16 * - NULLIF ( + + 12, - 37 + + NULLIF ( ( - 55 ), - 54 ) ) + + 74
----
266

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5776
SELECT NULLIF ( - 58, 1 ) * 79 * - 14 + + + CAST( NULL AS DECIMAL ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5776
SELECT NULLIF ( - 58, 1 ) * 79 * - 14 + + + CAST ( NULL AS REAL ) col1
----
NULL

query I rowsort
SELECT ALL 53 * - 84 * 76
----
-338352

query I rowsort
SELECT + 24 + - 36
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-5779
SELECT ALL - 89 * + - 2 * - 98 - + - COUNT( + - 14 ) * 71 AS col1, - 46 - + 55
----
-17373
-101

skipif mysql # not compatible
query II rowsort label-5779
SELECT ALL - 89 * + - 2 * - 98 - + - COUNT ( + - 14 ) * 71 AS col1, - 46 - + 55
----
-17373
-101

query I rowsort
SELECT + + 22 * + 64 AS col1
----
1408

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT ALL + CASE + 45 WHEN 3 THEN - 88 END, COUNT( * ) AS col0
----
NULL
1

skipif mysql # not compatible
query II rowsort label-5781
SELECT ALL + CASE + 45 WHEN 3 THEN - 88 END, COUNT ( * ) AS col0
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT - - 39 * + + 76 + + COUNT( * ) * + 57 - 19 AS col2
----
3002

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT - - 39 * + + 76 + + COUNT ( * ) * + 57 - 19 AS col2
----
3002

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5783
SELECT - COALESCE ( + 33, - CASE + COALESCE ( + + COUNT( + 65 ), - 37, + 87 ) WHEN + 80 + 83 THEN + COALESCE ( - CASE - ( 84 ) WHEN - + 33 THEN 58 * - 4 - + 37 + + COUNT( * ) + - CAST( - 18 AS SIGNED ) * + - CASE - 68 WHEN - COUNT( * ) THEN NULL WHEN + MAX( DISTINCT - 11 ) * ( - COUNT( * ) ) THEN NULL WHEN 46 * - 99 + - 21 THEN - MAX( 27 ) * 51 WHEN 63 THEN 7 * - 28 ELSE NULL END * + 2 DIV AVG ( DISTINCT 65 + + ( 59 - + 34 ) ) ELSE NULL END, - 6 ) + 31 WHEN 87 * + 13 + + 66 * - 59 THEN NULL END )
----
-33

skipif mysql # not compatible
query I rowsort label-5783
SELECT - COALESCE ( + 33, - CASE + COALESCE ( + + COUNT ( + 65 ), - 37, + 87 ) WHEN + 80 + 83 THEN + COALESCE ( - CASE - ( 84 ) WHEN - + 33 THEN 58 * - 4 - + 37 + + COUNT ( * ) + - CAST ( - 18 AS INTEGER ) * + - CASE - 68 WHEN - COUNT ( * ) THEN NULL WHEN + MAX ( DISTINCT - 11 ) * ( - COUNT ( * ) ) THEN NULL WHEN 46 * - 99 + - 21 THEN - MAX ( 27 ) * 51 WHEN 63 THEN 7 * - 28 ELSE NULL END * + 2 / AVG ( DISTINCT 65 + + ( 59 - + 34 ) ) ELSE NULL END, - 6 ) + 31 WHEN 87 * + 13 + + 66 * - 59 THEN NULL END )
----
-33

query I rowsort
SELECT ( + - 59 )
----
-59

query I rowsort
SELECT - + 72 + - 72
----
-144

query I rowsort
SELECT ALL + 67 * + 29 - 78 AS col1
----
1865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5787
SELECT + 77 * - + 86 * - CASE + COUNT( * ) WHEN - 55 THEN NULL ELSE - CAST( - 37 AS SIGNED ) * 84 END * 37 AS col2
----
761503512

skipif mysql # not compatible
query I rowsort label-5787
SELECT + 77 * - + 86 * - CASE + COUNT ( * ) WHEN - 55 THEN NULL ELSE - CAST ( - 37 AS INTEGER ) * 84 END * 37 AS col2
----
761503512

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT - - SUM( + ( + 72 ) ) + + CAST( NULL AS SIGNED ) + + ( - 80 ) * 98 / 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5788
SELECT - - SUM ( + ( + 72 ) ) + + CAST ( NULL AS INTEGER ) + + ( - 80 ) * 98 / 48 AS col2
----
NULL

query II rowsort
SELECT - - 51 col2, + 9
----
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5790
SELECT - 85 AS col2, CAST( NULLIF ( - + 59, - 8 ) AS SIGNED ) AS col2
----
-85
-59

skipif mysql # not compatible
query II rowsort label-5790
SELECT - 85 AS col2, CAST ( NULLIF ( - + 59, - 8 ) AS INTEGER ) AS col2
----
-85
-59

query I rowsort
SELECT - - 95 + + 70
----
165

onlyif mysql # DIV for integer division: 
query II rowsort label-5792
SELECT DISTINCT - 2 AS col2, + 99 DIV + 6 + - 57 - 65 * 61
----
-2
-4006

skipif mysql # not compatible
query II rowsort label-5792
SELECT DISTINCT - 2 AS col2, + 99 / + 6 + - 57 - 65 * 61
----
-2
-4006

onlyif mysql # DIV for integer division: 
query I rowsort label-5793
SELECT - - 46 DIV - 92 col0
----
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT - - 46 / - 92 col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT DISTINCT + + 38 DIV + 40
----
0

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + + 38 / + 40
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5795
SELECT - 62 + MAX( ALL 68 )
----
6

skipif mysql # not compatible
query I rowsort label-5795
SELECT - 62 + MAX ( ALL 68 )
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5796
SELECT ALL + 91 DIV - - MIN( ALL - ( + 70 ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + 91 / - - MIN ( ALL - ( + 70 ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5797
SELECT - COUNT( * ) DIV + 53
----
0

skipif mysql # not compatible
query I rowsort label-5797
SELECT - COUNT ( * ) / + 53
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5798
SELECT - 50 * 50 DIV + + 92
----
-27

skipif mysql # not compatible
query I rowsort label-5798
SELECT - 50 * 50 / + + 92
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT COUNT( * ) * + 10 + + 87 - - COUNT( * ) * + ( + ( 73 ) ) * - 89
----
-6400

skipif mysql # not compatible
query I rowsort label-5799
SELECT COUNT ( * ) * + 10 + + 87 - - COUNT ( * ) * + ( + ( 73 ) ) * - 89
----
-6400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5800
SELECT + SUM( + CASE + CASE - - NULLIF ( - 28, + - 67 ) WHEN + 91 THEN - + COALESCE ( 12, 72 ) WHEN 28 THEN NULL ELSE NULL END WHEN 31 * - + 20 THEN NULL WHEN + CAST( + + ( + - 41 ) AS SIGNED ) THEN NULL WHEN + 6 THEN NULL ELSE - 71 END ) DIV + + 90 + + 56 AS col0
----
56

skipif mysql # not compatible
query I rowsort label-5800
SELECT + SUM ( + CASE + CASE - - NULLIF ( - 28, + - 67 ) WHEN + 91 THEN - + COALESCE ( 12, 72 ) WHEN 28 THEN NULL ELSE NULL END WHEN 31 * - + 20 THEN NULL WHEN + CAST ( + + ( + - 41 ) AS INTEGER ) THEN NULL WHEN + 6 THEN NULL ELSE - 71 END ) / + + 90 + + 56 AS col0
----
56

query I rowsort
SELECT DISTINCT + ( - 95 ) AS col2
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5802
SELECT ALL 71 / 10 + - - COALESCE ( - - MAX( CAST( NULL AS SIGNED ) ), + 15 / + CAST( + 41 AS SIGNED ) ) + - 67 / - + 69 * + COUNT( * ) / CASE + COUNT( * ) WHEN - ( - CAST( COALESCE ( - 45, - + 6 + + - 60 - + - 50 + + AVG ( ALL + 58 ) * + 14, + 77 * - 84 * - 58 - + 5 + 1 ) AS SIGNED ) ) * 21 THEN - 33 / + 22 + - 34 * - 18 END * + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 71 / 10 + - - COALESCE ( - - MAX ( CAST ( NULL AS INTEGER ) ), + 15 / + CAST ( + 41 AS INTEGER ) ) + - 67 / - + 69 * + COUNT ( * ) / CASE + COUNT ( * ) WHEN - ( - CAST ( COALESCE ( - 45, - + 6 + + - 60 - + - 50 + + AVG ( ALL + 58 ) * + 14, + 77 * - 84 * - 58 - + 5 + 1 ) AS INTEGER ) ) * 21 THEN - 33 / + 22 + - 34 * - 18 END * + 48
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT CASE - + 75 WHEN - 20 THEN - 84 WHEN 55 THEN NULL ELSE - - SUM( + 31 ) * 31 END + - 46 + 34
----
949

skipif mysql # not compatible
query I rowsort label-5803
SELECT CASE - + 75 WHEN - 20 THEN - 84 WHEN 55 THEN NULL ELSE - - SUM ( + 31 ) * 31 END + - 46 + 34
----
949

query I rowsort
SELECT DISTINCT - NULLIF ( + - 4, 46 * - 39 * - 80 )
----
4

query I rowsort
SELECT 86 * 35 col2
----
3010

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5806
SELECT ALL COUNT( * ) DIV 46, 45 + - - ( 5 ) AS col0
----
0
50

skipif mysql # not compatible
query II rowsort label-5806
SELECT ALL COUNT ( * ) / 46, 45 + - - ( 5 ) AS col0
----
0
50

onlyif mysql # DIV for integer division: 
query I rowsort label-5807
SELECT 94 DIV + + COALESCE ( + - 8, 27 ) - + 88 AS col1
----
-99

skipif mysql # not compatible
query I rowsort label-5807
SELECT 94 / + + COALESCE ( + - 8, 27 ) - + 88 AS col1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5808
SELECT CAST( + 41 AS SIGNED ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-5808
SELECT CAST ( + 41 AS INTEGER ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query II rowsort label-5809
SELECT ALL - CASE 74 WHEN - 88 * 60 THEN + 48 * COUNT( * ) * 35 * 59 WHEN + COALESCE ( 17, + ( - + COUNT( * ) ) ) THEN NULL END, + 42 AS col0
----
NULL
42

skipif mysql # not compatible
query II rowsort label-5809
SELECT ALL - CASE 74 WHEN - 88 * 60 THEN + 48 * COUNT ( * ) * 35 * 59 WHEN + COALESCE ( 17, + ( - + COUNT ( * ) ) ) THEN NULL END, + 42 AS col0
----
NULL
42

query I rowsort
SELECT - 8 * - 79
----
632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5811
SELECT AVG ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT AVG ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5812
SELECT - 74 - + 33 + - 83 + - 8 + 52 / - + CASE COUNT( * ) WHEN - CAST( + 23 AS SIGNED ) THEN - 50 END / COUNT( ALL - + 25 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT - 74 - + 33 + - 83 + - 8 + 52 / - + CASE COUNT ( * ) WHEN - CAST ( + 23 AS INTEGER ) THEN - 50 END / COUNT ( ALL - + 25 ) AS col0
----
NULL

query I rowsort
SELECT ALL CASE - + 63 WHEN 62 THEN + 59 * 59 * - COALESCE ( - + 61, 42 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT 62 * + - 57
----
-3534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5815
SELECT + 2 - 39 + - COUNT( * ) + + - COALESCE ( ( ( COUNT( * ) ) ), + - 73 DIV - MIN( + + 57 ), - - 55 * - 66 * + 35 * - + 58, - - 58 ) - - COUNT( * ) * 14
----
-25

skipif mysql # not compatible
query I rowsort label-5815
SELECT + 2 - 39 + - COUNT ( * ) + + - COALESCE ( ( ( COUNT ( * ) ) ), + - 73 / - MIN ( + + 57 ), - - 55 * - 66 * + 35 * - + 58, - - 58 ) - - COUNT ( * ) * 14
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-5816
SELECT ALL ( + ( 92 ) ) AS col1, - MAX( DISTINCT + 54 ) - - 60 AS col1
----
92
6

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL ( + ( 92 ) ) AS col1, - MAX ( DISTINCT + 54 ) - - 60 AS col1
----
92
6

query I rowsort
SELECT + 11 * - - 3 AS col2
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5818
SELECT CAST( 96 AS SIGNED ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-5818
SELECT CAST ( 96 AS INTEGER ) AS col1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT - CAST( + + 19 AS SIGNED )
----
-19

skipif mysql # not compatible
query I rowsort label-5819
SELECT - CAST ( + + 19 AS INTEGER )
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT DISTINCT - + COUNT( * ) + + 35
----
34

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT - + COUNT ( * ) + + 35
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-5821
SELECT + 68 + + 97 + + + 62 col2, 29 DIV - NULLIF ( + NULLIF ( + + 44, 29 * + + 14 + - 94 * + 24 + + 34 + - 31 + - 78 ), 0 - - 23 * - 63 ) AS col0
----
227
0

skipif mysql # not compatible
query II rowsort label-5821
SELECT + 68 + + 97 + + + 62 col2, 29 / - NULLIF ( + NULLIF ( + + 44, 29 * + + 14 + - 94 * + 24 + + 34 + - 31 + - 78 ), 0 - - 23 * - 63 ) AS col0
----
227
0

query I rowsort
SELECT 35 - + 64
----
-29

query I rowsort
SELECT - ( + 93 ) - - 39 AS col2
----
-54

query I rowsort
SELECT - + 12 AS col1
----
-12

query I rowsort
SELECT ( 71 ) * 33 AS col0
----
2343

onlyif mysql # aggregate syntax: 
query I rowsort label-5826
SELECT 62 + 22 + + COUNT( * ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-5826
SELECT 62 + 22 + + COUNT ( * ) AS col1
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5827
SELECT ALL 79 + + 93 * 44 + + ( - COUNT( * ) ) DIV 17 * - + COUNT( - 82 ) col1
----
4171

skipif mysql # not compatible
query I rowsort label-5827
SELECT ALL 79 + + 93 * 44 + + ( - COUNT ( * ) ) / 17 * - + COUNT ( - 82 ) col1
----
4171

query II rowsort
SELECT 10, 28 * - + 83 AS col0
----
10
-2324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5829
SELECT ALL - 51 + + CAST( NULL AS SIGNED ) + + 37 + - NULLIF ( - 75, + 4 ) + + - 65 * 65 + + + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL - 51 + + CAST ( NULL AS INTEGER ) + + 37 + - NULLIF ( - 75, + 4 ) + + - 65 * 65 + + + 82
----
NULL

query I rowsort
SELECT 93 * + 77
----
7161

query I rowsort
SELECT DISTINCT - 79 + - + 40
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT 3 DIV + 31 * - 93 DIV 20
----
0

skipif mysql # not compatible
query I rowsort label-5832
SELECT 3 / + 31 * - 93 / 20
----
0

query I rowsort
SELECT 97 * 34 * + 29 + - 65 AS col2
----
95577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5834
SELECT + 47 AS col0, 30 + - COUNT( * ) - - - 60 * COUNT( * ) + - - CAST( NULL AS SIGNED ) * 71 / + + COUNT( ALL 75 ) / - COUNT( * ) AS col2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-5834
SELECT + 47 AS col0, 30 + - COUNT ( * ) - - - 60 * COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * 71 / + + COUNT ( ALL 75 ) / - COUNT ( * ) AS col2
----
47
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT 93 + - COUNT( ALL 61 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-5835
SELECT 93 + - COUNT ( ALL 61 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-5836
SELECT ALL - 31, - COUNT( * ) AS col1
----
-31
-1

skipif mysql # not compatible
query II rowsort label-5836
SELECT ALL - 31, - COUNT ( * ) AS col1
----
-31
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT 2 + + - 4 + + - 61 - - 2 DIV - - 6
----
-63

skipif mysql # not compatible
query I rowsort label-5837
SELECT 2 + + - 4 + + - 61 - - 2 / - - 6
----
-63

query I rowsort
SELECT DISTINCT - ( 44 ) AS col0
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5839
SELECT 21 * + + 46 * - 49 AS col0, - CAST( NULL AS SIGNED ) col0
----
-47334
NULL

skipif mysql # not compatible
query II rowsort label-5839
SELECT 21 * + + 46 * - 49 AS col0, - CAST ( NULL AS INTEGER ) col0
----
-47334
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5840
SELECT 92 + - COUNT( * ) DIV + 61 + - 41
----
51

skipif mysql # not compatible
query I rowsort label-5840
SELECT 92 + - COUNT ( * ) / + 61 + - 41
----
51

query II rowsort
SELECT - NULLIF ( - 34, - ( 17 ) ) * + 69 - + - 58 + + + 26 + ( + - 76 ) * 92 * + + 30 col0, 32
----
-207330
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT ALL + COUNT( * ) * + - 17 col1
----
-17

skipif mysql # not compatible
query I rowsort label-5842
SELECT ALL + COUNT ( * ) * + - 17 col1
----
-17

onlyif mysql # aggregate syntax: 
query II rowsort label-5843
SELECT ALL - - MIN( - ( 89 ) ) AS col2, + 18 * + 32 AS col1
----
-89
576

skipif mysql # not compatible
query II rowsort label-5843
SELECT ALL - - MIN ( - ( 89 ) ) AS col2, + 18 * + 32 AS col1
----
-89
576

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5844
SELECT - 92 * - ( + + 93 ) + + NULLIF ( + 84, - + 24 ), + 39 + + 91 + 10 * - 89 + 93 DIV - COUNT( 86 ) AS col0
----
8640
-853

skipif mysql # not compatible
query II rowsort label-5844
SELECT - 92 * - ( + + 93 ) + + NULLIF ( + 84, - + 24 ), + 39 + + 91 + 10 * - 89 + 93 / - COUNT ( 86 ) AS col0
----
8640
-853

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT - COUNT( * ) + + 14
----
13

skipif mysql # not compatible
query I rowsort label-5845
SELECT - COUNT ( * ) + + 14
----
13

query I rowsort
SELECT 1 + - 88 AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT + MIN( - + 11 )
----
-11

skipif mysql # not compatible
query I rowsort label-5847
SELECT + MIN ( - + 11 )
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5848
SELECT 11 DIV + + 31 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT 11 / + + 31 AS col1
----
0

query I rowsort
SELECT + 99 + - - 4 + - 93 AS col0
----
10

query I rowsort
SELECT ALL - NULLIF ( + ( + 17 ), + 31 ) + 31 AS col1
----
14

query I rowsort
SELECT DISTINCT + ( 91 ) * + 89
----
8099

query I rowsort
SELECT ALL - - 96 * 84
----
8064

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT 51, 48 * - MIN( ALL + 82 ) + + + 24 * + 36 AS col2
----
51
-3072

skipif mysql # not compatible
query II rowsort label-5853
SELECT 51, 48 * - MIN ( ALL + 82 ) + + + 24 * + 36 AS col2
----
51
-3072

query II rowsort
SELECT - + 6 AS col1, - 87 AS col2
----
-6
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5855
SELECT 50 + 35 + + CAST( 61 AS SIGNED )
----
146

skipif mysql # not compatible
query I rowsort label-5855
SELECT 50 + 35 + + CAST ( 61 AS INTEGER )
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT MIN( - - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-5856
SELECT MIN ( - - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT DISTINCT + 32 + - + COUNT( ALL 1 ) * - + 31 * + 1 col2
----
63

skipif mysql # not compatible
query I rowsort label-5857
SELECT DISTINCT + 32 + - + COUNT ( ALL 1 ) * - + 31 * + 1 col2
----
63

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT ALL + 74 + - 62 + 27 AS col0, + COUNT( * ) + 96 + + + 89 * + + 50 - 13
----
39
4534

skipif mysql # not compatible
query II rowsort label-5858
SELECT ALL + 74 + - 62 + 27 AS col0, + COUNT ( * ) + 96 + + + 89 * + + 50 - 13
----
39
4534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5859
SELECT - ( + CAST( + MAX( ALL + 36 ) AS SIGNED ) )
----
-36

skipif mysql # not compatible
query I rowsort label-5859
SELECT - ( + CAST ( + MAX ( ALL + 36 ) AS INTEGER ) )
----
-36

query I rowsort
SELECT DISTINCT 37 + - + 69 AS col0
----
-32

query I rowsort
SELECT 60 + + + 25 AS col2
----
85

query I rowsort
SELECT DISTINCT + 83 + 5 + 7 - - 68 * 45 * + 22 AS col1
----
67415

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + 61 - 41 + + - COUNT( * ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-5863
SELECT + 61 - 41 + + - COUNT ( * ) AS col0
----
19

query I rowsort
SELECT - COALESCE ( + 60, 52 - + 80 * 59 + + + 89 ) col0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5865
SELECT + ( SUM( - ( + 70 ) ) ) * - 37 AS col0
----
2590

skipif mysql # not compatible
query I rowsort label-5865
SELECT + ( SUM ( - ( + 70 ) ) ) * - 37 AS col0
----
2590

query I rowsort
SELECT - 61 + + 93 * 60 AS col1
----
5519

query I rowsort
SELECT + NULLIF ( - 62, + + 10 / 8 ) AS col2
----
-62

query I rowsort
SELECT + 89 * - 93 AS col0
----
-8277

query I rowsort
SELECT - 53 * - + 54 * - 44
----
-125928

query I rowsort
SELECT - + 85 * - 81 + - + 61 * COALESCE ( 61, 11 ) col2
----
3164

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + - COUNT( * ) * + 31
----
-31

skipif mysql # not compatible
query I rowsort label-5871
SELECT + - COUNT ( * ) * + 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - - 10 * - + 56 + 68 + MAX( DISTINCT - 52 )
----
-544

skipif mysql # not compatible
query I rowsort label-5872
SELECT - - 10 * - + 56 + 68 + MAX ( DISTINCT - 52 )
----
-544

query I rowsort
SELECT DISTINCT + 4 * + 23 + 78
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5874
SELECT ALL - 61 * - 65 + + CAST( + - 39 AS SIGNED ) + - 62 * 55 * - - 34
----
-112014

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - 61 * - 65 + + CAST ( + - 39 AS INTEGER ) + - 62 * 55 * - - 34
----
-112014

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL + + 44 * + ( + - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + + 44 * + ( + - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT - ( - + 51 ) + - 94 + + - 64 * + 20 * + + 33 + + 24 + - 89
----
-42348

query I rowsort
SELECT - + 83 * - + 70 AS col2
----
5810

query I rowsort
SELECT ALL + 3 + + 99 * + + ( 23 ) AS col0
----
2280

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT - + SUM( ( + + 72 ) ) - - CASE 75 WHEN - - 61 * + + 52 THEN NULL WHEN 21 / - 63 + - 59 THEN 48 END + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-5879
SELECT - + SUM ( ( + + 72 ) ) - - CASE 75 WHEN - - 61 * + + 52 THEN NULL WHEN 21 / - 63 + - 59 THEN 48 END + 92
----
NULL

query I rowsort
SELECT ALL - 12 * + - 76
----
912

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5881
SELECT ALL + NULLIF ( - 26, - NULLIF ( - 28, + + COUNT( DISTINCT - CAST( - ( ( + + 62 ) ) AS SIGNED ) ) + CAST( - ( + MIN( ALL + ( + 60 ) ) ) AS SIGNED ) ) ), - 24 col0
----
-26
-24

skipif mysql # not compatible
query II rowsort label-5881
SELECT ALL + NULLIF ( - 26, - NULLIF ( - 28, + + COUNT ( DISTINCT - CAST ( - ( ( + + 62 ) ) AS INTEGER ) ) + CAST ( - ( + MIN ( ALL + ( + 60 ) ) ) AS INTEGER ) ) ), - 24 col0
----
-26
-24

query I rowsort
SELECT - 0 + + 23 * - 95 * + + 91 col2
----
-198835

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT - 91 * - - COUNT( * )
----
-91

skipif mysql # not compatible
query I rowsort label-5883
SELECT - 91 * - - COUNT ( * )
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT ALL - 24 * + 53 * - MIN( ALL + - 24 ) AS col0
----
-30528

skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL - 24 * + 53 * - MIN ( ALL + - 24 ) AS col0
----
-30528

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5885
SELECT - CASE + + 58 WHEN + MIN( DISTINCT 9 ) * 68 THEN - 97 + + + 30 WHEN + MAX( ALL - 25 ) THEN + 9 ELSE NULL END + 43 AS col1, CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5885
SELECT - CASE + + 58 WHEN + MIN ( DISTINCT 9 ) * 68 THEN - 97 + + + 30 WHEN + MAX ( ALL - 25 ) THEN + 9 ELSE NULL END + 43 AS col1, CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5886
SELECT + CAST( + + 74 AS SIGNED ) - + 46
----
28

skipif mysql # not compatible
query I rowsort label-5886
SELECT + CAST ( + + 74 AS INTEGER ) - + 46
----
28

query I rowsort
SELECT DISTINCT - 6 * 49
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT - 38 + MIN( ALL - 73 ) + - 63
----
-174

skipif mysql # not compatible
query I rowsort label-5888
SELECT - 38 + MIN ( ALL - 73 ) + - 63
----
-174

query I rowsort
SELECT + 43 - + 39
----
4

query I rowsort
SELECT + 61 * + 86 AS col1
----
5246

query I rowsort
SELECT + 20 + - + 78 * 23 * - 24 * 21
----
904196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5892
SELECT ALL NULLIF ( + ( + - CASE + 52 WHEN - + ( - CAST( NULL AS SIGNED ) ) THEN NULL WHEN + CAST( - 70 AS SIGNED ) THEN NULL ELSE 71 + SUM( ALL + 29 ) + + 85 END ), - 74 + 60 ) - - 53 AS col2
----
-132

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL NULLIF ( + ( + - CASE + 52 WHEN - + ( - CAST ( NULL AS INTEGER ) ) THEN NULL WHEN + CAST ( - 70 AS INTEGER ) THEN NULL ELSE 71 + SUM ( ALL + 29 ) + + 85 END ), - 74 + 60 ) - - 53 AS col2
----
-132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5893
SELECT - CAST( NULL AS DECIMAL ) * - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-5893
SELECT - CAST ( NULL AS REAL ) * - 93
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5894
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5895
SELECT ALL 45 AS col0, - COUNT( * )
----
45
-1

skipif mysql # not compatible
query II rowsort label-5895
SELECT ALL 45 AS col0, - COUNT ( * )
----
45
-1

query I rowsort
SELECT + 84 + - 98 AS col1
----
-14

query I rowsort
SELECT + 1 * - 32
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL COUNT( ALL + 93 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL COUNT ( ALL + 93 ) col0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT + ( MIN( 69 ) ) AS col1, - 11 + + 13 * 53 * + 76
----
69
52353

skipif mysql # not compatible
query II rowsort label-5899
SELECT + ( MIN ( 69 ) ) AS col1, - 11 + + 13 * 53 * + 76
----
69
52353

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT 62 * + + COUNT( * ) + NULLIF ( - 40, 77 ) AS col1
----
22

skipif mysql # not compatible
query I rowsort label-5900
SELECT 62 * + + COUNT ( * ) + NULLIF ( - 40, 77 ) AS col1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5901
SELECT - COALESCE ( + - 12, - - 40 * + CAST( NULL AS SIGNED ) ) / - - 30 + + - 16 * - + CAST( NULL AS SIGNED ) + + + 42 / - 32 * + 88 * - 2 * - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT - COALESCE ( + - 12, - - 40 * + CAST ( NULL AS INTEGER ) ) / - - 30 + + - 16 * - + CAST ( NULL AS INTEGER ) + + + 42 / - 32 * + 88 * - 2 * - 64
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5902
SELECT ALL CAST( NULL AS SIGNED ) * + - 22 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL CAST ( NULL AS INTEGER ) * + - 22 col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT DISTINCT + CASE 55 WHEN - 34 THEN + - 59 * + 65 - + 35 WHEN + - 12 THEN NULL END / MAX( + 79 ) + - - 18 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT + CASE 55 WHEN - 34 THEN + - 59 * + 65 - + 35 WHEN + - 12 THEN NULL END / MAX ( + 79 ) + - - 18 AS col2
----
NULL

query I rowsort
SELECT ALL 10 * 65 AS col2
----
650

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5905
SELECT ALL + 21 / - ( CAST( NULL AS SIGNED ) ) + - + 30 + + - 88 / 37 - - 91 + - 39 AS col1, - 73
----
NULL
-73

skipif mysql # not compatible
query II rowsort label-5905
SELECT ALL + 21 / - ( CAST ( NULL AS INTEGER ) ) + - + 30 + + - 88 / 37 - - 91 + - 39 AS col1, - 73
----
NULL
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5906
SELECT ALL - 7 DIV 88 + + 31 DIV - ( + 24 )
----
-1

skipif mysql # not compatible
query I rowsort label-5906
SELECT ALL - 7 / 88 + + 31 / - ( + 24 )
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5907
SELECT CASE - - 79 WHEN 10 THEN NULL WHEN - - 46 * + AVG ( - - 64 ) THEN 86 * + + 78 - - 39 / 52 WHEN - + 12 - - - 50 + + COUNT( * ) + - 52 THEN NULL END * - COALESCE ( - 23, + 79, + CAST( NULL AS SIGNED ) + + + 80 ) + + 33 + 53 + + 45
----
NULL

skipif mysql # not compatible
query I rowsort label-5907
SELECT CASE - - 79 WHEN 10 THEN NULL WHEN - - 46 * + AVG ( - - 64 ) THEN 86 * + + 78 - - 39 / 52 WHEN - + 12 - - - 50 + + COUNT ( * ) + - 52 THEN NULL END * - COALESCE ( - 23, + 79, + CAST ( NULL AS INTEGER ) + + + 80 ) + + 33 + 53 + + 45
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5908
SELECT CAST( 52 AS SIGNED ) * COUNT( * ) DIV + COALESCE ( + COUNT( * ), - 22 * + 97 - + + 43 ) - + COUNT( * ) * + MIN( + ( 26 ) ) * CAST( + SUM( 74 ) AS SIGNED ), COUNT( DISTINCT + 89 ) col1
----
-1872
1

skipif mysql # not compatible
query II rowsort label-5908
SELECT CAST ( 52 AS INTEGER ) * COUNT ( * ) / + COALESCE ( + COUNT ( * ), - 22 * + 97 - + + 43 ) - + COUNT ( * ) * + MIN ( + ( 26 ) ) * CAST ( + SUM ( 74 ) AS INTEGER ), COUNT ( DISTINCT + 89 ) col1
----
-1872
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5909
SELECT DISTINCT + + 47 AS col0, COALESCE ( 99, + + 29, + - 63 ) + - - 18 + + + COUNT( * ) * + - 96 - 95 + - - 78 * - - 5
----
47
316

skipif mysql # not compatible
query II rowsort label-5909
SELECT DISTINCT + + 47 AS col0, COALESCE ( 99, + + 29, + - 63 ) + - - 18 + + + COUNT ( * ) * + - 96 - 95 + - - 78 * - - 5
----
47
316

query I rowsort
SELECT + + 93 + - 69 AS col2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT + CAST( NULL AS SIGNED ) * + 15 + - CAST( + + 79 AS SIGNED ) + + - 11 + - - 2 + 79 - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT + CAST ( NULL AS INTEGER ) * + 15 + - CAST ( + + 79 AS INTEGER ) + + - 11 + - - 2 + 79 - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5912
SELECT + - 18 DIV 22 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-5912
SELECT + - 18 / 22 AS col1
----
0

query I rowsort
SELECT - - 13 + - 32 col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT ALL 29 * COALESCE ( + 43, + 81, - + 37 ) + 82 * - COUNT( ALL + 33 )
----
1165

skipif mysql # not compatible
query I rowsort label-5914
SELECT ALL 29 * COALESCE ( + 43, + 81, - + 37 ) + 82 * - COUNT ( ALL + 33 )
----
1165

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT + 49 * - 88 + + COUNT( * ) AS col0
----
-4311

skipif mysql # not compatible
query I rowsort label-5915
SELECT + 49 * - 88 + + COUNT ( * ) AS col0
----
-4311

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5916
SELECT + COUNT( * ) AS col0, 66 DIV + 42
----
1
1

skipif mysql # not compatible
query II rowsort label-5916
SELECT + COUNT ( * ) AS col0, 66 / + 42
----
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5917
SELECT ALL - 63 DIV + 79 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - 63 / + 79 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5918
SELECT DISTINCT + 20 * - + 3 * - 96 + - - 57 + - 44 DIV MAX( DISTINCT + - 20 )
----
5819

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + 20 * - + 3 * - 96 + - - 57 + - 44 / MAX ( DISTINCT + - 20 )
----
5819

query I rowsort
SELECT ALL - 83 * + 89
----
-7387

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT ALL 54 - 46 - - 29 * CAST( + 90 AS SIGNED ) - - COALESCE ( COUNT( * ), + COUNT( * ) * + 36 ) + 78 * - CAST( - - CASE - 8 WHEN - - COUNT( * ) THEN 58 WHEN - NULLIF ( - 18, - 91 ) * + + 37 * - 43 THEN NULL END AS SIGNED ) * 6 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL 54 - 46 - - 29 * CAST ( + 90 AS INTEGER ) - - COALESCE ( COUNT ( * ), + COUNT ( * ) * + 36 ) + 78 * - CAST ( - - CASE - 8 WHEN - - COUNT ( * ) THEN 58 WHEN - NULLIF ( - 18, - 91 ) * + + 37 * - 43 THEN NULL END AS INTEGER ) * 6 AS col0
----
NULL

query I rowsort
SELECT - ( + + 37 ) AS col2
----
-37

query I rowsort
SELECT 68 * + 57 col1
----
3876

onlyif mysql # aggregate syntax: 
query II rowsort label-5923
SELECT 6 + - CASE 65 WHEN - - COUNT( * ) THEN 6 * 57 ELSE NULL END, - COUNT( * ) * + 88 AS col0
----
NULL
-88

skipif mysql # not compatible
query II rowsort label-5923
SELECT 6 + - CASE 65 WHEN - - COUNT ( * ) THEN 6 * 57 ELSE NULL END, - COUNT ( * ) * + 88 AS col0
----
NULL
-88

query I rowsort
SELECT ALL + 65 - - 65 AS col0
----
130

query I rowsort
SELECT 87 * + 59
----
5133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5926
SELECT 22 * + COUNT( DISTINCT + 63 ) * - - CAST( NULL AS SIGNED ) * + + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-5926
SELECT 22 * + COUNT ( DISTINCT + 63 ) * - - CAST ( NULL AS INTEGER ) * + + 5
----
NULL

query I rowsort
SELECT 2 + + 18 AS col2
----
20

query II rowsort
SELECT DISTINCT 91 AS col2, + 19
----
91
19

query II rowsort
SELECT - 0 col2, 46 AS col2
----
0
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT 2 DIV - 9 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT 2 / - 9 AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5931
SELECT COUNT( * ) + + 65 DIV - 99 - - 96 AS col2
----
97

skipif mysql # not compatible
query I rowsort label-5931
SELECT COUNT ( * ) + + 65 / - 99 - - 96 AS col2
----
97

query I rowsort
SELECT 11 * + 20 * + - 41
----
-9020

query I rowsort
SELECT 47 + - 50 AS col2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5934
SELECT DISTINCT 14 col2, + COUNT( * ) * + + 40 AS col1
----
14
40

skipif mysql # not compatible
query II rowsort label-5934
SELECT DISTINCT 14 col2, + COUNT ( * ) * + + 40 AS col1
----
14
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT 27 * COUNT( * ) col0
----
27

skipif mysql # not compatible
query I rowsort label-5935
SELECT 27 * COUNT ( * ) col0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5936
SELECT ALL + 58 + + 40 + - 89 * - + CAST( NULL AS SIGNED ) col2, + 72
----
NULL
72

skipif mysql # not compatible
query II rowsort label-5936
SELECT ALL + 58 + + 40 + - 89 * - + CAST ( NULL AS INTEGER ) col2, + 72
----
NULL
72

query I rowsort
SELECT ALL - ( 29 ) + 60 + - 55 AS col2
----
-24

query II rowsort
SELECT + - 78 AS col2, + ( - + 61 ) + 67
----
-78
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT 16 * - - COUNT( * ) + + 13 - - 55 + 65 AS col1
----
149

skipif mysql # not compatible
query I rowsort label-5939
SELECT 16 * - - COUNT ( * ) + + 13 - - 55 + 65 AS col1
----
149

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT + + COUNT( * ) * + - 98 + 53 col0
----
-45

skipif mysql # not compatible
query I rowsort label-5940
SELECT + + COUNT ( * ) * + - 98 + 53 col0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT ALL 58 + - COUNT( * )
----
57

skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL 58 + - COUNT ( * )
----
57

query I rowsort
SELECT ALL - 78 * + 32 AS col2
----
-2496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5943
SELECT - ( - CAST( NULL AS SIGNED ) ) * + 1 * - 62 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT - ( - CAST ( NULL AS INTEGER ) ) * + 1 * - 62 col0
----
NULL

query I rowsort
SELECT + 11 * + + 77 AS col1
----
847

query I rowsort
SELECT DISTINCT + ( 18 ) * + 67
----
1206

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT - 34 * + + 34 - + COUNT( + - 20 )
----
-1157

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT - 34 * + + 34 - + COUNT ( + - 20 )
----
-1157

query I rowsort
SELECT ALL - 76 - + NULLIF ( - + 70, - 64 ) - - 60
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT + + SUM( + ( - - 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-5948
SELECT + + SUM ( + ( - - 87 ) )
----
87

query I rowsort
SELECT ALL + 95 - + 14 col2
----
81

query I rowsort
SELECT + 77 * + - 96
----
-7392

query I rowsort
SELECT DISTINCT 47 * + 99 + - - 58
----
4711

query I rowsort
SELECT ALL - ( - 70 ) AS col1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-5953
SELECT 4 DIV 94
----
0

skipif mysql # not compatible
query I rowsort label-5953
SELECT 4 / 94
----
0

query I rowsort
SELECT - 44 * 15 * - ( 70 )
----
46200

query I rowsort
SELECT 77 * + - ( + + 64 ) AS col0
----
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT ( + - ( - CASE 74 WHEN 1 THEN 31 WHEN 17 THEN NULL WHEN - + COUNT( * ) THEN NULL ELSE 0 * + 89 END ) ) - + - 98 col2
----
98

skipif mysql # not compatible
query I rowsort label-5956
SELECT ( + - ( - CASE 74 WHEN 1 THEN 31 WHEN 17 THEN NULL WHEN - + COUNT ( * ) THEN NULL ELSE 0 * + 89 END ) ) - + - 98 col2
----
98

query I rowsort
SELECT ALL + 61 * + + 0 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5958
SELECT DISTINCT 55 DIV + - 54
----
-1

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT 55 / + - 54
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT COUNT( * ) * + 50 AS col0
----
50

skipif mysql # not compatible
query I rowsort label-5959
SELECT COUNT ( * ) * + 50 AS col0
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5960
SELECT - 56 * + 4 + COALESCE ( COUNT( * ), + + 50 + - - COUNT( * ), + 38 * - + SUM( ALL + + CAST( NULL AS SIGNED ) ) ) AS col2
----
-223

skipif mysql # not compatible
query I rowsort label-5960
SELECT - 56 * + 4 + COALESCE ( COUNT ( * ), + + 50 + - - COUNT ( * ), + 38 * - + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) ) AS col2
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5961
SELECT COUNT( ALL - 87 ) * 14 DIV 28 * + 66 * - ( 75 ) * + + 34 + 14
----
14

skipif mysql # not compatible
query I rowsort label-5961
SELECT COUNT ( ALL - 87 ) * 14 / 28 * + 66 * - ( 75 ) * + + 34 + 14
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5962
SELECT CAST( + 90 AS SIGNED ) + COUNT( * ) + 24 + + + MAX( DISTINCT + + 59 ) AS col2
----
174

skipif mysql # not compatible
query I rowsort label-5962
SELECT CAST ( + 90 AS INTEGER ) + COUNT ( * ) + 24 + + + MAX ( DISTINCT + + 59 ) AS col2
----
174

query I rowsort
SELECT 31 - - + 15 * + ( 79 )
----
1216

query II rowsort
SELECT 41 - + 50 AS col1, + NULLIF ( 58, + 9 ) + + ( - 60 ) + 79 AS col1
----
-9
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5965
SELECT 47 * 3 * - CAST( NULL AS SIGNED ) * - 34 * + CASE 51 WHEN + + 48 THEN NULL ELSE 63 * + 80 * ( - 48 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5965
SELECT 47 * 3 * - CAST ( NULL AS INTEGER ) * - 34 * + CASE 51 WHEN + + 48 THEN NULL ELSE 63 * + 80 * ( - 48 ) END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 17 + - 20 * COUNT( * ) * + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - 17 + - 20 * COUNT ( * ) * + 84
----
NULL

query I rowsort
SELECT 31 + - 80 AS col1
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5968
SELECT 37 DIV 46 * + - COUNT( * )
----
0

skipif mysql # not compatible
query I rowsort label-5968
SELECT 37 / 46 * + - COUNT ( * )
----
0

query I rowsort
SELECT DISTINCT + 27 + + 96 AS col1
----
123

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT - 59 DIV 20 * + 85 AS col0
----
-170

skipif mysql # not compatible
query I rowsort label-5970
SELECT - 59 / 20 * + 85 AS col0
----
-170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5971
SELECT 76 DIV - + COUNT( * ) - 68 + - + 42 col0
----
-186

skipif mysql # not compatible
query I rowsort label-5971
SELECT 76 / - + COUNT ( * ) - 68 + - + 42 col0
----
-186

query I rowsort
SELECT ALL + + 87 * + - 94 AS col0
----
-8178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5973
SELECT + - COALESCE ( - 11, - COUNT( ALL ( - + 48 ) ) ) / + + COUNT( * ) + ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5973
SELECT + - COALESCE ( - 11, - COUNT ( ALL ( - + 48 ) ) ) / + + COUNT ( * ) + ( - CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 79 * 13 + - ( + - 10 ) AS col2
----
1037

query I rowsort
SELECT ( - 28 ) + - 2 AS col1
----
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5976
SELECT ALL - 76 * CAST( NULL AS DECIMAL ) + 99 - - 19 - 55 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - 76 * CAST ( NULL AS REAL ) + 99 - - 19 - 55 AS col2
----
NULL

query I rowsort
SELECT DISTINCT - 88 * 51 * - 83 * + 46
----
17135184

query I rowsort
SELECT DISTINCT + COALESCE ( + 33, + - NULLIF ( 46, - 25 * - 68 ) ) AS col2
----
33

query I rowsort
SELECT ALL + - 58 col0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5980
SELECT + 2 + - CAST( NULL AS SIGNED ) + - 47 / - - 63 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT + 2 + - CAST ( NULL AS INTEGER ) + - 47 / - - 63 AS col2
----
NULL

query I rowsort
SELECT - - 83 * - - 67
----
5561

query I rowsort
SELECT + - 78 * + 95 * + ( - 36 ) AS col1
----
266760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT DISTINCT + CAST( + - ( - 52 ) AS SIGNED ) * + + 72
----
3744

skipif mysql # not compatible
query I rowsort label-5983
SELECT DISTINCT + CAST ( + - ( - 52 ) AS INTEGER ) * + + 72
----
3744

query I rowsort
SELECT 2 * + 24 + - 63 + + 23 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5985
SELECT + CAST( NULL AS SIGNED ) + - 48 * COUNT( * ) + + + 12 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT + CAST ( NULL AS INTEGER ) + - 48 * COUNT ( * ) + + + 12 AS col0
----
NULL

query I rowsort
SELECT ALL + 2 * - 39 AS col0
----
-78

query I rowsort
SELECT + 26 * 73 col2
----
1898

query I rowsort
SELECT DISTINCT + 93 * + 29 AS col1
----
2697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5989
SELECT - CASE + - 96 WHEN + 45 THEN NULL WHEN - COUNT( DISTINCT 26 ) THEN - CAST( NULL AS SIGNED ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-5989
SELECT - CASE + - 96 WHEN + 45 THEN NULL WHEN - COUNT ( DISTINCT 26 ) THEN - CAST ( NULL AS INTEGER ) END
----
NULL

query I rowsort
SELECT + 52 * - - 57 + - + 34 + 48 + - - 49 * - 83 * - + 73 AS col0
----
299869

query II rowsort
SELECT + 55 + ( - - 0 ) AS col2, - 76 + - 4 AS col1
----
55
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5992
SELECT + 25 DIV + 65 * - 73
----
0

skipif mysql # not compatible
query I rowsort label-5992
SELECT + 25 / + 65 * - 73
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5993
SELECT + COUNT( * ) + - + 84
----
-83

skipif mysql # not compatible
query I rowsort label-5993
SELECT + COUNT ( * ) + - + 84
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5994
SELECT - CASE 81 WHEN - + 38 + 87 THEN 77 + 9 ELSE - + 81 / 15 * - - COUNT( * ) * COUNT( * ) + - - CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT - CASE 81 WHEN - + 38 + 87 THEN 77 + 9 ELSE - + 81 / 15 * - - COUNT ( * ) * COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) END AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5995
SELECT ALL CAST( + - 73 AS SIGNED ) + + CASE + 12 WHEN - + 1 + 14 THEN NULL WHEN + 43 THEN + 87 - COUNT( ALL - + 59 ) ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5995
SELECT ALL CAST ( + - 73 AS INTEGER ) + + CASE + 12 WHEN - + 1 + 14 THEN NULL WHEN + 43 THEN + 87 - COUNT ( ALL - + 59 ) ELSE NULL END AS col0
----
NULL

query I rowsort
SELECT + 36 + + 21 AS col2
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT ALL 1 DIV - 89
----
0

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL 1 / - 89
----
0

query I rowsort
SELECT + 12 + 61 AS col0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5999
SELECT + 59 - - 69 + - 37 DIV + 52 AS col1
----
128

skipif mysql # not compatible
query I rowsort label-5999
SELECT + 59 - - 69 + - 37 / + 52 AS col1
----
128

query I rowsort
SELECT - + 75 + - - 64
----
-11

query I rowsort
SELECT ALL 17 * 78 AS col0
----
1326

query II rowsort
SELECT DISTINCT - 67, 51 AS col2
----
-67
51

query I rowsort
SELECT ALL ( - 79 ) AS col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT DISTINCT ( + 63 ) - + 76 - + COUNT( * )
----
-14

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT ( + 63 ) - + 76 - + COUNT ( * )
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6005
SELECT ALL - CAST( - 42 AS SIGNED ) * - 66 + 30 + + 30 * 37 * - 29 + - - 40, 28 AS col0
----
-34892
28

skipif mysql # not compatible
query II rowsort label-6005
SELECT ALL - CAST ( - 42 AS INTEGER ) * - 66 + 30 + + 30 * 37 * - 29 + - - 40, 28 AS col0
----
-34892
28

onlyif mysql # aggregate syntax: 
query II rowsort label-6006
SELECT + 34 AS col0, COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-6006
SELECT + 34 AS col0, COUNT ( * ) AS col2
----
34
1

query I rowsort
SELECT ALL + - ( + 37 ) AS col1
----
-37

query I rowsort
SELECT ALL + 95 * - - 7 * + 12
----
7980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT - 50 * + CAST( NULL AS SIGNED ) + - 53 + + 86 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT - 50 * + CAST ( NULL AS INTEGER ) + - 53 + + 86 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6010
SELECT ALL + 84 DIV 17
----
4

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL + 84 / 17
----
4

query II rowsort
SELECT DISTINCT + - 24, 67 AS col2
----
-24
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6012
SELECT DISTINCT + - 17 DIV 88 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6012
SELECT DISTINCT + - 17 / 88 AS col2
----
0

query II rowsort
SELECT + + 41 AS col2, 65 col2
----
41
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL - 35 * + - NULLIF ( + + 76, SUM( ALL 26 ) ) * + 50 + 79 * + 38
----
136002

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - 35 * + - NULLIF ( + + 76, SUM ( ALL 26 ) ) * + 50 + 79 * + 38
----
136002

query I rowsort
SELECT - + 29 * - 91
----
2639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6016
SELECT - + CAST( NULL AS SIGNED ) * 14 - + 49, SUM( ALL + 53 ) AS col1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-6016
SELECT - + CAST ( NULL AS INTEGER ) * 14 - + 49, SUM ( ALL + 53 ) AS col1
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT + SUM( - 13 ) AS col1
----
-13

skipif mysql # not compatible
query I rowsort label-6017
SELECT + SUM ( - 13 ) AS col1
----
-13

onlyif mysql # aggregate syntax: 
query II rowsort label-6018
SELECT + COALESCE ( + 93, + COUNT( * ) ) AS col0, - SUM( - 58 ) AS col2
----
93
58

skipif mysql # not compatible
query II rowsort label-6018
SELECT + COALESCE ( + 93, + COUNT ( * ) ) AS col0, - SUM ( - 58 ) AS col2
----
93
58

query I rowsort
SELECT ALL - + 75 * + ( + 10 )
----
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6020
SELECT - ( 85 ) * - COUNT( * ) DIV 77 DIV SUM( DISTINCT - + 95 ) AS col2, - 31
----
0
-31

skipif mysql # not compatible
query II rowsort label-6020
SELECT - ( 85 ) * - COUNT ( * ) / 77 / SUM ( DISTINCT - + 95 ) AS col2, - 31
----
0
-31

query I rowsort
SELECT DISTINCT 55 * 20 + + 0
----
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL 24 * + 61 * - 29 * 24 * - COUNT( * ) + + 91 AS col1
----
1019035

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL 24 * + 61 * - 29 * 24 * - COUNT ( * ) + + 91 AS col1
----
1019035

onlyif mysql # aggregate syntax: 
query I rowsort label-6023
SELECT NULLIF ( + COALESCE ( + - 35, + 64 * - SUM( - + 20 ) ), + - ( + 42 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-6023
SELECT NULLIF ( + COALESCE ( + - 35, + 64 * - SUM ( - + 20 ) ), + - ( + 42 ) )
----
-35

query I rowsort
SELECT ( 46 ) * - 35 + - 43
----
-1653

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT + CASE 30 WHEN - - CASE - 39 WHEN MIN( ALL + + 42 ) THEN NULL WHEN + 11 + 97 + + 18 + + + COALESCE ( COUNT( * ), + - COUNT( * ) ) / - - 31 * + + 49 THEN + - 89 ELSE 92 END * 67 - - 76 - - 15 THEN AVG ( 82 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT + CASE 30 WHEN - - CASE - 39 WHEN MIN ( ALL + + 42 ) THEN NULL WHEN + 11 + 97 + + 18 + + + COALESCE ( COUNT ( * ), + - COUNT ( * ) ) / - - 31 * + + 49 THEN + - 89 ELSE 92 END * 67 - - 76 - - 15 THEN AVG ( 82 ) END AS col1
----
NULL

query I rowsort
SELECT - 25 + + ( 73 ) + + + 54 * - 58
----
-3084

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT NULLIF ( + + NULLIF ( - + 57, COUNT( * ) ), 64 )
----
-57

skipif mysql # not compatible
query I rowsort label-6027
SELECT NULLIF ( + + NULLIF ( - + 57, COUNT ( * ) ), 64 )
----
-57

query I rowsort
SELECT - ( - + 30 ) AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6029
SELECT ALL CAST( - - 23 AS SIGNED ) col0
----
23

skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL CAST ( - - 23 AS INTEGER ) col0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT DISTINCT - COUNT( ALL + - 61 ) * - COUNT( * ) + + COUNT( * )
----
2

skipif mysql # not compatible
query I rowsort label-6030
SELECT DISTINCT - COUNT ( ALL + - 61 ) * - COUNT ( * ) + + COUNT ( * )
----
2

onlyif mysql # aggregate syntax: 
query II rowsort label-6031
SELECT ALL + 10 * + 7 * + MAX( + + 11 ) + - 44 AS col2, 39
----
726
39

skipif mysql # not compatible
query II rowsort label-6031
SELECT ALL + 10 * + 7 * + MAX ( + + 11 ) + - 44 AS col2, 39
----
726
39

query I rowsort
SELECT ALL CASE 58 WHEN 56 THEN - + ( - - 43 ) END - - 77 + + + ( - 38 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6033
SELECT - 59 + - - CAST( + 17 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-6033
SELECT - 59 + - - CAST ( + 17 AS INTEGER )
----
-42

query I rowsort
SELECT ALL 62 col1
----
62

query I rowsort
SELECT + 41 - 7
----
34

query I rowsort
SELECT + 53 * + - 67
----
-3551

onlyif mysql # DIV for integer division: 
query I rowsort label-6037
SELECT ALL - 90 DIV 92 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6037
SELECT ALL - 90 / 92 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6038
SELECT + + 85 / CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6038
SELECT + + 85 / CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 14 )
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6040
SELECT ALL 51 * - - NULLIF ( - 80, - CAST( NULL AS SIGNED ) ) DIV - COUNT( * )
----
4080

skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL 51 * - - NULLIF ( - 80, - CAST ( NULL AS INTEGER ) ) / - COUNT ( * )
----
4080

query II rowsort
SELECT DISTINCT 9 * - + ( + ( + 92 ) ) AS col0, 34
----
-828
34

query I rowsort
SELECT 79 * + 33
----
2607

query I rowsort
SELECT ALL + 39 * - 73 + 29
----
-2818

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT + MAX( 47 ) + 14 AS col0
----
61

skipif mysql # not compatible
query I rowsort label-6044
SELECT + MAX ( 47 ) + 14 AS col0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT MAX( DISTINCT + + 16 ) AS col1
----
16

skipif mysql # not compatible
query I rowsort label-6045
SELECT MAX ( DISTINCT + + 16 ) AS col1
----
16

query I rowsort
SELECT 2 * + 92 * + 55
----
10120

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL - - COUNT( * ) + 26 + - COUNT( * ) * - 99 AS col2
----
126

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL - - COUNT ( * ) + 26 + - COUNT ( * ) * - 99 AS col2
----
126

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6048
SELECT + 6 DIV + COUNT( * ) + 87
----
93

skipif mysql # not compatible
query I rowsort label-6048
SELECT + 6 / + COUNT ( * ) + 87
----
93

query I rowsort
SELECT ALL 93 * + 87 AS col1
----
8091

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6050
SELECT ALL - - 40 DIV 69 + + + MIN( - + 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL - - 40 / 69 + + + MIN ( - + 58 )
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT + 31 * + - 26 + + 15 + + ( - CAST( NULL AS SIGNED ) ) + - - 23 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT + 31 * + - 26 + + 15 + + ( - CAST ( NULL AS INTEGER ) ) + - - 23 AS col2
----
NULL

query II rowsort
SELECT ALL - 12 + 70 AS col0, + 87 * + 39
----
58
3393

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6053
SELECT - COUNT( * ) DIV + 65 + - - 95 * 65 + + 19 + + 61 * + + 84
----
11318

skipif mysql # not compatible
query I rowsort label-6053
SELECT - COUNT ( * ) / + 65 + - - 95 * 65 + + 19 + + 61 * + + 84
----
11318

query I rowsort
SELECT DISTINCT - 57 + - 62 + 3 + 78 AS col1
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6055
SELECT ALL - 48 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL - 48 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 96 * 59
----
5664

onlyif mysql # aggregate syntax: 
query I rowsort label-6057
SELECT COUNT( * ) + + - 72
----
-71

skipif mysql # not compatible
query I rowsort label-6057
SELECT COUNT ( * ) + + - 72
----
-71

query I rowsort
SELECT ALL - 12 + 32 - + + 90 + - 14
----
-84

query I rowsort
SELECT ALL 25 * - 42 AS col2
----
-1050

onlyif mysql # DIV for integer division: 
query II rowsort label-6060
SELECT DISTINCT - 31 + - 28 DIV + 24 AS col1, 4
----
-32
4

skipif mysql # not compatible
query II rowsort label-6060
SELECT DISTINCT - 31 + - 28 / + 24 AS col1, 4
----
-32
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6061
SELECT DISTINCT - 85 DIV - 7
----
12

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - 85 / - 7
----
12

query I rowsort
SELECT ALL - ( - 38 ) - - 55 * - 87 AS col1
----
-4747

onlyif mysql # aggregate syntax: 
query III rowsort label-6063
SELECT 35 AS col1, 75 * COUNT( * ) AS col0, 96
----
35
75
96

skipif mysql # not compatible
query III rowsort label-6063
SELECT 35 AS col1, 75 * COUNT ( * ) AS col0, 96
----
35
75
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT 21 * - + COUNT( * ) AS col2
----
-21

skipif mysql # not compatible
query I rowsort label-6064
SELECT 21 * - + COUNT ( * ) AS col2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT 56 * + + ( - SUM( DISTINCT - 10 ) )
----
560

skipif mysql # not compatible
query I rowsort label-6065
SELECT 56 * + + ( - SUM ( DISTINCT - 10 ) )
----
560

onlyif mysql # aggregate syntax: 
query II rowsort label-6066
SELECT 46 * + MAX( + + 65 ), 14 AS col2
----
2990
14

skipif mysql # not compatible
query II rowsort label-6066
SELECT 46 * + MAX ( + + 65 ), 14 AS col2
----
2990
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6067
SELECT 82 * + COUNT( - 83 ) * + COUNT( 43 ) AS col1, ( SUM( 11 ) ) * + 86 * + MIN( ALL - 23 ) + CASE WHEN NOT - 85 NOT IN ( - + 93, + ( + 54 ) + + MAX( - + 39 ) + - - 52, MIN( DISTINCT - + ( 46 ) ), - 74 + - 31 * ( + + 74 ) ) THEN - 16 * - + 19 / + - 7 + + - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) * + COALESCE ( - 72, + 80 ) ELSE NULL END
----
82
NULL

skipif mysql # not compatible
query II rowsort label-6067
SELECT 82 * + COUNT ( - 83 ) * + COUNT ( 43 ) AS col1, ( SUM ( 11 ) ) * + 86 * + MIN ( ALL - 23 ) + CASE WHEN NOT - 85 NOT IN ( - + 93, + ( + 54 ) + + MAX ( - + 39 ) + - - 52, MIN ( DISTINCT - + ( 46 ) ), - 74 + - 31 * ( + + 74 ) ) THEN - 16 * - + 19 / + - 7 + + - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + COALESCE ( - 72, + 80 ) ELSE NULL END
----
82
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6068
SELECT DISTINCT CASE 2 WHEN + ( - 27 ) * + SUM( - - 86 ) THEN NULL WHEN - 57 * - 78 + COUNT( DISTINCT 94 ) THEN - COUNT( * ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT CASE 2 WHEN + ( - 27 ) * + SUM ( - - 86 ) THEN NULL WHEN - 57 * - 78 + COUNT ( DISTINCT 94 ) THEN - COUNT ( * ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6069
SELECT ( + CAST( NULL AS SIGNED ) ) * + - 34 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT ( + CAST ( NULL AS INTEGER ) ) * + - 34 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6070
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( 61 AS SIGNED ) / 5 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( 61 AS INTEGER ) / 5 + - COUNT ( * )
----
NULL

query I rowsort
SELECT - - ( + 58 ) col0
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6072
SELECT + 63 - - CAST( NULL AS DECIMAL ) / 40 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6072
SELECT + 63 - - CAST ( NULL AS REAL ) / 40 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6073
SELECT CAST( NULL AS SIGNED ) / - + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT CAST ( NULL AS INTEGER ) / - + 64 AS col0
----
NULL

query I rowsort
SELECT 35 * + 40 AS col1
----
1400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6075
SELECT ALL ( - CAST( + COUNT( * ) AS SIGNED ) ) + 25 col1
----
24

skipif mysql # not compatible
query I rowsort label-6075
SELECT ALL ( - CAST ( + COUNT ( * ) AS INTEGER ) ) + 25 col1
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6076
SELECT - 68 + + + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6076
SELECT - 68 + + + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6077
SELECT DISTINCT + 85 DIV - MAX( DISTINCT + 80 ) AS col0, COUNT( * ) * + 44 col1
----
-1
44

skipif mysql # not compatible
query II rowsort label-6077
SELECT DISTINCT + 85 / - MAX ( DISTINCT + 80 ) AS col0, COUNT ( * ) * + 44 col1
----
-1
44

query II rowsort
SELECT DISTINCT + - ( + 33 ) + + 42 AS col2, 58
----
9
58

query I rowsort
SELECT ALL 71 * + - 4 * + 48 + 64 + 31 AS col1
----
-13537

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT ALL - 52 * COUNT( * ) - + - 61 + - 72 - + 98 AS col2
----
-161

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL - 52 * COUNT ( * ) - + - 61 + - 72 - + 98 AS col2
----
-161

query I rowsort
SELECT 83 * + CASE + ( + 49 ) WHEN 38 THEN + 53 END
----
NULL

query I rowsort
SELECT ALL 85 * - + 71 AS col0
----
-6035

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT SUM( DISTINCT - 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-6083
SELECT SUM ( DISTINCT - 66 )
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-6084
SELECT + 73, 22 * - NULLIF ( + COUNT( * ), 94 ) * - 41 AS col1
----
73
902

skipif mysql # not compatible
query II rowsort label-6084
SELECT + 73, 22 * - NULLIF ( + COUNT ( * ), 94 ) * - 41 AS col1
----
73
902

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT MAX( ( - 91 ) )
----
-91

skipif mysql # not compatible
query I rowsort label-6085
SELECT MAX ( ( - 91 ) )
----
-91

query I rowsort
SELECT 41 * - 45
----
-1845

onlyif mysql # aggregate syntax: 
query II rowsort label-6087
SELECT 12 - - 72 col0, ( - COALESCE ( 58, + MIN( - 8 ), - 17 ) ) AS col2
----
84
-58

skipif mysql # not compatible
query II rowsort label-6087
SELECT 12 - - 72 col0, ( - COALESCE ( 58, + MIN ( - 8 ), - 17 ) ) AS col2
----
84
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6088
SELECT COUNT( + 14 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-6088
SELECT COUNT ( + 14 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT COUNT( * ) DIV + 42 * - - 48 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT COUNT ( * ) / + 42 * - - 48 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT COUNT( + 34 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6090
SELECT COUNT ( + 34 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL ( 81 ) - 69 * MAX( + 19 ) AS col2
----
-1230

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL ( 81 ) - 69 * MAX ( + 19 ) AS col2
----
-1230

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - COUNT( ALL + 81 )
----
-1

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - COUNT ( ALL + 81 )
----
-1

query I rowsort
SELECT 81 * + - 87 + + + 88
----
-6959

query II rowsort
SELECT 56 - 67, + 51 * + 31 * 21 * + 8 - - - 89 AS col1
----
-11
265519

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT COUNT( * ) * + + 2 AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6095
SELECT COUNT ( * ) * + + 2 AS col0
----
2

query I rowsort
SELECT 18 * 3 + - - 98 AS col0
----
152

query I rowsort
SELECT + NULLIF ( 74, 68 )
----
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6098
SELECT ALL + 82 * NULLIF ( + 75, + 16 / - 87 + - ( + CAST( ( 1 ) AS DECIMAL ) ) * - 81 + ( COUNT( * ) ) )
----
6150

skipif mysql # not compatible
query I rowsort label-6098
SELECT ALL + 82 * NULLIF ( + 75, + 16 / - 87 + - ( + CAST ( ( 1 ) AS REAL ) ) * - 81 + ( COUNT ( * ) ) )
----
6150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6099
SELECT ( - COUNT( * ) ) DIV 69
----
0

skipif mysql # not compatible
query I rowsort label-6099
SELECT ( - COUNT ( * ) ) / 69
----
0

query I rowsort
SELECT 82 * 38 AS col2
----
3116

onlyif mysql # DIV for integer division: 
query II rowsort label-6101
SELECT ALL 11 col0, 40 DIV + 36
----
11
1

skipif mysql # not compatible
query II rowsort label-6101
SELECT ALL 11 col0, 40 / + 36
----
11
1

query I rowsort
SELECT - 6 + - 96 * + 28 * + + 93 - 74 col2
----
-250064

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6103
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * + 18 + + 64 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6103
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * + 18 + + 64 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT ALL + 63 * + ( - COUNT( * ) ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL + 63 * + ( - COUNT ( * ) ) AS col2
----
-63

onlyif mysql # DIV for integer division: 
query II rowsort label-6105
SELECT - + 52 DIV 9 AS col0, - 92 AS col0
----
-5
-92

skipif mysql # not compatible
query II rowsort label-6105
SELECT - + 52 / 9 AS col0, - 92 AS col0
----
-5
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6106
SELECT - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + + 10 + + 68 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6106
SELECT - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + + 10 + + 68 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - + NULLIF ( + 13, - 19 + - 43 / - 21 * - + 26 ) * 18 AS col0
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT DISTINCT COUNT( ALL + 30 )
----
1

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT COUNT ( ALL + 30 )
----
1

query II rowsort
SELECT ALL - 14 AS col1, 26
----
-14
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT - - COUNT( * ) + + + 73
----
74

skipif mysql # not compatible
query I rowsort label-6110
SELECT - - COUNT ( * ) + + + 73
----
74

query II rowsort
SELECT ALL - 60 AS col1, 85 * - 4 * 2 - + 76 + - AVG ( ALL - 98 ) - - 78 + + 45 + 56 * - CASE 82 WHEN + - NULLIF ( 98, + 38 ) THEN - 64 + 67 + + 75 ELSE NULL END * + + ( + 46 ) * 51
----
-60
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6112
SELECT - 60 + CAST( NULL AS SIGNED ) + - - 37 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6112
SELECT - 60 + CAST ( NULL AS INTEGER ) + - - 37 AS col1
----
NULL

query I rowsort
SELECT - 30 + - 82 AS col1
----
-112

query I rowsort
SELECT - 69 * 57 AS col0
----
-3933

query I rowsort
SELECT ALL - 5 + 22
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - COUNT( ALL 9 )
----
-1

skipif mysql # not compatible
query I rowsort label-6116
SELECT - COUNT ( ALL 9 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT ALL - 56 + CAST( + + 3 AS SIGNED )
----
-53

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - 56 + CAST ( + + 3 AS INTEGER )
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT - + 50 * ( + 29 ) * - COUNT( * ) - 19 AS col1
----
1431

skipif mysql # not compatible
query I rowsort label-6118
SELECT - + 50 * ( + 29 ) * - COUNT ( * ) - 19 AS col1
----
1431

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL - - COUNT( * ) + 45 AS col1
----
46

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - - COUNT ( * ) + 45 AS col1
----
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6120
SELECT - - 19, + ( 97 ) + COUNT( * ) * + + COUNT( * ) AS col0
----
19
98

skipif mysql # not compatible
query II rowsort label-6120
SELECT - - 19, + ( 97 ) + COUNT ( * ) * + + COUNT ( * ) AS col0
----
19
98

query I rowsort
SELECT ALL 58 + + - 9 AS col0
----
49

query II rowsort
SELECT DISTINCT 54 col0, 3 AS col1
----
54
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6123
SELECT ALL + - 56 * MIN( - 54 ) * + 14 + 41 + + 87 + + COUNT( * ) * + 74 DIV + + 83 AS col2
----
42464

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL + - 56 * MIN ( - 54 ) * + 14 + 41 + + 87 + + COUNT ( * ) * + 74 / + + 83 AS col2
----
42464

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6124
SELECT - CASE CASE + CAST( NULL AS DECIMAL ) WHEN + + NULLIF ( + + 17, + CASE - 65 WHEN + 80 * + + COUNT( * ) + + 16 THEN NULL WHEN + 81 THEN NULL ELSE - 72 - + 91 * + + 48 * + 66 * 38 / COUNT( * ) * ( - ( + 42 ) ) END - 67 + + ( - 63 ) ) * - 20 THEN 77 * CAST( NULL AS DECIMAL ) + - 61 - ( - 58 ) WHEN - 44 * + ( 72 ) * - - 49 THEN NULL END WHEN 56 + + - COUNT( + + 60 ) THEN 67 END + 36 * 81 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6124
SELECT - CASE CASE + CAST ( NULL AS REAL ) WHEN + + NULLIF ( + + 17, + CASE - 65 WHEN + 80 * + + COUNT ( * ) + + 16 THEN NULL WHEN + 81 THEN NULL ELSE - 72 - + 91 * + + 48 * + 66 * 38 / COUNT ( * ) * ( - ( + 42 ) ) END - 67 + + ( - 63 ) ) * - 20 THEN 77 * CAST ( NULL AS REAL ) + - 61 - ( - 58 ) WHEN - 44 * + ( 72 ) * - - 49 THEN NULL END WHEN 56 + + - COUNT ( + + 60 ) THEN 67 END + 36 * 81 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT ALL + 36 * + COALESCE ( - 53, - 70 - - COALESCE ( - ( + SUM( ALL - 77 ) ), + - 60 ) ) + + 35
----
-1873

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL + 36 * + COALESCE ( - 53, - 70 - - COALESCE ( - ( + SUM ( ALL - 77 ) ), + - 60 ) ) + + 35
----
-1873

query I rowsort
SELECT ALL - 5 * + 0 + - 16
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6127
SELECT DISTINCT + 61 * CAST( - NULLIF ( - 97, + 15 ) AS SIGNED ) - - 44 + - + 10
----
5951

skipif mysql # not compatible
query I rowsort label-6127
SELECT DISTINCT + 61 * CAST ( - NULLIF ( - 97, + 15 ) AS INTEGER ) - - 44 + - + 10
----
5951

query I rowsort
SELECT ALL 17 * - ( + 39 ) - 0
----
-663

query I rowsort
SELECT + 90 * - 38 * + - 16
----
54720

query I rowsort
SELECT + NULLIF ( - + 59, - 90 * + 28 ) * 30 AS col1
----
-1770

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT ALL COUNT( * ) * 41
----
41

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL COUNT ( * ) * 41
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6132
SELECT ALL 54 * 8 - + CAST( + 69 AS SIGNED ) * + - COUNT( * ) + + 32
----
533

skipif mysql # not compatible
query I rowsort label-6132
SELECT ALL 54 * 8 - + CAST ( + 69 AS INTEGER ) * + - COUNT ( * ) + + 32
----
533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6133
SELECT + 54 * + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6133
SELECT + 54 * + - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT + NULLIF ( - 93, 66 )
----
-93

query I rowsort
SELECT ALL + 12 * + 8 AS col2
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6136
SELECT + 75 * CASE + 4 WHEN CAST( - - 38 AS SIGNED ) THEN NULL WHEN + ( + ( + 53 ) ) + 70 THEN NULL WHEN - + 7 * - 20 * + + 85 - 50 * 54 THEN NULL ELSE + NULLIF ( - - 31, + ( + - SUM( ALL 9 ) ) ) DIV 53 END + 60 * COUNT( DISTINCT + 53 ) - + 16 + + COUNT( DISTINCT + 59 ) AS col2
----
45

skipif mysql # not compatible
query I rowsort label-6136
SELECT + 75 * CASE + 4 WHEN CAST ( - - 38 AS INTEGER ) THEN NULL WHEN + ( + ( + 53 ) ) + 70 THEN NULL WHEN - + 7 * - 20 * + + 85 - 50 * 54 THEN NULL ELSE + NULLIF ( - - 31, + ( + - SUM ( ALL 9 ) ) ) / 53 END + 60 * COUNT ( DISTINCT + 53 ) - + 16 + + COUNT ( DISTINCT + 59 ) AS col2
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-6137
SELECT + COALESCE ( 33, + 14 - 41 DIV 87 )
----
33

skipif mysql # not compatible
query I rowsort label-6137
SELECT + COALESCE ( 33, + 14 - 41 / 87 )
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6138
SELECT - - 15 + CAST( NULL AS SIGNED ) * - + 81 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6138
SELECT - - 15 + CAST ( NULL AS INTEGER ) * - + 81 AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6139
SELECT - + 40 DIV + - COUNT( 66 )
----
40

skipif mysql # not compatible
query I rowsort label-6139
SELECT - + 40 / + - COUNT ( 66 )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6140
SELECT ALL - 76 + + - CAST( - + CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - 76 + + - CAST ( - + CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) AS col0
----
-77

query I rowsort
SELECT + ( + 23 ) + - 24
----
-1

query I rowsort
SELECT - 90 + 5
----
-85

query I rowsort
SELECT ALL - 16 * 90
----
-1440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6144
SELECT DISTINCT + 57 * - 51 * COALESCE ( + MAX( ALL 90 ), 45 * CAST( NULL AS SIGNED ) ) * + + 77
----
-20145510

skipif mysql # not compatible
query I rowsort label-6144
SELECT DISTINCT + 57 * - 51 * COALESCE ( + MAX ( ALL 90 ), 45 * CAST ( NULL AS INTEGER ) ) * + + 77
----
-20145510

onlyif mysql # aggregate syntax: 
query II rowsort label-6145
SELECT - SUM( 71 ) col0, 1 AS col2
----
-71
1

skipif mysql # not compatible
query II rowsort label-6145
SELECT - SUM ( 71 ) col0, 1 AS col2
----
-71
1

query I rowsort
SELECT - + 39 + + 13 AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - - MAX( - 40 ) + + - ( - 6 ) + - ( - - 36 )
----
-70

skipif mysql # not compatible
query I rowsort label-6147
SELECT - - MAX ( - 40 ) + + - ( - 6 ) + - ( - - 36 )
----
-70

query I rowsort
SELECT ALL + - 53 - - 53 AS col0
----
0

query I rowsort
SELECT ALL + 17 * - + 33
----
-561

onlyif mysql # aggregate syntax: 
query II rowsort label-6150
SELECT ALL + 44 - - COUNT( 14 ) + - + COUNT( * ) - MAX( ALL 8 ) * COUNT( * ) * + 30 AS col2, 93
----
-196
93

skipif mysql # not compatible
query II rowsort label-6150
SELECT ALL + 44 - - COUNT ( 14 ) + - + COUNT ( * ) - MAX ( ALL 8 ) * COUNT ( * ) * + 30 AS col2, 93
----
-196
93

onlyif mysql # aggregate syntax: 
query II rowsort label-6151
SELECT ALL + 11 AS col1, - ( + AVG ( ALL + 27 ) ) + - 0 / + CASE + + COUNT( * ) WHEN + 25 THEN COUNT( * ) END + + COUNT( * ) - + 56 AS col0
----
11
NULL

skipif mysql # not compatible
query II rowsort label-6151
SELECT ALL + 11 AS col1, - ( + AVG ( ALL + 27 ) ) + - 0 / + CASE + + COUNT ( * ) WHEN + 25 THEN COUNT ( * ) END + + COUNT ( * ) - + 56 AS col0
----
11
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6152
SELECT - MIN( DISTINCT 66 ) * 67 + - CAST( + - COUNT( * ) AS SIGNED ) * + COALESCE ( - 82, 62 ) - 84 AS col2
----
-4588

skipif mysql # not compatible
query I rowsort label-6152
SELECT - MIN ( DISTINCT 66 ) * 67 + - CAST ( + - COUNT ( * ) AS INTEGER ) * + COALESCE ( - 82, 62 ) - 84 AS col2
----
-4588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6153
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6154
SELECT - MIN( DISTINCT + 50 ) / + + 26 * MIN( DISTINCT - - 36 ) + - 56 + - COUNT( * ) * - COUNT( * ) * - ( - 47 ) * - 67 * + 37 - + + CAST( NULL AS SIGNED ) + + - 77 * 64 + - 70 + 87 * - 36 * 81 + + 47 + - 48 * - 16 + 28 - + CASE - 5 WHEN - 92 THEN - + 21 + + + 86 - - NULLIF ( - 57, - 22 + - - 63 * - 64 ) ELSE + 84 END * + + 44 * + ( - 4 ) * - 96
----
NULL

skipif mysql # not compatible
query I rowsort label-6154
SELECT - MIN ( DISTINCT + 50 ) / + + 26 * MIN ( DISTINCT - - 36 ) + - 56 + - COUNT ( * ) * - COUNT ( * ) * - ( - 47 ) * - 67 * + 37 - + + CAST ( NULL AS INTEGER ) + + - 77 * 64 + - 70 + 87 * - 36 * 81 + + 47 + - 48 * - 16 + 28 - + CASE - 5 WHEN - 92 THEN - + 21 + + + 86 - - NULLIF ( - 57, - 22 + - - 63 * - 64 ) ELSE + 84 END * + + 44 * + ( - 4 ) * - 96
----
NULL

query I rowsort
SELECT - 30 - - 99 AS col0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6156
SELECT ALL - CAST( - 62 AS SIGNED ) AS col0
----
62

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL - CAST ( - 62 AS INTEGER ) AS col0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-6157
SELECT ALL 1 DIV + - 69 col0
----
0

skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL 1 / + - 69 col0
----
0

query I rowsort
SELECT 18 * + 99 - 27
----
1755

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT ALL - 30 col0, MAX( ALL + 4 )
----
-30
4

skipif mysql # not compatible
query II rowsort label-6159
SELECT ALL - 30 col0, MAX ( ALL + 4 )
----
-30
4

query I rowsort
SELECT DISTINCT 36 * - ( - 9 )
----
324

onlyif mysql # DIV for integer division: 
query I rowsort label-6161
SELECT DISTINCT - 64 DIV + 78 * + 12
----
0

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT - 64 / + 78 * + 12
----
0

query I rowsort
SELECT DISTINCT + 10 + 69 * + - 75 - - - 4 AS col0
----
-5169

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT ALL 70 * COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL 70 * COUNT ( * )
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6164
SELECT ALL 82 DIV 81
----
1

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL 82 / 81
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6165
SELECT CAST( NULL AS SIGNED ) * COALESCE ( + 97, - 83 * + 15 + - 46 ) + + 82 col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6165
SELECT CAST ( NULL AS INTEGER ) * COALESCE ( + 97, - 83 * + 15 + - 46 ) + + 82 col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6166
SELECT + 29 + COUNT( * ) DIV 93 DIV - COUNT( * ) AS col0
----
29

skipif mysql # not compatible
query I rowsort label-6166
SELECT + 29 + COUNT ( * ) / 93 / - COUNT ( * ) AS col0
----
29

query II rowsort
SELECT ALL - 43 col0, 64 + + 87
----
-43
151

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6168
SELECT + COUNT( * ) * 70 + 26 - - CAST( + 31 AS SIGNED ) + 94 + 82 - + CASE - - 74 WHEN - 70 THEN - 95 WHEN - - 35 - COUNT( * ) + - CASE + + COUNT( * ) WHEN 51 * + + 85 THEN - 73 WHEN - 78 THEN 22 END / 77 THEN + 94 * - 68 ELSE NULL END, COUNT( + - 49 ) * + - NULLIF ( + 30, + COUNT( * ) ) + 39 - + COUNT( * ) col2
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6168
SELECT + COUNT ( * ) * 70 + 26 - - CAST ( + 31 AS INTEGER ) + 94 + 82 - + CASE - - 74 WHEN - 70 THEN - 95 WHEN - - 35 - COUNT ( * ) + - CASE + + COUNT ( * ) WHEN 51 * + + 85 THEN - 73 WHEN - 78 THEN 22 END / 77 THEN + 94 * - 68 ELSE NULL END, COUNT ( + - 49 ) * + - NULLIF ( + 30, + COUNT ( * ) ) + 39 - + COUNT ( * ) col2
----
NULL
8

query II rowsort
SELECT ALL 9, + ( - 96 ) AS col1
----
9
-96

query I rowsort
SELECT DISTINCT 30 + - 45
----
-15

query I rowsort
SELECT ALL ( 49 ) + 39 + - 96
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6172
SELECT DISTINCT 15 AS col0, CAST( - - 97 AS SIGNED ) AS col2
----
15
97

skipif mysql # not compatible
query II rowsort label-6172
SELECT DISTINCT 15 AS col0, CAST ( - - 97 AS INTEGER ) AS col2
----
15
97

query II rowsort
SELECT 54 AS col1, 70
----
54
70

query I rowsort
SELECT ALL + COALESCE ( + - 22, - + ( 67 ) )
----
-22

query I rowsort
SELECT + 15 * + 22
----
330

query II rowsort
SELECT 97 AS col2, - 22 AS col1
----
97
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6177
SELECT DISTINCT 93 - + 30 * - 31 AS col2, - 96 + NULLIF ( CAST( NULL AS SIGNED ), + + COUNT( * ) * ( 63 ) + + MIN( DISTINCT - 6 ) * - - 58 + + 57 - - 91 )
----
1023
NULL

skipif mysql # not compatible
query II rowsort label-6177
SELECT DISTINCT 93 - + 30 * - 31 AS col2, - 96 + NULLIF ( CAST ( NULL AS INTEGER ), + + COUNT ( * ) * ( 63 ) + + MIN ( DISTINCT - 6 ) * - - 58 + + 57 - - 91 )
----
1023
NULL

query I rowsort
SELECT DISTINCT 2 * 16 AS col2
----
32

query I rowsort
SELECT + 81 * 14
----
1134

query I rowsort
SELECT ALL - - 88 * - 4 * 59 AS col2
----
-20768

onlyif mysql # aggregate syntax: 
query I rowsort label-6181
SELECT 58 - + - ( - COUNT( * ) ) - - 43 * COUNT( DISTINCT + 12 ) + 33
----
133

skipif mysql # not compatible
query I rowsort label-6181
SELECT 58 - + - ( - COUNT ( * ) ) - - 43 * COUNT ( DISTINCT + 12 ) + 33
----
133

query I rowsort
SELECT DISTINCT 60 - + ( 28 )
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT DISTINCT + 13 - + ( - 29 ) * - 31 * - CAST( NULL AS SIGNED ) * + - 63 * + 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT + 13 - + ( - 29 ) * - 31 * - CAST ( NULL AS INTEGER ) * + - 63 * + 30
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT ALL 79 * + + 73 * - NULLIF ( + + 77, + - COUNT( * ) )
----
-444059

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL 79 * + + 73 * - NULLIF ( + + 77, + - COUNT ( * ) )
----
-444059

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ( + COUNT( * ) ) + COUNT( * ) AS col0
----
2

skipif mysql # not compatible
query I rowsort label-6185
SELECT ( + COUNT ( * ) ) + COUNT ( * ) AS col0
----
2

query I rowsort
SELECT 40 * 43 * 63
----
108360

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6187
SELECT - 27 DIV - 2 + + - SUM( + 1 ) AS col2, 96 * + 31
----
12
2976

skipif mysql # not compatible
query II rowsort label-6187
SELECT - 27 / - 2 + + - SUM ( + 1 ) AS col2, 96 * + 31
----
12
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6188
SELECT ALL - 23 + + MIN( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL - 23 + + MIN ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6189
SELECT 56 + 49 AS col2, - COUNT( * ) AS col1
----
105
-1

skipif mysql # not compatible
query II rowsort label-6189
SELECT 56 + 49 AS col2, - COUNT ( * ) AS col1
----
105
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT + 39 * + COUNT( * ) + + COUNT( * ) + + + COUNT( * ) AS col1
----
41

skipif mysql # not compatible
query I rowsort label-6190
SELECT + 39 * + COUNT ( * ) + + COUNT ( * ) + + + COUNT ( * ) AS col1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6191
SELECT ALL - SUM( + 17 ) * + 84 * - + 62 * - + 13 AS col1
----
-1150968

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL - SUM ( + 17 ) * + 84 * - + 62 * - + 13 AS col1
----
-1150968

query I rowsort
SELECT DISTINCT - 78 + - 33
----
-111

query II rowsort
SELECT ALL + 23 + - NULLIF ( + + 44, - 95 ) AS col1, 28
----
-21
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6194
SELECT ALL - 60 + - CAST( NULL AS SIGNED ) * - SUM( + + CAST( NULL AS DECIMAL ) ) AS col1, 57 * - + 47 AS col1
----
NULL
-2679

skipif mysql # not compatible
query II rowsort label-6194
SELECT ALL - 60 + - CAST ( NULL AS INTEGER ) * - SUM ( + + CAST ( NULL AS REAL ) ) AS col1, 57 * - + 47 AS col1
----
NULL
-2679

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6195
SELECT ( - CAST( + - 67 AS SIGNED ) ) + 10 AS col1, MIN( ALL + 2 ) AS col1
----
77
2

skipif mysql # not compatible
query II rowsort label-6195
SELECT ( - CAST ( + - 67 AS INTEGER ) ) + 10 AS col1, MIN ( ALL + 2 ) AS col1
----
77
2

query I rowsort
SELECT DISTINCT + 93 + - 22 AS col0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6197
SELECT - 36 * - CAST( - 44 AS SIGNED ) AS col1
----
-1584

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 36 * - CAST ( - 44 AS INTEGER ) AS col1
----
-1584

query I rowsort
SELECT ALL 80 + - 38 AS col0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT DISTINCT + 1 + COUNT( DISTINCT 52 )
----
2

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT + 1 + COUNT ( DISTINCT 52 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT ALL + 68 * + COUNT( * ) + 90 AS col1
----
158

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL + 68 * + COUNT ( * ) + 90 AS col1
----
158

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6201
SELECT ALL - + 24 DIV + - COUNT( * ) + + ( + - 46 ) col0
----
-22

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL - + 24 / + - COUNT ( * ) + + ( + - 46 ) col0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT ALL + SUM( - 31 ) - + + NULLIF ( - - 55, + 4 ) + - - 89
----
3

skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + SUM ( - 31 ) - + + NULLIF ( - - 55, + 4 ) + - - 89
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + - 95 * 53 + - + COUNT( * ) + + + 42 col2
----
-4994

skipif mysql # not compatible
query I rowsort label-6203
SELECT + - 95 * 53 + - + COUNT ( * ) + + + 42 col2
----
-4994

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT 97 * NULLIF ( + 79, - 18 + - + COUNT( * ) ) + - COUNT( * ) AS col2
----
7662

skipif mysql # not compatible
query I rowsort label-6204
SELECT 97 * NULLIF ( + 79, - 18 + - + COUNT ( * ) ) + - COUNT ( * ) AS col2
----
7662

query I rowsort
SELECT ALL 82 * COALESCE ( - + 1, - - 64 ) * - - 45 AS col1
----
-3690

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6206
SELECT ALL 91 * CAST( + CAST( NULL AS DECIMAL ) AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6206
SELECT ALL 91 * CAST ( + CAST ( NULL AS REAL ) AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6207
SELECT DISTINCT - - 20 - COUNT( 13 ) + + COUNT( * ) - 60 + COALESCE ( - 94, - 42 - - CAST( 20 AS SIGNED ) + + - 34 * - - 77 * + 5 ) - COUNT( * ) * 67
----
-201

skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT - - 20 - COUNT ( 13 ) + + COUNT ( * ) - 60 + COALESCE ( - 94, - 42 - - CAST ( 20 AS INTEGER ) + + - 34 * - - 77 * + 5 ) - COUNT ( * ) * 67
----
-201

query I rowsort
SELECT 27 + 9
----
36

query I rowsort
SELECT DISTINCT ( + 2 ) AS col1
----
2

query I rowsort
SELECT 50 * + 74 * + ( - 81 ) * 29 * + 3 AS col0
----
-26073900

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6211
SELECT 56 + - ( - ( CASE 73 WHEN 67 / 41 * - 42 THEN NULL WHEN + COALESCE ( + ( + - 16 ), 49 + + ( + 0 ) + SUM( 97 ) / + 49 * - + CAST( NULL AS DECIMAL ) + + + 65 * + 17 / - 74 + - 42 - + ( + 42 ) * - 99 ) THEN + ( + 79 ) + + 90 - COALESCE ( - 4, SUM( DISTINCT 46 ) + 74 + + - 30 * - 91 * + CAST( + 55 AS SIGNED ) ) - + 99 + - 23 / + + 54 + 56 * - COUNT( * ) / 5 END ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT 56 + - ( - ( CASE 73 WHEN 67 / 41 * - 42 THEN NULL WHEN + COALESCE ( + ( + - 16 ), 49 + + ( + 0 ) + SUM ( 97 ) / + 49 * - + CAST ( NULL AS REAL ) + + + 65 * + 17 / - 74 + - 42 - + ( + 42 ) * - 99 ) THEN + ( + 79 ) + + 90 - COALESCE ( - 4, SUM ( DISTINCT 46 ) + 74 + + - 30 * - 91 * + CAST ( + 55 AS INTEGER ) ) - + 99 + - 23 / + + 54 + 56 * - COUNT ( * ) / 5 END ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6212
SELECT - CASE + 39 WHEN + + COUNT( ( 7 ) ) - + 67 * - + CAST( - 60 AS SIGNED ) DIV 79 + - - AVG ( ALL - 31 ) THEN ( + - 41 ) * - - 43 DIV 19 + + COALESCE ( + 25, - COUNT( * ) * COALESCE ( + 51, 70, + COUNT( * ) ), - + COALESCE ( 14, - + 10 + + 12, 12 * 15 DIV + 7 ) ) ELSE - 37 END AS col2
----
37

skipif mysql # not compatible
query I rowsort label-6212
SELECT - CASE + 39 WHEN + + COUNT ( ( 7 ) ) - + 67 * - + CAST ( - 60 AS INTEGER ) / 79 + - - AVG ( ALL - 31 ) THEN ( + - 41 ) * - - 43 / 19 + + COALESCE ( + 25, - COUNT ( * ) * COALESCE ( + 51, 70, + COUNT ( * ) ), - + COALESCE ( 14, - + 10 + + 12, 12 * 15 / + 7 ) ) ELSE - 37 END AS col2
----
37

query I rowsort
SELECT ALL 8 * - - 75
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT 40 / + CASE + 34 WHEN + + 99 THEN - - 89 WHEN AVG ( + 47 ) + 97 THEN MIN( ALL + 46 ) + - 62 END
----
NULL

skipif mysql # not compatible
query I rowsort label-6214
SELECT 40 / + CASE + 34 WHEN + + 99 THEN - - 89 WHEN AVG ( + 47 ) + 97 THEN MIN ( ALL + 46 ) + - 62 END
----
NULL

query I rowsort
SELECT - 19 + - 18 + - 37 AS col1
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6216
SELECT DISTINCT COUNT( * ) DIV + - NULLIF ( - - 79, - + 3 + COALESCE ( - - 5, ( - 82 ), + 98 * + 4 + - 80 * - + 0 * + 75 ) DIV + 87 * - + 67 * + 85 )
----
0

skipif mysql # not compatible
query I rowsort label-6216
SELECT DISTINCT COUNT ( * ) / + - NULLIF ( - - 79, - + 3 + COALESCE ( - - 5, ( - 82 ), + 98 * + 4 + - 80 * - + 0 * + 75 ) / + 87 * - + 67 * + 85 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6217
SELECT ALL 1 + - 34 + NULLIF ( 65, + 67 ) * CAST( NULL AS SIGNED ) * 58 * - 0 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL 1 + - 34 + NULLIF ( 65, + 67 ) * CAST ( NULL AS INTEGER ) * 58 * - 0 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT MAX( 75 )
----
75

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT MAX ( 75 )
----
75

query I rowsort
SELECT ALL 91 * + 35 * 80 + - 12 col2
----
254788

query I rowsort
SELECT DISTINCT 7 * 86 * + 36
----
21672

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT - CASE - + COUNT( * ) WHEN - - 57 + 93 THEN NULL ELSE + 64 END * 15 * 5 AS col0
----
-4800

skipif mysql # not compatible
query I rowsort label-6221
SELECT - CASE - + COUNT ( * ) WHEN - - 57 + 93 THEN NULL ELSE + 64 END * 15 * 5 AS col0
----
-4800

onlyif mysql # aggregate syntax: 
query II rowsort label-6222
SELECT ALL + 29, - COUNT( * ) AS col1
----
29
-1

skipif mysql # not compatible
query II rowsort label-6222
SELECT ALL + 29, - COUNT ( * ) AS col1
----
29
-1

query I rowsort
SELECT - 29 * - + 11 AS col2
----
319

query I rowsort
SELECT COALESCE ( + 33, + 34 * 29 ) AS col1
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6225
SELECT ALL COUNT( * ) * - ( + COALESCE ( + COUNT( * ), + 33 ) ) + - 77 DIV - 83 * - 89
----
-1

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL COUNT ( * ) * - ( + COALESCE ( + COUNT ( * ), + 33 ) ) + - 77 / - 83 * - 89
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT + - ( + MIN( DISTINCT - 40 ) )
----
40

skipif mysql # not compatible
query I rowsort label-6226
SELECT + - ( + MIN ( DISTINCT - 40 ) )
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6227
SELECT + - 93 col1, + 2 + - 97 + + SUM( DISTINCT - - COALESCE ( + 2, CAST( NULL AS SIGNED ), - - 7 ) )
----
-93
-93

skipif mysql # not compatible
query II rowsort label-6227
SELECT + - 93 col1, + 2 + - 97 + + SUM ( DISTINCT - - COALESCE ( + 2, CAST ( NULL AS INTEGER ), - - 7 ) )
----
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT MIN( - - 44 )
----
44

skipif mysql # not compatible
query I rowsort label-6228
SELECT MIN ( - - 44 )
----
44

query I rowsort
SELECT ALL - + 22 * - + 25
----
550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT + 14 * - CAST( + 16 AS SIGNED ) * 69 + 34
----
-15422

skipif mysql # not compatible
query I rowsort label-6230
SELECT + 14 * - CAST ( + 16 AS INTEGER ) * 69 + 34
----
-15422

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - ( MAX( DISTINCT + + ( + 28 ) ) ) + + - 83
----
-111

skipif mysql # not compatible
query I rowsort label-6231
SELECT - ( MAX ( DISTINCT + + ( + 28 ) ) ) + + - 83
----
-111

query I rowsort
SELECT - 36 * - - 59
----
-2124

query II rowsort
SELECT ALL + 21 AS col2, 3 AS col2
----
21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6234
SELECT ALL + 52 DIV - - 29
----
1

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 52 / - - 29
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6235
SELECT + 99 DIV - 87 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6235
SELECT + 99 / - 87 AS col0
----
-1

query I rowsort
SELECT - 61 + - 1
----
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6237
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 21 * - 5
----
NULL
-105

skipif mysql # not compatible
query II rowsort label-6237
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 21 * - 5
----
NULL
-105

query I rowsort
SELECT - 37 * - 96
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT + COALESCE ( - - 65, + - 97 ) + - + 30 + - MAX( 83 ) AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-6239
SELECT + COALESCE ( - - 65, + - 97 ) + - + 30 + - MAX ( 83 ) AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6240
SELECT 40 AS col2, CASE - 51 WHEN + + 67 THEN - 21 * + 75 + + 4 DIV + - COUNT( * ) * + COUNT( * ) ELSE + - 97 + - 79 + + 1 * + + 11 * - - 29 - - - 93 END + - + 5
----
40
45

skipif mysql # not compatible
query II rowsort label-6240
SELECT 40 AS col2, CASE - 51 WHEN + + 67 THEN - 21 * + 75 + + 4 / + - COUNT ( * ) * + COUNT ( * ) ELSE + - 97 + - 79 + + 1 * + + 11 * - - 29 - - - 93 END + - + 5
----
40
45

query I rowsort
SELECT ALL 25 + - 7
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6242
SELECT - COUNT( * ) - + - 44 DIV + 35
----
0

skipif mysql # not compatible
query I rowsort label-6242
SELECT - COUNT ( * ) - + - 44 / + 35
----
0

query I rowsort
SELECT DISTINCT ( + 8 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT ALL - CAST( - AVG ( ALL 84 ) AS SIGNED ) * 98 - + - 67
----
8299

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL - CAST ( - AVG ( ALL 84 ) AS INTEGER ) * 98 - + - 67
----
8299

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6245
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) col1, 8 AS col1
----
NULL
8

skipif mysql # not compatible
query II rowsort label-6245
SELECT ALL ( - CAST ( NULL AS REAL ) ) col1, 8 AS col1
----
NULL
8

query II rowsort
SELECT ALL 85, - 12 AS col0
----
85
-12

query I rowsort
SELECT ALL + 23 + + + 69
----
92

query I rowsort
SELECT - 71 + + - 13 AS col0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + COUNT( + 93 ) - - 80 AS col1
----
81

skipif mysql # not compatible
query I rowsort label-6249
SELECT + COUNT ( + 93 ) - - 80 AS col1
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6250
SELECT - COALESCE ( + - 91, 92 ) + 13 + - + MIN( - 84 ) + + 11 / + CAST( NULL AS SIGNED ) * 60
----
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT - COALESCE ( + - 91, 92 ) + 13 + - + MIN ( - 84 ) + + 11 / + CAST ( NULL AS INTEGER ) * 60
----
NULL

query I rowsort
SELECT + 30 + - 97 + + 46 AS col0
----
-21

query I rowsort
SELECT + COALESCE ( - - 75, - CASE 49 WHEN + 48 THEN + - 3 + - - 62 END )
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6253
SELECT + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6253
SELECT + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6254
SELECT ALL 68 DIV - 81 * - 14 + - 36 + + COUNT( ALL - + 74 )
----
-35

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL 68 / - 81 * - 14 + - 36 + + COUNT ( ALL - + 74 )
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-6255
SELECT ALL 82 DIV 72 DIV + + ( - 94 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6255
SELECT ALL 82 / 72 / + + ( - 94 ) AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL + SUM( - 60 ) AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + SUM ( - 60 ) AS col1
----
-60

query I rowsort
SELECT - 78 * - ( + 90 ) + - 43 AS col2
----
6977

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT + + SUM( ALL + - 58 )
----
-58

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + + SUM ( ALL + - 58 )
----
-58

query I rowsort
SELECT ALL 15 * + - 73
----
-1095

onlyif mysql # DIV for integer division: 
query I rowsort label-6260
SELECT + 84 DIV + + 2
----
42

skipif mysql # not compatible
query I rowsort label-6260
SELECT + 84 / + + 2
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT + 54 DIV + 32
----
1

skipif mysql # not compatible
query I rowsort label-6261
SELECT + 54 / + 32
----
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6262
SELECT - 81 + + + ( + 47 ) - 19 DIV - + CAST( + 99 AS SIGNED ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-6262
SELECT - 81 + + + ( + 47 ) - 19 / - + CAST ( + 99 AS INTEGER ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6263
SELECT + 62 AS col2, COALESCE ( + 82, + - 19 / - MIN( + 59 ) / - 30 + 18 + + 23 + + 47 ) - - CAST( NULL AS SIGNED )
----
62
NULL

skipif mysql # not compatible
query II rowsort label-6263
SELECT + 62 AS col2, COALESCE ( + 82, + - 19 / - MIN ( + 59 ) / - 30 + 18 + + 23 + + 47 ) - - CAST ( NULL AS INTEGER )
----
62
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT SUM( + - CASE - 6 WHEN - COALESCE ( + 88, 96 * - - 57 ) THEN NULL WHEN + 22 THEN + 74 ELSE 44 + + 45 + NULLIF ( - 58, 24 ) END ) AS col2
----
-31

skipif mysql # not compatible
query I rowsort label-6264
SELECT SUM ( + - CASE - 6 WHEN - COALESCE ( + 88, 96 * - - 57 ) THEN NULL WHEN + 22 THEN + 74 ELSE 44 + + 45 + NULLIF ( - 58, 24 ) END ) AS col2
----
-31

query I rowsort
SELECT DISTINCT + + ( + 96 ) AS col0
----
96

query I rowsort
SELECT + NULLIF ( 6, 81 )
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6267
SELECT CAST( + 14 AS SIGNED ) AS col0, 1 + - 77
----
14
-76

skipif mysql # not compatible
query II rowsort label-6267
SELECT CAST ( + 14 AS INTEGER ) AS col0, 1 + - 77
----
14
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6268
SELECT ALL + 67 AS col1, + 84 + - MAX( DISTINCT 30 ) + - MAX( - 19 ) + + + 62 DIV + + 25
----
67
75

skipif mysql # not compatible
query II rowsort label-6268
SELECT ALL + 67 AS col1, + 84 + - MAX ( DISTINCT 30 ) + - MAX ( - 19 ) + + + 62 / + + 25
----
67
75

query II rowsort
SELECT - + 90, + 10 col0
----
-90
10

query I rowsort
SELECT + 27 - - 31 + + 59
----
117

query I rowsort
SELECT ALL + + ( - - 5 ) * 95
----
475

onlyif mysql # DIV for integer division: 
query I rowsort label-6272
SELECT DISTINCT 90 * - 58 + - 8 DIV - + 52 AS col1
----
-5220

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT 90 * - 58 + - 8 / - + 52 AS col1
----
-5220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6273
SELECT ALL - 91 + + MAX( - 68 ) * + COUNT( * ) / - CAST( NULL AS SIGNED ) + - 80 + + 66 * - + 57
----
NULL

skipif mysql # not compatible
query I rowsort label-6273
SELECT ALL - 91 + + MAX ( - 68 ) * + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + - 80 + + 66 * - + 57
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT ALL + 36 + COUNT( * ) * - - 90 + + NULLIF ( CASE - - 83 WHEN ( - + 50 ) * + + COUNT( * ) * + + 7 THEN - 69 ELSE NULL END, + ( - - 66 ) + 21 / + COUNT( * ) * - 21 * - 32 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6274
SELECT ALL + 36 + COUNT ( * ) * - - 90 + + NULLIF ( CASE - - 83 WHEN ( - + 50 ) * + + COUNT ( * ) * + + 7 THEN - 69 ELSE NULL END, + ( - - 66 ) + 21 / + COUNT ( * ) * - 21 * - 32 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6275
SELECT 59 - - + 29 + 94 * ( + CAST( - - 35 AS SIGNED ) ) * + 22 * + 59 + + + 88 + + - COUNT( * ) + COUNT( * ) AS col2
----
4270596

skipif mysql # not compatible
query I rowsort label-6275
SELECT 59 - - + 29 + 94 * ( + CAST ( - - 35 AS INTEGER ) ) * + 22 * + 59 + + + 88 + + - COUNT ( * ) + COUNT ( * ) AS col2
----
4270596

query I rowsort
SELECT 65 * - 14 AS col2
----
-910

query I rowsort
SELECT ALL + 37 + + + 13 AS col2
----
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6278
SELECT 46 DIV + - COUNT( * ) col0, + ( - 89 ) AS col2
----
-46
-89

skipif mysql # not compatible
query II rowsort label-6278
SELECT 46 / + - COUNT ( * ) col0, + ( - 89 ) AS col2
----
-46
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6279
SELECT DISTINCT + 19 DIV - + ( - + 64 ) * + 91
----
0

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT + 19 / - + ( - + 64 ) * + 91
----
0

query I rowsort
SELECT 55 * 31 * - 22 AS col0
----
-37510

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT 91 + + 12 * + - COUNT( * ) * + 24
----
-197

skipif mysql # not compatible
query I rowsort label-6281
SELECT 91 + + 12 * + - COUNT ( * ) * + 24
----
-197

query I rowsort
SELECT ALL + 1 * - - 74 AS col2
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT ( - ( - 63 ) ) + - + ( 42 ) DIV COUNT( * ) + + 64 + + + 97
----
182

skipif mysql # not compatible
query I rowsort label-6283
SELECT ( - ( - 63 ) ) + - + ( 42 ) / COUNT ( * ) + + 64 + + + 97
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6284
SELECT MIN( ALL 13 ) * - 19
----
-247

skipif mysql # not compatible
query I rowsort label-6284
SELECT MIN ( ALL 13 ) * - 19
----
-247

query I rowsort
SELECT ALL 12 * 75 AS col0
----
900

query I rowsort
SELECT 81 * - 64
----
-5184

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT COUNT( * ) * 43 AS col0
----
43

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT COUNT ( * ) * 43 AS col0
----
43

query I rowsort
SELECT ALL - + 8 AS col0
----
-8

query I rowsort
SELECT + 91 * - 82 AS col0
----
-7462

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT 71 * MAX( + + 90 ) + - + COUNT( * ) AS col1
----
6389

skipif mysql # not compatible
query I rowsort label-6290
SELECT 71 * MAX ( + + 90 ) + - + COUNT ( * ) AS col1
----
6389

onlyif mysql # aggregate syntax: 
query I rowsort label-6291
SELECT ALL + COUNT( * ) * + - 82 col1
----
-82

skipif mysql # not compatible
query I rowsort label-6291
SELECT ALL + COUNT ( * ) * + - 82 col1
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6292
SELECT 2 - 47, CAST( NULL AS SIGNED ) col0
----
-45
NULL

skipif mysql # not compatible
query II rowsort label-6292
SELECT 2 - 47, CAST ( NULL AS INTEGER ) col0
----
-45
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6293
SELECT ALL CAST( - 51 AS SIGNED ) * - 99
----
5049

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL CAST ( - 51 AS INTEGER ) * - 99
----
5049

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6294
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 34 * + - CAST( + 57 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 34 * + - CAST ( + 57 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - - 71 AS col2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT ALL COUNT( DISTINCT - 67 ) * + 78
----
78

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL COUNT ( DISTINCT - 67 ) * + 78
----
78

query I rowsort
SELECT 94 + - 53 * + - 52 * - - 84 AS col0
----
231598

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT ALL COUNT( * ) * + - 12
----
-12

skipif mysql # not compatible
query I rowsort label-6298
SELECT ALL COUNT ( * ) * + - 12
----
-12

onlyif mysql # DIV for integer division: 
query II rowsort label-6299
SELECT + 54 DIV - + 70 AS col2, - 83 AS col2
----
0
-83

skipif mysql # not compatible
query II rowsort label-6299
SELECT + 54 / - + 70 AS col2, - 83 AS col2
----
0
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT 5 * + + COUNT( * ) * + + 60 / + + AVG ( - 78 ) * + + CASE - ( 66 ) WHEN + 15 THEN - 27 * - + 32 END + - 31 + - + 78 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6300
SELECT 5 * + + COUNT ( * ) * + + 60 / + + AVG ( - 78 ) * + + CASE - ( 66 ) WHEN + 15 THEN - 27 * - + 32 END + - 31 + - + 78 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6301
SELECT ALL + 94 * + + CASE + SUM( DISTINCT - 24 ) WHEN + 88 * - - 32 THEN + + 45 DIV + 13 + - 83 + 64 + - ( - 71 ) + 69 + ( - CAST( NULL AS SIGNED ) ) ELSE + 64 END + - 63 * + 90 AS col2
----
346

skipif mysql # not compatible
query I rowsort label-6301
SELECT ALL + 94 * + + CASE + SUM ( DISTINCT - 24 ) WHEN + 88 * - - 32 THEN + + 45 / + 13 + - 83 + 64 + - ( - 71 ) + 69 + ( - CAST ( NULL AS INTEGER ) ) ELSE + 64 END + - 63 * + 90 AS col2
----
346

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT + COALESCE ( COUNT( * ), 64 ) * - + 29
----
-29

skipif mysql # not compatible
query I rowsort label-6302
SELECT + COALESCE ( COUNT ( * ), 64 ) * - + 29
----
-29

query I rowsort
SELECT + 81 - 31 AS col2
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT 55 + + MAX( 34 ) AS col0
----
89

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT 55 + + MAX ( 34 ) AS col0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + + COUNT( * ) * - 43 - + + 47
----
-90

skipif mysql # not compatible
query I rowsort label-6305
SELECT + + COUNT ( * ) * - 43 - + + 47
----
-90

query I rowsort
SELECT ALL + 44 + 61 * + 65 + + + 32 - + 36
----
4005

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6307
SELECT ALL - 4 + + - 21 + CAST( + 28 AS SIGNED )
----
3

skipif mysql # not compatible
query I rowsort label-6307
SELECT ALL - 4 + + - 21 + CAST ( + 28 AS INTEGER )
----
3

query I rowsort
SELECT DISTINCT ( 39 ) + - 58 AS col2
----
-19

query I rowsort
SELECT DISTINCT 14 + + 67
----
81

query I rowsort
SELECT ALL + 32 * + NULLIF ( + - 48, - 76 + + 25 )
----
-1536

query I rowsort
SELECT DISTINCT - 77 + - 74
----
-151

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT + COUNT( * ) + - 66
----
-65

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT + COUNT ( * ) + - 66
----
-65

query I rowsort
SELECT 46 + 72 * 0 * 62 + + 11 AS col1
----
57

query I rowsort
SELECT ALL + 32 * - 37
----
-1184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6315
SELECT CAST( 15 AS SIGNED ) + + 21 + - 81 DIV - 61 col1
----
37

skipif mysql # not compatible
query I rowsort label-6315
SELECT CAST ( 15 AS INTEGER ) + + 21 + - 81 / - 61 col1
----
37

query I rowsort
SELECT 91 * + 7 AS col2
----
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6317
SELECT - COUNT( * ) AS col2, - COUNT( * ) * 43 * - + 73 / - 36 + + + CAST( NULL AS SIGNED ) AS col2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-6317
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) * 43 * - + 73 / - 36 + + + CAST ( NULL AS INTEGER ) AS col2
----
-1
NULL

query I rowsort
SELECT ALL - 60 - + 11
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6319
SELECT 74 * + ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6319
SELECT 74 * + ( CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL 6 * + 84 AS col2
----
504

query I rowsort
SELECT 81 + - 47 + + + 50 AS col0
----
84

query II rowsort
SELECT 10, 82 - 32 AS col0
----
10
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL MIN( ALL - + 79 )
----
-79

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL MIN ( ALL - + 79 )
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT 90 + 81 + 59 * 43 / + NULLIF ( + 34, + 74 ) - + CASE - 38 WHEN + 83 + COALESCE ( + 74, + 47 ) THEN 87 WHEN - SUM( - 43 ) * - + 66 THEN NULL ELSE NULL END + - AVG ( + 16 ) * - - 30 * - COUNT( * ) * 95 * - COUNT( * ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6324
SELECT 90 + 81 + 59 * 43 / + NULLIF ( + 34, + 74 ) - + CASE - 38 WHEN + 83 + COALESCE ( + 74, + 47 ) THEN 87 WHEN - SUM ( - 43 ) * - + 66 THEN NULL ELSE NULL END + - AVG ( + 16 ) * - - 30 * - COUNT ( * ) * 95 * - COUNT ( * ) col2
----
NULL

query I rowsort
SELECT ALL + 61 - + + 94 + - - ( - - 41 )
----
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6326
SELECT ALL - MAX( ALL + 22 ) DIV - - 37 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6326
SELECT ALL - MAX ( ALL + 22 ) / - - 37 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT 0 + - MIN( ALL 39 ) + + 46 * 12
----
513

skipif mysql # not compatible
query I rowsort label-6327
SELECT 0 + - MIN ( ALL 39 ) + + 46 * 12
----
513

onlyif mysql # DIV for integer division: 
query II rowsort label-6328
SELECT ALL 6, - 66 DIV + - 66 AS col1
----
6
1

skipif mysql # not compatible
query II rowsort label-6328
SELECT ALL 6, - 66 / + - 66 AS col1
----
6
1

query I rowsort
SELECT ALL - ( + 93 ) - - + 45 + - 94
----
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT 80 + + MIN( DISTINCT - 86 ) * ( + 39 )
----
-3274

skipif mysql # not compatible
query I rowsort label-6330
SELECT 80 + + MIN ( DISTINCT - 86 ) * ( + 39 )
----
-3274

query I rowsort
SELECT + 22 - + + 41
----
-19

query I rowsort
SELECT DISTINCT - 89 col1
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT CAST( NULL AS SIGNED ) + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6333
SELECT CAST ( NULL AS INTEGER ) + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6334
SELECT 69 DIV 2 DIV - + 5 * + - COUNT( * ) + - + 25 AS col2
----
-19

skipif mysql # not compatible
query I rowsort label-6334
SELECT 69 / 2 / - + 5 * + - COUNT ( * ) + - + 25 AS col2
----
-19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6335
SELECT ALL + 7 * - 24 + - + COUNT( * ) / + CASE + CAST( - 75 AS SIGNED ) WHEN + 92 * - 30 THEN - + CAST( + MIN( ALL + - CASE - 11 WHEN + 80 THEN NULL ELSE - 34 END ) AS SIGNED ) WHEN 14 THEN NULL ELSE NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL + 7 * - 24 + - + COUNT ( * ) / + CASE + CAST ( - 75 AS INTEGER ) WHEN + 92 * - 30 THEN - + CAST ( + MIN ( ALL + - CASE - 11 WHEN + 80 THEN NULL ELSE - 34 END ) AS INTEGER ) WHEN 14 THEN NULL ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6336
SELECT ALL + + CAST( NULL AS SIGNED ) * - 2 / - 79
----
NULL

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + + CAST ( NULL AS INTEGER ) * - 2 / - 79
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT 20 * COUNT( ALL - 98 ) * + - COUNT( * ) + 71
----
51

skipif mysql # not compatible
query I rowsort label-6337
SELECT 20 * COUNT ( ALL - 98 ) * + - COUNT ( * ) + 71
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6338
SELECT ALL + - 31 * + 2 + + - 60 AS col1, COUNT( * )
----
-122
1

skipif mysql # not compatible
query II rowsort label-6338
SELECT ALL + - 31 * + 2 + + - 60 AS col1, COUNT ( * )
----
-122
1

query I rowsort
SELECT DISTINCT + - 60 * + ( + + 27 ) + + 46
----
-1574

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT ALL - MAX( DISTINCT 59 ) * + COUNT( * ) * - COUNT( * ) + + + 30
----
89

skipif mysql # not compatible
query I rowsort label-6340
SELECT ALL - MAX ( DISTINCT 59 ) * + COUNT ( * ) * - COUNT ( * ) + + + 30
----
89

query I rowsort
SELECT - + 84 * - + 85
----
7140

query I rowsort
SELECT + 79 + 77 * + - 37 + - + 74
----
-2844

query I rowsort
SELECT ALL - 92 * 55 + + + 30 AS col2
----
-5030

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6344
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + SUM( 46 ) + + + CAST( + 68 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + SUM ( 46 ) + + + CAST ( + 68 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6345
SELECT ALL 49 + MAX( + + 32 ) * + - 12 DIV COUNT( * ) AS col0
----
-335

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL 49 + MAX ( + + 32 ) * + - 12 / COUNT ( * ) AS col0
----
-335

query I rowsort
SELECT DISTINCT 8 * + 15
----
120

query II rowsort
SELECT + 37 * + 53 AS col1, 70 col2
----
1961
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT - 89 DIV 64 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6348
SELECT - 89 / 64 AS col0
----
-1

query I rowsort
SELECT + 1 * + 95
----
95

query I rowsort
SELECT DISTINCT 65 * 65 AS col2
----
4225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6351
SELECT + CAST( 66 AS SIGNED ) * + 72 AS col2
----
4752

skipif mysql # not compatible
query I rowsort label-6351
SELECT + CAST ( 66 AS INTEGER ) * + 72 AS col2
----
4752

onlyif mysql # aggregate syntax: 
query I rowsort label-6352
SELECT ALL MIN( ALL + 28 )
----
28

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL MIN ( ALL + 28 )
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT + CASE - 27 WHEN - 11 + + COUNT( * ) - + 64 * - ( + 90 ) THEN - CAST( - 2 AS SIGNED ) * 41 WHEN 8 + 42 THEN NULL ELSE NULL END - + CAST( NULL AS SIGNED ) / ( - - COUNT( * ) ) - CAST( - 85 AS SIGNED ) + - COALESCE ( + + 95, - 33 ) * 41
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT + CASE - 27 WHEN - 11 + + COUNT ( * ) - + 64 * - ( + 90 ) THEN - CAST ( - 2 AS INTEGER ) * 41 WHEN 8 + 42 THEN NULL ELSE NULL END - + CAST ( NULL AS INTEGER ) / ( - - COUNT ( * ) ) - CAST ( - 85 AS INTEGER ) + - COALESCE ( + + 95, - 33 ) * 41
----
NULL

query I rowsort
SELECT DISTINCT + 83 * 39 col1
----
3237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6355
SELECT - 47 * 74 DIV - COUNT( 10 ) AS col2
----
3478

skipif mysql # not compatible
query I rowsort label-6355
SELECT - 47 * 74 / - COUNT ( 10 ) AS col2
----
3478

query I rowsort
SELECT - 64 + 64 AS col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6357
SELECT - 41 + + - 91 AS col0, + SUM( ALL 50 )
----
-132
50

skipif mysql # not compatible
query II rowsort label-6357
SELECT - 41 + + - 91 AS col0, + SUM ( ALL 50 )
----
-132
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6358
SELECT ALL SUM( + 26 ), ( + CAST( NULL AS SIGNED ) ) AS col1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL SUM ( + 26 ), ( + CAST ( NULL AS INTEGER ) ) AS col1
----
26
NULL

query I rowsort
SELECT + ( - 34 ) * 12 AS col1
----
-408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6360
SELECT - 34 + + COUNT( * ) + - ( + 44 ) * - CAST( NULL AS SIGNED ) + + 97 * + - CAST( NULL AS SIGNED ) * - - CAST( NULL AS SIGNED ) - + - 73 AS col2, 7 AS col2
----
NULL
7

skipif mysql # not compatible
query II rowsort label-6360
SELECT - 34 + + COUNT ( * ) + - ( + 44 ) * - CAST ( NULL AS INTEGER ) + + 97 * + - CAST ( NULL AS INTEGER ) * - - CAST ( NULL AS INTEGER ) - + - 73 AS col2, 7 AS col2
----
NULL
7

onlyif mysql # aggregate syntax: 
query II rowsort label-6361
SELECT - - COUNT( - 37 ) AS col2, 97 - + 96 AS col0
----
1
1

skipif mysql # not compatible
query II rowsort label-6361
SELECT - - COUNT ( - 37 ) AS col2, 97 - + 96 AS col0
----
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - 29 + - 11 * - + MIN( + 57 ) * 48 * - 33 AS col0
----
-993197

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - 29 + - 11 * - + MIN ( + 57 ) * 48 * - 33 AS col0
----
-993197

query I rowsort
SELECT - - 24 * + + 33 + - ( + + 17 )
----
775

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT - - NULLIF ( + 91, + COUNT( * ) ) + + - COUNT( * )
----
90

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT - - NULLIF ( + 91, + COUNT ( * ) ) + + - COUNT ( * )
----
90

query I rowsort
SELECT ALL + 38 + 36 * + + 53 AS col2
----
1946

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT ALL - + 54 DIV + ( - 48 ) + - 8
----
-7

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL - + 54 / + ( - 48 ) + - 8
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6367
SELECT ALL - 16 DIV - + COALESCE ( - - 28, 44, - + ( - COUNT( * ) ) ) + 79
----
79

skipif mysql # not compatible
query I rowsort label-6367
SELECT ALL - 16 / - + COALESCE ( - - 28, 44, - + ( - COUNT ( * ) ) ) + 79
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6368
SELECT - 63 DIV - 76 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6368
SELECT - 63 / - 76 AS col0
----
0

query I rowsort
SELECT - + 97 * + 52 AS col0
----
-5044

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT DISTINCT + SUM( DISTINCT 50 ) * - + COUNT( * ) AS col2
----
-50

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT + SUM ( DISTINCT 50 ) * - + COUNT ( * ) AS col2
----
-50

query I rowsort
SELECT ALL - - 83 * + - 46
----
-3818

query I rowsort
SELECT ALL + - 4 * + 4 + + NULLIF ( 81, + 92 ) col2
----
65

query I rowsort
SELECT DISTINCT - 83 * 53 * 55
----
-241945

query I rowsort
SELECT - 43 + 63 * + + 61 * 32 AS col1
----
122933

query II rowsort
SELECT ALL - 32 * - ( + 49 ) AS col0, 3 + - 44
----
1568
-41

query I rowsort
SELECT ALL + ( 28 ) AS col0
----
28

query I rowsort
SELECT - 3 * ( 69 ) + + 22
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-6378
SELECT 42 * ( - + 8 ) - 53 + - 14 AS col0, 72 * + COUNT( * ) + - 31 AS col1
----
-403
41

skipif mysql # not compatible
query II rowsort label-6378
SELECT 42 * ( - + 8 ) - 53 + - 14 AS col0, 72 * + COUNT ( * ) + - 31 AS col1
----
-403
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT - 25 * - MAX( ALL + - 77 ) AS col1
----
-1925

skipif mysql # not compatible
query I rowsort label-6379
SELECT - 25 * - MAX ( ALL + - 77 ) AS col1
----
-1925

query I rowsort
SELECT DISTINCT + ( - 35 ) col1
----
-35

query I rowsort
SELECT ALL 89 * + 12 col2
----
1068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT ALL CAST( - 1 AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-6382
SELECT ALL CAST ( - 1 AS INTEGER ) AS col2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6383
SELECT DISTINCT - 88 DIV - COALESCE ( - - 76, + - 8 + 66 + + 26 * 15 + - + 28 * + 20 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT - 88 / - COALESCE ( - - 76, + - 8 + 66 + + 26 * 15 + - + 28 * + 20 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6384
SELECT DISTINCT SUM( DISTINCT 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6384
SELECT DISTINCT SUM ( DISTINCT 55 ) AS col0
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6385
SELECT ALL 53 * - CASE + 7 WHEN + 5 THEN NULL WHEN - 76 THEN - 82 * 29 + - COUNT( * ) DIV - 85 ELSE + 13 * - 33 END * - ( - COUNT( * ) ) * + 8 AS col2
----
181896

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL 53 * - CASE + 7 WHEN + 5 THEN NULL WHEN - 76 THEN - 82 * 29 + - COUNT ( * ) / - 85 ELSE + 13 * - 33 END * - ( - COUNT ( * ) ) * + 8 AS col2
----
181896

query I rowsort
SELECT - 35 + 10
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT + 0 + COUNT( * )
----
1

skipif mysql # not compatible
query I rowsort label-6387
SELECT + 0 + COUNT ( * )
----
1

query I rowsort
SELECT + ( 69 ) + 45
----
114

query I rowsort
SELECT + 17 * + 97
----
1649

query I rowsort
SELECT ALL - 33 + + ( - 37 )
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + - 27 + - - NULLIF ( - + 29, 75 + NULLIF ( + COUNT( * ), - + CASE + MAX( - 85 ) WHEN - - 73 + - - 95 THEN 40 ELSE NULL END ) * - + 98 - 77 + + 12 * 31 ) + 24 - - 75 AS col1
----
43

skipif mysql # not compatible
query I rowsort label-6391
SELECT + - 27 + - - NULLIF ( - + 29, 75 + NULLIF ( + COUNT ( * ), - + CASE + MAX ( - 85 ) WHEN - - 73 + - - 95 THEN 40 ELSE NULL END ) * - + 98 - 77 + + 12 * 31 ) + 24 - - 75 AS col1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-6392
SELECT ALL 47 AS col0, NULLIF ( - 93, + 62 * - ( ( 53 ) ) ) + - 12 + - + COUNT( * ) + - + ( - 38 ) + - + MAX( DISTINCT + - 28 ) + - CASE WHEN NULL IS NULL THEN NULL ELSE CASE - + 61 WHEN - 1 THEN + + 43 + + NULLIF ( + NULLIF ( 34, + + COUNT( * ) ), 6 ) / + 23 ELSE NULL END END * - + 2
----
47
NULL

skipif mysql # not compatible
query II rowsort label-6392
SELECT ALL 47 AS col0, NULLIF ( - 93, + 62 * - ( ( 53 ) ) ) + - 12 + - + COUNT ( * ) + - + ( - 38 ) + - + MAX ( DISTINCT + - 28 ) + - CASE WHEN NULL IS NULL THEN NULL ELSE CASE - + 61 WHEN - 1 THEN + + 43 + + NULLIF ( + NULLIF ( 34, + + COUNT ( * ) ), 6 ) / + 23 ELSE NULL END END * - + 2
----
47
NULL

query I rowsort
SELECT ALL + 58 + ( + 84 ) * + - 31
----
-2546

query I rowsort
SELECT ALL ( + ( + 86 ) ) AS col1
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT DISTINCT 63 + CAST( 14 AS SIGNED )
----
77

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT 63 + CAST ( 14 AS INTEGER )
----
77

query II rowsort
SELECT 94 AS col0, 74 * + - 84
----
94
-6216

query I rowsort
SELECT - 21 - - 58 * ( + 41 ) AS col0
----
2357

query I rowsort
SELECT + 34 + 5 AS col0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6399
SELECT ALL + 6 + + CAST( 81 AS SIGNED ) + 6 * 47 * - 25 + + 58 * + COALESCE ( + 33, + 74 )
----
-5049

skipif mysql # not compatible
query I rowsort label-6399
SELECT ALL + 6 + + CAST ( 81 AS INTEGER ) + 6 * 47 * - 25 + + 58 * + COALESCE ( + 33, + 74 )
----
-5049

onlyif mysql # aggregate syntax: 
query II rowsort label-6400
SELECT - - 26 AS col2, 78 * - ( + COUNT( + 54 ) ) AS col1
----
26
-78

skipif mysql # not compatible
query II rowsort label-6400
SELECT - - 26 AS col2, 78 * - ( + COUNT ( + 54 ) ) AS col1
----
26
-78

query I rowsort
SELECT DISTINCT - 73 * - 8 AS col1
----
584

query I rowsort
SELECT ( + - 38 ) AS col2
----
-38

query I rowsort
SELECT ALL - + 68 + - 93 * - 54 * 68 AS col0
----
341428

query I rowsort
SELECT + 0 + 66 + + 30
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6405
SELECT ALL - COUNT( * ) * + COUNT( * ) * NULLIF ( + + 83, 97 + + + MAX( 12 ) ) / CASE 55 WHEN 78 * + + 12 THEN 64 END + + 99 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * NULLIF ( + + 83, 97 + + + MAX ( 12 ) ) / CASE 55 WHEN 78 * + + 12 THEN 64 END + + 99 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT COUNT( * ) + - + 76 AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6406
SELECT COUNT ( * ) + - + 76 AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6407
SELECT + - 4 * CAST( - NULLIF ( COUNT( * ), - 15 / 26 ) AS SIGNED ) + - 69 * + + 38, 7 AS col1
----
-2618
7

skipif mysql # not compatible
query II rowsort label-6407
SELECT + - 4 * CAST ( - NULLIF ( COUNT ( * ), - 15 / 26 ) AS INTEGER ) + - 69 * + + 38, 7 AS col1
----
-2618
7

query I rowsort
SELECT 49 * - ( 99 ) AS col0
----
-4851

onlyif mysql # aggregate syntax: 
query I rowsort label-6409
SELECT 56 + - 6 + - 10 + + SUM( ALL - 15 ) + - 1 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-6409
SELECT 56 + - 6 + - 10 + + SUM ( ALL - 15 ) + - 1 AS col0
----
24

query I rowsort
SELECT 94 + - 64 AS col0
----
30

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6411
SELECT ALL + 73 DIV - + CAST( - 77 AS SIGNED ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6411
SELECT ALL + 73 / - + CAST ( - 77 AS INTEGER ) AS col1
----
0

query II rowsort
SELECT 65 * 4 AS col2, 75 + 66 * + - 96 col1
----
260
-6261

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT 4 + + 93 + + 43 * + 0 DIV - 77
----
97

skipif mysql # not compatible
query I rowsort label-6413
SELECT 4 + + 93 + + 43 * + 0 / - 77
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT 75 * COUNT( ALL 97 )
----
75

skipif mysql # not compatible
query I rowsort label-6414
SELECT 75 * COUNT ( ALL 97 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT ALL - 1 * + ( + MIN( + 45 ) ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6415
SELECT ALL - 1 * + ( + MIN ( + 45 ) ) AS col1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL + COUNT( * ) * - 64 AS col2
----
-64

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL + COUNT ( * ) * - 64 AS col2
----
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-6417
SELECT ALL + 74 * + 90 * COALESCE ( COUNT( * ), 73 ) * ( + 61 ), + 95 AS col2
----
406260
95

skipif mysql # not compatible
query II rowsort label-6417
SELECT ALL + 74 * + 90 * COALESCE ( COUNT ( * ), 73 ) * ( + 61 ), + 95 AS col2
----
406260
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT + 23 * - + CAST( NULL AS SIGNED ) + - + 51
----
NULL

skipif mysql # not compatible
query I rowsort label-6418
SELECT + 23 * - + CAST ( NULL AS INTEGER ) + - + 51
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6419
SELECT 26, CAST( + 51 AS SIGNED ) col2
----
26
51

skipif mysql # not compatible
query II rowsort label-6419
SELECT 26, CAST ( + 51 AS INTEGER ) col2
----
26
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT ALL - SUM( ALL + - ( 21 ) )
----
21

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - SUM ( ALL + - ( 21 ) )
----
21

query I rowsort
SELECT ALL - 2 * + 0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT 40 AS col2, + ( + COUNT( * ) ) AS col1
----
40
1

skipif mysql # not compatible
query II rowsort label-6422
SELECT 40 AS col2, + ( + COUNT ( * ) ) AS col1
----
40
1

query I rowsort
SELECT DISTINCT - 84 * 35 AS col2
----
-2940

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT 84 - COUNT( * )
----
83

skipif mysql # not compatible
query I rowsort label-6424
SELECT 84 - COUNT ( * )
----
83

query I rowsort
SELECT 90 * 81
----
7290

query I rowsort
SELECT 2 * + 30 + - 75 + + 57
----
42

query III rowsort
SELECT ALL 0 AS col1, - 15 AS col2, + + 1 + 84
----
0
-15
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6428
SELECT DISTINCT + CASE - 79 WHEN - AVG ( + 41 ) * 78 * - 94 THEN NULL WHEN ( + - CASE + 61 WHEN - 2 * CAST( NULL AS DECIMAL ) * - COALESCE ( - - 62, + - COALESCE ( - 44, 90 * MAX( ALL 38 ) - + 57 + + COUNT( * ) + 73 - + COUNT( * ) ) * + NULLIF ( 44, - COUNT( * ) * - - 63 + + + 89 + - + COUNT( + - ( + - 83 ) ) * + 70 ) * + COUNT( * ) ) + + - 94 THEN - 26 WHEN + - 5 THEN NULL END ) * - COUNT( * ) THEN - 18 WHEN 75 THEN NULL END + + 42
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT DISTINCT + CASE - 79 WHEN - AVG ( + 41 ) * 78 * - 94 THEN NULL WHEN ( + - CASE + 61 WHEN - 2 * CAST ( NULL AS REAL ) * - COALESCE ( - - 62, + - COALESCE ( - 44, 90 * MAX ( ALL 38 ) - + 57 + + COUNT ( * ) + 73 - + COUNT ( * ) ) * + NULLIF ( 44, - COUNT ( * ) * - - 63 + + + 89 + - + COUNT ( + - ( + - 83 ) ) * + 70 ) * + COUNT ( * ) ) + + - 94 THEN - 26 WHEN + - 5 THEN NULL END ) * - COUNT ( * ) THEN - 18 WHEN 75 THEN NULL END + + 42
----
NULL

query I rowsort
SELECT DISTINCT + 66 + + CASE + 60 WHEN + 22 * + 17 THEN + + 46 END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - 29 + + - 40 AS col1
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6431
SELECT DISTINCT 8 + - ( 70 ) * + + 83 * + - ( - 29 ) / + SUM( - 51 ) * 17 / COUNT( * ) * + 37 + SUM( ALL - 46 ) * COUNT( * ) * + - 80 * + + CASE + - 63 WHEN - COALESCE ( 86, + 91 ) + - 5 * - COALESCE ( - + COUNT( * ), + + 15 ) THEN + 74 + + CAST( - - 3 AS SIGNED ) WHEN 0 THEN NULL END * 66 + + - 40 + + - 48 / + - ( - 20 ) + - 29 * 93
----
NULL

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT 8 + - ( 70 ) * + + 83 * + - ( - 29 ) / + SUM ( - 51 ) * 17 / COUNT ( * ) * + 37 + SUM ( ALL - 46 ) * COUNT ( * ) * + - 80 * + + CASE + - 63 WHEN - COALESCE ( 86, + 91 ) + - 5 * - COALESCE ( - + COUNT ( * ), + + 15 ) THEN + 74 + + CAST ( - - 3 AS INTEGER ) WHEN 0 THEN NULL END * 66 + + - 40 + + - 48 / + - ( - 20 ) + - 29 * 93
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6432
SELECT - ( SUM( - 2 ) ) DIV 6 + - + 1 + 0 AS col2, - 71 AS col0
----
-1
-71

skipif mysql # not compatible
query II rowsort label-6432
SELECT - ( SUM ( - 2 ) ) / 6 + - + 1 + 0 AS col2, - 71 AS col0
----
-1
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL + 1 + + - 15 + - - 94 * - - COUNT( - - 85 ) AS col1
----
80

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL + 1 + + - 15 + - - 94 * - - COUNT ( - - 85 ) AS col1
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6434
SELECT DISTINCT + ( 92 ) * - + CAST( NULL AS SIGNED ) * COUNT( * ) - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + ( 92 ) * - + CAST ( NULL AS INTEGER ) * COUNT ( * ) - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL - COUNT( * ) + + - 79
----
-80

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COUNT ( * ) + + - 79
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT - ( + COUNT( ALL - + 28 ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6436
SELECT - ( + COUNT ( ALL - + 28 ) ) AS col1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6437
SELECT 40 * + + 73 / CASE + + 91 WHEN + 27 / + - COUNT( * ) + - 58 + COALESCE ( + 61, + - CAST( - 88 AS DECIMAL ) * + 24 + + COUNT( * ) ) + + 70 THEN 35 + CASE + 36 WHEN - + 18 * ( + COUNT( * ) ) + + + 74 THEN - - ( + 38 ) / - 44 WHEN - 46 + + 77 THEN NULL END * ( + + 29 ) - - NULLIF ( - ( + 59 ), + 62 * COUNT( ALL 90 ) / + CAST( NULL AS SIGNED ) ) + + COALESCE ( + + 0, + - 79 ) + 71 / 5 + + 21 * - 95 - - 72 WHEN - + 55 + + COUNT( * ) THEN + + 63 END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT 40 * + + 73 / CASE + + 91 WHEN + 27 / + - COUNT ( * ) + - 58 + COALESCE ( + 61, + - CAST ( - 88 AS REAL ) * + 24 + + COUNT ( * ) ) + + 70 THEN 35 + CASE + 36 WHEN - + 18 * ( + COUNT ( * ) ) + + + 74 THEN - - ( + 38 ) / - 44 WHEN - 46 + + 77 THEN NULL END * ( + + 29 ) - - NULLIF ( - ( + 59 ), + 62 * COUNT ( ALL 90 ) / + CAST ( NULL AS INTEGER ) ) + + COALESCE ( + + 0, + - 79 ) + 71 / 5 + + 21 * - 95 - - 72 WHEN - + 55 + + COUNT ( * ) THEN + + 63 END col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6438
SELECT ALL 15 DIV - + 86
----
0

skipif mysql # not compatible
query I rowsort label-6438
SELECT ALL 15 / - + 86
----
0

query II rowsort
SELECT - + 17 AS col1, 72 * 3 AS col0
----
-17
216

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT - SUM( DISTINCT - + 39 ) AS col0
----
39

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT - SUM ( DISTINCT - + 39 ) AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-6441
SELECT ALL + 7 AS col2, + COUNT( * )
----
7
1

skipif mysql # not compatible
query II rowsort label-6441
SELECT ALL + 7 AS col2, + COUNT ( * )
----
7
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT - + 28 DIV - 34 + + 42 AS col1
----
42

skipif mysql # not compatible
query I rowsort label-6442
SELECT - + 28 / - 34 + + 42 AS col1
----
42

query I rowsort
SELECT 40 * + 10 AS col2
----
400

onlyif mysql # aggregate syntax: 
query II rowsort label-6444
SELECT ALL - 34 * NULLIF ( + 13, - ( - 27 ) * + + 67 * 12 * 74 ) * 86 * + - ( + - 94 ) * 35 * - COUNT( DISTINCT - NULLIF ( + 47, - 91 / - 23 * + - 99 ) ) + - + 31 AS col0, - 21 + + - 52 AS col0
----
125059449
-73

skipif mysql # not compatible
query II rowsort label-6444
SELECT ALL - 34 * NULLIF ( + 13, - ( - 27 ) * + + 67 * 12 * 74 ) * 86 * + - ( + - 94 ) * 35 * - COUNT ( DISTINCT - NULLIF ( + 47, - 91 / - 23 * + - 99 ) ) + - + 31 AS col0, - 21 + + - 52 AS col0
----
125059449
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6445
SELECT COALESCE ( - 91, + - COUNT( * ) ) + + 16 + + 60 * + - 19 * + 96 AS col2
----
-109515

skipif mysql # not compatible
query I rowsort label-6445
SELECT COALESCE ( - 91, + - COUNT ( * ) ) + + 16 + + 60 * + - 19 * + 96 AS col2
----
-109515

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT CASE - 76 WHEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + 76 THEN NULL WHEN 58 THEN - + AVG ( ALL - 56 ) END + COUNT( * ) + + + 58 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT CASE - 76 WHEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + 76 THEN NULL WHEN 58 THEN - + AVG ( ALL - 56 ) END + COUNT ( * ) + + + 58 AS col1
----
NULL

query I rowsort
SELECT ALL + 69 * 66 AS col0
----
4554

query I rowsort
SELECT DISTINCT 43 * + 45 * - COALESCE ( + 55, + 3 * - 59 + + 8 + + 98 ) * - - 0 col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT + 19 * - 46 + 73 DIV - 9 AS col2
----
-882

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 19 * - 46 + 73 / - 9 AS col2
----
-882

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6450
SELECT ALL - CASE CASE - - 63 WHEN - + 59 * - 14 THEN + ( CAST( + 1 AS SIGNED ) ) - + + ( 7 ) + - 77 + - 82 WHEN - 98 * + 15 THEN NULL END WHEN 41 * + 57 THEN NULL WHEN 47 THEN NULL ELSE 5 * - 10 + - 84 - 55 + - 70 + 30 * + - 37 + - 96 + NULLIF ( 18, - ( + + COUNT( * ) ) * - - 51 ) + + 23 + - - COUNT( * ) END
----
1423

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - CASE CASE - - 63 WHEN - + 59 * - 14 THEN + ( CAST ( + 1 AS INTEGER ) ) - + + ( 7 ) + - 77 + - 82 WHEN - 98 * + 15 THEN NULL END WHEN 41 * + 57 THEN NULL WHEN 47 THEN NULL ELSE 5 * - 10 + - 84 - 55 + - 70 + 30 * + - 37 + - 96 + NULLIF ( 18, - ( + + COUNT ( * ) ) * - - 51 ) + + 23 + - - COUNT ( * ) END
----
1423

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6451
SELECT ALL + 43 DIV - + 54 AS col0, - 7 * + COUNT( * )
----
0
-7

skipif mysql # not compatible
query II rowsort label-6451
SELECT ALL + 43 / - + 54 AS col0, - 7 * + COUNT ( * )
----
0
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6452
SELECT CAST( + 41 AS SIGNED ) DIV 2 AS col2
----
20

skipif mysql # not compatible
query I rowsort label-6452
SELECT CAST ( + 41 AS INTEGER ) / 2 AS col2
----
20

query I rowsort
SELECT 25 * - 50 AS col2
----
-1250

query I rowsort
SELECT ALL - 71 + + 18
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6455
SELECT 15 DIV COUNT( * ), 49 * - - 15 col1
----
15
735

skipif mysql # not compatible
query II rowsort label-6455
SELECT 15 / COUNT ( * ), 49 * - - 15 col1
----
15
735

query I rowsort
SELECT 19 + + 45 + + - NULLIF ( + 31, + 0 ) + - 49 col1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6457
SELECT DISTINCT - 26 + - + 94 DIV - + 7
----
-13

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT - 26 + - + 94 / - + 7
----
-13

query I rowsort
SELECT 53 * + ( + 11 ) + - 49 + + 7
----
541

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - + 64 + + - 50 + + MIN( ALL 33 ) col2
----
-81

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - + 64 + + - 50 + + MIN ( ALL 33 ) col2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6460
SELECT - 56 * CAST( NULL AS SIGNED ) * - 30 / - COUNT( * ) + ( - 26 ) * + - 4 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT - 56 * CAST ( NULL AS INTEGER ) * - 30 / - COUNT ( * ) + ( - 26 ) * + - 4 AS col2
----
NULL

query I rowsort
SELECT - - 45 * - + 46
----
-2070

query I rowsort
SELECT ALL ( - - 94 ) AS col0
----
94

onlyif mysql # aggregate syntax: 
query II rowsort label-6463
SELECT - + 12 + 56, - COUNT( * ) AS col0
----
44
-1

skipif mysql # not compatible
query II rowsort label-6463
SELECT - + 12 + 56, - COUNT ( * ) AS col0
----
44
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6464
SELECT - - COUNT( * ) + 76 DIV + CAST( 54 AS SIGNED ) + + CAST( + - 34 AS SIGNED )
----
-32

skipif mysql # not compatible
query I rowsort label-6464
SELECT - - COUNT ( * ) + 76 / + CAST ( 54 AS INTEGER ) + + CAST ( + - 34 AS INTEGER )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-6465
SELECT - 69 + - 88 + 31 DIV + 43
----
-157

skipif mysql # not compatible
query I rowsort label-6465
SELECT - 69 + - 88 + 31 / + 43
----
-157

query I rowsort
SELECT DISTINCT ( - 4 ) AS col0
----
-4

query I rowsort
SELECT ALL + 24 * + 55 + 50 + + - 41 + + 93 * - - 37 AS col0
----
4770

query I rowsort
SELECT DISTINCT + ( - 96 ) - + - 81
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-6469
SELECT - 40 * - - 97 + - + 7 * COUNT( * )
----
-3887

skipif mysql # not compatible
query I rowsort label-6469
SELECT - 40 * - - 97 + - + 7 * COUNT ( * )
----
-3887

query II rowsort
SELECT + + 68 + + - 74 col0, - CASE 11 WHEN - - ( 8 ) THEN NULL WHEN 44 THEN + + 18 ELSE NULL END AS col0
----
-6
NULL

query I rowsort
SELECT ALL - ( + - 16 ) * + 27 - 46 AS col2
----
386

query I rowsort
SELECT + 32 + - 61 + 25 AS col0
----
-4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6473
SELECT - + NULLIF ( - CAST( NULL AS SIGNED ), + - 79 ) * - - CAST( - 15 AS DECIMAL ) * - + 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6473
SELECT - + NULLIF ( - CAST ( NULL AS INTEGER ), + - 79 ) * - - CAST ( - 15 AS REAL ) * - + 81 AS col1
----
NULL

query I rowsort
SELECT ALL - 74 * - 20
----
1480

query II rowsort
SELECT ALL + 65 AS col1, + 73
----
65
73

query I rowsort
SELECT + 31 * - 20
----
-620

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT + SUM( - 75 ) AS col1
----
-75

skipif mysql # not compatible
query I rowsort label-6477
SELECT + SUM ( - 75 ) AS col1
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-6478
SELECT + CAST( - ( - 19 ) AS SIGNED ) * + NULLIF ( - + ( - ( + + 0 ) ), - - 9 + CAST( + + 17 AS DECIMAL ) ) - + + 23 + + COUNT( * ) DIV + 17 col2
----
-23

skipif mysql # not compatible
query I rowsort label-6478
SELECT + CAST ( - ( - 19 ) AS INTEGER ) * + NULLIF ( - + ( - ( + + 0 ) ), - - 9 + CAST ( + + 17 AS REAL ) ) - + + 23 + + COUNT ( * ) / + 17 col2
----
-23

query I rowsort
SELECT + 1 + + 9
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6480
SELECT CASE + 58 WHEN + 95 THEN + - 60 WHEN + + 54 * 1 THEN NULL ELSE - + CAST( - MAX( DISTINCT 1 ) AS SIGNED ) END
----
1

skipif mysql # not compatible
query I rowsort label-6480
SELECT CASE + 58 WHEN + 95 THEN + - 60 WHEN + + 54 * 1 THEN NULL ELSE - + CAST ( - MAX ( DISTINCT 1 ) AS INTEGER ) END
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - COUNT( * ) * - 33 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-6481
SELECT - COUNT ( * ) * - 33 AS col2
----
33

query I rowsort
SELECT ALL + 59 * - 73 + + ( - - 59 ) * - 62
----
-7965

query I rowsort
SELECT ALL + 9 * + 48 + - 60
----
372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT 76 * + + 16 + + 55 * + COALESCE ( 24, + ( - CAST( + 92 AS SIGNED ) ) * - 66 - - - 6 * 27 ) AS col0
----
2536

skipif mysql # not compatible
query I rowsort label-6484
SELECT 76 * + + 16 + + 55 * + COALESCE ( 24, + ( - CAST ( + 92 AS INTEGER ) ) * - 66 - - - 6 * 27 ) AS col0
----
2536

onlyif mysql # aggregate syntax: 
query II rowsort label-6485
SELECT ALL + MIN( - ( + - 73 ) ) AS col1, ( - 68 ) AS col1
----
73
-68

skipif mysql # not compatible
query II rowsort label-6485
SELECT ALL + MIN ( - ( + - 73 ) ) AS col1, ( - 68 ) AS col1
----
73
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT ALL - 32 * - 43 * + - 78 + + COUNT( + 12 )
----
-107327

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL - 32 * - 43 * + - 78 + + COUNT ( + 12 )
----
-107327

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6487
SELECT + CAST( NULL AS DECIMAL ), - 93 * + 56 * + CAST( 16 AS SIGNED ) * + 69 + + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6487
SELECT + CAST ( NULL AS REAL ), - 93 * + 56 * + CAST ( 16 AS INTEGER ) * + 69 + + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6488
SELECT DISTINCT - COUNT( DISTINCT 63 ) / - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT - COUNT ( DISTINCT 63 ) / - CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT + 31 * 40 AS col2
----
1240

query I rowsort
SELECT - ( + - 77 ) + 86 AS col2
----
163

query I rowsort
SELECT ALL - 19 * - 6 * 20
----
2280

query I rowsort
SELECT - + COALESCE ( + 25, - 20 ) AS col1
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6493
SELECT - 58 DIV + COUNT( * ) AS col2
----
-58

skipif mysql # not compatible
query I rowsort label-6493
SELECT - 58 / + COUNT ( * ) AS col2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT ALL - MIN( DISTINCT - 45 ) * + 99 AS col1
----
4455

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL - MIN ( DISTINCT - 45 ) * + 99 AS col1
----
4455

query I rowsort
SELECT ALL ( - + 25 ) AS col1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT COALESCE ( + 96, + + 94 - - 42 - - + 44 + 20 * + + 26 + + 87 * MIN( ALL + NULLIF ( + + NULLIF ( - + 5, 17 * 28 - + 54 ), + 31 ) ) + 33 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-6496
SELECT COALESCE ( + 96, + + 94 - - 42 - - + 44 + 20 * + + 26 + + 87 * MIN ( ALL + NULLIF ( + + NULLIF ( - + 5, 17 * 28 - + 54 ), + 31 ) ) + 33 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6497
SELECT - SUM( - 80 ) * 16, - ( - NULLIF ( - 36, + AVG ( + 51 ) ) ) AS col1
----
1280
-36

skipif mysql # not compatible
query II rowsort label-6497
SELECT - SUM ( - 80 ) * 16, - ( - NULLIF ( - 36, + AVG ( + 51 ) ) ) AS col1
----
1280
-36

query II rowsort
SELECT - 46 AS col1, 0 AS col1
----
-46
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6499
SELECT - + 39 * - 95 * + SUM( 97 ) AS col0, + 10
----
359385
10

skipif mysql # not compatible
query II rowsort label-6499
SELECT - + 39 * - 95 * + SUM ( 97 ) AS col0, + 10
----
359385
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT DISTINCT - ( COUNT( * ) ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT - ( COUNT ( * ) ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6501
SELECT - - 12 * 55 DIV - ( - 35 ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-6501
SELECT - - 12 * 55 / - ( - 35 ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6502
SELECT - + COUNT( * ) - + CAST( NULL AS SIGNED ) + - - 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT - + COUNT ( * ) - + CAST ( NULL AS INTEGER ) + - - 95
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6503
SELECT DISTINCT CAST( - 51 AS SIGNED ) AS col0, - 92 AS col2
----
-51
-92

skipif mysql # not compatible
query II rowsort label-6503
SELECT DISTINCT CAST ( - 51 AS INTEGER ) AS col0, - 92 AS col2
----
-51
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - COUNT( DISTINCT - - 2 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( DISTINCT - - 2 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT ALL + 15 + + + 36 DIV + 73
----
15

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL + 15 + + + 36 / + 73
----
15

query I rowsort
SELECT - 31 * + - ( + 94 )
----
2914

onlyif mysql # aggregate syntax: 
query II rowsort label-6507
SELECT - 43 + 92 + ( - + COUNT( * ) ), COUNT( * ) AS col0
----
48
1

skipif mysql # not compatible
query II rowsort label-6507
SELECT - 43 + 92 + ( - + COUNT ( * ) ), COUNT ( * ) AS col0
----
48
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6508
SELECT ALL - 43 * COUNT( * ) DIV NULLIF ( 45, + + 2 + 3 ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6508
SELECT ALL - 43 * COUNT ( * ) / NULLIF ( 45, + + 2 + 3 ) AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6509
SELECT ALL + 31 DIV + 80 + - 43 AS col2
----
-43

skipif mysql # not compatible
query I rowsort label-6509
SELECT ALL + 31 / + 80 + - 43 AS col2
----
-43

query I rowsort
SELECT - 95 + 41 + 7
----
-47

query I rowsort
SELECT + 1 * - - 97
----
97

query I rowsort
SELECT + ( - - 85 )
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6513
SELECT ALL + 15 DIV 65 + - 43 + CAST( + + 48 AS SIGNED ) + - - 84 AS col2
----
89

skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + 15 / 65 + - 43 + CAST ( + + 48 AS INTEGER ) + - - 84 AS col2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6514
SELECT ALL - 25 * 17 DIV + 55
----
-7

skipif mysql # not compatible
query I rowsort label-6514
SELECT ALL - 25 * 17 / + 55
----
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6515
SELECT ALL COUNT( DISTINCT + 30 ) / + - ( + CAST( NULL AS SIGNED ) ) - + 2 - + 95
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL COUNT ( DISTINCT + 30 ) / + - ( + CAST ( NULL AS INTEGER ) ) - + 2 - + 95
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6516
SELECT ALL - COALESCE ( + 35, CAST( + 83 AS SIGNED ) * 1, 74 + + COUNT( - 44 ) + - ( 41 ) * + AVG ( + 16 ) + 87 * MIN( DISTINCT - 11 ) ) DIV + + 50 + - 7 + + 26 * 58 AS col0
----
1501

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - COALESCE ( + 35, CAST ( + 83 AS INTEGER ) * 1, 74 + + COUNT ( - 44 ) + - ( 41 ) * + AVG ( + 16 ) + 87 * MIN ( DISTINCT - 11 ) ) / + + 50 + - 7 + + 26 * 58 AS col0
----
1501

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6517
SELECT + ( + + 30 ) AS col2, 77 DIV - COUNT( * ) + - + 17 + - ( + 45 ) - - 57 * - 42 * + 81 AS col2
----
30
-194053

skipif mysql # not compatible
query II rowsort label-6517
SELECT + ( + + 30 ) AS col2, 77 / - COUNT ( * ) + - + 17 + - ( + 45 ) - - 57 * - 42 * + 81 AS col2
----
30
-194053

query I rowsort
SELECT + 17 + + ( - 42 )
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT 90 * + COUNT( * ) * + + 22 + + 43 + + - 43 + - 26 col1
----
1954

skipif mysql # not compatible
query I rowsort label-6519
SELECT 90 * + COUNT ( * ) * + + 22 + + 43 + + - 43 + - 26 col1
----
1954

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6520
SELECT + MIN( 42 ) col2, CAST( CASE - 5 WHEN + COUNT( * ) THEN NULL ELSE + 19 END AS SIGNED ) * - - 92 * + 60 - + AVG ( + CAST( NULL AS SIGNED ) ) * + 10
----
42
NULL

skipif mysql # not compatible
query II rowsort label-6520
SELECT + MIN ( 42 ) col2, CAST ( CASE - 5 WHEN + COUNT ( * ) THEN NULL ELSE + 19 END AS INTEGER ) * - - 92 * + 60 - + AVG ( + CAST ( NULL AS INTEGER ) ) * + 10
----
42
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6521
SELECT DISTINCT - 23 * + + MIN( - 20 ) DIV COUNT( * )
----
460

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT - 23 * + + MIN ( - 20 ) / COUNT ( * )
----
460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6522
SELECT + NULLIF ( - + COUNT( * ), + 68 * + CAST( NULL AS SIGNED ) ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-6522
SELECT + NULLIF ( - + COUNT ( * ), + 68 * + CAST ( NULL AS INTEGER ) ) AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT + COUNT( * ) + + ( + 18 )
----
19

skipif mysql # not compatible
query I rowsort label-6523
SELECT + COUNT ( * ) + + ( + 18 )
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6524
SELECT ALL - CASE WHEN NOT ( 58 ) IN ( + 96 * - 25 * + NULLIF ( + + 67, + CAST( 23 AS SIGNED ) ), + 95 * AVG ( ALL + + 2 ) ) THEN - - 6 * - - 67 WHEN 89 / + - 27 + + 15 <> + 29 THEN NULL END AS col0
----
-402

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - CASE WHEN NOT ( 58 ) IN ( + 96 * - 25 * + NULLIF ( + + 67, + CAST ( 23 AS INTEGER ) ), + 95 * AVG ( ALL + + 2 ) ) THEN - - 6 * - - 67 WHEN 89 / + - 27 + + 15 <> + 29 THEN NULL END AS col0
----
-402

query I rowsort
SELECT DISTINCT - + ( 89 ) AS col2
----
-89

query I rowsort
SELECT ALL + 29 * + 92
----
2668

onlyif mysql # aggregate syntax: 
query II rowsort label-6527
SELECT 69 * - + COUNT( * ) AS col0, 15 + - 83 + 1 + + + ( - 14 ) + - 91 AS col1
----
-69
-172

skipif mysql # not compatible
query II rowsort label-6527
SELECT 69 * - + COUNT ( * ) AS col0, 15 + - 83 + 1 + + + ( - 14 ) + - 91 AS col1
----
-69
-172

query I rowsort
SELECT + 13 * NULLIF ( + + ( 21 ), + 69 ) - 95 col1
----
178

query I rowsort
SELECT 49 + + 69
----
118

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT ALL + 46 DIV 22 DIV - 7 + - + 83 * - + 74 AS col0
----
6142

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + 46 / 22 / - 7 + - + 83 * - + 74 AS col0
----
6142

query I rowsort
SELECT ALL + 2 + - - 64 + + + 91 * + 6 AS col2
----
612

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT ALL - 22 + - COUNT( DISTINCT - + 93 ) col2
----
-23

skipif mysql # not compatible
query I rowsort label-6532
SELECT ALL - 22 + - COUNT ( DISTINCT - + 93 ) col2
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-6533
SELECT ALL 50 + COUNT( * ), 90 col0
----
51
90

skipif mysql # not compatible
query II rowsort label-6533
SELECT ALL 50 + COUNT ( * ), 90 col0
----
51
90

query I rowsort
SELECT DISTINCT 20 * - 7 * 38
----
-5320

query I rowsort
SELECT 3 + + 33 + - + 1 AS col0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT ALL - 56 + + + 88 + + + COUNT( * ) AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6536
SELECT ALL - 56 + + + 88 + + + COUNT ( * ) AS col1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT 84 * - 72 * - + COUNT( * ) col2
----
6048

skipif mysql # not compatible
query I rowsort label-6537
SELECT 84 * - 72 * - + COUNT ( * ) col2
----
6048

query I rowsort
SELECT 19 + + + 62 AS col1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT DISTINCT - COUNT( * ) + 64
----
63

skipif mysql # not compatible
query I rowsort label-6539
SELECT DISTINCT - COUNT ( * ) + 64
----
63

query I rowsort
SELECT ALL + 84 + 15
----
99

query I rowsort
SELECT 9 * + + 26
----
234

query I rowsort
SELECT DISTINCT - 39 + + + 31
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT ALL - CAST( + 42 AS SIGNED )
----
-42

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL - CAST ( + 42 AS INTEGER )
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6544
SELECT ALL - COUNT( DISTINCT + + 15 ) * - - 98 col0, + 60 - + 1 - + + 86 AS col0
----
-98
-27

skipif mysql # not compatible
query II rowsort label-6544
SELECT ALL - COUNT ( DISTINCT + + 15 ) * - - 98 col0, + 60 - + 1 - + + 86 AS col0
----
-98
-27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6545
SELECT 28 DIV COUNT( * )
----
28

skipif mysql # not compatible
query I rowsort label-6545
SELECT 28 / COUNT ( * )
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL - COUNT( * ) - + 72 AS col1
----
-73

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL - COUNT ( * ) - + 72 AS col1
----
-73

query I rowsort
SELECT DISTINCT - ( + 63 ) AS col2
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT ALL - CAST( 29 AS SIGNED )
----
-29

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL - CAST ( 29 AS INTEGER )
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6549
SELECT 54 DIV ( 59 ) col0
----
0

skipif mysql # not compatible
query I rowsort label-6549
SELECT 54 / ( 59 ) col0
----
0

query I rowsort
SELECT 25 * + 81 AS col1
----
2025

query I rowsort
SELECT 63 + + 6 - - 53 * 93 * - - 98 * + - 3 AS col1
----
-1449057

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6552
SELECT 44 DIV - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-6552
SELECT 44 / - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT - COUNT( * ) * + ( 26 ) AS col1
----
-26

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT - COUNT ( * ) * + ( 26 ) AS col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT DISTINCT - CASE WHEN ( COUNT( * ) ) < NULL THEN + ( + 60 ) * 60 ELSE + 6 END AS col1
----
-6

skipif mysql # not compatible
query I rowsort label-6554
SELECT DISTINCT - CASE WHEN ( COUNT ( * ) ) < NULL THEN + ( + 60 ) * 60 ELSE + 6 END AS col1
----
-6

query I rowsort
SELECT 59 + - 41 * + 71
----
-2852

query I rowsort
SELECT ALL - ( - 48 ) col2
----
48

query I rowsort
SELECT 79 * 24 AS col2
----
1896

query I rowsort
SELECT 85 + + 56 AS col0
----
141

query I rowsort
SELECT ALL 80 * + 59
----
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT 68 * - MAX( + 41 ) AS col2
----
-2788

skipif mysql # not compatible
query I rowsort label-6560
SELECT 68 * - MAX ( + 41 ) AS col2
----
-2788

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL - 87 + COUNT( * ) * 52 AS col1
----
-35

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - 87 + COUNT ( * ) * 52 AS col1
----
-35

query I rowsort
SELECT DISTINCT 15 * 81 col0
----
1215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6563
SELECT ALL CASE - 5 WHEN 33 THEN 15 WHEN - COUNT( * ) + 63 THEN NULL END + CAST( 22 AS SIGNED ) / 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL CASE - 5 WHEN 33 THEN 15 WHEN - COUNT ( * ) + 63 THEN NULL END + CAST ( 22 AS INTEGER ) / 20
----
NULL

query I rowsort
SELECT ALL 85 + 15 col0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL MAX( - 57 ) + NULLIF ( + ( - 80 ), - 52 ) AS col2
----
-137

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL MAX ( - 57 ) + NULLIF ( + ( - 80 ), - 52 ) AS col2
----
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT MIN( ALL 31 ) * - 89 AS col0
----
-2759

skipif mysql # not compatible
query I rowsort label-6566
SELECT MIN ( ALL 31 ) * - 89 AS col0
----
-2759

query I rowsort
SELECT DISTINCT 79 * 61
----
4819

query I rowsort
SELECT 74 - + 60
----
14

query I rowsort
SELECT ALL 7 + + 64 * 90
----
5767

query I rowsort
SELECT ( + 96 ) - 91 AS col2
----
5

query I rowsort
SELECT DISTINCT + 80 * NULLIF ( - 14, + 86 ) AS col1
----
-1120

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT DISTINCT COUNT( * ) - + CASE NULLIF ( 12, 33 ) WHEN + 82 + - 63 * + 47 THEN - ( + 79 ) WHEN - 4 + COUNT( * ) * 43 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT COUNT ( * ) - + CASE NULLIF ( 12, 33 ) WHEN + 82 + - 63 * + 47 THEN - ( + 79 ) WHEN - 4 + COUNT ( * ) * 43 THEN NULL END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL 71 - COUNT( * )
----
70

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL 71 - COUNT ( * )
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT ALL COUNT( DISTINCT 47 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL COUNT ( DISTINCT 47 ) col1
----
1

query I rowsort
SELECT DISTINCT ( - 12 ) * - 9
----
108

query I rowsort
SELECT - 35 * + 17 AS col0
----
-595

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6577
SELECT - 64 DIV + 47 + - MAX( + 46 )
----
-47

skipif mysql # not compatible
query I rowsort label-6577
SELECT - 64 / + 47 + - MAX ( + 46 )
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT + 77 * - 38 - NULLIF ( COUNT( * ), 43 ) AS col1
----
-2927

skipif mysql # not compatible
query I rowsort label-6578
SELECT + 77 * - 38 - NULLIF ( COUNT ( * ), 43 ) AS col1
----
-2927

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT + CASE - 57 WHEN 27 / + 2 + COUNT( * ) THEN 64 * 64 WHEN CAST( - COUNT( * ) AS SIGNED ) / CAST( NULL AS SIGNED ) + + 73 THEN NULL WHEN 23 THEN + 57 * 18 ELSE NULLIF ( 64, - 45 ) END AS col0
----
64

skipif mysql # not compatible
query I rowsort label-6579
SELECT + CASE - 57 WHEN 27 / + 2 + COUNT ( * ) THEN 64 * 64 WHEN CAST ( - COUNT ( * ) AS INTEGER ) / CAST ( NULL AS INTEGER ) + + 73 THEN NULL WHEN 23 THEN + 57 * 18 ELSE NULLIF ( 64, - 45 ) END AS col0
----
64

query I rowsort
SELECT + 82 + - 37 * - 40
----
1562

query I rowsort
SELECT + 0 * - 83
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT ALL COUNT( * ) * 81 AS col0
----
81

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL COUNT ( * ) * 81 AS col0
----
81

query I rowsort
SELECT NULLIF ( + 66, AVG ( - 50 ) * + 60 + - ( + 48 ) )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6584
SELECT + 59 * - COALESCE ( - COUNT( * ), 67 DIV + 70, + 84 ) + 12 * 83
----
1055

skipif mysql # not compatible
query I rowsort label-6584
SELECT + 59 * - COALESCE ( - COUNT ( * ), 67 / + 70, + 84 ) + 12 * 83
----
1055

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT ALL + - SUM( ALL + 65 ) AS col1
----
-65

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL + - SUM ( ALL + 65 ) AS col1
----
-65

query I rowsort
SELECT - + 51 * ( + ( 73 ) )
----
-3723

query I rowsort
SELECT - ( + 48 ) AS col0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - - MIN( DISTINCT + 71 ) * 41
----
2911

skipif mysql # not compatible
query I rowsort label-6588
SELECT - - MIN ( DISTINCT + 71 ) * 41
----
2911

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT + MIN( DISTINCT - 51 ) * 1 + 49 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-6589
SELECT + MIN ( DISTINCT - 51 ) * 1 + 49 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ALL + + 75 * COUNT( * ) col1
----
75

skipif mysql # not compatible
query I rowsort label-6590
SELECT ALL + + 75 * COUNT ( * ) col1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6591
SELECT DISTINCT + CAST( 0 AS SIGNED ) * 62 + + 12 AS col0
----
12

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT + CAST ( 0 AS INTEGER ) * 62 + + 12 AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL + COUNT( * ) * 8 + + 48 AS col2
----
56

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL + COUNT ( * ) * 8 + + 48 AS col2
----
56

query I rowsort
SELECT DISTINCT - + 70 * - 90 + + 28 AS col0
----
6328

onlyif mysql # DIV for integer division: 
query I rowsort label-6594
SELECT - - 75 DIV + 22 col2
----
3

skipif mysql # not compatible
query I rowsort label-6594
SELECT - - 75 / + 22 col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT ALL + MIN( 78 ) + 83 col0
----
161

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + MIN ( 78 ) + 83 col0
----
161

query I rowsort
SELECT - ( - 13 ) AS col1
----
13

query I rowsort
SELECT - - 89 + COALESCE ( NULLIF ( + 54, - 52 ), - 84, + 79 * 38 ) AS col1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT - + 14 + MIN( DISTINCT 79 )
----
65

skipif mysql # not compatible
query I rowsort label-6598
SELECT - + 14 + MIN ( DISTINCT 79 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT + CASE 29 WHEN 6 THEN + 12 END - + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6599
SELECT + CASE 29 WHEN 6 THEN + 12 END - + COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 84 + - 79
----
-163

query I rowsort
SELECT + 2 * - - 93 * 11 AS col2
----
2046

query I rowsort
SELECT - 13 * - - ( + 88 )
----
-1144

query I rowsort
SELECT DISTINCT NULLIF ( 55, 87 * + ( + 11 ) ) * 8 AS col2
----
440

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT + 39 - 87 DIV + 78 AS col1
----
38

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + 39 - 87 / + 78 AS col1
----
38

query I rowsort
SELECT + 48 * - 25 * - 91
----
109200

query I rowsort
SELECT ALL ( + - 65 ) * + 24
----
-1560

query I rowsort
SELECT + 66 + ( 19 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT ALL + COUNT( * ) - + 31 + COUNT( * ) * 18
----
-12

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL + COUNT ( * ) - + 31 + COUNT ( * ) * 18
----
-12

query I rowsort
SELECT + 42 + + + 66 * 6 col0
----
438

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL MAX( ALL - ( - 22 ) ) - - 7
----
29

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL MAX ( ALL - ( - 22 ) ) - - 7
----
29

query I rowsort
SELECT - 12 * - ( 75 ) AS col1
----
900

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT + COUNT( * ) + + 29 - - 48 * + COUNT( * )
----
78

skipif mysql # not compatible
query I rowsort label-6612
SELECT + COUNT ( * ) + + 29 - - 48 * + COUNT ( * )
----
78

query I rowsort
SELECT + 12 + 44 AS col2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT + 82 * + COUNT( * ) * + 47 AS col2
----
3854

skipif mysql # not compatible
query I rowsort label-6614
SELECT + 82 * + COUNT ( * ) * + 47 AS col2
----
3854

query I rowsort
SELECT + ( 45 ) + 92
----
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT + COUNT( * ) DIV 28
----
0

skipif mysql # not compatible
query I rowsort label-6616
SELECT + COUNT ( * ) / 28
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT DISTINCT 11 DIV 6 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6617
SELECT DISTINCT 11 / 6 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT - ( + MIN( + ( 76 ) ) ) AS col0
----
-76

skipif mysql # not compatible
query I rowsort label-6618
SELECT - ( + MIN ( + ( 76 ) ) ) AS col0
----
-76

query I rowsort
SELECT ALL 46 * 41 AS col1
----
1886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6620
SELECT CAST( 60 AS SIGNED ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-6620
SELECT CAST ( 60 AS INTEGER ) AS col2
----
60

query I rowsort
SELECT + + 5 * + 24
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6622
SELECT ALL COUNT( * ) DIV 47 + + 70
----
70

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL COUNT ( * ) / 47 + + 70
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT - 2 DIV COUNT( * ) - - 69 * COUNT( * ) + 75
----
142

skipif mysql # not compatible
query I rowsort label-6623
SELECT - 2 / COUNT ( * ) - - 69 * COUNT ( * ) + 75
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6624
SELECT + MAX( DISTINCT + 19 ) AS col0
----
19

skipif mysql # not compatible
query I rowsort label-6624
SELECT + MAX ( DISTINCT + 19 ) AS col0
----
19

query I rowsort
SELECT ALL 14 * - + 89 + 15 AS col2
----
-1231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6626
SELECT + 84 * 43 DIV COUNT( * ) AS col2
----
3612

skipif mysql # not compatible
query I rowsort label-6626
SELECT + 84 * 43 / COUNT ( * ) AS col2
----
3612

query I rowsort
SELECT - 53 * 72 * 99 AS col0
----
-377784

query I rowsort
SELECT DISTINCT + ( 65 )
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6629
SELECT ALL - 75 * - CAST( 77 AS SIGNED ) + + 83
----
5858

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL - 75 * - CAST ( 77 AS INTEGER ) + + 83
----
5858

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6630
SELECT + - 10 * - COALESCE ( ( - 28 ), ( - 50 ) * - COALESCE ( NULLIF ( + CAST( ( MAX( + 95 ) ) AS SIGNED ), - 9 ), 73 ) ) + 50 col2
----
-230

skipif mysql # not compatible
query I rowsort label-6630
SELECT + - 10 * - COALESCE ( ( - 28 ), ( - 50 ) * - COALESCE ( NULLIF ( + CAST ( ( MAX ( + 95 ) ) AS INTEGER ), - 9 ), 73 ) ) + 50 col2
----
-230

query I rowsort
SELECT - + 4 + 43
----
39

query I rowsort
SELECT - 70 + - 63
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT ALL - - MAX( - 78 ) * 20 col1
----
-1560

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL - - MAX ( - 78 ) * 20 col1
----
-1560

query I rowsort
SELECT + NULLIF ( - COALESCE ( 41, + 77 ), + 45 ) * 13 + + 59 col2
----
-474

query II rowsort
SELECT - 58, - COALESCE ( 83, - 67 * 78 - + 31 * 2 ) * 83 AS col0
----
-58
-6889

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6636
SELECT ALL CAST( + + ( + - CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL CAST ( + + ( + - CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT COALESCE ( + 53, - 49 + 8 )
----
53

query I rowsort
SELECT ALL + 34 * - - 81 AS col1
----
2754

query I rowsort
SELECT DISTINCT ( + 31 ) col1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT 2 * NULLIF ( + COUNT( * ), - 32 )
----
2

skipif mysql # not compatible
query I rowsort label-6640
SELECT 2 * NULLIF ( + COUNT ( * ), - 32 )
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6641
SELECT 38 * + COALESCE ( - CAST( NULL AS SIGNED ), ( + 26 ) * 31 ) AS col0
----
30628

skipif mysql # not compatible
query I rowsort label-6641
SELECT 38 * + COALESCE ( - CAST ( NULL AS INTEGER ), ( + 26 ) * 31 ) AS col0
----
30628

query I rowsort
SELECT 9 - + 19
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6643
SELECT COUNT( * ) * - + 76
----
-76

skipif mysql # not compatible
query I rowsort label-6643
SELECT COUNT ( * ) * - + 76
----
-76

query II rowsort
SELECT - 82 AS col0, 48 + - 50 + 76 * + 53 AS col0
----
-82
4026

onlyif mysql # aggregate syntax: 
query II rowsort label-6645
SELECT ALL 83 AS col1, + COUNT( * ) AS col1
----
83
1

skipif mysql # not compatible
query II rowsort label-6645
SELECT ALL 83 AS col1, + COUNT ( * ) AS col1
----
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6646
SELECT COUNT( * ) * - 75 * - - 44 * 69 AS col0
----
-227700

skipif mysql # not compatible
query I rowsort label-6646
SELECT COUNT ( * ) * - 75 * - - 44 * 69 AS col0
----
-227700

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL 70 * + - COUNT( * ) AS col0
----
-70

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL 70 * + - COUNT ( * ) AS col0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT COUNT( * ) - - + 95
----
96

skipif mysql # not compatible
query I rowsort label-6648
SELECT COUNT ( * ) - - + 95
----
96

query I rowsort
SELECT 53 - + 79 * 59
----
-4608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6650
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 74 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 74 AS col1
----
NULL

query II rowsort
SELECT 68 AS col1, 28 AS col2
----
68
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6652
SELECT ALL + 71 + + - COUNT( * ) - 29 - + 75 DIV 79
----
41

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL + 71 + + - COUNT ( * ) - 29 - + 75 / 79
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6653
SELECT - COUNT( * ) + + - 4 * 91 AS col1
----
-365

skipif mysql # not compatible
query I rowsort label-6653
SELECT - COUNT ( * ) + + - 4 * 91 AS col1
----
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-6654
SELECT CASE + - COUNT( * ) WHEN 11 THEN 98 * 86 WHEN 91 THEN + 83 / + COUNT( * ) END / 79 + - 2 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT CASE + - COUNT ( * ) WHEN 11 THEN 98 * 86 WHEN 91 THEN + 83 / + COUNT ( * ) END / 79 + - 2 AS col2
----
NULL

query I rowsort
SELECT 85 * + - 5 - 80 + 36 * 4 AS col0
----
-361

query I rowsort
SELECT ALL - 79 col2
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT + CASE - + 42 WHEN - SUM( - 38 ) THEN - COUNT( * ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT + CASE - + 42 WHEN - SUM ( - 38 ) THEN - COUNT ( * ) END AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT + - MIN( + + 12 )
----
-12

skipif mysql # not compatible
query I rowsort label-6658
SELECT + - MIN ( + + 12 )
----
-12

query I rowsort
SELECT ALL - 88 + - + 14 AS col0
----
-102

query I rowsort
SELECT ALL + 30 + ( + + 51 )
----
81

query I rowsort
SELECT + 95 * 70
----
6650

query I rowsort
SELECT ALL - ( - 50 ) AS col1
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT - NULLIF ( + 93, + 9 ) DIV + 40
----
-2

skipif mysql # not compatible
query I rowsort label-6663
SELECT - NULLIF ( + 93, + 9 ) / + 40
----
-2

query I rowsort
SELECT + - 20 * ( + 49 ) + 71 AS col0
----
-909

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL - 38 * - COUNT( * ) * - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL - 38 * - COUNT ( * ) * - COUNT ( * )
----
-38

query I rowsort
SELECT ALL 87 + + CASE 10 WHEN 83 THEN 73 END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6667
SELECT - CAST( - - ( - 37 ) AS SIGNED ) * MIN( ALL - 41 )
----
-1517

skipif mysql # not compatible
query I rowsort label-6667
SELECT - CAST ( - - ( - 37 ) AS INTEGER ) * MIN ( ALL - 41 )
----
-1517

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - 71 + - COUNT( * ) * - + 9 * MIN( DISTINCT 66 )
----
523

skipif mysql # not compatible
query I rowsort label-6668
SELECT - 71 + - COUNT ( * ) * - + 9 * MIN ( DISTINCT 66 )
----
523

query I rowsort
SELECT 41 * + 98 col0
----
4018

onlyif mysql # DIV for integer division: 
query II rowsort label-6670
SELECT 23, 44 DIV + + 82 AS col1
----
23
0

skipif mysql # not compatible
query II rowsort label-6670
SELECT 23, 44 / + + 82 AS col1
----
23
0

query II rowsort
SELECT 60 AS col2, + 0 + 12 * - 13
----
60
-156

query I rowsort
SELECT 9 * + 90 * - + 4 + 30
----
-3210

query II rowsort
SELECT 66, 44 col2
----
66
44

query I rowsort
SELECT DISTINCT - - ( + 6 ) AS col1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6675
SELECT ALL - + CASE - - 25 WHEN - - 96 / - COUNT( * ) + 69 THEN + NULLIF ( 18, - AVG ( ALL CAST( NULL AS SIGNED ) ) ) * 49 + - 54 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL - + CASE - - 25 WHEN - - 96 / - COUNT ( * ) + 69 THEN + NULLIF ( 18, - AVG ( ALL CAST ( NULL AS INTEGER ) ) ) * 49 + - 54 ELSE NULL END
----
NULL

query I rowsort
SELECT DISTINCT 90 - - + 38 AS col2
----
128

query I rowsort
SELECT ALL - 48 col1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT 22 * COALESCE ( 78, NULLIF ( + 99, 19 ), 49 DIV 26 - + COALESCE ( 18 + + 25, - ( - 41 ) * 73, + 58 ) DIV 85 ) * 91
----
156156

skipif mysql # not compatible
query I rowsort label-6678
SELECT 22 * COALESCE ( 78, NULLIF ( + 99, 19 ), 49 / 26 - + COALESCE ( 18 + + 25, - ( - 41 ) * 73, + 58 ) / 85 ) * 91
----
156156

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT ALL - COUNT( ALL - - 60 ) * - 10 + + ( 68 ) col1
----
78

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL - COUNT ( ALL - - 60 ) * - 10 + + ( 68 ) col1
----
78

query I rowsort
SELECT ( 38 ) + - ( 93 ) + 43 * 80 * + 52 AS col2
----
178825

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6681
SELECT - 53 * + + 23 - - - 99 + - - 95 DIV COUNT( * )
----
-1223

skipif mysql # not compatible
query I rowsort label-6681
SELECT - 53 * + + 23 - - - 99 + - - 95 / COUNT ( * )
----
-1223

query I rowsort
SELECT 18 + 90 AS col1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT 54 - - COALESCE ( + 87, + + COUNT( * ) * - 16 + COUNT( + 86 ) * + 76 )
----
141

skipif mysql # not compatible
query I rowsort label-6683
SELECT 54 - - COALESCE ( + 87, + + COUNT ( * ) * - 16 + COUNT ( + 86 ) * + 76 )
----
141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6684
SELECT CAST( NULL AS DECIMAL ) + 91 + 53 * - 54 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6684
SELECT CAST ( NULL AS REAL ) + 91 + 53 * - 54 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT DISTINCT 48 DIV - + 5 AS col1
----
-9

skipif mysql # not compatible
query I rowsort label-6685
SELECT DISTINCT 48 / - + 5 AS col1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6686
SELECT 37 DIV - COUNT( * ) col2, SUM( 96 )
----
-37
96

skipif mysql # not compatible
query II rowsort label-6686
SELECT 37 / - COUNT ( * ) col2, SUM ( 96 )
----
-37
96

query I rowsort
SELECT ALL - 31 + 22 * - 61 col0
----
-1373

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6688
SELECT 44 + + CASE + ( + CASE + 2 WHEN + 0 * MIN( 20 ) THEN - NULLIF ( - 22, - 1 * - 10 ) WHEN 87 THEN 14 * - 72 - - 74 END ) WHEN 15 * 27 THEN + MIN( + 61 ) ELSE 59 * 11 END DIV CAST( 56 * 17 AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-6688
SELECT 44 + + CASE + ( + CASE + 2 WHEN + 0 * MIN ( 20 ) THEN - NULLIF ( - 22, - 1 * - 10 ) WHEN 87 THEN 14 * - 72 - - 74 END ) WHEN 15 * 27 THEN + MIN ( + 61 ) ELSE 59 * 11 END / CAST ( 56 * 17 AS INTEGER )
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6689
SELECT 53 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT 53 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 63 + - 18 + - 1
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6691
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) + + COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6691
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) + + COUNT ( * )
----
NULL

query I rowsort
SELECT 72 + + 11 AS col2
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6693
SELECT - NULLIF ( - 90, + CASE + COUNT( * ) WHEN - 28 THEN NULL WHEN + 53 * COALESCE ( + 66, - 3 ) THEN - COALESCE ( 26, COUNT( * ) ) END ) DIV - 11
----
-8

skipif mysql # not compatible
query I rowsort label-6693
SELECT - NULLIF ( - 90, + CASE + COUNT ( * ) WHEN - 28 THEN NULL WHEN + 53 * COALESCE ( + 66, - 3 ) THEN - COALESCE ( 26, COUNT ( * ) ) END ) / - 11
----
-8

query I rowsort
SELECT NULLIF ( - 96, + + 44 ) + 58 AS col1
----
-38

query I rowsort
SELECT + 26 + - 23
----
3

query II rowsort
SELECT - + ( + 21 ), - 55 AS col2
----
-21
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6697
SELECT ALL - 59 + + 15 - COUNT( * ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-6697
SELECT ALL - 59 + + 15 - COUNT ( * ) AS col1
----
-45

query I rowsort
SELECT DISTINCT - 1 * - 3 * 15 - 1
----
44

query I rowsort
SELECT - 93 * + + 67 AS col2
----
-6231

query I rowsort
SELECT ALL 32 * + 28 * 65
----
58240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT - 57 * - CAST( + - 98 AS SIGNED ) AS col0
----
-5586

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT - 57 * - CAST ( + - 98 AS INTEGER ) AS col0
----
-5586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT ALL CAST( + 81 AS SIGNED ) * - 22 - 10 AS col0
----
-1792

skipif mysql # not compatible
query I rowsort label-6702
SELECT ALL CAST ( + 81 AS INTEGER ) * - 22 - 10 AS col0
----
-1792

query I rowsort
SELECT - 59 - + 94 col1
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6704
SELECT 53 * - COUNT( * ) DIV - 98
----
0

skipif mysql # not compatible
query I rowsort label-6704
SELECT 53 * - COUNT ( * ) / - 98
----
0

query I rowsort
SELECT - NULLIF ( + 13, - + 70 - 13 )
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6706
SELECT + CAST( - + 0 AS SIGNED ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6706
SELECT + CAST ( - + 0 AS INTEGER ) AS col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6707
SELECT - 59 DIV + 8 + - 88 + + + 38 + - 96 DIV COUNT( * )
----
-153

skipif mysql # not compatible
query I rowsort label-6707
SELECT - 59 / + 8 + - 88 + + + 38 + - 96 / COUNT ( * )
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT ALL - + MIN( DISTINCT + + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-6708
SELECT ALL - + MIN ( DISTINCT + + 49 )
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6709
SELECT ALL - NULLIF ( - ( - ( - + MIN( - 78 ) ) ), MIN( CAST( NULL AS SIGNED ) ) + + 2 ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-6709
SELECT ALL - NULLIF ( - ( - ( - + MIN ( - 78 ) ) ), MIN ( CAST ( NULL AS INTEGER ) ) + + 2 ) AS col1
----
-78

query I rowsort
SELECT + ( - 97 ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6711
SELECT COUNT( * ) - - 96 AS col0, ( + CAST( - 77 AS SIGNED ) ) + 48 col0
----
97
-29

skipif mysql # not compatible
query II rowsort label-6711
SELECT COUNT ( * ) - - 96 AS col0, ( + CAST ( - 77 AS INTEGER ) ) + 48 col0
----
97
-29

query I rowsort
SELECT + 43 * - + 55 AS col1
----
-2365

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6713
SELECT ALL COUNT( * ) DIV - - COUNT( DISTINCT - + 35 ) AS col0, - 38 + 75 AS col1
----
1
37

skipif mysql # not compatible
query II rowsort label-6713
SELECT ALL COUNT ( * ) / - - COUNT ( DISTINCT - + 35 ) AS col0, - 38 + 75 AS col1
----
1
37

query I rowsort
SELECT - 13 * - 62
----
806

query I rowsort
SELECT + 37 + - 42 col1
----
-5

query I rowsort
SELECT DISTINCT 42 * + - 60
----
-2520

onlyif mysql # aggregate syntax: 
query I rowsort label-6717
SELECT ALL NULLIF ( + COUNT( DISTINCT - 63 ), - 64 ) * 0 * - 69 - 75
----
-75

skipif mysql # not compatible
query I rowsort label-6717
SELECT ALL NULLIF ( + COUNT ( DISTINCT - 63 ), - 64 ) * 0 * - 69 - 75
----
-75

query I rowsort
SELECT + 7 * + - 85 AS col1
----
-595

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT + 86 * + ( + 20 ) * + + SUM( - 64 ) + 65 + COUNT( * )
----
-110014

skipif mysql # not compatible
query I rowsort label-6719
SELECT + 86 * + ( + 20 ) * + + SUM ( - 64 ) + 65 + COUNT ( * )
----
-110014

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT MAX( DISTINCT - 6 )
----
-6

skipif mysql # not compatible
query I rowsort label-6720
SELECT MAX ( DISTINCT - 6 )
----
-6

query I rowsort
SELECT + 83 * - 72 AS col2
----
-5976

query I rowsort
SELECT ( 95 ) * - 81 * + NULLIF ( - COALESCE ( 48, 14 + 60 ), - 23 * + 86 ) + 78 AS col0
----
369438

query I rowsort
SELECT ALL 95 + + 47 AS col1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT DISTINCT 7 * - + MIN( - + 44 )
----
308

skipif mysql # not compatible
query I rowsort label-6724
SELECT DISTINCT 7 * - + MIN ( - + 44 )
----
308

query I rowsort
SELECT ALL ( + + 43 ) + 46
----
89

query II rowsort
SELECT - NULLIF ( - 91, - 19 ) AS col1, - COALESCE ( - + 63, 74 + 83 ) AS col2
----
91
63

query I rowsort
SELECT ALL 41 * - 47 AS col0
----
-1927

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT DISTINCT CAST( NULL AS SIGNED ) + 76
----
NULL

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 76
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT ALL MAX( - 26 ) col1
----
-26

skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL MAX ( - 26 ) col1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + COUNT( * ) - 81 - + 91 * - - 69 AS col0
----
-6359

skipif mysql # not compatible
query I rowsort label-6730
SELECT + COUNT ( * ) - 81 - + 91 * - - 69 AS col0
----
-6359

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT - NULLIF ( MIN( - 83 ), 77 * + + 62 )
----
83

skipif mysql # not compatible
query I rowsort label-6731
SELECT - NULLIF ( MIN ( - 83 ), 77 * + + 62 )
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6732
SELECT + 17 - + - MAX( ALL - 53 ) AS col2, + MAX( ALL 3 ) DIV + COUNT( * ) AS col0
----
-36
3

skipif mysql # not compatible
query II rowsort label-6732
SELECT + 17 - + - MAX ( ALL - 53 ) AS col2, + MAX ( ALL 3 ) / + COUNT ( * ) AS col0
----
-36
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT - COUNT( * ) * + COUNT( ALL + + 44 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6733
SELECT - COUNT ( * ) * + COUNT ( ALL + + 44 ) AS col0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6734
SELECT ALL 29 DIV + 60 * + 26 col1
----
0

skipif mysql # not compatible
query I rowsort label-6734
SELECT ALL 29 / + 60 * + 26 col1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6735
SELECT - COALESCE ( 35, 92, + SUM( - 75 ), - 75 DIV 50 )
----
-35

skipif mysql # not compatible
query I rowsort label-6735
SELECT - COALESCE ( 35, 92, + SUM ( - 75 ), - 75 / 50 )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6736
SELECT 93 AS col2, - 11 DIV + + COUNT( * )
----
93
-11

skipif mysql # not compatible
query II rowsort label-6736
SELECT 93 AS col2, - 11 / + + COUNT ( * )
----
93
-11

query I rowsort
SELECT + 50 * - - 98
----
4900

query I rowsort
SELECT ALL 20 * + + 27
----
540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6739
SELECT - COUNT( + 37 ) - + + 25 DIV 56
----
-1

skipif mysql # not compatible
query I rowsort label-6739
SELECT - COUNT ( + 37 ) - + + 25 / 56
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT ALL 47 - - + ( COUNT( * ) )
----
48

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL 47 - - + ( COUNT ( * ) )
----
48

query I rowsort
SELECT - + 91 * 49 * + 30 col2
----
-133770

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL - + 37 - COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - + 37 - COUNT ( * )
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT - + COUNT( * ) + - 18 * + 82
----
-1477

skipif mysql # not compatible
query I rowsort label-6743
SELECT - + COUNT ( * ) + - 18 * + 82
----
-1477

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT - + 42 DIV + 7
----
-6

skipif mysql # not compatible
query I rowsort label-6744
SELECT - + 42 / + 7
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6745
SELECT ALL + + COUNT( * ) DIV - 31 * 87 * - COALESCE ( + 11, 48, + MAX( + 62 ) * 66 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL + + COUNT ( * ) / - 31 * 87 * - COALESCE ( + 11, 48, + MAX ( + 62 ) * 66 ) AS col2
----
0

query I rowsort
SELECT - - 72 + - 81 * - 59 + + 61 AS col1
----
4912

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT 67 * ( + ( - + COUNT( * ) ) ) - + COUNT( * )
----
-68

skipif mysql # not compatible
query I rowsort label-6747
SELECT 67 * ( + ( - + COUNT ( * ) ) ) - + COUNT ( * )
----
-68

query I rowsort
SELECT ALL + - COALESCE ( - 84, - 85 )
----
84

query I rowsort
SELECT COALESCE ( - 9, ( 77 ) + - 34 - 1 ) * - 58 + 29 col2
----
551

query II rowsort
SELECT DISTINCT + + 72 AS col1, 78
----
72
78

onlyif mysql # aggregate syntax: 
query II rowsort label-6751
SELECT ALL + COUNT( * ) AS col0, + 16 * 28 + - 15
----
1
433

skipif mysql # not compatible
query II rowsort label-6751
SELECT ALL + COUNT ( * ) AS col0, + 16 * 28 + - 15
----
1
433

query I rowsort
SELECT + 19 * 71
----
1349

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT - 31 + + COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-6753
SELECT - 31 + + COUNT ( * ) AS col0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6754
SELECT + 9, + COUNT( * ) * - 69 + - 47 DIV 3 AS col2
----
9
-84

skipif mysql # not compatible
query II rowsort label-6754
SELECT + 9, + COUNT ( * ) * - 69 + - 47 / 3 AS col2
----
9
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6755
SELECT 67 * - CAST( + COUNT( * ) AS SIGNED ) * - CASE - + 72 WHEN 35 + 19 THEN NULL WHEN + 44 / - 37 + + CASE 52 WHEN COUNT( * ) / - 9 THEN NULL WHEN 6 + 7 * 66 THEN + 71 / 80 ELSE + 58 END THEN NULL WHEN 61 + - 40 THEN 69 END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT 67 * - CAST ( + COUNT ( * ) AS INTEGER ) * - CASE - + 72 WHEN 35 + 19 THEN NULL WHEN + 44 / - 37 + + CASE 52 WHEN COUNT ( * ) / - 9 THEN NULL WHEN 6 + 7 * 66 THEN + 71 / 80 ELSE + 58 END THEN NULL WHEN 61 + - 40 THEN 69 END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6756
SELECT CASE - 93 WHEN + SUM( DISTINCT - - CAST( + 79 AS DECIMAL ) ) THEN NULL ELSE - 28 END AS col2
----
-28

skipif mysql # not compatible
query I rowsort label-6756
SELECT CASE - 93 WHEN + SUM ( DISTINCT - - CAST ( + 79 AS REAL ) ) THEN NULL ELSE - 28 END AS col2
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6757
SELECT + CASE 82 WHEN 64 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - + 14 + 84 THEN NULL WHEN 29 + - 75 THEN 15 END * - 79 + 42 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6757
SELECT + CASE 82 WHEN 64 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - + 14 + 84 THEN NULL WHEN 29 + - 75 THEN 15 END * - 79 + 42 AS col0
----
NULL

query I rowsort
SELECT ALL + 14 * 50 + - - 67 * 34 + - - 67
----
3045

query I rowsort
SELECT ALL + 53 * 2 + + + 0
----
106

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6760
SELECT DISTINCT - CASE + + 5 WHEN AVG ( ALL - - ( + CAST( NULL AS SIGNED ) ) ) * - ( 9 ) * + 30 - - NULLIF ( 91, 99 * 32 ) * ( - 32 ) + - ( COUNT( * ) ) THEN NULL WHEN 97 / 10 THEN + 83 WHEN - SUM( - 30 ) THEN NULL END * - 69 + - 87 * + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT - CASE + + 5 WHEN AVG ( ALL - - ( + CAST ( NULL AS INTEGER ) ) ) * - ( 9 ) * + 30 - - NULLIF ( 91, 99 * 32 ) * ( - 32 ) + - ( COUNT ( * ) ) THEN NULL WHEN 97 / 10 THEN + 83 WHEN - SUM ( - 30 ) THEN NULL END * - 69 + - 87 * + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6761
SELECT ALL 44 * MIN( - + 18 ) + - + CAST( + - 28 AS SIGNED ) AS col1
----
-764

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL 44 * MIN ( - + 18 ) + - + CAST ( + - 28 AS INTEGER ) AS col1
----
-764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT + SUM( ALL 8 ) + COUNT( * ) + - COUNT( * ) * + + 79 / + + CAST( NULL AS SIGNED ) * 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT + SUM ( ALL 8 ) + COUNT ( * ) + - COUNT ( * ) * + + 79 / + + CAST ( NULL AS INTEGER ) * 47 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT ALL + 37 * 56 + 62 + + + 98 * - COUNT( * ) + + NULLIF ( - 20, CASE 65 WHEN ( 10 ) / 95 - 24 THEN + 94 + - 92 ELSE + 46 END ) * 28
----
1476

skipif mysql # not compatible
query I rowsort label-6763
SELECT ALL + 37 * 56 + 62 + + + 98 * - COUNT ( * ) + + NULLIF ( - 20, CASE 65 WHEN ( 10 ) / 95 - 24 THEN + 94 + - 92 ELSE + 46 END ) * 28
----
1476

query I rowsort
SELECT + 30 * ( + - 25 )
----
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT 31 * + - ( - 56 ) + - - 38 + + COUNT( * ) * 86 AS col1
----
1860

skipif mysql # not compatible
query I rowsort label-6765
SELECT 31 * + - ( - 56 ) + - - 38 + + COUNT ( * ) * 86 AS col1
----
1860

query II rowsort
SELECT DISTINCT 36, + 10 AS col0
----
36
10

query I rowsort
SELECT + 6 * + + NULLIF ( 88, 73 ) - 97
----
431

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT MIN( DISTINCT + 40 ) col1
----
40

skipif mysql # not compatible
query I rowsort label-6768
SELECT MIN ( DISTINCT + 40 ) col1
----
40

query I rowsort
SELECT ALL 88 * + 39
----
3432

query I rowsort
SELECT + 94 + + 14
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + COUNT( * ) - + 74 + + + 31 * - 94
----
-2987

skipif mysql # not compatible
query I rowsort label-6771
SELECT + COUNT ( * ) - + 74 + + + 31 * - 94
----
-2987

onlyif mysql # aggregate syntax: 
query I rowsort label-6772
SELECT ALL 82 - - + 96 + + MIN( + 25 ) * + 28 + - + 96 * - 50
----
5678

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL 82 - - + 96 + + MIN ( + 25 ) * + 28 + - + 96 * - 50
----
5678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6773
SELECT ALL 52 * CAST( - + NULLIF ( 79, - NULLIF ( - 29, + 22 ) + ( SUM( - 95 ) ) ) AS SIGNED )
----
-4108

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL 52 * CAST ( - + NULLIF ( 79, - NULLIF ( - 29, + 22 ) + ( SUM ( - 95 ) ) ) AS INTEGER )
----
-4108

query I rowsort
SELECT DISTINCT - 64 - + 18
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6775
SELECT + + COUNT( * ) + + 43 * - - 18 AS col0
----
775

skipif mysql # not compatible
query I rowsort label-6775
SELECT + + COUNT ( * ) + + 43 * - - 18 AS col0
----
775

query I rowsort
SELECT + - 62 + - - 38
----
-24

query I rowsort
SELECT + + 51 * - 88 AS col2
----
-4488

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT + + COUNT( * ) * + - 66 col1
----
-66

skipif mysql # not compatible
query I rowsort label-6778
SELECT + + COUNT ( * ) * + - 66 col1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6779
SELECT - 98 + NULLIF ( - + 34, - 80 ) + + + 48 * 16 + + CASE - CAST( NULL AS DECIMAL ) + MAX( ALL 32 ) WHEN 21 * 11 THEN NULL WHEN 1 / 69 THEN NULL WHEN 23 THEN NULL ELSE - 8 END * ( + 87 )
----
-60

skipif mysql # not compatible
query I rowsort label-6779
SELECT - 98 + NULLIF ( - + 34, - 80 ) + + + 48 * 16 + + CASE - CAST ( NULL AS REAL ) + MAX ( ALL 32 ) WHEN 21 * 11 THEN NULL WHEN 1 / 69 THEN NULL WHEN 23 THEN NULL ELSE - 8 END * ( + 87 )
----
-60

query I rowsort
SELECT - 11 + - + 93
----
-104

query I rowsort
SELECT + 50 * + 2 * + 11
----
1100

onlyif mysql # DIV for integer division: 
query I rowsort label-6782
SELECT ALL COALESCE ( ( - + ( + 80 ) ), 88 DIV - 72 * 8, 45, 86 + 80 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL COALESCE ( ( - + ( + 80 ) ), 88 / - 72 * 8, 45, 86 + 80 ) AS col1
----
-80

query I rowsort
SELECT - + 70 AS col1
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT ALL 38 * MIN( 90 ) AS col0
----
3420

skipif mysql # not compatible
query I rowsort label-6784
SELECT ALL 38 * MIN ( 90 ) AS col0
----
3420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6785
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - 4
----
NULL
-4

skipif mysql # not compatible
query II rowsort label-6785
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - 4
----
NULL
-4

query I rowsort
SELECT ALL + 55 * 35 * - 9 * - - 71
----
-1230075

query I rowsort
SELECT DISTINCT 65 * + - 18 * + 28 AS col1
----
-32760

query I rowsort
SELECT + 5 * - 48 AS col0
----
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-6789
SELECT + 14 DIV - 87 + 8 AS col1
----
8

skipif mysql # not compatible
query I rowsort label-6789
SELECT + 14 / - 87 + 8 AS col1
----
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6790
SELECT 58 / - 17 * CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6790
SELECT 58 / - 17 * CAST ( NULL AS REAL ) + COUNT ( * ) AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6791
SELECT ( + CAST( + COUNT( * ) AS SIGNED ) ) - - 81 DIV - - 67 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6791
SELECT ( + CAST ( + COUNT ( * ) AS INTEGER ) ) - - 81 / - - 67 AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT DISTINCT + 62 + - MIN( + 20 ) - - 31 col0
----
73

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT + 62 + - MIN ( + 20 ) - - 31 col0
----
73

query I rowsort
SELECT ALL + 44 + + 16
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL - SUM( DISTINCT + - ( + 78 ) )
----
78

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL - SUM ( DISTINCT + - ( + 78 ) )
----
78

query I rowsort
SELECT DISTINCT - 17 + + 32 + 76 + 55 AS col0
----
146

query I rowsort
SELECT DISTINCT + ( - 60 ) + - - ( 70 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT COUNT( * ) * + 12 + - 96 AS col1
----
-84

skipif mysql # not compatible
query I rowsort label-6797
SELECT COUNT ( * ) * + 12 + - 96 AS col1
----
-84

query I rowsort
SELECT ALL + 45 * - 87 * + 66
----
-258390

query I rowsort
SELECT 34 * 78 * - - 35 AS col1
----
92820

query I rowsort
SELECT DISTINCT + 27 * 13
----
351

query II rowsort
SELECT 79 + 49 AS col2, 91 col0
----
128
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6802
SELECT + 39 * - COUNT( * ) + 57 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-6802
SELECT + 39 * - COUNT ( * ) + 57 AS col1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL - SUM( ALL 22 )
----
-22

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL - SUM ( ALL 22 )
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT CASE 28 WHEN + - 35 THEN - COALESCE ( + 87, 89 ) * 65 * 90 + + COALESCE ( - 22, - MIN( ALL NULLIF ( 60, + 25 ) ) * 15 ) ELSE NULL END / - 20
----
NULL

skipif mysql # not compatible
query I rowsort label-6804
SELECT CASE 28 WHEN + - 35 THEN - COALESCE ( + 87, 89 ) * 65 * 90 + + COALESCE ( - 22, - MIN ( ALL NULLIF ( 60, + 25 ) ) * 15 ) ELSE NULL END / - 20
----
NULL

query I rowsort
SELECT DISTINCT 93 * - - 39
----
3627

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6806
SELECT DISTINCT - + 82 DIV SUM( - 19 ) AS col0
----
4

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - + 82 / SUM ( - 19 ) AS col0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6807
SELECT ( + ( - - NULLIF ( - 9, + 89 + CAST( NULL AS SIGNED ) * + - 98 * + COUNT( * ) ) ) ) * ( 22 + 50 )
----
-648

skipif mysql # not compatible
query I rowsort label-6807
SELECT ( + ( - - NULLIF ( - 9, + 89 + CAST ( NULL AS INTEGER ) * + - 98 * + COUNT ( * ) ) ) ) * ( 22 + 50 )
----
-648

onlyif mysql # DIV for integer division: 
query I rowsort label-6808
SELECT 13 DIV + 94
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT 13 / + 94
----
0

query I rowsort
SELECT - 12 - + 99 col2
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT - - 40 * + COUNT( * ) AS col2
----
40

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT - - 40 * + COUNT ( * ) AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6811
SELECT COUNT( + 66 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6811
SELECT COUNT ( + 66 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL - NULLIF ( - - COUNT( * ), + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL - NULLIF ( - - COUNT ( * ), + COUNT ( * ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6813
SELECT ALL + 95 + + - 32, CASE - 34 WHEN + + CAST( NULL AS SIGNED ) + - 30 THEN - 85 WHEN 5 * + 77 THEN NULL WHEN 49 THEN NULL ELSE - 85 * 4 END * + CAST( - 18 * 60 + - ( CASE 9 WHEN + 46 THEN NULL WHEN + 50 THEN COUNT( DISTINCT + CAST( 56 AS SIGNED ) ) ELSE NULL END ) AS DECIMAL ) + 25 AS col2
----
63
NULL

skipif mysql # not compatible
query II rowsort label-6813
SELECT ALL + 95 + + - 32, CASE - 34 WHEN + + CAST ( NULL AS INTEGER ) + - 30 THEN - 85 WHEN 5 * + 77 THEN NULL WHEN 49 THEN NULL ELSE - 85 * 4 END * + CAST ( - 18 * 60 + - ( CASE 9 WHEN + 46 THEN NULL WHEN + 50 THEN COUNT ( DISTINCT + CAST ( 56 AS INTEGER ) ) ELSE NULL END ) AS REAL ) + 25 AS col2
----
63
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6814
SELECT CAST( NULL AS DECIMAL ) - - 67 + + - 65 * + + ( ( + ( - ( COUNT( * ) ) ) ) ) * 94 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6814
SELECT CAST ( NULL AS REAL ) - - 67 + + - 65 * + + ( ( + ( - ( COUNT ( * ) ) ) ) ) * 94 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6815
SELECT 61 * + 15 AS col0, MAX( - + 31 ) + + + 84
----
915
53

skipif mysql # not compatible
query II rowsort label-6815
SELECT 61 * + 15 AS col0, MAX ( - + 31 ) + + + 84
----
915
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT DISTINCT 54 + ( + 77 ) + - 5 * + 75 + - COUNT( * )
----
-245

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT 54 + ( + 77 ) + - 5 * + 75 + - COUNT ( * )
----
-245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6817
SELECT - NULLIF ( MAX( - 88 ), NULLIF ( - 6, 42 ) ) + - + 35 DIV MAX( 89 )
----
88

skipif mysql # not compatible
query I rowsort label-6817
SELECT - NULLIF ( MAX ( - 88 ), NULLIF ( - 6, 42 ) ) + - + 35 / MAX ( 89 )
----
88

query I rowsort
SELECT ALL 72 + ( - 5 ) AS col0
----
67

query I rowsort
SELECT ALL 49 + - NULLIF ( + 13, - 45 )
----
36

query I rowsort
SELECT DISTINCT 84 + - + 85
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT SUM( DISTINCT + + 4 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-6821
SELECT SUM ( DISTINCT + + 4 ) AS col2
----
4

query II rowsort
SELECT DISTINCT - 95 AS col2, - 20
----
-95
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT ( + - COALESCE ( - 44, + ( + + 95 ) ) ) + 73 + 89 - + + COALESCE ( - 39, 21 + 0, 1 ) DIV 48
----
206

skipif mysql # not compatible
query I rowsort label-6823
SELECT ( + - COALESCE ( - 44, + ( + + 95 ) ) ) + 73 + 89 - + + COALESCE ( - 39, 21 + 0, 1 ) / 48
----
206

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT 47 DIV + - 61
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT 47 / + - 61
----
0

query I rowsort
SELECT 82 * - 69
----
-5658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT ALL - 68 - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL - 68 - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT ALL - COALESCE ( - + 55, + 87, - + COUNT( * ) ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL - COALESCE ( - + 55, + 87, - + COUNT ( * ) ) AS col0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL - SUM( + 13 ) AS col0
----
-13

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL - SUM ( + 13 ) AS col0
----
-13

query II rowsort
SELECT 9, 71 AS col2
----
9
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT - NULLIF ( MIN( DISTINCT + + 97 ), + + 13 / + + 61 + - 66 + - 94 + + 95 + COUNT( * ) * + 18 + 70 * - SUM( + 24 ) ) AS col1
----
-97

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - NULLIF ( MIN ( DISTINCT + + 97 ), + + 13 / + + 61 + - 66 + - 94 + + 95 + COUNT ( * ) * + 18 + 70 * - SUM ( + 24 ) ) AS col1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6831
SELECT ALL 70 - - 83 + + 43 + + + CAST( - COUNT( * ) AS SIGNED ) * + 98 + 84 AS col2
----
182

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL 70 - - 83 + + 43 + + + CAST ( - COUNT ( * ) AS INTEGER ) * + 98 + 84 AS col2
----
182

query I rowsort
SELECT ALL - NULLIF ( 70, - 62 * + 20 + - + 68 ) AS col1
----
-70

query I rowsort
SELECT 88 + 78 AS col0
----
166

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - 96 * - ( - - 70 ) * - COUNT( * ) AS col0
----
-6720

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - 96 * - ( - - 70 ) * - COUNT ( * ) AS col0
----
-6720

query I rowsort
SELECT 38 + 60 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT - CASE COUNT( * ) WHEN 51 * - - COUNT( * ) + - COALESCE ( - + CASE + COUNT( * ) WHEN + 70 THEN NULL ELSE - ( - 54 ) END, + 15, 45 * 33 ) / - 52 THEN + AVG ( ALL + 90 ) WHEN 66 - - 62 THEN NULL END * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6836
SELECT - CASE COUNT ( * ) WHEN 51 * - - COUNT ( * ) + - COALESCE ( - + CASE + COUNT ( * ) WHEN + 70 THEN NULL ELSE - ( - 54 ) END, + 15, 45 * 33 ) / - 52 THEN + AVG ( ALL + 90 ) WHEN 66 - - 62 THEN NULL END * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT 97 * - CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT 97 * - CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6838
SELECT ALL - 40 * - 41 * - + 2, - ( COUNT( * ) ) * MAX( - 80 ) DIV + 55 AS col1
----
-3280
1

skipif mysql # not compatible
query II rowsort label-6838
SELECT ALL - 40 * - 41 * - + 2, - ( COUNT ( * ) ) * MAX ( - 80 ) / + 55 AS col1
----
-3280
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6839
SELECT 29 * - 18 / + 68 * 73 * - NULLIF ( + COUNT( * ), + - 68 * 19 + 93 ) + CAST( NULL AS DECIMAL ) - 9 * 58
----
NULL

skipif mysql # not compatible
query I rowsort label-6839
SELECT 29 * - 18 / + 68 * 73 * - NULLIF ( + COUNT ( * ), + - 68 * 19 + 93 ) + CAST ( NULL AS REAL ) - 9 * 58
----
NULL

query I rowsort
SELECT + 10 + - 17
----
-7

query I rowsort
SELECT ALL - ( + + 97 ) AS col0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT ALL - 79 * 85 + SUM( DISTINCT + 51 ) * - 64 + - MIN( - 57 ) AS col1
----
-9922

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL - 79 * 85 + SUM ( DISTINCT + 51 ) * - 64 + - MIN ( - 57 ) AS col1
----
-9922

query I rowsort
SELECT NULLIF ( + + 29, - 70 ) + + + 44 AS col1
----
73

query II rowsort
SELECT 65 AS col0, + 55
----
65
55

query I rowsort
SELECT - 46 + 80
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT ALL + COUNT( * ) + - ( - + 60 )
----
61

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + COUNT ( * ) + - ( - + 60 )
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - - MIN( ALL + - 65 ) + - - 85 + - - 13 + - 27 * - + 9
----
276

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - - MIN ( ALL + - 65 ) + - - 85 + - - 13 + - 27 * - + 9
----
276

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6848
SELECT - - 42 + - CAST( NULL AS SIGNED ) + 32 AS col2, COUNT( * )
----
NULL
1

skipif mysql # not compatible
query II rowsort label-6848
SELECT - - 42 + - CAST ( NULL AS INTEGER ) + 32 AS col2, COUNT ( * )
----
NULL
1

query II rowsort
SELECT - - 83 * + 28 + 15 AS col0, + 71 * - 68 * + 84
----
2339
-405552

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT + - 78 + - NULLIF ( + 96, 48 + - 44 + + 21 - - MAX( ALL 56 ) * - MAX( 40 ) ) + - 21 AS col1
----
-195

skipif mysql # not compatible
query I rowsort label-6850
SELECT + - 78 + - NULLIF ( + 96, 48 + - 44 + + 21 - - MAX ( ALL 56 ) * - MAX ( 40 ) ) + - 21 AS col1
----
-195

query I rowsort
SELECT ALL - 72 * + + 8
----
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT MAX( ALL 3 ) AS col1
----
3

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT MAX ( ALL 3 ) AS col1
----
3

query I rowsort
SELECT DISTINCT - 45 + + 27
----
-18

query I rowsort
SELECT ALL 31 + - 62
----
-31

query I rowsort
SELECT + 37 * - + 3 AS col0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT ALL - COUNT( * ) * - 33 AS col1
----
33

skipif mysql # not compatible
query I rowsort label-6856
SELECT ALL - COUNT ( * ) * - 33 AS col1
----
33

query I rowsort
SELECT + 54 + + + ( + - 14 )
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6858
SELECT + COUNT( * ) + 78
----
79

skipif mysql # not compatible
query I rowsort label-6858
SELECT + COUNT ( * ) + 78
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL 26 * + 68 - + CAST( NULL AS SIGNED ) * - 36 * - + 11
----
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL 26 * + 68 - + CAST ( NULL AS INTEGER ) * - 36 * - + 11
----
NULL

query I rowsort
SELECT - 1 * - + 33 AS col0
----
33

query II rowsort
SELECT + ( 49 ), - 63 AS col2
----
49
-63

query II rowsort
SELECT CASE + 23 WHEN - - 42 THEN + + 72 END, 53 AS col2
----
NULL
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6863
SELECT + 94 DIV - - 68 + + COALESCE ( - ( COUNT( * ) ), + - 23 * CAST( + 5 AS SIGNED ) * + - 91 + 22 ) * + 53
----
-52

skipif mysql # not compatible
query I rowsort label-6863
SELECT + 94 / - - 68 + + COALESCE ( - ( COUNT ( * ) ), + - 23 * CAST ( + 5 AS INTEGER ) * + - 91 + 22 ) * + 53
----
-52

query I rowsort
SELECT ALL 65 * + - ( + 36 )
----
-2340

onlyif mysql # DIV for integer division: 
query I rowsort label-6865
SELECT DISTINCT 94 DIV - 16
----
-5

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT 94 / - 16
----
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6866
SELECT + COUNT( * ) DIV ( ( - - 38 ) ), 33 col0
----
0
33

skipif mysql # not compatible
query II rowsort label-6866
SELECT + COUNT ( * ) / ( ( - - 38 ) ), 33 col0
----
0
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6867
SELECT ALL 29 * - - 95 AS col1, + CAST( - ( + COUNT( * ) ) AS SIGNED )
----
2755
-1

skipif mysql # not compatible
query II rowsort label-6867
SELECT ALL 29 * - - 95 AS col1, + CAST ( - ( + COUNT ( * ) ) AS INTEGER )
----
2755
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6868
SELECT - 93 DIV - + 25 col1, - 29 AS col0
----
3
-29

skipif mysql # not compatible
query II rowsort label-6868
SELECT - 93 / - + 25 col1, - 29 AS col0
----
3
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - 11 + + COUNT( DISTINCT - 72 ) * - - 62 + 82 AS col1
----
133

skipif mysql # not compatible
query I rowsort label-6869
SELECT - 11 + + COUNT ( DISTINCT - 72 ) * - - 62 + 82 AS col1
----
133

query I rowsort
SELECT ALL + + 24 AS col1
----
24

query I rowsort
SELECT 83 * - 52 + - 18 * - - 67 col2
----
-5522

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL + - 15 DIV - 50 col1
----
0

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + - 15 / - 50 col1
----
0

query I rowsort
SELECT NULLIF ( - + 19, + - 51 ) col1
----
-19

query I rowsort
SELECT DISTINCT 86 / + - 73 * + CASE + 52 WHEN + 5 THEN - CASE 2 WHEN + - 90 - + 99 THEN 21 WHEN 92 THEN - 31 + 95 ELSE NULL END END * + 83
----
NULL

query II rowsort
SELECT ALL - - 3 * - ( - 96 ) + 69 AS col0, - 32
----
357
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT DISTINCT - + COUNT( * ) * 25 - - 86 + - - 36 - - COUNT( - 6 )
----
98

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT - + COUNT ( * ) * 25 - - 86 + - - 36 - - COUNT ( - 6 )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT - 1 + - 96 + + MAX( DISTINCT 13 )
----
-84

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - 1 + - 96 + + MAX ( DISTINCT 13 )
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-6878
SELECT - COALESCE ( + 9, - 37, 34 + + 78 ) AS col0, + COUNT( * )
----
-9
1

skipif mysql # not compatible
query II rowsort label-6878
SELECT - COALESCE ( + 9, - 37, 34 + + 78 ) AS col0, + COUNT ( * )
----
-9
1

query I rowsort
SELECT DISTINCT + - 73 + - + 60 col1
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6880
SELECT ALL - + 10 + - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6880
SELECT ALL - + 10 + - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6881
SELECT + + 62 - + NULLIF ( + 89, 30 ) + - 38 - + 40 DIV - 73, + 80 DIV + 34 AS col1
----
-65
2

skipif mysql # not compatible
query II rowsort label-6881
SELECT + + 62 - + NULLIF ( + 89, 30 ) + - 38 - + 40 / - 73, + 80 / + 34 AS col1
----
-65
2

query I rowsort
SELECT ALL - + 35 * + - 5 AS col1
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT - + COUNT( * ) * + 59 * 99 + + + CASE - 15 WHEN 28 THEN - MIN( 94 ) END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6883
SELECT - + COUNT ( * ) * + 59 * 99 + + + CASE - 15 WHEN 28 THEN - MIN ( 94 ) END AS col1
----
NULL

query I rowsort
SELECT ( + ( + + 90 ) ) AS col1
----
90

query I rowsort
SELECT DISTINCT - 11 col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT DISTINCT - + 68 + + COUNT( * )
----
-67

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT - + 68 + + COUNT ( * )
----
-67

query I rowsort
SELECT - 60 - COALESCE ( + 88, - + 69 * - 74, + 1 * 36 ) AS col0
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-6888
SELECT - MIN( ALL - 87 )
----
87

skipif mysql # not compatible
query I rowsort label-6888
SELECT - MIN ( ALL - 87 )
----
87

query I rowsort
SELECT DISTINCT ( + 68 ) AS col0
----
68

query I rowsort
SELECT ALL ( 99 )
----
99

query I rowsort
SELECT ALL + 86 - + + 90 + + 68 - 0
----
64

query I rowsort
SELECT - 1 + 24 AS col1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6893
SELECT + NULLIF ( + ( + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ), 46 + - SUM( ALL + + 98 ) ) * + 68 AS col2, 49 * 46 + + 53 AS col0
----
NULL
2307

skipif mysql # not compatible
query II rowsort label-6893
SELECT + NULLIF ( + ( + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ), 46 + - SUM ( ALL + + 98 ) ) * + 68 AS col2, 49 * 46 + + 53 AS col0
----
NULL
2307

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6894
SELECT - MAX( ALL - CAST( + 84 AS SIGNED ) ) + + 47
----
131

skipif mysql # not compatible
query I rowsort label-6894
SELECT - MAX ( ALL - CAST ( + 84 AS INTEGER ) ) + + 47
----
131

query I rowsort
SELECT DISTINCT + 68 * - + 81 AS col2
----
-5508

query I rowsort
SELECT ALL - 14 * CASE 85 WHEN - 1 * - + 80 + + 60 + + ( - + 81 ) + + 11 + - 42 THEN NULL WHEN NULLIF ( ( - ( 20 ) ), 30 + 7 ) THEN 75 * 77 - + 23 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6897
SELECT CAST( + - 3 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-6897
SELECT CAST ( + - 3 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT + 27 * - - CASE - + 24 WHEN 0 THEN - COUNT( * ) * 87 * 57 END + MIN( DISTINCT 61 ) * + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-6898
SELECT + 27 * - - CASE - + 24 WHEN 0 THEN - COUNT ( * ) * 87 * 57 END + MIN ( DISTINCT 61 ) * + 7
----
NULL

query I rowsort
SELECT DISTINCT - 96 * - 80
----
7680

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT 23 DIV - COUNT( * ) + 93 AS col0
----
70

skipif mysql # not compatible
query I rowsort label-6900
SELECT 23 / - COUNT ( * ) + 93 AS col0
----
70

query II rowsort
SELECT - 11 * + + 91 * + + 60 AS col2, COALESCE ( 89, + 35 * 33 )
----
-60060
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6902
SELECT + SUM( DISTINCT + - 50 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6902
SELECT + SUM ( DISTINCT + - 50 ) AS col0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT CAST( 16 AS SIGNED ) col1
----
16

skipif mysql # not compatible
query I rowsort label-6903
SELECT CAST ( 16 AS INTEGER ) col1
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6904
SELECT - CAST( NULL AS SIGNED ) + + + 4
----
NULL

skipif mysql # not compatible
query I rowsort label-6904
SELECT - CAST ( NULL AS INTEGER ) + + + 4
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT CAST( + - 1 AS SIGNED ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-6905
SELECT CAST ( + - 1 AS INTEGER ) AS col0
----
-1

query I rowsort
SELECT + 87 * - 48 AS col2
----
-4176

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6907
SELECT DISTINCT - 19 DIV - + 75 + + 64 - - COUNT( * )
----
65

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT - 19 / - + 75 + + 64 - - COUNT ( * )
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT ALL + 83 * - 94 + - 1 AS col0, COUNT( * ) + 96 AS col2
----
-7803
97

skipif mysql # not compatible
query II rowsort label-6908
SELECT ALL + 83 * - 94 + - 1 AS col0, COUNT ( * ) + 96 AS col2
----
-7803
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6909
SELECT - 42 * 50 * COUNT( * ) * - 33 + 51 + - - 23 + 2 * - + CAST( NULL AS SIGNED ) * + COUNT( * ) + + ( 67 ) + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-6909
SELECT - 42 * 50 * COUNT ( * ) * - 33 + 51 + - - 23 + 2 * - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + ( 67 ) + + 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6910
SELECT DISTINCT + CASE - COALESCE ( CAST( NULL AS SIGNED ), - MIN( + 34 ) - - + 60 + - 22 - + 30 ) WHEN - 44 THEN NULL ELSE + 72 END
----
72

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + CASE - COALESCE ( CAST ( NULL AS INTEGER ), - MIN ( + 34 ) - - + 60 + - 22 - + 30 ) WHEN - 44 THEN NULL ELSE + 72 END
----
72

query I rowsort
SELECT ALL 75 + + 16 * - - 47 * + - 3 * + 82 AS col2
----
-184917

query I rowsort
SELECT + 15 + + 8 AS col1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT - COUNT( * ) * + 21 AS col1
----
-21

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT - COUNT ( * ) * + 21 AS col1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT MAX( + - 94 ) + NULLIF ( + NULLIF ( + 96, - ( - COUNT( * ) ) ), 46 ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT MAX ( + - 94 ) + NULLIF ( + NULLIF ( + 96, - ( - COUNT ( * ) ) ), 46 ) AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT ALL + CAST( - 26 AS SIGNED ) + - - 32 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-6915
SELECT ALL + CAST ( - 26 AS INTEGER ) + - - 32 AS col1
----
6

query I rowsort
SELECT + NULLIF ( + 98, - 62 ) AS col1
----
98

query I rowsort
SELECT ALL - 97 + 82 + NULLIF ( + 79, + 68 ) * - 99 * - ( + 64 ) AS col2
----
500529

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT + 81 + MAX( DISTINCT - ( 78 ) ) * + 1 + + - 47 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-6918
SELECT + 81 + MAX ( DISTINCT - ( 78 ) ) * + 1 + + - 47 AS col2
----
-44

query II rowsort
SELECT DISTINCT 59 AS col1, 39 AS col1
----
59
39

query II rowsort
SELECT 16 + + + 10 + - - 47, - 22 AS col1
----
73
-22

query I rowsort
SELECT - ( 47 ) + - + 29 + + 97 AS col1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT ALL - ( - - 89 ) - COUNT( + 57 )
----
-90

skipif mysql # not compatible
query I rowsort label-6922
SELECT ALL - ( - - 89 ) - COUNT ( + 57 )
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6923
SELECT + 31 + 74 * - 2, + COUNT( * ) * + COUNT( ALL - 56 ) + + + 88 AS col1
----
-117
89

skipif mysql # not compatible
query II rowsort label-6923
SELECT + 31 + 74 * - 2, + COUNT ( * ) * + COUNT ( ALL - 56 ) + + + 88 AS col1
----
-117
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL COALESCE ( + + 70, - - 43 ) / - CASE + 22 WHEN 82 * ( + - ( - 81 ) ) THEN - ( + CASE 59 WHEN - ( - 27 ) THEN 54 WHEN 37 / 87 THEN 14 / - CASE - 92 WHEN 12 * + 34 - + 64 THEN + 41 - 30 ELSE 57 * - COUNT( * ) END END ) * - 53 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-6924
SELECT ALL COALESCE ( + + 70, - - 43 ) / - CASE + 22 WHEN 82 * ( + - ( - 81 ) ) THEN - ( + CASE 59 WHEN - ( - 27 ) THEN 54 WHEN 37 / 87 THEN 14 / - CASE - 92 WHEN 12 * + 34 - + 64 THEN + 41 - 30 ELSE 57 * - COUNT ( * ) END END ) * - 53 ELSE NULL END
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6925
SELECT ALL SUM( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT ALL SUM ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT + 58 + + - CAST( - CASE + 41 WHEN 13 THEN + 96 WHEN - + 30 * ( + - 43 ) * - 21 / + 6 + 0 * 2 - + 90 THEN + 50 * + 10 ELSE 4 + + 69 END AS SIGNED ) + 44 * 59 AS col2
----
2727

skipif mysql # not compatible
query I rowsort label-6926
SELECT + 58 + + - CAST ( - CASE + 41 WHEN 13 THEN + 96 WHEN - + 30 * ( + - 43 ) * - 21 / + 6 + 0 * 2 - + 90 THEN + 50 * + 10 ELSE 4 + + 69 END AS INTEGER ) + 44 * 59 AS col2
----
2727

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT ALL - 95 - - - SUM( 79 ) AS col0
----
-174

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL - 95 - - - SUM ( 79 ) AS col0
----
-174

query I rowsort
SELECT + 97 * + 12
----
1164

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6929
SELECT 66 + + + MIN( DISTINCT ( + - 94 ) ) DIV 85
----
65

skipif mysql # not compatible
query I rowsort label-6929
SELECT 66 + + + MIN ( DISTINCT ( + - 94 ) ) / 85
----
65

query II rowsort
SELECT ALL 3, 84 AS col2
----
3
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6931
SELECT DISTINCT + 99 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6931
SELECT DISTINCT + 99 * CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT 95 AS col1, + 66 AS col0
----
95
66

query I rowsort
SELECT 82 + + 29
----
111

query I rowsort
SELECT ALL + 82 * - 60
----
-4920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6935
SELECT 53 * - ( + CAST( + SUM( ALL + 58 ) AS SIGNED ) )
----
-3074

skipif mysql # not compatible
query I rowsort label-6935
SELECT 53 * - ( + CAST ( + SUM ( ALL + 58 ) AS INTEGER ) )
----
-3074

query II rowsort
SELECT - 13 AS col0, + 59 AS col1
----
-13
59

query I rowsort
SELECT DISTINCT ( - 36 ) * 76 + - - 20 AS col2
----
-2716

query II rowsort
SELECT ALL 27 AS col2, + 20 * 27 * + 71 AS col2
----
27
38340

query I rowsort
SELECT 88 + + + 88
----
176

query II rowsort
SELECT 33 AS col2, 33 AS col0
----
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT ALL - NULLIF ( - 79, - NULLIF ( 27, + - ( + + 6 ) * - 35 * - + COUNT( * ) - + - 55 ) )
----
79

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL - NULLIF ( - 79, - NULLIF ( 27, + - ( + + 6 ) * - 35 * - + COUNT ( * ) - + - 55 ) )
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6942
SELECT 62 DIV 37 AS col1
----
1

skipif mysql # not compatible
query I rowsort label-6942
SELECT 62 / 37 AS col1
----
1

query I rowsort
SELECT 72 - - + 87 * - - 73 AS col2
----
6423

onlyif mysql # aggregate syntax: 
query I rowsort label-6944
SELECT 81 - - 63 + COUNT( * ) * 80 + COALESCE ( SUM( DISTINCT 94 ), 12 ) - 14 col2
----
304

skipif mysql # not compatible
query I rowsort label-6944
SELECT 81 - - 63 + COUNT ( * ) * 80 + COALESCE ( SUM ( DISTINCT 94 ), 12 ) - 14 col2
----
304

query II rowsort
SELECT + 91, + 46 col1
----
91
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT ALL + COUNT( * ) * + 26 * + CASE 49 WHEN + + ( - - 20 ) + 17 - + - 45 THEN + - 93 - - + ( - 98 ) ELSE + 61 * + 16 END
----
25376

skipif mysql # not compatible
query I rowsort label-6946
SELECT ALL + COUNT ( * ) * + 26 * + CASE 49 WHEN + + ( - - 20 ) + 17 - + - 45 THEN + - 93 - - + ( - 98 ) ELSE + 61 * + 16 END
----
25376

onlyif mysql # DIV for integer division: 
query I rowsort label-6947
SELECT 88 DIV + 68 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6947
SELECT 88 / + 68 AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6948
SELECT - COUNT( * ) DIV + 47 + - 83
----
-83

skipif mysql # not compatible
query I rowsort label-6948
SELECT - COUNT ( * ) / + 47 + - 83
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6949
SELECT DISTINCT + COALESCE ( COUNT( + CAST( NULL AS SIGNED ) ), + 97 * 76 + + 88 ) + + 92 + + COUNT( * ) * 90
----
182

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT + COALESCE ( COUNT ( + CAST ( NULL AS INTEGER ) ), + 97 * 76 + + 88 ) + + 92 + + COUNT ( * ) * 90
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-6950
SELECT DISTINCT + 38 DIV + 72
----
0

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + 38 / + 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT ALL MIN( ALL 75 ) + ( + 52 ) - - COUNT( * ) AS col1
----
128

skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL MIN ( ALL 75 ) + ( + 52 ) - - COUNT ( * ) AS col1
----
128

onlyif mysql # aggregate syntax: 
query II rowsort label-6952
SELECT + 36, + 34 + + ( ( - - MAX( - + 55 ) ) ) AS col1
----
36
-21

skipif mysql # not compatible
query II rowsort label-6952
SELECT + 36, + 34 + + ( ( - - MAX ( - + 55 ) ) ) AS col1
----
36
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL - CASE - 67 WHEN + 85 + - + 81 THEN - + 75 ELSE - - 50 * + 49 * 31 * 22 END * - - 65 + + 23 DIV 25
----
-108608500

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - CASE - 67 WHEN + 85 + - + 81 THEN - + 75 ELSE - - 50 * + 49 * 31 * 22 END * - - 65 + + 23 / 25
----
-108608500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6954
SELECT DISTINCT + + 69 + 14 + - - 58 * + CAST( - 18 AS SIGNED ) AS col2
----
-961

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT + + 69 + 14 + - - 58 * + CAST ( - 18 AS INTEGER ) AS col2
----
-961

onlyif mysql # aggregate syntax: 
query II rowsort label-6955
SELECT ALL + COUNT( * ) + - 55 AS col0, + 14
----
-54
14

skipif mysql # not compatible
query II rowsort label-6955
SELECT ALL + COUNT ( * ) + - 55 AS col0, + 14
----
-54
14

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT + + COALESCE ( + 36, + 92 DIV + - 22 + - 14 ) AS col2
----
36

skipif mysql # not compatible
query I rowsort label-6956
SELECT + + COALESCE ( + 36, + 92 / + - 22 + - 14 ) AS col2
----
36

query I rowsort
SELECT DISTINCT + 68 + 3 * 66
----
266

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ( - + COALESCE ( - + COUNT( * ), + 14 + - 82 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-6958
SELECT ( - + COALESCE ( - + COUNT ( * ), + 14 + - 82 ) ) AS col2
----
1

query I rowsort
SELECT 28 * + 66
----
1848

query I rowsort
SELECT ALL - 60 - + 23 + + 22
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT ALL + MIN( DISTINCT + NULLIF ( - 15, - + 16 ) ) - + 33 * - 6 AS col0
----
183

skipif mysql # not compatible
query I rowsort label-6961
SELECT ALL + MIN ( DISTINCT + NULLIF ( - 15, - + 16 ) ) - + 33 * - 6 AS col0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL - CAST( - COALESCE ( + 30, + 55, + 33 ) AS SIGNED ) AS col0
----
30

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL - CAST ( - COALESCE ( + 30, + 55, + 33 ) AS INTEGER ) AS col0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-6963
SELECT DISTINCT 94 DIV - 14
----
-6

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT 94 / - 14
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT ALL COUNT( * ) * 92 + + 41
----
133

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL COUNT ( * ) * 92 + + 41
----
133

query I rowsort
SELECT 30 * - 28 AS col2
----
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT + NULLIF ( - 96, - 36 + CAST( - 76 AS SIGNED ) ) AS col2
----
-96

skipif mysql # not compatible
query I rowsort label-6966
SELECT + NULLIF ( - 96, - 36 + CAST ( - 76 AS INTEGER ) ) AS col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6967
SELECT - 95 + 41 + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-6967
SELECT - 95 + 41 + - COUNT ( * )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6968
SELECT - CAST( 82 AS SIGNED ) * + + 46 + + ( + + COUNT( * ) ) DIV 24 + + 88 * - - COUNT( * )
----
-3684

skipif mysql # not compatible
query I rowsort label-6968
SELECT - CAST ( 82 AS INTEGER ) * + + 46 + + ( + + COUNT ( * ) ) / 24 + + 88 * - - COUNT ( * )
----
-3684

onlyif mysql # DIV for integer division: 
query I rowsort label-6969
SELECT ALL - 23 DIV - + 36 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-6969
SELECT ALL - 23 / - + 36 AS col0
----
0

query II rowsort
SELECT ALL + 51 * + 96 AS col1, + 71 + + 49
----
4896
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT 47 + + SUM( DISTINCT - 76 ) AS col1
----
-29

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT 47 + + SUM ( DISTINCT - 76 ) AS col1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT 1 + ( - 38 ) - - ( - 21 ) DIV - 79 AS col2
----
-37

skipif mysql # not compatible
query I rowsort label-6972
SELECT 1 + ( - 38 ) - - ( - 21 ) / - 79 AS col2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT ( 95 ) + 40 + - 15 * + - 87 * COUNT( * ) + + 4 AS col0
----
1444

skipif mysql # not compatible
query I rowsort label-6973
SELECT ( 95 ) + 40 + - 15 * + - 87 * COUNT ( * ) + + 4 AS col0
----
1444

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6974
SELECT ALL + 51 * 97 * - ( - 68 ) DIV + COUNT( * ) AS col1, - COUNT( * ) + - 31 + - NULLIF ( - - 54, - + 89 ) DIV - 16 + ( 84 )
----
336396
55

skipif mysql # not compatible
query II rowsort label-6974
SELECT ALL + 51 * 97 * - ( - 68 ) / + COUNT ( * ) AS col1, - COUNT ( * ) + - 31 + - NULLIF ( - - 54, - + 89 ) / - 16 + ( 84 )
----
336396
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6975
SELECT SUM( ALL - 3 ) + - + 30 + + CAST( NULL AS SIGNED ) + 97 * + 67 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT SUM ( ALL - 3 ) + - + 30 + + CAST ( NULL AS INTEGER ) + 97 * + 67 AS col0
----
NULL

query I rowsort
SELECT 17 - - 82
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6977
SELECT - COALESCE ( 50, - + 34, CAST( + 20 AS SIGNED ) ) AS col1
----
-50

skipif mysql # not compatible
query I rowsort label-6977
SELECT - COALESCE ( 50, - + 34, CAST ( + 20 AS INTEGER ) ) AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6978
SELECT COALESCE ( + 25, + 39 DIV + + COUNT( * ) ) AS col1
----
25

skipif mysql # not compatible
query I rowsort label-6978
SELECT COALESCE ( + 25, + 39 / + + COUNT ( * ) ) AS col1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT ALL MIN( ALL - 90 ) * + COUNT( * ) + - + 92
----
-182

skipif mysql # not compatible
query I rowsort label-6979
SELECT ALL MIN ( ALL - 90 ) * + COUNT ( * ) + - + 92
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6980
SELECT ALL - - 96 / + + COALESCE ( - 24, + - 97 ) + - AVG ( 56 ) + CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT ALL - - 96 / + + COALESCE ( - 24, + - 97 ) + - AVG ( 56 ) + CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT - 49 + - + SUM( - 3 ) + 66 * - COUNT( * ) * - 73 * - 99 AS col2
----
-477028

skipif mysql # not compatible
query I rowsort label-6981
SELECT - 49 + - + SUM ( - 3 ) + 66 * - COUNT ( * ) * - 73 * - 99 AS col2
----
-477028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6982
SELECT - 54 * - ( - 72 ) + 19 + + 77 - - - 33 + 82 + + 21 DIV - 88 * + MIN( 66 ) * + COUNT( * ) * 71 * 84
----
-3743

skipif mysql # not compatible
query I rowsort label-6982
SELECT - 54 * - ( - 72 ) + 19 + + 77 - - - 33 + 82 + + 21 / - 88 * + MIN ( 66 ) * + COUNT ( * ) * 71 * 84
----
-3743

query I rowsort
SELECT - COALESCE ( 28, - - 10 ) * - 77 * + - 7 AS col1
----
-15092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6984
SELECT ALL - - CAST( NULL AS SIGNED ) / 20 * ( - 21 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL - - CAST ( NULL AS INTEGER ) / 20 * ( - 21 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT + CASE - COUNT( * ) WHEN - 75 + - 6 THEN NULL WHEN 37 THEN + MAX( DISTINCT - + 10 ) / - + MIN( - - 96 ) END * + 56 + - 61 * + ( - 12 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6985
SELECT + CASE - COUNT ( * ) WHEN - 75 + - 6 THEN NULL WHEN 37 THEN + MAX ( DISTINCT - + 10 ) / - + MIN ( - - 96 ) END * + 56 + - 61 * + ( - 12 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6986
SELECT - - COUNT( - 25 ) DIV + 79 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-6986
SELECT - - COUNT ( - 25 ) / + 79 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT ALL - NULLIF ( 48, MAX( - + 21 ) * + + 64 ) * + 4
----
-192

skipif mysql # not compatible
query I rowsort label-6987
SELECT ALL - NULLIF ( 48, MAX ( - + 21 ) * + + 64 ) * + 4
----
-192

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6988
SELECT CAST( NULL AS DECIMAL ) * + 42 + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT CAST ( NULL AS REAL ) * + 42 + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6989
SELECT ALL + COALESCE ( 32, + - 35, - COUNT( DISTINCT - - 38 ) ), 92 AS col1
----
32
92

skipif mysql # not compatible
query II rowsort label-6989
SELECT ALL + COALESCE ( 32, + - 35, - COUNT ( DISTINCT - - 38 ) ), 92 AS col1
----
32
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6990
SELECT DISTINCT - + ( + CAST( NULL AS SIGNED ) ) * 69 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - + ( + CAST ( NULL AS INTEGER ) ) * 69 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT ALL - - 2 * + COUNT( * ) - + 61 - - COUNT( * )
----
-58

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL - - 2 * + COUNT ( * ) - + 61 - - COUNT ( * )
----
-58

query I rowsort
SELECT DISTINCT + - 49 * - + 22 + - 69 + - + 24 col0
----
985

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6993
SELECT + COUNT( * ) * - COUNT( * ) * + CAST( NULL AS SIGNED ) + 38 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6993
SELECT + COUNT ( * ) * - COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 38 AS col2
----
NULL

query I rowsort
SELECT + - 68 * 47 * + - 26 - 58 + + - 56
----
82982

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6995
SELECT + + ( 34 ) + - - 78 + + CAST( + 48 AS SIGNED ), 48 + + + 79 AS col2
----
160
127

skipif mysql # not compatible
query II rowsort label-6995
SELECT + + ( 34 ) + - - 78 + + CAST ( + 48 AS INTEGER ), 48 + + + 79 AS col2
----
160
127

onlyif mysql # aggregate syntax: 
query II rowsort label-6996
SELECT ALL 2, - ( - 74 ) + - COUNT( * ) AS col2
----
2
73

skipif mysql # not compatible
query II rowsort label-6996
SELECT ALL 2, - ( - 74 ) + - COUNT ( * ) AS col2
----
2
73

query I rowsort
SELECT - 72 * 62 AS col1
----
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT DISTINCT COALESCE ( - + SUM( 50 ), + 43 + 10, - COUNT( * ) * + - 37 ) AS col0
----
-50

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT COALESCE ( - + SUM ( 50 ), + 43 + 10, - COUNT ( * ) * + - 37 ) AS col0
----
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-6999
SELECT ALL ( + - MAX( - - 76 ) ) AS col1, + COUNT( * ) * + - 22
----
-76
-22

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL ( + - MAX ( - - 76 ) ) AS col1, + COUNT ( * ) * + - 22
----
-76
-22

query I rowsort
SELECT + 24 + + 92 AS col0
----
116

query I rowsort
SELECT + 42 * - 70
----
-2940

query I rowsort
SELECT + ( + 94 ) + - 75 - + COALESCE ( + + 18, + + 77 )
----
1

query I rowsort
SELECT ALL 6 + + 45
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7004
SELECT ALL 24 + 4 * + CAST( NULL AS SIGNED ) + - - COUNT( 98 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL 24 + 4 * + CAST ( NULL AS INTEGER ) + - - COUNT ( 98 ) AS col0
----
NULL

query I rowsort
SELECT + 88 * - 10 col0
----
-880

query I rowsort
SELECT - ( - ( + 87 ) )
----
87

onlyif mysql # DIV for integer division: 
query II rowsort label-7007
SELECT + 6 + 40 DIV + 44 AS col2, 23 AS col2
----
6
23

skipif mysql # not compatible
query II rowsort label-7007
SELECT + 6 + 40 / + 44 AS col2, 23 AS col2
----
6
23

query II rowsort
SELECT 63 col0, 14
----
63
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7009
SELECT + COUNT( * ) DIV + - 27
----
0

skipif mysql # not compatible
query I rowsort label-7009
SELECT + COUNT ( * ) / + - 27
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7010
SELECT - COALESCE ( 89, + - 75 + + COUNT( * ) + - COUNT( * ) * + 14 ) AS col1
----
-89

skipif mysql # not compatible
query I rowsort label-7010
SELECT - COALESCE ( 89, + - 75 + + COUNT ( * ) + - COUNT ( * ) * + 14 ) AS col1
----
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7011
SELECT ALL COUNT( * ) + - 92 + - ( - CASE + NULLIF ( - 78, + + NULLIF ( + 77, 53 ) ) WHEN + - COUNT( * ) THEN - COALESCE ( + 17, 72 * - 40 ) * 57 - 55 WHEN 12 * 83 THEN NULL ELSE - 84 END ) DIV 25 * - 22
----
-25

skipif mysql # not compatible
query I rowsort label-7011
SELECT ALL COUNT ( * ) + - 92 + - ( - CASE + NULLIF ( - 78, + + NULLIF ( + 77, 53 ) ) WHEN + - COUNT ( * ) THEN - COALESCE ( + 17, 72 * - 40 ) * 57 - 55 WHEN 12 * 83 THEN NULL ELSE - 84 END ) / 25 * - 22
----
-25

query I rowsort
SELECT - ( 3 ) AS col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL SUM( + 81 )
----
81

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL SUM ( + 81 )
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT ALL 17 DIV - + 18
----
0

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL 17 / - + 18
----
0

query I rowsort
SELECT + 87 * - - 73 AS col0
----
6351

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7016
SELECT ALL + 60 DIV NULLIF ( 65, + 46 * + 8 + COUNT( * ) + + ( + 15 ) ) * + 55 + - 79 + - COUNT( * ) + 85 * + 62 * - CASE 98 WHEN 20 * - 27 THEN 85 + + CAST( NULL AS SIGNED ) ELSE 94 * 58 END AS col1
----
-28732120

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + 60 / NULLIF ( 65, + 46 * + 8 + COUNT ( * ) + + ( + 15 ) ) * + 55 + - 79 + - COUNT ( * ) + 85 * + 62 * - CASE 98 WHEN 20 * - 27 THEN 85 + + CAST ( NULL AS INTEGER ) ELSE 94 * 58 END AS col1
----
-28732120

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT + COALESCE ( - 24, COALESCE ( + - 88, - - COUNT( * ) ), + + COUNT( * ) * - - MAX( ALL - 1 ) )
----
-24

skipif mysql # not compatible
query I rowsort label-7017
SELECT + COALESCE ( - 24, COALESCE ( + - 88, - - COUNT ( * ) ), + + COUNT ( * ) * - - MAX ( ALL - 1 ) )
----
-24

query I rowsort
SELECT + - 79 * - 56
----
4424

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT + 38 - + - COUNT( * ) col2
----
39

skipif mysql # not compatible
query I rowsort label-7019
SELECT + 38 - + - COUNT ( * ) col2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT DISTINCT ( - NULLIF ( - - 74, + COUNT( * ) ) ) * + + 32 * + + 81 * + - 51 AS col0
----
9782208

skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT ( - NULLIF ( - - 74, + COUNT ( * ) ) ) * + + 32 * + + 81 * + - 51 AS col0
----
9782208

query I rowsort
SELECT - 93 * + 51 * 42 - + 41
----
-199247

query II rowsort
SELECT - + 40 * - 85 + - 70 AS col2, + 99 AS col1
----
3330
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7023
SELECT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL - 18 * + ( CAST( NULL AS SIGNED ) ) * 20
----
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL - 18 * + ( CAST ( NULL AS INTEGER ) ) * 20
----
NULL

query I rowsort
SELECT ALL + - 27 col1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT DISTINCT + CASE + 22 WHEN + 47 THEN NULL WHEN + 96 * - - COUNT( * ) THEN NULL ELSE + 75 END
----
75

skipif mysql # not compatible
query I rowsort label-7026
SELECT DISTINCT + CASE + 22 WHEN + 47 THEN NULL WHEN + 96 * - - COUNT ( * ) THEN NULL ELSE + 75 END
----
75

query I rowsort
SELECT - 1 - + + 2 + - 86
----
-89

query I rowsort
SELECT + - 77 - 87
----
-164

query I rowsort
SELECT + 54 * + 32 AS col1
----
1728

query II rowsort
SELECT ALL + + 94, - 79 * + 76 * + ( - 2 ) + - - ( 47 ) AS col2
----
94
12055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT - CAST( 54 AS SIGNED )
----
-54

skipif mysql # not compatible
query I rowsort label-7031
SELECT - CAST ( 54 AS INTEGER )
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT ALL + + 7, - COUNT( * ) AS col0
----
7
-1

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL + + 7, - COUNT ( * ) AS col0
----
7
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7033
SELECT DISTINCT - 75 DIV + 29 AS col2
----
-2

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - 75 / + 29 AS col2
----
-2

query I rowsort
SELECT ALL - + 84 * + 55 * 53 AS col1
----
-244860

query I rowsort
SELECT DISTINCT + 83 * 16 AS col0
----
1328

query I rowsort
SELECT - - 78 * NULLIF ( + 48, + + 43 * 27 + - - 69 + - - 40 )
----
3744

query II rowsort
SELECT DISTINCT + 41 * - - 92, - 33 * 0 AS col0
----
3772
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT ALL 24 * - + CAST( + 37 AS SIGNED ) + + 97 * + - ( + + MAX( ALL + + 28 ) ) - + 17 AS col0
----
-3621

skipif mysql # not compatible
query I rowsort label-7038
SELECT ALL 24 * - + CAST ( + 37 AS INTEGER ) + + 97 * + - ( + + MAX ( ALL + + 28 ) ) - + 17 AS col0
----
-3621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7039
SELECT - COALESCE ( + ( 21 ), + 3 * + CASE - COALESCE ( 5, + + 37 + + + AVG ( - - 87 ), + - 7 ) WHEN - - COUNT( * ) THEN NULL WHEN + + 24 + + - 87 * 76 THEN NULL WHEN 56 THEN NULL ELSE - CAST( - CAST( - 32 AS SIGNED ) AS SIGNED ) END ) * 5 AS col1
----
-105

skipif mysql # not compatible
query I rowsort label-7039
SELECT - COALESCE ( + ( 21 ), + 3 * + CASE - COALESCE ( 5, + + 37 + + + AVG ( - - 87 ), + - 7 ) WHEN - - COUNT ( * ) THEN NULL WHEN + + 24 + + - 87 * 76 THEN NULL WHEN 56 THEN NULL ELSE - CAST ( - CAST ( - 32 AS INTEGER ) AS INTEGER ) END ) * 5 AS col1
----
-105

query I rowsort
SELECT DISTINCT - 69 * 15
----
-1035

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT - 95 + + COUNT( * ) + + - CASE - 90 WHEN 89 THEN NULL WHEN ( + 39 ) + - 53 THEN + MIN( 71 ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-7041
SELECT - 95 + + COUNT ( * ) + + - CASE - 90 WHEN 89 THEN NULL WHEN ( + 39 ) + - 53 THEN + MIN ( 71 ) END
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT DISTINCT CAST( - 76 AS SIGNED ) AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT CAST ( - 76 AS INTEGER ) AS col2
----
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7043
SELECT DISTINCT 92 * - COUNT( * ) * - MIN( DISTINCT - + 75 ) + - - 61 + 59 + + 48 DIV - 1
----
-6828

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT 92 * - COUNT ( * ) * - MIN ( DISTINCT - + 75 ) + - - 61 + 59 + + 48 / - 1
----
-6828

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT SUM( - - ( + - 34 ) ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-7044
SELECT SUM ( - - ( + - 34 ) ) AS col2
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7045
SELECT ALL 67 * + - 34 + - 89 + CAST( NULL AS SIGNED ) * ( - CAST( NULL AS SIGNED ) ) * - + 3 * 64 * - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL 67 * + - 34 + - 89 + CAST ( NULL AS INTEGER ) * ( - CAST ( NULL AS INTEGER ) ) * - + 3 * 64 * - 54
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7046
SELECT - 65 + - COALESCE ( 4, - ( 20 ) * - COALESCE ( - CAST( NULL AS SIGNED ), 14, 99 + - 93 - - - 42 ) + - 3 DIV + 85 * 76 * 48 ) DIV 2
----
-67

skipif mysql # not compatible
query I rowsort label-7046
SELECT - 65 + - COALESCE ( 4, - ( 20 ) * - COALESCE ( - CAST ( NULL AS INTEGER ), 14, 99 + - 93 - - - 42 ) + - 3 / + 85 * 76 * 48 ) / 2
----
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7047
SELECT - ( + + MIN( ALL + - CAST( - 91 AS SIGNED ) ) )
----
-91

skipif mysql # not compatible
query I rowsort label-7047
SELECT - ( + + MIN ( ALL + - CAST ( - 91 AS INTEGER ) ) )
----
-91

query I rowsort
SELECT DISTINCT ( 53 ) AS col0
----
53

query I rowsort
SELECT DISTINCT 12 * 73 * + + 44 AS col1
----
38544

query I rowsort
SELECT ALL - 33 + + 5 AS col0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT ALL 47 * + 61 * COUNT( * ) * - 19 AS col2
----
-54473

skipif mysql # not compatible
query I rowsort label-7051
SELECT ALL 47 * + 61 * COUNT ( * ) * - 19 AS col2
----
-54473

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT ALL ( - 49 ) + - 68 * + - CAST( COUNT( DISTINCT 63 ) AS SIGNED ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL ( - 49 ) + - 68 * + - CAST ( COUNT ( DISTINCT 63 ) AS INTEGER ) AS col1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT NULLIF ( - 58, 2 ) + 79 * + - MAX( ALL + 23 ) + 64 AS col2
----
-1811

skipif mysql # not compatible
query I rowsort label-7053
SELECT NULLIF ( - 58, 2 ) + 79 * + - MAX ( ALL + 23 ) + 64 AS col2
----
-1811

query I rowsort
SELECT 26 + 10 col1
----
36

query I rowsort
SELECT 97 * + 19
----
1843

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7056
SELECT COUNT( * ) * - 8, CAST( NULL AS DECIMAL ) - + MAX( ALL + 73 ) - MAX( - + ( + - 58 ) ) + + 75 AS col1
----
-8
NULL

skipif mysql # not compatible
query II rowsort label-7056
SELECT COUNT ( * ) * - 8, CAST ( NULL AS REAL ) - + MAX ( ALL + 73 ) - MAX ( - + ( + - 58 ) ) + + 75 AS col1
----
-8
NULL

query I rowsort
SELECT 6 + - 21 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT + 6 - - MAX( DISTINCT - 86 )
----
-80

skipif mysql # not compatible
query I rowsort label-7058
SELECT + 6 - - MAX ( DISTINCT - 86 )
----
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT 36 * - CAST( NULL AS SIGNED ) * 63
----
NULL

skipif mysql # not compatible
query I rowsort label-7059
SELECT 36 * - CAST ( NULL AS INTEGER ) * 63
----
NULL

query I rowsort
SELECT ALL + + 20 * + 34 AS col1
----
680

query I rowsort
SELECT DISTINCT + 61 - 72 AS col1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT COUNT( DISTINCT + 51 )
----
1

skipif mysql # not compatible
query I rowsort label-7062
SELECT COUNT ( DISTINCT + 51 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT ALL - 86 DIV - MIN( ALL + 78 )
----
1

skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - 86 / - MIN ( ALL + 78 )
----
1

query I rowsort
SELECT DISTINCT - 81 * + 14
----
-1134

query I rowsort
SELECT + 25 * 3 AS col2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7066
SELECT + + CAST( - 75 AS SIGNED ) col0
----
-75

skipif mysql # not compatible
query I rowsort label-7066
SELECT + + CAST ( - 75 AS INTEGER ) col0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT + - 86 DIV 99 DIV + 90 - + 59
----
-59

skipif mysql # not compatible
query I rowsort label-7067
SELECT + - 86 / 99 / + 90 - + 59
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT + COALESCE ( 41, + SUM( ALL + - 71 ), + + 62 ) * + + ( + + 39 )
----
1599

skipif mysql # not compatible
query I rowsort label-7068
SELECT + COALESCE ( 41, + SUM ( ALL + - 71 ), + + 62 ) * + + ( + + 39 )
----
1599

onlyif mysql # aggregate syntax: 
query I rowsort label-7069
SELECT + COUNT( * ) * 56 + + - 77 * - 82 col1
----
6370

skipif mysql # not compatible
query I rowsort label-7069
SELECT + COUNT ( * ) * 56 + + - 77 * - 82 col1
----
6370

query I rowsort
SELECT ALL ( 65 ) * - + 23
----
-1495

query I rowsort
SELECT ALL - - 82 * + + 61 * + 44
----
220088

query I rowsort
SELECT 77 * - 16 AS col1
----
-1232

onlyif mysql # aggregate syntax: 
query I rowsort label-7073
SELECT ALL 58 + - 60 + 62 + COUNT( * ) AS col0
----
61

skipif mysql # not compatible
query I rowsort label-7073
SELECT ALL 58 + - 60 + 62 + COUNT ( * ) AS col0
----
61

query I rowsort
SELECT ALL - + 57 + + + 14 + + 91
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT + 97 + 34 * - COUNT( DISTINCT + 9 ) + - 44 + - - 30 * + 97
----
2929

skipif mysql # not compatible
query I rowsort label-7075
SELECT + 97 + 34 * - COUNT ( DISTINCT + 9 ) + - 44 + - - 30 * + 97
----
2929

query I rowsort
SELECT ALL + 21 + - COALESCE ( - - 54, 74, - + 18 + + 29 * + + 0 + 72 ) + 4 AS col2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT + 70 * 92 + + CASE + - 94 WHEN - 44 THEN + 45 END * - - 74 * COUNT( * ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7077
SELECT + 70 * 92 + + CASE + - 94 WHEN - 44 THEN + 45 END * - - 74 * COUNT ( * ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL - COUNT( DISTINCT + 46 ) + + 51
----
50

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL - COUNT ( DISTINCT + 46 ) + + 51
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT 92 * + 68 + + COUNT( ALL + CASE 59 WHEN + 36 THEN - 37 WHEN 78 THEN NULL END )
----
6256

skipif mysql # not compatible
query I rowsort label-7079
SELECT 92 * + 68 + + COUNT ( ALL + CASE 59 WHEN + 36 THEN - 37 WHEN 78 THEN NULL END )
----
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT 17 + - MIN( 8 )
----
9

skipif mysql # not compatible
query I rowsort label-7080
SELECT 17 + - MIN ( 8 )
----
9

query II rowsort
SELECT ALL 18 AS col0, - 50
----
18
-50

query I rowsort
SELECT ALL 47 + + - 94 col2
----
-47

query I rowsort
SELECT DISTINCT + 74 * 11 AS col2
----
814

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL + 65 - + COUNT( * )
----
64

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL + 65 - + COUNT ( * )
----
64

query I rowsort
SELECT 7 * 20 col1
----
140

query I rowsort
SELECT ALL + 93 * + + 64 AS col1
----
5952

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT 16 * COUNT( * ) col0
----
16

skipif mysql # not compatible
query I rowsort label-7087
SELECT 16 * COUNT ( * ) col0
----
16

query I rowsort
SELECT ALL - 29 - - + 55
----
26

query I rowsort
SELECT DISTINCT - 20 * + 89
----
-1780

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT 6 * + - COUNT( * ) AS col0
----
-6

skipif mysql # not compatible
query I rowsort label-7090
SELECT 6 * + - COUNT ( * ) AS col0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT 42 * - COUNT( * ) * 36 AS col1
----
-1512

skipif mysql # not compatible
query I rowsort label-7091
SELECT 42 * - COUNT ( * ) * 36 AS col1
----
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT 13 + - 45 + - + 86 * - COUNT( * ) + - - 94 AS col2
----
148

skipif mysql # not compatible
query I rowsort label-7092
SELECT 13 + - 45 + - + 86 * - COUNT ( * ) + - - 94 AS col2
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT ALL COUNT( ALL + 71 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7093
SELECT ALL COUNT ( ALL + 71 ) AS col2
----
1

query I rowsort
SELECT ( - - 84 ) AS col1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT MIN( + 93 ) * + - SUM( - - 22 ) AS col1
----
-2046

skipif mysql # not compatible
query I rowsort label-7095
SELECT MIN ( + 93 ) * + - SUM ( - - 22 ) AS col1
----
-2046

query I rowsort
SELECT + 65 + 52 + + - 8 + + 10 AS col0
----
119

onlyif mysql # DIV for integer division: 
query I rowsort label-7097
SELECT ALL + + 17 DIV - ( 2 )
----
-8

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + + 17 / - ( 2 )
----
-8

query I rowsort
SELECT ALL + 41 * + - 72
----
-2952

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + + MAX( ALL 87 ) AS col1
----
87

skipif mysql # not compatible
query I rowsort label-7099
SELECT + + MAX ( ALL 87 ) AS col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT ALL - - SUM( 12 )
----
12

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - - SUM ( 12 )
----
12

query I rowsort
SELECT - 45 * - - 85 + + - 67 col1
----
-3892

query I rowsort
SELECT DISTINCT 79 * - - 85 * 37 * - 93 + - 55
----
-23106370

query II rowsort
SELECT ALL 17 * - 58 + - + 70 AS col0, + 62
----
-1056
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT ALL - + MIN( + - ( + 87 ) )
----
87

skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL - + MIN ( + - ( + 87 ) )
----
87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7105
SELECT ALL - ( - COUNT( * ) ) DIV - 80 + ( - 73 )
----
-73

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL - ( - COUNT ( * ) ) / - 80 + ( - 73 )
----
-73

query II rowsort
SELECT 62 - 54 + - + 7 - + 94, 70 AS col2
----
-93
70

query II rowsort
SELECT + 51 AS col2, 3 AS col0
----
51
3

query I rowsort
SELECT ALL 84 + + 51 + - + 10 + - 19 AS col2
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT MIN( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-7109
SELECT MIN ( 9 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7110
SELECT + NULLIF ( COUNT( * ), + 23 / - 84 )
----
1

skipif mysql # not compatible
query I rowsort label-7110
SELECT + NULLIF ( COUNT ( * ), + 23 / - 84 )
----
1

query II rowsort
SELECT + 9, 83 + - 53 AS col1
----
9
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7112
SELECT ALL COUNT( * ) * 26 AS col1, - COUNT( * )
----
26
-1

skipif mysql # not compatible
query II rowsort label-7112
SELECT ALL COUNT ( * ) * 26 AS col1, - COUNT ( * )
----
26
-1

query I rowsort
SELECT ALL 48 + - 13 AS col2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT 6 - + COUNT( * ) + - 80 * - COUNT( * ) AS col2
----
85

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT 6 - + COUNT ( * ) + - 80 * - COUNT ( * ) AS col2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT + SUM( ALL + 51 ) AS col0
----
51

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT + SUM ( ALL + 51 ) AS col0
----
51

query I rowsort
SELECT DISTINCT 83 - 24 - - 0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) - - 80
----
NULL

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) - - 80
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ALL COUNT( * ) * + 28 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL COUNT ( * ) * + 28 AS col1
----
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT + ( + 37 ) * + 60 * - SUM( DISTINCT - CAST( + 7 AS SIGNED ) ) AS col0
----
15540

skipif mysql # not compatible
query I rowsort label-7119
SELECT + ( + 37 ) * + 60 * - SUM ( DISTINCT - CAST ( + 7 AS INTEGER ) ) AS col0
----
15540

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT + COUNT( * ) + 25 + + 12 * + - ( - - ( - 60 ) ) * - 90 + - - 7
----
-64767

skipif mysql # not compatible
query I rowsort label-7120
SELECT + COUNT ( * ) + 25 + + 12 * + - ( - - ( - 60 ) ) * - 90 + - - 7
----
-64767

query I rowsort
SELECT + 76 + + - 0 AS col2
----
76

query I rowsort
SELECT + 93 * - 8 AS col0
----
-744

query I rowsort
SELECT + 52 + 75 AS col0
----
127

query I rowsort
SELECT - 58 - + + 35
----
-93

query I rowsort
SELECT + 28 + + - 49 col1
----
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7126
SELECT ALL ( + - 4 ) DIV + MAX( DISTINCT - + ( + 46 ) ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL ( + - 4 ) / + MAX ( DISTINCT - + ( + 46 ) ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT - COUNT( * ) DIV + - 50
----
0

skipif mysql # not compatible
query I rowsort label-7127
SELECT - COUNT ( * ) / + - 50
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7128
SELECT ALL - 31 * CASE + CAST( + CASE CAST( NULL AS DECIMAL ) WHEN - + 44 THEN NULL ELSE - COUNT( * ) + + - ( - 30 ) - MAX( ALL + - 28 ) END AS SIGNED ) WHEN 58 THEN + - 31 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL - 31 * CASE + CAST ( + CASE CAST ( NULL AS REAL ) WHEN - + 44 THEN NULL ELSE - COUNT ( * ) + + - ( - 30 ) - MAX ( ALL + - 28 ) END AS INTEGER ) WHEN 58 THEN + - 31 END
----
NULL

query I rowsort
SELECT - + 67 + 85
----
18

query I rowsort
SELECT DISTINCT - 3 * CASE ( + 10 ) WHEN + 51 THEN + + ( - 52 ) END * + 83
----
NULL

query I rowsort
SELECT - - 92 + - 22
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7132
SELECT - 63 DIV + 60
----
-1

skipif mysql # not compatible
query I rowsort label-7132
SELECT - 63 / + 60
----
-1

query II rowsort
SELECT ALL - + 53 + - 49 AS col2, 89 AS col1
----
-102
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL + - 90 * - COUNT( * ) + + - 41 * + 18
----
-648

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + - 90 * - COUNT ( * ) + + - 41 * + 18
----
-648

query I rowsort
SELECT - - 90 + + - 11 + + + 92 AS col2
----
171

query III rowsort
SELECT - + 91, - 22 + + 99 + + + 34 col2, - NULLIF ( + 97, - - 44 ) AS col0
----
-91
111
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT ALL + SUM( + 55 ) AS col1
----
55

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL + SUM ( + 55 ) AS col1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT - + NULLIF ( 31, + - CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) )
----
-31

skipif mysql # not compatible
query I rowsort label-7138
SELECT - + NULLIF ( 31, + - CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) )
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7139
SELECT + 92 AS col1, - CAST( - + COALESCE ( + 13, - + MAX( ALL + 65 ) ) AS SIGNED ) + - 68 + + 31 * - - ( + MIN( DISTINCT + - 3 ) ) AS col0
----
92
-148

skipif mysql # not compatible
query II rowsort label-7139
SELECT + 92 AS col1, - CAST ( - + COALESCE ( + 13, - + MAX ( ALL + 65 ) ) AS INTEGER ) + - 68 + + 31 * - - ( + MIN ( DISTINCT + - 3 ) ) AS col0
----
92
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT - - COUNT( * ) * - 26 + 37 + + 24 AS col0
----
35

skipif mysql # not compatible
query I rowsort label-7140
SELECT - - COUNT ( * ) * - 26 + 37 + + 24 AS col0
----
35

query I rowsort
SELECT ALL + + 65 + 45 - + 68
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7142
SELECT - 66 - - 18 + + 95 DIV - 14 * - COUNT( DISTINCT + 67 ) col1, - 5
----
-42
-5

skipif mysql # not compatible
query II rowsort label-7142
SELECT - 66 - - 18 + + 95 / - 14 * - COUNT ( DISTINCT + 67 ) col1, - 5
----
-42
-5

query II rowsort
SELECT + ( + 5 ), 44 col2
----
5
44

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT ALL + COUNT( * ), 90 AS col1
----
1
90

skipif mysql # not compatible
query II rowsort label-7144
SELECT ALL + COUNT ( * ), 90 AS col1
----
1
90

query I rowsort
SELECT DISTINCT 35 * 3 + + + 71
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-7146
SELECT + 4 AS col0, MAX( 70 ) AS col1
----
4
70

skipif mysql # not compatible
query II rowsort label-7146
SELECT + 4 AS col0, MAX ( 70 ) AS col1
----
4
70

onlyif mysql # DIV for integer division: 
query I rowsort label-7147
SELECT 88 DIV - ( + - 68 ) + + 69 AS col2
----
70

skipif mysql # not compatible
query I rowsort label-7147
SELECT 88 / - ( + - 68 ) + + 69 AS col2
----
70

query I rowsort
SELECT DISTINCT - 92 * - - NULLIF ( + 38, - 67 - + 13 * + 14 ) AS col0
----
-3496

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT COUNT( * ) DIV + - COUNT( * ) + 76 AS col1
----
75

skipif mysql # not compatible
query I rowsort label-7149
SELECT COUNT ( * ) / + - COUNT ( * ) + 76 AS col1
----
75

query I rowsort
SELECT ALL + ( - 31 ) * + + 15 + + + 29 * - 71 * - COALESCE ( + + 18, 71, - - 13 - + + 93 ) * 33 - + 18 - 12 - - 24 + - 28 AS col1
----
1222547

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT ( - 85 ) * + 42 + + - MIN( DISTINCT - 72 )
----
-3498

skipif mysql # not compatible
query I rowsort label-7151
SELECT ( - 85 ) * + 42 + + - MIN ( DISTINCT - 72 )
----
-3498

query I rowsort
SELECT DISTINCT - 92 * + 9
----
-828

query I rowsort
SELECT DISTINCT + ( - ( - + COALESCE ( 14, 42, + 8 ) ) ) AS col1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7154
SELECT COALESCE ( + - 82, 70 + - 12 * - CAST( + 30 AS SIGNED ) * + - 41 - 11 )
----
-82

skipif mysql # not compatible
query I rowsort label-7154
SELECT COALESCE ( + - 82, 70 + - 12 * - CAST ( + 30 AS INTEGER ) * + - 41 - 11 )
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT - CAST( NULL AS SIGNED ) * - + CAST( + + 57 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT - CAST ( NULL AS INTEGER ) * - + CAST ( + + 57 AS INTEGER )
----
NULL

query I rowsort
SELECT + 6 * 76
----
456

query I rowsort
SELECT + 64 + - 27
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7158
SELECT SUM( ALL - 78 ) * CAST( - 13 AS SIGNED ) * + 76 + 15 + + 84
----
77163

skipif mysql # not compatible
query I rowsort label-7158
SELECT SUM ( ALL - 78 ) * CAST ( - 13 AS INTEGER ) * + 76 + 15 + + 84
----
77163

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7159
SELECT ALL ( MIN( - + 83 ) ) * - 21 + - COUNT( * ) + 31 DIV - COUNT( * ) + - 64 col2
----
1647

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL ( MIN ( - + 83 ) ) * - 21 + - COUNT ( * ) + 31 / - COUNT ( * ) + - 64 col2
----
1647

query I rowsort
SELECT - NULLIF ( + 35, + 81 + 29 + + - 82 * + 85 / - - 41 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT ( - + COUNT( DISTINCT + - 93 ) ) * + COUNT( * ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT ( - + COUNT ( DISTINCT + - 93 ) ) * + COUNT ( * ) AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7162
SELECT COUNT( - ( + + ( + 20 ) ) ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7162
SELECT COUNT ( - ( + + ( + 20 ) ) ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT ALL CASE - + 1 WHEN - - 53 * - COUNT( ALL + - 46 ) THEN - 40 - + 29 + - 60 - - ( - + 90 ) + - 43 + + 62 + - CAST( - - CASE + 27 WHEN - + 80 THEN - 95 - - 20 WHEN CASE 95 WHEN 27 * + 10 THEN 22 / - 73 + 82 END THEN - 21 END AS SIGNED ) * 54 ELSE 36 + 94 END col1
----
130

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL CASE - + 1 WHEN - - 53 * - COUNT ( ALL + - 46 ) THEN - 40 - + 29 + - 60 - - ( - + 90 ) + - 43 + + 62 + - CAST ( - - CASE + 27 WHEN - + 80 THEN - 95 - - 20 WHEN CASE 95 WHEN 27 * + 10 THEN 22 / - 73 + 82 END THEN - 21 END AS INTEGER ) * 54 ELSE 36 + 94 END col1
----
130

onlyif mysql # aggregate syntax: 
query I rowsort label-7164
SELECT DISTINCT + 74 + - COUNT( DISTINCT + - 92 )
----
73

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT + 74 + - COUNT ( DISTINCT + - 92 )
----
73

query I rowsort
SELECT DISTINCT - 99 + 42 AS col0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL COUNT( * ) + 19 + 94 + + - 55 AS col2
----
59

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL COUNT ( * ) + 19 + 94 + + - 55 AS col2
----
59

query I rowsort
SELECT + - 60 - - 83
----
23

onlyif mysql # DIV for integer division: 
query II rowsort label-7168
SELECT DISTINCT 49 + + - 30 DIV - - 55, 99 + + + 56 AS col1
----
49
155

skipif mysql # not compatible
query II rowsort label-7168
SELECT DISTINCT 49 + + - 30 / - - 55, 99 + + + 56 AS col1
----
49
155

onlyif mysql # aggregate syntax: 
query II rowsort label-7169
SELECT + + 86 * - + 20 AS col2, - COUNT( - 53 ) * - - 69 AS col0
----
-1720
-69

skipif mysql # not compatible
query II rowsort label-7169
SELECT + + 86 * - + 20 AS col2, - COUNT ( - 53 ) * - - 69 AS col0
----
-1720
-69

query I rowsort
SELECT + ( - 75 ) AS col0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT - 58 + + SUM( ALL + 6 )
----
-52

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT - 58 + + SUM ( ALL + 6 )
----
-52

query I rowsort
SELECT ALL - + 75 + + 10
----
-65

query I rowsort
SELECT - 55 * 71 + + 1 col2
----
-3904

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT - 64 + + + 0 + + COUNT( * ) + - COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-7174
SELECT - 64 + + + 0 + + COUNT ( * ) + - COUNT ( * )
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7175
SELECT DISTINCT - 97 + - CAST( NULL AS SIGNED ) AS col0, 88 AS col2
----
NULL
88

skipif mysql # not compatible
query II rowsort label-7175
SELECT DISTINCT - 97 + - CAST ( NULL AS INTEGER ) AS col0, 88 AS col2
----
NULL
88

query I rowsort
SELECT ALL + + 45 + - 29 + + 89 AS col1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT + + 17 * 48 + - 57 + - COUNT( * )
----
758

skipif mysql # not compatible
query I rowsort label-7177
SELECT + + 17 * 48 + - 57 + - COUNT ( * )
----
758

query I rowsort
SELECT + 21 * + 41 col0
----
861

query I rowsort
SELECT + 41 * - 16 + 41 AS col0
----
-615

query I rowsort
SELECT ALL + ( - - 12 ) AS col1
----
12

query I rowsort
SELECT ALL - CASE - ( + 33 ) WHEN - 42 * 56 + 37 THEN + - 18 ELSE NULL END AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7182
SELECT 1 * - 64 DIV + + 92
----
0

skipif mysql # not compatible
query I rowsort label-7182
SELECT 1 * - 64 / + + 92
----
0

query I rowsort
SELECT DISTINCT + ( 6 ) - - ( - NULLIF ( + 62, - - 34 ) ) + - 98 AS col1
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT - SUM( DISTINCT - - 62 ) * 91
----
-5642

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - SUM ( DISTINCT - - 62 ) * 91
----
-5642

query I rowsort
SELECT ALL - ( 24 ) col1
----
-24

query I rowsort
SELECT 90 * - + 56 col1
----
-5040

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7187
SELECT ALL - ( + CAST( + 26 AS SIGNED ) ) * + SUM( + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7187
SELECT ALL - ( + CAST ( + 26 AS INTEGER ) ) * + SUM ( + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT 32 * 71 AS col2
----
2272

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7189
SELECT DISTINCT - 61 * - CAST( NULL AS DECIMAL ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7189
SELECT DISTINCT - 61 * - CAST ( NULL AS REAL ) AS col1
----
NULL

query I rowsort
SELECT ALL - ( + 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT ALL - COUNT( * ) * - - 83
----
-83

skipif mysql # not compatible
query I rowsort label-7191
SELECT ALL - COUNT ( * ) * - - 83
----
-83

query I rowsort
SELECT ALL - ( - 20 ) AS col1
----
20

query I rowsort
SELECT ALL - 44 + 89
----
45

query II rowsort
SELECT 41 - - ( 33 ) AS col1, + 71
----
74
71

onlyif mysql # DIV for integer division: 
query I rowsort label-7195
SELECT ALL 34 DIV + - 77 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7195
SELECT ALL 34 / + - 77 AS col0
----
0

query I rowsort
SELECT ALL 93 + + 42
----
135

onlyif mysql # aggregate syntax: 
query II rowsort label-7197
SELECT ALL 95 AS col1, - COUNT( * ) + + + 60 * + COUNT( * )
----
95
59

skipif mysql # not compatible
query II rowsort label-7197
SELECT ALL 95 AS col1, - COUNT ( * ) + + + 60 * + COUNT ( * )
----
95
59

query II rowsort
SELECT 28 AS col1, 4 + 43 + - 87 + - 61 * - 19 AS col1
----
28
1119

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT CASE + + 66 WHEN NULLIF ( + + 35, + AVG ( ALL + 55 ) * 98 ) THEN - COUNT( DISTINCT - 18 ) END / - 58 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7199
SELECT CASE + + 66 WHEN NULLIF ( + + 35, + AVG ( ALL + 55 ) * 98 ) THEN - COUNT ( DISTINCT - 18 ) END / - 58 AS col0
----
NULL

query I rowsort
SELECT ALL + 70 + + - 64
----
6

query I rowsort
SELECT + 76 + + + COALESCE ( 92, 18 ) col2
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT ALL - 53 DIV + 12 AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL - 53 / + 12 AS col0
----
-4

query I rowsort
SELECT + ( ( 39 ) ) AS col2
----
39

query II rowsort
SELECT ALL - 16, - 78 + - 10 - 88 AS col2
----
-16
-176

query I rowsort
SELECT - + 59 col0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT 75 + 55 + + - MAX( ALL 44 ) - - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7206
SELECT 75 + 55 + + - MAX ( ALL 44 ) - - COUNT ( * )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT ALL + 9 + + - MIN( DISTINCT + 64 )
----
-55

skipif mysql # not compatible
query I rowsort label-7207
SELECT ALL + 9 + + - MIN ( DISTINCT + 64 )
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT + 16 + + - COUNT( * )
----
15

skipif mysql # not compatible
query I rowsort label-7208
SELECT + 16 + + - COUNT ( * )
----
15

query I rowsort
SELECT DISTINCT 99 + + 6 AS col2
----
105

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7210
SELECT 98 + CASE + COUNT( * ) WHEN - 36 * 72 / + - 19 THEN NULL WHEN - CASE 70 WHEN + 68 + + COUNT( * ) + 33 / 31 THEN + 93 ELSE - 23 END * - CAST( + ( + 46 ) AS SIGNED ) - + 16 THEN NULL ELSE 38 * + COUNT( * ) + 38 * SUM( - 27 ) END + + 42 AS col1
----
-848

skipif mysql # not compatible
query I rowsort label-7210
SELECT 98 + CASE + COUNT ( * ) WHEN - 36 * 72 / + - 19 THEN NULL WHEN - CASE 70 WHEN + 68 + + COUNT ( * ) + 33 / 31 THEN + 93 ELSE - 23 END * - CAST ( + ( + 46 ) AS INTEGER ) - + 16 THEN NULL ELSE 38 * + COUNT ( * ) + 38 * SUM ( - 27 ) END + + 42 AS col1
----
-848

query II rowsort
SELECT DISTINCT 83 + - - 79 + + ( 90 ) * NULLIF ( 0, + 2 + 93 ) AS col0, + 64 AS col2
----
162
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT COUNT( * ) + + 13 * 76
----
989

skipif mysql # not compatible
query I rowsort label-7212
SELECT COUNT ( * ) + + 13 * 76
----
989

query I rowsort
SELECT ALL - 68 * - ( - + 76 ) AS col0
----
-5168

query I rowsort
SELECT + NULLIF ( - 48, 39 * 77 )
----
-48

query I rowsort
SELECT ALL + 94 - + 77
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT 8 + 66 - - 28 + - 83 + - 12 * + 47, - COUNT( * ) AS col2
----
-545
-1

skipif mysql # not compatible
query II rowsort label-7216
SELECT 8 + 66 - - 28 + - 83 + - 12 * + 47, - COUNT ( * ) AS col2
----
-545
-1

query I rowsort
SELECT 23 * + 36 col1
----
828

query I rowsort
SELECT 67 * - ( 3 )
----
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7219
SELECT DISTINCT COUNT( ( + 71 ) ) - - 6 DIV - 43 - + 15
----
-14

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT COUNT ( ( + 71 ) ) - - 6 / - 43 - + 15
----
-14

query I rowsort
SELECT ALL - 53 - - + 12
----
-41

query I rowsort
SELECT NULLIF ( + 75, + ( + 7 ) ) * + 87 + - 34 + - + 35 AS col2
----
6456

onlyif mysql # DIV for integer division: 
query II rowsort label-7222
SELECT ALL 25 DIV - 60 AS col1, + 0 * 64 AS col2
----
0
0

skipif mysql # not compatible
query II rowsort label-7222
SELECT ALL 25 / - 60 AS col1, + 0 * 64 AS col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT DISTINCT + COUNT( * ) * - - 76 AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7223
SELECT DISTINCT + COUNT ( * ) * - - 76 AS col1
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-7224
SELECT 38 * - + COUNT( * ) + 39 + - 88 + + - 98 AS col2, - 16 * 1 * + CASE - 61 WHEN + + 80 THEN NULL ELSE MAX( + 97 ) END * - ( + 12 )
----
-185
18624

skipif mysql # not compatible
query II rowsort label-7224
SELECT 38 * - + COUNT ( * ) + 39 + - 88 + + - 98 AS col2, - 16 * 1 * + CASE - 61 WHEN + + 80 THEN NULL ELSE MAX ( + 97 ) END * - ( + 12 )
----
-185
18624

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT ALL MIN( DISTINCT + - ( - 74 ) ) * - 42 col0, 19 AS col2
----
-3108
19

skipif mysql # not compatible
query II rowsort label-7225
SELECT ALL MIN ( DISTINCT + - ( - 74 ) ) * - 42 col0, 19 AS col2
----
-3108
19

query I rowsort
SELECT 26 * + + 80 * - 85
----
-176800

query I rowsort
SELECT 0 * - 66
----
0

query I rowsort
SELECT 6 + 41 AS col0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7229
SELECT COUNT( * ) / 9 - + CAST( NULL AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7229
SELECT COUNT ( * ) / 9 - + CAST ( NULL AS INTEGER ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7230
SELECT 45 DIV + 86 * - ( MAX( DISTINCT 80 ) ), ( + 85 ) AS col2
----
0
85

skipif mysql # not compatible
query II rowsort label-7230
SELECT 45 / + 86 * - ( MAX ( DISTINCT 80 ) ), ( + 85 ) AS col2
----
0
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT DISTINCT - SUM( - ( - 84 ) ) AS col0
----
-84

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT - SUM ( - ( - 84 ) ) AS col0
----
-84

query I rowsort
SELECT 3 * + - 40 + - 92
----
-212

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT ALL ( + ( + COUNT( + + 16 ) ) ) + + 87 * + 75 col0
----
6526

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL ( + ( + COUNT ( + + 16 ) ) ) + + 87 * + 75 col0
----
6526

query I rowsort
SELECT DISTINCT - ( + 24 ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7235
SELECT + 77 * - CASE - 45 WHEN COUNT( * ) + - COUNT( * ) THEN NULL WHEN + 83 + + 53 THEN - + 86 * 61 + + SUM( + - 41 ) + - + 36 * - - 52 * CAST( + + COUNT( * ) AS SIGNED ) WHEN 23 - COUNT( * ) THEN - COUNT( * ) + 95 / 88 END + + SUM( - 8 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7235
SELECT + 77 * - CASE - 45 WHEN COUNT ( * ) + - COUNT ( * ) THEN NULL WHEN + 83 + + 53 THEN - + 86 * 61 + + SUM ( + - 41 ) + - + 36 * - - 52 * CAST ( + + COUNT ( * ) AS INTEGER ) WHEN 23 - COUNT ( * ) THEN - COUNT ( * ) + 95 / 88 END + + SUM ( - 8 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT DISTINCT - COUNT( * ) * + - 49 AS col0
----
49

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT - COUNT ( * ) * + - 49 AS col0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT ALL - 24 + + - 68 - - + 88 DIV 64 + + 15
----
-76

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL - 24 + + - 68 - - + 88 / 64 + + 15
----
-76

query I rowsort
SELECT - 73 * 12
----
-876

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT NULLIF ( - - 10, MIN( - 88 ) * + 15 ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-7239
SELECT NULLIF ( - - 10, MIN ( - 88 ) * + 15 ) AS col2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT DISTINCT + - 33 + 90 + 15 - 91 + + - 19 DIV - 75 + 53 col0
----
34

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT + - 33 + 90 + 15 - 91 + + - 19 / - 75 + 53 col0
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7241
SELECT ALL COUNT( * ) + 78 * - - MAX( DISTINCT + + 25 ) col1, - 23 DIV - 99 + + + 22 + - 72
----
1951
-50

skipif mysql # not compatible
query II rowsort label-7241
SELECT ALL COUNT ( * ) + 78 * - - MAX ( DISTINCT + + 25 ) col1, - 23 / - 99 + + + 22 + - 72
----
1951
-50

query I rowsort
SELECT 20 * + 74 + - - 73
----
1553

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT ALL CASE NULLIF ( 81, 38 ) WHEN + + COUNT( * ) THEN + AVG ( DISTINCT 15 ) WHEN 78 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7243
SELECT ALL CASE NULLIF ( 81, 38 ) WHEN + + COUNT ( * ) THEN + AVG ( DISTINCT 15 ) WHEN 78 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 41 - - + 1 AS col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT - COUNT( * ) + - 96 * - COUNT( * )
----
95

skipif mysql # not compatible
query I rowsort label-7245
SELECT - COUNT ( * ) + - 96 * - COUNT ( * )
----
95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7246
SELECT ( - ( - CASE + COALESCE ( + COUNT( * ), - + 57 * - + 26 * - 43 * + 97 - - CAST( NULL AS DECIMAL ) + - 95 ) WHEN + COUNT( * ) THEN NULL ELSE - SUM( 43 ) END ) ) * - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT ( - ( - CASE + COALESCE ( + COUNT ( * ), - + 57 * - + 26 * - 43 * + 97 - - CAST ( NULL AS REAL ) + - 95 ) WHEN + COUNT ( * ) THEN NULL ELSE - SUM ( 43 ) END ) ) * - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT 43 * - COUNT( * ) + - 29 AS col0
----
-72

skipif mysql # not compatible
query I rowsort label-7247
SELECT 43 * - COUNT ( * ) + - 29 AS col0
----
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7248
SELECT + MAX( DISTINCT + 18 ) DIV + 48 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7248
SELECT + MAX ( DISTINCT + 18 ) / + 48 AS col1
----
0

query I rowsort
SELECT - 12 * + NULLIF ( 99, - + 33 * 17 + 66 * - 29 )
----
-1188

query I rowsort
SELECT ALL 56 * - 5 col1
----
-280

query I rowsort
SELECT + + 51 * - - 67 AS col2
----
3417

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT - NULLIF ( - COUNT( * ), - + 71 )
----
1

skipif mysql # not compatible
query I rowsort label-7252
SELECT - NULLIF ( - COUNT ( * ), - + 71 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT DISTINCT - 12 * CAST( + 82 AS SIGNED ) AS col2
----
-984

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - 12 * CAST ( + 82 AS INTEGER ) AS col2
----
-984

query I rowsort
SELECT + 13 + + 20 + - 19
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT DISTINCT COUNT( * ) * - - 41
----
41

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT COUNT ( * ) * - - 41
----
41

query II rowsort
SELECT DISTINCT + 68, 77 + - 64 * + 31 AS col2
----
68
-1907

query I rowsort
SELECT + 77 * 56
----
4312

onlyif mysql # aggregate syntax: 
query II rowsort label-7258
SELECT + ( ( 75 ) ) AS col1, 69 * + - MIN( DISTINCT + 70 ) * + 72 + - 30 * + + COUNT( * ) * - + COUNT( * ) + - + 28
----
75
-347758

skipif mysql # not compatible
query II rowsort label-7258
SELECT + ( ( 75 ) ) AS col1, 69 * + - MIN ( DISTINCT + 70 ) * + 72 + - 30 * + + COUNT ( * ) * - + COUNT ( * ) + - + 28
----
75
-347758

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT ALL ( + - MAX( + 66 ) ) DIV + + COALESCE ( - 91, 74 DIV - 60 + 52 + - + 81 + - 93 * 44 * + - 35, - - 49 * 96 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL ( + - MAX ( + 66 ) ) / + + COALESCE ( - 91, 74 / - 60 + 52 + - + 81 + - 93 * 44 * + - 35, - - 49 * 96 ) AS col0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7260
SELECT ALL - 25 * COALESCE ( + COUNT( * ), - 39 * - COUNT( * ) * + - MIN( + NULLIF ( - - 15, 72 * + 44 ) ), + 91 + + 74, + 45 + + 55 ) + CAST( NULL AS SIGNED ) * - + MIN( 70 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7260
SELECT ALL - 25 * COALESCE ( + COUNT ( * ), - 39 * - COUNT ( * ) * + - MIN ( + NULLIF ( - - 15, 72 * + 44 ) ), + 91 + + 74, + 45 + + 55 ) + CAST ( NULL AS INTEGER ) * - + MIN ( 70 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7261
SELECT + NULLIF ( - CAST( 80 AS SIGNED ), + - 8 * COALESCE ( + 55, + + 83 ) + 5 + 99 * + COUNT( * ) + 35 ) AS col1
----
-80

skipif mysql # not compatible
query I rowsort label-7261
SELECT + NULLIF ( - CAST ( 80 AS INTEGER ), + - 8 * COALESCE ( + 55, + + 83 ) + 5 + 99 * + COUNT ( * ) + 35 ) AS col1
----
-80

query I rowsort
SELECT + NULLIF ( + + 47, + - 85 ) AS col2
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-7263
SELECT + 93 DIV + 70 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7263
SELECT + 93 / + 70 AS col2
----
1

query I rowsort
SELECT + 11 * - 72
----
-792

query I rowsort
SELECT + NULLIF ( - 37, + 99 )
----
-37

query I rowsort
SELECT - 75 * - 41 AS col1
----
3075

query II rowsort
SELECT 8 * 76 - - 15, - 56 * + - 73 AS col1
----
623
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT NULLIF ( - 93, 59 + - MIN( 31 ) * + - 44 ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-7268
SELECT NULLIF ( - 93, 59 + - MIN ( 31 ) * + - 44 ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7269
SELECT - CAST( MIN( + + 95 ) AS SIGNED ) * 59
----
-5605

skipif mysql # not compatible
query I rowsort label-7269
SELECT - CAST ( MIN ( + + 95 ) AS INTEGER ) * 59
----
-5605

query I rowsort
SELECT ALL - 61 * - + 15 + + 78
----
993

query I rowsort
SELECT + ( - ( + 96 ) ) AS col0
----
-96

query II rowsort
SELECT - 5 col1, + 69
----
-5
69

query I rowsort
SELECT + + 38 + - + 76
----
-38

query I rowsort
SELECT DISTINCT + 40 col2
----
40

query I rowsort
SELECT + 74 + + - COALESCE ( 79, + 1 )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT - NULLIF ( + COUNT( * ), + 56 ) * + SUM( + - 38 )
----
38

skipif mysql # not compatible
query I rowsort label-7276
SELECT - NULLIF ( + COUNT ( * ), + 56 ) * + SUM ( + - 38 )
----
38

onlyif mysql # DIV for integer division: 
query II rowsort label-7277
SELECT - 1 + - 62 DIV - 60 AS col0, 47 + + ( - 64 )
----
0
-17

skipif mysql # not compatible
query II rowsort label-7277
SELECT - 1 + - 62 / - 60 AS col0, 47 + + ( - 64 )
----
0
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT ALL + SUM( - + 21 ) * - COUNT( * ) * 89 + - + MIN( DISTINCT 74 ) * - 63 AS col1
----
6531

skipif mysql # not compatible
query I rowsort label-7278
SELECT ALL + SUM ( - + 21 ) * - COUNT ( * ) * 89 + - + MIN ( DISTINCT 74 ) * - 63 AS col1
----
6531

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7279
SELECT ALL + ( - - SUM( ALL + 61 ) ) * 50 DIV 91 * - 30 + + 66 * 10 * + 22 AS col2
----
13530

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + ( - - SUM ( ALL + 61 ) ) * 50 / 91 * - 30 + + 66 * 10 * + 22 AS col2
----
13530

query II rowsort
SELECT DISTINCT - 55 AS col2, 6
----
-55
6

query I rowsort
SELECT - - 30 + + ( + 52 ) * - + 0 * - 6
----
30

query I rowsort
SELECT - 76 * - CASE 65 WHEN - - 1 THEN NULL WHEN 84 THEN - - 42 * + 72 + - 81 WHEN 44 THEN + + 63 / + 45 + 8 END
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7283
SELECT - 46 * ( - CAST( NULL AS DECIMAL ) ) + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT - 46 * ( - CAST ( NULL AS REAL ) ) + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - + COUNT( ALL 18 ) + ( - 41 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-7284
SELECT - + COUNT ( ALL 18 ) + ( - 41 ) AS col0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7285
SELECT - MIN( - 20 ) * - ( - CASE + - ( + 34 ) WHEN 43 * + 45 THEN + + 98 ELSE NULL END ) * - 89 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7285
SELECT - MIN ( - 20 ) * - ( - CASE + - ( + 34 ) WHEN 43 * + 45 THEN + + 98 ELSE NULL END ) * - 89 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7286
SELECT + 66 DIV - COALESCE ( + 81, - 53 + + COUNT( * ) + - 5 + - - 72 DIV + 81, + 31 ) * 79
----
0

skipif mysql # not compatible
query I rowsort label-7286
SELECT + 66 / - COALESCE ( + 81, - 53 + + COUNT ( * ) + - 5 + - - 72 / + 81, + 31 ) * 79
----
0

query II rowsort
SELECT + 83 * CASE + 9 WHEN + ( + - 52 ) THEN + 35 WHEN AVG ( DISTINCT - 37 ) THEN NULL END / - - 73 AS col0, - 11
----
NULL
-11

query I rowsort
SELECT DISTINCT - ( 95 ) * ( + - 63 )
----
5985

onlyif mysql # DIV for integer division: 
query I rowsort label-7289
SELECT DISTINCT - 30 DIV 68 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7289
SELECT DISTINCT - 30 / 68 AS col1
----
0

query II rowsort
SELECT ALL 12 AS col1, 12 * + COALESCE ( - 92, - 91, 30, - 12 + + 60 ) * 74
----
12
-81696

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT ( + + 49 ) + - 43 + + + COALESCE ( - 22, COUNT( * ) ) + - + 1
----
-17

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT ( + + 49 ) + - 43 + + + COALESCE ( - 22, COUNT ( * ) ) + - + 1
----
-17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7292
SELECT DISTINCT + ( 77 ) + + 7 * - + COUNT( ALL + - 79 ) * - 98 + + 34 + - 93 + - COUNT( * ) DIV MIN( ALL + 69 ) * + COUNT( * ) + - 5 * - NULLIF ( + 72, 95 + ( + - 86 ) )
----
1064

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT + ( 77 ) + + 7 * - + COUNT ( ALL + - 79 ) * - 98 + + 34 + - 93 + - COUNT ( * ) / MIN ( ALL + 69 ) * + COUNT ( * ) + - 5 * - NULLIF ( + 72, 95 + ( + - 86 ) )
----
1064

query II rowsort
SELECT DISTINCT + 3 AS col0, ( + 61 ) AS col1
----
3
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7294
SELECT 12 * + 73 + - 34 + CASE + + CASE - 93 WHEN + + 91 THEN - 8 ELSE + 24 DIV + 91 * + COUNT( * ) * + 47 * 46 END WHEN + 59 + + + 28 THEN NULL ELSE - 93 DIV + 30 - + NULLIF ( - 49, - 29 + + ( 24 ) ) END * - 81
----
-2884

skipif mysql # not compatible
query I rowsort label-7294
SELECT 12 * + 73 + - 34 + CASE + + CASE - 93 WHEN + + 91 THEN - 8 ELSE + 24 / + 91 * + COUNT ( * ) * + 47 * 46 END WHEN + 59 + + + 28 THEN NULL ELSE - 93 / + 30 - + NULLIF ( - 49, - 29 + + ( 24 ) ) END * - 81
----
-2884

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7295
SELECT 13 * - - COUNT( * ) DIV - + 65 + - - 88
----
88

skipif mysql # not compatible
query I rowsort label-7295
SELECT 13 * - - COUNT ( * ) / - + 65 + - - 88
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7296
SELECT DISTINCT + COUNT( ALL 24 )
----
1

skipif mysql # not compatible
query I rowsort label-7296
SELECT DISTINCT + COUNT ( ALL 24 )
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7297
SELECT + CASE - + 97 WHEN + 49 THEN + ( + 45 ) ELSE - 91 END * - - 67 * + 63 + + COUNT( * ) * - ( + 14 ) * + 49 AS col1, 51 DIV + 12 AS col2
----
-384797
4

skipif mysql # not compatible
query II rowsort label-7297
SELECT + CASE - + 97 WHEN + 49 THEN + ( + 45 ) ELSE - 91 END * - - 67 * + 63 + + COUNT ( * ) * - ( + 14 ) * + 49 AS col1, 51 / + 12 AS col2
----
-384797
4

query I rowsort
SELECT ( - 74 ) AS col0
----
-74

query II rowsort
SELECT ALL + 95, 63 AS col2
----
95
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT + + ( - MAX( + 29 ) ) * + - 89
----
2581

skipif mysql # not compatible
query I rowsort label-7300
SELECT + + ( - MAX ( + 29 ) ) * + - 89
----
2581

query I rowsort
SELECT ALL 22 * 56
----
1232

query I rowsort
SELECT + 92 + + 81
----
173

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7303
SELECT ALL 61 DIV 66 - - 42 + - 38 * - - SUM( ALL + 10 ) - + + 6 * 17 + + + 24 * 57
----
928

skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL 61 / 66 - - 42 + - 38 * - - SUM ( ALL + 10 ) - + + 6 * 17 + + + 24 * 57
----
928

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT + - 28 * 11 * 95 * COUNT( - + 89 ) + + 13
----
-29247

skipif mysql # not compatible
query I rowsort label-7304
SELECT + - 28 * 11 * 95 * COUNT ( - + 89 ) + + 13
----
-29247

query II rowsort
SELECT - 95 AS col2, 35
----
-95
35

query II rowsort
SELECT DISTINCT + 24 AS col2, 70 + + 79 * - + 47
----
24
-3643

query I rowsort
SELECT ALL 88 * - 32 + + - ( 14 ) AS col0
----
-2830

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7308
SELECT + 28 DIV - + 94 + 61 + - COUNT( * ) AS col1
----
60

skipif mysql # not compatible
query I rowsort label-7308
SELECT + 28 / - + 94 + 61 + - COUNT ( * ) AS col1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT + MAX( ALL - 60 ) col0
----
-60

skipif mysql # not compatible
query I rowsort label-7309
SELECT + MAX ( ALL - 60 ) col0
----
-60

query I rowsort
SELECT ( + + 9 ) + + 41
----
50

query I rowsort
SELECT DISTINCT 46 * - 93 AS col2
----
-4278

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7312
SELECT DISTINCT 50 * + 39 / - - CAST( NULL AS SIGNED ) / - + CAST( - + 83 AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT DISTINCT 50 * + 39 / - - CAST ( NULL AS INTEGER ) / - + CAST ( - + 83 AS INTEGER ) AS col1
----
NULL

query II rowsort
SELECT ALL + 55 AS col1, ( 27 )
----
55
27

query II rowsort
SELECT COALESCE ( - + 87, - + 84, - - 15 ) col0, - 83
----
-87
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT - COUNT( ALL - 92 ) col0
----
-1

skipif mysql # not compatible
query I rowsort label-7315
SELECT - COUNT ( ALL - 92 ) col0
----
-1

query I rowsort
SELECT 29 + 5 AS col0
----
34

onlyif mysql # aggregate syntax: 
query II rowsort label-7317
SELECT - + 44, SUM( - 78 ) + 37 col0
----
-44
-41

skipif mysql # not compatible
query II rowsort label-7317
SELECT - + 44, SUM ( - 78 ) + 37 col0
----
-44
-41

query I rowsort
SELECT - - 31 AS col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT + COUNT( * ) * - + 11 * + 94 * - 41 AS col1
----
42394

skipif mysql # not compatible
query I rowsort label-7319
SELECT + COUNT ( * ) * - + 11 * + 94 * - 41 AS col1
----
42394

query I rowsort
SELECT ALL + - 19 + 68
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT ALL - - 57 + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-7321
SELECT ALL - - 57 + COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7322
SELECT + CAST( - NULLIF ( + COUNT( * ), - NULLIF ( + 63, + 74 + 19 ) * COUNT( * ) + - - 84 * + + 37 - MAX( ALL + + 19 ) + COUNT( * ) - - 63 ) AS SIGNED ) - + - 82 * + + COUNT( * ) AS col1
----
81

skipif mysql # not compatible
query I rowsort label-7322
SELECT + CAST ( - NULLIF ( + COUNT ( * ), - NULLIF ( + 63, + 74 + 19 ) * COUNT ( * ) + - - 84 * + + 37 - MAX ( ALL + + 19 ) + COUNT ( * ) - - 63 ) AS INTEGER ) - + - 82 * + + COUNT ( * ) AS col1
----
81

query I rowsort
SELECT 10 - - - 93 AS col1
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-7324
SELECT ALL - COUNT( * ) * + - 94 AS col0, + 31 - - 89
----
94
120

skipif mysql # not compatible
query II rowsort label-7324
SELECT ALL - COUNT ( * ) * + - 94 AS col0, + 31 - - 89
----
94
120

query I rowsort
SELECT ALL 60 + + - COALESCE ( - - 28, - 97 + + ( - + ( + + 7 ) ) )
----
32

query I rowsort
SELECT 41 + 90 AS col1
----
131

onlyif mysql # DIV for integer division: 
query I rowsort label-7327
SELECT 31 DIV - - NULLIF ( + 31, + - 29 * - - 96 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7327
SELECT 31 / - - NULLIF ( + 31, + - 29 * - - 96 ) AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT + COUNT( * ) * - 61 + COUNT( * ) col1
----
-60

skipif mysql # not compatible
query I rowsort label-7328
SELECT + COUNT ( * ) * - 61 + COUNT ( * ) col1
----
-60

query I rowsort
SELECT ALL - 54 * - NULLIF ( 58, 51 )
----
3132

query I rowsort
SELECT ALL 10 * + + 22 * - - 54
----
11880

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT ALL 28 * - 66 * + MAX( - ( - - 72 ) ) col0
----
133056

skipif mysql # not compatible
query I rowsort label-7331
SELECT ALL 28 * - 66 * + MAX ( - ( - - 72 ) ) col0
----
133056

onlyif mysql # aggregate syntax: 
query I rowsort label-7332
SELECT + SUM( DISTINCT 5 ) AS col0
----
5

skipif mysql # not compatible
query I rowsort label-7332
SELECT + SUM ( DISTINCT 5 ) AS col0
----
5

query I rowsort
SELECT ALL + - 97 * - - 85 * + - 55 * ( - + 16 )
----
-7255600

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT + SUM( + 32 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7334
SELECT + SUM ( + 32 ) AS col0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7335
SELECT ALL - COALESCE ( 32, + 6 + CASE - COUNT( * ) WHEN - - COUNT( * ) + 97 THEN - - 72 * + + 83 * 84 + - 10 + - + ( 38 ) ELSE NULL END, 89 + - ( - - 60 ) + + MAX( DISTINCT + + 11 ) + + 68 + + - COALESCE ( + 23, - + COALESCE ( 98, CAST( NULL AS SIGNED ) * + 53 ) * + 49 ) * - 41 * - 98 ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL - COALESCE ( 32, + 6 + CASE - COUNT ( * ) WHEN - - COUNT ( * ) + 97 THEN - - 72 * + + 83 * 84 + - 10 + - + ( 38 ) ELSE NULL END, 89 + - ( - - 60 ) + + MAX ( DISTINCT + + 11 ) + + 68 + + - COALESCE ( + 23, - + COALESCE ( 98, CAST ( NULL AS INTEGER ) * + 53 ) * + 49 ) * - 41 * - 98 ) AS col0
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7336
SELECT + - 52 * COUNT( * ) + + NULLIF ( 58, - 80 + + 96 ) - + + 13 + + 63 * + + COALESCE ( 50, 58 + 63, CAST( NULL AS SIGNED ) )
----
3143

skipif mysql # not compatible
query I rowsort label-7336
SELECT + - 52 * COUNT ( * ) + + NULLIF ( 58, - 80 + + 96 ) - + + 13 + + 63 * + + COALESCE ( 50, 58 + 63, CAST ( NULL AS INTEGER ) )
----
3143

query I rowsort
SELECT + 16 * + 42 AS col0
----
672

query I rowsort
SELECT 28 * - 48 * + - 67 * + 55 * - ( + - 8 ) + - 7 * + - 22 AS col0
----
39621274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT - 86 / - 33 * - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT - 86 / - 33 * - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL 36 + - 5 + COUNT( * ) AS col1
----
32

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL 36 + - 5 + COUNT ( * ) AS col1
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT DISTINCT 80 DIV 79 DIV + 67 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7341
SELECT DISTINCT 80 / 79 / + 67 AS col2
----
0

query I rowsort
SELECT + 19 + + 20 AS col0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7343
SELECT + ( - 90 ) AS col1, + ( - 78 ) + - - COUNT( * )
----
-90
-77

skipif mysql # not compatible
query II rowsort label-7343
SELECT + ( - 90 ) AS col1, + ( - 78 ) + - - COUNT ( * )
----
-90
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT ALL - 34 + + - SUM( DISTINCT - + 66 ) AS col0
----
32

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL - 34 + + - SUM ( DISTINCT - + 66 ) AS col0
----
32

query I rowsort
SELECT 77 * - 62 + + 92 AS col0
----
-4682

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT + NULLIF ( - 8, - - 18 ) * - + CASE + ( 71 ) WHEN - 43 THEN 7 END + - COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7346
SELECT + NULLIF ( - 8, - - 18 ) * - + CASE + ( 71 ) WHEN - 43 THEN 7 END + - COUNT ( * ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT 36 - + ( - + COUNT( * ) ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7347
SELECT 36 - + ( - + COUNT ( * ) ) AS col2
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7348
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 50 + + COALESCE ( SUM( - 21 ), - 46 ) * - 78 + 27 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7348
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 50 + + COALESCE ( SUM ( - 21 ), - 46 ) * - 78 + 27 * - COUNT ( * )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7349
SELECT DISTINCT + CAST( + 88 AS SIGNED ) DIV + - COALESCE ( - + 80, - 17 - 41 - + - 29 * 94 + COUNT( * ) ) + + 97 AS col0
----
98

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT + CAST ( + 88 AS INTEGER ) / + - COALESCE ( - + 80, - 17 - 41 - + - 29 * 94 + COUNT ( * ) ) + + 97 AS col0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL - COUNT( * ) + - - 81 + - - 33 + - 4 * - 51
----
317

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL - COUNT ( * ) + - - 81 + - - 33 + - 4 * - 51
----
317

query I rowsort
SELECT ALL + 57 + + - 17 col0
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7352
SELECT 96 AS col0, COUNT( * ) * - + 45 - - 28 DIV + ( 41 ) * - 35 * - + 92 * 9
----
96
-45

skipif mysql # not compatible
query II rowsort label-7352
SELECT 96 AS col0, COUNT ( * ) * - + 45 - - 28 / + ( 41 ) * - 35 * - + 92 * 9
----
96
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7353
SELECT 45 + - + 1 * + - MAX( ALL + ( 8 ) ) * - - 88 + + MAX( ALL + 64 ) - - CAST( NULL AS SIGNED ) * 18 + + - 72, 5 * - + 70 + 4 + 7 * - + CAST( NULL AS SIGNED )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7353
SELECT 45 + - + 1 * + - MAX ( ALL + ( 8 ) ) * - - 88 + + MAX ( ALL + 64 ) - - CAST ( NULL AS INTEGER ) * 18 + + - 72, 5 * - + 70 + 4 + 7 * - + CAST ( NULL AS INTEGER )
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7354
SELECT ALL 6 + + COUNT( ALL 19 ), - 68 AS col2
----
7
-68

skipif mysql # not compatible
query II rowsort label-7354
SELECT ALL 6 + + COUNT ( ALL 19 ), - 68 AS col2
----
7
-68

query II rowsort
SELECT 77 AS col0, 40
----
77
40

query I rowsort
SELECT 35 * 92
----
3220

query I rowsort
SELECT 41 + 15 col1
----
56

query I rowsort
SELECT 76 * - 66 AS col1
----
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7359
SELECT CAST( 72 AS SIGNED ) + + 87 + 57
----
216

skipif mysql # not compatible
query I rowsort label-7359
SELECT CAST ( 72 AS INTEGER ) + + 87 + 57
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT ALL 5 - + 14 - ( 75 ) * + MIN( ALL - ( - + 10 ) ) + - ( COALESCE ( 42, COUNT( * ) ) ) * - 73
----
2307

skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL 5 - + 14 - ( 75 ) * + MIN ( ALL - ( - + 10 ) ) + - ( COALESCE ( 42, COUNT ( * ) ) ) * - 73
----
2307

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT 60 * COUNT( * ) AS col2
----
60

skipif mysql # not compatible
query I rowsort label-7361
SELECT 60 * COUNT ( * ) AS col2
----
60

onlyif mysql # aggregate syntax: 
query II rowsort label-7362
SELECT 66 + + COUNT( * ) + + 45 + COALESCE ( 73, 56 ) AS col1, - 76 AS col2
----
185
-76

skipif mysql # not compatible
query II rowsort label-7362
SELECT 66 + + COUNT ( * ) + + 45 + COALESCE ( 73, 56 ) AS col1, - 76 AS col2
----
185
-76

query I rowsort
SELECT DISTINCT 40 * + 93 col1
----
3720

query I rowsort
SELECT 76 + - 30
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7365
SELECT + 24 DIV 99 * + - COUNT( * ) + + + 31
----
31

skipif mysql # not compatible
query I rowsort label-7365
SELECT + 24 / 99 * + - COUNT ( * ) + + + 31
----
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7366
SELECT + COALESCE ( + - 76, COALESCE ( + MIN( + + 69 ), - 41 ) DIV - + COUNT( + 9 ) * - ( + 99 ) * CAST( - - 42 AS SIGNED ) + 45 - + + NULLIF ( 96, 74 ) + + 63 DIV + + AVG ( + 26 ) ) col2
----
-76

skipif mysql # not compatible
query I rowsort label-7366
SELECT + COALESCE ( + - 76, COALESCE ( + MIN ( + + 69 ), - 41 ) / - + COUNT ( + 9 ) * - ( + 99 ) * CAST ( - - 42 AS INTEGER ) + 45 - + + NULLIF ( 96, 74 ) + + 63 / + + AVG ( + 26 ) ) col2
----
-76

query I rowsort
SELECT - 26 + - 67 + 21 * - - 35 AS col0
----
642

query I rowsort
SELECT + 10 - 48 AS col0
----
-38

query I rowsort
SELECT ALL + - 84 AS col1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-7370
SELECT ALL + COUNT( * ), + COUNT( * ) * - - NULLIF ( - + 85, + ( COUNT( * ) ) ) col1
----
1
-85

skipif mysql # not compatible
query II rowsort label-7370
SELECT ALL + COUNT ( * ), + COUNT ( * ) * - - NULLIF ( - + 85, + ( COUNT ( * ) ) ) col1
----
1
-85

query I rowsort
SELECT ALL 77 * 90 + + ( - + 57 )
----
6873

onlyif mysql # aggregate syntax: 
query I rowsort label-7372
SELECT - + COUNT( * ) + - COUNT( * ) + + - 3 * + - 1 * - 83 AS col1
----
-251

skipif mysql # not compatible
query I rowsort label-7372
SELECT - + COUNT ( * ) + - COUNT ( * ) + + - 3 * + - 1 * - 83 AS col1
----
-251

onlyif mysql # aggregate syntax: 
query II rowsort label-7373
SELECT + + 38, + 54 * - COUNT( * ) AS col2
----
38
-54

skipif mysql # not compatible
query II rowsort label-7373
SELECT + + 38, + 54 * - COUNT ( * ) AS col2
----
38
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7374
SELECT NULLIF ( - 29, + 6 - - + SUM( CAST( + + 88 AS SIGNED ) ) * 88 )
----
-29

skipif mysql # not compatible
query I rowsort label-7374
SELECT NULLIF ( - 29, + 6 - - + SUM ( CAST ( + + 88 AS INTEGER ) ) * 88 )
----
-29

onlyif mysql # aggregate syntax: 
query II rowsort label-7375
SELECT 14 AS col2, - COUNT( * ) AS col1
----
14
-1

skipif mysql # not compatible
query II rowsort label-7375
SELECT 14 AS col2, - COUNT ( * ) AS col1
----
14
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7376
SELECT ALL - 2 + + 13 DIV 63
----
-2

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - 2 + + 13 / 63
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-7377
SELECT - COUNT( * ), 12 * - COUNT( + 72 ) AS col2
----
-1
-12

skipif mysql # not compatible
query II rowsort label-7377
SELECT - COUNT ( * ), 12 * - COUNT ( + 72 ) AS col2
----
-1
-12

query I rowsort
SELECT ALL 1 + - + 72 col0
----
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT ALL ( - 6 ) AS col0, + 8 - - - COUNT( * ) * - + 47
----
-6
55

skipif mysql # not compatible
query II rowsort label-7379
SELECT ALL ( - 6 ) AS col0, + 8 - - - COUNT ( * ) * - + 47
----
-6
55

query I rowsort
SELECT DISTINCT ( + 57 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT + 83 * ( + COUNT( * ) ) AS col1
----
83

skipif mysql # not compatible
query I rowsort label-7381
SELECT + 83 * ( + COUNT ( * ) ) AS col1
----
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7382
SELECT + COUNT( * ) + + 60 AS col1, + ( - CAST( NULL AS SIGNED ) ) col0
----
61
NULL

skipif mysql # not compatible
query II rowsort label-7382
SELECT + COUNT ( * ) + + 60 AS col1, + ( - CAST ( NULL AS INTEGER ) ) col0
----
61
NULL

query I rowsort
SELECT + 47 - - + 99 - + - 74 col2
----
220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7384
SELECT ALL 59 * - - 45 AS col1, 23 * - CAST( NULL AS SIGNED )
----
2655
NULL

skipif mysql # not compatible
query II rowsort label-7384
SELECT ALL 59 * - - 45 AS col1, 23 * - CAST ( NULL AS INTEGER )
----
2655
NULL

query I rowsort
SELECT + 93 * 3
----
279

query I rowsort
SELECT - ( - - 68 ) AS col2
----
-68

query I rowsort
SELECT + 57 * - 47 AS col1
----
-2679

query I rowsort
SELECT - ( 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7389
SELECT - 80 + + 2 * + 3 * + 23 + CAST( NULL AS SIGNED ) / - 99 * - + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 80 + + 2 * + 3 * + 23 + CAST ( NULL AS INTEGER ) / - 99 * - + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT DISTINCT - COUNT( + + 52 ) * + 6 col2
----
-6

skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT - COUNT ( + + 52 ) * + 6 col2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT ALL + - COUNT( + + 67 )
----
-1

skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + - COUNT ( + + 67 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT ALL + COUNT( ALL - - 23 )
----
1

skipif mysql # not compatible
query I rowsort label-7392
SELECT ALL + COUNT ( ALL - - 23 )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7393
SELECT + 38 * COUNT( * ), 97 AS col2
----
38
97

skipif mysql # not compatible
query II rowsort label-7393
SELECT + 38 * COUNT ( * ), 97 AS col2
----
38
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7394
SELECT DISTINCT - 91 * - COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT - 91 * - COUNT ( * )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT + COALESCE ( - - 74, 16 * + 57 + + COUNT( * ) * - 83 )
----
74

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + COALESCE ( - - 74, 16 * + 57 + + COUNT ( * ) * - 83 )
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-7396
SELECT DISTINCT 75 DIV + 65 + + 59
----
60

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT 75 / + 65 + + 59
----
60

query II rowsort
SELECT + - ( - 86 ), 69 + 29 col1
----
86
98

query II rowsort
SELECT ( + 19 ) AS col2, 82 AS col1
----
19
82

query I rowsort
SELECT + 27 - 77 AS col1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7400
SELECT - COUNT( * ) DIV - - 49 * - ( + - CASE ( + 27 ) WHEN + 15 THEN NULL WHEN - + 9 * - 84 + + 87 * - - 55 THEN NULL ELSE + 9 END ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT - COUNT ( * ) / - - 49 * - ( + - CASE ( + 27 ) WHEN + 15 THEN NULL WHEN - + 9 * - 84 + + 87 * - - 55 THEN NULL ELSE + 9 END ) AS col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7401
SELECT - - 14 * - COUNT( * ) * - 6 - - CAST( 60 AS SIGNED ) * - 64 * + - 37 AS col2
----
142164

skipif mysql # not compatible
query I rowsort label-7401
SELECT - - 14 * - COUNT ( * ) * - 6 - - CAST ( 60 AS INTEGER ) * - 64 * + - 37 AS col2
----
142164

query I rowsort
SELECT - 10 * - NULLIF ( - 41, + - 8 ) + + 26 AS col0
----
-384

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7403
SELECT ALL + + ( - + 91 ) DIV 68 * + 98 AS col2, - CAST( 20 AS SIGNED ) * + + 66 - + + 14 AS col0
----
-98
-1334

skipif mysql # not compatible
query II rowsort label-7403
SELECT ALL + + ( - + 91 ) / 68 * + 98 AS col2, - CAST ( 20 AS INTEGER ) * + + 66 - + + 14 AS col0
----
-98
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + COUNT( 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + COUNT ( 1 )
----
1

query I rowsort
SELECT - 54 + + 26 AS col0
----
-28

query I rowsort
SELECT ALL - 49 * + 26 + 83 * - 36 + ( + + 26 )
----
-4236

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT - CASE - CASE 49 WHEN + 30 / 68 * 14 * 55 + + 32 THEN 85 + + MAX( DISTINCT - 74 ) WHEN + - SUM( - - 44 ) - + 35 THEN NULL END WHEN + 19 THEN - ( COUNT( * ) ) ELSE NULL END + + + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT - CASE - CASE 49 WHEN + 30 / 68 * 14 * 55 + + 32 THEN 85 + + MAX ( DISTINCT - 74 ) WHEN + - SUM ( - - 44 ) - + 35 THEN NULL END WHEN + 19 THEN - ( COUNT ( * ) ) ELSE NULL END + + + 19
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7408
SELECT ALL - 85 * + + 0 * 38 + + COUNT( * ) + - SUM( DISTINCT - + 86 ) DIV 72
----
2

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - 85 * + + 0 * 38 + + COUNT ( * ) + - SUM ( DISTINCT - + 86 ) / 72
----
2

query I rowsort
SELECT - + 20 * - ( 62 )
----
1240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7410
SELECT ALL + 15 DIV 63 * - 77 + + COUNT( ALL + 77 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7410
SELECT ALL + 15 / 63 * - 77 + + COUNT ( ALL + 77 ) AS col2
----
1

query II rowsort
SELECT ALL 29 * 5 AS col2, - 15
----
145
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7412
SELECT DISTINCT - 88 * CAST( NULL AS SIGNED ) - + 79 + - - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT - 88 * CAST ( NULL AS INTEGER ) - + 79 + - - 93
----
NULL

query I rowsort
SELECT - 59 + 30
----
-29

query I rowsort
SELECT ALL + 55 * + + 1 - - ( + 56 ) col2
----
111

query I rowsort
SELECT - 71 * - + 68 * 20 * - - 48 AS col2
----
4634880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7416
SELECT CASE 29 WHEN + - CAST( NULL AS SIGNED ) * + COALESCE ( - COUNT( ALL + - 21 ), + - 9 * + - 74 ) THEN + CASE MIN( - + 90 ) WHEN - 51 THEN - 83 ELSE - COALESCE ( - - COUNT( ALL - - 54 ), - + 46 ) * - 74 * + 63 - 93 END END
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT CASE 29 WHEN + - CAST ( NULL AS INTEGER ) * + COALESCE ( - COUNT ( ALL + - 21 ), + - 9 * + - 74 ) THEN + CASE MIN ( - + 90 ) WHEN - 51 THEN - 83 ELSE - COALESCE ( - - COUNT ( ALL - - 54 ), - + 46 ) * - 74 * + 63 - 93 END END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7417
SELECT - 47 + + MAX( DISTINCT + + CASE 66 WHEN 25 - - ( - 22 ) THEN NULL WHEN + 98 + + 18 THEN - ( - - 71 ) END ) + 17 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT - 47 + + MAX ( DISTINCT + + CASE 66 WHEN 25 - - ( - 22 ) THEN NULL WHEN + 98 + + 18 THEN - ( - - 71 ) END ) + 17 AS col2
----
NULL

query II rowsort
SELECT - 10, + 58 * + 33 col2
----
-10
1914

query I rowsort
SELECT - 24 + - + 17
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT - COUNT( * ) * 50 * 22 * + ( 75 )
----
-82500

skipif mysql # not compatible
query I rowsort label-7420
SELECT - COUNT ( * ) * 50 * 22 * + ( 75 )
----
-82500

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT ALL COUNT( * ) * + 18 AS col2
----
18

skipif mysql # not compatible
query I rowsort label-7421
SELECT ALL COUNT ( * ) * + 18 AS col2
----
18

query I rowsort
SELECT + ( - 11 ) * - 42 AS col1
----
462

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7423
SELECT - ( - + CAST( NULL AS DECIMAL ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7423
SELECT - ( - + CAST ( NULL AS REAL ) ) AS col0
----
NULL

query I rowsort
SELECT ALL 52 * 17 AS col1
----
884

onlyif mysql # DIV for integer division: 
query I rowsort label-7425
SELECT ( + + 31 ) DIV + - 77 + - 11
----
-11

skipif mysql # not compatible
query I rowsort label-7425
SELECT ( + + 31 ) / + - 77 + - 11
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT SUM( DISTINCT + + 74 ) + 70
----
144

skipif mysql # not compatible
query I rowsort label-7426
SELECT SUM ( DISTINCT + + 74 ) + 70
----
144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7427
SELECT - 39 AS col1, + 85 + MAX( 47 ) + + CAST( 42 AS SIGNED ) AS col0
----
-39
174

skipif mysql # not compatible
query II rowsort label-7427
SELECT - 39 AS col1, + 85 + MAX ( 47 ) + + CAST ( 42 AS INTEGER ) AS col0
----
-39
174

query I rowsort
SELECT 75 + - + 87 AS col0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + COUNT( * ) + + 94 * + + 89 * + - 61 + + 5
----
-510320

skipif mysql # not compatible
query I rowsort label-7429
SELECT + COUNT ( * ) + + 94 * + + 89 * + - 61 + + 5
----
-510320

query I rowsort
SELECT ALL - ( + 36 ) AS col2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT ALL - 62 + - + CASE + COUNT( * ) WHEN - 40 THEN - 6 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - 62 + - + CASE + COUNT ( * ) WHEN - 40 THEN - 6 END AS col1
----
NULL

query I rowsort
SELECT - 45 + + 53 - - ( - - 34 ) * - 16 + + 68
----
-468

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7433
SELECT ALL 89 + - 84 DIV + CAST( + ( - NULLIF ( - - 47, ( - NULLIF ( 18, - 57 + - + COALESCE ( - - 88, + - 46 - 24, - 24 * 43 * - + ( + - COUNT( * ) ) + - COUNT( * ) ) * + COUNT( * ) ) ) + - 32 * 44 * + + COUNT( * ) ) ) AS SIGNED ) AS col2, COUNT( * ) * + 28
----
90
28

skipif mysql # not compatible
query II rowsort label-7433
SELECT ALL 89 + - 84 / + CAST ( + ( - NULLIF ( - - 47, ( - NULLIF ( 18, - 57 + - + COALESCE ( - - 88, + - 46 - 24, - 24 * 43 * - + ( + - COUNT ( * ) ) + - COUNT ( * ) ) * + COUNT ( * ) ) ) + - 32 * 44 * + + COUNT ( * ) ) ) AS INTEGER ) AS col2, COUNT ( * ) * + 28
----
90
28

query I rowsort
SELECT - 94 * - 79 * + 3 + - 25 + + + 3 * + 75 AS col2
----
22478

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT ALL + COUNT( * ) * ( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-7435
SELECT ALL + COUNT ( * ) * ( 67 ) AS col1
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7436
SELECT - - 53 * 70 - - ( - 17 ) + - MIN( DISTINCT - 9 ) DIV - 8
----
3692

skipif mysql # not compatible
query I rowsort label-7436
SELECT - - 53 * 70 - - ( - 17 ) + - MIN ( DISTINCT - 9 ) / - 8
----
3692

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT DISTINCT - + COALESCE ( + - 0, 72 * 80 + + 66, - ( - NULLIF ( - ( - 24 ), - 19 ) ) DIV - 68 ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT - + COALESCE ( + - 0, 72 * 80 + + 66, - ( - NULLIF ( - ( - 24 ), - 19 ) ) / - 68 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT SUM( DISTINCT - 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-7438
SELECT SUM ( DISTINCT - 57 )
----
-57

query I rowsort
SELECT ALL + 86 * - 73 * - - 19
----
-119282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7440
SELECT DISTINCT - CASE 27 WHEN 4 THEN + 2 WHEN 30 * 39 THEN NULL WHEN COUNT( DISTINCT + ( + + NULLIF ( + COALESCE ( + ( - 48 ), + 63 ), - - 94 ) ) ) THEN + - 74 + - 43 ELSE - 45 DIV - COUNT( * ) END * + 7 AS col1
----
-315

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT - CASE 27 WHEN 4 THEN + 2 WHEN 30 * 39 THEN NULL WHEN COUNT ( DISTINCT + ( + + NULLIF ( + COALESCE ( + ( - 48 ), + 63 ), - - 94 ) ) ) THEN + - 74 + - 43 ELSE - 45 / - COUNT ( * ) END * + 7 AS col1
----
-315

query I rowsort
SELECT ALL 57 - + 63 + - + ( 70 ) AS col1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + + MAX( DISTINCT - + 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-7442
SELECT + + MAX ( DISTINCT - + 48 ) AS col1
----
-48

query I rowsort
SELECT 61 * + 65
----
3965

onlyif mysql # aggregate syntax: 
query II rowsort label-7444
SELECT 93 AS col1, NULLIF ( + 32, + 12 + MIN( 83 ) * + + 80 )
----
93
32

skipif mysql # not compatible
query II rowsort label-7444
SELECT 93 AS col1, NULLIF ( + 32, + 12 + MIN ( 83 ) * + + 80 )
----
93
32

onlyif mysql # aggregate syntax: 
query II rowsort label-7445
SELECT + 52 AS col2, + CASE 64 WHEN COUNT( * ) - - 98 - 45 * 17 THEN + 26 ELSE NULL END
----
52
NULL

skipif mysql # not compatible
query II rowsort label-7445
SELECT + 52 AS col2, + CASE 64 WHEN COUNT ( * ) - - 98 - 45 * 17 THEN + 26 ELSE NULL END
----
52
NULL

query I rowsort
SELECT COALESCE ( + 16, + + 33 * ( + + 41 ) + 22 ) + + 26 AS col1
----
42

query I rowsort
SELECT 60 * + 47 AS col1
----
2820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT ALL - CAST( NULL AS SIGNED ) / - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-7448
SELECT ALL - CAST ( NULL AS INTEGER ) / - 90
----
NULL

query I rowsort
SELECT ALL + 63 * 33
----
2079

query I rowsort
SELECT 50 * - 27
----
-1350

onlyif mysql # DIV for integer division: 
query I rowsort label-7451
SELECT 86 + - + ( + 55 ) DIV + 72 + - 46 AS col2
----
40

skipif mysql # not compatible
query I rowsort label-7451
SELECT 86 + - + ( + 55 ) / + 72 + - 46 AS col2
----
40

onlyif mysql # aggregate syntax: 
query II rowsort label-7452
SELECT - 29 AS col2, - MIN( - 16 ) col2
----
-29
16

skipif mysql # not compatible
query II rowsort label-7452
SELECT - 29 AS col2, - MIN ( - 16 ) col2
----
-29
16

query I rowsort
SELECT ALL - 91 + - 5
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT 69 - - 58 + + COUNT( * ) AS col0
----
128

skipif mysql # not compatible
query I rowsort label-7454
SELECT 69 - - 58 + + COUNT ( * ) AS col0
----
128

query II rowsort
SELECT - 83, + 49 + 22 AS col0
----
-83
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT 76 * + 17 / - 78 / + CAST( NULL AS SIGNED ) / - + COUNT( * ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT 76 * + 17 / - 78 / + CAST ( NULL AS INTEGER ) / - + COUNT ( * ) AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7457
SELECT 79 - + 32 - - - 5 + + + 59 - CAST( + - COUNT( * ) AS SIGNED ) DIV - 87 * - ( + 85 ) + + 73 * - - 97 * 66 AS col2
----
467447

skipif mysql # not compatible
query I rowsort label-7457
SELECT 79 - + 32 - - - 5 + + + 59 - CAST ( + - COUNT ( * ) AS INTEGER ) / - 87 * - ( + 85 ) + + 73 * - - 97 * 66 AS col2
----
467447

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7458
SELECT DISTINCT + 46 * - COALESCE ( - CAST( - 74 AS SIGNED ), NULLIF ( + 7, + + 75 ), COUNT( * ) ) AS col2
----
-3404

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + 46 * - COALESCE ( - CAST ( - 74 AS INTEGER ), NULLIF ( + 7, + + 75 ), COUNT ( * ) ) AS col2
----
-3404

onlyif mysql # aggregate syntax: 
query I rowsort label-7459
SELECT ALL - COALESCE ( + + ( - 78 ), + 52, - COUNT( * ) * - - MAX( + 26 ) ) col2
----
78

skipif mysql # not compatible
query I rowsort label-7459
SELECT ALL - COALESCE ( + + ( - 78 ), + 52, - COUNT ( * ) * - - MAX ( + 26 ) ) col2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT DISTINCT - COALESCE ( - - COUNT( * ), + 84 ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-7460
SELECT DISTINCT - COALESCE ( - - COUNT ( * ), + 84 ) col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT DISTINCT - - MAX( 99 ) + - + 19 + + 48 - + 87
----
41

skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT - - MAX ( 99 ) + - + 19 + + 48 - + 87
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7462
SELECT ALL - 98 AS col2, CAST( NULL AS SIGNED ) / MAX( DISTINCT - + 87 ) AS col2
----
-98
NULL

skipif mysql # not compatible
query II rowsort label-7462
SELECT ALL - 98 AS col2, CAST ( NULL AS INTEGER ) / MAX ( DISTINCT - + 87 ) AS col2
----
-98
NULL

query I rowsort
SELECT ALL + + 33 + + 8 * + 85 AS col0
----
713

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT - + COUNT( * ) AS col2, COUNT( * ) * - 42 + 82 AS col2
----
-1
40

skipif mysql # not compatible
query II rowsort label-7464
SELECT - + COUNT ( * ) AS col2, COUNT ( * ) * - 42 + 82 AS col2
----
-1
40

query I rowsort
SELECT + 95 * 59
----
5605

query I rowsort
SELECT - + ( 13 )
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT + - 94 * + 50 - - + CASE 6 WHEN + COUNT( * ) / COUNT( * ) THEN - - 6 * MAX( - 10 ) WHEN 91 + - ( - 74 ) THEN NULL ELSE NULL END * + 33 * + 12 / - 38
----
NULL

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT + - 94 * + 50 - - + CASE 6 WHEN + COUNT ( * ) / COUNT ( * ) THEN - - 6 * MAX ( - 10 ) WHEN 91 + - ( - 74 ) THEN NULL ELSE NULL END * + 33 * + 12 / - 38
----
NULL

query I rowsort
SELECT DISTINCT - - 29 * - - 16 * + - 37 + + 39 - 87 * - 74
----
-10691

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT 59 * COUNT( DISTINCT - 68 ) * + 26 - 32 * + CASE 76 WHEN 89 THEN + 76 * - 85 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT 59 * COUNT ( DISTINCT - 68 ) * + 26 - 32 * + CASE 76 WHEN 89 THEN + 76 * - 85 END AS col0
----
NULL

query I rowsort
SELECT ALL - 15 * - 11
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7471
SELECT ALL + 48 * + CAST( NULL AS SIGNED ) * - - 41 - + - 87
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + 48 * + CAST ( NULL AS INTEGER ) * - - 41 - + - 87
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7472
SELECT 60 * + COUNT( * ) + COUNT( * ) DIV - 26 * + - 45 * 50 + - COUNT( * ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-7472
SELECT 60 * + COUNT ( * ) + COUNT ( * ) / - 26 * + - 45 * 50 + - COUNT ( * ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT + COUNT( DISTINCT - ( 88 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7473
SELECT + COUNT ( DISTINCT - ( 88 ) ) AS col2
----
1

query II rowsort
SELECT DISTINCT - 56 AS col2, 63
----
-56
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT - 89 * AVG ( DISTINCT - 36 ) * - - CAST( NULL AS SIGNED ) + + - 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7475
SELECT - 89 * AVG ( DISTINCT - 36 ) * - - CAST ( NULL AS INTEGER ) + + - 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7476
SELECT + MIN( + 29 )
----
29

skipif mysql # not compatible
query I rowsort label-7476
SELECT + MIN ( + 29 )
----
29

query I rowsort
SELECT 54 + 34
----
88

query II rowsort
SELECT DISTINCT 41 * - 7, 88 AS col0
----
-287
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT CASE - + 44 WHEN + 64 THEN NULL WHEN + + 26 THEN 53 ELSE + + COUNT( - 99 ) * - 59 END * - 34 + + 1 + + COUNT( + 66 ) AS col1
----
2008

skipif mysql # not compatible
query I rowsort label-7479
SELECT CASE - + 44 WHEN + 64 THEN NULL WHEN + + 26 THEN 53 ELSE + + COUNT ( - 99 ) * - 59 END * - 34 + + 1 + + COUNT ( + 66 ) AS col1
----
2008

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - 5 + - + SUM( + COALESCE ( - 79, - - 95 ) ) * 37
----
2918

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - 5 + - + SUM ( + COALESCE ( - 79, - - 95 ) ) * 37
----
2918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7481
SELECT + ( - COUNT( * ) ) + - CAST( + 37 AS SIGNED ) + + 73 * - 6 AS col0
----
-476

skipif mysql # not compatible
query I rowsort label-7481
SELECT + ( - COUNT ( * ) ) + - CAST ( + 37 AS INTEGER ) + + 73 * - 6 AS col0
----
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-7482
SELECT ALL MIN( - 97 )
----
-97

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL MIN ( - 97 )
----
-97

query I rowsort
SELECT ALL 34 + - 40 + - - 79 col1
----
73

query II rowsort
SELECT ALL - 60 + 98 AS col0, + 91 AS col0
----
38
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT 27 + - - CAST( - 68 AS SIGNED ) DIV + - 71 * + 13 * - COUNT( * ) + + 2
----
29

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT 27 + - - CAST ( - 68 AS INTEGER ) / + - 71 * + 13 * - COUNT ( * ) + + 2
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7486
SELECT + + COUNT( * ) + - 82
----
-81

skipif mysql # not compatible
query I rowsort label-7486
SELECT + + COUNT ( * ) + - 82
----
-81

query I rowsort
SELECT - - 34 * 13 - - 57 + - - 36
----
535

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - 31 + ( - COUNT( - + 14 ) )
----
-32

skipif mysql # not compatible
query I rowsort label-7488
SELECT - 31 + ( - COUNT ( - + 14 ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-7489
SELECT DISTINCT + 12 * + 67 + - - 6 DIV - 1 - - 28
----
826

skipif mysql # not compatible
query I rowsort label-7489
SELECT DISTINCT + 12 * + 67 + - - 6 / - 1 - - 28
----
826

query II rowsort
SELECT - CASE + + 81 WHEN - 51 THEN + + 52 * - - 52 + + ( 36 ) END AS col0, - 13
----
NULL
-13

query I rowsort
SELECT ALL - 79 * - 9 * + ( + 6 )
----
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT - 63 - + COUNT( * )
----
-64

skipif mysql # not compatible
query I rowsort label-7492
SELECT - 63 - + COUNT ( * )
----
-64

query II rowsort
SELECT ALL + 88 - + + 39 AS col2, 56
----
49
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7494
SELECT - 20 + 79 + COUNT( * ) AS col0
----
60

skipif mysql # not compatible
query I rowsort label-7494
SELECT - 20 + 79 + COUNT ( * ) AS col0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT DISTINCT + - ( ( 40 ) ) - - + 9 + 24 * + - COUNT( * )
----
-55

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT + - ( ( 40 ) ) - - + 9 + 24 * + - COUNT ( * )
----
-55

query I rowsort
SELECT ALL ( 31 ) AS col0
----
31

query II rowsort
SELECT - - 33 + 51 AS col0, - 66 AS col1
----
84
-66

query I rowsort
SELECT - 47 * + + 54 col2
----
-2538

onlyif mysql # aggregate syntax: 
query II rowsort label-7499
SELECT + - COUNT( ALL 70 ) AS col2, 81 AS col1
----
-1
81

skipif mysql # not compatible
query II rowsort label-7499
SELECT + - COUNT ( ALL 70 ) AS col2, 81 AS col1
----
-1
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7500
SELECT + + COUNT( * ) / - 69 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT + + COUNT ( * ) / - 69 + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT NULLIF ( - ( - + 59 ), + 81 ) AS col0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT - + 14 * + + 74 * MAX( + 48 )
----
-49728

skipif mysql # not compatible
query I rowsort label-7502
SELECT - + 14 * + + 74 * MAX ( + 48 )
----
-49728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7503
SELECT + + CAST( NULL AS SIGNED ) + + + CAST( - - 25 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7503
SELECT + + CAST ( NULL AS INTEGER ) + + + CAST ( - - 25 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT ALL - - 51 * - 90 * - + 47
----
215730

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT COALESCE ( - COUNT( ALL - 74 ), + 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-7505
SELECT COALESCE ( - COUNT ( ALL - 74 ), + 34 )
----
-1

query I rowsort
SELECT ALL 36 * - 44 AS col2
----
-1584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT - NULLIF ( CAST( - 21 AS SIGNED ), - 10 ) * - 8 AS col0
----
-168

skipif mysql # not compatible
query I rowsort label-7507
SELECT - NULLIF ( CAST ( - 21 AS INTEGER ), - 10 ) * - 8 AS col0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT DISTINCT + CAST( + 16 AS SIGNED ) AS col0
----
16

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT + CAST ( + 16 AS INTEGER ) AS col0
----
16

query I rowsort
SELECT ALL - 36 * + 47 AS col0
----
-1692

query I rowsort
SELECT + 77 * + 16
----
1232

onlyif mysql # aggregate syntax: 
query II rowsort label-7511
SELECT ALL MIN( + + 54 ) * + COUNT( * ) + - 66 AS col1, - 61
----
-12
-61

skipif mysql # not compatible
query II rowsort label-7511
SELECT ALL MIN ( + + 54 ) * + COUNT ( * ) + - 66 AS col1, - 61
----
-12
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-7512
SELECT + 94 + + - 25 DIV + - 44 - - 13
----
107

skipif mysql # not compatible
query I rowsort label-7512
SELECT + 94 + + - 25 / + - 44 - - 13
----
107

query I rowsort
SELECT ALL - 63 * + + 35
----
-2205

query I rowsort
SELECT - 6 * 72 AS col1
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-7515
SELECT - 65 DIV + + 47 AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-7515
SELECT - 65 / + + 47 AS col2
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-7516
SELECT NULLIF ( + 11, + - 33 ) AS col2, - 26 DIV 76 AS col0
----
11
0

skipif mysql # not compatible
query II rowsort label-7516
SELECT NULLIF ( + 11, + - 33 ) AS col2, - 26 / 76 AS col0
----
11
0

query I rowsort
SELECT + ( 53 )
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7518
SELECT ALL 2 * CAST( - CAST( - 19 AS SIGNED ) AS SIGNED ) + 43
----
81

skipif mysql # not compatible
query I rowsort label-7518
SELECT ALL 2 * CAST ( - CAST ( - 19 AS INTEGER ) AS INTEGER ) + 43
----
81

query I rowsort
SELECT ALL 22 * CASE + 64 WHEN + 66 / - 29 + 86 + - 8 * + 48 THEN NULL ELSE - + 48 END AS col1
----
-1056

onlyif mysql # aggregate syntax: 
query I rowsort label-7520
SELECT + COALESCE ( - - COUNT( * ), - 50 * - 80 - + NULLIF ( 77, - + 45 + COALESCE ( - 24, - ( 2 ) * - - 44 * - - 79 ) ) + - 1 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT + COALESCE ( - - COUNT ( * ), - 50 * - 80 - + NULLIF ( 77, - + 45 + COALESCE ( - 24, - ( 2 ) * - - 44 * - - 79 ) ) + - 1 ) col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) * + 77 + - ( - - MAX( 46 ) ) + + ( - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) * + 77 + - ( - - MAX ( 46 ) ) + + ( - 68 )
----
NULL

query I rowsort
SELECT - ( - NULLIF ( - 33, + 80 ) )
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL SUM( 82 ) col0
----
82

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL SUM ( 82 ) col0
----
82

query I rowsort
SELECT ALL + NULLIF ( + 39, + - 40 ) * + 53 + + 40 + - 96 AS col0
----
2011

query I rowsort
SELECT ALL 86 * 84 * + - 15 * - 20 AS col2
----
2167200

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT MAX( DISTINCT + - 75 ) AS col2
----
-75

skipif mysql # not compatible
query I rowsort label-7526
SELECT MAX ( DISTINCT + - 75 ) AS col2
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7527
SELECT + 98 + + SUM( DISTINCT + - NULLIF ( ( + 75 ), - + 92 ) ) col2, CAST( NULL AS SIGNED ) + + 62 * ( 40 ) * - - 36 * + + 95 * 59
----
23
NULL

skipif mysql # not compatible
query II rowsort label-7527
SELECT + 98 + + SUM ( DISTINCT + - NULLIF ( ( + 75 ), - + 92 ) ) col2, CAST ( NULL AS INTEGER ) + + 62 * ( 40 ) * - - 36 * + + 95 * 59
----
23
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT COUNT( - 53 ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7528
SELECT COUNT ( - 53 ) col0
----
1

query I rowsort
SELECT - - 81 col2
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7530
SELECT - NULLIF ( - - CAST( NULL AS SIGNED ), - 33 ) * + 51 + - CAST( - ( - + CAST( - MIN( + - 18 ) AS DECIMAL ) ) AS SIGNED ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT - NULLIF ( - - CAST ( NULL AS INTEGER ), - 33 ) * + 51 + - CAST ( - ( - + CAST ( - MIN ( + - 18 ) AS REAL ) ) AS INTEGER ) col1
----
NULL

query I rowsort
SELECT + 82 - - 11
----
93

query II rowsort
SELECT DISTINCT + 32 AS col2, 42 AS col1
----
32
42

onlyif mysql # DIV for integer division: 
query I rowsort label-7533
SELECT ALL + - 3 DIV 55 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + - 3 / 55 AS col0
----
0

query I rowsort
SELECT + + 53 * + + 49
----
2597

query I rowsort
SELECT ALL ( + + 33 )
----
33

query I rowsort
SELECT DISTINCT + + 28 * - 2 * 30
----
-1680

onlyif mysql # DIV for integer division: 
query II rowsort label-7537
SELECT - + 4 DIV + 26 - 29, 83 AS col1
----
-29
83

skipif mysql # not compatible
query II rowsort label-7537
SELECT - + 4 / + 26 - 29, 83 AS col1
----
-29
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7538
SELECT ALL + 98 DIV - 74 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL + 98 / - 74 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + - 93 * COUNT( * ) * 58 + - 0 AS col2
----
-5394

skipif mysql # not compatible
query I rowsort label-7539
SELECT + - 93 * COUNT ( * ) * 58 + - 0 AS col2
----
-5394

query I rowsort
SELECT ALL - + 99 * - 37 AS col1
----
3663

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT + 93 - - - 52 + + COUNT( 21 ) * - + 92 AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-7541
SELECT + 93 - - - 52 + + COUNT ( 21 ) * - + 92 AS col0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7542
SELECT - 18 AS col0, 81 + + CASE WHEN NOT NULL IS NULL THEN - CASE + COUNT( * ) WHEN + ( 60 ) * COUNT( * ) THEN NULL WHEN + 52 + + 71 THEN NULL WHEN + - 55 * - + 94 THEN 47 * - - 21 ELSE + + CASE + + ( AVG ( DISTINCT - - 71 ) ) WHEN - - CAST( 43 AS SIGNED ) THEN - 31 END END END * - 82 + - - SUM( DISTINCT + 84 ) AS col2
----
-18
NULL

skipif mysql # not compatible
query II rowsort label-7542
SELECT - 18 AS col0, 81 + + CASE WHEN NOT NULL IS NULL THEN - CASE + COUNT ( * ) WHEN + ( 60 ) * COUNT ( * ) THEN NULL WHEN + 52 + + 71 THEN NULL WHEN + - 55 * - + 94 THEN 47 * - - 21 ELSE + + CASE + + ( AVG ( DISTINCT - - 71 ) ) WHEN - - CAST ( 43 AS INTEGER ) THEN - 31 END END END * - 82 + - - SUM ( DISTINCT + 84 ) AS col2
----
-18
NULL

query I rowsort
SELECT DISTINCT - 74 * + 2 - 96
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT + NULLIF ( + - COUNT( * ), 99 )
----
-1

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT + NULLIF ( + - COUNT ( * ), 99 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7545
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + NULLIF ( + 24, - - 33 * + ( - - 23 ) )
----
NULL
24

skipif mysql # not compatible
query II rowsort label-7545
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + NULLIF ( + 24, - - 33 * + ( - - 23 ) )
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT ALL - COUNT( * ) * 54 col0
----
-54

skipif mysql # not compatible
query I rowsort label-7546
SELECT ALL - COUNT ( * ) * 54 col0
----
-54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT DISTINCT 73 DIV + - 15 + - COUNT( * ) + - 50
----
-55

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT 73 / + - 15 + - COUNT ( * ) + - 50
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT DISTINCT - ( COUNT( * ) ) * - - 95
----
-95

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT - ( COUNT ( * ) ) * - - 95
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT + CASE - - 10 WHEN + COUNT( * ) THEN NULL ELSE NULLIF ( - 10, + - COUNT( * ) ) END
----
-10

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT + CASE - - 10 WHEN + COUNT ( * ) THEN NULL ELSE NULLIF ( - 10, + - COUNT ( * ) ) END
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7550
SELECT ALL 87 DIV 52 + 55 AS col1
----
56

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL 87 / 52 + 55 AS col1
----
56

query I rowsort
SELECT 44 + + 38 AS col0
----
82

query I rowsort
SELECT 89 * - 18
----
-1602

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7553
SELECT ALL + 4 + + + 13, + CAST( - 31 AS SIGNED ) * 61 AS col0
----
17
-1891

skipif mysql # not compatible
query II rowsort label-7553
SELECT ALL + 4 + + + 13, + CAST ( - 31 AS INTEGER ) * 61 AS col0
----
17
-1891

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + COUNT( * ) * COUNT( * ) + - + 93 * - 64 AS col2
----
5953

skipif mysql # not compatible
query I rowsort label-7554
SELECT + COUNT ( * ) * COUNT ( * ) + - + 93 * - 64 AS col2
----
5953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7555
SELECT 5 * COUNT( * ) + - 58 DIV + - 80
----
5

skipif mysql # not compatible
query I rowsort label-7555
SELECT 5 * COUNT ( * ) + - 58 / + - 80
----
5

query I rowsort
SELECT 68 * - + 97 - - 13 AS col2
----
-6583

onlyif mysql # DIV for integer division: 
query I rowsort label-7557
SELECT DISTINCT + 14 DIV - 23
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + 14 / - 23
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7558
SELECT 88 + COUNT( * ) DIV - ( + - 41 ) * - 49 * - + 58 * 86 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7558
SELECT 88 + COUNT ( * ) / - ( + - 41 ) * - 49 * - + 58 * 86 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL - 42 + - 23 + - + ( - 57 ) + - SUM( + + 30 ) + + 42 * + + 65 AS col0
----
2692

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - 42 + - 23 + - + ( - 57 ) + - SUM ( + + 30 ) + + 42 * + + 65 AS col0
----
2692

query I rowsort
SELECT ALL - 33 * - 42 * + 80 AS col1
----
110880

query I rowsort
SELECT - 98 * - + 56 + 67
----
5555

query I rowsort
SELECT ALL - 56 col2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-7563
SELECT ALL NULLIF ( + + 79, - + 34 ) - 39 * 7 * - 52 + CASE - - NULLIF ( + 82, + 35 * + COALESCE ( - - MIN( ALL + 27 ), 59 ) - + 68 ) WHEN + + 38 * 96 * + COUNT( * ) THEN + 82 + 75 END + - 86 + - 24 col2, 22 * + - ( + ( + + 91 ) ) AS col0
----
NULL
-2002

skipif mysql # not compatible
query II rowsort label-7563
SELECT ALL NULLIF ( + + 79, - + 34 ) - 39 * 7 * - 52 + CASE - - NULLIF ( + 82, + 35 * + COALESCE ( - - MIN ( ALL + 27 ), 59 ) - + 68 ) WHEN + + 38 * 96 * + COUNT ( * ) THEN + 82 + 75 END + - 86 + - 24 col2, 22 * + - ( + ( + + 91 ) ) AS col0
----
NULL
-2002

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT ALL - 93 - 46 + 70 * CAST( NULL AS SIGNED ) - 68 + + 65 / - + NULLIF ( + 26, 17 ) * 23 + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL - 93 - 46 + 70 * CAST ( NULL AS INTEGER ) - 68 + + 65 / - + NULLIF ( + 26, 17 ) * 23 + + 73
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT DISTINCT COUNT( * ) * 74 AS col0
----
74

skipif mysql # not compatible
query I rowsort label-7565
SELECT DISTINCT COUNT ( * ) * 74 AS col0
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7566
SELECT ALL + CASE - 35 WHEN - - ( - 21 ) * + ( + - 52 ) + 52 * 47 - - 15 + + 31 THEN + - CAST( + - 51 AS SIGNED ) - + ( COALESCE ( + ( - 57 ), - - 22 ) ) + 94 + 73 * - - 22 WHEN + SUM( DISTINCT - 43 ) * 16 / + 86 + - - 53 + NULLIF ( - 70, + COUNT( * ) ) * - + 7 * - 41 + MAX( ALL + 63 ) THEN NULL ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL + CASE - 35 WHEN - - ( - 21 ) * + ( + - 52 ) + 52 * 47 - - 15 + + 31 THEN + - CAST ( + - 51 AS INTEGER ) - + ( COALESCE ( + ( - 57 ), - - 22 ) ) + 94 + 73 * - - 22 WHEN + SUM ( DISTINCT - 43 ) * 16 / + 86 + - - 53 + NULLIF ( - 70, + COUNT ( * ) ) * - + 7 * - 41 + MAX ( ALL + 63 ) THEN NULL ELSE NULL END
----
NULL

query I rowsort
SELECT - 11 - 25 * + + 28 + ( - 55 ) AS col1
----
-766

query I rowsort
SELECT - + 98 AS col0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7569
SELECT - COALESCE ( 28, - 73 * 12, - 29, + 1 + + - CAST( NULL AS SIGNED ) ) + - 17
----
-45

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COALESCE ( 28, - 73 * 12, - 29, + 1 + + - CAST ( NULL AS INTEGER ) ) + - 17
----
-45

query I rowsort
SELECT 44 * - 75 - - 79
----
-3221

query I rowsort
SELECT ALL - 36 * + - ( - 82 ) - + 93 AS col2
----
-3045

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT + MAX( ALL + 38 ) + 92 * ( 21 ) col0
----
1970

skipif mysql # not compatible
query I rowsort label-7572
SELECT + MAX ( ALL + 38 ) + 92 * ( 21 ) col0
----
1970

query I rowsort
SELECT ( + - 51 ) + 0 * - ( - 47 ) * 97 AS col1
----
-51

query II rowsort
SELECT + 61 - + - 15 AS col1, 75
----
76
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7575
SELECT DISTINCT MAX( + 86 ) + - - CAST( - 64 AS SIGNED )
----
22

skipif mysql # not compatible
query I rowsort label-7575
SELECT DISTINCT MAX ( + 86 ) + - - CAST ( - 64 AS INTEGER )
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7576
SELECT ALL + 75 + 61 + 95 + - 27 * CASE COUNT( * ) WHEN - - COUNT( * ) * + 23 THEN + COUNT( * ) * + CAST( - 26 AS SIGNED ) WHEN - 60 THEN NULL END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + 75 + 61 + 95 + - 27 * CASE COUNT ( * ) WHEN - - COUNT ( * ) * + 23 THEN + COUNT ( * ) * + CAST ( - 26 AS INTEGER ) WHEN - 60 THEN NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7577
SELECT CAST( NULL AS SIGNED ) + + 79 / 43
----
NULL

skipif mysql # not compatible
query I rowsort label-7577
SELECT CAST ( NULL AS INTEGER ) + + 79 / 43
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7578
SELECT ALL - 95 + + + 30 * + 64 * - - COUNT( * )
----
1825

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL - 95 + + + 30 * + 64 * - - COUNT ( * )
----
1825

query I rowsort
SELECT DISTINCT 42 col1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-7580
SELECT ALL 2 + COUNT( * ) AS col1, + 6
----
3
6

skipif mysql # not compatible
query II rowsort label-7580
SELECT ALL 2 + COUNT ( * ) AS col1, + 6
----
3
6

query I rowsort
SELECT 70 + - + 27 * + - 92
----
2554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7582
SELECT COUNT( * ) DIV COUNT( * ) * - 81 + MIN( + 12 ) AS col0
----
-69

skipif mysql # not compatible
query I rowsort label-7582
SELECT COUNT ( * ) / COUNT ( * ) * - 81 + MIN ( + 12 ) AS col0
----
-69

query I rowsort
SELECT DISTINCT + 18 + + ( + 7 ) AS col0
----
25

onlyif mysql # aggregate syntax: 
query II rowsort label-7584
SELECT 98 + MAX( DISTINCT - 28 ) AS col0, + ( + 77 ) AS col0
----
70
77

skipif mysql # not compatible
query II rowsort label-7584
SELECT 98 + MAX ( DISTINCT - 28 ) AS col0, + ( + 77 ) AS col0
----
70
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT CASE + SUM( ALL + 46 ) WHEN - + CASE + + 12 WHEN 24 THEN 40 END THEN - - 75 WHEN + AVG ( DISTINCT + 9 ) THEN - 55 / + - 94 + + - 27 * - 29 * - - ( - + COUNT( - 17 ) ) * - - 97 WHEN + 59 THEN - COUNT( * ) * - 35 END * 71 * + 20 * - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT CASE + SUM ( ALL + 46 ) WHEN - + CASE + + 12 WHEN 24 THEN 40 END THEN - - 75 WHEN + AVG ( DISTINCT + 9 ) THEN - 55 / + - 94 + + - 27 * - 29 * - - ( - + COUNT ( - 17 ) ) * - - 97 WHEN + 59 THEN - COUNT ( * ) * - 35 END * 71 * + 20 * - CAST ( NULL AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + 0 * + - 4 * - 74
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT 58 * + CASE + COUNT( + - 11 ) WHEN - COALESCE ( + 94, - - 15 ) THEN + 55 END
----
NULL

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT 58 * + CASE + COUNT ( + - 11 ) WHEN - COALESCE ( + 94, - - 15 ) THEN + 55 END
----
NULL

query I rowsort
SELECT ALL 17 + - 40 * + + 85 col0
----
-3383

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT 76 * COUNT( * ) AS col1
----
76

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT 76 * COUNT ( * ) AS col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT 95 * + COUNT( * ) * + 44
----
4180

skipif mysql # not compatible
query I rowsort label-7590
SELECT 95 * + COUNT ( * ) * + 44
----
4180

query I rowsort
SELECT ALL + 1 * - 79
----
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-7592
SELECT 94, + 9 DIV - + 37 + - 5 AS col2
----
94
-5

skipif mysql # not compatible
query II rowsort label-7592
SELECT 94, + 9 / - + 37 + - 5 AS col2
----
94
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT + SUM( ALL 37 ) AS col2
----
37

skipif mysql # not compatible
query I rowsort label-7593
SELECT + SUM ( ALL 37 ) AS col2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT COUNT( * ) * - 10 * 99 AS col2
----
-990

skipif mysql # not compatible
query I rowsort label-7594
SELECT COUNT ( * ) * - 10 * 99 AS col2
----
-990

query I rowsort
SELECT 94 - - + ( + + 51 ) * 63
----
3307

query I rowsort
SELECT ALL + 38 * - 11
----
-418

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT 41 * + 86 * COUNT( * )
----
3526

skipif mysql # not compatible
query I rowsort label-7597
SELECT 41 * + 86 * COUNT ( * )
----
3526

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT DISTINCT + + 95 DIV 15
----
6

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT + + 95 / 15
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT ALL - ( + - COUNT( DISTINCT 97 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL - ( + - COUNT ( DISTINCT 97 ) )
----
1

query I rowsort
SELECT DISTINCT + - 70 * + 34 + + NULLIF ( 75, - 12 ) * + 74 AS col1
----
3170

query II rowsort
SELECT DISTINCT - - 12, + 14 + - 51 AS col0
----
12
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT DISTINCT ( + CASE - - 72 WHEN 96 * + ( COUNT( * ) ) + 95 THEN NULL WHEN 38 THEN - ( 72 ) * COUNT( * ) ELSE NULL END ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT ( + CASE - - 72 WHEN 96 * + ( COUNT ( * ) ) + 95 THEN NULL WHEN 38 THEN - ( 72 ) * COUNT ( * ) ELSE NULL END ) col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT ALL - + 20 * + CAST( + 2 AS SIGNED )
----
-40

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL - + 20 * + CAST ( + 2 AS INTEGER )
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT + 53 DIV - ( 58 )
----
0

skipif mysql # not compatible
query I rowsort label-7604
SELECT + 53 / - ( 58 )
----
0

query II rowsort
SELECT - 52 col0, ( - 1 ) AS col1
----
-52
-1

query I rowsort
SELECT - 45 + + 60
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - 57 + + 47 * 84 * - 83 * - ( - + SUM( DISTINCT 87 ) )
----
-28508565

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - 57 + + 47 * 84 * - 83 * - ( - + SUM ( DISTINCT 87 ) )
----
-28508565

query I rowsort
SELECT ALL + ( ( + 84 ) ) + - + 23
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT DISTINCT NULLIF ( - 97, + - 85 * - 37 - AVG ( + 31 ) + - CASE - 18 WHEN + - 41 - + 44 THEN - - 61 WHEN + 31 - - 97 THEN + 96 WHEN + - 57 + + COUNT( * ) / COUNT( * ) THEN NULL END + + 21 * 87 * + 1 - + COUNT( * ) / + 86 + - 31 ) col2
----
-97

skipif mysql # not compatible
query I rowsort label-7609
SELECT DISTINCT NULLIF ( - 97, + - 85 * - 37 - AVG ( + 31 ) + - CASE - 18 WHEN + - 41 - + 44 THEN - - 61 WHEN + 31 - - 97 THEN + 96 WHEN + - 57 + + COUNT ( * ) / COUNT ( * ) THEN NULL END + + 21 * 87 * + 1 - + COUNT ( * ) / + 86 + - 31 ) col2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT ALL NULLIF ( + ( - ( - - COUNT( * ) ) ), - 4 ) + - + SUM( - 36 ) AS col1
----
35

skipif mysql # not compatible
query I rowsort label-7610
SELECT ALL NULLIF ( + ( - ( - - COUNT ( * ) ) ), - 4 ) + - + SUM ( - 36 ) AS col1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT DISTINCT - CAST( - 78 AS SIGNED ) + - 0 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - CAST ( - 78 AS INTEGER ) + - 0 AS col2
----
78

query I rowsort
SELECT COALESCE ( + - 42, + 25 * - + 64 * - + NULLIF ( + + 37, 37 ) )
----
-42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7613
SELECT ALL 77 + - - CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7613
SELECT ALL 77 + - - CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) col2
----
NULL

query II rowsort
SELECT 86, + 80 * + 68 * + 39 AS col1
----
86
212160

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7615
SELECT 91, 50 + + - 55 + + 97 - - + 9 * CAST( NULL AS SIGNED ) AS col2
----
91
NULL

skipif mysql # not compatible
query II rowsort label-7615
SELECT 91, 50 + + - 55 + + 97 - - + 9 * CAST ( NULL AS INTEGER ) AS col2
----
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT + 35 DIV 43
----
0

skipif mysql # not compatible
query I rowsort label-7616
SELECT + 35 / 43
----
0

query I rowsort
SELECT ALL - 5 + 3
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT ALL 16 * + + 2 * + - CASE WHEN NOT NULL IS NOT NULL THEN ( + COUNT( * ) ) END * COUNT( * ) - 79
----
-111

skipif mysql # not compatible
query I rowsort label-7618
SELECT ALL 16 * + + 2 * + - CASE WHEN NOT NULL IS NOT NULL THEN ( + COUNT ( * ) ) END * COUNT ( * ) - 79
----
-111

onlyif mysql # aggregate syntax: 
query II rowsort label-7619
SELECT DISTINCT + 18 col2, - ( + - COUNT( * ) ) * 96 * + + 90 AS col0
----
18
8640

skipif mysql # not compatible
query II rowsort label-7619
SELECT DISTINCT + 18 col2, - ( + - COUNT ( * ) ) * 96 * + + 90 AS col0
----
18
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-7620
SELECT + COALESCE ( 26, + COUNT( * ) ) AS col2
----
26

skipif mysql # not compatible
query I rowsort label-7620
SELECT + COALESCE ( 26, + COUNT ( * ) ) AS col2
----
26

query I rowsort
SELECT ALL - 33 * + 48 - - 79
----
-1505

query I rowsort
SELECT 5 * - 40 - 17
----
-217

query II rowsort
SELECT ALL + 30, - 40 * 87 AS col1
----
30
-3480

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT DISTINCT 29 DIV + 81 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT 29 / + 81 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT + SUM( DISTINCT - 49 ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-7625
SELECT + SUM ( DISTINCT - 49 ) AS col2
----
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7626
SELECT COUNT( * ) * COUNT( * ) DIV - CASE + - 77 WHEN 28 THEN + 60 WHEN - COUNT( * ) THEN NULL ELSE + 53 END * - 85 * + 77 - + - MAX( ALL + 84 ) + 59 + 16 AS col0
----
159

skipif mysql # not compatible
query I rowsort label-7626
SELECT COUNT ( * ) * COUNT ( * ) / - CASE + - 77 WHEN 28 THEN + 60 WHEN - COUNT ( * ) THEN NULL ELSE + 53 END * - 85 * + 77 - + - MAX ( ALL + 84 ) + 59 + 16 AS col0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT ALL 71 * - 50 * + 83 - - - 77 + - MAX( 3 ) * - - 2
----
-294733

skipif mysql # not compatible
query I rowsort label-7627
SELECT ALL 71 * - 50 * + 83 - - - 77 + - MAX ( 3 ) * - - 2
----
-294733

onlyif mysql # DIV for integer division: 
query I rowsort label-7628
SELECT + 69 DIV + 53 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-7628
SELECT + 69 / + 53 AS col2
----
1

query I rowsort
SELECT - 75 * + - 40 * - 70 AS col0
----
-210000

query I rowsort
SELECT COALESCE ( 66, + 23 + + 74 * - ( 56 ) ) AS col2
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7631
SELECT - 51 * + 68 DIV - COUNT( + ( + + 43 ) )
----
3468

skipif mysql # not compatible
query I rowsort label-7631
SELECT - 51 * + 68 / - COUNT ( + ( + + 43 ) )
----
3468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT ALL + CAST( - 42 AS SIGNED ) * - + 41
----
1722

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + CAST ( - 42 AS INTEGER ) * - + 41
----
1722

query I rowsort
SELECT + 98 + + 73
----
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7634
SELECT ALL COALESCE ( - + 84, MAX( DISTINCT - + 47 ) ) * + - CASE + - ( - CASE + CAST( NULL AS SIGNED ) WHEN + 58 THEN + + CASE + - CAST( NULL AS DECIMAL ) WHEN 84 THEN + - 12 * - 15 + - 85 END END ) WHEN + + 53 * + 59 THEN NULL ELSE + + 64 * - + 74 - + 98 END
----
-406056

skipif mysql # not compatible
query I rowsort label-7634
SELECT ALL COALESCE ( - + 84, MAX ( DISTINCT - + 47 ) ) * + - CASE + - ( - CASE + CAST ( NULL AS INTEGER ) WHEN + 58 THEN + + CASE + - CAST ( NULL AS REAL ) WHEN 84 THEN + - 12 * - 15 + - 85 END END ) WHEN + + 53 * + 59 THEN NULL ELSE + + 64 * - + 74 - + 98 END
----
-406056

query I rowsort
SELECT - 16 * 64 AS col2
----
-1024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7636
SELECT ALL + - COALESCE ( + CAST( NULL AS SIGNED ), ( + 37 ) )
----
-37

skipif mysql # not compatible
query I rowsort label-7636
SELECT ALL + - COALESCE ( + CAST ( NULL AS INTEGER ), ( + 37 ) )
----
-37

query II rowsort
SELECT ALL + 46, 22 AS col1
----
46
22

onlyif mysql # aggregate syntax: 
query II rowsort label-7638
SELECT DISTINCT + + COUNT( * ), + COUNT( * )
----
1
1

skipif mysql # not compatible
query II rowsort label-7638
SELECT DISTINCT + + COUNT ( * ), + COUNT ( * )
----
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT - + CAST( - 25 AS SIGNED ) * + ( + - 58 )
----
-1450

skipif mysql # not compatible
query I rowsort label-7639
SELECT - + CAST ( - 25 AS INTEGER ) * + ( + - 58 )
----
-1450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT - CAST( MIN( ALL 60 ) AS SIGNED )
----
-60

skipif mysql # not compatible
query I rowsort label-7640
SELECT - CAST ( MIN ( ALL 60 ) AS INTEGER )
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL 92 * - - ( MAX( ALL 37 ) ) + - + ( + SUM( ALL - + 92 ) ) + + 68
----
3564

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL 92 * - - ( MAX ( ALL 37 ) ) + - + ( + SUM ( ALL - + 92 ) ) + + 68
----
3564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT - 60 * CAST( 7 AS SIGNED ) AS col2
----
-420

skipif mysql # not compatible
query I rowsort label-7642
SELECT - 60 * CAST ( 7 AS INTEGER ) AS col2
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT 29 + - COUNT( 52 )
----
28

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT 29 + - COUNT ( 52 )
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7644
SELECT DISTINCT + + 79 + MAX( DISTINCT 29 ) - 30 DIV + MAX( ALL 79 )
----
108

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT + + 79 + MAX ( DISTINCT 29 ) - 30 / + MAX ( ALL 79 )
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT ALL + 95 + COUNT( ALL 95 ) AS col1
----
96

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL + 95 + COUNT ( ALL 95 ) AS col1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7646
SELECT + COUNT( - - 33 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7646
SELECT + COUNT ( - - 33 ) AS col1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7647
SELECT - - 98 DIV + 34 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7647
SELECT - - 98 / + 34 AS col1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7648
SELECT - ( + CAST( + 7 AS SIGNED ) ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-7648
SELECT - ( + CAST ( + 7 AS INTEGER ) ) AS col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT - COUNT( * ) + + - COUNT( * ) + + + 10 + + - 47 + - - 93 AS col1
----
54

skipif mysql # not compatible
query I rowsort label-7649
SELECT - COUNT ( * ) + + - COUNT ( * ) + + + 10 + + - 47 + - - 93 AS col1
----
54

query I rowsort
SELECT ALL - 73 - + 1 AS col0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT - CAST( NULL AS SIGNED ) + + 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT - CAST ( NULL AS INTEGER ) + + 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT DISTINCT ( + MIN( + 4 ) ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7652
SELECT DISTINCT ( + MIN ( + 4 ) ) AS col1
----
4

query I rowsort
SELECT ALL ( + + 50 )
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7654
SELECT DISTINCT CAST( - + 62 AS SIGNED ) col1, + 82 AS col2
----
-62
82

skipif mysql # not compatible
query II rowsort label-7654
SELECT DISTINCT CAST ( - + 62 AS INTEGER ) col1, + 82 AS col2
----
-62
82

onlyif mysql # aggregate syntax: 
query II rowsort label-7655
SELECT ALL - COUNT( DISTINCT - 61 ) - - - 36 col2, 32 AS col1
----
-37
32

skipif mysql # not compatible
query II rowsort label-7655
SELECT ALL - COUNT ( DISTINCT - 61 ) - - - 36 col2, 32 AS col1
----
-37
32

query I rowsort
SELECT - 86 * - 17 + - 35 AS col1
----
1427

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7657
SELECT CAST( 91 AS SIGNED ) AS col2
----
91

skipif mysql # not compatible
query I rowsort label-7657
SELECT CAST ( 91 AS INTEGER ) AS col2
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7658
SELECT + 52 DIV - 3 col0
----
-17

skipif mysql # not compatible
query I rowsort label-7658
SELECT + 52 / - 3 col0
----
-17

query I rowsort
SELECT DISTINCT - 65 * - 66 col0
----
4290

query I rowsort
SELECT + 98 * - - 17 AS col0
----
1666

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT + 16 DIV + ( - - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-7661
SELECT + 16 / + ( - - 57 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7662
SELECT + CAST( + 24 AS SIGNED ), 81 AS col1
----
24
81

skipif mysql # not compatible
query II rowsort label-7662
SELECT + CAST ( + 24 AS INTEGER ), 81 AS col1
----
24
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7663
SELECT ALL + CAST( + - MIN( - 4 ) AS SIGNED ) AS col1
----
4

skipif mysql # not compatible
query I rowsort label-7663
SELECT ALL + CAST ( + - MIN ( - 4 ) AS INTEGER ) AS col1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7664
SELECT ALL - 15 DIV + - 40
----
0

skipif mysql # not compatible
query I rowsort label-7664
SELECT ALL - 15 / + - 40
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7665
SELECT + 8 / MAX( ALL 36 ) * - 27 * 8 * - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7665
SELECT + 8 / MAX ( ALL 36 ) * - 27 * 8 * - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + - ( - 50 ) * + - 20 + 8 / + 1 + + + CASE - 26 WHEN + 19 + - 57 / - ( + 44 ) + 82 THEN + + 85 * + 84 + 48 WHEN + - 15 THEN NULL END * + + 35 AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT ALL + - 46 * - CAST( NULL AS SIGNED ) + + 18 + 10 * 67 + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL + - 46 * - CAST ( NULL AS INTEGER ) + + 18 + 10 * 67 + 5
----
NULL

query I rowsort
SELECT + + 43 + 30 - 37 AS col2
----
36

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7669
SELECT DISTINCT + 94 * + 18 + - + 92 AS col0, 57 - - 87 AS col1, CAST( NULL AS DECIMAL ) AS col2
----
1600
144
NULL

skipif mysql # not compatible
query III rowsort label-7669
SELECT DISTINCT + 94 * + 18 + - + 92 AS col0, 57 - - 87 AS col1, CAST ( NULL AS REAL ) AS col2
----
1600
144
NULL

query I rowsort
SELECT + - 88 AS col0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT ALL + MAX( + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-7671
SELECT ALL + MAX ( + 44 )
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT DISTINCT 63 + + - 18 * + COUNT( * ) + 73 AS col1
----
118

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT 63 + + - 18 * + COUNT ( * ) + 73 AS col1
----
118

query I rowsort
SELECT ALL - ( 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT - COUNT( * ) + - + 57
----
-58

skipif mysql # not compatible
query I rowsort label-7674
SELECT - COUNT ( * ) + - + 57
----
-58

query I rowsort
SELECT 58 * 25
----
1450

query I rowsort
SELECT - 88 col0
----
-88

query I rowsort
SELECT DISTINCT - 14 * - ( - + CASE ( 36 ) WHEN - - ( 38 ) * + 38 THEN - 68 / 16 WHEN + 93 THEN NULL ELSE NULL END ) AS col0
----
NULL

query I rowsort
SELECT 73 + 59 col0
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT DISTINCT - 69 DIV 63 * 19 * - COALESCE ( - 4, - 29 ) * 93
----
-7068

skipif mysql # not compatible
query I rowsort label-7679
SELECT DISTINCT - 69 / 63 * 19 * - COALESCE ( - 4, - 29 ) * 93
----
-7068

query I rowsort
SELECT DISTINCT - 60 * 64 * - 57
----
218880

query I rowsort
SELECT 98 * + 92 AS col0
----
9016

onlyif mysql # aggregate syntax: 
query II rowsort label-7682
SELECT 97 col0, + 44 * - 95 * - ( - + COUNT( * ) ) AS col1
----
97
-4180

skipif mysql # not compatible
query II rowsort label-7682
SELECT 97 col0, + 44 * - 95 * - ( - + COUNT ( * ) ) AS col1
----
97
-4180

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ALL + COUNT( * ) * + 36 AS col2
----
36

skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL + COUNT ( * ) * + 36 AS col2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL - 87 * - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL - 87 * - COUNT ( * )
----
87

query II rowsort
SELECT - 8 AS col0, - 30
----
-8
-30

query I rowsort
SELECT 85 - - 51
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT COUNT( * ) * + 62 col1
----
62

skipif mysql # not compatible
query I rowsort label-7687
SELECT COUNT ( * ) * + 62 col1
----
62

query I rowsort
SELECT 33 * - 63 AS col1
----
-2079

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7689
SELECT ALL 18 AS col1, - CAST( NULL AS SIGNED ) AS col1
----
18
NULL

skipif mysql # not compatible
query II rowsort label-7689
SELECT ALL 18 AS col1, - CAST ( NULL AS INTEGER ) AS col1
----
18
NULL

query I rowsort
SELECT 4 - + - 26 AS col2
----
30

query I rowsort
SELECT DISTINCT - ( + 74 ) AS col0
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7692
SELECT DISTINCT 4 * CAST( 67 AS SIGNED ) AS col2, + MIN( - 48 ) * - 35
----
268
1680

skipif mysql # not compatible
query II rowsort label-7692
SELECT DISTINCT 4 * CAST ( 67 AS INTEGER ) AS col2, + MIN ( - 48 ) * - 35
----
268
1680

query I rowsort
SELECT 3 + 39 + - 33 * + 45
----
-1443

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT - 6 DIV + 85 - + 37 * - 34 AS col2
----
1258

skipif mysql # not compatible
query I rowsort label-7694
SELECT - 6 / + 85 - + 37 * - 34 AS col2
----
1258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7695
SELECT ALL - CAST( + 87 AS SIGNED ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-7695
SELECT ALL - CAST ( + 87 AS INTEGER ) AS col0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT - 25 * + COUNT( * ) * + + 94
----
-2350

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT - 25 * + COUNT ( * ) * + + 94
----
-2350

query I rowsort
SELECT - 66 * - 34 AS col0
----
2244

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7698
SELECT NULLIF ( + - 45, + 64 + - 10 - 26 + CAST( NULL AS DECIMAL ) * + 58 ) AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-7698
SELECT NULLIF ( + - 45, + 64 + - 10 - 26 + CAST ( NULL AS REAL ) * + 58 ) AS col1
----
-45

query I rowsort
SELECT DISTINCT + 52 + - 32 AS col1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT - - 69 * + 20 - + MAX( + 42 ) * + 3 + COUNT( * ) * - 47 + COUNT( * )
----
1208

skipif mysql # not compatible
query I rowsort label-7700
SELECT - - 69 * + 20 - + MAX ( + 42 ) * + 3 + COUNT ( * ) * - 47 + COUNT ( * )
----
1208

query I rowsort
SELECT ALL 63 + 72
----
135

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7702
SELECT ALL + 8 + - - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + 8 + - - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT DISTINCT + + 8 + 59 AS col2
----
67

query I rowsort
SELECT DISTINCT - - 90 AS col0
----
90

query I rowsort
SELECT ALL - 59 + - - 79 * + COALESCE ( + 65, - 35 ) * + 52
----
266961

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT COUNT( * ) + - + 91 + - + NULLIF ( - 69, - - 55 )
----
-21

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT COUNT ( * ) + - + 91 + - + NULLIF ( - 69, - - 55 )
----
-21

query I rowsort
SELECT + 13 * + 19
----
247

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT ( 5 ) * + 55 + 84 + - 57 * COUNT( * )
----
302

skipif mysql # not compatible
query I rowsort label-7708
SELECT ( 5 ) * + 55 + 84 + - 57 * COUNT ( * )
----
302

query I rowsort
SELECT + - 11 AS col2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT COUNT( * ) * - SUM( - - 84 ) + + - 21 AS col2
----
-105

skipif mysql # not compatible
query I rowsort label-7710
SELECT COUNT ( * ) * - SUM ( - - 84 ) + + - 21 AS col2
----
-105

query I rowsort
SELECT ALL - 76 * - 27
----
2052

query I rowsort
SELECT 44 + + 56
----
100

query I rowsort
SELECT - 49 * - 39
----
1911

query I rowsort
SELECT ( + 18 ) + - ( - 98 )
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7715
SELECT - 62 DIV MAX( - 63 )
----
0

skipif mysql # not compatible
query I rowsort label-7715
SELECT - 62 / MAX ( - 63 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7716
SELECT COUNT( + 97 ) * - 71 * + 81 + 34
----
-5717

skipif mysql # not compatible
query I rowsort label-7716
SELECT COUNT ( + 97 ) * - 71 * + 81 + 34
----
-5717

query I rowsort
SELECT ALL 95 * - + 51
----
-4845

query I rowsort
SELECT DISTINCT 12 * - 14
----
-168

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7719
SELECT MIN( - + 2 ) * + 94 DIV - - NULLIF ( + 69, + COUNT( DISTINCT + 34 ) ) - 52 + + 56 * - + MIN( DISTINCT - + 98 ) + + 11 AS col2
----
5445

skipif mysql # not compatible
query I rowsort label-7719
SELECT MIN ( - + 2 ) * + 94 / - - NULLIF ( + 69, + COUNT ( DISTINCT + 34 ) ) - 52 + + 56 * - + MIN ( DISTINCT - + 98 ) + + 11 AS col2
----
5445

query I rowsort
SELECT 94 + + ( - + 33 ) AS col2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7721
SELECT 30 - + + 32 + - COUNT( * ) AS col2
----
-3

skipif mysql # not compatible
query I rowsort label-7721
SELECT 30 - + + 32 + - COUNT ( * ) AS col2
----
-3

query I rowsort
SELECT 33 * 52 AS col0
----
1716

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT ( + - 68 ) + + COUNT( * ) * + 51 * + 81 AS col0
----
4063

skipif mysql # not compatible
query I rowsort label-7723
SELECT ( + - 68 ) + + COUNT ( * ) * + 51 * + 81 AS col0
----
4063

query I rowsort
SELECT ALL + 11 * - 72
----
-792

query I rowsort
SELECT 13 + + 97 AS col1
----
110

query I rowsort
SELECT DISTINCT - 38 + 84 AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL + ( 85 ) * CASE - 8 WHEN + 10 THEN NULL WHEN - 10 THEN 78 END / - 23 + - COUNT( * ) + 29 * + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL + ( 85 ) * CASE - 8 WHEN + 10 THEN NULL WHEN - 10 THEN 78 END / - 23 + - COUNT ( * ) + 29 * + 40
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT 39 + - - 93 + - - COUNT( * ) * - 44 AS col2
----
88

skipif mysql # not compatible
query I rowsort label-7728
SELECT 39 + - - 93 + - - COUNT ( * ) * - 44 AS col2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT ALL + 93 * COUNT( 61 ) AS col2
----
93

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL + 93 * COUNT ( 61 ) AS col2
----
93

query I rowsort
SELECT - 39 * - 81 * + 11 + - 70 AS col0
----
34679

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT NULLIF ( CASE - 63 WHEN - 92 THEN NULLIF ( NULLIF ( - 33, + 36 - - COUNT( * ) + + 81 - 44 ), + COUNT( * ) ) WHEN COUNT( * ) * 42 THEN - COUNT( * ) END, - + ( + - 38 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT NULLIF ( CASE - 63 WHEN - 92 THEN NULLIF ( NULLIF ( - 33, + 36 - - COUNT ( * ) + + 81 - 44 ), + COUNT ( * ) ) WHEN COUNT ( * ) * 42 THEN - COUNT ( * ) END, - + ( + - 38 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT ALL - 72 * SUM( ALL + 79 ) * CASE 2 WHEN - 79 THEN NULL ELSE + 79 END * 17 + + 28 + - - CAST( + + 45 AS SIGNED ) AS col1
----
-7638911

skipif mysql # not compatible
query I rowsort label-7732
SELECT ALL - 72 * SUM ( ALL + 79 ) * CASE 2 WHEN - 79 THEN NULL ELSE + 79 END * 17 + + 28 + - - CAST ( + + 45 AS INTEGER ) AS col1
----
-7638911

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7733
SELECT CAST( + - COUNT( * ) AS SIGNED ) DIV - 2 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) / - 2 AS col1
----
0

query I rowsort
SELECT DISTINCT - - 96
----
96

query I rowsort
SELECT DISTINCT - ( 23 )
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT + CAST( - 78 AS SIGNED ) col0
----
-78

skipif mysql # not compatible
query I rowsort label-7736
SELECT + CAST ( - 78 AS INTEGER ) col0
----
-78

query I rowsort
SELECT DISTINCT - 0 * + 70 - + - 86 AS col0
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7738
SELECT ALL + + COUNT( * ) * + NULLIF ( + 97, - COALESCE ( - COALESCE ( + + 28, - - COALESCE ( - CAST( NULL AS DECIMAL ), COUNT( * ) ) / - 96 ), + 60 ) + + 47 / - ( + 63 ) ) AS col2, - MIN( DISTINCT + - 10 )
----
97
10

skipif mysql # not compatible
query II rowsort label-7738
SELECT ALL + + COUNT ( * ) * + NULLIF ( + 97, - COALESCE ( - COALESCE ( + + 28, - - COALESCE ( - CAST ( NULL AS REAL ), COUNT ( * ) ) / - 96 ), + 60 ) + + 47 / - ( + 63 ) ) AS col2, - MIN ( DISTINCT + - 10 )
----
97
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7739
SELECT DISTINCT + 80 * + 37 col1, - MIN( ALL + 85 ) AS col0
----
2960
-85

skipif mysql # not compatible
query II rowsort label-7739
SELECT DISTINCT + 80 * + 37 col1, - MIN ( ALL + 85 ) AS col0
----
2960
-85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7740
SELECT + CASE + + 28 WHEN - 65 * - COUNT( * ) + + 87 THEN - 19 WHEN + - CASE - 60 WHEN + 70 * + ( - COUNT( * ) ) * 63 + + CAST( - + ( - + 10 ) AS DECIMAL ) * - + 81 THEN - + ( - + 91 ) ELSE 2 END + + ( - + 44 ) * + 7 + + - COALESCE ( + + 96, + 91 + 92 * - 5 - - 51, + + COUNT( * ), + - 88 * - + 12 * + 45 / + - COUNT( * ) ) THEN NULL ELSE 53 END
----
53

skipif mysql # not compatible
query I rowsort label-7740
SELECT + CASE + + 28 WHEN - 65 * - COUNT ( * ) + + 87 THEN - 19 WHEN + - CASE - 60 WHEN + 70 * + ( - COUNT ( * ) ) * 63 + + CAST ( - + ( - + 10 ) AS REAL ) * - + 81 THEN - + ( - + 91 ) ELSE 2 END + + ( - + 44 ) * + 7 + + - COALESCE ( + + 96, + 91 + 92 * - 5 - - 51, + + COUNT ( * ), + - 88 * - + 12 * + 45 / + - COUNT ( * ) ) THEN NULL ELSE 53 END
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + MAX( ALL - 40 )
----
-40

skipif mysql # not compatible
query I rowsort label-7741
SELECT + MAX ( ALL - 40 )
----
-40

query I rowsort
SELECT ALL + ( - 89 ) AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT - + MAX( DISTINCT - 80 ) - + 9
----
71

skipif mysql # not compatible
query I rowsort label-7743
SELECT - + MAX ( DISTINCT - 80 ) - + 9
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7744
SELECT ALL + - CASE 66 WHEN - + 63 * 36 * + - 68 THEN NULL WHEN 21 * - MAX( ALL - 25 ) + + 33 THEN + - 4 ELSE + 37 * - 93 END
----
3441

skipif mysql # not compatible
query I rowsort label-7744
SELECT ALL + - CASE 66 WHEN - + 63 * 36 * + - 68 THEN NULL WHEN 21 * - MAX ( ALL - 25 ) + + 33 THEN + - 4 ELSE + 37 * - 93 END
----
3441

query II rowsort
SELECT ALL + 86 * 32 * - + 83 * - 64 AS col1, - 52 + + 15 AS col2
----
14618624
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7746
SELECT + 69 * - + 66 + + COUNT( DISTINCT + - 96 ) AS col0, 37 + + COALESCE ( - 79, + 39 DIV - 47 - + - MIN( ALL + 45 ) - COUNT( * ) DIV - - ( 29 ) ) AS col0
----
-4553
-42

skipif mysql # not compatible
query II rowsort label-7746
SELECT + 69 * - + 66 + + COUNT ( DISTINCT + - 96 ) AS col0, 37 + + COALESCE ( - 79, + 39 / - 47 - + - MIN ( ALL + 45 ) - COUNT ( * ) / - - ( 29 ) ) AS col0
----
-4553
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT DISTINCT + NULLIF ( SUM( DISTINCT - 69 ), - 43 * - 78 )
----
-69

skipif mysql # not compatible
query I rowsort label-7747
SELECT DISTINCT + NULLIF ( SUM ( DISTINCT - 69 ), - 43 * - 78 )
----
-69

query II rowsort
SELECT ALL 39, 27 AS col2
----
39
27

onlyif mysql # aggregate syntax: 
query II rowsort label-7749
SELECT COUNT( * ), 61 col2
----
1
61

skipif mysql # not compatible
query II rowsort label-7749
SELECT COUNT ( * ), 61 col2
----
1
61

query I rowsort
SELECT 14 * - 87 + - 25
----
-1243

query I rowsort
SELECT + 42 - 30 + + - 43 * 91 AS col1
----
-3901

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT ALL COUNT( * ) DIV 12 * 66 * - 32
----
0

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL COUNT ( * ) / 12 * 66 * - 32
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7753
SELECT - CAST( 32 AS SIGNED ) DIV 20
----
-1

skipif mysql # not compatible
query I rowsort label-7753
SELECT - CAST ( 32 AS INTEGER ) / 20
----
-1

query I rowsort
SELECT + 59 * + 32 AS col1
----
1888

query I rowsort
SELECT + NULLIF ( - ( + 82 ), - - 57 ) * - 55
----
4510

query I rowsort
SELECT + 35 * + 36 col0
----
1260

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL COUNT( * ) + - + 10 * + 87 AS col2
----
-869

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL COUNT ( * ) + - + 10 * + 87 AS col2
----
-869

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT - COUNT( 66 )
----
-1

skipif mysql # not compatible
query I rowsort label-7758
SELECT - COUNT ( 66 )
----
-1

query II rowsort
SELECT DISTINCT 54 AS col0, + 65
----
54
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT DISTINCT + 70 + + 15 + COUNT( * ) * - + COUNT( * ) * - 7 * 5
----
120

skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT + 70 + + 15 + COUNT ( * ) * - + COUNT ( * ) * - 7 * 5
----
120

query I rowsort
SELECT DISTINCT 35 * - COALESCE ( 49, 92 ) AS col2
----
-1715

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL CASE + 55 WHEN NULLIF ( + COUNT( * ), 94 ) THEN + 38 END * - + 90 * + 85 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL CASE + 55 WHEN NULLIF ( + COUNT ( * ), 94 ) THEN + 38 END * - + 90 * + 85 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7763
SELECT + 99 * - + CAST( + 48 AS SIGNED ) * - - COALESCE ( - 29, + NULLIF ( + 18, - 25 ) )
----
137808

skipif mysql # not compatible
query I rowsort label-7763
SELECT + 99 * - + CAST ( + 48 AS INTEGER ) * - - COALESCE ( - 29, + NULLIF ( + 18, - 25 ) )
----
137808

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL COUNT( * ) + - 10 + 32
----
23

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL COUNT ( * ) + - 10 + 32
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL - CAST( COALESCE ( + ( - + 3 ), + + 69 * + - 50 * 91 - + 72, - 81 ) AS SIGNED ) + + + 34 AS col1
----
37

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - CAST ( COALESCE ( + ( - + 3 ), + + 69 * + - 50 * 91 - + 72, - 81 ) AS INTEGER ) + + + 34 AS col1
----
37

query I rowsort
SELECT + 63 * - - 18 AS col2
----
1134

query I rowsort
SELECT - NULLIF ( - 14, + 15 )
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-7768
SELECT ALL 51 + + 63 * 73 AS col1, + 28 DIV - 6 AS col1
----
4650
-4

skipif mysql # not compatible
query II rowsort label-7768
SELECT ALL 51 + + 63 * 73 AS col1, + 28 / - 6 AS col1
----
4650
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7769
SELECT ALL CAST( NULL AS DECIMAL ) + - 74 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL CAST ( NULL AS REAL ) + - 74 * + 3
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT + 33 - - + COUNT( * ) * 6 - - - 31 * - 97 AS col1
----
3046

skipif mysql # not compatible
query I rowsort label-7770
SELECT + 33 - - + COUNT ( * ) * 6 - - - 31 * - 97 AS col1
----
3046

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7771
SELECT + 1 + + CAST( + - 89 AS SIGNED ) * - NULLIF ( - 15, - - COUNT( * ) * - - 44 + - 62 )
----
-1334

skipif mysql # not compatible
query I rowsort label-7771
SELECT + 1 + + CAST ( + - 89 AS INTEGER ) * - NULLIF ( - 15, - - COUNT ( * ) * - - 44 + - 62 )
----
-1334

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT - SUM( + ( + ( + 35 ) ) )
----
-35

skipif mysql # not compatible
query I rowsort label-7772
SELECT - SUM ( + ( + ( + 35 ) ) )
----
-35

query II rowsort
SELECT DISTINCT + 66 AS col2, 15 AS col2
----
66
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT - 24 * + COUNT( * ) AS col2
----
-24

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 24 * + COUNT ( * ) AS col2
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7775
SELECT + - 67 * CAST( + 5 AS SIGNED ) * - CASE - 74 WHEN + + 7 THEN 56 ELSE 85 END * - 13 + - + 28 - - 8 * - - 44 / - 68 * + 93 + + 15 * + 52 * + COUNT( * ) + + 7 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT + - 67 * CAST ( + 5 AS INTEGER ) * - CASE - 74 WHEN + + 7 THEN 56 ELSE 85 END * - 13 + - + 28 - - 8 * - - 44 / - 68 * + 93 + + 15 * + 52 * + COUNT ( * ) + + 7 + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT + 81 + - ( 38 ), 97 AS col2
----
43
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7777
SELECT 31 / + ( - CAST( NULL AS SIGNED ) ) - + - 77 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7777
SELECT 31 / + ( - CAST ( NULL AS INTEGER ) ) - + - 77 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT + + 20 * - COUNT( * ) - + - 1 AS col0
----
-19

skipif mysql # not compatible
query I rowsort label-7778
SELECT + + 20 * - COUNT ( * ) - + - 1 AS col0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - + COUNT( * ) * 36 - + - 38 - - 59 * - 69
----
-4069

skipif mysql # not compatible
query I rowsort label-7779
SELECT - + COUNT ( * ) * 36 - + - 38 - - 59 * - 69
----
-4069

query I rowsort
SELECT DISTINCT - + 41 * + 21
----
-861

query II rowsort
SELECT - 17 AS col1, + 27 + + 79 + + 30 AS col2
----
-17
136

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - - 82 * - + NULLIF ( 63, + + COUNT( * ) + - 24 )
----
-5166

skipif mysql # not compatible
query I rowsort label-7782
SELECT - - 82 * - + NULLIF ( 63, + + COUNT ( * ) + - 24 )
----
-5166

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ALL + MIN( DISTINCT - 36 ) col0
----
-36

skipif mysql # not compatible
query I rowsort label-7783
SELECT ALL + MIN ( DISTINCT - 36 ) col0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + 83 * 16 - - - SUM( ALL - 38 ) + - + 70 AS col2
----
1296

skipif mysql # not compatible
query I rowsort label-7784
SELECT + 83 * 16 - - - SUM ( ALL - 38 ) + - + 70 AS col2
----
1296

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7785
SELECT - 87 DIV + - 73 + - + 10 + MIN( + 69 ) AS col2, - 33
----
60
-33

skipif mysql # not compatible
query II rowsort label-7785
SELECT - 87 / + - 73 + - + 10 + MIN ( + 69 ) AS col2, - 33
----
60
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7786
SELECT DISTINCT - COUNT( * ) DIV 47 col0
----
0

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - COUNT ( * ) / 47 col0
----
0

query I rowsort
SELECT + - 23 * 90 + - 86 AS col0
----
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT - SUM( 12 ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7788
SELECT - SUM ( 12 ) AS col2
----
-12

query I rowsort
SELECT ALL + 28 * + + ( + + 54 )
----
1512

query I rowsort
SELECT COALESCE ( 80, - 54 + + 72 ) AS col1
----
80

query I rowsort
SELECT + 36 * - + 48 AS col0
----
-1728

query I rowsort
SELECT - 23 + 93
----
70

query I rowsort
SELECT ALL 45 * + 8 * + 22 + 14 + - 48 + - + ( + 80 ) AS col1
----
7806

onlyif mysql # DIV for integer division: 
query I rowsort label-7794
SELECT - 0 DIV - 57 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7794
SELECT - 0 / - 57 AS col1
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7795
SELECT ALL 51 * 83 DIV - 53 + - 74 * - + 44 * ( + + 30 ) AS col2, - 43 AS col1
----
97601
-43

skipif mysql # not compatible
query II rowsort label-7795
SELECT ALL 51 * 83 / - 53 + - 74 * - + 44 * ( + + 30 ) AS col2, - 43 AS col1
----
97601
-43

query I rowsort
SELECT ALL + 70 * + 18 + - - 68
----
1328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7797
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ), + 20 * 43 AS col2
----
1
860

skipif mysql # not compatible
query II rowsort label-7797
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ), + 20 * 43 AS col2
----
1
860

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7798
SELECT - 64 DIV + CAST( 21 AS SIGNED )
----
-3

skipif mysql # not compatible
query I rowsort label-7798
SELECT - 64 / + CAST ( 21 AS INTEGER )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT + 69 + COALESCE ( + COUNT( * ), + 1 )
----
70

skipif mysql # not compatible
query I rowsort label-7799
SELECT + 69 + COALESCE ( + COUNT ( * ), + 1 )
----
70

onlyif mysql # DIV for integer division: 
query II rowsort label-7800
SELECT 37 AS col2, NULLIF ( - 45, + 90 ) DIV 53 + 43 AS col0
----
37
43

skipif mysql # not compatible
query II rowsort label-7800
SELECT 37 AS col2, NULLIF ( - 45, + 90 ) / 53 + 43 AS col0
----
37
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7801
SELECT ALL ( + - 45 ) + + 14 * 9 DIV - - 87 col0
----
-44

skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL ( + - 45 ) + + 14 * 9 / - - 87 col0
----
-44

query I rowsort
SELECT - 57 + 84
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7803
SELECT - 16 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7803
SELECT - 16 * - CAST ( NULL AS REAL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT + 33 + + - 46 + + COUNT( * ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-7804
SELECT + 33 + + - 46 + + COUNT ( * ) AS col2
----
-12

query I rowsort
SELECT + 39 - - 0 AS col0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT DISTINCT 45 * + COUNT( * )
----
45

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT 45 * + COUNT ( * )
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT ALL 4 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL 4 * - COUNT ( * )
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT + COUNT( * ) + + 52 AS col2
----
53

skipif mysql # not compatible
query I rowsort label-7808
SELECT + COUNT ( * ) + + 52 AS col2
----
53

query I rowsort
SELECT - ( + - 73 )
----
73

query I rowsort
SELECT ALL + 15 - - 54
----
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7811
SELECT DISTINCT NULLIF ( + - 23, - 28 / + COUNT( DISTINCT - - 99 ) * AVG ( - CAST( NULL AS SIGNED ) ) )
----
-23

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT NULLIF ( + - 23, - 28 / + COUNT ( DISTINCT - - 99 ) * AVG ( - CAST ( NULL AS INTEGER ) ) )
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT COUNT( * ) + - 23
----
-22

skipif mysql # not compatible
query I rowsort label-7812
SELECT COUNT ( * ) + - 23
----
-22

query I rowsort
SELECT - + ( - 67 ) AS col0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7814
SELECT + CAST( NULL AS SIGNED ) + 24 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7814
SELECT + CAST ( NULL AS INTEGER ) + 24 AS col2
----
NULL

query II rowsort
SELECT 80, + 73 * - 36 AS col1
----
80
-2628

query I rowsort
SELECT 19 * + 26
----
494

onlyif mysql # aggregate syntax: 
query II rowsort label-7817
SELECT DISTINCT - - 76, NULLIF ( 3, + - COUNT( * ) ) * + + 93 + - 86 + ( + COUNT( * ) ) * - 91 AS col0
----
76
102

skipif mysql # not compatible
query II rowsort label-7817
SELECT DISTINCT - - 76, NULLIF ( 3, + - COUNT ( * ) ) * + + 93 + - 86 + ( + COUNT ( * ) ) * - 91 AS col0
----
76
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7818
SELECT ALL COUNT( * ) DIV + 96 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL COUNT ( * ) / + 96 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7819
SELECT + COUNT( * ) * 91 * - + 83 col2
----
-7553

skipif mysql # not compatible
query I rowsort label-7819
SELECT + COUNT ( * ) * 91 * - + 83 col2
----
-7553

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7820
SELECT + - 58, CAST( NULL AS SIGNED ) AS col0
----
-58
NULL

skipif mysql # not compatible
query II rowsort label-7820
SELECT + - 58, CAST ( NULL AS INTEGER ) AS col0
----
-58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7821
SELECT DISTINCT 3 DIV + + 7
----
0

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT 3 / + + 7
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7822
SELECT ALL - + CASE 95 WHEN - 1 THEN NULL WHEN + 67 THEN ( - 84 ) WHEN + 13 + + 9 THEN NULL ELSE - - MIN( ALL + + 86 ) DIV 64 * - + 61 + - 25 END * - 54 - - - 94 * + 83 AS col1, + 78 - - 67 * + + 45
----
-12446
3093

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL - + CASE 95 WHEN - 1 THEN NULL WHEN + 67 THEN ( - 84 ) WHEN + 13 + + 9 THEN NULL ELSE - - MIN ( ALL + + 86 ) / 64 * - + 61 + - 25 END * - 54 - - - 94 * + 83 AS col1, + 78 - - 67 * + + 45
----
-12446
3093

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - 53 * - MIN( DISTINCT + + 45 )
----
2385

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - 53 * - MIN ( DISTINCT + + 45 )
----
2385

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT - 91 DIV 88 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-7824
SELECT - 91 / 88 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT MIN( DISTINCT - 0 )
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT MIN ( DISTINCT - 0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7826
SELECT DISTINCT + + 34 + + ( ( - 20 ) ) AS col0, CAST( NULL AS SIGNED ) * - - 94 AS col1
----
14
NULL

skipif mysql # not compatible
query II rowsort label-7826
SELECT DISTINCT + + 34 + + ( ( - 20 ) ) AS col0, CAST ( NULL AS INTEGER ) * - - 94 AS col1
----
14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7827
SELECT ALL - COUNT( * ) + + 55 + 25 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-7827
SELECT ALL - COUNT ( * ) + + 55 + 25 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7828
SELECT ALL COUNT( * ) + - 65 * + - 22 * - 27 * + + 66
----
-2548259

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL COUNT ( * ) + - 65 * + - 22 * - 27 * + + 66
----
-2548259

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT + NULLIF ( + + NULLIF ( - + COUNT( * ), - 95 ), + CAST( 65 AS SIGNED ) ) + - COALESCE ( - - 94, 97 - - 89, - COUNT( - ( - 91 ) ) )
----
-95

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT + NULLIF ( + + NULLIF ( - + COUNT ( * ), - 95 ), + CAST ( 65 AS INTEGER ) ) + - COALESCE ( - - 94, 97 - - 89, - COUNT ( - ( - 91 ) ) )
----
-95

query I rowsort
SELECT 52 * + 44 + 35 - - 22
----
2345

query I rowsort
SELECT - ( + ( 50 ) ) * + - 2 * - 22 + - + 43 + - 44 * 38 AS col1
----
-3915

query I rowsort
SELECT ALL - 62 * - 15 AS col1
----
930

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7833
SELECT ALL 98 - 78 + - - CAST( NULL AS DECIMAL ) + CASE 65 WHEN - ( + 81 ) - 20 THEN - - ( - COUNT( * ) ) ELSE NULL END / COUNT( * ) / COUNT( * ) + - 18 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL 98 - 78 + - - CAST ( NULL AS REAL ) + CASE 65 WHEN - ( + 81 ) - 20 THEN - - ( - COUNT ( * ) ) ELSE NULL END / COUNT ( * ) / COUNT ( * ) + - 18 AS col0
----
NULL

query I rowsort
SELECT - 50 + 66 AS col0
----
16

query II rowsort
SELECT - 33 * + 44 AS col2, - 12
----
-1452
-12

query I rowsort
SELECT - 72 - + 4 AS col2
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-7837
SELECT + 42 DIV + - 63 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7837
SELECT + 42 / + - 63 AS col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT COUNT( * ) - 63, 85 AS col2
----
-62
85

skipif mysql # not compatible
query II rowsort label-7838
SELECT COUNT ( * ) - 63, 85 AS col2
----
-62
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7839
SELECT ALL MAX( - + 67 ) AS col2, + 99 DIV 76 * - 86
----
-67
-86

skipif mysql # not compatible
query II rowsort label-7839
SELECT ALL MAX ( - + 67 ) AS col2, + 99 / 76 * - 86
----
-67
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7840
SELECT ALL 30 * - + 78 * + + ( + COALESCE ( + 98, 29 ) ) + - - COUNT( * ) + + CAST( NULL AS SIGNED ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL 30 * - + 78 * + + ( + COALESCE ( + 98, 29 ) ) + - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) col2
----
NULL

query II rowsort
SELECT + 99 + 95 col2, 41
----
194
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7842
SELECT ALL + 49 DIV + 24 AS col1
----
2

skipif mysql # not compatible
query I rowsort label-7842
SELECT ALL + 49 / + 24 AS col1
----
2

query I rowsort
SELECT ALL + 68 * 22 * 83
----
124168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7844
SELECT ALL 92 * + - CAST( NULL AS SIGNED ) - + - 73 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL 92 * + - CAST ( NULL AS INTEGER ) - + - 73 col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7845
SELECT + COUNT( * ) * - ( - 15 ) * 34 - + 71 - + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT + COUNT ( * ) * - ( - 15 ) * 34 - + 71 - + + CAST ( NULL AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + 24 + 3 AS col2, + 94
----
27
94

query II rowsort
SELECT 6 + 29 AS col1, ( - + 56 ) col1
----
35
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7848
SELECT 13 / - 81 * - - 12 - + 40 + + CASE - 55 WHEN - + NULLIF ( - - 0, MIN( ALL - + 19 ) ) THEN + 64 WHEN + + 56 THEN NULL ELSE NULL END + - ( 49 ) * 97 / + + 34 + + 64 / + - ( - CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7848
SELECT 13 / - 81 * - - 12 - + 40 + + CASE - 55 WHEN - + NULLIF ( - - 0, MIN ( ALL - + 19 ) ) THEN + 64 WHEN + + 56 THEN NULL ELSE NULL END + - ( 49 ) * 97 / + + 34 + + 64 / + - ( - CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL 19 * - ( - 27 ) AS col0
----
513

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT + COUNT( + 6 ) * + + COUNT( DISTINCT - ( + 96 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-7850
SELECT + COUNT ( + 6 ) * + + COUNT ( DISTINCT - ( + 96 ) ) AS col1
----
1

query I rowsort
SELECT 95 + + 4 col0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT COUNT( - - CASE WHEN ( - 45 ) < 56 + 23 THEN 12 + 14 END )
----
1

skipif mysql # not compatible
query I rowsort label-7852
SELECT COUNT ( - - CASE WHEN ( - 45 ) < 56 + 23 THEN 12 + 14 END )
----
1

query I rowsort
SELECT DISTINCT - COALESCE ( + 32, NULLIF ( - 67, 57 ), - 77 ) + - + 98
----
-130

query II rowsort
SELECT ALL - 69, - 14 AS col2
----
-69
-14

query I rowsort
SELECT DISTINCT 30 + - 41
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT DISTINCT COUNT( * ) + - 41 AS col2
----
-40

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT COUNT ( * ) + - 41 AS col2
----
-40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7857
SELECT COUNT( COALESCE ( - ( CAST( - + 53 AS DECIMAL ) ), 84 - ( - 6 ) - + + 48 ) )
----
1

skipif mysql # not compatible
query I rowsort label-7857
SELECT COUNT ( COALESCE ( - ( CAST ( - + 53 AS REAL ) ), 84 - ( - 6 ) - + + 48 ) )
----
1

query I rowsort
SELECT DISTINCT + 20 + + 71
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT MIN( + 19 ) AS col2
----
19

skipif mysql # not compatible
query I rowsort label-7859
SELECT MIN ( + 19 ) AS col2
----
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7860
SELECT ALL 82 DIV - 85 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL 82 / - 85 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7861
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) + - 89 * - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) + - 89 * - COUNT ( * )
----
NULL

query II rowsort
SELECT + 4, 20 AS col0
----
4
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT ALL 11 - NULLIF ( - - COUNT( * ), 91 )
----
10

skipif mysql # not compatible
query I rowsort label-7863
SELECT ALL 11 - NULLIF ( - - COUNT ( * ), 91 )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT DISTINCT - SUM( - 55 ) AS col0
----
55

skipif mysql # not compatible
query I rowsort label-7864
SELECT DISTINCT - SUM ( - 55 ) AS col0
----
55

query II rowsort
SELECT ALL - 94, 5 col1
----
-94
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT 29 + + - COUNT( * ) AS col2
----
28

skipif mysql # not compatible
query I rowsort label-7866
SELECT 29 + + - COUNT ( * ) AS col2
----
28

query I rowsort
SELECT DISTINCT 40 - + - 13
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT - 86 * - 58 + + + SUM( DISTINCT + 14 )
----
5002

skipif mysql # not compatible
query I rowsort label-7868
SELECT - 86 * - 58 + + + SUM ( DISTINCT + 14 )
----
5002

onlyif mysql # aggregate syntax: 
query II rowsort label-7869
SELECT DISTINCT + 21 - + 27 + MAX( - + 1 ) AS col0, + COUNT( * ) * - COUNT( * )
----
-7
-1

skipif mysql # not compatible
query II rowsort label-7869
SELECT DISTINCT + 21 - + 27 + MAX ( - + 1 ) AS col0, + COUNT ( * ) * - COUNT ( * )
----
-7
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT - 87 + - 40 + - COUNT( * ) AS col1
----
-128

skipif mysql # not compatible
query I rowsort label-7870
SELECT - 87 + - 40 + - COUNT ( * ) AS col1
----
-128

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT ALL + 3 DIV - 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL + 3 / - 76 AS col1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7872
SELECT - NULLIF ( 72, + + CAST( NULL AS SIGNED ) + - NULLIF ( 97, - 69 ) - + 24 + + - 86 * 52 / + 81 + - 30 / + - COALESCE ( + - 96, + NULLIF ( + AVG ( - - 90 ), CAST( NULL AS SIGNED ) ), - 73 ) * + COUNT( * ) + + 18 ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-7872
SELECT - NULLIF ( 72, + + CAST ( NULL AS INTEGER ) + - NULLIF ( 97, - 69 ) - + 24 + + - 86 * 52 / + 81 + - 30 / + - COALESCE ( + - 96, + NULLIF ( + AVG ( - - 90 ), CAST ( NULL AS INTEGER ) ), - 73 ) * + COUNT ( * ) + + 18 ) AS col2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7873
SELECT - + COUNT( * ) + 40 * + 48 AS col2
----
1919

skipif mysql # not compatible
query I rowsort label-7873
SELECT - + COUNT ( * ) + 40 * + 48 AS col2
----
1919

query I rowsort
SELECT - ( 48 ) * 77 * 60 + + - 9 AS col2
----
-221769

query I rowsort
SELECT - - 69 * + - 2 * - 95 - 24
----
13086

query I rowsort
SELECT ALL NULLIF ( - 35, 83 )
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT - + SUM( DISTINCT + + 1 ) + - COUNT( * ) - - 20
----
18

skipif mysql # not compatible
query I rowsort label-7877
SELECT - + SUM ( DISTINCT + + 1 ) + - COUNT ( * ) - - 20
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7878
SELECT ALL + SUM( + + 65 ) + 74 * 75 + - 66 * 32 + + - 72 DIV 35 * - + 94, 98 + 69 col0
----
3691
167

skipif mysql # not compatible
query II rowsort label-7878
SELECT ALL + SUM ( + + 65 ) + 74 * 75 + - 66 * 32 + + - 72 / 35 * - + 94, 98 + 69 col0
----
3691
167

query I rowsort
SELECT DISTINCT + 81 + 13
----
94

query I rowsort
SELECT DISTINCT + 70 + - + 58
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT - ( - CASE + 83 WHEN + CASE - + 35 WHEN + 79 THEN - 20 ELSE NULL END / - + 84 THEN 69 * + 16 + - 70 * 44 + + ( - COUNT( * ) ) END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7881
SELECT - ( - CASE + 83 WHEN + CASE - + 35 WHEN + 79 THEN - 20 ELSE NULL END / - + 84 THEN 69 * + 16 + - 70 * 44 + + ( - COUNT ( * ) ) END ) AS col2
----
NULL

query I rowsort
SELECT + COALESCE ( - - 12, - 51 ) AS col0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7883
SELECT ALL + NULLIF ( 19, + ( + COUNT( * ) ) * - 35 + + CAST( NULL AS SIGNED ) + - 70 * - COUNT( * ) * + ( + 92 ) ) AS col1
----
19

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL + NULLIF ( 19, + ( + COUNT ( * ) ) * - 35 + + CAST ( NULL AS INTEGER ) + - 70 * - COUNT ( * ) * + ( + 92 ) ) AS col1
----
19

query I rowsort
SELECT - + 82 * - + 43
----
3526

query I rowsort
SELECT - 9 + + 15 * + 57 * + 18
----
15381

query I rowsort
SELECT - - 7 * 26 * 37 * + - 95 AS col1
----
-639730

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL + 4 * + 26 + + - 47 + - 29 * + SUM( ALL + 80 ) - + 10 AS col1
----
-2273

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + 4 * + 26 + + - 47 + - 29 * + SUM ( ALL + 80 ) - + 10 AS col1
----
-2273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7888
SELECT + 77 * - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7888
SELECT + 77 * - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

query I rowsort
SELECT ALL - 6 * 65 AS col2
----
-390

query I rowsort
SELECT + 53 * 81
----
4293

query I rowsort
SELECT NULLIF ( + 84, - - 74 )
----
84

query I rowsort
SELECT + 70 + + 2
----
72

query I rowsort
SELECT + 47 + - 30 + + 18 * 72 col1
----
1313

query I rowsort
SELECT + ( + - 11 ) AS col0
----
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-7895
SELECT + 17 * - 42 AS col0, 84 + + - ( - - MAX( DISTINCT - - 35 ) ) + + 34
----
-714
83

skipif mysql # not compatible
query II rowsort label-7895
SELECT + 17 * - 42 AS col0, 84 + + - ( - - MAX ( DISTINCT - - 35 ) ) + + 34
----
-714
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT + COUNT( * ) * + - 94 * + COUNT( * ) AS col1
----
-94

skipif mysql # not compatible
query I rowsort label-7896
SELECT + COUNT ( * ) * + - 94 * + COUNT ( * ) AS col1
----
-94

query I rowsort
SELECT DISTINCT + 89 * 9 * - - 19 AS col0
----
15219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT - 82 * - + 82 - - CAST( NULL AS SIGNED ) + - CAST( 25 AS SIGNED ) + - 60 * - - MIN( DISTINCT - - 93 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT - 82 * - + 82 - - CAST ( NULL AS INTEGER ) + - CAST ( 25 AS INTEGER ) + - 60 * - - MIN ( DISTINCT - - 93 ) AS col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT CAST( NULL AS SIGNED ) / 92 * - 38 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT CAST ( NULL AS INTEGER ) / 92 * - 38 AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7900
SELECT + 33 + - COALESCE ( 21, + + 28 * - - 13 * - + 21, - + 57 DIV + 51 ) AS col0
----
12

skipif mysql # not compatible
query I rowsort label-7900
SELECT + 33 + - COALESCE ( 21, + + 28 * - - 13 * - + 21, - + 57 / + 51 ) AS col0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT + COUNT( ALL - 70 ) * + - 6 + - + 15
----
-21

skipif mysql # not compatible
query I rowsort label-7901
SELECT + COUNT ( ALL - 70 ) * + - 6 + - + 15
----
-21

query I rowsort
SELECT ALL 63 * 89
----
5607

query I rowsort
SELECT - NULLIF ( - 29, + - 8 )
----
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7904
SELECT - + 98 DIV 88, + ( COUNT( * ) ) AS col1
----
-1
1

skipif mysql # not compatible
query II rowsort label-7904
SELECT - + 98 / 88, + ( COUNT ( * ) ) AS col1
----
-1
1

query I rowsort
SELECT ALL 24 * - - 10 + 39 * - 87 AS col1
----
-3153

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT ALL - 23 * - COALESCE ( - ( - + 22 ), - ( + + 92 ) * - COALESCE ( - - 73, - 80 + + + 79 ) + + 9 + 48 - 16 * + - 14 * - 50, MIN( 35 ) )
----
506

skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - 23 * - COALESCE ( - ( - + 22 ), - ( + + 92 ) * - COALESCE ( - - 73, - 80 + + + 79 ) + + 9 + 48 - 16 * + - 14 * - 50, MIN ( 35 ) )
----
506

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT DISTINCT + 60 + - COUNT( * ) AS col0
----
59

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT + 60 + - COUNT ( * ) AS col0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT ALL + - 57 DIV + + 9
----
-6

skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL + - 57 / + + 9
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT + COALESCE ( - - 78, ( - 24 ) * 53 - 73, - + COUNT( * ) + + 72 * + 34 * + 37 ) + 52 AS col0
----
130

skipif mysql # not compatible
query I rowsort label-7909
SELECT + COALESCE ( - - 78, ( - 24 ) * 53 - 73, - + COUNT ( * ) + + 72 * + 34 * + 37 ) + 52 AS col0
----
130

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7910
SELECT ALL - CASE - 33 WHEN - ( - - 95 ) + - 74 - - CAST( NULL AS SIGNED ) THEN - 27 END, + 20 col2
----
NULL
20

skipif mysql # not compatible
query II rowsort label-7910
SELECT ALL - CASE - 33 WHEN - ( - - 95 ) + - 74 - - CAST ( NULL AS INTEGER ) THEN - 27 END, + 20 col2
----
NULL
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7911
SELECT + - 77 + - 54 + 23 + 98 + + 35 + - 76 * COUNT( * ) * - 30 AS col0
----
2305

skipif mysql # not compatible
query I rowsort label-7911
SELECT + - 77 + - 54 + 23 + 98 + + 35 + - 76 * COUNT ( * ) * - 30 AS col0
----
2305

query I rowsort
SELECT ALL - 66 + 34 + 5
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT - + 97 * - MAX( ALL + 25 )
----
2425

skipif mysql # not compatible
query I rowsort label-7913
SELECT - + 97 * - MAX ( ALL + 25 )
----
2425

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT + + 86 - + MIN( ALL + 83 ) + + 69 + + COALESCE ( 85, - - 40 * - 54 ) * - 45
----
-3753

skipif mysql # not compatible
query I rowsort label-7914
SELECT + + 86 - + MIN ( ALL + 83 ) + + 69 + + COALESCE ( 85, - - 40 * - 54 ) * - 45
----
-3753

query I rowsort
SELECT DISTINCT + 75 * 66 * - + 84
----
-415800

onlyif mysql # aggregate syntax: 
query II rowsort label-7916
SELECT - 84 + - ( COUNT( * ) ) + 99 AS col2, - 43 col2
----
14
-43

skipif mysql # not compatible
query II rowsort label-7916
SELECT - 84 + - ( COUNT ( * ) ) + 99 AS col2, - 43 col2
----
14
-43

query I rowsort
SELECT ALL 54 + + 63
----
117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7918
SELECT - 98 + - COALESCE ( + + 89, + 86 ) + 53 * + CAST( COUNT( * ) AS SIGNED )
----
-134

skipif mysql # not compatible
query I rowsort label-7918
SELECT - 98 + - COALESCE ( + + 89, + 86 ) + 53 * + CAST ( COUNT ( * ) AS INTEGER )
----
-134

query I rowsort
SELECT DISTINCT + ( + 51 ) * 45 * ( + 0 ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT ALL - 56 - + 46 AS col2, 54 * + COUNT( * ) * + 20 * + ( + - 35 ) + - - 35 - ( 44 ) + 63 * + 98 * + + 22 AS col1
----
-102
98019

skipif mysql # not compatible
query II rowsort label-7920
SELECT ALL - 56 - + 46 AS col2, 54 * + COUNT ( * ) * + 20 * + ( + - 35 ) + - - 35 - ( 44 ) + 63 * + 98 * + + 22 AS col1
----
-102
98019

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT DISTINCT + COUNT( DISTINCT + + 74 )
----
1

skipif mysql # not compatible
query I rowsort label-7921
SELECT DISTINCT + COUNT ( DISTINCT + + 74 )
----
1

query I rowsort
SELECT ALL + ( - 87 )
----
-87

query I rowsort
SELECT - 65 * + ( - 48 ) col2
----
3120

onlyif mysql # aggregate syntax: 
query II rowsort label-7924
SELECT - 29 + + + 95 + + - 92 + - MAX( ALL - - 43 ) AS col0, 57 AS col2
----
-69
57

skipif mysql # not compatible
query II rowsort label-7924
SELECT - 29 + + + 95 + + - 92 + - MAX ( ALL - - 43 ) AS col0, 57 AS col2
----
-69
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7925
SELECT CAST( NULL AS SIGNED ), + 32 - - + COUNT( * ) AS col1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-7925
SELECT CAST ( NULL AS INTEGER ), + 32 - - + COUNT ( * ) AS col1
----
NULL
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7926
SELECT + NULLIF ( + + 50, + CAST( NULL AS SIGNED ) )
----
50

skipif mysql # not compatible
query I rowsort label-7926
SELECT + NULLIF ( + + 50, + CAST ( NULL AS INTEGER ) )
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT DISTINCT + MIN( ALL + + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-7927
SELECT DISTINCT + MIN ( ALL + + 1 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7928
SELECT + 23 * - - ( - CAST( NULL AS SIGNED ) ), - 78 AS col2
----
NULL
-78

skipif mysql # not compatible
query II rowsort label-7928
SELECT + 23 * - - ( - CAST ( NULL AS INTEGER ) ), - 78 AS col2
----
NULL
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT - COUNT( * ) / + COALESCE ( - 24, MIN( + 83 ) ) * + MIN( - CAST( NULL AS SIGNED ) ) + + 93 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT - COUNT ( * ) / + COALESCE ( - 24, MIN ( + 83 ) ) * + MIN ( - CAST ( NULL AS INTEGER ) ) + + 93 col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT ALL + COUNT( + 82 ) col1
----
1

skipif mysql # not compatible
query I rowsort label-7930
SELECT ALL + COUNT ( + 82 ) col1
----
1

query II rowsort
SELECT 42 + - 46 * + 0, 46 AS col2
----
42
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7932
SELECT ALL - CAST( NULL AS DECIMAL ) / - - 80 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7932
SELECT ALL - CAST ( NULL AS REAL ) / - - 80 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7933
SELECT SUM( + 2 ) * + 17 + + 25 * + COALESCE ( + CAST( + 22 AS SIGNED ), + ( - - 22 ) ) + 72 * 29 AS col2, 18 AS col2
----
2672
18

skipif mysql # not compatible
query II rowsort label-7933
SELECT SUM ( + 2 ) * + 17 + + 25 * + COALESCE ( + CAST ( + 22 AS INTEGER ), + ( - - 22 ) ) + 72 * 29 AS col2, 18 AS col2
----
2672
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT - 77 * + 64 * + + 80 * - + COUNT( DISTINCT 25 ) + - 12 * - + 85 AS col1
----
395260

skipif mysql # not compatible
query I rowsort label-7934
SELECT - 77 * + 64 * + + 80 * - + COUNT ( DISTINCT 25 ) + - 12 * - + 85 AS col1
----
395260

query I rowsort
SELECT ALL 22 * 46
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT COUNT( * ) * 39
----
39

skipif mysql # not compatible
query I rowsort label-7936
SELECT COUNT ( * ) * 39
----
39

query I rowsort
SELECT ( 76 ) * + 32
----
2432

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT ALL 39 + + + SUM( + + 12 ) + + ( + 37 ) * - + 10 + MAX( 13 )
----
-306

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL 39 + + + SUM ( + + 12 ) + + ( + 37 ) * - + 10 + MAX ( 13 )
----
-306

onlyif mysql # aggregate syntax: 
query I rowsort label-7939
SELECT MIN( ALL - + 81 ) + + COUNT( * ) * + 44
----
-37

skipif mysql # not compatible
query I rowsort label-7939
SELECT MIN ( ALL - + 81 ) + + COUNT ( * ) * + 44
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-7940
SELECT ALL 15 + 70 - - MIN( DISTINCT + + 70 ) * + + 70 * 89 * + - 27
----
-11774615

skipif mysql # not compatible
query I rowsort label-7940
SELECT ALL 15 + 70 - - MIN ( DISTINCT + + 70 ) * + + 70 * 89 * + - 27
----
-11774615

query I rowsort
SELECT 63 + + 93
----
156

query I rowsort
SELECT DISTINCT - - 51 + - 13 AS col1
----
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL - ( 83 ) + - 27 * - 71 - - CAST( NULL AS SIGNED ) - - + COUNT( * ) / - - COUNT( * ) * COALESCE ( - 45, + - 0 + + 81, SUM( DISTINCT + 7 ) ) + + + 28
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL - ( 83 ) + - 27 * - 71 - - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) / - - COUNT ( * ) * COALESCE ( - 45, + - 0 + + 81, SUM ( DISTINCT + 7 ) ) + + + 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT ALL - 61 + + SUM( + + 59 ) col1
----
-2

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL - 61 + + SUM ( + + 59 ) col1
----
-2

query II rowsort
SELECT DISTINCT ( + + 21 ) + - 51 AS col1, 90 - + + 35
----
-30
55

query I rowsort
SELECT + 19 * - + 88
----
-1672

onlyif mysql # aggregate syntax: 
query II rowsort label-7947
SELECT ALL COUNT( * ) AS col0, - 62 + - 62 + 49 * - - COUNT( * ) AS col2
----
1
-75

skipif mysql # not compatible
query II rowsort label-7947
SELECT ALL COUNT ( * ) AS col0, - 62 + - 62 + 49 * - - COUNT ( * ) AS col2
----
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7948
SELECT + COUNT( * ) + + COUNT( ALL + 68 )
----
2

skipif mysql # not compatible
query I rowsort label-7948
SELECT + COUNT ( * ) + + COUNT ( ALL + 68 )
----
2

query II rowsort
SELECT - + 42, + 98 AS col2
----
-42
98

query I rowsort
SELECT DISTINCT - 29 col0
----
-29

query I rowsort
SELECT ALL 85 + + 46
----
131

query I rowsort
SELECT 88 + - 36
----
52

query II rowsort
SELECT 47 + - 97 + + - 47, + 66 AS col0
----
-97
66

query II rowsort
SELECT ALL 82 AS col0, - 64 col2
----
82
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - MIN( + 47 ) + 71 + + - 24 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT - MIN ( + 47 ) + 71 + + - 24 AS col1
----
0

query I rowsort
SELECT ALL - + 12 - - + 3 AS col2
----
-9

query I rowsort
SELECT + 91 * 32 AS col2
----
2912

onlyif mysql # DIV for integer division: 
query I rowsort label-7958
SELECT DISTINCT - + 87 DIV + 21
----
-4

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT - + 87 / + 21
----
-4

query I rowsort
SELECT DISTINCT 70 - - 91
----
161

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT + COUNT( * ) * 78 AS col0
----
78

skipif mysql # not compatible
query I rowsort label-7960
SELECT + COUNT ( * ) * 78 AS col0
----
78

query I rowsort
SELECT + 18 + + 16
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL COALESCE ( + 99, 91 * - 77 + + 65, 22 + COUNT( * ) ) AS col1
----
99

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL COALESCE ( + 99, 91 * - 77 + + 65, 22 + COUNT ( * ) ) AS col1
----
99

query I rowsort
SELECT 42 + - 86 AS col0
----
-44

query II rowsort
SELECT ALL 42 AS col0, 96
----
42
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7965
SELECT ALL - COUNT( * ) AS col0, - CAST( - 3 AS SIGNED ) - 97 - - 62
----
-1
-32

skipif mysql # not compatible
query II rowsort label-7965
SELECT ALL - COUNT ( * ) AS col0, - CAST ( - 3 AS INTEGER ) - 97 - - 62
----
-1
-32

query I rowsort
SELECT DISTINCT - COALESCE ( - 2, - - 81 ) AS col2
----
2

query I rowsort
SELECT - 73 * + 24 + + 52 col1
----
-1700

query II rowsort
SELECT 29 AS col0, 41
----
29
41

query I rowsort
SELECT 74 + 26 * 60 * - 43
----
-67006

query II rowsort
SELECT + 18 AS col2, 31 * - 80 - + 6 AS col0
----
18
-2486

query I rowsort
SELECT ALL - 99 + ( + 44 ) AS col0
----
-55

query II rowsort
SELECT ALL + 45 + + 51 AS col2, - 66
----
96
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT DISTINCT - 81 + + - COUNT( * ) - - + COUNT( * )
----
-81

skipif mysql # not compatible
query I rowsort label-7973
SELECT DISTINCT - 81 + + - COUNT ( * ) - - + COUNT ( * )
----
-81

query II rowsort
SELECT 67 - + ( + + 16 ) * + 3 AS col0, 55 AS col1
----
19
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7975
SELECT 73 DIV - + 65 col1
----
-1

skipif mysql # not compatible
query I rowsort label-7975
SELECT 73 / - + 65 col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7976
SELECT + + ( + COUNT( * ) ) col0
----
1

skipif mysql # not compatible
query I rowsort label-7976
SELECT + + ( + COUNT ( * ) ) col0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7977
SELECT ALL - CAST( - ( - 9 ) AS SIGNED ) + - - COUNT( * )
----
-8

skipif mysql # not compatible
query I rowsort label-7977
SELECT ALL - CAST ( - ( - 9 ) AS INTEGER ) + - - COUNT ( * )
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT - - COUNT( * ) + + - 27 * - + 39 AS col1
----
1054

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT - - COUNT ( * ) + + - 27 * - + 39 AS col1
----
1054

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7979
SELECT ALL + 41 * - - 43, - COUNT( * ) DIV + COUNT( ALL + 41 ) AS col0
----
1763
-1

skipif mysql # not compatible
query II rowsort label-7979
SELECT ALL + 41 * - - 43, - COUNT ( * ) / + COUNT ( ALL + 41 ) AS col0
----
1763
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7980
SELECT 24 * - + ( + COUNT( ALL + 66 ) ) DIV - - 40 + + 86 DIV 49 * - + 14 AS col1
----
-14

skipif mysql # not compatible
query I rowsort label-7980
SELECT 24 * - + ( + COUNT ( ALL + 66 ) ) / - - 40 + + 86 / 49 * - + 14 AS col1
----
-14

query I rowsort
SELECT DISTINCT - + 35 * + - 46
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7982
SELECT ALL 69 + - + ( + - CAST( NULL AS SIGNED ) ) * 3 AS col2, + 42 col1
----
NULL
42

skipif mysql # not compatible
query II rowsort label-7982
SELECT ALL 69 + - + ( + - CAST ( NULL AS INTEGER ) ) * 3 AS col2, + 42 col1
----
NULL
42

query II rowsort
SELECT - 99 AS col1, 29 - - ( - 33 )
----
-99
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT ALL - 80 * + COUNT( * ) * - 81
----
6480

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL - 80 * + COUNT ( * ) * - 81
----
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-7985
SELECT COUNT( * ) * + COUNT( * ) + + - MAX( DISTINCT - 32 ) + + 92 + + - 16 + - + 96
----
13

skipif mysql # not compatible
query I rowsort label-7985
SELECT COUNT ( * ) * + COUNT ( * ) + + - MAX ( DISTINCT - 32 ) + + 92 + + - 16 + - + 96
----
13

query I rowsort
SELECT ALL - 25 * - 1 * + 40 AS col2
----
1000

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT - - COUNT( + - 90 )
----
1

skipif mysql # not compatible
query I rowsort label-7987
SELECT - - COUNT ( + - 90 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT ALL + 8 * - - ( ( + COUNT( - 91 ) ) ) + + 80 col0
----
88

skipif mysql # not compatible
query I rowsort label-7988
SELECT ALL + 8 * - - ( ( + COUNT ( - 91 ) ) ) + + 80 col0
----
88

query II rowsort
SELECT ALL + 70 col0, + ( - - 68 ) AS col0
----
70
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7990
SELECT - 32 + - COALESCE ( 92, - 37, COUNT( * ) ) + - MAX( ALL + 67 ) - - 28 DIV + 86
----
-191

skipif mysql # not compatible
query I rowsort label-7990
SELECT - 32 + - COALESCE ( 92, - 37, COUNT ( * ) ) + - MAX ( ALL + 67 ) - - 28 / + 86
----
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-7991
SELECT COALESCE ( - 49, 9 + + 73 * + ( + + COUNT( * ) ), - NULLIF ( - - 35, - - 69 ) + + 8 ) AS col1
----
-49

skipif mysql # not compatible
query I rowsort label-7991
SELECT COALESCE ( - 49, 9 + + 73 * + ( + + COUNT ( * ) ), - NULLIF ( - - 35, - - 69 ) + + 8 ) AS col1
----
-49

query I rowsort
SELECT 75 + + 88
----
163

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT 5 DIV - - ( - + 42 ) + - 30
----
-30

skipif mysql # not compatible
query I rowsort label-7993
SELECT 5 / - - ( - + 42 ) + - 30
----
-30

query I rowsort
SELECT + 25 * + 12
----
300

query I rowsort
SELECT NULLIF ( + 76, 64 + 22 * + 87 * + 59 * - 74 ) + + 42 * - 1 AS col0
----
34

query I rowsort
SELECT + 94 + + ( 91 ) * - - 46
----
4280

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7997
SELECT + 12 * + + ( COUNT( * ) ) DIV - 99 - COUNT( * ) * + COUNT( * ) * - COUNT( - ( 99 ) ) DIV + - 46 AS col1, 2 AS col2
----
0
2

skipif mysql # not compatible
query II rowsort label-7997
SELECT + 12 * + + ( COUNT ( * ) ) / - 99 - COUNT ( * ) * + COUNT ( * ) * - COUNT ( - ( 99 ) ) / + - 46 AS col1, 2 AS col2
----
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7998
SELECT DISTINCT COUNT( * ) * COALESCE ( + 67, + 63, + 7 ) * 88 * + 98 AS col2, + ( + 73 ) * - 89 + - + 28 - + CAST( NULL AS SIGNED ) * - 22 + 67 AS col2
----
577808
NULL

skipif mysql # not compatible
query II rowsort label-7998
SELECT DISTINCT COUNT ( * ) * COALESCE ( + 67, + 63, + 7 ) * 88 * + 98 AS col2, + ( + 73 ) * - 89 + - + 28 - + CAST ( NULL AS INTEGER ) * - 22 + 67 AS col2
----
577808
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7999
SELECT + 46 + + MAX( ALL ( + CAST( NULL AS SIGNED ) ) ) * COUNT( * ) + - NULLIF ( + + 76, - + COUNT( * ) ) + - 69 + + 42 * - + COUNT( * ) + + - 26 * + 72
----
NULL

skipif mysql # not compatible
query I rowsort label-7999
SELECT + 46 + + MAX ( ALL ( + CAST ( NULL AS INTEGER ) ) ) * COUNT ( * ) + - NULLIF ( + + 76, - + COUNT ( * ) ) + - 69 + + 42 * - + COUNT ( * ) + + - 26 * + 72
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT ALL + 76 DIV - 38 AS col1
----
-2

skipif mysql # not compatible
query I rowsort label-8000
SELECT ALL + 76 / - 38 AS col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT CASE + 31 WHEN 93 THEN - COUNT( * ) ELSE - 48 * COUNT( - 6 ) END AS col0
----
-48

skipif mysql # not compatible
query I rowsort label-8001
SELECT CASE + 31 WHEN 93 THEN - COUNT ( * ) ELSE - 48 * COUNT ( - 6 ) END AS col0
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8002
SELECT + 76 DIV - - 28 AS col0, + 98 * + + COUNT( * )
----
2
98

skipif mysql # not compatible
query II rowsort label-8002
SELECT + 76 / - - 28 AS col0, + 98 * + + COUNT ( * )
----
2
98

query I rowsort
SELECT + 34 + - 66 + - + 85
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT 76 / 95 - CAST( NULL AS SIGNED ) + - 91 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8004
SELECT 76 / 95 - CAST ( NULL AS INTEGER ) + - 91 col2
----
NULL

query I rowsort
SELECT + 52 * 13 * 83
----
56108

query I rowsort
SELECT - 58 * + + ( - 66 )
----
3828

query I rowsort
SELECT ALL 38 * + 35 * 97 + + 35 + + 4 AS col1
----
129049

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT 77 * - MAX( DISTINCT 53 ) + + 28 / 39 / - COUNT( * ) * ( + + CASE ( - - 86 ) WHEN + 35 THEN + COUNT( * ) * + 43 * 18 WHEN - - NULLIF ( - 43, - 32 * - - 20 * + 32 * - 38 ) + - 91 THEN NULL END ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT 77 * - MAX ( DISTINCT 53 ) + + 28 / 39 / - COUNT ( * ) * ( + + CASE ( - - 86 ) WHEN + 35 THEN + COUNT ( * ) * + 43 * 18 WHEN - - NULLIF ( - 43, - 32 * - - 20 * + 32 * - 38 ) + - 91 THEN NULL END ) col2
----
NULL

query I rowsort
SELECT DISTINCT + 42 * 85 + + 58
----
3628

query I rowsort
SELECT ALL + COALESCE ( ( + 47 ), + 47, - 91, + 64 )
----
47

query II rowsort
SELECT ALL 6 * - 88 + 62 AS col2, - ( 48 ) AS col0
----
-466
-48

query I rowsort
SELECT ALL 75 * + 39 + 75 + 61
----
3061

query I rowsort
SELECT NULLIF ( - 8, + 64 ) AS col0
----
-8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8014
SELECT + - 81 * + 49 * + + SUM( + 9 ) + + CASE + + CAST( + - COALESCE ( MIN( DISTINCT 1 ), - 27 ) AS SIGNED ) WHEN - - NULLIF ( + 44, - 51 ) THEN + + 73 WHEN 14 THEN 98 * - - 66 + 94 + ( - - 49 ) + + 82 + 72 * 86 END * + 74 * + + COUNT( * ) + + + 50 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8014
SELECT + - 81 * + 49 * + + SUM ( + 9 ) + + CASE + + CAST ( + - COALESCE ( MIN ( DISTINCT 1 ), - 27 ) AS INTEGER ) WHEN - - NULLIF ( + 44, - 51 ) THEN + + 73 WHEN 14 THEN 98 * - - 66 + 94 + ( - - 49 ) + + 82 + 72 * 86 END * + 74 * + + COUNT ( * ) + + + 50 AS col0
----
NULL

query I rowsort
SELECT ALL + - 31 AS col1
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT ALL 21 * - - 10 + + COUNT( ALL - 32 )
----
211

skipif mysql # not compatible
query I rowsort label-8016
SELECT ALL 21 * - - 10 + + COUNT ( ALL - 32 )
----
211

query I rowsort
SELECT - + 73 + 8 + + - 73
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT - COUNT( * ) * 12 + + + 77 AS col0
----
65

skipif mysql # not compatible
query I rowsort label-8018
SELECT - COUNT ( * ) * 12 + + + 77 AS col0
----
65

query I rowsort
SELECT - - 98 + 84 AS col2
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + + MAX( DISTINCT + - 41 )
----
-41

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + + MAX ( DISTINCT + - 41 )
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT - 49 * + ( + 42 ) + - CASE + 42 WHEN - COALESCE ( - 52, - ( + CASE - - 35 WHEN 99 * + + CASE 45 WHEN - MAX( ALL + 45 ) - + 50 THEN - 54 ELSE NULL END + COUNT( * ) THEN + 61 + 0 + - 97 ELSE + 95 * - + 21 END ) + 94 * - 22 * - 93 * + 51 / - 62 * - + 26 + 63 + - - 7 + + MIN( DISTINCT + 25 ) + + 48 / + 78 ) THEN - + 10 END * 63 - - ( - MAX( DISTINCT 13 ) ) + + 86 * 27 * 82 - - ( + 64 + - ( - COUNT( * ) ) ) * + NULLIF ( ( + 85 ), - 45 * 91 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT - 49 * + ( + 42 ) + - CASE + 42 WHEN - COALESCE ( - 52, - ( + CASE - - 35 WHEN 99 * + + CASE 45 WHEN - MAX ( ALL + 45 ) - + 50 THEN - 54 ELSE NULL END + COUNT ( * ) THEN + 61 + 0 + - 97 ELSE + 95 * - + 21 END ) + 94 * - 22 * - 93 * + 51 / - 62 * - + 26 + 63 + - - 7 + + MIN ( DISTINCT + 25 ) + + 48 / + 78 ) THEN - + 10 END * 63 - - ( - MAX ( DISTINCT 13 ) ) + + 86 * 27 * 82 - - ( + 64 + - ( - COUNT ( * ) ) ) * + NULLIF ( ( + 85 ), - 45 * 91 ) col0
----
NULL

query I rowsort
SELECT DISTINCT + + 79 - - ( 30 ) AS col0
----
109

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT - - COUNT( * ) * - - COUNT( * ) AS col2, 25 * - 10 * 0
----
1
0

skipif mysql # not compatible
query II rowsort label-8023
SELECT - - COUNT ( * ) * - - COUNT ( * ) AS col2, 25 * - 10 * 0
----
1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT - MAX( + 31 ) + - - 53 AS col1
----
22

skipif mysql # not compatible
query I rowsort label-8024
SELECT - MAX ( + 31 ) + - - 53 AS col1
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT DISTINCT + - 28 * + MAX( - + 62 ) AS col0
----
1736

skipif mysql # not compatible
query I rowsort label-8025
SELECT DISTINCT + - 28 * + MAX ( - + 62 ) AS col0
----
1736

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8026
SELECT - MIN( + CAST( NULL AS SIGNED ) ) + 38 + + 21 * - 19
----
NULL

skipif mysql # not compatible
query I rowsort label-8026
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) + 38 + + 21 * - 19
----
NULL

query I rowsort
SELECT - 30 * + CASE 17 WHEN + 89 THEN - + 26 ELSE NULL END + 46 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - ( - + 30 ) * + 31 - + + CASE - COUNT( * ) WHEN - 38 THEN NULL WHEN - 35 THEN 45 * - COALESCE ( - MIN( 33 ), + 78, + - 92 ) + + 23 WHEN + ( - + 87 ) / + 33 * 35 THEN + + CASE MIN( DISTINCT 31 ) WHEN 85 THEN + ( + COALESCE ( - SUM( - 21 ), - + CASE MAX( ALL + 66 ) WHEN - 7 * - - 91 THEN 26 * + 83 ELSE COUNT( * ) + ( + MAX( + 21 ) ) * + + MAX( + 24 ) * - - 72 END, 3 ) ) ELSE 53 / 79 END * - NULLIF ( - 4 + - 68, - MIN( ALL 16 ) ) END * CASE - 77 WHEN - 27 THEN NULL WHEN + 91 + + 36 THEN + COALESCE ( + 75, - 28, 74 + - 74 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT - ( - + 30 ) * + 31 - + + CASE - COUNT ( * ) WHEN - 38 THEN NULL WHEN - 35 THEN 45 * - COALESCE ( - MIN ( 33 ), + 78, + - 92 ) + + 23 WHEN + ( - + 87 ) / + 33 * 35 THEN + + CASE MIN ( DISTINCT 31 ) WHEN 85 THEN + ( + COALESCE ( - SUM ( - 21 ), - + CASE MAX ( ALL + 66 ) WHEN - 7 * - - 91 THEN 26 * + 83 ELSE COUNT ( * ) + ( + MAX ( + 21 ) ) * + + MAX ( + 24 ) * - - 72 END, 3 ) ) ELSE 53 / 79 END * - NULLIF ( - 4 + - 68, - MIN ( ALL 16 ) ) END * CASE - 77 WHEN - 27 THEN NULL WHEN + 91 + + 36 THEN + COALESCE ( + 75, - 28, 74 + - 74 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT + + 8 + - + CASE - 18 WHEN - ( - 37 ) THEN + 5 ELSE - COUNT( * ) * - 15 - 76 END
----
69

skipif mysql # not compatible
query I rowsort label-8029
SELECT + + 8 + - + CASE - 18 WHEN - ( - 37 ) THEN + 5 ELSE - COUNT ( * ) * - 15 - 76 END
----
69

query I rowsort
SELECT DISTINCT - 62 * 26
----
-1612

query I rowsort
SELECT - 71 * + + 37 * + 23 AS col1
----
-60421

query I rowsort
SELECT DISTINCT ( + 75 ) AS col0
----
75

query I rowsort
SELECT ALL 58 + - 77
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-8034
SELECT 60 AS col0, - 87 * + 54 + NULLIF ( - 60, - 95 * 81 - + 94 + - COUNT( * ) )
----
60
-4758

skipif mysql # not compatible
query II rowsort label-8034
SELECT 60 AS col0, - 87 * + 54 + NULLIF ( - 60, - 95 * 81 - + 94 + - COUNT ( * ) )
----
60
-4758

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT - MAX( DISTINCT + + 78 )
----
-78

skipif mysql # not compatible
query I rowsort label-8035
SELECT - MAX ( DISTINCT + + 78 )
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8036
SELECT DISTINCT 64 + + MIN( + 19 ) + CAST( NULL AS SIGNED ) / - - 34 + + 76 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT 64 + + MIN ( + 19 ) + CAST ( NULL AS INTEGER ) / - - 34 + + 76 AS col0
----
NULL

query I rowsort
SELECT ALL 22 + 59 AS col2
----
81

query I rowsort
SELECT ALL 99 + 79 * + - 71 AS col1
----
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT + COUNT( * ) * ( 98 ) AS col1
----
98

skipif mysql # not compatible
query I rowsort label-8039
SELECT + COUNT ( * ) * ( 98 ) AS col1
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT ALL 16 * - + COUNT( * )
----
-16

skipif mysql # not compatible
query I rowsort label-8040
SELECT ALL 16 * - + COUNT ( * )
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8041
SELECT DISTINCT - 15 DIV + + COUNT( * ) + - COUNT( * ) * 14 col2
----
-29

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT - 15 / + + COUNT ( * ) + - COUNT ( * ) * 14 col2
----
-29

query II rowsort
SELECT DISTINCT 21 * - ( + NULLIF ( + - 20, - - 63 ) ) * + + 42 + + 4 + + 5 * 27 AS col2, 80 AS col0
----
17779
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT CAST( + + CAST( 50 AS SIGNED ) AS SIGNED ) AS col2
----
50

skipif mysql # not compatible
query I rowsort label-8043
SELECT CAST ( + + CAST ( 50 AS INTEGER ) AS INTEGER ) AS col2
----
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8044
SELECT ( + - 91 ) / 69 + ( CAST( NULL AS SIGNED ) ) + + 42 + + - 52 / - 48 * + COALESCE ( - NULLIF ( + 29, - 24 * 24 * 56 * 33 + - - MIN( - 21 ) ), + COUNT( * ) * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT ( + - 91 ) / 69 + ( CAST ( NULL AS INTEGER ) ) + + 42 + + - 52 / - 48 * + COALESCE ( - NULLIF ( + 29, - 24 * 24 * 56 * 33 + - - MIN ( - 21 ) ), + COUNT ( * ) * - COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8045
SELECT + 27 DIV - NULLIF ( + COUNT( * ), 5 ) AS col2
----
-27

skipif mysql # not compatible
query I rowsort label-8045
SELECT + 27 / - NULLIF ( + COUNT ( * ), 5 ) AS col2
----
-27

query I rowsort
SELECT + - 93 * + - 7 * 69 + + 68 AS col1
----
44987

onlyif mysql # DIV for integer division: 
query I rowsort label-8047
SELECT ALL - 82 DIV - - 69
----
-1

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL - 82 / - - 69
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT + SUM( ALL - 63 ) AS col0
----
-63

skipif mysql # not compatible
query I rowsort label-8048
SELECT + SUM ( ALL - 63 ) AS col0
----
-63

query I rowsort
SELECT + ( + 64 )
----
64

query I rowsort
SELECT ALL + 58 * 98
----
5684

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8051
SELECT ALL + COALESCE ( + 63, + COALESCE ( - 36, - 38 ) * - 51 * - 40 DIV + COUNT( * ) ) * + COUNT( 33 )
----
63

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL + COALESCE ( + 63, + COALESCE ( - 36, - 38 ) * - 51 * - 40 / + COUNT ( * ) ) * + COUNT ( 33 )
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT DISTINCT + 30 * - + 42 + + 91 * - - COUNT( * ) * - ( + ( - - 5 ) ) AS col1
----
-1715

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT + 30 * - + 42 + + 91 * - - COUNT ( * ) * - ( + ( - - 5 ) ) AS col1
----
-1715

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT + - ( + - COUNT( * ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8053
SELECT + - ( + - COUNT ( * ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT - 62 * - CASE AVG ( + 64 ) WHEN - 13 + + 35 * + 12 * - + CASE - ( - - 32 ) WHEN + 73 * - 64 / 75 + + - 12 THEN NULL ELSE + 71 * 28 END THEN NULL WHEN - - CAST( + 24 AS SIGNED ) / - - COUNT( * ) * - ( - 99 ) THEN 88 ELSE - 32 + - 66 * 53 * - 40 * COALESCE ( NULLIF ( ( + + SUM( + + 60 ) ), + 39 * - 59 ), 11 ) END AS col1
----
520500416

skipif mysql # not compatible
query I rowsort label-8054
SELECT - 62 * - CASE AVG ( + 64 ) WHEN - 13 + + 35 * + 12 * - + CASE - ( - - 32 ) WHEN + 73 * - 64 / 75 + + - 12 THEN NULL ELSE + 71 * 28 END THEN NULL WHEN - - CAST ( + 24 AS INTEGER ) / - - COUNT ( * ) * - ( - 99 ) THEN 88 ELSE - 32 + - 66 * 53 * - 40 * COALESCE ( NULLIF ( ( + + SUM ( + + 60 ) ), + 39 * - 59 ), 11 ) END AS col1
----
520500416

query I rowsort
SELECT ALL ( 29 ) AS col2
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8056
SELECT + 24 - + MAX( - - 91 ), COALESCE ( + 95, COUNT( * ), + 38 * + 83 * - 35 - + + 89 ) AS col0
----
-67
95

skipif mysql # not compatible
query II rowsort label-8056
SELECT + 24 - + MAX ( - - 91 ), COALESCE ( + 95, COUNT ( * ), + 38 * + 83 * - 35 - + + 89 ) AS col0
----
-67
95

query I rowsort
SELECT + - 42 * 83 AS col2
----
-3486

onlyif mysql # aggregate syntax: 
query II rowsort label-8058
SELECT - 68 AS col0, COUNT( * ) * + 43
----
-68
43

skipif mysql # not compatible
query II rowsort label-8058
SELECT - 68 AS col0, COUNT ( * ) * + 43
----
-68
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8059
SELECT DISTINCT + + 1 DIV + 14 + + MAX( - 37 ), - CASE - + 3 WHEN + COUNT( * ) THEN NULL ELSE + 42 * MAX( ALL 26 ) END col2
----
-37
-1092

skipif mysql # not compatible
query II rowsort label-8059
SELECT DISTINCT + + 1 / + 14 + + MAX ( - 37 ), - CASE - + 3 WHEN + COUNT ( * ) THEN NULL ELSE + 42 * MAX ( ALL 26 ) END col2
----
-37
-1092

query II rowsort
SELECT ALL - 91 AS col2, + 46
----
-91
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8061
SELECT ALL 30 AS col0, + ( + - 76 ) + - + 99 * + 13 + - - COALESCE ( 5, + + 17, CASE + + 99 WHEN - + 36 THEN - + 60 * - 62 * - 65 DIV - + 16 + 18 END - - COUNT( - 94 ) * + 58 ) AS col0
----
30
-1358

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL 30 AS col0, + ( + - 76 ) + - + 99 * + 13 + - - COALESCE ( 5, + + 17, CASE + + 99 WHEN - + 36 THEN - + 60 * - 62 * - 65 / - + 16 + 18 END - - COUNT ( - 94 ) * + 58 ) AS col0
----
30
-1358

query I rowsort
SELECT 81 * + - 3 AS col2
----
-243

query I rowsort
SELECT ALL + 76 * 77
----
5852

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 45
----
NULL

query I rowsort
SELECT ALL - 12 + + 97
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL + MIN( ALL + 54 ) + ( + + 93 ) * - CASE + - 53 WHEN + 5 + + 46 + - - 78 + + ( ( - COUNT( * ) ) ) THEN NULL WHEN 36 THEN + - COUNT( * ) ELSE NULL END * 65 * COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + MIN ( ALL + 54 ) + ( + + 93 ) * - CASE + - 53 WHEN + 5 + + 46 + - - 78 + + ( ( - COUNT ( * ) ) ) THEN NULL WHEN 36 THEN + - COUNT ( * ) ELSE NULL END * 65 * COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT 32 + + NULLIF ( + - MIN( ALL + 6 ), 5 )
----
26

skipif mysql # not compatible
query I rowsort label-8067
SELECT 32 + + NULLIF ( + - MIN ( ALL + 6 ), 5 )
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8068
SELECT MIN( 23 ) * - 79 * + + 93 AS col0, + 9 * 8 DIV 58 col1
----
-168981
1

skipif mysql # not compatible
query II rowsort label-8068
SELECT MIN ( 23 ) * - 79 * + + 93 AS col0, + 9 * 8 / 58 col1
----
-168981
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8069
SELECT 41 + - + CAST( - 46 AS SIGNED ) AS col2
----
87

skipif mysql # not compatible
query I rowsort label-8069
SELECT 41 + - + CAST ( - 46 AS INTEGER ) AS col2
----
87

query I rowsort
SELECT 77 * 37
----
2849

query I rowsort
SELECT 57 + - 64
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT ALL + 86 + + - 18 * - + COUNT( * ) * + + 42 * + 36 AS col0
----
27302

skipif mysql # not compatible
query I rowsort label-8072
SELECT ALL + 86 + + - 18 * - + COUNT ( * ) * + + 42 * + 36 AS col0
----
27302

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL + 13 + + - 76 + - - ( + - 21 ) + - - 50 + + COUNT( * ) * 2 * + NULLIF ( 64, - - CASE WHEN + COALESCE ( - 80, 26 + - + 99 + 89 ) IS NULL THEN - 91 WHEN NOT - COUNT( * ) / + 50 BETWEEN CASE - + ( + AVG ( DISTINCT + NULLIF ( 12, - 39 ) ) ) WHEN - 37 THEN + 56 + + NULLIF ( - 45, + 6 + + 8 ) + + 92 * - 47 - 93 ELSE NULL END + - ( 12 ) + + - 51 / 57 AND + + 66 THEN + 78 ELSE NULL END ) * - 98 AS col1
----
-12578

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL + 13 + + - 76 + - - ( + - 21 ) + - - 50 + + COUNT ( * ) * 2 * + NULLIF ( 64, - - CASE WHEN + COALESCE ( - 80, 26 + - + 99 + 89 ) IS NULL THEN - 91 WHEN NOT - COUNT ( * ) / + 50 BETWEEN CASE - + ( + AVG ( DISTINCT + NULLIF ( 12, - 39 ) ) ) WHEN - 37 THEN + 56 + + NULLIF ( - 45, + 6 + + 8 ) + + 92 * - 47 - 93 ELSE NULL END + - ( 12 ) + + - 51 / 57 AND + + 66 THEN + 78 ELSE NULL END ) * - 98 AS col1
----
-12578

query I rowsort
SELECT 76 + + 52 * + 58
----
3092

onlyif mysql # aggregate syntax: 
query II rowsort label-8075
SELECT 57 * 79, + COUNT( 62 ) * COUNT( * ) AS col2
----
4503
1

skipif mysql # not compatible
query II rowsort label-8075
SELECT 57 * 79, + COUNT ( 62 ) * COUNT ( * ) AS col2
----
4503
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT MIN( - 95 ) * - - 0 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8076
SELECT MIN ( - 95 ) * - - 0 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8077
SELECT DISTINCT + 68 - 26 - + 68 + - MAX( + + ( 87 ) )
----
-113

skipif mysql # not compatible
query I rowsort label-8077
SELECT DISTINCT + 68 - 26 - + 68 + - MAX ( + + ( 87 ) )
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT NULLIF ( + 91, MIN( DISTINCT - 79 ) ) + - 96 AS col0
----
-5

skipif mysql # not compatible
query I rowsort label-8078
SELECT NULLIF ( + 91, MIN ( DISTINCT - 79 ) ) + - 96 AS col0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT + ( + - 61 ) * 88 + + - 25 * - 21 + MIN( + 55 )
----
-4788

skipif mysql # not compatible
query I rowsort label-8079
SELECT + ( + - 61 ) * 88 + + - 25 * - 21 + MIN ( + 55 )
----
-4788

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT - COUNT( * ) * + 48 AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-8080
SELECT - COUNT ( * ) * + 48 AS col1
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8081
SELECT DISTINCT - ( 7 ) AS col0, 36 * + COUNT( * ) - 43 AS col2
----
-7
-7

skipif mysql # not compatible
query II rowsort label-8081
SELECT DISTINCT - ( 7 ) AS col0, 36 * + COUNT ( * ) - 43 AS col2
----
-7
-7

query I rowsort
SELECT ALL - - 63
----
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8083
SELECT + COUNT( * ) DIV - 2 - - 13
----
13

skipif mysql # not compatible
query I rowsort label-8083
SELECT + COUNT ( * ) / - 2 - - 13
----
13

query I rowsort
SELECT - 78 * - - ( 19 ) + 78 AS col2
----
-1404

onlyif mysql # aggregate syntax: 
query I rowsort label-8085
SELECT 57 + + COUNT( * ) AS col2
----
58

skipif mysql # not compatible
query I rowsort label-8085
SELECT 57 + + COUNT ( * ) AS col2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8086
SELECT ALL COUNT( ALL - 51 ) + - NULLIF ( 81, - - CAST( NULL AS SIGNED ) / - 43 )
----
-80

skipif mysql # not compatible
query I rowsort label-8086
SELECT ALL COUNT ( ALL - 51 ) + - NULLIF ( 81, - - CAST ( NULL AS INTEGER ) / - 43 )
----
-80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8087
SELECT ALL - COUNT( DISTINCT - 83 ) + + 22 DIV COUNT( * ) * - + 13 + + - 17 + 68 + - 76 DIV 67 + + 79 DIV - 66
----
-238

skipif mysql # not compatible
query I rowsort label-8087
SELECT ALL - COUNT ( DISTINCT - 83 ) + + 22 / COUNT ( * ) * - + 13 + + - 17 + 68 + - 76 / 67 + + 79 / - 66
----
-238

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + + COUNT( * ) * - MAX( DISTINCT - 85 )
----
85

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + + COUNT ( * ) * - MAX ( DISTINCT - 85 )
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL + 25 + + SUM( + - 33 ) + + - MIN( + 2 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL + 25 + + SUM ( + - 33 ) + + - MIN ( + 2 ) AS col2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8090
SELECT CAST( - 4 AS SIGNED ) + + - 28 * + + 24
----
-676

skipif mysql # not compatible
query I rowsort label-8090
SELECT CAST ( - 4 AS INTEGER ) + + - 28 * + + 24
----
-676

query I rowsort
SELECT ALL 47 + - + 57 AS col1
----
-10

query II rowsort
SELECT 79 AS col1, + 0
----
79
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8093
SELECT 77 + ( - 82 ), - 97 + + COUNT( DISTINCT - NULLIF ( 10, 91 ) ) + + CAST( - 96 AS SIGNED ) * - 99 * - 70 AS col2
----
-5
-665376

skipif mysql # not compatible
query II rowsort label-8093
SELECT 77 + ( - 82 ), - 97 + + COUNT ( DISTINCT - NULLIF ( 10, 91 ) ) + + CAST ( - 96 AS INTEGER ) * - 99 * - 70 AS col2
----
-5
-665376

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT 86 + - COUNT( * ) * - 0 * - MIN( DISTINCT - - 39 ) AS col1
----
86

skipif mysql # not compatible
query I rowsort label-8094
SELECT 86 + - COUNT ( * ) * - 0 * - MIN ( DISTINCT - - 39 ) AS col1
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-8095
SELECT ALL - 54 DIV 9
----
-6

skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL - 54 / 9
----
-6

query I rowsort
SELECT ALL 87 + ( + 80 ) * 64
----
5207

query I rowsort
SELECT DISTINCT - 36 * + 90 AS col0
----
-3240

query I rowsort
SELECT DISTINCT - 27 * + 80 AS col2
----
-2160

onlyif mysql # DIV for integer division: 
query I rowsort label-8099
SELECT 57 DIV 19 * - 94 col2
----
-282

skipif mysql # not compatible
query I rowsort label-8099
SELECT 57 / 19 * - 94 col2
----
-282

onlyif mysql # DIV for integer division: 
query I rowsort label-8100
SELECT 92 DIV + 20 AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8100
SELECT 92 / + 20 AS col2
----
4

query I rowsort
SELECT 63 * - 98
----
-6174

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT - SUM( - + 38 )
----
38

skipif mysql # not compatible
query I rowsort label-8102
SELECT - SUM ( - + 38 )
----
38

query I rowsort
SELECT 2 * 60
----
120

query II rowsort
SELECT 3, 6 + - ( + 26 ) * + 3 + 48 AS col1
----
3
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-8105
SELECT 82 DIV + 1
----
82

skipif mysql # not compatible
query I rowsort label-8105
SELECT 82 / + 1
----
82

query I rowsort
SELECT 18 * 81 col0
----
1458

query I rowsort
SELECT 92 - 33
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + + COUNT( 24 )
----
1

skipif mysql # not compatible
query I rowsort label-8108
SELECT + + COUNT ( 24 )
----
1

query I rowsort
SELECT ALL - NULLIF ( 40, - + 20 ) AS col1
----
-40

query I rowsort
SELECT + NULLIF ( + - 54, + - 70 + + + 56 ) * + ( - 11 )
----
594

query I rowsort
SELECT ALL - + 91 AS col2
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT - 30 DIV - 92 + + 26 * + 65 AS col0
----
1690

skipif mysql # not compatible
query I rowsort label-8112
SELECT - 30 / - 92 + + 26 * + 65 AS col0
----
1690

query I rowsort
SELECT DISTINCT - - ( 30 ) AS col1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8114
SELECT ALL - MAX( - 79 ) * COUNT( - 16 ) * + CAST( NULL AS SIGNED ) + + ( - ( + 72 ) ) AS col1, + 1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8114
SELECT ALL - MAX ( - 79 ) * COUNT ( - 16 ) * + CAST ( NULL AS INTEGER ) + + ( - ( + 72 ) ) AS col1, + 1
----
NULL
1

query I rowsort
SELECT - - 9 * - - 38 * - - 29
----
9918

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT - 86 DIV + 84
----
-1

skipif mysql # not compatible
query I rowsort label-8116
SELECT - 86 / + 84
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT ALL 47 + + COUNT( * )
----
48

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL 47 + + COUNT ( * )
----
48

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8118
SELECT + 29 - + - CASE + 94 WHEN + + CAST( NULL AS DECIMAL ) THEN + 72 + - COUNT( * ) WHEN - 81 THEN NULL END AS col2, 5
----
NULL
5

skipif mysql # not compatible
query II rowsort label-8118
SELECT + 29 - + - CASE + 94 WHEN + + CAST ( NULL AS REAL ) THEN + 72 + - COUNT ( * ) WHEN - 81 THEN NULL END AS col2, 5
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT - MIN( DISTINCT + 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-8119
SELECT - MIN ( DISTINCT + 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8120
SELECT DISTINCT - CASE ( - 86 ) WHEN - - 49 THEN NULL WHEN + COUNT( * ) * - 26 - - 52 * + - 20 * - 91 * + - 64 + - 77 + - + ( + ( - ( + - 61 ) ) ) * + 12 - - + 68 * + + 51 / 80 THEN + 35 * SUM( + 71 ) + + COUNT( * ) WHEN + 80 THEN NULL ELSE NULL END + - + 85 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8120
SELECT DISTINCT - CASE ( - 86 ) WHEN - - 49 THEN NULL WHEN + COUNT ( * ) * - 26 - - 52 * + - 20 * - 91 * + - 64 + - 77 + - + ( + ( - ( + - 61 ) ) ) * + 12 - - + 68 * + + 51 / 80 THEN + 35 * SUM ( + 71 ) + + COUNT ( * ) WHEN + 80 THEN NULL ELSE NULL END + - + 85 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8121
SELECT 70, + COUNT( * ) + CAST( NULL AS SIGNED ) * - 77 - ( + 35 ) AS col0
----
70
NULL

skipif mysql # not compatible
query II rowsort label-8121
SELECT 70, + COUNT ( * ) + CAST ( NULL AS INTEGER ) * - 77 - ( + 35 ) AS col0
----
70
NULL

query I rowsort
SELECT + 75 * 42 AS col1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + COUNT( * ) + + ( + 37 ) AS col1
----
38

skipif mysql # not compatible
query I rowsort label-8123
SELECT + COUNT ( * ) + + ( + 37 ) AS col1
----
38

query I rowsort
SELECT + 22 + + - 51 AS col1
----
-29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8125
SELECT ALL 34 - + COUNT( * ) + + 41 DIV + 79 AS col2
----
33

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL 34 - + COUNT ( * ) + + 41 / + 79 AS col2
----
33

query I rowsort
SELECT + 39 * + 4
----
156

query II rowsort
SELECT 13 AS col0, + 36
----
13
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8128
SELECT DISTINCT MIN( + 26 ) AS col0
----
26

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT MIN ( + 26 ) AS col0
----
26

query II rowsort
SELECT ALL 25, 37 AS col2
----
25
37

query I rowsort
SELECT + 68 + 57 + + - 42 + 98
----
181

query I rowsort
SELECT ALL CASE WHEN NULL IS NOT NULL THEN - 94 ELSE NULL END
----
NULL

query II rowsort
SELECT DISTINCT + 36 AS col1, + 84 AS col0
----
36
84

query II rowsort
SELECT - 68, 77 AS col2
----
-68
77

query II rowsort
SELECT + 80 AS col0, 62 AS col1
----
80
62

onlyif mysql # aggregate syntax: 
query II rowsort label-8135
SELECT + 2 AS col2, - COUNT( * )
----
2
-1

skipif mysql # not compatible
query II rowsort label-8135
SELECT + 2 AS col2, - COUNT ( * )
----
2
-1

query I rowsort
SELECT + 58 * 60
----
3480

onlyif mysql # DIV for integer division: 
query I rowsort label-8137
SELECT - + 99 DIV - 73
----
1

skipif mysql # not compatible
query I rowsort label-8137
SELECT - + 99 / - 73
----
1

query I rowsort
SELECT - ( 49 ) + + - ( - ( + 86 ) ) AS col1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT ALL + + MIN( + 99 )
----
99

skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + + MIN ( + 99 )
----
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT ALL + + 34 * 4 + - 87 * COUNT( * ) AS col2, - 17 + + - ( - 56 ) * + + 42 col2
----
49
2335

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL + + 34 * 4 + - 87 * COUNT ( * ) AS col2, - 17 + + - ( - 56 ) * + + 42 col2
----
49
2335

query II rowsort
SELECT - 87, + 38 + 72 col2
----
-87
110

query I rowsort
SELECT - 40 - - 66
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT + 32 * COUNT( ALL 46 ) + COUNT( * ) + - - MIN( - 20 ) * 87 AS col2
----
-1707

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT + 32 * COUNT ( ALL 46 ) + COUNT ( * ) + - - MIN ( - 20 ) * 87 AS col2
----
-1707

query I rowsort
SELECT - + 97 + - 30
----
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL + MAX( + 54 ) col2
----
54

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL + MAX ( + 54 ) col2
----
54

query I rowsort
SELECT - 88 * + 28
----
-2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8147
SELECT CASE - - CAST( - 69 AS SIGNED ) WHEN - COUNT( * ) THEN NULL ELSE 70 END AS col2, 87 AS col1
----
70
87

skipif mysql # not compatible
query II rowsort label-8147
SELECT CASE - - CAST ( - 69 AS INTEGER ) WHEN - COUNT ( * ) THEN NULL ELSE 70 END AS col2, 87 AS col1
----
70
87

query I rowsort
SELECT ALL - 54 * + 5
----
-270

query I rowsort
SELECT - 6 + + - 95
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8150
SELECT ALL - CAST( NULL AS SIGNED ) * + 69 / 24 * + + 31 - 97 + 25 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8150
SELECT ALL - CAST ( NULL AS INTEGER ) * + 69 / 24 * + + 31 - 97 + 25 AS col1
----
NULL

query I rowsort
SELECT ALL + ( ( + 60 ) ) AS col0
----
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 74 - + CAST( + COUNT( * ) AS SIGNED ) * + 86
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 74 - + CAST ( + COUNT ( * ) AS INTEGER ) * + 86
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8153
SELECT ALL - 54 * ( CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8153
SELECT ALL - 54 * ( CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8154
SELECT + 28 + + SUM( ALL - 34 ) AS col1, 47 * - NULLIF ( - 90, 42 * 51 * - 58 ) AS col2
----
-6
4230

skipif mysql # not compatible
query II rowsort label-8154
SELECT + 28 + + SUM ( ALL - 34 ) AS col1, 47 * - NULLIF ( - 90, 42 * 51 * - 58 ) AS col2
----
-6
4230

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8155
SELECT - COALESCE ( + 7, + - 46 * - 26, - 74 * - + 64 * - 49 * COALESCE ( 82, + - 64 * + 54, + ( - 98 ) * 88 * - + 35, 97 * - + COUNT( + 48 ) * - + 60 ) ) DIV + 4 col2, 66
----
-1
66

skipif mysql # not compatible
query II rowsort label-8155
SELECT - COALESCE ( + 7, + - 46 * - 26, - 74 * - + 64 * - 49 * COALESCE ( 82, + - 64 * + 54, + ( - 98 ) * 88 * - + 35, 97 * - + COUNT ( + 48 ) * - + 60 ) ) / + 4 col2, 66
----
-1
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8156
SELECT DISTINCT 51 DIV 87 * - - ( + 24 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT 51 / 87 * - - ( + 24 ) AS col0
----
0

query I rowsort
SELECT + 22 * + 54
----
1188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8158
SELECT ALL COUNT( ALL - - 95 ) DIV 62 * - 70 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL COUNT ( ALL - - 95 ) / 62 * - 70 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT - ( CASE + COUNT( * ) WHEN + + 17 * + ( 52 ) / 41 * 23 + - 18 THEN 71 - - - 44 / 43 / - 62 END ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8159
SELECT - ( CASE + COUNT ( * ) WHEN + + 17 * + ( 52 ) / 41 * 23 + - 18 THEN 71 - - - 44 / 43 / - 62 END ) AS col2
----
NULL

query I rowsort
SELECT ALL 80 * + 29
----
2320

query I rowsort
SELECT + 86 * - ( - 84 ) * - + 57
----
-411768

query II rowsort
SELECT - ( + ( + - 27 ) ) col0, 91 AS col0
----
27
91

query I rowsort
SELECT DISTINCT 15 * 61
----
915

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8164
SELECT + + 8 * - CASE - 10 WHEN - + CAST( + + 4 AS SIGNED ) THEN + CASE - COUNT( * ) WHEN 84 THEN - 18 ELSE NULL END + + - 34 + - 58 - + 20 ELSE + COUNT( * ) END + - - COUNT( * ) + + 68 * - - 30
----
2033

skipif mysql # not compatible
query I rowsort label-8164
SELECT + + 8 * - CASE - 10 WHEN - + CAST ( + + 4 AS INTEGER ) THEN + CASE - COUNT ( * ) WHEN 84 THEN - 18 ELSE NULL END + + - 34 + - 58 - + 20 ELSE + COUNT ( * ) END + - - COUNT ( * ) + + 68 * - - 30
----
2033

query I rowsort
SELECT DISTINCT - ( - 30 ) + 93 + - + 10 + - - 85 AS col2
----
198

query I rowsort
SELECT ALL + 89 + + 47 AS col0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT + 79 - + CASE + 18 WHEN - 31 * 52 THEN + COUNT( * ) ELSE NULL END - 43 * - 3 + - 69 * + 67 / - 59 * - 95 - - 81
----
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT + 79 - + CASE + 18 WHEN - 31 * 52 THEN + COUNT ( * ) ELSE NULL END - 43 * - 3 + - 69 * + 67 / - 59 * - 95 - - 81
----
NULL

query I rowsort
SELECT ALL - + 48 AS col2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT COALESCE ( - 37, + COUNT( * ) * - 29 ) * + 80 + + 65
----
-2895

skipif mysql # not compatible
query I rowsort label-8169
SELECT COALESCE ( - 37, + COUNT ( * ) * - 29 ) * + 80 + + 65
----
-2895

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8170
SELECT ALL + - SUM( DISTINCT 37 ) / + CAST( + CASE - 28 WHEN - 13 - + 87 + + CAST( NULL AS SIGNED ) * 34 * - CAST( NULL AS DECIMAL ) THEN + - ( 64 ) + - + 45 / 60 END AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8170
SELECT ALL + - SUM ( DISTINCT 37 ) / + CAST ( + CASE - 28 WHEN - 13 - + 87 + + CAST ( NULL AS INTEGER ) * 34 * - CAST ( NULL AS REAL ) THEN + - ( 64 ) + - + 45 / 60 END AS REAL ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8171
SELECT - NULLIF ( COALESCE ( + - 58, - - 60 + 82, 55 ), + 45 - - SUM( + + 41 ) + - 61 * + 66 + - CAST( NULL AS SIGNED ) * + + 67 ) * - 90 + - + 7
----
-5227

skipif mysql # not compatible
query I rowsort label-8171
SELECT - NULLIF ( COALESCE ( + - 58, - - 60 + 82, 55 ), + 45 - - SUM ( + + 41 ) + - 61 * + 66 + - CAST ( NULL AS INTEGER ) * + + 67 ) * - 90 + - + 7
----
-5227

query I rowsort
SELECT + 37 + - 83 AS col0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT MAX( DISTINCT - 36 ) * 83 + - 78 + - 93 + - ( - - 97 ) + + ( - ( + 64 ) ) * + 57 * - 87 + + 35 + + + 10 - - - 85 * 65 + - 14 - + 34
----
308592

skipif mysql # not compatible
query I rowsort label-8173
SELECT MAX ( DISTINCT - 36 ) * 83 + - 78 + - 93 + - ( - - 97 ) + + ( - ( + 64 ) ) * + 57 * - 87 + + 35 + + + 10 - - - 85 * 65 + - 14 - + 34
----
308592

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT + COUNT( DISTINCT - CASE 66 WHEN - 25 * + 81 THEN + 3 ELSE + - 92 END ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8174
SELECT + COUNT ( DISTINCT - CASE 66 WHEN - 25 * + 81 THEN + 3 ELSE + - 92 END ) AS col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8175
SELECT ( - ( - - COALESCE ( - MIN( DISTINCT - - 20 ), COUNT( * ), 69 ) ) ) + + + COUNT( * ) + + 31 DIV + 38
----
21

skipif mysql # not compatible
query I rowsort label-8175
SELECT ( - ( - - COALESCE ( - MIN ( DISTINCT - - 20 ), COUNT ( * ), 69 ) ) ) + + + COUNT ( * ) + + 31 / + 38
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-8176
SELECT ALL - + 87 * - 51, - 31 DIV + 74 AS col1
----
4437
0

skipif mysql # not compatible
query II rowsort label-8176
SELECT ALL - + 87 * - 51, - 31 / + 74 AS col1
----
4437
0

query I rowsort
SELECT DISTINCT - - 37 - + NULLIF ( + 77, + + 75 + 79 ) AS col2
----
-40

query I rowsort
SELECT 61 + + + 2 col0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL COUNT( DISTINCT COALESCE ( - 40, - 15 * + 3 * 80 ) ) * + 85
----
85

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL COUNT ( DISTINCT COALESCE ( - 40, - 15 * + 3 * 80 ) ) * + 85
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8180
SELECT DISTINCT - MAX( + 48 ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT - MAX ( + 48 ) AS col2
----
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT DISTINCT - COUNT( * ), - COUNT( * ) + + - 69 + + + CASE - 53 WHEN - 31 + + 85 / - - 1 THEN - 54 ELSE - - 6 END * + + 88 + + 12 AS col0
----
-1
470

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT - COUNT ( * ), - COUNT ( * ) + + - 69 + + + CASE - 53 WHEN - 31 + + 85 / - - 1 THEN - 54 ELSE - - 6 END * + + 88 + + 12 AS col0
----
-1
470

query I rowsort
SELECT 86 * 77
----
6622

query I rowsort
SELECT ALL - ( - + 70 ) AS col2
----
70

query I rowsort
SELECT 76 * + - 62
----
-4712

query I rowsort
SELECT 11 * + 91
----
1001

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8186
SELECT ALL + 23 * - CAST( + 6 AS SIGNED ) AS col1
----
-138

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + 23 * - CAST ( + 6 AS INTEGER ) AS col1
----
-138

query I rowsort
SELECT 82 - CASE 10 WHEN 37 THEN NULL WHEN + 97 THEN NULL ELSE + 44 END
----
38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT COUNT( * ) DIV 32 * + 33 * - + 39 DIV - - 50 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8188
SELECT COUNT ( * ) / 32 * + 33 * - + 39 / - - 50 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT ALL + 33 DIV - + 20 col2
----
-1

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL + 33 / - + 20 col2
----
-1

query I rowsort
SELECT DISTINCT - 78 + 71 AS col2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-8191
SELECT 38 AS col1, 71 * COUNT( * ) AS col0
----
38
71

skipif mysql # not compatible
query II rowsort label-8191
SELECT 38 AS col1, 71 * COUNT ( * ) AS col0
----
38
71

query I rowsort
SELECT ALL - 60 + - ( - - 18 )
----
-78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT COUNT( * ) DIV - ( 67 ) * + SUM( 51 ) * - MAX( - ( + 13 ) ) AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8193
SELECT COUNT ( * ) / - ( 67 ) * + SUM ( 51 ) * - MAX ( - ( + 13 ) ) AS col1
----
0

query I rowsort
SELECT 91 + + 4
----
95

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8195
SELECT NULLIF ( 40, - CAST( NULL AS SIGNED ) + - + 95 ) - - 21 DIV 58 AS col1
----
40

skipif mysql # not compatible
query I rowsort label-8195
SELECT NULLIF ( 40, - CAST ( NULL AS INTEGER ) + - + 95 ) - - 21 / 58 AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT + SUM( - 79 ) - - 8 * - + 28 * 31
----
-7023

skipif mysql # not compatible
query I rowsort label-8196
SELECT + SUM ( - 79 ) - - 8 * - + 28 * 31
----
-7023

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8197
SELECT + 10 DIV + COUNT( * ) AS col2
----
10

skipif mysql # not compatible
query I rowsort label-8197
SELECT + 10 / + COUNT ( * ) AS col2
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL - CASE - + 83 WHEN - + NULLIF ( + 96, - - 9 + + 15 * COUNT( * ) + AVG ( - 30 ) * - 82 + 28 * - 54 + COUNT( * ) ) THEN + 61 * 39 END + - 65
----
NULL

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - CASE - + 83 WHEN - + NULLIF ( + 96, - - 9 + + 15 * COUNT ( * ) + AVG ( - 30 ) * - 82 + 28 * - 54 + COUNT ( * ) ) THEN + 61 * 39 END + - 65
----
NULL

query I rowsort
SELECT 1 * 37 + 17 AS col0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8200
SELECT DISTINCT + - 86 DIV - 63 + - COUNT( * ) DIV - 47 + 9 * + + 92
----
829

skipif mysql # not compatible
query I rowsort label-8200
SELECT DISTINCT + - 86 / - 63 + - COUNT ( * ) / - 47 + 9 * + + 92
----
829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8201
SELECT DISTINCT - 91 + + 78 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT - 91 + + 78 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT COALESCE ( + + 65, - - COALESCE ( - + COUNT( * ), - 44 * 16 ) DIV 14, 57 ) * 91
----
5915

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT COALESCE ( + + 65, - - COALESCE ( - + COUNT ( * ), - 44 * 16 ) / 14, 57 ) * 91
----
5915

query I rowsort
SELECT 39 + + 51 * - - 7 AS col1
----
396

query I rowsort
SELECT ALL ( 8 ) + - 1 col1
----
7

query I rowsort
SELECT + 38 + + 7 + + 67 + 35 AS col0
----
147

query I rowsort
SELECT 50 * + - 16 * 59 AS col1
----
-47200

query II rowsort
SELECT + 33 AS col1, - 16 AS col0
----
33
-16

query I rowsort
SELECT ALL + 17 - + + 1 + 6 * - 49 * + 69 * + 68 * 91 + 88
----
-125529664

onlyif mysql # aggregate syntax: 
query II rowsort label-8209
SELECT + + 96 AS col0, + 92 * ( COALESCE ( + - 50, - 86, + 42 + + 39 * + 80 ) ) + - COUNT( * )
----
96
-4601

skipif mysql # not compatible
query II rowsort label-8209
SELECT + + 96 AS col0, + 92 * ( COALESCE ( + - 50, - 86, + 42 + + 39 * + 80 ) ) + - COUNT ( * )
----
96
-4601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8210
SELECT DISTINCT - COALESCE ( NULLIF ( COALESCE ( - 55, 45 * - 4 ), 47 + + CAST( CAST( - 84 AS SIGNED ) AS SIGNED ) ), - 69 )
----
55

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - COALESCE ( NULLIF ( COALESCE ( - 55, 45 * - 4 ), 47 + + CAST ( CAST ( - 84 AS INTEGER ) AS INTEGER ) ), - 69 )
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8211
SELECT MAX( DISTINCT + ( - + 35 ) )
----
-35

skipif mysql # not compatible
query I rowsort label-8211
SELECT MAX ( DISTINCT + ( - + 35 ) )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8212
SELECT CAST( + 43 AS SIGNED ) * + 29 AS col2
----
1247

skipif mysql # not compatible
query I rowsort label-8212
SELECT CAST ( + 43 AS INTEGER ) * + 29 AS col2
----
1247

query I rowsort
SELECT 96 * 15
----
1440

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8214
SELECT CAST( - 12 AS SIGNED ) DIV + 66 col0
----
0

skipif mysql # not compatible
query I rowsort label-8214
SELECT CAST ( - 12 AS INTEGER ) / + 66 col0
----
0

query I rowsort
SELECT DISTINCT 16 + + 67 + + 11 + - + 19 - - 44 * 59
----
2671

query I rowsort
SELECT 11 * 0 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL SUM( 9 )
----
9

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL SUM ( 9 )
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8218
SELECT CAST( NULL AS SIGNED ) * + + CAST( - 11 AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT CAST ( NULL AS INTEGER ) * + + CAST ( - 11 AS INTEGER ) AS col0
----
NULL

query I rowsort
SELECT 36 + + 55 + + + 12
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT - MAX( - NULLIF ( - 62, + - 36 / - 2 ) ) + - - 50
----
-12

skipif mysql # not compatible
query I rowsort label-8220
SELECT - MAX ( - NULLIF ( - 62, + - 36 / - 2 ) ) + - - 50
----
-12

query II rowsort
SELECT ALL - - 13 + + 23 AS col1, - 34
----
36
-34

query I rowsort
SELECT - 47 * 27 col2
----
-1269

query I rowsort
SELECT ALL + 31 * - ( + - ( + 25 ) )
----
775

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT DISTINCT + + 83 DIV - - 14 + - 40
----
-35

skipif mysql # not compatible
query I rowsort label-8224
SELECT DISTINCT + + 83 / - - 14 + - 40
----
-35

query I rowsort
SELECT ALL - - 21 + + + 2
----
23

query I rowsort
SELECT ALL - 82 - - 57 + 14 - + + 96 AS col1
----
-107

query I rowsort
SELECT - + 7 - - 5 AS col2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - - MIN( - ( + 44 ) ) AS col0
----
-44

skipif mysql # not compatible
query I rowsort label-8228
SELECT - - MIN ( - ( + 44 ) ) AS col0
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8229
SELECT + 10 DIV 89 + - + 75 + + + 89 * 96 * + 74 * + - 16 + - 94 + + + ( + 62 ) * + COUNT( * ) col1
----
-10116203

skipif mysql # not compatible
query I rowsort label-8229
SELECT + 10 / 89 + - + 75 + + + 89 * 96 * + 74 * + - 16 + - 94 + + + ( + 62 ) * + COUNT ( * ) col1
----
-10116203

onlyif mysql # aggregate syntax: 
query II rowsort label-8230
SELECT + NULLIF ( 52, - 4 - - MAX( DISTINCT + 2 ) + + 90 + + 95 ) * - 78 - + 61 AS col0, 36 * + MAX( DISTINCT + 56 ) * - 38 + - 33 + COUNT( ALL - - ( 80 ) )
----
-4117
-76640

skipif mysql # not compatible
query II rowsort label-8230
SELECT + NULLIF ( 52, - 4 - - MAX ( DISTINCT + 2 ) + + 90 + + 95 ) * - 78 - + 61 AS col0, 36 * + MAX ( DISTINCT + 56 ) * - 38 + - 33 + COUNT ( ALL - - ( 80 ) )
----
-4117
-76640

query I rowsort
SELECT - 63 * 27 * + 91 AS col0
----
-154791

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8232
SELECT - + ( COALESCE ( + CAST( - COUNT( * ) AS SIGNED ), - 37 ) ) + + 6 AS col0
----
7

skipif mysql # not compatible
query I rowsort label-8232
SELECT - + ( COALESCE ( + CAST ( - COUNT ( * ) AS INTEGER ), - 37 ) ) + + 6 AS col0
----
7

query II rowsort
SELECT - 77 - + 17 col1, + 4 AS col2
----
-94
4

query I rowsort
SELECT ALL - 55 * ( + + 87 )
----
-4785

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT - - COUNT( * ) * + ( - + 42 ) + + 52 AS col0
----
10

skipif mysql # not compatible
query I rowsort label-8235
SELECT - - COUNT ( * ) * + ( - + 42 ) + + 52 AS col0
----
10

query I rowsort
SELECT ALL ( 87 ) * - 22
----
-1914

query II rowsort
SELECT ALL + 51, - 48 AS col1
----
51
-48

query I rowsort
SELECT ( 12 )
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8239
SELECT NULLIF ( - - AVG ( ALL + ( - 28 ) ), + - 16 / CASE - COUNT( * ) WHEN + 86 THEN 2 / 22 * 79 + + + 25 WHEN + + NULLIF ( - 85, - ( + + ( - + 41 ) ) ) THEN NULL WHEN - + 74 THEN - COALESCE ( + COUNT( * ), 43 * + - COUNT( * ) + + - 1 ) END + COUNT( * ) + + 29 * + + 86 + + COUNT( DISTINCT 65 ) ) / + - 59 * + 75 + + CASE 95 WHEN 85 THEN + - COUNT( * ) * - - 23 - + COUNT( * ) ELSE NULL END + 32 + 65 * - - 29 / - CASE + 80 WHEN - - CAST( NULL AS SIGNED ) THEN COUNT( * ) WHEN - + 77 THEN + - SUM( - 40 ) END + + ( 74 ) * + - 93 + + 67 + + 60 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT NULLIF ( - - AVG ( ALL + ( - 28 ) ), + - 16 / CASE - COUNT ( * ) WHEN + 86 THEN 2 / 22 * 79 + + + 25 WHEN + + NULLIF ( - 85, - ( + + ( - + 41 ) ) ) THEN NULL WHEN - + 74 THEN - COALESCE ( + COUNT ( * ), 43 * + - COUNT ( * ) + + - 1 ) END + COUNT ( * ) + + 29 * + + 86 + + COUNT ( DISTINCT 65 ) ) / + - 59 * + 75 + + CASE 95 WHEN 85 THEN + - COUNT ( * ) * - - 23 - + COUNT ( * ) ELSE NULL END + 32 + 65 * - - 29 / - CASE + 80 WHEN - - CAST ( NULL AS INTEGER ) THEN COUNT ( * ) WHEN - + 77 THEN + - SUM ( - 40 ) END + + ( 74 ) * + - 93 + + 67 + + 60 AS col2
----
NULL

query I rowsort
SELECT - ( - 10 ) * + - 97 AS col1
----
-970

onlyif mysql # aggregate syntax: 
query II rowsort label-8241
SELECT + 29 + - SUM( + 65 ) AS col0, COUNT( * ) + + COUNT( * ) + + 94 + COUNT( * )
----
-36
97

skipif mysql # not compatible
query II rowsort label-8241
SELECT + 29 + - SUM ( + 65 ) AS col0, COUNT ( * ) + + COUNT ( * ) + + 94 + COUNT ( * )
----
-36
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL COUNT( * ) * 24 AS col0
----
24

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL COUNT ( * ) * 24 AS col0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL + 32 * 73 * + COUNT( * ) * ( 42 ) col0
----
98112

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + 32 * 73 * + COUNT ( * ) * ( 42 ) col0
----
98112

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT DISTINCT COUNT( * ) * ( + - 56 ) + + 11 AS col1
----
-45

skipif mysql # not compatible
query I rowsort label-8244
SELECT DISTINCT COUNT ( * ) * ( + - 56 ) + + 11 AS col1
----
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT + 45 DIV + 33
----
1

skipif mysql # not compatible
query I rowsort label-8245
SELECT + 45 / + 33
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8246
SELECT ALL + 42 * + + 71 + + - 95 * + MIN( ALL - 87 ), CASE + 29 WHEN + 91 + 64 THEN + 56 WHEN + 65 * - 58 + COUNT( * ) + - - 17 + 39 - 90 * - 65 THEN NULL END AS col1
----
11247
NULL

skipif mysql # not compatible
query II rowsort label-8246
SELECT ALL + 42 * + + 71 + + - 95 * + MIN ( ALL - 87 ), CASE + 29 WHEN + 91 + 64 THEN + 56 WHEN + 65 * - 58 + COUNT ( * ) + - - 17 + 39 - 90 * - 65 THEN NULL END AS col1
----
11247
NULL

query I rowsort
SELECT + 63 * - ( 83 ) AS col1
----
-5229

query I rowsort
SELECT + ( - 32 ) AS col2
----
-32

query I rowsort
SELECT + ( + 34 )
----
34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8250
SELECT + 9 DIV CAST( - 75 AS SIGNED ) * 56 * + - 82 + + 59
----
59

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 9 / CAST ( - 75 AS INTEGER ) * 56 * + - 82 + + 59
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8251
SELECT - 15 DIV - + COUNT( * ) AS col2
----
15

skipif mysql # not compatible
query I rowsort label-8251
SELECT - 15 / - + COUNT ( * ) AS col2
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL - 65 * - 80 + SUM( ALL 91 ) + + - 64 * - 14
----
6187

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL - 65 * - 80 + SUM ( ALL 91 ) + + - 64 * - 14
----
6187

query I rowsort
SELECT + 27 * 65 col1
----
1755

query I rowsort
SELECT + CASE + 44 WHEN - 85 THEN NULL WHEN + + 71 THEN + 32 ELSE NULL END col0
----
NULL

query I rowsort
SELECT + 3 - - 24 * + - 97 AS col2
----
-2325

query I rowsort
SELECT + 62 * - 83
----
-5146

query I rowsort
SELECT DISTINCT - 71 * 31 + + 22 AS col0
----
-2179

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT + MAX( ALL + 64 ) + - 46 AS col1
----
18

skipif mysql # not compatible
query I rowsort label-8258
SELECT + MAX ( ALL + 64 ) + - 46 AS col1
----
18

query I rowsort
SELECT ALL - 98 - + 2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL COUNT( 60 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL COUNT ( 60 ) AS col2
----
1

query I rowsort
SELECT + 20 + - 98 AS col1
----
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8262
SELECT - ( - COUNT( * ) ) - CAST( NULL AS SIGNED ) / 3
----
NULL

skipif mysql # not compatible
query I rowsort label-8262
SELECT - ( - COUNT ( * ) ) - CAST ( NULL AS INTEGER ) / 3
----
NULL

query I rowsort
SELECT + 96 + 61
----
157

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT - COUNT( * ) - 56
----
-57

skipif mysql # not compatible
query I rowsort label-8264
SELECT - COUNT ( * ) - 56
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL + 99 - SUM( - 26 )
----
125

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL + 99 - SUM ( - 26 )
----
125

query I rowsort
SELECT - 89 + ( - 69 ) * 66 AS col1
----
-4643

query I rowsort
SELECT ALL - 26 * - 59 col2
----
1534

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT ALL COUNT( DISTINCT 13 )
----
1

skipif mysql # not compatible
query I rowsort label-8268
SELECT ALL COUNT ( DISTINCT 13 )
----
1

query I rowsort
SELECT DISTINCT - 8 * + 26
----
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL - 36 * + COUNT( * )
----
-36

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - 36 * + COUNT ( * )
----
-36

query I rowsort
SELECT ALL ( - 1 ) AS col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8272
SELECT - NULLIF ( - ( 23 ), ( + 98 ) ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8272
SELECT - NULLIF ( - ( 23 ), ( + 98 ) ) + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 12 + 54
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT - 23 DIV - 50
----
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT - 23 / - 50
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT - 29 * MAX( - 15 )
----
435

skipif mysql # not compatible
query I rowsort label-8275
SELECT - 29 * MAX ( - 15 )
----
435

query I rowsort
SELECT + CASE - 65 WHEN 7 / + 2 THEN 10 ELSE NULL END
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8277
SELECT DISTINCT + 47 DIV - 85 + MIN( DISTINCT - 31 ) AS col0
----
-31

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT + 47 / - 85 + MIN ( DISTINCT - 31 ) AS col0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8278
SELECT CAST( 52 AS SIGNED )
----
52

skipif mysql # not compatible
query I rowsort label-8278
SELECT CAST ( 52 AS INTEGER )
----
52

query I rowsort
SELECT + 39 + - 17
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8280
SELECT ALL NULLIF ( CASE + CAST( NULL AS SIGNED ) WHEN 33 THEN - 3 + - NULLIF ( 53, + NULLIF ( 53, ( - COALESCE ( 42, + 36 ) ) ) ) ELSE NULL END, - 63 ) + 76 * 98 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL NULLIF ( CASE + CAST ( NULL AS INTEGER ) WHEN 33 THEN - 3 + - NULLIF ( 53, + NULLIF ( 53, ( - COALESCE ( 42, + 36 ) ) ) ) ELSE NULL END, - 63 ) + 76 * 98 AS col2
----
NULL

query I rowsort
SELECT ALL 80 * - 23 AS col0
----
-1840

query I rowsort
SELECT COALESCE ( - 42, - 48 ) * - 72 + 23 col1
----
3047

query I rowsort
SELECT 17 + + 75
----
92

query I rowsort
SELECT DISTINCT - 84 * 81 col1
----
-6804

query I rowsort
SELECT ALL + NULLIF ( 51, + 20 ) - + 3 AS col2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - SUM( ALL 6 ) * + ( - 67 + + 18 )
----
294

skipif mysql # not compatible
query I rowsort label-8286
SELECT ALL - SUM ( ALL 6 ) * + ( - 67 + + 18 )
----
294

query I rowsort
SELECT + 50 * + 48 + - 58 AS col0
----
2342

query I rowsort
SELECT ALL 69 - + 49 AS col0
----
20

query I rowsort
SELECT - 38 * 59 AS col0
----
-2242

query I rowsort
SELECT + + 90 * + 85 + 70
----
7720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT - CAST( + 60 AS SIGNED ) * - 98 AS col2
----
5880

skipif mysql # not compatible
query I rowsort label-8291
SELECT - CAST ( + 60 AS INTEGER ) * - 98 AS col2
----
5880

query I rowsort
SELECT + 5 * 39
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT SUM( DISTINCT CASE + 23 WHEN 62 THEN 87 - 90 * + 10 END ) + ( - 68 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8293
SELECT SUM ( DISTINCT CASE + 23 WHEN 62 THEN 87 - 90 * + 10 END ) + ( - 68 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8294
SELECT ALL CASE - CAST( NULL AS SIGNED ) WHEN + COUNT( * ) THEN 29 + 58 * + 48 WHEN 31 THEN - 88 * COALESCE ( + MIN( 41 ) / + 86, 70 * 44 + - 54 ) ELSE NULL END col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL CASE - CAST ( NULL AS INTEGER ) WHEN + COUNT ( * ) THEN 29 + 58 * + 48 WHEN 31 THEN - 88 * COALESCE ( + MIN ( 41 ) / + 86, 70 * 44 + - 54 ) ELSE NULL END col2
----
NULL

query I rowsort
SELECT - 23 * 74
----
-1702

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT 10 * + COALESCE ( 27, ( COALESCE ( 44, 75 ) ) * + COUNT( * ), + 31 ) + 92 AS col2
----
362

skipif mysql # not compatible
query I rowsort label-8296
SELECT 10 * + COALESCE ( 27, ( COALESCE ( 44, 75 ) ) * + COUNT ( * ), + 31 ) + 92 AS col2
----
362

query I rowsort
SELECT + ( - 61 )
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT - 60 * + ( - 51 + COUNT( * ) )
----
3000

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT - 60 * + ( - 51 + COUNT ( * ) )
----
3000

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT MIN( + ( - 11 ) ) * - 79
----
869

skipif mysql # not compatible
query I rowsort label-8299
SELECT MIN ( + ( - 11 ) ) * - 79
----
869

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT + 85 * COUNT( 73 / + 90 ) AS col1
----
85

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT + 85 * COUNT ( 73 / + 90 ) AS col1
----
85

query I rowsort
SELECT 27 - - 13
----
40

query I rowsort
SELECT + 21 * 90 AS col1
----
1890

query I rowsort
SELECT 73 - - 98 AS col2
----
171

query I rowsort
SELECT + 4 + 94 * + 25
----
2354

query I rowsort
SELECT 12 + + + 26 AS col2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT DISTINCT 23 + - COALESCE ( - COALESCE ( - 59, - 14 + MAX( ALL + 84 ) ), + 46 + + 62 )
----
-36

skipif mysql # not compatible
query I rowsort label-8306
SELECT DISTINCT 23 + - COALESCE ( - COALESCE ( - 59, - 14 + MAX ( ALL + 84 ) ), + 46 + + 62 )
----
-36

query I rowsort
SELECT ALL - 78 + - 96 col0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8308
SELECT 95 - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8308
SELECT 95 - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8309
SELECT ALL - CAST( CAST( CASE - COUNT( * ) WHEN - 59 THEN - 10 ELSE 43 END AS SIGNED ) AS SIGNED )
----
-43

skipif mysql # not compatible
query I rowsort label-8309
SELECT ALL - CAST ( CAST ( CASE - COUNT ( * ) WHEN - 59 THEN - 10 ELSE 43 END AS INTEGER ) AS INTEGER )
----
-43

query I rowsort
SELECT ALL - COALESCE ( + + 15, 86 ) col0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT 11 * - 36 * COUNT( * ) col2
----
-396

skipif mysql # not compatible
query I rowsort label-8311
SELECT 11 * - 36 * COUNT ( * ) col2
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT DISTINCT - 15 - - ( + COUNT( * ) ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8312
SELECT DISTINCT - 15 - - ( + COUNT ( * ) ) AS col0
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-8313
SELECT ALL - CASE 89 WHEN + 49 THEN - 31 ELSE - 45 DIV 90 + 10 END
----
-10

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL - CASE 89 WHEN + 49 THEN - 31 ELSE - 45 / 90 + 10 END
----
-10

query I rowsort
SELECT ALL 68 - - + 62 * + 2 AS col2
----
192

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT + ( 57 ) DIV + 17 col1
----
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + ( 57 ) / + 17 col1
----
3

query I rowsort
SELECT 69 * - 2 - 85 * 74 + - 18 * + 23
----
-6842

query I rowsort
SELECT + 36 * + + 59 * + 60 col0
----
127440

query I rowsort
SELECT ALL + - 1 - + 13 + - 43 * - 75
----
3211

query I rowsort
SELECT 93 + - 15 - - 80 * 35 AS col1
----
2878

query I rowsort
SELECT - ( - 87 ) col1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - 2 * COUNT( * ) * + ( 94 )
----
-188

skipif mysql # not compatible
query I rowsort label-8321
SELECT - 2 * COUNT ( * ) * + ( 94 )
----
-188

query I rowsort
SELECT + - NULLIF ( + - 0, + 91 / 37 )
----
0

query I rowsort
SELECT DISTINCT - + ( - 32 ) * 81
----
2592

query I rowsort
SELECT - 30 + + - 98 col1
----
-128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT ALL + + NULLIF ( + 47, 8 ) * + CASE NULLIF ( 40, - COALESCE ( 39, + 49 * CAST( ( + 17 ) AS SIGNED ) ) * + CAST( NULL AS SIGNED ) ) WHEN - 43 * 60 THEN NULL WHEN 98 / + COUNT( * ) + 55 THEN 14 * + 49 - + ( - ( + NULLIF ( 56, ( - 60 ) - 94 ) ) ) WHEN CAST( NULL AS SIGNED ) / 89 + - 72 THEN NULL ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + + NULLIF ( + 47, 8 ) * + CASE NULLIF ( 40, - COALESCE ( 39, + 49 * CAST ( ( + 17 ) AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) ) WHEN - 43 * 60 THEN NULL WHEN 98 / + COUNT ( * ) + 55 THEN 14 * + 49 - + ( - ( + NULLIF ( 56, ( - 60 ) - 94 ) ) ) WHEN CAST ( NULL AS INTEGER ) / 89 + - 72 THEN NULL ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 97 + + + 63
----
160

query I rowsort
SELECT + ( 49 ) col1
----
49

query I rowsort
SELECT 9 * - 43 + 85 AS col2
----
-302

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8329
SELECT ALL COUNT( * ) + + + COUNT( * ) * ( 35 DIV + 95 )
----
1

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL COUNT ( * ) + + + COUNT ( * ) * ( 35 / + 95 )
----
1

query I rowsort
SELECT + ( 25 ) + 82
----
107

query I rowsort
SELECT 42 + + 81
----
123

query I rowsort
SELECT + 79 - - 25 AS col0
----
104

query I rowsort
SELECT ( - 95 ) - + 50
----
-145

query I rowsort
SELECT DISTINCT 71 + + + 23 AS col0
----
94

query I rowsort
SELECT DISTINCT + 4 + - 37 AS col2
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL NULLIF ( - - CAST( + - 49 AS SIGNED ), 56 ) + + 43
----
-6

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL NULLIF ( - - CAST ( + - 49 AS INTEGER ), 56 ) + + 43
----
-6

query I rowsort
SELECT ( 34 ) + 13
----
47

query I rowsort
SELECT ALL 58 * - - 65
----
3770

query II rowsort
SELECT ALL 38 AS col1, + 35
----
38
35

query II rowsort
SELECT DISTINCT 89 AS col0, - 62
----
89
-62

query I rowsort
SELECT 82 + - ( + 92 ) * - 23 AS col1
----
2198

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT - CASE - COUNT( * ) WHEN + 66 THEN + 86 WHEN 22 THEN NULL WHEN 59 THEN NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8342
SELECT - CASE - COUNT ( * ) WHEN + 66 THEN + 86 WHEN 22 THEN NULL WHEN 59 THEN NULL END
----
NULL

query I rowsort
SELECT ( - 74 ) + + 23
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT - 99 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8344
SELECT - 99 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT + 10 + COUNT( * ) * + - 58
----
-48

skipif mysql # not compatible
query I rowsort label-8345
SELECT + 10 + COUNT ( * ) * + - 58
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8346
SELECT - 75 + 0 + - 25 + + 25 DIV - SUM( + 57 ) * + 92
----
-100

skipif mysql # not compatible
query I rowsort label-8346
SELECT - 75 + 0 + - 25 + + 25 / - SUM ( + 57 ) * + 92
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT NULLIF ( - + COUNT( * ), - ( + SUM( DISTINCT + 8 ) ) )
----
-1

skipif mysql # not compatible
query I rowsort label-8347
SELECT NULLIF ( - + COUNT ( * ), - ( + SUM ( DISTINCT + 8 ) ) )
----
-1

query I rowsort
SELECT + 4 + - 48
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT DISTINCT - 5 * - - COUNT( * ) - + 53
----
-58

skipif mysql # not compatible
query I rowsort label-8349
SELECT DISTINCT - 5 * - - COUNT ( * ) - + 53
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT - 48 * 81 * + + COUNT( * ) + + 67
----
-3821

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 48 * 81 * + + COUNT ( * ) + + 67
----
-3821

onlyif mysql # aggregate syntax: 
query I rowsort label-8351
SELECT CASE - + COUNT( * ) WHEN 13 - 21 * 48 THEN NULL ELSE 46 * + COUNT( * ) END
----
46

skipif mysql # not compatible
query I rowsort label-8351
SELECT CASE - + COUNT ( * ) WHEN 13 - 21 * 48 THEN NULL ELSE 46 * + COUNT ( * ) END
----
46

query II rowsort
SELECT DISTINCT + 68, + 25 AS col2
----
68
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT ALL + 11 * - COUNT( * )
----
-11

skipif mysql # not compatible
query I rowsort label-8353
SELECT ALL + 11 * - COUNT ( * )
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT - COUNT( * ) * + + 72
----
-72

skipif mysql # not compatible
query I rowsort label-8354
SELECT - COUNT ( * ) * + + 72
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8355
SELECT ALL ( - 2 ) * - ( CAST( NULL AS SIGNED ) ) - 64 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT ALL ( - 2 ) * - ( CAST ( NULL AS INTEGER ) ) - 64 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT - 85 * + 7 + + COALESCE ( + 99, CASE 68 WHEN 93 + - 52 THEN NULL WHEN COALESCE ( - 85, COUNT( * ) + 43 ) * 24 THEN + ( + 26 ) * 66 ELSE - 36 END, COUNT( * ) + 58 ) col1
----
-496

skipif mysql # not compatible
query I rowsort label-8356
SELECT - 85 * + 7 + + COALESCE ( + 99, CASE 68 WHEN 93 + - 52 THEN NULL WHEN COALESCE ( - 85, COUNT ( * ) + 43 ) * 24 THEN + ( + 26 ) * 66 ELSE - 36 END, COUNT ( * ) + 58 ) col1
----
-496

onlyif mysql # aggregate syntax: 
query I rowsort label-8357
SELECT + NULLIF ( - 86, + COALESCE ( CASE COALESCE ( + 93, - SUM( 75 ) ) WHEN ( + 85 ) / - ( - NULLIF ( - 28, 61 ) * - 16 + - 72 ) THEN 5 + 92 * - ( 67 ) WHEN 88 * 43 + - 29 * 18 THEN NULL WHEN - 25 THEN NULL ELSE NULL END, - COUNT( * ), 82 + 15, ( - 22 ) * ( + 59 * + 20 ) ) ) AS col1
----
-86

skipif mysql # not compatible
query I rowsort label-8357
SELECT + NULLIF ( - 86, + COALESCE ( CASE COALESCE ( + 93, - SUM ( 75 ) ) WHEN ( + 85 ) / - ( - NULLIF ( - 28, 61 ) * - 16 + - 72 ) THEN 5 + 92 * - ( 67 ) WHEN 88 * 43 + - 29 * 18 THEN NULL WHEN - 25 THEN NULL ELSE NULL END, - COUNT ( * ), 82 + 15, ( - 22 ) * ( + 59 * + 20 ) ) ) AS col1
----
-86

query I rowsort
SELECT - - AVG ( - 68 ) / + CASE + 50 WHEN 92 * - 68 THEN 47 END + - 46
----
NULL

query I rowsort
SELECT ALL + - 99 * - 52 AS col0
----
5148

query I rowsort
SELECT + + COALESCE ( 29, 34, ( - CASE 20 WHEN - 8 THEN + 58 - - 78 WHEN 85 / - 62 + - 56 THEN NULL ELSE NULL END ) ) * + 45 AS col1
----
1305

query I rowsort
SELECT + 82 * - + 6 + + 20
----
-472

query I rowsort
SELECT - + 53 * + - 13 + - 79
----
610

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT - 61 + 12 * + - COUNT( * ) - 23 * + 25
----
-648

skipif mysql # not compatible
query I rowsort label-8363
SELECT - 61 + 12 * + - COUNT ( * ) - 23 * + 25
----
-648

query II rowsort
SELECT ALL + 95, + ( - 18 ) * - 97 AS col0
----
95
1746

query I rowsort
SELECT - 0 + + 24 + + ( + 38 ) * + ( + 70 ) AS col1
----
2684

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT ALL + ( COALESCE ( - - 9, - COALESCE ( - COUNT( * ), 27 * 56, 25 * + 36 ) ) ) * 53
----
477

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + ( COALESCE ( - - 9, - COALESCE ( - COUNT ( * ), 27 * 56, 25 * + 36 ) ) ) * 53
----
477

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8367
SELECT + - CAST( NULL AS DECIMAL ) * - - 60 * + - COUNT( ALL + 45 ) + 53 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT + - CAST ( NULL AS REAL ) * - - 60 * + - COUNT ( ALL + 45 ) + 53 AS col0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8368
SELECT ALL + SUM( + 16 ) DIV + + 51
----
0

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + SUM ( + 16 ) / + + 51
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT + COUNT( * ) * + 99 + - + 67 + 45 AS col2
----
77

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + COUNT ( * ) * + 99 + - + 67 + 45 AS col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8370
SELECT ALL + 74 * + + COUNT( * ) * + 56 + 5 + + ( CAST( NULL AS SIGNED ) + CAST( COUNT( * ) AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT ALL + 74 * + + COUNT ( * ) * + 56 + 5 + + ( CAST ( NULL AS INTEGER ) + CAST ( COUNT ( * ) AS INTEGER ) ) AS col2
----
NULL

query I rowsort
SELECT ALL - 27 + + 3 AS col1
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT - - COALESCE ( + 43, + + 81 * COUNT( * ), + 2 + 14 ) * + 94 AS col1
----
4042

skipif mysql # not compatible
query I rowsort label-8372
SELECT - - COALESCE ( + 43, + + 81 * COUNT ( * ), + 2 + 14 ) * + 94 AS col1
----
4042

query I rowsort
SELECT - - 16 + 86 * 85 * - 8
----
-58464

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8374
SELECT ALL 47 AS col2, + 10 * CAST( 34 AS SIGNED ) AS col2
----
47
340

skipif mysql # not compatible
query II rowsort label-8374
SELECT ALL 47 AS col2, + 10 * CAST ( 34 AS INTEGER ) AS col2
----
47
340

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT - + 47 * + SUM( DISTINCT - 11 ) AS col0
----
517

skipif mysql # not compatible
query I rowsort label-8375
SELECT - + 47 * + SUM ( DISTINCT - 11 ) AS col0
----
517

query I rowsort
SELECT ALL + + 94 * - 45 col0
----
-4230

onlyif mysql # aggregate syntax: 
query II rowsort label-8377
SELECT + 25 AS col0, + MAX( ALL - + 20 ) AS col0
----
25
-20

skipif mysql # not compatible
query II rowsort label-8377
SELECT + 25 AS col0, + MAX ( ALL - + 20 ) AS col0
----
25
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - 30 * - - COUNT( * ) AS col0
----
-30

skipif mysql # not compatible
query I rowsort label-8378
SELECT - 30 * - - COUNT ( * ) AS col0
----
-30

query I rowsort
SELECT ALL + 75 * + ( - ( CASE 93 WHEN - AVG ( ALL 59 ) THEN + 94 END ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT ALL - ( + SUM( ALL + 6 ) ) AS col2
----
-6

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL - ( + SUM ( ALL + 6 ) ) AS col2
----
-6

query I rowsort
SELECT + 29 * 41
----
1189

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL + 78 + - COUNT( * )
----
77

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + 78 + - COUNT ( * )
----
77

query I rowsort
SELECT ALL - 15 - - ( - + 70 ) * + 67 + 35
----
-4670

onlyif mysql # aggregate syntax: 
query I rowsort label-8384
SELECT - COUNT( * ) - + 89 * SUM( + 82 ) * - 2
----
14595

skipif mysql # not compatible
query I rowsort label-8384
SELECT - COUNT ( * ) - + 89 * SUM ( + 82 ) * - 2
----
14595

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + 99 * - COUNT( ALL + 39 ) * + 96 AS col0
----
-9504

skipif mysql # not compatible
query I rowsort label-8385
SELECT + 99 * - COUNT ( ALL + 39 ) * + 96 AS col0
----
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-8386
SELECT ALL ( + CASE - + 84 WHEN + + ( - COUNT( * ) ) + 20 / + COUNT( * ) THEN + 37 * 96 END ) / COUNT( * ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8386
SELECT ALL ( + CASE - + 84 WHEN + + ( - COUNT ( * ) ) + 20 / + COUNT ( * ) THEN + 37 * 96 END ) / COUNT ( * ) AS col1
----
NULL

query I rowsort
SELECT - 11 * - 90
----
990

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT + COUNT( * ) + + + ( - 69 )
----
-68

skipif mysql # not compatible
query I rowsort label-8388
SELECT + COUNT ( * ) + + + ( - 69 )
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8389
SELECT ALL 57 * 72 DIV 59
----
69

skipif mysql # not compatible
query I rowsort label-8389
SELECT ALL 57 * 72 / 59
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8390
SELECT ALL - COUNT( * ) DIV + - 66 * + COUNT( * ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL - COUNT ( * ) / + - 66 * + COUNT ( * ) AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT + 39 - NULLIF ( - 59, - + 94 * ( 83 / ( 17 * + 39 ) - - COUNT( * ) * - ( - 33 / COUNT( * ) + 98 * 75 ) ) ) + - COUNT( * ) * + SUM( ALL 44 + 47 ) AS col2
----
7

skipif mysql # not compatible
query I rowsort label-8391
SELECT + 39 - NULLIF ( - 59, - + 94 * ( 83 / ( 17 * + 39 ) - - COUNT ( * ) * - ( - 33 / COUNT ( * ) + 98 * 75 ) ) ) + - COUNT ( * ) * + SUM ( ALL 44 + 47 ) AS col2
----
7

query I rowsort
SELECT ALL 51 * 70
----
3570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT CAST( - - COALESCE ( - 4, + - 8, + 41 * - 51 ) AS SIGNED ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-8393
SELECT CAST ( - - COALESCE ( - 4, + - 8, + 41 * - 51 ) AS INTEGER ) AS col0
----
-4

query I rowsort
SELECT ALL + 72 col1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + 45 * - COUNT( * )
----
-45

skipif mysql # not compatible
query I rowsort label-8395
SELECT + 45 * - COUNT ( * )
----
-45

query I rowsort
SELECT - 82 * 7 * - 56 + - 98 AS col1
----
32046

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT + COUNT( * ) * + + 48 col1
----
48

skipif mysql # not compatible
query I rowsort label-8397
SELECT + COUNT ( * ) * + + 48 col1
----
48

query I rowsort
SELECT ALL ( + + 71 ) * 25 AS col1
----
1775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8399
SELECT CAST( + 62 AS SIGNED ) AS col2
----
62

skipif mysql # not compatible
query I rowsort label-8399
SELECT CAST ( + 62 AS INTEGER ) AS col2
----
62

query I rowsort
SELECT + 85 - + 14
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8401
SELECT ALL - NULLIF ( + + COUNT( * ), - + 40 + - 92 + CAST( NULL AS SIGNED ) ) / 84 + + CASE + 62 WHEN 93 - 38 * 80 THEN 82 END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL - NULLIF ( + + COUNT ( * ), - + 40 + - 92 + CAST ( NULL AS INTEGER ) ) / 84 + + CASE + 62 WHEN 93 - 38 * 80 THEN 82 END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT - + 66 * + CASE WHEN NOT 92 BETWEEN ( 2 + 66 * 43 ) AND NULL THEN COUNT( * ) - + 60 END + - 79 + 21 * 93
----
5768

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - + 66 * + CASE WHEN NOT 92 BETWEEN ( 2 + 66 * 43 ) AND NULL THEN COUNT ( * ) - + 60 END + - 79 + 21 * 93
----
5768

query I rowsort
SELECT ALL + + 72 * 16 AS col1
----
1152

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT + - 37 * + + SUM( + 14 )
----
-518

skipif mysql # not compatible
query I rowsort label-8404
SELECT + - 37 * + + SUM ( + 14 )
----
-518

query I rowsort
SELECT ALL 55 * + 9 * - 27 * + - 8 * CASE + 38 * - 98 WHEN 29 THEN + 0 END + + 85
----
NULL

query II rowsort
SELECT + ( - 58 ) col2, + 33
----
-58
33

query I rowsort
SELECT + 78 + 43 + + 43 * 29
----
1368

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT - COALESCE ( 78, + 45 * COUNT( * ), 41 )
----
-78

skipif mysql # not compatible
query I rowsort label-8408
SELECT - COALESCE ( 78, + 45 * COUNT ( * ), 41 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT ALL + 19 * - + 81 + 72 * 62 * COALESCE ( + ( 73 ), + 97, - 76, + COUNT( ( 90 ) ) )
----
324333

skipif mysql # not compatible
query I rowsort label-8409
SELECT ALL + 19 * - + 81 + 72 * 62 * COALESCE ( + ( 73 ), + 97, - 76, + COUNT ( ( 90 ) ) )
----
324333

query I rowsort
SELECT - 71 * + 89 * - 30 - 19 + 96
----
189647

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL + COUNT( * ) * - 41 + + 87 * - - 69
----
5962

skipif mysql # not compatible
query I rowsort label-8411
SELECT ALL + COUNT ( * ) * - 41 + + 87 * - - 69
----
5962

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT DISTINCT + COUNT( * ) * 22 + + 92 + + 88 * 80
----
7154

skipif mysql # not compatible
query I rowsort label-8412
SELECT DISTINCT + COUNT ( * ) * 22 + + 92 + + 88 * 80
----
7154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8413
SELECT - + COUNT( + 21 ) + + 24 + - 83 DIV + 29 col2
----
21

skipif mysql # not compatible
query I rowsort label-8413
SELECT - + COUNT ( + 21 ) + + 24 + - 83 / + 29 col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT ALL 87 * + CASE - 53 WHEN - COUNT( 9 ) * - 51 THEN + 38 / 43 END / 36 - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8414
SELECT ALL 87 * + CASE - 53 WHEN - COUNT ( 9 ) * - 51 THEN + 38 / 43 END / 36 - 84
----
NULL

query I rowsort
SELECT - 23 * - 46 * + - 31
----
-32798

query I rowsort
SELECT 30 - + 80 - + 46 + - - 56 * + - 86 * 28 * 1
----
-134944

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT DISTINCT + CASE - 73 WHEN - 28 * + - 3 THEN NULL WHEN - 72 * 64 - + 55 THEN 61 * + 35 WHEN + MIN( 69 ) THEN COUNT( * ) WHEN 22 THEN + 76 * + 59 END * + ( 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8417
SELECT DISTINCT + CASE - 73 WHEN - 28 * + - 3 THEN NULL WHEN - 72 * 64 - + 55 THEN 61 * + 35 WHEN + MIN ( 69 ) THEN COUNT ( * ) WHEN 22 THEN + 76 * + 59 END * + ( 8 )
----
NULL

query I rowsort
SELECT 4 + 69
----
73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8419
SELECT 20 + - + 0 + - - 11 + - + 15 DIV SUM( ALL - 81 )
----
31

skipif mysql # not compatible
query I rowsort label-8419
SELECT 20 + - + 0 + - - 11 + - + 15 / SUM ( ALL - 81 )
----
31

query I rowsort
SELECT DISTINCT + 56 * 44
----
2464

query I rowsort
SELECT 30 + + 64 + - 94 * - - 8 + 73 * 46 AS col2
----
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8422
SELECT 36 * + + CASE - CASE ( - 92 ) WHEN NULLIF ( 32, CASE WHEN 23 NOT BETWEEN CAST( - ( 92 ) AS SIGNED ) AND NULL THEN 15 ELSE ( 97 ) * - 91 END + - 28 ) THEN NULL ELSE 63 END WHEN 13 THEN + 18 ELSE NULL END * COALESCE ( + 73, - CASE MIN( DISTINCT 14 ) WHEN 43 + 12 THEN NULL WHEN + 3 * 79 THEN NULL ELSE - 26 END * - COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8422
SELECT 36 * + + CASE - CASE ( - 92 ) WHEN NULLIF ( 32, CASE WHEN 23 NOT BETWEEN CAST ( - ( 92 ) AS INTEGER ) AND NULL THEN 15 ELSE ( 97 ) * - 91 END + - 28 ) THEN NULL ELSE 63 END WHEN 13 THEN + 18 ELSE NULL END * COALESCE ( + 73, - CASE MIN ( DISTINCT 14 ) WHEN 43 + 12 THEN NULL WHEN + 3 * 79 THEN NULL ELSE - 26 END * - COUNT ( * ) )
----
NULL

query I rowsort
SELECT ALL - NULLIF ( + - 42, + 67 ) * + - 51 * 77 AS col1
----
-164934

query I rowsort
SELECT 17 + - 13
----
4

query I rowsort
SELECT ALL 9 + - 10 - - - 86 + - ( 47 )
----
-134

query I rowsort
SELECT ALL - ( - + NULLIF ( - 47, - CASE - - 11 WHEN - 98 THEN - 4 WHEN + 94 - 3 THEN NULL END - + 85 / 31 ) ) AS col2
----
-47

query I rowsort
SELECT DISTINCT - 93 + - - 45 + - 48
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + COUNT( * ) + - 58
----
-57

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + COUNT ( * ) + - 58
----
-57

query I rowsort
SELECT ALL - NULLIF ( + 76, + 75 + - 8 )
----
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + ( - 8 ) DIV + 79 + - 51 + + 40 AS col0
----
-11

skipif mysql # not compatible
query I rowsort label-8430
SELECT + ( - 8 ) / + 79 + - 51 + + 40 AS col0
----
-11

query I rowsort
SELECT ALL 66 + - 95 AS col0
----
-29

query I rowsort
SELECT DISTINCT + 2 + - + 97
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT DISTINCT - COUNT( * ) * + + 60 * 61 * - 2 * SUM( - 34 )
----
-248880

skipif mysql # not compatible
query I rowsort label-8433
SELECT DISTINCT - COUNT ( * ) * + + 60 * 61 * - 2 * SUM ( - 34 )
----
-248880

query I rowsort
SELECT - 49 * - 63 * 91 AS col0
----
280917

query I rowsort
SELECT 45 + NULLIF ( + 33, + 42 )
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT DISTINCT + CAST( 99 AS SIGNED ) * - 4 AS col0
----
-396

skipif mysql # not compatible
query I rowsort label-8436
SELECT DISTINCT + CAST ( 99 AS INTEGER ) * - 4 AS col0
----
-396

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8437
SELECT COUNT( * ) DIV - + 6 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8437
SELECT COUNT ( * ) / - + 6 AS col0
----
0

query I rowsort
SELECT ( + 12 ) * - 22 AS col2
----
-264

query I rowsort
SELECT + 98 + 18 - - + 11
----
127

query II rowsort
SELECT + 21 AS col1, 9 - - 58 * 64 * 29 - 69 AS col2
----
21
107588

query I rowsort
SELECT DISTINCT 47 * - 78 AS col0
----
-3666

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT 4 * + + COUNT( * )
----
4

skipif mysql # not compatible
query I rowsort label-8442
SELECT 4 * + + COUNT ( * )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT 40 + COALESCE ( 32, + COUNT( * ) * + - 68 ) + 72 + - MAX( 35 ) * 44
----
-1396

skipif mysql # not compatible
query I rowsort label-8443
SELECT 40 + COALESCE ( 32, + COUNT ( * ) * + - 68 ) + 72 + - MAX ( 35 ) * 44
----
-1396

query II rowsort
SELECT 98 AS col0, - 42 * - 95 + + 73 AS col1
----
98
4063

onlyif mysql # DIV for integer division: 
query I rowsort label-8445
SELECT 36 DIV - + 60 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8445
SELECT 36 / - + 60 AS col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8446
SELECT DISTINCT - 70 DIV + + 63 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT - 70 / + + 63 AS col1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT 46 * + ( - COUNT( * ) )
----
-46

skipif mysql # not compatible
query I rowsort label-8447
SELECT 46 * + ( - COUNT ( * ) )
----
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8448
SELECT NULLIF ( + MAX( + ( - - 11 ) ), + ( - 72 ) * + 40 - + ( - COUNT( + 77 ) - 67 * - 14 ) * ( + 46 - CASE CAST( - 75 AS SIGNED ) + 34 WHEN 96 THEN 99 WHEN CASE - 49 WHEN 37 THEN + 11 END THEN NULL ELSE 72 * - 13 - 31 / 90 END ) ) - MAX( ALL CAST( 86 AS SIGNED ) ) col1
----
-75

skipif mysql # not compatible
query I rowsort label-8448
SELECT NULLIF ( + MAX ( + ( - - 11 ) ), + ( - 72 ) * + 40 - + ( - COUNT ( + 77 ) - 67 * - 14 ) * ( + 46 - CASE CAST ( - 75 AS INTEGER ) + 34 WHEN 96 THEN 99 WHEN CASE - 49 WHEN 37 THEN + 11 END THEN NULL ELSE 72 * - 13 - 31 / 90 END ) ) - MAX ( ALL CAST ( 86 AS INTEGER ) ) col1
----
-75

query II rowsort
SELECT 27 AS col0, - ( + 48 ) AS col0
----
27
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8450
SELECT ALL + 80 DIV + SUM( ALL - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + 80 / + SUM ( ALL - 93 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8451
SELECT NULLIF ( + 51, 14 * COALESCE ( - 21, 31 ) ) DIV + ( - 99 * + CAST( - COALESCE ( + CAST( + 11 AS SIGNED ), 57, 75 DIV + 67 ) * COUNT( * ) AS SIGNED ) ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8451
SELECT NULLIF ( + 51, 14 * COALESCE ( - 21, 31 ) ) / + ( - 99 * + CAST ( - COALESCE ( + CAST ( + 11 AS INTEGER ), 57, 75 / + 67 ) * COUNT ( * ) AS INTEGER ) ) AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT 62 + + - CASE + 31 WHEN - + 92 * ( + 61 ) * 57 THEN NULL WHEN - COUNT( DISTINCT 19 ) THEN NULL ELSE - 70 * 27 END + COUNT( * ) * - 52
----
1900

skipif mysql # not compatible
query I rowsort label-8452
SELECT 62 + + - CASE + 31 WHEN - + 92 * ( + 61 ) * 57 THEN NULL WHEN - COUNT ( DISTINCT 19 ) THEN NULL ELSE - 70 * 27 END + COUNT ( * ) * - 52
----
1900

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT + COUNT( - + 97 ) + + - 34
----
-33

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT + COUNT ( - + 97 ) + + - 34
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-8454
SELECT ALL - 7 + + 14 AS col0, + 92 * + + COUNT( * )
----
7
92

skipif mysql # not compatible
query II rowsort label-8454
SELECT ALL - 7 + + 14 AS col0, + 92 * + + COUNT ( * )
----
7
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8455
SELECT ALL AVG ( DISTINCT - CASE 78 WHEN + CAST( 16 AS SIGNED ) THEN + + 22 WHEN 74 / 56 THEN NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL AVG ( DISTINCT - CASE 78 WHEN + CAST ( 16 AS INTEGER ) THEN + + 22 WHEN 74 / 56 THEN NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8456
SELECT DISTINCT - COUNT( * ) + - + 90 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8456
SELECT DISTINCT - COUNT ( * ) + - + 90 AS col1
----
-91

query I rowsort
SELECT 61 * - + 27 * 37 AS col1
----
-60939

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8458
SELECT ALL - CAST( NULL AS SIGNED ) + + SUM( 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8458
SELECT ALL - CAST ( NULL AS INTEGER ) + + SUM ( 26 )
----
NULL

query II rowsort
SELECT ALL 97 AS col0, 53 * + 51 + 83 * - 50 AS col0
----
97
-1447

query I rowsort
SELECT ( + ( - - 24 ) ) * 21
----
504

query II rowsort
SELECT ALL - 73 AS col2, - 19
----
-73
-19

query I rowsort
SELECT - ( - 81 ) AS col0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT + SUM( + - 44 ) AS col1
----
-44

skipif mysql # not compatible
query I rowsort label-8463
SELECT + SUM ( + - 44 ) AS col1
----
-44

query I rowsort
SELECT ALL 75 * + 51 + + 44 + 67 + + - 49 * + - 37 AS col0
----
5749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT CAST( - 48 AS SIGNED ) AS col2
----
-48

skipif mysql # not compatible
query I rowsort label-8465
SELECT CAST ( - 48 AS INTEGER ) AS col2
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8466
SELECT ALL + NULLIF ( + COUNT( * ), MAX( ALL + 50 ) - - - 0 * - + 68 ) * 20 + 9 DIV + 53
----
20

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL + NULLIF ( + COUNT ( * ), MAX ( ALL + 50 ) - - - 0 * - + 68 ) * 20 + 9 / + 53
----
20

query I rowsort
SELECT ( 55 ) * - + 69 - 5
----
-3800

onlyif mysql # aggregate syntax: 
query II rowsort label-8468
SELECT + + COUNT( * ) AS col0, 42
----
1
42

skipif mysql # not compatible
query II rowsort label-8468
SELECT + + COUNT ( * ) AS col0, 42
----
1
42

query I rowsort
SELECT ALL - CASE + 57 WHEN - - 50 * 41 THEN + 41 WHEN 88 THEN NULL END AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT - + NULLIF ( + 76, 56 + - COUNT( * ) )
----
-76

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT - + NULLIF ( + 76, 56 + - COUNT ( * ) )
----
-76

query I rowsort
SELECT ALL 26 * - 21
----
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT ALL - 24 * - 29 + - ( - + COUNT( * ) ) - + - 78
----
775

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - 24 * - 29 + - ( - + COUNT ( * ) ) - + - 78
----
775

query I rowsort
SELECT - 54 * + 64 + 93
----
-3363

query I rowsort
SELECT - 23 * + 4
----
-92

query I rowsort
SELECT ALL - 38 * - 1 * - - 60 - - 56 - 3 AS col1
----
2333

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT + + 27 DIV + 43 + + + 95 col0
----
95

skipif mysql # not compatible
query I rowsort label-8476
SELECT + + 27 / + 43 + + + 95 col0
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8477
SELECT CAST( NULL AS SIGNED ), + 97 * - 65 + + + COUNT( * ) DIV 19 DIV NULLIF ( - 78, COUNT( * ) ) AS col2
----
NULL
-6305

skipif mysql # not compatible
query II rowsort label-8477
SELECT CAST ( NULL AS INTEGER ), + 97 * - 65 + + + COUNT ( * ) / 19 / NULLIF ( - 78, COUNT ( * ) ) AS col2
----
NULL
-6305

query I rowsort
SELECT - - 58 + - 92
----
-34

query I rowsort
SELECT ALL - 47 - + - 23
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT + 85 * CAST( 97 AS SIGNED ) + 48 - + 51
----
8242

skipif mysql # not compatible
query I rowsort label-8480
SELECT + 85 * CAST ( 97 AS INTEGER ) + 48 - + 51
----
8242

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8481
SELECT ALL - 56 * - CAST( NULL AS SIGNED ) AS col1, 37 - - 84 + - 12 + + ( - 68 ) * 53 * 33 * 7
----
NULL
-832415

skipif mysql # not compatible
query II rowsort label-8481
SELECT ALL - 56 * - CAST ( NULL AS INTEGER ) AS col1, 37 - - 84 + - 12 + + ( - 68 ) * 53 * 33 * 7
----
NULL
-832415

onlyif mysql # aggregate syntax: 
query II rowsort label-8482
SELECT + 40 + + - COUNT( * ) AS col0, 67 AS col0
----
39
67

skipif mysql # not compatible
query II rowsort label-8482
SELECT + 40 + + - COUNT ( * ) AS col0, 67 AS col0
----
39
67

query I rowsort
SELECT + 16 + 43
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8484
SELECT + 28 + - 84 * - CASE - + COUNT( - 96 ) WHEN - CAST( - 70 AS DECIMAL ) THEN 11 + - 29 END
----
NULL

skipif mysql # not compatible
query I rowsort label-8484
SELECT + 28 + - 84 * - CASE - + COUNT ( - 96 ) WHEN - CAST ( - 70 AS REAL ) THEN 11 + - 29 END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT ALL COUNT( * ) * 18
----
18

skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL COUNT ( * ) * 18
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8486
SELECT ALL CAST( + - 93 AS SIGNED ) + + 95 + - - 42
----
44

skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL CAST ( + - 93 AS INTEGER ) + + 95 + - - 42
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT + 4 + + ( - + COUNT( * ) ) + - 61
----
-58

skipif mysql # not compatible
query I rowsort label-8487
SELECT + 4 + + ( - + COUNT ( * ) ) + - 61
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8488
SELECT + 80 + 9 + 93 - + + 13 - + - 49 * - + CAST( + MIN( ALL + 74 ) AS SIGNED ) * 98
----
-355179

skipif mysql # not compatible
query I rowsort label-8488
SELECT + 80 + 9 + 93 - + + 13 - + - 49 * - + CAST ( + MIN ( ALL + 74 ) AS INTEGER ) * 98
----
-355179

query I rowsort
SELECT ALL 92 * + 18
----
1656

query I rowsort
SELECT - 62 + - + 10 * + 67 - - 65 AS col0
----
-667

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT ALL 68 + - 76 AS col1, + COALESCE ( - 60, + COALESCE ( - + 93, + COUNT( * ) + 39 ) * 58 ) * 11 AS col2
----
-8
-660

skipif mysql # not compatible
query II rowsort label-8491
SELECT ALL 68 + - 76 AS col1, + COALESCE ( - 60, + COALESCE ( - + 93, + COUNT ( * ) + 39 ) * 58 ) * 11 AS col2
----
-8
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT - NULLIF ( - 37, - - COUNT( * ) + + 87 ) AS col0
----
37

skipif mysql # not compatible
query I rowsort label-8492
SELECT - NULLIF ( - 37, - - COUNT ( * ) + + 87 ) AS col0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT 97 + + + CASE + + COALESCE ( 86, - + 27 * - 8 * + COUNT( * ) * 40, - 28 - 8 * 23 ) WHEN COUNT( * ) THEN + 11 ELSE 56 END
----
153

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT 97 + + + CASE + + COALESCE ( 86, - + 27 * - 8 * + COUNT ( * ) * 40, - 28 - 8 * 23 ) WHEN COUNT ( * ) THEN + 11 ELSE 56 END
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL MAX( ALL 66 )
----
66

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL MAX ( ALL 66 )
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT DISTINCT - 76 + + ( COUNT( * ) ) DIV 62 AS col2
----
-76

skipif mysql # not compatible
query I rowsort label-8495
SELECT DISTINCT - 76 + + ( COUNT ( * ) ) / 62 AS col2
----
-76

query I rowsort
SELECT + - 55 * + + 78
----
-4290

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8497
SELECT ALL - NULLIF ( - + 4, - + 12 * - - 84 ) DIV COUNT( - 87 ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL - NULLIF ( - + 4, - + 12 * - - 84 ) / COUNT ( - 87 ) AS col2
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8498
SELECT + - 38 + - CAST( + COUNT( * ) AS SIGNED ) * - 96
----
58

skipif mysql # not compatible
query I rowsort label-8498
SELECT + - 38 + - CAST ( + COUNT ( * ) AS INTEGER ) * - 96
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT - - ( - MIN( DISTINCT 12 ) ) AS col1
----
-12

skipif mysql # not compatible
query I rowsort label-8499
SELECT - - ( - MIN ( DISTINCT 12 ) ) AS col1
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT DISTINCT - CASE - 13 WHEN + 2 + 61 * COUNT( * ) + COALESCE ( - 21, - COUNT( * ) * 56 ) THEN NULL ELSE ( + 11 ) END - - 90 AS col0
----
79

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT - CASE - 13 WHEN + 2 + 61 * COUNT ( * ) + COALESCE ( - 21, - COUNT ( * ) * 56 ) THEN NULL ELSE ( + 11 ) END - - 90 AS col0
----
79

query I rowsort
SELECT ALL + ( - 23 ) * + + 58 * - - 97 AS col1
----
-129398

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8502
SELECT DISTINCT - COUNT( * ) DIV 21 - - + 96 * + NULLIF ( - 73, + COUNT( * ) * - - COUNT( * ) ) * - 46 AS col2
----
322368

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - COUNT ( * ) / 21 - - + 96 * + NULLIF ( - 73, + COUNT ( * ) * - - COUNT ( * ) ) * - 46 AS col2
----
322368

query I rowsort
SELECT ALL + ( + 50 ) AS col1
----
50

query II rowsort
SELECT ALL + 59 * + + 32 AS col1, - 0
----
1888
0

query I rowsort
SELECT - - 48 + - 81 * - + 66 * - - 22
----
117660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8506
SELECT ALL + CASE - COUNT( * ) WHEN + COUNT( * ) + 28 THEN - COUNT( * ) DIV + 84 + - + ( + COUNT( * ) ) WHEN - 2 THEN NULL ELSE + 74 DIV + 96 END
----
0

skipif mysql # not compatible
query I rowsort label-8506
SELECT ALL + CASE - COUNT ( * ) WHEN + COUNT ( * ) + 28 THEN - COUNT ( * ) / + 84 + - + ( + COUNT ( * ) ) WHEN - 2 THEN NULL ELSE + 74 / + 96 END
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + NULLIF ( - + 29, + 3 * + 8 * + 29 + COUNT( 66 ) ) AS col2
----
-29

skipif mysql # not compatible
query I rowsort label-8507
SELECT + NULLIF ( - + 29, + 3 * + 8 * + 29 + COUNT ( 66 ) ) AS col2
----
-29

query I rowsort
SELECT - - 98 * 17
----
1666

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT - 76 * - ( - 65 ) + + COUNT( * ) + + COUNT( 56 ) AS col1
----
-4938

skipif mysql # not compatible
query I rowsort label-8509
SELECT - 76 * - ( - 65 ) + + COUNT ( * ) + + COUNT ( 56 ) AS col1
----
-4938

onlyif mysql # DIV for integer division: 
query I rowsort label-8510
SELECT DISTINCT + 43 DIV COALESCE ( - 91, + 3, + 42 ) AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT + 43 / COALESCE ( - 91, + 3, + 42 ) AS col0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8511
SELECT - MAX( 32 ) DIV 32, 77 AS col2
----
-1
77

skipif mysql # not compatible
query II rowsort label-8511
SELECT - MAX ( 32 ) / 32, 77 AS col2
----
-1
77

query I rowsort
SELECT ALL ( 56 ) * + 68 + - 31 AS col1
----
3777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8513
SELECT COALESCE ( - 17, + + 62, 93 ) AS col1, - CASE - + COUNT( * ) WHEN + 89 THEN NULL ELSE + 96 * 47 END * CAST( NULL AS SIGNED ) AS col2
----
-17
NULL

skipif mysql # not compatible
query II rowsort label-8513
SELECT COALESCE ( - 17, + + 62, 93 ) AS col1, - CASE - + COUNT ( * ) WHEN + 89 THEN NULL ELSE + 96 * 47 END * CAST ( NULL AS INTEGER ) AS col2
----
-17
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8514
SELECT ALL + CASE - + COUNT( * ) WHEN - + MAX( + + 64 ) + + - 58 THEN - MIN( + - 75 ) + - + 61 ELSE - 34 END
----
-34

skipif mysql # not compatible
query I rowsort label-8514
SELECT ALL + CASE - + COUNT ( * ) WHEN - + MAX ( + + 64 ) + + - 58 THEN - MIN ( + - 75 ) + - + 61 ELSE - 34 END
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT + 97 / ( - + 5 ) / - - 21 + - 96 + MAX( ALL - + 50 ) * - ( CASE + AVG ( DISTINCT 16 ) WHEN 99 * + 90 THEN + ( 41 ) * + 59 END ) - 73
----
NULL

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + 97 / ( - + 5 ) / - - 21 + - 96 + MAX ( ALL - + 50 ) * - ( CASE + AVG ( DISTINCT 16 ) WHEN 99 * + 90 THEN + ( 41 ) * + 59 END ) - 73
----
NULL

query I rowsort
SELECT DISTINCT + 85 * ( - 15 ) + - 32 * + ( 68 ) + + 73 - + 85 * - 11 col1
----
-2443

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT COALESCE ( + + 42, + + MIN( ALL - + 40 ) ) AS col2
----
42

skipif mysql # not compatible
query I rowsort label-8517
SELECT COALESCE ( + + 42, + + MIN ( ALL - + 40 ) ) AS col2
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL + AVG ( - ( - CAST( NULL AS SIGNED ) ) ) * - NULLIF ( 36, + ( + COUNT( * ) ) ) * 96 * NULLIF ( 38 / 60, 20 ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL + AVG ( - ( - CAST ( NULL AS INTEGER ) ) ) * - NULLIF ( 36, + ( + COUNT ( * ) ) ) * 96 * NULLIF ( 38 / 60, 20 ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8519
SELECT + ( - - CAST( COUNT( * ) AS SIGNED ) ) * - + 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-8519
SELECT + ( - - CAST ( COUNT ( * ) AS INTEGER ) ) * - + 89 AS col2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL NULLIF ( COUNT( * ), - - COUNT( * ) * 27 - + + 63 ) * - 56 + + 44 + - - 1 + - COALESCE ( 95, 90 ) * NULLIF ( + 93, 22 + 85 * - 61 ) AS col1
----
-8846

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL NULLIF ( COUNT ( * ), - - COUNT ( * ) * 27 - + + 63 ) * - 56 + + 44 + - - 1 + - COALESCE ( 95, 90 ) * NULLIF ( + 93, 22 + 85 * - 61 ) AS col1
----
-8846

query II rowsort
SELECT ALL 56, 0 AS col0
----
56
0

query I rowsort
SELECT ALL 45 + - 31
----
14

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8523
SELECT ALL CAST( NULL AS DECIMAL ) AS col1, ( - + 52 ) AS col1
----
NULL
-52

skipif mysql # not compatible
query II rowsort label-8523
SELECT ALL CAST ( NULL AS REAL ) AS col1, ( - + 52 ) AS col1
----
NULL
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-8524
SELECT + 68 + - 28 DIV 65, + 3 * - ( - 18 ) AS col2
----
68
54

skipif mysql # not compatible
query II rowsort label-8524
SELECT + 68 + - 28 / 65, + 3 * - ( - 18 ) AS col2
----
68
54

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT + COUNT( * ) * - 75
----
-75

skipif mysql # not compatible
query I rowsort label-8525
SELECT + COUNT ( * ) * - 75
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8526
SELECT ALL 67, 87 * NULLIF ( - - ( - CAST( NULL AS DECIMAL ) ), - - 17 ) col2
----
67
NULL

skipif mysql # not compatible
query II rowsort label-8526
SELECT ALL 67, 87 * NULLIF ( - - ( - CAST ( NULL AS REAL ) ), - - 17 ) col2
----
67
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8527
SELECT - 15 - + - 61 / - + 62 * 90 + + + 38 / - + COUNT( * ) / CAST( NULL AS SIGNED ) - + 85
----
NULL

skipif mysql # not compatible
query I rowsort label-8527
SELECT - 15 - + - 61 / - + 62 * 90 + + + 38 / - + COUNT ( * ) / CAST ( NULL AS INTEGER ) - + 85
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8528
SELECT - CAST( NULL AS SIGNED ) col0, + 93 * 96 AS col2
----
NULL
8928

skipif mysql # not compatible
query II rowsort label-8528
SELECT - CAST ( NULL AS INTEGER ) col0, + 93 * 96 AS col2
----
NULL
8928

query I rowsort
SELECT ALL 85 * + 50
----
4250

query I rowsort
SELECT + 76 * + 62 AS col2
----
4712

onlyif mysql # aggregate syntax: 
query II rowsort label-8531
SELECT + ( + - 79 ) + - COUNT( * ) AS col0, 83 + - 84 AS col1
----
-80
-1

skipif mysql # not compatible
query II rowsort label-8531
SELECT + ( + - 79 ) + - COUNT ( * ) AS col0, 83 + - 84 AS col1
----
-80
-1

query I rowsort
SELECT DISTINCT + 82 - + 71 - + ( 75 ) + - 59 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query III rowsort label-8533
SELECT ALL + 56 AS col2, + SUM( ALL + + 6 ) * - 36, 37 col2
----
56
-216
37

skipif mysql # not compatible
query III rowsort label-8533
SELECT ALL + 56 AS col2, + SUM ( ALL + + 6 ) * - 36, 37 col2
----
56
-216
37

query I rowsort
SELECT ALL 3 * + 46 * + 32 * + - 94 AS col1
----
-415104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8535
SELECT - + ( - COALESCE ( + 54, - 58 + - COUNT( * ) * 2 ) ) col2, 14 + CASE + COUNT( * ) WHEN 2 THEN + COALESCE ( COUNT( * ), 19 * + 4 - 97 ) ELSE AVG ( ALL + 24 ) * - COUNT( * ) + + 39 * - CAST( NULL AS SIGNED ) END
----
54
NULL

skipif mysql # not compatible
query II rowsort label-8535
SELECT - + ( - COALESCE ( + 54, - 58 + - COUNT ( * ) * 2 ) ) col2, 14 + CASE + COUNT ( * ) WHEN 2 THEN + COALESCE ( COUNT ( * ), 19 * + 4 - 97 ) ELSE AVG ( ALL + 24 ) * - COUNT ( * ) + + 39 * - CAST ( NULL AS INTEGER ) END
----
54
NULL

query I rowsort
SELECT DISTINCT - 21 - - 78
----
57

query I rowsort
SELECT DISTINCT - - 8 - - 98
----
106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8538
SELECT + - 16 DIV 7 - - + COUNT( ALL + 85 ) + + + NULLIF ( + 20, + 34 ) * + 29 col0
----
579

skipif mysql # not compatible
query I rowsort label-8538
SELECT + - 16 / 7 - - + COUNT ( ALL + 85 ) + + + NULLIF ( + 20, + 34 ) * + 29 col0
----
579

query I rowsort
SELECT 71 * + 90 * 83 AS col1
----
530370

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - - COUNT( + 87 )
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - - COUNT ( + 87 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8541
SELECT DISTINCT + COALESCE ( 54, - 32 ) / + 8 * + MAX( - + CAST( NULL AS DECIMAL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT + COALESCE ( 54, - 32 ) / + 8 * + MAX ( - + CAST ( NULL AS REAL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT - SUM( ALL - - 23 ) AS col2
----
-23

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT - SUM ( ALL - - 23 ) AS col2
----
-23

query I rowsort
SELECT - 45 * - 85 AS col1
----
3825

query I rowsort
SELECT 92 * 9 AS col1
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT - ( + COUNT( * ) ) * + 25 AS col1
----
-25

skipif mysql # not compatible
query I rowsort label-8545
SELECT - ( + COUNT ( * ) ) * + 25 AS col1
----
-25

query II rowsort
SELECT DISTINCT - 53, 67 AS col2
----
-53
67

query I rowsort
SELECT DISTINCT + 14 * - 83 AS col1
----
-1162

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT ALL - 56 + - NULLIF ( 68, COUNT( * ) - - 1 * + - 92 ) * 32
----
-2232

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL - 56 + - NULLIF ( 68, COUNT ( * ) - - 1 * + - 92 ) * 32
----
-2232

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + - COUNT( ALL - - 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8549
SELECT + - COUNT ( ALL - - 28 ) AS col1
----
-1

query I rowsort
SELECT ALL + 86 * - - 28 * + 75
----
180600

query II rowsort
SELECT 30 * + 6 AS col1, 62 AS col0
----
180
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT DISTINCT + NULLIF ( + + 79, - + 65 + - 5 + - + CASE - 48 WHEN - ( 79 ) THEN NULL WHEN 41 THEN + 86 + 62 * 6 WHEN - COALESCE ( + 44, - COUNT( * ) / COUNT( * ) + - 11 ) THEN NULL ELSE COUNT( DISTINCT - 5 ) * + 0 END * 42 ) + - 13
----
66

skipif mysql # not compatible
query I rowsort label-8552
SELECT DISTINCT + NULLIF ( + + 79, - + 65 + - 5 + - + CASE - 48 WHEN - ( 79 ) THEN NULL WHEN 41 THEN + 86 + 62 * 6 WHEN - COALESCE ( + 44, - COUNT ( * ) / COUNT ( * ) + - 11 ) THEN NULL ELSE COUNT ( DISTINCT - 5 ) * + 0 END * 42 ) + - 13
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8553
SELECT ALL - 57 + - ( + COALESCE ( 36, + CASE + - 37 WHEN 57 THEN - + NULLIF ( - 66, - 4 ) WHEN + 81 + + 78 THEN + 43 - - CAST( - 68 AS SIGNED ) END ) ) - + 22 AS col0
----
-115

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL - 57 + - ( + COALESCE ( 36, + CASE + - 37 WHEN 57 THEN - + NULLIF ( - 66, - 4 ) WHEN + 81 + + 78 THEN + 43 - - CAST ( - 68 AS INTEGER ) END ) ) - + 22 AS col0
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT 20 + + SUM( 54 )
----
74

skipif mysql # not compatible
query I rowsort label-8554
SELECT 20 + + SUM ( 54 )
----
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8555
SELECT 29 + - 0 DIV 95 + - - 92 * NULLIF ( 46, - - CAST( - 8 AS SIGNED ) - + AVG ( 62 ) )
----
4261

skipif mysql # not compatible
query I rowsort label-8555
SELECT 29 + - 0 / 95 + - - 92 * NULLIF ( 46, - - CAST ( - 8 AS INTEGER ) - + AVG ( 62 ) )
----
4261

onlyif mysql # DIV for integer division: 
query I rowsort label-8556
SELECT DISTINCT - 67 DIV - + 86 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8556
SELECT DISTINCT - 67 / - + 86 AS col1
----
0

query II rowsort
SELECT 64 + + + 87, - 75 AS col0
----
151
-75

query I rowsort
SELECT DISTINCT - 49 * - 21 AS col1
----
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT 54 / + COUNT( * ) / + CASE - - 61 WHEN + 69 * + 48 + + ( + 9 ) THEN NULL WHEN - 61 + 64 THEN 25 WHEN + 30 THEN + 72 + + 19 ELSE NULL END
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT 54 / + COUNT ( * ) / + CASE - - 61 WHEN + 69 * + 48 + + ( + 9 ) THEN NULL WHEN - 61 + 64 THEN 25 WHEN + 30 THEN + 72 + + 19 ELSE NULL END
----
NULL

query I rowsort
SELECT ALL - 22 * - 91 col0
----
2002

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8561
SELECT ALL + CAST( 92 AS SIGNED ) AS col1, - 4
----
92
-4

skipif mysql # not compatible
query II rowsort label-8561
SELECT ALL + CAST ( 92 AS INTEGER ) AS col1, - 4
----
92
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-8562
SELECT DISTINCT + COUNT( * ) - + - 42 col2, COUNT( * )
----
43
1

skipif mysql # not compatible
query II rowsort label-8562
SELECT DISTINCT + COUNT ( * ) - + - 42 col2, COUNT ( * )
----
43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8563
SELECT + COUNT( * ) + - + 91 AS col2
----
-90

skipif mysql # not compatible
query I rowsort label-8563
SELECT + COUNT ( * ) + - + 91 AS col2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT 7 + MIN( 77 ) AS col2
----
84

skipif mysql # not compatible
query I rowsort label-8564
SELECT 7 + MIN ( 77 ) AS col2
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8565
SELECT - 2 + - - 37 DIV + 75 + - + 35 * + 82 * - - 63
----
-180812

skipif mysql # not compatible
query I rowsort label-8565
SELECT - 2 + - - 37 / + 75 + - + 35 * + 82 * - - 63
----
-180812

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT DISTINCT - COUNT( * ) * - - 15 * + + 84 AS col2
----
-1260

skipif mysql # not compatible
query I rowsort label-8566
SELECT DISTINCT - COUNT ( * ) * - - 15 * + + 84 AS col2
----
-1260

query I rowsort
SELECT - ( - 92 ) col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT + 42 * - + 2 * - COUNT( * ) * 29 * COUNT( * )
----
2436

skipif mysql # not compatible
query I rowsort label-8568
SELECT + 42 * - + 2 * - COUNT ( * ) * 29 * COUNT ( * )
----
2436

query I rowsort
SELECT 7 * - 58 * + 18 * - 53 AS col0
----
387324

query I rowsort
SELECT DISTINCT 21 * + 71
----
1491

query I rowsort
SELECT - COALESCE ( - - 0, - 64 ) * 51 + + 86
----
86

onlyif mysql # DIV for integer division: 
query II rowsort label-8572
SELECT ALL 35 + - 92 DIV + + ( - 89 ) AS col2, 74 AS col2
----
36
74

skipif mysql # not compatible
query II rowsort label-8572
SELECT ALL 35 + - 92 / + + ( - 89 ) AS col2, 74 AS col2
----
36
74

query I rowsort
SELECT DISTINCT - 57 + - 7
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL - + 1 + + 22 + - COUNT( * ) * + 65 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL - + 1 + + 22 + - COUNT ( * ) * + 65 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8575
SELECT DISTINCT - + ( + 4 ) AS col0, - 15 * - COUNT( * )
----
-4
15

skipif mysql # not compatible
query II rowsort label-8575
SELECT DISTINCT - + ( + 4 ) AS col0, - 15 * - COUNT ( * )
----
-4
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT SUM( 15 ) AS col1
----
15

skipif mysql # not compatible
query I rowsort label-8576
SELECT SUM ( 15 ) AS col1
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8577
SELECT 20 DIV 14 * + 42
----
42

skipif mysql # not compatible
query I rowsort label-8577
SELECT 20 / 14 * + 42
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT 55 + + + CAST( + 61 AS SIGNED ) AS col0
----
116

skipif mysql # not compatible
query I rowsort label-8578
SELECT 55 + + + CAST ( + 61 AS INTEGER ) AS col0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8579
SELECT ALL COUNT( * ) DIV + 49
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT ALL COUNT ( * ) / + 49
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT ALL - SUM( ALL - + 61 )
----
61

skipif mysql # not compatible
query I rowsort label-8580
SELECT ALL - SUM ( ALL - + 61 )
----
61

query I rowsort
SELECT ( 31 ) * + 10
----
310

query I rowsort
SELECT + 64 * + ( + 40 ) + - 84 AS col1
----
2476

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT + MAX( DISTINCT 57 ) col2
----
57

skipif mysql # not compatible
query I rowsort label-8583
SELECT + MAX ( DISTINCT 57 ) col2
----
57

query I rowsort
SELECT DISTINCT - NULLIF ( - ( + - 46 ), + AVG ( - ( - ( 48 ) ) ) )
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8585
SELECT COUNT( * ) * + 21 DIV - + COUNT( * )
----
-21

skipif mysql # not compatible
query I rowsort label-8585
SELECT COUNT ( * ) * + 21 / - + COUNT ( * )
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT + MIN( 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8586
SELECT + MIN ( 97 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL + 62 * - + NULLIF ( COUNT( * ), + 4 * 96 )
----
-62

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL + 62 * - + NULLIF ( COUNT ( * ), + 4 * 96 )
----
-62

query I rowsort
SELECT ALL + 53 * 63 AS col0
----
3339

query I rowsort
SELECT 45 - 71
----
-26

query I rowsort
SELECT 80 * 38 * - + 93
----
-282720

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT + MIN( DISTINCT + 25 ) AS col2
----
25

skipif mysql # not compatible
query I rowsort label-8591
SELECT + MIN ( DISTINCT + 25 ) AS col2
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8592
SELECT - CASE - - NULLIF ( + + 90, - - 6 + + + 30 ) WHEN - - CAST( + COUNT( * ) AS SIGNED ) + 61 + CAST( NULL AS SIGNED ) * - MAX( 90 ) THEN + ( - MAX( 8 ) ) + 24 * 99 ELSE 79 END
----
-79

skipif mysql # not compatible
query I rowsort label-8592
SELECT - CASE - - NULLIF ( + + 90, - - 6 + + + 30 ) WHEN - - CAST ( + COUNT ( * ) AS INTEGER ) + 61 + CAST ( NULL AS INTEGER ) * - MAX ( 90 ) THEN + ( - MAX ( 8 ) ) + 24 * 99 ELSE 79 END
----
-79

query I rowsort
SELECT 70 * + 97 * + 31
----
210490

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT 6 * + - 51 * + 86 * + COUNT( * ) * - 17
----
447372

skipif mysql # not compatible
query I rowsort label-8594
SELECT 6 * + - 51 * + 86 * + COUNT ( * ) * - 17
----
447372

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT ALL MIN( DISTINCT + 44 )
----
44

skipif mysql # not compatible
query I rowsort label-8595
SELECT ALL MIN ( DISTINCT + 44 )
----
44

query II rowsort
SELECT 15 AS col0, + 92
----
15
92

query I rowsort
SELECT ALL - 15 * + - 39
----
585

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8598
SELECT DISTINCT - - 37 / + - 18 * - + MIN( + + 73 ) + - CASE + 81 WHEN - 5 * + COUNT( * ) THEN - CASE COUNT( * ) WHEN + 4 * 64 THEN NULL ELSE - 28 END ELSE CAST( NULL AS SIGNED ) / + COUNT( ALL + 24 ) END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8598
SELECT DISTINCT - - 37 / + - 18 * - + MIN ( + + 73 ) + - CASE + 81 WHEN - 5 * + COUNT ( * ) THEN - CASE COUNT ( * ) WHEN + 4 * 64 THEN NULL ELSE - 28 END ELSE CAST ( NULL AS INTEGER ) / + COUNT ( ALL + 24 ) END AS col0
----
NULL

query I rowsort
SELECT DISTINCT - ( + ( - 99 ) ) * + - ( 24 ) AS col1
----
-2376

query I rowsort
SELECT ALL - 71 * - - 92 * + 68 AS col1
----
-444176

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT - 60 DIV + + 1 AS col1
----
-60

skipif mysql # not compatible
query I rowsort label-8601
SELECT - 60 / + + 1 AS col1
----
-60

query I rowsort
SELECT - + 49 * - + 25 * 96 * ( 47 )
----
5527200

query I rowsort
SELECT - COALESCE ( + 38, 60 ) + - 99 AS col1
----
-137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8604
SELECT ALL + 80 * + 72 + - NULLIF ( CAST( ( + 29 ) AS SIGNED ), CAST( NULL AS SIGNED ) ) + + - 7 col2, + COUNT( * )
----
5724
1

skipif mysql # not compatible
query II rowsort label-8604
SELECT ALL + 80 * + 72 + - NULLIF ( CAST ( ( + 29 ) AS INTEGER ), CAST ( NULL AS INTEGER ) ) + + - 7 col2, + COUNT ( * )
----
5724
1

query I rowsort
SELECT - - 74 * + + 42
----
3108

query I rowsort
SELECT + - 69 + - + 20 AS col0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT + + COUNT( * ) * - + 82 / - - 35 * CASE 72 WHEN - 61 / - 44 - - + 54 THEN 95 ELSE 61 - ( - 29 - + CASE ( COUNT( DISTINCT + 15 ) ) + 30 WHEN + 33 * - 28 + - 59 * ( COUNT( * ) * 11 + + 17 * 33 ) THEN + 76 WHEN + 95 THEN - COUNT( DISTINCT 64 ) END ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT + + COUNT ( * ) * - + 82 / - - 35 * CASE 72 WHEN - 61 / - 44 - - + 54 THEN 95 ELSE 61 - ( - 29 - + CASE ( COUNT ( DISTINCT + 15 ) ) + 30 WHEN + 33 * - 28 + - 59 * ( COUNT ( * ) * 11 + + 17 * 33 ) THEN + 76 WHEN + 95 THEN - COUNT ( DISTINCT 64 ) END ) END
----
NULL

query I rowsort
SELECT - - ( - 36 ) AS col0
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8609
SELECT ALL 66 + - - 72 + + COUNT( * ) * COALESCE ( - + COUNT( * ), CAST( + 61 AS SIGNED ) * + 36 DIV - SUM( ALL + ( 3 ) ), + 25 ) + + 52
----
189

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL 66 + - - 72 + + COUNT ( * ) * COALESCE ( - + COUNT ( * ), CAST ( + 61 AS INTEGER ) * + 36 / - SUM ( ALL + ( 3 ) ), + 25 ) + + 52
----
189

query I rowsort
SELECT ALL - 30 + - ( + 47 ) * 24 AS col0
----
-1158

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT MAX( ALL 86 )
----
86

skipif mysql # not compatible
query I rowsort label-8611
SELECT MAX ( ALL 86 )
----
86

query I rowsort
SELECT ALL - 19 * - + 93 AS col0
----
1767

query I rowsort
SELECT - 49 * 46 col0
----
-2254

query I rowsort
SELECT DISTINCT - 86 + 3
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8615
SELECT ALL + COUNT( * ) + ( + COUNT( * ) ) AS col1
----
2

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + COUNT ( * ) + ( + COUNT ( * ) ) AS col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT ALL - NULLIF ( + + CASE - 56 WHEN - 24 * + 57 THEN - + CASE + + COUNT( * ) WHEN - - 27 THEN NULL WHEN - - 39 THEN COUNT( * ) END * 58 END, 38 * + 45 + 11 ) * + 50 + + 6 * 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8616
SELECT ALL - NULLIF ( + + CASE - 56 WHEN - 24 * + 57 THEN - + CASE + + COUNT ( * ) WHEN - - 27 THEN NULL WHEN - - 39 THEN COUNT ( * ) END * 58 END, 38 * + 45 + 11 ) * + 50 + + 6 * 82
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8617
SELECT + 73 DIV - COUNT( * ) + 24 - 42 AS col1
----
-91

skipif mysql # not compatible
query I rowsort label-8617
SELECT + 73 / - COUNT ( * ) + 24 - 42 AS col1
----
-91

query I rowsort
SELECT + + 47 AS col2
----
47

query I rowsort
SELECT ALL 76 * + 29
----
2204

query I rowsort
SELECT + 99 * + 99
----
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT + MAX( DISTINCT - 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-8621
SELECT + MAX ( DISTINCT - 49 )
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8622
SELECT ALL ( - 7 ) * + COUNT( * ) + 1 - 83 + COUNT( * )
----
-88

skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL ( - 7 ) * + COUNT ( * ) + 1 - 83 + COUNT ( * )
----
-88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8623
SELECT - COALESCE ( + 30, + - NULLIF ( - 67, - 44 ) ) * - CASE - 12 WHEN - ( - ( + CASE 17 WHEN COUNT( * ) + 80 * 45 THEN + 22 WHEN - 85 - + 0 THEN NULL ELSE NULL END ) ) + - 58 THEN 48 + CAST( 15 AS DECIMAL ) WHEN 7 THEN 81 / 90 WHEN + ( + 30 ) THEN NULL ELSE 44 + + 50 END + CASE WHEN NOT - 66 + 7 / 23 NOT BETWEEN 17 AND COALESCE ( - ( + MIN( + 30 ) ), 34 + 54 ) THEN COUNT( * ) + + 20 * 61 ELSE NULL END - 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8623
SELECT - COALESCE ( + 30, + - NULLIF ( - 67, - 44 ) ) * - CASE - 12 WHEN - ( - ( + CASE 17 WHEN COUNT ( * ) + 80 * 45 THEN + 22 WHEN - 85 - + 0 THEN NULL ELSE NULL END ) ) + - 58 THEN 48 + CAST ( 15 AS REAL ) WHEN 7 THEN 81 / 90 WHEN + ( + 30 ) THEN NULL ELSE 44 + + 50 END + CASE WHEN NOT - 66 + 7 / 23 NOT BETWEEN 17 AND COALESCE ( - ( + MIN ( + 30 ) ), 34 + 54 ) THEN COUNT ( * ) + + 20 * 61 ELSE NULL END - 32 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT ALL + CAST( - COUNT( DISTINCT - 8 ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-8624
SELECT ALL + CAST ( - COUNT ( DISTINCT - 8 ) AS INTEGER ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT ALL - AVG ( ALL - - 61 ) * + CASE - - COUNT( DISTINCT - + 0 ) WHEN + + 50 + - 29 THEN NULL WHEN 60 * 77 - - 26 THEN + - 75 ELSE NULL END * 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT ALL - AVG ( ALL - - 61 ) * + CASE - - COUNT ( DISTINCT - + 0 ) WHEN + + 50 + - 29 THEN NULL WHEN 60 * 77 - - 26 THEN + - 75 ELSE NULL END * 7
----
NULL

query I rowsort
SELECT + 52 - - 40 AS col0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT MIN( DISTINCT + 64 ) * - 26 col1
----
-1664

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT MIN ( DISTINCT + 64 ) * - 26 col1
----
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - 66 * COUNT( * ) + + + 76
----
10

skipif mysql # not compatible
query I rowsort label-8628
SELECT - 66 * COUNT ( * ) + + + 76
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8629
SELECT + COUNT( * ) DIV + + 57
----
0

skipif mysql # not compatible
query I rowsort label-8629
SELECT + COUNT ( * ) / + + 57
----
0

query I rowsort
SELECT + ( - 98 ) AS col1
----
-98

query I rowsort
SELECT CASE + 29 WHEN + - 55 * + + 82 THEN + 54 ELSE NULL END AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8632
SELECT + CASE + + COUNT( * ) WHEN 75 THEN + CAST( NULL AS SIGNED ) * - 37 + 18 WHEN - 16 - 52 * 20 + + + MAX( ALL 46 ) + 72 * + 20 * 22 THEN NULL END / 85 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8632
SELECT + CASE + + COUNT ( * ) WHEN 75 THEN + CAST ( NULL AS INTEGER ) * - 37 + 18 WHEN - 16 - 52 * 20 + + + MAX ( ALL 46 ) + 72 * + 20 * 22 THEN NULL END / 85 col2
----
NULL

query I rowsort
SELECT - 91 * 41
----
-3731

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT DISTINCT 97 * - - COUNT( * ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT 97 * - - COUNT ( * ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT CASE + + 49 WHEN - + 24 + + COUNT( * ) THEN 97 END * 85 + - + ( + AVG ( + 3 ) ) + - - 68 * 42 + 37
----
NULL

skipif mysql # not compatible
query I rowsort label-8635
SELECT CASE + + 49 WHEN - + 24 + + COUNT ( * ) THEN 97 END * 85 + - + ( + AVG ( + 3 ) ) + - - 68 * 42 + 37
----
NULL

query II rowsort
SELECT ALL + 15 AS col1, + 10 + + + 13
----
15
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8637
SELECT + 27 * + + COUNT( * ) + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8637
SELECT + 27 * + + COUNT ( * ) + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL + CASE - + COUNT( * ) WHEN + + 33 + + - 75 + - AVG ( ALL - 7 ) / - + ( - SUM( 38 ) ) + + 30 THEN + 96 ELSE - 94 * + COUNT( * ) END
----
-94

skipif mysql # not compatible
query I rowsort label-8638
SELECT ALL + CASE - + COUNT ( * ) WHEN + + 33 + + - 75 + - AVG ( ALL - 7 ) / - + ( - SUM ( 38 ) ) + + 30 THEN + 96 ELSE - 94 * + COUNT ( * ) END
----
-94

query I rowsort
SELECT ALL - 86 * + 96
----
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL SUM( 99 ) * + 74 AS col1
----
7326

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL SUM ( 99 ) * + 74 AS col1
----
7326

onlyif mysql # aggregate syntax: 
query I rowsort label-8641
SELECT - ( - NULLIF ( - + 42, + 82 + - 47 ) ) + + COUNT( ALL - 23 ) * COUNT( * ) AS col0
----
-41

skipif mysql # not compatible
query I rowsort label-8641
SELECT - ( - NULLIF ( - + 42, + 82 + - 47 ) ) + + COUNT ( ALL - 23 ) * COUNT ( * ) AS col0
----
-41

query II rowsort
SELECT ALL + NULLIF ( + - 55, - 16 + + - 90 ) AS col0, 25
----
-55
25

query I rowsort
SELECT DISTINCT 10 * 28 + - - 81 * + + 82 AS col2
----
6922

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT - 30, + CASE COUNT( - 38 ) WHEN - - 3 THEN - 60 + 42 + + + COUNT( * ) END * - 53 * + 29 AS col2
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-8644
SELECT - 30, + CASE COUNT ( - 38 ) WHEN - - 3 THEN - 60 + 42 + + + COUNT ( * ) END * - 53 * + 29 AS col2
----
-30
NULL

query I rowsort
SELECT + NULLIF ( 93, - + 50 )
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - + COUNT( * ) + - 50
----
-51

skipif mysql # not compatible
query I rowsort label-8646
SELECT - + COUNT ( * ) + - 50
----
-51

query I rowsort
SELECT ALL + ( + 7 )
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT + CASE - 20 WHEN + 69 + COUNT( * ) THEN - 49 END * + 82
----
NULL

skipif mysql # not compatible
query I rowsort label-8648
SELECT + CASE - 20 WHEN + 69 + COUNT ( * ) THEN - 49 END * + 82
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8649
SELECT ( - COALESCE ( 87, + + 76 + + COUNT( DISTINCT - 73 ) * CAST( NULL AS SIGNED ) * COUNT( * ), + CAST( NULL AS SIGNED ) * - 39 + - CAST( NULL AS SIGNED ) ) ) AS col0
----
-87

skipif mysql # not compatible
query I rowsort label-8649
SELECT ( - COALESCE ( 87, + + 76 + + COUNT ( DISTINCT - 73 ) * CAST ( NULL AS INTEGER ) * COUNT ( * ), + CAST ( NULL AS INTEGER ) * - 39 + - CAST ( NULL AS INTEGER ) ) ) AS col0
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8650
SELECT ALL + + 21 + - - MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + + 21 + - - MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8651
SELECT ALL + COUNT( 56 ) col0, - COUNT( * ) * - 33 AS col0
----
1
33

skipif mysql # not compatible
query II rowsort label-8651
SELECT ALL + COUNT ( 56 ) col0, - COUNT ( * ) * - 33 AS col0
----
1
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8652
SELECT DISTINCT 99 + + MIN( - 17 ) DIV + 40 AS col1
----
99

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT 99 + + MIN ( - 17 ) / + 40 AS col1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT - MAX( + 3 ) col1
----
-3

skipif mysql # not compatible
query I rowsort label-8653
SELECT - MAX ( + 3 ) col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL - + 30 + - + 16 - + ( + SUM( ALL + 70 ) ) * 82
----
-5786

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - + 30 + - + 16 - + ( + SUM ( ALL + 70 ) ) * 82
----
-5786

query I rowsort
SELECT - - 77 + + + 27 AS col1
----
104

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT SUM( 67 ) AS col1
----
67

skipif mysql # not compatible
query I rowsort label-8656
SELECT SUM ( 67 ) AS col1
----
67

query I rowsort
SELECT - 13 + + 14 + - ( - 14 ) + 61 + + 93 * + 70
----
6586

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT DISTINCT - 74 * - COUNT( * )
----
74

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - 74 * - COUNT ( * )
----
74

query I rowsort
SELECT ALL + 25 - 37
----
-12

query I rowsort
SELECT - 76 + 1 AS col0
----
-75

query II rowsort
SELECT DISTINCT + ( + 67 ) AS col1, 65 * + 12
----
67
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8662
SELECT CAST( + COALESCE ( - 85, + 76 * + 91 ) AS SIGNED )
----
-85

skipif mysql # not compatible
query I rowsort label-8662
SELECT CAST ( + COALESCE ( - 85, + 76 * + 91 ) AS INTEGER )
----
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT + CAST( NULL AS SIGNED ) + + 78
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + CAST ( NULL AS INTEGER ) + + 78
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT ALL + COALESCE ( - 49, 68 * 55 + + ( - COUNT( * ) ) + - SUM( DISTINCT + 77 ) )
----
-49

skipif mysql # not compatible
query I rowsort label-8664
SELECT ALL + COALESCE ( - 49, 68 * 55 + + ( - COUNT ( * ) ) + - SUM ( DISTINCT + 77 ) )
----
-49

query II rowsort
SELECT DISTINCT 21 * - 69 AS col1, 28
----
-1449
28

query I rowsort
SELECT DISTINCT + 6 col1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT COUNT( ALL + 2 ) * - - 21 + - 31
----
-10

skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT COUNT ( ALL + 2 ) * - - 21 + - 31
----
-10

query I rowsort
SELECT DISTINCT + 18 * - - 11
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT ALL 20 * 64 * COUNT( + + 91 )
----
1280

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL 20 * 64 * COUNT ( + + 91 )
----
1280

query I rowsort
SELECT ALL + 55 + - 70
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8671
SELECT 92 * - COALESCE ( + COUNT( * ), + 53 + + 71, COALESCE ( + 22, + 94 * - 94 - 63 + - 82 + MIN( ALL - 12 ) ) * + 55 ) * 81 col2
----
-7452

skipif mysql # not compatible
query I rowsort label-8671
SELECT 92 * - COALESCE ( + COUNT ( * ), + 53 + + 71, COALESCE ( + 22, + 94 * - 94 - 63 + - 82 + MIN ( ALL - 12 ) ) * + 55 ) * 81 col2
----
-7452

query I rowsort
SELECT 36 * 72 * - 42
----
-108864

query I rowsort
SELECT DISTINCT + 22 + + 56 * + 99
----
5566

query I rowsort
SELECT ALL 26 + 74
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT - + COUNT( DISTINCT - - 83 )
----
-1

skipif mysql # not compatible
query I rowsort label-8675
SELECT - + COUNT ( DISTINCT - - 83 )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8676
SELECT ALL - COALESCE ( + + 16, - COUNT( * ) * + + COALESCE ( - COUNT( * ), 75 ) * + 34 ) AS col0, - 77 * + - 52 + 28
----
-16
4032

skipif mysql # not compatible
query II rowsort label-8676
SELECT ALL - COALESCE ( + + 16, - COUNT ( * ) * + + COALESCE ( - COUNT ( * ), 75 ) * + 34 ) AS col0, - 77 * + - 52 + 28
----
-16
4032

query I rowsort
SELECT 15 * 52 col2
----
780

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8678
SELECT ALL + 72 * + - 48, - ( - + COUNT( * ) ) DIV COUNT( * ) DIV + 6 + - 41 + + - 59 * 62 AS col2
----
-3456
-3699

skipif mysql # not compatible
query II rowsort label-8678
SELECT ALL + 72 * + - 48, - ( - + COUNT ( * ) ) / COUNT ( * ) / + 6 + - 41 + + - 59 * 62 AS col2
----
-3456
-3699

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT + COUNT( * ) + 82 * + + 64
----
5249

skipif mysql # not compatible
query I rowsort label-8679
SELECT + COUNT ( * ) + 82 * + + 64
----
5249

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT 40 + CASE 69 WHEN 86 - - 65 - + - COUNT( * ) + ( + 33 ) THEN NULL WHEN - 92 THEN - 68 ELSE - 67 * - + 46 * 34 END * + 96
----
10059688

skipif mysql # not compatible
query I rowsort label-8680
SELECT 40 + CASE 69 WHEN 86 - - 65 - + - COUNT ( * ) + ( + 33 ) THEN NULL WHEN - 92 THEN - 68 ELSE - 67 * - + 46 * 34 END * + 96
----
10059688

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT DISTINCT CASE + - 55 WHEN + - 74 + COUNT( * ) * - 68 * + NULLIF ( - 15, - + 76 * + 82 ) THEN - - ( - 89 ) + - 56 - 68 WHEN 66 - + 95 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT CASE + - 55 WHEN + - 74 + COUNT ( * ) * - 68 * + NULLIF ( - 15, - + 76 * + 82 ) THEN - - ( - 89 ) + - 56 - 68 WHEN 66 - + 95 THEN NULL END AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8682
SELECT ALL - 45 - + 35, CAST( NULL AS SIGNED ) AS col2
----
-80
NULL

skipif mysql # not compatible
query II rowsort label-8682
SELECT ALL - 45 - + 35, CAST ( NULL AS INTEGER ) AS col2
----
-80
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8683
SELECT 63 * - 31 * + COUNT( * ) AS col1
----
-1953

skipif mysql # not compatible
query I rowsort label-8683
SELECT 63 * - 31 * + COUNT ( * ) AS col1
----
-1953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8684
SELECT ALL + 76 * - 70 / CAST( COUNT( * ) AS SIGNED ) + + 26 + + COUNT( * ) / - 99 + - MAX( DISTINCT - + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + 76 * - 70 / CAST ( COUNT ( * ) AS INTEGER ) + + 26 + + COUNT ( * ) / - 99 + - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) )
----
NULL

query I rowsort
SELECT ALL + 3 * + 32 AS col2
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8686
SELECT 15 AS col2, + ( COUNT( * ) )
----
15
1

skipif mysql # not compatible
query II rowsort label-8686
SELECT 15 AS col2, + ( COUNT ( * ) )
----
15
1

query I rowsort
SELECT ALL + 94 * 2
----
188

query II rowsort
SELECT 88, - 17 AS col1
----
88
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT 31 DIV 6 - - 4 AS col0
----
9

skipif mysql # not compatible
query I rowsort label-8689
SELECT 31 / 6 - - 4 AS col0
----
9

query II rowsort
SELECT + 38 AS col0, 36
----
38
36

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8691
SELECT ALL + 4 * 4 * - + CAST( NULL AS DECIMAL ) / - 24 AS col0, - CASE + - COUNT( * ) WHEN 21 * + COUNT( * ) * - 78 THEN 28 WHEN - 77 THEN NULL ELSE NULL END + + 34
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8691
SELECT ALL + 4 * 4 * - + CAST ( NULL AS REAL ) / - 24 AS col0, - CASE + - COUNT ( * ) WHEN 21 * + COUNT ( * ) * - 78 THEN 28 WHEN - 77 THEN NULL ELSE NULL END + + 34
----
NULL
NULL

query I rowsort
SELECT 55 * + - 10 AS col2
----
-550

query I rowsort
SELECT 93 * + + 79
----
7347

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT DISTINCT + 86 * + COUNT( * )
----
86

skipif mysql # not compatible
query I rowsort label-8694
SELECT DISTINCT + 86 * + COUNT ( * )
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT ALL - COUNT( * ) * + 38 AS col0
----
-38

skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL - COUNT ( * ) * + 38 AS col0
----
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8696
SELECT 15, - AVG ( - - CAST( + - 39 AS SIGNED ) ) + - - 20 + - + 51 + MIN( 75 ) * - CASE - COUNT( * ) WHEN - + 55 THEN + 55 WHEN + SUM( DISTINCT CAST( 44 AS SIGNED ) ) THEN 62 + + 14 * + 61 END + - 87 col2
----
15
NULL

skipif mysql # not compatible
query II rowsort label-8696
SELECT 15, - AVG ( - - CAST ( + - 39 AS INTEGER ) ) + - - 20 + - + 51 + MIN ( 75 ) * - CASE - COUNT ( * ) WHEN - + 55 THEN + 55 WHEN + SUM ( DISTINCT CAST ( 44 AS INTEGER ) ) THEN 62 + + 14 * + 61 END + - 87 col2
----
15
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8697
SELECT 74 DIV - 31
----
-2

skipif mysql # not compatible
query I rowsort label-8697
SELECT 74 / - 31
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8698
SELECT ALL - 4 * - - CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL - 4 * - - CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8699
SELECT ALL + 4 + - CAST( + 87 AS SIGNED ) + - - 7 * COUNT( * ) * MAX( ALL + + 56 ) * - COUNT( * ) AS col1, 48 AS col1
----
-475
48

skipif mysql # not compatible
query II rowsort label-8699
SELECT ALL + 4 + - CAST ( + 87 AS INTEGER ) + - - 7 * COUNT ( * ) * MAX ( ALL + + 56 ) * - COUNT ( * ) AS col1, 48 AS col1
----
-475
48

query I rowsort
SELECT 89 - + 39 AS col0
----
50

onlyif mysql # aggregate syntax: 
query II rowsort label-8701
SELECT ALL + 32 * + + ( + 87 ), - COUNT( * ) AS col2
----
2784
-1

skipif mysql # not compatible
query II rowsort label-8701
SELECT ALL + 32 * + + ( + 87 ), - COUNT ( * ) AS col2
----
2784
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8702
SELECT DISTINCT COUNT( - ( - - 30 ) ) + 72 * 49 * - + ( + 79 )
----
-278711

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT COUNT ( - ( - - 30 ) ) + 72 * 49 * - + ( + 79 )
----
-278711

query II rowsort
SELECT DISTINCT - COALESCE ( + + 30, 45 ) AS col2, + 79 * + - 8
----
-30
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT COUNT( * ) * - + 31
----
-31

skipif mysql # not compatible
query I rowsort label-8704
SELECT COUNT ( * ) * - + 31
----
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT + 19 / CASE + - 90 WHEN - 93 + - 55 - 60 * + 98 - + - NULLIF ( - 31, 65 / - - 42 ) / - COALESCE ( + - ( - NULLIF ( 99, 14 ) ), 87 + - CAST( 33 + 23 AS SIGNED ) ) THEN NULL WHEN - 50 * 19 THEN + ( 67 ) ELSE NULL END + - 86 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-8705
SELECT + 19 / CASE + - 90 WHEN - 93 + - 55 - 60 * + 98 - + - NULLIF ( - 31, 65 / - - 42 ) / - COALESCE ( + - ( - NULLIF ( 99, 14 ) ), 87 + - CAST ( 33 + 23 AS INTEGER ) ) THEN NULL WHEN - 50 * 19 THEN + ( 67 ) ELSE NULL END + - 86 * COUNT ( * )
----
NULL

query I rowsort
SELECT ALL - 84 + - 41 * + - 97 + - + 84 AS col1
----
3809

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT 61 + + - ( 31 ) * + COUNT( * )
----
30

skipif mysql # not compatible
query I rowsort label-8707
SELECT 61 + + - ( 31 ) * + COUNT ( * )
----
30

query I rowsort
SELECT ALL - + 88 + - 49 AS col2
----
-137

query I rowsort
SELECT + 71 * 45 + 88 + NULLIF ( + + 9, + 75 )
----
3292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8710
SELECT ALL - COUNT( * ) + + COUNT( * ) * - + 79 DIV 95 * + 30 * ( 41 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8710
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * - + 79 / 95 * + 30 * ( 41 ) AS col0
----
-1

query I rowsort
SELECT ALL + + 75 * - + 92 * 45 * 75 AS col2
----
-23287500

query I rowsort
SELECT DISTINCT + ( - - 31 ) AS col2
----
31

query I rowsort
SELECT ALL - 57 + + 55 * + 89 * - - 28 * - 50 col1
----
-6853057

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT DISTINCT - MAX( - 71 ) * + MAX( DISTINCT - 36 )
----
-2556

skipif mysql # not compatible
query I rowsort label-8714
SELECT DISTINCT - MAX ( - 71 ) * + MAX ( DISTINCT - 36 )
----
-2556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8715
SELECT 9 * + + ( NULLIF ( - - NULLIF ( + - COUNT( * ), - + 95 ), + COUNT( * ) / - 78 ) ) - - CASE - COUNT( * ) WHEN - COUNT( * ) + - MAX( + + 68 ) THEN 23 + - ( 41 ) WHEN - 53 + 58 THEN NULL WHEN - 12 THEN COUNT( * ) + - CAST( NULL AS SIGNED ) WHEN 11 THEN 27 ELSE NULL END + - ( NULLIF ( 57, CAST( NULL AS SIGNED ) * COUNT( * ) ) ) * - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT 9 * + + ( NULLIF ( - - NULLIF ( + - COUNT ( * ), - + 95 ), + COUNT ( * ) / - 78 ) ) - - CASE - COUNT ( * ) WHEN - COUNT ( * ) + - MAX ( + + 68 ) THEN 23 + - ( 41 ) WHEN - 53 + 58 THEN NULL WHEN - 12 THEN COUNT ( * ) + - CAST ( NULL AS INTEGER ) WHEN 11 THEN 27 ELSE NULL END + - ( NULLIF ( 57, CAST ( NULL AS INTEGER ) * COUNT ( * ) ) ) * - 28
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT - COUNT( * ) * + - 35 * - 54 AS col1
----
-1890

skipif mysql # not compatible
query I rowsort label-8716
SELECT - COUNT ( * ) * + - 35 * - 54 AS col1
----
-1890

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8717
SELECT + SUM( ALL + CAST( - 54 AS SIGNED ) ) + - 25
----
-79

skipif mysql # not compatible
query I rowsort label-8717
SELECT + SUM ( ALL + CAST ( - 54 AS INTEGER ) ) + - 25
----
-79

query I rowsort
SELECT 55 * - 35 AS col2
----
-1925

onlyif mysql # DIV for integer division: 
query I rowsort label-8719
SELECT - + COALESCE ( + 42, 0 - + - ( 59 ) + 1 + + - 97 DIV - 50, + 11 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-8719
SELECT - + COALESCE ( + 42, 0 - + - ( 59 ) + 1 + + - 97 / - 50, + 11 ) AS col0
----
-42

query I rowsort
SELECT DISTINCT + ( + - 70 )
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-8721
SELECT ALL + COUNT( * ) - + 22 + + 89 * 41 * COUNT( * ) * 68, - 13 - 91 - + 95 + - + 48 * 40 * - 49 - - - 18 AS col0
----
248111
93863

skipif mysql # not compatible
query II rowsort label-8721
SELECT ALL + COUNT ( * ) - + 22 + + 89 * 41 * COUNT ( * ) * 68, - 13 - 91 - + 95 + - + 48 * 40 * - 49 - - - 18 AS col0
----
248111
93863

query I rowsort
SELECT + 9 * 62 / + CASE 87 WHEN + 22 THEN + 64 + - 91 + - - 35 WHEN + 48 THEN NULL WHEN - 85 THEN + + 3 END - 67
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT MAX( 77 ) * 68
----
5236

skipif mysql # not compatible
query I rowsort label-8723
SELECT MAX ( 77 ) * 68
----
5236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8724
SELECT ALL + COUNT( * ) * + SUM( ALL - 75 ) DIV + + 85 + 0
----
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL + COUNT ( * ) * + SUM ( ALL - 75 ) / + + 85 + 0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8725
SELECT ALL 17 DIV - 11 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8725
SELECT ALL 17 / - 11 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8726
SELECT ALL 93 * - 15 AS col2, + COUNT( * ) * + - 45 AS col1
----
-1395
-45

skipif mysql # not compatible
query II rowsort label-8726
SELECT ALL 93 * - 15 AS col2, + COUNT ( * ) * + - 45 AS col1
----
-1395
-45

query I rowsort
SELECT ALL 11 * + 17 AS col1
----
187

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT NULLIF ( + - COUNT( * ), - + NULLIF ( ( - + 84 ), - 80 ) ) + - ( + 82 ) - - + 4 * - - NULLIF ( + + ( ( - - 19 ) ), + 83 / + 59 ) + + 98 col2
----
91

skipif mysql # not compatible
query I rowsort label-8728
SELECT NULLIF ( + - COUNT ( * ), - + NULLIF ( ( - + 84 ), - 80 ) ) + - ( + 82 ) - - + 4 * - - NULLIF ( + + ( ( - - 19 ) ), + 83 / + 59 ) + + 98 col2
----
91

query I rowsort
SELECT 48 - + 13 * + - 78 AS col0
----
1062

query I rowsort
SELECT 55 + + 96 * 70 AS col1
----
6775

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT 90 + + COUNT( * ) - + 18 DIV + 87 * - 2 DIV COUNT( * )
----
91

skipif mysql # not compatible
query I rowsort label-8731
SELECT 90 + + COUNT ( * ) - + 18 / + 87 * - 2 / COUNT ( * )
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8732
SELECT CAST( + CASE + 30 WHEN - CAST( NULL AS SIGNED ) THEN - + 26 + 55 - - 77 + - - 60 + + SUM( DISTINCT 70 ) ELSE NULL END AS DECIMAL ) * + 91 + + 89, + COUNT( * ) AS col1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-8732
SELECT CAST ( + CASE + 30 WHEN - CAST ( NULL AS INTEGER ) THEN - + 26 + 55 - - 77 + - - 60 + + SUM ( DISTINCT 70 ) ELSE NULL END AS REAL ) * + 91 + + 89, + COUNT ( * ) AS col1
----
NULL
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT 47 * + + ( - 19 ) * 92 + 21 + + - COUNT( * )
----
-82136

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT 47 * + + ( - 19 ) * 92 + 21 + + - COUNT ( * )
----
-82136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8734
SELECT ALL - ( 89 ) * + CAST( NULL AS SIGNED ) + 59 + 42 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL - ( 89 ) * + CAST ( NULL AS INTEGER ) + 59 + 42 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8735
SELECT COUNT( * ) * 2 + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8735
SELECT COUNT ( * ) * 2 + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL 22 * - SUM( + - 29 ) + - 57
----
581

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL 22 * - SUM ( + - 29 ) + - 57
----
581

onlyif mysql # DIV for integer division: 
query I rowsort label-8737
SELECT + 15 DIV + 19 + 46 - + 18 AS col1
----
28

skipif mysql # not compatible
query I rowsort label-8737
SELECT + 15 / + 19 + 46 - + 18 AS col1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT ALL CAST( NULL AS SIGNED ) * + 27 + - 83
----
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT ALL CAST ( NULL AS INTEGER ) * + 27 + - 83
----
NULL

query I rowsort
SELECT + 3 * - 45 col1
----
-135

query I rowsort
SELECT - 9 + - + 51 - - 38
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-8741
SELECT ALL + 3 * + - 86 + + + 4 + - 13 DIV + - COALESCE ( + + 3, + 99 ) AS col1, - 49 + 19 DIV 39
----
-250
-49

skipif mysql # not compatible
query II rowsort label-8741
SELECT ALL + 3 * + - 86 + + + 4 + - 13 / + - COALESCE ( + + 3, + 99 ) AS col1, - 49 + 19 / 39
----
-250
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8742
SELECT - MAX( ALL - 61 ) * - - MIN( ALL - 14 ) + 37 + + CAST( + MAX( DISTINCT + 35 ) AS SIGNED )
----
-782

skipif mysql # not compatible
query I rowsort label-8742
SELECT - MAX ( ALL - 61 ) * - - MIN ( ALL - 14 ) + 37 + + CAST ( + MAX ( DISTINCT + 35 ) AS INTEGER )
----
-782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8743
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) + - 99 + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) + - 99 + 84
----
NULL

query I rowsort
SELECT - 57 - 66 AS col1
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT MAX( + + NULLIF ( - 21, + - 45 * + + 93 ) ) col1
----
-21

skipif mysql # not compatible
query I rowsort label-8745
SELECT MAX ( + + NULLIF ( - 21, + - 45 * + + 93 ) ) col1
----
-21

query I rowsort
SELECT - 64 * 46 - - 99 AS col1
----
-2845

query I rowsort
SELECT + + 26 * + 76 + + NULLIF ( + 77, - 4 + + 68 ) AS col2
----
2053

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT - - NULLIF ( + + 34, COUNT( * ) ) * - COUNT( ALL - 10 ) AS col2
----
-34

skipif mysql # not compatible
query I rowsort label-8748
SELECT - - NULLIF ( + + 34, COUNT ( * ) ) * - COUNT ( ALL - 10 ) AS col2
----
-34

query I rowsort
SELECT ALL + 45 - + 58 * + 79
----
-4537

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT - - COALESCE ( + + MIN( DISTINCT - 15 ), - - ( 63 ) ) AS col1
----
-15

skipif mysql # not compatible
query I rowsort label-8750
SELECT - - COALESCE ( + + MIN ( DISTINCT - 15 ), - - ( 63 ) ) AS col1
----
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-8751
SELECT ALL SUM( DISTINCT + 8 ) AS col2, - 9
----
8
-9

skipif mysql # not compatible
query II rowsort label-8751
SELECT ALL SUM ( DISTINCT + 8 ) AS col2, - 9
----
8
-9

query I rowsort
SELECT ALL 46 * - + 52
----
-2392

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL NULLIF ( - COUNT( * ), + + 42 )
----
-1

skipif mysql # not compatible
query I rowsort label-8753
SELECT ALL NULLIF ( - COUNT ( * ), + + 42 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT - COALESCE ( - COUNT( - - 76 ), + 72 ) - - COALESCE ( + 19, - 29 + 8 ) * - 33
----
-626

skipif mysql # not compatible
query I rowsort label-8754
SELECT - COALESCE ( - COUNT ( - - 76 ), + 72 ) - - COALESCE ( + 19, - 29 + 8 ) * - 33
----
-626

query I rowsort
SELECT DISTINCT - + 6 * - 21 * - 34 + - - 57 * 12
----
-3600

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT - 99 DIV - - 98 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8756
SELECT - 99 / - - 98 AS col0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8757
SELECT + CAST( 12 AS SIGNED ) + + CAST( + 94 AS SIGNED ) + MAX( DISTINCT + 55 )
----
161

skipif mysql # not compatible
query I rowsort label-8757
SELECT + CAST ( 12 AS INTEGER ) + + CAST ( + 94 AS INTEGER ) + MAX ( DISTINCT + 55 )
----
161

onlyif mysql # DIV for integer division: 
query I rowsort label-8758
SELECT - 69 DIV 76 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-8758
SELECT - 69 / 76 AS col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT + 75 + + - ( + - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8759
SELECT + 75 + + - ( + - CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT - SUM( + 25 )
----
-25

skipif mysql # not compatible
query I rowsort label-8760
SELECT - SUM ( + 25 )
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8761
SELECT DISTINCT CAST( - 53 AS SIGNED ) AS col1
----
-53

skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT CAST ( - 53 AS INTEGER ) AS col1
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8762
SELECT + COUNT( * ) DIV COUNT( * ) * + - 39 col0, + 66
----
-39
66

skipif mysql # not compatible
query II rowsort label-8762
SELECT + COUNT ( * ) / COUNT ( * ) * + - 39 col0, + 66
----
-39
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT MAX( ALL + 11 ) * - - 93 AS col2
----
1023

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT MAX ( ALL + 11 ) * - - 93 AS col2
----
1023

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - 27 - + - MIN( ALL 23 ) * - 34 - - 64
----
-745

skipif mysql # not compatible
query I rowsort label-8764
SELECT - 27 - + - MIN ( ALL 23 ) * - 34 - - 64
----
-745

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8765
SELECT - ( + CAST( 47 AS SIGNED ) ) col1
----
-47

skipif mysql # not compatible
query I rowsort label-8765
SELECT - ( + CAST ( 47 AS INTEGER ) ) col1
----
-47

query I rowsort
SELECT ALL 97 + - 75 AS col0
----
22

query I rowsort
SELECT + NULLIF ( - 29, + 31 ) + 27 + - - COALESCE ( - 20, 61 * - 5, 39 )
----
-22

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8768
SELECT + CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8768
SELECT + CAST ( + + CAST ( NULL AS INTEGER ) AS REAL )
----
NULL

query I rowsort
SELECT + 79 + 46 + - 92 * - 43 AS col0
----
4081

query I rowsort
SELECT + 85 * 66 * 97 AS col2
----
544170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT ALL + 92 DIV + + 17 + MIN( - 75 ) - + + CASE + CASE - 81 WHEN 85 THEN + ( 1 ) WHEN - - 33 THEN NULL WHEN COUNT( * ) THEN + ( - COUNT( * ) ) * - 87 + 12 * ( 31 * + 1 ) END WHEN 37 THEN 36 + ( - 34 + - 25 * 37 ) * + 20 WHEN 46 * - 79 THEN 62 ELSE + 42 END - - 52 * + 99 AS col1
----
5036

skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL + 92 / + + 17 + MIN ( - 75 ) - + + CASE + CASE - 81 WHEN 85 THEN + ( 1 ) WHEN - - 33 THEN NULL WHEN COUNT ( * ) THEN + ( - COUNT ( * ) ) * - 87 + 12 * ( 31 * + 1 ) END WHEN 37 THEN 36 + ( - 34 + - 25 * 37 ) * + 20 WHEN 46 * - 79 THEN 62 ELSE + 42 END - - 52 * + 99 AS col1
----
5036

query I rowsort
SELECT + ( - 81 ) AS col2
----
-81

query I rowsort
SELECT + ( + - 69 )
----
-69

query I rowsort
SELECT + ( + 33 ) AS col2
----
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8775
SELECT 70 DIV - + 18 + 72 - + + COUNT( * ) - - 37 AS col0, 58 * + - 10
----
105
-580

skipif mysql # not compatible
query II rowsort label-8775
SELECT 70 / - + 18 + 72 - + + COUNT ( * ) - - 37 AS col0, 58 * + - 10
----
105
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + COUNT( 74 ) + 81 col1
----
82

skipif mysql # not compatible
query I rowsort label-8776
SELECT + COUNT ( 74 ) + 81 col1
----
82

query I rowsort
SELECT DISTINCT + - 49
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT + + SUM( DISTINCT 45 ) AS col1
----
45

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT + + SUM ( DISTINCT 45 ) AS col1
----
45

query I rowsort
SELECT 10 * NULLIF ( + 75, + 60 + + 86 ) + - - 69 * 77 + 39 - + 17 AS col1
----
6085

query I rowsort
SELECT + + 35 + + + 95 AS col1
----
130

onlyif mysql # aggregate syntax: 
query II rowsort label-8781
SELECT - - 14 * + 13 * + 67 + - MAX( ALL + ( + 82 ) ) + + + 90 * + - 87 * + - ( 99 ) - + 9 AS col2, 29 * + 88 AS col1
----
787273
2552

skipif mysql # not compatible
query II rowsort label-8781
SELECT - - 14 * + 13 * + 67 + - MAX ( ALL + ( + 82 ) ) + + + 90 * + - 87 * + - ( 99 ) - + 9 AS col2, 29 * + 88 AS col1
----
787273
2552

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT 55 * 51 - 31 - + ( - ( MIN( + 23 ) ) ) + + 8 * - - 41 AS col0
----
3125

skipif mysql # not compatible
query I rowsort label-8782
SELECT 55 * 51 - 31 - + ( - ( MIN ( + 23 ) ) ) + + 8 * - - 41 AS col0
----
3125

onlyif mysql # DIV for integer division: 
query I rowsort label-8783
SELECT ALL - + COALESCE ( + ( - 73 ), - - 42 - + + 9 + 11 DIV - 32, + 59 ) * - - 17
----
1241

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL - + COALESCE ( + ( - 73 ), - - 42 - + + 9 + 11 / - 32, + 59 ) * - - 17
----
1241

query I rowsort
SELECT + 64 * 25 * + 36 AS col1
----
57600

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT - ( - + 81 ) * + 50 DIV - 1 + 30
----
-4020

skipif mysql # not compatible
query I rowsort label-8785
SELECT - ( - + 81 ) * + 50 / - 1 + 30
----
-4020

query I rowsort
SELECT - + 78 * - - 60
----
-4680

query I rowsort
SELECT - 5 + + 87
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL MAX( DISTINCT 81 )
----
81

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL MAX ( DISTINCT 81 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8789
SELECT DISTINCT ( + SUM( 5 ) )
----
5

skipif mysql # not compatible
query I rowsort label-8789
SELECT DISTINCT ( + SUM ( 5 ) )
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8790
SELECT CASE - + AVG ( DISTINCT - 19 ) WHEN - 79 THEN NULL WHEN + CASE 88 WHEN - 65 * 9 THEN + - COUNT( * ) - - - CAST( - ( 61 ) AS SIGNED ) + + - 79 + + 87 * + + 91 ELSE NULL END / + - 16 - 92 THEN 43 * - 40 + AVG ( 79 ) * 42 ELSE NULL END * 86 + + 47 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8790
SELECT CASE - + AVG ( DISTINCT - 19 ) WHEN - 79 THEN NULL WHEN + CASE 88 WHEN - 65 * 9 THEN + - COUNT ( * ) - - - CAST ( - ( 61 ) AS INTEGER ) + + - 79 + + 87 * + + 91 ELSE NULL END / + - 16 - 92 THEN 43 * - 40 + AVG ( 79 ) * 42 ELSE NULL END * 86 + + 47 AS col2
----
NULL

query I rowsort
SELECT - 99 * 87
----
-8613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL CAST( - - 80 AS SIGNED ) col2
----
80

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL CAST ( - - 80 AS INTEGER ) col2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT DISTINCT 71 * - 16 + - ( NULLIF ( COALESCE ( - 60, - + COUNT( * ) ), + - COUNT( * ) ) ) col1
----
-1076

skipif mysql # not compatible
query I rowsort label-8793
SELECT DISTINCT 71 * - 16 + - ( NULLIF ( COALESCE ( - 60, - + COUNT ( * ) ), + - COUNT ( * ) ) ) col1
----
-1076

query II rowsort
SELECT - 32 AS col0, 65 AS col1
----
-32
65

onlyif mysql # DIV for integer division: 
query I rowsort label-8795
SELECT ALL - 72 + - 92 * - 99 * - 2 + - 84 DIV 97 + 10
----
-18278

skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - 72 + - 92 * - 99 * - 2 + - 84 / 97 + 10
----
-18278

query I rowsort
SELECT - 63 + + 20 AS col0
----
-43

query I rowsort
SELECT DISTINCT - 0 + - 29 + - 29 * 99 + 35
----
-2865

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT MAX( DISTINCT + + 31 ) + 24 * - 50 * 8
----
-9569

skipif mysql # not compatible
query I rowsort label-8798
SELECT MAX ( DISTINCT + + 31 ) + 24 * - 50 * 8
----
-9569

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT 93 * - COUNT( * ) AS col0
----
-93

skipif mysql # not compatible
query I rowsort label-8799
SELECT 93 * - COUNT ( * ) AS col0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-8800
SELECT ALL 42 AS col1, 53 DIV + COALESCE ( + + 89, - ( 13 ) * 33 + 4, + + COUNT( * ), - NULLIF ( - 37, + COALESCE ( CAST( NULL AS DECIMAL ), 16 * + 91 ) ) * - 46 * - 74 + - 30 ) AS col0
----
42
0

skipif mysql # not compatible
query II rowsort label-8800
SELECT ALL 42 AS col1, 53 / + COALESCE ( + + 89, - ( 13 ) * 33 + 4, + + COUNT ( * ), - NULLIF ( - 37, + COALESCE ( CAST ( NULL AS REAL ), 16 * + 91 ) ) * - 46 * - 74 + - 30 ) AS col0
----
42
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8801
SELECT ALL - 73 + - 66 AS col1, 35 * - + CAST( 59 AS SIGNED ) + + ( + MIN( 73 ) ) AS col0
----
-139
-1992

skipif mysql # not compatible
query II rowsort label-8801
SELECT ALL - 73 + - 66 AS col1, 35 * - + CAST ( 59 AS INTEGER ) + + ( + MIN ( 73 ) ) AS col0
----
-139
-1992

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8802
SELECT - 97 col1, COUNT( * ) DIV + - 52 * + + 84
----
-97
0

skipif mysql # not compatible
query II rowsort label-8802
SELECT - 97 col1, COUNT ( * ) / + - 52 * + + 84
----
-97
0

query I rowsort
SELECT 80 + 2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT COUNT( * ) + - 95 + + 99 * 86
----
8420

skipif mysql # not compatible
query I rowsort label-8804
SELECT COUNT ( * ) + - 95 + + 99 * 86
----
8420

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL MAX( + 68 ) + + - 55 * - + ( 84 )
----
4688

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL MAX ( + 68 ) + + - 55 * - + ( 84 )
----
4688

query II rowsort
SELECT 41, - 11 AS col1
----
41
-11

query I rowsort
SELECT DISTINCT + 55 - + - 97
----
152

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT COUNT( * ) * 25 AS col1
----
25

skipif mysql # not compatible
query I rowsort label-8808
SELECT COUNT ( * ) * 25 AS col1
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8809
SELECT ALL + 37 DIV + - 44 * 1
----
0

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL + 37 / + - 44 * 1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8810
SELECT 25 * - - 31 * + CAST( NULL AS DECIMAL ) + - ( 45 ) / 58 / - 56 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT 25 * - - 31 * + CAST ( NULL AS REAL ) + - ( 45 ) / 58 / - 56 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8811
SELECT ALL - 14 * - 87 AS col2, MIN( ALL + 83 ) + + - 23
----
1218
60

skipif mysql # not compatible
query II rowsort label-8811
SELECT ALL - 14 * - 87 AS col2, MIN ( ALL + 83 ) + + - 23
----
1218
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8812
SELECT - + COUNT( * ) DIV 84 + - + 15 AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-8812
SELECT - + COUNT ( * ) / 84 + - + 15 AS col0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT + ( - + 55 ) DIV + 56 + 72 AS col2
----
72

skipif mysql # not compatible
query I rowsort label-8813
SELECT + ( - + 55 ) / + 56 + 72 AS col2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT ( - CASE CASE + 91 WHEN - NULLIF ( - 95, - MIN( DISTINCT 41 ) + + 40 ) THEN NULL ELSE - - 50 END WHEN - 19 - - - 75 THEN + 44 ELSE NULL END ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT ( - CASE CASE + 91 WHEN - NULLIF ( - 95, - MIN ( DISTINCT 41 ) + + 40 ) THEN NULL ELSE - - 50 END WHEN - 19 - - - 75 THEN + 44 ELSE NULL END ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8815
SELECT + - 15, COUNT( * ) * - 78 AS col2
----
-15
-78

skipif mysql # not compatible
query II rowsort label-8815
SELECT + - 15, COUNT ( * ) * - 78 AS col2
----
-15
-78

query I rowsort
SELECT - 95 + + 30 * - 93 AS col2
----
-2885

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT ALL 79 - CAST( NULL AS SIGNED ) * + 85 - + COALESCE ( + CAST( NULL AS SIGNED ), 77 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL 79 - CAST ( NULL AS INTEGER ) * + 85 - + COALESCE ( + CAST ( NULL AS INTEGER ), 77 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT DISTINCT - + SUM( + 14 ) AS col0
----
-14

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT - + SUM ( + 14 ) AS col0
----
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-8819
SELECT DISTINCT - + COUNT( * ) AS col0, - 15 * ( - - 16 ) * + + 92 * 86 - + 17 * SUM( DISTINCT - NULLIF ( + NULLIF ( - + 87, 31 ), - 17 + + 80 * 92 ) ) AS col0
----
-1
-1900359

skipif mysql # not compatible
query II rowsort label-8819
SELECT DISTINCT - + COUNT ( * ) AS col0, - 15 * ( - - 16 ) * + + 92 * 86 - + 17 * SUM ( DISTINCT - NULLIF ( + NULLIF ( - + 87, 31 ), - 17 + + 80 * 92 ) ) AS col0
----
-1
-1900359

query I rowsort
SELECT DISTINCT - ( - 79 )
----
79

query II rowsort
SELECT 55, ( + + ( + COALESCE ( - ( - ( + 60 ) ), + 1 ) ) ) * 43 - + 68 col0
----
55
2512

query II rowsort
SELECT DISTINCT - 43 AS col0, + NULLIF ( + 85, - + 14 ) AS col1
----
-43
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8823
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8823
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) col2
----
NULL

query I rowsort
SELECT ALL + - 80 * - 92 AS col2
----
7360

query I rowsort
SELECT 61 * - 34
----
-2074

query I rowsort
SELECT DISTINCT 68 + - - NULLIF ( - 72, 30 ) col1
----
-4

query II rowsort
SELECT ALL - 20 AS col1, - 47 * + 11 AS col0
----
-20
-517

query I rowsort
SELECT ALL 95 * + 4
----
380

onlyif mysql # DIV for integer division: 
query I rowsort label-8829
SELECT 40 DIV + - 22 AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-8829
SELECT 40 / + - 22 AS col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT COUNT( * ) * - 24 * + + 46 + - 77 + + ( + - 26 ) + - 31
----
-1238

skipif mysql # not compatible
query I rowsort label-8830
SELECT COUNT ( * ) * - 24 * + + 46 + - 77 + + ( + - 26 ) + - 31
----
-1238

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT - COUNT( * ) + + + 2 * + - 85 AS col1
----
-171

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT - COUNT ( * ) + + + 2 * + - 85 AS col1
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8832
SELECT ALL + 40 + + 48 - - 16 + + - COUNT( ( + 50 ) ) * 98 + - CAST( + - 25 AS SIGNED ) DIV - + 99 AS col1
----
6

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + 40 + + 48 - - 16 + + - COUNT ( ( + 50 ) ) * 98 + - CAST ( + - 25 AS INTEGER ) / - + 99 AS col1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8833
SELECT 83 - + - 74, 56 * + + 1 - + MIN( DISTINCT - + 71 ) + - 79 DIV - 50 col2
----
157
128

skipif mysql # not compatible
query II rowsort label-8833
SELECT 83 - + - 74, 56 * + + 1 - + MIN ( DISTINCT - + 71 ) + - 79 / - 50 col2
----
157
128

query II rowsort
SELECT ALL 28 * 13, - 90 AS col1
----
364
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8835
SELECT 93 - COUNT( * ) DIV - + 3 * - 15 + + 20 AS col1
----
113

skipif mysql # not compatible
query I rowsort label-8835
SELECT 93 - COUNT ( * ) / - + 3 * - 15 + + 20 AS col1
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8836
SELECT ALL + 14 DIV - - COUNT( * ), - 93 * 64 AS col0
----
14
-5952

skipif mysql # not compatible
query II rowsort label-8836
SELECT ALL + 14 / - - COUNT ( * ), - 93 * 64 AS col0
----
14
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - SUM( ALL + 52 ) + 99
----
47

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - SUM ( ALL + 52 ) + 99
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT COUNT( * ) + + - 9 * - COUNT( DISTINCT + 81 ) * - 29 * - 87 AS col0
----
22708

skipif mysql # not compatible
query I rowsort label-8838
SELECT COUNT ( * ) + + - 9 * - COUNT ( DISTINCT + 81 ) * - 29 * - 87 AS col0
----
22708

query I rowsort
SELECT DISTINCT + 24 - 39 + + 43
----
28

onlyif mysql # aggregate syntax: 
query II rowsort label-8840
SELECT ALL + 51 * - COUNT( * ) AS col2, COUNT( * )
----
-51
1

skipif mysql # not compatible
query II rowsort label-8840
SELECT ALL + 51 * - COUNT ( * ) AS col2, COUNT ( * )
----
-51
1

query I rowsort
SELECT DISTINCT 14 col1
----
14

query I rowsort
SELECT 37 + 89 * 52 + 24
----
4689

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT + COUNT( * ) * COUNT( * ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8843
SELECT + COUNT ( * ) * COUNT ( * ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT - ( + 32 ) * + - 71 * 11 * + - 13 + - + COALESCE ( - COUNT( * ), + 13, - 15 + 67 ) + + 17 - + COALESCE ( + COUNT( * ), - 18, - 70 ) * - 0 AS col2
----
-324878

skipif mysql # not compatible
query I rowsort label-8844
SELECT - ( + 32 ) * + - 71 * 11 * + - 13 + - + COALESCE ( - COUNT ( * ), + 13, - 15 + 67 ) + + 17 - + COALESCE ( + COUNT ( * ), - 18, - 70 ) * - 0 AS col2
----
-324878

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT - CAST( NULL AS SIGNED ) + - 83 - 16 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT - CAST ( NULL AS INTEGER ) + - 83 - 16 AS col2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT - 32 * + - CAST( COUNT( * ) AS SIGNED ) - - + MIN( + 72 ) + - - COUNT( - 17 ) * + SUM( ALL + 73 ) AS col1
----
177

skipif mysql # not compatible
query I rowsort label-8846
SELECT - 32 * + - CAST ( COUNT ( * ) AS INTEGER ) - - + MIN ( + 72 ) + - - COUNT ( - 17 ) * + SUM ( ALL + 73 ) AS col1
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-8847
SELECT ALL + 89 DIV + + CASE - 64 WHEN - 97 THEN NULL WHEN 20 THEN NULL ELSE - 66 END
----
-1

skipif mysql # not compatible
query I rowsort label-8847
SELECT ALL + 89 / + + CASE - 64 WHEN - 97 THEN NULL WHEN 20 THEN NULL ELSE - 66 END
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT ALL COUNT( * ) * - - 26 + - COUNT( 82 )
----
25

skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL COUNT ( * ) * - - 26 + - COUNT ( 82 )
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8849
SELECT 30 DIV + + 12 * - + COUNT( * )
----
-2

skipif mysql # not compatible
query I rowsort label-8849
SELECT 30 / + + 12 * - + COUNT ( * )
----
-2

query I rowsort
SELECT + 70 * + 8 * - 80 + - 91 AS col2
----
-44891

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT ALL + ( - 25 ) * - - 36 + - 37 * + COUNT( * )
----
-937

skipif mysql # not compatible
query I rowsort label-8851
SELECT ALL + ( - 25 ) * - - 36 + - 37 * + COUNT ( * )
----
-937

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT - 53 * 32 - 10 + + COUNT( * ) AS col1
----
-1705

skipif mysql # not compatible
query I rowsort label-8852
SELECT - 53 * 32 - 10 + + COUNT ( * ) AS col1
----
-1705

query I rowsort
SELECT 78 + - + ( - 55 )
----
133

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT ALL - SUM( + 10 ) AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL - SUM ( + 10 ) AS col1
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT - 53 + - SUM( + + NULLIF ( - 56, - 41 ) ) * COALESCE ( + - 61, - + 57 ) * + 87 + ( - + 95 ) * + 21 * - SUM( - 12 ) * NULLIF ( + 26, + 18 + + 98 ) + 66 * 41
----
-916979

skipif mysql # not compatible
query I rowsort label-8855
SELECT - 53 + - SUM ( + + NULLIF ( - 56, - 41 ) ) * COALESCE ( + - 61, - + 57 ) * + 87 + ( - + 95 ) * + 21 * - SUM ( - 12 ) * NULLIF ( + 26, + 18 + + 98 ) + 66 * 41
----
-916979

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT 68 - + + 6 + - SUM( - 13 )
----
75

skipif mysql # not compatible
query I rowsort label-8856
SELECT 68 - + + 6 + - SUM ( - 13 )
----
75

query I rowsort
SELECT DISTINCT - 27 col2
----
-27

query I rowsort
SELECT ALL + 56 + - + 1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT ALL COUNT( * ) + - 68 - + - 32 + + - 22 - + 31 * - ( - + 3 )
----
-150

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL COUNT ( * ) + - 68 - + - 32 + + - 22 - + 31 * - ( - + 3 )
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT + 81 * 75 * + ( - COUNT( * ) ) + + - NULLIF ( + 23, 85 + + + 8 ) AS col0
----
-6098

skipif mysql # not compatible
query I rowsort label-8860
SELECT + 81 * 75 * + ( - COUNT ( * ) ) + + - NULLIF ( + 23, 85 + + + 8 ) AS col0
----
-6098

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL + MAX( - + 66 )
----
-66

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + MAX ( - + 66 )
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT + COUNT( + + 84 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-8862
SELECT + COUNT ( + + 84 ) AS col1
----
1

query I rowsort
SELECT DISTINCT 46 + - 38 + - 19 col0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-8864
SELECT + 75 + ( - 76 ) DIV + - 73 col1
----
76

skipif mysql # not compatible
query I rowsort label-8864
SELECT + 75 + ( - 76 ) / + - 73 col1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + ( - COUNT( * ) ) * - 43 * 66
----
2838

skipif mysql # not compatible
query I rowsort label-8865
SELECT + ( - COUNT ( * ) ) * - 43 * 66
----
2838

query I rowsort
SELECT + ( + 82 ) + - + 71
----
11

query I rowsort
SELECT - 45 + + 88 AS col0
----
43

query I rowsort
SELECT ALL + 55 - - 91
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + 50 + - + COUNT( * )
----
49

skipif mysql # not compatible
query I rowsort label-8869
SELECT + 50 + - + COUNT ( * )
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-8870
SELECT + 9 DIV + 74 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT + 9 / + 74 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT DISTINCT SUM( ALL 29 ) * - ( + - 54 ) AS col0
----
1566

skipif mysql # not compatible
query I rowsort label-8871
SELECT DISTINCT SUM ( ALL 29 ) * - ( + - 54 ) AS col0
----
1566

query I rowsort
SELECT ALL CASE WHEN NOT + ( - + 94 ) >= NULL THEN + 4 * - - 71 END
----
NULL

query I rowsort
SELECT - 3 + - + 84 AS col1
----
-87

query I rowsort
SELECT + 14 + - + 60 - - ( - - 63 )
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT - 79 DIV ( - 48 ) * - ( + 47 )
----
-47

skipif mysql # not compatible
query I rowsort label-8875
SELECT - 79 / ( - 48 ) * - ( + 47 )
----
-47

query I rowsort
SELECT - 68 * - - ( 3 ) AS col0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT ALL - MAX( ALL + + 86 )
----
-86

skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - MAX ( ALL + + 86 )
----
-86

query I rowsort
SELECT - + ( 90 ) AS col0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT - - COUNT( * ) + + - COUNT( * ) * - - ( 11 ) AS col2
----
-10

skipif mysql # not compatible
query I rowsort label-8879
SELECT - - COUNT ( * ) + + - COUNT ( * ) * - - ( 11 ) AS col2
----
-10

query II rowsort
SELECT DISTINCT - 16 AS col0, 14 col2
----
-16
14

query I rowsort
SELECT ALL - ( 42 ) AS col0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT - ( + 73 ) + CAST( 74 AS SIGNED )
----
1

skipif mysql # not compatible
query I rowsort label-8882
SELECT - ( + 73 ) + CAST ( 74 AS INTEGER )
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8883
SELECT DISTINCT + 19, + 89 * + 63 - COUNT( * ) AS col2
----
19
5606

skipif mysql # not compatible
query II rowsort label-8883
SELECT DISTINCT + 19, + 89 * + 63 - COUNT ( * ) AS col2
----
19
5606

query I rowsort
SELECT - 44 + - 10
----
-54

onlyif mysql # aggregate syntax: 
query II rowsort label-8885
SELECT DISTINCT + - ( - + 48 ) * - 77 AS col2, SUM( ALL - 51 )
----
-3696
-51

skipif mysql # not compatible
query II rowsort label-8885
SELECT DISTINCT + - ( - + 48 ) * - 77 AS col2, SUM ( ALL - 51 )
----
-3696
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT + 1 DIV + 91 col0
----
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT + 1 / + 91 col0
----
0

query I rowsort
SELECT - 71 * 36
----
-2556

query II rowsort
SELECT DISTINCT + + 97 * + 67 * - 0 * 56, 55 col0
----
0
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT - - CAST( NULL AS SIGNED ) + + + 71 + - 40 * - 83 + 30 - - - 80 / + - 47 * + - CAST( 72 AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT - - CAST ( NULL AS INTEGER ) + + + 71 + - 40 * - 83 + 30 - - - 80 / + - 47 * + - CAST ( 72 AS INTEGER ) AS col2
----
NULL

query I rowsort
SELECT ALL + - 68 AS col0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT - + MAX( DISTINCT - 60 ) * - 92 col0
----
-5520

skipif mysql # not compatible
query I rowsort label-8891
SELECT - + MAX ( DISTINCT - 60 ) * - 92 col0
----
-5520

onlyif mysql # aggregate syntax: 
query II rowsort label-8892
SELECT - COUNT( * ), + 93 AS col2
----
-1
93

skipif mysql # not compatible
query II rowsort label-8892
SELECT - COUNT ( * ), + 93 AS col2
----
-1
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8893
SELECT ALL CAST( NULL AS SIGNED ) * NULLIF ( COUNT( * ), 79 * - 30 ) + 71, 54 AS col2
----
NULL
54

skipif mysql # not compatible
query II rowsort label-8893
SELECT ALL CAST ( NULL AS INTEGER ) * NULLIF ( COUNT ( * ), 79 * - 30 ) + 71, 54 AS col2
----
NULL
54

query II rowsort
SELECT - 37 AS col0, 36
----
-37
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL 34 * - COUNT( * ) AS col1
----
-34

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 34 * - COUNT ( * ) AS col1
----
-34

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8896
SELECT CASE CASE - - 1 WHEN - - ( - - 38 ) * - 6 * - + CASE + 23 WHEN + + AVG ( DISTINCT + 9 ) * - + 88 THEN - + 95 WHEN + COUNT( * ) * CAST( NULL AS DECIMAL ) + + NULLIF ( 54, - + MAX( + - 21 ) ) * 15 * 87 THEN + COUNT( * ) ELSE NULL END * ( ( - 28 ) ) + 50 THEN 83 WHEN - 51 THEN - 9 ELSE NULL END WHEN + 8 THEN NULL WHEN 66 * 3 THEN NULL WHEN + COUNT( * ) THEN 78 * + 24 ELSE 81 END
----
81

skipif mysql # not compatible
query I rowsort label-8896
SELECT CASE CASE - - 1 WHEN - - ( - - 38 ) * - 6 * - + CASE + 23 WHEN + + AVG ( DISTINCT + 9 ) * - + 88 THEN - + 95 WHEN + COUNT ( * ) * CAST ( NULL AS REAL ) + + NULLIF ( 54, - + MAX ( + - 21 ) ) * 15 * 87 THEN + COUNT ( * ) ELSE NULL END * ( ( - 28 ) ) + 50 THEN 83 WHEN - 51 THEN - 9 ELSE NULL END WHEN + 8 THEN NULL WHEN 66 * 3 THEN NULL WHEN + COUNT ( * ) THEN 78 * + 24 ELSE 81 END
----
81

query I rowsort
SELECT - 87 - 9 * - 51
----
372

query I rowsort
SELECT + 93 * + 2 col2
----
186

query I rowsort
SELECT NULLIF ( 87, + 4 + - 43 * - - 47 ) col1
----
87

query I rowsort
SELECT + 69 * + + 37
----
2553

query I rowsort
SELECT + 86 + 27
----
113

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8902
SELECT ALL - 83 * COUNT( * ) - - - ( + - 66 ) - + 99 * 30 DIV - COALESCE ( + - 20, 42, + 10 - - 19 )
----
-165

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL - 83 * COUNT ( * ) - - - ( + - 66 ) - + 99 * 30 / - COALESCE ( + - 20, 42, + 10 - - 19 )
----
-165

query I rowsort
SELECT + 33 * - + 68
----
-2244

query I rowsort
SELECT ALL + 51 * 45 * - 33
----
-75735

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8905
SELECT + 9 - - 97 AS col0, CAST( + 12 AS SIGNED ) AS col2
----
106
12

skipif mysql # not compatible
query II rowsort label-8905
SELECT + 9 - - 97 AS col0, CAST ( + 12 AS INTEGER ) AS col2
----
106
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT ALL COUNT( 28 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-8906
SELECT ALL COUNT ( 28 ) AS col0
----
1

query I rowsort
SELECT + 85 - + 50 AS col2
----
35

query I rowsort
SELECT ALL 91 - - 50
----
141

query I rowsort
SELECT - 97 * - - 98 col1
----
-9506

query I rowsort
SELECT + 3 * + + COALESCE ( + + 59, 99, - 62 ) col0
----
177

query I rowsort
SELECT - NULLIF ( - + CASE CASE + 77 WHEN - + 85 THEN + 49 END WHEN + 68 * - 71 * - - 31 + - 55 THEN - 58 END, + 43 ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8912
SELECT - CAST( + 22 AS SIGNED ) col2
----
-22

skipif mysql # not compatible
query I rowsort label-8912
SELECT - CAST ( + 22 AS INTEGER ) col2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8913
SELECT - CAST( - - 46 AS SIGNED )
----
-46

skipif mysql # not compatible
query I rowsort label-8913
SELECT - CAST ( - - 46 AS INTEGER )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL COUNT( * ) * - - 61 AS col2
----
61

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL COUNT ( * ) * - - 61 AS col2
----
61

query I rowsort
SELECT ALL - 33 * + 46 + 23
----
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-8916
SELECT ALL 89 * ( + 52 ) * + COUNT( * ) + MIN( DISTINCT - NULLIF ( + 56, + COALESCE ( - + 30, - - 38 ) * - 73 ) ) col2
----
4572

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL 89 * ( + 52 ) * + COUNT ( * ) + MIN ( DISTINCT - NULLIF ( + 56, + COALESCE ( - + 30, - - 38 ) * - 73 ) ) col2
----
4572

query I rowsort
SELECT DISTINCT + 63 + + + 32 AS col2
----
95

query I rowsort
SELECT DISTINCT - 83 + - + 25 + - 54
----
-162

query I rowsort
SELECT - - 39 col0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8920
SELECT - CAST( + COALESCE ( + 82, + COUNT( * ) ) AS SIGNED ) DIV - + 84
----
0

skipif mysql # not compatible
query I rowsort label-8920
SELECT - CAST ( + COALESCE ( + 82, + COUNT ( * ) ) AS INTEGER ) / - + 84
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8921
SELECT - - 44 * + + COUNT( - 50 ) * - COUNT( * )
----
-44

skipif mysql # not compatible
query I rowsort label-8921
SELECT - - 44 * + + COUNT ( - 50 ) * - COUNT ( * )
----
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8922
SELECT ALL - 81 + SUM( - + 48 ) DIV + - 37
----
-80

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - 81 + SUM ( - + 48 ) / + - 37
----
-80

query I rowsort
SELECT - - ( ( + + 10 ) )
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT - SUM( ALL - 88 ) col2
----
88

skipif mysql # not compatible
query I rowsort label-8924
SELECT - SUM ( ALL - 88 ) col2
----
88

query I rowsort
SELECT 0 * - + 46 + + 83 AS col1
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + NULLIF ( + 59, - NULLIF ( - + ( - 76 ), COUNT( * ) ) ) AS col1
----
59

skipif mysql # not compatible
query I rowsort label-8926
SELECT + NULLIF ( + 59, - NULLIF ( - + ( - 76 ), COUNT ( * ) ) ) AS col1
----
59

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8927
SELECT ALL CASE + 76 WHEN - 86 * 72 THEN + 76 * - 97 / 70 + - - 3 * - 89 * + 21 WHEN - 84 THEN + 71 WHEN - ( - CAST( + + 50 AS DECIMAL ) ) * + 62 + - 71 THEN 47 END / - ( COUNT( * ) ) + + COALESCE ( - 56, - 38 ) + 96
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL CASE + 76 WHEN - 86 * 72 THEN + 76 * - 97 / 70 + - - 3 * - 89 * + 21 WHEN - 84 THEN + 71 WHEN - ( - CAST ( + + 50 AS REAL ) ) * + 62 + - 71 THEN 47 END / - ( COUNT ( * ) ) + + COALESCE ( - 56, - 38 ) + 96
----
NULL

query I rowsort
SELECT - 11 / 12 + - 52 - CASE + - NULLIF ( 48, - + 76 - 39 ) WHEN - 32 + 60 THEN - ( - 80 ) WHEN + + 60 * + 55 * + 60 + - 81 THEN NULL ELSE NULL END * + + 17 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8929
SELECT - 86 * + CAST( - COUNT( * ) AS SIGNED ) + + 54 * 41 * - COUNT( * ) DIV + + COUNT( * ) - - + 51 + - - COUNT( DISTINCT 44 )
----
-2076

skipif mysql # not compatible
query I rowsort label-8929
SELECT - 86 * + CAST ( - COUNT ( * ) AS INTEGER ) + + 54 * 41 * - COUNT ( * ) / + + COUNT ( * ) - - + 51 + - - COUNT ( DISTINCT 44 )
----
-2076

onlyif mysql # aggregate syntax: 
query II rowsort label-8930
SELECT DISTINCT - 98 * - - 53, COUNT( ALL + 5 ) AS col0
----
-5194
1

skipif mysql # not compatible
query II rowsort label-8930
SELECT DISTINCT - 98 * - - 53, COUNT ( ALL + 5 ) AS col0
----
-5194
1

query I rowsort
SELECT DISTINCT - 87 + + 19 AS col0
----
-68

query I rowsort
SELECT ALL - + 19 * - - 47
----
-893

query I rowsort
SELECT 18 * ( - 11 ) + - ( - 15 ) * + + 44 AS col2
----
462

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + CASE + 40 WHEN - 16 * 5 + 3 THEN NULL ELSE - + 10 * + - 32 END * ( + COUNT( * ) ) + 97 + + 86 * - COUNT( * )
----
331

skipif mysql # not compatible
query I rowsort label-8934
SELECT + CASE + 40 WHEN - 16 * 5 + 3 THEN NULL ELSE - + 10 * + - 32 END * ( + COUNT ( * ) ) + 97 + + 86 * - COUNT ( * )
----
331

query II rowsort
SELECT 32 AS col0, 86 * - + 49 - ( - 23 ) + 3 + + 72 * + 30 * + 85
----
32
179412

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8936
SELECT ALL - COALESCE ( + + 56, + 2, - ( + + 94 ) * - COALESCE ( 28, - 50 DIV 49, - 13 DIV + + ( + + 41 ) * - + 54 + + COUNT( * ) + - COUNT( * ) + - CASE 16 WHEN - 84 + - - 84 THEN + - 15 + + 16 ELSE NULL END * + 94 ) + - 68 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL - COALESCE ( + + 56, + 2, - ( + + 94 ) * - COALESCE ( 28, - 50 / 49, - 13 / + + ( + + 41 ) * - + 54 + + COUNT ( * ) + - COUNT ( * ) + - CASE 16 WHEN - 84 + - - 84 THEN + - 15 + + 16 ELSE NULL END * + 94 ) + - 68 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL - 27 * - + COUNT( * ) AS col1
----
27

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL - 27 * - + COUNT ( * ) AS col1
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8938
SELECT 83 + - COUNT( * ) + COUNT( * ) / - COUNT( * ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT 83 + - COUNT ( * ) + COUNT ( * ) / - COUNT ( * ) * - + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT 55 * - NULLIF ( - 94, + 32 ) - 99 col2
----
5071

query I rowsort
SELECT 89 * + + 19 AS col1
----
1691

query I rowsort
SELECT 92 + + + 94
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT COUNT( * ) + + 83 * - + 9 + + 91
----
-655

skipif mysql # not compatible
query I rowsort label-8942
SELECT COUNT ( * ) + + 83 * - + 9 + + 91
----
-655

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT DISTINCT - 37 * + - SUM( DISTINCT 32 ) * - - 55 + - - COUNT( * ) AS col1
----
65121

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - 37 * + - SUM ( DISTINCT 32 ) * - - 55 + - - COUNT ( * ) AS col1
----
65121

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL - COALESCE ( ( + 60 ), NULLIF ( 73, - SUM( - 47 ) ) + + + NULLIF ( - CASE 97 WHEN 63 THEN NULL ELSE - ( - NULLIF ( + - CASE - 43 WHEN - 58 THEN - - 29 * 30 * - 40 + - + 79 END, 80 ) ) END, - ( 39 ) ) ) AS col0
----
-60

skipif mysql # not compatible
query I rowsort label-8944
SELECT ALL - COALESCE ( ( + 60 ), NULLIF ( 73, - SUM ( - 47 ) ) + + + NULLIF ( - CASE 97 WHEN 63 THEN NULL ELSE - ( - NULLIF ( + - CASE - 43 WHEN - 58 THEN - - 29 * 30 * - 40 + - + 79 END, 80 ) ) END, - ( 39 ) ) ) AS col0
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8945
SELECT 8 DIV - 43
----
0

skipif mysql # not compatible
query I rowsort label-8945
SELECT 8 / - 43
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - 35 * 43 + COALESCE ( - 84, + + COUNT( * ) + - COUNT( * ) ) AS col0
----
-1589

skipif mysql # not compatible
query I rowsort label-8946
SELECT - 35 * 43 + COALESCE ( - 84, + + COUNT ( * ) + - COUNT ( * ) ) AS col0
----
-1589

query I rowsort
SELECT 27 + NULLIF ( - 11, - - 75 * 67 / 58 + 98 * 21 * 91 )
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT ALL - ( - + 17 ) DIV + 14 col2
----
1

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL - ( - + 17 ) / + 14 col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8949
SELECT 98 DIV + - 69 AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-8949
SELECT 98 / + - 69 AS col1
----
-1

query I rowsort
SELECT 43 * + - 41
----
-1763

onlyif mysql # DIV for integer division: 
query I rowsort label-8951
SELECT 14 + + + 79 DIV - ( + - 76 )
----
15

skipif mysql # not compatible
query I rowsort label-8951
SELECT 14 + + + 79 / - ( + - 76 )
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8952
SELECT 29 AS col0, + ( + - COUNT( * ) )
----
29
-1

skipif mysql # not compatible
query II rowsort label-8952
SELECT 29 AS col0, + ( + - COUNT ( * ) )
----
29
-1

query I rowsort
SELECT DISTINCT ( 4 ) + - 48 AS col0
----
-44

query I rowsort
SELECT ALL 38 * - 15
----
-570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8955
SELECT 33 * CAST( - 36 AS SIGNED ) * MAX( + 26 ) - NULLIF ( + 65, 40 + + + NULLIF ( - 66, 91 ) * 53 )
----
-30953

skipif mysql # not compatible
query I rowsort label-8955
SELECT 33 * CAST ( - 36 AS INTEGER ) * MAX ( + 26 ) - NULLIF ( + 65, 40 + + + NULLIF ( - 66, 91 ) * 53 )
----
-30953

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT ALL - COUNT( * ) + + 18
----
17

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL - COUNT ( * ) + + 18
----
17

query I rowsort
SELECT ALL - 45 + - + 35 + 12
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT DISTINCT + - COUNT( * ) + - - 47 + - - COUNT( * ) + - COUNT( 74 ) + 97 - 85 + - + COUNT( 53 ) AS col0
----
57

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT + - COUNT ( * ) + - - 47 + - - COUNT ( * ) + - COUNT ( 74 ) + 97 - 85 + - + COUNT ( 53 ) AS col0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL SUM( DISTINCT + 92 ) AS col2
----
92

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL SUM ( DISTINCT + 92 ) AS col2
----
92

query I rowsort
SELECT ( + - 0 ) + 13
----
13

query I rowsort
SELECT DISTINCT - ( - 78 ) + + 41 col2
----
119

query I rowsort
SELECT - + 7 col1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + 40 + + CASE + + 99 WHEN - + 61 THEN NULL WHEN + 8 THEN + 92 ELSE + + 1 END + + 14 * COALESCE ( 61, + NULLIF ( - + 38, + 90 * 62 + + 33 + - - 59 / - + 91 ) * - COUNT( * ), 40 * + 26 + 52 + 33 ) * + 2 * 22 AS col1
----
37617

skipif mysql # not compatible
query I rowsort label-8963
SELECT + 40 + + CASE + + 99 WHEN - + 61 THEN NULL WHEN + 8 THEN + 92 ELSE + + 1 END + + 14 * COALESCE ( 61, + NULLIF ( - + 38, + 90 * 62 + + 33 + - - 59 / - + 91 ) * - COUNT ( * ), 40 * + 26 + 52 + 33 ) * + 2 * 22 AS col1
----
37617

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8964
SELECT 81 + - 33 - + 35 + - 17 - + ( - 64 ) DIV - - 88 * - 17 * - COUNT( * )
----
-4

skipif mysql # not compatible
query I rowsort label-8964
SELECT 81 + - 33 - + 35 + - 17 - + ( - 64 ) / - - 88 * - 17 * - COUNT ( * )
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8965
SELECT + CAST( - + 74 AS SIGNED ) AS col0
----
-74

skipif mysql # not compatible
query I rowsort label-8965
SELECT + CAST ( - + 74 AS INTEGER ) AS col0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT 84 * - + MIN( ALL 8 ) + - CASE WHEN NOT NULL IS NOT NULL THEN 7 ELSE + + ( + 87 ) END * 61 col0
----
-1099

skipif mysql # not compatible
query I rowsort label-8966
SELECT 84 * - + MIN ( ALL 8 ) + - CASE WHEN NOT NULL IS NOT NULL THEN 7 ELSE + + ( + 87 ) END * 61 col0
----
-1099

query I rowsort
SELECT ALL 45 + + 51 AS col0
----
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8968
SELECT ALL 89 DIV - 49 + 73 + + + COUNT( * ) + - 62 + + - 11 DIV 29
----
11

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL 89 / - 49 + 73 + + + COUNT ( * ) + - 62 + + - 11 / 29
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT + ( COUNT( * ) ) * - MIN( ALL - 43 ) * 63
----
2709

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT + ( COUNT ( * ) ) * - MIN ( ALL - 43 ) * 63
----
2709

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ( ( - 19 ) ) + COUNT( * ) DIV + 78
----
-19

skipif mysql # not compatible
query I rowsort label-8970
SELECT ( ( - 19 ) ) + COUNT ( * ) / + 78
----
-19

query I rowsort
SELECT ALL - 58 - 86 col1
----
-144

query II rowsort
SELECT DISTINCT - 71 AS col2, 31
----
-71
31

query I rowsort
SELECT - 65 * - 39 - + 95
----
2440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT CAST( - 66 AS SIGNED ) col2
----
-66

skipif mysql # not compatible
query I rowsort label-8974
SELECT CAST ( - 66 AS INTEGER ) col2
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8975
SELECT + 69 AS col0, AVG ( DISTINCT - + 63 ) / - + 20 * ( + 68 ) + 15 * - 86 / - 48 / CAST( NULL AS SIGNED )
----
69
NULL

skipif mysql # not compatible
query II rowsort label-8975
SELECT + 69 AS col0, AVG ( DISTINCT - + 63 ) / - + 20 * ( + 68 ) + 15 * - 86 / - 48 / CAST ( NULL AS INTEGER )
----
69
NULL

query I rowsort
SELECT 18 + + NULLIF ( - 82, + - 95 ) AS col0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-8977
SELECT ALL - COUNT( * ) - - COUNT( * ) AS col2
----
0

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - COUNT ( * ) - - COUNT ( * ) AS col2
----
0

query I rowsort
SELECT ALL - CASE - + 10 WHEN + 45 THEN - + 65 + 98 - - ( - 64 ) * + + 26 ELSE NULL END col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT ALL - 96 * - COUNT( * )
----
96

skipif mysql # not compatible
query I rowsort label-8979
SELECT ALL - 96 * - COUNT ( * )
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8980
SELECT 24 + + 1 + + - COUNT( * )
----
24

skipif mysql # not compatible
query I rowsort label-8980
SELECT 24 + + 1 + + - COUNT ( * )
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8981
SELECT + 90, 92 - - COUNT( - 12 ) * + + 19 AS col2
----
90
111

skipif mysql # not compatible
query II rowsort label-8981
SELECT + 90, 92 - - COUNT ( - 12 ) * + + 19 AS col2
----
90
111

query I rowsort
SELECT 97 * 55 + - 51 + - - 92
----
5376

query II rowsort
SELECT 34, 23 AS col1
----
34
23

query I rowsort
SELECT 59 + 64 * 95
----
6139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8985
SELECT DISTINCT - 34 + + COALESCE ( + 47, - - 19 ) + COALESCE ( - 45, - - CAST( NULL AS SIGNED ) )
----
-32

skipif mysql # not compatible
query I rowsort label-8985
SELECT DISTINCT - 34 + + COALESCE ( + 47, - - 19 ) + COALESCE ( - 45, - - CAST ( NULL AS INTEGER ) )
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-8986
SELECT ALL - 89 + + - 4 DIV - 61
----
-89

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - 89 + + - 4 / - 61
----
-89

query I rowsort
SELECT DISTINCT + 34 + - 9 AS col1
----
25

query I rowsort
SELECT + 1 - + 43 AS col1
----
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8989
SELECT + COUNT( * ) DIV + - 49 + - 31
----
-31

skipif mysql # not compatible
query I rowsort label-8989
SELECT + COUNT ( * ) / + - 49 + - 31
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - 63 * MAX( DISTINCT + + 61 )
----
-3843

skipif mysql # not compatible
query I rowsort label-8990
SELECT - 63 * MAX ( DISTINCT + + 61 )
----
-3843

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8991
SELECT - MAX( - 49 ) DIV 14 AS col2
----
3

skipif mysql # not compatible
query I rowsort label-8991
SELECT - MAX ( - 49 ) / 14 AS col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8992
SELECT - CAST( NULL AS SIGNED ) / + - 33 + 32
----
NULL

skipif mysql # not compatible
query I rowsort label-8992
SELECT - CAST ( NULL AS INTEGER ) / + - 33 + 32
----
NULL

query I rowsort
SELECT DISTINCT + - 90 + + 33
----
-57

query I rowsort
SELECT + NULLIF ( - 12, 22 ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-8995
SELECT ALL 82 col0, SUM( DISTINCT - ( - 58 ) )
----
82
58

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL 82 col0, SUM ( DISTINCT - ( - 58 ) )
----
82
58

query I rowsort
SELECT DISTINCT - - 60 - - 61
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8997
SELECT - COALESCE ( + CAST( + - 75 AS SIGNED ), - 92 ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-8997
SELECT - COALESCE ( + CAST ( + - 75 AS INTEGER ), - 92 ) AS col2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8998
SELECT ALL 44 col0, 22 + + + COUNT( + 45 )
----
44
23

skipif mysql # not compatible
query II rowsort label-8998
SELECT ALL 44 col0, 22 + + + COUNT ( + 45 )
----
44
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8999
SELECT - CAST( - 66 AS SIGNED )
----
66

skipif mysql # not compatible
query I rowsort label-8999
SELECT - CAST ( - 66 AS INTEGER )
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT ALL - + CAST( NULL AS SIGNED ) - - - 96 / + 94 + + SUM( + 3 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT ALL - + CAST ( NULL AS INTEGER ) - - - 96 / + 94 + + SUM ( + 3 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL - ( + + COUNT( ALL + ( + + 10 ) ) ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL - ( + + COUNT ( ALL + ( + + 10 ) ) ) AS col2
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT DISTINCT - 40 col1, + MIN( + + 46 )
----
-40
46

skipif mysql # not compatible
query II rowsort label-9002
SELECT DISTINCT - 40 col1, + MIN ( + + 46 )
----
-40
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - 79 + COUNT( * ) AS col1
----
-78

skipif mysql # not compatible
query I rowsort label-9003
SELECT - 79 + COUNT ( * ) AS col1
----
-78

query I rowsort
SELECT - + 14 AS col0
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT + MAX( + 28 ) * CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9005
SELECT + MAX ( + 28 ) * CAST ( NULL AS INTEGER ) AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9006
SELECT - 6 + - + CAST( + + COUNT( * ) AS SIGNED ) + 4 + - COUNT( * ) AS col0
----
-4

skipif mysql # not compatible
query I rowsort label-9006
SELECT - 6 + - + CAST ( + + COUNT ( * ) AS INTEGER ) + 4 + - COUNT ( * ) AS col0
----
-4

query I rowsort
SELECT CASE + - 8 WHEN - - COALESCE ( - + ( + ( 46 ) ), - 50 + + 98, - ( + 86 ) ) / + 5 THEN NULL WHEN 36 THEN 57 END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT + ( + 33 ) DIV 41 DIV 68
----
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT + ( + 33 ) / 41 / 68
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9009
SELECT 1 DIV + 49 + - COUNT( 28 ) AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9009
SELECT 1 / + 49 + - COUNT ( 28 ) AS col1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9010
SELECT DISTINCT + COUNT( * ) DIV + 74
----
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT + COUNT ( * ) / + 74
----
0

query I rowsort
SELECT ALL ( - - 91 ) * + 0 AS col2
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9012
SELECT + 10 + + 6 AS col2, - 48 DIV 34 + + - 51 AS col2
----
16
-52

skipif mysql # not compatible
query II rowsort label-9012
SELECT + 10 + + 6 AS col2, - 48 / 34 + + - 51 AS col2
----
16
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-9013
SELECT ALL COALESCE ( COUNT( * ), + + COUNT( * ) * - + 6 ) * + - 88 + - 10 + 21 AS col1, - 5 col2
----
-77
-5

skipif mysql # not compatible
query II rowsort label-9013
SELECT ALL COALESCE ( COUNT ( * ), + + COUNT ( * ) * - + 6 ) * + - 88 + - 10 + 21 AS col1, - 5 col2
----
-77
-5

query I rowsort
SELECT + 86 + - - ( + - 89 ) + - - 1 * - - 73 AS col0
----
70

query I rowsort
SELECT DISTINCT - 7 * 61 + + 72 AS col2
----
-355

onlyif mysql # DIV for integer division: 
query II rowsort label-9016
SELECT ALL + 24 * + - 97 + COALESCE ( + + 97, - 43 * 52 ) + + 89 DIV + 66 col1, + 88 + + 10
----
-2230
98

skipif mysql # not compatible
query II rowsort label-9016
SELECT ALL + 24 * + - 97 + COALESCE ( + + 97, - 43 * 52 ) + + 89 / + 66 col1, + 88 + + 10
----
-2230
98

query I rowsort
SELECT + ( ( - ( + 10 ) ) )
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9018
SELECT + 92 DIV COUNT( * )
----
92

skipif mysql # not compatible
query I rowsort label-9018
SELECT + 92 / COUNT ( * )
----
92

query I rowsort
SELECT + 50 + - - 27 col2
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT CASE 10 WHEN - 90 / + COUNT( * ) THEN + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) END
----
NULL

skipif mysql # not compatible
query I rowsort label-9020
SELECT CASE 10 WHEN - 90 / + COUNT ( * ) THEN + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) END
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT - MAX( ALL + 51 ) * + + 25 AS col0
----
-1275

skipif mysql # not compatible
query I rowsort label-9021
SELECT - MAX ( ALL + 51 ) * + + 25 AS col0
----
-1275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9022
SELECT + COUNT( * ) * - MIN( 43 ) DIV + 75
----
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT + COUNT ( * ) * - MIN ( 43 ) / + 75
----
0

query I rowsort
SELECT - + 90 col1
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9024
SELECT 63 * + - COUNT( * ) DIV 79 - - COUNT( ALL + 78 ) + 21 + - NULLIF ( 61, - COALESCE ( 84, - - 85, - - 17 ) * + CAST( - COUNT( * ) AS SIGNED ) ) col2
----
-39

skipif mysql # not compatible
query I rowsort label-9024
SELECT 63 * + - COUNT ( * ) / 79 - - COUNT ( ALL + 78 ) + 21 + - NULLIF ( 61, - COALESCE ( 84, - - 85, - - 17 ) * + CAST ( - COUNT ( * ) AS INTEGER ) ) col2
----
-39

query I rowsort
SELECT + 65 * ( CASE + 98 WHEN 73 THEN 92 ELSE NULL END ) col0
----
NULL

query I rowsort
SELECT ALL - 24 - 64
----
-88

query I rowsort
SELECT - + 38 * - 30 + + - 45
----
1095

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9028
SELECT DISTINCT + COUNT( * ) / + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT + COUNT ( * ) / + CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 24 + 7 * + 16 AS col1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + 63 * + 32 * - NULLIF ( 72, 95 + + COUNT( * ) * - 92 ) + MIN( - ( 91 ) )
----
-145243

skipif mysql # not compatible
query I rowsort label-9030
SELECT + 63 * + 32 * - NULLIF ( 72, 95 + + COUNT ( * ) * - 92 ) + MIN ( - ( 91 ) )
----
-145243

query I rowsort
SELECT - 68 * - 52 * + - ( + 38 ) AS col2
----
-134368

query I rowsort
SELECT - 38 + + 37
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL - 66 DIV + 70 + 77 + - + 62 DIV 58 AS col0
----
76

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - 66 / + 70 + 77 + - + 62 / 58 AS col0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9034
SELECT - - 55 + CAST( NULL AS SIGNED ) * + 13 AS col1, - 51
----
NULL
-51

skipif mysql # not compatible
query II rowsort label-9034
SELECT - - 55 + CAST ( NULL AS INTEGER ) * + 13 AS col1, - 51
----
NULL
-51

query I rowsort
SELECT - + COALESCE ( + - 15, + 57 )
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9036
SELECT + 65 DIV - ( - + 27 )
----
2

skipif mysql # not compatible
query I rowsort label-9036
SELECT + 65 / - ( - + 27 )
----
2

query II rowsort
SELECT - - 11 * 21, ( 1 ) + + + 87 + + 22 AS col0
----
231
110

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9038
SELECT ALL - 6 DIV COUNT( * ) col0, + 7 AS col1
----
-6
7

skipif mysql # not compatible
query II rowsort label-9038
SELECT ALL - 6 / COUNT ( * ) col0, + 7 AS col1
----
-6
7

query I rowsort
SELECT - + 37 * + 14 AS col1
----
-518

query I rowsort
SELECT ALL + 96 * - 99 AS col1
----
-9504

query I rowsort
SELECT ALL + 23 * + 59 AS col2
----
1357

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT DISTINCT 74 col2, - 45 * - + 18 + - - 88 * - 63 * - 26 * + - COALESCE ( 21, - COUNT( * ) ) + ( - + 8 ) + + - 78 * - - 88 + - 10 AS col0
----
74
-3033096

skipif mysql # not compatible
query II rowsort label-9042
SELECT DISTINCT 74 col2, - 45 * - + 18 + - - 88 * - 63 * - 26 * + - COALESCE ( 21, - COUNT ( * ) ) + ( - + 8 ) + + - 78 * - - 88 + - 10 AS col0
----
74
-3033096

query I rowsort
SELECT DISTINCT + COALESCE ( - 5, + + 88 + - + 7 * + 67 + 14 + - - 48 * 49 ) * + - 75 * + ( - CASE + 97 WHEN + 71 THEN - 9 + - 12 - - 43 / + - 90 END )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9044
SELECT - CAST( - - 20 AS SIGNED ) - CAST( - 62 AS SIGNED )
----
42

skipif mysql # not compatible
query I rowsort label-9044
SELECT - CAST ( - - 20 AS INTEGER ) - CAST ( - 62 AS INTEGER )
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT ALL + 80 DIV 15 + 82 col1
----
87

skipif mysql # not compatible
query I rowsort label-9045
SELECT ALL + 80 / 15 + 82 col1
----
87

query I rowsort
SELECT - 51 * 94
----
-4794

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT + MAX( ALL + 68 ) AS col1
----
68

skipif mysql # not compatible
query I rowsort label-9047
SELECT + MAX ( ALL + 68 ) AS col1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9048
SELECT CAST( NULL AS SIGNED ), 99 * + 12 * + 31 AS col2
----
NULL
36828

skipif mysql # not compatible
query II rowsort label-9048
SELECT CAST ( NULL AS INTEGER ), 99 * + 12 * + 31 AS col2
----
NULL
36828

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT ALL - 3 DIV + 26 + + ( 63 ) AS col1
----
63

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - 3 / + 26 + + ( 63 ) AS col1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9050
SELECT DISTINCT + CAST( - 10 AS SIGNED )
----
-10

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + CAST ( - 10 AS INTEGER )
----
-10

query II rowsort
SELECT + 21 - - - ( - ( - 79 ) ), - 91 AS col1
----
-58
-91

query I rowsort
SELECT DISTINCT 61 * 87 AS col1
----
5307

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT - 85 * - MAX( DISTINCT + 30 ) AS col1
----
2550

skipif mysql # not compatible
query I rowsort label-9053
SELECT - 85 * - MAX ( DISTINCT + 30 ) AS col1
----
2550

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT ALL COUNT( * ) * 77 - 97 AS col2, 31
----
-20
31

skipif mysql # not compatible
query II rowsort label-9054
SELECT ALL COUNT ( * ) * 77 - 97 AS col2, 31
----
-20
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT + ( MAX( CASE - - 69 WHEN + 33 THEN + + 66 END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9055
SELECT + ( MAX ( CASE - - 69 WHEN + 33 THEN + + 66 END ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9056
SELECT + - 28 DIV - 38
----
0

skipif mysql # not compatible
query I rowsort label-9056
SELECT + - 28 / - 38
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9057
SELECT + - 17 * + CAST( + + 82 AS SIGNED ) * - - COUNT( * ) - + 12 + + 55
----
-1351

skipif mysql # not compatible
query I rowsort label-9057
SELECT + - 17 * + CAST ( + + 82 AS INTEGER ) * - - COUNT ( * ) - + 12 + + 55
----
-1351

query II rowsort
SELECT ALL 5 AS col1, 60
----
5
60

query I rowsort
SELECT ALL - 73 - - 7
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT - 33, MAX( + 45 ) * - 41 * - 44 - + 5 AS col1
----
-33
81175

skipif mysql # not compatible
query II rowsort label-9060
SELECT - 33, MAX ( + 45 ) * - 41 * - 44 - + 5 AS col1
----
-33
81175

query I rowsort
SELECT - ( - 17 ) - 95 + + 74 AS col0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9062
SELECT ALL + 81 * + 84 * NULLIF ( - 97, 23 / + + 24 + - 21 + + 64 + - 19 * 2 - - CASE + - 13 WHEN COUNT( * ) THEN + 47 ELSE NULL END * + - 68 ) AS col2
----
-659988

skipif mysql # not compatible
query I rowsort label-9062
SELECT ALL + 81 * + 84 * NULLIF ( - 97, 23 / + + 24 + - 21 + + 64 + - 19 * 2 - - CASE + - 13 WHEN COUNT ( * ) THEN + 47 ELSE NULL END * + - 68 ) AS col2
----
-659988

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT - - MAX( - 19 ) AS col1
----
-19

skipif mysql # not compatible
query I rowsort label-9063
SELECT - - MAX ( - 19 ) AS col1
----
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-9064
SELECT - COUNT( * ) AS col2, + 79 col1
----
-1
79

skipif mysql # not compatible
query II rowsort label-9064
SELECT - COUNT ( * ) AS col2, + 79 col1
----
-1
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9065
SELECT 97 * + 86 DIV + COUNT( * ) col2
----
8342

skipif mysql # not compatible
query I rowsort label-9065
SELECT 97 * + 86 / + COUNT ( * ) col2
----
8342

query II rowsort
SELECT 69 AS col1, 61
----
69
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9067
SELECT ALL COUNT( - 26 )
----
1

skipif mysql # not compatible
query I rowsort label-9067
SELECT ALL COUNT ( - 26 )
----
1

query II rowsort
SELECT - 90, + 7 AS col1
----
-90
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT 77 DIV + 5 + 58 DIV - 9 col0
----
9

skipif mysql # not compatible
query I rowsort label-9069
SELECT 77 / + 5 + 58 / - 9 col0
----
9

query I rowsort
SELECT ALL - + 68 + + - 21 + - - 71 AS col1
----
-18

query I rowsort
SELECT 8 - + 92
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL + COUNT( * ) * - - 30
----
30

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL + COUNT ( * ) * - - 30
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL - CAST( NULL AS SIGNED ) + 8 + - 39 / 18 * + 35 * 52 * - - 30 * + CAST( NULL AS SIGNED ) + - 71
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - CAST ( NULL AS INTEGER ) + 8 + - 39 / 18 * + 35 * 52 * - - 30 * + CAST ( NULL AS INTEGER ) + - 71
----
NULL

query I rowsort
SELECT 98 + + + 77 - + 84 col1
----
91

query I rowsort
SELECT 37 * - ( - 95 )
----
3515

query I rowsort
SELECT 43 - + + 61 + + ( - 11 )
----
-29

query I rowsort
SELECT ALL + 74 * - - 22 AS col0
----
1628

query I rowsort
SELECT - 93 * 6 + - + 19
----
-577

query I rowsort
SELECT DISTINCT - ( ( - 94 ) ) + - 89
----
5

query II rowsort
SELECT ALL - CASE - + 68 WHEN + 50 THEN + + 77 ELSE NULL END AS col0, + 28
----
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - 2 + + COUNT( * ) col2
----
-1

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - 2 + + COUNT ( * ) col2
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT ALL + ( 1 ) * + 64 / + - 44 * + 17 + + - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL + ( 1 ) * + 64 / + - 44 * + 17 + + - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT ALL + CAST( NULL AS SIGNED ) - + AVG ( + 83 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL + CAST ( NULL AS INTEGER ) - + AVG ( + 83 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9084
SELECT 42 * - 67, + COUNT( * ) AS col1
----
-2814
1

skipif mysql # not compatible
query II rowsort label-9084
SELECT 42 * - 67, + COUNT ( * ) AS col1
----
-2814
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9085
SELECT 78 * + + 36 * - + COUNT( * ) * + + 58, - 7 + 7 col0
----
-162864
0

skipif mysql # not compatible
query II rowsort label-9085
SELECT 78 * + + 36 * - + COUNT ( * ) * + + 58, - 7 + 7 col0
----
-162864
0

query I rowsort
SELECT DISTINCT - + 22
----
-22

query I rowsort
SELECT DISTINCT + 44 * + - 11 - - 33 AS col1
----
-451

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9088
SELECT DISTINCT - 33 DIV - + 99 AS col2, - CASE + 93 WHEN - + ( - + 28 ) THEN - MIN( DISTINCT - + 91 ) ELSE NULL END * + 94 - - 53 * ( 74 ) * + COUNT( * )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9088
SELECT DISTINCT - 33 / - + 99 AS col2, - CASE + 93 WHEN - + ( - + 28 ) THEN - MIN ( DISTINCT - + 91 ) ELSE NULL END * + 94 - - 53 * ( 74 ) * + COUNT ( * )
----
0
NULL

query I rowsort
SELECT 43 + 44
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ( 25 ) * + 26 + - 84 * + COUNT( * )
----
566

skipif mysql # not compatible
query I rowsort label-9090
SELECT ( 25 ) * + 26 + - 84 * + COUNT ( * )
----
566

query I rowsort
SELECT ALL + 0 * 10 - + 41 AS col2
----
-41

query I rowsort
SELECT - 45 + - 77 AS col0
----
-122

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - MAX( DISTINCT + 49 )
----
-49

skipif mysql # not compatible
query I rowsort label-9093
SELECT - MAX ( DISTINCT + 49 )
----
-49

query I rowsort
SELECT + 20 * + 60 + + - 5 AS col2
----
1195

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - 29 - + - COUNT( DISTINCT 62 ) + 24 AS col2
----
-4

skipif mysql # not compatible
query I rowsort label-9095
SELECT - 29 - + - COUNT ( DISTINCT 62 ) + 24 AS col2
----
-4

query I rowsort
SELECT ALL ( 23 ) + - 73 AS col2
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL 56 + + 41 + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL 56 + + 41 + COUNT ( * )
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9098
SELECT ( - COALESCE ( 6, - - 71 * + + 63 - + 23 + - + ( - CAST( + - 15 AS SIGNED ) ), - 22, - - COUNT( * ) * - 90 ) ) + - - COUNT( * ) AS col1
----
-5

skipif mysql # not compatible
query I rowsort label-9098
SELECT ( - COALESCE ( 6, - - 71 * + + 63 - + 23 + - + ( - CAST ( + - 15 AS INTEGER ) ), - 22, - - COUNT ( * ) * - 90 ) ) + - - COUNT ( * ) AS col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL MAX( ALL 30 ) + 82
----
112

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL MAX ( ALL 30 ) + 82
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT DISTINCT 52 + + 97 * + 2 + - - 71 * + SUM( - 39 ) - + 81
----
-2604

skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT 52 + + 97 * + 2 + - - 71 * + SUM ( - 39 ) - + 81
----
-2604

query I rowsort
SELECT 8 * - 38 AS col1
----
-304

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT 43 + 21 DIV - 74
----
43

skipif mysql # not compatible
query I rowsort label-9102
SELECT 43 + 21 / - 74
----
43

query I rowsort
SELECT DISTINCT 87 * - 1 AS col1
----
-87

query I rowsort
SELECT - AVG ( DISTINCT + CASE + - 97 WHEN + 48 THEN 8 ELSE NULL END )
----
NULL

query II rowsort
SELECT 53 + 74 + + 84 * 43 * - 69 AS col1, + 56 AS col2
----
-249101
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT ALL - COUNT( * ) + - 5 + 52
----
46

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL - COUNT ( * ) + - 5 + 52
----
46

query I rowsort
SELECT DISTINCT 51 * + - 37 * ( + + 76 )
----
-143412

query II rowsort
SELECT ALL 86 AS col1, 98 AS col2
----
86
98

onlyif mysql # aggregate syntax: 
query II rowsort label-9109
SELECT 97 AS col1, + COUNT( * )
----
97
1

skipif mysql # not compatible
query II rowsort label-9109
SELECT 97 AS col1, + COUNT ( * )
----
97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9110
SELECT 52 DIV + 10 AS col0
----
5

skipif mysql # not compatible
query I rowsort label-9110
SELECT 52 / + 10 AS col0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ALL + ( + 51 ) * - 21 * + 0 + 33 + CASE 71 WHEN - MIN( DISTINCT + + 72 ) THEN + - 43 END * + NULLIF ( - COUNT( * ), - 54 - - 61 ) * + ( + - ( COUNT( * ) ) ) - 79 - + + 65 + 50 + + - ( - 84 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9111
SELECT ALL + ( + 51 ) * - 21 * + 0 + 33 + CASE 71 WHEN - MIN ( DISTINCT + + 72 ) THEN + - 43 END * + NULLIF ( - COUNT ( * ), - 54 - - 61 ) * + ( + - ( COUNT ( * ) ) ) - 79 - + + 65 + 50 + + - ( - 84 ) AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9112
SELECT CAST( NULL AS SIGNED ) - + 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9112
SELECT CAST ( NULL AS INTEGER ) - + 21
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9113
SELECT COALESCE ( 38, - 5 ) AS col2, CASE + + 17 WHEN - + SUM( DISTINCT + 58 ) THEN + - 37 * ( 44 ) * 66 * - - 88 + - 63 END AS col2
----
38
NULL

skipif mysql # not compatible
query II rowsort label-9113
SELECT COALESCE ( 38, - 5 ) AS col2, CASE + + 17 WHEN - + SUM ( DISTINCT + 58 ) THEN + - 37 * ( 44 ) * 66 * - - 88 + - 63 END AS col2
----
38
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9114
SELECT 78 DIV - + 93
----
0

skipif mysql # not compatible
query I rowsort label-9114
SELECT 78 / - + 93
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9115
SELECT ALL + 98 DIV + COUNT( * )
----
98

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL + 98 / + COUNT ( * )
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9116
SELECT - + 0 DIV + 59
----
0

skipif mysql # not compatible
query I rowsort label-9116
SELECT - + 0 / + 59
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9117
SELECT - - COUNT( * ) - 83 DIV - NULLIF ( + MAX( + - 1 ), + 13 ) AS col2
----
-82

skipif mysql # not compatible
query I rowsort label-9117
SELECT - - COUNT ( * ) - 83 / - NULLIF ( + MAX ( + - 1 ), + 13 ) AS col2
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT - CAST( 8 AS SIGNED ) + - 9 AS col1
----
-17

skipif mysql # not compatible
query I rowsort label-9118
SELECT - CAST ( 8 AS INTEGER ) + - 9 AS col1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT DISTINCT - - 51 * - SUM( ( - 9 ) ) col2
----
459

skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT - - 51 * - SUM ( ( - 9 ) ) col2
----
459

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9120
SELECT - ( COUNT( * ) ) * + 30 DIV NULLIF ( - ( COUNT( * ) ), + 24 DIV + 52 * + - 68 + + 72 * 63 + + ( - MIN( - - 2 ) ) + COUNT( * ) - + 94 + + 10 * + 72 DIV - 63 ) * - 5 + - - 48 AS col0
----
-102

skipif mysql # not compatible
query I rowsort label-9120
SELECT - ( COUNT ( * ) ) * + 30 / NULLIF ( - ( COUNT ( * ) ), + 24 / + 52 * + - 68 + + 72 * 63 + + ( - MIN ( - - 2 ) ) + COUNT ( * ) - + 94 + + 10 * + 72 / - 63 ) * - 5 + - - 48 AS col0
----
-102

query I rowsort
SELECT - 30 * + 12 + - - 60 AS col2
----
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - 34 + - 60 + 30 + 29 / + CASE + 81 WHEN + 25 THEN COUNT( * ) WHEN + + 30 + + 9 + - - 20 * + - 57 THEN NULL END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9122
SELECT - 34 + - 60 + 30 + 29 / + CASE + 81 WHEN + 25 THEN COUNT ( * ) WHEN + + 30 + + 9 + - - 20 * + - 57 THEN NULL END AS col2
----
NULL

query I rowsort
SELECT ALL + 78 col0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9124
SELECT DISTINCT - - 54 * 23 * - COUNT( * ) * 87 * - 45 * - ( + - CAST( NULL AS SIGNED ) ) + - - CAST( - 41 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT - - 54 * 23 * - COUNT ( * ) * 87 * - 45 * - ( + - CAST ( NULL AS INTEGER ) ) + - - CAST ( - 41 AS INTEGER )
----
NULL

query I rowsort
SELECT - 18 * - 47 + 77 + 59 + 11 * - 27 + - + 83 - + 46 * - 10 * + 42 * - - 8
----
155162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9126
SELECT + ( + 56 ) - - - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9126
SELECT + ( + 56 ) - - - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - CASE + 46 WHEN + 45 THEN COUNT( * ) WHEN - 54 * + 9 + COUNT( * ) * + 24 THEN AVG ( DISTINCT + 49 ) + + 34 END + + 46 + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - CASE + 46 WHEN + 45 THEN COUNT ( * ) WHEN - 54 * + 9 + COUNT ( * ) * + 24 THEN AVG ( DISTINCT + 49 ) + + 34 END + + 46 + 73
----
NULL

query I rowsort
SELECT DISTINCT + + 36 AS col2
----
36

query I rowsort
SELECT ALL + + 97 + - 67
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT DISTINCT - + 34 + - COUNT( * )
----
-35

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - + 34 + - COUNT ( * )
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9131
SELECT 61, COALESCE ( + ( + 0 ), + 39 ) DIV 17 + 76 * + COUNT( * ) AS col2
----
61
76

skipif mysql # not compatible
query II rowsort label-9131
SELECT 61, COALESCE ( + ( + 0 ), + 39 ) / 17 + 76 * + COUNT ( * ) AS col2
----
61
76

query I rowsort
SELECT ALL - 38 + - 70 AS col2
----
-108

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9133
SELECT + - CAST( NULL AS DECIMAL ) * - COALESCE ( - 80, - SUM( ALL + + 27 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT + - CAST ( NULL AS REAL ) * - COALESCE ( - 80, - SUM ( ALL + + 27 ) )
----
NULL

query II rowsort
SELECT ALL + 27 + + + ( + 73 ), 94 AS col0
----
100
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT - + ( - - CAST( NULL AS SIGNED ) ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT - + ( - - CAST ( NULL AS INTEGER ) ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT NULLIF ( + - COALESCE ( + COUNT( * ), + + 68 + - ( + 62 ) ), + + 13 )
----
-1

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT NULLIF ( + - COALESCE ( + COUNT ( * ), + + 68 + - ( + 62 ) ), + + 13 )
----
-1

query I rowsort
SELECT - 75 - + 52 + - 82
----
-209

query I rowsort
SELECT DISTINCT ( + 74 ) + - - 17 col0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT + COUNT( * ) * 27 * 66 * 62 AS col0
----
110484

skipif mysql # not compatible
query I rowsort label-9139
SELECT + COUNT ( * ) * 27 * 66 * 62 AS col0
----
110484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9140
SELECT ALL CAST( NULL AS SIGNED ) - 36 * + 31 + - + 81 AS col0, 40
----
NULL
40

skipif mysql # not compatible
query II rowsort label-9140
SELECT ALL CAST ( NULL AS INTEGER ) - 36 * + 31 + - + 81 AS col0, 40
----
NULL
40

query I rowsort
SELECT + 45 - - - 55 * + ( + - 88 )
----
4885

query I rowsort
SELECT ALL ( + 82 ) AS col1
----
82

query II rowsort
SELECT 69 AS col1, + ( 58 ) * - 7 + - 5 AS col0
----
69
-411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT ALL CAST( NULL AS SIGNED ) - + - NULLIF ( 13, 84 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL CAST ( NULL AS INTEGER ) - + - NULLIF ( 13, 84 ) AS col2
----
NULL

query I rowsort
SELECT - ( 33 ) AS col0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT DISTINCT 44, COUNT( + - 17 ) AS col1
----
44
1

skipif mysql # not compatible
query II rowsort label-9146
SELECT DISTINCT 44, COUNT ( + - 17 ) AS col1
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT + MAX( - 54 ) + + 4
----
-50

skipif mysql # not compatible
query I rowsort label-9147
SELECT + MAX ( - 54 ) + + 4
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9148
SELECT + CAST( - 39 AS SIGNED ) - + COUNT( * )
----
-40

skipif mysql # not compatible
query I rowsort label-9148
SELECT + CAST ( - 39 AS INTEGER ) - + COUNT ( * )
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL 32 * COUNT( * )
----
32

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL 32 * COUNT ( * )
----
32

query I rowsort
SELECT + 38 + - 94
----
-56

query I rowsort
SELECT - NULLIF ( + 12, 7 ) - + - 62 + 54 AS col0
----
104

query II rowsort
SELECT DISTINCT 4 AS col0, - 49
----
4
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-9153
SELECT DISTINCT + COUNT( * ) AS col1, - NULLIF ( + 19, - 8 ) AS col2
----
1
-19

skipif mysql # not compatible
query II rowsort label-9153
SELECT DISTINCT + COUNT ( * ) AS col1, - NULLIF ( + 19, - 8 ) AS col2
----
1
-19

query I rowsort
SELECT ALL 96 * 64 * - 33 * + 3
----
-608256

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT + 90 DIV 24 + - 89
----
-86

skipif mysql # not compatible
query I rowsort label-9155
SELECT + 90 / 24 + - 89
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT + + MIN( + 15 ) + - 42
----
-27

skipif mysql # not compatible
query I rowsort label-9156
SELECT + + MIN ( + 15 ) + - 42
----
-27

query I rowsort
SELECT + 70 * 92 + - 47
----
6393

query II rowsort
SELECT + - 13, + 23 + - + 43 AS col0
----
-13
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9159
SELECT 39, CAST( NULL AS DECIMAL ) AS col2
----
39
NULL

skipif mysql # not compatible
query II rowsort label-9159
SELECT 39, CAST ( NULL AS REAL ) AS col2
----
39
NULL

query II rowsort
SELECT - 74 AS col1, 87 AS col0
----
-74
87

query I rowsort
SELECT + 32 * + 58 + + - 94 col0
----
1762

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT - 70 DIV 40 + - 97 - 28 * + 7 DIV 28 DIV + + NULLIF ( 70, 90 ) col2
----
-98

skipif mysql # not compatible
query I rowsort label-9162
SELECT - 70 / 40 + - 97 - 28 * + 7 / 28 / + + NULLIF ( 70, 90 ) col2
----
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9163
SELECT ALL - 52 * + 34 + + NULLIF ( + ( - - COUNT( * ) ), ( CAST( 91 AS SIGNED ) ) ) AS col1
----
-1767

skipif mysql # not compatible
query I rowsort label-9163
SELECT ALL - 52 * + 34 + + NULLIF ( + ( - - COUNT ( * ) ), ( CAST ( 91 AS INTEGER ) ) ) AS col1
----
-1767

query I rowsort
SELECT ALL - + NULLIF ( - 47, + 54 ) * - 84 + - ( 92 ) + ( 77 )
----
-3963

query I rowsort
SELECT DISTINCT + NULLIF ( + ( + - 33 ), - ( + - 7 ) + - 3 ) * + 85
----
-2805

query I rowsort
SELECT DISTINCT 94 * - 8 + 23 * 14 AS col0
----
-430

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9167
SELECT DISTINCT - 73 * - COUNT( * ) + - NULLIF ( + CAST( NULL AS SIGNED ), + 74 + + COUNT( * ) + 84 + 80 * + 7 - - 48 + - 93 / + - 18 ) + + - 94 * - + 59 col2, 26 - + + 70 * + + COUNT( * ) - - 97
----
NULL
53

skipif mysql # not compatible
query II rowsort label-9167
SELECT DISTINCT - 73 * - COUNT ( * ) + - NULLIF ( + CAST ( NULL AS INTEGER ), + 74 + + COUNT ( * ) + 84 + 80 * + 7 - - 48 + - 93 / + - 18 ) + + - 94 * - + 59 col2, 26 - + + 70 * + + COUNT ( * ) - - 97
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT - + COUNT( * ) * 97 + + 29 + - COUNT( * ) * + + 27
----
-95

skipif mysql # not compatible
query I rowsort label-9168
SELECT - + COUNT ( * ) * 97 + + 29 + - COUNT ( * ) * + + 27
----
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9169
SELECT DISTINCT - 66 * - 21 * - COUNT( * ) + - 32 + - ( 22 ) * + 51 * + - COALESCE ( - 75, + CAST( NULLIF ( - - 73, 15 * - COUNT( * ) ) AS SIGNED ) * + 42 DIV - + 0 + - + 74 + CASE + 4 WHEN + 16 THEN 51 END ) AS col0
----
-85568

skipif mysql # not compatible
query I rowsort label-9169
SELECT DISTINCT - 66 * - 21 * - COUNT ( * ) + - 32 + - ( 22 ) * + 51 * + - COALESCE ( - 75, + CAST ( NULLIF ( - - 73, 15 * - COUNT ( * ) ) AS INTEGER ) * + 42 / - + 0 + - + 74 + CASE + 4 WHEN + 16 THEN 51 END ) AS col0
----
-85568

onlyif mysql # aggregate syntax: 
query II rowsort label-9170
SELECT DISTINCT + 34 AS col2, + COUNT( * ) AS col2
----
34
1

skipif mysql # not compatible
query II rowsort label-9170
SELECT DISTINCT + 34 AS col2, + COUNT ( * ) AS col2
----
34
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9171
SELECT DISTINCT + + ( + COALESCE ( + COUNT( * ), + 77 DIV - COUNT( * ) + 69 + SUM( 69 ) * 92 + + + 66 * + 98, + COUNT( * ) ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT + + ( + COALESCE ( + COUNT ( * ), + 77 / - COUNT ( * ) + 69 + SUM ( 69 ) * 92 + + + 66 * + 98, + COUNT ( * ) ) ) AS col2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT - - 1 + + CAST( NULL AS SIGNED ) * - + 60
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT - - 1 + + CAST ( NULL AS INTEGER ) * - + 60
----
NULL

query I rowsort
SELECT - 48 - + 50 * 72 AS col1
----
-3648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9174
SELECT - SUM( DISTINCT + + 82 ) + 92 DIV + 92
----
-81

skipif mysql # not compatible
query I rowsort label-9174
SELECT - SUM ( DISTINCT + + 82 ) + 92 / + 92
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9175
SELECT DISTINCT CASE CAST( - 70 AS SIGNED ) WHEN + 36 THEN 39 * + 63 * + - COUNT( * ) WHEN + + AVG ( ALL 5 ) + + + 93 + + + 1 + - 95 + COUNT( * ) * - + 68 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT DISTINCT CASE CAST ( - 70 AS INTEGER ) WHEN + 36 THEN 39 * + 63 * + - COUNT ( * ) WHEN + + AVG ( ALL 5 ) + + + 93 + + + 1 + - 95 + COUNT ( * ) * - + 68 THEN NULL END AS col1
----
NULL

query I rowsort
SELECT - 46 + 3 + 88 + - - 70 col0
----
115

query I rowsort
SELECT DISTINCT ( - 36 )
----
-36

query I rowsort
SELECT ALL + ( + 96 ) * + 55 * 15 AS col2
----
79200

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT - 68 * - COUNT( DISTINCT - ( + ( - 22 ) ) )
----
68

skipif mysql # not compatible
query I rowsort label-9179
SELECT - 68 * - COUNT ( DISTINCT - ( + ( - 22 ) ) )
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9180
SELECT + ( 10 ) DIV + + 94 + + + 32
----
32

skipif mysql # not compatible
query I rowsort label-9180
SELECT + ( 10 ) / + + 94 + + + 32
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT + 98 * - COUNT( - + 54 ) * + - 67
----
6566

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT + 98 * - COUNT ( - + 54 ) * + - 67
----
6566

query II rowsort
SELECT ALL - 44 * 15, + 51 col0
----
-660
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9183
SELECT + SUM( DISTINCT 74 ) + + 24 + - - COUNT( * ) + + COUNT( ALL 26 ) * - 83 * + 9 * + 1 + + COUNT( * ) / + CAST( NULL AS SIGNED ) + - 17 * + 74
----
NULL

skipif mysql # not compatible
query I rowsort label-9183
SELECT + SUM ( DISTINCT 74 ) + + 24 + - - COUNT ( * ) + + COUNT ( ALL 26 ) * - 83 * + 9 * + 1 + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) + - 17 * + 74
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT ( - + CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9184
SELECT ( - + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT MAX( + 74 ) * - + 1
----
-74

skipif mysql # not compatible
query I rowsort label-9185
SELECT MAX ( + 74 ) * - + 1
----
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT ( CASE - 6 WHEN + ( + ( - 78 ) ) - + AVG ( DISTINCT - + 99 ) * - + COUNT( * ) THEN - 83 ELSE NULL END ) + + CAST( COUNT( DISTINCT - 47 ) AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9186
SELECT ( CASE - 6 WHEN + ( + ( - 78 ) ) - + AVG ( DISTINCT - + 99 ) * - + COUNT ( * ) THEN - 83 ELSE NULL END ) + + CAST ( COUNT ( DISTINCT - 47 ) AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + ( + 7 ) * - - COUNT( * ) AS col0
----
7

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + ( + 7 ) * - - COUNT ( * ) AS col0
----
7

onlyif mysql # aggregate syntax: 
query II rowsort label-9188
SELECT ALL + 44 * + - MAX( 49 ), 32 - - COUNT( * ) - 9 AS col0
----
-2156
24

skipif mysql # not compatible
query II rowsort label-9188
SELECT ALL + 44 * + - MAX ( 49 ), 32 - - COUNT ( * ) - 9 AS col0
----
-2156
24

onlyif mysql # DIV for integer division: 
query I rowsort label-9189
SELECT DISTINCT 85 DIV + COALESCE ( + 47, 2 ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9189
SELECT DISTINCT 85 / + COALESCE ( + 47, 2 ) col2
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9190
SELECT 71 DIV - 39 AS col1, - COUNT( * ) * + 50 AS col0
----
-1
-50

skipif mysql # not compatible
query II rowsort label-9190
SELECT 71 / - 39 AS col1, - COUNT ( * ) * + 50 AS col0
----
-1
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9191
SELECT ALL COUNT( 74 ) + - - 56 * - + 36 + + 9 + - 55 + + 5 DIV - + 22 * + ( - COUNT( * ) ) DIV + + COUNT( * ) AS col1
----
-2061

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL COUNT ( 74 ) + - - 56 * - + 36 + + 9 + - 55 + + 5 / - + 22 * + ( - COUNT ( * ) ) / + + COUNT ( * ) AS col1
----
-2061

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9192
SELECT 80 * + CAST( - 27 AS SIGNED ) - - + 19
----
-2141

skipif mysql # not compatible
query I rowsort label-9192
SELECT 80 * + CAST ( - 27 AS INTEGER ) - - + 19
----
-2141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9193
SELECT CASE 59 WHEN + CAST( NULL AS SIGNED ) * COUNT( * ) / + MAX( 6 ) THEN NULL WHEN 94 / - + 26 THEN - + 49 + + 25 - - 13 / + 91 * - 23 / + + 4 END - + MIN( - 60 ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT CASE 59 WHEN + CAST ( NULL AS INTEGER ) * COUNT ( * ) / + MAX ( 6 ) THEN NULL WHEN 94 / - + 26 THEN - + 49 + + 25 - - 13 / + 91 * - 23 / + + 4 END - + MIN ( - 60 ) AS col2
----
NULL

query I rowsort
SELECT ALL 33 + + 25 AS col2
----
58

query I rowsort
SELECT + 26 * 23 * - 49 + ( - 59 ) - - + 46 + + 65 AS col2
----
-29250

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + CASE COUNT( * ) WHEN - COUNT( * ) THEN 27 WHEN + COUNT( * ) THEN 28 END AS col0
----
28

skipif mysql # not compatible
query I rowsort label-9196
SELECT + CASE COUNT ( * ) WHEN - COUNT ( * ) THEN 27 WHEN + COUNT ( * ) THEN 28 END AS col0
----
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9197
SELECT DISTINCT 91 * 44 AS col1, + COUNT( * ) DIV - 92 AS col0
----
4004
0

skipif mysql # not compatible
query II rowsort label-9197
SELECT DISTINCT 91 * 44 AS col1, + COUNT ( * ) / - 92 AS col0
----
4004
0

query I rowsort
SELECT ALL 95 + - 33 AS col0
----
62

query I rowsort
SELECT ALL - 93 + - 4 AS col1
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9200
SELECT ALL + 18 + - COUNT( * ) AS col0, COALESCE ( - + 93, 36 )
----
17
-93

skipif mysql # not compatible
query II rowsort label-9200
SELECT ALL + 18 + - COUNT ( * ) AS col0, COALESCE ( - + 93, 36 )
----
17
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9201
SELECT ALL + - COUNT( DISTINCT + 23 ) + + COALESCE ( CAST( - - 99 AS SIGNED ), + - ( 36 ), 16 * + ( + 30 ) )
----
98

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL + - COUNT ( DISTINCT + 23 ) + + COALESCE ( CAST ( - - 99 AS INTEGER ), + - ( 36 ), 16 * + ( + 30 ) )
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9202
SELECT ALL ( CASE + 86 WHEN - + ( COUNT( * ) ) THEN - 28 / - 17 + + 36 * - 25 * - ( 22 ) * - 48 + 75 ELSE NULL END ) + - - 68 * COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL ( CASE + 86 WHEN - + ( COUNT ( * ) ) THEN - 28 / - 17 + + 36 * - 25 * - ( 22 ) * - 48 + 75 ELSE NULL END ) + - - 68 * COUNT ( * )
----
NULL

query I rowsort
SELECT DISTINCT - - 40 AS col2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL - + MAX( - ( + + 5 ) ) AS col2
----
5

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL - + MAX ( - ( + + 5 ) ) AS col2
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-9205
SELECT SUM( + 14 ) col0, + 52
----
14
52

skipif mysql # not compatible
query II rowsort label-9205
SELECT SUM ( + 14 ) col0, + 52
----
14
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9206
SELECT - 58 * 58 DIV + + 34 + + - 9
----
-107

skipif mysql # not compatible
query I rowsort label-9206
SELECT - 58 * 58 / + + 34 + + - 9
----
-107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT CAST( - - 56 AS SIGNED ) * + - 89 + + 57
----
-4927

skipif mysql # not compatible
query I rowsort label-9207
SELECT CAST ( - - 56 AS INTEGER ) * + - 89 + + 57
----
-4927

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT - COUNT( * ) - - - 70 + 52
----
-19

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT - COUNT ( * ) - - - 70 + 52
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-9209
SELECT DISTINCT 93 DIV 31 col1
----
3

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT 93 / 31 col1
----
3

query I rowsort
SELECT 37 * - 9
----
-333

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9211
SELECT - 27 AS col1, CAST( NULL AS SIGNED ) AS col2
----
-27
NULL

skipif mysql # not compatible
query II rowsort label-9211
SELECT - 27 AS col1, CAST ( NULL AS INTEGER ) AS col2
----
-27
NULL

query I rowsort
SELECT 33 - - + 89 * + 57 * + 57 AS col2
----
289194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9213
SELECT CAST( NULL AS SIGNED ) * + + 76 * - 12 * 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9213
SELECT CAST ( NULL AS INTEGER ) * + + 76 * - 12 * 87
----
NULL

query I rowsort
SELECT 72 * - + 26 AS col0
----
-1872

query I rowsort
SELECT 43 + + 87 * - 8 - - 29 - - + 86
----
-538

query II rowsort
SELECT 43, 0 - + + 80 AS col2
----
43
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT 62 * - CAST( 61 AS SIGNED ) AS col2
----
-3782

skipif mysql # not compatible
query I rowsort label-9217
SELECT 62 * - CAST ( 61 AS INTEGER ) AS col2
----
-3782

query I rowsort
SELECT ALL - 13 + 6
----
-7

query I rowsort
SELECT 77 - - 5
----
82

query I rowsort
SELECT 87 + + 90 AS col2
----
177

query I rowsort
SELECT DISTINCT - 68 + + 12 AS col1
----
-56

query I rowsort
SELECT ALL + 13 + 12
----
25

query II rowsort
SELECT 51 AS col1, + 95
----
51
95

query I rowsort
SELECT ALL - + 95 + + 79 + 83
----
67

query I rowsort
SELECT + 1 + - + 75
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT DISTINCT ( ( - + 72 ) ) * 95 * + 26 * + 36 + + 42 * - - COUNT( * ) col1
----
-6402198

skipif mysql # not compatible
query I rowsort label-9226
SELECT DISTINCT ( ( - + 72 ) ) * 95 * + 26 * + 36 + + 42 * - - COUNT ( * ) col1
----
-6402198

query I rowsort
SELECT ALL + - 92 * - 17 + 61
----
1625

query I rowsort
SELECT - 50 + + 31 AS col1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT + + COUNT( DISTINCT - ( + 18 ) ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9229
SELECT + + COUNT ( DISTINCT - ( + 18 ) ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT MIN( 36 )
----
36

skipif mysql # not compatible
query I rowsort label-9230
SELECT MIN ( 36 )
----
36

query I rowsort
SELECT ALL - ( 71 ) AS col0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + 14 * - - COUNT( * ) - 92
----
-78

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + 14 * - - COUNT ( * ) - 92
----
-78

query II rowsort
SELECT 24 AS col2, 76 + - ( 80 )
----
24
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT + - COUNT( DISTINCT 43 )
----
-1

skipif mysql # not compatible
query I rowsort label-9234
SELECT + - COUNT ( DISTINCT 43 )
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT ALL 70 * COUNT( * ) AS col0
----
70

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL 70 * COUNT ( * ) AS col0
----
70

query I rowsort
SELECT - 39 * - 92
----
3588

onlyif mysql # aggregate syntax: 
query II rowsort label-9237
SELECT ALL - 4 * - COUNT( * ) * 76 AS col2, - 50 AS col2
----
304
-50

skipif mysql # not compatible
query II rowsort label-9237
SELECT ALL - 4 * - COUNT ( * ) * 76 AS col2, - 50 AS col2
----
304
-50

query I rowsort
SELECT DISTINCT + 88 * - NULLIF ( 72, + 24 ) * + + ( + + 68 ) + + 19 AS col1
----
-430829

query I rowsort
SELECT 45 + + 77
----
122

query II rowsort
SELECT ALL 87 * - 62 AS col2, - 16 + - 47 AS col0
----
-5394
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-9241
SELECT 36 DIV 27
----
1

skipif mysql # not compatible
query I rowsort label-9241
SELECT 36 / 27
----
1

query I rowsort
SELECT 72 * - - 5 AS col1
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT - 68 - - - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9243
SELECT - 68 - - - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + COUNT( * ) * COUNT( * ) + + 77 AS col2
----
78

skipif mysql # not compatible
query I rowsort label-9244
SELECT + COUNT ( * ) * COUNT ( * ) + + 77 AS col2
----
78

query I rowsort
SELECT ALL - 53 * + NULLIF ( + 31, - + NULLIF ( 14, - 46 ) * + 19 ) * 77 AS col0
----
-126511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9246
SELECT + 15 DIV COUNT( * ) * - + CAST( + MAX( DISTINCT 88 ) AS SIGNED ) AS col1
----
-1320

skipif mysql # not compatible
query I rowsort label-9246
SELECT + 15 / COUNT ( * ) * - + CAST ( + MAX ( DISTINCT 88 ) AS INTEGER ) AS col1
----
-1320

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT DISTINCT 38 DIV + 17
----
2

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT 38 / + 17
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT ALL + 81 + - SUM( ALL + + 92 ) * 46
----
-4151

skipif mysql # not compatible
query I rowsort label-9248
SELECT ALL + 81 + - SUM ( ALL + + 92 ) * 46
----
-4151

query I rowsort
SELECT DISTINCT 32 + 15
----
47

query I rowsort
SELECT DISTINCT + 27 + + 40 + + 32 * + + NULLIF ( - - 92, + + 24 ) AS col2
----
3011

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT ALL MIN( ALL - 63 ) AS col2
----
-63

skipif mysql # not compatible
query I rowsort label-9251
SELECT ALL MIN ( ALL - 63 ) AS col2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT - 85 * - COUNT( ALL 1 ) AS col0
----
85

skipif mysql # not compatible
query I rowsort label-9252
SELECT - 85 * - COUNT ( ALL 1 ) AS col0
----
85

onlyif mysql # aggregate syntax: 
query III rowsort label-9253
SELECT ALL 55 + - - 66 AS col1, COALESCE ( + COALESCE ( + COUNT( * ), + 47 ), + + 84 ) AS col1, - 39 * COUNT( + 15 ) - - 51 AS col2
----
121
1
12

skipif mysql # not compatible
query III rowsort label-9253
SELECT ALL 55 + - - 66 AS col1, COALESCE ( + COALESCE ( + COUNT ( * ), + 47 ), + + 84 ) AS col1, - 39 * COUNT ( + 15 ) - - 51 AS col2
----
121
1
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT ALL 68 + - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9254
SELECT ALL 68 + - CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT - - 66 * - 33 AS col1, + MAX( DISTINCT - 61 ) col0
----
-2178
-61

skipif mysql # not compatible
query II rowsort label-9255
SELECT - - 66 * - 33 AS col1, + MAX ( DISTINCT - 61 ) col0
----
-2178
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT DISTINCT + COUNT( + - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9256
SELECT DISTINCT + COUNT ( + - 85 ) AS col1
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9257
SELECT DISTINCT - - 25 DIV - 84 + - NULLIF ( MIN( - 86 ), - CAST( - MIN( ALL + ( - 45 ) ) AS SIGNED ) ) AS col0
----
86

skipif mysql # not compatible
query I rowsort label-9257
SELECT DISTINCT - - 25 / - 84 + - NULLIF ( MIN ( - 86 ), - CAST ( - MIN ( ALL + ( - 45 ) ) AS INTEGER ) ) AS col0
----
86

query I rowsort
SELECT DISTINCT + - 13 AS col1
----
-13

query I rowsort
SELECT 5 * - 20 + 55 - + 51 AS col2
----
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9260
SELECT - - 96 * + 37 + - 74 * COUNT( * ) - CASE + COUNT( * ) WHEN - COUNT( * ) + - + 66 THEN + + 87 WHEN 12 * - COUNT( * ) * + CAST( 27 AS DECIMAL ) + - 39 * + 78 THEN NULL ELSE - - 60 END AS col0
----
3418

skipif mysql # not compatible
query I rowsort label-9260
SELECT - - 96 * + 37 + - 74 * COUNT ( * ) - CASE + COUNT ( * ) WHEN - COUNT ( * ) + - + 66 THEN + + 87 WHEN 12 * - COUNT ( * ) * + CAST ( 27 AS REAL ) + - 39 * + 78 THEN NULL ELSE - - 60 END AS col0
----
3418

query I rowsort
SELECT - + 39 * - 4 + + 46 AS col0
----
202

query I rowsort
SELECT DISTINCT + 88 * 79 - 83 AS col0
----
6869

query I rowsort
SELECT ALL - 59 * + 67 * - 97 AS col0
----
383441

onlyif mysql # DIV for integer division: 
query I rowsort label-9264
SELECT DISTINCT + 67 DIV + 78
----
0

skipif mysql # not compatible
query I rowsort label-9264
SELECT DISTINCT + 67 / + 78
----
0

query I rowsort
SELECT - 69 * - + 64 AS col0
----
4416

query I rowsort
SELECT + 75 * + 79 AS col1
----
5925

query I rowsort
SELECT ALL + ( - 70 ) AS col1
----
-70

onlyif mysql # aggregate syntax: 
query II rowsort label-9268
SELECT COALESCE ( 51, - 35 ), COUNT( * ) AS col0
----
51
1

skipif mysql # not compatible
query II rowsort label-9268
SELECT COALESCE ( 51, - 35 ), COUNT ( * ) AS col0
----
51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT CASE + 76 WHEN - - COALESCE ( + 89, - 65 ) * - COUNT( DISTINCT - 73 ) * - 17 + - ( + COUNT( * ) ) THEN NULL ELSE + - COUNT( * ) END
----
-1

skipif mysql # not compatible
query I rowsort label-9269
SELECT CASE + 76 WHEN - - COALESCE ( + 89, - 65 ) * - COUNT ( DISTINCT - 73 ) * - 17 + - ( + COUNT ( * ) ) THEN NULL ELSE + - COUNT ( * ) END
----
-1

query I rowsort
SELECT ALL 33 * - + 95
----
-3135

query I rowsort
SELECT - 39 * - 6 * - 93
----
-21762

query I rowsort
SELECT ALL - 2 * + 50 + + - 23 AS col2
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL + ( CASE 58 WHEN COUNT( * ) THEN - 32 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL + ( CASE 58 WHEN COUNT ( * ) THEN - 32 END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL 81 * - + COUNT( * ) * - COUNT( DISTINCT + 87 ) + - - 45 AS col0
----
126

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL 81 * - + COUNT ( * ) * - COUNT ( DISTINCT + 87 ) + - - 45 AS col0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT MAX( DISTINCT - 92 )
----
-92

skipif mysql # not compatible
query I rowsort label-9275
SELECT MAX ( DISTINCT - 92 )
----
-92

query I rowsort
SELECT DISTINCT ( + CASE + + 17 WHEN + 20 + + 85 THEN 0 * - 29 END ) * 47 + - 55
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT COUNT( DISTINCT + 74 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9277
SELECT COUNT ( DISTINCT + 74 ) AS col2
----
1

query I rowsort
SELECT DISTINCT 49 * + 15 * 65 + + + 58 col2
----
47833

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ALL 18 * + COUNT( * ) * 7 + 42 - + 72 * 44 * - 8
----
25512

skipif mysql # not compatible
query I rowsort label-9279
SELECT ALL 18 * + COUNT ( * ) * 7 + 42 - + 72 * 44 * - 8
----
25512

query I rowsort
SELECT - ( + 17 ) AS col1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9281
SELECT ALL COUNT( * ) * 86 + - COUNT( * ) + + 6 DIV + 13 * + ( 7 ) + NULLIF ( + COUNT( * ), - + 82 DIV - - 58 * - - 23 ) * + COUNT( ALL + - ( - 15 ) ) + + 67 + - - 10 * - CAST( - + ( - - COALESCE ( 90, 94 ) ) AS SIGNED ) * + 53 + + 64 * + - 1 AS col0
----
47789

skipif mysql # not compatible
query I rowsort label-9281
SELECT ALL COUNT ( * ) * 86 + - COUNT ( * ) + + 6 / + 13 * + ( 7 ) + NULLIF ( + COUNT ( * ), - + 82 / - - 58 * - - 23 ) * + COUNT ( ALL + - ( - 15 ) ) + + 67 + - - 10 * - CAST ( - + ( - - COALESCE ( 90, 94 ) ) AS INTEGER ) * + 53 + + 64 * + - 1 AS col0
----
47789

query I rowsort
SELECT + 79 * - - 46
----
3634

query I rowsort
SELECT + 49 + - + 66
----
-17

query I rowsort
SELECT - 14 * - ( - + 76 )
----
-1064

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9285
SELECT ALL COUNT( * ) DIV 57 * - 84 * + - 65 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL COUNT ( * ) / 57 * - 84 * + - 65 AS col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT + COALESCE ( 13, - 3 - + ( 40 ) - 30 DIV 99, 24 * + 21 ) + - 96 + - - 42 + - 70 * + COALESCE ( + - 11, - 75 ) col2
----
729

skipif mysql # not compatible
query I rowsort label-9286
SELECT + COALESCE ( 13, - 3 - + ( 40 ) - 30 / 99, 24 * + 21 ) + - 96 + - - 42 + - 70 * + COALESCE ( + - 11, - 75 ) col2
----
729

query I rowsort
SELECT ALL 31 + - 24
----
7

query II rowsort
SELECT DISTINCT 10, - ( + + 66 ) * + 23 * + + 65 AS col1
----
10
-98670

onlyif mysql # aggregate syntax: 
query II rowsort label-9289
SELECT - 98, + MIN( ALL 38 ) + - COUNT( * ) AS col1
----
-98
37

skipif mysql # not compatible
query II rowsort label-9289
SELECT - 98, + MIN ( ALL 38 ) + - COUNT ( * ) AS col1
----
-98
37

query I rowsort
SELECT ALL - 75 - 51 AS col0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9291
SELECT + - CASE - 22 WHEN - - 13 THEN NULL WHEN + CAST( NULL AS SIGNED ) * + + 46 * + - 75 + + 57 THEN - MIN( ALL - ( + 88 ) ) - + 2 ELSE - 57 END - - - 5
----
52

skipif mysql # not compatible
query I rowsort label-9291
SELECT + - CASE - 22 WHEN - - 13 THEN NULL WHEN + CAST ( NULL AS INTEGER ) * + + 46 * + - 75 + + 57 THEN - MIN ( ALL - ( + 88 ) ) - + 2 ELSE - 57 END - - - 5
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9292
SELECT ALL + 6 DIV + COUNT( * ) + + 93 AS col2, CAST( NULL AS SIGNED ) + + + MAX( - 81 )
----
99
NULL

skipif mysql # not compatible
query II rowsort label-9292
SELECT ALL + 6 / + COUNT ( * ) + + 93 AS col2, CAST ( NULL AS INTEGER ) + + + MAX ( - 81 )
----
99
NULL

query I rowsort
SELECT DISTINCT 84 * + - 55 + + 10
----
-4610

query I rowsort
SELECT + 58 * + 52 AS col2
----
3016

query I rowsort
SELECT ( - 92 ) AS col1
----
-92

query I rowsort
SELECT + 72 + 44 AS col0
----
116

query I rowsort
SELECT + 85 + 24
----
109

query I rowsort
SELECT DISTINCT - 37 * + 40 col1
----
-1480

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT ALL NULLIF ( 24, + - COUNT( * ) ) AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL NULLIF ( 24, + - COUNT ( * ) ) AS col1
----
24

query II rowsort
SELECT ALL + + 52 AS col2, - 80 AS col0
----
52
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - + 93 * + 76 * 22 + + - COUNT( * ) + - 41 * 87 - + COUNT( * )
----
-159065

skipif mysql # not compatible
query I rowsort label-9301
SELECT - + 93 * + 76 * 22 + + - COUNT ( * ) + - 41 * 87 - + COUNT ( * )
----
-159065

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT - - COUNT( * ) + + 51
----
52

skipif mysql # not compatible
query I rowsort label-9302
SELECT - - COUNT ( * ) + + 51
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-9303
SELECT ALL + 85 AS col1, COUNT( * ) AS col2
----
85
1

skipif mysql # not compatible
query II rowsort label-9303
SELECT ALL + 85 AS col1, COUNT ( * ) AS col2
----
85
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT ALL + 38 DIV + + 7
----
5

skipif mysql # not compatible
query I rowsort label-9304
SELECT ALL + 38 / + + 7
----
5

query I rowsort
SELECT - 57 * - 56
----
3192

query II rowsort
SELECT ALL - 7 AS col2, - NULLIF ( 39, 44 * + 10 + + 76 + + 16 + 16 / - 67 + + 47 - + 43 * + 37 + 2 ) AS col1
----
-7
-39

query I rowsort
SELECT 46 * ( - 34 ) AS col2
----
-1564

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT ALL + 53 * - 92 * - 55 * - COUNT( * )
----
-268180

skipif mysql # not compatible
query I rowsort label-9308
SELECT ALL + 53 * - 92 * - 55 * - COUNT ( * )
----
-268180

query I rowsort
SELECT 52 + - 15
----
37

query I rowsort
SELECT DISTINCT + ( 80 ) * 30 * 64
----
153600

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9311
SELECT ALL - 80 + + - ( - - 54 ) + 88 + + COUNT( DISTINCT - 51 ) DIV 36 * - - 56 AS col1
----
-46

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL - 80 + + - ( - - 54 ) + 88 + + COUNT ( DISTINCT - 51 ) / 36 * - - 56 AS col1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL + COUNT( * ) + 13
----
14

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + COUNT ( * ) + 13
----
14

query I rowsort
SELECT ALL - COALESCE ( 26, 20 )
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT DISTINCT - 99 + - + 23 * + + 90 - + SUM( ALL - + 58 ) AS col2
----
-2111

skipif mysql # not compatible
query I rowsort label-9314
SELECT DISTINCT - 99 + - + 23 * + + 90 - + SUM ( ALL - + 58 ) AS col2
----
-2111

query I rowsort
SELECT DISTINCT - ( - + 73 ) AS col2
----
73

query I rowsort
SELECT ALL - 81 + - + 60 AS col0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT ALL + 26 DIV + 86
----
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL + 26 / + 86
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9318
SELECT 53 col1, COUNT( * ) + COUNT( * ) * + CASE - 27 WHEN - - 40 THEN + 62 ELSE NULL END AS col0
----
53
NULL

skipif mysql # not compatible
query II rowsort label-9318
SELECT 53 col1, COUNT ( * ) + COUNT ( * ) * + CASE - 27 WHEN - - 40 THEN + 62 ELSE NULL END AS col0
----
53
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9319
SELECT ALL - NULLIF ( + + SUM( 93 ), - 9 ) col1, COUNT( * ) AS col2
----
-93
1

skipif mysql # not compatible
query II rowsort label-9319
SELECT ALL - NULLIF ( + + SUM ( 93 ), - 9 ) col1, COUNT ( * ) AS col2
----
-93
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9320
SELECT COUNT( * ) * + + 4 * + 96 + - 20 AS col1
----
364

skipif mysql # not compatible
query I rowsort label-9320
SELECT COUNT ( * ) * + + 4 * + 96 + - 20 AS col1
----
364

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT COUNT( * ) + - 91 * MIN( ALL COALESCE ( + 38, + 36 ) )
----
-3457

skipif mysql # not compatible
query I rowsort label-9321
SELECT COUNT ( * ) + - 91 * MIN ( ALL COALESCE ( + 38, + 36 ) )
----
-3457

query I rowsort
SELECT DISTINCT 79 * 24 AS col1
----
1896

query I rowsort
SELECT ALL 37 - - 12 + 78
----
127

query II rowsort
SELECT 48 AS col2, + ( + + 65 )
----
48
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL COUNT( * ) * ( + + COUNT( * ) ) col2
----
1

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL COUNT ( * ) * ( + + COUNT ( * ) ) col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT COUNT( * ) + - COUNT( DISTINCT + - 53 )
----
0

skipif mysql # not compatible
query I rowsort label-9326
SELECT COUNT ( * ) + - COUNT ( DISTINCT + - 53 )
----
0

query I rowsort
SELECT DISTINCT + 46 * 81 * - ( - ( + 63 ) ) * - 20 * + + 71
----
-333327960

onlyif mysql # aggregate syntax: 
query II rowsort label-9328
SELECT + 77 AS col0, 86 * - + CASE 63 WHEN COUNT( * ) - - + 96 THEN - 14 + + ( ( 22 ) ) ELSE NULL END + - 62 + - + 85
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9328
SELECT + 77 AS col0, 86 * - + CASE 63 WHEN COUNT ( * ) - - + 96 THEN - 14 + + ( ( 22 ) ) ELSE NULL END + - 62 + - + 85
----
77
NULL

query I rowsort
SELECT ALL 73 * - 99 * - 60 + - 13 AS col0
----
433607

query I rowsort
SELECT + 42 * + 83 AS col0
----
3486

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9331
SELECT 62 AS col1, - CAST( + 90 AS SIGNED ) AS col1
----
62
-90

skipif mysql # not compatible
query II rowsort label-9331
SELECT 62 AS col1, - CAST ( + 90 AS INTEGER ) AS col1
----
62
-90

query I rowsort
SELECT CASE WHEN ( NULL ) IS NULL THEN 14 ELSE + 78 END AS col0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT COUNT( * ) * + NULLIF ( 81, + - 12 + + - 92 )
----
81

skipif mysql # not compatible
query I rowsort label-9333
SELECT COUNT ( * ) * + NULLIF ( 81, + - 12 + + - 92 )
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9334
SELECT ALL COALESCE ( CAST( NULL AS SIGNED ), + - 82, + - COUNT( * ) ) col1
----
-82

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL COALESCE ( CAST ( NULL AS INTEGER ), + - 82, + - COUNT ( * ) ) col1
----
-82

onlyif mysql # aggregate syntax: 
query II rowsort label-9335
SELECT - COUNT( * ) col0, + 53 - 72
----
-1
-19

skipif mysql # not compatible
query II rowsort label-9335
SELECT - COUNT ( * ) col0, + 53 - 72
----
-1
-19

query I rowsort
SELECT 41 + - 45 AS col0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-9337
SELECT DISTINCT 18 DIV + + 61 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT 18 / + + 61 AS col2
----
0

query I rowsort
SELECT DISTINCT - COALESCE ( + + 38, + 22 )
----
-38

query II rowsort
SELECT DISTINCT 6, 29 - + 84 AS col2
----
6
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL 36 * + COUNT( * )
----
36

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL 36 * + COUNT ( * )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT - MIN( ALL - 97 ) AS col0
----
97

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT - MIN ( ALL - 97 ) AS col0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9342
SELECT ALL - CAST( - - MAX( ALL - 4 ) AS SIGNED ) AS col2
----
4

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL - CAST ( - - MAX ( ALL - 4 ) AS INTEGER ) AS col2
----
4

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9343
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + 79 * + + CAST( - 10 AS DECIMAL ) * - - 54
----
NULL

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + 79 * + + CAST ( - 10 AS REAL ) * - - 54
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL - COUNT( * ) * + - CASE 42 WHEN 40 THEN NULL WHEN 65 + 81 THEN NULL ELSE NULLIF ( - ( 50 ), - 13 * - 19 + - + SUM( DISTINCT - - 9 ) / - 56 - 54 + + 91 + + 71 ) END + - COUNT( * ) AS col0
----
-51

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL - COUNT ( * ) * + - CASE 42 WHEN 40 THEN NULL WHEN 65 + 81 THEN NULL ELSE NULLIF ( - ( 50 ), - 13 * - 19 + - + SUM ( DISTINCT - - 9 ) / - 56 - 54 + + 91 + + 71 ) END + - COUNT ( * ) AS col0
----
-51

query II rowsort
SELECT 97 + - - 30 AS col2, COALESCE ( ( 16 ), 40 ) AS col2
----
127
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT ALL COUNT( * ) * - 51 AS col1
----
-51

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL COUNT ( * ) * - 51 AS col1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT MIN( ALL - 82 ) * 90 * 27 AS col2
----
-199260

skipif mysql # not compatible
query I rowsort label-9347
SELECT MIN ( ALL - 82 ) * 90 * 27 AS col2
----
-199260

query II rowsort
SELECT ALL - 76 * + COALESCE ( 29, - 70 ), + 41 AS col0
----
-2204
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9349
SELECT + 32 DIV + - COUNT( * ) - - + 74
----
42

skipif mysql # not compatible
query I rowsort label-9349
SELECT + 32 / + - COUNT ( * ) - - + 74
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL ( - CASE + 72 WHEN + COUNT( * ) THEN 81 END ) + - COUNT( * )
----
NULL

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL ( - CASE + 72 WHEN + COUNT ( * ) THEN 81 END ) + - COUNT ( * )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT ALL ( - COUNT( * ) ) * - + 45 * + 81 AS col0
----
3645

skipif mysql # not compatible
query I rowsort label-9351
SELECT ALL ( - COUNT ( * ) ) * - + 45 * + 81 AS col0
----
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT DISTINCT - NULLIF ( + + 56, - COUNT( ALL - 35 ) * + 40 + + 33 * 53 - - 83 ) AS col0
----
-56

skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT - NULLIF ( + + 56, - COUNT ( ALL - 35 ) * + 40 + + 33 * 53 - - 83 ) AS col0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT 57 + - ( 59 ) + COUNT( * ) * + 12
----
10

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT 57 + - ( 59 ) + COUNT ( * ) * + 12
----
10

query I rowsort
SELECT DISTINCT 15 + 96
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL - 95 + - 37 + - 22 * + - ( CASE 99 WHEN 41 + - 0 THEN NULL WHEN 32 THEN NULL ELSE - CASE - 82 WHEN - + 69 + SUM( DISTINCT - 28 ) * ( - 70 ) THEN + COUNT( * ) / COUNT( * ) WHEN - - 90 THEN NULL END END ) * - - 83 * + - 59 + + + COUNT( * ) - + + 36 - CASE + COUNT( * ) WHEN 0 + - COUNT( * ) THEN NULL WHEN 6 THEN + 78 WHEN + 82 + + 37 THEN NULL ELSE 42 END - - 50 / + 28 * + 67
----
NULL

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL - 95 + - 37 + - 22 * + - ( CASE 99 WHEN 41 + - 0 THEN NULL WHEN 32 THEN NULL ELSE - CASE - 82 WHEN - + 69 + SUM ( DISTINCT - 28 ) * ( - 70 ) THEN + COUNT ( * ) / COUNT ( * ) WHEN - - 90 THEN NULL END END ) * - - 83 * + - 59 + + + COUNT ( * ) - + + 36 - CASE + COUNT ( * ) WHEN 0 + - COUNT ( * ) THEN NULL WHEN 6 THEN + 78 WHEN + 82 + + 37 THEN NULL ELSE 42 END - - 50 / + 28 * + 67
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9356
SELECT 6 * 0 DIV 29
----
0

skipif mysql # not compatible
query I rowsort label-9356
SELECT 6 * 0 / 29
----
0

query I rowsort
SELECT ALL + 22 * + 52 AS col2
----
1144

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT - 68 - COUNT( * )
----
-69

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT - 68 - COUNT ( * )
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT DISTINCT + COALESCE ( - + 91, COUNT( * ) ) * + 24
----
-2184

skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT + COALESCE ( - + 91, COUNT ( * ) ) * + 24
----
-2184

query I rowsort
SELECT ALL - 50 - + 90 AS col1
----
-140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL - CAST( + ( 12 ) AS SIGNED ) AS col2
----
-12

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - CAST ( + ( 12 ) AS INTEGER ) AS col2
----
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-9362
SELECT ALL + MAX( DISTINCT - 14 ) * - ( MAX( ALL 2 ) ) * - - 31 + - - 56 * - 23 * - 36 + + 85 + - - MAX( ALL - 8 ) + - NULLIF ( - 44, - - COUNT( * ) ), - 48 AS col2
----
47357
-48

skipif mysql # not compatible
query II rowsort label-9362
SELECT ALL + MAX ( DISTINCT - 14 ) * - ( MAX ( ALL 2 ) ) * - - 31 + - - 56 * - 23 * - 36 + + 85 + - - MAX ( ALL - 8 ) + - NULLIF ( - 44, - - COUNT ( * ) ), - 48 AS col2
----
47357
-48

query I rowsort
SELECT ALL + 50 - - 61
----
111

query II rowsort
SELECT 86 * + + 85 AS col1, 35 * + 8 * - - 65
----
7310
18200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9365
SELECT + CAST( NULL AS SIGNED ) * 52 - 17 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9365
SELECT + CAST ( NULL AS INTEGER ) * 52 - 17 AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT - MAX( - - 55 )
----
-55

skipif mysql # not compatible
query I rowsort label-9366
SELECT - MAX ( - - 55 )
----
-55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9367
SELECT ( + - 8 ) + - CAST( + + 46 AS SIGNED ) + 6 + SUM( ALL - 45 )
----
-93

skipif mysql # not compatible
query I rowsort label-9367
SELECT ( + - 8 ) + - CAST ( + + 46 AS INTEGER ) + 6 + SUM ( ALL - 45 )
----
-93

query II rowsort
SELECT DISTINCT - NULLIF ( + + ( 30 ), - 98 - - 5 ), 13 - ( 9 ) AS col1
----
-30
4

query I rowsort
SELECT - + 58 col0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9370
SELECT ALL + COUNT( ALL 68 ) * + 26
----
26

skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL + COUNT ( ALL 68 ) * + 26
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT DISTINCT - NULLIF ( 37, 90 * + 60 * + + 98 * + + 60 ) + CASE - 73 WHEN - + COUNT( * ) THEN + - COUNT( * ) WHEN + COUNT( * ) THEN NULL END - - 70 * + ( - COUNT( - + 82 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - NULLIF ( 37, 90 * + 60 * + + 98 * + + 60 ) + CASE - 73 WHEN - + COUNT ( * ) THEN + - COUNT ( * ) WHEN + COUNT ( * ) THEN NULL END - - 70 * + ( - COUNT ( - + 82 ) ) AS col2
----
NULL

query I rowsort
SELECT ALL + + CASE + - 82 WHEN - 82 THEN + - 53 WHEN 1 THEN + 93 END * - 9 * - 17
----
-8109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9373
SELECT CASE CAST( NULL AS SIGNED ) WHEN + 0 + + 18 THEN NULL WHEN - 81 THEN 76 ELSE - + 25 END AS col0, + 64 + 91 AS col1
----
-25
155

skipif mysql # not compatible
query II rowsort label-9373
SELECT CASE CAST ( NULL AS INTEGER ) WHEN + 0 + + 18 THEN NULL WHEN - 81 THEN 76 ELSE - + 25 END AS col0, + 64 + 91 AS col1
----
-25
155

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT + 17 + COUNT( * ) AS col2
----
18

skipif mysql # not compatible
query I rowsort label-9374
SELECT + 17 + COUNT ( * ) AS col2
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9375
SELECT ALL - 96 + ( + + SUM( + + CAST( NULL AS SIGNED ) ) ) * - - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - 96 + ( + + SUM ( + + CAST ( NULL AS INTEGER ) ) ) * - - 39
----
NULL

query I rowsort
SELECT - + 68 col0
----
-68

query I rowsort
SELECT + NULLIF ( 97, - - 34 ) AS col0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT DISTINCT 96 + + 13 * COUNT( * ) AS col0
----
109

skipif mysql # not compatible
query I rowsort label-9378
SELECT DISTINCT 96 + + 13 * COUNT ( * ) AS col0
----
109

query II rowsort
SELECT - + 16 + + 46 AS col1, + 61 AS col1
----
30
61

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT - - COALESCE ( - + 57, - 9 + COUNT( DISTINCT - 79 ) ) + - + 67 * - - 14
----
-995

skipif mysql # not compatible
query I rowsort label-9380
SELECT - - COALESCE ( - + 57, - 9 + COUNT ( DISTINCT - 79 ) ) + - + 67 * - - 14
----
-995

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT + 53 - - NULLIF ( - ( - CASE - + 38 WHEN - - 32 / 63 THEN 84 WHEN 13 THEN 41 END ), + MIN( DISTINCT - 71 ) ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT + 53 - - NULLIF ( - ( - CASE - + 38 WHEN - - 32 / 63 THEN 84 WHEN 13 THEN 41 END ), + MIN ( DISTINCT - 71 ) ) AS col2
----
NULL

query I rowsort
SELECT + 97 + - 58 + + - 69 + 87 * 44 * - 9
----
-34482

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9383
SELECT ALL CAST( NULL AS SIGNED ) * + 69 + - COALESCE ( - - ( + + 9 ), - CASE - COUNT( * ) WHEN 1 THEN - + 47 * + COUNT( * ) ELSE NULL END * + - CAST( + 65 AS SIGNED ) - + + 88 * + COUNT( * ) + + 56, + 30 / 75 + COALESCE ( - 70, COUNT( * ) ) ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL CAST ( NULL AS INTEGER ) * + 69 + - COALESCE ( - - ( + + 9 ), - CASE - COUNT ( * ) WHEN 1 THEN - + 47 * + COUNT ( * ) ELSE NULL END * + - CAST ( + 65 AS INTEGER ) - + + 88 * + COUNT ( * ) + + 56, + 30 / 75 + COALESCE ( - 70, COUNT ( * ) ) ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT + SUM( ALL - 83 )
----
-83

skipif mysql # not compatible
query I rowsort label-9384
SELECT + SUM ( ALL - 83 )
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9385
SELECT DISTINCT 94 * - COUNT( * ) + + 63 + COUNT( * ) DIV + + 20 + + 70
----
39

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT 94 * - COUNT ( * ) + + 63 + COUNT ( * ) / + + 20 + + 70
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT ALL 74 * + COUNT( * ) AS col0
----
74

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL 74 * + COUNT ( * ) AS col0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT NULLIF ( - 25, - 83 ) AS col2, + 61 * + COUNT( * ) col0
----
-25
61

skipif mysql # not compatible
query II rowsort label-9387
SELECT NULLIF ( - 25, - 83 ) AS col2, + 61 * + COUNT ( * ) col0
----
-25
61

query I rowsort
SELECT + COALESCE ( - ( - 59 ), - 72 ) AS col1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT + CASE - 43 WHEN + 88 * MIN( 85 ) * + + COUNT( - 19 ) + - - 89 - 84 + + - 65 THEN + 72 END * 61 + - COALESCE ( - + ( - 53 ), - CASE COUNT( * ) WHEN - - 24 THEN + COUNT( * ) WHEN - - 79 * - COUNT( * ) * - 79 THEN NULL WHEN - 77 / + - 60 + + - 57 + + - 35 / - 30 THEN + 61 ELSE + ( + 77 ) * + + 47 + + 28 END + - 25 ) + 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9389
SELECT + CASE - 43 WHEN + 88 * MIN ( 85 ) * + + COUNT ( - 19 ) + - - 89 - 84 + + - 65 THEN + 72 END * 61 + - COALESCE ( - + ( - 53 ), - CASE COUNT ( * ) WHEN - - 24 THEN + COUNT ( * ) WHEN - - 79 * - COUNT ( * ) * - 79 THEN NULL WHEN - 77 / + - 60 + + - 57 + + - 35 / - 30 THEN + 61 ELSE + ( + 77 ) * + + 47 + + 28 END + - 25 ) + 33
----
NULL

query I rowsort
SELECT DISTINCT 9 * - 41 AS col1
----
-369

query I rowsort
SELECT ALL 68 * - + 57
----
-3876

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9392
SELECT + 33 DIV + - ( - SUM( - 45 ) ) * + - 16 * NULLIF ( + - 5, 48 * - 19 DIV + + 49 ) DIV + ( 17 ) + + COUNT( DISTINCT - 75 ) - - 9 col0
----
10

skipif mysql # not compatible
query I rowsort label-9392
SELECT + 33 / + - ( - SUM ( - 45 ) ) * + - 16 * NULLIF ( + - 5, 48 * - 19 / + + 49 ) / + ( 17 ) + + COUNT ( DISTINCT - 75 ) - - 9 col0
----
10

onlyif mysql # aggregate syntax: 
query II rowsort label-9393
SELECT MAX( ALL 40 ) / - + CASE - 59 WHEN + 15 THEN + 79 + + - 93 ELSE NULL END + + + 26, 52 * - 23 AS col2
----
NULL
-1196

skipif mysql # not compatible
query II rowsort label-9393
SELECT MAX ( ALL 40 ) / - + CASE - 59 WHEN + 15 THEN + 79 + + - 93 ELSE NULL END + + + 26, 52 * - 23 AS col2
----
NULL
-1196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9394
SELECT + CAST( NULL AS SIGNED ) + 32 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT + CAST ( NULL AS INTEGER ) + 32 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT + CASE + - 74 WHEN + 20 * - 75 / + 94 * - - MIN( DISTINCT + 96 ) THEN NULL WHEN + 19 + + + 70 + - 6 * + 92 THEN + + 60 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT + CASE + - 74 WHEN + 20 * - 75 / + 94 * - - MIN ( DISTINCT + 96 ) THEN NULL WHEN + 19 + + + 70 + - 6 * + 92 THEN + + 60 END
----
NULL

query II rowsort
SELECT ALL + 61 AS col1, - 2
----
61
-2

query II rowsort
SELECT ALL + 32, ( - + 38 ) AS col2
----
32
-38

query I rowsort
SELECT ALL + ( + + 48 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT MIN( DISTINCT + 90 ) AS col1
----
90

skipif mysql # not compatible
query I rowsort label-9399
SELECT MIN ( DISTINCT + 90 ) AS col1
----
90

query I rowsort
SELECT - ( - 79 ) * - 90 * - + 74 + 30
----
526170

query I rowsort
SELECT + 43 * + 67 AS col2
----
2881

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT - 49 + - - COUNT( * ) col2
----
-48

skipif mysql # not compatible
query I rowsort label-9402
SELECT - 49 + - - COUNT ( * ) col2
----
-48

query I rowsort
SELECT ALL - - 16 * - 75
----
-1200

onlyif mysql # aggregate syntax: 
query II rowsort label-9404
SELECT + ( - COUNT( * ) ) + + - 29 AS col2, + 11 AS col0
----
-30
11

skipif mysql # not compatible
query II rowsort label-9404
SELECT + ( - COUNT ( * ) ) + + - 29 AS col2, + 11 AS col0
----
-30
11

query I rowsort
SELECT - 94 + + 45
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT DISTINCT - 94 * - COALESCE ( - - 44, + + 3 - + 29 ) * - + COUNT( * ) AS col0
----
-4136

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT - 94 * - COALESCE ( - - 44, + + 3 - + 29 ) * - + COUNT ( * ) AS col0
----
-4136

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT ALL COALESCE ( + 53, + 1 ) DIV - 18 col1
----
-2

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL COALESCE ( + 53, + 1 ) / - 18 col1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT - NULLIF ( - + SUM( - 78 ), 90 )
----
-78

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT - NULLIF ( - + SUM ( - 78 ), 90 )
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT ALL SUM( DISTINCT - - 78 ) AS col1
----
78

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL SUM ( DISTINCT - - 78 ) AS col1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT DISTINCT - 50 * - SUM( DISTINCT 94 )
----
4700

skipif mysql # not compatible
query I rowsort label-9410
SELECT DISTINCT - 50 * - SUM ( DISTINCT 94 )
----
4700

query I rowsort
SELECT DISTINCT COALESCE ( - 62, - 24 - 85 ) AS col1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT - - SUM( - + ( - 1 ) )
----
1

skipif mysql # not compatible
query I rowsort label-9412
SELECT - - SUM ( - + ( - 1 ) )
----
1

query I rowsort
SELECT ALL - + 41 + + ( 72 ) col2
----
31

onlyif mysql # aggregate syntax: 
query II rowsort label-9414
SELECT - - 6 + 20 - COUNT( * ) + + - 13 AS col2, 33 AS col1
----
12
33

skipif mysql # not compatible
query II rowsort label-9414
SELECT - - 6 + 20 - COUNT ( * ) + + - 13 AS col2, 33 AS col1
----
12
33

query I rowsort
SELECT ALL - 0 + - 11
----
-11

query II rowsort
SELECT ALL 36 AS col1, 60 * 99
----
36
5940

query I rowsort
SELECT + - 37 * - ( - 2 )
----
-74

query I rowsort
SELECT - + 31 + - 11 * + - CASE - + ( - + 14 ) WHEN + + 73 THEN + 33 WHEN + - ( 14 ) + + ( + 44 ) + 95 - + + 47 + + 57 THEN NULL END * - + 47
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9419
SELECT - - 56 DIV + ( - 58 ) * + + 75 + 61 + - 22
----
39

skipif mysql # not compatible
query I rowsort label-9419
SELECT - - 56 / + ( - 58 ) * + + 75 + 61 + - 22
----
39

query II rowsort
SELECT + ( 44 ) + + 38 col2, 55
----
82
55

query II rowsort
SELECT - 14 AS col0, 22 AS col2
----
-14
22

query II rowsort
SELECT DISTINCT ( NULLIF ( + 45, - 48 ) ) AS col1, + 91 col2
----
45
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT ALL + + 48 + - 5 + - COUNT( * ) + + - 7 + - 18 + 96 / - + CASE - + COUNT( * ) WHEN + - 82 / COUNT( * ) THEN NULL WHEN - + 87 + - AVG ( - 55 ) THEN - + 16 WHEN + 92 THEN + + 78 + - 83 END * + 93 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + + 48 + - 5 + - COUNT ( * ) + + - 7 + - 18 + 96 / - + CASE - + COUNT ( * ) WHEN + - 82 / COUNT ( * ) THEN NULL WHEN - + 87 + - AVG ( - 55 ) THEN - + 16 WHEN + 92 THEN + + 78 + - 83 END * + 93 AS col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9424
SELECT DISTINCT + CASE 68 WHEN - 77 + + 16 THEN NULL ELSE + CAST( COUNT( + 52 ) AS DECIMAL ) * 72 * + 62 END + - - CAST( NULL AS SIGNED ) + 56 + + ( + - 63 ) + 39 * - 53 * + + 75 AS col2, + 59 AS col1
----
NULL
59

skipif mysql # not compatible
query II rowsort label-9424
SELECT DISTINCT + CASE 68 WHEN - 77 + + 16 THEN NULL ELSE + CAST ( COUNT ( + 52 ) AS REAL ) * 72 * + 62 END + - - CAST ( NULL AS INTEGER ) + 56 + + ( + - 63 ) + 39 * - 53 * + + 75 AS col2, + 59 AS col1
----
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT ALL SUM( DISTINCT 81 ) + - + 30
----
51

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL SUM ( DISTINCT 81 ) + - + 30
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT ALL ( - - COALESCE ( - + COUNT( * ), - 57 ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL ( - - COALESCE ( - + COUNT ( * ), - 57 ) )
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT - 39 + 97, - 38 * - - 78 * - NULLIF ( + 26, + - COUNT( * ) + - 89 * 58 * + SUM( + 20 ) - COUNT( * ) ) * + + 75 col1
----
58
5779800

skipif mysql # not compatible
query II rowsort label-9427
SELECT - 39 + 97, - 38 * - - 78 * - NULLIF ( + 26, + - COUNT ( * ) + - 89 * 58 * + SUM ( + 20 ) - COUNT ( * ) ) * + + 75 col1
----
58
5779800

query I rowsort
SELECT - COALESCE ( - 95, 47 * + - 56 * ( + - 4 ) + + 89 )
----
95

query I rowsort
SELECT - 57 * - - ( - 14 ) AS col2
----
798

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT + 63 * - + COUNT( * )
----
-63

skipif mysql # not compatible
query I rowsort label-9430
SELECT + 63 * - + COUNT ( * )
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9431
SELECT CAST( + 80 AS SIGNED ) AS col2
----
80

skipif mysql # not compatible
query I rowsort label-9431
SELECT CAST ( + 80 AS INTEGER ) AS col2
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9432
SELECT DISTINCT + ( + + CASE + + ( ( - + 61 ) ) WHEN 31 THEN NULL ELSE - NULLIF ( + - CAST( NULL AS DECIMAL ), - 22 * - 52 ) END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT + ( + + CASE + + ( ( - + 61 ) ) WHEN 31 THEN NULL ELSE - NULLIF ( + - CAST ( NULL AS REAL ), - 22 * - 52 ) END )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL MIN( DISTINCT 74 ) * 66 * - + 18 + - 94 AS col1
----
-88006

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL MIN ( DISTINCT 74 ) * 66 * - + 18 + - 94 AS col1
----
-88006

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9434
SELECT CAST( - 42 AS SIGNED ) col1, 69 AS col0
----
-42
69

skipif mysql # not compatible
query II rowsort label-9434
SELECT CAST ( - 42 AS INTEGER ) col1, 69 AS col0
----
-42
69

onlyif mysql # DIV for integer division: 
query II rowsort label-9435
SELECT DISTINCT 2 DIV - - 39, 80 AS col0
----
0
80

skipif mysql # not compatible
query II rowsort label-9435
SELECT DISTINCT 2 / - - 39, 80 AS col0
----
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT + COUNT( DISTINCT - 41 ) AS col0
----
1

skipif mysql # not compatible
query I rowsort label-9436
SELECT + COUNT ( DISTINCT - 41 ) AS col0
----
1

query I rowsort
SELECT ( + 94 ) AS col1
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT + NULLIF ( - 22, 91 ) DIV 20 + + 50 - 67 + - 25
----
-43

skipif mysql # not compatible
query I rowsort label-9438
SELECT + NULLIF ( - 22, 91 ) / 20 + + 50 - 67 + - 25
----
-43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9439
SELECT + 61 * + COUNT( * ), - 70 DIV + - 53 col1
----
61
1

skipif mysql # not compatible
query II rowsort label-9439
SELECT + 61 * + COUNT ( * ), - 70 / + - 53 col1
----
61
1

query I rowsort
SELECT + 25 * + 17 col0
----
425

query I rowsort
SELECT ( + NULLIF ( + - 5, + 48 + + CASE - 35 WHEN 93 THEN - 71 ELSE + 95 END + + ( - 68 ) * 59 ) )
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT ALL + + MAX( + 94 ) AS col1
----
94

skipif mysql # not compatible
query I rowsort label-9442
SELECT ALL + + MAX ( + 94 ) AS col1
----
94

query I rowsort
SELECT DISTINCT + - 28
----
-28

query II rowsort
SELECT ALL 1 * + + 92 + - 76 + 57 AS col0, 29 + - + 74
----
73
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT COALESCE ( + 88, - 28, + NULLIF ( + 47, COUNT( * ) * - + ( + 18 ) / + 99 ) )
----
88

skipif mysql # not compatible
query I rowsort label-9445
SELECT COALESCE ( + 88, - 28, + NULLIF ( + 47, COUNT ( * ) * - + ( + 18 ) / + 99 ) )
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT ALL + 75 * - - SUM( - + 90 ) + 96
----
-6654

skipif mysql # not compatible
query I rowsort label-9446
SELECT ALL + 75 * - - SUM ( - + 90 ) + 96
----
-6654

query II rowsort
SELECT 66 * 78 - + 18 + 40, - 90 AS col1
----
5170
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT 6 + - - COUNT( * )
----
7

skipif mysql # not compatible
query I rowsort label-9448
SELECT 6 + - - COUNT ( * )
----
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9449
SELECT DISTINCT + ( - 15 ) DIV COUNT( * ) * 59 * 65 AS col2
----
-57525

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT + ( - 15 ) / COUNT ( * ) * 59 * 65 AS col2
----
-57525

query I rowsort
SELECT ALL 69 + + - 58
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT - COALESCE ( + MAX( + 43 ), CASE - 15 WHEN - COUNT( * ) * - 70 THEN NULL WHEN - 91 * 18 THEN NULL WHEN - 20 THEN + 44 + - + 55 + NULLIF ( + - ( - 66 ), - NULLIF ( - 63, + MAX( ALL + 28 ) * + + COUNT( * ) * + COUNT( * ) + - ( 82 ) ) ) * 0 ELSE NULL END ) + ( 75 ) * + + 54 + - 22
----
3985

skipif mysql # not compatible
query I rowsort label-9451
SELECT - COALESCE ( + MAX ( + 43 ), CASE - 15 WHEN - COUNT ( * ) * - 70 THEN NULL WHEN - 91 * 18 THEN NULL WHEN - 20 THEN + 44 + - + 55 + NULLIF ( + - ( - 66 ), - NULLIF ( - 63, + MAX ( ALL + 28 ) * + + COUNT ( * ) * + COUNT ( * ) + - ( 82 ) ) ) * 0 ELSE NULL END ) + ( 75 ) * + + 54 + - 22
----
3985

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - AVG ( 9 ) + 72 * + 20 - CASE COUNT( * ) WHEN ( - SUM( ALL + ( - 90 ) ) ) - + 82 THEN - - 12 + + 39 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9452
SELECT - AVG ( 9 ) + 72 * + 20 - CASE COUNT ( * ) WHEN ( - SUM ( ALL + ( - 90 ) ) ) - + 82 THEN - - 12 + + 39 END
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9453
SELECT DISTINCT + 77 DIV + - 38
----
-2

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT + 77 / + - 38
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-9454
SELECT ALL + COUNT( * ) + 66 AS col2, 78
----
67
78

skipif mysql # not compatible
query II rowsort label-9454
SELECT ALL + COUNT ( * ) + 66 AS col2, 78
----
67
78

query II rowsort
SELECT ALL + + 21 - - 14 AS col1, + 10 * 84 * + 87 + 91
----
35
73171

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + 88 + - COUNT( * )
----
87

skipif mysql # not compatible
query I rowsort label-9456
SELECT + 88 + - COUNT ( * )
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9457
SELECT ALL CASE - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) WHEN + 92 THEN + SUM( DISTINCT + + ( 72 ) ) * - 83 WHEN - - CAST( 50 AS SIGNED ) THEN NULL END * + ( - 95 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL CASE - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) WHEN + 92 THEN + SUM ( DISTINCT + + ( 72 ) ) * - 83 WHEN - - CAST ( 50 AS INTEGER ) THEN NULL END * + ( - 95 ) AS col1
----
NULL

query I rowsort
SELECT - 1 + 46
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT ALL - 53 - + 17 + - COUNT( * ) AS col2
----
-71

skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL - 53 - + 17 + - COUNT ( * ) AS col2
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9460
SELECT ( NULLIF ( 83, - NULLIF ( 37, 39 DIV 83 * ( - 54 ) * - 14 DIV 27 + - 13 ) ) ) DIV 99 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT ( NULLIF ( 83, - NULLIF ( 37, 39 / 83 * ( - 54 ) * - 14 / 27 + - 13 ) ) ) / 99 AS col2
----
0

query I rowsort
SELECT 97 * - - 32
----
3104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9462
SELECT ALL + 90 DIV - + COUNT( * )
----
-90

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + 90 / - + COUNT ( * )
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT 71 + + 30 - 84 * - 3 + - MIN( ALL - 16 ) AS col0
----
369

skipif mysql # not compatible
query I rowsort label-9463
SELECT 71 + + 30 - 84 * - 3 + - MIN ( ALL - 16 ) AS col0
----
369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9464
SELECT 6 * 35 * + 78 * + MIN( ALL - 58 ) / 44 * + - CAST( NULL AS SIGNED ) * - 88 * + + COUNT( * ) + 54 / + + NULLIF ( COUNT( * ), - 25 * + MAX( ALL - 89 ) - + 73 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9464
SELECT 6 * 35 * + 78 * + MIN ( ALL - 58 ) / 44 * + - CAST ( NULL AS INTEGER ) * - 88 * + + COUNT ( * ) + 54 / + + NULLIF ( COUNT ( * ), - 25 * + MAX ( ALL - 89 ) - + 73 ) AS col1
----
NULL

query II rowsort
SELECT - 21 AS col2, - CASE + + 59 WHEN + 40 * - 15 THEN - - 52 WHEN + + 55 THEN NULL ELSE NULL END * + 0
----
-21
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9466
SELECT 80 + COUNT( * ) - 34, COUNT( * ) + COALESCE ( - - COUNT( * ), - 71, - 58 ) * - 56 + - 30 AS col0
----
47
-85

skipif mysql # not compatible
query II rowsort label-9466
SELECT 80 + COUNT ( * ) - 34, COUNT ( * ) + COALESCE ( - - COUNT ( * ), - 71, - 58 ) * - 56 + - 30 AS col0
----
47
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL - 91 * COUNT( * ) col0
----
-91

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL - 91 * COUNT ( * ) col0
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2
----
-1

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2
----
-1

query I rowsort
SELECT ALL - ( + 69 )
----
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-9470
SELECT + 87, MIN( DISTINCT + - 86 ) AS col1, - 26 + + - CAST( 76 AS SIGNED ) + 34 AS col0
----
87
-86
-68

skipif mysql # not compatible
query III rowsort label-9470
SELECT + 87, MIN ( DISTINCT + - 86 ) AS col1, - 26 + + - CAST ( 76 AS INTEGER ) + 34 AS col0
----
87
-86
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT ALL - COUNT( * ) * 53
----
-53

skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL - COUNT ( * ) * 53
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-9472
SELECT 86 * + + 97 * NULLIF ( - 76, - COUNT( * ) ) col1
----
-633992

skipif mysql # not compatible
query I rowsort label-9472
SELECT 86 * + + 97 * NULLIF ( - 76, - COUNT ( * ) ) col1
----
-633992

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9473
SELECT ALL - CASE + ( 82 ) WHEN + 99 THEN + 74 WHEN + 21 * + COALESCE ( + - ( - AVG ( - + 38 ) ), + CAST( CASE ( 68 ) WHEN - + 39 - - - 18 + - + 36 THEN NULL WHEN - 91 * 22 * 69 * + 80 THEN NULL ELSE - CAST( NULL AS DECIMAL ) + + COUNT( * ) END AS SIGNED ), 56 * + 55 * + COUNT( * ) * - 34 ) THEN - 91 WHEN + + 99 THEN + COUNT( * ) + COUNT( * ) / - + 94 * + 76 / + 96 ELSE 21 / - CASE + CAST( 70 AS SIGNED ) * 6 WHEN + 25 + + 27 / 38 THEN 26 END END * 9
----
NULL

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - CASE + ( 82 ) WHEN + 99 THEN + 74 WHEN + 21 * + COALESCE ( + - ( - AVG ( - + 38 ) ), + CAST ( CASE ( 68 ) WHEN - + 39 - - - 18 + - + 36 THEN NULL WHEN - 91 * 22 * 69 * + 80 THEN NULL ELSE - CAST ( NULL AS REAL ) + + COUNT ( * ) END AS INTEGER ), 56 * + 55 * + COUNT ( * ) * - 34 ) THEN - 91 WHEN + + 99 THEN + COUNT ( * ) + COUNT ( * ) / - + 94 * + 76 / + 96 ELSE 21 / - CASE + CAST ( 70 AS INTEGER ) * 6 WHEN + 25 + + 27 / 38 THEN 26 END END * 9
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9474
SELECT - 78 / - 3 + + - CAST( NULL AS SIGNED ) col1, + 71 AS col1
----
NULL
71

skipif mysql # not compatible
query II rowsort label-9474
SELECT - 78 / - 3 + + - CAST ( NULL AS INTEGER ) col1, + 71 AS col1
----
NULL
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT COUNT( * ) * - 11 AS col2
----
-11

skipif mysql # not compatible
query I rowsort label-9475
SELECT COUNT ( * ) * - 11 AS col2
----
-11

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9476
SELECT DISTINCT CASE + 38 WHEN + 70 THEN NULL WHEN - 56 THEN - 49 WHEN + + 95 * + - ( - NULLIF ( + 40, + 65 * 87 - + 95 - + 71 + - ( 63 ) ) ) THEN NULL END + - ( - - 50 ) * - 77 * + 72 + - + 34 - - 61 + - CAST( + 38 AS DECIMAL ) * + COALESCE ( - 19, + - 57 - 31 + + + 21, SUM( DISTINCT 10 ) + - - 4 ) * + 48 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT DISTINCT CASE + 38 WHEN + 70 THEN NULL WHEN - 56 THEN - 49 WHEN + + 95 * + - ( - NULLIF ( + 40, + 65 * 87 - + 95 - + 71 + - ( 63 ) ) ) THEN NULL END + - ( - - 50 ) * - 77 * + 72 + - + 34 - - 61 + - CAST ( + 38 AS REAL ) * + COALESCE ( - 19, + - 57 - 31 + + + 21, SUM ( DISTINCT 10 ) + - - 4 ) * + 48 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9477
SELECT ALL + CAST( 97 AS SIGNED ) + - - 40 * + 21 AS col0
----
937

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + CAST ( 97 AS INTEGER ) + - - 40 * + 21 AS col0
----
937

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT + - MAX( DISTINCT - + 38 ) AS col0
----
38

skipif mysql # not compatible
query I rowsort label-9478
SELECT + - MAX ( DISTINCT - + 38 ) AS col0
----
38

query II rowsort
SELECT - ( - 86 ) + + 75 AS col2, ( + 38 ) AS col2
----
161
38

query I rowsort
SELECT DISTINCT + - 32 + 73 AS col0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9481
SELECT - 61 * 3 + - CASE - COUNT( * ) WHEN + CAST( NULL AS DECIMAL ) * + - 17 THEN + 48 * - 6 + - - CAST( NULL AS SIGNED ) + - CASE - 92 WHEN - COALESCE ( 1, 23, - COUNT( * ) * 99 ) + 35 * - 32 THEN + + 57 ELSE 0 END WHEN + 90 THEN NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT - 61 * 3 + - CASE - COUNT ( * ) WHEN + CAST ( NULL AS REAL ) * + - 17 THEN + 48 * - 6 + - - CAST ( NULL AS INTEGER ) + - CASE - 92 WHEN - COALESCE ( 1, 23, - COUNT ( * ) * 99 ) + 35 * - 32 THEN + + 57 ELSE 0 END WHEN + 90 THEN NULL END AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9482
SELECT ALL 30 DIV + 28 - ( + - 29 )
----
30

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL 30 / + 28 - ( + - 29 )
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT - ( + COUNT( DISTINCT - + CAST( 9 AS SIGNED ) ) ) + 12 * 58 * - - 79
----
54983

skipif mysql # not compatible
query I rowsort label-9483
SELECT - ( + COUNT ( DISTINCT - + CAST ( 9 AS INTEGER ) ) ) + 12 * 58 * - - 79
----
54983

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9484
SELECT ALL + 84 + - - CAST( 47 AS SIGNED ) AS col2, 88 - + COUNT( DISTINCT + 14 ) AS col1
----
131
87

skipif mysql # not compatible
query II rowsort label-9484
SELECT ALL + 84 + - - CAST ( 47 AS INTEGER ) AS col2, 88 - + COUNT ( DISTINCT + 14 ) AS col1
----
131
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT ALL - COUNT( * ) + - + 26 + 8
----
-19

skipif mysql # not compatible
query I rowsort label-9485
SELECT ALL - COUNT ( * ) + - + 26 + 8
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT COUNT( * ) * - COUNT( * ) * - - SUM( ALL + 52 )
----
-52

skipif mysql # not compatible
query I rowsort label-9486
SELECT COUNT ( * ) * - COUNT ( * ) * - - SUM ( ALL + 52 )
----
-52

query I rowsort
SELECT DISTINCT + 92 * - 87
----
-8004

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9488
SELECT ALL 75 + CASE + + 65 WHEN - - 8 THEN + CAST( NULL AS SIGNED ) END AS col1, - 50 + + + COUNT( + 33 ) AS col1
----
NULL
-49

skipif mysql # not compatible
query II rowsort label-9488
SELECT ALL 75 + CASE + + 65 WHEN - - 8 THEN + CAST ( NULL AS INTEGER ) END AS col1, - 50 + + + COUNT ( + 33 ) AS col1
----
NULL
-49

query I rowsort
SELECT ALL + 48 * + - 45 + 36
----
-2124

query I rowsort
SELECT DISTINCT + 90 - + - 8
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9491
SELECT - - CAST( - + 22 AS SIGNED )
----
-22

skipif mysql # not compatible
query I rowsort label-9491
SELECT - - CAST ( - + 22 AS INTEGER )
----
-22

query I rowsort
SELECT DISTINCT - 10 - - - 3 AS col0
----
-13

query I rowsort
SELECT - + 36 col1
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9494
SELECT - + NULLIF ( - - 96, + CAST( NULL AS SIGNED ) * + 69 + 45 ) AS col0, 74 + NULLIF ( - 33, - + 20 ) * + ( - CAST( NULL AS SIGNED ) ) AS col2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-9494
SELECT - + NULLIF ( - - 96, + CAST ( NULL AS INTEGER ) * + 69 + 45 ) AS col0, 74 + NULLIF ( - 33, - + 20 ) * + ( - CAST ( NULL AS INTEGER ) ) AS col2
----
-96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9495
SELECT 2 AS col1, CAST( NULL AS SIGNED ) AS col0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-9495
SELECT 2 AS col1, CAST ( NULL AS INTEGER ) AS col0
----
2
NULL

query I rowsort
SELECT ALL 28 * - 86 * 27
----
-65016

query I rowsort
SELECT ALL 45 * + - 14 col2
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-9498
SELECT - COUNT( * ) AS col2, 79
----
-1
79

skipif mysql # not compatible
query II rowsort label-9498
SELECT - COUNT ( * ) AS col2, 79
----
-1
79

query II rowsort
SELECT ALL 18 AS col0, + 29 * 98 - + 81 * - + 58 AS col1
----
18
7540

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT - COUNT( * ) AS col0, NULLIF ( + + 25, COUNT( * ) / - CASE 91 WHEN + - 34 * + 87 * ( + - ( - + 63 ) ) THEN NULL WHEN - - 13 - - + 7 THEN 74 WHEN - - 32 * - 9 * - - 21 THEN NULL END - + 68 ) * 58
----
-1
1450

skipif mysql # not compatible
query II rowsort label-9500
SELECT - COUNT ( * ) AS col0, NULLIF ( + + 25, COUNT ( * ) / - CASE 91 WHEN + - 34 * + 87 * ( + - ( - + 63 ) ) THEN NULL WHEN - - 13 - - + 7 THEN 74 WHEN - - 32 * - 9 * - - 21 THEN NULL END - + 68 ) * 58
----
-1
1450

query I rowsort
SELECT ALL 92 * - 21 col1
----
-1932

query II rowsort
SELECT ALL 27 AS col0, - 45 AS col0
----
27
-45

query II rowsort
SELECT DISTINCT 78 AS col2, 50 * 48
----
78
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT COUNT( * ) * - 29
----
-29

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT COUNT ( * ) * - 29
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-9505
SELECT ( + 69 ) DIV + - 31
----
-2

skipif mysql # not compatible
query I rowsort label-9505
SELECT ( + 69 ) / + - 31
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT 22 DIV + + SUM( 31 )
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT 22 / + + SUM ( 31 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT COALESCE ( + - 25, + - COUNT( * ) + + 18, + - 72 * + 48 - - 48, 60 )
----
-25

skipif mysql # not compatible
query I rowsort label-9507
SELECT COALESCE ( + - 25, + - COUNT ( * ) + + 18, + - 72 * + 48 - - 48, 60 )
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9508
SELECT ALL + 33 DIV + + COUNT( * )
----
33

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + 33 / + + COUNT ( * )
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-9509
SELECT 12 DIV 9 * - 89 AS col2
----
-89

skipif mysql # not compatible
query I rowsort label-9509
SELECT 12 / 9 * - 89 AS col2
----
-89

query I rowsort
SELECT DISTINCT 18 * - 7 + + 71 * - 90 AS col2
----
-6516

onlyif mysql # DIV for integer division: 
query I rowsort label-9511
SELECT DISTINCT + 47 * - 5 + + - 43 DIV - 7
----
-229

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + 47 * - 5 + + - 43 / - 7
----
-229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9512
SELECT ALL 42 * - 12 + COUNT( * ) - - CAST( 26 AS SIGNED ) AS col1
----
-477

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL 42 * - 12 + COUNT ( * ) - - CAST ( 26 AS INTEGER ) AS col1
----
-477

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9513
SELECT 23, - 86 + - CAST( AVG ( - 23 ) AS SIGNED ) * - 7 AS col1
----
23
-247

skipif mysql # not compatible
query II rowsort label-9513
SELECT 23, - 86 + - CAST ( AVG ( - 23 ) AS INTEGER ) * - 7 AS col1
----
23
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT ALL + - 30 * - SUM( ALL - + 23 ) * + - MIN( - 95 ) + 13 col1
----
-65537

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL + - 30 * - SUM ( ALL - + 23 ) * + - MIN ( - 95 ) + 13 col1
----
-65537

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT - COUNT( * ) * + COUNT( + 17 ) * + 70 * + + 94 * - 73 + - 80
----
480260

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT - COUNT ( * ) * + COUNT ( + 17 ) * + 70 * + + 94 * - 73 + - 80
----
480260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT DISTINCT + 71 * + - CAST( NULL AS SIGNED ) - NULLIF ( + CASE 73 WHEN + + 82 THEN NULL WHEN + + NULLIF ( 30, + 30 + + ( - + COUNT( * ) ) + + COUNT( * ) * + + COUNT( * ) ) / + COUNT( * ) + - CAST( NULL AS SIGNED ) * + - 89 * + + SUM( DISTINCT + + 48 ) THEN - 15 * ( - 40 ) + + + 26 * + 47 END, 28 ) + - 95 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT DISTINCT + 71 * + - CAST ( NULL AS INTEGER ) - NULLIF ( + CASE 73 WHEN + + 82 THEN NULL WHEN + + NULLIF ( 30, + 30 + + ( - + COUNT ( * ) ) + + COUNT ( * ) * + + COUNT ( * ) ) / + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * + - 89 * + + SUM ( DISTINCT + + 48 ) THEN - 15 * ( - 40 ) + + + 26 * + 47 END, 28 ) + - 95 AS col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9517
SELECT ALL - COUNT( * ) * 57 + - 64 + - - CAST( + MIN( ALL + - 50 ) AS SIGNED ) + + + ( AVG ( DISTINCT + 94 ) ) - + + 9 * + + CASE - 84 WHEN + + 87 THEN - ( 56 ) END / 69 - + 99 + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - COUNT ( * ) * 57 + - 64 + - - CAST ( + MIN ( ALL + - 50 ) AS INTEGER ) + + + ( AVG ( DISTINCT + 94 ) ) - + + 9 * + + CASE - 84 WHEN + + 87 THEN - ( 56 ) END / 69 - + 99 + 2
----
NULL

query I rowsort
SELECT + 76 * 20
----
1520

query II rowsort
SELECT - 26, 42 AS col1
----
-26
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT ALL + + SUM( - - ( ( + 46 ) ) ) AS col2
----
46

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL + + SUM ( - - ( ( + 46 ) ) ) AS col2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9521
SELECT ALL - + 86 * 47 - + MIN( DISTINCT - - 54 )
----
-4096

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL - + 86 * 47 - + MIN ( DISTINCT - - 54 )
----
-4096

query II rowsort
SELECT + 99 AS col1, + ( - 28 ) AS col0
----
99
-28

onlyif mysql # aggregate syntax: 
query II rowsort label-9523
SELECT ALL + 65 * - 10 - + 97 * - COUNT( * ) AS col2, 38 + + COUNT( * )
----
-553
39

skipif mysql # not compatible
query II rowsort label-9523
SELECT ALL + 65 * - 10 - + 97 * - COUNT ( * ) AS col2, 38 + + COUNT ( * )
----
-553
39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9524
SELECT + COUNT( * ) * 67 + + NULLIF ( 6, - + MAX( DISTINCT + 71 ) * COUNT( DISTINCT + 69 ) + - 95 ) + + COUNT( * ) * + 38 DIV + ( - - 79 ) - - 79 + 36 - - ( 9 ) AS col2
----
197

skipif mysql # not compatible
query I rowsort label-9524
SELECT + COUNT ( * ) * 67 + + NULLIF ( 6, - + MAX ( DISTINCT + 71 ) * COUNT ( DISTINCT + 69 ) + - 95 ) + + COUNT ( * ) * + 38 / + ( - - 79 ) - - 79 + 36 - - ( 9 ) AS col2
----
197

onlyif mysql # aggregate syntax: 
query II rowsort label-9525
SELECT ALL + + 26 AS col1, SUM( + 20 ) * ( 53 ) col2
----
26
1060

skipif mysql # not compatible
query II rowsort label-9525
SELECT ALL + + 26 AS col1, SUM ( + 20 ) * ( 53 ) col2
----
26
1060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT ALL - CAST( - 57 AS SIGNED )
----
57

skipif mysql # not compatible
query I rowsort label-9526
SELECT ALL - CAST ( - 57 AS INTEGER )
----
57

query I rowsort
SELECT + 41 * - 24 + + 82 AS col1
----
-902

query I rowsort
SELECT + 93 * - 28 AS col2
----
-2604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9529
SELECT - + MIN( ALL - ( - 11 ) ) + + - CASE + - 31 WHEN + 25 * - 89 + - 18 - 31 - + MIN( DISTINCT 19 ) + + 82 * COUNT( * ) * - + COUNT( * ) - - 90 * 24 + - 13 THEN NULL WHEN 59 * - CAST( - 81 AS SIGNED ) * - 96 * ( + 72 ) + 46 * + COUNT( * ) * - 61 + + SUM( ALL 62 ) * 17 + + 2 + 84 + + - 72 + + - 53 / + CAST( NULL AS SIGNED ) + - - 2 * - MAX( ALL - 57 ) THEN 50 + COUNT( * ) ELSE 22 * 25 END - 32
----
-593

skipif mysql # not compatible
query I rowsort label-9529
SELECT - + MIN ( ALL - ( - 11 ) ) + + - CASE + - 31 WHEN + 25 * - 89 + - 18 - 31 - + MIN ( DISTINCT 19 ) + + 82 * COUNT ( * ) * - + COUNT ( * ) - - 90 * 24 + - 13 THEN NULL WHEN 59 * - CAST ( - 81 AS INTEGER ) * - 96 * ( + 72 ) + 46 * + COUNT ( * ) * - 61 + + SUM ( ALL 62 ) * 17 + + 2 + 84 + + - 72 + + - 53 / + CAST ( NULL AS INTEGER ) + - - 2 * - MAX ( ALL - 57 ) THEN 50 + COUNT ( * ) ELSE 22 * 25 END - 32
----
-593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT + 6 - CAST( 55 AS SIGNED ) + - 83
----
-132

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 6 - CAST ( 55 AS INTEGER ) + - 83
----
-132

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT ALL CASE - + 46 WHEN - - 43 THEN - 19 + COALESCE ( + 68, - + 24 * 28 ) WHEN + 8 THEN + CAST( + + 87 AS SIGNED ) - 91 + + 17 / - ( - MIN( 95 ) ) * - CAST( 0 AS SIGNED ) + 20 * - - 30 * - 45 END * - + COUNT( * ) col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT ALL CASE - + 46 WHEN - - 43 THEN - 19 + COALESCE ( + 68, - + 24 * 28 ) WHEN + 8 THEN + CAST ( + + 87 AS INTEGER ) - 91 + + 17 / - ( - MIN ( 95 ) ) * - CAST ( 0 AS INTEGER ) + 20 * - - 30 * - 45 END * - + COUNT ( * ) col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9532
SELECT ALL 4 * MIN( - 49 ) DIV NULLIF ( - + 19, + 23 * - MIN( ALL - - 14 ) ) * ( + COUNT( * ) ) + - 92 + - 32, - ( 68 ) * - 17 AS col1
----
-114
1156

skipif mysql # not compatible
query II rowsort label-9532
SELECT ALL 4 * MIN ( - 49 ) / NULLIF ( - + 19, + 23 * - MIN ( ALL - - 14 ) ) * ( + COUNT ( * ) ) + - 92 + - 32, - ( 68 ) * - 17 AS col1
----
-114
1156

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT + COALESCE ( 29, + COUNT( * ) ) * - 42 + + + 24 * + + 62
----
270

skipif mysql # not compatible
query I rowsort label-9533
SELECT + COALESCE ( 29, + COUNT ( * ) ) * - 42 + + + 24 * + + 62
----
270

query I rowsort
SELECT + 86 + + - 78 AS col2
----
8

query I rowsort
SELECT DISTINCT + 18 * + + 46
----
828

query I rowsort
SELECT ALL ( 35 ) AS col0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT + CAST( NULL AS SIGNED ) * - 25 / 75
----
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT + CAST ( NULL AS INTEGER ) * - 25 / 75
----
NULL

query I rowsort
SELECT + 32 + - 54 AS col1
----
-22

query I rowsort
SELECT + 9 + + 6 AS col0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9540
SELECT + 20 + + 58 DIV + COUNT( * ) AS col0
----
78

skipif mysql # not compatible
query I rowsort label-9540
SELECT + 20 + + 58 / + COUNT ( * ) AS col0
----
78

query I rowsort
SELECT - NULLIF ( + - 33, + 15 )
----
33

query II rowsort
SELECT DISTINCT 44 + + + 25 AS col2, 58 - - + 33
----
69
91

query I rowsort
SELECT DISTINCT + 28 + 63 AS col0
----
91

query I rowsort
SELECT - ( ( + 33 ) ) AS col1
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT ALL + - ( + COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + - ( + COUNT ( * ) )
----
-1

query I rowsort
SELECT + - 78 * + 47 * - + 43
----
157638

query I rowsort
SELECT - 52 * + - 53 AS col0
----
2756

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + + ( - MAX( - 91 ) ) * - 53 * - 67
----
323141

skipif mysql # not compatible
query I rowsort label-9548
SELECT + + ( - MAX ( - 91 ) ) * - 53 * - 67
----
323141

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT - 94 DIV 92 + 6 + + 12
----
17

skipif mysql # not compatible
query I rowsort label-9549
SELECT - 94 / 92 + 6 + + 12
----
17

query I rowsort
SELECT ALL + - 74 col0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9551
SELECT ALL + - 42 * 47 + + CASE + 9 WHEN + - 49 + + - 40 THEN - 65 WHEN - COUNT( * ) THEN NULL END / + 65 - 21 + 70 * - - 64 * COALESCE ( - 9, + 66, 59 + + 44 ), NULLIF ( + + 14, - + 95 * - - 54 + + 66 + - - 94 ) * 27 AS col0
----
NULL
378

skipif mysql # not compatible
query II rowsort label-9551
SELECT ALL + - 42 * 47 + + CASE + 9 WHEN + - 49 + + - 40 THEN - 65 WHEN - COUNT ( * ) THEN NULL END / + 65 - 21 + 70 * - - 64 * COALESCE ( - 9, + 66, 59 + + 44 ), NULLIF ( + + 14, - + 95 * - - 54 + + 66 + - - 94 ) * 27 AS col0
----
NULL
378

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9552
SELECT ALL + + 27 * - ( 86 ) - 0 + - 79 + + - 29 + - COUNT( * ) DIV + 4 AS col1
----
-2430

skipif mysql # not compatible
query I rowsort label-9552
SELECT ALL + + 27 * - ( 86 ) - 0 + - 79 + + - 29 + - COUNT ( * ) / + 4 AS col1
----
-2430

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT + - 77 * - 42 * COUNT( * ) * 4 + - - 78
----
13014

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT + - 77 * - 42 * COUNT ( * ) * 4 + - - 78
----
13014

query I rowsort
SELECT DISTINCT + - 60 * - 64
----
3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9555
SELECT - - 71 + + - CAST( NULL AS SIGNED ) + - 25
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT - - 71 + + - CAST ( NULL AS INTEGER ) + - 25
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT ALL + + 10 * + - 78 AS col0, MAX( + 89 ) AS col1
----
-780
89

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL + + 10 * + - 78 AS col0, MAX ( + 89 ) AS col1
----
-780
89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9557
SELECT DISTINCT + CASE - MAX( + CAST( NULL AS DECIMAL ) ) WHEN - 35 * + 47 * 65 + + 90 THEN + COUNT( * ) WHEN + 14 THEN + 82 ELSE NULL END AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + CASE - MAX ( + CAST ( NULL AS REAL ) ) WHEN - 35 * + 47 * 65 + + 90 THEN + COUNT ( * ) WHEN + 14 THEN + 82 ELSE NULL END AS col1
----
NULL

query I rowsort
SELECT DISTINCT + + 85 * 17
----
1445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9559
SELECT - 95 * MIN( + 43 ) DIV - COUNT( * ) col1
----
4085

skipif mysql # not compatible
query I rowsort label-9559
SELECT - 95 * MIN ( + 43 ) / - COUNT ( * ) col1
----
4085

query I rowsort
SELECT - ( 47 ) * - - 86 col2
----
-4042

query I rowsort
SELECT ALL - - 18 * 4 + - 16 - 5 + + 69 * 53
----
3708

onlyif mysql # aggregate syntax: 
query I rowsort label-9562
SELECT COALESCE ( - 42, + COUNT( * ) * + 80 ) AS col0
----
-42

skipif mysql # not compatible
query I rowsort label-9562
SELECT COALESCE ( - 42, + COUNT ( * ) * + 80 ) AS col0
----
-42

query I rowsort
SELECT DISTINCT ( - 0 ) AS col0
----
0

query I rowsort
SELECT DISTINCT 92 * 19 AS col0
----
1748

onlyif mysql # aggregate syntax: 
query I rowsort label-9565
SELECT DISTINCT 29 * + 54 + + - 27 - - 56 * + - COUNT( ( - 20 ) )
----
1483

skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT 29 * + 54 + + - 27 - - 56 * + - COUNT ( ( - 20 ) )
----
1483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9566
SELECT ALL + 58 * CAST( NULL AS SIGNED ) + + 34 + ( - 0 ) / - 89 * - 81 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL + 58 * CAST ( NULL AS INTEGER ) + + 34 + ( - 0 ) / - 89 * - 81 AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9567
SELECT - 27 DIV MIN( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-9567
SELECT - 27 / MIN ( 53 )
----
0

query I rowsort
SELECT ALL - 41 + + - 58 + 33 AS col2
----
-66

query I rowsort
SELECT - 44 - - 58 AS col2
----
14

query I rowsort
SELECT - ( 41 ) AS col1
----
-41

onlyif mysql # DIV for integer division: 
query I rowsort label-9571
SELECT - 97 DIV - + 81 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9571
SELECT - 97 / - + 81 AS col2
----
1

query I rowsort
SELECT ALL - 42 + 63 AS col2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT DISTINCT CAST( - 72 AS SIGNED ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT CAST ( - 72 AS INTEGER ) AS col2
----
-72

query I rowsort
SELECT + 73 * + 71 AS col1
----
5183

query II rowsort
SELECT - 49, + 71 AS col1
----
-49
71

onlyif mysql # aggregate syntax: 
query II rowsort label-9576
SELECT DISTINCT COUNT( + + 82 ) + + 3 - + + 94 AS col0, + 26
----
-90
26

skipif mysql # not compatible
query II rowsort label-9576
SELECT DISTINCT COUNT ( + + 82 ) + + 3 - + + 94 AS col0, + 26
----
-90
26

query I rowsort
SELECT ALL 49 + + - NULLIF ( - + ( - 89 ), ( + 66 ) ) * 75 + + 9 AS col2
----
-6617

onlyif mysql # DIV for integer division: 
query II rowsort label-9578
SELECT 81 AS col0, - ( 82 ) DIV 71
----
81
-1

skipif mysql # not compatible
query II rowsort label-9578
SELECT 81 AS col0, - ( 82 ) / 71
----
81
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT 15 col0, 63 + + COUNT( * )
----
15
64

skipif mysql # not compatible
query II rowsort label-9579
SELECT 15 col0, 63 + + COUNT ( * )
----
15
64

query I rowsort
SELECT ALL 19 * 46
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT + SUM( ALL 3 ) AS col2
----
3

skipif mysql # not compatible
query I rowsort label-9581
SELECT + SUM ( ALL 3 ) AS col2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9582
SELECT DISTINCT - 47 AS col1, + COALESCE ( - - 57, 83, - COUNT( * ) )
----
-47
57

skipif mysql # not compatible
query II rowsort label-9582
SELECT DISTINCT - 47 AS col1, + COALESCE ( - - 57, 83, - COUNT ( * ) )
----
-47
57

query I rowsort
SELECT ALL + 72 - + - 95
----
167

query I rowsort
SELECT ALL + 61 * - - 89
----
5429

query I rowsort
SELECT + ( - + 78 ) AS col2
----
-78

query I rowsort
SELECT + - 98 col1
----
-98

query I rowsort
SELECT 44 * - 59
----
-2596

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT - MAX( ( + + 32 ) ) AS col0
----
-32

skipif mysql # not compatible
query I rowsort label-9588
SELECT - MAX ( ( + + 32 ) ) AS col0
----
-32

query II rowsort
SELECT + 79 AS col1, + 72
----
79
72

query I rowsort
SELECT 67 * 36 + + 5 AS col2
----
2417

query I rowsort
SELECT NULLIF ( - ( + - ( - 80 ) ), ( ( + + 10 ) ) ) * - 37 * ( - 87 )
----
-257520

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9592
SELECT 48 * + + 48 / - - ( 57 ) * + 85 + + CAST( NULL AS DECIMAL ) + - CAST( + 37 AS SIGNED ) + 77 - 56 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9592
SELECT 48 * + + 48 / - - ( 57 ) * + 85 + + CAST ( NULL AS REAL ) + - CAST ( + 37 AS INTEGER ) + 77 - 56 AS col0
----
NULL

query I rowsort
SELECT ALL 69 + - 97 * + 49 * - - NULLIF ( + ( 91 ), + 87 )
----
-432454

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9594
SELECT DISTINCT - CASE - + 50 WHEN - CASE + 25 WHEN - 49 * - COUNT( * ) * + 41 THEN 66 WHEN - - 10 THEN 94 WHEN COUNT( * ) * - - 25 - 67 THEN + CASE MIN( + 90 ) WHEN + - 34 THEN + 29 END END THEN 16 WHEN - - 15 * - - 76 * - - 96 + 71 + - CAST( NULL AS SIGNED ) * + 20 * - - 32 * + 41 * ( + COUNT( * ) ) * - 59 - - 49 + - - 54 THEN NULL WHEN - AVG ( DISTINCT + 94 ) THEN + + 86 ELSE 61 END
----
-61

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - CASE - + 50 WHEN - CASE + 25 WHEN - 49 * - COUNT ( * ) * + 41 THEN 66 WHEN - - 10 THEN 94 WHEN COUNT ( * ) * - - 25 - 67 THEN + CASE MIN ( + 90 ) WHEN + - 34 THEN + 29 END END THEN 16 WHEN - - 15 * - - 76 * - - 96 + 71 + - CAST ( NULL AS INTEGER ) * + 20 * - - 32 * + 41 * ( + COUNT ( * ) ) * - 59 - - 49 + - - 54 THEN NULL WHEN - AVG ( DISTINCT + 94 ) THEN + + 86 ELSE 61 END
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT COUNT( * ) * 32 + + - 31 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9595
SELECT COUNT ( * ) * 32 + + - 31 AS col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT 16 * - + MIN( + 17 )
----
-272

skipif mysql # not compatible
query I rowsort label-9596
SELECT 16 * - + MIN ( + 17 )
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT DISTINCT - MAX( + 62 ) AS col2
----
-62

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT - MAX ( + 62 ) AS col2
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + COUNT( * ) * + 61 + + 99 AS col0
----
160

skipif mysql # not compatible
query I rowsort label-9598
SELECT + COUNT ( * ) * + 61 + + 99 AS col0
----
160

query I rowsort
SELECT ALL - 46 + + + 49
----
3

query I rowsort
SELECT 5 + - 87
----
-82

query I rowsort
SELECT 25 + - NULLIF ( - + 49, 78 + 98 ) + - 67 * - 62 * + 91 AS col0
----
378088

query I rowsort
SELECT 31 * + - 52
----
-1612

query I rowsort
SELECT DISTINCT - 29 - - 85 AS col1
----
56

query I rowsort
SELECT 50 + 59
----
109

query I rowsort
SELECT 21 * + 95 AS col0
----
1995

onlyif mysql # aggregate syntax: 
query II rowsort label-9606
SELECT ALL + 84 * 31 * - ( 61 ) AS col2, COALESCE ( - - 28, - 31 * - - 6 * 37 + + ( - 15 ) ) * + SUM( - + 59 ) * - + 75
----
-158844
123900

skipif mysql # not compatible
query II rowsort label-9606
SELECT ALL + 84 * 31 * - ( 61 ) AS col2, COALESCE ( - - 28, - 31 * - - 6 * 37 + + ( - 15 ) ) * + SUM ( - + 59 ) * - + 75
----
-158844
123900

query I rowsort
SELECT 41 * - 29 col2
----
-1189

query I rowsort
SELECT DISTINCT - ( + 46 ) * - 24 col1
----
1104

query I rowsort
SELECT DISTINCT - - 79 AS col0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - ( + + 14 ) * 63 * + 47 + - 44 + + COUNT( * )
----
-41497

skipif mysql # not compatible
query I rowsort label-9610
SELECT - ( + + 14 ) * 63 * + 47 + - 44 + + COUNT ( * )
----
-41497

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT - MIN( - + 1 )
----
1

skipif mysql # not compatible
query I rowsort label-9611
SELECT - MIN ( - + 1 )
----
1

query I rowsort
SELECT 2 * + + 48 AS col0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT CAST( NULL AS SIGNED ) * + 10 + + 69 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9613
SELECT CAST ( NULL AS INTEGER ) * + 10 + + 69 AS col1
----
NULL

query I rowsort
SELECT + 3 + - 95
----
-92

query I rowsort
SELECT ALL - 99 * - 54 col1
----
5346

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL 86 + - NULLIF ( + - 9, - + ( COUNT( * ) ) - - + 37 ) * + 84 * - CASE - + 90 WHEN + 27 THEN NULL WHEN 40 THEN - 16 END * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL 86 + - NULLIF ( + - 9, - + ( COUNT ( * ) ) - - + 37 ) * + 84 * - CASE - + 90 WHEN + 27 THEN NULL WHEN 40 THEN - 16 END * + 3
----
NULL

query I rowsort
SELECT 12 + 4 AS col0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-9618
SELECT ALL 69 + + + 43, + MAX( ALL - 26 ) AS col1
----
112
-26

skipif mysql # not compatible
query II rowsort label-9618
SELECT ALL 69 + + + 43, + MAX ( ALL - 26 ) AS col1
----
112
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9619
SELECT MIN( + 2 ) / - CAST( NULL AS SIGNED ) + - 12 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9619
SELECT MIN ( + 2 ) / - CAST ( NULL AS INTEGER ) + - 12 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9620
SELECT 25 + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT 25 + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT + COUNT( + COALESCE ( - 2, - + 50 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9621
SELECT + COUNT ( + COALESCE ( - 2, - + 50 ) ) AS col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9622
SELECT NULLIF ( + 71, + COUNT( * ) * - 96 * 13 * + - 66 ) / + - 25 - 57 + CAST( NULL AS SIGNED ) * 14 * - 42 * - COUNT( * ) * + SUM( ALL - 59 ) + - COUNT( * ) + - 34 + 63
----
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT NULLIF ( + 71, + COUNT ( * ) * - 96 * 13 * + - 66 ) / + - 25 - 57 + CAST ( NULL AS INTEGER ) * 14 * - 42 * - COUNT ( * ) * + SUM ( ALL - 59 ) + - COUNT ( * ) + - 34 + 63
----
NULL

query I rowsort
SELECT 41 + + NULLIF ( - 32, - 83 / - 25 ) AS col1
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9624
SELECT ALL - 42 + COALESCE ( + 28, 33, + ( + + 55 ) * - + MIN( - - 99 ) + + 51 + + NULLIF ( + + 97, + - 46 * + - 53 ) + - + COUNT( * ) - CASE + 2 WHEN NULLIF ( - COUNT( * ), - 74 DIV - 40 + 67 ) THEN + 16 WHEN 72 THEN NULL END - COUNT( * ) * - - 29 DIV - + ( 23 ) ) + 38
----
24

skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - 42 + COALESCE ( + 28, 33, + ( + + 55 ) * - + MIN ( - - 99 ) + + 51 + + NULLIF ( + + 97, + - 46 * + - 53 ) + - + COUNT ( * ) - CASE + 2 WHEN NULLIF ( - COUNT ( * ), - 74 / - 40 + 67 ) THEN + 16 WHEN 72 THEN NULL END - COUNT ( * ) * - - 29 / - + ( 23 ) ) + 38
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9625
SELECT ALL + ( 27 ) DIV - 51 * + + 82 DIV 71 * - + 25 * + - NULLIF ( NULLIF ( - 56, - + 55 - + + 47 + - CASE + - 75 WHEN - MAX( ALL - 18 ) + COUNT( * ) * - COUNT( * ) THEN - 25 - + + 32 WHEN - - CAST( NULL AS SIGNED ) THEN + 59 DIV 45 WHEN - 17 * 6 * - + CAST( NULL AS SIGNED ) DIV 90 THEN NULL WHEN + - 23 + - 72 THEN + 76 + + COUNT( * ) ELSE NULL END ), + 29 ) AS col2, CAST( NULL AS SIGNED ) AS col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9625
SELECT ALL + ( 27 ) / - 51 * + + 82 / 71 * - + 25 * + - NULLIF ( NULLIF ( - 56, - + 55 - + + 47 + - CASE + - 75 WHEN - MAX ( ALL - 18 ) + COUNT ( * ) * - COUNT ( * ) THEN - 25 - + + 32 WHEN - - CAST ( NULL AS INTEGER ) THEN + 59 / 45 WHEN - 17 * 6 * - + CAST ( NULL AS INTEGER ) / 90 THEN NULL WHEN + - 23 + - 72 THEN + 76 + + COUNT ( * ) ELSE NULL END ), + 29 ) AS col2, CAST ( NULL AS INTEGER ) AS col1
----
0
NULL

query II rowsort
SELECT 90 AS col1, 36 * - 83 * + ( - 1 ) AS col1
----
90
2988

query I rowsort
SELECT ALL CASE + 84 WHEN - 36 THEN + 36 END / 85 AS col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9628
SELECT CAST( NULL AS SIGNED ) / + 38
----
NULL

skipif mysql # not compatible
query I rowsort label-9628
SELECT CAST ( NULL AS INTEGER ) / + 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT ALL - 15 * - SUM( - - 70 ) AS col2
----
1050

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL - 15 * - SUM ( - - 70 ) AS col2
----
1050

query I rowsort
SELECT - 67 * - + 23 col2
----
1541

query II rowsort
SELECT ALL 35 AS col1, + 91
----
35
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT DISTINCT COUNT( * ) * - NULLIF ( + 52, 45 * 28 + - COUNT( * ) * - COUNT( * ) + - 35 + 5 ) AS col0
----
-52

skipif mysql # not compatible
query I rowsort label-9632
SELECT DISTINCT COUNT ( * ) * - NULLIF ( + 52, 45 * 28 + - COUNT ( * ) * - COUNT ( * ) + - 35 + 5 ) AS col0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - COUNT( * ) * + 44 AS col2
----
-44

skipif mysql # not compatible
query I rowsort label-9633
SELECT - COUNT ( * ) * + 44 AS col2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT ALL - 7 * - 72 * - COALESCE ( + + 75, COALESCE ( + - 41, - MIN( DISTINCT + 51 ), + + 7 ) + + CASE - 38 WHEN + ( COUNT( * ) ) THEN - 79 + + 30 WHEN + 52 THEN + 10 END ) AS col2
----
-37800

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL - 7 * - 72 * - COALESCE ( + + 75, COALESCE ( + - 41, - MIN ( DISTINCT + 51 ), + + 7 ) + + CASE - 38 WHEN + ( COUNT ( * ) ) THEN - 79 + + 30 WHEN + 52 THEN + 10 END ) AS col2
----
-37800

onlyif mysql # DIV for integer division: 
query I rowsort label-9635
SELECT - CASE - 57 WHEN - AVG ( 50 ) + - 85 THEN 32 DIV + AVG ( ALL + 37 ) ELSE - 5 END
----
5

skipif mysql # not compatible
query I rowsort label-9635
SELECT - CASE - 57 WHEN - AVG ( 50 ) + - 85 THEN 32 / + AVG ( ALL + 37 ) ELSE - 5 END
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9636
SELECT DISTINCT MAX( DISTINCT 67 ) * + CAST( - - COUNT( * ) AS SIGNED )
----
67

skipif mysql # not compatible
query I rowsort label-9636
SELECT DISTINCT MAX ( DISTINCT 67 ) * + CAST ( - - COUNT ( * ) AS INTEGER )
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL COUNT( * ) * + - 75 col0
----
-75

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL COUNT ( * ) * + - 75 col0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9638
SELECT DISTINCT CASE + 98 WHEN ( + + 87 ) THEN - 20 * + 87 - - COUNT( * ) * COALESCE ( + 83, + CAST( - COUNT( * ) AS SIGNED ) + + + ( + 71 ), - + 59 ) + - + 98 - + 19 END AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT CASE + 98 WHEN ( + + 87 ) THEN - 20 * + 87 - - COUNT ( * ) * COALESCE ( + 83, + CAST ( - COUNT ( * ) AS INTEGER ) + + + ( + 71 ), - + 59 ) + - + 98 - + 19 END AS col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT ALL + 55 DIV + 78 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + 55 / + 78 AS col2
----
0

query I rowsort
SELECT - 98 - - 43 - - 35 * 59 AS col2
----
2010

query II rowsort
SELECT - 46, 26 AS col2
----
-46
26

onlyif mysql # DIV for integer division: 
query I rowsort label-9642
SELECT + 32 DIV + 75 + 41 + + - 57 AS col2
----
-16

skipif mysql # not compatible
query I rowsort label-9642
SELECT + 32 / + 75 + 41 + + - 57 AS col2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT DISTINCT + 51 DIV - 29 col0
----
-1

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + 51 / - 29 col0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT DISTINCT NULLIF ( 1, + + ( - 91 ) ) * + + 21 + + MAX( + 84 ) AS col1
----
105

skipif mysql # not compatible
query I rowsort label-9644
SELECT DISTINCT NULLIF ( 1, + + ( - 91 ) ) * + + 21 + + MAX ( + 84 ) AS col1
----
105

query I rowsort
SELECT - + 32 * + 42 AS col0
----
-1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT + 97 * - COALESCE ( 54, CAST( ( 54 ) AS SIGNED ) + - 67 ) + + + 43 + - + 53 AS col2
----
-5248

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + 97 * - COALESCE ( 54, CAST ( ( 54 ) AS INTEGER ) + - 67 ) + + + 43 + - + 53 AS col2
----
-5248

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + COUNT( ALL 7 )
----
1

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + COUNT ( ALL 7 )
----
1

query I rowsort
SELECT + ( ( + - 29 ) ) AS col0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT ALL - SUM( + 39 ) * 47 + 93 + - NULLIF ( - COUNT( * ), 47 ) + COUNT( * ) AS col0
----
-1738

skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL - SUM ( + 39 ) * 47 + 93 + - NULLIF ( - COUNT ( * ), 47 ) + COUNT ( * ) AS col0
----
-1738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9650
SELECT NULLIF ( CAST( NULL AS SIGNED ), + 91 / + 86 * - ( - + 1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9650
SELECT NULLIF ( CAST ( NULL AS INTEGER ), + 91 / + 86 * - ( - + 1 ) )
----
NULL

query I rowsort
SELECT + NULLIF ( + - 20, + 80 ) col0
----
-20

query I rowsort
SELECT ALL + COALESCE ( + 47, - + 14 - - - 2 ) AS col2
----
47

query I rowsort
SELECT + NULLIF ( 85, - 15 ) AS col1
----
85

query I rowsort
SELECT + 50 * - + 23 AS col1
----
-1150

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT MAX( ALL + 86 ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9655
SELECT MAX ( ALL + 86 ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT + 14 * + + COUNT( + - ( - 16 ) ) AS col0
----
14

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 14 * + + COUNT ( + - ( - 16 ) ) AS col0
----
14

query I rowsort
SELECT - ( 84 ) col2
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9658
SELECT + ( + + 24 ) DIV 36 + + - 37 * - 58
----
2146

skipif mysql # not compatible
query I rowsort label-9658
SELECT + ( + + 24 ) / 36 + + - 37 * - 58
----
2146

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT MIN( DISTINCT - 51 )
----
-51

skipif mysql # not compatible
query I rowsort label-9659
SELECT MIN ( DISTINCT - 51 )
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9660
SELECT + CASE - COUNT( DISTINCT + 32 ) WHEN - + 41 THEN NULL WHEN - 47 * - 30 THEN - + 39 ELSE NULL END + + MAX( + CAST( - 32 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT + CASE - COUNT ( DISTINCT + 32 ) WHEN - + 41 THEN NULL WHEN - 47 * - 30 THEN - + 39 ELSE NULL END + + MAX ( + CAST ( - 32 AS INTEGER ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9661
SELECT + 1 DIV 11 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 1 / 11 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + MIN( - + 3 ) + - + ( - 27 ) * + + 38 * 84 + - 78 + - 37 col0
----
86066

skipif mysql # not compatible
query I rowsort label-9662
SELECT + MIN ( - + 3 ) + - + ( - 27 ) * + + 38 * 84 + - 78 + - 37 col0
----
86066

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9663
SELECT DISTINCT 25 DIV + NULLIF ( + + NULLIF ( + - 25, - 96 * + + 71 ), + COUNT( * ) * - - 73 * + + 47 + + + AVG ( ALL - 75 ) ), + 18 AS col1
----
-1
18

skipif mysql # not compatible
query II rowsort label-9663
SELECT DISTINCT 25 / + NULLIF ( + + NULLIF ( + - 25, - 96 * + + 71 ), + COUNT ( * ) * - - 73 * + + 47 + + + AVG ( ALL - 75 ) ), + 18 AS col1
----
-1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + + 43 * + COUNT( ALL + 71 ) col1
----
43

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + + 43 * + COUNT ( ALL + 71 ) col1
----
43

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT + + 79 + + + 79 DIV - 12
----
73

skipif mysql # not compatible
query I rowsort label-9665
SELECT + + 79 + + + 79 / - 12
----
73

query II rowsort
SELECT - + 47 AS col0, + 88 - + 73
----
-47
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9667
SELECT - ( + - COALESCE ( + ( + 46 ), - + 26 + 12, + - 33 ) ) * + 46 + - NULLIF ( - COUNT( * ), + - CAST( - 58 AS SIGNED ) + - 3 + - 70 ) + + + 63
----
2180

skipif mysql # not compatible
query I rowsort label-9667
SELECT - ( + - COALESCE ( + ( + 46 ), - + 26 + 12, + - 33 ) ) * + 46 + - NULLIF ( - COUNT ( * ), + - CAST ( - 58 AS INTEGER ) + - 3 + - 70 ) + + + 63
----
2180

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL 74 + 33 + + 45 + + - COUNT( * ) * + ( + 68 ) * + 90 * 98 AS col1
----
-599608

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL 74 + 33 + + 45 + + - COUNT ( * ) * + ( + 68 ) * + 90 * 98 AS col1
----
-599608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9669
SELECT ALL + COUNT( * ) + - 21 + + + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9669
SELECT ALL + COUNT ( * ) + - 21 + + + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9670
SELECT - CAST( NULL AS SIGNED ), 13 * 0 AS col1
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9670
SELECT - CAST ( NULL AS INTEGER ), 13 * 0 AS col1
----
NULL
0

query I rowsort
SELECT + 58 + + - 78 AS col0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-9672
SELECT + 52, + 47 * + - NULLIF ( - 79, - 11 ) * + ( - COUNT( * ) ) AS col1
----
52
-3713

skipif mysql # not compatible
query II rowsort label-9672
SELECT + 52, + 47 * + - NULLIF ( - 79, - 11 ) * + ( - COUNT ( * ) ) AS col1
----
52
-3713

query I rowsort
SELECT DISTINCT - ( - 6 )
----
6

query I rowsort
SELECT ALL + 22 + + 42 AS col2
----
64

query II rowsort
SELECT ALL + 75, + 34 AS col0
----
75
34

query II rowsort
SELECT + 36, + 48 AS col2
----
36
48

query I rowsort
SELECT ALL - - 63 + - 75
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT DISTINCT + ( - - CAST( NULL AS SIGNED ) ) + - + CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT + ( - - CAST ( NULL AS INTEGER ) ) + - + CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9679
SELECT ALL + 66 DIV + + 1
----
66

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + 66 / + + 1
----
66

query I rowsort
SELECT - - 61 + 86 AS col1
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT + COUNT( DISTINCT - 5 )
----
1

skipif mysql # not compatible
query I rowsort label-9681
SELECT + COUNT ( DISTINCT - 5 )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9682
SELECT + - ( - 75 ) AS col2, + COALESCE ( 85, 11 * CAST( NULL AS SIGNED ) ) + 35 AS col2
----
75
120

skipif mysql # not compatible
query II rowsort label-9682
SELECT + - ( - 75 ) AS col2, + COALESCE ( 85, 11 * CAST ( NULL AS INTEGER ) ) + 35 AS col2
----
75
120

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT - + 28 * + 10 + - COUNT( * ) AS col2
----
-281

skipif mysql # not compatible
query I rowsort label-9683
SELECT - + 28 * + 10 + - COUNT ( * ) AS col2
----
-281

query II rowsort
SELECT 1, - 94 AS col2
----
1
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL - 6 DIV - + 36
----
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - 6 / - + 36
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9686
SELECT COALESCE ( + ( + ( + 50 ) ), + CAST( NULL AS SIGNED ) DIV - - 11 ) * + - 93 + 45 AS col2
----
-4605

skipif mysql # not compatible
query I rowsort label-9686
SELECT COALESCE ( + ( + ( + 50 ) ), + CAST ( NULL AS INTEGER ) / - - 11 ) * + - 93 + 45 AS col2
----
-4605

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL + ( - SUM( DISTINCT 2 ) ) * + - 12 AS col1
----
24

skipif mysql # not compatible
query I rowsort label-9687
SELECT ALL + ( - SUM ( DISTINCT 2 ) ) * + - 12 AS col1
----
24

query I rowsort
SELECT DISTINCT - 97 * 54 AS col2
----
-5238

query I rowsort
SELECT DISTINCT + ( + ( 98 ) ) * + 18
----
1764

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9690
SELECT COUNT( * ) * 35, + 58 + - 6 - - - 81 DIV + + COALESCE ( - COALESCE ( + + COALESCE ( + 1, + 24 ), - + COUNT( * ), - 80 * - CAST( NULL AS SIGNED ) + + 68 + - + 41 ), 37 * - 35, + + SUM( DISTINCT + ( - ( - 96 ) ) ) ) col2
----
35
133

skipif mysql # not compatible
query II rowsort label-9690
SELECT COUNT ( * ) * 35, + 58 + - 6 - - - 81 / + + COALESCE ( - COALESCE ( + + COALESCE ( + 1, + 24 ), - + COUNT ( * ), - 80 * - CAST ( NULL AS INTEGER ) + + 68 + - + 41 ), 37 * - 35, + + SUM ( DISTINCT + ( - ( - 96 ) ) ) ) col2
----
35
133

query I rowsort
SELECT ALL + 24 * - - 33 AS col2
----
792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT + 93 * + CAST( NULL AS SIGNED ) + + - 86
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT + 93 * + CAST ( NULL AS INTEGER ) + + - 86
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9693
SELECT 21 * + + COUNT( * )
----
21

skipif mysql # not compatible
query I rowsort label-9693
SELECT 21 * + + COUNT ( * )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL - MAX( ALL + 57 ) AS col2
----
-57

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL - MAX ( ALL + 57 ) AS col2
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9695
SELECT DISTINCT - CAST( + 31 AS SIGNED ) col0
----
-31

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - CAST ( + 31 AS INTEGER ) col0
----
-31

query I rowsort
SELECT CASE 82 WHEN + + 56 - 53 + + 37 - - - 89 THEN NULL ELSE 38 END * 59 col0
----
2242

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT ALL - COUNT( ALL + 92 ) AS col0
----
-1

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL - COUNT ( ALL + 92 ) AS col0
----
-1

query I rowsort
SELECT DISTINCT 55 * - + ( - 0 ) AS col0
----
0

query I rowsort
SELECT DISTINCT + 44 * - - 66 * 85 AS col1
----
246840

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ( COUNT( * ) ) * + 73 AS col1
----
73

skipif mysql # not compatible
query I rowsort label-9700
SELECT ( COUNT ( * ) ) * + 73 AS col1
----
73

query I rowsort
SELECT + 80 * + 3 AS col2
----
240

query I rowsort
SELECT ALL 63 + - 78 AS col2
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT - COUNT( * ) - 9 AS col1
----
-10

skipif mysql # not compatible
query I rowsort label-9703
SELECT - COUNT ( * ) - 9 AS col1
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-9704
SELECT - 46 - + - COUNT( * ) * - + 40 - + - NULLIF ( 1, - 82 / + AVG ( + - 6 ) ) col0, + 37
----
-85
37

skipif mysql # not compatible
query II rowsort label-9704
SELECT - 46 - + - COUNT ( * ) * - + 40 - + - NULLIF ( 1, - 82 / + AVG ( + - 6 ) ) col0, + 37
----
-85
37

onlyif mysql # aggregate syntax: 
query II rowsort label-9705
SELECT - NULLIF ( + 98, 29 * + 43 - - 88 ) AS col1, 82 * + COALESCE ( - + 67, + - 25, MAX( DISTINCT + - 85 ), - ( 12 ) )
----
-98
-5494

skipif mysql # not compatible
query II rowsort label-9705
SELECT - NULLIF ( + 98, 29 * + 43 - - 88 ) AS col1, 82 * + COALESCE ( - + 67, + - 25, MAX ( DISTINCT + - 85 ), - ( 12 ) )
----
-98
-5494

query I rowsort
SELECT DISTINCT + 51 + + - ( NULLIF ( + 24, - 65 * - 57 ) ) AS col1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9707
SELECT ALL 30 + + - 68 * - COUNT( * ) * + COUNT( * ) * + ( + 82 )
----
5606

skipif mysql # not compatible
query I rowsort label-9707
SELECT ALL 30 + + - 68 * - COUNT ( * ) * + COUNT ( * ) * + ( + 82 )
----
5606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9708
SELECT - - ( - COALESCE ( 87, - - 43 - 24 + - 0 + + 39 * - 48 * COUNT( * ) + + 54 DIV + 15 ) ) AS col1
----
-87

skipif mysql # not compatible
query I rowsort label-9708
SELECT - - ( - COALESCE ( 87, - - 43 - 24 + - 0 + + 39 * - 48 * COUNT ( * ) + + 54 / + 15 ) ) AS col1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-9709
SELECT ALL - 12 + + 67 + 77 DIV 9 * + 15
----
175

skipif mysql # not compatible
query I rowsort label-9709
SELECT ALL - 12 + + 67 + 77 / 9 * + 15
----
175

query II rowsort
SELECT + 83 * 3, - 84 AS col2
----
249
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9711
SELECT ALL + COUNT( * ) / + CAST( NULL AS SIGNED ) * + 47 + - + 8 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL + COUNT ( * ) / + CAST ( NULL AS INTEGER ) * + 47 + - + 8 AS col2
----
NULL

query I rowsort
SELECT NULLIF ( - - 83, + 97 )
----
83

query I rowsort
SELECT ALL 93 - - 41 * + 35
----
1528

onlyif mysql # DIV for integer division: 
query I rowsort label-9714
SELECT - 62 + + COALESCE ( + 82, + 1 DIV - - 89, 6, - 44 ) * + 49 col1
----
3956

skipif mysql # not compatible
query I rowsort label-9714
SELECT - 62 + + COALESCE ( + 82, + 1 / - - 89, 6, - 44 ) * + 49 col1
----
3956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9715
SELECT - CAST( + COUNT( * ) AS SIGNED ) DIV + 19 + - 63
----
-63

skipif mysql # not compatible
query I rowsort label-9715
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) / + 19 + - 63
----
-63

query I rowsort
SELECT + - ( - 42 ) AS col2
----
42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9717
SELECT ALL 63 - 91 + NULLIF ( + - 92, 6 DIV - - 3 + - + COALESCE ( - CASE + - 54 WHEN - - CAST( 66 AS SIGNED ) * + 19 THEN + 56 + - NULLIF ( + - 79, - 92 - 35 ) - - 59 END, + ( - + 9 ) * - 66 ) + - 45 + CAST( NULL AS SIGNED ) * + 27 * 74 * + 10 ) DIV - 17
----
-23

skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL 63 - 91 + NULLIF ( + - 92, 6 / - - 3 + - + COALESCE ( - CASE + - 54 WHEN - - CAST ( 66 AS INTEGER ) * + 19 THEN + 56 + - NULLIF ( + - 79, - 92 - 35 ) - - 59 END, + ( - + 9 ) * - 66 ) + - 45 + CAST ( NULL AS INTEGER ) * + 27 * 74 * + 10 ) / - 17
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-9718
SELECT + 11, - COUNT( DISTINCT - - 3 ) * - COUNT( * ) + - ( + + 45 ) AS col1
----
11
-44

skipif mysql # not compatible
query II rowsort label-9718
SELECT + 11, - COUNT ( DISTINCT - - 3 ) * - COUNT ( * ) + - ( + + 45 ) AS col1
----
11
-44

query II rowsort
SELECT ALL - 70 col0, - 95 AS col1
----
-70
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-9720
SELECT 29 * + + 44 * - + 33 + + + COUNT( * ) AS col0, - 78 col0
----
-42107
-78

skipif mysql # not compatible
query II rowsort label-9720
SELECT 29 * + + 44 * - + 33 + + + COUNT ( * ) AS col0, - 78 col0
----
-42107
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT 15 * + 49 * COUNT( * ) col2
----
735

skipif mysql # not compatible
query I rowsort label-9721
SELECT 15 * + 49 * COUNT ( * ) col2
----
735

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9722
SELECT CAST( NULL AS SIGNED ) - COUNT( * ) + - + 16 - 70 * - 31 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT CAST ( NULL AS INTEGER ) - COUNT ( * ) + - + 16 - 70 * - 31 AS col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9723
SELECT + 77 AS col1, COALESCE ( + 77, + 75 ) * 52 + - CAST( + 64 AS SIGNED )
----
77
3940

skipif mysql # not compatible
query II rowsort label-9723
SELECT + 77 AS col1, COALESCE ( + 77, + 75 ) * 52 + - CAST ( + 64 AS INTEGER )
----
77
3940

query I rowsort
SELECT 40 + - + 43
----
-3

query I rowsort
SELECT ALL - ( - + 22 )
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT DISTINCT - 39 + COUNT( * )
----
-38

skipif mysql # not compatible
query I rowsort label-9726
SELECT DISTINCT - 39 + COUNT ( * )
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-9727
SELECT 59 DIV + 91
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT 59 / + 91
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9728
SELECT ALL - 48 * - COALESCE ( + CAST( NULL AS SIGNED ), 70 )
----
3360

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL - 48 * - COALESCE ( + CAST ( NULL AS INTEGER ), 70 )
----
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9729
SELECT ALL + 94 + - 15 * COUNT( * ) + 31 + + 40 DIV - COUNT( * ) AS col2
----
70

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL + 94 + - 15 * COUNT ( * ) + 31 + + 40 / - COUNT ( * ) AS col2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT MIN( + 81 ) - ( - MAX( DISTINCT - 12 ) ) + - COUNT( * )
----
68

skipif mysql # not compatible
query I rowsort label-9730
SELECT MIN ( + 81 ) - ( - MAX ( DISTINCT - 12 ) ) + - COUNT ( * )
----
68

query I rowsort
SELECT DISTINCT - 76 + 4 AS col2
----
-72

query I rowsort
SELECT ALL + 21 + 55 AS col2
----
76

onlyif mysql # aggregate syntax: 
query II rowsort label-9733
SELECT + 53 AS col1, COUNT( * ) + 17 AS col0
----
53
18

skipif mysql # not compatible
query II rowsort label-9733
SELECT + 53 AS col1, COUNT ( * ) + 17 AS col0
----
53
18

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT - COUNT( + - ( - 4 ) ) * - 85, + 85
----
85
85

skipif mysql # not compatible
query II rowsort label-9734
SELECT - COUNT ( + - ( - 4 ) ) * - 85, + 85
----
85
85

query I rowsort
SELECT 33 + 53
----
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9736
SELECT - COALESCE ( - 21, 27, - 78 + + 29 + - ( 63 ) + 3 DIV + 11 * - 0 * CASE - 16 WHEN + + 5 THEN 78 ELSE ( + COUNT( * ) ) * - - 87 + - - 43 END * 34 - + 38 ) AS col0
----
21

skipif mysql # not compatible
query I rowsort label-9736
SELECT - COALESCE ( - 21, 27, - 78 + + 29 + - ( 63 ) + 3 / + 11 * - 0 * CASE - 16 WHEN + + 5 THEN 78 ELSE ( + COUNT ( * ) ) * - - 87 + - - 43 END * 34 - + 38 ) AS col0
----
21

query I rowsort
SELECT DISTINCT - - CASE - 72 WHEN - + 33 THEN 48 + + 75 ELSE + 42 END + - 39 AS col2
----
3

query II rowsort
SELECT - CASE + 25 WHEN 67 + 18 * + 52 * 17 - - 79 THEN - 53 ELSE 72 + - 32 + + 4 END col2, 63
----
-44
63

onlyif mysql # aggregate syntax: 
query II rowsort label-9739
SELECT + 44 + COUNT( 49 ) + - + 66 AS col2, - 9 AS col1
----
-21
-9

skipif mysql # not compatible
query II rowsort label-9739
SELECT + 44 + COUNT ( 49 ) + - + 66 AS col2, - 9 AS col1
----
-21
-9

query II rowsort
SELECT ALL - 22 + - NULLIF ( + + 96, - ( - - ( - ( - - 60 ) ) ) ) + 6 AS col0, 48
----
-112
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT + + 35 * CASE - ( + COALESCE ( - 74, MIN( DISTINCT 67 ) ) ) WHEN + - 98 THEN NULL ELSE + 45 + + 45 * - - 41 + 31 END + - 73 + - MAX( 2 ) AS col2
----
67160

skipif mysql # not compatible
query I rowsort label-9741
SELECT + + 35 * CASE - ( + COALESCE ( - 74, MIN ( DISTINCT 67 ) ) ) WHEN + - 98 THEN NULL ELSE + 45 + + 45 * - - 41 + 31 END + - 73 + - MAX ( 2 ) AS col2
----
67160

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT ALL + ( 90 ) + - 12 + - ( - 94 ) * 55 DIV + - 86
----
18

skipif mysql # not compatible
query I rowsort label-9742
SELECT ALL + ( 90 ) + - 12 + - ( - 94 ) * 55 / + - 86
----
18

query I rowsort
SELECT DISTINCT - 83 * + 93
----
-7719

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL - 72 * COUNT( * ) AS col2
----
-72

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL - 72 * COUNT ( * ) AS col2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-9745
SELECT - 11 DIV - 19 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9745
SELECT - 11 / - 19 AS col2
----
0

query I rowsort
SELECT - 80 + - 84 AS col1
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + MAX( - + 77 ) AS col0
----
-77

skipif mysql # not compatible
query I rowsort label-9747
SELECT + MAX ( - + 77 ) AS col0
----
-77

query I rowsort
SELECT DISTINCT + 39 * - 0 + 35 + 74 * + 67 AS col0
----
4993

query I rowsort
SELECT ALL 64 - - 51
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-9750
SELECT - 47 DIV 89
----
0

skipif mysql # not compatible
query I rowsort label-9750
SELECT - 47 / 89
----
0

query I rowsort
SELECT ALL ( - ( COALESCE ( + + 43, + 3 ) ) )
----
-43

query I rowsort
SELECT + 56 + + + 70
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT DISTINCT - 78 * - 27 + + COUNT( * )
----
2107

skipif mysql # not compatible
query I rowsort label-9753
SELECT DISTINCT - 78 * - 27 + + COUNT ( * )
----
2107

query I rowsort
SELECT ALL + ( - 69 ) AS col2
----
-69

onlyif mysql # aggregate syntax: 
query III rowsort label-9755
SELECT + - COUNT( * ) * ( 52 ) AS col1, 30 AS col0, - 98 * - 76
----
-52
30
7448

skipif mysql # not compatible
query III rowsort label-9755
SELECT + - COUNT ( * ) * ( 52 ) AS col1, 30 AS col0, - 98 * - 76
----
-52
30
7448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9756
SELECT ALL 22 DIV - MAX( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-9756
SELECT ALL 22 / - MAX ( + 80 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9757
SELECT + 51 * - - CAST( + + 16 AS SIGNED ) * + NULLIF ( + 33, + - 10 * + 95 * - 36 ) col1
----
26928

skipif mysql # not compatible
query I rowsort label-9757
SELECT + 51 * - - CAST ( + + 16 AS INTEGER ) * + NULLIF ( + 33, + - 10 * + 95 * - 36 ) col1
----
26928

onlyif mysql # DIV for integer division: 
query I rowsort label-9758
SELECT + 39 DIV - 84
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT + 39 / - 84
----
0

query I rowsort
SELECT + 15 * - 91 * 57 * - 5
----
389025

query I rowsort
SELECT + 21 * - 56 col1
----
-1176

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT + MAX( DISTINCT + + 40 )
----
40

skipif mysql # not compatible
query I rowsort label-9761
SELECT + MAX ( DISTINCT + + 40 )
----
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9762
SELECT - 85 DIV + 46 + + - CAST( - 20 AS SIGNED ) * + - 18 col1
----
-361

skipif mysql # not compatible
query I rowsort label-9762
SELECT - 85 / + 46 + + - CAST ( - 20 AS INTEGER ) * + - 18 col1
----
-361

onlyif mysql # DIV for integer division: 
query I rowsort label-9763
SELECT + 85 * 86 DIV + 85
----
86

skipif mysql # not compatible
query I rowsort label-9763
SELECT + 85 * 86 / + 85
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT COUNT( * ) * - ( - 11 )
----
11

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT COUNT ( * ) * - ( - 11 )
----
11

query II rowsort
SELECT DISTINCT + ( + 33 ) AS col2, 55 AS col0
----
33
55

query I rowsort
SELECT + 49 * + 4 * 23 AS col0
----
4508

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT MIN( - + CAST( NULL AS SIGNED ) ) * + 81 + + 8 + - 27 col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT MIN ( - + CAST ( NULL AS INTEGER ) ) * + 81 + + 8 + - 27 col2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9768
SELECT + 47 DIV + - 60 + - + ( COUNT( * ) ) - + + 30 * + 80 AS col0
----
-2401

skipif mysql # not compatible
query I rowsort label-9768
SELECT + 47 / + - 60 + - + ( COUNT ( * ) ) - + + 30 * + 80 AS col0
----
-2401

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT COUNT( ALL - + 11 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9769
SELECT COUNT ( ALL - + 11 ) AS col1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9770
SELECT + COALESCE ( - - ( - 62 ), 30, + 30 * + - 58 DIV CASE - MIN( DISTINCT 50 ) WHEN + 94 THEN - 39 WHEN + 78 DIV + COUNT( * ) THEN NULL END ) col2
----
-62

skipif mysql # not compatible
query I rowsort label-9770
SELECT + COALESCE ( - - ( - 62 ), 30, + 30 * + - 58 / CASE - MIN ( DISTINCT 50 ) WHEN + 94 THEN - 39 WHEN + 78 / + COUNT ( * ) THEN NULL END ) col2
----
-62

query I rowsort
SELECT - 25 * + - 7
----
175

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT DISTINCT + + COUNT( * ) * - 3
----
-3

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + + COUNT ( * ) * - 3
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9773
SELECT DISTINCT + 74 * + 38 + + MAX( DISTINCT + CASE - CAST( NULL AS SIGNED ) WHEN - 65 THEN - + 99 ELSE NULL END ) * ( - - ( - 85 ) ) col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT + 74 * + 38 + + MAX ( DISTINCT + CASE - CAST ( NULL AS INTEGER ) WHEN - 65 THEN - + 99 ELSE NULL END ) * ( - - ( - 85 ) ) col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + 39 * - 77 + + 67 + - 57 + + + 17 - - 82 + - COUNT( * ) AS col2
----
-2895

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + 39 * - 77 + + 67 + - 57 + + + 17 - - 82 + - COUNT ( * ) AS col2
----
-2895

query I rowsort
SELECT - 38 * 59
----
-2242

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT DISTINCT 7 * - COUNT( * ) AS col1
----
-7

skipif mysql # not compatible
query I rowsort label-9776
SELECT DISTINCT 7 * - COUNT ( * ) AS col1
----
-7

query I rowsort
SELECT ( - - 36 )
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT + ( + 3 ) + 96 + - + COUNT( * ) * - COUNT( * ) col0
----
100

skipif mysql # not compatible
query I rowsort label-9778
SELECT + ( + 3 ) + 96 + - + COUNT ( * ) * - COUNT ( * ) col0
----
100

query I rowsort
SELECT + - 79 * + - 89
----
7031

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - - SUM( - COALESCE ( - 39, - 2 ) ) + COUNT( * ) AS col1
----
40

skipif mysql # not compatible
query I rowsort label-9780
SELECT - - SUM ( - COALESCE ( - 39, - 2 ) ) + COUNT ( * ) AS col1
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT ALL - - 90 - - ( + SUM( DISTINCT + + 69 ) )
----
159

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL - - 90 - - ( + SUM ( DISTINCT + + 69 ) )
----
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9782
SELECT - - COUNT( * ) - 2 DIV + 88
----
1

skipif mysql # not compatible
query I rowsort label-9782
SELECT - - COUNT ( * ) - 2 / + 88
----
1

query I rowsort
SELECT - + 55 - 37
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT ALL - + 98 - + + 86 + - CASE 29 WHEN - COUNT( ALL + 33 ) * - 40 THEN + 0 ELSE + 94 + - + 32 END col1
----
-246

skipif mysql # not compatible
query I rowsort label-9784
SELECT ALL - + 98 - + + 86 + - CASE 29 WHEN - COUNT ( ALL + 33 ) * - 40 THEN + 0 ELSE + 94 + - + 32 END col1
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT ALL SUM( - + 37 ) - - 55
----
18

skipif mysql # not compatible
query I rowsort label-9785
SELECT ALL SUM ( - + 37 ) - - 55
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ( + SUM( - + CASE 90 WHEN + 7 + - 3 * - 67 / + 89 + + - 45 * + COALESCE ( 0, + ( - + 85 ) ) + - + 80 THEN - 26 WHEN - - 62 THEN NULL END ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9786
SELECT ( + SUM ( - + CASE 90 WHEN + 7 + - 3 * - 67 / + 89 + + - 45 * + COALESCE ( 0, + ( - + 85 ) ) + - + 80 THEN - 26 WHEN - - 62 THEN NULL END ) )
----
NULL

query II rowsort
SELECT - - 77 * + 38 + 81 + 34 * + 11 AS col0, 94
----
3381
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9788
SELECT - COUNT( * ) + 73 + CAST( NULL AS SIGNED ) - 74 - 72 * + - COUNT( * ) + - - CAST( NULL AS DECIMAL ) AS col1, + 94
----
NULL
94

skipif mysql # not compatible
query II rowsort label-9788
SELECT - COUNT ( * ) + 73 + CAST ( NULL AS INTEGER ) - 74 - 72 * + - COUNT ( * ) + - - CAST ( NULL AS REAL ) AS col1, + 94
----
NULL
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT + 27 - - - SUM( ALL - 26 ) AS col1
----
53

skipif mysql # not compatible
query I rowsort label-9789
SELECT + 27 - - - SUM ( ALL - 26 ) AS col1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9790
SELECT - COALESCE ( 72, 79 DIV + 12 * + COUNT( * ) DIV - COUNT( * ) * + 41 DIV - - 17 ) AS col1, COUNT( * ) col1
----
-72
1

skipif mysql # not compatible
query II rowsort label-9790
SELECT - COALESCE ( 72, 79 / + 12 * + COUNT ( * ) / - COUNT ( * ) * + 41 / - - 17 ) AS col1, COUNT ( * ) col1
----
-72
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT + COUNT( * ) - + 93 AS col0
----
-92

skipif mysql # not compatible
query I rowsort label-9791
SELECT + COUNT ( * ) - + 93 AS col0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL + 65 * - CAST( ( - NULLIF ( - + 32, 67 ) ) AS SIGNED )
----
-2080

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + 65 * - CAST ( ( - NULLIF ( - + 32, 67 ) ) AS INTEGER )
----
-2080

query I rowsort
SELECT - 33 * - 96 * - 74 AS col2
----
-234432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9794
SELECT - 92 + + COUNT( * ) * - 51 DIV - - COALESCE ( 88, - 13 ) * + - ( - 26 ) + + + 82
----
-10

skipif mysql # not compatible
query I rowsort label-9794
SELECT - 92 + + COUNT ( * ) * - 51 / - - COALESCE ( 88, - 13 ) * + - ( - 26 ) + + + 82
----
-10

query I rowsort
SELECT DISTINCT 62 + + 99 AS col0
----
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9796
SELECT ALL + ( - 57 ) * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9796
SELECT ALL + ( - 57 ) * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9797
SELECT + COUNT( - + 34 ) DIV - - 31
----
0

skipif mysql # not compatible
query I rowsort label-9797
SELECT + COUNT ( - + 34 ) / - - 31
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9798
SELECT DISTINCT + CAST( - - MAX( DISTINCT - 49 ) AS SIGNED ) AS col2
----
-49

skipif mysql # not compatible
query I rowsort label-9798
SELECT DISTINCT + CAST ( - - MAX ( DISTINCT - 49 ) AS INTEGER ) AS col2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT + COALESCE ( + MAX( DISTINCT + ( - 77 ) ), + 27, + 14 + + 33 ) AS col1
----
-77

skipif mysql # not compatible
query I rowsort label-9799
SELECT + COALESCE ( + MAX ( DISTINCT + ( - 77 ) ), + 27, + 14 + + 33 ) AS col1
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9800
SELECT - CASE - MIN( + ( 53 ) ) WHEN - 16 - 12 + + 28 * + - 33 THEN NULL ELSE - COUNT( * ) END * + ( + 14 ) + 26 + - - 77 AS col1
----
117

skipif mysql # not compatible
query I rowsort label-9800
SELECT - CASE - MIN ( + ( 53 ) ) WHEN - 16 - 12 + + 28 * + - 33 THEN NULL ELSE - COUNT ( * ) END * + ( + 14 ) + 26 + - - 77 AS col1
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-9801
SELECT + ( - 55 ) DIV 69 AS col2
----
0

skipif mysql # not compatible
query I rowsort label-9801
SELECT + ( - 55 ) / 69 AS col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9802
SELECT 21 * + + 61 - - COUNT( * ) AS col0
----
1282

skipif mysql # not compatible
query I rowsort label-9802
SELECT 21 * + + 61 - - COUNT ( * ) AS col0
----
1282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT + CAST( - - 75 AS SIGNED ) AS col2
----
75

skipif mysql # not compatible
query I rowsort label-9803
SELECT + CAST ( - - 75 AS INTEGER ) AS col2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9804
SELECT + ( - - 15 ) + + + CASE - SUM( ALL 19 ) WHEN COALESCE ( - + MAX( DISTINCT + 60 ), - + 38, - 85 ) THEN - 29 * COALESCE ( CAST( + 95 AS SIGNED ), 90, + + 66 ) * 80 ELSE + COUNT( 16 ) - - - 35 - - - SUM( - - CAST( NULL AS SIGNED ) ) * + 72 * + - 55 + + 40 * + + COALESCE ( - 11, - 66 / + ( + 52 ) ) + + 11 END + + 71 * - COUNT( * ) * - 46 * 31
----
NULL

skipif mysql # not compatible
query I rowsort label-9804
SELECT + ( - - 15 ) + + + CASE - SUM ( ALL 19 ) WHEN COALESCE ( - + MAX ( DISTINCT + 60 ), - + 38, - 85 ) THEN - 29 * COALESCE ( CAST ( + 95 AS INTEGER ), 90, + + 66 ) * 80 ELSE + COUNT ( 16 ) - - - 35 - - - SUM ( - - CAST ( NULL AS INTEGER ) ) * + 72 * + - 55 + + 40 * + + COALESCE ( - 11, - 66 / + ( + 52 ) ) + + 11 END + + 71 * - COUNT ( * ) * - 46 * 31
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT + COUNT( + ( - 48 ) ) + + 25 AS col0
----
26

skipif mysql # not compatible
query I rowsort label-9805
SELECT + COUNT ( + ( - 48 ) ) + + 25 AS col0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9806
SELECT ALL 24 * + - CASE + 31 WHEN + 71 * 80 + 10 / - 17 THEN - 62 END + 88 + COUNT( DISTINCT - + 64 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL 24 * + - CASE + 31 WHEN + 71 * 80 + 10 / - 17 THEN - 62 END + 88 + COUNT ( DISTINCT - + 64 )
----
NULL

query II rowsort
SELECT DISTINCT + 13 AS col0, COALESCE ( 85, ( 25 ) )
----
13
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT + - MAX( ALL - + 12 )
----
12

skipif mysql # not compatible
query I rowsort label-9808
SELECT + - MAX ( ALL - + 12 )
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL CASE 41 WHEN ( - 99 ) * - - CASE 2 WHEN 9 THEN NULL WHEN 86 + - 11 * + 1 THEN - - 16 + - - COUNT( * ) + + 36 ELSE NULL END + SUM( ALL - - 24 ) THEN - COALESCE ( + + ( + 3 ), SUM( - 54 ) * + + 21 + 17 * + 49 / 85 * + 26 - + 95 ) + 8 * - - 51 WHEN + - 52 THEN - 43 END * + 93 AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL CASE 41 WHEN ( - 99 ) * - - CASE 2 WHEN 9 THEN NULL WHEN 86 + - 11 * + 1 THEN - - 16 + - - COUNT ( * ) + + 36 ELSE NULL END + SUM ( ALL - - 24 ) THEN - COALESCE ( + + ( + 3 ), SUM ( - 54 ) * + + 21 + 17 * + 49 / 85 * + 26 - + 95 ) + 8 * - - 51 WHEN + - 52 THEN - 43 END * + 93 AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT - COUNT( * ) * + - 35 - - - CASE 84 WHEN 53 THEN - 51 + 57 + + ( - - 10 ) END AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9810
SELECT - COUNT ( * ) * + - 35 - - - CASE 84 WHEN 53 THEN - 51 + 57 + + ( - - 10 ) END AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT COUNT( * ) * - + ( + 70 ) + - 2 + + 48 * 84 * + ( + COUNT( * ) ) * - 30 col2
----
-121032

skipif mysql # not compatible
query I rowsort label-9811
SELECT COUNT ( * ) * - + ( + 70 ) + - 2 + + 48 * 84 * + ( + COUNT ( * ) ) * - 30 col2
----
-121032

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9812
SELECT - - 44 + + 51 + - 58 * + + CAST( NULL AS DECIMAL ) + - COUNT( * ) * + COUNT( * ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9812
SELECT - - 44 + + 51 + - 58 * + + CAST ( NULL AS REAL ) + - COUNT ( * ) * + COUNT ( * ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - 71 * + COUNT( * ) AS col1
----
-71

skipif mysql # not compatible
query I rowsort label-9813
SELECT - 71 * + COUNT ( * ) AS col1
----
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT + COALESCE ( + 61, 17 DIV + 16 ) + ( 31 ) AS col1
----
92

skipif mysql # not compatible
query I rowsort label-9814
SELECT + COALESCE ( + 61, 17 / + 16 ) + ( 31 ) AS col1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT ALL + SUM( ALL + 20 ) * + 35 col1
----
700

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + SUM ( ALL + 20 ) * + 35 col1
----
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT + 29 + - - 94 + - + COALESCE ( - 34, - COALESCE ( - + COUNT( ALL - + 85 ), COUNT( * ) * + 78 + + - 62 ) * 73 * - 18 / + - 47 ) / + - COUNT( + ( + - 71 ) ) * 25 + 67 * + 30 * + CASE 32 WHEN - + ( COUNT( * ) ) + + 16 THEN - - 78 * + 2 * - - CASE + - COALESCE ( + - 83, - 52 ) WHEN 20 THEN 29 WHEN + COUNT( * ) + 34 + ( + + NULLIF ( - NULLIF ( - 87, NULLIF ( NULLIF ( COALESCE ( COALESCE ( - 89, 78 * 23 * - COUNT( * ) + 61 ), 29 + CASE - 93 WHEN 83 THEN - 45 ELSE NULL END ), - ( 83 ) ), + 95 + COUNT( * ) ) ), - 91 ) ) + 37 / 79 THEN NULL END * COUNT( * ) ELSE NULL END + 71 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT + 29 + - - 94 + - + COALESCE ( - 34, - COALESCE ( - + COUNT ( ALL - + 85 ), COUNT ( * ) * + 78 + + - 62 ) * 73 * - 18 / + - 47 ) / + - COUNT ( + ( + - 71 ) ) * 25 + 67 * + 30 * + CASE 32 WHEN - + ( COUNT ( * ) ) + + 16 THEN - - 78 * + 2 * - - CASE + - COALESCE ( + - 83, - 52 ) WHEN 20 THEN 29 WHEN + COUNT ( * ) + 34 + ( + + NULLIF ( - NULLIF ( - 87, NULLIF ( NULLIF ( COALESCE ( COALESCE ( - 89, 78 * 23 * - COUNT ( * ) + 61 ), 29 + CASE - 93 WHEN 83 THEN - 45 ELSE NULL END ), - ( 83 ) ), + 95 + COUNT ( * ) ) ), - 91 ) ) + 37 / 79 THEN NULL END * COUNT ( * ) ELSE NULL END + 71 AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9817
SELECT - NULLIF ( + 74, + ( COUNT( * ) ) ) + - 44 AS col2, - 54 + - - 49 * - - 95 * + 39 AS col0
----
-118
181491

skipif mysql # not compatible
query II rowsort label-9817
SELECT - NULLIF ( + 74, + ( COUNT ( * ) ) ) + - 44 AS col2, - 54 + - - 49 * - - 95 * + 39 AS col0
----
-118
181491

query I rowsort
SELECT ALL 26 * - NULLIF ( NULLIF ( 16, - 12 ), 45 ) + 24
----
-392

query I rowsort
SELECT + 65 + + 92 AS col2
----
157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT CAST( NULL AS SIGNED ) + - ( - + COUNT( * ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT CAST ( NULL AS INTEGER ) + - ( - + COUNT ( * ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT DISTINCT + 96 * + 86 + COUNT( * ) AS col2
----
8257

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT + 96 * + 86 + COUNT ( * ) AS col2
----
8257

query I rowsort
SELECT + 18 * + 45 * - + 46
----
-37260

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9823
SELECT + 92 + + CAST( - NULLIF ( + + 85, + 36 + + AVG ( - 39 ) * - 71 ) AS SIGNED ) + + 28 * + 49 * - COUNT( * ) * + - 64 * 52
----
4566023

skipif mysql # not compatible
query I rowsort label-9823
SELECT + 92 + + CAST ( - NULLIF ( + + 85, + 36 + + AVG ( - 39 ) * - 71 ) AS INTEGER ) + + 28 * + 49 * - COUNT ( * ) * + - 64 * 52
----
4566023

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9824
SELECT DISTINCT 54 col1, - CAST( NULL AS SIGNED ) AS col0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-9824
SELECT DISTINCT 54 col1, - CAST ( NULL AS INTEGER ) AS col0
----
54
NULL

query I rowsort
SELECT ALL - 24 + + ( - + 40 ) col2
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT ALL - ( 71 ) + + CAST( NULL AS SIGNED ) * 21
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL - ( 71 ) + + CAST ( NULL AS INTEGER ) * 21
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9827
SELECT 50 + - 25 + - - 18 + + - COUNT( * ) * + 83 DIV - - 52 AS col2
----
42

skipif mysql # not compatible
query I rowsort label-9827
SELECT 50 + - 25 + - - 18 + + - COUNT ( * ) * + 83 / - - 52 AS col2
----
42

query I rowsort
SELECT ALL + 34 * + ( - ( - + 40 ) ) AS col0
----
1360

query II rowsort
SELECT - 70 col1, + 31 * + + 41
----
-70
1271

query I rowsort
SELECT DISTINCT - 7 + - 8 AS col1
----
-15

query I rowsort
SELECT 75 + + 27
----
102

query I rowsort
SELECT ALL - 89 + 11 AS col2
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-9833
SELECT ALL + 35 * + 52 AS col2, COUNT( * )
----
1820
1

skipif mysql # not compatible
query II rowsort label-9833
SELECT ALL + 35 * + 52 AS col2, COUNT ( * )
----
1820
1

query II rowsort
SELECT 16 AS col2, - 7 + + 77 AS col0
----
16
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9835
SELECT 56 + + NULLIF ( 5, + 75 ) * - CAST( 86 AS SIGNED ) * - 24 + + 14 col1
----
10390

skipif mysql # not compatible
query I rowsort label-9835
SELECT 56 + + NULLIF ( 5, + 75 ) * - CAST ( 86 AS INTEGER ) * - 24 + + 14 col1
----
10390

query I rowsort
SELECT DISTINCT + 17 * + + 65
----
1105

query I rowsort
SELECT 1 - + 45 - - 82 AS col1
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9838
SELECT ALL + 35 * 76 AS col2, - 33 + CAST( NULL AS SIGNED ) AS col1
----
2660
NULL

skipif mysql # not compatible
query II rowsort label-9838
SELECT ALL + 35 * 76 AS col2, - 33 + CAST ( NULL AS INTEGER ) AS col1
----
2660
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9839
SELECT + 93 col1, - 86 - + COUNT( * ) DIV - 59 col2
----
93
-86

skipif mysql # not compatible
query II rowsort label-9839
SELECT + 93 col1, - 86 - + COUNT ( * ) / - 59 col2
----
93
-86

query I rowsort
SELECT DISTINCT + 17 * + + 39 * 55
----
36465

query I rowsort
SELECT 94 * 73
----
6862

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT + MAX( - 48 ) AS col1
----
-48

skipif mysql # not compatible
query I rowsort label-9842
SELECT + MAX ( - 48 ) AS col1
----
-48

query II rowsort
SELECT - 5, 19 + - 3 + 43 AS col1
----
-5
59

query I rowsort
SELECT ALL 3 - - 72 * - 76
----
-5469

onlyif mysql # DIV for integer division: 
query I rowsort label-9845
SELECT - 56 DIV + - 51
----
1

skipif mysql # not compatible
query I rowsort label-9845
SELECT - 56 / + - 51
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT ALL 30 * - COUNT( * ) AS col1
----
-30

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL 30 * - COUNT ( * ) AS col1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT 77 + + 59 * - + COUNT( * ) + - 42 col2
----
-24

skipif mysql # not compatible
query I rowsort label-9847
SELECT 77 + + 59 * - + COUNT ( * ) + - 42 col2
----
-24

query I rowsort
SELECT DISTINCT 87 * - 20 + - 31 AS col2
----
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT 26 * + COUNT( DISTINCT - + 44 )
----
26

skipif mysql # not compatible
query I rowsort label-9849
SELECT 26 * + COUNT ( DISTINCT - + 44 )
----
26

query I rowsort
SELECT DISTINCT 14 * + - ( - - 28 ) + ( + + COALESCE ( - 65, - + COALESCE ( - 80, 43 ) ) ) * - 72 * 89
----
416128

query I rowsort
SELECT COALESCE ( - 73, - 92 ) + 85 AS col1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT - 58, - COALESCE ( 18, + + 25 + + + COUNT( * ) ) AS col1
----
-58
-18

skipif mysql # not compatible
query II rowsort label-9852
SELECT - 58, - COALESCE ( 18, + + 25 + + + COUNT ( * ) ) AS col1
----
-58
-18

query I rowsort
SELECT 34 - 27 AS col1
----
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9854
SELECT 40 DIV 64 AS col1
----
0

skipif mysql # not compatible
query I rowsort label-9854
SELECT 40 / 64 AS col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT COALESCE ( - 0, - 76 ) - - MIN( 61 )
----
61

skipif mysql # not compatible
query I rowsort label-9855
SELECT COALESCE ( - 0, - 76 ) - - MIN ( 61 )
----
61

query II rowsort
SELECT DISTINCT + 48 * + 7, + 14 * - 40 AS col2
----
336
-560

query I rowsort
SELECT ALL - 93 + + 42 AS col1
----
-51

query I rowsort
SELECT DISTINCT 85 + - 61 AS col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT - MIN( ALL 57 )
----
-57

skipif mysql # not compatible
query I rowsort label-9859
SELECT - MIN ( ALL 57 )
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT 75 * + - COUNT( * )
----
-75

skipif mysql # not compatible
query I rowsort label-9860
SELECT 75 * + - COUNT ( * )
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT 78 - - 68 + MIN( DISTINCT + 41 )
----
187

skipif mysql # not compatible
query I rowsort label-9861
SELECT 78 - - 68 + MIN ( DISTINCT + 41 )
----
187

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9862
SELECT DISTINCT - 76 - + + 30 + + MIN( ALL + - ( + 46 ) ) + + 89 DIV SUM( + + 78 ) DIV - 28
----
-152

skipif mysql # not compatible
query I rowsort label-9862
SELECT DISTINCT - 76 - + + 30 + + MIN ( ALL + - ( + 46 ) ) + + 89 / SUM ( + + 78 ) / - 28
----
-152

query I rowsort
SELECT 68 + - COALESCE ( 93, 75 + - + ( + 32 ) ) AS col2
----
-25

query II rowsort
SELECT DISTINCT - 58 - 73, - 10 AS col2
----
-131
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + 86 * COUNT( * ) AS col2
----
86

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + 86 * COUNT ( * ) AS col2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT DISTINCT COUNT( * ) * + 79 - - + 21
----
100

skipif mysql # not compatible
query I rowsort label-9866
SELECT DISTINCT COUNT ( * ) * + 79 - - + 21
----
100

query I rowsort
SELECT 71 * - 47
----
-3337

query I rowsort
SELECT 15 * 78 AS col2
----
1170

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9869
SELECT ALL - + 83 * + + 17 * + 35 + + 20 + + COUNT( * ) * + 73 + - 43 * + COUNT( * ) DIV + ( SUM( ALL 48 ) ) AS col0
----
-49292

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL - + 83 * + + 17 * + 35 + + 20 + + COUNT ( * ) * + 73 + - 43 * + COUNT ( * ) / + ( SUM ( ALL 48 ) ) AS col0
----
-49292

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT COALESCE ( + MAX( + + CASE + 64 WHEN - + 57 THEN + + 97 WHEN 57 * 35 + 48 + 90 * 49 THEN NULL END ), + NULLIF ( - - 74, + COUNT( * ) + COUNT( ALL - 5 ) + 71 * - 88 * + COUNT( ALL - - 25 ) * - - 59 + - 50 + 28 + - 68 * - COUNT( * ) ) ) + + - 24 + + - MIN( DISTINCT + 19 ) - 60 - COUNT( * ) * - 29
----
0

skipif mysql # not compatible
query I rowsort label-9870
SELECT COALESCE ( + MAX ( + + CASE + 64 WHEN - + 57 THEN + + 97 WHEN 57 * 35 + 48 + 90 * 49 THEN NULL END ), + NULLIF ( - - 74, + COUNT ( * ) + COUNT ( ALL - 5 ) + 71 * - 88 * + COUNT ( ALL - - 25 ) * - - 59 + - 50 + 28 + - 68 * - COUNT ( * ) ) ) + + - 24 + + - MIN ( DISTINCT + 19 ) - 60 - COUNT ( * ) * - 29
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL - COUNT( - + 92 ) * + + ( + + 77 )
----
-77

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL - COUNT ( - + 92 ) * + + ( + + 77 )
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9872
SELECT DISTINCT 59 DIV 62
----
0

skipif mysql # not compatible
query I rowsort label-9872
SELECT DISTINCT 59 / 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT - - ( 39 ) * - - 62 * - COUNT( + 47 ) - - + 22 + - 6 * - ( - COALESCE ( ( + 82 ), - 0 * 0 - + - COUNT( * ) ) ) AS col2
----
-2888

skipif mysql # not compatible
query I rowsort label-9873
SELECT - - ( 39 ) * - - 62 * - COUNT ( + 47 ) - - + 22 + - 6 * - ( - COALESCE ( ( + 82 ), - 0 * 0 - + - COUNT ( * ) ) ) AS col2
----
-2888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT ( + COUNT( * ) ) * + CAST( NULL AS SIGNED ) + CAST( + 29 AS SIGNED ) + + - 52 AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9874
SELECT ( + COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) + CAST ( + 29 AS INTEGER ) + + - 52 AS col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT - - 88 * 98 + - 11 - + 36 - + 54 DIV 71 col0
----
8577

skipif mysql # not compatible
query I rowsort label-9875
SELECT - - 88 * 98 + - 11 - + 36 - + 54 / 71 col0
----
8577

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9876
SELECT - ( CASE - 30 WHEN CASE 28 WHEN - CAST( + ( 73 ) AS SIGNED ) THEN - + COALESCE ( - 27, + COUNT( * ) ) END THEN NULL ELSE - - CAST( NULL AS DECIMAL ) * 13 * + + 48 END )
----
NULL

skipif mysql # not compatible
query I rowsort label-9876
SELECT - ( CASE - 30 WHEN CASE 28 WHEN - CAST ( + ( 73 ) AS INTEGER ) THEN - + COALESCE ( - 27, + COUNT ( * ) ) END THEN NULL ELSE - - CAST ( NULL AS REAL ) * 13 * + + 48 END )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9877
SELECT + 74 DIV - - 46 + 46 AS col0
----
47

skipif mysql # not compatible
query I rowsort label-9877
SELECT + 74 / - - 46 + 46 AS col0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9878
SELECT ALL - COALESCE ( + 4, + 48 * 24 + + - 9 * + MAX( - - 93 ) ), - COUNT( * ) * - 59 AS col0
----
-4
59

skipif mysql # not compatible
query II rowsort label-9878
SELECT ALL - COALESCE ( + 4, + 48 * 24 + + - 9 * + MAX ( - - 93 ) ), - COUNT ( * ) * - 59 AS col0
----
-4
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT DISTINCT + COUNT( ALL - ( + 13 ) ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT + COUNT ( ALL - ( + 13 ) ) AS col2
----
1

query I rowsort
SELECT ALL 80 * - 45
----
-3600

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9881
SELECT - MIN( ALL + ( + - 6 ) ), CAST( - + 42 AS SIGNED ) AS col1
----
6
-42

skipif mysql # not compatible
query II rowsort label-9881
SELECT - MIN ( ALL + ( + - 6 ) ), CAST ( - + 42 AS INTEGER ) AS col1
----
6
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-9882
SELECT ALL 59, + 44 * COUNT( * ) * 26 col2
----
59
1144

skipif mysql # not compatible
query II rowsort label-9882
SELECT ALL 59, + 44 * COUNT ( * ) * 26 col2
----
59
1144

query I rowsort
SELECT ALL 33 + 88
----
121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9884
SELECT + 39 + 58 + + - 58 AS col2, COUNT( DISTINCT - 83 ) + + + CAST( NULL AS SIGNED )
----
39
NULL

skipif mysql # not compatible
query II rowsort label-9884
SELECT + 39 + 58 + + - 58 AS col2, COUNT ( DISTINCT - 83 ) + + + CAST ( NULL AS INTEGER )
----
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL 44 * - MIN( ( - ( 52 ) ) )
----
2288

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL 44 * - MIN ( ( - ( 52 ) ) )
----
2288

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT - COALESCE ( + 28, + - 83 * - COUNT( * ) ) col2
----
-28

skipif mysql # not compatible
query I rowsort label-9886
SELECT - COALESCE ( + 28, + - 83 * - COUNT ( * ) ) col2
----
-28

query I rowsort
SELECT + 91 + 7 + - 56 AS col0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT + 20 + - 97 * CAST( NULL AS SIGNED ) + - 38 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9888
SELECT + 20 + - 97 * CAST ( NULL AS INTEGER ) + - 38 col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9889
SELECT DISTINCT 32 DIV - + 99
----
0

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT 32 / - + 99
----
0

query I rowsort
SELECT + ( - ( 27 ) ) + - + 13
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT ALL 78 DIV - 40
----
-1

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL 78 / - 40
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9892
SELECT DISTINCT 96 DIV - - 29
----
3

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT 96 / - - 29
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + 66 + - + 10 - 59 * - - COUNT( * )
----
-3

skipif mysql # not compatible
query I rowsort label-9893
SELECT + 66 + - + 10 - 59 * - - COUNT ( * )
----
-3

query I rowsort
SELECT ALL 31 * - 47
----
-1457

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + COUNT( * ) * 36
----
36

skipif mysql # not compatible
query I rowsort label-9895
SELECT + COUNT ( * ) * 36
----
36

query I rowsort
SELECT ALL + ( + 52 ) * 11 * + 16 AS col1
----
9152

query I rowsort
SELECT - NULLIF ( 65, 38 ) col0
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT + 59 DIV + 39 AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9898
SELECT + 59 / + 39 AS col2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT - - 57 DIV + 27
----
2

skipif mysql # not compatible
query I rowsort label-9899
SELECT - - 57 / + 27
----
2

query I rowsort
SELECT + + ( + 95 ) - - 81
----
176

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + 82 * + COUNT( * )
----
82

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + 82 * + COUNT ( * )
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT DISTINCT + - NULLIF ( SUM( + 15 ), + 99 + + - CAST( NULL AS SIGNED ) ) AS col0
----
-15

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT + - NULLIF ( SUM ( + 15 ), + 99 + + - CAST ( NULL AS INTEGER ) ) AS col0
----
-15

query I rowsort
SELECT DISTINCT + COALESCE ( - 2, 93 * + 92 * - 13 )
----
-2

query I rowsort
SELECT ALL - 20 * + + 85 + - 86 AS col2
----
-1786

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9905
SELECT 5 * 98 + + 40 + - 60 / + 98 + + 99 * 46 + - - ( - 55 ) * + 48 + CAST( NULL AS DECIMAL ) / - - CAST( NULL AS SIGNED ) AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT 5 * 98 + + 40 + - 60 / + 98 + + 99 * 46 + - - ( - 55 ) * + 48 + CAST ( NULL AS REAL ) / - - CAST ( NULL AS INTEGER ) AS col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT ALL + + COUNT( 38 ) AS col2
----
1

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + + COUNT ( 38 ) AS col2
----
1

query II rowsort
SELECT + - 89 AS col0, - 25
----
-89
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL - SUM( - 35 ) * - 90 + + - COUNT( * ) AS col1
----
-3151

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL - SUM ( - 35 ) * - 90 + + - COUNT ( * ) AS col1
----
-3151

query I rowsort
SELECT - ( - 18 )
----
18

query II rowsort
SELECT + - 65 AS col0, ( + 15 ) AS col0
----
-65
15

query I rowsort
SELECT ALL + - 37 AS col1
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9912
SELECT DISTINCT - - COUNT( * ) * + 70 + 54 + 76 - + + CAST( NULL AS SIGNED ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT - - COUNT ( * ) * + 70 + 54 + 76 - + + CAST ( NULL AS INTEGER ) AS col0
----
NULL

query II rowsort
SELECT + + 42, + ( + 48 ) + - 73 col0
----
42
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9914
SELECT DISTINCT COUNT( * ) * - 23 + + - COUNT( 78 ) DIV 63
----
-23

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT COUNT ( * ) * - 23 + + - COUNT ( 78 ) / 63
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT - 28 * + - CASE 58 WHEN 55 + COUNT( * ) * + 1 / + 83 THEN 84 END / + 80 + 3 + + + CAST( + 93 AS SIGNED ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT - 28 * + - CASE 58 WHEN 55 + COUNT ( * ) * + 1 / + 83 THEN 84 END / + 80 + 3 + + + CAST ( + 93 AS INTEGER ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9916
SELECT - COUNT( * ) * 28 AS col0
----
-28

skipif mysql # not compatible
query I rowsort label-9916
SELECT - COUNT ( * ) * 28 AS col0
----
-28

query I rowsort
SELECT - 50 * + - 68
----
3400

query I rowsort
SELECT + 15 * - - 93 col1
----
1395

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9919
SELECT - COALESCE ( - + COUNT( * ), - 21 + - + NULLIF ( + 50, - + CAST( + 15 AS SIGNED ) ) )
----
1

skipif mysql # not compatible
query I rowsort label-9919
SELECT - COALESCE ( - + COUNT ( * ), - 21 + - + NULLIF ( + 50, - + CAST ( + 15 AS INTEGER ) ) )
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9920
SELECT ALL CAST( - + 54 AS SIGNED ) * + - 40 * + 53 - - CAST( NULL AS SIGNED ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9920
SELECT ALL CAST ( - + 54 AS INTEGER ) * + - 40 * + 53 - - CAST ( NULL AS INTEGER ) AS col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT - COUNT( * ) DIV + 41
----
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT - COUNT ( * ) / + 41
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT + ( + - 2 ) * - + 30 * + ( + 66 ) + - COUNT( * ) * - 46 * 36 AS col2
----
5616

skipif mysql # not compatible
query I rowsort label-9922
SELECT + ( + - 2 ) * - + 30 * + ( + 66 ) + - COUNT ( * ) * - 46 * 36 AS col2
----
5616

query I rowsort
SELECT - 79 - 67 * 36 AS col0
----
-2491

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9924
SELECT ALL 91 * + CAST( - COUNT( * ) AS SIGNED ) col2
----
-91

skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL 91 * + CAST ( - COUNT ( * ) AS INTEGER ) col2
----
-91

query I rowsort
SELECT - ( 41 ) + - 22 AS col1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-9926
SELECT ALL - 13 * 19, MAX( DISTINCT 63 ) AS col0
----
-247
63

skipif mysql # not compatible
query II rowsort label-9926
SELECT ALL - 13 * 19, MAX ( DISTINCT 63 ) AS col0
----
-247
63

query I rowsort
SELECT ALL - 4 * + 15 AS col0
----
-60

query I rowsort
SELECT - ( - 70 ) + + 28 AS col2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + 25 - - - ( - COUNT( * ) ) + + 36 * - 20
----
-694

skipif mysql # not compatible
query I rowsort label-9929
SELECT + 25 - - - ( - COUNT ( * ) ) + + 36 * - 20
----
-694

onlyif mysql # aggregate syntax: 
query II rowsort label-9930
SELECT - COUNT( * ) * - CASE 3 WHEN - 26 + - + 45 - 30 THEN + ( + ( 16 ) ) END AS col2, 13 + - 66
----
NULL
-53

skipif mysql # not compatible
query II rowsort label-9930
SELECT - COUNT ( * ) * - CASE 3 WHEN - 26 + - + 45 - 30 THEN + ( + ( 16 ) ) END AS col2, 13 + - 66
----
NULL
-53

query I rowsort
SELECT + 19 * + 64
----
1216

onlyif mysql # aggregate syntax: 
query I rowsort label-9932
SELECT + - COUNT( * ) + - - COUNT( * ) - 85 AS col1
----
-85

skipif mysql # not compatible
query I rowsort label-9932
SELECT + - COUNT ( * ) + - - COUNT ( * ) - 85 AS col1
----
-85

query I rowsort
SELECT 86 * - + 7 AS col0
----
-602

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9934
SELECT ALL 36 + - - CAST( NULL AS DECIMAL ) + ( + - 16 ) / + - AVG ( + 16 ) col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL 36 + - - CAST ( NULL AS REAL ) + ( + - 16 ) / + - AVG ( + 16 ) col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - 73 + - - SUM( 65 ) AS col0
----
-8

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - 73 + - - SUM ( 65 ) AS col0
----
-8

query I rowsort
SELECT ALL - 14 + 65
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9937
SELECT ALL 63 + COUNT( * ) AS col0, 28
----
64
28

skipif mysql # not compatible
query II rowsort label-9937
SELECT ALL 63 + COUNT ( * ) AS col0, 28
----
64
28

query I rowsort
SELECT + 2 * 89
----
178

query I rowsort
SELECT ALL - + 76 AS col0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT CAST( - + 51 AS SIGNED )
----
-51

skipif mysql # not compatible
query I rowsort label-9940
SELECT CAST ( - + 51 AS INTEGER )
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9941
SELECT CAST( NULL AS SIGNED ) / 92 AS col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9941
SELECT CAST ( NULL AS INTEGER ) / 92 AS col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT - + 80 DIV + 22 + 96 col1
----
93

skipif mysql # not compatible
query I rowsort label-9942
SELECT - + 80 / + 22 + 96 col1
----
93

query I rowsort
SELECT 32 * 65 AS col1
----
2080

query I rowsort
SELECT DISTINCT - + 70 col0
----
-70

query I rowsort
SELECT - 53 * + NULLIF ( 43, + - 2 ) + + + 22
----
-2257

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9946
SELECT ALL - - 36 - + CAST( NULL AS SIGNED ) + 92 + - 11, + 58 + 7 AS col0
----
NULL
65

skipif mysql # not compatible
query II rowsort label-9946
SELECT ALL - - 36 - + CAST ( NULL AS INTEGER ) + 92 + - 11, + 58 + 7 AS col0
----
NULL
65

query I rowsort
SELECT ALL - - 92 col2
----
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9948
SELECT 78 + + + ( 22 ) AS col0, COUNT( * ) * 38 * + COUNT( DISTINCT + + CASE - + 37 WHEN + + 63 - 66 + + 98 * + + CASE + 77 WHEN - 62 THEN NULL ELSE - 73 END THEN NULL WHEN - ( - 94 ) + 91 / NULLIF ( + CASE + + 18 WHEN 66 THEN - 24 END, - - 17 ) THEN + 26 ELSE NULL END ) AS col0
----
100
0

skipif mysql # not compatible
query II rowsort label-9948
SELECT 78 + + + ( 22 ) AS col0, COUNT ( * ) * 38 * + COUNT ( DISTINCT + + CASE - + 37 WHEN + + 63 - 66 + + 98 * + + CASE + 77 WHEN - 62 THEN NULL ELSE - 73 END THEN NULL WHEN - ( - 94 ) + 91 / NULLIF ( + CASE + + 18 WHEN 66 THEN - 24 END, - - 17 ) THEN + 26 ELSE NULL END ) AS col0
----
100
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT NULLIF ( - + 72, + 42 * - 88 + + 93 + CASE 74 WHEN 53 - + COUNT( * ) THEN NULL ELSE - + 72 + - CAST( + 60 AS SIGNED ) END ) * + 60 + + 43 * - 46
----
-6298

skipif mysql # not compatible
query I rowsort label-9949
SELECT NULLIF ( - + 72, + 42 * - 88 + + 93 + CASE 74 WHEN 53 - + COUNT ( * ) THEN NULL ELSE - + 72 + - CAST ( + 60 AS INTEGER ) END ) * + 60 + + 43 * - 46
----
-6298

query I rowsort
SELECT 85 * + 19 col1
----
1615

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT CAST( + ( 47 ) AS SIGNED ) * - 50 + 50 AS col2
----
-2300

skipif mysql # not compatible
query I rowsort label-9951
SELECT CAST ( + ( 47 ) AS INTEGER ) * - 50 + 50 AS col2
----
-2300

onlyif mysql # aggregate syntax: 
query II rowsort label-9952
SELECT 68 + 79 * 24 - + 36 * + + 6 AS col0, 20 + - - ( - ( 71 ) ) / - + CASE - 15 WHEN + 31 THEN - 7 WHEN - 1 THEN + 81 / + 49 END + COUNT( 52 )
----
1748
NULL

skipif mysql # not compatible
query II rowsort label-9952
SELECT 68 + 79 * 24 - + 36 * + + 6 AS col0, 20 + - - ( - ( 71 ) ) / - + CASE - 15 WHEN + 31 THEN - 7 WHEN - 1 THEN + 81 / + 49 END + COUNT ( 52 )
----
1748
NULL

query I rowsort
SELECT 75 * - 0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9954
SELECT DISTINCT + 99 * + CAST( NULL AS DECIMAL ) AS col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + 99 * + CAST ( NULL AS REAL ) AS col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT + 90 * - COALESCE ( - - 9, - - COUNT( * ) ) col2
----
-810

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT + 90 * - COALESCE ( - - 9, - - COUNT ( * ) ) col2
----
-810

query I rowsort
SELECT DISTINCT 24 col2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT COUNT( * ) + + COUNT( * ) + + 60 AS col0
----
62

skipif mysql # not compatible
query I rowsort label-9957
SELECT COUNT ( * ) + + COUNT ( * ) + + 60 AS col0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9958
SELECT 84 DIV ( - COUNT( * ) ) AS col2
----
-84

skipif mysql # not compatible
query I rowsort label-9958
SELECT 84 / ( - COUNT ( * ) ) AS col2
----
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-9959
SELECT DISTINCT + 27 DIV - 56 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT + 27 / - 56 AS col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT 0 + - MIN( DISTINCT + 2 )
----
-2

skipif mysql # not compatible
query I rowsort label-9960
SELECT 0 + - MIN ( DISTINCT + 2 )
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9961
SELECT ALL CAST( 29 AS SIGNED ) * + + 90 AS col1
----
2610

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL CAST ( 29 AS INTEGER ) * + + 90 AS col1
----
2610

onlyif mysql # aggregate syntax: 
query II rowsort label-9962
SELECT COUNT( * ) + + + ( 9 ) * + 49 * - 17, COUNT( * ) AS col1
----
-7496
1

skipif mysql # not compatible
query II rowsort label-9962
SELECT COUNT ( * ) + + + ( 9 ) * + 49 * - 17, COUNT ( * ) AS col1
----
-7496
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL - COUNT( * ) + - 84
----
-85

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL - COUNT ( * ) + - 84
----
-85

query I rowsort
SELECT ALL + 82 + 97
----
179

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9965
SELECT ALL CASE 12 WHEN + NULLIF ( + 66, + ( + 2 ) - - 19 ) * ( + 41 * + 93 ) + + 65 * + 75 THEN - COALESCE ( CAST( NULL AS DECIMAL ), + 70 - 26, ( 98 ) ) ELSE NULL END + + 29 col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL CASE 12 WHEN + NULLIF ( + 66, + ( + 2 ) - - 19 ) * ( + 41 * + 93 ) + + 65 * + 75 THEN - COALESCE ( CAST ( NULL AS REAL ), + 70 - 26, ( 98 ) ) ELSE NULL END + + 29 col1
----
NULL

query I rowsort
SELECT ALL 30 + 84 * - 53
----
-4422

query I rowsort
SELECT DISTINCT + 55 + 22
----
77

query I rowsort
SELECT DISTINCT 76 + - 78 * - 44
----
3508

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT ALL NULLIF ( + 42, COUNT( * ) ) + + 40 AS col2
----
82

skipif mysql # not compatible
query I rowsort label-9969
SELECT ALL NULLIF ( + 42, COUNT ( * ) ) + + 40 AS col2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT 54 + COUNT( * )
----
55

skipif mysql # not compatible
query I rowsort label-9970
SELECT 54 + COUNT ( * )
----
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9971
SELECT COUNT( * ) DIV + 3 AS col0
----
0

skipif mysql # not compatible
query I rowsort label-9971
SELECT COUNT ( * ) / + 3 AS col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT ALL + ( CASE - 4 WHEN - ( + 47 ) THEN ( 57 ) WHEN - 13 * - 61 THEN NULL END ) + ( CAST( NULL AS SIGNED ) + 67 ) AS col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL + ( CASE - 4 WHEN - ( + 47 ) THEN ( 57 ) WHEN - 13 * - 61 THEN NULL END ) + ( CAST ( NULL AS INTEGER ) + 67 ) AS col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT MAX( + 4 )
----
4

skipif mysql # not compatible
query I rowsort label-9973
SELECT MAX ( + 4 )
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ( 88 ) * COUNT( * ) col1
----
88

skipif mysql # not compatible
query I rowsort label-9974
SELECT ( 88 ) * COUNT ( * ) col1
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT DISTINCT CAST( + NULLIF ( - 54, + ( + 35 ) / 94 ) AS SIGNED ) / CASE + 84 / 21 WHEN + 7 - 23 THEN + 5 * + 94 END
----
NULL

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT CAST ( + NULLIF ( - 54, + ( + 35 ) / 94 ) AS INTEGER ) / CASE + 84 / 21 WHEN + 7 - 23 THEN + 5 * + 94 END
----
NULL

query I rowsort
SELECT DISTINCT 87 * - 81
----
-7047

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT COUNT( - 85 ) AS col1
----
1

skipif mysql # not compatible
query I rowsort label-9977
SELECT COUNT ( - 85 ) AS col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT + SUM( 75 ) col0
----
75

skipif mysql # not compatible
query I rowsort label-9978
SELECT + SUM ( 75 ) col0
----
75

query I rowsort
SELECT ALL 21 - + 4 AS col0
----
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9980
SELECT ( 96 ) DIV COALESCE ( - 66, COUNT( * ) )
----
-1

skipif mysql # not compatible
query I rowsort label-9980
SELECT ( 96 ) / COALESCE ( - 66, COUNT ( * ) )
----
-1

query I rowsort
SELECT DISTINCT - 27 col1
----
-27

query I rowsort
SELECT 98 * + 10 AS col0
----
980

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT 27 * ( 94 * COUNT( * ) )
----
2538

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT 27 * ( 94 * COUNT ( * ) )
----
2538

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT ALL 86 * + MIN( + 92 )
----
7912

skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL 86 * + MIN ( + 92 )
----
7912

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT 75 DIV - 28
----
-2

skipif mysql # not compatible
query I rowsort label-9985
SELECT 75 / - 28
----
-2

query I rowsort
SELECT ALL 62 * 87 AS col0
----
5394

query I rowsort
SELECT ( - 10 ) * 36 col2
----
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT DISTINCT - CASE - COUNT( * ) WHEN 76 * COUNT( * ) THEN NULL ELSE COUNT( * ) END AS col1
----
-1

skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT - CASE - COUNT ( * ) WHEN 76 * COUNT ( * ) THEN NULL ELSE COUNT ( * ) END AS col1
----
-1

query I rowsort
SELECT + 81 * - 41 + 40 AS col0
----
-3281

query I rowsort
SELECT ( + 81 ) * 42
----
3402

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT COUNT( * ) + 88 col2
----
89

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT COUNT ( * ) + 88 col2
----
89

query I rowsort
SELECT 22 * + 59 AS col2
----
1298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9993
SELECT CAST( 66 AS SIGNED ) - COUNT( * ) * - 33
----
99

skipif mysql # not compatible
query I rowsort label-9993
SELECT CAST ( 66 AS INTEGER ) - COUNT ( * ) * - 33
----
99

query I rowsort
SELECT ALL + 41 + 24 col1
----
65

query I rowsort
SELECT - 7 * 77
----
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT COUNT( * ) + - 63 * 16 AS col2
----
-1007

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT COUNT ( * ) + - 63 * 16 AS col2
----
-1007

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT DISTINCT + COUNT( * ) + + 9
----
10

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT + COUNT ( * ) + + 9
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT - 42 + 51 * MAX( DISTINCT + CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9998
SELECT - 42 + 51 * MAX ( DISTINCT + CAST ( NULL AS INTEGER ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT ALL COALESCE ( + MIN( ALL + 53 ), 62, + 69 + - COUNT( * ) * 35 ) + - 16 col1
----
37

skipif mysql # not compatible
query I rowsort label-9999
SELECT ALL COALESCE ( + MIN ( ALL + 53 ), 62, + 69 + - COUNT ( * ) * 35 ) + - 16 col1
----
37

