sqllogictest
Artifact Content
Not logged in

Artifact 3ae9c7946a711963352fb234b4caa77b7d56b777:


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